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/246.68e5a26e.async.js

4 lines
22 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[246],{qZ2Q:function(ht,da,pa){/*! @license DOMPurify 2.4.5 | (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.5/LICENSE */(function(L,B){ht.exports=B()})(this,function(){"use strict";function L(a){return L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},L(a)}function B(a,r){return B=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},B(a,r)}function bt(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function K(a,r,o){return bt()?K=Reflect.construct:K=function(c,D,N){var O=[null];O.push.apply(O,D);var V=Function.bind.apply(c,O),X=new V;return N&&B(X,N.prototype),X},K.apply(null,arguments)}function A(a){return vt(a)||gt(a)||yt(a)||Tt()}function vt(a){if(Array.isArray(a))return ce(a)}function gt(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function yt(a,r){if(!a)return;if(typeof a=="string")return ce(a,r);var o=Object.prototype.toString.call(a).slice(8,-1);if(o==="Object"&&a.constructor&&(o=a.constructor.name),o==="Map"||o==="Set")return Array.from(a);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ce(a,r)}function ce(a,r){(r==null||r>a.length)&&(r=a.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=a[o];return l}function Tt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _t=Object.hasOwnProperty,Fe=Object.setPrototypeOf,At=Object.isFrozen,Et=Object.getPrototypeOf,wt=Object.getOwnPropertyDescriptor,g=Object.freeze,E=Object.seal,Mt=Object.create,Ue=typeof Reflect!="undefined"&&Reflect,Z=Ue.apply,fe=Ue.construct;Z||(Z=function(r,o,l){return r.apply(o,l)}),g||(g=function(r){return r}),E||(E=function(r){return r}),fe||(fe=function(r,o){return K(r,A(o))});var Dt=_(Array.prototype.forEach),ze=_(Array.prototype.pop),j=_(Array.prototype.push),J=_(String.prototype.toLowerCase),me=_(String.prototype.toString),Ot=_(String.prototype.match),w=_(String.prototype.replace),St=_(String.prototype.indexOf),Lt=_(String.prototype.trim),y=_(RegExp.prototype.test),de=Nt(TypeError);function _(a){return function(r){for(var o=arguments.length,l=new Array(o>1?o-1:0),c=1;c<o;c++)l[c-1]=arguments[c];return Z(a,r,l)}}function Nt(a){return function(){for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return fe(a,o)}}function s(a,r,o){o=o||J,Fe&&Fe(a,null);for(var l=r.length;l--;){var c=r[l];if(typeof c=="string"){var D=o(c);D!==c&&(At(r)||(r[l]=D),c=D)}a[c]=!0}return a}function x(a){var r=Mt(null),o;for(o in a)Z(_t,a,[o])===!0&&(r[o]=a[o]);return r}function Q(a,r){for(;a!==null;){var o=wt(a,r);if(o){if(o.get)return _(o.get);if(typeof o.value=="function")return _(o.value)}a=Et(a)}function l(c){return console.warn("fallback value for",c),null}return l}var Ge=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"]),pe=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"]),he=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),kt=g(["animate","color-profile","cursor","discard","fedropshadow","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"]),be=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"]),Rt=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),We=g(["#text"]),Be=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"]),ve=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"]),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"]),ee=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ct=E(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xt=E(/<%[\w\W]*|[\w\W]*%>/gm),It=E(/\${[\w\W]*}/gm),Pt=E(/^data-[\-\w.\u00B7-\uFFFF]/),Ht=E(/^aria-[\-\w]+$/),Ft=E(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ut=E(/^(?:\w+script|data):/i),zt=E(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gt=E(/^html$/i),Wt=function(){return typeof window=="undefined"?null:window},Bt=function(r,o){if(L(r)!=="object"||typeof r.createPolicy!="function")return null;var l=null,c="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(c)&&(l=o.currentScript.getAttribute(c));var D="dompurify"+(l?"#"+l:"");try{return r.createPolicy(D,{createHTML:function(O){return O},createScriptURL:function(O){return O}})}catch(N){return console.warn("TrustedTypes policy "+D+" could not be created."),null}};function Ve(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wt(),r=function(e){return Ve(e)};if(r.version="2.4.5",r.removed=[],!a||!a.document||a.document.nodeType!==9)return r.isSupported=!1,r;var o=a.document,l=a.document,c=a.DocumentFragment,D=a.HTMLTemplateElement,N=a.Node,O=a.Element,V=a.NodeFilter,X=a.NamedNodeMap,Vt=X===void 0?a.NamedNodeMap||a.MozNamedAttrMap:X,Xt=a.HTMLFormElement,$t=a.DOMParser,te=a.trustedTypes,ae=O.prototype,Yt=Q(ae,"cloneNode"),qt=Q(ae,"nextSibling"),Kt=Q(ae,"childNodes"),ge=Q(ae,"parentNode");if(typeof D=="function"){var ye=l.createElement("template");ye.content&&ye.content.ownerDocument&&(l=ye.content.ownerDocument)}var M=Bt(te,o),Te=M?M.createHTML(""):"",ne=l,_e=ne.implementation,Zt=ne.createNodeIterator,Jt=ne.createDocumentFragment,Qt=ne.getElementsByTagName,ea=o.importNode,Xe={};try{Xe=x(l).documentMode?l.documentMode:{}}catch(i){}var S={};r.isSupported=typeof ge=="function"&&_e&&typeof _e.createHTMLDocument!="undefined"&&Xe!==9;var Ae=Ct,Ee=xt,we=It,ta=Pt,aa=Ht,na=Ut,$e=zt,Me=Ft,m=null,Ye=s({},[].concat(A(Ge),A(pe),A(he),A(be),A(We))),d=null,qe=s({},[].concat(A(Be),A(ve),A(je),A(ee))),f=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}})),$=null,De=null,Ke=!0,Oe=!0,Ze=!1,Je=!0,H=!1,I=!1,Se=!1,Le=!1,F=!1,re=!1,ie=!1,Qe=!0,et=!1,ra="user-content-",Ne=!0,Y=!1,U={},z=null,tt=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"]),at=null,nt=s({},["audio","video","img","source","image","track"]),ke=null,rt=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),oe="http://www.w3.org/1998/Math/MathML",se="http://www.w3.org/2000/svg",k="http://www.w3.org/1999/xhtml",G=k,Re=!1,Ce=null,ia=s({},[oe,se,k],me),P,oa=["application/xhtml+xml","text/html"],sa="text/html",p,W=null,la=l.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},xe=function(e){if(W&&W===e)return;(!e||L(e)!=="object")&&(e={}),e=x(e),P=oa.indexOf(e.PARSER_MEDIA_TYPE)===-1?P=sa:P=e.PARSER_MEDIA_TYPE,p=P==="application/xhtml+xml"?me:J,m="ALLOWED_TAGS"in e?s({},e.ALLOWED_TAGS,p):Ye,d="ALLOWED_ATTR"in e?s({},e.ALLOWED_ATTR,p):qe,Ce="ALLOWED_NAMESPACES"in e?s({},e.ALLOWED_NAMESPACES,me):ia,ke="ADD_URI_SAFE_ATTR"in e?s(x(rt),e.ADD_URI_SAFE_ATTR,p):rt,at="ADD_DATA_URI_TAGS"in e?s(x(nt),e.ADD_DATA_URI_TAGS,p):nt,z="FORBID_CONTENTS"in e?s({},e.FORBID_CONTENTS,p):tt,$="FORBID_TAGS"in e?s({},e.FORBID_TAGS,p):{},De="FORBID_ATTR"in e?s({},e.FORBID_ATTR,p):{},U="USE_PROFILES"in e?e.USE_PROFILES:!1,Ke=e.ALLOW_ARIA_ATTR!==!1,Oe=e.ALLOW_DATA_ATTR!==!1,Ze=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Je=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,H=e.SAFE_FOR_TEMPLATES||!1,I=e.WHOLE_DOCUMENT||!1,F=e.RETURN_DOM||!1,re=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,Qe=e.SANITIZE_DOM!==!1,et=e.SANITIZE_NAMED_PROPS||!1,Ne=e.KEEP_CONTENT!==!1,Y=e.IN_PLACE||!1,Me=e.ALLOWED_URI_REGEXP||Me,G=e.NAMESPACE||k,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&it(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),H&&(Oe=!1),re&&(F=!0),U&&(m=s({},A(We)),d=[],U.html===!0&&(s(m,Ge),s(d,Be)),U.svg===!0&&(s(m,pe),s(d,ve),s(d,ee)),U.svgFilters===!0&&(s(m,he),s(d,ve),s(d,ee)),U.mathMl===!0&&(s(m,be),s(d,je),s(d,ee))),e.ADD_TAGS&&(m===Ye&&(m=x(m)),s(m,e.ADD_TAGS,p)),e.ADD_ATTR&&(d===qe&&(d=x(d)),s(d,e.ADD_ATTR,p)),e.ADD_URI_SAFE_ATTR&&s(ke,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(z===tt&&(z=x(z)),s(z,e.FORBID_CONTENTS,p)),Ne&&(m["#text"]=!0),I&&s(m,["html","head","body"]),m.table&&(s(m,["tbody"]),delete $.tbody),g&&g(e),W=e},ot=s({},["mi","mo","mn","ms","mtext"]),st=s({},["foreignobject","desc","title","annotation-xml"]),ua=s({},["title","style","font","a","script"]),le=s({},pe);s(le,he),s(le,kt);var Ie=s({},be);s(Ie,Rt);var ca=function(e){var t=ge(e);(!t||!t.tagName)&&(t={namespaceURI:G,tagName:"template"});var n=J(e.tagName),u=J(t.tagName);return Ce[e.namespaceURI]?e.namespaceURI===se?t.namespaceURI===k?n==="svg":t.namespaceURI===oe?n==="svg"&&(u==="annotation-xml"||ot[u]):Boolean(le[n]):e.namespaceURI===oe?t.namespaceURI===k?n==="math":t.namespaceURI===se?n==="math"&&st[u]:Boolean(Ie[n]):e.namespaceURI===k?t.namespaceURI===se&&!st[u]||t.namespaceURI===oe&&!ot[u]?!1:!Ie[n]&&(ua[n]||!le[n]):!!(P==="application/xhtml+xml"&&Ce[e.namespaceURI]):!1},R=function(e){j(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=Te}catch(n){e.remove()}}},Pe=function(e,t){try{j(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(n){j(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!d[e])if(F||re)try{R(t)}catch(n){}else try{t.setAttribute(e,"")}catch(n){}},lt=function(e){var t,n;if(Le)e="<remove></remove>"+e;else{var u=Ot(e,/^[\r\n\t ]+/);n=u&&u[0]}P==="application/xhtml+xml"&&G===k&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var T=M?M.createHTML(e):e;if(G===k)try{t=new $t().parseFromString(T,P)}catch(b){}if(!t||!t.documentElement){t=_e.createDocument(G,"template",null);try{t.documentElement.innerHTML=Re?Te:T}catch(b){}}var v=t.body||t.documentElement;return e&&n&&v.insertBefore(l.createTextNode(n),v.childNodes[0]||null),G===k?Qt.call(t,I?"html":"body")[0]:I?t.documentElement:v},ut=function(e){return Zt.call(e.ownerDocument||e,e,V.SHOW_ELEMENT|V.SHOW_COMMENT|V.SHOW_TEXT,null,!1)},fa=function(e){return e instanceof Xt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Vt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},q=function(e){return L(N)==="object"?e instanceof N:e&&L(e)==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},C=function(e,t,n){if(!S[e])return;Dt(S[e],function(u){u.call(r,t,n,W)})},ct=function(e){var t;if(C("beforeSanitizeElements",e,null),fa(e))return R(e),!0;if(y(/[\u0080-\uFFFF]/,e.nodeName))return R(e),!0;var n=p(e.nodeName);if(C("uponSanitizeElement",e,{tagName:n,allowedTags:m}),e.hasChildNodes()&&!q(e.firstElementChild)&&(!q(e.content)||!q(e.content.firstElementChild))&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return R(e),!0;if(n==="select"&&y(/<template/i,e.innerHTML))return R(e),!0;if(!m[n]||$[n]){if(!$[n]&&mt(n)){if(f.tagNameCheck instanceof RegExp&&y(f.tagNameCheck,n))return!1;if(f.tagNameCheck instanceof Function&&f.tagNameCheck(n))return!1}if(Ne&&!z[n]){var u=ge(e)||e.parentNode,T=Kt(e)||e.childNodes;if(T&&u)for(var v=T.length,b=v-1;b>=0;--b)u.insertBefore(Yt(T[b],!0),qt(e))}return R(e),!0}return e instanceof O&&!ca(e)||(n==="noscript"||n==="noembed")&&y(/<\/no(script|embed)/i,e.innerHTML)?(R(e),!0):(H&&e.nodeType===3&&(t=e.textContent,t=w(t,Ae," "),t=w(t,Ee," "),t=w(t,we," "),e.textContent!==t&&(j(r.removed,{element:e.cloneNode()}),e.textContent=t)),C("afterSanitizeElements",e,null),!1)},ft=function(e,t,n){if(Qe&&(t==="id"||t==="name")&&(n in l||n in la))return!1;if(!(Oe&&!De[t]&&y(ta,t))){if(!(Ke&&y(aa,t))){if(!d[t]||De[t]){if(!(mt(e)&&(f.tagNameCheck instanceof RegExp&&y(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&y(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||t==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&y(f.tagNameCheck,n)||f.tagNameCheck instanceof Function&&f.tagNameCheck(n))))return!1}else if(!ke[t]){if(!y(Me,w(n,$e,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&St(n,"data:")===0&&at[e])){if(!(Ze&&!y(na,w(n,$e,"")))){if(n)return!1}}}}}}return!0},mt=function(e){return e.indexOf("-")>0},dt=function(e){var t,n,u,T;C("beforeSanitizeAttributes",e,null);var v=e.attributes;if(!v)return;var b={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d};for(T=v.length;T--;){t=v[T];var ue=t,h=ue.name,He=ue.namespaceURI;if(n=h==="value"?t.value:Lt(t.value),u=p(h),b.attrName=u,b.attrValue=n,b.keepAttr=!0,b.forceKeepAttr=void 0,C("uponSanitizeAttribute",e,b),n=b.attrValue,b.forceKeepAttr)continue;if(Pe(h,e),!b.keepAttr)continue;if(!Je&&y(/\/>/i,n)){Pe(h,e);continue}H&&(n=w(n,Ae," "),n=w(n,Ee," "),n=w(n,we," "));var pt=p(e.nodeName);if(!ft(pt,u,n))continue;if(et&&(u==="id"||u==="name")&&(Pe(h,e),n=ra+n),M&&L(te)==="object"&&typeof te.getAttributeType=="function"&&!He)switch(te.getAttributeType(pt,u)){case"TrustedHTML":n=M.createHTML(n);break;case"TrustedScriptURL":n=M.createScriptURL(n);break}try{He?e.setAttributeNS(He,h,n):e.setAttribute(h,n),ze(r.removed)}catch(ha){}}C("afterSanitizeAttributes",e,null)},ma=function i(e){var t,n=ut(e);for(C("beforeSanitizeShadowDOM",e,null);t=n.nextNode();){if(C("uponSanitizeShadowNode",t,null),ct(t))continue;t.content instanceof c&&i(t.content),dt(t)}C("afterSanitizeShadowDOM",e,null)};return r.sanitize=function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t,n,u,T,v;if(Re=!i,Re&&(i="<!-->"),typeof i!="string"&&!q(i)){if(typeof i.toString!="function")throw de("toString is not a function");if(i=i.toString(),typeof i!="string")throw de("dirty is not a string, aborting")}if(!r.isSupported){if(L(a.toStaticHTML)==="object"||typeof a.toStaticHTML=="function"){if(typeof i=="string")return a.toStaticHTML(i);if(q(i))return a.toStaticHTML(i.outerHTML)}return i}if(Se||xe(e),r.removed=[],typeof i=="string"&&(Y=!1),Y){if(i.nodeName){var b=p(i.nodeName);if(!m[b]||$[b])throw de("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof N)t=lt("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===1&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!F&&!H&&!I&&i.indexOf("<")===-1)return M&&ie?M.createHTML(i):i;if(t=lt(i),!t)return F?null:ie?Te:""}t&&Le&&R(t.firstChild);for(var ue=ut(Y?i:t);u=ue.nextNode();){if(u.nodeType===3&&u===T)continue;if(ct(u))continue;u.content instanceof c&&ma(u.content),dt(u),T=u}if(T=null,Y)return i;if(F){if(re)for(v=Jt.call(t.ownerDocument);t.firstChild;)v.appendChild(t.firstChild);else v=t;return(d.shadowroot||d.shadowrootmod)&&(v=ea.call(o,v,!0)),v}var h=I?t.outerHTML:t.innerHTML;return I&&m["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&y(Gt,t.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
`+h),H&&(h=w(h,Ae," "),h=w(h,Ee," "),h=w(h,we," ")),M&&ie?M.createHTML(h):h},r.setConfig=function(i){xe(i),Se=!0},r.clearConfig=function(){W=null,Se=!1},r.isValidAttribute=function(i,e,t){W||xe({});var n=p(i),u=p(e);return ft(n,u,t)},r.addHook=function(i,e){if(typeof e!="function")return;S[i]=S[i]||[],j(S[i],e)},r.removeHook=function(i){if(S[i])return ze(S[i])},r.removeHooks=function(i){S[i]&&(S[i]=[])},r.removeAllHooks=function(){S={}},r}var jt=Ve();return jt})}}]);