1var d={},v;function f(){return v||(v=1,(function(n){var h={};function s(e){if(h[e])return h[e].exports;var t=h[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}s.m=n,s.c=h,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},s.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t||4&t&&typeof e=="object"&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&typeof e!="string")for(var r in e)s.d(i,r,(function(u){return e[u]}).bind(null,r));return i},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=0)})([function(n,h,s){var e;s.r(h),s.d(h,"SvgIcon",(function(){return t})),(function(i){i.Src="src",i.Width="width",i.Height="height",i.Classes="classes",i.ViewBox="viewbox"})(e||(e={}));/** 2 * A Web Component to embed SVG symbols and easily manipulate them 3 * 4 * @module SvgIconSprite Web Component 5 * @author Jan Suwart 6 * @license MIT 7 */class t extends HTMLElement{constructor(){super(),this.width="100%",this.height="100%",this.cssStyle="fill: currentColor;",this.metaPathSel="meta[data-svg-sprite-path]",this.errPrefix="SVG-Icon Webcomponent:"}static get observedAttributes(){return[e.Src,e.Width,e.Height,e.Classes,e.ViewBox]}connectedCallback(){this.render()}disconnectedCallback(){}adoptedCallback(){}attributeChangedCallback(r,u,a){var o,l;switch(r){case e.Src:const c=a.includes("#");if(c||this.defaultPath||(this.metaEl=document.head.querySelector(this.metaPathSel),!((l=(o=this.metaEl)===null||o===void 0?void 0:o.dataset)===null||l===void 0)&&l.svgSpritePath&&(this.defaultPath=this.metaEl.dataset.svgSpritePath)),!a)return void console.warn(this.errPrefix+" src attribute missing");c?this.src=a:!c&&this.defaultPath?this.src=`${this.defaultPath}#${a}`:console.warn(`${this.errPrefix} "${a}" missing the path to the sprite and no default path is set`);break;case e.Width:this.width=a;break;case e.Height:this.height=a;break;case e.Classes:this.classes=a;break;case e.ViewBox:this.viewBox=a}this.svgEl&&this.updateByProperty(r)}updateByProperty(r){switch(r){case e.Src:this.svgEl.querySelector("use").setAttribute("xlink:href",this.src);break;case e.Width:this.svgEl.setAttribute("width",this.width||"100%");break;case e.Height:this.svgEl.setAttribute("height",this.height||"100%");break;case e.Classes:this.svgEl.removeAttribute("class"),this.updateClassNames();break;case e.ViewBox:this.viewBox?this.svgEl.setAttribute("viewBox",this.viewBox):this.svgEl.removeAttribute("viewBox")}}render(){this.innerHTML=` 8 <svg width="${this.width}" height="${this.height}" style="${this.cssStyle}"> 9 <use xlink:href="${this.src}" style="${this.cssStyle}"> 10 </svg> 11 `,this.svgEl=this.querySelector("svg"),this.viewBox?this.svgEl.setAttribute("viewBox",this.viewBox):this.classes&&this.updateClassNames()}updateClassNames(){this.classes&&this.svgEl&&this.classes.split(" ").forEach(r=>{this.svgEl.classList.add(r)})}}customElements.define("svg-icon",t)}])),d}f();
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.