import { o as g } from "./rolldown-runtime.js";
import { i as A } from "./vendor/react.js";
var a = /* @__PURE__ */ g(A()), m = (...t) => t.filter((e, r, o) => !!e && e.trim() !== "" && o.indexOf(e) === r).join(" ").trim(), b = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), L = (t) => t.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, r, o) => o ? o.toUpperCase() : r.toLowerCase()), d = (t) => {
  const e = L(t);
  return e.charAt(0).toUpperCase() + e.slice(1);
}, c = {
  xmlns: "http://www.w3.org/2000/svg",
  width: 24,
  height: 24,
  viewBox: "0 0 24 24",
  fill: "none",
  stroke: "currentColor",
  strokeWidth: 2,
  strokeLinecap: "round",
  strokeLinejoin: "round"
}, W = (t) => {
  for (const e in t) if (e.startsWith("aria-") || e === "role" || e === "title") return !0;
  return !1;
}, S = (0, a.createContext)({}), _ = () => (0, a.useContext)(S), y = (0, a.forwardRef)(({ color: t, size: e, strokeWidth: r, absoluteStrokeWidth: o, className: i = "", children: s, iconNode: C, ...l }, h) => {
  const { size: n = 24, strokeWidth: u = 2, absoluteStrokeWidth: p = !1, color: f = "currentColor", className: v = "" } = _() ?? {}, w = o ?? p ? Number(r ?? u) * 24 / Number(e ?? n) : r ?? u;
  return (0, a.createElement)("svg", {
    ref: h,
    ...c,
    width: e ?? n ?? c.width,
    height: e ?? n ?? c.height,
    stroke: t ?? f,
    strokeWidth: w,
    className: m("lucide", v, i),
    ...!s && !W(l) && { "aria-hidden": "true" },
    ...l
  }, [...C.map(([x, k]) => (0, a.createElement)(x, k)), ...Array.isArray(s) ? s : [s]]);
}), j = (t, e) => {
  const r = (0, a.forwardRef)(({ className: o, ...i }, s) => (0, a.createElement)(y, {
    ref: s,
    iconNode: e,
    className: m(`lucide-${b(d(t))}`, `lucide-${t}`, o),
    ...i
  }));
  return r.displayName = d(t), r;
};
export {
  j as t
};

//# sourceMappingURL=createLucideIcon.js.map