page-agent-sdk 4.2.1 → 4.2.3

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.
@@ -198,6 +198,22 @@ var b = [
198
198
  vision: !0
199
199
  }
200
200
  },
201
+ {
202
+ pattern: /qwen3(\.\d+)?-vl/i,
203
+ caps: {
204
+ contextWindow: 262144,
205
+ maxOutputTokens: 32768,
206
+ vision: !0
207
+ }
208
+ },
209
+ {
210
+ pattern: /qwen3(\.\d+)?-(max|plus|flash)/i,
211
+ caps: {
212
+ contextWindow: 262144,
213
+ maxOutputTokens: 32768,
214
+ thinking: !0
215
+ }
216
+ },
201
217
  {
202
218
  pattern: /qwen-max|qwen-plus/i,
203
219
  caps: {
@@ -7623,63 +7639,70 @@ function Up(e, t) {
7623
7639
  return Array.isArray(a) && Number(i) >= a.length;
7624
7640
  }
7625
7641
  function Wp(e) {
7626
- let t = e.initialFocuses ? [...e.initialFocuses] : [], n = () => e.onChange?.([...t]), r = e.unfocusGuidance ?? "tool", i = (e) => `若你的意图是修改聚焦组件本身(如给它新增页签/子项),请改写焦点路径的子路径重试${e ? `(如 ${e})` : ""};`, a = r === "tool" ? `需改其他组件请先 remove_focus / clear_focus 或换焦点。${i()}` : r === "ask-user" ? `焦点由用户在输入框设定与移除(聚焦 chip ✕);用户要求改其他组件时,提示用户移除聚焦后重试,勿尝试写焦点外(会被拒)。${i()}` : `需改其他组件时,在收口回复中说明需先取消焦点(焦点由主会话管理),勿尝试越界写。${i()}`, o = (e) => r === "tool" ? `${i(e)}需操作焦点外组件请先 remove_focus / clear_focus 或换焦点后重试。` : r === "ask-user" ? `${i(e)}焦点由用户在输入框管理,请提示用户移除输入框中的聚焦 chip 后重试(当前模式无 focus 工具)。` : `${i(e)}请只改焦点子树;需改其他组件时,在收口回复中说明需先取消焦点。`;
7642
+ let t = e.initialFocuses ? [...e.initialFocuses] : [], n = null, r = () => n ?? t, i = () => e.onChange?.([...t]), a = (e, r) => {
7643
+ t = r(t), n !== null && e === "agent" && (n = r(n)), i();
7644
+ }, o = e.unfocusGuidance ?? "tool", s = (e) => `若你的意图是修改聚焦组件本身(如给它新增页签/子项),请改写焦点路径的子路径重试${e ? `(如 ${e})` : ""};`, c = o === "tool" ? `需改其他组件请先 remove_focus / clear_focus 或换焦点。${s()}` : o === "ask-user" ? `焦点由用户在输入框设定与移除(聚焦 chip ✕);用户要求改其他组件时,提示用户移除聚焦后重试,勿尝试写焦点外(会被拒)。${s()}` : `需改其他组件时,在收口回复中说明需先取消焦点(焦点由主会话管理),勿尝试越界写。${s()}`, l = (e) => o === "tool" ? `${s(e)}需操作焦点外组件请先 remove_focus / clear_focus 或换焦点后重试。` : o === "ask-user" ? `${s(e)}焦点由用户在输入框管理,请提示用户移除输入框中的聚焦 chip 后重试(当前模式无 focus 工具)。` : `${s(e)}请只改焦点子树;需改其他组件时,在收口回复中说明需先取消焦点。`;
7627
7645
  return {
7628
7646
  name: "focus",
7629
- beforeAgent: () => t.length ? {
7630
- focuses: [...t],
7631
- focus: t[0]
7632
- } : {},
7647
+ beforeAgent: () => (n = [...t], n.length ? {
7648
+ focuses: [...n],
7649
+ focus: n[0]
7650
+ } : {}),
7651
+ afterAgent: () => {
7652
+ n = null;
7653
+ },
7633
7654
  augmentPrompt: () => {
7655
+ let t = r();
7634
7656
  if (!t.length) return;
7635
7657
  let n = [
7636
7658
  "## 当前精修目标",
7637
7659
  t.map((e) => `· ${e.path}${e.label ? `(${e.label})` : ""}`).join("\n"),
7638
- `仅操作上述 ${t.length} 个聚焦子树${t.length > 1 ? "之一" : ""},用户未指明目标的指令默认作用于聚焦组件(「增加/修改/删除 X」类指令优先理解为对聚焦组件本身的改动 —— 如为其加页签/子项,写焦点路径的子路径;仅用户明确要求新建独立组件时才需解除焦点);不要改动其他组件;${a}`,
7660
+ `仅操作上述 ${t.length} 个聚焦子树${t.length > 1 ? "之一" : ""},用户未指明目标的指令默认作用于聚焦组件(「增加/修改/删除 X」类指令优先理解为对聚焦组件本身的改动 —— 如为其加页签/子项,写焦点路径的子路径;仅用户明确要求新建独立组件时才需解除焦点);不要改动其他组件;${c}`,
7639
7661
  "用户用指示代词提问(「这是啥/这个/它是干什么的」等)时,所指默认是聚焦目标 —— 先 read 聚焦子树,再围绕聚焦组件回答,勿泛答整页",
7640
7662
  "read 不带路径时默认只返回聚焦子树;需要全量主数据时显式列顶层键(read({jsonPaths:[...]}) )"
7641
- ], r = e.getSchema();
7642
- if (r) {
7663
+ ], i = e.getSchema();
7664
+ if (i) {
7643
7665
  let e = t.map((e) => {
7644
- let t = wf(r, e.path);
7666
+ let t = wf(i, e.path);
7645
7667
  return t ? rp(t) : null;
7646
7668
  }).filter((e) => !!e);
7647
7669
  e.length && n.push("", "## 焦点子树结构(仅此范围可操作)", ...e);
7648
7670
  }
7649
7671
  return n.join("\n");
7650
7672
  },
7651
- wrapToolCall: async (n, r) => {
7652
- if (t.length) {
7653
- let i = t.map((e) => e.label ? `${e.path}(${e.label})` : e.path).join(", "), a = t.length === 1 ? `${t[0].path}.props.xxx` : void 0, s = (e) => ({
7654
- content: `PATH_DENIED · 聚焦越界:当前聚焦 [${i}],不可操作「${e}」。${o(a)}`,
7673
+ wrapToolCall: async (t, n) => {
7674
+ let i = r();
7675
+ if (i.length) {
7676
+ let r = i.map((e) => e.label ? `${e.path}(${e.label})` : e.path).join(", "), a = i.length === 1 ? `${i[0].path}.props.xxx` : void 0, o = (e) => ({
7677
+ content: `PATH_DENIED · 聚焦越界:当前聚焦 [${r}],不可操作「${e}」。${l(a)}`,
7655
7678
  status: "error"
7656
7679
  });
7657
- if (n.name === "eval_script") {
7658
- if (n.args?.mode !== "transform") return r(n);
7659
- let i = Vp(n.args);
7660
- if (!i.length) return s("(整体数据)");
7661
- for (let n of i) if (!t.some((e) => Hp(n, e.path)) && !Up(n, e.getBind?.())) return s(n);
7662
- return r(n);
7680
+ if (t.name === "eval_script") {
7681
+ if (t.args?.mode !== "transform") return n(t);
7682
+ let r = Vp(t.args);
7683
+ if (!r.length) return o("(整体数据)");
7684
+ for (let t of r) if (!i.some((e) => Hp(t, e.path)) && !Up(t, e.getBind?.())) return o(t);
7685
+ return n(t);
7663
7686
  }
7664
- if (Bp.has(n.name)) {
7665
- let r = Vp(n.args);
7666
- if (!r.length) return s("(整体数据)");
7667
- for (let n of r) if (!t.some((e) => Hp(n, e.path)) && !Up(n, e.getBind?.())) return s(n);
7687
+ if (Bp.has(t.name)) {
7688
+ let n = Vp(t.args);
7689
+ if (!n.length) return o("(整体数据)");
7690
+ for (let t of n) if (!i.some((e) => Hp(t, e.path)) && !Up(t, e.getBind?.())) return o(t);
7668
7691
  }
7669
- if (n.name === "read") {
7670
- n.callConfig = {
7671
- ...n.callConfig ?? {},
7672
- __pgFullTextPaths: t.map((e) => e.path)
7692
+ if (t.name === "read") {
7693
+ t.callConfig = {
7694
+ ...t.callConfig ?? {},
7695
+ __pgFullTextPaths: i.map((e) => e.path)
7673
7696
  };
7674
- let e = n.args;
7697
+ let e = t.args;
7675
7698
  if (!e?.jsonPath && !e?.jsonPaths) {
7676
- let i = t.map((e) => e.path), a = await r({
7677
- ...n,
7699
+ let r = i.map((e) => e.path), a = await n({
7700
+ ...t,
7678
7701
  args: {
7679
7702
  ...e,
7680
- jsonPaths: i
7703
+ jsonPaths: r
7681
7704
  }
7682
- }), o = `【聚焦模式】read 未带路径 → 默认返回聚焦子树(${i.join(", ")});需要全量主数据时显式列顶层键,如 read({jsonPaths:['<顶层键1>','<顶层键2>']})\n`;
7705
+ }), o = `【聚焦模式】read 未带路径 → 默认返回聚焦子树(${r.join(", ")});需要全量主数据时显式列顶层键,如 read({jsonPaths:['<顶层键1>','<顶层键2>']})\n`;
7683
7706
  return {
7684
7707
  ...a,
7685
7708
  content: o + a.content
@@ -7687,26 +7710,33 @@ function Wp(e) {
7687
7710
  }
7688
7711
  }
7689
7712
  }
7690
- return r(n);
7713
+ return n(t);
7691
7714
  },
7692
- setFocus: (e) => {
7693
- t = e ? [e] : [], n();
7715
+ setFocus: (e, t) => {
7716
+ a(t, () => e ? [e] : []);
7694
7717
  },
7695
7718
  getFocus: () => t[0],
7696
7719
  getFocuses: () => [...t],
7697
- addFocus: (e) => {
7698
- let r = t.findIndex((t) => t.path === e.path);
7699
- r >= 0 ? t[r] = e : t.push(e), n();
7720
+ addFocus: (e, t) => {
7721
+ a(t, (t) => {
7722
+ let n = t.findIndex((t) => t.path === e.path);
7723
+ if (n >= 0) {
7724
+ let r = [...t];
7725
+ return r[n] = e, r;
7726
+ }
7727
+ return [...t, e];
7728
+ });
7700
7729
  },
7701
- removeFocus: (e) => {
7702
- t = t.filter((t) => t.path !== e), n();
7730
+ removeFocus: (e, t) => {
7731
+ a(t, (t) => t.filter((t) => t.path !== e));
7703
7732
  },
7704
- clearFocus: () => {
7705
- t = [], n();
7733
+ clearFocus: (e) => {
7734
+ a(e, () => []);
7706
7735
  },
7707
7736
  reset: () => {
7708
- t = [], n();
7709
- }
7737
+ t = [], n = null, i();
7738
+ },
7739
+ isInvokeActive: () => n !== null
7710
7740
  };
7711
7741
  }
7712
7742
  //#endregion
@@ -14752,7 +14782,7 @@ function qy(e, n) {
14752
14782
  return n ? wf(n, e) ? (j.setFocus({
14753
14783
  path: e,
14754
14784
  ...t ? { label: t } : {}
14755
- }), `已聚焦到 ${e}${t ? `(${t})` : ""}。后续仅可写该子树(越界被拒),每轮只看到该组件结构。完成精修后调 clear_focus 退出。`) : `PATH_DENIED · 聚焦失败:path "${e}" 不在 schema 内。请先用 read 查看可操作路径再聚焦。` : "聚焦失败:当前无主数据 schema,无法聚焦。";
14785
+ }, "agent"), `已聚焦到 ${e}${t ? `(${t})` : ""}。后续仅可写该子树(越界被拒),每轮只看到该组件结构。完成精修后调 clear_focus 退出。`) : `PATH_DENIED · 聚焦失败:path "${e}" 不在 schema 内。请先用 read 查看可操作路径再聚焦。` : "聚焦失败:当前无主数据 schema,无法聚焦。";
14756
14786
  }, {
14757
14787
  name: "set_focus",
14758
14788
  description: "聚焦到指定组件子树(如 components.3)精修,替换全部已有焦点(非累积;要保留已有焦点追加用 add_focus)。聚焦后:仅可写该子树(越界 PATH_DENIED)+ 每轮只看到该组件结构。多组件页面精修其中一个时用,避免改到别处。先 read 定位 path 再聚焦;完成调 clear_focus。",
@@ -14760,7 +14790,7 @@ function qy(e, n) {
14760
14790
  path: t.string().describe("要聚焦的组件 jsonPath,如 components.3"),
14761
14791
  label: t.string().optional().describe("人类可读标签,如「导航栏」")
14762
14792
  })
14763
- }), Me = r(async () => (j.clearFocus(), "已清除聚焦,恢复全量可操作范围(可读写所有组件)。"), {
14793
+ }), Me = r(async () => (j.clearFocus("agent"), "已清除聚焦,恢复全量可操作范围(可读写所有组件)。"), {
14764
14794
  name: "clear_focus",
14765
14795
  description: "清除当前聚焦,退出精修模式,恢复对全部组件的读写权限。",
14766
14796
  schema: t.object({}).optional()
@@ -14771,7 +14801,7 @@ function qy(e, n) {
14771
14801
  j.addFocus({
14772
14802
  path: e,
14773
14803
  ...t ? { label: t } : {}
14774
- });
14804
+ }, "agent");
14775
14805
  let r = j.getFocuses();
14776
14806
  return `已聚焦 ${e}${t ? `(${t})` : ""}(当前共 ${r.length} 个焦点:${r.map((e) => e.path).join(", ")})。后续仅可写这些子树之一(越界被拒)。`;
14777
14807
  }, {
@@ -14783,7 +14813,7 @@ function qy(e, n) {
14783
14813
  })
14784
14814
  }), Pe = r(async ({ path: e }) => {
14785
14815
  let t = j.getFocuses().length;
14786
- j.removeFocus(e);
14816
+ j.removeFocus(e, "agent");
14787
14817
  let n = j.getFocuses();
14788
14818
  return n.length === t ? `path "${e}" 不在当前焦点列表中(当前:${n.map((e) => e.path).join(", ") || "无"})。` : n.length ? `已移除焦点 ${e}(剩余 ${n.length} 个:${n.map((e) => e.path).join(", ")})。` : `已移除焦点 ${e},聚焦已清空,恢复全量操作范围。`;
14789
14819
  }, {
@@ -15610,14 +15640,14 @@ function qy(e, n) {
15610
15640
  },
15611
15641
  setFocus(t) {
15612
15642
  let n = Ky(t, "setFocus", Ae, () => ge()?.schema, e.debug);
15613
- return n.ok ? (j.setFocus(t), G.infoTick.value++, { ok: !0 }) : n;
15643
+ return n.ok ? (j.setFocus(t), e.debug && j.isInvokeActive() && console.info("[page-agent-sdk][focus] 在途流程进行中,聚焦将在下一次输入生效(当前流程不受影响)"), G.infoTick.value++, { ok: !0 }) : n;
15614
15644
  },
15615
15645
  addFocus(t) {
15616
15646
  let n = Ky(t, "addFocus", Ae, () => ge()?.schema, e.debug);
15617
15647
  return n.ok ? j.getFocuses().length >= 8 ? (e.debug && console.warn("[page-agent-sdk][focus] addFocus 拒绝:焦点数已达上限 8(augmentPrompt 注入每焦点子树 schema,过多致 system prompt 超预算)"), {
15618
15648
  ok: !1,
15619
15649
  error: "焦点数上限 8(避免 system prompt 撑爆)"
15620
- }) : (j.addFocus(t), G.infoTick.value++, { ok: !0 }) : n;
15650
+ }) : (j.addFocus(t), e.debug && j.isInvokeActive() && console.info("[page-agent-sdk][focus] 在途流程进行中,聚焦将在下一次输入生效(当前流程不受影响)"), G.infoTick.value++, { ok: !0 }) : n;
15621
15651
  },
15622
15652
  removeFocus(e) {
15623
15653
  Ae && (j.removeFocus(e), G.infoTick.value++);
@@ -17523,6 +17553,7 @@ function nw(e = {}) {
17523
17553
  content: "",
17524
17554
  timestamp: Date.now(),
17525
17555
  reasoning: "",
17556
+ reasoningTotal: 0,
17526
17557
  steps: []
17527
17558
  }), r = !1;
17528
17559
  s.messages.push(t);
@@ -17533,7 +17564,7 @@ function nw(e = {}) {
17533
17564
  e.round > 1 && (t.content || t.reasoning) && (r = !0);
17534
17565
  break;
17535
17566
  case "reasoning":
17536
- r &&= (t.reasoning += "\n", !1), t.reasoning = (t.reasoning + e.delta).slice(-4e3);
17567
+ r &&= (t.reasoning += "\n", !1), t.reasoningTotal += e.delta.length, t.reasoning = (t.reasoning + e.delta).slice(-4e3);
17537
17568
  break;
17538
17569
  case "text":
17539
17570
  r &&= (t.content += "\n", !1), t.content += e.delta;
@@ -17628,8 +17659,8 @@ function nw(e = {}) {
17628
17659
  await r?.(s.messages);
17629
17660
  } catch {}
17630
17661
  s.loading = !1, u = null;
17631
- let e = d.value.shift();
17632
- e !== void 0 && (g("user", e), s.loading = !0, s.error = null, u = new AbortController(), await _(u.signal));
17662
+ let t = d.value.shift();
17663
+ t !== void 0 && (g("user", t, e.getFocuses?.()), s.loading = !0, s.error = null, u = new AbortController(), await _(u.signal));
17633
17664
  }
17634
17665
  function b(e) {
17635
17666
  d.value.splice(e, 1);
@@ -17786,7 +17817,7 @@ var ow = {
17786
17817
  copyThinkingTruncTitle: "复制完整思考(渲染已截尾,复制取全量)",
17787
17818
  focusChipTitlePrefix: "精修中:",
17788
17819
  focusChipTitleHint: "(点击回看 · ✕ 移除)",
17789
- historyFocusChipTitlePrefix: "回看 ",
17820
+ historyFocusChipTitlePrefix: "发送时聚焦(路径可能已变):",
17790
17821
  removeFocus: "移除此焦点",
17791
17822
  sendHint: "Enter 发送 · Shift+Enter 换行",
17792
17823
  sendTitle: "发送",
@@ -18010,7 +18041,7 @@ var ow = {
18010
18041
  copyThinkingTruncTitle: "Copy full reasoning (display truncated, copy gets all)",
18011
18042
  focusChipTitlePrefix: "Focus:",
18012
18043
  focusChipTitleHint: "(click to view · ✕ remove)",
18013
- historyFocusChipTitlePrefix: "View ",
18044
+ historyFocusChipTitlePrefix: "Focused at send (path may have changed): ",
18014
18045
  removeFocus: "Remove this focus",
18015
18046
  sendHint: "Enter to send · Shift+Enter for newline",
18016
18047
  sendTitle: "Send",
@@ -18216,7 +18247,8 @@ function dw(e = {}) {
18216
18247
  onPersist: e.onPersist,
18217
18248
  onClear: e.onClear,
18218
18249
  onQueuedCleared: e.onQueuedCleared,
18219
- onBeforeRegenerate: e.onBeforeRegenerate
18250
+ onBeforeRegenerate: e.onBeforeRegenerate,
18251
+ getFocuses: e.getFocuses
18220
18252
  }), { state: n, sendMessage: r, removeQueuedTask: i, queuedTasks: a } = t, o = /* @__PURE__ */ Mn(""), s = /* @__PURE__ */ Mn(!0), c = () => {
18221
18253
  s.value = !s.value;
18222
18254
  }, l = /* @__PURE__ */ Mn(!1), u = () => {
@@ -19502,12 +19534,13 @@ var WT = ["innerHTML"], GT = {
19502
19534
  running: {
19503
19535
  type: Boolean,
19504
19536
  default: !1
19505
- }
19537
+ },
19538
+ total: { default: void 0 }
19506
19539
  },
19507
19540
  emits: ["toggle"],
19508
19541
  setup(e) {
19509
19542
  let t = e, n = sc(() => {
19510
- let e = t.text.length;
19543
+ let e = t.total ?? t.text.length;
19511
19544
  if (e < 1e3) return String(e);
19512
19545
  let n = e / 1e3;
19513
19546
  return `${n >= 100 ? Math.round(n) : +n.toFixed(1)}k`;
@@ -19525,10 +19558,10 @@ var WT = ["innerHTML"], GT = {
19525
19558
  Z("span", IE, W(e.expanded ? "收起" : "展开"), 1)
19526
19559
  ]), e.expanded ? (Y(), X("div", LE, W(e.text), 1)) : Q("", !0)], 2)) : Q("", !0);
19527
19560
  }
19528
- }), [["__scopeId", "data-v-b5a91bd4"]]), zE = ["open"], BE = { class: "sub-reason-head" }, VE = {
19561
+ }), [["__scopeId", "data-v-7ff8ea75"]]), zE = ["open"], BE = { class: "sub-reason-head" }, VE = {
19529
19562
  key: 0,
19530
19563
  class: "sub-reason-trunc"
19531
- }, HE = ["title"], UE = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
19564
+ }, HE = { class: "sub-reason-toggle" }, UE = ["title"], WE = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
19532
19565
  __name: "SubReasonDetails",
19533
19566
  props: {
19534
19567
  subReason: {},
@@ -19562,52 +19595,53 @@ var WT = ["innerHTML"], GT = {
19562
19595
  Z("span", { class: Be(["status-dot sm", e.status === "running" ? "running" : "ok"]) }, null, 2),
19563
19596
  Z("span", { class: Be(["sub-reason-label", { pulsing: e.status === "running" }]) }, W(e.status === "running" ? `${e.messages.thinkingCountPrefix}${a.value}${e.messages.charCountSuffix}` : e.messages.reasoningTitle), 3),
19564
19597
  o.value ? (Y(), X("span", VE, W(e.messages.truncatedNotePrefix) + W(e.subReason.length) + W(e.messages.truncatedNoteSuffix), 1)) : Q("", !0),
19598
+ Z("span", HE, W(r.value ? e.messages.collapse : e.messages.expand), 1),
19565
19599
  Z("button", {
19566
19600
  type: "button",
19567
19601
  class: Be(["sub-reason-copy", { copied: s.value }]),
19568
19602
  title: o.value ? e.messages.copyThinkingTruncTitle : e.messages.copyThinking,
19569
19603
  onClick: Ol(c, ["stop", "prevent"])
19570
- }, W(s.value ? e.messages.copied : e.messages.copy), 11, HE)
19604
+ }, W(s.value ? e.messages.copied : e.messages.copy), 11, UE)
19571
19605
  ]), Z("div", {
19572
19606
  ref_key: "bodyRef",
19573
19607
  ref: n,
19574
19608
  class: "sub-reason-body"
19575
19609
  }, W(o.value ? "…(前面已截断)\n" : "") + W(e.subReason), 513)], 40, zE));
19576
19610
  }
19577
- }), [["__scopeId", "data-v-82b847cc"]]), WE = {
19611
+ }), [["__scopeId", "data-v-ee8bc184"]]), GE = {
19578
19612
  key: 0,
19579
19613
  class: "steps-block"
19580
- }, GE = { class: "step-head" }, KE = { class: "step-name" }, qE = ["title"], JE = {
19614
+ }, KE = { class: "step-head" }, qE = { class: "step-name" }, JE = ["title"], YE = {
19581
19615
  key: 1,
19582
19616
  class: "step-count"
19583
- }, YE = {
19617
+ }, XE = {
19584
19618
  key: 2,
19585
19619
  class: "step-duration"
19586
- }, XE = ["onClick"], ZE = {
19620
+ }, ZE = ["onClick"], QE = {
19587
19621
  key: 0,
19588
19622
  class: "step-detail"
19589
- }, QE = {
19623
+ }, $E = {
19590
19624
  key: 0,
19591
19625
  class: "step-detail-call-label"
19592
- }, $E = {
19626
+ }, eD = {
19593
19627
  key: 1,
19594
19628
  class: "step-detail-section"
19595
- }, eD = { class: "step-detail-head" }, tD = ["onClick"], nD = { class: "step-detail-pre" }, rD = {
19629
+ }, tD = { class: "step-detail-head" }, nD = ["onClick"], rD = { class: "step-detail-pre" }, iD = {
19596
19630
  key: 2,
19597
19631
  class: "step-detail-section"
19598
- }, iD = { class: "step-detail-head" }, aD = ["onClick"], oD = {
19632
+ }, aD = { class: "step-detail-head" }, oD = ["onClick"], sD = {
19599
19633
  key: 3,
19600
19634
  class: "step-detail-empty"
19601
- }, sD = {
19635
+ }, cD = {
19602
19636
  key: 2,
19603
19637
  class: "step-children"
19604
- }, cD = { class: "step-children-label" }, lD = { class: "step-name" }, uD = {
19638
+ }, lD = { class: "step-children-label" }, uD = { class: "step-name" }, dD = {
19605
19639
  key: 0,
19606
19640
  class: "step-count"
19607
- }, dD = {
19641
+ }, fD = {
19608
19642
  key: 1,
19609
19643
  class: "step-status running"
19610
- }, fD = 2e3, pD = 4e3, mD = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
19644
+ }, pD = 2e3, mD = 4e3, hD = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
19611
19645
  __name: "MessageSteps",
