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