PageSourceSearch

https://nickkarpowicz.github.io/widgets/frog/assets/purify.es-B9KxLTTS.js

js nickkarpowicz.github.io collected 2026-10-03 09:41:44 UTC 21,141 bytes, 2 lines download raw bytes

1var{entries:ot,setPrototypeOf:at,isFrozen:Ht,getPrototypeOf:Bt,getOwnPropertyDescriptor:Gt}=Object,{freeze:_,seal:N,create:K}=Object,{apply:it,construct:lt}=typeof Reflect<"u"&&Reflect;_||(_=function(o){return o}),N||(N=function(o){return o}),it||(it=function(o,r){var c=[...arguments].slice(2);return o.apply(r,c)}),lt||(lt=function(o){return new o(...[...arguments].slice(1))});var V=A(Array.prototype.forEach),Wt=A(Array.prototype.lastIndexOf),ct=A(Array.prototype.pop),Z=A(Array.prototype.push),Yt=A(Array.prototype.splice),fe=A(String.prototype.toLowerCase),we=A(String.prototype.toString),Oe=A(String.prototype.match),B=A(String.prototype.replace),jt=A(String.prototype.indexOf),Xt=A(String.prototype.trim),S=A(Object.prototype.hasOwnProperty),E=A(RegExp.prototype.test),J=qt(TypeError);function A(o){return function(r){r instanceof RegExp&&(r.lastIndex=0);var c=[...arguments].slice(1);return it(o,r,c)}}function qt(o){return function(){return lt(o,[...arguments])}}function a(o,r){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fe;at&&at(o,null);let s=r.length;for(;s--;){let R=r[s];if(typeof R=="string"){let C=c(R);C!==R&&(Ht(r)||(r[s]=C),R=C)}o[R]=!0}return o}function $t(o){for(let r=0;r<o.length;r++)S(o,r)||(o[r]=null);return o}function O(o){let r=K(null);for(let[c,s]of ot(o))S(o,c)&&(Array.isArray(s)?r[c]=$t(s):s&&typeof s=="object"&&s.constructor===Object?r[c]=O(s):r[c]=s);return r}function Q(o,r){for(;o!==null;){let s=Gt(o,r);if(s){if(s.get)return A(s.get);if(typeof s.value=="function")return A(s.value)}o=Bt(o)}function c(){return null}return c}var st=_("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".split(".")),ve=_("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".split(".")),ke=_(["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"]),Kt=_(["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"]),Le=_("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".split(".")),Vt=_(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ut=_(["#text"]),mt=_("accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")),xe=_("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".split(".")),pt=_("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".split(".")),de=_(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zt=N(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Jt=N(/<%[\w\W]*|[\w\W]*%>/gm),Qt=N(/\$\{[\w\W]*/gm),en=N(/^data-[\-\w.\u00B7-\uFFFF]+$/),tn=N(/^aria-[\-\w]+$/),ft=N(/^(?:(?:(?
vendor: 9,700 bytes, line 1
1:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nn=N(/^(?:\w+script|data):/i),rn=N(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dt=N(/^html$/i),on=N(/^[a-z][.\w]*(-[.\w]+)+$/i),gt=Object.freeze({__proto__:null,ARIA_ATTR:tn,ATTR_WHITESPACE:rn,CUSTOM_ELEMENT:on,DATA_ATTR:en,DOCTYPE_NAME:dt,ERB_EXPR:Jt,IS_ALLOWED_URI:ft,IS_SCRIPT_OR_DATA:nn,MUSTACHE_EXPR:Zt,TMPLIT_EXPR:Qt}),ee={element:1,text:3,progressingInstruction:7,comment:8,document:9},an=function(){return typeof window>"u"?null:window},ln=function(o,r){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let c=null,s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(c=r.getAttribute(s));let R="dompurify"+(c?"#"+c:"");try{return o.createPolicy(R,{createHTML(C){return C},createScriptURL(C){return C}})}catch{return console.warn("TrustedTypes policy "+R+" could not be created."),null}},ht=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Tt(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:an(),r=e=>Tt(e);if(r.version="3.4.0",r.removed=[],!o||!o.document||o.document.nodeType!==ee.document||!o.Element)return r.isSupported=!1,r;let{document:c}=o,s=c,R=s.currentScript,{DocumentFragment:C,HTMLTemplateElement:yt,Node:ge,Element:Ie,NodeFilter:G,NamedNodeMap:Et=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:At,DOMParser:_t,trustedTypes:te}=o,W=Ie.prototype,bt=Q(W,"cloneNode"),Nt=Q(W,"remove"),St=Q(W,"nextSibling"),Rt=Q(W,"childNodes"),ne=Q(W,"parentNode");if(typeof yt=="function"){let e=c.createElement("template");e.content&&e.content.ownerDocument&&(c=e.content.ownerDocument)}let h,Y="",{implementation:he,createNodeIterator:Ct,createDocumentFragment:Dt,getElementsByTagName:wt}=c,{importNode:Ot}=s,T=ht();r.isSupported=typeof ot=="function"&&typeof ne=="function"&&he&&he.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:re,ERB_EXPR:oe,TMPLIT_EXPR:ae,DATA_ATTR:vt,ARIA_ATTR:kt,IS_SCRIPT_OR_DATA:Lt,ATTR_WHITESPACE:Me,CUSTOM_ELEMENT:xt}=gt,{IS_ALLOWED_URI:Ue}=gt,f=null,Pe=a({},[...st,...ve,...ke,...Le,...ut]),d=null,ze=a({},[...mt,...xe,...pt,...de]),u=Object.seal(K(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}})),j=null,ie=null,k=Object.seal(K(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Fe=!0,Te=!0,He=!1,Be=!0,L=!1,X=!0,x=!1,ye=!1,Ee=!1,P=!1,le=!1,ce=!1,Ge=!0,We=!1,Ae=!0,q=!1,z={},D=null,_e=a({},["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"]),Ye=null,je=a({},["audio","video","img","source","image","track"]),be=null,Xe=a({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),se="http://www.w3.org/1998/Math/MathML",ue="http://www.w3.org/2000/svg",w="http://www.w3.org/1999/xhtml",F=w,Ne=!1,Se=null,It=a({},[se,ue,w],we),me=a({},["mi","mo","mn","ms","mtext"]),pe=a({},["annotation-xml"]),Mt=a({},["title","style","font","a","script"]),$=null,Ut=["application/xhtml+xml","text/html"],m=null,H=null,Pt=c.createElement("form"),qe=function(e){return e instanceof RegExp||e instanceof Function},Re=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(H&&H===e)){if((!e||typeof e!="object")&&(e={}),e=O(e),$=Ut.indexOf(e.PARSER_MEDIA_TYPE)===-1?"text/html":e.PARSER_MEDIA_TYPE,m=$==="application/xhtml+xml"?we:fe,f=S(e,"ALLOWED_TAGS")?a({},e.ALLOWED_TAGS,m):Pe,d=S(e,"ALLOWED_ATTR")?a({},e.ALLOWED_ATTR,m):ze,Se=S(e,"ALLOWED_NAMESPACES")?a({},e.ALLOWED_NAMESPACES,we):It,be=S(e,"ADD_URI_SAFE_ATTR")?a(O(Xe),e.ADD_URI_SAFE_ATTR,m):Xe,Ye=S(e,"ADD_DATA_URI_TAGS")?a(O(je),e.ADD_DATA_URI_TAGS,m):je,D=S(e,"FORBID_CONTENTS")?a({},e.FORBID_CONTENTS,m):_e,j=S(e,"FORBID_TAGS")?a({},e.FORBID_TAGS,m):O({}),ie=S(e,"FORBID_ATTR")?a({},e.FORBID_ATTR,m):O({}),z=S(e,"USE_PROFILES")?e.USE_PROFILES:!1,Fe=e.ALLOW_ARIA_ATTR!==!1,Te=e.ALLOW_DATA_ATTR!==!1,He=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,L=e.SAFE_FOR_TEMPLATES||!1,X=e.SAFE_FOR_XML!==!1,x=e.WHOLE_DOCUMENT||!1,P=e.RETURN_DOM||!1,le=e.RETURN_DOM_FRAGMENT||!1,ce=e.RETURN_TRUSTED_TYPE||!1,Ee=e.FORCE_BODY||!1,Ge=e.SANITIZE_DOM!==!1,We=e.SANITIZE_NAMED_PROPS||!1,Ae=e.KEEP_CONTENT!==!1,q=e.IN_PLACE||!1,Ue=e.ALLOWED_URI_REGEXP||ft,F=e.NAMESPACE||w,me=e.MATHML_TEXT_INTEGRATION_POINTS||me,pe=e.HTML_INTEGRATION_POINTS||pe,u=e.CUSTOM_ELEMENT_HANDLING||K(null),e.CUSTOM_ELEMENT_HANDLING&&qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&qe(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),L&&(Te=!1),le&&(P=!0),z&&(f=a({},ut),d=K(null),z.html===!0&&(a(f,st),a(d,mt)),z.svg===!0&&(a(f,ve),a(d,xe),a(d,de)),z.svgFilters===!0&&(a(f,ke),a(d,xe),a(d,de)),z.mathMl===!0&&(a(f,Le),a(d,pt),a(d,de))),k.tagCheck=null,k.attributeCheck=null,e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?k.tagCheck=e.ADD_TAGS:(f===Pe&&(f=O(f)),a(f,e.ADD_TAGS,m))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?k.attributeCheck=e.ADD_ATTR:(d===ze&&(d=O(d)),a(d,e.ADD_ATTR,m))),e.ADD_URI_SAFE_ATTR&&a(be,e.ADD_URI_SAFE_ATTR,m),e.FORBID_CONTENTS&&(D===_e&&(D=O(D)),a(D,e.FORBID_CONTENTS,m)),e.ADD_FORBID_CONTENTS&&(D===_e&&(D=O(D)),a(D,e.ADD_FORBID_CONTENTS,m)),Ae&&(f["#text"]=!0),x&&a(f,["html","head","body"]),f.table&&(a(f,["tbody"]),delete j.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.');h=e.TRUSTED_TYPES_POLICY,Y=h.createHTML("")}else h===void 0&&(h=ln(te,R)),h!==null&&typeof Y=="string"&&(Y=h.createHTML(""));_&&_(e),H=e}},$e=a({},[...ve,...ke,...Kt]),Ke=a({},[...Le,...Vt]),zt=function(e){let n=ne(e);(!n||!n.tagName)&&(n={namespaceURI:F,tagName:"template"});let t=fe(e.tagName),i=fe(n.tagName);return Se[e.namespaceURI]?e.namespaceURI===ue?n.namespaceURI===w?t==="svg":n.namespaceURI===se?t==="svg"&&(i==="annotation-xml"||me[i]):!!$e[t]:e.namespaceURI===se?n.namespaceURI===w?t==="math":n.namespaceURI===ue?t==="math"&&pe[i]:!!Ke[t]:e.namespaceURI===w?n.namespaceURI===ue&&!pe[i]||n.namespaceURI===se&&!me[i]?!1:!Ke[t]&&(Mt[t]||!$e[t]):!!($==="application/xhtml+xml"&&Se[e.namespaceURI]):!1},I=function(e){Z(r.removed,{element:e});try{ne(e).removeChild(e)}catch{Nt(e)}},M=function(e,n){try{Z(r.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Z(r.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e==="is")if(P||le)try{I(n)}catch{}else try{n.setAttribute(e,"")}catch{}},Ve=function(e){let n=null,t=null;if(Ee)e="<remove></remove>"+e;else{let y=Oe(e,/^[\r\n\t ]+/);t=y&&y[0]}$==="application/xhtml+xml"&&F===w&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=h?h.createHTML(e):e;if(F===w)try{n=new _t().parseFromString(i,$)}catch{}if(!n||!n.documentElement){n=he.createDocument(F,"template",null);try{n.documentElement.innerHTML=Ne?Y:i}catch{}}let l=n.body||n.documentElement;return e&&t&&l.insertBefore(c.createTextNode(t),l.childNodes[0]||null),F===w?wt.call(n,x?"html":"body")[0]:x?n.documentElement:l},Ze=function(e){return Ct.call(e.ownerDocument||e,e,G.SHOW_ELEMENT|G.SHOW_COMMENT|G.SHOW_TEXT|G.SHOW_PROCESSING_INSTRUCTION|G.SHOW_CDATA_SECTION,null)},Ce=function(e){return e instanceof At&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Et)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},De=function(e){return typeof ge=="function"&&e instanceof ge};function v(e,n,t){V(e,i=>{i.call(r,n,t,H)})}let Je=function(e){let n=null;if(v(T.beforeSanitizeElements,e,null),Ce(e))return I(e),!0;let t=m(e.nodeName);if(v(T.uponSanitizeElement,e,{tagName:t,allowedTags:f}),X&&e.hasChildNodes()&&!De(e.firstElementChild)&&E(/<[/\w!]/g,e.innerHTML)&&E(/<[/\w!]/g,e.textContent)||X&&e.namespaceURI===w&&t==="style"&&De(e.firstElementChild)||e.nodeType===ee.progressingInstruction||X&&e.nodeType===ee.comment&&E(/<[/\w]/g,e.data))return I(e),!0;if(j[t]||!(k.tagCheck instanceof Function&&k.tagCheck(t))&&!f[t]){if(!j[t]&&et(t)&&(u.tagNameCheck instanceof RegExp&&E(u.tagNameCheck,t)||u.tagNameCheck instanceof Function&&u.tagNameCheck(t)))return!1;if(Ae&&!D[t]){let i=ne(e)||e.parentNode,l=Rt(e)||e.childNodes;if(l&&i){let y=l.length;for(let U=y-1;U>=0;--U){let g=bt(l[U],!0);g.__removalCount=(e.__removalCount||0)+1,i.insertBefore(g,St(e))}}}return I(e),!0}return e instanceof Ie&&!zt(e)||(t==="noscript"||t==="noembed"||t==="noframes")&&E(/<\/no(script|embed|frames)/i,e.innerHTML)?(I(e),!0):(L&&e.nodeType===ee.text&&(n=e.textContent,V([re,oe,ae],i=>{n=B(n,i," ")}
1),e.textContent!==n&&(Z(r.removed,{element:e.cloneNode()}),e.textContent=n)),v(T.afterSanitizeElements,e,null),!1)},Qe=function(e,n,t){if(ie[n]||Ge&&(n==="id"||n==="name")&&(t in c||t in Pt))return!1;if(!(Te&&!ie[n]&&E(vt,n))&&!(Fe&&E(kt,n))&&!(k.attributeCheck instanceof Function&&k.attributeCheck(n,e))){if(!d[n]||ie[n]){if(!(et(e)&&(u.tagNameCheck instanceof RegExp&&E(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&E(u.attributeNameCheck,n)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(n,e))||n==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&E(u.tagNameCheck,t)||u.tagNameCheck instanceof Function&&u.tagNameCheck(t))))return!1}else if(!be[n]&&!E(Ue,B(t,Me,""))&&!((n==="src"||n==="xlink:href"||n==="href")&&e!=="script"&&jt(t,"data:")===0&&Ye[e])&&!(He&&!E(Lt,B(t,Me,"")))&&t)return!1}return!0},et=function(e){return e!=="annotation-xml"&&Oe(e,xt)},tt=function(e){v(T.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||Ce(e))return;let t={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:l,namespaceURI:y,value:U}=n[i],g=m(l),b=U,p=l==="value"?b:Xt(b);if(t.attrName=g,t.attrValue=p,t.keepAttr=!0,t.forceKeepAttr=void 0,v(T.uponSanitizeAttribute,e,t),p=t.attrValue,We&&(g==="id"||g==="name")&&(M(l,e),p="user-content-"+p),X&&E(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)){M(l,e);continue}if(g==="attributename"&&Oe(p,"href")){M(l,e);continue}if(t.forceKeepAttr)continue;if(!t.keepAttr){M(l,e);continue}if(!Be&&E(/\/>/i,p)){M(l,e);continue}L&&V([re,oe,ae],Ft=>{p=B(p,Ft," ")});let rt=m(e.nodeName);if(!Qe(rt,g,p)){M(l,e);continue}if(h&&typeof te=="object"&&typeof te.getAttributeType=="function"&&!y)switch(te.getAttributeType(rt,g)){case"TrustedHTML":p=h.createHTML(p);break;case"TrustedScriptURL":p=h.createScriptURL(p);break}if(p!==b)try{y?e.setAttributeNS(y,l,p):e.setAttribute(l,p),Ce(e)?I(e):ct(r.removed)}catch{M(l,e)}}v(T.afterSanitizeAttributes,e,null)},nt=function(e){let n=null,t=Ze(e);for(v(T.beforeSanitizeShadowDOM,e,null);n=t.nextNode();)v(T.uponSanitizeShadowNode,n,null),Je(n),tt(n),n.content instanceof C&&nt(n.content);v(T.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,i=null,l=null,y=null;if(Ne=!e,Ne&&(e="<!-->"),typeof e!="string"&&!De(e))if(typeof e.toString=="function"){if(e=e.toString(),typeof e!="string")throw J("dirty is not a string, aborting")}else throw J("toString is not a function");if(!r.isSupported)return e;if(ye||Re(n),r.removed=[],typeof e=="string"&&(q=!1),q){if(e.nodeName){let b=m(e.nodeName);if(!f[b]||j[b])throw J("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof ge)t=Ve("<!---->"),i=t.ownerDocument.importNode(e,!0),i.nodeType===ee.element&&i.nodeName==="BODY"||i.nodeName==="HTML"?t=i:t.appendChild(i);else{if(!P&&!L&&!x&&e.indexOf("<")===-1)return h&&ce?h.createHTML(e):e;if(t=Ve(e),!t)return P?null:ce?Y:""}t&&Ee&&I(t.firstChild);let U=Ze(q?e:t);for(;l=U.nextNode();)Je(l),tt(l),l.content instanceof C&&nt(l.content);if(q)return e;if(P){if(L){t.normalize();let b=t.innerHTML;V([re,oe,ae],p=>{b=B(b,p," ")}),t.innerHTML=b}if(le)for(y=Dt.call(t.ownerDocument);t.firstChild;)y.appendChild(t.firstChild);else y=t;return(d.shadowroot||d.shadowrootmode)&&(y=Ot.call(s,y,!0)),y}let g=x?t.outerHTML:t.innerHTML;return x&&f["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&E(dt,t.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
2`+g),L&&V([re,oe,ae],b=>{g=B(g,b," ")}),h&&ce?h.createHTML(g):g},r.setConfig=function(){Re(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),ye=!0},r.clearConfig=function(){H=null,ye=!1},r.isValidAttribute=function(e,n,t){return H||Re({}),Qe(m(e),m(n),t)},r.addHook=function(e,n){typeof n=="function"&&Z(T[e],n)},r.removeHook=function(e,n){if(n!==void 0){let t=Wt(T[e],n);return t===-1?void 0:Yt(T[e],t,1)[0]}return ct(T[e])},r.removeHooks=function(e){T[e]=[]},r.removeAllHooks=function(){T=ht()},r}var cn=Tt();export{cn as t};

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.