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.347c0bf3.async.js

4 lines
21 KiB

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