/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */function D(n){"@babel/helpers - typeof";return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},D(n)}function Ct(n,o){return Ct=Object.setPrototypeOf||function(a,l){return a.__proto__=l,a},Ct(n,o)}function Fe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function at(n,o,a){return Fe()?at=Reflect.construct:at=function(l,f,b){var T=[null];T.push.apply(T,f);var K=Function.bind.apply(l,T),I=new K;return b&&Ct(I,b.prototype),I},at.apply(null,arguments)}function S(n){return Ue(n)||He(n)||ze(n)||Pe()}function Ue(n){if(Array.isArray(n))return Mt(n)}function He(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function ze(n,o){if(n){if(typeof n=="string")return Mt(n,o);var a=Object.prototype.toString.call(n).slice(8,-1);if(a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set")return Array.from(n);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Mt(n,o)}}function Mt(n,o){(o==null||o>n.length)&&(o=n.length);for(var a=0,l=new Array(o);a1?a-1:0),f=1;f/gm),en=_(/\${[\w\W]*}/gm),nn=_(/^data-[\-\w.\u00B7-\uFFFF]/),rn=_(/^aria-[\-\w]+$/),on=_(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),an=_(/^(?:\w+script|data):/i),ln=_(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cn=_(/^html$/i),un=function(){return typeof window>"u"?null:window},sn=function(n,o){if(D(n)!=="object"||typeof n.createPolicy!="function")return null;var a=null,l="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(l)&&(a=o.currentScript.getAttribute(l));var f="dompurify"+(a?"#"+a:"");try{return n.createPolicy(f,{createHTML:function(b){return b},createScriptURL:function(b){return b}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}};function pe(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:un(),o=function(t){return pe(t)};if(o.version="2.4.7",o.removed=[],!n||!n.document||n.document.nodeType!==9)return o.isSupported=!1,o;var a=n.document,l=n.document,f=n.DocumentFragment,b=n.HTMLTemplateElement,T=n.Node,K=n.Element,I=n.NodeFilter,Ft=n.NamedNodeMap,de=Ft===void 0?n.NamedNodeMap||n.MozNamedAttrMap:Ft,he=n.HTMLFormElement,ge=n.DOMParser,V=n.trustedTypes,X=K.prototype,ye=rt(X,"cloneNode"),be=rt(X,"nextSibling"),ve=rt(X,"childNodes"),ct=rt(X,"parentNode");if(typeof b=="function"){var ut=l.createElement("template");ut.content&&ut.content.ownerDocument&&(l=ut.content.ownerDocument)}var A=sn(V,a),st=A?A.createHTML(""):"",Z=l,mt=Z.implementation,Ne=Z.createNodeIterator,Ee=Z.createDocumentFragment,Te=Z.getElementsByTagName,Ae=a.importNode,Ut={};try{Ut=M(l).documentMode?l.documentMode:{}}catch{}var k={};o.isSupported=typeof ct=="function"&&mt&&mt.createHTMLDocument!==void 0&&Ut!==9;var ft=Qe,pt=tn,dt=en,we=nn,Se=rn,_e=an,Ht=ln,ht=on,p=null,zt=i({},[].concat(S(ce),S(Lt),S(Ot),S(Dt),S(ue))),d=null,Pt=i({},[].concat(S(se),S(Rt),S(me),S(ot))),u=Object.seal(Object.create(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}})),G=null,gt=null,jt=!0,yt=!0,Bt=!1,Gt=!0,F=!1,R=!1,bt=!1,vt=!1,U=!1,J=!1,Q=!1,Wt=!0,qt=!1,ke="user-content-",Nt=!0,W=!1,H={},z=null,Yt=i({},["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"]),$t=null,Kt=i({},["audio","video","img","source","image","track"]),Et=null,Vt=i({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",et="http://www.w3.org/2000/svg",x="http://www.w3.org/1999/xhtml",P=x,Tt=!1,At=null,xe=i({},[tt,et,x],kt),C,Le=["application/xhtml+xml","text/html"],Oe="text/html",h,j=null,De=l.createElement("form"),Xt=function(t){return t instanceof RegExp||t instanceof Function},wt=function(t){j&&j===t||((!t||D(t)!=="object")&&(t={}),t=M(t),C=Le.indexOf(t.PARSER_MEDIA_TYPE)===-1?C=Oe:C=t.PARSER_MEDIA_TYPE,h=C==="application/xhtml+xml"?kt:it,p="ALLOWED_TAGS"in t?i({},t.ALLOWED_TAGS,h):zt,d="ALLOWED_ATTR"in t?i({},t.ALLOWED_ATTR,h):Pt,At="ALLOWED_NAMESPACES"in t?i({},t.ALLOWED_NAMESPACES,kt):xe,Et="ADD_URI_SAFE_ATTR"in t?i(M(Vt),t.ADD_URI_SAFE_ATTR,h):Vt,$t="ADD_DATA_URI_TAGS"in t?i(M(Kt),t.ADD_DATA_URI_TAGS,h):Kt,z="FORBID_CONTENTS"in t?i({},t.FORBID_CONTENTS,h):Yt,G="FORBID_TAGS"in t?i({},t.FORBID_TAGS,h):{},gt="FORBID_ATTR"in t?i({},t.FORBID_ATTR,h):{},H="USE_PROFILES"in t?t.USE_PROFILES:!1,jt=t.ALLOW_ARIA_ATTR!==!1,yt=t.ALLOW_DATA_ATTR!==!1,Bt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Gt=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=t.SAFE_FOR_TEMPLATES||!1,R=t.WHOLE_DOCUMENT||!1,U=t.RETURN_DOM||!1,J=t.RETURN_DOM_FRAGMENT||!1,Q=t.RETURN_TRUSTED_TYPE||!1,vt=t.FORCE_BODY||!1,Wt=t.SANITIZE_DOM!==!1,qt=t.SANITIZE_NAMED_PROPS||!1,Nt=t.KEEP_CONTENT!==!1,W=t.IN_PLACE||!1,ht=t.ALLOWED_URI_REGEXP||ht,P=t.NAMESPACE||x,u=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Xt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Xt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(yt=!1),J&&(U=!0),H&&(p=i({},S(ue)),d=[],H.html===!0&&(i(p,ce),i(d,se)),H.svg===!0&&(i(p,Lt),i(d,Rt),i(d,ot)),H.svgFilters===!0&&(i(p,Ot),i(d,Rt),i(d,ot)),H.mathMl===!0&&(i(p,Dt),i(d,me),i(d,ot))),t.ADD_TAGS&&(p===zt&&(p=M(p)),i(p,t.ADD_TAGS,h)),t.ADD_ATTR&&(d===Pt&&(d=M(d)),i(d,t.ADD_ATTR,h)),t.ADD_URI_SAFE_ATTR&&i(Et,t.ADD_URI_SAFE_ATTR,h),t.FORBID_CONTENTS&&(z===Yt&&(z=M(z)),i(z,t.FORBID_CONTENTS,h)),Nt&&(p["#text"]=!0),R&&i(p,["html","head","body"]),p.table&&(i(p,["tbody"]),delete G.tbody),y&&y(t),j=t)},Zt=i({},["mi","mo","mn","ms","mtext"]),Jt=i({},["foreignobject","desc","title","annotation-xml"]),Re=i({},["title","style","font","a","script"]),nt=i({},Lt);i(nt,Ot),i(nt,Ze);var St=i({},Dt);i(St,Je);var Ce=function(t){var r=ct(t);(!r||!r.tagName)&&(r={namespaceURI:P,tagName:"template"});var e=it(t.tagName),c=it(r.tagName);return At[t.namespaceURI]?t.namespaceURI===et?r.namespaceURI===x?e==="svg":r.namespaceURI===tt?e==="svg"&&(c==="annotation-xml"||Zt[c]):!!nt[e]:t.namespaceURI===tt?r.namespaceURI===x?e==="math":r.namespaceURI===et?e==="math"&&Jt[c]:!!St[e]:t.namespaceURI===x?r.namespaceURI===et&&!Jt[c]||r.namespaceURI===tt&&!Zt[c]?!1:!St[e]&&(Re[e]||!nt[e]):!!(C==="application/xhtml+xml"&&At[t.namespaceURI]):!1},B=function(t){$(o.removed,{element:t});try{t.parentNode.removeChild(t)}catch{try{t.outerHTML=st}catch{t.remove()}}},_t=function(t,r){try{$(o.removed,{attribute:r.getAttributeNode(t),from:r})}catch{$(o.removed,{attribute:null,from:r})}if(r.removeAttribute(t),t==="is"&&!d[t])if(U||J)try{B(r)}catch{}else try{r.setAttribute(t,"")}catch{}},Qt=function(t){var r,e;if(vt)t=""+t;else{var c=$e(t,/^[\r\n\t ]+/);e=c&&c[0]}C==="application/xhtml+xml"&&P===x&&(t=''+t+"");var s=A?A.createHTML(t):t;if(P===x)try{r=new ge().parseFromString(s,C)}catch{}if(!r||!r.documentElement){r=mt.createDocument(P,"template",null);try{r.documentElement.innerHTML=Tt?st:s}catch{}}var N=r.body||r.documentElement;return t&&e&&N.insertBefore(l.createTextNode(e),N.childNodes[0]||null),P===x?Te.call(r,R?"html":"body")[0]:R?r.documentElement:N},te=function(t){return Ne.call(t.ownerDocument||t,t,I.SHOW_ELEMENT|I.SHOW_COMMENT|I.SHOW_TEXT,null,!1)},Me=function(t){return t instanceof he&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof de)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function")},q=function(t){return D(T)==="object"?t instanceof T:t&&D(t)==="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string"},L=function(t,r,e){k[t]&&Ye(k[t],function(c){c.call(o,r,e,j)})},ee=function(t){var r;if(L("beforeSanitizeElements",t,null),Me(t)||g(/[\u0080-\uFFFF]/,t.nodeName))return B(t),!0;var e=h(t.nodeName);if(L("uponSanitizeElement",t,{tagName:e,allowedTags:p}),t.hasChildNodes()&&!q(t.firstElementChild)&&(!q(t.content)||!q(t.content.firstElementChild))&&g(/<[/\w]/g,t.innerHTML)&&g(/<[/\w]/g,t.textContent)||e==="select"&&g(/