import { Dt as O } from "./vendor/recharts.js";
var m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j = (e, n) => (t) => {
  var u;
  if (n?.variants == null) return y(e, t?.class, t?.className);
  const { variants: s, defaultVariants: d } = n, V = Object.keys(s).map((l) => {
    const a = t?.[l], r = d?.[l];
    if (a === null) return null;
    const i = m(a) || m(r);
    return s[l][i];
  }), o = t && Object.entries(t).reduce((l, a) => {
    let [r, i] = a;
    return i === void 0 || (l[r] = i), l;
  }, {});
  return y(e, V, n == null || (u = n.compoundVariants) === null || u === void 0 ? void 0 : u.reduce((l, a) => {
    let { class: r, className: i, ...N } = a;
    return Object.entries(N).every((f) => {
      let [c, v] = f;
      return Array.isArray(v) ? v.includes({
        ...d,
        ...o
      }[c]) : {
        ...d,
        ...o
      }[c] === v;
    }) ? [
      ...l,
      r,
      i
    ] : l;
  }, []), t?.class, t?.className);
};
export {
  j as t
};

//# sourceMappingURL=dist.js.map