@inploi/plugin-kin 2.1.0 → 2.1.1

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.
@@ -60,11 +60,11 @@ function vr() {
60
60
  vr.__r = 0;
61
61
  }
62
62
  function Lo(e, t, n, r, i, a, s, u, o, l, f) {
63
- var d, p, h, m, T, A, x, N, w, v, O = 0, C = r && r.__k || wo, U = C.length, B = U, z = t.length;
64
- for (n.__k = [], d = 0; d < z; d++)
65
- (m = n.__k[d] = (m = t[d]) == null || typeof m == "boolean" || typeof m == "function" ? null : typeof m == "string" || typeof m == "number" || typeof m == "bigint" ? yr(null, m, null, null, m) : Kr(m) ? yr($e, { children: m }, null, null, null) : m.__b > 0 ? yr(m.type, m.props, m.key, m.ref ? m.ref : null, m.__v) : m) != null && (m.__ = n, m.__b = n.__b + 1, (N = h0(m, C, x = d + O, B)) === -1 ? h = sn : (h = C[N] || sn, C[N] = void 0, B--), ba(e, m, h, i, a, s, u, o, l, f), T = m.__e, (p = m.ref) && h.ref != p && (h.ref && Ea(h.ref, null, m), f.push(p, m.__c || T, m)), T != null && (A == null && (A = T), v = !(w = h === sn || h.__v === null) && N === x, w ? N == -1 && O-- : N !== x && (N === x + 1 ? (O++, v = !0) : N > x ? B > z - x ? (O += N - x, v = !0) : O-- : O = N < x && N == x - 1 ? N - x : 0), x = d + O, v = v || N == d && !w, typeof m.type != "function" || N === x && h.__k !== m.__k ? typeof m.type == "function" || v ? m.__d !== void 0 ? (o = m.__d, m.__d = void 0) : o = T.nextSibling : o = Ro(e, T, o) : o = vo(m, o, e), typeof n.type == "function" && (n.__d = o)));
66
- for (n.__e = A, d = U; d--; )
67
- C[d] != null && (typeof n.type == "function" && C[d].__e != null && C[d].__e == n.__d && (n.__d = C[d].__e.nextSibling), Do(C[d], C[d]));
63
+ var d, p, h, m, T, C, y, I, w, D, R = 0, A = r && r.__k || wo, H = A.length, B = H, U = t.length;
64
+ for (n.__k = [], d = 0; d < U; d++)
65
+ (m = n.__k[d] = (m = t[d]) == null || typeof m == "boolean" || typeof m == "function" ? null : typeof m == "string" || typeof m == "number" || typeof m == "bigint" ? yr(null, m, null, null, m) : Kr(m) ? yr($e, { children: m }, null, null, null) : m.__b > 0 ? yr(m.type, m.props, m.key, m.ref ? m.ref : null, m.__v) : m) != null && (m.__ = n, m.__b = n.__b + 1, (I = h0(m, A, y = d + R, B)) === -1 ? h = sn : (h = A[I] || sn, A[I] = void 0, B--), ba(e, m, h, i, a, s, u, o, l, f), T = m.__e, (p = m.ref) && h.ref != p && (h.ref && Ea(h.ref, null, m), f.push(p, m.__c || T, m)), T != null && (C == null && (C = T), D = !(w = h === sn || h.__v === null) && I === y, w ? I == -1 && R-- : I !== y && (I === y + 1 ? (R++, D = !0) : I > y ? B > U - y ? (R += I - y, D = !0) : R-- : R = I < y && I == y - 1 ? I - y : 0), y = d + R, D = D || I == d && !w, typeof m.type != "function" || I === y && h.__k !== m.__k ? typeof m.type == "function" || D ? m.__d !== void 0 ? (o = m.__d, m.__d = void 0) : o = T.nextSibling : o = Ro(e, T, o) : o = vo(m, o, e), typeof n.type == "function" && (n.__d = o)));
66
+ for (n.__e = C, d = H; d--; )
67
+ A[d] != null && (typeof n.type == "function" && A[d].__e != null && A[d].__e == n.__d && (n.__d = A[d].__e.nextSibling), Do(A[d], A[d]));
68
68
  }
