@opentiny/tiny-robot 0.3.0-alpha.35 → 0.3.0-alpha.36

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.
@@ -1,7 +1,7 @@
1
- var pn = Object.defineProperty;
2
- var bn = (u, e, t) => e in u ? pn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
1
+ var hn = Object.defineProperty;
2
+ var bn = (u, e, t) => e in u ? hn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
3
3
  var Ou = (u, e, t) => bn(u, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as yu, ref as s0, createElementBlock as H, openBlock as S, createElementVNode as Z, createVNode as Dt, toDisplayString as Cu, unref as l0, normalizeClass as Au, withDirectives as mn, vShow as _n, computed as X, useCssModule as xn, createCommentVNode as Bu, createBlock as eu, resolveDynamicComponent as _u, createTextVNode as gn, inject as W0, normalizeProps as Ce, mergeProps as Ku, h as Z0, useSlots as kn, useAttrs as En, normalizeStyle as An, renderSlot as Qu, Fragment as De, renderList as Ee, watch as Cn, nextTick as Dn, createSlots as V0, withCtx as Y0, guardReactiveProps as yn, provide as X0 } from "vue";
4
+ import { defineComponent as yu, ref as s0, createElementBlock as H, openBlock as S, createElementVNode as Z, createVNode as Dt, toDisplayString as Cu, unref as l0, normalizeClass as Au, withDirectives as mn, vShow as _n, computed as X, useCssModule as xn, createCommentVNode as Pu, createBlock as eu, resolveDynamicComponent as _u, createTextVNode as gn, inject as W0, normalizeProps as Ce, mergeProps as Ku, h as Z0, useSlots as kn, useAttrs as En, normalizeStyle as An, renderSlot as Qu, Fragment as De, renderList as Ee, watch as Cn, nextTick as Dn, createSlots as V0, withCtx as Y0, guardReactiveProps as yn, provide as X0 } from "vue";
5
5
  import { _ as Fn } from "../loading.js";
6
6
  import { t as Tn } from "../utils.js";
7
7
  import { IconArrowUp as Sn, IconPlugin as J0, IconArrowDown as wn, IconLoading as vn, IconError as Rn, IconCancelled as In } from "@opentiny/tiny-robot-svgs";
@@ -9,7 +9,7 @@ import { _ as ce } from "../_plugin-vue_export-helper.js";
9
9
  import { u as Mn } from "../index3.js";
10
10
  class f0 {
11
11
  }
12
- const Ln = { class: "tr-bubble__step-text" }, On = { class: "tr-bubble__step-text-title" }, Nn = { class: "tr-bubble__step-text-content-wrapper" }, Bn = /* @__PURE__ */ yu({
12
+ const Ln = { class: "tr-bubble__step-text" }, On = { class: "tr-bubble__step-text-title" }, Nn = { class: "tr-bubble__step-text-content-wrapper" }, Pn = /* @__PURE__ */ yu({
13
13
  __name: "collapsible-text",
14
14
  props: {
15
15
  title: {},
@@ -33,7 +33,7 @@ const Ln = { class: "tr-bubble__step-text" }, On = { class: "tr-bubble__step-tex
33
33
  ])
34
34
  ]));
35
35
  }
36
- }), Pn = /* @__PURE__ */ ce(Bn, [["__scopeId", "data-v-c614ffd3"]]), zn = Pn, qn = { class: "tr-bubble__text" }, Un = /* @__PURE__ */ yu({
36
+ }), Bn = /* @__PURE__ */ ce(Pn, [["__scopeId", "data-v-c614ffd3"]]), zn = Bn, qn = { class: "tr-bubble__text" }, Un = /* @__PURE__ */ yu({
37
37
  __name: "text",
38
38
  props: {
39
39
  content: {}
@@ -67,14 +67,14 @@ const Ln = { class: "tr-bubble__step-text" }, On = { class: "tr-bubble__step-tex
67
67
  const s = e.formatPretty ? 2 : 0;
68
68
  try {
69
69
  typeof c == "string" ? a = JSON.stringify(JSON.parse(c), null, s) : a = JSON.stringify(c, null, s);
70
- } catch (f) {
71
- console.warn(f);
70
+ } catch (d) {
71
+ console.warn(d);
72
72
  }
73
73
  return a = a.replace(
74
74
  /("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g,
75
- (f) => {
76
- let d = "number";
77
- return /^"/.test(f) ? d = /:$/.test(f) ? "key" : "string" : /true|false/.test(f) ? d = "boolean" : /null/.test(f) && (d = "null"), `<span class="${o[d]}">${f}</span>`;
75
+ (d) => {
76
+ let f = "number";
77
+ return /^"/.test(d) ? f = /:$/.test(d) ? "key" : "string" : /true|false/.test(d) ? f = "boolean" : /null/.test(d) && (f = "null"), `<span class="${o[f]}">${d}</span>`;
78
78
  }
79
79
  ), a;
80
80
  };
@@ -102,7 +102,7 @@ const Ln = { class: "tr-bubble__step-text" }, On = { class: "tr-bubble__step-tex
102
102
  class: "tr-bubble__step-tool-params-content",
103
103
  innerHTML: i(e.content)
104
104
  }, null, 8, Xn)
105
- ])) : Bu("", !0)
105
+ ])) : Pu("", !0)
106
106
  ]));
107
107
  }
108
108
  }), Qn = "_key_1b448_2", Kn = "_number_1b448_6", ur = "_string_1b448_10", er = "_boolean_1b448_14", tr = {
@@ -125,9 +125,13 @@ const Ln = { class: "tr-bubble__step-text" }, On = { class: "tr-bubble__step-tex
125
125
  setup(u) {
126
126
  const e = W0(Ft, yt), t = W0(Tt, d0), n = u, r = (i) => {
127
127
  const c = e.get(i) || t;
128
- return typeof c == "function" ? { isComponent: !1, vNodeOrComponent: c(n.item) } : c instanceof f0 ? { isComponent: !1, vNodeOrComponent: c.render(n.item) } : { isComponent: !0, vNodeOrComponent: c };
128
+ return typeof c == "function" ? { isComponent: !1, vNodeOrComponent: c(n.item) } : c instanceof f0 ? { isComponent: !1, vNodeOrComponent: c.render(n.item) } : typeof c == "object" && "component" in c ? {
129
+ isComponent: !0,
130
+ vNodeOrComponent: c.component,
131
+ defaultProps: c.defaultProps
132
+ } : { isComponent: !0, vNodeOrComponent: c };
129
133
  }, o = X(() => r(n.item.type));
130
- return (i, c) => o.value.isComponent ? (S(), eu(_u(o.value.vNodeOrComponent), Ce(Ku({ key: 0 }, n.item)), null, 16)) : (S(), eu(_u(o.value.vNodeOrComponent), { key: 1 }));
134
+ return (i, c) => o.value.isComponent ? (S(), eu(_u(o.value.vNodeOrComponent), Ce(Ku({ key: 0 }, { ...o.value.defaultProps, ...n.item })), null, 16)) : (S(), eu(_u(o.value.vNodeOrComponent), { key: 1 }));
131
135
  }
132
136
  });
