@anoki/fse-ui 1.10.1-RC2 → 1.10.1-RC2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/EditorialWidget/EditorialWidget.css +1 -1
- package/dist/components/ui/Section/Description/description.css +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs149.js.map +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs179.js.map +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs207.js.map +1 -1
- package/dist/index.cjs229.js +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs275.js +1 -1
- package/dist/index.cjs288.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs29.js.map +1 -1
- package/dist/index.cjs299.js +1 -1
- package/dist/index.cjs306.js +1 -1
- package/dist/index.cjs313.js +1 -1
- package/dist/index.cjs314.js +1 -1
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs327.js +1 -1
- package/dist/index.cjs329.js +1 -1
- package/dist/index.cjs337.js +1 -1
- package/dist/index.cjs378.js +1 -1
- package/dist/index.cjs384.js +1 -1
- package/dist/index.cjs419.js +1 -1
- package/dist/index.cjs437.js +1 -1
- package/dist/index.cjs438.js +1 -1
- package/dist/index.cjs439.js +27 -1
- package/dist/index.cjs439.js.map +1 -1
- package/dist/index.cjs440.js +1 -2
- package/dist/index.cjs440.js.map +1 -1
- package/dist/index.cjs441.js +1 -27
- package/dist/index.cjs441.js.map +1 -1
- package/dist/index.cjs442.js +1 -1
- package/dist/index.cjs443.js +1 -1
- package/dist/index.cjs444.js +1 -1
- package/dist/index.cjs444.js.map +1 -1
- package/dist/index.cjs445.js +2 -1
- package/dist/index.cjs445.js.map +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs454.js +1 -1
- package/dist/index.cjs454.js.map +1 -1
- package/dist/index.cjs455.js +1 -1
- package/dist/index.cjs455.js.map +1 -1
- package/dist/index.cjs457.js +1 -1
- package/dist/index.cjs457.js.map +1 -1
- package/dist/index.cjs458.js +1 -1
- package/dist/index.cjs458.js.map +1 -1
- package/dist/index.cjs459.js +1 -1
- package/dist/index.cjs459.js.map +1 -1
- package/dist/index.cjs460.js +1 -1
- package/dist/index.cjs460.js.map +1 -1
- package/dist/index.cjs461.js +1 -1
- package/dist/index.cjs461.js.map +1 -1
- package/dist/index.cjs462.js +1 -1
- package/dist/index.cjs462.js.map +1 -1
- package/dist/index.cjs464.js +1 -1
- package/dist/index.cjs465.js +1 -1
- package/dist/index.cjs465.js.map +1 -1
- package/dist/index.cjs466.js +1 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs467.js +1 -1
- package/dist/index.cjs467.js.map +1 -1
- package/dist/index.cjs468.js +1 -1
- package/dist/index.cjs468.js.map +1 -1
- package/dist/index.cjs469.js +1 -1
- package/dist/index.cjs469.js.map +1 -1
- package/dist/index.cjs470.js +1 -1
- package/dist/index.cjs470.js.map +1 -1
- package/dist/index.cjs471.js +1 -1
- package/dist/index.cjs471.js.map +1 -1
- package/dist/index.cjs472.js +1 -1
- package/dist/index.cjs472.js.map +1 -1
- package/dist/index.cjs473.js +1 -1
- package/dist/index.cjs473.js.map +1 -1
- package/dist/index.cjs474.js +1 -1
- package/dist/index.cjs474.js.map +1 -1
- package/dist/index.cjs475.js +1 -1
- package/dist/index.cjs475.js.map +1 -1
- package/dist/index.cjs476.js +2 -0
- package/dist/index.cjs476.js.map +1 -0
- package/dist/{index.cjs479.js → index.cjs483.js} +2 -2
- package/dist/{index.cjs479.js.map → index.cjs483.js.map} +1 -1
- package/dist/{index.cjs480.js → index.cjs484.js} +2 -2
- package/dist/{index.cjs480.js.map → index.cjs484.js.map} +1 -1
- package/dist/{index.cjs481.js → index.cjs485.js} +2 -2
- package/dist/{index.cjs481.js.map → index.cjs485.js.map} +1 -1
- package/dist/{index.cjs482.js → index.cjs486.js} +2 -2
- package/dist/{index.cjs482.js.map → index.cjs486.js.map} +1 -1
- package/dist/{index.cjs488.js → index.cjs493.js} +1 -1
- package/dist/{index.cjs488.js.map → index.cjs493.js.map} +1 -1
- package/dist/index.cjs494.js +1 -1
- package/dist/index.cjs494.js.map +1 -1
- package/dist/index.cjs495.js +1 -1
- package/dist/index.cjs495.js.map +1 -1
- package/dist/index.cjs502.js +1 -1
- package/dist/index.cjs502.js.map +1 -1
- package/dist/index.cjs503.js +1 -1
- package/dist/index.cjs503.js.map +1 -1
- package/dist/index.cjs504.js +1 -1
- package/dist/index.cjs504.js.map +1 -1
- package/dist/{index.cjs498.js → index.cjs505.js} +2 -2
- package/dist/{index.cjs498.js.map → index.cjs505.js.map} +1 -1
- package/dist/{index.cjs499.js → index.cjs506.js} +2 -2
- package/dist/{index.cjs499.js.map → index.cjs506.js.map} +1 -1
- package/dist/index.cjs507.js +2 -0
- package/dist/index.cjs507.js.map +1 -0
- package/dist/index.cjs508.js +2 -0
- package/dist/index.cjs508.js.map +1 -0
- package/dist/index.cjs509.js +1 -1
- package/dist/index.cjs509.js.map +1 -1
- package/dist/index.cjs510.js +1 -1
- package/dist/index.cjs514.js +2 -0
- package/dist/index.cjs514.js.map +1 -0
- package/dist/index.cjs521.js +1 -1
- package/dist/index.cjs522.js +1 -1
- package/dist/index.cjs525.js +1 -1
- package/dist/index.cjs530.js +1 -1
- package/dist/index.cjs531.js +1 -1
- package/dist/index.cjs532.js +1 -1
- package/dist/index.cjs539.js +1 -1
- package/dist/index.cjs544.js +1 -1
- package/dist/index.cjs546.js +1 -1
- package/dist/index.cjs550.js +1 -1
- package/dist/index.cjs550.js.map +1 -1
- package/dist/index.cjs551.js +1 -1
- package/dist/index.cjs551.js.map +1 -1
- package/dist/index.cjs552.js +1 -1
- package/dist/index.cjs552.js.map +1 -1
- package/dist/index.cjs553.js +1 -1
- package/dist/index.cjs553.js.map +1 -1
- package/dist/index.cjs554.js +1 -1
- package/dist/index.cjs554.js.map +1 -1
- package/dist/index.cjs560.js +1 -1
- package/dist/index.cjs560.js.map +1 -1
- package/dist/index.cjs561.js +1 -1
- package/dist/index.cjs561.js.map +1 -1
- package/dist/index.cjs562.js +1 -1
- package/dist/index.cjs562.js.map +1 -1
- package/dist/{index.cjs568.js → index.cjs564.js} +2 -2
- package/dist/{index.cjs568.js.map → index.cjs564.js.map} +1 -1
- package/dist/{index.cjs569.js → index.cjs565.js} +1 -1
- package/dist/index.cjs565.js.map +1 -0
- package/dist/index.cjs655.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es149.js +38 -38
- package/dist/index.es149.js.map +1 -1
- package/dist/index.es179.js +6 -6
- package/dist/index.es179.js.map +1 -1
- package/dist/index.es207.js +6 -6
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es229.js +1 -1
- package/dist/index.es236.js +2 -2
- package/dist/index.es275.js +6 -6
- package/dist/index.es288.js +7 -7
- package/dist/index.es29.js +12 -11
- package/dist/index.es29.js.map +1 -1
- package/dist/index.es299.js +1 -1
- package/dist/index.es306.js +12 -12
- package/dist/index.es313.js +1 -1
- package/dist/index.es314.js +1 -1
- package/dist/index.es318.js +1 -1
- package/dist/index.es327.js +1 -1
- package/dist/index.es329.js +1 -1
- package/dist/index.es337.js +6 -6
- package/dist/index.es378.js +3 -3
- package/dist/index.es384.js +1 -1
- package/dist/index.es419.js +1 -1
- package/dist/index.es437.js +1 -1
- package/dist/index.es438.js +1 -1
- package/dist/index.es439.js +3674 -5
- package/dist/index.es439.js.map +1 -1
- package/dist/index.es440.js +5 -528
- package/dist/index.es440.js.map +1 -1
- package/dist/index.es441.js +2 -3675
- package/dist/index.es441.js.map +1 -1
- package/dist/index.es442.js +2 -6
- package/dist/index.es442.js.map +1 -1
- package/dist/index.es443.js +2 -2
- package/dist/index.es444.js +6 -2
- package/dist/index.es444.js.map +1 -1
- package/dist/index.es445.js +529 -2
- package/dist/index.es445.js.map +1 -1
- package/dist/index.es453.js +25 -5
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es454.js +64 -23
- package/dist/index.es454.js.map +1 -1
- package/dist/index.es455.js +5 -66
- package/dist/index.es455.js.map +1 -1
- package/dist/index.es457.js +5 -33
- package/dist/index.es457.js.map +1 -1
- package/dist/index.es458.js +24 -621
- package/dist/index.es458.js.map +1 -1
- package/dist/index.es459.js +68 -10
- package/dist/index.es459.js.map +1 -1
- package/dist/index.es460.js +33 -5
- package/dist/index.es460.js.map +1 -1
- package/dist/index.es461.js +621 -24
- package/dist/index.es461.js.map +1 -1
- package/dist/index.es462.js +10 -68
- package/dist/index.es462.js.map +1 -1
- package/dist/index.es464.js +1 -1
- package/dist/index.es465.js +13 -44
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +45 -13
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +13 -124
- package/dist/index.es467.js.map +1 -1
- package/dist/index.es468.js +122 -12
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +14 -134
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es470.js +127 -211
- package/dist/index.es470.js.map +1 -1
- package/dist/index.es471.js +218 -13
- package/dist/index.es471.js.map +1 -1
- package/dist/index.es472.js +14 -181
- package/dist/index.es472.js.map +1 -1
- package/dist/index.es473.js +180 -10
- package/dist/index.es473.js.map +1 -1
- package/dist/index.es474.js +11 -50
- package/dist/index.es474.js.map +1 -1
- package/dist/index.es475.js +50 -9
- package/dist/index.es475.js.map +1 -1
- package/dist/index.es476.js +12 -0
- package/dist/index.es476.js.map +1 -0
- package/dist/{index.es479.js → index.es483.js} +2 -2
- package/dist/{index.es479.js.map → index.es483.js.map} +1 -1
- package/dist/{index.es480.js → index.es484.js} +3 -3
- package/dist/{index.es480.js.map → index.es484.js.map} +1 -1
- package/dist/{index.es481.js → index.es485.js} +2 -2
- package/dist/{index.es481.js.map → index.es485.js.map} +1 -1
- package/dist/{index.es482.js → index.es486.js} +4 -4
- package/dist/{index.es482.js.map → index.es486.js.map} +1 -1
- package/dist/{index.es488.js → index.es493.js} +1 -1
- package/dist/{index.es488.js.map → index.es493.js.map} +1 -1
- package/dist/index.es494.js +29 -15
- package/dist/index.es494.js.map +1 -1
- package/dist/index.es495.js +5 -5
- package/dist/index.es495.js.map +1 -1
- package/dist/index.es502.js +5 -525
- package/dist/index.es502.js.map +1 -1
- package/dist/index.es503.js +3 -128
- package/dist/index.es503.js.map +1 -1
- package/dist/index.es504.js +22 -132
- package/dist/index.es504.js.map +1 -1
- package/dist/{index.es498.js → index.es505.js} +2 -2
- package/dist/{index.es498.js.map → index.es505.js.map} +1 -1
- package/dist/{index.es499.js → index.es506.js} +2 -2
- package/dist/{index.es499.js.map → index.es506.js.map} +1 -1
- package/dist/index.es507.js +528 -0
- package/dist/index.es507.js.map +1 -0
- package/dist/index.es508.js +131 -0
- package/dist/index.es508.js.map +1 -0
- package/dist/index.es509.js +130 -61
- package/dist/index.es509.js.map +1 -1
- package/dist/index.es510.js +1 -1
- package/dist/index.es514.js +68 -0
- package/dist/index.es514.js.map +1 -0
- package/dist/index.es521.js +1 -1
- package/dist/index.es522.js +2 -2
- package/dist/index.es525.js +3 -3
- package/dist/index.es530.js +2 -2
- package/dist/index.es531.js +1 -1
- package/dist/index.es532.js +13 -13
- package/dist/index.es539.js +8 -8
- package/dist/index.es544.js +7 -7
- package/dist/index.es546.js +1 -1
- package/dist/index.es550.js +6 -2
- package/dist/index.es550.js.map +1 -1
- package/dist/index.es551.js +16 -2
- package/dist/index.es551.js.map +1 -1
- package/dist/index.es552.js +2 -2
- package/dist/index.es552.js.map +1 -1
- package/dist/index.es553.js +2 -6
- package/dist/index.es553.js.map +1 -1
- package/dist/index.es554.js +2 -16
- package/dist/index.es554.js.map +1 -1
- package/dist/index.es560.js +4 -3
- package/dist/index.es560.js.map +1 -1
- package/dist/index.es561.js +3 -2
- package/dist/index.es561.js.map +1 -1
- package/dist/index.es562.js +2 -4
- package/dist/index.es562.js.map +1 -1
- package/dist/{index.es568.js → index.es564.js} +3 -3
- package/dist/{index.es568.js.map → index.es564.js.map} +1 -1
- package/dist/{index.es569.js → index.es565.js} +1 -1
- package/dist/index.es565.js.map +1 -0
- package/dist/index.es655.js +1 -1
- package/dist/sections/Slider/Slider.css +1 -1
- package/package.json +1 -1
- package/dist/index.cjs489.js +0 -2
- package/dist/index.cjs489.js.map +0 -1
- package/dist/index.cjs490.js +0 -2
- package/dist/index.cjs490.js.map +0 -1
- package/dist/index.cjs496.js +0 -2
- package/dist/index.cjs496.js.map +0 -1
- package/dist/index.cjs497.js +0 -2
- package/dist/index.cjs497.js.map +0 -1
- package/dist/index.cjs569.js.map +0 -1
- package/dist/index.es489.js +0 -32
- package/dist/index.es489.js.map +0 -1
- package/dist/index.es490.js +0 -8
- package/dist/index.es490.js.map +0 -1
- package/dist/index.es496.js +0 -6
- package/dist/index.es496.js.map +0 -1
- package/dist/index.es497.js +0 -27
- package/dist/index.es497.js.map +0 -1
- package/dist/index.es569.js.map +0 -1
- /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css → ConsentModal/ConsentModalContent/ConsentModalContent.css} +0 -0
- /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
package/dist/index.es442.js
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
var
|
2
|
-
function l(e) {
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
4
|
-
}
|
1
|
+
var r = {};
|
5
2
|
export {
|
6
|
-
|
7
|
-
l as getDefaultExportFromCjs
|
3
|
+
r as __exports
|
8
4
|
};
|
9
5
|
//# sourceMappingURL=index.es442.js.map
|
package/dist/index.es442.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es442.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.es442.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index.es443.js
CHANGED
package/dist/index.es444.js
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
-
|
1
|
+
import { __require as e } from "./index.es445.js";
|
2
|
+
var r, i;
|
3
|
+
function o() {
|
4
|
+
return i || (i = 1, r = window.DOMPurify || (window.DOMPurify = e().default || e())), r;
|
5
|
+
}
|
2
6
|
export {
|
3
|
-
|
7
|
+
o as __require
|
4
8
|
};
|
5
9
|
//# sourceMappingURL=index.es444.js.map
|
package/dist/index.es444.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es444.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.es444.js","sources":["../node_modules/isomorphic-dompurify/browser.js"],"sourcesContent":["module.exports = window.DOMPurify || (window.DOMPurify = require('dompurify').default || require('dompurify'));\n"],"names":["browser","require$$0"],"mappings":";;;sBAAAA,IAAiB,OAAO,cAAc,OAAO,YAAYC,EAAA,EAAqB,WAAWA;;","x_google_ignoreList":[0]}
|
package/dist/index.es445.js
CHANGED
@@ -1,5 +1,532 @@
|
|
1
|
-
|
1
|
+
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
2
|
+
var Pe, St;
|
3
|
+
function dn() {
|
4
|
+
if (St) return Pe;
|
5
|
+
St = 1;
|
6
|
+
const {
|
7
|
+
entries: ve,
|
8
|
+
setPrototypeOf: ke,
|
9
|
+
isFrozen: Rt,
|
10
|
+
getPrototypeOf: yt,
|
11
|
+
getOwnPropertyDescriptor: Ot
|
12
|
+
} = Object;
|
13
|
+
let {
|
14
|
+
freeze: g,
|
15
|
+
seal: O,
|
16
|
+
create: Ue
|
17
|
+
} = Object, {
|
18
|
+
apply: ue,
|
19
|
+
construct: me
|
20
|
+
} = typeof Reflect < "u" && Reflect;
|
21
|
+
g || (g = function(o) {
|
22
|
+
return o;
|
23
|
+
}), O || (O = function(o) {
|
24
|
+
return o;
|
25
|
+
}), ue || (ue = function(o, l, s) {
|
26
|
+
return o.apply(l, s);
|
27
|
+
}), me || (me = function(o, l) {
|
28
|
+
return new o(...l);
|
29
|
+
});
|
30
|
+
const Q = A(Array.prototype.forEach), Lt = A(Array.prototype.lastIndexOf), Fe = A(Array.prototype.pop), G = A(Array.prototype.push), Dt = A(Array.prototype.splice), ee = A(String.prototype.toLowerCase), pe = A(String.prototype.toString), He = A(String.prototype.match), W = A(String.prototype.replace), Nt = A(String.prototype.indexOf), bt = A(String.prototype.trim), L = A(Object.prototype.hasOwnProperty), h = A(RegExp.prototype.test), B = It(TypeError);
|
31
|
+
function A(r) {
|
32
|
+
return function(o) {
|
33
|
+
o instanceof RegExp && (o.lastIndex = 0);
|
34
|
+
for (var l = arguments.length, s = new Array(l > 1 ? l - 1 : 0), T = 1; T < l; T++)
|
35
|
+
s[T - 1] = arguments[T];
|
36
|
+
return ue(r, o, s);
|
37
|
+
};
|
38
|
+
}
|
39
|
+
function It(r) {
|
40
|
+
return function() {
|
41
|
+
for (var o = arguments.length, l = new Array(o), s = 0; s < o; s++)
|
42
|
+
l[s] = arguments[s];
|
43
|
+
return me(r, l);
|
44
|
+
};
|
45
|
+
}
|
46
|
+
function a(r, o) {
|
47
|
+
let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ee;
|
48
|
+
ke && ke(r, null);
|
49
|
+
let s = o.length;
|
50
|
+
for (; s--; ) {
|
51
|
+
let T = o[s];
|
52
|
+
if (typeof T == "string") {
|
53
|
+
const b = l(T);
|
54
|
+
b !== T && (Rt(o) || (o[s] = b), T = b);
|
55
|
+
}
|
56
|
+
r[T] = !0;
|
57
|
+
}
|
58
|
+
return r;
|
59
|
+
}
|
60
|
+
function Mt(r) {
|
61
|
+
for (let o = 0; o < r.length; o++)
|
62
|
+
L(r, o) || (r[o] = null);
|
63
|
+
return r;
|
64
|
+
}
|
65
|
+
function N(r) {
|
66
|
+
const o = Ue(null);
|
67
|
+
for (const [l, s] of ve(r))
|
68
|
+
L(r, l) && (Array.isArray(s) ? o[l] = Mt(s) : s && typeof s == "object" && s.constructor === Object ? o[l] = N(s) : o[l] = s);
|
69
|
+
return o;
|
70
|
+
}
|
71
|
+
function Y(r, o) {
|
72
|
+
for (; r !== null; ) {
|
73
|
+
const s = Ot(r, o);
|
74
|
+
if (s) {
|
75
|
+
if (s.get)
|
76
|
+
return A(s.get);
|
77
|
+
if (typeof s.value == "function")
|
78
|
+
return A(s.value);
|
79
|
+
}
|
80
|
+
r = yt(r);
|
81
|
+
}
|
82
|
+
function l() {
|
83
|
+
return null;
|
84
|
+
}
|
85
|
+
return l;
|
86
|
+
}
|
87
|
+
const ze = g(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), de = g(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Te = g(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ct = g(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), _e = g(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), wt = g(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ge = g(["#text"]), We = g(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ee = g(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Be = g(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), te = g(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), xt = O(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Pt = O(/<%[\w\W]*|[\w\W]*%>/gm), vt = O(/\$\{[\w\W]*/gm), kt = O(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ut = O(/^aria-[\-\w]+$/), Ye = O(
|
88
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
89
|
+
// eslint-disable-line no-useless-escape
|
90
|
+
), Ft = O(/^(?:\w+script|data):/i), Ht = O(
|
91
|
+
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
92
|
+
// eslint-disable-line no-control-regex
|
93
|
+
), Xe = O(/^html$/i), zt = O(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
94
|
+
var je = /* @__PURE__ */ Object.freeze({
|
95
|
+
__proto__: null,
|
96
|
+
ARIA_ATTR: Ut,
|
97
|
+
ATTR_WHITESPACE: Ht,
|
98
|
+
CUSTOM_ELEMENT: zt,
|
99
|
+
DATA_ATTR: kt,
|
100
|
+
DOCTYPE_NAME: Xe,
|
101
|
+
ERB_EXPR: Pt,
|
102
|
+
IS_ALLOWED_URI: Ye,
|
103
|
+
IS_SCRIPT_OR_DATA: Ft,
|
104
|
+
MUSTACHE_EXPR: xt,
|
105
|
+
TMPLIT_EXPR: vt
|
106
|
+
});
|
107
|
+
const X = {
|
108
|
+
element: 1,
|
109
|
+
text: 3,
|
110
|
+
// Deprecated
|
111
|
+
progressingInstruction: 7,
|
112
|
+
comment: 8,
|
113
|
+
document: 9
|
114
|
+
}, Gt = function() {
|
115
|
+
return typeof window > "u" ? null : window;
|
116
|
+
}, Wt = function(o, l) {
|
117
|
+
if (typeof o != "object" || typeof o.createPolicy != "function")
|
118
|
+
return null;
|
119
|
+
let s = null;
|
120
|
+
const T = "data-tt-policy-suffix";
|
121
|
+
l && l.hasAttribute(T) && (s = l.getAttribute(T));
|
122
|
+
const b = "dompurify" + (s ? "#" + s : "");
|
123
|
+
try {
|
124
|
+
return o.createPolicy(b, {
|
125
|
+
createHTML(x) {
|
126
|
+
return x;
|
127
|
+
},
|
128
|
+
createScriptURL(x) {
|
129
|
+
return x;
|
130
|
+
}
|
131
|
+
});
|
132
|
+
} catch {
|
133
|
+
return console.warn("TrustedTypes policy " + b + " could not be created."), null;
|
134
|
+
}
|
135
|
+
}, Ve = function() {
|
136
|
+
return {
|
137
|
+
afterSanitizeAttributes: [],
|
138
|
+
afterSanitizeElements: [],
|
139
|
+
afterSanitizeShadowDOM: [],
|
140
|
+
beforeSanitizeAttributes: [],
|
141
|
+
beforeSanitizeElements: [],
|
142
|
+
beforeSanitizeShadowDOM: [],
|
143
|
+
uponSanitizeAttribute: [],
|
144
|
+
uponSanitizeElement: [],
|
145
|
+
uponSanitizeShadowNode: []
|
146
|
+
};
|
147
|
+
};
|
148
|
+
function qe() {
|
149
|
+
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Gt();
|
150
|
+
const o = (i) => qe(i);
|
151
|
+
if (o.version = "3.2.6", o.removed = [], !r || !r.document || r.document.nodeType !== X.document || !r.Element)
|
152
|
+
return o.isSupported = !1, o;
|
153
|
+
let {
|
154
|
+
document: l
|
155
|
+
} = r;
|
156
|
+
const s = l, T = s.currentScript, {
|
157
|
+
DocumentFragment: b,
|
158
|
+
HTMLTemplateElement: x,
|
159
|
+
Node: ge,
|
160
|
+
Element: $e,
|
161
|
+
NodeFilter: j,
|
162
|
+
NamedNodeMap: Yt = r.NamedNodeMap || r.MozNamedAttrMap,
|
163
|
+
HTMLFormElement: Xt,
|
164
|
+
DOMParser: jt,
|
165
|
+
trustedTypes: ne
|
166
|
+
} = r, V = $e.prototype, Vt = Y(V, "cloneNode"), qt = Y(V, "remove"), $t = Y(V, "nextSibling"), Kt = Y(V, "childNodes"), oe = Y(V, "parentNode");
|
167
|
+
if (typeof x == "function") {
|
168
|
+
const i = l.createElement("template");
|
169
|
+
i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
|
170
|
+
}
|
171
|
+
let S, q = "";
|
172
|
+
const {
|
173
|
+
implementation: he,
|
174
|
+
createNodeIterator: Zt,
|
175
|
+
createDocumentFragment: Jt,
|
176
|
+
getElementsByTagName: Qt
|
177
|
+
} = l, {
|
178
|
+
importNode: en
|
179
|
+
} = s;
|
180
|
+
let R = Ve();
|
181
|
+
o.isSupported = typeof ve == "function" && typeof oe == "function" && he && he.createHTMLDocument !== void 0;
|
182
|
+
const {
|
183
|
+
MUSTACHE_EXPR: Ae,
|
184
|
+
ERB_EXPR: Se,
|
185
|
+
TMPLIT_EXPR: Re,
|
186
|
+
DATA_ATTR: tn,
|
187
|
+
ARIA_ATTR: nn,
|
188
|
+
IS_SCRIPT_OR_DATA: on,
|
189
|
+
ATTR_WHITESPACE: Ke,
|
190
|
+
CUSTOM_ELEMENT: an
|
191
|
+
} = je;
|
192
|
+
let {
|
193
|
+
IS_ALLOWED_URI: Ze
|
194
|
+
} = je, m = null;
|
195
|
+
const Je = a({}, [...ze, ...de, ...Te, ..._e, ...Ge]);
|
196
|
+
let d = null;
|
197
|
+
const Qe = a({}, [...We, ...Ee, ...Be, ...te]);
|
198
|
+
let f = Object.seal(Ue(null, {
|
199
|
+
tagNameCheck: {
|
200
|
+
writable: !0,
|
201
|
+
configurable: !1,
|
202
|
+
enumerable: !0,
|
203
|
+
value: null
|
204
|
+
},
|
205
|
+
attributeNameCheck: {
|
206
|
+
writable: !0,
|
207
|
+
configurable: !1,
|
208
|
+
enumerable: !0,
|
209
|
+
value: null
|
210
|
+
},
|
211
|
+
allowCustomizedBuiltInElements: {
|
212
|
+
writable: !0,
|
213
|
+
configurable: !1,
|
214
|
+
enumerable: !0,
|
215
|
+
value: !1
|
216
|
+
}
|
217
|
+
})), $ = null, ye = null, et = !0, Oe = !0, tt = !1, nt = !0, P = !1, ie = !0, w = !1, Le = !1, De = !1, v = !1, ae = !1, re = !1, ot = !0, it = !1;
|
218
|
+
const rn = "user-content-";
|
219
|
+
let Ne = !0, K = !1, k = {}, U = null;
|
220
|
+
const at = a({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
221
|
+
let rt = null;
|
222
|
+
const st = a({}, ["audio", "video", "img", "source", "image", "track"]);
|
223
|
+
let be = null;
|
224
|
+
const lt = a({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), se = "http://www.w3.org/1998/Math/MathML", le = "http://www.w3.org/2000/svg", I = "http://www.w3.org/1999/xhtml";
|
225
|
+
let F = I, Ie = !1, Me = null;
|
226
|
+
const sn = a({}, [se, le, I], pe);
|
227
|
+
let ce = a({}, ["mi", "mo", "mn", "ms", "mtext"]), fe = a({}, ["annotation-xml"]);
|
228
|
+
const ln = a({}, ["title", "style", "font", "a", "script"]);
|
229
|
+
let Z = null;
|
230
|
+
const cn = ["application/xhtml+xml", "text/html"], fn = "text/html";
|
231
|
+
let p = null, H = null;
|
232
|
+
const un = l.createElement("form"), ct = function(e) {
|
233
|
+
return e instanceof RegExp || e instanceof Function;
|
234
|
+
}, Ce = function() {
|
235
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
236
|
+
if (!(H && H === e)) {
|
237
|
+
if ((!e || typeof e != "object") && (e = {}), e = N(e), Z = // eslint-disable-next-line unicorn/prefer-includes
|
238
|
+
cn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? fn : e.PARSER_MEDIA_TYPE, p = Z === "application/xhtml+xml" ? pe : ee, m = L(e, "ALLOWED_TAGS") ? a({}, e.ALLOWED_TAGS, p) : Je, d = L(e, "ALLOWED_ATTR") ? a({}, e.ALLOWED_ATTR, p) : Qe, Me = L(e, "ALLOWED_NAMESPACES") ? a({}, e.ALLOWED_NAMESPACES, pe) : sn, be = L(e, "ADD_URI_SAFE_ATTR") ? a(N(lt), e.ADD_URI_SAFE_ATTR, p) : lt, rt = L(e, "ADD_DATA_URI_TAGS") ? a(N(st), e.ADD_DATA_URI_TAGS, p) : st, U = L(e, "FORBID_CONTENTS") ? a({}, e.FORBID_CONTENTS, p) : at, $ = L(e, "FORBID_TAGS") ? a({}, e.FORBID_TAGS, p) : N({}), ye = L(e, "FORBID_ATTR") ? a({}, e.FORBID_ATTR, p) : N({}), k = L(e, "USE_PROFILES") ? e.USE_PROFILES : !1, et = e.ALLOW_ARIA_ATTR !== !1, Oe = e.ALLOW_DATA_ATTR !== !1, tt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, nt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, ie = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, v = e.RETURN_DOM || !1, ae = e.RETURN_DOM_FRAGMENT || !1, re = e.RETURN_TRUSTED_TYPE || !1, De = e.FORCE_BODY || !1, ot = e.SANITIZE_DOM !== !1, it = e.SANITIZE_NAMED_PROPS || !1, Ne = e.KEEP_CONTENT !== !1, K = e.IN_PLACE || !1, Ze = e.ALLOWED_URI_REGEXP || Ye, F = e.NAMESPACE || I, ce = e.MATHML_TEXT_INTEGRATION_POINTS || ce, fe = e.HTML_INTEGRATION_POINTS || fe, f = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && ct(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (f.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && ct(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (f.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (f.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (Oe = !1), ae && (v = !0), k && (m = a({}, Ge), d = [], k.html === !0 && (a(m, ze), a(d, We)), k.svg === !0 && (a(m, de), a(d, Ee), a(d, te)), k.svgFilters === !0 && (a(m, Te), a(d, Ee), a(d, te)), k.mathMl === !0 && (a(m, _e), a(d, Be), a(d, te))), e.ADD_TAGS && (m === Je && (m = N(m)), a(m, e.ADD_TAGS, p)), e.ADD_ATTR && (d === Qe && (d = N(d)), a(d, e.ADD_ATTR, p)), e.ADD_URI_SAFE_ATTR && a(be, e.ADD_URI_SAFE_ATTR, p), e.FORBID_CONTENTS && (U === at && (U = N(U)), a(U, e.FORBID_CONTENTS, p)), Ne && (m["#text"] = !0), w && a(m, ["html", "head", "body"]), m.table && (a(m, ["tbody"]), delete $.tbody), e.TRUSTED_TYPES_POLICY) {
|
239
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
240
|
+
throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
241
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
242
|
+
throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
243
|
+
S = e.TRUSTED_TYPES_POLICY, q = S.createHTML("");
|
244
|
+
} else
|
245
|
+
S === void 0 && (S = Wt(ne, T)), S !== null && typeof q == "string" && (q = S.createHTML(""));
|
246
|
+
g && g(e), H = e;
|
247
|
+
}
|
248
|
+
}, ft = a({}, [...de, ...Te, ...Ct]), ut = a({}, [..._e, ...wt]), mn = function(e) {
|
249
|
+
let t = oe(e);
|
250
|
+
(!t || !t.tagName) && (t = {
|
251
|
+
namespaceURI: F,
|
252
|
+
tagName: "template"
|
253
|
+
});
|
254
|
+
const n = ee(e.tagName), c = ee(t.tagName);
|
255
|
+
return Me[e.namespaceURI] ? e.namespaceURI === le ? t.namespaceURI === I ? n === "svg" : t.namespaceURI === se ? n === "svg" && (c === "annotation-xml" || ce[c]) : !!ft[n] : e.namespaceURI === se ? t.namespaceURI === I ? n === "math" : t.namespaceURI === le ? n === "math" && fe[c] : !!ut[n] : e.namespaceURI === I ? t.namespaceURI === le && !fe[c] || t.namespaceURI === se && !ce[c] ? !1 : !ut[n] && (ln[n] || !ft[n]) : !!(Z === "application/xhtml+xml" && Me[e.namespaceURI]) : !1;
|
256
|
+
}, D = function(e) {
|
257
|
+
G(o.removed, {
|
258
|
+
element: e
|
259
|
+
});
|
260
|
+
try {
|
261
|
+
oe(e).removeChild(e);
|
262
|
+
} catch {
|
263
|
+
qt(e);
|
264
|
+
}
|
265
|
+
}, z = function(e, t) {
|
266
|
+
try {
|
267
|
+
G(o.removed, {
|
268
|
+
attribute: t.getAttributeNode(e),
|
269
|
+
from: t
|
270
|
+
});
|
271
|
+
} catch {
|
272
|
+
G(o.removed, {
|
273
|
+
attribute: null,
|
274
|
+
from: t
|
275
|
+
});
|
276
|
+
}
|
277
|
+
if (t.removeAttribute(e), e === "is")
|
278
|
+
if (v || ae)
|
279
|
+
try {
|
280
|
+
D(t);
|
281
|
+
} catch {
|
282
|
+
}
|
283
|
+
else
|
284
|
+
try {
|
285
|
+
t.setAttribute(e, "");
|
286
|
+
} catch {
|
287
|
+
}
|
288
|
+
}, mt = function(e) {
|
289
|
+
let t = null, n = null;
|
290
|
+
if (De)
|
291
|
+
e = "<remove></remove>" + e;
|
292
|
+
else {
|
293
|
+
const u = He(e, /^[\r\n\t ]+/);
|
294
|
+
n = u && u[0];
|
295
|
+
}
|
296
|
+
Z === "application/xhtml+xml" && F === I && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
297
|
+
const c = S ? S.createHTML(e) : e;
|
298
|
+
if (F === I)
|
299
|
+
try {
|
300
|
+
t = new jt().parseFromString(c, Z);
|
301
|
+
} catch {
|
302
|
+
}
|
303
|
+
if (!t || !t.documentElement) {
|
304
|
+
t = he.createDocument(F, "template", null);
|
305
|
+
try {
|
306
|
+
t.documentElement.innerHTML = Ie ? q : c;
|
307
|
+
} catch {
|
308
|
+
}
|
309
|
+
}
|
310
|
+
const _ = t.body || t.documentElement;
|
311
|
+
return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), F === I ? Qt.call(t, w ? "html" : "body")[0] : w ? t.documentElement : _;
|
312
|
+
}, pt = function(e) {
|
313
|
+
return Zt.call(
|
314
|
+
e.ownerDocument || e,
|
315
|
+
e,
|
316
|
+
// eslint-disable-next-line no-bitwise
|
317
|
+
j.SHOW_ELEMENT | j.SHOW_COMMENT | j.SHOW_TEXT | j.SHOW_PROCESSING_INSTRUCTION | j.SHOW_CDATA_SECTION,
|
318
|
+
null
|
319
|
+
);
|
320
|
+
}, we = function(e) {
|
321
|
+
return e instanceof Xt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof Yt) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
322
|
+
}, dt = function(e) {
|
323
|
+
return typeof ge == "function" && e instanceof ge;
|
324
|
+
};
|
325
|
+
function M(i, e, t) {
|
326
|
+
Q(i, (n) => {
|
327
|
+
n.call(o, e, t, H);
|
328
|
+
});
|
329
|
+
}
|
330
|
+
const Tt = function(e) {
|
331
|
+
let t = null;
|
332
|
+
if (M(R.beforeSanitizeElements, e, null), we(e))
|
333
|
+
return D(e), !0;
|
334
|
+
const n = p(e.nodeName);
|
335
|
+
if (M(R.uponSanitizeElement, e, {
|
336
|
+
tagName: n,
|
337
|
+
allowedTags: m
|
338
|
+
}), ie && e.hasChildNodes() && !dt(e.firstElementChild) && h(/<[/\w!]/g, e.innerHTML) && h(/<[/\w!]/g, e.textContent) || e.nodeType === X.progressingInstruction || ie && e.nodeType === X.comment && h(/<[/\w]/g, e.data))
|
339
|
+
return D(e), !0;
|
340
|
+
if (!m[n] || $[n]) {
|
341
|
+
if (!$[n] && Et(n) && (f.tagNameCheck instanceof RegExp && h(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
|
342
|
+
return !1;
|
343
|
+
if (Ne && !U[n]) {
|
344
|
+
const c = oe(e) || e.parentNode, _ = Kt(e) || e.childNodes;
|
345
|
+
if (_ && c) {
|
346
|
+
const u = _.length;
|
347
|
+
for (let y = u - 1; y >= 0; --y) {
|
348
|
+
const C = Vt(_[y], !0);
|
349
|
+
C.__removalCount = (e.__removalCount || 0) + 1, c.insertBefore(C, $t(e));
|
350
|
+
}
|
351
|
+
}
|
352
|
+
}
|
353
|
+
return D(e), !0;
|
354
|
+
}
|
355
|
+
return e instanceof $e && !mn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (D(e), !0) : (P && e.nodeType === X.text && (t = e.textContent, Q([Ae, Se, Re], (c) => {
|
356
|
+
t = W(t, c, " ");
|
357
|
+
}), e.textContent !== t && (G(o.removed, {
|
358
|
+
element: e.cloneNode()
|
359
|
+
}), e.textContent = t)), M(R.afterSanitizeElements, e, null), !1);
|
360
|
+
}, _t = function(e, t, n) {
|
361
|
+
if (ot && (t === "id" || t === "name") && (n in l || n in un))
|
362
|
+
return !1;
|
363
|
+
if (!(Oe && !ye[t] && h(tn, t))) {
|
364
|
+
if (!(et && h(nn, t))) {
|
365
|
+
if (!d[t] || ye[t]) {
|
366
|
+
if (
|
367
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
368
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
369
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
370
|
+
!(Et(e) && (f.tagNameCheck instanceof RegExp && h(f.tagNameCheck, e) || f.tagNameCheck instanceof Function && f.tagNameCheck(e)) && (f.attributeNameCheck instanceof RegExp && h(f.attributeNameCheck, t) || f.attributeNameCheck instanceof Function && f.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
371
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
372
|
+
t === "is" && f.allowCustomizedBuiltInElements && (f.tagNameCheck instanceof RegExp && h(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
|
373
|
+
) return !1;
|
374
|
+
} else if (!be[t]) {
|
375
|
+
if (!h(Ze, W(n, Ke, ""))) {
|
376
|
+
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Nt(n, "data:") === 0 && rt[e])) {
|
377
|
+
if (!(tt && !h(on, W(n, Ke, "")))) {
|
378
|
+
if (n)
|
379
|
+
return !1;
|
380
|
+
}
|
381
|
+
}
|
382
|
+
}
|
383
|
+
}
|
384
|
+
}
|
385
|
+
}
|
386
|
+
return !0;
|
387
|
+
}, Et = function(e) {
|
388
|
+
return e !== "annotation-xml" && He(e, an);
|
389
|
+
}, gt = function(e) {
|
390
|
+
M(R.beforeSanitizeAttributes, e, null);
|
391
|
+
const {
|
392
|
+
attributes: t
|
393
|
+
} = e;
|
394
|
+
if (!t || we(e))
|
395
|
+
return;
|
396
|
+
const n = {
|
397
|
+
attrName: "",
|
398
|
+
attrValue: "",
|
399
|
+
keepAttr: !0,
|
400
|
+
allowedAttributes: d,
|
401
|
+
forceKeepAttr: void 0
|
402
|
+
};
|
403
|
+
let c = t.length;
|
404
|
+
for (; c--; ) {
|
405
|
+
const _ = t[c], {
|
406
|
+
name: u,
|
407
|
+
namespaceURI: y,
|
408
|
+
value: C
|
409
|
+
} = _, J = p(u), xe = C;
|
410
|
+
let E = u === "value" ? xe : bt(xe);
|
411
|
+
if (n.attrName = J, n.attrValue = E, n.keepAttr = !0, n.forceKeepAttr = void 0, M(R.uponSanitizeAttribute, e, n), E = n.attrValue, it && (J === "id" || J === "name") && (z(u, e), E = rn + E), ie && h(/((--!?|])>)|<\/(style|title)/i, E)) {
|
412
|
+
z(u, e);
|
413
|
+
continue;
|
414
|
+
}
|
415
|
+
if (n.forceKeepAttr)
|
416
|
+
continue;
|
417
|
+
if (!n.keepAttr) {
|
418
|
+
z(u, e);
|
419
|
+
continue;
|
420
|
+
}
|
421
|
+
if (!nt && h(/\/>/i, E)) {
|
422
|
+
z(u, e);
|
423
|
+
continue;
|
424
|
+
}
|
425
|
+
P && Q([Ae, Se, Re], (At) => {
|
426
|
+
E = W(E, At, " ");
|
427
|
+
});
|
428
|
+
const ht = p(e.nodeName);
|
429
|
+
if (!_t(ht, J, E)) {
|
430
|
+
z(u, e);
|
431
|
+
continue;
|
432
|
+
}
|
433
|
+
if (S && typeof ne == "object" && typeof ne.getAttributeType == "function" && !y)
|
434
|
+
switch (ne.getAttributeType(ht, J)) {
|
435
|
+
case "TrustedHTML": {
|
436
|
+
E = S.createHTML(E);
|
437
|
+
break;
|
438
|
+
}
|
439
|
+
case "TrustedScriptURL": {
|
440
|
+
E = S.createScriptURL(E);
|
441
|
+
break;
|
442
|
+
}
|
443
|
+
}
|
444
|
+
if (E !== xe)
|
445
|
+
try {
|
446
|
+
y ? e.setAttributeNS(y, u, E) : e.setAttribute(u, E), we(e) ? D(e) : Fe(o.removed);
|
447
|
+
} catch {
|
448
|
+
z(u, e);
|
449
|
+
}
|
450
|
+
}
|
451
|
+
M(R.afterSanitizeAttributes, e, null);
|
452
|
+
}, pn = function i(e) {
|
453
|
+
let t = null;
|
454
|
+
const n = pt(e);
|
455
|
+
for (M(R.beforeSanitizeShadowDOM, e, null); t = n.nextNode(); )
|
456
|
+
M(R.uponSanitizeShadowNode, t, null), Tt(t), gt(t), t.content instanceof b && i(t.content);
|
457
|
+
M(R.afterSanitizeShadowDOM, e, null);
|
458
|
+
};
|
459
|
+
return o.sanitize = function(i) {
|
460
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, c = null, _ = null;
|
461
|
+
if (Ie = !i, Ie && (i = "<!-->"), typeof i != "string" && !dt(i))
|
462
|
+
if (typeof i.toString == "function") {
|
463
|
+
if (i = i.toString(), typeof i != "string")
|
464
|
+
throw B("dirty is not a string, aborting");
|
465
|
+
} else
|
466
|
+
throw B("toString is not a function");
|
467
|
+
if (!o.isSupported)
|
468
|
+
return i;
|
469
|
+
if (Le || Ce(e), o.removed = [], typeof i == "string" && (K = !1), K) {
|
470
|
+
if (i.nodeName) {
|
471
|
+
const C = p(i.nodeName);
|
472
|
+
if (!m[C] || $[C])
|
473
|
+
throw B("root node is forbidden and cannot be sanitized in-place");
|
474
|
+
}
|
475
|
+
} else if (i instanceof ge)
|
476
|
+
t = mt("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === X.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
|
477
|
+
else {
|
478
|
+
if (!v && !P && !w && // eslint-disable-next-line unicorn/prefer-includes
|
479
|
+
i.indexOf("<") === -1)
|
480
|
+
return S && re ? S.createHTML(i) : i;
|
481
|
+
if (t = mt(i), !t)
|
482
|
+
return v ? null : re ? q : "";
|
483
|
+
}
|
484
|
+
t && De && D(t.firstChild);
|
485
|
+
const u = pt(K ? i : t);
|
486
|
+
for (; c = u.nextNode(); )
|
487
|
+
Tt(c), gt(c), c.content instanceof b && pn(c.content);
|
488
|
+
if (K)
|
489
|
+
return i;
|
490
|
+
if (v) {
|
491
|
+
if (ae)
|
492
|
+
for (_ = Jt.call(t.ownerDocument); t.firstChild; )
|
493
|
+
_.appendChild(t.firstChild);
|
494
|
+
else
|
495
|
+
_ = t;
|
496
|
+
return (d.shadowroot || d.shadowrootmode) && (_ = en.call(s, _, !0)), _;
|
497
|
+
}
|
498
|
+
let y = w ? t.outerHTML : t.innerHTML;
|
499
|
+
return w && m["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && h(Xe, t.ownerDocument.doctype.name) && (y = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
|
500
|
+
` + y), P && Q([Ae, Se, Re], (C) => {
|
501
|
+
y = W(y, C, " ");
|
502
|
+
}), S && re ? S.createHTML(y) : y;
|
503
|
+
}, o.setConfig = function() {
|
504
|
+
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
505
|
+
Ce(i), Le = !0;
|
506
|
+
}, o.clearConfig = function() {
|
507
|
+
H = null, Le = !1;
|
508
|
+
}, o.isValidAttribute = function(i, e, t) {
|
509
|
+
H || Ce({});
|
510
|
+
const n = p(i), c = p(e);
|
511
|
+
return _t(n, c, t);
|
512
|
+
}, o.addHook = function(i, e) {
|
513
|
+
typeof e == "function" && G(R[i], e);
|
514
|
+
}, o.removeHook = function(i, e) {
|
515
|
+
if (e !== void 0) {
|
516
|
+
const t = Lt(R[i], e);
|
517
|
+
return t === -1 ? void 0 : Dt(R[i], t, 1)[0];
|
518
|
+
}
|
519
|
+
return Fe(R[i]);
|
520
|
+
}, o.removeHooks = function(i) {
|
521
|
+
R[i] = [];
|
522
|
+
}, o.removeAllHooks = function() {
|
523
|
+
R = Ve();
|
524
|
+
}, o;
|
525
|
+
}
|
526
|
+
var Bt = qe();
|
527
|
+
return Pe = Bt, Pe;
|
528
|
+
}
|
2
529
|
export {
|
3
|
-
|
530
|
+
dn as __require
|
4
531
|
};
|
5
532
|
//# sourceMappingURL=index.es445.js.map
|