import { r as Tt, j as we, c as Xt } from "./index-6wLGsgHc.js";
const {
  entries: yt,
  setPrototypeOf: ct,
  isFrozen: $t,
  getPrototypeOf: Kt,
  getOwnPropertyDescriptor: Vt
} = Object;
let {
  freeze: A,
  seal: b,
  create: xe
} = Object, {
  apply: Ie,
  construct: Me
} = typeof Reflect < "u" && Reflect;
A || (A = function(o) {
  return o;
});
b || (b = function(o) {
  return o;
});
Ie || (Ie = function(o, r) {
  for (var i = arguments.length, a = new Array(i > 2 ? i - 2 : 0), m = 2; m < i; m++) a[m - 2] = arguments[m];
  return o.apply(r, a);
});
Me || (Me = function(o) {
  for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++) i[a - 1] = arguments[a];
  return new o(...i);
});
const le = _(Array.prototype.forEach), Zt = _(Array.prototype.lastIndexOf), ut = _(Array.prototype.pop), X = _(Array.prototype.push), Qt = _(Array.prototype.splice), ce = _(String.prototype.toLowerCase), Ce = _(String.prototype.toString), De = _(String.prototype.match), $ = _(String.prototype.replace), Jt = _(String.prototype.indexOf), en = _(String.prototype.trim), R = _(Object.prototype.hasOwnProperty), E = _(RegExp.prototype.test), K = tn(TypeError);
function _(o) {
  return function(r) {
    r instanceof RegExp && (r.lastIndex = 0);
    for (var i = arguments.length, a = new Array(i > 1 ? i - 1 : 0), m = 1; m < i; m++) a[m - 1] = arguments[m];
    return Ie(o, r, a);
  };
}
function tn(o) {
  return function() {
    for (var r = arguments.length, i = new Array(r), a = 0; a < r; a++) i[a] = arguments[a];
    return Me(o, i);
  };
}
function l(o, r) {
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ce;
  ct && ct(o, null);
  let a = r.length;
  for (; a--; ) {
    let m = r[a];
    if (typeof m == "string") {
      const w = i(m);
      w !== m && ($t(r) || (r[a] = w), m = w);
    }
    o[m] = !0;
  }
  return o;
}
function nn(o) {
  for (let r = 0; r < o.length; r++) R(o, r) || (o[r] = null);
  return o;
}
function v(o) {
  const r = xe(null);
  for (const [i, a] of yt(o)) R(o, i) && (Array.isArray(a) ? r[i] = nn(a) : a && typeof a == "object" && a.constructor === Object ? r[i] = v(a) : r[i] = a);
  return r;
}
function V(o, r) {
  for (; o !== null; ) {
    const a = Vt(o, r);
    if (a) {
      if (a.get) return _(a.get);
      if (typeof a.value == "function") return _(a.value);
    }
    o = Kt(o);
  }
  function i() {
    return null;
  }
  return i;
}
const mt = A(["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"]), ke = A(["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"]), ve = A(["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"]), rn = A(["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"]), Le = A(["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"]), on = A(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ft = A(["#text"]), pt = A(["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"]), Oe = A(["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 = A(["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"]), se = A(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), an = b(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ln = b(/<%[\w\W]*|[\w\W]*%>/gm), sn = b(/\$\{[\w\W]*/gm), cn = b(/^data-[\-\w.\u00B7-\uFFFF]+$/), un = b(/^aria-[\-\w]+$/), Et = b(
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
  // eslint-disable-line no-useless-escape
), mn = b(/^(?:\w+script|data):/i), fn = b(
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
  // eslint-disable-line no-control-regex
), At = b(/^html$/i), pn = b(/^[a-z][.\w]*(-[.\w]+)+$/i);
var gt = /* @__PURE__ */ Object.freeze({
  __proto__: null,
  ARIA_ATTR: un,
  ATTR_WHITESPACE: fn,
  CUSTOM_ELEMENT: pn,
  DATA_ATTR: cn,
  DOCTYPE_NAME: At,
  ERB_EXPR: ln,
  IS_ALLOWED_URI: Et,
  IS_SCRIPT_OR_DATA: mn,
  MUSTACHE_EXPR: an,
  TMPLIT_EXPR: sn
});
const Z = {
  element: 1,
  text: 3,
  // Deprecated
  progressingInstruction: 7,
  comment: 8,
  document: 9
}, dn = function() {
  return typeof window > "u" ? null : window;
}, gn = function(o, r) {
  if (typeof o != "object" || typeof o.createPolicy != "function") return null;
  let i = null;
  const a = "data-tt-policy-suffix";
  r && r.hasAttribute(a) && (i = r.getAttribute(a));
  const m = "dompurify" + (i ? "#" + i : "");
  try {
    return o.createPolicy(m, {
      createHTML(w) {
        return w;
      },
      createScriptURL(w) {
        return w;
      }
    });
  } catch {
    return console.warn("TrustedTypes policy " + m + " could not be created."), null;
  }
}, ht = function() {
  return {
    afterSanitizeAttributes: [],
    afterSanitizeElements: [],
    afterSanitizeShadowDOM: [],
    beforeSanitizeAttributes: [],
    beforeSanitizeElements: [],
    beforeSanitizeShadowDOM: [],
    uponSanitizeAttribute: [],
    uponSanitizeElement: [],
    uponSanitizeShadowNode: []
  };
};
function _t() {
  let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : dn();
  const r = (e) => _t(e);
  if (r.version = "3.3.0", r.removed = [], !o || !o.document || o.document.nodeType !== Z.document || !o.Element) return r.isSupported = !1, r;
  let {
    document: i
  } = o;
  const a = i, m = a.currentScript, {
    DocumentFragment: w,
    HTMLTemplateElement: bt,
    Node: ue,
    Element: He,
    NodeFilter: G,
    NamedNodeMap: St = o.NamedNodeMap || o.MozNamedAttrMap,
    HTMLFormElement: Nt,
    DOMParser: Rt,
    trustedTypes: Q
  } = o, W = He.prototype, wt = V(W, "cloneNode"), Ct = V(W, "remove"), Dt = V(W, "nextSibling"), kt = V(W, "childNodes"), J = V(W, "parentNode");
  if (typeof bt == "function") {
    const e = i.createElement("template");
    e.content && e.content.ownerDocument && (i = e.content.ownerDocument);
  }
  let T, B = "";
  const {
    implementation: me,
    createNodeIterator: vt,
    createDocumentFragment: Lt,
    getElementsByTagName: Ot
  } = i, {
    importNode: xt
  } = a;
  let y = ht();
  r.isSupported = typeof yt == "function" && typeof J == "function" && me && me.createHTMLDocument !== void 0;
  const {
    MUSTACHE_EXPR: fe,
    ERB_EXPR: pe,
    TMPLIT_EXPR: de,
    DATA_ATTR: It,
    ARIA_ATTR: Mt,
    IS_SCRIPT_OR_DATA: Ut,
    ATTR_WHITESPACE: ze,
    CUSTOM_ELEMENT: Pt
  } = gt;
  let {
    IS_ALLOWED_URI: Fe
  } = gt, f = null;
  const Ge = l({}, [...mt, ...ke, ...ve, ...Le, ...ft]);
  let d = null;
  const We = l({}, [...pt, ...Oe, ...dt, ...se]);
  let u = Object.seal(xe(null, {
    tagNameCheck: {
      writable: !0,
      configurable: !1,
      enumerable: !0,
      value: null
    },
    attributeNameCheck: {
      writable: !0,
      configurable: !1,
      enumerable: !0,
      value: null
    },
    allowCustomizedBuiltInElements: {
      writable: !0,
      configurable: !1,
      enumerable: !0,
      value: !1
    }
  })), Y = null, ge = null;
  const I = Object.seal(xe(null, {
    tagCheck: {
      writable: !0,
      configurable: !1,
      enumerable: !0,
      value: null
    },
    attributeCheck: {
      writable: !0,
      configurable: !1,
      enumerable: !0,
      value: null
    }
  }));
  let Be = !0, he = !0, Ye = !1, je = !0, M = !1, ee = !0, L = !1, Te = !1, ye = !1, U = !1, te = !1, ne = !1, qe = !0, Xe = !1;
  const Ht = "user-content-";
  let Ee = !0, j = !1, P = {}, H = null;
  const $e = l({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
  let Ke = null;
  const Ve = l({}, ["audio", "video", "img", "source", "image", "track"]);
  let Ae = null;
  const Ze = l({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), re = "http://www.w3.org/1998/Math/MathML", oe = "http://www.w3.org/2000/svg", C = "http://www.w3.org/1999/xhtml";
  let z = C, _e = !1, be = null;
  const zt = l({}, [re, oe, C], Ce);
  let ae = l({}, ["mi", "mo", "mn", "ms", "mtext"]), ie = l({}, ["annotation-xml"]);
  const Ft = l({}, ["title", "style", "font", "a", "script"]);
  let q = null;
  const Gt = ["application/xhtml+xml", "text/html"], Wt = "text/html";
  let p = null, F = null;
  const Bt = i.createElement("form"), Qe = function(e) {
    return e instanceof RegExp || e instanceof Function;
  }, Se = function() {
    let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
    if (!(F && F === e)) {
      if ((!e || typeof e != "object") && (e = {}), e = v(e), q = // eslint-disable-next-line unicorn/prefer-includes
      Gt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Wt : e.PARSER_MEDIA_TYPE, p = q === "application/xhtml+xml" ? Ce : ce, f = R(e, "ALLOWED_TAGS") ? l({}, e.ALLOWED_TAGS, p) : Ge, d = R(e, "ALLOWED_ATTR") ? l({}, e.ALLOWED_ATTR, p) : We, be = R(e, "ALLOWED_NAMESPACES") ? l({}, e.ALLOWED_NAMESPACES, Ce) : zt, Ae = R(e, "ADD_URI_SAFE_ATTR") ? l(v(Ze), e.ADD_URI_SAFE_ATTR, p) : Ze, Ke = R(e, "ADD_DATA_URI_TAGS") ? l(v(Ve), e.ADD_DATA_URI_TAGS, p) : Ve, H = R(e, "FORBID_CONTENTS") ? l({}, e.FORBID_CONTENTS, p) : $e, Y = R(e, "FORBID_TAGS") ? l({}, e.FORBID_TAGS, p) : v({}), ge = R(e, "FORBID_ATTR") ? l({}, e.FORBID_ATTR, p) : v({}), P = R(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Be = e.ALLOW_ARIA_ATTR !== !1, he = e.ALLOW_DATA_ATTR !== !1, Ye = e.ALLOW_UNKNOWN_PROTOCOLS || !1, je = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, M = e.SAFE_FOR_TEMPLATES || !1, ee = e.SAFE_FOR_XML !== !1, L = e.WHOLE_DOCUMENT || !1, U = e.RETURN_DOM || !1, te = e.RETURN_DOM_FRAGMENT || !1, ne = e.RETURN_TRUSTED_TYPE || !1, ye = e.FORCE_BODY || !1, qe = e.SANITIZE_DOM !== !1, Xe = e.SANITIZE_NAMED_PROPS || !1, Ee = e.KEEP_CONTENT !== !1, j = e.IN_PLACE || !1, Fe = e.ALLOWED_URI_REGEXP || Et, z = e.NAMESPACE || C, ae = e.MATHML_TEXT_INTEGRATION_POINTS || ae, ie = e.HTML_INTEGRATION_POINTS || ie, u = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Qe(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), M && (he = !1), te && (U = !0), P && (f = l({}, ft), d = [], P.html === !0 && (l(f, mt), l(d, pt)), P.svg === !0 && (l(f, ke), l(d, Oe), l(d, se)), P.svgFilters === !0 && (l(f, ve), l(d, Oe), l(d, se)), P.mathMl === !0 && (l(f, Le), l(d, dt), l(d, se))), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? I.tagCheck = e.ADD_TAGS : (f === Ge && (f = v(f)), l(f, e.ADD_TAGS, p))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? I.attributeCheck = e.ADD_ATTR : (d === We && (d = v(d)), l(d, e.ADD_ATTR, p))), e.ADD_URI_SAFE_ATTR && l(Ae, e.ADD_URI_SAFE_ATTR, p), e.FORBID_CONTENTS && (H === $e && (H = v(H)), l(H, e.FORBID_CONTENTS, p)), Ee && (f["#text"] = !0), L && l(f, ["html", "head", "body"]), f.table && (l(f, ["tbody"]), delete Y.tbody), e.TRUSTED_TYPES_POLICY) {
        if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
        if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
        T = e.TRUSTED_TYPES_POLICY, B = T.createHTML("");
      } else T === void 0 && (T = gn(Q, m)), T !== null && typeof B == "string" && (B = T.createHTML(""));
      A && A(e), F = e;
    }
  }, Je = l({}, [...ke, ...ve, ...rn]), et = l({}, [...Le, ...on]), Yt = function(e) {
    let n = J(e);
    (!n || !n.tagName) && (n = {
      namespaceURI: z,
      tagName: "template"
    });
    const t = ce(e.tagName), s = ce(n.tagName);
    return be[e.namespaceURI] ? e.namespaceURI === oe ? n.namespaceURI === C ? t === "svg" : n.namespaceURI === re ? t === "svg" && (s === "annotation-xml" || ae[s]) : !!Je[t] : e.namespaceURI === re ? n.namespaceURI === C ? t === "math" : n.namespaceURI === oe ? t === "math" && ie[s] : !!et[t] : e.namespaceURI === C ? n.namespaceURI === oe && !ie[s] || n.namespaceURI === re && !ae[s] ? !1 : !et[t] && (Ft[t] || !Je[t]) : !!(q === "application/xhtml+xml" && be[e.namespaceURI]) : !1;
  }, O = function(e) {
    X(r.removed, {
      element: e
    });
    try {
      J(e).removeChild(e);
    } catch {
      Ct(e);
    }
  }, x = function(e, n) {
    try {
      X(r.removed, {
        attribute: n.getAttributeNode(e),
        from: n
      });
    } catch {
      X(r.removed, {
        attribute: null,
        from: n
      });
    }
    if (n.removeAttribute(e), e === "is") if (U || te) try {
      O(n);
    } catch {
    }
    else try {
      n.setAttribute(e, "");
    } catch {
    }
  }, tt = function(e) {
    let n = null, t = null;
    if (ye) e = "<remove></remove>" + e;
    else {
      const c = De(e, /^[\r\n\t ]+/);
      t = c && c[0];
    }
    q === "application/xhtml+xml" && z === C && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
    const s = T ? T.createHTML(e) : e;
    if (z === C) try {
      n = new Rt().parseFromString(s, q);
    } catch {
    }
    if (!n || !n.documentElement) {
      n = me.createDocument(z, "template", null);
      try {
        n.documentElement.innerHTML = _e ? B : s;
      } catch {
      }
    }
    const g = n.body || n.documentElement;
    return e && t && g.insertBefore(i.createTextNode(t), g.childNodes[0] || null), z === C ? Ot.call(n, L ? "html" : "body")[0] : L ? n.documentElement : g;
  }, nt = function(e) {
    return vt.call(
      e.ownerDocument || e,
      e,
      // eslint-disable-next-line no-bitwise
      G.SHOW_ELEMENT | G.SHOW_COMMENT | G.SHOW_TEXT | G.SHOW_PROCESSING_INSTRUCTION | G.SHOW_CDATA_SECTION,
      null
    );
  }, Ne = function(e) {
    return e instanceof Nt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof St) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
  }, rt = function(e) {
    return typeof ue == "function" && e instanceof ue;
  };
  function D(e, n, t) {
    le(e, (s) => {
      s.call(r, n, t, F);
    });
  }
  const ot = function(e) {
    let n = null;
    if (D(y.beforeSanitizeElements, e, null), Ne(e)) return O(e), !0;
    const t = p(e.nodeName);
    if (D(y.uponSanitizeElement, e, {
      tagName: t,
      allowedTags: f
    }), ee && e.hasChildNodes() && !rt(e.firstElementChild) && E(/<[/\w!]/g, e.innerHTML) && E(/<[/\w!]/g, e.textContent) || e.nodeType === Z.progressingInstruction || ee && e.nodeType === Z.comment && E(/<[/\w]/g, e.data)) return O(e), !0;
    if (!(I.tagCheck instanceof Function && I.tagCheck(t)) && (!f[t] || Y[t])) {
      if (!Y[t] && it(t) && (u.tagNameCheck instanceof RegExp && E(u.tagNameCheck, t) || u.tagNameCheck instanceof Function && u.tagNameCheck(t))) return !1;
      if (Ee && !H[t]) {
        const s = J(e) || e.parentNode, g = kt(e) || e.childNodes;
        if (g && s) {
          const c = g.length;
          for (let k = c - 1; k >= 0; --k) {
            const S = wt(g[k], !0);
            S.__removalCount = (e.__removalCount || 0) + 1, s.insertBefore(S, Dt(e));
          }
        }
      }
      return O(e), !0;
    }
    return e instanceof He && !Yt(e) || (t === "noscript" || t === "noembed" || t === "noframes") && E(/<\/no(script|embed|frames)/i, e.innerHTML) ? (O(e), !0) : (M && e.nodeType === Z.text && (n = e.textContent, le([fe, pe, de], (s) => {
      n = $(n, s, " ");
    }), e.textContent !== n && (X(r.removed, {
      element: e.cloneNode()
    }), e.textContent = n)), D(y.afterSanitizeElements, e, null), !1);
  }, at = function(e, n, t) {
    if (qe && (n === "id" || n === "name") && (t in i || t in Bt)) return !1;
    if (!(he && !ge[n] && E(It, n)) && !(Be && E(Mt, n)) && !(I.attributeCheck instanceof Function && I.attributeCheck(n, e))) {
      if (!d[n] || ge[n]) {
        if (
          // First condition does a very basic check if a) it's basically a valid custom element tagname AND
          // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
          // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
          !(it(e) && (u.tagNameCheck instanceof RegExp && E(u.tagNameCheck, e) || u.tagNameCheck instanceof Function && u.tagNameCheck(e)) && (u.attributeNameCheck instanceof RegExp && E(u.attributeNameCheck, n) || u.attributeNameCheck instanceof Function && u.attributeNameCheck(n, e)) || // Alternative, second condition checks if it's an `is`-attribute, AND
          // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
          n === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp && E(u.tagNameCheck, t) || u.tagNameCheck instanceof Function && u.tagNameCheck(t)))
        ) return !1;
      } else if (!Ae[n] && !E(Fe, $(t, ze, "")) && !((n === "src" || n === "xlink:href" || n === "href") && e !== "script" && Jt(t, "data:") === 0 && Ke[e]) && !(Ye && !E(Ut, $(t, ze, ""))) && t)
        return !1;
    }
    return !0;
  }, it = function(e) {
    return e !== "annotation-xml" && De(e, Pt);
  }, lt = function(e) {
    D(y.beforeSanitizeAttributes, e, null);
    const {
      attributes: n
    } = e;
    if (!n || Ne(e)) return;
    const t = {
      attrName: "",
      attrValue: "",
      keepAttr: !0,
      allowedAttributes: d,
      forceKeepAttr: void 0
    };
    let s = n.length;
    for (; s--; ) {
      const g = n[s], {
        name: c,
        namespaceURI: k,
        value: S
      } = g, N = p(c), Re = S;
      let h = c === "value" ? Re : en(Re);
      if (t.attrName = N, t.attrValue = h, t.keepAttr = !0, t.forceKeepAttr = void 0, D(y.uponSanitizeAttribute, e, t), h = t.attrValue, Xe && (N === "id" || N === "name") && (x(c, e), h = Ht + h), ee && E(/((--!?|])>)|<\/(style|title|textarea)/i, h)) {
        x(c, e);
        continue;
      }
      if (N === "attributename" && De(h, "href")) {
        x(c, e);
        continue;
      }
      if (t.forceKeepAttr) continue;
      if (!t.keepAttr) {
        x(c, e);
        continue;
      }
      if (!je && E(/\/>/i, h)) {
        x(c, e);
        continue;
      }
      M && le([fe, pe, de], (qt) => {
        h = $(h, qt, " ");
      });
      const st = p(e.nodeName);
      if (!at(st, N, h)) {
        x(c, e);
        continue;
      }
      if (T && typeof Q == "object" && typeof Q.getAttributeType == "function" && !k) switch (Q.getAttributeType(st, N)) {
        case "TrustedHTML": {
          h = T.createHTML(h);
          break;
        }
        case "TrustedScriptURL": {
          h = T.createScriptURL(h);
          break;
        }
      }
      if (h !== Re) try {
        k ? e.setAttributeNS(k, c, h) : e.setAttribute(c, h), Ne(e) ? O(e) : ut(r.removed);
      } catch {
        x(c, e);
      }
    }
    D(y.afterSanitizeAttributes, e, null);
  }, jt = function e(n) {
    let t = null;
    const s = nt(n);
    for (D(y.beforeSanitizeShadowDOM, n, null); t = s.nextNode(); ) D(y.uponSanitizeShadowNode, t, null), ot(t), lt(t), t.content instanceof w && e(t.content);
    D(y.afterSanitizeShadowDOM, n, null);
  };
  return r.sanitize = function(e) {
    let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, s = null, g = null, c = null;
    if (_e = !e, _e && (e = "<!-->"), typeof e != "string" && !rt(e)) if (typeof e.toString == "function") {
      if (e = e.toString(), typeof e != "string") throw K("dirty is not a string, aborting");
    } else throw K("toString is not a function");
    if (!r.isSupported) return e;
    if (Te || Se(n), r.removed = [], typeof e == "string" && (j = !1), j) {
      if (e.nodeName) {
        const N = p(e.nodeName);
        if (!f[N] || Y[N]) throw K("root node is forbidden and cannot be sanitized in-place");
      }
    } else if (e instanceof ue) t = tt("<!---->"), s = t.ownerDocument.importNode(e, !0), s.nodeType === Z.element && s.nodeName === "BODY" || s.nodeName === "HTML" ? t = s : t.appendChild(s);
    else {
      if (!U && !M && !L && // eslint-disable-next-line unicorn/prefer-includes
      e.indexOf("<") === -1) return T && ne ? T.createHTML(e) : e;
      if (t = tt(e), !t) return U ? null : ne ? B : "";
    }
    t && ye && O(t.firstChild);
    const k = nt(j ? e : t);
    for (; g = k.nextNode(); ) ot(g), lt(g), g.content instanceof w && jt(g.content);
    if (j) return e;
    if (U) {
      if (te) for (c = Lt.call(t.ownerDocument); t.firstChild; ) c.appendChild(t.firstChild);
      else c = t;
      return (d.shadowroot || d.shadowrootmode) && (c = xt.call(a, c, !0)), c;
    }
    let S = L ? t.outerHTML : t.innerHTML;
    return L && f["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && E(At, t.ownerDocument.doctype.name) && (S = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
` + S), M && le([fe, pe, de], (N) => {
      S = $(S, N, " ");
    }), T && ne ? T.createHTML(S) : S;
  }, r.setConfig = function() {
    let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
    Se(e), Te = !0;
  }, r.clearConfig = function() {
    F = null, Te = !1;
  }, r.isValidAttribute = function(e, n, t) {
    F || Se({});
    const s = p(e), g = p(n);
    return at(s, g, t);
  }, r.addHook = function(e, n) {
    typeof n == "function" && X(y[e], n);
  }, r.removeHook = function(e, n) {
    if (n !== void 0) {
      const t = Zt(y[e], n);
      return t === -1 ? void 0 : Qt(y[e], t, 1)[0];
    }
    return ut(y[e]);
  }, r.removeHooks = function(e) {
    y[e] = [];
  }, r.removeAllHooks = function() {
    y = ht();
  }, r;
}
var Pe = _t();
const hn = /* @__PURE__ */ Xt("div", {
  target: "e18540fl0"
})({
  name: "1d3w5wq",
  styles: "width:100%"
}), Ue = "data-temp-href-target";
Pe.addHook("beforeSanitizeAttributes", function(o) {
  o instanceof HTMLElement && o.hasAttribute("target") && o.getAttribute("target") === "_blank" && o.setAttribute(Ue, "_blank");
});
Pe.addHook("afterSanitizeAttributes", function(o) {
  o instanceof HTMLElement && o.hasAttribute(Ue) && (o.setAttribute("target", "_blank"), o.setAttribute("rel", "noopener noreferrer"), o.removeAttribute(Ue));
});
const Tn = (o) => {
  const r = {
    // Default to permit HTML, SVG and MathML, this limits to HTML only
    USE_PROFILES: {
      html: !0
    },
    // glue elements like style, script or others to document.body and prevent unintuitive browser behavior in several edge-cases
    FORCE_BODY: !0
  };
  return Pe.sanitize(o, r);
};
function yn({
  element: o
}) {
  const {
    body: r
  } = o, i = Tt.useMemo(() => Tn(r), [r]);
  return /* @__PURE__ */ we.jsx(we.Fragment, {
    children: i && /* @__PURE__ */ we.jsx(hn, {
      className: "stHtml",
      "data-testid": "stHtml",
      dangerouslySetInnerHTML: {
        __html: i
      }
    })
  });
}
const An = Tt.memo(yn);
export {
  An as default
};
//# sourceMappingURL=index-GJmmE3rK-BU-FyHeu.js.map
