var n=function(n,r){return function(t){return Math.max(Math.min(t,r),n)}},r=function(n){return n%1?Number(n.toFixed(5)):n},t=/(-)?([\d]*\.?[\d])+/g,a=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,f=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function i(n){return"string"==typeof n}export{n as clamp,a as colorRegex,t as floatRegex,i as isString,r as sanitize,f as singleColorRegex};
//# sourceMappingURL=utils.js.map
