@happeouikit/content-renderer 3.5.6 → 3.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,13 +1,13 @@
1
- import { jsxs as ta, Fragment as aa, jsx as Te } from "react/jsx-runtime";
2
- import { CopyToClipboardButton as na } from "@happeouikit/copy-to-clipboard-button";
1
+ import { jsxs as aa, Fragment as na, jsx as Te } from "react/jsx-runtime";
2
+ import { CopyToClipboardButton as ia } from "@happeouikit/copy-to-clipboard-button";
3
3
  import * as it from "react";
4
- import { forwardRef as ia, useRef as ut, useState as ua, useCallback as st, useEffect as dt, useLayoutEffect as ot, useMemo as sa } from "react";
4
+ import { forwardRef as ua, useRef as ut, useState as sa, useCallback as st, useEffect as dt, useLayoutEffect as ot, useMemo as da } from "react";
5
5
  import { media as me } from "@happeouikit/layout";
6
- import { BodyUI as da, sansFamily as oa } from "@happeouikit/typography";
7
- import ca from "react-dom";
8
- import St, { css as Ae } from "styled-components";
9
- import { shortToUnicode as la, fixEmojioneBug as fa } from "@happeouikit/emojis";
10
- const pa = (e) => /* @__PURE__ */ it.createElement(
6
+ import { BodyUI as oa, sansFamily as ca } from "@happeouikit/typography";
7
+ import la from "react-dom";
8
+ import Lt, { css as Ae } from "styled-components";
9
+ import { shortToUnicode as fa, fixEmojioneBug as pa } from "@happeouikit/emojis";
10
+ const ha = (e) => /* @__PURE__ */ it.createElement(
11
11
  "svg",
12
12
  {
13
13
  viewBox: "0 0 24 24",
@@ -25,28 +25,28 @@ const pa = (e) => /* @__PURE__ */ it.createElement(
25
25
  }
26
26
  )
27
27
  );
28
- var je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
28
+ var Ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
29
29
  function Br(e) {
30
30
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
31
31
  }
32
- var Lt = { exports: {} };
32
+ var qt = { exports: {} };
33
33
  (function(e, n) {
34
34
  (function(i, t) {
35
35
  e.exports = t();
36
- })(je, function() {
36
+ })(Ie, function() {
37
37
  var i = function() {
38
38
  }, t = {}, s = {}, h = {};
39
39
  function g(k, q) {
40
40
  k = k.push ? k : [k];
41
- var L = [], P = k.length, z = P, j, H, x, r;
42
- for (j = function(u, a) {
43
- a.length && L.push(u), z--, z || q(L);
41
+ var L = [], P = k.length, N = P, I, H, x, r;
42
+ for (I = function(u, a) {
43
+ a.length && L.push(u), N--, N || q(L);
44
44
  }; P--; ) {
45
45
  if (H = k[P], x = s[H], x) {
46
- j(H, x);
46
+ I(H, x);
47
47
  continue;
48
48
  }
49
- r = h[H] = h[H] || [], r.push(j);
49
+ r = h[H] = h[H] || [], r.push(I);
50
50
  }
51
51
  }
52
52
  function m(k, q) {
@@ -57,69 +57,69 @@ var Lt = { exports: {} };
57
57
  L[0](k, q), L.splice(0, 1);
58
58
  }
59
59
  }
60
- function y(k, q) {
60
+ function _(k, q) {
61
61
  k.call && (k = { success: k }), q.length ? (k.error || i)(q) : (k.success || i)(k);
62
62
  }
63
63
  function D(k, q, L, P) {
64
- var z = document, j = L.async, H = (L.numRetries || 0) + 1, x = L.before || i, r = k.replace(/[\?|#].*$/, ""), u = k.replace(/^(css|img|module|nomodule)!/, ""), a, d, o;
64
+ var N = document, I = L.async, H = (L.numRetries || 0) + 1, x = L.before || i, r = k.replace(/[\?|#].*$/, ""), u = k.replace(/^(css|img|module|nomodule)!/, ""), a, d, c;
65
65
  if (P = P || 0, /(^css!|\.css$)/.test(r))
66
- o = z.createElement("link"), o.rel = "stylesheet", o.href = u, a = "hideFocus" in o, a && o.relList && (a = 0, o.rel = "preload", o.as = "style");
66
+ c = N.createElement("link"), c.rel = "stylesheet", c.href = u, a = "hideFocus" in c, a && c.relList && (a = 0, c.rel = "preload", c.as = "style");
67
67
  else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(r))
68
- o = z.createElement("img"), o.src = u;
69
- else if (o = z.createElement("script"), o.src = u, o.async = j === void 0 ? !0 : j, d = "noModule" in o, /^module!/.test(r)) {
68
+ c = N.createElement("img"), c.src = u;
69
+ else if (c = N.createElement("script"), c.src = u, c.async = I === void 0 ? !0 : I, d = "noModule" in c, /^module!/.test(r)) {
70
70
  if (!d)
71
71
  return q(k, "l");
72
- o.type = "module";
72
+ c.type = "module";
73
73
  } else if (/^nomodule!/.test(r) && d)
74
74
  return q(k, "l");
75
- o.onload = o.onerror = o.onbeforeload = function(f) {
75
+ c.onload = c.onerror = c.onbeforeload = function(f) {
76
76
  var l = f.type[0];
77
77
  if (a)
78
78
  try {
79
- o.sheet.cssText.length || (l = "e");
79
+ c.sheet.cssText.length || (l = "e");
80
80
  } catch (p) {
81
81
  p.code != 18 && (l = "e");
82
82
  }
83
83
  if (l == "e") {
84
84
  if (P += 1, P < H)
85
85
  return D(k, q, L, P);
86
- } else if (o.rel == "preload" && o.as == "style")
87
- return o.rel = "stylesheet";
86
+ } else if (c.rel == "preload" && c.as == "style")
87
+ return c.rel = "stylesheet";
88
88
  q(k, l, f.defaultPrevented);
89
- }, x(k, o) !== !1 && z.head.appendChild(o);
89
+ }, x(k, c) !== !1 && N.head.appendChild(c);
90
90
  }
91
91
  function S(k, q, L) {
92
92
  k = k.push ? k : [k];
93
- var P = k.length, z = P, j = [], H, x;
93
+ var P = k.length, N = P, I = [], H, x;
94
94
  for (H = function(r, u, a) {
95
- if (u == "e" && j.push(r), u == "b")
95
+ if (u == "e" && I.push(r), u == "b")
96
96
  if (a)
97
- j.push(r);
97
+ I.push(r);
98
98
  else
99
99
  return;
100
- P--, P || q(j);
101
- }, x = 0; x < z; x++)
100
+ P--, P || q(I);
101
+ }, x = 0; x < N; x++)
102
102
  D(k[x], H, L);
103
103
  }
104
104
  function E(k, q, L) {
105
- var P, z;
106
- if (q && q.trim && (P = q), z = (P ? L : q) || {}, P) {
105
+ var P, N;
106
+ if (q && q.trim && (P = q), N = (P ? L : q) || {}, P) {
107
107
  if (P in t)
108
108
  throw "LoadJS";
109
109
  t[P] = !0;
110
110
  }
111
- function j(H, x) {
111
+ function I(H, x) {
112
112
  S(k, function(r) {
113
- y(z, r), H && y({ success: H, error: x }, r), m(P, r);
114
- }, z);
113
+ _(N, r), H && _({ success: H, error: x }, r), m(P, r);
114
+ }, N);
115
115
  }
116
- if (z.returnPromise)
117
- return new Promise(j);
118
- j();
116
+ if (N.returnPromise)
117
+ return new Promise(I);
118
+ I();
119
119
  }
120
120
  return E.ready = function(q, L) {
121
121
  return g(q, function(P) {
122
- y(L, P);
122
+ _(L, P);
123
123
  }), E;
124
124
  }, E.done = function(q) {
125
125
  m(q, []);
@@ -129,9 +129,9 @@ var Lt = { exports: {} };
129
129
  return q in t;
130
130
  }, E;
131
131
  });
132
- })(Lt);
133
- var ha = Lt.exports;
134
- const kr = /* @__PURE__ */ Br(ha), ga = {
132
+ })(qt);
133
+ var ga = qt.exports;
134
+ const kr = /* @__PURE__ */ Br(ga), ma = {
135
135
  a: [
136
136
  "class",
137
137
  "target",
@@ -238,21 +238,46 @@ const kr = /* @__PURE__ */ Br(ha), ga = {
238
238
  "style",
239
239
  "class"
240
240
  ]
241
- }, ma = "a11y-light", ba = "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap", va = [
241
+ }, ba = "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap", va = [
242
242
  "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/highlight.min.js"
243
- ], wa = [
244
- "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/default.min.css",
245
- `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/${ma}.min.css`
246
- ], ct = "PRE", ya = "CODE", _a = [
247
- "javascript",
248
- "html",
243
+ ], ct = "PRE", wa = "CODE", lt = [
244
+ "bash",
245
+ "c",
246
+ "cpp",
247
+ "csharp",
249
248
  "css",
250
- "xml",
251
- "json",
249
+ "diff",
250
+ "go",
251
+ "graphql",
252
+ "ini",
252
253
  "java",
254
+ "javascript",
255
+ "json",
256
+ "kotlin",
257
+ "less",
258
+ "lua",
259
+ "makefile",
260
+ "markdown",
261
+ "objectivec",
262
+ "perl",
263
+ "php-template",
253
264
  "php",
254
- "typescript"
255
- ], ka = [
265
+ "plaintext",
266
+ "python-repl",
267
+ "python",
268
+ "r",
269
+ "ruby",
270
+ "rust",
271
+ "scss",
272
+ "shell",
273
+ "sql",
274
+ "swift",
275
+ "typescript",
276
+ "vbnet",
277
+ "wasm",
278
+ "xml",
279
+ "yaml"
280
+ ], ya = [
256
281
  "happeo.com",
257
282
  "youtube.com",
258
283
  "youtu.be",
@@ -270,48 +295,48 @@ const kr = /* @__PURE__ */ Br(ha), ga = {
270
295
  "facebook.com",
271
296
  "twitter.com",
272
297
  "instagram.com"
273
- ], Ea = [
298
+ ], _a = [
274
299
  // You could potentially create a google script that scrapes data with prompt injection. Lets warn about these.
275
300
  "script.google.com"
276
- ], Mi = /^x[a-f0-9]{7}$/, Ta = /^([\w-]*)\+(x[a-f0-9]{7})$/, Ui = () => `x${Ca().substring(0, 7)}`, Aa = (e) => {
277
- const n = e.match(Ta);
301
+ ], Oi = /^x[a-f0-9]{7}$/, ka = /^([\w-]*)\+(x[a-f0-9]{7})$/, Hi = () => `x${Ta().substring(0, 7)}`, Ea = (e) => {
302
+ const n = e.match(ka);
278
303
  return n ? n[2] : e;
279
304
  };
280
- function Ca() {
305
+ function Ta() {
281
306
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
282
307
  const n = Math.random() * 16 | 0;
283
308
  return (e === "x" ? n : n & 3 | 8).toString(16);
284
309
  });
285
310
  }
286
- const Sa = (e) => ` ${e}`.replace(
311
+ const Aa = (e) => ` ${e}`.replace(
287
312
  /[^a-zA-Z0-9]+(.)/g,
288
313
  (n, i) => i.toUpperCase()
289
- ), La = (e = "") => e.replace(/[^a-zA-Z0-9]/gi, ""), qa = (e) => {
314
+ ), Ca = (e = "") => e.replace(/[^a-zA-Z0-9]/gi, ""), Sa = (e) => {
290
315
  let n = (e == null ? void 0 : e.trim()) || "";
291
- return n = Sa(n), n = La(n), n = n.trim(), n || "empty";
292
- }, Da = (e) => `:~:text=${encodeURIComponent(e.textContent)}`, Pa = (e) => {
316
+ return n = Aa(n), n = Ca(n), n = n.trim(), n || "empty";
317
+ }, La = (e) => `:~:text=${encodeURIComponent(e.textContent)}`, qa = (e) => {
293
318
  const n = e.id, i = e.textContent;
294
- return n ? `${n}:~:headerText=${qa(i)}` : !n && (i != null && i.length) ? Da(e) : "";
319
+ return n ? `${n}:~:headerText=${Sa(i)}` : !n && (i != null && i.length) ? La(e) : "";
295
320
  };
296
321
  var Dr = { exports: {} }, M = {}, Pr = { exports: {} }, ce = {};
297
- function qt() {
322
+ function Dt() {
298
323
  var e = {};
299
324
  return e["align-content"] = !1, e["align-items"] = !1, e["align-self"] = !1, e["alignment-adjust"] = !1, e["alignment-baseline"] = !1, e.all = !1, e["anchor-point"] = !1, e.animation = !1, e["animation-delay"] = !1, e["animation-direction"] = !1, e["animation-duration"] = !1, e["animation-fill-mode"] = !1, e["animation-iteration-count"] = !1, e["animation-name"] = !1, e["animation-play-state"] = !1, e["animation-timing-function"] = !1, e.azimuth = !1, e["backface-visibility"] = !1, e.background = !0, e["background-attachment"] = !0, e["background-clip"] = !0, e["background-color"] = !0, e["background-image"] = !0, e["background-origin"] = !0, e["background-position"] = !0, e["background-repeat"] = !0, e["background-size"] = !0, e["baseline-shift"] = !1, e.binding = !1, e.bleed = !1, e["bookmark-label"] = !1, e["bookmark-level"] = !1, e["bookmark-state"] = !1, e.border = !0, e["border-bottom"] = !0, e["border-bottom-color"] = !0, e["border-bottom-left-radius"] = !0, e["border-bottom-right-radius"] = !0, e["border-bottom-style"] = !0, e["border-bottom-width"] = !0, e["border-collapse"] = !0, e["border-color"] = !0, e["border-image"] = !0, e["border-image-outset"] = !0, e["border-image-repeat"] = !0, e["border-image-slice"] = !0, e["border-image-source"] = !0, e["border-image-width"] = !0, e["border-left"] = !0, e["border-left-color"] = !0, e["border-left-style"] = !0, e["border-left-width"] = !0, e["border-radius"] = !0, e["border-right"] = !0, e["border-right-color"] = !0, e["border-right-style"] = !0, e["border-right-width"] = !0, e["border-spacing"] = !0, e["border-style"] = !0, e["border-top"] = !0, e["border-top-color"] = !0, e["border-top-left-radius"] = !0, e["border-top-right-radius"] = !0, e["border-top-style"] = !0, e["border-top-width"] = !0, e["border-width"] = !0, e.bottom = !1, e["box-decoration-break"] = !0, e["box-shadow"] = !0, e["box-sizing"] = !0, e["box-snap"] = !0, e["box-suppress"] = !0, e["break-after"] = !0, e["break-before"] = !0, e["break-inside"] = !0, e["caption-side"] = !1, e.chains = !1, e.clear = !0, e.clip = !1, e["clip-path"] = !1, e["clip-rule"] = !1, e.color = !0, e["color-interpolation-filters"] = !0, e["column-count"] = !1, e["column-fill"] = !1, e["column-gap"] = !1, e["column-rule"] = !1, e["column-rule-color"] = !1, e["column-rule-style"] = !1, e["column-rule-width"] = !1, e["column-span"] = !1, e["column-width"] = !1, e.columns = !1, e.contain = !1, e.content = !1, e["counter-increment"] = !1, e["counter-reset"] = !1, e["counter-set"] = !1, e.crop = !1, e.cue = !1, e["cue-after"] = !1, e["cue-before"] = !1, e.cursor = !1, e.direction = !1, e.display = !0, e["display-inside"] = !0, e["display-list"] = !0, e["display-outside"] = !0, e["dominant-baseline"] = !1, e.elevation = !1, e["empty-cells"] = !1, e.filter = !1, e.flex = !1, e["flex-basis"] = !1, e["flex-direction"] = !1, e["flex-flow"] = !1, e["flex-grow"] = !1, e["flex-shrink"] = !1, e["flex-wrap"] = !1, e.float = !1, e["float-offset"] = !1, e["flood-color"] = !1, e["flood-opacity"] = !1, e["flow-from"] = !1, e["flow-into"] = !1, e.font = !0, e["font-family"] = !0, e["font-feature-settings"] = !0, e["font-kerning"] = !0, e["font-language-override"] = !0, e["font-size"] = !0, e["font-size-adjust"] = !0, e["font-stretch"] = !0, e["font-style"] = !0, e["font-synthesis"] = !0, e["font-variant"] = !0, e["font-variant-alternates"] = !0, e["font-variant-caps"] = !0, e["font-variant-east-asian"] = !0, e["font-variant-ligatures"] = !0, e["font-variant-numeric"] = !0, e["font-variant-position"] = !0, e["font-weight"] = !0, e.grid = !1, e["grid-area"] = !1, e["grid-auto-columns"] = !1, e["grid-auto-flow"] = !1, e["grid-auto-rows"] = !1, e["grid-column"] = !1, e["grid-column-end"] = !1, e["grid-column-start"] = !1, e["grid-row"] = !1, e["grid-row-end"] = !1, e["grid-row-start"] = !1, e["grid-template"] = !1, e["grid-template-areas"] = !1, e["grid-template-columns"] = !1, e["grid-template-rows"] = !1, e["hanging-punctuation"] = !1, e.height = !0, e.hyphens = !1, e.icon = !1, e["image-orientation"] = !1, e["image-resolution"] = !1, e["ime-mode"] = !1, e["initial-letters"] = !1, e["inline-box-align"] = !1, e["justify-content"] = !1, e["justify-items"] = !1, e["justify-self"] = !1, e.left = !1, e["letter-spacing"] = !0, e["lighting-color"] = !0, e["line-box-contain"] = !1, e["line-break"] = !1, e["line-grid"] = !1, e["line-height"] = !1, e["line-snap"] = !1, e["line-stacking"] = !1, e["line-stacking-ruby"] = !1, e["line-stacking-shift"] = !1, e["line-stacking-strategy"] = !1, e["list-style"] = !0, e["list-style-image"] = !0, e["list-style-position"] = !0, e["list-style-type"] = !0, e.margin = !0, e["margin-bottom"] = !0, e["margin-left"] = !0, e["margin-right"] = !0, e["margin-top"] = !0, e["marker-offset"] = !1, e["marker-side"] = !1, e.marks = !1, e.mask = !1, e["mask-box"] = !1, e["mask-box-outset"] = !1, e["mask-box-repeat"] = !1, e["mask-box-slice"] = !1, e["mask-box-source"] = !1, e["mask-box-width"] = !1, e["mask-clip"] = !1, e["mask-image"] = !1, e["mask-origin"] = !1, e["mask-position"] = !1, e["mask-repeat"] = !1, e["mask-size"] = !1, e["mask-source-type"] = !1, e["mask-type"] = !1, e["max-height"] = !0, e["max-lines"] = !1, e["max-width"] = !0, e["min-height"] = !0, e["min-width"] = !0, e["move-to"] = !1, e["nav-down"] = !1, e["nav-index"] = !1, e["nav-left"] = !1, e["nav-right"] = !1, e["nav-up"] = !1, e["object-fit"] = !1, e["object-position"] = !1, e.opacity = !1, e.order = !1, e.orphans = !1, e.outline = !1, e["outline-color"] = !1, e["outline-offset"] = !1, e["outline-style"] = !1, e["outline-width"] = !1, e.overflow = !1, e["overflow-wrap"] = !1, e["overflow-x"] = !1, e["overflow-y"] = !1, e.padding = !0, e["padding-bottom"] = !0, e["padding-left"] = !0, e["padding-right"] = !0, e["padding-top"] = !0, e.page = !1, e["page-break-after"] = !1, e["page-break-before"] = !1, e["page-break-inside"] = !1, e["page-policy"] = !1, e.pause = !1, e["pause-after"] = !1, e["pause-before"] = !1, e.perspective = !1, e["perspective-origin"] = !1, e.pitch = !1, e["pitch-range"] = !1, e["play-during"] = !1, e.position = !1, e["presentation-level"] = !1, e.quotes = !1, e["region-fragment"] = !1, e.resize = !1, e.rest = !1, e["rest-after"] = !1, e["rest-before"] = !1, e.richness = !1, e.right = !1, e.rotation = !1, e["rotation-point"] = !1, e["ruby-align"] = !1, e["ruby-merge"] = !1, e["ruby-position"] = !1, e["shape-image-threshold"] = !1, e["shape-outside"] = !1, e["shape-margin"] = !1, e.size = !1, e.speak = !1, e["speak-as"] = !1, e["speak-header"] = !1, e["speak-numeral"] = !1, e["speak-punctuation"] = !1, e["speech-rate"] = !1, e.stress = !1, e["string-set"] = !1, e["tab-size"] = !1, e["table-layout"] = !1, e["text-align"] = !0, e["text-align-last"] = !0, e["text-combine-upright"] = !0, e["text-decoration"] = !0, e["text-decoration-color"] = !0, e["text-decoration-line"] = !0, e["text-decoration-skip"] = !0, e["text-decoration-style"] = !0, e["text-emphasis"] = !0, e["text-emphasis-color"] = !0, e["text-emphasis-position"] = !0, e["text-emphasis-style"] = !0, e["text-height"] = !0, e["text-indent"] = !0, e["text-justify"] = !0, e["text-orientation"] = !0, e["text-overflow"] = !0, e["text-shadow"] = !0, e["text-space-collapse"] = !0, e["text-transform"] = !0, e["text-underline-position"] = !0, e["text-wrap"] = !0, e.top = !1, e.transform = !1, e["transform-origin"] = !1, e["transform-style"] = !1, e.transition = !1, e["transition-delay"] = !1, e["transition-duration"] = !1, e["transition-property"] = !1, e["transition-timing-function"] = !1, e["unicode-bidi"] = !1, e["vertical-align"] = !1, e.visibility = !1, e["voice-balance"] = !1, e["voice-duration"] = !1, e["voice-family"] = !1, e["voice-pitch"] = !1, e["voice-range"] = !1, e["voice-rate"] = !1, e["voice-stress"] = !1, e["voice-volume"] = !1, e.volume = !1, e["white-space"] = !1, e.widows = !1, e.width = !0, e["will-change"] = !1, e["word-break"] = !0, e["word-spacing"] = !0, e["word-wrap"] = !0, e["wrap-flow"] = !1, e["wrap-through"] = !1, e["writing-mode"] = !1, e["z-index"] = !1, e;
300
325
  }
301
- function Ra(e, n, i) {
326
+ function Da(e, n, i) {
302
327
  }
303
- function Na(e, n, i) {
328
+ function Pa(e, n, i) {
304
329
  }
305
- var za = /javascript\s*\:/img;
306
- function Ia(e, n) {
307
- return za.test(n) ? "" : n;
330
+ var Ra = /javascript\s*\:/img;
331
+ function ja(e, n) {
332
+ return Ra.test(n) ? "" : n;
308
333
  }
309
- ce.whiteList = qt();
310
- ce.getDefaultWhiteList = qt;
311
- ce.onAttr = Ra;
312
- ce.onIgnoreAttr = Na;
313
- ce.safeAttrValue = Ia;
314
- var xa = {
334
+ ce.whiteList = Dt();
335
+ ce.getDefaultWhiteList = Dt;
336
+ ce.onAttr = Da;
337
+ ce.onIgnoreAttr = Pa;
338
+ ce.safeAttrValue = ja;
339
+ var Na = {
315
340
  indexOf: function(e, n) {
316
341
  var i, t;
317
342
  if (Array.prototype.indexOf)
@@ -334,8 +359,8 @@ var xa = {
334
359
  trimRight: function(e) {
335
360
  return String.prototype.trimRight ? e.trimRight() : e.replace(/(\s*$)/g, "");
336
361
  }
337
- }, be = xa;
338
- function ja(e, n) {
362
+ }, be = Na;
363
+ function za(e, n) {
339
364
  e = be.trimRight(e), e[e.length - 1] !== ";" && (e += ";");
340
365
  var i = e.length, t = !1, s = 0, h = 0, g = "";
341
366
  function m() {
@@ -352,61 +377,61 @@ function ja(e, n) {
352
377
  s = h + 1;
353
378
  }
354
379
  for (; h < i; h++) {
355
- var y = e[h];
356
- if (y === "/" && e[h + 1] === "*") {
380
+ var _ = e[h];
381
+ if (_ === "/" && e[h + 1] === "*") {
357
382
  var D = e.indexOf("*/", h + 2);
358
383
  if (D === -1)
359
384
  break;
360
385
  h = D + 1, s = h + 1, t = !1;
361
386
  } else
362
- y === "(" ? t = !0 : y === ")" ? t = !1 : y === ";" ? t || m() : y === `
387
+ _ === "(" ? t = !0 : _ === ")" ? t = !1 : _ === ";" ? t || m() : _ === `
363
388
  ` && m();
364
389
  }
365
390
  return be.trim(g);
366
391
  }
367
- var Oa = ja, Ce = ce, Ha = Oa;
368
- function lt(e) {
392
+ var xa = za, Ce = ce, Ia = xa;
393
+ function ft(e) {
369
394
  return e == null;
370
395
  }
371
- function Ma(e) {
396
+ function Oa(e) {
372
397
  var n = {};
373
398
  for (var i in e)
374
399
  n[i] = e[i];
375
400
  return n;
376
401
  }
377
- function Dt(e) {
378
- e = Ma(e || {}), e.whiteList = e.whiteList || Ce.whiteList, e.onAttr = e.onAttr || Ce.onAttr, e.onIgnoreAttr = e.onIgnoreAttr || Ce.onIgnoreAttr, e.safeAttrValue = e.safeAttrValue || Ce.safeAttrValue, this.options = e;
402
+ function Pt(e) {
403
+ e = Oa(e || {}), e.whiteList = e.whiteList || Ce.whiteList, e.onAttr = e.onAttr || Ce.onAttr, e.onIgnoreAttr = e.onIgnoreAttr || Ce.onIgnoreAttr, e.safeAttrValue = e.safeAttrValue || Ce.safeAttrValue, this.options = e;
379
404
  }
380
- Dt.prototype.process = function(e) {
405
+ Pt.prototype.process = function(e) {
381
406
  if (e = e || "", e = e.toString(), !e)
382
407
  return "";
383
- var n = this, i = n.options, t = i.whiteList, s = i.onAttr, h = i.onIgnoreAttr, g = i.safeAttrValue, m = Ha(e, function(y, D, S, E, k) {
408
+ var n = this, i = n.options, t = i.whiteList, s = i.onAttr, h = i.onIgnoreAttr, g = i.safeAttrValue, m = Ia(e, function(_, D, S, E, k) {
384
409
  var q = t[S], L = !1;
385
410
  if (q === !0 ? L = q : typeof q == "function" ? L = q(E) : q instanceof RegExp && (L = q.test(E)), L !== !0 && (L = !1), E = g(S, E), !!E) {
386
411
  var P = {
387
412
  position: D,
388
- sourcePosition: y,
413
+ sourcePosition: _,
389
414
  source: k,
390
415
  isWhite: L
391
416
  };
392
417
  if (L) {
393
- var z = s(S, E, P);
394
- return lt(z) ? S + ":" + E : z;
418
+ var N = s(S, E, P);
419
+ return ft(N) ? S + ":" + E : N;
395
420
  } else {
396
- var z = h(S, E, P);
397
- if (!lt(z))
398
- return z;
421
+ var N = h(S, E, P);
422
+ if (!ft(N))
423
+ return N;
399
424
  }
400
425
  }
401
426
  });
402
427
  return m;
403
428
  };
404
- var Ua = Dt;
429
+ var Ha = Pt;
405
430
  (function(e, n) {
406
- var i = ce, t = Ua;
431
+ var i = ce, t = Ha;
407
432
  function s(g, m) {
408
- var y = new t(m);
409
- return y.process(g);
433
+ var _ = new t(m);
434
+ return _.process(g);
410
435
  }
411
436
  n = e.exports = s, n.FilterCSS = t;
412
437
  for (var h in i)
@@ -437,8 +462,8 @@ var Vr = Pr.exports, $r = {
437
462
  var n = /\s|\n|\t/, i = n.exec(e);
438
463
  return i ? i.index : -1;
439
464
  }
440
- }, Ba = Vr.FilterCSS, Va = Vr.getDefaultWhiteList, Oe = $r;
441
- function Pt() {
465
+ }, Ma = Vr.FilterCSS, Ua = Vr.getDefaultWhiteList, Oe = $r;
466
+ function Rt() {
442
467
  return {
443
468
  a: ["target", "href", "title"],
444
469
  abbr: ["title"],
@@ -530,20 +555,20 @@ function Pt() {
530
555
  ]
531
556
  };
532
557
  }
533
- var Rt = new Ba();
534
- function $a(e, n, i) {
558
+ var jt = new Ma();
559
+ function Ba(e, n, i) {
535
560
  }
536
- function Fa(e, n, i) {
561
+ function Va(e, n, i) {
537
562
  }
538
- function Ga(e, n, i) {
563
+ function $a(e, n, i) {
539
564
  }
540
- function Wa(e, n, i) {
565
+ function Fa(e, n, i) {
541
566
  }
542
567
  function Nt(e) {
543
- return e.replace(Qa, "&lt;").replace(Za, "&gt;");
568
+ return e.replace(Wa, "&lt;").replace(Ka, "&gt;");
544
569
  }
545
- function Ka(e, n, i, t) {
546
- if (i = Ht(i), n === "href" || n === "src") {
570
+ function Ga(e, n, i, t) {
571
+ if (i = Mt(i), n === "href" || n === "src") {
547
572
  if (i = Oe.trim(i), i === "#")
548
573
  return "#";
549
574
  if (!(i.substr(0, 7) === "http://" || i.substr(0, 8) === "https://" || i.substr(0, 7) === "mailto:" || i.substr(0, 4) === "tel:" || i.substr(0, 11) === "data:image/" || i.substr(0, 6) === "ftp://" || i.substr(0, 2) === "./" || i.substr(0, 3) === "../" || i[0] === "#" || i[0] === "/"))
@@ -552,42 +577,42 @@ function Ka(e, n, i, t) {
552
577
  if (Se.lastIndex = 0, Se.test(i))
553
578
  return "";
554
579
  } else if (n === "style") {
555
- if (ft.lastIndex = 0, ft.test(i) || (pt.lastIndex = 0, pt.test(i) && (Se.lastIndex = 0, Se.test(i))))
580
+ if (pt.lastIndex = 0, pt.test(i) || (ht.lastIndex = 0, ht.test(i) && (Se.lastIndex = 0, Se.test(i))))
556
581
  return "";
557
- t !== !1 && (t = t || Rt, i = t.process(i));
582
+ t !== !1 && (t = t || jt, i = t.process(i));
558
583
  }
559
- return i = Mt(i), i;
584
+ return i = Ut(i), i;
560
585
  }
561
- var Qa = /</g, Za = />/g, Ya = /"/g, Xa = /&quot;/g, Ja = /&#([a-zA-Z0-9]*);?/gim, en = /&colon;?/gim, rn = /&newline;?/gim, Se = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, ft = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, pt = /u\s*r\s*l\s*\(.*/gi;
586
+ var Wa = /</g, Ka = />/g, Qa = /"/g, Za = /&quot;/g, Ya = /&#([a-zA-Z0-9]*);?/gim, Xa = /&colon;?/gim, Ja = /&newline;?/gim, Se = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, pt = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, ht = /u\s*r\s*l\s*\(.*/gi;
562
587
  function zt(e) {
563
- return e.replace(Ya, "&quot;");
564
- }
565
- function It(e) {
566
- return e.replace(Xa, '"');
588
+ return e.replace(Qa, "&quot;");
567
589
  }
568
590
  function xt(e) {
569
- return e.replace(Ja, function(i, t) {
591
+ return e.replace(Za, '"');
592
+ }
593
+ function It(e) {
594
+ return e.replace(Ya, function(i, t) {
570
595
  return t[0] === "x" || t[0] === "X" ? String.fromCharCode(parseInt(t.substr(1), 16)) : String.fromCharCode(parseInt(t, 10));
571
596
  });
572
597
  }
573
- function jt(e) {
574
- return e.replace(en, ":").replace(rn, " ");
575
- }
576
598
  function Ot(e) {
599
+ return e.replace(Xa, ":").replace(Ja, " ");
600
+ }
601
+ function Ht(e) {
577
602
  for (var n = "", i = 0, t = e.length; i < t; i++)
578
603
  n += e.charCodeAt(i) < 32 ? " " : e.charAt(i);
579
604
  return Oe.trim(n);
580
605
  }
581
- function Ht(e) {
582
- return e = It(e), e = xt(e), e = jt(e), e = Ot(e), e;
583
- }
584
606
  function Mt(e) {
607
+ return e = xt(e), e = It(e), e = Ot(e), e = Ht(e), e;
608
+ }
609
+ function Ut(e) {
585
610
  return e = zt(e), e = Nt(e), e;
586
611
  }
587
- function tn() {
612
+ function en() {
588
613
  return "";
589
614
  }
590
- function an(e, n) {
615
+ function rn(e, n) {
591
616
  typeof n != "function" && (n = function() {
592
617
  });
593
618
  var i = !Array.isArray(e);
@@ -596,28 +621,28 @@ function an(e, n) {
596
621
  }
597
622
  var s = [], h = !1;
598
623
  return {
599
- onIgnoreTag: function(g, m, y) {
624
+ onIgnoreTag: function(g, m, _) {
600
625
  if (t(g))
601
- if (y.isClosing) {
602
- var D = "[/removed]", S = y.position + D.length;
626
+ if (_.isClosing) {
627
+ var D = "[/removed]", S = _.position + D.length;
603
628
  return s.push([
604
- h !== !1 ? h : y.position,
629
+ h !== !1 ? h : _.position,
605
630
  S
606
631
  ]), h = !1, D;
607
632
  } else
608
- return h || (h = y.position), "[removed]";
633
+ return h || (h = _.position), "[removed]";
609
634
  else
610
- return n(g, m, y);
635
+ return n(g, m, _);
611
636
  },
612
637
  remove: function(g) {
613
- var m = "", y = 0;
638
+ var m = "", _ = 0;
614
639
  return Oe.forEach(s, function(D) {
615
- m += g.slice(y, D[0]), y = D[1];
616
- }), m += g.slice(y), m;
640
+ m += g.slice(_, D[0]), _ = D[1];
641
+ }), m += g.slice(_), m;
617
642
  }
618
643
  };
619
644
  }
620
- function nn(e) {
645
+ function tn(e) {
621
646
  for (var n = "", i = 0; i < e.length; ) {
622
647
  var t = e.indexOf("<!--", i);
623
648
  if (t === -1) {
@@ -632,47 +657,47 @@ function nn(e) {
632
657
  }
633
658
  return n;
634
659
  }
635
- function un(e) {
660
+ function an(e) {
636
661
  var n = e.split("");
637
662
  return n = n.filter(function(i) {
638
663
  var t = i.charCodeAt(0);
639
664
  return t === 127 ? !1 : t <= 31 ? t === 10 || t === 13 : !0;
640
665
  }), n.join("");
641
666
  }
642
- M.whiteList = Pt();
643
- M.getDefaultWhiteList = Pt;
644
- M.onTag = $a;
645
- M.onIgnoreTag = Fa;
646
- M.onTagAttr = Ga;
647
- M.onIgnoreTagAttr = Wa;
648
- M.safeAttrValue = Ka;
667
+ M.whiteList = Rt();
668
+ M.getDefaultWhiteList = Rt;
669
+ M.onTag = Ba;
670
+ M.onIgnoreTag = Va;
671
+ M.onTagAttr = $a;
672
+ M.onIgnoreTagAttr = Fa;
673
+ M.safeAttrValue = Ga;
649
674
  M.escapeHtml = Nt;
650
675
  M.escapeQuote = zt;
651
- M.unescapeQuote = It;
652
- M.escapeHtmlEntities = xt;
653
- M.escapeDangerHtml5Entities = jt;
654
- M.clearNonPrintableCharacter = Ot;
655
- M.friendlyAttrValue = Ht;
656
- M.escapeAttrValue = Mt;
657
- M.onIgnoreTagStripAll = tn;
658
- M.StripTagBody = an;
659
- M.stripCommentTag = nn;
660
- M.stripBlankChar = un;
676
+ M.unescapeQuote = xt;
677
+ M.escapeHtmlEntities = It;
678
+ M.escapeDangerHtml5Entities = Ot;
679
+ M.clearNonPrintableCharacter = Ht;
680
+ M.friendlyAttrValue = Mt;
681
+ M.escapeAttrValue = Ut;
682
+ M.onIgnoreTagStripAll = en;
683
+ M.StripTagBody = rn;
684
+ M.stripCommentTag = tn;
685
+ M.stripBlankChar = an;
661
686
  M.attributeWrapSign = '"';
662
- M.cssFilter = Rt;
663
- M.getDefaultCSSWhiteList = Va;
687
+ M.cssFilter = jt;
688
+ M.getDefaultCSSWhiteList = Ua;
664
689
  var gr = {}, ue = $r;
665
- function sn(e) {
690
+ function nn(e) {
666
691
  var n = ue.spaceIndex(e), i;
667
692
  return n === -1 ? i = e.slice(1, -1) : i = e.slice(1, n + 1), i = ue.trim(i).toLowerCase(), i.slice(0, 1) === "/" && (i = i.slice(1)), i.slice(-1) === "/" && (i = i.slice(0, -1)), i;
668
693
  }
669
- function dn(e) {
694
+ function un(e) {
670
695
  return e.slice(0, 2) === "</";
671
696
  }
672
- function on(e, n, i) {
673
- var t = "", s = 0, h = !1, g = !1, m = 0, y = e.length, D = "", S = "";
697
+ function sn(e, n, i) {
698
+ var t = "", s = 0, h = !1, g = !1, m = 0, _ = e.length, D = "", S = "";
674
699
  e:
675
- for (m = 0; m < y; m++) {
700
+ for (m = 0; m < _; m++) {
676
701
  var E = e.charAt(m);
677
702
  if (h === !1) {
678
703
  if (E === "<") {
@@ -684,13 +709,13 @@ function on(e, n, i) {
684
709
  t += i(e.slice(s, m)), h = m, s = m;
685
710
  continue;
686
711
  }
687
- if (E === ">" || m === y - 1) {
688
- t += i(e.slice(s, h)), S = e.slice(h, m + 1), D = sn(S), t += n(
712
+ if (E === ">" || m === _ - 1) {
713
+ t += i(e.slice(s, h)), S = e.slice(h, m + 1), D = nn(S), t += n(
689
714
  h,
690
715
  t.length,
691
716
  D,
692
717
  S,
693
- dn(S)
718
+ un(S)
694
719
  ), s = m + 1, h = !1;
695
720
  continue;
696
721
  }
@@ -707,100 +732,100 @@ function on(e, n, i) {
707
732
  continue;
708
733
  }
709
734
  }
710
- return s < y && (t += i(e.substr(s))), t;
735
+ return s < _ && (t += i(e.substr(s))), t;
711
736
  }
712
- var cn = /[^a-zA-Z0-9\\_:.-]/gim;
713
- function ln(e, n) {
737
+ var dn = /[^a-zA-Z0-9\\_:.-]/gim;
738
+ function on(e, n) {
714
739
  var i = 0, t = 0, s = [], h = !1, g = e.length;
715
740
  function m(k, q) {
716
- if (k = ue.trim(k), k = k.replace(cn, "").toLowerCase(), !(k.length < 1)) {
741
+ if (k = ue.trim(k), k = k.replace(dn, "").toLowerCase(), !(k.length < 1)) {
717
742
  var L = n(k, q || "");
718
743
  L && s.push(L);
719
744
  }
720
745
  }
721
- for (var y = 0; y < g; y++) {
722
- var D = e.charAt(y), S, E;
746
+ for (var _ = 0; _ < g; _++) {
747
+ var D = e.charAt(_), S, E;
723
748
  if (h === !1 && D === "=") {
724
- h = e.slice(i, y), i = y + 1, t = e.charAt(i) === '"' || e.charAt(i) === "'" ? i : pn(e, y + 1);
749
+ h = e.slice(i, _), i = _ + 1, t = e.charAt(i) === '"' || e.charAt(i) === "'" ? i : ln(e, _ + 1);
725
750
  continue;
726
751
  }
727
- if (h !== !1 && y === t) {
728
- if (E = e.indexOf(D, y + 1), E === -1)
752
+ if (h !== !1 && _ === t) {
753
+ if (E = e.indexOf(D, _ + 1), E === -1)
729
754
  break;
730
- S = ue.trim(e.slice(t + 1, E)), m(h, S), h = !1, y = E, i = y + 1;
755
+ S = ue.trim(e.slice(t + 1, E)), m(h, S), h = !1, _ = E, i = _ + 1;
731
756
  continue;
732
757
  }
733
758
  if (/\s|\n|\t/.test(D))
734
759
  if (e = e.replace(/\s|\n|\t/g, " "), h === !1)
735
- if (E = fn(e, y), E === -1) {
736
- S = ue.trim(e.slice(i, y)), m(S), h = !1, i = y + 1;
760
+ if (E = cn(e, _), E === -1) {
761
+ S = ue.trim(e.slice(i, _)), m(S), h = !1, i = _ + 1;
737
762
  continue;
738
763
  } else {
739
- y = E - 1;
764
+ _ = E - 1;
740
765
  continue;
741
766
  }
742
- else if (E = hn(e, y - 1), E === -1) {
743
- S = ue.trim(e.slice(i, y)), S = ht(S), m(h, S), h = !1, i = y + 1;
767
+ else if (E = fn(e, _ - 1), E === -1) {
768
+ S = ue.trim(e.slice(i, _)), S = gt(S), m(h, S), h = !1, i = _ + 1;
744
769
  continue;
745
770
  } else
746
771
  continue;
747
772
  }
748
- return i < e.length && (h === !1 ? m(e.slice(i)) : m(h, ht(ue.trim(e.slice(i))))), ue.trim(s.join(" "));
773
+ return i < e.length && (h === !1 ? m(e.slice(i)) : m(h, gt(ue.trim(e.slice(i))))), ue.trim(s.join(" "));
749
774
  }
750
- function fn(e, n) {
775
+ function cn(e, n) {
751
776
  for (; n < e.length; n++) {
752
777
  var i = e[n];
753
778
  if (i !== " ")
754
779
  return i === "=" ? n : -1;
755
780
  }
756
781
  }
757
- function pn(e, n) {
782
+ function ln(e, n) {
758
783
  for (; n < e.length; n++) {
759
784
  var i = e[n];
760
785
  if (i !== " ")
761
786
  return i === "'" || i === '"' ? n : -1;
762
787
  }
763
788
  }
764
- function hn(e, n) {
789
+ function fn(e, n) {
765
790
  for (; n > 0; n--) {
766
791
  var i = e[n];
767
792
  if (i !== " ")
768
793
  return i === "=" ? n : -1;
769
794
  }
770
795
  }
771
- function gn(e) {
796
+ function pn(e) {
772
797
  return e[0] === '"' && e[e.length - 1] === '"' || e[0] === "'" && e[e.length - 1] === "'";
773
798
  }
774
- function ht(e) {
775
- return gn(e) ? e.substr(1, e.length - 2) : e;
799
+ function gt(e) {
800
+ return pn(e) ? e.substr(1, e.length - 2) : e;
776
801
  }
777
- gr.parseTag = on;
778
- gr.parseAttr = ln;
779
- var mn = Vr.FilterCSS, X = M, Ut = gr, bn = Ut.parseTag, vn = Ut.parseAttr, ze = $r;
802
+ gr.parseTag = sn;
803
+ gr.parseAttr = on;
804
+ var hn = Vr.FilterCSS, X = M, Bt = gr, gn = Bt.parseTag, mn = Bt.parseAttr, Ne = $r;
780
805
  function Le(e) {
781
806
  return e == null;
782
807
  }
783
- function wn(e) {
784
- var n = ze.spaceIndex(e);
808
+ function bn(e) {
809
+ var n = Ne.spaceIndex(e);
785
810
  if (n === -1)
786
811
  return {
787
812
  html: "",
788
813
  closing: e[e.length - 2] === "/"
789
814
  };
790
- e = ze.trim(e.slice(n + 1, -1));
815
+ e = Ne.trim(e.slice(n + 1, -1));
791
816
  var i = e[e.length - 1] === "/";
792
- return i && (e = ze.trim(e.slice(0, -1))), {
817
+ return i && (e = Ne.trim(e.slice(0, -1))), {
793
818
  html: e,
794
819
  closing: i
795
820
  };
796
821
  }
797
- function yn(e) {
822
+ function vn(e) {
798
823
  var n = {};
799
824
  for (var i in e)
800
825
  n[i] = e[i];
801
826
  return n;
802
827
  }
803
- function _n(e) {
828
+ function wn(e) {
804
829
  var n = {};
805
830
  for (var i in e)
806
831
  Array.isArray(e[i]) ? n[i.toLowerCase()] = e[i].map(function(t) {
@@ -808,82 +833,82 @@ function _n(e) {
808
833
  }) : n[i.toLowerCase()] = e[i];
809
834
  return n;
810
835
  }
811
- function Bt(e) {
812
- e = yn(e || {}), e.stripIgnoreTag && (e.onIgnoreTag && console.error(
836
+ function Vt(e) {
837
+ e = vn(e || {}), e.stripIgnoreTag && (e.onIgnoreTag && console.error(
813
838
  'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
814
- ), e.onIgnoreTag = X.onIgnoreTagStripAll), e.whiteList || e.allowList ? e.whiteList = _n(e.whiteList || e.allowList) : e.whiteList = X.whiteList, this.attributeWrapSign = e.singleQuotedAttributeValue === !0 ? "'" : X.attributeWrapSign, e.onTag = e.onTag || X.onTag, e.onTagAttr = e.onTagAttr || X.onTagAttr, e.onIgnoreTag = e.onIgnoreTag || X.onIgnoreTag, e.onIgnoreTagAttr = e.onIgnoreTagAttr || X.onIgnoreTagAttr, e.safeAttrValue = e.safeAttrValue || X.safeAttrValue, e.escapeHtml = e.escapeHtml || X.escapeHtml, this.options = e, e.css === !1 ? this.cssFilter = !1 : (e.css = e.css || {}, this.cssFilter = new mn(e.css));
839
+ ), e.onIgnoreTag = X.onIgnoreTagStripAll), e.whiteList || e.allowList ? e.whiteList = wn(e.whiteList || e.allowList) : e.whiteList = X.whiteList, this.attributeWrapSign = e.singleQuotedAttributeValue === !0 ? "'" : X.attributeWrapSign, e.onTag = e.onTag || X.onTag, e.onTagAttr = e.onTagAttr || X.onTagAttr, e.onIgnoreTag = e.onIgnoreTag || X.onIgnoreTag, e.onIgnoreTagAttr = e.onIgnoreTagAttr || X.onIgnoreTagAttr, e.safeAttrValue = e.safeAttrValue || X.safeAttrValue, e.escapeHtml = e.escapeHtml || X.escapeHtml, this.options = e, e.css === !1 ? this.cssFilter = !1 : (e.css = e.css || {}, this.cssFilter = new hn(e.css));
815
840
  }
816
- Bt.prototype.process = function(e) {
841
+ Vt.prototype.process = function(e) {
817
842
  if (e = e || "", e = e.toString(), !e)
818
843
  return "";
819
- var n = this, i = n.options, t = i.whiteList, s = i.onTag, h = i.onIgnoreTag, g = i.onTagAttr, m = i.onIgnoreTagAttr, y = i.safeAttrValue, D = i.escapeHtml, S = n.attributeWrapSign, E = n.cssFilter;
844
+ var n = this, i = n.options, t = i.whiteList, s = i.onTag, h = i.onIgnoreTag, g = i.onTagAttr, m = i.onIgnoreTagAttr, _ = i.safeAttrValue, D = i.escapeHtml, S = n.attributeWrapSign, E = n.cssFilter;
820
845
  i.stripBlankChar && (e = X.stripBlankChar(e)), i.allowCommentTag || (e = X.stripCommentTag(e));
821
846
  var k = !1;
822
847
  i.stripIgnoreTagBody && (k = X.StripTagBody(
823
848
  i.stripIgnoreTagBody,
824
849
  h
825
850
  ), h = k.onIgnoreTag);
826
- var q = bn(
851
+ var q = gn(
827
852
  e,
828
- function(L, P, z, j, H) {
853
+ function(L, P, N, I, H) {
829
854
  var x = {
830
855
  sourcePosition: L,
831
856
  position: P,
832
857
  isClosing: H,
833
- isWhite: Object.prototype.hasOwnProperty.call(t, z)
834
- }, r = s(z, j, x);
858
+ isWhite: Object.prototype.hasOwnProperty.call(t, N)
859
+ }, r = s(N, I, x);
835
860
  if (!Le(r))
836
861
  return r;
837
862
  if (x.isWhite) {
838
863
  if (x.isClosing)
839
- return "</" + z + ">";
840
- var u = wn(j), a = t[z], d = vn(u.html, function(o, f) {
841
- var l = ze.indexOf(a, o) !== -1, p = g(z, o, f, l);
842
- return Le(p) ? l ? (f = y(z, o, f, E), f ? o + "=" + S + f + S : o) : (p = m(z, o, f, l), Le(p) ? void 0 : p) : p;
864
+ return "</" + N + ">";
865
+ var u = bn(I), a = t[N], d = mn(u.html, function(c, f) {
866
+ var l = Ne.indexOf(a, c) !== -1, p = g(N, c, f, l);
867
+ return Le(p) ? l ? (f = _(N, c, f, E), f ? c + "=" + S + f + S : c) : (p = m(N, c, f, l), Le(p) ? void 0 : p) : p;
843
868
  });
844
- return j = "<" + z, d && (j += " " + d), u.closing && (j += " /"), j += ">", j;
869
+ return I = "<" + N, d && (I += " " + d), u.closing && (I += " /"), I += ">", I;
845
870
  } else
846
- return r = h(z, j, x), Le(r) ? D(j) : r;
871
+ return r = h(N, I, x), Le(r) ? D(I) : r;
847
872
  },
848
873
  D
849
874
  );
850
875
  return k && (q = k.remove(q)), q;
851
876
  };
852
- var kn = Bt;
877
+ var yn = Vt;
853
878
  (function(e, n) {
854
- var i = M, t = gr, s = kn;
855
- function h(m, y) {
856
- var D = new s(y);
879
+ var i = M, t = gr, s = yn;
880
+ function h(m, _) {
881
+ var D = new s(_);
857
882
  return D.process(m);
858
883
  }
859
884
  n = e.exports = h, n.filterXSS = h, n.FilterXSS = s, function() {
860
885
  for (var m in i)
861
886
  n[m] = i[m];
862
- for (var y in t)
863
- n[y] = t[y];
887
+ for (var _ in t)
888
+ n[_] = t[_];
864
889
  }(), typeof window < "u" && (window.filterXSS = e.exports);
865
890
  function g() {
866
891
  return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope;
867
892
  }
868
893
  g() && (self.filterXSS = e.exports);
869
894
  })(Dr, Dr.exports);
870
- var En = Dr.exports;
871
- const Rr = /* @__PURE__ */ Br(En), Tn = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", An = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", pe = (e, n) => {
895
+ var _n = Dr.exports;
896
+ const Rr = /* @__PURE__ */ Br(_n), kn = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", En = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", pe = (e, n) => {
872
897
  for (const i in n)
873
898
  e[i] = n[i];
874
899
  return e;
875
- }, Nr = "numeric", zr = "ascii", Ir = "alpha", Ie = "asciinumeric", qe = "alphanumeric", xr = "domain", Vt = "emoji", Cn = "scheme", Sn = "slashscheme", gt = "whitespace";
876
- function Ln(e, n) {
900
+ }, jr = "numeric", Nr = "ascii", zr = "alpha", ze = "asciinumeric", qe = "alphanumeric", xr = "domain", $t = "emoji", Tn = "scheme", An = "slashscheme", mt = "whitespace";
901
+ function Cn(e, n) {
877
902
  return e in n || (n[e] = []), n[e];
878
903
  }
879
904
  function oe(e, n, i) {
880
- n[Nr] && (n[Ie] = !0, n[qe] = !0), n[zr] && (n[Ie] = !0, n[Ir] = !0), n[Ie] && (n[qe] = !0), n[Ir] && (n[qe] = !0), n[qe] && (n[xr] = !0), n[Vt] && (n[xr] = !0);
905
+ n[jr] && (n[ze] = !0, n[qe] = !0), n[Nr] && (n[ze] = !0, n[zr] = !0), n[ze] && (n[qe] = !0), n[zr] && (n[qe] = !0), n[qe] && (n[xr] = !0), n[$t] && (n[xr] = !0);
881
906
  for (const t in n) {
882
- const s = Ln(t, i);
907
+ const s = Cn(t, i);
883
908
  s.indexOf(e) < 0 && s.push(e);
884
909
  }
885
910
  }
886
- function qn(e, n) {
911
+ function Sn(e, n) {
887
912
  const i = {};
888
913
  for (const t in n)
889
914
  n[t].indexOf(e) >= 0 && (i[t] = !0);
@@ -1005,8 +1030,8 @@ Q.prototype = {
1005
1030
  if (m ? (g = new Q(), pe(g.j, m.j), g.jr.push.apply(g.jr, m.jr), g.jd = m.jd, g.t = m.t) : g = new Q(), h) {
1006
1031
  if (t)
1007
1032
  if (g.t && typeof g.t == "string") {
1008
- const y = pe(qn(g.t, t), i);
1009
- oe(h, y, t);
1033
+ const _ = pe(Sn(g.t, t), i);
1034
+ oe(h, _, t);
1010
1035
  } else
1011
1036
  i && oe(h, i, t);
1012
1037
  g.t = h;
@@ -1014,18 +1039,18 @@ Q.prototype = {
1014
1039
  return s.j[e] = g, g;
1015
1040
  }
1016
1041
  };
1017
- const I = (e, n, i, t, s) => e.ta(n, i, t, s), Z = (e, n, i, t, s) => e.tr(n, i, t, s), mt = (e, n, i, t, s) => e.ts(n, i, t, s), C = (e, n, i, t, s) => e.tt(n, i, t, s), ae = "WORD", jr = "UWORD", ke = "LOCALHOST", Or = "TLD", Hr = "UTLD", xe = "SCHEME", fe = "SLASH_SCHEME", Fr = "NUM", $t = "WS", Gr = "NL", ve = "OPENBRACE", we = "CLOSEBRACE", He = "OPENBRACKET", Me = "CLOSEBRACKET", Ue = "OPENPAREN", Be = "CLOSEPAREN", Ve = "OPENANGLEBRACKET", $e = "CLOSEANGLEBRACKET", Fe = "FULLWIDTHLEFTPAREN", Ge = "FULLWIDTHRIGHTPAREN", We = "LEFTCORNERBRACKET", Ke = "RIGHTCORNERBRACKET", Qe = "LEFTWHITECORNERBRACKET", Ze = "RIGHTWHITECORNERBRACKET", Ye = "FULLWIDTHLESSTHAN", Xe = "FULLWIDTHGREATERTHAN", Je = "AMPERSAND", er = "APOSTROPHE", rr = "ASTERISK", se = "AT", tr = "BACKSLASH", ar = "BACKTICK", nr = "CARET", de = "COLON", Wr = "COMMA", ir = "DOLLAR", ee = "DOT", ur = "EQUALS", Kr = "EXCLAMATION", re = "HYPHEN", sr = "PERCENT", dr = "PIPE", or = "PLUS", cr = "POUND", lr = "QUERY", Qr = "QUOTE", Zr = "SEMI", te = "SLASH", ye = "TILDE", fr = "UNDERSCORE", Ft = "EMOJI", pr = "SYM";
1018
- var Gt = /* @__PURE__ */ Object.freeze({
1042
+ const z = (e, n, i, t, s) => e.ta(n, i, t, s), Z = (e, n, i, t, s) => e.tr(n, i, t, s), bt = (e, n, i, t, s) => e.ts(n, i, t, s), C = (e, n, i, t, s) => e.tt(n, i, t, s), ae = "WORD", Ir = "UWORD", ke = "LOCALHOST", Or = "TLD", Hr = "UTLD", xe = "SCHEME", fe = "SLASH_SCHEME", Fr = "NUM", Ft = "WS", Gr = "NL", ve = "OPENBRACE", we = "CLOSEBRACE", He = "OPENBRACKET", Me = "CLOSEBRACKET", Ue = "OPENPAREN", Be = "CLOSEPAREN", Ve = "OPENANGLEBRACKET", $e = "CLOSEANGLEBRACKET", Fe = "FULLWIDTHLEFTPAREN", Ge = "FULLWIDTHRIGHTPAREN", We = "LEFTCORNERBRACKET", Ke = "RIGHTCORNERBRACKET", Qe = "LEFTWHITECORNERBRACKET", Ze = "RIGHTWHITECORNERBRACKET", Ye = "FULLWIDTHLESSTHAN", Xe = "FULLWIDTHGREATERTHAN", Je = "AMPERSAND", er = "APOSTROPHE", rr = "ASTERISK", se = "AT", tr = "BACKSLASH", ar = "BACKTICK", nr = "CARET", de = "COLON", Wr = "COMMA", ir = "DOLLAR", ee = "DOT", ur = "EQUALS", Kr = "EXCLAMATION", re = "HYPHEN", sr = "PERCENT", dr = "PIPE", or = "PLUS", cr = "POUND", lr = "QUERY", Qr = "QUOTE", Zr = "SEMI", te = "SLASH", ye = "TILDE", fr = "UNDERSCORE", Gt = "EMOJI", pr = "SYM";
1043
+ var Wt = /* @__PURE__ */ Object.freeze({
1019
1044
  __proto__: null,
1020
1045
  WORD: ae,
1021
- UWORD: jr,
1046
+ UWORD: Ir,
1022
1047
  LOCALHOST: ke,
1023
1048
  TLD: Or,
1024
1049
  UTLD: Hr,
1025
1050
  SCHEME: xe,
1026
1051
  SLASH_SCHEME: fe,
1027
1052
  NUM: Fr,
1028
- WS: $t,
1053
+ WS: Ft,
1029
1054
  NL: Gr,
1030
1055
  OPENBRACE: ve,
1031
1056
  CLOSEBRACE: we,
@@ -1067,47 +1092,47 @@ var Gt = /* @__PURE__ */ Object.freeze({
1067
1092
  SLASH: te,
1068
1093
  TILDE: ye,
1069
1094
  UNDERSCORE: fr,
1070
- EMOJI: Ft,
1095
+ EMOJI: Gt,
1071
1096
  SYM: pr
1072
1097
  });
1073
- const le = /[a-z]/, Er = new RegExp("\\p{L}", "u"), Tr = new RegExp("\\p{Emoji}", "u"), Ar = /\d/, bt = /\s/, vt = `
1074
- `, Dn = "️", Pn = "‍";
1098
+ const le = /[a-z]/, Er = new RegExp("\\p{L}", "u"), Tr = new RegExp("\\p{Emoji}", "u"), Ar = /\d/, vt = /\s/, wt = `
1099
+ `, Ln = "️", qn = "‍";
1075
1100
  let De = null, Pe = null;
1076
- function Rn(e) {
1101
+ function Dn(e) {
1077
1102
  e === void 0 && (e = []);
1078
1103
  const n = {};
1079
1104
  Q.groups = n;
1080
1105
  const i = new Q();
1081
- De == null && (De = wt(Tn)), Pe == null && (Pe = wt(An)), C(i, "'", er), C(i, "{", ve), C(i, "}", we), C(i, "[", He), C(i, "]", Me), C(i, "(", Ue), C(i, ")", Be), C(i, "<", Ve), C(i, ">", $e), C(i, "(", Fe), C(i, ")", Ge), C(i, "「", We), C(i, "」", Ke), C(i, "『", Qe), C(i, "』", Ze), C(i, "<", Ye), C(i, ">", Xe), C(i, "&", Je), C(i, "*", rr), C(i, "@", se), C(i, "`", ar), C(i, "^", nr), C(i, ":", de), C(i, ",", Wr), C(i, "$", ir), C(i, ".", ee), C(i, "=", ur), C(i, "!", Kr), C(i, "-", re), C(i, "%", sr), C(i, "|", dr), C(i, "+", or), C(i, "#", cr), C(i, "?", lr), C(i, '"', Qr), C(i, "/", te), C(i, ";", Zr), C(i, "~", ye), C(i, "_", fr), C(i, "\\", tr);
1106
+ De == null && (De = yt(kn)), Pe == null && (Pe = yt(En)), C(i, "'", er), C(i, "{", ve), C(i, "}", we), C(i, "[", He), C(i, "]", Me), C(i, "(", Ue), C(i, ")", Be), C(i, "<", Ve), C(i, ">", $e), C(i, "(", Fe), C(i, ")", Ge), C(i, "「", We), C(i, "」", Ke), C(i, "『", Qe), C(i, "』", Ze), C(i, "<", Ye), C(i, ">", Xe), C(i, "&", Je), C(i, "*", rr), C(i, "@", se), C(i, "`", ar), C(i, "^", nr), C(i, ":", de), C(i, ",", Wr), C(i, "$", ir), C(i, ".", ee), C(i, "=", ur), C(i, "!", Kr), C(i, "-", re), C(i, "%", sr), C(i, "|", dr), C(i, "+", or), C(i, "#", cr), C(i, "?", lr), C(i, '"', Qr), C(i, "/", te), C(i, ";", Zr), C(i, "~", ye), C(i, "_", fr), C(i, "\\", tr);
1082
1107
  const t = Z(i, Ar, Fr, {
1083
- [Nr]: !0
1108
+ [jr]: !0
1084
1109
  });
1085
1110
  Z(t, Ar, t);
1086
1111
  const s = Z(i, le, ae, {
1087
- [zr]: !0
1112
+ [Nr]: !0
1088
1113
  });
1089
1114
  Z(s, le, s);
1090
- const h = Z(i, Er, jr, {
1091
- [Ir]: !0
1115
+ const h = Z(i, Er, Ir, {
1116
+ [zr]: !0
1092
1117
  });
1093
1118
  Z(h, le), Z(h, Er, h);
1094
- const g = Z(i, bt, $t, {
1095
- [gt]: !0
1119
+ const g = Z(i, vt, Ft, {
1120
+ [mt]: !0
1096
1121
  });
1097
- C(i, vt, Gr, {
1098
- [gt]: !0
1099
- }), C(g, vt), Z(g, bt, g);
1100
- const m = Z(i, Tr, Ft, {
1101
- [Vt]: !0
1122
+ C(i, wt, Gr, {
1123
+ [mt]: !0
1124
+ }), C(g, wt), Z(g, vt, g);
1125
+ const m = Z(i, Tr, Gt, {
1126
+ [$t]: !0
1102
1127
  });
1103
- Z(m, Tr, m), C(m, Dn, m);
1104
- const y = C(m, Pn);
1105
- Z(y, Tr, m);
1128
+ Z(m, Tr, m), C(m, Ln, m);
1129
+ const _ = C(m, qn);
1130
+ Z(_, Tr, m);
1106
1131
  const D = [[le, s]], S = [[le, null], [Er, h]];
1107
1132
  for (let E = 0; E < De.length; E++)
1108
1133
  ne(i, De[E], Or, ae, D);
1109
1134
  for (let E = 0; E < Pe.length; E++)
1110
- ne(i, Pe[E], Hr, jr, S);
1135
+ ne(i, Pe[E], Hr, Ir, S);
1111
1136
  oe(Or, {
1112
1137
  tld: !0,
1113
1138
  ascii: !0
@@ -1123,28 +1148,28 @@ function Rn(e) {
1123
1148
  }, n), e = e.sort((E, k) => E[0] > k[0] ? 1 : -1);
1124
1149
  for (let E = 0; E < e.length; E++) {
1125
1150
  const k = e[E][0], L = e[E][1] ? {
1126
- [Cn]: !0
1151
+ [Tn]: !0
1127
1152
  } : {
1128
- [Sn]: !0
1153
+ [An]: !0
1129
1154
  };
1130
- k.indexOf("-") >= 0 ? L[xr] = !0 : le.test(k) ? Ar.test(k) ? L[Ie] = !0 : L[zr] = !0 : L[Nr] = !0, mt(i, k, k, L);
1155
+ k.indexOf("-") >= 0 ? L[xr] = !0 : le.test(k) ? Ar.test(k) ? L[ze] = !0 : L[Nr] = !0 : L[jr] = !0, bt(i, k, k, L);
1131
1156
  }
1132
- return mt(i, "localhost", ke, {
1157
+ return bt(i, "localhost", ke, {
1133
1158
  ascii: !0
1134
1159
  }), i.jd = new Q(pr), {
1135
1160
  start: i,
1136
1161
  tokens: pe({
1137
1162
  groups: n
1138
- }, Gt)
1163
+ }, Wt)
1139
1164
  };
1140
1165
  }
1141
- function Nn(e, n) {
1142
- const i = zn(n.replace(/[A-Z]/g, (m) => m.toLowerCase())), t = i.length, s = [];
1166
+ function Pn(e, n) {
1167
+ const i = Rn(n.replace(/[A-Z]/g, (m) => m.toLowerCase())), t = i.length, s = [];
1143
1168
  let h = 0, g = 0;
1144
1169
  for (; g < t; ) {
1145
- let m = e, y = null, D = 0, S = null, E = -1, k = -1;
1146
- for (; g < t && (y = m.go(i[g])); )
1147
- m = y, m.accepts() ? (E = 0, k = 0, S = m) : E >= 0 && (E += i[g].length, k++), D += i[g].length, h += i[g].length, g++;
1170
+ let m = e, _ = null, D = 0, S = null, E = -1, k = -1;
1171
+ for (; g < t && (_ = m.go(i[g])); )
1172
+ m = _, m.accepts() ? (E = 0, k = 0, S = m) : E >= 0 && (E += i[g].length, k++), D += i[g].length, h += i[g].length, g++;
1148
1173
  h -= E, g -= k, D -= E, s.push({
1149
1174
  t: S.t,
1150
1175
  // token type/name
@@ -1158,7 +1183,7 @@ function Nn(e, n) {
1158
1183
  }
1159
1184
  return s;
1160
1185
  }
1161
- function zn(e) {
1186
+ function Rn(e) {
1162
1187
  const n = [], i = e.length;
1163
1188
  let t = 0;
1164
1189
  for (; t < i; ) {
@@ -1171,12 +1196,12 @@ function ne(e, n, i, t, s) {
1171
1196
  let h;
1172
1197
  const g = n.length;
1173
1198
  for (let m = 0; m < g - 1; m++) {
1174
- const y = n[m];
1175
- e.j[y] ? h = e.j[y] : (h = new Q(t), h.jr = s.slice(), e.j[y] = h), e = h;
1199
+ const _ = n[m];
1200
+ e.j[_] ? h = e.j[_] : (h = new Q(t), h.jr = s.slice(), e.j[_] = h), e = h;
1176
1201
  }
1177
1202
  return h = new Q(i), h.jr = s.slice(), e.j[n[g - 1]] = h, h;
1178
1203
  }
1179
- function wt(e) {
1204
+ function yt(e) {
1180
1205
  const n = [], i = [];
1181
1206
  let t = 0, s = "0123456789";
1182
1207
  for (; t < e.length; ) {
@@ -1196,8 +1221,8 @@ function wt(e) {
1196
1221
  const Ee = {
1197
1222
  defaultProtocol: "http",
1198
1223
  events: null,
1199
- format: yt,
1200
- formatHref: yt,
1224
+ format: _t,
1225
+ formatHref: _t,
1201
1226
  nl2br: !1,
1202
1227
  tagName: "a",
1203
1228
  target: null,
@@ -1280,13 +1305,13 @@ Yr.prototype = {
1280
1305
  return (this.get("render", null, e) || this.defaultRender)(n, e.t, e);
1281
1306
  }
1282
1307
  };
1283
- function yt(e) {
1308
+ function _t(e) {
1284
1309
  return e;
1285
1310
  }
1286
- function Wt(e, n) {
1311
+ function Kt(e, n) {
1287
1312
  this.t = "token", this.v = e, this.tk = n;
1288
1313
  }
1289
- Wt.prototype = {
1314
+ Kt.prototype = {
1290
1315
  isLink: !1,
1291
1316
  /**
1292
1317
  * Return the string this token represents.
@@ -1381,8 +1406,8 @@ Wt.prototype = {
1381
1406
  * @param {Options} options Formattinng options
1382
1407
  */
1383
1408
  render(e) {
1384
- const n = this, i = this.toHref(e.get("defaultProtocol")), t = e.get("formatHref", i, this), s = e.get("tagName", i, n), h = this.toFormattedString(e), g = {}, m = e.get("className", i, n), y = e.get("target", i, n), D = e.get("rel", i, n), S = e.getObj("attributes", i, n), E = e.getObj("events", i, n);
1385
- return g.href = t, m && (g.class = m), y && (g.target = y), D && (g.rel = D), S && pe(g, S), {
1409
+ const n = this, i = this.toHref(e.get("defaultProtocol")), t = e.get("formatHref", i, this), s = e.get("tagName", i, n), h = this.toFormattedString(e), g = {}, m = e.get("className", i, n), _ = e.get("target", i, n), D = e.get("rel", i, n), S = e.getObj("attributes", i, n), E = e.getObj("events", i, n);
1410
+ return g.href = t, m && (g.class = m), _ && (g.target = _), D && (g.rel = D), S && pe(g, S), {
1386
1411
  tagName: s,
1387
1412
  attributes: g,
1388
1413
  content: h,
@@ -1391,7 +1416,7 @@ Wt.prototype = {
1391
1416
  }
1392
1417
  };
1393
1418
  function mr(e, n) {
1394
- class i extends Wt {
1419
+ class i extends Kt {
1395
1420
  constructor(s, h) {
1396
1421
  super(s, h), this.t = e;
1397
1422
  }
@@ -1400,12 +1425,12 @@ function mr(e, n) {
1400
1425
  i.prototype[t] = n[t];
1401
1426
  return i.t = e, i;
1402
1427
  }
1403
- const _t = mr("email", {
1428
+ const kt = mr("email", {
1404
1429
  isLink: !0,
1405
1430
  toHref() {
1406
1431
  return "mailto:" + this.toString();
1407
1432
  }
1408
- }), kt = mr("text"), In = mr("nl"), Re = mr("url", {
1433
+ }), Et = mr("text"), jn = mr("nl"), Re = mr("url", {
1409
1434
  isLink: !0,
1410
1435
  /**
1411
1436
  Lowercases relevant parts of the domain and adds the protocol if
@@ -1426,38 +1451,38 @@ const _t = mr("email", {
1426
1451
  return e.length >= 2 && e[0].t !== ke && e[1].t === de;
1427
1452
  }
1428
1453
  }), Y = (e) => new Q(e);
1429
- function xn(e) {
1454
+ function Nn(e) {
1430
1455
  let {
1431
1456
  groups: n
1432
1457
  } = e;
1433
1458
  const i = n.domain.concat([Je, rr, se, tr, ar, nr, ir, ur, re, Fr, sr, dr, or, cr, te, pr, ye, fr]), t = [er, de, Wr, ee, Kr, lr, Qr, Zr, Ve, $e, ve, we, Me, He, Ue, Be, Fe, Ge, We, Ke, Qe, Ze, Ye, Xe], s = [Je, er, rr, tr, ar, nr, ir, ur, re, ve, we, sr, dr, or, cr, lr, te, pr, ye, fr], h = Y(), g = C(h, ye);
1434
- I(g, s, g), I(g, n.domain, g);
1435
- const m = Y(), y = Y(), D = Y();
1436
- I(h, n.domain, m), I(h, n.scheme, y), I(h, n.slashscheme, D), I(m, s, g), I(m, n.domain, m);
1459
+ z(g, s, g), z(g, n.domain, g);
1460
+ const m = Y(), _ = Y(), D = Y();
1461
+ z(h, n.domain, m), z(h, n.scheme, _), z(h, n.slashscheme, D), z(m, s, g), z(m, n.domain, m);
1437
1462
  const S = C(m, se);
1438
- C(g, se, S), C(y, se, S), C(D, se, S);
1463
+ C(g, se, S), C(_, se, S), C(D, se, S);
1439
1464
  const E = C(g, ee);
1440
- I(E, s, g), I(E, n.domain, g);
1465
+ z(E, s, g), z(E, n.domain, g);
1441
1466
  const k = Y();
1442
- I(S, n.domain, k), I(k, n.domain, k);
1467
+ z(S, n.domain, k), z(k, n.domain, k);
1443
1468
  const q = C(k, ee);
1444
- I(q, n.domain, k);
1445
- const L = Y(_t);
1446
- I(q, n.tld, L), I(q, n.utld, L), C(S, ke, L);
1469
+ z(q, n.domain, k);
1470
+ const L = Y(kt);
1471
+ z(q, n.tld, L), z(q, n.utld, L), C(S, ke, L);
1447
1472
  const P = C(k, re);
1448
- I(P, n.domain, k), I(L, n.domain, k), C(L, ee, q), C(L, re, P);
1449
- const z = C(L, de);
1450
- I(z, n.numeric, _t);
1451
- const j = C(m, re), H = C(m, ee);
1452
- I(j, n.domain, m), I(H, s, g), I(H, n.domain, m);
1473
+ z(P, n.domain, k), z(L, n.domain, k), C(L, ee, q), C(L, re, P);
1474
+ const N = C(L, de);
1475
+ z(N, n.numeric, kt);
1476
+ const I = C(m, re), H = C(m, ee);
1477
+ z(I, n.domain, m), z(H, s, g), z(H, n.domain, m);
1453
1478
  const x = Y(Re);
1454
- I(H, n.tld, x), I(H, n.utld, x), I(x, n.domain, m), I(x, s, g), C(x, ee, H), C(x, re, j), C(x, se, S);
1479
+ z(H, n.tld, x), z(H, n.utld, x), z(x, n.domain, m), z(x, s, g), C(x, ee, H), C(x, re, I), C(x, se, S);
1455
1480
  const r = C(x, de), u = Y(Re);
1456
- I(r, n.numeric, u);
1481
+ z(r, n.numeric, u);
1457
1482
  const a = Y(Re), d = Y();
1458
- I(a, i, a), I(a, t, d), I(d, i, a), I(d, t, d), C(x, te, a), C(u, te, a);
1459
- const o = C(y, de), f = C(D, de), l = C(f, te), p = C(l, te);
1460
- I(y, n.domain, m), C(y, ee, H), C(y, re, j), I(D, n.domain, m), C(D, ee, H), C(D, re, j), I(o, n.domain, a), C(o, te, a), I(p, n.domain, a), I(p, i, a), C(p, te, a);
1483
+ z(a, i, a), z(a, t, d), z(d, i, a), z(d, t, d), C(x, te, a), C(u, te, a);
1484
+ const c = C(_, de), f = C(D, de), l = C(f, te), p = C(l, te);
1485
+ z(_, n.domain, m), C(_, ee, H), C(_, re, I), z(D, n.domain, m), C(D, ee, H), C(D, re, I), z(c, n.domain, a), C(c, te, a), z(p, n.domain, a), z(p, i, a), C(p, te, a);
1461
1486
  const T = [
1462
1487
  [ve, we],
1463
1488
  // {}
@@ -1477,35 +1502,35 @@ function xn(e) {
1477
1502
  // <>
1478
1503
  ];
1479
1504
  for (let v = 0; v < T.length; v++) {
1480
- const [b, _] = T[v], c = C(a, b);
1481
- C(d, b, c), C(c, _, a);
1505
+ const [b, y] = T[v], o = C(a, b);
1506
+ C(d, b, o), C(o, y, a);
1482
1507
  const w = Y(Re);
1483
- I(c, i, w);
1508
+ z(o, i, w);
1484
1509
  const A = Y();
1485
- I(c, t), I(w, i, w), I(w, t, A), I(A, i, w), I(A, t, A), C(w, _, a), C(A, _, a);
1510
+ z(o, t), z(w, i, w), z(w, t, A), z(A, i, w), z(A, t, A), C(w, y, a), C(A, y, a);
1486
1511
  }
1487
- return C(h, ke, x), C(h, Gr, In), {
1512
+ return C(h, ke, x), C(h, Gr, jn), {
1488
1513
  start: h,
1489
- tokens: Gt
1514
+ tokens: Wt
1490
1515
  };
1491
1516
  }
1492
- function jn(e, n, i) {
1517
+ function zn(e, n, i) {
1493
1518
  let t = i.length, s = 0, h = [], g = [];
1494
1519
  for (; s < t; ) {
1495
- let m = e, y = null, D = null, S = 0, E = null, k = -1;
1496
- for (; s < t && !(y = m.go(i[s].t)); )
1520
+ let m = e, _ = null, D = null, S = 0, E = null, k = -1;
1521
+ for (; s < t && !(_ = m.go(i[s].t)); )
1497
1522
  g.push(i[s++]);
1498
- for (; s < t && (D = y || m.go(i[s].t)); )
1499
- y = null, m = D, m.accepts() ? (k = 0, E = m) : k >= 0 && k++, s++, S++;
1523
+ for (; s < t && (D = _ || m.go(i[s].t)); )
1524
+ _ = null, m = D, m.accepts() ? (k = 0, E = m) : k >= 0 && k++, s++, S++;
1500
1525
  if (k < 0)
1501
1526
  s -= S, s < t && (g.push(i[s]), s++);
1502
1527
  else {
1503
- g.length > 0 && (h.push(Cr(kt, n, g)), g = []), s -= k, S -= k;
1528
+ g.length > 0 && (h.push(Cr(Et, n, g)), g = []), s -= k, S -= k;
1504
1529
  const q = E.t, L = i.slice(s - S, s);
1505
1530
  h.push(Cr(q, n, L));
1506
1531
  }
1507
1532
  }
1508
- return g.length > 0 && h.push(Cr(kt, n, g)), h;
1533
+ return g.length > 0 && h.push(Cr(Et, n, g)), h;
1509
1534
  }
1510
1535
  function Cr(e, n, i) {
1511
1536
  const t = i[0].s, s = i[i.length - 1].e, h = n.slice(t, s);
@@ -1519,13 +1544,13 @@ const F = {
1519
1544
  customSchemes: [],
1520
1545
  initialized: !1
1521
1546
  };
1522
- function On() {
1523
- F.scanner = Rn(F.customSchemes);
1547
+ function xn() {
1548
+ F.scanner = Dn(F.customSchemes);
1524
1549
  for (let e = 0; e < F.tokenQueue.length; e++)
1525
1550
  F.tokenQueue[e][1]({
1526
1551
  scanner: F.scanner
1527
1552
  });
1528
- F.parser = xn(F.scanner.tokens);
1553
+ F.parser = Nn(F.scanner.tokens);
1529
1554
  for (let e = 0; e < F.pluginQueue.length; e++)
1530
1555
  F.pluginQueue[e][1]({
1531
1556
  scanner: F.scanner,
@@ -1533,10 +1558,10 @@ function On() {
1533
1558
  });
1534
1559
  F.initialized = !0;
1535
1560
  }
1536
- function Hn(e) {
1537
- return F.initialized || On(), jn(F.parser.start, e, Nn(F.scanner.start, e));
1561
+ function In(e) {
1562
+ return F.initialized || xn(), zn(F.parser.start, e, Pn(F.scanner.start, e));
1538
1563
  }
1539
- var Mn = {
1564
+ var On = {
1540
1565
  // We don't need the complete named character reference because linkifyHtml
1541
1566
  // does not modify the escape sequences. We do need &nbsp; so that
1542
1567
  // whitespace is parsed properly. Other types of whitespace should already
@@ -1546,7 +1571,7 @@ var Mn = {
1546
1571
  lt: "<",
1547
1572
  nbsp: " ",
1548
1573
  quot: '"'
1549
- }, Un = /^#[xX]([A-Fa-f0-9]+)$/, Bn = /^#([0-9]+)$/, Vn = /^([A-Za-z0-9]+)$/, $n = (
1574
+ }, Hn = /^#[xX]([A-Fa-f0-9]+)$/, Mn = /^#([0-9]+)$/, Un = /^([A-Za-z0-9]+)$/, Bn = (
1550
1575
  /** @class */
1551
1576
  function() {
1552
1577
  function e(n) {
@@ -1554,28 +1579,28 @@ var Mn = {
1554
1579
  }
1555
1580
  return e.prototype.parse = function(n) {
1556
1581
  if (n) {
1557
- var i = n.match(Un);
1582
+ var i = n.match(Hn);
1558
1583
  if (i)
1559
1584
  return String.fromCharCode(parseInt(i[1], 16));
1560
- if (i = n.match(Bn), i)
1585
+ if (i = n.match(Mn), i)
1561
1586
  return String.fromCharCode(parseInt(i[1], 10));
1562
- if (i = n.match(Vn), i)
1587
+ if (i = n.match(Un), i)
1563
1588
  return this.named[i[1]] || "&" + i[1] + ";";
1564
1589
  }
1565
1590
  }, e;
1566
1591
  }()
1567
- ), Fn = /[\t\n\f ]/, Gn = /[A-Za-z]/, Wn = /\r\n?/g;
1592
+ ), Vn = /[\t\n\f ]/, $n = /[A-Za-z]/, Fn = /\r\n?/g;
1568
1593
  function V(e) {
1569
- return Fn.test(e);
1594
+ return Vn.test(e);
1570
1595
  }
1571
- function Et(e) {
1572
- return Gn.test(e);
1596
+ function Tt(e) {
1597
+ return $n.test(e);
1573
1598
  }
1574
- function Kn(e) {
1575
- return e.replace(Wn, `
1599
+ function Gn(e) {
1600
+ return e.replace(Fn, `
1576
1601
  `);
1577
1602
  }
1578
- var Qn = (
1603
+ var Wn = (
1579
1604
  /** @class */
1580
1605
  function() {
1581
1606
  function e(n, i, t) {
@@ -1614,7 +1639,7 @@ var Qn = (
1614
1639
  ) : s === "/" ? this.transitionTo(
1615
1640
  "endTagOpen"
1616
1641
  /* endTagOpen */
1617
- ) : (s === "@" || s === ":" || Et(s)) && (this.transitionTo(
1642
+ ) : (s === "@" || s === ":" || Tt(s)) && (this.transitionTo(
1618
1643
  "tagName"
1619
1644
  /* tagName */
1620
1645
  ), this.tagNameBuffer = "", this.delegate.beginStartTag(), this.appendToTagName(s));
@@ -1975,7 +2000,7 @@ var Qn = (
1975
2000
  },
1976
2001
  endTagOpen: function() {
1977
2002
  var s = this.consume();
1978
- (s === "@" || s === ":" || Et(s)) && (this.transitionTo(
2003
+ (s === "@" || s === ":" || Tt(s)) && (this.transitionTo(
1979
2004
  "endTagName"
1980
2005
  /* endTagName */
1981
2006
  ), this.tagNameBuffer = "", this.delegate.beginEndTag(), this.appendToTagName(s));
@@ -1992,7 +2017,7 @@ var Qn = (
1992
2017
  }, e.prototype.tokenize = function(n) {
1993
2018
  this.reset(), this.tokenizePart(n), this.tokenizeEOF();
1994
2019
  }, e.prototype.tokenizePart = function(n) {
1995
- for (this.input += Kn(n); this.index < this.input.length; ) {
2020
+ for (this.input += Gn(n); this.index < this.input.length; ) {
1996
2021
  var i = this.states[this.state];
1997
2022
  if (i !== void 0)
1998
2023
  i.call(this);
@@ -2031,11 +2056,11 @@ var Qn = (
2031
2056
  return n === "title" && this.input.substring(this.index, this.index + 8) !== "</title>" || n === "style" && this.input.substring(this.index, this.index + 8) !== "</style>" || n === "script" && this.input.substring(this.index, this.index + 9) !== "<\/script>";
2032
2057
  }, e;
2033
2058
  }()
2034
- ), Zn = (
2059
+ ), Kn = (
2035
2060
  /** @class */
2036
2061
  function() {
2037
2062
  function e(n, i) {
2038
- i === void 0 && (i = {}), this.options = i, this.token = null, this.startLine = 1, this.startColumn = 0, this.tokens = [], this.tokenizer = new Qn(this, n, i.mode), this._currentAttribute = void 0;
2063
+ i === void 0 && (i = {}), this.options = i, this.token = null, this.startLine = 1, this.startColumn = 0, this.tokens = [], this.tokenizer = new Wn(this, n, i.mode), this._currentAttribute = void 0;
2039
2064
  }
2040
2065
  return e.prototype.tokenize = function(n) {
2041
2066
  return this.tokens = [], this.tokenizer.tokenize(n), this.tokens;
@@ -2162,61 +2187,61 @@ var Qn = (
2162
2187
  }, e;
2163
2188
  }()
2164
2189
  );
2165
- function Yn(e, n) {
2166
- var i = new Zn(new $n(Mn), n);
2190
+ function Qn(e, n) {
2191
+ var i = new Kn(new Bn(On), n);
2167
2192
  return i.tokenize(e);
2168
2193
  }
2169
- const Kt = "LinkifyResult", hr = "StartTag", Qt = "EndTag", Mr = "Chars", Xn = "Comment", Jn = "Doctype";
2170
- function ei(e, n) {
2194
+ const Qt = "LinkifyResult", hr = "StartTag", Zt = "EndTag", Mr = "Chars", Zn = "Comment", Yn = "Doctype";
2195
+ function Xn(e, n) {
2171
2196
  n === void 0 && (n = {});
2172
- const i = Yn(e), t = [], s = [], h = new Yr(n, ai);
2197
+ const i = Qn(e), t = [], s = [], h = new Yr(n, ri);
2173
2198
  for (let g = 0; g < i.length; g++) {
2174
2199
  const m = i[g];
2175
2200
  if (m.type === hr) {
2176
2201
  t.push(m);
2177
- const y = m.tagName.toUpperCase();
2178
- if (!(y === "A" || h.ignoreTags.indexOf(y) >= 0))
2202
+ const _ = m.tagName.toUpperCase();
2203
+ if (!(_ === "A" || h.ignoreTags.indexOf(_) >= 0))
2179
2204
  continue;
2180
2205
  let S = t.length;
2181
- ti(y, i, ++g, t), g += t.length - S - 1;
2206
+ ei(_, i, ++g, t), g += t.length - S - 1;
2182
2207
  } else if (m.type !== Mr)
2183
2208
  t.push(m);
2184
2209
  else {
2185
- const y = ri(m.chars, h);
2186
- t.push.apply(t, y);
2210
+ const _ = Jn(m.chars, h);
2211
+ t.push.apply(t, _);
2187
2212
  }
2188
2213
  }
2189
2214
  for (let g = 0; g < t.length; g++) {
2190
2215
  const m = t[g];
2191
2216
  switch (m.type) {
2192
- case Kt:
2217
+ case Qt:
2193
2218
  s.push(m.rendered);
2194
2219
  break;
2195
2220
  case hr: {
2196
- let y = "<" + m.tagName;
2197
- m.attributes.length > 0 && (y += " " + ii(m.attributes).join(" ")), m.selfClosing && (y += " /"), y += ">", s.push(y);
2221
+ let _ = "<" + m.tagName;
2222
+ m.attributes.length > 0 && (_ += " " + ai(m.attributes).join(" ")), m.selfClosing && (_ += " /"), _ += ">", s.push(_);
2198
2223
  break;
2199
2224
  }
2200
- case Qt:
2225
+ case Zt:
2201
2226
  s.push(`</${m.tagName}>`);
2202
2227
  break;
2203
2228
  case Mr:
2204
2229
  s.push(Ur(m.chars));
2205
2230
  break;
2206
- case Xn:
2231
+ case Zn:
2207
2232
  s.push(`<!--${Ur(m.chars)}-->`);
2208
2233
  break;
2209
- case Jn: {
2210
- let y = `<!DOCTYPE ${m.name}`;
2211
- m.publicIdentifier && (y += ` PUBLIC "${m.publicIdentifier}"`), m.systemIdentifier && (y += ` "${m.systemIdentifier}"`), y += ">", s.push(y);
2234
+ case Yn: {
2235
+ let _ = `<!DOCTYPE ${m.name}`;
2236
+ m.publicIdentifier && (_ += ` PUBLIC "${m.publicIdentifier}"`), m.systemIdentifier && (_ += ` "${m.systemIdentifier}"`), _ += ">", s.push(_);
2212
2237
  break;
2213
2238
  }
2214
2239
  }
2215
2240
  }
2216
2241
  return s.join("");
2217
2242
  }
2218
- function ri(e, n) {
2219
- const i = Hn(e), t = [];
2243
+ function Jn(e, n) {
2244
+ const i = In(e), t = [];
2220
2245
  for (let s = 0; s < i.length; s++) {
2221
2246
  const h = i[s];
2222
2247
  h.t === "nl" && n.get("nl2br") ? t.push({
@@ -2228,47 +2253,47 @@ function ri(e, n) {
2228
2253
  type: Mr,
2229
2254
  chars: h.toString()
2230
2255
  }) : t.push({
2231
- type: Kt,
2256
+ type: Qt,
2232
2257
  rendered: n.render(h)
2233
2258
  });
2234
2259
  }
2235
2260
  return t;
2236
2261
  }
2237
- function ti(e, n, i, t) {
2262
+ function ei(e, n, i, t) {
2238
2263
  let s = 1;
2239
2264
  for (; i < n.length && s > 0; ) {
2240
2265
  let h = n[i];
2241
- h.type === hr && h.tagName.toUpperCase() === e ? s++ : h.type === Qt && h.tagName.toUpperCase() === e && s--, t.push(h), i++;
2266
+ h.type === hr && h.tagName.toUpperCase() === e ? s++ : h.type === Zt && h.tagName.toUpperCase() === e && s--, t.push(h), i++;
2242
2267
  }
2243
2268
  return t;
2244
2269
  }
2245
- function ai(e) {
2270
+ function ri(e) {
2246
2271
  let {
2247
2272
  tagName: n,
2248
2273
  attributes: i,
2249
2274
  content: t
2250
2275
  } = e;
2251
- return `<${n} ${ni(i)}>${Ur(t)}</${n}>`;
2276
+ return `<${n} ${ti(i)}>${Ur(t)}</${n}>`;
2252
2277
  }
2253
2278
  function Ur(e) {
2254
2279
  return e.replace(/</g, "&lt;").replace(/>/g, "&gt;");
2255
2280
  }
2256
- function Zt(e) {
2281
+ function Yt(e) {
2257
2282
  return e.replace(/"/g, "&quot;");
2258
2283
  }
2259
- function ni(e) {
2284
+ function ti(e) {
2260
2285
  const n = [];
2261
2286
  for (const i in e) {
2262
2287
  const t = e[i] + "";
2263
- n.push(`${i}="${Zt(t)}"`);
2288
+ n.push(`${i}="${Yt(t)}"`);
2264
2289
  }
2265
2290
  return n.join(" ");
2266
2291
  }
2267
- function ii(e) {
2292
+ function ai(e) {
2268
2293
  const n = [];
2269
2294
  for (let i = 0; i < e.length; i++) {
2270
2295
  const t = e[i][0], s = e[i][1] + "";
2271
- n.push(`${t}="${Zt(s)}"`);
2296
+ n.push(`${t}="${Yt(s)}"`);
2272
2297
  }
2273
2298
  return n;
2274
2299
  }
@@ -2292,7 +2317,7 @@ ge.getCodePoint = String.prototype.codePointAt ? function(e, n) {
2292
2317
  };
2293
2318
  ge.highSurrogateFrom = 55296;
2294
2319
  ge.highSurrogateTo = 56319;
2295
- var he = je && je.__assign || function() {
2320
+ var he = Ie && Ie.__assign || function() {
2296
2321
  return he = Object.assign || function(e) {
2297
2322
  for (var n, i = 1, t = arguments.length; i < t; i++) {
2298
2323
  n = arguments[i];
@@ -2303,21 +2328,21 @@ var he = je && je.__assign || function() {
2303
2328
  }, he.apply(this, arguments);
2304
2329
  };
2305
2330
  Object.defineProperty(br, "__esModule", { value: !0 });
2306
- var _e = vr, Yt = Xr, Jr = ge, et = he(he({}, _e.namedReferences), { all: _e.namedReferences.html5 }), ui = {
2331
+ var _e = vr, Xt = Xr, Jr = ge, et = he(he({}, _e.namedReferences), { all: _e.namedReferences.html5 }), ni = {
2307
2332
  specialChars: /[<>'"&]/g,
2308
2333
  nonAscii: /(?:[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,
2309
2334
  nonAsciiPrintable: /(?:[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,
2310
2335
  extensive: /(?:[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g
2311
- }, si = {
2336
+ }, ii = {
2312
2337
  mode: "specialChars",
2313
2338
  level: "all",
2314
2339
  numeric: "decimal"
2315
2340
  };
2316
- function di(e, n) {
2317
- var S = n === void 0 ? si : n, E = S.mode, i = E === void 0 ? "specialChars" : E, t = S.numeric, s = t === void 0 ? "decimal" : t, h = S.level, g = h === void 0 ? "all" : h;
2341
+ function ui(e, n) {
2342
+ var S = n === void 0 ? ii : n, E = S.mode, i = E === void 0 ? "specialChars" : E, t = S.numeric, s = t === void 0 ? "decimal" : t, h = S.level, g = h === void 0 ? "all" : h;
2318
2343
  if (!e)
2319
2344
  return "";
2320
- var m = ui[i], y = et[g].characters, D = s === "hexadecimal";
2345
+ var m = ni[i], _ = et[g].characters, D = s === "hexadecimal";
2321
2346
  m.lastIndex = 0;
2322
2347
  var S = m.exec(e), E;
2323
2348
  if (S) {
@@ -2325,7 +2350,7 @@ function di(e, n) {
2325
2350
  var t = 0;
2326
2351
  do {
2327
2352
  t !== S.index && (E += e.substring(t, S.index));
2328
- var h = S[0], k = y[h];
2353
+ var h = S[0], k = _[h];
2329
2354
  if (!k) {
2330
2355
  var q = h.length > 1 ? Jr.getCodePoint(h, 0) : h.charCodeAt(0);
2331
2356
  k = (D ? "&#x" + q.toString(16) : "&#" + q) + ";";
@@ -2337,11 +2362,11 @@ function di(e, n) {
2337
2362
  E = e;
2338
2363
  return E;
2339
2364
  }
2340
- br.encode = di;
2341
- var oi = {
2365
+ br.encode = ui;
2366
+ var si = {
2342
2367
  scope: "body",
2343
2368
  level: "all"
2344
- }, Sr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g, Lr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g, Tt = {
2369
+ }, Sr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g, Lr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g, At = {
2345
2370
  xml: {
2346
2371
  strict: Sr,
2347
2372
  attribute: Lr,
@@ -2357,11 +2382,11 @@ var oi = {
2357
2382
  attribute: Lr,
2358
2383
  body: _e.bodyRegExps.html5
2359
2384
  }
2360
- }, ci = he(he({}, Tt), { all: Tt.html5 }), rt = String.fromCharCode, Xt = rt(65533), li = {
2385
+ }, di = he(he({}, At), { all: At.html5 }), rt = String.fromCharCode, Jt = rt(65533), oi = {
2361
2386
  level: "all"
2362
2387
  };
2363
- function fi(e, n) {
2364
- var t = (n === void 0 ? li : n).level, i = t === void 0 ? "all" : t;
2388
+ function ci(e, n) {
2389
+ var t = (n === void 0 ? oi : n).level, i = t === void 0 ? "all" : t;
2365
2390
  if (!e)
2366
2391
  return "";
2367
2392
  var t = e;
@@ -2372,17 +2397,17 @@ function fi(e, n) {
2372
2397
  t = s;
2373
2398
  else if (e[0] === "&" && e[1] === "#") {
2374
2399
  var h = e[2], g = h == "x" || h == "X" ? parseInt(e.substr(3), 16) : parseInt(e.substr(2));
2375
- t = g >= 1114111 ? Xt : g > 65535 ? Jr.fromCodePoint(g) : rt(Yt.numericUnicodeMap[g] || g);
2400
+ t = g >= 1114111 ? Jt : g > 65535 ? Jr.fromCodePoint(g) : rt(Xt.numericUnicodeMap[g] || g);
2376
2401
  }
2377
2402
  }
2378
2403
  return t;
2379
2404
  }
2380
- br.decodeEntity = fi;
2381
- function pi(e, n) {
2382
- var i = n === void 0 ? oi : n, t = i.level, s = t === void 0 ? "all" : t, h = i.scope, g = h === void 0 ? s === "xml" ? "strict" : "body" : h;
2405
+ br.decodeEntity = ci;
2406
+ function li(e, n) {
2407
+ var i = n === void 0 ? si : n, t = i.level, s = t === void 0 ? "all" : t, h = i.scope, g = h === void 0 ? s === "xml" ? "strict" : "body" : h;
2383
2408
  if (!e)
2384
2409
  return "";
2385
- var m = ci[s][g], y = et[s].entities, D = g === "attribute", S = g === "strict";
2410
+ var m = di[s][g], _ = et[s].entities, D = g === "attribute", S = g === "strict";
2386
2411
  m.lastIndex = 0;
2387
2412
  var E = m.exec(e), k;
2388
2413
  if (E) {
@@ -2390,18 +2415,18 @@ function pi(e, n) {
2390
2415
  var q = 0;
2391
2416
  do {
2392
2417
  q !== E.index && (k += e.substring(q, E.index));
2393
- var L = E[0], P = L, z = L[L.length - 1];
2394
- if (D && z === "=")
2418
+ var L = E[0], P = L, N = L[L.length - 1];
2419
+ if (D && N === "=")
2395
2420
  P = L;
2396
- else if (S && z !== ";")
2421
+ else if (S && N !== ";")
2397
2422
  P = L;
2398
2423
  else {
2399
- var j = y[L];
2400
- if (j)
2401
- P = j;
2424
+ var I = _[L];
2425
+ if (I)
2426
+ P = I;
2402
2427
  else if (L[0] === "&" && L[1] === "#") {
2403
2428
  var H = L[2], x = H == "x" || H == "X" ? parseInt(L.substr(3), 16) : parseInt(L.substr(2));
2404
- P = x >= 1114111 ? Xt : x > 65535 ? Jr.fromCodePoint(x) : rt(Yt.numericUnicodeMap[x] || x);
2429
+ P = x >= 1114111 ? Jt : x > 65535 ? Jr.fromCodePoint(x) : rt(Xt.numericUnicodeMap[x] || x);
2405
2430
  }
2406
2431
  }
2407
2432
  k += P, q = E.index + L.length;
@@ -2411,7 +2436,7 @@ function pi(e, n) {
2411
2436
  k = e;
2412
2437
  return k;
2413
2438
  }
2414
- var Jt = br.decode = pi, ea = { exports: {} };
2439
+ var ea = br.decode = li, ra = { exports: {} };
2415
2440
  (function(e) {
2416
2441
  (function() {
2417
2442
  function n(r) {
@@ -2595,7 +2620,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
2595
2620
  r.hasOwnProperty(a) && (u[a] = !0);
2596
2621
  return u;
2597
2622
  }
2598
- var t = {}, s = {}, h = {}, g = n(!0), m = "vanilla", y = {
2623
+ var t = {}, s = {}, h = {}, g = n(!0), m = "vanilla", _ = {
2599
2624
  github: {
2600
2625
  omitExtraWLInCodeBlocks: !0,
2601
2626
  simplifiedAutoLink: !0,
@@ -2648,18 +2673,18 @@ var Jt = br.decode = pi, ea = { exports: {} };
2648
2673
  }, t.resetOptions = function() {
2649
2674
  g = n(!0);
2650
2675
  }, t.setFlavor = function(r) {
2651
- if (!y.hasOwnProperty(r))
2676
+ if (!_.hasOwnProperty(r))
2652
2677
  throw Error(r + " flavor was not found");
2653
2678
  t.resetOptions();
2654
- var u = y[r];
2679
+ var u = _[r];
2655
2680
  m = r;
2656
2681
  for (var a in u)
2657
2682
  u.hasOwnProperty(a) && (g[a] = u[a]);
2658
2683
  }, t.getFlavor = function() {
2659
2684
  return m;
2660
2685
  }, t.getFlavorOptions = function(r) {
2661
- if (y.hasOwnProperty(r))
2662
- return y[r];
2686
+ if (_.hasOwnProperty(r))
2687
+ return _[r];
2663
2688
  }, t.getDefaultOptions = function(r) {
2664
2689
  return n(r);
2665
2690
  }, t.subParser = function(r, u) {
@@ -2699,8 +2724,8 @@ var Jt = br.decode = pi, ea = { exports: {} };
2699
2724
  error: ""
2700
2725
  };
2701
2726
  t.helper.isArray(r) || (r = [r]);
2702
- for (var o = 0; o < r.length; ++o) {
2703
- var f = a + " sub-extension " + o + ": ", l = r[o];
2727
+ for (var c = 0; c < r.length; ++c) {
2728
+ var f = a + " sub-extension " + c + ": ", l = r[c];
2704
2729
  if (typeof l != "object")
2705
2730
  return d.valid = !1, d.error = f + "must be an object, but " + typeof l + " given", d;
2706
2731
  if (!t.helper.isString(l.type))
@@ -2771,24 +2796,24 @@ var Jt = br.decode = pi, ea = { exports: {} };
2771
2796
  t.helper.escapeCharactersCallback = S, t.helper.escapeCharacters = function(r, u, a) {
2772
2797
  var d = "([" + u.replace(/([\[\]\\])/g, "\\$1") + "])";
2773
2798
  a && (d = "\\\\" + d);
2774
- var o = new RegExp(d, "g");
2775
- return r = r.replace(o, S), r;
2799
+ var c = new RegExp(d, "g");
2800
+ return r = r.replace(c, S), r;
2776
2801
  }, t.helper.unescapeHTMLEntities = function(r) {
2777
2802
  return r.replace(/&quot;/g, '"').replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
2778
2803
  };
2779
2804
  var E = function(r, u, a, d) {
2780
- var o = d || "", f = o.indexOf("g") > -1, l = new RegExp(u + "|" + a, "g" + o.replace(/g/g, "")), p = new RegExp(u, o.replace(/g/g, "")), T = [], v, b, _, c, w;
2805
+ var c = d || "", f = c.indexOf("g") > -1, l = new RegExp(u + "|" + a, "g" + c.replace(/g/g, "")), p = new RegExp(u, c.replace(/g/g, "")), T = [], v, b, y, o, w;
2781
2806
  do
2782
- for (v = 0; _ = l.exec(r); )
2783
- if (p.test(_[0]))
2784
- v++ || (b = l.lastIndex, c = b - _[0].length);
2807
+ for (v = 0; y = l.exec(r); )
2808
+ if (p.test(y[0]))
2809
+ v++ || (b = l.lastIndex, o = b - y[0].length);
2785
2810
  else if (v && !--v) {
2786
- w = _.index + _[0].length;
2811
+ w = y.index + y[0].length;
2787
2812
  var A = {
2788
- left: { start: c, end: b },
2789
- match: { start: b, end: _.index },
2790
- right: { start: _.index, end: w },
2791
- wholeMatch: { start: c, end: w }
2813
+ left: { start: o, end: b },
2814
+ match: { start: b, end: y.index },
2815
+ right: { start: y.index, end: w },
2816
+ wholeMatch: { start: o, end: w }
2792
2817
  };
2793
2818
  if (T.push(A), !f)
2794
2819
  return T;
@@ -2797,22 +2822,22 @@ var Jt = br.decode = pi, ea = { exports: {} };
2797
2822
  return T;
2798
2823
  };
2799
2824
  t.helper.matchRecursiveRegExp = function(r, u, a, d) {
2800
- for (var o = E(r, u, a, d), f = [], l = 0; l < o.length; ++l)
2825
+ for (var c = E(r, u, a, d), f = [], l = 0; l < c.length; ++l)
2801
2826
  f.push([
2802
- r.slice(o[l].wholeMatch.start, o[l].wholeMatch.end),
2803
- r.slice(o[l].match.start, o[l].match.end),
2804
- r.slice(o[l].left.start, o[l].left.end),
2805
- r.slice(o[l].right.start, o[l].right.end)
2827
+ r.slice(c[l].wholeMatch.start, c[l].wholeMatch.end),
2828
+ r.slice(c[l].match.start, c[l].match.end),
2829
+ r.slice(c[l].left.start, c[l].left.end),
2830
+ r.slice(c[l].right.start, c[l].right.end)
2806
2831
  ]);
2807
2832
  return f;
2808
- }, t.helper.replaceRecursiveRegExp = function(r, u, a, d, o) {
2833
+ }, t.helper.replaceRecursiveRegExp = function(r, u, a, d, c) {
2809
2834
  if (!t.helper.isFunction(u)) {
2810
2835
  var f = u;
2811
2836
  u = function() {
2812
2837
  return f;
2813
2838
  };
2814
2839
  }
2815
- var l = E(r, a, d, o), p = r, T = l.length;
2840
+ var l = E(r, a, d, c), p = r, T = l.length;
2816
2841
  if (T > 0) {
2817
2842
  var v = [];
2818
2843
  l[0].wholeMatch.start !== 0 && v.push(r.slice(0, l[0].wholeMatch.start));
@@ -4052,7 +4077,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
4052
4077
  octocat: '<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',
4053
4078
  showdown: `<span style="font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;">S</span>`
4054
4079
  }, t.Converter = function(r) {
4055
- var u = {}, a = [], d = [], o = {}, f = m, l = {
4080
+ var u = {}, a = [], d = [], c = {}, f = m, l = {
4056
4081
  parsed: {},
4057
4082
  raw: "",
4058
4083
  format: ""
@@ -4060,8 +4085,8 @@ var Jt = br.decode = pi, ea = { exports: {} };
4060
4085
  p();
4061
4086
  function p() {
4062
4087
  r = r || {};
4063
- for (var c in g)
4064
- g.hasOwnProperty(c) && (u[c] = g[c]);
4088
+ for (var o in g)
4089
+ g.hasOwnProperty(o) && (u[o] = g[o]);
4065
4090
  if (typeof r == "object")
4066
4091
  for (var w in r)
4067
4092
  r.hasOwnProperty(w) && (u[w] = r[w]);
@@ -4069,73 +4094,73 @@ var Jt = br.decode = pi, ea = { exports: {} };
4069
4094
  throw Error("Converter expects the passed parameter to be an object, but " + typeof r + " was passed instead.");
4070
4095
  u.extensions && t.helper.forEach(u.extensions, T);
4071
4096
  }
4072
- function T(c, w) {
4073
- if (w = w || null, t.helper.isString(c))
4074
- if (c = t.helper.stdExtName(c), w = c, t.extensions[c]) {
4075
- console.warn("DEPRECATION WARNING: " + c + " is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"), v(t.extensions[c], c);
4097
+ function T(o, w) {
4098
+ if (w = w || null, t.helper.isString(o))
4099
+ if (o = t.helper.stdExtName(o), w = o, t.extensions[o]) {
4100
+ console.warn("DEPRECATION WARNING: " + o + " is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"), v(t.extensions[o], o);
4076
4101
  return;
4077
- } else if (!t.helper.isUndefined(h[c]))
4078
- c = h[c];
4102
+ } else if (!t.helper.isUndefined(h[o]))
4103
+ o = h[o];
4079
4104
  else
4080
- throw Error('Extension "' + c + '" could not be loaded. It was either not found or is not a valid extension.');
4081
- typeof c == "function" && (c = c()), t.helper.isArray(c) || (c = [c]);
4082
- var A = D(c, w);
4105
+ throw Error('Extension "' + o + '" could not be loaded. It was either not found or is not a valid extension.');
4106
+ typeof o == "function" && (o = o()), t.helper.isArray(o) || (o = [o]);
4107
+ var A = D(o, w);
4083
4108
  if (!A.valid)
4084
4109
  throw Error(A.error);
4085
- for (var R = 0; R < c.length; ++R) {
4086
- switch (c[R].type) {
4110
+ for (var R = 0; R < o.length; ++R) {
4111
+ switch (o[R].type) {
4087
4112
  case "lang":
4088
- a.push(c[R]);
4113
+ a.push(o[R]);
4089
4114
  break;
4090
4115
  case "output":
4091
- d.push(c[R]);
4116
+ d.push(o[R]);
4092
4117
  break;
4093
4118
  }
4094
- if (c[R].hasOwnProperty("listeners"))
4095
- for (var O in c[R].listeners)
4096
- c[R].listeners.hasOwnProperty(O) && b(O, c[R].listeners[O]);
4119
+ if (o[R].hasOwnProperty("listeners"))
4120
+ for (var O in o[R].listeners)
4121
+ o[R].listeners.hasOwnProperty(O) && b(O, o[R].listeners[O]);
4097
4122
  }
4098
4123
  }
4099
- function v(c, w) {
4100
- typeof c == "function" && (c = c(new t.Converter())), t.helper.isArray(c) || (c = [c]);
4101
- var A = D(c, w);
4124
+ function v(o, w) {
4125
+ typeof o == "function" && (o = o(new t.Converter())), t.helper.isArray(o) || (o = [o]);
4126
+ var A = D(o, w);
4102
4127
  if (!A.valid)
4103
4128
  throw Error(A.error);
4104
- for (var R = 0; R < c.length; ++R)
4105
- switch (c[R].type) {
4129
+ for (var R = 0; R < o.length; ++R)
4130
+ switch (o[R].type) {
4106
4131
  case "lang":
4107
- a.push(c[R]);
4132
+ a.push(o[R]);
4108
4133
  break;
4109
4134
  case "output":
4110
- d.push(c[R]);
4135
+ d.push(o[R]);
4111
4136
  break;
4112
4137
  default:
4113
4138
  throw Error("Extension loader error: Type unrecognized!!!");
4114
4139
  }
4115
4140
  }
4116
- function b(c, w) {
4117
- if (!t.helper.isString(c))
4118
- throw Error("Invalid argument in converter.listen() method: name must be a string, but " + typeof c + " given");
4141
+ function b(o, w) {
4142
+ if (!t.helper.isString(o))
4143
+ throw Error("Invalid argument in converter.listen() method: name must be a string, but " + typeof o + " given");
4119
4144
  if (typeof w != "function")
4120
4145
  throw Error("Invalid argument in converter.listen() method: callback must be a function, but " + typeof w + " given");
4121
- o.hasOwnProperty(c) || (o[c] = []), o[c].push(w);
4146
+ c.hasOwnProperty(o) || (c[o] = []), c[o].push(w);
4122
4147
  }
4123
- function _(c) {
4124
- var w = c.match(/^\s*/)[0].length, A = new RegExp("^\\s{0," + w + "}", "gm");
4125
- return c.replace(A, "");
4148
+ function y(o) {
4149
+ var w = o.match(/^\s*/)[0].length, A = new RegExp("^\\s{0," + w + "}", "gm");
4150
+ return o.replace(A, "");
4126
4151
  }
4127
4152
  this._dispatch = function(w, A, R, O) {
4128
- if (o.hasOwnProperty(w))
4129
- for (var N = 0; N < o[w].length; ++N) {
4130
- var B = o[w][N](w, A, this, R, O);
4153
+ if (c.hasOwnProperty(w))
4154
+ for (var j = 0; j < c[w].length; ++j) {
4155
+ var B = c[w][j](w, A, this, R, O);
4131
4156
  B && typeof B < "u" && (A = B);
4132
4157
  }
4133
4158
  return A;
4134
- }, this.listen = function(c, w) {
4135
- return b(c, w), this;
4136
- }, this.makeHtml = function(c) {
4137
- if (!c)
4138
- return c;
4159
+ }, this.listen = function(o, w) {
4160
+ return b(o, w), this;
4161
+ }, this.makeHtml = function(o) {
4162
+ if (!o)
4163
+ return o;
4139
4164
  var w = {
4140
4165
  gHtmlBlocks: [],
4141
4166
  gHtmlMdBlocks: [],
@@ -4155,33 +4180,33 @@ var Jt = br.decode = pi, ea = { exports: {} };
4155
4180
  format: ""
4156
4181
  }
4157
4182
  };
4158
- return c = c.replace(/¨/g, "¨T"), c = c.replace(/\$/g, "¨D"), c = c.replace(/\r\n/g, `
4159
- `), c = c.replace(/\r/g, `
4160
- `), c = c.replace(/\u00A0/g, "&nbsp;"), u.smartIndentationFix && (c = _(c)), c = `
4183
+ return o = o.replace(/¨/g, "¨T"), o = o.replace(/\$/g, "¨D"), o = o.replace(/\r\n/g, `
4184
+ `), o = o.replace(/\r/g, `
4185
+ `), o = o.replace(/\u00A0/g, "&nbsp;"), u.smartIndentationFix && (o = y(o)), o = `
4161
4186
 
4162
- ` + c + `
4187
+ ` + o + `
4163
4188
 
4164
- `, c = t.subParser("detab")(c, u, w), c = c.replace(/^[ \t]+$/mg, ""), t.helper.forEach(a, function(A) {
4165
- c = t.subParser("runExtension")(A, c, u, w);
4166
- }), c = t.subParser("metadata")(c, u, w), c = t.subParser("hashPreCodeTags")(c, u, w), c = t.subParser("githubCodeBlocks")(c, u, w), c = t.subParser("hashHTMLBlocks")(c, u, w), c = t.subParser("hashCodeTags")(c, u, w), c = t.subParser("stripLinkDefinitions")(c, u, w), c = t.subParser("blockGamut")(c, u, w), c = t.subParser("unhashHTMLSpans")(c, u, w), c = t.subParser("unescapeSpecialChars")(c, u, w), c = c.replace(/¨D/g, "$$"), c = c.replace(/¨T/g, "¨"), c = t.subParser("completeHTMLDocument")(c, u, w), t.helper.forEach(d, function(A) {
4167
- c = t.subParser("runExtension")(A, c, u, w);
4168
- }), l = w.metadata, c;
4169
- }, this.makeMarkdown = this.makeMd = function(c, w) {
4170
- if (c = c.replace(/\r\n/g, `
4171
- `), c = c.replace(/\r/g, `
4172
- `), c = c.replace(/>[ \t]+</, ">¨NBSP;<"), !w)
4189
+ `, o = t.subParser("detab")(o, u, w), o = o.replace(/^[ \t]+$/mg, ""), t.helper.forEach(a, function(A) {
4190
+ o = t.subParser("runExtension")(A, o, u, w);
4191
+ }), o = t.subParser("metadata")(o, u, w), o = t.subParser("hashPreCodeTags")(o, u, w), o = t.subParser("githubCodeBlocks")(o, u, w), o = t.subParser("hashHTMLBlocks")(o, u, w), o = t.subParser("hashCodeTags")(o, u, w), o = t.subParser("stripLinkDefinitions")(o, u, w), o = t.subParser("blockGamut")(o, u, w), o = t.subParser("unhashHTMLSpans")(o, u, w), o = t.subParser("unescapeSpecialChars")(o, u, w), o = o.replace(/¨D/g, "$$"), o = o.replace(/¨T/g, "¨"), o = t.subParser("completeHTMLDocument")(o, u, w), t.helper.forEach(d, function(A) {
4192
+ o = t.subParser("runExtension")(A, o, u, w);
4193
+ }), l = w.metadata, o;
4194
+ }, this.makeMarkdown = this.makeMd = function(o, w) {
4195
+ if (o = o.replace(/\r\n/g, `
4196
+ `), o = o.replace(/\r/g, `
4197
+ `), o = o.replace(/>[ \t]+</, ">¨NBSP;<"), !w)
4173
4198
  if (window && window.document)
4174
4199
  w = window.document;
4175
4200
  else
4176
4201
  throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");
4177
4202
  var A = w.createElement("div");
4178
- A.innerHTML = c;
4203
+ A.innerHTML = o;
4179
4204
  var R = {
4180
4205
  preList: J(A)
4181
4206
  };
4182
4207
  G(A);
4183
- for (var O = A.childNodes, N = "", B = 0; B < O.length; B++)
4184
- N += t.subParser("makeMarkdown.node")(O[B], R);
4208
+ for (var O = A.childNodes, j = "", B = 0; B < O.length; B++)
4209
+ j += t.subParser("makeMarkdown.node")(O[B], R);
4185
4210
  function G(U) {
4186
4211
  for (var $ = 0; $ < U.childNodes.length; ++$) {
4187
4212
  var W = U.childNodes[$];
@@ -4206,30 +4231,30 @@ var Jt = br.decode = pi, ea = { exports: {} };
4206
4231
  W.push($[K].innerHTML), $[K].innerHTML = "", $[K].setAttribute("prenum", K.toString());
4207
4232
  return W;
4208
4233
  }
4209
- return N;
4210
- }, this.setOption = function(c, w) {
4211
- u[c] = w;
4212
- }, this.getOption = function(c) {
4213
- return u[c];
4234
+ return j;
4235
+ }, this.setOption = function(o, w) {
4236
+ u[o] = w;
4237
+ }, this.getOption = function(o) {
4238
+ return u[o];
4214
4239
  }, this.getOptions = function() {
4215
4240
  return u;
4216
- }, this.addExtension = function(c, w) {
4217
- w = w || null, T(c, w);
4218
- }, this.useExtension = function(c) {
4219
- T(c);
4220
- }, this.setFlavor = function(c) {
4221
- if (!y.hasOwnProperty(c))
4222
- throw Error(c + " flavor was not found");
4223
- var w = y[c];
4224
- f = c;
4241
+ }, this.addExtension = function(o, w) {
4242
+ w = w || null, T(o, w);
4243
+ }, this.useExtension = function(o) {
4244
+ T(o);
4245
+ }, this.setFlavor = function(o) {
4246
+ if (!_.hasOwnProperty(o))
4247
+ throw Error(o + " flavor was not found");
4248
+ var w = _[o];
4249
+ f = o;
4225
4250
  for (var A in w)
4226
4251
  w.hasOwnProperty(A) && (u[A] = w[A]);
4227
4252
  }, this.getFlavor = function() {
4228
4253
  return f;
4229
- }, this.removeExtension = function(c) {
4230
- t.helper.isArray(c) || (c = [c]);
4231
- for (var w = 0; w < c.length; ++w) {
4232
- for (var A = c[w], R = 0; R < a.length; ++R)
4254
+ }, this.removeExtension = function(o) {
4255
+ t.helper.isArray(o) || (o = [o]);
4256
+ for (var w = 0; w < o.length; ++w) {
4257
+ for (var A = o[w], R = 0; R < a.length; ++R)
4233
4258
  a[R] === A && a.splice(R, 1);
4234
4259
  for (var O = 0; O < d.length; ++O)
4235
4260
  d[O] === A && d.splice(O, 1);
@@ -4239,30 +4264,30 @@ var Jt = br.decode = pi, ea = { exports: {} };
4239
4264
  language: a,
4240
4265
  output: d
4241
4266
  };
4242
- }, this.getMetadata = function(c) {
4243
- return c ? l.raw : l.parsed;
4267
+ }, this.getMetadata = function(o) {
4268
+ return o ? l.raw : l.parsed;
4244
4269
  }, this.getMetadataFormat = function() {
4245
4270
  return l.format;
4246
- }, this._setMetadataPair = function(c, w) {
4247
- l.parsed[c] = w;
4248
- }, this._setMetadataFormat = function(c) {
4249
- l.format = c;
4250
- }, this._setMetadataRaw = function(c) {
4251
- l.raw = c;
4271
+ }, this._setMetadataPair = function(o, w) {
4272
+ l.parsed[o] = w;
4273
+ }, this._setMetadataFormat = function(o) {
4274
+ l.format = o;
4275
+ }, this._setMetadataRaw = function(o) {
4276
+ l.raw = o;
4252
4277
  };
4253
4278
  }, t.subParser("anchors", function(r, u, a) {
4254
4279
  r = a.converter._dispatch("anchors.before", r, u, a);
4255
- var d = function(o, f, l, p, T, v, b) {
4256
- if (t.helper.isUndefined(b) && (b = ""), l = l.toLowerCase(), o.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4280
+ var d = function(c, f, l, p, T, v, b) {
4281
+ if (t.helper.isUndefined(b) && (b = ""), l = l.toLowerCase(), c.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4257
4282
  p = "";
4258
4283
  else if (!p)
4259
4284
  if (l || (l = f.toLowerCase().replace(/ ?\n/g, " ")), p = "#" + l, !t.helper.isUndefined(a.gUrls[l]))
4260
4285
  p = a.gUrls[l], t.helper.isUndefined(a.gTitles[l]) || (b = a.gTitles[l]);
4261
4286
  else
4262
- return o;
4287
+ return c;
4263
4288
  p = p.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
4264
- var _ = '<a href="' + p + '"';
4265
- return b !== "" && b !== null && (b = b.replace(/"/g, "&quot;"), b = b.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), _ += ' title="' + b + '"'), u.openLinksInNewWindow && !/^#/.test(p) && (_ += ' rel="noopener noreferrer" target="¨E95Eblank"'), _ += ">" + f + "</a>", _;
4289
+ var y = '<a href="' + p + '"';
4290
+ return b !== "" && b !== null && (b = b.replace(/"/g, "&quot;"), b = b.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), y += ' title="' + b + '"'), u.openLinksInNewWindow && !/^#/.test(p) && (y += ' rel="noopener noreferrer" target="¨E95Eblank"'), y += ">" + f + "</a>", y;
4266
4291
  };
4267
4292
  return r = r.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g, d), r = r.replace(
4268
4293
  /\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,
@@ -4270,7 +4295,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
4270
4295
  ), r = r.replace(
4271
4296
  /\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,
4272
4297
  d
4273
- ), r = r.replace(/\[([^\[\]]+)]()()()()()/g, d), u.ghMentions && (r = r.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi, function(o, f, l, p, T) {
4298
+ ), r = r.replace(/\[([^\[\]]+)]()()()()()/g, d), u.ghMentions && (r = r.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi, function(c, f, l, p, T) {
4274
4299
  if (l === "\\")
4275
4300
  return f + p;
4276
4301
  if (!t.helper.isString(u.ghMentionsLink))
@@ -4279,22 +4304,22 @@ var Jt = br.decode = pi, ea = { exports: {} };
4279
4304
  return u.openLinksInNewWindow && (b = ' rel="noopener noreferrer" target="¨E95Eblank"'), f + '<a href="' + v + '"' + b + ">" + p + "</a>";
4280
4305
  })), r = a.converter._dispatch("anchors.after", r, u, a), r;
4281
4306
  });
4282
- var k = /([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi, q = /([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi, L = /()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi, P = /(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi, z = /<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi, j = function(r) {
4283
- return function(u, a, d, o, f, l, p) {
4307
+ var k = /([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi, q = /([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi, L = /()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi, P = /(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi, N = /<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi, I = function(r) {
4308
+ return function(u, a, d, c, f, l, p) {
4284
4309
  d = d.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
4285
- var T = d, v = "", b = "", _ = a || "", c = p || "";
4286
- return /^www\./i.test(d) && (d = d.replace(/^www\./i, "http://www.")), r.excludeTrailingPunctuationFromURLs && l && (v = l), r.openLinksInNewWindow && (b = ' rel="noopener noreferrer" target="¨E95Eblank"'), _ + '<a href="' + d + '"' + b + ">" + T + "</a>" + v + c;
4310
+ var T = d, v = "", b = "", y = a || "", o = p || "";
4311
+ return /^www\./i.test(d) && (d = d.replace(/^www\./i, "http://www.")), r.excludeTrailingPunctuationFromURLs && l && (v = l), r.openLinksInNewWindow && (b = ' rel="noopener noreferrer" target="¨E95Eblank"'), y + '<a href="' + d + '"' + b + ">" + T + "</a>" + v + o;
4287
4312
  };
4288
4313
  }, H = function(r, u) {
4289
- return function(a, d, o) {
4314
+ return function(a, d, c) {
4290
4315
  var f = "mailto:";
4291
- return d = d || "", o = t.subParser("unescapeSpecialChars")(o, r, u), r.encodeEmails ? (f = t.helper.encodeEmailAddress(f + o), o = t.helper.encodeEmailAddress(o)) : f = f + o, d + '<a href="' + f + '">' + o + "</a>";
4316
+ return d = d || "", c = t.subParser("unescapeSpecialChars")(c, r, u), r.encodeEmails ? (f = t.helper.encodeEmailAddress(f + c), c = t.helper.encodeEmailAddress(c)) : f = f + c, d + '<a href="' + f + '">' + c + "</a>";
4292
4317
  };
4293
4318
  };
4294
4319
  t.subParser("autoLinks", function(r, u, a) {
4295
- return r = a.converter._dispatch("autoLinks.before", r, u, a), r = r.replace(L, j(u)), r = r.replace(z, H(u, a)), r = a.converter._dispatch("autoLinks.after", r, u, a), r;
4320
+ return r = a.converter._dispatch("autoLinks.before", r, u, a), r = r.replace(L, I(u)), r = r.replace(N, H(u, a)), r = a.converter._dispatch("autoLinks.after", r, u, a), r;
4296
4321
  }), t.subParser("simplifiedAutoLinks", function(r, u, a) {
4297
- return u.simplifiedAutoLink && (r = a.converter._dispatch("simplifiedAutoLinks.before", r, u, a), u.excludeTrailingPunctuationFromURLs ? r = r.replace(q, j(u)) : r = r.replace(k, j(u)), r = r.replace(P, H(u, a)), r = a.converter._dispatch("simplifiedAutoLinks.after", r, u, a)), r;
4322
+ return u.simplifiedAutoLink && (r = a.converter._dispatch("simplifiedAutoLinks.before", r, u, a), u.excludeTrailingPunctuationFromURLs ? r = r.replace(q, I(u)) : r = r.replace(k, I(u)), r = r.replace(P, H(u, a)), r = a.converter._dispatch("simplifiedAutoLinks.after", r, u, a)), r;
4298
4323
  }), t.subParser("blockGamut", function(r, u, a) {
4299
4324
  return r = a.converter._dispatch("blockGamut.before", r, u, a), r = t.subParser("blockQuotes")(r, u, a), r = t.subParser("headers")(r, u, a), r = t.subParser("horizontalRule")(r, u, a), r = t.subParser("lists")(r, u, a), r = t.subParser("codeBlocks")(r, u, a), r = t.subParser("tables")(r, u, a), r = t.subParser("hashHTMLBlocks")(r, u, a), r = t.subParser("paragraphs")(r, u, a), r = a.converter._dispatch("blockGamut.after", r, u, a), r;
4300
4325
  }), t.subParser("blockQuotes", function(r, u, a) {
@@ -4302,18 +4327,18 @@ var Jt = br.decode = pi, ea = { exports: {} };
4302
4327
 
4303
4328
  `;
4304
4329
  var d = /(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;
4305
- return u.splitAdjacentBlockquotes && (d = /^ {0,3}>[\s\S]*?(?:\n\n)/gm), r = r.replace(d, function(o) {
4306
- return o = o.replace(/^[ \t]*>[ \t]?/gm, ""), o = o.replace(/¨0/g, ""), o = o.replace(/^[ \t]+$/gm, ""), o = t.subParser("githubCodeBlocks")(o, u, a), o = t.subParser("blockGamut")(o, u, a), o = o.replace(/(^|\n)/g, "$1 "), o = o.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm, function(f, l) {
4330
+ return u.splitAdjacentBlockquotes && (d = /^ {0,3}>[\s\S]*?(?:\n\n)/gm), r = r.replace(d, function(c) {
4331
+ return c = c.replace(/^[ \t]*>[ \t]?/gm, ""), c = c.replace(/¨0/g, ""), c = c.replace(/^[ \t]+$/gm, ""), c = t.subParser("githubCodeBlocks")(c, u, a), c = t.subParser("blockGamut")(c, u, a), c = c.replace(/(^|\n)/g, "$1 "), c = c.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm, function(f, l) {
4307
4332
  var p = l;
4308
4333
  return p = p.replace(/^ /mg, "¨0"), p = p.replace(/¨0/g, ""), p;
4309
4334
  }), t.subParser("hashBlock")(`<blockquote>
4310
- ` + o + `
4335
+ ` + c + `
4311
4336
  </blockquote>`, u, a);
4312
4337
  }), r = a.converter._dispatch("blockQuotes.after", r, u, a), r;
4313
4338
  }), t.subParser("codeBlocks", function(r, u, a) {
4314
4339
  r = a.converter._dispatch("codeBlocks.before", r, u, a), r += "¨0";
4315
4340
  var d = /(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;
4316
- return r = r.replace(d, function(o, f, l) {
4341
+ return r = r.replace(d, function(c, f, l) {
4317
4342
  var p = f, T = l, v = `
4318
4343
  `;
4319
4344
  return p = t.subParser("outdent")(p, u, a), p = t.subParser("encodeCode")(p, u, a), p = t.subParser("detab")(p, u, a), p = p.replace(/^\n+/g, ""), p = p.replace(/\n+$/g, ""), u.omitExtraWLInCodeBlocks && (v = ""), p = "<pre><code>" + p + v + "</code></pre>", t.subParser("hashBlock")(p, u, a) + T;
@@ -4321,19 +4346,19 @@ var Jt = br.decode = pi, ea = { exports: {} };
4321
4346
  }), t.subParser("codeSpans", function(r, u, a) {
4322
4347
  return r = a.converter._dispatch("codeSpans.before", r, u, a), typeof r > "u" && (r = ""), r = r.replace(
4323
4348
  /(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,
4324
- function(d, o, f, l) {
4349
+ function(d, c, f, l) {
4325
4350
  var p = l;
4326
- return p = p.replace(/^([ \t]*)/g, ""), p = p.replace(/[ \t]*$/g, ""), p = t.subParser("encodeCode")(p, u, a), p = o + "<code>" + p + "</code>", p = t.subParser("hashHTMLSpans")(p, u, a), p;
4351
+ return p = p.replace(/^([ \t]*)/g, ""), p = p.replace(/[ \t]*$/g, ""), p = t.subParser("encodeCode")(p, u, a), p = c + "<code>" + p + "</code>", p = t.subParser("hashHTMLSpans")(p, u, a), p;
4327
4352
  }
4328
4353
  ), r = a.converter._dispatch("codeSpans.after", r, u, a), r;
4329
4354
  }), t.subParser("completeHTMLDocument", function(r, u, a) {
4330
4355
  if (!u.completeHTMLDocument)
4331
4356
  return r;
4332
4357
  r = a.converter._dispatch("completeHTMLDocument.before", r, u, a);
4333
- var d = "html", o = `<!DOCTYPE HTML>
4358
+ var d = "html", c = `<!DOCTYPE HTML>
4334
4359
  `, f = "", l = `<meta charset="utf-8">
4335
4360
  `, p = "", T = "";
4336
- typeof a.metadata.parsed.doctype < "u" && (o = "<!DOCTYPE " + a.metadata.parsed.doctype + `>
4361
+ typeof a.metadata.parsed.doctype < "u" && (c = "<!DOCTYPE " + a.metadata.parsed.doctype + `>
4337
4362
  `, d = a.metadata.parsed.doctype.toString().toLowerCase(), (d === "html" || d === "html5") && (l = '<meta charset="utf-8">'));
4338
4363
  for (var v in a.metadata.parsed)
4339
4364
  if (a.metadata.parsed.hasOwnProperty(v))
@@ -4358,7 +4383,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
4358
4383
  T += '<meta name="' + v + '" content="' + a.metadata.parsed[v] + `">
4359
4384
  `;
4360
4385
  }
4361
- return r = o + "<html" + p + `>
4386
+ return r = c + "<html" + p + `>
4362
4387
  <head>
4363
4388
  ` + f + l + T + `</head>
4364
4389
  <body>
@@ -4366,8 +4391,8 @@ var Jt = br.decode = pi, ea = { exports: {} };
4366
4391
  </body>
4367
4392
  </html>`, r = a.converter._dispatch("completeHTMLDocument.after", r, u, a), r;
4368
4393
  }), t.subParser("detab", function(r, u, a) {
4369
- return r = a.converter._dispatch("detab.before", r, u, a), r = r.replace(/\t(?=\t)/g, " "), r = r.replace(/\t/g, "¨A¨B"), r = r.replace(/¨B(.+?)¨A/g, function(d, o) {
4370
- for (var f = o, l = 4 - f.length % 4, p = 0; p < l; p++)
4394
+ return r = a.converter._dispatch("detab.before", r, u, a), r = r.replace(/\t(?=\t)/g, " "), r = r.replace(/\t/g, "¨A¨B"), r = r.replace(/¨B(.+?)¨A/g, function(d, c) {
4395
+ for (var f = c, l = 4 - f.length % 4, p = 0; p < l; p++)
4371
4396
  f += " ";
4372
4397
  return f;
4373
4398
  }), r = r.replace(/¨A/g, " "), r = r.replace(/¨B/g, ""), r = a.converter._dispatch("detab.after", r, u, a), r;
@@ -4378,8 +4403,8 @@ var Jt = br.decode = pi, ea = { exports: {} };
4378
4403
  return r;
4379
4404
  r = a.converter._dispatch("emoji.before", r, u, a);
4380
4405
  var d = /:([\S]+?):/g;
4381
- return r = r.replace(d, function(o, f) {
4382
- return t.helper.emojis.hasOwnProperty(f) ? t.helper.emojis[f] : o;
4406
+ return r = r.replace(d, function(c, f) {
4407
+ return t.helper.emojis.hasOwnProperty(f) ? t.helper.emojis[f] : c;
4383
4408
  }), r = a.converter._dispatch("emoji.after", r, u, a), r;
4384
4409
  }), t.subParser("encodeAmpsAndAngles", function(r, u, a) {
4385
4410
  return r = a.converter._dispatch("encodeAmpsAndAngles.before", r, u, a), r = r.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g, "&amp;"), r = r.replace(/<(?![a-z\/?$!])/gi, "&lt;"), r = r.replace(/</g, "&lt;"), r = r.replace(/>/g, "&gt;"), r = a.converter._dispatch("encodeAmpsAndAngles.after", r, u, a), r;
@@ -4389,14 +4414,14 @@ var Jt = br.decode = pi, ea = { exports: {} };
4389
4414
  return r = a.converter._dispatch("encodeCode.before", r, u, a), r = r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/([*_{}\[\]\\=~-])/g, t.helper.escapeCharactersCallback), r = a.converter._dispatch("encodeCode.after", r, u, a), r;
4390
4415
  }), t.subParser("escapeSpecialCharsWithinTagAttributes", function(r, u, a) {
4391
4416
  r = a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before", r, u, a);
4392
- var d = /<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi, o = /<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;
4417
+ var d = /<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi, c = /<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;
4393
4418
  return r = r.replace(d, function(f) {
4394
4419
  return f.replace(/(.)<\/?code>(?=.)/g, "$1`").replace(/([\\`*_~=|])/g, t.helper.escapeCharactersCallback);
4395
- }), r = r.replace(o, function(f) {
4420
+ }), r = r.replace(c, function(f) {
4396
4421
  return f.replace(/([\\`*_~=|])/g, t.helper.escapeCharactersCallback);
4397
4422
  }), r = a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after", r, u, a), r;
4398
4423
  }), t.subParser("githubCodeBlocks", function(r, u, a) {
4399
- return u.ghCodeBlocks ? (r = a.converter._dispatch("githubCodeBlocks.before", r, u, a), r += "¨0", r = r.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g, function(d, o, f, l) {
4424
+ return u.ghCodeBlocks ? (r = a.converter._dispatch("githubCodeBlocks.before", r, u, a), r += "¨0", r = r.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g, function(d, c, f, l) {
4400
4425
  var p = u.omitExtraWLInCodeBlocks ? "" : `
4401
4426
  `;
4402
4427
  return l = t.subParser("encodeCode")(l, u, a), l = t.subParser("detab")(l, u, a), l = l.replace(/^\n+/g, ""), l = l.replace(/\n+$/g, ""), l = "<pre><code" + (f ? ' class="' + f + " language-" + f + '"' : "") + ">" + l + p + "</code></pre>", l = t.subParser("hashBlock")(l, u, a), `
@@ -4413,14 +4438,14 @@ var Jt = br.decode = pi, ea = { exports: {} };
4413
4438
  `, r = a.converter._dispatch("hashBlock.after", r, u, a), r;
4414
4439
  }), t.subParser("hashCodeTags", function(r, u, a) {
4415
4440
  r = a.converter._dispatch("hashCodeTags.before", r, u, a);
4416
- var d = function(o, f, l, p) {
4441
+ var d = function(c, f, l, p) {
4417
4442
  var T = l + t.subParser("encodeCode")(f, u, a) + p;
4418
4443
  return "¨C" + (a.gHtmlSpans.push(T) - 1) + "C";
4419
4444
  };
4420
4445
  return r = t.helper.replaceRecursiveRegExp(r, d, "<code\\b[^>]*>", "</code>", "gim"), r = a.converter._dispatch("hashCodeTags.after", r, u, a), r;
4421
4446
  }), t.subParser("hashElement", function(r, u, a) {
4422
- return function(d, o) {
4423
- var f = o;
4447
+ return function(d, c) {
4448
+ var f = c;
4424
4449
  return f = f.replace(/\n\n/g, `
4425
4450
  `), f = f.replace(/^\n/, ""), f = f.replace(/\n+$/g, ""), f = `
4426
4451
 
@@ -4465,31 +4490,31 @@ var Jt = br.decode = pi, ea = { exports: {} };
4465
4490
  "output",
4466
4491
  "video",
4467
4492
  "p"
4468
- ], o = function(c, w, A, R) {
4469
- var O = c;
4493
+ ], c = function(o, w, A, R) {
4494
+ var O = o;
4470
4495
  return A.search(/\bmarkdown\b/) !== -1 && (O = A + a.converter.makeHtml(w) + R), `
4471
4496
 
4472
4497
  ¨K` + (a.gHtmlBlocks.push(O) - 1) + `K
4473
4498
 
4474
4499
  `;
4475
4500
  };
4476
- u.backslashEscapesHTMLTags && (r = r.replace(/\\<(\/?[^>]+?)>/g, function(c, w) {
4501
+ u.backslashEscapesHTMLTags && (r = r.replace(/\\<(\/?[^>]+?)>/g, function(o, w) {
4477
4502
  return "&lt;" + w + "&gt;";
4478
4503
  }));
4479
4504
  for (var f = 0; f < d.length; ++f)
4480
4505
  for (var l, p = new RegExp("^ {0,3}(<" + d[f] + "\\b[^>]*>)", "im"), T = "<" + d[f] + "\\b[^>]*>", v = "</" + d[f] + ">"; (l = t.helper.regexIndexOf(r, p)) !== -1; ) {
4481
- var b = t.helper.splitAtIndex(r, l), _ = t.helper.replaceRecursiveRegExp(b[1], o, T, v, "im");
4482
- if (_ === b[1])
4506
+ var b = t.helper.splitAtIndex(r, l), y = t.helper.replaceRecursiveRegExp(b[1], c, T, v, "im");
4507
+ if (y === b[1])
4483
4508
  break;
4484
- r = b[0].concat(_);
4509
+ r = b[0].concat(y);
4485
4510
  }
4486
4511
  return r = r.replace(
4487
4512
  /(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,
4488
4513
  t.subParser("hashElement")(r, u, a)
4489
- ), r = t.helper.replaceRecursiveRegExp(r, function(c) {
4514
+ ), r = t.helper.replaceRecursiveRegExp(r, function(o) {
4490
4515
  return `
4491
4516
 
4492
- ¨K` + (a.gHtmlBlocks.push(c) - 1) + `K
4517
+ ¨K` + (a.gHtmlBlocks.push(o) - 1) + `K
4493
4518
 
4494
4519
  `;
4495
4520
  }, "^ {0,3}<!--", "-->", "gm"), r = r.replace(
@@ -4498,65 +4523,65 @@ var Jt = br.decode = pi, ea = { exports: {} };
4498
4523
  ), r = a.converter._dispatch("hashHTMLBlocks.after", r, u, a), r;
4499
4524
  }), t.subParser("hashHTMLSpans", function(r, u, a) {
4500
4525
  r = a.converter._dispatch("hashHTMLSpans.before", r, u, a);
4501
- function d(o) {
4502
- return "¨C" + (a.gHtmlSpans.push(o) - 1) + "C";
4526
+ function d(c) {
4527
+ return "¨C" + (a.gHtmlSpans.push(c) - 1) + "C";
4503
4528
  }
4504
- return r = r.replace(/<[^>]+?\/>/gi, function(o) {
4505
- return d(o);
4506
- }), r = r.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g, function(o) {
4507
- return d(o);
4508
- }), r = r.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g, function(o) {
4509
- return d(o);
4510
- }), r = r.replace(/<[^>]+?>/gi, function(o) {
4511
- return d(o);
4529
+ return r = r.replace(/<[^>]+?\/>/gi, function(c) {
4530
+ return d(c);
4531
+ }), r = r.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g, function(c) {
4532
+ return d(c);
4533
+ }), r = r.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g, function(c) {
4534
+ return d(c);
4535
+ }), r = r.replace(/<[^>]+?>/gi, function(c) {
4536
+ return d(c);
4512
4537
  }), r = a.converter._dispatch("hashHTMLSpans.after", r, u, a), r;
4513
4538
  }), t.subParser("unhashHTMLSpans", function(r, u, a) {
4514
4539
  r = a.converter._dispatch("unhashHTMLSpans.before", r, u, a);
4515
4540
  for (var d = 0; d < a.gHtmlSpans.length; ++d) {
4516
- for (var o = a.gHtmlSpans[d], f = 0; /¨C(\d+)C/.test(o); ) {
4541
+ for (var c = a.gHtmlSpans[d], f = 0; /¨C(\d+)C/.test(c); ) {
4517
4542
  var l = RegExp.$1;
4518
- if (o = o.replace("¨C" + l + "C", a.gHtmlSpans[l]), f === 10) {
4543
+ if (c = c.replace("¨C" + l + "C", a.gHtmlSpans[l]), f === 10) {
4519
4544
  console.error("maximum nesting of 10 spans reached!!!");
4520
4545
  break;
4521
4546
  }
4522
4547
  ++f;
4523
4548
  }
4524
- r = r.replace("¨C" + d + "C", o);
4549
+ r = r.replace("¨C" + d + "C", c);
4525
4550
  }
4526
4551
  return r = a.converter._dispatch("unhashHTMLSpans.after", r, u, a), r;
4527
4552
  }), t.subParser("hashPreCodeTags", function(r, u, a) {
4528
4553
  r = a.converter._dispatch("hashPreCodeTags.before", r, u, a);
4529
- var d = function(o, f, l, p) {
4554
+ var d = function(c, f, l, p) {
4530
4555
  var T = l + t.subParser("encodeCode")(f, u, a) + p;
4531
4556
  return `
4532
4557
 
4533
- ¨G` + (a.ghCodeBlocks.push({ text: o, codeblock: T }) - 1) + `G
4558
+ ¨G` + (a.ghCodeBlocks.push({ text: c, codeblock: T }) - 1) + `G
4534
4559
 
4535
4560
  `;
4536
4561
  };
4537
4562
  return r = t.helper.replaceRecursiveRegExp(r, d, "^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>", "^ {0,3}</code>\\s*</pre>", "gim"), r = a.converter._dispatch("hashPreCodeTags.after", r, u, a), r;
4538
4563
  }), t.subParser("headers", function(r, u, a) {
4539
4564
  r = a.converter._dispatch("headers.before", r, u, a);
4540
- var d = isNaN(parseInt(u.headerLevelStart)) ? 1 : parseInt(u.headerLevelStart), o = u.smoothLivePreview ? /^(.+)[ \t]*\n={2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n=+[ \t]*\n+/gm, f = u.smoothLivePreview ? /^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n-+[ \t]*\n+/gm;
4541
- r = r.replace(o, function(T, v) {
4542
- var b = t.subParser("spanGamut")(v, u, a), _ = u.noHeaderId ? "" : ' id="' + p(v) + '"', c = d, w = "<h" + c + _ + ">" + b + "</h" + c + ">";
4565
+ var d = isNaN(parseInt(u.headerLevelStart)) ? 1 : parseInt(u.headerLevelStart), c = u.smoothLivePreview ? /^(.+)[ \t]*\n={2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n=+[ \t]*\n+/gm, f = u.smoothLivePreview ? /^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n-+[ \t]*\n+/gm;
4566
+ r = r.replace(c, function(T, v) {
4567
+ var b = t.subParser("spanGamut")(v, u, a), y = u.noHeaderId ? "" : ' id="' + p(v) + '"', o = d, w = "<h" + o + y + ">" + b + "</h" + o + ">";
4543
4568
  return t.subParser("hashBlock")(w, u, a);
4544
4569
  }), r = r.replace(f, function(T, v) {
4545
- var b = t.subParser("spanGamut")(v, u, a), _ = u.noHeaderId ? "" : ' id="' + p(v) + '"', c = d + 1, w = "<h" + c + _ + ">" + b + "</h" + c + ">";
4570
+ var b = t.subParser("spanGamut")(v, u, a), y = u.noHeaderId ? "" : ' id="' + p(v) + '"', o = d + 1, w = "<h" + o + y + ">" + b + "</h" + o + ">";
4546
4571
  return t.subParser("hashBlock")(w, u, a);
4547
4572
  });
4548
4573
  var l = u.requireSpaceBeforeHeadingText ? /^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm : /^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;
4549
4574
  r = r.replace(l, function(T, v, b) {
4550
- var _ = b;
4551
- u.customizedHeaderId && (_ = b.replace(/\s?\{([^{]+?)}\s*$/, ""));
4552
- var c = t.subParser("spanGamut")(_, u, a), w = u.noHeaderId ? "" : ' id="' + p(b) + '"', A = d - 1 + v.length, R = "<h" + A + w + ">" + c + "</h" + A + ">";
4575
+ var y = b;
4576
+ u.customizedHeaderId && (y = b.replace(/\s?\{([^{]+?)}\s*$/, ""));
4577
+ var o = t.subParser("spanGamut")(y, u, a), w = u.noHeaderId ? "" : ' id="' + p(b) + '"', A = d - 1 + v.length, R = "<h" + A + w + ">" + o + "</h" + A + ">";
4553
4578
  return t.subParser("hashBlock")(R, u, a);
4554
4579
  });
4555
4580
  function p(T) {
4556
4581
  var v, b;
4557
4582
  if (u.customizedHeaderId) {
4558
- var _ = T.match(/\{([^{]+?)}\s*$/);
4559
- _ && _[1] && (T = _[1]);
4583
+ var y = T.match(/\{([^{]+?)}\s*$/);
4584
+ y && y[1] && (T = y[1]);
4560
4585
  }
4561
4586
  return v = T, t.helper.isString(u.prefixHeaderId) ? b = u.prefixHeaderId : u.prefixHeaderId === !0 ? b = "section-" : b = "", u.rawPrefixHeaderId || (v = b + v), u.ghCompatibleHeaderId ? v = v.replace(/ /g, "-").replace(/&amp;/g, "").replace(/¨T/g, "").replace(/¨D/g, "").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g, "").toLowerCase() : u.rawHeaderId ? v = v.replace(/ /g, "-").replace(/&amp;/g, "&").replace(/¨T/g, "¨").replace(/¨D/g, "$").replace(/["']/g, "-").toLowerCase() : v = v.replace(/[^\w]/g, "").toLowerCase(), u.rawPrefixHeaderId && (v = b + v), a.hashLinkCounts[v] ? v = v + "-" + a.hashLinkCounts[v]++ : a.hashLinkCounts[v] = 1, v;
4562
4587
  }
@@ -4567,74 +4592,74 @@ var Jt = br.decode = pi, ea = { exports: {} };
4567
4592
  return r = r.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm, d), r = r.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm, d), r = r.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm, d), r = a.converter._dispatch("horizontalRule.after", r, u, a), r;
4568
4593
  }), t.subParser("images", function(r, u, a) {
4569
4594
  r = a.converter._dispatch("images.before", r, u, a);
4570
- var d = /!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g, o = /!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g, f = /!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g, l = /!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g, p = /!\[([^\[\]]+)]()()()()()/g;
4571
- function T(b, _, c, w, A, R, O, N) {
4572
- return w = w.replace(/\s/g, ""), v(b, _, c, w, A, R, O, N);
4595
+ var d = /!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g, c = /!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g, f = /!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g, l = /!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g, p = /!\[([^\[\]]+)]()()()()()/g;
4596
+ function T(b, y, o, w, A, R, O, j) {
4597
+ return w = w.replace(/\s/g, ""), v(b, y, o, w, A, R, O, j);
4573
4598
  }
4574
- function v(b, _, c, w, A, R, O, N) {
4599
+ function v(b, y, o, w, A, R, O, j) {
4575
4600
  var B = a.gUrls, G = a.gTitles, J = a.gDimensions;
4576
- if (c = c.toLowerCase(), N || (N = ""), b.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4601
+ if (o = o.toLowerCase(), j || (j = ""), b.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4577
4602
  w = "";
4578
4603
  else if (w === "" || w === null)
4579
- if ((c === "" || c === null) && (c = _.toLowerCase().replace(/ ?\n/g, " ")), w = "#" + c, !t.helper.isUndefined(B[c]))
4580
- w = B[c], t.helper.isUndefined(G[c]) || (N = G[c]), t.helper.isUndefined(J[c]) || (A = J[c].width, R = J[c].height);
4604
+ if ((o === "" || o === null) && (o = y.toLowerCase().replace(/ ?\n/g, " ")), w = "#" + o, !t.helper.isUndefined(B[o]))
4605
+ w = B[o], t.helper.isUndefined(G[o]) || (j = G[o]), t.helper.isUndefined(J[o]) || (A = J[o].width, R = J[o].height);
4581
4606
  else
4582
4607
  return b;
4583
- _ = _.replace(/"/g, "&quot;").replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), w = w.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
4584
- var U = '<img src="' + w + '" alt="' + _ + '"';
4585
- return N && t.helper.isString(N) && (N = N.replace(/"/g, "&quot;").replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), U += ' title="' + N + '"'), A && R && (A = A === "*" ? "auto" : A, R = R === "*" ? "auto" : R, U += ' width="' + A + '"', U += ' height="' + R + '"'), U += " />", U;
4608
+ y = y.replace(/"/g, "&quot;").replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), w = w.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
4609
+ var U = '<img src="' + w + '" alt="' + y + '"';
4610
+ return j && t.helper.isString(j) && (j = j.replace(/"/g, "&quot;").replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), U += ' title="' + j + '"'), A && R && (A = A === "*" ? "auto" : A, R = R === "*" ? "auto" : R, U += ' width="' + A + '"', U += ' height="' + R + '"'), U += " />", U;
4586
4611
  }
4587
- return r = r.replace(l, v), r = r.replace(f, T), r = r.replace(o, v), r = r.replace(d, v), r = r.replace(p, v), r = a.converter._dispatch("images.after", r, u, a), r;
4612
+ return r = r.replace(l, v), r = r.replace(f, T), r = r.replace(c, v), r = r.replace(d, v), r = r.replace(p, v), r = a.converter._dispatch("images.after", r, u, a), r;
4588
4613
  }), t.subParser("italicsAndBold", function(r, u, a) {
4589
4614
  r = a.converter._dispatch("italicsAndBold.before", r, u, a);
4590
- function d(o, f, l) {
4591
- return f + o + l;
4615
+ function d(c, f, l) {
4616
+ return f + c + l;
4592
4617
  }
4593
- return u.literalMidWordUnderscores ? (r = r.replace(/\b___(\S[\s\S]*?)___\b/g, function(o, f) {
4618
+ return u.literalMidWordUnderscores ? (r = r.replace(/\b___(\S[\s\S]*?)___\b/g, function(c, f) {
4594
4619
  return d(f, "<strong><em>", "</em></strong>");
4595
- }), r = r.replace(/\b__(\S[\s\S]*?)__\b/g, function(o, f) {
4620
+ }), r = r.replace(/\b__(\S[\s\S]*?)__\b/g, function(c, f) {
4596
4621
  return d(f, "<strong>", "</strong>");
4597
- }), r = r.replace(/\b_(\S[\s\S]*?)_\b/g, function(o, f) {
4622
+ }), r = r.replace(/\b_(\S[\s\S]*?)_\b/g, function(c, f) {
4598
4623
  return d(f, "<em>", "</em>");
4599
- })) : (r = r.replace(/___(\S[\s\S]*?)___/g, function(o, f) {
4600
- return /\S$/.test(f) ? d(f, "<strong><em>", "</em></strong>") : o;
4601
- }), r = r.replace(/__(\S[\s\S]*?)__/g, function(o, f) {
4602
- return /\S$/.test(f) ? d(f, "<strong>", "</strong>") : o;
4603
- }), r = r.replace(/_([^\s_][\s\S]*?)_/g, function(o, f) {
4604
- return /\S$/.test(f) ? d(f, "<em>", "</em>") : o;
4605
- })), u.literalMidWordAsterisks ? (r = r.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g, function(o, f, l) {
4624
+ })) : (r = r.replace(/___(\S[\s\S]*?)___/g, function(c, f) {
4625
+ return /\S$/.test(f) ? d(f, "<strong><em>", "</em></strong>") : c;
4626
+ }), r = r.replace(/__(\S[\s\S]*?)__/g, function(c, f) {
4627
+ return /\S$/.test(f) ? d(f, "<strong>", "</strong>") : c;
4628
+ }), r = r.replace(/_([^\s_][\s\S]*?)_/g, function(c, f) {
4629
+ return /\S$/.test(f) ? d(f, "<em>", "</em>") : c;
4630
+ })), u.literalMidWordAsterisks ? (r = r.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g, function(c, f, l) {
4606
4631
  return d(l, f + "<strong><em>", "</em></strong>");
4607
- }), r = r.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g, function(o, f, l) {
4632
+ }), r = r.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g, function(c, f, l) {
4608
4633
  return d(l, f + "<strong>", "</strong>");
4609
- }), r = r.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g, function(o, f, l) {
4634
+ }), r = r.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g, function(c, f, l) {
4610
4635
  return d(l, f + "<em>", "</em>");
4611
- })) : (r = r.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g, function(o, f) {
4612
- return /\S$/.test(f) ? d(f, "<strong><em>", "</em></strong>") : o;
4613
- }), r = r.replace(/\*\*(\S[\s\S]*?)\*\*/g, function(o, f) {
4614
- return /\S$/.test(f) ? d(f, "<strong>", "</strong>") : o;
4615
- }), r = r.replace(/\*([^\s*][\s\S]*?)\*/g, function(o, f) {
4616
- return /\S$/.test(f) ? d(f, "<em>", "</em>") : o;
4636
+ })) : (r = r.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g, function(c, f) {
4637
+ return /\S$/.test(f) ? d(f, "<strong><em>", "</em></strong>") : c;
4638
+ }), r = r.replace(/\*\*(\S[\s\S]*?)\*\*/g, function(c, f) {
4639
+ return /\S$/.test(f) ? d(f, "<strong>", "</strong>") : c;
4640
+ }), r = r.replace(/\*([^\s*][\s\S]*?)\*/g, function(c, f) {
4641
+ return /\S$/.test(f) ? d(f, "<em>", "</em>") : c;
4617
4642
  })), r = a.converter._dispatch("italicsAndBold.after", r, u, a), r;
4618
4643
  }), t.subParser("lists", function(r, u, a) {
4619
4644
  function d(l, p) {
4620
4645
  a.gListLevel++, l = l.replace(/\n{2,}$/, `
4621
4646
  `), l += "¨0";
4622
4647
  var T = /(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm, v = /\n[ \t]*\n(?!¨0)/.test(l);
4623
- return u.disableForced4SpacesIndentedSublists && (T = /(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm), l = l.replace(T, function(b, _, c, w, A, R, O) {
4648
+ return u.disableForced4SpacesIndentedSublists && (T = /(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm), l = l.replace(T, function(b, y, o, w, A, R, O) {
4624
4649
  O = O && O.trim() !== "";
4625
- var N = t.subParser("outdent")(A, u, a), B = "";
4626
- return R && u.tasklists && (B = ' class="task-list-item" style="list-style-type: none;"', N = N.replace(/^[ \t]*\[(x|X| )?]/m, function() {
4650
+ var j = t.subParser("outdent")(A, u, a), B = "";
4651
+ return R && u.tasklists && (B = ' class="task-list-item" style="list-style-type: none;"', j = j.replace(/^[ \t]*\[(x|X| )?]/m, function() {
4627
4652
  var G = '<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';
4628
4653
  return O && (G += " checked"), G += ">", G;
4629
- })), N = N.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g, function(G) {
4654
+ })), j = j.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g, function(G) {
4630
4655
  return "¨A" + G;
4631
- }), _ || N.search(/\n{2,}/) > -1 ? (N = t.subParser("githubCodeBlocks")(N, u, a), N = t.subParser("blockGamut")(N, u, a)) : (N = t.subParser("lists")(N, u, a), N = N.replace(/\n$/, ""), N = t.subParser("hashHTMLBlocks")(N, u, a), N = N.replace(/\n\n+/g, `
4656
+ }), y || j.search(/\n{2,}/) > -1 ? (j = t.subParser("githubCodeBlocks")(j, u, a), j = t.subParser("blockGamut")(j, u, a)) : (j = t.subParser("lists")(j, u, a), j = j.replace(/\n$/, ""), j = t.subParser("hashHTMLBlocks")(j, u, a), j = j.replace(/\n\n+/g, `
4632
4657
 
4633
- `), v ? N = t.subParser("paragraphs")(N, u, a) : N = t.subParser("spanGamut")(N, u, a)), N = N.replace("¨A", ""), N = "<li" + B + ">" + N + `</li>
4634
- `, N;
4658
+ `), v ? j = t.subParser("paragraphs")(j, u, a) : j = t.subParser("spanGamut")(j, u, a)), j = j.replace("¨A", ""), j = "<li" + B + ">" + j + `</li>
4659
+ `, j;
4635
4660
  }), l = l.replace(/¨0/g, ""), a.gListLevel--, p && (l = l.replace(/\s+$/, "")), l;
4636
4661
  }
4637
- function o(l, p) {
4662
+ function c(l, p) {
4638
4663
  if (p === "ol") {
4639
4664
  var T = l.match(/^ *(\d+)\./);
4640
4665
  if (T && T[1] !== "1")
@@ -4643,29 +4668,29 @@ var Jt = br.decode = pi, ea = { exports: {} };
4643
4668
  return "";
4644
4669
  }
4645
4670
  function f(l, p, T) {
4646
- var v = u.disableForced4SpacesIndentedSublists ? /^ ?\d+\.[ \t]/gm : /^ {0,3}\d+\.[ \t]/gm, b = u.disableForced4SpacesIndentedSublists ? /^ ?[*+-][ \t]/gm : /^ {0,3}[*+-][ \t]/gm, _ = p === "ul" ? v : b, c = "";
4647
- if (l.search(_) !== -1)
4671
+ var v = u.disableForced4SpacesIndentedSublists ? /^ ?\d+\.[ \t]/gm : /^ {0,3}\d+\.[ \t]/gm, b = u.disableForced4SpacesIndentedSublists ? /^ ?[*+-][ \t]/gm : /^ {0,3}[*+-][ \t]/gm, y = p === "ul" ? v : b, o = "";
4672
+ if (l.search(y) !== -1)
4648
4673
  (function A(R) {
4649
- var O = R.search(_), N = o(l, p);
4650
- O !== -1 ? (c += `
4674
+ var O = R.search(y), j = c(l, p);
4675
+ O !== -1 ? (o += `
4651
4676
 
4652
- <` + p + N + `>
4677
+ <` + p + j + `>
4653
4678
  ` + d(R.slice(0, O), !!T) + "</" + p + `>
4654
- `, p = p === "ul" ? "ol" : "ul", _ = p === "ul" ? v : b, A(R.slice(O))) : c += `
4679
+ `, p = p === "ul" ? "ol" : "ul", y = p === "ul" ? v : b, A(R.slice(O))) : o += `
4655
4680
 
4656
- <` + p + N + `>
4681
+ <` + p + j + `>
4657
4682
  ` + d(R, !!T) + "</" + p + `>
4658
4683
  `;
4659
4684
  })(l);
4660
4685
  else {
4661
- var w = o(l, p);
4662
- c = `
4686
+ var w = c(l, p);
4687
+ o = `
4663
4688
 
4664
4689
  <` + p + w + `>
4665
4690
  ` + d(l, !!T) + "</" + p + `>
4666
4691
  `;
4667
4692
  }
4668
- return c;
4693
+ return o;
4669
4694
  }
4670
4695
  return r = a.converter._dispatch("lists.before", r, u, a), r += "¨0", a.gListLevel ? r = r.replace(
4671
4696
  /^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,
@@ -4684,39 +4709,39 @@ var Jt = br.decode = pi, ea = { exports: {} };
4684
4709
  if (!u.metadata)
4685
4710
  return r;
4686
4711
  r = a.converter._dispatch("metadata.before", r, u, a);
4687
- function d(o) {
4688
- a.metadata.raw = o, o = o.replace(/&/g, "&amp;").replace(/"/g, "&quot;"), o = o.replace(/\n {4}/g, " "), o.replace(/^([\S ]+): +([\s\S]+?)$/gm, function(f, l, p) {
4712
+ function d(c) {
4713
+ a.metadata.raw = c, c = c.replace(/&/g, "&amp;").replace(/"/g, "&quot;"), c = c.replace(/\n {4}/g, " "), c.replace(/^([\S ]+): +([\s\S]+?)$/gm, function(f, l, p) {
4689
4714
  return a.metadata.parsed[l] = p, "";
4690
4715
  });
4691
4716
  }
4692
- return r = r.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/, function(o, f, l) {
4717
+ return r = r.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/, function(c, f, l) {
4693
4718
  return d(l), "¨M";
4694
- }), r = r.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/, function(o, f, l) {
4719
+ }), r = r.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/, function(c, f, l) {
4695
4720
  return f && (a.metadata.format = f), d(l), "¨M";
4696
4721
  }), r = r.replace(/¨M/g, ""), r = a.converter._dispatch("metadata.after", r, u, a), r;
4697
4722
  }), t.subParser("outdent", function(r, u, a) {
4698
4723
  return r = a.converter._dispatch("outdent.before", r, u, a), r = r.replace(/^(\t|[ ]{1,4})/gm, "¨0"), r = r.replace(/¨0/g, ""), r = a.converter._dispatch("outdent.after", r, u, a), r;
4699
4724
  }), t.subParser("paragraphs", function(r, u, a) {
4700
4725
  r = a.converter._dispatch("paragraphs.before", r, u, a), r = r.replace(/^\n+/g, ""), r = r.replace(/\n+$/g, "");
4701
- for (var d = r.split(/\n{2,}/g), o = [], f = d.length, l = 0; l < f; l++) {
4726
+ for (var d = r.split(/\n{2,}/g), c = [], f = d.length, l = 0; l < f; l++) {
4702
4727
  var p = d[l];
4703
- p.search(/¨(K|G)(\d+)\1/g) >= 0 ? o.push(p) : p.search(/\S/) >= 0 && (p = t.subParser("spanGamut")(p, u, a), p = p.replace(/^([ \t]*)/g, "<p>"), p += "</p>", o.push(p));
4728
+ p.search(/¨(K|G)(\d+)\1/g) >= 0 ? c.push(p) : p.search(/\S/) >= 0 && (p = t.subParser("spanGamut")(p, u, a), p = p.replace(/^([ \t]*)/g, "<p>"), p += "</p>", c.push(p));
4704
4729
  }
4705
- for (f = o.length, l = 0; l < f; l++) {
4706
- for (var T = "", v = o[l], b = !1; /¨(K|G)(\d+)\1/.test(v); ) {
4707
- var _ = RegExp.$1, c = RegExp.$2;
4708
- _ === "K" ? T = a.gHtmlBlocks[c] : b ? T = t.subParser("encodeCode")(a.ghCodeBlocks[c].text, u, a) : T = a.ghCodeBlocks[c].codeblock, T = T.replace(/\$/g, "$$$$"), v = v.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/, T), /^<pre\b[^>]*>\s*<code\b[^>]*>/.test(v) && (b = !0);
4730
+ for (f = c.length, l = 0; l < f; l++) {
4731
+ for (var T = "", v = c[l], b = !1; /¨(K|G)(\d+)\1/.test(v); ) {
4732
+ var y = RegExp.$1, o = RegExp.$2;
4733
+ y === "K" ? T = a.gHtmlBlocks[o] : b ? T = t.subParser("encodeCode")(a.ghCodeBlocks[o].text, u, a) : T = a.ghCodeBlocks[o].codeblock, T = T.replace(/\$/g, "$$$$"), v = v.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/, T), /^<pre\b[^>]*>\s*<code\b[^>]*>/.test(v) && (b = !0);
4709
4734
  }
4710
- o[l] = v;
4735
+ c[l] = v;
4711
4736
  }
4712
- return r = o.join(`
4737
+ return r = c.join(`
4713
4738
  `), r = r.replace(/^\n+/g, ""), r = r.replace(/\n+$/g, ""), a.converter._dispatch("paragraphs.after", r, u, a);
4714
4739
  }), t.subParser("runExtension", function(r, u, a, d) {
4715
4740
  if (r.filter)
4716
4741
  u = r.filter(u, d.converter, a);
4717
4742
  else if (r.regex) {
4718
- var o = r.regex;
4719
- o instanceof RegExp || (o = new RegExp(o, "g")), u = u.replace(o, r.replace);
4743
+ var c = r.regex;
4744
+ c instanceof RegExp || (c = new RegExp(c, "g")), u = u.replace(c, r.replace);
4720
4745
  }
4721
4746
  return u;
4722
4747
  }), t.subParser("spanGamut", function(r, u, a) {
@@ -4724,109 +4749,109 @@ var Jt = br.decode = pi, ea = { exports: {} };
4724
4749
  `)) : r = r.replace(/ +\n/g, `<br />
4725
4750
  `), r = a.converter._dispatch("spanGamut.after", r, u, a), r;
4726
4751
  }), t.subParser("strikethrough", function(r, u, a) {
4727
- function d(o) {
4728
- return u.simplifiedAutoLink && (o = t.subParser("simplifiedAutoLinks")(o, u, a)), "<del>" + o + "</del>";
4752
+ function d(c) {
4753
+ return u.simplifiedAutoLink && (c = t.subParser("simplifiedAutoLinks")(c, u, a)), "<del>" + c + "</del>";
4729
4754
  }
4730
- return u.strikethrough && (r = a.converter._dispatch("strikethrough.before", r, u, a), r = r.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g, function(o, f) {
4755
+ return u.strikethrough && (r = a.converter._dispatch("strikethrough.before", r, u, a), r = r.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g, function(c, f) {
4731
4756
  return d(f);
4732
4757
  }), r = a.converter._dispatch("strikethrough.after", r, u, a)), r;
4733
4758
  }), t.subParser("stripLinkDefinitions", function(r, u, a) {
4734
- var d = /^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm, o = /^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;
4759
+ var d = /^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm, c = /^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;
4735
4760
  r += "¨0";
4736
- var f = function(l, p, T, v, b, _, c) {
4737
- return p = p.toLowerCase(), r.toLowerCase().split(p).length - 1 < 2 ? l : (T.match(/^data:.+?\/.+?;base64,/) ? a.gUrls[p] = T.replace(/\s/g, "") : a.gUrls[p] = t.subParser("encodeAmpsAndAngles")(T, u, a), _ ? _ + c : (c && (a.gTitles[p] = c.replace(/"|'/g, "&quot;")), u.parseImgDimensions && v && b && (a.gDimensions[p] = {
4761
+ var f = function(l, p, T, v, b, y, o) {
4762
+ return p = p.toLowerCase(), r.toLowerCase().split(p).length - 1 < 2 ? l : (T.match(/^data:.+?\/.+?;base64,/) ? a.gUrls[p] = T.replace(/\s/g, "") : a.gUrls[p] = t.subParser("encodeAmpsAndAngles")(T, u, a), y ? y + o : (o && (a.gTitles[p] = o.replace(/"|'/g, "&quot;")), u.parseImgDimensions && v && b && (a.gDimensions[p] = {
4738
4763
  width: v,
4739
4764
  height: b
4740
4765
  }), ""));
4741
4766
  };
4742
- return r = r.replace(o, f), r = r.replace(d, f), r = r.replace(/¨0/, ""), r;
4767
+ return r = r.replace(c, f), r = r.replace(d, f), r = r.replace(/¨0/, ""), r;
4743
4768
  }), t.subParser("tables", function(r, u, a) {
4744
4769
  if (!u.tables)
4745
4770
  return r;
4746
- var d = /^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm, o = /^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;
4771
+ var d = /^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm, c = /^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;
4747
4772
  function f(b) {
4748
4773
  return /^:[ \t]*--*$/.test(b) ? ' style="text-align:left;"' : /^--*[ \t]*:[ \t]*$/.test(b) ? ' style="text-align:right;"' : /^:[ \t]*--*[ \t]*:$/.test(b) ? ' style="text-align:center;"' : "";
4749
4774
  }
4750
- function l(b, _) {
4751
- var c = "";
4752
- return b = b.trim(), (u.tablesHeaderId || u.tableHeaderId) && (c = ' id="' + b.replace(/ /g, "_").toLowerCase() + '"'), b = t.subParser("spanGamut")(b, u, a), "<th" + c + _ + ">" + b + `</th>
4775
+ function l(b, y) {
4776
+ var o = "";
4777
+ return b = b.trim(), (u.tablesHeaderId || u.tableHeaderId) && (o = ' id="' + b.replace(/ /g, "_").toLowerCase() + '"'), b = t.subParser("spanGamut")(b, u, a), "<th" + o + y + ">" + b + `</th>
4753
4778
  `;
4754
4779
  }
4755
- function p(b, _) {
4756
- var c = t.subParser("spanGamut")(b, u, a);
4757
- return "<td" + _ + ">" + c + `</td>
4780
+ function p(b, y) {
4781
+ var o = t.subParser("spanGamut")(b, u, a);
4782
+ return "<td" + y + ">" + o + `</td>
4758
4783
  `;
4759
4784
  }
4760
- function T(b, _) {
4761
- for (var c = `<table>
4785
+ function T(b, y) {
4786
+ for (var o = `<table>
4762
4787
  <thead>
4763
4788
  <tr>
4764
4789
  `, w = b.length, A = 0; A < w; ++A)
4765
- c += b[A];
4766
- for (c += `</tr>
4790
+ o += b[A];
4791
+ for (o += `</tr>
4767
4792
  </thead>
4768
4793
  <tbody>
4769
- `, A = 0; A < _.length; ++A) {
4770
- c += `<tr>
4794
+ `, A = 0; A < y.length; ++A) {
4795
+ o += `<tr>
4771
4796
  `;
4772
4797
  for (var R = 0; R < w; ++R)
4773
- c += _[A][R];
4774
- c += `</tr>
4798
+ o += y[A][R];
4799
+ o += `</tr>
4775
4800
  `;
4776
4801
  }
4777
- return c += `</tbody>
4802
+ return o += `</tbody>
4778
4803
  </table>
4779
- `, c;
4804
+ `, o;
4780
4805
  }
4781
4806
  function v(b) {
4782
- var _, c = b.split(`
4807
+ var y, o = b.split(`
4783
4808
  `);
4784
- for (_ = 0; _ < c.length; ++_)
4785
- /^ {0,3}\|/.test(c[_]) && (c[_] = c[_].replace(/^ {0,3}\|/, "")), /\|[ \t]*$/.test(c[_]) && (c[_] = c[_].replace(/\|[ \t]*$/, "")), c[_] = t.subParser("codeSpans")(c[_], u, a);
4786
- var w = c[0].split("|").map(function(U) {
4809
+ for (y = 0; y < o.length; ++y)
4810
+ /^ {0,3}\|/.test(o[y]) && (o[y] = o[y].replace(/^ {0,3}\|/, "")), /\|[ \t]*$/.test(o[y]) && (o[y] = o[y].replace(/\|[ \t]*$/, "")), o[y] = t.subParser("codeSpans")(o[y], u, a);
4811
+ var w = o[0].split("|").map(function(U) {
4787
4812
  return U.trim();
4788
- }), A = c[1].split("|").map(function(U) {
4813
+ }), A = o[1].split("|").map(function(U) {
4789
4814
  return U.trim();
4790
- }), R = [], O = [], N = [], B = [];
4791
- for (c.shift(), c.shift(), _ = 0; _ < c.length; ++_)
4792
- c[_].trim() !== "" && R.push(
4793
- c[_].split("|").map(function(U) {
4815
+ }), R = [], O = [], j = [], B = [];
4816
+ for (o.shift(), o.shift(), y = 0; y < o.length; ++y)
4817
+ o[y].trim() !== "" && R.push(
4818
+ o[y].split("|").map(function(U) {
4794
4819
  return U.trim();
4795
4820
  })
4796
4821
  );
4797
4822
  if (w.length < A.length)
4798
4823
  return b;
4799
- for (_ = 0; _ < A.length; ++_)
4800
- N.push(f(A[_]));
4801
- for (_ = 0; _ < w.length; ++_)
4802
- t.helper.isUndefined(N[_]) && (N[_] = ""), O.push(l(w[_], N[_]));
4803
- for (_ = 0; _ < R.length; ++_) {
4824
+ for (y = 0; y < A.length; ++y)
4825
+ j.push(f(A[y]));
4826
+ for (y = 0; y < w.length; ++y)
4827
+ t.helper.isUndefined(j[y]) && (j[y] = ""), O.push(l(w[y], j[y]));
4828
+ for (y = 0; y < R.length; ++y) {
4804
4829
  for (var G = [], J = 0; J < O.length; ++J)
4805
- t.helper.isUndefined(R[_][J]), G.push(p(R[_][J], N[J]));
4830
+ t.helper.isUndefined(R[y][J]), G.push(p(R[y][J], j[J]));
4806
4831
  B.push(G);
4807
4832
  }
4808
4833
  return T(O, B);
4809
4834
  }
4810
- return r = a.converter._dispatch("tables.before", r, u, a), r = r.replace(/\\(\|)/g, t.helper.escapeCharactersCallback), r = r.replace(d, v), r = r.replace(o, v), r = a.converter._dispatch("tables.after", r, u, a), r;
4835
+ return r = a.converter._dispatch("tables.before", r, u, a), r = r.replace(/\\(\|)/g, t.helper.escapeCharactersCallback), r = r.replace(d, v), r = r.replace(c, v), r = a.converter._dispatch("tables.after", r, u, a), r;
4811
4836
  }), t.subParser("underline", function(r, u, a) {
4812
- return u.underline && (r = a.converter._dispatch("underline.before", r, u, a), u.literalMidWordUnderscores ? (r = r.replace(/\b___(\S[\s\S]*?)___\b/g, function(d, o) {
4813
- return "<u>" + o + "</u>";
4814
- }), r = r.replace(/\b__(\S[\s\S]*?)__\b/g, function(d, o) {
4815
- return "<u>" + o + "</u>";
4816
- })) : (r = r.replace(/___(\S[\s\S]*?)___/g, function(d, o) {
4817
- return /\S$/.test(o) ? "<u>" + o + "</u>" : d;
4818
- }), r = r.replace(/__(\S[\s\S]*?)__/g, function(d, o) {
4819
- return /\S$/.test(o) ? "<u>" + o + "</u>" : d;
4837
+ return u.underline && (r = a.converter._dispatch("underline.before", r, u, a), u.literalMidWordUnderscores ? (r = r.replace(/\b___(\S[\s\S]*?)___\b/g, function(d, c) {
4838
+ return "<u>" + c + "</u>";
4839
+ }), r = r.replace(/\b__(\S[\s\S]*?)__\b/g, function(d, c) {
4840
+ return "<u>" + c + "</u>";
4841
+ })) : (r = r.replace(/___(\S[\s\S]*?)___/g, function(d, c) {
4842
+ return /\S$/.test(c) ? "<u>" + c + "</u>" : d;
4843
+ }), r = r.replace(/__(\S[\s\S]*?)__/g, function(d, c) {
4844
+ return /\S$/.test(c) ? "<u>" + c + "</u>" : d;
4820
4845
  })), r = r.replace(/(_)/g, t.helper.escapeCharactersCallback), r = a.converter._dispatch("underline.after", r, u, a)), r;
4821
4846
  }), t.subParser("unescapeSpecialChars", function(r, u, a) {
4822
- return r = a.converter._dispatch("unescapeSpecialChars.before", r, u, a), r = r.replace(/¨E(\d+)E/g, function(d, o) {
4823
- var f = parseInt(o);
4847
+ return r = a.converter._dispatch("unescapeSpecialChars.before", r, u, a), r = r.replace(/¨E(\d+)E/g, function(d, c) {
4848
+ var f = parseInt(c);
4824
4849
  return String.fromCharCode(f);
4825
4850
  }), r = a.converter._dispatch("unescapeSpecialChars.after", r, u, a), r;
4826
4851
  }), t.subParser("makeMarkdown.blockquote", function(r, u) {
4827
4852
  var a = "";
4828
4853
  if (r.hasChildNodes())
4829
- for (var d = r.childNodes, o = d.length, f = 0; f < o; ++f) {
4854
+ for (var d = r.childNodes, c = d.length, f = 0; f < c; ++f) {
4830
4855
  var l = t.subParser("makeMarkdown.node")(d[f], u);
4831
4856
  l !== "" && (a += l);
4832
4857
  }
@@ -4843,19 +4868,19 @@ var Jt = br.decode = pi, ea = { exports: {} };
4843
4868
  var a = "";
4844
4869
  if (r.hasChildNodes()) {
4845
4870
  a += "*";
4846
- for (var d = r.childNodes, o = d.length, f = 0; f < o; ++f)
4871
+ for (var d = r.childNodes, c = d.length, f = 0; f < c; ++f)
4847
4872
  a += t.subParser("makeMarkdown.node")(d[f], u);
4848
4873
  a += "*";
4849
4874
  }
4850
4875
  return a;
4851
4876
  }), t.subParser("makeMarkdown.header", function(r, u, a) {
4852
- var d = new Array(a + 1).join("#"), o = "";
4877
+ var d = new Array(a + 1).join("#"), c = "";
4853
4878
  if (r.hasChildNodes()) {
4854
- o = d + " ";
4879
+ c = d + " ";
4855
4880
  for (var f = r.childNodes, l = f.length, p = 0; p < l; ++p)
4856
- o += t.subParser("makeMarkdown.node")(f[p], u);
4881
+ c += t.subParser("makeMarkdown.node")(f[p], u);
4857
4882
  }
4858
- return o;
4883
+ return c;
4859
4884
  }), t.subParser("makeMarkdown.hr", function() {
4860
4885
  return "---";
4861
4886
  }), t.subParser("makeMarkdown.image", function(r) {
@@ -4864,9 +4889,9 @@ var Jt = br.decode = pi, ea = { exports: {} };
4864
4889
  }), t.subParser("makeMarkdown.links", function(r, u) {
4865
4890
  var a = "";
4866
4891
  if (r.hasChildNodes() && r.hasAttribute("href")) {
4867
- var d = r.childNodes, o = d.length;
4892
+ var d = r.childNodes, c = d.length;
4868
4893
  a = "[";
4869
- for (var f = 0; f < o; ++f)
4894
+ for (var f = 0; f < c; ++f)
4870
4895
  a += t.subParser("makeMarkdown.node")(d[f], u);
4871
4896
  a += "](", a += "<" + r.getAttribute("href") + ">", r.hasAttribute("title") && (a += ' "' + r.getAttribute("title") + '"'), a += ")";
4872
4897
  }
@@ -4875,16 +4900,16 @@ var Jt = br.decode = pi, ea = { exports: {} };
4875
4900
  var d = "";
4876
4901
  if (!r.hasChildNodes())
4877
4902
  return "";
4878
- for (var o = r.childNodes, f = o.length, l = r.getAttribute("start") || 1, p = 0; p < f; ++p)
4879
- if (!(typeof o[p].tagName > "u" || o[p].tagName.toLowerCase() !== "li")) {
4903
+ for (var c = r.childNodes, f = c.length, l = r.getAttribute("start") || 1, p = 0; p < f; ++p)
4904
+ if (!(typeof c[p].tagName > "u" || c[p].tagName.toLowerCase() !== "li")) {
4880
4905
  var T = "";
4881
- a === "ol" ? T = l.toString() + ". " : T = "- ", d += T + t.subParser("makeMarkdown.listItem")(o[p], u), ++l;
4906
+ a === "ol" ? T = l.toString() + ". " : T = "- ", d += T + t.subParser("makeMarkdown.listItem")(c[p], u), ++l;
4882
4907
  }
4883
4908
  return d += `
4884
4909
  <!-- -->
4885
4910
  `, d.trim();
4886
4911
  }), t.subParser("makeMarkdown.listItem", function(r, u) {
4887
- for (var a = "", d = r.childNodes, o = d.length, f = 0; f < o; ++f)
4912
+ for (var a = "", d = r.childNodes, c = d.length, f = 0; f < c; ++f)
4888
4913
  a += t.subParser("makeMarkdown.node")(d[f], u);
4889
4914
  return /\n$/.test(a) ? a = a.split(`
4890
4915
  `).join(`
@@ -4903,8 +4928,8 @@ var Jt = br.decode = pi, ea = { exports: {} };
4903
4928
  `;
4904
4929
  if (r.nodeType !== 1)
4905
4930
  return "";
4906
- var o = r.tagName.toLowerCase();
4907
- switch (o) {
4931
+ var c = r.tagName.toLowerCase();
4932
+ switch (c) {
4908
4933
  case "h1":
4909
4934
  a || (d = t.subParser("makeMarkdown.header")(r, u, 1) + `
4910
4935
 
@@ -5004,7 +5029,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
5004
5029
  }), t.subParser("makeMarkdown.paragraph", function(r, u) {
5005
5030
  var a = "";
5006
5031
  if (r.hasChildNodes())
5007
- for (var d = r.childNodes, o = d.length, f = 0; f < o; ++f)
5032
+ for (var d = r.childNodes, c = d.length, f = 0; f < c; ++f)
5008
5033
  a += t.subParser("makeMarkdown.node")(d[f], u);
5009
5034
  return a = a.trim(), a;
5010
5035
  }), t.subParser("makeMarkdown.pre", function(r, u) {
@@ -5014,7 +5039,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
5014
5039
  var a = "";
5015
5040
  if (r.hasChildNodes()) {
5016
5041
  a += "~~";
5017
- for (var d = r.childNodes, o = d.length, f = 0; f < o; ++f)
5042
+ for (var d = r.childNodes, c = d.length, f = 0; f < c; ++f)
5018
5043
  a += t.subParser("makeMarkdown.node")(d[f], u);
5019
5044
  a += "~~";
5020
5045
  }
@@ -5023,17 +5048,17 @@ var Jt = br.decode = pi, ea = { exports: {} };
5023
5048
  var a = "";
5024
5049
  if (r.hasChildNodes()) {
5025
5050
  a += "**";
5026
- for (var d = r.childNodes, o = d.length, f = 0; f < o; ++f)
5051
+ for (var d = r.childNodes, c = d.length, f = 0; f < c; ++f)
5027
5052
  a += t.subParser("makeMarkdown.node")(d[f], u);
5028
5053
  a += "**";
5029
5054
  }
5030
5055
  return a;
5031
5056
  }), t.subParser("makeMarkdown.table", function(r, u) {
5032
- var a = "", d = [[], []], o = r.querySelectorAll("thead>tr>th"), f = r.querySelectorAll("tbody>tr"), l, p;
5033
- for (l = 0; l < o.length; ++l) {
5034
- var T = t.subParser("makeMarkdown.tableCell")(o[l], u), v = "---";
5035
- if (o[l].hasAttribute("style")) {
5036
- var b = o[l].getAttribute("style").toLowerCase().replace(/\s/g, "");
5057
+ var a = "", d = [[], []], c = r.querySelectorAll("thead>tr>th"), f = r.querySelectorAll("tbody>tr"), l, p;
5058
+ for (l = 0; l < c.length; ++l) {
5059
+ var T = t.subParser("makeMarkdown.tableCell")(c[l], u), v = "---";
5060
+ if (c[l].hasAttribute("style")) {
5061
+ var b = c[l].getAttribute("style").toLowerCase().replace(/\s/g, "");
5037
5062
  switch (b) {
5038
5063
  case "text-align:left;":
5039
5064
  v = ":---";
@@ -5049,10 +5074,10 @@ var Jt = br.decode = pi, ea = { exports: {} };
5049
5074
  d[0][l] = T.trim(), d[1][l] = v;
5050
5075
  }
5051
5076
  for (l = 0; l < f.length; ++l) {
5052
- var _ = d.push([]) - 1, c = f[l].getElementsByTagName("td");
5053
- for (p = 0; p < o.length; ++p) {
5077
+ var y = d.push([]) - 1, o = f[l].getElementsByTagName("td");
5078
+ for (p = 0; p < c.length; ++p) {
5054
5079
  var w = " ";
5055
- typeof c[p] < "u" && (w = t.subParser("makeMarkdown.tableCell")(c[p], u)), d[_].push(w);
5080
+ typeof o[p] < "u" && (w = t.subParser("makeMarkdown.tableCell")(o[p], u)), d[y].push(w);
5056
5081
  }
5057
5082
  }
5058
5083
  var A = 3;
@@ -5072,7 +5097,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
5072
5097
  var a = "";
5073
5098
  if (!r.hasChildNodes())
5074
5099
  return "";
5075
- for (var d = r.childNodes, o = d.length, f = 0; f < o; ++f)
5100
+ for (var d = r.childNodes, c = d.length, f = 0; f < c; ++f)
5076
5101
  a += t.subParser("makeMarkdown.node")(d[f], u, !0);
5077
5102
  return a.trim();
5078
5103
  }), t.subParser("makeMarkdown.txt", function(r) {
@@ -5081,10 +5106,10 @@ var Jt = br.decode = pi, ea = { exports: {} };
5081
5106
  });
5082
5107
  var x = this;
5083
5108
  e.exports ? e.exports = t : x.showdown = t;
5084
- }).call(je);
5085
- })(ea);
5086
- var hi = ea.exports;
5087
- const Ne = /* @__PURE__ */ Br(hi), tt = /@(\d*|channel|editors):\((.*?)\)/, ra = ["channel", "editors"], gi = new RegExp(tt, "i"), mi = new RegExp(tt, "gi");
5109
+ }).call(Ie);
5110
+ })(ra);
5111
+ var fi = ra.exports;
5112
+ const je = /* @__PURE__ */ Br(fi), tt = /@(\d*|channel|editors):\((.*?)\)/, ta = ["channel", "editors"], pi = new RegExp(tt, "i"), hi = new RegExp(tt, "gi");
5088
5113
  let ie;
5089
5114
  const qr = {
5090
5115
  color: {
@@ -5096,10 +5121,10 @@ const qr = {
5096
5121
  },
5097
5122
  mention: {
5098
5123
  type: "lang",
5099
- regex: mi,
5124
+ regex: hi,
5100
5125
  replace: (e) => {
5101
- const n = e.match(gi), i = n && n.length > 1 && n[1], t = n && n.length > 2 && n[2];
5102
- return ra.find(
5126
+ const n = e.match(pi), i = n && n.length > 1 && n[1], t = n && n.length > 2 && n[2];
5127
+ return ta.find(
5103
5128
  (s) => s.toLowerCase() === String(i).toLowerCase()
5104
5129
  ) ? `<a class="mention extraMention" data-user-id="${i}">@${t}</a>` : `<a class="mention" data-user-id="${i}">@${t}</a>`;
5105
5130
  }
@@ -5113,18 +5138,18 @@ const qr = {
5113
5138
  }
5114
5139
  }
5115
5140
  };
5116
- function bi() {
5117
- return ie || (Ne.extension("color", qr.color), Ne.extension("mention", qr.mention), Ne.extension("usermentiotag", qr.userMentioTag), ie = new Ne.Converter({
5141
+ function gi() {
5142
+ return ie || (je.extension("color", qr.color), je.extension("mention", qr.mention), je.extension("usermentiotag", qr.userMentioTag), ie = new je.Converter({
5118
5143
  extensions: ["color", "mention", "usermentiotag"]
5119
5144
  }), ie.setOption("strikethrough", !0), ie.setOption("tables", !0), ie.setOption("openLinksInNewWindow", !0), ie.setOption("disableForced4SpacesIndentedSublists", !0), ie);
5120
5145
  }
5121
- const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5146
+ const mi = gi(), bi = new RegExp(tt, "gi"), vi = new RegExp(
5122
5147
  /<user-mentio[^>]*data-user-id=["']([^"]+)["'][^>]*>(?:@|(?:&#64;))(.+?)<\/user-mentio>/,
5123
5148
  "gi"
5124
- ), At = (e, n, i) => ra.find(
5149
+ ), Ct = (e, n, i) => ta.find(
5125
5150
  (t) => t.toLowerCase() === String(n).toLowerCase()
5126
- ) ? `<a class="mention extraMention" data-user-id="${n}">@${i}</a>` : `<a class="mention" data-user-id="${n}">@${i}</a>`, _i = (e = "") => e.replace(wi, At).replace(yi, At), ki = (e = "") => Rr(e, {
5127
- whiteList: ga,
5151
+ ) ? `<a class="mention extraMention" data-user-id="${n}">@${i}</a>` : `<a class="mention" data-user-id="${n}">@${i}</a>`, wi = (e = "") => e.replace(bi, Ct).replace(vi, Ct), yi = (e = "") => Rr(e, {
5152
+ whiteList: ma,
5128
5153
  css: {
5129
5154
  whiteList: {
5130
5155
  // @ts-ignore method not found
@@ -5133,15 +5158,15 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5133
5158
  }
5134
5159
  },
5135
5160
  stripIgnoreTag: !0
5136
- }).replace(/&nbsp;/g, " ").replace(/\u2060/g, ""), Ei = (e = "") => {
5161
+ }).replace(/&nbsp;/g, " ").replace(/\u2060/g, ""), _i = (e = "") => {
5137
5162
  const n = /#(?:[0-9a-fA-F]{3}){1,2}|\brgb\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*\)|\brgba\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d*(?:\.\d+)?\s*\)/gi;
5138
5163
  return e.replace(
5139
5164
  n,
5140
5165
  (i) => `${i}<span class="color-block" style="background-color: ${i};"></span>`
5141
5166
  );
5142
- }, Ti = (e = "") => {
5167
+ }, ki = (e = "") => {
5143
5168
  try {
5144
- return ei(e, {
5169
+ return Xn(e, {
5145
5170
  target: "_blank",
5146
5171
  ignoreTags: ["pre", "code", "script", "style"],
5147
5172
  render: ({ tagName: n, attributes: i, content: t }) => {
@@ -5151,8 +5176,8 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5151
5176
  s = `${g}[...]${m}`;
5152
5177
  }
5153
5178
  const h = Object.keys(i).reduce((g, m) => {
5154
- const y = i[m];
5155
- return `${g} ${m}="${y}"`;
5179
+ const _ = i[m];
5180
+ return `${g} ${m}="${_}"`;
5156
5181
  });
5157
5182
  return `<${n} ${h}>${s}</${n}>`;
5158
5183
  },
@@ -5165,10 +5190,10 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5165
5190
  } catch {
5166
5191
  return e;
5167
5192
  }
5168
- }, Ai = (e = "", n = "html") => {
5169
- let i = la(e);
5170
- return i = fa(i), n === "markdown" ? i = vi.makeHtml(i) : i = _i(i), i = Jt(i), i = Li(i), i = Ti(i), i;
5171
- }, Ci = () => {
5193
+ }, Ei = (e = "", n = "html") => {
5194
+ let i = fa(e);
5195
+ return i = pa(i), n === "markdown" ? i = mi.makeHtml(i) : i = wi(i), i = ea(i), i = Ci(i), i = ki(i), i;
5196
+ }, Ti = () => {
5172
5197
  const e = "ibmMonoOnDemand";
5173
5198
  if (!document.getElementById(e)) {
5174
5199
  const n = document.createElement("style");
@@ -5176,10 +5201,10 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5176
5201
  document.createTextNode(`@import url(${ba});`)
5177
5202
  ), document.head.appendChild(n);
5178
5203
  }
5179
- }, Ct = (e = "") => (
5204
+ }, St = (e = "") => (
5180
5205
  // eslint-disable-next-line no-control-regex
5181
5206
  e.replace(/[^\u0000-\u007E]/g, "")
5182
- ), Si = (e = "") => {
5207
+ ), Ai = (e = "") => {
5183
5208
  const n = /<pre\b[^>]*>\s*<code\b[^>]*>([\s\S]*?)<\/code>\s*<\/pre>/g;
5184
5209
  return e.replace(n, (s) => s.replace(/<\/p>\s*<p>/g, `
5185
5210
  `).replace(/<p>/g, "").replace(/<\/p>/g, "")).replace(n, (s) => Rr(s, {
@@ -5188,7 +5213,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5188
5213
  code: []
5189
5214
  }
5190
5215
  }));
5191
- }, Li = (e) => e.replace(/<(?![a-zA-Z\/!])/g, "&lt;"), qi = (e, n, i) => {
5216
+ }, Ci = (e) => e.replace(/<(?![a-zA-Z\/!])/g, "&lt;"), Si = (e, n, i) => {
5192
5217
  try {
5193
5218
  let t;
5194
5219
  try {
@@ -5207,7 +5232,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5207
5232
  }, 500);
5208
5233
  } catch {
5209
5234
  }
5210
- }, Bi = ia(
5235
+ }, Mi = ua(
5211
5236
  ({
5212
5237
  content: e,
5213
5238
  type: n,
@@ -5217,14 +5242,14 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5217
5242
  hashAutoscrollTopMargin: h = 0,
5218
5243
  forceDefaultLinkTarget: g,
5219
5244
  inheritBrandingStyles: m = !1,
5220
- addColorBlocks: y = !1,
5245
+ addColorBlocks: _ = !1,
5221
5246
  replaceLinkDomains: D = [],
5222
5247
  enabledLinkSafetyWarning: S = !1,
5223
5248
  safeLinkDomains: E = [],
5224
5249
  onSaveToClipboard: k,
5225
5250
  onTextSelected: q
5226
5251
  }, L) => {
5227
- const P = ut(null), z = ut(!1), [j, H] = ua([]), x = st(
5252
+ const P = ut(null), N = ut(!1), [I, H] = sa([]), x = st(
5228
5253
  (a) => {
5229
5254
  P.current = a, typeof L == "function" ? L(a) : L && (L.current = a);
5230
5255
  },
@@ -5232,8 +5257,8 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5232
5257
  ), r = st(() => {
5233
5258
  const { hash: a } = window.location;
5234
5259
  if (P.current && a) {
5235
- const d = Aa(a.substring(1));
5236
- qi(P.current, `#${d}`, h);
5260
+ const d = Ea(a.substring(1));
5261
+ Si(P.current, `#${d}`, h);
5237
5262
  }
5238
5263
  }, [h]);
5239
5264
  dt(() => (s && (r(), document.addEventListener("hashchange", r)), () => {
@@ -5242,13 +5267,13 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5242
5267
  if (!q || !P.current)
5243
5268
  return;
5244
5269
  const a = () => {
5245
- const o = window.getSelection();
5246
- if (!o)
5270
+ const c = window.getSelection();
5271
+ if (!c)
5247
5272
  return;
5248
- const f = o.toString().trim();
5273
+ const f = c.toString().trim();
5249
5274
  if (f.length === 0)
5250
5275
  return;
5251
- const p = o.getRangeAt(0).getBoundingClientRect(), T = {
5276
+ const p = c.getRangeAt(0).getBoundingClientRect(), T = {
5252
5277
  x: p.x,
5253
5278
  y: p.y,
5254
5279
  width: p.width,
@@ -5264,7 +5289,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5264
5289
  d.removeEventListener("mouseup", a);
5265
5290
  };
5266
5291
  }, [q]), ot(() => {
5267
- if (!P.current || z.current)
5292
+ if (!P.current || N.current)
5268
5293
  return;
5269
5294
  const a = () => {
5270
5295
  if (!P.current || !g)
@@ -5272,9 +5297,9 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5272
5297
  const v = P.current.querySelectorAll("a") || [];
5273
5298
  if (v.length > 0) {
5274
5299
  const b = window.origin;
5275
- v.forEach((_) => {
5276
- const { href: c } = _;
5277
- c.startsWith(b) ? delete _.target : _.target = "_blank";
5300
+ v.forEach((y) => {
5301
+ const { href: o } = y;
5302
+ o.startsWith(b) ? delete y.target : y.target = "_blank";
5278
5303
  });
5279
5304
  }
5280
5305
  }, d = () => {
@@ -5282,17 +5307,17 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5282
5307
  const { href: b } = v;
5283
5308
  b.startsWith("mailto:") && (v.target = "_blank");
5284
5309
  });
5285
- }, o = () => {
5310
+ }, c = () => {
5286
5311
  const v = [
5287
- .../* @__PURE__ */ new Set([...ka, ...E])
5312
+ .../* @__PURE__ */ new Set([...ya, ...E])
5288
5313
  ];
5289
5314
  v.length === 0 || !S || !P.current || (P.current.querySelectorAll("a") || []).forEach((b) => {
5290
- const { href: _ } = b, c = new URL(_), { hostname: w } = c;
5291
- c.origin !== window.location.origin && (v.some((A) => w.endsWith(A)) && !Ea.some((A) => w.endsWith(A)) || (console.warn(
5315
+ const { href: y } = b, o = new URL(y), { hostname: w } = o;
5316
+ o.origin !== window.location.origin && (v.some((A) => w.endsWith(A)) && !_a.some((A) => w.endsWith(A)) || (console.warn(
5292
5317
  `ContentRenderer: Unsafe link detected with hostname: ${w}`
5293
5318
  ), b.setAttribute(
5294
5319
  "title",
5295
- `Warning. This link may be unsafe: ${_}`
5320
+ `Warning. This link may be unsafe: ${y}`
5296
5321
  ), b.classList.add("unsafe-link"), b.appendChild(document.createTextNode(" ⚠"))));
5297
5322
  });
5298
5323
  }, f = () => {
@@ -5301,13 +5326,22 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5301
5326
  const v = P.current.querySelectorAll(
5302
5327
  ct
5303
5328
  );
5304
- v.length > 0 && (kr.isDefined("highlightjs") || (Ci(), kr([...va, ...wa], "highlightjs")), kr.ready("highlightjs", () => {
5329
+ v.length > 0 && (kr.isDefined("highlightjs") || (Ti(), kr(va, "highlightjs")), kr.ready("highlightjs", () => {
5305
5330
  window.hljs.configure({
5306
- languages: _a,
5331
+ languages: lt,
5307
5332
  useBr: !0
5308
5333
  }), v.forEach((b) => {
5309
- const _ = b.innerText, c = document.createElement(ya), w = Jt(_);
5310
- c.textContent = w, b.innerHTML = "", b.appendChild(c), window.hljs.highlightBlock(b);
5334
+ const y = b.innerText, o = document.createElement(wa), w = ea(y);
5335
+ if (o.textContent = w, b.innerHTML = "", b.appendChild(o), b.classList.length === 0) {
5336
+ for (const A of lt)
5337
+ if (y.split(`
5338
+ `).slice(0, 3).some((R) => R === A)) {
5339
+ b.className += ` language-${A}`, b.innerHTML = "", o.textContent = w.replace(A, ""), b.appendChild(o);
5340
+ break;
5341
+ }
5342
+ } else
5343
+ b.className += " no-manual-lang-set";
5344
+ window.hljs.highlightBlock(b);
5311
5345
  }), H((b) => [...b, ...v]);
5312
5346
  }));
5313
5347
  }, l = () => {
@@ -5315,17 +5349,17 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5315
5349
  ({ domainToReplace: v, domainToReplaceWith: b }) => {
5316
5350
  if (!P.current)
5317
5351
  return;
5318
- const _ = P.current.querySelectorAll("a") || [];
5319
- _.length > 0 && _.forEach((c) => {
5352
+ const y = P.current.querySelectorAll("a") || [];
5353
+ y.length > 0 && y.forEach((o) => {
5320
5354
  try {
5321
- const { href: w } = c, A = new URL(w), { hostname: R } = A;
5355
+ const { href: w } = o, A = new URL(w), { hostname: R } = A;
5322
5356
  if (R !== v || A.pathname === "/")
5323
5357
  return;
5324
5358
  if (b === "") {
5325
5359
  const O = `${A.pathname}${A.search}${A.hash}`;
5326
- c.href = O;
5360
+ o.href = O;
5327
5361
  } else
5328
- c.href = w.replace(
5362
+ o.href = w.replace(
5329
5363
  v,
5330
5364
  b
5331
5365
  );
@@ -5339,14 +5373,14 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5339
5373
  const { referrerPolicy: b } = v;
5340
5374
  if (!b) {
5341
5375
  v.referrerPolicy = "strict-origin-when-cross-origin";
5342
- const _ = v.src;
5343
- v.src = "", v.src = _;
5376
+ const y = v.src;
5377
+ v.src = "", v.src = y;
5344
5378
  }
5345
5379
  });
5346
5380
  };
5347
5381
  requestAnimationFrame(() => {
5348
- a(), d(), f(), l(), o(), p(), s && r();
5349
- }), z.current = !0;
5382
+ a(), d(), f(), l(), c(), p(), s && r();
5383
+ }), N.current = !0;
5350
5384
  }, [
5351
5385
  P,
5352
5386
  t,
@@ -5360,13 +5394,13 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5360
5394
  const a = () => {
5361
5395
  if (!P.current || !t)
5362
5396
  return;
5363
- const o = P.current.querySelectorAll("h1, h2, h3, h4, h5, h6") || [];
5364
- o.length > 0 && o.forEach((f) => {
5397
+ const c = P.current.querySelectorAll("h1, h2, h3, h4, h5, h6") || [];
5398
+ c.length > 0 && c.forEach((f) => {
5365
5399
  const { textContent: l = "" } = f;
5366
- (l || "").length > 0 && (f.id = f.id || Ct(
5400
+ (l || "").length > 0 && (f.id = f.id || St(
5367
5401
  (l || "").toLowerCase().replace(/\s/g, "-")
5368
5402
  ));
5369
- }), H((f) => [...f, ...o]);
5403
+ }), H((f) => [...f, ...c]);
5370
5404
  }, d = () => {
5371
5405
  if (!P.current)
5372
5406
  return;
@@ -5376,22 +5410,22 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5376
5410
  var p;
5377
5411
  const l = f.style.backgroundColor;
5378
5412
  if (l) {
5379
- const [T, v, b] = ((p = l.match(/[.?\d]+/g)) == null ? void 0 : p.map((w) => parseInt(w, 10))) ?? [0, 0, 0], c = 0.2126 * T + 0.7152 * v + 0.0722 * b > 186 ? "light" : "dark";
5380
- f.style.colorScheme !== c && f.style.setProperty("color-scheme", c);
5413
+ const [T, v, b] = ((p = l.match(/[.?\d]+/g)) == null ? void 0 : p.map((w) => parseInt(w, 10))) ?? [0, 0, 0], o = 0.2126 * T + 0.7152 * v + 0.0722 * b > 186 ? "light" : "dark";
5414
+ f.style.colorScheme !== o && f.style.setProperty("color-scheme", o);
5381
5415
  } else
5382
5416
  f.style.colorScheme && f.style.removeProperty("color-scheme");
5383
5417
  });
5384
5418
  };
5385
5419
  a(), d();
5386
5420
  }, [t, e]);
5387
- const u = sa(() => {
5421
+ const u = da(() => {
5388
5422
  const a = n && typeof n == "string" ? n.toLowerCase() : "html";
5389
- let d = a === "text" ? `<p>${e}</p>` : Ai(e, a);
5390
- return y && (d = Ei(d)), d = Si(d), ki(d);
5391
- }, [e, n, y]);
5392
- return /* @__PURE__ */ ta(aa, { children: [
5423
+ let d = a === "text" ? `<p>${e}</p>` : Ei(e, a);
5424
+ return _ && (d = _i(d)), d = Ai(d), yi(d);
5425
+ }, [e, n, _]);
5426
+ return /* @__PURE__ */ aa(na, { children: [
5393
5427
  /* @__PURE__ */ Te(
5394
- Pi,
5428
+ qi,
5395
5429
  {
5396
5430
  className: `content-renderer ${i === "page" ? "fr-view pages-text" : ""}`,
5397
5431
  ref: x,
@@ -5404,20 +5438,20 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5404
5438
  inheritBrandingStyles: m
5405
5439
  }
5406
5440
  ),
5407
- j.map((a) => {
5441
+ I.map((a) => {
5408
5442
  if ((a.textContent ?? "").trim().length === 0)
5409
5443
  return null;
5410
- let d = a.textContent ? Ct(a.textContent) : "", o = !1;
5444
+ let d = a.textContent ? St(a.textContent) : "", c = !1;
5411
5445
  if (a.tagName !== ct) {
5412
- o = !0;
5413
- const f = Pa(a);
5446
+ c = !0;
5447
+ const f = qa(a);
5414
5448
  d = `${window.location.href.split("#")[0]}#${f}`;
5415
5449
  }
5416
- return ca.createPortal(
5417
- /* @__PURE__ */ Te(Di, { className: "content-copy-btn", children: /* @__PURE__ */ Te(
5418
- na,
5450
+ return la.createPortal(
5451
+ /* @__PURE__ */ Te(Li, { className: "content-copy-btn", children: /* @__PURE__ */ Te(
5452
+ ia,
5419
5453
  {
5420
- icon: o ? /* @__PURE__ */ Te(pa, {}) : void 0,
5454
+ icon: c ? /* @__PURE__ */ Te(ha, {}) : void 0,
5421
5455
  colorScheme: "blank",
5422
5456
  clipboardCopyLabel: "Copy heading link",
5423
5457
  clipboardContent: d,
@@ -5430,7 +5464,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5430
5464
  })
5431
5465
  ] });
5432
5466
  }
5433
- ), Di = St.div`
5467
+ ), Li = Lt.div`
5434
5468
  position: absolute;
5435
5469
  top: calc(50% - (32 / 2) * 1px);
5436
5470
  right: 0;
@@ -5454,7 +5488,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5454
5488
  font-size: 12px;
5455
5489
  line-height: 16px;
5456
5490
  }
5457
- `, Pi = St(da).attrs({ as: "div" })`
5491
+ `, qi = Lt(oa).attrs({ as: "div" })`
5458
5492
  h1,
5459
5493
  h2,
5460
5494
  h3,
@@ -5462,6 +5496,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5462
5496
  h5,
5463
5497
  h6 {
5464
5498
  position: relative;
5499
+
5465
5500
  ${({ createAnchors: e }) => e && Ae`
5466
5501
  &:hover button {
5467
5502
  opacity: 1;
@@ -5472,7 +5507,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5472
5507
  scroll-margin-top: ${e}px;
5473
5508
  }
5474
5509
  `}
5475
- // applied after scrollAndHighlight is called
5510
+ // applied after scrollAndHighlight is called
5476
5511
  &.highlight {
5477
5512
  border-radius: var(--radius-lg);
5478
5513
 
@@ -5496,19 +5531,23 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5496
5531
  margin-bottom: var(--space-sm-plus);
5497
5532
  overflow: auto;
5498
5533
  white-space: pre;
5499
- position: relative;
5534
+ position: relative;
5535
+
5500
5536
  *:not(p) {
5501
5537
  font-weight: inherit;
5502
5538
  font-family: "IBM Plex Mono", monospace !important;
5503
5539
  }
5540
+
5504
5541
  code {
5505
5542
  padding: 0;
5506
5543
  background-color: transparent;
5507
5544
  white-space: pre;
5508
5545
  }
5546
+
5509
5547
  code p {
5510
- font-family: "IBM Plex Mono",monospace !important;
5511
- }
5548
+ font-family: "IBM Plex Mono", monospace !important;
5549
+ }
5550
+
5512
5551
  .content-copy-btn {
5513
5552
  position: absolute;
5514
5553
  top: 0;
@@ -5516,18 +5555,21 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5516
5555
  padding-top: var(--space-sm);
5517
5556
  padding-right: var(--space-sm);
5518
5557
  }
5558
+
5519
5559
  :hover button {
5520
5560
  opacity: 1;
5521
5561
  }
5522
5562
  }
5563
+
5523
5564
  code {
5524
- font-family: "IBM Plex Mono",monospace !important;
5525
- padding: var(--space-xs);
5526
- white-space: nowrap;
5527
- font-family: monospace;
5528
- border-radius: var(--radius-md);
5529
- background-color: var(--color-surface-darken);
5530
- }
5565
+ font-family: "IBM Plex Mono", monospace !important;
5566
+ padding: var(--space-xs);
5567
+ white-space: nowrap;
5568
+ font-family: monospace;
5569
+ border-radius: var(--radius-md);
5570
+ background-color: var(--color-surface-darken);
5571
+ }
5572
+
5531
5573
  .mention {
5532
5574
  border-radius: var(--radii-md);
5533
5575
  background-color: light-dark(var(--color-yellow50), var(--color-yellow600));
@@ -5545,9 +5587,87 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5545
5587
  outline-offset: 1px;
5546
5588
  }
5547
5589
  }
5590
+
5591
+ /*
5592
+ highlight.js styles copied over here, from:
5593
+ https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/default.min.css
5594
+ https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/a11y-light.min.css
5595
+ https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/a11y-dark.min.css
5596
+
5597
+ then edited to work better for us across color schemes
5598
+ */
5599
+
5600
+ pre.hljs {
5601
+ display: block;
5602
+ overflow-x: auto;
5603
+ padding: .5em;
5604
+ background: light-dark(#f2f2f2, #2b2b2b);
5605
+ color: light-dark(#545454, #f8f8f2);
5606
+
5607
+ .hljs-attribute, .hljs-doctag, .hljs-keyword, .hljs-meta-keyword, .hljs-name, .hljs-selector-tag {
5608
+ font-weight: 700
5609
+ }
5610
+
5611
+ .hljs-emphasis {
5612
+ font-style: italic
5613
+ }
5614
+
5615
+ .hljs-strong {
5616
+ font-weight: 700
5617
+ }
5618
+
5619
+ .hljs-subst {
5620
+ color: light-dark(#444, #fefefe);
5621
+ }
5622
+
5623
+ .hljs-comment, .hljs-quote {
5624
+ color: light-dark(#696969, #d4d0ab)
5625
+ }
5626
+
5627
+ .hljs-deletion, .hljs-name, .hljs-regexp, .hljs-selector-class, .hljs-selector-id, .hljs-tag, .hljs-template-variable, .hljs-variable, .hljs-selector-pseudo {
5628
+ color: light-dark(#d91e18, #ffa07a)
5629
+ }
5630
+
5631
+ .hljs-built_in, .hljs-builtin-name, .hljs-selector-attr, .hljs-link, .hljs-literal, .hljs-meta, .hljs-number, .hljs-params, .hljs-template-tag, .hljs-type, .hljs-code {
5632
+ color: light-dark(#aa4100, #f5ab35)
5633
+ }
5634
+
5635
+ .hljs-attribute {
5636
+ color: light-dark(#a56000, #ffd700)
5637
+ }
5638
+
5639
+ .hljs-addition, .hljs-bullet, .hljs-string, .hljs-symbol {
5640
+ color: light-dark(#008000, #abe338)
5641
+ }
5642
+
5643
+ .hljs-meta-string {
5644
+ color: light-dark(#2e4371, #00a1a1)
5645
+ }
5646
+
5647
+ .hljs-section, .hljs-title {
5648
+ color: light-dark(#00698f, #00e0e0);
5649
+ font-weight: 700
5650
+ }
5651
+
5652
+ .hljs-keyword, .hljs-selector-tag {
5653
+ color: light-dark(#7928a1, #d8b1df)
5654
+ }
5655
+
5656
+ @media screen and (-ms-high-contrast: active) {
5657
+ .hljs-addition, .hljs-attribute, .hljs-built_in, .hljs-builtin-name, .hljs-bullet, .hljs-comment, .hljs-link, .hljs-literal, .hljs-meta, .hljs-number, .hljs-params, .hljs-quote, .hljs-string, .hljs-symbol, .hljs-type {
5658
+ color: highlight
5659
+ }
5660
+
5661
+ .hljs-keyword, .hljs-selector-tag {
5662
+ font-weight: 700
5663
+ }
5664
+ }
5665
+ }
5666
+
5548
5667
  .extraMention {
5549
5668
  cursor: inherit;
5550
5669
  }
5670
+
5551
5671
  .color-block {
5552
5672
  display: inline-block;
5553
5673
  width: 18px;
@@ -5562,7 +5682,8 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5562
5682
  // when wide tables are displayed on small screens they look terrible unless
5563
5683
  // we add horizontal scrolling: but this requires giving overflow-x: auto to
5564
5684
  // to the table's container, i.e. this entire content renderer
5565
- @media (max-width: 521px) { // (using "var(--breakpoint-md, 521px)" fails in storybook for some reason)
5685
+ @media (max-width: 521px) {
5686
+ // (using "var(--breakpoint-md, 521px)" fails in storybook for some reason)
5566
5687
  overflow-x: auto;
5567
5688
  table {
5568
5689
  table-layout: auto !important; // overrides 'fixed' set here
@@ -5578,6 +5699,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5578
5699
  // - in the happeouikit ContentRenderer (used for viewed content)
5579
5700
  // - in the react-ng-bridge RichTextEditor/styles.js (used for content in editor)
5580
5701
  // - in the universe-angular-app text.less (used in PagesV1)
5702
+
5581
5703
  table {
5582
5704
  width: 100%;
5583
5705
  margin: var(--space-md, 16px) 0;
@@ -5585,39 +5707,61 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5585
5707
  border-spacing: 0;
5586
5708
  border-collapse: separate; // doubles internal borders, but needed to allow more customization
5587
5709
  table-layout: fixed; // allows overflowing cells to have internal scroll bars
5710
+
5588
5711
  > tbody > tr > td {
5589
5712
  padding: 0.25em 0.5em;
5590
5713
  border: 0.5px solid color-mix(in srgb, var(--pages-v2-body, black) 30%, transparent);
5714
+
5591
5715
  &.fr-selected-cell {
5592
5716
  border-color: var(--color-active-primary);
5593
5717
  }
5718
+
5594
5719
  &.cell-bold {
5595
5720
  font-weight: bold;
5721
+
5596
5722
  li {
5597
5723
  font-weight: bold !important;
5598
5724
  }
5599
5725
  }
5726
+
5600
5727
  &.cell-italic {
5601
5728
  font-style: italic;
5729
+
5602
5730
  li {
5603
5731
  font-style: italic !important;
5604
5732
  }
5605
5733
  }
5734
+
5606
5735
  &.cell-strikethrough {
5607
5736
  text-decoration: line-through;
5737
+
5608
5738
  li {
5609
5739
  text-decoration: line-through !important;
5610
5740
  }
5611
5741
  }
5612
5742
  }
5743
+
5613
5744
  // to "cancel" the separate borders style, we halve all borders to 0.5px
5614
5745
  // but override with 1px for external borders
5746
+
5615
5747
  & > tbody > {
5616
- tr:first-child > td { border-top-width: 1px; }
5617
- tr:last-child > td { border-bottom-width: 1px; }
5618
- tr > td:first-child { border-left-width: 1px; }
5619
- tr > td:last-child { border-right-width: 1px; }
5748
+ tr:first-child > td {
5749
+ border-top-width: 1px;
5750
+ }
5751
+
5752
+ tr:last-child > td {
5753
+ border-bottom-width: 1px;
5754
+ }
5755
+
5756
+ tr > td:first-child {
5757
+ border-left-width: 1px;
5758
+ }
5759
+
5760
+ tr > td:last-child {
5761
+ border-right-width: 1px;
5762
+ }
5620
5763
  }
5764
+
5621
5765
  &.no-borders > tbody > tr >, // (no-borders is the legacy class)
5622
5766
  &.invisible-borders > tbody > tr > {
5623
5767
  td:not(.fr-selected-cell) {
@@ -5625,35 +5769,59 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5625
5769
  border: 0.5px dashed transparent;
5626
5770
  }
5627
5771
  }
5772
+
5628
5773
  &.alternating-rows > tbody > {
5629
5774
  tr:nth-child(odd) {
5630
5775
  background: rgba(255, 255, 255, 0.05);
5631
5776
  }
5777
+
5632
5778
  tr:nth-child(even) {
5633
5779
  background: rgba(0, 0, 0, 0.05);
5634
5780
  }
5635
5781
  }
5782
+
5636
5783
  &.round-corners > tbody > {
5637
- tr:first-child { border-radius: 6px 6px 0 0; }
5638
- tr:first-child > td:first-child { border-top-left-radius: 6px; }
5639
- tr:first-child > td:last-child { border-top-right-radius: 6px; }
5640
- tr:last-child { border-radius: 0 0 6px 6px; }
5641
- tr:last-child > td:first-child { border-bottom-left-radius: 6px; }
5642
- tr:last-child > td:last-child { border-bottom-right-radius: 6px; }
5784
+ tr:first-child {
5785
+ border-radius: 6px 6px 0 0;
5786
+ }
5787
+
5788
+ tr:first-child > td:first-child {
5789
+ border-top-left-radius: 6px;
5790
+ }
5791
+
5792
+ tr:first-child > td:last-child {
5793
+ border-top-right-radius: 6px;
5794
+ }
5795
+
5796
+ tr:last-child {
5797
+ border-radius: 0 0 6px 6px;
5798
+ }
5799
+
5800
+ tr:last-child > td:first-child {
5801
+ border-bottom-left-radius: 6px;
5802
+ }
5803
+
5804
+ tr:last-child > td:last-child {
5805
+ border-bottom-right-radius: 6px;
5806
+ }
5643
5807
  }
5808
+
5644
5809
  &.padded-1 > tbody > tr > td {
5645
5810
  padding: var(--space-md, 16px);
5646
5811
  }
5812
+
5647
5813
  &.padded-2 > tbody > tr > td {
5648
5814
  padding: var(--space-xl, 32px);
5649
5815
  }
5816
+
5650
5817
  &.highlight-first-row > tbody > {
5651
5818
  tr:first-child > td {
5652
5819
  font-weight: bold;
5653
5820
  }
5654
5821
  }
5822
+
5655
5823
  &.highlight-first-column > tbody > {
5656
- tr > td:first-child {
5824
+ tr > td:first-child {
5657
5825
  font-weight: bold;
5658
5826
  }
5659
5827
  }
@@ -5677,23 +5845,23 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5677
5845
  margin: 0 auto;
5678
5846
  }
5679
5847
  }
5680
-
5848
+
5681
5849
  img {
5682
5850
  max-width: 100%;
5683
5851
  margin: 5px;
5684
5852
  padding: 0;
5685
-
5853
+
5686
5854
  // Make images stand out from text similarly as they do in Froala edit mode
5687
5855
  // For example customer had headings with white background color by the side of images,
5688
5856
  // and the headings rendered full width white bars on top of the images
5689
5857
  position: relative;
5690
5858
  z-index: 1;
5691
5859
  }
5692
-
5860
+
5693
5861
  // everything-except-pages CSS
5694
5862
  ${({ widgetType: e, inheritBrandingStyles: n }) => e !== "page" && Ae`
5695
5863
  * {
5696
- font-family: ${oa};
5864
+ font-family: ${ca};
5697
5865
  }
5698
5866
 
5699
5867
  h1 {
@@ -5702,6 +5870,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5702
5870
  font-size: 24px;
5703
5871
  letter-spacing: -0.5px;
5704
5872
  line-height: 32px;
5873
+
5705
5874
  + h1,
5706
5875
  + h2,
5707
5876
  + h3,
@@ -5709,15 +5878,18 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5709
5878
  + p {
5710
5879
  margin-top: var(--space-md);
5711
5880
  }
5881
+
5712
5882
  & * {
5713
5883
  font-family: ${n ? "var(--channels-h1-font-family, revert)" : "revert"};
5714
5884
  }
5715
5885
  }
5886
+
5716
5887
  h2 {
5717
5888
  font-family: ${n ? "var(--channels-h2-font-family, revert)" : "revert"};
5718
5889
  font-weight: ${n ? "var(--channels-h2-font-weight, 500)" : "500"};
5719
5890
  font-size: 20px;
5720
5891
  line-height: 28px;
5892
+
5721
5893
  + h1,
5722
5894
  + h2,
5723
5895
  + h3,
@@ -5725,15 +5897,18 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5725
5897
  + p {
5726
5898
  margin-top: var(--space-md);
5727
5899
  }
5900
+
5728
5901
  & * {
5729
5902
  font-family: ${n ? "var(--channels-h2-font-family, revert)" : "revert"};
5730
5903
  }
5731
5904
  }
5905
+
5732
5906
  h3 {
5733
5907
  font-family: ${n ? "var(--channels-h3-font-family, revert)" : "revert"};
5734
5908
  font-weight: ${n ? "var(--channels-h3-font-weight, 500)" : "500"};
5735
5909
  font-size: 16px;
5736
5910
  line-height: 24px;
5911
+
5737
5912
  + h1,
5738
5913
  + h2,
5739
5914
  + h3,
@@ -5741,13 +5916,16 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5741
5916
  + p {
5742
5917
  margin-top: var(--space-md-minus);
5743
5918
  }
5919
+
5744
5920
  & * {
5745
5921
  font-family: ${n ? "var(--channels-h3-font-family, revert);" : "revert"};
5746
5922
  }
5747
5923
  }
5924
+
5748
5925
  h4 {
5749
5926
  font-size: 16px;
5750
5927
  line-height: 24px;
5928
+
5751
5929
  + h1,
5752
5930
  + h2,
5753
5931
  + h3,
@@ -5756,12 +5934,14 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5756
5934
  margin-top: var(--space-md-minus);
5757
5935
  }
5758
5936
  }
5937
+
5759
5938
  p {
5760
5939
  font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5761
5940
  font-weight: ${n ? "var(--channels-body-font-weight, revert)" : "revert"};
5762
5941
  font-size: 16px;
5763
5942
  line-height: 24px;
5764
5943
  letter-spacing: 0;
5944
+
5765
5945
  + h1,
5766
5946
  + h2,
5767
5947
  + h3,
@@ -5774,24 +5954,30 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5774
5954
  font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5775
5955
  }
5776
5956
  }
5957
+
5777
5958
  a {
5778
5959
  color: var(--color-active-primary);
5779
5960
  text-decoration: none;
5961
+
5780
5962
  :hover {
5781
5963
  text-decoration: underline;
5782
5964
  }
5783
5965
  }
5966
+
5784
5967
  ul {
5785
5968
  list-style-type: disc;
5786
5969
  }
5970
+
5787
5971
  ol {
5788
5972
  list-style-type: decimal;
5789
5973
  counter-reset: item;
5974
+
5790
5975
  li {
5791
5976
  padding-left: var(--space-md-minus);
5792
5977
  text-indent: -33px;
5793
5978
  list-style-type: none;
5794
5979
  counter-increment: item;
5980
+
5795
5981
  &:before {
5796
5982
  display: inline-block;
5797
5983
  width: 13px;
@@ -5801,10 +5987,12 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5801
5987
  text-align: right;
5802
5988
  content: counter(item) ".";
5803
5989
  }
5990
+
5804
5991
  font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5805
5992
  font-weight: ${n ? "var(--channels-body-font-weight, revert)" : "revert"};
5806
5993
  }
5807
5994
  }
5995
+
5808
5996
  ol,
5809
5997
  ul {
5810
5998
  font-size: 16px;
@@ -5814,10 +6002,12 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5814
6002
  -webkit-margin-before: var(--space-sm);
5815
6003
  -webkit-margin-after: var(--space-sm);
5816
6004
  -webkit-padding-start: var(--space-sm);
6005
+
5817
6006
  li,
5818
6007
  li {
5819
6008
  margin-bottom: var(--space-xs-plus);
5820
6009
  padding-left: var(--space-sm-plus);
6010
+
5821
6011
  > ul,
5822
6012
  > ol {
5823
6013
  -webkit-margin-before: var(--space-sm) !important;
@@ -5832,11 +6022,13 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5832
6022
  &:first-child {
5833
6023
  -webkit-margin-before: 0;
5834
6024
  }
6025
+
5835
6026
  &:last-child,
5836
6027
  &:last-child {
5837
6028
  -webkit-margin-after: 0;
5838
6029
  }
5839
6030
  }
6031
+
5840
6032
  hr {
5841
6033
  -webkit-margin-before: var(--space-md);
5842
6034
  -webkit-margin-after: var(--space-md-minus);
@@ -5845,28 +6037,32 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5845
6037
  height: 0;
5846
6038
  border-width: 1px 0 0 0;
5847
6039
  }
6040
+
5848
6041
  .xl-emoji * {
5849
6042
  font-size: 40px;
5850
6043
  line-height: 1.2;
5851
6044
  }
5852
- `}
5853
-
5854
- // article-only CSS
6045
+ `} // article-only CSS
5855
6046
  ${({ widgetType: e, inheritBrandingStyles: n }) => e === "article" && Ae`
5856
6047
  h1 {
5857
6048
  font-family: ${n ? "var(--channels-h1-font-family, revert)" : "revert"};
6049
+
5858
6050
  & * {
5859
6051
  font-family: ${n ? "var(--channels-h1-font-family, revert)" : "revert"};
5860
6052
  }
5861
6053
  }
6054
+
5862
6055
  h2 {
5863
6056
  font-family: ${n ? "var(--channels-h2-font-family, revert)" : "revert"};
6057
+
5864
6058
  & * {
5865
6059
  font-family: ${n ? "var(--channels-h2-font-family, revert)" : "revert"};
5866
6060
  }
5867
6061
  }
6062
+
5868
6063
  h3 {
5869
6064
  font-family: ${n ? "var(--channels-h3-font-family, revert)" : "revert"};
6065
+
5870
6066
  & * {
5871
6067
  font-family: ${n ? "var(--channels-h3-font-family, revert)" : "revert"};
5872
6068
  }
@@ -5881,6 +6077,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5881
6077
  li,
5882
6078
  table {
5883
6079
  font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
6080
+
5884
6081
  & * {
5885
6082
  font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5886
6083
  }
@@ -5926,6 +6123,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5926
6123
  table {
5927
6124
  font-size: var(--font-size-subtitle-sm) !important;
5928
6125
  text-align: left;
6126
+
5929
6127
  th,
5930
6128
  td {
5931
6129
  word-wrap: break-word;
@@ -5940,6 +6138,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5940
6138
  ${me.only.xs`
5941
6139
  max-width: 100%;
5942
6140
  `};
6141
+
5943
6142
  &.article-align-left {
5944
6143
  display: block;
5945
6144
  max-width: 100%;
@@ -5949,9 +6148,11 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5949
6148
  max-width: 75%;
5950
6149
  `}
5951
6150
  }
6151
+
5952
6152
  &.article-align-center {
5953
6153
  display: block;
5954
6154
  }
6155
+
5955
6156
  &.article-align-right {
5956
6157
  display: block;
5957
6158
  max-width: 100%;
@@ -5961,9 +6162,11 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5961
6162
  max-width: 75%;
5962
6163
  `}
5963
6164
  }
6165
+
5964
6166
  &.article-align-overflow {
5965
6167
  display: block;
5966
6168
  max-width: 100%;
6169
+
5967
6170
  ${me.min.md`
5968
6171
  margin: 30px -150px;
5969
6172
  width: calc(100% + 300px) !important;
@@ -5979,6 +6182,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5979
6182
  &.image-border-radius {
5980
6183
  border-radius: var(--radius-lg);
5981
6184
  }
6185
+
5982
6186
  &.image-box-shadow {
5983
6187
  box-shadow: 0 4px 16px 0 #bacad5;
5984
6188
  }
@@ -5988,6 +6192,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5988
6192
  &.image-border-radius img {
5989
6193
  border-radius: var(--radius-lg);
5990
6194
  }
6195
+
5991
6196
  &.image-box-shadow img {
5992
6197
  box-shadow: 0 4px 16px 0 #bacad5;
5993
6198
  }
@@ -6007,9 +6212,11 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
6007
6212
 
6008
6213
  span.fr-img-caption {
6009
6214
  text-align: center;
6215
+
6010
6216
  img {
6011
6217
  margin: 0;
6012
6218
  }
6219
+
6013
6220
  .fr-inner {
6014
6221
  font-weight: 400;
6015
6222
  font-size: 16px;
@@ -6033,6 +6240,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
6033
6240
  &.article-align-overflow {
6034
6241
  padding-top: 170px;
6035
6242
  }
6243
+
6036
6244
  iframe {
6037
6245
  position: absolute;
6038
6246
  top: 0;
@@ -6046,16 +6254,16 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
6046
6254
  width: 100%;
6047
6255
  }
6048
6256
  `}
6049
- }
6257
+ }
6050
6258
  `;
6051
6259
  export {
6052
- Bi as ContentRenderer,
6053
- Da as generateTextFragment,
6054
- Pa as getLinkFragment,
6055
- Aa as getLinkIdFromFragment,
6056
- qa as getLinkSnippet,
6057
- Ui as getRandomLinkId,
6058
- Mi as linkRandomIdRegex,
6059
- Ta as linkSnippetWithIdRegex
6260
+ Mi as ContentRenderer,
6261
+ La as generateTextFragment,
6262
+ qa as getLinkFragment,
6263
+ Ea as getLinkIdFromFragment,
6264
+ Sa as getLinkSnippet,
6265
+ Hi as getRandomLinkId,
6266
+ Oi as linkRandomIdRegex,
6267
+ ka as linkSnippetWithIdRegex
6060
6268
  };
6061
6269
  //# sourceMappingURL=index.es.js.map