@pagelines/sdk 1.0.896 → 1.0.897

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/BotWrap.js CHANGED
@@ -1174,10 +1174,10 @@ var je = {
1174
1174
  }, $e = ["data-journal-row"], et = {
1175
1175
  class: "flex w-5 shrink-0 flex-col items-center self-stretch",
1176
1176
  "aria-hidden": "true"
1177
- }, tt = { class: "flex h-[17px] shrink-0 items-center" }, nt = {
1177
+ }, tt = { class: "flex h-[17px] shrink-0 items-center" }, K = {
1178
1178
  key: 0,
1179
1179
  class: "sr-only"
1180
- }, rt = /* @__PURE__ */ E({
1180
+ }, nt = /* @__PURE__ */ E({
1181
1181
  __name: "BotToolActivityGroup",
1182
1182
  props: {
1183
1183
  model: {},
@@ -1305,7 +1305,7 @@ var je = {
1305
1305
  }, null, 8, ["data-journal-station", "class"]))]), t === o.value.length - 1 ? x("", !0) : (j(), S("span", {
1306
1306
  key: 0,
1307
1307
  class: O(["w-px flex-1", s.value.spine])
1308
- }, null, 2))]), C("div", { class: O(["min-w-0 flex-1", t === o.value.length - 1 ? "" : "pb-2"]) }, [C("span", { class: O(["relative block leading-snug", c.value[e.tone].label]) }, [w(z(e.label), 1), c.value[e.tone].statusWord ? (j(), S("span", nt, ", " + z(c.value[e.tone].statusWord), 1)) : x("", !0)], 2), e.note ? (j(), S("p", {
1308
+ }, null, 2))]), C("div", { class: O(["min-w-0 flex-1", t === o.value.length - 1 ? "" : "pb-2"]) }, [C("span", { class: O(["relative block leading-snug", c.value[e.tone].label]) }, [w(z(e.label), 1), c.value[e.tone].statusWord ? (j(), S("span", K, ", " + z(c.value[e.tone].statusWord), 1)) : x("", !0)], 2), e.note ? (j(), S("p", {
1309
1309
  key: 0,
1310
1310
  class: O(["pt-0.5 text-[11.5px] leading-snug", s.value.muted])
1311
1311
  }, z(e.note), 3)) : x("", !0)], 2)], 10, $e))), 128)),
@@ -1358,86 +1358,86 @@ function _unsupportedIterableToArray(e, t) {
1358
1358
  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;
1359
1359
  }
1360
1360
  }
