1const r=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function u(t){if(typeof t!="string")return[t,""];const d=t.match(r);return d?[parseFloat(t),d[2]]:[t,void 0]}const s=t=>u(t)?.[0],m=(t,d=!0,o=null)=>{if(!t||typeof window>"u")return;o||(o=document.body);let n=t;t.startsWith("--")&&(n=getComputedStyle(document.documentElement).getPropertyValue(t).trim());const e=document.createElement("div");e.style.width=n,e.style.position="absolute",e.style.visibility="hidden",o.appendChild(e);const i=parseFloat(getComputedStyle(e).width);return o.removeChild(e),d?Math.round(i*1e3)/1e3:i};export{m as g,s 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.