@idmui/spot 1.2.3 → 1.5.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.
@@ -1,4 +1,4 @@
1
- /*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
1
+ /*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
2
2
  const {
3
3
  entries: _t,
4
4
  setPrototypeOf: ct,
@@ -8,42 +8,42 @@ const {
8
8
  } = Object;
9
9
  let {
10
10
  freeze: S,
11
- seal: L,
12
- create: Pe
11
+ seal: y,
12
+ create: ve
13
13
  } = Object, {
14
- apply: ve,
15
- construct: ke
14
+ apply: ke,
15
+ construct: Ue
16
16
  } = typeof Reflect < "u" && Reflect;
17
17
  S || (S = function(o) {
18
18
  return o;
19
19
  });
20
- L || (L = function(o) {
20
+ y || (y = function(o) {
21
21
  return o;
22
22
  });
23
- ve || (ve = function(o, l) {
23
+ ke || (ke = function(o, l) {
24
24
  for (var a = arguments.length, c = new Array(a > 2 ? a - 2 : 0), O = 2; O < a; O++)
25
25
  c[O - 2] = arguments[O];
26
26
  return o.apply(l, c);
27
27
  });
28
- ke || (ke = function(o) {
28
+ Ue || (Ue = function(o) {
29
29
  for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++)
30
30
  a[c - 1] = arguments[c];
31
31
  return new o(...a);
32
32
  });
33
- const ce = R(Array.prototype.forEach), Vt = R(Array.prototype.lastIndexOf), ft = R(Array.prototype.pop), q = R(Array.prototype.push), $t = R(Array.prototype.splice), ue = R(String.prototype.toLowerCase), Ne = R(String.prototype.toString), Ie = R(String.prototype.match), K = R(String.prototype.replace), qt = R(String.prototype.indexOf), Kt = R(String.prototype.trim), b = R(Object.prototype.hasOwnProperty), A = R(RegExp.prototype.test), Z = Zt(TypeError);
33
+ const ce = R(Array.prototype.forEach), Vt = R(Array.prototype.lastIndexOf), ft = R(Array.prototype.pop), q = R(Array.prototype.push), $t = R(Array.prototype.splice), ue = R(String.prototype.toLowerCase), Ie = R(String.prototype.toString), Ce = R(String.prototype.match), K = R(String.prototype.replace), qt = R(String.prototype.indexOf), Kt = R(String.prototype.trim), L = R(Object.prototype.hasOwnProperty), h = R(RegExp.prototype.test), Z = Zt(TypeError);
34
34
  function R(s) {
35
35
  return function(o) {
36
36
  o instanceof RegExp && (o.lastIndex = 0);
37
37
  for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++)
38
38
  a[c - 1] = arguments[c];
39
- return ve(s, o, a);
39
+ return ke(s, o, a);
40
40
  };
41
41
  }
42
42
  function Zt(s) {
43
43
  return function() {
44
44
  for (var o = arguments.length, l = new Array(o), a = 0; a < o; a++)
45
45
  l[a] = arguments[a];
46
- return ke(s, l);
46
+ return Ue(s, l);
47
47
  };
48
48
  }
49
49
  function r(s, o) {
@@ -62,13 +62,13 @@ function r(s, o) {
62
62
  }
63
63
  function Jt(s) {
64
64
  for (let o = 0; o < s.length; o++)
65
- b(s, o) || (s[o] = null);
65
+ L(s, o) || (s[o] = null);
66
66
  return s;
67
67
  }
68
- function M(s) {
69
- const o = Pe(null);
68
+ function I(s) {
69
+ const o = ve(null);
70
70
  for (const [l, a] of _t(s))
71
- b(s, l) && (Array.isArray(a) ? o[l] = Jt(a) : a && typeof a == "object" && a.constructor === Object ? o[l] = M(a) : o[l] = a);
71
+ L(s, l) && (Array.isArray(a) ? o[l] = Jt(a) : a && typeof a == "object" && a.constructor === Object ? o[l] = I(a) : o[l] = a);
72
72
  return o;
73
73
  }
74
74
  function J(s, o) {
@@ -87,20 +87,20 @@ function J(s, o) {
87
87
  }
88
88
  return l;
89
89
  }
90
- const ut = 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", "search", "section", "select", "shadow", "slot", "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"]), Ce = S(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Me = 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"]), Qt = 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"]), we = 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"]), en = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mt = S(["#text"]), pt = 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", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), xe = 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", "mask-type", "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"]), dt = 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"]), fe = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), tn = L(/\{\{[\w\W]*|[\w\W]*\}\}/gm), nn = L(/<%[\w\W]*|[\w\W]*%>/gm), on = L(/\$\{[\w\W]*/gm), an = L(/^data-[\-\w.\u00B7-\uFFFF]+$/), rn = L(/^aria-[\-\w]+$/), gt = L(
90
+ const ut = 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", "search", "section", "select", "shadow", "slot", "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"]), Me = S(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), we = 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"]), Qt = 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"]), xe = 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"]), en = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mt = S(["#text"]), pt = 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", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Pe = 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", "mask-type", "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"]), dt = 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"]), fe = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), tn = y(/\{\{[\w\W]*|[\w\W]*\}\}/gm), nn = y(/<%[\w\W]*|[\w\W]*%>/gm), on = y(/\$\{[\w\W]*/gm), an = y(/^data-[\-\w.\u00B7-\uFFFF]+$/), rn = y(/^aria-[\-\w]+$/), gt = y(
91
91
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
92
92
  // eslint-disable-line no-useless-escape
