easy-component-ui 3.0.11 → 3.0.13

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 (78) hide show
  1. package/README.md +162 -162
  2. package/dist/assets/icon.css +1 -1
  3. package/dist/components/Base.js +190 -188
  4. package/dist/components/ea-alert.js +71 -54
  5. package/dist/components/ea-avatar.js +42 -37
  6. package/dist/components/ea-breadcrumb.js +33 -33
  7. package/dist/components/ea-button.js +53 -52
  8. package/dist/components/ea-card.js +63 -27
  9. package/dist/components/ea-carousel.js +2 -2
  10. package/dist/components/ea-collapse.js +93 -73
  11. package/dist/components/ea-color-picker.js +221 -221
  12. package/dist/components/ea-container.js +90 -61
  13. package/dist/components/ea-countdown.js +77 -56
  14. package/dist/components/ea-date-picker.js +1 -1
  15. package/dist/components/ea-descriptions.js +133 -70
  16. package/dist/components/ea-dialog.js +4 -4
  17. package/dist/components/ea-drawer.js +93 -71
  18. package/dist/components/ea-empty.js +31 -23
  19. package/dist/components/ea-icon.js +122 -32
  20. package/dist/components/ea-image-preview.js +237 -193
  21. package/dist/components/ea-image.js +69 -44
  22. package/dist/components/ea-input-number.js +9 -9
  23. package/dist/components/ea-input.js +15 -15
  24. package/dist/components/ea-layout.js +10 -3
  25. package/dist/components/ea-link.js +1 -1
  26. package/dist/components/ea-menu.js +69 -53
  27. package/dist/components/ea-message-box.js +73 -73
  28. package/dist/components/ea-message.js +184 -121
  29. package/dist/components/ea-notification.js +80 -80
  30. package/dist/components/ea-overlay.js +41 -34
  31. package/dist/components/ea-page-header.js +5 -5
  32. package/dist/components/ea-pagination.js +6 -5
  33. package/dist/components/ea-popconfirm.js +133 -78
  34. package/dist/components/ea-popover.js +35 -11
  35. package/dist/components/ea-popper.js +9 -9
  36. package/dist/components/ea-progress.js +88 -71
  37. package/dist/components/ea-rate.js +1 -1
  38. package/dist/components/ea-result.js +20 -20
  39. package/dist/components/ea-select.js +119 -108
  40. package/dist/components/ea-skeleton.js +99 -82
  41. package/dist/components/ea-slider.js +88 -79
  42. package/dist/components/ea-splitter.js +34 -18
  43. package/dist/components/ea-statistic.js +72 -4
  44. package/dist/components/ea-steps.js +108 -74
  45. package/dist/components/ea-table.js +562 -434
  46. package/dist/components/ea-tabs.js +28 -28
  47. package/dist/components/ea-tag.js +37 -43
  48. package/dist/components/ea-time-picker.js +2 -6
  49. package/dist/components/ea-timeline.js +11 -12
  50. package/dist/components/ea-tooltip.js +63 -23
  51. package/dist/components/ea-tour.js +21 -21
  52. package/dist/components/ea-transfer.js +2 -2
  53. package/dist/components/ea-tree.js +1 -1
  54. package/dist/components/index.js +1 -2
  55. package/dist/css/ea-card.style.js +2 -2
  56. package/dist/css/ea-collapse-item.style.js +1 -1
  57. package/dist/css/ea-color-picker-panel.style.js +1 -1
  58. package/dist/css/ea-container.style.js +1 -1
  59. package/dist/css/ea-descriptions-item.style.js +2 -2
  60. package/dist/css/ea-descriptions.style.js +1 -1
  61. package/dist/css/ea-empty.style.js +1 -1
  62. package/dist/css/ea-footer.style.js +1 -1
  63. package/dist/css/ea-progress.style.js +1 -1
  64. package/dist/css/ea-skeleton.style.js +1 -1
  65. package/dist/css/ea-step.style.js +1 -1
  66. package/dist/css/ea-switch.style.js +1 -1
  67. package/dist/css/ea-tab.style.js +1 -1
  68. package/dist/css/ea-table-column.style.js +4 -0
  69. package/dist/css/ea-table.style.js +1 -1
  70. package/dist/css/ea-tabs.style.js +1 -1
  71. package/dist/css/ea-tag.style.js +1 -1
  72. package/dist/css/ea-time-picker.style.js +1 -1
  73. package/dist/css/ea-timeline-item.style.js +1 -1
  74. package/dist/utils/Variables.js +10 -17
  75. package/dist/utils/parseTime.js +73 -0
  76. package/package.json +302 -304
  77. package/dist/components/ea-loading.js +0 -151
  78. package/dist/components/ea-statistic2.js +0 -83
@@ -4,21 +4,21 @@ var he = (a) => {
4
4
  };
