vendor: 4,264 bytes, lines 1-2
1import{Qn as e}from"./78QM5Du0.js";import"./YJB2vD9D.js";function t(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function n(e){if(Array.isArray(e))return e}function r(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function i(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){return n(e)||r(e,t)||o(e,t)||i()}function o(e,n){if(e){if(typeof e==`string`)return t(e,n);var r={}.toString.call(e).slice(8,-1);return r===`Object`&&e.constructor&&(r=e.constructor.name),r===`Map`||r===`Set`?Array.from(e):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}var s=Object.entries,c=Object.setPrototypeOf,l=Object.isFrozen,u=Object.getPrototypeOf,d=Object.getOwnPropertyDescriptor,f=Object.freeze,p=Object.seal,m=Object.create,h=typeof Reflect<`u`&&Reflect,ee=h.apply,te=h.construct;f||=function(e){return e},p||=function(e){return e},ee||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},te||=function(e){return new e(...[...arguments].slice(1))};var g=w(Array.prototype.forEach),ne=w(Array.prototype.lastIndexOf),re=w(Array.prototype.pop),ie=w(Array.prototype.push),ae=w(Array.prototype.splice),_=Array.isArray,oe=w(String.prototype.toLowerCase),se=w(String.prototype.toString),ce=w(String.prototype.match),le=w(String.prototype.replace),ue=w(String.prototype.indexOf),de=w(String.prototype.trim),fe=w(Number.prototype.toString),pe=w(Boolean.prototype.toString),v=typeof BigInt>`u`?null:w(BigInt.prototype.toString),y=typeof Symbol>`u`?null:w(Symbol.prototype.toString),b=w(Object.prototype.hasOwnProperty),x=w(Object.prototype.toString),S=w(RegExp.prototype.test),C=T(TypeError);function w(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return ee(e,t,n)}}function T(e){return function(){return te(e,[...arguments])}}function E(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oe;if(c&&c(e,null),!_(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(l(t)||(t[r]=e),i=e)}e[i]=!0}return e}function D(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function O(e){let t=m(null);for(let r of s(e)){var n=a(r,2);let i=n[0],o=n[1];b(e,i)&&(t[i]=_(o)?D(o):o&&typeof o==`object`&&o.constructor===Object?O(o):o)}return t}function me(e){switch(typeof e){case`string`:return e;case`number`:return fe(e);case`boolean`:return pe(e);case`bigint`:return v?v(e):`0`;case`symbol`:return y?y(e):`Symbol()`;case`undefined`:return x(e);case`function`:case`object`:{if(e===null)return x(e);let t=e,n=k(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:x(e)}return x(e)}default:return x(e)}}function k(e,t){for(;e!==null;){let n=d(e,t);if(n){if(n.get)return w(n.get);if(typeof n.value==`function`)return w(n.value)}e=u(e)}function n(){return null}return n}function he(e){try{return S(e,``),!0}catch{return!1}}var ge=f(`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(`.`)),_e=f(`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.pol
2ygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),ve=f([`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`]),ye=f([`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`]),be=f(`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(`.`)),xe=f([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Se=f([`#text`]),Ce=f(`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.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`.split(`.`)),we=f(`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.dominant-baseline.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.pointer-events.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-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.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(`.`)),Te=f(`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(`.`)),Ee=f([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),De=p(/{{[\w\W]*|^[\w\W]*}}/g),Oe=p(/<%[\w\W]*|^[\w\W]*%>/g),ke=p(/\${[\w\W]*/g),Ae=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),je=p(/^aria-[\-\w]+$/),Me=p(/^(?:(?:(?
2:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ne=p(/^(?:\w+script|data):/i),Pe=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fe=p(/^html$/i),Ie=p(/^[a-z][.\w]*(-[.\w]+)+$/i),Le=p(/<[/\w!]/g),Re=p(/<[/\w]/g),ze=p(/<\/no(script|embed|frames)/i),Be=p(/\/>/i),A={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},j=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],Ve=f(E({},j)),He=function(){let e={};return g(j,t=>{e[t]=p(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),f(e)}(),Ue=function(){return typeof window>`u`?null:window},We=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Ge=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},M=function(e,t,n,r){return b(e,t)&&_(e[t])?E(r.base?O(r.base):{},e[t],r.transform):n},Ke=function(e,t,n){let r=b(e,t)?e[t]:void 0;return r&&typeof r==`object`?O(r):n()};function qe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ue(),t=e=>qe(e);
vendor: 16,630 bytes, lines 2-3
2if(t.version=`3.4.15`,t.removed=[],!e||!e.document||e.document.nodeType!==A.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,c=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,h=c.prototype,ee=k(h,`cloneNode`),te=k(h,`remove`),fe=k(h,`removeAttributeNode`),pe=k(h,`nextSibling`),v=k(h,`childNodes`),y=k(h,`parentNode`),x=k(h,`shadowRoot`),w=k(h,`attributes`),T=o&&o.prototype?k(o.prototype,`nodeType`):null,D=o&&o.prototype?k(o.prototype,`nodeName`):null,j=o&&o.prototype?k(o.prototype,`ownerDocument`):null,N=function(e){return T?T(e):e.nodeType},Je=function(e){return D?D(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let P,F=``,Ye,Xe=!1,Ze=0,Qe=function(){if(Ze>0)throw C(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},I=function(e){Qe(),Ze++;try{return P.createHTML(e)}finally{Ze--}},$e=function(e){Qe(),Ze++;try{return P.createScriptURL(e)}finally{Ze--}},et=function(){return Xe||=(Ye=We(d,i),!0),Ye},tt=n,nt=tt.implementation,rt=tt.createNodeIterator,it=tt.createDocumentFragment,at=tt.getElementsByTagName,ot=r.importNode,L=Ge();t.isSupported=typeof s==`function`&&typeof y==`function`&&nt&&nt.createHTMLDocument!==void 0;let st=De,ct=Oe,lt=ke,ut=Ae,dt=je,ft=Ne,pt=Pe,mt=Ie,ht=Me,R=null,gt=E({},[...ge,..._e,...ve,...be,...Se]),z=null,_t=E({},[...Ce,...we,...Te,...Ee]),B=Object.seal(m(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}})),vt=null,yt=null,V=Object.seal(m(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),bt=!0,xt=!0,St=!1,Ct=!0,H=!1,U=!0,W=!1,wt=!1,Tt=null,Et=null,Dt=!1,G=!1,Ot=!1,kt=!1,At=!0,jt=!1,Mt=`user-content-`,Nt=!0,Pt=!1,K={},q=null,Ft=E({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),It=null,Lt=E({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Rt=null,zt=E({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Bt=`http://www.w3.org/1998/Math/MathML`,Vt=`http://www.w3.org/2000/svg`,J=`http://www.w3.org/1999/xhtml`,Y=J,Ht=!1,Ut=null,Wt=E({},[Bt,Vt,J],se),Gt=f([`mi`,`mo`,`mn`,`ms`,`mtext`]),Kt=E({},Gt),qt=f([`annotation-xml`]),Jt=E({},qt),Yt=E({},[`title`,`style`,`font`,`a`,`script`]),Xt=null,Zt=[`application/xhtml+xml`,`text/html`],X=null,Qt=null,$t=n.createElement(`form`),en=function(e){return e instanceof RegExp||e instanceof Function},tn=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Qt&&Qt===e)return;(!e||typeof e!=`object`)&&(e={}),e=O(e),Xt=Zt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,X=Xt===`application/xhtml+xml`?se:oe,R=M(e,`ALLOWED_TAGS`,gt,{transform:X}),z=M(e,`ALLOWED_ATTR`,_t,{transform:X}),Ut=M(e,`ALLOWED_NAMESPACES`,Wt,{transform:se}),Rt=M(e,`ADD_URI_SAFE_ATTR`,zt,{transform:X,base:zt}),It=M(e,`ADD_DATA_URI_TAGS`,Lt,{transform:X,base:Lt}),q=M(e,`FORBID_CONTENTS`,Ft,{transform:X}),vt=M(e,`FORBID_TAGS`,O({}),{transform:X}),yt=M(e,`FORBID_ATTR`,O({}),{transform:X}),K=b(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?O(e.USE_PROFILES):e.USE_PROFILES:!1,bt=e.ALLOW_ARIA_ATTR!==!1,xt=e.ALLOW_DATA_ATTR!==!1,St=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ct=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,H=e.SAFE_FOR_TEMPLATES||!1,U=e.SAFE_FOR_XML!==!1,W=e.WHOLE_DOCUMENT||!1,G=e.RETURN_DOM||!1,Ot=e.RETURN_DOM_FRAGMENT||!1,kt=e.RETURN_TRUSTED_TYPE||!1,Dt=e.FORCE_BODY||!1,At=e.SANITIZE_DOM!==!1,jt=e.SANITIZE_NAMED_PROPS||!1,Nt=e.KEEP_CONTENT!==!1,Pt=e.IN_PLACE||!1,ht=he(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Me,Y=typeof e.NAMESPACE==`string`?e.NAMESPACE:J,Kt=Ke(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>E({},Gt)),Jt=Ke(e,`HTML_INTEGRATION_POINTS`,()=>E({},qt));let t=Ke(e,`CUSTOM_ELEMENT_HANDLING`,()=>m(null));if(B=m(null),b(t,`tagNameCheck`)&&en(t.tagNameCheck)&&(B.tagNameCheck=t.tagNameCheck),b(t,`attributeNameCheck`)&&en(t.attributeNameCheck)&&(B.attributeNameCheck=t.attributeNameCheck),b(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(B.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),p(B),H&&(xt=!1),Ot&&(G=!0),K&&(R=E({},Se),z=m(null),K.html===!0&&(E(R,ge),E(z,Ce)),K.svg===!0&&(E(R,_e),E(z,we),E(z,Ee)),K.svgFilters===!0&&(E(R,ve),E(z,we),E(z,Ee)),K.mathMl===!0&&(E(R,be),E(z,Te),E(z,Ee))),V.tagCheck=null,V.attributeCheck=null,b(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?V.tagCheck=e.ADD_TAGS:_(e.ADD_TAGS)&&(R===gt&&(R=O(R)),E(R,e.ADD_TAGS,X))),b(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?V.attributeCheck=e.ADD_ATTR:_(e.ADD_ATTR)&&(z===_t&&(z=O(z)),E(z,e.ADD_ATTR,X))),b(e,`ADD_FORBID_CONTENTS`)&&_(e.ADD_FORBID_CONTENTS)&&(q===Ft&&(q=O(q)),E(q,e.ADD_FORBID_CONTENTS,X)),Nt&&(R[`#text`]=!0),W&&E(R,[`html`,`head`,`body`]),R.table&&(E(R,[`tbody`]),delete vt.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw C(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw C(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=P;P=e.TRUSTED_TYPES_POLICY;try{F=I(``)}catch(e){throw P=t,e}}else e.TRUSTED_TYPES_POLICY===null?(P=void 0,F=``):(P===void 0&&(P=et()),P&&typeof F==`string`&&(F=I(``)));f&&f(e),Qt=e},nn=E({},[..._e,...ve,...ye]),rn=E({},[...be,...xe]),an=function(e,t,n){return t.namespaceURI===J?e===`svg`:t.namespaceURI===Bt?e===`svg`&&(n===`annotation-xml`||Kt[n]):!!nn[e]},on=function(e,t,n){return t.namespaceURI===J?e===`math`:t.namespaceURI===Vt?e===`math`&&Jt[n]:!!rn[e]},sn=function(e,t,n){return t.namespaceURI===Vt&&!Jt[n]||t.namespaceURI===Bt&&!Kt[n]?!1:!rn[e]&&(Yt[e]||!nn[e])},cn=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Y,tagName:`template`});let n=oe(e.tagName),r=oe(t.tagName);return Ut[e.namespaceURI]?e.namespaceURI===Vt?an(n,t,r):e.namespaceURI===Bt?on(n,t,r):e.namespaceURI===J?sn(n,t,r):!!(Xt===`application/xhtml+xml`&&Ut[e.namespaceURI]):!1},Z=function(e){ie(t.removed,{element:e});try{y(e).removeChild(e)}catch{if(te(e),!y(e))throw C(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},ln=function(e,t,n){try{fe(e,t)}catch{try{e.removeAttribute(n)}catch{}}},un=function(e){fn(e);let t=v(e);if(t){let e=[];g(t,t=>{ie(e,t)}),g(e,e=>{try{te(e)}catch{}})}let n=w(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&ln(e,r,i)}},Q=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}ie(t.removed,{attribute:r||null,from:n});try{r?fe(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(G||Ot)try{Z(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},dn=function(e){let t=w(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||z[X(i)]||ln(e,r,i)}},fn=function(e){let t=[e];for(;t.length>0;){let e=t.pop();N(e)===A.element&&dn(e);let n=v(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},pn=function(e,t){return U?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},mn=function(e){if(!U)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=N(e);if(n===A.processingInstruction||n===A.comment&&S(Re,e.data)){try{te(e)}catch{}continue}if(n===A.element){let t=e,n=X(Je(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&pn(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=v(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},hn=function(e){let t=null,r=null;if(Dt)e=`<remove></remove>`+e;else{let t=ce(e,/^[\r\n\t ]+/);r=t&&t[0]}Xt===`application/xhtml+xml`&&Y===J&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=P?I(e):e;if(Y===J)try{t=new u().parseFromString(i,Xt)}catch{}if(!t||!t.documentElement){t=nt.createDocument(Y,`template`,null);try{t.documentElement.innerHTML=Ht?F:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Y===J?at.call(t,W?`html`:`body`)[0]:W?t.documentElement:a},gn=function(e){let t=j?j(e):e.ownerDocument;return rt.call(t||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},_n=function(e){return e=le(e,st,` `),e=le(e,ct,` `),e=le(e,lt,` `),e},vn=function(e){e.normalize();let t=j?j(e):e.ownerDocument,n=rt.call(t||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=_n(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&g(i,e=>{bn(e.content)&&vn(e.content)})},yn=function(e){let t=D?D(e):null;return typeof t!=`string`||X(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==w(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==T(e)||e.childNodes!==v(e)},bn=function(e){if(!T||typeof e!=`object`||!e)return!1;try{return T(e)===A.documentFragment}catch{return!1}},xn=function(e){if(!T||typeof e!=`object`||!e)return!1;try{return typeof T(e)==`number`}catch{return!1}};function $(e,n,r){e.length!==0&&g(e,e=>{e.call(t,n,r,Qt)})}let Sn=function(e,t){return!!(U&&e.hasChildNodes()&&!xn(e.firstElementChild)&&S(Le,e.textContent)&&S(Le,e.innerHTML)||U&&e.namespaceURI===J&&Ve[t]&&(xn(e.firstElementChild)||typeof e.textContent==`string`&&S(He[t],e.textContent))||e.nodeType===A.processingInstruction||U&&e.nodeType===A.comment&&S(Re,e.data))},Cn=function(e,t){return e instanceof RegExp?S(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},wn=function(e,t,n){if(!vt[t]&&An(t)&&Cn(B.tagNameCheck,t))return!1;if(Nt&&!q[t]){let t=y(e),r=v(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?ee(r[a],!0):r[a];t.insertBefore(i,pe(e))}}}return Z(e),!0},Tn=function(e,t,n,r){return e.length===0?t:t===n||t===r?O(t):t},En=function(e,t){return e===t||y(e)!==null?!1:(Pt&&fn(e),!0)},Dn=function(e,n){if($(L.beforeSanitizeElements,e,null),En(e,n))return!0;if(yn(e))return Z(e),!0;let r=X(Je(e));if(R=Tn(L.uponSanitizeElement,R,gt,Tt),$(L.uponSanitizeElement,e,{tagName:r,allowedTags:R}),En(e,n))return!0;if(Sn(e,r))return Z(e),!0;if(vt[r]||!(V.tagCheck instanceof Function&&V.tagCheck(r))&&!R[r]){let t=wn(e,r,n);return t===!1&&$(L.afterSanitizeElements,e,null),t}if(N(e)===A.element&&!cn(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&S(ze,e.innerHTML))return Z(e),!0;if(H&&e.nodeType===A.text){let n=_n(e.textContent);e.textContent!==n&&(ie(t.removed,{element:e.cloneNode()}),e.textContent=n)}return $(L.afterSanitizeElements,e,null),!1},On=function(e,t,r){if(yt[t]||pn(t,e)||At&&(t===`id`||t===`name`)&&(r in n||r in $t))return!1;let i=z[t]||V.attributeCheck instanceof Function&&V.attributeCheck(t,e);return xt&&S(ut,t)||bt&&S(dt,t)?!0:i?Rt[t]||S(ht,le(r,pt,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&ue(r,`data:`)===0&&It[e]||St&&!S(ft,le(r,pt,``))?!0:!r:An(e)&&Cn(B.tagNameCheck,e)&&Cn(B.attributeNameCheck,t,e)||t===`is`&&B.allowCustomizedBuiltInElements&&Cn(B.tagNameCheck,r)},kn=E({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),An=function(e){return!kn[oe(e)]&&S(mt,e)},jn=function(e,t,n,r){if(P&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return I(r);case`TrustedScriptURL`:return $e(r)}return r},Mn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!yn(e)||(Z(e),!1)}catch{return Q(t,e),!1}},Nn=function(e){$(L.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||yn(e))return;z=Tn(L.uponSanitizeAttribute,z,_t,Et);let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0},i=n.length,a=X(e.nodeName);for(;i--;){let o=n[i],s=o.name,c=o.namespaceURI,l=o.value,u=X(s),d=l,f=s===`value`?d:de(d),p=!1;if(r.attrName=u,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,$(L.uponSanitizeAttribute,e,r),f=r.attrValue,jt&&(u===`id`||u===`name`)&&ue(f,Mt)!==0&&(Q(s,e,o),f=Mt+f,p=!0),U&&S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){Q(s,e,o);continue}if(u===`attributename`&&ce(f,`href`)){Q(s,e,o);continue}if(!r.forceKeepAttr){if(!r.keepAttr){Q(s,e,o);continue}if(!Ct&&S(Be,f)){Q(s,e,o);continue}if(H&&(f=_n(f)),!On(a,u,f)){Q(s,e,o);continue}f=jn(a,u,c,f),f!==d&&Mn(e,s,c,f)&&p&&re(t.removed)}}$(L.afterSanitizeAttributes,e,null)},Pn=function(e){let t=null,n=gn(e);for($(L.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if($(L.uponSanitizeShadowNode,t,null),Dn(t,e),Nn(t),bn(t.content)&&Pn(t.content),N(t)===A.element){let e=x(t);bn(e)&&(Fn(e),Pn(e))}$(L.afterSanitizeShadowDOM,e,null)},Fn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Pn(e.shadow);continue}let n=e.node,r=N(n)===A.element,i=v(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=D?D(n):null;if(typeof e==`string`&&X(e)===`template`){let e=n.content;bn(e)&&t.push({node:e,shadow:null})}}if(r){let e=x(n);bn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ht=!e,Ht&&(e=`<!-->`),typeof e!=`string`&&!xn(e)&&(e=me(e),typeof e!=`string`))throw C(`dirty is not a string, aborting`);if(!t.isSupported)return e;wt?(R=Tt,z=Et):tn(n),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(R=O(R)),L.uponSanitizeAttribute.length>0&&(z=O(z)),t.removed=[];let c=Pt&&typeof e!=`string`&&xn(e);if(c){mn(e);let t=Je(e);if(typeof t==`string`){let n=X(t);if(!R[n]||vt[n])throw un(e),C(`root node is forbidden and cannot be sanitized in-place`)}if(yn(e))throw un(e),C(`root node is clobbered and cannot be sanitized in-place`);try{Fn(e)}catch(t){throw un(e),t}}else if(xn(e))i=hn(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===A.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Fn(i);else{if(!G&&!H&&!W&&e.indexOf(`<`)===-1)return P&&kt?I(e):e;if(i=hn(e),!i)return G?null:kt?F:``}i&&Dt&&Z(i.firstChild);let l=c?e:i;try{let e=gn(l);for(;o=e.nextNode();)Dn(o,l),Nn(o),bn(o.content)&&Pn(o.content)}catch(n){throw c&&(un(e),g(t.removed,e=>{e.element&&fn(e.element)})),n}if(c)return g(t.removed,e=>{e.element&&fn(e.element)}),H&&vn(e),e;if(G){if(H&&vn(i),Ot)for(s=it.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(z.shadowroot||z.shadowrootmode)&&(s=ot.call(r,s,!0)),s}let u=W?i.outerHTML:i.innerHTML;return W&&R[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&S(Fe,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`> 3`+u),H&&(u=_n(u)),P&&kt?I(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};tn(e),wt=!0,Tt=R,Et=z},t.clearConfig=function(){Qt=null,wt=!1,Tt=null,Et=null,P=Ye,F=``},t.isValidAttribute=function(e,t,n){Qt||tn({});let r=X(e),i=X(t);return On(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&b(L,e)&&ie(L[e],t)},t.removeHook=function(e,t){if(b(L,e)){if(t!==void 0){let n=ne(L[e],t);return n===-1?void 0:ae(L[e],n,1)[0]}return re(L[e])}},t.removeHooks=function(e){b(L,e)&&(L[e]=[])},t.removeAllHooks=function(){L=Ge()},t}var N=qe(),Je=e=>e?.replace(/(<([^>]+)>)/gi,``),P=(t,n,r)=>(t=e(t),t===1?`${t} ${n}`:`${t} ${r}`),F=e=>(Array.isArray(e)?e:[e]).filter(e=>!!e).join(`/`).split(`/`).filter(e=>!!e),Ye=e=>N.sanitize(e,{USE_PROFILES:{html:!0},ADD_ATTR:[`target`]}),Xe=(e,t=` `)=>e?.replaceAll(`\\n`,t);export{Xe as a,Je as i,Ye as n,F as r,P 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.