import { rnd2 as l } from "../../utils/index.js";
import o from "../../utils/unpack.js";
import r from "../../utils/last.js";
const m = (...e) => {
  const s = o(e, "hsla");
  let t = r(e) || "lsa";
  return s[0] = l(s[0] || 0) + "deg", s[1] = l(s[1] * 100) + "%", s[2] = l(s[2] * 100) + "%", t === "hsla" || s.length > 3 && s[3] < 1 ? (s[3] = "/ " + (s.length > 3 ? s[3] : 1), t = "hsla") : s.length = 3, `${t.substr(0, 3)}(${s.join(" ")})`;
};
export {
  m as default
};
//# sourceMappingURL=hsl2css.js.map