133
137
  /*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
@@ -162,7 +166,7 @@ o0 || (o0 = function(e) {
162
166
  n[r - 1] = arguments[r];
163
167
  return new e(...n);
164
168
  });
165
- const _e = G(Array.prototype.forEach), lr = G(Array.prototype.lastIndexOf), K0 = G(Array.prototype.pop), Zu = G(Array.prototype.push), fr = G(Array.prototype.splice), Ae = G(String.prototype.toLowerCase), je = G(String.prototype.toString), Ge = G(String.prototype.match), Vu = G(String.prototype.replace), dr = G(String.prototype.indexOf), hr = G(String.prototype.trim), uu = G(Object.prototype.hasOwnProperty), $ = G(RegExp.prototype.test), Yu = pr(TypeError);
169
+ const _e = G(Array.prototype.forEach), lr = G(Array.prototype.lastIndexOf), K0 = G(Array.prototype.pop), Zu = G(Array.prototype.push), fr = G(Array.prototype.splice), Ae = G(String.prototype.toLowerCase), je = G(String.prototype.toString), Ge = G(String.prototype.match), Vu = G(String.prototype.replace), dr = G(String.prototype.indexOf), pr = G(String.prototype.trim), uu = G(Object.prototype.hasOwnProperty), $ = G(RegExp.prototype.test), Yu = hr(TypeError);
166
170
  function G(u) {
167
171
  return function(e) {
168
172
  e instanceof RegExp && (e.lastIndex = 0);
@@ -171,7 +175,7 @@ function G(u) {
171
175
  return r0(u, e, n);
172
176
  };
173
177
  }
174
- function pr(u) {
178
+ function hr(u) {
175
179
  return function() {
176
180
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
177
181
  t[n] = arguments[n];
@@ -294,11 +298,11 @@ function Rt() {
294
298
  Node: c,
295
299
  Element: a,
296
300
  NodeFilter: s,
297
- NamedNodeMap: f = u.NamedNodeMap || u.MozNamedAttrMap,
298
- HTMLFormElement: d,
301
+ NamedNodeMap: d = u.NamedNodeMap || u.MozNamedAttrMap,
302
+ HTMLFormElement: f,
299
303
  DOMParser: m,
300
- trustedTypes: p
301
- } = u, h = a.prototype, C = Xu(h, "cloneNode"), D = Xu(h, "remove"), T = Xu(h, "nextSibling"), E = Xu(h, "childNodes"), k = Xu(h, "parentNode");
304
+ trustedTypes: h
305
+ } = u, p = a.prototype, C = Xu(p, "cloneNode"), D = Xu(p, "remove"), T = Xu(p, "nextSibling"), E = Xu(p, "childNodes"), k = Xu(p, "parentNode");
302
306
  if (typeof i == "function") {
303
307
  const g = t.createElement("template");
304
308
  g.content && g.content.ownerDocument && (t = g.content.ownerDocument);
@@ -318,7 +322,7 @@ function Rt() {
318
322
  MUSTACHE_EXPR: Hu,
319
323
  ERB_EXPR: $u,
320
324
  TMPLIT_EXPR: Fu,
321
- DATA_ATTR: hu,
325
+ DATA_ATTR: pu,
322
326
  ARIA_ATTR: Ie,
323
327
  IS_SCRIPT_OR_DATA: nn,
324
328
  ATTR_WHITESPACE: E0,
@@ -366,14 +370,14 @@ function Rt() {
366
370
  }));
367
371
  let y0 = !0, Le = !0, F0 = !1, T0 = !0, Su = !1, le = !0, ku = !1, Oe = !1, Ne = !1, wu = !1, fe = !1, de = !1, S0 = !0, w0 = !1;
368
372
  const on = "user-content-";
369
- let Be = !0, Gu = !1, vu = {}, Ru = null;
373
+ let Pe = !0, Gu = !1, vu = {}, Ru = null;
370
374
  const v0 = F({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
371
375
  let R0 = null;
372
376
  const I0 = F({}, ["audio", "video", "img", "source", "image", "track"]);
373
- let Pe = null;
374
- const M0 = F({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), he = "http://www.w3.org/1998/Math/MathML", pe = "http://www.w3.org/2000/svg", su = "http://www.w3.org/1999/xhtml";
377
+ let Be = null;
378
+ const M0 = F({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), pe = "http://www.w3.org/1998/Math/MathML", he = "http://www.w3.org/2000/svg", su = "http://www.w3.org/1999/xhtml";
375
379
  let Iu = su, ze = !1, qe = null;
376
- const cn = F({}, [he, pe, su], je);
380
+ const cn = F({}, [pe, he, su], je);
377
381
  let be = F({}, ["mi", "mo", "mn", "ms", "mtext"]), me = F({}, ["annotation-xml"]);
378
382
  const an = F({}, ["title", "style", "font", "a", "script"]);
379
383
  let Wu = null;
@@ -385,14 +389,14 @@ function Rt() {
385
389
  let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
386
390
  if (!(Mu && Mu === l)) {
387
391
  if ((!l || typeof l != "object") && (l = {}), l = du(l), Wu = // eslint-disable-next-line unicorn/prefer-includes
388
- sn.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? ln : l.PARSER_MEDIA_TYPE, N = Wu === "application/xhtml+xml" ? je : Ae, O = uu(l, "ALLOWED_TAGS") ? F({}, l.ALLOWED_TAGS, N) : C0, z = uu(l, "ALLOWED_ATTR") ? F({}, l.ALLOWED_ATTR, N) : D0, qe = uu(l, "ALLOWED_NAMESPACES") ? F({}, l.ALLOWED_NAMESPACES, je) : cn, Pe = uu(l, "ADD_URI_SAFE_ATTR") ? F(du(M0), l.ADD_URI_SAFE_ATTR, N) : M0, R0 = uu(l, "ADD_DATA_URI_TAGS") ? F(du(I0), l.ADD_DATA_URI_TAGS, N) : I0, Ru = uu(l, "FORBID_CONTENTS") ? F({}, l.FORBID_CONTENTS, N) : v0, ju = uu(l, "FORBID_TAGS") ? F({}, l.FORBID_TAGS, N) : du({}), Me = uu(l, "FORBID_ATTR") ? F({}, l.FORBID_ATTR, N) : du({}), vu = uu(l, "USE_PROFILES") ? l.USE_PROFILES : !1, y0 = l.ALLOW_ARIA_ATTR !== !1, Le = l.ALLOW_DATA_ATTR !== !1, F0 = l.ALLOW_UNKNOWN_PROTOCOLS || !1, T0 = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Su = l.SAFE_FOR_TEMPLATES || !1, le = l.SAFE_FOR_XML !== !1, ku = l.WHOLE_DOCUMENT || !1, wu = l.RETURN_DOM || !1, fe = l.RETURN_DOM_FRAGMENT || !1, de = l.RETURN_TRUSTED_TYPE || !1, Ne = l.FORCE_BODY || !1, S0 = l.SANITIZE_DOM !== !1, w0 = l.SANITIZE_NAMED_PROPS || !1, Be = l.KEEP_CONTENT !== !1, Gu = l.IN_PLACE || !1, A0 = l.ALLOWED_URI_REGEXP || wt, Iu = l.NAMESPACE || su, be = l.MATHML_TEXT_INTEGRATION_POINTS || be, me = l.HTML_INTEGRATION_POINTS || me, R = l.CUSTOM_ELEMENT_HANDLING || {}, l.CUSTOM_ELEMENT_HANDLING && L0(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && L0(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Su && (Le = !1), fe && (wu = !0), vu && (O = F({}, et), z = [], vu.html === !0 && (F(O, ut), F(z, tt)), vu.svg === !0 && (F(O, We), F(z, Ye), F(z, xe)), vu.svgFilters === !0 && (F(O, Ze), F(z, Ye), F(z, xe)), vu.mathMl === !0 && (F(O, Ve), F(z, nt), F(z, xe))), l.ADD_TAGS && (typeof l.ADD_TAGS == "function" ? Tu.tagCheck = l.ADD_TAGS : (O === C0 && (O = du(O)), F(O, l.ADD_TAGS, N))), l.ADD_ATTR && (typeof l.ADD_ATTR == "function" ? Tu.attributeCheck = l.ADD_ATTR : (z === D0 && (z = du(z)), F(z, l.ADD_ATTR, N))), l.ADD_URI_SAFE_ATTR && F(Pe, l.ADD_URI_SAFE_ATTR, N), l.FORBID_CONTENTS && (Ru === v0 && (Ru = du(Ru)), F(Ru, l.FORBID_CONTENTS, N)), Be && (O["#text"] = !0), ku && F(O, ["html", "head", "body"]), O.table && (F(O, ["tbody"]), delete ju.tbody), l.TRUSTED_TYPES_POLICY) {
392
+ sn.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? ln : l.PARSER_MEDIA_TYPE, N = Wu === "application/xhtml+xml" ? je : Ae, O = uu(l, "ALLOWED_TAGS") ? F({}, l.ALLOWED_TAGS, N) : C0, z = uu(l, "ALLOWED_ATTR") ? F({}, l.ALLOWED_ATTR, N) : D0, qe = uu(l, "ALLOWED_NAMESPACES") ? F({}, l.ALLOWED_NAMESPACES, je) : cn, Be = uu(l, "ADD_URI_SAFE_ATTR") ? F(du(M0), l.ADD_URI_SAFE_ATTR, N) : M0, R0 = uu(l, "ADD_DATA_URI_TAGS") ? F(du(I0), l.ADD_DATA_URI_TAGS, N) : I0, Ru = uu(l, "FORBID_CONTENTS") ? F({}, l.FORBID_CONTENTS, N) : v0, ju = uu(l, "FORBID_TAGS") ? F({}, l.FORBID_TAGS, N) : du({}), Me = uu(l, "FORBID_ATTR") ? F({}, l.FORBID_ATTR, N) : du({}), vu = uu(l, "USE_PROFILES") ? l.USE_PROFILES : !1, y0 = l.ALLOW_ARIA_ATTR !== !1, Le = l.ALLOW_DATA_ATTR !== !1, F0 = l.ALLOW_UNKNOWN_PROTOCOLS || !1, T0 = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Su = l.SAFE_FOR_TEMPLATES || !1, le = l.SAFE_FOR_XML !== !1, ku = l.WHOLE_DOCUMENT || !1, wu = l.RETURN_DOM || !1, fe = l.RETURN_DOM_FRAGMENT || !1, de = l.RETURN_TRUSTED_TYPE || !1, Ne = l.FORCE_BODY || !1, S0 = l.SANITIZE_DOM !== !1, w0 = l.SANITIZE_NAMED_PROPS || !1, Pe = l.KEEP_CONTENT !== !1, Gu = l.IN_PLACE || !1, A0 = l.ALLOWED_URI_REGEXP || wt, Iu = l.NAMESPACE || su, be = l.MATHML_TEXT_INTEGRATION_POINTS || be, me = l.HTML_INTEGRATION_POINTS || me, R = l.CUSTOM_ELEMENT_HANDLING || {}, l.CUSTOM_ELEMENT_HANDLING && L0(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && L0(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Su && (Le = !1), fe && (wu = !0), vu && (O = F({}, et), z = [], vu.html === !0 && (F(O, ut), F(z, tt)), vu.svg === !0 && (F(O, We), F(z, Ye), F(z, xe)), vu.svgFilters === !0 && (F(O, Ze), F(z, Ye), F(z, xe)), vu.mathMl === !0 && (F(O, Ve), F(z, nt), F(z, xe))), l.ADD_TAGS && (typeof l.ADD_TAGS == "function" ? Tu.tagCheck = l.ADD_TAGS : (O === C0 && (O = du(O)), F(O, l.ADD_TAGS, N))), l.ADD_ATTR && (typeof l.ADD_ATTR == "function" ? Tu.attributeCheck = l.ADD_ATTR : (z === D0 && (z = du(z)), F(z, l.ADD_ATTR, N))), l.ADD_URI_SAFE_ATTR && F(Be, l.ADD_URI_SAFE_ATTR, N), l.FORBID_CONTENTS && (Ru === v0 && (Ru = du(Ru)), F(Ru, l.FORBID_CONTENTS, N)), Pe && (O["#text"] = !0), ku && F(O, ["html", "head", "body"]), O.table && (F(O, ["tbody"]), delete ju.tbody), l.TRUSTED_TYPES_POLICY) {
389
393
  if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
390
394
  throw Yu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
391
395
  if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
392
396
  throw Yu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
393
397
  _ = l.TRUSTED_TYPES_POLICY, A = _.createHTML("");
394
398
  } else
395
- _ === void 0 && (_ = Tr(p, r)), _ !== null && typeof A == "string" && (A = _.createHTML(""));
399
+ _ === void 0 && (_ = Tr(h, r)), _ !== null && typeof A == "string" && (A = _.createHTML(""));
396
400
  j && j(l), Mu = l;
397
401
  }
398
402
  }, O0 = F({}, [...We, ...Ze, ...mr]), N0 = F({}, [...Ve, ..._r]), dn = function(l) {
@@ -402,7 +406,7 @@ function Rt() {
402
406
  tagName: "template"
403
407
  });
404
408
  const x = Ae(l.tagName), v = Ae(b.tagName);
405
- return qe[l.namespaceURI] ? l.namespaceURI === pe ? b.namespaceURI === su ? x === "svg" : b.namespaceURI === he ? x === "svg" && (v === "annotation-xml" || be[v]) : !!O0[x] : l.namespaceURI === he ? b.namespaceURI === su ? x === "math" : b.namespaceURI === pe ? x === "math" && me[v] : !!N0[x] : l.namespaceURI === su ? b.namespaceURI === pe && !me[v] || b.namespaceURI === he && !be[v] ? !1 : !N0[x] && (an[x] || !O0[x]) : !!(Wu === "application/xhtml+xml" && qe[l.namespaceURI]) : !1;
409
+ return qe[l.namespaceURI] ? l.namespaceURI === he ? b.namespaceURI === su ? x === "svg" : b.namespaceURI === pe ? x === "svg" && (v === "annotation-xml" || be[v]) : !!O0[x] : l.namespaceURI === pe ? b.namespaceURI === su ? x === "math" : b.namespaceURI === he ? x === "math" && me[v] : !!N0[x] : l.namespaceURI === su ? b.namespaceURI === he && !me[v] || b.namespaceURI === pe && !be[v] ? !1 : !N0[x] && (an[x] || !O0[x]) : !!(Wu === "application/xhtml+xml" && qe[l.namespaceURI]) : !1;
406
410
  }, ru = function(l) {
407
411
  Zu(e.removed, {
408
412
  element: l
@@ -435,7 +439,7 @@ function Rt() {
435
439
  b.setAttribute(l, "");
436
440
  } catch {
437
441
  }
438
- }, B0 = function(l) {
442
+ }, P0 = function(l) {
439
443
  let b = null, x = null;
440
444
  if (Ne)
441
445
  l = "<remove></remove>" + l;
@@ -459,7 +463,7 @@ function Rt() {
459
463
  }
460
464
  const U = b.body || b.documentElement;
461
465
  return l && x && U.insertBefore(t.createTextNode(x), U.childNodes[0] || null), Iu === su ? nu.call(b, ku ? "html" : "body")[0] : ku ? b.documentElement : U;
462
- }, P0 = function(l) {
466
+ }, B0 = function(l) {
463
467
  return M.call(
464
468
  l.ownerDocument || l,
465
469
  l,
@@ -468,7 +472,7 @@ function Rt() {
468
472
  null
469
473
  );
470
474
  }, He = function(l) {
471
- return l instanceof d && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof f) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function");
475
+ return l instanceof f && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof d) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function");
472
476
  }, z0 = function(l) {
473
477
  return typeof c == "function" && l instanceof c;
474
478
  };
@@ -490,7 +494,7 @@ function Rt() {
490
494
  if (!(Tu.tagCheck instanceof Function && Tu.tagCheck(x)) && (!O[x] || ju[x])) {
491
495
  if (!ju[x] && H0(x) && (R.tagNameCheck instanceof RegExp && $(R.tagNameCheck, x) || R.tagNameCheck instanceof Function && R.tagNameCheck(x)))
492
496
  return !1;
493
- if (Be && !Ru[x]) {
497
+ if (Pe && !Ru[x]) {
494
498
  const v = k(l) || l.parentNode, U = E(l) || l.childNodes;
495
499
  if (U && v) {
496
500
  const I = U.length;
@@ -510,7 +514,7 @@ function Rt() {
510
514
  }, U0 = function(l, b, x) {
511
515
  if (S0 && (b === "id" || b === "name") && (x in t || x in fn))
512
516
  return !1;
513
- if (!(Le && !Me[b] && $(hu, b))) {
517
+ if (!(Le && !Me[b] && $(pu, b))) {
514
518
  if (!(y0 && $(Ie, b))) {
515
519
  if (!(Tu.attributeCheck instanceof Function && Tu.attributeCheck(b, l))) {
516
520
  if (!z[b] || Me[b]) {
@@ -522,7 +526,7 @@ function Rt() {
522
526
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
523
527
  b === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && $(R.tagNameCheck, x) || R.tagNameCheck instanceof Function && R.tagNameCheck(x)))
524
528
  ) return !1;
525
- } else if (!Pe[b]) {
529
+ } else if (!Be[b]) {
526
530
  if (!$(A0, Vu(x, E0, ""))) {
527
531
  if (!((b === "src" || b === "xlink:href" || b === "href") && l !== "script" && dr(x, "data:") === 0 && R0[l])) {
528
532
  if (!(F0 && !$(nn, Vu(x, E0, "")))) {
@@ -559,7 +563,7 @@ function Rt() {
559
563
  namespaceURI: W,
560
564
  value: fu
561
565
  } = U, Lu = N(I), $e = fu;
562
- let q = I === "value" ? $e : hr($e);
566
+ let q = I === "value" ? $e : pr($e);
563
567
  if (x.attrName = Lu, x.attrValue = q, x.keepAttr = !0, x.forceKeepAttr = void 0, lu(L.uponSanitizeAttribute, l, x), q = x.attrValue, w0 && (Lu === "id" || Lu === "name") && (Eu(I, l), q = on + q), le && $(/((--!?|])>)|<\/(style|title|textarea)/i, q)) {
564
568
  Eu(I, l);
565
569
  continue;
@@ -586,8 +590,8 @@ function Rt() {
586
590
  Eu(I, l);
587
591
  continue;
588
592
  }
589
- if (_ && typeof p == "object" && typeof p.getAttributeType == "function" && !W)
590
- switch (p.getAttributeType(j0, Lu)) {
593
+ if (_ && typeof h == "object" && typeof h.getAttributeType == "function" && !W)
594
+ switch (h.getAttributeType(j0, Lu)) {
591
595
  case "TrustedHTML": {
592
596
  q = _.createHTML(q);
593
597
  break;
@@ -605,9 +609,9 @@ function Rt() {
605
609
  }
606
610
  }
607
611
  lu(L.afterSanitizeAttributes, l, null);
608
- }, hn = function g(l) {
612
+ }, pn = function g(l) {
609
613
  let b = null;
610
- const x = P0(l);
614
+ const x = B0(l);
611
615
  for (lu(L.beforeSanitizeShadowDOM, l, null); b = x.nextNode(); )
612
616
  lu(L.uponSanitizeShadowNode, b, null), q0(b), $0(b), b.content instanceof o && g(b.content);
613
617
  lu(L.afterSanitizeShadowDOM, l, null);
@@ -629,18 +633,18 @@ function Rt() {
629
633
  throw Yu("root node is forbidden and cannot be sanitized in-place");
630
634
  }
631
635
  } else if (g instanceof c)
632
- b = B0("<!---->"), x = b.ownerDocument.importNode(g, !0), x.nodeType === Ju.element && x.nodeName === "BODY" || x.nodeName === "HTML" ? b = x : b.appendChild(x);
636
+ b = P0("<!---->"), x = b.ownerDocument.importNode(g, !0), x.nodeType === Ju.element && x.nodeName === "BODY" || x.nodeName === "HTML" ? b = x : b.appendChild(x);
633
637
  else {
634
638
  if (!wu && !Su && !ku && // eslint-disable-next-line unicorn/prefer-includes
635
639
  g.indexOf("<") === -1)
636
640
  return _ && de ? _.createHTML(g) : g;
637
- if (b = B0(g), !b)
641
+ if (b = P0(g), !b)
638
642
  return wu ? null : de ? A : "";
639
643
  }
640
644
  b && Ne && ru(b.firstChild);
641
- const I = P0(Gu ? g : b);
645
+ const I = B0(Gu ? g : b);
642
646
  for (; v = I.nextNode(); )
643
- q0(v), $0(v), v.content instanceof o && hn(v.content);
647
+ q0(v), $0(v), v.content instanceof o && pn(v.content);
644
648
  if (Gu)
645
649
  return g;
646
650
  if (wu) {
@@ -718,16 +722,16 @@ function zu(u, e) {
718
722
  if ((c & 240) === 224 && o + 6 < i) {
719
723
  const a = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16);
720
724
  if ((a & 192) === 128 && (s & 192) === 128) {
721
- const f = c << 12 & 61440 | a << 6 & 4032 | s & 63;
722
- f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f), o += 6;
725
+ const d = c << 12 & 61440 | a << 6 & 4032 | s & 63;
726
+ d < 2048 || d >= 55296 && d <= 57343 ? r += "���" : r += String.fromCharCode(d), o += 6;
723
727
  continue;
724
728
  }
725
729
  }
726
730
  if ((c & 248) === 240 && o + 9 < i) {
727
- const a = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16), f = parseInt(n.slice(o + 10, o + 12), 16);
728
- if ((a & 192) === 128 && (s & 192) === 128 && (f & 192) === 128) {
729
- let d = c << 18 & 1835008 | a << 12 & 258048 | s << 6 & 4032 | f & 63;
730
- d < 65536 || d > 1114111 ? r += "����" : (d -= 65536, r += String.fromCharCode(55296 + (d >> 10), 56320 + (d & 1023))), o += 9;
731
+ const a = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16), d = parseInt(n.slice(o + 10, o + 12), 16);
732
+ if ((a & 192) === 128 && (s & 192) === 128 && (d & 192) === 128) {
733
+ let f = c << 18 & 1835008 | a << 12 & 258048 | s << 6 & 4032 | d & 63;
734
+ f < 65536 || f > 1114111 ? r += "����" : (f -= 65536, r += String.fromCharCode(55296 + (f >> 10), 56320 + (f & 1023))), o += 9;
731
735
  continue;
732
736
  }
733
737
  }
@@ -783,7 +787,7 @@ function ie(u, e, t) {
783
787
  }
784
788
  ie.defaultChars = ";/?:@&=+$,-_.!~*'()#";
785
789
  ie.componentChars = "-_.!~*'()";
786
- function h0(u) {
790
+ function p0(u) {
787
791
  let e = "";
788
792
  return e += u.protocol || "", e += u.slashes ? "//" : "", e += u.auth ? u.auth + "@" : "", u.hostname && u.hostname.indexOf(":") !== -1 ? e += "[" + u.hostname + "]" : e += u.hostname || "", e += u.port ? ":" + u.port : "", e += u.pathname || "", e += u.search || "", e += u.hash || "", e;
789
793
  }
@@ -791,7 +795,7 @@ function ye() {
791
795
  this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
792
796
  }
793
797
  const Rr = /^([a-z0-9.+-]+:)/i, Ir = /:[0-9]*$/, Mr = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Lr = ["<", ">", '"', "`", " ", "\r", `
794
- `, " "], Or = ["{", "}", "|", "\\", "^", "`"].concat(Lr), Nr = ["'"].concat(Or), at = ["%", "/", "?", ";", "#"].concat(Nr), st = ["/", "?", "#"], Br = 255, lt = /^[+a-z0-9A-Z_-]{0,63}$/, Pr = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, ft = {
798
+ `, " "], Or = ["{", "}", "|", "\\", "^", "`"].concat(Lr), Nr = ["'"].concat(Or), at = ["%", "/", "?", ";", "#"].concat(Nr), st = ["/", "?", "#"], Pr = 255, lt = /^[+a-z0-9A-Z_-]{0,63}$/, Br = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, ft = {
795
799
  javascript: !0,
796
800
  "javascript:": !0
797
801
  }, dt = {
@@ -806,7 +810,7 @@ const Rr = /^([a-z0-9.+-]+:)/i, Ir = /:[0-9]*$/, Mr = /^(\/\/?(?!\/)[^\?\s]*)(\?
806
810
  "gopher:": !0,
807
811
  "file:": !0
808
812
  };
809
- function p0(u, e) {
813
+ function h0(u, e) {
810
814
  if (u && u instanceof ye) return u;
811
815
  const t = new ye();
812
816
  return t.parse(u, e), t;
@@ -821,33 +825,33 @@ ye.prototype.parse = function(u, e) {
821
825
  let i = Rr.exec(o);
822
826
  if (i && (i = i[0], t = i.toLowerCase(), this.protocol = i, o = o.substr(i.length)), (e || i || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(i && ft[i]) && (o = o.substr(2), this.slashes = !0)), !ft[i] && (r || i && !dt[i])) {
823
827
  let s = -1;
824
- for (let h = 0; h < st.length; h++)
825
- n = o.indexOf(st[h]), n !== -1 && (s === -1 || n < s) && (s = n);
826
- let f, d;
827
- s === -1 ? d = o.lastIndexOf("@") : d = o.lastIndexOf("@", s), d !== -1 && (f = o.slice(0, d), o = o.slice(d + 1), this.auth = f), s = -1;
828
- for (let h = 0; h < at.length; h++)
829
- n = o.indexOf(at[h]), n !== -1 && (s === -1 || n < s) && (s = n);
828
+ for (let p = 0; p < st.length; p++)
829
+ n = o.indexOf(st[p]), n !== -1 && (s === -1 || n < s) && (s = n);
830
+ let d, f;
831
+ s === -1 ? f = o.lastIndexOf("@") : f = o.lastIndexOf("@", s), f !== -1 && (d = o.slice(0, f), o = o.slice(f + 1), this.auth = d), s = -1;
832
+ for (let p = 0; p < at.length; p++)
833
+ n = o.indexOf(at[p]), n !== -1 && (s === -1 || n < s) && (s = n);
830
834
  s === -1 && (s = o.length), o[s - 1] === ":" && s--;
831
835
  const m = o.slice(0, s);
832
836
  o = o.slice(s), this.parseHost(m), this.hostname = this.hostname || "";
833
- const p = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
834
- if (!p) {
835
- const h = this.hostname.split(/\./);
836
- for (let C = 0, D = h.length; C < D; C++) {
837
- const T = h[C];
837
+ const h = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
838
+ if (!h) {
839
+ const p = this.hostname.split(/\./);
840
+ for (let C = 0, D = p.length; C < D; C++) {
841
+ const T = p[C];
838
842
  if (T && !T.match(lt)) {
839
843
  let E = "";
840
844
  for (let k = 0, _ = T.length; k < _; k++)
841
845
  T.charCodeAt(k) > 127 ? E += "x" : E += T[k];
842
846
  if (!E.match(lt)) {
843
- const k = h.slice(0, C), _ = h.slice(C + 1), A = T.match(Pr);
847
+ const k = p.slice(0, C), _ = p.slice(C + 1), A = T.match(Br);
844
848
  A && (k.push(A[1]), _.unshift(A[2])), _.length && (o = _.join(".") + o), this.hostname = k.join(".");
845
849
  break;
846
850
  }
847
851
  }
848
852
  }
849
853
  }
850
- this.hostname.length > Br && (this.hostname = ""), p && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
854
+ this.hostname.length > Pr && (this.hostname = ""), h && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
851
855
  }
852
856
  const c = o.indexOf("#");
853
857
  c !== -1 && (this.hash = o.substr(c), o = o.slice(0, c));
@@ -862,8 +866,8 @@ const zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
862
866
  __proto__: null,
863
867
  decode: zu,
864
868
  encode: ie,
865
- format: h0,
866
- parse: p0
869
+ format: p0,
870
+ parse: h0
867
871
  }, Symbol.toStringTag, { value: "Module" })), It = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Mt = /[\0-\x1F\x7F-\x9F]/, qr = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, b0 = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Lt = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Ot = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
868
872
  __proto__: null,
869
873
  Any: It,
@@ -921,42 +925,42 @@ function Wr(u) {
921
925
  var e;
922
926
  return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = jr.get(u)) !== null && e !== void 0 ? e : u;
923
927
  }
924
- var P;
928
+ var B;
925
929
  (function(u) {
926
930
  u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
927
- })(P || (P = {}));
931
+ })(B || (B = {}));
928
932
  const Zr = 32;
929
933
  var mu;
930
934
  (function(u) {
931
935
  u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
932
936
  })(mu || (mu = {}));
933
937
  function c0(u) {
934
- return u >= P.ZERO && u <= P.NINE;
938
+ return u >= B.ZERO && u <= B.NINE;
935
939
  }
936
940
  function Vr(u) {
937
- return u >= P.UPPER_A && u <= P.UPPER_F || u >= P.LOWER_A && u <= P.LOWER_F;
941
+ return u >= B.UPPER_A && u <= B.UPPER_F || u >= B.LOWER_A && u <= B.LOWER_F;
938
942
  }
939
943
  function Yr(u) {
940
- return u >= P.UPPER_A && u <= P.UPPER_Z || u >= P.LOWER_A && u <= P.LOWER_Z || c0(u);
944
+ return u >= B.UPPER_A && u <= B.UPPER_Z || u >= B.LOWER_A && u <= B.LOWER_Z || c0(u);
941
945
  }
942
946
  function Xr(u) {
943
- return u === P.EQUALS || Yr(u);
947
+ return u === B.EQUALS || Yr(u);
944
948
  }
945
- var B;
949
+ var P;
946
950
  (function(u) {
947
951
  u[u.EntityStart = 0] = "EntityStart", u[u.NumericStart = 1] = "NumericStart", u[u.NumericDecimal = 2] = "NumericDecimal", u[u.NumericHex = 3] = "NumericHex", u[u.NamedEntity = 4] = "NamedEntity";
948
- })(B || (B = {}));
952
+ })(P || (P = {}));
949
953
  var bu;
950
954
  (function(u) {
951
955
  u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
952
956
  })(bu || (bu = {}));
953
957
  class Jr {
954
958
  constructor(e, t, n) {
955
- this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = B.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = bu.Strict;
959
+ this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = P.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = bu.Strict;
956
960
  }
957
961
  /** Resets the instance to make it reusable. */