69
69
  function vo(e, t, n) {
70
70
  for (var r, i = e.__k, a = 0; i && a < i.length; a++)
@@ -143,42 +143,42 @@ function Es(e) {
143
143
  return this.l[e.type + !0](W.event ? W.event(e) : e);
144
144
  }
145
145
  function ba(e, t, n, r, i, a, s, u, o, l) {
146
- var f, d, p, h, m, T, A, x, N, w, v, O, C, U, B, z = t.type;
146
+ var f, d, p, h, m, T, C, y, I, w, D, R, A, H, B, U = t.type;
147
147
  if (t.constructor !== void 0)
148
148
  return null;
149
149
  n.__h != null && (o = n.__h, u = t.__e = n.__e, t.__h = null, a = [u]), (f = W.__b) && f(t);
150
150
  try {
151
151
  e:
152
- if (typeof z == "function") {
153
- if (x = t.props, N = (f = z.contextType) && r[f.__c], w = f ? N ? N.props.value : f.__ : r, n.__c ? A = (d = t.__c = n.__c).__ = d.__E : ("prototype" in z && z.prototype.render ? t.__c = d = new z(x, w) : (t.__c = d = new ht(x, w), d.constructor = z, d.render = g0), N && N.sub(d), d.props = x, d.state || (d.state = {}), d.context = w, d.__n = r, p = d.__d = !0, d.__h = [], d._sb = []), d.__s == null && (d.__s = d.state), z.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = vt({}, d.__s)), vt(d.__s, z.getDerivedStateFromProps(x, d.__s))), h = d.props, m = d.state, d.__v = t, p)
154
- z.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), d.componentDidMount != null && d.__h.push(d.componentDidMount);
152
+ if (typeof U == "function") {
153
+ if (y = t.props, I = (f = U.contextType) && r[f.__c], w = f ? I ? I.props.value : f.__ : r, n.__c ? C = (d = t.__c = n.__c).__ = d.__E : ("prototype" in U && U.prototype.render ? t.__c = d = new U(y, w) : (t.__c = d = new ht(y, w), d.constructor = U, d.render = g0), I && I.sub(d), d.props = y, d.state || (d.state = {}), d.context = w, d.__n = r, p = d.__d = !0, d.__h = [], d._sb = []), d.__s == null && (d.__s = d.state), U.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = vt({}, d.__s)), vt(d.__s, U.getDerivedStateFromProps(y, d.__s))), h = d.props, m = d.state, d.__v = t, p)
154
+ U.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), d.componentDidMount != null && d.__h.push(d.componentDidMount);
155
155
  else {
156
- if (z.getDerivedStateFromProps == null && x !== h && d.componentWillReceiveProps != null && d.componentWillReceiveProps(x, w), !d.__e && (d.shouldComponentUpdate != null && d.shouldComponentUpdate(x, d.__s, w) === !1 || t.__v === n.__v)) {
157
- for (t.__v !== n.__v && (d.props = x, d.state = d.__s, d.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(I) {
158
- I && (I.__ = t);
159
- }), v = 0; v < d._sb.length; v++)
160
- d.__h.push(d._sb[v]);
156
+ if (U.getDerivedStateFromProps == null && y !== h && d.componentWillReceiveProps != null && d.componentWillReceiveProps(y, w), !d.__e && (d.shouldComponentUpdate != null && d.shouldComponentUpdate(y, d.__s, w) === !1 || t.__v === n.__v)) {
157
+ for (t.__v !== n.__v && (d.props = y, d.state = d.__s, d.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(N) {
158
+ N && (N.__ = t);
159
+ }), D = 0; D < d._sb.length; D++)
160
+ d.__h.push(d._sb[D]);
161
161
  d._sb = [], d.__h.length && s.push(d);
162
162
  break e;
163
163
  }
164
- d.componentWillUpdate != null && d.componentWillUpdate(x, d.__s, w), d.componentDidUpdate != null && d.__h.push(function() {
164
+ d.componentWillUpdate != null && d.componentWillUpdate(y, d.__s, w), d.componentDidUpdate != null && d.__h.push(function() {
165
165
  d.componentDidUpdate(h, m, T);
166
166
  });
167
167
  }
168
- if (d.context = w, d.props = x, d.__P = e, d.__e = !1, O = W.__r, C = 0, "prototype" in z && z.prototype.render) {
169
- for (d.state = d.__s, d.__d = !1, O && O(t), f = d.render(d.props, d.state, d.context), U = 0; U < d._sb.length; U++)
170
- d.__h.push(d._sb[U]);
168
+ if (d.context = w, d.props = y, d.__P = e, d.__e = !1, R = W.__r, A = 0, "prototype" in U && U.prototype.render) {
169
+ for (d.state = d.__s, d.__d = !1, R && R(t), f = d.render(d.props, d.state, d.context), H = 0; H < d._sb.length; H++)
170
+ d.__h.push(d._sb[H]);
171
171
  d._sb = [];
172
172
  } else
173
173
  do
174
- d.__d = !1, O && O(t), f = d.render(d.props, d.state, d.context), d.state = d.__s;
175
- while (d.__d && ++C < 25);
176
- d.state = d.__s, d.getChildContext != null && (r = vt(vt({}, r), d.getChildContext())), p || d.getSnapshotBeforeUpdate == null || (T = d.getSnapshotBeforeUpdate(h, m)), Lo(e, Kr(B = f != null && f.type === $e && f.key == null ? f.props.children : f) ? B : [B], t, n, r, i, a, s, u, o, l), d.base = t.__e, t.__h = null, d.__h.length && s.push(d), A && (d.__E = d.__ = null);
174
+ d.__d = !1, R && R(t), f = d.render(d.props, d.state, d.context), d.state = d.__s;
175
+ while (d.__d && ++A < 25);
176
+ d.state = d.__s, d.getChildContext != null && (r = vt(vt({}, r), d.getChildContext())), p || d.getSnapshotBeforeUpdate == null || (T = d.getSnapshotBeforeUpdate(h, m)), Lo(e, Kr(B = f != null && f.type === $e && f.key == null ? f.props.children : f) ? B : [B], t, n, r, i, a, s, u, o, l), d.base = t.__e, t.__h = null, d.__h.length && s.push(d), C && (d.__E = d.__ = null);
177
177
  } else
178
178
  a == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = m0(n.__e, t, n, r, i, a, s, o, l);
179
179
  (f = W.diffed) && f(t);
180
- } catch (I) {
181
- t.__v = null, (o || a != null) && (t.__e = u, t.__h = !!o, a[a.indexOf(u)] = null), W.__e(I, t, n);
180
+ } catch (N) {
181
+ t.__v = null, (o || a != null) && (t.__e = u, t.__h = !!o, a[a.indexOf(u)] = null), W.__e(N, t, n);
182
182
  }
183
183
  }
184
184
  function Oo(e, t, n) {
@@ -1169,11 +1169,11 @@ function G0({
1169
1169
  onUploadFile: s,
1170
1170
  inputRef: u
1171
1171
  }) {
1172
- const [o, l] = ce(""), [f, d] = ce(!1), p = Le(null), h = u ?? p, m = Le(null), [T, A] = ce($.isStreaming.value), [x, N] = ce($.connectionState.value), [w, v] = ce($.messages.value.length > 0), [O, C] = ce($.uploadState.value), [U, B] = ce($.uploadError.value), [z, I] = ce($.uploadFileName.value), [Y, M] = ce($.hasUnreadMessages.value);
1172
+ const [o, l] = ce(""), [f, d] = ce(!1), p = Le(null), h = u ?? p, m = Le(null), [T, C] = ce($.isStreaming.value), [y, I] = ce($.connectionState.value), [w, D] = ce($.messages.value.length > 0), [R, A] = ce($.uploadState.value), [H, B] = ce($.uploadError.value), [U, N] = ce($.uploadFileName.value), [Y, M] = ce($.hasUnreadMessages.value);
1173
1173
  we(() => tr(() => {
1174
- A($.isStreaming.value), N($.connectionState.value), v($.messages.value.length > 0), C($.uploadState.value), B($.uploadError.value), I($.uploadFileName.value), M($.hasUnreadMessages.value);
1174
+ C($.isStreaming.value), I($.connectionState.value), D($.messages.value.length > 0), A($.uploadState.value), B($.uploadError.value), N($.uploadFileName.value), M($.hasUnreadMessages.value);
1175
1175
  }), []);
1176
- const Q = x === "connected", ie = x === "connecting", K = x === "disconnected", Z = x === "idle", J = O === "uploading" || O === "processing", V = o.length > ws, Fe = o.trim().length > 0 && !T && !J && !V && (Q || ie), y = Q && !T && !J;
1176
+ const Q = y === "connected", ie = y === "connecting", K = y === "disconnected", Z = y === "idle", J = R === "uploading" || R === "processing", V = o.length > ws, Fe = o.trim().length > 0 && !T && !J && !V && (Q || ie), x = Q && !T && !J;
1177
1177
  we(() => {
1178
1178
  e && h.current && requestAnimationFrame(() => {
1179
1179
  var ue;
@@ -1202,7 +1202,7 @@ function G0({
1202
1202
  }, xe = () => {
1203
1203
  var ue;
1204
1204
  (ue = m.current) == null || ue.click();
1205
- }, Ee = () => J ? z ? `Uploading ${z}...` : "Uploading file..." : ie ? "Connecting..." : K ? "Disconnected - Click to retry" : T ? "Waiting for response..." : !e && w ? "Continue conversation..." : "Message...", We = () => J ? z ? `Uploading ${z}...` : "Uploading file..." : T ? "Waiting for response" : Z ? "Click to connect" : ie ? "Connecting..." : !Q && o.trim().length === 0 ? "Enter a message to send" : Q ? o.trim().length === 0 ? "Enter a message to send" : "Send message" : "Cannot send message", Ge = () => J ? "Uploading..." : y ? "Attach file (CV, document, or image)" : "Cannot upload file", Qe = (ue) => {
1205
+ }, Ee = () => J ? U ? `Uploading ${U}...` : "Uploading file..." : ie ? "Connecting..." : K ? "Disconnected - Click to retry" : T ? "Waiting for response..." : !e && w ? "Continue conversation..." : "Message...", We = () => J ? U ? `Uploading ${U}...` : "Uploading file..." : T ? "Waiting for response" : Z ? "Click to connect" : ie ? "Connecting..." : !Q && o.trim().length === 0 ? "Enter a message to send" : Q ? o.trim().length === 0 ? "Enter a message to send" : "Send message" : "Cannot send message", Ge = () => J ? "Uploading..." : x ? "Attach file (CV, document, or image)" : "Cannot upload file", Qe = (ue) => {
1206
1206
  a(), $.addMessage({
1207
1207
  role: "user",
1208
1208
  content: ue.message
@@ -1264,7 +1264,7 @@ function G0({
1264
1264
  }), b("button", {
1265
1265
  type: "button",
1266
1266
  class: `kin-launcher-attach ${J ? "is-uploading" : ""}`,
1267
- disabled: !y,
1267
+ disabled: !x,
1268
1268
  "aria-label": Ge(),
1269
1269
  onClick: xe,
1270
1270
  children: J ? b(W0, {}) : b(V0, {})
@@ -1280,11 +1280,11 @@ function G0({
1280
1280
  class: "kin-sr-only",
1281
1281
  role: "status",
1282
1282
  "aria-live": "polite",
1283
- children: [ie && "Connecting to Kin...", K && "Connection lost. Click input to retry.", T && "Kin is responding...", J && (z ? `Uploading ${z}...` : "Uploading file...")]
1284
- }), U && O === "error" && b("div", {
1283
+ children: [ie && "Connecting to Kin...", K && "Connection lost. Click input to retry.", T && "Kin is responding...", J && (U ? `Uploading ${U}...` : "Uploading file...")]
1284
+ }), H && R === "error" && b("div", {
1285
1285
  class: "kin-upload-error",
1286
1286
  role: "alert",
1287
- children: U
1287
+ children: H
1288
1288
  }), V && b("div", {
1289
1289
  class: "kin-char-limit-error",
1290
1290
  role: "alert",
@@ -1616,18 +1616,18 @@ function Zo(e, t, n, r) {
1616
1616
  }
1617
1617
  return p;
1618
1618
  function p() {
1619
- let h = Xo, m, T, A;
1619
+ let h = Xo, m, T, C;
1620
1620
  if ((!t || a(o, l, f[f.length - 1] || void 0)) && (h = pf(n(o, f)), h[0] === Gi))
1621
1621
  return h;
1622
1622
  if ("children" in o && o.children) {
1623
- const x = (
1623
+ const y = (
1624
1624
  /** @type {UnistParent} */
1625
1625
  o
1626
1626
  );
1627
- if (x.children && h[0] !== Qi)
1628
- for (T = (r ? x.children.length : -1) + s, A = f.concat(x); T > -1 && T < x.children.length; ) {
1629
- const N = x.children[T];
1630
- if (m = u(N, T, A)(), m[0] === Gi)
1627
+ if (y.children && h[0] !== Qi)
1628
+ for (T = (r ? y.children.length : -1) + s, C = f.concat(y); T > -1 && T < y.children.length; ) {
1629
+ const I = y.children[T];
1630
+ if (m = u(I, T, C)(), m[0] === Gi)
1631
1631
  return m;
1632
1632
  T = typeof m[1] == "number" ? m[1] : T + s;
1633
1633
  }
@@ -4036,10 +4036,10 @@ function mh(e, t, n, r) {
4036
4036
  }
4037
4037
  return -1;
4038
4038
  }
4039
- var D;
4039
+ var O;
4040
4040
  (function(e) {
4041
4041
  e.HTML = "http://www.w3.org/1999/xhtml", e.MATHML = "http://www.w3.org/1998/Math/MathML", e.SVG = "http://www.w3.org/2000/svg", e.XLINK = "http://www.w3.org/1999/xlink", e.XML = "http://www.w3.org/XML/1998/namespace", e.XMLNS = "http://www.w3.org/2000/xmlns/";
4042
- })(D || (D = {}));
4042
+ })(O || (O = {}));
4043
4043
  var jt;
4044
4044
  (function(e) {
4045
4045
  e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size";
@@ -4186,7 +4186,7 @@ function En(e) {
4186
4186
  return (t = gh.get(e)) !== null && t !== void 0 ? t : c.UNKNOWN;
4187
4187
  }
4188
4188
  const P = c, bh = {
4189
- [D.HTML]: /* @__PURE__ */ new Set([
4189
+ [O.HTML]: /* @__PURE__ */ new Set([
4190
4190
  P.ADDRESS,
4191
4191
  P.APPLET,
4192
4192
  P.AREA,
@@ -4269,11 +4269,11 @@ const P = c, bh = {
4269
4269
  P.WBR,
4270
4270
  P.XMP
4271
4271
  ]),
4272
- [D.MATHML]: /* @__PURE__ */ new Set([P.MI, P.MO, P.MN, P.MS, P.MTEXT, P.ANNOTATION_XML]),
4273
- [D.SVG]: /* @__PURE__ */ new Set([P.TITLE, P.FOREIGN_OBJECT, P.DESC]),
4274
- [D.XLINK]: /* @__PURE__ */ new Set(),
4275
- [D.XML]: /* @__PURE__ */ new Set(),
4276
- [D.XMLNS]: /* @__PURE__ */ new Set()
4272
+ [O.MATHML]: /* @__PURE__ */ new Set([P.MI, P.MO, P.MN, P.MS, P.MTEXT, P.ANNOTATION_XML]),
4273
+ [O.SVG]: /* @__PURE__ */ new Set([P.TITLE, P.FOREIGN_OBJECT, P.DESC]),
4274
+ [O.XLINK]: /* @__PURE__ */ new Set(),
4275
+ [O.XML]: /* @__PURE__ */ new Set(),
4276
+ [O.XMLNS]: /* @__PURE__ */ new Set()
4277
4277
  }, ea = /* @__PURE__ */ new Set([P.H1, P.H2, P.H3, P.H4, P.H5, P.H6]);
4278
4278
  S.STYLE, S.SCRIPT, S.XMP, S.IFRAME, S.NOEMBED, S.NOFRAMES, S.PLAINTEXT;
4279
4279
  var E;
@@ -6241,7 +6241,7 @@ class Ih {
6241
6241
  }
6242
6242
  //Update current element
6243
6243
  _isInTemplate() {
6244
- return this.currentTagId === c.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === D.HTML;
6244
+ return this.currentTagId === c.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === O.HTML;
6245
6245
  }
6246
6246
  _updateCurrentElement() {
6247
6247
  this.current = this.items[this.stackTop], this.currentTagId = this.tagIDs[this.stackTop];
@@ -6266,7 +6266,7 @@ class Ih {
6266
6266
  let n = this.stackTop + 1;
6267
6267
  do
6268
6268
  n = this.tagIDs.lastIndexOf(t, n - 1);
6269
- while (n > 0 && this.treeAdapter.getNamespaceURI(this.items[n]) !== D.HTML);
6269
+ while (n > 0 && this.treeAdapter.getNamespaceURI(this.items[n]) !== O.HTML);
6270
6270
  this.shortenToLength(Math.max(n, 0));
6271
6271
  }
6272
6272
  shortenToLength(t) {
@@ -6284,10 +6284,10 @@ class Ih {
6284
6284
  this.shortenToLength(Math.max(r, 0));
6285
6285
  }
6286
6286
  popUntilNumberedHeaderPopped() {
6287
- this.popUntilPopped(ea, D.HTML);
6287
+ this.popUntilPopped(ea, O.HTML);
6288
6288
  }
6289
6289
  popUntilTableCellPopped() {
6290
- this.popUntilPopped(wh, D.HTML);
6290
+ this.popUntilPopped(wh, O.HTML);
6291
6291
  }
6292
6292
  popAllUpToHtmlElement() {
6293
6293
  this.tmplCount = 0, this.shortenToLength(1);
@@ -6303,13 +6303,13 @@ class Ih {
6303
6303
  this.shortenToLength(r + 1);
6304
6304
  }
6305
6305
  clearBackToTableContext() {
6306
- this.clearBackTo(Sh, D.HTML);
6306
+ this.clearBackTo(Sh, O.HTML);
6307
6307
  }
6308
6308
  clearBackToTableBodyContext() {
6309
- this.clearBackTo(Ch, D.HTML);
6309
+ this.clearBackTo(Ch, O.HTML);
6310
6310
  }
6311
6311
  clearBackToTableRowContext() {
6312
- this.clearBackTo(Ah, D.HTML);
6312
+ this.clearBackTo(Ah, O.HTML);
6313
6313
  }
6314
6314
  remove(t) {
6315
6315
  const n = this._indexOf(t);
@@ -6334,19 +6334,19 @@ class Ih {
6334
6334
  for (let r = this.stackTop; r >= 0; r--) {
6335
6335
  const i = this.tagIDs[r];
6336
6336
  switch (this.treeAdapter.getNamespaceURI(this.items[r])) {
6337
- case D.HTML: {
6337
+ case O.HTML: {
6338
6338
  if (i === t)
6339
6339
  return !0;
6340
6340
  if (n.has(i))
6341
6341
  return !1;
6342
6342
  break;
6343
6343
  }
6344
- case D.SVG: {
6344
+ case O.SVG: {
6345
6345
  if (eu.has(i))
6346
6346
  return !1;
6347
6347
  break;
6348
6348
  }
6349
- case D.MATHML: {
6349
+ case O.MATHML: {
6350
6350
  if (Js.has(i))
6351
6351
  return !1;
6352
6352
  break;
@@ -6368,19 +6368,19 @@ class Ih {
6368
6368
  for (let t = this.stackTop; t >= 0; t--) {
6369
6369
  const n = this.tagIDs[t];
6370
6370
  switch (this.treeAdapter.getNamespaceURI(this.items[t])) {
6371
- case D.HTML: {
6371
+ case O.HTML: {
6372
6372
  if (ea.has(n))
6373
6373
  return !0;
6374
6374
  if (Fr.has(n))
6375
6375
  return !1;
6376
6376
  break;
6377
6377
  }
6378
- case D.SVG: {
6378
+ case O.SVG: {
6379
6379
  if (eu.has(n))
6380
6380
  return !1;
6381
6381
  break;
6382
6382
  }
6383
- case D.MATHML: {
6383
+ case O.MATHML: {
6384
6384
  if (Js.has(n))
6385
6385
  return !1;
6386
6386
  break;
@@ -6391,7 +6391,7 @@ class Ih {
6391
6391
  }
6392
6392
  hasInTableScope(t) {
6393
6393
  for (let n = this.stackTop; n >= 0; n--)
6394
- if (this.treeAdapter.getNamespaceURI(this.items[n]) === D.HTML)
6394
+ if (this.treeAdapter.getNamespaceURI(this.items[n]) === O.HTML)
6395
6395
  switch (this.tagIDs[n]) {
6396
6396
  case t:
6397
6397
  return !0;
@@ -6403,7 +6403,7 @@ class Ih {
6403
6403
  }
6404
6404
  hasTableBodyContextInTableScope() {
6405
6405
  for (let t = this.stackTop; t >= 0; t--)
6406
- if (this.treeAdapter.getNamespaceURI(this.items[t]) === D.HTML)
6406
+ if (this.treeAdapter.getNamespaceURI(this.items[t]) === O.HTML)
6407
6407
  switch (this.tagIDs[t]) {
6408
6408
  case c.TBODY:
6409
6409
  case c.THEAD:
@@ -6417,7 +6417,7 @@ class Ih {
6417
6417
  }
6418
6418
  hasInSelectScope(t) {
6419
6419
  for (let n = this.stackTop; n >= 0; n--)
6420
- if (this.treeAdapter.getNamespaceURI(this.items[n]) === D.HTML)
6420
+ if (this.treeAdapter.getNamespaceURI(this.items[n]) === O.HTML)
6421
6421
  switch (this.tagIDs[n]) {
6422
6422
  case t:
6423
6423
  return !0;
@@ -6837,17 +6837,17 @@ const ru = {
6837
6837
  "yChannelSelector",
6838
6838
  "zoomAndPan"
6839
6839
  ].map((e) => [e.toLowerCase(), e])), Uh = /* @__PURE__ */ new Map([
6840
- ["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: D.XLINK }],
6841
- ["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: D.XLINK }],
6842
- ["xlink:href", { prefix: "xlink", name: "href", namespace: D.XLINK }],
6843
- ["xlink:role", { prefix: "xlink", name: "role", namespace: D.XLINK }],
6844
- ["xlink:show", { prefix: "xlink", name: "show", namespace: D.XLINK }],
6845
- ["xlink:title", { prefix: "xlink", name: "title", namespace: D.XLINK }],
6846
- ["xlink:type", { prefix: "xlink", name: "type", namespace: D.XLINK }],
6847
- ["xml:lang", { prefix: "xml", name: "lang", namespace: D.XML }],
6848
- ["xml:space", { prefix: "xml", name: "space", namespace: D.XML }],
6849
- ["xmlns", { prefix: "", name: "xmlns", namespace: D.XMLNS }],
6850
- ["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: D.XMLNS }]
6840
+ ["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: O.XLINK }],
6841
+ ["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: O.XLINK }],
6842
+ ["xlink:href", { prefix: "xlink", name: "href", namespace: O.XLINK }],
6843
+ ["xlink:role", { prefix: "xlink", name: "role", namespace: O.XLINK }],
6844
+ ["xlink:show", { prefix: "xlink", name: "show", namespace: O.XLINK }],
6845
+ ["xlink:title", { prefix: "xlink", name: "title", namespace: O.XLINK }],
6846
+ ["xlink:type", { prefix: "xlink", name: "type", namespace: O.XLINK }],
6847
+ ["xml:lang", { prefix: "xml", name: "lang", namespace: O.XML }],
6848
+ ["xml:space", { prefix: "xml", name: "space", namespace: O.XML }],
6849
+ ["xmlns", { prefix: "", name: "xmlns", namespace: O.XMLNS }],
6850
+ ["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: O.XMLNS }]
6851
6851
  ]), zh = new Map([
6852
6852
  "altGlyph",
6853
6853
  "altGlyphDef",
@@ -6959,20 +6959,20 @@ function jh(e) {
6959
6959
  t != null && (e.tagName = t, e.tagID = En(e.tagName));
6960
6960
  }
6961
6961
  function qh(e, t) {
6962
- return t === D.MATHML && (e === c.MI || e === c.MO || e === c.MN || e === c.MS || e === c.MTEXT);
6962
+ return t === O.MATHML && (e === c.MI || e === c.MO || e === c.MN || e === c.MS || e === c.MTEXT);
6963
6963
  }
6964
6964
  function Vh(e, t, n) {
6965
- if (t === D.MATHML && e === c.ANNOTATION_XML) {
6965
+ if (t === O.MATHML && e === c.ANNOTATION_XML) {
6966
6966
  for (let r = 0; r < n.length; r++)
6967
6967
  if (n[r].name === jt.ENCODING) {
6968
6968
  const i = n[r].value.toLowerCase();
6969
6969
  return i === ru.TEXT_HTML || i === ru.APPLICATION_XML;
6970
6970
  }
6971
6971
  }
6972
- return t === D.SVG && (e === c.FOREIGN_OBJECT || e === c.DESC || e === c.TITLE);
6972
+ return t === O.SVG && (e === c.FOREIGN_OBJECT || e === c.DESC || e === c.TITLE);
6973
6973
  }
6974
6974
  function Wh(e, t, n, r) {
6975
- return (!r || r === D.HTML) && Vh(e, t, n) || (!r || r === D.MATHML) && qh(e, t);
6975
+ return (!r || r === O.HTML) && Vh(e, t, n) || (!r || r === O.MATHML) && qh(e, t);
6976
6976
  }
6977
6977
  const Gh = "hidden", Qh = 8, Kh = 3;
6978
6978
  var _;
@@ -7009,8 +7009,8 @@ class au {
7009
7009
  ...iu,
7010
7010
  ...n
7011
7011
  };
7012
- t ?? (t = r.treeAdapter.createElement(S.TEMPLATE, D.HTML, []));
7013
- const i = r.treeAdapter.createElement("documentmock", D.HTML, []), a = new this(r, i, t);
7012
+ t ?? (t = r.treeAdapter.createElement(S.TEMPLATE, O.HTML, []));
7013
+ const i = r.treeAdapter.createElement("documentmock", O.HTML, []), a = new this(r, i, t);
7014
7014
  return a.fragmentContextID === c.TEMPLATE && a.tmplInsertionModeStack.unshift(_.IN_TEMPLATE), a._initTokenizerForFragmentParsing(), a._insertFakeRootElement(), a._resetInsertionMode(), a._findFormInFragmentContext(), a;
7015
7015
  }
7016
7016
  getFragment() {
@@ -7049,12 +7049,12 @@ class au {
7049
7049
  }
7050
7050
  }
7051
7051
  _setContextModes(t, n) {
7052
- const r = t === this.document || t && this.treeAdapter.getNamespaceURI(t) === D.HTML;
7052
+ const r = t === this.document || t && this.treeAdapter.getNamespaceURI(t) === O.HTML;
7053
7053
  this.currentNotInHTML = !r, this.tokenizer.inForeignNode = !r && t !== void 0 && n !== void 0 && !this._isIntegrationPoint(n, t);
7054
7054
  }
7055
7055
  /** @protected */
7056
7056
  _switchToTextParsing(t, n) {
7057
- this._insertElement(t, D.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = _.TEXT;
7057
+ this._insertElement(t, O.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = _.TEXT;
7058
7058
  }
7059
7059
  switchToPlaintextParsing() {
7060
7060
  this.insertionMode = _.TEXT, this.originalInsertionMode = _.IN_BODY, this.tokenizer.state = Ae.PLAINTEXT;
@@ -7076,7 +7076,7 @@ class au {
7076
7076
  }
7077
7077
  }
7078
7078
  _initTokenizerForFragmentParsing() {
7079
- if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== D.HTML))
7079
+ if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== O.HTML))
7080
7080
  switch (this.fragmentContextID) {
7081
7081
  case c.TITLE:
7082
7082
  case c.TEXTAREA: {
@@ -7143,17 +7143,17 @@ class au {
7143
7143
  }
7144
7144
  /** @protected */
7145
7145
  _insertFakeElement(t, n) {
7146
- const r = this.treeAdapter.createElement(t, D.HTML, []);
7146
+ const r = this.treeAdapter.createElement(t, O.HTML, []);
7147
7147
  this._attachElementToTree(r, null), this.openElements.push(r, n);
7148
7148
  }
7149
7149
  /** @protected */
7150
7150
  _insertTemplate(t) {
7151
- const n = this.treeAdapter.createElement(t.tagName, D.HTML, t.attrs), r = this.treeAdapter.createDocumentFragment();
7151
+ const n = this.treeAdapter.createElement(t.tagName, O.HTML, t.attrs), r = this.treeAdapter.createDocumentFragment();
7152
7152
  this.treeAdapter.setTemplateContent(n, r), this._attachElementToTree(n, t.location), this.openElements.push(n, t.tagID), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(r, null);
7153
7153
  }
7154
7154
  /** @protected */
7155
7155
  _insertFakeRootElement() {
7156
- const t = this.treeAdapter.createElement(S.HTML, D.HTML, []);
7156
+ const t = this.treeAdapter.createElement(S.HTML, O.HTML, []);
7157
7157
  this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(t, null), this.treeAdapter.appendChild(this.openElements.current, t), this.openElements.push(t, c.HTML);
7158
7158
  }
7159
7159
  /** @protected */
@@ -7203,11 +7203,11 @@ class au {
7203
7203
  if (!this.currentNotInHTML)
7204
7204
  return !1;
7205
7205
  let n, r;
7206
- return this.openElements.stackTop === 0 && this.fragmentContext ? (n = this.fragmentContext, r = this.fragmentContextID) : { current: n, currentTagId: r } = this.openElements, t.tagID === c.SVG && this.treeAdapter.getTagName(n) === S.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(n) === D.MATHML ? !1 : (
7206
+ return this.openElements.stackTop === 0 && this.fragmentContext ? (n = this.fragmentContext, r = this.fragmentContextID) : { current: n, currentTagId: r } = this.openElements, t.tagID === c.SVG && this.treeAdapter.getTagName(n) === S.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(n) === O.MATHML ? !1 : (
7207
7207
  // Check that `current` is not an integration point for HTML or MathML elements.
7208
7208
  this.tokenizer.inForeignNode || // If it _is_ an integration point, then we might have to check that it is not an HTML
7209
7209
  // integration point.
7210
- (t.tagID === c.MGLYPH || t.tagID === c.MALIGNMARK) && r !== void 0 && !this._isIntegrationPoint(r, n, D.HTML)
7210
+ (t.tagID === c.MGLYPH || t.tagID === c.MALIGNMARK) && r !== void 0 && !this._isIntegrationPoint(r, n, O.HTML)
7211
7211
  );
7212
7212
  }
7213
7213
  /** @protected */
@@ -7368,7 +7368,7 @@ class au {
7368
7368
  const n = this.openElements.items[t];
7369
7369
  switch (this.openElements.tagIDs[t]) {
7370
7370
  case c.TEMPLATE: {
7371
- if (this.treeAdapter.getNamespaceURI(n) === D.HTML)
7371
+ if (this.treeAdapter.getNamespaceURI(n) === O.HTML)
7372
7372
  return { parent: this.treeAdapter.getTemplateContent(n), beforeElement: null };
7373
7373
  break;
7374
7374
  }
@@ -7926,7 +7926,7 @@ function np(e, t, n) {
7926
7926
  e._fosterParentElement(n);
7927
7927
  else {
7928
7928
  const a = e.treeAdapter.getNamespaceURI(t);
7929
- i === c.TEMPLATE && a === D.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n);
7929
+ i === c.TEMPLATE && a === O.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n);
7930
7930
  }
7931
7931
  }
7932
7932
  function rp(e, t, n) {
@@ -7978,7 +7978,7 @@ function wn(e, t) {
7978
7978
  e._err(t, L.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, tt.QUIRKS), e.insertionMode = _.BEFORE_HTML, e._processToken(t);
7979
7979
  }
7980
7980
  function up(e, t) {
7981
- t.tagID === c.HTML ? (e._insertElement(t, D.HTML), e.insertionMode = _.BEFORE_HEAD) : Fn(e, t);
7981
+ t.tagID === c.HTML ? (e._insertElement(t, O.HTML), e.insertionMode = _.BEFORE_HEAD) : Fn(e, t);
7982
7982
  }
7983
7983
  function op(e, t) {
7984
7984
  const n = t.tagID;
@@ -7994,7 +7994,7 @@ function lp(e, t) {
7994
7994
  break;
7995
7995
  }
7996
7996
  case c.HEAD: {
7997
- e._insertElement(t, D.HTML), e.headElement = e.openElements.current, e.insertionMode = _.IN_HEAD;
7997
+ e._insertElement(t, O.HTML), e.headElement = e.openElements.current, e.insertionMode = _.IN_HEAD;
7998
7998
  break;
7999
7999
  }
8000
8000
  default:
@@ -8019,7 +8019,7 @@ function lt(e, t) {
8019
8019
  case c.BGSOUND:
8020
8020
  case c.LINK:
8021
8021
  case c.META: {
8022
- e._appendElement(t, D.HTML), t.ackSelfClosing = !0;
8022
+ e._appendElement(t, O.HTML), t.ackSelfClosing = !0;
8023
8023
  break;
8024
8024
  }
8025
8025
  case c.TITLE: {
@@ -8027,7 +8027,7 @@ function lt(e, t) {
8027
8027
  break;
8028
8028
  }
8029
8029
  case c.NOSCRIPT: {
8030
- e.options.scriptingEnabled ? e._switchToTextParsing(t, Ae.RAWTEXT) : (e._insertElement(t, D.HTML), e.insertionMode = _.IN_HEAD_NO_SCRIPT);
8030
+ e.options.scriptingEnabled ? e._switchToTextParsing(t, Ae.RAWTEXT) : (e._insertElement(t, O.HTML), e.insertionMode = _.IN_HEAD_NO_SCRIPT);
8031
8031
  break;
8032
8032
  }
8033
8033
  case c.NOFRAMES:
@@ -8126,11 +8126,11 @@ function pp(e, t) {
8126
8126
  break;
8127
8127
  }
8128
8128
  case c.BODY: {
8129
- e._insertElement(t, D.HTML), e.framesetOk = !1, e.insertionMode = _.IN_BODY;
8129
+ e._insertElement(t, O.HTML), e.framesetOk = !1, e.insertionMode = _.IN_BODY;
8130
8130
  break;
8131
8131
  }
8132
8132
  case c.FRAMESET: {
8133
- e._insertElement(t, D.HTML), e.insertionMode = _.IN_FRAMESET;
8133
+ e._insertElement(t, O.HTML), e.insertionMode = _.IN_FRAMESET;
8134
8134
  break;
8135
8135
  }
8136
8136
  case c.BASE:
@@ -8216,20 +8216,20 @@ function bp(e, t) {
8216
8216
  }
8217
8217
  function Ep(e, t) {
8218
8218
  const n = e.openElements.tryPeekProperlyNestedBodyElement();
8219
- e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, D.HTML), e.insertionMode = _.IN_FRAMESET);
8219
+ e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, O.HTML), e.insertionMode = _.IN_FRAMESET);
8220
8220
  }
8221
8221
  function Tp(e, t) {
8222
- e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, D.HTML);
8222
+ e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, O.HTML);
8223
8223
  }
8224
8224
  function _p(e, t) {
8225
- e.openElements.hasInButtonScope(c.P) && e._closePElement(), e.openElements.currentTagId !== void 0 && ea.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, D.HTML);
8225
+ e.openElements.hasInButtonScope(c.P) && e._closePElement(), e.openElements.currentTagId !== void 0 && ea.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, O.HTML);
8226
8226
  }
8227
8227
  function kp(e, t) {
8228
- e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, D.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
8228
+ e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, O.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
8229
8229
  }
8230
8230
  function xp(e, t) {
8231
8231
  const n = e.openElements.tmplCount > 0;
8232
- (!e.formElement || n) && (e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, D.HTML), n || (e.formElement = e.openElements.current));
8232
+ (!e.formElement || n) && (e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, O.HTML), n || (e.formElement = e.openElements.current));
8233
8233
  }
8234
8234
  function yp(e, t) {
8235
8235
  e.framesetOk = !1;
@@ -8243,51 +8243,51 @@ function yp(e, t) {
8243
8243
  if (i !== c.ADDRESS && i !== c.DIV && i !== c.P && e._isSpecialElement(e.openElements.items[r], i))
8244
8244
  break;
8245
8245
  }
8246
- e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, D.HTML);
8246
+ e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, O.HTML);
8247
8247
  }
8248
8248
  function Ap(e, t) {
8249
- e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, D.HTML), e.tokenizer.state = Ae.PLAINTEXT;
8249
+ e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, O.HTML), e.tokenizer.state = Ae.PLAINTEXT;
8250
8250
  }
8251
8251
  function Cp(e, t) {
8252
- e.openElements.hasInScope(c.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(c.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, D.HTML), e.framesetOk = !1;
8252
+ e.openElements.hasInScope(c.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(c.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.framesetOk = !1;
8253
8253
  }
8254
8254
  function Sp(e, t) {
8255
8255
  const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);
8256
- n && (Pa(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, D.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
8256
+ n && (Pa(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
8257
8257
  }
8258
8258
  function wp(e, t) {
8259
- e._reconstructActiveFormattingElements(), e._insertElement(t, D.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
8259
+ e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
8260
8260
  }
8261
8261
  function Ip(e, t) {
8262
- e._reconstructActiveFormattingElements(), e.openElements.hasInScope(c.NOBR) && (Pa(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, D.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
8262
+ e._reconstructActiveFormattingElements(), e.openElements.hasInScope(c.NOBR) && (Pa(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
8263
8263
  }
8264
8264
  function Np(e, t) {
8265
- e._reconstructActiveFormattingElements(), e._insertElement(t, D.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
8265
+ e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
8266
8266
  }
8267
8267
  function Lp(e, t) {
8268
- e.treeAdapter.getDocumentMode(e.document) !== tt.QUIRKS && e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, D.HTML), e.framesetOk = !1, e.insertionMode = _.IN_TABLE;
8268
+ e.treeAdapter.getDocumentMode(e.document) !== tt.QUIRKS && e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, O.HTML), e.framesetOk = !1, e.insertionMode = _.IN_TABLE;
8269
8269
  }
8270
8270
  function Ll(e, t) {
8271
- e._reconstructActiveFormattingElements(), e._appendElement(t, D.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
8271
+ e._reconstructActiveFormattingElements(), e._appendElement(t, O.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
8272
8272
  }
8273
8273
  function vl(e) {
8274
8274
  const t = Tl(e, jt.TYPE);
8275
8275
  return t != null && t.toLowerCase() === Gh;
8276
8276
  }
8277
8277
  function vp(e, t) {
8278
- e._reconstructActiveFormattingElements(), e._appendElement(t, D.HTML), vl(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
8278
+ e._reconstructActiveFormattingElements(), e._appendElement(t, O.HTML), vl(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
8279
8279
  }
8280
8280
  function Rp(e, t) {
8281
- e._appendElement(t, D.HTML), t.ackSelfClosing = !0;
8281
+ e._appendElement(t, O.HTML), t.ackSelfClosing = !0;
8282
8282
  }
8283
8283
  function Op(e, t) {
8284
- e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._appendElement(t, D.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
8284
+ e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._appendElement(t, O.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
8285
8285
  }
8286
8286
  function Dp(e, t) {
8287
8287
  t.tagName = S.IMG, t.tagID = c.IMG, Ll(e, t);
8288
8288
  }
8289
8289
  function Pp(e, t) {
8290
- e._insertElement(t, D.HTML), e.skipNextNewLine = !0, e.tokenizer.state = Ae.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = _.TEXT;
8290
+ e._insertElement(t, O.HTML), e.skipNextNewLine = !0, e.tokenizer.state = Ae.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = _.TEXT;
8291
8291
  }
8292
8292
  function Mp(e, t) {
8293
8293
  e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, Ae.RAWTEXT);
@@ -8299,25 +8299,25 @@ function su(e, t) {
8299
8299
  e._switchToTextParsing(t, Ae.RAWTEXT);
8300
8300
  }
8301
8301
  function Fp(e, t) {
8302
- e._reconstructActiveFormattingElements(), e._insertElement(t, D.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === _.IN_TABLE || e.insertionMode === _.IN_CAPTION || e.insertionMode === _.IN_TABLE_BODY || e.insertionMode === _.IN_ROW || e.insertionMode === _.IN_CELL ? _.IN_SELECT_IN_TABLE : _.IN_SELECT;
8302
+ e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === _.IN_TABLE || e.insertionMode === _.IN_CAPTION || e.insertionMode === _.IN_TABLE_BODY || e.insertionMode === _.IN_ROW || e.insertionMode === _.IN_CELL ? _.IN_SELECT_IN_TABLE : _.IN_SELECT;
8303
8303
  }
8304
8304
  function Hp(e, t) {
8305
- e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, D.HTML);
8305
+ e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML);
8306
8306
  }
8307
8307
  function Up(e, t) {
8308
- e.openElements.hasInScope(c.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, D.HTML);
8308
+ e.openElements.hasInScope(c.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, O.HTML);
8309
8309
  }
8310
8310
  function zp(e, t) {
8311
- e.openElements.hasInScope(c.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(c.RTC), e._insertElement(t, D.HTML);
8311
+ e.openElements.hasInScope(c.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(c.RTC), e._insertElement(t, O.HTML);
8312
8312
  }
8313
8313
  function $p(e, t) {
8314
- e._reconstructActiveFormattingElements(), Cl(t), Da(t), t.selfClosing ? e._appendElement(t, D.MATHML) : e._insertElement(t, D.MATHML), t.ackSelfClosing = !0;
8314
+ e._reconstructActiveFormattingElements(), Cl(t), Da(t), t.selfClosing ? e._appendElement(t, O.MATHML) : e._insertElement(t, O.MATHML), t.ackSelfClosing = !0;
8315
8315
  }
8316
8316
  function Yp(e, t) {
8317
- e._reconstructActiveFormattingElements(), Sl(t), Da(t), t.selfClosing ? e._appendElement(t, D.SVG) : e._insertElement(t, D.SVG), t.ackSelfClosing = !0;
8317
+ e._reconstructActiveFormattingElements(), Sl(t), Da(t), t.selfClosing ? e._appendElement(t, O.SVG) : e._insertElement(t, O.SVG), t.ackSelfClosing = !0;
8318
8318
  }
8319
8319
  function uu(e, t) {
8320
- e._reconstructActiveFormattingElements(), e._insertElement(t, D.HTML);
8320
+ e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML);
8321
8321
  }
8322
8322
  function Me(e, t) {
8323
8323
  switch (t.tagID) {
@@ -8705,16 +8705,16 @@ function xi(e, t) {
8705
8705
  ir(e, t);
8706
8706
  }
8707
8707
  function n1(e, t) {
8708
- e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, D.HTML), e.insertionMode = _.IN_CAPTION;
8708
+ e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, O.HTML), e.insertionMode = _.IN_CAPTION;
8709
8709
  }
8710
8710
  function r1(e, t) {
8711
- e.openElements.clearBackToTableContext(), e._insertElement(t, D.HTML), e.insertionMode = _.IN_COLUMN_GROUP;
8711
+ e.openElements.clearBackToTableContext(), e._insertElement(t, O.HTML), e.insertionMode = _.IN_COLUMN_GROUP;
8712
8712
  }
8713
8713
  function i1(e, t) {
8714
8714
  e.openElements.clearBackToTableContext(), e._insertFakeElement(S.COLGROUP, c.COLGROUP), e.insertionMode = _.IN_COLUMN_GROUP, Ba(e, t);
8715
8715
  }
8716
8716
  function a1(e, t) {
8717
- e.openElements.clearBackToTableContext(), e._insertElement(t, D.HTML), e.insertionMode = _.IN_TABLE_BODY;
8717
+ e.openElements.clearBackToTableContext(), e._insertElement(t, O.HTML), e.insertionMode = _.IN_TABLE_BODY;
8718
8718
  }
8719
8719
  function s1(e, t) {
8720
8720
  e.openElements.clearBackToTableContext(), e._insertFakeElement(S.TBODY, c.TBODY), e.insertionMode = _.IN_TABLE_BODY, ii(e, t);
@@ -8723,10 +8723,10 @@ function u1(e, t) {
8723
8723
  e.openElements.hasInTableScope(c.TABLE) && (e.openElements.popUntilTagNamePopped(c.TABLE), e._resetInsertionMode(), e._processStartTag(t));
8724
8724
  }
8725
8725
  function o1(e, t) {
8726
- vl(t) ? e._appendElement(t, D.HTML) : ir(e, t), t.ackSelfClosing = !0;
8726
+ vl(t) ? e._appendElement(t, O.HTML) : ir(e, t), t.ackSelfClosing = !0;
8727
8727
  }
8728
8728
  function l1(e, t) {
8729
- !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, D.HTML), e.formElement = e.openElements.current, e.openElements.pop());
8729
+ !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, O.HTML), e.formElement = e.openElements.current, e.openElements.pop());
8730
8730
  }
8731
8731
  function dn(e, t) {
8732
8732
  switch (t.tagID) {
@@ -8857,7 +8857,7 @@ function Ba(e, t) {
8857
8857
  break;
8858
8858
  }
8859
8859
  case c.COL: {
8860
- e._appendElement(t, D.HTML), t.ackSelfClosing = !0;
8860
+ e._appendElement(t, O.HTML), t.ackSelfClosing = !0;
8861
8861
  break;
8862
8862
  }
8863
8863
  case c.TEMPLATE: {
@@ -8890,7 +8890,7 @@ function Hr(e, t) {
8890
8890
  function ii(e, t) {
8891
8891
  switch (t.tagID) {
8892
8892
  case c.TR: {
8893
- e.openElements.clearBackToTableBodyContext(), e._insertElement(t, D.HTML), e.insertionMode = _.IN_ROW;
8893
+ e.openElements.clearBackToTableBodyContext(), e._insertElement(t, O.HTML), e.insertionMode = _.IN_ROW;
8894
8894
  break;
8895
8895
  }
8896
8896
  case c.TH:
@@ -8941,7 +8941,7 @@ function ai(e, t) {
8941
8941
  switch (t.tagID) {
8942
8942
  case c.TH:
8943
8943
  case c.TD: {
8944
- e.openElements.clearBackToTableRowContext(), e._insertElement(t, D.HTML), e.insertionMode = _.IN_CELL, e.activeFormattingElements.insertMarker();
8944
+ e.openElements.clearBackToTableRowContext(), e._insertElement(t, O.HTML), e.insertionMode = _.IN_CELL, e.activeFormattingElements.insertMarker();
8945
8945
  break;
8946
8946
  }
8947
8947
  case c.CAPTION:
@@ -9023,15 +9023,15 @@ function Fl(e, t) {
9023
9023
  break;
9024
9024
  }
9025
9025
  case c.OPTION: {
9026
- e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e._insertElement(t, D.HTML);
9026
+ e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e._insertElement(t, O.HTML);
9027
9027
  break;
9028
9028
  }
9029
9029
  case c.OPTGROUP: {
9030
- e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e.openElements.currentTagId === c.OPTGROUP && e.openElements.pop(), e._insertElement(t, D.HTML);
9030
+ e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e.openElements.currentTagId === c.OPTGROUP && e.openElements.pop(), e._insertElement(t, O.HTML);
9031
9031
  break;
9032
9032
  }
9033
9033
  case c.HR: {
9034
- e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e.openElements.currentTagId === c.OPTGROUP && e.openElements.pop(), e._appendElement(t, D.HTML), t.ackSelfClosing = !0;
9034
+ e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e.openElements.currentTagId === c.OPTGROUP && e.openElements.pop(), e._appendElement(t, O.HTML), t.ackSelfClosing = !0;
9035
9035
  break;
9036
9036
  }
9037
9037
  case c.INPUT:
@@ -9146,11 +9146,11 @@ function _1(e, t) {
9146
9146
  break;
9147
9147
  }
9148
9148
  case c.FRAMESET: {
9149
- e._insertElement(t, D.HTML);
9149
+ e._insertElement(t, O.HTML);
9150
9150
  break;
9151
9151
  }
9152
9152
  case c.FRAME: {
9153
- e._appendElement(t, D.HTML), t.ackSelfClosing = !0;
9153
+ e._appendElement(t, O.HTML), t.ackSelfClosing = !0;
9154
9154
  break;
9155
9155
  }
9156
9156
  case c.NOFRAMES: {
@@ -9202,7 +9202,7 @@ function w1(e, t) {
9202
9202
  e._insertCharacters(t), e.framesetOk = !1;
9203
9203
  }
9204
9204
  function $l(e) {
9205
- for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== D.HTML && e.openElements.currentTagId !== void 0 && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current); )
9205
+ for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== O.HTML && e.openElements.currentTagId !== void 0 && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current); )
9206
9206
  e.openElements.pop();
9207
9207
  }
9208
9208
  function I1(e, t) {
@@ -9210,7 +9210,7 @@ function I1(e, t) {
9210
9210
  $l(e), e._startTagOutsideForeignContent(t);
9211
9211
  else {
9212
9212
  const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
9213
- r === D.MATHML ? Cl(t) : r === D.SVG && (jh(t), Sl(t)), Da(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
9213
+ r === O.MATHML ? Cl(t) : r === O.SVG && (jh(t), Sl(t)), Da(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
9214
9214
  }
9215
9215
  }
9216
9216
  function N1(e, t) {
@@ -9220,7 +9220,7 @@ function N1(e, t) {
9220
9220
  }
9221
9221
  for (let n = e.openElements.stackTop; n > 0; n--) {
9222
9222
  const r = e.openElements.items[n];
9223
- if (e.treeAdapter.getNamespaceURI(r) === D.HTML) {
9223
+ if (e.treeAdapter.getNamespaceURI(r) === O.HTML) {
9224
9224
  e._endTagOutsideForeignContent(t);
9225
9225
  break;
9226
9226
  }
@@ -9908,25 +9908,25 @@ function im(e, t, n) {
9908
9908
  function o(l, f) {
9909
9909
  const d = f[f.length - 1], p = a[s][0], h = a[s][1];
9910
9910
  let m = 0;
9911
- const A = d.children.indexOf(l);
9912
- let x = !1, N = [];
9911
+ const C = d.children.indexOf(l);
9912
+ let y = !1, I = [];
9913
9913
  p.lastIndex = 0;
9914
9914
  let w = p.exec(l.value);
9915
9915
  for (; w; ) {
9916
- const v = w.index, O = {
9916
+ const D = w.index, R = {
9917
9917
  index: w.index,
9918
9918
  input: w.input,
9919
9919
  stack: [...f, l]
9920
9920
  };
9921
- let C = h(...w, O);
9922
- if (typeof C == "string" && (C = C.length > 0 ? { type: "text", value: C } : void 0), C === !1 ? p.lastIndex = v + 1 : (m !== v && N.push({
9921
+ let A = h(...w, R);
9922
+ if (typeof A == "string" && (A = A.length > 0 ? { type: "text", value: A } : void 0), A === !1 ? p.lastIndex = D + 1 : (m !== D && I.push({
9923
9923
  type: "text",
9924
- value: l.value.slice(m, v)
9925
- }), Array.isArray(C) ? N.push(...C) : C && N.push(C), m = v + w[0].length, x = !0), !p.global)
9924
+ value: l.value.slice(m, D)
9925
+ }), Array.isArray(A) ? I.push(...A) : A && I.push(A), m = D + w[0].length, y = !0), !p.global)
9926
9926
  break;
9927
9927
  w = p.exec(l.value);
9928
9928
  }
9929
- return x ? (m < l.value.length && N.push({ type: "text", value: l.value.slice(m) }), d.children.splice(A, 1, ...N)) : N = [l], A + N.length;
9929
+ return y ? (m < l.value.length && I.push({ type: "text", value: l.value.slice(m) }), d.children.splice(C, 1, ...I)) : I = [l], C + I.length;
9930
9930
  }
9931
9931
  }
9932
9932
  function am(e) {
@@ -10217,17 +10217,17 @@ function Hm(e, t) {
10217
10217
  const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || Fm, a = [], s = [], u = [], o = [];
10218
10218
  let l = 0, f = -1;
10219
10219
  for (; ++f < e.length; ) {
10220
- const T = [], A = [];
10221
- let x = -1;
10222
- for (e[f].length > l && (l = e[f].length); ++x < e[f].length; ) {
10223
- const N = Um(e[f][x]);
10220
+ const T = [], C = [];
10221
+ let y = -1;
10222
+ for (e[f].length > l && (l = e[f].length); ++y < e[f].length; ) {
10223
+ const I = Um(e[f][y]);
10224
10224
  if (n.alignDelimiters !== !1) {
10225
- const w = i(N);
10226
- A[x] = w, (o[x] === void 0 || w > o[x]) && (o[x] = w);
10225
+ const w = i(I);
10226
+ C[y] = w, (o[y] === void 0 || w > o[y]) && (o[y] = w);
10227
10227
  }
10228
- T.push(N);
10228
+ T.push(I);
10229
10229
  }
10230
- s[f] = T, u[f] = A;
10230
+ s[f] = T, u[f] = C;
10231
10231
  }
10232
10232
  let d = -1;
10233
10233
  if (typeof r == "object" && "length" in r)
@@ -10242,34 +10242,34 @@ function Hm(e, t) {
10242
10242
  const p = [], h = [];
10243
10243
  for (; ++d < l; ) {
10244
10244
  const T = a[d];
10245
- let A = "", x = "";
10246
- T === 99 ? (A = ":", x = ":") : T === 108 ? A = ":" : T === 114 && (x = ":");
10247
- let N = n.alignDelimiters === !1 ? 1 : Math.max(
10245
+ let C = "", y = "";
10246
+ T === 99 ? (C = ":", y = ":") : T === 108 ? C = ":" : T === 114 && (y = ":");
10247
+ let I = n.alignDelimiters === !1 ? 1 : Math.max(
10248
10248
  1,
10249
- o[d] - A.length - x.length
10249
+ o[d] - C.length - y.length
10250
10250
  );
10251
- const w = A + "-".repeat(N) + x;
10252
- n.alignDelimiters !== !1 && (N = A.length + N + x.length, N > o[d] && (o[d] = N), h[d] = N), p[d] = w;
10251
+ const w = C + "-".repeat(I) + y;
10252
+ n.alignDelimiters !== !1 && (I = C.length + I + y.length, I > o[d] && (o[d] = I), h[d] = I), p[d] = w;
10253
10253
  }
10254
10254
  s.splice(1, 0, p), u.splice(1, 0, h), f = -1;
10255
10255
  const m = [];
10256
10256
  for (; ++f < s.length; ) {
10257
- const T = s[f], A = u[f];
10257
+ const T = s[f], C = u[f];
10258
10258
  d = -1;
10259
- const x = [];
10259
+ const y = [];
10260
10260
  for (; ++d < l; ) {
10261
- const N = T[d] || "";
10262
- let w = "", v = "";
10261
+ const I = T[d] || "";
10262
+ let w = "", D = "";
10263
10263
  if (n.alignDelimiters !== !1) {
10264
- const O = o[d] - (A[d] || 0), C = a[d];
10265
- C === 114 ? w = " ".repeat(O) : C === 99 ? O % 2 ? (w = " ".repeat(O / 2 + 0.5), v = " ".repeat(O / 2 - 0.5)) : (w = " ".repeat(O / 2), v = w) : v = " ".repeat(O);
10264
+ const R = o[d] - (C[d] || 0), A = a[d];
10265
+ A === 114 ? w = " ".repeat(R) : A === 99 ? R % 2 ? (w = " ".repeat(R / 2 + 0.5), D = " ".repeat(R / 2 - 0.5)) : (w = " ".repeat(R / 2), D = w) : D = " ".repeat(R);
10266
10266
  }
10267
- n.delimiterStart !== !1 && !d && x.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
10267
+ n.delimiterStart !== !1 && !d && y.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
10268
10268
  // empty: there will be a closing space.
10269
- !(n.alignDelimiters === !1 && N === "") && (n.delimiterStart !== !1 || d) && x.push(" "), n.alignDelimiters !== !1 && x.push(w), x.push(N), n.alignDelimiters !== !1 && x.push(v), n.padding !== !1 && x.push(" "), (n.delimiterEnd !== !1 || d !== l - 1) && x.push("|");
10269
+ !(n.alignDelimiters === !1 && I === "") && (n.delimiterStart !== !1 || d) && y.push(" "), n.alignDelimiters !== !1 && y.push(w), y.push(I), n.alignDelimiters !== !1 && y.push(D), n.padding !== !1 && y.push(" "), (n.delimiterEnd !== !1 || d !== l - 1) && y.push("|");
10270
10270
  }
10271
10271
  m.push(
10272
- n.delimiterEnd === !1 ? x.join("").replace(/ +$/, "") : x.join("")
10272
+ n.delimiterEnd === !1 ? y.join("").replace(/ +$/, "") : y.join("")
10273
10273
  );
10274
10274
  }
10275
10275
  return m.join(`
@@ -11026,21 +11026,21 @@ function Lg(e) {
11026
11026
  tableRow: u
11027
11027
  }
11028
11028
  };
11029
- function s(h, m, T, A) {
11030
- return l(f(h, T, A), h.align);
11029
+ function s(h, m, T, C) {
11030
+ return l(f(h, T, C), h.align);
11031
11031
  }
11032
- function u(h, m, T, A) {
11033
- const x = d(h, T, A), N = l([x]);
11034
- return N.slice(0, N.indexOf(`
11032
+ function u(h, m, T, C) {
11033
+ const y = d(h, T, C), I = l([y]);
11034
+ return I.slice(0, I.indexOf(`
11035
11035
  `));
11036
11036
  }
11037
- function o(h, m, T, A) {
11038
- const x = T.enter("tableCell"), N = T.enter("phrasing"), w = T.containerPhrasing(h, {
11039
- ...A,
11037
+ function o(h, m, T, C) {
11038
+ const y = T.enter("tableCell"), I = T.enter("phrasing"), w = T.containerPhrasing(h, {
11039
+ ...C,
11040
11040
  before: a,
11041
11041
  after: a
11042
11042
  });
11043
- return N(), x(), w;
11043
+ return I(), y(), w;
11044
11044
  }
11045
11045
  function l(h, m) {
11046
11046
  return Hm(h, {
@@ -11054,24 +11054,24 @@ function Lg(e) {
11054
11054
  });
11055
11055
  }
11056
11056
  function f(h, m, T) {
11057
- const A = h.children;
11058
- let x = -1;
11059
- const N = [], w = m.enter("table");
11060
- for (; ++x < A.length; )
11061
- N[x] = d(A[x], m, T);
11062
- return w(), N;
11057
+ const C = h.children;
11058
+ let y = -1;
11059
+ const I = [], w = m.enter("table");
11060
+ for (; ++y < C.length; )
11061
+ I[y] = d(C[y], m, T);
11062
+ return w(), I;
11063
11063
  }
11064
11064
  function d(h, m, T) {
11065
- const A = h.children;
11066
- let x = -1;
11067
- const N = [], w = m.enter("tableRow");
11068
- for (; ++x < A.length; )
11069
- N[x] = o(A[x], h, m, T);
11070
- return w(), N;
11065
+ const C = h.children;
11066
+ let y = -1;
11067
+ const I = [], w = m.enter("tableRow");
11068
+ for (; ++y < C.length; )
11069
+ I[y] = o(C[y], h, m, T);
11070
+ return w(), I;
11071
11071
  }
11072
11072
  function p(h, m, T) {
11073
- let A = hc.inlineCode(h, m, T);
11074
- return T.stack.includes("tableCell") && (A = A.replace(/\|/g, "\\$&")), A;
11073
+ let C = hc.inlineCode(h, m, T);
11074
+ return T.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
11075
11075
  }
11076
11076
  }
11077
11077
  function vg() {
@@ -11633,71 +11633,71 @@ const xu = {
11633
11633
  function sb(e, t, n) {
11634
11634
  const r = this, i = {
11635
11635
  partial: !0,
11636
- tokenize: O
11636
+ tokenize: R
11637
11637
  };
11638
11638
  let a = 0, s = 0, u;
11639
11639
  return o;
11640
- function o(C) {
11641
- return l(C);
11640
+ function o(A) {
11641
+ return l(A);
11642
11642
  }
11643
- function l(C) {
11644
- const U = r.events[r.events.length - 1];
11645
- return a = U && U[1].type === "linePrefix" ? U[2].sliceSerialize(U[1], !0).length : 0, u = C, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(C);
11643
+ function l(A) {
11644
+ const H = r.events[r.events.length - 1];
11645
+ return a = H && H[1].type === "linePrefix" ? H[2].sliceSerialize(H[1], !0).length : 0, u = A, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(A);
11646
11646
  }
11647
- function f(C) {
11648
- return C === u ? (s++, e.consume(C), f) : s < 3 ? n(C) : (e.exit("codeFencedFenceSequence"), ae(C) ? oe(e, d, "whitespace")(C) : d(C));
11647
+ function f(A) {
11648
+ return A === u ? (s++, e.consume(A), f) : s < 3 ? n(A) : (e.exit("codeFencedFenceSequence"), ae(A) ? oe(e, d, "whitespace")(A) : d(A));
11649
11649
  }
11650
- function d(C) {
11651
- return C === null || G(C) ? (e.exit("codeFencedFence"), r.interrupt ? t(C) : e.check(xu, T, v)(C)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
11650
+ function d(A) {
11651
+ return A === null || G(A) ? (e.exit("codeFencedFence"), r.interrupt ? t(A) : e.check(xu, T, D)(A)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
11652
11652
  contentType: "string"
11653
- }), p(C));
11653
+ }), p(A));
11654
11654
  }
11655
- function p(C) {
11656
- return C === null || G(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(C)) : ae(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), oe(e, h, "whitespace")(C)) : C === 96 && C === u ? n(C) : (e.consume(C), p);
11655
+ function p(A) {
11656
+ return A === null || G(A) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(A)) : ae(A) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), oe(e, h, "whitespace")(A)) : A === 96 && A === u ? n(A) : (e.consume(A), p);
11657
11657
  }
11658
- function h(C) {
11659
- return C === null || G(C) ? d(C) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
11658
+ function h(A) {
11659
+ return A === null || G(A) ? d(A) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
11660
11660
  contentType: "string"
11661
- }), m(C));
11661
+ }), m(A));
11662
11662
  }
11663
- function m(C) {
11664
- return C === null || G(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(C)) : C === 96 && C === u ? n(C) : (e.consume(C), m);
11663
+ function m(A) {
11664
+ return A === null || G(A) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(A)) : A === 96 && A === u ? n(A) : (e.consume(A), m);
11665
11665
  }
11666
- function T(C) {
11667
- return e.attempt(i, v, A)(C);
11666
+ function T(A) {
11667
+ return e.attempt(i, D, C)(A);
11668
11668
  }
11669
- function A(C) {
11670
- return e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), x;
11669
+ function C(A) {
11670
+ return e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), y;
11671
11671
  }
11672
- function x(C) {
11673
- return a > 0 && ae(C) ? oe(e, N, "linePrefix", a + 1)(C) : N(C);
11672
+ function y(A) {
11673
+ return a > 0 && ae(A) ? oe(e, I, "linePrefix", a + 1)(A) : I(A);
11674
11674
  }
11675
- function N(C) {
11676
- return C === null || G(C) ? e.check(xu, T, v)(C) : (e.enter("codeFlowValue"), w(C));
11675
+ function I(A) {
11676
+ return A === null || G(A) ? e.check(xu, T, D)(A) : (e.enter("codeFlowValue"), w(A));
11677
11677
  }
11678
- function w(C) {
11679
- return C === null || G(C) ? (e.exit("codeFlowValue"), N(C)) : (e.consume(C), w);
11678
+ function w(A) {
11679
+ return A === null || G(A) ? (e.exit("codeFlowValue"), I(A)) : (e.consume(A), w);
11680
11680
  }
11681
- function v(C) {
11682
- return e.exit("codeFenced"), t(C);
11681
+ function D(A) {
11682
+ return e.exit("codeFenced"), t(A);
11683
11683
  }
11684
- function O(C, U, B) {
11685
- let z = 0;
11686
- return I;
11687
- function I(K) {
11688
- return C.enter("lineEnding"), C.consume(K), C.exit("lineEnding"), Y;
11684
+ function R(A, H, B) {
11685
+ let U = 0;
11686
+ return N;
11687
+ function N(K) {
11688
+ return A.enter("lineEnding"), A.consume(K), A.exit("lineEnding"), Y;
11689
11689
  }
11690
11690
  function Y(K) {
11691
- return C.enter("codeFencedFence"), ae(K) ? oe(C, M, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(K) : M(K);
11691
+ return A.enter("codeFencedFence"), ae(K) ? oe(A, M, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(K) : M(K);
11692
11692
  }
11693
11693
  function M(K) {
11694
- return K === u ? (C.enter("codeFencedFenceSequence"), Q(K)) : B(K);
11694
+ return K === u ? (A.enter("codeFencedFenceSequence"), Q(K)) : B(K);
11695
11695
  }
11696
11696
  function Q(K) {
11697
- return K === u ? (z++, C.consume(K), Q) : z >= s ? (C.exit("codeFencedFenceSequence"), ae(K) ? oe(C, ie, "whitespace")(K) : ie(K)) : B(K);
11697
+ return K === u ? (U++, A.consume(K), Q) : U >= s ? (A.exit("codeFencedFenceSequence"), ae(K) ? oe(A, ie, "whitespace")(K) : ie(K)) : B(K);
11698
11698
  }
11699
11699
  function ie(K) {
11700
- return K === null || G(K) ? (C.exit("codeFencedFence"), U(K)) : B(K);
11700
+ return K === null || G(K) ? (A.exit("codeFencedFence"), H(K)) : B(K);
11701
11701
  }
11702
11702
  }
11703
11703
  }
@@ -11995,7 +11995,7 @@ function gb(e, t) {
11995
11995
  s || (s = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (s._contentTypeTextTrailing = !0));
11996
11996
  const u = s.events, o = [], l = {};
11997
11997
  let f, d, p = -1, h = n, m = 0, T = 0;
11998
- const A = [T];
11998
+ const C = [T];
11999
11999
  for (; h; ) {
12000
12000
  for (; e.get(++i)[1] !== h; )
12001
12001
  ;
@@ -12003,10 +12003,10 @@ function gb(e, t) {
12003
12003
  }
12004
12004
  for (h = n; ++p < u.length; )
12005
12005
  // Find a void token that includes a break.
12006
- u[p][0] === "exit" && u[p - 1][0] === "enter" && u[p][1].type === u[p - 1][1].type && u[p][1].start.line !== u[p][1].end.line && (T = p + 1, A.push(T), h._tokenizer = void 0, h.previous = void 0, h = h.next);
12007
- for (s.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : A.pop(), p = A.length; p--; ) {
12008
- const x = u.slice(A[p], A[p + 1]), N = a.pop();
12009
- o.push([N, N + x.length - 1]), e.splice(N, 2, x);
12006
+ u[p][0] === "exit" && u[p - 1][0] === "enter" && u[p][1].type === u[p - 1][1].type && u[p][1].start.line !== u[p][1].end.line && (T = p + 1, C.push(T), h._tokenizer = void 0, h.previous = void 0, h = h.next);
12007
+ for (s.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : C.pop(), p = C.length; p--; ) {
12008
+ const y = u.slice(C[p], C[p + 1]), I = a.pop();
12009
+ o.push([I, I + y.length - 1]), e.splice(I, 2, y);
12010
12010
  }
12011
12011
  for (o.reverse(), p = -1; ++p < o.length; )
12012
12012
  l[m + o[p][0]] = m + o[p][1], m += o[p][1] - o[p][0] - 1;
@@ -12060,27 +12060,27 @@ function Ic(e, t, n, r, i, a, s, u, o) {
12060
12060
  const l = o || Number.POSITIVE_INFINITY;
12061
12061
  let f = 0;
12062
12062
  return d;
12063
- function d(x) {
12064
- return x === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(x), e.exit(a), p) : x === null || x === 32 || x === 41 || zr(x) ? n(x) : (e.enter(r), e.enter(s), e.enter(u), e.enter("chunkString", {
12063
+ function d(y) {
12064
+ return y === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(y), e.exit(a), p) : y === null || y === 32 || y === 41 || zr(y) ? n(y) : (e.enter(r), e.enter(s), e.enter(u), e.enter("chunkString", {
12065
12065
  contentType: "string"
12066
- }), T(x));
12066
+ }), T(y));
12067
12067
  }
12068
- function p(x) {
12069
- return x === 62 ? (e.enter(a), e.consume(x), e.exit(a), e.exit(i), e.exit(r), t) : (e.enter(u), e.enter("chunkString", {
12068
+ function p(y) {
12069
+ return y === 62 ? (e.enter(a), e.consume(y), e.exit(a), e.exit(i), e.exit(r), t) : (e.enter(u), e.enter("chunkString", {
12070
12070
  contentType: "string"
12071
- }), h(x));
12071
+ }), h(y));
12072
12072
  }
12073
- function h(x) {
12074
- return x === 62 ? (e.exit("chunkString"), e.exit(u), p(x)) : x === null || x === 60 || G(x) ? n(x) : (e.consume(x), x === 92 ? m : h);
12073
+ function h(y) {
12074
+ return y === 62 ? (e.exit("chunkString"), e.exit(u), p(y)) : y === null || y === 60 || G(y) ? n(y) : (e.consume(y), y === 92 ? m : h);
12075
12075
  }
12076
- function m(x) {
12077
- return x === 60 || x === 62 || x === 92 ? (e.consume(x), h) : h(x);
12076
+ function m(y) {
12077
+ return y === 60 || y === 62 || y === 92 ? (e.consume(y), h) : h(y);
12078
12078
  }
12079
- function T(x) {
12080
- return !f && (x === null || x === 41 || ge(x)) ? (e.exit("chunkString"), e.exit(u), e.exit(s), e.exit(r), t(x)) : f < l && x === 40 ? (e.consume(x), f++, T) : x === 41 ? (e.consume(x), f--, T) : x === null || x === 32 || x === 40 || zr(x) ? n(x) : (e.consume(x), x === 92 ? A : T);
12079
+ function T(y) {
12080
+ return !f && (y === null || y === 41 || ge(y)) ? (e.exit("chunkString"), e.exit(u), e.exit(s), e.exit(r), t(y)) : f < l && y === 40 ? (e.consume(y), f++, T) : y === 41 ? (e.consume(y), f--, T) : y === null || y === 32 || y === 40 || zr(y) ? n(y) : (e.consume(y), y === 92 ? C : T);
12081
12081
  }
12082
- function A(x) {
12083
- return x === 40 || x === 41 || x === 92 ? (e.consume(x), T) : T(x);
12082
+ function C(y) {
12083
+ return y === 40 || y === 41 || y === 92 ? (e.consume(y), T) : T(y);
12084
12084
  }
12085
12085
  }
12086
12086
  function Nc(e, t, n, r, i, a) {
@@ -12350,63 +12350,63 @@ function Mb(e, t, n) {
12350
12350
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(k), d;
12351
12351
  }
12352
12352
  function d(k) {
12353
- return k === 33 ? (e.consume(k), p) : k === 47 ? (e.consume(k), a = !0, T) : k === 63 ? (e.consume(k), i = 3, r.interrupt ? t : y) : Ue(k) ? (e.consume(k), s = String.fromCharCode(k), A) : n(k);
12353
+ return k === 33 ? (e.consume(k), p) : k === 47 ? (e.consume(k), a = !0, T) : k === 63 ? (e.consume(k), i = 3, r.interrupt ? t : x) : Ue(k) ? (e.consume(k), s = String.fromCharCode(k), C) : n(k);
12354
12354
  }
12355
12355
  function p(k) {
12356
- return k === 45 ? (e.consume(k), i = 2, h) : k === 91 ? (e.consume(k), i = 5, u = 0, m) : Ue(k) ? (e.consume(k), i = 4, r.interrupt ? t : y) : n(k);
12356
+ return k === 45 ? (e.consume(k), i = 2, h) : k === 91 ? (e.consume(k), i = 5, u = 0, m) : Ue(k) ? (e.consume(k), i = 4, r.interrupt ? t : x) : n(k);
12357
12357
  }
12358
12358
  function h(k) {
12359
- return k === 45 ? (e.consume(k), r.interrupt ? t : y) : n(k);
12359
+ return k === 45 ? (e.consume(k), r.interrupt ? t : x) : n(k);
12360
12360
  }
12361
12361
  function m(k) {
12362
12362
  const he = "CDATA[";
12363
12363
  return k === he.charCodeAt(u++) ? (e.consume(k), u === he.length ? r.interrupt ? t : M : m) : n(k);
12364
12364
  }
12365
12365
  function T(k) {
12366
- return Ue(k) ? (e.consume(k), s = String.fromCharCode(k), A) : n(k);
12366
+ return Ue(k) ? (e.consume(k), s = String.fromCharCode(k), C) : n(k);
12367
12367
  }
12368
- function A(k) {
12368
+ function C(k) {
12369
12369
  if (k === null || k === 47 || k === 62 || ge(k)) {
12370
12370
  const he = k === 47, Ye = s.toLowerCase();
12371
- return !he && !a && Au.includes(Ye) ? (i = 1, r.interrupt ? t(k) : M(k)) : vb.includes(s.toLowerCase()) ? (i = 6, he ? (e.consume(k), x) : r.interrupt ? t(k) : M(k)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : a ? N(k) : w(k));
12371
+ return !he && !a && Au.includes(Ye) ? (i = 1, r.interrupt ? t(k) : M(k)) : vb.includes(s.toLowerCase()) ? (i = 6, he ? (e.consume(k), y) : r.interrupt ? t(k) : M(k)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : a ? I(k) : w(k));
12372
12372
  }
12373
- return k === 45 || Pe(k) ? (e.consume(k), s += String.fromCharCode(k), A) : n(k);
12373
+ return k === 45 || Pe(k) ? (e.consume(k), s += String.fromCharCode(k), C) : n(k);
12374
12374
  }
12375
- function x(k) {
12375
+ function y(k) {
12376
12376
  return k === 62 ? (e.consume(k), r.interrupt ? t : M) : n(k);
12377
12377
  }
12378
- function N(k) {
12379
- return ae(k) ? (e.consume(k), N) : I(k);
12378
+ function I(k) {
12379
+ return ae(k) ? (e.consume(k), I) : N(k);
12380
12380
  }
12381
12381
  function w(k) {
12382
- return k === 47 ? (e.consume(k), I) : k === 58 || k === 95 || Ue(k) ? (e.consume(k), v) : ae(k) ? (e.consume(k), w) : I(k);
12382
+ return k === 47 ? (e.consume(k), N) : k === 58 || k === 95 || Ue(k) ? (e.consume(k), D) : ae(k) ? (e.consume(k), w) : N(k);
12383
12383
  }
12384
- function v(k) {
12385
- return k === 45 || k === 46 || k === 58 || k === 95 || Pe(k) ? (e.consume(k), v) : O(k);
12384
+ function D(k) {
12385
+ return k === 45 || k === 46 || k === 58 || k === 95 || Pe(k) ? (e.consume(k), D) : R(k);
12386
12386
  }
12387
- function O(k) {
12388
- return k === 61 ? (e.consume(k), C) : ae(k) ? (e.consume(k), O) : w(k);
12387
+ function R(k) {
12388
+ return k === 61 ? (e.consume(k), A) : ae(k) ? (e.consume(k), R) : w(k);
12389
12389
  }
12390
- function C(k) {
12391
- return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), o = k, U) : ae(k) ? (e.consume(k), C) : B(k);
12390
+ function A(k) {
12391
+ return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), o = k, H) : ae(k) ? (e.consume(k), A) : B(k);
12392
12392
  }
12393
- function U(k) {
12394
- return k === o ? (e.consume(k), o = null, z) : k === null || G(k) ? n(k) : (e.consume(k), U);
12393
+ function H(k) {
12394
+ return k === o ? (e.consume(k), o = null, U) : k === null || G(k) ? n(k) : (e.consume(k), H);
12395
12395
  }
12396
12396
  function B(k) {
12397
- return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || ge(k) ? O(k) : (e.consume(k), B);
12397
+ return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || ge(k) ? R(k) : (e.consume(k), B);
12398
12398
  }
12399
- function z(k) {
12399
+ function U(k) {
12400
12400
  return k === 47 || k === 62 || ae(k) ? w(k) : n(k);
12401
12401
  }
12402
- function I(k) {
12402
+ function N(k) {
12403
12403
  return k === 62 ? (e.consume(k), Y) : n(k);
12404
12404
  }
12405
12405
  function Y(k) {
12406
12406
  return k === null || G(k) ? M(k) : ae(k) ? (e.consume(k), Y) : n(k);
12407
12407
  }
12408
12408
  function M(k) {
12409
- return k === 45 && i === 2 ? (e.consume(k), Z) : k === 60 && i === 1 ? (e.consume(k), J) : k === 62 && i === 4 ? (e.consume(k), Re) : k === 63 && i === 3 ? (e.consume(k), y) : k === 93 && i === 5 ? (e.consume(k), Fe) : G(k) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Ob, He, Q)(k)) : k === null || G(k) ? (e.exit("htmlFlowData"), Q(k)) : (e.consume(k), M);
12409
+ return k === 45 && i === 2 ? (e.consume(k), Z) : k === 60 && i === 1 ? (e.consume(k), J) : k === 62 && i === 4 ? (e.consume(k), Re) : k === 63 && i === 3 ? (e.consume(k), x) : k === 93 && i === 5 ? (e.consume(k), Fe) : G(k) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Ob, He, Q)(k)) : k === null || G(k) ? (e.exit("htmlFlowData"), Q(k)) : (e.consume(k), M);
12410
12410
  }
12411
12411
  function Q(k) {
12412
12412
  return e.check(Db, ie, He)(k);
@@ -12418,7 +12418,7 @@ function Mb(e, t, n) {
12418
12418
  return k === null || G(k) ? Q(k) : (e.enter("htmlFlowData"), M(k));
12419
12419
  }
12420
12420
  function Z(k) {
12421
- return k === 45 ? (e.consume(k), y) : M(k);
12421
+ return k === 45 ? (e.consume(k), x) : M(k);
12422
12422
  }
12423
12423
  function J(k) {
12424
12424
  return k === 47 ? (e.consume(k), s = "", V) : M(k);
@@ -12431,10 +12431,10 @@ function Mb(e, t, n) {
12431
12431
  return Ue(k) && s.length < 8 ? (e.consume(k), s += String.fromCharCode(k), V) : M(k);
12432
12432
  }
12433
12433
  function Fe(k) {
12434
- return k === 93 ? (e.consume(k), y) : M(k);
12434
+ return k === 93 ? (e.consume(k), x) : M(k);
12435
12435
  }
12436
- function y(k) {
12437
- return k === 62 ? (e.consume(k), Re) : k === 45 && i === 2 ? (e.consume(k), y) : M(k);
12436
+ function x(k) {
12437
+ return k === 62 ? (e.consume(k), Re) : k === 45 && i === 2 ? (e.consume(k), x) : M(k);
12438
12438
  }
12439
12439
  function Re(k) {
12440
12440
  return k === null || G(k) ? (e.exit("htmlFlowData"), He(k)) : (e.consume(k), Re);
@@ -12467,93 +12467,93 @@ function Ub(e, t, n) {
12467
12467
  const r = this;
12468
12468
  let i, a, s;
12469
12469
  return u;
12470
- function u(y) {
12471
- return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(y), o;
12470
+ function u(x) {
12471
+ return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(x), o;
12472
12472
  }
12473
- function o(y) {
12474
- return y === 33 ? (e.consume(y), l) : y === 47 ? (e.consume(y), O) : y === 63 ? (e.consume(y), w) : Ue(y) ? (e.consume(y), B) : n(y);
12473
+ function o(x) {
12474
+ return x === 33 ? (e.consume(x), l) : x === 47 ? (e.consume(x), R) : x === 63 ? (e.consume(x), w) : Ue(x) ? (e.consume(x), B) : n(x);
12475
12475
  }
12476
- function l(y) {
12477
- return y === 45 ? (e.consume(y), f) : y === 91 ? (e.consume(y), a = 0, m) : Ue(y) ? (e.consume(y), N) : n(y);
12476
+ function l(x) {
12477
+ return x === 45 ? (e.consume(x), f) : x === 91 ? (e.consume(x), a = 0, m) : Ue(x) ? (e.consume(x), I) : n(x);
12478
12478
  }
12479
- function f(y) {
12480
- return y === 45 ? (e.consume(y), h) : n(y);
12479
+ function f(x) {
12480
+ return x === 45 ? (e.consume(x), h) : n(x);
12481
12481
  }
12482
- function d(y) {
12483
- return y === null ? n(y) : y === 45 ? (e.consume(y), p) : G(y) ? (s = d, J(y)) : (e.consume(y), d);
12482
+ function d(x) {
12483
+ return x === null ? n(x) : x === 45 ? (e.consume(x), p) : G(x) ? (s = d, J(x)) : (e.consume(x), d);
12484
12484
  }
12485
- function p(y) {
12486
- return y === 45 ? (e.consume(y), h) : d(y);
12485
+ function p(x) {
12486
+ return x === 45 ? (e.consume(x), h) : d(x);
12487
12487
  }
12488
- function h(y) {
12489
- return y === 62 ? Z(y) : y === 45 ? p(y) : d(y);
12488
+ function h(x) {
12489
+ return x === 62 ? Z(x) : x === 45 ? p(x) : d(x);
12490
12490
  }
12491
- function m(y) {
12491
+ function m(x) {
12492
12492
  const Re = "CDATA[";
12493
- return y === Re.charCodeAt(a++) ? (e.consume(y), a === Re.length ? T : m) : n(y);
12493
+ return x === Re.charCodeAt(a++) ? (e.consume(x), a === Re.length ? T : m) : n(x);
12494
12494
  }
12495
- function T(y) {
12496
- return y === null ? n(y) : y === 93 ? (e.consume(y), A) : G(y) ? (s = T, J(y)) : (e.consume(y), T);
12495
+ function T(x) {
12496
+ return x === null ? n(x) : x === 93 ? (e.consume(x), C) : G(x) ? (s = T, J(x)) : (e.consume(x), T);
12497
12497
  }
12498
- function A(y) {
12499
- return y === 93 ? (e.consume(y), x) : T(y);
12498
+ function C(x) {
12499
+ return x === 93 ? (e.consume(x), y) : T(x);
12500
12500
  }
12501
- function x(y) {
12502
- return y === 62 ? Z(y) : y === 93 ? (e.consume(y), x) : T(y);
12501
+ function y(x) {
12502
+ return x === 62 ? Z(x) : x === 93 ? (e.consume(x), y) : T(x);
12503
12503
  }
12504
- function N(y) {
12505
- return y === null || y === 62 ? Z(y) : G(y) ? (s = N, J(y)) : (e.consume(y), N);
12504
+ function I(x) {
12505
+ return x === null || x === 62 ? Z(x) : G(x) ? (s = I, J(x)) : (e.consume(x), I);
12506
12506
  }
12507
- function w(y) {
12508
- return y === null ? n(y) : y === 63 ? (e.consume(y), v) : G(y) ? (s = w, J(y)) : (e.consume(y), w);
12507
+ function w(x) {
12508
+ return x === null ? n(x) : x === 63 ? (e.consume(x), D) : G(x) ? (s = w, J(x)) : (e.consume(x), w);
12509
12509
  }
12510
- function v(y) {
12511
- return y === 62 ? Z(y) : w(y);
12510
+ function D(x) {
12511
+ return x === 62 ? Z(x) : w(x);
12512
12512
  }
12513
- function O(y) {
12514
- return Ue(y) ? (e.consume(y), C) : n(y);
12513
+ function R(x) {
12514
+ return Ue(x) ? (e.consume(x), A) : n(x);
12515
12515
  }
12516
- function C(y) {
12517
- return y === 45 || Pe(y) ? (e.consume(y), C) : U(y);
12516
+ function A(x) {
12517
+ return x === 45 || Pe(x) ? (e.consume(x), A) : H(x);
12518
12518
  }
12519
- function U(y) {
12520
- return G(y) ? (s = U, J(y)) : ae(y) ? (e.consume(y), U) : Z(y);
12519
+ function H(x) {
12520
+ return G(x) ? (s = H, J(x)) : ae(x) ? (e.consume(x), H) : Z(x);
12521
12521
  }
12522
- function B(y) {
12523
- return y === 45 || Pe(y) ? (e.consume(y), B) : y === 47 || y === 62 || ge(y) ? z(y) : n(y);
12522
+ function B(x) {
12523
+ return x === 45 || Pe(x) ? (e.consume(x), B) : x === 47 || x === 62 || ge(x) ? U(x) : n(x);
12524
12524
  }
12525
- function z(y) {
12526
- return y === 47 ? (e.consume(y), Z) : y === 58 || y === 95 || Ue(y) ? (e.consume(y), I) : G(y) ? (s = z, J(y)) : ae(y) ? (e.consume(y), z) : Z(y);
12525
+ function U(x) {
12526
+ return x === 47 ? (e.consume(x), Z) : x === 58 || x === 95 || Ue(x) ? (e.consume(x), N) : G(x) ? (s = U, J(x)) : ae(x) ? (e.consume(x), U) : Z(x);
12527
12527
  }
12528
- function I(y) {
12529
- return y === 45 || y === 46 || y === 58 || y === 95 || Pe(y) ? (e.consume(y), I) : Y(y);
12528
+ function N(x) {
12529
+ return x === 45 || x === 46 || x === 58 || x === 95 || Pe(x) ? (e.consume(x), N) : Y(x);
12530
12530
  }
12531
- function Y(y) {
12532
- return y === 61 ? (e.consume(y), M) : G(y) ? (s = Y, J(y)) : ae(y) ? (e.consume(y), Y) : z(y);
12531
+ function Y(x) {
12532
+ return x === 61 ? (e.consume(x), M) : G(x) ? (s = Y, J(x)) : ae(x) ? (e.consume(x), Y) : U(x);
12533
12533
  }
12534
- function M(y) {
12535
- return y === null || y === 60 || y === 61 || y === 62 || y === 96 ? n(y) : y === 34 || y === 39 ? (e.consume(y), i = y, Q) : G(y) ? (s = M, J(y)) : ae(y) ? (e.consume(y), M) : (e.consume(y), ie);
12534
+ function M(x) {
12535
+ return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), i = x, Q) : G(x) ? (s = M, J(x)) : ae(x) ? (e.consume(x), M) : (e.consume(x), ie);
12536
12536
  }
12537
- function Q(y) {
12538
- return y === i ? (e.consume(y), i = void 0, K) : y === null ? n(y) : G(y) ? (s = Q, J(y)) : (e.consume(y), Q);
12537
+ function Q(x) {
12538
+ return x === i ? (e.consume(x), i = void 0, K) : x === null ? n(x) : G(x) ? (s = Q, J(x)) : (e.consume(x), Q);
12539
12539
  }
12540
- function ie(y) {
12541
- return y === null || y === 34 || y === 39 || y === 60 || y === 61 || y === 96 ? n(y) : y === 47 || y === 62 || ge(y) ? z(y) : (e.consume(y), ie);
12540
+ function ie(x) {
12541
+ return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 96 ? n(x) : x === 47 || x === 62 || ge(x) ? U(x) : (e.consume(x), ie);
12542
12542
  }
12543
- function K(y) {
12544
- return y === 47 || y === 62 || ge(y) ? z(y) : n(y);
12543
+ function K(x) {
12544
+ return x === 47 || x === 62 || ge(x) ? U(x) : n(x);
12545
12545
  }
12546
- function Z(y) {
12547
- return y === 62 ? (e.consume(y), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(y);
12546
+ function Z(x) {
12547
+ return x === 62 ? (e.consume(x), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(x);
12548
12548
  }
12549
- function J(y) {
12550
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), V;
12549
+ function J(x) {
12550
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), V;
12551
12551
  }
12552
- function V(y) {
12553
- return ae(y) ? oe(e, Fe, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(y) : Fe(y);
12552
+ function V(x) {
12553
+ return ae(x) ? oe(e, Fe, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(x) : Fe(x);
12554
12554
  }
12555
- function Fe(y) {
12556
- return e.enter("htmlTextData"), s(y);
12555
+ function Fe(x) {
12556
+ return e.enter("htmlTextData"), s(x);
12557
12557
  }
12558
12558
  }
12559
12559
  const Ya = {
@@ -13138,8 +13138,8 @@ function _2(e) {
13138
13138
  return d > 1 ? o(m) : (s.consume(m), d++, h);
13139
13139
  if (d < 2 && !n)
13140
13140
  return o(m);
13141
- const A = s.exit("strikethroughSequenceTemporary"), x = fn(m);
13142
- return A._open = !x || x === 2 && !!T, A._close = !T || T === 2 && !!x, u(m);
13141
+ const C = s.exit("strikethroughSequenceTemporary"), y = fn(m);
13142
+ return C._open = !y || y === 2 && !!T, C._close = !T || T === 2 && !!y, u(m);
13143
13143
  }
13144
13144
  }
13145
13145
  }
@@ -13247,7 +13247,7 @@ function C2(e, t, n) {
13247
13247
  const r = this;
13248
13248
  let i = 0, a = 0, s;
13249
13249
  return u;
13250
- function u(I) {
13250
+ function u(N) {
13251
13251
  let Y = r.events.length - 1;
13252
13252
  for (; Y > -1; ) {
13253
13253
  const ie = r.events[Y][1].type;
@@ -13257,62 +13257,62 @@ function C2(e, t, n) {
13257
13257
  else
13258
13258
  break;
13259
13259
  }
13260
- const M = Y > -1 ? r.events[Y][1].type : null, Q = M === "tableHead" || M === "tableRow" ? C : o;
13261
- return Q === C && r.parser.lazy[r.now().line] ? n(I) : Q(I);
13260
+ const M = Y > -1 ? r.events[Y][1].type : null, Q = M === "tableHead" || M === "tableRow" ? A : o;
13261
+ return Q === A && r.parser.lazy[r.now().line] ? n(N) : Q(N);
13262
13262
  }
13263
- function o(I) {
13264
- return e.enter("tableHead"), e.enter("tableRow"), l(I);
13263
+ function o(N) {
13264
+ return e.enter("tableHead"), e.enter("tableRow"), l(N);
13265
13265
  }
13266
- function l(I) {
13267
- return I === 124 || (s = !0, a += 1), f(I);
13266
+ function l(N) {
13267
+ return N === 124 || (s = !0, a += 1), f(N);
13268
13268
  }
13269
- function f(I) {
13270
- return I === null ? n(I) : G(I) ? a > 1 ? (a = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(I), e.exit("lineEnding"), h) : n(I) : ae(I) ? oe(e, f, "whitespace")(I) : (a += 1, s && (s = !1, i += 1), I === 124 ? (e.enter("tableCellDivider"), e.consume(I), e.exit("tableCellDivider"), s = !0, f) : (e.enter("data"), d(I)));
13269
+ function f(N) {
13270
+ return N === null ? n(N) : G(N) ? a > 1 ? (a = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(N), e.exit("lineEnding"), h) : n(N) : ae(N) ? oe(e, f, "whitespace")(N) : (a += 1, s && (s = !1, i += 1), N === 124 ? (e.enter("tableCellDivider"), e.consume(N), e.exit("tableCellDivider"), s = !0, f) : (e.enter("data"), d(N)));
13271
13271
  }
13272
- function d(I) {
13273
- return I === null || I === 124 || ge(I) ? (e.exit("data"), f(I)) : (e.consume(I), I === 92 ? p : d);
13272
+ function d(N) {
13273
+ return N === null || N === 124 || ge(N) ? (e.exit("data"), f(N)) : (e.consume(N), N === 92 ? p : d);
13274
13274
  }
13275
- function p(I) {
13276
- return I === 92 || I === 124 ? (e.consume(I), d) : d(I);
13275
+ function p(N) {
13276
+ return N === 92 || N === 124 ? (e.consume(N), d) : d(N);
13277
13277
  }
13278
- function h(I) {
13279
- return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(I) : (e.enter("tableDelimiterRow"), s = !1, ae(I) ? oe(e, m, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(I) : m(I));
13278
+ function h(N) {
13279
+ return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(N) : (e.enter("tableDelimiterRow"), s = !1, ae(N) ? oe(e, m, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(N) : m(N));
13280
13280
  }
13281
- function m(I) {
13282
- return I === 45 || I === 58 ? A(I) : I === 124 ? (s = !0, e.enter("tableCellDivider"), e.consume(I), e.exit("tableCellDivider"), T) : O(I);
13281
+ function m(N) {
13282
+ return N === 45 || N === 58 ? C(N) : N === 124 ? (s = !0, e.enter("tableCellDivider"), e.consume(N), e.exit("tableCellDivider"), T) : R(N);
13283
13283
  }
13284
- function T(I) {
13285
- return ae(I) ? oe(e, A, "whitespace")(I) : A(I);
13284
+ function T(N) {
13285
+ return ae(N) ? oe(e, C, "whitespace")(N) : C(N);
13286
13286
  }
13287
- function A(I) {
13288
- return I === 58 ? (a += 1, s = !0, e.enter("tableDelimiterMarker"), e.consume(I), e.exit("tableDelimiterMarker"), x) : I === 45 ? (a += 1, x(I)) : I === null || G(I) ? v(I) : O(I);
13287
+ function C(N) {
13288
+ return N === 58 ? (a += 1, s = !0, e.enter("tableDelimiterMarker"), e.consume(N), e.exit("tableDelimiterMarker"), y) : N === 45 ? (a += 1, y(N)) : N === null || G(N) ? D(N) : R(N);
13289
13289
  }
13290
- function x(I) {
13291
- return I === 45 ? (e.enter("tableDelimiterFiller"), N(I)) : O(I);
13290
+ function y(N) {
13291
+ return N === 45 ? (e.enter("tableDelimiterFiller"), I(N)) : R(N);
13292
13292
  }
13293
- function N(I) {
13294
- return I === 45 ? (e.consume(I), N) : I === 58 ? (s = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(I), e.exit("tableDelimiterMarker"), w) : (e.exit("tableDelimiterFiller"), w(I));
13293
+ function I(N) {
13294
+ return N === 45 ? (e.consume(N), I) : N === 58 ? (s = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(N), e.exit("tableDelimiterMarker"), w) : (e.exit("tableDelimiterFiller"), w(N));
13295
13295
  }
13296
- function w(I) {
13297
- return ae(I) ? oe(e, v, "whitespace")(I) : v(I);
13296
+ function w(N) {
13297
+ return ae(N) ? oe(e, D, "whitespace")(N) : D(N);
13298
13298
  }
13299
- function v(I) {
13300
- return I === 124 ? m(I) : I === null || G(I) ? !s || i !== a ? O(I) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(I)) : O(I);
13299
+ function D(N) {
13300
+ return N === 124 ? m(N) : N === null || G(N) ? !s || i !== a ? R(N) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(N)) : R(N);
13301
13301
  }
13302
- function O(I) {
13303
- return n(I);
13302
+ function R(N) {
13303
+ return n(N);
13304
13304
  }
13305
- function C(I) {
13306
- return e.enter("tableRow"), U(I);
13305
+ function A(N) {
13306
+ return e.enter("tableRow"), H(N);
13307
13307
  }
13308
- function U(I) {
13309
- return I === 124 ? (e.enter("tableCellDivider"), e.consume(I), e.exit("tableCellDivider"), U) : I === null || G(I) ? (e.exit("tableRow"), t(I)) : ae(I) ? oe(e, U, "whitespace")(I) : (e.enter("data"), B(I));
13308
+ function H(N) {
13309
+ return N === 124 ? (e.enter("tableCellDivider"), e.consume(N), e.exit("tableCellDivider"), H) : N === null || G(N) ? (e.exit("tableRow"), t(N)) : ae(N) ? oe(e, H, "whitespace")(N) : (e.enter("data"), B(N));
13310
13310
  }
13311
- function B(I) {
13312
- return I === null || I === 124 || ge(I) ? (e.exit("data"), U(I)) : (e.consume(I), I === 92 ? z : B);
13311
+ function B(N) {
13312
+ return N === null || N === 124 || ge(N) ? (e.exit("data"), H(N)) : (e.consume(N), N === 92 ? U : B);
13313
13313
  }
13314
- function z(I) {
13315
- return I === 92 || I === 124 ? (e.consume(I), B) : B(I);
13314
+ function U(N) {
13315
+ return N === 92 || N === 124 ? (e.consume(N), B) : B(N);
13316
13316
  }
13317
13317
  }
13318
13318
  function S2(e, t) {
@@ -13982,18 +13982,18 @@ const HE = (e, t) => {
13982
13982
  let s = 0, u = 0, o = 0, l;
13983
13983
  const f = i.length;
13984
13984
  for (let T = 0; T < f; T++) {
13985
- const A = i[T];
13985
+ const C = i[T];
13986
13986
  if (s === 0 && u === 0) {
13987
- if (A === Ru) {
13987
+ if (C === Ru) {
13988
13988
  a.push(i.slice(o, T)), o = T + 1;
13989
13989
  continue;
13990
13990
  }
13991
- if (A === "/") {
13991
+ if (C === "/") {
13992
13992
  l = T;
13993
13993
  continue;
13994
13994
  }
13995
13995
  }
13996
- A === "[" ? s++ : A === "]" ? s-- : A === "(" ? u++ : A === ")" && u--;
13996
+ C === "[" ? s++ : C === "]" ? s-- : C === "(" ? u++ : C === ")" && u--;
13997
13997
  }
13998
13998
  const d = a.length === 0 ? i : i.slice(o);
13999
13999
  let p = d, h = !1;
@@ -14057,26 +14057,26 @@ const HE = (e, t) => {
14057
14057
  o = f + (o.length > 0 ? " " + o : o);
14058
14058
  continue;
14059
14059
  }
14060
- let A = !!T, x = r(A ? m.substring(0, T) : m);
14061
- if (!x) {
14062
- if (!A) {
14060
+ let C = !!T, y = r(C ? m.substring(0, T) : m);
14061
+ if (!y) {
14062
+ if (!C) {
14063
14063
  o = f + (o.length > 0 ? " " + o : o);
14064
14064
  continue;
14065
14065
  }
14066
- if (x = r(m), !x) {
14066
+ if (y = r(m), !y) {
14067
14067
  o = f + (o.length > 0 ? " " + o : o);
14068
14068
  continue;
14069
14069
  }
14070
- A = !1;
14070
+ C = !1;
14071
14071
  }
14072
- const N = p.length === 0 ? "" : p.length === 1 ? p[0] : a(p).join(":"), w = h ? N + sa : N, v = w + x;
14073
- if (s.indexOf(v) > -1)
14072
+ const I = p.length === 0 ? "" : p.length === 1 ? p[0] : a(p).join(":"), w = h ? I + sa : I, D = w + y;
14073
+ if (s.indexOf(D) > -1)
14074
14074
  continue;
14075
- s.push(v);
14076
- const O = i(x, A);
14077
- for (let C = 0; C < O.length; ++C) {
14078
- const U = O[C];
14079
- s.push(w + U);
14075
+ s.push(D);
14076
+ const R = i(y, C);
14077
+ for (let A = 0; A < R.length; ++A) {
14078
+ const H = R[A];
14079
+ s.push(w + H);
14080
14080
  }
14081
14081
  o = f + (o.length > 0 ? " " + o : o);
14082
14082
  }
@@ -14121,7 +14121,7 @@ const HE = (e, t) => {
14121
14121
  const r = qc.exec(e);
14122
14122
  return r ? r[1] ? t(r[1]) : n : !1;
14123
14123
  }, Wc = (e) => e === "position" || e === "percentage", Gc = (e) => e === "image" || e === "url", Qc = (e) => e === "length" || e === "size" || e === "bg-size", Kc = (e) => e === "length", y3 = (e) => e === "number", A3 = (e) => e === "family-name", Xc = (e) => e === "shadow", C3 = () => {
14124
- const e = Se("color"), t = Se("font"), n = Se("text"), r = Se("font-weight"), i = Se("tracking"), a = Se("leading"), s = Se("breakpoint"), u = Se("container"), o = Se("spacing"), l = Se("radius"), f = Se("shadow"), d = Se("inset-shadow"), p = Se("text-shadow"), h = Se("drop-shadow"), m = Se("blur"), T = Se("perspective"), A = Se("aspect"), x = Se("ease"), N = Se("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], v = () => [
14124
+ const e = Se("color"), t = Se("font"), n = Se("text"), r = Se("font-weight"), i = Se("tracking"), a = Se("leading"), s = Se("breakpoint"), u = Se("container"), o = Se("spacing"), l = Se("radius"), f = Se("shadow"), d = Se("inset-shadow"), p = Se("text-shadow"), h = Se("drop-shadow"), m = Se("blur"), T = Se("perspective"), C = Se("aspect"), y = Se("ease"), I = Se("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], D = () => [
14125
14125
  "center",
14126
14126
  "top",
14127
14127
  "bottom",
@@ -14139,11 +14139,11 @@ const HE = (e, t) => {
14139
14139
  "bottom-left",
14140
14140
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
14141
14141
  "left-bottom"
14142
- ], O = () => [...v(), q, j], C = () => ["auto", "hidden", "clip", "visible", "scroll"], U = () => ["auto", "contain", "none"], B = () => [q, j, o], z = () => [tn, "full", "auto", ...B()], I = () => [Ct, "none", "subgrid", q, j], Y = () => ["auto", {
14142
+ ], R = () => [...D(), q, j], A = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", "contain", "none"], B = () => [q, j, o], U = () => [tn, "full", "auto", ...B()], N = () => [Ct, "none", "subgrid", q, j], Y = () => ["auto", {
14143
14143
  span: ["full", Ct, q, j]
14144
- }, Ct, q, j], M = () => [Ct, "auto", q, j], Q = () => ["auto", "min", "max", "fr", q, j], ie = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Z = () => ["auto", ...B()], J = () => [tn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...B()], V = () => [e, q, j], Fe = () => [...v(), Pu, Du, {
14144
+ }, Ct, q, j], M = () => [Ct, "auto", q, j], Q = () => ["auto", "min", "max", "fr", q, j], ie = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Z = () => ["auto", ...B()], J = () => [tn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...B()], V = () => [e, q, j], Fe = () => [...D(), Pu, Du, {
14145
14145
  position: [q, j]
14146
- }], y = () => ["no-repeat", {
14146
+ }], x = () => ["no-repeat", {
14147
14147
  repeat: ["", "x", "y", "space", "round"]
14148
14148
  }], Re = () => ["auto", "cover", "contain", k3, E3, {
14149
14149
  size: [q, j]
@@ -14195,7 +14195,7 @@ const HE = (e, t) => {
14195
14195
  * @see https://tailwindcss.com/docs/aspect-ratio
14196
14196
  */
14197
14197
  aspect: [{
14198
- aspect: ["auto", "square", tn, j, q, A]
14198
+ aspect: ["auto", "square", tn, j, q, C]
14199
14199
  }],
14200
14200
  /**
14201
14201
  * Container
@@ -14286,49 +14286,49 @@ const HE = (e, t) => {
14286
14286
  * @see https://tailwindcss.com/docs/object-position
14287
14287
  */
14288
14288
  "object-position": [{
14289
- object: O()
14289
+ object: R()
14290
14290
  }],
14291
14291
  /**
14292
14292
  * Overflow
14293
14293
  * @see https://tailwindcss.com/docs/overflow
14294
14294
  */
14295
14295
  overflow: [{
14296
- overflow: C()
14296
+ overflow: A()
14297
14297
  }],
14298
14298
  /**
14299
14299
  * Overflow X
14300
14300
  * @see https://tailwindcss.com/docs/overflow
14301
14301
  */
14302
14302
  "overflow-x": [{
14303
- "overflow-x": C()
14303
+ "overflow-x": A()
14304
14304
  }],
14305
14305
  /**
14306
14306
  * Overflow Y
14307
14307
  * @see https://tailwindcss.com/docs/overflow
14308
14308
  */
14309
14309
  "overflow-y": [{
14310
- "overflow-y": C()
14310
+ "overflow-y": A()
14311
14311
  }],
14312
14312
  /**
14313
14313
  * Overscroll Behavior
14314
14314
  * @see https://tailwindcss.com/docs/overscroll-behavior
14315
14315
  */
14316
14316
  overscroll: [{
14317
- overscroll: U()
14317
+ overscroll: H()
14318
14318
  }],
14319
14319
  /**
14320
14320
  * Overscroll Behavior X
14321
14321
  * @see https://tailwindcss.com/docs/overscroll-behavior
14322
14322
  */
14323
14323
  "overscroll-x": [{
14324
- "overscroll-x": U()
14324
+ "overscroll-x": H()
14325
14325
  }],
14326
14326
  /**
14327
14327
  * Overscroll Behavior Y
14328
14328
  * @see https://tailwindcss.com/docs/overscroll-behavior
14329
14329
  */
14330
14330
  "overscroll-y": [{
14331
- "overscroll-y": U()
14331
+ "overscroll-y": H()
14332
14332
  }],
14333
14333
  /**
14334
14334
  * Position
@@ -14340,63 +14340,63 @@ const HE = (e, t) => {
14340
14340
  * @see https://tailwindcss.com/docs/top-right-bottom-left
14341
14341
  */
14342
14342
  inset: [{
14343
- inset: z()
14343
+ inset: U()
14344
14344
  }],
14345
14345
  /**
14346
14346
  * Right / Left
14347
14347
  * @see https://tailwindcss.com/docs/top-right-bottom-left
14348
14348
  */
14349
14349
  "inset-x": [{
14350
- "inset-x": z()
14350
+ "inset-x": U()
14351
14351
  }],
14352
14352
  /**
14353
14353
  * Top / Bottom
14354
14354
  * @see https://tailwindcss.com/docs/top-right-bottom-left
14355
14355
  */
14356
14356
  "inset-y": [{
14357
- "inset-y": z()
14357
+ "inset-y": U()
14358
14358
  }],
14359
14359
  /**
14360
14360
  * Start
14361
14361
  * @see https://tailwindcss.com/docs/top-right-bottom-left
14362
14362
  */
14363
14363
  start: [{
14364
- start: z()
14364
+ start: U()
14365
14365
  }],
14366
14366
  /**
14367
14367
  * End
14368
14368
  * @see https://tailwindcss.com/docs/top-right-bottom-left
14369
14369
  */
14370
14370
  end: [{
14371
- end: z()
14371
+ end: U()
14372
14372
  }],
14373
14373
  /**
14374
14374
  * Top
14375
14375
  * @see https://tailwindcss.com/docs/top-right-bottom-left
14376
14376
  */
14377
14377
  top: [{
14378
- top: z()
14378
+ top: U()
14379
14379
  }],
14380
14380
  /**
14381
14381
  * Right
14382
14382
  * @see https://tailwindcss.com/docs/top-right-bottom-left
14383
14383
  */
14384
14384
  right: [{
14385
- right: z()
14385
+ right: U()
14386
14386
  }],
14387
14387
  /**
14388
14388
  * Bottom
14389
14389
  * @see https://tailwindcss.com/docs/top-right-bottom-left
14390
14390
  */
14391
14391
  bottom: [{
14392
- bottom: z()
14392
+ bottom: U()
14393
14393
  }],
14394
14394
  /**
14395
14395
  * Left
14396
14396
  * @see https://tailwindcss.com/docs/top-right-bottom-left
14397
14397
  */
14398
14398
  left: [{
14399
- left: z()
14399
+ left: U()
14400
14400
  }],
14401
14401
  /**
14402
14402
  * Visibility
@@ -14467,7 +14467,7 @@ const HE = (e, t) => {
14467
14467
  * @see https://tailwindcss.com/docs/grid-template-columns
14468
14468
  */
14469
14469
  "grid-cols": [{
14470
- "grid-cols": I()
14470
+ "grid-cols": N()
14471
14471
  }],
14472
14472
  /**
14473
14473
  * Grid Column Start / End
@@ -14495,7 +14495,7 @@ const HE = (e, t) => {
14495
14495
  * @see https://tailwindcss.com/docs/grid-template-rows
14496
14496
  */
14497
14497
  "grid-rows": [{
14498
- "grid-rows": I()
14498
+ "grid-rows": N()
14499
14499
  }],
14500
14500
  /**
14501
14501
  * Grid Row Start / End
@@ -15121,7 +15121,7 @@ const HE = (e, t) => {
15121
15121
  * @see https://tailwindcss.com/docs/background-repeat
15122
15122
  */
15123
15123
  "bg-repeat": [{
15124
- bg: y()
15124
+ bg: x()
15125
15125
  }],
15126
15126
  /**
15127
15127
  * Background Size
@@ -15755,7 +15755,7 @@ const HE = (e, t) => {
15755
15755
  }]
15756
15756
  }],
15757
15757
  "mask-image-radial-pos": [{
15758
- "mask-radial-at": v()
15758
+ "mask-radial-at": D()
15759
15759
  }],
15760
15760
  "mask-image-conic-pos": [{
15761
15761
  "mask-conic": [ne]
@@ -15798,7 +15798,7 @@ const HE = (e, t) => {
15798
15798
  * @see https://tailwindcss.com/docs/mask-repeat
15799
15799
  */
15800
15800
  "mask-repeat": [{
15801
- mask: y()
15801
+ mask: x()
15802
15802
  }],
15803
15803
  /**
15804
15804
  * Mask Size
@@ -16064,7 +16064,7 @@ const HE = (e, t) => {
16064
16064
  * @see https://tailwindcss.com/docs/transition-timing-function
16065
16065
  */
16066
16066
  ease: [{
16067
- ease: ["linear", "initial", x, q, j]
16067
+ ease: ["linear", "initial", y, q, j]
16068
16068
  }],
16069
16069
  /**
16070
16070
  * Transition Delay
@@ -16078,7 +16078,7 @@ const HE = (e, t) => {
16078
16078
  * @see https://tailwindcss.com/docs/animation
16079
16079
  */
16080
16080
  animate: [{
16081
- animate: ["none", N, q, j]
16081
+ animate: ["none", I, q, j]
16082
16082
  }],
16083
16083
  // ------------------
16084
16084
  // --- Transforms ---
@@ -16102,7 +16102,7 @@ const HE = (e, t) => {
16102
16102
  * @see https://tailwindcss.com/docs/perspective-origin
16103
16103
  */
16104
16104
  "perspective-origin": [{
16105
- "perspective-origin": O()
16105
+ "perspective-origin": R()
16106
16106
  }],
16107
16107
  /**
16108
16108
  * Rotate
@@ -16198,7 +16198,7 @@ const HE = (e, t) => {
16198
16198
  * @see https://tailwindcss.com/docs/transform-origin
16199
16199
  */
16200
16200
  "transform-origin": [{
16201
- origin: O()
16201
+ origin: R()
16202
16202
  }],
16203
16203
  /**
16204
16204
  * Transform Style
@@ -16616,8 +16616,8 @@ var Va = {}, Fu = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, R3 = /\n/g, O3 = /^\s*/, D3
16616
16616
  function i(m) {
16617
16617
  var T = m.match(R3);
16618
16618
  T && (n += T.length);
16619
- var A = m.lastIndexOf(H3);
16620
- r = ~A ? m.length - A : r + m.length;
16619
+ var C = m.lastIndexOf(H3);
16620
+ r = ~C ? m.length - C : r + m.length;
16621
16621
  }
16622
16622
  function a() {
16623
16623
  var m = { line: n, column: r };
@@ -16639,8 +16639,8 @@ var Va = {}, Fu = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, R3 = /\n/g, O3 = /^\s*/, D3
16639
16639
  function o(m) {
16640
16640
  var T = m.exec(e);
16641
16641
  if (T) {
16642
- var A = T[0];
16643
- return i(A), e = e.slice(A.length), T;
16642
+ var C = T[0];
16643
+ return i(C), e = e.slice(C.length), T;
16644
16644
  }
16645
16645
  }
16646
16646
  function l() {
@@ -16659,10 +16659,10 @@ var Va = {}, Fu = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, R3 = /\n/g, O3 = /^\s*/, D3
16659
16659
  ++T;
16660
16660
  if (T += 2, $t === e.charAt(T - 1))
16661
16661
  return u("End of comment missing");
16662
- var A = e.slice(2, T - 2);
16663
- return r += 2, i(A), e = e.slice(T), r += 2, m({
16662
+ var C = e.slice(2, T - 2);
16663
+ return r += 2, i(C), e = e.slice(T), r += 2, m({
16664
16664
  type: U3,
16665
- comment: A
16665
+ comment: C
16666
16666
  });
16667
16667
  }
16668
16668
  }
@@ -16671,12 +16671,12 @@ var Va = {}, Fu = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, R3 = /\n/g, O3 = /^\s*/, D3
16671
16671
  if (T) {
16672
16672
  if (d(), !o(P3))
16673
16673
  return u("property missing ':'");
16674
- var A = o(M3), x = m({
16674
+ var C = o(M3), y = m({
16675
16675
  type: z3,
16676
16676
  property: zu(T[0].replace(Fu, $t)),
16677
- value: A ? zu(A[0].replace(Fu, $t)) : $t
16677
+ value: C ? zu(C[0].replace(Fu, $t)) : $t
16678
16678
  });
16679
- return o(B3), x;
16679
+ return o(B3), y;
16680
16680
  }
16681
16681
  }
16682
16682
  function h() {
@@ -17164,28 +17164,28 @@ function IT(e) {
17164
17164
  return u;
17165
17165
  function u(w) {
17166
17166
  if (r < n.length) {
17167
- const v = n[r];
17168
- return t.containerState = v[1], e.attempt(v[0].continuation, o, l)(w);
17167
+ const D = n[r];
17168
+ return t.containerState = D[1], e.attempt(D[0].continuation, o, l)(w);
17169
17169
  }
17170
17170
  return l(w);
17171
17171
  }
17172
17172
  function o(w) {
17173
17173
  if (r++, t.containerState._closeFlow) {
17174
- t.containerState._closeFlow = void 0, i && N();
17175
- const v = t.events.length;
17176
- let O = v, C;
17177
- for (; O--; )
17178
- if (t.events[O][0] === "exit" && t.events[O][1].type === "chunkFlow") {
17179
- C = t.events[O][1].end;
17174
+ t.containerState._closeFlow = void 0, i && I();
17175
+ const D = t.events.length;
17176
+ let R = D, A;
17177
+ for (; R--; )
17178
+ if (t.events[R][0] === "exit" && t.events[R][1].type === "chunkFlow") {
17179
+ A = t.events[R][1].end;
17180
17180
  break;
17181
17181
  }
17182
- x(r);
17183
- let U = v;
17184
- for (; U < t.events.length; )
17185
- t.events[U][1].end = {
17186
- ...C
17187
- }, U++;
17188
- return et(t.events, O + 1, 0, t.events.slice(v)), t.events.length = U, l(w);
17182
+ y(r);
17183
+ let H = D;
17184
+ for (; H < t.events.length; )
17185
+ t.events[H][1].end = {
17186
+ ...A
17187
+ }, H++;
17188
+ return et(t.events, R + 1, 0, t.events.slice(D)), t.events.length = H, l(w);
17189
17189
  }
17190
17190
  return u(w);
17191
17191
  }
@@ -17200,7 +17200,7 @@ function IT(e) {
17200
17200
  return t.containerState = {}, e.check(qu, f, d)(w);
17201
17201
  }
17202
17202
  function f(w) {
17203
- return i && N(), x(r), p(w);
17203
+ return i && I(), y(r), p(w);
17204
17204
  }
17205
17205
  function d(w) {
17206
17206
  return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, m(w);
@@ -17213,7 +17213,7 @@ function IT(e) {
17213
17213
  }
17214
17214
  function m(w) {
17215
17215
  if (w === null) {
17216
- i && N(), x(0), e.consume(w);
17216
+ i && I(), y(0), e.consume(w);
17217
17217
  return;
17218
17218
  }
17219
17219
  return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
@@ -17224,49 +17224,49 @@ function IT(e) {
17224
17224
  }
17225
17225
  function T(w) {
17226
17226
  if (w === null) {
17227
- A(e.exit("chunkFlow"), !0), x(0), e.consume(w);
17227
+ C(e.exit("chunkFlow"), !0), y(0), e.consume(w);
17228
17228
  return;
17229
17229
  }
17230
- return G(w) ? (e.consume(w), A(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, u) : (e.consume(w), T);
17230
+ return G(w) ? (e.consume(w), C(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, u) : (e.consume(w), T);
17231
17231
  }
17232
- function A(w, v) {
17233
- const O = t.sliceStream(w);
17234
- if (v && O.push(null), w.previous = a, a && (a.next = w), a = w, i.defineSkip(w.start), i.write(O), t.parser.lazy[w.start.line]) {
17235
- let C = i.events.length;
17236
- for (; C--; )
17232
+ function C(w, D) {
17233
+ const R = t.sliceStream(w);
17234
+ if (D && R.push(null), w.previous = a, a && (a.next = w), a = w, i.defineSkip(w.start), i.write(R), t.parser.lazy[w.start.line]) {
17235
+ let A = i.events.length;
17236
+ for (; A--; )
17237
17237
  if (
17238
17238
  // The token starts before the line ending…
17239
- i.events[C][1].start.offset < s && // …and either is not ended yet…
17240
- (!i.events[C][1].end || // …or ends after it.
17241
- i.events[C][1].end.offset > s)
17239
+ i.events[A][1].start.offset < s && // …and either is not ended yet…
17240
+ (!i.events[A][1].end || // …or ends after it.
17241
+ i.events[A][1].end.offset > s)
17242
17242
  )
17243
17243
  return;
17244
- const U = t.events.length;
17245
- let B = U, z, I;
17244
+ const H = t.events.length;
17245
+ let B = H, U, N;
17246
17246
  for (; B--; )
17247
17247
  if (t.events[B][0] === "exit" && t.events[B][1].type === "chunkFlow") {
17248
- if (z) {
17249
- I = t.events[B][1].end;
17248
+ if (U) {
17249
+ N = t.events[B][1].end;
17250
17250
  break;
17251
17251
  }
17252
- z = !0;
17252
+ U = !0;
17253
17253
  }
17254
- for (x(r), C = U; C < t.events.length; )
17255
- t.events[C][1].end = {
17256
- ...I
17257
- }, C++;
17258
- et(t.events, B + 1, 0, t.events.slice(U)), t.events.length = C;
17254
+ for (y(r), A = H; A < t.events.length; )
17255
+ t.events[A][1].end = {
17256
+ ...N
17257
+ }, A++;
17258
+ et(t.events, B + 1, 0, t.events.slice(H)), t.events.length = A;
17259
17259
  }
17260
17260
  }
17261
- function x(w) {
17262
- let v = n.length;
17263
- for (; v-- > w; ) {
17264
- const O = n[v];
17265
- t.containerState = O[1], O[0].exit.call(t, e);
17261
+ function y(w) {
17262
+ let D = n.length;
17263
+ for (; D-- > w; ) {
17264
+ const R = n[D];
17265
+ t.containerState = R[1], R[0].exit.call(t, e);
17266
17266
  }
17267
17267
  n.length = w;
17268
17268
  }
17269
- function N() {
17269
+ function I() {
17270
17270
  i.write([null]), a = void 0, i = void 0, t.containerState._closeFlow = void 0;
17271
17271
  }
17272
17272
  }
@@ -17466,12 +17466,12 @@ function VT(e, t, n) {
17466
17466
  const i = {}, a = [];
17467
17467
  let s = [], u = [];
17468
17468
  const o = {
17469
- attempt: U(O),
17470
- check: U(C),
17471
- consume: N,
17469
+ attempt: H(R),
17470
+ check: H(A),
17471
+ consume: I,
17472
17472
  enter: w,
17473
- exit: v,
17474
- interrupt: U(C, {
17473
+ exit: D,
17474
+ interrupt: H(A, {
17475
17475
  interrupt: !0
17476
17476
  })
17477
17477
  }, l = {
@@ -17489,7 +17489,7 @@ function VT(e, t, n) {
17489
17489
  let f = t.tokenize.call(l, o);
17490
17490
  return t.resolveAll && a.push(t), l;
17491
17491
  function d(Y) {
17492
- return s = nt(s, Y), A(), s[s.length - 1] !== null ? [] : (B(t, 0), l.events = oi(a, l.events, l), l.events);
17492
+ return s = nt(s, Y), C(), s[s.length - 1] !== null ? [] : (B(t, 0), l.events = oi(a, l.events, l), l.events);
17493
17493
  }
17494
17494
  function p(Y, M) {
17495
17495
  return GT(h(Y), M);
@@ -17514,24 +17514,24 @@ function VT(e, t, n) {
17514
17514
  };
17515
17515
  }
17516
17516
  function T(Y) {
17517
- i[Y.line] = Y.column, I();
17517
+ i[Y.line] = Y.column, N();
17518
17518
  }
17519
- function A() {
17519
+ function C() {
17520
17520
  let Y;
17521
17521
  for (; r._index < s.length; ) {
17522
17522
  const M = s[r._index];
17523
17523
  if (typeof M == "string")
17524
17524
  for (Y = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === Y && r._bufferIndex < M.length; )
17525
- x(M.charCodeAt(r._bufferIndex));
17525
+ y(M.charCodeAt(r._bufferIndex));
17526
17526
  else
17527
- x(M);
17527
+ y(M);
17528
17528
  }
17529
17529
  }
17530
- function x(Y) {
17530
+ function y(Y) {
17531
17531
  f = f(Y);
17532
17532
  }
17533
- function N(Y) {
17534
- G(Y) ? (r.line++, r.column = 1, r.offset += Y === -3 ? 2 : 1, I()) : Y !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
17533
+ function I(Y) {
17534
+ G(Y) ? (r.line++, r.column = 1, r.offset += Y === -3 ? 2 : 1, N()) : Y !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
17535
17535
  // strings.
17536
17536
  /** @type {string} */
17537
17537
  s[r._index].length && (r._bufferIndex = -1, r._index++)), l.previous = Y;
@@ -17540,20 +17540,20 @@ function VT(e, t, n) {
17540
17540
  const Q = M || {};
17541
17541
  return Q.type = Y, Q.start = m(), l.events.push(["enter", Q, l]), u.push(Q), Q;
17542
17542
  }
17543
- function v(Y) {
17543
+ function D(Y) {
17544
17544
  const M = u.pop();
17545
17545
  return M.end = m(), l.events.push(["exit", M, l]), M;
17546
17546
  }
17547
- function O(Y, M) {
17547
+ function R(Y, M) {
17548
17548
  B(Y, M.from);
17549
17549
  }
17550
- function C(Y, M) {
17550
+ function A(Y, M) {
17551
17551
  M.restore();
17552
17552
  }
17553
- function U(Y, M) {
17553
+ function H(Y, M) {
17554
17554
  return Q;
17555
17555
  function Q(ie, K, Z) {
17556
- let J, V, Fe, y;
17556
+ let J, V, Fe, x;
17557
17557
  return Array.isArray(ie) ? (
17558
17558
  /* c8 ignore next 1 */
17559
17559
  He(ie)
@@ -17582,7 +17582,7 @@ function VT(e, t, n) {
17582
17582
  function k(xe) {
17583
17583
  return Ee;
17584
17584
  function Ee(We) {
17585
- return y = z(), Fe = xe, xe.partial || (l.currentConstruct = xe), xe.name && l.parser.constructs.disable.null.includes(xe.name) ? Ye() : xe.tokenize.call(
17585
+ return x = U(), Fe = xe, xe.partial || (l.currentConstruct = xe), xe.name && l.parser.constructs.disable.null.includes(xe.name) ? Ye() : xe.tokenize.call(
17586
17586
  // If we do have fields, create an object w/ `context` as its
17587
17587
  // prototype.
17588
17588
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -17594,27 +17594,27 @@ function VT(e, t, n) {
17594
17594
  }
17595
17595
  }
17596
17596
  function he(xe) {
17597
- return Y(Fe, y), K;
17597
+ return Y(Fe, x), K;
17598
17598
  }
17599
17599
  function Ye(xe) {
17600
- return y.restore(), ++V < J.length ? k(J[V]) : Z;
17600
+ return x.restore(), ++V < J.length ? k(J[V]) : Z;
17601
17601
  }
17602
17602
  }
17603
17603
  }
17604
17604
  function B(Y, M) {
17605
17605
  Y.resolveAll && !a.includes(Y) && a.push(Y), Y.resolve && et(l.events, M, l.events.length - M, Y.resolve(l.events.slice(M), l)), Y.resolveTo && (l.events = Y.resolveTo(l.events, l));
17606
17606
  }
17607
- function z() {
17607
+ function U() {
17608
17608
  const Y = m(), M = l.previous, Q = l.currentConstruct, ie = l.events.length, K = Array.from(u);
17609
17609
  return {
17610
17610
  from: ie,
17611
17611
  restore: Z
17612
17612
  };
17613
17613
  function Z() {
17614
- r = Y, l.previous = M, l.currentConstruct = Q, l.events.length = ie, u = K, I();
17614
+ r = Y, l.previous = M, l.currentConstruct = Q, l.events.length = ie, u = K, N();
17615
17615
  }
17616
17616
  }
17617
- function I() {
17617
+ function N() {
17618
17618
  r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
17619
17619
  }
17620
17620
  }
@@ -17748,20 +17748,20 @@ function JT(e) {
17748
17748
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
17749
17749
  enter: {
17750
17750
  autolink: a(fs),
17751
- autolinkProtocol: z,
17752
- autolinkEmail: z,
17751
+ autolinkProtocol: U,
17752
+ autolinkEmail: U,
17753
17753
  atxHeading: a(yn),
17754
17754
  blockQuote: a(Qe),
17755
- characterEscape: z,
17756
- characterReference: z,
17755
+ characterEscape: U,
17756
+ characterReference: U,
17757
17757
  codeFenced: a(ct),
17758
17758
  codeFencedFenceInfo: s,
17759
17759
  codeFencedFenceMeta: s,
17760
17760
  codeIndented: a(ct, s),
17761
17761
  codeText: a(ue, s),
17762
- codeTextData: z,
17763
- data: z,
17764
- codeFlowValue: z,
17762
+ codeTextData: U,
17763
+ data: U,
17764
+ codeFlowValue: U,
17765
17765
  definition: a(Ke),
17766
17766
  definitionDestinationString: s,
17767
17767
  definitionLabelString: s,
@@ -17770,9 +17770,9 @@ function JT(e) {
17770
17770
  hardBreakEscape: a(cs),
17771
17771
  hardBreakTrailing: a(cs),
17772
17772
  htmlFlow: a(ds, s),
17773
- htmlFlowData: z,
17773
+ htmlFlowData: U,
17774
17774
  htmlText: a(ds, s),
17775
- htmlTextData: z,
17775
+ htmlTextData: U,
17776
17776
  image: a(r0),
17777
17777
  label: s,
17778
17778
  link: a(fs),
@@ -17791,36 +17791,36 @@ function JT(e) {
17791
17791
  },
17792
17792
  exit: {
17793
17793
  atxHeading: o(),
17794
- atxHeadingSequence: O,
17794
+ atxHeadingSequence: R,
17795
17795
  autolink: o(),
17796
17796
  autolinkEmail: Ge,
17797
17797
  autolinkProtocol: We,
17798
17798
  blockQuote: o(),
17799
- characterEscapeValue: I,
17799
+ characterEscapeValue: N,
17800
17800
  characterReferenceMarkerHexadecimal: Ye,
17801
17801
  characterReferenceMarkerNumeric: Ye,
17802
17802
  characterReferenceValue: xe,
17803
17803
  characterReference: Ee,
17804
- codeFenced: o(A),
17804
+ codeFenced: o(C),
17805
17805
  codeFencedFence: T,
17806
17806
  codeFencedFenceInfo: h,
17807
17807
  codeFencedFenceMeta: m,
17808
- codeFlowValue: I,
17809
- codeIndented: o(x),
17808
+ codeFlowValue: N,
17809
+ codeIndented: o(y),
17810
17810
  codeText: o(K),
17811
- codeTextData: I,
17812
- data: I,
17811
+ codeTextData: N,
17812
+ data: N,
17813
17813
  definition: o(),
17814
- definitionDestinationString: v,
17815
- definitionLabelString: N,
17814
+ definitionDestinationString: D,
17815
+ definitionLabelString: I,
17816
17816
  definitionTitleString: w,
17817
17817
  emphasis: o(),
17818
17818
  hardBreakEscape: o(M),
17819
17819
  hardBreakTrailing: o(M),
17820
17820
  htmlFlow: o(Q),
17821
- htmlFlowData: I,
17821
+ htmlFlowData: N,
17822
17822
  htmlText: o(ie),
17823
- htmlTextData: I,
17823
+ htmlTextData: N,
17824
17824
  image: o(J),
17825
17825
  label: Fe,
17826
17826
  labelText: V,
@@ -17831,12 +17831,12 @@ function JT(e) {
17831
17831
  listUnordered: o(),
17832
17832
  paragraph: o(),
17833
17833
  referenceString: he,
17834
- resourceDestinationString: y,
17834
+ resourceDestinationString: x,
17835
17835
  resourceTitleString: Re,
17836
17836
  resource: He,
17837
17837
  setextHeading: o(B),
17838
- setextHeadingLineSequence: U,
17839
- setextHeadingText: C,
17838
+ setextHeadingLineSequence: H,
17839
+ setextHeadingText: A,
17840
17840
  strong: o(),
17841
17841
  thematicBreak: o()
17842
17842
  }
@@ -17844,13 +17844,13 @@ function JT(e) {
17844
17844
  sd(t, (e || {}).mdastExtensions || []);
17845
17845
  const n = {};
17846
17846
  return r;
17847
- function r(R) {
17848
- let H = {
17847
+ function r(v) {
17848
+ let z = {
17849
17849
  type: "root",
17850
17850
  children: []
17851
17851
  };
17852
17852
  const ee = {
17853
- stack: [H],
17853
+ stack: [z],
17854
17854
  tokenStack: [],
17855
17855
  config: t,
17856
17856
  enter: u,
@@ -17860,43 +17860,43 @@ function JT(e) {
17860
17860
  data: n
17861
17861
  }, se = [];
17862
17862
  let pe = -1;
17863
- for (; ++pe < R.length; )
17864
- if (R[pe][1].type === "listOrdered" || R[pe][1].type === "listUnordered")
17865
- if (R[pe][0] === "enter")
17863
+ for (; ++pe < v.length; )
17864
+ if (v[pe][1].type === "listOrdered" || v[pe][1].type === "listUnordered")
17865
+ if (v[pe][0] === "enter")
17866
17866
  se.push(pe);
17867
17867
  else {
17868
17868
  const st = se.pop();
17869
- pe = i(R, st, pe);
17869
+ pe = i(v, st, pe);
17870
17870
  }
17871
- for (pe = -1; ++pe < R.length; ) {
17872
- const st = t[R[pe][0]];
17873
- ad.call(st, R[pe][1].type) && st[R[pe][1].type].call(Object.assign({
17874
- sliceSerialize: R[pe][2].sliceSerialize
17875
- }, ee), R[pe][1]);
17871
+ for (pe = -1; ++pe < v.length; ) {
17872
+ const st = t[v[pe][0]];
17873
+ ad.call(st, v[pe][1].type) && st[v[pe][1].type].call(Object.assign({
17874
+ sliceSerialize: v[pe][2].sliceSerialize
17875
+ }, ee), v[pe][1]);
17876
17876
  }
17877
17877
  if (ee.tokenStack.length > 0) {
17878
17878
  const st = ee.tokenStack[ee.tokenStack.length - 1];
17879
17879
  (st[1] || Wu).call(ee, void 0, st[0]);
17880
17880
  }
17881
- for (H.position = {
17882
- start: St(R.length > 0 ? R[0][1].start : {
17881
+ for (z.position = {
17882
+ start: St(v.length > 0 ? v[0][1].start : {
17883
17883
  line: 1,
17884
17884
  column: 1,
17885
17885
  offset: 0
17886
17886
  }),
17887
- end: St(R.length > 0 ? R[R.length - 2][1].end : {
17887
+ end: St(v.length > 0 ? v[v.length - 2][1].end : {
17888
17888
  line: 1,
17889
17889
  column: 1,
17890
17890
  offset: 0
17891
17891
  })
17892
17892
  }, pe = -1; ++pe < t.transforms.length; )
17893
- H = t.transforms[pe](H) || H;
17894
- return H;
17893
+ z = t.transforms[pe](z) || z;
17894
+ return z;
17895
17895
  }
17896
- function i(R, H, ee) {
17897
- let se = H - 1, pe = -1, st = !1, Bt, Et, An, Cn;
17896
+ function i(v, z, ee) {
17897
+ let se = z - 1, pe = -1, st = !1, Bt, Et, An, Cn;
17898
17898
  for (; ++se <= ee; ) {
17899
- const Xe = R[se];
17899
+ const Xe = v[se];
17900
17900
  switch (Xe[1].type) {
17901
17901
  case "listUnordered":
17902
17902
  case "listOrdered":
@@ -17921,15 +17921,15 @@ function JT(e) {
17921
17921
  if (Bt) {
17922
17922
  let Jt = se;
17923
17923
  for (Et = void 0; Jt--; ) {
17924
- const Tt = R[Jt];
17924
+ const Tt = v[Jt];
17925
17925
  if (Tt[1].type === "lineEnding" || Tt[1].type === "lineEndingBlank") {
17926
17926
  if (Tt[0] === "exit")
17927
17927
  continue;
17928
- Et && (R[Et][1].type = "lineEndingBlank", st = !0), Tt[1].type = "lineEnding", Et = Jt;
17928
+ Et && (v[Et][1].type = "lineEndingBlank", st = !0), Tt[1].type = "lineEnding", Et = Jt;
17929
17929
  } else if (!(Tt[1].type === "linePrefix" || Tt[1].type === "blockQuotePrefix" || Tt[1].type === "blockQuotePrefixWhitespace" || Tt[1].type === "blockQuoteMarker" || Tt[1].type === "listItemIndent"))
17930
17930
  break;
17931
17931
  }
17932
- An && (!Et || An < Et) && (Bt._spread = !0), Bt.end = Object.assign({}, Et ? R[Et][1].start : Xe[1].end), R.splice(Et || se, 0, ["exit", Bt, Xe[2]]), se++, ee++;
17932
+ An && (!Et || An < Et) && (Bt._spread = !0), Bt.end = Object.assign({}, Et ? v[Et][1].start : Xe[1].end), v.splice(Et || se, 0, ["exit", Bt, Xe[2]]), se++, ee++;
17933
17933
  }
17934
17934
  if (Xe[1].type === "listItemPrefix") {
17935
17935
  const Jt = {
@@ -17939,16 +17939,16 @@ function JT(e) {
17939
17939
  // @ts-expect-error: we’ll add `end` in a second.
17940
17940
  end: void 0
17941
17941
  };
17942
- Bt = Jt, R.splice(se, 0, ["enter", Jt, Xe[2]]), se++, ee++, An = void 0, Cn = !0;
17942
+ Bt = Jt, v.splice(se, 0, ["enter", Jt, Xe[2]]), se++, ee++, An = void 0, Cn = !0;
17943
17943
  }
17944
17944
  }
17945
17945
  }
17946
- return R[H][1]._spread = st, ee;
17946
+ return v[z][1]._spread = st, ee;
17947
17947
  }
17948
- function a(R, H) {
17948
+ function a(v, z) {
17949
17949
  return ee;
17950
17950
  function ee(se) {
17951
- u.call(this, R(se), se), H && H.call(this, se);
17951
+ u.call(this, v(se), se), z && z.call(this, se);
17952
17952
  }
17953
17953
  }
17954
17954
  function s() {
@@ -17957,29 +17957,29 @@ function JT(e) {
17957
17957
  children: []
17958
17958
  });
17959
17959
  }
17960
- function u(R, H, ee) {
17961
- this.stack[this.stack.length - 1].children.push(R), this.stack.push(R), this.tokenStack.push([H, ee || void 0]), R.position = {
17962
- start: St(H.start),
17960
+ function u(v, z, ee) {
17961
+ this.stack[this.stack.length - 1].children.push(v), this.stack.push(v), this.tokenStack.push([z, ee || void 0]), v.position = {
17962
+ start: St(z.start),
17963
17963
  // @ts-expect-error: `end` will be patched later.
17964
17964
  end: void 0
17965
17965
  };
17966
17966
  }
17967
- function o(R) {
17968
- return H;
17969
- function H(ee) {
17970
- R && R.call(this, ee), l.call(this, ee);
17967
+ function o(v) {
17968
+ return z;
17969
+ function z(ee) {
17970
+ v && v.call(this, ee), l.call(this, ee);
17971
17971
  }
17972
17972
  }
17973
- function l(R, H) {
17973
+ function l(v, z) {
17974
17974
  const ee = this.stack.pop(), se = this.tokenStack.pop();
17975
17975
  if (se)
17976
- se[0].type !== R.type && (H ? H.call(this, R, se[0]) : (se[1] || Wu).call(this, R, se[0]));
17976
+ se[0].type !== v.type && (z ? z.call(this, v, se[0]) : (se[1] || Wu).call(this, v, se[0]));
17977
17977
  else
17978
- throw new Error("Cannot close `" + R.type + "` (" + jn({
17979
- start: R.start,
17980
- end: R.end
17978
+ throw new Error("Cannot close `" + v.type + "` (" + jn({
17979
+ start: v.start,
17980
+ end: v.end
17981
17981
  }) + "): it’s not open");
17982
- ee.position.end = St(R.end);
17982
+ ee.position.end = St(v.end);
17983
17983
  }
17984
17984
  function f() {
17985
17985
  return Ha(this.stack.pop());
@@ -17987,134 +17987,134 @@ function JT(e) {
17987
17987
  function d() {
17988
17988
  this.data.expectingFirstListItemValue = !0;
17989
17989
  }
17990
- function p(R) {
17990
+ function p(v) {
17991
17991
  if (this.data.expectingFirstListItemValue) {
17992
- const H = this.stack[this.stack.length - 2];
17993
- H.start = Number.parseInt(this.sliceSerialize(R), 10), this.data.expectingFirstListItemValue = void 0;
17992
+ const z = this.stack[this.stack.length - 2];
17993
+ z.start = Number.parseInt(this.sliceSerialize(v), 10), this.data.expectingFirstListItemValue = void 0;
17994
17994
  }
17995
17995
  }
17996
17996
  function h() {
17997
- const R = this.resume(), H = this.stack[this.stack.length - 1];
17998
- H.lang = R;
17997
+ const v = this.resume(), z = this.stack[this.stack.length - 1];
17998
+ z.lang = v;
17999
17999
  }
18000
18000
  function m() {
18001
- const R = this.resume(), H = this.stack[this.stack.length - 1];
18002
- H.meta = R;
18001
+ const v = this.resume(), z = this.stack[this.stack.length - 1];
18002
+ z.meta = v;
18003
18003
  }
18004
18004
  function T() {
18005
18005
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
18006
18006
  }
18007
- function A() {
18008
- const R = this.resume(), H = this.stack[this.stack.length - 1];
18009
- H.value = R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
18007
+ function C() {
18008
+ const v = this.resume(), z = this.stack[this.stack.length - 1];
18009
+ z.value = v.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
18010
18010
  }
18011
- function x() {
18012
- const R = this.resume(), H = this.stack[this.stack.length - 1];
18013
- H.value = R.replace(/(\r?\n|\r)$/g, "");
18011
+ function y() {
18012
+ const v = this.resume(), z = this.stack[this.stack.length - 1];
18013
+ z.value = v.replace(/(\r?\n|\r)$/g, "");
18014
18014
  }
18015
- function N(R) {
18016
- const H = this.resume(), ee = this.stack[this.stack.length - 1];
18017
- ee.label = H, ee.identifier = ot(this.sliceSerialize(R)).toLowerCase();
18015
+ function I(v) {
18016
+ const z = this.resume(), ee = this.stack[this.stack.length - 1];
18017
+ ee.label = z, ee.identifier = ot(this.sliceSerialize(v)).toLowerCase();
18018
18018
  }
18019
18019
  function w() {
18020
- const R = this.resume(), H = this.stack[this.stack.length - 1];
18021
- H.title = R;
18020
+ const v = this.resume(), z = this.stack[this.stack.length - 1];
18021
+ z.title = v;
18022
18022
  }
18023
- function v() {
18024
- const R = this.resume(), H = this.stack[this.stack.length - 1];
18025
- H.url = R;
18023
+ function D() {
18024
+ const v = this.resume(), z = this.stack[this.stack.length - 1];
18025
+ z.url = v;
18026
18026
  }
18027
- function O(R) {
18028
- const H = this.stack[this.stack.length - 1];
18029
- if (!H.depth) {
18030
- const ee = this.sliceSerialize(R).length;
18031
- H.depth = ee;
18027
+ function R(v) {
18028
+ const z = this.stack[this.stack.length - 1];
18029
+ if (!z.depth) {
18030
+ const ee = this.sliceSerialize(v).length;
18031
+ z.depth = ee;
18032
18032
  }
18033
18033
  }
18034
- function C() {
18034
+ function A() {
18035
18035
  this.data.setextHeadingSlurpLineEnding = !0;
18036
18036
  }
18037
- function U(R) {
18038
- const H = this.stack[this.stack.length - 1];
18039
- H.depth = this.sliceSerialize(R).codePointAt(0) === 61 ? 1 : 2;
18037
+ function H(v) {
18038
+ const z = this.stack[this.stack.length - 1];
18039
+ z.depth = this.sliceSerialize(v).codePointAt(0) === 61 ? 1 : 2;
18040
18040
  }
18041
18041
  function B() {
18042
18042
  this.data.setextHeadingSlurpLineEnding = void 0;
18043
18043
  }
18044
- function z(R) {
18044
+ function U(v) {
18045
18045
  const ee = this.stack[this.stack.length - 1].children;
18046
18046
  let se = ee[ee.length - 1];
18047
18047
  (!se || se.type !== "text") && (se = u0(), se.position = {
18048
- start: St(R.start),
18048
+ start: St(v.start),
18049
18049
  // @ts-expect-error: we’ll add `end` later.
18050
18050
  end: void 0
18051
18051
  }, ee.push(se)), this.stack.push(se);
18052
18052
  }
18053
- function I(R) {
18054
- const H = this.stack.pop();
18055
- H.value += this.sliceSerialize(R), H.position.end = St(R.end);
18053
+ function N(v) {
18054
+ const z = this.stack.pop();
18055
+ z.value += this.sliceSerialize(v), z.position.end = St(v.end);
18056
18056
  }
18057
- function Y(R) {
18058
- const H = this.stack[this.stack.length - 1];
18057
+ function Y(v) {
18058
+ const z = this.stack[this.stack.length - 1];
18059
18059
  if (this.data.atHardBreak) {
18060
- const ee = H.children[H.children.length - 1];
18061
- ee.position.end = St(R.end), this.data.atHardBreak = void 0;
18060
+ const ee = z.children[z.children.length - 1];
18061
+ ee.position.end = St(v.end), this.data.atHardBreak = void 0;
18062
18062
  return;
18063
18063
  }
18064
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(H.type) && (z.call(this, R), I.call(this, R));
18064
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(z.type) && (U.call(this, v), N.call(this, v));
18065
18065
  }
18066
18066
  function M() {
18067
18067
  this.data.atHardBreak = !0;
18068
18068
  }
18069
18069
  function Q() {
18070
- const R = this.resume(), H = this.stack[this.stack.length - 1];
18071
- H.value = R;
18070
+ const v = this.resume(), z = this.stack[this.stack.length - 1];
18071
+ z.value = v;
18072
18072
  }
18073
18073
  function ie() {
18074
- const R = this.resume(), H = this.stack[this.stack.length - 1];
18075
- H.value = R;
18074
+ const v = this.resume(), z = this.stack[this.stack.length - 1];
18075
+ z.value = v;
18076
18076
  }
18077
18077
  function K() {
18078
- const R = this.resume(), H = this.stack[this.stack.length - 1];
18079
- H.value = R;
18078
+ const v = this.resume(), z = this.stack[this.stack.length - 1];
18079
+ z.value = v;
18080
18080
  }
18081
18081
  function Z() {
18082
- const R = this.stack[this.stack.length - 1];
18082
+ const v = this.stack[this.stack.length - 1];
18083
18083
  if (this.data.inReference) {
18084
- const H = this.data.referenceType || "shortcut";
18085
- R.type += "Reference", R.referenceType = H, delete R.url, delete R.title;
18084
+ const z = this.data.referenceType || "shortcut";
18085
+ v.type += "Reference", v.referenceType = z, delete v.url, delete v.title;
18086
18086
  } else
18087
- delete R.identifier, delete R.label;
18087
+ delete v.identifier, delete v.label;
18088
18088
  this.data.referenceType = void 0;
18089
18089
  }
18090
18090
  function J() {
18091
- const R = this.stack[this.stack.length - 1];
18091
+ const v = this.stack[this.stack.length - 1];
18092
18092
  if (this.data.inReference) {
18093
- const H = this.data.referenceType || "shortcut";
18094
- R.type += "Reference", R.referenceType = H, delete R.url, delete R.title;
18093
+ const z = this.data.referenceType || "shortcut";
18094
+ v.type += "Reference", v.referenceType = z, delete v.url, delete v.title;
18095
18095
  } else
18096
- delete R.identifier, delete R.label;
18096
+ delete v.identifier, delete v.label;
18097
18097
  this.data.referenceType = void 0;
18098
18098
  }
18099
- function V(R) {
18100
- const H = this.sliceSerialize(R), ee = this.stack[this.stack.length - 2];
18101
- ee.label = xg(H), ee.identifier = ot(H).toLowerCase();
18099
+ function V(v) {
18100
+ const z = this.sliceSerialize(v), ee = this.stack[this.stack.length - 2];
18101
+ ee.label = xg(z), ee.identifier = ot(z).toLowerCase();
18102
18102
  }
18103
18103
  function Fe() {
18104
- const R = this.stack[this.stack.length - 1], H = this.resume(), ee = this.stack[this.stack.length - 1];
18104
+ const v = this.stack[this.stack.length - 1], z = this.resume(), ee = this.stack[this.stack.length - 1];
18105
18105
  if (this.data.inReference = !0, ee.type === "link") {
18106
- const se = R.children;
18106
+ const se = v.children;
18107
18107
  ee.children = se;
18108
18108
  } else
18109
- ee.alt = H;
18109
+ ee.alt = z;
18110
18110
  }
18111
- function y() {
18112
- const R = this.resume(), H = this.stack[this.stack.length - 1];
18113
- H.url = R;
18111
+ function x() {
18112
+ const v = this.resume(), z = this.stack[this.stack.length - 1];
18113
+ z.url = v;
18114
18114
  }
18115
18115
  function Re() {
18116
- const R = this.resume(), H = this.stack[this.stack.length - 1];
18117
- H.title = R;
18116
+ const v = this.resume(), z = this.stack[this.stack.length - 1];
18117
+ z.title = v;
18118
18118
  }
18119
18119
  function He() {
18120
18120
  this.data.inReference = void 0;
@@ -18122,33 +18122,33 @@ function JT(e) {
18122
18122
  function k() {
18123
18123
  this.data.referenceType = "collapsed";
18124
18124
  }
18125
- function he(R) {
18126
- const H = this.resume(), ee = this.stack[this.stack.length - 1];
18127
- ee.label = H, ee.identifier = ot(this.sliceSerialize(R)).toLowerCase(), this.data.referenceType = "full";
18125
+ function he(v) {
18126
+ const z = this.resume(), ee = this.stack[this.stack.length - 1];
18127
+ ee.label = z, ee.identifier = ot(this.sliceSerialize(v)).toLowerCase(), this.data.referenceType = "full";
18128
18128
  }
18129
- function Ye(R) {
18130
- this.data.characterReferenceType = R.type;
18129
+ function Ye(v) {
18130
+ this.data.characterReferenceType = v.type;
18131
18131
  }
18132
- function xe(R) {
18133
- const H = this.sliceSerialize(R), ee = this.data.characterReferenceType;
18132
+ function xe(v) {
18133
+ const z = this.sliceSerialize(v), ee = this.data.characterReferenceType;
18134
18134
  let se;
18135
- ee ? (se = pc(H, ee === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : se = za(H);
18135
+ ee ? (se = pc(z, ee === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : se = za(z);
18136
18136
  const pe = this.stack[this.stack.length - 1];
18137
18137
  pe.value += se;
18138
18138
  }
18139
- function Ee(R) {
18140
- const H = this.stack.pop();
18141
- H.position.end = St(R.end);
18139
+ function Ee(v) {
18140
+ const z = this.stack.pop();
18141
+ z.position.end = St(v.end);
18142
18142
  }
18143
- function We(R) {
18144
- I.call(this, R);
18145
- const H = this.stack[this.stack.length - 1];
18146
- H.url = this.sliceSerialize(R);
18143
+ function We(v) {
18144
+ N.call(this, v);
18145
+ const z = this.stack[this.stack.length - 1];
18146
+ z.url = this.sliceSerialize(v);
18147
18147
  }
18148
- function Ge(R) {
18149
- I.call(this, R);
18150
- const H = this.stack[this.stack.length - 1];
18151
- H.url = "mailto:" + this.sliceSerialize(R);
18148
+ function Ge(v) {
18149
+ N.call(this, v);
18150
+ const z = this.stack[this.stack.length - 1];
18151
+ z.url = "mailto:" + this.sliceSerialize(v);
18152
18152
  }
18153
18153
  function Qe() {
18154
18154
  return {
@@ -18220,19 +18220,19 @@ function JT(e) {
18220
18220
  children: []
18221
18221
  };
18222
18222
  }
18223
- function hs(R) {
18223
+ function hs(v) {
18224
18224
  return {
18225
18225
  type: "list",
18226
- ordered: R.type === "listOrdered",
18226
+ ordered: v.type === "listOrdered",
18227
18227
  start: null,
18228
- spread: R._spread,
18228
+ spread: v._spread,
18229
18229
  children: []
18230
18230
  };
18231
18231
  }
18232
- function i0(R) {
18232
+ function i0(v) {
18233
18233
  return {
18234
18234
  type: "listItem",
18235
- spread: R._spread,
18235
+ spread: v._spread,
18236
18236
  checked: null,
18237
18237
  children: []
18238
18238
  };
@@ -18703,8 +18703,8 @@ function L_(e) {
18703
18703
  const m = [], T = e.footnoteCounts.get(d);
18704
18704
  for (; T !== void 0 && ++h <= T; ) {
18705
18705
  m.length > 0 && m.push({ type: "text", value: " " });
18706
- let N = typeof n == "string" ? n : n(o, h);
18707
- typeof N == "string" && (N = { type: "text", value: N }), m.push({
18706
+ let I = typeof n == "string" ? n : n(o, h);
18707
+ typeof I == "string" && (I = { type: "text", value: I }), m.push({
18708
18708
  type: "element",
18709
18709
  tagName: "a",
18710
18710
  properties: {
@@ -18713,22 +18713,22 @@ function L_(e) {
18713
18713
  ariaLabel: typeof r == "string" ? r : r(o, h),
18714
18714
  className: ["data-footnote-backref"]
18715
18715
  },
18716
- children: Array.isArray(N) ? N : [N]
18716
+ children: Array.isArray(I) ? I : [I]
18717
18717
  });
18718
18718
  }
18719
- const A = f[f.length - 1];
18720
- if (A && A.type === "element" && A.tagName === "p") {
18721
- const N = A.children[A.children.length - 1];
18722
- N && N.type === "text" ? N.value += " " : A.children.push({ type: "text", value: " " }), A.children.push(...m);
18719
+ const C = f[f.length - 1];
18720
+ if (C && C.type === "element" && C.tagName === "p") {
18721
+ const I = C.children[C.children.length - 1];
18722
+ I && I.type === "text" ? I.value += " " : C.children.push({ type: "text", value: " " }), C.children.push(...m);
18723
18723
  } else
18724
18724
  f.push(...m);
18725
- const x = {
18725
+ const y = {
18726
18726
  type: "element",
18727
18727
  tagName: "li",
18728
18728
  properties: { id: t + "fn-" + p },
18729
18729
  children: e.wrap(f, !0)
18730
18730
  };
18731
- e.patch(l, x), u.push(x);
18731
+ e.patch(l, y), u.push(y);
18732
18732
  }
18733
18733
  if (u.length !== 0)
18734
18734
  return {
@@ -18785,8 +18785,8 @@ function R_(e, t) {
18785
18785
  return h(u, f, d);
18786
18786
  if (u.options.passThrough && u.options.passThrough.includes(p)) {
18787
18787
  if ("children" in f) {
18788
- const { children: T, ...A } = f, x = Vt(A);
18789
- return x.children = u.all(f), x;
18788
+ const { children: T, ...C } = f, y = Vt(C);
18789
+ return y.children = u.all(f), y;
18790
18790
  }
18791
18791
  return Vt(f);
18792
18792
  }
@@ -20282,27 +20282,27 @@ ${f}` : f;
20282
20282
  break;
20283
20283
  d = t[0], e = e.substring(d.length);
20284
20284
  let h = t[2].split(`
20285
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (x) => " ".repeat(3 * x.length)), m = e.split(`
20286
- `, 1)[0], T = !h.trim(), A = 0;
20287
- if (this.options.pedantic ? (A = 2, p = h.trimStart()) : T ? A = t[1].length + 1 : (A = t[2].search(this.rules.other.nonSpaceChar), A = A > 4 ? 1 : A, p = h.slice(A), A += t[1].length), T && this.rules.other.blankLine.test(m) && (d += m + `
20285
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (y) => " ".repeat(3 * y.length)), m = e.split(`
20286
+ `, 1)[0], T = !h.trim(), C = 0;
20287
+ if (this.options.pedantic ? (C = 2, p = h.trimStart()) : T ? C = t[1].length + 1 : (C = t[2].search(this.rules.other.nonSpaceChar), C = C > 4 ? 1 : C, p = h.slice(C), C += t[1].length), T && this.rules.other.blankLine.test(m) && (d += m + `
20288
20288
  `, e = e.substring(m.length + 1), f = !0), !f) {
20289
- let x = this.rules.other.nextBulletRegex(A), N = this.rules.other.hrRegex(A), w = this.rules.other.fencesBeginRegex(A), v = this.rules.other.headingBeginRegex(A), O = this.rules.other.htmlBeginRegex(A);
20289
+ let y = this.rules.other.nextBulletRegex(C), I = this.rules.other.hrRegex(C), w = this.rules.other.fencesBeginRegex(C), D = this.rules.other.headingBeginRegex(C), R = this.rules.other.htmlBeginRegex(C);
20290
20290
  for (; e; ) {
20291
- let C = e.split(`
20292
- `, 1)[0], U;
20293
- if (m = C, this.options.pedantic ? (m = m.replace(this.rules.other.listReplaceNesting, " "), U = m) : U = m.replace(this.rules.other.tabCharGlobal, " "), w.test(m) || v.test(m) || O.test(m) || x.test(m) || N.test(m))
20291
+ let A = e.split(`
20292
+ `, 1)[0], H;
20293
+ if (m = A, this.options.pedantic ? (m = m.replace(this.rules.other.listReplaceNesting, " "), H = m) : H = m.replace(this.rules.other.tabCharGlobal, " "), w.test(m) || D.test(m) || R.test(m) || y.test(m) || I.test(m))
20294
20294
  break;
20295
- if (U.search(this.rules.other.nonSpaceChar) >= A || !m.trim())
20295
+ if (H.search(this.rules.other.nonSpaceChar) >= C || !m.trim())
20296
20296
  p += `
20297
- ` + U.slice(A);
20297
+ ` + H.slice(C);
20298
20298
  else {
20299
- if (T || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || w.test(h) || v.test(h) || N.test(h))
20299
+ if (T || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || w.test(h) || D.test(h) || I.test(h))
20300
20300
  break;
20301
20301
  p += `
20302
20302
  ` + m;
20303
20303
  }
20304
- !T && !m.trim() && (T = !0), d += C + `
20305
- `, e = e.substring(C.length + 1), h = U.slice(A);
20304
+ !T && !m.trim() && (T = !0), d += A + `
20305
+ `, e = e.substring(A.length + 1), h = H.slice(C);
20306
20306
  }
20307
20307
  }
20308
20308
  s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(d) && (o = !0)), s.items.push({ type: "list_item", raw: d, task: !!this.options.gfm && this.rules.other.listIsTask.test(p), loose: !1, text: p, tokens: [] }), s.raw += d;
@@ -20709,9 +20709,9 @@ ${f}` : f;
20709
20709
  }
20710
20710
  let m = t;
20711
20711
  if ((p = this.options.extensions) != null && p.startInline) {
20712
- let T = 1 / 0, A = t.slice(1), x;
20713
- this.options.extensions.startInline.forEach((N) => {
20714
- x = N.call({ lexer: this }, A), typeof x == "number" && x >= 0 && (T = Math.min(T, x));
20712
+ let T = 1 / 0, C = t.slice(1), y;
20713
+ this.options.extensions.startInline.forEach((I) => {
20714
+ y = I.call({ lexer: this }, C), typeof y == "number" && y >= 0 && (T = Math.min(T, y));
20715
20715
  }), T < 1 / 0 && T >= 0 && (m = t.substring(0, T + 1));
20716
20716
  }
20717
20717
  if (h = this.tokenizer.inlineText(m)) {
@@ -21295,25 +21295,25 @@ function qk(e = {}) {
21295
21295
  let m = () => {
21296
21296
  o.current && (clearTimeout(o.current), o.current = null), l.current && (p(l.current), l.current = null);
21297
21297
  }, T = (w) => {
21298
- l.current = d((v) => {
21299
- v.timeRemaining() > 0 || v.didTimeout ? (s(!0), w.disconnect()) : l.current = d(() => {
21298
+ l.current = d((D) => {
21299
+ D.timeRemaining() > 0 || D.didTimeout ? (s(!0), w.disconnect()) : l.current = d(() => {
21300
21300
  s(!0), w.disconnect();
21301
21301
  }, { timeout: i / 2 });
21302
21302
  }, { timeout: i });
21303
- }, A = (w) => {
21303
+ }, C = (w) => {
21304
21304
  m(), o.current = window.setTimeout(() => {
21305
- var v, O;
21306
- let C = w.takeRecords();
21307
- (C.length === 0 || (O = (v = C.at(-1)) == null ? void 0 : v.isIntersecting) != null && O) && T(w);
21305
+ var D, R;
21306
+ let A = w.takeRecords();
21307
+ (A.length === 0 || (R = (D = A.at(-1)) == null ? void 0 : D.isIntersecting) != null && R) && T(w);
21308
21308
  }, n);
21309
- }, x = (w, v) => {
21310
- w.isIntersecting ? A(v) : m();
21311
- }, N = new IntersectionObserver((w) => {
21312
- for (let v of w)
21313
- x(v, N);
21309
+ }, y = (w, D) => {
21310
+ w.isIntersecting ? C(D) : m();
21311
+ }, I = new IntersectionObserver((w) => {
21312
+ for (let D of w)
21313
+ y(D, I);
21314
21314
  }, { rootMargin: r, threshold: 0 });
21315
- return N.observe(h), () => {
21316
- o.current && clearTimeout(o.current), l.current && p(l.current), N.disconnect();
21315
+ return I.observe(h), () => {
21316
+ o.current && clearTimeout(o.current), l.current && p(l.current), I.disconnect();
21317
21317
  };
21318
21318
  }, [t, n, r, i, p, d]), { shouldRender: a, containerRef: u };
21319
21319
  }
@@ -21329,8 +21329,8 @@ var ss = (e) => b("svg", { color: "currentColor", height: 16, strokeLinejoin: "r
21329
21329
  }
21330
21330
  try {
21331
21331
  u || (await navigator.clipboard.writeText(p), o(!0), e == null || e(), l.current = window.setTimeout(() => o(!1), n));
21332
- } catch (A) {
21333
- t == null || t(A);
21332
+ } catch (C) {
21333
+ t == null || t(C);
21334
21334
  }
21335
21335
  };
21336
21336
  we(() => () => {
@@ -21431,18 +21431,18 @@ var ss = (e) => b("svg", { color: "currentColor", height: 16, strokeLinejoin: "r
21431
21431
  a == null || a(new Error("Mermaid plugin not available"));
21432
21432
  return;
21433
21433
  }
21434
- let h = f.getMermaid(i), m = e.split("").reduce((x, N) => (x << 5) - x + N.charCodeAt(0) | 0, 0), T = `mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`, { svg: A } = await h.render(T, e);
21435
- if (!A) {
21434
+ let h = f.getMermaid(i), m = e.split("").reduce((y, I) => (y << 5) - y + I.charCodeAt(0) | 0, 0), T = `mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`, { svg: C } = await h.render(T, e);
21435
+ if (!C) {
21436
21436
  a == null || a(new Error("SVG not found. Please wait for the diagram to render."));
21437
21437
  return;
21438
21438
  }
21439
21439
  if (p === "svg") {
21440
- ln("diagram.svg", A, "image/svg+xml"), u(!1), r == null || r(p);
21440
+ ln("diagram.svg", C, "image/svg+xml"), u(!1), r == null || r(p);
21441
21441
  return;
21442
21442
  }
21443
21443
  if (p === "png") {
21444
- let x = await i6(A);
21445
- ln("diagram.png", x, "image/png"), r == null || r(p), u(!1);
21444
+ let y = await i6(C);
21445
+ ln("diagram.png", y, "image/png"), r == null || r(p), u(!1);
21446
21446
  return;
21447
21447
  }
21448
21448
  } catch (h) {
@@ -21576,27 +21576,27 @@ var ss = (e) => b("svg", { color: "currentColor", height: 16, strokeLinejoin: "r
21576
21576
  `);
21577
21577
  }, d6 = ({ children: e, className: t, onCopy: n, onError: r, timeout: i = 2e3 }) => {
21578
21578
  let [a, s] = ce(!1), [u, o] = ce(!1), l = Le(null), f = Le(0), { isAnimating: d } = at(it), p = async (m) => {
21579
- var T, A;
21579
+ var T, C;
21580
21580
  if (typeof window > "u" || !((T = navigator == null ? void 0 : navigator.clipboard) != null && T.write)) {
21581
21581
  r == null || r(new Error("Clipboard API not available"));
21582
21582
  return;
21583
21583
  }
21584
21584
  try {
21585
- let x = (A = l.current) == null ? void 0 : A.closest('[data-streamdown="table-wrapper"]'), N = x == null ? void 0 : x.querySelector("table");
21586
- if (!N) {
21585
+ let y = (C = l.current) == null ? void 0 : C.closest('[data-streamdown="table-wrapper"]'), I = y == null ? void 0 : y.querySelector("table");
21586
+ if (!I) {
21587
21587
  r == null || r(new Error("Table not found"));
21588
21588
  return;
21589
21589
  }
21590
- let w = Ad(N), v = m === "csv" ? Cd(w) : l6(w), O = new ClipboardItem({ "text/plain": new Blob([v], { type: "text/plain" }), "text/html": new Blob([N.outerHTML], { type: "text/html" }) });
21591
- await navigator.clipboard.write([O]), o(!0), s(!1), n == null || n(m), f.current = window.setTimeout(() => o(!1), i);
21592
- } catch (x) {
21593
- r == null || r(x);
21590
+ let w = Ad(I), D = m === "csv" ? Cd(w) : l6(w), R = new ClipboardItem({ "text/plain": new Blob([D], { type: "text/plain" }), "text/html": new Blob([I.outerHTML], { type: "text/html" }) });
21591
+ await navigator.clipboard.write([R]), o(!0), s(!1), n == null || n(m), f.current = window.setTimeout(() => o(!1), i);
21592
+ } catch (y) {
21593
+ r == null || r(y);
21594
21594
  }
21595
21595
  };
21596
21596
  we(() => {
21597
21597
  let m = (T) => {
21598
- let A = T.composedPath();
21599
- l.current && !A.includes(l.current) && s(!1);
21598
+ let C = T.composedPath();
21599
+ l.current && !C.includes(l.current) && s(!1);
21600
21600
  };
21601
21601
  return document.addEventListener("mousedown", m), () => {
21602
21602
  document.removeEventListener("mousedown", m), window.clearTimeout(f.current);
@@ -21628,7 +21628,7 @@ var ss = (e) => b("svg", { color: "currentColor", height: 16, strokeLinejoin: "r
21628
21628
  document.removeEventListener("mousedown", l);
21629
21629
  };
21630
21630
  }, []), b("div", { className: "relative", ref: s, children: [b("button", { className: X("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t), disabled: u, onClick: () => a(!i), title: "Download table", type: "button", children: e ?? b(hi, { size: 14 }) }), i ? b("div", { className: "absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg", children: [b("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => o("csv"), title: "Download table as CSV", type: "button", children: "CSV" }), b("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => o("markdown"), title: "Download table as Markdown", type: "button", children: "Markdown" })] }) : null] });
21631
- }, h6 = ({ children: e, className: t, showControls: n, ...r }) => b("div", { className: "my-4 flex flex-col space-y-2", "data-streamdown": "table-wrapper", children: [n ? b("div", { className: "flex items-center justify-end gap-1", children: [b(d6, {}), b(f6, {})] }) : null, b("div", { className: "overflow-x-auto", children: b("table", { className: X("w-full border-collapse border border-border", t), "data-streamdown": "table", ...r, children: e }) })] }), p6 = Qo(() => import("./code-block-37QAKDTI-af2193be.js").then((e) => ({ default: e.CodeBlock }))), m6 = Qo(() => import("./mermaid-4DMBBIKO-86182ec6.js").then((e) => ({ default: e.Mermaid }))), g6 = /language-([^\s]+)/;
21631
+ }, h6 = ({ children: e, className: t, showControls: n, ...r }) => b("div", { className: "my-4 flex flex-col space-y-2", "data-streamdown": "table-wrapper", children: [n ? b("div", { className: "flex items-center justify-end gap-1", children: [b(d6, {}), b(f6, {})] }) : null, b("div", { className: "overflow-x-auto", children: b("table", { className: X("w-full border-collapse border border-border", t), "data-streamdown": "table", ...r, children: e }) })] }), p6 = Qo(() => import("./code-block-37QAKDTI-14890bbd.js").then((e) => ({ default: e.CodeBlock }))), m6 = Qo(() => import("./mermaid-4DMBBIKO-7f2453c1.js").then((e) => ({ default: e.Mermaid }))), g6 = /language-([^\s]+)/;
21632
21632
  function pi(e, t) {
21633
21633
  if (!(e != null && e.position || t != null && t.position))
21634
21634
  return !0;
@@ -21755,8 +21755,8 @@ var E6 = ({ node: e, className: t, children: n, ...r }) => {
21755
21755
  return b("code", { className: X("rounded bg-muted px-1.5 py-0.5 font-mono text-sm", t), "data-streamdown": "inline-code", ...r, children: n });
21756
21756
  let d = t == null ? void 0 : t.match(g6), p = (s = d == null ? void 0 : d.at(1)) != null ? s : "", h = "";
21757
21757
  if (rn(n) && n.props && typeof n.props == "object" && "children" in n.props && typeof n.props.children == "string" ? h = n.props.children : typeof n == "string" && (h = n), p === "mermaid" && f) {
21758
- let T = ga(l, "mermaid"), A = _r(l, "download"), x = _r(l, "copy"), N = _r(l, "fullscreen"), w = _r(l, "panZoom"), v = T && (A || x || N);
21759
- return b(Bn, { fallback: b(To, {}), children: b("div", { className: X("group relative my-4 h-auto rounded-xl border p-4", t), "data-streamdown": "mermaid-block", children: [v ? b("div", { className: "flex items-center justify-end gap-2", children: [A ? b(a6, { chart: h, config: o == null ? void 0 : o.config }) : null, x ? b(bo, { code: h }) : null, N ? b(o6, { chart: h, config: o == null ? void 0 : o.config }) : null] }) : null, b(m6, { chart: h, config: o == null ? void 0 : o.config, showControls: w })] }) });
21758
+ let T = ga(l, "mermaid"), C = _r(l, "download"), y = _r(l, "copy"), I = _r(l, "fullscreen"), w = _r(l, "panZoom"), D = T && (C || y || I);
21759
+ return b(Bn, { fallback: b(To, {}), children: b("div", { className: X("group relative my-4 h-auto rounded-xl border p-4", t), "data-streamdown": "mermaid-block", children: [D ? b("div", { className: "flex items-center justify-end gap-2", children: [C ? b(a6, { chart: h, config: o == null ? void 0 : o.config }) : null, y ? b(bo, { code: h }) : null, I ? b(o6, { chart: h, config: o == null ? void 0 : o.config }) : null] }) : null, b(m6, { chart: h, config: o == null ? void 0 : o.config, showControls: w })] }) });
21760
21760
  }
21761
21761
  let m = ga(l, "code");
21762
21762
  return b(Bn, { fallback: b(To, {}), children: b(p6, { className: X("overflow-x-auto border-border border-t", t), code: h, language: p, children: m ? b($e, { children: [b(Zk, { code: h, language: p }), b(bo, {})] }) : null }) });
@@ -21799,8 +21799,8 @@ var T6 = { ol: ls, li: Sd, ul: wd, hr: Id, strong: Nd, a: Ld, h1: vd, h2: Rd, h3
21799
21799
  if (p > 0 && (d += ","), Array.isArray(h)) {
21800
21800
  let [m, T] = h;
21801
21801
  if (typeof m == "function") {
21802
- let A = kr.get(m);
21803
- A || (A = m.name, kr.set(m, A)), d += A;
21802
+ let C = kr.get(m);
21803
+ C || (C = m.name, kr.set(m, C)), d += C;
21804
21804
  } else
21805
21805
  d += String(m);
21806
21806
  d += ":", d += JSON.stringify(T);
@@ -21913,49 +21913,49 @@ var T6 = { ol: ls, li: Sd, ul: wd, hr: Id, strong: Nd, a: Ld, h1: vd, h2: Rd, h3
21913
21913
  return !(e.rehypePlugins !== t.rehypePlugins || e.remarkPlugins !== t.remarkPlugins);
21914
21914
  });
21915
21915
  Xd.displayName = "Block";
21916
- var M6 = ["github-light", "github-dark"], Zd = be(({ children: e, mode: t = "streaming", parseIncompleteMarkdown: n = !0, components: r, rehypePlugins: i = R6, remarkPlugins: a = O6, className: s, shikiTheme: u = M6, mermaid: o, controls: l = !0, isAnimating: f = !1, BlockComponent: d = Xd, parseMarkdownIntoBlocksFn: p = N6, caret: h, plugins: m, remend: T, linkSafety: A = { enabled: !0 }, ...x }) => {
21917
- let N = E0(), [w, v] = of(), O = Oe(() => typeof e != "string" ? "" : t === "streaming" && n ? BE(e, T) : e, [e, t, n, T]), C = Oe(() => p(O), [O, p]), [U, B] = ce(C);
21916
+ var M6 = ["github-light", "github-dark"], Zd = be(({ children: e, mode: t = "streaming", parseIncompleteMarkdown: n = !0, components: r, rehypePlugins: i = R6, remarkPlugins: a = O6, className: s, shikiTheme: u = M6, mermaid: o, controls: l = !0, isAnimating: f = !1, BlockComponent: d = Xd, parseMarkdownIntoBlocksFn: p = N6, caret: h, plugins: m, remend: T, linkSafety: C = { enabled: !0 }, ...y }) => {
21917
+ let I = E0(), [w, D] = of(), R = Oe(() => typeof e != "string" ? "" : t === "streaming" && n ? BE(e, T) : e, [e, t, n, T]), A = Oe(() => p(R), [R, p]), [H, B] = ce(A);
21918
21918
  we(() => {
21919
- t === "streaming" ? v(() => {
21920
- B(C);
21921
- }) : B(C);
21922
- }, [C, t]);
21923
- let z = t === "streaming" ? U : C, I = Oe(() => z.map((Z, J) => `${N}-${J}`), [z.length, N]), Y = Oe(() => {
21919
+ t === "streaming" ? D(() => {
21920
+ B(A);
21921
+ }) : B(A);
21922
+ }, [A, t]);
21923
+ let U = t === "streaming" ? H : A, N = Oe(() => U.map((Z, J) => `${I}-${J}`), [U.length, I]), Y = Oe(() => {
21924
21924
  var Z, J;
21925
- return { shikiTheme: (J = (Z = m == null ? void 0 : m.code) == null ? void 0 : Z.getThemes()) != null ? J : u, controls: l, isAnimating: f, mode: t, mermaid: o, linkSafety: A };
21926
- }, [u, l, f, t, o, A, m == null ? void 0 : m.code]), M = Oe(() => ({ ...T6, ...r }), [r]), Q = Oe(() => {
21925
+ return { shikiTheme: (J = (Z = m == null ? void 0 : m.code) == null ? void 0 : Z.getThemes()) != null ? J : u, controls: l, isAnimating: f, mode: t, mermaid: o, linkSafety: C };
21926
+ }, [u, l, f, t, o, C, m == null ? void 0 : m.code]), M = Oe(() => ({ ...T6, ...r }), [r]), Q = Oe(() => {
21927
21927
  let Z = [];
21928
21928
  return m != null && m.cjk && (Z = [...Z, ...m.cjk.remarkPluginsBefore]), Z = [...Z, ...a], m != null && m.cjk && (Z = [...Z, ...m.cjk.remarkPluginsAfter]), m != null && m.math && (Z = [...Z, m.math.remarkPlugin]), Z;
21929
21929
  }, [a, m == null ? void 0 : m.math, m == null ? void 0 : m.cjk]), ie = Oe(() => m != null && m.math ? [...i, m.math.rehypePlugin] : i, [i, m == null ? void 0 : m.math]), K = Oe(() => h && f ? { "--streamdown-caret": `"${D6[h]}"` } : void 0, [h, f]);
21930
- return t === "static" ? b(ma.Provider, { value: m ?? null, children: b(it.Provider, { value: Y, children: b("div", { className: X("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0", s), children: b(Kd, { components: M, rehypePlugins: ie, remarkPlugins: Q, ...x, children: e }) }) }) }) : b(ma.Provider, { value: m ?? null, children: b(it.Provider, { value: Y, children: b("div", { className: X("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0", h ? "*:last:after:inline *:last:after:align-baseline *:last:after:content-(--streamdown-caret)" : null, s), style: K, children: [z.length === 0 && h && f && b("span", {}), z.map((Z, J) => b(d, { components: M, content: Z, index: J, rehypePlugins: ie, remarkPlugins: Q, shouldParseIncompleteMarkdown: n, ...x }, I[J]))] }) }) });
21930
+ return t === "static" ? b(ma.Provider, { value: m ?? null, children: b(it.Provider, { value: Y, children: b("div", { className: X("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0", s), children: b(Kd, { components: M, rehypePlugins: ie, remarkPlugins: Q, ...y, children: e }) }) }) }) : b(ma.Provider, { value: m ?? null, children: b(it.Provider, { value: Y, children: b("div", { className: X("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0", h ? "*:last:after:inline *:last:after:align-baseline *:last:after:content-(--streamdown-caret)" : null, s), style: K, children: [U.length === 0 && h && f && b("span", {}), U.map((Z, J) => b(d, { components: M, content: Z, index: J, rehypePlugins: ie, remarkPlugins: Q, shouldParseIncompleteMarkdown: n, ...y }, N[J]))] }) }) });
21931
21931
  }, (e, t) => e.children === t.children && e.shikiTheme === t.shikiTheme && e.isAnimating === t.isAnimating && e.mode === t.mode && e.plugins === t.plugins && e.className === t.className && e.linkSafety === t.linkSafety);
21932
21932
  Zd.displayName = "Streamdown";
21933
21933
  var B6 = ({ children: e, className: t, minZoom: n = 0.5, maxZoom: r = 3, zoomStep: i = 0.1, showControls: a = !0, initialZoom: s = 1, fullscreen: u = !1 }) => {
21934
- let o = Le(null), l = Le(null), [f, d] = ce(s), [p, h] = ce({ x: 0, y: 0 }), [m, T] = ce(!1), [A, x] = ce({ x: 0, y: 0 }), [N, w] = ce({ x: 0, y: 0 }), v = De((M) => {
21934
+ let o = Le(null), l = Le(null), [f, d] = ce(s), [p, h] = ce({ x: 0, y: 0 }), [m, T] = ce(!1), [C, y] = ce({ x: 0, y: 0 }), [I, w] = ce({ x: 0, y: 0 }), D = De((M) => {
21935
21935
  d((Q) => Math.max(n, Math.min(r, Q + M)));
21936
- }, [n, r]), O = De(() => {
21937
- v(i);
21938
- }, [v, i]), C = De(() => {
21939
- v(-i);
21940
- }, [v, i]), U = De(() => {
21936
+ }, [n, r]), R = De(() => {
21937
+ D(i);
21938
+ }, [D, i]), A = De(() => {
21939
+ D(-i);
21940
+ }, [D, i]), H = De(() => {
21941
21941
  d(s), h({ x: 0, y: 0 });
21942
21942
  }, [s]), B = De((M) => {
21943
21943
  M.preventDefault();
21944
21944
  let Q = M.deltaY > 0 ? -i : i;
21945
- v(Q);
21946
- }, [v, i]), z = De((M) => {
21945
+ D(Q);
21946
+ }, [D, i]), U = De((M) => {
21947
21947
  if (M.button !== 0 || M.isPrimary === !1)
21948
21948
  return;
21949
- T(!0), x({ x: M.clientX, y: M.clientY }), w(p);
21949
+ T(!0), y({ x: M.clientX, y: M.clientY }), w(p);
21950
21950
  let Q = M.currentTarget;
21951
21951
  Q instanceof HTMLElement && Q.setPointerCapture(M.pointerId);
21952
- }, [p]), I = De((M) => {
21952
+ }, [p]), N = De((M) => {
21953
21953
  if (!m)
21954
21954
  return;
21955
21955
  M.preventDefault();
21956
- let Q = M.clientX - A.x, ie = M.clientY - A.y;
21957
- h({ x: N.x + Q, y: N.y + ie });
21958
- }, [m, A, N]), Y = De((M) => {
21956
+ let Q = M.clientX - C.x, ie = M.clientY - C.y;
21957
+ h({ x: I.x + Q, y: I.y + ie });
21958
+ }, [m, C, I]), Y = De((M) => {
21959
21959
  T(!1);
21960
21960
  let Q = M.currentTarget;
21961
21961
  Q instanceof HTMLElement && Q.releasePointerCapture(M.pointerId);
@@ -21969,41 +21969,41 @@ var B6 = ({ children: e, className: t, minZoom: n = 0.5, maxZoom: r = 3, zoomSte
21969
21969
  }, [B]), we(() => {
21970
21970
  let M = l.current;
21971
21971
  if (M && m)
21972
- return document.body.style.userSelect = "none", M.addEventListener("pointermove", I, { passive: !1 }), M.addEventListener("pointerup", Y), M.addEventListener("pointercancel", Y), () => {
21973
- document.body.style.userSelect = "", M.removeEventListener("pointermove", I), M.removeEventListener("pointerup", Y), M.removeEventListener("pointercancel", Y);
21972
+ return document.body.style.userSelect = "none", M.addEventListener("pointermove", N, { passive: !1 }), M.addEventListener("pointerup", Y), M.addEventListener("pointercancel", Y), () => {
21973
+ document.body.style.userSelect = "", M.removeEventListener("pointermove", N), M.removeEventListener("pointerup", Y), M.removeEventListener("pointercancel", Y);
21974
21974
  };
21975
- }, [m, I, Y]), b("div", { className: X("relative flex flex-col", u ? "h-full w-full" : "min-h-28 w-full", t), ref: o, style: { cursor: m ? "grabbing" : "grab" }, children: [a ? b("div", { className: X("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm", u ? "bottom-4 left-4" : "bottom-2 left-2"), children: [b("button", { className: "flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", disabled: f >= r, onClick: O, title: "Zoom in", type: "button", children: b(Qk, { size: 16 }) }), b("button", { className: "flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", disabled: f <= n, onClick: C, title: "Zoom out", type: "button", children: b(Kk, { size: 16 }) }), b("button", { className: "flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground", onClick: U, title: "Reset zoom and pan", type: "button", children: b(Gk, { size: 16 }) })] }) : null, b("div", { className: X("flex-1 origin-center transition-transform duration-150 ease-out", u ? "flex h-full w-full items-center justify-center" : "flex w-full items-center justify-center"), onPointerDown: z, ref: l, role: "application", style: { transform: `translate(${p.x}px, ${p.y}px) scale(${f})`, transformOrigin: "center center", touchAction: "none", willChange: "transform" }, children: e })] });
21975
+ }, [m, N, Y]), b("div", { className: X("relative flex flex-col", u ? "h-full w-full" : "min-h-28 w-full", t), ref: o, style: { cursor: m ? "grabbing" : "grab" }, children: [a ? b("div", { className: X("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm", u ? "bottom-4 left-4" : "bottom-2 left-2"), children: [b("button", { className: "flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", disabled: f >= r, onClick: R, title: "Zoom in", type: "button", children: b(Qk, { size: 16 }) }), b("button", { className: "flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", disabled: f <= n, onClick: A, title: "Zoom out", type: "button", children: b(Kk, { size: 16 }) }), b("button", { className: "flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground", onClick: H, title: "Reset zoom and pan", type: "button", children: b(Gk, { size: 16 }) })] }) : null, b("div", { className: X("flex-1 origin-center transition-transform duration-150 ease-out", u ? "flex h-full w-full items-center justify-center" : "flex w-full items-center justify-center"), onPointerDown: U, ref: l, role: "application", style: { transform: `translate(${p.x}px, ${p.y}px) scale(${f})`, transformOrigin: "center center", touchAction: "none", willChange: "transform" }, children: e })] });
21976
21976
  }, F6 = ({ chart: e, className: t, config: n, fullscreen: r = !1, showControls: i = !0 }) => {
21977
- let [a, s] = ce(null), [u, o] = ce(!1), [l, f] = ce(""), [d, p] = ce(""), [h, m] = ce(0), { mermaid: T } = at(it), A = os(), x = T == null ? void 0 : T.errorComponent, { shouldRender: N, containerRef: w } = qk({ immediate: r });
21977
+ let [a, s] = ce(null), [u, o] = ce(!1), [l, f] = ce(""), [d, p] = ce(""), [h, m] = ce(0), { mermaid: T } = at(it), C = os(), y = T == null ? void 0 : T.errorComponent, { shouldRender: I, containerRef: w } = qk({ immediate: r });
21978
21978
  if (we(() => {
21979
- if (N) {
21980
- if (!A) {
21979
+ if (I) {
21980
+ if (!C) {
21981
21981
  s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");
21982
21982
  return;
21983
21983
  }
21984
21984
  (async () => {
21985
21985
  try {
21986
21986
  s(null), o(!0);
21987
- let O = A.getMermaid(n), C = e.split("").reduce((z, I) => (z << 5) - z + I.charCodeAt(0) | 0, 0), U = `mermaid-${Math.abs(C)}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`, { svg: B } = await O.render(U, e);
21987
+ let R = C.getMermaid(n), A = e.split("").reduce((U, N) => (U << 5) - U + N.charCodeAt(0) | 0, 0), H = `mermaid-${Math.abs(A)}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`, { svg: B } = await R.render(H, e);
21988
21988
  f(B), p(B);
21989
- } catch (O) {
21989
+ } catch (R) {
21990
21990
  if (!(d || l)) {
21991
- let C = O instanceof Error ? O.message : "Failed to render Mermaid chart";
21992
- s(C);
21991
+ let A = R instanceof Error ? R.message : "Failed to render Mermaid chart";
21992
+ s(A);
21993
21993
  }
21994
21994
  } finally {
21995
21995
  o(!1);
21996
21996
  }
21997
21997
  })();
21998
21998
  }
21999
- }, [e, n, h, N, A]), !(N || l || d))
21999
+ }, [e, n, h, I, C]), !(I || l || d))
22000
22000
  return b("div", { className: X("my-4 min-h-[200px]", t), ref: w });
22001
22001
  if (u && !l && !d)
22002
22002
  return b("div", { className: X("my-4 flex justify-center p-4", t), ref: w, children: b("div", { className: "flex items-center space-x-2 text-muted-foreground", children: [b("div", { className: "h-4 w-4 animate-spin rounded-full border-current border-b-2" }), b("span", { className: "text-sm", children: "Loading diagram..." })] }) });
22003
22003
  if (a && !l && !d)
22004
- return x ? b("div", { ref: w, children: b(x, { chart: e, error: a, retry: () => m((C) => C + 1) }) }) : b("div", { className: X("rounded-lg border border-red-200 bg-red-50 p-4", t), ref: w, children: [b("p", { className: "font-mono text-red-700 text-sm", children: ["Mermaid Error: ", a] }), b("details", { className: "mt-2", children: [b("summary", { className: "cursor-pointer text-red-600 text-xs", children: "Show Code" }), b("pre", { className: "mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs", children: e })] })] });
22005
- let v = l || d;
22006
- return b("div", { className: X("size-full", t), "data-streamdown": "mermaid", ref: w, children: b(B6, { className: X(r ? "size-full overflow-hidden" : "my-4 overflow-hidden", t), fullscreen: r, maxZoom: 3, minZoom: 0.5, showControls: i, zoomStep: 0.1, children: b("div", { "aria-label": "Mermaid chart", className: X("flex justify-center", r ? "size-full items-center" : null), dangerouslySetInnerHTML: { __html: v }, role: "img" }) }) });
22004
+ return y ? b("div", { ref: w, children: b(y, { chart: e, error: a, retry: () => m((A) => A + 1) }) }) : b("div", { className: X("rounded-lg border border-red-200 bg-red-50 p-4", t), ref: w, children: [b("p", { className: "font-mono text-red-700 text-sm", children: ["Mermaid Error: ", a] }), b("details", { className: "mt-2", children: [b("summary", { className: "cursor-pointer text-red-600 text-xs", children: "Show Code" }), b("pre", { className: "mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs", children: e })] })] });
22005
+ let D = l || d;
22006
+ return b("div", { className: X("size-full", t), "data-streamdown": "mermaid", ref: w, children: b(B6, { className: X(r ? "size-full overflow-hidden" : "my-4 overflow-hidden", t), fullscreen: r, maxZoom: 3, minZoom: 0.5, showControls: i, zoomStep: 0.1, children: b("div", { "aria-label": "Mermaid chart", className: X("flex justify-center", r ? "size-full items-center" : null), dangerouslySetInnerHTML: { __html: D }, role: "img" }) }) });
22007
22007
  };
22008
22008
  function H6({
22009
22009
  href: e,
@@ -22247,37 +22247,37 @@ function W6({
22247
22247
  const h = De(() => {
22248
22248
  d.current = document.activeElement, n();
22249
22249
  }, [n]), m = De(() => {
22250
- var A;
22251
- r(), (A = d.current) == null || A.focus();
22250
+ var C;
22251
+ r(), (C = d.current) == null || C.focus();
22252
22252
  }, [r]), T = De(() => {
22253
- var A;
22254
- (A = p.current) == null || A.focus();
22253
+ var C;
22254
+ (C = p.current) == null || C.focus();
22255
22255
  }, []);
22256
22256
  return we(() => {
22257
22257
  if (!o)
22258
22258
  return;
22259
- const A = () => {
22259
+ const C = () => {
22260
22260
  var w;
22261
- let N = document.activeElement;
22262
- for (; (w = N == null ? void 0 : N.shadowRoot) != null && w.activeElement; )
22263
- N = N.shadowRoot.activeElement;
22264
- return N;
22265
- }, x = (N) => {
22266
- if (N.key !== "Tab")
22261
+ let I = document.activeElement;
22262
+ for (; (w = I == null ? void 0 : I.shadowRoot) != null && w.activeElement; )
22263
+ I = I.shadowRoot.activeElement;
22264
+ return I;
22265
+ }, y = (I) => {
22266
+ if (I.key !== "Tab")
22267
22267
  return;
22268
22268
  const w = f.current;
22269
22269
  if (!w)
22270
22270
  return;
22271
- const v = w.querySelectorAll('button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])');
22272
- if (v.length === 0)
22271
+ const D = w.querySelectorAll('button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])');
22272
+ if (D.length === 0)
22273
22273
  return;
22274
- const O = v[0], C = v[v.length - 1];
22275
- if (!O || !C)
22274
+ const R = D[0], A = D[D.length - 1];
22275
+ if (!R || !A)
22276
22276
  return;
22277
- const U = A();
22278
- N.shiftKey && U === O ? (N.preventDefault(), C.focus()) : !N.shiftKey && U === C && (N.preventDefault(), O.focus());
22277
+ const H = C();
22278
+ I.shiftKey && H === R ? (I.preventDefault(), A.focus()) : !I.shiftKey && H === A && (I.preventDefault(), R.focus());
22279
22279
  };
22280
- return document.addEventListener("keydown", x), () => document.removeEventListener("keydown", x);
22280
+ return document.addEventListener("keydown", y), () => document.removeEventListener("keydown", y);
22281
22281
  }, [o]), b("div", {
22282
22282
  ref: f,
22283
22283
  class: "kin-widget",
@@ -26286,22 +26286,22 @@ function J6(e) {
26286
26286
  }
26287
26287
  const wt = (e, t, n) => `oklch(${e}% ${t} ${n})`;
26288
26288
  function ex(e) {
26289
- var m, T, A, x, N, w, v, O;
26289
+ var m, T, C, y, I, w, D, R;
26290
26290
  const {
26291
26291
  accentColor: t,
26292
26292
  mode: n
26293
- } = e, r = J6(t), i = X6[n], a = Z6[n], s = 30, u = r.c / 0.22, o = (C) => {
26294
- const U = i[C];
26295
- if (!U)
26293
+ } = e, r = J6(t), i = X6[n], a = Z6[n], s = 30, u = r.c / 0.22, o = (A) => {
26294
+ const H = i[A];
26295
+ if (!H)
26296
26296
  return wt(60, 0.22, r.h);
26297
- const [B, z] = U;
26298
- return C === "9" ? wt(r.l, r.c, r.h) : wt(B, z * u, r.h);
26299
- }, l = (C) => {
26300
- const U = a[C];
26301
- if (!U)
26297
+ const [B, U] = H;
26298
+ return A === "9" ? wt(r.l, r.c, r.h) : wt(B, U * u, r.h);
26299
+ }, l = (A) => {
26300
+ const H = a[A];
26301
+ if (!H)
26302
26302
  return wt(50, 5e-3, s);
26303
- const [B, z] = U;
26304
- return wt(B, z, s);
26303
+ const [B, U] = H;
26304
+ return wt(B, U, s);
26305
26305
  }, f = wt(r.l, r.c, r.h), d = wt(r.l * 0.9, r.c * 0.9, (r.h + 20) % 360), p = wt(r.l * 0.8, r.c * 0.8, (r.h + 40) % 360), h = n === "light" ? {
26306
26306
  // Light mode backgrounds
26307
26307
  "--kin-bg-base": l("1"),
@@ -26310,7 +26310,7 @@ function ex(e) {
26310
26310
  "--kin-bg-muted": l("4"),
26311
26311
  // Borders
26312
26312
  "--kin-border": `oklch(${((m = a[6]) == null ? void 0 : m[0]) ?? 83}% ${((T = a[6]) == null ? void 0 : T[1]) ?? 4e-3} ${s} / 0.4)`,
26313
- "--kin-border-subtle": `oklch(${((A = a[5]) == null ? void 0 : A[0]) ?? 88}% ${((x = a[5]) == null ? void 0 : x[1]) ?? 5e-3} ${s} / 0.25)`,
26313
+ "--kin-border-subtle": `oklch(${((C = a[5]) == null ? void 0 : C[0]) ?? 88}% ${((y = a[5]) == null ? void 0 : y[1]) ?? 5e-3} ${s} / 0.25)`,
26314
26314
  // Text
26315
26315
  "--kin-text": l("12"),
26316
26316
  "--kin-text-secondary": l("10"),
@@ -26334,8 +26334,8 @@ function ex(e) {
26334
26334
  "--kin-bg-surface": l("3"),
26335
26335
  "--kin-bg-muted": l("4"),
26336
26336
  // Borders
26337
- "--kin-border": `oklch(${((N = a[6]) == null ? void 0 : N[0]) ?? 83}% ${((w = a[6]) == null ? void 0 : w[1]) ?? 4e-3} ${s} / 0.4)`,
26338
- "--kin-border-subtle": `oklch(${((v = a[5]) == null ? void 0 : v[0]) ?? 88}% ${((O = a[5]) == null ? void 0 : O[1]) ?? 5e-3} ${s} / 0.25)`,
26337
+ "--kin-border": `oklch(${((I = a[6]) == null ? void 0 : I[0]) ?? 83}% ${((w = a[6]) == null ? void 0 : w[1]) ?? 4e-3} ${s} / 0.4)`,
26338
+ "--kin-border-subtle": `oklch(${((D = a[5]) == null ? void 0 : D[0]) ?? 88}% ${((R = a[5]) == null ? void 0 : R[1]) ?? 5e-3} ${s} / 0.25)`,
26339
26339
  // Text
26340
26340
  "--kin-text": l("12"),
26341
26341
  "--kin-text-secondary": l("11"),
@@ -26353,7 +26353,7 @@ function ex(e) {
26353
26353
  "--kin-glow-2": d,
26354
26354
  "--kin-glow-3": p
26355
26355
  };
26356
- return Object.entries(h).map(([C, U]) => `${C}: ${U};`).join(`
26356
+ return Object.entries(h).map(([A, H]) => `${A}: ${H};`).join(`
26357
26357
  `);
26358
26358
  }
26359
26359
  const tx = {
@@ -26391,29 +26391,29 @@ const tx = {
26391
26391
  }) => d0(({
26392
26392
  logger: s
26393
26393
  }) => {
26394
- let u = !1, o = null, l = n, f = null, d = !1, p = null;
26395
- const h = i === "embedded", m = () => {
26396
- if (h && a)
26394
+ let u = !1, o = null, l = n, f = null, d = !1, p = null, h = null, m = !1;
26395
+ const T = i === "embedded", C = () => {
26396
+ if (a)
26397
26397
  if (typeof a == "string") {
26398
- const O = document.querySelector(a);
26399
- if (O instanceof HTMLElement)
26400
- return O;
26398
+ const H = document.querySelector(a);
26399
+ if (H instanceof HTMLElement)
26400
+ return h = H, m = !1, H;
26401
26401
  } else
26402
- return a;
26403
- const w = document.getElementById("inploi-kin-root");
26404
- if (w)
26405
- return w;
26406
- const v = document.createElement("div");
26407
- return v.id = "inploi-kin-root", h && (v.className = "kin-embedded"), document.body.appendChild(v), v;
26408
- }, T = (w) => {
26409
- const v = ex(w);
26410
- let O = `${nx}
26402
+ return h = a, m = !1, a;
26403
+ const R = document.getElementById("inploi-kin-root");
26404
+ if (R)
26405
+ return h = R, m = !1, R;
26406
+ const A = document.createElement("div");
26407
+ return A.id = "inploi-kin-root", T && (A.className = "kin-embedded"), document.body.appendChild(A), h = A, m = !0, A;
26408
+ }, y = (R) => {
26409
+ const A = ex(R);
26410
+ let H = `${nx}
26411
26411
 
26412
26412
  /* Theme overrides */
26413
26413
  :host {
26414
- ${v}
26414
+ ${A}
26415
26415
  }`;
26416
- return h && (O += `
26416
+ return T && (H += `
26417
26417
  /* Embedded mode overrides */
26418
26418
  .kin-widget {
26419
26419
  position: relative !important;
@@ -26439,57 +26439,57 @@ ${v}
26439
26439
  transform: none !important;
26440
26440
  animation: none !important;
26441
26441
  }
26442
- `), O;
26443
- }, A = () => {
26442
+ `), H;
26443
+ }, I = () => {
26444
26444
  if (typeof window > "u")
26445
26445
  return;
26446
- const w = m(), v = w.shadowRoot || w.attachShadow({
26446
+ const R = C(), A = R.shadowRoot || R.attachShadow({
26447
26447
  mode: "open"
26448
26448
  });
26449
26449
  Ts(Ot($e, {}, [Ot("style", {
26450
26450
  id: "kin-styles"
26451
- }, T(l)), Ot(W6, {
26451
+ }, y(l)), Ot(W6, {
26452
26452
  starterPrompts: r,
26453
- embedded: h,
26454
- onSendMessage: (O) => {
26455
- o && o.sendMessage(O);
26453
+ embedded: T,
26454
+ onSendMessage: (H) => {
26455
+ o && o.sendMessage(H);
26456
26456
  },
26457
26457
  onOpen: () => {
26458
- x(), $.isOpen.value = !0, $.clearUnreadMessages();
26458
+ w(), $.isOpen.value = !0, $.clearUnreadMessages();
26459
26459
  },
26460
26460
  onClose: () => {
26461
- h || ($.isOpen.value = !1);
26461
+ T || ($.isOpen.value = !1);
26462
26462
  },
26463
26463
  onConnect: () => {
26464
- x();
26464
+ w();
26465
26465
  },
26466
26466
  onClearData: () => {
26467
26467
  o && o.clearData();
26468
26468
  },
26469
- onUploadFile: async (O, C) => {
26469
+ onUploadFile: async (H, B) => {
26470
26470
  if (!o) {
26471
- $.setUploadState("error", O.name, "Not connected");
26471
+ $.setUploadState("error", H.name, "Not connected");
26472
26472
  return;
26473
26473
  }
26474
- $.setUploadState("uploading", O.name);
26475
- const U = await o.uploadFile(O, C);
26476
- U.success || $.setUploadState("error", O.name, U.error);
26474
+ $.setUploadState("uploading", H.name);
26475
+ const U = await o.uploadFile(H, B);
26476
+ U.success || $.setUploadState("error", H.name, U.error);
26477
26477
  }
26478
- })]), v);
26479
- }, x = () => {
26478
+ })]), A);
26479
+ }, w = () => {
26480
26480
  if (o)
26481
26481
  return;
26482
26482
  $.connectionState.value = "connecting", f || (f = ps());
26483
- const w = `${e}/agent/candidate/${f}?key=${t}`;
26483
+ const R = `${e}/agent/candidate/${f}?key=${t}`;
26484
26484
  o = z0({
26485
- url: w,
26486
- onMessage: (v) => {
26487
- switch (v.type) {
26485
+ url: R,
26486
+ onMessage: (A) => {
26487
+ switch (A.type) {
26488
26488
  case "authenticated":
26489
- s.info(`Authenticated with ${v.company}`), $.connectionState.value = "connected";
26489
+ s.info(`Authenticated with ${A.company}`), $.connectionState.value = "connected";
26490
26490
  break;
26491
26491
  case "history":
26492
- v.messages && v.messages.length > 0 && (s.info(`Loaded ${v.messages.length} messages from server`), $.setMessages(v.messages));
26492
+ A.messages && A.messages.length > 0 && (s.info(`Loaded ${A.messages.length} messages from server`), $.setMessages(A.messages));
26493
26493
  break;
26494
26494
  case "response_start":
26495
26495
  $.isStreaming.value = !0, $.addMessage({
@@ -26498,7 +26498,7 @@ ${v}
26498
26498
  });
26499
26499
  break;
26500
26500
  case "response_chunk":
26501
- $.appendToLastMessage(v.content || "");
26501
+ $.appendToLastMessage(A.content || "");
26502
26502
  break;
26503
26503
  case "response_end":
26504
26504
  $.isStreaming.value = !1, $.syncToOtherTabs(), $.isOpen.value || $.setHasUnreadMessages(!0);
@@ -26512,22 +26512,22 @@ ${v}
26512
26512
  case "guardrail_block":
26513
26513
  $.isStreaming.value = !1, s.warn("Content blocked by safety policy"), $.addMessage({
26514
26514
  role: "system",
26515
- content: v.content || "I'm not able to help with that request."
26515
+ content: A.content || "I'm not able to help with that request."
26516
26516
  }), $.syncToOtherTabs();
26517
26517
  break;
26518
26518
  case "upload_received":
26519
- s.info(`File upload received: ${v.fileName}`), $.setUploadState("processing", v.fileName);
26519
+ s.info(`File upload received: ${A.fileName}`), $.setUploadState("processing", A.fileName);
26520
26520
  break;
26521
26521
  case "file_processing":
26522
- s.info(`Processing file: ${v.fileName}`), $.setUploadState("processing", v.fileName);
26522
+ s.info(`Processing file: ${A.fileName}`), $.setUploadState("processing", A.fileName);
26523
26523
  break;
26524
26524
  case "file_processed":
26525
- v.status === "success" ? (s.info(`File processed successfully: ${v.fileName}`), $.setUploadState("success", v.fileName), setTimeout(() => $.resetUploadState(), 2e3)) : (s.error(`File processing failed: ${v.error}`), $.setUploadState("error", v.fileName, v.error));
26525
+ A.status === "success" ? (s.info(`File processed successfully: ${A.fileName}`), $.setUploadState("success", A.fileName), setTimeout(() => $.resetUploadState(), 2e3)) : (s.error(`File processing failed: ${A.error}`), $.setUploadState("error", A.fileName, A.error));
26526
26526
  break;
26527
26527
  case "error":
26528
- $.isStreaming.value = !1, $.uploadState.value !== "idle" && $.setUploadState("error", void 0, v.content), s.error("Kin error:", v.content), $.addMessage({
26528
+ $.isStreaming.value = !1, $.uploadState.value !== "idle" && $.setUploadState("error", void 0, A.content), s.error("Kin error:", A.content), $.addMessage({
26529
26529
  role: "assistant",
26530
- content: v.content || "An error occurred"
26530
+ content: A.content || "An error occurred"
26531
26531
  });
26532
26532
  break;
26533
26533
  }
@@ -26537,45 +26537,41 @@ ${v}
26537
26537
  },
26538
26538
  onClose: () => {
26539
26539
  s.info("Disconnected from Kin service"), $.connectionState.value = "disconnected", $.isStreaming.value = !1;
26540
- const v = d;
26541
- o = null, d = !1, !v && $.isOpen.value && (s.info("Attempting to reconnect..."), p = setTimeout(() => {
26542
- p = null, x();
26540
+ const A = d;
26541
+ o = null, d = !1, !A && $.isOpen.value && (s.info("Attempting to reconnect..."), p = setTimeout(() => {
26542
+ p = null, w();
26543
26543
  }, 1e3));
26544
26544
  },
26545
- onError: (v) => {
26546
- s.error("Kin connection error:", v), $.connectionState.value = "error", $.isStreaming.value = !1;
26545
+ onError: (A) => {
26546
+ s.error("Kin connection error:", A), $.connectionState.value = "error", $.isStreaming.value = !1;
26547
26547
  }
26548
26548
  });
26549
- }, N = () => {
26549
+ }, D = () => {
26550
26550
  p && (clearTimeout(p), p = null), o && (d = !0, o.disconnect(), o = null);
26551
26551
  };
26552
26552
  return {
26553
26553
  prepare: () => {
26554
- typeof window > "u" || u || (f = ps(), A(), u = !0, x(), s.info("Kin plugin prepared"));
26554
+ typeof window > "u" || u || (f = ps(), I(), u = !0, w(), s.info("Kin plugin prepared"));
26555
26555
  },
26556
26556
  open: () => {
26557
- typeof window > "u" || (u || (A(), u = !0), x(), $.isOpen.value = !0, $.clearUnreadMessages(), s.info("Kin opened"));
26557
+ typeof window > "u" || (u || (I(), u = !0), w(), $.isOpen.value = !0, $.clearUnreadMessages(), s.info("Kin opened"));
26558
26558
  },
26559
26559
  close: () => {
26560
26560
  typeof window > "u" || ($.isOpen.value = !1, s.info("Kin closed"));
26561
26561
  },
26562
26562
  toggle: () => {
26563
- typeof window > "u" || ($.isOpen.value ? $.isOpen.value = !1 : (u || (A(), u = !0), x(), $.isOpen.value = !0, $.clearUnreadMessages()));
26563
+ typeof window > "u" || ($.isOpen.value ? $.isOpen.value = !1 : (u || (I(), u = !0), w(), $.isOpen.value = !0, $.clearUnreadMessages()));
26564
26564
  },
26565
- setTheme: (w) => {
26566
- var v;
26567
- if (l = w, u) {
26568
- const O = document.getElementById("inploi-kin-root"), C = (v = O == null ? void 0 : O.shadowRoot) == null ? void 0 : v.getElementById("kin-styles");
26569
- C && (C.textContent = T(l));
26565
+ setTheme: (R) => {
26566
+ var A;
26567
+ if (l = R, u && h) {
26568
+ const H = (A = h.shadowRoot) == null ? void 0 : A.getElementById("kin-styles");
26569
+ H && (H.textContent = y(l));
26570
26570
  }
26571
- s.info("Kin theme updated:", w);
26571
+ s.info("Kin theme updated:", R);
26572
26572
  },
26573
26573
  destroy: () => {
26574
- if (typeof window > "u")
26575
- return;
26576
- N();
26577
- const w = document.getElementById("inploi-kin-root");
26578
- w && (w.shadowRoot && Ts(null, w.shadowRoot), w.remove()), $.isOpen.value = !1, $.isStreaming.value = !1, $.connectionState.value = "idle", $.clearMessages(), $.resetUploadState(), $.clearUnreadMessages(), u = !1, s.info("Kin plugin destroyed");
26574
+ typeof window > "u" || (D(), h && (h.shadowRoot && Ts(null, h.shadowRoot), m && h.remove()), $.isOpen.value = !1, $.isStreaming.value = !1, $.connectionState.value = "idle", $.clearMessages(), $.resetUploadState(), $.clearUnreadMessages(), u = !1, h = null, m = !1, s.info("Kin plugin destroyed"));
26579
26575
  }
26580
26576
  };
26581
26577
  });