(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63],{28454:function(e,t,n){var r=n(34155),o=n(67294);function i(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var a=i(o);function s(e,t){for(var n=0;n>>0},p={};function d(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return p[r]||(p[r]="jsx-"+f(e+"-"+n)),p[r]}function h(e,t){var n=e+t;return p[n]||(p[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),p[n]}var g=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,o=t.optimizeForSpeed,i=void 0!==o&&o;this._sheet=r||new u({name:"styled-jsx",optimizeForSpeed:i}),this._sheet.inject(),r&&"boolean"===typeof i&&(this._sheet.setOptimizeForSpeed(i),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce((function(e,t){return e[t]=0,e}),{}));var n=this.getIdAndRules(e),r=n.styleId,o=n.rules;if(r in this._instancesCounts)this._instancesCounts[r]+=1;else{var i=o.map((function(e){return t._sheet.insertRule(e)})).filter((function(e){return-1!==e}));this._indices[r]=i,this._instancesCounts[r]=1}},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw new Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach((function(e){return t._sheet.deleteRule(e)})),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map((function(t){return[t,e._fromServer[t]]})):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map((function(t){return[t,e._indices[t].map((function(e){return n[e].cssText})).join(e._optimizeForSpeed?"":"\n")]})).filter((function(e){return Boolean(e[1])})))},t.styles=function(e){return function(e,t){return void 0===t&&(t={}),e.map((function(e){var n=e[0],r=e[1];return a.default.createElement("style",{id:"__"+n,key:"__"+n,nonce:t.nonce?t.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})}))}(this.cssRules(),e)},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var o=d(r,n);return{styleId:o,rules:Array.isArray(t)?t.map((function(e){return h(o,e)})):[h(o,t)]}}return{styleId:d(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce((function(e,t){return e[t.id.slice(2)]=t,e}),{})},e}();var _=o.createContext(null);function y(){return new g}function S(){return o.useContext(_)}_.displayName="StyleSheetContext";var T=a.default.useInsertionEffect||a.default.useLayoutEffect,v=y();function A(e){var t=v||S();return t?(T((function(){return t.add(e),function(){t.remove(e)}}),[e.id,String(e.dynamic)]),null):null}A.dynamic=function(e){return e.map((function(e){return d(e[0],e[1])})).join(" ")},t.style=A},95627:function(e,t,n){e.exports=n(28454).style},22424:function(e,t,n){"use strict";n.d(t,{Z:function(){return le}});const{entries:r,setPrototypeOf:o,isFrozen:i,getPrototypeOf:a,getOwnPropertyDescriptor:s}=Object;let{freeze:l,seal:c,create:u}=Object,{apply:m,construct:f}="undefined"!==typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=function(e){return e}),m||(m=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1?t-1:0),r=1;r1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:y;o&&o(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"===typeof o){const e=n(o);e!==o&&(i(t)||(t[r]=e),o=e)}e[o]=!0}return e}function k(e){for(let t=0;t/gm),q=c(/\$\{[\w\W]*/gm),X=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),$=c(/^aria-[\-\w]+$/),K=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=c(/^(?:\w+script|data):/i),Z=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=c(/^html$/i),Q=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:$,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:Q,DATA_ATTR:X,DOCTYPE_NAME:J,ERB_EXPR:Y,IS_ALLOWED_URI:K,IS_SCRIPT_OR_DATA:V,MUSTACHE_EXPR:W,TMPLIT_EXPR:q});const te=1,ne=3,re=7,oe=8,ie=9,ae=function(){return"undefined"===typeof window?null:window},se=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};var le=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae();const n=t=>e(t);if(n.version="3.3.1",n.removed=[],!t||!t.document||t.document.nodeType!==ie||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const i=o,a=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:c,Node:m,Element:f,NodeFilter:C,NamedNodeMap:w=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:k,DOMParser:W,trustedTypes:Y}=t,q=f.prototype,X=D(q,"cloneNode"),$=D(q,"remove"),V=D(q,"nextSibling"),Z=D(q,"childNodes"),Q=D(q,"parentNode");if("function"===typeof c){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let le,ce="";const{implementation:ue,createNodeIterator:me,createDocumentFragment:fe,getElementsByTagName:pe}=o,{importNode:de}=i;let he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"===typeof r&&"function"===typeof Q&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:ge,ERB_EXPR:_e,TMPLIT_EXPR:ye,DATA_ATTR:Se,ARIA_ATTR:Te,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:Ae,CUSTOM_ELEMENT:Ee}=ee;let{IS_ALLOWED_URI:be}=ee,Ne=null;const Re=O({},[...I,...L,...M,...F,...U]);let Ce=null;const we=O({},[...H,...j,...B,...G]);let Oe=Object.seal(u(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}})),ke=null,xe=null;const De=Object.seal(u(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ie=!0,Le=!0,Me=!1,ze=!0,Fe=!1,Pe=!0,Ue=!1,He=!1,je=!1,Be=!1,Ge=!1,We=!1,Ye=!0,qe=!1;const Xe="user-content-";let $e=!0,Ke=!1,Ve={},Ze=null;const Je=O({},["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 Qe=null;const et=O({},["audio","video","img","source","image","track"]);let tt=null;const nt=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml";let at=it,st=!1,lt=null;const ct=O({},[rt,ot,it],S);let ut=O({},["mi","mo","mn","ms","mtext"]),mt=O({},["annotation-xml"]);const ft=O({},["title","style","font","a","script"]);let pt=null;const dt=["application/xhtml+xml","text/html"],ht="text/html";let gt=null,_t=null;const yt=o.createElement("form"),St=function(e){return e instanceof RegExp||e instanceof Function},Tt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!_t||_t!==e){if(e&&"object"===typeof e||(e={}),e=x(e),pt=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?ht:e.PARSER_MEDIA_TYPE,gt="application/xhtml+xml"===pt?S:y,Ne=b(e,"ALLOWED_TAGS")?O({},e.ALLOWED_TAGS,gt):Re,Ce=b(e,"ALLOWED_ATTR")?O({},e.ALLOWED_ATTR,gt):we,lt=b(e,"ALLOWED_NAMESPACES")?O({},e.ALLOWED_NAMESPACES,S):ct,tt=b(e,"ADD_URI_SAFE_ATTR")?O(x(nt),e.ADD_URI_SAFE_ATTR,gt):nt,Qe=b(e,"ADD_DATA_URI_TAGS")?O(x(et),e.ADD_DATA_URI_TAGS,gt):et,Ze=b(e,"FORBID_CONTENTS")?O({},e.FORBID_CONTENTS,gt):Je,ke=b(e,"FORBID_TAGS")?O({},e.FORBID_TAGS,gt):x({}),xe=b(e,"FORBID_ATTR")?O({},e.FORBID_ATTR,gt):x({}),Ve=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,Ie=!1!==e.ALLOW_ARIA_ATTR,Le=!1!==e.ALLOW_DATA_ATTR,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ze=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Fe=e.SAFE_FOR_TEMPLATES||!1,Pe=!1!==e.SAFE_FOR_XML,Ue=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,Ge=e.RETURN_DOM_FRAGMENT||!1,We=e.RETURN_TRUSTED_TYPE||!1,je=e.FORCE_BODY||!1,Ye=!1!==e.SANITIZE_DOM,qe=e.SANITIZE_NAMED_PROPS||!1,$e=!1!==e.KEEP_CONTENT,Ke=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||K,at=e.NAMESPACE||it,ut=e.MATHML_TEXT_INTEGRATION_POINTS||ut,mt=e.HTML_INTEGRATION_POINTS||mt,Oe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&St(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Oe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&St(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Oe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Oe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Fe&&(Le=!1),Ge&&(Be=!0),Ve&&(Ne=O({},U),Ce=[],!0===Ve.html&&(O(Ne,I),O(Ce,H)),!0===Ve.svg&&(O(Ne,L),O(Ce,j),O(Ce,G)),!0===Ve.svgFilters&&(O(Ne,M),O(Ce,j),O(Ce,G)),!0===Ve.mathMl&&(O(Ne,F),O(Ce,B),O(Ce,G))),e.ADD_TAGS&&("function"===typeof e.ADD_TAGS?De.tagCheck=e.ADD_TAGS:(Ne===Re&&(Ne=x(Ne)),O(Ne,e.ADD_TAGS,gt))),e.ADD_ATTR&&("function"===typeof e.ADD_ATTR?De.attributeCheck=e.ADD_ATTR:(Ce===we&&(Ce=x(Ce)),O(Ce,e.ADD_ATTR,gt))),e.ADD_URI_SAFE_ATTR&&O(tt,e.ADD_URI_SAFE_ATTR,gt),e.FORBID_CONTENTS&&(Ze===Je&&(Ze=x(Ze)),O(Ze,e.FORBID_CONTENTS,gt)),e.ADD_FORBID_CONTENTS&&(Ze===Je&&(Ze=x(Ze)),O(Ze,e.ADD_FORBID_CONTENTS,gt)),$e&&(Ne["#text"]=!0),Ue&&O(Ne,["html","head","body"]),Ne.table&&(O(Ne,["tbody"]),delete ke.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');le=e.TRUSTED_TYPES_POLICY,ce=le.createHTML("")}else void 0===le&&(le=se(Y,a)),null!==le&&"string"===typeof ce&&(ce=le.createHTML(""));l&&l(e),_t=e}},vt=O({},[...L,...M,...z]),At=O({},[...F,...P]),Et=function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:at,tagName:"template"});const n=y(e.tagName),r=y(t.tagName);return!!lt[e.namespaceURI]&&(e.namespaceURI===ot?t.namespaceURI===it?"svg"===n:t.namespaceURI===rt?"svg"===n&&("annotation-xml"===r||ut[r]):Boolean(vt[n]):e.namespaceURI===rt?t.namespaceURI===it?"math"===n:t.namespaceURI===ot?"math"===n&&mt[r]:Boolean(At[n]):e.namespaceURI===it?!(t.namespaceURI===ot&&!mt[r])&&(!(t.namespaceURI===rt&&!ut[r])&&(!At[n]&&(ft[n]||!vt[n]))):!("application/xhtml+xml"!==pt||!lt[e.namespaceURI]))},bt=function(e){g(n.removed,{element:e});try{Q(e).removeChild(e)}catch(t){$(e)}},Nt=function(e,t){try{g(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){g(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Be||Ge)try{bt(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Rt=function(e){let t=null,n=null;if(je)e=""+e;else{const t=T(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===pt&&at===it&&(e=''+e+"");const r=le?le.createHTML(e):e;if(at===it)try{t=(new W).parseFromString(r,pt)}catch(a){}if(!t||!t.documentElement){t=ue.createDocument(at,"template",null);try{t.documentElement.innerHTML=st?ce:r}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),at===it?pe.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:i},Ct=function(e){return me.call(e.ownerDocument||e,e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT|C.SHOW_PROCESSING_INSTRUCTION|C.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof k&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof w)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},Ot=function(e){return"function"===typeof m&&e instanceof m};function kt(e,t,r){p(e,(e=>{e.call(n,t,r,_t)}))}const xt=function(e){let t=null;if(kt(he.beforeSanitizeElements,e,null),wt(e))return bt(e),!0;const r=gt(e.nodeName);if(kt(he.uponSanitizeElement,e,{tagName:r,allowedTags:Ne}),Pe&&e.hasChildNodes()&&!Ot(e.firstElementChild)&&N(/<[/\w!]/g,e.innerHTML)&&N(/<[/\w!]/g,e.textContent))return bt(e),!0;if(e.nodeType===re)return bt(e),!0;if(Pe&&e.nodeType===oe&&N(/<[/\w]/g,e.data))return bt(e),!0;if(!(De.tagCheck instanceof Function&&De.tagCheck(r))&&(!Ne[r]||ke[r])){if(!ke[r]&&It(r)){if(Oe.tagNameCheck instanceof RegExp&&N(Oe.tagNameCheck,r))return!1;if(Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(r))return!1}if($e&&!Ze[r]){const t=Q(e)||e.parentNode,n=Z(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=X(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,V(e))}}}return bt(e),!0}return e instanceof f&&!Et(e)?(bt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!N(/<\/no(script|embed|frames)/i,e.innerHTML)?(Fe&&e.nodeType===ne&&(t=e.textContent,p([ge,_e,ye],(e=>{t=v(t,e," ")})),e.textContent!==t&&(g(n.removed,{element:e.cloneNode()}),e.textContent=t)),kt(he.afterSanitizeElements,e,null),!1):(bt(e),!0)},Dt=function(e,t,n){if(Ye&&("id"===t||"name"===t)&&(n in o||n in yt))return!1;if(Le&&!xe[t]&&N(Se,t));else if(Ie&&N(Te,t));else if(De.attributeCheck instanceof Function&&De.attributeCheck(t,e));else if(!Ce[t]||xe[t]){if(!(It(e)&&(Oe.tagNameCheck instanceof RegExp&&N(Oe.tagNameCheck,e)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(e))&&(Oe.attributeNameCheck instanceof RegExp&&N(Oe.attributeNameCheck,t)||Oe.attributeNameCheck instanceof Function&&Oe.attributeNameCheck(t,e))||"is"===t&&Oe.allowCustomizedBuiltInElements&&(Oe.tagNameCheck instanceof RegExp&&N(Oe.tagNameCheck,n)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(n))))return!1}else if(tt[t]);else if(N(be,v(n,Ae,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==A(n,"data:")||!Qe[e]){if(Me&&!N(ve,v(n,Ae,"")));else if(n)return!1}else;return!0},It=function(e){return"annotation-xml"!==e&&T(e,Ee)},Lt=function(e){kt(he.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||wt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,u=gt(s),m=c;let f="value"===s?m:E(m);if(r.attrName=u,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,kt(he.uponSanitizeAttribute,e,r),f=r.attrValue,!qe||"id"!==u&&"name"!==u||(Nt(s,e),f=Xe+f),Pe&&N(/((--!?|])>)|<\/(style|title|textarea)/i,f)){Nt(s,e);continue}if("attributename"===u&&T(f,"href")){Nt(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Nt(s,e);continue}if(!ze&&N(/\/>/i,f)){Nt(s,e);continue}Fe&&p([ge,_e,ye],(e=>{f=v(f,e," ")}));const d=gt(e.nodeName);if(Dt(d,u,f)){if(le&&"object"===typeof Y&&"function"===typeof Y.getAttributeType)if(l);else switch(Y.getAttributeType(d,u)){case"TrustedHTML":f=le.createHTML(f);break;case"TrustedScriptURL":f=le.createScriptURL(f)}if(f!==m)try{l?e.setAttributeNS(l,s,f):e.setAttribute(s,f),wt(e)?bt(e):h(n.removed)}catch(i){Nt(s,e)}}else Nt(s,e)}kt(he.afterSanitizeAttributes,e,null)},Mt=function e(t){let n=null;const r=Ct(t);for(kt(he.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)kt(he.uponSanitizeShadowNode,n,null),xt(n),Lt(n),n.content instanceof s&&e(n.content);kt(he.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,l=null;if(st=!e,st&&(e="\x3c!--\x3e"),"string"!==typeof e&&!Ot(e)){if("function"!==typeof e.toString)throw R("toString is not a function");if("string"!==typeof(e=e.toString()))throw R("dirty is not a string, aborting")}if(!n.isSupported)return e;if(He||Tt(t),n.removed=[],"string"===typeof e&&(Ke=!1),Ke){if(e.nodeName){const t=gt(e.nodeName);if(!Ne[t]||ke[t])throw R("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof m)r=Rt("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===te&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Be&&!Fe&&!Ue&&-1===e.indexOf("<"))return le&&We?le.createHTML(e):e;if(r=Rt(e),!r)return Be?null:We?ce:""}r&&je&&bt(r.firstChild);const c=Ct(Ke?e:r);for(;a=c.nextNode();)xt(a),Lt(a),a.content instanceof s&&Mt(a.content);if(Ke)return e;if(Be){if(Ge)for(l=fe.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(Ce.shadowroot||Ce.shadowrootmode)&&(l=de.call(i,l,!0)),l}let u=Ue?r.outerHTML:r.innerHTML;return Ue&&Ne["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&N(J,r.ownerDocument.doctype.name)&&(u="\n"+u),Fe&&p([ge,_e,ye],(e=>{u=v(u,e," ")})),le&&We?le.createHTML(u):u},n.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Tt(e),He=!0},n.clearConfig=function(){_t=null,He=!1},n.isValidAttribute=function(e,t,n){_t||Tt({});const r=gt(e),o=gt(t);return Dt(r,o,n)},n.addHook=function(e,t){"function"===typeof t&&g(he[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=d(he[e],t);return-1===n?void 0:_(he[e],n,1)[0]}return h(he[e])},n.removeHooks=function(e){he[e]=[]},n.removeAllHooks=function(){he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()}}]);