1import{bt as e}from"./src-DdRYxgPx8x.js";var t=`http://www.w3.org/2000/svg`;function n(e){return!e||!e.length?``:e.map(e=>{let t=``;switch(e.mtd){case`M`:t=`M${e.x},${e.y}`;break;case`L`:t=`L${e.x},${e.y}`;break;case`Q`:t=`Q${e.cx},${e.cy},${e.x},${e.y}`;break;case`C`:t=`C${e.cx},${e.cy},${e.cx1},${e.cy1},${e.x},${e.y}`;break;case`A`:t=`A${e.rx},${e.ry} ${e.ang} ${e.arc},${e.dir} ${e.x},${e.y}`;break;case`Z`:t=`Z`;break}return t}).join(` `)}var r={dlist_to_d:n,buildFacesForSvg(e){if(e.length)return e.map(e=>{let{name:t}=e;return{name:t,d:n(e.dlist)}})}};function i(e,t){let n=e.querySelectorAll(`*`),r=e.querySelector(`style`),i=[`fill`,`stroke`];if(r){if(document.head.appendChild(r),r.sheet){let t=r.sheet.cssRules;for(let n=0;n<t.length;n++){let r=t[n],a=e.querySelectorAll(r.selectorText);if(a)for(let e=0;e<a.length;e++)i.forEach(t=>{a[e].style[t]=r.style.getPropertyValue(t),a[e].setAttribute(`data-${t}-class`,r.selectorText.replace(/\./,``))})}}document.head.removeChild(r)}let a=[];for(let e=0;e<n.length;e++){let r=n[e];if(![`defs`,`style`,`title`].includes(r.nodeName))for(let e=0;e<i.length;e++){let n=i[e];if(r.getAttribute(n)&&r.getAttribute(n)!==`none`&&/(rgba?|#[0-9a-fA-F]{3,8})/.test(r.getAttribute(n))){if(a.findIndex(e=>e.type===n&&e.value===r.getAttribute(n))>=0)continue;let e=t.find(e=>e.type===n&&r.getAttribute(n)===e.value),i={type:n,value:r.getAttribute(n),color:e?e.color:r.getAttribute(n)};r.getAttribute(`data-${n}-class`)&&(i.class=r.getAttribute(`data-${n}-class`)),a.push(i)}let o=r.style;if(o&&o.getPropertyValue(n)&&o.getPropertyValue(n)!==`none`&&/(rgba?|#[0-9a-fA-F]{3,8})/.test(o.getPropertyValue(n))){if(a.findIndex(e=>e.type===n&&e.value===o.getPropertyValue(n))>=0)continue;let e=t.find(e=>e.type===n&&o.getPropertyValue(n)===e.value),i={type:n,value:o.getPropertyValue(n),color:e?e.color:o.getPropertyValue(n)};r.getAttribute(`data-${n}-class`)&&(i.class=r.getAttribute(`data-${n}-class`)),a.push(i)}}}return a.length===0&&a.push({color:`#000000`,value:`#000000`,class:`globalFill`,type:`fill`}),a}function a(e){let t=e.replace(/="<[^"]+>"/g,`=""`);return t=t.replace(/data-name="[^"]*(\s)[^"]*"/g,`data-name=""`),t}function o(e){return a(e).replace(/<svg\b(?![^>]*\sxmlns=)/i,`<svg xmlns="${t}"`)}function s(e){let n=o(e),r=new DOMParser().parseFromString(n,`image/svg+xml`).children[0];r.getAttribute(`xmlns`)||r.setAttribute(`xmlns`,t),r.style||(r.style={}),r.style.width=`100%`,r.style.height=`100%`,r.setAttribute(`preserveAspectRatio`,`none`),r.style.display=`block`;let i=r.getAttribute(`viewBox`);if(i){let e=i.split(` `).map(e=>Number(e));if(e.length===4)try{let t=e[2]-e[0],n=e[3]-e[1];r.getAttribute(`width`)||r.setAttribute(`width`,`${t}`),r.getAttribute(`height`)||r.setAttribute(`height`,`${n}`)}catch(e){console.error(e)}}if(!r.getAttribute(`viewBox`)){let e=r.getAttribute(`width`),t=r.getAttribute(`height`);r.setAttribute(`viewBox`,`0 0 ${e} ${t}`)}return r}async function c(t){return s(await e(t))}export{i,n,c as r,r 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.