@happeouikit/content-renderer 3.5.5 → 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,15 +129,19 @@ 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",
138
138
  "href",
139
139
  "title",
140
140
  "rel",
141
+ "role",
142
+ "tabindex",
143
+ "aria-label",
144
+ "aria-describedby",
141
145
  "data-user-id",
142
146
  "data-user-id-old",
143
147
  "data-collection-id",
@@ -234,21 +238,46 @@ const kr = /* @__PURE__ */ Br(ha), ga = {
234
238
  "style",
235
239
  "class"
236
240
  ]
237
- }, 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 = [
238
242
  "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/highlight.min.js"
239
- ], wa = [
240
- "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/default.min.css",
241
- `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/${ma}.min.css`
242
- ], ct = "PRE", ya = "CODE", _a = [
243
- "javascript",
244
- "html",
243
+ ], ct = "PRE", wa = "CODE", lt = [
244
+ "bash",
245
+ "c",
246
+ "cpp",
247
+ "csharp",
245
248
  "css",
246
- "xml",
247
- "json",
249
+ "diff",
250
+ "go",
251
+ "graphql",
252
+ "ini",
248
253
  "java",
254
+ "javascript",
255
+ "json",
256
+ "kotlin",
257
+ "less",
258
+ "lua",
259
+ "makefile",
260
+ "markdown",
261
+ "objectivec",
262
+ "perl",
263
+ "php-template",
249
264
  "php",
250
- "typescript"
251
- ], 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 = [
252
281
  "happeo.com",
253
282
  "youtube.com",
254
283
  "youtu.be",
@@ -266,48 +295,48 @@ const kr = /* @__PURE__ */ Br(ha), ga = {
266
295
  "facebook.com",
267
296
  "twitter.com",
268
297
  "instagram.com"
269
- ], Ea = [
298
+ ], _a = [
270
299
  // You could potentially create a google script that scrapes data with prompt injection. Lets warn about these.
271
300
  "script.google.com"
272
- ], Mi = /^x[a-f0-9]{7}$/, Ta = /^([\w-]*)\+(x[a-f0-9]{7})$/, Ui = () => `x${Ca().substring(0, 7)}`, Aa = (e) => {
273
- 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);
274
303
  return n ? n[2] : e;
275
304
  };
276
- function Ca() {
305
+ function Ta() {
277
306
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
278
307
  const n = Math.random() * 16 | 0;
279
308
  return (e === "x" ? n : n & 3 | 8).toString(16);
280
309
  });
281
310
  }
282
- const Sa = (e) => ` ${e}`.replace(
311
+ const Aa = (e) => ` ${e}`.replace(
283
312
  /[^a-zA-Z0-9]+(.)/g,
284
313
  (n, i) => i.toUpperCase()
285
- ), La = (e = "") => e.replace(/[^a-zA-Z0-9]/gi, ""), qa = (e) => {
314
+ ), Ca = (e = "") => e.replace(/[^a-zA-Z0-9]/gi, ""), Sa = (e) => {
286
315
  let n = (e == null ? void 0 : e.trim()) || "";
287
- return n = Sa(n), n = La(n), n = n.trim(), n || "empty";
288
- }, 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) => {
289
318
  const n = e.id, i = e.textContent;
290
- 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) : "";
291
320
  };
292
321
  var Dr = { exports: {} }, M = {}, Pr = { exports: {} }, ce = {};