958
962
  startEntity(e) {
959
- this.decodeMode = e, this.state = B.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
963
+ this.decodeMode = e, this.state = P.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
960
964
  }
961
965
  /**
962
966
  * Write an entity to the decoder. This can be called multiple times with partial entities.
@@ -971,15 +975,15 @@ class Jr {
971
975
  */
972
976
  write(e, t) {
973
977
  switch (this.state) {
974
- case B.EntityStart:
975
- return e.charCodeAt(t) === P.NUM ? (this.state = B.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = B.NamedEntity, this.stateNamedEntity(e, t));
976
- case B.NumericStart:
978
+ case P.EntityStart:
979
+ return e.charCodeAt(t) === B.NUM ? (this.state = P.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = P.NamedEntity, this.stateNamedEntity(e, t));
980
+ case P.NumericStart:
977
981
  return this.stateNumericStart(e, t);
978
- case B.NumericDecimal:
982
+ case P.NumericDecimal:
979
983
  return this.stateNumericDecimal(e, t);
980
- case B.NumericHex:
984
+ case P.NumericHex:
981
985
  return this.stateNumericHex(e, t);
982
- case B.NamedEntity:
986
+ case P.NamedEntity:
983
987
  return this.stateNamedEntity(e, t);
984
988
  }
985
989
  }
