@pagelines/sdk 1.0.698 → 1.0.700

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/AgentWrap.js CHANGED
@@ -185,7 +185,7 @@ var VoiceRecorderController = class extends i {
185
185
  function durableJournalOutcome(e) {
186
186
  return e.turnOutcome === "failed" ? "failed" : e.turnOutcome === "stopped" ? "stopped" : e.sender === "system" ? "failed" : "completed";
187
187
  }
188
- var ve = {
188
+ var B = {
189
189
  waiting: "Waiting for results",
190
190
  finishing: "Finishing up",
191
191
  completed: "Work complete",
@@ -193,7 +193,7 @@ var ve = {
193
193
  stopped: "Stopped",
194
194
  notifyHint: "Taking longer than usual. You can leave and I’ll notify you when it’s ready.",
195
195
  leaveHint: "Taking longer than usual. You can leave this chat while I work."
196
- }, ye = 15e3, B = 6e4, H = 3;
196
+ }, ve = 15e3, ye = 6e4, H = 3;
197
197
  function toMs(e) {
198
198
  if (!e) return;
199
199
  let t = Date.parse(e);
@@ -209,7 +209,7 @@ function milestoneRows(e, t) {
209
209
  let n = e.filter((e) => e.status === "completed" || e.status === "failed" && !!e.note).filter((e) => !t.has(e.activityId)).slice().sort(byEvent), r = [];
210
210
  for (let e of n) {
211
211
  let t = e.status === "completed" ? "done" : "failed", n = r[r.length - 1];
212
- if (t === "done" && n?.tone === "done" && n.label === e.label && eventMs(e) - n.lastMs <= ye) {
212
+ if (t === "done" && n?.tone === "done" && n.label === e.label && eventMs(e) - n.lastMs <= ve) {
213
213
  n.count += 1, n.lastMs = eventMs(e);
214
214
  continue;
215
215
  }
@@ -247,7 +247,7 @@ function buildWorkJournalModel(e) {
247
247
  terminal: {
248
248
  id: "work-complete",
249
249
  tone: "completed",
250
- label: ve.completed
250
+ label: B.completed
251
251
  }
252
252
  };
253
253
  if (n === "failed") {
@@ -261,7 +261,7 @@ function buildWorkJournalModel(e) {
261
261
  terminal: {
262
262
  id: "work-failed",
263
263
  tone: "failed",
264
- label: ve.failed,
264
+ label: B.failed,
265
265
  ...o && e?.note ? { note: e.note } : {}
266
266
  }
267
267
  };
@@ -275,18 +275,18 @@ function buildWorkJournalModel(e) {
275
275
  terminal: {
276
276
  id: "work-stopped",
277
277
  tone: "stopped",
278
- label: ve.stopped
278
+ label: B.stopped
279
279
  }
280
280
  };
281
281
  }
282
282
  let { visibleRows: s, hiddenRows: c } = splitRows(milestoneRows(t, /* @__PURE__ */ new Set())), u = t.filter((e) => e.status === "started").sort(byEvent).pop(), f = t.reduce((e, t) => Math.max(e, eventMs(t)), a ?? -Infinity), p = Number.isFinite(f) ? f : r, m = t.reduce((e, t) => {
283
283
  let n = toMs(t.startedAt) ?? toMs(t.endedAt);
284
284
  return n === void 0 ? e : Math.min(e, n);
285
- }, Infinity), h = p + ye, _ = (Number.isFinite(m) ? m : p) + B, v = r >= h, b = u || v ? {
285
+ }, Infinity), h = p + ve, _ = (Number.isFinite(m) ? m : p) + ye, v = r >= h, b = u || v ? {
286
286
  id: u?.activityId ?? "work-active",
287
287
  tone: "active",
288
- label: v ? u ? ve.waiting : ve.finishing : u.label
289
- } : void 0, x = v && r >= _ ? i ? ve.notifyHint : ve.leaveHint : void 0, S = [h, _].filter((e) => e > r).sort((e, t) => e - t)[0];
288
+ label: v ? u ? B.waiting : B.finishing : u.label
289
+ } : void 0, x = v && r >= _ ? i ? B.notifyHint : B.leaveHint : void 0, S = [h, _].filter((e) => e > r).sort((e, t) => e - t)[0];
290
290
  return {
291
291
  outcome: n,
292
292
  visibleRows: s,
@@ -431,7 +431,7 @@ var AgentChatController = class extends i {
431
431
  canNotifyOnCompletion: !1,
432
432
  lastVisibleProgressAtMs: this.lastVisibleProgressAtMs.value
433
433
  });
434
- })), e(this, "canUseComposer", f(() => this.textState.value.isConnected && !this.textState.value.sendBlockedReason && !this.composerState.value.isUploading && !this.textState.value.isThinking)), e(this, "canAttachFile", f(() => !!this.settings.uploadFileFn)), e(this, "canRecordAudio", f(() => this.canAttachFile.value && this.canUseComposer.value && !this.composerState.value.text.trim() && this.composerState.value.pendingAttachments.length === 0)), e(this, "voiceRecorder", new VoiceRecorderController({
434
+ })), e(this, "canUseComposer", f(() => !this.textState.value.sendBlockedReason && !this.composerState.value.isUploading && !this.textState.value.isThinking)), e(this, "canAttachFile", f(() => !!this.settings.uploadFileFn)), e(this, "canRecordAudio", f(() => this.canAttachFile.value && this.canUseComposer.value && !this.composerState.value.text.trim() && this.composerState.value.pendingAttachments.length === 0)), e(this, "voiceRecorder", new VoiceRecorderController({
435
435
  getCanRecord: () => this.canRecordAudio.value,
436
436
  getUploadFn: () => {
437
437
  let e = this.settings.uploadFileFn;
@@ -511,8 +511,16 @@ var AgentChatController = class extends i {
511
511
  pendingAttachments: this.composerState.value.pendingAttachments.filter((t, n) => n !== e.index)
512
512
  };
513
513
  }
514
+ addOfflineSystemReply() {
515
+ let e = `${this.chatUnavailableReason ?? "Your assistant is unavailable"}. Give it a moment and send again.`, t = this.sharedMessages.value[this.sharedMessages.value.length - 1];
516
+ t?.sender === "system" && t.text === e || this.addMessage(e, "system");
517
+ }
514
518
  async sendComposerMessage() {
515
519
  if (!this.canSend.value) return;
520
+ if (!this.chatEnabled) {
521
+ this.addOfflineSystemReply();
522
+ return;
523
+ }
516
524
  let e = this.composerState.value.text, t = this.composerState.value.pendingAttachments.length > 0 ? [...this.composerState.value.pendingAttachments] : void 0;
517
525
  this.composerState.value = {
518
526
  ...this.composerState.value,
@@ -709,7 +717,7 @@ Current User:
709
717
  if (!this.isTextMode) return;
710
718
  let { chatStreamFn: n } = this.settings;
711
719
  if (!this.chatEnabled) {
712
- this.addMessage("Agent is currently offline.", "system");
720
+ this.addOfflineSystemReply();
713
721
  return;
714
722
  }
715
723
  if (this.textState.value.sendBlockedReason || this.textState.value.isThinking) return;
@@ -941,10 +949,10 @@ function parseButtonTemplate(e) {
941
949
  }
942
950
  //#endregion
943
951
  //#region agent/ui/ElAgentButton.vue?vue&type=script&setup=true&lang.ts
944
- var Ce = {
952
+ var G = {
945
953
  key: 0,
946
954
  class: "absolute inset-0 flex items-center justify-center"
947
- }, we = /* @__PURE__ */ x({
955
+ }, Ce = /* @__PURE__ */ x({
948
956
  __name: "ElAgentButton",
949
957
  props: {
950
958
  theme: { default: "primary" },
@@ -972,7 +980,7 @@ var Ce = {
972
980
  md: "size-4",
973
981
  lg: "size-5"
974
982
  })[e.size]);
975
- return (i, a) => (k(), h("button", { 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, n.value]]) }, [e.loading ? (k(), h("div", Ce, [...a[0] || (a[0] = [_("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)])])) : m("", !0), _("span", { class: C(["flex items-center gap-2 transition-opacity duration-200", e.loading ? "opacity-0" : "opacity-100"]) }, [
983
+ return (i, a) => (k(), h("button", { 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, n.value]]) }, [e.loading ? (k(), h("div", G, [...a[0] || (a[0] = [_("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)])])) : m("", !0), _("span", { class: C(["flex items-center gap-2 transition-opacity duration-200", e.loading ? "opacity-0" : "opacity-100"]) }, [
976
984
  e.icon ? (k(), h("i", {
977
985
  key: 0,
978
986
  class: C([e.icon, r.value])
@@ -984,7 +992,7 @@ var Ce = {
984
992
  }, null, 2)) : m("", !0)
985
993
  ], 2)], 2));
986
994
  }
987
- }), Te = ["value"], Ee = /* @__PURE__ */ x({
995
+ }), we = ["value"], Te = /* @__PURE__ */ x({
988
996
  __name: "AgentInputEmail",
989
997
  props: { modelValue: { default: "" } },
990
998
  emits: ["update:modelValue"],
@@ -1003,9 +1011,9 @@ var Ce = {
1003
1011
  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",
1004
1012
  style: { "font-size": "16px" },
1005
1013
  onInput: r[0] || (r[0] = (e) => n("update:modelValue", e.target.value))
1006
- }, null, 40, Te));
1014
+ }, null, 40, we));
1007
1015
  }
1008
- }), De = ["placeholder", "value"], Oe = /* @__PURE__ */ x({
1016
+ }), Ee = ["placeholder", "value"], De = /* @__PURE__ */ x({
1009
1017
  __name: "AgentInputOneTimeCode",
1010
1018
  props: {
1011
1019
  modelValue: {},
@@ -1038,12 +1046,12 @@ var Ce = {
1038
1046
  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",
1039
1047
  style: { "font-size": "16px" },
1040
1048
  onInput
1041
- }, null, 40, De));
1049
+ }, null, 40, Ee));
1042
1050
  }
1043
- }), ke = { class: "relative flex-shrink-0" }, Ae = ["src", "alt"], je = { class: "absolute top-1 right-1" }, Me = {
1051
+ }), Oe = { class: "relative flex-shrink-0" }, ke = ["src", "alt"], Ae = { class: "absolute top-1 right-1" }, je = {
1044
1052
  key: 1,
1045
1053
  class: "size-3 bg-theme-400 rounded-full ring-2 ring-white"
1046
- }, Ne = { class: "min-w-0" }, Pe = /* @__PURE__ */ x({
1054
+ }, Me = { class: "min-w-0" }, Ne = /* @__PURE__ */ x({
1047
1055
  __name: "ElModeHeader",
1048
1056
  props: {
1049
1057
  agent: {},
@@ -1055,17 +1063,17 @@ var Ce = {
1055
1063
  layout: { default: "centered" }
1056
1064
  },
1057
1065
  setup(e) {
1058
- return (t, n) => (k(), h("div", { class: C(["flex gap-4", [e.layout === "centered" ? "flex-col items-center text-center" : "flex-row items-center justify-center"]]) }, [_("div", ke, [_("div", { class: C(["rounded-full overflow-hidden border-white", e.size === "lg" ? "w-20 h-20 sm:w-24 sm:h-24 border-4" : "w-16 sm:size-16 border-2"]) }, [_("img", {
1066
+ return (t, n) => (k(), h("div", { class: C(["flex gap-4", [e.layout === "centered" ? "flex-col items-center text-center" : "flex-row items-center justify-center"]]) }, [_("div", Oe, [_("div", { class: C(["rounded-full overflow-hidden border-white", e.size === "lg" ? "w-20 h-20 sm:w-24 sm:h-24 border-4" : "w-16 sm:size-16 border-2"]) }, [_("img", {
1059
1067
  src: e.agent.avatarUrl.value,
1060
1068
  alt: e.agent.displayName.value,
1061
1069
  class: "w-full h-full object-cover",
1062
1070
  onError: n[0] || (n[0] = (...e) => oe(handleImageError) && oe(handleImageError)(...e))
1063
- }, null, 40, Ae)], 2), _("div", je, [e.isOnline ? (k(), h(u, { key: 0 }, [n[1] || (n[1] = _("div", {
1071
+ }, null, 40, ke)], 2), _("div", Ae, [e.isOnline ? (k(), h(u, { key: 0 }, [n[1] || (n[1] = _("div", {
1064
1072
  class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
1065
1073
  style: { "animation-duration": "3s" }
1066
- }, null, -1)), n[2] || (n[2] = _("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))], 64)) : (k(), h("div", Me))])]), _("div", Ne, [_("h1", { class: C(["font-light text-white mb-1 truncate", [e.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight", e.layout === "horizontal" ? "text-white/95" : ""]]) }, F(e.agent.displayName.value), 3), _("p", { class: C(["font-light line-clamp-1", [e.size === "lg" ? "text-base text-white/60" : "text-sm sm:text-base", e.layout === "horizontal" ? "text-white/70 truncate" : "text-white/60"]]) }, F(e.layout === "horizontal" ? e.agent.title.value || "Assistant" : e.agent.title.value), 3)])], 2));
1074
+ }, null, -1)), n[2] || (n[2] = _("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))], 64)) : (k(), h("div", je))])]), _("div", Me, [_("h1", { class: C(["font-light text-white mb-1 truncate", [e.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight", e.layout === "horizontal" ? "text-white/95" : ""]]) }, F(e.agent.displayName.value), 3), _("p", { class: C(["font-light line-clamp-1", [e.size === "lg" ? "text-base text-white/60" : "text-sm sm:text-base", e.layout === "horizontal" ? "text-white/70 truncate" : "text-white/60"]]) }, F(e.layout === "horizontal" ? e.agent.title.value || "Assistant" : e.agent.title.value), 3)])], 2));
1067
1075
  }
1068
- }), Fe = { class: "relative shrink-0 rounded-full" }, Ie = ["src", "alt"], Le = ["src", "alt"], Re = ["aria-label"], ze = /* @__PURE__ */ x({
1076
+ }), Pe = { class: "relative shrink-0 rounded-full" }, Fe = ["src", "alt"], Ie = ["src", "alt"], Le = ["aria-label"], Re = /* @__PURE__ */ x({
1069
1077
  __name: "AgentAvatar",
1070
1078
  props: {
1071
1079
  agent: {},
@@ -1093,25 +1101,25 @@ var Ce = {
1093
1101
  top: "calc(14.6% - clamp(3.5px, 7%, 7px))",
1094
1102
  right: "calc(14.6% - clamp(3.5px, 7%, 7px))"
1095
1103
  }, i = f(() => e.isLight ? "ring-white" : "ring-theme-900");
1096
- return (t, a) => (k(), h("div", Fe, [
1104
+ return (t, a) => (k(), h("div", Pe, [
1097
1105
  _("img", {
1098
1106
  src: e.agent.avatarUrl.value,
1099
1107
  alt: e.agent.displayName.value,
1100
1108
  class: C(["size-full rounded-full object-cover ring-1", e.isLight ? "ring-black/5" : "ring-white/10"])
1101
- }, null, 10, Ie),
1109
+ }, null, 10, Fe),
1102
1110
  e.agent.ownerMarkUrl.value ? (k(), h("img", {
1103
1111
  key: 0,
1104
1112
  src: e.agent.ownerMarkUrl.value,
1105
1113
  alt: e.agent.owner.value?.fullName ? `Owned by ${e.agent.owner.value.fullName}` : "Owner",
1106
1114
  class: C(["absolute z-10 size-[36%] -bottom-[3%] -left-[3%] rounded-full object-cover ring-2", i.value])
1107
- }, null, 10, Le)) : m("", !0),
1115
+ }, null, 10, Ie)) : m("", !0),
1108
1116
  n.value ? (k(), h("span", {
1109
1117
  key: 1,
1110
1118
  role: "status",
1111
1119
  "aria-label": e.agent.state.value.tooltip,
1112
1120
  class: C(["absolute z-10 rounded-full ring-2", [n.value, i.value]]),
1113
1121
  style: r
1114
- }, null, 10, Re)) : m("", !0),
1122
+ }, null, 10, Le)) : m("", !0),
1115
1123
  n.value && e.agent.state.value.lifecycle === "running" ? (k(), h("span", {
1116
1124
  key: 2,
1117
1125
  "aria-hidden": "true",
@@ -1120,21 +1128,21 @@ var Ce = {
1120
1128
  }, null, 2)) : m("", !0)
1121
1129
  ]));
1122
1130
  }
1123
- }), Be = {
1131
+ }), ze = {
1124
1132
  key: 0,
1125
1133
  class: "sr-only",
1126
1134
  role: "status",
1127
1135
  "aria-live": "polite"
1128
- }, Ve = ["aria-expanded", "disabled"], He = ["aria-expanded"], Ue = {
1136
+ }, Be = ["aria-expanded", "disabled"], Ve = ["aria-expanded"], He = {
1129
1137
  class: "flex w-5 shrink-0 justify-center self-stretch",
1130
1138
  "aria-hidden": "true"
1131
- }, We = ["data-journal-row"], Ge = {
1139
+ }, Ue = ["data-journal-row"], We = {
1132
1140
  class: "flex w-5 shrink-0 flex-col items-center self-stretch",
1133
1141
  "aria-hidden": "true"
1134
- }, G = { class: "flex h-[17px] shrink-0 items-center" }, Ke = {
1142
+ }, Ge = { class: "flex h-[17px] shrink-0 items-center" }, K = {
1135
1143
  key: 0,
1136
1144
  class: "sr-only"
1137
- }, qe = /* @__PURE__ */ x({
1145
+ }, Ke = /* @__PURE__ */ x({
1138
1146
  __name: "AgentToolActivityGroup",
1139
1147
  props: {
1140
1148
  model: {},
@@ -1212,7 +1220,7 @@ var Ce = {
1212
1220
  };
1213
1221
  });
1214
1222
  return (t, f) => (k(), h("div", { class: C(["w-full py-0.5", s.value.muted]) }, [
1215
- a.value ? (k(), h("span", Be, F(a.value), 1)) : m("", !0),
1223
+ a.value ? (k(), h("span", ze, F(a.value), 1)) : m("", !0),
1216
1224
  r.value ? (k(), h("button", {
1217
1225
  key: 1,
1218
1226
  type: "button",
@@ -1234,7 +1242,7 @@ var Ce = {
1234
1242
  class: C(["size-[13px] shrink-0", [n.value ? "i-tabler-chevron-down" : "i-tabler-chevron-right", s.value.muted]]),
1235
1243
  "aria-hidden": "true"
1236
1244
  }, null, 2)) : m("", !0)
1237
- ], 10, Ve)) : i.value ? (k(), h("button", {
1245
+ ], 10, Be)) : i.value ? (k(), h("button", {
1238
1246
  key: 2,
1239
1247
  type: "button",
1240
1248
  "data-test": "messaging-tool-activity-summary",
@@ -1242,28 +1250,28 @@ var Ce = {
1242
1250
  "aria-expanded": n.value,
1243
1251
  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", s.value.ring]),
1244
1252
  onClick: toggle
1245
- }, [_("span", Ue, [_("span", {
1253
+ }, [_("span", He, [_("span", {
1246
1254
  "data-journal-spine": "dashed",
1247
1255
  class: C(["w-0 border-l border-dashed", s.value.dashed])
1248
1256
  }, null, 2)]), _("span", { class: C(["flex min-h-[20px] items-center gap-0.5 pb-2 text-[12px] leading-none", s.value.muted]) }, [v(F(i.value) + " earlier updates ", 1), _("i", {
1249
1257
  class: C(["size-3 shrink-0", n.value ? "i-tabler-chevron-down" : "i-tabler-chevron-right"]),
1250
1258
  "aria-hidden": "true"
1251
- }, null, 2)], 2)], 10, He)) : m("", !0),
1259
+ }, null, 2)], 2)], 10, Ve)) : m("", !0),
1252
1260
  (k(!0), h(u, null, j(o.value, (e, t) => (k(), h("div", {
1253
1261
  key: e.id,
1254
1262
  "data-test": "messaging-tool-activity-row",
1255
1263
  "data-journal-row": e.tone,
1256
1264
  class: C([r.value ? "pl-[22px]" : "", "flex gap-x-2.5"])
1257
- }, [_("div", Ge, [_("span", G, [(k(), p(ae(c.value[e.tone].station.tag), {
1265
+ }, [_("div", We, [_("span", Ge, [(k(), p(ae(c.value[e.tone].station.tag), {
1258
1266
  "data-journal-station": e.tone,
1259
1267
  class: C(c.value[e.tone].station.class)
1260
1268
  }, null, 8, ["data-journal-station", "class"]))]), t === o.value.length - 1 ? m("", !0) : (k(), h("span", {
1261
1269
  key: 0,
1262
1270
  class: C(["w-px flex-1", s.value.spine])
1263
- }, null, 2))]), _("div", { class: C(["min-w-0 flex-1", t === o.value.length - 1 ? "" : "pb-2"]) }, [_("span", { class: C(["relative block leading-snug", c.value[e.tone].label]) }, [v(F(e.label), 1), c.value[e.tone].statusWord ? (k(), h("span", Ke, ", " + F(c.value[e.tone].statusWord), 1)) : m("", !0)], 2), e.note ? (k(), h("p", {
1271
+ }, null, 2))]), _("div", { class: C(["min-w-0 flex-1", t === o.value.length - 1 ? "" : "pb-2"]) }, [_("span", { class: C(["relative block leading-snug", c.value[e.tone].label]) }, [v(F(e.label), 1), c.value[e.tone].statusWord ? (k(), h("span", K, ", " + F(c.value[e.tone].statusWord), 1)) : m("", !0)], 2), e.note ? (k(), h("p", {
1264
1272
  key: 0,
1265
1273
  class: C(["pt-0.5 text-[11.5px] leading-snug", s.value.muted])
1266
- }, F(e.note), 3)) : m("", !0)], 2)], 10, We))), 128)),
1274
+ }, F(e.note), 3)) : m("", !0)], 2)], 10, Ue))), 128)),
1267
1275
  !r.value && e.model.hint ? (k(), h("p", {
1268
1276
  key: 3,
1269
1277
  "data-test": "messaging-tool-activity-hint",
@@ -1313,86 +1321,86 @@ function _unsupportedIterableToArray(e, t) {
1313
1321
  return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? _arrayLikeToArray(e, t) : void 0;
1314
1322
  }
1315
1323
  }
1316
- var Je = Object.entries, Ye = Object.setPrototypeOf, Xe = Object.isFrozen, Ze = Object.getPrototypeOf, Qe = Object.getOwnPropertyDescriptor, K = Object.freeze, q = Object.seal, $e = Object.create, et = typeof Reflect < "u" && Reflect, tt = et.apply, nt = et.construct;
1317
- K || (K = function freeze(e) {
1324
+ var qe = Object.entries, Je = Object.setPrototypeOf, Ye = Object.isFrozen, Xe = Object.getPrototypeOf, Ze = Object.getOwnPropertyDescriptor, q = Object.freeze, J = Object.seal, Qe = Object.create, $e = typeof Reflect < "u" && Reflect, et = $e.apply, tt = $e.construct;
1325
+ q || (q = function freeze(e) {
1318
1326
  return e;
1319
- }), q || (q = function seal(e) {
1327
+ }), J || (J = function seal(e) {
1320
1328
  return e;
1321
- }), tt || (tt = function apply(e, t) {
1329
+ }), et || (et = function apply(e, t) {
1322
1330
  var n = [...arguments].slice(2);
1323
1331
  return e.apply(t, n);
1324
- }), nt || (nt = function construct(e) {
1332
+ }), tt || (tt = function construct(e) {
1325
1333
  return new e(...[...arguments].slice(1));
1326
1334
  });
1327
- var rt = unapply(Array.prototype.forEach), it = unapply(Array.prototype.lastIndexOf), at = unapply(Array.prototype.pop), st = unapply(Array.prototype.push), ct = unapply(Array.prototype.splice), lt = Array.isArray, ut = unapply(String.prototype.toLowerCase), dt = unapply(String.prototype.toString), ft = unapply(String.prototype.match), pt = unapply(String.prototype.replace), mt = unapply(String.prototype.indexOf), ht = unapply(String.prototype.trim), gt = unapply(Number.prototype.toString), _t = unapply(Boolean.prototype.toString), vt = typeof BigInt > "u" ? null : unapply(BigInt.prototype.toString), yt = typeof Symbol > "u" ? null : unapply(Symbol.prototype.toString), J = unapply(Object.prototype.hasOwnProperty), bt = unapply(Object.prototype.toString), X = unapply(RegExp.prototype.test), xt = unconstruct(TypeError);
1335
+ var nt = unapply(Array.prototype.forEach), rt = unapply(Array.prototype.lastIndexOf), it = unapply(Array.prototype.pop), at = unapply(Array.prototype.push), st = unapply(Array.prototype.splice), ct = Array.isArray, lt = unapply(String.prototype.toLowerCase), ut = unapply(String.prototype.toString), dt = unapply(String.prototype.match), ft = unapply(String.prototype.replace), pt = unapply(String.prototype.indexOf), mt = unapply(String.prototype.trim), ht = unapply(Number.prototype.toString), gt = unapply(Boolean.prototype.toString), _t = typeof BigInt > "u" ? null : unapply(BigInt.prototype.toString), vt = typeof Symbol > "u" ? null : unapply(Symbol.prototype.toString), X = unapply(Object.prototype.hasOwnProperty), yt = unapply(Object.prototype.toString), Z = unapply(RegExp.prototype.test), bt = unconstruct(TypeError);
1328
1336
  function unapply(e) {
1329
1337
  return function(t) {
1330
1338
  t instanceof RegExp && (t.lastIndex = 0);
1331
1339
  var n = [...arguments].slice(1);
1332
- return tt(e, t, n);
1340
+ return et(e, t, n);
1333
1341
  };
1334
1342
  }
1335
1343
  function unconstruct(e) {
1336
1344
  return function() {
1337
- return nt(e, [...arguments]);
1345
+ return tt(e, [...arguments]);
1338
1346
  };
1339
1347
  }
1340
1348
  function addToSet(e, t) {
1341
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ut;
1342
- if (Ye && Ye(e, null), !lt(t)) return e;
1349
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : lt;
1350
+ if (Je && Je(e, null), !ct(t)) return e;
1343
1351
  let r = t.length;
1344
1352
  for (; r--;) {
1345
1353
  let i = t[r];
1346
1354
  if (typeof i == "string") {
1347
1355
  let e = n(i);
1348
- e !== i && (Xe(t) || (t[r] = e), i = e);
1356
+ e !== i && (Ye(t) || (t[r] = e), i = e);
1349
1357
  }
1350
1358
  e[i] = !0;
1351
1359
  }
1352
1360
  return e;
1353
1361
  }
1354
1362
  function cleanArray(e) {
1355
- for (let t = 0; t < e.length; t++) J(e, t) || (e[t] = null);
1363
+ for (let t = 0; t < e.length; t++) X(e, t) || (e[t] = null);
1356
1364
  return e;
1357
1365
  }
1358
1366
  function clone(e) {
1359
- let t = $e(null);
1360
- for (let r of Je(e)) {
1367
+ let t = Qe(null);
1368
+ for (let r of qe(e)) {
1361
1369
  var n = _slicedToArray(r, 2);
1362
1370
  let i = n[0], a = n[1];
1363
- J(e, i) && (lt(a) ? t[i] = cleanArray(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = clone(a) : t[i] = a);
1371
+ X(e, i) && (ct(a) ? t[i] = cleanArray(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = clone(a) : t[i] = a);
1364
1372
  }
1365
1373
  return t;
1366
1374
  }
1367
1375
  function stringifyValue(e) {
1368
1376
  switch (typeof e) {
1369
1377
  case "string": return e;
1370
- case "number": return gt(e);
1371
- case "boolean": return _t(e);
1372
- case "bigint": return vt ? vt(e) : "0";
1373
- case "symbol": return yt ? yt(e) : "Symbol()";
1374
- case "undefined": return bt(e);
1378
+ case "number": return ht(e);
1379
+ case "boolean": return gt(e);
1380
+ case "bigint": return _t ? _t(e) : "0";
1381
+ case "symbol": return vt ? vt(e) : "Symbol()";
1382
+ case "undefined": return yt(e);
1375
1383
  case "function":
1376
1384
  case "object": {
1377
- if (e === null) return bt(e);
1385
+ if (e === null) return yt(e);
1378
1386
  let t = e, n = lookupGetter(t, "toString");
1379
1387
  if (typeof n == "function") {
1380
1388
  let e = n(t);
1381
- return typeof e == "string" ? e : bt(e);
1389
+ return typeof e == "string" ? e : yt(e);
1382
1390
  }
1383
- return bt(e);
1391
+ return yt(e);
1384
1392
  }
1385
- default: return bt(e);
1393
+ default: return yt(e);
1386
1394
  }
1387
1395
  }
1388
1396
  function lookupGetter(e, t) {
1389
1397
  for (; e !== null;) {
1390
- let n = Qe(e, t);
1398
+ let n = Ze(e, t);
1391
1399
  if (n) {
1392
1400
  if (n.get) return unapply(n.get);
1393
1401
  if (typeof n.value == "function") return unapply(n.value);
1394
1402
  }
1395
- e = Ze(e);
1403
+ e = Xe(e);
1396
1404
  }
1397
1405
  function fallbackValue() {
1398
1406
  return null;
@@ -1401,12 +1409,12 @@ function lookupGetter(e, t) {
1401
1409
  }
1402
1410
  function isRegex(e) {
1403
1411
  try {
1404
- return X(e, ""), !0;
1412
+ return Z(e, ""), !0;
1405
1413
  } catch {
1406
1414
  return !1;
1407
1415
  }
1408
1416
  }
1409
- var St = K(/* @__PURE__ */ "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".split(".")), Ct = K(/* @__PURE__ */ "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".split(".")), wt = K([
1417
+ var xt = q(/* @__PURE__ */ "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".split(".")), St = q(/* @__PURE__ */ "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".split(".")), Ct = q([
1410
1418
  "feBlend",
1411
1419
  "feColorMatrix",
1412
1420
  "feComponentTransfer",
@@ -1432,7 +1440,7 @@ var St = K(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
1432
1440
  "feSpotLight",
1433
1441
  "feTile",
1434
1442
  "feTurbulence"
1435
- ]), Tt = K([
1443
+ ]), wt = q([
1436
1444
  "animate",
1437
1445
  "color-profile",
1438
1446
  "cursor",
@@ -1455,7 +1463,7 @@ var St = K(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
1455
1463
  "solidcolor",
1456
1464
  "unknown",
1457
1465
  "use"
1458
- ]), Et = K(/* @__PURE__ */ "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".split(".")), Dt = K([
1466
+ ]), Tt = q(/* @__PURE__ */ "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".split(".")), Et = q([
1459
1467
  "maction",
1460
1468
  "maligngroup",
1461
1469
  "malignmark",
@@ -1471,13 +1479,13 @@ var St = K(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
1471
1479
  "annotation-xml",
1472
1480
  "mprescripts",
1473
1481
  "none"
1474
- ]), Ot = K(["#text"]), kt = K(/* @__PURE__ */ "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".split(".")), At = K(/* @__PURE__ */ "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.dominant-baseline.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-orientation.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".split(".")), jt = K(/* @__PURE__ */ "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".split(".")), Mt = K([
1482
+ ]), Dt = q(["#text"]), Ot = q(/* @__PURE__ */ "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".split(".")), kt = q(/* @__PURE__ */ "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.dominant-baseline.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-orientation.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".split(".")), At = q(/* @__PURE__ */ "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".split(".")), jt = q([
1475
1483
  "xlink:href",
1476
1484
  "xml:id",
1477
1485
  "xlink:title",
1478
1486
  "xml:space",
1479
1487
  "xmlns:xlink"
1480
- ]), Nt = q(/{{[\w\W]*|^[\w\W]*}}/g), Pt = q(/<%[\w\W]*|^[\w\W]*%>/g), Ft = q(/\${[\w\W]*/g), It = q(/^data-[\-\w.\u00B7-\uFFFF]+$/), Lt = q(/^aria-[\-\w]+$/), Rt = q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), zt = q(/^(?:\w+script|data):/i), Bt = q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Vt = q(/^html$/i), Ht = q(/^[a-z][.\w]*(-[.\w]+)+$/i), Ut = q(/<[/\w!]/g), Wt = q(/<[/\w]/g), Gt = q(/<\/no(script|embed|frames)/i), Kt = q(/\/>/i), qt = {
1488
+ ]), Mt = J(/{{[\w\W]*|^[\w\W]*}}/g), Nt = J(/<%[\w\W]*|^[\w\W]*%>/g), Pt = J(/\${[\w\W]*/g), Ft = J(/^data-[\-\w.\u00B7-\uFFFF]+$/), It = J(/^aria-[\-\w]+$/), Lt = J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Rt = J(/^(?:\w+script|data):/i), zt = J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Bt = J(/^html$/i), Vt = J(/^[a-z][.\w]*(-[.\w]+)+$/i), Ht = J(/<[/\w!]/g), Ut = J(/<[/\w]/g), Wt = J(/<\/no(script|embed|frames)/i), Gt = J(/\/>/i), Kt = {
1481
1489
  element: 1,
1482
1490
  attribute: 2,
1483
1491
  text: 3,
@@ -1490,9 +1498,9 @@ var St = K(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
1490
1498
  documentType: 10,
1491
1499
  documentFragment: 11,
1492
1500
  notation: 12
1493
- }, Jt = function getGlobal() {
1501
+ }, qt = function getGlobal() {
1494
1502
  return typeof window > "u" ? null : window;
1495
- }, Yt = function _createTrustedTypesPolicy(e, t) {
1503
+ }, Jt = function _createTrustedTypesPolicy(e, t) {
1496
1504
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
1497
1505
  let n = null, r = "data-tt-policy-suffix";
1498
1506
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -1509,7 +1517,7 @@ var St = K(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
1509
1517
  } catch {
1510
1518
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
1511
1519
  }
1512
- }, Xt = function _createHooksMap() {
1520
+ }, Yt = function _createHooksMap() {
1513
1521
  return {
1514
1522
  afterSanitizeAttributes: [],
1515
1523
  afterSanitizeElements: [],
@@ -1521,12 +1529,12 @@ var St = K(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
1521
1529
  uponSanitizeElement: [],
1522
1530
  uponSanitizeShadowNode: []
1523
1531
  };
1524
- }, Zt = function _resolveSetOption(e, t, n, r) {
1525
- return J(e, t) && lt(e[t]) ? addToSet(r.base ? clone(r.base) : {}, e[t], r.transform) : n;
1532
+ }, Xt = function _resolveSetOption(e, t, n, r) {
1533
+ return X(e, t) && ct(e[t]) ? addToSet(r.base ? clone(r.base) : {}, e[t], r.transform) : n;
1526
1534
  };
1527
1535
  function createDOMPurify() {
1528
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Jt(), DOMPurify = (e) => createDOMPurify(e);
1529
- if (DOMPurify.version = "3.4.12", DOMPurify.removed = [], !e || !e.document || e.document.nodeType !== qt.document || !e.Element) return DOMPurify.isSupported = !1, DOMPurify;
1536
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : qt(), DOMPurify = (e) => createDOMPurify(e);
1537
+ if (DOMPurify.version = "3.4.12", DOMPurify.removed = [], !e || !e.document || e.document.nodeType !== Kt.document || !e.Element) return DOMPurify.isSupported = !1, DOMPurify;
1530
1538
  let t = e.document, n = t, r = n.currentScript;
1531
1539
  e.DocumentFragment;
1532
1540
  let i = e.HTMLTemplateElement, a = e.Node, o = e.Element, s = e.NodeFilter;
@@ -1537,7 +1545,7 @@ function createDOMPurify() {
1537
1545
  e.content && e.content.ownerDocument && (t = e.content.ownerDocument);
1538
1546
  }
1539
1547
  let T, te = "", ne, re = !1, k = 0, A = function _assertNotInTrustedTypesPolicy() {
1540
- if (k > 0) throw xt("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
1548
+ if (k > 0) throw bt("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
1541
1549
  }, j = function _createTrustedHTML(e) {
1542
1550
  A(), k++;
1543
1551
  try {
@@ -1553,21 +1561,21 @@ function createDOMPurify() {
1553
1561
  k--;
1554
1562
  }
1555
1563
  }, ae = function _getDefaultTrustedTypesPolicy() {
1556
- return re || (ne = Yt(u, r), re = !0), ne;
1557
- }, P = t, F = P.implementation, oe = P.createNodeIterator, I = P.createDocumentFragment, se = P.getElementsByTagName, ce = n.importNode, R = Xt();
1558
- DOMPurify.isSupported = typeof Je == "function" && typeof v == "function" && F && F.createHTMLDocument !== void 0;
1559
- let ue = Nt, z = Pt, de = Ft, pe = It, he = Lt, _e = zt, ve = Bt, ye = Ht, B = Rt, H = null, be = addToSet({}, [
1564
+ return re || (ne = Jt(u, r), re = !0), ne;
1565
+ }, P = t, F = P.implementation, oe = P.createNodeIterator, I = P.createDocumentFragment, se = P.getElementsByTagName, ce = n.importNode, R = Yt();
1566
+ DOMPurify.isSupported = typeof qe == "function" && typeof v == "function" && F && F.createHTMLDocument !== void 0;
1567
+ let ue = Mt, z = Nt, de = Pt, pe = Ft, he = It, _e = Rt, B = zt, ve = Vt, ye = Lt, H = null, be = addToSet({}, [
1568
+ ...xt,
1560
1569
  ...St,
1561
1570
  ...Ct,
1562
- ...wt,
1563
- ...Et,
1564
- ...Ot
1571
+ ...Tt,
1572
+ ...Dt
1565
1573
  ]), U = null, Se = addToSet({}, [
1574
+ ...Ot,
1566
1575
  ...kt,
1567
1576
  ...At,
1568
- ...jt,
1569
- ...Mt
1570
- ]), W = Object.seal($e(null, {
1577
+ ...jt
1578
+ ]), W = Object.seal(Qe(null, {
1571
1579
  tagNameCheck: {
1572
1580
  writable: !0,
1573
1581
  configurable: !1,
@@ -1586,7 +1594,7 @@ function createDOMPurify() {
1586
1594
  enumerable: !0,
1587
1595
  value: !1
1588
1596
  }
1589
- })), Ce = null, we = null, Te = Object.seal($e(null, {
1597
+ })), G = null, Ce = null, we = Object.seal(Qe(null, {
1590
1598
  tagCheck: {
1591
1599
  writable: !0,
1592
1600
  configurable: !1,
@@ -1599,14 +1607,14 @@ function createDOMPurify() {
1599
1607
  enumerable: !0,
1600
1608
  value: null
1601
1609
  }
1602
- })), Ee = !0, De = !0, Oe = !1, ke = !0, Ae = !1, je = !0, Me = !1, Ne = !1, Pe = null, Fe = null, Ie = !1, Le = !1, Re = !1, ze = !1, Be = !0, Ve = !1, He = "user-content-", Ue = !0, We = !1, Ge = {}, G = null, Ke = addToSet({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), qe = null, Ye = addToSet({}, [
1610
+ })), Te = !0, Ee = !0, De = !1, Oe = !0, ke = !1, Ae = !0, je = !1, Me = !1, Ne = null, Pe = null, Fe = !1, Ie = !1, Le = !1, Re = !1, ze = !0, Be = !1, Ve = "user-content-", He = !0, Ue = !1, We = {}, Ge = null, K = addToSet({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Ke = null, Je = addToSet({}, [
1603
1611
  "audio",
1604
1612
  "video",
1605
1613
  "img",
1606
1614
  "source",
1607
1615
  "image",
1608
1616
  "track"
1609
- ]), Xe = null, Ze = addToSet({}, [
1617
+ ]), Ye = null, Xe = addToSet({}, [
1610
1618
  "alt",
1611
1619
  "class",
1612
1620
  "for",
@@ -1621,42 +1629,42 @@ function createDOMPurify() {
1621
1629
  "value",
1622
1630
  "style",
1623
1631
  "xmlns"
1624
- ]), Qe = "http://www.w3.org/1998/Math/MathML", et = "http://www.w3.org/2000/svg", tt = "http://www.w3.org/1999/xhtml", nt = tt, gt = !1, _t = null, vt = addToSet({}, [
1625
- Qe,
1626
- et,
1627
- tt
1628
- ], dt), yt = K([
1632
+ ]), Ze = "http://www.w3.org/1998/Math/MathML", $e = "http://www.w3.org/2000/svg", et = "http://www.w3.org/1999/xhtml", tt = et, ht = !1, gt = null, _t = addToSet({}, [
1633
+ Ze,
1634
+ $e,
1635
+ et
1636
+ ], ut), vt = q([
1629
1637
  "mi",
1630
1638
  "mo",
1631
1639
  "mn",
1632
1640
  "ms",
1633
1641
  "mtext"
1634
- ]), bt = addToSet({}, yt), Qt = K(["annotation-xml"]), $t = addToSet({}, Qt), en = addToSet({}, [
1642
+ ]), yt = addToSet({}, vt), Zt = q(["annotation-xml"]), Qt = addToSet({}, Zt), $t = addToSet({}, [
1635
1643
  "title",
1636
1644
  "style",
1637
1645
  "font",
1638
1646
  "a",
1639
1647
  "script"
1640
- ]), tn = null, Z = ["application/xhtml+xml", "text/html"], Q = null, nn = null, rn = t.createElement("form"), an = function isRegexOrFunction(e) {
1648
+ ]), en = null, tn = ["application/xhtml+xml", "text/html"], Q = null, nn = null, rn = t.createElement("form"), an = function isRegexOrFunction(e) {
1641
1649
  return e instanceof RegExp || e instanceof Function;
1642
1650
  }, on = function _parseConfig() {
1643
1651
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1644
1652
  if (nn && nn === e) return;
1645
- (!e || typeof e != "object") && (e = {}), e = clone(e), tn = Z.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Q = tn === "application/xhtml+xml" ? dt : ut, H = Zt(e, "ALLOWED_TAGS", be, { transform: Q }), U = Zt(e, "ALLOWED_ATTR", Se, { transform: Q }), _t = Zt(e, "ALLOWED_NAMESPACES", vt, { transform: dt }), Xe = Zt(e, "ADD_URI_SAFE_ATTR", Ze, {
1653
+ (!e || typeof e != "object") && (e = {}), e = clone(e), en = tn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Q = en === "application/xhtml+xml" ? ut : lt, H = Xt(e, "ALLOWED_TAGS", be, { transform: Q }), U = Xt(e, "ALLOWED_ATTR", Se, { transform: Q }), gt = Xt(e, "ALLOWED_NAMESPACES", _t, { transform: ut }), Ye = Xt(e, "ADD_URI_SAFE_ATTR", Xe, {
1646
1654
  transform: Q,
1647
- base: Ze
1648
- }), qe = Zt(e, "ADD_DATA_URI_TAGS", Ye, {
1655
+ base: Xe
1656
+ }), Ke = Xt(e, "ADD_DATA_URI_TAGS", Je, {
1649
1657
  transform: Q,
1650
- base: Ye
1651
- }), G = Zt(e, "FORBID_CONTENTS", Ke, { transform: Q }), Ce = Zt(e, "FORBID_TAGS", clone({}), { transform: Q }), we = Zt(e, "FORBID_ATTR", clone({}), { transform: Q }), Ge = J(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? clone(e.USE_PROFILES) : e.USE_PROFILES : !1, Ee = e.ALLOW_ARIA_ATTR !== !1, De = e.ALLOW_DATA_ATTR !== !1, Oe = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ke = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = e.SAFE_FOR_TEMPLATES || !1, je = e.SAFE_FOR_XML !== !1, Me = e.WHOLE_DOCUMENT || !1, Le = e.RETURN_DOM || !1, Re = e.RETURN_DOM_FRAGMENT || !1, ze = e.RETURN_TRUSTED_TYPE || !1, Ie = e.FORCE_BODY || !1, Be = e.SANITIZE_DOM !== !1, Ve = e.SANITIZE_NAMED_PROPS || !1, Ue = e.KEEP_CONTENT !== !1, We = e.IN_PLACE || !1, B = isRegex(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Rt, nt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : tt, bt = J(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? clone(e.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, yt), $t = J(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? clone(e.HTML_INTEGRATION_POINTS) : addToSet({}, Qt);
1652
- let t = J(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? clone(e.CUSTOM_ELEMENT_HANDLING) : $e(null);
1653
- if (W = $e(null), J(t, "tagNameCheck") && an(t.tagNameCheck) && (W.tagNameCheck = t.tagNameCheck), J(t, "attributeNameCheck") && an(t.attributeNameCheck) && (W.attributeNameCheck = t.attributeNameCheck), J(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (W.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), q(W), Ae && (De = !1), Re && (Le = !0), Ge && (H = addToSet({}, Ot), U = $e(null), Ge.html === !0 && (addToSet(H, St), addToSet(U, kt)), Ge.svg === !0 && (addToSet(H, Ct), addToSet(U, At), addToSet(U, Mt)), Ge.svgFilters === !0 && (addToSet(H, wt), addToSet(U, At), addToSet(U, Mt)), Ge.mathMl === !0 && (addToSet(H, Et), addToSet(U, jt), addToSet(U, Mt))), Te.tagCheck = null, Te.attributeCheck = null, J(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? Te.tagCheck = e.ADD_TAGS : lt(e.ADD_TAGS) && (H === be && (H = clone(H)), addToSet(H, e.ADD_TAGS, Q))), J(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? Te.attributeCheck = e.ADD_ATTR : lt(e.ADD_ATTR) && (U === Se && (U = clone(U)), addToSet(U, e.ADD_ATTR, Q))), J(e, "ADD_URI_SAFE_ATTR") && lt(e.ADD_URI_SAFE_ATTR) && addToSet(Xe, e.ADD_URI_SAFE_ATTR, Q), J(e, "FORBID_CONTENTS") && lt(e.FORBID_CONTENTS) && (G === Ke && (G = clone(G)), addToSet(G, e.FORBID_CONTENTS, Q)), J(e, "ADD_FORBID_CONTENTS") && lt(e.ADD_FORBID_CONTENTS) && (G === Ke && (G = clone(G)), addToSet(G, e.ADD_FORBID_CONTENTS, Q)), Ue && (H["#text"] = !0), Me && addToSet(H, [
1658
+ base: Je
1659
+ }), Ge = Xt(e, "FORBID_CONTENTS", K, { transform: Q }), G = Xt(e, "FORBID_TAGS", clone({}), { transform: Q }), Ce = Xt(e, "FORBID_ATTR", clone({}), { transform: Q }), We = X(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? clone(e.USE_PROFILES) : e.USE_PROFILES : !1, Te = e.ALLOW_ARIA_ATTR !== !1, Ee = e.ALLOW_DATA_ATTR !== !1, De = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Oe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ke = e.SAFE_FOR_TEMPLATES || !1, Ae = e.SAFE_FOR_XML !== !1, je = e.WHOLE_DOCUMENT || !1, Ie = e.RETURN_DOM || !1, Le = e.RETURN_DOM_FRAGMENT || !1, Re = e.RETURN_TRUSTED_TYPE || !1, Fe = e.FORCE_BODY || !1, ze = e.SANITIZE_DOM !== !1, Be = e.SANITIZE_NAMED_PROPS || !1, He = e.KEEP_CONTENT !== !1, Ue = e.IN_PLACE || !1, ye = isRegex(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Lt, tt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : et, yt = X(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? clone(e.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, vt), Qt = X(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? clone(e.HTML_INTEGRATION_POINTS) : addToSet({}, Zt);
1660
+ let t = X(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? clone(e.CUSTOM_ELEMENT_HANDLING) : Qe(null);
1661
+ if (W = Qe(null), X(t, "tagNameCheck") && an(t.tagNameCheck) && (W.tagNameCheck = t.tagNameCheck), X(t, "attributeNameCheck") && an(t.attributeNameCheck) && (W.attributeNameCheck = t.attributeNameCheck), X(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (W.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), J(W), ke && (Ee = !1), Le && (Ie = !0), We && (H = addToSet({}, Dt), U = Qe(null), We.html === !0 && (addToSet(H, xt), addToSet(U, Ot)), We.svg === !0 && (addToSet(H, St), addToSet(U, kt), addToSet(U, jt)), We.svgFilters === !0 && (addToSet(H, Ct), addToSet(U, kt), addToSet(U, jt)), We.mathMl === !0 && (addToSet(H, Tt), addToSet(U, At), addToSet(U, jt))), we.tagCheck = null, we.attributeCheck = null, X(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? we.tagCheck = e.ADD_TAGS : ct(e.ADD_TAGS) && (H === be && (H = clone(H)), addToSet(H, e.ADD_TAGS, Q))), X(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? we.attributeCheck = e.ADD_ATTR : ct(e.ADD_ATTR) && (U === Se && (U = clone(U)), addToSet(U, e.ADD_ATTR, Q))), X(e, "ADD_URI_SAFE_ATTR") && ct(e.ADD_URI_SAFE_ATTR) && addToSet(Ye, e.ADD_URI_SAFE_ATTR, Q), X(e, "FORBID_CONTENTS") && ct(e.FORBID_CONTENTS) && (Ge === K && (Ge = clone(Ge)), addToSet(Ge, e.FORBID_CONTENTS, Q)), X(e, "ADD_FORBID_CONTENTS") && ct(e.ADD_FORBID_CONTENTS) && (Ge === K && (Ge = clone(Ge)), addToSet(Ge, e.ADD_FORBID_CONTENTS, Q)), He && (H["#text"] = !0), je && addToSet(H, [
1654
1662
  "html",
1655
1663
  "head",
1656
1664
  "body"
1657
- ]), H.table && (addToSet(H, ["tbody"]), delete Ce.tbody), e.TRUSTED_TYPES_POLICY) {
1658
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw xt("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
1659
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw xt("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
1665
+ ]), H.table && (addToSet(H, ["tbody"]), delete G.tbody), e.TRUSTED_TYPES_POLICY) {
1666
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw bt("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
1667
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw bt("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
1660
1668
  let t = T;
1661
1669
  T = e.TRUSTED_TYPES_POLICY;
1662
1670
  try {
@@ -1665,40 +1673,40 @@ function createDOMPurify() {
1665
1673
  throw T = t, e;
1666
1674
  }
1667
1675
  } else e.TRUSTED_TYPES_POLICY === null ? (T = void 0, te = "") : (T === void 0 && (T = ae()), T && typeof te == "string" && (te = j("")));
1668
- K && K(e), nn = e;
1676
+ q && q(e), nn = e;
1669
1677
  }, sn = addToSet({}, [
1678
+ ...St,
1670
1679
  ...Ct,
1671
- ...wt,
1672
- ...Tt
1673
- ]), cn = addToSet({}, [...Et, ...Dt]), ln = function _checkSvgNamespace(e, t, n) {
1674
- return t.namespaceURI === tt ? e === "svg" : t.namespaceURI === Qe ? e === "svg" && (n === "annotation-xml" || bt[n]) : !!sn[e];
1680
+ ...wt
1681
+ ]), cn = addToSet({}, [...Tt, ...Et]), ln = function _checkSvgNamespace(e, t, n) {
1682
+ return t.namespaceURI === et ? e === "svg" : t.namespaceURI === Ze ? e === "svg" && (n === "annotation-xml" || yt[n]) : !!sn[e];
1675
1683
  }, un = function _checkMathMlNamespace(e, t, n) {
1676
- return t.namespaceURI === tt ? e === "math" : t.namespaceURI === et ? e === "math" && $t[n] : !!cn[e];
1684
+ return t.namespaceURI === et ? e === "math" : t.namespaceURI === $e ? e === "math" && Qt[n] : !!cn[e];
1677
1685
  }, dn = function _checkHtmlNamespace(e, t, n) {
1678
- return t.namespaceURI === et && !$t[n] || t.namespaceURI === Qe && !bt[n] ? !1 : !cn[e] && (en[e] || !sn[e]);
1686
+ return t.namespaceURI === $e && !Qt[n] || t.namespaceURI === Ze && !yt[n] ? !1 : !cn[e] && ($t[e] || !sn[e]);
1679
1687
  }, fn = function _checkValidNamespace(e) {
1680
1688
  let t = v(e);
1681
1689
  (!t || !t.tagName) && (t = {
1682
- namespaceURI: nt,
1690
+ namespaceURI: tt,
1683
1691
  tagName: "template"
1684
1692
  });
1685
- let n = ut(e.tagName), r = ut(t.tagName);
1686
- return _t[e.namespaceURI] ? e.namespaceURI === et ? ln(n, t, r) : e.namespaceURI === Qe ? un(n, t, r) : e.namespaceURI === tt ? dn(n, t, r) : !!(tn === "application/xhtml+xml" && _t[e.namespaceURI]) : !1;
1693
+ let n = lt(e.tagName), r = lt(t.tagName);
1694
+ return gt[e.namespaceURI] ? e.namespaceURI === $e ? ln(n, t, r) : e.namespaceURI === Ze ? un(n, t, r) : e.namespaceURI === et ? dn(n, t, r) : !!(en === "application/xhtml+xml" && gt[e.namespaceURI]) : !1;
1687
1695
  }, pn = function _forceRemove(e) {
1688
- st(DOMPurify.removed, { element: e });
1696
+ at(DOMPurify.removed, { element: e });
1689
1697
  try {
1690
1698
  v(e).removeChild(e);
1691
1699
  } catch {
1692
- if (m(e), !v(e)) throw xt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
1700
+ if (m(e), !v(e)) throw bt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
1693
1701
  }
1694
1702
  }, mn = function _neutralizeRoot(e) {
1695
1703
  _n(e);
1696
1704
  let t = _(e);
1697
1705
  if (t) {
1698
1706
  let e = [];
1699
- rt(t, (t) => {
1700
- st(e, t);
1701
- }), rt(e, (e) => {
1707
+ nt(t, (t) => {
1708
+ at(e, t);
1709
+ }), nt(e, (e) => {
1702
1710
  try {
1703
1711
  m(e);
1704
1712
  } catch {}
@@ -1713,17 +1721,17 @@ function createDOMPurify() {
1713
1721
  }
1714
1722
  }, hn = function _removeAttribute(e, t) {
1715
1723
  try {
1716
- st(DOMPurify.removed, {
1724
+ at(DOMPurify.removed, {
1717
1725
  attribute: t.getAttributeNode(e),
1718
1726
  from: t
1719
1727
  });
1720
1728
  } catch {
1721
- st(DOMPurify.removed, {
1729
+ at(DOMPurify.removed, {
1722
1730
  attribute: null,
1723
1731
  from: t
1724
1732
  });
1725
1733
  }
1726
- if (t.removeAttribute(e), e === "is") if (Le || Re) try {
1734
+ if (t.removeAttribute(e), e === "is") if (Ie || Le) try {
1727
1735
  pn(t);
1728
1736
  } catch {}
1729
1737
  else try {
@@ -1741,22 +1749,22 @@ function createDOMPurify() {
1741
1749
  let t = [e];
1742
1750
  for (; t.length > 0;) {
1743
1751
  let e = t.pop();
1744
- (S ? S(e) : e.nodeType) === qt.element && gn(e);
1752
+ (S ? S(e) : e.nodeType) === Kt.element && gn(e);
1745
1753
  let n = _(e);
1746
1754
  if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
1747
1755
  }
1748
1756
  }, vn = function _neutralizePatchLinkage(e) {
1749
- if (!je) return;
1757
+ if (!Ae) return;
1750
1758
  let t = [e];
1751
1759
  for (; t.length > 0;) {
1752
1760
  let e = t.pop(), n = S ? S(e) : e.nodeType;
1753
- if (n === qt.processingInstruction || n === qt.comment && X(Wt, e.data)) {
1761
+ if (n === Kt.processingInstruction || n === Kt.comment && Z(Ut, e.data)) {
1754
1762
  try {
1755
1763
  m(e);
1756
1764
  } catch {}
1757
1765
  continue;
1758
1766
  }
1759
- if (n === qt.element) {
1767
+ if (n === Kt.element) {
1760
1768
  let t = e, n = Q(C ? C(e) : e.nodeName);
1761
1769
  try {
1762
1770
  t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
@@ -1767,34 +1775,34 @@ function createDOMPurify() {
1767
1775
  }
1768
1776
  }, yn = function _initDocument(e) {
1769
1777
  let n = null, r = null;
1770
- if (Ie) e = "<remove></remove>" + e;
1778
+ if (Fe) e = "<remove></remove>" + e;
1771
1779
  else {
1772
- let t = ft(e, /^[\r\n\t ]+/);
1780
+ let t = dt(e, /^[\r\n\t ]+/);
1773
1781
  r = t && t[0];
1774
1782
  }
1775
- tn === "application/xhtml+xml" && nt === tt && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
1783
+ en === "application/xhtml+xml" && tt === et && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
1776
1784
  let i = T ? j(e) : e;
1777
- if (nt === tt) try {
1778
- n = new c().parseFromString(i, tn);
1785
+ if (tt === et) try {
1786
+ n = new c().parseFromString(i, en);
1779
1787
  } catch {}
1780
1788
  if (!n || !n.documentElement) {
1781
- n = F.createDocument(nt, "template", null);
1789
+ n = F.createDocument(tt, "template", null);
1782
1790
  try {
1783
- n.documentElement.innerHTML = gt ? te : i;
1791
+ n.documentElement.innerHTML = ht ? te : i;
1784
1792
  } catch {}
1785
1793
  }
1786
1794
  let a = n.body || n.documentElement;
1787
- return e && r && a.insertBefore(t.createTextNode(r), a.childNodes[0] || null), nt === tt ? se.call(n, Me ? "html" : "body")[0] : Me ? n.documentElement : a;
1795
+ return e && r && a.insertBefore(t.createTextNode(r), a.childNodes[0] || null), tt === et ? se.call(n, je ? "html" : "body")[0] : je ? n.documentElement : a;
1788
1796
  }, bn = function _createNodeIterator(e) {
1789
1797
  return oe.call(e.ownerDocument || e, e, s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION, null);
1790
1798
  }, xn = function _stripTemplateExpressions(e) {
1791
- return e = pt(e, ue, " "), e = pt(e, z, " "), e = pt(e, de, " "), e;
1799
+ return e = ft(e, ue, " "), e = ft(e, z, " "), e = ft(e, de, " "), e;
1792
1800
  }, Sn = function _scrubTemplateExpressions(e) {
1793
1801
  e.normalize();
1794
1802
  let t = oe.call(e.ownerDocument || e, e, s.SHOW_TEXT | s.SHOW_COMMENT | s.SHOW_CDATA_SECTION | s.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
1795
1803
  for (; n;) n.data = xn(n.data), n = t.nextNode();
1796
1804
  let r = e.querySelectorAll?.call(e, "template");
1797
- r && rt(r, (e) => {
1805
+ r && nt(r, (e) => {
1798
1806
  wn(e.content) && Sn(e.content);
1799
1807
  });
1800
1808
  }, Cn = function _isClobbered(e) {
@@ -1803,7 +1811,7 @@ function createDOMPurify() {
1803
1811
  }, wn = function _isDocumentFragment(e) {
1804
1812
  if (!S || typeof e != "object" || !e) return !1;
1805
1813
  try {
1806
- return S(e) === qt.documentFragment;
1814
+ return S(e) === Kt.documentFragment;
1807
1815
  } catch {
1808
1816
  return !1;
1809
1817
  }
@@ -1816,20 +1824,20 @@ function createDOMPurify() {
1816
1824
  }
1817
1825
  };
1818
1826
  function _executeHooks(e, t, n) {
1819
- e.length !== 0 && rt(e, (e) => {
1827
+ e.length !== 0 && nt(e, (e) => {
1820
1828
  e.call(DOMPurify, t, n, nn);
1821
1829
  });
1822
1830
  }
1823
1831
  let En = function _isUnsafeNode(e, t) {
1824
- return !!(je && e.hasChildNodes() && !Tn(e.firstElementChild) && X(Ut, e.textContent) && X(Ut, e.innerHTML) || je && e.namespaceURI === tt && t === "style" && Tn(e.firstElementChild) || e.nodeType === qt.processingInstruction || je && e.nodeType === qt.comment && X(Wt, e.data));
1832
+ return !!(Ae && e.hasChildNodes() && !Tn(e.firstElementChild) && Z(Ht, e.textContent) && Z(Ht, e.innerHTML) || Ae && e.namespaceURI === et && t === "style" && Tn(e.firstElementChild) || e.nodeType === Kt.processingInstruction || Ae && e.nodeType === Kt.comment && Z(Ut, e.data));
1825
1833
  }, Dn = function _sanitizeDisallowedNode(e, t) {
1826
- if (!Ce[t] && jn(t) && (W.tagNameCheck instanceof RegExp && X(W.tagNameCheck, t) || W.tagNameCheck instanceof Function && W.tagNameCheck(t))) return !1;
1827
- if (Ue && !G[t]) {
1834
+ if (!G[t] && jn(t) && (W.tagNameCheck instanceof RegExp && Z(W.tagNameCheck, t) || W.tagNameCheck instanceof Function && W.tagNameCheck(t))) return !1;
1835
+ if (He && !Ge[t]) {
1828
1836
  let t = v(e), n = _(e);
1829
1837
  if (n && t) {
1830
1838
  let r = n.length;
1831
1839
  for (let i = r - 1; i >= 0; --i) {
1832
- let r = We ? n[i] : p(n[i], !0);
1840
+ let r = Ue ? n[i] : p(n[i], !0);
1833
1841
  t.insertBefore(r, h(e));
1834
1842
  }
1835
1843
  }
@@ -1844,23 +1852,23 @@ function createDOMPurify() {
1844
1852
  allowedTags: H
1845
1853
  }), e !== t && v(e) === null) return !0;
1846
1854
  if (En(e, n)) return pn(e), !0;
1847
- if (Ce[n] || !(Te.tagCheck instanceof Function && Te.tagCheck(n)) && !H[n]) {
1855
+ if (G[n] || !(we.tagCheck instanceof Function && we.tagCheck(n)) && !H[n]) {
1848
1856
  let t = Dn(e, n);
1849
1857
  return t === !1 && _executeHooks(R.afterSanitizeElements, e, null), t;
1850
1858
  }
1851
- if ((S ? S(e) : e.nodeType) === qt.element && !fn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && X(Gt, e.innerHTML)) return pn(e), !0;
1852
- if (Ae && e.nodeType === qt.text) {
1859
+ if ((S ? S(e) : e.nodeType) === Kt.element && !fn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && Z(Wt, e.innerHTML)) return pn(e), !0;
1860
+ if (ke && e.nodeType === Kt.text) {
1853
1861
  let t = xn(e.textContent);
1854
- e.textContent !== t && (st(DOMPurify.removed, { element: e.cloneNode() }), e.textContent = t);
1862
+ e.textContent !== t && (at(DOMPurify.removed, { element: e.cloneNode() }), e.textContent = t);
1855
1863
  }
1856
1864
  return _executeHooks(R.afterSanitizeElements, e, null), !1;
1857
1865
  }, kn = function _isValidAttribute(e, n, r) {
1858
- if (we[n] || je && n === "patchsrc" || je && n === "for" && e !== "label" && e !== "output" || Be && (n === "id" || n === "name") && (r in t || r in rn)) return !1;
1859
- let i = U[n] || Te.attributeCheck instanceof Function && Te.attributeCheck(n, e);
1860
- if (!(De && X(pe, n)) && !(Ee && X(he, n))) {
1866
+ if (Ce[n] || Ae && n === "patchsrc" || Ae && n === "for" && e !== "label" && e !== "output" || ze && (n === "id" || n === "name") && (r in t || r in rn)) return !1;
1867
+ let i = U[n] || we.attributeCheck instanceof Function && we.attributeCheck(n, e);
1868
+ if (!(Ee && Z(pe, n)) && !(Te && Z(he, n))) {
1861
1869
  if (!i) {
1862
- if (!(jn(e) && (W.tagNameCheck instanceof RegExp && X(W.tagNameCheck, e) || W.tagNameCheck instanceof Function && W.tagNameCheck(e)) && (W.attributeNameCheck instanceof RegExp && X(W.attributeNameCheck, n) || W.attributeNameCheck instanceof Function && W.attributeNameCheck(n, e)) || n === "is" && W.allowCustomizedBuiltInElements && (W.tagNameCheck instanceof RegExp && X(W.tagNameCheck, r) || W.tagNameCheck instanceof Function && W.tagNameCheck(r)))) return !1;
1863
- } else if (!Xe[n] && !X(B, pt(r, ve, "")) && !((n === "src" || n === "xlink:href" || n === "href") && e !== "script" && mt(r, "data:") === 0 && qe[e]) && !(Oe && !X(_e, pt(r, ve, ""))) && r) return !1;
1870
+ if (!(jn(e) && (W.tagNameCheck instanceof RegExp && Z(W.tagNameCheck, e) || W.tagNameCheck instanceof Function && W.tagNameCheck(e)) && (W.attributeNameCheck instanceof RegExp && Z(W.attributeNameCheck, n) || W.attributeNameCheck instanceof Function && W.attributeNameCheck(n, e)) || n === "is" && W.allowCustomizedBuiltInElements && (W.tagNameCheck instanceof RegExp && Z(W.tagNameCheck, r) || W.tagNameCheck instanceof Function && W.tagNameCheck(r)))) return !1;
1871
+ } else if (!Ye[n] && !Z(ye, ft(r, B, "")) && !((n === "src" || n === "xlink:href" || n === "href") && e !== "script" && pt(r, "data:") === 0 && Ke[e]) && !(De && !Z(_e, ft(r, B, ""))) && r) return !1;
1864
1872
  }
1865
1873
  return !0;
1866
1874
  }, An = addToSet({}, [
@@ -1873,7 +1881,7 @@ function createDOMPurify() {
1873
1881
  "font-face-uri",
1874
1882
  "missing-glyph"
1875
1883
  ]), jn = function _isBasicCustomElement(e) {
1876
- return !An[ut(e)] && X(ye, e);
1884
+ return !An[lt(e)] && Z(ve, e);
1877
1885
  }, Mn = function _applyTrustedTypesToAttribute(e, t, n, r) {
1878
1886
  if (T && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1879
1887
  case "TrustedHTML": return j(r);
@@ -1882,7 +1890,7 @@ function createDOMPurify() {
1882
1890
  return r;
1883
1891
  }, Nn = function _setAttributeValue(e, t, n, r) {
1884
1892
  try {
1885
- n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), Cn(e) ? pn(e) : at(DOMPurify.removed);
1893
+ n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), Cn(e) ? pn(e) : it(DOMPurify.removed);
1886
1894
  } catch {
1887
1895
  hn(t, e);
1888
1896
  }
@@ -1898,12 +1906,12 @@ function createDOMPurify() {
1898
1906
  forceKeepAttr: void 0
1899
1907
  }, r = t.length, i = Q(e.nodeName);
1900
1908
  for (; r--;) {
1901
- let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, u = Q(o), f = c, p = o === "value" ? f : ht(f);
1902
- if (n.attrName = u, n.attrValue = p, n.keepAttr = !0, n.forceKeepAttr = void 0, _executeHooks(R.uponSanitizeAttribute, e, n), p = n.attrValue, Ve && (u === "id" || u === "name") && mt(p, He) !== 0 && (hn(o, e), p = He + p), je && X(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, p)) {
1909
+ let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, u = Q(o), f = c, p = o === "value" ? f : mt(f);
1910
+ if (n.attrName = u, n.attrValue = p, n.keepAttr = !0, n.forceKeepAttr = void 0, _executeHooks(R.uponSanitizeAttribute, e, n), p = n.attrValue, Be && (u === "id" || u === "name") && pt(p, Ve) !== 0 && (hn(o, e), p = Ve + p), Ae && Z(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, p)) {
1903
1911
  hn(o, e);
1904
1912
  continue;
1905
1913
  }
1906
- if (u === "attributename" && ft(p, "href")) {
1914
+ if (u === "attributename" && dt(p, "href")) {
1907
1915
  hn(o, e);
1908
1916
  continue;
1909
1917
  }
@@ -1912,11 +1920,11 @@ function createDOMPurify() {
1912
1920
  hn(o, e);
1913
1921
  continue;
1914
1922
  }
1915
- if (!ke && X(Kt, p)) {
1923
+ if (!Oe && Z(Gt, p)) {
1916
1924
  hn(o, e);
1917
1925
  continue;
1918
1926
  }
1919
- if (Ae && (p = xn(p)), !kn(i, u, p)) {
1927
+ if (ke && (p = xn(p)), !kn(i, u, p)) {
1920
1928
  hn(o, e);
1921
1929
  continue;
1922
1930
  }
@@ -1926,7 +1934,7 @@ function createDOMPurify() {
1926
1934
  _executeHooks(R.afterSanitizeAttributes, e, null);
1927
1935
  }, Fn = function _sanitizeShadowDOM(e) {
1928
1936
  let t = null, n = bn(e);
1929
- for (_executeHooks(R.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (_executeHooks(R.uponSanitizeShadowNode, t, null), On(t, e), Pn(t), wn(t.content) && Fn(t.content), (S ? S(t) : t.nodeType) === qt.element) {
1937
+ for (_executeHooks(R.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (_executeHooks(R.uponSanitizeShadowNode, t, null), On(t, e), Pn(t), wn(t.content) && Fn(t.content), (S ? S(t) : t.nodeType) === Kt.element) {
1930
1938
  let e = b(t);
1931
1939
  wn(e) && (In(e), Fn(e));
1932
1940
  }
@@ -1942,7 +1950,7 @@ function createDOMPurify() {
1942
1950
  Fn(e.shadow);
1943
1951
  continue;
1944
1952
  }
1945
- let n = e.node, r = (S ? S(n) : n.nodeType) === qt.element, i = _(n);
1953
+ let n = e.node, r = (S ? S(n) : n.nodeType) === Kt.element, i = _(n);
1946
1954
  if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
1947
1955
  node: i[e],
1948
1956
  shadow: null
@@ -1971,73 +1979,73 @@ function createDOMPurify() {
1971
1979
  };
1972
1980
  return DOMPurify.sanitize = function(e) {
1973
1981
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = null, i = null, a = null, o = null;
1974
- if (gt = !e, gt && (e = "<!-->"), typeof e != "string" && !Tn(e) && (e = stringifyValue(e), typeof e != "string")) throw xt("dirty is not a string, aborting");
1982
+ if (ht = !e, ht && (e = "<!-->"), typeof e != "string" && !Tn(e) && (e = stringifyValue(e), typeof e != "string")) throw bt("dirty is not a string, aborting");
1975
1983
  if (!DOMPurify.isSupported) return e;
1976
- Ne ? (H = Pe, U = Fe) : on(t), (R.uponSanitizeElement.length > 0 || R.uponSanitizeAttribute.length > 0) && (H = clone(H)), R.uponSanitizeAttribute.length > 0 && (U = clone(U)), DOMPurify.removed = [];
1977
- let s = We && typeof e != "string" && Tn(e);
1984
+ Me ? (H = Ne, U = Pe) : on(t), (R.uponSanitizeElement.length > 0 || R.uponSanitizeAttribute.length > 0) && (H = clone(H)), R.uponSanitizeAttribute.length > 0 && (U = clone(U)), DOMPurify.removed = [];
1985
+ let s = Ue && typeof e != "string" && Tn(e);
1978
1986
  if (s) {
1979
1987
  vn(e);
1980
1988
  let t = C ? C(e) : e.nodeName;
1981
1989
  if (typeof t == "string") {
1982
1990
  let n = Q(t);
1983
- if (!H[n] || Ce[n]) throw mn(e), xt("root node is forbidden and cannot be sanitized in-place");
1991
+ if (!H[n] || G[n]) throw mn(e), bt("root node is forbidden and cannot be sanitized in-place");
1984
1992
  }
1985
- if (Cn(e)) throw mn(e), xt("root node is clobbered and cannot be sanitized in-place");
1993
+ if (Cn(e)) throw mn(e), bt("root node is clobbered and cannot be sanitized in-place");
1986
1994
  try {
1987
1995
  In(e);
1988
1996
  } catch (t) {
1989
1997
  throw mn(e), t;
1990
1998
  }
1991
- } else if (Tn(e)) r = yn("<!---->"), i = r.ownerDocument.importNode(e, !0), i.nodeType === qt.element && i.nodeName === "BODY" || i.nodeName === "HTML" ? r = i : r.appendChild(i), In(i);
1999
+ } else if (Tn(e)) r = yn("<!---->"), i = r.ownerDocument.importNode(e, !0), i.nodeType === Kt.element && i.nodeName === "BODY" || i.nodeName === "HTML" ? r = i : r.appendChild(i), In(i);
1992
2000
  else {
1993
- if (!Le && !Ae && !Me && e.indexOf("<") === -1) return T && ze ? j(e) : e;
1994
- if (r = yn(e), !r) return Le ? null : ze ? te : "";
2001
+ if (!Ie && !ke && !je && e.indexOf("<") === -1) return T && Re ? j(e) : e;
2002
+ if (r = yn(e), !r) return Ie ? null : Re ? te : "";
1995
2003
  }
1996
- r && Ie && pn(r.firstChild);
2004
+ r && Fe && pn(r.firstChild);
1997
2005
  let c = s ? e : r, u = bn(c);
1998
2006
  try {
1999
2007
  for (; a = u.nextNode();) On(a, c), Pn(a), wn(a.content) && Fn(a.content);
2000
2008
  } catch (t) {
2001
- throw s && (mn(e), rt(DOMPurify.removed, (e) => {
2009
+ throw s && (mn(e), nt(DOMPurify.removed, (e) => {
2002
2010
  e.element && _n(e.element);
2003
2011
  })), t;
2004
2012
  }
2005
- if (s) return rt(DOMPurify.removed, (e) => {
2013
+ if (s) return nt(DOMPurify.removed, (e) => {
2006
2014
  e.element && _n(e.element);
2007
- }), Ae && Sn(e), e;
2008
- if (Le) {
2009
- if (Ae && Sn(r), Re) for (o = I.call(r.ownerDocument); r.firstChild;) o.appendChild(r.firstChild);
2015
+ }), ke && Sn(e), e;
2016
+ if (Ie) {
2017
+ if (ke && Sn(r), Le) for (o = I.call(r.ownerDocument); r.firstChild;) o.appendChild(r.firstChild);
2010
2018
  else o = r;
2011
2019
  return (U.shadowroot || U.shadowrootmode) && (o = ce.call(n, o, !0)), o;
2012
2020
  }
2013
- let f = Me ? r.outerHTML : r.innerHTML;
2014
- return Me && H["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && X(Vt, r.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + r.ownerDocument.doctype.name + ">\n" + f), Ae && (f = xn(f)), T && ze ? j(f) : f;
2021
+ let f = je ? r.outerHTML : r.innerHTML;
2022
+ return je && H["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && Z(Bt, r.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + r.ownerDocument.doctype.name + ">\n" + f), ke && (f = xn(f)), T && Re ? j(f) : f;
2015
2023
  }, DOMPurify.setConfig = function() {
2016
2024
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2017
- on(e), Ne = !0, Pe = H, Fe = U;
2025
+ on(e), Me = !0, Ne = H, Pe = U;
2018
2026
  }, DOMPurify.clearConfig = function() {
2019
- nn = null, Ne = !1, Pe = null, Fe = null, T = ne, te = "";
2027
+ nn = null, Me = !1, Ne = null, Pe = null, T = ne, te = "";
2020
2028
  }, DOMPurify.isValidAttribute = function(e, t, n) {
2021
2029
  nn || on({});
2022
2030
  let r = Q(e), i = Q(t);
2023
2031
  return kn(r, i, n);
2024
2032
  }, DOMPurify.addHook = function(e, t) {
2025
- typeof t == "function" && J(R, e) && st(R[e], t);
2033
+ typeof t == "function" && X(R, e) && at(R[e], t);
2026
2034
  }, DOMPurify.removeHook = function(e, t) {
2027
- if (J(R, e)) {
2035
+ if (X(R, e)) {
2028
2036
  if (t !== void 0) {
2029
- let n = it(R[e], t);
2030
- return n === -1 ? void 0 : ct(R[e], n, 1)[0];
2037
+ let n = rt(R[e], t);
2038
+ return n === -1 ? void 0 : st(R[e], n, 1)[0];
2031
2039
  }
2032
- return at(R[e]);
2040
+ return it(R[e]);
2033
2041
  }
2034
2042
  }, DOMPurify.removeHooks = function(e) {
2035
- J(R, e) && (R[e] = []);
2043
+ X(R, e) && (R[e] = []);
2036
2044
  }, DOMPurify.removeAllHooks = function() {
2037
- R = Xt();
2045
+ R = Yt();
2038
2046
  }, DOMPurify;
2039
2047
  }
2040
- var Qt = createDOMPurify(), _Class;
2048
+ var Zt = createDOMPurify(), _Class;
2041
2049
  function M() {
2042
2050
  return {
2043
2051
  async: !1,
@@ -2052,11 +2060,11 @@ function M() {
2052
2060
  walkTokens: null
2053
2061
  };
2054
2062
  }
2055
- var $t = M();
2063
+ var Qt = M();
2056
2064
  function N(e) {
2057
- $t = e;
2065
+ Qt = e;
2058
2066
  }
2059
- var en = { exec: () => null };
2067
+ var $t = { exec: () => null };
2060
2068
  function E(e) {
2061
2069
  let t = [];
2062
2070
  return (n) => {
@@ -2068,19 +2076,19 @@ function d(e, t = "") {
2068
2076
  let n = typeof e == "string" ? e : e.source, r = {
2069
2077
  replace: (e, t) => {
2070
2078
  let i = typeof t == "string" ? t : t.source;
2071
- return i = i.replace(Z.caret, "$1"), n = n.replace(e, i), r;
2079
+ return i = i.replace(tn.caret, "$1"), n = n.replace(e, i), r;
2072
2080
  },
2073
2081
  getRegex: () => new RegExp(n, t)
2074
2082
  };
2075
2083
  return r;
2076
2084
  }
2077
- var tn = ((e = "") => {
2085
+ var en = ((e = "") => {
2078
2086
  try {
2079
2087
  return !!RegExp("(?<=1)(?<!1)" + e);
2080
2088
  } catch {
2081
2089
  return !1;
2082
2090
  }
2083
- })(), Z = {
2091
+ })(), tn = {
2084
2092
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
2085
2093
  outputLinkReplace: /\\([\[\]])/g,
2086
2094
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -2149,7 +2157,7 @@ var tn = ((e = "") => {
2149
2157
  list: hn,
2150
2158
  newline: Q,
2151
2159
  paragraph: yn,
2152
- table: en,
2160
+ table: $t,
2153
2161
  text: fn
2154
2162
  }, Sn = d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", an).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", gn).getRegex(), Cn = {
2155
2163
  ...xn,
@@ -2161,19 +2169,19 @@ var tn = ((e = "") => {
2161
2169
  html: d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", _n).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(),
2162
2170
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
2163
2171
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
2164
- fences: en,
2172
+ fences: $t,
2165
2173
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
2166
2174
  paragraph: d(dn).replace("hr", an).replace("heading", " *#{1,6} *[^\n]").replace("lheading", ln).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
2167
- }, Tn = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, En = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Dn = /^( {2,}|\\)\n(?!\s*$)/, On = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, kn = /[\p{P}\p{S}]/u, An = /[\s\p{P}\p{S}]/u, jn = /[^\s\p{P}\p{S}]/u, Mn = d(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, An).getRegex(), Nn = /(?!~)[\p{P}\p{S}]/u, Pn = /(?!~)[\s\p{P}\p{S}]/u, Fn = /(?:[^\s\p{P}\p{S}]|~)/u, In = d(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", tn ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ln = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Rn = d(Ln, "u").replace(/punct/g, kn).getRegex(), zn = d(Ln, "u").replace(/punct/g, Nn).getRegex(), Bn = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Vn = d(Bn, "gu").replace(/notPunctSpace/g, jn).replace(/punctSpace/g, An).replace(/punct/g, kn).getRegex(), Hn = d(Bn, "gu").replace(/notPunctSpace/g, Fn).replace(/punctSpace/g, Pn).replace(/punct/g, Nn).getRegex(), Un = d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, jn).replace(/punctSpace/g, An).replace(/punct/g, kn).getRegex(), Wn = d(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, kn).getRegex(), Gn = d("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, jn).replace(/punctSpace/g, An).replace(/punct/g, kn).getRegex(), Kn = d(/\\(punct)/, "gu").replace(/punct/g, kn).getRegex(), qn = d(/^<(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(), Jn = d(_n).replace("(?:-->|$)", "-->").getRegex(), Yn = d("^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", Jn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Xn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Zn = d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Xn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Qn = d(/^!?\[(label)\]\[(ref)\]/).replace("label", Xn).replace("ref", pn).getRegex(), $n = d(/^!?\[(ref)\](?:\[\])?/).replace("ref", pn).getRegex(), er = d("reflink|nolink(?!\\()", "g").replace("reflink", Qn).replace("nolink", $n).getRegex(), tr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, nr = {
2168
- _backpedal: en,
2175
+ }, Tn = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, En = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Dn = /^( {2,}|\\)\n(?!\s*$)/, On = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, kn = /[\p{P}\p{S}]/u, An = /[\s\p{P}\p{S}]/u, jn = /[^\s\p{P}\p{S}]/u, Mn = d(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, An).getRegex(), Nn = /(?!~)[\p{P}\p{S}]/u, Pn = /(?!~)[\s\p{P}\p{S}]/u, Fn = /(?:[^\s\p{P}\p{S}]|~)/u, In = d(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", en ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ln = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Rn = d(Ln, "u").replace(/punct/g, kn).getRegex(), zn = d(Ln, "u").replace(/punct/g, Nn).getRegex(), Bn = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Vn = d(Bn, "gu").replace(/notPunctSpace/g, jn).replace(/punctSpace/g, An).replace(/punct/g, kn).getRegex(), Hn = d(Bn, "gu").replace(/notPunctSpace/g, Fn).replace(/punctSpace/g, Pn).replace(/punct/g, Nn).getRegex(), Un = d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, jn).replace(/punctSpace/g, An).replace(/punct/g, kn).getRegex(), Wn = d(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, kn).getRegex(), Gn = d("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, jn).replace(/punctSpace/g, An).replace(/punct/g, kn).getRegex(), Kn = d(/\\(punct)/, "gu").replace(/punct/g, kn).getRegex(), qn = d(/^<(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(), Jn = d(_n).replace("(?:-->|$)", "-->").getRegex(), Yn = d("^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", Jn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Xn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Zn = d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Xn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Qn = d(/^!?\[(label)\]\[(ref)\]/).replace("label", Xn).replace("ref", pn).getRegex(), $n = d(/^!?\[(ref)\](?:\[\])?/).replace("ref", pn).getRegex(), er = d("reflink|nolink(?!\\()", "g").replace("reflink", Qn).replace("nolink", $n).getRegex(), tr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, nr = {
2176
+ _backpedal: $t,
2169
2177
  anyPunctuation: Kn,
2170
2178
  autolink: qn,
2171
2179
  blockSkip: In,
2172
2180
  br: Dn,
2173
2181
  code: En,
2174
- del: en,
2175
- delLDelim: en,
2176
- delRDelim: en,
2182
+ del: $t,
2183
+ delLDelim: $t,
2184
+ delRDelim: $t,
2177
2185
  emStrongLDelim: Rn,
2178
2186
  emStrongRDelimAst: Vn,
2179
2187
  emStrongRDelimUnd: Un,
@@ -2185,7 +2193,7 @@ var tn = ((e = "") => {
2185
2193
  reflinkSearch: er,
2186
2194
  tag: Yn,
2187
2195
  text: On,
2188
- url: en
2196
+ url: $t
2189
2197
  }, rr = {
2190
2198
  ...nr,
2191
2199
  link: d(/^!?\[(label)\]\((.*?)\)/).replace("label", Xn).getRegex(),
@@ -2222,27 +2230,27 @@ var tn = ((e = "") => {
2222
2230
  }, ge = (e) => cr[e];
2223
2231
  function O(e, t) {
2224
2232
  if (t) {
2225
- if (Z.escapeTest.test(e)) return e.replace(Z.escapeReplace, ge);
2226
- } else if (Z.escapeTestNoEncode.test(e)) return e.replace(Z.escapeReplaceNoEncode, ge);
2233
+ if (tn.escapeTest.test(e)) return e.replace(tn.escapeReplace, ge);
2234
+ } else if (tn.escapeTestNoEncode.test(e)) return e.replace(tn.escapeReplaceNoEncode, ge);
2227
2235
  return e;
2228
2236
  }
2229
2237
  function V(e) {
2230
2238
  try {
2231
- e = encodeURI(e).replace(Z.percentDecode, "%");
2239
+ e = encodeURI(e).replace(tn.percentDecode, "%");
2232
2240
  } catch {
2233
2241
  return null;
2234
2242
  }
2235
2243
  return e;
2236
2244
  }
2237
2245
  function Y(e, t) {
2238
- let n = e.replace(Z.findPipe, (e, t, n) => {
2246
+ let n = e.replace(tn.findPipe, (e, t, n) => {
2239
2247
  let r = !1, i = t;
2240
2248
  for (; --i >= 0 && n[i] === "\\";) r = !r;
2241
2249
  return r ? "|" : " |";
2242
- }).split(Z.splitPipe), r = 0;
2250
+ }).split(tn.splitPipe), r = 0;
2243
2251
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
2244
2252
  else for (; n.length < t;) n.push("");
2245
- for (; r < n.length; r++) n[r] = n[r].trim().replace(Z.slashPipe, "|");
2253
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(tn.slashPipe, "|");
2246
2254
  return n;
2247
2255
  }
2248
2256
  function $(e, t, n) {
@@ -2259,7 +2267,7 @@ function $(e, t, n) {
2259
2267
  }
2260
2268
  function ee(e) {
2261
2269
  let t = e.split("\n"), n = t.length - 1;
2262
- for (; n >= 0 && Z.blankLine.test(t[n]);) n--;
2270
+ for (; n >= 0 && tn.blankLine.test(t[n]);) n--;
2263
2271
  return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
2264
2272
  }
2265
2273
  function fe(e, t) {
@@ -2304,7 +2312,7 @@ function ot(e, t, n) {
2304
2312
  }
2305
2313
  var w = class {
2306
2314
  constructor(t) {
2307
- e(this, "options", void 0), e(this, "rules", void 0), e(this, "lexer", void 0), this.options = t || $t;
2315
+ e(this, "options", void 0), e(this, "rules", void 0), e(this, "lexer", void 0), this.options = t || Qt;
2308
2316
  }
2309
2317
  space(e) {
2310
2318
  let t = this.rules.block.newline.exec(e);
@@ -2756,13 +2764,13 @@ ${c}` : c;
2756
2764
  }
2757
2765
  }, lr = class l {
2758
2766
  constructor(t) {
2759
- e(this, "tokens", void 0), e(this, "options", void 0), e(this, "state", void 0), e(this, "inlineQueue", void 0), e(this, "tokenizer", void 0), this.tokens = [], this.tokens.links = Object.create(null), this.options = t || $t, this.options.tokenizer = this.options.tokenizer || new w(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
2767
+ e(this, "tokens", void 0), e(this, "options", void 0), e(this, "state", void 0), e(this, "inlineQueue", void 0), e(this, "tokenizer", void 0), this.tokens = [], this.tokens.links = Object.create(null), this.options = t || Qt, this.options.tokenizer = this.options.tokenizer || new w(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
2760
2768
  inLink: !1,
2761
2769
  inRawBlock: !1,
2762
2770
  top: !0
2763
2771
  };
2764
2772
  let n = {
2765
- other: Z,
2773
+ other: tn,
2766
2774
  block: or.normal,
2767
2775
  inline: sr.normal
2768
2776
  };
@@ -2781,7 +2789,7 @@ ${c}` : c;
2781
2789
  return new l(t).inlineTokens(e);
2782
2790
  }
2783
2791
  lex(e) {
2784
- e = e.replace(Z.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
2792
+ e = e.replace(tn.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
2785
2793
  for (let e = 0; e < this.inlineQueue.length; e++) {
2786
2794
  let t = this.inlineQueue[e];
2787
2795
  this.inlineTokens(t.src, t.tokens);
@@ -2789,7 +2797,7 @@ ${c}` : c;
2789
2797
  return this.inlineQueue = [], this.tokens;
2790
2798
  }
2791
2799
  blockTokens(e, t = [], n = !1) {
2792
- this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(Z.tabCharGlobal, " ").replace(Z.spaceLine, ""));
2800
+ this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(tn.tabCharGlobal, " ").replace(tn.spaceLine, ""));
2793
2801
  let r = Infinity;
2794
2802
  for (; e;) {
2795
2803
  if (e.length < r) r = e.length;
@@ -2973,13 +2981,13 @@ ${c}` : c;
2973
2981
  }
2974
2982
  }, y = class {
2975
2983
  constructor(t) {
2976
- e(this, "options", void 0), e(this, "parser", void 0), this.options = t || $t;
2984
+ e(this, "options", void 0), e(this, "parser", void 0), this.options = t || Qt;
2977
2985
  }
2978
2986
  space(e) {
2979
2987
  return "";
2980
2988
  }
2981
2989
  code({ text: e, lang: t, escaped: n }) {
2982
- let r = (t || "").match(Z.notSpaceStart)?.[0], i = e.replace(Z.endingNewline, "") + "\n";
2990
+ let r = (t || "").match(tn.notSpaceStart)?.[0], i = e.replace(tn.endingNewline, "") + "\n";
2983
2991
  return r ? "<pre><code class=\"language-" + O(r) + "\">" + (n ? i : O(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : O(i, !0)) + "</code></pre>\n";
2984
2992
  }
2985
2993
  blockquote({ tokens: e }) {
@@ -3109,7 +3117,7 @@ ${e}</tr>
3109
3117
  }
3110
3118
  }, ur = class l {
3111
3119
  constructor(t) {
3112
- e(this, "options", void 0), e(this, "renderer", void 0), e(this, "textRenderer", void 0), this.options = t || $t, this.options.renderer = this.options.renderer || new y(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new L();
3120
+ e(this, "options", void 0), e(this, "renderer", void 0), e(this, "textRenderer", void 0), this.options = t || Qt, this.options.renderer = this.options.renderer || new y(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new L();
3113
3121
  }
3114
3122
  static parse(e, t) {
3115
3123
  return new l(t).parse(e);
@@ -3257,7 +3265,7 @@ ${e}</tr>
3257
3265
  }
3258
3266
  }, dr = (_Class = class {
3259
3267
  constructor(t) {
3260
- e(this, "options", void 0), e(this, "block", void 0), this.options = t || $t;
3268
+ e(this, "options", void 0), e(this, "block", void 0), this.options = t || Qt;
3261
3269
  }
3262
3270
  preprocess(e) {
3263
3271
  return e;
@@ -3457,7 +3465,7 @@ function g(e, t) {
3457
3465
  }
3458
3466
  g.options = g.setOptions = function(e) {
3459
3467
  return fr.setOptions(e), g.defaults = fr.defaults, N(g.defaults), g;
3460
- }, g.getDefaults = M, g.defaults = $t, g.use = function(...e) {
3468
+ }, g.getDefaults = M, g.defaults = Qt, g.use = function(...e) {
3461
3469
  return fr.use(...e), g.defaults = fr.defaults, N(g.defaults), g;
3462
3470
  }, g.walkTokens = function(e, t) {
3463
3471
  return fr.walkTokens(e, t);
@@ -3964,13 +3972,13 @@ var Cr = [
3964
3972
  "var(--color-theme-900)",
3965
3973
  "var(--color-primary-500)",
3966
3974
  "color-mix(in oklch, var(--color-primary-500) 55%, var(--color-theme-500))"
3967
- ], ve = [
3975
+ ], B = [
3968
3976
  "rgba(255, 255, 255, 0.92)",
3969
3977
  "color-mix(in oklch, white 30%, var(--color-primary-500))",
3970
3978
  "rgba(255, 255, 255, 0.55)"
3971
3979
  ];
3972
3980
  function seriesColor(e) {
3973
- let n = t.inverted ? ve : _e;
3981
+ let n = t.inverted ? B : _e;
3974
3982
  return n[e % n.length];
3975
3983
  }
3976
3984
  function diagramNodeFill(e) {
@@ -3979,7 +3987,7 @@ var Cr = [
3979
3987
  function diagramNodeStroke(e) {
3980
3988
  return e === "decision" ? t.inverted ? "rgba(255, 255, 255, 0.26)" : "color-mix(in oklch, var(--color-primary-500) 32%, var(--color-theme-300))" : Se.value;
3981
3989
  }
3982
- let ye = f(() => t.inverted ? "rgba(255, 255, 255, 0.95)" : "var(--color-theme-900)"), B = f(() => t.inverted ? "rgba(255, 255, 255, 0.6)" : "var(--color-theme-500)"), H = f(() => t.inverted ? "rgba(255, 255, 255, 0.45)" : "color-mix(in oklch, var(--color-theme-900) 42%, transparent)"), be = f(() => t.inverted ? "rgba(255, 255, 255, 0.1)" : "color-mix(in oklch, var(--color-theme-900) 8%, transparent)"), U = f(() => t.inverted ? "rgba(255, 255, 255, 0.24)" : "color-mix(in oklch, var(--color-theme-900) 18%, transparent)"), Se = f(() => t.inverted ? "rgba(255, 255, 255, 0.16)" : "color-mix(in oklch, var(--color-theme-300) 55%, transparent)"), W = f(() => t.inverted ? "rgba(255, 255, 255, 0.14)" : "color-mix(in oklch, var(--color-theme-900) 8%, transparent)"), Ce = f(() => t.inverted ? "rgba(255, 255, 255, 0.18)" : "color-mix(in oklch, var(--color-theme-900) 16%, transparent)"), we = f(() => t.inverted ? "rgba(255, 255, 255, 0.12)" : "color-mix(in oklch, var(--color-theme-900) 9%, transparent)");
3990
+ let ve = f(() => t.inverted ? "rgba(255, 255, 255, 0.95)" : "var(--color-theme-900)"), ye = f(() => t.inverted ? "rgba(255, 255, 255, 0.6)" : "var(--color-theme-500)"), H = f(() => t.inverted ? "rgba(255, 255, 255, 0.45)" : "color-mix(in oklch, var(--color-theme-900) 42%, transparent)"), be = f(() => t.inverted ? "rgba(255, 255, 255, 0.1)" : "color-mix(in oklch, var(--color-theme-900) 8%, transparent)"), U = f(() => t.inverted ? "rgba(255, 255, 255, 0.24)" : "color-mix(in oklch, var(--color-theme-900) 18%, transparent)"), Se = f(() => t.inverted ? "rgba(255, 255, 255, 0.16)" : "color-mix(in oklch, var(--color-theme-300) 55%, transparent)"), W = f(() => t.inverted ? "rgba(255, 255, 255, 0.14)" : "color-mix(in oklch, var(--color-theme-900) 8%, transparent)"), G = f(() => t.inverted ? "rgba(255, 255, 255, 0.18)" : "color-mix(in oklch, var(--color-theme-900) 16%, transparent)"), Ce = f(() => t.inverted ? "rgba(255, 255, 255, 0.12)" : "color-mix(in oklch, var(--color-theme-900) 9%, transparent)");
3983
3991
  return (e, r) => o.value ? (k(), h("section", {
3984
3992
  key: 0,
3985
3993
  "data-test": "chat-visual",
@@ -3993,11 +4001,11 @@ var Cr = [
3993
4001
  }, [
3994
4002
  _("header", wr, [_("h4", {
3995
4003
  class: "text-[13px] font-semibold leading-tight",
3996
- style: T({ color: ye.value })
4004
+ style: T({ color: ve.value })
3997
4005
  }, F(o.value.meta.title), 5), o.value.meta.description ? (k(), h("p", {
3998
4006
  key: 0,
3999
4007
  class: "mt-0.5 text-[12px] leading-snug",
4000
- style: T({ color: B.value })
4008
+ style: T({ color: ye.value })
4001
4009
  }, F(o.value.meta.description), 5)) : m("", !0)]),
4002
4010
  _("div", {
4003
4011
  ref_key: "bodyEl",
@@ -4012,13 +4020,13 @@ var Cr = [
4012
4020
  class: "min-w-0"
4013
4021
  }, [_("div", Dr, [_("span", {
4014
4022
  class: "line-clamp-2 min-w-0 font-medium leading-snug",
4015
- style: T({ color: ye.value })
4023
+ style: T({ color: ve.value })
4016
4024
  }, F(e.label), 5), _("span", {
4017
4025
  class: "shrink-0 font-semibold tabular-nums",
4018
- style: T({ color: ye.value })
4026
+ style: T({ color: ve.value })
4019
4027
  }, F(e.value), 5)]), _("div", {
4020
4028
  class: "h-2 w-full overflow-hidden rounded-full",
4021
- style: T({ background: we.value })
4029
+ style: T({ background: Ce.value })
4022
4030
  }, [_("div", {
4023
4031
  class: "h-full rounded-full",
4024
4032
  style: T({
@@ -4121,23 +4129,23 @@ var Cr = [
4121
4129
  class: "size-2.5 shrink-0 rounded-full",
4122
4130
  style: T({ background: seriesColor(e.seriesIndex) })
4123
4131
  }, null, 4),
4124
- _("span", { style: T({ color: B.value }) }, F(e.label), 5),
4132
+ _("span", { style: T({ color: ye.value }) }, F(e.label), 5),
4125
4133
  _("span", {
4126
4134
  class: "font-semibold tabular-nums",
4127
- style: T({ color: ye.value })
4135
+ style: T({ color: ve.value })
4128
4136
  }, F(e.value), 5)
4129
4137
  ]))), 128))])) : m("", !0)], 8, Tr)) : x.value ? (k(), h("div", Rr, [(k(!0), h(u, null, j(pe.value, (e, t) => (k(), h("div", { key: e.key }, [_("div", zr, [_("span", {
4130
4138
  class: "truncate font-medium",
4131
- style: T({ color: ye.value })
4139
+ style: T({ color: ve.value })
4132
4140
  }, F(e.name), 5), _("span", Br, [_("span", {
4133
4141
  class: "font-semibold",
4134
- style: T({ color: ye.value })
4142
+ style: T({ color: ve.value })
4135
4143
  }, F(e.display), 5), _("span", {
4136
4144
  class: "ml-1.5",
4137
- style: T({ color: B.value })
4145
+ style: T({ color: ye.value })
4138
4146
  }, F(Math.round(e.percent * 100)) + "%", 5)])]), _("div", {
4139
4147
  class: "h-1.5 w-full overflow-hidden rounded-full",
4140
- style: T({ background: we.value })
4148
+ style: T({ background: Ce.value })
4141
4149
  }, [_("div", {
4142
4150
  class: "h-full rounded-full",
4143
4151
  style: T({
@@ -4167,14 +4175,14 @@ var Cr = [
4167
4175
  "stroke-width": "1.4",
4168
4176
  "stroke-linecap": "round",
4169
4177
  "vector-effect": "non-scaling-stroke",
4170
- style: T({ stroke: Ce.value })
4178
+ style: T({ stroke: G.value })
4171
4179
  }, null, 12, Ur))), 128)),
4172
4180
  (k(!0), h(u, null, j(he.value.edges, (e) => (k(), h("circle", {
4173
4181
  key: `${e.key}-dot`,
4174
4182
  cx: e.x2,
4175
4183
  cy: e.y2,
4176
4184
  r: "2.4",
4177
- style: T({ fill: Ce.value })
4185
+ style: T({ fill: G.value })
4178
4186
  }, null, 12, Wr))), 128)),
4179
4187
  (k(!0), h(u, null, j(he.value.edges.filter((e) => e.label), (e) => (k(), h("foreignObject", {
4180
4188
  key: `${e.key}-label`,
@@ -4186,7 +4194,7 @@ var Cr = [
4186
4194
  xmlns: "http://www.w3.org/1999/xhtml",
4187
4195
  class: "flex h-full items-center justify-center px-1 text-center text-[10.5px] font-medium leading-none",
4188
4196
  style: T({
4189
- color: B.value,
4197
+ color: ye.value,
4190
4198
  background: t.inverted ? "var(--color-theme-900)" : "var(--color-theme-0)"
4191
4199
  })
4192
4200
  }, F(e.label), 5)], 8, Gr))), 128)),
@@ -4223,11 +4231,11 @@ var Cr = [
4223
4231
  height: e.height - 10
4224
4232
  }, [_("div", Xr, [_("div", {
4225
4233
  class: "line-clamp-2 text-[13px] font-semibold leading-tight",
4226
- style: T({ color: ye.value })
4234
+ style: T({ color: ve.value })
4227
4235
  }, F(e.label), 5), e.detail ? (k(), h("div", {
4228
4236
  key: 0,
4229
4237
  class: "mt-0.5 line-clamp-1 text-[10.5px] leading-none",
4230
- style: T({ color: B.value })
4238
+ style: T({ color: ye.value })
4231
4239
  }, F(e.detail), 5)) : m("", !0)])], 8, Yr))], 8, Kr))), 128))
4232
4240
  ], 12, Hr))])) : m("", !0)], 512),
4233
4241
  o.value.meta.footer ? (k(), h("footer", {
@@ -4276,7 +4284,7 @@ var Cr = [
4276
4284
  function renderMarkdown(e) {
4277
4285
  if (!e) return "";
4278
4286
  let t = g.parse(e, { async: !1 });
4279
- return Qt.sanitize(t, {
4287
+ return Zt.sanitize(t, {
4280
4288
  ADD_ATTR: ["target"],
4281
4289
  ADD_DATA_URI_TAGS: ["img"]
4282
4290
  });
@@ -4459,17 +4467,13 @@ var Cr = [
4459
4467
  key: 0,
4460
4468
  class: "shrink-0 rounded-full bg-theme-50 px-2.5 py-1 font-mono text-[11px] font-medium text-theme-500"
4461
4469
  }, ci = {
4462
- key: 2,
4463
- class: "flex flex-col items-center justify-center px-6 py-16 text-center",
4464
- "data-test": "chat-offline"
4465
- }, li = {
4466
4470
  key: 0,
4467
4471
  "data-test": "messaging-empty-state",
4468
4472
  class: "flex flex-col items-center justify-center px-4"
4469
- }, ui = ["title"], di = {
4473
+ }, li = ["title"], ui = {
4470
4474
  key: 0,
4471
4475
  class: "flex items-center gap-3 py-3 px-2"
4472
- }, fi = ["data-journal-outcome"], pi = [
4476
+ }, di = ["data-journal-outcome"], fi = [
4473
4477
  "data-message-id",
4474
4478
  "data-message-sender",
4475
4479
  "data-conversation-id",
@@ -4480,7 +4484,7 @@ var Cr = [
4480
4484
  "data-issue-action-label",
4481
4485
  "data-issue-action-url",
4482
4486
  "data-streaming"
4483
- ], mi = { class: "max-w-[85%] min-w-0" }, hi = ["href"], gi = [
4487
+ ], pi = { class: "max-w-[85%] min-w-0" }, mi = ["href"], hi = [
4484
4488
  "data-message-id",
4485
4489
  "data-message-sender",
4486
4490
  "data-conversation-id",
@@ -4489,7 +4493,7 @@ var Cr = [
4489
4493
  "data-issue-code",
4490
4494
  "data-issue-bucket",
4491
4495
  "data-streaming"
4492
- ], _i = [
4496
+ ], gi = [
4493
4497
  "data-test",
4494
4498
  "data-message-id",
4495
4499
  "data-message-sender",
@@ -4497,51 +4501,55 @@ var Cr = [
4497
4501
  "data-message-sequence",
4498
4502
  "data-system-kind",
4499
4503
  "data-streaming"
4500
- ], vi = ["src", "alt"], yi = ["src"], bi = ["href"], xi = {
4504
+ ], _i = ["src", "alt"], vi = ["src"], yi = ["href"], bi = {
4501
4505
  key: 0,
4502
4506
  "data-test": "messaging-message-text-part"
4503
- }, Si = [
4507
+ }, xi = [
4504
4508
  "src",
4505
4509
  "alt",
4506
4510
  "data-attachment-placement"
4507
- ], Ci = ["src", "data-attachment-placement"], wi = ["href", "data-attachment-placement"], Ti = ["data-journal-outcome"], Ei = {
4511
+ ], Si = ["src", "data-attachment-placement"], Ci = ["href", "data-attachment-placement"], wi = ["data-journal-outcome"], Ti = {
4508
4512
  key: 2,
4509
4513
  "data-test": "messaging-tool-activity-tail",
4510
4514
  "aria-label": "Assistant is still working",
4511
4515
  class: "mb-4 grid h-[17px] w-5 place-items-center"
4512
- }, Di = ["data-journal-outcome"], Oi = ["data-working-description"], ki = { class: "truncate" }, Ai = ["data-issue-code"], ji = ["href"], Mi = {
4516
+ }, Ei = ["data-journal-outcome"], Di = ["data-working-description"], Oi = { class: "truncate" }, ki = ["data-issue-code"], Ai = ["href"], ji = {
4513
4517
  key: 3,
4514
4518
  "data-test": "messaging-thinking-indicator",
4515
4519
  class: "flex gap-2 justify-start items-center mb-4"
4516
- }, Ni = ["src", "alt"], Pi = { class: "max-w-20 truncate" }, Fi = ["onClick"], Ii = {
4520
+ }, Mi = ["src", "alt"], Ni = { class: "max-w-20 truncate" }, Pi = ["onClick"], Fi = {
4517
4521
  key: 0,
4518
4522
  class: "shrink-0 flex items-center justify-center size-14"
4519
- }, Li = ["data-composer-action"], Ri = ["placeholder", "disabled"], zi = { class: "font-mono text-sm tabular-nums" }, Bi = { class: "mt-2.5 flex items-center" }, Vi = [
4523
+ }, Ii = [
4524
+ "data-composer-action",
4525
+ "data-offline",
4526
+ "title"
4527
+ ], Li = ["placeholder", "disabled"], Ri = { class: "font-mono text-sm tabular-nums" }, zi = { class: "mt-2.5 flex items-center" }, Bi = [
4520
4528
  "disabled",
4521
4529
  "aria-label",
4522
4530
  "title"
4523
- ], Hi = {
4531
+ ], Vi = {
4524
4532
  key: 0,
4525
4533
  class: "i-svg-spinners-ring-resize size-5"
4526
- }, Ui = {
4534
+ }, Hi = {
4527
4535
  key: 1,
4528
4536
  class: "i-tabler-plus size-5"
4529
- }, Wi = { class: "sr-only" }, Gi = { class: "flex items-center gap-2" }, Ki = ["aria-label", "title"], qi = { class: "sr-only" }, Ji = [
4537
+ }, Ui = { class: "sr-only" }, Wi = { class: "flex items-center gap-2" }, Gi = ["aria-label", "title"], Ki = { class: "sr-only" }, qi = [
4530
4538
  "data-composer-action",
4531
4539
  "disabled",
4532
4540
  "aria-label",
4533
4541
  "title"
4534
- ], Yi = {
4542
+ ], Ji = {
4535
4543
  key: 0,
4536
4544
  class: "i-tabler-player-stop-filled size-3.5"
4537
- }, Xi = {
4545
+ }, Yi = {
4538
4546
  key: 1,
4539
4547
  class: "i-tabler-arrow-up size-[17px]"
4540
- }, Zi = { class: "sr-only" }, Qi = {
4548
+ }, Xi = { class: "sr-only" }, Zi = {
4541
4549
  key: 2,
4542
4550
  "data-test": "messaging-suggested-prompts",
4543
4551
  class: "mt-5 w-full sm:mx-auto sm:max-w-[720px]"
4544
- }, $i = { class: "flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:items-center sm:justify-center" }, ea = ["disabled", "onClick"], ta = ["aria-expanded"], na = 2500, ra = /* @__PURE__ */ x({
4552
+ }, Qi = { class: "flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:items-center sm:justify-center" }, $i = ["disabled", "onClick"], ea = ["aria-expanded"], ta = 2500, na = /* @__PURE__ */ x({
4545
4553
  __name: "ElAgentChat",
4546
4554
  props: {
4547
4555
  chatController: {},
@@ -4601,29 +4609,25 @@ var Cr = [
4601
4609
  }
4602
4610
  P = setTimeout(() => {
4603
4611
  ae.value = !0;
4604
- }, na);
4612
+ }, ta);
4605
4613
  }, { immediate: !0 }), re(() => clearTimeout(P));
4606
- let oe = f(() => T.value && ae.value), de = f(() => te.value || T.value && !ae.value), pe = A(!1);
4607
- async function retryConnection() {
4608
- await e.chatController?.startTextConversation();
4609
- }
4610
- let _e = f(() => e.chatController?.liveTurnBlocks?.value ?? []), ve = f(() => {
4611
- for (let e = _e.value.length - 1; e >= 0; e--) {
4612
- let t = _e.value[e];
4614
+ let oe = f(() => T.value && ae.value), de = f(() => te.value || T.value && !ae.value), pe = A(!1), _e = f(() => oe.value ? `Can't reach ${e.agent.displayName.value || "your assistant"} right now. Your messages are safe. This usually clears on its own.` : void 0), B = f(() => e.chatController?.liveTurnBlocks?.value ?? []), ve = f(() => {
4615
+ for (let e = B.value.length - 1; e >= 0; e--) {
4616
+ let t = B.value[e];
4613
4617
  if (t?.kind === "text") return t.id;
4614
4618
  }
4615
- }), ye = f(() => e.chatController?.liveStreamMessageId?.value), B = f(() => {
4619
+ }), ye = f(() => e.chatController?.liveStreamMessageId?.value), H = f(() => {
4616
4620
  let t = e.chatController?.sharedMessages.value ?? [];
4617
- return _e.value.length && ye.value ? t.filter((e) => e.id !== ye.value) : t;
4618
- }), H = f(() => {
4621
+ return B.value.length && ye.value ? t.filter((e) => e.id !== ye.value) : t;
4622
+ }), be = f(() => {
4619
4623
  if (!e.chatController?.workJournal?.value) return s.value?.workingDescription?.trim() || void 0;
4620
- }), be = f(() => e.chatController?.workJournal?.value), U = f(() => {
4621
- if (!be.value && !_e.value.length) return;
4622
- let e = B.value, t = e[e.length - 1];
4624
+ }), U = f(() => e.chatController?.workJournal?.value), Se = f(() => {
4625
+ if (!U.value && !B.value.length) return;
4626
+ let e = H.value, t = e[e.length - 1];
4623
4627
  if (t) return t.sender === "agent" || t.sender === "system" ? e.length >= 2 ? e[e.length - 2].id : void 0 : t.id;
4624
- }), Se = f(() => {
4628
+ }), W = f(() => {
4625
4629
  let t = {};
4626
- for (let n of B.value) {
4630
+ for (let n of H.value) {
4627
4631
  if (n.sender === "user" || !n.toolActivities?.length) continue;
4628
4632
  let r = e.chatController?.workJournalFor?.({
4629
4633
  activities: n.toolActivities,
@@ -4635,7 +4639,7 @@ var Cr = [
4635
4639
  return t;
4636
4640
  });
4637
4641
  function messageWorkJournal(e) {
4638
- return Se.value[e.id];
4642
+ return W.value[e.id];
4639
4643
  }
4640
4644
  function inlineOffset(e, t) {
4641
4645
  return e.placement?.kind !== "inline" || !Number.isFinite(e.placement.offset) ? null : Math.max(0, Math.min(t.length, Math.trunc(e.placement.offset)));
@@ -4683,18 +4687,18 @@ var Cr = [
4683
4687
  text: t.slice(i)
4684
4688
  }), r;
4685
4689
  }
4686
- let W = f(() => s.value?.transientIssue), Ce = f(() => {
4690
+ let G = f(() => s.value?.transientIssue), Ce = f(() => {
4687
4691
  if (!x.value) return;
4688
- let e = B.value, t = e[e.length - 1];
4692
+ let e = H.value, t = e[e.length - 1];
4689
4693
  return t?.sender === "agent" || t?.sender === "system" ? t.id : void 0;
4690
- }), we = f(() => !x.value || H.value || be.value || _e.value.length ? !1 : Ce.value === void 0), Te = f(() => s.value?.sendBlockedReason), Ee = f(() => !c.value || Te.value !== void 0), De = f(() => T.value ? "Agent is offline" : te.value ? "Connecting..." : Te.value === "agent_deleted" ? "This assistant was deleted" : Te.value === "account" ? "Open billing to keep chatting" : `Message ${e.agent.displayName.value || e.agent.name.value || "assistant"}`), Oe = f(() => e.chatController?.composerState?.value ?? {
4694
+ }), we = f(() => !x.value || be.value || U.value || B.value.length ? !1 : Ce.value === void 0), Te = f(() => s.value?.sendBlockedReason), Ee = f(() => Te.value !== void 0), De = f(() => T.value ? `${e.agent.displayName.value || e.agent.name.value || "Assistant"} is offline` : te.value ? "Connecting..." : Te.value === "agent_deleted" ? "This assistant was deleted" : Te.value === "account" ? "Open billing to keep chatting" : `Message ${e.agent.displayName.value || e.agent.name.value || "assistant"}`), Oe = f(() => e.chatController?.composerState?.value ?? {
4691
4695
  text: "",
4692
4696
  pendingAttachments: [],
4693
4697
  isUploading: !1
4694
4698
  }), ke = f({
4695
4699
  get: () => Oe.value.text,
4696
4700
  set: (t) => e.chatController?.setComposerText?.({ text: t })
4697
- }), Ae = f(() => Oe.value.pendingAttachments), je = f(() => Oe.value.isUploading), Me = f(() => e.chatController?.voiceRecorder), Ne = f(() => Me.value?.isBusy.value ?? !1), Fe = f(() => e.chatController?.canAttachFile?.value ?? !1), Ie = f(() => e.chatController?.canRecordAudio?.value ?? !1), Le = f(() => e.chatController?.composerAction?.value ?? "idle"), Re = f(() => Le.value !== "idle"), Be = f(() => Le.value === "stop" ? "Stop reply" : "Send message"), Ve = f(() => Ie.value && !Ne.value && !!Me.value?.canUseBrowserRecording), He = f(() => Me.value?.isActive.value ?? !1), Ue = f(() => Me.value?.elapsedLabel.value ?? "0:00"), We = f(() => Me.value?.statusText.value ?? "Release to send"), Ge = f(() => Me.value?.state.value.phase === "sending" ? "Sending voice message" : He.value ? "Release to send voice message" : "Hold to record voice message"), G = f(() => e.variant === "light"), Ke = f(() => G.value ? "bg-gradient-to-r from-transparent via-black/5 to-transparent" : "bg-gradient-to-r from-transparent via-white/5 to-transparent"), Je = f(() => G.value ? "text-theme-300" : "text-white/30");
4701
+ }), Ae = f(() => Oe.value.pendingAttachments), je = f(() => Oe.value.isUploading), Me = f(() => e.chatController?.voiceRecorder), Pe = f(() => Me.value?.isBusy.value ?? !1), Fe = f(() => e.chatController?.canAttachFile?.value ?? !1), Ie = f(() => e.chatController?.canRecordAudio?.value ?? !1), Le = f(() => e.chatController?.composerAction?.value ?? "idle"), ze = f(() => Le.value !== "idle"), Be = f(() => Le.value === "stop" ? "Stop reply" : "Send message"), Ve = f(() => Ie.value && !Pe.value && !!Me.value?.canUseBrowserRecording), He = f(() => Me.value?.isActive.value ?? !1), Ue = f(() => Me.value?.elapsedLabel.value ?? "0:00"), We = f(() => Me.value?.statusText.value ?? "Release to send"), Ge = f(() => Me.value?.state.value.phase === "sending" ? "Sending voice message" : He.value ? "Release to send voice message" : "Hold to record voice message"), K = f(() => e.variant === "light"), qe = f(() => K.value ? "bg-gradient-to-r from-transparent via-black/5 to-transparent" : "bg-gradient-to-r from-transparent via-white/5 to-transparent"), Je = f(() => K.value ? "text-theme-300" : "text-white/30");
4698
4702
  ne(async () => {
4699
4703
  e.chatController && !c.value && await e.chatController.startTextConversation();
4700
4704
  }), re(() => {
@@ -4724,7 +4728,7 @@ var Cr = [
4724
4728
  }
4725
4729
  async function handleFileSelect(t) {
4726
4730
  let n = t.target, r = n.files?.[0];
4727
- !r || !e.chatController || Ne.value || (await e.chatController.attachFile({ file: r }), n.value = "");
4731
+ !r || !e.chatController || Pe.value || (await e.chatController.attachFile({ file: r }), n.value = "");
4728
4732
  }
4729
4733
  function removeAttachment(t) {
4730
4734
  e.chatController?.removeAttachment({ index: t });
@@ -4762,67 +4766,58 @@ var Cr = [
4762
4766
  ...o ? {} : { year: "numeric" }
4763
4767
  })}, ${a}`;
4764
4768
  }
4765
- return (t, s) => (k(), h("div", { class: C(["@container/chat relative flex h-full flex-col", B.value.length === 0 ? "min-h-0 [justify-content:safe_center] overflow-y-auto" : ""]) }, [
4766
- e.showHeader && !G.value ? (k(), h("div", ni, [b(Pe, {
4769
+ return (t, s) => (k(), h("div", { class: C(["@container/chat relative flex h-full flex-col", H.value.length === 0 ? "min-h-0 [justify-content:safe_center] overflow-y-auto" : ""]) }, [
4770
+ e.showHeader && !K.value ? (k(), h("div", ni, [b(Ne, {
4767
4771
  agent: e.agent,
4768
4772
  "is-online": c.value
4769
4773
  }, null, 8, ["agent", "is-online"])])) : e.showHeader ? (k(), h("div", ri, [_("div", { class: C(["flex items-center gap-3", e.centered ? "max-w-[720px] mx-auto" : ""]) }, [
4770
- b(ze, {
4774
+ b(Re, {
4771
4775
  agent: e.agent,
4772
- "is-light": G.value,
4776
+ "is-light": K.value,
4773
4777
  class: "size-10"
4774
4778
  }, null, 8, ["agent", "is-light"]),
4775
4779
  _("div", ii, [_("div", ai, F(e.agent.displayName.value), 1), _("div", oi, F(e.agent.title.value || "Assistant"), 1)]),
4776
4780
  e.headerMeta ? (k(), h("span", si, F(e.headerMeta), 1)) : m("", !0)
4777
4781
  ], 2)])) : m("", !0),
4778
- oe.value ? (k(), h("div", ci, [
4779
- _("p", { class: C(["text-[15px] font-semibold", G.value ? "text-theme-900" : "text-white"]) }, " Can't reach " + F(e.agent?.displayName.value || "your assistant") + " right now ", 3),
4780
- _("p", { class: C(["mt-1.5 max-w-[340px] text-pretty text-[13.5px] leading-relaxed", G.value ? "text-theme-500" : "text-white/60"]) }, " Your messages are safe. This usually clears on its own. ", 2),
4781
- _("button", {
4782
- type: "button",
4783
- "data-test": "chat-offline-retry",
4784
- class: C(["mt-5 cursor-pointer rounded-full px-4 py-2 text-[13.5px] font-semibold transition-colors", G.value ? "text-theme-900 ring-1 ring-theme-200 hover:bg-theme-50" : "text-white ring-1 ring-white/20 hover:bg-white/10"]),
4785
- onClick: s[0] || (s[0] = (e) => retryConnection())
4786
- }, " Try again ", 2)
4787
- ])) : de.value ? (k(), h("div", {
4788
- key: 3,
4789
- class: C(["py-16 flex flex-col items-center justify-center gap-2 text-sm", G.value ? "text-theme-400" : "text-theme-600"])
4782
+ de.value ? (k(), h("div", {
4783
+ key: 2,
4784
+ class: C(["py-16 flex flex-col items-center justify-center gap-2 text-sm", K.value ? "text-theme-400" : "text-theme-600"])
4790
4785
  }, [b(he, { class: "size-4" })], 2)) : e.setupHint ? (k(), h("div", {
4791
- key: 4,
4786
+ key: 3,
4792
4787
  class: C(["flex items-center justify-center gap-1.5 py-2 text-[11px]", Je.value])
4793
- }, [s[21] || (s[21] = _("i", { class: "i-tabler-tool size-3" }, null, -1)), _("span", null, F(e.setupHint), 1)], 2)) : m("", !0),
4788
+ }, [s[20] || (s[20] = _("i", { class: "i-tabler-tool size-3" }, null, -1)), _("span", null, F(e.setupHint), 1)], 2)) : m("", !0),
4794
4789
  b(ti, {
4795
4790
  ref_key: "chatScroller",
4796
4791
  ref: i,
4797
- class: C(B.value.length === 0 ? "flex-none" : "flex-1")
4792
+ class: C(H.value.length === 0 ? "flex-none" : "flex-1")
4798
4793
  }, {
4799
- default: ce(() => [_("div", { class: C([B.value.length === 0 ? "flex flex-col items-center justify-center px-3 py-4" : "pt-4 pb-[120px] px-3 space-y-2", e.centered ? B.value.length === 0 ? "max-w-[900px] mx-auto w-full" : "max-w-[720px] mx-auto w-full" : ""]) }, [
4800
- B.value.length === 0 && !de.value && !oe.value ? (k(), h("div", li, [ie(t.$slots, "empty-heading", {
4794
+ default: ce(() => [_("div", { class: C([H.value.length === 0 ? "flex flex-col items-center justify-center px-3 py-4" : "pt-4 pb-[120px] px-3 space-y-2", e.centered ? H.value.length === 0 ? "max-w-[900px] mx-auto w-full" : "max-w-[720px] mx-auto w-full" : ""]) }, [
4795
+ H.value.length === 0 && !de.value ? (k(), h("div", ci, [ie(t.$slots, "empty-heading", {
4801
4796
  agent: e.agent,
4802
- isLight: G.value
4803
- }, () => [b(ze, {
4797
+ isLight: K.value
4798
+ }, () => [b(Re, {
4804
4799
  agent: e.agent,
4805
- "is-light": G.value,
4800
+ "is-light": K.value,
4806
4801
  class: "mb-4 size-20 @sm/chat:size-24"
4807
- }, null, 8, ["agent", "is-light"]), _("div", { class: C(["text-base @sm/chat:text-lg font-semibold", G.value ? "text-theme-900" : "text-white"]) }, F(e.agent.displayName.value), 3)]), e.emptyStateMessage === "" ? m("", !0) : (k(), h(u, { key: 0 }, [_("p", { class: C(["mt-1 text-center text-xs @sm/chat:text-sm", Je.value]) }, F(e.emptyStateMessage || "Type your message to get started."), 3), _("div", {
4808
- class: C(["inline-flex items-center gap-1.5 mt-5 px-2.5 py-1 rounded-full text-[11px]", G.value ? "bg-theme-50 border border-theme-100 text-theme-400" : "bg-white/10 border border-white/20 text-white/40"]),
4802
+ }, null, 8, ["agent", "is-light"]), _("div", { class: C(["text-base @sm/chat:text-lg font-semibold", K.value ? "text-theme-900" : "text-white"]) }, F(e.agent.displayName.value), 3)]), e.emptyStateMessage === "" ? m("", !0) : (k(), h(u, { key: 0 }, [_("p", { class: C(["mt-1 text-center text-xs @sm/chat:text-sm", Je.value]) }, F(e.emptyStateMessage || "Type your message to get started."), 3), _("div", {
4803
+ class: C(["inline-flex items-center gap-1.5 mt-5 px-2.5 py-1 rounded-full text-[11px]", K.value ? "bg-theme-50 border border-theme-100 text-theme-400" : "bg-white/10 border border-white/20 text-white/40"]),
4809
4804
  title: n.value.tooltip
4810
- }, [_("i", { class: C([n.value.icon, "size-3"]) }, null, 2), _("span", null, F(n.value.label), 1)], 10, ui)], 64))])) : m("", !0),
4811
- (k(!0), h(u, null, j(B.value, (e, t) => (k(), h(u, { key: e.id }, [
4812
- shouldShowTimeDivider(B.value, t) ? (k(), h("div", di, [
4813
- _("div", { class: C(["flex-1 h-px", Ke.value]) }, null, 2),
4814
- _("span", { class: C(["text-[10px] @sm/chat:text-[11px] font-medium shrink-0 tracking-widest uppercase", Je.value]) }, F(shouldShowTimeDivider(B.value, t)), 3),
4815
- _("div", { class: C(["flex-1 h-px", Ke.value]) }, null, 2)
4805
+ }, [_("i", { class: C([n.value.icon, "size-3"]) }, null, 2), _("span", null, F(n.value.label), 1)], 10, li)], 64))])) : m("", !0),
4806
+ (k(!0), h(u, null, j(H.value, (e, t) => (k(), h(u, { key: e.id }, [
4807
+ shouldShowTimeDivider(H.value, t) ? (k(), h("div", ui, [
4808
+ _("div", { class: C(["flex-1 h-px", qe.value]) }, null, 2),
4809
+ _("span", { class: C(["text-[10px] @sm/chat:text-[11px] font-medium shrink-0 tracking-widest uppercase", Je.value]) }, F(shouldShowTimeDivider(H.value, t)), 3),
4810
+ _("div", { class: C(["flex-1 h-px", qe.value]) }, null, 2)
4816
4811
  ])) : m("", !0),
4817
4812
  messageWorkJournal(e) ? (k(), h("div", {
4818
4813
  key: 1,
4819
4814
  "data-test": "messaging-message-tool-activity",
4820
4815
  "data-journal-outcome": messageWorkJournal(e)?.outcome,
4821
4816
  class: "mb-4 w-full"
4822
- }, [b(qe, {
4817
+ }, [b(Ke, {
4823
4818
  model: messageWorkJournal(e),
4824
- "is-light": G.value
4825
- }, null, 8, ["model", "is-light"])], 8, fi)) : m("", !0),
4819
+ "is-light": K.value
4820
+ }, null, 8, ["model", "is-light"])], 8, di)) : m("", !0),
4826
4821
  isSystemExplainerMessage(e) ? (k(), h("div", {
4827
4822
  key: 2,
4828
4823
  "data-test": "messaging-system-msg",
@@ -4837,12 +4832,12 @@ var Cr = [
4837
4832
  "data-issue-action-url": e.issue?.actionUrl,
4838
4833
  "data-streaming": e.id === Ce.value ? "true" : void 0,
4839
4834
  class: "flex gap-2 items-end justify-start mb-4"
4840
- }, [_("div", mi, [_("div", { class: C(["mb-1 pl-1 text-[11px] font-medium", G.value ? "text-theme-500" : "text-white/45"]) }, " System Message ", 2), _("div", { class: C(["rounded-[20px] rounded-bl-[4px] px-4 py-2.5 border system-msg-content", G.value ? "bg-theme-25 border-theme-100 text-theme-700" : "bg-white/[0.08] border-white/10 text-white/85"]) }, [e.text ? (k(), p($r, {
4835
+ }, [_("div", pi, [_("div", { class: C(["mb-1 pl-1 text-[11px] font-medium", K.value ? "text-theme-500" : "text-white/45"]) }, " System Message ", 2), _("div", { class: C(["rounded-[20px] rounded-bl-[4px] px-4 py-2.5 border system-msg-content", K.value ? "bg-theme-25 border-theme-100 text-theme-700" : "bg-white/[0.08] border-white/10 text-white/85"]) }, [e.text ? (k(), p($r, {
4841
4836
  key: 0,
4842
4837
  text: e.text,
4843
- inverted: !G.value,
4838
+ inverted: !K.value,
4844
4839
  streaming: e.id === Ce.value,
4845
- onClick: s[1] || (s[1] = z(() => {}, ["stop"]))
4840
+ onClick: s[0] || (s[0] = z(() => {}, ["stop"]))
4846
4841
  }, null, 8, [
4847
4842
  "text",
4848
4843
  "inverted",
@@ -4850,14 +4845,14 @@ var Cr = [
4850
4845
  ])) : e.issue?.help ? (k(), p($r, {
4851
4846
  key: 1,
4852
4847
  text: e.issue.help,
4853
- inverted: !G.value
4848
+ inverted: !K.value
4854
4849
  }, null, 8, ["text", "inverted"])) : m("", !0), e.issue?.actionUrl && !containsMarkdownLink(e.text) ? (k(), h("a", {
4855
4850
  key: 2,
4856
4851
  href: e.issue.actionUrl,
4857
4852
  "data-test": "messaging-system-msg-action",
4858
- class: C(["mt-2 text-[12px] font-medium inline-flex items-center gap-1", G.value ? "text-theme-900 hover:text-theme-700" : "text-white hover:text-white/80"]),
4859
- onClick: s[2] || (s[2] = z(() => {}, ["stop"]))
4860
- }, [v(F(e.issue.actionLabel) + " ", 1), s[22] || (s[22] = _("i", { class: "i-tabler-arrow-right size-3" }, null, -1))], 10, hi)) : m("", !0)], 2)])], 8, pi)) : e.sender === "system" ? (k(), h("div", {
4853
+ class: C(["mt-2 text-[12px] font-medium inline-flex items-center gap-1", K.value ? "text-theme-900 hover:text-theme-700" : "text-white hover:text-white/80"]),
4854
+ onClick: s[1] || (s[1] = z(() => {}, ["stop"]))
4855
+ }, [v(F(e.issue.actionLabel) + " ", 1), s[21] || (s[21] = _("i", { class: "i-tabler-arrow-right size-3" }, null, -1))], 10, mi)) : m("", !0)], 2)])], 8, fi)) : e.sender === "system" ? (k(), h("div", {
4861
4856
  key: 3,
4862
4857
  "data-test": "messaging-system-status-msg",
4863
4858
  "data-message-id": e.id,
@@ -4868,12 +4863,12 @@ var Cr = [
4868
4863
  "data-issue-code": e.issue?.code,
4869
4864
  "data-issue-bucket": e.issue?.bucket,
4870
4865
  "data-streaming": e.id === Ce.value ? "true" : void 0,
4871
- class: C(["flex items-start gap-2 px-3 py-2 text-[13px] leading-relaxed", G.value ? "text-theme-500" : "text-white/60"])
4872
- }, [s[23] || (s[23] = _("i", { class: "i-tabler-info-circle size-4 mt-0.5 shrink-0" }, null, -1)), b($r, {
4866
+ class: C(["flex items-start gap-2 px-3 py-2 text-[13px] leading-relaxed", K.value ? "text-theme-500" : "text-white/60"])
4867
+ }, [s[22] || (s[22] = _("i", { class: "i-tabler-info-circle size-4 mt-0.5 shrink-0" }, null, -1)), b($r, {
4873
4868
  text: e.text,
4874
- inverted: !G.value,
4875
- onClick: s[3] || (s[3] = z(() => {}, ["stop"]))
4876
- }, null, 8, ["text", "inverted"])], 10, gi)) : (k(), h("div", {
4869
+ inverted: !K.value,
4870
+ onClick: s[2] || (s[2] = z(() => {}, ["stop"]))
4871
+ }, null, 8, ["text", "inverted"])], 10, hi)) : (k(), h("div", {
4877
4872
  key: 4,
4878
4873
  "data-test": e.sender === "agent" ? "messaging-assistant-msg" : e.sender === "user" ? "messaging-user-msg" : void 0,
4879
4874
  "data-message-id": e.id,
@@ -4885,7 +4880,7 @@ var Cr = [
4885
4880
  class: C(["flex gap-2 items-end", {
4886
4881
  "justify-end": e.sender === "user",
4887
4882
  "justify-start": e.sender === "agent",
4888
- "mb-6": isGroupEnd(B.value, t)
4883
+ "mb-6": isGroupEnd(H.value, t)
4889
4884
  }])
4890
4885
  }, [_("div", {
4891
4886
  "data-test": "messaging-message-body",
@@ -4900,30 +4895,30 @@ var Cr = [
4900
4895
  "data-test": "messaging-attachment",
4901
4896
  "data-attachment-placement": "block",
4902
4897
  class: "rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"
4903
- }, null, 8, vi)) : e.type === "audio" ? (k(), h("audio", {
4898
+ }, null, 8, _i)) : e.type === "audio" ? (k(), h("audio", {
4904
4899
  key: 1,
4905
4900
  src: e.src,
4906
4901
  controls: "",
4907
4902
  "data-test": "messaging-attachment",
4908
4903
  "data-attachment-placement": "block",
4909
4904
  class: "max-w-full"
4910
- }, null, 8, yi)) : (k(), h("a", {
4905
+ }, null, 8, vi)) : (k(), h("a", {
4911
4906
  key: 2,
4912
4907
  href: e.src,
4913
4908
  target: "_blank",
4914
4909
  rel: "noopener",
4915
4910
  "data-test": "messaging-attachment",
4916
4911
  "data-attachment-placement": "block",
4917
- class: C(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", G.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
4918
- }, [s[24] || (s[24] = _("i", { class: "i-tabler-file size-3.5" }, null, -1)), v(" " + F(e.filename), 1)], 10, bi))], 64))), 128))], 2)) : m("", !0), messageRenderParts(e).length ? (k(), h("div", {
4912
+ class: C(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", K.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
4913
+ }, [s[23] || (s[23] = _("i", { class: "i-tabler-file size-3.5" }, null, -1)), v(" " + F(e.filename), 1)], 10, yi))], 64))), 128))], 2)) : m("", !0), messageRenderParts(e).length ? (k(), h("div", {
4919
4914
  key: 1,
4920
4915
  "data-test": "messaging-message-content",
4921
- class: C(e.sender === "user" ? G.value ? "rounded-[20px] rounded-br-[4px] px-4 py-2.5 bg-theme-900 text-theme-0 shadow-[0_1px_2px_rgba(5,15,25,0.14)]" : "rounded-[20px] rounded-br-[4px] px-4 py-2.5 bg-theme-0 text-theme-950" : G.value ? "text-theme-800" : "text-white/95")
4922
- }, [(k(!0), h(u, null, j(messageRenderParts(e), (t) => (k(), h(u, { key: t.key }, [t.kind === "text" && t.text ? (k(), h("div", xi, [b($r, {
4916
+ class: C(e.sender === "user" ? K.value ? "rounded-[20px] rounded-br-[4px] px-4 py-2.5 bg-theme-900 text-theme-0 shadow-[0_1px_2px_rgba(5,15,25,0.14)]" : "rounded-[20px] rounded-br-[4px] px-4 py-2.5 bg-theme-0 text-theme-950" : K.value ? "text-theme-800" : "text-white/95")
4917
+ }, [(k(!0), h(u, null, j(messageRenderParts(e), (t) => (k(), h(u, { key: t.key }, [t.kind === "text" && t.text ? (k(), h("div", bi, [b($r, {
4923
4918
  text: t.text,
4924
- inverted: e.sender === "user" || !G.value,
4919
+ inverted: e.sender === "user" || !K.value,
4925
4920
  streaming: e.id === Ce.value,
4926
- onClick: s[4] || (s[4] = z(() => {}, ["stop"]))
4921
+ onClick: s[3] || (s[3] = z(() => {}, ["stop"]))
4927
4922
  }, null, 8, [
4928
4923
  "text",
4929
4924
  "inverted",
@@ -4935,88 +4930,88 @@ var Cr = [
4935
4930
  "data-test": "messaging-attachment",
4936
4931
  "data-attachment-placement": t.placement,
4937
4932
  class: "my-2 rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"
4938
- }, null, 8, Si)) : t.kind === "attachment" && t.attachment.type === "audio" ? (k(), h("audio", {
4933
+ }, null, 8, xi)) : t.kind === "attachment" && t.attachment.type === "audio" ? (k(), h("audio", {
4939
4934
  key: 2,
4940
4935
  src: t.attachment.src,
4941
4936
  controls: "",
4942
4937
  "data-test": "messaging-attachment",
4943
4938
  "data-attachment-placement": t.placement,
4944
4939
  class: "my-2 max-w-full"
4945
- }, null, 8, Ci)) : t.kind === "attachment" ? (k(), h("a", {
4940
+ }, null, 8, Si)) : t.kind === "attachment" ? (k(), h("a", {
4946
4941
  key: 3,
4947
4942
  href: t.attachment.src,
4948
4943
  target: "_blank",
4949
4944
  rel: "noopener",
4950
4945
  "data-test": "messaging-attachment",
4951
4946
  "data-attachment-placement": t.placement,
4952
- class: C(["my-2 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", G.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
4953
- }, [s[25] || (s[25] = _("i", { class: "i-tabler-file size-3.5" }, null, -1)), v(" " + F(t.attachment.filename), 1)], 10, wi)) : m("", !0)], 64))), 128))], 2)) : m("", !0)], 2)], 10, _i)),
4954
- e.id === U.value ? (k(), h(u, { key: 5 }, [_e.value.length ? (k(!0), h(u, { key: 0 }, j(_e.value, (e) => (k(), h(u, { key: e.id }, [e.kind === "work" ? (k(), h("div", {
4947
+ class: C(["my-2 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", K.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
4948
+ }, [s[24] || (s[24] = _("i", { class: "i-tabler-file size-3.5" }, null, -1)), v(" " + F(t.attachment.filename), 1)], 10, Ci)) : m("", !0)], 64))), 128))], 2)) : m("", !0)], 2)], 10, gi)),
4949
+ e.id === Se.value ? (k(), h(u, { key: 5 }, [B.value.length ? (k(!0), h(u, { key: 0 }, j(B.value, (e) => (k(), h(u, { key: e.id }, [e.kind === "work" ? (k(), h("div", {
4955
4950
  key: 0,
4956
4951
  "data-test": "messaging-tool-activity",
4957
4952
  "data-journal-outcome": e.journal.outcome,
4958
4953
  class: "mb-4 w-full"
4959
- }, [b(qe, {
4954
+ }, [b(Ke, {
4960
4955
  model: e.journal,
4961
- "is-light": G.value
4962
- }, null, 8, ["model", "is-light"])], 8, Ti)) : e.kind === "text" && e.content ? (k(), h("div", {
4956
+ "is-light": K.value
4957
+ }, null, 8, ["model", "is-light"])], 8, wi)) : e.kind === "text" && e.content ? (k(), h("div", {
4963
4958
  key: 1,
4964
4959
  "data-test": "messaging-live-text-block",
4965
- class: C(["mb-4 @sm/chat:pr-[1em] @lg/chat:pr-[2em]", G.value ? "text-theme-800" : "text-white/95"])
4960
+ class: C(["mb-4 @sm/chat:pr-[1em] @lg/chat:pr-[2em]", K.value ? "text-theme-800" : "text-white/95"])
4966
4961
  }, [b($r, {
4967
4962
  text: e.content,
4968
- inverted: !G.value,
4963
+ inverted: !K.value,
4969
4964
  streaming: e.id === ve.value,
4970
- onClick: s[5] || (s[5] = z(() => {}, ["stop"]))
4965
+ onClick: s[4] || (s[4] = z(() => {}, ["stop"]))
4971
4966
  }, null, 8, [
4972
4967
  "text",
4973
4968
  "inverted",
4974
4969
  "streaming"
4975
- ])], 2)) : (k(), h("div", Ei, [b(he, { class: C(["size-3.5", G.value ? "text-theme-500" : "text-white/70"]) }, null, 8, ["class"])]))], 64))), 128)) : be.value ? (k(), h("div", {
4970
+ ])], 2)) : (k(), h("div", Ti, [b(he, { class: C(["size-3.5", K.value ? "text-theme-500" : "text-white/70"]) }, null, 8, ["class"])]))], 64))), 128)) : U.value ? (k(), h("div", {
4976
4971
  key: 1,
4977
4972
  "data-test": "messaging-tool-activity",
4978
- "data-journal-outcome": be.value.outcome,
4973
+ "data-journal-outcome": U.value.outcome,
4979
4974
  class: "mb-4 w-full"
4980
- }, [b(qe, {
4981
- model: be.value,
4982
- "is-light": G.value
4983
- }, null, 8, ["model", "is-light"])], 8, Di)) : m("", !0)], 64)) : m("", !0)
4975
+ }, [b(Ke, {
4976
+ model: U.value,
4977
+ "is-light": K.value
4978
+ }, null, 8, ["model", "is-light"])], 8, Ei)) : m("", !0)], 64)) : m("", !0)
4984
4979
  ], 64))), 128)),
4985
- H.value ? (k(), h("div", {
4980
+ be.value ? (k(), h("div", {
4986
4981
  key: 1,
4987
4982
  "data-test": "messaging-working-state",
4988
- "data-working-description": H.value,
4989
- class: C(["flex items-center gap-1.5 pl-2 pr-3 pb-1 mb-3 text-[12px] leading-none", G.value ? "text-theme-500" : "text-white/45"])
4990
- }, [s[26] || (s[26] = _("i", {
4983
+ "data-working-description": be.value,
4984
+ class: C(["flex items-center gap-1.5 pl-2 pr-3 pb-1 mb-3 text-[12px] leading-none", K.value ? "text-theme-500" : "text-white/45"])
4985
+ }, [s[25] || (s[25] = _("i", {
4991
4986
  class: "i-tabler-loader-2 size-3.5 shrink-0 animate-spin opacity-70",
4992
4987
  "aria-hidden": "true"
4993
- }, null, -1)), _("span", ki, F(H.value), 1)], 10, Oi)) : m("", !0),
4994
- W.value ? (k(), h("div", {
4988
+ }, null, -1)), _("span", Oi, F(be.value), 1)], 10, Di)) : m("", !0),
4989
+ G.value ? (k(), h("div", {
4995
4990
  key: 2,
4996
4991
  "data-test": "messaging-transient-issue",
4997
- "data-issue-code": W.value.code,
4998
- class: C(["flex items-center gap-1.5 pl-2 pr-3 pb-1 mb-3 text-[12px] leading-snug", G.value ? "text-theme-600" : "text-white/60"])
4992
+ "data-issue-code": G.value.code,
4993
+ class: C(["flex items-center gap-1.5 pl-2 pr-3 pb-1 mb-3 text-[12px] leading-snug", K.value ? "text-theme-600" : "text-white/60"])
4999
4994
  }, [
5000
- s[27] || (s[27] = _("i", {
4995
+ s[26] || (s[26] = _("i", {
5001
4996
  class: "i-tabler-alert-circle size-3.5 shrink-0 text-red-500",
5002
4997
  "aria-hidden": "true"
5003
4998
  }, null, -1)),
5004
- _("span", null, [v(F(W.value.message), 1), W.value.help ? (k(), h(u, { key: 0 }, [v(F(W.value.help), 1)], 64)) : m("", !0)]),
5005
- W.value.actionUrl && W.value.actionLabel ? (k(), h("a", {
4999
+ _("span", null, [v(F(G.value.message), 1), G.value.help ? (k(), h(u, { key: 0 }, [v(F(G.value.help), 1)], 64)) : m("", !0)]),
5000
+ G.value.actionUrl && G.value.actionLabel ? (k(), h("a", {
5006
5001
  key: 0,
5007
- href: W.value.actionUrl,
5002
+ href: G.value.actionUrl,
5008
5003
  class: "shrink-0 underline underline-offset-2",
5009
- onClick: s[6] || (s[6] = z(() => {}, ["stop"]))
5010
- }, F(W.value.actionLabel), 9, ji)) : m("", !0)
5011
- ], 10, Ai)) : m("", !0),
5012
- we.value ? (k(), h("div", Mi, [_("i", {
5013
- class: C(["i-svg-spinners-3-dots-bounce size-7", G.value ? "text-theme-400" : "text-white/50"]),
5004
+ onClick: s[5] || (s[5] = z(() => {}, ["stop"]))
5005
+ }, F(G.value.actionLabel), 9, Ai)) : m("", !0)
5006
+ ], 10, ki)) : m("", !0),
5007
+ we.value ? (k(), h("div", ji, [_("i", {
5008
+ class: C(["i-svg-spinners-3-dots-bounce size-7", K.value ? "text-theme-400" : "text-white/50"]),
5014
5009
  "aria-hidden": "true"
5015
5010
  }, null, 2)])) : m("", !0)
5016
5011
  ], 2)]),
5017
5012
  _: 3
5018
5013
  }, 8, ["class"]),
5019
- _("div", { class: C(["left-0 right-0 z-30 px-5 pb-4 pt-3", [B.value.length === 0 ? "relative shrink-0" : "absolute bottom-0", G.value ? "bg-gradient-to-t from-theme-0/90 via-theme-0/55 to-transparent" : "bg-gradient-to-t from-black/90 via-black/60 to-transparent"]]) }, [
5014
+ _("div", { class: C(["left-0 right-0 z-30 px-5 pb-4 pt-3", [H.value.length === 0 ? "relative shrink-0" : "absolute bottom-0", K.value ? "bg-gradient-to-t from-theme-0/90 via-theme-0/55 to-transparent" : "bg-gradient-to-t from-black/90 via-black/60 to-transparent"]]) }, [
5020
5015
  Ae.value.length > 0 ? (k(), h("div", {
5021
5016
  key: 0,
5022
5017
  class: C(["flex items-center gap-2 px-2 pb-2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", e.centered ? "max-w-[720px] mx-auto" : ""])
@@ -5027,14 +5022,14 @@ var Cr = [
5027
5022
  key: 0,
5028
5023
  src: e.src,
5029
5024
  alt: e.filename,
5030
- class: C(["size-14 rounded-xl object-cover border", G.value ? "border-black/10" : "border-white/20"])
5031
- }, null, 10, Ni)) : (k(), h("div", {
5025
+ class: C(["size-14 rounded-xl object-cover border", K.value ? "border-black/10" : "border-white/20"])
5026
+ }, null, 10, Mi)) : (k(), h("div", {
5032
5027
  key: 1,
5033
- class: C(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", G.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
5034
- }, [s[28] || (s[28] = _("i", { class: "i-tabler-file size-4" }, null, -1)), _("span", Pi, F(e.filename), 1)], 2)), _("button", {
5028
+ class: C(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", K.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
5029
+ }, [s[27] || (s[27] = _("i", { class: "i-tabler-file size-4" }, null, -1)), _("span", Ni, F(e.filename), 1)], 2)), _("button", {
5035
5030
  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",
5036
5031
  onClick: (e) => removeAttachment(t)
5037
- }, [...s[29] || (s[29] = [_("i", { class: "i-tabler-x size-3" }, null, -1)])], 8, Fi)]))), 128)), je.value ? (k(), h("div", Ii, [b(he, { class: "size-5" })])) : m("", !0)], 2)) : m("", !0),
5032
+ }, [...s[28] || (s[28] = [_("i", { class: "i-tabler-x size-3" }, null, -1)])], 8, Pi)]))), 128)), je.value ? (k(), h("div", Fi, [b(he, { class: "size-5" })])) : m("", !0)], 2)) : m("", !0),
5038
5033
  Fe.value ? (k(), h("input", {
5039
5034
  key: 1,
5040
5035
  ref_key: "fileInput",
@@ -5047,21 +5042,23 @@ var Cr = [
5047
5042
  _("div", {
5048
5043
  "data-test": "messaging-composer",
5049
5044
  "data-composer-action": Le.value,
5050
- class: C(["w-full cursor-text rounded-2xl px-4 pb-2.5 pt-3 transition-colors duration-200", [e.centered ? "max-w-[720px] mx-auto" : "", G.value ? r.value ? "bg-white shadow-[0_1px_2px_rgba(15,23,42,0.05),0_8px_24px_rgba(15,23,42,0.05)] ring-1 ring-theme-300" : "bg-white shadow-[0_1px_2px_rgba(15,23,42,0.05),0_8px_24px_rgba(15,23,42,0.05)] ring-1 ring-theme-200 hover:ring-theme-300" : r.value ? "bg-white/15 backdrop-blur-xl ring-1 ring-white/25" : "bg-white/10 backdrop-blur-xl ring-1 ring-white/15 hover:ring-white/25"]]),
5045
+ "data-offline": oe.value ? "true" : void 0,
5046
+ title: _e.value,
5047
+ class: C(["w-full cursor-text rounded-2xl px-4 pb-2.5 pt-3 transition-colors duration-200", [e.centered ? "max-w-[720px] mx-auto" : "", K.value ? r.value ? "bg-white shadow-[0_1px_2px_rgba(15,23,42,0.05),0_8px_24px_rgba(15,23,42,0.05)] ring-1 ring-theme-300" : "bg-white shadow-[0_1px_2px_rgba(15,23,42,0.05),0_8px_24px_rgba(15,23,42,0.05)] ring-1 ring-theme-200 hover:ring-theme-300" : r.value ? "bg-white/15 backdrop-blur-xl ring-1 ring-white/25" : "bg-white/10 backdrop-blur-xl ring-1 ring-white/15 hover:ring-white/25"]]),
5051
5048
  onClick: focusComposer
5052
5049
  }, [He.value ? (k(), h("div", {
5053
5050
  key: 1,
5054
5051
  "data-test": "messaging-recording-state",
5055
- class: C(["flex min-w-0 items-center gap-2 py-1", G.value ? "text-theme-700" : "text-white/80"])
5052
+ class: C(["flex min-w-0 items-center gap-2 py-1", K.value ? "text-theme-700" : "text-white/80"])
5056
5053
  }, [
5057
- s[30] || (s[30] = _("span", { class: "size-2.5 shrink-0 rounded-full bg-red-500" }, null, -1)),
5058
- _("span", zi, F(Ue.value), 1),
5059
- _("span", { class: C(["min-w-0 truncate text-sm", G.value ? "text-theme-400" : "text-white/45"]) }, F(We.value), 3)
5054
+ s[29] || (s[29] = _("span", { class: "size-2.5 shrink-0 rounded-full bg-red-500" }, null, -1)),
5055
+ _("span", Ri, F(Ue.value), 1),
5056
+ _("span", { class: C(["min-w-0 truncate text-sm", K.value ? "text-theme-400" : "text-white/45"]) }, F(We.value), 3)
5060
5057
  ], 2)) : R((k(), h("textarea", {
5061
5058
  key: 0,
5062
5059
  ref_key: "textarea",
5063
5060
  ref: a,
5064
- "onUpdate:modelValue": s[7] || (s[7] = (e) => ke.value = e),
5061
+ "onUpdate:modelValue": s[6] || (s[6] = (e) => ke.value = e),
5065
5062
  "data-test": "messaging-input",
5066
5063
  rows: "1",
5067
5064
  enterkeyhint: "send",
@@ -5071,77 +5068,77 @@ var Cr = [
5071
5068
  fontSize: "16px",
5072
5069
  resize: "none"
5073
5070
  },
5074
- class: C(["block w-full bg-transparent leading-snug focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", G.value ? "text-theme-900 placeholder-theme-400" : "text-white placeholder-white/50"]),
5071
+ class: C(["block w-full bg-transparent leading-snug focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", K.value ? "text-theme-900 placeholder-theme-400" : "text-white placeholder-white/50"]),
5075
5072
  onKeydown: handleKeydown,
5076
- onFocus: s[8] || (s[8] = (e) => r.value = !0),
5077
- onBlur: s[9] || (s[9] = (e) => r.value = !1)
5078
- }, null, 42, Ri)), [[I, ke.value]]), _("div", Bi, [
5073
+ onFocus: s[7] || (s[7] = (e) => r.value = !0),
5074
+ onBlur: s[8] || (s[8] = (e) => r.value = !1)
5075
+ }, null, 42, Li)), [[I, ke.value]]), _("div", zi, [
5079
5076
  _("button", {
5080
5077
  class: C(["-ml-2 flex size-8 items-center justify-center transition-opacity hover:opacity-70", [
5081
5078
  Fe.value ? "cursor-pointer" : "cursor-default",
5082
- G.value ? "text-theme-500" : "text-white/50",
5083
- je.value || Ne.value ? "opacity-50 pointer-events-none" : ""
5079
+ K.value ? "text-theme-500" : "text-white/50",
5080
+ je.value || Pe.value ? "opacity-50 pointer-events-none" : ""
5084
5081
  ]]),
5085
- disabled: Ee.value || je.value || Ne.value || !Fe.value,
5082
+ disabled: Ee.value || je.value || Pe.value || !Fe.value,
5086
5083
  "aria-label": Fe.value ? "Attach file" : "File attachments unavailable",
5087
5084
  title: Fe.value ? "Attach file" : "File attachments unavailable",
5088
- onClick: s[10] || (s[10] = (e) => Fe.value && triggerFileInput())
5089
- }, [je.value ? (k(), h("i", Hi)) : (k(), h("i", Ui)), _("span", Wi, F(Fe.value ? "Attach file" : "File attachments unavailable"), 1)], 10, Vi),
5090
- s[31] || (s[31] = _("div", { class: "flex-1" }, null, -1)),
5091
- _("div", Gi, [Ve.value || He.value ? (k(), h("button", {
5085
+ onClick: s[9] || (s[9] = (e) => Fe.value && triggerFileInput())
5086
+ }, [je.value ? (k(), h("i", Vi)) : (k(), h("i", Hi)), _("span", Ui, F(Fe.value ? "Attach file" : "File attachments unavailable"), 1)], 10, Bi),
5087
+ s[30] || (s[30] = _("div", { class: "flex-1" }, null, -1)),
5088
+ _("div", Wi, [Ve.value || He.value ? (k(), h("button", {
5092
5089
  key: 0,
5093
5090
  "data-test": "messaging-record-audio-btn",
5094
- class: C(["flex size-8 cursor-pointer items-center justify-center transition-[opacity,transform] duration-200 hover:opacity-70", He.value ? G.value ? "text-theme-900 scale-110" : "text-white scale-110" : G.value ? "text-theme-500" : "text-white/60"]),
5091
+ class: C(["flex size-8 cursor-pointer items-center justify-center transition-[opacity,transform] duration-200 hover:opacity-70", He.value ? K.value ? "text-theme-900 scale-110" : "text-white scale-110" : K.value ? "text-theme-500" : "text-white/60"]),
5095
5092
  "aria-label": Ge.value,
5096
5093
  title: Ge.value,
5097
- onPointerdown: s[11] || (s[11] = z((e) => startRecording(), ["prevent"])),
5098
- onPointerup: s[12] || (s[12] = z((e) => finishRecording({ cancelled: !1 }), ["prevent"])),
5099
- onPointercancel: s[13] || (s[13] = z((e) => finishRecording({ cancelled: !0 }), ["prevent"])),
5094
+ onPointerdown: s[10] || (s[10] = z((e) => startRecording(), ["prevent"])),
5095
+ onPointerup: s[11] || (s[11] = z((e) => finishRecording({ cancelled: !1 }), ["prevent"])),
5096
+ onPointercancel: s[12] || (s[12] = z((e) => finishRecording({ cancelled: !0 }), ["prevent"])),
5100
5097
  onKeydown: [
5101
- s[14] || (s[14] = ue(z((e) => startRecording(), ["prevent"]), ["enter"])),
5102
- s[16] || (s[16] = ue(z((e) => startRecording(), ["prevent"]), ["space"])),
5103
- s[18] || (s[18] = ue(z((e) => finishRecording({ cancelled: !0 }), ["prevent"]), ["escape"]))
5098
+ s[13] || (s[13] = ue(z((e) => startRecording(), ["prevent"]), ["enter"])),
5099
+ s[15] || (s[15] = ue(z((e) => startRecording(), ["prevent"]), ["space"])),
5100
+ s[17] || (s[17] = ue(z((e) => finishRecording({ cancelled: !0 }), ["prevent"]), ["escape"]))
5104
5101
  ],
5105
- onKeyup: [s[15] || (s[15] = ue(z((e) => finishRecording({ cancelled: !1 }), ["prevent"]), ["enter"])), s[17] || (s[17] = ue(z((e) => finishRecording({ cancelled: !1 }), ["prevent"]), ["space"]))]
5106
- }, [_("i", { class: C([He.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), _("span", qi, F(Ge.value), 1)], 42, Ki)) : m("", !0), He.value ? m("", !0) : (k(), h("button", {
5102
+ onKeyup: [s[14] || (s[14] = ue(z((e) => finishRecording({ cancelled: !1 }), ["prevent"]), ["enter"])), s[16] || (s[16] = ue(z((e) => finishRecording({ cancelled: !1 }), ["prevent"]), ["space"]))]
5103
+ }, [_("i", { class: C([He.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), _("span", Ki, F(Ge.value), 1)], 42, Gi)) : m("", !0), He.value ? m("", !0) : (k(), h("button", {
5107
5104
  key: 1,
5108
5105
  "data-test": "messaging-send-btn",
5109
5106
  "data-composer-action": Le.value,
5110
- class: C(["flex size-8 items-center justify-center rounded-full transition-colors duration-150", Re.value ? G.value ? "bg-theme-900 text-theme-0 hover:bg-theme-800 cursor-pointer" : "bg-theme-0 text-theme-950 hover:bg-theme-100 cursor-pointer" : G.value ? "bg-theme-100 text-theme-400" : "bg-white/10 text-white/30"]),
5111
- disabled: !Re.value,
5107
+ class: C(["flex size-8 items-center justify-center rounded-full transition-colors duration-150", ze.value ? K.value ? "bg-theme-900 text-theme-0 hover:bg-theme-800 cursor-pointer" : "bg-theme-0 text-theme-950 hover:bg-theme-100 cursor-pointer" : K.value ? "bg-theme-100 text-theme-400" : "bg-white/10 text-white/30"]),
5108
+ disabled: !ze.value,
5112
5109
  "aria-label": Be.value,
5113
5110
  title: Be.value,
5114
- onClick: s[19] || (s[19] = (e) => handleComposerAction())
5115
- }, [Le.value === "stop" ? (k(), h("i", Yi)) : (k(), h("i", Xi)), _("span", Zi, F(Be.value), 1)], 10, Ji))])
5116
- ])], 10, Li),
5117
- B.value.length === 0 && e.suggestedPrompts.length > 0 ? (k(), h("div", Qi, [_("div", $i, [(k(!0), h(u, null, j(e.suggestedPrompts, (e, t) => (k(), h("button", {
5111
+ onClick: s[18] || (s[18] = (e) => handleComposerAction())
5112
+ }, [Le.value === "stop" ? (k(), h("i", Ji)) : (k(), h("i", Yi)), _("span", Xi, F(Be.value), 1)], 10, qi))])
5113
+ ])], 10, Ii),
5114
+ H.value.length === 0 && e.suggestedPrompts.length > 0 ? (k(), h("div", Zi, [_("div", Qi, [(k(!0), h(u, null, j(e.suggestedPrompts, (e, t) => (k(), h("button", {
5118
5115
  key: e.id,
5119
5116
  type: "button",
5120
5117
  disabled: Ee.value,
5121
5118
  "data-test": "messaging-suggested-prompt",
5122
5119
  class: C(["w-full rounded-2xl bg-theme-50 px-4 py-3 text-left text-[14.5px] font-medium transition-colors sm:w-auto sm:rounded-full sm:py-2 sm:text-center sm:text-[14px]", [Ee.value ? "cursor-not-allowed text-theme-300" : "cursor-pointer text-theme-600 hover:bg-theme-100 hover:text-theme-900", !pe.value && t >= 3 ? "max-sm:hidden" : ""]]),
5123
5120
  onClick: (t) => sendSuggestedPrompt(e)
5124
- }, F(e.label), 11, ea))), 128)), e.suggestedPrompts.length > 3 ? (k(), h("button", {
5121
+ }, F(e.label), 11, $i))), 128)), e.suggestedPrompts.length > 3 ? (k(), h("button", {
5125
5122
  key: 0,
5126
5123
  type: "button",
5127
5124
  "data-test": "messaging-suggested-prompts-more",
5128
5125
  "aria-expanded": pe.value,
5129
5126
  class: "flex w-full cursor-pointer items-center justify-center gap-1.5 rounded-2xl px-4 py-3 text-[14px] font-medium text-theme-600 ring-1 ring-theme-200 transition-colors hover:bg-theme-50 hover:text-theme-900 sm:hidden",
5130
- onClick: s[20] || (s[20] = (e) => pe.value = !pe.value)
5131
- }, [v(F(pe.value ? "See less" : "See more") + " ", 1), _("i", { class: C(["i-tabler-chevron-down size-4 transition-transform", pe.value ? "rotate-180" : ""]) }, null, 2)], 8, ta)) : m("", !0)])])) : m("", !0)
5127
+ onClick: s[19] || (s[19] = (e) => pe.value = !pe.value)
5128
+ }, [v(F(pe.value ? "See less" : "See more") + " ", 1), _("i", { class: C(["i-tabler-chevron-down size-4 transition-transform", pe.value ? "rotate-180" : ""]) }, null, 2)], 8, ea)) : m("", !0)])])) : m("", !0)
5132
5129
  ], 2)
5133
5130
  ], 2));
5134
5131
  }
5135
- }), ia = { class: "agent-wrap" }, aa = {
5132
+ }), ra = { class: "agent-wrap" }, ia = {
5136
5133
  key: 0,
5137
5134
  class: "flex items-center justify-center h-full"
5138
- }, oa = {
5135
+ }, aa = {
5139
5136
  key: 2,
5140
5137
  class: "flex h-full flex-col items-center justify-center gap-4 px-6 text-center",
5141
5138
  role: "status",
5142
5139
  "aria-live": "polite",
5143
5140
  "data-test": "agent-unavailable"
5144
- }, sa = /* @__PURE__ */ x({
5141
+ }, oa = /* @__PURE__ */ x({
5145
5142
  __name: "AgentWrap",
5146
5143
  props: {
5147
5144
  sdk: {},
@@ -5237,7 +5234,7 @@ var Cr = [
5237
5234
  });
5238
5235
  }
5239
5236
  }
5240
- return ne(loadAgent), (t, n) => (k(), h("div", ia, [s.value ? (k(), h("div", aa, [_("div", { class: C(["size-6 animate-spin rounded-full border-b-2", i.bare ? "border-theme-400" : "border-white"]) }, null, 2)])) : c.value ? ie(t.$slots, "default", {
5237
+ return ne(loadAgent), (t, n) => (k(), h("div", ra, [s.value ? (k(), h("div", ia, [_("div", { class: C(["size-6 animate-spin rounded-full border-b-2", i.bare ? "border-theme-400" : "border-white"]) }, null, 2)])) : c.value ? ie(t.$slots, "default", {
5241
5238
  sdk: oe(o),
5242
5239
  agent: c.value,
5243
5240
  context: e.clientContext ?? e.context,
@@ -5245,7 +5242,7 @@ var Cr = [
5245
5242
  buttonText: e.buttonText,
5246
5243
  buttonIcon: e.buttonIcon,
5247
5244
  loading: s.value
5248
- }, void 0, void 0, 1) : u.value ? (k(), h("div", oa, [n[0] || (n[0] = _("p", { class: "text-sm font-medium text-theme-600" }, " This assistant is unavailable right now. ", -1)), _("button", {
5245
+ }, void 0, void 0, 1) : u.value ? (k(), h("div", aa, [n[0] || (n[0] = _("p", { class: "text-sm font-medium text-theme-600" }, " This assistant is unavailable right now. ", -1)), _("button", {
5249
5246
  type: "button",
5250
5247
  class: "min-h-11 rounded-full bg-theme-900 px-5 text-sm font-semibold text-theme-0 transition-colors hover:bg-theme-700",
5251
5248
  "data-test": "agent-unavailable-retry",
@@ -5254,6 +5251,6 @@ var Cr = [
5254
5251
  }
5255
5252
  });
5256
5253
  //#endregion
5257
- export { Oe as a, getAgentAvatarUrl as c, AgentChatController as d, _e as f, Pe as i, handleImageError as l, he as m, ra as n, Ee as o, n as p, $r as r, we as s, sa as t, parseButtonTemplate as u };
5254
+ export { De as a, getAgentAvatarUrl as c, AgentChatController as d, _e as f, Ne as i, handleImageError as l, he as m, na as n, Te as o, n as p, $r as r, Ce as s, oa as t, parseButtonTemplate as u };
5258
5255
 
5259
5256
  //# sourceMappingURL=AgentWrap.js.map