import{aW as m,aE as a}from"./index-dNe6i2rS.js";var u=m(function(o,r,n){if(o>r)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<o?o:n>r?r:n});const s=["B","K","M","G","T"],l=(t,o=!1)=>{if(t===0)return null;if(o){const e=Math.floor(Math.log10(t)/3),c=e===0?"":s[e];return[a(".0",(t/(10**3)**e).toFixed(1)),c]}const r=Math.floor(Math.log2(t)/10),n=s[r];return[a(".0",(t/(2**10)**r).toFixed(1)),n]};export{u as c,l as g};
