"use client";
import { toHexadecimal as a } from "./index.esm466.js";
import { toDecimal as c } from "./index.esm467.js";
import { toNamed as f } from "./index.esm468.js";
function u(m, l, e) {
  let r = a(m, l, e.omitOptionalSemicolons), t;
  if ((e.useNamedReferences || e.useShortestReferences) && (t = f(
    m,
    l,
    e.omitOptionalSemicolons,
    e.attribute
  )), (e.useShortestReferences || !t) && e.useShortestReferences) {
    const i = c(m, l, e.omitOptionalSemicolons);
    i.length < r.length && (r = i);
  }
  return t && (!e.useShortestReferences || t.length < r.length) ? t : r;
}
export {
  u as formatSmart
};
//# sourceMappingURL=index.esm465.js.map
