import{r as s}from"./app-ClXzYNj_.js";const C=(...e)=>e.filter((t,o,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===o).join(" ").trim();const A=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const b=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,r)=>r?r.toUpperCase():o.toLowerCase());const d=e=>{const t=b(e);return t.charAt(0).toUpperCase()+t.slice(1)};var i={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"};const L=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},W=s.createContext({}),S=()=>s.useContext(W),v=s.forwardRef(({color:e,size:t,strokeWidth:o,absoluteStrokeWidth:r,className:n="",children:a,iconNode:h,...l},m)=>{const{size:c=24,strokeWidth:u=2,absoluteStrokeWidth:p=!1,color:x="currentColor",className:f=""}=S()??{},w=r??p?Number(o??u)*24/Number(t??c):o??u;return s.createElement("svg",{ref:m,...i,width:t??c??i.width,height:t??c??i.height,stroke:e??x,strokeWidth:w,className:C("lucide",f,n),...!a&&!L(l)&&{"aria-hidden":"true"},...l},[...h.map(([k,g])=>s.createElement(k,g)),...Array.isArray(a)?a:[a]])});const E=(e,t)=>{const o=s.forwardRef(({className:r,...n},a)=>s.createElement(v,{ref:a,iconNode:t,className:C(`lucide-${A(d(e))}`,`lucide-${e}`,r),...n}));return o.displayName=d(e),o};export{E as c};