19612
19646
  props: {
19613
19647
  steps: {},
@@ -19686,8 +19720,8 @@ var WT = ["innerHTML"], GT = {
19686
19720
  } catch {
19687
19721
  n = String(e);
19688
19722
  }
19689
- return n.length > fD ? {
19690
- text: n.slice(0, fD) + t.messages.displayTruncatedSuffix,
19723
+ return n.length > pD ? {
19724
+ text: n.slice(0, pD) + t.messages.displayTruncatedSuffix,
19691
19725
  truncated: !0
19692
19726
  } : {
19693
19727
  text: n,
@@ -19707,8 +19741,8 @@ var WT = ["innerHTML"], GT = {
19707
19741
  truncated: !1
19708
19742
  };
19709
19743
  let n = m(e);
19710
- return n.length > pD ? {
19711
- text: n.slice(0, pD) + t.messages.displayTruncatedSuffix,
19744
+ return n.length > mD ? {
19745
+ text: n.slice(0, mD) + t.messages.displayTruncatedSuffix,
19712
19746
  truncated: !0
19713
19747
  } : {
19714
19748
  text: n,
@@ -19728,45 +19762,45 @@ var WT = ["innerHTML"], GT = {
19728
19762
  }
19729
19763
  rw(e);
19730
19764
  }
19731
- return (t, s) => e.steps.length ? (Y(), X("div", WE, [(Y(!0), X(J, null, ga(i.value, (t, i) => (Y(), X("div", {
19765
+ return (t, s) => e.steps.length ? (Y(), X("div", GE, [(Y(!0), X(J, null, ga(i.value, (t, i) => (Y(), X("div", {
19732
19766
  key: i,
19733
19767
  class: Be(["step-item", t.status])
19734
19768
  }, [
19735
- Z("div", GE, [
19769
+ Z("div", KE, [
19736
19770
  Z("span", { class: Be(["status-dot", t.status]) }, null, 2),
19737
- Z("span", KE, W(t.name), 1),
19771
+ Z("span", qE, W(t.name), 1),
19738
19772
  a(t.name) ? (Y(), X("span", {
19739
19773
  key: 0,
19740
19774
  class: "subagent-badge",
19741
19775
  title: e.messages.subagentBadgeTitle
19742
- }, [xs(JT, { icon: e.icons.subagent }, null, 8, ["icon"]), Es(" " + W(e.messages.subagentBadge), 1)], 8, qE)) : Q("", !0),
19743
- t.count > 1 ? (Y(), X("span", JE, "×" + W(t.count), 1)) : Q("", !0),
19776
+ }, [xs(JT, { icon: e.icons.subagent }, null, 8, ["icon"]), Es(" " + W(e.messages.subagentBadge), 1)], 8, JE)) : Q("", !0),
19777
+ t.count > 1 ? (Y(), X("span", YE, "×" + W(t.count), 1)) : Q("", !0),
19744
19778
  Z("span", { class: Be(["step-status", t.status]) }, [xs(XT, { text: n(t.status) }, null, 8, ["text"])], 2),
19745
- t.durationMs != null && t.status !== "running" ? (Y(), X("span", YE, W(o(t.durationMs)), 1)) : Q("", !0),
19779
+ t.durationMs != null && t.status !== "running" ? (Y(), X("span", XE, W(o(t.durationMs)), 1)) : Q("", !0),
19746
19780
  f(t.calls) ? (Y(), X("button", {
19747
19781
  key: 3,
19748
19782
  type: "button",
19749
19783
  class: Be(["step-detail-toggle", { open: u.has(i) }]),
19750
19784
  onClick: (e) => d(i)
19751
- }, W(u.has(i) ? e.messages.collapse : e.messages.expand), 11, XE)) : Q("", !0)
19785
+ }, W(u.has(i) ? e.messages.collapse : e.messages.expand), 11, ZE)) : Q("", !0)
19752
19786
  ]),
19753
- u.has(i) && t.calls?.length ? (Y(), X("div", ZE, [(Y(!0), X(J, null, ga(t.calls, (n, r) => (Y(), X("div", {
19787
+ u.has(i) && t.calls?.length ? (Y(), X("div", QE, [(Y(!0), X(J, null, ga(t.calls, (n, r) => (Y(), X("div", {
19754
19788
  key: r,
19755
19789
  class: "step-detail-call"
19756
19790
  }, [
19757
- t.count > 1 ? (Y(), X("div", QE, W(e.messages.nthCallPrefix) + W(r + 1) + W(e.messages.nthCallSuffix), 1)) : Q("", !0),
19758
- p(n.args).text ? (Y(), X("div", $E, [Z("div", eD, [Es(W(e.messages.argsLabel), 1), Z("button", {
19791
+ t.count > 1 ? (Y(), X("div", $E, W(e.messages.nthCallPrefix) + W(r + 1) + W(e.messages.nthCallSuffix), 1)) : Q("", !0),
19792
+ p(n.args).text ? (Y(), X("div", eD, [Z("div", tD, [Es(W(e.messages.argsLabel), 1), Z("button", {
19759
19793
  type: "button",
19760
19794
  class: "step-detail-copy",
19761
19795
  onClick: (e) => g(p(n.args).text, p(n.args).truncated, n.args)
19762
- }, W(e.messages.copy), 9, tD)]), Z("pre", nD, W(p(n.args).text), 1)])) : Q("", !0),
19763
- n.status !== "running" && h(n.result).text ? (Y(), X("div", rD, [Z("div", iD, [Es(W(e.messages.resultLabel), 1), Z("button", {
19796
+ }, W(e.messages.copy), 9, nD)]), Z("pre", rD, W(p(n.args).text), 1)])) : Q("", !0),
19797
+ n.status !== "running" && h(n.result).text ? (Y(), X("div", iD, [Z("div", aD, [Es(W(e.messages.resultLabel), 1), Z("button", {
19764
19798
  type: "button",
19765
19799
  class: "step-detail-copy",
19766
19800
  onClick: (e) => g(h(n.result).text, h(n.result).truncated, n.result)
19767
- }, W(e.messages.copy), 9, aD)]), Z("pre", { class: Be(["step-detail-pre", { err: n.status === "error" }]) }, W(h(n.result).text), 3)])) : n.status !== "running" && !h(n.result).text ? (Y(), X("div", oD, W(e.messages.noResult), 1)) : Q("", !0)
19801
+ }, W(e.messages.copy), 9, oD)]), Z("pre", { class: Be(["step-detail-pre", { err: n.status === "error" }]) }, W(h(n.result).text), 3)])) : n.status !== "running" && !h(n.result).text ? (Y(), X("div", sD, W(e.messages.noResult), 1)) : Q("", !0)
19768
19802
  ]))), 128))])) : Q("", !0),
19769
- t.subReason ? (Y(), ms(UE, {
19803
+ t.subReason ? (Y(), ms(WE, {
19770
19804
  key: 1,
19771
19805
  "sub-reason": t.subReason,
19772
19806
  "sub-reason-full": t.subReasonFull,
@@ -19778,21 +19812,21 @@ var WT = ["innerHTML"], GT = {
19778
19812
  "status",
19779
19813
  "messages"
19780
19814
  ])) : Q("", !0),
19781
- t.children && t.children.length ? (Y(), X("div", sD, [Z("div", cD, [xs(JT, { icon: e.icons.subagentProgress }, null, 8, ["icon"]), Es(" " + W(e.messages.subagentProgress), 1)]), (Y(!0), X(J, null, ga(r(t.children), (e, t) => (Y(), X("div", {
19815
+ t.children && t.children.length ? (Y(), X("div", cD, [Z("div", lD, [xs(JT, { icon: e.icons.subagentProgress }, null, 8, ["icon"]), Es(" " + W(e.messages.subagentProgress), 1)]), (Y(!0), X(J, null, ga(r(t.children), (e, t) => (Y(), X("div", {
19782
19816
  key: t,
19783
19817
  class: Be(["step-child", e.status])
19784
19818
  }, [
19785
19819
  Z("span", { class: Be(["status-dot sm", e.status]) }, null, 2),
19786
- Z("span", lD, W(e.name), 1),
19787
- e.count > 1 ? (Y(), X("span", uD, "×" + W(e.count), 1)) : Q("", !0),
19788
- e.status === "running" ? (Y(), X("span", dD, "…")) : Q("", !0)
19820
+ Z("span", uD, W(e.name), 1),
19821
+ e.count > 1 ? (Y(), X("span", dD, "×" + W(e.count), 1)) : Q("", !0),
19822
+ e.status === "running" ? (Y(), X("span", fD, "…")) : Q("", !0)
19789
19823
  ], 2))), 128))])) : Q("", !0)
19790
19824
  ], 2))), 128))])) : Q("", !0);
19791
19825
  }
19792
19826
  }), [["__scopeId", "data-v-09c0a586"]]);
19793
19827
  //#endregion
19794
19828
  //#region node_modules/marked/lib/marked.esm.js
19795
- function hD() {
19829
+ function gD() {
19796
19830
  return {
19797
19831
  async: !1,
19798
19832
  breaks: !1,
@@ -19806,35 +19840,35 @@ function hD() {
19806
19840
  walkTokens: null
19807
19841
  };
19808
19842
  }
19809
- var gD = hD();
19810
- function _D(e) {
19811
- gD = e;
19843
+ var _D = gD();
19844
+ function vD(e) {
19845
+ _D = e;
19812
19846
  }
19813
- var vD = { exec: () => null };
19814
- function yD(e) {
19847
+ var yD = { exec: () => null };
19848
+ function bD(e) {
19815
19849
  let t = [];
19816
19850
  return (n) => {
19817
19851
  let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
19818
19852
  return i || (i = e(r), t[r] = i), i;
19819
19853
  };
19820
19854
  }
19821
- function bD(e, t = "") {
19855
+ function xD(e, t = "") {
19822
19856
  let n = typeof e == "string" ? e : e.source, r = {
19823
19857
  replace: (e, t) => {
19824
19858
  let i = typeof t == "string" ? t : t.source;
19825
- return i = i.replace(SD.caret, "$1"), n = n.replace(e, i), r;
19859
+ return i = i.replace(CD.caret, "$1"), n = n.replace(e, i), r;
19826
19860
  },
19827
19861
  getRegex: () => new RegExp(n, t)
19828
19862
  };
19829
19863
  return r;
19830
19864
  }
19831
- var xD = ((e = "") => {
19865
+ var SD = ((e = "") => {
19832
19866
  try {
19833
19867
  return !!RegExp("(?<=1)(?<!1)" + e);
19834
19868
  } catch {
19835
19869
  return !1;
19836
19870
  }
19837
- })(), SD = {
19871
+ })(), CD = {
19838
19872
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
19839
19873
  outputLinkReplace: /\\([\[\]])/g,
19840
19874
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -19885,121 +19919,121 @@ var xD = ((e = "") => {
19885
19919
  notSpaceStart: /^\S*/,
19886
19920
  endingNewline: /\n$/,
19887
19921
  listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
19888
- nextBulletRegex: yD((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
19889
- hrRegex: yD((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
19890
- fencesBeginRegex: yD((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
19891
- headingBeginRegex: yD((e) => RegExp(`^ {0,${e}}#`)),
19892
- htmlBeginRegex: yD((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
19893
- blockquoteBeginRegex: yD((e) => RegExp(`^ {0,${e}}>`))
19894
- }, CD = /^(?:[ \t]*(?:\n|$))+/, wD = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, TD = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ED = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, DD = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, OD = / {0,3}(?:[*+-]|\d{1,9}[.)])/, kD = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, AD = bD(kD).replace(/bull/g, OD).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), jD = bD(kD).replace(/bull/g, OD).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), MD = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ND = /^[^\n]+/, PD = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, FD = bD(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", PD).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ID = bD(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, OD).getRegex(), LD = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", RD = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, zD = bD("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n+|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n+|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n+|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", RD).replace("tag", LD).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), BD = (e) => bD(MD).replace("hr", ED).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", LD).getRegex(), VD = BD(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), HD = BD(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), UD = {
19895
- blockquote: bD(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", HD).getRegex(),
19896
- code: wD,
19897
- def: FD,
19898
- fences: TD,
19899
- heading: DD,
19900
- hr: ED,
19901
- html: zD,
19902
- lheading: AD,
19903
- list: ID,
19904
- newline: CD,
19905
- paragraph: VD,
19906
- table: vD,
19907
- text: ND
19908
- }, WD = bD("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ED).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", LD).getRegex(), GD = {
19909
- ...UD,
19922
+ nextBulletRegex: bD((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
19923
+ hrRegex: bD((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
19924
+ fencesBeginRegex: bD((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
19925
+ headingBeginRegex: bD((e) => RegExp(`^ {0,${e}}#`)),
19926
+ htmlBeginRegex: bD((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
19927
+ blockquoteBeginRegex: bD((e) => RegExp(`^ {0,${e}}>`))
19928
+ }, wD = /^(?:[ \t]*(?:\n|$))+/, TD = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ED = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, DD = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, OD = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, kD = / {0,3}(?:[*+-]|\d{1,9}[.)])/, AD = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, jD = xD(AD).replace(/bull/g, kD).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), MD = xD(AD).replace(/bull/g, kD).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), ND = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, PD = /^[^\n]+/, FD = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ID = xD(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", FD).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), LD = xD(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, kD).getRegex(), RD = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", zD = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, BD = xD("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n+|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n+|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n+|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", zD).replace("tag", RD).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), VD = (e) => xD(ND).replace("hr", DD).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", RD).getRegex(), HD = VD(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), UD = VD(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), WD = {
19929
+ blockquote: xD(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", UD).getRegex(),
19930
+ code: TD,
19931
+ def: ID,
19932
+ fences: ED,
19933
+ heading: OD,
19934
+ hr: DD,
19935
+ html: BD,
19910
19936
  lheading: jD,
19911
- table: WD,
19912
- paragraph: bD(MD).replace("hr", ED).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", WD).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", LD).getRegex()
19913
- }, KD = {
19914
- ...UD,
19915
- html: bD("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", RD).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
19937
+ list: LD,
19938
+ newline: wD,
19939
+ paragraph: HD,
19940
+ table: yD,
19941
+ text: PD
19942
+ }, GD = xD("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", DD).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", RD).getRegex(), KD = {
19943
+ ...WD,
19944
+ lheading: MD,
19945
+ table: GD,
19946
+ paragraph: xD(ND).replace("hr", DD).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", GD).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", RD).getRegex()
19947
+ }, qD = {
19948
+ ...WD,
19949
+ html: xD("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", zD).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
19916
19950
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
19917
19951
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
19918
- fences: vD,
19952
+ fences: yD,
19919
19953
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
19920
- paragraph: bD(MD).replace("hr", ED).replace("heading", " *#{1,6} *[^\n]").replace("lheading", AD).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
19921
- }, qD = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, JD = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, YD = /^( {2,}|\\)\n(?!\s*$)/, XD = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ZD = /[\p{P}\p{S}]/u, QD = /[\s\p{P}\p{S}]/u, $D = /[^\s\p{P}\p{S}]/u, eO = bD(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, QD).getRegex(), tO = /(?!~)[\p{P}\p{S}]/u, nO = /(?!~)[\s\p{P}\p{S}]/u, rO = /(?:[^\s\p{P}\p{S}]|~)/u, iO = bD(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", xD ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), aO = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, oO = bD(aO, "u").replace(/punct/g, ZD).getRegex(), sO = bD(aO, "u").replace(/punct/g, tO).getRegex(), cO = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", lO = bD(cO, "gu").replace(/notPunctSpace/g, $D).replace(/punctSpace/g, QD).replace(/punct/g, ZD).getRegex(), uO = bD(cO, "gu").replace(/notPunctSpace/g, rO).replace(/punctSpace/g, nO).replace(/punct/g, tO).getRegex(), dO = bD("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, $D).replace(/punctSpace/g, QD).replace(/punct/g, ZD).getRegex(), fO = bD(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, ZD).getRegex(), pO = bD("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, $D).replace(/punctSpace/g, QD).replace(/punct/g, ZD).getRegex(), mO = bD(/\\(punct)/, "gu").replace(/punct/g, ZD).getRegex(), hO = bD(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), gO = bD(RD).replace("(?:-->|$)", "-->").getRegex(), _O = bD("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", gO).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), vO = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, yO = bD(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", vO).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), bO = bD(/^!?\[(label)\]\[(ref)\]/).replace("label", vO).replace("ref", PD).getRegex(), xO = bD(/^!?\[(ref)\](?:\[\])?/).replace("ref", PD).getRegex(), SO = bD("reflink|nolink(?!\\()", "g").replace("reflink", bO).replace("nolink", xO).getRegex(), CO = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, wO = {
19922
- _backpedal: vD,
19923
- anyPunctuation: mO,
19924
- autolink: hO,
19925
- blockSkip: iO,
19926
- br: YD,
19927
- code: JD,
19928
- del: vD,
19929
- delLDelim: vD,
19930
- delRDelim: vD,
19931
- emStrongLDelim: oO,
19932
- emStrongRDelimAst: lO,
19933
- emStrongRDelimUnd: dO,
19934
- escape: qD,
19935
- link: yO,
19936
- nolink: xO,
19937
- punctuation: eO,
19938
- reflink: bO,
19939
- reflinkSearch: SO,
19940
- tag: _O,
19941
- text: XD,
19942
- url: vD
19943
- }, TO = {
19944
- ...wO,
19945
- link: bD(/^!?\[(label)\]\((.*?)\)/).replace("label", vO).getRegex(),
19946
- reflink: bD(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", vO).getRegex()
19947
- }, EO = {
19948
- ...wO,
19949
- emStrongRDelimAst: uO,
19954
+ paragraph: xD(ND).replace("hr", DD).replace("heading", " *#{1,6} *[^\n]").replace("lheading", jD).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
19955
+ }, JD = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, YD = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, XD = /^( {2,}|\\)\n(?!\s*$)/, ZD = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, QD = /[\p{P}\p{S}]/u, $D = /[\s\p{P}\p{S}]/u, eO = /[^\s\p{P}\p{S}]/u, tO = xD(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, $D).getRegex(), nO = /(?!~)[\p{P}\p{S}]/u, rO = /(?!~)[\s\p{P}\p{S}]/u, iO = /(?:[^\s\p{P}\p{S}]|~)/u, aO = xD(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", SD ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), oO = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, sO = xD(oO, "u").replace(/punct/g, QD).getRegex(), cO = xD(oO, "u").replace(/punct/g, nO).getRegex(), lO = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", uO = xD(lO, "gu").replace(/notPunctSpace/g, eO).replace(/punctSpace/g, $D).replace(/punct/g, QD).getRegex(), dO = xD(lO, "gu").replace(/notPunctSpace/g, iO).replace(/punctSpace/g, rO).replace(/punct/g, nO).getRegex(), fO = xD("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, eO).replace(/punctSpace/g, $D).replace(/punct/g, QD).getRegex(), pO = xD(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, QD).getRegex(), mO = xD("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, eO).replace(/punctSpace/g, $D).replace(/punct/g, QD).getRegex(), hO = xD(/\\(punct)/, "gu").replace(/punct/g, QD).getRegex(), gO = xD(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), _O = xD(zD).replace("(?:-->|$)", "-->").getRegex(), vO = xD("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", _O).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), yO = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, bO = xD(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", yO).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), xO = xD(/^!?\[(label)\]\[(ref)\]/).replace("label", yO).replace("ref", FD).getRegex(), SO = xD(/^!?\[(ref)\](?:\[\])?/).replace("ref", FD).getRegex(), CO = xD("reflink|nolink(?!\\()", "g").replace("reflink", xO).replace("nolink", SO).getRegex(), wO = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, TO = {
19956
+ _backpedal: yD,
19957
+ anyPunctuation: hO,
19958
+ autolink: gO,
19959
+ blockSkip: aO,
19960
+ br: XD,
19961
+ code: YD,
19962
+ del: yD,
19963
+ delLDelim: yD,
19964
+ delRDelim: yD,
19950
19965
  emStrongLDelim: sO,
19951
- delLDelim: fO,
19952
- delRDelim: pO,
19953
- url: bD(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", CO).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
19966
+ emStrongRDelimAst: uO,
19967
+ emStrongRDelimUnd: fO,
19968
+ escape: JD,
19969
+ link: bO,
19970
+ nolink: SO,
19971
+ punctuation: tO,
19972
+ reflink: xO,
19973
+ reflinkSearch: CO,
19974
+ tag: vO,
19975
+ text: ZD,
19976
+ url: yD
19977
+ }, EO = {
19978
+ ...TO,
19979
+ link: xD(/^!?\[(label)\]\((.*?)\)/).replace("label", yO).getRegex(),
19980
+ reflink: xD(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", yO).getRegex()
19981
+ }, DO = {
19982
+ ...TO,
19983
+ emStrongRDelimAst: dO,
19984
+ emStrongLDelim: cO,
19985
+ delLDelim: pO,
19986
+ delRDelim: mO,
19987
+ url: xD(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", wO).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
19954
19988
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
19955
19989
  del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
19956
- text: bD(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", CO).getRegex()
19957
- }, DO = {
19958
- ...EO,
19959
- br: bD(YD).replace("{2,}", "*").getRegex(),
19960
- text: bD(EO.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
19990
+ text: xD(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", wO).getRegex()
19961
19991
  }, OO = {
19962
- normal: UD,
19963
- gfm: GD,
19964
- pedantic: KD
19992
+ ...DO,
19993
+ br: xD(XD).replace("{2,}", "*").getRegex(),
19994
+ text: xD(DO.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
19965
19995
  }, kO = {
19966
- normal: wO,
19967
- gfm: EO,
19968
- breaks: DO,
19969
- pedantic: TO
19996
+ normal: WD,
19997
+ gfm: KD,
19998
+ pedantic: qD
19970
19999
  }, AO = {
20000
+ normal: TO,
20001
+ gfm: DO,
20002
+ breaks: OO,
20003
+ pedantic: EO
20004
+ }, jO = {
19971
20005
  "&": "&amp;",
19972
20006
  "<": "&lt;",
19973
20007
  ">": "&gt;",
19974
20008
  "\"": "&quot;",
19975
20009
  "'": "&#39;"
19976
- }, jO = (e) => AO[e];
19977
- function MO(e, t) {
20010
+ }, MO = (e) => jO[e];
20011
+ function NO(e, t) {
19978
20012
  if (t) {
19979
- if (SD.escapeTest.test(e)) return e.replace(SD.escapeReplace, jO);
19980
- } else if (SD.escapeTestNoEncode.test(e)) return e.replace(SD.escapeReplaceNoEncode, jO);
20013
+ if (CD.escapeTest.test(e)) return e.replace(CD.escapeReplace, MO);
20014
+ } else if (CD.escapeTestNoEncode.test(e)) return e.replace(CD.escapeReplaceNoEncode, MO);
19981
20015
  return e;
19982
20016
  }
19983
- function NO(e) {
20017
+ function PO(e) {
19984
20018
  try {
19985
- e = encodeURI(e).replace(SD.percentDecode, "%");
20019
+ e = encodeURI(e).replace(CD.percentDecode, "%");
19986
20020
  } catch {
19987
20021
  return null;
19988
20022
  }
19989
20023
  return e;
19990
20024
  }
19991
- function PO(e, t) {
19992
- let n = e.replace(SD.findPipe, (e, t, n) => {
20025
+ function FO(e, t) {
20026
+ let n = e.replace(CD.findPipe, (e, t, n) => {
19993
20027
  let r = !1, i = t;
19994
20028
  for (; --i >= 0 && n[i] === "\\";) r = !r;
19995
20029
  return r ? "|" : " |";
19996
- }).split(SD.splitPipe), r = 0;
20030
+ }).split(CD.splitPipe), r = 0;
19997
20031
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
19998
20032
  else for (; n.length < t;) n.push("");
19999
- for (; r < n.length; r++) n[r] = n[r].trim().replace(SD.slashPipe, "|");
20033
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(CD.slashPipe, "|");
20000
20034
  return n;
20001
20035
  }
20002
- function FO(e, t, n) {
20036
+ function IO(e, t, n) {
20003
20037
  let r = e.length;
20004
20038
  if (r === 0) return "";
20005
20039
  let i = 0;
@@ -20011,12 +20045,12 @@ function FO(e, t, n) {
20011
20045
  }
20012
20046
  return e.slice(0, r - i);
20013
20047
  }
20014
- function IO(e) {
20048
+ function LO(e) {
20015
20049
  let t = e.split("\n"), n = t.length - 1;
20016
- for (; n >= 0 && SD.blankLine.test(t[n]);) n--;
20050
+ for (; n >= 0 && CD.blankLine.test(t[n]);) n--;
20017
20051
  return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
20018
20052
  }
20019
- function LO(e, t) {
20053
+ function RO(e, t) {
20020
20054
  if (e.indexOf(t[1]) === -1) return -1;
20021
20055
  let n = 0;
20022
20056
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -20024,7 +20058,7 @@ function LO(e, t) {
20024
20058
  else if (e[r] === t[1] && (n--, n < 0)) return r;
20025
20059
  return n > 0 ? -2 : -1;
20026
20060
  }
20027
- function RO(e, t = 0) {
20061
+ function zO(e, t = 0) {
20028
20062
  let n = t, r = "";
20029
20063
  for (let t of e) if (t === " ") {
20030
20064
  let e = 4 - n % 4;
@@ -20032,7 +20066,7 @@ function RO(e, t = 0) {
20032
20066
  } else r += t, n++;
20033
20067
  return r;
20034
20068
  }
20035
- function zO(e, t, n, r, i) {
20069
+ function BO(e, t, n, r, i) {
20036
20070
  let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
20037
20071
  r.state.inLink = !0;
20038
20072
  let c = {
@@ -20045,7 +20079,7 @@ function zO(e, t, n, r, i) {
20045
20079
  };
20046
20080
  return r.state.inLink = !1, c;
20047
20081
  }
20048
- function BO(e, t, n) {
20082
+ function VO(e, t, n) {
20049
20083
  let r = e.match(n.other.indentCodeCompensation);
20050
20084
  if (r === null) return t;
20051
20085
  let i = r[1];
@@ -20056,12 +20090,12 @@ function BO(e, t, n) {
20056
20090
  return r.length >= i.length ? e.slice(i.length) : e;
20057
20091
  }).join("\n");
20058
20092
  }
20059
- var VO = class {
20093
+ var HO = class {
20060
20094
  options;
20061
20095
  rules;
20062
20096
  lexer;
20063
20097
  constructor(e) {
20064
- this.options = e || gD;
20098
+ this.options = e || _D;
20065
20099
  }
20066
20100
  space(e) {
20067
20101
  let t = this.rules.block.newline.exec(e);
@@ -20073,7 +20107,7 @@ var VO = class {
20073
20107
  code(e) {
20074
20108
  let t = this.rules.block.code.exec(e);
20075
20109
  if (t) {
20076
- let e = this.options.pedantic ? t[0] : IO(t[0]);
20110
+ let e = this.options.pedantic ? t[0] : LO(t[0]);
20077
20111
  return {
20078
20112
  type: "code",
20079
20113
  raw: e,
@@ -20085,7 +20119,7 @@ var VO = class {
20085
20119
  fences(e) {
20086
20120
  let t = this.rules.block.fences.exec(e);
20087
20121
  if (t) {
20088
- let e = t[0], n = BO(e, t[3] || "", this.rules);
20122
+ let e = t[0], n = VO(e, t[3] || "", this.rules);
20089
20123
  return {
20090
20124
  type: "code",
20091
20125
  raw: e,
@@ -20099,12 +20133,12 @@ var VO = class {
20099
20133
  if (t) {
20100
20134
  let e = t[2].trim();
20101
20135
  if (this.rules.other.endingHash.test(e)) {
20102
- let t = FO(e, "#");
20136
+ let t = IO(e, "#");
20103
20137
  (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
20104
20138
  }
20105
20139
  return {
20106
20140
  type: "heading",
20107
- raw: FO(t[0], "\n"),
20141
+ raw: IO(t[0], "\n"),
20108
20142
  depth: t[1].length,
20109
20143
  text: e,
20110
20144
  tokens: this.lexer.inline(e)
@@ -20115,13 +20149,13 @@ var VO = class {
20115
20149
  let t = this.rules.block.hr.exec(e);
20116
20150
  if (t) return {
20117
20151
  type: "hr",
20118
- raw: FO(t[0], "\n")
20152
+ raw: IO(t[0], "\n")
20119
20153
  };
20120
20154
  }
20121
20155
  blockquote(e) {
20122
20156
  let t = this.rules.block.blockquote.exec(e);
20123
20157
  if (t) {
20124
- let e = FO(t[0], "\n").split("\n"), n = "", r = "", i = [];
20158
+ let e = IO(t[0], "\n").split("\n"), n = "", r = "", i = [];
20125
20159
  for (; e.length > 0;) {
20126
20160
  let t = !1, a = [], o;
20127
20161
  for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
@@ -20171,7 +20205,7 @@ ${c}` : c;
20171
20205
  let n = !1, r = "", s = "";
20172
20206
  if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
20173
20207
  r = t[0], e = e.substring(r.length);
20174
- let c = RO(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
20208
+ let c = zO(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
20175
20209
  if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
20176
20210
  let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
20177
20211
  for (; e;) {
@@ -20237,7 +20271,7 @@ ${c}` : c;
20237
20271
  html(e) {
20238
20272
  let t = this.rules.block.html.exec(e);
20239
20273
  if (t) {
20240
- let e = IO(t[0]);
20274
+ let e = LO(t[0]);
20241
20275
  return {
20242
20276
  type: "html",
20243
20277
  block: !0,
@@ -20254,7 +20288,7 @@ ${c}` : c;
20254
20288
  return {
20255
20289
  type: "def",
20256
20290
  tag: e,
20257
- raw: FO(t[0], "\n"),
20291
+ raw: IO(t[0], "\n"),
20258
20292
  href: n,
20259
20293
  title: r
20260
20294
  };
@@ -20263,9 +20297,9 @@ ${c}` : c;
20263
20297
  table(e) {
20264
20298
  let t = this.rules.block.table.exec(e);
20265
20299
  if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
20266
- let n = PO(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
20300
+ let n = FO(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
20267
20301
  type: "table",
20268
- raw: FO(t[0], "\n"),
20302
+ raw: IO(t[0], "\n"),
20269
20303
  header: [],
20270
20304
  align: [],
20271
20305
  rows: []
@@ -20278,7 +20312,7 @@ ${c}` : c;
20278
20312
  header: !0,
20279
20313
  align: a.align[e]
20280
20314
  });
20281
- for (let e of i) a.rows.push(PO(e, a.header.length).map((e, t) => ({
20315
+ for (let e of i) a.rows.push(FO(e, a.header.length).map((e, t) => ({
20282
20316
  text: e,
20283
20317
  tokens: this.lexer.inline(e),
20284
20318
  header: !1,
@@ -20293,7 +20327,7 @@ ${c}` : c;
20293
20327
  let e = t[1].trim();
20294
20328
  return {
20295
20329
  type: "heading",
20296
- raw: FO(t[0], "\n"),
20330
+ raw: IO(t[0], "\n"),
20297
20331
  depth: t[2].charAt(0) === "=" ? 1 : 2,
20298
20332
  text: e,
20299
20333
  tokens: this.lexer.inline(e)
@@ -20346,10 +20380,10 @@ ${c}` : c;
20346
20380
  let e = t[2].trim();
20347
20381
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
20348
20382
  if (!this.rules.other.endAngleBracket.test(e)) return;
20349
- let t = FO(e.slice(0, -1), "\\");
20383
+ let t = IO(e.slice(0, -1), "\\");
20350
20384
  if ((e.length - t.length) % 2 == 0) return;
20351
20385
  } else {
20352
- let e = LO(t[2], "()");
20386
+ let e = RO(t[2], "()");
20353
20387
  if (e === -2) return;
20354
20388
  if (e > -1) {
20355
20389
  let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
@@ -20361,7 +20395,7 @@ ${c}` : c;
20361
20395
  let e = this.rules.other.pedanticHrefTitle.exec(n);
20362
20396
  e && (n = e[1], r = e[3]);
20363
20397
  } else r = t[3] ? t[3].slice(1, -1) : "";
20364
- return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), zO(t, {
20398
+ return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), BO(t, {
20365
20399
  href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
20366
20400
  title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
20367
20401
  }, t[0], this.lexer, this.rules);
@@ -20379,7 +20413,7 @@ ${c}` : c;
20379
20413
  text: e
20380
20414
  };
20381
20415
  }
20382
- return zO(n, e, n[0], this.lexer, this.rules);
20416
+ return BO(n, e, n[0], this.lexer, this.rules);
20383
20417
  }
20384
20418
  }
20385
20419
  emStrong(e, t, n = "") {
@@ -20511,29 +20545,29 @@ ${c}` : c;
20511
20545
  };
20512
20546
  }
20513
20547
  }
20514
- }, HO = class e {
20548
+ }, UO = class e {
20515
20549
  tokens;
20516
20550
  options;
20517
20551
  state;
20518
20552
  inlineQueue;
20519
20553
  tokenizer;
20520
20554
  constructor(e) {
20521
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || gD, this.options.tokenizer = this.options.tokenizer || new VO(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
20555
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || _D, this.options.tokenizer = this.options.tokenizer || new HO(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
20522
20556
  inLink: !1,
20523
20557
  inRawBlock: !1,
20524
20558
  top: !0
20525
20559
  };
20526
20560
  let t = {
20527
- other: SD,
20528
- block: OO.normal,
20529
- inline: kO.normal
20561
+ other: CD,
20562
+ block: kO.normal,
20563
+ inline: AO.normal
20530
20564
  };
20531
- this.options.pedantic ? (t.block = OO.pedantic, t.inline = kO.pedantic) : this.options.gfm && (t.block = OO.gfm, this.options.breaks ? t.inline = kO.breaks : t.inline = kO.gfm), this.tokenizer.rules = t;
20565
+ this.options.pedantic ? (t.block = kO.pedantic, t.inline = AO.pedantic) : this.options.gfm && (t.block = kO.gfm, this.options.breaks ? t.inline = AO.breaks : t.inline = AO.gfm), this.tokenizer.rules = t;
20532
20566
  }
20533
20567
  static get rules() {
20534
20568
  return {
20535
- block: OO,
20536
- inline: kO
20569
+ block: kO,
20570
+ inline: AO
20537
20571
  };
20538
20572
  }
20539
20573
  static lex(t, n) {
@@ -20543,7 +20577,7 @@ ${c}` : c;
20543
20577
  return new e(n).inlineTokens(t);
20544
20578
  }
20545
20579
  lex(e) {
20546
- e = e.replace(SD.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
20580
+ e = e.replace(CD.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
20547
20581
  for (let e = 0; e < this.inlineQueue.length; e++) {
20548
20582
  let t = this.inlineQueue[e];
20549
20583
  this.inlineTokens(t.src, t.tokens);
@@ -20551,7 +20585,7 @@ ${c}` : c;
20551
20585
  return this.inlineQueue = [], this.tokens;
20552
20586
  }
20553
20587
  blockTokens(e, t = [], n = !1) {
20554
- this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(SD.tabCharGlobal, " ").replace(SD.spaceLine, ""));
20588
+ this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(CD.tabCharGlobal, " ").replace(CD.spaceLine, ""));
20555
20589
  let r = Infinity;
20556
20590
  for (; e;) {
20557
20591
  if (e.length < r) r = e.length;
@@ -20733,18 +20767,18 @@ ${c}` : c;
20733
20767
  if (this.options.silent) console.error(t);
20734
20768
  else throw Error(t);
20735
20769
  }
20736
- }, UO = class {
20770
+ }, WO = class {
20737
20771
  options;
20738
20772
  parser;
20739
20773
  constructor(e) {
20740
- this.options = e || gD;
20774
+ this.options = e || _D;
20741
20775
  }
20742
20776
  space(e) {
20743
20777
  return "";
20744
20778
  }
20745
20779
  code({ text: e, lang: t, escaped: n }) {
20746
- let r = (t || "").match(SD.notSpaceStart)?.[0], i = e.replace(SD.endingNewline, "") + "\n";
20747
- return r ? "<pre><code class=\"language-" + MO(r) + "\">" + (n ? i : MO(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : MO(i, !0)) + "</code></pre>\n";
20780
+ let r = (t || "").match(CD.notSpaceStart)?.[0], i = e.replace(CD.endingNewline, "") + "\n";
20781
+ return r ? "<pre><code class=\"language-" + NO(r) + "\">" + (n ? i : NO(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : NO(i, !0)) + "</code></pre>\n";
20748
20782
  }
20749
20783
  blockquote({ tokens: e }) {
20750
20784
  return `<blockquote>
@@ -20814,7 +20848,7 @@ ${e}</tr>
20814
20848
  return `<em>${this.parser.parseInline(e)}</em>`;
20815
20849
  }
20816
20850
  codespan({ text: e }) {
20817
- return `<code>${MO(e, !0)}</code>`;
20851
+ return `<code>${NO(e, !0)}</code>`;
20818
20852
  }
20819
20853
  br(e) {
20820
20854
  return "<br>";
@@ -20823,24 +20857,24 @@ ${e}</tr>
20823
20857
  return `<del>${this.parser.parseInline(e)}</del>`;
20824
20858
  }
20825
20859
  link({ href: e, title: t, tokens: n }) {
20826
- let r = this.parser.parseInline(n), i = NO(e);
20860
+ let r = this.parser.parseInline(n), i = PO(e);
20827
20861
  if (i === null) return r;
20828
20862
  e = i;
20829
20863
  let a = "<a href=\"" + e + "\"";
20830
- return t && (a += " title=\"" + MO(t) + "\""), a += ">" + r + "</a>", a;
20864
+ return t && (a += " title=\"" + NO(t) + "\""), a += ">" + r + "</a>", a;
20831
20865
  }
20832
20866
  image({ href: e, title: t, text: n, tokens: r }) {
20833
20867
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
20834
- let i = NO(e);
20835
- if (i === null) return MO(n);
20868
+ let i = PO(e);
20869
+ if (i === null) return NO(n);
20836
20870
  e = i;
20837
- let a = `<img src="${e}" alt="${MO(n)}"`;
20838
- return t && (a += ` title="${MO(t)}"`), a += ">", a;
20871
+ let a = `<img src="${e}" alt="${NO(n)}"`;
20872
+ return t && (a += ` title="${NO(t)}"`), a += ">", a;
20839
20873
  }
20840
20874
  text(e) {
20841
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : MO(e.text);
20875
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : NO(e.text);
20842
20876
  }
20843
- }, WO = class {
20877
+ }, GO = class {
20844
20878
  strong({ text: e }) {
20845
20879
  return e;
20846
20880
  }
@@ -20871,12 +20905,12 @@ ${e}</tr>
20871
20905
  checkbox({ raw: e }) {
20872
20906
  return e;
20873
20907
  }
20874
- }, GO = class e {
20908
+ }, KO = class e {
20875
20909
  options;
20876
20910
  renderer;
20877
20911
  textRenderer;
20878
20912
  constructor(e) {
20879
- this.options = e || gD, this.options.renderer = this.options.renderer || new UO(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new WO();
20913
+ this.options = e || _D, this.options.renderer = this.options.renderer || new WO(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new GO();
20880
20914
  }
20881
20915
  static parse(t, n) {
20882
20916
  return new e(n).parse(t);
@@ -21022,11 +21056,11 @@ ${e}</tr>
21022
21056
  }
21023
21057
  return n;
21024
21058
  }
21025
- }, KO = class {
21059
+ }, qO = class {
21026
21060
  options;
21027
21061
  block;
21028
21062
  constructor(e) {
21029
- this.options = e || gD;
21063
+ this.options = e || _D;
21030
21064
  }
21031
21065
  static passThroughHooks = /* @__PURE__ */ new Set([
21032
21066
  "preprocess",
@@ -21052,22 +21086,22 @@ ${e}</tr>
21052
21086
  return e;
21053
21087
  }
21054
21088
  provideLexer(e = this.block) {
21055
- return e ? HO.lex : HO.lexInline;
21089
+ return e ? UO.lex : UO.lexInline;
21056
21090
  }
21057
21091
  provideParser(e = this.block) {
21058
- return e ? GO.parse : GO.parseInline;
21092
+ return e ? KO.parse : KO.parseInline;
21059
21093
  }
21060
- }, qO = new class {
21061
- defaults = hD();
21094
+ }, JO = new class {
21095
+ defaults = gD();
21062
21096
  options = this.setOptions;
21063
21097
  parse = this.parseMarkdown(!0);
21064
21098
  parseInline = this.parseMarkdown(!1);
21065
- Parser = GO;
21066
- Renderer = UO;
21067
- TextRenderer = WO;
21068
- Lexer = HO;
21069
- Tokenizer = VO;
21070
- Hooks = KO;
21099
+ Parser = KO;
21100
+ Renderer = WO;
21101
+ TextRenderer = GO;
21102
+ Lexer = UO;
21103
+ Tokenizer = HO;
21104
+ Hooks = qO;
21071
21105
  constructor(...e) {
21072
21106
  this.use(...e);
21073
21107
  }
@@ -21118,7 +21152,7 @@ ${e}</tr>
21118
21152
  }
21119
21153
  "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
21120
21154
  }), n.extensions = t), e.renderer) {
21121
- let t = this.defaults.renderer || new UO(this.defaults);
21155
+ let t = this.defaults.renderer || new WO(this.defaults);
21122
21156
  for (let n in e.renderer) {
21123
21157
  if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
21124
21158
  if (["options", "parser"].includes(n)) continue;
@@ -21131,7 +21165,7 @@ ${e}</tr>
21131
21165
  n.renderer = t;
21132
21166
  }
21133
21167
  if (e.tokenizer) {
21134
- let t = this.defaults.tokenizer || new VO(this.defaults);
21168
+ let t = this.defaults.tokenizer || new HO(this.defaults);
21135
21169
  for (let n in e.tokenizer) {
21136
21170
  if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
21137
21171
  if ([
@@ -21148,13 +21182,13 @@ ${e}</tr>
21148
21182
  n.tokenizer = t;
21149
21183
  }
21150
21184
  if (e.hooks) {
21151
- let t = this.defaults.hooks || new KO();
21185
+ let t = this.defaults.hooks || new qO();
21152
21186
  for (let n in e.hooks) {
21153
21187
  if (!(n in t)) throw Error(`hook '${n}' does not exist`);
21154
21188
  if (["options", "block"].includes(n)) continue;
21155
21189
  let r = n, i = e.hooks[r], a = t[r];
21156
- KO.passThroughHooks.has(n) ? t[r] = (e) => {
21157
- if (this.defaults.async && KO.passThroughHooksRespectAsync.has(n)) return (async () => {
21190
+ qO.passThroughHooks.has(n) ? t[r] = (e) => {
21191
+ if (this.defaults.async && qO.passThroughHooksRespectAsync.has(n)) return (async () => {
21158
21192
  let n = await i.call(t, e);
21159
21193
  return a.call(t, n);
21160
21194
  })();
@@ -21191,10 +21225,10 @@ ${e}</tr>
21191
21225
  }, this;
21192
21226
  }
21193
21227
  lexer(e, t) {
21194
- return HO.lex(e, t ?? this.defaults);
21228
+ return UO.lex(e, t ?? this.defaults);
21195
21229
  }
21196
21230
  parser(e, t) {
21197
- return GO.parse(e, t ?? this.defaults);
21231
+ return KO.parse(e, t ?? this.defaults);
21198
21232
  }
21199
21233
  parseMarkdown(e) {
21200
21234
  return (t, n) => {
@@ -21206,16 +21240,16 @@ ${e}</tr>
21206
21240
  if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
21207
21241
  if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
21208
21242
  if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
21209
- let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? HO.lex : HO.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
21243
+ let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? UO.lex : UO.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
21210
21244
  i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
21211
- let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? GO.parse : GO.parseInline)(a, i);
21245
+ let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? KO.parse : KO.parseInline)(a, i);
21212
21246
  return i.hooks ? await i.hooks.postprocess(o) : o;
21213
21247
  })().catch(a);
21214
21248
  try {
21215
21249
  i.hooks && (t = i.hooks.preprocess(t));
21216
- let n = (i.hooks ? i.hooks.provideLexer(e) : e ? HO.lex : HO.lexInline)(t, i);
21250
+ let n = (i.hooks ? i.hooks.provideLexer(e) : e ? UO.lex : UO.lexInline)(t, i);
21217
21251
  i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
21218
- let r = (i.hooks ? i.hooks.provideParser(e) : e ? GO.parse : GO.parseInline)(n, i);
21252
+ let r = (i.hooks ? i.hooks.provideParser(e) : e ? KO.parse : KO.parseInline)(n, i);
21219
21253
  return i.hooks && (r = i.hooks.postprocess(r)), r;
21220
21254
  } catch (e) {
21221
21255
  return a(e);
@@ -21225,7 +21259,7 @@ ${e}</tr>
21225
21259
  onError(e, t) {
21226
21260
  return (n) => {
21227
21261
  if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
21228
- let e = "<p>An error occurred:</p><pre>" + MO(n.message + "", !0) + "</pre>";
21262
+ let e = "<p>An error occurred:</p><pre>" + NO(n.message + "", !0) + "</pre>";
21229
21263
  return t ? Promise.resolve(e) : e;
21230
21264
  }
21231
21265
  if (t) return Promise.reject(n);
@@ -21233,19 +21267,19 @@ ${e}</tr>
21233
21267
  };
21234
21268
  }
21235
21269
  }();
21236
- function JO(e, t) {
21237
- return qO.parse(e, t);
21238
- }
21239
- JO.options = JO.setOptions = function(e) {
21240
- return qO.setOptions(e), JO.defaults = qO.defaults, _D(JO.defaults), JO;
21241
- }, JO.getDefaults = hD, JO.defaults = gD, JO.use = function(...e) {
21242
- return qO.use(...e), JO.defaults = qO.defaults, _D(JO.defaults), JO;
21243
- }, JO.walkTokens = function(e, t) {
21244
- return qO.walkTokens(e, t);
21245
- }, JO.parseInline = qO.parseInline, JO.Parser = GO, JO.parser = GO.parse, JO.Renderer = UO, JO.TextRenderer = WO, JO.Lexer = HO, JO.lexer = HO.lex, JO.Tokenizer = VO, JO.Hooks = KO, JO.parse = JO, JO.options, JO.setOptions, JO.use, JO.walkTokens, JO.parseInline, GO.parse, HO.lex;
21270
+ function YO(e, t) {
21271
+ return JO.parse(e, t);
21272
+ }
21273
+ YO.options = YO.setOptions = function(e) {
21274
+ return JO.setOptions(e), YO.defaults = JO.defaults, vD(YO.defaults), YO;
21275
+ }, YO.getDefaults = gD, YO.defaults = _D, YO.use = function(...e) {
21276
+ return JO.use(...e), YO.defaults = JO.defaults, vD(YO.defaults), YO;
21277
+ }, YO.walkTokens = function(e, t) {
21278
+ return JO.walkTokens(e, t);
21279
+ }, YO.parseInline = JO.parseInline, YO.Parser = KO, YO.parser = KO.parse, YO.Renderer = WO, YO.TextRenderer = GO, YO.Lexer = UO, YO.lexer = UO.lex, YO.Tokenizer = HO, YO.Hooks = qO, YO.parse = YO, YO.options, YO.setOptions, YO.use, YO.walkTokens, YO.parseInline, KO.parse, UO.lex;
21246
21280
  //#endregion
21247
21281
  //#region node_modules/highlight.js/lib/core.js
21248
- var YO = /* @__PURE__ */ h(((e, t) => {
21282
+ var XO = /* @__PURE__ */ h(((e, t) => {
21249
21283
  function n(e) {
21250
21284
  return e instanceof Map ? e.clear = e.delete = e.set = function() {
21251
21285
  throw Error("map is read-only");
@@ -22086,7 +22120,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
22086
22120
  return Object.assign(e, F), e;
22087
22121
  }, ke = Oe({});
22088
22122
  ke.newInstance = () => Oe({}), t.exports = ke, ke.HighlightJS = ke, ke.default = ke;
22089
- })), XO = /* @__PURE__ */ h(((e, t) => {
22123
+ })), ZO = /* @__PURE__ */ h(((e, t) => {
22090
22124
  function n(e) {
22091
22125
  let t = e.regex, n = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, i = {
22092
22126
  className: "symbol",
@@ -22251,7 +22285,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
22251
22285
  };
22252
22286
  }
22253
22287
  t.exports = n;
22254
- })), ZO = /* @__PURE__ */ h(((e, t) => {
22288
+ })), QO = /* @__PURE__ */ h(((e, t) => {
22255
22289
  function n(e) {
22256
22290
  let t = e.regex, n = {}, r = {
22257
22291
  begin: /\$\{/,
@@ -22419,7 +22453,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
22419
22453
  };
22420
22454
  }
22421
22455
  t.exports = n;
22422
- })), QO = /* @__PURE__ */ h(((e, t) => {
22456
+ })), $O = /* @__PURE__ */ h(((e, t) => {
22423
22457
  function n(e) {
22424
22458
  let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
22425
22459
  className: "type",
@@ -22594,7 +22628,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
22594
22628
  };
22595
22629
  }
22596
22630
  t.exports = n;
22597
- })), $O = /* @__PURE__ */ h(((e, t) => {
22631
+ })), ek = /* @__PURE__ */ h(((e, t) => {
22598
22632
  function n(e) {
22599
22633
  let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(?!struct)(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
22600
22634
  className: "type",
@@ -22818,7 +22852,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
22818
22852
  };
22819
22853
  }
22820
22854
  t.exports = n;
22821
- })), ek = /* @__PURE__ */ h(((e, t) => {
22855
+ })), tk = /* @__PURE__ */ h(((e, t) => {
22822
22856
  function n(e) {
22823
22857
  let t = [
22824
22858
  "bool",
@@ -23077,7 +23111,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
23077
23111
  };
23078
23112
  }
23079
23113
  t.exports = n;
23080
- })), tk = /* @__PURE__ */ h(((e, t) => {
23114
+ })), nk = /* @__PURE__ */ h(((e, t) => {
23081
23115
  var n = (e) => ({
23082
23116
  IMPORTANT: {
23083
23117
  scope: "meta",
@@ -23216,7 +23250,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
23216
23250
  };
23217
23251
  }
23218
23252
  t.exports = u;
23219
- })), nk = /* @__PURE__ */ h(((e, t) => {
23253
+ })), rk = /* @__PURE__ */ h(((e, t) => {
23220
23254
  function n(e) {
23221
23255
  let t = e.regex, n = {
23222
23256
  begin: /<\/?[A-Za-z_]/,
@@ -23396,7 +23430,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
23396
23430
  };
23397
23431
  }
23398
23432
  t.exports = n;
23399
- })), rk = /* @__PURE__ */ h(((e, t) => {
23433
+ })), ik = /* @__PURE__ */ h(((e, t) => {
23400
23434
  function n(e) {
23401
23435
  let t = e.regex;
23402
23436
  return {
@@ -23434,7 +23468,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
23434
23468
  };
23435
23469
  }
23436
23470
  t.exports = n;
23437
- })), ik = /* @__PURE__ */ h(((e, t) => {
23471
+ })), ak = /* @__PURE__ */ h(((e, t) => {
23438
23472
  function n(e) {
23439
23473
  let t = e.regex, n = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", r = t.either(/\b([A-Z]+[a-z0-9]+)+/, /\b([A-Z]+[a-z0-9]+)+[A-Z]+/), i = t.concat(r, /(::\w+)*/), a = {
23440
23474
  "variable.constant": [
@@ -23695,7 +23729,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
23695
23729
  };
23696
23730
  }
23697
23731
  t.exports = n;
23698
- })), ak = /* @__PURE__ */ h(((e, t) => {
23732
+ })), ok = /* @__PURE__ */ h(((e, t) => {
23699
23733
  function n(e) {
23700
23734
  let t = {
23701
23735
  keyword: [
@@ -23834,7 +23868,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
23834
23868
  };
23835
23869
  }
23836
23870
  t.exports = n;
23837
- })), ok = /* @__PURE__ */ h(((e, t) => {
23871
+ })), sk = /* @__PURE__ */ h(((e, t) => {
23838
23872
  function n(e) {
23839
23873
  let t = e.regex;
23840
23874
  return {
@@ -23900,7 +23934,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
23900
23934
  };
23901
23935
  }
23902
23936
  t.exports = n;
23903
- })), sk = /* @__PURE__ */ h(((e, t) => {
23937
+ })), ck = /* @__PURE__ */ h(((e, t) => {
23904
23938
  function n(e) {
23905
23939
  let t = e.regex, n = {
23906
23940
  className: "number",
@@ -23987,7 +24021,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
23987
24021
  };
23988
24022
  }
23989
24023
  t.exports = n;
23990
- })), ck = /* @__PURE__ */ h(((e, t) => {
24024
+ })), lk = /* @__PURE__ */ h(((e, t) => {
23991
24025
  var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
23992
24026
  className: "number",
23993
24027
  variants: [
@@ -24155,7 +24189,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
24155
24189
  };
24156
24190
  }
24157
24191
  t.exports = s;
24158
- })), lk = /* @__PURE__ */ h(((e, t) => {
24192
+ })), uk = /* @__PURE__ */ h(((e, t) => {
24159
24193
  var n = "[A-Za-z$_][0-9A-Za-z$_]*", r = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), i = [
24160
24194
  "true",
24161
24195
  "false",
@@ -24590,7 +24624,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
24590
24624
  };
24591
24625
  }
24592
24626
  t.exports = u;
24593
- })), uk = /* @__PURE__ */ h(((e, t) => {
24627
+ })), dk = /* @__PURE__ */ h(((e, t) => {
24594
24628
  function n(e) {
24595
24629
  let t = {
24596
24630
  className: "attr",
@@ -24625,7 +24659,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
24625
24659
  };
24626
24660
  }
24627
24661
  t.exports = n;
24628
- })), dk = /* @__PURE__ */ h(((e, t) => {
24662
+ })), fk = /* @__PURE__ */ h(((e, t) => {
24629
24663
  var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
24630
24664
  className: "number",
24631
24665
  variants: [
@@ -24825,7 +24859,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
24825
24859
  };
24826
24860
  }
24827
24861
  t.exports = o;
24828
- })), fk = /* @__PURE__ */ h(((e, t) => {
24862
+ })), pk = /* @__PURE__ */ h(((e, t) => {
24829
24863
  var n = (e) => ({
24830
24864
  IMPORTANT: {
24831
24865
  scope: "meta",
@@ -25016,7 +25050,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
25016
25050
  };
25017
25051
  }
25018
25052
  t.exports = d;
25019
- })), pk = /* @__PURE__ */ h(((e, t) => {
25053
+ })), mk = /* @__PURE__ */ h(((e, t) => {
25020
25054
  function n(e) {
25021
25055
  let t = "\\[=*\\[", n = "\\]=*\\]", r = {
25022
25056
  begin: t,
@@ -25061,7 +25095,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
25061
25095
  };
25062
25096
  }
25063
25097
  t.exports = n;
25064
- })), mk = /* @__PURE__ */ h(((e, t) => {
25098
+ })), hk = /* @__PURE__ */ h(((e, t) => {
25065
25099
  function n(e) {
25066
25100
  let t = {
25067
25101
  className: "variable",
@@ -25117,7 +25151,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
25117
25151
  };
25118
25152
  }
25119
25153
  t.exports = n;
25120
- })), hk = /* @__PURE__ */ h(((e, t) => {
25154
+ })), gk = /* @__PURE__ */ h(((e, t) => {
25121
25155
  function n(e) {
25122
25156
  let t = e.regex, n = /* @__PURE__ */ "abs.accept.alarm.and.atan2.bind.binmode.bless.break.caller.chdir.chmod.chomp.chop.chown.chr.chroot.class.close.closedir.connect.continue.cos.crypt.dbmclose.dbmopen.defined.delete.die.do.dump.each.else.elsif.endgrent.endhostent.endnetent.endprotoent.endpwent.endservent.eof.eval.exec.exists.exit.exp.fcntl.field.fileno.flock.for.foreach.fork.format.formline.getc.getgrent.getgrgid.getgrnam.gethostbyaddr.gethostbyname.gethostent.getlogin.getnetbyaddr.getnetbyname.getnetent.getpeername.getpgrp.getpriority.getprotobyname.getprotobynumber.getprotoent.getpwent.getpwnam.getpwuid.getservbyname.getservbyport.getservent.getsockname.getsockopt.given.glob.gmtime.goto.grep.gt.hex.if.index.int.ioctl.join.keys.kill.last.lc.lcfirst.length.link.listen.local.localtime.log.lstat.lt.ma.map.method.mkdir.msgctl.msgget.msgrcv.msgsnd.my.ne.next.no.not.oct.open.opendir.or.ord.our.pack.package.pipe.pop.pos.print.printf.prototype.push.q|0.qq.quotemeta.qw.qx.rand.read.readdir.readline.readlink.readpipe.recv.redo.ref.rename.require.reset.return.reverse.rewinddir.rindex.rmdir.say.scalar.seek.seekdir.select.semctl.semget.semop.send.setgrent.sethostent.setnetent.setpgrp.setpriority.setprotoent.setpwent.setservent.setsockopt.shift.shmctl.shmget.shmread.shmwrite.shutdown.sin.sleep.socket.socketpair.sort.splice.split.sprintf.sqrt.srand.stat.state.study.sub.substr.symlink.syscall.sysopen.sysread.sysseek.system.syswrite.tell.telldir.tie.tied.time.times.tr.truncate.uc.ucfirst.umask.undef.unless.unlink.unpack.unshift.untie.until.use.utime.values.vec.wait.waitpid.wantarray.warn.when.while.write.x|0.xor.y|0".split("."), r = /[dualxmsipngr]{0,12}/, i = {
25123
25157
  $pattern: /[\w.]+/,
@@ -25308,7 +25342,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
25308
25342
  };
25309
25343
  }
25310
25344
  t.exports = n;
25311
- })), gk = /* @__PURE__ */ h(((e, t) => {
25345
+ })), _k = /* @__PURE__ */ h(((e, t) => {
25312
25346
  function n(e) {
25313
25347
  let t = {
25314
25348
  className: "built_in",
@@ -25424,7 +25458,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
25424
25458
  };
25425
25459
  }
25426
25460
  t.exports = n;
25427
- })), _k = /* @__PURE__ */ h(((e, t) => {
25461
+ })), vk = /* @__PURE__ */ h(((e, t) => {
25428
25462
  function n(e) {
25429
25463
  let t = e.regex, n = /(?![A-Za-z0-9])(?![$])/, r = t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/, n), i = t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/, n), a = t.concat(/[A-Z]+/, n), o = {
25430
25464
  scope: "variable",
@@ -25717,7 +25751,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
25717
25751
  };
25718
25752
  }
25719
25753
  t.exports = n;
25720
- })), vk = /* @__PURE__ */ h(((e, t) => {
25754
+ })), yk = /* @__PURE__ */ h(((e, t) => {
25721
25755
  function n(e) {
25722
25756
  return {
25723
25757
  name: "PHP template",
@@ -25759,7 +25793,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
25759
25793
  };
25760
25794
  }
25761
25795
  t.exports = n;
25762
- })), yk = /* @__PURE__ */ h(((e, t) => {
25796
+ })), bk = /* @__PURE__ */ h(((e, t) => {
25763
25797
  function n(e) {
25764
25798
  return {
25765
25799
  name: "Plain text",
@@ -25768,7 +25802,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
25768
25802
  };
25769
25803
  }
25770
25804
  t.exports = n;
25771
- })), bk = /* @__PURE__ */ h(((e, t) => {
25805
+ })), xk = /* @__PURE__ */ h(((e, t) => {
25772
25806
  function n(e) {
25773
25807
  let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
25774
25808
  $pattern: /[A-Za-z]\w+|__\w+__/,
@@ -26005,7 +26039,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
26005
26039
  };
26006
26040
  }
26007
26041
  t.exports = n;
26008
- })), xk = /* @__PURE__ */ h(((e, t) => {
26042
+ })), Sk = /* @__PURE__ */ h(((e, t) => {
26009
26043
  function n(e) {
26010
26044
  return {
26011
26045
  aliases: ["pycon"],
@@ -26023,7 +26057,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
26023
26057
  };
26024
26058
  }
26025
26059
  t.exports = n;
26026
- })), Sk = /* @__PURE__ */ h(((e, t) => {
26060
+ })), Ck = /* @__PURE__ */ h(((e, t) => {
26027
26061
  function n(e) {
26028
26062
  let t = e.regex, n = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, r = t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/, /0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/, /(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/), i = /[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/, a = t.either(/[()]/, /[{}]/, /\[\[/, /[[\]]/, /\\/, /,/);
26029
26063
  return {
@@ -26162,7 +26196,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
26162
26196
  };
26163
26197
  }
26164
26198
  t.exports = n;
26165
- })), Ck = /* @__PURE__ */ h(((e, t) => {
26199
+ })), wk = /* @__PURE__ */ h(((e, t) => {
26166
26200
  function n(e) {
26167
26201
  let t = e.regex, n = /(r#)?/, r = t.concat(n, e.UNDERSCORE_IDENT_RE), i = t.concat(n, e.IDENT_RE), a = {
26168
26202
  className: "title.function.invoke",
@@ -26330,7 +26364,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
26330
26364
  };
26331
26365
  }
26332
26366
  t.exports = n;
26333
- })), wk = /* @__PURE__ */ h(((e, t) => {
26367
+ })), Tk = /* @__PURE__ */ h(((e, t) => {
26334
26368
  var n = (e) => ({
26335
26369
  IMPORTANT: {
26336
26370
  scope: "meta",
@@ -26479,7 +26513,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
26479
26513
  };
26480
26514
  }
26481
26515
  t.exports = u;
26482
- })), Tk = /* @__PURE__ */ h(((e, t) => {
26516
+ })), Ek = /* @__PURE__ */ h(((e, t) => {
26483
26517
  function n(e) {
26484
26518
  return {
26485
26519
  name: "Shell Session",
@@ -26495,7 +26529,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
26495
26529
  };
26496
26530
  }
26497
26531
  t.exports = n;
26498
- })), Ek = /* @__PURE__ */ h(((e, t) => {
26532
+ })), Dk = /* @__PURE__ */ h(((e, t) => {
26499
26533
  function n(e) {
26500
26534
  let t = e.regex, n = e.COMMENT("--", "$"), r = {
26501
26535
  scope: "string",
@@ -26612,7 +26646,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
26612
26646
  };
26613
26647
  }
26614
26648
  t.exports = n;
26615
- })), Dk = /* @__PURE__ */ h(((e, t) => {
26649
+ })), Ok = /* @__PURE__ */ h(((e, t) => {
26616
26650
  function n(e) {
26617
26651
  return e ? typeof e == "string" ? e : e.source : null;
26618
26652
  }
@@ -27185,7 +27219,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
27185
27219
  };
27186
27220
  }
27187
27221
  t.exports = T;
27188
- })), Ok = /* @__PURE__ */ h(((e, t) => {
27222
+ })), kk = /* @__PURE__ */ h(((e, t) => {
27189
27223
  function n(e) {
27190
27224
  let t = "true false yes no null", n = {
27191
27225
  className: "attr",
@@ -27328,7 +27362,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
27328
27362
  };
27329
27363
  }
27330
27364
  t.exports = n;
27331
- })), kk = /* @__PURE__ */ h(((e, t) => {
27365
+ })), Ak = /* @__PURE__ */ h(((e, t) => {
27332
27366
  var n = "[A-Za-z$_][0-9A-Za-z$_]*", r = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), i = [
27333
27367
  "true",
27334
27368
  "false",
@@ -27848,7 +27882,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
27848
27882
  }), a;
27849
27883
  }
27850
27884
  t.exports = d;
27851
- })), Ak = /* @__PURE__ */ h(((e, t) => {
27885
+ })), jk = /* @__PURE__ */ h(((e, t) => {
27852
27886
  function n(e) {
27853
27887
  let t = e.regex, n = {
27854
27888
  className: "string",
@@ -27916,7 +27950,7 @@ var YO = /* @__PURE__ */ h(((e, t) => {
27916
27950
  };
27917
27951
  }
27918
27952
  t.exports = n;
27919
- })), jk = /* @__PURE__ */ h(((e, t) => {
27953
+ })), Mk = /* @__PURE__ */ h(((e, t) => {
27920
27954
  function n(e) {
27921
27955
  e.regex;
27922
27956
  let t = e.COMMENT(/\(;/, /;\)/);
@@ -27978,65 +28012,65 @@ var YO = /* @__PURE__ */ h(((e, t) => {
27978
28012
  };
27979
28013
  }
27980
28014
  t.exports = n;
27981
- })), Mk = (/* @__PURE__ */ _((/* @__PURE__ */ h(((e, t) => {
27982
- var n = YO();
27983
- n.registerLanguage("xml", XO()), n.registerLanguage("bash", ZO()), n.registerLanguage("c", QO()), n.registerLanguage("cpp", $O()), n.registerLanguage("csharp", ek()), n.registerLanguage("css", tk()), n.registerLanguage("markdown", nk()), n.registerLanguage("diff", rk()), n.registerLanguage("ruby", ik()), n.registerLanguage("go", ak()), n.registerLanguage("graphql", ok()), n.registerLanguage("ini", sk()), n.registerLanguage("java", ck()), n.registerLanguage("javascript", lk()), n.registerLanguage("json", uk()), n.registerLanguage("kotlin", dk()), n.registerLanguage("less", fk()), n.registerLanguage("lua", pk()), n.registerLanguage("makefile", mk()), n.registerLanguage("perl", hk()), n.registerLanguage("objectivec", gk()), n.registerLanguage("php", _k()), n.registerLanguage("php-template", vk()), n.registerLanguage("plaintext", yk()), n.registerLanguage("python", bk()), n.registerLanguage("python-repl", xk()), n.registerLanguage("r", Sk()), n.registerLanguage("rust", Ck()), n.registerLanguage("scss", wk()), n.registerLanguage("shell", Tk()), n.registerLanguage("sql", Ek()), n.registerLanguage("swift", Dk()), n.registerLanguage("yaml", Ok()), n.registerLanguage("typescript", kk()), n.registerLanguage("vbnet", Ak()), n.registerLanguage("wasm", jk()), n.HighlightJS = n, n.default = n, t.exports = n;
28015
+ })), Nk = (/* @__PURE__ */ _((/* @__PURE__ */ h(((e, t) => {
28016
+ var n = XO();
28017
+ n.registerLanguage("xml", ZO()), n.registerLanguage("bash", QO()), n.registerLanguage("c", $O()), n.registerLanguage("cpp", ek()), n.registerLanguage("csharp", tk()), n.registerLanguage("css", nk()), n.registerLanguage("markdown", rk()), n.registerLanguage("diff", ik()), n.registerLanguage("ruby", ak()), n.registerLanguage("go", ok()), n.registerLanguage("graphql", sk()), n.registerLanguage("ini", ck()), n.registerLanguage("java", lk()), n.registerLanguage("javascript", uk()), n.registerLanguage("json", dk()), n.registerLanguage("kotlin", fk()), n.registerLanguage("less", pk()), n.registerLanguage("lua", mk()), n.registerLanguage("makefile", hk()), n.registerLanguage("perl", gk()), n.registerLanguage("objectivec", _k()), n.registerLanguage("php", vk()), n.registerLanguage("php-template", yk()), n.registerLanguage("plaintext", bk()), n.registerLanguage("python", xk()), n.registerLanguage("python-repl", Sk()), n.registerLanguage("r", Ck()), n.registerLanguage("rust", wk()), n.registerLanguage("scss", Tk()), n.registerLanguage("shell", Ek()), n.registerLanguage("sql", Dk()), n.registerLanguage("swift", Ok()), n.registerLanguage("yaml", kk()), n.registerLanguage("typescript", Ak()), n.registerLanguage("vbnet", jk()), n.registerLanguage("wasm", Mk()), n.HighlightJS = n, n.default = n, t.exports = n;
27984
28018
  })))())).default;
27985
28019
  //#endregion
27986
28020
  //#region src/core/composables/useMarkdown.ts
27987
- JO.setOptions({
28021
+ YO.setOptions({
27988
28022
  breaks: !0,
27989
28023
  gfm: !0
27990
28024
  });
27991
- var Nk = 2e4, Pk = new JO.Renderer();
27992
- Pk.code = ({ text: e, lang: t }) => {
28025
+ var Pk = 2e4, Fk = new YO.Renderer();
28026
+ Fk.code = ({ text: e, lang: t }) => {
27993
28027
  let n = (t || "").trim() || "plaintext", r = "";
27994
- if (e.length > 2e4) r = Ik(e);
28028
+ if (e.length > 2e4) r = Lk(e);
27995
28029
  else try {
27996
- r = Mk.highlight(e, {
28030
+ r = Nk.highlight(e, {
27997
28031
  language: n,
27998
28032
  ignoreIllegals: !0
27999
28033
  }).value;
28000
28034
  } catch {
28001
- r = Ik(e);
28035
+ r = Lk(e);
28002
28036
  }
28003
- let i = encodeURIComponent(e), a = Fk(n);
28037
+ let i = encodeURIComponent(e), a = Ik(n);
28004
28038
  return `<pre class="code-block" data-lang="${a}" data-code="${i}"><code class="hljs language-${a}">${r}</code></pre>`;
28005
28039
  };
28006
- function Fk(e) {
28040
+ function Ik(e) {
28007
28041
  return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
28008
28042
  }
28009
- function Ik(e) {
28043
+ function Lk(e) {
28010
28044
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
28011
28045
  }
28012
- var Lk = { ADD_ATTR: [
28046
+ var Rk = { ADD_ATTR: [
28013
28047
  "data-code",
28014
28048
  "data-lang",
28015
28049
  "target",
28016
28050
  "rel"
28017
28051
  ] };
28018
- function Rk(e) {
28019
- return FT.sanitize(e, Lk);
28020
- }
28021
28052
  function zk(e) {
28022
- return JO.parse(e || "", { renderer: Pk });
28053
+ return FT.sanitize(e, Rk);
28023
28054
  }
28024
28055
  function Bk(e) {
28025
- return Rk(zk(e));
28056
+ return YO.parse(e || "", { renderer: Fk });
28026
28057
  }
28027
- var Vk = 100, Hk = 2e3;
28028
- function Uk(e) {
28029
- let t = /* @__PURE__ */ Nn(Bk(e())), n = 0, r = null;
28058
+ function Vk(e) {
28059
+ return zk(Bk(e));
28060
+ }
28061
+ var Hk = 100, Uk = 2e3;
28062
+ function Wk(e) {
28063
+ let t = /* @__PURE__ */ Nn(Vk(e())), n = 0, r = null;
28030
28064
  function i() {
28031
- r = null, n = Date.now(), t.value = Bk(e());
28065
+ r = null, n = Date.now(), t.value = Vk(e());
28032
28066
  }
28033
28067
  return di(e, () => {
28034
28068
  let a = e();
28035
- if (a.length <= Hk) {
28036
- r &&= (clearTimeout(r), null), n = Date.now(), t.value = Bk(a);
28069
+ if (a.length <= Uk) {
28070
+ r &&= (clearTimeout(r), null), n = Date.now(), t.value = Vk(a);
28037
28071
  return;
28038
28072
  }
28039
- let o = n + Vk - Date.now();
28073
+ let o = n + Hk - Date.now();
28040
28074
  o <= 0 ? (r &&= (clearTimeout(r), null), i()) : r ||= setTimeout(i, o);
28041
28075
  }), at(() => {
28042
28076
  r &&= (clearTimeout(r), null);
@@ -28054,14 +28088,14 @@ function Uk(e) {
28054
28088
  }
28055
28089
  //#endregion
28056
28090
  //#region src/core/components/MessageContent.vue?vue&type=script&setup=true&lang.ts
28057
- var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28091
+ var Gk = ["innerHTML"], Kk = /* @__PURE__ */ Wi({
28058
28092
  __name: "MessageContent",
28059
28093
  props: {
28060
28094
  content: {},
28061
28095
  messages: { default: () => ow }
28062
28096
  },
28063
28097
  setup(e) {
28064
- let t = e, { html: n, codeBlocks: r } = Uk(() => t.content), i = /* @__PURE__ */ Mn(null);
28098
+ let t = e, { html: n, codeBlocks: r } = Wk(() => t.content), i = /* @__PURE__ */ Mn(null);
28065
28099
  function a(e, t) {
28066
28100
  let n = {
28067
28101
  html: "html",
@@ -28115,12 +28149,12 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28115
28149
  ref_key: "containerRef",
28116
28150
  ref: i,
28117
28151
  innerHTML: K(n)
28118
- }, null, 8, Wk));
28152
+ }, null, 8, Gk));
28119
28153
  }
28120
- }), Kk = { class: "typing-text" }, qk = {
28154
+ }), qk = { class: "typing-text" }, Jk = {
28121
28155
  key: 0,
28122
28156
  class: "stream-cursor"
28123
- }, Jk = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28157
+ }, Yk = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28124
28158
  __name: "MessageBubble",
28125
28159
  props: {
28126
28160
  content: {},
@@ -28131,29 +28165,29 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28131
28165
  messages: { default: () => ({ ...ow }) }
28132
28166
  },
28133
28167
  setup(e) {
28134
- return (t, n) => (Y(), X(J, null, [Z("div", { class: Be(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (Y(), X(J, { key: 0 }, [Z("span", { class: Be(["typing-dot", { pulse: e.showTyping }]) }, null, 2), Z("span", Kk, [xs(XT, { text: e.messages.thinking }, null, 8, ["text"])])], 64)) : (Y(), X(J, { key: 1 }, [e.role === "assistant" ? (Y(), ms(Gk, {
28168
+ return (t, n) => (Y(), X(J, null, [Z("div", { class: Be(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (Y(), X(J, { key: 0 }, [Z("span", { class: Be(["typing-dot", { pulse: e.showTyping }]) }, null, 2), Z("span", qk, [xs(XT, { text: e.messages.thinking }, null, 8, ["text"])])], 64)) : (Y(), X(J, { key: 1 }, [e.role === "assistant" ? (Y(), ms(Kk, {
28135
28169
  key: 0,
28136
28170
  content: e.content,
28137
28171
  messages: e.messages
28138
- }, null, 8, ["content", "messages"])) : (Y(), X(J, { key: 1 }, [Es(W(e.content), 1)], 64))], 64))], 2), e.showCursor ? (Y(), X("span", qk)) : Q("", !0)], 64));
28172
+ }, null, 8, ["content", "messages"])) : (Y(), X(J, { key: 1 }, [Es(W(e.content), 1)], 64))], 64))], 2), e.showCursor ? (Y(), X("span", Jk)) : Q("", !0)], 64));
28139
28173
  }
28140
- }), [["__scopeId", "data-v-4b4111d8"]]), Yk = { class: "message-time" }, Xk = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28174
+ }), [["__scopeId", "data-v-4b4111d8"]]), Xk = { class: "message-time" }, Zk = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28141
28175
  __name: "MessageTime",
28142
28176
  props: { time: {} },
28143
28177
  setup(e) {
28144
- return (t, n) => (Y(), X("div", Yk, W(e.time), 1));
28178
+ return (t, n) => (Y(), X("div", Xk, W(e.time), 1));
28145
28179
  }
28146
- }), [["__scopeId", "data-v-4a976e4a"]]), Zk = { class: "msg-actions" }, Qk = ["title"], $k = {
28180
+ }), [["__scopeId", "data-v-4a976e4a"]]), Qk = { class: "msg-actions" }, $k = ["title"], eA = {
28147
28181
  key: 0,
28148
28182
  viewBox: "0 0 16 16",
28149
28183
  fill: "none",
28150
28184
  "aria-hidden": "true"
28151
- }, eA = {
28185
+ }, tA = {
28152
28186
  key: 1,
28153
28187
  viewBox: "0 0 16 16",
28154
28188
  fill: "none",
28155
28189
  "aria-hidden": "true"
28156
- }, tA = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28190
+ }, nA = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28157
28191
  __name: "MessageActions",
28158
28192
  props: {
28159
28193
  copied: { type: Boolean },
@@ -28161,17 +28195,17 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28161
28195
  },
28162
28196
  emits: ["copy", "regenerate"],
28163
28197
  setup(e) {
28164
- return (t, n) => (Y(), X("div", Zk, [Z("button", {
28198
+ return (t, n) => (Y(), X("div", Qk, [Z("button", {
28165
28199
  class: Be(["msg-action-btn", { done: e.copied }]),
28166
28200
  title: e.copied ? e.messages.copied : e.messages.copy,
28167
28201
  onClick: n[0] ||= (e) => t.$emit("copy")
28168
- }, [e.copied ? (Y(), X("svg", $k, [...n[2] ||= [Z("path", {
28202
+ }, [e.copied ? (Y(), X("svg", eA, [...n[2] ||= [Z("path", {
28169
28203
  d: "M3 8.5l3 3 7-7",
28170
28204
  stroke: "currentColor",
28171
28205
  "stroke-width": "1.6",
28172
28206
  "stroke-linecap": "round",
28173
28207
  "stroke-linejoin": "round"
28174
- }, null, -1)]])) : (Y(), X("svg", eA, [...n[3] ||= [Z("rect", {
28208
+ }, null, -1)]])) : (Y(), X("svg", tA, [...n[3] ||= [Z("rect", {
28175
28209
  x: "5.5",
28176
28210
  y: "5.5",
28177
28211
  width: "8",
@@ -28183,7 +28217,7 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28183
28217
  d: "M10.5 3.5v-.5A1.5 1.5 0 0 0 9 1.5H3.5A1.5 1.5 0 0 0 2 3v5.5A1.5 1.5 0 0 0 3.5 10H4",
28184
28218
  stroke: "currentColor",
28185
28219
  "stroke-width": "1.3"
28186
- }, null, -1)]])), Z("span", null, W(e.copied ? e.messages.copied : e.messages.copy), 1)], 10, Qk), Z("button", {
28220
+ }, null, -1)]])), Z("span", null, W(e.copied ? e.messages.copied : e.messages.copy), 1)], 10, $k), Z("button", {
28187
28221
  class: "msg-action-btn",
28188
28222
  onClick: n[1] ||= (e) => t.$emit("regenerate")
28189
28223
  }, [n[4] ||= Z("svg", {
@@ -28203,19 +28237,19 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28203
28237
  "stroke-linejoin": "round"
28204
28238
  })], -1), Z("span", null, W(e.messages.regenerate), 1)])]));
28205
28239
  }
28206
- }), [["__scopeId", "data-v-dc051a49"]]), nA = {
28240
+ }), [["__scopeId", "data-v-dc051a49"]]), rA = {
28207
28241
  key: 1,
28208
28242
  class: "avatar-icon",
28209
28243
  viewBox: "0 0 1024 1024",
28210
28244
  xmlns: "http://www.w3.org/2000/svg",
28211
28245
  "aria-hidden": "true"
28212
- }, rA = {
28246
+ }, iA = {
28213
28247
  key: 2,
28214
28248
  class: "avatar-icon",
28215
28249
  viewBox: "0 0 1024 1024",
28216
28250
  xmlns: "http://www.w3.org/2000/svg",
28217
28251
  "aria-hidden": "true"
28218
- }, iA = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28252
+ }, aA = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28219
28253
  __name: "AvatarIcon",
28220
28254
  props: {
28221
28255
  role: {},
@@ -28226,18 +28260,18 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28226
28260
  key: 0,
28227
28261
  icon: e.glyph,
28228
28262
  class: "avatar-glyph"
28229
- }, null, 8, ["icon"])) : e.role === "user" ? (Y(), X("svg", nA, [...n[0] ||= [Z("path", { d: "M512 170.688a149.312 149.312 0 1 0 0 298.624 149.312 149.312 0 0 0 0-298.624zM277.312 320a234.688 234.688 0 1 1 469.376 0 234.688 234.688 0 0 1-469.376 0zM128 810.688a213.312 213.312 0 0 1 213.312-213.312h341.376A213.312 213.312 0 0 1 896 810.688v128H128v-128z m213.312-128a128 128 0 0 0-128 128v42.688h597.376v-42.688a128 128 0 0 0-128-128H341.312z" }, null, -1)]])) : (Y(), X("svg", rA, [...n[1] ||= [Z("path", { d: "M717.12 274H762c82.842 0 150 67.158 150 150v200c0 82.842-67.158 150-150 150H262c-82.842 0-150-67.158-150-150V424c0-82.842 67.158-150 150-150h44.88l-18.268-109.602c-4.086-24.514 12.476-47.7 36.99-51.786 24.514-4.086 47.7 12.476 51.786 36.99l20 120c0.246 1.472 0.416 2.94 0.516 4.398h228.192c0.1-1.46 0.27-2.926 0.516-4.398l20-120c4.086-24.514 27.272-41.076 51.786-36.99 24.514 4.086 41.076 27.272 36.99 51.786L717.12 274zM262 364c-33.138 0-60 26.862-60 60v200c0 33.138 26.862 60 60 60h500c33.138 0 60-26.862 60-60V424c0-33.138-26.862-60-60-60H262z m50 548c-24.852 0-45-20.148-45-45S287.148 822 312 822h400c24.852 0 45 20.148 45 45S736.852 912 712 912H312z m-4-428c0-24.852 20.148-45 45-45S398 459.148 398 484v40c0 24.852-20.148 45-45 45S308 548.852 308 524v-40z m318 0c0-24.852 20.148-45 45-45S716 459.148 716 484v40c0 24.852-20.148 45-45 45S626 548.852 626 524v-40z" }, null, -1)]]));
28263
+ }, null, 8, ["icon"])) : e.role === "user" ? (Y(), X("svg", rA, [...n[0] ||= [Z("path", { d: "M512 170.688a149.312 149.312 0 1 0 0 298.624 149.312 149.312 0 0 0 0-298.624zM277.312 320a234.688 234.688 0 1 1 469.376 0 234.688 234.688 0 0 1-469.376 0zM128 810.688a213.312 213.312 0 0 1 213.312-213.312h341.376A213.312 213.312 0 0 1 896 810.688v128H128v-128z m213.312-128a128 128 0 0 0-128 128v42.688h597.376v-42.688a128 128 0 0 0-128-128H341.312z" }, null, -1)]])) : (Y(), X("svg", iA, [...n[1] ||= [Z("path", { d: "M717.12 274H762c82.842 0 150 67.158 150 150v200c0 82.842-67.158 150-150 150H262c-82.842 0-150-67.158-150-150V424c0-82.842 67.158-150 150-150h44.88l-18.268-109.602c-4.086-24.514 12.476-47.7 36.99-51.786 24.514-4.086 47.7 12.476 51.786 36.99l20 120c0.246 1.472 0.416 2.94 0.516 4.398h228.192c0.1-1.46 0.27-2.926 0.516-4.398l20-120c4.086-24.514 27.272-41.076 51.786-36.99 24.514 4.086 41.076 27.272 36.99 51.786L717.12 274zM262 364c-33.138 0-60 26.862-60 60v200c0 33.138 26.862 60 60 60h500c33.138 0 60-26.862 60-60V424c0-33.138-26.862-60-60-60H262z m50 548c-24.852 0-45-20.148-45-45S287.148 822 312 822h400c24.852 0 45 20.148 45 45S736.852 912 712 912H312z m-4-428c0-24.852 20.148-45 45-45S398 459.148 398 484v40c0 24.852-20.148 45-45 45S308 548.852 308 524v-40z m318 0c0-24.852 20.148-45 45-45S716 459.148 716 484v40c0 24.852-20.148 45-45 45S626 548.852 626 524v-40z" }, null, -1)]]));
28230
28264
  }
28231
- }), [["__scopeId", "data-v-a0b508ea"]]), aA = ["data-msg-idx"], oA = {
28265
+ }), [["__scopeId", "data-v-a0b508ea"]]), oA = ["data-msg-idx"], sA = {
28232
28266
  key: 0,
28233
28267
  class: "message-avatar"
28234
- }, sA = { class: "message-content" }, cA = {
28268
+ }, cA = { class: "message-content" }, lA = {
28235
28269
  key: 2,
28236
28270
  class: "msg-focuses"
28237
- }, lA = ["title", "onClick"], uA = ["data-img-count"], dA = ["href", "title"], fA = ["src", "alt"], pA = {
28271
+ }, uA = ["title"], dA = ["data-img-count"], fA = ["href", "title"], pA = ["src", "alt"], mA = {
28238
28272
  key: 1,
28239
28273
  class: "msg-image-lost"
28240
- }, mA = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28274
+ }, hA = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28241
28275
  __name: "MessageRow",
28242
28276
  props: {
28243
28277
  message: {},
@@ -28257,28 +28291,30 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28257
28291
  "regenerate"
28258
28292
  ],
28259
28293
  setup(e) {
28260
- let t = e, n = fw(), r = sc(() => t.message.role === "assistant"), i = sc(() => r.value && "reasoning" in t.message ? t.message.reasoning ?? "" : ""), a = sc(() => r.value && "steps" in t.message ? t.message.steps ?? [] : []), o = sc(() => r.value && !!t.message.content && !t.loading && t.isLast), s = sc(() => r.value && t.loading && t.isLast && !!t.message.content);
28261
- return (t, c) => (Y(), X("div", {
28294
+ let t = e, n = fw(), r = sc(() => t.message.role === "assistant"), i = sc(() => r.value && "reasoning" in t.message ? t.message.reasoning ?? "" : ""), a = sc(() => r.value && "reasoningTotal" in t.message ? t.message.reasoningTotal : void 0), o = sc(() => r.value && "steps" in t.message ? t.message.steps ?? [] : []), s = sc(() => r.value && !!t.message.content && !t.loading && t.isLast), c = sc(() => r.value && t.loading && t.isLast && !!t.message.content);
28295
+ return (t, l) => (Y(), X("div", {
28262
28296
  class: Be(["message-row", e.message.role]),
28263
28297
  "data-msg-idx": e.index
28264
- }, [e.showAvatar ? (Y(), X("div", oA, [xs(iA, {
28298
+ }, [e.showAvatar ? (Y(), X("div", sA, [xs(aA, {
28265
28299
  role: e.message.role,
28266
28300
  glyph: e.message.role === "user" ? K(n).icons.userAvatar : K(n).icons.assistantAvatar
28267
- }, null, 8, ["role", "glyph"])])) : Q("", !0), Z("div", sA, [
28301
+ }, null, 8, ["role", "glyph"])])) : Q("", !0), Z("div", cA, [
28268
28302
  r.value ? (Y(), ms(RE, {
28269
28303
  key: 0,
28270
28304
  text: i.value,
28305
+ total: a.value,
28271
28306
  expanded: e.reasoningExpanded,
28272
28307
  running: e.loading && e.isLast,
28273
- onToggle: c[0] ||= (e) => t.$emit("toggle-reasoning")
28308
+ onToggle: l[0] ||= (e) => t.$emit("toggle-reasoning")
28274
28309
  }, null, 8, [
28275
28310
  "text",
28311
+ "total",
28276
28312
  "expanded",
28277
28313
  "running"
28278
28314
  ])) : Q("", !0),
28279
- r.value ? (Y(), ms(mD, {
28315
+ r.value ? (Y(), ms(hD, {
28280
28316
  key: 1,
28281
- steps: a.value,
28317
+ steps: o.value,
28282
28318
  icons: K(n).icons,
28283
28319
  messages: K(n).messages
28284
28320
  }, null, 8, [
@@ -28286,12 +28322,11 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28286
28322
  "icons",
28287
28323
  "messages"
28288
28324
  ])) : Q("", !0),
28289
- e.message.role === "user" && e.message.focuses?.length ? (Y(), X("div", cA, [(Y(!0), X(J, null, ga(e.message.focuses, (e) => (Y(), X("span", {
28325
+ e.message.role === "user" && e.message.focuses?.length ? (Y(), X("div", lA, [(Y(!0), X(J, null, ga(e.message.focuses, (e) => (Y(), X("span", {
28290
28326
  key: e.path,
28291
28327
  class: "msg-focus-chip",
28292
- title: K(n).messages.historyFocusChipTitlePrefix + e.path,
28293
- onClick: (t) => K(n).focusChipClick(e)
28294
- }, [xs(JT, { icon: K(n).icons.focus }, null, 8, ["icon"]), Es(" " + W(e.path), 1)], 8, lA))), 128))])) : Q("", !0),
28328
+ title: K(n).messages.historyFocusChipTitlePrefix + e.path
28329
+ }, [xs(JT, { icon: K(n).icons.focus }, null, 8, ["icon"]), Es(" " + W(e.path), 1)], 8, uA))), 128))])) : Q("", !0),
28295
28330
  e.message.role === "user" && e.message.images?.length ? (Y(), X("div", {
28296
28331
  key: 3,
28297
28332
  class: "msg-images",
@@ -28308,15 +28343,15 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28308
28343
  class: "msg-image-thumb",
28309
28344
  src: e.thumb || e.dataUri,
28310
28345
  alt: e.name || K(n).messages.imageAlt
28311
- }, null, 8, fA)) : (Y(), X("span", pA, "🖼️"))], 8, dA))), 128))], 8, uA)) : Q("", !0),
28312
- !r.value || e.message.content || e.isPendingAssistant ? (Y(), ms(Jk, {
28346
+ }, null, 8, pA)) : (Y(), X("span", mA, "🖼️"))], 8, fA))), 128))], 8, dA)) : Q("", !0),
28347
+ !r.value || e.message.content || e.isPendingAssistant ? (Y(), ms(Yk, {
28313
28348
  key: 4,
28314
28349
  messages: K(n).messages,
28315
28350
  content: e.message.content,
28316
28351
  role: e.message.role,
28317
28352
  "is-pending-assistant": e.isPendingAssistant,
28318
28353
  "show-typing": e.showTyping,
28319
- "show-cursor": s.value
28354
+ "show-cursor": c.value
28320
28355
  }, null, 8, [
28321
28356
  "messages",
28322
28357
  "content",
@@ -28325,29 +28360,29 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28325
28360
  "show-typing",
28326
28361
  "show-cursor"
28327
28362
  ])) : Q("", !0),
28328
- xs(Xk, { time: e.time }, null, 8, ["time"]),
28329
- o.value ? (Y(), ms(tA, {
28363
+ xs(Zk, { time: e.time }, null, 8, ["time"]),
28364
+ s.value ? (Y(), ms(nA, {
28330
28365
  key: 5,
28331
28366
  messages: K(n).messages,
28332
28367
  copied: e.copied,
28333
- onCopy: c[1] ||= (e) => t.$emit("copy"),
28334
- onRegenerate: c[2] ||= (e) => t.$emit("regenerate")
28368
+ onCopy: l[1] ||= (e) => t.$emit("copy"),
28369
+ onRegenerate: l[2] ||= (e) => t.$emit("regenerate")
28335
28370
  }, null, 8, ["messages", "copied"])) : Q("", !0)
28336
- ])], 10, aA));
28371
+ ])], 10, oA));
28337
28372
  }
28338
- }), [["__scopeId", "data-v-63dccb17"]]), hA = { class: "chat-body" }, gA = {
28373
+ }), [["__scopeId", "data-v-053034ee"]]), gA = { class: "chat-body" }, _A = {
28339
28374
  key: 0,
28340
28375
  class: "empty-state"
28341
- }, _A = { class: "empty-icon" }, vA = {
28376
+ }, vA = { class: "empty-icon" }, yA = {
28342
28377
  key: 1,
28343
28378
  class: "message-row assistant"
28344
- }, yA = {
28379
+ }, bA = {
28345
28380
  key: 0,
28346
28381
  class: "message-avatar"
28347
- }, bA = { class: "message-content" }, xA = {
28382
+ }, xA = { class: "message-content" }, SA = {
28348
28383
  key: 2,
28349
28384
  class: "error-bar"
28350
- }, SA = { class: "error-text" }, CA = ["title"], wA = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28385
+ }, CA = { class: "error-text" }, wA = ["title"], TA = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28351
28386
  __name: "MessageList",
28352
28387
  props: {
28353
28388
  showAvatar: { type: Boolean },
@@ -28355,9 +28390,9 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28355
28390
  },
28356
28391
  setup(e) {
28357
28392
  let { chat: t, formatTime: n, copiedMsg: r, copyMessage: i, isPendingAssistant: a, isReasoningExpanded: o, toggleReasoning: s, canUndo: c, undo: l, icons: u, messages: d } = fw(), { state: f, retry: p, regenerate: m } = t, h = sc(() => f.messages.length > 0), g = sc(() => f.messages.some((e) => e.role === "user")), _ = sc(() => f.messages[f.messages.length - 1]?.role === "assistant");
28358
- return (t, v) => (Y(), X("div", hA, [
28359
- h.value ? Q("", !0) : (Y(), X("div", gA, [Z("div", _A, [xs(JT, { icon: K(u).empty }, null, 8, ["icon"])]), Z("p", null, [xs(XT, { text: K(d).emptyGreeting }, null, 8, ["text"])])])),
28360
- (Y(!0), X(J, null, ga(K(f).messages, (t, c) => (Y(), ms(mA, {
28393
+ return (t, v) => (Y(), X("div", gA, [
28394
+ h.value ? Q("", !0) : (Y(), X("div", _A, [Z("div", vA, [xs(JT, { icon: K(u).empty }, null, 8, ["icon"])]), Z("p", null, [xs(XT, { text: K(d).emptyGreeting }, null, 8, ["text"])])])),
28395
+ (Y(!0), X(J, null, ga(K(f).messages, (t, c) => (Y(), ms(hA, {
28361
28396
  key: c,
28362
28397
  message: t,
28363
28398
  index: c,
@@ -28387,10 +28422,10 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28387
28422
  "onCopy",
28388
28423
  "onRegenerate"
28389
28424
  ]))), 128)),
28390
- K(f).loading && !_.value ? (Y(), X("div", vA, [e.showAvatar ? (Y(), X("div", yA, [xs(iA, {
28425
+ K(f).loading && !_.value ? (Y(), X("div", yA, [e.showAvatar ? (Y(), X("div", bA, [xs(aA, {
28391
28426
  role: "assistant",
28392
28427
  glyph: K(u).assistantAvatar
28393
- }, null, 8, ["glyph"])])) : Q("", !0), Z("div", bA, [xs(Jk, {
28428
+ }, null, 8, ["glyph"])])) : Q("", !0), Z("div", xA, [xs(Yk, {
28394
28429
  content: "",
28395
28430
  role: "assistant",
28396
28431
  "is-pending-assistant": !0,
@@ -28398,8 +28433,8 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28398
28433
  "show-cursor": !1,
28399
28434
  messages: K(d)
28400
28435
  }, null, 8, ["show-typing", "messages"])])])) : Q("", !0),
28401
- K(f).error ? (Y(), X("div", xA, [
28402
- Z("span", SA, W(K(f).error), 1),
28436
+ K(f).error ? (Y(), X("div", SA, [
28437
+ Z("span", CA, W(K(f).error), 1),
28403
28438
  g.value ? (Y(), X("button", {
28404
28439
  key: 0,
28405
28440
  class: "retry-btn",
@@ -28410,61 +28445,61 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28410
28445
  class: "undo-btn",
28411
28446
  title: K(d).undoTitle,
28412
28447
  onClick: v[1] ||= (...e) => K(l) && K(l)(...e)
28413
- }, [xs(XT, { text: K(d).undo }, null, 8, ["text"])], 8, CA)) : Q("", !0)
28448
+ }, [xs(XT, { text: K(d).undo }, null, 8, ["text"])], 8, wA)) : Q("", !0)
28414
28449
  ])) : Q("", !0)
28415
28450
  ]));
28416
28451
  }
28417
- }), [["__scopeId", "data-v-113939bc"]]), TA = {
28452
+ }), [["__scopeId", "data-v-113939bc"]]), EA = {
28418
28453
  key: 0,
28419
28454
  class: "queued-bar"
28420
- }, EA = { class: "queued-head" }, DA = { class: "queued-icon" }, OA = { class: "queued-title" }, kA = { class: "queued-count" }, AA = { class: "queued-idx" }, jA = { class: "queued-text" }, MA = ["title", "onClick"], NA = ["title", "onClick"], PA = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28455
+ }, DA = { class: "queued-head" }, OA = { class: "queued-icon" }, kA = { class: "queued-title" }, AA = { class: "queued-count" }, jA = { class: "queued-idx" }, MA = { class: "queued-text" }, NA = ["title", "onClick"], PA = ["title", "onClick"], FA = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28421
28456
  __name: "QueuedBar",
28422
28457
  setup(e) {
28423
28458
  let { chat: t, editQueued: n, icons: r, messages: i } = fw(), { queuedTasks: a, removeQueuedTask: o } = t;
28424
- return (e, t) => K(a).length ? (Y(), X("div", TA, [Z("div", EA, [
28425
- Z("span", DA, [xs(JT, { icon: K(r).queued }, null, 8, ["icon"])]),
28426
- Z("span", OA, W(K(i).queuedTitle), 1),
28427
- Z("span", kA, W(K(a).length), 1)
28459
+ return (e, t) => K(a).length ? (Y(), X("div", EA, [Z("div", DA, [
28460
+ Z("span", OA, [xs(JT, { icon: K(r).queued }, null, 8, ["icon"])]),
28461
+ Z("span", kA, W(K(i).queuedTitle), 1),
28462
+ Z("span", AA, W(K(a).length), 1)
28428
28463
  ]), (Y(!0), X(J, null, ga(K(a), (e, t) => (Y(), X("div", {
28429
28464
  key: t,
28430
28465
  class: "queued-item"
28431
28466
  }, [
28432
- Z("span", AA, W(t + 1), 1),
28433
- Z("span", jA, W(e), 1),
28467
+ Z("span", jA, W(t + 1), 1),
28468
+ Z("span", MA, W(e), 1),
28434
28469
  Z("button", {
28435
28470
  class: "queued-act",
28436
28471
  title: K(i).queuedEditTitle,
28437
28472
  onClick: (e) => K(n)(t)
28438
- }, [xs(JT, { icon: K(r).queuedEdit }, null, 8, ["icon"])], 8, MA),
28473
+ }, [xs(JT, { icon: K(r).queuedEdit }, null, 8, ["icon"])], 8, NA),
28439
28474
  Z("button", {
28440
28475
  class: "queued-act queued-del",
28441
28476
  title: K(i).removeQueuedTitle,
28442
28477
  onClick: (e) => K(o)(t)
28443
- }, "✕", 8, NA)
28478
+ }, "✕", 8, PA)
28444
28479
  ]))), 128))])) : Q("", !0);
28445
28480
  }
28446
- }), [["__scopeId", "data-v-02414fc9"]]), FA = {
28481
+ }), [["__scopeId", "data-v-02414fc9"]]), IA = {
28447
28482
  key: 0,
28448
28483
  class: "approval-bar"
28449
- }, IA = { class: "approval-head" }, LA = { class: "approval-title" }, RA = {
28484
+ }, LA = { class: "approval-head" }, RA = { class: "approval-title" }, zA = {
28450
28485
  key: 0,
28451
28486
  class: "approval-question"
28452
- }, zA = {
28487
+ }, BA = {
28453
28488
  key: 1,
28454
28489
  class: "approval-context"
28455
- }, BA = {
28490
+ }, VA = {
28456
28491
  key: 2,
28457
28492
  class: "approval-recommend"
28458
- }, VA = {
28493
+ }, HA = {
28459
28494
  key: 3,
28460
28495
  class: "approval-options"
28461
- }, HA = ["onClick"], UA = { class: "approval-actions" }, WA = { class: "approval-head" }, GA = { class: "approval-title" }, KA = {
28496
+ }, UA = ["onClick"], WA = { class: "approval-actions" }, GA = { class: "approval-head" }, KA = { class: "approval-title" }, qA = {
28462
28497
  key: 0,
28463
28498
  class: "approval-args"
28464
- }, qA = {
28499
+ }, JA = {
28465
28500
  key: 1,
28466
28501
  class: "approval-plan-context"
28467
- }, JA = { class: "approval-actions" }, YA = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28502
+ }, YA = { class: "approval-actions" }, XA = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28468
28503
  __name: "ApprovalBar",
28469
28504
  setup(e) {
28470
28505
  let t = fw(), { pendingApproval: n, resolveApproval: r } = t.chat, i = t.messages, a = t.planConfirmation, o = /* @__PURE__ */ Mn(!1);
@@ -28484,17 +28519,17 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28484
28519
  return String(e);
28485
28520
  }
28486
28521
  });
28487
- return (e, u) => K(n) ? (Y(), X("div", FA, [s.value ? (Y(), X(J, { key: 0 }, [
28488
- Z("div", IA, [u[5] ||= Z("span", { class: "approval-icon" }, "❓", -1), Z("span", LA, W(K(i).humanConfirmTitle), 1)]),
28489
- K(n).args?.question ? (Y(), X("div", RA, W(K(n).args.question), 1)) : Q("", !0),
28490
- K(n).args?.context ? (Y(), X("div", zA, W(K(n).args.context), 1)) : Q("", !0),
28491
- K(n).args?.recommendation ? (Y(), X("div", BA, [xs(JT, { icon: K(t).icons.recommend }, null, 8, ["icon"]), Es(W(K(i).recommendPrefix) + W(K(n).args.recommendation), 1)])) : Q("", !0),
28492
- c.value.length ? (Y(), X("div", VA, [(Y(!0), X(J, null, ga(c.value, (e) => (Y(), X("button", {
28522
+ return (e, u) => K(n) ? (Y(), X("div", IA, [s.value ? (Y(), X(J, { key: 0 }, [
28523
+ Z("div", LA, [u[5] ||= Z("span", { class: "approval-icon" }, "❓", -1), Z("span", RA, W(K(i).humanConfirmTitle), 1)]),
28524
+ K(n).args?.question ? (Y(), X("div", zA, W(K(n).args.question), 1)) : Q("", !0),
28525
+ K(n).args?.context ? (Y(), X("div", BA, W(K(n).args.context), 1)) : Q("", !0),
28526
+ K(n).args?.recommendation ? (Y(), X("div", VA, [xs(JT, { icon: K(t).icons.recommend }, null, 8, ["icon"]), Es(W(K(i).recommendPrefix) + W(K(n).args.recommendation), 1)])) : Q("", !0),
28527
+ c.value.length ? (Y(), X("div", HA, [(Y(!0), X(J, null, ga(c.value, (e) => (Y(), X("button", {
28493
28528
  key: e,
28494
28529
  class: "approval-opt",
28495
28530
  onClick: (t) => K(r)(e)
28496
- }, W(e), 9, HA))), 128))])) : Q("", !0),
28497
- Z("div", UA, [Z("button", {
28531
+ }, W(e), 9, UA))), 128))])) : Q("", !0),
28532
+ Z("div", WA, [Z("button", {
28498
28533
  class: "approval-deny",
28499
28534
  onClick: u[0] ||= (e) => K(r)(!1)
28500
28535
  }, [xs(XT, { text: K(i).deny }, null, 8, ["text"])]), c.value.length ? Q("", !0) : (Y(), X("button", {
@@ -28503,18 +28538,18 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28503
28538
  onClick: u[1] ||= (e) => K(r)(!0)
28504
28539
  }, [xs(XT, { text: K(i).approve }, null, 8, ["text"])]))])
28505
28540
  ], 64)) : (Y(), X(J, { key: 1 }, [
28506
- Z("div", WA, [
28541
+ Z("div", GA, [
28507
28542
  u[6] ||= Z("span", { class: "approval-icon" }, "✋", -1),
28508
- Z("span", GA, [Es(W(K(i).toolConfirmPrefix), 1), Z("code", null, W(K(n).toolName), 1)]),
28543
+ Z("span", KA, [Es(W(K(i).toolConfirmPrefix), 1), Z("code", null, W(K(n).toolName), 1)]),
28509
28544
  l.value ? (Y(), X("button", {
28510
28545
  key: 0,
28511
28546
  class: "approval-toggle",
28512
28547
  onClick: u[2] ||= (e) => o.value = !o.value
28513
28548
  }, W(o.value ? K(i).collapseArgs : K(i).viewArgs) + W(o.value ? " ▴" : " ▾"), 1)) : Q("", !0)
28514
28549
  ]),
28515
- l.value && o.value ? (Y(), X("pre", KA, W(l.value), 1)) : Q("", !0),
28516
- K(a) ? (Y(), X("div", qA, [xs(JT, { icon: K(t).icons.recommend }, null, 8, ["icon"]), Es(W(K(i).planConfirmedPrefix) + W(K(a).choice) + W(K(i).planConfirmedSuffix), 1)])) : Q("", !0),
28517
- Z("div", JA, [Z("button", {
28550
+ l.value && o.value ? (Y(), X("pre", qA, W(l.value), 1)) : Q("", !0),
28551
+ K(a) ? (Y(), X("div", JA, [xs(JT, { icon: K(t).icons.recommend }, null, 8, ["icon"]), Es(W(K(i).planConfirmedPrefix) + W(K(a).choice) + W(K(i).planConfirmedSuffix), 1)])) : Q("", !0),
28552
+ Z("div", YA, [Z("button", {
28518
28553
  class: "approval-deny",
28519
28554
  onClick: u[3] ||= (e) => K(r)(!1)
28520
28555
  }, [xs(XT, { text: K(i).deny }, null, 8, ["text"])]), Z("button", {
@@ -28523,13 +28558,13 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28523
28558
  }, [xs(XT, { text: K(i).approve }, null, 8, ["text"])])])
28524
28559
  ], 64))])) : Q("", !0);
28525
28560
  }
28526
- }), [["__scopeId", "data-v-4b13623e"]]), XA = {
28561
+ }), [["__scopeId", "data-v-4b13623e"]]), ZA = {
28527
28562
  key: 0,
28528
28563
  class: "conflict-bar"
28529
- }, ZA = { class: "conflict-head" }, QA = { class: "conflict-icon" }, $A = { class: "conflict-title" }, ej = { class: "conflict-detail" }, tj = {
28564
+ }, QA = { class: "conflict-head" }, $A = { class: "conflict-icon" }, ej = { class: "conflict-title" }, tj = { class: "conflict-detail" }, nj = {
28530
28565
  key: 0,
28531
28566
  class: "conflict-diff"
28532
- }, nj = { class: "conflict-diff-col" }, rj = { class: "conflict-diff-label" }, ij = { class: "conflict-diff-pre" }, aj = { class: "conflict-diff-col" }, oj = { class: "conflict-diff-label" }, sj = { class: "conflict-diff-pre" }, cj = { class: "conflict-actions" }, lj = ["title"], uj = ["title"], dj = ["title"], fj = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28567
+ }, rj = { class: "conflict-diff-col" }, ij = { class: "conflict-diff-label" }, aj = { class: "conflict-diff-pre" }, oj = { class: "conflict-diff-col" }, sj = { class: "conflict-diff-label" }, cj = { class: "conflict-diff-pre" }, lj = { class: "conflict-actions" }, uj = ["title"], dj = ["title"], fj = ["title"], pj = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28533
28568
  __name: "ConflictBar",
28534
28569
  props: {
28535
28570
  pendingConflict: {},
@@ -28561,55 +28596,55 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28561
28596
  return String(e);
28562
28597
  }
28563
28598
  });
28564
- return (t, a) => e.pendingConflict ? (Y(), X("div", XA, [
28565
- Z("div", ZA, [Z("span", QA, [xs(JT, { icon: e.icons.conflict }, null, 8, ["icon"])]), Z("span", $A, [
28599
+ return (t, a) => e.pendingConflict ? (Y(), X("div", ZA, [
28600
+ Z("div", QA, [Z("span", $A, [xs(JT, { icon: e.icons.conflict }, null, 8, ["icon"])]), Z("span", ej, [
28566
28601
  Es(W(e.messages.conflictTitlePrefix), 1),
28567
28602
  Z("code", null, W(e.pendingConflict.path), 1),
28568
28603
  Es(W(e.messages.conflictTitleSuffix), 1)
28569
28604
  ])]),
28570
- Z("div", ej, W(e.messages.conflictDetailTemplate.replace("{op}", e.pendingConflict.op === "delete" ? e.messages.conflictOpDelete : e.messages.conflictOpWrite)), 1),
28605
+ Z("div", tj, W(e.messages.conflictDetailTemplate.replace("{op}", e.pendingConflict.op === "delete" ? e.messages.conflictOpDelete : e.messages.conflictOpWrite)), 1),
28571
28606
  Z("button", {
28572
28607
  class: "conflict-toggle",
28573
28608
  onClick: a[0] ||= (e) => n.value = !n.value
28574
28609
  }, W(n.value ? e.messages.collapseDiff : e.messages.viewDiff) + W(n.value ? " ▴" : " ▾"), 1),
28575
- n.value ? (Y(), X("div", tj, [Z("div", nj, [Z("div", rj, W(e.messages.agentValueLabel), 1), Z("pre", ij, W(r.value || e.messages.deleteNoValue), 1)]), Z("div", aj, [Z("div", oj, W(e.messages.currentValueLabel), 1), Z("pre", sj, W(i.value), 1)])])) : Q("", !0),
28576
- Z("div", cj, [
28610
+ n.value ? (Y(), X("div", nj, [Z("div", rj, [Z("div", ij, W(e.messages.agentValueLabel), 1), Z("pre", aj, W(r.value || e.messages.deleteNoValue), 1)]), Z("div", oj, [Z("div", sj, W(e.messages.currentValueLabel), 1), Z("pre", cj, W(i.value), 1)])])) : Q("", !0),
28611
+ Z("div", lj, [
28577
28612
  Z("button", {
28578
28613
  class: "conflict-keep",
28579
28614
  onClick: a[1] ||= (t) => e.onResolve?.("keep_external"),
28580
28615
  title: e.messages.keepExternalTitle
28581
- }, [xs(XT, { text: e.messages.keepExternal }, null, 8, ["text"])], 8, lj),
28616
+ }, [xs(XT, { text: e.messages.keepExternal }, null, 8, ["text"])], 8, uj),
28582
28617
  Z("button", {
28583
28618
  class: "conflict-overwrite",
28584
28619
  onClick: a[2] ||= (t) => e.onResolve?.("overwrite"),
28585
28620
  title: e.messages.overwriteTitle
28586
- }, [xs(XT, { text: e.messages.overwrite }, null, 8, ["text"])], 8, uj),
28621
+ }, [xs(XT, { text: e.messages.overwrite }, null, 8, ["text"])], 8, dj),
28587
28622
  Z("button", {
28588
28623
  class: "conflict-restore",
28589
28624
  onClick: a[3] ||= (t) => e.onResolve?.("restore"),
28590
28625
  title: e.messages.restoreTitle
28591
- }, [xs(XT, { text: e.messages.restore }, null, 8, ["text"])], 8, dj)
28626
+ }, [xs(XT, { text: e.messages.restore }, null, 8, ["text"])], 8, fj)
28592
28627
  ])
28593
28628
  ])) : Q("", !0);
28594
28629
  }
28595
- }), [["__scopeId", "data-v-36dda58c"]]), pj = { class: "chat-footer" }, mj = ["title"], hj = {
28630
+ }), [["__scopeId", "data-v-36dda58c"]]), mj = { class: "chat-footer" }, hj = ["title"], gj = {
28596
28631
  key: 0,
28597
28632
  class: "drop-hint"
28598
- }, gj = {
28633
+ }, _j = {
28599
28634
  key: 1,
28600
28635
  class: "chip-stack"
28601
- }, _j = {
28636
+ }, vj = {
28602
28637
  key: 0,
28603
28638
  class: "focus-chips"
28604
- }, vj = ["title", "onClick"], yj = { class: "focus-chip-icon" }, bj = { class: "focus-chip-path" }, xj = ["title", "onClick"], Sj = {
28639
+ }, yj = ["title", "onClick"], bj = { class: "focus-chip-icon" }, xj = { class: "focus-chip-path" }, Sj = ["title", "onClick"], Cj = {
28605
28640
  key: 1,
28606
28641
  class: "img-chips",
28607
28642
  "data-test": "img-chips"
28608
- }, Cj = ["title"], wj = ["src", "alt"], Tj = ["onClick"], Ej = {
28643
+ }, wj = ["title"], Tj = ["src", "alt"], Ej = ["onClick"], Dj = {
28609
28644
  key: 2,
28610
28645
  class: "img-error",
28611
28646
  "data-test": "img-error"
28612
- }, Dj = ["placeholder", "rows"], Oj = { class: "input-actions" }, kj = { class: "send-hint" }, Aj = ["title"], jj = {
28647
+ }, Oj = ["placeholder", "rows"], kj = { class: "input-actions" }, Aj = { class: "send-hint" }, jj = ["title"], Mj = {
28613
28648
  key: 1,
28614
28649
  width: "15",
28615
28650
  height: "15",
@@ -28619,13 +28654,13 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28619
28654
  "stroke-width": "2",
28620
28655
  "stroke-linecap": "round",
28621
28656
  "stroke-linejoin": "round"
28622
- }, Mj = ["disabled", "title"], Nj = {
28657
+ }, Nj = ["disabled", "title"], Pj = {
28623
28658
  key: 0,
28624
28659
  width: "16",
28625
28660
  height: "16",
28626
28661
  viewBox: "0 0 24 24",
28627
28662
  fill: "currentColor"
28628
- }, Pj = {
28663
+ }, Fj = {
28629
28664
  key: 2,
28630
28665
  width: "18",
28631
28666
  height: "18",
@@ -28633,7 +28668,7 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28633
28668
  fill: "none",
28634
28669
  stroke: "currentColor",
28635
28670
  "stroke-width": "2"
28636
- }, Fj = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28671
+ }, Ij = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28637
28672
  __name: "ChatInput",
28638
28673
  props: {
28639
28674
  placeholder: {},
@@ -28657,36 +28692,36 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28657
28692
  }
28658
28693
  n.length && h(n);
28659
28694
  };
28660
- return (t, h) => (Y(), X("div", pj, [K(a) ? (Y(), X("button", {
28695
+ return (t, h) => (Y(), X("div", mj, [K(a) ? (Y(), X("button", {
28661
28696
  key: 0,
28662
28697
  class: "undo-foot-btn",
28663
28698
  title: K(d).undoTitle,
28664
28699
  onClick: h[0] ||= (...e) => K(o) && K(o)(...e)
28665
- }, W(K(d).undo), 9, mj)) : Q("", !0), Z("div", {
28700
+ }, W(K(d).undo), 9, hj)) : Q("", !0), Z("div", {
28666
28701
  class: Be(["chat-input-wrap", { "drag-over": b.value }]),
28667
28702
  onDragover: h[4] ||= Ol((e) => b.value = !0, ["prevent"]),
28668
28703
  onDragleave: h[5] ||= (e) => b.value = !1,
28669
28704
  onDrop: Ol(C, ["prevent"])
28670
28705
  }, [
28671
- b.value ? (Y(), X("div", hj, W(K(d).imageDropHint), 1)) : Q("", !0),
28672
- K(s).length || K(m).length || K(_) ? (Y(), X("div", gj, [
28673
- K(s).length ? (Y(), X("div", _j, [(Y(!0), X(J, null, ga(K(s), (e) => (Y(), X("span", {
28706
+ b.value ? (Y(), X("div", gj, W(K(d).imageDropHint), 1)) : Q("", !0),
28707
+ K(s).length || K(m).length || K(_) ? (Y(), X("div", _j, [
28708
+ K(s).length ? (Y(), X("div", vj, [(Y(!0), X(J, null, ga(K(s), (e) => (Y(), X("span", {
28674
28709
  key: e.path,
28675
28710
  class: "focus-chip",
28676
28711
  title: K(d).focusChipTitlePrefix + e.path + K(d).focusChipTitleHint,
28677
28712
  onClick: (t) => K(l)(e)
28678
28713
  }, [
28679
- Z("span", yj, [xs(JT, { icon: K(u).focus }, null, 8, ["icon"])]),
28680
- Z("code", bj, W(e.path), 1),
28714
+ Z("span", bj, [xs(JT, { icon: K(u).focus }, null, 8, ["icon"])]),
28715
+ Z("code", xj, W(e.path), 1),
28681
28716
  Z("button", {
28682
28717
  type: "button",
28683
28718
  class: "focus-chip-x",
28684
28719
  "data-test": "focus-clear",
28685
28720
  title: K(d).removeFocus,
28686
28721
  onClick: Ol((t) => K(c)(e.path), ["stop"])
28687
- }, "✕", 8, xj)
28688
- ], 8, vj))), 128))])) : Q("", !0),
28689
- K(m).length ? (Y(), X("div", Sj, [(Y(!0), X(J, null, ga(K(m), (e) => (Y(), X("span", {
28722
+ }, "✕", 8, Sj)
28723
+ ], 8, yj))), 128))])) : Q("", !0),
28724
+ K(m).length ? (Y(), X("div", Cj, [(Y(!0), X(J, null, ga(K(m), (e) => (Y(), X("span", {
28690
28725
  key: e.id,
28691
28726
  class: "img-chip",
28692
28727
  title: e.name || K(d).imageAlt
@@ -28694,13 +28729,13 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28694
28729
  class: "img-chip-thumb",
28695
28730
  src: e.dataUri,
28696
28731
  alt: e.name || K(d).imageAlt
28697
- }, null, 8, wj), Z("button", {
28732
+ }, null, 8, Tj), Z("button", {
28698
28733
  type: "button",
28699
28734
  class: "img-chip-x",
28700
28735
  "data-test": "img-chip-x",
28701
28736
  onClick: (t) => K(g)(e.id)
28702
- }, "✕", 8, Tj)], 8, Cj))), 128))])) : Q("", !0),
28703
- K(_) ? (Y(), X("div", Ej, W(K(_)), 1)) : Q("", !0)
28737
+ }, "✕", 8, Ej)], 8, wj))), 128))])) : Q("", !0),
28738
+ K(_) ? (Y(), X("div", Dj, W(K(_)), 1)) : Q("", !0)
28704
28739
  ])) : Q("", !0),
28705
28740
  ai(Z("textarea", {
28706
28741
  "onUpdate:modelValue": h[1] ||= (e) => /* @__PURE__ */ jn(n) ? n.value = e : null,
@@ -28709,9 +28744,9 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28709
28744
  rows: e.inputRows,
28710
28745
  onKeydown: h[2] ||= (...e) => K(i) && K(i)(...e),
28711
28746
  onPaste: w
28712
- }, null, 40, Dj), [[Tl, K(n)]]),
28713
- Z("div", Oj, [
28714
- Z("span", kj, W(K(d).sendHint), 1),
28747
+ }, null, 40, Oj), [[Tl, K(n)]]),
28748
+ Z("div", kj, [
28749
+ Z("span", Aj, W(K(d).sendHint), 1),
28715
28750
  Z("button", {
28716
28751
  class: "attach-btn",
28717
28752
  title: K(d).attachImageTitle,
@@ -28720,7 +28755,7 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28720
28755
  }, [K(u).attachImage ? (Y(), ms(JT, {
28721
28756
  key: 0,
28722
28757
  icon: K(u).attachImage
28723
- }, null, 8, ["icon"])) : (Y(), X("svg", jj, [...h[6] ||= [Z("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" }, null, -1)]]))], 8, Aj),
28758
+ }, null, 8, ["icon"])) : (Y(), X("svg", Mj, [...h[6] ||= [Z("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" }, null, -1)]]))], 8, jj),
28724
28759
  Z("input", {
28725
28760
  ref_key: "fileInput",
28726
28761
  ref: y,
@@ -28736,7 +28771,7 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28736
28771
  disabled: !K(f).loading && !K(n).trim() && !K(m).length && !K(v),
28737
28772
  title: K(f).loading ? K(d).stopTitle : K(d).sendTitle,
28738
28773
  onClick: h[3] ||= (e) => K(f).loading ? K(p)() : K(r)()
28739
- }, [K(f).loading ? (Y(), X("svg", Nj, [...h[7] ||= [Z("rect", {
28774
+ }, [K(f).loading ? (Y(), X("svg", Pj, [...h[7] ||= [Z("rect", {
28740
28775
  x: "6",
28741
28776
  y: "6",
28742
28777
  width: "12",
@@ -28745,187 +28780,187 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
28745
28780
  }, null, -1)]])) : K(u).send ? (Y(), ms(JT, {
28746
28781
  key: 1,
28747
28782
  icon: K(u).send
28748
- }, null, 8, ["icon"])) : (Y(), X("svg", Pj, [...h[8] ||= [Z("line", {
28783
+ }, null, 8, ["icon"])) : (Y(), X("svg", Fj, [...h[8] ||= [Z("line", {
28749
28784
  x1: "22",
28750
28785
  y1: "2",
28751
28786
  x2: "11",
28752
28787
  y2: "13"
28753
- }, null, -1), Z("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)]]))], 10, Mj)
28788
+ }, null, -1), Z("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)]]))], 10, Nj)
28754
28789
  ])
28755
28790
  ], 34)]));
28756
28791
  }
28757
- }), [["__scopeId", "data-v-5ceb07ef"]]), Ij = {
28792
+ }), [["__scopeId", "data-v-5ceb07ef"]]), Lj = {
28758
28793
  key: 0,
28759
28794
  class: "debug-drawer"
28760
- }, Lj = { class: "drawer-header" }, Rj = { class: "tab-group" }, zj = { class: "header-actions" }, Bj = ["title"], Vj = ["title"], Hj = ["title"], Uj = {
28795
+ }, Rj = { class: "drawer-header" }, zj = { class: "tab-group" }, Bj = { class: "header-actions" }, Vj = ["title"], Hj = ["title"], Uj = ["title"], Wj = {
28761
28796
  key: 0,
28762
28797
  class: "drawer-filters"
28763
- }, Wj = ["onClick"], Gj = { class: "chip-count" }, Kj = { class: "chip-count" }, qj = {
28798
+ }, Gj = ["onClick"], Kj = { class: "chip-count" }, qj = { class: "chip-count" }, Jj = {
28764
28799
  key: 0,
28765
28800
  class: "context-panel"
28766
- }, Jj = {
28801
+ }, Yj = {
28767
28802
  key: 0,
28768
28803
  class: "trace-empty"
28769
- }, Yj = { class: "ctx-overview" }, Xj = { class: "ctx-occupancy" }, Zj = ["title"], Qj = ["title"], $j = { class: "ctx-pct" }, eM = { class: "ctx-kv-row" }, tM = { class: "ctx-kv" }, nM = {
28804
+ }, Xj = { class: "ctx-overview" }, Zj = { class: "ctx-occupancy" }, Qj = ["title"], $j = ["title"], eM = { class: "ctx-pct" }, tM = { class: "ctx-kv-row" }, nM = { class: "ctx-kv" }, rM = {
28770
28805
  key: 0,
28771
28806
  class: "ctx-kv"
28772
- }, rM = {
28807
+ }, iM = {
28773
28808
  key: 1,
28774
28809
  class: "ctx-kv"
28775
- }, iM = { class: "ctx-section-title" }, aM = ["title"], oM = { class: "ctx-cat-bar" }, sM = { class: "ctx-cat-tokens" }, cM = {
28810
+ }, aM = { class: "ctx-section-title" }, oM = ["title"], sM = { class: "ctx-cat-bar" }, cM = { class: "ctx-cat-tokens" }, lM = {
28776
28811
  key: 0,
28777
28812
  class: "ctx-compression"
28778
- }, lM = { class: "ctx-section-title" }, uM = { class: "ctx-kv-row" }, dM = { class: "ctx-kv" }, fM = { class: "ctx-kv" }, pM = { class: "ctx-kv" }, mM = {
28813
+ }, uM = { class: "ctx-section-title" }, dM = { class: "ctx-kv-row" }, fM = { class: "ctx-kv" }, pM = { class: "ctx-kv" }, mM = { class: "ctx-kv" }, hM = {
28779
28814
  key: 0,
28780
28815
  class: "ctx-kv"
28781
- }, hM = {
28816
+ }, gM = {
28782
28817
  key: 1,
28783
28818
  class: "subagent-panel"
28784
- }, gM = {
28819
+ }, _M = {
28785
28820
  key: 0,
28786
28821
  class: "sub-section"
28787
- }, _M = { class: "sub-section-title" }, vM = {
28822
+ }, vM = { class: "sub-section-title" }, yM = {
28788
28823
  key: 1,
28789
28824
  class: "trace-empty"
28790
- }, yM = {
28825
+ }, bM = {
28791
28826
  key: 0,
28792
28827
  class: "sub-section"
28793
- }, bM = { class: "sub-section-title" }, xM = { class: "sub-head" }, SM = { class: "sub-label" }, CM = { class: "sub-steps-badge" }, wM = { class: "sub-task" }, TM = {
28828
+ }, xM = { class: "sub-section-title" }, SM = { class: "sub-head" }, CM = { class: "sub-label" }, wM = { class: "sub-steps-badge" }, TM = { class: "sub-task" }, EM = {
28794
28829
  key: 1,
28795
28830
  class: "sub-section"
28796
- }, EM = { class: "sub-section-title" }, DM = { class: "sub-head" }, OM = { class: "sub-label" }, kM = {
28831
+ }, DM = { class: "sub-section-title" }, OM = { class: "sub-head" }, kM = { class: "sub-label" }, AM = {
28797
28832
  key: 0,
28798
28833
  class: "sub-dur"
28799
- }, AM = ["onClick"], jM = { class: "sub-task" }, MM = {
28834
+ }, jM = ["onClick"], MM = { class: "sub-task" }, NM = {
28800
28835
  key: 0,
28801
28836
  class: "sub-result"
28802
- }, NM = {
28837
+ }, PM = {
28803
28838
  key: 1,
28804
28839
  class: "sub-steps-list"
28805
- }, PM = { class: "sub-step-kind" }, FM = { class: "sub-step-name" }, IM = { class: "sub-step-ts" }, LM = {
28840
+ }, FM = { class: "sub-step-kind" }, IM = { class: "sub-step-name" }, LM = { class: "sub-step-ts" }, RM = {
28806
28841
  key: 0,
28807
28842
  class: "empty"
28808
- }, RM = ["onClick"], zM = { class: "log-group-title" }, BM = { class: "log-group-meta" }, VM = {
28843
+ }, zM = ["onClick"], BM = { class: "log-group-title" }, VM = { class: "log-group-meta" }, HM = {
28809
28844
  key: 0,
28810
28845
  class: "lg-badge"
28811
- }, HM = {
28846
+ }, UM = {
28812
28847
  key: 1,
28813
28848
  class: "lg-badge"
28814
- }, UM = {
28849
+ }, WM = {
28815
28850
  key: 2,
28816
28851
  class: "lg-badge err"
28817
- }, WM = { class: "log-group-body" }, GM = { class: "log-head" }, KM = {
28852
+ }, GM = { class: "log-group-body" }, KM = { class: "log-head" }, qM = {
28818
28853
  key: 0,
28819
28854
  class: "log-source"
28820
- }, qM = { class: "log-time" }, JM = { class: "log-body" }, YM = { class: "kv-grid" }, XM = { class: "kv" }, ZM = { class: "k" }, QM = { class: "v" }, $M = { class: "kv" }, eN = { class: "k" }, tN = { class: "v" }, nN = { class: "kv" }, rN = { class: "v" }, iN = { class: "kv" }, aN = { class: "k" }, oN = { class: "v" }, sN = { class: "section-label" }, cN = { class: "chip-row" }, lN = { class: "section-label" }, uN = { class: "msg-list" }, dN = { class: "msg-text" }, fN = { class: "badge-row" }, pN = { class: "badge" }, mN = {
28855
+ }, JM = { class: "log-time" }, YM = { class: "log-body" }, XM = { class: "kv-grid" }, ZM = { class: "kv" }, QM = { class: "k" }, $M = { class: "v" }, eN = { class: "kv" }, tN = { class: "k" }, nN = { class: "v" }, rN = { class: "kv" }, iN = { class: "v" }, aN = { class: "kv" }, oN = { class: "k" }, sN = { class: "v" }, cN = { class: "section-label" }, lN = { class: "chip-row" }, uN = { class: "section-label" }, dN = { class: "msg-list" }, fN = { class: "msg-text" }, pN = { class: "badge-row" }, mN = { class: "badge" }, hN = {
28821
28856
  key: 0,
28822
28857
  class: "badge muted"
28823
- }, hN = { class: "badge muted" }, gN = {
28858
+ }, gN = { class: "badge muted" }, _N = {
28824
28859
  key: 1,
28825
28860
  class: "badge muted"
28826
- }, _N = ["onClick"], vN = ["title", "onClick"], yN = ["onClick"], bN = ["title", "onClick"], xN = { class: "msg-detail" }, SN = {
28861
+ }, vN = ["onClick"], yN = ["title", "onClick"], bN = ["onClick"], xN = ["title", "onClick"], SN = { class: "msg-detail" }, CN = {
28827
28862
  key: 0,
28828
28863
  class: "msg-text"
28829
- }, CN = { class: "tc-inline-name" }, wN = { class: "tc-inline-args" }, TN = {
28864
+ }, wN = { class: "tc-inline-name" }, TN = { class: "tc-inline-args" }, EN = {
28830
28865
  key: 1,
28831
28866
  class: "tc-id"
28832
- }, EN = {
28867
+ }, DN = {
28833
28868
  key: 1,
28834
28869
  class: "log-raw"
28835
- }, DN = { class: "badge-row" }, ON = { class: "badge" }, kN = {
28870
+ }, ON = { class: "badge-row" }, kN = { class: "badge" }, AN = {
28836
28871
  key: 0,
28837
28872
  class: "badge warn"
28838
- }, AN = {
28873
+ }, jN = {
28839
28874
  key: 0,
28840
28875
  class: "resp-content"
28841
- }, jN = {
28876
+ }, MN = {
28842
28877
  key: 1,
28843
28878
  class: "tc-list"
28844
- }, MN = { class: "tc-name" }, NN = { class: "tc-args" }, PN = {
28879
+ }, NN = { class: "tc-name" }, PN = { class: "tc-args" }, FN = {
28845
28880
  key: 2,
28846
28881
  class: "usage-row"
28847
- }, FN = { class: "usage" }, IN = { class: "usage" }, LN = { class: "usage" }, RN = {
28882
+ }, IN = { class: "usage" }, LN = { class: "usage" }, RN = { class: "usage" }, zN = {
28848
28883
  key: 0,
28849
28884
  class: "usage"
28850
- }, zN = { class: "tc-name" }, BN = {
28885
+ }, BN = { class: "tc-name" }, VN = {
28851
28886
  key: 0,
28852
28887
  class: "tc-dur"
28853
- }, VN = ["title", "onClick"], HN = { class: "tc-args" }, UN = { class: "tc-result-sep" }, WN = { class: "tc-args tc-result" }, GN = {
28888
+ }, HN = ["title", "onClick"], UN = { class: "tc-args" }, WN = { class: "tc-result-sep" }, GN = { class: "tc-args tc-result" }, KN = {
28854
28889
  key: 1,
28855
28890
  class: "tc-card inline"
28856
- }, KN = { class: "tc-name" }, qN = {
28891
+ }, qN = { class: "tc-name" }, JN = {
28857
28892
  key: 0,
28858
28893
  class: "tc-dur running"
28859
- }, JN = { class: "tc-args" }, YN = {
28894
+ }, YN = { class: "tc-args" }, XN = {
28860
28895
  key: 4,
28861
28896
  class: "err-box"
28862
- }, XN = { class: "log-footer" }, ZN = ["onClick"], QN = ["onClick"], $N = {
28897
+ }, ZN = { class: "log-footer" }, QN = ["onClick"], $N = ["onClick"], eP = {
28863
28898
  key: 0,
28864
28899
  class: "log-raw"
28865
- }, eP = {
28900
+ }, tP = {
28866
28901
  key: 3,
28867
28902
  class: "info-body"
28868
- }, tP = {
28903
+ }, nP = {
28869
28904
  key: 0,
28870
28905
  class: "empty"
28871
- }, nP = { class: "info-section" }, rP = { class: "info-title" }, iP = { class: "kv-grid" }, aP = { class: "kv" }, oP = { class: "v" }, sP = { class: "kv" }, cP = { class: "k" }, lP = { class: "v" }, uP = { class: "kv" }, dP = { class: "k" }, fP = { class: "v" }, pP = { class: "kv" }, mP = { class: "k" }, hP = { class: "v" }, gP = {
28906
+ }, rP = { class: "info-section" }, iP = { class: "info-title" }, aP = { class: "kv-grid" }, oP = { class: "kv" }, sP = { class: "v" }, cP = { class: "kv" }, lP = { class: "k" }, uP = { class: "v" }, dP = { class: "kv" }, fP = { class: "k" }, pP = { class: "v" }, mP = { class: "kv" }, hP = { class: "k" }, gP = { class: "v" }, _P = {
28872
28907
  class: "kv",
28873
28908
  style: { "margin-top": "6px" }
28874
- }, _P = { class: "k" }, vP = {
28909
+ }, vP = { class: "k" }, yP = {
28875
28910
  class: "v",
28876
28911
  style: { "font-size": "11px" }
28877
- }, yP = { class: "info-section" }, bP = { class: "info-title" }, xP = { class: "info-name" }, SP = { class: "info-desc" }, CP = {
28912
+ }, bP = { class: "info-section" }, xP = { class: "info-title" }, SP = { class: "info-name" }, CP = { class: "info-desc" }, wP = {
28878
28913
  key: 0,
28879
28914
  class: "info-section"
28880
- }, wP = { class: "info-title" }, TP = { class: "info-hint" }, EP = ["onClick"], DP = { class: "info-desc" }, OP = {
28915
+ }, TP = { class: "info-title" }, EP = { class: "info-hint" }, DP = ["onClick"], OP = { class: "info-desc" }, kP = {
28881
28916
  key: 0,
28882
28917
  class: "skill-content"
28883
- }, kP = {
28918
+ }, AP = {
28884
28919
  key: 0,
28885
28920
  class: "skill-loading"
28886
- }, AP = {
28921
+ }, jP = {
28887
28922
  key: 1,
28888
28923
  class: "skill-error"
28889
- }, jP = {
28924
+ }, MP = {
28890
28925
  key: 2,
28891
28926
  class: "skill-pre"
28892
- }, MP = {
28927
+ }, NP = {
28893
28928
  key: 1,
28894
28929
  class: "info-section"
28895
- }, NP = { class: "info-title" }, PP = { class: "info-item" }, FP = { class: "info-name" }, IP = { class: "info-desc" }, LP = { class: "info-section" }, RP = { class: "info-title" }, zP = { class: "kv-grid" }, BP = { class: "kv" }, VP = { class: "k" }, HP = { class: "v" }, UP = { class: "kv" }, WP = { class: "k" }, GP = { class: "v" }, KP = { class: "kv" }, qP = { class: "k" }, JP = { class: "v" }, YP = { class: "kv" }, XP = { class: "k" }, ZP = {
28930
+ }, PP = { class: "info-title" }, FP = { class: "info-item" }, IP = { class: "info-name" }, LP = { class: "info-desc" }, RP = { class: "info-section" }, zP = { class: "info-title" }, BP = { class: "kv-grid" }, VP = { class: "kv" }, HP = { class: "k" }, UP = { class: "v" }, WP = { class: "kv" }, GP = { class: "k" }, KP = { class: "v" }, qP = { class: "kv" }, JP = { class: "k" }, YP = { class: "v" }, XP = { class: "kv" }, ZP = { class: "k" }, QP = {
28896
28931
  class: "v",
28897
28932
  style: { "font-size": "11px" }
28898
- }, QP = {
28933
+ }, $P = {
28899
28934
  key: 2,
28900
28935
  class: "info-section"
28901
- }, $P = { class: "info-title" }, eF = { class: "info-name" }, tF = { class: "src-tag mcp" }, nF = { class: "info-desc" }, rF = {
28936
+ }, eF = { class: "info-title" }, tF = { class: "info-name" }, nF = { class: "src-tag mcp" }, rF = { class: "info-desc" }, iF = {
28902
28937
  key: 3,
28903
28938
  class: "info-section"
28904
- }, iF = { class: "info-title" }, aF = { class: "kv-grid" }, oF = { class: "kv" }, sF = { class: "k" }, cF = { class: "v" }, lF = { class: "kv" }, uF = { class: "k" }, dF = { class: "v" }, fF = { class: "kv" }, pF = { class: "k" }, mF = { class: "v" }, hF = {
28939
+ }, aF = { class: "info-title" }, oF = { class: "kv-grid" }, sF = { class: "kv" }, cF = { class: "k" }, lF = { class: "v" }, uF = { class: "kv" }, dF = { class: "k" }, fF = { class: "v" }, pF = { class: "kv" }, mF = { class: "k" }, hF = { class: "v" }, gF = {
28905
28940
  key: 0,
28906
28941
  class: "kv"
28907
- }, gF = { class: "k" }, _F = {
28942
+ }, _F = { class: "k" }, vF = {
28908
28943
  class: "v",
28909
28944
  style: { "font-size": "11px" }
28910
- }, vF = {
28945
+ }, yF = {
28911
28946
  key: 4,
28912
28947
  class: "info-section"
28913
- }, yF = { class: "info-title" }, bF = {
28948
+ }, bF = { class: "info-title" }, xF = {
28914
28949
  key: 5,
28915
28950
  class: "info-section"
28916
- }, xF = { class: "info-title" }, SF = { class: "info-pre" }, CF = {
28951
+ }, SF = { class: "info-title" }, CF = { class: "info-pre" }, wF = {
28917
28952
  key: 6,
28918
28953
  class: "info-section"
28919
- }, wF = { class: "info-title" }, TF = { class: "info-kv" }, EF = { class: "kv" }, DF = { class: "k" }, OF = { class: "v" }, kF = { class: "kv" }, AF = { class: "k" }, jF = { class: "v" }, MF = { class: "kv" }, NF = { class: "k" }, PF = { class: "v" }, FF = { class: "kv" }, IF = { class: "k" }, LF = { class: "v" }, RF = { class: "kv" }, zF = { class: "k" }, BF = {
28954
+ }, TF = { class: "info-title" }, EF = { class: "info-kv" }, DF = { class: "kv" }, OF = { class: "k" }, kF = { class: "v" }, AF = { class: "kv" }, jF = { class: "k" }, MF = { class: "v" }, NF = { class: "kv" }, PF = { class: "k" }, FF = { class: "v" }, IF = { class: "kv" }, LF = { class: "k" }, RF = { class: "v" }, zF = { class: "kv" }, BF = { class: "k" }, VF = {
28920
28955
  class: "v",
28921
28956
  style: { "font-size": "11px" }
28922
- }, VF = {
28957
+ }, HF = {
28923
28958
  key: 0,
28924
28959
  class: "kv"
28925
- }, HF = { class: "k" }, UF = {
28960
+ }, UF = { class: "k" }, WF = {
28926
28961
  class: "v",
28927
28962
  style: { "font-size": "11px" }
28928
- }, WF = 400, GF = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28963
+ }, GF = 400, KF = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
28929
28964
  __name: "DebugDrawer",
28930
28965
  props: {
28931
28966
  logs: { default: () => [] },
@@ -29329,8 +29364,8 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
29329
29364
  return `${e.windowRatio == null ? `keepRounds=${e.keepRounds ?? "?"}` : `windowRatio=${e.windowRatio}`} · ${e.summarize.mode}${y.value.debugSummaryMode} · ${y.value.debugCtxRecalled}${e.recallTopK ?? "?"}${e.reason ? " · " + e.reason : ""}`;
29330
29365
  }
29331
29366
  return (t, n) => (Y(), ms(Ei, { to: "body" }, [xs(Tc, { name: "drawer" }, {
29332
- default: ri(() => [e.visible ? (Y(), X("div", Ij, [Z("div", { class: Be(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
29333
- Z("div", Lj, [Z("div", Rj, [
29367
+ default: ri(() => [e.visible ? (Y(), X("div", Lj, [Z("div", { class: Be(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
29368
+ Z("div", Rj, [Z("div", zj, [
29334
29369
  Z("button", {
29335
29370
  class: Be(["tab-btn", { active: ce.value === "logs" }]),
29336
29371
  onClick: n[0] ||= (e) => le("logs")
@@ -29350,33 +29385,33 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
29350
29385
  class: Be(["tab-btn", { active: ce.value === "info" }]),
29351
29386
  onClick: n[3] ||= (e) => le("info")
29352
29387
  }, "🧬 " + W(y.value.debugTabInfo), 3)) : Q("", !0)
29353
- ]), Z("div", zj, [
29388
+ ]), Z("div", Bj, [
29354
29389
  Z("button", {
29355
29390
  class: "hd-btn",
29356
29391
  title: y.value.debugCopyReport,
29357
29392
  onClick: v
29358
- }, W(g.value === "report" ? "✓" : "💾"), 9, Bj),
29393
+ }, W(g.value === "report" ? "✓" : "💾"), 9, Vj),
29359
29394
  ce.value === "logs" ? (Y(), X("button", {
29360
29395
  key: 0,
29361
29396
  class: "hd-btn",
29362
29397
  title: y.value.debugClearLogs,
29363
29398
  onClick: se
29364
- }, "🗑️", 8, Vj)) : Q("", !0),
29399
+ }, "🗑️", 8, Hj)) : Q("", !0),
29365
29400
  Z("button", {
29366
29401
  class: "hd-btn",
29367
29402
  title: y.value.close,
29368
29403
  onClick: oe
29369
- }, "✕", 8, Hj)
29404
+ }, "✕", 8, Uj)
29370
29405
  ])]),
29371
- ce.value === "logs" ? (Y(), X("div", Uj, [(Y(!0), X(J, null, ga(b.value, (e, t) => (Y(), X("button", {
29406
+ ce.value === "logs" ? (Y(), X("div", Wj, [(Y(!0), X(J, null, ga(b.value, (e, t) => (Y(), X("button", {
29372
29407
  key: t,
29373
29408
  class: Be(["filter-chip", { active: i.value === t }]),
29374
29409
  style: Fe({ "--chip-color": e.color }),
29375
29410
  onClick: (e) => i.value = t
29376
- }, [Es(W(e.icon) + " " + W(e.label) + " ", 1), Z("span", Gj, W(C.value[t] || 0), 1)], 14, Wj))), 128)), Z("button", {
29411
+ }, [Es(W(e.icon) + " " + W(e.label) + " ", 1), Z("span", Kj, W(C.value[t] || 0), 1)], 14, Gj))), 128)), Z("button", {
29377
29412
  class: Be(["filter-chip all", { active: i.value === "all" }]),
29378
29413
  onClick: n[4] ||= (e) => i.value = "all"
29379
- }, [Es(W(y.value.debugFilterAll) + " ", 1), Z("span", Kj, W(C.value.all || 0), 1)], 2)])) : Q("", !0),
29414
+ }, [Es(W(y.value.debugFilterAll) + " ", 1), Z("span", qj, W(C.value.all || 0), 1)], 2)])) : Q("", !0),
29380
29415
  Z("div", {
29381
29416
  class: "drawer-body",
29382
29417
  ref_key: "drawerBodyEl",
@@ -29390,8 +29425,8 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
29390
29425
  ref_key: "drawerContentsEl",
29391
29426
  ref: c
29392
29427
  }, [
29393
- ce.value === "context" ? (Y(), X("div", qj, [U.value ? (Y(), X(J, { key: 1 }, [U.value ? (Y(), X(J, { key: 0 }, [
29394
- Z("div", Yj, [Z("div", Xj, [Z("div", {
29428
+ ce.value === "context" ? (Y(), X("div", Jj, [U.value ? (Y(), X(J, { key: 1 }, [U.value ? (Y(), X(J, { key: 0 }, [
29429
+ Z("div", Xj, [Z("div", Zj, [Z("div", {
29395
29430
  class: "ctx-bar-track",
29396
29431
  title: `${y.value.debugCtxOccupancy} ${Math.round(U.value.occupancy * 100)}%`
29397
29432
  }, [Z("div", {
@@ -29402,12 +29437,12 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
29402
29437
  class: "ctx-threshold-mark",
29403
29438
  style: Fe({ left: Math.min(U.value.thresholdRatio * 100, 100) + "%" }),
29404
29439
  title: y.value.debugCtxThreshold
29405
- }, null, 12, Qj)) : Q("", !0)], 8, Zj), Z("span", $j, W(Math.round(U.value.occupancy * 100)) + "%", 1)]), Z("div", eM, [
29406
- Z("span", tM, W(y.value.debugCtxTokens) + " " + W(U.value.totalTokens) + " token", 1),
29407
- U.value.contextWindow ? (Y(), X("span", nM, W(y.value.debugCtxWindow) + " " + W(U.value.contextWindow), 1)) : Q("", !0),
29408
- U.value.thresholdRatio > 0 ? (Y(), X("span", rM, W(y.value.debugCtxThresholdPct) + " " + W(Math.round(U.value.thresholdRatio * 100)) + "%", 1)) : Q("", !0)
29440
+ }, null, 12, $j)) : Q("", !0)], 8, Qj), Z("span", eM, W(Math.round(U.value.occupancy * 100)) + "%", 1)]), Z("div", tM, [
29441
+ Z("span", nM, W(y.value.debugCtxTokens) + " " + W(U.value.totalTokens) + " token", 1),
29442
+ U.value.contextWindow ? (Y(), X("span", rM, W(y.value.debugCtxWindow) + " " + W(U.value.contextWindow), 1)) : Q("", !0),
29443
+ U.value.thresholdRatio > 0 ? (Y(), X("span", iM, W(y.value.debugCtxThresholdPct) + " " + W(Math.round(U.value.thresholdRatio * 100)) + "%", 1)) : Q("", !0)
29409
29444
  ])]),
29410
- Z("div", iM, W(y.value.debugCtxCategories), 1),
29445
+ Z("div", aM, W(y.value.debugCtxCategories), 1),
29411
29446
  (Y(!0), X(J, null, ga(U.value.categories, (e) => (Y(), X("div", {
29412
29447
  key: e.key,
29413
29448
  class: "ctx-cat"
@@ -29415,62 +29450,62 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
29415
29450
  Z("span", {
29416
29451
  class: "ctx-cat-label",
29417
29452
  title: e.label
29418
- }, W(e.label), 9, aM),
29419
- Z("div", oM, [Z("div", {
29453
+ }, W(e.label), 9, oM),
29454
+ Z("div", sM, [Z("div", {
29420
29455
  class: "ctx-cat-fill",
29421
29456
  style: Fe({ width: Math.max(Math.round(e.pct * 100), 2) + "%" })
29422
29457
  }, null, 4)]),
29423
- Z("span", sM, [Es(W(e.tokens) + " ", 1), Z("i", null, "(" + W(Math.round(e.pct * 100)) + "%)", 1)])
29458
+ Z("span", cM, [Es(W(e.tokens) + " ", 1), Z("i", null, "(" + W(Math.round(e.pct * 100)) + "%)", 1)])
29424
29459
  ]))), 128)),
29425
- U.value.compression ? (Y(), X("div", cM, [Z("div", lM, W(y.value.debugCtxLastCompression), 1), Z("div", uM, [
29426
- Z("span", dM, W(y.value.debugCtxSummarized) + " " + W(U.value.compression.roundsSummarized) + "/" + W(U.value.compression.roundsTotal) + W(y.value.debugCtxRoundsSuffix), 1),
29427
- Z("span", fM, W(y.value.debugCtxRecalled) + " " + W(U.value.compression.roundsRecalled), 1),
29428
- Z("span", pM, W(U.value.compression.strategy), 1),
29429
- U.value.compression.decision ? (Y(), X("span", mM, "🤖 " + W(y.value.debugCtxAgentDecision) + W(be(U.value.compression.decision)), 1)) : Q("", !0)
29460
+ U.value.compression ? (Y(), X("div", lM, [Z("div", uM, W(y.value.debugCtxLastCompression), 1), Z("div", dM, [
29461
+ Z("span", fM, W(y.value.debugCtxSummarized) + " " + W(U.value.compression.roundsSummarized) + "/" + W(U.value.compression.roundsTotal) + W(y.value.debugCtxRoundsSuffix), 1),
29462
+ Z("span", pM, W(y.value.debugCtxRecalled) + " " + W(U.value.compression.roundsRecalled), 1),
29463
+ Z("span", mM, W(U.value.compression.strategy), 1),
29464
+ U.value.compression.decision ? (Y(), X("span", hM, "🤖 " + W(y.value.debugCtxAgentDecision) + W(be(U.value.compression.decision)), 1)) : Q("", !0)
29430
29465
  ])])) : Q("", !0)
29431
- ], 64)) : Q("", !0)], 64)) : (Y(), X("div", Jj, W(y.value.debugCtxEmpty), 1))])) : Q("", !0),
29432
- ce.value === "subagent" ? (Y(), X("div", hM, [ge.value.length ? (Y(), X("div", gM, [Z("div", _M, "🔒 " + W(y.value.debugLocksTitle) + " (" + W(ge.value.length) + ")", 1), (Y(!0), X(J, null, ga(ge.value, ([e, t]) => (Y(), X("div", {
29466
+ ], 64)) : Q("", !0)], 64)) : (Y(), X("div", Yj, W(y.value.debugCtxEmpty), 1))])) : Q("", !0),
29467
+ ce.value === "subagent" ? (Y(), X("div", gM, [ge.value.length ? (Y(), X("div", _M, [Z("div", vM, "🔒 " + W(y.value.debugLocksTitle) + " (" + W(ge.value.length) + ")", 1), (Y(!0), X(J, null, ga(ge.value, ([e, t]) => (Y(), X("div", {
29433
29468
  key: "lock-" + e,
29434
29469
  class: "sub-task"
29435
- }, "🔒 " + W(e) + " ← " + W(t), 1))), 128))])) : Q("", !0), !me.value.length && !he.value.length ? (Y(), X("div", vM, W(y.value.debugSubagentEmpty), 1)) : (Y(), X(J, { key: 2 }, [me.value.length ? (Y(), X("div", yM, [Z("div", bM, "▶ " + W(y.value.debugSubRunningTitle) + " (" + W(me.value.length) + ")", 1), (Y(!0), X(J, null, ga(me.value, (e, t) => (Y(), X("div", {
29470
+ }, "🔒 " + W(e) + " ← " + W(t), 1))), 128))])) : Q("", !0), !me.value.length && !he.value.length ? (Y(), X("div", yM, W(y.value.debugSubagentEmpty), 1)) : (Y(), X(J, { key: 2 }, [me.value.length ? (Y(), X("div", bM, [Z("div", xM, "▶ " + W(y.value.debugSubRunningTitle) + " (" + W(me.value.length) + ")", 1), (Y(!0), X(J, null, ga(me.value, (e, t) => (Y(), X("div", {
29436
29471
  key: "a" + t,
29437
29472
  class: Be(["sub-card", e.status])
29438
- }, [Z("div", xM, [
29473
+ }, [Z("div", SM, [
29439
29474
  Z("span", {
29440
29475
  class: "sub-status",
29441
29476
  style: Fe({ background: _e.value[e.status] && _e.value[e.status].color || "#9ca3af" })
29442
29477
  }, W(_e.value[e.status] && _e.value[e.status].label || e.status), 5),
29443
- Z("span", SM, W(e.label), 1),
29444
- Z("span", CM, W(e.steps.length) + W(y.value.debugStepsCountSuffix), 1)
29445
- ]), Z("div", wM, W(de(e.task, 80)), 1)], 2))), 128))])) : Q("", !0), he.value.length ? (Y(), X("div", TM, [Z("div", EM, "🕐 " + W(y.value.debugSubHistoryTitle) + " (" + W(he.value.length) + ")", 1), (Y(!0), X(J, null, ga(he.value, (e, t) => (Y(), X("div", {
29478
+ Z("span", CM, W(e.label), 1),
29479
+ Z("span", wM, W(e.steps.length) + W(y.value.debugStepsCountSuffix), 1)
29480
+ ]), Z("div", TM, W(de(e.task, 80)), 1)], 2))), 128))])) : Q("", !0), he.value.length ? (Y(), X("div", EM, [Z("div", DM, "🕐 " + W(y.value.debugSubHistoryTitle) + " (" + W(he.value.length) + ")", 1), (Y(!0), X(J, null, ga(he.value, (e, t) => (Y(), X("div", {
29446
29481
  key: "h" + t,
29447
29482
  class: Be(["sub-card", e.status])
29448
29483
  }, [
29449
- Z("div", DM, [
29484
+ Z("div", OM, [
29450
29485
  Z("span", {
29451
29486
  class: "sub-status",
29452
29487
  style: Fe({ background: _e.value[e.status] && _e.value[e.status].color || "#9ca3af" })
29453
29488
  }, W(_e.value[e.status] && _e.value[e.status].label || e.status), 5),
29454
- Z("span", OM, W(e.label), 1),
29455
- e.durationMs == null ? Q("", !0) : (Y(), X("span", kM, W(fe(e.durationMs)), 1)),
29489
+ Z("span", kM, W(e.label), 1),
29490
+ e.durationMs == null ? Q("", !0) : (Y(), X("span", AM, W(fe(e.durationMs)), 1)),
29456
29491
  e.steps.length ? (Y(), X("button", {
29457
29492
  key: 1,
29458
29493
  class: "sub-toggle",
29459
29494
  onClick: (e) => ye(t)
29460
- }, W(ve.value.has(t) ? y.value.collapse : y.value.debugStepsBtn), 9, AM)) : Q("", !0)
29495
+ }, W(ve.value.has(t) ? y.value.collapse : y.value.debugStepsBtn), 9, jM)) : Q("", !0)
29461
29496
  ]),
29462
- Z("div", jM, W(de(e.task, 80)), 1),
29463
- e.resultPreview ? (Y(), X("div", MM, W(e.resultPreview), 1)) : Q("", !0),
29464
- ve.value.has(t) && e.steps.length ? (Y(), X("div", NM, [(Y(!0), X(J, null, ga(e.steps, (e, t) => (Y(), X("div", {
29497
+ Z("div", MM, W(de(e.task, 80)), 1),
29498
+ e.resultPreview ? (Y(), X("div", NM, W(e.resultPreview), 1)) : Q("", !0),
29499
+ ve.value.has(t) && e.steps.length ? (Y(), X("div", PM, [(Y(!0), X(J, null, ga(e.steps, (e, t) => (Y(), X("div", {
29465
29500
  key: t,
29466
29501
  class: "sub-step"
29467
29502
  }, [
29468
- Z("span", PM, W(e.kind === "tool_call" ? "🔧" : "✅"), 1),
29469
- Z("span", FM, W(e.name), 1),
29470
- Z("span", IM, W(N(e.ts)), 1)
29503
+ Z("span", FM, W(e.kind === "tool_call" ? "🔧" : "✅"), 1),
29504
+ Z("span", IM, W(e.name), 1),
29505
+ Z("span", LM, W(N(e.ts)), 1)
29471
29506
  ]))), 128))])) : Q("", !0)
29472
29507
  ], 2))), 128))])) : Q("", !0)], 64))])) : Q("", !0),
29473
- ce.value === "logs" ? (Y(), X(J, { key: 2 }, [S.value.length === 0 ? (Y(), X("div", LM, W(y.value.debugLogsEmpty), 1)) : Q("", !0), (Y(!0), X(J, null, ga(O.value, (e) => (Y(), X("div", {
29508
+ ce.value === "logs" ? (Y(), X(J, { key: 2 }, [S.value.length === 0 ? (Y(), X("div", RM, W(y.value.debugLogsEmpty), 1)) : Q("", !0), (Y(!0), X(J, null, ga(O.value, (e) => (Y(), X("div", {
29474
29509
  key: e.key,
29475
29510
  class: "log-group"
29476
29511
  }, [Z("div", {
@@ -29478,185 +29513,185 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
29478
29513
  onClick: (t) => M(e.key)
29479
29514
  }, [
29480
29515
  Z("span", { class: Be(["log-group-arrow", { open: j(e.key) }]) }, "▶", 2),
29481
- Z("span", zM, W(ne(e)), 1),
29482
- Z("span", BM, [
29516
+ Z("span", BM, W(ne(e)), 1),
29517
+ Z("span", VM, [
29483
29518
  Es(W(N(e.firstTs)), 1),
29484
29519
  e.lastTs > e.firstTs ? (Y(), X(J, { key: 0 }, [Es(" ~ " + W(N(e.lastTs)), 1)], 64)) : Q("", !0),
29485
29520
  Es(" · " + W(fe(e.lastTs - e.firstTs)), 1)
29486
29521
  ]),
29487
- e.toolCount ? (Y(), X("span", VM, "🔧 " + W(e.toolCount), 1)) : Q("", !0),
29488
- e.tokens == null ? Q("", !0) : (Y(), X("span", HM, "Σ " + W(e.tokens) + " tok", 1)),
29489
- e.errorCount ? (Y(), X("span", UM, "❌ " + W(e.errorCount), 1)) : Q("", !0)
29490
- ], 10, RM), ai(Z("div", WM, [(Y(!0), X(J, null, ga(e.entries, ({ log: e, pairCall: t, prevMsgCount: r, uid: i }) => (Y(), X("div", {
29522
+ e.toolCount ? (Y(), X("span", HM, "🔧 " + W(e.toolCount), 1)) : Q("", !0),
29523
+ e.tokens == null ? Q("", !0) : (Y(), X("span", UM, "Σ " + W(e.tokens) + " tok", 1)),
29524
+ e.errorCount ? (Y(), X("span", WM, "❌ " + W(e.errorCount), 1)) : Q("", !0)
29525
+ ], 10, zM), ai(Z("div", GM, [(Y(!0), X(J, null, ga(e.entries, ({ log: e, pairCall: t, prevMsgCount: r, uid: i }) => (Y(), X("div", {
29491
29526
  key: i,
29492
29527
  class: "log-item"
29493
29528
  }, [
29494
- Z("div", GM, [
29529
+ Z("div", KM, [
29495
29530
  Z("span", {
29496
29531
  class: "log-type",
29497
29532
  style: Fe({ background: b.value[e.type].color })
29498
29533
  }, W(b.value[e.type].icon) + " " + W(b.value[e.type].label), 5),
29499
- e.source ? (Y(), X("span", KM, "↳ " + W(e.source), 1)) : Q("", !0),
29500
- Z("span", qM, W(N(e.timestamp)), 1)
29534
+ e.source ? (Y(), X("span", qM, "↳ " + W(e.source), 1)) : Q("", !0),
29535
+ Z("span", JM, W(N(e.timestamp)), 1)
29501
29536
  ]),
29502
- Z("div", JM, [e.type === "context" ? (Y(), X(J, { key: 0 }, [
29503
- Z("div", YM, [
29504
- Z("div", XM, [Z("span", ZM, W(y.value.debugModel), 1), Z("span", QM, W(e.data.model), 1)]),
29505
- Z("div", $M, [Z("span", eN, W(y.value.debugTemperature), 1), Z("span", tN, W(e.data.temperature), 1)]),
29506
- Z("div", nN, [n[5] ||= Z("span", { class: "k" }, "MaxTokens", -1), Z("span", rN, W(e.data.maxTokens), 1)]),
29507
- Z("div", iN, [Z("span", aN, W(y.value.debugMessageCount), 1), Z("span", oN, W(e.data.totalMessages), 1)])
29537
+ Z("div", YM, [e.type === "context" ? (Y(), X(J, { key: 0 }, [
29538
+ Z("div", XM, [
29539
+ Z("div", ZM, [Z("span", QM, W(y.value.debugModel), 1), Z("span", $M, W(e.data.model), 1)]),
29540
+ Z("div", eN, [Z("span", tN, W(y.value.debugTemperature), 1), Z("span", nN, W(e.data.temperature), 1)]),
29541
+ Z("div", rN, [n[5] ||= Z("span", { class: "k" }, "MaxTokens", -1), Z("span", iN, W(e.data.maxTokens), 1)]),
29542
+ Z("div", aN, [Z("span", oN, W(y.value.debugMessageCount), 1), Z("span", sN, W(e.data.totalMessages), 1)])
29508
29543
  ]),
29509
- Z("div", sN, W(y.value.debugToolsLabel) + " (" + W(e.data.tools?.length || 0) + ")", 1),
29510
- Z("div", cN, [(Y(!0), X(J, null, ga(e.data.tools, (e) => (Y(), X("span", {
29544
+ Z("div", cN, W(y.value.debugToolsLabel) + " (" + W(e.data.tools?.length || 0) + ")", 1),
29545
+ Z("div", lN, [(Y(!0), X(J, null, ga(e.data.tools, (e) => (Y(), X("span", {
29511
29546
  key: e,
29512
29547
  class: "tool-chip"
29513
29548
  }, W(e), 1))), 128))]),
29514
- Z("div", lN, W(y.value.debugContextMessages), 1),
29515
- Z("div", uN, [(Y(!0), X(J, null, ga(e.data.messages, (e, t) => (Y(), X("div", {
29549
+ Z("div", uN, W(y.value.debugContextMessages), 1),
29550
+ Z("div", dN, [(Y(!0), X(J, null, ga(e.data.messages, (e, t) => (Y(), X("div", {
29516
29551
  key: t,
29517
29552
  class: "msg-row"
29518
29553
  }, [Z("span", {
29519
29554
  class: "msg-role",
29520
29555
  style: Fe({ background: ae(e.type).color })
29521
- }, W(ae(e.type).label), 5), Z("span", dN, W(e.content), 1)]))), 128))])
29522
- ], 64)) : e.type === "llm_request" ? (Y(), X(J, { key: 1 }, [Z("div", fN, [
29523
- Z("span", pN, W(y.value.debugRoundPrefix) + W(e.data.round) + W(y.value.debugRoundSuffix), 1),
29524
- e.data.model ? (Y(), X("span", mN, W(e.data.model), 1)) : Q("", !0),
29525
- Z("span", hN, [Es(W((e.data.messages || []).length) + W(y.value.debugMsgCountSuffix), 1), r != null && r < (e.data.messages || []).length ? (Y(), X(J, { key: 0 }, [Es("(+" + W((e.data.messages || []).length - r) + ")", 1)], 64)) : Q("", !0)]),
29526
- e.data.tools?.length ? (Y(), X("span", gN, W(e.data.tools.length) + W(y.value.debugToolCountSuffix), 1)) : Q("", !0),
29556
+ }, W(ae(e.type).label), 5), Z("span", fN, W(e.content), 1)]))), 128))])
29557
+ ], 64)) : e.type === "llm_request" ? (Y(), X(J, { key: 1 }, [Z("div", pN, [
29558
+ Z("span", mN, W(y.value.debugRoundPrefix) + W(e.data.round) + W(y.value.debugRoundSuffix), 1),
29559
+ e.data.model ? (Y(), X("span", hN, W(e.data.model), 1)) : Q("", !0),
29560
+ Z("span", gN, [Es(W((e.data.messages || []).length) + W(y.value.debugMsgCountSuffix), 1), r != null && r < (e.data.messages || []).length ? (Y(), X(J, { key: 0 }, [Es("(+" + W((e.data.messages || []).length - r) + ")", 1)], 64)) : Q("", !0)]),
29561
+ e.data.tools?.length ? (Y(), X("span", _N, W(e.data.tools.length) + W(y.value.debugToolCountSuffix), 1)) : Q("", !0),
29527
29562
  r != null && r > 0 ? (Y(), X("button", {
29528
29563
  key: 2,
29529
29564
  class: "view-toggle only-new-btn",
29530
29565
  onClick: (e) => h(i)
29531
- }, W(m.value.has(i) ? y.value.debugShowAll : y.value.debugOnlyNew), 9, _N)) : Q("", !0),
29566
+ }, W(m.value.has(i) ? y.value.debugShowAll : y.value.debugOnlyNew), 9, vN)) : Q("", !0),
29532
29567
  Z("button", {
29533
29568
  class: "view-toggle copy-btn",
29534
29569
  title: y.value.copy,
29535
29570
  onClick: (t) => _(F(e.data.messages), "req" + i)
29536
- }, W(g.value === "req" + i ? "✓" : "📋"), 9, vN),
29571
+ }, W(g.value === "req" + i ? "✓" : "📋"), 9, yN),
29537
29572
  Z("button", {
29538
29573
  class: "view-toggle",
29539
29574
  onClick: (e) => P(i)
29540
- }, W(d.value.has(i) ? y.value.debugCardView : y.value.debugRequestBody), 9, yN)
29541
- ]), d.value.has(i) ? (Y(), X("pre", EN, [Z("code", null, W(F(e.data.messages)), 1)])) : (Y(!0), X(J, { key: 0 }, ga([re(e, r, m.value.has(i))], (e) => (Y(), X("div", {
29575
+ }, W(d.value.has(i) ? y.value.debugCardView : y.value.debugRequestBody), 9, bN)
29576
+ ]), d.value.has(i) ? (Y(), X("pre", DN, [Z("code", null, W(F(e.data.messages)), 1)])) : (Y(!0), X(J, { key: 0 }, ga([re(e, r, m.value.has(i))], (e) => (Y(), X("div", {
29542
29577
  key: e.base,
29543
29578
  class: "msg-list"
29544
29579
  }, [(Y(!0), X(J, null, ga(e.list, (t, n) => (Y(), X("div", {
29545
29580
  key: n,
29546
- class: Be(["msg-row", { clamped: !f.value.has(i + ":" + (e.base + n)) && String(t.content ?? "").length > WF }]),
29547
- title: String(t.content ?? "").length > WF ? f.value.has(i + ":" + (e.base + n)) ? y.value.collapse : y.value.expand : void 0,
29548
- onClick: (r) => String(t.content ?? "").length > WF && p(i + ":" + (e.base + n))
29581
+ class: Be(["msg-row", { clamped: !f.value.has(i + ":" + (e.base + n)) && String(t.content ?? "").length > GF }]),
29582
+ title: String(t.content ?? "").length > GF ? f.value.has(i + ":" + (e.base + n)) ? y.value.collapse : y.value.expand : void 0,
29583
+ onClick: (r) => String(t.content ?? "").length > GF && p(i + ":" + (e.base + n))
29549
29584
  }, [Z("span", {
29550
29585
  class: "msg-role",
29551
29586
  style: Fe({ background: ae(t.role).color })
29552
- }, W(ae(t.role).label), 5), Z("div", xN, [
29553
- t.content ? (Y(), X("span", SN, W(t.content), 1)) : Q("", !0),
29587
+ }, W(ae(t.role).label), 5), Z("div", SN, [
29588
+ t.content ? (Y(), X("span", CN, W(t.content), 1)) : Q("", !0),
29554
29589
  (Y(!0), X(J, null, ga(t.tool_calls || [], (e, t) => (Y(), X("div", {
29555
29590
  key: t,
29556
29591
  class: "tc-inline"
29557
- }, [Z("span", CN, "🔧 " + W(e.function?.name || e.name), 1), Z("code", wN, W(e.function?.arguments ?? e.args), 1)]))), 128)),
29558
- t.tool_call_id ? (Y(), X("span", TN, "↳ tool_call_id: " + W(t.tool_call_id), 1)) : Q("", !0)
29559
- ])], 10, bN))), 128))]))), 128))], 64)) : e.type === "llm_response" ? (Y(), X(J, { key: 2 }, [
29560
- Z("div", DN, [Z("span", ON, W(y.value.debugRoundPrefix) + W(e.data.round) + W(y.value.debugRoundSuffix), 1), e.data.toolCalls?.length ? (Y(), X("span", kN, "🔧 " + W(e.data.toolCalls.length) + W(y.value.debugToolCallsSuffix), 1)) : Q("", !0)]),
29561
- e.data.content ? (Y(), X("div", AN, W(e.data.content), 1)) : Q("", !0),
29562
- e.data.toolCalls?.length ? (Y(), X("div", jN, [(Y(!0), X(J, null, ga(e.data.toolCalls, (e, t) => (Y(), X("div", {
29592
+ }, [Z("span", wN, "🔧 " + W(e.function?.name || e.name), 1), Z("code", TN, W(e.function?.arguments ?? e.args), 1)]))), 128)),
29593
+ t.tool_call_id ? (Y(), X("span", EN, "↳ tool_call_id: " + W(t.tool_call_id), 1)) : Q("", !0)
29594
+ ])], 10, xN))), 128))]))), 128))], 64)) : e.type === "llm_response" ? (Y(), X(J, { key: 2 }, [
29595
+ Z("div", ON, [Z("span", kN, W(y.value.debugRoundPrefix) + W(e.data.round) + W(y.value.debugRoundSuffix), 1), e.data.toolCalls?.length ? (Y(), X("span", AN, "🔧 " + W(e.data.toolCalls.length) + W(y.value.debugToolCallsSuffix), 1)) : Q("", !0)]),
29596
+ e.data.content ? (Y(), X("div", jN, W(e.data.content), 1)) : Q("", !0),
29597
+ e.data.toolCalls?.length ? (Y(), X("div", MN, [(Y(!0), X(J, null, ga(e.data.toolCalls, (e, t) => (Y(), X("div", {
29563
29598
  key: t,
29564
29599
  class: "tc-card"
29565
- }, [Z("div", MN, "🔧 " + W(e.name), 1), Z("pre", NN, W(F(e.args)), 1)]))), 128))])) : Q("", !0),
29566
- e.data.usage ? (Y(), X("div", PN, [
29567
- Z("span", FN, "prompt: " + W(e.data.usage.prompt_tokens ?? "-"), 1),
29568
- Z("span", IN, "completion: " + W(e.data.usage.completion_tokens ?? "-"), 1),
29569
- Z("span", LN, "total: " + W(e.data.usage.total_tokens ?? "-"), 1),
29570
- e.data.usage.reasoning_tokens ? (Y(), X("span", RN, "reasoning: " + W(e.data.usage.reasoning_tokens) + "(" + W(Math.round(e.data.usage.reasoning_tokens / Math.max(1, e.data.usage.completion_tokens ?? 0) * 100)) + "%)", 1)) : Q("", !0)
29600
+ }, [Z("div", NN, "🔧 " + W(e.name), 1), Z("pre", PN, W(F(e.args)), 1)]))), 128))])) : Q("", !0),
29601
+ e.data.usage ? (Y(), X("div", FN, [
29602
+ Z("span", IN, "prompt: " + W(e.data.usage.prompt_tokens ?? "-"), 1),
29603
+ Z("span", LN, "completion: " + W(e.data.usage.completion_tokens ?? "-"), 1),
29604
+ Z("span", RN, "total: " + W(e.data.usage.total_tokens ?? "-"), 1),
29605
+ e.data.usage.reasoning_tokens ? (Y(), X("span", zN, "reasoning: " + W(e.data.usage.reasoning_tokens) + "(" + W(Math.round(e.data.usage.reasoning_tokens / Math.max(1, e.data.usage.completion_tokens ?? 0) * 100)) + "%)", 1)) : Q("", !0)
29571
29606
  ])) : Q("", !0)
29572
29607
  ], 64)) : e.type === "tool_call" || e.type === "tool_result" ? (Y(), X(J, { key: 3 }, [t ? (Y(), X("div", {
29573
29608
  key: 0,
29574
29609
  class: Be(["tc-card inline paired", { error: e.data.status === "error" }])
29575
29610
  }, [
29576
- Z("div", zN, [
29611
+ Z("div", BN, [
29577
29612
  Es(W(e.data.status === "error" ? "❌" : "✅") + " " + W(e.data.name) + " ", 1),
29578
- e.data.durationMs == null ? Q("", !0) : (Y(), X("span", BN, W(fe(e.data.durationMs)), 1)),
29613
+ e.data.durationMs == null ? Q("", !0) : (Y(), X("span", VN, W(fe(e.data.durationMs)), 1)),
29579
29614
  Z("button", {
29580
29615
  class: "view-toggle copy-btn",
29581
29616
  title: y.value.copy,
29582
29617
  onClick: (t) => _(String(e.data.result ?? ""), "res" + i)
29583
- }, W(g.value === "res" + i ? "✓" : "📋"), 9, VN)
29618
+ }, W(g.value === "res" + i ? "✓" : "📋"), 9, HN)
29584
29619
  ]),
29585
- Z("pre", HN, W(F(t.data.args)), 1),
29586
- Z("div", UN, "↓ " + W(y.value.resultLabel), 1),
29587
- Z("pre", WN, W(e.data.result), 1)
29588
- ], 2)) : (Y(), X("div", GN, [Z("div", KN, [Es(W(e.type === "tool_call" ? "🔧" : "✅") + " " + W(e.data.name) + " ", 1), e.type === "tool_call" ? (Y(), X("span", qN, W(y.value.statusRunning) + "…", 1)) : Q("", !0)]), Z("pre", JN, W(e.type === "tool_call" ? F(e.data.args) : e.data.result), 1)]))], 64)) : e.type === "error" ? (Y(), X("div", YN, W(e.data.tool ? `[${e.data.tool}] ` : "") + W(e.data.error), 1)) : Q("", !0)]),
29589
- Z("div", XN, [Z("button", {
29620
+ Z("pre", UN, W(F(t.data.args)), 1),
29621
+ Z("div", WN, "↓ " + W(y.value.resultLabel), 1),
29622
+ Z("pre", GN, W(e.data.result), 1)
29623
+ ], 2)) : (Y(), X("div", KN, [Z("div", qN, [Es(W(e.type === "tool_call" ? "🔧" : "✅") + " " + W(e.data.name) + " ", 1), e.type === "tool_call" ? (Y(), X("span", JN, W(y.value.statusRunning) + "…", 1)) : Q("", !0)]), Z("pre", YN, W(e.type === "tool_call" ? F(e.data.args) : e.data.result), 1)]))], 64)) : e.type === "error" ? (Y(), X("div", XN, W(e.data.tool ? `[${e.data.tool}] ` : "") + W(e.data.error), 1)) : Q("", !0)]),
29624
+ Z("div", ZN, [Z("button", {
29590
29625
  class: "raw-toggle",
29591
29626
  onClick: (e) => ie(i)
29592
- }, W(a.value.has(i) ? y.value.debugCollapseRawJson : y.value.debugViewRawJson), 9, ZN), Z("button", {
29627
+ }, W(a.value.has(i) ? y.value.debugCollapseRawJson : y.value.debugViewRawJson), 9, QN), Z("button", {
29593
29628
  class: "raw-toggle",
29594
29629
  onClick: (t) => K(rw)(F(e.data))
29595
- }, W(y.value.copy), 9, QN)]),
29596
- a.value.has(i) ? (Y(), X("pre", $N, [Z("code", null, W(F(e.data)), 1)])) : Q("", !0)
29597
- ]))), 128))], 512), [[Uc, j(e.key)]])]))), 128))], 64)) : ce.value === "info" ? (Y(), X("div", eP, [L.value ? (Y(), X(J, { key: 1 }, [
29598
- Z("div", nP, [
29599
- Z("div", rP, W(y.value.debugInfoBasic), 1),
29600
- Z("div", iP, [
29601
- Z("div", aP, [n[6] ||= Z("span", { class: "k" }, "ID", -1), Z("span", oP, W(L.value.id), 1)]),
29602
- Z("div", sP, [Z("span", cP, W(y.value.debugModel), 1), Z("span", lP, W(L.value.model || "-"), 1)]),
29603
- Z("div", uP, [Z("span", dP, W(y.value.debugToolCount), 1), Z("span", fP, W(L.value.tools.length), 1)]),
29604
- Z("div", pP, [Z("span", mP, W(y.value.debugMiddleware), 1), Z("span", hP, W(L.value.middleware.length), 1)])
29630
+ }, W(y.value.copy), 9, $N)]),
29631
+ a.value.has(i) ? (Y(), X("pre", eP, [Z("code", null, W(F(e.data)), 1)])) : Q("", !0)
29632
+ ]))), 128))], 512), [[Uc, j(e.key)]])]))), 128))], 64)) : ce.value === "info" ? (Y(), X("div", tP, [L.value ? (Y(), X(J, { key: 1 }, [
29633
+ Z("div", rP, [
29634
+ Z("div", iP, W(y.value.debugInfoBasic), 1),
29635
+ Z("div", aP, [
29636
+ Z("div", oP, [n[6] ||= Z("span", { class: "k" }, "ID", -1), Z("span", sP, W(L.value.id), 1)]),
29637
+ Z("div", cP, [Z("span", lP, W(y.value.debugModel), 1), Z("span", uP, W(L.value.model || "-"), 1)]),
29638
+ Z("div", dP, [Z("span", fP, W(y.value.debugToolCount), 1), Z("span", pP, W(L.value.tools.length), 1)]),
29639
+ Z("div", mP, [Z("span", hP, W(y.value.debugMiddleware), 1), Z("span", gP, W(L.value.middleware.length), 1)])
29605
29640
  ]),
29606
- Z("div", gP, [Z("span", _P, W(y.value.debugMiddlewareStack), 1), Z("span", vP, W(L.value.middleware.join(" → ") || "-"), 1)])
29641
+ Z("div", _P, [Z("span", vP, W(y.value.debugMiddlewareStack), 1), Z("span", yP, W(L.value.middleware.join(" → ") || "-"), 1)])
29607
29642
  ]),
29608
- Z("div", yP, [Z("div", bP, "🔧 " + W(y.value.debugToolsLabel) + " (" + W(L.value.tools.length) + ")", 1), (Y(!0), X(J, null, ga(L.value.tools, (e) => (Y(), X("div", {
29643
+ Z("div", bP, [Z("div", xP, "🔧 " + W(y.value.debugToolsLabel) + " (" + W(L.value.tools.length) + ")", 1), (Y(!0), X(J, null, ga(L.value.tools, (e) => (Y(), X("div", {
29609
29644
  key: e.name,
29610
29645
  class: "info-item"
29611
- }, [Z("div", xP, [Es(W(e.name), 1), e.source ? (Y(), X("span", {
29646
+ }, [Z("div", SP, [Es(W(e.name), 1), e.source ? (Y(), X("span", {
29612
29647
  key: 0,
29613
29648
  class: Be(["src-tag", H(e.source)])
29614
- }, W(e.source), 3)) : Q("", !0)]), Z("div", SP, W(e.description), 1)]))), 128))]),
29615
- L.value.skills.length ? (Y(), X("div", CP, [Z("div", wP, [Es("📘 " + W(y.value.debugSkillsTitle) + " (" + W(L.value.skills.length) + ")", 1), Z("span", TP, W(y.value.debugSkillsHint), 1)]), (Y(!0), X(J, null, ga(L.value.skills, (e) => (Y(), X("div", {
29649
+ }, W(e.source), 3)) : Q("", !0)]), Z("div", CP, W(e.description), 1)]))), 128))]),
29650
+ L.value.skills.length ? (Y(), X("div", wP, [Z("div", TP, [Es("📘 " + W(y.value.debugSkillsTitle) + " (" + W(L.value.skills.length) + ")", 1), Z("span", EP, W(y.value.debugSkillsHint), 1)]), (Y(!0), X(J, null, ga(L.value.skills, (e) => (Y(), X("div", {
29616
29651
  key: e.name,
29617
29652
  class: "info-item"
29618
29653
  }, [
29619
29654
  Z("div", {
29620
29655
  class: "info-name skill-toggle",
29621
29656
  onClick: (t) => z(e.name)
29622
- }, [Z("span", { class: Be(["skill-arrow", { open: !!R.value[e.name] }]) }, "▶", 2), Es(" " + W(e.name), 1)], 8, EP),
29623
- Z("div", DP, W(e.description), 1),
29624
- R.value[e.name] ? (Y(), X("div", OP, [R.value[e.name].loading ? (Y(), X("div", kP, W(y.value.debugLoading), 1)) : R.value[e.name].error ? (Y(), X("div", AP, W(R.value[e.name].error), 1)) : R.value[e.name].content ? (Y(), X("pre", jP, W(R.value[e.name].content), 1)) : Q("", !0)])) : Q("", !0)
29657
+ }, [Z("span", { class: Be(["skill-arrow", { open: !!R.value[e.name] }]) }, "▶", 2), Es(" " + W(e.name), 1)], 8, DP),
29658
+ Z("div", OP, W(e.description), 1),
29659
+ R.value[e.name] ? (Y(), X("div", kP, [R.value[e.name].loading ? (Y(), X("div", AP, W(y.value.debugLoading), 1)) : R.value[e.name].error ? (Y(), X("div", jP, W(R.value[e.name].error), 1)) : R.value[e.name].content ? (Y(), X("pre", MP, W(R.value[e.name].content), 1)) : Q("", !0)])) : Q("", !0)
29625
29660
  ]))), 128))])) : Q("", !0),
29626
- L.value.data ? (Y(), X("div", MP, [Z("div", NP, "📊 " + W(y.value.debugDataTitle), 1), Z("div", PP, [Z("div", FP, W(L.value.data.description || y.value.debugDataFallback), 1), Z("div", IP, W(y.value.debugSchemaPrefix) + W(L.value.data.schema ? y.value.debugSchemaDeclared : y.value.debugSchemaMissing), 1)])])) : Q("", !0),
29627
- Z("div", LP, [Z("div", RP, "🧬 " + W(y.value.debugSubagentTitle), 1), Z("div", zP, [
29628
- Z("div", BP, [Z("span", VP, W(y.value.debugEnabled), 1), Z("span", HP, W(L.value.subagent.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
29629
- Z("div", UP, [Z("span", WP, W(y.value.debugMaxDepth), 1), Z("span", GP, W(L.value.subagent.maxDepth), 1)]),
29630
- Z("div", KP, [Z("span", qP, W(y.value.debugMaxParallel), 1), Z("span", JP, W(L.value.subagent.maxParallel), 1)]),
29631
- Z("div", YP, [Z("span", XP, W(y.value.debugExtraTools), 1), Z("span", ZP, W(L.value.subagent.allowedTools.length ? L.value.subagent.allowedTools.join(", ") : y.value.debugDefaultReadonly), 1)])
29661
+ L.value.data ? (Y(), X("div", NP, [Z("div", PP, "📊 " + W(y.value.debugDataTitle), 1), Z("div", FP, [Z("div", IP, W(L.value.data.description || y.value.debugDataFallback), 1), Z("div", LP, W(y.value.debugSchemaPrefix) + W(L.value.data.schema ? y.value.debugSchemaDeclared : y.value.debugSchemaMissing), 1)])])) : Q("", !0),
29662
+ Z("div", RP, [Z("div", zP, "🧬 " + W(y.value.debugSubagentTitle), 1), Z("div", BP, [
29663
+ Z("div", VP, [Z("span", HP, W(y.value.debugEnabled), 1), Z("span", UP, W(L.value.subagent.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
29664
+ Z("div", WP, [Z("span", GP, W(y.value.debugMaxDepth), 1), Z("span", KP, W(L.value.subagent.maxDepth), 1)]),
29665
+ Z("div", qP, [Z("span", JP, W(y.value.debugMaxParallel), 1), Z("span", YP, W(L.value.subagent.maxParallel), 1)]),
29666
+ Z("div", XP, [Z("span", ZP, W(y.value.debugExtraTools), 1), Z("span", QP, W(L.value.subagent.allowedTools.length ? L.value.subagent.allowedTools.join(", ") : y.value.debugDefaultReadonly), 1)])
29632
29667
  ])]),
29633
- L.value.mcp?.servers?.length ? (Y(), X("div", QP, [Z("div", $P, "🔌 MCP (" + W(L.value.mcp.servers.length) + ")", 1), (Y(!0), X(J, null, ga(L.value.mcp.servers, (e) => (Y(), X("div", {
29668
+ L.value.mcp?.servers?.length ? (Y(), X("div", $P, [Z("div", eF, "🔌 MCP (" + W(L.value.mcp.servers.length) + ")", 1), (Y(!0), X(J, null, ga(L.value.mcp.servers, (e) => (Y(), X("div", {
29634
29669
  key: e.name,
29635
29670
  class: "info-item"
29636
- }, [Z("div", eF, [Es(W(e.name) + " ", 1), Z("span", tF, W(e.toolCount) + W(y.value.debugToolCountSuffix), 1)]), Z("div", nF, W(e.url), 1)]))), 128))])) : Q("", !0),
29637
- L.value.verify ? (Y(), X("div", rF, [Z("div", iF, "✅ " + W(y.value.debugVerifyTitle), 1), Z("div", aF, [
29638
- Z("div", oF, [Z("span", sF, W(y.value.debugEnabled), 1), Z("span", cF, W(L.value.verify.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
29639
- Z("div", lF, [Z("span", uF, W(y.value.debugMaxAttempts), 1), Z("span", dF, W(L.value.verify.maxAttempts), 1)]),
29640
- Z("div", fF, [Z("span", pF, W(y.value.debugAdversarial), 1), Z("span", mF, W(L.value.verify.adversarial ? y.value.debugOn : y.value.debugOff), 1)]),
29641
- L.value.verify.adversarial ? (Y(), X("div", hF, [Z("span", gF, W(y.value.debugAdversarialModel), 1), Z("span", _F, W(L.value.model || "-") + W(y.value.debugSameAsMain), 1)])) : Q("", !0)
29671
+ }, [Z("div", tF, [Es(W(e.name) + " ", 1), Z("span", nF, W(e.toolCount) + W(y.value.debugToolCountSuffix), 1)]), Z("div", rF, W(e.url), 1)]))), 128))])) : Q("", !0),
29672
+ L.value.verify ? (Y(), X("div", iF, [Z("div", aF, "✅ " + W(y.value.debugVerifyTitle), 1), Z("div", oF, [
29673
+ Z("div", sF, [Z("span", cF, W(y.value.debugEnabled), 1), Z("span", lF, W(L.value.verify.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
29674
+ Z("div", uF, [Z("span", dF, W(y.value.debugMaxAttempts), 1), Z("span", fF, W(L.value.verify.maxAttempts), 1)]),
29675
+ Z("div", pF, [Z("span", mF, W(y.value.debugAdversarial), 1), Z("span", hF, W(L.value.verify.adversarial ? y.value.debugOn : y.value.debugOff), 1)]),
29676
+ L.value.verify.adversarial ? (Y(), X("div", gF, [Z("span", _F, W(y.value.debugAdversarialModel), 1), Z("span", vF, W(L.value.model || "-") + W(y.value.debugSameAsMain), 1)])) : Q("", !0)
29642
29677
  ])])) : Q("", !0),
29643
- L.value.todos.length ? (Y(), X("div", vF, [Z("div", yF, "📋 " + W(y.value.debugTodosTitle) + " (" + W(L.value.todos.length) + ")", 1), (Y(!0), X(J, null, ga(L.value.todos, (e, t) => (Y(), X("div", {
29678
+ L.value.todos.length ? (Y(), X("div", yF, [Z("div", bF, "📋 " + W(y.value.debugTodosTitle) + " (" + W(L.value.todos.length) + ")", 1), (Y(!0), X(J, null, ga(L.value.todos, (e, t) => (Y(), X("div", {
29644
29679
  key: t,
29645
29680
  class: "info-todo"
29646
29681
  }, [Z("span", {
29647
29682
  class: "todo-tag",
29648
29683
  style: Fe({ background: V.value[e.status] && V.value[e.status].color || "#9ca3af" })
29649
29684
  }, W(ue(e.status)), 5), Z("span", null, W(e.content), 1)]))), 128))])) : Q("", !0),
29650
- L.value.memory ? (Y(), X("div", bF, [Z("div", xF, "📝 " + W(y.value.debugMemoryTitle), 1), Z("pre", SF, W(L.value.memory), 1)])) : Q("", !0),
29651
- L.value.lastCompression ? (Y(), X("div", CF, [Z("div", wF, "🗜️ " + W(y.value.debugLastCompTitle), 1), Z("div", TF, [
29652
- Z("div", EF, [Z("span", DF, W(y.value.debugTriggered), 1), Z("span", OF, W(L.value.lastCompression.triggered ? "✓" : y.value.debugNotTriggered), 1)]),
29653
- Z("div", kF, [Z("span", AF, W(y.value.debugRoundsSummarized), 1), Z("span", jF, W(L.value.lastCompression.roundsSummarized) + " / " + W(L.value.lastCompression.roundsTotal), 1)]),
29654
- Z("div", MF, [Z("span", NF, W(y.value.debugCtxRecalled), 1), Z("span", PF, W(L.value.lastCompression.roundsRecalled) + W(y.value.debugCountSuffix), 1)]),
29655
- Z("div", FF, [Z("span", IF, W(y.value.debugMessageCount), 1), Z("span", LF, W(L.value.lastCompression.originalMessages) + " → " + W(L.value.lastCompression.compressedMessages), 1)]),
29656
- Z("div", RF, [Z("span", zF, W(y.value.debugStrategy), 1), Z("span", BF, W(L.value.lastCompression.strategy), 1)]),
29657
- L.value.lastCompression.decision ? (Y(), X("div", VF, [Z("span", HF, W(y.value.debugDecision), 1), Z("span", UF, "🤖 " + W(be(L.value.lastCompression.decision)), 1)])) : Q("", !0)
29685
+ L.value.memory ? (Y(), X("div", xF, [Z("div", SF, "📝 " + W(y.value.debugMemoryTitle), 1), Z("pre", CF, W(L.value.memory), 1)])) : Q("", !0),
29686
+ L.value.lastCompression ? (Y(), X("div", wF, [Z("div", TF, "🗜️ " + W(y.value.debugLastCompTitle), 1), Z("div", EF, [
29687
+ Z("div", DF, [Z("span", OF, W(y.value.debugTriggered), 1), Z("span", kF, W(L.value.lastCompression.triggered ? "✓" : y.value.debugNotTriggered), 1)]),
29688
+ Z("div", AF, [Z("span", jF, W(y.value.debugRoundsSummarized), 1), Z("span", MF, W(L.value.lastCompression.roundsSummarized) + " / " + W(L.value.lastCompression.roundsTotal), 1)]),
29689
+ Z("div", NF, [Z("span", PF, W(y.value.debugCtxRecalled), 1), Z("span", FF, W(L.value.lastCompression.roundsRecalled) + W(y.value.debugCountSuffix), 1)]),
29690
+ Z("div", IF, [Z("span", LF, W(y.value.debugMessageCount), 1), Z("span", RF, W(L.value.lastCompression.originalMessages) + " → " + W(L.value.lastCompression.compressedMessages), 1)]),
29691
+ Z("div", zF, [Z("span", BF, W(y.value.debugStrategy), 1), Z("span", VF, W(L.value.lastCompression.strategy), 1)]),
29692
+ L.value.lastCompression.decision ? (Y(), X("div", HF, [Z("span", UF, W(y.value.debugDecision), 1), Z("span", WF, "🤖 " + W(be(L.value.lastCompression.decision)), 1)])) : Q("", !0)
29658
29693
  ])])) : Q("", !0)
29659
- ], 64)) : (Y(), X("div", tP, W(y.value.debugNoInfo), 1))])) : Q("", !0)
29694
+ ], 64)) : (Y(), X("div", nP, W(y.value.debugNoInfo), 1))])) : Q("", !0)
29660
29695
  ], 512)], 512)], 512)
29661
29696
  ], 2), Z("div", {
29662
29697
  class: "drawer-mask",
@@ -29665,16 +29700,16 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
29665
29700
  _: 1
29666
29701
  })]));
29667
29702
  }
29668
- }), [["__scopeId", "data-v-ffd46605"]]), KF = { class: "skill-panel" }, qF = { class: "skill-header" }, JF = { class: "skill-title" }, YF = ["title"], XF = { class: "skill-section" }, ZF = { class: "section-title" }, QF = ["title"], $F = { class: "field" }, eI = { class: "field-label" }, tI = ["disabled", "placeholder"], nI = { class: "field" }, rI = { class: "field-label" }, iI = ["placeholder"], aI = { class: "field field-textarea" }, oI = { class: "field-label" }, sI = ["placeholder"], cI = {
29703
+ }), [["__scopeId", "data-v-ffd46605"]]), qF = { class: "skill-panel" }, JF = { class: "skill-header" }, YF = { class: "skill-title" }, XF = ["title"], ZF = { class: "skill-section" }, QF = { class: "section-title" }, $F = ["title"], eI = { class: "field" }, tI = { class: "field-label" }, nI = ["disabled", "placeholder"], rI = { class: "field" }, iI = { class: "field-label" }, aI = ["placeholder"], oI = { class: "field field-textarea" }, sI = { class: "field-label" }, cI = ["placeholder"], lI = {
29669
29704
  key: 0,
29670
29705
  class: "skill-error"
29671
- }, lI = { class: "skill-section" }, uI = { class: "section-title" }, dI = {
29706
+ }, uI = { class: "skill-section" }, dI = { class: "section-title" }, fI = {
29672
29707
  key: 0,
29673
29708
  class: "empty-hint"
29674
- }, fI = {
29709
+ }, pI = {
29675
29710
  key: 1,
29676
29711
  class: "skill-list"
29677
- }, pI = { class: "skill-actions" }, mI = ["title", "onClick"], hI = ["title", "onClick"], gI = { class: "skill-hint" }, _I = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
29712
+ }, mI = { class: "skill-actions" }, hI = ["title", "onClick"], gI = ["title", "onClick"], _I = { class: "skill-hint" }, vI = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
29678
29713
  __name: "SkillPanel",
29679
29714
  props: {
29680
29715
  visible: { type: Boolean },
@@ -29729,55 +29764,55 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
29729
29764
  key: 0,
29730
29765
  class: "skill-mask",
29731
29766
  onClick: n[4] ||= Ol((e) => r("close"), ["self"])
29732
- }, [Z("div", KF, [
29733
- Z("div", qF, [Z("span", JF, W(e.messages.skillPanelTitle), 1), Z("button", {
29767
+ }, [Z("div", qF, [
29768
+ Z("div", JF, [Z("span", YF, W(e.messages.skillPanelTitle), 1), Z("button", {
29734
29769
  class: "skill-close",
29735
29770
  title: e.messages.close,
29736
29771
  onClick: n[0] ||= (e) => r("close")
29737
- }, "✕", 8, YF)]),
29738
- Z("div", XF, [
29739
- Z("div", ZF, [Es(W(u.value ? `${e.messages.skillEditingPrefix}${u.value}` : e.messages.skillCreateNew) + " ", 1), u.value ? (Y(), X("button", {
29772
+ }, "✕", 8, XF)]),
29773
+ Z("div", ZF, [
29774
+ Z("div", QF, [Es(W(u.value ? `${e.messages.skillEditingPrefix}${u.value}` : e.messages.skillCreateNew) + " ", 1), u.value ? (Y(), X("button", {
29740
29775
  key: 0,
29741
29776
  class: "btn btn-ghost btn-cancel",
29742
29777
  title: e.messages.skillCancelEdit,
29743
29778
  onClick: h
29744
- }, W(e.messages.skillCancelEdit), 9, QF)) : Q("", !0)]),
29745
- Z("label", $F, [Z("span", eI, W(e.messages.skillNameLabel), 1), ai(Z("input", {
29779
+ }, W(e.messages.skillCancelEdit), 9, $F)) : Q("", !0)]),
29780
+ Z("label", eI, [Z("span", tI, W(e.messages.skillNameLabel), 1), ai(Z("input", {
29746
29781
  "onUpdate:modelValue": n[1] ||= (e) => i.value = e,
29747
29782
  disabled: !!u.value,
29748
29783
  placeholder: e.messages.skillNamePlaceholder,
29749
29784
  class: "field-input"
29750
- }, null, 8, tI), [[Tl, i.value]])]),
29751
- Z("label", nI, [Z("span", rI, W(e.messages.skillDescLabel), 1), ai(Z("input", {
29785
+ }, null, 8, nI), [[Tl, i.value]])]),
29786
+ Z("label", rI, [Z("span", iI, W(e.messages.skillDescLabel), 1), ai(Z("input", {
29752
29787
  "onUpdate:modelValue": n[2] ||= (e) => a.value = e,
29753
29788
  placeholder: e.messages.skillDescPlaceholder,
29754
29789
  class: "field-input"
29755
- }, null, 8, iI), [[Tl, a.value]])]),
29756
- Z("label", aI, [Z("span", oI, W(e.messages.skillContentLabel), 1), ai(Z("textarea", {
29790
+ }, null, 8, aI), [[Tl, a.value]])]),
29791
+ Z("label", oI, [Z("span", sI, W(e.messages.skillContentLabel), 1), ai(Z("textarea", {
29757
29792
  "onUpdate:modelValue": n[3] ||= (e) => o.value = e,
29758
29793
  placeholder: e.messages.skillContentPlaceholder,
29759
29794
  rows: "6",
29760
29795
  class: "field-input"
29761
- }, null, 8, sI), [[Tl, o.value]])]),
29762
- s.value ? (Y(), X("div", cI, W(s.value), 1)) : Q("", !0),
29796
+ }, null, 8, cI), [[Tl, o.value]])]),
29797
+ s.value ? (Y(), X("div", lI, W(s.value), 1)) : Q("", !0),
29763
29798
  Z("button", {
29764
29799
  class: "btn btn-primary",
29765
29800
  onClick: f
29766
29801
  }, W(u.value ? e.messages.skillSave : e.messages.skillAdd), 1)
29767
29802
  ]),
29768
- Z("div", lI, [Z("div", uI, W(e.messages.skillCreatedTitle) + "(" + W(c.value.length) + ")", 1), c.value.length ? (Y(), X("ul", fI, [(Y(!0), X(J, null, ga(c.value, (t) => (Y(), X("li", {
29803
+ Z("div", uI, [Z("div", dI, W(e.messages.skillCreatedTitle) + "(" + W(c.value.length) + ")", 1), c.value.length ? (Y(), X("ul", pI, [(Y(!0), X(J, null, ga(c.value, (t) => (Y(), X("li", {
29769
29804
  key: t,
29770
29805
  class: "skill-item"
29771
- }, [Z("span", { class: Be(["skill-name", { active: u.value === t }]) }, W(t), 3), Z("span", pI, [Z("button", {
29806
+ }, [Z("span", { class: Be(["skill-name", { active: u.value === t }]) }, W(t), 3), Z("span", mI, [Z("button", {
29772
29807
  class: "btn btn-ghost btn-edit",
29773
29808
  title: e.messages.skillEditTitle,
29774
29809
  onClick: (e) => m(t)
29775
- }, W(e.messages.skillEditBtn), 9, mI), Z("button", {
29810
+ }, W(e.messages.skillEditBtn), 9, hI), Z("button", {
29776
29811
  class: "btn btn-ghost btn-del",
29777
29812
  title: e.messages.skillDeleteTitle,
29778
29813
  onClick: (e) => p(t)
29779
- }, W(e.messages.skillDeleteBtn), 9, hI)])]))), 128))])) : (Y(), X("div", dI, W(e.messages.skillEmpty), 1))]),
29780
- Z("div", gI, [
29814
+ }, W(e.messages.skillDeleteBtn), 9, gI)])]))), 128))])) : (Y(), X("div", fI, W(e.messages.skillEmpty), 1))]),
29815
+ Z("div", _I, [
29781
29816
  Es(" 💡 " + W(e.messages.skillHintA) + " ", 1),
29782
29817
  n[5] ||= Z("code", null, "load_skill(name)", -1),
29783
29818
  Es(" " + W(e.messages.skillHintB) + " ", 1),
@@ -29788,7 +29823,7 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
29788
29823
  _: 1
29789
29824
  })]));
29790
29825
  }
29791
- }), [["__scopeId", "data-v-fcd21121"]]), vI = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
29826
+ }), [["__scopeId", "data-v-fcd21121"]]), yI = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
29792
29827
  __name: "ChatDialog",
29793
29828
  props: {
29794
29829
  fetchResponse: {},
@@ -29977,7 +30012,7 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
29977
30012
  key: 0,
29978
30013
  name: "cs-slide"
29979
30014
  }, {
29980
- default: ri(() => [_a(t.$slots, "body", { chat: K(i) }, () => [ai(xs(wA, {
30015
+ default: ri(() => [_a(t.$slots, "body", { chat: K(i) }, () => [ai(xs(TA, {
29981
30016
  "show-avatar": e.showAvatar,
29982
30017
  "show-typing": e.showTyping
29983
30018
  }, null, 8, ["show-avatar", "show-typing"]), [[Uc, K(a)]])], !0)]),
@@ -29986,15 +30021,15 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
29986
30021
  h("queued") ? _a(t.$slots, "queued", {
29987
30022
  key: 1,
29988
30023
  chat: K(i)
29989
- }, () => [xs(PA)], !0) : Q("", !0),
30024
+ }, () => [xs(FA)], !0) : Q("", !0),
29990
30025
  h("approval") ? _a(t.$slots, "approval", {
29991
30026
  key: 2,
29992
30027
  chat: K(i)
29993
- }, () => [xs(YA)], !0) : Q("", !0),
30028
+ }, () => [xs(XA)], !0) : Q("", !0),
29994
30029
  h("conflict") ? _a(t.$slots, "conflict", {
29995
30030
  key: 3,
29996
30031
  chat: K(i)
29997
- }, () => [xs(fj, {
30032
+ }, () => [xs(pj, {
29998
30033
  "pending-conflict": e.pendingConflict,
29999
30034
  "on-resolve": e.onResolveConflict,
30000
30035
  icons: K(i).icons,
@@ -30010,7 +30045,7 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
30010
30045
  key: 2,
30011
30046
  name: "cs-slide"
30012
30047
  }, {
30013
- default: ri(() => [_a(t.$slots, "footer", { chat: K(i) }, () => [xs(Fj, {
30048
+ default: ri(() => [_a(t.$slots, "footer", { chat: K(i) }, () => [xs(Ij, {
30014
30049
  placeholder: e.placeholder || K(i).messages.inputPlaceholder,
30015
30050
  "input-rows": e.inputRows
30016
30051
  }, null, 8, ["placeholder", "input-rows"])], !0)]),
@@ -30019,7 +30054,7 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
30019
30054
  h("debug") ? _a(t.$slots, "debug", {
30020
30055
  key: 3,
30021
30056
  chat: K(i)
30022
- }, () => [xs(GF, {
30057
+ }, () => [xs(KF, {
30023
30058
  visible: K(o),
30024
30059
  "onUpdate:visible": n[4] ||= (e) => /* @__PURE__ */ jn(o) ? o.value = e : null,
30025
30060
  logs: e.debugLogs,
@@ -30045,7 +30080,7 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
30045
30080
  h("skill") ? _a(t.$slots, "skill", {
30046
30081
  key: 4,
30047
30082
  chat: K(i)
30048
- }, () => [xs(_I, {
30083
+ }, () => [xs(vI, {
30049
30084
  visible: K(s),
30050
30085
  "on-add-skill": e.onAddSkill,
30051
30086
  "on-remove-skill": e.onRemoveSkill,
@@ -30067,10 +30102,10 @@ var Wk = ["innerHTML"], Gk = /* @__PURE__ */ Wi({
30067
30102
  }), [["__scopeId", "data-v-e3c6c516"]]);
30068
30103
  //#endregion
30069
30104
  //#region src/core/sdk/mountChatDialog.ts
30070
- function yI(e) {
30105
+ function bI(e) {
30071
30106
  let { core: t, dialogCfg: n } = e, r = null, i = e.el, a = t.agent.debugLogs;
30072
30107
  return r = Pl(/* @__PURE__ */ Wi({ setup() {
30073
- return () => cc(vI, {
30108
+ return () => cc(yI, {
30074
30109
  fetchStream: e.streaming ? t.stream : void 0,
30075
30110
  fetchResponse: e.streaming ? void 0 : (e, n) => {
30076
30111
  if (n) {
@@ -30190,7 +30225,7 @@ function yI(e) {
30190
30225
  }
30191
30226
  //#endregion
30192
30227
  //#region src/core/sdk/ragSubagent.ts
30193
- function bI(e, t, n, r, i) {
30228
+ function xI(e, t, n, r, i) {
30194
30229
  let a = [];
30195
30230
  e && a.push("vfs_grep + vfs_read(搜预注入文档)"), t && a.push(`${r}(语义检索)`), n && a.push(`${i}(按 source 加载)`), a.push("fetch_document(公网 URL)");
30196
30231
  let o = [];
@@ -30205,7 +30240,7 @@ function bI(e, t, n, r, i) {
30205
30240
 
30206
30241
  你是只读检索角色,不要尝试修改任何数据。不要尝试上面未列出的工具。`;
30207
30242
  }
30208
- function xI(e, t, n, r, i) {
30243
+ function SI(e, t, n, r, i) {
30209
30244
  let a = [], o = [];
30210
30245
  return e && (a.push("- vfs_grep / vfs_read:搜集成方预注入 vfs 的文档(组件文档 / UI 规范)—— 快、静态,先查"), o.push("- 静态文档(组件库文档 / UI 规范):vfs_grep")), t && (a.push(`- ${r}:语义检索(retriever 向量库)—— 模糊匹配,关键词不确定 / 语义相似时用`), o.push(`- 语义相似(「瀑布流组件」「倒计时」「拼团」):${r}`)), n && (a.push(`- ${i}:按 source 精确加载(已知文档 id / URL / key)—— 精确取特定文档`), o.push(`- 已知文档 id / URL:${i}`)), a.push("- fetch_document:公网 URL —— 查公开资料"), o.push("- 公开 URL(设计规范网站 / 第三方文档):fetch_document"), `# 知识检索策略(RAG)
30211
30246
 
@@ -30222,12 +30257,12 @@ ${a.join("\n")}
30222
30257
  ## 何时用何源
30223
30258
  ${o.join("\n")}`;
30224
30259
  }
30225
- var SI = {
30260
+ var CI = {
30226
30261
  name: "rag-search",
30227
30262
  description: "多源知识检索策略:vfs 预注入文档 → 语义检索 → 指定文档加载 → 公网;综合结构化结论 + 溯源",
30228
- getContent: () => xI(!0, !0, !0, "search_docs", "load_doc")
30263
+ getContent: () => SI(!0, !0, !0, "search_docs", "load_doc")
30229
30264
  };
30230
- function CI(e, n, i) {
30265
+ function wI(e, n, i) {
30231
30266
  let a = r(async ({ query: e, topK: t }) => {
30232
30267
  try {
30233
30268
  let r = await n(e, { topK: t ?? i });
@@ -30245,7 +30280,7 @@ function CI(e, n, i) {
30245
30280
  });
30246
30281
  return hu([a]), a;
30247
30282
  }
30248
- function wI(e, n) {
30283
+ function TI(e, n) {
30249
30284
  let i = r(async ({ source: e }) => {
30250
30285
  try {
30251
30286
  let t = await n(e), r = Array.isArray(t) ? t : [t];
@@ -30260,19 +30295,19 @@ function wI(e, n) {
30260
30295
  });
30261
30296
  return hu([i]), i;
30262
30297
  }
30263
- function TI(e) {
30298
+ function EI(e) {
30264
30299
  let { retriever: t, loader: n, useVfs: r = !0, id: i = "rag", description: a, topK: o = 5, searchToolName: s = "search_docs", loadToolName: c = "load_doc", maxToolRounds: l = 8, summarization: u, skills: d, extraTools: f } = e;
30265
30300
  if (!t && !n && r === !1) throw Error("[page-agent-sdk][createRagSubagent] 至少配一种知识源:retriever / loader / useVfs(true)");
30266
30301
  let p = [];
30267
- t && p.push(CI(s, t, o)), n && p.push(wI(c, n)), f && p.push(...f);
30302
+ t && p.push(wI(s, t, o)), n && p.push(TI(c, n)), f && p.push(...f);
30268
30303
  let m = r ? [
30269
30304
  "vfs_grep",
30270
30305
  "vfs_read",
30271
30306
  "vfs_json_read"
30272
- ] : void 0, h = bI(r, !!t, !!n, s, c), g = {
30307
+ ] : void 0, h = xI(r, !!t, !!n, s, c), g = {
30273
30308
  name: "rag-search",
30274
- description: SI.description,
30275
- getContent: () => xI(r, !!t, !!n, s, c)
30309
+ description: CI.description,
30310
+ getContent: () => SI(r, !!t, !!n, s, c)
30276
30311
  };
30277
30312
  return {
30278
30313
  id: i,
@@ -30287,20 +30322,20 @@ function TI(e) {
30287
30322
  }
30288
30323
  //#endregion
30289
30324
  //#region src/core/components/CodePreview.vue?vue&type=script&setup=true&lang.ts
30290
- var EI = { class: "code-preview-modal" }, DI = { class: "preview-header" }, OI = { class: "preview-title" }, kI = { class: "preview-tabs" }, AI = ["disabled"], jI = { class: "preview-actions" }, MI = ["title"], NI = {
30325
+ var DI = { class: "code-preview-modal" }, OI = { class: "preview-header" }, kI = { class: "preview-title" }, AI = { class: "preview-tabs" }, jI = ["disabled"], MI = { class: "preview-actions" }, NI = ["title"], PI = {
30291
30326
  key: 0,
30292
30327
  viewBox: "0 0 16 16",
30293
30328
  fill: "none",
30294
30329
  "aria-hidden": "true"
30295
- }, PI = {
30330
+ }, FI = {
30296
30331
  key: 1,
30297
30332
  viewBox: "0 0 16 16",
30298
30333
  fill: "none",
30299
30334
  "aria-hidden": "true"
30300
- }, FI = ["title"], II = ["title"], LI = { class: "preview-body" }, RI = ["srcdoc"], zI = {
30335
+ }, II = ["title"], LI = ["title"], RI = { class: "preview-body" }, zI = ["srcdoc"], BI = {
30301
30336
  key: 1,
30302
30337
  class: "preview-source"
30303
- }, BI = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
30338
+ }, VI = /*#__PURE__*/ qT(/* @__PURE__ */ Wi({
30304
30339
  __name: "CodePreview",
30305
30340
  props: {
30306
30341
  code: {},
@@ -30367,28 +30402,28 @@ app.mount('#app');
30367
30402
  return (t, n) => (Y(), X("div", {
30368
30403
  class: "code-preview-overlay",
30369
30404
  onClick: n[3] ||= Ol((e) => r("close"), ["self"])
30370
- }, [Z("div", EI, [Z("div", DI, [
30371
- Z("span", OI, W(e.messages.codePreviewTitlePrefix) + W(e.lang), 1),
30372
- Z("div", kI, [Z("button", {
30405
+ }, [Z("div", DI, [Z("div", OI, [
30406
+ Z("span", kI, W(e.messages.codePreviewTitlePrefix) + W(e.lang), 1),
30407
+ Z("div", AI, [Z("button", {
30373
30408
  class: Be({ active: a.value === "preview" }),
30374
30409
  disabled: !s.value,
30375
30410
  onClick: n[0] ||= (e) => a.value = "preview"
30376
- }, W(e.messages.codePreviewTab), 11, AI), Z("button", {
30411
+ }, W(e.messages.codePreviewTab), 11, jI), Z("button", {
30377
30412
  class: Be({ active: a.value === "source" }),
30378
30413
  onClick: n[1] ||= (e) => a.value = "source"
30379
30414
  }, W(e.messages.codeSourceTab), 3)]),
30380
- Z("div", jI, [
30415
+ Z("div", MI, [
30381
30416
  Z("button", {
30382
30417
  class: Be(["icon-btn", { done: o.value }]),
30383
30418
  title: o.value ? e.messages.copied : e.messages.codeCopyTitle,
30384
30419
  onClick: u
30385
- }, [o.value ? (Y(), X("svg", NI, [...n[4] ||= [Z("path", {
30420
+ }, [o.value ? (Y(), X("svg", PI, [...n[4] ||= [Z("path", {
30386
30421
  d: "M3 8.5l3 3 7-7",
30387
30422
  stroke: "currentColor",
30388
30423
  "stroke-width": "1.6",
30389
30424
  "stroke-linecap": "round",
30390
30425
  "stroke-linejoin": "round"
30391
- }, null, -1)]])) : (Y(), X("svg", PI, [...n[5] ||= [Z("rect", {
30426
+ }, null, -1)]])) : (Y(), X("svg", FI, [...n[5] ||= [Z("rect", {
30392
30427
  x: "5.5",
30393
30428
  y: "5.5",
30394
30429
  width: "8",
@@ -30400,7 +30435,7 @@ app.mount('#app');
30400
30435
  d: "M10.5 3.5v-.5A1.5 1.5 0 0 0 9 1.5H3.5A1.5 1.5 0 0 0 2 3v5.5A1.5 1.5 0 0 0 3.5 10H4",
30401
30436
  stroke: "currentColor",
30402
30437
  "stroke-width": "1.3"
30403
- }, null, -1)]]))], 10, MI),
30438
+ }, null, -1)]]))], 10, NI),
30404
30439
  Z("button", {
30405
30440
  class: "icon-btn",
30406
30441
  title: e.messages.codeOpenTitle,
@@ -30420,7 +30455,7 @@ app.mount('#app');
30420
30455
  "stroke-width": "1.3",
30421
30456
  "stroke-linecap": "round",
30422
30457
  "stroke-linejoin": "round"
30423
- })], -1)]], 8, FI),
30458
+ })], -1)]], 8, II),
30424
30459
  Z("button", {
30425
30460
  class: "icon-btn",
30426
30461
  title: e.messages.close,
@@ -30434,22 +30469,22 @@ app.mount('#app');
30434
30469
  stroke: "currentColor",
30435
30470
  "stroke-width": "1.4",
30436
30471
  "stroke-linecap": "round"
30437
- })], -1)]], 8, II)
30472
+ })], -1)]], 8, LI)
30438
30473
  ])
30439
- ]), Z("div", LI, [a.value === "preview" && s.value ? (Y(), X("iframe", {
30474
+ ]), Z("div", RI, [a.value === "preview" && s.value ? (Y(), X("iframe", {
30440
30475
  key: 0,
30441
30476
  ref_key: "iframeRef",
30442
30477
  ref: i,
30443
30478
  class: "preview-iframe",
30444
30479
  sandbox: "allow-scripts allow-modals allow-popups allow-forms",
30445
30480
  srcdoc: c.value
30446
- }, null, 8, RI)) : (Y(), X("pre", zI, [Z("code", null, W(e.code), 1)]))])])]));
30481
+ }, null, 8, zI)) : (Y(), X("pre", BI, [Z("code", null, W(e.code), 1)]))])])]));
30447
30482
  }
30448
30483
  }), [["__scopeId", "data-v-27eac25e"]]);
30449
30484
  //#endregion
30450
30485
  //#region src/core/index.ts
30451
- function VI(e) {
30452
- return Jy(e, yI);
30486
+ function HI(e) {
30487
+ return Jy(e, bI);
30453
30488
  }
30454
30489
  //#endregion
30455
- export { YA as ApprovalBar, zv as CAPABILITIES, Hv as CONTEXT_PRESETS, vI as ChatDialog, CE as ChatHeader, Fj as ChatInput, BI as CodePreview, Z_ as CompressDecisionSchema, fj as ConflictBar, ty as DEFAULT_COMPUTED_STYLES, iw as DEFAULT_DIALOG_ICONS, Sm as DEFAULT_PROMPT_SOFT_CAP, qh as DEFAULT_SYSTEM_PROMPT, Jh as DEFAULT_SYSTEM_PROMPT_EN, GF as DebugDrawer, PE as FocusBar, Nk as HLJS_BLOCK_MAX_CHARS, Kg as HTML_VOID_TAGS, lh as HUMAN_CONFIRM_TOOL_NAME, JT as IconGlyph, Yl as ImageInputError, sw as MESSAGES_EN_US, ow as MESSAGES_ZH_CN, S as MIN_CONTEXT_WINDOW, Mu as MODEL_UNAVAILABLE_GUIDANCE, Gk as MessageContent, wA as MessageList, mA as MessageRow, PA as QueuedBar, xm as SOFT_CAP_MIN_WINDOW, hm as STOP_WORDS, _I as SkillPanel, _p as UNSAFE_KEYS, Cy as actionsToInspectInfo, Sy as actionsToTools, Gl as agentError, Bh as analyzeContext, Mp as applyPatchToClone, Fp as applyPatchToLive, Pg as applyPatchesToBind, Af as arrayMinLength, Wl as asAgentError, M_ as buildCollectorJs, oy as buildCssPath, Yh as buildDataPrompt, O_ as buildDiagnosticsReport, H_ as buildHtmlFragmentSkill, N_ as buildSandboxSrcdoc, Xh as buildSystemPrompt, uw as chatContextKey, Ng as commitSetToBind, z_ as composeStructureThenRender, ou as compressImage, Kh as connectMcp, A as constructLlmFromConfig, te as constructOpenLlmSync, rw as copyText, bf as createAgent, ch as createApprovalMiddleware, dw as createChatContext, VI as createChatSdk, yh as createCheckpointManager, bh as createCheckpointMiddleware, lv as createConflictManager, Vh as createContextInspectorMiddleware, Gg as createDataOps, W_ as createHtmlFormatCheck, R_ as createHtmlRenderCheck, q_ as createHtmlSubagent, fh as createHumanConfirmMiddleware, dh as createHumanConfirmTool, jv as createMemoryBackend, th as createMemoryMiddleware, y as createProxyLlm, TI as createRagSubagent, Ru as createSandboxRunner, Vv as createSdkEvents, By as createSerialRunner, Fv as createSessionStore, Iy as createSkillStore, Km as createSubagentMiddleware, Om as createSubagentTracker, Ym as createSubagentsMiddleware, Ay as createUsageHintsMiddleware, xh as createVerifyMiddleware, eg as createVfs, Nv as createWebStorageBackend, Dh as createWriteBackCheck, Nu as decorateModelUnavailable, Cp as deepClone, Ey as defineDataToolset, Gp as defineSkill, J_ as defineTool, Sp as deleteByPath, Q_ as deriveTitle, Wf as describeSchemaNode, of as detectGarbledToolCall, jd as detectTransitionalReply, zp as diffObjects, dy as domInfoTool, fy as domInspectSkill, uy as domSearchTool, Qv as domToStructure, ey as domTools, Ty as domToolsStatic, jf as elementSchemaCandidates, iy as ensureDomListenerRecorder, _m as estimateMessageTokens, vm as estimateRoundTokens, w as estimateTokens, M as extractReasoningDelta, rp as extractSchemaHint, Hh as extractText, j as extractTextDelta, ne as extractUsage, Jv as fetchDocTools, wy as fetchTools, Rp as findStrippedKeys, Gf as formatConstraints, Bl as formatZodIssues, bp as getByPath, $v as getDomTool, ly as getElementInfo, hy as getEnvSummary, ay as getRecordedListeners, I_ as getSandboxLifecycle, wf as getSchemaAtPath, xf as getSchemaTopKeys, Ap as hashValue, U_ as htmlFragmentSkill, Qf as htmlOrchestratorPrompt, ym as indexSummarize, vy as inspectEnvTool, yy as inspectTools, $_ as isChatModel, Au as isContextLengthError, IT as isIconHtml, ju as isModelUnavailableError, Sf as isPathAllowed, Cv as isQuotaError, vp as isUnsafePath, Ju as jpEval, Hl as jsonParseError, Dp as limitDepth, zk as markedToHtml, E_ as maskUrlCredentials, Tp as maybeParseValue, b_ as measureWriteScale, Pp as moveByPath, k as normalizeBaseUrl, j_ as normalizeRenderResult, N as normalizeUsage, E as offloadPassThroughChars, T as offloadThresholdChars, Zf as presets, Rf as projectBySchema, Lf as projectBySchemaDeep, Ep as projectFields, bm as recallRounds, L_ as renderInSandbox, Bk as renderMarkdownHtml, Kf as renderSchemaHint, qf as renderSchemaOverview, Xf as renderSchemaShallow, Bv as resolveCapabilities, Wv as resolveContextOptions, Rv as resolveDialogConfig, aw as resolveDialogIcons, lw as resolveDialogMessages, cv as resolveLlm, C as resolveModelCaps, Cm as resolvePromptSoftCap, Df as resolveSchemaPath, Lv as resolveStorage, Lp as restoreInPlace, Ip as restoreLive, Ul as routeError, Qu as runSandboxedScript, yp as safeMerge, my as safeSerialize, Op as safeStringify, sf as sanitizeGarbledContent, BT as sanitizeIconHtml, UT as sanitizeMessageHtml, kf as schemaHasRefinement, sy as searchDom, Xu as searchJson, Dy as selectBuiltinTools, xp as setByPath, wm as shouldTriggerCompression, k_ as stringifyDiagnosticsReport, O as stripStainlessFetch, $f as systemPromptHelpers, gm as tokenize, $ as toolError, Cf as unwrapSchema, nw as useChat, fw as useChatContext, Of as validateAtPath, Jg as validateHtmlFormat, jg as validateRootValueLocally, Mg as validateWriteLocally, jp as watchFieldsHash, e as z, Vl as zodError };
30490
+ export { XA as ApprovalBar, zv as CAPABILITIES, Hv as CONTEXT_PRESETS, yI as ChatDialog, CE as ChatHeader, Ij as ChatInput, VI as CodePreview, Z_ as CompressDecisionSchema, pj as ConflictBar, ty as DEFAULT_COMPUTED_STYLES, iw as DEFAULT_DIALOG_ICONS, Sm as DEFAULT_PROMPT_SOFT_CAP, qh as DEFAULT_SYSTEM_PROMPT, Jh as DEFAULT_SYSTEM_PROMPT_EN, KF as DebugDrawer, PE as FocusBar, Pk as HLJS_BLOCK_MAX_CHARS, Kg as HTML_VOID_TAGS, lh as HUMAN_CONFIRM_TOOL_NAME, JT as IconGlyph, Yl as ImageInputError, sw as MESSAGES_EN_US, ow as MESSAGES_ZH_CN, S as MIN_CONTEXT_WINDOW, Mu as MODEL_UNAVAILABLE_GUIDANCE, Kk as MessageContent, TA as MessageList, hA as MessageRow, FA as QueuedBar, xm as SOFT_CAP_MIN_WINDOW, hm as STOP_WORDS, vI as SkillPanel, _p as UNSAFE_KEYS, Cy as actionsToInspectInfo, Sy as actionsToTools, Gl as agentError, Bh as analyzeContext, Mp as applyPatchToClone, Fp as applyPatchToLive, Pg as applyPatchesToBind, Af as arrayMinLength, Wl as asAgentError, M_ as buildCollectorJs, oy as buildCssPath, Yh as buildDataPrompt, O_ as buildDiagnosticsReport, H_ as buildHtmlFragmentSkill, N_ as buildSandboxSrcdoc, Xh as buildSystemPrompt, uw as chatContextKey, Ng as commitSetToBind, z_ as composeStructureThenRender, ou as compressImage, Kh as connectMcp, A as constructLlmFromConfig, te as constructOpenLlmSync, rw as copyText, bf as createAgent, ch as createApprovalMiddleware, dw as createChatContext, HI as createChatSdk, yh as createCheckpointManager, bh as createCheckpointMiddleware, lv as createConflictManager, Vh as createContextInspectorMiddleware, Gg as createDataOps, W_ as createHtmlFormatCheck, R_ as createHtmlRenderCheck, q_ as createHtmlSubagent, fh as createHumanConfirmMiddleware, dh as createHumanConfirmTool, jv as createMemoryBackend, th as createMemoryMiddleware, y as createProxyLlm, EI as createRagSubagent, Ru as createSandboxRunner, Vv as createSdkEvents, By as createSerialRunner, Fv as createSessionStore, Iy as createSkillStore, Km as createSubagentMiddleware, Om as createSubagentTracker, Ym as createSubagentsMiddleware, Ay as createUsageHintsMiddleware, xh as createVerifyMiddleware, eg as createVfs, Nv as createWebStorageBackend, Dh as createWriteBackCheck, Nu as decorateModelUnavailable, Cp as deepClone, Ey as defineDataToolset, Gp as defineSkill, J_ as defineTool, Sp as deleteByPath, Q_ as deriveTitle, Wf as describeSchemaNode, of as detectGarbledToolCall, jd as detectTransitionalReply, zp as diffObjects, dy as domInfoTool, fy as domInspectSkill, uy as domSearchTool, Qv as domToStructure, ey as domTools, Ty as domToolsStatic, jf as elementSchemaCandidates, iy as ensureDomListenerRecorder, _m as estimateMessageTokens, vm as estimateRoundTokens, w as estimateTokens, M as extractReasoningDelta, rp as extractSchemaHint, Hh as extractText, j as extractTextDelta, ne as extractUsage, Jv as fetchDocTools, wy as fetchTools, Rp as findStrippedKeys, Gf as formatConstraints, Bl as formatZodIssues, bp as getByPath, $v as getDomTool, ly as getElementInfo, hy as getEnvSummary, ay as getRecordedListeners, I_ as getSandboxLifecycle, wf as getSchemaAtPath, xf as getSchemaTopKeys, Ap as hashValue, U_ as htmlFragmentSkill, Qf as htmlOrchestratorPrompt, ym as indexSummarize, vy as inspectEnvTool, yy as inspectTools, $_ as isChatModel, Au as isContextLengthError, IT as isIconHtml, ju as isModelUnavailableError, Sf as isPathAllowed, Cv as isQuotaError, vp as isUnsafePath, Ju as jpEval, Hl as jsonParseError, Dp as limitDepth, Bk as markedToHtml, E_ as maskUrlCredentials, Tp as maybeParseValue, b_ as measureWriteScale, Pp as moveByPath, k as normalizeBaseUrl, j_ as normalizeRenderResult, N as normalizeUsage, E as offloadPassThroughChars, T as offloadThresholdChars, Zf as presets, Rf as projectBySchema, Lf as projectBySchemaDeep, Ep as projectFields, bm as recallRounds, L_ as renderInSandbox, Vk as renderMarkdownHtml, Kf as renderSchemaHint, qf as renderSchemaOverview, Xf as renderSchemaShallow, Bv as resolveCapabilities, Wv as resolveContextOptions, Rv as resolveDialogConfig, aw as resolveDialogIcons, lw as resolveDialogMessages, cv as resolveLlm, C as resolveModelCaps, Cm as resolvePromptSoftCap, Df as resolveSchemaPath, Lv as resolveStorage, Lp as restoreInPlace, Ip as restoreLive, Ul as routeError, Qu as runSandboxedScript, yp as safeMerge, my as safeSerialize, Op as safeStringify, sf as sanitizeGarbledContent, BT as sanitizeIconHtml, UT as sanitizeMessageHtml, kf as schemaHasRefinement, sy as searchDom, Xu as searchJson, Dy as selectBuiltinTools, xp as setByPath, wm as shouldTriggerCompression, k_ as stringifyDiagnosticsReport, O as stripStainlessFetch, $f as systemPromptHelpers, gm as tokenize, $ as toolError, Cf as unwrapSchema, nw as useChat, fw as useChatContext, Of as validateAtPath, Jg as validateHtmlFormat, jg as validateRootValueLocally, Mg as validateWriteLocally, jp as watchFieldsHash, e as z, Vl as zodError };