1361
- var it = Object.entries, at = Object.setPrototypeOf, ot = Object.isFrozen, st = Object.getPrototypeOf, ct = Object.getOwnPropertyDescriptor, K = Object.freeze, q = Object.seal, J = Object.create, lt = typeof Reflect < "u" && Reflect, ut = lt.apply, dt = lt.construct;
1362
- K || (K = function freeze(e) {
1361
+ var rt = Object.entries, it = Object.setPrototypeOf, at = Object.isFrozen, ot = Object.getPrototypeOf, st = Object.getOwnPropertyDescriptor, q = Object.freeze, J = Object.seal, ct = Object.create, Y = typeof Reflect < "u" && Reflect, lt = Y.apply, ut = Y.construct;
1362
+ q || (q = function freeze(e) {
1363
1363
  return e;
1364
- }), q || (q = function seal(e) {
1364
+ }), J || (J = function seal(e) {
1365
1365
  return e;
1366
- }), ut || (ut = function apply(e, t) {
1366
+ }), lt || (lt = function apply(e, t) {
1367
1367
  var n = [...arguments].slice(2);
1368
1368
  return e.apply(t, n);
1369
- }), dt || (dt = function construct(e) {
1369
+ }), ut || (ut = function construct(e) {
1370
1370
  return new e(...[...arguments].slice(1));
1371
1371
  });
1372
- var ft = unapply(Array.prototype.forEach), pt = unapply(Array.prototype.lastIndexOf), mt = unapply(Array.prototype.pop), ht = unapply(Array.prototype.push), gt = unapply(Array.prototype.splice), _t = Array.isArray, vt = unapply(String.prototype.toLowerCase), yt = unapply(String.prototype.toString), St = unapply(String.prototype.match), Ct = unapply(String.prototype.replace), wt = unapply(String.prototype.indexOf), Tt = unapply(String.prototype.trim), Et = unapply(Number.prototype.toString), Dt = unapply(Boolean.prototype.toString), Ot = typeof BigInt > "u" ? null : unapply(BigInt.prototype.toString), Y = typeof Symbol > "u" ? null : unapply(Symbol.prototype.toString), X = unapply(Object.prototype.hasOwnProperty), kt = unapply(Object.prototype.toString), Z = unapply(RegExp.prototype.test), At = unconstruct(TypeError);
1372
+ var dt = unapply(Array.prototype.forEach), ft = unapply(Array.prototype.lastIndexOf), pt = unapply(Array.prototype.pop), mt = unapply(Array.prototype.push), ht = unapply(Array.prototype.splice), gt = Array.isArray, _t = unapply(String.prototype.toLowerCase), vt = unapply(String.prototype.toString), yt = unapply(String.prototype.match), St = unapply(String.prototype.replace), Ct = unapply(String.prototype.indexOf), wt = unapply(String.prototype.trim), Tt = unapply(Number.prototype.toString), Et = unapply(Boolean.prototype.toString), Dt = typeof BigInt > "u" ? null : unapply(BigInt.prototype.toString), X = typeof Symbol > "u" ? null : unapply(Symbol.prototype.toString), Z = unapply(Object.prototype.hasOwnProperty), Ot = unapply(Object.prototype.toString), kt = unapply(RegExp.prototype.test), At = unconstruct(TypeError);
1373
1373
  function unapply(e) {
1374
1374
  return function(t) {
1375
1375
  t instanceof RegExp && (t.lastIndex = 0);
1376
1376
  var n = [...arguments].slice(1);
1377
- return ut(e, t, n);
1377
+ return lt(e, t, n);
1378
1378
  };
1379
1379
  }
1380
1380
  function unconstruct(e) {
1381
1381
  return function() {
1382
- return dt(e, [...arguments]);
1382
+ return ut(e, [...arguments]);
1383
1383
  };
1384
1384
  }
1385
1385
  function addToSet(e, t) {
1386
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : vt;
1387
- if (at && at(e, null), !_t(t)) return e;
1386
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _t;
1387
+ if (it && it(e, null), !gt(t)) return e;
1388
1388
  let r = t.length;
1389
1389
  for (; r--;) {
1390
1390
  let i = t[r];
1391
1391
  if (typeof i == "string") {
1392
1392
  let e = n(i);
1393
- e !== i && (ot(t) || (t[r] = e), i = e);
1393
+ e !== i && (at(t) || (t[r] = e), i = e);
1394
1394
  }
1395
1395
  e[i] = !0;
1396
1396
  }
1397
1397
  return e;
1398
1398
  }
1399
1399
  function cleanArray(e) {
1400
- for (let t = 0; t < e.length; t++) X(e, t) || (e[t] = null);
1400
+ for (let t = 0; t < e.length; t++) Z(e, t) || (e[t] = null);
1401
1401
  return e;
1402
1402
  }
1403
1403
  function clone(e) {
1404
- let t = J(null);
1405
- for (let r of it(e)) {
1404
+ let t = ct(null);
1405
+ for (let r of rt(e)) {
1406
1406
  var n = _slicedToArray(r, 2);
1407
1407
  let i = n[0], a = n[1];
1408
- X(e, i) && (t[i] = _t(a) ? cleanArray(a) : a && typeof a == "object" && a.constructor === Object ? clone(a) : a);
1408
+ Z(e, i) && (t[i] = gt(a) ? cleanArray(a) : a && typeof a == "object" && a.constructor === Object ? clone(a) : a);
1409
1409
  }
1410
1410
  return t;
1411
1411
  }
1412
1412
  function stringifyValue(e) {
1413
1413
  switch (typeof e) {
1414
1414
  case "string": return e;
1415
- case "number": return Et(e);
1416
- case "boolean": return Dt(e);
1417
- case "bigint": return Ot ? Ot(e) : "0";
1418
- case "symbol": return Y ? Y(e) : "Symbol()";
1419
- case "undefined": return kt(e);
1415
+ case "number": return Tt(e);
1416
+ case "boolean": return Et(e);
1417
+ case "bigint": return Dt ? Dt(e) : "0";
1418
+ case "symbol": return X ? X(e) : "Symbol()";
1419
+ case "undefined": return Ot(e);
1420
1420
  case "function":
1421
1421
  case "object": {
1422
- if (e === null) return kt(e);
1422
+ if (e === null) return Ot(e);
1423
1423
  let t = e, n = lookupGetter(t, "toString");
1424
1424
  if (typeof n == "function") {
1425
1425
  let e = n(t);
1426
- return typeof e == "string" ? e : kt(e);
1426
+ return typeof e == "string" ? e : Ot(e);
1427
1427
  }
1428
- return kt(e);
1428
+ return Ot(e);
1429
1429
  }
1430
- default: return kt(e);
1430
+ default: return Ot(e);
1431
1431
  }
1432
1432
  }
1433
1433
  function lookupGetter(e, t) {
1434
1434
  for (; e !== null;) {
1435
- let n = ct(e, t);
1435
+ let n = st(e, t);
1436
1436
  if (n) {
1437
1437
  if (n.get) return unapply(n.get);
1438
1438
  if (typeof n.value == "function") return unapply(n.value);
1439
1439
  }
1440
- e = st(e);
1440
+ e = ot(e);
1441
1441
  }
1442
1442
  function fallbackValue() {
1443
1443
  return null;
@@ -1446,12 +1446,12 @@ function lookupGetter(e, t) {
1446
1446
  }
1447
1447
  function isRegex(e) {
1448
1448
  try {
1449
- return Z(e, ""), !0;
1449
+ return kt(e, ""), !0;
1450
1450
  } catch {
1451
1451
  return !1;
1452
1452
  }
1453
1453
  }
1454
- var jt = 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(".")), Mt = 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(".")), Nt = K([
1454
+ var jt = 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(".")), Mt = 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(".")), Nt = q([
1455
1455
  "feBlend",
1456
1456
  "feColorMatrix",
1457
1457
  "feComponentTransfer",
@@ -1477,7 +1477,7 @@ var jt = K(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
1477
1477
  "feSpotLight",
1478
1478
  "feTile",
1479
1479
  "feTurbulence"
1480
- ]), Pt = K([
1480
+ ]), Pt = q([
1481
1481
  "animate",
1482
1482
  "color-profile",
1483
1483
  "cursor",
@@ -1500,7 +1500,7 @@ var jt = K(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
1500
1500
  "solidcolor",
1501
1501
  "unknown",
1502
1502
  "use"
1503
- ]), Ft = 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(".")), It = K([
1503
+ ]), Ft = 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(".")), It = q([
1504
1504
  "maction",
1505
1505
  "maligngroup",
1506
1506
  "malignmark",
@@ -1516,13 +1516,13 @@ var jt = K(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
1516
1516
  "annotation-xml",
1517
1517
  "mprescripts",
1518
1518
  "none"
1519
- ]), Lt = K(["#text"]), Rt = 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(".")), zt = 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(".")), Bt = 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(".")), Vt = K([
1519
+ ]), Lt = q(["#text"]), Rt = 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(".")), zt = 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(".")), Bt = 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(".")), Vt = q([
1520
1520
  "xlink:href",
1521
1521
  "xml:id",
1522
1522
  "xlink:title",
1523
1523
  "xml:space",
1524
1524
  "xmlns:xlink"
1525
- ]), Ht = q(/{{[\w\W]*|^[\w\W]*}}/g), Ut = q(/<%[\w\W]*|^[\w\W]*%>/g), Wt = q(/\${[\w\W]*/g), Gt = q(/^data-[\-\w.\u00B7-\uFFFF]+$/), Kt = q(/^aria-[\-\w]+$/), qt = q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Jt = q(/^(?:\w+script|data):/i), Yt = q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Xt = q(/^html$/i), Zt = q(/^[a-z][.\w]*(-[.\w]+)+$/i), Qt = q(/<[/\w!]/g), $t = q(/<[/\w]/g), en = q(/<\/no(script|embed|frames)/i), tn = q(/\/>/i), nn = {
1525
+ ]), Ht = J(/{{[\w\W]*|^[\w\W]*}}/g), Ut = J(/<%[\w\W]*|^[\w\W]*%>/g), Wt = J(/\${[\w\W]*/g), Gt = J(/^data-[\-\w.\u00B7-\uFFFF]+$/), Kt = J(/^aria-[\-\w]+$/), qt = J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Jt = J(/^(?:\w+script|data):/i), Yt = J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Xt = J(/^html$/i), Zt = J(/^[a-z][.\w]*(-[.\w]+)+$/i), Qt = J(/<[/\w!]/g), $t = J(/<[/\w]/g), en = J(/<\/no(script|embed|frames)/i), tn = J(/\/>/i), nn = {
1526
1526
  element: 1,
1527
1527
  attribute: 2,
1528
1528
  text: 3,
@@ -1567,7 +1567,7 @@ var jt = K(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
1567
1567
  uponSanitizeShadowNode: []
1568
1568
  };
1569
1569
  }, sn = function _resolveSetOption(e, t, n, r) {
1570
- return X(e, t) && _t(e[t]) ? addToSet(r.base ? clone(r.base) : {}, e[t], r.transform) : n;
1570
+ return Z(e, t) && gt(e[t]) ? addToSet(r.base ? clone(r.base) : {}, e[t], r.transform) : n;
1571
1571
  };
1572
1572
  function createDOMPurify() {
1573
1573
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : rn(), DOMPurify = (e) => createDOMPurify(e);
@@ -1600,7 +1600,7 @@ function createDOMPurify() {
1600
1600
  }, j = function _getDefaultTrustedTypesPolicy() {
1601
1601
  return O || (re = an(p, r), O = !0), re;
1602
1602
  }, M = t, N = M.implementation, se = M.createNodeIterator, ce = M.createDocumentFragment, F = M.getElementsByTagName, z = n.importNode, B = on();
1603
- DOMPurify.isSupported = typeof it == "function" && typeof b == "function" && N && N.createHTMLDocument !== void 0;
1603
+ DOMPurify.isSupported = typeof rt == "function" && typeof b == "function" && N && N.createHTMLDocument !== void 0;
1604
1604
  let le = Ht, ue = Ut, de = Wt, he = Gt, ge = Kt, _e = Jt, ve = Yt, ye = Zt, Se = qt, V = null, Ce = addToSet({}, [
1605
1605
  ...jt,
1606
1606
  ...Mt,
@@ -1612,7 +1612,7 @@ function createDOMPurify() {
1612
1612
  ...zt,
1613
1613
  ...Bt,
1614
1614
  ...Vt
1615
- ]), G = Object.seal(J(null, {
1615
+ ]), G = Object.seal(ct(null, {
1616
1616
  tagNameCheck: {
1617
1617
  writable: !0,
1618
1618
  configurable: !1,
@@ -1631,7 +1631,7 @@ function createDOMPurify() {
1631
1631
  enumerable: !0,
1632
1632
  value: !1
1633
1633
  }
1634
- })), we = null, Te = null, Ee = Object.seal(J(null, {
1634
+ })), we = null, Te = null, Ee = Object.seal(ct(null, {
1635
1635
  tagCheck: {
1636
1636
  writable: !0,
1637
1637
  configurable: !1,
@@ -1666,36 +1666,36 @@ function createDOMPurify() {
1666
1666
  "value",
1667
1667
  "style",
1668
1668
  "xmlns"
1669
- ]), et = "http://www.w3.org/1998/Math/MathML", tt = "http://www.w3.org/2000/svg", nt = "http://www.w3.org/1999/xhtml", rt = nt, at = !1, ot = null, st = addToSet({}, [
1669
+ ]), et = "http://www.w3.org/1998/Math/MathML", tt = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", nt = K, it = !1, at = null, ot = addToSet({}, [
1670
1670
  et,
1671
1671
  tt,
1672
- nt
1673
- ], yt), ct = K([
1672
+ K
1673
+ ], vt), st = q([
1674
1674
  "mi",
1675
1675
  "mo",
1676
1676
  "mn",
1677
1677
  "ms",
1678
1678
  "mtext"
1679
- ]), lt = addToSet({}, ct), ut = K(["annotation-xml"]), dt = addToSet({}, ut), Et = addToSet({}, [
1679
+ ]), Y = addToSet({}, st), lt = q(["annotation-xml"]), ut = addToSet({}, lt), Tt = addToSet({}, [
1680
1680
  "title",
1681
1681
  "style",
1682
1682
  "font",
1683
1683
  "a",
1684
1684
  "script"
1685
- ]), Dt = null, Ot = ["application/xhtml+xml", "text/html"], Y = null, kt = null, cn = t.createElement("form"), ln = function isRegexOrFunction(e) {
1685
+ ]), Et = null, Dt = ["application/xhtml+xml", "text/html"], X = null, Ot = null, cn = t.createElement("form"), ln = function isRegexOrFunction(e) {
1686
1686
  return e instanceof RegExp || e instanceof Function;
1687
1687
  }, un = function _parseConfig() {
1688
1688
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1689
- if (kt && kt === e) return;
1690
- (!e || typeof e != "object") && (e = {}), e = clone(e), Dt = Ot.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = Dt === "application/xhtml+xml" ? yt : vt, V = sn(e, "ALLOWED_TAGS", Ce, { transform: Y }), H = sn(e, "ALLOWED_ATTR", W, { transform: Y }), ot = sn(e, "ALLOWED_NAMESPACES", st, { transform: yt }), Qe = sn(e, "ADD_URI_SAFE_ATTR", $e, {
1691
- transform: Y,
1689
+ if (Ot && Ot === e) return;
1690
+ (!e || typeof e != "object") && (e = {}), e = clone(e), Et = Dt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = Et === "application/xhtml+xml" ? vt : _t, V = sn(e, "ALLOWED_TAGS", Ce, { transform: X }), H = sn(e, "ALLOWED_ATTR", W, { transform: X }), at = sn(e, "ALLOWED_NAMESPACES", ot, { transform: vt }), Qe = sn(e, "ADD_URI_SAFE_ATTR", $e, {
1691
+ transform: X,
1692
1692
  base: $e
1693
1693
  }), Xe = sn(e, "ADD_DATA_URI_TAGS", Ze, {
1694
- transform: Y,
1694
+ transform: X,
1695
1695
  base: Ze
1696
- }), Je = sn(e, "FORBID_CONTENTS", Ye, { transform: Y }), we = sn(e, "FORBID_TAGS", clone({}), { transform: Y }), Te = sn(e, "FORBID_ATTR", clone({}), { transform: Y }), qe = X(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? clone(e.USE_PROFILES) : e.USE_PROFILES : !1, De = e.ALLOW_ARIA_ATTR !== !1, Oe = e.ALLOW_DATA_ATTR !== !1, ke = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ae = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, je = e.SAFE_FOR_TEMPLATES || !1, Me = e.SAFE_FOR_XML !== !1, Ne = e.WHOLE_DOCUMENT || !1, ze = e.RETURN_DOM || !1, Be = e.RETURN_DOM_FRAGMENT || !1, Ve = e.RETURN_TRUSTED_TYPE || !1, Le = e.FORCE_BODY || !1, He = e.SANITIZE_DOM !== !1, Ue = e.SANITIZE_NAMED_PROPS || !1, Ge = e.KEEP_CONTENT !== !1, Ke = e.IN_PLACE || !1, Se = isRegex(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : qt, rt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : nt, lt = 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({}, ct), dt = X(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? clone(e.HTML_INTEGRATION_POINTS) : addToSet({}, ut);
1697
- let t = X(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? clone(e.CUSTOM_ELEMENT_HANDLING) : J(null);
1698
- if (G = J(null), X(t, "tagNameCheck") && ln(t.tagNameCheck) && (G.tagNameCheck = t.tagNameCheck), X(t, "attributeNameCheck") && ln(t.attributeNameCheck) && (G.attributeNameCheck = t.attributeNameCheck), X(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (G.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), q(G), je && (Oe = !1), Be && (ze = !0), qe && (V = addToSet({}, Lt), H = J(null), qe.html === !0 && (addToSet(V, jt), addToSet(H, Rt)), qe.svg === !0 && (addToSet(V, Mt), addToSet(H, zt), addToSet(H, Vt)), qe.svgFilters === !0 && (addToSet(V, Nt), addToSet(H, zt), addToSet(H, Vt)), qe.mathMl === !0 && (addToSet(V, Ft), addToSet(H, Bt), addToSet(H, Vt))), Ee.tagCheck = null, Ee.attributeCheck = null, X(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? Ee.tagCheck = e.ADD_TAGS : _t(e.ADD_TAGS) && (V === Ce && (V = clone(V)), addToSet(V, e.ADD_TAGS, Y))), X(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? Ee.attributeCheck = e.ADD_ATTR : _t(e.ADD_ATTR) && (H === W && (H = clone(H)), addToSet(H, e.ADD_ATTR, Y))), X(e, "ADD_URI_SAFE_ATTR") && _t(e.ADD_URI_SAFE_ATTR) && addToSet(Qe, e.ADD_URI_SAFE_ATTR, Y), X(e, "FORBID_CONTENTS") && _t(e.FORBID_CONTENTS) && (Je === Ye && (Je = clone(Je)), addToSet(Je, e.FORBID_CONTENTS, Y)), X(e, "ADD_FORBID_CONTENTS") && _t(e.ADD_FORBID_CONTENTS) && (Je === Ye && (Je = clone(Je)), addToSet(Je, e.ADD_FORBID_CONTENTS, Y)), Ge && (V["#text"] = !0), Ne && addToSet(V, [
1696
+ }), Je = sn(e, "FORBID_CONTENTS", Ye, { transform: X }), we = sn(e, "FORBID_TAGS", clone({}), { transform: X }), Te = sn(e, "FORBID_ATTR", clone({}), { transform: X }), qe = Z(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? clone(e.USE_PROFILES) : e.USE_PROFILES : !1, De = e.ALLOW_ARIA_ATTR !== !1, Oe = e.ALLOW_DATA_ATTR !== !1, ke = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ae = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, je = e.SAFE_FOR_TEMPLATES || !1, Me = e.SAFE_FOR_XML !== !1, Ne = e.WHOLE_DOCUMENT || !1, ze = e.RETURN_DOM || !1, Be = e.RETURN_DOM_FRAGMENT || !1, Ve = e.RETURN_TRUSTED_TYPE || !1, Le = e.FORCE_BODY || !1, He = e.SANITIZE_DOM !== !1, Ue = e.SANITIZE_NAMED_PROPS || !1, Ge = e.KEEP_CONTENT !== !1, Ke = e.IN_PLACE || !1, Se = isRegex(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : qt, nt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Y = Z(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? clone(e.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, st), ut = Z(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? clone(e.HTML_INTEGRATION_POINTS) : addToSet({}, lt);
1697
+ let t = Z(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? clone(e.CUSTOM_ELEMENT_HANDLING) : ct(null);
1698
+ if (G = ct(null), Z(t, "tagNameCheck") && ln(t.tagNameCheck) && (G.tagNameCheck = t.tagNameCheck), Z(t, "attributeNameCheck") && ln(t.attributeNameCheck) && (G.attributeNameCheck = t.attributeNameCheck), Z(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (G.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), J(G), je && (Oe = !1), Be && (ze = !0), qe && (V = addToSet({}, Lt), H = ct(null), qe.html === !0 && (addToSet(V, jt), addToSet(H, Rt)), qe.svg === !0 && (addToSet(V, Mt), addToSet(H, zt), addToSet(H, Vt)), qe.svgFilters === !0 && (addToSet(V, Nt), addToSet(H, zt), addToSet(H, Vt)), qe.mathMl === !0 && (addToSet(V, Ft), addToSet(H, Bt), addToSet(H, Vt))), Ee.tagCheck = null, Ee.attributeCheck = null, Z(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? Ee.tagCheck = e.ADD_TAGS : gt(e.ADD_TAGS) && (V === Ce && (V = clone(V)), addToSet(V, e.ADD_TAGS, X))), Z(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? Ee.attributeCheck = e.ADD_ATTR : gt(e.ADD_ATTR) && (H === W && (H = clone(H)), addToSet(H, e.ADD_ATTR, X))), Z(e, "ADD_URI_SAFE_ATTR") && gt(e.ADD_URI_SAFE_ATTR) && addToSet(Qe, e.ADD_URI_SAFE_ATTR, X), Z(e, "FORBID_CONTENTS") && gt(e.FORBID_CONTENTS) && (Je === Ye && (Je = clone(Je)), addToSet(Je, e.FORBID_CONTENTS, X)), Z(e, "ADD_FORBID_CONTENTS") && gt(e.ADD_FORBID_CONTENTS) && (Je === Ye && (Je = clone(Je)), addToSet(Je, e.ADD_FORBID_CONTENTS, X)), Ge && (V["#text"] = !0), Ne && addToSet(V, [
1699
1699
  "html",
1700
1700
  "head",
1701
1701
  "body"
@@ -1710,27 +1710,27 @@ function createDOMPurify() {
1710
1710
  throw T = t, e;
1711
1711
  }
1712
1712
  } else e.TRUSTED_TYPES_POLICY === null ? (T = void 0, E = "") : (T === void 0 && (T = j()), T && typeof E == "string" && (E = ae("")));
1713
- K && K(e), kt = e;
1713
+ q && q(e), Ot = e;
1714
1714
  }, dn = addToSet({}, [
1715
1715
  ...Mt,
1716
1716
  ...Nt,
1717
1717
  ...Pt
1718
1718
  ]), fn = addToSet({}, [...Ft, ...It]), pn = function _checkSvgNamespace(e, t, n) {
1719
- return t.namespaceURI === nt ? e === "svg" : t.namespaceURI === et ? e === "svg" && (n === "annotation-xml" || lt[n]) : !!dn[e];
1719
+ return t.namespaceURI === K ? e === "svg" : t.namespaceURI === et ? e === "svg" && (n === "annotation-xml" || Y[n]) : !!dn[e];
1720
1720
  }, mn = function _checkMathMlNamespace(e, t, n) {
1721
- return t.namespaceURI === nt ? e === "math" : t.namespaceURI === tt ? e === "math" && dt[n] : !!fn[e];
1721
+ return t.namespaceURI === K ? e === "math" : t.namespaceURI === tt ? e === "math" && ut[n] : !!fn[e];
1722
1722
  }, hn = function _checkHtmlNamespace(e, t, n) {
1723
- return t.namespaceURI === tt && !dt[n] || t.namespaceURI === et && !lt[n] ? !1 : !fn[e] && (Et[e] || !dn[e]);
1723
+ return t.namespaceURI === tt && !ut[n] || t.namespaceURI === et && !Y[n] ? !1 : !fn[e] && (Tt[e] || !dn[e]);
1724
1724
  }, gn = function _checkValidNamespace(e) {
1725
1725
  let t = b(e);
1726
1726
  (!t || !t.tagName) && (t = {
1727
- namespaceURI: rt,
1727
+ namespaceURI: nt,
1728
1728
  tagName: "template"
1729
1729
  });
1730
- let n = vt(e.tagName), r = vt(t.tagName);
1731
- return ot[e.namespaceURI] ? e.namespaceURI === tt ? pn(n, t, r) : e.namespaceURI === et ? mn(n, t, r) : e.namespaceURI === nt ? hn(n, t, r) : !!(Dt === "application/xhtml+xml" && ot[e.namespaceURI]) : !1;
1730
+ let n = _t(e.tagName), r = _t(t.tagName);
1731
+ return at[e.namespaceURI] ? e.namespaceURI === tt ? pn(n, t, r) : e.namespaceURI === et ? mn(n, t, r) : e.namespaceURI === K ? hn(n, t, r) : !!(Et === "application/xhtml+xml" && at[e.namespaceURI]) : !1;
1732
1732
  }, _n = function _forceRemove(e) {
1733
- ht(DOMPurify.removed, { element: e });
1733
+ mt(DOMPurify.removed, { element: e });
1734
1734
  try {
1735
1735
  b(e).removeChild(e);
1736
1736
  } catch {
@@ -1741,9 +1741,9 @@ function createDOMPurify() {
1741
1741
  let t = v(e);
1742
1742
  if (t) {
1743
1743
  let e = [];
1744
- ft(t, (t) => {
1745
- ht(e, t);
1746
- }), ft(e, (e) => {
1744
+ dt(t, (t) => {
1745
+ mt(e, t);
1746
+ }), dt(e, (e) => {
1747
1747
  try {
1748
1748
  g(e);
1749
1749
  } catch {}
@@ -1758,12 +1758,12 @@ function createDOMPurify() {
1758
1758
  }
1759
1759
  }, yn = function _removeAttribute(e, t) {
1760
1760
  try {
1761
- ht(DOMPurify.removed, {
1761
+ mt(DOMPurify.removed, {
1762
1762
  attribute: t.getAttributeNode(e),
1763
1763
  from: t
1764
1764
  });
1765
1765
  } catch {
1766
- ht(DOMPurify.removed, {
1766
+ mt(DOMPurify.removed, {
1767
1767
  attribute: null,
1768
1768
  from: t
1769
1769
  });
@@ -1780,7 +1780,7 @@ function createDOMPurify() {
1780
1780
  let t = S(e);
1781
1781
  if (t) for (let n = t.length - 1; n >= 0; --n) {
1782
1782
  let r = t[n], i = r && r.name;
1783
- if (!(typeof i != "string" || H[Y(i)])) try {
1783
+ if (!(typeof i != "string" || H[X(i)])) try {
1784
1784
  e.removeAttribute(i);
1785
1785
  } catch {}
1786
1786
  }
@@ -1797,14 +1797,14 @@ function createDOMPurify() {
1797
1797
  let t = [e];
1798
1798
  for (; t.length > 0;) {
1799
1799
  let e = t.pop(), n = C ? C(e) : e.nodeType;
1800
- if (n === nn.processingInstruction || n === nn.comment && Z($t, e.data)) {
1800
+ if (n === nn.processingInstruction || n === nn.comment && kt($t, e.data)) {
1801
1801
  try {
1802
1802
  g(e);
1803
1803
  } catch {}
1804
1804
  continue;
1805
1805
  }
1806
1806
  if (n === nn.element) {
1807
- let t = e, n = Y(w ? w(e) : e.nodeName);
1807
+ let t = e, n = X(w ? w(e) : e.nodeName);
1808
1808
  try {
1809
1809
  t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
1810
1810
  } catch {}
@@ -1816,37 +1816,37 @@ function createDOMPurify() {
1816
1816
  let n = null, r = null;
1817
1817
  if (Le) e = "<remove></remove>" + e;
1818
1818
  else {
1819
- let t = St(e, /^[\r\n\t ]+/);
1819
+ let t = yt(e, /^[\r\n\t ]+/);
1820
1820
  r = t && t[0];
1821
1821
  }
1822
- Dt === "application/xhtml+xml" && rt === nt && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
1822
+ Et === "application/xhtml+xml" && nt === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
1823
1823
  let i = T ? ae(e) : e;
1824
- if (rt === nt) try {
1825
- n = new c().parseFromString(i, Dt);
1824
+ if (nt === K) try {
1825
+ n = new c().parseFromString(i, Et);
1826
1826
  } catch {}
1827
1827
  if (!n || !n.documentElement) {
1828
- n = N.createDocument(rt, "template", null);
1828
+ n = N.createDocument(nt, "template", null);
1829
1829
  try {
1830
- n.documentElement.innerHTML = at ? E : i;
1830
+ n.documentElement.innerHTML = it ? E : i;
1831
1831
  } catch {}
1832
1832
  }
1833
1833
  let a = n.body || n.documentElement;
1834
- return e && r && a.insertBefore(t.createTextNode(r), a.childNodes[0] || null), rt === nt ? F.call(n, Ne ? "html" : "body")[0] : Ne ? n.documentElement : a;
1834
+ return e && r && a.insertBefore(t.createTextNode(r), a.childNodes[0] || null), nt === K ? F.call(n, Ne ? "html" : "body")[0] : Ne ? n.documentElement : a;
1835
1835
  }, wn = function _createNodeIterator(e) {
1836
1836
  return se.call(e.ownerDocument || e, e, s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION, null);
1837
1837
  }, Tn = function _stripTemplateExpressions(e) {
1838
- return e = Ct(e, le, " "), e = Ct(e, ue, " "), e = Ct(e, de, " "), e;
1838
+ return e = St(e, le, " "), e = St(e, ue, " "), e = St(e, de, " "), e;
1839
1839
  }, En = function _scrubTemplateExpressions(e) {
1840
1840
  e.normalize();
1841
1841
  let t = se.call(e.ownerDocument || e, e, s.SHOW_TEXT | s.SHOW_COMMENT | s.SHOW_CDATA_SECTION | s.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
1842
1842
  for (; n;) n.data = Tn(n.data), n = t.nextNode();
1843
1843
  let r = e.querySelectorAll?.call(e, "template");
1844
- r && ft(r, (e) => {
1844
+ r && dt(r, (e) => {
1845
1845
  On(e.content) && En(e.content);
1846
1846
  });
1847
1847
  }, Dn = function _isClobbered(e) {
1848
1848
  let t = w ? w(e) : null;
1849
- return typeof t != "string" || Y(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== S(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== C(e) || e.childNodes !== v(e);
1849
+ return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== S(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== C(e) || e.childNodes !== v(e);
1850
1850
  }, On = function _isDocumentFragment(e) {
1851
1851
  if (!C || typeof e != "object" || !e) return !1;
1852
1852
  try {
@@ -1863,14 +1863,14 @@ function createDOMPurify() {
1863
1863
  }
1864
1864
  };
1865
1865
  function _executeHooks(e, t, n) {
1866
- e.length !== 0 && ft(e, (e) => {
1867
- e.call(DOMPurify, t, n, kt);
1866
+ e.length !== 0 && dt(e, (e) => {
1867
+ e.call(DOMPurify, t, n, Ot);
1868
1868
  });
1869
1869
  }
1870
1870
  let An = function _isUnsafeNode(e, t) {
1871
- return !!(Me && e.hasChildNodes() && !kn(e.firstElementChild) && Z(Qt, e.textContent) && Z(Qt, e.innerHTML) || Me && e.namespaceURI === nt && t === "style" && kn(e.firstElementChild) || e.nodeType === nn.processingInstruction || Me && e.nodeType === nn.comment && Z($t, e.data));
1871
+ return !!(Me && e.hasChildNodes() && !kn(e.firstElementChild) && kt(Qt, e.textContent) && kt(Qt, e.innerHTML) || Me && e.namespaceURI === K && t === "style" && kn(e.firstElementChild) || e.nodeType === nn.processingInstruction || Me && e.nodeType === nn.comment && kt($t, e.data));
1872
1872
  }, jn = function _sanitizeDisallowedNode(e, t) {
1873
- if (!we[t] && Fn(t) && (G.tagNameCheck instanceof RegExp && Z(G.tagNameCheck, t) || G.tagNameCheck instanceof Function && G.tagNameCheck(t))) return !1;
1873
+ if (!we[t] && Fn(t) && (G.tagNameCheck instanceof RegExp && kt(G.tagNameCheck, t) || G.tagNameCheck instanceof Function && G.tagNameCheck(t))) return !1;
1874
1874
  if (Ge && !Je[t]) {
1875
1875
  let t = b(e), n = v(e);
1876
1876
  if (n && t) {
@@ -1885,7 +1885,7 @@ function createDOMPurify() {
1885
1885
  }, Mn = function _sanitizeElements(e, t) {
1886
1886
  if (_executeHooks(B.beforeSanitizeElements, e, null), e !== t && b(e) === null) return !0;
1887
1887
  if (Dn(e)) return _n(e), !0;
1888
- let n = Y(w ? w(e) : e.nodeName);
1888
+ let n = X(w ? w(e) : e.nodeName);
1889
1889
  if (_executeHooks(B.uponSanitizeElement, e, {
1890
1890
  tagName: n,
1891
1891
  allowedTags: V
@@ -1895,19 +1895,19 @@ function createDOMPurify() {
1895
1895
  let t = jn(e, n);
1896
1896
  return t === !1 && _executeHooks(B.afterSanitizeElements, e, null), t;
1897
1897
  }
1898
- if ((C ? C(e) : e.nodeType) === nn.element && !gn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && Z(en, e.innerHTML)) return _n(e), !0;
1898
+ if ((C ? C(e) : e.nodeType) === nn.element && !gn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && kt(en, e.innerHTML)) return _n(e), !0;
1899
1899
  if (je && e.nodeType === nn.text) {
1900
1900
  let t = Tn(e.textContent);
1901
- e.textContent !== t && (ht(DOMPurify.removed, { element: e.cloneNode() }), e.textContent = t);
1901
+ e.textContent !== t && (mt(DOMPurify.removed, { element: e.cloneNode() }), e.textContent = t);
1902
1902
  }
1903
1903
  return _executeHooks(B.afterSanitizeElements, e, null), !1;
1904
1904
  }, Nn = function _isValidAttribute(e, n, r) {
1905
1905
  if (Te[n] || Me && n === "patchsrc" || Me && n === "for" && e !== "label" && e !== "output" || He && (n === "id" || n === "name") && (r in t || r in cn)) return !1;
1906
1906
  let i = H[n] || Ee.attributeCheck instanceof Function && Ee.attributeCheck(n, e);
1907
- if (!(Oe && Z(he, n)) && !(De && Z(ge, n))) {
1907
+ if (!(Oe && kt(he, n)) && !(De && kt(ge, n))) {
1908
1908
  if (!i) {
1909
- if (!(Fn(e) && (G.tagNameCheck instanceof RegExp && Z(G.tagNameCheck, e) || G.tagNameCheck instanceof Function && G.tagNameCheck(e)) && (G.attributeNameCheck instanceof RegExp && Z(G.attributeNameCheck, n) || G.attributeNameCheck instanceof Function && G.attributeNameCheck(n, e)) || n === "is" && G.allowCustomizedBuiltInElements && (G.tagNameCheck instanceof RegExp && Z(G.tagNameCheck, r) || G.tagNameCheck instanceof Function && G.tagNameCheck(r)))) return !1;
1910
- } else if (!Qe[n] && !Z(Se, Ct(r, ve, "")) && (n !== "src" && n !== "xlink:href" && n !== "href" || e === "script" || wt(r, "data:") !== 0 || !Xe[e]) && (!ke || Z(_e, Ct(r, ve, ""))) && r) return !1;
1909
+ if (!(Fn(e) && (G.tagNameCheck instanceof RegExp && kt(G.tagNameCheck, e) || G.tagNameCheck instanceof Function && G.tagNameCheck(e)) && (G.attributeNameCheck instanceof RegExp && kt(G.attributeNameCheck, n) || G.attributeNameCheck instanceof Function && G.attributeNameCheck(n, e)) || n === "is" && G.allowCustomizedBuiltInElements && (G.tagNameCheck instanceof RegExp && kt(G.tagNameCheck, r) || G.tagNameCheck instanceof Function && G.tagNameCheck(r)))) return !1;
1910
+ } else if (!Qe[n] && !kt(Se, St(r, ve, "")) && (n !== "src" && n !== "xlink:href" && n !== "href" || e === "script" || Ct(r, "data:") !== 0 || !Xe[e]) && (!ke || kt(_e, St(r, ve, ""))) && r) return !1;
1911
1911
  }
1912
1912
  return !0;
1913
1913
  }, Pn = addToSet({}, [
@@ -1920,7 +1920,7 @@ function createDOMPurify() {
1920
1920
  "font-face-uri",
1921
1921
  "missing-glyph"
1922
1922
  ]), Fn = function _isBasicCustomElement(e) {
1923
- return !Pn[vt(e)] && Z(ye, e);
1923
+ return !Pn[_t(e)] && kt(ye, e);
1924
1924
  }, In = function _applyTrustedTypesToAttribute(e, t, n, r) {
1925
1925
  if (T && typeof p == "object" && typeof p.getAttributeType == "function" && !n) switch (p.getAttributeType(e, t)) {
1926
1926
  case "TrustedHTML": return ae(r);
@@ -1929,7 +1929,7 @@ function createDOMPurify() {
1929
1929
  return r;
1930
1930
  }, Ln = function _setAttributeValue(e, t, n, r) {
1931
1931
  try {
1932
- n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), Dn(e) ? _n(e) : mt(DOMPurify.removed);
1932
+ n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), Dn(e) ? _n(e) : pt(DOMPurify.removed);
1933
1933
  } catch {
1934
1934
  yn(t, e);
1935
1935
  }
@@ -1943,14 +1943,14 @@ function createDOMPurify() {
1943
1943
  keepAttr: !0,
1944
1944
  allowedAttributes: H,
1945
1945
  forceKeepAttr: void 0
1946
- }, r = t.length, i = Y(e.nodeName);
1946
+ }, r = t.length, i = X(e.nodeName);
1947
1947
  for (; r--;) {
1948
- let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, p = Y(o), m = c, h = o === "value" ? m : Tt(m);
1949
- if (n.attrName = p, n.attrValue = h, n.keepAttr = !0, n.forceKeepAttr = void 0, _executeHooks(B.uponSanitizeAttribute, e, n), h = n.attrValue, Ue && (p === "id" || p === "name") && wt(h, We) !== 0 && (yn(o, e), h = We + h), Me && Z(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, h)) {
1948
+ let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, p = X(o), m = c, h = o === "value" ? m : wt(m);
1949
+ if (n.attrName = p, n.attrValue = h, n.keepAttr = !0, n.forceKeepAttr = void 0, _executeHooks(B.uponSanitizeAttribute, e, n), h = n.attrValue, Ue && (p === "id" || p === "name") && Ct(h, We) !== 0 && (yn(o, e), h = We + h), Me && kt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, h)) {
1950
1950
  yn(o, e);
1951
1951
  continue;
1952
1952
  }
1953
- if (p === "attributename" && St(h, "href")) {
1953
+ if (p === "attributename" && yt(h, "href")) {
1954
1954
  yn(o, e);
1955
1955
  continue;
1956
1956
  }
@@ -1959,7 +1959,7 @@ function createDOMPurify() {
1959
1959
  yn(o, e);
1960
1960
  continue;
1961
1961
  }
1962
- if (!Ae && Z(tn, h)) {
1962
+ if (!Ae && kt(tn, h)) {
1963
1963
  yn(o, e);
1964
1964
  continue;
1965
1965
  }
@@ -1996,7 +1996,7 @@ function createDOMPurify() {
1996
1996
  });
1997
1997
  if (r) {
1998
1998
  let e = w ? w(n) : null;
1999
- if (typeof e == "string" && Y(e) === "template") {
1999
+ if (typeof e == "string" && X(e) === "template") {
2000
2000
  let e = n.content;
2001
2001
  On(e) && t.push({
2002
2002
  node: e,
@@ -2018,7 +2018,7 @@ function createDOMPurify() {
2018
2018
  };
2019
2019
  return DOMPurify.sanitize = function(e) {
2020
2020
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = null, i = null, a = null, o = null;
2021
- if (at = !e, at && (e = "<!-->"), typeof e != "string" && !kn(e) && (e = stringifyValue(e), typeof e != "string")) throw At("dirty is not a string, aborting");
2021
+ if (it = !e, it && (e = "<!-->"), typeof e != "string" && !kn(e) && (e = stringifyValue(e), typeof e != "string")) throw At("dirty is not a string, aborting");
2022
2022
  if (!DOMPurify.isSupported) return e;
2023
2023
  Pe ? (V = Fe, H = Ie) : un(t), (B.uponSanitizeElement.length > 0 || B.uponSanitizeAttribute.length > 0) && (V = clone(V)), B.uponSanitizeAttribute.length > 0 && (H = clone(H)), DOMPurify.removed = [];
2024
2024
  let s = Ke && typeof e != "string" && kn(e);
@@ -2026,7 +2026,7 @@ function createDOMPurify() {
2026
2026
  Sn(e);
2027
2027
  let t = w ? w(e) : e.nodeName;
2028
2028
  if (typeof t == "string") {
2029
- let n = Y(t);
2029
+ let n = X(t);
2030
2030
  if (!V[n] || we[n]) throw vn(e), At("root node is forbidden and cannot be sanitized in-place");
2031
2031
  }
2032
2032
  if (Dn(e)) throw vn(e), At("root node is clobbered and cannot be sanitized in-place");
@@ -2045,11 +2045,11 @@ function createDOMPurify() {
2045
2045
  try {
2046
2046
  for (; a = p.nextNode();) Mn(a, c), Rn(a), On(a.content) && zn(a.content);
2047
2047
  } catch (t) {
2048
- throw s && (vn(e), ft(DOMPurify.removed, (e) => {
2048
+ throw s && (vn(e), dt(DOMPurify.removed, (e) => {
2049
2049
  e.element && xn(e.element);
2050
2050
  })), t;
2051
2051
  }
2052
- if (s) return ft(DOMPurify.removed, (e) => {
2052
+ if (s) return dt(DOMPurify.removed, (e) => {
2053
2053
  e.element && xn(e.element);
2054
2054
  }), je && En(e), e;
2055
2055
  if (ze) {
@@ -2058,28 +2058,28 @@ function createDOMPurify() {
2058
2058
  return (H.shadowroot || H.shadowrootmode) && (o = z.call(n, o, !0)), o;
2059
2059
  }
2060
2060
  let m = Ne ? r.outerHTML : r.innerHTML;
2061
- return Ne && V["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && Z(Xt, r.ownerDocument.doctype.name) && (m = "<!DOCTYPE " + r.ownerDocument.doctype.name + ">\n" + m), je && (m = Tn(m)), T && Ve ? ae(m) : m;
2061
+ return Ne && V["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && kt(Xt, r.ownerDocument.doctype.name) && (m = "<!DOCTYPE " + r.ownerDocument.doctype.name + ">\n" + m), je && (m = Tn(m)), T && Ve ? ae(m) : m;
2062
2062
  }, DOMPurify.setConfig = function() {
2063
2063
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2064
2064
  un(e), Pe = !0, Fe = V, Ie = H;
2065
2065
  }, DOMPurify.clearConfig = function() {
2066
- kt = null, Pe = !1, Fe = null, Ie = null, T = re, E = "";
2066
+ Ot = null, Pe = !1, Fe = null, Ie = null, T = re, E = "";
2067
2067
  }, DOMPurify.isValidAttribute = function(e, t, n) {
2068
- kt || un({});
2069
- let r = Y(e), i = Y(t);
2068
+ Ot || un({});
2069
+ let r = X(e), i = X(t);
2070
2070
  return Nn(r, i, n);
2071
2071
  }, DOMPurify.addHook = function(e, t) {
2072
- typeof t == "function" && X(B, e) && ht(B[e], t);
2072
+ typeof t == "function" && Z(B, e) && mt(B[e], t);
2073
2073
  }, DOMPurify.removeHook = function(e, t) {
2074
- if (X(B, e)) {
2074
+ if (Z(B, e)) {
2075
2075
  if (t !== void 0) {
2076
- let n = pt(B[e], t);
2077
- return n === -1 ? void 0 : gt(B[e], n, 1)[0];
2076
+ let n = ft(B[e], t);
2077
+ return n === -1 ? void 0 : ht(B[e], n, 1)[0];
2078
2078
  }
2079
- return mt(B[e]);
2079
+ return pt(B[e]);
2080
2080
  }
2081
2081
  }, DOMPurify.removeHooks = function(e) {
2082
- X(B, e) && (B[e] = []);
2082
+ Z(B, e) && (B[e] = []);
2083
2083
  }, DOMPurify.removeAllHooks = function() {
2084
2084
  B = on();
2085
2085
  }, DOMPurify;
@@ -5019,56 +5019,56 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5019
5019
  "src",
5020
5020
  "alt",
5021
5021
  "data-attachment-placement"
5022
- ], xa = ["src", "data-attachment-placement"], Sa = ["href", "data-attachment-placement"], Ca = [
5022
+ ], xa = ["src", "data-attachment-placement"], Sa = ["href", "data-attachment-placement"], Ca = ["data-actions-reveal"], wa = [
5023
5023
  "data-copied",
5024
5024
  "title",
5025
5025
  "aria-label",
5026
5026
  "onClick"
5027
- ], wa = ["onClick"], Ta = ["data-journal-outcome"], Ea = ["data-journal-outcome"], Da = ["data-test", "data-working-description"], Oa = {
5027
+ ], Ta = ["onClick"], Ea = ["data-journal-outcome"], Da = ["data-journal-outcome"], Oa = ["data-test", "data-working-description"], ka = {
5028
5028
  key: 0,
5029
5029
  class: "truncate"
5030
- }, ka = {
5030
+ }, Aa = {
5031
5031
  key: 1,
5032
5032
  class: "sr-only"
5033
- }, Aa = ["data-issue-code"], ja = { class: "min-w-0 flex-1" }, Ma = {
5033
+ }, ja = ["data-issue-code"], Ma = { class: "min-w-0 flex-1" }, Na = {
5034
5034
  "data-test": "messaging-transient-issue-title",
5035
5035
  class: "font-medium"
5036
- }, Na = { "data-test": "messaging-transient-issue-help" }, Pa = ["href"], Fa = ["inert", "aria-hidden"], Ia = ["data-seat-state"], La = ["src", "alt"], Ra = { class: "max-w-20 truncate" }, za = ["onClick"], Ba = {
5036
+ }, Pa = { "data-test": "messaging-transient-issue-help" }, Fa = ["href"], Ia = ["inert", "aria-hidden"], La = ["data-seat-state"], Ra = ["src", "alt"], za = { class: "max-w-20 truncate" }, Ba = ["onClick"], Va = {
5037
5037
  key: 0,
5038
5038
  class: "shrink-0 flex items-center justify-center size-14"
5039
- }, Va = ["data-composer-action"], Ha = ["placeholder", "disabled"], Ua = { class: "font-mono text-sm tabular-nums" }, Wa = { class: "mt-2.5 flex items-center" }, Ga = [
5039
+ }, Ha = ["data-composer-action"], Ua = ["placeholder", "disabled"], Wa = { class: "font-mono text-sm tabular-nums" }, Ga = { class: "mt-2.5 flex items-center" }, Ka = [
5040
5040
  "disabled",
5041
5041
  "aria-label",
5042
5042
  "title"
5043
- ], Ka = {
5043
+ ], qa = {
5044
5044
  key: 0,
5045
5045
  class: "i-svg-spinners-ring-resize size-5"
5046
- }, qa = {
5046
+ }, Ja = {
5047
5047
  key: 1,
5048
5048
  class: "i-tabler-plus size-5"
5049
- }, Ja = { class: "sr-only" }, Ya = { class: "flex items-center gap-2" }, Xa = ["aria-label", "title"], Za = { class: "sr-only" }, Qa = [
5049
+ }, Ya = { class: "sr-only" }, Xa = { class: "flex items-center gap-2" }, Za = ["aria-label", "title"], Qa = { class: "sr-only" }, $a = [
5050
5050
  "disabled",
5051
5051
  "aria-label",
5052
5052
  "title"
5053
- ], $a = {
5053
+ ], eo = {
5054
5054
  class: "flex h-4 items-center gap-[2px]",
5055
5055
  "aria-hidden": "true"
5056
- }, eo = [
5056
+ }, to = [
5057
5057
  "data-composer-action",
5058
5058
  "disabled",
5059
5059
  "aria-label",
5060
5060
  "title"
5061
- ], to = {
5061
+ ], no = {
5062
5062
  key: 0,
5063
5063
  class: "i-tabler-player-stop-filled size-3.5"
5064
- }, no = {
5064
+ }, ro = {
5065
5065
  key: 1,
5066
5066
  class: "i-tabler-arrow-up size-[17px]"
5067
- }, ro = { class: "sr-only" }, io = {
5067
+ }, io = { class: "sr-only" }, ao = {
5068
5068
  key: 2,
5069
5069
  "data-test": "messaging-ai-notice",
5070
5070
  class: "mx-auto max-w-[640px] @5xl/chat:max-w-[720px] pt-3 text-center text-[11.5px] leading-none text-theme-300"
5071
- }, ao = /*#__PURE__*/ ye(/* @__PURE__ */ E({
5071
+ }, oo = /*#__PURE__*/ ye(/* @__PURE__ */ E({
5072
5072
  __name: "ElBotChat",
5073
5073
  props: {
5074
5074
  chatController: {},
@@ -5200,7 +5200,7 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5200
5200
  let e = B.value, t = e[e.length - 1];
5201
5201
  return t?.sender === "bot" || t?.sender === "system" ? t.id : void 0;
5202
5202
  }), G = v(() => !m.value || le.value || ye.value || E.value.length ? !1 : W.value === void 0), we = v(() => !!le.value || G.value), Te = v(() => c.value?.sendBlockedReason), Ee = v(() => Te.value === "bot_deleted"), De = v(() => h.value ? "Connecting..." : Te.value === "bot_deleted" ? "This assistant was deleted" : "Send a message"), Oe = v(() => s(e.bot.state.value)), ke = v(() => {
5203
- if (tt.value || !Oe.value || Oe.value === "awake") return;
5203
+ if (K.value || !Oe.value || Oe.value === "awake") return;
5204
5204
  let t = e.bot.displayName.value || e.bot.name.value || "Your assistant";
5205
5205
  return Oe.value === "changing" ? `${t} will be right back…` : Oe.value === "stuck" ? `${t} needs attention.` : `${t} is ${i[Oe.value].toLowerCase()}.`;
5206
5206
  }), Ae = v(() => e.chatController?.composerState?.value ?? {
@@ -5218,6 +5218,7 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5218
5218
  function canCopyMessage(e) {
5219
5219
  return e.sender === "bot" && e.id !== W.value && !!e.text?.trim();
5220
5220
  }
5221
+ let Ke = v(() => [...B.value].reverse().find(canCopyMessage)?.id);
5221
5222
  async function copyMessage(t) {
5222
5223
  try {
5223
5224
  await navigator.clipboard.writeText(t.text), We.value = t.id, clearTimeout(Ge), Ge = setTimeout(() => {
@@ -5228,10 +5229,10 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5228
5229
  }
5229
5230
  }
5230
5231
  oe(() => clearTimeout(Ge));
5231
- let Ke = v(() => e.chatController?.canReportMessages ?? !1), qe = v(() => ze.value === "stop" ? "Stop reply" : Ve.value ? "Send — answered after current work" : "Send message"), Ye = v(() => Le.value && !Fe.value && !!Pe.value?.canUseBrowserRecording), Xe = v(() => Pe.value?.isActive.value ?? !1), Ze = v(() => Pe.value?.state.value.phase === "sending"), Qe = v(() => Pe.value?.elapsedLabel.value ?? "0:00"), $e = v(() => {
5232
+ let qe = v(() => e.chatController?.canReportMessages ?? !1), Ye = v(() => ze.value === "stop" ? "Stop reply" : Ve.value ? "Send — answered after current work" : "Send message"), Xe = v(() => Le.value && !Fe.value && !!Pe.value?.canUseBrowserRecording), Ze = v(() => Pe.value?.isActive.value ?? !1), Qe = v(() => Pe.value?.state.value.phase === "sending"), $e = v(() => Pe.value?.elapsedLabel.value ?? "0:00"), et = v(() => {
5232
5233
  let e = Pe.value?.state.value.phase;
5233
5234
  return e === "preparing" || e === "sending" ? Pe.value?.statusText.value ?? "Starting microphone" : dt.value ? "Release to send" : "Click mic to send";
5234
- }), et = v(() => Pe.value?.state.value.phase === "sending" ? "Sending voice message" : Xe.value ? dt.value ? "Release to send voice message" : "Stop and send voice message" : "Record voice message"), tt = M(!1), nt = M(), it = M(), at = M(), ot = 0, st = v(() => e.chatController?.canStartVoice?.value ?? !1);
5235
+ }), tt = v(() => Pe.value?.state.value.phase === "sending" ? "Sending voice message" : Ze.value ? dt.value ? "Release to send voice message" : "Stop and send voice message" : "Record voice message"), K = M(!1), rt = M(), it = M(), at = M(), ot = 0, st = v(() => e.chatController?.canStartVoice?.value ?? !1);
5235
5236
  de([() => e.bot.avatar.value?.src, st], ([e, t]) => {
5236
5237
  let n = ++ot;
5237
5238
  if (at.value = void 0, !t || !e || typeof Image > "u") return;
@@ -5240,16 +5241,16 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5240
5241
  n === ot && (at.value = e);
5241
5242
  }, r.src = e;
5242
5243
  }, { immediate: !0 });
5243
- let ct = v(() => st.value && !tt.value && !Xe.value && ze.value === "idle"), K = v(() => !p.value), q = v(() => K.value ? `Voice available when ${e.bot.displayName.value || e.bot.name.value || "the assistant"} is awake` : "Start voice conversation");
5244
+ let q = v(() => st.value && !K.value && !Ze.value && ze.value === "idle"), J = v(() => !p.value), ct = v(() => J.value ? `Voice available when ${e.bot.displayName.value || e.bot.name.value || "the assistant"} is awake` : "Start voice conversation");
5244
5245
  function startVoiceConversation() {
5245
- ct.value && !K.value && (it.value = at.value, tt.value = !0);
5246
+ q.value && !J.value && (it.value = at.value, K.value = !0);
5246
5247
  }
5247
5248
  async function endVoiceConversation() {
5248
- if (!tt.value) return;
5249
- let t = nt.value;
5250
- tt.value = !1, it.value = void 0, await re(), await t?.end(), window.matchMedia("(pointer: coarse)").matches || a.value?.focus(), await e.chatController?.refreshMessages();
5249
+ if (!K.value) return;
5250
+ let t = rt.value;
5251
+ K.value = !1, it.value = void 0, await re(), await t?.end(), window.matchMedia("(pointer: coarse)").matches || a.value?.focus(), await e.chatController?.refreshMessages();
5251
5252
  }
5252
- let J = v(() => e.variant === "light"), lt = v(() => J.value ? "bg-theme-200/70" : "bg-white/15"), ut = v(() => J.value ? "text-theme-300" : "text-white/30");
5253
+ let Y = v(() => e.variant === "light"), lt = v(() => Y.value ? "bg-theme-200/70" : "bg-white/15"), ut = v(() => Y.value ? "text-theme-300" : "text-white/30");
5253
5254
  ae(async () => {
5254
5255
  e.chatController && !p.value && await e.chatController.startTextConversation();
5255
5256
  }), oe(() => {
@@ -5277,7 +5278,7 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5277
5278
  e.isComposing || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), await sendMessage());
5278
5279
  }
5279
5280
  function focusComposer(e) {
5280
- Xe.value || Ee.value || e.target instanceof Element && e.target.closest("button, a, textarea") || a.value?.focus();
5281
+ Ze.value || Ee.value || e.target instanceof Element && e.target.closest("button, a, textarea") || a.value?.focus();
5281
5282
  }
5282
5283
  function adjustTextareaHeight() {
5283
5284
  a.value && (a.value.style.height = "auto", a.value.style.height = `${Math.min(a.value.scrollHeight, 150)}px`);
@@ -5310,7 +5311,7 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5310
5311
  e.pointerType === "touch" && dt.value && (dt.value = !1, ft = !1, finishRecording({ cancelled: !0 }));
5311
5312
  }
5312
5313
  function toggleRecording() {
5313
- Xe.value ? finishRecording({ cancelled: !1 }) : startRecording();
5314
+ Ze.value ? finishRecording({ cancelled: !1 }) : startRecording();
5314
5315
  }
5315
5316
  function onRecordClick() {
5316
5317
  if (ft) {
@@ -5350,20 +5351,20 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5350
5351
  "data-test": "messaging-root",
5351
5352
  class: O(["@container/chat relative flex h-full flex-col", B.value.length === 0 ? "min-h-0 [justify-content:safe_center] overflow-y-auto" : ""])
5352
5353
  }, [
5353
- e.showHeader && !J.value ? (j(), S("div", ea, [T(Ue, {
5354
+ e.showHeader && !Y.value ? (j(), S("div", ea, [T(Ue, {
5354
5355
  bot: e.bot,
5355
5356
  "is-online": p.value
5356
5357
  }, null, 8, ["bot", "is-online"])])) : e.showHeader ? (j(), S("div", ta, [C("div", { class: O(["flex items-center gap-3", e.centered ? "max-w-[640px] @5xl/chat:max-w-[720px] mx-auto" : ""]) }, [
5357
5358
  T(Je, {
5358
5359
  bot: e.bot,
5359
- "is-light": J.value,
5360
+ "is-light": Y.value,
5360
5361
  class: "size-10"
5361
5362
  }, null, 8, ["bot", "is-light"]),
5362
5363
  C("div", na, [C("div", ra, z(e.bot.displayName.value), 1), C("div", ia, z(e.bot.title.value || "Assistant"), 1)]),
5363
5364
  e.headerMeta ? (j(), S("span", aa, z(e.headerMeta), 1)) : x("", !0)
5364
5365
  ], 2)])) : x("", !0),
5365
5366
  T(_, { name: "voice-call" }, {
5366
- default: he(() => [tt.value ? (j(), S("div", {
5367
+ default: he(() => [K.value ? (j(), S("div", {
5367
5368
  key: 0,
5368
5369
  "data-test": "voice-call-overlay",
5369
5370
  role: "dialog",
@@ -5373,7 +5374,7 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5373
5374
  onKeydown: i[0] || (i[0] = _e((e) => endVoiceConversation(), ["esc"]))
5374
5375
  }, [T($i, {
5375
5376
  ref_key: "voiceMode",
5376
- ref: nt,
5377
+ ref: rt,
5377
5378
  bot: e.bot,
5378
5379
  "chat-controller": e.chatController,
5379
5380
  "backdrop-src": it.value,
@@ -5389,7 +5390,7 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5389
5390
  }),
5390
5391
  h.value ? (j(), S("div", {
5391
5392
  key: 2,
5392
- class: O(["py-16 flex flex-col items-center justify-center gap-2 text-sm", J.value ? "text-theme-400" : "text-theme-600"])
5393
+ class: O(["py-16 flex flex-col items-center justify-center gap-2 text-sm", Y.value ? "text-theme-400" : "text-theme-600"])
5393
5394
  }, [T(Ce, { class: "size-4" })], 2)) : e.setupHint ? (j(), S("div", {
5394
5395
  key: 3,
5395
5396
  class: O(["flex items-center justify-center gap-1.5 py-2 text-[11px]", ut.value])
@@ -5397,20 +5398,20 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5397
5398
  T(Ti, {
5398
5399
  ref_key: "chatScroller",
5399
5400
  ref: r,
5400
- inert: tt.value,
5401
- "aria-hidden": tt.value ? "true" : void 0,
5401
+ inert: K.value,
5402
+ "aria-hidden": K.value ? "true" : void 0,
5402
5403
  class: O(B.value.length === 0 ? "flex-none" : "flex-1")
5403
5404
  }, {
5404
5405
  default: he(() => [C("div", { class: O([B.value.length === 0 ? "flex flex-col items-center justify-center px-3 py-4" : e.centered ? "pt-20 pb-5 px-3 @lg/chat:px-8 space-y-2" : "pt-4 pb-[120px] px-3 @lg/chat:px-8 space-y-2", e.centered ? B.value.length === 0 ? "max-w-[900px] mx-auto w-full" : "max-w-[640px] @5xl/chat:max-w-[720px] mx-auto w-full" : ""]) }, [
5405
5406
  B.value.length === 0 && !h.value ? (j(), S("div", sa, [se(t.$slots, "empty-heading", {
5406
5407
  bot: e.bot,
5407
- isLight: J.value
5408
+ isLight: Y.value
5408
5409
  }, () => [T(Je, {
5409
5410
  bot: e.bot,
5410
- "is-light": J.value,
5411
+ "is-light": Y.value,
5411
5412
  class: "mb-4 size-20 @sm/chat:size-24"
5412
- }, null, 8, ["bot", "is-light"]), C("div", { class: O(["text-base @sm/chat:text-lg font-semibold", J.value ? "text-theme-900" : "text-white"]) }, z(e.bot.displayName.value), 3)], !0), e.emptyStateMessage === "" ? x("", !0) : (j(), S(g, { key: 0 }, [C("p", { class: O(["mt-1 text-center text-xs @sm/chat:text-sm", ut.value]) }, z(e.emptyStateMessage || "Type your message to get started."), 3), C("div", {
5413
- class: O(["inline-flex items-center gap-1.5 mt-5 px-2.5 py-1 rounded-full text-[11px]", J.value ? "bg-theme-50 border border-theme-100 text-theme-400" : "bg-white/10 border border-white/20 text-white/40"]),
5413
+ }, null, 8, ["bot", "is-light"]), C("div", { class: O(["text-base @sm/chat:text-lg font-semibold", Y.value ? "text-theme-900" : "text-white"]) }, z(e.bot.displayName.value), 3)], !0), e.emptyStateMessage === "" ? x("", !0) : (j(), S(g, { key: 0 }, [C("p", { class: O(["mt-1 text-center text-xs @sm/chat:text-sm", ut.value]) }, z(e.emptyStateMessage || "Type your message to get started."), 3), C("div", {
5414
+ class: O(["inline-flex items-center gap-1.5 mt-5 px-2.5 py-1 rounded-full text-[11px]", Y.value ? "bg-theme-50 border border-theme-100 text-theme-400" : "bg-white/10 border border-white/20 text-white/40"]),
5414
5415
  title: n.value.tooltip
5415
5416
  }, [C("i", { class: O([n.value.icon, "size-3"]) }, null, 2), C("span", null, z(n.value.label), 1)], 10, ca)], 64))])) : x("", !0),
5416
5417
  (j(!0), S(g, null, N(B.value, (t, n) => (j(), S(g, { key: t.id }, [
@@ -5424,9 +5425,9 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5424
5425
  "data-test": "messaging-message-tool-activity",
5425
5426
  "data-journal-outcome": messageWorkJournal(t)?.outcome,
5426
5427
  class: "mb-4 w-full"
5427
- }, [T(rt, {
5428
+ }, [T(nt, {
5428
5429
  model: messageWorkJournal(t),
5429
- "is-light": J.value
5430
+ "is-light": Y.value
5430
5431
  }, null, 8, ["model", "is-light"])], 8, ua)) : x("", !0),
5431
5432
  isSystemExplainerMessage(t) ? (j(), S("section", {
5432
5433
  key: 2,
@@ -5448,10 +5449,10 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5448
5449
  "aria-hidden": "true",
5449
5450
  class: O(["hidden h-px flex-1 opacity-60 @md/chat:block", lt.value])
5450
5451
  }, null, 2),
5451
- C("div", { class: O(["w-[46ch] min-w-0 max-w-full rounded-2xl px-5 py-3.5 text-center text-[13px] ring-1 [&_.chat-msg-rich]:max-w-none [&_.chat-msg-rich]:text-[13px] [&_.chat-msg-rich]:italic [&_.chat-msg-rich]:leading-[1.6]", J.value ? "text-theme-700 ring-theme-200/50" : "text-white/85 ring-white/10"]) }, [t.text ? (j(), b(Si, {
5452
+ C("div", { class: O(["w-[46ch] min-w-0 max-w-full rounded-2xl px-5 py-3.5 text-center text-[13px] ring-1 [&_.chat-msg-rich]:max-w-none [&_.chat-msg-rich]:text-[13px] [&_.chat-msg-rich]:italic [&_.chat-msg-rich]:leading-[1.6]", Y.value ? "text-theme-700 ring-theme-200/50" : "text-white/85 ring-white/10"]) }, [t.text ? (j(), b(Si, {
5452
5453
  key: 0,
5453
5454
  text: t.text,
5454
- inverted: !J.value,
5455
+ inverted: !Y.value,
5455
5456
  streaming: t.id === W.value,
5456
5457
  onClick: i[1] || (i[1] = ve(() => {}, ["stop"])),
5457
5458
  onAction: handleCardAction
@@ -5462,12 +5463,12 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5462
5463
  ])) : t.issue?.help ? (j(), b(Si, {
5463
5464
  key: 1,
5464
5465
  text: t.issue.help,
5465
- inverted: !J.value
5466
+ inverted: !Y.value
5466
5467
  }, null, 8, ["text", "inverted"])) : x("", !0), t.issue?.actionUrl && !containsMarkdownLink(t.text) ? (j(), S("a", {
5467
5468
  key: 2,
5468
5469
  href: t.issue.actionUrl,
5469
5470
  "data-test": "messaging-system-msg-action",
5470
- class: O(["mt-2 text-[12px] font-medium inline-flex items-center gap-1", J.value ? "text-theme-900 hover:text-theme-700" : "text-white hover:text-white/80"]),
5471
+ class: O(["mt-2 text-[12px] font-medium inline-flex items-center gap-1", Y.value ? "text-theme-900 hover:text-theme-700" : "text-white hover:text-white/80"]),
5471
5472
  onClick: i[2] || (i[2] = ve(() => {}, ["stop"]))
5472
5473
  }, [w(z(t.issue.actionLabel) + " ", 1), i[15] || (i[15] = C("i", { class: "i-tabler-arrow-right size-3" }, null, -1))], 10, pa)) : x("", !0)], 2),
5473
5474
  C("span", {
@@ -5486,13 +5487,13 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5486
5487
  "data-issue-code": t.issue?.code,
5487
5488
  "data-issue-bucket": t.issue?.bucket,
5488
5489
  "data-streaming": t.id === W.value ? "true" : void 0,
5489
- class: O(["mb-4 flex w-fit max-w-[85%] items-start gap-2 rounded-2xl px-3 py-2 text-[13px] leading-relaxed ring-1", J.value ? "bg-theme-100 text-theme-600 ring-theme-200" : "bg-white/10 text-white/70 ring-white/10"])
5490
+ class: O(["mb-4 flex w-fit max-w-[85%] items-start gap-2 rounded-2xl px-3 py-2 text-[13px] leading-relaxed ring-1", Y.value ? "bg-theme-100 text-theme-600 ring-theme-200" : "bg-white/10 text-white/70 ring-white/10"])
5490
5491
  }, [i[16] || (i[16] = C("i", {
5491
5492
  class: "i-tabler-info-circle size-4 mt-0.5 shrink-0",
5492
5493
  "aria-hidden": "true"
5493
5494
  }, null, -1)), T(Si, {
5494
5495
  text: t.text,
5495
- inverted: !J.value,
5496
+ inverted: !Y.value,
5496
5497
  onClick: i[3] || (i[3] = ve(() => {}, ["stop"]))
5497
5498
  }, null, 8, ["text", "inverted"])], 10, ma)) : (j(), S("div", {
5498
5499
  key: 4,
@@ -5505,7 +5506,7 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5505
5506
  "data-streaming": t.id === W.value ? "true" : void 0,
5506
5507
  "data-queued": isQueuedMessage(t.id) ? "true" : void 0,
5507
5508
  "aria-label": isQueuedMessage(t.id) ? "Sent — will be answered after the current work finishes" : void 0,
5508
- class: O(["flex gap-2 items-end", {
5509
+ class: O(["group/msg flex gap-2 items-end", {
5509
5510
  "justify-end": t.sender === "user",
5510
5511
  "justify-start": t.sender === "bot",
5511
5512
  "mb-6": isGroupEnd(B.value, n),
@@ -5539,15 +5540,15 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5539
5540
  rel: "noopener",
5540
5541
  "data-test": "messaging-attachment",
5541
5542
  "data-attachment-placement": "block",
5542
- class: O(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", J.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
5543
+ class: O(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", Y.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
5543
5544
  }, [i[17] || (i[17] = C("i", { class: "i-tabler-file size-3.5" }, null, -1)), w(" " + z(e.filename), 1)], 10, va))], 64))), 128))], 2)) : x("", !0),
5544
5545
  messageRenderParts(t).length ? (j(), S("div", {
5545
5546
  key: 1,
5546
5547
  "data-test": "messaging-message-content",
5547
- class: O(t.sender === "user" ? J.value ? "rounded-[14px] px-4 py-2.5 bg-theme-50 text-theme-900" : "rounded-[14px] px-4 py-2.5 bg-white/10 text-white" : J.value ? "text-theme-800" : "text-white/95")
5548
+ class: O(t.sender === "user" ? Y.value ? "rounded-[14px] px-4 py-2.5 bg-theme-50 text-theme-900" : "rounded-[14px] px-4 py-2.5 bg-white/10 text-white" : Y.value ? "text-theme-800" : "text-white/95")
5548
5549
  }, [(j(!0), S(g, null, N(messageRenderParts(t), (e) => (j(), S(g, { key: e.key }, [e.kind === "text" && e.text ? (j(), S("div", ya, [T(Si, {
5549
5550
  text: e.text,
5550
- inverted: t.sender === "user" || !J.value,
5551
+ inverted: t.sender === "user" || !Y.value,
5551
5552
  streaming: t.id === W.value,
5552
5553
  onClick: i[4] || (i[4] = ve(() => {}, ["stop"])),
5553
5554
  onAction: handleCardAction
@@ -5576,51 +5577,52 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5576
5577
  rel: "noopener",
5577
5578
  "data-test": "messaging-attachment",
5578
5579
  "data-attachment-placement": e.placement,
5579
- class: O(["my-2 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", J.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
5580
+ class: O(["my-2 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", Y.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
5580
5581
  }, [i[18] || (i[18] = C("i", { class: "i-tabler-file size-3.5" }, null, -1)), w(" " + z(e.attachment.filename), 1)], 10, Sa)) : x("", !0)], 64))), 128))], 2)) : x("", !0),
5581
5582
  canCopyMessage(t) ? (j(), S("div", {
5582
5583
  key: 2,
5583
5584
  "data-test": "messaging-message-actions",
5584
- class: O(["-ml-1.5 flex items-center gap-0.5 pt-0.5", J.value ? "text-theme-400" : "text-white/45"])
5585
+ "data-actions-reveal": t.id === Ke.value ? "always" : "hover",
5586
+ class: O(["-ml-1 flex items-center gap-1 pt-1 transition-opacity", [Y.value ? "text-theme-300" : "text-white/35", t.id === Ke.value ? "" : "opacity-0 group-hover/msg:opacity-100 focus-within:opacity-100 pointer-coarse:opacity-100"]])
5585
5587
  }, [C("button", {
5586
5588
  type: "button",
5587
5589
  "data-test": "messaging-message-copy",
5588
5590
  "data-copied": We.value === t.id || void 0,
5589
5591
  title: We.value === t.id ? "Copied" : "Copy",
5590
5592
  "aria-label": We.value === t.id ? "Copied" : "Copy",
5591
- class: O(["grid size-8 cursor-pointer place-items-center rounded-md transition-colors", J.value ? "hover:bg-theme-100 hover:text-theme-900" : "hover:bg-white/10 hover:text-white"]),
5593
+ class: O(["grid size-6 cursor-pointer place-items-center transition-colors", Y.value ? "hover:text-theme-800" : "hover:text-white"]),
5592
5594
  onClick: ve((e) => copyMessage(t), ["stop"])
5593
5595
  }, [C("i", {
5594
- class: O(["size-4", We.value === t.id ? "i-tabler-check" : "i-tabler-copy"]),
5596
+ class: O(["size-3.5", We.value === t.id ? "i-tabler-check" : "i-tabler-copy"]),
5595
5597
  "aria-hidden": "true"
5596
- }, null, 2)], 10, Ca), Ke.value ? (j(), S("button", {
5598
+ }, null, 2)], 10, wa), qe.value ? (j(), S("button", {
5597
5599
  key: 0,
5598
5600
  type: "button",
5599
5601
  "data-test": "messaging-message-report",
5600
5602
  title: "Report",
5601
5603
  "aria-label": "Report",
5602
- class: O(["grid size-8 cursor-pointer place-items-center rounded-md transition-colors", J.value ? "hover:bg-theme-100 hover:text-theme-900" : "hover:bg-white/10 hover:text-white"]),
5604
+ class: O(["grid size-6 cursor-pointer place-items-center transition-colors", Y.value ? "hover:text-theme-800" : "hover:text-white"]),
5603
5605
  onClick: ve((n) => e.chatController?.reportMessage(t.id), ["stop"])
5604
5606
  }, [...i[19] || (i[19] = [C("i", {
5605
- class: "i-tabler-flag size-4",
5607
+ class: "i-tabler-flag size-3.5",
5606
5608
  "aria-hidden": "true"
5607
- }, null, -1)])], 10, wa)) : x("", !0)], 2)) : x("", !0)
5609
+ }, null, -1)])], 10, Ta)) : x("", !0)], 10, Ca)) : x("", !0)
5608
5610
  ], 2)], 10, ha)),
5609
5611
  t.id === Se.value ? (j(), S(g, { key: 5 }, [E.value.length ? (j(!0), S(g, { key: 0 }, N(E.value, (e) => (j(), S(g, { key: e.id }, [e.kind === "work" ? (j(), S("div", {
5610
5612
  key: 0,
5611
5613
  "data-test": "messaging-tool-activity",
5612
5614
  "data-journal-outcome": e.journal.outcome,
5613
5615
  class: "chat-live-enter mb-4 w-full"
5614
- }, [T(rt, {
5616
+ }, [T(nt, {
5615
5617
  model: e.journal,
5616
- "is-light": J.value
5617
- }, null, 8, ["model", "is-light"])], 8, Ta)) : e.kind === "text" && e.content ? (j(), S("div", {
5618
+ "is-light": Y.value
5619
+ }, null, 8, ["model", "is-light"])], 8, Ea)) : e.kind === "text" && e.content ? (j(), S("div", {
5618
5620
  key: 1,
5619
5621
  "data-test": "messaging-live-text-block",
5620
- class: O(["mb-4", J.value ? "text-theme-800" : "text-white/95"])
5622
+ class: O(["mb-4", Y.value ? "text-theme-800" : "text-white/95"])
5621
5623
  }, [T(Si, {
5622
5624
  text: e.content,
5623
- inverted: !J.value,
5625
+ inverted: !Y.value,
5624
5626
  streaming: e.id === ie.value,
5625
5627
  onClick: i[5] || (i[5] = ve(() => {}, ["stop"])),
5626
5628
  onAction: handleCardAction
@@ -5632,7 +5634,7 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5632
5634
  key: 2,
5633
5635
  "data-test": "messaging-tool-activity-tail",
5634
5636
  "aria-label": "Assistant is still working",
5635
- class: O(["chat-live-enter mb-4 grid h-[17px] w-5 place-items-center", J.value ? "text-theme-500" : "text-white/70"])
5637
+ class: O(["chat-live-enter mb-4 grid h-[17px] w-5 place-items-center", Y.value ? "text-theme-500" : "text-white/70"])
5636
5638
  }, [...i[20] || (i[20] = [C("span", {
5637
5639
  class: "chat-dots chat-dots--mini",
5638
5640
  "aria-hidden": "true"
@@ -5645,10 +5647,10 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5645
5647
  "data-test": "messaging-tool-activity",
5646
5648
  "data-journal-outcome": ye.value.outcome,
5647
5649
  class: "chat-live-enter mb-4 w-full"
5648
- }, [T(rt, {
5650
+ }, [T(nt, {
5649
5651
  model: ye.value,
5650
- "is-light": J.value
5651
- }, null, 8, ["model", "is-light"])], 8, Ea)) : x("", !0)], 64)) : x("", !0)
5652
+ "is-light": Y.value
5653
+ }, null, 8, ["model", "is-light"])], 8, Da)) : x("", !0)], 64)) : x("", !0)
5652
5654
  ], 64))), 128)),
5653
5655
  we.value ? (j(), S("div", {
5654
5656
  key: 1,
@@ -5656,7 +5658,7 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5656
5658
  "data-working-description": le.value,
5657
5659
  role: "status",
5658
5660
  "aria-live": "polite",
5659
- class: O(["chat-live-enter relative mb-4 flex h-[17px] items-center gap-2.5 pl-0.5 text-[13.5px] leading-snug", J.value ? "text-theme-500" : "text-white/50"])
5661
+ class: O(["chat-live-enter relative mb-4 flex h-[17px] items-center gap-2.5 pl-0.5 text-[13.5px] leading-snug", Y.value ? "text-theme-500" : "text-white/50"])
5660
5662
  }, [i[21] || (i[21] = C("span", {
5661
5663
  "data-test": "messaging-thinking-dots",
5662
5664
  class: "chat-dots shrink-0",
@@ -5665,26 +5667,26 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5665
5667
  C("span"),
5666
5668
  C("span"),
5667
5669
  C("span")
5668
- ], -1)), le.value ? (j(), S("span", Oa, z(le.value), 1)) : (j(), S("span", ka, "Thinking"))], 10, Da)) : x("", !0),
5670
+ ], -1)), le.value ? (j(), S("span", ka, z(le.value), 1)) : (j(), S("span", Aa, "Thinking"))], 10, Oa)) : x("", !0),
5669
5671
  H.value ? (j(), S("div", {
5670
5672
  key: 2,
5671
5673
  "data-test": "messaging-transient-issue",
5672
5674
  "data-issue-code": H.value.code,
5673
5675
  role: "alert",
5674
- class: O(["chat-live-enter mb-4 flex items-start gap-2 px-2 text-[13px] leading-snug", J.value ? "text-theme-600" : "text-white/60"])
5676
+ class: O(["chat-live-enter mb-4 flex items-start gap-2 px-2 text-[13px] leading-snug", Y.value ? "text-theme-600" : "text-white/60"])
5675
5677
  }, [
5676
5678
  i[23] || (i[23] = C("i", {
5677
5679
  class: "i-tabler-alert-circle size-3.5 shrink-0 text-red-500",
5678
5680
  "aria-hidden": "true"
5679
5681
  }, null, -1)),
5680
- C("span", ja, [C("span", Ma, [w(z(H.value.message), 1), H.value.help ? (j(), S(g, { key: 0 }, [w(":")], 64)) : x("", !0)]), H.value.help ? (j(), S(g, { key: 0 }, [i[22] || (i[22] = w(z(" "), -1)), C("span", Na, z(H.value.help), 1)], 64)) : x("", !0)]),
5682
+ C("span", Ma, [C("span", Na, [w(z(H.value.message), 1), H.value.help ? (j(), S(g, { key: 0 }, [w(":")], 64)) : x("", !0)]), H.value.help ? (j(), S(g, { key: 0 }, [i[22] || (i[22] = w(z(" "), -1)), C("span", Pa, z(H.value.help), 1)], 64)) : x("", !0)]),
5681
5683
  H.value.actionUrl && H.value.actionLabel ? (j(), S("a", {
5682
5684
  key: 0,
5683
5685
  href: H.value.actionUrl,
5684
5686
  class: "shrink-0 underline underline-offset-2",
5685
5687
  onClick: i[6] || (i[6] = ve(() => {}, ["stop"]))
5686
- }, z(H.value.actionLabel), 9, Pa)) : x("", !0)
5687
- ], 10, Aa)) : x("", !0)
5688
+ }, z(H.value.actionLabel), 9, Fa)) : x("", !0)
5689
+ ], 10, ja)) : x("", !0)
5688
5690
  ], 2)]),
5689
5691
  _: 3
5690
5692
  }, 8, [
@@ -5694,12 +5696,12 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5694
5696
  ]),
5695
5697
  C("div", {
5696
5698
  "data-test": "messaging-composer-footer",
5697
- inert: tt.value,
5698
- "aria-hidden": tt.value ? "true" : void 0,
5699
+ inert: K.value,
5700
+ "aria-hidden": K.value ? "true" : void 0,
5699
5701
  class: O(["left-0 right-0 z-30 px-3 @lg/chat:px-8 pb-[max(env(safe-area-inset-bottom),1rem)]", [
5700
5702
  B.value.length === 0 || e.centered ? "relative shrink-0" : "absolute bottom-0",
5701
5703
  e.centered && B.value.length > 0 ? "pt-0 sm:pb-7" : "pt-3",
5702
- J.value ? e.centered ? "bg-transparent" : "bg-theme-0" : "bg-gradient-to-t from-black/90 via-black/60 to-transparent"
5704
+ Y.value ? e.centered ? "bg-transparent" : "bg-theme-0" : "bg-gradient-to-t from-black/90 via-black/60 to-transparent"
5703
5705
  ]])
5704
5706
  }, [se(t.$slots, "composer", {}, () => [ke.value ? (j(), S("div", {
5705
5707
  key: 0,
@@ -5707,8 +5709,8 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5707
5709
  "data-seat-state": Oe.value,
5708
5710
  role: "status",
5709
5711
  "aria-live": "polite",
5710
- class: O(["py-3 text-center text-[14px]", J.value ? "text-theme-500" : "text-white/70"])
5711
- }, z(ke.value), 11, Ia)) : (j(), S(g, { key: 1 }, [
5712
+ class: O(["py-3 text-center text-[14px]", Y.value ? "text-theme-500" : "text-white/70"])
5713
+ }, z(ke.value), 11, La)) : (j(), S(g, { key: 1 }, [
5712
5714
  Me.value.length > 0 ? (j(), S("div", {
5713
5715
  key: 0,
5714
5716
  class: O(["flex items-center gap-2 px-2 pb-2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", e.centered ? "max-w-[640px] @5xl/chat:max-w-[720px] mx-auto" : ""])
@@ -5719,14 +5721,14 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5719
5721
  key: 0,
5720
5722
  src: e.src,
5721
5723
  alt: e.filename,
5722
- class: O(["size-14 rounded-xl object-cover border", J.value ? "border-black/10" : "border-white/20"])
5723
- }, null, 10, La)) : (j(), S("div", {
5724
+ class: O(["size-14 rounded-xl object-cover border", Y.value ? "border-black/10" : "border-white/20"])
5725
+ }, null, 10, Ra)) : (j(), S("div", {
5724
5726
  key: 1,
5725
- class: O(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", J.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
5726
- }, [i[24] || (i[24] = C("i", { class: "i-tabler-file size-4" }, null, -1)), C("span", Ra, z(e.filename), 1)], 2)), C("button", {
5727
+ class: O(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", Y.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
5728
+ }, [i[24] || (i[24] = C("i", { class: "i-tabler-file size-4" }, null, -1)), C("span", za, z(e.filename), 1)], 2)), C("button", {
5727
5729
  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 duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] cursor-pointer",
5728
5730
  onClick: (e) => removeAttachment(t)
5729
- }, [...i[25] || (i[25] = [C("i", { class: "i-tabler-x size-3" }, null, -1)])], 8, za)]))), 128)), Ne.value ? (j(), S("div", Ba, [T(Ce, { class: "size-5" })])) : x("", !0)], 2)) : x("", !0),
5731
+ }, [...i[25] || (i[25] = [C("i", { class: "i-tabler-x size-3" }, null, -1)])], 8, Ba)]))), 128)), Ne.value ? (j(), S("div", Va, [T(Ce, { class: "size-5" })])) : x("", !0)], 2)) : x("", !0),
5730
5732
  Ie.value ? (j(), S("input", {
5731
5733
  key: 1,
5732
5734
  ref_key: "fileInput",
@@ -5739,16 +5741,16 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5739
5741
  C("div", {
5740
5742
  "data-test": "messaging-composer",
5741
5743
  "data-composer-action": ze.value,
5742
- class: O(["w-full cursor-text rounded-2xl px-4 pb-2.5 pt-4 transition-colors duration-200", [e.centered ? "mx-auto max-w-[640px] @5xl/chat:max-w-[740px] @5xl/chat:px-5 @5xl/chat:pt-3.5 @5xl/chat:pb-3" : "", J.value ? "bg-white shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_32px_rgba(15,23,42,0.07)] ring-1 ring-theme-950/20 hover:ring-theme-950/30 focus-within:ring-theme-950/30" : "bg-white/10 backdrop-blur-xl ring-1 ring-white/15 hover:ring-white/25 focus-within:bg-white/15 focus-within:ring-white/25"]]),
5744
+ class: O(["w-full cursor-text rounded-2xl px-4 pb-2.5 pt-4 transition-colors duration-200", [e.centered ? "mx-auto max-w-[640px] @5xl/chat:max-w-[740px] @5xl/chat:px-5 @5xl/chat:pt-3.5 @5xl/chat:pb-3" : "", Y.value ? "bg-white shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_32px_rgba(15,23,42,0.07)] ring-1 ring-theme-950/20 hover:ring-theme-950/30 focus-within:ring-theme-950/30" : "bg-white/10 backdrop-blur-xl ring-1 ring-white/15 hover:ring-white/25 focus-within:bg-white/15 focus-within:ring-white/25"]]),
5743
5745
  onClick: focusComposer
5744
- }, [Xe.value ? (j(), S("div", {
5746
+ }, [Ze.value ? (j(), S("div", {
5745
5747
  key: 1,
5746
5748
  "data-test": "messaging-recording-state",
5747
- class: O(["flex min-w-0 items-center gap-2 py-1", J.value ? "text-theme-700" : "text-white/80"])
5749
+ class: O(["flex min-w-0 items-center gap-2 py-1", Y.value ? "text-theme-700" : "text-white/80"])
5748
5750
  }, [
5749
5751
  i[26] || (i[26] = C("span", { class: "size-2.5 shrink-0 rounded-full bg-red-500" }, null, -1)),
5750
- C("span", Ua, z(Qe.value), 1),
5751
- C("span", { class: O(["min-w-0 truncate text-sm", J.value ? "text-theme-400" : "text-white/45"]) }, z($e.value), 3)
5752
+ C("span", Wa, z($e.value), 1),
5753
+ C("span", { class: O(["min-w-0 truncate text-sm", Y.value ? "text-theme-400" : "text-white/45"]) }, z(et.value), 3)
5752
5754
  ], 2)) : ge((j(), S("textarea", {
5753
5755
  key: 0,
5754
5756
  ref_key: "textarea",
@@ -5768,26 +5770,26 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5768
5770
  fontSize: "16px",
5769
5771
  resize: "none"
5770
5772
  },
5771
- class: O(["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", J.value ? "text-theme-900 placeholder-theme-400" : "text-white placeholder-white/50"]),
5773
+ class: O(["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", Y.value ? "text-theme-900 placeholder-theme-400" : "text-white placeholder-white/50"]),
5772
5774
  onKeydown: handleKeydown
5773
- }, null, 42, Ha)), [[ue, je.value]]), C("div", Wa, [
5775
+ }, null, 42, Ua)), [[ue, je.value]]), C("div", Ga, [
5774
5776
  C("button", {
5775
5777
  class: O(["-ml-2 flex size-8 items-center justify-center transition-opacity hover:opacity-70 pointer-coarse:size-11", [
5776
5778
  Ie.value ? "cursor-pointer" : "cursor-default",
5777
- J.value ? "text-theme-500" : "text-white/50",
5779
+ Y.value ? "text-theme-500" : "text-white/50",
5778
5780
  Ne.value || Fe.value ? "opacity-50 pointer-events-none" : ""
5779
5781
  ]]),
5780
5782
  disabled: Ee.value || Ne.value || Fe.value || !Ie.value,
5781
5783
  "aria-label": Ie.value ? "Attach file" : "File attachments unavailable",
5782
5784
  title: Ie.value ? "Attach file" : "File attachments unavailable",
5783
5785
  onClick: i[8] || (i[8] = (e) => Ie.value && triggerFileInput())
5784
- }, [Ne.value ? (j(), S("i", Ka)) : (j(), S("i", qa)), C("span", Ja, z(Ie.value ? "Attach file" : "File attachments unavailable"), 1)], 10, Ga),
5786
+ }, [Ne.value ? (j(), S("i", qa)) : (j(), S("i", Ja)), C("span", Ya, z(Ie.value ? "Attach file" : "File attachments unavailable"), 1)], 10, Ka),
5785
5787
  i[30] || (i[30] = C("div", { class: "flex-1" }, null, -1)),
5786
- C("div", Ya, [
5787
- Xe.value && !Ze.value && !tt.value ? (j(), S("button", {
5788
+ C("div", Xa, [
5789
+ Ze.value && !Qe.value && !K.value ? (j(), S("button", {
5788
5790
  key: 0,
5789
5791
  "data-test": "messaging-record-discard-btn",
5790
- class: O(["flex size-8 cursor-pointer items-center justify-center transition-opacity hover:opacity-70 pointer-coarse:size-11", J.value ? "text-theme-400" : "text-white/40"]),
5792
+ class: O(["flex size-8 cursor-pointer items-center justify-center transition-opacity hover:opacity-70 pointer-coarse:size-11", Y.value ? "text-theme-400" : "text-white/40"]),
5791
5793
  "aria-label": "Discard recording",
5792
5794
  title: "Discard recording",
5793
5795
  onClick: i[9] || (i[9] = (e) => finishRecording({ cancelled: !0 }))
@@ -5795,27 +5797,27 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5795
5797
  class: "i-tabler-x size-[18px]",
5796
5798
  "aria-hidden": "true"
5797
5799
  }, null, -1)])], 2)) : x("", !0),
5798
- (Ye.value || Xe.value) && !Ze.value && !tt.value ? (j(), S("button", {
5800
+ (Xe.value || Ze.value) && !Qe.value && !K.value ? (j(), S("button", {
5799
5801
  key: 1,
5800
5802
  "data-test": "messaging-record-audio-btn",
5801
- class: O(["flex size-8 cursor-pointer items-center justify-center transition-[opacity,transform] duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] hover:opacity-70 pointer-coarse:size-11", Xe.value ? J.value ? "text-theme-900 scale-110" : "text-white scale-110" : J.value ? "text-theme-500" : "text-white/60"]),
5802
- "aria-label": et.value,
5803
- title: et.value,
5803
+ class: O(["flex size-8 cursor-pointer items-center justify-center transition-[opacity,transform] duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] hover:opacity-70 pointer-coarse:size-11", Ze.value ? Y.value ? "text-theme-900 scale-110" : "text-white scale-110" : Y.value ? "text-theme-500" : "text-white/60"]),
5804
+ "aria-label": tt.value,
5805
+ title: tt.value,
5804
5806
  onPointerdown: ve(onRecordPointerDown, ["prevent"]),
5805
5807
  onPointerup: ve(onRecordPointerUp, ["prevent"]),
5806
5808
  onPointercancel: ve(onRecordPointerCancel, ["prevent"]),
5807
5809
  onClick: onRecordClick,
5808
5810
  onKeydown: i[10] || (i[10] = _e(ve((e) => finishRecording({ cancelled: !0 }), ["prevent"]), ["escape"]))
5809
- }, [C("i", { class: O([Xe.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), C("span", Za, z(et.value), 1)], 42, Xa)) : x("", !0),
5810
- ct.value ? (j(), S("button", {
5811
+ }, [C("i", { class: O([Ze.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), C("span", Qa, z(tt.value), 1)], 42, Za)) : x("", !0),
5812
+ q.value ? (j(), S("button", {
5811
5813
  key: 2,
5812
5814
  "data-test": "messaging-voice-start-btn",
5813
- class: O(["flex size-8 items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", [J.value ? "bg-theme-900 text-theme-0 hover:bg-theme-800" : "bg-theme-0 text-theme-950 hover:bg-theme-100", K.value ? "cursor-not-allowed opacity-40" : "cursor-pointer"]]),
5814
- disabled: K.value,
5815
- "aria-label": q.value,
5816
- title: q.value,
5815
+ class: O(["flex size-8 items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", [Y.value ? "bg-theme-900 text-theme-0 hover:bg-theme-800" : "bg-theme-0 text-theme-950 hover:bg-theme-100", J.value ? "cursor-not-allowed opacity-40" : "cursor-pointer"]]),
5816
+ disabled: J.value,
5817
+ "aria-label": ct.value,
5818
+ title: ct.value,
5817
5819
  onClick: i[11] || (i[11] = (e) => startVoiceConversation())
5818
- }, [C("span", $a, [(j(), S(g, null, N([
5820
+ }, [C("span", eo, [(j(), S(g, null, N([
5819
5821
  7,
5820
5822
  13,
5821
5823
  16,
@@ -5825,10 +5827,10 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5825
5827
  key: e,
5826
5828
  class: "w-[2px] rounded-full bg-current",
5827
5829
  style: k({ height: `${e}px` })
5828
- }, null, 4)), 64))]), i[28] || (i[28] = C("span", { class: "sr-only" }, "Start voice conversation", -1))], 10, Qa)) : Xe.value ? x("", !0) : (j(), S(g, { key: 3 }, [Ve.value ? (j(), S("button", {
5830
+ }, null, 4)), 64))]), i[28] || (i[28] = C("span", { class: "sr-only" }, "Start voice conversation", -1))], 10, $a)) : Ze.value ? x("", !0) : (j(), S(g, { key: 3 }, [Ve.value ? (j(), S("button", {
5829
5831
  key: 0,
5830
5832
  "data-test": "messaging-secondary-stop-btn",
5831
- class: O(["mr-2 flex size-8 cursor-pointer items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", J.value ? "bg-theme-100 text-theme-700 hover:bg-theme-200" : "bg-white/10 text-white/70 hover:bg-white/15"]),
5833
+ class: O(["mr-2 flex size-8 cursor-pointer items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", Y.value ? "bg-theme-100 text-theme-700 hover:bg-theme-200" : "bg-white/10 text-white/70 hover:bg-white/15"]),
5832
5834
  "aria-label": "Stop work",
5833
5835
  title: "Stop work",
5834
5836
  onClick: i[12] || (i[12] = (t) => e.chatController?.stopChatTurn())
@@ -5838,28 +5840,28 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5838
5840
  }, null, -1), C("span", { class: "sr-only" }, "Stop work", -1)])], 2)) : x("", !0), C("button", {
5839
5841
  "data-test": "messaging-send-btn",
5840
5842
  "data-composer-action": ze.value,
5841
- class: O(["flex size-8 items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", Be.value ? J.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" : J.value ? "bg-theme-100 text-theme-400" : "bg-white/10 text-white/30"]),
5843
+ class: O(["flex size-8 items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", Be.value ? Y.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" : Y.value ? "bg-theme-100 text-theme-400" : "bg-white/10 text-white/30"]),
5842
5844
  disabled: !Be.value,
5843
- "aria-label": qe.value,
5844
- title: qe.value,
5845
+ "aria-label": Ye.value,
5846
+ title: Ye.value,
5845
5847
  onClick: i[13] || (i[13] = (e) => handleComposerAction())
5846
- }, [ze.value === "stop" ? (j(), S("i", to)) : (j(), S("i", no)), C("span", ro, z(qe.value), 1)], 10, eo)], 64))
5848
+ }, [ze.value === "stop" ? (j(), S("i", no)) : (j(), S("i", ro)), C("span", io, z(Ye.value), 1)], 10, to)], 64))
5847
5849
  ])
5848
- ])], 10, Va),
5849
- e.centered && B.value.length > 0 ? (j(), S("p", io, z(e.bot.displayName.value) + " is AI and can make mistakes. ", 1)) : x("", !0)
5850
- ], 64))], !0)], 10, Fa)
5850
+ ])], 10, Ha),
5851
+ e.centered && B.value.length > 0 ? (j(), S("p", ao, z(e.bot.displayName.value) + " is AI and can make mistakes. ", 1)) : x("", !0)
5852
+ ], 64))], !0)], 10, Ia)
5851
5853
  ], 2));
5852
5854
  }
5853
- }), [["__scopeId", "data-v-05d471e7"]]), oo = { class: "bot-wrap" }, so = {
5855
+ }), [["__scopeId", "data-v-ad1f5fe0"]]), so = { class: "bot-wrap" }, co = {
5854
5856
  key: 0,
5855
5857
  class: "flex items-center justify-center h-full"
5856
- }, co = {
5858
+ }, lo = {
5857
5859
  key: 2,
5858
5860
  class: "flex h-full flex-col items-center justify-center gap-4 px-6 text-center",
5859
5861
  role: "status",
5860
5862
  "aria-live": "polite",
5861
5863
  "data-test": "bot-unavailable"
5862
- }, lo = /* @__PURE__ */ E({
5864
+ }, uo = /* @__PURE__ */ E({
5863
5865
  __name: "BotWrap",
5864
5866
  props: {
5865
5867
  sdk: {},
@@ -5955,7 +5957,7 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5955
5957
  });
5956
5958
  }
5957
5959
  }
5958
- return ae(loadBot), (t, n) => (j(), S("div", oo, [a.value ? (j(), S("div", so, [C("div", { class: O(["size-6 animate-spin rounded-full border-b-2", r.bare ? "border-theme-400" : "border-white"]) }, null, 2)])) : s.value ? se(t.$slots, "default", {
5960
+ return ae(loadBot), (t, n) => (j(), S("div", so, [a.value ? (j(), S("div", co, [C("div", { class: O(["size-6 animate-spin rounded-full border-b-2", r.bare ? "border-theme-400" : "border-white"]) }, null, 2)])) : s.value ? se(t.$slots, "default", {
5959
5961
  sdk: B(i),
5960
5962
  bot: s.value,
5961
5963
  context: e.clientContext ?? e.context,
@@ -5963,7 +5965,7 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5963
5965
  buttonText: e.buttonText,
5964
5966
  buttonIcon: e.buttonIcon,
5965
5967
  loading: a.value
5966
- }, void 0, void 0, 1) : c.value ? (j(), S("div", co, [n[0] || (n[0] = C("p", { class: "text-sm font-medium text-theme-600" }, " This assistant is unavailable right now. ", -1)), C("button", {
5968
+ }, void 0, void 0, 1) : c.value ? (j(), S("div", lo, [n[0] || (n[0] = C("p", { class: "text-sm font-medium text-theme-600" }, " This assistant is unavailable right now. ", -1)), C("button", {
5967
5969
  type: "button",
5968
5970
  class: "min-h-11 rounded-full bg-theme-900 px-5 text-sm font-semibold text-theme-0 transition-colors hover:bg-theme-700",
5969
5971
  "data-test": "bot-unavailable-retry",
@@ -5972,6 +5974,6 @@ var Hi = ["data-voice-state", "data-voice-activity"], Ui = ["src"], Wi = {
5972
5974
  }
5973
5975
  });
5974
5976
  //#endregion
5975
- export { Ue as a, Me as c, parseButtonTemplate as d, BotChatController as f, Si as i, getBotAvatarUrl as l, ye as m, ao as n, Ie as o, Ce as p, $i as r, Pe as s, lo as t, handleImageError as u };
5977
+ export { Ue as a, Me as c, parseButtonTemplate as d, BotChatController as f, Si as i, getBotAvatarUrl as l, ye as m, oo as n, Ie as o, Ce as p, $i as r, Pe as s, uo as t, handleImageError as u };
5976
5978
 
5977
5979
  //# sourceMappingURL=BotWrap.js.map