293
- function qt() {
322
+ function Dt() {
294
323
  var e = {};
295
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;
296
325
  }
297
- function Ra(e, n, i) {
326
+ function Da(e, n, i) {
298
327
  }
299
- function Na(e, n, i) {
328
+ function Pa(e, n, i) {
300
329
  }
301
- var za = /javascript\s*\:/img;
302
- function Ia(e, n) {
303
- return za.test(n) ? "" : n;
330
+ var Ra = /javascript\s*\:/img;
331
+ function ja(e, n) {
332
+ return Ra.test(n) ? "" : n;
304
333
  }
305
- ce.whiteList = qt();
306
- ce.getDefaultWhiteList = qt;
307
- ce.onAttr = Ra;
308
- ce.onIgnoreAttr = Na;
309
- ce.safeAttrValue = Ia;
310
- 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 = {
311
340
  indexOf: function(e, n) {
312
341
  var i, t;
313
342
  if (Array.prototype.indexOf)
@@ -330,8 +359,8 @@ var xa = {
330
359
  trimRight: function(e) {
331
360
  return String.prototype.trimRight ? e.trimRight() : e.replace(/(\s*$)/g, "");
332
361
  }
333
- }, be = xa;
334
- function ja(e, n) {
362
+ }, be = Na;
363
+ function za(e, n) {
335
364
  e = be.trimRight(e), e[e.length - 1] !== ";" && (e += ";");
336
365
  var i = e.length, t = !1, s = 0, h = 0, g = "";
337
366
  function m() {
@@ -348,61 +377,61 @@ function ja(e, n) {
348
377
  s = h + 1;
349
378
  }
350
379
  for (; h < i; h++) {
351
- var y = e[h];
352
- if (y === "/" && e[h + 1] === "*") {
380
+ var _ = e[h];
381
+ if (_ === "/" && e[h + 1] === "*") {
353
382
  var D = e.indexOf("*/", h + 2);
354
383
  if (D === -1)
355
384
  break;
356
385
  h = D + 1, s = h + 1, t = !1;
357
386
  } else
358
- y === "(" ? t = !0 : y === ")" ? t = !1 : y === ";" ? t || m() : y === `
387
+ _ === "(" ? t = !0 : _ === ")" ? t = !1 : _ === ";" ? t || m() : _ === `
359
388
  ` && m();
360
389
  }
361
390
  return be.trim(g);
362
391
  }
363
- var Oa = ja, Ce = ce, Ha = Oa;
364
- function lt(e) {
392
+ var xa = za, Ce = ce, Ia = xa;
393
+ function ft(e) {
365
394
  return e == null;
366
395
  }
367
- function Ma(e) {
396
+ function Oa(e) {
368
397
  var n = {};
369
398
  for (var i in e)
370
399
  n[i] = e[i];
371
400
  return n;
372
401
  }
373
- function Dt(e) {
374
- 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;
375
404
  }
376
- Dt.prototype.process = function(e) {
405
+ Pt.prototype.process = function(e) {
377
406
  if (e = e || "", e = e.toString(), !e)
378
407
  return "";
379
- 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) {
380
409
  var q = t[S], L = !1;
381
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) {
382
411
  var P = {
383
412
  position: D,
384
- sourcePosition: y,
413
+ sourcePosition: _,
385
414
  source: k,
386
415
  isWhite: L
387
416
  };
388
417
  if (L) {
389
- var z = s(S, E, P);
390
- return lt(z) ? S + ":" + E : z;
418
+ var N = s(S, E, P);
419
+ return ft(N) ? S + ":" + E : N;
391
420
  } else {
392
- var z = h(S, E, P);
393
- if (!lt(z))
394
- return z;
421
+ var N = h(S, E, P);
422
+ if (!ft(N))
423
+ return N;
395
424
  }
396
425
  }
397
426
  });
398
427
  return m;
399
428
  };
400
- var Ua = Dt;
429
+ var Ha = Pt;
401
430
  (function(e, n) {
402
- var i = ce, t = Ua;
431
+ var i = ce, t = Ha;
403
432
  function s(g, m) {
404
- var y = new t(m);
405
- return y.process(g);
433
+ var _ = new t(m);
434
+ return _.process(g);
406
435
  }
407
436
  n = e.exports = s, n.FilterCSS = t;
408
437
  for (var h in i)
@@ -433,8 +462,8 @@ var Vr = Pr.exports, $r = {
433
462
  var n = /\s|\n|\t/, i = n.exec(e);
434
463
  return i ? i.index : -1;
435
464
  }
436
- }, Ba = Vr.FilterCSS, Va = Vr.getDefaultWhiteList, Oe = $r;
437
- function Pt() {
465
+ }, Ma = Vr.FilterCSS, Ua = Vr.getDefaultWhiteList, Oe = $r;
466
+ function Rt() {
438
467
  return {
439
468
  a: ["target", "href", "title"],
440
469
  abbr: ["title"],
@@ -526,20 +555,20 @@ function Pt() {
526
555
  ]
527
556
  };
528
557
  }
529
- var Rt = new Ba();
530
- function $a(e, n, i) {
558
+ var jt = new Ma();
559
+ function Ba(e, n, i) {
531
560
  }
532
- function Fa(e, n, i) {
561
+ function Va(e, n, i) {
533
562
  }
534
- function Ga(e, n, i) {
563
+ function $a(e, n, i) {
535
564
  }
536
- function Wa(e, n, i) {
565
+ function Fa(e, n, i) {
537
566
  }
538
567
  function Nt(e) {
539
- return e.replace(Qa, "&lt;").replace(Za, "&gt;");
568
+ return e.replace(Wa, "&lt;").replace(Ka, "&gt;");
540
569
  }
541
- function Ka(e, n, i, t) {
542
- if (i = Ht(i), n === "href" || n === "src") {
570
+ function Ga(e, n, i, t) {
571
+ if (i = Mt(i), n === "href" || n === "src") {
543
572
  if (i = Oe.trim(i), i === "#")
544
573
  return "#";
545
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] === "/"))
@@ -548,42 +577,42 @@ function Ka(e, n, i, t) {
548
577
  if (Se.lastIndex = 0, Se.test(i))
549
578
  return "";
550
579
  } else if (n === "style") {
551
- 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))))
552
581
  return "";
553
- t !== !1 && (t = t || Rt, i = t.process(i));
582
+ t !== !1 && (t = t || jt, i = t.process(i));
554
583
  }
555
- return i = Mt(i), i;
584
+ return i = Ut(i), i;
556
585
  }
557
- 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;
558
587
  function zt(e) {
559
- return e.replace(Ya, "&quot;");
560
- }
561
- function It(e) {
562
- return e.replace(Xa, '"');
588
+ return e.replace(Qa, "&quot;");
563
589
  }
564
590
  function xt(e) {
565
- 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) {
566
595
  return t[0] === "x" || t[0] === "X" ? String.fromCharCode(parseInt(t.substr(1), 16)) : String.fromCharCode(parseInt(t, 10));
567
596
  });
568
597
  }
569
- function jt(e) {
570
- return e.replace(en, ":").replace(rn, " ");
571
- }
572
598
  function Ot(e) {
599
+ return e.replace(Xa, ":").replace(Ja, " ");
600
+ }
601
+ function Ht(e) {
573
602
  for (var n = "", i = 0, t = e.length; i < t; i++)
574
603
  n += e.charCodeAt(i) < 32 ? " " : e.charAt(i);
575
604
  return Oe.trim(n);
576
605
  }
577
- function Ht(e) {
578
- return e = It(e), e = xt(e), e = jt(e), e = Ot(e), e;
579
- }
580
606
  function Mt(e) {
607
+ return e = xt(e), e = It(e), e = Ot(e), e = Ht(e), e;
608
+ }
609
+ function Ut(e) {
581
610
  return e = zt(e), e = Nt(e), e;
582
611
  }
583
- function tn() {
612
+ function en() {
584
613
  return "";
585
614
  }
586
- function an(e, n) {
615
+ function rn(e, n) {
587
616
  typeof n != "function" && (n = function() {
588
617
  });
589
618
  var i = !Array.isArray(e);
@@ -592,28 +621,28 @@ function an(e, n) {
592
621
  }
593
622
  var s = [], h = !1;
594
623
  return {
595
- onIgnoreTag: function(g, m, y) {
624
+ onIgnoreTag: function(g, m, _) {
596
625
  if (t(g))
597
- if (y.isClosing) {
598
- var D = "[/removed]", S = y.position + D.length;
626
+ if (_.isClosing) {
627
+ var D = "[/removed]", S = _.position + D.length;
599
628
  return s.push([
600
- h !== !1 ? h : y.position,
629
+ h !== !1 ? h : _.position,
601
630
  S
602
631
  ]), h = !1, D;
603
632
  } else
604
- return h || (h = y.position), "[removed]";
633
+ return h || (h = _.position), "[removed]";
605
634
  else
606
- return n(g, m, y);
635
+ return n(g, m, _);
607
636
  },
608
637
  remove: function(g) {
609
- var m = "", y = 0;
638
+ var m = "", _ = 0;
610
639
  return Oe.forEach(s, function(D) {
611
- m += g.slice(y, D[0]), y = D[1];
612
- }), m += g.slice(y), m;
640
+ m += g.slice(_, D[0]), _ = D[1];
641
+ }), m += g.slice(_), m;
613
642
  }
614
643
  };
615
644
  }
616
- function nn(e) {
645
+ function tn(e) {
617
646
  for (var n = "", i = 0; i < e.length; ) {
618
647
  var t = e.indexOf("<!--", i);
619
648
  if (t === -1) {
@@ -628,47 +657,47 @@ function nn(e) {
628
657
  }
629
658
  return n;
630
659
  }
631
- function un(e) {
660
+ function an(e) {
632
661
  var n = e.split("");
633
662
  return n = n.filter(function(i) {
634
663
  var t = i.charCodeAt(0);
635
664
  return t === 127 ? !1 : t <= 31 ? t === 10 || t === 13 : !0;
636
665
  }), n.join("");
637
666
  }
638
- M.whiteList = Pt();
639
- M.getDefaultWhiteList = Pt;
640
- M.onTag = $a;
641
- M.onIgnoreTag = Fa;
642
- M.onTagAttr = Ga;
643
- M.onIgnoreTagAttr = Wa;
644
- 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;
645
674
  M.escapeHtml = Nt;
646
675
  M.escapeQuote = zt;
647
- M.unescapeQuote = It;
648
- M.escapeHtmlEntities = xt;
649
- M.escapeDangerHtml5Entities = jt;
650
- M.clearNonPrintableCharacter = Ot;
651
- M.friendlyAttrValue = Ht;
652
- M.escapeAttrValue = Mt;
653
- M.onIgnoreTagStripAll = tn;
654
- M.StripTagBody = an;
655
- M.stripCommentTag = nn;
656
- 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;
657
686
  M.attributeWrapSign = '"';
658
- M.cssFilter = Rt;
659
- M.getDefaultCSSWhiteList = Va;
687
+ M.cssFilter = jt;
688
+ M.getDefaultCSSWhiteList = Ua;
660
689
  var gr = {}, ue = $r;
661
- function sn(e) {
690
+ function nn(e) {
662
691
  var n = ue.spaceIndex(e), i;
663
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;
664
693
  }
665
- function dn(e) {
694
+ function un(e) {
666
695
  return e.slice(0, 2) === "</";
667
696
  }
668
- function on(e, n, i) {
669
- 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 = "";
670
699
  e:
671
- for (m = 0; m < y; m++) {
700
+ for (m = 0; m < _; m++) {
672
701
  var E = e.charAt(m);
673
702
  if (h === !1) {
674
703
  if (E === "<") {
@@ -680,13 +709,13 @@ function on(e, n, i) {
680
709
  t += i(e.slice(s, m)), h = m, s = m;
681
710
  continue;
682
711
  }
683
- if (E === ">" || m === y - 1) {
684
- 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(
685
714
  h,
686
715
  t.length,
687
716
  D,
688
717
  S,
689
- dn(S)
718
+ un(S)
690
719
  ), s = m + 1, h = !1;
691
720
  continue;
692
721
  }
@@ -703,100 +732,100 @@ function on(e, n, i) {
703
732
  continue;
704
733
  }
705
734
  }
706
- return s < y && (t += i(e.substr(s))), t;
735
+ return s < _ && (t += i(e.substr(s))), t;
707
736
  }
708
- var cn = /[^a-zA-Z0-9\\_:.-]/gim;
709
- function ln(e, n) {
737
+ var dn = /[^a-zA-Z0-9\\_:.-]/gim;
738
+ function on(e, n) {
710
739
  var i = 0, t = 0, s = [], h = !1, g = e.length;
711
740
  function m(k, q) {
712
- 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)) {
713
742
  var L = n(k, q || "");
714
743
  L && s.push(L);
715
744
  }
716
745
  }
717
- for (var y = 0; y < g; y++) {
718
- var D = e.charAt(y), S, E;
746
+ for (var _ = 0; _ < g; _++) {
747
+ var D = e.charAt(_), S, E;
719
748
  if (h === !1 && D === "=") {
720
- 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);
721
750
  continue;
722
751
  }
723
- if (h !== !1 && y === t) {
724
- if (E = e.indexOf(D, y + 1), E === -1)
752
+ if (h !== !1 && _ === t) {
753
+ if (E = e.indexOf(D, _ + 1), E === -1)
725
754
  break;
726
- 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;
727
756
  continue;
728
757
  }
729
758
  if (/\s|\n|\t/.test(D))
730
759
  if (e = e.replace(/\s|\n|\t/g, " "), h === !1)
731
- if (E = fn(e, y), E === -1) {
732
- 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;
733
762
  continue;
734
763
  } else {
735
- y = E - 1;
764
+ _ = E - 1;
736
765
  continue;
737
766
  }
738
- else if (E = hn(e, y - 1), E === -1) {
739
- 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;
740
769
  continue;
741
770
  } else
742
771
  continue;
743
772
  }
744
- 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(" "));
745
774
  }
746
- function fn(e, n) {
775
+ function cn(e, n) {
747
776
  for (; n < e.length; n++) {
748
777
  var i = e[n];
749
778
  if (i !== " ")
750
779
  return i === "=" ? n : -1;
751
780
  }
752
781
  }
753
- function pn(e, n) {
782
+ function ln(e, n) {
754
783
  for (; n < e.length; n++) {
755
784
  var i = e[n];
756
785
  if (i !== " ")
757
786
  return i === "'" || i === '"' ? n : -1;
758
787
  }
759
788
  }
760
- function hn(e, n) {
789
+ function fn(e, n) {
761
790
  for (; n > 0; n--) {
762
791
  var i = e[n];
763
792
  if (i !== " ")
764
793
  return i === "=" ? n : -1;
765
794
  }
766
795
  }
767
- function gn(e) {
796
+ function pn(e) {
768
797
  return e[0] === '"' && e[e.length - 1] === '"' || e[0] === "'" && e[e.length - 1] === "'";
769
798
  }
770
- function ht(e) {
771
- 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;
772
801
  }
773
- gr.parseTag = on;
774
- gr.parseAttr = ln;
775
- 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;
776
805
  function Le(e) {
777
806
  return e == null;
778
807
  }
779
- function wn(e) {
780
- var n = ze.spaceIndex(e);
808
+ function bn(e) {
809
+ var n = Ne.spaceIndex(e);
781
810
  if (n === -1)
782
811
  return {
783
812
  html: "",
784
813
  closing: e[e.length - 2] === "/"
785
814
  };
786
- e = ze.trim(e.slice(n + 1, -1));
815
+ e = Ne.trim(e.slice(n + 1, -1));
787
816
  var i = e[e.length - 1] === "/";
788
- return i && (e = ze.trim(e.slice(0, -1))), {
817
+ return i && (e = Ne.trim(e.slice(0, -1))), {
789
818
  html: e,
790
819
  closing: i
791
820
  };
792
821
  }
793
- function yn(e) {
822
+ function vn(e) {
794
823
  var n = {};
795
824
  for (var i in e)
796
825
  n[i] = e[i];
797
826
  return n;
798
827
  }
799
- function _n(e) {
828
+ function wn(e) {
800
829
  var n = {};
801
830
  for (var i in e)
802
831
  Array.isArray(e[i]) ? n[i.toLowerCase()] = e[i].map(function(t) {
@@ -804,82 +833,82 @@ function _n(e) {
804
833
  }) : n[i.toLowerCase()] = e[i];
805
834
  return n;
806
835
  }
807
- function Bt(e) {
808
- e = yn(e || {}), e.stripIgnoreTag && (e.onIgnoreTag && console.error(
836
+ function Vt(e) {
837
+ e = vn(e || {}), e.stripIgnoreTag && (e.onIgnoreTag && console.error(
809
838
  'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
810
- ), 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));
811
840
  }
812
- Bt.prototype.process = function(e) {
841
+ Vt.prototype.process = function(e) {
813
842
  if (e = e || "", e = e.toString(), !e)
814
843
  return "";
815
- 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;
816
845
  i.stripBlankChar && (e = X.stripBlankChar(e)), i.allowCommentTag || (e = X.stripCommentTag(e));
817
846
  var k = !1;
818
847
  i.stripIgnoreTagBody && (k = X.StripTagBody(
819
848
  i.stripIgnoreTagBody,
820
849
  h
821
850
  ), h = k.onIgnoreTag);
822
- var q = bn(
851
+ var q = gn(
823
852
  e,
824
- function(L, P, z, j, H) {
853
+ function(L, P, N, I, H) {
825
854
  var x = {
826
855
  sourcePosition: L,
827
856
  position: P,
828
857
  isClosing: H,
829
- isWhite: Object.prototype.hasOwnProperty.call(t, z)
830
- }, r = s(z, j, x);
858
+ isWhite: Object.prototype.hasOwnProperty.call(t, N)
859
+ }, r = s(N, I, x);
831
860
  if (!Le(r))
832
861
  return r;
833
862
  if (x.isWhite) {
834
863
  if (x.isClosing)
835
- return "</" + z + ">";
836
- var u = wn(j), a = t[z], d = vn(u.html, function(o, f) {
837
- var l = ze.indexOf(a, o) !== -1, p = g(z, o, f, l);
838
- 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;
839
868
  });
840
- return j = "<" + z, d && (j += " " + d), u.closing && (j += " /"), j += ">", j;
869
+ return I = "<" + N, d && (I += " " + d), u.closing && (I += " /"), I += ">", I;
841
870
  } else
842
- return r = h(z, j, x), Le(r) ? D(j) : r;
871
+ return r = h(N, I, x), Le(r) ? D(I) : r;
843
872
  },
844
873
  D
845
874
  );
846
875
  return k && (q = k.remove(q)), q;
847
876
  };
848
- var kn = Bt;
877
+ var yn = Vt;
849
878
  (function(e, n) {
850
- var i = M, t = gr, s = kn;
851
- function h(m, y) {
852
- var D = new s(y);
879
+ var i = M, t = gr, s = yn;
880
+ function h(m, _) {
881
+ var D = new s(_);
853
882
  return D.process(m);
854
883
  }
855
884
  n = e.exports = h, n.filterXSS = h, n.FilterXSS = s, function() {
856
885
  for (var m in i)
857
886
  n[m] = i[m];
858
- for (var y in t)
859
- n[y] = t[y];
887
+ for (var _ in t)
888
+ n[_] = t[_];
860
889
  }(), typeof window < "u" && (window.filterXSS = e.exports);
861
890
  function g() {
862
891
  return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope;
863
892
  }
864
893
  g() && (self.filterXSS = e.exports);
865
894
  })(Dr, Dr.exports);
866
- var En = Dr.exports;
867
- 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) => {
868
897
  for (const i in n)
869
898
  e[i] = n[i];
870
899
  return e;
871
- }, Nr = "numeric", zr = "ascii", Ir = "alpha", Ie = "asciinumeric", qe = "alphanumeric", xr = "domain", Vt = "emoji", Cn = "scheme", Sn = "slashscheme", gt = "whitespace";
872
- 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) {
873
902
  return e in n || (n[e] = []), n[e];
874
903
  }
875
904
  function oe(e, n, i) {
876
- 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);
877
906
  for (const t in n) {
878
- const s = Ln(t, i);
907
+ const s = Cn(t, i);
879
908
  s.indexOf(e) < 0 && s.push(e);
880
909
  }
881
910
  }
882
- function qn(e, n) {
911
+ function Sn(e, n) {
883
912
  const i = {};
884
913
  for (const t in n)
885
914
  n[t].indexOf(e) >= 0 && (i[t] = !0);
@@ -1001,8 +1030,8 @@ Q.prototype = {
1001
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) {
1002
1031
  if (t)
1003
1032
  if (g.t && typeof g.t == "string") {
1004
- const y = pe(qn(g.t, t), i);
1005
- oe(h, y, t);
1033
+ const _ = pe(Sn(g.t, t), i);
1034
+ oe(h, _, t);
1006
1035
  } else
1007
1036
  i && oe(h, i, t);
1008
1037
  g.t = h;
@@ -1010,18 +1039,18 @@ Q.prototype = {
1010
1039
  return s.j[e] = g, g;
1011
1040
  }
1012
1041
  };
1013
- 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";
1014
- 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({
1015
1044
  __proto__: null,
1016
1045
  WORD: ae,
1017
- UWORD: jr,
1046
+ UWORD: Ir,
1018
1047
  LOCALHOST: ke,
1019
1048
  TLD: Or,
1020
1049
  UTLD: Hr,
1021
1050
  SCHEME: xe,
1022
1051
  SLASH_SCHEME: fe,
1023
1052
  NUM: Fr,
1024
- WS: $t,
1053
+ WS: Ft,
1025
1054
  NL: Gr,
1026
1055
  OPENBRACE: ve,
1027
1056
  CLOSEBRACE: we,
@@ -1063,47 +1092,47 @@ var Gt = /* @__PURE__ */ Object.freeze({
1063
1092
  SLASH: te,
1064
1093
  TILDE: ye,
1065
1094
  UNDERSCORE: fr,
1066
- EMOJI: Ft,
1095
+ EMOJI: Gt,
1067
1096
  SYM: pr
1068
1097
  });
1069
- const le = /[a-z]/, Er = new RegExp("\\p{L}", "u"), Tr = new RegExp("\\p{Emoji}", "u"), Ar = /\d/, bt = /\s/, vt = `
1070
- `, 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 = "‍";
1071
1100
  let De = null, Pe = null;
1072
- function Rn(e) {
1101
+ function Dn(e) {
1073
1102
  e === void 0 && (e = []);
1074
1103
  const n = {};
1075
1104
  Q.groups = n;
1076
1105
  const i = new Q();
1077
- 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);
1078
1107
  const t = Z(i, Ar, Fr, {
1079
- [Nr]: !0
1108
+ [jr]: !0
1080
1109
  });
1081
1110
  Z(t, Ar, t);
1082
1111
  const s = Z(i, le, ae, {
1083
- [zr]: !0
1112
+ [Nr]: !0
1084
1113
  });
1085
1114
  Z(s, le, s);
1086
- const h = Z(i, Er, jr, {
1087
- [Ir]: !0
1115
+ const h = Z(i, Er, Ir, {
1116
+ [zr]: !0
1088
1117
  });
1089
1118
  Z(h, le), Z(h, Er, h);
1090
- const g = Z(i, bt, $t, {
1091
- [gt]: !0
1119
+ const g = Z(i, vt, Ft, {
1120
+ [mt]: !0
1092
1121
  });
1093
- C(i, vt, Gr, {
1094
- [gt]: !0
1095
- }), C(g, vt), Z(g, bt, g);
1096
- const m = Z(i, Tr, Ft, {
1097
- [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
1098
1127
  });
1099
- Z(m, Tr, m), C(m, Dn, m);
1100
- const y = C(m, Pn);
1101
- Z(y, Tr, m);
1128
+ Z(m, Tr, m), C(m, Ln, m);
1129
+ const _ = C(m, qn);
1130
+ Z(_, Tr, m);
1102
1131
  const D = [[le, s]], S = [[le, null], [Er, h]];
1103
1132
  for (let E = 0; E < De.length; E++)
1104
1133
  ne(i, De[E], Or, ae, D);
1105
1134
  for (let E = 0; E < Pe.length; E++)
1106
- ne(i, Pe[E], Hr, jr, S);
1135
+ ne(i, Pe[E], Hr, Ir, S);
1107
1136
  oe(Or, {
1108
1137
  tld: !0,
1109
1138
  ascii: !0
@@ -1119,28 +1148,28 @@ function Rn(e) {
1119
1148
  }, n), e = e.sort((E, k) => E[0] > k[0] ? 1 : -1);
1120
1149
  for (let E = 0; E < e.length; E++) {
1121
1150
  const k = e[E][0], L = e[E][1] ? {
1122
- [Cn]: !0
1151
+ [Tn]: !0
1123
1152
  } : {
1124
- [Sn]: !0
1153
+ [An]: !0
1125
1154
  };
1126
- 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);
1127
1156
  }
1128
- return mt(i, "localhost", ke, {
1157
+ return bt(i, "localhost", ke, {
1129
1158
  ascii: !0
1130
1159
  }), i.jd = new Q(pr), {
1131
1160
  start: i,
1132
1161
  tokens: pe({
1133
1162
  groups: n
1134
- }, Gt)
1163
+ }, Wt)
1135
1164
  };
1136
1165
  }
1137
- function Nn(e, n) {
1138
- 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 = [];
1139
1168
  let h = 0, g = 0;
1140
1169
  for (; g < t; ) {
1141
- let m = e, y = null, D = 0, S = null, E = -1, k = -1;
1142
- for (; g < t && (y = m.go(i[g])); )
1143
- 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++;
1144
1173
  h -= E, g -= k, D -= E, s.push({
1145
1174
  t: S.t,
1146
1175
  // token type/name
@@ -1154,7 +1183,7 @@ function Nn(e, n) {
1154
1183
  }
1155
1184
  return s;
1156
1185
  }
1157
- function zn(e) {
1186
+ function Rn(e) {
1158
1187
  const n = [], i = e.length;
1159
1188
  let t = 0;
1160
1189
  for (; t < i; ) {
@@ -1167,12 +1196,12 @@ function ne(e, n, i, t, s) {
1167
1196
  let h;
1168
1197
  const g = n.length;
1169
1198
  for (let m = 0; m < g - 1; m++) {
1170
- const y = n[m];
1171
- 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;
1172
1201
  }
1173
1202
  return h = new Q(i), h.jr = s.slice(), e.j[n[g - 1]] = h, h;
1174
1203
  }
1175
- function wt(e) {
1204
+ function yt(e) {
1176
1205
  const n = [], i = [];
1177
1206
  let t = 0, s = "0123456789";
1178
1207
  for (; t < e.length; ) {
@@ -1192,8 +1221,8 @@ function wt(e) {
1192
1221
  const Ee = {
1193
1222
  defaultProtocol: "http",
1194
1223
  events: null,
1195
- format: yt,
1196
- formatHref: yt,
1224
+ format: _t,
1225
+ formatHref: _t,
1197
1226
  nl2br: !1,
1198
1227
  tagName: "a",
1199
1228
  target: null,
@@ -1276,13 +1305,13 @@ Yr.prototype = {
1276
1305
  return (this.get("render", null, e) || this.defaultRender)(n, e.t, e);
1277
1306
  }
1278
1307
  };
1279
- function yt(e) {
1308
+ function _t(e) {
1280
1309
  return e;
1281
1310
  }
1282
- function Wt(e, n) {
1311
+ function Kt(e, n) {
1283
1312
  this.t = "token", this.v = e, this.tk = n;
1284
1313
  }
1285
- Wt.prototype = {
1314
+ Kt.prototype = {
1286
1315
  isLink: !1,
1287
1316
  /**
1288
1317
  * Return the string this token represents.
@@ -1377,8 +1406,8 @@ Wt.prototype = {
1377
1406
  * @param {Options} options Formattinng options
1378
1407
  */
1379
1408
  render(e) {
1380
- 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);
1381
- 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), {
1382
1411
  tagName: s,
1383
1412
  attributes: g,
1384
1413
  content: h,
@@ -1387,7 +1416,7 @@ Wt.prototype = {
1387
1416
  }
1388
1417
  };
1389
1418
  function mr(e, n) {
1390
- class i extends Wt {
1419
+ class i extends Kt {
1391
1420
  constructor(s, h) {
1392
1421
  super(s, h), this.t = e;
1393
1422
  }
@@ -1396,12 +1425,12 @@ function mr(e, n) {
1396
1425
  i.prototype[t] = n[t];
1397
1426
  return i.t = e, i;
1398
1427
  }
1399
- const _t = mr("email", {
1428
+ const kt = mr("email", {
1400
1429
  isLink: !0,
1401
1430
  toHref() {
1402
1431
  return "mailto:" + this.toString();
1403
1432
  }
1404
- }), kt = mr("text"), In = mr("nl"), Re = mr("url", {
1433
+ }), Et = mr("text"), jn = mr("nl"), Re = mr("url", {
1405
1434
  isLink: !0,
1406
1435
  /**
1407
1436
  Lowercases relevant parts of the domain and adds the protocol if
@@ -1422,38 +1451,38 @@ const _t = mr("email", {
1422
1451
  return e.length >= 2 && e[0].t !== ke && e[1].t === de;
1423
1452
  }
1424
1453
  }), Y = (e) => new Q(e);
1425
- function xn(e) {
1454
+ function Nn(e) {
1426
1455
  let {
1427
1456
  groups: n
1428
1457
  } = e;
1429
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);
1430
- I(g, s, g), I(g, n.domain, g);
1431
- const m = Y(), y = Y(), D = Y();
1432
- 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);
1433
1462
  const S = C(m, se);
1434
- C(g, se, S), C(y, se, S), C(D, se, S);
1463
+ C(g, se, S), C(_, se, S), C(D, se, S);
1435
1464
  const E = C(g, ee);
1436
- I(E, s, g), I(E, n.domain, g);
1465
+ z(E, s, g), z(E, n.domain, g);
1437
1466
  const k = Y();
1438
- I(S, n.domain, k), I(k, n.domain, k);
1467
+ z(S, n.domain, k), z(k, n.domain, k);
1439
1468
  const q = C(k, ee);
1440
- I(q, n.domain, k);
1441
- const L = Y(_t);
1442
- 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);
1443
1472
  const P = C(k, re);
1444
- I(P, n.domain, k), I(L, n.domain, k), C(L, ee, q), C(L, re, P);
1445
- const z = C(L, de);
1446
- I(z, n.numeric, _t);
1447
- const j = C(m, re), H = C(m, ee);
1448
- 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);
1449
1478
  const x = Y(Re);
1450
- 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);
1451
1480
  const r = C(x, de), u = Y(Re);
1452
- I(r, n.numeric, u);
1481
+ z(r, n.numeric, u);
1453
1482
  const a = Y(Re), d = Y();
1454
- I(a, i, a), I(a, t, d), I(d, i, a), I(d, t, d), C(x, te, a), C(u, te, a);
1455
- const o = C(y, de), f = C(D, de), l = C(f, te), p = C(l, te);
1456
- 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);
1457
1486
  const T = [
1458
1487
  [ve, we],
1459
1488
  // {}
@@ -1473,35 +1502,35 @@ function xn(e) {
1473
1502
  // <>
1474
1503
  ];
1475
1504
  for (let v = 0; v < T.length; v++) {
1476
- const [b, _] = T[v], c = C(a, b);
1477
- 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);
1478
1507
  const w = Y(Re);
1479
- I(c, i, w);
1508
+ z(o, i, w);
1480
1509
  const A = Y();
1481
- 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);
1482
1511
  }
1483
- return C(h, ke, x), C(h, Gr, In), {
1512
+ return C(h, ke, x), C(h, Gr, jn), {
1484
1513
  start: h,
1485
- tokens: Gt
1514
+ tokens: Wt
1486
1515
  };
1487
1516
  }
1488
- function jn(e, n, i) {
1517
+ function zn(e, n, i) {
1489
1518
  let t = i.length, s = 0, h = [], g = [];
1490
1519
  for (; s < t; ) {
1491
- let m = e, y = null, D = null, S = 0, E = null, k = -1;
1492
- 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)); )
1493
1522
  g.push(i[s++]);
1494
- for (; s < t && (D = y || m.go(i[s].t)); )
1495
- 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++;
1496
1525
  if (k < 0)
1497
1526
  s -= S, s < t && (g.push(i[s]), s++);
1498
1527
  else {
1499
- 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;
1500
1529
  const q = E.t, L = i.slice(s - S, s);
1501
1530
  h.push(Cr(q, n, L));
1502
1531
  }
1503
1532
  }
1504
- return g.length > 0 && h.push(Cr(kt, n, g)), h;
1533
+ return g.length > 0 && h.push(Cr(Et, n, g)), h;
1505
1534
  }
1506
1535
  function Cr(e, n, i) {
1507
1536
  const t = i[0].s, s = i[i.length - 1].e, h = n.slice(t, s);
@@ -1515,13 +1544,13 @@ const F = {
1515
1544
  customSchemes: [],
1516
1545
  initialized: !1
1517
1546
  };
1518
- function On() {
1519
- F.scanner = Rn(F.customSchemes);
1547
+ function xn() {
1548
+ F.scanner = Dn(F.customSchemes);
1520
1549
  for (let e = 0; e < F.tokenQueue.length; e++)
1521
1550
  F.tokenQueue[e][1]({
1522
1551
  scanner: F.scanner
1523
1552
  });
1524
- F.parser = xn(F.scanner.tokens);
1553
+ F.parser = Nn(F.scanner.tokens);
1525
1554
  for (let e = 0; e < F.pluginQueue.length; e++)
1526
1555
  F.pluginQueue[e][1]({
1527
1556
  scanner: F.scanner,
@@ -1529,10 +1558,10 @@ function On() {
1529
1558
  });
1530
1559
  F.initialized = !0;
1531
1560
  }
1532
- function Hn(e) {
1533
- 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));
1534
1563
  }
1535
- var Mn = {
1564
+ var On = {
1536
1565
  // We don't need the complete named character reference because linkifyHtml
1537
1566
  // does not modify the escape sequences. We do need &nbsp; so that
1538
1567
  // whitespace is parsed properly. Other types of whitespace should already
@@ -1542,7 +1571,7 @@ var Mn = {
1542
1571
  lt: "<",
1543
1572
  nbsp: " ",
1544
1573
  quot: '"'
1545
- }, 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 = (
1546
1575
  /** @class */
1547
1576
  function() {
1548
1577
  function e(n) {
@@ -1550,28 +1579,28 @@ var Mn = {
1550
1579
  }
1551
1580
  return e.prototype.parse = function(n) {
1552
1581
  if (n) {
1553
- var i = n.match(Un);
1582
+ var i = n.match(Hn);
1554
1583
  if (i)
1555
1584
  return String.fromCharCode(parseInt(i[1], 16));
1556
- if (i = n.match(Bn), i)
1585
+ if (i = n.match(Mn), i)
1557
1586
  return String.fromCharCode(parseInt(i[1], 10));
1558
- if (i = n.match(Vn), i)
1587
+ if (i = n.match(Un), i)
1559
1588
  return this.named[i[1]] || "&" + i[1] + ";";
1560
1589
  }
1561
1590
  }, e;
1562
1591
  }()
1563
- ), 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;
1564
1593
  function V(e) {
1565
- return Fn.test(e);
1594
+ return Vn.test(e);
1566
1595
  }
1567
- function Et(e) {
1568
- return Gn.test(e);
1596
+ function Tt(e) {
1597
+ return $n.test(e);
1569
1598
  }
1570
- function Kn(e) {
1571
- return e.replace(Wn, `
1599
+ function Gn(e) {
1600
+ return e.replace(Fn, `
1572
1601
  `);
1573
1602
  }
1574
- var Qn = (
1603
+ var Wn = (
1575
1604
  /** @class */
1576
1605
  function() {
1577
1606
  function e(n, i, t) {
@@ -1610,7 +1639,7 @@ var Qn = (
1610
1639
  ) : s === "/" ? this.transitionTo(
1611
1640
  "endTagOpen"
1612
1641
  /* endTagOpen */
1613
- ) : (s === "@" || s === ":" || Et(s)) && (this.transitionTo(
1642
+ ) : (s === "@" || s === ":" || Tt(s)) && (this.transitionTo(
1614
1643
  "tagName"
1615
1644
  /* tagName */
1616
1645
  ), this.tagNameBuffer = "", this.delegate.beginStartTag(), this.appendToTagName(s));
@@ -1971,7 +2000,7 @@ var Qn = (
1971
2000
  },
1972
2001
  endTagOpen: function() {
1973
2002
  var s = this.consume();
1974
- (s === "@" || s === ":" || Et(s)) && (this.transitionTo(
2003
+ (s === "@" || s === ":" || Tt(s)) && (this.transitionTo(
1975
2004
  "endTagName"
1976
2005
  /* endTagName */
1977
2006
  ), this.tagNameBuffer = "", this.delegate.beginEndTag(), this.appendToTagName(s));
@@ -1988,7 +2017,7 @@ var Qn = (
1988
2017
  }, e.prototype.tokenize = function(n) {
1989
2018
  this.reset(), this.tokenizePart(n), this.tokenizeEOF();
1990
2019
  }, e.prototype.tokenizePart = function(n) {
1991
- for (this.input += Kn(n); this.index < this.input.length; ) {
2020
+ for (this.input += Gn(n); this.index < this.input.length; ) {
1992
2021
  var i = this.states[this.state];
1993
2022
  if (i !== void 0)
1994
2023
  i.call(this);
@@ -2027,11 +2056,11 @@ var Qn = (
2027
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>";
2028
2057
  }, e;
2029
2058
  }()
2030
- ), Zn = (
2059
+ ), Kn = (
2031
2060
  /** @class */
2032
2061
  function() {
2033
2062
  function e(n, i) {
2034
- 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;
2035
2064
  }
2036
2065
  return e.prototype.tokenize = function(n) {
2037
2066
  return this.tokens = [], this.tokenizer.tokenize(n), this.tokens;
@@ -2158,61 +2187,61 @@ var Qn = (
2158
2187
  }, e;
2159
2188
  }()
2160
2189
  );
2161
- function Yn(e, n) {
2162
- var i = new Zn(new $n(Mn), n);
2190
+ function Qn(e, n) {
2191
+ var i = new Kn(new Bn(On), n);
2163
2192
  return i.tokenize(e);
2164
2193
  }
2165
- const Kt = "LinkifyResult", hr = "StartTag", Qt = "EndTag", Mr = "Chars", Xn = "Comment", Jn = "Doctype";
2166
- function ei(e, n) {
2194
+ const Qt = "LinkifyResult", hr = "StartTag", Zt = "EndTag", Mr = "Chars", Zn = "Comment", Yn = "Doctype";
2195
+ function Xn(e, n) {
2167
2196
  n === void 0 && (n = {});
2168
- const i = Yn(e), t = [], s = [], h = new Yr(n, ai);
2197
+ const i = Qn(e), t = [], s = [], h = new Yr(n, ri);
2169
2198
  for (let g = 0; g < i.length; g++) {
2170
2199
  const m = i[g];
2171
2200
  if (m.type === hr) {
2172
2201
  t.push(m);
2173
- const y = m.tagName.toUpperCase();
2174
- if (!(y === "A" || h.ignoreTags.indexOf(y) >= 0))
2202
+ const _ = m.tagName.toUpperCase();
2203
+ if (!(_ === "A" || h.ignoreTags.indexOf(_) >= 0))
2175
2204
  continue;
2176
2205
  let S = t.length;
2177
- ti(y, i, ++g, t), g += t.length - S - 1;
2206
+ ei(_, i, ++g, t), g += t.length - S - 1;
2178
2207
  } else if (m.type !== Mr)
2179
2208
  t.push(m);
2180
2209
  else {
2181
- const y = ri(m.chars, h);
2182
- t.push.apply(t, y);
2210
+ const _ = Jn(m.chars, h);
2211
+ t.push.apply(t, _);
2183
2212
  }
2184
2213
  }
2185
2214
  for (let g = 0; g < t.length; g++) {
2186
2215
  const m = t[g];
2187
2216
  switch (m.type) {
2188
- case Kt:
2217
+ case Qt:
2189
2218
  s.push(m.rendered);
2190
2219
  break;
2191
2220
  case hr: {
2192
- let y = "<" + m.tagName;
2193
- 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(_);
2194
2223
  break;
2195
2224
  }
2196
- case Qt:
2225
+ case Zt:
2197
2226
  s.push(`</${m.tagName}>`);
2198
2227
  break;
2199
2228
  case Mr:
2200
2229
  s.push(Ur(m.chars));
2201
2230
  break;
2202
- case Xn:
2231
+ case Zn:
2203
2232
  s.push(`<!--${Ur(m.chars)}-->`);
2204
2233
  break;
2205
- case Jn: {
2206
- let y = `<!DOCTYPE ${m.name}`;
2207
- 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(_);
2208
2237
  break;
2209
2238
  }
2210
2239
  }
2211
2240
  }
2212
2241
  return s.join("");
2213
2242
  }
2214
- function ri(e, n) {
2215
- const i = Hn(e), t = [];
2243
+ function Jn(e, n) {
2244
+ const i = In(e), t = [];
2216
2245
  for (let s = 0; s < i.length; s++) {
2217
2246
  const h = i[s];
2218
2247
  h.t === "nl" && n.get("nl2br") ? t.push({
@@ -2224,47 +2253,47 @@ function ri(e, n) {
2224
2253
  type: Mr,
2225
2254
  chars: h.toString()
2226
2255
  }) : t.push({
2227
- type: Kt,
2256
+ type: Qt,
2228
2257
  rendered: n.render(h)
2229
2258
  });
2230
2259
  }
2231
2260
  return t;
2232
2261
  }
2233
- function ti(e, n, i, t) {
2262
+ function ei(e, n, i, t) {
2234
2263
  let s = 1;
2235
2264
  for (; i < n.length && s > 0; ) {
2236
2265
  let h = n[i];
2237
- 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++;
2238
2267
  }
2239
2268
  return t;
2240
2269
  }
2241
- function ai(e) {
2270
+ function ri(e) {
2242
2271
  let {
2243
2272
  tagName: n,
2244
2273
  attributes: i,
2245
2274
  content: t
2246
2275
  } = e;
2247
- return `<${n} ${ni(i)}>${Ur(t)}</${n}>`;
2276
+ return `<${n} ${ti(i)}>${Ur(t)}</${n}>`;
2248
2277
  }
2249
2278
  function Ur(e) {
2250
2279
  return e.replace(/</g, "&lt;").replace(/>/g, "&gt;");
2251
2280
  }
2252
- function Zt(e) {
2281
+ function Yt(e) {
2253
2282
  return e.replace(/"/g, "&quot;");
2254
2283
  }
2255
- function ni(e) {
2284
+ function ti(e) {
2256
2285
  const n = [];
2257
2286
  for (const i in e) {
2258
2287
  const t = e[i] + "";
2259
- n.push(`${i}="${Zt(t)}"`);
2288
+ n.push(`${i}="${Yt(t)}"`);
2260
2289
  }
2261
2290
  return n.join(" ");
2262
2291
  }
2263
- function ii(e) {
2292
+ function ai(e) {
2264
2293
  const n = [];
2265
2294
  for (let i = 0; i < e.length; i++) {
2266
2295
  const t = e[i][0], s = e[i][1] + "";
2267
- n.push(`${t}="${Zt(s)}"`);
2296
+ n.push(`${t}="${Yt(s)}"`);
2268
2297
  }
2269
2298
  return n;
2270
2299
  }
@@ -2288,7 +2317,7 @@ ge.getCodePoint = String.prototype.codePointAt ? function(e, n) {
2288
2317
  };
2289
2318
  ge.highSurrogateFrom = 55296;
2290
2319
  ge.highSurrogateTo = 56319;
2291
- var he = je && je.__assign || function() {
2320
+ var he = Ie && Ie.__assign || function() {
2292
2321
  return he = Object.assign || function(e) {
2293
2322
  for (var n, i = 1, t = arguments.length; i < t; i++) {
2294
2323
  n = arguments[i];
@@ -2299,21 +2328,21 @@ var he = je && je.__assign || function() {
2299
2328
  }, he.apply(this, arguments);
2300
2329
  };
2301
2330
  Object.defineProperty(br, "__esModule", { value: !0 });
2302
- 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 = {
2303
2332
  specialChars: /[<>'"&]/g,
2304
2333
  nonAscii: /(?:[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,
2305
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,
2306
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
2307
- }, si = {
2336
+ }, ii = {
2308
2337
  mode: "specialChars",
2309
2338
  level: "all",
2310
2339
  numeric: "decimal"
2311
2340
  };
2312
- function di(e, n) {
2313
- 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;
2314
2343
  if (!e)
2315
2344
  return "";
2316
- var m = ui[i], y = et[g].characters, D = s === "hexadecimal";
2345
+ var m = ni[i], _ = et[g].characters, D = s === "hexadecimal";
2317
2346
  m.lastIndex = 0;
2318
2347
  var S = m.exec(e), E;
2319
2348
  if (S) {
@@ -2321,7 +2350,7 @@ function di(e, n) {
2321
2350
  var t = 0;
2322
2351
  do {
2323
2352
  t !== S.index && (E += e.substring(t, S.index));
2324
- var h = S[0], k = y[h];
2353
+ var h = S[0], k = _[h];
2325
2354
  if (!k) {
2326
2355
  var q = h.length > 1 ? Jr.getCodePoint(h, 0) : h.charCodeAt(0);
2327
2356
  k = (D ? "&#x" + q.toString(16) : "&#" + q) + ";";
@@ -2333,11 +2362,11 @@ function di(e, n) {
2333
2362
  E = e;
2334
2363
  return E;
2335
2364
  }
2336
- br.encode = di;
2337
- var oi = {
2365
+ br.encode = ui;
2366
+ var si = {
2338
2367
  scope: "body",
2339
2368
  level: "all"
2340
- }, 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 = {
2341
2370
  xml: {
2342
2371
  strict: Sr,
2343
2372
  attribute: Lr,
@@ -2353,11 +2382,11 @@ var oi = {
2353
2382
  attribute: Lr,
2354
2383
  body: _e.bodyRegExps.html5
2355
2384
  }
2356
- }, 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 = {
2357
2386
  level: "all"
2358
2387
  };
2359
- function fi(e, n) {
2360
- 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;
2361
2390
  if (!e)
2362
2391
  return "";
2363
2392
  var t = e;
@@ -2368,17 +2397,17 @@ function fi(e, n) {
2368
2397
  t = s;
2369
2398
  else if (e[0] === "&" && e[1] === "#") {
2370
2399
  var h = e[2], g = h == "x" || h == "X" ? parseInt(e.substr(3), 16) : parseInt(e.substr(2));
2371
- 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);
2372
2401
  }
2373
2402
  }
2374
2403
  return t;
2375
2404
  }
2376
- br.decodeEntity = fi;
2377
- function pi(e, n) {
2378
- 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;
2379
2408
  if (!e)
2380
2409
  return "";
2381
- 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";
2382
2411
  m.lastIndex = 0;
2383
2412
  var E = m.exec(e), k;
2384
2413
  if (E) {
@@ -2386,18 +2415,18 @@ function pi(e, n) {
2386
2415
  var q = 0;
2387
2416
  do {
2388
2417
  q !== E.index && (k += e.substring(q, E.index));
2389
- var L = E[0], P = L, z = L[L.length - 1];
2390
- if (D && z === "=")
2418
+ var L = E[0], P = L, N = L[L.length - 1];
2419
+ if (D && N === "=")
2391
2420
  P = L;
2392
- else if (S && z !== ";")
2421
+ else if (S && N !== ";")
2393
2422
  P = L;
2394
2423
  else {
2395
- var j = y[L];
2396
- if (j)
2397
- P = j;
2424
+ var I = _[L];
2425
+ if (I)
2426
+ P = I;
2398
2427
  else if (L[0] === "&" && L[1] === "#") {
2399
2428
  var H = L[2], x = H == "x" || H == "X" ? parseInt(L.substr(3), 16) : parseInt(L.substr(2));
2400
- 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);
2401
2430
  }
2402
2431
  }
2403
2432
  k += P, q = E.index + L.length;
@@ -2407,7 +2436,7 @@ function pi(e, n) {
2407
2436
  k = e;
2408
2437
  return k;
2409
2438
  }
2410
- var Jt = br.decode = pi, ea = { exports: {} };
2439
+ var ea = br.decode = li, ra = { exports: {} };
2411
2440
  (function(e) {
2412
2441
  (function() {
2413
2442
  function n(r) {
@@ -2591,7 +2620,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
2591
2620
  r.hasOwnProperty(a) && (u[a] = !0);
2592
2621
  return u;
2593
2622
  }
2594
- var t = {}, s = {}, h = {}, g = n(!0), m = "vanilla", y = {
2623
+ var t = {}, s = {}, h = {}, g = n(!0), m = "vanilla", _ = {
2595
2624
  github: {
2596
2625
  omitExtraWLInCodeBlocks: !0,
2597
2626
  simplifiedAutoLink: !0,
@@ -2644,18 +2673,18 @@ var Jt = br.decode = pi, ea = { exports: {} };
2644
2673
  }, t.resetOptions = function() {
2645
2674
  g = n(!0);
2646
2675
  }, t.setFlavor = function(r) {
2647
- if (!y.hasOwnProperty(r))
2676
+ if (!_.hasOwnProperty(r))
2648
2677
  throw Error(r + " flavor was not found");
2649
2678
  t.resetOptions();
2650
- var u = y[r];
2679
+ var u = _[r];
2651
2680
  m = r;
2652
2681
  for (var a in u)
2653
2682
  u.hasOwnProperty(a) && (g[a] = u[a]);
2654
2683
  }, t.getFlavor = function() {
2655
2684
  return m;
2656
2685
  }, t.getFlavorOptions = function(r) {
2657
- if (y.hasOwnProperty(r))
2658
- return y[r];
2686
+ if (_.hasOwnProperty(r))
2687
+ return _[r];
2659
2688
  }, t.getDefaultOptions = function(r) {
2660
2689
  return n(r);
2661
2690
  }, t.subParser = function(r, u) {
@@ -2695,8 +2724,8 @@ var Jt = br.decode = pi, ea = { exports: {} };
2695
2724
  error: ""
2696
2725
  };
2697
2726
  t.helper.isArray(r) || (r = [r]);
2698
- for (var o = 0; o < r.length; ++o) {
2699
- 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];
2700
2729
  if (typeof l != "object")
2701
2730
  return d.valid = !1, d.error = f + "must be an object, but " + typeof l + " given", d;
2702
2731
  if (!t.helper.isString(l.type))
@@ -2767,24 +2796,24 @@ var Jt = br.decode = pi, ea = { exports: {} };
2767
2796
  t.helper.escapeCharactersCallback = S, t.helper.escapeCharacters = function(r, u, a) {
2768
2797
  var d = "([" + u.replace(/([\[\]\\])/g, "\\$1") + "])";
2769
2798
  a && (d = "\\\\" + d);
2770
- var o = new RegExp(d, "g");
2771
- return r = r.replace(o, S), r;
2799
+ var c = new RegExp(d, "g");
2800
+ return r = r.replace(c, S), r;
2772
2801
  }, t.helper.unescapeHTMLEntities = function(r) {
2773
2802
  return r.replace(/&quot;/g, '"').replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
2774
2803
  };
2775
2804
  var E = function(r, u, a, d) {
2776
- 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;
2777
2806
  do
2778
- for (v = 0; _ = l.exec(r); )
2779
- if (p.test(_[0]))
2780
- 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);
2781
2810
  else if (v && !--v) {
2782
- w = _.index + _[0].length;
2811
+ w = y.index + y[0].length;
2783
2812
  var A = {
2784
- left: { start: c, end: b },
2785
- match: { start: b, end: _.index },
2786
- right: { start: _.index, end: w },
2787
- 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 }
2788
2817
  };
2789
2818
  if (T.push(A), !f)
2790
2819
  return T;
@@ -2793,22 +2822,22 @@ var Jt = br.decode = pi, ea = { exports: {} };
2793
2822
  return T;
2794
2823
  };
2795
2824
  t.helper.matchRecursiveRegExp = function(r, u, a, d) {
2796
- 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)
2797
2826
  f.push([
2798
- r.slice(o[l].wholeMatch.start, o[l].wholeMatch.end),
2799
- r.slice(o[l].match.start, o[l].match.end),
2800
- r.slice(o[l].left.start, o[l].left.end),
2801
- 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)
2802
2831
  ]);
2803
2832
  return f;
2804
- }, t.helper.replaceRecursiveRegExp = function(r, u, a, d, o) {
2833
+ }, t.helper.replaceRecursiveRegExp = function(r, u, a, d, c) {
2805
2834
  if (!t.helper.isFunction(u)) {
2806
2835
  var f = u;
2807
2836
  u = function() {
2808
2837
  return f;
2809
2838
  };
2810
2839
  }
2811
- 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;
2812
2841
  if (T > 0) {
2813
2842
  var v = [];
2814
2843
  l[0].wholeMatch.start !== 0 && v.push(r.slice(0, l[0].wholeMatch.start));
@@ -4048,7 +4077,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
4048
4077
  octocat: '<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',
4049
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>`
4050
4079
  }, t.Converter = function(r) {
4051
- var u = {}, a = [], d = [], o = {}, f = m, l = {
4080
+ var u = {}, a = [], d = [], c = {}, f = m, l = {
4052
4081
  parsed: {},
4053
4082
  raw: "",
4054
4083
  format: ""
@@ -4056,8 +4085,8 @@ var Jt = br.decode = pi, ea = { exports: {} };
4056
4085
  p();
4057
4086
  function p() {
4058
4087
  r = r || {};
4059
- for (var c in g)
4060
- g.hasOwnProperty(c) && (u[c] = g[c]);
4088
+ for (var o in g)
4089
+ g.hasOwnProperty(o) && (u[o] = g[o]);
4061
4090
  if (typeof r == "object")
4062
4091
  for (var w in r)
4063
4092
  r.hasOwnProperty(w) && (u[w] = r[w]);
@@ -4065,73 +4094,73 @@ var Jt = br.decode = pi, ea = { exports: {} };
4065
4094
  throw Error("Converter expects the passed parameter to be an object, but " + typeof r + " was passed instead.");
4066
4095
  u.extensions && t.helper.forEach(u.extensions, T);
4067
4096
  }
4068
- function T(c, w) {
4069
- if (w = w || null, t.helper.isString(c))
4070
- if (c = t.helper.stdExtName(c), w = c, t.extensions[c]) {
4071
- 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);
4072
4101
  return;
4073
- } else if (!t.helper.isUndefined(h[c]))
4074
- c = h[c];
4102
+ } else if (!t.helper.isUndefined(h[o]))
4103
+ o = h[o];
4075
4104
  else
4076
- throw Error('Extension "' + c + '" could not be loaded. It was either not found or is not a valid extension.');
4077
- typeof c == "function" && (c = c()), t.helper.isArray(c) || (c = [c]);
4078
- 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);
4079
4108
  if (!A.valid)
4080
4109
  throw Error(A.error);
4081
- for (var R = 0; R < c.length; ++R) {
4082
- switch (c[R].type) {
4110
+ for (var R = 0; R < o.length; ++R) {
4111
+ switch (o[R].type) {
4083
4112
  case "lang":
4084
- a.push(c[R]);
4113
+ a.push(o[R]);
4085
4114
  break;
4086
4115
  case "output":
4087
- d.push(c[R]);
4116
+ d.push(o[R]);
4088
4117
  break;
4089
4118
  }
4090
- if (c[R].hasOwnProperty("listeners"))
4091
- for (var O in c[R].listeners)
4092
- 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]);
4093
4122
  }
4094
4123
  }
4095
- function v(c, w) {
4096
- typeof c == "function" && (c = c(new t.Converter())), t.helper.isArray(c) || (c = [c]);
4097
- 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);
4098
4127
  if (!A.valid)
4099
4128
  throw Error(A.error);
4100
- for (var R = 0; R < c.length; ++R)
4101
- switch (c[R].type) {
4129
+ for (var R = 0; R < o.length; ++R)
4130
+ switch (o[R].type) {
4102
4131
  case "lang":
4103
- a.push(c[R]);
4132
+ a.push(o[R]);
4104
4133
  break;
4105
4134
  case "output":
4106
- d.push(c[R]);
4135
+ d.push(o[R]);
4107
4136
  break;
4108
4137
  default:
4109
4138
  throw Error("Extension loader error: Type unrecognized!!!");
4110
4139
  }
4111
4140
  }
4112
- function b(c, w) {
4113
- if (!t.helper.isString(c))
4114
- 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");
4115
4144
  if (typeof w != "function")
4116
4145
  throw Error("Invalid argument in converter.listen() method: callback must be a function, but " + typeof w + " given");
4117
- o.hasOwnProperty(c) || (o[c] = []), o[c].push(w);
4146
+ c.hasOwnProperty(o) || (c[o] = []), c[o].push(w);
4118
4147
  }
4119
- function _(c) {
4120
- var w = c.match(/^\s*/)[0].length, A = new RegExp("^\\s{0," + w + "}", "gm");
4121
- 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, "");
4122
4151
  }
4123
4152
  this._dispatch = function(w, A, R, O) {
4124
- if (o.hasOwnProperty(w))
4125
- for (var N = 0; N < o[w].length; ++N) {
4126
- 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);
4127
4156
  B && typeof B < "u" && (A = B);
4128
4157
  }
4129
4158
  return A;
4130
- }, this.listen = function(c, w) {
4131
- return b(c, w), this;
4132
- }, this.makeHtml = function(c) {
4133
- if (!c)
4134
- 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;
4135
4164
  var w = {
4136
4165
  gHtmlBlocks: [],
4137
4166
  gHtmlMdBlocks: [],
@@ -4151,33 +4180,33 @@ var Jt = br.decode = pi, ea = { exports: {} };
4151
4180
  format: ""
4152
4181
  }
4153
4182
  };
4154
- return c = c.replace(/¨/g, "¨T"), c = c.replace(/\$/g, "¨D"), c = c.replace(/\r\n/g, `
4155
- `), c = c.replace(/\r/g, `
4156
- `), 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 = `
4157
4186
 
4158
- ` + c + `
4187
+ ` + o + `
4159
4188
 
4160
- `, c = t.subParser("detab")(c, u, w), c = c.replace(/^[ \t]+$/mg, ""), t.helper.forEach(a, function(A) {
4161
- c = t.subParser("runExtension")(A, c, u, w);
4162
- }), 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) {
4163
- c = t.subParser("runExtension")(A, c, u, w);
4164
- }), l = w.metadata, c;
4165
- }, this.makeMarkdown = this.makeMd = function(c, w) {
4166
- if (c = c.replace(/\r\n/g, `
4167
- `), c = c.replace(/\r/g, `
4168
- `), 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)
4169
4198
  if (window && window.document)
4170
4199
  w = window.document;
4171
4200
  else
4172
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");
4173
4202
  var A = w.createElement("div");
4174
- A.innerHTML = c;
4203
+ A.innerHTML = o;
4175
4204
  var R = {
4176
4205
  preList: J(A)
4177
4206
  };
4178
4207
  G(A);
4179
- for (var O = A.childNodes, N = "", B = 0; B < O.length; B++)
4180
- 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);
4181
4210
  function G(U) {
4182
4211
  for (var $ = 0; $ < U.childNodes.length; ++$) {
4183
4212
  var W = U.childNodes[$];
@@ -4202,30 +4231,30 @@ var Jt = br.decode = pi, ea = { exports: {} };
4202
4231
  W.push($[K].innerHTML), $[K].innerHTML = "", $[K].setAttribute("prenum", K.toString());
4203
4232
  return W;
4204
4233
  }
4205
- return N;
4206
- }, this.setOption = function(c, w) {
4207
- u[c] = w;
4208
- }, this.getOption = function(c) {
4209
- 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];
4210
4239
  }, this.getOptions = function() {
4211
4240
  return u;
4212
- }, this.addExtension = function(c, w) {
4213
- w = w || null, T(c, w);
4214
- }, this.useExtension = function(c) {
4215
- T(c);
4216
- }, this.setFlavor = function(c) {
4217
- if (!y.hasOwnProperty(c))
4218
- throw Error(c + " flavor was not found");
4219
- var w = y[c];
4220
- 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;
4221
4250
  for (var A in w)
4222
4251
  w.hasOwnProperty(A) && (u[A] = w[A]);
4223
4252
  }, this.getFlavor = function() {
4224
4253
  return f;
4225
- }, this.removeExtension = function(c) {
4226
- t.helper.isArray(c) || (c = [c]);
4227
- for (var w = 0; w < c.length; ++w) {
4228
- 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)
4229
4258
  a[R] === A && a.splice(R, 1);
4230
4259
  for (var O = 0; O < d.length; ++O)
4231
4260
  d[O] === A && d.splice(O, 1);
@@ -4235,30 +4264,30 @@ var Jt = br.decode = pi, ea = { exports: {} };
4235
4264
  language: a,
4236
4265
  output: d
4237
4266
  };
4238
- }, this.getMetadata = function(c) {
4239
- return c ? l.raw : l.parsed;
4267
+ }, this.getMetadata = function(o) {
4268
+ return o ? l.raw : l.parsed;
4240
4269
  }, this.getMetadataFormat = function() {
4241
4270
  return l.format;
4242
- }, this._setMetadataPair = function(c, w) {
4243
- l.parsed[c] = w;
4244
- }, this._setMetadataFormat = function(c) {
4245
- l.format = c;
4246
- }, this._setMetadataRaw = function(c) {
4247
- 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;
4248
4277
  };
4249
4278
  }, t.subParser("anchors", function(r, u, a) {
4250
4279
  r = a.converter._dispatch("anchors.before", r, u, a);
4251
- var d = function(o, f, l, p, T, v, b) {
4252
- 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)
4253
4282
  p = "";
4254
4283
  else if (!p)
4255
4284
  if (l || (l = f.toLowerCase().replace(/ ?\n/g, " ")), p = "#" + l, !t.helper.isUndefined(a.gUrls[l]))
4256
4285
  p = a.gUrls[l], t.helper.isUndefined(a.gTitles[l]) || (b = a.gTitles[l]);
4257
4286
  else
4258
- return o;
4287
+ return c;
4259
4288
  p = p.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
4260
- var _ = '<a href="' + p + '"';
4261
- 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;
4262
4291
  };
4263
4292
  return r = r.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g, d), r = r.replace(
4264
4293
  /\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,
@@ -4266,7 +4295,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
4266
4295
  ), r = r.replace(
4267
4296
  /\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,
4268
4297
  d
4269
- ), 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) {
4270
4299
  if (l === "\\")
4271
4300
  return f + p;
4272
4301
  if (!t.helper.isString(u.ghMentionsLink))
@@ -4275,22 +4304,22 @@ var Jt = br.decode = pi, ea = { exports: {} };
4275
4304
  return u.openLinksInNewWindow && (b = ' rel="noopener noreferrer" target="¨E95Eblank"'), f + '<a href="' + v + '"' + b + ">" + p + "</a>";
4276
4305
  })), r = a.converter._dispatch("anchors.after", r, u, a), r;
4277
4306
  });
4278
- 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) {
4279
- 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) {
4280
4309
  d = d.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
4281
- var T = d, v = "", b = "", _ = a || "", c = p || "";
4282
- 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;
4283
4312
  };
4284
4313
  }, H = function(r, u) {
4285
- return function(a, d, o) {
4314
+ return function(a, d, c) {
4286
4315
  var f = "mailto:";
4287
- 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>";
4288
4317
  };
4289
4318
  };
4290
4319
  t.subParser("autoLinks", function(r, u, a) {
4291
- 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;
4292
4321
  }), t.subParser("simplifiedAutoLinks", function(r, u, a) {
4293
- 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;
4294
4323
  }), t.subParser("blockGamut", function(r, u, a) {
4295
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;
4296
4325
  }), t.subParser("blockQuotes", function(r, u, a) {
@@ -4298,18 +4327,18 @@ var Jt = br.decode = pi, ea = { exports: {} };
4298
4327
 
4299
4328
  `;
4300
4329
  var d = /(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;
4301
- return u.splitAdjacentBlockquotes && (d = /^ {0,3}>[\s\S]*?(?:\n\n)/gm), r = r.replace(d, function(o) {
4302
- 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) {
4303
4332
  var p = l;
4304
4333
  return p = p.replace(/^ /mg, "¨0"), p = p.replace(/¨0/g, ""), p;
4305
4334
  }), t.subParser("hashBlock")(`<blockquote>
4306
- ` + o + `
4335
+ ` + c + `
4307
4336
  </blockquote>`, u, a);
4308
4337
  }), r = a.converter._dispatch("blockQuotes.after", r, u, a), r;
4309
4338
  }), t.subParser("codeBlocks", function(r, u, a) {
4310
4339
  r = a.converter._dispatch("codeBlocks.before", r, u, a), r += "¨0";
4311
4340
  var d = /(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;
4312
- return r = r.replace(d, function(o, f, l) {
4341
+ return r = r.replace(d, function(c, f, l) {
4313
4342
  var p = f, T = l, v = `
4314
4343
  `;
4315
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;
@@ -4317,19 +4346,19 @@ var Jt = br.decode = pi, ea = { exports: {} };
4317
4346
  }), t.subParser("codeSpans", function(r, u, a) {
4318
4347
  return r = a.converter._dispatch("codeSpans.before", r, u, a), typeof r > "u" && (r = ""), r = r.replace(
4319
4348
  /(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,
4320
- function(d, o, f, l) {
4349
+ function(d, c, f, l) {
4321
4350
  var p = l;
4322
- 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;
4323
4352
  }
4324
4353
  ), r = a.converter._dispatch("codeSpans.after", r, u, a), r;
4325
4354
  }), t.subParser("completeHTMLDocument", function(r, u, a) {
4326
4355
  if (!u.completeHTMLDocument)
4327
4356
  return r;
4328
4357
  r = a.converter._dispatch("completeHTMLDocument.before", r, u, a);
4329
- var d = "html", o = `<!DOCTYPE HTML>
4358
+ var d = "html", c = `<!DOCTYPE HTML>
4330
4359
  `, f = "", l = `<meta charset="utf-8">
4331
4360
  `, p = "", T = "";
4332
- 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 + `>
4333
4362
  `, d = a.metadata.parsed.doctype.toString().toLowerCase(), (d === "html" || d === "html5") && (l = '<meta charset="utf-8">'));
4334
4363
  for (var v in a.metadata.parsed)
4335
4364
  if (a.metadata.parsed.hasOwnProperty(v))
@@ -4354,7 +4383,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
4354
4383
  T += '<meta name="' + v + '" content="' + a.metadata.parsed[v] + `">
4355
4384
  `;
4356
4385
  }
4357
- return r = o + "<html" + p + `>
4386
+ return r = c + "<html" + p + `>
4358
4387
  <head>
4359
4388
  ` + f + l + T + `</head>
4360
4389
  <body>
@@ -4362,8 +4391,8 @@ var Jt = br.decode = pi, ea = { exports: {} };
4362
4391
  </body>
4363
4392
  </html>`, r = a.converter._dispatch("completeHTMLDocument.after", r, u, a), r;
4364
4393
  }), t.subParser("detab", function(r, u, a) {
4365
- 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) {
4366
- 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++)
4367
4396
  f += " ";
4368
4397
  return f;
4369
4398
  }), r = r.replace(/¨A/g, " "), r = r.replace(/¨B/g, ""), r = a.converter._dispatch("detab.after", r, u, a), r;
@@ -4374,8 +4403,8 @@ var Jt = br.decode = pi, ea = { exports: {} };
4374
4403
  return r;
4375
4404
  r = a.converter._dispatch("emoji.before", r, u, a);
4376
4405
  var d = /:([\S]+?):/g;
4377
- return r = r.replace(d, function(o, f) {
4378
- 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;
4379
4408
  }), r = a.converter._dispatch("emoji.after", r, u, a), r;
4380
4409
  }), t.subParser("encodeAmpsAndAngles", function(r, u, a) {
4381
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;
@@ -4385,14 +4414,14 @@ var Jt = br.decode = pi, ea = { exports: {} };
4385
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;
4386
4415
  }), t.subParser("escapeSpecialCharsWithinTagAttributes", function(r, u, a) {
4387
4416
  r = a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before", r, u, a);
4388
- var d = /<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi, o = /<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;
4417
+ var d = /<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi, c = /<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;
4389
4418
  return r = r.replace(d, function(f) {
4390
4419
  return f.replace(/(.)<\/?code>(?=.)/g, "$1`").replace(/([\\`*_~=|])/g, t.helper.escapeCharactersCallback);
4391
- }), r = r.replace(o, function(f) {
4420
+ }), r = r.replace(c, function(f) {
4392
4421
  return f.replace(/([\\`*_~=|])/g, t.helper.escapeCharactersCallback);
4393
4422
  }), r = a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after", r, u, a), r;
4394
4423
  }), t.subParser("githubCodeBlocks", function(r, u, a) {
4395
- 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) {
4396
4425
  var p = u.omitExtraWLInCodeBlocks ? "" : `
4397
4426
  `;
4398
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), `
@@ -4409,14 +4438,14 @@ var Jt = br.decode = pi, ea = { exports: {} };
4409
4438
  `, r = a.converter._dispatch("hashBlock.after", r, u, a), r;
4410
4439
  }), t.subParser("hashCodeTags", function(r, u, a) {
4411
4440
  r = a.converter._dispatch("hashCodeTags.before", r, u, a);
4412
- var d = function(o, f, l, p) {
4441
+ var d = function(c, f, l, p) {
4413
4442
  var T = l + t.subParser("encodeCode")(f, u, a) + p;
4414
4443
  return "¨C" + (a.gHtmlSpans.push(T) - 1) + "C";
4415
4444
  };
4416
4445
  return r = t.helper.replaceRecursiveRegExp(r, d, "<code\\b[^>]*>", "</code>", "gim"), r = a.converter._dispatch("hashCodeTags.after", r, u, a), r;
4417
4446
  }), t.subParser("hashElement", function(r, u, a) {
4418
- return function(d, o) {
4419
- var f = o;
4447
+ return function(d, c) {
4448
+ var f = c;
4420
4449
  return f = f.replace(/\n\n/g, `
4421
4450
  `), f = f.replace(/^\n/, ""), f = f.replace(/\n+$/g, ""), f = `
4422
4451
 
@@ -4461,31 +4490,31 @@ var Jt = br.decode = pi, ea = { exports: {} };
4461
4490
  "output",
4462
4491
  "video",
4463
4492
  "p"
4464
- ], o = function(c, w, A, R) {
4465
- var O = c;
4493
+ ], c = function(o, w, A, R) {
4494
+ var O = o;
4466
4495
  return A.search(/\bmarkdown\b/) !== -1 && (O = A + a.converter.makeHtml(w) + R), `
4467
4496
 
4468
4497
  ¨K` + (a.gHtmlBlocks.push(O) - 1) + `K
4469
4498
 
4470
4499
  `;
4471
4500
  };
4472
- u.backslashEscapesHTMLTags && (r = r.replace(/\\<(\/?[^>]+?)>/g, function(c, w) {
4501
+ u.backslashEscapesHTMLTags && (r = r.replace(/\\<(\/?[^>]+?)>/g, function(o, w) {
4473
4502
  return "&lt;" + w + "&gt;";
4474
4503
  }));
4475
4504
  for (var f = 0; f < d.length; ++f)
4476
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; ) {
4477
- var b = t.helper.splitAtIndex(r, l), _ = t.helper.replaceRecursiveRegExp(b[1], o, T, v, "im");
4478
- 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])
4479
4508
  break;
4480
- r = b[0].concat(_);
4509
+ r = b[0].concat(y);
4481
4510
  }
4482
4511
  return r = r.replace(
4483
4512
  /(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,
4484
4513
  t.subParser("hashElement")(r, u, a)
4485
- ), r = t.helper.replaceRecursiveRegExp(r, function(c) {
4514
+ ), r = t.helper.replaceRecursiveRegExp(r, function(o) {
4486
4515
  return `
4487
4516
 
4488
- ¨K` + (a.gHtmlBlocks.push(c) - 1) + `K
4517
+ ¨K` + (a.gHtmlBlocks.push(o) - 1) + `K
4489
4518
 
4490
4519
  `;
4491
4520
  }, "^ {0,3}<!--", "-->", "gm"), r = r.replace(
@@ -4494,65 +4523,65 @@ var Jt = br.decode = pi, ea = { exports: {} };
4494
4523
  ), r = a.converter._dispatch("hashHTMLBlocks.after", r, u, a), r;
4495
4524
  }), t.subParser("hashHTMLSpans", function(r, u, a) {
4496
4525
  r = a.converter._dispatch("hashHTMLSpans.before", r, u, a);
4497
- function d(o) {
4498
- return "¨C" + (a.gHtmlSpans.push(o) - 1) + "C";
4526
+ function d(c) {
4527
+ return "¨C" + (a.gHtmlSpans.push(c) - 1) + "C";
4499
4528
  }
4500
- return r = r.replace(/<[^>]+?\/>/gi, function(o) {
4501
- return d(o);
4502
- }), r = r.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g, function(o) {
4503
- return d(o);
4504
- }), r = r.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g, function(o) {
4505
- return d(o);
4506
- }), r = r.replace(/<[^>]+?>/gi, function(o) {
4507
- 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);
4508
4537
  }), r = a.converter._dispatch("hashHTMLSpans.after", r, u, a), r;
4509
4538
  }), t.subParser("unhashHTMLSpans", function(r, u, a) {
4510
4539
  r = a.converter._dispatch("unhashHTMLSpans.before", r, u, a);
4511
4540
  for (var d = 0; d < a.gHtmlSpans.length; ++d) {
4512
- 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); ) {
4513
4542
  var l = RegExp.$1;
4514
- 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) {
4515
4544
  console.error("maximum nesting of 10 spans reached!!!");
4516
4545
  break;
4517
4546
  }
4518
4547
  ++f;
4519
4548
  }
4520
- r = r.replace("¨C" + d + "C", o);
4549
+ r = r.replace("¨C" + d + "C", c);
4521
4550
  }
4522
4551
  return r = a.converter._dispatch("unhashHTMLSpans.after", r, u, a), r;
4523
4552
  }), t.subParser("hashPreCodeTags", function(r, u, a) {
4524
4553
  r = a.converter._dispatch("hashPreCodeTags.before", r, u, a);
4525
- var d = function(o, f, l, p) {
4554
+ var d = function(c, f, l, p) {
4526
4555
  var T = l + t.subParser("encodeCode")(f, u, a) + p;
4527
4556
  return `
4528
4557
 
4529
- ¨G` + (a.ghCodeBlocks.push({ text: o, codeblock: T }) - 1) + `G
4558
+ ¨G` + (a.ghCodeBlocks.push({ text: c, codeblock: T }) - 1) + `G
4530
4559
 
4531
4560
  `;
4532
4561
  };
4533
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;
4534
4563
  }), t.subParser("headers", function(r, u, a) {
4535
4564
  r = a.converter._dispatch("headers.before", r, u, a);
4536
- 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;
4537
- r = r.replace(o, function(T, v) {
4538
- 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 + ">";
4539
4568
  return t.subParser("hashBlock")(w, u, a);
4540
4569
  }), r = r.replace(f, function(T, v) {
4541
- 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 + ">";
4542
4571
  return t.subParser("hashBlock")(w, u, a);
4543
4572
  });
4544
4573
  var l = u.requireSpaceBeforeHeadingText ? /^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm : /^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;
4545
4574
  r = r.replace(l, function(T, v, b) {
4546
- var _ = b;
4547
- u.customizedHeaderId && (_ = b.replace(/\s?\{([^{]+?)}\s*$/, ""));
4548
- 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 + ">";
4549
4578
  return t.subParser("hashBlock")(R, u, a);
4550
4579
  });
4551
4580
  function p(T) {
4552
4581
  var v, b;
4553
4582
  if (u.customizedHeaderId) {
4554
- var _ = T.match(/\{([^{]+?)}\s*$/);
4555
- _ && _[1] && (T = _[1]);
4583
+ var y = T.match(/\{([^{]+?)}\s*$/);
4584
+ y && y[1] && (T = y[1]);
4556
4585
  }
4557
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;
4558
4587
  }
@@ -4563,74 +4592,74 @@ var Jt = br.decode = pi, ea = { exports: {} };
4563
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;
4564
4593
  }), t.subParser("images", function(r, u, a) {
4565
4594
  r = a.converter._dispatch("images.before", r, u, a);
4566
- 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;
4567
- function T(b, _, c, w, A, R, O, N) {
4568
- 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);
4569
4598
  }
4570
- function v(b, _, c, w, A, R, O, N) {
4599
+ function v(b, y, o, w, A, R, O, j) {
4571
4600
  var B = a.gUrls, G = a.gTitles, J = a.gDimensions;
4572
- if (c = c.toLowerCase(), N || (N = ""), b.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4601
+ if (o = o.toLowerCase(), j || (j = ""), b.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4573
4602
  w = "";
4574
4603
  else if (w === "" || w === null)
4575
- if ((c === "" || c === null) && (c = _.toLowerCase().replace(/ ?\n/g, " ")), w = "#" + c, !t.helper.isUndefined(B[c]))
4576
- 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);
4577
4606
  else
4578
4607
  return b;
4579
- _ = _.replace(/"/g, "&quot;").replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), w = w.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
4580
- var U = '<img src="' + w + '" alt="' + _ + '"';
4581
- 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;
4582
4611
  }
4583
- 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;
4584
4613
  }), t.subParser("italicsAndBold", function(r, u, a) {
4585
4614
  r = a.converter._dispatch("italicsAndBold.before", r, u, a);
4586
- function d(o, f, l) {
4587
- return f + o + l;
4615
+ function d(c, f, l) {
4616
+ return f + c + l;
4588
4617
  }
4589
- 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) {
4590
4619
  return d(f, "<strong><em>", "</em></strong>");
4591
- }), 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) {
4592
4621
  return d(f, "<strong>", "</strong>");
4593
- }), 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) {
4594
4623
  return d(f, "<em>", "</em>");
4595
- })) : (r = r.replace(/___(\S[\s\S]*?)___/g, function(o, f) {
4596
- return /\S$/.test(f) ? d(f, "<strong><em>", "</em></strong>") : o;
4597
- }), r = r.replace(/__(\S[\s\S]*?)__/g, function(o, f) {
4598
- return /\S$/.test(f) ? d(f, "<strong>", "</strong>") : o;
4599
- }), r = r.replace(/_([^\s_][\s\S]*?)_/g, function(o, f) {
4600
- return /\S$/.test(f) ? d(f, "<em>", "</em>") : o;
4601
- })), 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) {
4602
4631
  return d(l, f + "<strong><em>", "</em></strong>");
4603
- }), 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) {
4604
4633
  return d(l, f + "<strong>", "</strong>");
4605
- }), 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) {
4606
4635
  return d(l, f + "<em>", "</em>");
4607
- })) : (r = r.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g, function(o, f) {
4608
- return /\S$/.test(f) ? d(f, "<strong><em>", "</em></strong>") : o;
4609
- }), r = r.replace(/\*\*(\S[\s\S]*?)\*\*/g, function(o, f) {
4610
- return /\S$/.test(f) ? d(f, "<strong>", "</strong>") : o;
4611
- }), r = r.replace(/\*([^\s*][\s\S]*?)\*/g, function(o, f) {
4612
- 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;
4613
4642
  })), r = a.converter._dispatch("italicsAndBold.after", r, u, a), r;
4614
4643
  }), t.subParser("lists", function(r, u, a) {
4615
4644
  function d(l, p) {
4616
4645
  a.gListLevel++, l = l.replace(/\n{2,}$/, `
4617
4646
  `), l += "¨0";
4618
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);
4619
- 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) {
4620
4649
  O = O && O.trim() !== "";
4621
- var N = t.subParser("outdent")(A, u, a), B = "";
4622
- 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() {
4623
4652
  var G = '<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';
4624
4653
  return O && (G += " checked"), G += ">", G;
4625
- })), N = N.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g, function(G) {
4654
+ })), j = j.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g, function(G) {
4626
4655
  return "¨A" + G;
4627
- }), _ || 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, `
4628
4657
 
4629
- `), v ? N = t.subParser("paragraphs")(N, u, a) : N = t.subParser("spanGamut")(N, u, a)), N = N.replace("¨A", ""), N = "<li" + B + ">" + N + `</li>
4630
- `, 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;
4631
4660
  }), l = l.replace(/¨0/g, ""), a.gListLevel--, p && (l = l.replace(/\s+$/, "")), l;
4632
4661
  }
4633
- function o(l, p) {
4662
+ function c(l, p) {
4634
4663
  if (p === "ol") {
4635
4664
  var T = l.match(/^ *(\d+)\./);
4636
4665
  if (T && T[1] !== "1")
@@ -4639,29 +4668,29 @@ var Jt = br.decode = pi, ea = { exports: {} };
4639
4668
  return "";
4640
4669
  }
4641
4670
  function f(l, p, T) {
4642
- 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 = "";
4643
- 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)
4644
4673
  (function A(R) {
4645
- var O = R.search(_), N = o(l, p);
4646
- O !== -1 ? (c += `
4674
+ var O = R.search(y), j = c(l, p);
4675
+ O !== -1 ? (o += `
4647
4676
 
4648
- <` + p + N + `>
4677
+ <` + p + j + `>
4649
4678
  ` + d(R.slice(0, O), !!T) + "</" + p + `>
4650
- `, 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 += `
4651
4680
 
4652
- <` + p + N + `>
4681
+ <` + p + j + `>
4653
4682
  ` + d(R, !!T) + "</" + p + `>
4654
4683
  `;
4655
4684
  })(l);
4656
4685
  else {
4657
- var w = o(l, p);
4658
- c = `
4686
+ var w = c(l, p);
4687
+ o = `
4659
4688
 
4660
4689
  <` + p + w + `>
4661
4690
  ` + d(l, !!T) + "</" + p + `>
4662
4691
  `;
4663
4692
  }
4664
- return c;
4693
+ return o;
4665
4694
  }
4666
4695
  return r = a.converter._dispatch("lists.before", r, u, a), r += "¨0", a.gListLevel ? r = r.replace(
4667
4696
  /^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,
@@ -4680,39 +4709,39 @@ var Jt = br.decode = pi, ea = { exports: {} };
4680
4709
  if (!u.metadata)
4681
4710
  return r;
4682
4711
  r = a.converter._dispatch("metadata.before", r, u, a);
4683
- function d(o) {
4684
- 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) {
4685
4714
  return a.metadata.parsed[l] = p, "";
4686
4715
  });
4687
4716
  }
4688
- 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) {
4689
4718
  return d(l), "¨M";
4690
- }), 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) {
4691
4720
  return f && (a.metadata.format = f), d(l), "¨M";
4692
4721
  }), r = r.replace(/¨M/g, ""), r = a.converter._dispatch("metadata.after", r, u, a), r;
4693
4722
  }), t.subParser("outdent", function(r, u, a) {
4694
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;
4695
4724
  }), t.subParser("paragraphs", function(r, u, a) {
4696
4725
  r = a.converter._dispatch("paragraphs.before", r, u, a), r = r.replace(/^\n+/g, ""), r = r.replace(/\n+$/g, "");
4697
- 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++) {
4698
4727
  var p = d[l];
4699
- 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));
4700
4729
  }
4701
- for (f = o.length, l = 0; l < f; l++) {
4702
- for (var T = "", v = o[l], b = !1; /¨(K|G)(\d+)\1/.test(v); ) {
4703
- var _ = RegExp.$1, c = RegExp.$2;
4704
- _ === "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);
4705
4734
  }
4706
- o[l] = v;
4735
+ c[l] = v;
4707
4736
  }
4708
- return r = o.join(`
4737
+ return r = c.join(`
4709
4738
  `), r = r.replace(/^\n+/g, ""), r = r.replace(/\n+$/g, ""), a.converter._dispatch("paragraphs.after", r, u, a);
4710
4739
  }), t.subParser("runExtension", function(r, u, a, d) {
4711
4740
  if (r.filter)
4712
4741
  u = r.filter(u, d.converter, a);
4713
4742
  else if (r.regex) {
4714
- var o = r.regex;
4715
- 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);
4716
4745
  }
4717
4746
  return u;
4718
4747
  }), t.subParser("spanGamut", function(r, u, a) {
@@ -4720,109 +4749,109 @@ var Jt = br.decode = pi, ea = { exports: {} };
4720
4749
  `)) : r = r.replace(/ +\n/g, `<br />
4721
4750
  `), r = a.converter._dispatch("spanGamut.after", r, u, a), r;
4722
4751
  }), t.subParser("strikethrough", function(r, u, a) {
4723
- function d(o) {
4724
- 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>";
4725
4754
  }
4726
- 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) {
4727
4756
  return d(f);
4728
4757
  }), r = a.converter._dispatch("strikethrough.after", r, u, a)), r;
4729
4758
  }), t.subParser("stripLinkDefinitions", function(r, u, a) {
4730
- 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;
4731
4760
  r += "¨0";
4732
- var f = function(l, p, T, v, b, _, c) {
4733
- 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] = {
4734
4763
  width: v,
4735
4764
  height: b
4736
4765
  }), ""));
4737
4766
  };
4738
- 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;
4739
4768
  }), t.subParser("tables", function(r, u, a) {
4740
4769
  if (!u.tables)
4741
4770
  return r;
4742
- 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;
4743
4772
  function f(b) {
4744
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;"' : "";
4745
4774
  }
4746
- function l(b, _) {
4747
- var c = "";
4748
- 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>
4749
4778
  `;
4750
4779
  }
4751
- function p(b, _) {
4752
- var c = t.subParser("spanGamut")(b, u, a);
4753
- return "<td" + _ + ">" + c + `</td>
4780
+ function p(b, y) {
4781
+ var o = t.subParser("spanGamut")(b, u, a);
4782
+ return "<td" + y + ">" + o + `</td>
4754
4783
  `;
4755
4784
  }
4756
- function T(b, _) {
4757
- for (var c = `<table>
4785
+ function T(b, y) {
4786
+ for (var o = `<table>
4758
4787
  <thead>
4759
4788
  <tr>
4760
4789
  `, w = b.length, A = 0; A < w; ++A)
4761
- c += b[A];
4762
- for (c += `</tr>
4790
+ o += b[A];
4791
+ for (o += `</tr>
4763
4792
  </thead>
4764
4793
  <tbody>
4765
- `, A = 0; A < _.length; ++A) {
4766
- c += `<tr>
4794
+ `, A = 0; A < y.length; ++A) {
4795
+ o += `<tr>
4767
4796
  `;
4768
4797
  for (var R = 0; R < w; ++R)
4769
- c += _[A][R];
4770
- c += `</tr>
4798
+ o += y[A][R];
4799
+ o += `</tr>
4771
4800
  `;
4772
4801
  }
4773
- return c += `</tbody>
4802
+ return o += `</tbody>
4774
4803
  </table>
4775
- `, c;
4804
+ `, o;
4776
4805
  }
4777
4806
  function v(b) {
4778
- var _, c = b.split(`
4807
+ var y, o = b.split(`
4779
4808
  `);
4780
- for (_ = 0; _ < c.length; ++_)
4781
- /^ {0,3}\|/.test(c[_]) && (c[_] = c[_].replace(/^ {0,3}\|/, "")), /\|[ \t]*$/.test(c[_]) && (c[_] = c[_].replace(/\|[ \t]*$/, "")), c[_] = t.subParser("codeSpans")(c[_], u, a);
4782
- 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) {
4783
4812
  return U.trim();
4784
- }), A = c[1].split("|").map(function(U) {
4813
+ }), A = o[1].split("|").map(function(U) {
4785
4814
  return U.trim();
4786
- }), R = [], O = [], N = [], B = [];
4787
- for (c.shift(), c.shift(), _ = 0; _ < c.length; ++_)
4788
- c[_].trim() !== "" && R.push(
4789
- 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) {
4790
4819
  return U.trim();
4791
4820
  })
4792
4821
  );
4793
4822
  if (w.length < A.length)
4794
4823
  return b;
4795
- for (_ = 0; _ < A.length; ++_)
4796
- N.push(f(A[_]));
4797
- for (_ = 0; _ < w.length; ++_)
4798
- t.helper.isUndefined(N[_]) && (N[_] = ""), O.push(l(w[_], N[_]));
4799
- 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) {
4800
4829
  for (var G = [], J = 0; J < O.length; ++J)
4801
- 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]));
4802
4831
  B.push(G);
4803
4832
  }
4804
4833
  return T(O, B);
4805
4834
  }
4806
- 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;
4807
4836
  }), t.subParser("underline", function(r, u, a) {
4808
- 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) {
4809
- return "<u>" + o + "</u>";
4810
- }), r = r.replace(/\b__(\S[\s\S]*?)__\b/g, function(d, o) {
4811
- return "<u>" + o + "</u>";
4812
- })) : (r = r.replace(/___(\S[\s\S]*?)___/g, function(d, o) {
4813
- return /\S$/.test(o) ? "<u>" + o + "</u>" : d;
4814
- }), r = r.replace(/__(\S[\s\S]*?)__/g, function(d, o) {
4815
- 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;
4816
4845
  })), r = r.replace(/(_)/g, t.helper.escapeCharactersCallback), r = a.converter._dispatch("underline.after", r, u, a)), r;
4817
4846
  }), t.subParser("unescapeSpecialChars", function(r, u, a) {
4818
- return r = a.converter._dispatch("unescapeSpecialChars.before", r, u, a), r = r.replace(/¨E(\d+)E/g, function(d, o) {
4819
- 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);
4820
4849
  return String.fromCharCode(f);
4821
4850
  }), r = a.converter._dispatch("unescapeSpecialChars.after", r, u, a), r;
4822
4851
  }), t.subParser("makeMarkdown.blockquote", function(r, u) {
4823
4852
  var a = "";
4824
4853
  if (r.hasChildNodes())
4825
- 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) {
4826
4855
  var l = t.subParser("makeMarkdown.node")(d[f], u);
4827
4856
  l !== "" && (a += l);
4828
4857
  }
@@ -4839,19 +4868,19 @@ var Jt = br.decode = pi, ea = { exports: {} };
4839
4868
  var a = "";
4840
4869
  if (r.hasChildNodes()) {
4841
4870
  a += "*";
4842
- 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)
4843
4872
  a += t.subParser("makeMarkdown.node")(d[f], u);
4844
4873
  a += "*";
4845
4874
  }
4846
4875
  return a;
4847
4876
  }), t.subParser("makeMarkdown.header", function(r, u, a) {
4848
- var d = new Array(a + 1).join("#"), o = "";
4877
+ var d = new Array(a + 1).join("#"), c = "";
4849
4878
  if (r.hasChildNodes()) {
4850
- o = d + " ";
4879
+ c = d + " ";
4851
4880
  for (var f = r.childNodes, l = f.length, p = 0; p < l; ++p)
4852
- o += t.subParser("makeMarkdown.node")(f[p], u);
4881
+ c += t.subParser("makeMarkdown.node")(f[p], u);
4853
4882
  }
4854
- return o;
4883
+ return c;
4855
4884
  }), t.subParser("makeMarkdown.hr", function() {
4856
4885
  return "---";
4857
4886
  }), t.subParser("makeMarkdown.image", function(r) {
@@ -4860,9 +4889,9 @@ var Jt = br.decode = pi, ea = { exports: {} };
4860
4889
  }), t.subParser("makeMarkdown.links", function(r, u) {
4861
4890
  var a = "";
4862
4891
  if (r.hasChildNodes() && r.hasAttribute("href")) {
4863
- var d = r.childNodes, o = d.length;
4892
+ var d = r.childNodes, c = d.length;
4864
4893
  a = "[";
4865
- for (var f = 0; f < o; ++f)
4894
+ for (var f = 0; f < c; ++f)
4866
4895
  a += t.subParser("makeMarkdown.node")(d[f], u);
4867
4896
  a += "](", a += "<" + r.getAttribute("href") + ">", r.hasAttribute("title") && (a += ' "' + r.getAttribute("title") + '"'), a += ")";
4868
4897
  }
@@ -4871,16 +4900,16 @@ var Jt = br.decode = pi, ea = { exports: {} };
4871
4900
  var d = "";
4872
4901
  if (!r.hasChildNodes())
4873
4902
  return "";
4874
- for (var o = r.childNodes, f = o.length, l = r.getAttribute("start") || 1, p = 0; p < f; ++p)
4875
- 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")) {
4876
4905
  var T = "";
4877
- 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;
4878
4907
  }
4879
4908
  return d += `
4880
4909
  <!-- -->
4881
4910
  `, d.trim();
4882
4911
  }), t.subParser("makeMarkdown.listItem", function(r, u) {
4883
- 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)
4884
4913
  a += t.subParser("makeMarkdown.node")(d[f], u);
4885
4914
  return /\n$/.test(a) ? a = a.split(`
4886
4915
  `).join(`
@@ -4899,8 +4928,8 @@ var Jt = br.decode = pi, ea = { exports: {} };
4899
4928
  `;
4900
4929
  if (r.nodeType !== 1)
4901
4930
  return "";
4902
- var o = r.tagName.toLowerCase();
4903
- switch (o) {
4931
+ var c = r.tagName.toLowerCase();
4932
+ switch (c) {
4904
4933
  case "h1":
4905
4934
  a || (d = t.subParser("makeMarkdown.header")(r, u, 1) + `
4906
4935
 
@@ -5000,7 +5029,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
5000
5029
  }), t.subParser("makeMarkdown.paragraph", function(r, u) {
5001
5030
  var a = "";
5002
5031
  if (r.hasChildNodes())
5003
- 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)
5004
5033
  a += t.subParser("makeMarkdown.node")(d[f], u);
5005
5034
  return a = a.trim(), a;
5006
5035
  }), t.subParser("makeMarkdown.pre", function(r, u) {
@@ -5010,7 +5039,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
5010
5039
  var a = "";
5011
5040
  if (r.hasChildNodes()) {
5012
5041
  a += "~~";
5013
- 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)
5014
5043
  a += t.subParser("makeMarkdown.node")(d[f], u);
5015
5044
  a += "~~";
5016
5045
  }
@@ -5019,17 +5048,17 @@ var Jt = br.decode = pi, ea = { exports: {} };
5019
5048
  var a = "";
5020
5049
  if (r.hasChildNodes()) {
5021
5050
  a += "**";
5022
- 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)
5023
5052
  a += t.subParser("makeMarkdown.node")(d[f], u);
5024
5053
  a += "**";
5025
5054
  }
5026
5055
  return a;
5027
5056
  }), t.subParser("makeMarkdown.table", function(r, u) {
5028
- var a = "", d = [[], []], o = r.querySelectorAll("thead>tr>th"), f = r.querySelectorAll("tbody>tr"), l, p;
5029
- for (l = 0; l < o.length; ++l) {
5030
- var T = t.subParser("makeMarkdown.tableCell")(o[l], u), v = "---";
5031
- if (o[l].hasAttribute("style")) {
5032
- 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, "");
5033
5062
  switch (b) {
5034
5063
  case "text-align:left;":
5035
5064
  v = ":---";
@@ -5045,10 +5074,10 @@ var Jt = br.decode = pi, ea = { exports: {} };
5045
5074
  d[0][l] = T.trim(), d[1][l] = v;
5046
5075
  }
5047
5076
  for (l = 0; l < f.length; ++l) {
5048
- var _ = d.push([]) - 1, c = f[l].getElementsByTagName("td");
5049
- 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) {
5050
5079
  var w = " ";
5051
- 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);
5052
5081
  }
5053
5082
  }
5054
5083
  var A = 3;
@@ -5068,7 +5097,7 @@ var Jt = br.decode = pi, ea = { exports: {} };
5068
5097
  var a = "";
5069
5098
  if (!r.hasChildNodes())
5070
5099
  return "";
5071
- 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)
5072
5101
  a += t.subParser("makeMarkdown.node")(d[f], u, !0);
5073
5102
  return a.trim();
5074
5103
  }), t.subParser("makeMarkdown.txt", function(r) {
@@ -5077,10 +5106,10 @@ var Jt = br.decode = pi, ea = { exports: {} };
5077
5106
  });
5078
5107
  var x = this;
5079
5108
  e.exports ? e.exports = t : x.showdown = t;
5080
- }).call(je);
5081
- })(ea);
5082
- var hi = ea.exports;
5083
- 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");
5084
5113
  let ie;
5085
5114
  const qr = {
5086
5115
  color: {
@@ -5092,10 +5121,10 @@ const qr = {
5092
5121
  },
5093
5122
  mention: {
5094
5123
  type: "lang",
5095
- regex: mi,
5124
+ regex: hi,
5096
5125
  replace: (e) => {
5097
- const n = e.match(gi), i = n && n.length > 1 && n[1], t = n && n.length > 2 && n[2];
5098
- 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(
5099
5128
  (s) => s.toLowerCase() === String(i).toLowerCase()
5100
5129
  ) ? `<a class="mention extraMention" data-user-id="${i}">@${t}</a>` : `<a class="mention" data-user-id="${i}">@${t}</a>`;
5101
5130
  }
@@ -5109,18 +5138,18 @@ const qr = {
5109
5138
  }
5110
5139
  }
5111
5140
  };
5112
- function bi() {
5113
- 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({
5114
5143
  extensions: ["color", "mention", "usermentiotag"]
5115
5144
  }), ie.setOption("strikethrough", !0), ie.setOption("tables", !0), ie.setOption("openLinksInNewWindow", !0), ie.setOption("disableForced4SpacesIndentedSublists", !0), ie);
5116
5145
  }
5117
- const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5146
+ const mi = gi(), bi = new RegExp(tt, "gi"), vi = new RegExp(
5118
5147
  /<user-mentio[^>]*data-user-id=["']([^"]+)["'][^>]*>(?:@|(?:&#64;))(.+?)<\/user-mentio>/,
5119
5148
  "gi"
5120
- ), At = (e, n, i) => ra.find(
5149
+ ), Ct = (e, n, i) => ta.find(
5121
5150
  (t) => t.toLowerCase() === String(n).toLowerCase()
5122
- ) ? `<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, {
5123
- 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,
5124
5153
  css: {
5125
5154
  whiteList: {
5126
5155
  // @ts-ignore method not found
@@ -5129,15 +5158,15 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5129
5158
  }
5130
5159
  },
5131
5160
  stripIgnoreTag: !0
5132
- }).replace(/&nbsp;/g, " ").replace(/\u2060/g, ""), Ei = (e = "") => {
5161
+ }).replace(/&nbsp;/g, " ").replace(/\u2060/g, ""), _i = (e = "") => {
5133
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;
5134
5163
  return e.replace(
5135
5164
  n,
5136
5165
  (i) => `${i}<span class="color-block" style="background-color: ${i};"></span>`
5137
5166
  );
5138
- }, Ti = (e = "") => {
5167
+ }, ki = (e = "") => {
5139
5168
  try {
5140
- return ei(e, {
5169
+ return Xn(e, {
5141
5170
  target: "_blank",
5142
5171
  ignoreTags: ["pre", "code", "script", "style"],
5143
5172
  render: ({ tagName: n, attributes: i, content: t }) => {
@@ -5147,8 +5176,8 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5147
5176
  s = `${g}[...]${m}`;
5148
5177
  }
5149
5178
  const h = Object.keys(i).reduce((g, m) => {
5150
- const y = i[m];
5151
- return `${g} ${m}="${y}"`;
5179
+ const _ = i[m];
5180
+ return `${g} ${m}="${_}"`;
5152
5181
  });
5153
5182
  return `<${n} ${h}>${s}</${n}>`;
5154
5183
  },
@@ -5161,10 +5190,10 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5161
5190
  } catch {
5162
5191
  return e;
5163
5192
  }
5164
- }, Ai = (e = "", n = "html") => {
5165
- let i = la(e);
5166
- return i = fa(i), n === "markdown" ? i = vi.makeHtml(i) : i = _i(i), i = Jt(i), i = Li(i), i = Ti(i), i;
5167
- }, 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 = () => {
5168
5197
  const e = "ibmMonoOnDemand";
5169
5198
  if (!document.getElementById(e)) {
5170
5199
  const n = document.createElement("style");
@@ -5172,10 +5201,10 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5172
5201
  document.createTextNode(`@import url(${ba});`)
5173
5202
  ), document.head.appendChild(n);
5174
5203
  }
5175
- }, Ct = (e = "") => (
5204
+ }, St = (e = "") => (
5176
5205
  // eslint-disable-next-line no-control-regex
5177
5206
  e.replace(/[^\u0000-\u007E]/g, "")
5178
- ), Si = (e = "") => {
5207
+ ), Ai = (e = "") => {
5179
5208
  const n = /<pre\b[^>]*>\s*<code\b[^>]*>([\s\S]*?)<\/code>\s*<\/pre>/g;
5180
5209
  return e.replace(n, (s) => s.replace(/<\/p>\s*<p>/g, `
5181
5210
  `).replace(/<p>/g, "").replace(/<\/p>/g, "")).replace(n, (s) => Rr(s, {
@@ -5184,7 +5213,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5184
5213
  code: []
5185
5214
  }
5186
5215
  }));
5187
- }, 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) => {
5188
5217
  try {
5189
5218
  let t;
5190
5219
  try {
@@ -5203,7 +5232,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5203
5232
  }, 500);
5204
5233
  } catch {
5205
5234
  }
5206
- }, Bi = ia(
5235
+ }, Mi = ua(
5207
5236
  ({
5208
5237
  content: e,
5209
5238
  type: n,
@@ -5213,14 +5242,14 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5213
5242
  hashAutoscrollTopMargin: h = 0,
5214
5243
  forceDefaultLinkTarget: g,
5215
5244
  inheritBrandingStyles: m = !1,
5216
- addColorBlocks: y = !1,
5245
+ addColorBlocks: _ = !1,
5217
5246
  replaceLinkDomains: D = [],
5218
5247
  enabledLinkSafetyWarning: S = !1,
5219
5248
  safeLinkDomains: E = [],
5220
5249
  onSaveToClipboard: k,
5221
5250
  onTextSelected: q
5222
5251
  }, L) => {
5223
- 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(
5224
5253
  (a) => {
5225
5254
  P.current = a, typeof L == "function" ? L(a) : L && (L.current = a);
5226
5255
  },
@@ -5228,8 +5257,8 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5228
5257
  ), r = st(() => {
5229
5258
  const { hash: a } = window.location;
5230
5259
  if (P.current && a) {
5231
- const d = Aa(a.substring(1));
5232
- qi(P.current, `#${d}`, h);
5260
+ const d = Ea(a.substring(1));
5261
+ Si(P.current, `#${d}`, h);
5233
5262
  }
5234
5263
  }, [h]);
5235
5264
  dt(() => (s && (r(), document.addEventListener("hashchange", r)), () => {
@@ -5238,13 +5267,13 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5238
5267
  if (!q || !P.current)
5239
5268
  return;
5240
5269
  const a = () => {
5241
- const o = window.getSelection();
5242
- if (!o)
5270
+ const c = window.getSelection();
5271
+ if (!c)
5243
5272
  return;
5244
- const f = o.toString().trim();
5273
+ const f = c.toString().trim();
5245
5274
  if (f.length === 0)
5246
5275
  return;
5247
- const p = o.getRangeAt(0).getBoundingClientRect(), T = {
5276
+ const p = c.getRangeAt(0).getBoundingClientRect(), T = {
5248
5277
  x: p.x,
5249
5278
  y: p.y,
5250
5279
  width: p.width,
@@ -5260,7 +5289,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5260
5289
  d.removeEventListener("mouseup", a);
5261
5290
  };
5262
5291
  }, [q]), ot(() => {
5263
- if (!P.current || z.current)
5292
+ if (!P.current || N.current)
5264
5293
  return;
5265
5294
  const a = () => {
5266
5295
  if (!P.current || !g)
@@ -5268,9 +5297,9 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5268
5297
  const v = P.current.querySelectorAll("a") || [];
5269
5298
  if (v.length > 0) {
5270
5299
  const b = window.origin;
5271
- v.forEach((_) => {
5272
- const { href: c } = _;
5273
- 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";
5274
5303
  });
5275
5304
  }
5276
5305
  }, d = () => {
@@ -5278,17 +5307,17 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5278
5307
  const { href: b } = v;
5279
5308
  b.startsWith("mailto:") && (v.target = "_blank");
5280
5309
  });
5281
- }, o = () => {
5310
+ }, c = () => {
5282
5311
  const v = [
5283
- .../* @__PURE__ */ new Set([...ka, ...E])
5312
+ .../* @__PURE__ */ new Set([...ya, ...E])
5284
5313
  ];
5285
5314
  v.length === 0 || !S || !P.current || (P.current.querySelectorAll("a") || []).forEach((b) => {
5286
- const { href: _ } = b, c = new URL(_), { hostname: w } = c;
5287
- 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(
5288
5317
  `ContentRenderer: Unsafe link detected with hostname: ${w}`
5289
5318
  ), b.setAttribute(
5290
5319
  "title",
5291
- `Warning. This link may be unsafe: ${_}`
5320
+ `Warning. This link may be unsafe: ${y}`
5292
5321
  ), b.classList.add("unsafe-link"), b.appendChild(document.createTextNode(" ⚠"))));
5293
5322
  });
5294
5323
  }, f = () => {
@@ -5297,13 +5326,22 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5297
5326
  const v = P.current.querySelectorAll(
5298
5327
  ct
5299
5328
  );
5300
- 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", () => {
5301
5330
  window.hljs.configure({
5302
- languages: _a,
5331
+ languages: lt,
5303
5332
  useBr: !0
5304
5333
  }), v.forEach((b) => {
5305
- const _ = b.innerText, c = document.createElement(ya), w = Jt(_);
5306
- 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);
5307
5345
  }), H((b) => [...b, ...v]);
5308
5346
  }));
5309
5347
  }, l = () => {
@@ -5311,17 +5349,17 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5311
5349
  ({ domainToReplace: v, domainToReplaceWith: b }) => {
5312
5350
  if (!P.current)
5313
5351
  return;
5314
- const _ = P.current.querySelectorAll("a") || [];
5315
- _.length > 0 && _.forEach((c) => {
5352
+ const y = P.current.querySelectorAll("a") || [];
5353
+ y.length > 0 && y.forEach((o) => {
5316
5354
  try {
5317
- const { href: w } = c, A = new URL(w), { hostname: R } = A;
5355
+ const { href: w } = o, A = new URL(w), { hostname: R } = A;
5318
5356
  if (R !== v || A.pathname === "/")
5319
5357
  return;
5320
5358
  if (b === "") {
5321
5359
  const O = `${A.pathname}${A.search}${A.hash}`;
5322
- c.href = O;
5360
+ o.href = O;
5323
5361
  } else
5324
- c.href = w.replace(
5362
+ o.href = w.replace(
5325
5363
  v,
5326
5364
  b
5327
5365
  );
@@ -5335,14 +5373,14 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5335
5373
  const { referrerPolicy: b } = v;
5336
5374
  if (!b) {
5337
5375
  v.referrerPolicy = "strict-origin-when-cross-origin";
5338
- const _ = v.src;
5339
- v.src = "", v.src = _;
5376
+ const y = v.src;
5377
+ v.src = "", v.src = y;
5340
5378
  }
5341
5379
  });
5342
5380
  };
5343
5381
  requestAnimationFrame(() => {
5344
- a(), d(), f(), l(), o(), p(), s && r();
5345
- }), z.current = !0;
5382
+ a(), d(), f(), l(), c(), p(), s && r();
5383
+ }), N.current = !0;
5346
5384
  }, [
5347
5385
  P,
5348
5386
  t,
@@ -5356,13 +5394,13 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5356
5394
  const a = () => {
5357
5395
  if (!P.current || !t)
5358
5396
  return;
5359
- const o = P.current.querySelectorAll("h1, h2, h3, h4, h5, h6") || [];
5360
- 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) => {
5361
5399
  const { textContent: l = "" } = f;
5362
- (l || "").length > 0 && (f.id = f.id || Ct(
5400
+ (l || "").length > 0 && (f.id = f.id || St(
5363
5401
  (l || "").toLowerCase().replace(/\s/g, "-")
5364
5402
  ));
5365
- }), H((f) => [...f, ...o]);
5403
+ }), H((f) => [...f, ...c]);
5366
5404
  }, d = () => {
5367
5405
  if (!P.current)
5368
5406
  return;
@@ -5372,22 +5410,22 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5372
5410
  var p;
5373
5411
  const l = f.style.backgroundColor;
5374
5412
  if (l) {
5375
- 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";
5376
- 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);
5377
5415
  } else
5378
5416
  f.style.colorScheme && f.style.removeProperty("color-scheme");
5379
5417
  });
5380
5418
  };
5381
5419
  a(), d();
5382
5420
  }, [t, e]);
5383
- const u = sa(() => {
5421
+ const u = da(() => {
5384
5422
  const a = n && typeof n == "string" ? n.toLowerCase() : "html";
5385
- let d = a === "text" ? `<p>${e}</p>` : Ai(e, a);
5386
- return y && (d = Ei(d)), d = Si(d), ki(d);
5387
- }, [e, n, y]);
5388
- 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: [
5389
5427
  /* @__PURE__ */ Te(
5390
- Pi,
5428
+ qi,
5391
5429
  {
5392
5430
  className: `content-renderer ${i === "page" ? "fr-view pages-text" : ""}`,
5393
5431
  ref: x,
@@ -5400,20 +5438,20 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5400
5438
  inheritBrandingStyles: m
5401
5439
  }
5402
5440
  ),
5403
- j.map((a) => {
5441
+ I.map((a) => {
5404
5442
  if ((a.textContent ?? "").trim().length === 0)
5405
5443
  return null;
5406
- let d = a.textContent ? Ct(a.textContent) : "", o = !1;
5444
+ let d = a.textContent ? St(a.textContent) : "", c = !1;
5407
5445
  if (a.tagName !== ct) {
5408
- o = !0;
5409
- const f = Pa(a);
5446
+ c = !0;
5447
+ const f = qa(a);
5410
5448
  d = `${window.location.href.split("#")[0]}#${f}`;
5411
5449
  }
5412
- return ca.createPortal(
5413
- /* @__PURE__ */ Te(Di, { className: "content-copy-btn", children: /* @__PURE__ */ Te(
5414
- na,
5450
+ return la.createPortal(
5451
+ /* @__PURE__ */ Te(Li, { className: "content-copy-btn", children: /* @__PURE__ */ Te(
5452
+ ia,
5415
5453
  {
5416
- icon: o ? /* @__PURE__ */ Te(pa, {}) : void 0,
5454
+ icon: c ? /* @__PURE__ */ Te(ha, {}) : void 0,
5417
5455
  colorScheme: "blank",
5418
5456
  clipboardCopyLabel: "Copy heading link",
5419
5457
  clipboardContent: d,
@@ -5426,7 +5464,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5426
5464
  })
5427
5465
  ] });
5428
5466
  }
5429
- ), Di = St.div`
5467
+ ), Li = Lt.div`
5430
5468
  position: absolute;
5431
5469
  top: calc(50% - (32 / 2) * 1px);
5432
5470
  right: 0;
@@ -5450,7 +5488,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5450
5488
  font-size: 12px;
5451
5489
  line-height: 16px;
5452
5490
  }
5453
- `, Pi = St(da).attrs({ as: "div" })`
5491
+ `, qi = Lt(oa).attrs({ as: "div" })`
5454
5492
  h1,
5455
5493
  h2,
5456
5494
  h3,
@@ -5458,6 +5496,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5458
5496
  h5,
5459
5497
  h6 {
5460
5498
  position: relative;
5499
+
5461
5500
  ${({ createAnchors: e }) => e && Ae`
5462
5501
  &:hover button {
5463
5502
  opacity: 1;
@@ -5468,7 +5507,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5468
5507
  scroll-margin-top: ${e}px;
5469
5508
  }
5470
5509
  `}
5471
- // applied after scrollAndHighlight is called
5510
+ // applied after scrollAndHighlight is called
5472
5511
  &.highlight {
5473
5512
  border-radius: var(--radius-lg);
5474
5513
 
@@ -5492,19 +5531,23 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5492
5531
  margin-bottom: var(--space-sm-plus);
5493
5532
  overflow: auto;
5494
5533
  white-space: pre;
5495
- position: relative;
5534
+ position: relative;
5535
+
5496
5536
  *:not(p) {
5497
5537
  font-weight: inherit;
5498
5538
  font-family: "IBM Plex Mono", monospace !important;
5499
5539
  }
5540
+
5500
5541
  code {
5501
5542
  padding: 0;
5502
5543
  background-color: transparent;
5503
5544
  white-space: pre;
5504
5545
  }
5546
+
5505
5547
  code p {
5506
- font-family: "IBM Plex Mono",monospace !important;
5507
- }
5548
+ font-family: "IBM Plex Mono", monospace !important;
5549
+ }
5550
+
5508
5551
  .content-copy-btn {
5509
5552
  position: absolute;
5510
5553
  top: 0;
@@ -5512,18 +5555,21 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5512
5555
  padding-top: var(--space-sm);
5513
5556
  padding-right: var(--space-sm);
5514
5557
  }
5558
+
5515
5559
  :hover button {
5516
5560
  opacity: 1;
5517
5561
  }
5518
5562
  }
5563
+
5519
5564
  code {
5520
- font-family: "IBM Plex Mono",monospace !important;
5521
- padding: var(--space-xs);
5522
- white-space: nowrap;
5523
- font-family: monospace;
5524
- border-radius: var(--radius-md);
5525
- background-color: var(--color-surface-darken);
5526
- }
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
+
5527
5573
  .mention {
5528
5574
  border-radius: var(--radii-md);
5529
5575
  background-color: light-dark(var(--color-yellow50), var(--color-yellow600));
@@ -5535,10 +5581,93 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5535
5581
  text-decoration: none;
5536
5582
  border: 1px solid var(--color-yellow200);
5537
5583
  }
5584
+
5585
+ &:focus-visible {
5586
+ outline: 2px solid var(--color-active-primary);
5587
+ outline-offset: 1px;
5588
+ }
5538
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
+
5539
5667
  .extraMention {
5540
5668
  cursor: inherit;
5541
5669
  }
5670
+
5542
5671
  .color-block {
5543
5672
  display: inline-block;
5544
5673
  width: 18px;
@@ -5553,7 +5682,8 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5553
5682
  // when wide tables are displayed on small screens they look terrible unless
5554
5683
  // we add horizontal scrolling: but this requires giving overflow-x: auto to
5555
5684
  // to the table's container, i.e. this entire content renderer
5556
- @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)
5557
5687
  overflow-x: auto;
5558
5688
  table {
5559
5689
  table-layout: auto !important; // overrides 'fixed' set here
@@ -5569,6 +5699,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5569
5699
  // - in the happeouikit ContentRenderer (used for viewed content)
5570
5700
  // - in the react-ng-bridge RichTextEditor/styles.js (used for content in editor)
5571
5701
  // - in the universe-angular-app text.less (used in PagesV1)
5702
+
5572
5703
  table {
5573
5704
  width: 100%;
5574
5705
  margin: var(--space-md, 16px) 0;
@@ -5576,39 +5707,61 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5576
5707
  border-spacing: 0;
5577
5708
  border-collapse: separate; // doubles internal borders, but needed to allow more customization
5578
5709
  table-layout: fixed; // allows overflowing cells to have internal scroll bars
5710
+
5579
5711
  > tbody > tr > td {
5580
5712
  padding: 0.25em 0.5em;
5581
5713
  border: 0.5px solid color-mix(in srgb, var(--pages-v2-body, black) 30%, transparent);
5714
+
5582
5715
  &.fr-selected-cell {
5583
5716
  border-color: var(--color-active-primary);
5584
5717
  }
5718
+
5585
5719
  &.cell-bold {
5586
5720
  font-weight: bold;
5721
+
5587
5722
  li {
5588
5723
  font-weight: bold !important;
5589
5724
  }
5590
5725
  }
5726
+
5591
5727
  &.cell-italic {
5592
5728
  font-style: italic;
5729
+
5593
5730
  li {
5594
5731
  font-style: italic !important;
5595
5732
  }
5596
5733
  }
5734
+
5597
5735
  &.cell-strikethrough {
5598
5736
  text-decoration: line-through;
5737
+
5599
5738
  li {
5600
5739
  text-decoration: line-through !important;
5601
5740
  }
5602
5741
  }
5603
5742
  }
5743
+
5604
5744
  // to "cancel" the separate borders style, we halve all borders to 0.5px
5605
5745
  // but override with 1px for external borders
5746
+
5606
5747
  & > tbody > {
5607
- tr:first-child > td { border-top-width: 1px; }
5608
- tr:last-child > td { border-bottom-width: 1px; }
5609
- tr > td:first-child { border-left-width: 1px; }
5610
- 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
+ }
5611
5763
  }
5764
+
5612
5765
  &.no-borders > tbody > tr >, // (no-borders is the legacy class)
5613
5766
  &.invisible-borders > tbody > tr > {
5614
5767
  td:not(.fr-selected-cell) {
@@ -5616,35 +5769,59 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5616
5769
  border: 0.5px dashed transparent;
5617
5770
  }
5618
5771
  }
5772
+
5619
5773
  &.alternating-rows > tbody > {
5620
5774
  tr:nth-child(odd) {
5621
5775
  background: rgba(255, 255, 255, 0.05);
5622
5776
  }
5777
+
5623
5778
  tr:nth-child(even) {
5624
5779
  background: rgba(0, 0, 0, 0.05);
5625
5780
  }
5626
5781
  }
5782
+
5627
5783
  &.round-corners > tbody > {
5628
- tr:first-child { border-radius: 6px 6px 0 0; }
5629
- tr:first-child > td:first-child { border-top-left-radius: 6px; }
5630
- tr:first-child > td:last-child { border-top-right-radius: 6px; }
5631
- tr:last-child { border-radius: 0 0 6px 6px; }
5632
- tr:last-child > td:first-child { border-bottom-left-radius: 6px; }
5633
- 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
+ }
5634
5807
  }
5808
+
5635
5809
  &.padded-1 > tbody > tr > td {
5636
5810
  padding: var(--space-md, 16px);
5637
5811
  }
5812
+
5638
5813
  &.padded-2 > tbody > tr > td {
5639
5814
  padding: var(--space-xl, 32px);
5640
5815
  }
5816
+
5641
5817
  &.highlight-first-row > tbody > {
5642
5818
  tr:first-child > td {
5643
5819
  font-weight: bold;
5644
5820
  }
5645
5821
  }
5822
+
5646
5823
  &.highlight-first-column > tbody > {
5647
- tr > td:first-child {
5824
+ tr > td:first-child {
5648
5825
  font-weight: bold;
5649
5826
  }
5650
5827
  }
@@ -5668,23 +5845,23 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5668
5845
  margin: 0 auto;
5669
5846
  }
5670
5847
  }
5671
-
5848
+
5672
5849
  img {
5673
5850
  max-width: 100%;
5674
5851
  margin: 5px;
5675
5852
  padding: 0;
5676
-
5853
+
5677
5854
  // Make images stand out from text similarly as they do in Froala edit mode
5678
5855
  // For example customer had headings with white background color by the side of images,
5679
5856
  // and the headings rendered full width white bars on top of the images
5680
5857
  position: relative;
5681
5858
  z-index: 1;
5682
5859
  }
5683
-
5860
+
5684
5861
  // everything-except-pages CSS
5685
5862
  ${({ widgetType: e, inheritBrandingStyles: n }) => e !== "page" && Ae`
5686
5863
  * {
5687
- font-family: ${oa};
5864
+ font-family: ${ca};
5688
5865
  }
5689
5866
 
5690
5867
  h1 {
@@ -5693,6 +5870,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5693
5870
  font-size: 24px;
5694
5871
  letter-spacing: -0.5px;
5695
5872
  line-height: 32px;
5873
+
5696
5874
  + h1,
5697
5875
  + h2,
5698
5876
  + h3,
@@ -5700,15 +5878,18 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5700
5878
  + p {
5701
5879
  margin-top: var(--space-md);
5702
5880
  }
5881
+
5703
5882
  & * {
5704
5883
  font-family: ${n ? "var(--channels-h1-font-family, revert)" : "revert"};
5705
5884
  }
5706
5885
  }
5886
+
5707
5887
  h2 {
5708
5888
  font-family: ${n ? "var(--channels-h2-font-family, revert)" : "revert"};
5709
5889
  font-weight: ${n ? "var(--channels-h2-font-weight, 500)" : "500"};
5710
5890
  font-size: 20px;
5711
5891
  line-height: 28px;
5892
+
5712
5893
  + h1,
5713
5894
  + h2,
5714
5895
  + h3,
@@ -5716,15 +5897,18 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5716
5897
  + p {
5717
5898
  margin-top: var(--space-md);
5718
5899
  }
5900
+
5719
5901
  & * {
5720
5902
  font-family: ${n ? "var(--channels-h2-font-family, revert)" : "revert"};
5721
5903
  }
5722
5904
  }
5905
+
5723
5906
  h3 {
5724
5907
  font-family: ${n ? "var(--channels-h3-font-family, revert)" : "revert"};
5725
5908
  font-weight: ${n ? "var(--channels-h3-font-weight, 500)" : "500"};
5726
5909
  font-size: 16px;
5727
5910
  line-height: 24px;
5911
+
5728
5912
  + h1,
5729
5913
  + h2,
5730
5914
  + h3,
@@ -5732,13 +5916,16 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5732
5916
  + p {
5733
5917
  margin-top: var(--space-md-minus);
5734
5918
  }
5919
+
5735
5920
  & * {
5736
5921
  font-family: ${n ? "var(--channels-h3-font-family, revert);" : "revert"};
5737
5922
  }
5738
5923
  }
5924
+
5739
5925
  h4 {
5740
5926
  font-size: 16px;
5741
5927
  line-height: 24px;
5928
+
5742
5929
  + h1,
5743
5930
  + h2,
5744
5931
  + h3,
@@ -5747,12 +5934,14 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5747
5934
  margin-top: var(--space-md-minus);
5748
5935
  }
5749
5936
  }
5937
+
5750
5938
  p {
5751
5939
  font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5752
5940
  font-weight: ${n ? "var(--channels-body-font-weight, revert)" : "revert"};
5753
5941
  font-size: 16px;
5754
5942
  line-height: 24px;
5755
5943
  letter-spacing: 0;
5944
+
5756
5945
  + h1,
5757
5946
  + h2,
5758
5947
  + h3,
@@ -5765,24 +5954,30 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5765
5954
  font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5766
5955
  }
5767
5956
  }
5957
+
5768
5958
  a {
5769
5959
  color: var(--color-active-primary);
5770
5960
  text-decoration: none;
5961
+
5771
5962
  :hover {
5772
5963
  text-decoration: underline;
5773
5964
  }
5774
5965
  }
5966
+
5775
5967
  ul {
5776
5968
  list-style-type: disc;
5777
5969
  }
5970
+
5778
5971
  ol {
5779
5972
  list-style-type: decimal;
5780
5973
  counter-reset: item;
5974
+
5781
5975
  li {
5782
5976
  padding-left: var(--space-md-minus);
5783
5977
  text-indent: -33px;
5784
5978
  list-style-type: none;
5785
5979
  counter-increment: item;
5980
+
5786
5981
  &:before {
5787
5982
  display: inline-block;
5788
5983
  width: 13px;
@@ -5792,10 +5987,12 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5792
5987
  text-align: right;
5793
5988
  content: counter(item) ".";
5794
5989
  }
5990
+
5795
5991
  font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5796
5992
  font-weight: ${n ? "var(--channels-body-font-weight, revert)" : "revert"};
5797
5993
  }
5798
5994
  }
5995
+
5799
5996
  ol,
5800
5997
  ul {
5801
5998
  font-size: 16px;
@@ -5805,10 +6002,12 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5805
6002
  -webkit-margin-before: var(--space-sm);
5806
6003
  -webkit-margin-after: var(--space-sm);
5807
6004
  -webkit-padding-start: var(--space-sm);
6005
+
5808
6006
  li,
5809
6007
  li {
5810
6008
  margin-bottom: var(--space-xs-plus);
5811
6009
  padding-left: var(--space-sm-plus);
6010
+
5812
6011
  > ul,
5813
6012
  > ol {
5814
6013
  -webkit-margin-before: var(--space-sm) !important;
@@ -5823,11 +6022,13 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5823
6022
  &:first-child {
5824
6023
  -webkit-margin-before: 0;
5825
6024
  }
6025
+
5826
6026
  &:last-child,
5827
6027
  &:last-child {
5828
6028
  -webkit-margin-after: 0;
5829
6029
  }
5830
6030
  }
6031
+
5831
6032
  hr {
5832
6033
  -webkit-margin-before: var(--space-md);
5833
6034
  -webkit-margin-after: var(--space-md-minus);
@@ -5836,28 +6037,32 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5836
6037
  height: 0;
5837
6038
  border-width: 1px 0 0 0;
5838
6039
  }
6040
+
5839
6041
  .xl-emoji * {
5840
6042
  font-size: 40px;
5841
6043
  line-height: 1.2;
5842
6044
  }
5843
- `}
5844
-
5845
- // article-only CSS
6045
+ `} // article-only CSS
5846
6046
  ${({ widgetType: e, inheritBrandingStyles: n }) => e === "article" && Ae`
5847
6047
  h1 {
5848
6048
  font-family: ${n ? "var(--channels-h1-font-family, revert)" : "revert"};
6049
+
5849
6050
  & * {
5850
6051
  font-family: ${n ? "var(--channels-h1-font-family, revert)" : "revert"};
5851
6052
  }
5852
6053
  }
6054
+
5853
6055
  h2 {
5854
6056
  font-family: ${n ? "var(--channels-h2-font-family, revert)" : "revert"};
6057
+
5855
6058
  & * {
5856
6059
  font-family: ${n ? "var(--channels-h2-font-family, revert)" : "revert"};
5857
6060
  }
5858
6061
  }
6062
+
5859
6063
  h3 {
5860
6064
  font-family: ${n ? "var(--channels-h3-font-family, revert)" : "revert"};
6065
+
5861
6066
  & * {
5862
6067
  font-family: ${n ? "var(--channels-h3-font-family, revert)" : "revert"};
5863
6068
  }
@@ -5872,6 +6077,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5872
6077
  li,
5873
6078
  table {
5874
6079
  font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
6080
+
5875
6081
  & * {
5876
6082
  font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5877
6083
  }
@@ -5917,6 +6123,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5917
6123
  table {
5918
6124
  font-size: var(--font-size-subtitle-sm) !important;
5919
6125
  text-align: left;
6126
+
5920
6127
  th,
5921
6128
  td {
5922
6129
  word-wrap: break-word;
@@ -5931,6 +6138,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5931
6138
  ${me.only.xs`
5932
6139
  max-width: 100%;
5933
6140
  `};
6141
+
5934
6142
  &.article-align-left {
5935
6143
  display: block;
5936
6144
  max-width: 100%;
@@ -5940,9 +6148,11 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5940
6148
  max-width: 75%;
5941
6149
  `}
5942
6150
  }
6151
+
5943
6152
  &.article-align-center {
5944
6153
  display: block;
5945
6154
  }
6155
+
5946
6156
  &.article-align-right {
5947
6157
  display: block;
5948
6158
  max-width: 100%;
@@ -5952,9 +6162,11 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5952
6162
  max-width: 75%;
5953
6163
  `}
5954
6164
  }
6165
+
5955
6166
  &.article-align-overflow {
5956
6167
  display: block;
5957
6168
  max-width: 100%;
6169
+
5958
6170
  ${me.min.md`
5959
6171
  margin: 30px -150px;
5960
6172
  width: calc(100% + 300px) !important;
@@ -5970,6 +6182,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5970
6182
  &.image-border-radius {
5971
6183
  border-radius: var(--radius-lg);
5972
6184
  }
6185
+
5973
6186
  &.image-box-shadow {
5974
6187
  box-shadow: 0 4px 16px 0 #bacad5;
5975
6188
  }
@@ -5979,6 +6192,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5979
6192
  &.image-border-radius img {
5980
6193
  border-radius: var(--radius-lg);
5981
6194
  }
6195
+
5982
6196
  &.image-box-shadow img {
5983
6197
  box-shadow: 0 4px 16px 0 #bacad5;
5984
6198
  }
@@ -5998,9 +6212,11 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
5998
6212
 
5999
6213
  span.fr-img-caption {
6000
6214
  text-align: center;
6215
+
6001
6216
  img {
6002
6217
  margin: 0;
6003
6218
  }
6219
+
6004
6220
  .fr-inner {
6005
6221
  font-weight: 400;
6006
6222
  font-size: 16px;
@@ -6024,6 +6240,7 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
6024
6240
  &.article-align-overflow {
6025
6241
  padding-top: 170px;
6026
6242
  }
6243
+
6027
6244
  iframe {
6028
6245
  position: absolute;
6029
6246
  top: 0;
@@ -6037,16 +6254,16 @@ const vi = bi(), wi = new RegExp(tt, "gi"), yi = new RegExp(
6037
6254
  width: 100%;
6038
6255
  }
6039
6256
  `}
6040
- }
6257
+ }
6041
6258
  `;
6042
6259
  export {
6043
- Bi as ContentRenderer,
6044
- Da as generateTextFragment,
6045
- Pa as getLinkFragment,
6046
- Aa as getLinkIdFromFragment,
6047
- qa as getLinkSnippet,
6048
- Ui as getRandomLinkId,
6049
- Mi as linkRandomIdRegex,
6050
- 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
6051
6268
  };
6052
6269
  //# sourceMappingURL=index.es.js.map