@happeouikit/content-renderer 3.2.8 → 3.2.10
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.cjs.js +48 -22
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +115 -89
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -19,15 +19,15 @@ var Et = { exports: {} };
|
|
|
19
19
|
}, t = {}, s = {}, p = {};
|
|
20
20
|
function g(w, D) {
|
|
21
21
|
w = w.push ? w : [w];
|
|
22
|
-
var C = [], R = w.length, j = R, O,
|
|
22
|
+
var C = [], R = w.length, j = R, O, x, N, r;
|
|
23
23
|
for (O = function(n, a) {
|
|
24
24
|
a.length && C.push(n), j--, j || D(C);
|
|
25
25
|
}; R--; ) {
|
|
26
|
-
if (
|
|
27
|
-
O(
|
|
26
|
+
if (x = w[R], N = s[x], N) {
|
|
27
|
+
O(x, N);
|
|
28
28
|
continue;
|
|
29
29
|
}
|
|
30
|
-
r = p[
|
|
30
|
+
r = p[x] = p[x] || [], r.push(O);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
function m(w, D) {
|
|
@@ -42,7 +42,7 @@ var Et = { exports: {} };
|
|
|
42
42
|
w.call && (w = { success: w }), D.length ? (w.error || u)(D) : (w.success || u)(w);
|
|
43
43
|
}
|
|
44
44
|
function S(w, D, C, R) {
|
|
45
|
-
var j = document, O = C.async,
|
|
45
|
+
var j = document, O = C.async, x = (C.numRetries || 0) + 1, N = C.before || u, r = w.replace(/[\?|#].*$/, ""), n = w.replace(/^(css|img|module|nomodule)!/, ""), a, d, o;
|
|
46
46
|
if (R = R || 0, /(^css!|\.css$)/.test(r))
|
|
47
47
|
o = j.createElement("link"), o.rel = "stylesheet", o.href = n, a = "hideFocus" in o, a && o.relList && (a = 0, o.rel = "preload", o.as = "style");
|
|
48
48
|
else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(r))
|
|
@@ -62,7 +62,7 @@ var Et = { exports: {} };
|
|
|
62
62
|
h.code != 18 && (l = "e");
|
|
63
63
|
}
|
|
64
64
|
if (l == "e") {
|
|
65
|
-
if (R += 1, R <
|
|
65
|
+
if (R += 1, R < x)
|
|
66
66
|
return S(w, D, C, R);
|
|
67
67
|
} else if (o.rel == "preload" && o.as == "style")
|
|
68
68
|
return o.rel = "stylesheet";
|
|
@@ -71,8 +71,8 @@ var Et = { exports: {} };
|
|
|
71
71
|
}
|
|
72
72
|
function q(w, D, C) {
|
|
73
73
|
w = w.push ? w : [w];
|
|
74
|
-
var R = w.length, j = R, O = [],
|
|
75
|
-
for (
|
|
74
|
+
var R = w.length, j = R, O = [], x, N;
|
|
75
|
+
for (x = function(r, n, a) {
|
|
76
76
|
if (n == "e" && O.push(r), n == "b")
|
|
77
77
|
if (a)
|
|
78
78
|
O.push(r);
|
|
@@ -80,7 +80,7 @@ var Et = { exports: {} };
|
|
|
80
80
|
return;
|
|
81
81
|
R--, R || D(O);
|
|
82
82
|
}, N = 0; N < j; N++)
|
|
83
|
-
S(w[N],
|
|
83
|
+
S(w[N], x, C);
|
|
84
84
|
}
|
|
85
85
|
function E(w, D, C) {
|
|
86
86
|
var R, j;
|
|
@@ -89,9 +89,9 @@ var Et = { exports: {} };
|
|
|
89
89
|
throw "LoadJS";
|
|
90
90
|
t[R] = !0;
|
|
91
91
|
}
|
|
92
|
-
function O(
|
|
92
|
+
function O(x, N) {
|
|
93
93
|
q(w, function(r) {
|
|
94
|
-
b(j, r),
|
|
94
|
+
b(j, r), x && b({ success: x, error: N }, r), m(R, r);
|
|
95
95
|
}, j);
|
|
96
96
|
}
|
|
97
97
|
if (j.returnPromise)
|
|
@@ -113,7 +113,7 @@ var Et = { exports: {} };
|
|
|
113
113
|
})(Et);
|
|
114
114
|
var ca = Et.exports;
|
|
115
115
|
const _r = /* @__PURE__ */ Ur(ca);
|
|
116
|
-
var qr = { exports: {} },
|
|
116
|
+
var qr = { exports: {} }, M = {}, Dr = { exports: {} }, ce = {};
|
|
117
117
|
function Tt() {
|
|
118
118
|
var e = {};
|
|
119
119
|
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;
|
|
@@ -459,34 +459,34 @@ function Ha(e) {
|
|
|
459
459
|
return t === 127 ? !1 : t <= 31 ? t === 10 || t === 13 : !0;
|
|
460
460
|
}), i.join("");
|
|
461
461
|
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
462
|
+
M.whiteList = Ct();
|
|
463
|
+
M.getDefaultWhiteList = Ct;
|
|
464
|
+
M.onTag = Ea;
|
|
465
|
+
M.onIgnoreTag = Ta;
|
|
466
|
+
M.onTagAttr = Aa;
|
|
467
|
+
M.onIgnoreTagAttr = Ca;
|
|
468
|
+
M.safeAttrValue = Sa;
|
|
469
|
+
M.escapeHtml = Lt;
|
|
470
|
+
M.escapeQuote = qt;
|
|
471
|
+
M.unescapeQuote = Dt;
|
|
472
|
+
M.escapeHtmlEntities = Pt;
|
|
473
|
+
M.escapeDangerHtml5Entities = Rt;
|
|
474
|
+
M.clearNonPrintableCharacter = zt;
|
|
475
|
+
M.friendlyAttrValue = Nt;
|
|
476
|
+
M.escapeAttrValue = jt;
|
|
477
|
+
M.onIgnoreTagStripAll = ja;
|
|
478
|
+
M.StripTagBody = Ia;
|
|
479
|
+
M.stripCommentTag = Oa;
|
|
480
|
+
M.stripBlankChar = Ha;
|
|
481
|
+
M.attributeWrapSign = '"';
|
|
482
|
+
M.cssFilter = St;
|
|
483
|
+
M.getDefaultCSSWhiteList = ka;
|
|
484
484
|
var pr = {}, ue = Vr;
|
|
485
|
-
function
|
|
485
|
+
function xa(e) {
|
|
486
486
|
var i = ue.spaceIndex(e), u;
|
|
487
487
|
return i === -1 ? u = e.slice(1, -1) : u = e.slice(1, i + 1), u = ue.trim(u).toLowerCase(), u.slice(0, 1) === "/" && (u = u.slice(1)), u.slice(-1) === "/" && (u = u.slice(0, -1)), u;
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Ma(e) {
|
|
490
490
|
return e.slice(0, 2) === "</";
|
|
491
491
|
}
|
|
492
492
|
function Ua(e, i, u) {
|
|
@@ -505,12 +505,12 @@ function Ua(e, i, u) {
|
|
|
505
505
|
continue;
|
|
506
506
|
}
|
|
507
507
|
if (E === ">" || m === b - 1) {
|
|
508
|
-
t += u(e.slice(s, p)), q = e.slice(p, m + 1), S =
|
|
508
|
+
t += u(e.slice(s, p)), q = e.slice(p, m + 1), S = xa(q), t += i(
|
|
509
509
|
p,
|
|
510
510
|
t.length,
|
|
511
511
|
S,
|
|
512
512
|
q,
|
|
513
|
-
|
|
513
|
+
Ma(q)
|
|
514
514
|
), s = m + 1, p = !1;
|
|
515
515
|
continue;
|
|
516
516
|
}
|
|
@@ -596,7 +596,7 @@ function dt(e) {
|
|
|
596
596
|
}
|
|
597
597
|
pr.parseTag = Ua;
|
|
598
598
|
pr.parseAttr = Va;
|
|
599
|
-
var Ka = Br.FilterCSS, Z =
|
|
599
|
+
var Ka = Br.FilterCSS, Z = M, It = pr, Qa = It.parseTag, Ya = It.parseAttr, Re = Vr;
|
|
600
600
|
function Ce(e) {
|
|
601
601
|
return e == null;
|
|
602
602
|
}
|
|
@@ -645,11 +645,11 @@ Ot.prototype.process = function(e) {
|
|
|
645
645
|
), p = w.onIgnoreTag);
|
|
646
646
|
var D = Qa(
|
|
647
647
|
e,
|
|
648
|
-
function(C, R, j, O,
|
|
648
|
+
function(C, R, j, O, x) {
|
|
649
649
|
var N = {
|
|
650
650
|
sourcePosition: C,
|
|
651
651
|
position: R,
|
|
652
|
-
isClosing:
|
|
652
|
+
isClosing: x,
|
|
653
653
|
isWhite: Object.prototype.hasOwnProperty.call(t, j)
|
|
654
654
|
}, r = s(j, O, N);
|
|
655
655
|
if (!Ce(r))
|
|
@@ -671,7 +671,7 @@ Ot.prototype.process = function(e) {
|
|
|
671
671
|
};
|
|
672
672
|
var en = Ot;
|
|
673
673
|
(function(e, i) {
|
|
674
|
-
var u =
|
|
674
|
+
var u = M, t = pr, s = en;
|
|
675
675
|
function p(m, b) {
|
|
676
676
|
var S = new s(b);
|
|
677
677
|
return S.process(m);
|
|
@@ -834,7 +834,7 @@ Q.prototype = {
|
|
|
834
834
|
return s.j[e] = g, g;
|
|
835
835
|
}
|
|
836
836
|
};
|
|
837
|
-
const I = (e, i, u, t, s) => e.ta(i, u, t, s), Y = (e, i, u, t, s) => e.tr(i, u, t, s), ct = (e, i, u, t, s) => e.ts(i, u, t, s), A = (e, i, u, t, s) => e.tt(i, u, t, s), ae = "WORD", Ir = "UWORD", ke = "LOCALHOST", Or = "TLD", Hr = "UTLD", Ne = "SCHEME", fe = "SLASH_SCHEME", Fr = "NUM",
|
|
837
|
+
const I = (e, i, u, t, s) => e.ta(i, u, t, s), Y = (e, i, u, t, s) => e.tr(i, u, t, s), ct = (e, i, u, t, s) => e.ts(i, u, t, s), A = (e, i, u, t, s) => e.tt(i, u, t, s), ae = "WORD", Ir = "UWORD", ke = "LOCALHOST", Or = "TLD", Hr = "UTLD", Ne = "SCHEME", fe = "SLASH_SCHEME", Fr = "NUM", xt = "WS", $r = "NL", ve = "OPENBRACE", we = "CLOSEBRACE", Oe = "OPENBRACKET", He = "CLOSEBRACKET", xe = "OPENPAREN", Me = "CLOSEPAREN", Ue = "OPENANGLEBRACKET", Be = "CLOSEANGLEBRACKET", Ve = "FULLWIDTHLEFTPAREN", Fe = "FULLWIDTHRIGHTPAREN", $e = "LEFTCORNERBRACKET", Ge = "RIGHTCORNERBRACKET", We = "LEFTWHITECORNERBRACKET", Ke = "RIGHTWHITECORNERBRACKET", Qe = "FULLWIDTHLESSTHAN", Ye = "FULLWIDTHGREATERTHAN", Xe = "AMPERSAND", Ze = "APOSTROPHE", Je = "ASTERISK", se = "AT", er = "BACKSLASH", rr = "BACKTICK", tr = "CARET", de = "COLON", Gr = "COMMA", ar = "DOLLAR", ee = "DOT", nr = "EQUALS", Wr = "EXCLAMATION", re = "HYPHEN", ir = "PERCENT", ur = "PIPE", sr = "PLUS", dr = "POUND", or = "QUERY", Kr = "QUOTE", Qr = "SEMI", te = "SLASH", ye = "TILDE", cr = "UNDERSCORE", Mt = "EMOJI", lr = "SYM";
|
|
838
838
|
var Ut = /* @__PURE__ */ Object.freeze({
|
|
839
839
|
__proto__: null,
|
|
840
840
|
WORD: ae,
|
|
@@ -845,14 +845,14 @@ var Ut = /* @__PURE__ */ Object.freeze({
|
|
|
845
845
|
SCHEME: Ne,
|
|
846
846
|
SLASH_SCHEME: fe,
|
|
847
847
|
NUM: Fr,
|
|
848
|
-
WS:
|
|
848
|
+
WS: xt,
|
|
849
849
|
NL: $r,
|
|
850
850
|
OPENBRACE: ve,
|
|
851
851
|
CLOSEBRACE: we,
|
|
852
852
|
OPENBRACKET: Oe,
|
|
853
853
|
CLOSEBRACKET: He,
|
|
854
|
-
OPENPAREN:
|
|
855
|
-
CLOSEPAREN:
|
|
854
|
+
OPENPAREN: xe,
|
|
855
|
+
CLOSEPAREN: Me,
|
|
856
856
|
OPENANGLEBRACKET: Ue,
|
|
857
857
|
CLOSEANGLEBRACKET: Be,
|
|
858
858
|
FULLWIDTHLEFTPAREN: Ve,
|
|
@@ -887,7 +887,7 @@ var Ut = /* @__PURE__ */ Object.freeze({
|
|
|
887
887
|
SLASH: te,
|
|
888
888
|
TILDE: ye,
|
|
889
889
|
UNDERSCORE: cr,
|
|
890
|
-
EMOJI:
|
|
890
|
+
EMOJI: Mt,
|
|
891
891
|
SYM: lr
|
|
892
892
|
});
|
|
893
893
|
const le = /[a-z]/, kr = new RegExp("\\p{L}", "u"), Er = new RegExp("\\p{Emoji}", "u"), Tr = /\d/, lt = /\s/, ft = `
|
|
@@ -898,7 +898,7 @@ function ln(e) {
|
|
|
898
898
|
const i = {};
|
|
899
899
|
Q.groups = i;
|
|
900
900
|
const u = new Q();
|
|
901
|
-
Le == null && (Le = pt(tn)), qe == null && (qe = pt(an)), A(u, "'", Ze), A(u, "{", ve), A(u, "}", we), A(u, "[", Oe), A(u, "]", He), A(u, "(",
|
|
901
|
+
Le == null && (Le = pt(tn)), qe == null && (qe = pt(an)), A(u, "'", Ze), A(u, "{", ve), A(u, "}", we), A(u, "[", Oe), A(u, "]", He), A(u, "(", xe), A(u, ")", Me), A(u, "<", Ue), A(u, ">", Be), A(u, "(", Ve), A(u, ")", Fe), A(u, "「", $e), A(u, "」", Ge), A(u, "『", We), A(u, "』", Ke), A(u, "<", Qe), A(u, ">", Ye), A(u, "&", Xe), A(u, "*", Je), A(u, "@", se), A(u, "`", rr), A(u, "^", tr), A(u, ":", de), A(u, ",", Gr), A(u, "$", ar), A(u, ".", ee), A(u, "=", nr), A(u, "!", Wr), A(u, "-", re), A(u, "%", ir), A(u, "|", ur), A(u, "+", sr), A(u, "#", dr), A(u, "?", or), A(u, '"', Kr), A(u, "/", te), A(u, ";", Qr), A(u, "~", ye), A(u, "_", cr), A(u, "\\", er);
|
|
902
902
|
const t = Y(u, Tr, Fr, {
|
|
903
903
|
[Rr]: !0
|
|
904
904
|
});
|
|
@@ -911,13 +911,13 @@ function ln(e) {
|
|
|
911
911
|
[Nr]: !0
|
|
912
912
|
});
|
|
913
913
|
Y(p, le), Y(p, kr, p);
|
|
914
|
-
const g = Y(u, lt,
|
|
914
|
+
const g = Y(u, lt, xt, {
|
|
915
915
|
[ot]: !0
|
|
916
916
|
});
|
|
917
917
|
A(u, ft, $r, {
|
|
918
918
|
[ot]: !0
|
|
919
919
|
}), A(g, ft), Y(g, lt, g);
|
|
920
|
-
const m = Y(u, Er,
|
|
920
|
+
const m = Y(u, Er, Mt, {
|
|
921
921
|
[Ht]: !0
|
|
922
922
|
});
|
|
923
923
|
Y(m, Er, m), A(m, on, m);
|
|
@@ -1250,7 +1250,7 @@ function gn(e) {
|
|
|
1250
1250
|
let {
|
|
1251
1251
|
groups: i
|
|
1252
1252
|
} = e;
|
|
1253
|
-
const u = i.domain.concat([Xe, Je, se, er, rr, tr, ar, nr, re, Fr, ir, ur, sr, dr, te, lr, ye, cr]), t = [Ze, de, Gr, ee, Wr, or, Kr, Qr, Ue, Be, ve, we, He, Oe,
|
|
1253
|
+
const u = i.domain.concat([Xe, Je, se, er, rr, tr, ar, nr, re, Fr, ir, ur, sr, dr, te, lr, ye, cr]), t = [Ze, de, Gr, ee, Wr, or, Kr, Qr, Ue, Be, ve, we, He, Oe, xe, Me, Ve, Fe, $e, Ge, We, Ke, Qe, Ye], s = [Xe, Ze, Je, er, rr, tr, ar, nr, re, ve, we, ir, ur, sr, dr, or, te, lr, ye, cr], p = X(), g = A(p, ye);
|
|
1254
1254
|
I(g, s, g), I(g, i.domain, g);
|
|
1255
1255
|
const m = X(), b = X(), S = X();
|
|
1256
1256
|
I(p, i.domain, m), I(p, i.scheme, b), I(p, i.slashscheme, S), I(m, s, g), I(m, i.domain, m);
|
|
@@ -1268,22 +1268,22 @@ function gn(e) {
|
|
|
1268
1268
|
I(R, i.domain, w), I(C, i.domain, w), A(C, ee, D), A(C, re, R);
|
|
1269
1269
|
const j = A(C, de);
|
|
1270
1270
|
I(j, i.numeric, gt);
|
|
1271
|
-
const O = A(m, re),
|
|
1272
|
-
I(O, i.domain, m), I(
|
|
1271
|
+
const O = A(m, re), x = A(m, ee);
|
|
1272
|
+
I(O, i.domain, m), I(x, s, g), I(x, i.domain, m);
|
|
1273
1273
|
const N = X(De);
|
|
1274
|
-
I(
|
|
1274
|
+
I(x, i.tld, N), I(x, i.utld, N), I(N, i.domain, m), I(N, s, g), A(N, ee, x), A(N, re, O), A(N, se, q);
|
|
1275
1275
|
const r = A(N, de), n = X(De);
|
|
1276
1276
|
I(r, i.numeric, n);
|
|
1277
1277
|
const a = X(De), d = X();
|
|
1278
1278
|
I(a, u, a), I(a, t, d), I(d, u, a), I(d, t, d), A(N, te, a), A(n, te, a);
|
|
1279
1279
|
const o = A(b, de), f = A(S, de), l = A(f, te), h = A(l, te);
|
|
1280
|
-
I(b, i.domain, m), A(b, ee,
|
|
1280
|
+
I(b, i.domain, m), A(b, ee, x), A(b, re, O), I(S, i.domain, m), A(S, ee, x), A(S, re, O), I(o, i.domain, a), A(o, te, a), I(h, i.domain, a), I(h, u, a), A(h, te, a);
|
|
1281
1281
|
const T = [
|
|
1282
1282
|
[ve, we],
|
|
1283
1283
|
// {}
|
|
1284
1284
|
[Oe, He],
|
|
1285
1285
|
// []
|
|
1286
|
-
[
|
|
1286
|
+
[xe, Me],
|
|
1287
1287
|
// ()
|
|
1288
1288
|
[Ue, Be],
|
|
1289
1289
|
// <>
|
|
@@ -1986,7 +1986,7 @@ function Dn(e, i) {
|
|
|
1986
1986
|
var u = new qn(new En(wn), i);
|
|
1987
1987
|
return u.tokenize(e);
|
|
1988
1988
|
}
|
|
1989
|
-
const Vt = "LinkifyResult", fr = "StartTag", Ft = "EndTag",
|
|
1989
|
+
const Vt = "LinkifyResult", fr = "StartTag", Ft = "EndTag", xr = "Chars", Pn = "Comment", Rn = "Doctype";
|
|
1990
1990
|
function zn(e, i) {
|
|
1991
1991
|
i === void 0 && (i = {});
|
|
1992
1992
|
const u = Dn(e), t = [], s = [], p = new Yr(i, In);
|
|
@@ -1999,7 +1999,7 @@ function zn(e, i) {
|
|
|
1999
1999
|
continue;
|
|
2000
2000
|
let q = t.length;
|
|
2001
2001
|
jn(b, u, ++g, t), g += t.length - q - 1;
|
|
2002
|
-
} else if (m.type !==
|
|
2002
|
+
} else if (m.type !== xr)
|
|
2003
2003
|
t.push(m);
|
|
2004
2004
|
else {
|
|
2005
2005
|
const b = Nn(m.chars, p);
|
|
@@ -2020,11 +2020,11 @@ function zn(e, i) {
|
|
|
2020
2020
|
case Ft:
|
|
2021
2021
|
s.push(`</${m.tagName}>`);
|
|
2022
2022
|
break;
|
|
2023
|
-
case
|
|
2024
|
-
s.push(
|
|
2023
|
+
case xr:
|
|
2024
|
+
s.push(Mr(m.chars));
|
|
2025
2025
|
break;
|
|
2026
2026
|
case Pn:
|
|
2027
|
-
s.push(`<!--${
|
|
2027
|
+
s.push(`<!--${Mr(m.chars)}-->`);
|
|
2028
2028
|
break;
|
|
2029
2029
|
case Rn: {
|
|
2030
2030
|
let b = `<!DOCTYPE ${m.name}`;
|
|
@@ -2045,7 +2045,7 @@ function Nn(e, i) {
|
|
|
2045
2045
|
attributes: [],
|
|
2046
2046
|
selfClosing: !0
|
|
2047
2047
|
}) : !p.isLink || !i.check(p) ? t.push({
|
|
2048
|
-
type:
|
|
2048
|
+
type: xr,
|
|
2049
2049
|
chars: p.toString()
|
|
2050
2050
|
}) : t.push({
|
|
2051
2051
|
type: Vt,
|
|
@@ -2068,9 +2068,9 @@ function In(e) {
|
|
|
2068
2068
|
attributes: u,
|
|
2069
2069
|
content: t
|
|
2070
2070
|
} = e;
|
|
2071
|
-
return `<${i} ${On(u)}>${
|
|
2071
|
+
return `<${i} ${On(u)}>${Mr(t)}</${i}>`;
|
|
2072
2072
|
}
|
|
2073
|
-
function
|
|
2073
|
+
function Mr(e) {
|
|
2074
2074
|
return e.replace(/</g, "<").replace(/>/g, ">");
|
|
2075
2075
|
}
|
|
2076
2076
|
function $t(e) {
|
|
@@ -2123,21 +2123,21 @@ var he = je && je.__assign || function() {
|
|
|
2123
2123
|
}, he.apply(this, arguments);
|
|
2124
2124
|
};
|
|
2125
2125
|
Object.defineProperty(gr, "__esModule", { value: !0 });
|
|
2126
|
-
var _e = mr, Gt = Xr, Zr = ge, Jr = he(he({}, _e.namedReferences), { all: _e.namedReferences.html5 }),
|
|
2126
|
+
var _e = mr, Gt = Xr, Zr = ge, Jr = he(he({}, _e.namedReferences), { all: _e.namedReferences.html5 }), xn = {
|
|
2127
2127
|
specialChars: /[<>'"&]/g,
|
|
2128
2128
|
nonAscii: /(?:[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,
|
|
2129
2129
|
nonAsciiPrintable: /(?:[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,
|
|
2130
2130
|
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
|
|
2131
|
-
},
|
|
2131
|
+
}, Mn = {
|
|
2132
2132
|
mode: "specialChars",
|
|
2133
2133
|
level: "all",
|
|
2134
2134
|
numeric: "decimal"
|
|
2135
2135
|
};
|
|
2136
2136
|
function Un(e, i) {
|
|
2137
|
-
var q = i === void 0 ?
|
|
2137
|
+
var q = i === void 0 ? Mn : i, E = q.mode, u = E === void 0 ? "specialChars" : E, t = q.numeric, s = t === void 0 ? "decimal" : t, p = q.level, g = p === void 0 ? "all" : p;
|
|
2138
2138
|
if (!e)
|
|
2139
2139
|
return "";
|
|
2140
|
-
var m =
|
|
2140
|
+
var m = xn[u], b = Jr[g].characters, S = s === "hexadecimal";
|
|
2141
2141
|
m.lastIndex = 0;
|
|
2142
2142
|
var q = m.exec(e), E;
|
|
2143
2143
|
if (q) {
|
|
@@ -2220,7 +2220,7 @@ function Gn(e, i) {
|
|
|
2220
2220
|
if (O)
|
|
2221
2221
|
R = O;
|
|
2222
2222
|
else if (C[0] === "&" && C[1] === "#") {
|
|
2223
|
-
var
|
|
2223
|
+
var x = C[2], N = x == "x" || x == "X" ? parseInt(C.substr(3), 16) : parseInt(C.substr(2));
|
|
2224
2224
|
R = N >= 1114111 ? Wt : N > 65535 ? Zr.fromCodePoint(N) : et(Gt.numericUnicodeMap[N] || N);
|
|
2225
2225
|
}
|
|
2226
2226
|
}
|
|
@@ -4224,16 +4224,16 @@ var Qt = { exports: {} };
|
|
|
4224
4224
|
var T = d, _ = "", y = "", k = a || "", c = h || "";
|
|
4225
4225
|
return /^www\./i.test(d) && (d = d.replace(/^www\./i, "http://www.")), r.excludeTrailingPunctuationFromURLs && l && (_ = l), r.openLinksInNewWindow && (y = ' rel="noopener noreferrer" target="¨E95Eblank"'), k + '<a href="' + d + '"' + y + ">" + T + "</a>" + _ + c;
|
|
4226
4226
|
};
|
|
4227
|
-
},
|
|
4227
|
+
}, x = function(r, n) {
|
|
4228
4228
|
return function(a, d, o) {
|
|
4229
4229
|
var f = "mailto:";
|
|
4230
4230
|
return d = d || "", o = t.subParser("unescapeSpecialChars")(o, r, n), r.encodeEmails ? (f = t.helper.encodeEmailAddress(f + o), o = t.helper.encodeEmailAddress(o)) : f = f + o, d + '<a href="' + f + '">' + o + "</a>";
|
|
4231
4231
|
};
|
|
4232
4232
|
};
|
|
4233
4233
|
t.subParser("autoLinks", function(r, n, a) {
|
|
4234
|
-
return r = a.converter._dispatch("autoLinks.before", r, n, a), r = r.replace(C, O(n)), r = r.replace(j,
|
|
4234
|
+
return r = a.converter._dispatch("autoLinks.before", r, n, a), r = r.replace(C, O(n)), r = r.replace(j, x(n, a)), r = a.converter._dispatch("autoLinks.after", r, n, a), r;
|
|
4235
4235
|
}), t.subParser("simplifiedAutoLinks", function(r, n, a) {
|
|
4236
|
-
return n.simplifiedAutoLink && (r = a.converter._dispatch("simplifiedAutoLinks.before", r, n, a), n.excludeTrailingPunctuationFromURLs ? r = r.replace(D, O(n)) : r = r.replace(w, O(n)), r = r.replace(R,
|
|
4236
|
+
return n.simplifiedAutoLink && (r = a.converter._dispatch("simplifiedAutoLinks.before", r, n, a), n.excludeTrailingPunctuationFromURLs ? r = r.replace(D, O(n)) : r = r.replace(w, O(n)), r = r.replace(R, x(n, a)), r = a.converter._dispatch("simplifiedAutoLinks.after", r, n, a)), r;
|
|
4237
4237
|
}), t.subParser("blockGamut", function(r, n, a) {
|
|
4238
4238
|
return r = a.converter._dispatch("blockGamut.before", r, n, a), r = t.subParser("blockQuotes")(r, n, a), r = t.subParser("headers")(r, n, a), r = t.subParser("horizontalRule")(r, n, a), r = t.subParser("lists")(r, n, a), r = t.subParser("codeBlocks")(r, n, a), r = t.subParser("tables")(r, n, a), r = t.subParser("hashHTMLBlocks")(r, n, a), r = t.subParser("paragraphs")(r, n, a), r = a.converter._dispatch("blockGamut.after", r, n, a), r;
|
|
4239
4239
|
}), t.subParser("blockQuotes", function(r, n, a) {
|
|
@@ -5202,11 +5202,11 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
|
|
|
5202
5202
|
}));
|
|
5203
5203
|
};
|
|
5204
5204
|
s && w();
|
|
5205
|
-
const
|
|
5205
|
+
const x = () => {
|
|
5206
5206
|
C(), R(), j(), O();
|
|
5207
5207
|
};
|
|
5208
5208
|
setTimeout(() => {
|
|
5209
|
-
|
|
5209
|
+
x();
|
|
5210
5210
|
}, 1);
|
|
5211
5211
|
}, [
|
|
5212
5212
|
S,
|
|
@@ -5359,16 +5359,16 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
|
|
|
5359
5359
|
width: 100%;
|
|
5360
5360
|
margin: var(--space-md) 0;
|
|
5361
5361
|
text-align: left;
|
|
5362
|
-
border-collapse: collapse;
|
|
5362
|
+
border-collapse: collapse; // doubles internal borders, but needed to allow more customization
|
|
5363
5363
|
thead th {
|
|
5364
5364
|
background: rgba(0, 0, 0, 0.1);
|
|
5365
5365
|
}
|
|
5366
5366
|
th,
|
|
5367
5367
|
td {
|
|
5368
5368
|
padding: 0.5em;
|
|
5369
|
-
border:
|
|
5369
|
+
border: 0.5px solid rgba(0, 0, 0, 0.12);
|
|
5370
5370
|
&.fr-selected-cell {
|
|
5371
|
-
border:
|
|
5371
|
+
border: 0.5px solid var(--color-active-primary);
|
|
5372
5372
|
}
|
|
5373
5373
|
&.cell-bold {
|
|
5374
5374
|
font-weight: bold;
|
|
@@ -5376,24 +5376,32 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
|
|
|
5376
5376
|
font-weight: bold !important;
|
|
5377
5377
|
}
|
|
5378
5378
|
}
|
|
5379
|
+
&.cell-italic {
|
|
5380
|
+
font-style: italic;
|
|
5381
|
+
li {
|
|
5382
|
+
font-style: italic !important;
|
|
5383
|
+
}
|
|
5384
|
+
}
|
|
5385
|
+
&.cell-strikethrough {
|
|
5386
|
+
text-decoration: line-through;
|
|
5387
|
+
li {
|
|
5388
|
+
text-decoration: line-through !important;
|
|
5389
|
+
}
|
|
5390
|
+
}
|
|
5379
5391
|
&.cell-disable-break-word {
|
|
5380
5392
|
// v2-widgets apply word-break: break-word, this allows users to override it
|
|
5381
5393
|
word-break: normal;
|
|
5382
5394
|
}
|
|
5383
5395
|
}
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
th,
|
|
5392
|
-
td {
|
|
5393
|
-
padding: 2em;
|
|
5394
|
-
}
|
|
5396
|
+
// to "cancel" the separate borders style, we halve all borders to 0.5px
|
|
5397
|
+
// but override with 1px for external borders
|
|
5398
|
+
& {
|
|
5399
|
+
tr:first-child > td { border-top-width: 1px; }
|
|
5400
|
+
tr:last-child > td { border-bottom-width: 1px; }
|
|
5401
|
+
tr > td:first-child { border-left-width: 1px; }
|
|
5402
|
+
tr > td:last-child { border-right-width: 1px; }
|
|
5395
5403
|
}
|
|
5396
|
-
&.
|
|
5404
|
+
&.invisible-borders {
|
|
5397
5405
|
th:not(.fr-selected-cell),
|
|
5398
5406
|
td:not(.fr-selected-cell) {
|
|
5399
5407
|
// keeping a transparent border so that selection doesn't push things by 1 pixel
|
|
@@ -5408,6 +5416,24 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
|
|
|
5408
5416
|
background: rgba(0, 0, 0, 0.05);
|
|
5409
5417
|
}
|
|
5410
5418
|
}
|
|
5419
|
+
&.round-corners {
|
|
5420
|
+
tr:first-child { border-radius: 6px 6px 0 0; }
|
|
5421
|
+
tr:first-child > td:first-child { border-top-left-radius: 6px; }
|
|
5422
|
+
tr:first-child > td:last-child { border-top-right-radius: 6px; }
|
|
5423
|
+
tr:last-child { border-radius: 0 0 6px 6px; }
|
|
5424
|
+
tr:last-child > td:first-child { border-bottom-left-radius: 6px; }
|
|
5425
|
+
tr:last-child > td:last-child { border-bottom-right-radius: 6px; }
|
|
5426
|
+
}
|
|
5427
|
+
&.highlight-first-row {
|
|
5428
|
+
tr:first-child > td {
|
|
5429
|
+
font-weight: bold;
|
|
5430
|
+
}
|
|
5431
|
+
}
|
|
5432
|
+
&.highlight-first-column {
|
|
5433
|
+
tr > td:first-child {
|
|
5434
|
+
font-weight: bold;
|
|
5435
|
+
}
|
|
5436
|
+
}
|
|
5411
5437
|
}
|
|
5412
5438
|
|
|
5413
5439
|
${({ widgetType: e, inheritBrandingStyles: i }) => e === "page" ? "" : nt`
|