@pagelines/sdk 1.0.666 → 1.0.668

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.
@@ -2,10 +2,10 @@ var hs = Object.defineProperty;
2
2
  var ga = (a, t, e) => t in a ? hs(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
3
  var d = (a, t) => hs(a, "name", { value: t, configurable: !0 });
4
4
  var P = (a, t, e) => ga(a, typeof t != "symbol" ? t + "" : t, e);
5
- import { defineComponent as Re, openBlock as h, createElementBlock as f, createElementVNode as w, normalizeClass as C, ref as ge, computed as S, shallowRef as ht, watch as Qt, createCommentVNode as H, renderSlot as vn, onMounted as tn, unref as en, Fragment as ee, toDisplayString as j, reactive as va, onUnmounted as Ps, createBlock as kt, Teleport as xa, createVNode as Ne, Transition as ya, withCtx as Bs, withDirectives as Fs, normalizeStyle as q, createTextVNode as ot, vShow as ba, nextTick as Us, renderList as me, onBeforeUnmount as Hs, withModifiers as Le, vModelText as ka, withKeys as jt } from "vue";
6
- import { SettingsObject as js, Agent as hn, isAssistantSilenceControl as _n, CHAT_ISSUE_COPY as wa, getDefaultAvatarUrl as Hn, parseChatVisualFencePayload as Ta, createLogger as Sa } from "@pagelines/core";
7
- import { P as Aa } from "./sdkClient.js";
8
- const _a = { class: "spinner max-w-sm" }, Ea = {
5
+ import { defineComponent as Re, openBlock as h, createElementBlock as f, createElementVNode as w, normalizeClass as D, ref as ge, computed as S, shallowRef as ht, watch as Qt, createCommentVNode as H, renderSlot as vn, onMounted as tn, unref as en, Fragment as ee, toDisplayString as j, reactive as va, onUnmounted as Ps, createBlock as gt, Teleport as xa, createVNode as Ne, Transition as ba, withCtx as Bs, withDirectives as Fs, normalizeStyle as q, createTextVNode as st, vShow as ya, nextTick as Us, renderList as me, resolveDynamicComponent as ka, onBeforeUnmount as Hs, withModifiers as De, vModelText as wa, withKeys as jt } from "vue";
6
+ import { SettingsObject as js, Agent as hn, isAssistantSilenceControl as _n, CHAT_ISSUE_COPY as Ta, getDefaultAvatarUrl as Hn, parseChatVisualFencePayload as Sa, createLogger as Aa } from "@pagelines/core";
7
+ import { P as _a } from "./sdkClient.js";
8
+ const Ea = { class: "spinner max-w-sm" }, Ra = {
9
9
  class: "ring-circular h-full w-full origin-center",
10
10
  viewBox: "25 25 50 50"
11
11
  }, En = /* @__PURE__ */ Re({
@@ -15,10 +15,10 @@ const _a = { class: "spinner max-w-sm" }, Ea = {
15
15
  colorMode: { type: String, default: "primary" }
16
16
  },
17
17
  setup(a) {
18
- return (t, e) => (h(), f("div", _a, [
19
- (h(), f("svg", Ea, [
18
+ return (t, e) => (h(), f("div", Ea, [
19
+ (h(), f("svg", Ra, [
20
20
  w("circle", {
21
- class: C([a.colorMode, "ring-path"]),
21
+ class: D([a.colorMode, "ring-path"]),
22
22
  cx: "50",
23
23
  cy: "50",
24
24
  r: "20",
@@ -31,26 +31,26 @@ const _a = { class: "spinner max-w-sm" }, Ea = {
31
31
  ]));
32
32
  }
33
33
  });
34
- function Ra(a) {
34
+ function Ma(a) {
35
35
  const t = Math.max(0, Math.floor(a.ms / 1e3)), e = Math.floor(t / 60), n = t % 60;
36
36
  return `${e}:${n.toString().padStart(2, "0")}`;
37
37
  }
38
- d(Ra, "formatVoiceRecordingDuration");
39
- function Ma(a) {
38
+ d(Ma, "formatVoiceRecordingDuration");
39
+ function Ca(a) {
40
40
  return a.mimeType.includes("mp4") || a.mimeType.includes("m4a") ? "m4a" : a.mimeType.includes("ogg") ? "ogg" : a.mimeType.includes("wav") ? "wav" : "webm";
41
41
  }
42
- d(Ma, "audioExtension");
43
- function Ca() {
42
+ d(Ca, "audioExtension");
43
+ function Ia() {
44
44
  return typeof MediaRecorder > "u" ? "" : ["audio/webm;codecs=opus", "audio/mp4", "audio/webm"].find((t) => MediaRecorder.isTypeSupported?.(t)) || "";
45
45
  }
46
- d(Ca, "recorderMimeType");
46
+ d(Ia, "recorderMimeType");
47
47
  const Jn = class Jn extends js {
48
48
  constructor(e) {
49
49
  super("VoiceRecorderController", e);
50
50
  P(this, "state", ge({ phase: "idle", elapsedMs: 0 }));
51
51
  P(this, "isActive", S(() => this.state.value.phase !== "idle"));
52
52
  P(this, "isBusy", S(() => this.state.value.phase !== "idle"));
53
- P(this, "elapsedLabel", S(() => Ra({ ms: this.state.value.elapsedMs })));
53
+ P(this, "elapsedLabel", S(() => Ma({ ms: this.state.value.elapsedMs })));
54
54
  P(this, "statusText", S(() => this.state.value.phase === "preparing" ? "Starting microphone" : this.state.value.phase === "sending" ? "Sending voice message" : "Release to send"));
55
55
  P(this, "recorder");
56
56
  P(this, "stream");
@@ -79,7 +79,7 @@ const Jn = class Jn extends js {
79
79
  n.getTracks().forEach((l) => l.stop());
80
80
  return;
81
81
  }
82
- const i = Ca(), s = this.createRecorder({ stream: n, mimeType: i });
82
+ const i = Ia(), s = this.createRecorder({ stream: n, mimeType: i });
83
83
  this.stream = n, this.recorder = s, this.chunks = [], s.addEventListener("dataavailable", (l) => {
84
84
  l.data.size > 0 && this.chunks.push(l.data);
85
85
  }), s.addEventListener("stop", async () => {
@@ -128,7 +128,7 @@ const Jn = class Jn extends js {
128
128
  return;
129
129
  const s = e.blob.type || "audio/webm", l = new File(
130
130
  [e.blob],
131
- `voice-${(/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-")}.${Ma({ mimeType: s })}`,
131
+ `voice-${(/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-")}.${Ca({ mimeType: s })}`,
132
132
  { type: s }
133
133
  );
134
134
  try {
@@ -157,10 +157,10 @@ const Jn = class Jn extends js {
157
157
  };
158
158
  d(Jn, "VoiceRecorderController");
159
159
  let zn = Jn;
160
- function Ia(a) {
160
+ function $a(a) {
161
161
  return a.turnOutcome === "failed" ? "failed" : a.turnOutcome === "stopped" ? "stopped" : a.sender === "system" ? "failed" : "completed";
162
162
  }
163
- d(Ia, "durableJournalOutcome");
163
+ d($a, "durableJournalOutcome");
164
164
  const yt = {
165
165
  waiting: "Waiting for results",
166
166
  finishing: "Finishing up",
@@ -169,7 +169,7 @@ const yt = {
169
169
  stopped: "Stopped",
170
170
  notifyHint: "Taking longer than usual. You can leave and I’ll notify you when it’s ready.",
171
171
  leaveHint: "Taking longer than usual. You can leave this chat while I work."
172
- }, Ws = 15e3, $a = 6e4, Rn = 3;
172
+ }, Ws = 15e3, Da = 6e4, Rn = 3;
173
173
  function pn(a) {
174
174
  if (!a)
175
175
  return;
@@ -220,8 +220,8 @@ function Pn(a) {
220
220
  terminal: { id: "work-complete", tone: "completed", label: yt.completed }
221
221
  };
222
222
  if (e === "failed") {
223
- const $ = t.filter((V) => V.status === "failed").sort(Nn).pop(), N = /* @__PURE__ */ new Set();
224
- $ && N.add($.activityId);
223
+ const I = t.filter((V) => V.status === "failed").sort(Nn).pop(), N = /* @__PURE__ */ new Set();
224
+ I && N.add(I.activityId);
225
225
  const { visibleRows: W, hiddenRows: B } = dn(Xt(t, N));
226
226
  return {
227
227
  outcome: e,
@@ -231,37 +231,37 @@ function Pn(a) {
231
231
  id: "work-failed",
232
232
  tone: "failed",
233
233
  label: yt.failed,
234
- ...l && $?.note ? { note: $.note } : {}
234
+ ...l && I?.note ? { note: I.note } : {}
235
235
  }
236
236
  };
237
237
  }
238
238
  if (e === "stopped") {
239
- const { visibleRows: $, hiddenRows: N } = dn(Xt(t, /* @__PURE__ */ new Set()));
239
+ const { visibleRows: I, hiddenRows: N } = dn(Xt(t, /* @__PURE__ */ new Set()));
240
240
  return {
241
241
  outcome: e,
242
- visibleRows: $,
242
+ visibleRows: I,
243
243
  hiddenRows: N,
244
244
  terminal: { id: "work-stopped", tone: "stopped", label: yt.stopped }
245
245
  };
246
246
  }
247
- const { visibleRows: o, hiddenRows: p } = dn(Xt(t, /* @__PURE__ */ new Set())), c = t.filter(($) => $.status === "started").sort(Nn).pop(), b = t.reduce(
248
- ($, N) => Math.max($, Ot(N)),
247
+ const { visibleRows: o, hiddenRows: p } = dn(Xt(t, /* @__PURE__ */ new Set())), c = t.filter((I) => I.status === "started").sort(Nn).pop(), y = t.reduce(
248
+ (I, N) => Math.max(I, Ot(N)),
249
249
  s ?? Number.NEGATIVE_INFINITY
250
- ), R = Number.isFinite(b) ? b : n, y = t.reduce(($, N) => {
250
+ ), R = Number.isFinite(y) ? y : n, b = t.reduce((I, N) => {
251
251
  const W = pn(N.startedAt) ?? pn(N.endedAt);
252
- return W === void 0 ? $ : Math.min($, W);
253
- }, Number.POSITIVE_INFINITY), k = R + Ws, A = (Number.isFinite(y) ? y : R) + $a, E = n >= k, O = c || E ? {
252
+ return W === void 0 ? I : Math.min(I, W);
253
+ }, Number.POSITIVE_INFINITY), k = R + Ws, A = (Number.isFinite(b) ? b : R) + Da, E = n >= k, O = c || E ? {
254
254
  id: c?.activityId ?? "work-active",
255
255
  tone: "active",
256
256
  label: E ? c ? yt.waiting : yt.finishing : c.label
257
- } : void 0, Z = E && n >= A ? i ? yt.notifyHint : yt.leaveHint : void 0, I = [k, A].filter(($) => $ > n).sort(($, N) => $ - N)[0];
257
+ } : void 0, Z = E && n >= A ? i ? yt.notifyHint : yt.leaveHint : void 0, C = [k, A].filter((I) => I > n).sort((I, N) => I - N)[0];
258
258
  return {
259
259
  outcome: e,
260
260
  visibleRows: o,
261
261
  hiddenRows: p,
262
262
  ...O ? { terminal: O } : {},
263
263
  ...Z ? { hint: Z } : {},
264
- ...I !== void 0 ? { nextBoundaryAtMs: I } : {}
264
+ ...C !== void 0 ? { nextBoundaryAtMs: C } : {}
265
265
  };
266
266
  }
267
267
  d(Pn, "buildWorkJournalModel");
@@ -276,15 +276,15 @@ function La(a) {
276
276
  const { visibleRows: E, hiddenRows: O } = dn(Xt(A, /* @__PURE__ */ new Set()));
277
277
  if (!(E.length === 0 && O.length === 0))
278
278
  return { outcome: "running", visibleRows: E, hiddenRows: O };
279
- }, "staticJournal"), c = [], b = new Set(
279
+ }, "staticJournal"), c = [], y = new Set(
280
280
  t.flatMap((A) => A.kind === "work" ? A.activityIds : [])
281
- ), R = e.filter((A) => !b.has(A.activityId)), y = p(R);
282
- y && c.push({ kind: "work", id: "work-unsegmented", journal: y }), t.forEach((A, E) => {
281
+ ), R = e.filter((A) => !y.has(A.activityId)), b = p(R);
282
+ b && c.push({ kind: "work", id: "work-unsegmented", journal: b }), t.forEach((A, E) => {
283
283
  if (A.kind === "text") {
284
284
  A.content && c.push({ kind: "text", id: `text-${E}`, content: A.content });
285
285
  return;
286
286
  }
287
- const O = A.activityIds.map((I) => l.get(I)).filter((I) => I !== void 0);
287
+ const O = A.activityIds.map((C) => l.get(C)).filter((C) => C !== void 0);
288
288
  if (O.length === 0)
289
289
  return;
290
290
  const Z = p(O);
@@ -305,12 +305,12 @@ function La(a) {
305
305
  }) : c.push({ kind: "loading", id: "work-tail" }), c;
306
306
  }
307
307
  d(La, "buildLiveTurnBlocks");
308
- const Gs = /* @__PURE__ */ new Set(["CREDIT_LIMIT", "OVERAGE_CAP"]), Da = /* @__PURE__ */ new Set([...Gs, "EMPTY_STREAM", "RATE_LIMIT"]), Vs = /* @__PURE__ */ new Set(["agent_deleted", "AGENT_DELETED"]), Oa = {
308
+ const Gs = /* @__PURE__ */ new Set(["CREDIT_LIMIT", "OVERAGE_CAP"]), Oa = /* @__PURE__ */ new Set([...Gs, "EMPTY_STREAM", "RATE_LIMIT"]), Vs = /* @__PURE__ */ new Set(["agent_deleted", "AGENT_DELETED"]), za = {
309
309
  CREDIT_LIMIT: "billing_budget_reached",
310
310
  OVERAGE_CAP: "billing_runaway_cap"
311
311
  };
312
- function za(a) {
313
- if (!(a.bucket !== void 0 || Da.has(a.code)))
312
+ function Na(a) {
313
+ if (!(a.bucket !== void 0 || Oa.has(a.code)))
314
314
  return { surface: "hard" };
315
315
  const e = a.bucket ?? (Gs.has(a.code) ? "account" : "error"), n = {
316
316
  ...a.actionLabel ? { actionLabel: a.actionLabel } : {},
@@ -319,12 +319,12 @@ function za(a) {
319
319
  };
320
320
  return e === "account" ? { surface: "transcript", issue: { code: a.code, bucket: e, ...n }, sendBlockedReason: "account" } : Vs.has(a.code) ? { surface: "transcript", issue: { code: a.code, bucket: e, ...n }, sendBlockedReason: "agent_deleted" } : { surface: "transient", issue: { code: a.code, message: a.error, ...n } };
321
321
  }
322
- d(za, "presentChatStreamError");
323
- function Na(a) {
324
- const t = Oa[a.code];
325
- return t ? wa[t].oneLine : a.error;
322
+ d(Na, "presentChatStreamError");
323
+ function Pa(a) {
324
+ const t = za[a.code];
325
+ return t ? Ta[t].oneLine : a.error;
326
326
  }
327
- d(Na, "transcriptMessageForChatStreamError");
327
+ d(Pa, "transcriptMessageForChatStreamError");
328
328
  const Qn = class Qn extends js {
329
329
  constructor(e) {
330
330
  super("AgentChatController", e);
@@ -700,28 +700,28 @@ Current User:
700
700
  this.addMessage(e, "user", n), this.resetWorkJournalTiming(), this.updateState(this.textState, { isThinking: !0, workingDescription: void 0, toolActivities: [], transientIssue: void 0, turnOutcome: void 0 });
701
701
  const l = ++this.activeTurnGeneration, o = `stream-${Date.now()}`;
702
702
  let p = !1, c = !1;
703
- const b = /* @__PURE__ */ d(() => l === this.activeTurnGeneration, "isCurrentTurn"), R = /* @__PURE__ */ d((I, $ = "assistant") => {
704
- if (!b())
703
+ const y = /* @__PURE__ */ d(() => l === this.activeTurnGeneration, "isCurrentTurn"), R = /* @__PURE__ */ d((C, I = "assistant") => {
704
+ if (!y())
705
705
  return;
706
- this.updateState(this.textState, { workingDescription: void 0 }), $ === "assistant" && (this.lastVisibleProgressAtMs.value = Date.now()), p || (p = !0, this.liveStreamMessageId.value = o, this.sharedMessages.value = [
706
+ this.updateState(this.textState, { workingDescription: void 0 }), I === "assistant" && (this.lastVisibleProgressAtMs.value = Date.now()), p || (p = !0, this.liveStreamMessageId.value = o, this.sharedMessages.value = [
707
707
  ...this.sharedMessages.value,
708
- { id: o, text: "", sender: $ === "system" ? "system" : "agent", timestamp: (/* @__PURE__ */ new Date()).toISOString() }
708
+ { id: o, text: "", sender: I === "system" ? "system" : "agent", timestamp: (/* @__PURE__ */ new Date()).toISOString() }
709
709
  ]);
710
710
  const N = this.liveSegments.value, W = N[N.length - 1];
711
- this.liveSegments.value = W?.kind === "text" ? [...N.slice(0, -1), { kind: "text", content: W.content + I }] : [...N, { kind: "text", content: I }];
711
+ this.liveSegments.value = W?.kind === "text" ? [...N.slice(0, -1), { kind: "text", content: W.content + C }] : [...N, { kind: "text", content: C }];
712
712
  const B = this.sharedMessages.value, V = B[B.length - 1];
713
- V?.id === o && (V.text += I, this.sharedMessages.value = [...B]);
714
- }, "onDelta"), y = /* @__PURE__ */ d((I) => {
715
- if (!b())
713
+ V?.id === o && (V.text += C, this.sharedMessages.value = [...B]);
714
+ }, "onDelta"), b = /* @__PURE__ */ d((C) => {
715
+ if (!y())
716
716
  return;
717
- if (c = !0, I.sender === "agent" && _n(I.text)) {
717
+ if (c = !0, C.sender === "agent" && _n(C.text)) {
718
718
  this.liveSegments.value = [], this.liveStreamMessageId.value = void 0, this.sharedMessages.value = this.sharedMessages.value.filter((J) => J.id !== o);
719
719
  return;
720
720
  }
721
721
  p = !0;
722
- const $ = I.sender === "system" || I.turnOutcome === "failed" ? "failed" : "completed";
723
- this.finishToolActivities($);
724
- const N = this.textState.value.toolActivities, W = I.toolActivities?.length || !N?.length ? I : { ...I, toolActivities: N };
722
+ const I = C.sender === "system" || C.turnOutcome === "failed" ? "failed" : "completed";
723
+ this.finishToolActivities(I);
724
+ const N = this.textState.value.toolActivities, W = C.toolActivities?.length || !N?.length ? C : { ...C, toolActivities: N };
725
725
  this.liveSegments.value = [], this.liveStreamMessageId.value = void 0, this.updateState(this.textState, {
726
726
  workingDescription: void 0,
727
727
  toolActivities: [],
@@ -739,20 +739,20 @@ Current User:
739
739
  this.sharedMessages.value = J?.id === o ? [...B.slice(0, -1), W] : [...B, W];
740
740
  }
741
741
  W.sender === "system" && W.issue?.bucket === "account" ? this.updateState(this.textState, { sendBlockedReason: "account" }) : W.sender === "system" && W.issue?.code && Vs.has(W.issue.code) && this.updateState(this.textState, { sendBlockedReason: "agent_deleted" });
742
- }, "onMessage"), k = /* @__PURE__ */ d((I) => {
743
- if (!b())
742
+ }, "onMessage"), k = /* @__PURE__ */ d((C) => {
743
+ if (!y())
744
744
  return;
745
745
  if (!p && !c) {
746
746
  A("empty_stream — assistant returned no content");
747
747
  return;
748
748
  }
749
749
  this.finishToolActivities("completed");
750
- const $ = this.sharedMessages.value, N = $[$.length - 1];
751
- N?.id === o && N.sender === "agent" && _n(N.text) && (this.sharedMessages.value = $.slice(0, -1)), I && (this.conversationId = I), this.updateState(this.textState, { isThinking: !1, workingDescription: void 0, transientIssue: void 0 });
752
- }, "onDone"), A = /* @__PURE__ */ d((I) => {
753
- if (!b())
750
+ const I = this.sharedMessages.value, N = I[I.length - 1];
751
+ N?.id === o && N.sender === "agent" && _n(N.text) && (this.sharedMessages.value = I.slice(0, -1)), C && (this.conversationId = C), this.updateState(this.textState, { isThinking: !1, workingDescription: void 0, transientIssue: void 0 });
752
+ }, "onDone"), A = /* @__PURE__ */ d((C) => {
753
+ if (!y())
754
754
  return;
755
- if (typeof I == "object" && I.code === "TURN_ACTIVE") {
755
+ if (typeof C == "object" && C.code === "TURN_ACTIVE") {
756
756
  const V = this.sharedMessages.value;
757
757
  for (let J = V.length - 1; J >= 0; J--)
758
758
  if (V[J].sender === "user" && V[J].text === e) {
@@ -765,37 +765,37 @@ Current User:
765
765
  pendingAttachments: n ?? []
766
766
  }), this.updateState(this.textState, {
767
767
  isThinking: !1,
768
- transientIssue: { code: I.code, message: I.error }
768
+ transientIssue: { code: C.code, message: C.error }
769
769
  });
770
770
  return;
771
771
  }
772
772
  this.updateState(this.textState, { workingDescription: void 0, turnOutcome: "failed" }), this.finishToolActivities("failed");
773
- const $ = this.sharedMessages.value, N = $[$.length - 1];
774
- if (N?.id === o && !N.text && (this.sharedMessages.value = $.slice(0, -1)), typeof I == "object" && I.code && I.error) {
775
- const V = za(I);
776
- V.surface === "transient" ? this.updateState(this.textState, { isThinking: !1, transientIssue: V.issue }) : V.surface === "transcript" ? (this.addMessage(Na(I), "system", void 0, V.issue), this.updateState(this.textState, {
773
+ const I = this.sharedMessages.value, N = I[I.length - 1];
774
+ if (N?.id === o && !N.text && (this.sharedMessages.value = I.slice(0, -1)), typeof C == "object" && C.code && C.error) {
775
+ const V = Na(C);
776
+ V.surface === "transient" ? this.updateState(this.textState, { isThinking: !1, transientIssue: V.issue }) : V.surface === "transcript" ? (this.addMessage(Pa(C), "system", void 0, V.issue), this.updateState(this.textState, {
777
777
  isThinking: !1,
778
778
  ...V.sendBlockedReason ? { sendBlockedReason: V.sendBlockedReason } : {}
779
- })) : this.handleError(new Error(I.error));
779
+ })) : this.handleError(new Error(C.error));
780
780
  return;
781
781
  }
782
- const W = typeof I == "string" ? I : I.error, B = this.mapChatError(W);
782
+ const W = typeof C == "string" ? C : C.error, B = this.mapChatError(W);
783
783
  this.isTransientError(W) ? (this.logger.warn("Chat turn failed (transient):", { raw: W, friendly: B }), this.addMessage(B, "system"), this.updateState(this.textState, { isThinking: !1 })) : this.handleError(new Error(B), W);
784
- }, "onError"), E = /* @__PURE__ */ d((I) => {
785
- if (!b())
784
+ }, "onError"), E = /* @__PURE__ */ d((C) => {
785
+ if (!y())
786
786
  return;
787
- const $ = I.trim();
788
- this.updateState(this.textState, { workingDescription: $ || void 0 });
789
- }, "onStatus"), O = /* @__PURE__ */ d((I) => {
790
- if (b()) {
791
- if (this.lastVisibleProgressAtMs.value = Date.now(), I.status === "started") {
792
- const $ = this.liveSegments.value, N = $[$.length - 1];
793
- N?.kind !== "work" ? this.liveSegments.value = [...$, { kind: "work", activityIds: [I.activityId] }] : N.activityIds.includes(I.activityId) || (this.liveSegments.value = [...$.slice(0, -1), { kind: "work", activityIds: [...N.activityIds, I.activityId] }]);
787
+ const I = C.trim();
788
+ this.updateState(this.textState, { workingDescription: I || void 0 });
789
+ }, "onStatus"), O = /* @__PURE__ */ d((C) => {
790
+ if (y()) {
791
+ if (this.lastVisibleProgressAtMs.value = Date.now(), C.status === "started") {
792
+ const I = this.liveSegments.value, N = I[I.length - 1];
793
+ N?.kind !== "work" ? this.liveSegments.value = [...I, { kind: "work", activityIds: [C.activityId] }] : N.activityIds.includes(C.activityId) || (this.liveSegments.value = [...I.slice(0, -1), { kind: "work", activityIds: [...N.activityIds, C.activityId] }]);
794
794
  }
795
- this.updateToolActivity(I);
795
+ this.updateToolActivity(C);
796
796
  }
797
797
  }, "onToolActivity"), Z = /* @__PURE__ */ d(() => {
798
- b() && this.updateState(this.textState, { workingDescription: void 0 });
798
+ y() && this.updateState(this.textState, { workingDescription: void 0 });
799
799
  }, "onWorkingEnd");
800
800
  try {
801
801
  await (i ? i({
@@ -804,7 +804,7 @@ Current User:
804
804
  conversationId: this.conversationId,
805
805
  history: this.buildHistory(),
806
806
  onDelta: R,
807
- onMessage: y,
807
+ onMessage: b,
808
808
  onDone: k,
809
809
  onError: A,
810
810
  onStatus: E,
@@ -817,15 +817,15 @@ Current User:
817
817
  anonymousId: s.user.generateAnonId(),
818
818
  context: this.getDynamicSettings().context || void 0,
819
819
  onDelta: R,
820
- onMessage: y,
820
+ onMessage: b,
821
821
  onDone: k,
822
822
  onError: A,
823
823
  onStatus: E,
824
824
  onToolActivity: O,
825
825
  onWorkingEnd: Z
826
826
  }));
827
- } catch (I) {
828
- A(I.message || "Something went wrong");
827
+ } catch (C) {
828
+ A(C.message || "Something went wrong");
829
829
  }
830
830
  }
831
831
  async stopChatTurn() {
@@ -881,24 +881,24 @@ function fs(a) {
881
881
  return a ? typeof a == "string" ? a : a.src || "" : "";
882
882
  }
883
883
  d(fs, "getImageSrc");
884
- function wo(a) {
884
+ function To(a) {
885
885
  return fs(a.cover) || fs(a.avatar) || Hn(a.name);
886
886
  }
887
- d(wo, "getAgentAvatarUrl");
887
+ d(To, "getAgentAvatarUrl");
888
888
  function ms(a) {
889
889
  const t = a.target;
890
890
  t.dataset.fallbackUsed || (t.dataset.fallbackUsed = "true", t.src = Hn());
891
891
  }
892
892
  d(ms, "handleImageError");
893
- function To(a) {
893
+ function So(a) {
894
894
  const { template: t, agent: e } = a;
895
895
  return t.replace(/{name}/g, e.name || "Assistant").replace(/{title}/g, e.title || "").replace(/{handle}/g, e.handle || "").replace(/{orgName}/g, e.org?.name || "");
896
896
  }
897
- d(To, "parseButtonTemplate");
898
- const Pa = {
897
+ d(So, "parseButtonTemplate");
898
+ const Ba = {
899
899
  key: 0,
900
900
  class: "absolute inset-0 flex items-center justify-center"
901
- }, So = /* @__PURE__ */ Re({
901
+ }, Ao = /* @__PURE__ */ Re({
902
902
  __name: "ElAgentButton",
903
903
  props: {
904
904
  theme: { default: "primary" },
@@ -923,27 +923,27 @@ const Pa = {
923
923
  lg: "size-5"
924
924
  })[a.size]);
925
925
  return (i, s) => (h(), f("button", {
926
- class: C(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer", [t.value, e.value]])
926
+ class: D(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer", [t.value, e.value]])
927
927
  }, [
928
- a.loading ? (h(), f("div", Pa, [...s[0] || (s[0] = [
928
+ a.loading ? (h(), f("div", Ba, [...s[0] || (s[0] = [
929
929
  w("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)
930
930
  ])])) : H("", !0),
931
931
  w("span", {
932
- class: C(["flex items-center gap-2 transition-opacity duration-200", a.loading ? "opacity-0" : "opacity-100"])
932
+ class: D(["flex items-center gap-2 transition-opacity duration-200", a.loading ? "opacity-0" : "opacity-100"])
933
933
  }, [
934
934
  a.icon ? (h(), f("i", {
935
935
  key: 0,
936
- class: C([a.icon, n.value])
936
+ class: D([a.icon, n.value])
937
937
  }, null, 2)) : H("", !0),
938
938
  vn(i.$slots, "default"),
939
939
  a.iconAfter ? (h(), f("i", {
940
940
  key: 1,
941
- class: C([a.iconAfter, n.value])
941
+ class: D([a.iconAfter, n.value])
942
942
  }, null, 2)) : H("", !0)
943
943
  ], 2)
944
944
  ], 2));
945
945
  }
946
- }), Ba = ["value"], Ao = /* @__PURE__ */ Re({
946
+ }), Fa = ["value"], _o = /* @__PURE__ */ Re({
947
947
  __name: "AgentInputEmail",
948
948
  props: {
949
949
  modelValue: { default: "" }
@@ -964,9 +964,9 @@ const Pa = {
964
964
  class: "w-full px-6 py-3 text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-colors",
965
965
  style: { "font-size": "16px" },
966
966
  onInput: i[0] || (i[0] = (s) => e("update:modelValue", s.target.value))
967
- }, null, 40, Ba));
967
+ }, null, 40, Fa));
968
968
  }
969
- }), Fa = ["placeholder", "value"], _o = /* @__PURE__ */ Re({
969
+ }), Ua = ["placeholder", "value"], Eo = /* @__PURE__ */ Re({
970
970
  __name: "AgentInputOneTimeCode",
971
971
  props: {
972
972
  modelValue: {},
@@ -999,12 +999,12 @@ const Pa = {
999
999
  class: "w-full px-6 py-3 text-center font-mono tracking-[0.35em] text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-colors",
1000
1000
  style: { "font-size": "16px" },
1001
1001
  onInput: l
1002
- }, null, 40, Fa));
1002
+ }, null, 40, Ua));
1003
1003
  }
1004
- }), Ua = { class: "relative flex-shrink-0" }, Ha = ["src", "alt"], ja = { class: "absolute top-1 right-1" }, Wa = {
1004
+ }), Ha = { class: "relative flex-shrink-0" }, ja = ["src", "alt"], Wa = { class: "absolute top-1 right-1" }, Ga = {
1005
1005
  key: 1,
1006
1006
  class: "size-3 bg-theme-400 rounded-full ring-2 ring-white"
1007
- }, Ga = { class: "min-w-0" }, Va = /* @__PURE__ */ Re({
1007
+ }, Va = { class: "min-w-0" }, qa = /* @__PURE__ */ Re({
1008
1008
  __name: "ElModeHeader",
1009
1009
  props: {
1010
1010
  agent: {},
@@ -1014,13 +1014,13 @@ const Pa = {
1014
1014
  },
1015
1015
  setup(a) {
1016
1016
  return (t, e) => (h(), f("div", {
1017
- class: C(["flex gap-4", [
1017
+ class: D(["flex gap-4", [
1018
1018
  a.layout === "centered" ? "flex-col items-center text-center" : "flex-row items-center justify-center"
1019
1019
  ]])
1020
1020
  }, [
1021
- w("div", Ua, [
1021
+ w("div", Ha, [
1022
1022
  w("div", {
1023
- class: C(["rounded-full overflow-hidden border-white", a.size === "lg" ? "w-20 h-20 sm:w-24 sm:h-24 border-4" : "w-16 sm:size-16 border-2"])
1023
+ class: D(["rounded-full overflow-hidden border-white", a.size === "lg" ? "w-20 h-20 sm:w-24 sm:h-24 border-4" : "w-16 sm:size-16 border-2"])
1024
1024
  }, [
1025
1025
  w("img", {
1026
1026
  src: a.agent.avatarUrl.value,
@@ -1028,27 +1028,27 @@ const Pa = {
1028
1028
  class: "w-full h-full object-cover",
1029
1029
  onError: e[0] || (e[0] = //@ts-ignore
1030
1030
  (...n) => en(ms) && en(ms)(...n))
1031
- }, null, 40, Ha)
1031
+ }, null, 40, ja)
1032
1032
  ], 2),
1033
- w("div", ja, [
1033
+ w("div", Wa, [
1034
1034
  a.isOnline ? (h(), f(ee, { key: 0 }, [
1035
1035
  e[1] || (e[1] = w("div", {
1036
1036
  class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
1037
1037
  style: { "animation-duration": "3s" }
1038
1038
  }, null, -1)),
1039
1039
  e[2] || (e[2] = w("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))
1040
- ], 64)) : (h(), f("div", Wa))
1040
+ ], 64)) : (h(), f("div", Ga))
1041
1041
  ])
1042
1042
  ]),
1043
- w("div", Ga, [
1043
+ w("div", Va, [
1044
1044
  w("h1", {
1045
- class: C(["font-light text-white mb-1 truncate", [
1045
+ class: D(["font-light text-white mb-1 truncate", [
1046
1046
  a.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight",
1047
1047
  a.layout === "horizontal" ? "text-white/95" : ""
1048
1048
  ]])
1049
1049
  }, j(a.agent.displayName.value), 3),
1050
1050
  w("p", {
1051
- class: C(["font-light line-clamp-1", [
1051
+ class: D(["font-light line-clamp-1", [
1052
1052
  a.size === "lg" ? "text-base text-white/60" : "text-sm sm:text-base",
1053
1053
  a.layout === "horizontal" ? "text-white/70 truncate" : "text-white/60"
1054
1054
  ]])
@@ -1056,12 +1056,12 @@ const Pa = {
1056
1056
  ])
1057
1057
  ], 2));
1058
1058
  }
1059
- }), qa = {
1059
+ }), Ya = {
1060
1060
  green: "bg-green-500",
1061
1061
  amber: "bg-amber-500",
1062
1062
  red: "bg-red-500",
1063
1063
  grey: "bg-theme-300"
1064
- }, Ya = /* @__PURE__ */ Re({
1064
+ }, Ka = /* @__PURE__ */ Re({
1065
1065
  __name: "FTooltip",
1066
1066
  props: {
1067
1067
  content: { default: "" },
@@ -1081,22 +1081,22 @@ const Pa = {
1081
1081
  if (!t.value || !e.value)
1082
1082
  return;
1083
1083
  const E = t.value.getBoundingClientRect(), O = e.value.getBoundingClientRect(), Z = 8;
1084
- let I, $;
1084
+ let C, I;
1085
1085
  switch (a.direction) {
1086
1086
  case "bottom":
1087
- I = E.left + window.scrollX + E.width / 2 - O.width / 2, $ = E.bottom + window.scrollY + Z;
1087
+ C = E.left + window.scrollX + E.width / 2 - O.width / 2, I = E.bottom + window.scrollY + Z;
1088
1088
  break;
1089
1089
  case "top":
1090
- I = E.left + window.scrollX + E.width / 2 - O.width / 2, $ = E.top + window.scrollY - O.height - Z;
1090
+ C = E.left + window.scrollX + E.width / 2 - O.width / 2, I = E.top + window.scrollY - O.height - Z;
1091
1091
  break;
1092
1092
  case "left":
1093
- I = E.left + window.scrollX - O.width - Z, $ = E.top + window.scrollY + E.height / 2 - O.height / 2;
1093
+ C = E.left + window.scrollX - O.width - Z, I = E.top + window.scrollY + E.height / 2 - O.height / 2;
1094
1094
  break;
1095
1095
  default:
1096
- I = E.right + window.scrollX + Z, $ = E.top + window.scrollY + E.height / 2 - O.height / 2;
1096
+ C = E.right + window.scrollX + Z, I = E.top + window.scrollY + E.height / 2 - O.height / 2;
1097
1097
  }
1098
1098
  const N = 8;
1099
- I = Math.max(N, Math.min(I, window.innerWidth - O.width - N)), $ = Math.max(N, Math.min($, window.innerHeight - O.height - N)), l.left = `${I}px`, l.top = `${$}px`;
1099
+ C = Math.max(N, Math.min(C, window.innerWidth - O.width - N)), I = Math.max(N, Math.min(I, window.innerHeight - O.height - N)), l.left = `${C}px`, l.top = `${I}px`;
1100
1100
  }
1101
1101
  d(p, "updatePosition");
1102
1102
  function c() {
@@ -1105,18 +1105,18 @@ const Pa = {
1105
1105
  }, a.timeout))));
1106
1106
  }
1107
1107
  d(c, "showTooltipWithDelay");
1108
- function b() {
1108
+ function y() {
1109
1109
  a.disabled || (s.value && (clearTimeout(s.value), s.value = null), i.value = setTimeout(c, a.delay));
1110
1110
  }
1111
- d(b, "onMouseEnter");
1111
+ d(y, "onMouseEnter");
1112
1112
  function R() {
1113
1113
  i.value && (clearTimeout(i.value), i.value = null), s.value && (clearTimeout(s.value), s.value = null), t.value?.dataset.originalTitle && (t.value.setAttribute("title", t.value.dataset.originalTitle), delete t.value.dataset.originalTitle), n.value = !1;
1114
1114
  }
1115
1115
  d(R, "onMouseLeave");
1116
- function y() {
1116
+ function b() {
1117
1117
  a.disabled || (i.value && (clearTimeout(i.value), i.value = null), c());
1118
1118
  }
1119
- d(y, "onFocusIn");
1119
+ d(b, "onFocusIn");
1120
1120
  function k() {
1121
1121
  R();
1122
1122
  }
@@ -1134,14 +1134,14 @@ const Pa = {
1134
1134
  return (E, O) => (h(), f("div", {
1135
1135
  ref_key: "triggerRef",
1136
1136
  ref: t,
1137
- onMouseenter: b,
1137
+ onMouseenter: y,
1138
1138
  onMouseleave: R,
1139
- onFocusin: y,
1139
+ onFocusin: b,
1140
1140
  onFocusout: k
1141
1141
  }, [
1142
1142
  vn(E.$slots, "default"),
1143
- (h(), kt(xa, { to: "body" }, [
1144
- Ne(ya, {
1143
+ (h(), gt(xa, { to: "body" }, [
1144
+ Ne(ba, {
1145
1145
  "enter-active-class": "transition ease-out duration-200",
1146
1146
  "enter-from-class": "opacity-0 scale-95",
1147
1147
  "enter-to-class": "opacity-100 scale-100",
@@ -1156,12 +1156,12 @@ const Pa = {
1156
1156
  class: "fixed z-50 px-2 py-1.5 text-xs font-mono text-white bg-theme-900 dark:bg-theme-600 rounded-md shadow-lg",
1157
1157
  style: q(l)
1158
1158
  }, [
1159
- ot(j(o.value) + " ", 1),
1159
+ st(j(o.value) + " ", 1),
1160
1160
  w("div", {
1161
- class: C(A.value)
1161
+ class: D(A.value)
1162
1162
  }, null, 2)
1163
1163
  ], 4), [
1164
- [ba, n.value && !a.disabled]
1164
+ [ya, n.value && !a.disabled]
1165
1165
  ])
1166
1166
  ]),
1167
1167
  _: 1
@@ -1169,7 +1169,7 @@ const Pa = {
1169
1169
  ]))
1170
1170
  ], 544));
1171
1171
  }
1172
- }), Ka = /* @__PURE__ */ Re({
1172
+ }), Xa = /* @__PURE__ */ Re({
1173
1173
  __name: "StatusDot",
1174
1174
  props: {
1175
1175
  dotClass: {},
@@ -1186,28 +1186,28 @@ const Pa = {
1186
1186
  height: "clamp(7px, 14%, 14px)"
1187
1187
  }, n = S(() => a.position.startsWith("top") ? "bottom" : "top");
1188
1188
  return (i, s) => (h(), f(ee, null, [
1189
- a.tooltip ? (h(), kt(Ya, {
1189
+ a.tooltip ? (h(), gt(Ka, {
1190
1190
  key: 0,
1191
1191
  content: a.tooltip,
1192
1192
  direction: n.value,
1193
1193
  "max-width": 240,
1194
- class: C(["absolute rounded-full ring-2 ring-white z-10", a.dotClass]),
1194
+ class: D(["absolute rounded-full ring-2 ring-white z-10", a.dotClass]),
1195
1195
  style: q({ ...e, ...t.value }),
1196
1196
  role: "status",
1197
1197
  "aria-label": a.tooltip
1198
1198
  }, null, 8, ["content", "direction", "class", "style", "aria-label"])) : (h(), f("span", {
1199
1199
  key: 1,
1200
- class: C(["absolute rounded-full ring-2 ring-white z-10", a.dotClass]),
1200
+ class: D(["absolute rounded-full ring-2 ring-white z-10", a.dotClass]),
1201
1201
  style: q({ ...e, ...t.value })
1202
1202
  }, null, 6)),
1203
1203
  a.showPing ? (h(), f("span", {
1204
1204
  key: 2,
1205
- class: C(["absolute rounded-full animate-ping [animation-duration:3s] opacity-50 pointer-events-none", a.dotClass]),
1205
+ class: D(["absolute rounded-full animate-ping [animation-duration:3s] opacity-50 pointer-events-none", a.dotClass]),
1206
1206
  style: q({ ...e, ...t.value })
1207
1207
  }, null, 6)) : H("", !0)
1208
1208
  ], 64));
1209
1209
  }
1210
- }), Xa = ["src", "alt"], Za = ["src"], Ja = /* @__PURE__ */ Re({
1210
+ }), Za = ["src", "alt"], Ja = ["src"], Qa = /* @__PURE__ */ Re({
1211
1211
  name: "IdentityAvatar",
1212
1212
  __name: "IdentityAvatar",
1213
1213
  props: {
@@ -1224,19 +1224,19 @@ const Pa = {
1224
1224
  setup(a) {
1225
1225
  const t = S(() => `rounded-${a.rounded}`);
1226
1226
  return (e, n) => (h(), f("div", {
1227
- class: C(["shrink-0 relative", [t.value, a.editable ? "cursor-pointer group/avatar" : ""]])
1227
+ class: D(["shrink-0 relative", [t.value, a.editable ? "cursor-pointer group/avatar" : ""]])
1228
1228
  }, [
1229
1229
  w("div", {
1230
- class: C(["size-full overflow-hidden ring-1 ring-black/5", t.value])
1230
+ class: D(["size-full overflow-hidden ring-1 ring-black/5", t.value])
1231
1231
  }, [
1232
1232
  w("img", {
1233
1233
  src: a.src,
1234
1234
  alt: a.alt,
1235
1235
  class: "size-full object-cover"
1236
- }, null, 8, Xa),
1236
+ }, null, 8, Za),
1237
1237
  a.editable ? (h(), f("div", {
1238
1238
  key: 0,
1239
- class: C(["absolute inset-0 flex items-center justify-center opacity-0 group-hover/avatar:opacity-100 transition-opacity bg-black/40", t.value])
1239
+ class: D(["absolute inset-0 flex items-center justify-center opacity-0 group-hover/avatar:opacity-100 transition-opacity bg-black/40", t.value])
1240
1240
  }, [...n[0] || (n[0] = [
1241
1241
  w("i", { class: "i-tabler-camera text-xl text-white" }, null, -1)
1242
1242
  ])], 2)) : H("", !0)
@@ -1246,8 +1246,8 @@ const Pa = {
1246
1246
  src: a.subSrc,
1247
1247
  alt: "",
1248
1248
  class: "absolute z-10 size-[36%] -bottom-[3%] -left-[3%] rounded-full object-cover ring-2 ring-white"
1249
- }, null, 8, Za)) : H("", !0),
1250
- a.dotClass ? (h(), kt(Ka, {
1249
+ }, null, 8, Ja)) : H("", !0),
1250
+ a.dotClass ? (h(), gt(Xa, {
1251
1251
  key: 1,
1252
1252
  "dot-class": a.dotClass,
1253
1253
  tooltip: a.dotTooltip,
@@ -1256,7 +1256,7 @@ const Pa = {
1256
1256
  }, null, 8, ["dot-class", "tooltip", "show-ping", "position"])) : H("", !0)
1257
1257
  ], 2));
1258
1258
  }
1259
- }), Qa = /* @__PURE__ */ Re({
1259
+ }), ei = /* @__PURE__ */ Re({
1260
1260
  name: "AgentAvatar",
1261
1261
  __name: "AgentAvatar",
1262
1262
  props: {
@@ -1269,9 +1269,9 @@ const Pa = {
1269
1269
  },
1270
1270
  setup(a) {
1271
1271
  const t = S(() => a.agent.avatarUrl.value || Hn(a.agent.name.value)), e = S(() => a.agent.state.value), n = S(
1272
- () => a.showStatus && e.value.lifecycle !== "unknown" ? qa[e.value.color] : null
1272
+ () => a.showStatus && e.value.lifecycle !== "unknown" ? Ya[e.value.color] : null
1273
1273
  );
1274
- return (i, s) => (h(), kt(Ja, {
1274
+ return (i, s) => (h(), gt(Qa, {
1275
1275
  src: t.value,
1276
1276
  alt: a.agent.name.value || "Agent",
1277
1277
  rounded: a.rounded,
@@ -1283,21 +1283,20 @@ const Pa = {
1283
1283
  editable: a.editable
1284
1284
  }, null, 8, ["src", "alt", "rounded", "dot-class", "dot-tooltip", "show-ping", "dot-position", "sub-src", "editable"]));
1285
1285
  }
1286
- }), ei = {
1286
+ }), ti = {
1287
1287
  key: 0,
1288
1288
  class: "sr-only",
1289
1289
  role: "status",
1290
1290
  "aria-live": "polite"
1291
- }, ti = ["aria-expanded", "disabled"], ni = ["aria-expanded"], si = {
1291
+ }, ni = ["aria-expanded", "disabled"], si = ["aria-expanded"], ai = {
1292
1292
  class: "flex w-5 shrink-0 justify-center self-stretch",
1293
1293
  "aria-hidden": "true"
1294
- }, ai = ["data-journal-row"], ii = {
1294
+ }, ii = ["data-journal-row"], ri = {
1295
1295
  class: "flex w-5 shrink-0 flex-col items-center self-stretch",
1296
1296
  "aria-hidden": "true"
1297
- }, ri = { class: "flex h-[17px] shrink-0 items-center" }, li = {
1298
- key: 1,
1299
- "data-journal-station": "failed",
1300
- class: "i-tabler-alert-circle size-3.5 text-red-600"
1297
+ }, li = { class: "flex h-[17px] shrink-0 items-center" }, oi = {
1298
+ key: 0,
1299
+ class: "sr-only"
1301
1300
  }, Mn = /* @__PURE__ */ Re({
1302
1301
  __name: "AgentToolActivityGroup",
1303
1302
  props: {
@@ -1311,11 +1310,11 @@ const Pa = {
1311
1310
  }
1312
1311
  d(n, "toggle");
1313
1312
  const i = S(() => t.model.outcome === "completed"), s = S(() => t.model.hiddenRows.length), l = S(() => t.model.hint ?? (t.model.terminal?.tone === "active" ? t.model.terminal.label : void 0)), o = S(() => {
1314
- const b = t.model;
1315
- return i.value ? e.value ? b.hiddenRows : [] : [
1316
- ...e.value ? b.hiddenRows : [],
1317
- ...b.visibleRows,
1318
- ...b.terminal ? [b.terminal] : []
1313
+ const y = t.model;
1314
+ return i.value ? e.value ? y.hiddenRows : [] : [
1315
+ ...e.value ? y.hiddenRows : [],
1316
+ ...y.visibleRows,
1317
+ ...y.terminal ? [y.terminal] : []
1319
1318
  ];
1320
1319
  }), p = S(() => t.isLight ? {
1321
1320
  spine: "bg-theme-200",
@@ -1333,14 +1332,38 @@ const Pa = {
1333
1332
  stoppedSquare: "bg-white/55",
1334
1333
  muted: "text-white/55",
1335
1334
  ring: "focus-visible:ring-white"
1335
+ }), c = S(() => {
1336
+ const y = t.isLight;
1337
+ return {
1338
+ done: {
1339
+ statusWord: "completed",
1340
+ label: y ? "text-[12.5px] text-theme-500" : "text-[12.5px] text-white/55",
1341
+ station: { tag: "i", class: `i-tabler-check size-3 ${p.value.doneMark}` }
1342
+ },
1343
+ active: {
1344
+ statusWord: "in progress",
1345
+ label: y ? "text-[13px] font-medium text-theme-900" : "text-[13px] font-medium text-white",
1346
+ station: { tag: "span", class: `size-3.5 animate-spin rounded-full border-[1.5px] motion-reduce:animate-none ${p.value.activeSpinner}` }
1347
+ },
1348
+ failed: {
1349
+ statusWord: "failed",
1350
+ label: "text-[12.5px] font-medium text-red-600",
1351
+ station: { tag: "i", class: "i-tabler-alert-circle size-3.5 text-red-600" }
1352
+ },
1353
+ stopped: {
1354
+ label: y ? "text-[13px] font-medium text-theme-600" : "text-[13px] font-medium text-white/70",
1355
+ station: { tag: "span", class: `size-[9px] rounded-[2px] ${p.value.stoppedSquare}` }
1356
+ },
1357
+ completed: {
1358
+ label: y ? "text-[12.5px] text-theme-500" : "text-[12.5px] text-white/55",
1359
+ station: { tag: "i", class: "i-tabler-circle-check size-3.5 text-green-600" }
1360
+ }
1361
+ };
1336
1362
  });
1337
- function c(b) {
1338
- return b === "active" ? t.isLight ? "text-[13px] font-medium text-theme-900" : "text-[13px] font-medium text-white" : b === "failed" ? "text-[12.5px] font-medium text-red-600" : b === "stopped" ? t.isLight ? "text-[13px] font-medium text-theme-600" : "text-[13px] font-medium text-white/70" : t.isLight ? "text-[12.5px] text-theme-500" : "text-[12.5px] text-white/55";
1339
- }
1340
- return d(c, "labelClass"), (b, R) => (h(), f("div", {
1341
- class: C(["w-full py-0.5", p.value.muted])
1363
+ return (y, R) => (h(), f("div", {
1364
+ class: D(["w-full py-0.5", p.value.muted])
1342
1365
  }, [
1343
- l.value ? (h(), f("span", ei, j(l.value), 1)) : H("", !0),
1366
+ l.value ? (h(), f("span", ti, j(l.value), 1)) : H("", !0),
1344
1367
  i.value ? (h(), f("button", {
1345
1368
  key: 1,
1346
1369
  type: "button",
@@ -1348,7 +1371,7 @@ const Pa = {
1348
1371
  "data-journal-disclosure": "",
1349
1372
  "aria-expanded": e.value,
1350
1373
  disabled: s.value === 0,
1351
- class: C(["grid min-h-11 w-full grid-cols-[1.25rem_minmax(0,1fr)_auto] items-center gap-x-2.5 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-default", p.value.ring]),
1374
+ class: D(["grid min-h-11 w-full grid-cols-[1.25rem_minmax(0,1fr)_auto] items-center gap-x-2.5 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-default", p.value.ring]),
1352
1375
  onClick: n
1353
1376
  }, [
1354
1377
  R[0] || (R[0] = w("span", {
@@ -1359,86 +1382,80 @@ const Pa = {
1359
1382
  w("i", { class: "i-tabler-circle-check-filled size-3.5 text-green-600" })
1360
1383
  ], -1)),
1361
1384
  w("span", {
1362
- class: C(["min-w-0 truncate text-[12.5px] font-medium leading-none", p.value.muted])
1385
+ class: D(["min-w-0 truncate text-[12.5px] font-medium leading-none", p.value.muted])
1363
1386
  }, j(a.model.terminal?.label), 3),
1364
1387
  s.value ? (h(), f("span", {
1365
1388
  key: 0,
1366
- class: C(["flex shrink-0 items-center gap-0.5 whitespace-nowrap text-[12px] font-medium leading-none", p.value.muted])
1389
+ class: D(["flex shrink-0 items-center gap-0.5 whitespace-nowrap text-[12px] font-medium leading-none", p.value.muted])
1367
1390
  }, [
1368
- ot(j(s.value) + " earlier updates ", 1),
1391
+ st(j(s.value) + " earlier updates ", 1),
1369
1392
  w("i", {
1370
- class: C(["size-3 shrink-0", e.value ? "i-tabler-chevron-down" : "i-tabler-chevron-right"]),
1393
+ class: D(["size-3 shrink-0", e.value ? "i-tabler-chevron-down" : "i-tabler-chevron-right"]),
1371
1394
  "aria-hidden": "true"
1372
1395
  }, null, 2)
1373
1396
  ], 2)) : H("", !0)
1374
- ], 10, ti)) : s.value ? (h(), f("button", {
1397
+ ], 10, ni)) : s.value ? (h(), f("button", {
1375
1398
  key: 2,
1376
1399
  type: "button",
1377
1400
  "data-test": "messaging-tool-activity-summary",
1378
1401
  "data-journal-disclosure": "",
1379
1402
  "aria-expanded": e.value,
1380
- class: C(["flex min-h-11 w-full gap-x-2.5 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2", p.value.ring]),
1403
+ class: D(["flex min-h-11 w-full gap-x-2.5 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2", p.value.ring]),
1381
1404
  onClick: n
1382
1405
  }, [
1383
- w("span", si, [
1406
+ w("span", ai, [
1384
1407
  w("span", {
1385
1408
  "data-journal-spine": "dashed",
1386
- class: C(["w-0 border-l border-dashed", p.value.dashed])
1409
+ class: D(["w-0 border-l border-dashed", p.value.dashed])
1387
1410
  }, null, 2)
1388
1411
  ]),
1389
1412
  w("span", {
1390
- class: C(["flex min-h-[20px] items-center gap-0.5 pb-2 text-[12px] leading-none", p.value.muted])
1413
+ class: D(["flex min-h-[20px] items-center gap-0.5 pb-2 text-[12px] leading-none", p.value.muted])
1391
1414
  }, [
1392
- ot(j(s.value) + " earlier updates ", 1),
1415
+ st(j(s.value) + " earlier updates ", 1),
1393
1416
  w("i", {
1394
- class: C(["size-3 shrink-0", e.value ? "i-tabler-chevron-down" : "i-tabler-chevron-right"]),
1417
+ class: D(["size-3 shrink-0", e.value ? "i-tabler-chevron-down" : "i-tabler-chevron-right"]),
1395
1418
  "aria-hidden": "true"
1396
1419
  }, null, 2)
1397
1420
  ], 2)
1398
- ], 10, ni)) : H("", !0),
1399
- (h(!0), f(ee, null, me(o.value, (y, k) => (h(), f("div", {
1400
- key: y.id,
1421
+ ], 10, si)) : H("", !0),
1422
+ (h(!0), f(ee, null, me(o.value, (b, k) => (h(), f("div", {
1423
+ key: b.id,
1401
1424
  "data-test": "messaging-tool-activity-row",
1402
- "data-journal-row": y.tone,
1403
- class: C([i.value ? "pl-[30px]" : "", "flex gap-x-2.5"])
1425
+ "data-journal-row": b.tone,
1426
+ class: D([i.value ? "pl-[30px]" : "", "flex gap-x-2.5"])
1404
1427
  }, [
1405
- w("div", ii, [
1406
- w("span", ri, [
1407
- y.tone === "active" ? (h(), f("span", {
1408
- key: 0,
1409
- "data-journal-station": "active",
1410
- class: C(["size-3.5 animate-spin rounded-full border-[1.5px] motion-reduce:animate-none", p.value.activeSpinner])
1411
- }, null, 2)) : y.tone === "failed" ? (h(), f("i", li)) : y.tone === "stopped" ? (h(), f("span", {
1412
- key: 2,
1413
- "data-journal-station": "stopped",
1414
- class: C(["size-[9px] rounded-[2px]", p.value.stoppedSquare])
1415
- }, null, 2)) : (h(), f("i", {
1416
- key: 3,
1417
- "data-journal-station": "done",
1418
- class: C(["i-tabler-check size-3", p.value.doneMark])
1419
- }, null, 2))
1428
+ w("div", ri, [
1429
+ w("span", li, [
1430
+ (h(), gt(ka(c.value[b.tone].station.tag), {
1431
+ "data-journal-station": b.tone,
1432
+ class: D(c.value[b.tone].station.class)
1433
+ }, null, 8, ["data-journal-station", "class"]))
1420
1434
  ]),
1421
1435
  k !== o.value.length - 1 ? (h(), f("span", {
1422
1436
  key: 0,
1423
- class: C(["w-px flex-1", p.value.spine])
1437
+ class: D(["w-px flex-1", p.value.spine])
1424
1438
  }, null, 2)) : H("", !0)
1425
1439
  ]),
1426
1440
  w("div", {
1427
- class: C(["min-w-0 flex-1", k === o.value.length - 1 ? "" : "pb-2"])
1441
+ class: D(["min-w-0 flex-1", k === o.value.length - 1 ? "" : "pb-2"])
1428
1442
  }, [
1429
1443
  w("span", {
1430
- class: C(["block leading-snug", c(y.tone)])
1431
- }, j(y.label), 3),
1432
- y.note ? (h(), f("p", {
1444
+ class: D(["relative block leading-snug", c.value[b.tone].label])
1445
+ }, [
1446
+ st(j(b.label), 1),
1447
+ c.value[b.tone].statusWord ? (h(), f("span", oi, ", " + j(c.value[b.tone].statusWord), 1)) : H("", !0)
1448
+ ], 2),
1449
+ b.note ? (h(), f("p", {
1433
1450
  key: 0,
1434
- class: C(["pt-0.5 text-[11.5px] leading-snug", p.value.muted])
1435
- }, j(y.note), 3)) : H("", !0)
1451
+ class: D(["pt-0.5 text-[11.5px] leading-snug", p.value.muted])
1452
+ }, j(b.note), 3)) : H("", !0)
1436
1453
  ], 2)
1437
- ], 10, ai))), 128)),
1454
+ ], 10, ii))), 128)),
1438
1455
  !i.value && a.model.hint ? (h(), f("p", {
1439
1456
  key: 3,
1440
1457
  "data-test": "messaging-tool-activity-hint",
1441
- class: C(["pl-[30px] pt-2.5 text-[12px] leading-snug", p.value.muted])
1458
+ class: D(["pl-[30px] pt-2.5 text-[12px] leading-snug", p.value.muted])
1442
1459
  }, j(a.model.hint), 3)) : H("", !0)
1443
1460
  ], 2));
1444
1461
  }
@@ -1449,18 +1466,18 @@ function gs(a, t) {
1449
1466
  return n;
1450
1467
  }
1451
1468
  d(gs, "_arrayLikeToArray");
1452
- function oi(a) {
1469
+ function ci(a) {
1453
1470
  if (Array.isArray(a)) return a;
1454
1471
  }
1455
- d(oi, "_arrayWithHoles");
1456
- function ci(a, t) {
1472
+ d(ci, "_arrayWithHoles");
1473
+ function ui(a, t) {
1457
1474
  var e = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1458
1475
  if (e != null) {
1459
1476
  var n, i, s, l, o = [], p = !0, c = !1;
1460
1477
  try {
1461
1478
  if (s = (e = e.call(a)).next, t !== 0) for (; !(p = (n = s.call(e)).done) && (o.push(n.value), o.length !== t); p = !0) ;
1462
- } catch (b) {
1463
- c = !0, i = b;
1479
+ } catch (y) {
1480
+ c = !0, i = y;
1464
1481
  } finally {
1465
1482
  try {
1466
1483
  if (!p && e.return != null && (l = e.return(), Object(l) !== l)) return;
@@ -1471,26 +1488,26 @@ function ci(a, t) {
1471
1488
  return o;
1472
1489
  }
1473
1490
  }
1474
- d(ci, "_iterableToArrayLimit");
1475
- function ui() {
1491
+ d(ui, "_iterableToArrayLimit");
1492
+ function di() {
1476
1493
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1477
1494
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1478
1495
  }
1479
- d(ui, "_nonIterableRest");
1480
- function di(a, t) {
1481
- return oi(a) || ci(a, t) || hi(a, t) || ui();
1482
- }
1483
- d(di, "_slicedToArray");
1496
+ d(di, "_nonIterableRest");
1484
1497
  function hi(a, t) {
1498
+ return ci(a) || ui(a, t) || pi(a, t) || di();
1499
+ }
1500
+ d(hi, "_slicedToArray");
1501
+ function pi(a, t) {
1485
1502
  if (a) {
1486
1503
  if (typeof a == "string") return gs(a, t);
1487
1504
  var e = {}.toString.call(a).slice(8, -1);
1488
1505
  return e === "Object" && a.constructor && (e = a.constructor.name), e === "Map" || e === "Set" ? Array.from(a) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? gs(a, t) : void 0;
1489
1506
  }
1490
1507
  }
1491
- d(hi, "_unsupportedIterableToArray");
1492
- const qs = Object.entries, vs = Object.setPrototypeOf, pi = Object.isFrozen, fi = Object.getPrototypeOf, mi = Object.getOwnPropertyDescriptor;
1493
- let Ee = Object.freeze, He = Object.seal, Dt = Object.create, Ys = typeof Reflect < "u" && Reflect, Bn = Ys.apply, Fn = Ys.construct;
1508
+ d(pi, "_unsupportedIterableToArray");
1509
+ const qs = Object.entries, vs = Object.setPrototypeOf, fi = Object.isFrozen, mi = Object.getPrototypeOf, gi = Object.getOwnPropertyDescriptor;
1510
+ let Ee = Object.freeze, He = Object.seal, Lt = Object.create, Ys = typeof Reflect < "u" && Reflect, Bn = Ys.apply, Fn = Ys.construct;
1494
1511
  Ee || (Ee = /* @__PURE__ */ d(function(t) {
1495
1512
  return t;
1496
1513
  }, "freeze"));
@@ -1507,7 +1524,7 @@ Fn || (Fn = /* @__PURE__ */ d(function(t) {
1507
1524
  n[i - 1] = arguments[i];
1508
1525
  return new t(...n);
1509
1526
  }, "construct"));
1510
- const Rt = ve(Array.prototype.forEach), gi = ve(Array.prototype.lastIndexOf), xs = ve(Array.prototype.pop), Mt = ve(Array.prototype.push), vi = ve(Array.prototype.splice), _e = Array.isArray, Zt = ve(String.prototype.toLowerCase), Cn = ve(String.prototype.toString), ys = ve(String.prototype.match), Ct = ve(String.prototype.replace), bs = ve(String.prototype.indexOf), xi = ve(String.prototype.trim), yi = ve(Number.prototype.toString), bi = ve(Boolean.prototype.toString), ks = typeof BigInt > "u" ? null : ve(BigInt.prototype.toString), ws = typeof Symbol > "u" ? null : ve(Symbol.prototype.toString), he = ve(Object.prototype.hasOwnProperty), Wt = ve(Object.prototype.toString), we = ve(RegExp.prototype.test), Gt = ki(TypeError);
1527
+ const Rt = ve(Array.prototype.forEach), vi = ve(Array.prototype.lastIndexOf), xs = ve(Array.prototype.pop), Mt = ve(Array.prototype.push), xi = ve(Array.prototype.splice), _e = Array.isArray, Zt = ve(String.prototype.toLowerCase), Cn = ve(String.prototype.toString), bs = ve(String.prototype.match), Ct = ve(String.prototype.replace), ys = ve(String.prototype.indexOf), bi = ve(String.prototype.trim), yi = ve(Number.prototype.toString), ki = ve(Boolean.prototype.toString), ks = typeof BigInt > "u" ? null : ve(BigInt.prototype.toString), ws = typeof Symbol > "u" ? null : ve(Symbol.prototype.toString), he = ve(Object.prototype.hasOwnProperty), Wt = ve(Object.prototype.toString), we = ve(RegExp.prototype.test), Gt = wi(TypeError);
1511
1528
  function ve(a) {
1512
1529
  return function(t) {
1513
1530
  t instanceof RegExp && (t.lastIndex = 0);
@@ -1517,14 +1534,14 @@ function ve(a) {
1517
1534
  };
1518
1535
  }
1519
1536
  d(ve, "unapply");
1520
- function ki(a) {
1537
+ function wi(a) {
1521
1538
  return function() {
1522
1539
  for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
1523
1540
  e[n] = arguments[n];
1524
1541
  return Fn(a, e);
1525
1542
  };
1526
1543
  }
1527
- d(ki, "unconstruct");
1544
+ d(wi, "unconstruct");
1528
1545
  function G(a, t) {
1529
1546
  let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Zt;
1530
1547
  if (vs && vs(a, null), !_e(t))
@@ -1534,37 +1551,37 @@ function G(a, t) {
1534
1551
  let i = t[n];
1535
1552
  if (typeof i == "string") {
1536
1553
  const s = e(i);
1537
- s !== i && (pi(t) || (t[n] = s), i = s);
1554
+ s !== i && (fi(t) || (t[n] = s), i = s);
1538
1555
  }
1539
1556
  a[i] = !0;
1540
1557
  }
1541
1558
  return a;
1542
1559
  }
1543
1560
  d(G, "addToSet");
1544
- function wi(a) {
1561
+ function Ti(a) {
1545
1562
  for (let t = 0; t < a.length; t++)
1546
1563
  he(a, t) || (a[t] = null);
1547
1564
  return a;
1548
1565
  }
1549
- d(wi, "cleanArray");
1566
+ d(Ti, "cleanArray");
1550
1567
  function Te(a) {
1551
- const t = Dt(null);
1568
+ const t = Lt(null);
1552
1569
  for (const n of qs(a)) {
1553
- var e = di(n, 2);
1570
+ var e = hi(n, 2);
1554
1571
  const i = e[0], s = e[1];
1555
- he(a, i) && (_e(s) ? t[i] = wi(s) : s && typeof s == "object" && s.constructor === Object ? t[i] = Te(s) : t[i] = s);
1572
+ he(a, i) && (_e(s) ? t[i] = Ti(s) : s && typeof s == "object" && s.constructor === Object ? t[i] = Te(s) : t[i] = s);
1556
1573
  }
1557
1574
  return t;
1558
1575
  }
1559
1576
  d(Te, "clone");
1560
- function Ti(a) {
1577
+ function Si(a) {
1561
1578
  switch (typeof a) {
1562
1579
  case "string":
1563
1580
  return a;
1564
1581
  case "number":
1565
1582
  return yi(a);
1566
1583
  case "boolean":
1567
- return bi(a);
1584
+ return ki(a);
1568
1585
  case "bigint":
1569
1586
  return ks ? ks(a) : "0";
1570
1587
  case "symbol":
@@ -1586,17 +1603,17 @@ function Ti(a) {
1586
1603
  return Wt(a);
1587
1604
  }
1588
1605
  }
1589
- d(Ti, "stringifyValue");
1606
+ d(Si, "stringifyValue");
1590
1607
  function tt(a, t) {
1591
1608
  for (; a !== null; ) {
1592
- const n = mi(a, t);
1609
+ const n = gi(a, t);
1593
1610
  if (n) {
1594
1611
  if (n.get)
1595
1612
  return ve(n.get);
1596
1613
  if (typeof n.value == "function")
1597
1614
  return ve(n.value);
1598
1615
  }
1599
- a = fi(a);
1616
+ a = mi(a);
1600
1617
  }
1601
1618
  function e() {
1602
1619
  return null;
@@ -1604,21 +1621,21 @@ function tt(a, t) {
1604
1621
  return d(e, "fallbackValue"), e;
1605
1622
  }
1606
1623
  d(tt, "lookupGetter");
1607
- function Si(a) {
1624
+ function Ai(a) {
1608
1625
  try {
1609
1626
  return we(a, ""), !0;
1610
1627
  } catch {
1611
1628
  return !1;
1612
1629
  }
1613
1630
  }
1614
- d(Si, "isRegex");
1615
- const Ts = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), In = Ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), $n = Ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ai = Ee(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ln = Ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), _i = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ss = Ee(["#text"]), As = Ee(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), Dn = Ee(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), _s = Ee(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), cn = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ei = He(/{{[\w\W]*|^[\w\W]*}}/g), Ri = He(/<%[\w\W]*|^[\w\W]*%>/g), Mi = He(/\${[\w\W]*/g), Ci = He(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ii = He(/^aria-[\-\w]+$/), Es = He(
1631
+ d(Ai, "isRegex");
1632
+ const Ts = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), In = Ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), $n = Ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), _i = Ee(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Dn = Ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ei = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ss = Ee(["#text"]), As = Ee(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), Ln = Ee(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), _s = Ee(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), cn = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ri = He(/{{[\w\W]*|^[\w\W]*}}/g), Mi = He(/<%[\w\W]*|^[\w\W]*%>/g), Ci = He(/\${[\w\W]*/g), Ii = He(/^data-[\-\w.\u00B7-\uFFFF]+$/), $i = He(/^aria-[\-\w]+$/), Es = He(
1616
1633
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
1617
1634
  // eslint-disable-line no-useless-escape
1618
- ), $i = He(/^(?:\w+script|data):/i), Li = He(
1635
+ ), Di = He(/^(?:\w+script|data):/i), Li = He(
1619
1636
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
1620
1637
  // eslint-disable-line no-control-regex
1621
- ), Di = He(/^html$/i), Oi = He(/^[a-z][.\w]*(-[.\w]+)+$/i), et = {
1638
+ ), Oi = He(/^html$/i), zi = He(/^[a-z][.\w]*(-[.\w]+)+$/i), et = {
1622
1639
  element: 1,
1623
1640
  attribute: 2,
1624
1641
  text: 3,
@@ -1634,9 +1651,9 @@ const Ts = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
1634
1651
  documentFragment: 11,
1635
1652
  notation: 12
1636
1653
  // Deprecated
1637
- }, zi = /* @__PURE__ */ d(function() {
1654
+ }, Ni = /* @__PURE__ */ d(function() {
1638
1655
  return typeof window > "u" ? null : window;
1639
- }, "getGlobal"), Ni = /* @__PURE__ */ d(function(t, e) {
1656
+ }, "getGlobal"), Pi = /* @__PURE__ */ d(function(t, e) {
1640
1657
  if (typeof t != "object" || typeof t.createPolicy != "function")
1641
1658
  return null;
1642
1659
  let n = null;
@@ -1669,7 +1686,7 @@ const Ts = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
1669
1686
  };
1670
1687
  }, "_createHooksMap");
1671
1688
  function Ks() {
1672
- let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : zi();
1689
+ let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ni();
1673
1690
  const t = /* @__PURE__ */ d((F) => Ks(F), "DOMPurify");
1674
1691
  if (t.version = "3.4.7", t.removed = [], !a || !a.document || a.document.nodeType !== et.document || !a.Element)
1675
1692
  return t.isSupported = !1, t;
@@ -1678,21 +1695,21 @@ function Ks() {
1678
1695
  a.DocumentFragment;
1679
1696
  const s = a.HTMLTemplateElement, l = a.Node, o = a.Element, p = a.NodeFilter, c = a.NamedNodeMap;
1680
1697
  c === void 0 && (a.NamedNodeMap || a.MozNamedAttrMap), a.HTMLFormElement;
1681
- const b = a.DOMParser, R = a.trustedTypes, y = o.prototype, k = tt(y, "cloneNode"), A = tt(y, "remove"), E = tt(y, "nextSibling"), O = tt(y, "childNodes"), Z = tt(y, "parentNode"), I = tt(y, "shadowRoot"), $ = tt(y, "attributes"), N = l && l.prototype ? tt(l.prototype, "nodeType") : null, W = l && l.prototype ? tt(l.prototype, "nodeName") : null;
1698
+ const y = a.DOMParser, R = a.trustedTypes, b = o.prototype, k = tt(b, "cloneNode"), A = tt(b, "remove"), E = tt(b, "nextSibling"), O = tt(b, "childNodes"), Z = tt(b, "parentNode"), C = tt(b, "shadowRoot"), I = tt(b, "attributes"), N = l && l.prototype ? tt(l.prototype, "nodeType") : null, W = l && l.prototype ? tt(l.prototype, "nodeName") : null;
1682
1699
  if (typeof s == "function") {
1683
1700
  const F = e.createElement("template");
1684
1701
  F.content && F.content.ownerDocument && (e = F.content.ownerDocument);
1685
1702
  }
1686
1703
  let B, V = "";
1687
- const J = e, ue = J.implementation, Ae = J.createNodeIterator, Pe = J.createDocumentFragment, St = J.getElementsByTagName, De = n.importNode;
1704
+ const J = e, ue = J.implementation, Ae = J.createNodeIterator, Pe = J.createDocumentFragment, St = J.getElementsByTagName, Le = n.importNode;
1688
1705
  let se = Rs();
1689
1706
  t.isSupported = typeof qs == "function" && typeof Z == "function" && ue && ue.createHTMLDocument !== void 0;
1690
- const st = Ei, Ye = Ri, at = Mi, Oe = Ci, gt = Ii, vt = $i, Me = Li, it = Oi;
1707
+ const at = Ri, Ye = Mi, it = Ci, Oe = Ii, vt = $i, xt = Di, Me = Li, rt = zi;
1691
1708
  let Ce = Es, K = null;
1692
- const ye = G({}, [...Ts, ...In, ...$n, ...Ln, ...Ss]);
1709
+ const be = G({}, [...Ts, ...In, ...$n, ...Dn, ...Ss]);
1693
1710
  let ie = null;
1694
- const Ie = G({}, [...As, ...Dn, ..._s, ...cn]);
1695
- let re = Object.seal(Dt(null, {
1711
+ const Ie = G({}, [...As, ...Ln, ..._s, ...cn]);
1712
+ let re = Object.seal(Lt(null, {
1696
1713
  tagNameCheck: {
1697
1714
  writable: !0,
1698
1715
  configurable: !1,
@@ -1711,8 +1728,8 @@ function Ks() {
1711
1728
  enumerable: !0,
1712
1729
  value: !1
1713
1730
  }
1714
- })), Be = null, rt = null;
1715
- const be = Object.seal(Dt(null, {
1731
+ })), Be = null, lt = null;
1732
+ const ye = Object.seal(Lt(null, {
1716
1733
  tagCheck: {
1717
1734
  writable: !0,
1718
1735
  configurable: !1,
@@ -1726,7 +1743,7 @@ function Ks() {
1726
1743
  value: null
1727
1744
  }
1728
1745
  }));
1729
- let g = !0, M = !0, u = !1, v = !0, L = !1, D = !0, Q = !1, pe = !1, ke = !1, le = !1, de = !1, $e = !1, Ke = !0, je = !1;
1746
+ let g = !0, M = !0, u = !1, v = !0, $ = !1, L = !0, Q = !1, pe = !1, ke = !1, le = !1, de = !1, $e = !1, Ke = !0, je = !1;
1730
1747
  const ze = "user-content-";
1731
1748
  let Fe = !0, Xe = !1, _ = {}, m = null;
1732
1749
  const T = G({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
@@ -1734,7 +1751,7 @@ function Ks() {
1734
1751
  const U = G({}, ["audio", "video", "img", "source", "image", "track"]);
1735
1752
  let oe = null;
1736
1753
  const Ze = G({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ct = "http://www.w3.org/1998/Math/MathML", sn = "http://www.w3.org/2000/svg", Je = "http://www.w3.org/1999/xhtml";
1737
- let At = Je, bn = !1, kn = null;
1754
+ let At = Je, yn = !1, kn = null;
1738
1755
  const ca = G({}, [ct, sn, Je], Cn);
1739
1756
  let wn = G({}, ["mi", "mo", "mn", "ms", "mtext"]), Tn = G({}, ["annotation-xml"]);
1740
1757
  const ua = G({}, ["title", "style", "font", "a", "script"]);
@@ -1748,18 +1765,18 @@ function Ks() {
1748
1765
  if (_t && _t === r)
1749
1766
  return;
1750
1767
  (!r || typeof r != "object") && (r = {}), r = Te(r), Ut = // eslint-disable-next-line unicorn/prefer-includes
1751
- da.indexOf(r.PARSER_MEDIA_TYPE) === -1 ? ha : r.PARSER_MEDIA_TYPE, fe = Ut === "application/xhtml+xml" ? Cn : Zt, K = he(r, "ALLOWED_TAGS") && _e(r.ALLOWED_TAGS) ? G({}, r.ALLOWED_TAGS, fe) : ye, ie = he(r, "ALLOWED_ATTR") && _e(r.ALLOWED_ATTR) ? G({}, r.ALLOWED_ATTR, fe) : Ie, kn = he(r, "ALLOWED_NAMESPACES") && _e(r.ALLOWED_NAMESPACES) ? G({}, r.ALLOWED_NAMESPACES, Cn) : ca, oe = he(r, "ADD_URI_SAFE_ATTR") && _e(r.ADD_URI_SAFE_ATTR) ? G(Te(Ze), r.ADD_URI_SAFE_ATTR, fe) : Ze, ae = he(r, "ADD_DATA_URI_TAGS") && _e(r.ADD_DATA_URI_TAGS) ? G(Te(U), r.ADD_DATA_URI_TAGS, fe) : U, m = he(r, "FORBID_CONTENTS") && _e(r.FORBID_CONTENTS) ? G({}, r.FORBID_CONTENTS, fe) : T, Be = he(r, "FORBID_TAGS") && _e(r.FORBID_TAGS) ? G({}, r.FORBID_TAGS, fe) : Te({}), rt = he(r, "FORBID_ATTR") && _e(r.FORBID_ATTR) ? G({}, r.FORBID_ATTR, fe) : Te({}), _ = he(r, "USE_PROFILES") ? r.USE_PROFILES && typeof r.USE_PROFILES == "object" ? Te(r.USE_PROFILES) : r.USE_PROFILES : !1, g = r.ALLOW_ARIA_ATTR !== !1, M = r.ALLOW_DATA_ATTR !== !1, u = r.ALLOW_UNKNOWN_PROTOCOLS || !1, v = r.ALLOW_SELF_CLOSE_IN_ATTR !== !1, L = r.SAFE_FOR_TEMPLATES || !1, D = r.SAFE_FOR_XML !== !1, Q = r.WHOLE_DOCUMENT || !1, le = r.RETURN_DOM || !1, de = r.RETURN_DOM_FRAGMENT || !1, $e = r.RETURN_TRUSTED_TYPE || !1, ke = r.FORCE_BODY || !1, Ke = r.SANITIZE_DOM !== !1, je = r.SANITIZE_NAMED_PROPS || !1, Fe = r.KEEP_CONTENT !== !1, Xe = r.IN_PLACE || !1, Ce = Si(r.ALLOWED_URI_REGEXP) ? r.ALLOWED_URI_REGEXP : Es, At = typeof r.NAMESPACE == "string" ? r.NAMESPACE : Je, wn = he(r, "MATHML_TEXT_INTEGRATION_POINTS") && r.MATHML_TEXT_INTEGRATION_POINTS && typeof r.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Te(r.MATHML_TEXT_INTEGRATION_POINTS) : G({}, ["mi", "mo", "mn", "ms", "mtext"]), Tn = he(r, "HTML_INTEGRATION_POINTS") && r.HTML_INTEGRATION_POINTS && typeof r.HTML_INTEGRATION_POINTS == "object" ? Te(r.HTML_INTEGRATION_POINTS) : G({}, ["annotation-xml"]);
1752
- const x = he(r, "CUSTOM_ELEMENT_HANDLING") && r.CUSTOM_ELEMENT_HANDLING && typeof r.CUSTOM_ELEMENT_HANDLING == "object" ? Te(r.CUSTOM_ELEMENT_HANDLING) : Dt(null);
1753
- if (re = Dt(null), he(x, "tagNameCheck") && es(x.tagNameCheck) && (re.tagNameCheck = x.tagNameCheck), he(x, "attributeNameCheck") && es(x.attributeNameCheck) && (re.attributeNameCheck = x.attributeNameCheck), he(x, "allowCustomizedBuiltInElements") && typeof x.allowCustomizedBuiltInElements == "boolean" && (re.allowCustomizedBuiltInElements = x.allowCustomizedBuiltInElements), L && (M = !1), de && (le = !0), _ && (K = G({}, Ss), ie = Dt(null), _.html === !0 && (G(K, Ts), G(ie, As)), _.svg === !0 && (G(K, In), G(ie, Dn), G(ie, cn)), _.svgFilters === !0 && (G(K, $n), G(ie, Dn), G(ie, cn)), _.mathMl === !0 && (G(K, Ln), G(ie, _s), G(ie, cn))), be.tagCheck = null, be.attributeCheck = null, he(r, "ADD_TAGS") && (typeof r.ADD_TAGS == "function" ? be.tagCheck = r.ADD_TAGS : _e(r.ADD_TAGS) && (K === ye && (K = Te(K)), G(K, r.ADD_TAGS, fe))), he(r, "ADD_ATTR") && (typeof r.ADD_ATTR == "function" ? be.attributeCheck = r.ADD_ATTR : _e(r.ADD_ATTR) && (ie === Ie && (ie = Te(ie)), G(ie, r.ADD_ATTR, fe))), he(r, "ADD_URI_SAFE_ATTR") && _e(r.ADD_URI_SAFE_ATTR) && G(oe, r.ADD_URI_SAFE_ATTR, fe), he(r, "FORBID_CONTENTS") && _e(r.FORBID_CONTENTS) && (m === T && (m = Te(m)), G(m, r.FORBID_CONTENTS, fe)), he(r, "ADD_FORBID_CONTENTS") && _e(r.ADD_FORBID_CONTENTS) && (m === T && (m = Te(m)), G(m, r.ADD_FORBID_CONTENTS, fe)), Fe && (K["#text"] = !0), Q && G(K, ["html", "head", "body"]), K.table && (G(K, ["tbody"]), delete Be.tbody), r.TRUSTED_TYPES_POLICY) {
1768
+ da.indexOf(r.PARSER_MEDIA_TYPE) === -1 ? ha : r.PARSER_MEDIA_TYPE, fe = Ut === "application/xhtml+xml" ? Cn : Zt, K = he(r, "ALLOWED_TAGS") && _e(r.ALLOWED_TAGS) ? G({}, r.ALLOWED_TAGS, fe) : be, ie = he(r, "ALLOWED_ATTR") && _e(r.ALLOWED_ATTR) ? G({}, r.ALLOWED_ATTR, fe) : Ie, kn = he(r, "ALLOWED_NAMESPACES") && _e(r.ALLOWED_NAMESPACES) ? G({}, r.ALLOWED_NAMESPACES, Cn) : ca, oe = he(r, "ADD_URI_SAFE_ATTR") && _e(r.ADD_URI_SAFE_ATTR) ? G(Te(Ze), r.ADD_URI_SAFE_ATTR, fe) : Ze, ae = he(r, "ADD_DATA_URI_TAGS") && _e(r.ADD_DATA_URI_TAGS) ? G(Te(U), r.ADD_DATA_URI_TAGS, fe) : U, m = he(r, "FORBID_CONTENTS") && _e(r.FORBID_CONTENTS) ? G({}, r.FORBID_CONTENTS, fe) : T, Be = he(r, "FORBID_TAGS") && _e(r.FORBID_TAGS) ? G({}, r.FORBID_TAGS, fe) : Te({}), lt = he(r, "FORBID_ATTR") && _e(r.FORBID_ATTR) ? G({}, r.FORBID_ATTR, fe) : Te({}), _ = he(r, "USE_PROFILES") ? r.USE_PROFILES && typeof r.USE_PROFILES == "object" ? Te(r.USE_PROFILES) : r.USE_PROFILES : !1, g = r.ALLOW_ARIA_ATTR !== !1, M = r.ALLOW_DATA_ATTR !== !1, u = r.ALLOW_UNKNOWN_PROTOCOLS || !1, v = r.ALLOW_SELF_CLOSE_IN_ATTR !== !1, $ = r.SAFE_FOR_TEMPLATES || !1, L = r.SAFE_FOR_XML !== !1, Q = r.WHOLE_DOCUMENT || !1, le = r.RETURN_DOM || !1, de = r.RETURN_DOM_FRAGMENT || !1, $e = r.RETURN_TRUSTED_TYPE || !1, ke = r.FORCE_BODY || !1, Ke = r.SANITIZE_DOM !== !1, je = r.SANITIZE_NAMED_PROPS || !1, Fe = r.KEEP_CONTENT !== !1, Xe = r.IN_PLACE || !1, Ce = Ai(r.ALLOWED_URI_REGEXP) ? r.ALLOWED_URI_REGEXP : Es, At = typeof r.NAMESPACE == "string" ? r.NAMESPACE : Je, wn = he(r, "MATHML_TEXT_INTEGRATION_POINTS") && r.MATHML_TEXT_INTEGRATION_POINTS && typeof r.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Te(r.MATHML_TEXT_INTEGRATION_POINTS) : G({}, ["mi", "mo", "mn", "ms", "mtext"]), Tn = he(r, "HTML_INTEGRATION_POINTS") && r.HTML_INTEGRATION_POINTS && typeof r.HTML_INTEGRATION_POINTS == "object" ? Te(r.HTML_INTEGRATION_POINTS) : G({}, ["annotation-xml"]);
1769
+ const x = he(r, "CUSTOM_ELEMENT_HANDLING") && r.CUSTOM_ELEMENT_HANDLING && typeof r.CUSTOM_ELEMENT_HANDLING == "object" ? Te(r.CUSTOM_ELEMENT_HANDLING) : Lt(null);
1770
+ if (re = Lt(null), he(x, "tagNameCheck") && es(x.tagNameCheck) && (re.tagNameCheck = x.tagNameCheck), he(x, "attributeNameCheck") && es(x.attributeNameCheck) && (re.attributeNameCheck = x.attributeNameCheck), he(x, "allowCustomizedBuiltInElements") && typeof x.allowCustomizedBuiltInElements == "boolean" && (re.allowCustomizedBuiltInElements = x.allowCustomizedBuiltInElements), $ && (M = !1), de && (le = !0), _ && (K = G({}, Ss), ie = Lt(null), _.html === !0 && (G(K, Ts), G(ie, As)), _.svg === !0 && (G(K, In), G(ie, Ln), G(ie, cn)), _.svgFilters === !0 && (G(K, $n), G(ie, Ln), G(ie, cn)), _.mathMl === !0 && (G(K, Dn), G(ie, _s), G(ie, cn))), ye.tagCheck = null, ye.attributeCheck = null, he(r, "ADD_TAGS") && (typeof r.ADD_TAGS == "function" ? ye.tagCheck = r.ADD_TAGS : _e(r.ADD_TAGS) && (K === be && (K = Te(K)), G(K, r.ADD_TAGS, fe))), he(r, "ADD_ATTR") && (typeof r.ADD_ATTR == "function" ? ye.attributeCheck = r.ADD_ATTR : _e(r.ADD_ATTR) && (ie === Ie && (ie = Te(ie)), G(ie, r.ADD_ATTR, fe))), he(r, "ADD_URI_SAFE_ATTR") && _e(r.ADD_URI_SAFE_ATTR) && G(oe, r.ADD_URI_SAFE_ATTR, fe), he(r, "FORBID_CONTENTS") && _e(r.FORBID_CONTENTS) && (m === T && (m = Te(m)), G(m, r.FORBID_CONTENTS, fe)), he(r, "ADD_FORBID_CONTENTS") && _e(r.ADD_FORBID_CONTENTS) && (m === T && (m = Te(m)), G(m, r.ADD_FORBID_CONTENTS, fe)), Fe && (K["#text"] = !0), Q && G(K, ["html", "head", "body"]), K.table && (G(K, ["tbody"]), delete Be.tbody), r.TRUSTED_TYPES_POLICY) {
1754
1771
  if (typeof r.TRUSTED_TYPES_POLICY.createHTML != "function")
1755
1772
  throw Gt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1756
1773
  if (typeof r.TRUSTED_TYPES_POLICY.createScriptURL != "function")
1757
1774
  throw Gt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
1758
1775
  B = r.TRUSTED_TYPES_POLICY, V = B.createHTML("");
1759
1776
  } else
1760
- B === void 0 && (B = Ni(R, i)), B !== null && typeof V == "string" && (V = B.createHTML(""));
1761
- (se.uponSanitizeElement.length > 0 || se.uponSanitizeAttribute.length > 0) && K === ye && (K = Te(K)), se.uponSanitizeAttribute.length > 0 && ie === Ie && (ie = Te(ie)), Ee && Ee(r), _t = r;
1762
- }, "_parseConfig"), ts = G({}, [...In, ...$n, ...Ai]), ns = G({}, [...Ln, ..._i]), fa = /* @__PURE__ */ d(function(r) {
1777
+ B === void 0 && (B = Pi(R, i)), B !== null && typeof V == "string" && (V = B.createHTML(""));
1778
+ (se.uponSanitizeElement.length > 0 || se.uponSanitizeAttribute.length > 0) && K === be && (K = Te(K)), se.uponSanitizeAttribute.length > 0 && ie === Ie && (ie = Te(ie)), Ee && Ee(r), _t = r;
1779
+ }, "_parseConfig"), ts = G({}, [...In, ...$n, ..._i]), ns = G({}, [...Dn, ...Ei]), fa = /* @__PURE__ */ d(function(r) {
1763
1780
  let x = Z(r);
1764
1781
  (!x || !x.tagName) && (x = {
1765
1782
  namespaceURI: At,
@@ -1776,7 +1793,7 @@ function Ks() {
1776
1793
  } catch {
1777
1794
  A(r);
1778
1795
  }
1779
- }, "_forceRemove"), xt = /* @__PURE__ */ d(function(r, x) {
1796
+ }, "_forceRemove"), bt = /* @__PURE__ */ d(function(r, x) {
1780
1797
  try {
1781
1798
  Mt(t.removed, {
1782
1799
  attribute: x.getAttributeNode(r),
@@ -1804,20 +1821,20 @@ function Ks() {
1804
1821
  if (ke)
1805
1822
  r = "<remove></remove>" + r;
1806
1823
  else {
1807
- const ce = ys(r, /^[\r\n\t ]+/);
1824
+ const ce = bs(r, /^[\r\n\t ]+/);
1808
1825
  z = ce && ce[0];
1809
1826
  }
1810
1827
  Ut === "application/xhtml+xml" && At === Je && (r = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + r + "</body></html>");
1811
1828
  const ne = B ? B.createHTML(r) : r;
1812
1829
  if (At === Je)
1813
1830
  try {
1814
- x = new b().parseFromString(ne, Ut);
1831
+ x = new y().parseFromString(ne, Ut);
1815
1832
  } catch {
1816
1833
  }
1817
1834
  if (!x || !x.documentElement) {
1818
1835
  x = ue.createDocument(At, "template", null);
1819
1836
  try {
1820
- x.documentElement.innerHTML = bn ? V : ne;
1837
+ x.documentElement.innerHTML = yn ? V : ne;
1821
1838
  } catch {
1822
1839
  }
1823
1840
  }
@@ -1843,7 +1860,7 @@ function Ks() {
1843
1860
  let z = x.nextNode();
1844
1861
  for (; z; ) {
1845
1862
  let ne = z.data;
1846
- Rt([st, Ye, at], (Y) => {
1863
+ Rt([at, Ye, it], (Y) => {
1847
1864
  ne = Ct(ne, Y, " ");
1848
1865
  }), z.data = ne, z = x.nextNode();
1849
1866
  }
@@ -1854,7 +1871,7 @@ function Ks() {
1854
1871
  // makes the direct read diverge from the cached read; a clean form
1855
1872
  // (same-realm OR foreign-realm) has both reads pointing at the same
1856
1873
  // canonical NamedNodeMap.
1857
- r.attributes !== $(r) || typeof r.removeAttribute != "function" || typeof r.setAttribute != "function" || typeof r.namespaceURI != "string" || typeof r.insertBefore != "function" || typeof r.hasChildNodes != "function" || // NodeType clobbering probe. Cached Node.prototype.nodeType getter
1874
+ r.attributes !== I(r) || typeof r.removeAttribute != "function" || typeof r.setAttribute != "function" || typeof r.namespaceURI != "string" || typeof r.insertBefore != "function" || typeof r.hasChildNodes != "function" || // NodeType clobbering probe. Cached Node.prototype.nodeType getter
1858
1875
  // returns the integer 1 for any Element regardless of realm; direct
1859
1876
  // read on a clobbered form (e.g. <input name="nodeType">) returns
1860
1877
  // the named child element. Cheap addition — nodeType is read from
@@ -1890,23 +1907,23 @@ function Ks() {
1890
1907
  return !1;
1891
1908
  }
1892
1909
  }, "_isNode");
1893
- function lt(F, r, x) {
1910
+ function ot(F, r, x) {
1894
1911
  Rt(F, (z) => {
1895
1912
  z.call(t, r, x, _t);
1896
1913
  });
1897
1914
  }
1898
- d(lt, "_executeHooks");
1915
+ d(ot, "_executeHooks");
1899
1916
  const rs = /* @__PURE__ */ d(function(r) {
1900
1917
  let x = null;
1901
- if (lt(se.beforeSanitizeElements, r, null), an(r))
1918
+ if (ot(se.beforeSanitizeElements, r, null), an(r))
1902
1919
  return We(r), !0;
1903
1920
  const z = fe(r.nodeName);
1904
- if (lt(se.uponSanitizeElement, r, {
1921
+ if (ot(se.uponSanitizeElement, r, {
1905
1922
  tagName: z,
1906
1923
  allowedTags: K
1907
- }), D && r.hasChildNodes() && !rn(r.firstElementChild) && we(/<[/\w!]/g, r.innerHTML) && we(/<[/\w!]/g, r.textContent) || D && r.namespaceURI === Je && z === "style" && rn(r.firstElementChild) || r.nodeType === et.progressingInstruction || D && r.nodeType === et.comment && we(/<[/\w]/g, r.data))
1924
+ }), L && r.hasChildNodes() && !rn(r.firstElementChild) && we(/<[/\w!]/g, r.innerHTML) && we(/<[/\w!]/g, r.textContent) || L && r.namespaceURI === Je && z === "style" && rn(r.firstElementChild) || r.nodeType === et.progressingInstruction || L && r.nodeType === et.comment && we(/<[/\w]/g, r.data))
1908
1925
  return We(r), !0;
1909
- if (Be[z] || !(be.tagCheck instanceof Function && be.tagCheck(z)) && !K[z]) {
1926
+ if (Be[z] || !(ye.tagCheck instanceof Function && ye.tagCheck(z)) && !K[z]) {
1910
1927
  if (!Be[z] && os(z) && (re.tagNameCheck instanceof RegExp && we(re.tagNameCheck, z) || re.tagNameCheck instanceof Function && re.tagNameCheck(z)))
1911
1928
  return !1;
1912
1929
  if (Fe && !m[z]) {
@@ -1921,18 +1938,18 @@ function Ks() {
1921
1938
  }
1922
1939
  return We(r), !0;
1923
1940
  }
1924
- return (N ? N(r) : r.nodeType) === et.element && !fa(r) || (z === "noscript" || z === "noembed" || z === "noframes") && we(/<\/no(script|embed|frames)/i, r.innerHTML) ? (We(r), !0) : (L && r.nodeType === et.text && (x = r.textContent, Rt([st, Ye, at], (Y) => {
1941
+ return (N ? N(r) : r.nodeType) === et.element && !fa(r) || (z === "noscript" || z === "noembed" || z === "noframes") && we(/<\/no(script|embed|frames)/i, r.innerHTML) ? (We(r), !0) : ($ && r.nodeType === et.text && (x = r.textContent, Rt([at, Ye, it], (Y) => {
1925
1942
  x = Ct(x, Y, " ");
1926
1943
  }), r.textContent !== x && (Mt(t.removed, {
1927
1944
  element: r.cloneNode()
1928
- }), r.textContent = x)), lt(se.afterSanitizeElements, r, null), !1);
1945
+ }), r.textContent = x)), ot(se.afterSanitizeElements, r, null), !1);
1929
1946
  }, "_sanitizeElements"), ls = /* @__PURE__ */ d(function(r, x, z) {
1930
- if (rt[x] || Ke && (x === "id" || x === "name") && (z in e || z in pa))
1947
+ if (lt[x] || Ke && (x === "id" || x === "name") && (z in e || z in pa))
1931
1948
  return !1;
1932
- const ne = ie[x] || be.attributeCheck instanceof Function && be.attributeCheck(x, r);
1933
- if (!(M && !rt[x] && we(Oe, x))) {
1934
- if (!(g && we(gt, x))) {
1935
- if (!ne || rt[x]) {
1949
+ const ne = ie[x] || ye.attributeCheck instanceof Function && ye.attributeCheck(x, r);
1950
+ if (!(M && !lt[x] && we(Oe, x))) {
1951
+ if (!(g && we(vt, x))) {
1952
+ if (!ne || lt[x]) {
1936
1953
  if (
1937
1954
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
1938
1955
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
@@ -1943,8 +1960,8 @@ function Ks() {
1943
1960
  ) return !1;
1944
1961
  } else if (!oe[x]) {
1945
1962
  if (!we(Ce, Ct(z, Me, ""))) {
1946
- if (!((x === "src" || x === "xlink:href" || x === "href") && r !== "script" && bs(z, "data:") === 0 && ae[r])) {
1947
- if (!(u && !we(vt, Ct(z, Me, "")))) {
1963
+ if (!((x === "src" || x === "xlink:href" || x === "href") && r !== "script" && ys(z, "data:") === 0 && ae[r])) {
1964
+ if (!(u && !we(xt, Ct(z, Me, "")))) {
1948
1965
  if (z)
1949
1966
  return !1;
1950
1967
  }
@@ -1955,9 +1972,9 @@ function Ks() {
1955
1972
  }
1956
1973
  return !0;
1957
1974
  }, "_isValidAttribute"), ma = G({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), os = /* @__PURE__ */ d(function(r) {
1958
- return !ma[Zt(r)] && we(it, r);
1975
+ return !ma[Zt(r)] && we(rt, r);
1959
1976
  }, "_isBasicCustomElement"), cs = /* @__PURE__ */ d(function(r) {
1960
- lt(se.beforeSanitizeAttributes, r, null);
1977
+ ot(se.beforeSanitizeAttributes, r, null);
1961
1978
  const x = r.attributes;
1962
1979
  if (!x || an(r))
1963
1980
  return;
@@ -1971,31 +1988,31 @@ function Ks() {
1971
1988
  let ne = x.length;
1972
1989
  for (; ne--; ) {
1973
1990
  const Y = x[ne], ce = Y.name, Ue = Y.namespaceURI, Qe = Y.value, Ge = fe(ce), An = Qe;
1974
- let xe = ce === "value" ? An : xi(An);
1975
- if (z.attrName = Ge, z.attrValue = xe, z.keepAttr = !0, z.forceKeepAttr = void 0, lt(se.uponSanitizeAttribute, r, z), xe = z.attrValue, je && (Ge === "id" || Ge === "name") && bs(xe, ze) !== 0 && (xt(ce, r), xe = ze + xe), D && we(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, xe)) {
1976
- xt(ce, r);
1991
+ let xe = ce === "value" ? An : bi(An);
1992
+ if (z.attrName = Ge, z.attrValue = xe, z.keepAttr = !0, z.forceKeepAttr = void 0, ot(se.uponSanitizeAttribute, r, z), xe = z.attrValue, je && (Ge === "id" || Ge === "name") && ys(xe, ze) !== 0 && (bt(ce, r), xe = ze + xe), L && we(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, xe)) {
1993
+ bt(ce, r);
1977
1994
  continue;
1978
1995
  }
1979
- if (Ge === "attributename" && ys(xe, "href")) {
1980
- xt(ce, r);
1996
+ if (Ge === "attributename" && bs(xe, "href")) {
1997
+ bt(ce, r);
1981
1998
  continue;
1982
1999
  }
1983
2000
  if (z.forceKeepAttr)
1984
2001
  continue;
1985
2002
  if (!z.keepAttr) {
1986
- xt(ce, r);
2003
+ bt(ce, r);
1987
2004
  continue;
1988
2005
  }
1989
2006
  if (!v && we(/\/>/i, xe)) {
1990
- xt(ce, r);
2007
+ bt(ce, r);
1991
2008
  continue;
1992
2009
  }
1993
- L && Rt([st, Ye, at], (ds) => {
2010
+ $ && Rt([at, Ye, it], (ds) => {
1994
2011
  xe = Ct(xe, ds, " ");
1995
2012
  });
1996
2013
  const us = fe(r.nodeName);
1997
2014
  if (!ls(us, Ge, xe)) {
1998
- xt(ce, r);
2015
+ bt(ce, r);
1999
2016
  continue;
2000
2017
  }
2001
2018
  if (B && typeof R == "object" && typeof R.getAttributeType == "function" && !Ue)
@@ -2013,23 +2030,23 @@ function Ks() {
2013
2030
  try {
2014
2031
  Ue ? r.setAttributeNS(Ue, ce, xe) : r.setAttribute(ce, xe), an(r) ? We(r) : xs(t.removed);
2015
2032
  } catch {
2016
- xt(ce, r);
2033
+ bt(ce, r);
2017
2034
  }
2018
2035
  }
2019
- lt(se.afterSanitizeAttributes, r, null);
2036
+ ot(se.afterSanitizeAttributes, r, null);
2020
2037
  }, "_sanitizeAttributes"), ln = /* @__PURE__ */ d(function(r) {
2021
2038
  let x = null;
2022
2039
  const z = as(r);
2023
- for (lt(se.beforeSanitizeShadowDOM, r, null); x = z.nextNode(); )
2024
- if (lt(se.uponSanitizeShadowNode, x, null), rs(x), cs(x), Ht(x.content) && ln(x.content), (N ? N(x) : x.nodeType) === et.element) {
2025
- const Y = I ? I(x) : x.shadowRoot;
2040
+ for (ot(se.beforeSanitizeShadowDOM, r, null); x = z.nextNode(); )
2041
+ if (ot(se.uponSanitizeShadowNode, x, null), rs(x), cs(x), Ht(x.content) && ln(x.content), (N ? N(x) : x.nodeType) === et.element) {
2042
+ const Y = C ? C(x) : x.shadowRoot;
2026
2043
  Ht(Y) && (Et(Y), ln(Y));
2027
2044
  }
2028
- lt(se.afterSanitizeShadowDOM, r, null);
2045
+ ot(se.afterSanitizeShadowDOM, r, null);
2029
2046
  }, "_sanitizeShadowDOM"), Et = /* @__PURE__ */ d(function(r) {
2030
2047
  const x = N ? N(r) : r.nodeType;
2031
2048
  if (x === et.element) {
2032
- const Y = I ? I(r) : r.shadowRoot;
2049
+ const Y = C ? C(r) : r.shadowRoot;
2033
2050
  Ht(Y) && (Et(Y), ln(Y));
2034
2051
  }
2035
2052
  const z = O ? O(r) : r.childNodes;
@@ -2051,7 +2068,7 @@ function Ks() {
2051
2068
  }, "_sanitizeAttachedShadowRoots");
2052
2069
  return t.sanitize = function(F) {
2053
2070
  let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, x = null, z = null, ne = null, Y = null;
2054
- if (bn = !F, bn && (F = "<!-->"), typeof F != "string" && !rn(F) && (F = Ti(F), typeof F != "string"))
2071
+ if (yn = !F, yn && (F = "<!-->"), typeof F != "string" && !rn(F) && (F = Si(F), typeof F != "string"))
2055
2072
  throw Gt("dirty is not a string, aborting");
2056
2073
  if (!t.isSupported)
2057
2074
  return F;
@@ -2068,7 +2085,7 @@ function Ks() {
2068
2085
  } else if (rn(F))
2069
2086
  x = ss("<!---->"), z = x.ownerDocument.importNode(F, !0), z.nodeType === et.element && z.nodeName === "BODY" || z.nodeName === "HTML" ? x = z : x.appendChild(z), Et(z);
2070
2087
  else {
2071
- if (!le && !L && !Q && // eslint-disable-next-line unicorn/prefer-includes
2088
+ if (!le && !$ && !Q && // eslint-disable-next-line unicorn/prefer-includes
2072
2089
  F.indexOf("<") === -1)
2073
2090
  return B && $e ? B.createHTML(F) : F;
2074
2091
  if (x = ss(F), !x)
@@ -2079,18 +2096,18 @@ function Ks() {
2079
2096
  for (; ne = ce.nextNode(); )
2080
2097
  rs(ne), cs(ne), Ht(ne.content) && ln(ne.content);
2081
2098
  if (Xe)
2082
- return L && is(F), F;
2099
+ return $ && is(F), F;
2083
2100
  if (le) {
2084
- if (L && is(x), de)
2101
+ if ($ && is(x), de)
2085
2102
  for (Y = Pe.call(x.ownerDocument); x.firstChild; )
2086
2103
  Y.appendChild(x.firstChild);
2087
2104
  else
2088
2105
  Y = x;
2089
- return (ie.shadowroot || ie.shadowrootmode) && (Y = De.call(n, Y, !0)), Y;
2106
+ return (ie.shadowroot || ie.shadowrootmode) && (Y = Le.call(n, Y, !0)), Y;
2090
2107
  }
2091
2108
  let Ue = Q ? x.outerHTML : x.innerHTML;
2092
- return Q && K["!doctype"] && x.ownerDocument && x.ownerDocument.doctype && x.ownerDocument.doctype.name && we(Di, x.ownerDocument.doctype.name) && (Ue = "<!DOCTYPE " + x.ownerDocument.doctype.name + `>
2093
- ` + Ue), L && Rt([st, Ye, at], (Qe) => {
2109
+ return Q && K["!doctype"] && x.ownerDocument && x.ownerDocument.doctype && x.ownerDocument.doctype.name && we(Oi, x.ownerDocument.doctype.name) && (Ue = "<!DOCTYPE " + x.ownerDocument.doctype.name + `>
2110
+ ` + Ue), $ && Rt([at, Ye, it], (Qe) => {
2094
2111
  Ue = Ct(Ue, Qe, " ");
2095
2112
  }), B && $e ? B.createHTML(Ue) : Ue;
2096
2113
  }, t.setConfig = function() {
@@ -2106,8 +2123,8 @@ function Ks() {
2106
2123
  typeof r == "function" && Mt(se[F], r);
2107
2124
  }, t.removeHook = function(F, r) {
2108
2125
  if (r !== void 0) {
2109
- const x = gi(se[F], r);
2110
- return x === -1 ? void 0 : vi(se[F], x, 1)[0];
2126
+ const x = vi(se[F], r);
2127
+ return x === -1 ? void 0 : xi(se[F], x, 1)[0];
2111
2128
  }
2112
2129
  return xs(se[F]);
2113
2130
  }, t.removeHooks = function(F) {
@@ -2117,7 +2134,7 @@ function Ks() {
2117
2134
  }, t;
2118
2135
  }
2119
2136
  d(Ks, "createDOMPurify");
2120
- var Pi = Ks();
2137
+ var Bi = Ks();
2121
2138
  function jn() {
2122
2139
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
2123
2140
  }
@@ -2127,7 +2144,7 @@ function Xs(a) {
2127
2144
  Tt = a;
2128
2145
  }
2129
2146
  d(Xs, "N");
2130
- var bt = { exec: /* @__PURE__ */ d(() => null, "exec") };
2147
+ var kt = { exec: /* @__PURE__ */ d(() => null, "exec") };
2131
2148
  function It(a) {
2132
2149
  let t = [];
2133
2150
  return (e) => {
@@ -2144,14 +2161,14 @@ function X(a, t = "") {
2144
2161
  return n;
2145
2162
  }
2146
2163
  d(X, "d");
2147
- var Bi = ((a = "") => {
2164
+ var Fi = ((a = "") => {
2148
2165
  try {
2149
2166
  return !!new RegExp("(?<=1)(?<!1)" + a);
2150
2167
  } catch {
2151
2168
  return !1;
2152
2169
  }
2153
- })(), Se = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ d((a) => new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: It((a) => new RegExp(`^ {0,${a}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: It((a) => new RegExp(`^ {0,${a}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: It((a) => new RegExp(`^ {0,${a}}(?:\`\`\`|~~~)`)), headingBeginRegex: It((a) => new RegExp(`^ {0,${a}}#`)), htmlBeginRegex: It((a) => new RegExp(`^ {0,${a}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: It((a) => new RegExp(`^ {0,${a}}>`)) }, Fi = /^(?:[ \t]*(?:\n|$))+/, Ui = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Hi = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, nn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ji = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Wn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Zs = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Js = X(Zs).replace(/bull/g, Wn).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(), Wi = X(Zs).replace(/bull/g, Wn).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(), Gn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Gi = /^[^\n]+/, Vn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Vi = X(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Vn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), qi = X(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, Wn).getRegex(), xn = "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", qn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Yi = X("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\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", qn).replace("tag", xn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Qs = X(Gn).replace("hr", nn).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", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", xn).getRegex(), Ki = X(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Qs).getRegex(), Yn = { blockquote: Ki, code: Ui, def: Vi, fences: Hi, heading: ji, hr: nn, html: Yi, lheading: Js, list: qi, newline: Fi, paragraph: Qs, table: bt, text: Gi }, Ms = X("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", nn).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", xn).getRegex(), Xi = { ...Yn, lheading: Wi, table: Ms, paragraph: X(Gn).replace("hr", nn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ms).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", xn).getRegex() }, Zi = { ...Yn, html: X(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", qn).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(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: bt, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: X(Gn).replace("hr", nn).replace("heading", ` *#{1,6} *[^
2154
- ]`).replace("lheading", Js).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ji = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Qi = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ea = /^( {2,}|\\)\n(?!\s*$)/, er = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Ft = /[\p{P}\p{S}]/u, yn = /[\s\p{P}\p{S}]/u, Kn = /[^\s\p{P}\p{S}]/u, tr = X(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, yn).getRegex(), ta = /(?!~)[\p{P}\p{S}]/u, nr = /(?!~)[\s\p{P}\p{S}]/u, sr = /(?:[^\s\p{P}\p{S}]|~)/u, ar = X(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Bi ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), na = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ir = X(na, "u").replace(/punct/g, Ft).getRegex(), rr = X(na, "u").replace(/punct/g, ta).getRegex(), sa = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", lr = X(sa, "gu").replace(/notPunctSpace/g, Kn).replace(/punctSpace/g, yn).replace(/punct/g, Ft).getRegex(), or = X(sa, "gu").replace(/notPunctSpace/g, sr).replace(/punctSpace/g, nr).replace(/punct/g, ta).getRegex(), cr = X("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Kn).replace(/punctSpace/g, yn).replace(/punct/g, Ft).getRegex(), ur = X(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Ft).getRegex(), dr = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", hr = X(dr, "gu").replace(/notPunctSpace/g, Kn).replace(/punctSpace/g, yn).replace(/punct/g, Ft).getRegex(), pr = X(/\\(punct)/, "gu").replace(/punct/g, Ft).getRegex(), fr = X(/^<(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(), mr = X(qn).replace("(?:-->|$)", "-->").getRegex(), gr = X("^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", mr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), fn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, vr = X(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", fn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), aa = X(/^!?\[(label)\]\[(ref)\]/).replace("label", fn).replace("ref", Vn).getRegex(), ia = X(/^!?\[(ref)\](?:\[\])?/).replace("ref", Vn).getRegex(), xr = X("reflink|nolink(?!\\()", "g").replace("reflink", aa).replace("nolink", ia).getRegex(), Cs = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Xn = { _backpedal: bt, anyPunctuation: pr, autolink: fr, blockSkip: ar, br: ea, code: Qi, del: bt, delLDelim: bt, delRDelim: bt, emStrongLDelim: ir, emStrongRDelimAst: lr, emStrongRDelimUnd: cr, escape: Ji, link: vr, nolink: ia, punctuation: tr, reflink: aa, reflinkSearch: xr, tag: gr, text: er, url: bt }, yr = { ...Xn, link: X(/^!?\[(label)\]\((.*?)\)/).replace("label", fn).getRegex(), reflink: X(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", fn).getRegex() }, Un = { ...Xn, emStrongRDelimAst: or, emStrongLDelim: rr, delLDelim: ur, delRDelim: hr, url: X(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Cs).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: X(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Cs).getRegex() }, br = { ...Un, br: X(ea).replace("{2,}", "*").getRegex(), text: X(Un.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, un = { normal: Yn, gfm: Xi, pedantic: Zi }, Vt = { normal: Xn, gfm: Un, breaks: br, pedantic: yr }, kr = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Is = /* @__PURE__ */ d((a) => kr[a], "ge");
2170
+ })(), Se = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ d((a) => new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: It((a) => new RegExp(`^ {0,${a}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: It((a) => new RegExp(`^ {0,${a}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: It((a) => new RegExp(`^ {0,${a}}(?:\`\`\`|~~~)`)), headingBeginRegex: It((a) => new RegExp(`^ {0,${a}}#`)), htmlBeginRegex: It((a) => new RegExp(`^ {0,${a}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: It((a) => new RegExp(`^ {0,${a}}>`)) }, Ui = /^(?:[ \t]*(?:\n|$))+/, Hi = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ji = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, nn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Wi = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Wn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Zs = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Js = X(Zs).replace(/bull/g, Wn).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(), Gi = X(Zs).replace(/bull/g, Wn).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(), Gn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Vi = /^[^\n]+/, Vn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, qi = X(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Vn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Yi = X(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, Wn).getRegex(), xn = "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", qn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ki = X("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\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", qn).replace("tag", xn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Qs = X(Gn).replace("hr", nn).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", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", xn).getRegex(), Xi = X(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Qs).getRegex(), Yn = { blockquote: Xi, code: Hi, def: qi, fences: ji, heading: Wi, hr: nn, html: Ki, lheading: Js, list: Yi, newline: Ui, paragraph: Qs, table: kt, text: Vi }, Ms = X("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", nn).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", xn).getRegex(), Zi = { ...Yn, lheading: Gi, table: Ms, paragraph: X(Gn).replace("hr", nn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ms).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", xn).getRegex() }, Ji = { ...Yn, html: X(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", qn).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(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: kt, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: X(Gn).replace("hr", nn).replace("heading", ` *#{1,6} *[^
2171
+ ]`).replace("lheading", Js).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Qi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, er = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ea = /^( {2,}|\\)\n(?!\s*$)/, tr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Ft = /[\p{P}\p{S}]/u, bn = /[\s\p{P}\p{S}]/u, Kn = /[^\s\p{P}\p{S}]/u, nr = X(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, bn).getRegex(), ta = /(?!~)[\p{P}\p{S}]/u, sr = /(?!~)[\s\p{P}\p{S}]/u, ar = /(?:[^\s\p{P}\p{S}]|~)/u, ir = X(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Fi ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), na = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, rr = X(na, "u").replace(/punct/g, Ft).getRegex(), lr = X(na, "u").replace(/punct/g, ta).getRegex(), sa = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", or = X(sa, "gu").replace(/notPunctSpace/g, Kn).replace(/punctSpace/g, bn).replace(/punct/g, Ft).getRegex(), cr = X(sa, "gu").replace(/notPunctSpace/g, ar).replace(/punctSpace/g, sr).replace(/punct/g, ta).getRegex(), ur = X("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Kn).replace(/punctSpace/g, bn).replace(/punct/g, Ft).getRegex(), dr = X(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Ft).getRegex(), hr = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", pr = X(hr, "gu").replace(/notPunctSpace/g, Kn).replace(/punctSpace/g, bn).replace(/punct/g, Ft).getRegex(), fr = X(/\\(punct)/, "gu").replace(/punct/g, Ft).getRegex(), mr = X(/^<(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(), gr = X(qn).replace("(?:-->|$)", "-->").getRegex(), vr = X("^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", gr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), fn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, xr = X(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", fn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), aa = X(/^!?\[(label)\]\[(ref)\]/).replace("label", fn).replace("ref", Vn).getRegex(), ia = X(/^!?\[(ref)\](?:\[\])?/).replace("ref", Vn).getRegex(), br = X("reflink|nolink(?!\\()", "g").replace("reflink", aa).replace("nolink", ia).getRegex(), Cs = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Xn = { _backpedal: kt, anyPunctuation: fr, autolink: mr, blockSkip: ir, br: ea, code: er, del: kt, delLDelim: kt, delRDelim: kt, emStrongLDelim: rr, emStrongRDelimAst: or, emStrongRDelimUnd: ur, escape: Qi, link: xr, nolink: ia, punctuation: nr, reflink: aa, reflinkSearch: br, tag: vr, text: tr, url: kt }, yr = { ...Xn, link: X(/^!?\[(label)\]\((.*?)\)/).replace("label", fn).getRegex(), reflink: X(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", fn).getRegex() }, Un = { ...Xn, emStrongRDelimAst: cr, emStrongLDelim: lr, delLDelim: dr, delRDelim: pr, url: X(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Cs).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: X(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Cs).getRegex() }, kr = { ...Un, br: X(ea).replace("{2,}", "*").getRegex(), text: X(Un.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, un = { normal: Yn, gfm: Zi, pedantic: Ji }, Vt = { normal: Xn, gfm: Un, breaks: kr, pedantic: yr }, wr = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Is = /* @__PURE__ */ d((a) => wr[a], "ge");
2155
2172
  function nt(a, t) {
2156
2173
  if (t) {
2157
2174
  if (Se.escapeTest.test(a)) return a.replace(Se.escapeReplace, Is);
@@ -2168,7 +2185,7 @@ function $s(a) {
2168
2185
  return a;
2169
2186
  }
2170
2187
  d($s, "V");
2171
- function Ls(a, t) {
2188
+ function Ds(a, t) {
2172
2189
  let e = a.replace(Se.findPipe, (s, l, o) => {
2173
2190
  let p = !1, c = l;
2174
2191
  for (; --c >= 0 && o[c] === "\\"; ) p = !p;
@@ -2179,7 +2196,7 @@ function Ls(a, t) {
2179
2196
  for (; i < n.length; i++) n[i] = n[i].trim().replace(Se.slashPipe, "|");
2180
2197
  return n;
2181
2198
  }
2182
- d(Ls, "Y");
2199
+ d(Ds, "Y");
2183
2200
  function ut(a, t, e) {
2184
2201
  let n = a.length;
2185
2202
  if (n === 0) return "";
@@ -2189,15 +2206,15 @@ function ut(a, t, e) {
2189
2206
  return a.slice(0, n - i);
2190
2207
  }
2191
2208
  d(ut, "$");
2192
- function Ds(a) {
2209
+ function Ls(a) {
2193
2210
  let t = a.split(`
2194
2211
  `), e = t.length - 1;
2195
2212
  for (; e >= 0 && Se.blankLine.test(t[e]); ) e--;
2196
2213
  return t.length - e <= 2 ? a : t.slice(0, e + 1).join(`
2197
2214
  `);
2198
2215
  }
2199
- d(Ds, "ee");
2200
- function wr(a, t) {
2216
+ d(Ls, "ee");
2217
+ function Tr(a, t) {
2201
2218
  if (a.indexOf(t[1]) === -1) return -1;
2202
2219
  let e = 0;
2203
2220
  for (let n = 0; n < a.length; n++) if (a[n] === "\\") n++;
@@ -2205,8 +2222,8 @@ function wr(a, t) {
2205
2222
  else if (a[n] === t[1] && (e--, e < 0)) return n;
2206
2223
  return e > 0 ? -2 : -1;
2207
2224
  }
2208
- d(wr, "fe");
2209
- function Tr(a, t = 0) {
2225
+ d(Tr, "fe");
2226
+ function Sr(a, t = 0) {
2210
2227
  let e = t, n = "";
2211
2228
  for (let i of a) if (i === " ") {
2212
2229
  let s = 4 - e % 4;
@@ -2214,7 +2231,7 @@ function Tr(a, t = 0) {
2214
2231
  } else n += i, e++;
2215
2232
  return n;
2216
2233
  }
2217
- d(Tr, "me");
2234
+ d(Sr, "me");
2218
2235
  function Os(a, t, e, n, i) {
2219
2236
  let s = t.href, l = t.title || null, o = a[1].replace(i.other.outputLinkReplace, "$1");
2220
2237
  n.state.inLink = !0;
@@ -2222,7 +2239,7 @@ function Os(a, t, e, n, i) {
2222
2239
  return n.state.inLink = !1, p;
2223
2240
  }
2224
2241
  d(Os, "xe");
2225
- function Sr(a, t, e) {
2242
+ function Ar(a, t, e) {
2226
2243
  let n = a.match(e.other.indentCodeCompensation);
2227
2244
  if (n === null) return t;
2228
2245
  let i = n[1];
@@ -2235,7 +2252,7 @@ function Sr(a, t, e) {
2235
2252
  }).join(`
2236
2253
  `);
2237
2254
  }
2238
- d(Sr, "st");
2255
+ d(Ar, "st");
2239
2256
  var zt, mn = (zt = class {
2240
2257
  constructor(t) {
2241
2258
  P(this, "options");
@@ -2250,14 +2267,14 @@ var zt, mn = (zt = class {
2250
2267
  code(t) {
2251
2268
  let e = this.rules.block.code.exec(t);
2252
2269
  if (e) {
2253
- let n = this.options.pedantic ? e[0] : Ds(e[0]), i = n.replace(this.rules.other.codeRemoveIndent, "");
2270
+ let n = this.options.pedantic ? e[0] : Ls(e[0]), i = n.replace(this.rules.other.codeRemoveIndent, "");
2254
2271
  return { type: "code", raw: n, codeBlockStyle: "indented", text: i };
2255
2272
  }
2256
2273
  }
2257
2274
  fences(t) {
2258
2275
  let e = this.rules.block.fences.exec(t);
2259
2276
  if (e) {
2260
- let n = e[0], i = Sr(n, e[3] || "", this.rules);
2277
+ let n = e[0], i = Ar(n, e[3] || "", this.rules);
2261
2278
  return { type: "code", raw: n, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: i };
2262
2279
  }
2263
2280
  }
@@ -2290,14 +2307,14 @@ var zt, mn = (zt = class {
2290
2307
  else if (!o) p.push(n[c]);
2291
2308
  else break;
2292
2309
  n = n.slice(c);
2293
- let b = p.join(`
2294
- `), R = b.replace(this.rules.other.blockquoteSetextReplace, `
2310
+ let y = p.join(`
2311
+ `), R = y.replace(this.rules.other.blockquoteSetextReplace, `
2295
2312
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
2296
2313
  i = i ? `${i}
2297
- ${b}` : b, s = s ? `${s}
2314
+ ${y}` : y, s = s ? `${s}
2298
2315
  ${R}` : R;
2299
- let y = this.lexer.state.top;
2300
- if (this.lexer.state.top = !0, this.lexer.blockTokens(R, l, !0), this.lexer.state.top = y, n.length === 0) break;
2316
+ let b = this.lexer.state.top;
2317
+ if (this.lexer.state.top = !0, this.lexer.blockTokens(R, l, !0), this.lexer.state.top = b, n.length === 0) break;
2301
2318
  let k = l.at(-1);
2302
2319
  if (k?.type === "code") break;
2303
2320
  if (k?.type === "blockquote") {
@@ -2325,31 +2342,31 @@ ${R}` : R;
2325
2342
  n = i ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = i ? n : "[*+-]");
2326
2343
  let l = this.rules.other.listItemRegex(n), o = !1;
2327
2344
  for (; t; ) {
2328
- let c = !1, b = "", R = "";
2345
+ let c = !1, y = "", R = "";
2329
2346
  if (!(e = l.exec(t)) || this.rules.block.hr.test(t)) break;
2330
- b = e[0], t = t.substring(b.length);
2331
- let y = Tr(e[2].split(`
2347
+ y = e[0], t = t.substring(y.length);
2348
+ let b = Sr(e[2].split(`
2332
2349
  `, 1)[0], e[1].length), k = t.split(`
2333
- `, 1)[0], A = !y.trim(), E = 0;
2334
- if (this.options.pedantic ? (E = 2, R = y.trimStart()) : A ? E = e[1].length + 1 : (E = y.search(this.rules.other.nonSpaceChar), E = E > 4 ? 1 : E, R = y.slice(E), E += e[1].length), A && this.rules.other.blankLine.test(k) && (b += k + `
2350
+ `, 1)[0], A = !b.trim(), E = 0;
2351
+ if (this.options.pedantic ? (E = 2, R = b.trimStart()) : A ? E = e[1].length + 1 : (E = b.search(this.rules.other.nonSpaceChar), E = E > 4 ? 1 : E, R = b.slice(E), E += e[1].length), A && this.rules.other.blankLine.test(k) && (y += k + `
2335
2352
  `, t = t.substring(k.length + 1), c = !0), !c) {
2336
- let O = this.rules.other.nextBulletRegex(E), Z = this.rules.other.hrRegex(E), I = this.rules.other.fencesBeginRegex(E), $ = this.rules.other.headingBeginRegex(E), N = this.rules.other.htmlBeginRegex(E), W = this.rules.other.blockquoteBeginRegex(E);
2353
+ let O = this.rules.other.nextBulletRegex(E), Z = this.rules.other.hrRegex(E), C = this.rules.other.fencesBeginRegex(E), I = this.rules.other.headingBeginRegex(E), N = this.rules.other.htmlBeginRegex(E), W = this.rules.other.blockquoteBeginRegex(E);
2337
2354
  for (; t; ) {
2338
2355
  let B = t.split(`
2339
2356
  `, 1)[0], V;
2340
- if (k = B, this.options.pedantic ? (k = k.replace(this.rules.other.listReplaceNesting, " "), V = k) : V = k.replace(this.rules.other.tabCharGlobal, " "), I.test(k) || $.test(k) || N.test(k) || W.test(k) || O.test(k) || Z.test(k)) break;
2357
+ if (k = B, this.options.pedantic ? (k = k.replace(this.rules.other.listReplaceNesting, " "), V = k) : V = k.replace(this.rules.other.tabCharGlobal, " "), C.test(k) || I.test(k) || N.test(k) || W.test(k) || O.test(k) || Z.test(k)) break;
2341
2358
  if (V.search(this.rules.other.nonSpaceChar) >= E || !k.trim()) R += `
2342
2359
  ` + V.slice(E);
2343
2360
  else {
2344
- if (A || y.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || I.test(y) || $.test(y) || Z.test(y)) break;
2361
+ if (A || b.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || C.test(b) || I.test(b) || Z.test(b)) break;
2345
2362
  R += `
2346
2363
  ` + k;
2347
2364
  }
2348
- A = !k.trim(), b += B + `
2349
- `, t = t.substring(B.length + 1), y = V.slice(E);
2365
+ A = !k.trim(), y += B + `
2366
+ `, t = t.substring(B.length + 1), b = V.slice(E);
2350
2367
  }
2351
2368
  }
2352
- s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(b) && (o = !0)), s.items.push({ type: "list_item", raw: b, task: !!this.options.gfm && this.rules.other.listIsTask.test(R), loose: !1, text: R, tokens: [] }), s.raw += b;
2369
+ s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(y) && (o = !0)), s.items.push({ type: "list_item", raw: y, task: !!this.options.gfm && this.rules.other.listIsTask.test(R), loose: !1, text: R, tokens: [] }), s.raw += y;
2353
2370
  }
2354
2371
  let p = s.items.at(-1);
2355
2372
  if (p) p.raw = p.raw.trimEnd(), p.text = p.text.trimEnd();
@@ -2357,27 +2374,27 @@ ${R}` : R;
2357
2374
  s.raw = s.raw.trimEnd();
2358
2375
  for (let c of s.items) {
2359
2376
  this.lexer.state.top = !1, c.tokens = this.lexer.blockTokens(c.text, []);
2360
- let b = c.tokens[0];
2361
- if (c.task && (b?.type === "text" || b?.type === "paragraph")) {
2362
- c.text = c.text.replace(this.rules.other.listReplaceTask, ""), b.raw = b.raw.replace(this.rules.other.listReplaceTask, ""), b.text = b.text.replace(this.rules.other.listReplaceTask, "");
2363
- for (let y = this.lexer.inlineQueue.length - 1; y >= 0; y--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[y].src)) {
2364
- this.lexer.inlineQueue[y].src = this.lexer.inlineQueue[y].src.replace(this.rules.other.listReplaceTask, "");
2377
+ let y = c.tokens[0];
2378
+ if (c.task && (y?.type === "text" || y?.type === "paragraph")) {
2379
+ c.text = c.text.replace(this.rules.other.listReplaceTask, ""), y.raw = y.raw.replace(this.rules.other.listReplaceTask, ""), y.text = y.text.replace(this.rules.other.listReplaceTask, "");
2380
+ for (let b = this.lexer.inlineQueue.length - 1; b >= 0; b--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[b].src)) {
2381
+ this.lexer.inlineQueue[b].src = this.lexer.inlineQueue[b].src.replace(this.rules.other.listReplaceTask, "");
2365
2382
  break;
2366
2383
  }
2367
2384
  let R = this.rules.other.listTaskCheckbox.exec(c.raw);
2368
2385
  if (R) {
2369
- let y = { type: "checkbox", raw: R[0] + " ", checked: R[0] !== "[ ]" };
2370
- c.checked = y.checked, s.loose ? c.tokens[0] && ["paragraph", "text"].includes(c.tokens[0].type) && "tokens" in c.tokens[0] && c.tokens[0].tokens ? (c.tokens[0].raw = y.raw + c.tokens[0].raw, c.tokens[0].text = y.raw + c.tokens[0].text, c.tokens[0].tokens.unshift(y)) : c.tokens.unshift({ type: "paragraph", raw: y.raw, text: y.raw, tokens: [y] }) : c.tokens.unshift(y);
2386
+ let b = { type: "checkbox", raw: R[0] + " ", checked: R[0] !== "[ ]" };
2387
+ c.checked = b.checked, s.loose ? c.tokens[0] && ["paragraph", "text"].includes(c.tokens[0].type) && "tokens" in c.tokens[0] && c.tokens[0].tokens ? (c.tokens[0].raw = b.raw + c.tokens[0].raw, c.tokens[0].text = b.raw + c.tokens[0].text, c.tokens[0].tokens.unshift(b)) : c.tokens.unshift({ type: "paragraph", raw: b.raw, text: b.raw, tokens: [b] }) : c.tokens.unshift(b);
2371
2388
  }
2372
2389
  } else c.task && (c.task = !1);
2373
2390
  if (!s.loose) {
2374
- let R = c.tokens.filter((k) => k.type === "space"), y = R.length > 0 && R.some((k) => this.rules.other.anyLine.test(k.raw));
2375
- s.loose = y;
2391
+ let R = c.tokens.filter((k) => k.type === "space"), b = R.length > 0 && R.some((k) => this.rules.other.anyLine.test(k.raw));
2392
+ s.loose = b;
2376
2393
  }
2377
2394
  }
2378
2395
  if (s.loose) for (let c of s.items) {
2379
2396
  c.loose = !0;
2380
- for (let b of c.tokens) b.type === "text" && (b.type = "paragraph");
2397
+ for (let y of c.tokens) y.type === "text" && (y.type = "paragraph");
2381
2398
  }
2382
2399
  return s;
2383
2400
  }
@@ -2385,7 +2402,7 @@ ${R}` : R;
2385
2402
  html(t) {
2386
2403
  let e = this.rules.block.html.exec(t);
2387
2404
  if (e) {
2388
- let n = Ds(e[0]);
2405
+ let n = Ls(e[0]);
2389
2406
  return { type: "html", block: !0, raw: n, pre: e[1] === "pre" || e[1] === "script" || e[1] === "style", text: n };
2390
2407
  }
2391
2408
  }
@@ -2400,13 +2417,13 @@ ${R}` : R;
2400
2417
  table(t) {
2401
2418
  let e = this.rules.block.table.exec(t);
2402
2419
  if (!e || !this.rules.other.tableDelimiter.test(e[2])) return;
2403
- let n = Ls(e[1]), i = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), s = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
2420
+ let n = Ds(e[1]), i = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), s = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
2404
2421
  `) : [], l = { type: "table", raw: ut(e[0], `
2405
2422
  `), header: [], align: [], rows: [] };
2406
2423
  if (n.length === i.length) {
2407
2424
  for (let o of i) this.rules.other.tableAlignRight.test(o) ? l.align.push("right") : this.rules.other.tableAlignCenter.test(o) ? l.align.push("center") : this.rules.other.tableAlignLeft.test(o) ? l.align.push("left") : l.align.push(null);
2408
2425
  for (let o = 0; o < n.length; o++) l.header.push({ text: n[o], tokens: this.lexer.inline(n[o]), header: !0, align: l.align[o] });
2409
- for (let o of s) l.rows.push(Ls(o, l.header.length).map((p, c) => ({ text: p, tokens: this.lexer.inline(p), header: !1, align: l.align[c] })));
2426
+ for (let o of s) l.rows.push(Ds(o, l.header.length).map((p, c) => ({ text: p, tokens: this.lexer.inline(p), header: !1, align: l.align[c] })));
2410
2427
  return l;
2411
2428
  }
2412
2429
  }
@@ -2447,7 +2464,7 @@ ${R}` : R;
2447
2464
  let l = ut(n.slice(0, -1), "\\");
2448
2465
  if ((n.length - l.length) % 2 === 0) return;
2449
2466
  } else {
2450
- let l = wr(e[2], "()");
2467
+ let l = Tr(e[2], "()");
2451
2468
  if (l === -2) return;
2452
2469
  if (l > -1) {
2453
2470
  let o = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + l;
@@ -2476,8 +2493,8 @@ ${R}` : R;
2476
2493
  emStrong(t, e, n = "") {
2477
2494
  let i = this.rules.inline.emStrongLDelim.exec(t);
2478
2495
  if (!(!i || !i[1] && !i[2] && !i[3] && !i[4] || i[4] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(i[1] || i[3]) || !n || this.rules.inline.punctuation.exec(n))) {
2479
- let s = [...i[0]].length - 1, l, o, p = s, c = 0, b = i[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
2480
- for (b.lastIndex = 0, e = e.slice(-1 * t.length + s); (i = b.exec(e)) !== null; ) {
2496
+ let s = [...i[0]].length - 1, l, o, p = s, c = 0, y = i[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
2497
+ for (y.lastIndex = 0, e = e.slice(-1 * t.length + s); (i = y.exec(e)) !== null; ) {
2481
2498
  if (l = i[1] || i[2] || i[3] || i[4] || i[5] || i[6], !l) continue;
2482
2499
  if (o = [...l].length, i[3] || i[4]) {
2483
2500
  p += o;
@@ -2488,13 +2505,13 @@ ${R}` : R;
2488
2505
  }
2489
2506
  if (p -= o, p > 0) continue;
2490
2507
  o = Math.min(o, o + p + c);
2491
- let R = [...i[0]][0].length, y = t.slice(0, s + i.index + R + o);
2508
+ let R = [...i[0]][0].length, b = t.slice(0, s + i.index + R + o);
2492
2509
  if (Math.min(s, o) % 2) {
2493
- let A = y.slice(1, -1);
2494
- return { type: "em", raw: y, text: A, tokens: this.lexer.inlineTokens(A) };
2510
+ let A = b.slice(1, -1);
2511
+ return { type: "em", raw: b, text: A, tokens: this.lexer.inlineTokens(A) };
2495
2512
  }
2496
- let k = y.slice(2, -2);
2497
- return { type: "strong", raw: y, text: k, tokens: this.lexer.inlineTokens(k) };
2513
+ let k = b.slice(2, -2);
2514
+ return { type: "strong", raw: b, text: k, tokens: this.lexer.inlineTokens(k) };
2498
2515
  }
2499
2516
  }
2500
2517
  }
@@ -2521,8 +2538,8 @@ ${R}` : R;
2521
2538
  }
2522
2539
  if (p -= o, p > 0) continue;
2523
2540
  o = Math.min(o, o + p);
2524
- let b = [...i[0]][0].length, R = t.slice(0, s + i.index + b + o), y = R.slice(s, -s);
2525
- return { type: "del", raw: R, text: y, tokens: this.lexer.inlineTokens(y) };
2541
+ let y = [...i[0]][0].length, R = t.slice(0, s + i.index + y + o), b = R.slice(s, -s);
2542
+ return { type: "del", raw: R, text: b, tokens: this.lexer.inlineTokens(b) };
2526
2543
  }
2527
2544
  }
2528
2545
  }
@@ -2655,8 +2672,8 @@ ${R}` : R;
2655
2672
  let l = t;
2656
2673
  if (this.options.extensions?.startBlock) {
2657
2674
  let o = 1 / 0, p = t.slice(1), c;
2658
- this.options.extensions.startBlock.forEach((b) => {
2659
- c = b.call({ lexer: this }, p), typeof c == "number" && c >= 0 && (o = Math.min(o, c));
2675
+ this.options.extensions.startBlock.forEach((y) => {
2676
+ c = y.call({ lexer: this }, p), typeof c == "number" && c >= 0 && (o = Math.min(o, c));
2660
2677
  }), o < 1 / 0 && o >= 0 && (l = t.substring(0, o + 1));
2661
2678
  }
2662
2679
  if (this.state.top && (s = this.tokenizer.paragraph(l))) {
@@ -2749,14 +2766,14 @@ ${R}` : R;
2749
2766
  t = t.substring(c.raw.length), e.push(c);
2750
2767
  continue;
2751
2768
  }
2752
- let b = t;
2769
+ let y = t;
2753
2770
  if (this.options.extensions?.startInline) {
2754
- let R = 1 / 0, y = t.slice(1), k;
2771
+ let R = 1 / 0, b = t.slice(1), k;
2755
2772
  this.options.extensions.startInline.forEach((A) => {
2756
- k = A.call({ lexer: this }, y), typeof k == "number" && k >= 0 && (R = Math.min(R, k));
2757
- }), R < 1 / 0 && R >= 0 && (b = t.substring(0, R + 1));
2773
+ k = A.call({ lexer: this }, b), typeof k == "number" && k >= 0 && (R = Math.min(R, k));
2774
+ }), R < 1 / 0 && R >= 0 && (y = t.substring(0, R + 1));
2758
2775
  }
2759
- if (c = this.tokenizer.inlineText(b)) {
2776
+ if (c = this.tokenizer.inlineText(y)) {
2760
2777
  t = t.substring(c.raw.length), c.raw.slice(-1) !== "_" && (o = c.raw.slice(-1)), l = !0;
2761
2778
  let R = e.at(-1);
2762
2779
  R?.type === "text" ? (R.raw += c.raw, R.text += c.text) : e.push(c);
@@ -3097,7 +3114,7 @@ ${t}</tr>
3097
3114
  provideParser(t = this.block) {
3098
3115
  return t ? qe.parse : qe.parseInline;
3099
3116
  }
3100
- }, d(pt, "P"), P(pt, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), P(pt, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), pt), Bt, Ar = (Bt = class {
3117
+ }, d(pt, "P"), P(pt, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), P(pt, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), pt), Bt, _r = (Bt = class {
3101
3118
  constructor(...t) {
3102
3119
  P(this, "defaults", jn());
3103
3120
  P(this, "options", this.setOptions);
@@ -3160,9 +3177,9 @@ ${t}</tr>
3160
3177
  if (!(l in s)) throw new Error(`renderer '${l}' does not exist`);
3161
3178
  if (["options", "parser"].includes(l)) continue;
3162
3179
  let o = l, p = n.renderer[o], c = s[o];
3163
- s[o] = (...b) => {
3164
- let R = p.apply(s, b);
3165
- return R === !1 && (R = c.apply(s, b)), R || "";
3180
+ s[o] = (...y) => {
3181
+ let R = p.apply(s, y);
3182
+ return R === !1 && (R = c.apply(s, y)), R || "";
3166
3183
  };
3167
3184
  }
3168
3185
  i.renderer = s;
@@ -3173,9 +3190,9 @@ ${t}</tr>
3173
3190
  if (!(l in s)) throw new Error(`tokenizer '${l}' does not exist`);
3174
3191
  if (["options", "rules", "lexer"].includes(l)) continue;
3175
3192
  let o = l, p = n.tokenizer[o], c = s[o];
3176
- s[o] = (...b) => {
3177
- let R = p.apply(s, b);
3178
- return R === !1 && (R = c.apply(s, b)), R;
3193
+ s[o] = (...y) => {
3194
+ let R = p.apply(s, y);
3195
+ return R === !1 && (R = c.apply(s, y)), R;
3179
3196
  };
3180
3197
  }
3181
3198
  i.tokenizer = s;
@@ -3186,20 +3203,20 @@ ${t}</tr>
3186
3203
  if (!(l in s)) throw new Error(`hook '${l}' does not exist`);
3187
3204
  if (["options", "block"].includes(l)) continue;
3188
3205
  let o = l, p = n.hooks[o], c = s[o];
3189
- Jt.passThroughHooks.has(l) ? s[o] = (b) => {
3206
+ Jt.passThroughHooks.has(l) ? s[o] = (y) => {
3190
3207
  if (this.defaults.async && Jt.passThroughHooksRespectAsync.has(l)) return (async () => {
3191
- let y = await p.call(s, b);
3192
- return c.call(s, y);
3208
+ let b = await p.call(s, y);
3209
+ return c.call(s, b);
3193
3210
  })();
3194
- let R = p.call(s, b);
3211
+ let R = p.call(s, y);
3195
3212
  return c.call(s, R);
3196
- } : s[o] = (...b) => {
3213
+ } : s[o] = (...y) => {
3197
3214
  if (this.defaults.async) return (async () => {
3198
- let y = await p.apply(s, b);
3199
- return y === !1 && (y = await c.apply(s, b)), y;
3215
+ let b = await p.apply(s, y);
3216
+ return b === !1 && (b = await c.apply(s, y)), b;
3200
3217
  })();
3201
- let R = p.apply(s, b);
3202
- return R === !1 && (R = c.apply(s, b)), R;
3218
+ let R = p.apply(s, y);
3219
+ return R === !1 && (R = c.apply(s, y)), R;
3203
3220
  };
3204
3221
  }
3205
3222
  i.hooks = s;
@@ -3232,8 +3249,8 @@ ${t}</tr>
3232
3249
  if (s.hooks && (s.hooks.options = s, s.hooks.block = t), s.async) return (async () => {
3233
3250
  let o = s.hooks ? await s.hooks.preprocess(e) : e, p = await (s.hooks ? await s.hooks.provideLexer(t) : t ? Ve.lex : Ve.lexInline)(o, s), c = s.hooks ? await s.hooks.processAllTokens(p) : p;
3234
3251
  s.walkTokens && await Promise.all(this.walkTokens(c, s.walkTokens));
3235
- let b = await (s.hooks ? await s.hooks.provideParser(t) : t ? qe.parse : qe.parseInline)(c, s);
3236
- return s.hooks ? await s.hooks.postprocess(b) : b;
3252
+ let y = await (s.hooks ? await s.hooks.provideParser(t) : t ? qe.parse : qe.parseInline)(c, s);
3253
+ return s.hooks ? await s.hooks.postprocess(y) : y;
3237
3254
  })().catch(l);
3238
3255
  try {
3239
3256
  s.hooks && (e = s.hooks.preprocess(e));
@@ -3257,7 +3274,7 @@ Please report this to https://github.com/markedjs/marked.`, t) {
3257
3274
  throw n;
3258
3275
  };
3259
3276
  }
3260
- }, d(Bt, "q"), Bt), wt = new Ar();
3277
+ }, d(Bt, "q"), Bt), wt = new _r();
3261
3278
  function te(a, t) {
3262
3279
  return wt.parse(a, t);
3263
3280
  }
@@ -3290,12 +3307,12 @@ te.walkTokens;
3290
3307
  te.parseInline;
3291
3308
  qe.parse;
3292
3309
  Ve.lex;
3293
- const $t = 112, Lt = 46, dt = 14, qt = 54, Yt = 26;
3294
- function _r(a) {
3310
+ const $t = 112, Dt = 46, dt = 14, qt = 54, Yt = 26;
3311
+ function Er(a) {
3295
3312
  return a.layout === "left-to-right" || a.layout === "radial" ? "horizontal" : a.layout === "top-to-bottom" ? "vertical" : a.diagramType === "sequence" ? "horizontal" : "vertical";
3296
3313
  }
3297
- d(_r, "orientationFor");
3298
- function Er(a) {
3314
+ d(Er, "orientationFor");
3315
+ function Rr(a) {
3299
3316
  const t = new Set(a.nodes.map((l) => l.id)), e = new Set(a.edges.map((l) => l.to)), n = a.nodes.map((l) => l.id).filter((l) => !e.has(l)), i = /* @__PURE__ */ new Map();
3300
3317
  for (const l of n.length ? n : a.nodes.slice(0, 1).map((o) => o.id))
3301
3318
  i.set(l, 0);
@@ -3307,8 +3324,8 @@ function Er(a) {
3307
3324
  const c = i.get(p.from);
3308
3325
  if (c === void 0)
3309
3326
  continue;
3310
- const b = c + 1;
3311
- (i.get(p.to) ?? -1) < b && (i.set(p.to, b), o = !0);
3327
+ const y = c + 1;
3328
+ (i.get(p.to) ?? -1) < y && (i.set(p.to, y), o = !0);
3312
3329
  }
3313
3330
  if (!o)
3314
3331
  break;
@@ -3318,51 +3335,51 @@ function Er(a) {
3318
3335
  i.has(l.id) || i.set(l.id, ++s);
3319
3336
  return i;
3320
3337
  }
3321
- d(Er, "levelsFor");
3322
- function Rr(a) {
3323
- const t = _r(a), e = Er(a), n = /* @__PURE__ */ new Map();
3324
- for (const y of a.nodes) {
3325
- const k = e.get(y.id) ?? 0;
3326
- n.set(k, [...n.get(k) ?? [], y]);
3327
- }
3328
- const i = [...n.entries()].sort(([y], [k]) => y - k), s = Math.max(1, ...i.map(([, y]) => y.length)), l = Math.max(1, i.length), o = t === "horizontal" ? dt * 2 + l * $t + (l - 1) * qt : dt * 2 + s * $t + (s - 1) * qt, p = t === "horizontal" ? dt * 2 + s * Lt + (s - 1) * Yt : dt * 2 + l * Lt + (l - 1) * Yt, c = [];
3329
- for (const [y, [, k]] of i.entries()) {
3330
- const A = (s - k.length) * (t === "horizontal" ? Lt + Yt : $t + qt) / 2;
3338
+ d(Rr, "levelsFor");
3339
+ function Mr(a) {
3340
+ const t = Er(a), e = Rr(a), n = /* @__PURE__ */ new Map();
3341
+ for (const b of a.nodes) {
3342
+ const k = e.get(b.id) ?? 0;
3343
+ n.set(k, [...n.get(k) ?? [], b]);
3344
+ }
3345
+ const i = [...n.entries()].sort(([b], [k]) => b - k), s = Math.max(1, ...i.map(([, b]) => b.length)), l = Math.max(1, i.length), o = t === "horizontal" ? dt * 2 + l * $t + (l - 1) * qt : dt * 2 + s * $t + (s - 1) * qt, p = t === "horizontal" ? dt * 2 + s * Dt + (s - 1) * Yt : dt * 2 + l * Dt + (l - 1) * Yt, c = [];
3346
+ for (const [b, [, k]] of i.entries()) {
3347
+ const A = (s - k.length) * (t === "horizontal" ? Dt + Yt : $t + qt) / 2;
3331
3348
  for (const [E, O] of k.entries()) {
3332
- const Z = t === "horizontal" ? dt + y * ($t + qt) : dt + A + E * ($t + qt), I = t === "horizontal" ? dt + A + E * (Lt + Yt) : dt + y * (Lt + Yt);
3349
+ const Z = t === "horizontal" ? dt + b * ($t + qt) : dt + A + E * ($t + qt), C = t === "horizontal" ? dt + A + E * (Dt + Yt) : dt + b * (Dt + Yt);
3333
3350
  c.push({
3334
3351
  id: O.id,
3335
3352
  label: O.label,
3336
3353
  ...O.detail ? { detail: O.detail } : {},
3337
3354
  ...O.kind ? { kind: O.kind } : {},
3338
3355
  x: Z,
3339
- y: I,
3356
+ y: C,
3340
3357
  width: $t,
3341
- height: Lt
3358
+ height: Dt
3342
3359
  });
3343
3360
  }
3344
3361
  }
3345
- const b = new Map(c.map((y) => [y.id, y])), R = a.edges.flatMap((y, k) => {
3346
- const A = b.get(y.from), E = b.get(y.to);
3362
+ const y = new Map(c.map((b) => [b.id, b])), R = a.edges.flatMap((b, k) => {
3363
+ const A = y.get(b.from), E = y.get(b.to);
3347
3364
  if (!A || !E)
3348
3365
  return [];
3349
- const O = t === "horizontal" ? A.x + A.width : A.x + A.width / 2, Z = t === "horizontal" ? A.y + A.height / 2 : A.y + A.height, I = t === "horizontal" ? E.x : E.x + E.width / 2, $ = t === "horizontal" ? E.y + E.height / 2 : E.y;
3366
+ const O = t === "horizontal" ? A.x + A.width : A.x + A.width / 2, Z = t === "horizontal" ? A.y + A.height / 2 : A.y + A.height, C = t === "horizontal" ? E.x : E.x + E.width / 2, I = t === "horizontal" ? E.y + E.height / 2 : E.y;
3350
3367
  return [{
3351
- key: `${y.from}-${y.to}-${k}`,
3352
- from: y.from,
3353
- to: y.to,
3354
- ...y.label ? { label: y.label } : {},
3368
+ key: `${b.from}-${b.to}-${k}`,
3369
+ from: b.from,
3370
+ to: b.to,
3371
+ ...b.label ? { label: b.label } : {},
3355
3372
  x1: O,
3356
3373
  y1: Z,
3357
- x2: I,
3358
- y2: $,
3359
- labelX: (O + I) / 2,
3360
- labelY: (Z + $) / 2
3374
+ x2: C,
3375
+ y2: I,
3376
+ labelX: (O + C) / 2,
3377
+ labelY: (Z + I) / 2
3361
3378
  }];
3362
3379
  });
3363
3380
  return { width: o, height: p, orientation: t, nodes: c, edges: R };
3364
3381
  }
3365
- d(Rr, "layoutChatDiagram");
3382
+ d(Mr, "layoutChatDiagram");
3366
3383
  function ra(a) {
3367
3384
  const { value: t } = a, e = Math.abs(t);
3368
3385
  return e >= 1e6 ? `${(t / 1e6).toFixed(1).replace(/\.0$/, "")}M` : e >= 1e3 ? `${(t / 1e3).toFixed(1).replace(/\.0$/, "")}k` : Number.isInteger(t) ? `${t}` : t.toFixed(1);
@@ -3406,57 +3423,57 @@ function On(a) {
3406
3423
  return `${n}${s}${i}`;
3407
3424
  }
3408
3425
  d(On, "formatChatVisualSeriesValue");
3409
- function Mr(a) {
3426
+ function Cr(a) {
3410
3427
  const [t, ...e] = a.series;
3411
3428
  return t && e.every(
3412
3429
  (i) => i.valueFormat === t.valueFormat && i.valuePrefix === t.valuePrefix && i.valueSuffix === t.valueSuffix
3413
3430
  ) ? t : void 0;
3414
3431
  }
3415
- d(Mr, "resolveSharedSeriesFormat");
3416
- function Cr(a) {
3432
+ d(Cr, "resolveSharedSeriesFormat");
3433
+ function Ir(a) {
3417
3434
  const { value: t, shared: e } = a;
3418
3435
  if (e?.valueFormat === "duration")
3419
3436
  return la({ seconds: t });
3420
3437
  const { prefix: n, suffix: i } = oa(e);
3421
3438
  return `${n}${ra({ value: t })}${i}`;
3422
3439
  }
3423
- d(Cr, "formatChatVisualTick");
3424
- const Ir = 5.4, $r = 10, Lr = 15, zs = 16, Dr = -40, Ns = 36;
3425
- function Or(a) {
3440
+ d(Ir, "formatChatVisualTick");
3441
+ const $r = 5.4, Dr = 10, Lr = 15, zs = 16, Or = -40, Ns = 36;
3442
+ function zr(a) {
3426
3443
  const { labels: t, plotWidth: e } = a;
3427
3444
  if (!t.length || e <= 0)
3428
3445
  return { mode: "horizontal", entries: [] };
3429
3446
  const n = t.map((c) => c.length > zs ? `${c.slice(0, zs - 1).trimEnd()}…` : c), i = t.length - 1;
3430
3447
  if (i === 0)
3431
3448
  return { mode: "horizontal", entries: [{ index: 0, text: n[0] }] };
3432
- if ((Math.max(...n.map((c) => c.length * Ir)) + $r) * t.length <= e)
3433
- return { mode: "horizontal", entries: n.map((c, b) => ({ index: b, text: c })) };
3449
+ if ((Math.max(...n.map((c) => c.length * $r)) + Dr) * t.length <= e)
3450
+ return { mode: "horizontal", entries: n.map((c, y) => ({ index: y, text: c })) };
3434
3451
  const l = Math.max(2, Math.floor(e / Lr));
3435
3452
  if (t.length <= l)
3436
- return { mode: "angled", entries: n.map((c, b) => ({ index: b, text: c })) };
3453
+ return { mode: "angled", entries: n.map((c, y) => ({ index: y, text: c })) };
3437
3454
  const o = /* @__PURE__ */ new Set([0, i]), p = i / (l - 1);
3438
3455
  for (let c = 1; c < l - 1; c++)
3439
3456
  o.add(Math.round(c * p));
3440
3457
  return {
3441
3458
  mode: "angled",
3442
- entries: [...o].sort((c, b) => c - b).map((c) => ({ index: c, text: n[c] }))
3459
+ entries: [...o].sort((c, y) => c - y).map((c) => ({ index: c, text: n[c] }))
3443
3460
  };
3444
3461
  }
3445
- d(Or, "planChatVisualXLabels");
3446
- const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagram-type", "aria-label"], Nr = { class: "mb-2.5" }, Pr = ["aria-label"], Br = {
3462
+ d(zr, "planChatVisualXLabels");
3463
+ const Nr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagram-type", "aria-label"], Pr = { class: "mb-2.5" }, Br = ["aria-label"], Fr = {
3447
3464
  key: 0,
3448
3465
  "data-test": "chat-visual-horizontal-bars",
3449
3466
  class: "grid gap-3"
3450
- }, Fr = { class: "mb-1 flex items-start justify-between gap-3 text-[12px]" }, Ur = ["viewBox"], Hr = ["x1", "x2", "y1", "y2"], jr = ["x", "y"], Wr = ["data-row-index", "data-series-index", "data-data-key", "x", "y", "width", "height"], Gr = ["data-trend-key", "d"], Vr = ["d"], qr = ["cx", "cy"], Yr = ["cx", "cy"], Kr = ["x", "y", "text-anchor", "transform"], Xr = {
3467
+ }, Ur = { class: "mb-1 flex items-start justify-between gap-3 text-[12px]" }, Hr = ["viewBox"], jr = ["x1", "x2", "y1", "y2"], Wr = ["x", "y"], Gr = ["data-row-index", "data-series-index", "data-data-key", "x", "y", "width", "height"], Vr = ["data-trend-key", "d"], qr = ["d"], Yr = ["cx", "cy"], Kr = ["cx", "cy"], Xr = ["x", "y", "text-anchor", "transform"], Zr = {
3451
3468
  key: 2,
3452
3469
  class: "mt-2.5 flex flex-wrap items-center gap-x-4 gap-y-1.5"
3453
- }, Zr = {
3470
+ }, Jr = {
3454
3471
  key: 1,
3455
3472
  class: "grid gap-3"
3456
- }, Jr = { class: "mb-1 flex items-baseline justify-between gap-3 text-[12px]" }, Qr = { class: "shrink-0 tabular-nums" }, el = { key: 2 }, tl = ["viewBox", "aria-label"], nl = ["data-from", "data-to", "x1", "y1", "x2", "y2"], sl = ["cx", "cy"], al = ["x", "y"], il = ["data-node-id", "data-node-kind", "transform"], rl = ["points"], ll = ["width", "height"], ol = ["width", "height"], cl = {
3473
+ }, Qr = { class: "mb-1 flex items-baseline justify-between gap-3 text-[12px]" }, el = { class: "shrink-0 tabular-nums" }, tl = { key: 2 }, nl = ["viewBox", "aria-label"], sl = ["data-from", "data-to", "x1", "y1", "x2", "y2"], al = ["cx", "cy"], il = ["x", "y"], rl = ["data-node-id", "data-node-kind", "transform"], ll = ["points"], ol = ["width", "height"], cl = ["width", "height"], ul = {
3457
3474
  xmlns: "http://www.w3.org/1999/xhtml",
3458
3475
  class: "flex h-full min-w-0 flex-col items-center justify-center text-center"
3459
- }, ul = /* @__PURE__ */ Re({
3476
+ }, dl = /* @__PURE__ */ Re({
3460
3477
  __name: "ChatVisualBlock",
3461
3478
  props: {
3462
3479
  result: {},
@@ -3472,35 +3489,35 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3472
3489
  return g?.chartType === "pie";
3473
3490
  }
3474
3491
  d(l, "isPieChart");
3475
- const o = S(() => n.value?.data ?? []), p = S(() => s(n.value) ? n.value : null), c = S(() => p.value?.series ?? []), b = S(() => l(n.value) ? n.value : null), R = S(() => p.value?.chartType === "bar" && p.value.stacking === "stacked");
3476
- function y(g) {
3492
+ const o = S(() => n.value?.data ?? []), p = S(() => s(n.value) ? n.value : null), c = S(() => p.value?.series ?? []), y = S(() => l(n.value) ? n.value : null), R = S(() => p.value?.chartType === "bar" && p.value.stacking === "stacked");
3493
+ function b(g) {
3477
3494
  return typeof g == "number" && Number.isFinite(g) ? g : null;
3478
3495
  }
3479
- d(y, "numericValue");
3496
+ d(b, "numericValue");
3480
3497
  function k(g, M) {
3481
3498
  return String(g[M] ?? "").trim();
3482
3499
  }
3483
3500
  d(k, "categoryLabel");
3484
3501
  function A(g, M) {
3485
- const u = g.map((D) => k(D, M)).filter(Boolean);
3502
+ const u = g.map((L) => k(L, M)).filter(Boolean);
3486
3503
  if (!u.length)
3487
3504
  return !1;
3488
- const v = Math.max(...u.map((D) => D.length)), L = u.reduce((D, Q) => D + Q.length, 0) / u.length;
3489
- return v >= 16 || u.length > 5 && L >= 10;
3505
+ const v = Math.max(...u.map((L) => L.length)), $ = u.reduce((L, Q) => L + Q.length, 0) / u.length;
3506
+ return v >= 16 || u.length > 5 && $ >= 10;
3490
3507
  }
3491
3508
  d(A, "hasLongCategoryLabels");
3492
3509
  function E(g, M) {
3493
3510
  return g.data.map((u, v) => {
3494
- const L = y(u[M]);
3495
- return L === null ? null : { index: v, value: L };
3511
+ const $ = b(u[M]);
3512
+ return $ === null ? null : { index: v, value: $ };
3496
3513
  }).filter((u) => u !== null);
3497
3514
  }
3498
3515
  d(E, "trendLinePoints");
3499
3516
  function O(g) {
3500
3517
  if (g.length < 2) return null;
3501
- const M = g.length, u = g.reduce((le, de) => le + de.index, 0), v = g.reduce((le, de) => le + de.value, 0), L = g.reduce((le, de) => le + de.index * de.index, 0), D = g.reduce((le, de) => le + de.index * de.value, 0), Q = M * L - u * u;
3518
+ const M = g.length, u = g.reduce((le, de) => le + de.index, 0), v = g.reduce((le, de) => le + de.value, 0), $ = g.reduce((le, de) => le + de.index * de.index, 0), L = g.reduce((le, de) => le + de.index * de.value, 0), Q = M * $ - u * u;
3502
3519
  if (Q === 0) return null;
3503
- const pe = (M * D - u * v) / Q, ke = (v - pe * u) / M;
3520
+ const pe = (M * L - u * v) / Q, ke = (v - pe * u) / M;
3504
3521
  return { slope: pe, intercept: ke };
3505
3522
  }
3506
3523
  d(O, "linearTrend");
@@ -3509,50 +3526,50 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3509
3526
  if (!M) return g;
3510
3527
  if (M.chartType === "bar" && M.stacking === "stacked")
3511
3528
  for (const u of M.data) {
3512
- let v = 0, L = 0;
3513
- for (const D of M.series) {
3514
- const Q = y(u[D.dataKey]);
3515
- Q !== null && (Q >= 0 ? v += Q : L += Q);
3529
+ let v = 0, $ = 0;
3530
+ for (const L of M.series) {
3531
+ const Q = b(u[L.dataKey]);
3532
+ Q !== null && (Q >= 0 ? v += Q : $ += Q);
3516
3533
  }
3517
- g.push(v, L);
3534
+ g.push(v, $);
3518
3535
  }
3519
3536
  else
3520
3537
  for (const u of M.data)
3521
3538
  for (const v of M.series) {
3522
- const L = y(u[v.dataKey]);
3523
- L !== null && g.push(L);
3539
+ const $ = b(u[v.dataKey]);
3540
+ $ !== null && g.push($);
3524
3541
  }
3525
3542
  if (M.trendLine && (M.chartType === "line" || M.chartType === "scatter")) {
3526
3543
  const u = E(M, M.trendLine.dataKey);
3527
- g.push(...u.map((L) => L.value));
3544
+ g.push(...u.map(($) => $.value));
3528
3545
  const v = O(u);
3529
3546
  if (v && u.length) {
3530
- const L = u[0].index, D = u[u.length - 1].index;
3531
- g.push(v.intercept + v.slope * L, v.intercept + v.slope * D);
3547
+ const $ = u[0].index, L = u[u.length - 1].index;
3548
+ g.push(v.intercept + v.slope * $, v.intercept + v.slope * L);
3532
3549
  }
3533
3550
  }
3534
3551
  return g;
3535
3552
  });
3536
- function I(g, M) {
3537
- const u = g > 0 ? g : 1, v = Math.floor(Math.log10(u)), L = u / 10 ** v;
3538
- let D;
3539
- return M ? D = L < 1.5 ? 1 : L < 3 ? 2 : L < 7 ? 5 : 10 : D = L <= 1 ? 1 : L <= 2 ? 2 : L <= 5 ? 5 : 10, D * 10 ** v;
3553
+ function C(g, M) {
3554
+ const u = g > 0 ? g : 1, v = Math.floor(Math.log10(u)), $ = u / 10 ** v;
3555
+ let L;
3556
+ return M ? L = $ < 1.5 ? 1 : $ < 3 ? 2 : $ < 7 ? 5 : 10 : L = $ <= 1 ? 1 : $ <= 2 ? 2 : $ <= 5 ? 5 : 10, L * 10 ** v;
3540
3557
  }
3541
- d(I, "niceNum");
3542
- const $ = S(() => {
3558
+ d(C, "niceNum");
3559
+ const I = S(() => {
3543
3560
  const g = Z.value, M = g.length ? Math.max(0, ...g) : 1, u = g.length ? Math.min(0, ...g) : 0;
3544
3561
  if (u === M)
3545
3562
  return { min: 0, max: M || 1, ticks: [0, M || 1] };
3546
- const v = 4, L = I(M - u, !1), D = I(L / (v - 1), !0), Q = Math.floor(u / D) * D, pe = Math.ceil(M / D) * D, ke = [];
3547
- for (let le = Q; le <= pe + D * 0.5; le += D)
3563
+ const v = 4, $ = C(M - u, !1), L = C($ / (v - 1), !0), Q = Math.floor(u / L) * L, pe = Math.ceil(M / L) * L, ke = [];
3564
+ for (let le = Q; le <= pe + L * 0.5; le += L)
3548
3565
  ke.push(Number(le.toFixed(6)));
3549
3566
  return { min: Q, max: pe, ticks: ke };
3550
- }), N = S(() => Mr({ series: c.value })), W = S(() => {
3567
+ }), N = S(() => Cr({ series: c.value })), W = S(() => {
3551
3568
  const g = p.value;
3552
3569
  if (!g)
3553
3570
  return { mode: "horizontal", entries: [] };
3554
3571
  const M = g.xKey;
3555
- return Or({
3572
+ return zr({
3556
3573
  labels: g.data.map((u) => String(u?.[M] ?? "")),
3557
3574
  // Provisional inner width — the frame depends on the plan's mode, so the
3558
3575
  // plan uses the narrowest plausible plot; drawing positions still come
@@ -3573,8 +3590,8 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3573
3590
  function V(g, M) {
3574
3591
  const u = p.value, v = B.value;
3575
3592
  if (u?.chartType === "bar") {
3576
- const L = v.width - v.left - v.right;
3577
- return v.left + (g + 0.5) * (L / Math.max(M, 1));
3593
+ const $ = v.width - v.left - v.right;
3594
+ return v.left + (g + 0.5) * ($ / Math.max(M, 1));
3578
3595
  }
3579
3596
  return J(g, M);
3580
3597
  }
@@ -3585,15 +3602,15 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3585
3602
  }
3586
3603
  d(J, "xForIndex");
3587
3604
  function ue(g) {
3588
- const { min: M, max: u } = $.value, v = B.value, L = v.height - v.top - v.bottom;
3589
- return v.top + (u - g) / (u - M || 1) * L;
3605
+ const { min: M, max: u } = I.value, v = B.value, $ = v.height - v.top - v.bottom;
3606
+ return v.top + (u - g) / (u - M || 1) * $;
3590
3607
  }
3591
3608
  d(ue, "yForValue");
3592
3609
  function Ae(g) {
3593
3610
  const M = p.value;
3594
3611
  return M ? M.data.map((u, v) => {
3595
- const L = y(u[g]) ?? 0;
3596
- return `${v === 0 ? "M" : "L"} ${J(v, M.data.length).toFixed(1)} ${ue(L).toFixed(1)}`;
3612
+ const $ = b(u[g]) ?? 0;
3613
+ return `${v === 0 ? "M" : "L"} ${J(v, M.data.length).toFixed(1)} ${ue($).toFixed(1)}`;
3597
3614
  }).join(" ") : "";
3598
3615
  }
3599
3616
  d(Ae, "pathForSeries");
@@ -3602,23 +3619,23 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3602
3619
  if (!g?.trendLine || g.chartType !== "line" && g.chartType !== "scatter") return null;
3603
3620
  const M = E(g, g.trendLine.dataKey), u = O(M);
3604
3621
  if (!u || !M.length) return null;
3605
- const v = M[0].index, L = M[M.length - 1].index, D = u.intercept + u.slope * v, Q = u.intercept + u.slope * L, pe = Math.max(0, g.series.findIndex((ke) => ke.dataKey === g.trendLine?.dataKey));
3622
+ const v = M[0].index, $ = M[M.length - 1].index, L = u.intercept + u.slope * v, Q = u.intercept + u.slope * $, pe = Math.max(0, g.series.findIndex((ke) => ke.dataKey === g.trendLine?.dataKey));
3606
3623
  return {
3607
- path: `M ${J(v, g.data.length).toFixed(1)} ${ue(D).toFixed(1)} L ${J(L, g.data.length).toFixed(1)} ${ue(Q).toFixed(1)}`,
3624
+ path: `M ${J(v, g.data.length).toFixed(1)} ${ue(L).toFixed(1)} L ${J($, g.data.length).toFixed(1)} ${ue(Q).toFixed(1)}`,
3608
3625
  dataKey: g.trendLine.dataKey,
3609
3626
  seriesIndex: pe
3610
3627
  };
3611
3628
  }), St = S(() => {
3612
3629
  const g = p.value;
3613
3630
  if (!g || g.chartType !== "bar") return [];
3614
- const M = B.value, v = (M.width - M.left - M.right) / Math.max(g.data.length, 1), L = ue(0);
3631
+ const M = B.value, v = (M.width - M.left - M.right) / Math.max(g.data.length, 1), $ = ue(0);
3615
3632
  if (R.value) {
3616
3633
  const le = Math.max(4, Math.min(24, v * 0.42));
3617
3634
  return g.data.flatMap((de, $e) => {
3618
3635
  let Ke = 0, je = 0;
3619
3636
  const ze = M.left + $e * v + (v - le) / 2;
3620
3637
  return g.series.map((Fe, Xe) => {
3621
- const _ = y(de[Fe.dataKey]) ?? 0, m = _ >= 0 ? Ke : je, T = m + _, ae = ue(m), U = ue(T);
3638
+ const _ = b(de[Fe.dataKey]) ?? 0, m = _ >= 0 ? Ke : je, T = m + _, ae = ue(m), U = ue(T);
3622
3639
  return _ >= 0 ? Ke = T : je = T, {
3623
3640
  key: `${$e}-${Fe.dataKey}`,
3624
3641
  x: ze,
@@ -3632,63 +3649,63 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3632
3649
  });
3633
3650
  });
3634
3651
  }
3635
- const D = Math.max(g.series.length, 1), Q = D > 1 ? 2 : 0, pe = Math.max(3, Math.min(20, (v * 0.62 - Q * (D - 1)) / D)), ke = pe * D + Q * (D - 1);
3652
+ const L = Math.max(g.series.length, 1), Q = L > 1 ? 2 : 0, pe = Math.max(3, Math.min(20, (v * 0.62 - Q * (L - 1)) / L)), ke = pe * L + Q * (L - 1);
3636
3653
  return g.data.flatMap((le, de) => g.series.map(($e, Ke) => {
3637
- const je = y(le[$e.dataKey]) ?? 0, ze = ue(je), Fe = M.left + de * v + (v - ke) / 2 + Ke * (pe + Q);
3654
+ const je = b(le[$e.dataKey]) ?? 0, ze = ue(je), Fe = M.left + de * v + (v - ke) / 2 + Ke * (pe + Q);
3638
3655
  return {
3639
3656
  key: `${de}-${$e.dataKey}`,
3640
3657
  x: Fe,
3641
- y: Math.min(ze, L),
3658
+ y: Math.min(ze, $),
3642
3659
  width: pe,
3643
- height: Math.max(1.5, Math.abs(L - ze)),
3660
+ height: Math.max(1.5, Math.abs($ - ze)),
3644
3661
  seriesIndex: Ke,
3645
3662
  rowIndex: de,
3646
3663
  dataKey: $e.dataKey
3647
3664
  };
3648
3665
  }));
3649
- }), De = S(() => {
3666
+ }), Le = S(() => {
3650
3667
  const g = p.value;
3651
3668
  if (!g) return [];
3652
3669
  const M = g.data;
3653
3670
  if (!M.length) return [];
3654
- const u = M.length - 1, v = W.value, L = v.mode === "angled";
3655
- return v.entries.map(({ index: D, text: Q }) => ({
3656
- key: `${D}`,
3671
+ const u = M.length - 1, v = W.value, $ = v.mode === "angled";
3672
+ return v.entries.map(({ index: L, text: Q }) => ({
3673
+ key: `${L}`,
3657
3674
  label: Q,
3658
- x: V(D, M.length),
3659
- anchor: L ? "end" : D === 0 ? "start" : D === u ? "end" : "middle",
3660
- angled: L
3661
- })).filter((D) => D.label);
3675
+ x: V(L, M.length),
3676
+ anchor: $ ? "end" : L === 0 ? "start" : L === u ? "end" : "middle",
3677
+ angled: $
3678
+ })).filter((L) => L.label);
3662
3679
  }), se = S(() => {
3663
3680
  const g = p.value;
3664
3681
  if (!g || g.chartType !== "bar" || g.series.length !== 1 || R.value)
3665
3682
  return [];
3666
- const M = g.series[0], u = g.data.map((D, Q) => {
3667
- const pe = k(D, g.xKey), ke = y(D[M.dataKey]);
3683
+ const M = g.series[0], u = g.data.map((L, Q) => {
3684
+ const pe = k(L, g.xKey), ke = b(L[M.dataKey]);
3668
3685
  return !pe || ke === null ? null : { key: `${Q}-${pe}`, label: pe, rawValue: ke };
3669
- }).filter((D) => D !== null);
3670
- if (!u.length || u.some((D) => D.rawValue < 0))
3686
+ }).filter((L) => L !== null);
3687
+ if (!u.length || u.some((L) => L.rawValue < 0))
3671
3688
  return [];
3672
3689
  if (!(g.layout === "horizontal" || A(g.data, g.xKey)))
3673
3690
  return [];
3674
- const L = Math.max(...u.map((D) => D.rawValue), 1);
3675
- return u.map((D) => ({
3676
- key: D.key,
3677
- label: D.label,
3678
- value: On({ value: D.rawValue, series: M }),
3679
- width: D.rawValue <= 0 ? 0 : Math.max(2, D.rawValue / L * 100),
3691
+ const $ = Math.max(...u.map((L) => L.rawValue), 1);
3692
+ return u.map((L) => ({
3693
+ key: L.key,
3694
+ label: L.label,
3695
+ value: On({ value: L.rawValue, series: M }),
3696
+ width: L.rawValue <= 0 ? 0 : Math.max(2, L.rawValue / $ * 100),
3680
3697
  seriesIndex: 0
3681
3698
  }));
3682
- }), st = S(() => {
3699
+ }), at = S(() => {
3683
3700
  const g = p.value;
3684
3701
  if (!g?.data.length) return [];
3685
3702
  const M = g.data[g.data.length - 1];
3686
3703
  return g.series.map((u, v) => {
3687
- const L = y(M?.[u.dataKey]);
3704
+ const $ = b(M?.[u.dataKey]);
3688
3705
  return {
3689
3706
  key: u.dataKey,
3690
3707
  label: u.label || u.dataKey,
3691
- value: L === null ? "—" : On({ value: L, series: u }),
3708
+ value: $ === null ? "—" : On({ value: $, series: u }),
3692
3709
  seriesIndex: v
3693
3710
  };
3694
3711
  });
@@ -3696,46 +3713,46 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3696
3713
  const g = p.value;
3697
3714
  if (!g?.data.length || g.chartType !== "line") return [];
3698
3715
  const M = g.data.length - 1, u = g.data[M];
3699
- return g.series.map((v, L) => {
3700
- const D = y(u?.[v.dataKey]);
3701
- return D === null ? null : { key: v.dataKey, cx: J(M, g.data.length), cy: ue(D), seriesIndex: L };
3716
+ return g.series.map((v, $) => {
3717
+ const L = b(u?.[v.dataKey]);
3718
+ return L === null ? null : { key: v.dataKey, cx: J(M, g.data.length), cy: ue(L), seriesIndex: $ };
3702
3719
  }).filter((v) => v !== null);
3703
- }), at = S(() => {
3704
- const g = b.value;
3720
+ }), it = S(() => {
3721
+ const g = y.value;
3705
3722
  if (!g) return [];
3706
- const M = g.data.map((L) => ({
3707
- name: String(L[g.nameKey] ?? ""),
3708
- value: y(L[g.valueKey]) ?? 0
3709
- })).filter((L) => L.name && L.value >= 0).sort((L, D) => D.value - L.value), u = M.reduce((L, D) => L + D.value, 0) || 1, v = g.series?.[0];
3710
- return M.map((L, D) => ({
3711
- ...L,
3712
- key: `${D}-${L.name}`,
3713
- percent: L.value / u,
3714
- display: On({ value: L.value, series: v })
3723
+ const M = g.data.map(($) => ({
3724
+ name: String($[g.nameKey] ?? ""),
3725
+ value: b($[g.valueKey]) ?? 0
3726
+ })).filter(($) => $.name && $.value >= 0).sort(($, L) => L.value - $.value), u = M.reduce(($, L) => $ + L.value, 0) || 1, v = g.series?.[0];
3727
+ return M.map(($, L) => ({
3728
+ ...$,
3729
+ key: `${L}-${$.name}`,
3730
+ percent: $.value / u,
3731
+ display: On({ value: $.value, series: v })
3715
3732
  }));
3716
- }), Oe = S(() => i.value ? Rr(i.value) : null), gt = [
3733
+ }), Oe = S(() => i.value ? Mr(i.value) : null), vt = [
3717
3734
  "var(--color-theme-900)",
3718
3735
  "var(--color-primary-500)",
3719
3736
  "color-mix(in oklch, var(--color-primary-500) 55%, var(--color-theme-500))"
3720
- ], vt = [
3737
+ ], xt = [
3721
3738
  "rgba(255, 255, 255, 0.92)",
3722
3739
  "color-mix(in oklch, white 30%, var(--color-primary-500))",
3723
3740
  "rgba(255, 255, 255, 0.55)"
3724
3741
  ];
3725
3742
  function Me(g) {
3726
- const M = t.inverted ? vt : gt;
3743
+ const M = t.inverted ? xt : vt;
3727
3744
  return M[g % M.length];
3728
3745
  }
3729
3746
  d(Me, "seriesColor");
3730
- function it(g) {
3747
+ function rt(g) {
3731
3748
  return t.inverted ? g === "decision" ? "rgba(255, 255, 255, 0.1)" : "rgba(255, 255, 255, 0.06)" : g === "decision" ? "color-mix(in oklch, var(--color-primary-500) 9%, var(--color-theme-0))" : g === "output" ? "color-mix(in oklch, var(--color-theme-900) 5%, var(--color-theme-0))" : "var(--color-theme-0)";
3732
3749
  }
3733
- d(it, "diagramNodeFill");
3750
+ d(rt, "diagramNodeFill");
3734
3751
  function Ce(g) {
3735
3752
  return g === "decision" ? t.inverted ? "rgba(255, 255, 255, 0.26)" : "color-mix(in oklch, var(--color-primary-500) 32%, var(--color-theme-300))" : Be.value;
3736
3753
  }
3737
3754
  d(Ce, "diagramNodeStroke");
3738
- const K = S(() => t.inverted ? "rgba(255, 255, 255, 0.95)" : "var(--color-theme-900)"), ye = S(() => t.inverted ? "rgba(255, 255, 255, 0.6)" : "var(--color-theme-500)"), ie = S(() => t.inverted ? "rgba(255, 255, 255, 0.45)" : "color-mix(in oklch, var(--color-theme-900) 42%, transparent)"), Ie = S(() => t.inverted ? "rgba(255, 255, 255, 0.1)" : "color-mix(in oklch, var(--color-theme-900) 8%, transparent)"), re = S(() => t.inverted ? "rgba(255, 255, 255, 0.24)" : "color-mix(in oklch, var(--color-theme-900) 18%, transparent)"), Be = S(() => t.inverted ? "rgba(255, 255, 255, 0.16)" : "color-mix(in oklch, var(--color-theme-300) 55%, transparent)"), rt = S(() => t.inverted ? "rgba(255, 255, 255, 0.18)" : "color-mix(in oklch, var(--color-theme-900) 16%, transparent)"), be = S(() => t.inverted ? "rgba(255, 255, 255, 0.12)" : "color-mix(in oklch, var(--color-theme-900) 9%, transparent)");
3755
+ const K = S(() => t.inverted ? "rgba(255, 255, 255, 0.95)" : "var(--color-theme-900)"), be = S(() => t.inverted ? "rgba(255, 255, 255, 0.6)" : "var(--color-theme-500)"), ie = S(() => t.inverted ? "rgba(255, 255, 255, 0.45)" : "color-mix(in oklch, var(--color-theme-900) 42%, transparent)"), Ie = S(() => t.inverted ? "rgba(255, 255, 255, 0.1)" : "color-mix(in oklch, var(--color-theme-900) 8%, transparent)"), re = S(() => t.inverted ? "rgba(255, 255, 255, 0.24)" : "color-mix(in oklch, var(--color-theme-900) 18%, transparent)"), Be = S(() => t.inverted ? "rgba(255, 255, 255, 0.16)" : "color-mix(in oklch, var(--color-theme-300) 55%, transparent)"), lt = S(() => t.inverted ? "rgba(255, 255, 255, 0.18)" : "color-mix(in oklch, var(--color-theme-900) 16%, transparent)"), ye = S(() => t.inverted ? "rgba(255, 255, 255, 0.12)" : "color-mix(in oklch, var(--color-theme-900) 9%, transparent)");
3739
3756
  return (g, M) => e.value ? (h(), f("section", {
3740
3757
  key: 0,
3741
3758
  "data-test": "chat-visual",
@@ -3747,7 +3764,7 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3747
3764
  style: q({ borderColor: Be.value }),
3748
3765
  "aria-label": e.value.meta.title
3749
3766
  }, [
3750
- w("header", Nr, [
3767
+ w("header", Pr, [
3751
3768
  w("h4", {
3752
3769
  class: "text-[13px] font-semibold leading-tight",
3753
3770
  style: q({ color: K.value })
@@ -3755,7 +3772,7 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3755
3772
  e.value.meta.description ? (h(), f("p", {
3756
3773
  key: 0,
3757
3774
  class: "mt-0.5 text-[12px] leading-snug",
3758
- style: q({ color: ye.value })
3775
+ style: q({ color: be.value })
3759
3776
  }, j(e.value.meta.description), 5)) : H("", !0)
3760
3777
  ]),
3761
3778
  p.value ? (h(), f("div", {
@@ -3763,13 +3780,13 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3763
3780
  role: "img",
3764
3781
  "aria-label": e.value.meta.title
3765
3782
  }, [
3766
- se.value.length ? (h(), f("div", Br, [
3783
+ se.value.length ? (h(), f("div", Fr, [
3767
3784
  (h(!0), f(ee, null, me(se.value, (u) => (h(), f("div", {
3768
3785
  key: u.key,
3769
3786
  "data-test": "chat-visual-horizontal-bar",
3770
3787
  class: "min-w-0"
3771
3788
  }, [
3772
- w("div", Fr, [
3789
+ w("div", Ur, [
3773
3790
  w("span", {
3774
3791
  class: "line-clamp-2 min-w-0 font-medium leading-snug",
3775
3792
  style: q({ color: K.value })
@@ -3781,7 +3798,7 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3781
3798
  ]),
3782
3799
  w("div", {
3783
3800
  class: "h-2 w-full overflow-hidden rounded-full",
3784
- style: q({ background: be.value })
3801
+ style: q({ background: ye.value })
3785
3802
  }, [
3786
3803
  w("div", {
3787
3804
  class: "h-full rounded-full",
@@ -3797,7 +3814,7 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3797
3814
  preserveAspectRatio: "xMidYMid meet",
3798
3815
  "aria-hidden": "true"
3799
3816
  }, [
3800
- (h(!0), f(ee, null, me($.value.ticks, (u) => (h(), f("line", {
3817
+ (h(!0), f(ee, null, me(I.value.ticks, (u) => (h(), f("line", {
3801
3818
  key: `grid-${u}`,
3802
3819
  x1: B.value.left,
3803
3820
  x2: B.value.width - B.value.right,
@@ -3806,16 +3823,16 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3806
3823
  "stroke-width": "1",
3807
3824
  "vector-effect": "non-scaling-stroke",
3808
3825
  style: q({ stroke: u === 0 ? re.value : Ie.value })
3809
- }, null, 12, Hr))), 128)),
3826
+ }, null, 12, jr))), 128)),
3810
3827
  w("g", null, [
3811
- (h(!0), f(ee, null, me($.value.ticks, (u) => (h(), f("text", {
3828
+ (h(!0), f(ee, null, me(I.value.ticks, (u) => (h(), f("text", {
3812
3829
  key: `y-${u}`,
3813
3830
  x: B.value.left - 7,
3814
3831
  y: ue(u) + 3,
3815
3832
  "text-anchor": "end",
3816
3833
  "font-size": "9.5",
3817
3834
  style: q({ fill: ie.value })
3818
- }, j(en(Cr)({ value: u, shared: N.value })), 13, jr))), 128))
3835
+ }, j(en(Ir)({ value: u, shared: N.value })), 13, Wr))), 128))
3819
3836
  ]),
3820
3837
  p.value.chartType === "bar" ? (h(!0), f(ee, { key: 0 }, me(St.value, (u) => (h(), f("rect", {
3821
3838
  key: u.key,
@@ -3829,7 +3846,7 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3829
3846
  height: u.height,
3830
3847
  rx: "2.5",
3831
3848
  style: q({ fill: Me(u.seriesIndex) })
3832
- }, null, 12, Wr))), 128)) : (h(), f(ee, { key: 1 }, [
3849
+ }, null, 12, Gr))), 128)) : (h(), f(ee, { key: 1 }, [
3833
3850
  Pe.value ? (h(), f("path", {
3834
3851
  key: 0,
3835
3852
  "data-test": "chat-visual-trend-line",
@@ -3842,7 +3859,7 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3842
3859
  "stroke-dasharray": "4 3",
3843
3860
  "vector-effect": "non-scaling-stroke",
3844
3861
  style: q({ stroke: Me(Pe.value.seriesIndex) })
3845
- }, null, 12, Gr)) : H("", !0),
3862
+ }, null, 12, Vr)) : H("", !0),
3846
3863
  (h(!0), f(ee, null, me(c.value, (u, v) => (h(), f("g", {
3847
3864
  key: u.dataKey
3848
3865
  }, [
@@ -3855,17 +3872,17 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3855
3872
  "stroke-linejoin": "round",
3856
3873
  "vector-effect": "non-scaling-stroke",
3857
3874
  style: q({ stroke: Me(v) })
3858
- }, null, 12, Vr)) : H("", !0),
3859
- (h(!0), f(ee, null, me(o.value, (L, D) => (h(), f(ee, {
3860
- key: `${u.dataKey}-${D}`
3875
+ }, null, 12, qr)) : H("", !0),
3876
+ (h(!0), f(ee, null, me(o.value, ($, L) => (h(), f(ee, {
3877
+ key: `${u.dataKey}-${L}`
3861
3878
  }, [
3862
3879
  p.value.chartType === "scatter" ? (h(), f("circle", {
3863
3880
  key: 0,
3864
- cx: J(D, o.value.length),
3865
- cy: ue(y(L[u.dataKey]) ?? 0),
3881
+ cx: J(L, o.value.length),
3882
+ cy: ue(b($[u.dataKey]) ?? 0),
3866
3883
  r: "2.6",
3867
3884
  style: q({ fill: Me(v) })
3868
- }, null, 12, qr)) : H("", !0)
3885
+ }, null, 12, Yr)) : H("", !0)
3869
3886
  ], 64))), 128))
3870
3887
  ]))), 128)),
3871
3888
  (h(!0), f(ee, null, me(Ye.value, (u) => (h(), f("circle", {
@@ -3874,20 +3891,20 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3874
3891
  cy: u.cy,
3875
3892
  r: "3",
3876
3893
  style: q({ fill: Me(u.seriesIndex) })
3877
- }, null, 12, Yr))), 128))
3894
+ }, null, 12, Kr))), 128))
3878
3895
  ], 64)),
3879
- (h(!0), f(ee, null, me(De.value, (u) => (h(), f("text", {
3896
+ (h(!0), f(ee, null, me(Le.value, (u) => (h(), f("text", {
3880
3897
  key: u.key,
3881
3898
  x: u.x,
3882
3899
  y: u.angled ? B.value.height - B.value.bottom + 12 : B.value.height - 6,
3883
3900
  "text-anchor": u.anchor,
3884
3901
  "font-size": "9.5",
3885
- transform: u.angled ? `rotate(${en(Dr)} ${u.x} ${B.value.height - B.value.bottom + 12})` : void 0,
3902
+ transform: u.angled ? `rotate(${en(Or)} ${u.x} ${B.value.height - B.value.bottom + 12})` : void 0,
3886
3903
  style: q({ fill: ie.value })
3887
- }, j(u.label), 13, Kr))), 128))
3888
- ], 12, Ur)),
3889
- st.value.length > 1 || p.value.chartType !== "bar" ? (h(), f("div", Xr, [
3890
- (h(!0), f(ee, null, me(st.value, (u) => (h(), f("div", {
3904
+ }, j(u.label), 13, Xr))), 128))
3905
+ ], 12, Hr)),
3906
+ at.value.length > 1 || p.value.chartType !== "bar" ? (h(), f("div", Zr, [
3907
+ (h(!0), f(ee, null, me(at.value, (u) => (h(), f("div", {
3891
3908
  key: u.key,
3892
3909
  class: "inline-flex items-center gap-1.5 text-[11.5px] leading-none"
3893
3910
  }, [
@@ -3896,7 +3913,7 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3896
3913
  style: q({ background: Me(u.seriesIndex) })
3897
3914
  }, null, 4),
3898
3915
  w("span", {
3899
- style: q({ color: ye.value })
3916
+ style: q({ color: be.value })
3900
3917
  }, j(u.label), 5),
3901
3918
  w("span", {
3902
3919
  class: "font-semibold tabular-nums",
@@ -3904,29 +3921,29 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3904
3921
  }, j(u.value), 5)
3905
3922
  ]))), 128))
3906
3923
  ])) : H("", !0)
3907
- ], 8, Pr)) : b.value ? (h(), f("div", Zr, [
3908
- (h(!0), f(ee, null, me(at.value, (u, v) => (h(), f("div", {
3924
+ ], 8, Br)) : y.value ? (h(), f("div", Jr, [
3925
+ (h(!0), f(ee, null, me(it.value, (u, v) => (h(), f("div", {
3909
3926
  key: u.key
3910
3927
  }, [
3911
- w("div", Jr, [
3928
+ w("div", Qr, [
3912
3929
  w("span", {
3913
3930
  class: "truncate font-medium",
3914
3931
  style: q({ color: K.value })
3915
3932
  }, j(u.name), 5),
3916
- w("span", Qr, [
3933
+ w("span", el, [
3917
3934
  w("span", {
3918
3935
  class: "font-semibold",
3919
3936
  style: q({ color: K.value })
3920
3937
  }, j(u.display), 5),
3921
3938
  w("span", {
3922
3939
  class: "ml-1.5",
3923
- style: q({ color: ye.value })
3940
+ style: q({ color: be.value })
3924
3941
  }, j(Math.round(u.percent * 100)) + "%", 5)
3925
3942
  ])
3926
3943
  ]),
3927
3944
  w("div", {
3928
3945
  class: "h-1.5 w-full overflow-hidden rounded-full",
3929
- style: q({ background: be.value })
3946
+ style: q({ background: ye.value })
3930
3947
  }, [
3931
3948
  w("div", {
3932
3949
  class: "h-full rounded-full",
@@ -3934,7 +3951,7 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3934
3951
  }, null, 4)
3935
3952
  ], 4)
3936
3953
  ]))), 128))
3937
- ])) : i.value && Oe.value ? (h(), f("div", el, [
3954
+ ])) : i.value && Oe.value ? (h(), f("div", tl, [
3938
3955
  (h(), f("svg", {
3939
3956
  "data-test": "chat-visual-diagram-svg",
3940
3957
  class: "block h-auto w-full overflow-visible",
@@ -3955,15 +3972,15 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3955
3972
  "stroke-width": "1.4",
3956
3973
  "stroke-linecap": "round",
3957
3974
  "vector-effect": "non-scaling-stroke",
3958
- style: q({ stroke: rt.value })
3959
- }, null, 12, nl))), 128)),
3975
+ style: q({ stroke: lt.value })
3976
+ }, null, 12, sl))), 128)),
3960
3977
  (h(!0), f(ee, null, me(Oe.value.edges, (u) => (h(), f("circle", {
3961
3978
  key: `${u.key}-dot`,
3962
3979
  cx: u.x2,
3963
3980
  cy: u.y2,
3964
3981
  r: "2.4",
3965
- style: q({ fill: rt.value })
3966
- }, null, 12, sl))), 128)),
3982
+ style: q({ fill: lt.value })
3983
+ }, null, 12, al))), 128)),
3967
3984
  (h(!0), f(ee, null, me(Oe.value.edges.filter((u) => u.label), (u) => (h(), f("foreignObject", {
3968
3985
  key: `${u.key}-label`,
3969
3986
  x: u.labelX - 43,
@@ -3974,9 +3991,9 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3974
3991
  w("div", {
3975
3992
  xmlns: "http://www.w3.org/1999/xhtml",
3976
3993
  class: "flex h-full items-center justify-center px-1 text-center text-[8.5px] font-medium leading-none",
3977
- style: q({ color: ye.value, background: t.inverted ? "var(--color-theme-900)" : "var(--color-theme-0)" })
3994
+ style: q({ color: be.value, background: t.inverted ? "var(--color-theme-900)" : "var(--color-theme-0)" })
3978
3995
  }, j(u.label), 5)
3979
- ], 8, al))), 128)),
3996
+ ], 8, il))), 128)),
3980
3997
  (h(!0), f(ee, null, me(Oe.value.nodes, (u) => (h(), f("g", {
3981
3998
  key: u.id,
3982
3999
  "data-test": "chat-visual-diagram-node",
@@ -3989,23 +4006,23 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3989
4006
  points: `${u.width / 2},0 ${u.width},${u.height / 2} ${u.width / 2},${u.height} 0,${u.height / 2}`,
3990
4007
  "stroke-width": "1",
3991
4008
  "vector-effect": "non-scaling-stroke",
3992
- style: q({ fill: it(u.kind), stroke: Ce(u.kind) })
3993
- }, null, 12, rl)) : (h(), f("rect", {
4009
+ style: q({ fill: rt(u.kind), stroke: Ce(u.kind) })
4010
+ }, null, 12, ll)) : (h(), f("rect", {
3994
4011
  key: 1,
3995
4012
  width: u.width,
3996
4013
  height: u.height,
3997
4014
  rx: "12",
3998
4015
  "stroke-width": "1",
3999
4016
  "vector-effect": "non-scaling-stroke",
4000
- style: q({ fill: it(u.kind), stroke: Ce(u.kind) })
4001
- }, null, 12, ll)),
4017
+ style: q({ fill: rt(u.kind), stroke: Ce(u.kind) })
4018
+ }, null, 12, ol)),
4002
4019
  (h(), f("foreignObject", {
4003
4020
  x: "8",
4004
4021
  y: "5",
4005
4022
  width: u.width - 16,
4006
4023
  height: u.height - 10
4007
4024
  }, [
4008
- w("div", cl, [
4025
+ w("div", ul, [
4009
4026
  w("div", {
4010
4027
  class: "line-clamp-2 text-[10.5px] font-semibold leading-tight",
4011
4028
  style: q({ color: K.value })
@@ -4013,21 +4030,21 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4013
4030
  u.detail ? (h(), f("div", {
4014
4031
  key: 0,
4015
4032
  class: "mt-0.5 line-clamp-1 text-[8.5px] leading-none",
4016
- style: q({ color: ye.value })
4033
+ style: q({ color: be.value })
4017
4034
  }, j(u.detail), 5)) : H("", !0)
4018
4035
  ])
4019
- ], 8, ol))
4020
- ], 8, il))), 128))
4021
- ], 12, tl))
4036
+ ], 8, cl))
4037
+ ], 8, rl))), 128))
4038
+ ], 12, nl))
4022
4039
  ])) : H("", !0),
4023
4040
  e.value.meta.footer ? (h(), f("footer", {
4024
4041
  key: 3,
4025
4042
  class: "mt-3 text-[11px] leading-snug",
4026
4043
  style: q({ color: ie.value })
4027
4044
  }, j(e.value.meta.footer), 5)) : H("", !0)
4028
- ], 12, zr)) : H("", !0);
4045
+ ], 12, Nr)) : H("", !0);
4029
4046
  }
4030
- }), dl = ["innerHTML"], Kt = /* @__PURE__ */ Re({
4047
+ }), hl = ["innerHTML"], Kt = /* @__PURE__ */ Re({
4031
4048
  __name: "ChatRichText",
4032
4049
  props: {
4033
4050
  text: {},
@@ -4068,7 +4085,7 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4068
4085
  function s(k) {
4069
4086
  if (!k) return "";
4070
4087
  const A = te.parse(k, { async: !1 });
4071
- return Pi.sanitize(A, { ADD_ATTR: ["target"], ADD_DATA_URI_TAGS: ["img"] });
4088
+ return Bi.sanitize(A, { ADD_ATTR: ["target"], ADD_DATA_URI_TAGS: ["img"] });
4072
4089
  }
4073
4090
  d(s, "renderMarkdown");
4074
4091
  function l(k) {
@@ -4113,16 +4130,16 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4113
4130
  });
4114
4131
  }
4115
4132
  d(c, "onRichTextAssetError");
4116
- const b = /```(?:pl-visual|pl-platform-visual)[ \t]*(?:\r?\n|$)/;
4133
+ const y = /```(?:pl-visual|pl-platform-visual)[ \t]*(?:\r?\n|$)/;
4117
4134
  function R(k) {
4118
4135
  const { text: A, streaming: E } = k, O = [], Z = /```(?:pl-visual|pl-platform-visual)[ \t]*\r?\n([\s\S]*?)```/g;
4119
- let I = 0, $ = 0, N = Z.exec(A);
4136
+ let C = 0, I = 0, N = Z.exec(A);
4120
4137
  for (; N !== null; ) {
4121
- const J = A.slice(I, N.index), ue = s(J);
4122
- ue && O.push({ kind: "markdown", key: `md-${$}`, html: ue });
4123
- const Ae = Ta(N[1].trim());
4138
+ const J = A.slice(C, N.index), ue = s(J);
4139
+ ue && O.push({ kind: "markdown", key: `md-${I}`, html: ue });
4140
+ const Ae = Sa(N[1].trim());
4124
4141
  if (Ae.ok)
4125
- O.push({ kind: "visual", key: `visual-${$}`, result: Ae });
4142
+ O.push({ kind: "visual", key: `visual-${I}`, result: Ae });
4126
4143
  else {
4127
4144
  typeof console < "u" && console.warn("[pl-visual] parse_failed", {
4128
4145
  reason: Ae.reason,
@@ -4132,20 +4149,20 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4132
4149
  ...o(N[1].trim())
4133
4150
  });
4134
4151
  const Pe = Ae.fallbackMarkdown ? s(Ae.fallbackMarkdown) : "";
4135
- Pe && O.push({ kind: "markdown", key: `visual-${$}`, html: Pe });
4152
+ Pe && O.push({ kind: "markdown", key: `visual-${I}`, html: Pe });
4136
4153
  }
4137
- I = N.index + N[0].length, $ += 1, N = Z.exec(A);
4154
+ C = N.index + N[0].length, I += 1, N = Z.exec(A);
4138
4155
  }
4139
- const W = A.slice(I), B = E ? b.exec(W) : null;
4156
+ const W = A.slice(C), B = E ? y.exec(W) : null;
4140
4157
  if (B) {
4141
4158
  const J = s(W.slice(0, B.index));
4142
- return J && O.push({ kind: "markdown", key: `md-${$}`, html: J }), O.push({ kind: "pending-visual", key: `pending-${$}` }), O;
4159
+ return J && O.push({ kind: "markdown", key: `md-${I}`, html: J }), O.push({ kind: "pending-visual", key: `pending-${I}` }), O;
4143
4160
  }
4144
4161
  const V = s(W);
4145
- return V && O.push({ kind: "markdown", key: `md-${$}`, html: V }), O;
4162
+ return V && O.push({ kind: "markdown", key: `md-${I}`, html: V }), O;
4146
4163
  }
4147
4164
  d(R, "richTextSegments");
4148
- const y = S(() => {
4165
+ const b = S(() => {
4149
4166
  const k = e.value;
4150
4167
  return k ? R({ text: k, streaming: !!t.streaming }) : [];
4151
4168
  });
@@ -4153,14 +4170,14 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4153
4170
  class: "chat-msg-rich break-words text-[14px] leading-relaxed @sm/chat:text-[15px] @sm/chat:leading-relaxed",
4154
4171
  onErrorCapture: c
4155
4172
  }, [
4156
- (h(!0), f(ee, null, me(y.value, (E) => (h(), f(ee, {
4173
+ (h(!0), f(ee, null, me(b.value, (E) => (h(), f(ee, {
4157
4174
  key: E.key
4158
4175
  }, [
4159
4176
  E.kind === "markdown" ? (h(), f("div", {
4160
4177
  key: 0,
4161
- class: C(["chat-msg-prose", a.inverted ? "chat-msg-prose-invert" : ""]),
4178
+ class: D(["chat-msg-prose", a.inverted ? "chat-msg-prose-invert" : ""]),
4162
4179
  innerHTML: E.html
4163
- }, null, 10, dl)) : E.kind === "visual" ? (h(), kt(ul, {
4180
+ }, null, 10, hl)) : E.kind === "visual" ? (h(), gt(dl, {
4164
4181
  key: 1,
4165
4182
  result: E.result,
4166
4183
  inverted: a.inverted
@@ -4178,12 +4195,12 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4178
4195
  class: "size-2 shrink-0 animate-pulse rounded-full",
4179
4196
  style: { background: "currentcolor" }
4180
4197
  }, null, -1),
4181
- ot(" Preparing chart… ", -1)
4198
+ st(" Preparing chart… ", -1)
4182
4199
  ])], 4))
4183
4200
  ], 64))), 128))
4184
4201
  ], 32));
4185
4202
  }
4186
- }), hl = 80, pl = /* @__PURE__ */ Re({
4203
+ }), pl = 80, fl = /* @__PURE__ */ Re({
4187
4204
  __name: "ChatScroller",
4188
4205
  setup(a, { expose: t }) {
4189
4206
  const e = ge(), n = ge(), i = ge(!0);
@@ -4195,7 +4212,7 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4195
4212
  d(l, "scrollToBottom");
4196
4213
  function o() {
4197
4214
  const c = e.value;
4198
- c && (i.value = c.scrollHeight - c.scrollTop - c.clientHeight <= hl);
4215
+ c && (i.value = c.scrollHeight - c.scrollTop - c.clientHeight <= pl);
4199
4216
  }
4200
4217
  d(o, "onScroll");
4201
4218
  function p() {
@@ -4209,10 +4226,10 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4209
4226
  }), s.observe(n.value));
4210
4227
  }), Hs(() => {
4211
4228
  s?.disconnect();
4212
- }), (c, b) => (h(), f("div", {
4229
+ }), (c, y) => (h(), f("div", {
4213
4230
  ref_key: "viewport",
4214
4231
  ref: e,
4215
- class: C(["overflow-y-auto overflow-x-hidden min-h-0 flex flex-col [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", i.value ? "[overflow-anchor:none]" : ""]),
4232
+ class: D(["overflow-y-auto overflow-x-hidden min-h-0 flex flex-col [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", i.value ? "[overflow-anchor:none]" : ""]),
4216
4233
  onScrollPassive: o
4217
4234
  }, [
4218
4235
  w("div", {
@@ -4224,57 +4241,57 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4224
4241
  ], 512)
4225
4242
  ], 34));
4226
4243
  }
4227
- }), fl = { class: "@container/chat flex flex-col h-full relative" }, ml = {
4244
+ }), ml = { class: "@container/chat flex flex-col h-full relative" }, gl = {
4228
4245
  key: 0,
4229
4246
  class: "pb-4"
4230
- }, gl = {
4247
+ }, vl = {
4231
4248
  key: 1,
4232
4249
  "data-test": "messaging-sdk-header",
4233
4250
  class: "shrink-0 border-b border-theme-100 px-4 py-3"
4234
- }, vl = { class: "flex items-center gap-3" }, xl = { class: "min-w-0 flex-1" }, yl = { class: "truncate text-base font-semibold leading-tight text-theme-900" }, bl = { class: "mt-1 truncate text-sm leading-tight text-theme-500" }, kl = {
4251
+ }, xl = { class: "flex items-center gap-3" }, bl = { class: "min-w-0 flex-1" }, yl = { class: "truncate text-base font-semibold leading-tight text-theme-900" }, kl = { class: "mt-1 truncate text-sm leading-tight text-theme-500" }, wl = {
4235
4252
  key: 0,
4236
4253
  class: "shrink-0 rounded-full bg-theme-50 px-2.5 py-1 font-mono text-[11px] font-medium text-theme-500"
4237
- }, wl = {
4254
+ }, Tl = {
4238
4255
  key: 0,
4239
4256
  "data-test": "messaging-empty-state",
4240
4257
  class: "flex flex-col items-center justify-center px-4"
4241
- }, Tl = { class: "relative mb-4 size-20 @sm/chat:size-24" }, Sl = ["src", "alt"], Al = ["title"], _l = {
4258
+ }, Sl = { class: "relative mb-4 size-20 @sm/chat:size-24" }, Al = ["src", "alt"], _l = ["title"], El = {
4242
4259
  key: 0,
4243
4260
  class: "flex items-center gap-3 py-3 px-2"
4244
- }, El = ["data-journal-outcome"], Rl = ["data-message-id", "data-message-sender", "data-conversation-id", "data-message-sequence", "data-system-kind", "data-issue-code", "data-issue-bucket", "data-issue-action-label", "data-issue-action-url", "data-streaming"], Ml = { class: "max-w-[85%] min-w-0" }, Cl = ["href"], Il = ["data-message-id", "data-message-sender", "data-conversation-id", "data-message-sequence", "data-system-kind", "data-issue-code", "data-issue-bucket", "data-streaming"], $l = ["data-test", "data-message-id", "data-message-sender", "data-conversation-id", "data-message-sequence", "data-system-kind", "data-streaming"], Ll = {
4261
+ }, Rl = ["data-journal-outcome"], Ml = ["data-message-id", "data-message-sender", "data-conversation-id", "data-message-sequence", "data-system-kind", "data-issue-code", "data-issue-bucket", "data-issue-action-label", "data-issue-action-url", "data-streaming"], Cl = { class: "max-w-[85%] min-w-0" }, Il = ["href"], $l = ["data-message-id", "data-message-sender", "data-conversation-id", "data-message-sequence", "data-system-kind", "data-issue-code", "data-issue-bucket", "data-streaming"], Dl = ["data-test", "data-message-id", "data-message-sender", "data-conversation-id", "data-message-sequence", "data-system-kind", "data-streaming"], Ll = {
4245
4262
  key: 0,
4246
4263
  class: "flex-shrink-0 size-7 @sm/chat:size-8"
4247
- }, Dl = ["src", "alt"], Ol = ["src", "alt"], zl = ["src"], Nl = ["href"], Pl = {
4264
+ }, Ol = ["src", "alt"], zl = ["src", "alt"], Nl = ["src"], Pl = ["href"], Bl = {
4248
4265
  key: 0,
4249
4266
  "data-test": "messaging-message-text-part"
4250
- }, Bl = ["src", "alt", "data-attachment-placement"], Fl = ["src", "data-attachment-placement"], Ul = ["href", "data-attachment-placement"], Hl = ["data-journal-outcome"], jl = {
4267
+ }, Fl = ["src", "alt", "data-attachment-placement"], Ul = ["src", "data-attachment-placement"], Hl = ["href", "data-attachment-placement"], jl = ["data-journal-outcome"], Wl = {
4251
4268
  key: 2,
4252
4269
  "data-test": "messaging-tool-activity-tail",
4253
4270
  "aria-label": "Assistant is still working",
4254
4271
  class: "mb-4 grid h-[17px] w-5 place-items-center"
4255
- }, Wl = ["data-journal-outcome"], Gl = ["data-working-description"], Vl = { class: "truncate" }, ql = ["data-issue-code"], Yl = ["href"], Kl = {
4272
+ }, Gl = ["data-journal-outcome"], Vl = ["data-working-description"], ql = { class: "truncate" }, Yl = ["data-issue-code"], Kl = ["href"], Xl = {
4256
4273
  key: 3,
4257
4274
  "data-test": "messaging-thinking-indicator",
4258
4275
  class: "flex gap-2 justify-start items-center mb-4"
4259
- }, Xl = ["src", "alt"], Zl = {
4276
+ }, Zl = ["src", "alt"], Jl = {
4260
4277
  key: 0,
4261
4278
  class: "flex items-center gap-2 px-2 pb-2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
4262
- }, Jl = ["src", "alt"], Ql = { class: "max-w-20 truncate" }, eo = ["onClick"], to = {
4279
+ }, Ql = ["src", "alt"], eo = { class: "max-w-20 truncate" }, to = ["onClick"], no = {
4263
4280
  key: 0,
4264
4281
  class: "shrink-0 flex items-center justify-center size-14"
4265
- }, no = ["data-composer-action"], so = ["disabled", "aria-label", "title"], ao = {
4282
+ }, so = ["data-composer-action"], ao = ["disabled", "aria-label", "title"], io = {
4266
4283
  key: 0,
4267
4284
  class: "i-svg-spinners-ring-resize size-4"
4268
- }, io = {
4285
+ }, ro = {
4269
4286
  key: 1,
4270
4287
  class: "i-tabler-paperclip size-5"
4271
- }, ro = { class: "sr-only" }, lo = ["placeholder", "disabled"], oo = { class: "font-mono text-sm tabular-nums" }, co = ["aria-label", "title"], uo = { class: "sr-only" }, ho = ["data-composer-action", "disabled", "aria-label", "title"], po = {
4288
+ }, lo = { class: "sr-only" }, oo = ["placeholder", "disabled"], co = { class: "font-mono text-sm tabular-nums" }, uo = ["aria-label", "title"], ho = { class: "sr-only" }, po = ["data-composer-action", "disabled", "aria-label", "title"], fo = {
4272
4289
  key: 0,
4273
4290
  class: "i-tabler-player-stop-filled size-4"
4274
- }, fo = {
4291
+ }, mo = {
4275
4292
  key: 1,
4276
4293
  class: "i-tabler-arrow-up size-5"
4277
- }, mo = { class: "sr-only" }, Eo = /* @__PURE__ */ Re({
4294
+ }, go = { class: "sr-only" }, Ro = /* @__PURE__ */ Re({
4278
4295
  __name: "ElAgentChat",
4279
4296
  props: {
4280
4297
  chatController: {},
@@ -4309,29 +4326,29 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4309
4326
  return !ae || ae.sender !== T.sender;
4310
4327
  }
4311
4328
  d(c, "shouldShowAvatar");
4312
- const b = S(() => a.chatController?.textState.value), R = S(() => b.value?.isConnected ?? !1), y = S(() => b.value?.isThinking ?? !1), k = S(() => b.value?.connectionStatus === "disconnected" && !!b.value?.error), A = S(() => b.value?.connectionStatus !== "connected" && !b.value?.error), E = S(() => b.value?.error), O = S(() => a.chatController?.liveTurnBlocks?.value ?? []), Z = S(() => {
4329
+ const y = S(() => a.chatController?.textState.value), R = S(() => y.value?.isConnected ?? !1), b = S(() => y.value?.isThinking ?? !1), k = S(() => y.value?.connectionStatus === "disconnected" && !!y.value?.error), A = S(() => y.value?.connectionStatus !== "connected" && !y.value?.error), E = S(() => y.value?.error), O = S(() => a.chatController?.liveTurnBlocks?.value ?? []), Z = S(() => {
4313
4330
  for (let _ = O.value.length - 1; _ >= 0; _--) {
4314
4331
  const m = O.value[_];
4315
4332
  if (m?.kind === "text")
4316
4333
  return m.id;
4317
4334
  }
4318
- }), I = S(() => a.chatController?.liveStreamMessageId?.value), $ = S(() => {
4335
+ }), C = S(() => a.chatController?.liveStreamMessageId?.value), I = S(() => {
4319
4336
  const _ = a.chatController?.sharedMessages.value ?? [];
4320
- return O.value.length && I.value ? _.filter((m) => m.id !== I.value) : _;
4321
- }), N = S(() => a.chatController?.workJournal?.value ? void 0 : b.value?.workingDescription?.trim() || void 0), W = S(() => a.chatController?.workJournal?.value), B = S(() => {
4337
+ return O.value.length && C.value ? _.filter((m) => m.id !== C.value) : _;
4338
+ }), N = S(() => a.chatController?.workJournal?.value ? void 0 : y.value?.workingDescription?.trim() || void 0), W = S(() => a.chatController?.workJournal?.value), B = S(() => {
4322
4339
  if (!W.value && !O.value.length)
4323
4340
  return;
4324
- const _ = $.value, m = _[_.length - 1];
4341
+ const _ = I.value, m = _[_.length - 1];
4325
4342
  if (m)
4326
4343
  return m.sender === "agent" || m.sender === "system" ? _.length >= 2 ? _[_.length - 2].id : void 0 : m.id;
4327
4344
  }), V = S(() => {
4328
4345
  const _ = {};
4329
- for (const m of $.value) {
4346
+ for (const m of I.value) {
4330
4347
  if (m.sender === "user" || !m.toolActivities?.length)
4331
4348
  continue;
4332
4349
  const T = a.chatController?.workJournalFor?.({
4333
4350
  activities: m.toolActivities,
4334
- outcome: Ia(m),
4351
+ outcome: $a(m),
4335
4352
  includeFailureNote: m.sender !== "system"
4336
4353
  });
4337
4354
  T && (_[m.id] = T);
@@ -4381,20 +4398,20 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4381
4398
  }), ae;
4382
4399
  }
4383
4400
  d(St, "messageRenderParts");
4384
- const De = S(() => b.value?.transientIssue), se = S(() => {
4385
- if (!y.value) return;
4386
- const _ = $.value, m = _[_.length - 1];
4401
+ const Le = S(() => y.value?.transientIssue), se = S(() => {
4402
+ if (!b.value) return;
4403
+ const _ = I.value, m = _[_.length - 1];
4387
4404
  return m?.sender === "agent" || m?.sender === "system" ? m.id : void 0;
4388
- }), st = S(() => !y.value || N.value || W.value || O.value.length ? !1 : se.value === void 0), Ye = S(() => b.value?.sendBlockedReason), at = S(() => !R.value || Ye.value !== void 0), Oe = S(() => k.value ? "Agent is offline" : A.value ? "Connecting..." : Ye.value === "agent_deleted" ? "This assistant was deleted" : Ye.value === "account" ? "Open billing to keep chatting" : "Message"), gt = S(() => a.chatController?.composerState?.value ?? {
4405
+ }), at = S(() => !b.value || N.value || W.value || O.value.length ? !1 : se.value === void 0), Ye = S(() => y.value?.sendBlockedReason), it = S(() => !R.value || Ye.value !== void 0), Oe = S(() => k.value ? "Agent is offline" : A.value ? "Connecting..." : Ye.value === "agent_deleted" ? "This assistant was deleted" : Ye.value === "account" ? "Open billing to keep chatting" : "Message"), vt = S(() => a.chatController?.composerState?.value ?? {
4389
4406
  text: "",
4390
4407
  pendingAttachments: [],
4391
4408
  isUploading: !1
4392
- }), vt = S({
4393
- get: /* @__PURE__ */ d(() => gt.value.text, "get"),
4409
+ }), xt = S({
4410
+ get: /* @__PURE__ */ d(() => vt.value.text, "get"),
4394
4411
  set: /* @__PURE__ */ d((_) => a.chatController?.setComposerText?.({ text: _ }), "set")
4395
- }), Me = S(() => gt.value.pendingAttachments), it = S(() => gt.value.isUploading), Ce = S(() => a.chatController?.voiceRecorder), K = S(() => Ce.value?.isBusy.value ?? !1), ye = S(() => a.chatController?.canAttachFile?.value ?? !1), ie = S(() => a.chatController?.canRecordAudio?.value ?? !1), Ie = S(() => a.chatController?.composerAction?.value ?? "idle"), re = S(() => Ie.value !== "idle"), Be = S(() => Ie.value === "stop" ? "Stop reply" : "Send message"), rt = S(() => Ie.value === "idle" && ie.value && !K.value && !!Ce.value?.canUseBrowserRecording), be = S(() => Ce.value?.isActive.value ?? !1), g = S(() => Ce.value?.elapsedLabel.value ?? "0:00"), M = S(() => Ce.value?.statusText.value ?? "Release to send"), u = S(() => Ce.value?.state.value.phase === "sending" ? "Sending voice message" : be.value ? "Release to send voice message" : "Hold to record voice message"), v = S(() => a.variant === "light"), L = S(
4412
+ }), Me = S(() => vt.value.pendingAttachments), rt = S(() => vt.value.isUploading), Ce = S(() => a.chatController?.voiceRecorder), K = S(() => Ce.value?.isBusy.value ?? !1), be = S(() => a.chatController?.canAttachFile?.value ?? !1), ie = S(() => a.chatController?.canRecordAudio?.value ?? !1), Ie = S(() => a.chatController?.composerAction?.value ?? "idle"), re = S(() => Ie.value !== "idle"), Be = S(() => Ie.value === "stop" ? "Stop reply" : "Send message"), lt = S(() => Ie.value === "idle" && ie.value && !K.value && !!Ce.value?.canUseBrowserRecording), ye = S(() => Ce.value?.isActive.value ?? !1), g = S(() => Ce.value?.elapsedLabel.value ?? "0:00"), M = S(() => Ce.value?.statusText.value ?? "Release to send"), u = S(() => Ce.value?.state.value.phase === "sending" ? "Sending voice message" : ye.value ? "Release to send voice message" : "Hold to record voice message"), v = S(() => a.variant === "light"), $ = S(
4396
4413
  () => v.value ? "bg-gradient-to-r from-transparent via-black/5 to-transparent" : "bg-gradient-to-r from-transparent via-white/5 to-transparent"
4397
- ), D = S(() => v.value ? "text-theme-300" : "text-white/30");
4414
+ ), L = S(() => v.value ? "text-theme-300" : "text-white/30");
4398
4415
  tn(async () => {
4399
4416
  a.chatController && !R.value && await a.chatController.startTextConversation();
4400
4417
  }), Ps(() => {
@@ -4415,7 +4432,7 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4415
4432
  function le() {
4416
4433
  s.value && (s.value.style.height = "auto", s.value.style.height = `${Math.min(s.value.scrollHeight, 150)}px`);
4417
4434
  }
4418
- d(le, "adjustTextareaHeight"), Qt(vt, () => Us(() => le()));
4435
+ d(le, "adjustTextareaHeight"), Qt(xt, () => Us(() => le()));
4419
4436
  function de() {
4420
4437
  l.value?.click();
4421
4438
  }
@@ -4462,98 +4479,98 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4462
4479
  ...Ze ? {} : { year: "numeric" }
4463
4480
  })}, ${oe}`;
4464
4481
  }
4465
- return d(Xe, "formatTimeDivider"), (_, m) => (h(), f("div", fl, [
4466
- v.value ? a.showHeader ? (h(), f("div", gl, [
4467
- w("div", vl, [
4468
- Ne(Qa, {
4482
+ return d(Xe, "formatTimeDivider"), (_, m) => (h(), f("div", ml, [
4483
+ v.value ? a.showHeader ? (h(), f("div", vl, [
4484
+ w("div", xl, [
4485
+ Ne(ei, {
4469
4486
  agent: a.agent,
4470
4487
  "show-status": !0,
4471
4488
  rounded: "full",
4472
4489
  class: "size-10"
4473
4490
  }, null, 8, ["agent"]),
4474
- w("div", xl, [
4491
+ w("div", bl, [
4475
4492
  w("div", yl, j(a.agent.displayName.value), 1),
4476
- w("div", bl, j(a.agent.title.value || "Assistant"), 1)
4493
+ w("div", kl, j(a.agent.title.value || "Assistant"), 1)
4477
4494
  ]),
4478
- a.headerMeta ? (h(), f("span", kl, j(a.headerMeta), 1)) : H("", !0)
4495
+ a.headerMeta ? (h(), f("span", wl, j(a.headerMeta), 1)) : H("", !0)
4479
4496
  ])
4480
- ])) : H("", !0) : (h(), f("div", ml, [
4481
- Ne(Va, {
4497
+ ])) : H("", !0) : (h(), f("div", gl, [
4498
+ Ne(qa, {
4482
4499
  agent: a.agent,
4483
4500
  "is-online": R.value
4484
4501
  }, null, 8, ["agent", "is-online"])
4485
4502
  ])),
4486
4503
  k.value ? (h(), f("div", {
4487
4504
  key: 2,
4488
- class: C(["py-16 flex flex-col items-center justify-center gap-3 text-sm", v.value ? "text-theme-400" : "text-white/60"])
4505
+ class: D(["py-16 flex flex-col items-center justify-center gap-3 text-sm", v.value ? "text-theme-400" : "text-white/60"])
4489
4506
  }, [
4490
4507
  w("i", {
4491
- class: C(["i-heroicons-cloud-arrow-down size-8", v.value ? "text-theme-300" : "text-white/40"])
4508
+ class: D(["i-heroicons-cloud-arrow-down size-8", v.value ? "text-theme-300" : "text-white/40"])
4492
4509
  }, null, 2),
4493
4510
  w("span", null, j(E.value), 1)
4494
4511
  ], 2)) : A.value ? (h(), f("div", {
4495
4512
  key: 3,
4496
- class: C(["py-16 flex flex-col items-center justify-center gap-2 text-sm", v.value ? "text-theme-400" : "text-theme-600"])
4513
+ class: D(["py-16 flex flex-col items-center justify-center gap-2 text-sm", v.value ? "text-theme-400" : "text-theme-600"])
4497
4514
  }, [
4498
4515
  Ne(En, { class: "size-4" })
4499
4516
  ], 2)) : a.setupHint ? (h(), f("div", {
4500
4517
  key: 4,
4501
- class: C(["flex items-center justify-center gap-1.5 py-2 text-[11px]", D.value])
4518
+ class: D(["flex items-center justify-center gap-1.5 py-2 text-[11px]", L.value])
4502
4519
  }, [
4503
4520
  m[19] || (m[19] = w("i", { class: "i-tabler-tool size-3" }, null, -1)),
4504
4521
  w("span", null, j(a.setupHint), 1)
4505
4522
  ], 2)) : H("", !0),
4506
- Ne(pl, {
4523
+ Ne(fl, {
4507
4524
  ref_key: "chatScroller",
4508
4525
  ref: i,
4509
4526
  class: "flex-1"
4510
4527
  }, {
4511
4528
  default: Bs(() => [
4512
4529
  w("div", {
4513
- class: C($.value.length === 0 ? "flex-1 flex flex-col items-center justify-center px-3 pb-[112px]" : "pt-4 pb-[120px] px-3 space-y-2")
4530
+ class: D(I.value.length === 0 ? "flex-1 flex flex-col items-center justify-center px-3 pb-[112px]" : "pt-4 pb-[120px] px-3 space-y-2")
4514
4531
  }, [
4515
- $.value.length === 0 && !A.value && !k.value ? (h(), f("div", wl, [
4516
- w("div", Tl, [
4532
+ I.value.length === 0 && !A.value && !k.value ? (h(), f("div", Tl, [
4533
+ w("div", Sl, [
4517
4534
  w("img", {
4518
4535
  src: a.agent.avatarUrl.value,
4519
4536
  alt: a.agent.displayName.value,
4520
- class: C(["size-full rounded-full object-cover ring-1", v.value ? "ring-black/5" : "ring-white/10"])
4521
- }, null, 10, Sl),
4537
+ class: D(["size-full rounded-full object-cover ring-1", v.value ? "ring-black/5" : "ring-white/10"])
4538
+ }, null, 10, Al),
4522
4539
  R.value ? (h(), f("span", {
4523
4540
  key: 0,
4524
- class: C(["absolute top-[85%] left-[85%] -translate-x-1/2 -translate-y-1/2 size-[18%] min-w-2.5 min-h-2.5 flex items-center justify-center rounded-full", v.value ? "bg-white" : "bg-theme-900"])
4541
+ class: D(["absolute top-[85%] left-[85%] -translate-x-1/2 -translate-y-1/2 size-[18%] min-w-2.5 min-h-2.5 flex items-center justify-center rounded-full", v.value ? "bg-white" : "bg-theme-900"])
4525
4542
  }, [...m[20] || (m[20] = [
4526
4543
  w("span", { class: "size-[70%] inline-flex rounded-full bg-emerald-500" }, null, -1)
4527
4544
  ])], 2)) : H("", !0)
4528
4545
  ]),
4529
4546
  w("div", {
4530
- class: C(["text-base @sm/chat:text-lg font-semibold", v.value ? "text-theme-900" : "text-white"])
4547
+ class: D(["text-base @sm/chat:text-lg font-semibold", v.value ? "text-theme-900" : "text-white"])
4531
4548
  }, j(a.agent.displayName.value), 3),
4532
4549
  w("p", {
4533
- class: C(["mt-1 text-center text-xs @sm/chat:text-sm", D.value])
4550
+ class: D(["mt-1 text-center text-xs @sm/chat:text-sm", L.value])
4534
4551
  }, j(a.emptyStateMessage || "Type your message to get started."), 3),
4535
4552
  w("div", {
4536
- class: C(["inline-flex items-center gap-1.5 mt-5 px-2.5 py-1 rounded-full text-[11px]", v.value ? "bg-theme-50 border border-theme-100 text-theme-400" : "bg-white/10 border border-white/20 text-white/40"]),
4553
+ class: D(["inline-flex items-center gap-1.5 mt-5 px-2.5 py-1 rounded-full text-[11px]", v.value ? "bg-theme-50 border border-theme-100 text-theme-400" : "bg-white/10 border border-white/20 text-white/40"]),
4537
4554
  title: e.value.tooltip
4538
4555
  }, [
4539
4556
  w("i", {
4540
- class: C([e.value.icon, "size-3"])
4557
+ class: D([e.value.icon, "size-3"])
4541
4558
  }, null, 2),
4542
4559
  w("span", null, j(e.value.label), 1)
4543
- ], 10, Al)
4560
+ ], 10, _l)
4544
4561
  ])) : H("", !0),
4545
- (h(!0), f(ee, null, me($.value, (T, ae) => (h(), f(ee, {
4562
+ (h(!0), f(ee, null, me(I.value, (T, ae) => (h(), f(ee, {
4546
4563
  key: T.id
4547
4564
  }, [
4548
- Fe($.value, ae) ? (h(), f("div", _l, [
4565
+ Fe(I.value, ae) ? (h(), f("div", El, [
4549
4566
  w("div", {
4550
- class: C(["flex-1 h-px", L.value])
4567
+ class: D(["flex-1 h-px", $.value])
4551
4568
  }, null, 2),
4552
4569
  w("span", {
4553
- class: C(["text-[10px] @sm/chat:text-[11px] font-medium shrink-0 tracking-widest uppercase", D.value])
4554
- }, j(Fe($.value, ae)), 3),
4570
+ class: D(["text-[10px] @sm/chat:text-[11px] font-medium shrink-0 tracking-widest uppercase", L.value])
4571
+ }, j(Fe(I.value, ae)), 3),
4555
4572
  w("div", {
4556
- class: C(["flex-1 h-px", L.value])
4573
+ class: D(["flex-1 h-px", $.value])
4557
4574
  }, null, 2)
4558
4575
  ])) : H("", !0),
4559
4576
  J(T) ? (h(), f("div", {
@@ -4566,7 +4583,7 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4566
4583
  model: J(T),
4567
4584
  "is-light": v.value
4568
4585
  }, null, 8, ["model", "is-light"])
4569
- ], 8, El)) : H("", !0),
4586
+ ], 8, Rl)) : H("", !0),
4570
4587
  p(T) ? (h(), f("div", {
4571
4588
  key: 2,
4572
4589
  "data-test": "messaging-system-msg",
@@ -4582,21 +4599,21 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4582
4599
  "data-streaming": T.id === se.value ? "true" : void 0,
4583
4600
  class: "flex gap-2 items-end justify-start mb-4"
4584
4601
  }, [
4585
- w("div", Ml, [
4602
+ w("div", Cl, [
4586
4603
  w("div", {
4587
- class: C(["mb-1 pl-1 text-[11px] font-medium", v.value ? "text-theme-500" : "text-white/45"])
4604
+ class: D(["mb-1 pl-1 text-[11px] font-medium", v.value ? "text-theme-500" : "text-white/45"])
4588
4605
  }, " System Message ", 2),
4589
4606
  w("div", {
4590
- class: C(["rounded-2xl rounded-bl-[4px] px-3.5 py-2 border system-msg-content", v.value ? "bg-theme-100 border-theme-200 text-theme-800" : "bg-white/[0.18] border-white/15 text-white/90"])
4607
+ class: D(["rounded-2xl rounded-bl-[4px] px-3.5 py-2 border system-msg-content", v.value ? "bg-theme-100 border-theme-200 text-theme-800" : "bg-white/[0.18] border-white/15 text-white/90"])
4591
4608
  }, [
4592
- T.text ? (h(), kt(Kt, {
4609
+ T.text ? (h(), gt(Kt, {
4593
4610
  key: 0,
4594
4611
  text: T.text,
4595
4612
  inverted: !v.value,
4596
4613
  streaming: T.id === se.value,
4597
- onClick: m[0] || (m[0] = Le(() => {
4614
+ onClick: m[0] || (m[0] = De(() => {
4598
4615
  }, ["stop"]))
4599
- }, null, 8, ["text", "inverted", "streaming"])) : T.issue?.help ? (h(), kt(Kt, {
4616
+ }, null, 8, ["text", "inverted", "streaming"])) : T.issue?.help ? (h(), gt(Kt, {
4600
4617
  key: 1,
4601
4618
  text: T.issue.help,
4602
4619
  inverted: !v.value
@@ -4605,16 +4622,16 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4605
4622
  key: 2,
4606
4623
  href: T.issue.actionUrl,
4607
4624
  "data-test": "messaging-system-msg-action",
4608
- class: C(["mt-2 text-[12px] font-medium inline-flex items-center gap-1", v.value ? "text-theme-900 hover:text-theme-700" : "text-white hover:text-white/80"]),
4609
- onClick: m[1] || (m[1] = Le(() => {
4625
+ class: D(["mt-2 text-[12px] font-medium inline-flex items-center gap-1", v.value ? "text-theme-900 hover:text-theme-700" : "text-white hover:text-white/80"]),
4626
+ onClick: m[1] || (m[1] = De(() => {
4610
4627
  }, ["stop"]))
4611
4628
  }, [
4612
- ot(j(T.issue.actionLabel) + " ", 1),
4629
+ st(j(T.issue.actionLabel) + " ", 1),
4613
4630
  m[21] || (m[21] = w("i", { class: "i-tabler-arrow-right size-3" }, null, -1))
4614
- ], 10, Cl)) : H("", !0)
4631
+ ], 10, Il)) : H("", !0)
4615
4632
  ], 2)
4616
4633
  ])
4617
- ], 8, Rl)) : T.sender === "system" ? (h(), f("div", {
4634
+ ], 8, Ml)) : T.sender === "system" ? (h(), f("div", {
4618
4635
  key: 3,
4619
4636
  "data-test": "messaging-system-status-msg",
4620
4637
  "data-message-id": T.id,
@@ -4625,16 +4642,16 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4625
4642
  "data-issue-code": T.issue?.code,
4626
4643
  "data-issue-bucket": T.issue?.bucket,
4627
4644
  "data-streaming": T.id === se.value ? "true" : void 0,
4628
- class: C(["flex items-start gap-2 px-3 py-2 text-[13px] leading-relaxed", v.value ? "text-theme-500" : "text-white/60"])
4645
+ class: D(["flex items-start gap-2 px-3 py-2 text-[13px] leading-relaxed", v.value ? "text-theme-500" : "text-white/60"])
4629
4646
  }, [
4630
4647
  m[22] || (m[22] = w("i", { class: "i-tabler-info-circle size-4 mt-0.5 shrink-0" }, null, -1)),
4631
4648
  Ne(Kt, {
4632
4649
  text: T.text,
4633
4650
  inverted: !v.value,
4634
- onClick: m[2] || (m[2] = Le(() => {
4651
+ onClick: m[2] || (m[2] = De(() => {
4635
4652
  }, ["stop"]))
4636
4653
  }, null, 8, ["text", "inverted"])
4637
- ], 10, Il)) : (h(), f("div", {
4654
+ ], 10, $l)) : (h(), f("div", {
4638
4655
  key: 4,
4639
4656
  "data-test": T.sender === "agent" ? "messaging-assistant-msg" : T.sender === "user" ? "messaging-user-msg" : void 0,
4640
4657
  "data-message-id": T.id,
@@ -4643,29 +4660,29 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4643
4660
  "data-message-sequence": T.sequence,
4644
4661
  "data-system-kind": T.systemKind,
4645
4662
  "data-streaming": T.id === se.value ? "true" : void 0,
4646
- class: C(["flex gap-2 items-end", {
4663
+ class: D(["flex gap-2 items-end", {
4647
4664
  "justify-end": T.sender === "user",
4648
4665
  "justify-start": T.sender === "agent",
4649
4666
  // Group-aware rhythm: tight (space-y) within a speaker's turn,
4650
4667
  // generous at the boundary between speakers (end of a group).
4651
- "mb-6": c($.value, ae)
4668
+ "mb-6": c(I.value, ae)
4652
4669
  }])
4653
4670
  }, [
4654
4671
  T.sender === "agent" ? (h(), f("div", Ll, [
4655
- c($.value, ae) ? (h(), f("img", {
4672
+ c(I.value, ae) ? (h(), f("img", {
4656
4673
  key: 0,
4657
4674
  src: a.agent.avatarUrl.value,
4658
4675
  alt: a.agent.displayName.value,
4659
- class: C(["size-6 @sm/chat:size-7 rounded-full object-cover shadow-sm", v.value ? "ring-1 ring-black/5" : ""])
4660
- }, null, 10, Dl)) : H("", !0)
4676
+ class: D(["size-6 @sm/chat:size-7 rounded-full object-cover shadow-sm", v.value ? "ring-1 ring-black/5" : ""])
4677
+ }, null, 10, Ol)) : H("", !0)
4661
4678
  ])) : H("", !0),
4662
4679
  w("div", {
4663
4680
  "data-test": "messaging-message-body",
4664
- class: C(T.sender === "user" ? "max-w-[min(75%,22rem)]" : "max-w-[min(82%,68ch)]")
4681
+ class: D(T.sender === "user" ? "max-w-[min(75%,22rem)]" : "max-w-[min(82%,68ch)]")
4665
4682
  }, [
4666
4683
  Pe(T).length ? (h(), f("div", {
4667
4684
  key: 0,
4668
- class: C(["mb-1 space-y-1", T.sender === "user" ? "flex flex-col items-end" : ""])
4685
+ class: D(["mb-1 space-y-1", T.sender === "user" ? "flex flex-col items-end" : ""])
4669
4686
  }, [
4670
4687
  (h(!0), f(ee, null, me(Pe(T), ({ attachment: U, index: oe }) => (h(), f(ee, {
4671
4688
  key: Ae(U, oe)
@@ -4677,43 +4694,43 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4677
4694
  "data-test": "messaging-attachment",
4678
4695
  "data-attachment-placement": "block",
4679
4696
  class: "rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"
4680
- }, null, 8, Ol)) : U.type === "audio" ? (h(), f("audio", {
4697
+ }, null, 8, zl)) : U.type === "audio" ? (h(), f("audio", {
4681
4698
  key: 1,
4682
4699
  src: U.src,
4683
4700
  controls: "",
4684
4701
  "data-test": "messaging-attachment",
4685
4702
  "data-attachment-placement": "block",
4686
4703
  class: "max-w-full"
4687
- }, null, 8, zl)) : (h(), f("a", {
4704
+ }, null, 8, Nl)) : (h(), f("a", {
4688
4705
  key: 2,
4689
4706
  href: U.src,
4690
4707
  target: "_blank",
4691
4708
  rel: "noopener",
4692
4709
  "data-test": "messaging-attachment",
4693
4710
  "data-attachment-placement": "block",
4694
- class: C(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", v.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
4711
+ class: D(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", v.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
4695
4712
  }, [
4696
4713
  m[23] || (m[23] = w("i", { class: "i-tabler-file size-3.5" }, null, -1)),
4697
- ot(" " + j(U.filename), 1)
4698
- ], 10, Nl))
4714
+ st(" " + j(U.filename), 1)
4715
+ ], 10, Pl))
4699
4716
  ], 64))), 128))
4700
4717
  ], 2)) : H("", !0),
4701
4718
  St(T).length ? (h(), f("div", {
4702
4719
  key: 1,
4703
4720
  "data-test": "messaging-message-content",
4704
- class: C(
4721
+ class: D(
4705
4722
  T.sender === "user" ? v.value ? "rounded-2xl px-3.5 py-2 bg-theme-900 text-theme-0" : "rounded-2xl px-3.5 py-2 bg-theme-0 text-theme-950" : v.value ? "text-theme-800" : "text-white/95"
4706
4723
  )
4707
4724
  }, [
4708
4725
  (h(!0), f(ee, null, me(St(T), (U) => (h(), f(ee, {
4709
4726
  key: U.key
4710
4727
  }, [
4711
- U.kind === "text" && U.text ? (h(), f("div", Pl, [
4728
+ U.kind === "text" && U.text ? (h(), f("div", Bl, [
4712
4729
  Ne(Kt, {
4713
4730
  text: U.text,
4714
4731
  inverted: T.sender === "user" || !v.value,
4715
4732
  streaming: T.id === se.value,
4716
- onClick: m[3] || (m[3] = Le(() => {
4733
+ onClick: m[3] || (m[3] = De(() => {
4717
4734
  }, ["stop"]))
4718
4735
  }, null, 8, ["text", "inverted", "streaming"])
4719
4736
  ])) : U.kind === "attachment" && U.attachment.type === "image" ? (h(), f("img", {
@@ -4723,29 +4740,29 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4723
4740
  "data-test": "messaging-attachment",
4724
4741
  "data-attachment-placement": U.placement,
4725
4742
  class: "my-2 rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"
4726
- }, null, 8, Bl)) : U.kind === "attachment" && U.attachment.type === "audio" ? (h(), f("audio", {
4743
+ }, null, 8, Fl)) : U.kind === "attachment" && U.attachment.type === "audio" ? (h(), f("audio", {
4727
4744
  key: 2,
4728
4745
  src: U.attachment.src,
4729
4746
  controls: "",
4730
4747
  "data-test": "messaging-attachment",
4731
4748
  "data-attachment-placement": U.placement,
4732
4749
  class: "my-2 max-w-full"
4733
- }, null, 8, Fl)) : U.kind === "attachment" ? (h(), f("a", {
4750
+ }, null, 8, Ul)) : U.kind === "attachment" ? (h(), f("a", {
4734
4751
  key: 3,
4735
4752
  href: U.attachment.src,
4736
4753
  target: "_blank",
4737
4754
  rel: "noopener",
4738
4755
  "data-test": "messaging-attachment",
4739
4756
  "data-attachment-placement": U.placement,
4740
- class: C(["my-2 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", v.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
4757
+ class: D(["my-2 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", v.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
4741
4758
  }, [
4742
4759
  m[24] || (m[24] = w("i", { class: "i-tabler-file size-3.5" }, null, -1)),
4743
- ot(" " + j(U.attachment.filename), 1)
4744
- ], 10, Ul)) : H("", !0)
4760
+ st(" " + j(U.attachment.filename), 1)
4761
+ ], 10, Hl)) : H("", !0)
4745
4762
  ], 64))), 128))
4746
4763
  ], 2)) : H("", !0)
4747
4764
  ], 2)
4748
- ], 10, $l)),
4765
+ ], 10, Dl)),
4749
4766
  T.id === B.value ? (h(), f(ee, { key: 5 }, [
4750
4767
  O.value.length ? (h(!0), f(ee, { key: 0 }, me(O.value, (U) => (h(), f(ee, {
4751
4768
  key: U.id
@@ -4760,21 +4777,21 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4760
4777
  model: U.journal,
4761
4778
  "is-light": v.value
4762
4779
  }, null, 8, ["model", "is-light"])
4763
- ], 8, Hl)) : U.kind === "text" && U.content ? (h(), f("div", {
4780
+ ], 8, jl)) : U.kind === "text" && U.content ? (h(), f("div", {
4764
4781
  key: 1,
4765
4782
  "data-test": "messaging-live-text-block",
4766
- class: C(["mb-4", v.value ? "text-theme-800" : "text-white/95"])
4783
+ class: D(["mb-4", v.value ? "text-theme-800" : "text-white/95"])
4767
4784
  }, [
4768
4785
  Ne(Kt, {
4769
4786
  text: U.content,
4770
4787
  inverted: !v.value,
4771
4788
  streaming: U.id === Z.value,
4772
- onClick: m[4] || (m[4] = Le(() => {
4789
+ onClick: m[4] || (m[4] = De(() => {
4773
4790
  }, ["stop"]))
4774
4791
  }, null, 8, ["text", "inverted", "streaming"])
4775
- ], 2)) : (h(), f("div", jl, [
4792
+ ], 2)) : (h(), f("div", Wl, [
4776
4793
  Ne(En, {
4777
- class: C(["size-3.5", v.value ? "text-theme-500" : "text-white/70"])
4794
+ class: D(["size-3.5", v.value ? "text-theme-500" : "text-white/70"])
4778
4795
  }, null, 8, ["class"])
4779
4796
  ]))
4780
4797
  ], 64))), 128)) : W.value ? (h(), f("div", {
@@ -4787,53 +4804,53 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4787
4804
  model: W.value,
4788
4805
  "is-light": v.value
4789
4806
  }, null, 8, ["model", "is-light"])
4790
- ], 8, Wl)) : H("", !0)
4807
+ ], 8, Gl)) : H("", !0)
4791
4808
  ], 64)) : H("", !0)
4792
4809
  ], 64))), 128)),
4793
4810
  N.value ? (h(), f("div", {
4794
4811
  key: 1,
4795
4812
  "data-test": "messaging-working-state",
4796
4813
  "data-working-description": N.value,
4797
- class: C(["flex items-center gap-1.5 pl-2 pr-3 pb-1 mb-3 text-[12px] leading-none", v.value ? "text-theme-500" : "text-white/45"])
4814
+ class: D(["flex items-center gap-1.5 pl-2 pr-3 pb-1 mb-3 text-[12px] leading-none", v.value ? "text-theme-500" : "text-white/45"])
4798
4815
  }, [
4799
4816
  m[25] || (m[25] = w("i", {
4800
4817
  class: "i-tabler-loader-2 size-3.5 shrink-0 animate-spin opacity-70",
4801
4818
  "aria-hidden": "true"
4802
4819
  }, null, -1)),
4803
- w("span", Vl, j(N.value), 1)
4804
- ], 10, Gl)) : H("", !0),
4805
- De.value ? (h(), f("div", {
4820
+ w("span", ql, j(N.value), 1)
4821
+ ], 10, Vl)) : H("", !0),
4822
+ Le.value ? (h(), f("div", {
4806
4823
  key: 2,
4807
4824
  "data-test": "messaging-transient-issue",
4808
- "data-issue-code": De.value.code,
4809
- class: C(["flex items-center gap-1.5 pl-2 pr-3 pb-1 mb-3 text-[12px] leading-snug", v.value ? "text-theme-600" : "text-white/60"])
4825
+ "data-issue-code": Le.value.code,
4826
+ class: D(["flex items-center gap-1.5 pl-2 pr-3 pb-1 mb-3 text-[12px] leading-snug", v.value ? "text-theme-600" : "text-white/60"])
4810
4827
  }, [
4811
4828
  m[26] || (m[26] = w("i", {
4812
4829
  class: "i-tabler-alert-circle size-3.5 shrink-0 text-red-500",
4813
4830
  "aria-hidden": "true"
4814
4831
  }, null, -1)),
4815
4832
  w("span", null, [
4816
- ot(j(De.value.message), 1),
4817
- De.value.help ? (h(), f(ee, { key: 0 }, [
4818
- ot(j(De.value.help), 1)
4833
+ st(j(Le.value.message), 1),
4834
+ Le.value.help ? (h(), f(ee, { key: 0 }, [
4835
+ st(j(Le.value.help), 1)
4819
4836
  ], 64)) : H("", !0)
4820
4837
  ]),
4821
- De.value.actionUrl && De.value.actionLabel ? (h(), f("a", {
4838
+ Le.value.actionUrl && Le.value.actionLabel ? (h(), f("a", {
4822
4839
  key: 0,
4823
- href: De.value.actionUrl,
4840
+ href: Le.value.actionUrl,
4824
4841
  class: "shrink-0 underline underline-offset-2",
4825
- onClick: m[5] || (m[5] = Le(() => {
4842
+ onClick: m[5] || (m[5] = De(() => {
4826
4843
  }, ["stop"]))
4827
- }, j(De.value.actionLabel), 9, Yl)) : H("", !0)
4828
- ], 10, ql)) : H("", !0),
4829
- st.value ? (h(), f("div", Kl, [
4844
+ }, j(Le.value.actionLabel), 9, Kl)) : H("", !0)
4845
+ ], 10, Yl)) : H("", !0),
4846
+ at.value ? (h(), f("div", Xl, [
4830
4847
  w("img", {
4831
4848
  src: a.agent.avatarUrl.value,
4832
4849
  alt: a.agent.displayName.value,
4833
- class: C(["size-7 @sm/chat:size-8 flex-shrink-0 rounded-full object-cover shadow-sm", v.value ? "ring-1 ring-black/5" : ""])
4834
- }, null, 10, Xl),
4850
+ class: D(["size-7 @sm/chat:size-8 flex-shrink-0 rounded-full object-cover shadow-sm", v.value ? "ring-1 ring-black/5" : ""])
4851
+ }, null, 10, Zl),
4835
4852
  w("i", {
4836
- class: C(["i-svg-spinners-3-dots-bounce size-7", v.value ? "text-theme-400" : "text-white/50"]),
4853
+ class: D(["i-svg-spinners-3-dots-bounce size-7", v.value ? "text-theme-400" : "text-white/50"]),
4837
4854
  "aria-hidden": "true"
4838
4855
  }, null, 2)
4839
4856
  ])) : H("", !0)
@@ -4842,9 +4859,9 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4842
4859
  _: 1
4843
4860
  }, 512),
4844
4861
  w("div", {
4845
- class: C(["absolute bottom-0 left-0 right-0 z-30 px-5 pb-4 pt-3", v.value ? "bg-gradient-to-t from-theme-50/90 via-theme-50/55 to-transparent" : "bg-gradient-to-t from-black/80 via-black/70 to-black/40"])
4862
+ class: D(["absolute bottom-0 left-0 right-0 z-30 px-5 pb-4 pt-3", v.value ? "bg-gradient-to-t from-theme-50/90 via-theme-50/55 to-transparent" : "bg-gradient-to-t from-black/80 via-black/70 to-black/40"])
4846
4863
  }, [
4847
- Me.value.length > 0 ? (h(), f("div", Zl, [
4864
+ Me.value.length > 0 ? (h(), f("div", Jl, [
4848
4865
  (h(!0), f(ee, null, me(Me.value, (T, ae) => (h(), f("div", {
4849
4866
  key: ae,
4850
4867
  class: "relative shrink-0 group"
@@ -4853,26 +4870,26 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4853
4870
  key: 0,
4854
4871
  src: T.src,
4855
4872
  alt: T.filename,
4856
- class: C(["size-14 rounded-xl object-cover border", v.value ? "border-black/10" : "border-white/20"])
4857
- }, null, 10, Jl)) : (h(), f("div", {
4873
+ class: D(["size-14 rounded-xl object-cover border", v.value ? "border-black/10" : "border-white/20"])
4874
+ }, null, 10, Ql)) : (h(), f("div", {
4858
4875
  key: 1,
4859
- class: C(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", v.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
4876
+ class: D(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", v.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
4860
4877
  }, [
4861
4878
  m[27] || (m[27] = w("i", { class: "i-tabler-file size-4" }, null, -1)),
4862
- w("span", Ql, j(T.filename), 1)
4879
+ w("span", eo, j(T.filename), 1)
4863
4880
  ], 2)),
4864
4881
  w("button", {
4865
4882
  class: "absolute -top-1.5 -right-1.5 size-5 flex items-center justify-center rounded-full bg-theme-800 text-white text-xs scale-0 group-hover:scale-100 transition-transform cursor-pointer",
4866
4883
  onClick: /* @__PURE__ */ d((U) => Ke(ae), "onClick")
4867
4884
  }, [...m[28] || (m[28] = [
4868
4885
  w("i", { class: "i-tabler-x size-3" }, null, -1)
4869
- ])], 8, eo)
4886
+ ])], 8, to)
4870
4887
  ]))), 128)),
4871
- it.value ? (h(), f("div", to, [
4888
+ rt.value ? (h(), f("div", no, [
4872
4889
  Ne(En, { class: "size-5" })
4873
4890
  ])) : H("", !0)
4874
4891
  ])) : H("", !0),
4875
- ye.value ? (h(), f("input", {
4892
+ be.value ? (h(), f("input", {
4876
4893
  key: 1,
4877
4894
  ref_key: "fileInput",
4878
4895
  ref: l,
@@ -4884,94 +4901,94 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4884
4901
  w("div", {
4885
4902
  "data-test": "messaging-composer",
4886
4903
  "data-composer-action": Ie.value,
4887
- class: C(["flex items-end gap-1 w-full rounded-[24px] p-1.5 transition-colors duration-200", v.value ? n.value ? "bg-theme-50 ring-1 ring-theme-300" : "bg-theme-25 ring-1 ring-theme-200 hover:ring-theme-300" : n.value ? "bg-white/15 ring-1 ring-white/25" : "bg-white/10 ring-1 ring-transparent hover:ring-white/15"])
4904
+ class: D(["flex items-end gap-1 w-full rounded-[24px] p-1.5 transition-colors duration-200", v.value ? n.value ? "bg-theme-50 ring-1 ring-theme-300" : "bg-theme-25 ring-1 ring-theme-200 hover:ring-theme-300" : n.value ? "bg-white/15 ring-1 ring-white/25" : "bg-white/10 ring-1 ring-transparent hover:ring-white/15"])
4888
4905
  }, [
4889
4906
  w("button", {
4890
- class: C(["shrink-0 flex items-center justify-center rounded-full transition-colors mb-0.5 ml-0.5 size-9 @sm/chat:size-10", [
4891
- ye.value ? "cursor-pointer" : "cursor-default",
4907
+ class: D(["shrink-0 flex items-center justify-center rounded-full transition-colors mb-0.5 ml-0.5 size-9 @sm/chat:size-10", [
4908
+ be.value ? "cursor-pointer" : "cursor-default",
4892
4909
  v.value ? "text-theme-400 hover:text-theme-600 hover:bg-black/5" : "text-white/50 hover:text-white/80 hover:bg-white/10",
4893
- it.value || K.value ? "opacity-50 pointer-events-none" : ""
4910
+ rt.value || K.value ? "opacity-50 pointer-events-none" : ""
4894
4911
  ]]),
4895
- disabled: at.value || it.value || K.value || !ye.value,
4896
- "aria-label": ye.value ? "Attach file" : "File attachments unavailable",
4897
- title: ye.value ? "Attach file" : "File attachments unavailable",
4898
- onClick: m[6] || (m[6] = (T) => ye.value && de())
4912
+ disabled: it.value || rt.value || K.value || !be.value,
4913
+ "aria-label": be.value ? "Attach file" : "File attachments unavailable",
4914
+ title: be.value ? "Attach file" : "File attachments unavailable",
4915
+ onClick: m[6] || (m[6] = (T) => be.value && de())
4899
4916
  }, [
4900
- it.value ? (h(), f("i", ao)) : (h(), f("i", io)),
4901
- w("span", ro, j(ye.value ? "Attach file" : "File attachments unavailable"), 1)
4902
- ], 10, so),
4903
- be.value ? (h(), f("div", {
4917
+ rt.value ? (h(), f("i", io)) : (h(), f("i", ro)),
4918
+ w("span", lo, j(be.value ? "Attach file" : "File attachments unavailable"), 1)
4919
+ ], 10, ao),
4920
+ ye.value ? (h(), f("div", {
4904
4921
  key: 1,
4905
4922
  "data-test": "messaging-recording-state",
4906
- class: C(["flex min-w-0 flex-1 items-center gap-2 px-1 py-2", v.value ? "text-theme-700" : "text-white/80"])
4923
+ class: D(["flex min-w-0 flex-1 items-center gap-2 px-1 py-2", v.value ? "text-theme-700" : "text-white/80"])
4907
4924
  }, [
4908
4925
  m[29] || (m[29] = w("span", { class: "size-2.5 shrink-0 rounded-full bg-red-500" }, null, -1)),
4909
- w("span", oo, j(g.value), 1),
4926
+ w("span", co, j(g.value), 1),
4910
4927
  w("span", {
4911
- class: C(["min-w-0 truncate text-sm", v.value ? "text-theme-400" : "text-white/45"])
4928
+ class: D(["min-w-0 truncate text-sm", v.value ? "text-theme-400" : "text-white/45"])
4912
4929
  }, j(M.value), 3)
4913
4930
  ], 2)) : Fs((h(), f("textarea", {
4914
4931
  key: 0,
4915
4932
  ref_key: "textarea",
4916
4933
  ref: s,
4917
- "onUpdate:modelValue": m[7] || (m[7] = (T) => vt.value = T),
4934
+ "onUpdate:modelValue": m[7] || (m[7] = (T) => xt.value = T),
4918
4935
  "data-test": "messaging-input",
4919
4936
  rows: "1",
4920
4937
  enterkeyhint: "send",
4921
4938
  placeholder: Oe.value,
4922
- disabled: at.value,
4939
+ disabled: it.value,
4923
4940
  style: { fontSize: "16px", resize: "none" },
4924
- class: C(["flex-1 min-w-0 bg-transparent px-1 py-2 focus:outline-none disabled:opacity-50 overflow-y-auto leading-relaxed [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", v.value ? "text-theme-800 placeholder-theme-400" : "text-white placeholder-white/50"]),
4941
+ class: D(["flex-1 min-w-0 bg-transparent px-1 py-2 focus:outline-none disabled:opacity-50 overflow-y-auto leading-relaxed [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", v.value ? "text-theme-800 placeholder-theme-400" : "text-white placeholder-white/50"]),
4925
4942
  onKeydown: ke,
4926
4943
  onFocus: m[8] || (m[8] = (T) => n.value = !0),
4927
4944
  onBlur: m[9] || (m[9] = (T) => n.value = !1)
4928
- }, null, 42, lo)), [
4929
- [ka, vt.value]
4945
+ }, null, 42, oo)), [
4946
+ [wa, xt.value]
4930
4947
  ]),
4931
- rt.value || be.value ? (h(), f("button", {
4948
+ lt.value || ye.value ? (h(), f("button", {
4932
4949
  key: 2,
4933
4950
  "data-test": "messaging-record-audio-btn",
4934
- class: C(["mb-0.5 mr-0.5 flex size-9 shrink-0 items-center justify-center rounded-full transition-transform duration-200 @sm/chat:size-10", be.value ? "bg-theme-900 text-theme-0 scale-105 cursor-pointer" : v.value ? "text-theme-500 hover:bg-black/5 hover:text-theme-700 cursor-pointer" : "text-white/60 hover:bg-white/10 hover:text-white cursor-pointer"]),
4951
+ class: D(["mb-0.5 mr-0.5 flex size-9 shrink-0 items-center justify-center rounded-full transition-transform duration-200 @sm/chat:size-10", ye.value ? "bg-theme-900 text-theme-0 scale-105 cursor-pointer" : v.value ? "text-theme-500 hover:bg-black/5 hover:text-theme-700 cursor-pointer" : "text-white/60 hover:bg-white/10 hover:text-white cursor-pointer"]),
4935
4952
  "aria-label": u.value,
4936
4953
  title: u.value,
4937
- onPointerdown: m[10] || (m[10] = Le((T) => je(), ["prevent"])),
4938
- onPointerup: m[11] || (m[11] = Le((T) => ze({ cancelled: !1 }), ["prevent"])),
4939
- onPointercancel: m[12] || (m[12] = Le((T) => ze({ cancelled: !0 }), ["prevent"])),
4954
+ onPointerdown: m[10] || (m[10] = De((T) => je(), ["prevent"])),
4955
+ onPointerup: m[11] || (m[11] = De((T) => ze({ cancelled: !1 }), ["prevent"])),
4956
+ onPointercancel: m[12] || (m[12] = De((T) => ze({ cancelled: !0 }), ["prevent"])),
4940
4957
  onKeydown: [
4941
- m[13] || (m[13] = jt(Le((T) => je(), ["prevent"]), ["enter"])),
4942
- m[15] || (m[15] = jt(Le((T) => je(), ["prevent"]), ["space"])),
4943
- m[17] || (m[17] = jt(Le((T) => ze({ cancelled: !0 }), ["prevent"]), ["escape"]))
4958
+ m[13] || (m[13] = jt(De((T) => je(), ["prevent"]), ["enter"])),
4959
+ m[15] || (m[15] = jt(De((T) => je(), ["prevent"]), ["space"])),
4960
+ m[17] || (m[17] = jt(De((T) => ze({ cancelled: !0 }), ["prevent"]), ["escape"]))
4944
4961
  ],
4945
4962
  onKeyup: [
4946
- m[14] || (m[14] = jt(Le((T) => ze({ cancelled: !1 }), ["prevent"]), ["enter"])),
4947
- m[16] || (m[16] = jt(Le((T) => ze({ cancelled: !1 }), ["prevent"]), ["space"]))
4963
+ m[14] || (m[14] = jt(De((T) => ze({ cancelled: !1 }), ["prevent"]), ["enter"])),
4964
+ m[16] || (m[16] = jt(De((T) => ze({ cancelled: !1 }), ["prevent"]), ["space"]))
4948
4965
  ]
4949
4966
  }, [
4950
4967
  w("i", {
4951
- class: C([be.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-5"])
4968
+ class: D([ye.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-5"])
4952
4969
  }, null, 2),
4953
- w("span", uo, j(u.value), 1)
4954
- ], 42, co)) : (h(), f("button", {
4970
+ w("span", ho, j(u.value), 1)
4971
+ ], 42, uo)) : (h(), f("button", {
4955
4972
  key: 3,
4956
4973
  "data-test": "messaging-send-btn",
4957
4974
  "data-composer-action": Ie.value,
4958
- class: C(["shrink-0 flex items-center justify-center rounded-full transition-transform duration-200 mb-0.5 mr-0.5 size-9 @sm/chat:size-10", re.value ? v.value ? "bg-theme-900 text-theme-0 hover:scale-105 active:scale-95 cursor-pointer" : "bg-theme-0 text-theme-950 hover:scale-105 active:scale-95 cursor-pointer" : v.value ? "bg-black/5 text-black/20" : "bg-white/10 text-white/30"]),
4975
+ class: D(["shrink-0 flex items-center justify-center rounded-full transition-transform duration-200 mb-0.5 mr-0.5 size-9 @sm/chat:size-10", re.value ? v.value ? "bg-theme-900 text-theme-0 hover:scale-105 active:scale-95 cursor-pointer" : "bg-theme-0 text-theme-950 hover:scale-105 active:scale-95 cursor-pointer" : v.value ? "bg-black/5 text-black/20" : "bg-white/10 text-white/30"]),
4959
4976
  disabled: !re.value,
4960
4977
  "aria-label": Be.value,
4961
4978
  title: Be.value,
4962
4979
  onClick: m[18] || (m[18] = (T) => pe())
4963
4980
  }, [
4964
- Ie.value === "stop" ? (h(), f("i", po)) : (h(), f("i", fo)),
4965
- w("span", mo, j(Be.value), 1)
4966
- ], 10, ho))
4967
- ], 10, no)
4981
+ Ie.value === "stop" ? (h(), f("i", fo)) : (h(), f("i", mo)),
4982
+ w("span", go, j(Be.value), 1)
4983
+ ], 10, po))
4984
+ ], 10, so)
4968
4985
  ], 2)
4969
4986
  ]));
4970
4987
  }
4971
- }), go = { class: "agent-wrap" }, vo = {
4988
+ }), vo = { class: "agent-wrap" }, xo = {
4972
4989
  key: 0,
4973
4990
  class: "flex items-center justify-center h-full"
4974
- }, Ro = /* @__PURE__ */ Re({
4991
+ }, Mo = /* @__PURE__ */ Re({
4975
4992
  __name: "AgentWrap",
4976
4993
  props: {
4977
4994
  sdk: {},
@@ -4985,7 +5002,7 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4985
5002
  apiBase: {}
4986
5003
  },
4987
5004
  setup(a) {
4988
- const t = Sa("AgentWrap"), e = a, n = e.sdk || Aa.getInstance({
5005
+ const t = Aa("AgentWrap"), e = a, n = e.sdk || _a.getInstance({
4989
5006
  isDev: typeof window < "u" ? window.location.hostname === "localhost" || window.location.hostname.includes("127.0.0.1") : !1,
4990
5007
  ...e.apiBase && { apiBase: e.apiBase }
4991
5008
  }), i = ge(!e.agent), s = ht(e.agent ? new hn({ config: e.agent }) : void 0), l = ge();
@@ -5065,8 +5082,8 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
5065
5082
  }
5066
5083
  });
5067
5084
  }
5068
- }), (o, p) => (h(), f("div", go, [
5069
- i.value ? (h(), f("div", vo, [...p[0] || (p[0] = [
5085
+ }), (o, p) => (h(), f("div", vo, [
5086
+ i.value ? (h(), f("div", xo, [...p[0] || (p[0] = [
5070
5087
  w("div", { class: "animate-spin rounded-full size-6 border-b-2 border-white" }, null, -1)
5071
5088
  ])])) : s.value ? vn(o.$slots, "default", {
5072
5089
  key: 1,
@@ -5083,16 +5100,16 @@ const zr = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
5083
5100
  });
5084
5101
  export {
5085
5102
  ps as A,
5086
- Ro as _,
5103
+ Mo as _,
5087
5104
  Kt as a,
5088
- Eo as b,
5089
- Ao as c,
5090
- So as d,
5091
- _o as e,
5105
+ Ro as b,
5106
+ _o as c,
5107
+ Ao as d,
5108
+ Eo as e,
5092
5109
  En as f,
5093
- wo as g,
5094
- Va as h,
5110
+ To as g,
5111
+ qa as h,
5095
5112
  ms as i,
5096
- To as p
5113
+ So as p
5097
5114
  };
5098
5115
  //# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang.js.map