@ianicdev/datatables2 0.10.5 → 0.10.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.
Files changed (51) hide show
  1. package/dist/{Columns-CPCKKIx3.cjs → Columns-BQBgwIE4.cjs} +1 -1
  2. package/dist/{Columns-ZxF5CuL6.js → Columns-CeOoSZPT.js} +1 -1
  3. package/dist/{Comparison-DfPeTvCT.cjs → Comparison-TwSFYOo8.cjs} +1 -1
  4. package/dist/{Comparison-CMTDEfUJ.js → Comparison-w8X0sSEz.js} +6 -6
  5. package/dist/Datepicker-Bfg7S8gY.cjs +2 -0
  6. package/dist/Datepicker-DZj1h3YE.js +1425 -0
  7. package/dist/{Download-CjD4NWhV.cjs → Download-CtOrEQa0.cjs} +1 -1
  8. package/dist/{Download-CBodg9GI.js → Download-h5jMMWzV.js} +3 -3
  9. package/dist/{Options-BHx4o8aa.js → Options-Cf8cNif9.js} +1 -1
  10. package/dist/{Options-e0hJOpF8.cjs → Options-DgUkT0h1.cjs} +1 -1
  11. package/dist/{RefreshTable-DlG8UH4c.js → RefreshTable-B5qFMtYy.js} +2 -2
  12. package/dist/{RefreshTable-CyPWCK3e.cjs → RefreshTable-CyPzzQ1S.cjs} +1 -1
  13. package/dist/{Search-DDRz2N_S.js → Search--1ntexbx.js} +2 -2
  14. package/dist/{Search-D4UmoZpS.cjs → Search-YN4Jt4eC.cjs} +1 -1
  15. package/dist/{Table-QxreAQB1.js → Table-5pQ_bwxC.js} +3 -3
  16. package/dist/{Table-ACmKFpAk.cjs → Table-WgtgmVfz.cjs} +1 -1
  17. package/dist/{TableServer-pRzLKhVw.cjs → TableServer-7AzrveN2.cjs} +1 -1
  18. package/dist/{TableServer-BQUFKBeQ.js → TableServer-Bewaghu8.js} +3 -3
  19. package/dist/{cellRender-B3IOPLJf.js → cellRender-Cy88VFEF.js} +451 -452
  20. package/dist/cellRender-kbJfFjXc.cjs +1 -0
  21. package/dist/{dataTables-Be-U1RVV.js → dataTables-ej1IEGzo.js} +1385 -1388
  22. package/dist/dataTables-z7fPX2Wi.cjs +4 -0
  23. package/dist/datatables.cjs +1 -1
  24. package/dist/datatables.js +1 -1
  25. package/dist/datatables2.css +1 -1
  26. package/dist/html2canvas.esm-B5qzocYs.cjs +5 -0
  27. package/dist/{html2canvas.esm-DQ00cQCm.js → html2canvas.esm-BWVIUcAF.js} +5 -55
  28. package/dist/{index-5WIEduUN.js → index-C3S1kkaI.js} +2 -2
  29. package/dist/index-CiJ4XY6g.cjs +1 -0
  30. package/dist/index-DfPhvU77.js +5865 -0
  31. package/dist/{index-CDteNa2i.cjs → index-EmvtFwx8.cjs} +1 -1
  32. package/dist/{index.es-Ciudu1vj.cjs → index.es-BtDW7HTQ.cjs} +1 -1
  33. package/dist/{index.es-eRsZ1LFr.js → index.es-Bv6Mb9BC.js} +2 -2
  34. package/dist/{jspdf-B3ZoDzKb.cjs → jspdf-BsORS480.cjs} +2 -2
  35. package/dist/{jspdf-ooxm5O8S.js → jspdf-D9i2dan7.js} +3 -3
  36. package/dist/purify.es-B-PIlM9I.js +552 -0
  37. package/dist/purify.es-B-_4ubwQ.cjs +2 -0
  38. package/dist/{xlsx-BiH37OJz.cjs → xlsx-D4qEY9Uo.cjs} +5 -5
  39. package/dist/{xlsx-Beik4N2o.js → xlsx-VYa4XHDj.js} +8 -48
  40. package/package.json +14 -13
  41. package/dist/Datepicker-BLYCUwKH.js +0 -1411
  42. package/dist/Datepicker-CbsULJsG.cjs +0 -2
  43. package/dist/cellRender-CA6S9KvF.cjs +0 -1
  44. package/dist/dataTables-BbXv6am2.cjs +0 -4
  45. package/dist/html2canvas.esm-CNmnTSlr.cjs +0 -5
  46. package/dist/index-BAxGZLuh.js +0 -4533
  47. package/dist/index-m_LBTAkz.cjs +0 -1
  48. package/dist/purify.es-BwLardii.js +0 -527
  49. package/dist/purify.es-ClceE12G.cjs +0 -2
  50. package/dist/sortablejs-C0WJhxmJ.js +0 -1254
  51. package/dist/sortablejs-Da6TYh39.cjs +0 -1