@@ -993,7 +997,7 @@ class Jr {
993
997
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
994
998
  */
995
999
  stateNumericStart(e, t) {
996
- return t >= e.length ? -1 : (e.charCodeAt(t) | Zr) === P.LOWER_X ? (this.state = B.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = B.NumericDecimal, this.stateNumericDecimal(e, t));
1000
+ return t >= e.length ? -1 : (e.charCodeAt(t) | Zr) === B.LOWER_X ? (this.state = P.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = P.NumericDecimal, this.stateNumericDecimal(e, t));
997
1001
  }
998
1002
  addToNumericResult(e, t, n, r) {
999
1003
  if (t !== n) {
@@ -1058,11 +1062,11 @@ class Jr {
1058
1062
  var n;
1059
1063
  if (this.consumed <= t)
1060
1064
  return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
1061
- if (e === P.SEMI)
1065
+ if (e === B.SEMI)
1062
1066
  this.consumed += 1;
1063
1067
  else if (this.decodeMode === bu.Strict)
1064
1068
  return 0;
1065
- return this.emitCodePoint(Wr(this.result), this.consumed), this.errors && (e !== P.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
1069
+ return this.emitCodePoint(Wr(this.result), this.consumed), this.errors && (e !== B.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
1066
1070
  }
1067
1071
  /**
1068
1072
  * Parses a named entity.
@@ -1084,7 +1088,7 @@ class Jr {
1084
1088
  (o === 0 || // And there should be no invalid characters.
1085
1089
  Xr(i)) ? 0 : this.emitNotTerminatedNamedEntity();
1086
1090
  if (r = n[this.treeIndex], o = (r & mu.VALUE_LENGTH) >> 14, o !== 0) {
1087
- if (i === P.SEMI)
1091
+ if (i === B.SEMI)
1088
1092
  return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
1089
1093
  this.decodeMode !== bu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
1090
1094
  }
@@ -1124,15 +1128,15 @@ class Jr {
1124
1128
  end() {
1125
1129
  var e;
1126
1130
  switch (this.state) {
1127
- case B.NamedEntity:
1131
+ case P.NamedEntity:
1128
1132
  return this.result !== 0 && (this.decodeMode !== bu.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
1129
- case B.NumericDecimal:
1133
+ case P.NumericDecimal:
1130
1134
  return this.emitNumericEntity(0, 2);
1131
- case B.NumericHex:
1135
+ case P.NumericHex:
1132
1136
  return this.emitNumericEntity(0, 3);
1133
- case B.NumericStart:
1137
+ case P.NumericStart:
1134
1138
  return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
1135
- case B.EntityStart:
1139
+ case P.EntityStart:
1136
1140
  return 0;
1137
1141
  }
1138
1142
  }
@@ -1181,7 +1185,7 @@ function Qr(u, e, t, n) {
1181
1185
  }
1182
1186
  const Kr = Nt(Hr);
1183
1187
  Nt($r);
1184
- function Bt(u, e = bu.Legacy) {
1188
+ function Pt(u, e = bu.Legacy) {
1185
1189
  return Kr(u, e);
1186
1190
  }
1187
1191
  function uo(u) {
@@ -1205,7 +1209,7 @@ function Se(u) {
1205
1209
  }
1206
1210
  }), u;
1207
1211
  }
1208
- function Pt(u, e, t) {
1212
+ function Bt(u, e, t) {
1209
1213
  return [].concat(u.slice(0, e), t, u.slice(e + 1));
1210
1214
  }
1211
1215
  function _0(u) {
@@ -1225,7 +1229,7 @@ function co(u, e) {
1225
1229
  const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
1226
1230
  return _0(n) ? Fe(n) : u;
1227
1231
  }
1228
- const t = Bt(u);
1232
+ const t = Pt(u);
1229
1233
  return t !== u ? t : u;
1230
1234
  }
1231
1235
  function io(u) {
@@ -1248,9 +1252,9 @@ function fo(u) {
1248
1252
  function xu(u) {
1249
1253
  return ao.test(u) ? u.replace(so, fo) : u;
1250
1254
  }
1251
- const ho = /[.?*+^$[\]\\(){}|-]/g;
1252
- function po(u) {
1253
- return u.replace(ho, "\\$&");
1255
+ const po = /[.?*+^$[\]\\(){}|-]/g;
1256
+ function ho(u) {
1257
+ return u.replace(po, "\\$&");
1254
1258
  }
1255
1259
  function w(u) {
1256
1260
  switch (u) {
@@ -1326,10 +1330,10 @@ function we(u) {
1326
1330
  }
1327
1331
  const bo = { mdurl: zr, ucmicro: Ur }, mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1328
1332
  __proto__: null,
1329
- arrayReplaceAt: Pt,
1333
+ arrayReplaceAt: Bt,
1330
1334
  assign: Se,
1331
1335
  escapeHtml: xu,
1332
- escapeRE: po,
1336
+ escapeRE: ho,
1333
1337
  fromCodePoint: Fe,
1334
1338
  has: to,
1335
1339
  isMdAsciiPunct: te,
@@ -1453,18 +1457,18 @@ iu.fence = function(u, e, t, n, r) {
1453
1457
  const o = u[e], i = o.info ? qu(o.info).trim() : "";
1454
1458
  let c = "", a = "";
1455
1459
  if (i) {
1456
- const f = i.split(/(\s+)/g);
1457
- c = f[0], a = f.slice(2).join("");
1460
+ const d = i.split(/(\s+)/g);
1461
+ c = d[0], a = d.slice(2).join("");
1458
1462
  }
1459
1463
  let s;
1460
1464
  if (t.highlight ? s = t.highlight(o.content, c, a) || xu(o.content) : s = xu(o.content), s.indexOf("<pre") === 0)
1461
1465
  return s + `
1462
1466
  `;
1463
1467
  if (i) {
1464
- const f = o.attrIndex("class"), d = o.attrs ? o.attrs.slice() : [];
1465
- f < 0 ? d.push(["class", t.langPrefix + c]) : (d[f] = d[f].slice(), d[f][1] += " " + t.langPrefix + c);
1468
+ const d = o.attrIndex("class"), f = o.attrs ? o.attrs.slice() : [];
1469
+ d < 0 ? f.push(["class", t.langPrefix + c]) : (f[d] = f[d].slice(), f[d][1] += " " + t.langPrefix + c);
1466
1470
  const m = {
1467
- attrs: d
1471
+ attrs: f
1468
1472
  };
1469
1473
  return `<pre><code${r.renderAttrs(m)}>${s}</code></pre>
1470
1474
  `;
@@ -1726,32 +1730,32 @@ function So(u) {
1726
1730
  if (c.type === "html_inline" && (Fo(c.content) && o > 0 && o--, To(c.content) && o++), !(o > 0) && c.type === "text" && u.md.linkify.test(c.content)) {
1727
1731
  const a = c.content;
1728
1732
  let s = u.md.linkify.match(a);
1729
- const f = [];
1730
- let d = c.level, m = 0;
1733
+ const d = [];
1734
+ let f = c.level, m = 0;
1731
1735
  s.length > 0 && s[0].index === 0 && i > 0 && r[i - 1].type === "text_special" && (s = s.slice(1));
1732
- for (let p = 0; p < s.length; p++) {
1733
- const h = s[p].url, C = u.md.normalizeLink(h);
1736
+ for (let h = 0; h < s.length; h++) {
1737
+ const p = s[h].url, C = u.md.normalizeLink(p);
1734
1738
  if (!u.md.validateLink(C))
1735
1739
  continue;
1736
- let D = s[p].text;
1737
- s[p].schema ? s[p].schema === "mailto:" && !/^mailto:/i.test(D) ? D = u.md.normalizeLinkText("mailto:" + D).replace(/^mailto:/, "") : D = u.md.normalizeLinkText(D) : D = u.md.normalizeLinkText("http://" + D).replace(/^http:\/\//, "");
1738
- const T = s[p].index;
1740
+ let D = s[h].text;
1741
+ s[h].schema ? s[h].schema === "mailto:" && !/^mailto:/i.test(D) ? D = u.md.normalizeLinkText("mailto:" + D).replace(/^mailto:/, "") : D = u.md.normalizeLinkText(D) : D = u.md.normalizeLinkText("http://" + D).replace(/^http:\/\//, "");
1742
+ const T = s[h].index;
1739
1743
  if (T > m) {
1740
1744
  const A = new u.Token("text", "", 0);
1741
- A.content = a.slice(m, T), A.level = d, f.push(A);
1745
+ A.content = a.slice(m, T), A.level = f, d.push(A);
1742
1746
  }
1743
1747
  const E = new u.Token("link_open", "a", 1);
1744
- E.attrs = [["href", C]], E.level = d++, E.markup = "linkify", E.info = "auto", f.push(E);
1748
+ E.attrs = [["href", C]], E.level = f++, E.markup = "linkify", E.info = "auto", d.push(E);
1745
1749
  const k = new u.Token("text", "", 0);
1746
- k.content = D, k.level = d, f.push(k);
1750
+ k.content = D, k.level = f, d.push(k);
1747
1751
  const _ = new u.Token("link_close", "a", -1);
1748
- _.level = --d, _.markup = "linkify", _.info = "auto", f.push(_), m = s[p].lastIndex;
1752
+ _.level = --f, _.markup = "linkify", _.info = "auto", d.push(_), m = s[h].lastIndex;
1749
1753
  }
1750
1754
  if (m < a.length) {
1751
- const p = new u.Token("text", "", 0);
1752
- p.content = a.slice(m), p.level = d, f.push(p);
1755
+ const h = new u.Token("text", "", 0);
1756
+ h.content = a.slice(m), h.level = f, d.push(h);
1753
1757
  }
1754
- e[t].children = r = Pt(r, i, f);
1758
+ e[t].children = r = Bt(r, i, d);
1755
1759
  }
1756
1760
  }
1757
1761
  }
@@ -1784,11 +1788,11 @@ function Oo(u) {
1784
1788
  for (e = u.tokens.length - 1; e >= 0; e--)
1785
1789
  u.tokens[e].type === "inline" && (wo.test(u.tokens[e].content) && Mo(u.tokens[e].children), Ut.test(u.tokens[e].content) && Lo(u.tokens[e].children));
1786
1790
  }
1787
- const No = /['"]/, ht = /['"]/g, pt = "’";
1791
+ const No = /['"]/, pt = /['"]/g, ht = "’";
1788
1792
  function ge(u, e, t) {
1789
1793
  return u.slice(0, e) + t + u.slice(e + 1);
1790
1794
  }
1791
- function Bo(u, e) {
1795
+ function Po(u, e) {
1792
1796
  let t;
1793
1797
  const n = [];
1794
1798
  for (let r = 0; r < u.length; r++) {
@@ -1800,20 +1804,20 @@ function Bo(u, e) {
1800
1804
  let c = o.content, a = 0, s = c.length;
1801
1805
  u:
1802
1806
  for (; a < s; ) {
1803
- ht.lastIndex = a;
1804
- const f = ht.exec(c);
1805
- if (!f)
1807
+ pt.lastIndex = a;
1808
+ const d = pt.exec(c);
1809
+ if (!d)
1806
1810
  break;
1807
- let d = !0, m = !0;
1808
- a = f.index + 1;
1809
- const p = f[0] === "'";
1810
- let h = 32;
1811
- if (f.index - 1 >= 0)
1812
- h = c.charCodeAt(f.index - 1);
1811
+ let f = !0, m = !0;
1812
+ a = d.index + 1;
1813
+ const h = d[0] === "'";
1814
+ let p = 32;
1815
+ if (d.index - 1 >= 0)
1816
+ p = c.charCodeAt(d.index - 1);
1813
1817
  else
1814
1818
  for (t = r - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
1815
1819
  if (u[t].content) {
1816
- h = u[t].content.charCodeAt(u[t].content.length - 1);
1820
+ p = u[t].content.charCodeAt(u[t].content.length - 1);
1817
1821
  break;
1818
1822
  }
1819
1823
  let C = 32;
@@ -1825,9 +1829,9 @@ function Bo(u, e) {
1825
1829
  C = u[t].content.charCodeAt(0);
1826
1830
  break;
1827
1831
  }
1828
- const D = te(h) || ee(String.fromCharCode(h)), T = te(C) || ee(String.fromCharCode(C)), E = ue(h), k = ue(C);
1829
- if (k ? d = !1 : T && (E || D || (d = !1)), E ? m = !1 : D && (k || T || (m = !1)), C === 34 && f[0] === '"' && h >= 48 && h <= 57 && (m = d = !1), d && m && (d = D, m = T), !d && !m) {
1830
- p && (o.content = ge(o.content, f.index, pt));
1832
+ const D = te(p) || ee(String.fromCharCode(p)), T = te(C) || ee(String.fromCharCode(C)), E = ue(p), k = ue(C);
1833
+ if (k ? f = !1 : T && (E || D || (f = !1)), E ? m = !1 : D && (k || T || (m = !1)), C === 34 && d[0] === '"' && p >= 48 && p <= 57 && (m = f = !1), f && m && (f = D, m = T), !f && !m) {
1834
+ h && (o.content = ge(o.content, d.index, ht));
1831
1835
  continue;
1832
1836
  }
1833
1837
  if (m)
@@ -1835,10 +1839,10 @@ function Bo(u, e) {
1835
1839
  let _ = n[t];
1836
1840
  if (n[t].level < i)
1837
1841
  break;
1838
- if (_.single === p && n[t].level === i) {
1842
+ if (_.single === h && n[t].level === i) {
1839
1843
  _ = n[t];
1840
1844
  let A, y;
1841
- p ? (A = e.md.options.quotes[2], y = e.md.options.quotes[3]) : (A = e.md.options.quotes[0], y = e.md.options.quotes[1]), o.content = ge(o.content, f.index, y), u[_.token].content = ge(
1845
+ h ? (A = e.md.options.quotes[2], y = e.md.options.quotes[3]) : (A = e.md.options.quotes[0], y = e.md.options.quotes[1]), o.content = ge(o.content, d.index, y), u[_.token].content = ge(
1842
1846
  u[_.token].content,
1843
1847
  _.pos,
1844
1848
  A
@@ -1846,19 +1850,19 @@ function Bo(u, e) {
1846
1850
  continue u;
1847
1851
  }
1848
1852
  }
1849
- d ? n.push({
1853
+ f ? n.push({
1850
1854
  token: r,
1851
- pos: f.index,
1852
- single: p,
1855
+ pos: d.index,
1856
+ single: h,
1853
1857
  level: i
1854
- }) : m && p && (o.content = ge(o.content, f.index, pt));
1858
+ }) : m && h && (o.content = ge(o.content, d.index, ht));
1855
1859
  }
1856
1860
  }
1857
1861
  }
1858
- function Po(u) {
1862
+ function Bo(u) {
1859
1863
  if (u.md.options.typographer)
1860
1864
  for (let e = u.tokens.length - 1; e >= 0; e--)
1861
- u.tokens[e].type !== "inline" || !No.test(u.tokens[e].content) || Bo(u.tokens[e].children, u);
1865
+ u.tokens[e].type !== "inline" || !No.test(u.tokens[e].content) || Po(u.tokens[e].children, u);
1862
1866
  }
1863
1867
  function zo(u) {
1864
1868
  let e, t;
@@ -1879,7 +1883,7 @@ const Je = [
1879
1883
  ["inline", yo],
1880
1884
  ["linkify", So],
1881
1885
  ["replacements", Oo],
1882
- ["smartquotes", Po],
1886
+ ["smartquotes", Bo],
1883
1887
  // `text_join` finds `text_special` tokens (for escape sequences)
1884
1888
  // and joins them with the rest of the text
1885
1889
  ["text_join", zo]
@@ -1898,15 +1902,15 @@ x0.prototype.State = qt;
1898
1902
  function au(u, e, t, n) {
1899
1903
  this.src = u, this.md = e, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
1900
1904
  const r = this.src;
1901
- for (let o = 0, i = 0, c = 0, a = 0, s = r.length, f = !1; i < s; i++) {
1902
- const d = r.charCodeAt(i);
1903
- if (!f)
1904
- if (w(d)) {
1905
- c++, d === 9 ? a += 4 - a % 4 : a++;
1905
+ for (let o = 0, i = 0, c = 0, a = 0, s = r.length, d = !1; i < s; i++) {
1906
+ const f = r.charCodeAt(i);
1907
+ if (!d)
1908
+ if (w(f)) {
1909
+ c++, f === 9 ? a += 4 - a % 4 : a++;
1906
1910
  continue;
1907
1911
  } else
1908
- f = !0;
1909
- (d === 10 || i === s - 1) && (d !== 10 && i++, this.bMarks.push(o), this.eMarks.push(i), this.tShift.push(c), this.sCount.push(a), this.bsCount.push(0), f = !1, c = 0, a = 0, o = i + 1);
1912
+ d = !0;
1913
+ (f === 10 || i === s - 1) && (f !== 10 && i++, this.bMarks.push(o), this.eMarks.push(i), this.tShift.push(c), this.sCount.push(a), this.bsCount.push(0), d = !1, c = 0, a = 0, o = i + 1);
1910
1914
  }
1911
1915
  this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
1912
1916
  }
@@ -1958,18 +1962,18 @@ au.prototype.getLines = function(e, t, n, r) {
1958
1962
  for (let i = 0, c = e; c < t; c++, i++) {
1959
1963
  let a = 0;
1960
1964
  const s = this.bMarks[c];
1961
- let f = s, d;
1962
- for (c + 1 < t || r ? d = this.eMarks[c] + 1 : d = this.eMarks[c]; f < d && a < n; ) {
1963
- const m = this.src.charCodeAt(f);
1965
+ let d = s, f;
1966
+ for (c + 1 < t || r ? f = this.eMarks[c] + 1 : f = this.eMarks[c]; d < f && a < n; ) {
1967
+ const m = this.src.charCodeAt(d);
1964
1968
  if (w(m))
1965
1969
  m === 9 ? a += 4 - (a + this.bsCount[c]) % 4 : a++;
1966
- else if (f - s < this.tShift[c])
1970
+ else if (d - s < this.tShift[c])
1967
1971
  a++;
1968
1972
  else
1969
1973
  break;
1970
- f++;
1974
+ d++;
1971
1975
  }
1972
- a > n ? o[i] = new Array(a - n + 1).join(" ") + this.src.slice(f, d) : o[i] = this.src.slice(f, d);
1976
+ a > n ? o[i] = new Array(a - n + 1).join(" ") + this.src.slice(d, f) : o[i] = this.src.slice(d, f);
1973
1977
  }
1974
1978
  return o.join("");
1975
1979
  };
@@ -2008,7 +2012,7 @@ function Uo(u, e, t, n) {
2008
2012
  o++;
2009
2013
  }
2010
2014
  let a = Qe(u, e + 1), s = a.split("|");
2011
- const f = [];
2015
+ const d = [];
2012
2016
  for (let _ = 0; _ < s.length; _++) {
2013
2017
  const A = s[_].trim();
2014
2018
  if (!A) {
@@ -2018,27 +2022,27 @@ function Uo(u, e, t, n) {
2018
2022
  }
2019
2023
  if (!/^:?-+:?$/.test(A))
2020
2024
  return !1;
2021
- A.charCodeAt(A.length - 1) === 58 ? f.push(A.charCodeAt(0) === 58 ? "center" : "right") : A.charCodeAt(0) === 58 ? f.push("left") : f.push("");
2025
+ A.charCodeAt(A.length - 1) === 58 ? d.push(A.charCodeAt(0) === 58 ? "center" : "right") : A.charCodeAt(0) === 58 ? d.push("left") : d.push("");
2022
2026
  }
2023
2027
  if (a = Qe(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
2024
2028
  return !1;
2025
2029
  s = bt(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
2026
- const d = s.length;
2027
- if (d === 0 || d !== f.length)
2030
+ const f = s.length;
2031
+ if (f === 0 || f !== d.length)
2028
2032
  return !1;
2029
2033
  if (n)
2030
2034
  return !0;
2031
2035
  const m = u.parentType;
2032
2036
  u.parentType = "table";
2033
- const p = u.md.block.ruler.getRules("blockquote"), h = u.push("table_open", "table", 1), C = [e, 0];
2034
- h.map = C;
2037
+ const h = u.md.block.ruler.getRules("blockquote"), p = u.push("table_open", "table", 1), C = [e, 0];
2038
+ p.map = C;
2035
2039
  const D = u.push("thead_open", "thead", 1);
2036
2040
  D.map = [e, e + 1];
2037
2041
  const T = u.push("tr_open", "tr", 1);
2038
2042
  T.map = [e, e + 1];
2039
2043
  for (let _ = 0; _ < s.length; _++) {
2040
2044
  const A = u.push("th_open", "th", 1);
2041
- f[_] && (A.attrs = [["style", "text-align:" + f[_]]]);
2045
+ d[_] && (A.attrs = [["style", "text-align:" + d[_]]]);
2042
2046
  const y = u.push("inline", "", 0);
2043
2047
  y.content = s[_].trim(), y.children = [], u.push("th_close", "th", -1);
2044
2048
  }
@@ -2046,12 +2050,12 @@ function Uo(u, e, t, n) {
2046
2050
  let E, k = 0;
2047
2051
  for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
2048
2052
  let _ = !1;
2049
- for (let y = 0, M = p.length; y < M; y++)
2050
- if (p[y](u, r, t, !0)) {
2053
+ for (let y = 0, M = h.length; y < M; y++)
2054
+ if (h[y](u, r, t, !0)) {
2051
2055
  _ = !0;
2052
2056
  break;
2053
2057
  }
2054
- if (_ || (a = Qe(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = bt(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), k += d - s.length, k > qo))
2058
+ if (_ || (a = Qe(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = bt(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), k += f - s.length, k > qo))
2055
2059
  break;
2056
2060
  if (r === e + 2) {
2057
2061
  const y = u.push("tbody_open", "tbody", 1);
@@ -2059,9 +2063,9 @@ function Uo(u, e, t, n) {
2059
2063
  }
2060
2064
  const A = u.push("tr_open", "tr", 1);
2061
2065
  A.map = [r, r + 1];
2062
- for (let y = 0; y < d; y++) {
2066
+ for (let y = 0; y < f; y++) {
2063
2067
  const M = u.push("td_open", "td", 1);
2064
- f[y] && (M.attrs = [["style", "text-align:" + f[y]]]);
2068
+ d[y] && (M.attrs = [["style", "text-align:" + d[y]]]);
2065
2069
  const Y = u.push("inline", "", 0);
2066
2070
  Y.content = s[y] ? s[y].trim() : "", Y.children = [], u.push("td_close", "td", -1);
2067
2071
  }
@@ -2101,20 +2105,20 @@ function $o(u, e, t, n) {
2101
2105
  let a = r - c;
2102
2106
  if (a < 3)
2103
2107
  return !1;
2104
- const s = u.src.slice(c, r), f = u.src.slice(r, o);
2105
- if (i === 96 && f.indexOf(String.fromCharCode(i)) >= 0)
2108
+ const s = u.src.slice(c, r), d = u.src.slice(r, o);
2109
+ if (i === 96 && d.indexOf(String.fromCharCode(i)) >= 0)
2106
2110
  return !1;
2107
2111
  if (n)
2108
2112
  return !0;
2109
- let d = e, m = !1;
2110
- for (; d++, !(d >= t || (r = c = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r < o && u.sCount[d] < u.blkIndent)); )
2111
- if (u.src.charCodeAt(r) === i && !(u.sCount[d] - u.blkIndent >= 4) && (r = u.skipChars(r, i), !(r - c < a) && (r = u.skipSpaces(r), !(r < o)))) {
2113
+ let f = e, m = !1;
2114
+ for (; f++, !(f >= t || (r = c = u.bMarks[f] + u.tShift[f], o = u.eMarks[f], r < o && u.sCount[f] < u.blkIndent)); )
2115
+ if (u.src.charCodeAt(r) === i && !(u.sCount[f] - u.blkIndent >= 4) && (r = u.skipChars(r, i), !(r - c < a) && (r = u.skipSpaces(r), !(r < o)))) {
2112
2116
  m = !0;
2113
2117
  break;
2114
2118
  }
2115
- a = u.sCount[e], u.line = d + (m ? 1 : 0);
2116
- const p = u.push("fence", "code", 0);
2117
- return p.info = f, p.content = u.getLines(e + 1, d, a, !0), p.markup = s, p.map = [e, u.line], !0;
2119
+ a = u.sCount[e], u.line = f + (m ? 1 : 0);
2120
+ const h = u.push("fence", "code", 0);
2121
+ return h.info = d, h.content = u.getLines(e + 1, f, a, !0), h.markup = s, h.map = [e, u.line], !0;
2118
2122
  }
2119
2123
  function jo(u, e, t, n) {
2120
2124
  let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
@@ -2123,52 +2127,52 @@ function jo(u, e, t, n) {
2123
2127
  return !1;
2124
2128
  if (n)
2125
2129
  return !0;
2126
- const c = [], a = [], s = [], f = [], d = u.md.block.ruler.getRules("blockquote"), m = u.parentType;
2130
+ const c = [], a = [], s = [], d = [], f = u.md.block.ruler.getRules("blockquote"), m = u.parentType;
2127
2131
  u.parentType = "blockquote";
2128
- let p = !1, h;
2129
- for (h = e; h < t; h++) {
2130
- const k = u.sCount[h] < u.blkIndent;
2131
- if (r = u.bMarks[h] + u.tShift[h], o = u.eMarks[h], r >= o)
2132
+ let h = !1, p;
2133
+ for (p = e; p < t; p++) {
2134
+ const k = u.sCount[p] < u.blkIndent;
2135
+ if (r = u.bMarks[p] + u.tShift[p], o = u.eMarks[p], r >= o)
2132
2136
  break;
2133
2137
  if (u.src.charCodeAt(r++) === 62 && !k) {
2134
- let A = u.sCount[h] + 1, y, M;
2135
- u.src.charCodeAt(r) === 32 ? (r++, A++, M = !1, y = !0) : u.src.charCodeAt(r) === 9 ? (y = !0, (u.bsCount[h] + A) % 4 === 3 ? (r++, A++, M = !1) : M = !0) : y = !1;
2138
+ let A = u.sCount[p] + 1, y, M;
2139
+ u.src.charCodeAt(r) === 32 ? (r++, A++, M = !1, y = !0) : u.src.charCodeAt(r) === 9 ? (y = !0, (u.bsCount[p] + A) % 4 === 3 ? (r++, A++, M = !1) : M = !0) : y = !1;
2136
2140
  let Y = A;
2137
- for (c.push(u.bMarks[h]), u.bMarks[h] = r; r < o; ) {
2141
+ for (c.push(u.bMarks[p]), u.bMarks[p] = r; r < o; ) {
2138
2142
  const nu = u.src.charCodeAt(r);
2139
2143
  if (w(nu))
2140
- nu === 9 ? Y += 4 - (Y + u.bsCount[h] + (M ? 1 : 0)) % 4 : Y++;
2144
+ nu === 9 ? Y += 4 - (Y + u.bsCount[p] + (M ? 1 : 0)) % 4 : Y++;
2141
2145
  else
2142
2146
  break;
2143
2147
  r++;
2144
2148
  }
2145
- p = r >= o, a.push(u.bsCount[h]), u.bsCount[h] = u.sCount[h] + 1 + (y ? 1 : 0), s.push(u.sCount[h]), u.sCount[h] = Y - A, f.push(u.tShift[h]), u.tShift[h] = r - u.bMarks[h];
2149
+ h = r >= o, a.push(u.bsCount[p]), u.bsCount[p] = u.sCount[p] + 1 + (y ? 1 : 0), s.push(u.sCount[p]), u.sCount[p] = Y - A, d.push(u.tShift[p]), u.tShift[p] = r - u.bMarks[p];
2146
2150
  continue;
2147
2151
  }
2148
- if (p)
2152
+ if (h)
2149
2153
  break;
2150
2154
  let _ = !1;
2151
- for (let A = 0, y = d.length; A < y; A++)
2152
- if (d[A](u, h, t, !0)) {
2155
+ for (let A = 0, y = f.length; A < y; A++)
2156
+ if (f[A](u, p, t, !0)) {
2153
2157
  _ = !0;
2154
2158
  break;
2155
2159
  }
2156
2160
  if (_) {
2157
- u.lineMax = h, u.blkIndent !== 0 && (c.push(u.bMarks[h]), a.push(u.bsCount[h]), f.push(u.tShift[h]), s.push(u.sCount[h]), u.sCount[h] -= u.blkIndent);
2161
+ u.lineMax = p, u.blkIndent !== 0 && (c.push(u.bMarks[p]), a.push(u.bsCount[p]), d.push(u.tShift[p]), s.push(u.sCount[p]), u.sCount[p] -= u.blkIndent);
2158
2162
  break;
2159
2163
  }
2160
- c.push(u.bMarks[h]), a.push(u.bsCount[h]), f.push(u.tShift[h]), s.push(u.sCount[h]), u.sCount[h] = -1;
2164
+ c.push(u.bMarks[p]), a.push(u.bsCount[p]), d.push(u.tShift[p]), s.push(u.sCount[p]), u.sCount[p] = -1;
2161
2165
  }
2162
2166
  const C = u.blkIndent;
2163
2167
  u.blkIndent = 0;
2164
2168
  const D = u.push("blockquote_open", "blockquote", 1);
2165
2169
  D.markup = ">";
2166
2170
  const T = [e, 0];
2167
- D.map = T, u.md.block.tokenize(u, e, h);
2171
+ D.map = T, u.md.block.tokenize(u, e, p);
2168
2172
  const E = u.push("blockquote_close", "blockquote", -1);
2169
2173
  E.markup = ">", u.lineMax = i, u.parentType = m, T[1] = u.line;
2170
- for (let k = 0; k < f.length; k++)
2171
- u.bMarks[k + e] = c[k], u.tShift[k + e] = f[k], u.sCount[k + e] = s[k], u.bsCount[k + e] = a[k];
2174
+ for (let k = 0; k < d.length; k++)
2175
+ u.bMarks[k + e] = c[k], u.tShift[k + e] = d[k], u.sCount[k + e] = s[k], u.bsCount[k + e] = a[k];
2172
2176
  return u.blkIndent = C, !0;
2173
2177
  }
2174
2178
  function Go(u, e, t, n) {
@@ -2238,34 +2242,34 @@ function Zo(u, e, t, n) {
2238
2242
  let r, o, i, c, a = e, s = !0;
2239
2243
  if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
2240
2244
  return !1;
2241
- let f = !1;
2242
- n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (f = !0);
2243
- let d, m, p;
2244
- if ((p = _t(u, a)) >= 0) {
2245
- if (d = !0, i = u.bMarks[a] + u.tShift[a], m = Number(u.src.slice(i, p - 1)), f && m !== 1) return !1;
2246
- } else if ((p = mt(u, a)) >= 0)
2247
- d = !1;
2245
+ let d = !1;
2246
+ n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (d = !0);
2247
+ let f, m, h;
2248
+ if ((h = _t(u, a)) >= 0) {
2249
+ if (f = !0, i = u.bMarks[a] + u.tShift[a], m = Number(u.src.slice(i, h - 1)), d && m !== 1) return !1;
2250
+ } else if ((h = mt(u, a)) >= 0)
2251
+ f = !1;
2248
2252
  else
2249
2253
  return !1;
2250
- if (f && u.skipSpaces(p) >= u.eMarks[a])
2254
+ if (d && u.skipSpaces(h) >= u.eMarks[a])
2251
2255
  return !1;
2252
2256
  if (n)
2253
2257
  return !0;
2254
- const h = u.src.charCodeAt(p - 1), C = u.tokens.length;
2255
- d ? (c = u.push("ordered_list_open", "ol", 1), m !== 1 && (c.attrs = [["start", m]])) : c = u.push("bullet_list_open", "ul", 1);
2258
+ const p = u.src.charCodeAt(h - 1), C = u.tokens.length;
2259
+ f ? (c = u.push("ordered_list_open", "ol", 1), m !== 1 && (c.attrs = [["start", m]])) : c = u.push("bullet_list_open", "ul", 1);
2256
2260
  const D = [a, 0];
2257
- c.map = D, c.markup = String.fromCharCode(h);
2261
+ c.map = D, c.markup = String.fromCharCode(p);
2258
2262
  let T = !1;
2259
2263
  const E = u.md.block.ruler.getRules("list"), k = u.parentType;
2260
2264
  for (u.parentType = "list"; a < t; ) {
2261
- o = p, r = u.eMarks[a];
2262
- const _ = u.sCount[a] + p - (u.bMarks[a] + u.tShift[a]);
2265
+ o = h, r = u.eMarks[a];
2266
+ const _ = u.sCount[a] + h - (u.bMarks[a] + u.tShift[a]);
2263
2267
  let A = _;
2264
2268
  for (; o < r; ) {
2265
- const hu = u.src.charCodeAt(o);
2266
- if (hu === 9)
2269
+ const pu = u.src.charCodeAt(o);
2270
+ if (pu === 9)
2267
2271
  A += 4 - (A + u.bsCount[a]) % 4;
2268
- else if (hu === 32)
2272
+ else if (pu === 32)
2269
2273
  A++;
2270
2274
  else
2271
2275
  break;
@@ -2275,30 +2279,30 @@ function Zo(u, e, t, n) {
2275
2279
  let M;
2276
2280
  y >= r ? M = 1 : M = A - _, M > 4 && (M = 1);
2277
2281
  const Y = _ + M;
2278
- c = u.push("list_item_open", "li", 1), c.markup = String.fromCharCode(h);
2282
+ c = u.push("list_item_open", "li", 1), c.markup = String.fromCharCode(p);
2279
2283
  const nu = [a, 0];
2280
- c.map = nu, d && (c.info = u.src.slice(i, p - 1));
2284
+ c.map = nu, f && (c.info = u.src.slice(i, h - 1));
2281
2285
  const gu = u.tight, L = u.tShift[a], Hu = u.sCount[a], $u = u.listIndent;
2282
- if (u.listIndent = u.blkIndent, u.blkIndent = Y, u.tight = !0, u.tShift[a] = y - u.bMarks[a], u.sCount[a] = A, y >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || T) && (s = !1), T = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = $u, u.tShift[a] = L, u.sCount[a] = Hu, u.tight = gu, c = u.push("list_item_close", "li", -1), c.markup = String.fromCharCode(h), a = u.line, nu[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
2286
+ if (u.listIndent = u.blkIndent, u.blkIndent = Y, u.tight = !0, u.tShift[a] = y - u.bMarks[a], u.sCount[a] = A, y >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || T) && (s = !1), T = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = $u, u.tShift[a] = L, u.sCount[a] = Hu, u.tight = gu, c = u.push("list_item_close", "li", -1), c.markup = String.fromCharCode(p), a = u.line, nu[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
2283
2287
  break;
2284
2288
  let Fu = !1;
2285
- for (let hu = 0, Ie = E.length; hu < Ie; hu++)
2286
- if (E[hu](u, a, t, !0)) {
2289
+ for (let pu = 0, Ie = E.length; pu < Ie; pu++)
2290
+ if (E[pu](u, a, t, !0)) {
2287
2291
  Fu = !0;
2288
2292
  break;
2289
2293
  }
2290
2294
  if (Fu)
2291
2295
  break;
2292
- if (d) {
2293
- if (p = _t(u, a), p < 0)
2296
+ if (f) {
2297
+ if (h = _t(u, a), h < 0)
2294
2298
  break;
2295
2299
  i = u.bMarks[a] + u.tShift[a];
2296
- } else if (p = mt(u, a), p < 0)
2300
+ } else if (h = mt(u, a), h < 0)
2297
2301
  break;
2298
- if (h !== u.src.charCodeAt(p - 1))
2302
+ if (p !== u.src.charCodeAt(h - 1))
2299
2303
  break;
2300
2304
  }
2301
- return d ? c = u.push("ordered_list_close", "ol", -1) : c = u.push("bullet_list_close", "ul", -1), c.markup = String.fromCharCode(h), D[1] = a, u.line = a, u.parentType = k, s && Wo(u, C), !0;
2305
+ return f ? c = u.push("ordered_list_close", "ol", -1) : c = u.push("bullet_list_close", "ul", -1), c.markup = String.fromCharCode(p), D[1] = a, u.line = a, u.parentType = k, s && Wo(u, C), !0;
2302
2306
  }
2303
2307
  function Vo(u, e, t, n) {
2304
2308
  let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], i = e + 1;
@@ -2351,14 +2355,14 @@ function Vo(u, e, t, n) {
2351
2355
  k !== null && (a += k, o = a.length, i++);
2352
2356
  } else if (!w(E)) break;
2353
2357
  }
2354
- const f = u.md.helpers.parseLinkDestination(a, r, o);
2355
- if (!f.ok)
2358
+ const d = u.md.helpers.parseLinkDestination(a, r, o);
2359
+ if (!d.ok)
2356
2360
  return !1;
2357
- const d = u.md.normalizeLink(f.str);
2358
- if (!u.md.validateLink(d))
2361
+ const f = u.md.normalizeLink(d.str);
2362
+ if (!u.md.validateLink(f))
2359
2363
  return !1;
2360
- r = f.pos;
2361
- const m = r, p = i, h = r;
2364
+ r = d.pos;
2365
+ const m = r, h = i, p = r;
2362
2366
  for (; r < o; r++) {
2363
2367
  const E = a.charCodeAt(r);
2364
2368
  if (E === 10) {
@@ -2373,14 +2377,14 @@ function Vo(u, e, t, n) {
2373
2377
  a += E, r = o, o = a.length, i++, C = u.md.helpers.parseLinkTitle(a, r, o, C);
2374
2378
  }
2375
2379
  let D;
2376
- for (r < o && h !== r && C.ok ? (D = C.str, r = C.pos) : (D = "", r = m, i = p); r < o; ) {
2380
+ for (r < o && p !== r && C.ok ? (D = C.str, r = C.pos) : (D = "", r = m, i = h); r < o; ) {
2377
2381
  const E = a.charCodeAt(r);
2378
2382
  if (!w(E))
2379
2383
  break;
2380
2384
  r++;
2381
2385
  }
2382
2386
  if (r < o && a.charCodeAt(r) !== 10 && D)
2383
- for (D = "", r = m, i = p; r < o; ) {
2387
+ for (D = "", r = m, i = h; r < o; ) {
2384
2388
  const E = a.charCodeAt(r);
2385
2389
  if (!w(E))
2386
2390
  break;
@@ -2389,7 +2393,7 @@ function Vo(u, e, t, n) {
2389
2393
  if (r < o && a.charCodeAt(r) !== 10)
2390
2394
  return !1;
2391
2395
  const T = we(a.slice(1, s));
2392
- return T ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[T] > "u" && (u.env.references[T] = { title: D, href: d }), u.line = i), !0) : !1;
2396
+ return T ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[T] > "u" && (u.env.references[T] = { title: D, href: f }), u.line = i), !0) : !1;
2393
2397
  }
2394
2398
  const Yo = [
2395
2399
  "address",
@@ -2505,10 +2509,10 @@ function sc(u, e, t, n) {
2505
2509
  a > r && w(u.src.charCodeAt(a - 1)) && (o = a), u.line = e + 1;
2506
2510
  const s = u.push("heading_open", "h" + String(c), 1);
2507
2511
  s.markup = "########".slice(0, c), s.map = [e, u.line];
2508
- const f = u.push("inline", "", 0);
2509
- f.content = u.src.slice(r, o).trim(), f.map = [e, u.line], f.children = [];
2510
- const d = u.push("heading_close", "h" + String(c), -1);
2511
- return d.markup = "########".slice(0, c), !0;
2512
+ const d = u.push("inline", "", 0);
2513
+ d.content = u.src.slice(r, o).trim(), d.map = [e, u.line], d.children = [];
2514
+ const f = u.push("heading_close", "h" + String(c), -1);
2515
+ return f.markup = "########".slice(0, c), !0;
2512
2516
  }
2513
2517
  function lc(u, e, t) {
2514
2518
  const n = u.md.block.ruler.getRules("paragraph");
@@ -2521,9 +2525,9 @@ function lc(u, e, t) {
2521
2525
  if (u.sCount[c] - u.blkIndent > 3)
2522
2526
  continue;
2523
2527
  if (u.sCount[c] >= u.blkIndent) {
2524
- let p = u.bMarks[c] + u.tShift[c];
2525
- const h = u.eMarks[c];
2526
- if (p < h && (i = u.src.charCodeAt(p), (i === 45 || i === 61) && (p = u.skipChars(p, i), p = u.skipSpaces(p), p >= h))) {
2528
+ let h = u.bMarks[c] + u.tShift[c];
2529
+ const p = u.eMarks[c];
2530
+ if (h < p && (i = u.src.charCodeAt(h), (i === 45 || i === 61) && (h = u.skipChars(h, i), h = u.skipSpaces(h), h >= p))) {
2527
2531
  o = i === 61 ? 1 : 2;
2528
2532
  break;
2529
2533
  }
@@ -2531,8 +2535,8 @@ function lc(u, e, t) {
2531
2535
  if (u.sCount[c] < 0)
2532
2536
  continue;
2533
2537
  let m = !1;
2534
- for (let p = 0, h = n.length; p < h; p++)
2535
- if (n[p](u, c, t, !0)) {
2538
+ for (let h = 0, p = n.length; h < p; h++)
2539
+ if (n[h](u, c, t, !0)) {
2536
2540
  m = !0;
2537
2541
  break;
2538
2542
  }
@@ -2545,10 +2549,10 @@ function lc(u, e, t) {
2545
2549
  u.line = c + 1;
2546
2550
  const s = u.push("heading_open", "h" + String(o), 1);
2547
2551
  s.markup = String.fromCharCode(i), s.map = [e, u.line];
2548
- const f = u.push("inline", "", 0);
2549
- f.content = a, f.map = [e, u.line - 1], f.children = [];
2550
- const d = u.push("heading_close", "h" + String(o), -1);
2551
- return d.markup = String.fromCharCode(i), u.parentType = r, !0;
2552
+ const d = u.push("inline", "", 0);
2553
+ d.content = a, d.map = [e, u.line - 1], d.children = [];
2554
+ const f = u.push("heading_close", "h" + String(o), -1);
2555
+ return f.markup = String.fromCharCode(i), u.parentType = r, !0;
2552
2556
  }
2553
2557
  function fc(u, e, t) {
2554
2558
  const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
@@ -2557,8 +2561,8 @@ function fc(u, e, t) {
2557
2561
  if (u.sCount[o] - u.blkIndent > 3 || u.sCount[o] < 0)
2558
2562
  continue;
2559
2563
  let s = !1;
2560
- for (let f = 0, d = n.length; f < d; f++)
2561
- if (n[f](u, o, t, !0)) {
2564
+ for (let d = 0, f = n.length; d < f; d++)
2565
+ if (n[d](u, o, t, !0)) {
2562
2566
  s = !0;
2563
2567
  break;
2564
2568
  }
@@ -2602,8 +2606,8 @@ ve.prototype.tokenize = function(u, e, t) {
2602
2606
  }
2603
2607
  const a = u.line;
2604
2608
  let s = !1;
2605
- for (let f = 0; f < r; f++)
2606
- if (s = n[f](u, i, t, !1), s) {
2609
+ for (let d = 0; d < r; d++)
2610
+ if (s = n[d](u, i, t, !1), s) {
2607
2611
  if (a >= u.line)
2608
2612
  throw new Error("block rule didn't increment state.line");
2609
2613
  break;
@@ -2637,8 +2641,8 @@ ae.prototype.scanDelims = function(u, e) {
2637
2641
  let o = u;
2638
2642
  for (; o < t && this.src.charCodeAt(o) === n; )
2639
2643
  o++;
2640
- const i = o - u, c = o < t ? this.src.charCodeAt(o) : 32, a = te(r) || ee(String.fromCharCode(r)), s = te(c) || ee(String.fromCharCode(c)), f = ue(r), d = ue(c), m = !d && (!s || f || a), p = !f && (!a || d || s);
2641
- return { can_open: m && (e || !p || a), can_close: p && (e || !m || s), length: i };
2644
+ const i = o - u, c = o < t ? this.src.charCodeAt(o) : 32, a = te(r) || ee(String.fromCharCode(r)), s = te(c) || ee(String.fromCharCode(c)), d = ue(r), f = ue(c), m = !f && (!s || d || a), h = !d && (!a || f || s);
2645
+ return { can_open: m && (e || !h || a), can_close: h && (e || !m || s), length: i };
2642
2646
  };
2643
2647
  ae.prototype.Token = tu;
2644
2648
  function dc(u) {
@@ -2671,18 +2675,18 @@ function dc(u) {
2671
2675
  return !1;
2672
2676
  }
2673
2677
  }
2674
- function hc(u, e) {
2678
+ function pc(u, e) {
2675
2679
  let t = u.pos;
2676
2680
  for (; t < u.posMax && !dc(u.src.charCodeAt(t)); )
2677
2681
  t++;
2678
2682
  return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
2679
2683
  }
2680
- const pc = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
2684
+ const hc = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
2681
2685
  function bc(u, e) {
2682
2686
  if (!u.md.options.linkify || u.linkLevel > 0) return !1;
2683
2687
  const t = u.pos, n = u.posMax;
2684
2688
  if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47) return !1;
2685
- const r = u.pending.match(pc);
2689
+ const r = u.pending.match(hc);
2686
2690
  if (!r) return !1;
2687
2691
  const o = r[1], i = u.md.linkify.matchAtStart(u.src.slice(t - o.length));
2688
2692
  if (!i) return !1;
@@ -2695,10 +2699,10 @@ function bc(u, e) {
2695
2699
  u.pending = u.pending.slice(0, -o.length);
2696
2700
  const s = u.push("link_open", "a", 1);
2697
2701
  s.attrs = [["href", a]], s.markup = "linkify", s.info = "auto";
2698
- const f = u.push("text", "", 0);
2699
- f.content = u.md.normalizeLinkText(c);
2700
- const d = u.push("link_close", "a", -1);
2701
- d.markup = "linkify", d.info = "auto";
2702
+ const d = u.push("text", "", 0);
2703
+ d.content = u.md.normalizeLinkText(c);
2704
+ const f = u.push("link_close", "a", -1);
2705
+ f.markup = "linkify", f.info = "auto";
2702
2706
  }
2703
2707
  return u.pos += c.length - o.length, !0;
2704
2708
  }
@@ -2765,15 +2769,15 @@ function xc(u, e) {
2765
2769
  for (; (s = u.src.indexOf("`", a)) !== -1; ) {
2766
2770
  for (a = s + 1; a < o && u.src.charCodeAt(a) === 96; )
2767
2771
  a++;
2768
- const f = a - s;
2769
- if (f === c) {
2772
+ const d = a - s;
2773
+ if (d === c) {
2770
2774
  if (!e) {
2771
- const d = u.push("code_inline", "code", 0);
2772
- d.markup = i, d.content = u.src.slice(t, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
2775
+ const f = u.push("code_inline", "code", 0);
2776
+ f.markup = i, f.content = u.src.slice(t, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
2773
2777
  }
2774
2778
  return u.pos = a, !0;
2775
2779
  }
2776
- u.backticks[f] = s;
2780
+ u.backticks[d] = s;
2777
2781
  }
2778
2782
  return u.backticksScanned = !0, e || (u.pending += i), u.pos += c, !0;
2779
2783
  }
@@ -2886,52 +2890,52 @@ function Cc(u, e) {
2886
2890
  let t, n, r, o, i = "", c = "", a = u.pos, s = !0;
2887
2891
  if (u.src.charCodeAt(u.pos) !== 91)
2888
2892
  return !1;
2889
- const f = u.pos, d = u.posMax, m = u.pos + 1, p = u.md.helpers.parseLinkLabel(u, u.pos, !0);
2890
- if (p < 0)
2893
+ const d = u.pos, f = u.posMax, m = u.pos + 1, h = u.md.helpers.parseLinkLabel(u, u.pos, !0);
2894
+ if (h < 0)
2891
2895
  return !1;
2892
- let h = p + 1;
2893
- if (h < d && u.src.charCodeAt(h) === 40) {
2894
- for (s = !1, h++; h < d && (t = u.src.charCodeAt(h), !(!w(t) && t !== 10)); h++)
2896
+ let p = h + 1;
2897
+ if (p < f && u.src.charCodeAt(p) === 40) {
2898
+ for (s = !1, p++; p < f && (t = u.src.charCodeAt(p), !(!w(t) && t !== 10)); p++)
2895
2899
  ;
2896
- if (h >= d)
2900
+ if (p >= f)
2897
2901
  return !1;
2898
- if (a = h, r = u.md.helpers.parseLinkDestination(u.src, h, u.posMax), r.ok) {
2899
- for (i = u.md.normalizeLink(r.str), u.md.validateLink(i) ? h = r.pos : i = "", a = h; h < d && (t = u.src.charCodeAt(h), !(!w(t) && t !== 10)); h++)
2902
+ if (a = p, r = u.md.helpers.parseLinkDestination(u.src, p, u.posMax), r.ok) {
2903
+ for (i = u.md.normalizeLink(r.str), u.md.validateLink(i) ? p = r.pos : i = "", a = p; p < f && (t = u.src.charCodeAt(p), !(!w(t) && t !== 10)); p++)
2900
2904
  ;
2901
- if (r = u.md.helpers.parseLinkTitle(u.src, h, u.posMax), h < d && a !== h && r.ok)
2902
- for (c = r.str, h = r.pos; h < d && (t = u.src.charCodeAt(h), !(!w(t) && t !== 10)); h++)
2905
+ if (r = u.md.helpers.parseLinkTitle(u.src, p, u.posMax), p < f && a !== p && r.ok)
2906
+ for (c = r.str, p = r.pos; p < f && (t = u.src.charCodeAt(p), !(!w(t) && t !== 10)); p++)
2903
2907
  ;
2904
2908
  }
2905
- (h >= d || u.src.charCodeAt(h) !== 41) && (s = !0), h++;
2909
+ (p >= f || u.src.charCodeAt(p) !== 41) && (s = !0), p++;
2906
2910
  }
2907
2911
  if (s) {
2908
2912
  if (typeof u.env.references > "u")
2909
2913
  return !1;
2910
- if (h < d && u.src.charCodeAt(h) === 91 ? (a = h + 1, h = u.md.helpers.parseLinkLabel(u, h), h >= 0 ? n = u.src.slice(a, h++) : h = p + 1) : h = p + 1, n || (n = u.src.slice(m, p)), o = u.env.references[we(n)], !o)
2911
- return u.pos = f, !1;
2914
+ if (p < f && u.src.charCodeAt(p) === 91 ? (a = p + 1, p = u.md.helpers.parseLinkLabel(u, p), p >= 0 ? n = u.src.slice(a, p++) : p = h + 1) : p = h + 1, n || (n = u.src.slice(m, h)), o = u.env.references[we(n)], !o)
2915
+ return u.pos = d, !1;
2912
2916
  i = o.href, c = o.title;
2913
2917
  }
2914
2918
  if (!e) {
2915
- u.pos = m, u.posMax = p;
2919
+ u.pos = m, u.posMax = h;
2916
2920
  const C = u.push("link_open", "a", 1), D = [["href", i]];
2917
2921
  C.attrs = D, c && D.push(["title", c]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
2918
2922
  }
2919
- return u.pos = h, u.posMax = d, !0;
2923
+ return u.pos = p, u.posMax = f, !0;
2920
2924
  }
2921
2925
  function Dc(u, e) {
2922
- let t, n, r, o, i, c, a, s, f = "";
2923
- const d = u.pos, m = u.posMax;
2926
+ let t, n, r, o, i, c, a, s, d = "";
2927
+ const f = u.pos, m = u.posMax;
2924
2928
  if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
2925
2929
  return !1;
2926
- const p = u.pos + 2, h = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
2927
- if (h < 0)
2930
+ const h = u.pos + 2, p = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
2931
+ if (p < 0)
2928
2932
  return !1;
2929
- if (o = h + 1, o < m && u.src.charCodeAt(o) === 40) {
2933
+ if (o = p + 1, o < m && u.src.charCodeAt(o) === 40) {
2930
2934
  for (o++; o < m && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
2931
2935
  ;
2932
2936
  if (o >= m)
2933
2937
  return !1;
2934
- for (s = o, c = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), c.ok && (f = u.md.normalizeLink(c.str), u.md.validateLink(f) ? o = c.pos : f = ""), s = o; o < m && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
2938
+ for (s = o, c = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), c.ok && (d = u.md.normalizeLink(c.str), u.md.validateLink(d) ? o = c.pos : d = ""), s = o; o < m && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
2935
2939
  ;
2936
2940
  if (c = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o < m && s !== o && c.ok)
2937
2941
  for (a = c.str, o = c.pos; o < m && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
@@ -2939,17 +2943,17 @@ function Dc(u, e) {
2939
2943
  else
2940
2944
  a = "";
2941
2945
  if (o >= m || u.src.charCodeAt(o) !== 41)
2942
- return u.pos = d, !1;
2946
+ return u.pos = f, !1;
2943
2947
  o++;
2944
2948
  } else {
2945
2949
  if (typeof u.env.references > "u")
2946
2950
  return !1;
2947
- if (o < m && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = h + 1) : o = h + 1, r || (r = u.src.slice(p, h)), i = u.env.references[we(r)], !i)
2948
- return u.pos = d, !1;
2949
- f = i.href, a = i.title;
2951
+ if (o < m && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = p + 1) : o = p + 1, r || (r = u.src.slice(h, p)), i = u.env.references[we(r)], !i)
2952
+ return u.pos = f, !1;
2953
+ d = i.href, a = i.title;
2950
2954
  }
2951
2955
  if (!e) {
2952
- n = u.src.slice(p, h);
2956
+ n = u.src.slice(h, p);
2953
2957
  const C = [];
2954
2958
  u.md.inline.parse(
2955
2959
  n,
@@ -2957,7 +2961,7 @@ function Dc(u, e) {
2957
2961
  u.env,
2958
2962
  C
2959
2963
  );
2960
- const D = u.push("image", "img", 0), T = [["src", f], ["alt", ""]];
2964
+ const D = u.push("image", "img", 0), T = [["src", d], ["alt", ""]];
2961
2965
  D.attrs = T, D.children = C, D.content = n, a && T.push(["title", a]);
2962
2966
  }
2963
2967
  return u.pos = o, u.posMax = m, !0;
@@ -3049,7 +3053,7 @@ function Lc(u, e) {
3049
3053
  } else {
3050
3054
  const o = u.src.slice(t).match(Mc);
3051
3055
  if (o) {
3052
- const i = Bt(o[0]);
3056
+ const i = Pt(o[0]);
3053
3057
  if (i !== o[0]) {
3054
3058
  if (!e) {
3055
3059
  const c = u.push("text_special", "", 0);
@@ -3071,19 +3075,19 @@ function kt(u) {
3071
3075
  if (o.push(0), (u[n].marker !== c.marker || r !== c.token - 1) && (n = i), r = c.token, c.length = c.length || 0, !c.close) continue;
3072
3076
  e.hasOwnProperty(c.marker) || (e[c.marker] = [-1, -1, -1, -1, -1, -1]);
3073
3077
  const a = e[c.marker][(c.open ? 3 : 0) + c.length % 3];
3074
- let s = n - o[n] - 1, f = s;
3078
+ let s = n - o[n] - 1, d = s;
3075
3079
  for (; s > a; s -= o[s] + 1) {
3076
- const d = u[s];
3077
- if (d.marker === c.marker && d.open && d.end < 0) {
3080
+ const f = u[s];
3081
+ if (f.marker === c.marker && f.open && f.end < 0) {
3078
3082
  let m = !1;
3079
- if ((d.close || c.open) && (d.length + c.length) % 3 === 0 && (d.length % 3 !== 0 || c.length % 3 !== 0) && (m = !0), !m) {
3080
- const p = s > 0 && !u[s - 1].open ? o[s - 1] + 1 : 0;
3081
- o[i] = i - s + p, o[s] = p, c.open = !1, d.end = i, d.close = !1, f = -1, r = -2;
3083
+ if ((f.close || c.open) && (f.length + c.length) % 3 === 0 && (f.length % 3 !== 0 || c.length % 3 !== 0) && (m = !0), !m) {
3084
+ const h = s > 0 && !u[s - 1].open ? o[s - 1] + 1 : 0;
3085
+ o[i] = i - s + h, o[s] = h, c.open = !1, f.end = i, f.close = !1, d = -1, r = -2;
3082
3086
  break;
3083
3087
  }
3084
3088
  }
3085
3089
  }
3086
- f !== -1 && (e[c.marker][(c.open ? 3 : 0) + (c.length || 0) % 3] = f);
3090
+ d !== -1 && (e[c.marker][(c.open ? 3 : 0) + (c.length || 0) % 3] = d);
3087
3091
  }
3088
3092
  }
3089
3093
  function Oc(u) {
@@ -3100,7 +3104,7 @@ function Nc(u) {
3100
3104
  e !== t && (r.length = t);
3101
3105
  }
3102
3106
  const Ke = [
3103
- ["text", hc],
3107
+ ["text", pc],
3104
3108
  ["linkify", bc],
3105
3109
  ["newline", mc],
3106
3110
  ["escape", _c],
@@ -3176,7 +3180,7 @@ se.prototype.parse = function(u, e, t, n) {
3176
3180
  o[c](r);
3177
3181
  };
3178
3182
  se.prototype.State = ae;
3179
- function Bc(u) {
3183
+ function Pc(u) {
3180
3184
  const e = {};
3181
3185
  u = u || {}, e.src_Any = It.source, e.src_Cc = Mt.source, e.src_Z = Ot.source, e.src_P = b0.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
3182
3186
  const t = "[><|]";
@@ -3198,7 +3202,7 @@ function i0(u) {
3198
3202
  function Re(u) {
3199
3203
  return Object.prototype.toString.call(u);
3200
3204
  }
3201
- function Pc(u) {
3205
+ function Bc(u) {
3202
3206
  return Re(u) === "[object String]";
3203
3207
  }
3204
3208
  function zc(u) {
@@ -3271,7 +3275,7 @@ function At() {
3271
3275
  };
3272
3276
  }
3273
3277
  function Te(u) {
3274
- const e = u.re = Bc(u.__opts__), t = u.__tlds__.slice();
3278
+ const e = u.re = Pc(u.__opts__), t = u.__tlds__.slice();
3275
3279
  u.onCompile(), u.__tlds_replaced__ || t.push(jc), t.push(e.src_xn), e.src_tlds = t.join("|");
3276
3280
  function n(c) {
3277
3281
  return c.replace("%TLDS%", e.src_tlds);
@@ -3291,7 +3295,7 @@ function Te(u) {
3291
3295
  qc(a.validate) ? s.validate = Zc(a.validate) : Et(a.validate) ? s.validate = a.validate : o(c, a), Et(a.normalize) ? s.normalize = a.normalize : a.normalize ? o(c, a) : s.normalize = At();
3292
3296
  return;
3293
3297
  }
3294
- if (Pc(a)) {
3298
+ if (Bc(a)) {
3295
3299
  r.push(c);
3296
3300
  return;
3297
3301
  }
@@ -3329,7 +3333,7 @@ J.prototype.set = function(e) {
3329
3333
  J.prototype.test = function(e) {
3330
3334
  if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
3331
3335
  return !1;
3332
- let t, n, r, o, i, c, a, s, f;
3336
+ let t, n, r, o, i, c, a, s, d;
3333
3337
  if (this.re.schema_test.test(e)) {
3334
3338
  for (a = this.re.schema_search, a.lastIndex = 0; (t = a.exec(e)) !== null; )
3335
3339
  if (o = this.testSchemaAt(e, t[2], a.lastIndex), o) {
@@ -3337,7 +3341,7 @@ J.prototype.test = function(e) {
3337
3341
  break;
3338
3342
  }
3339
3343
  }
3340
- return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (i = n.index + n[1].length, (this.__index__ < 0 || i < this.__index__) && (this.__schema__ = "", this.__index__ = i, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (f = e.indexOf("@"), f >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (i = r.index + r[1].length, c = r.index + r[0].length, (this.__index__ < 0 || i < this.__index__ || i === this.__index__ && c > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = i, this.__last_index__ = c))), this.__index__ >= 0;
3344
+ return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (i = n.index + n[1].length, (this.__index__ < 0 || i < this.__index__) && (this.__schema__ = "", this.__index__ = i, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (d = e.indexOf("@"), d >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (i = r.index + r[1].length, c = r.index + r[0].length, (this.__index__ < 0 || i < this.__index__ || i === this.__index__ && c > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = i, this.__last_index__ = c))), this.__index__ >= 0;
3341
3345
  };
3342
3346
  J.prototype.pretest = function(e) {
3343
3347
  return this.re.pretest.test(e);
@@ -3371,12 +3375,12 @@ J.prototype.normalize = function(e) {
3371
3375
  };
3372
3376
  J.prototype.onCompile = function() {
3373
3377
  };
3374
- const Pu = 2147483647, ou = 36, k0 = 1, ne = 26, Yc = 38, Xc = 700, Zt = 72, Vt = 128, Yt = "-", Jc = /^xn--/, Qc = /[^\0-\x7F]/, Kc = /[\x2E\u3002\uFF0E\uFF61]/g, ui = {
3378
+ const Bu = 2147483647, ou = 36, k0 = 1, ne = 26, Yc = 38, Xc = 700, Zt = 72, Vt = 128, Yt = "-", Jc = /^xn--/, Qc = /[^\0-\x7F]/, Kc = /[\x2E\u3002\uFF0E\uFF61]/g, ui = {
3375
3379
  overflow: "Overflow: input needs wider integers to process",
3376
3380
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
3377
3381
  "invalid-input": "Invalid input"
3378
3382
  }, e0 = ou - k0, cu = Math.floor, t0 = String.fromCharCode;
3379
- function pu(u) {
3383
+ function hu(u) {
3380
3384
  throw new RangeError(ui[u]);
3381
3385
  }
3382
3386
  function ei(u, e) {
@@ -3421,21 +3425,21 @@ const ti = (u) => String.fromCodePoint(...u), ni = function(u) {
3421
3425
  let n = 0, r = Vt, o = Zt, i = u.lastIndexOf(Yt);
3422
3426
  i < 0 && (i = 0);
3423
3427
  for (let c = 0; c < i; ++c)
3424
- u.charCodeAt(c) >= 128 && pu("not-basic"), e.push(u.charCodeAt(c));
3428
+ u.charCodeAt(c) >= 128 && hu("not-basic"), e.push(u.charCodeAt(c));
3425
3429
  for (let c = i > 0 ? i + 1 : 0; c < t; ) {
3426
3430
  const a = n;
3427
- for (let f = 1, d = ou; ; d += ou) {
3428
- c >= t && pu("invalid-input");
3431
+ for (let d = 1, f = ou; ; f += ou) {
3432
+ c >= t && hu("invalid-input");
3429
3433
  const m = ni(u.charCodeAt(c++));
3430
- m >= ou && pu("invalid-input"), m > cu((Pu - n) / f) && pu("overflow"), n += m * f;
3431
- const p = d <= o ? k0 : d >= o + ne ? ne : d - o;
3432
- if (m < p)
3434
+ m >= ou && hu("invalid-input"), m > cu((Bu - n) / d) && hu("overflow"), n += m * d;
3435
+ const h = f <= o ? k0 : f >= o + ne ? ne : f - o;
3436
+ if (m < h)
3433
3437
  break;
3434
- const h = ou - p;
3435
- f > cu(Pu / h) && pu("overflow"), f *= h;
3438
+ const p = ou - h;
3439
+ d > cu(Bu / p) && hu("overflow"), d *= p;
3436
3440
  }
3437
3441
  const s = e.length + 1;
3438
- o = Qt(n - a, s, a == 0), cu(n / s) > Pu - r && pu("overflow"), r += cu(n / s), n %= s, e.splice(n++, 0, r);
3442
+ o = Qt(n - a, s, a == 0), cu(n / s) > Bu - r && hu("overflow"), r += cu(n / s), n %= s, e.splice(n++, 0, r);
3439
3443
  }
3440
3444
  return String.fromCodePoint(...e);
3441
3445
  }, un = function(u) {
@@ -3448,24 +3452,24 @@ const ti = (u) => String.fromCodePoint(...u), ni = function(u) {
3448
3452
  const i = e.length;
3449
3453
  let c = i;
3450
3454
  for (i && e.push(Yt); c < t; ) {
3451
- let a = Pu;
3452
- for (const f of u)
3453
- f >= n && f < a && (a = f);
3455
+ let a = Bu;
3456
+ for (const d of u)
3457
+ d >= n && d < a && (a = d);
3454
3458
  const s = c + 1;
3455
- a - n > cu((Pu - r) / s) && pu("overflow"), r += (a - n) * s, n = a;
3456
- for (const f of u)
3457
- if (f < n && ++r > Pu && pu("overflow"), f === n) {
3458
- let d = r;
3459
+ a - n > cu((Bu - r) / s) && hu("overflow"), r += (a - n) * s, n = a;
3460
+ for (const d of u)
3461
+ if (d < n && ++r > Bu && hu("overflow"), d === n) {
3462
+ let f = r;
3459
3463
  for (let m = ou; ; m += ou) {
3460
- const p = m <= o ? k0 : m >= o + ne ? ne : m - o;
3461
- if (d < p)
3464
+ const h = m <= o ? k0 : m >= o + ne ? ne : m - o;
3465
+ if (f < h)
3462
3466
  break;
3463
- const h = d - p, C = ou - p;
3467
+ const p = f - h, C = ou - h;
3464
3468
  e.push(
3465
- t0(Ct(p + h % C, 0))
3466
- ), d = cu(h / C);
3469
+ t0(Ct(h + p % C, 0))
3470
+ ), f = cu(p / C);
3467
3471
  }
3468
- e.push(t0(Ct(d, 0))), o = Qt(r, s, c === i), r = 0, ++c;
3472
+ e.push(t0(Ct(f, 0))), o = Qt(r, s, c === i), r = 0, ++c;
3469
3473
  }
3470
3474
  ++r, ++n;
3471
3475
  }
@@ -3675,28 +3679,28 @@ function di(u) {
3675
3679
  return li.test(e) ? fi.test(e) : !0;
3676
3680
  }
3677
3681
  const tn = ["http:", "https:", "mailto:"];
3678
- function hi(u) {
3679
- const e = p0(u, !0);
3682
+ function pi(u) {
3683
+ const e = h0(u, !0);
3680
3684
  if (e.hostname && (!e.protocol || tn.indexOf(e.protocol) >= 0))
3681
3685
  try {
3682
3686
  e.hostname = en.toASCII(e.hostname);
3683
3687
  } catch {
3684
3688
  }
3685
- return ie(h0(e));
3689
+ return ie(p0(e));
3686
3690
  }
3687
- function pi(u) {
3688
- const e = p0(u, !0);
3691
+ function hi(u) {
3692
+ const e = h0(u, !0);
3689
3693
  if (e.hostname && (!e.protocol || tn.indexOf(e.protocol) >= 0))
3690
3694
  try {
3691
3695
  e.hostname = en.toUnicode(e.hostname);
3692
3696
  } catch {
3693
3697
  }
3694
- return zu(h0(e), zu.defaultChars + "%");
3698
+ return zu(p0(e), zu.defaultChars + "%");
3695
3699
  }
3696
3700
  function K(u, e) {
3697
3701
  if (!(this instanceof K))
3698
3702
  return new K(u, e);
3699
- e || m0(u) || (e = u || {}, u = "default"), this.inline = new se(), this.block = new ve(), this.core = new x0(), this.renderer = new Uu(), this.linkify = new J(), this.validateLink = di, this.normalizeLink = hi, this.normalizeLinkText = pi, this.utils = mo, this.helpers = Se({}, ko), this.options = {}, this.configure(u), e && this.set(e);
3703
+ e || m0(u) || (e = u || {}, u = "default"), this.inline = new se(), this.block = new ve(), this.core = new x0(), this.renderer = new Uu(), this.linkify = new J(), this.validateLink = di, this.normalizeLink = pi, this.normalizeLinkText = hi, this.utils = mo, this.helpers = Se({}, ko), this.options = {}, this.configure(u), e && this.set(e);
3700
3704
  }
3701
3705
  K.prototype.set = function(u) {
3702
3706
  return Se(this.options, u), this;
@@ -3818,17 +3822,17 @@ const bi = {
3818
3822
  },
3819
3823
  setup(u) {
3820
3824
  const e = u, t = kn(), n = X(() => {
3821
- const d = e.contentRenderer;
3822
- return d ? typeof d == "function" ? { isComponent: !1, vNodeOrComponent: d(e) } : d instanceof f0 ? { isComponent: !1, vNodeOrComponent: d.render(e) } : { isComponent: !0, vNodeOrComponent: d } : null;
3825
+ const f = e.contentRenderer;
3826
+ return f ? typeof f == "function" ? { isComponent: !1, vNodeOrComponent: f(e) } : f instanceof f0 ? { isComponent: !1, vNodeOrComponent: f.render(e) } : typeof f == "object" && "component" in f ? { isComponent: !0, vNodeOrComponent: f.component, defaultProps: f.defaultProps } : { isComponent: !0, vNodeOrComponent: f } : null;
3823
3827
  }), r = En(), o = X(() => {
3824
3828
  if (!e.customContentField)
3825
3829
  return null;
3826
- const d = r[e.customContentField];
3827
- return typeof d == "string" || Array.isArray(d) && d.length > 0 ? d : null;
3828
- }), i = X(() => o.value || e.content), c = X(() => Array.isArray(i.value) ? "" : i.value), a = X(() => Array.isArray(i.value) ? i.value : []), s = X(() => e.placement === "start"), f = X(() => e.maxWidth ? {
3830
+ const f = r[e.customContentField];
3831
+ return typeof f == "string" || Array.isArray(f) && f.length > 0 ? f : null;
3832
+ }), i = X(() => o.value || e.content), c = X(() => Array.isArray(i.value) ? "" : i.value), a = X(() => Array.isArray(i.value) ? i.value : []), s = X(() => e.placement === "start"), d = X(() => e.maxWidth ? {
3829
3833
  "--max-width": Tn(e.maxWidth)
3830
3834
  } : {});
3831
- return (d, m) => (S(), H("div", {
3835
+ return (f, m) => (S(), H("div", {
3832
3836
  class: Au([
3833
3837
  "tr-bubble",
3834
3838
  {
@@ -3836,12 +3840,12 @@ const bi = {
3836
3840
  "placement-end": !s.value
3837
3841
  }
3838
3842
  ]),
3839
- style: An(f.value)
3843
+ style: An(d.value)
3840
3844
  }, [
3841
3845
  e.avatar ? (S(), H("div", bi, [
3842
3846
  (S(), eu(_u(e.avatar)))
3843
- ])) : Bu("", !0),
3844
- e.loading ? Qu(d.$slots, "loading", {
3847
+ ])) : Pu("", !0),
3848
+ e.loading ? Qu(f.$slots, "loading", {
3845
3849
  key: 1,
3846
3850
  bubbleProps: e
3847
3851
  }, () => [
@@ -3859,28 +3863,28 @@ const bi = {
3859
3863
  class: Au(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
3860
3864
  }, [
3861
3865
  a.value.length ? (S(), H("div", _i, [
3862
- (S(!0), H(De, null, Ee(a.value, (p, h) => (S(), eu(l0(cr), {
3863
- key: h,
3864
- item: p
3866
+ (S(!0), H(De, null, Ee(a.value, (h, p) => (S(), eu(l0(cr), {
3867
+ key: p,
3868
+ item: h
3865
3869
  }, null, 8, ["item"]))), 128))
3866
- ])) : Qu(d.$slots, "default", {
3870
+ ])) : Qu(f.$slots, "default", {
3867
3871
  key: 1,
3868
3872
  bubbleProps: e
3869
3873
  }, () => [
3870
3874
  n.value ? (S(), H(De, { key: 0 }, [
3871
- n.value.isComponent ? (S(), eu(_u(n.value.vNodeOrComponent), Ce(Ku({ key: 0 }, e)), null, 16)) : (S(), eu(_u(n.value.vNodeOrComponent), { key: 1 }))
3875
+ n.value.isComponent ? (S(), eu(_u(n.value.vNodeOrComponent), Ce(Ku({ key: 0 }, { ...n.value.defaultProps, ...e })), null, 16)) : (S(), eu(_u(n.value.vNodeOrComponent), { key: 1 }))
3872
3876
  ], 64)) : (S(), H("span", xi, Cu(c.value), 1))
3873
3877
  ], !0),
3874
- e.aborted ? (S(), H("span", gi, Cu(e.abortedText), 1)) : Bu("", !0),
3878
+ e.aborted ? (S(), H("span", gi, Cu(e.abortedText), 1)) : Pu("", !0),
3875
3879
  t.footer ? (S(), H("div", ki, [
3876
- Qu(d.$slots, "footer", { bubbleProps: e }, void 0, !0)
3877
- ])) : Bu("", !0)
3880
+ Qu(f.$slots, "footer", { bubbleProps: e }, void 0, !0)
3881
+ ])) : Pu("", !0)
3878
3882
  ], 2),
3879
- Qu(d.$slots, "trailer", { bubbleProps: e }, void 0, !0)
3883
+ Qu(f.$slots, "trailer", { bubbleProps: e }, void 0, !0)
3880
3884
  ]))
3881
3885
  ], 6));
3882
3886
  }
3883
- }), Du = /* @__PURE__ */ ce(Ei, [["__scopeId", "data-v-cd2deda0"]]), Ai = /* @__PURE__ */ yu({
3887
+ }), Du = /* @__PURE__ */ ce(Ei, [["__scopeId", "data-v-43a84148"]]), Ai = /* @__PURE__ */ yu({
3884
3888
  __name: "BubbleList",
3885
3889
  props: {
3886
3890
  items: {},
@@ -3894,10 +3898,10 @@ const bi = {
3894
3898
  behavior: "smooth",
3895
3899
  throttle: 100
3896
3900
  }), r = X(() => e.items.at(-1)), o = X(() => {
3897
- var f, d;
3901
+ var d, f;
3898
3902
  if (!r.value)
3899
3903
  return 0;
3900
- const a = r.value.customContentField || ((d = (f = e.roles) == null ? void 0 : f[r.value.role || ""]) == null ? void 0 : d.customContentField);
3904
+ const a = r.value.customContentField || ((f = (d = e.roles) == null ? void 0 : d[r.value.role || ""]) == null ? void 0 : f.customContentField);
3901
3905
  if (!a)
3902
3906
  return 0;
3903
3907
  const s = r.value;
@@ -3926,17 +3930,17 @@ const bi = {
3926
3930
  );
3927
3931
  const i = X(() => e.items.map((a, s) => {
3928
3932
  var D;
3929
- const f = a.role ? ((D = e.roles) == null ? void 0 : D[a.role]) || {} : {}, { slots: d, hidden: m, ...p } = f, { slots: h, ...C } = a;
3933
+ const d = a.role ? ((D = e.roles) == null ? void 0 : D[a.role]) || {} : {}, { slots: f, hidden: m, ...h } = d, { slots: p, ...C } = a;
3930
3934
  return {
3931
3935
  id: a.id,
3932
3936
  index: s,
3933
3937
  hidden: !!m,
3934
- props: { ...p, ...C, "data-role": a.role },
3935
- slots: { ...d, ...h }
3938
+ props: { ...h, ...C, "data-role": a.role },
3939
+ slots: { ...f, ...p }
3936
3940
  };
3937
3941
  })), c = X(() => {
3938
- var f;
3939
- if (!(e.loading && e.loadingRole && ((f = e.roles) != null && f[e.loadingRole])))
3942
+ var d;
3943
+ if (!(e.loading && e.loadingRole && ((d = e.roles) != null && d[e.loadingRole])))
3940
3944
  return null;
3941
3945
  const { slots: a, ...s } = e.roles[e.loadingRole];
3942
3946
  return { props: { ...s, loading: !0 }, slots: a };
@@ -3946,29 +3950,29 @@ const bi = {
3946
3950
  ref_key: "scrollContainerRef",
3947
3951
  ref: t
3948
3952
  }, [
3949
- (S(!0), H(De, null, Ee(i.value, (f, d) => (S(), H(De, {
3950
- key: f.id || d
3953
+ (S(!0), H(De, null, Ee(i.value, (d, f) => (S(), H(De, {
3954
+ key: d.id || f
3951
3955
  }, [
3952
- f.hidden ? Bu("", !0) : (S(), eu(Du, Ku({
3956
+ d.hidden ? Pu("", !0) : (S(), eu(Du, Ku({
3953
3957
  key: 0,
3954
3958
  ref_for: !0
3955
- }, f.props), V0({ _: 2 }, [
3956
- Ee(f.slots, (m, p) => ({
3957
- name: p,
3958
- fn: Y0((h) => [
3959
- (S(), eu(_u(m), Ku({ ref_for: !0 }, { ...h, index: f.index }), null, 16))
3959
+ }, d.props), V0({ _: 2 }, [
3960
+ Ee(d.slots, (m, h) => ({
3961
+ name: h,
3962
+ fn: Y0((p) => [
3963
+ (S(), eu(_u(m), Ku({ ref_for: !0 }, { ...p, index: d.index }), null, 16))
3960
3964
  ])
3961
3965
  }))
3962
3966
  ]), 1040))
3963
3967
  ], 64))), 128)),
3964
3968
  c.value ? (S(), eu(Du, Ce(Ku({ key: 0 }, c.value.props)), V0({ _: 2 }, [
3965
- Ee(c.value.slots, (f, d) => ({
3966
- name: d,
3969
+ Ee(c.value.slots, (d, f) => ({
3970
+ name: f,
3967
3971
  fn: Y0((m) => [
3968
- (S(), eu(_u(f), Ce(yn(m)), null, 16))
3972
+ (S(), eu(_u(d), Ce(yn(m)), null, 16))
3969
3973
  ])
3970
3974
  }))
3971
- ]), 1040)) : Bu("", !0)
3975
+ ]), 1040)) : Pu("", !0)
3972
3976
  ], 512));
3973
3977
  }
3974
3978
  }), re = /* @__PURE__ */ ce(Ai, [["__scopeId", "data-v-4cbc6c09"]]), oe = /* @__PURE__ */ yu({