import{ei as e}from"./vendor-DkM0BOLc.js";var t=e();function n({data:e,width:n=40,height:r=16,color:i=`currentColor`,className:a,"aria-hidden":o}){if(e.length<2)return null;let s=Math.min(...e),c=Math.max(...e)-s||1,l=e.map((t,i)=>`${i/(e.length-1)*n},${r-(t-s)/c*(r-2)-1}`).join(` `);return(0,t.jsx)(`svg`,{width:n,height:r,className:a,viewBox:`0 0 ${n} ${r}`,"aria-hidden":o,children:(0,t.jsx)(`polyline`,{points:l,fill:`none`,stroke:i,strokeWidth:1.5,strokeLinecap:`round`,strokeLinejoin:`round`})})}function r({data:e,width:n=120,height:r=32,className:i}){let a=e.filter(e=>e!==null);if(a.length<2)return(0,t.jsx)(`svg`,{width:n,height:r,className:i});let o=Math.min(...a),s=Math.max(...a),c=s-o||1,l=a.map((e,t)=>`${2+t/(a.length-1)*(n-4)},${2+(s-e)/c*(r-4)}`),u=a.map((e,t)=>{let i=a.slice(Math.max(0,t-4),t+1),o=i.reduce((e,t)=>e+t,0)/i.length;return`${2+t/(a.length-1)*(n-4)},${2+(s-o)/c*(r-4)}`});return(0,t.jsxs)(`svg`,{width:n,height:r,className:i,children:[(0,t.jsx)(`polyline`,{points:l.join(` `),fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`text-[var(--glk-brand)] opacity-40`}),(0,t.jsx)(`polyline`,{points:u.join(` `),fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`text-[var(--glk-brand)]`})]})}export{r as n,n as t};