juneau 0.7.0 → 0.7.2

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { useState as Re, useRef as qe, useEffect as St, useCallback as de, useMemo as Ir, useContext as sn, createContext as Tr } from "react";
2
- import { jsx as b, jsxs as Q, Fragment as un } from "react/jsx-runtime";
1
+ import { useState as Me, useRef as qe, useEffect as St, useCallback as de, useMemo as Ir, useContext as sn, createContext as Tr } from "react";
2
+ import { jsx as b, jsxs as Y, Fragment as un } from "react/jsx-runtime";
3
3
  function Ji(e) {
4
4
  return e.map((n) => n.role !== "assistant" || n.parts.some((t) => t.type === "text") ? n : { ...n, parts: [{ type: "text", text: "" }] });
5
5
  }
@@ -15,7 +15,7 @@ function zr(e) {
15
15
  return e.type === "proposal";
16
16
  }
17
17
  const Zi = 1;
18
- function Uh(e) {
18
+ function Xh(e) {
19
19
  return e.map((n) => ({
20
20
  ...n,
21
21
  v: Zi,
@@ -26,7 +26,7 @@ function Uh(e) {
26
26
  function el(e) {
27
27
  return zr(e) && !e.proposal.resolved ? { ...e, proposal: { ...e.proposal, resolved: "expired" } } : e;
28
28
  }
29
- function qh(e) {
29
+ function Gh(e) {
30
30
  return e.map(({ v: n, ...t }) => ({
31
31
  ...t,
32
32
  createdAt: new Date(t.createdAt)
@@ -39,10 +39,10 @@ function tl(e, n) {
39
39
  t++;
40
40
  return e.slice(t);
41
41
  }
42
- function Wh(e, n) {
43
- return n <= 0 || e.length <= n ? [...e].sort(Mn) : [...e].sort(Mn).slice(0, n);
42
+ function Jh(e, n) {
43
+ return n <= 0 || e.length <= n ? [...e].sort(Rn) : [...e].sort(Rn).slice(0, n);
44
44
  }
45
- const Mn = (e, n) => n.updatedAt.getTime() - e.updatedAt.getTime(), Qh = {
45
+ const Rn = (e, n) => n.updatedAt.getTime() - e.updatedAt.getTime(), Kh = {
46
46
  async *sendMessage(e) {
47
47
  const n = [...e.messages].reverse().find((r) => r.role === "user"), t = n ? Ki(n).toLowerCase() : "";
48
48
  t.includes("activity") || t.includes("progress") || t.includes("document") || t.includes("dokument") ? yield* nl() : t.includes("table") || t.includes("data") || t.includes("list") || t.includes("show") ? yield* rl() : t.includes("proposal") || t.includes("suggest") || t.includes("recommend") ? yield* il() : t.includes("entity") || t.includes("card") || t.includes("detail") || t.includes("find") ? yield* ll() : t.includes("help") || t.includes("what can") || t.includes("how do") ? yield* ol() : t.includes("error") || t.includes("fail") || t.includes("break") ? yield* al() : yield* sl(t);
@@ -240,7 +240,7 @@ function Pr(e) {
240
240
  return [];
241
241
  }
242
242
  }
243
- function Yh(e, n = {}) {
243
+ function Zh(e, n = {}) {
244
244
  const {
245
245
  method: t = "POST",
246
246
  headers: r = {},
@@ -319,7 +319,7 @@ const cl = (e) => {
319
319
  return [];
320
320
  }
321
321
  };
322
- function Xh(e, n = {}) {
322
+ function ed(e, n = {}) {
323
323
  const {
324
324
  method: t = "POST",
325
325
  headers: r = {},
@@ -387,7 +387,7 @@ const pl = (e) => {
387
387
  return n.length > 0 ? n : e ? [{ type: "text", text: e }] : [];
388
388
  };
389
389
  let hl = 0;
390
- const dt = () => `msg-${++hl}-${Date.now()}`, Rn = Ji;
390
+ const dt = () => `msg-${++hl}-${Date.now()}`, Mn = Ji;
391
391
  function dl({
392
392
  adapter: e,
393
393
  context: n,
@@ -397,49 +397,49 @@ function dl({
397
397
  historyLimit: o,
398
398
  onMessagesChange: l
399
399
  }) {
400
- const [a, s] = Re(i ?? []), [u, f] = Re(""), [c, h] = Re(!1), [p, g] = Re(!1), [C, S] = Re(null), y = qe(null), A = qe(!1), _ = qe(l);
400
+ const [a, s] = Me(i ?? []), [u, f] = Me(""), [c, h] = Me(!1), [p, g] = Me(!1), [C, S] = Me(null), y = qe(null), A = qe(!1), _ = qe(l);
401
401
  St(() => {
402
402
  _.current = l;
403
403
  }), St(() => {
404
404
  !A.current || c || (A.current = !1, _.current?.(a));
405
405
  }, [a, c]);
406
406
  const L = de((v) => {
407
- s((M) => {
408
- const B = M[M.length - 1];
409
- if (!B || B.role !== "assistant") return M;
407
+ s((R) => {
408
+ const B = R[R.length - 1];
409
+ if (!B || B.role !== "assistant") return R;
410
410
  if (v.type === "activity" && v.id) {
411
- const Y = [...B.parts], W = Y.findIndex(
411
+ const Q = [...B.parts], W = Q.findIndex(
412
412
  (d) => d.type === "activity" && d.id === v.id
413
413
  );
414
414
  if (W !== -1)
415
- return Y[W] = v, [...M.slice(0, -1), { ...B, parts: Y }];
415
+ return Q[W] = v, [...R.slice(0, -1), { ...B, parts: Q }];
416
416
  }
417
417
  return [
418
- ...M.slice(0, -1),
418
+ ...R.slice(0, -1),
419
419
  { ...B, parts: [...B.parts, v] }
420
420
  ];
421
421
  });
422
422
  }, []), N = de((v) => {
423
- s((M) => {
424
- const B = M[M.length - 1];
425
- if (!B || B.role !== "assistant") return M;
426
- const Y = [...B.parts], W = Y[Y.length - 1];
427
- return W?.type === "text" ? Y[Y.length - 1] = { type: "text", text: W.text + v } : Y.push({ type: "text", text: v }), [...M.slice(0, -1), { ...B, parts: Y }];
423
+ s((R) => {
424
+ const B = R[R.length - 1];
425
+ if (!B || B.role !== "assistant") return R;
426
+ const Q = [...B.parts], W = Q[Q.length - 1];
427
+ return W?.type === "text" ? Q[Q.length - 1] = { type: "text", text: W.text + v } : Q.push({ type: "text", text: v }), [...R.slice(0, -1), { ...B, parts: Q }];
428
428
  });
429
- }, []), x = de(async (v, M) => {
429
+ }, []), x = de(async (v, R) => {
430
430
  S(null);
431
431
  const B = {
432
432
  id: dt(),
433
433
  role: "user",
434
434
  parts: [{ type: "text", text: v }],
435
435
  createdAt: /* @__PURE__ */ new Date()
436
- }, Y = dt();
436
+ }, Q = dt();
437
437
  let W = !1;
438
438
  const d = () => {
439
439
  if (W) return;
440
440
  W = !0;
441
441
  const te = {
442
- id: Y,
442
+ id: Q,
443
443
  role: "assistant",
444
444
  parts: [],
445
445
  createdAt: /* @__PURE__ */ new Date()
@@ -451,9 +451,9 @@ function dl({
451
451
  y.current = se;
452
452
  try {
453
453
  const te = tl(
454
- [...M, B],
454
+ [...R, B],
455
455
  o ?? Number.POSITIVE_INFINITY
456
- ), m = e.sendMessage({ messages: Rn(te), context: n });
456
+ ), m = e.sendMessage({ messages: Mn(te), context: n });
457
457
  await Nn(
458
458
  m,
459
459
  (ne) => {
@@ -487,23 +487,23 @@ function dl({
487
487
  }, [c, a, x]), H = de(async (v) => {
488
488
  if (c) return;
489
489
  S(null), h(!0), g(!0);
490
- const M = {
490
+ const R = {
491
491
  id: dt(),
492
492
  role: "assistant",
493
493
  parts: [],
494
494
  createdAt: /* @__PURE__ */ new Date()
495
495
  };
496
- s((W) => [...W, M]), y.current?.abort();
496
+ s((W) => [...W, R]), y.current?.abort();
497
497
  const B = new AbortController();
498
498
  y.current = B;
499
- const Y = {
499
+ const Q = {
500
500
  id: dt(),
501
501
  role: "system",
502
502
  parts: [{ type: "text", text: v }],
503
503
  createdAt: /* @__PURE__ */ new Date()
504
504
  };
505
505
  try {
506
- const W = e.sendMessage({ messages: Rn([Y]), context: n });
506
+ const W = e.sendMessage({ messages: Mn([Q]), context: n });
507
507
  await Nn(
508
508
  W,
509
509
  (d) => {
@@ -533,15 +533,15 @@ function dl({
533
533
  y.current?.abort(), h(!1), g(!1);
534
534
  }, []), T = de((v) => {
535
535
  y.current?.abort(), A.current = !0, s(v ?? []), f(""), S(null), h(!1), g(!1);
536
- }, []), z = de((v, M) => {
537
- A.current = !0, s((B) => B.map((Y) => ({
538
- ...Y,
539
- parts: Y.parts.map(
540
- (W) => zr(W) && W.proposal.id === v ? { ...W, proposal: { ...W.proposal, resolved: M } } : W
536
+ }, []), z = de((v, R) => {
537
+ A.current = !0, s((B) => B.map((Q) => ({
538
+ ...Q,
539
+ parts: Q.parts.map(
540
+ (W) => zr(W) && W.proposal.id === v ? { ...W, proposal: { ...W.proposal, resolved: R } } : W
541
541
  )
542
542
  })));
543
- }, []), q = de((v, M) => {
544
- z(v, "confirmed"), t?.(v, M);
543
+ }, []), q = de((v, R) => {
544
+ z(v, "confirmed"), t?.(v, R);
545
545
  }, [t, z]), P = de((v) => {
546
546
  z(v, "cancelled"), r?.(v);
547
547
  }, [r, z]);
@@ -602,13 +602,13 @@ const Lr = {
602
602
  historyEmpty: "No previous chats",
603
603
  historyDeleteChat: "Delete chat"
604
604
  }, Dr = Tr(Lr);
605
- function Ie() {
605
+ function Te() {
606
606
  return sn(Dr);
607
607
  }
608
608
  const ml = "_root_1etc2_1", gl = {
609
609
  root: ml
610
610
  };
611
- function Gh({ children: e, theme: n, labels: t, defaultTitle: r, className: i, style: o }) {
611
+ function td({ children: e, theme: n, labels: t, defaultTitle: r, className: i, style: o }) {
612
612
  const l = {
613
613
  ...Lr,
614
614
  ...r ? { sidebarTitle: r } : {},
@@ -662,10 +662,10 @@ function kl() {
662
662
  );
663
663
  return e;
664
664
  }
665
- function Jh() {
665
+ function nd() {
666
666
  return sn(cn);
667
667
  }
668
- function Kh({
668
+ function rd({
669
669
  adapter: e,
670
670
  context: n,
671
671
  onProposalConfirm: t,
@@ -675,7 +675,7 @@ function Kh({
675
675
  onMessagesChange: l,
676
676
  children: a
677
677
  }) {
678
- const [s, u] = Re(n), f = de((p) => {
678
+ const [s, u] = Me(n), f = de((p) => {
679
679
  u(typeof p == "function" ? (g) => p(g) : p);
680
680
  }, []), c = dl({
681
681
  adapter: e,
@@ -691,7 +691,7 @@ function Kh({
691
691
  );
692
692
  return /* @__PURE__ */ b(cn.Provider, { value: h, children: a });
693
693
  }
694
- const Zh = {
694
+ const id = {
695
695
  sidebarTitle: "AI Asistent",
696
696
  clearConversation: "Vymazat konverzaci",
697
697
  resetConversation: "Resetovat konverzaci",
@@ -914,7 +914,7 @@ class ct {
914
914
  ct.prototype.normal = {};
915
915
  ct.prototype.property = {};
916
916
  ct.prototype.space = void 0;
917
- function Mr(e, n) {
917
+ function Rr(e, n) {
918
918
  const t = {}, r = {};
919
919
  for (const i of e)
920
920
  Object.assign(t, i.property), Object.assign(r, i.normal);
@@ -949,13 +949,13 @@ ce.prototype.property = "";
949
949
  ce.prototype.spaceSeparated = !1;
950
950
  ce.prototype.space = void 0;
951
951
  let Nl = 0;
952
- const R = Be(), Z = Be(), Jt = Be(), E = Be(), G = Be(), Fe = Be(), pe = Be();
952
+ const M = Be(), Z = Be(), Jt = Be(), E = Be(), G = Be(), Fe = Be(), pe = Be();
953
953
  function Be() {
954
954
  return 2 ** ++Nl;
955
955
  }
956
956
  const Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
957
957
  __proto__: null,
958
- boolean: R,
958
+ boolean: M,
959
959
  booleanish: Z,
960
960
  commaOrSpaceSeparated: pe,
961
961
  commaSeparated: Fe,
@@ -993,7 +993,7 @@ fn.prototype.defined = !0;
993
993
  function Bn(e, n, t) {
994
994
  t && (e[n] = t);
995
995
  }
996
- function Qe(e) {
996
+ function Ye(e) {
997
997
  const n = {}, t = {};
998
998
  for (const [r, i] of Object.entries(e.properties)) {
999
999
  const o = new fn(
@@ -1006,7 +1006,7 @@ function Qe(e) {
1006
1006
  }
1007
1007
  return new ct(n, t, e.space);
1008
1008
  }
1009
- const Rr = Qe({
1009
+ const Mr = Ye({
1010
1010
  properties: {
1011
1011
  ariaActiveDescendant: null,
1012
1012
  ariaAtomic: Z,
@@ -1068,7 +1068,7 @@ function Fr(e, n) {
1068
1068
  function Or(e, n) {
1069
1069
  return Fr(e, n.toLowerCase());
1070
1070
  }
1071
- const Ml = Qe({
1071
+ const Rl = Ye({
1072
1072
  attributes: {
1073
1073
  acceptcharset: "accept-charset",
1074
1074
  classname: "class",
@@ -1084,21 +1084,21 @@ const Ml = Qe({
1084
1084
  accessKey: G,
1085
1085
  action: null,
1086
1086
  allow: null,
1087
- allowFullScreen: R,
1088
- allowPaymentRequest: R,
1089
- allowUserMedia: R,
1090
- alpha: R,
1087
+ allowFullScreen: M,
1088
+ allowPaymentRequest: M,
1089
+ allowUserMedia: M,
1090
+ alpha: M,
1091
1091
  alt: null,
1092
1092
  as: null,
1093
- async: R,
1093
+ async: M,
1094
1094
  autoCapitalize: null,
1095
1095
  autoComplete: G,
1096
- autoFocus: R,
1097
- autoPlay: R,
1096
+ autoFocus: M,
1097
+ autoPlay: M,
1098
1098
  blocking: G,
1099
1099
  capture: null,
1100
1100
  charSet: null,
1101
- checked: R,
1101
+ checked: M,
1102
1102
  cite: null,
1103
1103
  className: G,
1104
1104
  closedBy: null,
@@ -1109,18 +1109,18 @@ const Ml = Qe({
1109
1109
  commandFor: null,
1110
1110
  content: null,
1111
1111
  contentEditable: Z,
1112
- controls: R,
1112
+ controls: M,
1113
1113
  controlsList: G,
1114
1114
  coords: E | Fe,
1115
1115
  crossOrigin: null,
1116
1116
  data: null,
1117
1117
  dateTime: null,
1118
1118
  decoding: null,
1119
- default: R,
1120
- defer: R,
1119
+ default: M,
1120
+ defer: M,
1121
1121
  dir: null,
1122
1122
  dirName: null,
1123
- disabled: R,
1123
+ disabled: M,
1124
1124
  download: Jt,
1125
1125
  draggable: Z,
1126
1126
  encType: null,
@@ -1130,7 +1130,7 @@ const Ml = Qe({
1130
1130
  formAction: null,
1131
1131
  formEncType: null,
1132
1132
  formMethod: null,
1133
- formNoValidate: R,
1133
+ formNoValidate: M,
1134
1134
  formTarget: null,
1135
1135
  headers: G,
1136
1136
  height: E,
@@ -1143,15 +1143,15 @@ const Ml = Qe({
1143
1143
  id: null,
1144
1144
  imageSizes: null,
1145
1145
  imageSrcSet: null,
1146
- inert: R,
1146
+ inert: M,
1147
1147
  inputMode: null,
1148
1148
  integrity: null,
1149
1149
  is: null,
1150
- isMap: R,
1150
+ isMap: M,
1151
1151
  itemId: null,
1152
1152
  itemProp: G,
1153
1153
  itemRef: G,
1154
- itemScope: R,
1154
+ itemScope: M,
1155
1155
  itemType: G,
1156
1156
  kind: null,
1157
1157
  label: null,
@@ -1159,7 +1159,7 @@ const Ml = Qe({
1159
1159
  language: null,
1160
1160
  list: null,
1161
1161
  loading: null,
1162
- loop: R,
1162
+ loop: M,
1163
1163
  low: E,
1164
1164
  manifest: null,
1165
1165
  max: null,
@@ -1168,12 +1168,12 @@ const Ml = Qe({
1168
1168
  method: null,
1169
1169
  min: null,
1170
1170
  minLength: E,
1171
- multiple: R,
1172
- muted: R,
1171
+ multiple: M,
1172
+ muted: M,
1173
1173
  name: null,
1174
1174
  nonce: null,
1175
- noModule: R,
1176
- noValidate: R,
1175
+ noModule: M,
1176
+ noValidate: M,
1177
1177
  onAbort: null,
1178
1178
  onAfterPrint: null,
1179
1179
  onAuxClick: null,
@@ -1262,34 +1262,34 @@ const Ml = Qe({
1262
1262
  onVolumeChange: null,
1263
1263
  onWaiting: null,
1264
1264
  onWheel: null,
1265
- open: R,
1265
+ open: M,
1266
1266
  optimum: E,
1267
1267
  pattern: null,
1268
1268
  ping: G,
1269
1269
  placeholder: null,
1270
- playsInline: R,
1270
+ playsInline: M,
1271
1271
  popover: null,
1272
1272
  popoverTarget: null,
1273
1273
  popoverTargetAction: null,
1274
1274
  poster: null,
1275
1275
  preload: null,
1276
- readOnly: R,
1276
+ readOnly: M,
1277
1277
  referrerPolicy: null,
1278
1278
  rel: G,
1279
- required: R,
1280
- reversed: R,
1279
+ required: M,
1280
+ reversed: M,
1281
1281
  rows: E,
1282
1282
  rowSpan: E,
1283
1283
  sandbox: G,
1284
1284
  scope: null,
1285
- scoped: R,
1286
- seamless: R,
1287
- selected: R,
1288
- shadowRootClonable: R,
1289
- shadowRootCustomElementRegistry: R,
1290
- shadowRootDelegatesFocus: R,
1285
+ scoped: M,
1286
+ seamless: M,
1287
+ selected: M,
1288
+ shadowRootClonable: M,
1289
+ shadowRootCustomElementRegistry: M,
1290
+ shadowRootDelegatesFocus: M,
1291
1291
  shadowRootMode: null,
1292
- shadowRootSerializable: R,
1292
+ shadowRootSerializable: M,
1293
1293
  shape: null,
1294
1294
  size: E,
1295
1295
  sizes: null,
@@ -1308,7 +1308,7 @@ const Ml = Qe({
1308
1308
  title: null,
1309
1309
  translate: null,
1310
1310
  type: null,
1311
- typeMustMatch: R,
1311
+ typeMustMatch: M,
1312
1312
  useMap: null,
1313
1313
  value: Z,
1314
1314
  width: E,
@@ -1354,9 +1354,9 @@ const Ml = Qe({
1354
1354
  // `<object>`
1355
1355
  color: null,
1356
1356
  // `<font>` and `<hr>`. Use CSS instead
1357
- compact: R,
1357
+ compact: M,
1358
1358
  // Lists. Use CSS to reduce space between items instead
1359
- declare: R,
1359
+ declare: M,
1360
1360
  // `<object>`
1361
1361
  event: null,
1362
1362
  // `<script>`
@@ -1380,13 +1380,13 @@ const Ml = Qe({
1380
1380
  // `<body>`
1381
1381
  marginWidth: E,
1382
1382
  // `<body>`
1383
- noResize: R,
1383
+ noResize: M,
1384
1384
  // `<frame>`
1385
- noHref: R,
1385
+ noHref: M,
1386
1386
  // `<area>`. Use no href instead of an explicit `nohref`
1387
- noShade: R,
1387
+ noShade: M,
1388
1388
  // `<hr>`. Use background-color and height instead of borders
1389
- noWrap: R,
1389
+ noWrap: M,
1390
1390
  // `<td>` and `<th>`
1391
1391
  object: null,
1392
1392
  // `<applet>`
@@ -1426,9 +1426,9 @@ const Ml = Qe({
1426
1426
  allowTransparency: null,
1427
1427
  autoCorrect: null,
1428
1428
  autoSave: null,
1429
- credentialless: R,
1430
- disablePictureInPicture: R,
1431
- disableRemotePlayback: R,
1429
+ credentialless: M,
1430
+ disablePictureInPicture: M,
1431
+ disableRemotePlayback: M,
1432
1432
  exportParts: Fe,
1433
1433
  part: G,
1434
1434
  prefix: null,
@@ -1439,7 +1439,7 @@ const Ml = Qe({
1439
1439
  },
1440
1440
  space: "html",
1441
1441
  transform: Or
1442
- }), Rl = Qe({
1442
+ }), Ml = Ye({
1443
1443
  attributes: {
1444
1444
  accentHeight: "accent-height",
1445
1445
  alignmentBaseline: "alignment-baseline",
@@ -1666,7 +1666,7 @@ const Ml = Qe({
1666
1666
  dur: null,
1667
1667
  divisor: E,
1668
1668
  dominantBaseline: null,
1669
- download: R,
1669
+ download: M,
1670
1670
  dx: null,
1671
1671
  dy: null,
1672
1672
  edgeMode: null,
@@ -2000,7 +2000,7 @@ const Ml = Qe({
2000
2000
  },
2001
2001
  space: "svg",
2002
2002
  transform: Fr
2003
- }), Br = Qe({
2003
+ }), Br = Ye({
2004
2004
  properties: {
2005
2005
  xLinkActuate: null,
2006
2006
  xLinkArcRole: null,
@@ -2014,12 +2014,12 @@ const Ml = Qe({
2014
2014
  transform(e, n) {
2015
2015
  return "xlink:" + n.slice(5).toLowerCase();
2016
2016
  }
2017
- }), jr = Qe({
2017
+ }), jr = Ye({
2018
2018
  attributes: { xmlnsxlink: "xmlns:xlink" },
2019
2019
  properties: { xmlnsXLink: null, xmlns: null },
2020
2020
  space: "xmlns",
2021
2021
  transform: Or
2022
- }), $r = Qe({
2022
+ }), $r = Ye({
2023
2023
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
2024
2024
  space: "xml",
2025
2025
  transform(e, n) {
@@ -2070,7 +2070,7 @@ function $l(e) {
2070
2070
  function Hl(e) {
2071
2071
  return e.charAt(1).toUpperCase();
2072
2072
  }
2073
- const Vl = Mr([Rr, Ml, Br, jr, $r], "html"), pn = Mr([Rr, Rl, Br, jr, $r], "svg");
2073
+ const Vl = Rr([Mr, Rl, Br, jr, $r], "html"), pn = Rr([Mr, Ml, Br, jr, $r], "svg");
2074
2074
  function Ul(e) {
2075
2075
  return e.join(" ").trim();
2076
2076
  }
@@ -2092,8 +2092,8 @@ function ql() {
2092
2092
  function L(P) {
2093
2093
  var v = P.match(n);
2094
2094
  v && (A += v.length);
2095
- var M = P.lastIndexOf(s);
2096
- _ = ~M ? P.length - M : _ + P.length;
2095
+ var R = P.lastIndexOf(s);
2096
+ _ = ~R ? P.length - R : _ + P.length;
2097
2097
  }
2098
2098
  function N() {
2099
2099
  var P = { line: A, column: _ };
@@ -2114,8 +2114,8 @@ function ql() {
2114
2114
  function $(P) {
2115
2115
  var v = P.exec(S);
2116
2116
  if (v) {
2117
- var M = v[0];
2118
- return L(M), S = S.slice(M.length), v;
2117
+ var R = v[0];
2118
+ return L(R), S = S.slice(R.length), v;
2119
2119
  }
2120
2120
  }
2121
2121
  function H() {
@@ -2134,10 +2134,10 @@ function ql() {
2134
2134
  ++v;
2135
2135
  if (v += 2, c === S.charAt(v - 1))
2136
2136
  return O("End of comment missing");
2137
- var M = S.slice(2, v - 2);
2138
- return _ += 2, L(M), S = S.slice(v), _ += 2, P({
2137
+ var R = S.slice(2, v - 2);
2138
+ return _ += 2, L(R), S = S.slice(v), _ += 2, P({
2139
2139
  type: h,
2140
- comment: M
2140
+ comment: R
2141
2141
  });
2142
2142
  }
2143
2143
  }
@@ -2145,10 +2145,10 @@ function ql() {
2145
2145
  var P = N(), v = $(r);
2146
2146
  if (v) {
2147
2147
  if (T(), !$(i)) return O("property missing ':'");
2148
- var M = $(o), B = P({
2148
+ var R = $(o), B = P({
2149
2149
  type: p,
2150
2150
  property: C(v[0].replace(e, c)),
2151
- value: M ? C(M[0].replace(e, c)) : c
2151
+ value: R ? C(R[0].replace(e, c)) : c
2152
2152
  });
2153
2153
  return $(l), B;
2154
2154
  }
@@ -2191,7 +2191,7 @@ function Wl() {
2191
2191
  return Ve;
2192
2192
  }
2193
2193
  var Ke = {}, Vn;
2194
- function Ql() {
2194
+ function Yl() {
2195
2195
  if (Vn) return Ke;
2196
2196
  Vn = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.camelCase = void 0;
2197
2197
  var e = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, t = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, o = function(u) {
@@ -2206,12 +2206,12 @@ function Ql() {
2206
2206
  return Ke.camelCase = s, Ke;
2207
2207
  }
2208
2208
  var Ze, Un;
2209
- function Yl() {
2209
+ function Ql() {
2210
2210
  if (Un) return Ze;
2211
2211
  Un = 1;
2212
2212
  var e = Ze && Ze.__importDefault || function(i) {
2213
2213
  return i && i.__esModule ? i : { default: i };
2214
- }, n = e(Wl()), t = Ql();
2214
+ }, n = e(Wl()), t = Yl();
2215
2215
  function r(i, o) {
2216
2216
  var l = {};
2217
2217
  return !i || typeof i != "string" || (0, n.default)(i, function(a, s) {
@@ -2220,7 +2220,7 @@ function Yl() {
2220
2220
  }
2221
2221
  return r.default = r, Ze = r, Ze;
2222
2222
  }
2223
- var Xl = Yl();
2223
+ var Xl = Ql();
2224
2224
  const Gl = /* @__PURE__ */ Hr(Xl), Vr = Ur("end"), hn = Ur("start");
2225
2225
  function Ur(e) {
2226
2226
  return n;
@@ -2397,11 +2397,11 @@ function ro(e, n, t) {
2397
2397
  const r = e.schema;
2398
2398
  let i = r;
2399
2399
  n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = pn, e.schema = i), e.ancestors.push(n);
2400
- const o = Yr(e, n.tagName, !1), l = fo(e, n);
2400
+ const o = Qr(e, n.tagName, !1), l = fo(e, n);
2401
2401
  let a = gn(e, n);
2402
2402
  return eo.has(n.tagName) && (a = a.filter(function(s) {
2403
2403
  return typeof s == "string" ? !Dl(s) : !0;
2404
- })), Qr(e, l, o, n), mn(l, a), e.ancestors.pop(), e.schema = r, e.create(n, o, l, t);
2404
+ })), Yr(e, l, o, n), mn(l, a), e.ancestors.pop(), e.schema = r, e.create(n, o, l, t);
2405
2405
  }
2406
2406
  function io(e, n) {
2407
2407
  if (n.data && n.data.estree && e.evaluater) {
@@ -2423,8 +2423,8 @@ function oo(e, n, t) {
2423
2423
  const r = e.schema;
2424
2424
  let i = r;
2425
2425
  n.name === "svg" && r.space === "html" && (i = pn, e.schema = i), e.ancestors.push(n);
2426
- const o = n.name === null ? e.Fragment : Yr(e, n.name, !0), l = po(e, n), a = gn(e, n);
2427
- return Qr(e, l, o, n), mn(l, a), e.ancestors.pop(), e.schema = r, e.create(n, o, l, t);
2426
+ const o = n.name === null ? e.Fragment : Qr(e, n.name, !0), l = po(e, n), a = gn(e, n);
2427
+ return Yr(e, l, o, n), mn(l, a), e.ancestors.pop(), e.schema = r, e.create(n, o, l, t);
2428
2428
  }
2429
2429
  function ao(e, n, t) {
2430
2430
  const r = {};
@@ -2433,7 +2433,7 @@ function ao(e, n, t) {
2433
2433
  function so(e, n) {
2434
2434
  return n.value;
2435
2435
  }
2436
- function Qr(e, n, t, r) {
2436
+ function Yr(e, n, t, r) {
2437
2437
  typeof t != "string" && t !== e.Fragment && e.passNode && (n.node = r);
2438
2438
  }
2439
2439
  function mn(e, n) {
@@ -2569,7 +2569,7 @@ function mo(e, n) {
2569
2569
  throw i.file = e.filePath || void 0, i.url = qr + "#cannot-parse-style-attribute", i;
2570
2570
  }
2571
2571
  }
2572
- function Yr(e, n, t) {
2572
+ function Qr(e, n, t) {
2573
2573
  let r;
2574
2574
  if (!t)
2575
2575
  r = { type: "Literal", value: n };
@@ -2626,7 +2626,7 @@ function yo(e) {
2626
2626
  function ko(e) {
2627
2627
  return "-" + e.toLowerCase();
2628
2628
  }
2629
- const Mt = {
2629
+ const Rt = {
2630
2630
  action: ["form"],
2631
2631
  cite: ["blockquote", "del", "ins", "q"],
2632
2632
  data: ["object"],
@@ -2660,11 +2660,11 @@ function Xr(e, n, t) {
2660
2660
  if (n && "alt" in e && e.alt)
2661
2661
  return e.alt;
2662
2662
  if ("children" in e)
2663
- return Qn(e.children, n, t);
2663
+ return Yn(e.children, n, t);
2664
2664
  }
2665
- return Array.isArray(e) ? Qn(e, n, t) : "";
2665
+ return Array.isArray(e) ? Yn(e, n, t) : "";
2666
2666
  }
2667
- function Qn(e, n, t) {
2667
+ function Yn(e, n, t) {
2668
2668
  const r = [];
2669
2669
  let i = -1;
2670
2670
  for (; ++i < e.length; )
@@ -2674,11 +2674,11 @@ function Qn(e, n, t) {
2674
2674
  function bo(e) {
2675
2675
  return !!(e && typeof e == "object");
2676
2676
  }
2677
- const Yn = document.createElement("i");
2677
+ const Qn = document.createElement("i");
2678
2678
  function kn(e) {
2679
2679
  const n = "&" + e + ";";
2680
- Yn.innerHTML = n;
2681
- const t = Yn.textContent;
2680
+ Qn.innerHTML = n;
2681
+ const t = Qn.textContent;
2682
2682
  return t.charCodeAt(t.length - 1) === 59 && e !== "semi" || t === n ? !1 : t;
2683
2683
  }
2684
2684
  function he(e, n, t, r) {
@@ -2741,7 +2741,7 @@ function Jr(e, n) {
2741
2741
  function ke(e) {
2742
2742
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
2743
2743
  }
2744
- const ae = Te(/[A-Za-z]/), ie = Te(/[\dA-Za-z]/), So = Te(/[#-'*+\--9=?A-Z^-~]/);
2744
+ const ae = ze(/[A-Za-z]/), ie = ze(/[\dA-Za-z]/), So = ze(/[#-'*+\--9=?A-Z^-~]/);
2745
2745
  function vt(e) {
2746
2746
  return (
2747
2747
  // Special whitespace codes (which have negative values), C0 and Control
@@ -2749,7 +2749,7 @@ function vt(e) {
2749
2749
  e !== null && (e < 32 || e === 127)
2750
2750
  );
2751
2751
  }
2752
- const en = Te(/\d/), vo = Te(/[\dA-Fa-f]/), _o = Te(/[!-/:-@[-`{-~]/);
2752
+ const en = ze(/\d/), vo = ze(/[\dA-Fa-f]/), _o = ze(/[!-/:-@[-`{-~]/);
2753
2753
  function D(e) {
2754
2754
  return e !== null && e < -2;
2755
2755
  }
@@ -2759,14 +2759,14 @@ function J(e) {
2759
2759
  function j(e) {
2760
2760
  return e === -2 || e === -1 || e === 32;
2761
2761
  }
2762
- const It = Te(/\p{P}|\p{S}/u), Oe = Te(/\s/);
2763
- function Te(e) {
2762
+ const It = ze(/\p{P}|\p{S}/u), Oe = ze(/\s/);
2763
+ function ze(e) {
2764
2764
  return n;
2765
2765
  function n(t) {
2766
2766
  return t !== null && t > -1 && e.test(String.fromCharCode(t));
2767
2767
  }
2768
2768
  }
2769
- function Ye(e) {
2769
+ function Qe(e) {
2770
2770
  const n = [];
2771
2771
  let t = -1, r = 0, i = 0;
2772
2772
  for (; ++t < e.length; ) {
@@ -3081,9 +3081,9 @@ function No(e, n, t) {
3081
3081
  }
3082
3082
  const ft = {
3083
3083
  partial: !0,
3084
- tokenize: Mo
3084
+ tokenize: Ro
3085
3085
  };
3086
- function Mo(e, n, t) {
3086
+ function Ro(e, n, t) {
3087
3087
  return r;
3088
3088
  function r(o) {
3089
3089
  return j(o) ? U(e, i, "linePrefix")(o) : i(o);
@@ -3098,9 +3098,9 @@ const Kr = {
3098
3098
  },
3099
3099
  exit: Oo,
3100
3100
  name: "blockQuote",
3101
- tokenize: Ro
3101
+ tokenize: Mo
3102
3102
  };
3103
- function Ro(e, n, t) {
3103
+ function Mo(e, n, t) {
3104
3104
  const r = this;
3105
3105
  return i;
3106
3106
  function i(l) {
@@ -3256,7 +3256,7 @@ function Ho(e, n, t) {
3256
3256
  return r.parser.lazy[r.now().line] ? t(l) : n(l);
3257
3257
  }
3258
3258
  }
3259
- const Rt = {
3259
+ const Mt = {
3260
3260
  name: "codeIndented",
3261
3261
  tokenize: Uo
3262
3262
  }, Vo = {
@@ -3296,11 +3296,11 @@ function qo(e, n, t) {
3296
3296
  }
3297
3297
  const Wo = {
3298
3298
  name: "codeText",
3299
- previous: Yo,
3300
- resolve: Qo,
3299
+ previous: Qo,
3300
+ resolve: Yo,
3301
3301
  tokenize: Xo
3302
3302
  };
3303
- function Qo(e) {
3303
+ function Yo(e) {
3304
3304
  let n = e.length - 4, t = 3, r, i;
3305
3305
  if ((e[t][1].type === "lineEnding" || e[t][1].type === "space") && (e[n][1].type === "lineEnding" || e[n][1].type === "space")) {
3306
3306
  for (r = t; ++r < n; )
@@ -3313,7 +3313,7 @@ function Qo(e) {
3313
3313
  i === void 0 ? r !== n && e[r][1].type !== "lineEnding" && (i = r) : (r === n || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), n -= r - i - 2, r = i + 2), i = void 0);
3314
3314
  return e;
3315
3315
  }
3316
- function Yo(e) {
3316
+ function Qo(e) {
3317
3317
  return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
3318
3318
  }
3319
3319
  function Xo(e, n, t) {
@@ -3911,8 +3911,8 @@ function ya(e, n, t) {
3911
3911
  }
3912
3912
  function S(m) {
3913
3913
  if (m === null || m === 47 || m === 62 || J(m)) {
3914
- const ne = m === 47, ze = l.toLowerCase();
3915
- return !ne && !o && er.includes(ze) ? (i = 1, r.interrupt ? n(m) : z(m)) : pa.includes(l.toLowerCase()) ? (i = 6, ne ? (e.consume(m), y) : r.interrupt ? n(m) : z(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : o ? A(m) : _(m));
3914
+ const ne = m === 47, Pe = l.toLowerCase();
3915
+ return !ne && !o && er.includes(Pe) ? (i = 1, r.interrupt ? n(m) : z(m)) : pa.includes(l.toLowerCase()) ? (i = 6, ne ? (e.consume(m), y) : r.interrupt ? n(m) : z(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : o ? A(m) : _(m));
3916
3916
  }
3917
3917
  return m === 45 || ie(m) ? (e.consume(m), l += String.fromCharCode(m), S) : t(m);
3918
3918
  }
@@ -3950,7 +3950,7 @@ function ya(e, n, t) {
3950
3950
  return m === null || D(m) ? z(m) : j(m) ? (e.consume(m), T) : t(m);
3951
3951
  }
3952
3952
  function z(m) {
3953
- return m === 45 && i === 2 ? (e.consume(m), M) : m === 60 && i === 1 ? (e.consume(m), B) : m === 62 && i === 4 ? (e.consume(m), se) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), W) : D(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(da, te, q)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), q(m)) : (e.consume(m), z);
3953
+ return m === 45 && i === 2 ? (e.consume(m), R) : m === 60 && i === 1 ? (e.consume(m), B) : m === 62 && i === 4 ? (e.consume(m), se) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), W) : D(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(da, te, q)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), q(m)) : (e.consume(m), z);
3954
3954
  }
3955
3955
  function q(m) {
3956
3956
  return e.check(ma, P, te)(m);
@@ -3961,18 +3961,18 @@ function ya(e, n, t) {
3961
3961
  function v(m) {
3962
3962
  return m === null || D(m) ? q(m) : (e.enter("htmlFlowData"), z(m));
3963
3963
  }
3964
- function M(m) {
3964
+ function R(m) {
3965
3965
  return m === 45 ? (e.consume(m), d) : z(m);
3966
3966
  }
3967
3967
  function B(m) {
3968
- return m === 47 ? (e.consume(m), l = "", Y) : z(m);
3968
+ return m === 47 ? (e.consume(m), l = "", Q) : z(m);
3969
3969
  }
3970
- function Y(m) {
3970
+ function Q(m) {
3971
3971
  if (m === 62) {
3972
3972
  const ne = l.toLowerCase();
3973
3973
  return er.includes(ne) ? (e.consume(m), se) : z(m);
3974
3974
  }
3975
- return ae(m) && l.length < 8 ? (e.consume(m), l += String.fromCharCode(m), Y) : z(m);
3975
+ return ae(m) && l.length < 8 ? (e.consume(m), l += String.fromCharCode(m), Q) : z(m);
3976
3976
  }
3977
3977
  function W(m) {
3978
3978
  return m === 93 ? (e.consume(m), d) : z(m);
@@ -4030,7 +4030,7 @@ function wa(e, n, t) {
4030
4030
  return d === 45 ? (e.consume(d), p) : c(d);
4031
4031
  }
4032
4032
  function p(d) {
4033
- return d === 62 ? M(d) : d === 45 ? h(d) : c(d);
4033
+ return d === 62 ? R(d) : d === 45 ? h(d) : c(d);
4034
4034
  }
4035
4035
  function g(d) {
4036
4036
  const se = "CDATA[";
@@ -4043,16 +4043,16 @@ function wa(e, n, t) {
4043
4043
  return d === 93 ? (e.consume(d), y) : C(d);
4044
4044
  }
4045
4045
  function y(d) {
4046
- return d === 62 ? M(d) : d === 93 ? (e.consume(d), y) : C(d);
4046
+ return d === 62 ? R(d) : d === 93 ? (e.consume(d), y) : C(d);
4047
4047
  }
4048
4048
  function A(d) {
4049
- return d === null || d === 62 ? M(d) : D(d) ? (l = A, B(d)) : (e.consume(d), A);
4049
+ return d === null || d === 62 ? R(d) : D(d) ? (l = A, B(d)) : (e.consume(d), A);
4050
4050
  }
4051
4051
  function _(d) {
4052
4052
  return d === null ? t(d) : d === 63 ? (e.consume(d), L) : D(d) ? (l = _, B(d)) : (e.consume(d), _);
4053
4053
  }
4054
4054
  function L(d) {
4055
- return d === 62 ? M(d) : _(d);
4055
+ return d === 62 ? R(d) : _(d);
4056
4056
  }
4057
4057
  function N(d) {
4058
4058
  return ae(d) ? (e.consume(d), x) : t(d);
@@ -4061,13 +4061,13 @@ function wa(e, n, t) {
4061
4061
  return d === 45 || ie(d) ? (e.consume(d), x) : O(d);
4062
4062
  }
4063
4063
  function O(d) {
4064
- return D(d) ? (l = O, B(d)) : j(d) ? (e.consume(d), O) : M(d);
4064
+ return D(d) ? (l = O, B(d)) : j(d) ? (e.consume(d), O) : R(d);
4065
4065
  }
4066
4066
  function $(d) {
4067
4067
  return d === 45 || ie(d) ? (e.consume(d), $) : d === 47 || d === 62 || J(d) ? H(d) : t(d);
4068
4068
  }
4069
4069
  function H(d) {
4070
- return d === 47 ? (e.consume(d), M) : d === 58 || d === 95 || ae(d) ? (e.consume(d), k) : D(d) ? (l = H, B(d)) : j(d) ? (e.consume(d), H) : M(d);
4070
+ return d === 47 ? (e.consume(d), R) : d === 58 || d === 95 || ae(d) ? (e.consume(d), k) : D(d) ? (l = H, B(d)) : j(d) ? (e.consume(d), H) : R(d);
4071
4071
  }
4072
4072
  function k(d) {
4073
4073
  return d === 45 || d === 46 || d === 58 || d === 95 || ie(d) ? (e.consume(d), k) : T(d);
@@ -4087,13 +4087,13 @@ function wa(e, n, t) {
4087
4087
  function v(d) {
4088
4088
  return d === 47 || d === 62 || J(d) ? H(d) : t(d);
4089
4089
  }
4090
- function M(d) {
4090
+ function R(d) {
4091
4091
  return d === 62 ? (e.consume(d), e.exit("htmlTextData"), e.exit("htmlText"), n) : t(d);
4092
4092
  }
4093
4093
  function B(d) {
4094
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), Y;
4094
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), Q;
4095
4095
  }
4096
- function Y(d) {
4096
+ function Q(d) {
4097
4097
  return j(d) ? U(e, W, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(d) : W(d);
4098
4098
  }
4099
4099
  function W(d) {
@@ -4276,9 +4276,9 @@ function Na(e, n, t) {
4276
4276
  }
4277
4277
  const Ft = {
4278
4278
  name: "lineEnding",
4279
- tokenize: Ma
4279
+ tokenize: Ra
4280
4280
  };
4281
- function Ma(e, n) {
4281
+ function Ra(e, n) {
4282
4282
  return t;
4283
4283
  function t(r) {
4284
4284
  return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), U(e, n, "linePrefix");
@@ -4286,9 +4286,9 @@ function Ma(e, n) {
4286
4286
  }
4287
4287
  const Ct = {
4288
4288
  name: "thematicBreak",
4289
- tokenize: Ra
4289
+ tokenize: Ma
4290
4290
  };
4291
- function Ra(e, n, t) {
4291
+ function Ma(e, n, t) {
4292
4292
  let r = 0, i;
4293
4293
  return o;
4294
4294
  function o(u) {
@@ -4440,9 +4440,9 @@ function qa(e, n, t) {
4440
4440
  }
4441
4441
  }
4442
4442
  const Wa = {
4443
- tokenize: Qa
4443
+ tokenize: Ya
4444
4444
  };
4445
- function Qa(e) {
4445
+ function Ya(e) {
4446
4446
  const n = this, t = e.attempt(
4447
4447
  // Try to parse a blank line.
4448
4448
  ft,
@@ -4466,7 +4466,7 @@ function Qa(e) {
4466
4466
  return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), n.currentConstruct = void 0, t;
4467
4467
  }
4468
4468
  }
4469
- const Ya = {
4469
+ const Qa = {
4470
4470
  resolveAll: oi()
4471
4471
  }, Xa = li("string"), Ga = li("text");
4472
4472
  function li(e) {
@@ -4574,9 +4574,9 @@ const Ka = {
4574
4574
  }, Za = {
4575
4575
  91: ra
4576
4576
  }, es = {
4577
- [-2]: Rt,
4578
- [-1]: Rt,
4579
- 32: Rt
4577
+ [-2]: Mt,
4578
+ [-1]: Mt,
4579
+ 32: Mt
4580
4580
  }, ts = {
4581
4581
  35: ua,
4582
4582
  42: Ct,
@@ -4603,7 +4603,7 @@ const Ka = {
4603
4603
  95: tn,
4604
4604
  96: Wo
4605
4605
  }, is = {
4606
- null: [tn, Ya]
4606
+ null: [tn, Qa]
4607
4607
  }, ls = {
4608
4608
  null: [42, 95]
4609
4609
  }, os = {
@@ -4717,8 +4717,8 @@ function ss(e, n, t) {
4717
4717
  }
4718
4718
  function O(T, z) {
4719
4719
  return q;
4720
- function q(P, v, M) {
4721
- let B, Y, W, d;
4720
+ function q(P, v, R) {
4721
+ let B, Q, W, d;
4722
4722
  return Array.isArray(P) ? (
4723
4723
  /* c8 ignore next 1 */
4724
4724
  te(P)
@@ -4731,38 +4731,38 @@ function ss(e, n, t) {
4731
4731
  ) : se(P);
4732
4732
  function se(re) {
4733
4733
  return Xe;
4734
- function Xe(Ee) {
4735
- const je = Ee !== null && re[Ee], $e = Ee !== null && re.null, ht = [
4734
+ function Xe(Ae) {
4735
+ const je = Ae !== null && re[Ae], $e = Ae !== null && re.null, ht = [
4736
4736
  // To do: add more extension tests.
4737
4737
  /* c8 ignore next 2 */
4738
4738
  ...Array.isArray(je) ? je : je ? [je] : [],
4739
4739
  ...Array.isArray($e) ? $e : $e ? [$e] : []
4740
4740
  ];
4741
- return te(ht)(Ee);
4741
+ return te(ht)(Ae);
4742
4742
  }
4743
4743
  }
4744
4744
  function te(re) {
4745
- return B = re, Y = 0, re.length === 0 ? M : m(re[Y]);
4745
+ return B = re, Q = 0, re.length === 0 ? R : m(re[Q]);
4746
4746
  }
4747
4747
  function m(re) {
4748
4748
  return Xe;
4749
- function Xe(Ee) {
4750
- return d = H(), W = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? ze() : re.tokenize.call(
4749
+ function Xe(Ae) {
4750
+ return d = H(), W = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? Pe() : re.tokenize.call(
4751
4751
  // If we do have fields, create an object w/ `context` as its
4752
4752
  // prototype.
4753
4753
  // This allows a “live binding”, which is needed for `interrupt`.
4754
4754
  z ? Object.assign(Object.create(u), z) : u,
4755
4755
  s,
4756
4756
  ne,
4757
- ze
4758
- )(Ee);
4757
+ Pe
4758
+ )(Ae);
4759
4759
  }
4760
4760
  }
4761
4761
  function ne(re) {
4762
4762
  return T(W, d), v;
4763
4763
  }
4764
- function ze(re) {
4765
- return d.restore(), ++Y < B.length ? m(B[Y]) : M;
4764
+ function Pe(re) {
4765
+ return d.restore(), ++Q < B.length ? m(B[Q]) : R;
4766
4766
  }
4767
4767
  }
4768
4768
  }
@@ -4773,9 +4773,9 @@ function ss(e, n, t) {
4773
4773
  const T = g(), z = u.previous, q = u.currentConstruct, P = u.events.length, v = Array.from(a);
4774
4774
  return {
4775
4775
  from: P,
4776
- restore: M
4776
+ restore: R
4777
4777
  };
4778
- function M() {
4778
+ function R() {
4779
4779
  r = T, u.previous = z, u.currentConstruct = q, u.events.length = P, a = v, k();
4780
4780
  }
4781
4781
  }
@@ -4955,13 +4955,13 @@ function ks(e) {
4955
4955
  listItemValue: h,
4956
4956
  listOrdered: o(Dn, c),
4957
4957
  listUnordered: o(Dn),
4958
- paragraph: o(Qi),
4958
+ paragraph: o(Yi),
4959
4959
  reference: m,
4960
4960
  referenceString: l,
4961
4961
  resourceDestinationString: l,
4962
4962
  resourceTitleString: l,
4963
4963
  setextHeading: o(Tn),
4964
- strong: o(Yi),
4964
+ strong: o(Qi),
4965
4965
  thematicBreak: o(Gi)
4966
4966
  },
4967
4967
  exit: {
@@ -4969,11 +4969,11 @@ function ks(e) {
4969
4969
  atxHeadingSequence: N,
4970
4970
  autolink: s(),
4971
4971
  autolinkEmail: je,
4972
- autolinkProtocol: Ee,
4972
+ autolinkProtocol: Ae,
4973
4973
  blockQuote: s(),
4974
4974
  characterEscapeValue: k,
4975
- characterReferenceMarkerHexadecimal: ze,
4976
- characterReferenceMarkerNumeric: ze,
4975
+ characterReferenceMarkerHexadecimal: Pe,
4976
+ characterReferenceMarkerNumeric: Pe,
4977
4977
  characterReferenceValue: re,
4978
4978
  characterReference: Xe,
4979
4979
  codeFenced: s(S),
@@ -4998,9 +4998,9 @@ function ks(e) {
4998
4998
  htmlTextData: k,
4999
4999
  image: s(B),
5000
5000
  label: W,
5001
- labelText: Y,
5001
+ labelText: Q,
5002
5002
  lineEnding: T,
5003
- link: s(M),
5003
+ link: s(R),
5004
5004
  listItem: s(),
5005
5005
  listOrdered: s(),
5006
5006
  listUnordered: s(),
@@ -5054,12 +5054,12 @@ function ks(e) {
5054
5054
  (ge[1] || rr).call(F, void 0, ge[0]);
5055
5055
  }
5056
5056
  for (I.position = {
5057
- start: Ae(w.length > 0 ? w[0][1].start : {
5057
+ start: Ie(w.length > 0 ? w[0][1].start : {
5058
5058
  line: 1,
5059
5059
  column: 1,
5060
5060
  offset: 0
5061
5061
  }),
5062
- end: Ae(w.length > 0 ? w[w.length - 2][1].end : {
5062
+ end: Ie(w.length > 0 ? w[w.length - 2][1].end : {
5063
5063
  line: 1,
5064
5064
  column: 1,
5065
5065
  offset: 0
@@ -5069,7 +5069,7 @@ function ks(e) {
5069
5069
  return I;
5070
5070
  }
5071
5071
  function i(w, I, F) {
5072
- let V = I - 1, X = -1, ge = !1, Pe, we, Ge, Je;
5072
+ let V = I - 1, X = -1, ge = !1, Le, Ce, Ge, Je;
5073
5073
  for (; ++V <= F; ) {
5074
5074
  const fe = w[V];
5075
5075
  switch (fe[1].type) {
@@ -5080,7 +5080,7 @@ function ks(e) {
5080
5080
  break;
5081
5081
  }
5082
5082
  case "lineEndingBlank": {
5083
- fe[0] === "enter" && (Pe && !Je && !X && !Ge && (Ge = V), Je = void 0);
5083
+ fe[0] === "enter" && (Le && !Je && !X && !Ge && (Ge = V), Je = void 0);
5084
5084
  break;
5085
5085
  }
5086
5086
  case "linePrefix":
@@ -5093,16 +5093,16 @@ function ks(e) {
5093
5093
  Je = void 0;
5094
5094
  }
5095
5095
  if (!X && fe[0] === "enter" && fe[1].type === "listItemPrefix" || X === -1 && fe[0] === "exit" && (fe[1].type === "listUnordered" || fe[1].type === "listOrdered")) {
5096
- if (Pe) {
5096
+ if (Le) {
5097
5097
  let He = V;
5098
- for (we = void 0; He--; ) {
5099
- const Ce = w[He];
5100
- if (Ce[1].type === "lineEnding" || Ce[1].type === "lineEndingBlank") {
5101
- if (Ce[0] === "exit") continue;
5102
- we && (w[we][1].type = "lineEndingBlank", ge = !0), Ce[1].type = "lineEnding", we = He;
5103
- } else if (!(Ce[1].type === "linePrefix" || Ce[1].type === "blockQuotePrefix" || Ce[1].type === "blockQuotePrefixWhitespace" || Ce[1].type === "blockQuoteMarker" || Ce[1].type === "listItemIndent")) break;
5098
+ for (Ce = void 0; He--; ) {
5099
+ const Se = w[He];
5100
+ if (Se[1].type === "lineEnding" || Se[1].type === "lineEndingBlank") {
5101
+ if (Se[0] === "exit") continue;
5102
+ Ce && (w[Ce][1].type = "lineEndingBlank", ge = !0), Se[1].type = "lineEnding", Ce = He;
5103
+ } else if (!(Se[1].type === "linePrefix" || Se[1].type === "blockQuotePrefix" || Se[1].type === "blockQuotePrefixWhitespace" || Se[1].type === "blockQuoteMarker" || Se[1].type === "listItemIndent")) break;
5104
5104
  }
5105
- Ge && (!we || Ge < we) && (Pe._spread = !0), Pe.end = Object.assign({}, we ? w[we][1].start : fe[1].end), w.splice(we || V, 0, ["exit", Pe, fe[2]]), V++, F++;
5105
+ Ge && (!Ce || Ge < Ce) && (Le._spread = !0), Le.end = Object.assign({}, Ce ? w[Ce][1].start : fe[1].end), w.splice(Ce || V, 0, ["exit", Le, fe[2]]), V++, F++;
5106
5106
  }
5107
5107
  if (fe[1].type === "listItemPrefix") {
5108
5108
  const He = {
@@ -5112,7 +5112,7 @@ function ks(e) {
5112
5112
  // @ts-expect-error: we’ll add `end` in a second.
5113
5113
  end: void 0
5114
5114
  };
5115
- Pe = He, w.splice(V, 0, ["enter", He, fe[2]]), V++, F++, Ge = void 0, Je = !0;
5115
+ Le = He, w.splice(V, 0, ["enter", He, fe[2]]), V++, F++, Ge = void 0, Je = !0;
5116
5116
  }
5117
5117
  }
5118
5118
  }
@@ -5132,7 +5132,7 @@ function ks(e) {
5132
5132
  }
5133
5133
  function a(w, I, F) {
5134
5134
  this.stack[this.stack.length - 1].children.push(w), this.stack.push(w), this.tokenStack.push([I, F || void 0]), w.position = {
5135
- start: Ae(I.start),
5135
+ start: Ie(I.start),
5136
5136
  // @ts-expect-error: `end` will be patched later.
5137
5137
  end: void 0
5138
5138
  };
@@ -5151,7 +5151,7 @@ function ks(e) {
5151
5151
  start: w.start,
5152
5152
  end: w.end
5153
5153
  }) + "): it’s not open");
5154
- F.position.end = Ae(w.end);
5154
+ F.position.end = Ie(w.end);
5155
5155
  }
5156
5156
  function f() {
5157
5157
  return yn(this.stack.pop());
@@ -5217,20 +5217,20 @@ function ks(e) {
5217
5217
  const F = this.stack[this.stack.length - 1].children;
5218
5218
  let V = F[F.length - 1];
5219
5219
  (!V || V.type !== "text") && (V = Xi(), V.position = {
5220
- start: Ae(w.start),
5220
+ start: Ie(w.start),
5221
5221
  // @ts-expect-error: we’ll add `end` later.
5222
5222
  end: void 0
5223
5223
  }, F.push(V)), this.stack.push(V);
5224
5224
  }
5225
5225
  function k(w) {
5226
5226
  const I = this.stack.pop();
5227
- I.value += this.sliceSerialize(w), I.position.end = Ae(w.end);
5227
+ I.value += this.sliceSerialize(w), I.position.end = Ie(w.end);
5228
5228
  }
5229
5229
  function T(w) {
5230
5230
  const I = this.stack[this.stack.length - 1];
5231
5231
  if (this.data.atHardBreak) {
5232
5232
  const F = I.children[I.children.length - 1];
5233
- F.position.end = Ae(w.end), this.data.atHardBreak = void 0;
5233
+ F.position.end = Ie(w.end), this.data.atHardBreak = void 0;
5234
5234
  return;
5235
5235
  }
5236
5236
  !this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(I.type) && (H.call(this, w), k.call(this, w));
@@ -5250,7 +5250,7 @@ function ks(e) {
5250
5250
  const w = this.resume(), I = this.stack[this.stack.length - 1];
5251
5251
  I.value = w;
5252
5252
  }
5253
- function M() {
5253
+ function R() {
5254
5254
  const w = this.stack[this.stack.length - 1];
5255
5255
  if (this.data.inReference) {
5256
5256
  const I = this.data.referenceType || "shortcut";
@@ -5268,7 +5268,7 @@ function ks(e) {
5268
5268
  delete w.identifier, delete w.label;
5269
5269
  this.data.referenceType = void 0;
5270
5270
  }
5271
- function Y(w) {
5271
+ function Q(w) {
5272
5272
  const I = this.sliceSerialize(w), F = this.stack[this.stack.length - 2];
5273
5273
  F.label = ms(I), F.identifier = ke(I).toLowerCase();
5274
5274
  }
@@ -5298,7 +5298,7 @@ function ks(e) {
5298
5298
  const I = this.resume(), F = this.stack[this.stack.length - 1];
5299
5299
  F.label = I, F.identifier = ke(this.sliceSerialize(w)).toLowerCase(), this.data.referenceType = "full";
5300
5300
  }
5301
- function ze(w) {
5301
+ function Pe(w) {
5302
5302
  this.data.characterReferenceType = w.type;
5303
5303
  }
5304
5304
  function re(w) {
@@ -5310,9 +5310,9 @@ function ks(e) {
5310
5310
  }
5311
5311
  function Xe(w) {
5312
5312
  const I = this.stack.pop();
5313
- I.position.end = Ae(w.end);
5313
+ I.position.end = Ie(w.end);
5314
5314
  }
5315
- function Ee(w) {
5315
+ function Ae(w) {
5316
5316
  k.call(this, w);
5317
5317
  const I = this.stack[this.stack.length - 1];
5318
5318
  I.url = this.sliceSerialize(w);
@@ -5409,13 +5409,13 @@ function ks(e) {
5409
5409
  children: []
5410
5410
  };
5411
5411
  }
5412
- function Qi() {
5412
+ function Yi() {
5413
5413
  return {
5414
5414
  type: "paragraph",
5415
5415
  children: []
5416
5416
  };
5417
5417
  }
5418
- function Yi() {
5418
+ function Qi() {
5419
5419
  return {
5420
5420
  type: "strong",
5421
5421
  children: []
@@ -5433,7 +5433,7 @@ function ks(e) {
5433
5433
  };
5434
5434
  }
5435
5435
  }
5436
- function Ae(e) {
5436
+ function Ie(e) {
5437
5437
  return {
5438
5438
  line: e.line,
5439
5439
  column: e.column,
@@ -5542,7 +5542,7 @@ function _s(e, n) {
5542
5542
  return e.patch(n, t), e.applyData(n, t);
5543
5543
  }
5544
5544
  function Es(e, n) {
5545
- const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Ye(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
5545
+ const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Qe(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
5546
5546
  let l, a = e.footnoteCounts.get(r);
5547
5547
  a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
5548
5548
  const s = {
@@ -5594,13 +5594,13 @@ function Ts(e, n) {
5594
5594
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
5595
5595
  if (!r)
5596
5596
  return ui(e, n);
5597
- const i = { src: Ye(r.url || ""), alt: n.alt };
5597
+ const i = { src: Qe(r.url || ""), alt: n.alt };
5598
5598
  r.title !== null && r.title !== void 0 && (i.title = r.title);
5599
5599
  const o = { type: "element", tagName: "img", properties: i, children: [] };
5600
5600
  return e.patch(n, o), e.applyData(n, o);
5601
5601
  }
5602
5602
  function zs(e, n) {
5603
- const t = { src: Ye(n.url) };
5603
+ const t = { src: Qe(n.url) };
5604
5604
  n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
5605
5605
  const r = { type: "element", tagName: "img", properties: t, children: [] };
5606
5606
  return e.patch(n, r), e.applyData(n, r);
@@ -5620,7 +5620,7 @@ function Ls(e, n) {
5620
5620
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
5621
5621
  if (!r)
5622
5622
  return ui(e, n);
5623
- const i = { href: Ye(r.url || "") };
5623
+ const i = { href: Qe(r.url || "") };
5624
5624
  r.title !== null && r.title !== void 0 && (i.title = r.title);
5625
5625
  const o = {
5626
5626
  type: "element",
@@ -5631,7 +5631,7 @@ function Ls(e, n) {
5631
5631
  return e.patch(n, o), e.applyData(n, o);
5632
5632
  }
5633
5633
  function Ds(e, n) {
5634
- const t = { href: Ye(n.url) };
5634
+ const t = { href: Qe(n.url) };
5635
5635
  n.title !== null && n.title !== void 0 && (t.title = n.title);
5636
5636
  const r = {
5637
5637
  type: "element",
@@ -5642,7 +5642,7 @@ function Ds(e, n) {
5642
5642
  return e.patch(n, r), e.applyData(n, r);
5643
5643
  }
5644
5644
  function Ns(e, n, t) {
5645
- const r = e.all(n), i = t ? Ms(t) : ci(n), o = {}, l = [];
5645
+ const r = e.all(n), i = t ? Rs(t) : ci(n), o = {}, l = [];
5646
5646
  if (typeof n.checked == "boolean") {
5647
5647
  const f = r[0];
5648
5648
  let c;
@@ -5665,7 +5665,7 @@ function Ns(e, n, t) {
5665
5665
  const u = { type: "element", tagName: "li", properties: o, children: l };
5666
5666
  return e.patch(n, u), e.applyData(n, u);
5667
5667
  }
5668
- function Ms(e) {
5668
+ function Rs(e) {
5669
5669
  let n = !1;
5670
5670
  if (e.type === "list") {
5671
5671
  n = e.spread || !1;
@@ -5680,7 +5680,7 @@ function ci(e) {
5680
5680
  const n = e.spread;
5681
5681
  return n ?? e.children.length > 1;
5682
5682
  }
5683
- function Rs(e, n) {
5683
+ function Ms(e, n) {
5684
5684
  const t = {}, r = e.all(n);
5685
5685
  let i = -1;
5686
5686
  for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++i < r.length; ) {
@@ -5830,7 +5830,7 @@ const Ws = {
5830
5830
  linkReference: Ls,
5831
5831
  link: Ds,
5832
5832
  listItem: Ns,
5833
- list: Rs,
5833
+ list: Ms,
5834
5834
  paragraph: Fs,
5835
5835
  // @ts-expect-error: root is different, but hard to type.
5836
5836
  root: Os,
@@ -5858,7 +5858,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
5858
5858
  throw new TypeError("unable to deserialize " + e);
5859
5859
  }
5860
5860
  return new di[e](n);
5861
- }, Qs = (e, n) => {
5861
+ }, Ys = (e, n) => {
5862
5862
  const t = (i, o) => (e.set(o, i), i), r = (i) => {
5863
5863
  if (e.has(i))
5864
5864
  return e.get(i);
@@ -5918,24 +5918,24 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
5918
5918
  return t(ar(o, l), i);
5919
5919
  };
5920
5920
  return r;
5921
- }, sr = (e) => Qs(/* @__PURE__ */ new Map(), e)(0), Me = "", { toString: Ys } = {}, { keys: Xs } = Object, tt = (e) => {
5921
+ }, sr = (e) => Ys(/* @__PURE__ */ new Map(), e)(0), Re = "", { toString: Qs } = {}, { keys: Xs } = Object, tt = (e) => {
5922
5922
  const n = typeof e;
5923
5923
  if (n !== "object" || !e)
5924
5924
  return [zt, n];
5925
- const t = Ys.call(e).slice(8, -1);
5925
+ const t = Qs.call(e).slice(8, -1);
5926
5926
  switch (t) {
5927
5927
  case "Array":
5928
- return [at, Me];
5928
+ return [at, Re];
5929
5929
  case "Object":
5930
- return [_t, Me];
5930
+ return [_t, Re];
5931
5931
  case "Date":
5932
- return [bn, Me];
5932
+ return [bn, Re];
5933
5933
  case "RegExp":
5934
- return [wn, Me];
5934
+ return [wn, Re];
5935
5935
  case "Map":
5936
- return [Cn, Me];
5936
+ return [Cn, Re];
5937
5937
  case "Set":
5938
- return [Sn, Me];
5938
+ return [Sn, Re];
5939
5939
  case "DataView":
5940
5940
  return [at, t];
5941
5941
  }
@@ -5994,7 +5994,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
5994
5994
  return c;
5995
5995
  }
5996
5996
  case bn:
5997
- return i([a, isNaN(l.getTime()) ? Me : l.toISOString()], l);
5997
+ return i([a, isNaN(l.getTime()) ? Re : l.toISOString()], l);
5998
5998
  case wn: {
5999
5999
  const { source: f, flags: c } = l;
6000
6000
  return i([a, { source: f, flags: c }], l);
@@ -6046,7 +6046,7 @@ function Zs(e) {
6046
6046
  );
6047
6047
  if (!u)
6048
6048
  continue;
6049
- const f = e.all(u), c = String(u.identifier).toUpperCase(), h = Ye(c.toLowerCase());
6049
+ const f = e.all(u), c = String(u.identifier).toUpperCase(), h = Qe(c.toLowerCase());
6050
6050
  let p = 0;
6051
6051
  const g = [], C = e.footnoteCounts.get(c);
6052
6052
  for (; C !== void 0 && ++p <= C; ) {
@@ -6473,7 +6473,7 @@ function ku(e, n) {
6473
6473
  i(null, l);
6474
6474
  }
6475
6475
  }
6476
- const xe = { basename: xu, dirname: bu, extname: wu, join: Cu, sep: "/" };
6476
+ const be = { basename: xu, dirname: bu, extname: wu, join: Cu, sep: "/" };
6477
6477
  function xu(e, n) {
6478
6478
  if (n !== void 0 && typeof n != "string")
6479
6479
  throw new TypeError('"ext" argument must be a string');
@@ -6679,7 +6679,7 @@ class yi {
6679
6679
  * Basename.
6680
6680
  */
6681
6681
  get basename() {
6682
- return typeof this.path == "string" ? xe.basename(this.path) : void 0;
6682
+ return typeof this.path == "string" ? be.basename(this.path) : void 0;
6683
6683
  }
6684
6684
  /**
6685
6685
  * Set basename (including extname) (`'index.min.js'`).
@@ -6694,7 +6694,7 @@ class yi {
6694
6694
  * Nothing.
6695
6695
  */
6696
6696
  set basename(n) {
6697
- Ht(n, "basename"), $t(n, "basename"), this.path = xe.join(this.dirname || "", n);
6697
+ Ht(n, "basename"), $t(n, "basename"), this.path = be.join(this.dirname || "", n);
6698
6698
  }
6699
6699
  /**
6700
6700
  * Get the parent path (example: `'~'`).
@@ -6703,7 +6703,7 @@ class yi {
6703
6703
  * Dirname.
6704
6704
  */
6705
6705
  get dirname() {
6706
- return typeof this.path == "string" ? xe.dirname(this.path) : void 0;
6706
+ return typeof this.path == "string" ? be.dirname(this.path) : void 0;
6707
6707
  }
6708
6708
  /**
6709
6709
  * Set the parent path (example: `'~'`).
@@ -6716,7 +6716,7 @@ class yi {
6716
6716
  * Nothing.
6717
6717
  */
6718
6718
  set dirname(n) {
6719
- dr(this.basename, "dirname"), this.path = xe.join(n || "", this.basename);
6719
+ dr(this.basename, "dirname"), this.path = be.join(n || "", this.basename);
6720
6720
  }
6721
6721
  /**
6722
6722
  * Get the extname (including dot) (example: `'.js'`).
@@ -6725,7 +6725,7 @@ class yi {
6725
6725
  * Extname.
6726
6726
  */
6727
6727
  get extname() {
6728
- return typeof this.path == "string" ? xe.extname(this.path) : void 0;
6728
+ return typeof this.path == "string" ? be.extname(this.path) : void 0;
6729
6729
  }
6730
6730
  /**
6731
6731
  * Set the extname (including dot) (example: `'.js'`).
@@ -6746,7 +6746,7 @@ class yi {
6746
6746
  if (n.includes(".", 1))
6747
6747
  throw new Error("`extname` cannot contain multiple dots");
6748
6748
  }
6749
- this.path = xe.join(this.dirname, this.stem + (n || ""));
6749
+ this.path = be.join(this.dirname, this.stem + (n || ""));
6750
6750
  }
6751
6751
  /**
6752
6752
  * Get the full path (example: `'~/index.min.js'`).
@@ -6779,7 +6779,7 @@ class yi {
6779
6779
  * Stem.
6780
6780
  */
6781
6781
  get stem() {
6782
- return typeof this.path == "string" ? xe.basename(this.path, this.extname) : void 0;
6782
+ return typeof this.path == "string" ? be.basename(this.path, this.extname) : void 0;
6783
6783
  }
6784
6784
  /**
6785
6785
  * Set the stem (basename w/o extname) (example: `'index.min'`).
@@ -6794,7 +6794,7 @@ class yi {
6794
6794
  * Nothing.
6795
6795
  */
6796
6796
  set stem(n) {
6797
- Ht(n, "stem"), $t(n, "stem"), this.path = xe.join(this.dirname || "", n + (this.extname || ""));
6797
+ Ht(n, "stem"), $t(n, "stem"), this.path = be.join(this.dirname || "", n + (this.extname || ""));
6798
6798
  }
6799
6799
  // Normal prototypal methods.
6800
6800
  /**
@@ -7008,9 +7008,9 @@ class yi {
7008
7008
  }
7009
7009
  }
7010
7010
  function $t(e, n) {
7011
- if (e && e.includes(xe.sep))
7011
+ if (e && e.includes(be.sep))
7012
7012
  throw new Error(
7013
- "`" + n + "` cannot be a path: did not expect `" + xe.sep + "`"
7013
+ "`" + n + "` cannot be a path: did not expect `" + be.sep + "`"
7014
7014
  );
7015
7015
  }
7016
7016
  function Ht(e, n) {
@@ -7559,12 +7559,12 @@ function Du(e) {
7559
7559
  return !!(e && typeof e == "object" && "message" in e && "messages" in e);
7560
7560
  }
7561
7561
  function Nu(e) {
7562
- return typeof e == "string" || Mu(e);
7562
+ return typeof e == "string" || Ru(e);
7563
7563
  }
7564
- function Mu(e) {
7564
+ function Ru(e) {
7565
7565
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
7566
7566
  }
7567
- const Ru = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", yr = [], kr = { allowDangerousHtml: !0 }, Fu = /^(https?|ircs?|mailto|xmpp)$/i, Ou = [
7567
+ const Mu = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", yr = [], kr = { allowDangerousHtml: !0 }, Fu = /^(https?|ircs?|mailto|xmpp)$/i, Ou = [
7568
7568
  { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
7569
7569
  { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
7570
7570
  {
@@ -7613,13 +7613,13 @@ function $u(e) {
7613
7613
  function Hu(e, n) {
7614
7614
  const t = n.allowedElements, r = n.allowElement, i = n.components, o = n.disallowedElements, l = n.skipHtml, a = n.unwrapDisallowed, s = n.urlTransform || Vu;
7615
7615
  for (const f of Ou)
7616
- Object.hasOwn(n, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + Ru + f.id, void 0);
7616
+ Object.hasOwn(n, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + Mu + f.id, void 0);
7617
7617
  return vn(e, u), no(e, {
7618
7618
  Fragment: un,
7619
7619
  components: i,
7620
7620
  ignoreInvalidStyle: !0,
7621
7621
  jsx: b,
7622
- jsxs: Q,
7622
+ jsxs: Y,
7623
7623
  passKeys: !0,
7624
7624
  passNode: !0
7625
7625
  });
@@ -7628,9 +7628,9 @@ function Hu(e, n) {
7628
7628
  return l ? h.children.splice(c, 1) : h.children[c] = { type: "text", value: f.value }, c;
7629
7629
  if (f.type === "element") {
7630
7630
  let p;
7631
- for (p in Mt)
7632
- if (Object.hasOwn(Mt, p) && Object.hasOwn(f.properties, p)) {
7633
- const g = f.properties[p], C = Mt[p];
7631
+ for (p in Rt)
7632
+ if (Object.hasOwn(Rt, p) && Object.hasOwn(f.properties, p)) {
7633
+ const g = f.properties[p], C = Rt[p];
7634
7634
  (C === null || C.includes(f.tagName)) && (f.properties[p] = s(String(g || ""), p, f));
7635
7635
  }
7636
7636
  }
@@ -7716,27 +7716,27 @@ function Wu(e) {
7716
7716
  let r = -1;
7717
7717
  for (; ++r < t.length; ) {
7718
7718
  const i = t[r];
7719
- n.push([Qu(i[0]), Yu(i[1])]);
7719
+ n.push([Yu(i[0]), Qu(i[1])]);
7720
7720
  }
7721
7721
  return n;
7722
7722
  }
7723
- function Qu(e) {
7723
+ function Yu(e) {
7724
7724
  return typeof e == "string" ? new RegExp(Uu(e), "g") : e;
7725
7725
  }
7726
- function Yu(e) {
7726
+ function Qu(e) {
7727
7727
  return typeof e == "function" ? e : function() {
7728
7728
  return e;
7729
7729
  };
7730
7730
  }
7731
- const Wt = "phrasing", Qt = ["autolink", "link", "image", "label"];
7731
+ const Wt = "phrasing", Yt = ["autolink", "link", "image", "label"];
7732
7732
  function Xu() {
7733
7733
  return {
7734
7734
  transforms: [nc],
7735
7735
  enter: {
7736
7736
  literalAutolink: Ju,
7737
- literalAutolinkEmail: Yt,
7738
- literalAutolinkHttp: Yt,
7739
- literalAutolinkWww: Yt
7737
+ literalAutolinkEmail: Qt,
7738
+ literalAutolinkHttp: Qt,
7739
+ literalAutolinkWww: Qt
7740
7740
  },
7741
7741
  exit: {
7742
7742
  literalAutolink: tc,
@@ -7754,21 +7754,21 @@ function Gu() {
7754
7754
  before: "[+\\-.\\w]",
7755
7755
  after: "[\\-.\\w]",
7756
7756
  inConstruct: Wt,
7757
- notInConstruct: Qt
7757
+ notInConstruct: Yt
7758
7758
  },
7759
7759
  {
7760
7760
  character: ".",
7761
7761
  before: "[Ww]",
7762
7762
  after: "[\\-.\\w]",
7763
7763
  inConstruct: Wt,
7764
- notInConstruct: Qt
7764
+ notInConstruct: Yt
7765
7765
  },
7766
7766
  {
7767
7767
  character: ":",
7768
7768
  before: "[ps]",
7769
7769
  after: "\\/",
7770
7770
  inConstruct: Wt,
7771
- notInConstruct: Qt
7771
+ notInConstruct: Yt
7772
7772
  }
7773
7773
  ]
7774
7774
  };
@@ -7776,7 +7776,7 @@ function Gu() {
7776
7776
  function Ju(e) {
7777
7777
  this.enter({ type: "link", title: null, url: "", children: [] }, e);
7778
7778
  }
7779
- function Yt(e) {
7779
+ function Qt(e) {
7780
7780
  this.config.enter.autolinkProtocol.call(this, e);
7781
7781
  }
7782
7782
  function Ku(e) {
@@ -8116,7 +8116,7 @@ function Dc(e) {
8116
8116
  function Nc(e, n, t, r) {
8117
8117
  const i = Dc(t), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
8118
8118
  if (Lc(e, t)) {
8119
- const c = t.enter("codeIndented"), h = t.indentLines(o, Mc);
8119
+ const c = t.enter("codeIndented"), h = t.indentLines(o, Rc);
8120
8120
  return c(), h;
8121
8121
  }
8122
8122
  const a = t.createTracker(r), s = i.repeat(Math.max(Pc(o, i) + 1, 3)), u = t.enter("codeFenced");
@@ -8148,7 +8148,7 @@ function Nc(e, n, t, r) {
8148
8148
  `), o && (f += a.move(o + `
8149
8149
  `)), f += a.move(s), u(), f;
8150
8150
  }
8151
- function Mc(e, n, t) {
8151
+ function Rc(e, n, t) {
8152
8152
  return (t ? "" : " ") + e;
8153
8153
  }
8154
8154
  function En(e) {
@@ -8159,7 +8159,7 @@ function En(e) {
8159
8159
  );
8160
8160
  return n;
8161
8161
  }
8162
- function Rc(e, n, t, r) {
8162
+ function Mc(e, n, t, r) {
8163
8163
  const i = En(t), o = i === '"' ? "Quote" : "Apostrophe", l = t.enter("definition");
8164
8164
  let a = t.enter("label");
8165
8165
  const s = t.createTracker(r);
@@ -8463,7 +8463,7 @@ function An(e) {
8463
8463
  );
8464
8464
  return n;
8465
8465
  }
8466
- function Qc(e) {
8466
+ function Yc(e) {
8467
8467
  const n = An(e), t = e.options.bulletOther;
8468
8468
  if (!t)
8469
8469
  return n === "*" ? "-" : "*";
@@ -8477,7 +8477,7 @@ function Qc(e) {
8477
8477
  );
8478
8478
  return t;
8479
8479
  }
8480
- function Yc(e) {
8480
+ function Qc(e) {
8481
8481
  const n = e.options.bulletOrdered || ".";
8482
8482
  if (n !== "." && n !== ")")
8483
8483
  throw new Error(
@@ -8495,8 +8495,8 @@ function zi(e) {
8495
8495
  }
8496
8496
  function Xc(e, n, t, r) {
8497
8497
  const i = t.enter("list"), o = t.bulletCurrent;
8498
- let l = e.ordered ? Yc(t) : An(t);
8499
- const a = e.ordered ? l === "." ? ")" : "." : Qc(t);
8498
+ let l = e.ordered ? Qc(t) : An(t);
8499
+ const a = e.ordered ? l === "." ? ")" : "." : Yc(t);
8500
8500
  let s = n && t.bulletLastUsed ? l === t.bulletLastUsed : !1;
8501
8501
  if (!e.ordered) {
8502
8502
  const f = e.children ? e.children[0] : void 0;
@@ -8635,7 +8635,7 @@ const Li = {
8635
8635
  blockquote: Ic,
8636
8636
  break: Cr,
8637
8637
  code: Nc,
8638
- definition: Rc,
8638
+ definition: Mc,
8639
8639
  emphasis: Ci,
8640
8640
  hardBreak: Cr,
8641
8641
  heading: jc,
@@ -8862,13 +8862,13 @@ const bf = {
8862
8862
  }, Ni = {
8863
8863
  tokenize: If,
8864
8864
  partial: !0
8865
- }, Mi = {
8865
+ }, Ri = {
8866
8866
  tokenize: Tf,
8867
8867
  partial: !0
8868
8868
  }, wf = {
8869
8869
  tokenize: zf,
8870
8870
  partial: !0
8871
- }, Ri = {
8871
+ }, Mi = {
8872
8872
  name: "wwwAutolink",
8873
8873
  tokenize: vf,
8874
8874
  previous: Oi
@@ -8876,27 +8876,27 @@ const bf = {
8876
8876
  name: "protocolAutolink",
8877
8877
  tokenize: _f,
8878
8878
  previous: Bi
8879
- }, _e = {
8879
+ }, Ee = {
8880
8880
  name: "emailAutolink",
8881
8881
  tokenize: Sf,
8882
8882
  previous: ji
8883
- }, be = {};
8883
+ }, we = {};
8884
8884
  function Cf() {
8885
8885
  return {
8886
- text: be
8886
+ text: we
8887
8887
  };
8888
8888
  }
8889
- let Le = 48;
8890
- for (; Le < 123; )
8891
- be[Le] = _e, Le++, Le === 58 ? Le = 65 : Le === 91 && (Le = 97);
8892
- be[43] = _e;
8893
- be[45] = _e;
8894
- be[46] = _e;
8895
- be[95] = _e;
8896
- be[72] = [_e, Fi];
8897
- be[104] = [_e, Fi];
8898
- be[87] = [_e, Ri];
8899
- be[119] = [_e, Ri];
8889
+ let De = 48;
8890
+ for (; De < 123; )
8891
+ we[De] = Ee, De++, De === 58 ? De = 65 : De === 91 && (De = 97);
8892
+ we[43] = Ee;
8893
+ we[45] = Ee;
8894
+ we[46] = Ee;
8895
+ we[95] = Ee;
8896
+ we[72] = [Ee, Fi];
8897
+ we[104] = [Ee, Fi];
8898
+ we[87] = [Ee, Mi];
8899
+ we[119] = [Ee, Mi];
8900
8900
  function Sf(e, n, t) {
8901
8901
  const r = this;
8902
8902
  let i, o;
@@ -8968,7 +8968,7 @@ function Af(e, n, t) {
8968
8968
  let r, i, o;
8969
8969
  return l;
8970
8970
  function l(u) {
8971
- return u === 46 || u === 95 ? e.check(Mi, s, a)(u) : u === null || J(u) || Oe(u) || u !== 45 && It(u) ? s(u) : (o = !0, e.consume(u), l);
8971
+ return u === 46 || u === 95 ? e.check(Ri, s, a)(u) : u === null || J(u) || Oe(u) || u !== 45 && It(u) ? s(u) : (o = !0, e.consume(u), l);
8972
8972
  }
8973
8973
  function a(u) {
8974
8974
  return u === 95 ? r = !0 : (i = r, r = void 0), e.consume(u), l;
@@ -8981,7 +8981,7 @@ function If(e, n) {
8981
8981
  let t = 0, r = 0;
8982
8982
  return i;
8983
8983
  function i(l) {
8984
- return l === 40 ? (t++, e.consume(l), i) : l === 41 && r < t ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(Mi, n, o)(l) : l === null || J(l) || Oe(l) ? n(l) : (e.consume(l), i);
8984
+ return l === 40 ? (t++, e.consume(l), i) : l === 41 && r < t ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(Ri, n, o)(l) : l === null || J(l) || Oe(l) ? n(l) : (e.consume(l), i);
8985
8985
  }
8986
8986
  function o(l) {
8987
8987
  return l === 41 && r++, e.consume(l), i;
@@ -9051,7 +9051,7 @@ function Lf() {
9051
9051
  document: {
9052
9052
  91: {
9053
9053
  name: "gfmFootnoteDefinition",
9054
- tokenize: Rf,
9054
+ tokenize: Mf,
9055
9055
  continuation: {
9056
9056
  tokenize: Ff
9057
9057
  },
@@ -9061,7 +9061,7 @@ function Lf() {
9061
9061
  text: {
9062
9062
  91: {
9063
9063
  name: "gfmFootnoteCall",
9064
- tokenize: Mf
9064
+ tokenize: Rf
9065
9065
  },
9066
9066
  93: {
9067
9067
  name: "gfmPotentialFootnoteCall",
@@ -9147,7 +9147,7 @@ function Nf(e, n) {
9147
9147
  ];
9148
9148
  return e.splice(t, e.length - t + 1, ...a), e;
9149
9149
  }
9150
- function Mf(e, n, t) {
9150
+ function Rf(e, n, t) {
9151
9151
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
9152
9152
  let o = 0, l;
9153
9153
  return a;
@@ -9177,7 +9177,7 @@ function Mf(e, n, t) {
9177
9177
  return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, u) : u(c);
9178
9178
  }
9179
9179
  }
9180
- function Rf(e, n, t) {
9180
+ function Mf(e, n, t) {
9181
9181
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
9182
9182
  let o, l = 0, a;
9183
9183
  return s;
@@ -9514,14 +9514,14 @@ function Ue(e, n) {
9514
9514
  const t = e[n], r = t[0] === "enter" ? "start" : "end";
9515
9515
  return t[1][r];
9516
9516
  }
9517
- const Qf = {
9517
+ const Yf = {
9518
9518
  name: "tasklistCheck",
9519
9519
  tokenize: Xf
9520
9520
  };
9521
- function Yf() {
9521
+ function Qf() {
9522
9522
  return {
9523
9523
  text: {
9524
- 91: Qf
9524
+ 91: Yf
9525
9525
  }
9526
9526
  };
9527
9527
  }
@@ -9560,7 +9560,7 @@ function Jf(e) {
9560
9560
  Lf(),
9561
9561
  jf(e),
9562
9562
  Uf(),
9563
- Yf()
9563
+ Qf()
9564
9564
  ]);
9565
9565
  }
9566
9566
  const Kf = {};
@@ -9579,7 +9579,7 @@ const ep = "_wrapper_izvjy_1", tp = "_table_izvjy_15", np = "_th_izvjy_27", rp =
9579
9579
  td: ip
9580
9580
  };
9581
9581
  function lp({ part: e }) {
9582
- return /* @__PURE__ */ b("div", { className: nt.wrapper, children: /* @__PURE__ */ Q("table", { className: nt.table, children: [
9582
+ return /* @__PURE__ */ b("div", { className: nt.wrapper, children: /* @__PURE__ */ Y("table", { className: nt.table, children: [
9583
9583
  /* @__PURE__ */ b("thead", { children: /* @__PURE__ */ b("tr", { children: e.columns.map((n) => /* @__PURE__ */ b("th", { className: nt.th, children: n }, n)) }) }),
9584
9584
  /* @__PURE__ */ b("tbody", { children: e.rows.map((n, t) => /* @__PURE__ */ b("tr", { className: nt.tr, children: e.columns.map((r) => /* @__PURE__ */ b("td", { className: nt.td, children: String(n[r] ?? "") }, r)) }, t)) })
9585
9585
  ] }) });
@@ -9597,14 +9597,14 @@ const op = "_card_1gzm6_1", ap = "_header_1gzm6_17", sp = "_icon_1gzm6_31", up =
9597
9597
  cancel: mp
9598
9598
  };
9599
9599
  function gp({ part: e, onConfirm: n, onCancel: t }) {
9600
- const r = Ie(), { proposal: i } = e, o = i.resolved === "confirmed" ? r.proposalConfirmed : i.resolved === "cancelled" ? r.proposalCancelled : i.resolved === "expired" ? r.proposalExpired : null;
9601
- return /* @__PURE__ */ Q("div", { className: i.resolved ? `${ye.card} ${ye.cardResolved}` : ye.card, children: [
9602
- /* @__PURE__ */ Q("div", { className: ye.header, children: [
9600
+ const r = Te(), { proposal: i } = e, o = i.resolved === "confirmed" ? r.proposalConfirmed : i.resolved === "cancelled" ? r.proposalCancelled : i.resolved === "expired" ? r.proposalExpired : null;
9601
+ return /* @__PURE__ */ Y("div", { className: i.resolved ? `${ye.card} ${ye.cardResolved}` : ye.card, children: [
9602
+ /* @__PURE__ */ Y("div", { className: ye.header, children: [
9603
9603
  /* @__PURE__ */ b("svg", { className: ye.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("path", { d: "M10 1a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 1zM5.05 3.05a.75.75 0 011.06 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06zm9.9 0a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zM10 6a4 4 0 100 8 4 4 0 000-8zm-9 4a.75.75 0 01.75-.75h1.5a.75.75 0 010 1.5h-1.5A.75.75 0 011 10zm15.75-.75a.75.75 0 000 1.5h1.5a.75.75 0 000-1.5h-1.5zM4.11 14.89a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zm11.84 1.06a.75.75 0 10-1.06-1.06l-1.06 1.06a.75.75 0 101.06 1.06l1.06-1.06zM10 17.25a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75z" }) }),
9604
9604
  /* @__PURE__ */ b("span", { className: ye.title, children: i.title })
9605
9605
  ] }),
9606
9606
  i.description && /* @__PURE__ */ b("p", { className: ye.description, children: i.description }),
9607
- o ? /* @__PURE__ */ b("span", { className: ye.resolvedBadge, children: o }) : /* @__PURE__ */ Q("div", { className: ye.actions, children: [
9607
+ o ? /* @__PURE__ */ b("span", { className: ye.resolvedBadge, children: o }) : /* @__PURE__ */ Y("div", { className: ye.actions, children: [
9608
9608
  /* @__PURE__ */ b(
9609
9609
  "button",
9610
9610
  {
@@ -9632,15 +9632,15 @@ const yp = "_activity_1661l_1", kp = "_indicator_1661l_25", xp = "_content_1661l
9632
9632
  description: wp
9633
9633
  };
9634
9634
  function Cp({ part: e }) {
9635
- return /* @__PURE__ */ Q("div", { className: rt.activity, "data-status": e.status, children: [
9635
+ return /* @__PURE__ */ Y("div", { className: rt.activity, "data-status": e.status, children: [
9636
9636
  /* @__PURE__ */ b("span", { className: rt.indicator, "aria-hidden": "true" }),
9637
- /* @__PURE__ */ Q("div", { className: rt.content, children: [
9637
+ /* @__PURE__ */ Y("div", { className: rt.content, children: [
9638
9638
  /* @__PURE__ */ b("div", { className: rt.title, children: e.title }),
9639
9639
  e.description && /* @__PURE__ */ b("div", { className: rt.description, children: e.description })
9640
9640
  ] })
9641
9641
  ] });
9642
9642
  }
9643
- const Sp = "_card_jwkcu_1", vp = "_cardClickable_jwkcu_14", _p = "_header_jwkcu_24", Ep = "_title_jwkcu_30", Ap = "_subtitle_jwkcu_36", Ip = "_fields_jwkcu_41", Tp = "_fieldRow_jwkcu_48", zp = "_fieldLabel_jwkcu_55", Pp = "_fieldValue_jwkcu_61", Lp = "_badge_jwkcu_68", Dp = "_badgeSuccess_jwkcu_76", Np = "_badgeWarning_jwkcu_81", Mp = "_badgeDanger_jwkcu_86", Rp = "_badgeNeutral_jwkcu_91", oe = {
9643
+ const Sp = "_card_jwkcu_1", vp = "_cardClickable_jwkcu_14", _p = "_header_jwkcu_24", Ep = "_title_jwkcu_30", Ap = "_subtitle_jwkcu_36", Ip = "_fields_jwkcu_41", Tp = "_fieldRow_jwkcu_48", zp = "_fieldLabel_jwkcu_55", Pp = "_fieldValue_jwkcu_61", Lp = "_badge_jwkcu_68", Dp = "_badgeSuccess_jwkcu_76", Np = "_badgeWarning_jwkcu_81", Rp = "_badgeDanger_jwkcu_86", Mp = "_badgeNeutral_jwkcu_91", oe = {
9644
9644
  card: Sp,
9645
9645
  cardClickable: vp,
9646
9646
  header: _p,
@@ -9653,8 +9653,8 @@ const Sp = "_card_jwkcu_1", vp = "_cardClickable_jwkcu_14", _p = "_header_jwkcu_
9653
9653
  badge: Lp,
9654
9654
  badgeSuccess: Dp,
9655
9655
  badgeWarning: Np,
9656
- badgeDanger: Mp,
9657
- badgeNeutral: Rp
9656
+ badgeDanger: Rp,
9657
+ badgeNeutral: Mp
9658
9658
  }, Fp = {
9659
9659
  success: oe.badgeSuccess,
9660
9660
  warning: oe.badgeWarning,
@@ -9662,12 +9662,12 @@ const Sp = "_card_jwkcu_1", vp = "_cardClickable_jwkcu_14", _p = "_header_jwkcu_
9662
9662
  neutral: oe.badgeNeutral
9663
9663
  };
9664
9664
  function $i({ part: e, onEntityClick: n }) {
9665
- const { entity: t, entityType: r } = e, i = n !== void 0, o = /* @__PURE__ */ Q(un, { children: [
9666
- /* @__PURE__ */ Q("div", { className: oe.header, children: [
9665
+ const { entity: t, entityType: r } = e, i = n !== void 0, o = /* @__PURE__ */ Y(un, { children: [
9666
+ /* @__PURE__ */ Y("div", { className: oe.header, children: [
9667
9667
  /* @__PURE__ */ b("span", { className: oe.title, children: t.title }),
9668
9668
  t.subtitle && /* @__PURE__ */ b("span", { className: oe.subtitle, children: t.subtitle })
9669
9669
  ] }),
9670
- t.fields && t.fields.length > 0 && /* @__PURE__ */ b("dl", { className: oe.fields, children: t.fields.map((l, a) => /* @__PURE__ */ Q("div", { className: oe.fieldRow, children: [
9670
+ t.fields && t.fields.length > 0 && /* @__PURE__ */ b("dl", { className: oe.fields, children: t.fields.map((l, a) => /* @__PURE__ */ Y("div", { className: oe.fieldRow, children: [
9671
9671
  /* @__PURE__ */ b("dt", { className: oe.fieldLabel, children: l.label }),
9672
9672
  /* @__PURE__ */ b("dd", { className: oe.fieldValue, children: l.badge ? /* @__PURE__ */ b("span", { className: `${oe.badge} ${Fp[l.badge]}`, children: l.value }) : l.value })
9673
9673
  ] }, a)) })
@@ -9687,7 +9687,7 @@ const Op = "_list_a2maw_1", Bp = "_listTitle_a2maw_11", Er = {
9687
9687
  listTitle: Bp
9688
9688
  };
9689
9689
  function jp({ part: e, onEntityClick: n }) {
9690
- return /* @__PURE__ */ Q("div", { className: Er.list, children: [
9690
+ return /* @__PURE__ */ Y("div", { className: Er.list, children: [
9691
9691
  e.title && /* @__PURE__ */ b("span", { className: Er.listTitle, children: e.title }),
9692
9692
  e.entities.map((t, r) => /* @__PURE__ */ b(
9693
9693
  $i,
@@ -9732,12 +9732,12 @@ function qp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick:
9732
9732
  case "entity-list":
9733
9733
  return /* @__PURE__ */ b(jp, { part: e, onEntityClick: r });
9734
9734
  case "error":
9735
- return /* @__PURE__ */ Q("span", { className: xt.errorText, children: [
9735
+ return /* @__PURE__ */ Y("span", { className: xt.errorText, children: [
9736
9736
  /* @__PURE__ */ b(Al, { className: xt.errorIcon }),
9737
9737
  e.message
9738
9738
  ] });
9739
9739
  default:
9740
- return globalThis.process?.env?.NODE_ENV !== "production" ? /* @__PURE__ */ Q("div", { className: xt.unknownPart, children: [
9740
+ return globalThis.process?.env?.NODE_ENV !== "production" ? /* @__PURE__ */ Y("div", { className: xt.unknownPart, children: [
9741
9741
  "Unhandled part type: ",
9742
9742
  /* @__PURE__ */ b("code", { children: e.type }),
9743
9743
  " — pass a",
@@ -9747,43 +9747,67 @@ function qp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick:
9747
9747
  ] }) : null;
9748
9748
  }
9749
9749
  }
9750
- const Wp = "_wrapper_1jkxo_1", Qp = "_user_1jkxo_15", Yp = "_assistant_1jkxo_23", Xp = "_avatar_1jkxo_31", Gp = "_bubble_1jkxo_77", Jp = "_empty_1jkxo_121", De = {
9750
+ const Wp = "_wrapper_1vhwh_1", Yp = "_user_1vhwh_8", Qp = "_assistant_1vhwh_12", Xp = "_avatar_1vhwh_16", Gp = "_content_1vhwh_39", Jp = "_bubble_1vhwh_55", Kp = "_block_1vhwh_65", Zp = "_empty_1vhwh_91", xe = {
9751
9751
  wrapper: Wp,
9752
- user: Qp,
9753
- assistant: Yp,
9752
+ user: Yp,
9753
+ assistant: Qp,
9754
9754
  avatar: Xp,
9755
- bubble: Gp,
9756
- empty: Jp
9757
- };
9758
- function Kp({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick: r, assistantIcon: i, renderPart: o }) {
9759
- const l = Ie(), a = e.role === "user";
9760
- return /* @__PURE__ */ Q("div", { className: `${De.wrapper} ${a ? De.user : De.assistant}`, children: [
9761
- !a && /* @__PURE__ */ b("div", { className: De.avatar, "aria-hidden": "true", children: i ?? /* @__PURE__ */ b(Nr, {}) }),
9762
- /* @__PURE__ */ Q("div", { className: De.bubble, children: [
9763
- e.parts.map((s, u) => /* @__PURE__ */ b(
9764
- qp,
9755
+ content: Gp,
9756
+ bubble: Jp,
9757
+ block: Kp,
9758
+ empty: Zp
9759
+ }, eh = /* @__PURE__ */ new Set(["text", "error", "activity"]);
9760
+ function th(e) {
9761
+ return !eh.has(e.type);
9762
+ }
9763
+ function nh(e) {
9764
+ const n = [];
9765
+ return e.forEach((t, r) => {
9766
+ const i = th(t), o = n[n.length - 1];
9767
+ if (o && !i && !o.block) {
9768
+ o.parts.push({ part: t, index: r });
9769
+ return;
9770
+ }
9771
+ n.push({ block: i, parts: [{ part: t, index: r }] });
9772
+ }), n;
9773
+ }
9774
+ function rh({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick: r, assistantIcon: i, renderPart: o }) {
9775
+ const l = Te(), a = e.role === "user", s = nh(e.parts), u = (f, c) => /* @__PURE__ */ b(
9776
+ qp,
9777
+ {
9778
+ part: f,
9779
+ onProposalConfirm: n,
9780
+ onProposalCancel: t,
9781
+ onEntityClick: r,
9782
+ renderPart: o
9783
+ },
9784
+ c
9785
+ );
9786
+ return /* @__PURE__ */ Y("div", { className: `${xe.wrapper} ${a ? xe.user : xe.assistant}`, children: [
9787
+ !a && /* @__PURE__ */ b("div", { className: xe.avatar, "aria-hidden": "true", children: i ?? /* @__PURE__ */ b(Nr, {}) }),
9788
+ /* @__PURE__ */ Y("div", { className: xe.content, children: [
9789
+ s.map((f, c) => /* @__PURE__ */ b(
9790
+ "div",
9765
9791
  {
9766
- part: s,
9767
- onProposalConfirm: n,
9768
- onProposalCancel: t,
9769
- onEntityClick: r,
9770
- renderPart: o
9792
+ className: f.block ? xe.block : xe.bubble,
9793
+ "data-juneau-segment": f.block ? "block" : "bubble",
9794
+ children: f.parts.map(({ part: h, index: p }) => u(h, p))
9771
9795
  },
9772
- u
9796
+ c
9773
9797
  )),
9774
- e.parts.length === 0 && /* @__PURE__ */ b("span", { className: De.empty })
9798
+ e.parts.length === 0 && /* @__PURE__ */ b("div", { className: xe.bubble, "data-juneau-segment": "bubble", children: /* @__PURE__ */ b("span", { className: xe.empty }) })
9775
9799
  ] }),
9776
- a && /* @__PURE__ */ b("div", { className: De.avatar, children: l.userLabel })
9800
+ a && /* @__PURE__ */ b("div", { className: xe.avatar, children: l.userLabel })
9777
9801
  ] });
9778
9802
  }
9779
- const Zp = "_wrapper_1oco7_1", eh = "_dot_1oco7_15", th = "_connectingLabel_1oco7_37", it = {
9780
- wrapper: Zp,
9781
- dot: eh,
9782
- connectingLabel: th
9803
+ const ih = "_wrapper_1oco7_1", lh = "_dot_1oco7_15", oh = "_connectingLabel_1oco7_37", it = {
9804
+ wrapper: ih,
9805
+ dot: lh,
9806
+ connectingLabel: oh
9783
9807
  };
9784
- function nh({ connecting: e = !1 }) {
9785
- const n = Ie();
9786
- return /* @__PURE__ */ Q(
9808
+ function ah({ connecting: e = !1 }) {
9809
+ const n = Te();
9810
+ return /* @__PURE__ */ Y(
9787
9811
  "div",
9788
9812
  {
9789
9813
  className: it.wrapper,
@@ -9797,23 +9821,23 @@ function nh({ connecting: e = !1 }) {
9797
9821
  }
9798
9822
  );
9799
9823
  }
9800
- const rh = "_list_ixto8_1", ih = "_empty_ixto8_21", lh = "_hint_ixto8_47", oh = "_typing_ixto8_61", bt = {
9801
- list: rh,
9802
- empty: ih,
9803
- hint: lh,
9804
- typing: oh
9824
+ const sh = "_list_ixto8_1", uh = "_empty_ixto8_21", ch = "_hint_ixto8_47", fh = "_typing_ixto8_61", bt = {
9825
+ list: sh,
9826
+ empty: uh,
9827
+ hint: ch,
9828
+ typing: fh
9805
9829
  };
9806
- function ah({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r, onProposalCancel: i, onEntityClick: o, assistantIcon: l, renderPart: a }) {
9807
- const s = Ie(), u = qe(null);
9830
+ function ph({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r, onProposalCancel: i, onEntityClick: o, assistantIcon: l, renderPart: a }) {
9831
+ const s = Te(), u = qe(null);
9808
9832
  return St(() => {
9809
9833
  u.current?.scrollIntoView({ behavior: "smooth" });
9810
- }, [e, n]), /* @__PURE__ */ Q("div", { className: bt.list, children: [
9811
- e.length === 0 && /* @__PURE__ */ Q("div", { className: bt.empty, children: [
9834
+ }, [e, n]), /* @__PURE__ */ Y("div", { className: bt.list, children: [
9835
+ e.length === 0 && /* @__PURE__ */ Y("div", { className: bt.empty, children: [
9812
9836
  /* @__PURE__ */ b("p", { children: s.emptyStateText }),
9813
9837
  /* @__PURE__ */ b("p", { className: bt.hint, children: /* @__PURE__ */ b("em", { children: s.emptyStateHint }) })
9814
9838
  ] }),
9815
9839
  e.map((f) => /* @__PURE__ */ b(
9816
- Kp,
9840
+ rh,
9817
9841
  {
9818
9842
  message: f,
9819
9843
  onProposalConfirm: r,
@@ -9824,23 +9848,23 @@ function ah({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r,
9824
9848
  },
9825
9849
  f.id
9826
9850
  )),
9827
- n && /* @__PURE__ */ b("div", { className: bt.typing, children: /* @__PURE__ */ b(nh, { connecting: t }) }),
9851
+ n && /* @__PURE__ */ b("div", { className: bt.typing, children: /* @__PURE__ */ b(ah, { connecting: t }) }),
9828
9852
  /* @__PURE__ */ b("div", { ref: u })
9829
9853
  ] });
9830
9854
  }
9831
- const sh = "_wrapper_ehrkb_1", uh = "_textarea_ehrkb_21", ch = "_toolbar_ehrkb_69", fh = "_actions_ehrkb_89", ph = "_actionBtn_ehrkb_103", hh = "_sendBtn_ehrkb_169", dh = "_spinnerIcon_ehrkb_231", mh = "_stopBtn_ehrkb_251", gh = "_stopIcon_ehrkb_297", Se = {
9832
- wrapper: sh,
9833
- textarea: uh,
9834
- toolbar: ch,
9835
- actions: fh,
9836
- actionBtn: ph,
9837
- sendBtn: hh,
9838
- spinnerIcon: dh,
9839
- stopBtn: mh,
9840
- stopIcon: gh
9855
+ const hh = "_wrapper_ehrkb_1", dh = "_textarea_ehrkb_21", mh = "_toolbar_ehrkb_69", gh = "_actions_ehrkb_89", yh = "_actionBtn_ehrkb_103", kh = "_sendBtn_ehrkb_169", xh = "_spinnerIcon_ehrkb_231", bh = "_stopBtn_ehrkb_251", wh = "_stopIcon_ehrkb_297", ve = {
9856
+ wrapper: hh,
9857
+ textarea: dh,
9858
+ toolbar: mh,
9859
+ actions: gh,
9860
+ actionBtn: yh,
9861
+ sendBtn: kh,
9862
+ spinnerIcon: xh,
9863
+ stopBtn: bh,
9864
+ stopIcon: wh
9841
9865
  };
9842
- function yh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeholder: o, actions: l, sendIcon: a }) {
9843
- const s = Ie(), u = qe(null), f = qe(!1);
9866
+ function Ch({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeholder: o, actions: l, sendIcon: a }) {
9867
+ const s = Te(), u = qe(null), f = qe(!1);
9844
9868
  St(() => {
9845
9869
  f.current && !i && u.current?.focus(), f.current = i;
9846
9870
  }, [i]);
@@ -9853,12 +9877,12 @@ function yh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9853
9877
  ], h = l ?? c, p = (g) => {
9854
9878
  g.key === "Enter" && !g.shiftKey && (g.preventDefault(), i || t());
9855
9879
  };
9856
- return /* @__PURE__ */ Q("div", { className: Se.wrapper, children: [
9880
+ return /* @__PURE__ */ Y("div", { className: ve.wrapper, children: [
9857
9881
  /* @__PURE__ */ b(
9858
9882
  "textarea",
9859
9883
  {
9860
9884
  ref: u,
9861
- className: Se.textarea,
9885
+ className: ve.textarea,
9862
9886
  value: e,
9863
9887
  onChange: (g) => n(g.target.value),
9864
9888
  onKeyDown: p,
@@ -9867,11 +9891,11 @@ function yh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9867
9891
  "aria-label": s.sendMessage
9868
9892
  }
9869
9893
  ),
9870
- /* @__PURE__ */ Q("div", { className: Se.toolbar, children: [
9871
- h.length > 0 && /* @__PURE__ */ b("div", { className: Se.actions, children: h.map((g, C) => /* @__PURE__ */ Q(
9894
+ /* @__PURE__ */ Y("div", { className: ve.toolbar, children: [
9895
+ h.length > 0 && /* @__PURE__ */ b("div", { className: ve.actions, children: h.map((g, C) => /* @__PURE__ */ Y(
9872
9896
  "button",
9873
9897
  {
9874
- className: Se.actionBtn,
9898
+ className: ve.actionBtn,
9875
9899
  type: "button",
9876
9900
  disabled: i,
9877
9901
  "aria-label": g.label,
@@ -9883,28 +9907,28 @@ function yh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9883
9907
  },
9884
9908
  C
9885
9909
  )) }),
9886
- i && r ? /* @__PURE__ */ Q(
9910
+ i && r ? /* @__PURE__ */ Y(
9887
9911
  "button",
9888
9912
  {
9889
- className: Se.stopBtn,
9913
+ className: ve.stopBtn,
9890
9914
  onClick: r,
9891
9915
  "aria-label": s.stopMessage,
9892
9916
  type: "button",
9893
9917
  children: [
9894
- /* @__PURE__ */ b("svg", { className: Se.stopIcon, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2" }) }),
9918
+ /* @__PURE__ */ b("svg", { className: ve.stopIcon, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2" }) }),
9895
9919
  /* @__PURE__ */ b("span", { children: s.stopMessage })
9896
9920
  ]
9897
9921
  }
9898
- ) : /* @__PURE__ */ Q(
9922
+ ) : /* @__PURE__ */ Y(
9899
9923
  "button",
9900
9924
  {
9901
- className: Se.sendBtn,
9925
+ className: ve.sendBtn,
9902
9926
  onClick: t,
9903
9927
  disabled: i || !e.trim(),
9904
9928
  "aria-label": s.sendMessage,
9905
9929
  type: "button",
9906
9930
  children: [
9907
- i ? /* @__PURE__ */ b("svg", { className: Se.spinnerIcon, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ b("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeDasharray: "32", strokeDashoffset: "12" }) }) : a ?? /* @__PURE__ */ b(xl, {}),
9931
+ i ? /* @__PURE__ */ b("svg", { className: ve.spinnerIcon, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ b("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeDasharray: "32", strokeDashoffset: "12" }) }) : a ?? /* @__PURE__ */ b(xl, {}),
9908
9932
  /* @__PURE__ */ b("span", { children: s.sendMessage })
9909
9933
  ]
9910
9934
  }
@@ -9912,24 +9936,24 @@ function yh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9912
9936
  ] })
9913
9937
  ] });
9914
9938
  }
9915
- const kh = "_wrapper_1e3w5_1", xh = "_icon_1e3w5_27", bh = "_message_1e3w5_39", wh = "_dismiss_1e3w5_47", wt = {
9916
- wrapper: kh,
9917
- icon: xh,
9918
- message: bh,
9919
- dismiss: wh
9939
+ const Sh = "_wrapper_1e3w5_1", vh = "_icon_1e3w5_27", _h = "_message_1e3w5_39", Eh = "_dismiss_1e3w5_47", wt = {
9940
+ wrapper: Sh,
9941
+ icon: vh,
9942
+ message: _h,
9943
+ dismiss: Eh
9920
9944
  };
9921
- function Ch({ message: e, onDismiss: n }) {
9922
- const t = Ie();
9923
- return /* @__PURE__ */ Q("div", { className: wt.wrapper, role: "alert", children: [
9945
+ function Ah({ message: e, onDismiss: n }) {
9946
+ const t = Te();
9947
+ return /* @__PURE__ */ Y("div", { className: wt.wrapper, role: "alert", children: [
9924
9948
  /* @__PURE__ */ b("svg", { className: wt.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("path", { fillRule: "evenodd", d: "M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" }) }),
9925
9949
  /* @__PURE__ */ b("span", { className: wt.message, children: e }),
9926
9950
  n && /* @__PURE__ */ b("button", { className: wt.dismiss, onClick: n, "aria-label": t.errorDismiss, children: /* @__PURE__ */ b("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("path", { d: "M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z" }) }) })
9927
9951
  ] });
9928
9952
  }
9929
- const Sh = "_chat_13051_1", vh = {
9930
- chat: Sh
9953
+ const Ih = "_chat_13051_1", Th = {
9954
+ chat: Ih
9931
9955
  };
9932
- function _h({
9956
+ function zh({
9933
9957
  messages: e,
9934
9958
  input: n,
9935
9959
  isLoading: t,
@@ -9949,14 +9973,14 @@ function _h({
9949
9973
  className: S,
9950
9974
  style: y
9951
9975
  }) {
9952
- return /* @__PURE__ */ Q(
9976
+ return /* @__PURE__ */ Y(
9953
9977
  "div",
9954
9978
  {
9955
- className: [vh.chat, S].filter(Boolean).join(" "),
9979
+ className: [Th.chat, S].filter(Boolean).join(" "),
9956
9980
  style: y,
9957
9981
  children: [
9958
9982
  /* @__PURE__ */ b(
9959
- ah,
9983
+ ph,
9960
9984
  {
9961
9985
  messages: e,
9962
9986
  isLoading: t,
@@ -9968,9 +9992,9 @@ function _h({
9968
9992
  renderPart: C
9969
9993
  }
9970
9994
  ),
9971
- i && /* @__PURE__ */ b(Ch, { message: i }),
9995
+ i && /* @__PURE__ */ b(Ah, { message: i }),
9972
9996
  /* @__PURE__ */ b(
9973
- yh,
9997
+ Ch,
9974
9998
  {
9975
9999
  value: n,
9976
10000
  onChange: o,
@@ -9986,22 +10010,22 @@ function _h({
9986
10010
  }
9987
10011
  );
9988
10012
  }
9989
- const Eh = "_header_1saak_1", Ah = "_left_1saak_23", Ih = "_icon_1saak_35", Th = "_title_1saak_45", zh = "_resetBtn_1saak_57", Ph = "_actions_1saak_99", Ne = {
9990
- header: Eh,
9991
- left: Ah,
9992
- icon: Ih,
9993
- title: Th,
9994
- resetBtn: zh,
9995
- actions: Ph
10013
+ const Ph = "_header_1saak_1", Lh = "_left_1saak_23", Dh = "_icon_1saak_35", Nh = "_title_1saak_45", Rh = "_resetBtn_1saak_57", Mh = "_actions_1saak_99", Ne = {
10014
+ header: Ph,
10015
+ left: Lh,
10016
+ icon: Dh,
10017
+ title: Nh,
10018
+ resetBtn: Rh,
10019
+ actions: Mh
9996
10020
  };
9997
- function Lh({ title: e, onMinimize: n, isMinimized: t, icon: r, onReset: i }) {
9998
- const o = Ie();
9999
- return /* @__PURE__ */ Q("div", { className: Ne.header, children: [
10000
- /* @__PURE__ */ Q("div", { className: Ne.left, children: [
10021
+ function Fh({ title: e, onMinimize: n, isMinimized: t, icon: r, onReset: i }) {
10022
+ const o = Te();
10023
+ return /* @__PURE__ */ Y("div", { className: Ne.header, children: [
10024
+ /* @__PURE__ */ Y("div", { className: Ne.left, children: [
10001
10025
  /* @__PURE__ */ b("span", { className: Ne.icon, "aria-hidden": "true", children: r ?? /* @__PURE__ */ b(Nr, {}) }),
10002
10026
  /* @__PURE__ */ b("span", { className: Ne.title, children: e ?? o.sidebarTitle })
10003
10027
  ] }),
10004
- (n || i) && /* @__PURE__ */ Q("div", { className: Ne.actions, children: [
10028
+ (n || i) && /* @__PURE__ */ Y("div", { className: Ne.actions, children: [
10005
10029
  i && /* @__PURE__ */ b(
10006
10030
  "button",
10007
10031
  {
@@ -10025,11 +10049,11 @@ function Lh({ title: e, onMinimize: n, isMinimized: t, icon: r, onReset: i }) {
10025
10049
  ] })
10026
10050
  ] });
10027
10051
  }
10028
- const Dh = "_sidebar_u9ybt_1", Nh = "_minimized_u9ybt_39", Ar = {
10029
- sidebar: Dh,
10030
- minimized: Nh
10052
+ const Oh = "_sidebar_u9ybt_1", Bh = "_minimized_u9ybt_39", Ar = {
10053
+ sidebar: Oh,
10054
+ minimized: Bh
10031
10055
  };
10032
- function ed({
10056
+ function ld({
10033
10057
  title: e,
10034
10058
  icon: n,
10035
10059
  actions: t,
@@ -10041,7 +10065,7 @@ function ed({
10041
10065
  renderPart: s,
10042
10066
  onEntityClick: u
10043
10067
  }) {
10044
- const [f, c] = Re(!1), {
10068
+ const [f, c] = Me(!1), {
10045
10069
  messages: h,
10046
10070
  input: p,
10047
10071
  setInput: g,
@@ -10056,14 +10080,14 @@ function ed({
10056
10080
  } = kl(), O = a ? () => {
10057
10081
  L(), a();
10058
10082
  } : void 0;
10059
- return /* @__PURE__ */ Q(
10083
+ return /* @__PURE__ */ Y(
10060
10084
  "aside",
10061
10085
  {
10062
10086
  className: [Ar.sidebar, f ? Ar.minimized : "", o].filter(Boolean).join(" "),
10063
10087
  style: { height: f ? void 0 : i, ...l },
10064
10088
  children: [
10065
10089
  /* @__PURE__ */ b(
10066
- Lh,
10090
+ Fh,
10067
10091
  {
10068
10092
  title: e,
10069
10093
  icon: n,
@@ -10073,7 +10097,7 @@ function ed({
10073
10097
  }
10074
10098
  ),
10075
10099
  !f && /* @__PURE__ */ b(
10076
- _h,
10100
+ zh,
10077
10101
  {
10078
10102
  messages: h,
10079
10103
  input: p,
@@ -10096,34 +10120,34 @@ function ed({
10096
10120
  }
10097
10121
  );
10098
10122
  }
10099
- const Mh = "_list_j7fvh_1", Rh = "_item_j7fvh_19", Fh = "_chat_j7fvh_31", Oh = "_chatActive_j7fvh_71", Bh = "_title_j7fvh_79", jh = "_date_j7fvh_99", $h = "_empty_j7fvh_163", ve = {
10100
- list: Mh,
10101
- item: Rh,
10102
- chat: Fh,
10103
- chatActive: Oh,
10104
- title: Bh,
10105
- date: jh,
10123
+ const jh = "_list_j7fvh_1", $h = "_item_j7fvh_19", Hh = "_chat_j7fvh_31", Vh = "_chatActive_j7fvh_71", Uh = "_title_j7fvh_79", qh = "_date_j7fvh_99", Wh = "_empty_j7fvh_163", _e = {
10124
+ list: jh,
10125
+ item: $h,
10126
+ chat: Hh,
10127
+ chatActive: Vh,
10128
+ title: Uh,
10129
+ date: qh,
10106
10130
  delete: "_delete_j7fvh_111",
10107
- empty: $h
10131
+ empty: Wh
10108
10132
  };
10109
- function td({ chats: e, onSelect: n, activeChatId: t, onDelete: r }) {
10110
- const i = Ie();
10111
- return e.length === 0 ? /* @__PURE__ */ b("p", { className: ve.empty, children: i.historyEmpty }) : /* @__PURE__ */ b("ul", { className: ve.list, children: e.map((o) => /* @__PURE__ */ Q("li", { className: ve.item, children: [
10112
- /* @__PURE__ */ Q(
10133
+ function od({ chats: e, onSelect: n, activeChatId: t, onDelete: r }) {
10134
+ const i = Te();
10135
+ return e.length === 0 ? /* @__PURE__ */ b("p", { className: _e.empty, children: i.historyEmpty }) : /* @__PURE__ */ b("ul", { className: _e.list, children: e.map((o) => /* @__PURE__ */ Y("li", { className: _e.item, children: [
10136
+ /* @__PURE__ */ Y(
10113
10137
  "button",
10114
10138
  {
10115
- className: o.id === t ? `${ve.chat} ${ve.chatActive}` : ve.chat,
10139
+ className: o.id === t ? `${_e.chat} ${_e.chatActive}` : _e.chat,
10116
10140
  onClick: () => n(o.id),
10117
10141
  children: [
10118
- /* @__PURE__ */ b("span", { className: ve.title, children: o.title }),
10119
- /* @__PURE__ */ b("span", { className: ve.date, children: o.updatedAt.toLocaleDateString(void 0, { day: "numeric", month: "short" }) })
10142
+ /* @__PURE__ */ b("span", { className: _e.title, children: o.title }),
10143
+ /* @__PURE__ */ b("span", { className: _e.date, children: o.updatedAt.toLocaleDateString(void 0, { day: "numeric", month: "short" }) })
10120
10144
  ]
10121
10145
  }
10122
10146
  ),
10123
10147
  r && /* @__PURE__ */ b(
10124
10148
  "button",
10125
10149
  {
10126
- className: ve.delete,
10150
+ className: _e.delete,
10127
10151
  onClick: () => r(o.id),
10128
10152
  "aria-label": i.historyDeleteChat,
10129
10153
  children: /* @__PURE__ */ b("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("path", { d: "M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z" }) })
@@ -10133,39 +10157,39 @@ function td({ chats: e, onSelect: n, activeChatId: t, onDelete: r }) {
10133
10157
  }
10134
10158
  export {
10135
10159
  Cp as AiActivityPart,
10136
- _h as AiChat,
10160
+ zh as AiChat,
10137
10161
  cn as AiChatContext,
10138
- td as AiChatHistoryList,
10139
- Kh as AiChatProvider,
10162
+ od as AiChatHistoryList,
10163
+ rd as AiChatProvider,
10140
10164
  $i as AiEntityCard,
10141
10165
  jp as AiEntityListPart,
10142
- Ch as AiError,
10143
- yh as AiInput,
10144
- Kp as AiMessageBubble,
10145
- ah as AiMessageList,
10166
+ Ah as AiError,
10167
+ Ch as AiInput,
10168
+ rh as AiMessageBubble,
10169
+ ph as AiMessageList,
10146
10170
  qp as AiMessagePartRenderer,
10147
10171
  gp as AiProposalCard,
10148
- ed as AiSidebar,
10172
+ ld as AiSidebar,
10149
10173
  lp as AiTablePart,
10150
- nh as AiTypingIndicator,
10151
- Gh as JuneauProvider,
10174
+ ah as AiTypingIndicator,
10175
+ td as JuneauProvider,
10152
10176
  Nn as consumeStream,
10153
- Xh as createFetchStreamAdapter,
10154
- Yh as createSseAdapter,
10177
+ ed as createFetchStreamAdapter,
10178
+ Zh as createSseAdapter,
10155
10179
  K as delay,
10156
- qh as deserializeMessages,
10180
+ Gh as deserializeMessages,
10157
10181
  Ki as getMessageText,
10158
10182
  zr as isProposalPart,
10159
- Zh as juneauCs,
10183
+ id as juneauCs,
10160
10184
  Lr as juneauEn,
10161
- Qh as mockAdapter,
10185
+ Kh as mockAdapter,
10162
10186
  Pr as parseJuneauWire,
10163
- Uh as serializeForStorage,
10187
+ Xh as serializeForStorage,
10164
10188
  Ji as serializeMessages,
10165
- Wh as trimChats,
10189
+ Jh as trimChats,
10166
10190
  tl as trimHistory,
10167
10191
  dl as useAiChat,
10168
10192
  kl as useAiChatContext,
10169
- Jh as useAiChatContextSafe
10193
+ nd as useAiChatContextSafe
10170
10194
  };
10171
10195
  //# sourceMappingURL=index.js.map