import{bV as an,aD as ln}from"./entry.Nxv8znR8.js";var Me={exports:{}};/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */var Tt;function gt(){return Tt||(Tt=1,function(_t,cn){(function(ie,V){_t.exports=V()})(an,function(){const{entries:ie,setPrototypeOf:V,isFrozen:Et,getPrototypeOf:ht,getOwnPropertyDescriptor:re}=Object;let{freeze:g,seal:L,create:Ce}=Object,{apply:ae,construct:le}=typeof Reflect<"u"&&Reflect;g||(g=function(o){return o}),L||(L=function(o){return o}),ae||(ae=function(o,s,a){return o.apply(s,a)}),le||(le=function(o,s){return new o(...s)});const q=R(Array.prototype.forEach),we=R(Array.prototype.pop),H=R(Array.prototype.push),$=R(String.prototype.toLowerCase),se=R(String.prototype.toString),At=R(String.prototype.match),z=R(String.prototype.replace),St=R(String.prototype.indexOf),Rt=R(String.prototype.trim),S=R(RegExp.prototype.test),G=Lt(TypeError);function R(l){return function(o){for(var s=arguments.length,a=new Array(s>1?s-1:0),_=1;_<s;_++)a[_-1]=arguments[_];return ae(l,o,a)}}function Lt(l){return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return le(l,s)}}function r(l,o){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$;V&&V(l,null);let a=o.length;for(;a--;){let _=o[a];if(typeof _=="string"){const y=s(_);y!==_&&(Et(o)||(o[a]=y),_=y)}l[_]=!0}return l}function Dt(l){for(let o=0;o<l.length;o++)re(l,o)===void 0&&(l[o]=null);return l}function b(l){const o=Ce(null);for(const[s,a]of ie(l))re(l,s)!==void 0&&(Array.isArray(a)?o[s]=Dt(a):a&&typeof a=="object"&&a.constructor===Object?o[s]=b(a):o[s]=a);return o}function K(l,o){for(;l!==null;){const a=re(l,o);if(a){if(a.get)return R(a.get);if(typeof a.value=="function")return R(a.value)}l=ht(l)}function s(a){return console.warn("fallback value for",a),null}return s}const xe=g(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ce=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fe=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yt=g(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ue=g(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Nt=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pe=g(["#text"]),ke=g(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),me=g(["accent-height","accumulate","additive","alignment-baseline","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","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","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","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","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"]),ve=g(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ot=L(/\{\{[\w\W]*|[\w\W]*\}\}/gm),bt=L(/<%[\w\W]*|[\w\W]*%>/gm),It=L(/\${[\w\W]*}/gm),Mt=L(/^data-[\-\w.\u00B7-\uFFFF]/),Ct=L(/^aria-[\-\w]+$/),Ue=L(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wt=L(/^(?:\w+script|data):/i),xt=L(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fe=L(/^html$/i);var He=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ot,ERB_EXPR:bt,TMPLIT_EXPR:It,DATA_ATTR:Mt,ARIA_ATTR:Ct,IS_ALLOWED_URI:Ue,IS_SCRIPT_OR_DATA:wt,ATTR_WHITESPACE:xt,DOCTYPE_NAME:Fe});const Pt=function(){return typeof window>"u"?null:window},kt=function(o,s){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let a=null;const _="data-tt-policy-suffix";s&&s.hasAttribute(_)&&(a=s.getAttribute(_));const y="dompurify"+(a?"#"+a:"");try{return o.createPolicy(y,{createHTML(w){return w},createScriptURL(w){return w}})}catch{return console.warn("TrustedTypes policy "+y+" could not be created."),null}};function ze(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pt();const o=i=>ze(i);if(o.version="3.0.8",o.removed=[],!l||!l.document||l.document.nodeType!==9)return o.isSupported=!1,o;let{document:s}=l;const a=s,_=a.currentScript,{DocumentFragment:y,HTMLTemplateElement:w,Node:pe,Element:Ge,NodeFilter:de,NamedNodeMap:Ut=l.NamedNodeMap||l.MozNamedAttrMap,HTMLFormElement:Ft,DOMParser:Ht,trustedTypes:J}=l,Q=Ge.prototype,zt=K(Q,"cloneNode"),Gt=K(Q,"nextSibling"),Wt=K(Q,"childNodes"),Te=K(Q,"parentNode");if(typeof w=="function"){const i=s.createElement("template");i.content&&i.content.ownerDocument&&(s=i.content.ownerDocument)}let E,W="";const{implementation:ge,createNodeIterator:Bt,createDocumentFragment:Yt,getElementsByTagName:jt}=s,{importNode:Xt}=a;let D={};o.isSupported=typeof ie=="function"&&typeof Te=="function"&&ge&&ge.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_e,ERB_EXPR:Ee,TMPLIT_EXPR:he,DATA_ATTR:Vt,ARIA_ATTR:qt,IS_SCRIPT_OR_DATA:$t,ATTR_WHITESPACE:We}=He;let{IS_ALLOWED_URI:Be}=He,u=null;const Ye=r({},[...xe,...ce,...fe,...ue,...Pe]);let m=null;const je=r({},[...ke,...me,...ve,...Z]);let f=Object.seal(Ce(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}})),B=null,Ae=null,Xe=!0,Se=!0,Ve=!1,qe=!0,x=!1,I=!1,Re=!1,Le=!1,P=!1,ee=!1,te=!1,$e=!0,Ke=!1;const Kt="user-content-";let De=!0,Y=!1,k={},v=null;const Ze=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"]);let Je=null;const Qe=r({},["audio","video","img","source","image","track"]);let ye=null;const et=r({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ne="http://www.w3.org/1998/Math/MathML",oe="http://www.w3.org/2000/svg",N="http://www.w3.org/1999/xhtml";let U=N,Ne=!1,Oe=null;const Zt=r({},[ne,oe,N],se);let j=null;const Jt=["application/xhtml+xml","text/html"],Qt="text/html";let p=null,F=null;const en=s.createElement("form"),tt=function(e){return e instanceof RegExp||e instanceof Function},be=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(F&&F===e)){if((!e||typeof e!="object")&&(e={}),e=b(e),j=Jt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Qt:e.PARSER_MEDIA_TYPE,p=j==="application/xhtml+xml"?se:$,u="ALLOWED_TAGS"in e?r({},e.ALLOWED_TAGS,p):Ye,m="ALLOWED_ATTR"in e?r({},e.ALLOWED_ATTR,p):je,Oe="ALLOWED_NAMESPACES"in e?r({},e.ALLOWED_NAMESPACES,se):Zt,ye="ADD_URI_SAFE_ATTR"in e?r(b(et),e.ADD_URI_SAFE_ATTR,p):et,Je="ADD_DATA_URI_TAGS"in e?r(b(Qe),e.ADD_DATA_URI_TAGS,p):Qe,v="FORBID_CONTENTS"in e?r({},e.FORBID_CONTENTS,p):Ze,B="FORBID_TAGS"in e?r({},e.FORBID_TAGS,p):{},Ae="FORBID_ATTR"in e?r({},e.FORBID_ATTR,p):{},k="USE_PROFILES"in e?e.USE_PROFILES:!1,Xe=e.ALLOW_ARIA_ATTR!==!1,Se=e.ALLOW_DATA_ATTR!==!1,Ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,x=e.SAFE_FOR_TEMPLATES||!1,I=e.WHOLE_DOCUMENT||!1,P=e.RETURN_DOM||!1,ee=e.RETURN_DOM_FRAGMENT||!1,te=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,$e=e.SANITIZE_DOM!==!1,Ke=e.SANITIZE_NAMED_PROPS||!1,De=e.KEEP_CONTENT!==!1,Y=e.IN_PLACE||!1,Be=e.ALLOWED_URI_REGEXP||Ue,U=e.NAMESPACE||N,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),x&&(Se=!1),ee&&(P=!0),k&&(u=r({},Pe),m=[],k.html===!0&&(r(u,xe),r(m,ke)),k.svg===!0&&(r(u,ce),r(m,me),r(m,Z)),k.svgFilters===!0&&(r(u,fe),r(m,me),r(m,Z)),k.mathMl===!0&&(r(u,ue),r(m,ve),r(m,Z))),e.ADD_TAGS&&(u===Ye&&(u=b(u)),r(u,e.ADD_TAGS,p)),e.ADD_ATTR&&(m===je&&(m=b(m)),r(m,e.ADD_ATTR,p)),e.ADD_URI_SAFE_ATTR&&r(ye,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(v===Ze&&(v=b(v)),r(v,e.FORBID_CONTENTS,p)),De&&(u["#text"]=!0),I&&r(u,["html","head","body"]),u.table&&(r(u,["tbody"]),delete B.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=e.TRUSTED_TYPES_POLICY,W=E.createHTML("")}else E===void 0&&(E=kt(J,_)),E!==null&&typeof W=="string"&&(W=E.createHTML(""));g&&g(e),F=e}},nt=r({},["mi","mo","mn","ms","mtext"]),ot=r({},["foreignobject","desc","title","annotation-xml"]),tn=r({},["title","style","font","a","script"]),it=r({},[...ce,...fe,...yt]),rt=r({},[...ue,...Nt]),nn=function(e){let t=Te(e);(!t||!t.tagName)&&(t={namespaceURI:U,tagName:"template"});const n=$(e.tagName),c=$(t.tagName);return Oe[e.namespaceURI]?e.namespaceURI===oe?t.namespaceURI===N?n==="svg":t.namespaceURI===ne?n==="svg"&&(c==="annotation-xml"||nt[c]):!!it[n]:e.namespaceURI===ne?t.namespaceURI===N?n==="math":t.namespaceURI===oe?n==="math"&&ot[c]:!!rt[n]:e.namespaceURI===N?t.namespaceURI===oe&&!ot[c]||t.namespaceURI===ne&&!nt[c]?!1:!rt[n]&&(tn[n]||!it[n]):!!(j==="application/xhtml+xml"&&Oe[e.namespaceURI]):!1},M=function(e){H(o.removed,{element:e});try{e.parentNode.removeChild(e)}catch{e.remove()}},Ie=function(e,t){try{H(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{H(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!m[e])if(P||ee)try{M(t)}catch{}else try{t.setAttribute(e,"")}catch{}},at=function(e){let t=null,n=null;if(Le)e="<remove></remove>"+e;else{const T=At(e,/^[\r\n\t ]+/);n=T&&T[0]}j==="application/xhtml+xml"&&U===N&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const c=E?E.createHTML(e):e;if(U===N)try{t=new Ht().parseFromString(c,j)}catch{}if(!t||!t.documentElement){t=ge.createDocument(U,"template",null);try{t.documentElement.innerHTML=Ne?W:c}catch{}}const d=t.body||t.documentElement;return e&&n&&d.insertBefore(s.createTextNode(n),d.childNodes[0]||null),U===N?jt.call(t,I?"html":"body")[0]:I?t.documentElement:d},lt=function(e){return Bt.call(e.ownerDocument||e,e,de.SHOW_ELEMENT|de.SHOW_COMMENT|de.SHOW_TEXT,null)},on=function(e){return e instanceof Ft&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Ut)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},st=function(e){return typeof pe=="function"&&e instanceof pe},O=function(e,t,n){D[e]&&q(D[e],c=>{c.call(o,t,n,F)})},ct=function(e){let t=null;if(O("beforeSanitizeElements",e,null),on(e))return M(e),!0;const n=p(e.nodeName);if(O("uponSanitizeElement",e,{tagName:n,allowedTags:u}),e.hasChildNodes()&&!st(e.firstElementChild)&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return M(e),!0;if(!u[n]||B[n]){if(!B[n]&&ut(n)&&(f.tagNameCheck instanceof RegExp&&S(f.tagNameCheck,n)||f.tagNameCheck instanceof Function&&f.tagNameCheck(n)))return!1;if(De&&!v[n]){const c=Te(e)||e.parentNode,d=Wt(e)||e.childNodes;if(d&&c){const T=d.length;for(let h=T-1;h>=0;--h)c.insertBefore(zt(d[h],!0),Gt(e))}}return M(e),!0}return e instanceof Ge&&!nn(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&S(/<\/no(script|embed|frames)/i,e.innerHTML)?(M(e),!0):(x&&e.nodeType===3&&(t=e.textContent,q([_e,Ee,he],c=>{t=z(t,c," ")}),e.textContent!==t&&(H(o.removed,{element:e.cloneNode()}),e.textContent=t)),O("afterSanitizeElements",e,null),!1)},ft=function(e,t,n){if($e&&(t==="id"||t==="name")&&(n in s||n in en))return!1;if(!(Se&&!Ae[t]&&S(Vt,t))){if(!(Xe&&S(qt,t))){if(!m[t]||Ae[t]){if(!(ut(e)&&(f.tagNameCheck instanceof RegExp&&S(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&S(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||t==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&S(f.tagNameCheck,n)||f.tagNameCheck instanceof Function&&f.tagNameCheck(n))))return!1}else if(!ye[t]){if(!S(Be,z(n,We,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&St(n,"data:")===0&&Je[e])){if(!(Ve&&!S($t,z(n,We,"")))){if(n)return!1}}}}}}return!0},ut=function(e){return e.indexOf("-")>0},mt=function(e){O("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:m};let c=t.length;for(;c--;){const d=t[c],{name:T,namespaceURI:h,value:C}=d,X=p(T);let A=T==="value"?C:Rt(C);if(n.attrName=X,n.attrValue=A,n.keepAttr=!0,n.forceKeepAttr=void 0,O("uponSanitizeAttribute",e,n),A=n.attrValue,n.forceKeepAttr||(Ie(T,e),!n.keepAttr))continue;if(!qe&&S(/\/>/i,A)){Ie(T,e);continue}x&&q([_e,Ee,he],dt=>{A=z(A,dt," ")});const pt=p(e.nodeName);if(ft(pt,X,A)){if(Ke&&(X==="id"||X==="name")&&(Ie(T,e),A=Kt+A),E&&typeof J=="object"&&typeof J.getAttributeType=="function"&&!h)switch(J.getAttributeType(pt,X)){case"TrustedHTML":{A=E.createHTML(A);break}case"TrustedScriptURL":{A=E.createScriptURL(A);break}}try{h?e.setAttributeNS(h,T,A):e.setAttribute(T,A),we(o.removed)}catch{}}}O("afterSanitizeAttributes",e,null)},rn=function i(e){let t=null;const n=lt(e);for(O("beforeSanitizeShadowDOM",e,null);t=n.nextNode();)O("uponSanitizeShadowNode",t,null),!ct(t)&&(t.content instanceof y&&i(t.content),mt(t));O("afterSanitizeShadowDOM",e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,c=null,d=null;if(Ne=!i,Ne&&(i="<!-->"),typeof i!="string"&&!st(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw G("dirty is not a string, aborting")}else throw G("toString is not a function");if(!o.isSupported)return i;if(Re||be(e),o.removed=[],typeof i=="string"&&(Y=!1),Y){if(i.nodeName){const C=p(i.nodeName);if(!u[C]||B[C])throw G("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof pe)t=at("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===1&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!P&&!x&&!I&&i.indexOf("<")===-1)return E&&te?E.createHTML(i):i;if(t=at(i),!t)return P?null:te?W:""}t&&Le&&M(t.firstChild);const T=lt(Y?i:t);for(;c=T.nextNode();)ct(c)||(c.content instanceof y&&rn(c.content),mt(c));if(Y)return i;if(P){if(ee)for(d=Yt.call(t.ownerDocument);t.firstChild;)d.appendChild(t.firstChild);else d=t;return(m.shadowroot||m.shadowrootmode)&&(d=Xt.call(a,d,!0)),d}let h=I?t.outerHTML:t.innerHTML;return I&&u["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&S(Fe,t.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
`+h),x&&q([_e,Ee,he],C=>{h=z(h,C," ")}),E&&te?E.createHTML(h):h},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};be(i),Re=!0},o.clearConfig=function(){F=null,Re=!1},o.isValidAttribute=function(i,e,t){F||be({});const n=p(i),c=p(e);return ft(n,c,t)},o.addHook=function(i,e){typeof e=="function"&&(D[i]=D[i]||[],H(D[i],e))},o.removeHook=function(i){if(D[i])return we(D[i])},o.removeHooks=function(i){D[i]&&(D[i]=[])},o.removeAllHooks=function(){D={}},o}var vt=ze();return vt})}(Me)),Me.exports}var sn=window.DOMPurify||(window.DOMPurify=gt().default||gt());const un=ln(sn);export{un as D};