5
5
  var Je = (a, r, e) => r in a ? Ze(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e;
6
6
  var it = (a, r, e) => Je(a, typeof r != "symbol" ? r + "" : r, e), Qe = (a, r, e) => r.has(a) || he("Cannot " + e);
7
- var J = (a, r, e) => (Qe(a, r, "read from private field"), e ? e.call(a) : r.get(a)), Te = (a, r, e) => r.has(a) ? he("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(a) : r.set(a, e);
7
+ var j = (a, r, e) => (Qe(a, r, "read from private field"), e ? e.call(a) : r.get(a)), Te = (a, r, e) => r.has(a) ? he("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(a) : r.set(a, e);
8
8
  import { v as Ve } from "../css/ea-ui-component.style.js";
9
9
  import "./ea-icon.js";
10
10
  import { E as Ae } from "../utils/Utils.js";
11
11
  /*! @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 */
12
12
  const {
13
13
  entries: Ne,
14
- setPrototypeOf: Ee,
14
+ setPrototypeOf: ge,
15
15
  isFrozen: tn,
16
16
  getPrototypeOf: en,
17
17
  getOwnPropertyDescriptor: nn
18
18
  } = Object;
19
19
  let {
20
20
  freeze: L,
21
- seal: x,
21
+ seal: w,
22
22
  create: Gt
23
23
  } = Object, {
24
24
  apply: Wt,
@@ -27,7 +27,7 @@ let {
27
27
  L || (L = function(r) {
28
28
  return r;
29
29
  });
30
- x || (x = function(r) {
30
+ w || (w = function(r) {
31
31
  return r;
32
32
  });
33
33
  Wt || (Wt = function(r, e) {
@@ -40,7 +40,7 @@ Yt || (Yt = function(r) {
40
40
  i[s - 1] = arguments[s];
41
41
  return new r(...i);
42
42
  });
43
- const At = C(Array.prototype.forEach), rn = C(Array.prototype.lastIndexOf), ge = C(Array.prototype.pop), rt = C(Array.prototype.push), on = C(Array.prototype.splice), gt = C(String.prototype.toLowerCase), kt = C(String.prototype.toString), Ut = C(String.prototype.match), ot = C(String.prototype.replace), sn = C(String.prototype.indexOf), an = C(String.prototype.trim), w = C(Object.prototype.hasOwnProperty), D = C(RegExp.prototype.test), st = ln(TypeError);
43
+ const At = C(Array.prototype.forEach), rn = C(Array.prototype.lastIndexOf), Ee = C(Array.prototype.pop), rt = C(Array.prototype.push), on = C(Array.prototype.splice), Et = C(String.prototype.toLowerCase), kt = C(String.prototype.toString), Ut = C(String.prototype.match), ot = C(String.prototype.replace), sn = C(String.prototype.indexOf), an = C(String.prototype.trim), P = C(Object.prototype.hasOwnProperty), D = C(RegExp.prototype.test), st = ln(TypeError);
44
44
  function C(a) {
45
45
  return function(r) {
46
46
  r instanceof RegExp && (r.lastIndex = 0);
@@ -57,8 +57,8 @@ function ln(a) {
57
57
  };
58
58
  }
59
59
  function f(a, r) {
60
- let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : gt;
61
- Ee && Ee(a, null);
60
+ let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Et;
61
+ ge && ge(a, null);
62
62
  let i = r.length;
63
63
  for (; i--; ) {
64
64
  let s = r[i];
@@ -72,13 +72,13 @@ function f(a, r) {
72
72
  }
73
73
  function cn(a) {
74
74
  for (let r = 0; r < a.length; r++)
75
- w(a, r) || (a[r] = null);
75
+ P(a, r) || (a[r] = null);
76
76
  return a;
77
77
  }
78
- function k(a) {
78
+ function U(a) {
79
79
  const r = Gt(null);
80
80
  for (const [e, i] of Ne(a))
81
- w(a, e) && (Array.isArray(i) ? r[e] = cn(i) : i && typeof i == "object" && i.constructor === Object ? r[e] = k(i) : r[e] = i);
81
+ P(a, e) && (Array.isArray(i) ? r[e] = cn(i) : i && typeof i == "object" && i.constructor === Object ? r[e] = U(i) : r[e] = i);
82
82
  return r;
83
83
  }
84
84
  function at(a, r) {
@@ -97,18 +97,18 @@ function at(a, r) {
97
97
  }
98
98
  return e;
99
99
  }
100
- const _e = L(["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"]), Ft = L(["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"]), Ht = L(["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"]), un = L(["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"]), zt = L(["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"]), fn = L(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Se = L(["#text"]), be = L(["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"]), Bt = L(["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"]), ye = L(["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"]), Et = L(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), pn = x(/\{\{[\w\W]*|[\w\W]*\}\}/gm), mn = x(/<%[\w\W]*|[\w\W]*%>/gm), dn = x(/\$\{[\w\W]*/gm), hn = x(/^data-[\-\w.\u00B7-\uFFFF]+$/), Tn = x(/^aria-[\-\w]+$/), De = x(
100
+ const _e = L(["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"]), Ft = L(["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"]), Ht = L(["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"]), un = L(["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"]), zt = L(["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"]), fn = L(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Se = L(["#text"]), be = L(["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"]), Bt = L(["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"]), ye = L(["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"]), gt = L(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), pn = w(/\{\{[\w\W]*|[\w\W]*\}\}/gm), mn = w(/<%[\w\W]*|[\w\W]*%>/gm), dn = w(/\$\{[\w\W]*/gm), hn = w(/^data-[\-\w.\u00B7-\uFFFF]+$/), Tn = w(/^aria-[\-\w]+$/), De = w(
101
101
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
102
102
  // eslint-disable-line no-useless-escape
103
- ), An = x(/^(?:\w+script|data):/i), En = x(
103
+ ), An = w(/^(?:\w+script|data):/i), gn = w(
104
104
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
105
105
  // eslint-disable-line no-control-regex
106
- ), Le = x(/^html$/i), gn = x(/^[a-z][.\w]*(-[.\w]+)+$/i);
106
+ ), Le = w(/^html$/i), En = w(/^[a-z][.\w]*(-[.\w]+)+$/i);
107
107
  var Re = /* @__PURE__ */ Object.freeze({
108
108
  __proto__: null,
109
109
  ARIA_ATTR: Tn,
110
- ATTR_WHITESPACE: En,
111
- CUSTOM_ELEMENT: gn,
110
+ ATTR_WHITESPACE: gn,
111
+ CUSTOM_ELEMENT: En,
112
112
  DATA_ATTR: hn,
113
113
  DOCTYPE_NAME: Le,
114
114
  ERB_EXPR: mn,
@@ -135,11 +135,11 @@ const lt = {
135
135
  const d = "dompurify" + (i ? "#" + i : "");
136
136
  try {
137
137
  return r.createPolicy(d, {
138
- createHTML(c) {
139
- return c;
138
+ createHTML(u) {
139
+ return u;
140
140
  },
141
- createScriptURL(c) {
142
- return c;
141
+ createScriptURL(u) {
142
+ return u;
143
143
  }
144
144
  });
145
145
  } catch {
@@ -168,16 +168,16 @@ function Ce() {
168
168
  } = a;
169
169
  const i = e, s = i.currentScript, {
170
170
  DocumentFragment: d,
171
- HTMLTemplateElement: c,
172
- Node: u,
171
+ HTMLTemplateElement: u,
172
+ Node: c,
173
173
  Element: p,
174
174
  NodeFilter: m,
175
- NamedNodeMap: T = a.NamedNodeMap || a.MozNamedAttrMap,
176
- HTMLFormElement: y,
177
- DOMParser: M,
178
- trustedTypes: B
179
- } = a, Q = p.prototype, Ie = at(Q, "cloneNode"), Me = at(Q, "remove"), xe = at(Q, "nextSibling"), we = at(Q, "childNodes"), ct = at(Q, "parentNode");
180
- if (typeof c == "function") {
175
+ NamedNodeMap: R = a.NamedNodeMap || a.MozNamedAttrMap,
176
+ HTMLFormElement: _,
177
+ DOMParser: I,
178
+ trustedTypes: x
179
+ } = a, G = p.prototype, Ie = at(G, "cloneNode"), Me = at(G, "remove"), xe = at(G, "nextSibling"), we = at(G, "childNodes"), ct = at(G, "parentNode");
180
+ if (typeof u == "function") {
181
181
  const l = e.createElement("template");
182
182
  l.content && l.content.ownerDocument && (e = l.content.ownerDocument);
183
183
  }
@@ -204,11 +204,11 @@ function Ce() {
204
204
  } = Re;
205
205
  let {
206
206
  IS_ALLOWED_URI: $t
207
- } = Re, _ = null;
207
+ } = Re, E = null;
208
208
  const Xt = f({}, [..._e, ...Ft, ...Ht, ...zt, ...Se]);
209
209
  let S = null;
210
- const qt = f({}, [...be, ...Bt, ...ye, ...Et]);
211
- let A = Object.seal(Gt(null, {
210
+ const qt = f({}, [...be, ...Bt, ...ye, ...gt]);
211
+ let T = Object.seal(Gt(null, {
212
212
  tagNameCheck: {
213
213
  writable: !0,
214
214
  configurable: !1,
@@ -228,7 +228,7 @@ function Ce() {
228
228
  value: !1
229
229
  }
230
230
  })), tt = null, Rt = null;
231
- const Y = Object.seal(Gt(null, {
231
+ const $ = Object.seal(Gt(null, {
232
232
  tagCheck: {
233
233
  writable: !0,
234
234
  configurable: !1,
@@ -242,46 +242,46 @@ function Ce() {
242
242
  value: null
243
243
  }
244
244
  }));
245
- let Kt = !0, Ot = !0, Zt = !1, Jt = !0, j = !1, ut = !0, G = !1, Nt = !1, Dt = !1, $ = !1, ft = !1, pt = !1, Qt = !0, Vt = !1;
245
+ let Kt = !0, Ot = !0, Zt = !1, Jt = !0, X = !1, ut = !0, W = !1, Nt = !1, Dt = !1, q = !1, ft = !1, pt = !1, Qt = !0, Vt = !1;
246
246
  const Ge = "user-content-";
247
- let Lt = !0, et = !1, X = {}, P = null;
247
+ let Lt = !0, et = !1, K = {}, v = null;
248
248
  const Ct = f({}, ["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"]);
249
249
  let te = null;
250
250
  const ee = f({}, ["audio", "video", "img", "source", "image", "track"]);
251
251
  let It = null;
252
- const ne = f({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), mt = "http://www.w3.org/1998/Math/MathML", dt = "http://www.w3.org/2000/svg", U = "http://www.w3.org/1999/xhtml";
253
- let q = U, Mt = !1, xt = null;
254
- const We = f({}, [mt, dt, U], kt);
252
+ const ne = f({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), mt = "http://www.w3.org/1998/Math/MathML", dt = "http://www.w3.org/2000/svg", F = "http://www.w3.org/1999/xhtml";
253
+ let Z = F, Mt = !1, xt = null;
254
+ const We = f({}, [mt, dt, F], kt);
255
255
  let ht = f({}, ["mi", "mo", "mn", "ms", "mtext"]), Tt = f({}, ["annotation-xml"]);
256
256
  const Ye = f({}, ["title", "style", "font", "a", "script"]);
257
257
  let nt = null;
258
258
  const je = ["application/xhtml+xml", "text/html"], $e = "text/html";
259
- let g = null, K = null;
259
+ let g = null, J = null;
260
260
  const Xe = e.createElement("form"), ie = function(t) {
261
261
  return t instanceof RegExp || t instanceof Function;
262
262
  }, wt = function() {
263
263
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
264
- if (!(K && K === t)) {
265
- if ((!t || typeof t != "object") && (t = {}), t = k(t), nt = // eslint-disable-next-line unicorn/prefer-includes
266
- je.indexOf(t.PARSER_MEDIA_TYPE) === -1 ? $e : t.PARSER_MEDIA_TYPE, g = nt === "application/xhtml+xml" ? kt : gt, _ = w(t, "ALLOWED_TAGS") ? f({}, t.ALLOWED_TAGS, g) : Xt, S = w(t, "ALLOWED_ATTR") ? f({}, t.ALLOWED_ATTR, g) : qt, xt = w(t, "ALLOWED_NAMESPACES") ? f({}, t.ALLOWED_NAMESPACES, kt) : We, It = w(t, "ADD_URI_SAFE_ATTR") ? f(k(ne), t.ADD_URI_SAFE_ATTR, g) : ne, te = w(t, "ADD_DATA_URI_TAGS") ? f(k(ee), t.ADD_DATA_URI_TAGS, g) : ee, P = w(t, "FORBID_CONTENTS") ? f({}, t.FORBID_CONTENTS, g) : Ct, tt = w(t, "FORBID_TAGS") ? f({}, t.FORBID_TAGS, g) : k({}), Rt = w(t, "FORBID_ATTR") ? f({}, t.FORBID_ATTR, g) : k({}), X = w(t, "USE_PROFILES") ? t.USE_PROFILES : !1, Kt = t.ALLOW_ARIA_ATTR !== !1, Ot = t.ALLOW_DATA_ATTR !== !1, Zt = t.ALLOW_UNKNOWN_PROTOCOLS || !1, Jt = t.ALLOW_SELF_CLOSE_IN_ATTR !== !1, j = t.SAFE_FOR_TEMPLATES || !1, ut = t.SAFE_FOR_XML !== !1, G = t.WHOLE_DOCUMENT || !1, $ = t.RETURN_DOM || !1, ft = t.RETURN_DOM_FRAGMENT || !1, pt = t.RETURN_TRUSTED_TYPE || !1, Dt = t.FORCE_BODY || !1, Qt = t.SANITIZE_DOM !== !1, Vt = t.SANITIZE_NAMED_PROPS || !1, Lt = t.KEEP_CONTENT !== !1, et = t.IN_PLACE || !1, $t = t.ALLOWED_URI_REGEXP || De, q = t.NAMESPACE || U, ht = t.MATHML_TEXT_INTEGRATION_POINTS || ht, Tt = t.HTML_INTEGRATION_POINTS || Tt, A = t.CUSTOM_ELEMENT_HANDLING || {}, t.CUSTOM_ELEMENT_HANDLING && ie(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (A.tagNameCheck = t.CUSTOM_ELEMENT_HANDLING.tagNameCheck), t.CUSTOM_ELEMENT_HANDLING && ie(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (A.attributeNameCheck = t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), t.CUSTOM_ELEMENT_HANDLING && typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (A.allowCustomizedBuiltInElements = t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), j && (Ot = !1), ft && ($ = !0), X && (_ = f({}, Se), S = [], X.html === !0 && (f(_, _e), f(S, be)), X.svg === !0 && (f(_, Ft), f(S, Bt), f(S, Et)), X.svgFilters === !0 && (f(_, Ht), f(S, Bt), f(S, Et)), X.mathMl === !0 && (f(_, zt), f(S, ye), f(S, Et))), t.ADD_TAGS && (typeof t.ADD_TAGS == "function" ? Y.tagCheck = t.ADD_TAGS : (_ === Xt && (_ = k(_)), f(_, t.ADD_TAGS, g))), t.ADD_ATTR && (typeof t.ADD_ATTR == "function" ? Y.attributeCheck = t.ADD_ATTR : (S === qt && (S = k(S)), f(S, t.ADD_ATTR, g))), t.ADD_URI_SAFE_ATTR && f(It, t.ADD_URI_SAFE_ATTR, g), t.FORBID_CONTENTS && (P === Ct && (P = k(P)), f(P, t.FORBID_CONTENTS, g)), t.ADD_FORBID_CONTENTS && (P === Ct && (P = k(P)), f(P, t.ADD_FORBID_CONTENTS, g)), Lt && (_["#text"] = !0), G && f(_, ["html", "head", "body"]), _.table && (f(_, ["tbody"]), delete tt.tbody), t.TRUSTED_TYPES_POLICY) {
264
+ if (!(J && J === t)) {
265
+ if ((!t || typeof t != "object") && (t = {}), t = U(t), nt = // eslint-disable-next-line unicorn/prefer-includes
266
+ je.indexOf(t.PARSER_MEDIA_TYPE) === -1 ? $e : t.PARSER_MEDIA_TYPE, g = nt === "application/xhtml+xml" ? kt : Et, E = P(t, "ALLOWED_TAGS") ? f({}, t.ALLOWED_TAGS, g) : Xt, S = P(t, "ALLOWED_ATTR") ? f({}, t.ALLOWED_ATTR, g) : qt, xt = P(t, "ALLOWED_NAMESPACES") ? f({}, t.ALLOWED_NAMESPACES, kt) : We, It = P(t, "ADD_URI_SAFE_ATTR") ? f(U(ne), t.ADD_URI_SAFE_ATTR, g) : ne, te = P(t, "ADD_DATA_URI_TAGS") ? f(U(ee), t.ADD_DATA_URI_TAGS, g) : ee, v = P(t, "FORBID_CONTENTS") ? f({}, t.FORBID_CONTENTS, g) : Ct, tt = P(t, "FORBID_TAGS") ? f({}, t.FORBID_TAGS, g) : U({}), Rt = P(t, "FORBID_ATTR") ? f({}, t.FORBID_ATTR, g) : U({}), K = P(t, "USE_PROFILES") ? t.USE_PROFILES : !1, Kt = t.ALLOW_ARIA_ATTR !== !1, Ot = t.ALLOW_DATA_ATTR !== !1, Zt = t.ALLOW_UNKNOWN_PROTOCOLS || !1, Jt = t.ALLOW_SELF_CLOSE_IN_ATTR !== !1, X = t.SAFE_FOR_TEMPLATES || !1, ut = t.SAFE_FOR_XML !== !1, W = t.WHOLE_DOCUMENT || !1, q = t.RETURN_DOM || !1, ft = t.RETURN_DOM_FRAGMENT || !1, pt = t.RETURN_TRUSTED_TYPE || !1, Dt = t.FORCE_BODY || !1, Qt = t.SANITIZE_DOM !== !1, Vt = t.SANITIZE_NAMED_PROPS || !1, Lt = t.KEEP_CONTENT !== !1, et = t.IN_PLACE || !1, $t = t.ALLOWED_URI_REGEXP || De, Z = t.NAMESPACE || F, ht = t.MATHML_TEXT_INTEGRATION_POINTS || ht, Tt = t.HTML_INTEGRATION_POINTS || Tt, T = t.CUSTOM_ELEMENT_HANDLING || {}, t.CUSTOM_ELEMENT_HANDLING && ie(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = t.CUSTOM_ELEMENT_HANDLING.tagNameCheck), t.CUSTOM_ELEMENT_HANDLING && ie(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), t.CUSTOM_ELEMENT_HANDLING && typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), X && (Ot = !1), ft && (q = !0), K && (E = f({}, Se), S = [], K.html === !0 && (f(E, _e), f(S, be)), K.svg === !0 && (f(E, Ft), f(S, Bt), f(S, gt)), K.svgFilters === !0 && (f(E, Ht), f(S, Bt), f(S, gt)), K.mathMl === !0 && (f(E, zt), f(S, ye), f(S, gt))), t.ADD_TAGS && (typeof t.ADD_TAGS == "function" ? $.tagCheck = t.ADD_TAGS : (E === Xt && (E = U(E)), f(E, t.ADD_TAGS, g))), t.ADD_ATTR && (typeof t.ADD_ATTR == "function" ? $.attributeCheck = t.ADD_ATTR : (S === qt && (S = U(S)), f(S, t.ADD_ATTR, g))), t.ADD_URI_SAFE_ATTR && f(It, t.ADD_URI_SAFE_ATTR, g), t.FORBID_CONTENTS && (v === Ct && (v = U(v)), f(v, t.FORBID_CONTENTS, g)), t.ADD_FORBID_CONTENTS && (v === Ct && (v = U(v)), f(v, t.ADD_FORBID_CONTENTS, g)), Lt && (E["#text"] = !0), W && f(E, ["html", "head", "body"]), E.table && (f(E, ["tbody"]), delete tt.tbody), t.TRUSTED_TYPES_POLICY) {
267
267
  if (typeof t.TRUSTED_TYPES_POLICY.createHTML != "function")
268
268
  throw st('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
269
269
  if (typeof t.TRUSTED_TYPES_POLICY.createScriptURL != "function")
270
270
  throw st('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
271
271
  O = t.TRUSTED_TYPES_POLICY, V = O.createHTML("");
272
272
  } else
273
- O === void 0 && (O = Sn(B, s)), O !== null && typeof V == "string" && (V = O.createHTML(""));
274
- L && L(t), K = t;
273
+ O === void 0 && (O = Sn(x, s)), O !== null && typeof V == "string" && (V = O.createHTML(""));
274
+ L && L(t), J = t;
275
275
  }
276
276
  }, re = f({}, [...Ft, ...Ht, ...un]), oe = f({}, [...zt, ...fn]), qe = function(t) {
277
277
  let n = ct(t);
278
278
  (!n || !n.tagName) && (n = {
279
- namespaceURI: q,
279
+ namespaceURI: Z,
280
280
  tagName: "template"
281
281
  });
282
- const o = gt(t.tagName), h = gt(n.tagName);
283
- return xt[t.namespaceURI] ? t.namespaceURI === dt ? n.namespaceURI === U ? o === "svg" : n.namespaceURI === mt ? o === "svg" && (h === "annotation-xml" || ht[h]) : !!re[o] : t.namespaceURI === mt ? n.namespaceURI === U ? o === "math" : n.namespaceURI === dt ? o === "math" && Tt[h] : !!oe[o] : t.namespaceURI === U ? n.namespaceURI === dt && !Tt[h] || n.namespaceURI === mt && !ht[h] ? !1 : !oe[o] && (Ye[o] || !re[o]) : !!(nt === "application/xhtml+xml" && xt[t.namespaceURI]) : !1;
284
- }, v = function(t) {
282
+ const o = Et(t.tagName), h = Et(n.tagName);
283
+ return xt[t.namespaceURI] ? t.namespaceURI === dt ? n.namespaceURI === F ? o === "svg" : n.namespaceURI === mt ? o === "svg" && (h === "annotation-xml" || ht[h]) : !!re[o] : t.namespaceURI === mt ? n.namespaceURI === F ? o === "math" : n.namespaceURI === dt ? o === "math" && Tt[h] : !!oe[o] : t.namespaceURI === F ? n.namespaceURI === dt && !Tt[h] || n.namespaceURI === mt && !ht[h] ? !1 : !oe[o] && (Ye[o] || !re[o]) : !!(nt === "application/xhtml+xml" && xt[t.namespaceURI]) : !1;
284
+ }, k = function(t) {
285
285
  rt(r.removed, {
286
286
  element: t
287
287
  });
@@ -290,7 +290,7 @@ function Ce() {
290
290
  } catch {
291
291
  Me(t);
292
292
  }
293
- }, W = function(t, n) {
293
+ }, Y = function(t, n) {
294
294
  try {
295
295
  rt(r.removed, {
296
296
  attribute: n.getAttributeNode(t),
@@ -303,9 +303,9 @@ function Ce() {
303
303
  });
304
304
  }
305
305
  if (n.removeAttribute(t), t === "is")
306
- if ($ || ft)
306
+ if (q || ft)
307
307
  try {
308
- v(n);
308
+ k(n);
309
309
  } catch {
310
310
  }
311
311
  else
@@ -318,25 +318,25 @@ function Ce() {
318
318
  if (Dt)
319
319
  t = "<remove></remove>" + t;
320
320
  else {
321
- const E = Ut(t, /^[\r\n\t ]+/);
322
- o = E && E[0];
321
+ const A = Ut(t, /^[\r\n\t ]+/);
322
+ o = A && A[0];
323
323
  }
324
- nt === "application/xhtml+xml" && q === U && (t = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + t + "</body></html>");
324
+ nt === "application/xhtml+xml" && Z === F && (t = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + t + "</body></html>");
325
325
  const h = O ? O.createHTML(t) : t;
326
- if (q === U)
326
+ if (Z === F)
327
327
  try {
328
- n = new M().parseFromString(h, nt);
328
+ n = new I().parseFromString(h, nt);
329
329
  } catch {
330
330
  }
331
331
  if (!n || !n.documentElement) {
332
- n = _t.createDocument(q, "template", null);
332
+ n = _t.createDocument(Z, "template", null);
333
333
  try {
334
334
  n.documentElement.innerHTML = Mt ? V : h;
335
335
  } catch {
336
336
  }
337
337
  }
338
- const R = n.body || n.documentElement;
339
- return t && o && R.insertBefore(e.createTextNode(o), R.childNodes[0] || null), q === U ? ke.call(n, G ? "html" : "body")[0] : G ? n.documentElement : R;
338
+ const y = n.body || n.documentElement;
339
+ return t && o && y.insertBefore(e.createTextNode(o), y.childNodes[0] || null), Z === F ? ke.call(n, W ? "html" : "body")[0] : W ? n.documentElement : y;
340
340
  }, ae = function(t) {
341
341
  return Pe.call(
342
342
  t.ownerDocument || t,
@@ -346,59 +346,59 @@ function Ce() {
346
346
  null
347
347
  );
348
348
  }, Pt = function(t) {
349
- return t instanceof y && (typeof t.nodeName != "string" || typeof t.textContent != "string" || typeof t.removeChild != "function" || !(t.attributes instanceof T) || typeof t.removeAttribute != "function" || typeof t.setAttribute != "function" || typeof t.namespaceURI != "string" || typeof t.insertBefore != "function" || typeof t.hasChildNodes != "function");
349
+ return t instanceof _ && (typeof t.nodeName != "string" || typeof t.textContent != "string" || typeof t.removeChild != "function" || !(t.attributes instanceof R) || typeof t.removeAttribute != "function" || typeof t.setAttribute != "function" || typeof t.namespaceURI != "string" || typeof t.insertBefore != "function" || typeof t.hasChildNodes != "function");
350
350
  }, le = function(t) {
351
- return typeof u == "function" && t instanceof u;
351
+ return typeof c == "function" && t instanceof c;
352
352
  };
353
- function F(l, t, n) {
353
+ function H(l, t, n) {
354
354
  At(l, (o) => {
355
- o.call(r, t, n, K);
355
+ o.call(r, t, n, J);
356
356
  });
357
357
  }
358
358
  const ce = function(t) {
359
359
  let n = null;
360
- if (F(N.beforeSanitizeElements, t, null), Pt(t))
361
- return v(t), !0;
360
+ if (H(N.beforeSanitizeElements, t, null), Pt(t))
361
+ return k(t), !0;
362
362
  const o = g(t.nodeName);
363
- if (F(N.uponSanitizeElement, t, {
363
+ if (H(N.uponSanitizeElement, t, {
364
364
  tagName: o,
365
- allowedTags: _
365
+ allowedTags: E
366
366
  }), ut && t.hasChildNodes() && !le(t.firstElementChild) && D(/<[/\w!]/g, t.innerHTML) && D(/<[/\w!]/g, t.textContent) || t.nodeType === lt.progressingInstruction || ut && t.nodeType === lt.comment && D(/<[/\w]/g, t.data))
367
- return v(t), !0;
368
- if (!(Y.tagCheck instanceof Function && Y.tagCheck(o)) && (!_[o] || tt[o])) {
369
- if (!tt[o] && fe(o) && (A.tagNameCheck instanceof RegExp && D(A.tagNameCheck, o) || A.tagNameCheck instanceof Function && A.tagNameCheck(o)))
367
+ return k(t), !0;
368
+ if (!($.tagCheck instanceof Function && $.tagCheck(o)) && (!E[o] || tt[o])) {
369
+ if (!tt[o] && fe(o) && (T.tagNameCheck instanceof RegExp && D(T.tagNameCheck, o) || T.tagNameCheck instanceof Function && T.tagNameCheck(o)))
370
370
  return !1;
371
- if (Lt && !P[o]) {
372
- const h = ct(t) || t.parentNode, R = we(t) || t.childNodes;
373
- if (R && h) {
374
- const E = R.length;
375
- for (let I = E - 1; I >= 0; --I) {
376
- const H = Ie(R[I], !0);
377
- H.__removalCount = (t.__removalCount || 0) + 1, h.insertBefore(H, xe(t));
371
+ if (Lt && !v[o]) {
372
+ const h = ct(t) || t.parentNode, y = we(t) || t.childNodes;
373
+ if (y && h) {
374
+ const A = y.length;
375
+ for (let M = A - 1; M >= 0; --M) {
376
+ const z = Ie(y[M], !0);
377
+ z.__removalCount = (t.__removalCount || 0) + 1, h.insertBefore(z, xe(t));
378
378
  }
379
379
  }
380
380
  }
381
- return v(t), !0;
381
+ return k(t), !0;
382
382
  }
383
- return t instanceof p && !qe(t) || (o === "noscript" || o === "noembed" || o === "noframes") && D(/<\/no(script|embed|frames)/i, t.innerHTML) ? (v(t), !0) : (j && t.nodeType === lt.text && (n = t.textContent, At([St, bt, yt], (h) => {
383
+ return t instanceof p && !qe(t) || (o === "noscript" || o === "noembed" || o === "noframes") && D(/<\/no(script|embed|frames)/i, t.innerHTML) ? (k(t), !0) : (X && t.nodeType === lt.text && (n = t.textContent, At([St, bt, yt], (h) => {
384
384
  n = ot(n, h, " ");
385
385
  }), t.textContent !== n && (rt(r.removed, {
386
386
  element: t.cloneNode()
387
- }), t.textContent = n)), F(N.afterSanitizeElements, t, null), !1);
387
+ }), t.textContent = n)), H(N.afterSanitizeElements, t, null), !1);
388
388
  }, ue = function(t, n, o) {
389
389
  if (Qt && (n === "id" || n === "name") && (o in e || o in Xe))
390
390
  return !1;
391
391
  if (!(Ot && !Rt[n] && D(Fe, n))) {
392
392
  if (!(Kt && D(He, n))) {
393
- if (!(Y.attributeCheck instanceof Function && Y.attributeCheck(n, t))) {
393
+ if (!($.attributeCheck instanceof Function && $.attributeCheck(n, t))) {
394
394
  if (!S[n] || Rt[n]) {
395
395
  if (
396
396
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
397
397
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
398
398
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
399
- !(fe(t) && (A.tagNameCheck instanceof RegExp && D(A.tagNameCheck, t) || A.tagNameCheck instanceof Function && A.tagNameCheck(t)) && (A.attributeNameCheck instanceof RegExp && D(A.attributeNameCheck, n) || A.attributeNameCheck instanceof Function && A.attributeNameCheck(n, t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
399
+ !(fe(t) && (T.tagNameCheck instanceof RegExp && D(T.tagNameCheck, t) || T.tagNameCheck instanceof Function && T.tagNameCheck(t)) && (T.attributeNameCheck instanceof RegExp && D(T.attributeNameCheck, n) || T.attributeNameCheck instanceof Function && T.attributeNameCheck(n, t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
400
400
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
401
- n === "is" && A.allowCustomizedBuiltInElements && (A.tagNameCheck instanceof RegExp && D(A.tagNameCheck, o) || A.tagNameCheck instanceof Function && A.tagNameCheck(o)))
401
+ n === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp && D(T.tagNameCheck, o) || T.tagNameCheck instanceof Function && T.tagNameCheck(o)))
402
402
  ) return !1;
403
403
  } else if (!It[n]) {
404
404
  if (!D($t, ot(o, jt, ""))) {
@@ -417,7 +417,7 @@ function Ce() {
417
417
  }, fe = function(t) {
418
418
  return t !== "annotation-xml" && Ut(t, Be);
419
419
  }, pe = function(t) {
420
- F(N.beforeSanitizeAttributes, t, null);
420
+ H(N.beforeSanitizeAttributes, t, null);
421
421
  const {
422
422
  attributes: n
423
423
  } = t;
@@ -432,40 +432,40 @@ function Ce() {
432
432
  };
433
433
  let h = n.length;
434
434
  for (; h--; ) {
435
- const R = n[h], {
436
- name: E,
437
- namespaceURI: I,
438
- value: H
439
- } = R, Z = g(E), vt = H;
440
- let b = E === "value" ? vt : an(vt);
441
- if (o.attrName = Z, o.attrValue = b, o.keepAttr = !0, o.forceKeepAttr = void 0, F(N.uponSanitizeAttribute, t, o), b = o.attrValue, Vt && (Z === "id" || Z === "name") && (W(E, t), b = Ge + b), ut && D(/((--!?|])>)|<\/(style|title|textarea)/i, b)) {
442
- W(E, t);
435
+ const y = n[h], {
436
+ name: A,
437
+ namespaceURI: M,
438
+ value: z
439
+ } = y, Q = g(A), vt = z;
440
+ let b = A === "value" ? vt : an(vt);
441
+ if (o.attrName = Q, o.attrValue = b, o.keepAttr = !0, o.forceKeepAttr = void 0, H(N.uponSanitizeAttribute, t, o), b = o.attrValue, Vt && (Q === "id" || Q === "name") && (Y(A, t), b = Ge + b), ut && D(/((--!?|])>)|<\/(style|title|textarea)/i, b)) {
442
+ Y(A, t);
443
443
  continue;
444
444
  }
445
- if (Z === "attributename" && Ut(b, "href")) {
446
- W(E, t);
445
+ if (Q === "attributename" && Ut(b, "href")) {
446
+ Y(A, t);
447
447
  continue;
448
448
  }
449
449
  if (o.forceKeepAttr)
450
450
  continue;
451
451
  if (!o.keepAttr) {
452
- W(E, t);
452
+ Y(A, t);
453
453
  continue;
454
454
  }
455
455
  if (!Jt && D(/\/>/i, b)) {
456
- W(E, t);
456
+ Y(A, t);
457
457
  continue;
458
458
  }
459
- j && At([St, bt, yt], (de) => {
459
+ X && At([St, bt, yt], (de) => {
460
460
  b = ot(b, de, " ");
461
461
  });
462
462
  const me = g(t.nodeName);
463
- if (!ue(me, Z, b)) {
464
- W(E, t);
463
+ if (!ue(me, Q, b)) {
464
+ Y(A, t);
465
465
  continue;
466
466
  }
467
- if (O && typeof B == "object" && typeof B.getAttributeType == "function" && !I)
468
- switch (B.getAttributeType(me, Z)) {
467
+ if (O && typeof x == "object" && typeof x.getAttributeType == "function" && !M)
468
+ switch (x.getAttributeType(me, Q)) {
469
469
  case "TrustedHTML": {
470
470
  b = O.createHTML(b);
471
471
  break;
@@ -477,21 +477,21 @@ function Ce() {
477
477
  }
478
478
  if (b !== vt)
479
479
  try {
480
- I ? t.setAttributeNS(I, E, b) : t.setAttribute(E, b), Pt(t) ? v(t) : ge(r.removed);
480
+ M ? t.setAttributeNS(M, A, b) : t.setAttribute(A, b), Pt(t) ? k(t) : Ee(r.removed);
481
481
  } catch {
482
- W(E, t);
482
+ Y(A, t);
483
483
  }
484
484
  }
485
- F(N.afterSanitizeAttributes, t, null);
485
+ H(N.afterSanitizeAttributes, t, null);
486
486
  }, Ke = function l(t) {
487
487
  let n = null;
488
488
  const o = ae(t);
489
- for (F(N.beforeSanitizeShadowDOM, t, null); n = o.nextNode(); )
490
- F(N.uponSanitizeShadowNode, n, null), ce(n), pe(n), n.content instanceof d && l(n.content);
491
- F(N.afterSanitizeShadowDOM, t, null);
489
+ for (H(N.beforeSanitizeShadowDOM, t, null); n = o.nextNode(); )
490
+ H(N.uponSanitizeShadowNode, n, null), ce(n), pe(n), n.content instanceof d && l(n.content);
491
+ H(N.afterSanitizeShadowDOM, t, null);
492
492
  };
493
493
  return r.sanitize = function(l) {
494
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = null, o = null, h = null, R = null;
494
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = null, o = null, h = null, y = null;
495
495
  if (Mt = !l, Mt && (l = "<!-->"), typeof l != "string" && !le(l))
496
496
  if (typeof l.toString == "function") {
497
497
  if (l = l.toString(), typeof l != "string")
@@ -502,45 +502,45 @@ function Ce() {
502
502
  return l;
503
503
  if (Nt || wt(t), r.removed = [], typeof l == "string" && (et = !1), et) {
504
504
  if (l.nodeName) {
505
- const H = g(l.nodeName);
506
- if (!_[H] || tt[H])
505
+ const z = g(l.nodeName);
506
+ if (!E[z] || tt[z])
507
507
  throw st("root node is forbidden and cannot be sanitized in-place");
508
508
  }
509
- } else if (l instanceof u)
509
+ } else if (l instanceof c)
510
510
  n = se("<!---->"), o = n.ownerDocument.importNode(l, !0), o.nodeType === lt.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? n = o : n.appendChild(o);
511
511
  else {
512
- if (!$ && !j && !G && // eslint-disable-next-line unicorn/prefer-includes
512
+ if (!q && !X && !W && // eslint-disable-next-line unicorn/prefer-includes
513
513
  l.indexOf("<") === -1)
514
514
  return O && pt ? O.createHTML(l) : l;
515
515
  if (n = se(l), !n)
516
- return $ ? null : pt ? V : "";
516
+ return q ? null : pt ? V : "";
517
517
  }
518
- n && Dt && v(n.firstChild);
519
- const E = ae(et ? l : n);
520
- for (; h = E.nextNode(); )
518
+ n && Dt && k(n.firstChild);
519
+ const A = ae(et ? l : n);
520
+ for (; h = A.nextNode(); )
521
521
  ce(h), pe(h), h.content instanceof d && Ke(h.content);
522
522
  if (et)
523
523
  return l;
524
- if ($) {
524
+ if (q) {
525
525
  if (ft)
526
- for (R = ve.call(n.ownerDocument); n.firstChild; )
527
- R.appendChild(n.firstChild);
526
+ for (y = ve.call(n.ownerDocument); n.firstChild; )
527
+ y.appendChild(n.firstChild);
528
528
  else
529
- R = n;
530
- return (S.shadowroot || S.shadowrootmode) && (R = Ue.call(i, R, !0)), R;
529
+ y = n;
530
+ return (S.shadowroot || S.shadowrootmode) && (y = Ue.call(i, y, !0)), y;
531
531
  }
532
- let I = G ? n.outerHTML : n.innerHTML;
533
- return G && _["!doctype"] && n.ownerDocument && n.ownerDocument.doctype && n.ownerDocument.doctype.name && D(Le, n.ownerDocument.doctype.name) && (I = "<!DOCTYPE " + n.ownerDocument.doctype.name + `>
534
- ` + I), j && At([St, bt, yt], (H) => {
535
- I = ot(I, H, " ");
536
- }), O && pt ? O.createHTML(I) : I;
532
+ let M = W ? n.outerHTML : n.innerHTML;
533
+ return W && E["!doctype"] && n.ownerDocument && n.ownerDocument.doctype && n.ownerDocument.doctype.name && D(Le, n.ownerDocument.doctype.name) && (M = "<!DOCTYPE " + n.ownerDocument.doctype.name + `>
534
+ ` + M), X && At([St, bt, yt], (z) => {
535
+ M = ot(M, z, " ");
536
+ }), O && pt ? O.createHTML(M) : M;
537
537
  }, r.setConfig = function() {
538
538
  let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
539
539
  wt(l), Nt = !0;
540
540
  }, r.clearConfig = function() {
541
- K = null, Nt = !1;
541
+ J = null, Nt = !1;
542
542
  }, r.isValidAttribute = function(l, t, n) {
543
- K || wt({});
543
+ J || wt({});
544
544
  const o = g(l), h = g(t);
545
545
  return ue(o, h, n);
546
546
  }, r.addHook = function(l, t) {
@@ -550,7 +550,7 @@ function Ce() {
550
550
  const n = rn(N[l], t);
551
551
  return n === -1 ? void 0 : on(N[l], n, 1)[0];
552
552
  }
553
- return ge(N[l]);
553
+ return Ee(N[l]);
554
554
  }, r.removeHooks = function(l) {
555
555
  N[l] = [];
556
556
  }, r.removeAllHooks = function() {
@@ -560,18 +560,18 @@ function Ce() {
560
560
  var bn = Ce();
561
561
  const yn = bn(window), Rn = (a) => yn.sanitize(a, {
562
562
  RETURN_TRUSTED_TYPE: !0,
563
- USE_PROFILES: { html: !0 },
563
+ USE_PROFILES: { html: !0, svg: !0, svgFilters: !0 },
564
564
  CUSTOM_ELEMENT_HANDLING: {
565
565
  tagNameCheck: /^ea-/,
566
566
  attributeNameCheck: /.*/,
567
567
  allowCustomizedBuiltInElements: !0
568
568
  }
569
569
  });
570
- var z;
570
+ var B;
571
571
  class Cn extends HTMLElement {
572
572
  constructor() {
573
573
  super();
574
- Te(this, z, {});
574
+ Te(this, B, {});
575
575
  it(this, "isMounted", !0);
576
576
  it(this, "props", {
577
577
  locale: "en-US"
@@ -582,86 +582,87 @@ class Cn extends HTMLElement {
582
582
  * type: (Function|Array<*>),
583
583
  * default: any,
584
584
  * props?: Boolean,
585
+ * repeatable?: Boolean,
585
586
  * rawFunction?: Boolean,
586
587
  * observer?: (newVal: any, oldVal?: any) => void
587
588
  * }>} states 配置对象,每个 key 是一个响应式字段名
588
589
  * @returns {void}
589
590
  */
590
591
  it(this, "properties", (e) => {
591
- const i = (c) => {
592
- if (c === Boolean)
592
+ const i = (u) => {
593
+ if (u === Boolean)
593
594
  return "Boolean";
594
- if (c === Number)
595
+ if (u === Number)
595
596
  return "Number";
596
- if (c === String || Array.isArray(c))
597
+ if (u === String || Array.isArray(u))
597
598
  return "String";
598
- if (c === RegExp)
599
+ if (u === RegExp)
599
600
  return "RegExp";
600
- if (c === Date)
601
+ if (u === Date)
601
602
  return "Date";
602
- if (c === Array)
603
+ if (u === Array)
603
604
  return "Array";
604
- if (typeof c == "object" && c !== null)
605
+ if (typeof u == "object" && u !== null)
605
606
  try {
606
- return Object.entries(c).filter(
607
+ return Object.entries(u).filter(
607
608
  (p) => typeof p[1] == "function" ? p[1]() : !1
608
609
  )[0][0];
609
610
  } catch {
610
611
  console.error(
611
612
  `[${this.tagName}] Every "type" entry must be a function. Received:`,
612
- c
613
+ u
613
614
  );
614
615
  }
615
- return c || "String";
616
- }, s = (c) => typeof c == "function" ? c() : c || null, d = (c, u) => {
617
- const p = e[c], m = p == null ? void 0 : p.type;
618
- if (c === "Function" || m === Function)
619
- return p.rawFunction ? u : u == null ? void 0 : u();
620
- if (c === "Array" || m === Array)
621
- return u;
616
+ return u || "String";
617
+ }, s = (u) => typeof u == "function" ? u() : u || null, d = (u, c) => {
618
+ const p = e[u], m = p == null ? void 0 : p.type;
619
+ if (u === "Function" || m === Function)
620
+ return p.rawFunction ? c : c == null ? void 0 : c();
621
+ if (u === "Array" || m === Array)
622
+ return c;
622
623
  if (m === Boolean)
623
- return u === "" || u === "true" || u === !0;
624
+ return c === "" || c === "true" || c === !0;
624
625
  if (m === Number) {
625
- const T = Number(u);
626
- return isNaN(T) ? s(p == null ? void 0 : p.default) : T;
626
+ const R = Number(c);
627
+ return isNaN(R) ? s(p == null ? void 0 : p.default) : R;
627
628
  }
628
629
  if (m === Date)
629
- return new Date(u);
630
+ return new Date(c);
630
631
  if (Array.isArray(m))
631
- return m.includes(u) ? u : s(p == null ? void 0 : p.default);
632
+ return m.includes(c) ? c : s(p == null ? void 0 : p.default);
632
633
  if (m === RegExp)
633
- return u.match(m) ? JSON.stringify(u) : s(p == null ? void 0 : p.default);
634
+ return c.match(m) ? JSON.stringify(c) : s(p == null ? void 0 : p.default);
634
635
  if (m === String)
635
- return typeof u == "function" ? u() : u;
636
+ return typeof c == "function" ? c() : c;
636
637
  if (typeof m == "object" && m !== null) {
637
- const T = Object.entries(m).filter((y) => y[1]());
638
- return T && (T != null && T.length) ? d(T[0][0], u) : s(p == null ? void 0 : p.default);
638
+ const R = Object.entries(m).filter((_) => _[1]());
639
+ return R && (R != null && R.length) ? d(R[0][0], c) : s(p == null ? void 0 : p.default);
639
640
  }
640
- return u || (p == null ? void 0 : p.default);
641
+ return c || (p == null ? void 0 : p.default);
641
642
  };
642
- for (const [c, u] of Object.entries(e)) {
643
- const p = Ae.String.toLowerCamelCase(c);
644
- J(this, z)[p] = u, Object.getOwnPropertyDescriptor(this, p) && delete this[p], Object.getOwnPropertyDescriptor(this, c) && delete this[c], u != null && u.props ? Object.defineProperty(this, c, {
643
+ for (const [u, c] of Object.entries(e)) {
644
+ const p = Ae.String.toLowerCamelCase(u);
645
+ j(this, B)[p] = c, Object.getOwnPropertyDescriptor(this, p) && delete this[p], Object.getOwnPropertyDescriptor(this, u) && delete this[u], c != null && c.props ? Object.defineProperty(this, u, {
645
646
  get: () => {
646
647
  var m;
647
648
  return d(
648
- c,
649
- ((m = this.props) == null ? void 0 : m[c]) || s(u.default)
649
+ u,
650
+ ((m = this.props) == null ? void 0 : m[u]) || s(c.default)
650
651
  );
651
652
  },
652
653
  set: (m) => {
653
- var y, M;
654
- const T = (y = this.props) == null ? void 0 : y[c];
655
- this.props[c] = m, (M = u == null ? void 0 : u.observer) == null || M.call(u, m, T);
654
+ var _, I;
655
+ const R = (_ = this.props) == null ? void 0 : _[u];
656
+ this.props[u] = m, (I = c == null ? void 0 : c.observer) == null || I.call(c, m, R);
656
657
  },
657
658
  configurable: !0,
658
659
  enumerable: !0
659
660
  }) : Object.defineProperty(this, p, {
660
661
  get: () => {
661
- const m = i(u.type);
662
+ const m = i(c.type);
662
663
  return this[`getAttr${m}`](
663
664
  p,
664
- s(u == null ? void 0 : u.default)
665
+ s(c == null ? void 0 : c.default)
665
666
  );
666
667
  },
667
668
  set: (m) => {
@@ -725,33 +726,33 @@ class Cn extends HTMLElement {
725
726
  ].join(" ");
726
727
  }
727
728
  attributeChangedCallback(e, i, s) {
728
- var d, c, u;
729
- if (!(s === i || !this.isMounted)) {
729
+ var d, u, c, p;
730
+ if (!((s === i || !this.isMounted) && !((d = j(this, B)[e]) != null && d.repeatable))) {
730
731
  if (e === "locale") {
731
732
  this.props.locale = s, this.$updateLocalization(s);
732
733
  return;
733
734
  }
734
735
  try {
735
- if ((d = J(this, z)[e]) != null && d.props) return;
736
- const p = (m, T) => {
737
- const y = J(this, z)[m], M = y == null ? void 0 : y.type;
738
- if (m === "Array" || M === Array)
739
- return T;
740
- if (M === Boolean)
741
- return T === "" || T === "true" || T === !0;
742
- if (M === Number) {
743
- const B = Number(T);
744
- return isNaN(B) ? y.default : B;
736
+ if ((u = j(this, B)[e]) != null && u.props) return;
737
+ const m = (R, _) => {
738
+ const I = j(this, B)[R], x = I == null ? void 0 : I.type;
739
+ if (R === "Array" || x === Array)
740
+ return _;
741
+ if (x === Boolean)
742
+ return _ === "" || _ === "true" || _ === !0;
743
+ if (x === Number) {
744
+ const G = Number(_);
745
+ return isNaN(G) ? I.default : G;
745
746
  }
746
- return Array.isArray(M) ? M.includes(T) ? T : y.default : M === RegExp ? T.match(M) ? JSON.stringify(T) : y.default : T || (y == null ? void 0 : y.default);
747
+ return Array.isArray(x) ? x.includes(_) ? _ : I.default : x === RegExp ? _.match(x) ? JSON.stringify(_) : I.default : _ || (I == null ? void 0 : I.default);
747
748
  };
748
- (u = (c = J(this, z)[e]) == null ? void 0 : c.observer) == null || u.call(
749
+ (p = (c = j(this, B)[e]) == null ? void 0 : c.observer) == null || p.call(
749
750
  c,
750
751
  this[e],
751
- p(e, i)
752
+ m(e, i)
752
753
  );
753
- } catch (p) {
754
- process.env.NODE_ENV === "development" && this.isMounted && console.error(p, this);
754
+ } catch (m) {
755
+ process.env.NODE_ENV === "development" && this.isMounted && console.error(m, this);
755
756
  }
756
757
  }
757
758
  }
@@ -849,14 +850,14 @@ class Cn extends HTMLElement {
849
850
  }
850
851
  getAttrString(e, i) {
851
852
  const s = this.getAttribute(e);
852
- return s || i || "";
853
+ return !s || s === "null" ? i || "" : s;
853
854
  }
854
855
  getAttrDate(e, i) {
855
856
  let s = this.getAttrNumber(e);
856
857
  return (isNaN(s) || !s) && (s = this.getAttrString(e)), isNaN(new Date(s)) ? i || null : new Date(s);
857
858
  }
858
859
  setAttr(e, i) {
859
- if (i || J(this, z)[e].default || i === 0) {
860
+ if (i || j(this, B)[e].default || i === 0) {
860
861
  const s = Ae.JSON.stringify(i);
861
862
  this.setAttribute(
862
863
  e,
@@ -866,7 +867,8 @@ class Cn extends HTMLElement {
866
867
  this.removeAttribute(e);
867
868
  }
868
869
  }
869
- z = new WeakMap();
870
+ B = new WeakMap();
870
871
  export {
871
- Cn as B
872
+ Cn as B,
873
+ Rn as h
872
874
  };