@@ -1,527 +0,0 @@
1
- const {
2
- entries: Tt,
3
- setPrototypeOf: rt,
4
- isFrozen: Bt,
5
- getPrototypeOf: Yt,
6
- getOwnPropertyDescriptor: Xt
7
- } = Object;
8
- let {
9
- freeze: S,
10
- seal: y,
11
- create: _t
12
- } = Object, {
13
- apply: we,
14
- construct: xe
15
- } = typeof Reflect < "u" && Reflect;
16
- S || (S = function(o) {
17
- return o;
18
- });
19
- y || (y = function(o) {
20
- return o;
21
- });
22
- we || (we = function(o, l, s) {
23
- return o.apply(l, s);
24
- });
25
- xe || (xe = function(o, l) {
26
- return new o(...l);
27
- });
28
- const le = R(Array.prototype.forEach), jt = R(Array.prototype.lastIndexOf), st = R(Array.prototype.pop), $ = R(Array.prototype.push), Vt = R(Array.prototype.splice), fe = R(String.prototype.toLowerCase), Ne = R(String.prototype.toString), lt = R(String.prototype.match), q = R(String.prototype.replace), $t = R(String.prototype.indexOf), qt = R(String.prototype.trim), L = R(Object.prototype.hasOwnProperty), A = R(RegExp.prototype.test), K = Kt(TypeError);
29
- function R(r) {
30
- return function(o) {
31
- o instanceof RegExp && (o.lastIndex = 0);
32
- for (var l = arguments.length, s = new Array(l > 1 ? l - 1 : 0), T = 1; T < l; T++)
33
- s[T - 1] = arguments[T];
34
- return we(r, o, s);
35
- };
36
- }
37
- function Kt(r) {
38
- return function() {
39
- for (var o = arguments.length, l = new Array(o), s = 0; s < o; s++)
40
- l[s] = arguments[s];
41
- return xe(r, l);
42
- };
43
- }
44
- function a(r, o) {
45
- let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fe;
46
- rt && rt(r, null);
47
- let s = o.length;
48
- for (; s--; ) {
49
- let T = o[s];
50
- if (typeof T == "string") {
51
- const N = l(T);
52
- N !== T && (Bt(o) || (o[s] = N), T = N);
53
- }
54
- r[T] = !0;
55
- }
56
- return r;
57
- }
58
- function Zt(r) {
59
- for (let o = 0; o < r.length; o++)
60
- L(r, o) || (r[o] = null);
61
- return r;
62
- }
63
- function C(r) {
64
- const o = _t(null);
65
- for (const [l, s] of Tt(r))
66
- L(r, l) && (Array.isArray(s) ? o[l] = Zt(s) : s && typeof s == "object" && s.constructor === Object ? o[l] = C(s) : o[l] = s);
67
- return o;
68
- }
69
- function Z(r, o) {
70
- for (; r !== null; ) {
71
- const s = Xt(r, o);
72
- if (s) {
73
- if (s.get)
74
- return R(s.get);
75
- if (typeof s.value == "function")
76
- return R(s.value);
77
- }
78
- r = Yt(r);
79
- }
80
- function l() {
81
- return null;
82
- }
83
- return l;
84
- }
85
- const ct = S(["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"]), be = S(["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"]), Ie = S(["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"]), Jt = S(["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"]), Me = S(["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"]), Qt = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ft = S(["#text"]), ut = S(["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"]), Ce = S(["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"]), mt = S(["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"]), ce = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), en = y(/\{\{[\w\W]*|[\w\W]*\}\}/gm), tn = y(/<%[\w\W]*|[\w\W]*%>/gm), nn = y(/\$\{[\w\W]*/gm), on = y(/^data-[\-\w.\u00B7-\uFFFF]+$/), an = y(/^aria-[\-\w]+$/), Et = y(
86
- /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
87
- // eslint-disable-line no-useless-escape
88
- ), rn = y(/^(?:\w+script|data):/i), sn = y(
89
- /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
90
- // eslint-disable-line no-control-regex
91
- ), gt = y(/^html$/i), ln = y(/^[a-z][.\w]*(-[.\w]+)+$/i);
92
- var pt = /* @__PURE__ */ Object.freeze({
93
- __proto__: null,
94
- ARIA_ATTR: an,
95
- ATTR_WHITESPACE: sn,
96
- CUSTOM_ELEMENT: ln,
97
- DATA_ATTR: on,
98
- DOCTYPE_NAME: gt,
99
- ERB_EXPR: tn,
100
- IS_ALLOWED_URI: Et,
101
- IS_SCRIPT_OR_DATA: rn,
102
- MUSTACHE_EXPR: en,
103
- TMPLIT_EXPR: nn
104
- });
105
- const J = {
106
- element: 1,
107
- text: 3,
108
- // Deprecated
109
- progressingInstruction: 7,
110
- comment: 8,
111
- document: 9
112
- }, cn = function() {
113
- return typeof window > "u" ? null : window;
114
- }, fn = function(o, l) {
115
- if (typeof o != "object" || typeof o.createPolicy != "function")
116
- return null;
117
- let s = null;
118
- const T = "data-tt-policy-suffix";
119
- l && l.hasAttribute(T) && (s = l.getAttribute(T));
120
- const N = "dompurify" + (s ? "#" + s : "");
121
- try {
122
- return o.createPolicy(N, {
123
- createHTML(x) {
124
- return x;
125
- },
126
- createScriptURL(x) {
127
- return x;
128
- }
129
- });
130
- } catch {
131
- return console.warn("TrustedTypes policy " + N + " could not be created."), null;
132
- }
133
- }, dt = function() {
134
- return {
135
- afterSanitizeAttributes: [],
136
- afterSanitizeElements: [],
137
- afterSanitizeShadowDOM: [],
138
- beforeSanitizeAttributes: [],
139
- beforeSanitizeElements: [],
140
- beforeSanitizeShadowDOM: [],
141
- uponSanitizeAttribute: [],
142
- uponSanitizeElement: [],
143
- uponSanitizeShadowNode: []
144
- };
145
- };
146
- function ht() {
147
- let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : cn();
148
- const o = (i) => ht(i);
149
- if (o.version = "3.2.6", o.removed = [], !r || !r.document || r.document.nodeType !== J.document || !r.Element)
150
- return o.isSupported = !1, o;
151
- let {
152
- document: l
153
- } = r;
154
- const s = l, T = s.currentScript, {
155
- DocumentFragment: N,
156
- HTMLTemplateElement: x,
157
- Node: ue,
158
- Element: Pe,
159
- NodeFilter: G,
160
- NamedNodeMap: At = r.NamedNodeMap || r.MozNamedAttrMap,
161
- HTMLFormElement: St,
162
- DOMParser: Rt,
163
- trustedTypes: Q
164
- } = r, W = Pe.prototype, Ot = Z(W, "cloneNode"), yt = Z(W, "remove"), Lt = Z(W, "nextSibling"), Dt = Z(W, "childNodes"), ee = Z(W, "parentNode");
165
- if (typeof x == "function") {
166
- const i = l.createElement("template");
167
- i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
168
- }
169
- let g, B = "";
170
- const {
171
- implementation: me,
172
- createNodeIterator: Nt,
173
- createDocumentFragment: bt,
174
- getElementsByTagName: It
175
- } = l, {
176
- importNode: Mt
177
- } = s;
178
- let h = dt();
179
- o.isSupported = typeof Tt == "function" && typeof ee == "function" && me && me.createHTMLDocument !== void 0;
180
- const {
181
- MUSTACHE_EXPR: pe,
182
- ERB_EXPR: de,
183
- TMPLIT_EXPR: Te,
184
- DATA_ATTR: Ct,
185
- ARIA_ATTR: wt,
186
- IS_SCRIPT_OR_DATA: xt,
187
- ATTR_WHITESPACE: ve,
188
- CUSTOM_ELEMENT: Pt
189
- } = pt;
190
- let {
191
- IS_ALLOWED_URI: ke
192
- } = pt, m = null;
193
- const Ue = a({}, [...ct, ...be, ...Ie, ...Me, ...ft]);
194
- let d = null;
195
- const Fe = a({}, [...ut, ...Ce, ...mt, ...ce]);
196
- let f = Object.seal(_t(null, {
197
- tagNameCheck: {
198
- writable: !0,
199
- configurable: !1,
200
- enumerable: !0,
201
- value: null
202
- },
203
- attributeNameCheck: {
204
- writable: !0,
205
- configurable: !1,
206
- enumerable: !0,
207
- value: null
208
- },
209
- allowCustomizedBuiltInElements: {
210
- writable: !0,
211
- configurable: !1,
212
- enumerable: !0,
213
- value: !1
214
- }
215
- })), Y = null, _e = null, He = !0, Ee = !0, ze = !1, Ge = !0, P = !1, te = !0, w = !1, ge = !1, he = !1, v = !1, ne = !1, oe = !1, We = !0, Be = !1;
216
- const vt = "user-content-";
217
- let Ae = !0, X = !1, k = {}, U = null;
218
- const Ye = 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"]);
219
- let Xe = null;
220
- const je = a({}, ["audio", "video", "img", "source", "image", "track"]);
221
- let Se = null;
222
- const Ve = a({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ie = "http://www.w3.org/1998/Math/MathML", ae = "http://www.w3.org/2000/svg", b = "http://www.w3.org/1999/xhtml";
223
- let F = b, Re = !1, Oe = null;
224
- const kt = a({}, [ie, ae, b], Ne);
225
- let re = a({}, ["mi", "mo", "mn", "ms", "mtext"]), se = a({}, ["annotation-xml"]);
226
- const Ut = a({}, ["title", "style", "font", "a", "script"]);
227
- let j = null;
228
- const Ft = ["application/xhtml+xml", "text/html"], Ht = "text/html";
229
- let p = null, H = null;
230
- const zt = l.createElement("form"), $e = function(e) {
231
- return e instanceof RegExp || e instanceof Function;
232
- }, ye = function() {
233
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
234
- if (!(H && H === e)) {
235
- if ((!e || typeof e != "object") && (e = {}), e = C(e), j = // eslint-disable-next-line unicorn/prefer-includes
236
- Ft.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Ht : e.PARSER_MEDIA_TYPE, p = j === "application/xhtml+xml" ? Ne : fe, m = L(e, "ALLOWED_TAGS") ? a({}, e.ALLOWED_TAGS, p) : Ue, d = L(e, "ALLOWED_ATTR") ? a({}, e.ALLOWED_ATTR, p) : Fe, Oe = L(e, "ALLOWED_NAMESPACES") ? a({}, e.ALLOWED_NAMESPACES, Ne) : kt, Se = L(e, "ADD_URI_SAFE_ATTR") ? a(C(Ve), e.ADD_URI_SAFE_ATTR, p) : Ve, Xe = L(e, "ADD_DATA_URI_TAGS") ? a(C(je), e.ADD_DATA_URI_TAGS, p) : je, U = L(e, "FORBID_CONTENTS") ? a({}, e.FORBID_CONTENTS, p) : Ye, Y = L(e, "FORBID_TAGS") ? a({}, e.FORBID_TAGS, p) : C({}), _e = L(e, "FORBID_ATTR") ? a({}, e.FORBID_ATTR, p) : C({}), k = L(e, "USE_PROFILES") ? e.USE_PROFILES : !1, He = e.ALLOW_ARIA_ATTR !== !1, Ee = e.ALLOW_DATA_ATTR !== !1, ze = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ge = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, te = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, v = e.RETURN_DOM || !1, ne = e.RETURN_DOM_FRAGMENT || !1, oe = e.RETURN_TRUSTED_TYPE || !1, he = e.FORCE_BODY || !1, We = e.SANITIZE_DOM !== !1, Be = e.SANITIZE_NAMED_PROPS || !1, Ae = e.KEEP_CONTENT !== !1, X = e.IN_PLACE || !1, ke = e.ALLOWED_URI_REGEXP || Et, F = e.NAMESPACE || b, re = e.MATHML_TEXT_INTEGRATION_POINTS || re, se = e.HTML_INTEGRATION_POINTS || se, f = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && $e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (f.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && $e(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 && (Ee = !1), ne && (v = !0), k && (m = a({}, ft), d = [], k.html === !0 && (a(m, ct), a(d, ut)), k.svg === !0 && (a(m, be), a(d, Ce), a(d, ce)), k.svgFilters === !0 && (a(m, Ie), a(d, Ce), a(d, ce)), k.mathMl === !0 && (a(m, Me), a(d, mt), a(d, ce))), e.ADD_TAGS && (m === Ue && (m = C(m)), a(m, e.ADD_TAGS, p)), e.ADD_ATTR && (d === Fe && (d = C(d)), a(d, e.ADD_ATTR, p)), e.ADD_URI_SAFE_ATTR && a(Se, e.ADD_URI_SAFE_ATTR, p), e.FORBID_CONTENTS && (U === Ye && (U = C(U)), a(U, e.FORBID_CONTENTS, p)), Ae && (m["#text"] = !0), w && a(m, ["html", "head", "body"]), m.table && (a(m, ["tbody"]), delete Y.tbody), e.TRUSTED_TYPES_POLICY) {
237
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
238
- throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
239
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
240
- throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
241
- g = e.TRUSTED_TYPES_POLICY, B = g.createHTML("");
242
- } else
243
- g === void 0 && (g = fn(Q, T)), g !== null && typeof B == "string" && (B = g.createHTML(""));
244
- S && S(e), H = e;
245
- }
246
- }, qe = a({}, [...be, ...Ie, ...Jt]), Ke = a({}, [...Me, ...Qt]), Gt = function(e) {
247
- let t = ee(e);
248
- (!t || !t.tagName) && (t = {
249
- namespaceURI: F,
250
- tagName: "template"
251
- });
252
- const n = fe(e.tagName), c = fe(t.tagName);
253
- return Oe[e.namespaceURI] ? e.namespaceURI === ae ? t.namespaceURI === b ? n === "svg" : t.namespaceURI === ie ? n === "svg" && (c === "annotation-xml" || re[c]) : !!qe[n] : e.namespaceURI === ie ? t.namespaceURI === b ? n === "math" : t.namespaceURI === ae ? n === "math" && se[c] : !!Ke[n] : e.namespaceURI === b ? t.namespaceURI === ae && !se[c] || t.namespaceURI === ie && !re[c] ? !1 : !Ke[n] && (Ut[n] || !qe[n]) : !!(j === "application/xhtml+xml" && Oe[e.namespaceURI]) : !1;
254
- }, D = function(e) {
255
- $(o.removed, {
256
- element: e
257
- });
258
- try {
259
- ee(e).removeChild(e);
260
- } catch {
261
- yt(e);
262
- }
263
- }, z = function(e, t) {
264
- try {
265
- $(o.removed, {
266
- attribute: t.getAttributeNode(e),
267
- from: t
268
- });
269
- } catch {
270
- $(o.removed, {
271
- attribute: null,
272
- from: t
273
- });
274
- }
275
- if (t.removeAttribute(e), e === "is")
276
- if (v || ne)
277
- try {
278
- D(t);
279
- } catch {
280
- }
281
- else
282
- try {
283
- t.setAttribute(e, "");
284
- } catch {
285
- }
286
- }, Ze = function(e) {
287
- let t = null, n = null;
288
- if (he)
289
- e = "<remove></remove>" + e;
290
- else {
291
- const u = lt(e, /^[\r\n\t ]+/);
292
- n = u && u[0];
293
- }
294
- j === "application/xhtml+xml" && F === b && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
295
- const c = g ? g.createHTML(e) : e;
296
- if (F === b)
297
- try {
298
- t = new Rt().parseFromString(c, j);
299
- } catch {
300
- }
301
- if (!t || !t.documentElement) {
302
- t = me.createDocument(F, "template", null);
303
- try {
304
- t.documentElement.innerHTML = Re ? B : c;
305
- } catch {
306
- }
307
- }
308
- const _ = t.body || t.documentElement;
309
- return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), F === b ? It.call(t, w ? "html" : "body")[0] : w ? t.documentElement : _;
310
- }, Je = function(e) {
311
- return Nt.call(
312
- e.ownerDocument || e,
313
- e,
314
- // eslint-disable-next-line no-bitwise
315
- G.SHOW_ELEMENT | G.SHOW_COMMENT | G.SHOW_TEXT | G.SHOW_PROCESSING_INSTRUCTION | G.SHOW_CDATA_SECTION,
316
- null
317
- );
318
- }, Le = function(e) {
319
- return e instanceof St && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof At) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
320
- }, Qe = function(e) {
321
- return typeof ue == "function" && e instanceof ue;
322
- };
323
- function I(i, e, t) {
324
- le(i, (n) => {
325
- n.call(o, e, t, H);
326
- });
327
- }
328
- const et = function(e) {
329
- let t = null;
330
- if (I(h.beforeSanitizeElements, e, null), Le(e))
331
- return D(e), !0;
332
- const n = p(e.nodeName);
333
- if (I(h.uponSanitizeElement, e, {
334
- tagName: n,
335
- allowedTags: m
336
- }), te && e.hasChildNodes() && !Qe(e.firstElementChild) && A(/<[/\w!]/g, e.innerHTML) && A(/<[/\w!]/g, e.textContent) || e.nodeType === J.progressingInstruction || te && e.nodeType === J.comment && A(/<[/\w]/g, e.data))
337
- return D(e), !0;
338
- if (!m[n] || Y[n]) {
339
- if (!Y[n] && nt(n) && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
340
- return !1;
341
- if (Ae && !U[n]) {
342
- const c = ee(e) || e.parentNode, _ = Dt(e) || e.childNodes;
343
- if (_ && c) {
344
- const u = _.length;
345
- for (let O = u - 1; O >= 0; --O) {
346
- const M = Ot(_[O], !0);
347
- M.__removalCount = (e.__removalCount || 0) + 1, c.insertBefore(M, Lt(e));
348
- }
349
- }
350
- }
351
- return D(e), !0;
352
- }
353
- return e instanceof Pe && !Gt(e) || (n === "noscript" || n === "noembed" || n === "noframes") && A(/<\/no(script|embed|frames)/i, e.innerHTML) ? (D(e), !0) : (P && e.nodeType === J.text && (t = e.textContent, le([pe, de, Te], (c) => {
354
- t = q(t, c, " ");
355
- }), e.textContent !== t && ($(o.removed, {
356
- element: e.cloneNode()
357
- }), e.textContent = t)), I(h.afterSanitizeElements, e, null), !1);
358
- }, tt = function(e, t, n) {
359
- if (We && (t === "id" || t === "name") && (n in l || n in zt))
360
- return !1;
361
- if (!(Ee && !_e[t] && A(Ct, t))) {
362
- if (!(He && A(wt, t))) {
363
- if (!d[t] || _e[t]) {
364
- if (
365
- // First condition does a very basic check if a) it's basically a valid custom element tagname AND
366
- // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
367
- // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
368
- !(nt(e) && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, e) || f.tagNameCheck instanceof Function && f.tagNameCheck(e)) && (f.attributeNameCheck instanceof RegExp && A(f.attributeNameCheck, t) || f.attributeNameCheck instanceof Function && f.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
369
- // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
370
- t === "is" && f.allowCustomizedBuiltInElements && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
371
- ) return !1;
372
- } else if (!Se[t]) {
373
- if (!A(ke, q(n, ve, ""))) {
374
- if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && $t(n, "data:") === 0 && Xe[e])) {
375
- if (!(ze && !A(xt, q(n, ve, "")))) {
376
- if (n)
377
- return !1;
378
- }
379
- }
380
- }
381
- }
382
- }
383
- }
384
- return !0;
385
- }, nt = function(e) {
386
- return e !== "annotation-xml" && lt(e, Pt);
387
- }, ot = function(e) {
388
- I(h.beforeSanitizeAttributes, e, null);
389
- const {
390
- attributes: t
391
- } = e;
392
- if (!t || Le(e))
393
- return;
394
- const n = {
395
- attrName: "",
396
- attrValue: "",
397
- keepAttr: !0,
398
- allowedAttributes: d,
399
- forceKeepAttr: void 0
400
- };
401
- let c = t.length;
402
- for (; c--; ) {
403
- const _ = t[c], {
404
- name: u,
405
- namespaceURI: O,
406
- value: M
407
- } = _, V = p(u), De = M;
408
- let E = u === "value" ? De : qt(De);
409
- if (n.attrName = V, n.attrValue = E, n.keepAttr = !0, n.forceKeepAttr = void 0, I(h.uponSanitizeAttribute, e, n), E = n.attrValue, Be && (V === "id" || V === "name") && (z(u, e), E = vt + E), te && A(/((--!?|])>)|<\/(style|title)/i, E)) {
410
- z(u, e);
411
- continue;
412
- }
413
- if (n.forceKeepAttr)
414
- continue;
415
- if (!n.keepAttr) {
416
- z(u, e);
417
- continue;
418
- }
419
- if (!Ge && A(/\/>/i, E)) {
420
- z(u, e);
421
- continue;
422
- }
423
- P && le([pe, de, Te], (at) => {
424
- E = q(E, at, " ");
425
- });
426
- const it = p(e.nodeName);
427
- if (!tt(it, V, E)) {
428
- z(u, e);
429
- continue;
430
- }
431
- if (g && typeof Q == "object" && typeof Q.getAttributeType == "function" && !O)
432
- switch (Q.getAttributeType(it, V)) {
433
- case "TrustedHTML": {
434
- E = g.createHTML(E);
435
- break;
436
- }
437
- case "TrustedScriptURL": {
438
- E = g.createScriptURL(E);
439
- break;
440
- }
441
- }
442
- if (E !== De)
443
- try {
444
- O ? e.setAttributeNS(O, u, E) : e.setAttribute(u, E), Le(e) ? D(e) : st(o.removed);
445
- } catch {
446
- z(u, e);
447
- }
448
- }
449
- I(h.afterSanitizeAttributes, e, null);
450
- }, Wt = function i(e) {
451
- let t = null;
452
- const n = Je(e);
453
- for (I(h.beforeSanitizeShadowDOM, e, null); t = n.nextNode(); )
454
- I(h.uponSanitizeShadowNode, t, null), et(t), ot(t), t.content instanceof N && i(t.content);
455
- I(h.afterSanitizeShadowDOM, e, null);
456
- };
457
- return o.sanitize = function(i) {
458
- let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, c = null, _ = null;
459
- if (Re = !i, Re && (i = "<!-->"), typeof i != "string" && !Qe(i))
460
- if (typeof i.toString == "function") {
461
- if (i = i.toString(), typeof i != "string")
462
- throw K("dirty is not a string, aborting");
463
- } else
464
- throw K("toString is not a function");
465
- if (!o.isSupported)
466
- return i;
467
- if (ge || ye(e), o.removed = [], typeof i == "string" && (X = !1), X) {
468
- if (i.nodeName) {
469
- const M = p(i.nodeName);
470
- if (!m[M] || Y[M])
471
- throw K("root node is forbidden and cannot be sanitized in-place");
472
- }
473
- } else if (i instanceof ue)
474
- t = Ze("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === J.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
475
- else {
476
- if (!v && !P && !w && // eslint-disable-next-line unicorn/prefer-includes
477
- i.indexOf("<") === -1)
478
- return g && oe ? g.createHTML(i) : i;
479
- if (t = Ze(i), !t)
480
- return v ? null : oe ? B : "";
481
- }
482
- t && he && D(t.firstChild);
483
- const u = Je(X ? i : t);
484
- for (; c = u.nextNode(); )
485
- et(c), ot(c), c.content instanceof N && Wt(c.content);
486
- if (X)
487
- return i;
488
- if (v) {
489
- if (ne)
490
- for (_ = bt.call(t.ownerDocument); t.firstChild; )
491
- _.appendChild(t.firstChild);
492
- else
493
- _ = t;
494
- return (d.shadowroot || d.shadowrootmode) && (_ = Mt.call(s, _, !0)), _;
495
- }
496
- let O = w ? t.outerHTML : t.innerHTML;
497
- return w && m["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(gt, t.ownerDocument.doctype.name) && (O = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
498
- ` + O), P && le([pe, de, Te], (M) => {
499
- O = q(O, M, " ");
500
- }), g && oe ? g.createHTML(O) : O;
501
- }, o.setConfig = function() {
502
- let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
503
- ye(i), ge = !0;
504
- }, o.clearConfig = function() {
505
- H = null, ge = !1;
506
- }, o.isValidAttribute = function(i, e, t) {
507
- H || ye({});
508
- const n = p(i), c = p(e);
509
- return tt(n, c, t);
510
- }, o.addHook = function(i, e) {
511
- typeof e == "function" && $(h[i], e);
512
- }, o.removeHook = function(i, e) {
513
- if (e !== void 0) {
514
- const t = jt(h[i], e);
515
- return t === -1 ? void 0 : Vt(h[i], t, 1)[0];
516
- }
517
- return st(h[i]);
518
- }, o.removeHooks = function(i) {
519
- h[i] = [];
520
- }, o.removeAllHooks = function() {
521
- h = dt();
522
- }, o;
523
- }
524
- var un = ht();
525
- export {
526
- un as default
527
- };
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const{entries:Tt,setPrototypeOf:rt,isFrozen:Bt,getPrototypeOf:Yt,getOwnPropertyDescriptor:Xt}=Object;let{freeze:S,seal:y,create:_t}=Object,{apply:we,construct:xe}=typeof Reflect<"u"&&Reflect;S||(S=function(o){return o});y||(y=function(o){return o});we||(we=function(o,l,s){return o.apply(l,s)});xe||(xe=function(o,l){return new o(...l)});const le=R(Array.prototype.forEach),jt=R(Array.prototype.lastIndexOf),st=R(Array.prototype.pop),$=R(Array.prototype.push),Vt=R(Array.prototype.splice),fe=R(String.prototype.toLowerCase),De=R(String.prototype.toString),lt=R(String.prototype.match),q=R(String.prototype.replace),$t=R(String.prototype.indexOf),qt=R(String.prototype.trim),L=R(Object.prototype.hasOwnProperty),A=R(RegExp.prototype.test),K=Kt(TypeError);function R(r){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var l=arguments.length,s=new Array(l>1?l-1:0),T=1;T<l;T++)s[T-1]=arguments[T];return we(r,o,s)}}function Kt(r){return function(){for(var o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return xe(r,l)}}function a(r,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fe;rt&&rt(r,null);let s=o.length;for(;s--;){let T=o[s];if(typeof T=="string"){const D=l(T);D!==T&&(Bt(o)||(o[s]=D),T=D)}r[T]=!0}return r}function Zt(r){for(let o=0;o<r.length;o++)L(r,o)||(r[o]=null);return r}function C(r){const o=_t(null);for(const[l,s]of Tt(r))L(r,l)&&(Array.isArray(s)?o[l]=Zt(s):s&&typeof s=="object"&&s.constructor===Object?o[l]=C(s):o[l]=s);return o}function Z(r,o){for(;r!==null;){const s=Xt(r,o);if(s){if(s.get)return R(s.get);if(typeof s.value=="function")return R(s.value)}r=Yt(r)}function l(){return null}return l}const ct=S(["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"]),Ne=S(["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"]),Ie=S(["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"]),Jt=S(["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"]),Me=S(["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"]),Qt=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ft=S(["#text"]),ut=S(["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"]),Ce=S(["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"]),mt=S(["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"]),ce=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),en=y(/\{\{[\w\W]*|[\w\W]*\}\}/gm),tn=y(/<%[\w\W]*|[\w\W]*%>/gm),nn=y(/\$\{[\w\W]*/gm),on=y(/^data-[\-\w.\u00B7-\uFFFF]+$/),an=y(/^aria-[\-\w]+$/),Et=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rn=y(/^(?:\w+script|data):/i),sn=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gt=y(/^html$/i),ln=y(/^[a-z][.\w]*(-[.\w]+)+$/i);var pt=Object.freeze({__proto__:null,ARIA_ATTR:an,ATTR_WHITESPACE:sn,CUSTOM_ELEMENT:ln,DATA_ATTR:on,DOCTYPE_NAME:gt,ERB_EXPR:tn,IS_ALLOWED_URI:Et,IS_SCRIPT_OR_DATA:rn,MUSTACHE_EXPR:en,TMPLIT_EXPR:nn});const J={element:1,text:3,progressingInstruction:7,comment:8,document:9},cn=function(){return typeof window>"u"?null:window},fn=function(o,l){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let s=null;const T="data-tt-policy-suffix";l&&l.hasAttribute(T)&&(s=l.getAttribute(T));const D="dompurify"+(s?"#"+s:"");try{return o.createPolicy(D,{createHTML(x){return x},createScriptURL(x){return x}})}catch{return console.warn("TrustedTypes policy "+D+" could not be created."),null}},dt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ht(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cn();const o=i=>ht(i);if(o.version="3.2.6",o.removed=[],!r||!r.document||r.document.nodeType!==J.document||!r.Element)return o.isSupported=!1,o;let{document:l}=r;const s=l,T=s.currentScript,{DocumentFragment:D,HTMLTemplateElement:x,Node:ue,Element:Pe,NodeFilter:G,NamedNodeMap:At=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:St,DOMParser:Rt,trustedTypes:Q}=r,W=Pe.prototype,Ot=Z(W,"cloneNode"),yt=Z(W,"remove"),Lt=Z(W,"nextSibling"),bt=Z(W,"childNodes"),ee=Z(W,"parentNode");if(typeof x=="function"){const i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let g,B="";const{implementation:me,createNodeIterator:Dt,createDocumentFragment:Nt,getElementsByTagName:It}=l,{importNode:Mt}=s;let h=dt();o.isSupported=typeof Tt=="function"&&typeof ee=="function"&&me&&me.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:pe,ERB_EXPR:de,TMPLIT_EXPR:Te,DATA_ATTR:Ct,ARIA_ATTR:wt,IS_SCRIPT_OR_DATA:xt,ATTR_WHITESPACE:ve,CUSTOM_ELEMENT:Pt}=pt;let{IS_ALLOWED_URI:ke}=pt,m=null;const Ue=a({},[...ct,...Ne,...Ie,...Me,...ft]);let d=null;const Fe=a({},[...ut,...Ce,...mt,...ce]);let f=Object.seal(_t(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,_e=null,He=!0,Ee=!0,ze=!1,Ge=!0,P=!1,te=!0,w=!1,ge=!1,he=!1,v=!1,ne=!1,oe=!1,We=!0,Be=!1;const vt="user-content-";let Ae=!0,X=!1,k={},U=null;const Ye=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"]);let Xe=null;const je=a({},["audio","video","img","source","image","track"]);let Se=null;const Ve=a({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ie="http://www.w3.org/1998/Math/MathML",ae="http://www.w3.org/2000/svg",N="http://www.w3.org/1999/xhtml";let F=N,Re=!1,Oe=null;const kt=a({},[ie,ae,N],De);let re=a({},["mi","mo","mn","ms","mtext"]),se=a({},["annotation-xml"]);const Ut=a({},["title","style","font","a","script"]);let j=null;const Ft=["application/xhtml+xml","text/html"],Ht="text/html";let p=null,H=null;const zt=l.createElement("form"),$e=function(e){return e instanceof RegExp||e instanceof Function},ye=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(H&&H===e)){if((!e||typeof e!="object")&&(e={}),e=C(e),j=Ft.indexOf(e.PARSER_MEDIA_TYPE)===-1?Ht:e.PARSER_MEDIA_TYPE,p=j==="application/xhtml+xml"?De:fe,m=L(e,"ALLOWED_TAGS")?a({},e.ALLOWED_TAGS,p):Ue,d=L(e,"ALLOWED_ATTR")?a({},e.ALLOWED_ATTR,p):Fe,Oe=L(e,"ALLOWED_NAMESPACES")?a({},e.ALLOWED_NAMESPACES,De):kt,Se=L(e,"ADD_URI_SAFE_ATTR")?a(C(Ve),e.ADD_URI_SAFE_ATTR,p):Ve,Xe=L(e,"ADD_DATA_URI_TAGS")?a(C(je),e.ADD_DATA_URI_TAGS,p):je,U=L(e,"FORBID_CONTENTS")?a({},e.FORBID_CONTENTS,p):Ye,Y=L(e,"FORBID_TAGS")?a({},e.FORBID_TAGS,p):C({}),_e=L(e,"FORBID_ATTR")?a({},e.FORBID_ATTR,p):C({}),k=L(e,"USE_PROFILES")?e.USE_PROFILES:!1,He=e.ALLOW_ARIA_ATTR!==!1,Ee=e.ALLOW_DATA_ATTR!==!1,ze=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ge=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,P=e.SAFE_FOR_TEMPLATES||!1,te=e.SAFE_FOR_XML!==!1,w=e.WHOLE_DOCUMENT||!1,v=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,oe=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,We=e.SANITIZE_DOM!==!1,Be=e.SANITIZE_NAMED_PROPS||!1,Ae=e.KEEP_CONTENT!==!1,X=e.IN_PLACE||!1,ke=e.ALLOWED_URI_REGEXP||Et,F=e.NAMESPACE||N,re=e.MATHML_TEXT_INTEGRATION_POINTS||re,se=e.HTML_INTEGRATION_POINTS||se,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&$e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&$e(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&&(Ee=!1),ne&&(v=!0),k&&(m=a({},ft),d=[],k.html===!0&&(a(m,ct),a(d,ut)),k.svg===!0&&(a(m,Ne),a(d,Ce),a(d,ce)),k.svgFilters===!0&&(a(m,Ie),a(d,Ce),a(d,ce)),k.mathMl===!0&&(a(m,Me),a(d,mt),a(d,ce))),e.ADD_TAGS&&(m===Ue&&(m=C(m)),a(m,e.ADD_TAGS,p)),e.ADD_ATTR&&(d===Fe&&(d=C(d)),a(d,e.ADD_ATTR,p)),e.ADD_URI_SAFE_ATTR&&a(Se,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(U===Ye&&(U=C(U)),a(U,e.FORBID_CONTENTS,p)),Ae&&(m["#text"]=!0),w&&a(m,["html","head","body"]),m.table&&(a(m,["tbody"]),delete Y.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=e.TRUSTED_TYPES_POLICY,B=g.createHTML("")}else g===void 0&&(g=fn(Q,T)),g!==null&&typeof B=="string"&&(B=g.createHTML(""));S&&S(e),H=e}},qe=a({},[...Ne,...Ie,...Jt]),Ke=a({},[...Me,...Qt]),Gt=function(e){let t=ee(e);(!t||!t.tagName)&&(t={namespaceURI:F,tagName:"template"});const n=fe(e.tagName),c=fe(t.tagName);return Oe[e.namespaceURI]?e.namespaceURI===ae?t.namespaceURI===N?n==="svg":t.namespaceURI===ie?n==="svg"&&(c==="annotation-xml"||re[c]):!!qe[n]:e.namespaceURI===ie?t.namespaceURI===N?n==="math":t.namespaceURI===ae?n==="math"&&se[c]:!!Ke[n]:e.namespaceURI===N?t.namespaceURI===ae&&!se[c]||t.namespaceURI===ie&&!re[c]?!1:!Ke[n]&&(Ut[n]||!qe[n]):!!(j==="application/xhtml+xml"&&Oe[e.namespaceURI]):!1},b=function(e){$(o.removed,{element:e});try{ee(e).removeChild(e)}catch{yt(e)}},z=function(e,t){try{$(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{$(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(v||ne)try{b(t)}catch{}else try{t.setAttribute(e,"")}catch{}},Ze=function(e){let t=null,n=null;if(he)e="<remove></remove>"+e;else{const u=lt(e,/^[\r\n\t ]+/);n=u&&u[0]}j==="application/xhtml+xml"&&F===N&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const c=g?g.createHTML(e):e;if(F===N)try{t=new Rt().parseFromString(c,j)}catch{}if(!t||!t.documentElement){t=me.createDocument(F,"template",null);try{t.documentElement.innerHTML=Re?B:c}catch{}}const _=t.body||t.documentElement;return e&&n&&_.insertBefore(l.createTextNode(n),_.childNodes[0]||null),F===N?It.call(t,w?"html":"body")[0]:w?t.documentElement:_},Je=function(e){return Dt.call(e.ownerDocument||e,e,G.SHOW_ELEMENT|G.SHOW_COMMENT|G.SHOW_TEXT|G.SHOW_PROCESSING_INSTRUCTION|G.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof St&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof At)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},Qe=function(e){return typeof ue=="function"&&e instanceof ue};function I(i,e,t){le(i,n=>{n.call(o,e,t,H)})}const et=function(e){let t=null;if(I(h.beforeSanitizeElements,e,null),Le(e))return b(e),!0;const n=p(e.nodeName);if(I(h.uponSanitizeElement,e,{tagName:n,allowedTags:m}),te&&e.hasChildNodes()&&!Qe(e.firstElementChild)&&A(/<[/\w!]/g,e.innerHTML)&&A(/<[/\w!]/g,e.textContent)||e.nodeType===J.progressingInstruction||te&&e.nodeType===J.comment&&A(/<[/\w]/g,e.data))return b(e),!0;if(!m[n]||Y[n]){if(!Y[n]&&nt(n)&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,n)||f.tagNameCheck instanceof Function&&f.tagNameCheck(n)))return!1;if(Ae&&!U[n]){const c=ee(e)||e.parentNode,_=bt(e)||e.childNodes;if(_&&c){const u=_.length;for(let O=u-1;O>=0;--O){const M=Ot(_[O],!0);M.__removalCount=(e.__removalCount||0)+1,c.insertBefore(M,Lt(e))}}}return b(e),!0}return e instanceof Pe&&!Gt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&A(/<\/no(script|embed|frames)/i,e.innerHTML)?(b(e),!0):(P&&e.nodeType===J.text&&(t=e.textContent,le([pe,de,Te],c=>{t=q(t,c," ")}),e.textContent!==t&&($(o.removed,{element:e.cloneNode()}),e.textContent=t)),I(h.afterSanitizeElements,e,null),!1)},tt=function(e,t,n){if(We&&(t==="id"||t==="name")&&(n in l||n in zt))return!1;if(!(Ee&&!_e[t]&&A(Ct,t))){if(!(He&&A(wt,t))){if(!d[t]||_e[t]){if(!(nt(e)&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&A(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||t==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,n)||f.tagNameCheck instanceof Function&&f.tagNameCheck(n))))return!1}else if(!Se[t]){if(!A(ke,q(n,ve,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&$t(n,"data:")===0&&Xe[e])){if(!(ze&&!A(xt,q(n,ve,"")))){if(n)return!1}}}}}}return!0},nt=function(e){return e!=="annotation-xml"&&lt(e,Pt)},ot=function(e){I(h.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Le(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let c=t.length;for(;c--;){const _=t[c],{name:u,namespaceURI:O,value:M}=_,V=p(u),be=M;let E=u==="value"?be:qt(be);if(n.attrName=V,n.attrValue=E,n.keepAttr=!0,n.forceKeepAttr=void 0,I(h.uponSanitizeAttribute,e,n),E=n.attrValue,Be&&(V==="id"||V==="name")&&(z(u,e),E=vt+E),te&&A(/((--!?|])>)|<\/(style|title)/i,E)){z(u,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){z(u,e);continue}if(!Ge&&A(/\/>/i,E)){z(u,e);continue}P&&le([pe,de,Te],at=>{E=q(E,at," ")});const it=p(e.nodeName);if(!tt(it,V,E)){z(u,e);continue}if(g&&typeof Q=="object"&&typeof Q.getAttributeType=="function"&&!O)switch(Q.getAttributeType(it,V)){case"TrustedHTML":{E=g.createHTML(E);break}case"TrustedScriptURL":{E=g.createScriptURL(E);break}}if(E!==be)try{O?e.setAttributeNS(O,u,E):e.setAttribute(u,E),Le(e)?b(e):st(o.removed)}catch{z(u,e)}}I(h.afterSanitizeAttributes,e,null)},Wt=function i(e){let t=null;const n=Je(e);for(I(h.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)I(h.uponSanitizeShadowNode,t,null),et(t),ot(t),t.content instanceof D&&i(t.content);I(h.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,c=null,_=null;if(Re=!i,Re&&(i="<!-->"),typeof i!="string"&&!Qe(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw K("dirty is not a string, aborting")}else throw K("toString is not a function");if(!o.isSupported)return i;if(ge||ye(e),o.removed=[],typeof i=="string"&&(X=!1),X){if(i.nodeName){const M=p(i.nodeName);if(!m[M]||Y[M])throw K("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof ue)t=Ze("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===J.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!v&&!P&&!w&&i.indexOf("<")===-1)return g&&oe?g.createHTML(i):i;if(t=Ze(i),!t)return v?null:oe?B:""}t&&he&&b(t.firstChild);const u=Je(X?i:t);for(;c=u.nextNode();)et(c),ot(c),c.content instanceof D&&Wt(c.content);if(X)return i;if(v){if(ne)for(_=Nt.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(d.shadowroot||d.shadowrootmode)&&(_=Mt.call(s,_,!0)),_}let O=w?t.outerHTML:t.innerHTML;return w&&m["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&A(gt,t.ownerDocument.doctype.name)&&(O="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
2
- `+O),P&&le([pe,de,Te],M=>{O=q(O,M," ")}),g&&oe?g.createHTML(O):O},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ye(i),ge=!0},o.clearConfig=function(){H=null,ge=!1},o.isValidAttribute=function(i,e,t){H||ye({});const n=p(i),c=p(e);return tt(n,c,t)},o.addHook=function(i,e){typeof e=="function"&&$(h[i],e)},o.removeHook=function(i,e){if(e!==void 0){const t=jt(h[i],e);return t===-1?void 0:Vt(h[i],t,1)[0]}return st(h[i])},o.removeHooks=function(i){h[i]=[]},o.removeAllHooks=function(){h=dt()},o}var un=ht();exports.default=un;