vendor: 7,017 bytes, lines 1-2
1function Et(n,o){(o==null||o>n.length)&&(o=n.length);for(var i=0,s=Array(o);i<o;i++)s[i]=n[i];return s}function sn(n){if(Array.isArray(n))return n}function ln(n,o){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var s,u,f,C,z=[],j=!0,N=!1;try{if(f=(i=i.call(n)).next,o!==0)for(;!(j=(s=f.call(i)).done)&&(z.push(s.value),z.length!==o);j=!0);}catch(le){N=!0,u=le}finally{try{if(!j&&i.return!=null&&(C=i.return(),Object(C)!==C))return}finally{if(N)throw u}}return z}}function cn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function un(n,o){return sn(n)||ln(n,o)||fn(n,o)||cn()}function fn(n,o){if(n){if(typeof n=="string")return Et(n,o);var i={}.toString.call(n).slice(8,-1);return i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set"?Array.from(n):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Et(n,o):void 0}}const vt=Object.entries,St=Object.setPrototypeOf,mn=Object.isFrozen,pn=Object.getPrototypeOf,dn=Object.getOwnPropertyDescriptor;let D=Object.freeze,w=Object.seal,Q=Object.create,Ft=typeof Reflect<"u"&&Reflect,je=Ft.apply,Ye=Ft.construct;D||(D=function(o){return o});w||(w=function(o){return o});je||(je=function(o,i){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return o.apply(i,u)});Ye||(Ye=function(o){for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return new o(...s)});const q=g(Array.prototype.forEach),Tn=g(Array.prototype.lastIndexOf),bt=g(Array.prototype.pop),K=g(Array.prototype.push),gn=g(Array.prototype.splice),O=Array.isArray,se=g(String.prototype.toLowerCase),He=g(String.prototype.toString),yt=g(String.prototype.match),Z=g(String.prototype.replace),Rt=g(String.prototype.indexOf),An=g(String.prototype.trim),hn=g(Number.prototype.toString),_n=g(Boolean.prototype.toString),Ot=typeof BigInt>"u"?null:g(BigInt.prototype.toString),Dt=typeof Symbol>"u"?null:g(Symbol.prototype.toString),m=g(Object.prototype.hasOwnProperty),ae=g(Object.prototype.toString),b=g(RegExp.prototype.test),be=En(TypeError);function g(n){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return je(n,o,s)}}function En(n){return function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return Ye(n,i)}}function l(n,o){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:se;if(St&&St(n,null),!O(o))return n;let s=o.length;for(;s--;){let u=o[s];if(typeof u=="string"){const f=i(u);f!==u&&(mn(o)||(o[s]=f),u=f)}n[u]=!0}return n}function Sn(n){for(let o=0;o<n.length;o++)m(n,o)||(n[o]=null);return n}function L(n){const o=Q(null);for(const s of vt(n)){var i=un(s,2);const u=i[0],f=i[1];m(n,u)&&(O(f)?o[u]=Sn(f):f&&typeof f=="object"&&f.constructor===Object?o[u]=L(f):o[u]=f)}return o}function bn(n){switch(typeof n){case"string":return n;case"number":return hn(n);case"boolean":return _n(n);case"bigint":return Ot?Ot(n):"0";case"symbol":return Dt?Dt(n):"Symbol()";case"undefined":return ae(n);case"function":case"object":{if(n===null)return ae(n);const o=n,i=B(o,"toString");if(typeof i=="function"){const s=i(o);return typeof s=="string"?s:ae(s)}return ae(n)}default:return ae(n)}}function B(n,o){for(;n!==null;){const s=dn(n,o);if(s){if(s.get)return g(s.get);if(typeof s.value=="function")return g(s.value)}n=pn(n)}function i(){return null}return i}function yn(n){try{return b(n,""),!0}catch{return!1}}const It=D(["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"]),ze=D(["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"]),We=D(["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"]),Rn=D(["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"]),Ge=D(["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"]),On=D(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Lt=D(["#text"]),Nt=D(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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","
2spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Be=D(["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"]),wt=D(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),ye=D(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Dn=w(/{{[\w\W]*|^[\w\W]*}}/g),In=w(/<%[\w\W]*|^[\w\W]*%>/g),Ln=w(/\${[\w\W]*/g),Nn=w(/^data-[\-\w.\u00B7-\uFFFF]+$/),wn=w(/^aria-[\-\w]+$/),Ct=w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Cn=w(/^(?:\w+script|data):/i),Mn=w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xn=w(/^html$/i),kn=w(/^[a-z][.\w]*(-[.\w]+)+$/i),J={element:1,text:3,progressingInstruction:7,comment:8,document:9},Pn=function(){return typeof window>"u"?null:window},vn=function(o,i){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";i&&i.hasAttribute(u)&&(s=i.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return o.createPolicy(f,{createHTML(C){return C},createScriptURL(C){return C}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},Mt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ut(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pn();const o=a=>Ut(a);if(o.version="3.4.5",o.removed=[],!n||!n.document||n.document.nodeType!==J.document||!n.Element)return o.isSupported=!1,o;let i=n.document;const s=i,u=s.currentScript,f=n.DocumentFragment,C=n.HTMLTemplateElement,z=n.Node,j=n.Element,N=n.NodeFilter,le=n.NamedNodeMap,Ht=le===void 0?n.NamedNodeMap||n.MozNamedAttrMap:le,zt=n.HTMLFormElement,Wt=n.DOMParser,ce=n.trustedTypes,ee=j.prototype,Gt=B(ee,"cloneNode"),Bt=B(ee,"remove"),jt=B(ee,"nextSibling"),Yt=B(ee,"childNodes"),ue=B(ee,"parentNode"),Xe=z&&z.prototype?B(z.prototype,"nodeType"):null;if(typeof C=="function"){const a=i.createElement("template");a.content&&a.content.ownerDocument&&(i=a.content.ownerDocument)}let y,te="";const fe=i,Re=fe.implementation,Ve=fe.createNodeIterator,$t=fe.createDocumentFragment,Xt=fe.getElementsByTagName,Vt=s.importNode;let R=Mt();o.isSupported=typeof vt=="function"&&typeof ue=="function"&&Re&&Re.createHTMLDocument!==void 0;const me=Dn,pe=In,de=Ln,qt=Nn,Kt=wn,Zt=Cn,qe=Mn,Jt=kn;let Ke=Ct,_=null;const Ze=l({},[...It,...ze,...We,...Ge,...Lt]);let S=null;const Je=l({},[...Nt,...Be,...wt,...ye]);
vendor: 8,473 bytes, line 2
2let p=Object.seal(Q(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}})),ne=null,Te=null;const F=Object.seal(Q(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Qe=!0,Oe=!0,et=!1,tt=!0,U=!1,oe=!0,W=!1,De=!1,Ie=!1,Y=!1,ge=!1,Ae=!1,nt=!0,ot=!1;const rt="user-content-";let Le=!0,re=!1,$={},x=null;const Ne=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 it=null;const at=l({},["audio","video","img","source","image","track"]);let we=null;const st=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",_e="http://www.w3.org/2000/svg",k="http://www.w3.org/1999/xhtml";let X=k,Ce=!1,Me=null;const Qt=l({},[he,_e,k],He);let xe=l({},["mi","mo","mn","ms","mtext"]),ke=l({},["annotation-xml"]);const en=l({},["title","style","font","a","script"]);let ie=null;const tn=["application/xhtml+xml","text/html"],nn="text/html";let h=null,V=null;const on=i.createElement("form"),lt=function(e){return e instanceof RegExp||e instanceof Function},Pe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(V&&V===e)return;(!e||typeof e!="object")&&(e={}),e=L(e),ie=tn.indexOf(e.PARSER_MEDIA_TYPE)===-1?nn:e.PARSER_MEDIA_TYPE,h=ie==="application/xhtml+xml"?He:se,_=m(e,"ALLOWED_TAGS")&&O(e.ALLOWED_TAGS)?l({},e.ALLOWED_TAGS,h):Ze,S=m(e,"ALLOWED_ATTR")&&O(e.ALLOWED_ATTR)?l({},e.ALLOWED_ATTR,h):Je,Me=m(e,"ALLOWED_NAMESPACES")&&O(e.ALLOWED_NAMESPACES)?l({},e.ALLOWED_NAMESPACES,He):Qt,we=m(e,"ADD_URI_SAFE_ATTR")&&O(e.ADD_URI_SAFE_ATTR)?l(L(st),e.ADD_URI_SAFE_ATTR,h):st,it=m(e,"ADD_DATA_URI_TAGS")&&O(e.ADD_DATA_URI_TAGS)?l(L(at),e.ADD_DATA_URI_TAGS,h):at,x=m(e,"FORBID_CONTENTS")&&O(e.FORBID_CONTENTS)?l({},e.FORBID_CONTENTS,h):Ne,ne=m(e,"FORBID_TAGS")&&O(e.FORBID_TAGS)?l({},e.FORBID_TAGS,h):L({}),Te=m(e,"FORBID_ATTR")&&O(e.FORBID_ATTR)?l({},e.FORBID_ATTR,h):L({}),$=m(e,"USE_PROFILES")?e.USE_PROFILES&&typeof e.USE_PROFILES=="object"?L(e.USE_PROFILES):e.USE_PROFILES:!1,Qe=e.ALLOW_ARIA_ATTR!==!1,Oe=e.ALLOW_DATA_ATTR!==!1,et=e.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=e.SAFE_FOR_TEMPLATES||!1,oe=e.SAFE_FOR_XML!==!1,W=e.WHOLE_DOCUMENT||!1,Y=e.RETURN_DOM||!1,ge=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,nt=e.SANITIZE_DOM!==!1,ot=e.SANITIZE_NAMED_PROPS||!1,Le=e.KEEP_CONTENT!==!1,re=e.IN_PLACE||!1,Ke=yn(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Ct,X=typeof e.NAMESPACE=="string"?e.NAMESPACE:k,xe=m(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS=="object"?L(e.MATHML_TEXT_INTEGRATION_POINTS):l({},["mi","mo","mn","ms","mtext"]),ke=m(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS=="object"?L(e.HTML_INTEGRATION_POINTS):l({},["annotation-xml"]);const t=m(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING=="object"?L(e.CUSTOM_ELEMENT_HANDLING):Q(null);if(p=Q(null),m(t,"tagNameCheck")&<(t.tagNameCheck)&&(p.tagNameCheck=t.tagNameCheck),m(t,"attributeNameCheck")&<(t.attributeNameCheck)&&(p.attributeNameCheck=t.attributeNameCheck),m(t,"allowCustomizedBuiltInElements")&&typeof t.allowCustomizedBuiltInElements=="boolean"&&(p.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),U&&(Oe=!1),ge&&(Y=!0),$&&(_=l({},Lt),S=Q(null),$.html===!0&&(l(_,It),l(S,Nt)),$.svg===!0&&(l(_,ze),l(S,Be),l(S,ye)),$.svgFilters===!0&&(l(_,We),l(S,Be),l(S,ye)),$.mathMl===!0&&(l(_,Ge),l(S,wt),l(S,ye))),F.tagCheck=null,F.attributeCheck=null,m(e,"ADD_TAGS")&&(typeof e.ADD_TAGS=="function"?F.tagCheck=e.ADD_TAGS:O(e.ADD_TAGS)&&(_===Ze&&(_=L(_)),l(_,e.ADD_TAGS,h))),m(e,"ADD_ATTR")&&(typeof e.ADD_ATTR=="function"?F.attributeCheck=e.ADD_ATTR:O(e.ADD_ATTR)&&(S===Je&&(S=L(S)),l(S,e.ADD_ATTR,h))),m(e,"ADD_URI_SAFE_ATTR")&&O(e.ADD_URI_SAFE_ATTR)&&l(we,e.ADD_URI_SAFE_ATTR,h),m(e,"FORBID_CONTENTS")&&O(e.FORBID_CONTENTS)&&(x===Ne&&(x=L(x)),l(x,e.FORBID_CONTENTS,h)),m(e,"ADD_FORBID_CONTENTS")&&O(e.ADD_FORBID_CONTENTS)&&(x===Ne&&(x=L(x)),l(x,e.ADD_FORBID_CONTENTS,h)),Le&&(_["#text"]=!0),W&&l(_,["html","head","body"]),_.table&&(l(_,["tbody"]),delete ne.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw be('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw be('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=e.TRUSTED_TYPES_POLICY,te=y.createHTML("")}else y===void 0&&(y=vn(ce,u)),y!==null&&typeof te=="string"&&(te=y.createHTML(""));D&&D(e),V=e},ct=l({},[...ze,...We,...Rn]),ut=l({},[...Ge,...On]),rn=function(e){let t=ue(e);(!t||!t.tagName)&&(t={namespaceURI:X,tagName:"template"});const r=se(e.tagName),c=se(t.tagName);return Me[e.namespaceURI]?e.namespaceURI===_e?t.namespaceURI===k?r==="svg":t.namespaceURI===he?r==="svg"&&(c==="annotation-xml"||xe[c]):!!ct[r]:e.namespaceURI===he?t.namespaceURI===k?r==="math":t.namespaceURI===_e?r==="math"&&ke[c]:!!ut[r]:e.namespaceURI===k?t.namespaceURI===_e&&!ke[c]||t.namespaceURI===he&&!xe[c]?!1:!ut[r]&&(en[r]||!ct[r]):!!(ie==="application/xhtml+xml"&&Me[e.namespaceURI]):!1},M=function(e){K(o.removed,{element:e});try{ue(e).removeChild(e)}catch{Bt(e)}},G=function(e,t){try{K(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{K(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(Y||ge)try{M(t)}catch{}else try{t.setAttribute(e,"")}catch{}},ft=function(e){let t=null,r=null;if(Ie)e="<remove></remove>"+e;else{const T=yt(e,/^[\r\n\t ]+/);r=T&&T[0]}ie==="application/xhtml+xml"&&X===k&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const c=y?y.createHTML(e):e;if(X===k)try{t=new Wt().parseFromString(c,ie)}catch{}if(!t||!t.documentElement){t=Re.createDocument(X,"template",null);try{t.documentElement.innerHTML=Ce?te:c}catch{}}const d=t.body||t.documentElement;return e&&r&&d.insertBefore(i.createTextNode(r),d.childNodes[0]||null),X===k?Xt.call(t,W?"html":"body")[0]:W?t.documentElement:d},mt=function(e){return Ve.call(e.ownerDocument||e,e,N.SHOW_ELEMENT|N.SHOW_COMMENT|N.SHOW_TEXT|N.SHOW_PROCESSING_INSTRUCTION|N.SHOW_CDATA_SECTION,null)},pt=function(e){e.normalize();const t=Ve.call(e.ownerDocument||e,e,N.SHOW_TEXT|N.SHOW_COMMENT|N.SHOW_CDATA_SECTION|N.SHOW_PROCESSING_INSTRUCTION,null);let r=t.nextNode();for(;r;){let c=r.data;q([me,pe,de],d=>{c=Z(c,d," ")}),r.data=c,r=t.nextNode()}},ve=function(e){return e instanceof zt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Ht)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},Ee=function(e){if(!Xe||typeof e!="object"||e===null)return!1;try{return typeof Xe(e)=="number"}catch{return!1}};function P(a,e,t){q(a,r=>{r.call(o,e,t,V)})}const dt=function(e){let t=null;if(P(R.beforeSanitizeElements,e,null),ve(e))return M(e),!0;const r=h(e.nodeName);if(P(R.uponSanitizeElement,e,{tagName:r,allowedTags:_}),oe&&e.hasChildNodes()&&!Ee(e.firstElementChild)&&b(/<[/\w!]/g,e.innerHTML)&&b(/<[/\w!]/g,e.textContent)||oe&&e.namespaceURI===k&&r==="style"&&Ee(e.firstElementChild)||e.nodeType===J.progressingInstruction||oe&&e.nodeType===J.comment&&b(/<[/\w]/g,e.data))return M(e),!0;if(ne[r]||!(F.tagCheck instanceof Function&&F.tagCheck(r))&&!_[r]){if(!ne[r]&>(r)&&(p.tagNameCheck instanceof RegExp&&b(p.tagNameCheck,r)||p.tagNameCheck instanceof Function&&p.tagNameCheck(r)))return!1;if(Le&&!x[r]){const c=ue(e)||e.parentNode,d=Yt(e)||e.childNodes;if(d&&c){const T=d.length;for(let I=T-1;I>=0;--I){const H=Gt(d[I],!0);c.insertBefore(H,jt(e))}}}return M(e),!0}return e instanceof j&&!rn(e)||(r==="noscript"||r==="noembed"||r==="noframes")&&b(/<\/no(script|embed|frames)/i,e.innerHTML)?(M(e),!0):(U&&e.nodeType===J.text&&(t=e.textContent,q([me,pe,de],c=>{t=Z(t,c," ")}
2),e.textContent!==t&&(K(o.removed,{element:e.cloneNode()}),e.textContent=t)),P(R.afterSanitizeElements,e,null),!1)},Tt=function(e,t,r){if(Te[t]||nt&&(t==="id"||t==="name")&&(r in i||r in on))return!1;const c=S[t]||F.attributeCheck instanceof Function&&F.attributeCheck(t,e);if(!(Oe&&!Te[t]&&b(qt,t))){if(!(Qe&&b(Kt,t))){if(!c||Te[t]){if(!(gt(e)&&(p.tagNameCheck instanceof RegExp&&b(p.tagNameCheck,e)||p.tagNameCheck instanceof Function&&p.tagNameCheck(e))&&(p.attributeNameCheck instanceof RegExp&&b(p.attributeNameCheck,t)||p.attributeNameCheck instanceof Function&&p.attributeNameCheck(t,e))||t==="is"&&p.allowCustomizedBuiltInElements&&(p.tagNameCheck instanceof RegExp&&b(p.tagNameCheck,r)||p.tagNameCheck instanceof Function&&p.tagNameCheck(r))))return!1}else if(!we[t]){if(!b(Ke,Z(r,qe,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&Rt(r,"data:")===0&&it[e])){if(!(et&&!b(Zt,Z(r,qe,"")))){if(r)return!1}}}}}}return!0},an=l({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),gt=function(e){return!an[se(e)]&&b(Jt,e)},At=function(e){P(R.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||ve(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:S,forceKeepAttr:void 0};let c=t.length;for(;c--;){const d=t[c],T=d.name,I=d.namespaceURI,H=d.value,v=h(T),Ue=H;let E=T==="value"?Ue:An(Ue);if(r.attrName=v,r.attrValue=E,r.keepAttr=!0,r.forceKeepAttr=void 0,P(R.uponSanitizeAttribute,e,r),E=r.attrValue,ot&&(v==="id"||v==="name")&&Rt(E,rt)!==0&&(G(T,e),E=rt+E),oe&&b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,E)){G(T,e);continue}if(v==="attributename"&&yt(E,"href")){G(T,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){G(T,e);continue}if(!tt&&b(/\/>/i,E)){G(T,e);continue}U&&q([me,pe,de],_t=>{E=Z(E,_t," ")});const ht=h(e.nodeName);if(!Tt(ht,v,E)){G(T,e);continue}if(y&&typeof ce=="object"&&typeof ce.getAttributeType=="function"&&!I)switch(ce.getAttributeType(ht,v)){case"TrustedHTML":{E=y.createHTML(E);break}case"TrustedScriptURL":{E=y.createScriptURL(E);break}}if(E!==Ue)try{I?e.setAttributeNS(I,T,E):e.setAttribute(T,E),ve(e)?M(e):bt(o.removed)}catch{G(T,e)}}P(R.afterSanitizeAttributes,e,null)},Fe=function(e){let t=null;const r=mt(e);for(P(R.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)P(R.uponSanitizeShadowNode,t,null),dt(t),At(t),t.content instanceof f&&Fe(t.content);P(R.afterSanitizeShadowDOM,e,null)},Se=function(e){if(e.nodeType===J.element&&e.shadowRoot instanceof f){const c=e.shadowRoot;Se(c),Fe(c)}const t=e.childNodes;if(!t)return;const r=[];q(t,c=>{K(r,c)});for(const c of r)Se(c)};return o.sanitize=function(a){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,r=null,c=null,d=null;if(Ce=!a,Ce&&(a="<!-->"),typeof a!="string"&&!Ee(a)&&(a=bn(a),typeof a!="string"))throw be("dirty is not a string, aborting");if(!o.isSupported)return a;if(De||Pe(e),o.removed=[],typeof a=="string"&&(re=!1),re){const H=a.nodeName;if(typeof H=="string"){const v=h(H);if(!_[v]||ne[v])throw be("root node is forbidden and cannot be sanitized in-place")}Se(a)}else if(Ee(a))t=ft("<!---->"),r=t.ownerDocument.importNode(a,!0),r.nodeType===J.element&&r.nodeName==="BODY"||r.nodeName==="HTML"?t=r:t.appendChild(r),Se(r);else{if(!Y&&!U&&!W&&a.indexOf("<")===-1)return y&&Ae?y.createHTML(a):a;if(t=ft(a),!t)return Y?null:Ae?te:""}t&&Ie&&M(t.firstChild);const T=mt(re?a:t);for(;c=T.nextNode();)dt(c),At(c),c.content instanceof f&&Fe(c.content);if(re)return U&&pt(a),a;if(Y){if(U&&pt(t),ge)for(d=$t.call(t.ownerDocument);t.firstChild;)d.appendChild(t.firstChild);else d=t;return(S.shadowroot||S.shadowrootmode)&&(d=Vt.call(s,d,!0)),d}let I=W?t.outerHTML:t.innerHTML;return W&&_["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&b(xn,t.ownerDocument.doctype.name)&&(I="<!DOCTYPE "+t.ownerDocument.doctype.name+`> 3`+I),U&&q([me,pe,de],H=>{I=Z(I,H," ")}),y&&Ae?y.createHTML(I):I},o.setConfig=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pe(a),De=!0},o.clearConfig=function(){V=null,De=!1},o.isValidAttribute=function(a,e,t){V||Pe({});const r=h(a),c=h(e);return Tt(r,c,t)},o.addHook=function(a,e){typeof e=="function"&&K(R[a],e)},o.removeHook=function(a,e){if(e!==void 0){const t=Tn(R[a],e);return t===-1?void 0:gn(R[a],t,1)[0]}return bt(R[a])},o.removeHooks=function(a){R[a]=[]},o.removeAllHooks=function(){R=Mt()},o}var A=Ut(),$e=A;A.sanitize.bind(A);A.isSupported;A.addHook.bind(A);A.removeHook.bind(A);A.removeHooks.bind(A);A.removeAllHooks.bind(A);A.setConfig.bind(A);A.clearConfig.bind(A);A.isValidAttribute.bind(A);A.version;A.removed;const Fn=["a","abbr","address","article","aside","b","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","div","dl","dt","em","figcaption","figure","footer","h1","h2","h3","h4","h5","h6","header","hr","
3i","iframe","img","ins","kbd","li","main","mark","nav","ol","p","picture","pre","q","s","samp","section","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"],Un=["href","target","rel","title","name","src","alt","srcset","sizes","width","height","cite","datetime","lang","dir","frameborder","allow","allowfullscreen","loading","referrerpolicy","poster","controls","autoplay","muted","loop","playsinline","preload","type","value","open","colspan","rowspan","scope","headers","span","class","id","style","role"],Hn=new Set(["www.youtube.com","youtube.com","www.youtube-nocookie.com","youtube-nocookie.com","www.openstreetmap.org","openstreetmap.org"]),zn=new Set(["http:","https:","mailto:","tel:"]);function xt(n){if(!n||typeof n!="object")return null;const o=n;return typeof o.getAttribute!="function"||typeof o.setAttribute!="function"||typeof o.remove!="function"?null:o}function kt(n){try{const o=new URL(n,"https://placeholder.invalid");return Hn.has(o.hostname.toLowerCase())}catch{return!1}}function Wn(n){const o=n.trim();if(!o)return!1;if(o.startsWith("/")||o.startsWith("#")||o.startsWith("?"))return!0;try{const i=new URL(o,"https://placeholder.invalid");return i.origin==="https://placeholder.invalid"?!0:zn.has(i.protocol)}catch{return!1}}let Pt=!1;function Gn(){Pt||(Pt=!0,$e.addHook("uponSanitizeAttribute",(n,o)=>{const i=n.nodeName?.toLowerCase?.()||"",s=o.attrName;if(i==="iframe"&&s==="src"){kt(String(o.attrValue||""))||(o.keepAttr=!1);return}if(s==="href"||s==="src"||s==="action"||s==="formaction"){Wn(String(o.attrValue||""))||(o.keepAttr=!1);return}if(s==="target"&&i==="a"){const u=xt(n);if(!u){o.keepAttr=!1;return}const f=u.getAttribute("rel")||"";(!/\bnoopener\b/.test(f)||!/\bnoreferrer\b/.test(f))&&u.setAttribute("rel","noopener noreferrer")}}),$e.addHook("uponSanitizeElement",(n,o)=>{if(o.tagName==="iframe"){const i=xt(n);if(!i)return;const s=i.getAttribute("src")||"";kt(s)||i.remove()}}))}function Bn(n){return!n||typeof n!="string"?"":(Gn(),$e.sanitize(n,{ALLOWED_TAGS:Fn,ALLOWED_ATTR:Un,ALLOW_DATA_ATTR:!0,ALLOW_ARIA_ATTR:!0,ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","referrerpolicy"],FORBID_TAGS:["script","style","object","embed","base","form","input","textarea","select","option","link","meta"],FORBID_ATTR:["onerror","onload","onclick","onmouseover","onfocus","onblur","onchange","onsubmit","onreset","onkeydown","onkeypress","onkeyup","onmouseenter","onmouseleave"],KEEP_CONTENT:!0,USE_PROFILES:{html:!0}}))}export{Bn as s};
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.