93
- ), sn = L(/^(?:\w+script|data):/i), ln = L(
93
+ ), sn = y(/^(?:\w+script|data):/i), ln = y(
94
94
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
95
95
  // eslint-disable-line no-control-regex
96
- ), ht = L(/^html$/i), cn = L(/^[a-z][.\w]*(-[.\w]+)+$/i);
96
+ ), At = y(/^html$/i), cn = y(/^[a-z][.\w]*(-[.\w]+)+$/i);
97
97
  var Tt = /* @__PURE__ */ Object.freeze({
98
98
  __proto__: null,
99
99
  ARIA_ATTR: rn,
100
100
  ATTR_WHITESPACE: ln,
101
101
  CUSTOM_ELEMENT: cn,
102
102
  DATA_ATTR: an,
103
- DOCTYPE_NAME: ht,
103
+ DOCTYPE_NAME: At,
104
104
  ERB_EXPR: nn,
105
105
  IS_ALLOWED_URI: gt,
106
106
  IS_SCRIPT_OR_DATA: sn,
@@ -134,11 +134,11 @@ const Q = {
134
134
  const O = "dompurify" + (a ? "#" + a : "");
135
135
  try {
136
136
  return o.createPolicy(O, {
137
- createHTML(P) {
138
- return P;
137
+ createHTML(v) {
138
+ return v;
139
139
  },
140
- createScriptURL(P) {
141
- return P;
140
+ createScriptURL(v) {
141
+ return v;
142
142
  }
143
143
  });
144
144
  } catch {
@@ -157,26 +157,26 @@ const Q = {
157
157
  uponSanitizeShadowNode: []
158
158
  };
159
159
  };
160
- function At() {
160
+ function ht() {
161
161
  let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : fn();
162
- const o = (i) => At(i);
163
- if (o.version = "3.3.0", o.removed = [], !s || !s.document || s.document.nodeType !== Q.document || !s.Element)
162
+ const o = (i) => ht(i);
163
+ if (o.version = "3.3.1", o.removed = [], !s || !s.document || s.document.nodeType !== Q.document || !s.Element)
164
164
  return o.isSupported = !1, o;
165
165
  let {
166
166
  document: l
167
167
  } = s;
168
168
  const a = l, c = a.currentScript, {
169
169
  DocumentFragment: O,
170
- HTMLTemplateElement: P,
170
+ HTMLTemplateElement: v,
171
171
  Node: me,
172
- Element: Ue,
172
+ Element: Fe,
173
173
  NodeFilter: B,
174
174
  NamedNodeMap: St = s.NamedNodeMap || s.MozNamedAttrMap,
175
175
  HTMLFormElement: Rt,
176
176
  DOMParser: Ot,
177
177
  trustedTypes: ee
178
- } = s, Y = Ue.prototype, yt = J(Y, "cloneNode"), Lt = J(Y, "remove"), bt = J(Y, "nextSibling"), Dt = J(Y, "childNodes"), te = J(Y, "parentNode");
179
- if (typeof P == "function") {
178
+ } = s, Y = Fe.prototype, Dt = J(Y, "cloneNode"), yt = J(Y, "remove"), Lt = J(Y, "nextSibling"), bt = J(Y, "childNodes"), te = J(Y, "parentNode");
179
+ if (typeof v == "function") {
180
180
  const i = l.createElement("template");
181
181
  i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
182
182
  }
@@ -189,7 +189,7 @@ function At() {
189
189
  } = l, {
190
190
  importNode: Mt
191
191
  } = a;
192
- let h = Et();
192
+ let A = Et();
193
193
  o.isSupported = typeof _t == "function" && typeof te == "function" && pe && pe.createHTMLDocument !== void 0;
194
194
  const {
195
195
  MUSTACHE_EXPR: de,
@@ -198,16 +198,16 @@ function At() {
198
198
  DATA_ATTR: wt,
199
199
  ARIA_ATTR: xt,
200
200
  IS_SCRIPT_OR_DATA: Pt,
201
- ATTR_WHITESPACE: Fe,
201
+ ATTR_WHITESPACE: He,
202
202
  CUSTOM_ELEMENT: vt
203
203
  } = Tt;
204
204
  let {
205
- IS_ALLOWED_URI: He
206
- } = Tt, p = null;
207
- const ze = r({}, [...ut, ...Ce, ...Me, ...we, ...mt]);
205
+ IS_ALLOWED_URI: ze
206
+ } = Tt, d = null;
207
+ const Ge = r({}, [...ut, ...Me, ...we, ...xe, ...mt]);
208
208
  let T = null;
209
- const Ge = r({}, [...pt, ...xe, ...dt, ...fe]);
210
- let u = Object.seal(Pe(null, {
209
+ const We = r({}, [...pt, ...Pe, ...dt, ...fe]);
210
+ let u = Object.seal(ve(null, {
211
211
  tagNameCheck: {
212
212
  writable: !0,
213
213
  configurable: !1,
@@ -227,7 +227,7 @@ function At() {
227
227
  value: !1
228
228
  }
229
229
  })), j = null, _e = null;
230
- const v = Object.seal(Pe(null, {
230
+ const k = Object.seal(ve(null, {
231
231
  tagCheck: {
232
232
  writable: !0,
233
233
  configurable: !1,
@@ -241,28 +241,28 @@ function At() {
241
241
  value: null
242
242
  }
243
243
  }));
244
- let We = !0, ge = !0, Be = !1, Ye = !0, k = !1, ne = !0, w = !1, he = !1, Ae = !1, U = !1, oe = !1, ie = !1, Xe = !0, je = !1;
244
+ let Be = !0, ge = !0, Ye = !1, Xe = !0, U = !1, ne = !0, x = !1, Ae = !1, he = !1, F = !1, oe = !1, ie = !1, je = !0, Ve = !1;
245
245
  const kt = "user-content-";
246
- let Se = !0, V = !1, F = {}, H = null;
247
- const Ve = r({}, ["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"]);
246
+ let Se = !0, V = !1, H = {}, b = null;
247
+ const Re = r({}, ["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"]);
248
248
  let $e = null;
249
249
  const qe = r({}, ["audio", "video", "img", "source", "image", "track"]);
250
- let Re = null;
251
- const Ke = r({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ae = "http://www.w3.org/1998/Math/MathML", re = "http://www.w3.org/2000/svg", N = "http://www.w3.org/1999/xhtml";
252
- let z = N, Oe = !1, ye = null;
253
- const Ut = r({}, [ae, re, N], Ne);
250
+ let Oe = null;
251
+ const Ke = r({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ae = "http://www.w3.org/1998/Math/MathML", re = "http://www.w3.org/2000/svg", C = "http://www.w3.org/1999/xhtml";
252
+ let z = C, De = !1, ye = null;
253
+ const Ut = r({}, [ae, re, C], Ie);
254
254
  let se = r({}, ["mi", "mo", "mn", "ms", "mtext"]), le = r({}, ["annotation-xml"]);
255
255
  const Ft = r({}, ["title", "style", "font", "a", "script"]);
256
256
  let $ = null;
257
257
  const Ht = ["application/xhtml+xml", "text/html"], zt = "text/html";
258
- let d = null, G = null;
258
+ let p = null, G = null;
259
259
  const Gt = l.createElement("form"), Ze = function(e) {
260
260
  return e instanceof RegExp || e instanceof Function;
261
261
  }, Le = function() {
262
262
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
263
263
  if (!(G && G === e)) {
264
- if ((!e || typeof e != "object") && (e = {}), e = M(e), $ = // eslint-disable-next-line unicorn/prefer-includes
265
- Ht.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? zt : e.PARSER_MEDIA_TYPE, d = $ === "application/xhtml+xml" ? Ne : ue, p = b(e, "ALLOWED_TAGS") ? r({}, e.ALLOWED_TAGS, d) : ze, T = b(e, "ALLOWED_ATTR") ? r({}, e.ALLOWED_ATTR, d) : Ge, ye = b(e, "ALLOWED_NAMESPACES") ? r({}, e.ALLOWED_NAMESPACES, Ne) : Ut, Re = b(e, "ADD_URI_SAFE_ATTR") ? r(M(Ke), e.ADD_URI_SAFE_ATTR, d) : Ke, $e = b(e, "ADD_DATA_URI_TAGS") ? r(M(qe), e.ADD_DATA_URI_TAGS, d) : qe, H = b(e, "FORBID_CONTENTS") ? r({}, e.FORBID_CONTENTS, d) : Ve, j = b(e, "FORBID_TAGS") ? r({}, e.FORBID_TAGS, d) : M({}), _e = b(e, "FORBID_ATTR") ? r({}, e.FORBID_ATTR, d) : M({}), F = b(e, "USE_PROFILES") ? e.USE_PROFILES : !1, We = e.ALLOW_ARIA_ATTR !== !1, ge = e.ALLOW_DATA_ATTR !== !1, Be = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ye = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, k = e.SAFE_FOR_TEMPLATES || !1, ne = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, U = e.RETURN_DOM || !1, oe = e.RETURN_DOM_FRAGMENT || !1, ie = e.RETURN_TRUSTED_TYPE || !1, Ae = e.FORCE_BODY || !1, Xe = e.SANITIZE_DOM !== !1, je = e.SANITIZE_NAMED_PROPS || !1, Se = e.KEEP_CONTENT !== !1, V = e.IN_PLACE || !1, He = e.ALLOWED_URI_REGEXP || gt, z = e.NAMESPACE || N, se = e.MATHML_TEXT_INTEGRATION_POINTS || se, le = e.HTML_INTEGRATION_POINTS || le, u = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ze(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ze(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (u.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (u.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), k && (ge = !1), oe && (U = !0), F && (p = r({}, mt), T = [], F.html === !0 && (r(p, ut), r(T, pt)), F.svg === !0 && (r(p, Ce), r(T, xe), r(T, fe)), F.svgFilters === !0 && (r(p, Me), r(T, xe), r(T, fe)), F.mathMl === !0 && (r(p, we), r(T, dt), r(T, fe))), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? v.tagCheck = e.ADD_TAGS : (p === ze && (p = M(p)), r(p, e.ADD_TAGS, d))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? v.attributeCheck = e.ADD_ATTR : (T === Ge && (T = M(T)), r(T, e.ADD_ATTR, d))), e.ADD_URI_SAFE_ATTR && r(Re, e.ADD_URI_SAFE_ATTR, d), e.FORBID_CONTENTS && (H === Ve && (H = M(H)), r(H, e.FORBID_CONTENTS, d)), Se && (p["#text"] = !0), w && r(p, ["html", "head", "body"]), p.table && (r(p, ["tbody"]), delete j.tbody), e.TRUSTED_TYPES_POLICY) {
264
+ if ((!e || typeof e != "object") && (e = {}), e = I(e), $ = // eslint-disable-next-line unicorn/prefer-includes
265
+ Ht.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? zt : e.PARSER_MEDIA_TYPE, p = $ === "application/xhtml+xml" ? Ie : ue, d = L(e, "ALLOWED_TAGS") ? r({}, e.ALLOWED_TAGS, p) : Ge, T = L(e, "ALLOWED_ATTR") ? r({}, e.ALLOWED_ATTR, p) : We, ye = L(e, "ALLOWED_NAMESPACES") ? r({}, e.ALLOWED_NAMESPACES, Ie) : Ut, Oe = L(e, "ADD_URI_SAFE_ATTR") ? r(I(Ke), e.ADD_URI_SAFE_ATTR, p) : Ke, $e = L(e, "ADD_DATA_URI_TAGS") ? r(I(qe), e.ADD_DATA_URI_TAGS, p) : qe, b = L(e, "FORBID_CONTENTS") ? r({}, e.FORBID_CONTENTS, p) : Re, j = L(e, "FORBID_TAGS") ? r({}, e.FORBID_TAGS, p) : I({}), _e = L(e, "FORBID_ATTR") ? r({}, e.FORBID_ATTR, p) : I({}), H = L(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Be = e.ALLOW_ARIA_ATTR !== !1, ge = e.ALLOW_DATA_ATTR !== !1, Ye = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, U = e.SAFE_FOR_TEMPLATES || !1, ne = e.SAFE_FOR_XML !== !1, x = e.WHOLE_DOCUMENT || !1, F = e.RETURN_DOM || !1, oe = e.RETURN_DOM_FRAGMENT || !1, ie = e.RETURN_TRUSTED_TYPE || !1, he = e.FORCE_BODY || !1, je = e.SANITIZE_DOM !== !1, Ve = e.SANITIZE_NAMED_PROPS || !1, Se = e.KEEP_CONTENT !== !1, V = e.IN_PLACE || !1, ze = e.ALLOWED_URI_REGEXP || gt, z = e.NAMESPACE || C, se = e.MATHML_TEXT_INTEGRATION_POINTS || se, le = e.HTML_INTEGRATION_POINTS || le, u = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ze(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ze(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (u.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (u.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), U && (ge = !1), oe && (F = !0), H && (d = r({}, mt), T = [], H.html === !0 && (r(d, ut), r(T, pt)), H.svg === !0 && (r(d, Me), r(T, Pe), r(T, fe)), H.svgFilters === !0 && (r(d, we), r(T, Pe), r(T, fe)), H.mathMl === !0 && (r(d, xe), r(T, dt), r(T, fe))), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? k.tagCheck = e.ADD_TAGS : (d === Ge && (d = I(d)), r(d, e.ADD_TAGS, p))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? k.attributeCheck = e.ADD_ATTR : (T === We && (T = I(T)), r(T, e.ADD_ATTR, p))), e.ADD_URI_SAFE_ATTR && r(Oe, e.ADD_URI_SAFE_ATTR, p), e.FORBID_CONTENTS && (b === Re && (b = I(b)), r(b, e.FORBID_CONTENTS, p)), e.ADD_FORBID_CONTENTS && (b === Re && (b = I(b)), r(b, e.ADD_FORBID_CONTENTS, p)), Se && (d["#text"] = !0), x && r(d, ["html", "head", "body"]), d.table && (r(d, ["tbody"]), delete j.tbody), e.TRUSTED_TYPES_POLICY) {
266
266
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
267
267
  throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
268
268
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -272,24 +272,24 @@ function At() {
272
272
  g === void 0 && (g = un(ee, c)), g !== null && typeof X == "string" && (X = g.createHTML(""));
273
273
  S && S(e), G = e;
274
274
  }
275
- }, Je = r({}, [...Ce, ...Me, ...Qt]), Qe = r({}, [...we, ...en]), Wt = function(e) {
275
+ }, Je = r({}, [...Me, ...we, ...Qt]), Qe = r({}, [...xe, ...en]), Wt = function(e) {
276
276
  let t = te(e);
277
277
  (!t || !t.tagName) && (t = {
278
278
  namespaceURI: z,
279
279
  tagName: "template"
280
280
  });
281
281
  const n = ue(e.tagName), f = ue(t.tagName);
282
- return ye[e.namespaceURI] ? e.namespaceURI === re ? t.namespaceURI === N ? n === "svg" : t.namespaceURI === ae ? n === "svg" && (f === "annotation-xml" || se[f]) : !!Je[n] : e.namespaceURI === ae ? t.namespaceURI === N ? n === "math" : t.namespaceURI === re ? n === "math" && le[f] : !!Qe[n] : e.namespaceURI === N ? t.namespaceURI === re && !le[f] || t.namespaceURI === ae && !se[f] ? !1 : !Qe[n] && (Ft[n] || !Je[n]) : !!($ === "application/xhtml+xml" && ye[e.namespaceURI]) : !1;
283
- }, D = function(e) {
282
+ return ye[e.namespaceURI] ? e.namespaceURI === re ? t.namespaceURI === C ? n === "svg" : t.namespaceURI === ae ? n === "svg" && (f === "annotation-xml" || se[f]) : !!Je[n] : e.namespaceURI === ae ? t.namespaceURI === C ? n === "math" : t.namespaceURI === re ? n === "math" && le[f] : !!Qe[n] : e.namespaceURI === C ? t.namespaceURI === re && !le[f] || t.namespaceURI === ae && !se[f] ? !1 : !Qe[n] && (Ft[n] || !Je[n]) : !!($ === "application/xhtml+xml" && ye[e.namespaceURI]) : !1;
283
+ }, N = function(e) {
284
284
  q(o.removed, {
285
285
  element: e
286
286
  });
287
287
  try {
288
288
  te(e).removeChild(e);
289
289
  } catch {
290
- Lt(e);
290
+ yt(e);
291
291
  }
292
- }, x = function(e, t) {
292
+ }, P = function(e, t) {
293
293
  try {
294
294
  q(o.removed, {
295
295
  attribute: t.getAttributeNode(e),
@@ -302,9 +302,9 @@ function At() {
302
302
  });
303
303
  }
304
304
  if (t.removeAttribute(e), e === "is")
305
- if (U || oe)
305
+ if (F || oe)
306
306
  try {
307
- D(t);
307
+ N(t);
308
308
  } catch {
309
309
  }
310
310
  else
@@ -314,15 +314,15 @@ function At() {
314
314
  }
315
315
  }, et = function(e) {
316
316
  let t = null, n = null;
317
- if (Ae)
317
+ if (he)
318
318
  e = "<remove></remove>" + e;
319
319
  else {
320
- const m = Ie(e, /^[\r\n\t ]+/);
320
+ const m = Ce(e, /^[\r\n\t ]+/);
321
321
  n = m && m[0];
322
322
  }
323
- $ === "application/xhtml+xml" && z === N && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
323
+ $ === "application/xhtml+xml" && z === C && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
324
324
  const f = g ? g.createHTML(e) : e;
325
- if (z === N)
325
+ if (z === C)
326
326
  try {
327
327
  t = new Ot().parseFromString(f, $);
328
328
  } catch {
@@ -330,12 +330,12 @@ function At() {
330
330
  if (!t || !t.documentElement) {
331
331
  t = pe.createDocument(z, "template", null);
332
332
  try {
333
- t.documentElement.innerHTML = Oe ? X : f;
333
+ t.documentElement.innerHTML = De ? X : f;
334
334
  } catch {
335
335
  }
336
336
  }
337
337
  const _ = t.body || t.documentElement;
338
- return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), z === N ? Ct.call(t, w ? "html" : "body")[0] : w ? t.documentElement : _;
338
+ return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), z === C ? Ct.call(t, x ? "html" : "body")[0] : x ? t.documentElement : _;
339
339
  }, tt = function(e) {
340
340
  return Nt.call(
341
341
  e.ownerDocument || e,
@@ -349,61 +349,61 @@ function At() {
349
349
  }, nt = function(e) {
350
350
  return typeof me == "function" && e instanceof me;
351
351
  };
352
- function I(i, e, t) {
352
+ function M(i, e, t) {
353
353
  ce(i, (n) => {
354
354
  n.call(o, e, t, G);
355
355
  });
356
356
  }
357
357
  const ot = function(e) {
358
358
  let t = null;
359
- if (I(h.beforeSanitizeElements, e, null), be(e))
360
- return D(e), !0;
361
- const n = d(e.nodeName);
362
- if (I(h.uponSanitizeElement, e, {
359
+ if (M(A.beforeSanitizeElements, e, null), be(e))
360
+ return N(e), !0;
361
+ const n = p(e.nodeName);
362
+ if (M(A.uponSanitizeElement, e, {
363
363
  tagName: n,
364
- allowedTags: p
365
- }), ne && e.hasChildNodes() && !nt(e.firstElementChild) && A(/<[/\w!]/g, e.innerHTML) && A(/<[/\w!]/g, e.textContent) || e.nodeType === Q.progressingInstruction || ne && e.nodeType === Q.comment && A(/<[/\w]/g, e.data))
366
- return D(e), !0;
367
- if (!(v.tagCheck instanceof Function && v.tagCheck(n)) && (!p[n] || j[n])) {
368
- if (!j[n] && at(n) && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
364
+ allowedTags: d
365
+ }), ne && e.hasChildNodes() && !nt(e.firstElementChild) && h(/<[/\w!]/g, e.innerHTML) && h(/<[/\w!]/g, e.textContent) || e.nodeType === Q.progressingInstruction || ne && e.nodeType === Q.comment && h(/<[/\w]/g, e.data))
366
+ return N(e), !0;
367
+ if (!(k.tagCheck instanceof Function && k.tagCheck(n)) && (!d[n] || j[n])) {
368
+ if (!j[n] && at(n) && (u.tagNameCheck instanceof RegExp && h(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
369
369
  return !1;
370
- if (Se && !H[n]) {
371
- const f = te(e) || e.parentNode, _ = Dt(e) || e.childNodes;
370
+ if (Se && !b[n]) {
371
+ const f = te(e) || e.parentNode, _ = bt(e) || e.childNodes;
372
372
  if (_ && f) {
373
373
  const m = _.length;
374
- for (let y = m - 1; y >= 0; --y) {
375
- const C = yt(_[y], !0);
376
- C.__removalCount = (e.__removalCount || 0) + 1, f.insertBefore(C, bt(e));
374
+ for (let D = m - 1; D >= 0; --D) {
375
+ const w = Dt(_[D], !0);
376
+ w.__removalCount = (e.__removalCount || 0) + 1, f.insertBefore(w, Lt(e));
377
377
  }
378
378
  }
379
379
  }
380
- return D(e), !0;
380
+ return N(e), !0;
381
381
  }
382
- return e instanceof Ue && !Wt(e) || (n === "noscript" || n === "noembed" || n === "noframes") && A(/<\/no(script|embed|frames)/i, e.innerHTML) ? (D(e), !0) : (k && e.nodeType === Q.text && (t = e.textContent, ce([de, Te, Ee], (f) => {
382
+ return e instanceof Fe && !Wt(e) || (n === "noscript" || n === "noembed" || n === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (N(e), !0) : (U && e.nodeType === Q.text && (t = e.textContent, ce([de, Te, Ee], (f) => {
383
383
  t = K(t, f, " ");
384
384
  }), e.textContent !== t && (q(o.removed, {
385
385
  element: e.cloneNode()
386
- }), e.textContent = t)), I(h.afterSanitizeElements, e, null), !1);
386
+ }), e.textContent = t)), M(A.afterSanitizeElements, e, null), !1);
387
387
  }, it = function(e, t, n) {
388
- if (Xe && (t === "id" || t === "name") && (n in l || n in Gt))
388
+ if (je && (t === "id" || t === "name") && (n in l || n in Gt))
389
389
  return !1;
390
- if (!(ge && !_e[t] && A(wt, t))) {
391
- if (!(We && A(xt, t))) {
392
- if (!(v.attributeCheck instanceof Function && v.attributeCheck(t, e))) {
390
+ if (!(ge && !_e[t] && h(wt, t))) {
391
+ if (!(Be && h(xt, t))) {
392
+ if (!(k.attributeCheck instanceof Function && k.attributeCheck(t, e))) {
393
393
  if (!T[t] || _e[t]) {
394
394
  if (
395
395
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
396
396
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
397
397
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
398
- !(at(e) && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, e) || u.tagNameCheck instanceof Function && u.tagNameCheck(e)) && (u.attributeNameCheck instanceof RegExp && A(u.attributeNameCheck, t) || u.attributeNameCheck instanceof Function && u.attributeNameCheck(t, e)) || // Alternative, second condition checks if it's an `is`-attribute, AND
398
+ !(at(e) && (u.tagNameCheck instanceof RegExp && h(u.tagNameCheck, e) || u.tagNameCheck instanceof Function && u.tagNameCheck(e)) && (u.attributeNameCheck instanceof RegExp && h(u.attributeNameCheck, t) || u.attributeNameCheck instanceof Function && u.attributeNameCheck(t, e)) || // Alternative, second condition checks if it's an `is`-attribute, AND
399
399
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
400
- t === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
400
+ t === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp && h(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
401
401
  )
402
402
  return !1;
403
- } else if (!Re[t]) {
404
- if (!A(He, K(n, Fe, ""))) {
403
+ } else if (!Oe[t]) {
404
+ if (!h(ze, K(n, He, ""))) {
405
405
  if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && qt(n, "data:") === 0 && $e[e])) {
406
- if (!(Be && !A(Pt, K(n, Fe, "")))) {
406
+ if (!(Ye && !h(Pt, K(n, He, "")))) {
407
407
  if (n)
408
408
  return !1;
409
409
  }
@@ -415,9 +415,9 @@ function At() {
415
415
  }
416
416
  return !0;
417
417
  }, at = function(e) {
418
- return e !== "annotation-xml" && Ie(e, vt);
418
+ return e !== "annotation-xml" && Ce(e, vt);
419
419
  }, rt = function(e) {
420
- I(h.beforeSanitizeAttributes, e, null);
420
+ M(A.beforeSanitizeAttributes, e, null);
421
421
  const {
422
422
  attributes: t
423
423
  } = e;
@@ -434,37 +434,37 @@ function At() {
434
434
  for (; f--; ) {
435
435
  const _ = t[f], {
436
436
  name: m,
437
- namespaceURI: y,
438
- value: C
439
- } = _, W = d(m), De = C;
440
- let E = m === "value" ? De : Kt(De);
441
- if (n.attrName = W, n.attrValue = E, n.keepAttr = !0, n.forceKeepAttr = void 0, I(h.uponSanitizeAttribute, e, n), E = n.attrValue, je && (W === "id" || W === "name") && (x(m, e), E = kt + E), ne && A(/((--!?|])>)|<\/(style|title|textarea)/i, E)) {
442
- x(m, e);
437
+ namespaceURI: D,
438
+ value: w
439
+ } = _, W = p(m), Ne = w;
440
+ let E = m === "value" ? Ne : Kt(Ne);
441
+ if (n.attrName = W, n.attrValue = E, n.keepAttr = !0, n.forceKeepAttr = void 0, M(A.uponSanitizeAttribute, e, n), E = n.attrValue, Ve && (W === "id" || W === "name") && (P(m, e), E = kt + E), ne && h(/((--!?|])>)|<\/(style|title|textarea)/i, E)) {
442
+ P(m, e);
443
443
  continue;
444
444
  }
445
- if (W === "attributename" && Ie(E, "href")) {
446
- x(m, e);
445
+ if (W === "attributename" && Ce(E, "href")) {
446
+ P(m, e);
447
447
  continue;
448
448
  }
449
449
  if (n.forceKeepAttr)
450
450
  continue;
451
451
  if (!n.keepAttr) {
452
- x(m, e);
452
+ P(m, e);
453
453
  continue;
454
454
  }
455
- if (!Ye && A(/\/>/i, E)) {
456
- x(m, e);
455
+ if (!Xe && h(/\/>/i, E)) {
456
+ P(m, e);
457
457
  continue;
458
458
  }
459
- k && ce([de, Te, Ee], (lt) => {
459
+ U && ce([de, Te, Ee], (lt) => {
460
460
  E = K(E, lt, " ");
461
461
  });
462
- const st = d(e.nodeName);
462
+ const st = p(e.nodeName);
463
463
  if (!it(st, W, E)) {
464
- x(m, e);
464
+ P(m, e);
465
465
  continue;
466
466
  }
467
- if (g && typeof ee == "object" && typeof ee.getAttributeType == "function" && !y)
467
+ if (g && typeof ee == "object" && typeof ee.getAttributeType == "function" && !D)
468
468
  switch (ee.getAttributeType(st, W)) {
469
469
  case "TrustedHTML": {
470
470
  E = g.createHTML(E);
@@ -475,24 +475,24 @@ function At() {
475
475
  break;
476
476
  }
477
477
  }
478
- if (E !== De)
478
+ if (E !== Ne)
479
479
  try {
480
- y ? e.setAttributeNS(y, m, E) : e.setAttribute(m, E), be(e) ? D(e) : ft(o.removed);
480
+ D ? e.setAttributeNS(D, m, E) : e.setAttribute(m, E), be(e) ? N(e) : ft(o.removed);
481
481
  } catch {
482
- x(m, e);
482
+ P(m, e);
483
483
  }
484
484
  }
485
- I(h.afterSanitizeAttributes, e, null);
485
+ M(A.afterSanitizeAttributes, e, null);
486
486
  }, Bt = function i(e) {
487
487
  let t = null;
488
488
  const n = tt(e);
489
- for (I(h.beforeSanitizeShadowDOM, e, null); t = n.nextNode(); )
490
- I(h.uponSanitizeShadowNode, t, null), ot(t), rt(t), t.content instanceof O && i(t.content);
491
- I(h.afterSanitizeShadowDOM, e, null);
489
+ for (M(A.beforeSanitizeShadowDOM, e, null); t = n.nextNode(); )
490
+ M(A.uponSanitizeShadowNode, t, null), ot(t), rt(t), t.content instanceof O && i(t.content);
491
+ M(A.afterSanitizeShadowDOM, e, null);
492
492
  };
493
493
  return o.sanitize = function(i) {
494
494
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, f = null, _ = null;
495
- if (Oe = !i, Oe && (i = "<!-->"), typeof i != "string" && !nt(i))
495
+ if (De = !i, De && (i = "<!-->"), typeof i != "string" && !nt(i))
496
496
  if (typeof i.toString == "function") {
497
497
  if (i = i.toString(), typeof i != "string")
498
498
  throw Z("dirty is not a string, aborting");
@@ -500,28 +500,28 @@ function At() {
500
500
  throw Z("toString is not a function");
501
501
  if (!o.isSupported)
502
502
  return i;
503
- if (he || Le(e), o.removed = [], typeof i == "string" && (V = !1), V) {
503
+ if (Ae || Le(e), o.removed = [], typeof i == "string" && (V = !1), V) {
504
504
  if (i.nodeName) {
505
- const C = d(i.nodeName);
506
- if (!p[C] || j[C])
505
+ const w = p(i.nodeName);
506
+ if (!d[w] || j[w])
507
507
  throw Z("root node is forbidden and cannot be sanitized in-place");
508
508
  }
509
509
  } else if (i instanceof me)
510
510
  t = et("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === Q.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
511
511
  else {
512
- if (!U && !k && !w && // eslint-disable-next-line unicorn/prefer-includes
512
+ if (!F && !U && !x && // eslint-disable-next-line unicorn/prefer-includes
513
513
  i.indexOf("<") === -1)
514
514
  return g && ie ? g.createHTML(i) : i;
515
515
  if (t = et(i), !t)
516
- return U ? null : ie ? X : "";
516
+ return F ? null : ie ? X : "";
517
517
  }
518
- t && Ae && D(t.firstChild);
518
+ t && he && N(t.firstChild);
519
519
  const m = tt(V ? i : t);
520
520
  for (; f = m.nextNode(); )
521
521
  ot(f), rt(f), f.content instanceof O && Bt(f.content);
522
522
  if (V)
523
523
  return i;
524
- if (U) {
524
+ if (F) {
525
525
  if (oe)
526
526
  for (_ = It.call(t.ownerDocument); t.firstChild; )
527
527
  _.appendChild(t.firstChild);
@@ -529,35 +529,35 @@ function At() {
529
529
  _ = t;
530
530
  return (T.shadowroot || T.shadowrootmode) && (_ = Mt.call(a, _, !0)), _;
531
531
  }
532
- let y = w ? t.outerHTML : t.innerHTML;
533
- return w && p["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(ht, t.ownerDocument.doctype.name) && (y = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
534
- ` + y), k && ce([de, Te, Ee], (C) => {
535
- y = K(y, C, " ");
536
- }), g && ie ? g.createHTML(y) : y;
532
+ let D = x ? t.outerHTML : t.innerHTML;
533
+ return x && d["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && h(At, t.ownerDocument.doctype.name) && (D = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
534
+ ` + D), U && ce([de, Te, Ee], (w) => {
535
+ D = K(D, w, " ");
536
+ }), g && ie ? g.createHTML(D) : D;
537
537
  }, o.setConfig = function() {
538
538
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
539
- Le(i), he = !0;
539
+ Le(i), Ae = !0;
540
540
  }, o.clearConfig = function() {
541
- G = null, he = !1;
541
+ G = null, Ae = !1;
542
542
  }, o.isValidAttribute = function(i, e, t) {
543
543
  G || Le({});
544
- const n = d(i), f = d(e);
544
+ const n = p(i), f = p(e);
545
545
  return it(n, f, t);
546
546
  }, o.addHook = function(i, e) {
547
- typeof e == "function" && q(h[i], e);
547
+ typeof e == "function" && q(A[i], e);
548
548
  }, o.removeHook = function(i, e) {
549
549
  if (e !== void 0) {
550
- const t = Vt(h[i], e);
551
- return t === -1 ? void 0 : $t(h[i], t, 1)[0];
550
+ const t = Vt(A[i], e);
551
+ return t === -1 ? void 0 : $t(A[i], t, 1)[0];
552
552
  }
553
- return ft(h[i]);
553
+ return ft(A[i]);
554
554
  }, o.removeHooks = function(i) {
555
- h[i] = [];
555
+ A[i] = [];
556
556
  }, o.removeAllHooks = function() {
557
- h = Et();
557
+ A = Et();
558
558
  }, o;
559
559
  }
560
- var mn = At();
560
+ var mn = ht();
561
561
  export {
562
562
  mn as default
563
563
  };