/* THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ var cn=Object.create;var ht=Object.defineProperty;var un=Object.getOwnPropertyDescriptor;var hn=Object.getOwnPropertyNames;var fn=Object.getPrototypeOf,pn=Object.prototype.hasOwnProperty;var Ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gn=(e,t)=>{for(var r in t)ht(e,r,{get:t[r],enumerable:!0})},Vr=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of hn(t))!pn.call(e,s)&&s!==r&&ht(e,s,{get:()=>t[s],enumerable:!(i=un(t,s))||i.enumerable});return e};var ke=(e,t,r)=>(r=e!=null?cn(fn(e)):{},Vr(t||!e||!e.__esModule?ht(r,"default",{value:e,enumerable:!0}):r,e)),mn=e=>Vr(ht({},"__esModule",{value:!0}),e);var qr=Ee((jr,Yr)=>{(function(e){if(typeof jr=="object")Yr.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t;try{t=window}catch(r){t=self}t.SparkMD5=e()}})(function(e){"use strict";var t=function(g,p){return g+p&4294967295},r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(g,p,o,a,f,c){return p=t(t(p,g),t(a,c)),t(p<>>32-f,o)}function s(g,p){var o=g[0],a=g[1],f=g[2],c=g[3];o+=(a&f|~a&c)+p[0]-680876936|0,o=(o<<7|o>>>25)+a|0,c+=(o&a|~o&f)+p[1]-389564586|0,c=(c<<12|c>>>20)+o|0,f+=(c&o|~c&a)+p[2]+606105819|0,f=(f<<17|f>>>15)+c|0,a+=(f&c|~f&o)+p[3]-1044525330|0,a=(a<<22|a>>>10)+f|0,o+=(a&f|~a&c)+p[4]-176418897|0,o=(o<<7|o>>>25)+a|0,c+=(o&a|~o&f)+p[5]+1200080426|0,c=(c<<12|c>>>20)+o|0,f+=(c&o|~c&a)+p[6]-1473231341|0,f=(f<<17|f>>>15)+c|0,a+=(f&c|~f&o)+p[7]-45705983|0,a=(a<<22|a>>>10)+f|0,o+=(a&f|~a&c)+p[8]+1770035416|0,o=(o<<7|o>>>25)+a|0,c+=(o&a|~o&f)+p[9]-1958414417|0,c=(c<<12|c>>>20)+o|0,f+=(c&o|~c&a)+p[10]-42063|0,f=(f<<17|f>>>15)+c|0,a+=(f&c|~f&o)+p[11]-1990404162|0,a=(a<<22|a>>>10)+f|0,o+=(a&f|~a&c)+p[12]+1804603682|0,o=(o<<7|o>>>25)+a|0,c+=(o&a|~o&f)+p[13]-40341101|0,c=(c<<12|c>>>20)+o|0,f+=(c&o|~c&a)+p[14]-1502002290|0,f=(f<<17|f>>>15)+c|0,a+=(f&c|~f&o)+p[15]+1236535329|0,a=(a<<22|a>>>10)+f|0,o+=(a&c|f&~c)+p[1]-165796510|0,o=(o<<5|o>>>27)+a|0,c+=(o&f|a&~f)+p[6]-1069501632|0,c=(c<<9|c>>>23)+o|0,f+=(c&a|o&~a)+p[11]+643717713|0,f=(f<<14|f>>>18)+c|0,a+=(f&o|c&~o)+p[0]-373897302|0,a=(a<<20|a>>>12)+f|0,o+=(a&c|f&~c)+p[5]-701558691|0,o=(o<<5|o>>>27)+a|0,c+=(o&f|a&~f)+p[10]+38016083|0,c=(c<<9|c>>>23)+o|0,f+=(c&a|o&~a)+p[15]-660478335|0,f=(f<<14|f>>>18)+c|0,a+=(f&o|c&~o)+p[4]-405537848|0,a=(a<<20|a>>>12)+f|0,o+=(a&c|f&~c)+p[9]+568446438|0,o=(o<<5|o>>>27)+a|0,c+=(o&f|a&~f)+p[14]-1019803690|0,c=(c<<9|c>>>23)+o|0,f+=(c&a|o&~a)+p[3]-187363961|0,f=(f<<14|f>>>18)+c|0,a+=(f&o|c&~o)+p[8]+1163531501|0,a=(a<<20|a>>>12)+f|0,o+=(a&c|f&~c)+p[13]-1444681467|0,o=(o<<5|o>>>27)+a|0,c+=(o&f|a&~f)+p[2]-51403784|0,c=(c<<9|c>>>23)+o|0,f+=(c&a|o&~a)+p[7]+1735328473|0,f=(f<<14|f>>>18)+c|0,a+=(f&o|c&~o)+p[12]-1926607734|0,a=(a<<20|a>>>12)+f|0,o+=(a^f^c)+p[5]-378558|0,o=(o<<4|o>>>28)+a|0,c+=(o^a^f)+p[8]-2022574463|0,c=(c<<11|c>>>21)+o|0,f+=(c^o^a)+p[11]+1839030562|0,f=(f<<16|f>>>16)+c|0,a+=(f^c^o)+p[14]-35309556|0,a=(a<<23|a>>>9)+f|0,o+=(a^f^c)+p[1]-1530992060|0,o=(o<<4|o>>>28)+a|0,c+=(o^a^f)+p[4]+1272893353|0,c=(c<<11|c>>>21)+o|0,f+=(c^o^a)+p[7]-155497632|0,f=(f<<16|f>>>16)+c|0,a+=(f^c^o)+p[10]-1094730640|0,a=(a<<23|a>>>9)+f|0,o+=(a^f^c)+p[13]+681279174|0,o=(o<<4|o>>>28)+a|0,c+=(o^a^f)+p[0]-358537222|0,c=(c<<11|c>>>21)+o|0,f+=(c^o^a)+p[3]-722521979|0,f=(f<<16|f>>>16)+c|0,a+=(f^c^o)+p[6]+76029189|0,a=(a<<23|a>>>9)+f|0,o+=(a^f^c)+p[9]-640364487|0,o=(o<<4|o>>>28)+a|0,c+=(o^a^f)+p[12]-421815835|0,c=(c<<11|c>>>21)+o|0,f+=(c^o^a)+p[15]+530742520|0,f=(f<<16|f>>>16)+c|0,a+=(f^c^o)+p[2]-995338651|0,a=(a<<23|a>>>9)+f|0,o+=(f^(a|~c))+p[0]-198630844|0,o=(o<<6|o>>>26)+a|0,c+=(a^(o|~f))+p[7]+1126891415|0,c=(c<<10|c>>>22)+o|0,f+=(o^(c|~a))+p[14]-1416354905|0,f=(f<<15|f>>>17)+c|0,a+=(c^(f|~o))+p[5]-57434055|0,a=(a<<21|a>>>11)+f|0,o+=(f^(a|~c))+p[12]+1700485571|0,o=(o<<6|o>>>26)+a|0,c+=(a^(o|~f))+p[3]-1894986606|0,c=(c<<10|c>>>22)+o|0,f+=(o^(c|~a))+p[10]-1051523|0,f=(f<<15|f>>>17)+c|0,a+=(c^(f|~o))+p[1]-2054922799|0,a=(a<<21|a>>>11)+f|0,o+=(f^(a|~c))+p[8]+1873313359|0,o=(o<<6|o>>>26)+a|0,c+=(a^(o|~f))+p[15]-30611744|0,c=(c<<10|c>>>22)+o|0,f+=(o^(c|~a))+p[6]-1560198380|0,f=(f<<15|f>>>17)+c|0,a+=(c^(f|~o))+p[13]+1309151649|0,a=(a<<21|a>>>11)+f|0,o+=(f^(a|~c))+p[4]-145523070|0,o=(o<<6|o>>>26)+a|0,c+=(a^(o|~f))+p[11]-1120210379|0,c=(c<<10|c>>>22)+o|0,f+=(o^(c|~a))+p[2]+718787259|0,f=(f<<15|f>>>17)+c|0,a+=(c^(f|~o))+p[9]-343485551|0,a=(a<<21|a>>>11)+f|0,g[0]=o+g[0]|0,g[1]=a+g[1]|0,g[2]=f+g[2]|0,g[3]=c+g[3]|0}function l(g){var p=[],o;for(o=0;o<64;o+=4)p[o>>2]=g.charCodeAt(o)+(g.charCodeAt(o+1)<<8)+(g.charCodeAt(o+2)<<16)+(g.charCodeAt(o+3)<<24);return p}function n(g){var p=[],o;for(o=0;o<64;o+=4)p[o>>2]=g[o]+(g[o+1]<<8)+(g[o+2]<<16)+(g[o+3]<<24);return p}function u(g){var p=g.length,o=[1732584193,-271733879,-1732584194,271733878],a,f,c,P,H,K;for(a=64;a<=p;a+=64)s(o,l(g.substring(a-64,a)));for(g=g.substring(a-64),f=g.length,c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a>2]|=g.charCodeAt(a)<<(a%4<<3);if(c[a>>2]|=128<<(a%4<<3),a>55)for(s(o,c),a=0;a<16;a+=1)c[a]=0;return P=p*8,P=P.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(P[2],16),K=parseInt(P[1],16)||0,c[14]=H,c[15]=K,s(o,c),o}function d(g){var p=g.length,o=[1732584193,-271733879,-1732584194,271733878],a,f,c,P,H,K;for(a=64;a<=p;a+=64)s(o,n(g.subarray(a-64,a)));for(g=a-64>2]|=g[a]<<(a%4<<3);if(c[a>>2]|=128<<(a%4<<3),a>55)for(s(o,c),a=0;a<16;a+=1)c[a]=0;return P=p*8,P=P.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(P[2],16),K=parseInt(P[1],16)||0,c[14]=H,c[15]=K,s(o,c),o}function m(g){var p="",o;for(o=0;o<4;o+=1)p+=r[g>>o*8+4&15]+r[g>>o*8&15];return p}function A(g){var p;for(p=0;p>16)+(p>>16)+(o>>16);return a<<16|o&65535}),typeof ArrayBuffer!="undefined"&&!ArrayBuffer.prototype.slice&&function(){function g(p,o){return p=p|0||0,p<0?Math.max(p+o,0):Math.min(p,o)}ArrayBuffer.prototype.slice=function(p,o){var a=this.byteLength,f=g(p,a),c=a,P,H,K,ve;return o!==e&&(c=g(o,a)),f>c?new ArrayBuffer(0):(P=c-f,H=new ArrayBuffer(P),K=new Uint8Array(H),ve=new Uint8Array(this,f,P),K.set(ve),H)}}();function w(g){return/[\u0080-\uFFFF]/.test(g)&&(g=unescape(encodeURIComponent(g))),g}function I(g,p){var o=g.length,a=new ArrayBuffer(o),f=new Uint8Array(a),c;for(c=0;c>2]|=p.charCodeAt(a)<<(a%4<<3);return this._finish(f,o),c=A(this._hash),g&&(c=D(c)),this.reset(),c},T.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},T.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},T.prototype.setState=function(g){return this._buff=g.buff,this._length=g.length,this._hash=g.hash,this},T.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},T.prototype._finish=function(g,p){var o=p,a,f,c;if(g[o>>2]|=128<<(o%4<<3),o>55)for(s(this._hash,g),o=0;o<16;o+=1)g[o]=0;a=this._length*8,a=a.toString(16).match(/(.*?)(.{0,8})$/),f=parseInt(a[2],16),c=parseInt(a[1],16)||0,g[14]=f,g[15]=c,s(this._hash,g)},T.hash=function(g,p){return T.hashBinary(w(g),p)},T.hashBinary=function(g,p){var o=u(g),a=A(o);return p?D(a):a},T.ArrayBuffer=function(){this.reset()},T.ArrayBuffer.prototype.append=function(g){var p=k(this._buff.buffer,g,!0),o=p.length,a;for(this._length+=g.byteLength,a=64;a<=o;a+=64)s(this._hash,n(p.subarray(a-64,a)));return this._buff=a-64>2]|=p[f]<<(f%4<<3);return this._finish(a,o),c=A(this._hash),g&&(c=D(c)),this.reset(),c},T.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},T.ArrayBuffer.prototype.getState=function(){var g=T.prototype.getState.call(this);return g.buff=C(g.buff),g},T.ArrayBuffer.prototype.setState=function(g){return g.buff=I(g.buff,!0),T.prototype.setState.call(this,g)},T.ArrayBuffer.prototype.destroy=T.prototype.destroy,T.ArrayBuffer.prototype._finish=T.prototype._finish,T.ArrayBuffer.hash=function(g,p){var o=d(new Uint8Array(g)),a=A(o);return p?D(a):a},T})});var Zr=Ee(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.toSeconds=X.end=X.parse=X.pattern=void 0;var Ue="\\d+",Xt="".concat(Ue,"(?:[\\.,]").concat(Ue,")?"),En="(".concat(Ue,"Y)?(").concat(Ue,"M)?(").concat(Ue,"W)?(").concat(Ue,"D)?"),_n="T(".concat(Xt,"H)?(").concat(Xt,"M)?(").concat(Xt,"S)?"),wn="P(?:".concat(En,"(?:").concat(_n,")?)"),Sn=["years","months","weeks","days","hours","minutes","seconds"],Jr=Object.freeze({years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0});X.pattern=new RegExp(wn);var Dn=function(e){var t=e.replace(/,/g,".").match(X.pattern);if(!t)throw new RangeError("invalid duration: ".concat(e));var r=t.slice(1);if(r.filter(function(i){return i!=null}).length===0)throw new RangeError("invalid duration: ".concat(e));if(r.filter(function(i){return/\./.test(i||"")}).length>1)throw new RangeError("only the smallest unit can be fractional");return r.reduce(function(i,s,l){return i[Sn[l]]=parseFloat(s||"0")||0,i},{})};X.parse=Dn;var Rn=function(e,t){t===void 0&&(t=new Date);var r=Object.assign({},Jr,e),i=t.getTime(),s=new Date(i);s.setFullYear(s.getFullYear()+r.years),s.setMonth(s.getMonth()+r.months),s.setDate(s.getDate()+r.days);var l=r.hours*3600*1e3,n=r.minutes*60*1e3;return s.setMilliseconds(s.getMilliseconds()+r.seconds*1e3+l+n),s.setDate(s.getDate()+r.weeks*7),s};X.end=Rn;var xn=function(e,t){t===void 0&&(t=new Date);var r=Object.assign({},Jr,e),i=t.getTime(),s=new Date(i),l=(0,X.end)(r,s),n=(l.getTime()-s.getTime())/1e3;return n};X.toSeconds=xn;X.default={end:X.end,toSeconds:X.toSeconds,pattern:X.pattern,parse:X.parse}});var cr=Ee((or,lr)=>{(function(e,t){typeof or=="object"&&typeof lr!="undefined"?lr.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.DOMPurify=t())})(or,function(){"use strict";function e(y){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},e(y)}function t(y,b){return t=Object.setPrototypeOf||function(L,F){return L.__proto__=F,L},t(y,b)}function r(){if(typeof Reflect=="undefined"||!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(y){return!1}}function i(y,b,_){return r()?i=Reflect.construct:i=function(F,oe,fe){var le=[null];le.push.apply(le,oe);var Ye=Function.bind.apply(F,le),qe=new Ye;return fe&&t(qe,fe.prototype),qe},i.apply(null,arguments)}function s(y){return l(y)||n(y)||u(y)||m()}function l(y){if(Array.isArray(y))return d(y)}function n(y){if(typeof Symbol!="undefined"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)}function u(y,b){if(y){if(typeof y=="string")return d(y,b);var _=Object.prototype.toString.call(y).slice(8,-1);if(_==="Object"&&y.constructor&&(_=y.constructor.name),_==="Map"||_==="Set")return Array.from(y);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return d(y,b)}}function d(y,b){(b==null||b>y.length)&&(b=y.length);for(var _=0,L=new Array(b);_1?_-1:0),F=1;F<_;F++)L[F-1]=arguments[F];return o(y,b,L)}}function Ve(y){return function(){for(var b=arguments.length,_=new Array(b),L=0;L/gm),Le=T(/\${[\w\W]*}/gm),he=T(/^data-[\-\w.\u00B7-\uFFFF]/),ze=T(/^aria-[\-\w]+$/),je=T(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Mi=T(/^(?:\w+script|data):/i),Oi=T(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fi=T(/^html$/i),ki=function(){return typeof window=="undefined"?null:window},Ui=function(b,_){if(e(b)!=="object"||typeof b.createPolicy!="function")return null;var L=null,F="data-tt-policy-suffix";_.currentScript&&_.currentScript.hasAttribute(F)&&(L=_.currentScript.getAttribute(F));var oe="dompurify"+(L?"#"+L:"");try{return b.createPolicy(oe,{createHTML:function(le){return le},createScriptURL:function(le){return le}})}catch(fe){return console.warn("TrustedTypes policy "+oe+" could not be created."),null}};function yr(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ki(),b=function(h){return yr(h)};if(b.version="2.4.3",b.removed=[],!y||!y.document||y.document.nodeType!==9)return b.isSupported=!1,b;var _=y.document,L=y.document,F=y.DocumentFragment,oe=y.HTMLTemplateElement,fe=y.Node,le=y.Element,Ye=y.NodeFilter,qe=y.NamedNodeMap,Hi=qe===void 0?y.NamedNodeMap||y.MozNamedAttrMap:qe,Gi=y.HTMLFormElement,Vi=y.DOMParser,rt=y.trustedTypes,it=le.prototype,$i=O(it,"cloneNode"),Wi=O(it,"nextSibling"),zi=O(it,"childNodes"),wt=O(it,"parentNode");if(typeof oe=="function"){var St=L.createElement("template");St.content&&St.content.ownerDocument&&(L=St.content.ownerDocument)}var ie=Ui(rt,_),Dt=ie?ie.createHTML(""):"",nt=L,Rt=nt.implementation,ji=nt.createNodeIterator,Yi=nt.createDocumentFragment,qi=nt.getElementsByTagName,Xi=_.importNode,Nr={};try{Nr=ae(L).documentMode?L.documentMode:{}}catch(E){}var ce={};b.isSupported=typeof wt=="function"&&Rt&&typeof Rt.createHTMLDocument!="undefined"&&Nr!==9;var xt=se,Lt=tt,It=Le,Ki=he,Ji=ze,Zi=Mi,br=Oi,Ct=je,$=null,Tr=S({},[].concat(s(Ae),s(Se),s(De),s(Ne),s(xe))),Y=null,Er=S({},[].concat(s(ye),s($e),s(We),s(te))),B=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}})),Xe=null,Pt=null,_r=!0,Mt=!0,wr=!1,Ie=!1,be=!1,Ot=!1,Ft=!1,Ce=!1,at=!1,st=!1,Sr=!0,Dr=!1,Qi="user-content-",kt=!0,Ke=!1,Pe={},Me=null,Rr=S({},["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"]),xr=null,Lr=S({},["audio","video","img","source","image","track"]),Ut=null,Ir=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ot="http://www.w3.org/1998/Math/MathML",lt="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",Oe=pe,Bt=!1,Ht=null,en=S({},[ot,lt,pe],K),Te,tn=["application/xhtml+xml","text/html"],rn="text/html",W,Fe=null,nn=L.createElement("form"),Cr=function(h){return h instanceof RegExp||h instanceof Function},Gt=function(h){Fe&&Fe===h||((!h||e(h)!=="object")&&(h={}),h=ae(h),Te=tn.indexOf(h.PARSER_MEDIA_TYPE)===-1?Te=rn:Te=h.PARSER_MEDIA_TYPE,W=Te==="application/xhtml+xml"?K:H,$="ALLOWED_TAGS"in h?S({},h.ALLOWED_TAGS,W):Tr,Y="ALLOWED_ATTR"in h?S({},h.ALLOWED_ATTR,W):Er,Ht="ALLOWED_NAMESPACES"in h?S({},h.ALLOWED_NAMESPACES,K):en,Ut="ADD_URI_SAFE_ATTR"in h?S(ae(Ir),h.ADD_URI_SAFE_ATTR,W):Ir,xr="ADD_DATA_URI_TAGS"in h?S(ae(Lr),h.ADD_DATA_URI_TAGS,W):Lr,Me="FORBID_CONTENTS"in h?S({},h.FORBID_CONTENTS,W):Rr,Xe="FORBID_TAGS"in h?S({},h.FORBID_TAGS,W):{},Pt="FORBID_ATTR"in h?S({},h.FORBID_ATTR,W):{},Pe="USE_PROFILES"in h?h.USE_PROFILES:!1,_r=h.ALLOW_ARIA_ATTR!==!1,Mt=h.ALLOW_DATA_ATTR!==!1,wr=h.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=h.SAFE_FOR_TEMPLATES||!1,be=h.WHOLE_DOCUMENT||!1,Ce=h.RETURN_DOM||!1,at=h.RETURN_DOM_FRAGMENT||!1,st=h.RETURN_TRUSTED_TYPE||!1,Ft=h.FORCE_BODY||!1,Sr=h.SANITIZE_DOM!==!1,Dr=h.SANITIZE_NAMED_PROPS||!1,kt=h.KEEP_CONTENT!==!1,Ke=h.IN_PLACE||!1,Ct=h.ALLOWED_URI_REGEXP||Ct,Oe=h.NAMESPACE||pe,h.CUSTOM_ELEMENT_HANDLING&&Cr(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=h.CUSTOM_ELEMENT_HANDLING.tagNameCheck),h.CUSTOM_ELEMENT_HANDLING&&Cr(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),h.CUSTOM_ELEMENT_HANDLING&&typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(B.allowCustomizedBuiltInElements=h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(Mt=!1),at&&(Ce=!0),Pe&&($=S({},s(xe)),Y=[],Pe.html===!0&&(S($,Ae),S(Y,ye)),Pe.svg===!0&&(S($,Se),S(Y,$e),S(Y,te)),Pe.svgFilters===!0&&(S($,De),S(Y,$e),S(Y,te)),Pe.mathMl===!0&&(S($,Ne),S(Y,We),S(Y,te))),h.ADD_TAGS&&($===Tr&&($=ae($)),S($,h.ADD_TAGS,W)),h.ADD_ATTR&&(Y===Er&&(Y=ae(Y)),S(Y,h.ADD_ATTR,W)),h.ADD_URI_SAFE_ATTR&&S(Ut,h.ADD_URI_SAFE_ATTR,W),h.FORBID_CONTENTS&&(Me===Rr&&(Me=ae(Me)),S(Me,h.FORBID_CONTENTS,W)),kt&&($["#text"]=!0),be&&S($,["html","head","body"]),$.table&&(S($,["tbody"]),delete Xe.tbody),D&&D(h),Fe=h)},Pr=S({},["mi","mo","mn","ms","mtext"]),Mr=S({},["foreignobject","desc","title","annotation-xml"]),an=S({},["title","style","font","a","script"]),ct=S({},Se);S(ct,De),S(ct,et);var Vt=S({},Ne);S(Vt,Re);var sn=function(h){var v=wt(h);(!v||!v.tagName)&&(v={namespaceURI:Oe,tagName:"template"});var N=H(h.tagName),M=H(v.tagName);return Ht[h.namespaceURI]?h.namespaceURI===lt?v.namespaceURI===pe?N==="svg":v.namespaceURI===ot?N==="svg"&&(M==="annotation-xml"||Pr[M]):Boolean(ct[N]):h.namespaceURI===ot?v.namespaceURI===pe?N==="math":v.namespaceURI===lt?N==="math"&&Mr[M]:Boolean(Vt[N]):h.namespaceURI===pe?v.namespaceURI===lt&&!Mr[M]||v.namespaceURI===ot&&!Pr[M]?!1:!Vt[N]&&(an[N]||!ct[N]):!!(Te==="application/xhtml+xml"&&Ht[h.namespaceURI]):!1},ge=function(h){P(b.removed,{element:h});try{h.parentNode.removeChild(h)}catch(v){try{h.outerHTML=Dt}catch(N){h.remove()}}},$t=function(h,v){try{P(b.removed,{attribute:v.getAttributeNode(h),from:v})}catch(N){P(b.removed,{attribute:null,from:v})}if(v.removeAttribute(h),h==="is"&&!Y[h])if(Ce||at)try{ge(v)}catch(N){}else try{v.setAttribute(h,"")}catch(N){}},Or=function(h){var v,N;if(Ft)h=""+h;else{var M=ve(h,/^[\r\n\t ]+/);N=M&&M[0]}Te==="application/xhtml+xml"&&Oe===pe&&(h=''+h+"");var re=ie?ie.createHTML(h):h;if(Oe===pe)try{v=new Vi().parseFromString(re,Te)}catch(q){}if(!v||!v.documentElement){v=Rt.createDocument(Oe,"template",null);try{v.documentElement.innerHTML=Bt?Dt:re}catch(q){}}var J=v.body||v.documentElement;return h&&N&&J.insertBefore(L.createTextNode(N),J.childNodes[0]||null),Oe===pe?qi.call(v,be?"html":"body")[0]:be?v.documentElement:J},Fr=function(h){return ji.call(h.ownerDocument||h,h,Ye.SHOW_ELEMENT|Ye.SHOW_COMMENT|Ye.SHOW_TEXT,null,!1)},on=function(h){return h instanceof Gi&&(typeof h.nodeName!="string"||typeof h.textContent!="string"||typeof h.removeChild!="function"||!(h.attributes instanceof Hi)||typeof h.removeAttribute!="function"||typeof h.setAttribute!="function"||typeof h.namespaceURI!="string"||typeof h.insertBefore!="function"||typeof h.hasChildNodes!="function")},Je=function(h){return e(fe)==="object"?h instanceof fe:h&&e(h)==="object"&&typeof h.nodeType=="number"&&typeof h.nodeName=="string"},me=function(h,v,N){ce[h]&&f(ce[h],function(M){M.call(b,v,N,Fe)})},kr=function(h){var v;if(me("beforeSanitizeElements",h,null),on(h)||V(/[\u0080-\uFFFF]/,h.nodeName))return ge(h),!0;var N=W(h.nodeName);if(me("uponSanitizeElement",h,{tagName:N,allowedTags:$}),h.hasChildNodes()&&!Je(h.firstElementChild)&&(!Je(h.content)||!Je(h.content.firstElementChild))&&V(/<[/\w]/g,h.innerHTML)&&V(/<[/\w]/g,h.textContent)||N==="select"&&V(/