You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/8384.fd5ea828.async.js

3 lines
22 KiB

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