PageSourceSearch

https://the-mattress-company.co.za/wp-content/plugins/advanced-cou…/dist/common/sanitize.e37d93cf.js

js the-mattress-company.co.za collected 2026-09-25 10:25:15 UTC 29,723 bytes, 1 lines download raw bytes

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

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.