@reeverdev/ui 0.2.95 → 0.2.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
- 'use strict';var $=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),$o=require('react-dom'),sonner=require('sonner'),vaul=require('vaul'),reactDayPicker=require('react-day-picker'),dateFns=require('date-fns'),cmdk=require('cmdk'),reactResizablePanels=require('react-resizable-panels'),reactColorful=require('react-colorful'),recharts=require('recharts'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),qM=require('embla-carousel-react'),react=require('@tiptap/react'),oT=require('@tiptap/starter-kit'),sT=require('@tiptap/extension-link'),iT=require('@tiptap/extension-underline'),lT=require('@tiptap/extension-text-align'),cT=require('@tiptap/extension-placeholder'),LT=require('react-image-crop');require('react-image-crop/dist/ReactCrop.css');var BT=require('react-qr-code'),nextThemes=require('next-themes'),framerMotion=require('framer-motion'),Dn=require('canvas-confetti');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var $__namespace=/*#__PURE__*/_interopNamespace($);var $o__namespace=/*#__PURE__*/_interopNamespace($o);var qM__default=/*#__PURE__*/_interopDefault(qM);var oT__default=/*#__PURE__*/_interopDefault(oT);var sT__default=/*#__PURE__*/_interopDefault(sT);var iT__default=/*#__PURE__*/_interopDefault(iT);var lT__default=/*#__PURE__*/_interopDefault(lT);var cT__default=/*#__PURE__*/_interopDefault(cT);var LT__default=/*#__PURE__*/_interopDefault(LT);var BT__default=/*#__PURE__*/_interopDefault(BT);var Dn__default=/*#__PURE__*/_interopDefault(Dn);function i(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var Gy=classVarianceAuthority.cva("relative w-full p-4",{variants:{variant:{solid:"border",bordered:"border bg-transparent",flat:""},type:{default:"",success:"",warning:"",error:""},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",type:"default",className:"!border-primary bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"bordered",type:"default",className:"!border-primary text-primary [&>svg]:text-primary"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"!border-green-600 bg-green-600 text-white dark:!border-green-500 dark:bg-green-500 [&>svg]:text-white"},{variant:"bordered",type:"success",className:"!border-green-600 text-green-600 dark:!border-green-500 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"flat",type:"success",className:"bg-green-600/10 text-green-600 dark:bg-green-500/10 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"solid",type:"warning",className:"!border-amber-600 bg-amber-600 text-white dark:!border-amber-500 dark:bg-amber-500 [&>svg]:text-white"},{variant:"bordered",type:"warning",className:"!border-amber-600 text-amber-600 dark:!border-amber-500 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"flat",type:"warning",className:"bg-amber-600/10 text-amber-600 dark:bg-amber-500/10 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"solid",type:"error",className:"!border-red-600 bg-red-600 text-white dark:!border-red-500 dark:bg-red-500 [&>svg]:text-white"},{variant:"bordered",type:"error",className:"!border-red-600 text-red-600 dark:!border-red-500 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"},{variant:"flat",type:"error",className:"bg-red-600/10 text-red-600 dark:bg-red-500/10 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"}],defaultVariants:{variant:"solid",type:"default",radius:"md"}}),$y={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},_y=$__namespace.forwardRef(({className:e,variant:t="solid",type:r="default",radius:a="md",icon:n,hideIcon:o=false,endContent:s,children:l,...c},d)=>{let u=$y[r],m=!o,f=n!==void 0?n:u?jsxRuntime.jsx(u,{className:"h-4 w-4"}):null;return jsxRuntime.jsxs("div",{ref:d,role:"alert",className:i(Gy({variant:t,type:r,radius:a}),s&&"flex items-center justify-between",e),...c,children:[jsxRuntime.jsxs("div",{className:"flex items-start gap-3",children:[m&&f&&jsxRuntime.jsx("span",{className:"mt-0.5 shrink-0",children:f}),jsxRuntime.jsx("div",{children:l})]}),s&&jsxRuntime.jsx("div",{className:"shrink-0 ml-4",children:s})]})});_y.displayName="Alert";var jy=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h5",{ref:r,className:i("mb-1 font-medium leading-none tracking-tight",e),...t}));jy.displayName="AlertTitle";var Wy=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("text-sm [&_p]:leading-relaxed",e),...t}));Wy.displayName="AlertDescription";var Yy=classVarianceAuthority.cva("absolute rounded-full flex items-center justify-center font-semibold",{variants:{variant:{solid:"",bordered:"border-2"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"",md:"",lg:""},placement:{"top-right":"-top-1 -right-1","top-left":"-top-1 -left-1","bottom-right":"-bottom-1 -right-1","bottom-left":"-bottom-1 -left-1"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white dark:bg-zinc-200 dark:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white dark:bg-green-500"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white dark:bg-amber-500"},{variant:"solid",color:"danger",className:"bg-red-600 text-white dark:bg-red-500"},{variant:"solid",color:"info",className:"bg-blue-600 text-white dark:bg-blue-500"},{variant:"bordered",color:"default",className:"bg-white border-zinc-800 text-zinc-800 dark:bg-zinc-900 dark:border-zinc-200 dark:text-zinc-200"},{variant:"bordered",color:"success",className:"bg-white border-green-600 text-green-600 dark:bg-zinc-900 dark:border-green-500 dark:text-green-500"},{variant:"bordered",color:"warning",className:"bg-white border-amber-600 text-amber-600 dark:bg-zinc-900 dark:border-amber-500 dark:text-amber-500"},{variant:"bordered",color:"danger",className:"bg-white border-red-600 text-red-600 dark:bg-zinc-900 dark:border-red-500 dark:text-red-500"},{variant:"bordered",color:"info",className:"bg-white border-blue-600 text-blue-600 dark:bg-zinc-900 dark:border-blue-500 dark:text-blue-500"},{size:"sm",className:"min-w-4 h-4 text-[10px] px-1"},{size:"md",className:"min-w-5 h-5 text-xs px-1"},{size:"lg",className:"min-w-6 h-6 text-sm px-1.5"}],defaultVariants:{variant:"solid",color:"default",size:"md",placement:"top-right"}}),Uy={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},Xy=$__namespace.forwardRef(({className:e,children:t,content:r,variant:a="solid",color:n="default",size:o="md",placement:s="top-right",isDot:l=false,...c},d)=>jsxRuntime.jsxs("div",{ref:d,className:i("relative inline-flex",e),...c,children:[t,jsxRuntime.jsx("span",{className:i(Yy({variant:a,color:n,size:l?void 0:o,placement:s}),l&&Uy[o||"md"],l&&"min-w-0 p-0"),children:!l&&r})]}));Xy.displayName="Badge";var qy=classVarianceAuthority.cva("inline-flex items-center gap-1 font-medium rounded-full",{variants:{color:{default:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white",success:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500",warning:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500",danger:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500",info:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},size:{sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-0.5 text-xs",lg:"px-3 py-1 text-sm"}},defaultVariants:{color:"default",size:"md"}}),Zy=$__namespace.forwardRef(({className:e,color:t,size:r,...a},n)=>jsxRuntime.jsx("span",{ref:n,className:i(qy({color:t,size:r}),e),...a}));Zy.displayName="TextBadge";var mr=classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-all duration-200 ease-out cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{solid:"",bordered:"border-2 border-current bg-transparent hover:opacity-70",light:"bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800",flat:"bg-zinc-100 dark:bg-zinc-800 hover:opacity-70",ghost:"border-2 bg-transparent"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-9 px-3 text-xs",md:"h-10 px-4",lg:"h-11 px-5 text-base",icon:"h-10 w-10"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white hover:bg-zinc-700 dark:bg-zinc-200 dark:text-zinc-900 dark:hover:bg-zinc-300"},{variant:"bordered",color:"default",className:"text-zinc-900 dark:text-white"},{variant:"light",color:"default",className:"text-zinc-900 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800"},{variant:"flat",color:"default",className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white"},{variant:"ghost",color:"default",className:"text-zinc-900 border-zinc-900 hover:bg-zinc-900 hover:text-white dark:text-white dark:border-white dark:hover:bg-white dark:hover:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white hover:bg-green-700 dark:bg-green-700 dark:text-white dark:hover:bg-green-600"},{variant:"bordered",color:"success",className:"text-green-600 dark:text-green-500"},{variant:"light",color:"success",className:"text-green-600 hover:bg-green-600/10 dark:text-green-500 dark:hover:bg-green-500/10"},{variant:"flat",color:"success",className:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500"},{variant:"ghost",color:"success",className:"text-green-600 border-green-600 hover:bg-green-600 hover:text-white dark:text-green-500 dark:border-green-500 dark:hover:bg-green-500 dark:hover:text-white"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white hover:bg-amber-700 dark:bg-amber-700 dark:text-white dark:hover:bg-amber-600"},{variant:"bordered",color:"warning",className:"text-amber-600 dark:text-amber-500"},{variant:"light",color:"warning",className:"text-amber-600 hover:bg-amber-600/10 dark:text-amber-500 dark:hover:bg-amber-500/10"},{variant:"flat",color:"warning",className:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500"},{variant:"ghost",color:"warning",className:"text-amber-600 border-amber-600 hover:bg-amber-600 hover:text-white dark:text-amber-500 dark:border-amber-500 dark:hover:bg-amber-500 dark:hover:text-white"},{variant:"solid",color:"danger",className:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-700 dark:text-white dark:hover:bg-red-600"},{variant:"bordered",color:"danger",className:"text-red-600 dark:text-red-500"},{variant:"light",color:"danger",className:"text-red-600 hover:bg-red-600/10 dark:text-red-500 dark:hover:bg-red-500/10"},{variant:"flat",color:"danger",className:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500"},{variant:"ghost",color:"danger",className:"text-red-600 border-red-600 hover:bg-red-600 hover:text-white dark:text-red-500 dark:border-red-500 dark:hover:bg-red-500 dark:hover:text-white"},{variant:"solid",color:"info",className:"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-700 dark:text-white dark:hover:bg-blue-600"},{variant:"bordered",color:"info",className:"text-blue-600 dark:text-blue-500"},{variant:"light",color:"info",className:"text-blue-600 hover:bg-blue-600/10 dark:text-blue-500 dark:hover:bg-blue-500/10"},{variant:"flat",color:"info",className:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},{variant:"ghost",color:"info",className:"text-blue-600 border-blue-600 hover:bg-blue-600 hover:text-white dark:text-blue-500 dark:border-blue-500 dark:hover:bg-blue-500 dark:hover:text-white"}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md"}}),No=$__namespace.forwardRef(({children:e,...t},r)=>$__namespace.isValidElement(e)?$__namespace.cloneElement(e,{...t,...e.props,ref:r,className:i(t.className,e.props.className),style:{...t.style,...e.props.style}}):null);No.displayName="Slot";var J=$__namespace.forwardRef(({className:e,variant:t,color:r,size:a,radius:n,asChild:o=false,href:s,loading:l=false,startContent:c,endContent:d,children:u,disabled:m,style:f,...p},b)=>{let x=m||l,v=t==="bordered"?{borderColor:"currentColor",...f}:f,y=l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"animate-spin"}),u]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,u,d]});return o?jsxRuntime.jsx(No,{className:i(mr({variant:t,color:r,size:a,radius:n,className:e})),ref:b,style:v,...p,children:y}):s?jsxRuntime.jsx("a",{href:s,className:i(mr({variant:t,color:r,size:a,radius:n,className:e}),x&&"pointer-events-none opacity-50"),style:v,...p,children:y}):jsxRuntime.jsx("button",{className:i(mr({variant:t,color:r,size:a,radius:n,className:e})),ref:b,disabled:x,style:v,...p,children:y})});J.displayName="Button";var Dc=classVarianceAuthority.cva("border bg-card text-card-foreground shadow-sm",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"lg"}}),Sc=$__namespace.forwardRef(({className:e,radius:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i(Dc({radius:t,className:e})),...r}));Sc.displayName="Card";var Hc=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));Hc.displayName="CardHeader";var Vc=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("p-6 pt-0",e),...t}));Vc.displayName="CardContent";var Ic=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center p-6 pt-0",e),...t}));Ic.displayName="CardFooter";var An=$__namespace.forwardRef(({className:e,checked:t,defaultChecked:r=false,onCheckedChange:a,disabled:n,required:o,name:s,value:l="on",text:c,description:d,onKeyDown:u,...m},f)=>{let[p,b]=$__namespace.useState(r),x=t!==void 0,g=x?t:p,[v,y]=$__namespace.useState(false),w=$__namespace.useId(),h=()=>{if(n)return;let E=g==="indeterminate"?true:!g;x||b(E),a?.(E);},C=E=>{E.key==="Enter"&&E.preventDefault(),u?.(E);},R=g===true,M=g==="indeterminate",T=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"checkbox",id:c?w:void 0,"aria-checked":M?"mixed":R,"aria-required":o,disabled:n,ref:f,className:i("peer h-4 w-4 shrink-0 rounded-sm border border-primary focus-visible:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 transition-colors",R&&"bg-primary text-primary-foreground",M&&"bg-background text-foreground",!c&&e),style:{borderColor:v?"var(--color-foreground)":void 0},onClick:h,onKeyDown:C,onFocus:()=>y(true),onBlur:()=>y(false),...m,children:(R||M)&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:M?jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),s&&jsxRuntime.jsx("input",{type:"checkbox","aria-hidden":true,tabIndex:-1,name:s,value:l,checked:R,required:o,disabled:n,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]});return c?jsxRuntime.jsxs("div",{className:i("flex items-start gap-2",e),children:[T,jsxRuntime.jsxs("div",{className:"flex flex-col gap-0.5",children:[jsxRuntime.jsx("label",{htmlFor:w,className:i("text-sm font-medium leading-none cursor-pointer",n&&"cursor-not-allowed opacity-50"),onClick:h,children:c}),d&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground",children:d})]})]}):T});An.displayName="Checkbox";var zc=$__namespace.createContext(null),Qa=()=>{let e=$__namespace.useContext(zc);if(!e)throw new Error("Dialog components must be used within a Dialog");return e},To=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=$__namespace.useState(r),s=t!==void 0,l=s?t:n,c=$__namespace.useId(),d=$__namespace.useId(),u=$__namespace.useId(),m=$__namespace.useCallback(f=>{s||o(f),a?.(f);},[s,a]);return jsxRuntime.jsx(zc.Provider,{value:{open:l,onOpenChange:m,contentId:c,titleId:d,descriptionId:u},children:e})};To.displayName="Dialog";var Bc=$__namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=Qa(),s=l=>{r?.(l),o(true);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(true);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});Bc.displayName="DialogTrigger";var Oc=$__namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=Qa(),s=l=>{r?.(l),o(false);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(false);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});Oc.displayName="DialogClose";var yi=({children:e,container:t})=>{let[r,a]=$__namespace.useState(false);return $__namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};yi.displayName="DialogPortal";var Ri=$__namespace.forwardRef(({className:e,...t},r)=>{let{open:a,onOpenChange:n}=Qa();return a?jsxRuntime.jsx("div",{ref:r,"data-state":a?"open":"closed",className:i("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),onClick:()=>n(false),"aria-hidden":"true",...t}):null});Ri.displayName="DialogOverlay";var Po=$__namespace.forwardRef(({className:e,children:t,onEscapeKeyDown:r,onInteractOutside:a,...n},o)=>{let{open:s,onOpenChange:l,contentId:c,titleId:d,descriptionId:u}=Qa(),[m,f]=$__namespace.useState(false);return $__namespace.useEffect(()=>{f(true);},[]),$__namespace.useEffect(()=>(s&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[s]),$__namespace.useEffect(()=>{if(!s)return;let p=b=>{b.key==="Escape"&&(r?.(),l(false));};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[s,l,r]),!m||!s?null:jsxRuntime.jsxs(yi,{children:[jsxRuntime.jsx(Ri,{}),jsxRuntime.jsxs("div",{ref:o,id:c,role:"dialog","aria-modal":"true","aria-labelledby":d,"aria-describedby":u,"data-state":s?"open":"closed",className:i("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,jsxRuntime.jsxs("button",{type:"button",onClick:()=>l(false),className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none cursor-pointer",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});Po.displayName="DialogContent";var Fc=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Fc.displayName="DialogHeader";var Kc=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Kc.displayName="DialogFooter";var Gc=$__namespace.forwardRef(({className:e,...t},r)=>{let{titleId:a}=Qa();return jsxRuntime.jsx("h2",{ref:r,id:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t})});Gc.displayName="DialogTitle";var $c=$__namespace.forwardRef(({className:e,...t},r)=>{let{descriptionId:a}=Qa();return jsxRuntime.jsx("p",{ref:r,id:a,className:i("text-sm text-muted-foreground",e),...t})});$c.displayName="DialogDescription";var iR=classVarianceAuthority.cva("flex h-10 w-full border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),ko=$__namespace.forwardRef(({className:e,type:t,radius:r,label:a,isRequired:n,description:o,errorMessage:s,isInvalid:l,onFocus:c,onBlur:d,style:u,...m},f)=>{let[p,b]=$__namespace.useState(false),x=$__namespace.useId(),g=m.id||x,v=l||!!s,y=jsxRuntime.jsx("input",{id:g,type:t,className:i(iR({radius:r}),v&&"border-danger focus:border-danger",!a&&e),ref:f,required:n,"aria-invalid":v,"aria-describedby":o||s?`${g}-description`:void 0,style:{...u,borderColor:v?void 0:p?"var(--color-foreground)":void 0},onFocus:w=>{b(true),c?.(w);},onBlur:w=>{b(false),d?.(w);},...m});return !a&&!o&&!s?y:jsxRuntime.jsxs("div",{className:i("flex flex-col gap-1.5",e),children:[a&&jsxRuntime.jsxs("label",{htmlFor:g,className:"text-sm font-medium leading-none",children:[a,n&&jsxRuntime.jsx("span",{className:"text-danger ml-1",children:"*"})]}),y,(o||s)&&jsxRuntime.jsx("p",{id:`${g}-description`,className:i("text-xs",v?"text-danger":"text-muted-foreground"),children:s||o})]})});ko.displayName="Input";var cR=classVarianceAuthority.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),wa=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("label",{ref:r,className:i(cR(),e),...t}));wa.displayName="Label";var Kr=$__namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:r=true,text:a,...n},o)=>{let s=r?{role:"none"}:{role:"separator","aria-orientation":t};return a&&t==="horizontal"?jsxRuntime.jsxs("div",{className:i("flex items-center gap-4",e),children:[jsxRuntime.jsx("div",{...s,className:"shrink-0 bg-border h-[1px] flex-1"}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:a}),jsxRuntime.jsx("div",{...s,className:"shrink-0 bg-border h-[1px] flex-1"})]}):jsxRuntime.jsx("div",{ref:o,...s,className:i("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n})});Kr.displayName="Separator";var mR="peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",Lo={default:"bg-zinc-800 dark:bg-zinc-200",success:"bg-green-600 dark:bg-green-500",warning:"bg-amber-600 dark:bg-amber-500",danger:"bg-red-600 dark:bg-red-500",info:"bg-blue-600 dark:bg-blue-500"},Yc={sm:{track:"h-5 w-9",thumb:"h-4 w-4",translate:"translate-x-4"},md:{track:"h-6 w-11",thumb:"h-5 w-5",translate:"translate-x-5"},lg:{track:"h-7 w-14",thumb:"h-6 w-6",translate:"translate-x-7"}},Uc=$__namespace.forwardRef(({className:e,color:t,size:r="md",customColor:a,checked:n,defaultChecked:o=false,onCheckedChange:s,disabled:l,required:c,name:d,value:u="on",onKeyDown:m,style:f,...p},b)=>{let[x,g]=$__namespace.useState(o),v=n!==void 0,y=v?n:x,w=()=>{if(l)return;let M=!y;v||g(M),s?.(M);},h=M=>{M.key==="Enter"&&M.preventDefault(),m?.(M);},C=t&&Lo[t]?Lo[t]:Lo.default,R=Yc[r]||Yc.md;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"switch","aria-checked":y,"aria-required":c,"data-state":y?"checked":"unchecked",disabled:l,ref:b,className:i(mR,R.track,y?a?"":C:"bg-input",e),style:a&&y?{backgroundColor:a,...f}:f,onClick:w,onKeyDown:h,...p,children:jsxRuntime.jsx("span",{className:i("pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform",R.thumb,y?R.translate:"translate-x-0")})}),d&&jsxRuntime.jsx("input",{type:"checkbox","aria-hidden":true,tabIndex:-1,name:d,value:u,checked:y,required:c,disabled:l,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]})});Uc.displayName="Switch";var bR=classVarianceAuthority.cva("flex min-h-[80px] w-full border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"md"}}),Xc=$__namespace.forwardRef(({className:e,radius:t,onFocus:r,onBlur:a,style:n,...o},s)=>{let[l,c]=$__namespace.useState(false);return jsxRuntime.jsx("textarea",{className:i(bR({radius:t,className:e})),ref:s,style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:d=>{c(true),r?.(d);},onBlur:d=>{c(false),a?.(d);},...o})});Xc.displayName="Textarea";var Zc=classVarianceAuthority.cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),Ho=$__namespace.forwardRef(({className:e,variant:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i(Zc({variant:t,className:e})),...r}));Ho.displayName="Skeleton";var RR=classVarianceAuthority.cva("relative flex shrink-0 overflow-hidden cursor-pointer",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",radius:"full"}}),Jc=$__namespace.createContext(null),Qc=()=>{let e=$__namespace.useContext(Jc);if(!e)throw new Error("Avatar components must be used within an Avatar");return e},Ca=$__namespace.forwardRef(({className:e,size:t,radius:r,...a},n)=>{let[o,s]=$__namespace.useState("idle");return jsxRuntime.jsx(Jc.Provider,{value:{imageLoadingStatus:o,onImageLoadingStatusChange:s},children:jsxRuntime.jsx("span",{ref:n,className:i(RR({size:t,radius:r,className:e})),...a})})});Ca.displayName="Avatar";var tn=$__namespace.forwardRef(({className:e,src:t,alt:r,onLoadingStatusChange:a,...n},o)=>{let{imageLoadingStatus:s,onImageLoadingStatusChange:l}=Qc();return $__namespace.useEffect(()=>{if(!t){l("error");return}l("loading"),a?.("loading");let c=new Image;c.src=t,c.onload=()=>{l("loaded"),a?.("loaded");},c.onerror=()=>{l("error"),a?.("error");};},[t,l,a]),s!=="loaded"?null:jsxRuntime.jsx("img",{ref:o,src:t,alt:r,className:i("aspect-square h-full w-full object-cover",e),...n})});tn.displayName="AvatarImage";var Na=$__namespace.forwardRef(({className:e,delayMs:t=0,children:r,...a},n)=>{let{imageLoadingStatus:o}=Qc(),[s,l]=$__namespace.useState(t===0);return $__namespace.useEffect(()=>{if(t>0){let c=setTimeout(()=>l(true),t);return ()=>clearTimeout(c)}},[t]),o==="loaded"||!s?null:jsxRuntime.jsx("span",{ref:n,className:i("flex h-full w-full items-center justify-center bg-muted",e),...a,children:r})});Na.displayName="AvatarFallback";var td=$__namespace.createContext({delayDuration:700,skipDelayDuration:300}),Gr=({children:e,delayDuration:t=700,skipDelayDuration:r=300})=>jsxRuntime.jsx(td.Provider,{value:{delayDuration:t,skipDelayDuration:r},children:e});Gr.displayName="TooltipProvider";var rd=$__namespace.createContext(null),ad=()=>{let e=$__namespace.useContext(rd);if(!e)throw new Error("Tooltip components must be used within a Tooltip");return e},$r=({children:e,open:t,defaultOpen:r=false,onOpenChange:a,delayDuration:n})=>{let o=$__namespace.useContext(td),[s,l]=$__namespace.useState(r),c=t!==void 0,d=c?t:s,u=$__namespace.useRef(null),m=$__namespace.useId(),f=$__namespace.useRef(null),p=n??o.delayDuration,b=$__namespace.useCallback(x=>{f.current&&clearTimeout(f.current),x?f.current=setTimeout(()=>{c||l(true),a?.(true);},p):(c||l(false),a?.(false));},[c,a,p]);return $__namespace.useEffect(()=>()=>{f.current&&clearTimeout(f.current);},[]),jsxRuntime.jsx(rd.Provider,{value:{open:d,onOpenChange:b,triggerRef:u,contentId:m},children:e})};$r.displayName="Tooltip";var _r=$__namespace.forwardRef(({asChild:e,children:t,onMouseEnter:r,onMouseLeave:a,onFocus:n,onBlur:o,...s},l)=>{let{onOpenChange:c,triggerRef:d,contentId:u,open:m}=ad(),f=g=>{r?.(g),c(true);},p=g=>{a?.(g),c(false);},b=g=>{n?.(g),c(true);},x=g=>{o?.(g),c(false);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:g=>{d.current=g,typeof l=="function"?l(g):l&&(l.current=g);},onMouseEnter:f,onMouseLeave:p,onFocus:b,onBlur:x,"aria-describedby":m?u:void 0,...s}):jsxRuntime.jsx("button",{ref:g=>{d.current=g,typeof l=="function"?l(g):l&&(l.current=g);},type:"button","aria-describedby":m?u:void 0,onMouseEnter:f,onMouseLeave:p,onFocus:b,onBlur:x,...s,children:t})});_r.displayName="TooltipTrigger";var jr=$__namespace.forwardRef(({className:e,side:t="top",sideOffset:r=4,align:a="center",alignOffset:n=0,children:o,...s},l)=>{let{open:c,triggerRef:d,contentId:u}=ad(),[m,f]=$__namespace.useState({top:0,left:0}),[p,b]=$__namespace.useState(false),x=$__namespace.useRef(null);if($__namespace.useEffect(()=>{b(true);},[]),$__namespace.useEffect(()=>{if(!c||!d.current||!x.current)return;let v=d.current.getBoundingClientRect(),y=x.current.getBoundingClientRect(),w=0,h=0;switch(t){case "top":w=v.top-y.height-r;break;case "bottom":w=v.bottom+r;break;case "left":h=v.left-y.width-r;break;case "right":h=v.right+r;break}if(t==="top"||t==="bottom")switch(a){case "start":h=v.left+n;break;case "center":h=v.left+v.width/2-y.width/2;break;case "end":h=v.right-y.width-n;break}else switch(a){case "start":w=v.top+n;break;case "center":w=v.top+v.height/2-y.height/2;break;case "end":w=v.bottom-y.height-n;break}f({top:w,left:h});},[c,t,r,a,n,d]),!p||!c)return null;let g={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return $o__namespace.createPortal(jsxRuntime.jsx("div",{ref:v=>{x.current=v,typeof l=="function"?l(v):l&&(l.current=v);},id:u,role:"tooltip","data-side":t,className:i("fixed z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",g,e),style:{top:m.top,left:m.left},...s,children:o}),document.body)});jr.displayName="TooltipContent";var We=$__namespace.forwardRef(({className:e,orientation:t="vertical",visibility:r="visible",children:a,style:n,...o},s)=>{let[l,c]=$__namespace.useState(false),d=$__namespace.useId().replace(/:/g,""),u=r==="visible"||r==="hover"&&l,m=u?"rgba(0,0,0,0.3)":"transparent",f=u?"rgba(255,255,255,0.3)":"transparent",p=`
1
+ 'use strict';var $=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),Wo=require('react-dom'),sonner=require('sonner'),vaul=require('vaul'),reactDayPicker=require('react-day-picker'),dateFns=require('date-fns'),cmdk=require('cmdk'),reactResizablePanels=require('react-resizable-panels'),reactColorful=require('react-colorful'),recharts=require('recharts'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),uT=require('embla-carousel-react'),react=require('@tiptap/react'),yT=require('@tiptap/starter-kit'),RT=require('@tiptap/extension-link'),wT=require('@tiptap/extension-underline'),CT=require('@tiptap/extension-text-align'),NT=require('@tiptap/extension-placeholder'),WT=require('react-image-crop');require('react-image-crop/dist/ReactCrop.css');var QT=require('react-qr-code'),nextThemes=require('next-themes'),framerMotion=require('framer-motion'),Hn=require('canvas-confetti');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var $__namespace=/*#__PURE__*/_interopNamespace($);var Wo__namespace=/*#__PURE__*/_interopNamespace(Wo);var uT__default=/*#__PURE__*/_interopDefault(uT);var yT__default=/*#__PURE__*/_interopDefault(yT);var RT__default=/*#__PURE__*/_interopDefault(RT);var wT__default=/*#__PURE__*/_interopDefault(wT);var CT__default=/*#__PURE__*/_interopDefault(CT);var NT__default=/*#__PURE__*/_interopDefault(NT);var WT__default=/*#__PURE__*/_interopDefault(WT);var QT__default=/*#__PURE__*/_interopDefault(QT);var Hn__default=/*#__PURE__*/_interopDefault(Hn);function i(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var nR=classVarianceAuthority.cva("relative w-full p-4",{variants:{variant:{solid:"border",bordered:"border bg-transparent",flat:""},type:{default:"",success:"",warning:"",error:""},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",type:"default",className:"!border-primary bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"bordered",type:"default",className:"!border-primary text-primary [&>svg]:text-primary"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"!border-green-600 bg-green-600 text-white dark:!border-green-500 dark:bg-green-500 [&>svg]:text-white"},{variant:"bordered",type:"success",className:"!border-green-600 text-green-600 dark:!border-green-500 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"flat",type:"success",className:"bg-green-600/10 text-green-600 dark:bg-green-500/10 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"solid",type:"warning",className:"!border-amber-600 bg-amber-600 text-white dark:!border-amber-500 dark:bg-amber-500 [&>svg]:text-white"},{variant:"bordered",type:"warning",className:"!border-amber-600 text-amber-600 dark:!border-amber-500 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"flat",type:"warning",className:"bg-amber-600/10 text-amber-600 dark:bg-amber-500/10 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"solid",type:"error",className:"!border-red-600 bg-red-600 text-white dark:!border-red-500 dark:bg-red-500 [&>svg]:text-white"},{variant:"bordered",type:"error",className:"!border-red-600 text-red-600 dark:!border-red-500 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"},{variant:"flat",type:"error",className:"bg-red-600/10 text-red-600 dark:bg-red-500/10 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"}],defaultVariants:{variant:"solid",type:"default",radius:"md"}}),oR={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},sR=$__namespace.forwardRef(({className:e,variant:t="solid",type:r="default",radius:a="md",icon:n,hideIcon:o=false,endContent:s,children:l,...c},d)=>{let m=oR[r],u=!o,f=n!==void 0?n:m?jsxRuntime.jsx(m,{className:"h-4 w-4"}):null;return jsxRuntime.jsxs("div",{ref:d,role:"alert",className:i(nR({variant:t,type:r,radius:a}),s&&"flex items-center justify-between",e),...c,children:[jsxRuntime.jsxs("div",{className:"flex items-start gap-3",children:[u&&f&&jsxRuntime.jsx("span",{className:"mt-0.5 shrink-0",children:f}),jsxRuntime.jsx("div",{children:l})]}),s&&jsxRuntime.jsx("div",{className:"shrink-0 ml-4",children:s})]})});sR.displayName="Alert";var iR=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h5",{ref:r,className:i("mb-1 font-medium leading-none tracking-tight",e),...t}));iR.displayName="AlertTitle";var lR=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("text-sm [&_p]:leading-relaxed",e),...t}));lR.displayName="AlertDescription";var cR=classVarianceAuthority.cva("absolute rounded-full flex items-center justify-center font-semibold",{variants:{variant:{solid:"",bordered:"border-2"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"",md:"",lg:""},placement:{"top-right":"-top-1 -right-1","top-left":"-top-1 -left-1","bottom-right":"-bottom-1 -right-1","bottom-left":"-bottom-1 -left-1"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white dark:bg-zinc-200 dark:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white dark:bg-green-500"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white dark:bg-amber-500"},{variant:"solid",color:"danger",className:"bg-red-600 text-white dark:bg-red-500"},{variant:"solid",color:"info",className:"bg-blue-600 text-white dark:bg-blue-500"},{variant:"bordered",color:"default",className:"bg-white border-zinc-800 text-zinc-800 dark:bg-zinc-900 dark:border-zinc-200 dark:text-zinc-200"},{variant:"bordered",color:"success",className:"bg-white border-green-600 text-green-600 dark:bg-zinc-900 dark:border-green-500 dark:text-green-500"},{variant:"bordered",color:"warning",className:"bg-white border-amber-600 text-amber-600 dark:bg-zinc-900 dark:border-amber-500 dark:text-amber-500"},{variant:"bordered",color:"danger",className:"bg-white border-red-600 text-red-600 dark:bg-zinc-900 dark:border-red-500 dark:text-red-500"},{variant:"bordered",color:"info",className:"bg-white border-blue-600 text-blue-600 dark:bg-zinc-900 dark:border-blue-500 dark:text-blue-500"},{size:"sm",className:"min-w-4 h-4 text-[10px] px-1"},{size:"md",className:"min-w-5 h-5 text-xs px-1"},{size:"lg",className:"min-w-6 h-6 text-sm px-1.5"}],defaultVariants:{variant:"solid",color:"default",size:"md",placement:"top-right"}}),dR={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},uR=$__namespace.forwardRef(({className:e,children:t,content:r,variant:a="solid",color:n="default",size:o="md",placement:s="top-right",isDot:l=false,...c},d)=>jsxRuntime.jsxs("div",{ref:d,className:i("relative inline-flex",e),...c,children:[t,jsxRuntime.jsx("span",{className:i(cR({variant:a,color:n,size:l?void 0:o,placement:s}),l&&dR[o||"md"],l&&"min-w-0 p-0"),children:!l&&r})]}));uR.displayName="Badge";var mR=classVarianceAuthority.cva("inline-flex items-center gap-1 font-medium rounded-full",{variants:{color:{default:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white",success:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500",warning:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500",danger:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500",info:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},size:{sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-0.5 text-xs",lg:"px-3 py-1 text-sm"}},defaultVariants:{color:"default",size:"md"}}),pR=$__namespace.forwardRef(({className:e,color:t,size:r,...a},n)=>jsxRuntime.jsx("span",{ref:n,className:i(mR({color:t,size:r}),e),...a}));pR.displayName="TextBadge";var fr=classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-all duration-200 ease-out cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{solid:"",bordered:"border-2 border-current bg-transparent hover:opacity-70",light:"bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800",flat:"bg-zinc-100 dark:bg-zinc-800 hover:opacity-70",ghost:"border-2 bg-transparent"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-9 px-3 text-xs",md:"h-10 px-4",lg:"h-11 px-5 text-base",icon:"h-10 w-10"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white hover:bg-zinc-700 dark:bg-zinc-200 dark:text-zinc-900 dark:hover:bg-zinc-300"},{variant:"bordered",color:"default",className:"text-zinc-900 dark:text-white"},{variant:"light",color:"default",className:"text-zinc-900 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800"},{variant:"flat",color:"default",className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white"},{variant:"ghost",color:"default",className:"text-zinc-900 border-zinc-900 hover:bg-zinc-900 hover:text-white dark:text-white dark:border-white dark:hover:bg-white dark:hover:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white hover:bg-green-700 dark:bg-green-700 dark:text-white dark:hover:bg-green-600"},{variant:"bordered",color:"success",className:"text-green-600 dark:text-green-500"},{variant:"light",color:"success",className:"text-green-600 hover:bg-green-600/10 dark:text-green-500 dark:hover:bg-green-500/10"},{variant:"flat",color:"success",className:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500"},{variant:"ghost",color:"success",className:"text-green-600 border-green-600 hover:bg-green-600 hover:text-white dark:text-green-500 dark:border-green-500 dark:hover:bg-green-500 dark:hover:text-white"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white hover:bg-amber-700 dark:bg-amber-700 dark:text-white dark:hover:bg-amber-600"},{variant:"bordered",color:"warning",className:"text-amber-600 dark:text-amber-500"},{variant:"light",color:"warning",className:"text-amber-600 hover:bg-amber-600/10 dark:text-amber-500 dark:hover:bg-amber-500/10"},{variant:"flat",color:"warning",className:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500"},{variant:"ghost",color:"warning",className:"text-amber-600 border-amber-600 hover:bg-amber-600 hover:text-white dark:text-amber-500 dark:border-amber-500 dark:hover:bg-amber-500 dark:hover:text-white"},{variant:"solid",color:"danger",className:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-700 dark:text-white dark:hover:bg-red-600"},{variant:"bordered",color:"danger",className:"text-red-600 dark:text-red-500"},{variant:"light",color:"danger",className:"text-red-600 hover:bg-red-600/10 dark:text-red-500 dark:hover:bg-red-500/10"},{variant:"flat",color:"danger",className:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500"},{variant:"ghost",color:"danger",className:"text-red-600 border-red-600 hover:bg-red-600 hover:text-white dark:text-red-500 dark:border-red-500 dark:hover:bg-red-500 dark:hover:text-white"},{variant:"solid",color:"info",className:"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-700 dark:text-white dark:hover:bg-blue-600"},{variant:"bordered",color:"info",className:"text-blue-600 dark:text-blue-500"},{variant:"light",color:"info",className:"text-blue-600 hover:bg-blue-600/10 dark:text-blue-500 dark:hover:bg-blue-500/10"},{variant:"flat",color:"info",className:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},{variant:"ghost",color:"info",className:"text-blue-600 border-blue-600 hover:bg-blue-600 hover:text-white dark:text-blue-500 dark:border-blue-500 dark:hover:bg-blue-500 dark:hover:text-white"}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md"}}),To=$__namespace.forwardRef(({children:e,...t},r)=>$__namespace.isValidElement(e)?$__namespace.cloneElement(e,{...t,...e.props,ref:r,className:i(t.className,e.props.className),style:{...t.style,...e.props.style}}):null);To.displayName="Slot";var J=$__namespace.forwardRef(({className:e,variant:t,color:r,size:a,radius:n,asChild:o=false,href:s,loading:l=false,startContent:c,endContent:d,children:m,disabled:u,style:f,...p},b)=>{let x=u||l,v=t==="bordered"?{borderColor:"currentColor",...f}:f,y=l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"animate-spin"}),m]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,m,d]});return o?jsxRuntime.jsx(To,{className:i(fr({variant:t,color:r,size:a,radius:n,className:e})),ref:b,style:v,...p,children:y}):s?jsxRuntime.jsx("a",{href:s,className:i(fr({variant:t,color:r,size:a,radius:n,className:e}),x&&"pointer-events-none opacity-50"),style:v,...p,children:y}):jsxRuntime.jsx("button",{className:i(fr({variant:t,color:r,size:a,radius:n,className:e})),ref:b,disabled:x,style:v,...p,children:y})});J.displayName="Button";var Hc=classVarianceAuthority.cva("border bg-card text-card-foreground shadow-sm",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"lg"}}),Ic=$__namespace.forwardRef(({className:e,radius:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i(Hc({radius:t,className:e})),...r}));Ic.displayName="Card";var Vc=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));Vc.displayName="CardHeader";var Ac=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("p-6 pt-0",e),...t}));Ac.displayName="CardContent";var zc=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center p-6 pt-0",e),...t}));zc.displayName="CardFooter";var Bn=$__namespace.forwardRef(({className:e,checked:t,defaultChecked:r=false,onCheckedChange:a,disabled:n,required:o,name:s,value:l="on",text:c,description:d,onKeyDown:m,...u},f)=>{let[p,b]=$__namespace.useState(r),x=t!==void 0,g=x?t:p,[v,y]=$__namespace.useState(false),w=$__namespace.useId(),h=()=>{if(n)return;let L=g==="indeterminate"?true:!g;x||b(L),a?.(L);},C=L=>{L.key==="Enter"&&L.preventDefault(),m?.(L);},R=g===true,M=g==="indeterminate",T=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"checkbox",id:c?w:void 0,"aria-checked":M?"mixed":R,"aria-required":o,disabled:n,ref:f,className:i("peer h-4 w-4 shrink-0 rounded-sm border border-primary focus-visible:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 transition-colors",R&&"bg-primary text-primary-foreground",M&&"bg-background text-foreground",!c&&e),style:{borderColor:v?"var(--color-foreground)":void 0},onClick:h,onKeyDown:C,onFocus:()=>y(true),onBlur:()=>y(false),...u,children:(R||M)&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:M?jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),s&&jsxRuntime.jsx("input",{type:"checkbox","aria-hidden":true,tabIndex:-1,name:s,value:l,checked:R,required:o,disabled:n,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]});return c?jsxRuntime.jsxs("div",{className:i("flex items-start gap-2",e),children:[T,jsxRuntime.jsxs("div",{className:"flex flex-col gap-0.5",children:[jsxRuntime.jsx("label",{htmlFor:w,className:i("text-sm font-medium leading-none cursor-pointer",n&&"cursor-not-allowed opacity-50"),onClick:h,children:c}),d&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground",children:d})]})]}):T});Bn.displayName="Checkbox";var Oc=$__namespace.createContext(null),tn=()=>{let e=$__namespace.useContext(Oc);if(!e)throw new Error("Dialog components must be used within a Dialog");return e},ko=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=$__namespace.useState(r),s=t!==void 0,l=s?t:n,c=$__namespace.useId(),d=$__namespace.useId(),m=$__namespace.useId(),u=$__namespace.useCallback(f=>{s||o(f),a?.(f);},[s,a]);return jsxRuntime.jsx(Oc.Provider,{value:{open:l,onOpenChange:u,contentId:c,titleId:d,descriptionId:m},children:e})};ko.displayName="Dialog";var Fc=$__namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=tn(),s=l=>{r?.(l),o(true);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(true);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});Fc.displayName="DialogTrigger";var Kc=$__namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=tn(),s=l=>{r?.(l),o(false);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(false);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});Kc.displayName="DialogClose";var Ci=({children:e,container:t})=>{let[r,a]=$__namespace.useState(false);return $__namespace.useEffect(()=>{a(true);},[]),r?Wo__namespace.createPortal(e,t||document.body):null};Ci.displayName="DialogPortal";var Ni=$__namespace.forwardRef(({className:e,...t},r)=>{let{open:a,onOpenChange:n}=tn();return a?jsxRuntime.jsx("div",{ref:r,"data-state":a?"open":"closed",className:i("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),onClick:()=>n(false),"aria-hidden":"true",...t}):null});Ni.displayName="DialogOverlay";var Lo=$__namespace.forwardRef(({className:e,children:t,onEscapeKeyDown:r,onInteractOutside:a,...n},o)=>{let{open:s,onOpenChange:l,contentId:c,titleId:d,descriptionId:m}=tn(),[u,f]=$__namespace.useState(false);return $__namespace.useEffect(()=>{f(true);},[]),$__namespace.useEffect(()=>(s&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[s]),$__namespace.useEffect(()=>{if(!s)return;let p=b=>{b.key==="Escape"&&(r?.(),l(false));};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[s,l,r]),!u||!s?null:jsxRuntime.jsxs(Ci,{children:[jsxRuntime.jsx(Ni,{}),jsxRuntime.jsxs("div",{ref:o,id:c,role:"dialog","aria-modal":"true","aria-labelledby":d,"aria-describedby":m,"data-state":s?"open":"closed",className:i("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,jsxRuntime.jsxs("button",{type:"button",onClick:()=>l(false),className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none cursor-pointer",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});Lo.displayName="DialogContent";var Gc=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Gc.displayName="DialogHeader";var $c=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$c.displayName="DialogFooter";var _c=$__namespace.forwardRef(({className:e,...t},r)=>{let{titleId:a}=tn();return jsxRuntime.jsx("h2",{ref:r,id:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t})});_c.displayName="DialogTitle";var Wc=$__namespace.forwardRef(({className:e,...t},r)=>{let{descriptionId:a}=tn();return jsxRuntime.jsx("p",{ref:r,id:a,className:i("text-sm text-muted-foreground",e),...t})});Wc.displayName="DialogDescription";var CR=classVarianceAuthority.cva("flex h-10 w-full border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),Eo=$__namespace.forwardRef(({className:e,type:t,radius:r,label:a,isRequired:n,description:o,errorMessage:s,isInvalid:l,onFocus:c,onBlur:d,style:m,...u},f)=>{let[p,b]=$__namespace.useState(false),x=$__namespace.useId(),g=u.id||x,v=l||!!s,y=jsxRuntime.jsx("input",{id:g,type:t,className:i(CR({radius:r}),v&&"border-danger focus:border-danger",!a&&e),ref:f,required:n,"aria-invalid":v,"aria-describedby":o||s?`${g}-description`:void 0,style:{...m,borderColor:v?void 0:p?"var(--color-foreground)":void 0},onFocus:w=>{b(true),c?.(w);},onBlur:w=>{b(false),d?.(w);},...u});return !a&&!o&&!s?y:jsxRuntime.jsxs("div",{className:i("flex flex-col gap-1.5",e),children:[a&&jsxRuntime.jsxs("label",{htmlFor:g,className:"text-sm font-medium leading-none",children:[a,n&&jsxRuntime.jsx("span",{className:"text-danger ml-1",children:"*"})]}),y,(o||s)&&jsxRuntime.jsx("p",{id:`${g}-description`,className:i("text-xs",v?"text-danger":"text-muted-foreground"),children:s||o})]})});Eo.displayName="Input";var MR=classVarianceAuthority.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Na=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("label",{ref:r,className:i(MR(),e),...t}));Na.displayName="Label";var $r=$__namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:r=true,text:a,...n},o)=>{let s=r?{role:"none"}:{role:"separator","aria-orientation":t};return a&&t==="horizontal"?jsxRuntime.jsxs("div",{className:i("flex items-center gap-4",e),children:[jsxRuntime.jsx("div",{...s,className:"shrink-0 bg-border h-[1px] flex-1"}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:a}),jsxRuntime.jsx("div",{...s,className:"shrink-0 bg-border h-[1px] flex-1"})]}):jsxRuntime.jsx("div",{ref:o,...s,className:i("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n})});$r.displayName="Separator";var kR="peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",So={default:"bg-zinc-800 dark:bg-zinc-200",success:"bg-green-600 dark:bg-green-500",warning:"bg-amber-600 dark:bg-amber-500",danger:"bg-red-600 dark:bg-red-500",info:"bg-blue-600 dark:bg-blue-500"},Xc={sm:{track:"h-5 w-9",thumb:"h-4 w-4",translate:"translate-x-4"},md:{track:"h-6 w-11",thumb:"h-5 w-5",translate:"translate-x-5"},lg:{track:"h-7 w-14",thumb:"h-6 w-6",translate:"translate-x-7"}},qc=$__namespace.forwardRef(({className:e,color:t,size:r="md",customColor:a,checked:n,defaultChecked:o=false,onCheckedChange:s,disabled:l,required:c,name:d,value:m="on",onKeyDown:u,style:f,...p},b)=>{let[x,g]=$__namespace.useState(o),v=n!==void 0,y=v?n:x,w=()=>{if(l)return;let M=!y;v||g(M),s?.(M);},h=M=>{M.key==="Enter"&&M.preventDefault(),u?.(M);},C=t&&So[t]?So[t]:So.default,R=Xc[r]||Xc.md;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"switch","aria-checked":y,"aria-required":c,"data-state":y?"checked":"unchecked",disabled:l,ref:b,className:i(kR,R.track,y?a?"":C:"bg-input",e),style:a&&y?{backgroundColor:a,...f}:f,onClick:w,onKeyDown:h,...p,children:jsxRuntime.jsx("span",{className:i("pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform",R.thumb,y?R.translate:"translate-x-0")})}),d&&jsxRuntime.jsx("input",{type:"checkbox","aria-hidden":true,tabIndex:-1,name:d,value:m,checked:y,required:c,disabled:l,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]})});qc.displayName="Switch";var SR=classVarianceAuthority.cva("flex min-h-[80px] w-full border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"md"}}),Zc=$__namespace.forwardRef(({className:e,radius:t,onFocus:r,onBlur:a,style:n,...o},s)=>{let[l,c]=$__namespace.useState(false);return jsxRuntime.jsx("textarea",{className:i(SR({radius:t,className:e})),ref:s,style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:d=>{c(true),r?.(d);},onBlur:d=>{c(false),a?.(d);},...o})});Zc.displayName="Textarea";var Qc=classVarianceAuthority.cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),Vo=$__namespace.forwardRef(({className:e,variant:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i(Qc({variant:t,className:e})),...r}));Vo.displayName="Skeleton";var zR=classVarianceAuthority.cva("relative flex shrink-0 overflow-hidden cursor-pointer",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",radius:"full"}}),ed=$__namespace.createContext(null),td=()=>{let e=$__namespace.useContext(ed);if(!e)throw new Error("Avatar components must be used within an Avatar");return e},Ma=$__namespace.forwardRef(({className:e,size:t,radius:r,...a},n)=>{let[o,s]=$__namespace.useState("idle");return jsxRuntime.jsx(ed.Provider,{value:{imageLoadingStatus:o,onImageLoadingStatusChange:s},children:jsxRuntime.jsx("span",{ref:n,className:i(zR({size:t,radius:r,className:e})),...a})})});Ma.displayName="Avatar";var an=$__namespace.forwardRef(({className:e,src:t,alt:r,onLoadingStatusChange:a,...n},o)=>{let{imageLoadingStatus:s,onImageLoadingStatusChange:l}=td();return $__namespace.useEffect(()=>{if(!t){l("error");return}l("loading"),a?.("loading");let c=new Image;c.src=t,c.onload=()=>{l("loaded"),a?.("loaded");},c.onerror=()=>{l("error"),a?.("error");};},[t,l,a]),s!=="loaded"?null:jsxRuntime.jsx("img",{ref:o,src:t,alt:r,className:i("aspect-square h-full w-full object-cover",e),...n})});an.displayName="AvatarImage";var Ta=$__namespace.forwardRef(({className:e,delayMs:t=0,children:r,...a},n)=>{let{imageLoadingStatus:o}=td(),[s,l]=$__namespace.useState(t===0);return $__namespace.useEffect(()=>{if(t>0){let c=setTimeout(()=>l(true),t);return ()=>clearTimeout(c)}},[t]),o==="loaded"||!s?null:jsxRuntime.jsx("span",{ref:n,className:i("flex h-full w-full items-center justify-center bg-muted",e),...a,children:r})});Ta.displayName="AvatarFallback";var ad=$__namespace.createContext({delayDuration:700,skipDelayDuration:300}),_r=({children:e,delayDuration:t=700,skipDelayDuration:r=300})=>jsxRuntime.jsx(ad.Provider,{value:{delayDuration:t,skipDelayDuration:r},children:e});_r.displayName="TooltipProvider";var nd=$__namespace.createContext(null),od=()=>{let e=$__namespace.useContext(nd);if(!e)throw new Error("Tooltip components must be used within a Tooltip");return e},Wr=({children:e,open:t,defaultOpen:r=false,onOpenChange:a,delayDuration:n})=>{let o=$__namespace.useContext(ad),[s,l]=$__namespace.useState(r),c=t!==void 0,d=c?t:s,m=$__namespace.useRef(null),u=$__namespace.useId(),f=$__namespace.useRef(null),p=n??o.delayDuration,b=$__namespace.useCallback(x=>{f.current&&clearTimeout(f.current),x?f.current=setTimeout(()=>{c||l(true),a?.(true);},p):(c||l(false),a?.(false));},[c,a,p]);return $__namespace.useEffect(()=>()=>{f.current&&clearTimeout(f.current);},[]),jsxRuntime.jsx(nd.Provider,{value:{open:d,onOpenChange:b,triggerRef:m,contentId:u},children:e})};Wr.displayName="Tooltip";var jr=$__namespace.forwardRef(({asChild:e,children:t,onMouseEnter:r,onMouseLeave:a,onFocus:n,onBlur:o,...s},l)=>{let{onOpenChange:c,triggerRef:d,contentId:m,open:u}=od(),f=g=>{r?.(g),c(true);},p=g=>{a?.(g),c(false);},b=g=>{n?.(g),c(true);},x=g=>{o?.(g),c(false);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:g=>{d.current=g,typeof l=="function"?l(g):l&&(l.current=g);},onMouseEnter:f,onMouseLeave:p,onFocus:b,onBlur:x,"aria-describedby":u?m:void 0,...s}):jsxRuntime.jsx("button",{ref:g=>{d.current=g,typeof l=="function"?l(g):l&&(l.current=g);},type:"button","aria-describedby":u?m:void 0,onMouseEnter:f,onMouseLeave:p,onFocus:b,onBlur:x,...s,children:t})});jr.displayName="TooltipTrigger";var Ur=$__namespace.forwardRef(({className:e,side:t="top",sideOffset:r=4,align:a="center",alignOffset:n=0,children:o,...s},l)=>{let{open:c,triggerRef:d,contentId:m}=od(),[u,f]=$__namespace.useState({top:0,left:0}),[p,b]=$__namespace.useState(false),x=$__namespace.useRef(null);if($__namespace.useEffect(()=>{b(true);},[]),$__namespace.useEffect(()=>{if(!c||!d.current||!x.current)return;let v=d.current.getBoundingClientRect(),y=x.current.getBoundingClientRect(),w=0,h=0;switch(t){case "top":w=v.top-y.height-r;break;case "bottom":w=v.bottom+r;break;case "left":h=v.left-y.width-r;break;case "right":h=v.right+r;break}if(t==="top"||t==="bottom")switch(a){case "start":h=v.left+n;break;case "center":h=v.left+v.width/2-y.width/2;break;case "end":h=v.right-y.width-n;break}else switch(a){case "start":w=v.top+n;break;case "center":w=v.top+v.height/2-y.height/2;break;case "end":w=v.bottom-y.height-n;break}f({top:w,left:h});},[c,t,r,a,n,d]),!p||!c)return null;let g={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return Wo__namespace.createPortal(jsxRuntime.jsx("div",{ref:v=>{x.current=v,typeof l=="function"?l(v):l&&(l.current=v);},id:m,role:"tooltip","data-side":t,className:i("fixed z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",g,e),style:{top:u.top,left:u.left},...s,children:o}),document.body)});Ur.displayName="TooltipContent";var je=$__namespace.forwardRef(({className:e,orientation:t="vertical",visibility:r="visible",children:a,style:n,...o},s)=>{let[l,c]=$__namespace.useState(false),d=$__namespace.useId().replace(/:/g,""),m=r==="visible"||r==="hover"&&l,u=m?"rgba(0,0,0,0.3)":"transparent",f=m?"rgba(255,255,255,0.3)":"transparent",p=`
2
2
  #${d} {
3
3
  scrollbar-width: thin;
4
- scrollbar-color: ${m} transparent;
4
+ scrollbar-color: ${u} transparent;
5
5
  }
6
6
  .dark #${d},
7
7
  #${d}.dark {
@@ -18,7 +18,7 @@
18
18
  box-shadow: none;
19
19
  }
20
20
  #${d}::-webkit-scrollbar-thumb {
21
- background: ${m};
21
+ background: ${u};
22
22
  border-radius: 9999px;
23
23
  border: none;
24
24
  }
@@ -40,24 +40,19 @@
40
40
  scrollbar-width: none;
41
41
  }
42
42
  `:""}
43
- `;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:p}}),jsxRuntime.jsx("div",{ref:s,id:d,onMouseEnter:()=>c(true),onMouseLeave:()=>c(false),style:n,className:i("h-full w-full",t==="vertical"&&"overflow-y-auto overflow-x-hidden",t==="horizontal"&&"overflow-x-auto overflow-y-hidden",t==="both"&&"overflow-auto",e),...o,children:a})]})});We.displayName="ScrollArea";var ld=classVarianceAuthority.cva("flex min-h-10 w-full cursor-pointer items-center justify-between border border-zinc-300 dark:border-zinc-700 bg-background px-3 py-2 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),cd=$__namespace.forwardRef(({options:e,multiple:t=false,value:r,defaultValue:a,onValueChange:n,placeholder:o="Select...",searchable:s=false,searchPlaceholder:l="Search...",emptyText:c="No results found.",disabled:d=false,clearable:u=false,maxDisplayItems:m=3,maxDropdownHeight:f=240,radius:p,className:b,...x},g)=>{let[v,y]=$__namespace.useState(false),[w,h]=$__namespace.useState(""),[C,R]=$__namespace.useState(a||""),[M,T]=$__namespace.useState(a||[]),[E,N]=$__namespace.useState({top:0,left:0,width:0}),P=$__namespace.useRef(null),k=$__namespace.useRef(null),L=$__namespace.useRef(null),H=$__namespace.useRef(null),S=r!==void 0?r:C,D=r!==void 0?r:M,V=r!==void 0,z=A=>{u&&S===A?(V||R(""),n?.("")):(V||R(A),n?.(A)),y(false),h("");},G=A=>{let Y=D.includes(A)?D.filter(j=>j!==A):[...D,A];V||T(Y),n?.(Y);},I=(A,Y)=>{Y.stopPropagation();let j=D.filter(he=>he!==A);V||T(j),n?.(j);},F=A=>{A.stopPropagation(),t?(V||T([]),n?.([])):(V||R(""),n?.(""));},O=e.find(A=>A.value===S),Q=e.filter(A=>D.includes(A.value)),re=Q.slice(0,m),K=Q.length-m,B=s?e.filter(A=>A.label.toLowerCase().includes(w.toLowerCase())):e;$__namespace.useEffect(()=>{if(v&&k.current){let A=k.current.getBoundingClientRect();N({top:A.bottom+4,left:A.left,width:A.width}),s&&setTimeout(()=>H.current?.focus(),0);}v||h("");},[v,s]),$__namespace.useEffect(()=>{let A=Y=>{let j=Y.target,he=P.current&&!P.current.contains(j),me=L.current&&!L.current.contains(j);he&&me&&(y(false),h(""));};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[]),$__namespace.useEffect(()=>{if(!v)return;let A=Y=>{L.current?.contains(Y.target)||(y(false),h(""));};return window.addEventListener("scroll",A,true),()=>window.removeEventListener("scroll",A,true)},[v]);let W=t?D.length>0:!!S;return jsxRuntime.jsxs("div",{ref:P,className:i("relative",b),...x,children:[jsxRuntime.jsxs("div",{ref:A=>{k.current=A,typeof g=="function"?g(A):g&&(g.current=A);},role:"combobox","aria-expanded":v,"aria-haspopup":"listbox","aria-disabled":d,onClick:()=>!d&&y(!v),className:i(ld({radius:p}),t&&"flex-wrap gap-1",d&&"cursor-not-allowed opacity-50"),children:[!t&&jsxRuntime.jsx("span",{className:i(!O&&"text-muted-foreground"),children:O?O.label:o}),t&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:Q.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground",children:o}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[re.map(A=>jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground",children:[A.label,jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:Y=>I(A.value,Y),onKeyDown:Y=>{(Y.key==="Enter"||Y.key===" ")&&I(A.value,Y);},className:"rounded-full hover:bg-secondary-foreground/20 cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},A.value)),K>0&&jsxRuntime.jsxs("span",{className:"text-xs text-muted-foreground",children:["+",K," more"]})]})}),jsxRuntime.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[u&&W&&jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:F,onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&F(A);},className:"rounded-full p-0.5 hover:bg-muted cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4 opacity-50"})}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 opacity-50 transition-transform",v&&"rotate-180")})]})]}),v&&!d&&typeof document<"u"&&$o__namespace.createPortal(jsxRuntime.jsxs("div",{ref:L,className:"fixed z-[9999] overflow-hidden rounded-md border border-zinc-300 dark:border-zinc-700 bg-background shadow-md",style:{top:E.top,left:E.left,minWidth:E.width},children:[s&&jsxRuntime.jsxs("div",{className:"flex items-center border-b border-zinc-300 dark:border-zinc-700 px-3",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-4 w-4 opacity-50 mr-2"}),jsxRuntime.jsx("input",{ref:H,type:"text",value:w,onChange:A=>h(A.target.value),placeholder:l,className:"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground"})]}),jsxRuntime.jsx(We,{style:{maxHeight:f},onWheel:A=>A.stopPropagation(),children:jsxRuntime.jsx("div",{className:"p-1",children:B.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:c}):B.map(A=>{let Y=t?D.includes(A.value):S===A.value;return jsxRuntime.jsxs("div",{role:"option","aria-selected":Y,onClick:()=>{A.disabled||(t?G(A.value):z(A.value));},className:i("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800",A.disabled&&"pointer-events-none opacity-50"),children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:Y&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),A.label]},A.value)})})})]}),document.body)]})});cd.displayName="Select";var dd=$__namespace.createContext(null),Ma=()=>{let e=$__namespace.useContext(dd);if(!e)throw new Error("Dropdown components must be used within a Dropdown");return e},Mi=$__namespace.createContext(null),ud=$__namespace.createContext(null),Wr=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=$__namespace.useState(r),[s,l]=$__namespace.useState(-1),c=t!==void 0,d=c?t:n,u=$__namespace.useRef(null),m=$__namespace.useRef(null),f=$__namespace.useId(),p=$__namespace.useRef(new Map),b=$__namespace.useCallback(v=>{c||o(v),a?.(v),v||l(-1);},[c,a]),x=$__namespace.useCallback((v,y)=>{p.current.set(v,y);},[]),g=$__namespace.useCallback(v=>{p.current.delete(v);},[]);return jsxRuntime.jsx(dd.Provider,{value:{open:d,onOpenChange:b,triggerRef:u,contentRef:m,contentId:f,activeIndex:s,setActiveIndex:l,items:p,registerItem:x,unregisterItem:g},children:e})};Wr.displayName="Dropdown";var Yr=$__namespace.forwardRef(({asChild:e,children:t,onClick:r,onKeyDown:a,...n},o)=>{let{open:s,onOpenChange:l,triggerRef:c,contentId:d}=Ma(),u=f=>{r?.(f),l(!s);},m=f=>{a?.(f),(f.key==="ArrowDown"||f.key==="ArrowUp")&&(f.preventDefault(),l(true));};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:f=>{c.current=f,typeof o=="function"?o(f):o&&(o.current=f);},onClick:f=>{t.props.onClick?.(f),l(!s);},onKeyDown:f=>{t.props.onKeyDown?.(f),(f.key==="ArrowDown"||f.key==="ArrowUp")&&(f.preventDefault(),l(true));},"aria-expanded":s,"aria-haspopup":"menu","aria-controls":s?d:void 0,...n}):jsxRuntime.jsx("button",{ref:f=>{c.current=f,typeof o=="function"?o(f):o&&(o.current=f);},type:"button","aria-expanded":s,"aria-haspopup":"menu","aria-controls":s?d:void 0,onClick:u,onKeyDown:m,...n,children:t})});Yr.displayName="DropdownTrigger";var Ur=$__namespace.forwardRef(({className:e,side:t="bottom",sideOffset:r=4,align:a="start",alignOffset:n=0,collisionPadding:o=8,onInteractOutside:s,onEscapeKeyDown:l,loop:c=true,children:d,...u},m)=>{let{open:f,onOpenChange:p,triggerRef:b,contentRef:x,contentId:g,activeIndex:v,setActiveIndex:y,items:w}=Ma(),[h,C]=$__namespace.useState({top:0,left:0}),[R,M]=$__namespace.useState(t),[T,E]=$__namespace.useState(false),N=$__namespace.useRef(0);if($__namespace.useEffect(()=>{E(true);},[]),$__namespace.useEffect(()=>{f&&(N.current=w.current.size);},[f,w]),$__namespace.useEffect(()=>{if(!f||!b.current||!x.current)return;let k=()=>{if(!b.current||!x.current)return;let L=b.current.getBoundingClientRect(),H=x.current.getBoundingClientRect(),S=window.innerWidth,D=window.innerHeight,V=0,z=0,G=t;switch(t){case "top":V=L.top-H.height-r,V<o&&(V=L.bottom+r,G="bottom");break;case "bottom":V=L.bottom+r,V+H.height>D-o&&(V=L.top-H.height-r,G="top");break;case "left":z=L.left-H.width-r,z<o&&(z=L.right+r,G="right");break;case "right":z=L.right+r,z+H.width>S-o&&(z=L.left-H.width-r,G="left");break}if(G==="top"||G==="bottom"){switch(a){case "start":z=L.left+n;break;case "center":z=L.left+L.width/2-H.width/2;break;case "end":z=L.right-H.width-n;break}z<o?z=o:z+H.width>S-o&&(z=S-H.width-o);}else {switch(a){case "start":V=L.top+n;break;case "center":V=L.top+L.height/2-H.height/2;break;case "end":V=L.bottom-H.height-n;break}V<o?V=o:V+H.height>D-o&&(V=D-H.height-o);}C({top:V,left:z}),M(G);};return k(),window.addEventListener("resize",k),window.addEventListener("scroll",k,true),()=>{window.removeEventListener("resize",k),window.removeEventListener("scroll",k,true);}},[f,t,r,a,n,o,b]),$__namespace.useEffect(()=>{if(!f)return;let k=L=>{let H=L.target;x.current&&!x.current.contains(H)&&b.current&&!b.current.contains(H)&&(s?.(),p(false));};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[f,p,s,b,x]),$__namespace.useEffect(()=>{if(!f)return;let k=L=>{let H=Array.from(w.current.entries()).sort(([D],[V])=>D-V).map(([,D])=>D),S=H.length;if(S!==0)switch(L.key){case "Escape":L.preventDefault(),l?.(),p(false),b.current?.focus();break;case "ArrowDown":L.preventDefault(),v===-1||v>=S-1?y(c?0:Math.min(v+1,S-1)):y(v+1);break;case "ArrowUp":L.preventDefault(),v<=0?y(c?S-1:0):y(v-1);break;case "Home":L.preventDefault(),y(0);break;case "End":L.preventDefault(),y(S-1);break;case "Enter":case " ":L.preventDefault(),v>=0&&v<S&&H[v]?.click();break;case "Tab":p(false);break}};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[f,p,l,v,y,w,c,b]),$__namespace.useEffect(()=>{f&&v>=0&&Array.from(w.current.entries()).sort(([L],[H])=>L-H).map(([,L])=>L)[v]?.focus();},[f,v,w]),!T||!f)return null;let P={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[R];return $o__namespace.createPortal(jsxRuntime.jsx("div",{ref:k=>{x.current=k,typeof m=="function"?m(k):m&&(m.current=k);},id:g,role:"menu","aria-orientation":"vertical","data-state":f?"open":"closed","data-side":R,className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md outline-none",P,e),style:{top:h.top,left:h.left},...u,children:d}),document.body)});Ur.displayName="DropdownContent";var Ao=0,qt=$__namespace.forwardRef(({className:e,inset:t,disabled:r,onSelect:a,onClick:n,onMouseEnter:o,...s},l)=>{let{onOpenChange:c,activeIndex:d,setActiveIndex:u,registerItem:m,unregisterItem:f}=Ma(),[p]=$__namespace.useState(()=>Ao++),b=$__namespace.useRef(null);$__namespace.useEffect(()=>(!r&&b.current&&m(p,b.current),()=>{f(p);}),[r,p,m,f]);let x=y=>{if(r){y.preventDefault();return}n?.(y),a?.(),c(false);},g=y=>{o?.(y),r||u(p);};return jsxRuntime.jsx("div",{ref:y=>{b.current=y,typeof l=="function"?l(y):l&&(l.current=y);},role:"menuitem",tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,"data-highlighted":d===p?"":void 0,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",!r&&"cursor-pointer",e),onClick:x,onMouseEnter:g,...s})});qt.displayName="DropdownItem";var md=$__namespace.forwardRef(({className:e,children:t,checked:r=false,onCheckedChange:a,disabled:n,onClick:o,onMouseEnter:s,...l},c)=>{let{onOpenChange:d,activeIndex:u,setActiveIndex:m,registerItem:f,unregisterItem:p}=Ma(),[b]=$__namespace.useState(()=>Ao++),x=$__namespace.useRef(null);$__namespace.useEffect(()=>(!n&&x.current&&f(b,x.current),()=>{p(b);}),[n,b,f,p]);let g=w=>{if(n){w.preventDefault();return}o?.(w),a?.(!r),d(false);},v=w=>{s?.(w),n||m(b);};return jsxRuntime.jsxs("div",{ref:w=>{x.current=w,typeof c=="function"?c(w):c&&(c.current=w);},role:"menuitemcheckbox","aria-checked":r,tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-highlighted":u===b?"":void 0,"data-state":r?"checked":"unchecked",className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",!n&&"cursor-pointer",e),onClick:g,onMouseEnter:v,...l,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});md.displayName="DropdownCheckboxItem";var pd=$__namespace.forwardRef(({value:e="",onValueChange:t,className:r,...a},n)=>jsxRuntime.jsx(ud.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:n,role:"group",className:r,...a})}));pd.displayName="DropdownRadioGroup";var fd=$__namespace.forwardRef(({className:e,children:t,value:r,disabled:a,onClick:n,onMouseEnter:o,...s},l)=>{let{onOpenChange:c,activeIndex:d,setActiveIndex:u,registerItem:m,unregisterItem:f}=Ma(),p=$__namespace.useContext(ud),b=p?.value===r,[x]=$__namespace.useState(()=>Ao++),g=$__namespace.useRef(null);$__namespace.useEffect(()=>(!a&&g.current&&m(x,g.current),()=>{f(x);}),[a,x,m,f]);let v=h=>{if(a){h.preventDefault();return}n?.(h),p?.onValueChange(r),c(false);},y=h=>{o?.(h),a||u(x);};return jsxRuntime.jsxs("div",{ref:h=>{g.current=h,typeof l=="function"?l(h):l&&(l.current=h);},role:"menuitemradio","aria-checked":b,tabIndex:a?-1:0,"aria-disabled":a,"data-disabled":a?"":void 0,"data-highlighted":d===x?"":void 0,"data-state":b?"checked":"unchecked",className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",!a&&"cursor-pointer",e),onClick:v,onMouseEnter:y,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})}),t]})});fd.displayName="DropdownRadioItem";var gd=$__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));gd.displayName="DropdownLabel";var zo=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("-mx-1 my-1 h-px bg-muted",e),...t}));zo.displayName="DropdownSeparator";var bd=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...t});bd.displayName="DropdownShortcut";var vd=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"group",className:e,...t}));vd.displayName="DropdownGroup";var hd=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=$__namespace.useState(r),{contentRef:s}=Ma(),l=t!==void 0,c=l?t:n,d=$__namespace.useRef(null),u=$__namespace.useCallback(m=>{l||o(m),a?.(m);},[l,a]);return jsxRuntime.jsx(Mi.Provider,{value:{open:c,onOpenChange:u,triggerRef:d,parentMenuRef:s},children:e})};hd.displayName="DropdownSub";var xd=$__namespace.forwardRef(({className:e,inset:t,disabled:r,children:a,onMouseEnter:n,onMouseLeave:o,onKeyDown:s,...l},c)=>{let d=$__namespace.useContext(Mi),{setActiveIndex:u,registerItem:m,unregisterItem:f}=Ma(),[p]=$__namespace.useState(()=>Ao++),b=$__namespace.useRef(null);if(!d)throw new Error("DropdownSubTrigger must be used within DropdownSub");let{open:x,onOpenChange:g,triggerRef:v}=d;$__namespace.useEffect(()=>(!r&&b.current&&m(p,b.current),()=>{f(p);}),[r,p,m,f]);let y=C=>{n?.(C),r||(u(p),g(true));},w=C=>{o?.(C);},h=C=>{s?.(C),(C.key==="ArrowRight"||C.key==="Enter"||C.key===" ")&&(C.preventDefault(),g(true));};return jsxRuntime.jsxs("div",{ref:C=>{b.current=C,v.current=C,typeof c=="function"?c(C):c&&(c.current=C);},role:"menuitem","aria-haspopup":"menu","aria-expanded":x,tabIndex:r?-1:0,"aria-disabled":r,"data-state":x?"open":"closed","data-disabled":r?"":void 0,className:i("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[state=open]:bg-accent","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",!r&&"cursor-pointer",e),onMouseEnter:y,onMouseLeave:w,onKeyDown:h,...l,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto"})]})});xd.displayName="DropdownSubTrigger";var yd=$__namespace.forwardRef(({className:e,sideOffset:t=2,alignOffset:r=-4,collisionPadding:a=8,onMouseEnter:n,onMouseLeave:o,...s},l)=>{let c=$__namespace.useContext(Mi);if(!c)throw new Error("DropdownSubContent must be used within DropdownSub");let{open:d,onOpenChange:u,triggerRef:m,parentMenuRef:f}=c,[p,b]=$__namespace.useState({top:0,left:0}),[x,g]=$__namespace.useState(false),v=$__namespace.useRef(null),y=$__namespace.useRef(null);$__namespace.useEffect(()=>{g(true);},[]),$__namespace.useEffect(()=>{if(!d||!m.current||!v.current)return;(()=>{if(!m.current||!v.current)return;let R=m.current.getBoundingClientRect(),M=v.current.getBoundingClientRect(),T=window.innerWidth,E=window.innerHeight,N=R.top+r,P=R.right+t;P+M.width>T-a&&(P=R.left-M.width-t),N+M.height>E-a&&(N=E-M.height-a),N<a&&(N=a),b({top:N,left:P});})();},[d,t,r,a,m]);let w=C=>{n?.(C),y.current&&(clearTimeout(y.current),y.current=null),u(true);},h=C=>{o?.(C);let R=C.relatedTarget;m.current?.contains(R)||f?.current?.contains(R)||(y.current=setTimeout(()=>{u(false);},100));};return $__namespace.useEffect(()=>()=>{y.current&&clearTimeout(y.current);},[]),!x||!d?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:C=>{v.current=C,typeof l=="function"?l(C):l&&(l.current=C);},role:"menu","data-state":d?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",e),style:{top:p.top,left:p.left},onMouseEnter:w,onMouseLeave:h,...s}),document.body)});yd.displayName="DropdownSubContent";var wd=$__namespace.createContext(null),Pi=()=>{let e=$__namespace.useContext(wd);if(!e)throw new Error("Popover components must be used within a Popover");return e},at=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=$__namespace.useState(r),s=t!==void 0,l=s?t:n,c=$__namespace.useRef(null),d=$__namespace.useId(),u=$__namespace.useCallback(m=>{s||o(m),a?.(m);},[s,a]);return jsxRuntime.jsx(wd.Provider,{value:{open:l,onOpenChange:u,triggerRef:c,contentId:d},children:e})};at.displayName="Popover";var ht=$__namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{open:o,onOpenChange:s,triggerRef:l,contentId:c}=Pi(),d=u=>{r?.(u),s(!o);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:u=>{l.current=u,typeof n=="function"?n(u):n&&(n.current=u);},onClick:u=>{t.props.onClick?.(u),s(!o);},"aria-expanded":o,"aria-haspopup":"dialog","aria-controls":o?c:void 0,...a}):jsxRuntime.jsx("button",{ref:u=>{l.current=u,typeof n=="function"?n(u):n&&(n.current=u);},type:"button","aria-expanded":o,"aria-haspopup":"dialog","aria-controls":o?c:void 0,onClick:d,...a,children:t})});ht.displayName="PopoverTrigger";var Bo=$__namespace.forwardRef(({asChild:e,children:t,...r},a)=>{let{triggerRef:n}=Pi();return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:o=>{n.current=o,typeof a=="function"?a(o):a&&(a.current=o);},...r}):jsxRuntime.jsx("div",{ref:o=>{n.current=o,typeof a=="function"?a(o):a&&(a.current=o);},...r,children:t})});Bo.displayName="PopoverAnchor";var nt=$__namespace.forwardRef(({className:e,side:t="bottom",sideOffset:r=4,align:a="center",alignOffset:n=0,onInteractOutside:o,onEscapeKeyDown:s,onOpenAutoFocus:l,onCloseAutoFocus:c,children:d,...u},m)=>{let{open:f,onOpenChange:p,triggerRef:b,contentId:x}=Pi(),[g,v]=$__namespace.useState({top:0,left:0}),[y,w]=$__namespace.useState(false),h=$__namespace.useRef(null);if($__namespace.useEffect(()=>{w(true);},[]),$__namespace.useEffect(()=>{if(!f||!b.current||!h.current)return;let R=()=>{if(!b.current||!h.current)return;let M=b.current.getBoundingClientRect(),T=h.current.getBoundingClientRect(),E=0,N=0;switch(t){case "top":E=M.top-T.height-r;break;case "bottom":E=M.bottom+r;break;case "left":N=M.left-T.width-r;break;case "right":N=M.right+r;break}if(t==="top"||t==="bottom")switch(a){case "start":N=M.left+n;break;case "center":N=M.left+M.width/2-T.width/2;break;case "end":N=M.right-T.width-n;break}else switch(a){case "start":E=M.top+n;break;case "center":E=M.top+M.height/2-T.height/2;break;case "end":E=M.bottom-T.height-n;break}v({top:E,left:N});};return R(),window.addEventListener("resize",R),window.addEventListener("scroll",R,true),()=>{window.removeEventListener("resize",R),window.removeEventListener("scroll",R,true);}},[f,t,r,a,n,b]),$__namespace.useEffect(()=>{if(!f)return;let R=M=>{let T=M.target;h.current&&!h.current.contains(T)&&b.current&&!b.current.contains(T)&&(o?.(),p(false));};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[f,p,o,b]),$__namespace.useEffect(()=>{if(!f)return;let R=M=>{M.key==="Escape"&&(s?.(),p(false));};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[f,p,s]),!y||!f)return null;let C={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return $o__namespace.createPortal(jsxRuntime.jsx("div",{ref:R=>{h.current=R,typeof m=="function"?m(R):m&&(m.current=R);},id:x,role:"dialog","data-state":f?"open":"closed","data-side":t,className:i("fixed z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",C,e),style:{top:g.top,left:g.left},...u,children:d}),document.body)});nt.displayName="PopoverContent";var Cd=$__namespace.createContext(null),Ei=()=>{let e=$__namespace.useContext(Cd);if(!e)throw new Error("Tabs components must be used within a Tabs");return e},Nd=$__namespace.forwardRef(({className:e,value:t,defaultValue:r="",onValueChange:a,variant:n="solid",radius:o="md",orientation:s="horizontal",children:l,...c},d)=>{let[u,m]=$__namespace.useState(r),f=t!==void 0,p=f?t:u,b=x=>{f||m(x),a?.(x);};return jsxRuntime.jsx(Cd.Provider,{value:{value:p,onValueChange:b,variant:n,radius:o,orientation:s},children:jsxRuntime.jsx("div",{ref:d,"data-orientation":s,className:i(s==="vertical"&&"flex gap-4",e),...c,children:l})})});Nd.displayName="Tabs";var ki={none:{list:"rounded-none",trigger:"rounded-none",indicator:"rounded-none"},sm:{list:"rounded-md",trigger:"rounded-sm",indicator:"rounded-sm"},md:{list:"rounded-lg",trigger:"rounded-md",indicator:"rounded-md"},lg:{list:"rounded-xl",trigger:"rounded-lg",indicator:"rounded-lg"},full:{list:"rounded-full",trigger:"rounded-full",indicator:"rounded-full"}},Md=$__namespace.forwardRef(({className:e,children:t,...r},a)=>{let{variant:n,radius:o,orientation:s,value:l}=Ei(),c=$__namespace.useRef(null),[d,u]=$__namespace.useState({opacity:0});$__namespace.useEffect(()=>{let b=c.current;if(!b)return;let x=()=>{let v=b.querySelector('[data-state="active"]');if(v){let y=b.getBoundingClientRect(),w=v.getBoundingClientRect(),h=s==="vertical";n==="underline"?u(h?{width:2,height:w.height,transform:`translateY(${w.top-y.top}px)`,opacity:1}:{width:w.width,height:2,transform:`translateX(${w.left-y.left}px)`,opacity:1}):n==="solid"&&u(h?{width:w.width,height:w.height,transform:`translateY(${w.top-y.top}px)`,opacity:1}:{width:w.width,height:w.height,transform:`translateX(${w.left-y.left}px)`,opacity:1});}};x();let g=new ResizeObserver(x);return g.observe(b),()=>{g.disconnect();}},[n,s,l]);let m={solid:"bg-muted p-1",underline:"border-b border-border bg-transparent p-0 !rounded-none",outline:"bg-transparent p-0 gap-1 !rounded-none"},f=s==="vertical",p=()=>n==="solid"?f?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":n==="underline"?f?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxRuntime.jsxs("div",{ref:b=>{c.current=b,typeof a=="function"?a(b):a&&(a.current=b);},role:"tablist","aria-orientation":s,className:i("relative inline-flex h-9 items-center justify-center text-muted-foreground",f&&"flex-col h-auto w-auto",ki[o].list,m[n],e),...r,children:[(n==="solid"||n==="underline")&&jsxRuntime.jsx("span",{className:i("absolute transition-all duration-200 ease-out",ki[o].indicator,p()),style:d,"aria-hidden":"true"}),t]})});Md.displayName="TabsList";var Td=$__namespace.forwardRef(({className:e,value:t,disabled:r,onClick:a,...n},o)=>{let{value:s,onValueChange:l,variant:c,radius:d}=Ei(),u=s===t,m={solid:"data-[state=active]:text-foreground",underline:"!rounded-none border-b-2 border-transparent pb-2 data-[state=active]:text-foreground",outline:"border border-transparent data-[state=active]:border-border data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm"};return jsxRuntime.jsx("button",{type:"button",role:"tab",ref:o,"aria-selected":u,"data-state":u?"active":"inactive",disabled:r,className:i("relative z-10 inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",ki[d].trigger,m[c],e),onClick:f=>{a?.(f),l(t);},...n})});Td.displayName="TabsTrigger";var Pd=$__namespace.forwardRef(({className:e,value:t,children:r,...a},n)=>{let{value:o}=Ei(),s=o===t;return s?jsxRuntime.jsx("div",{ref:n,role:"tabpanel","data-state":s?"active":"inactive",className:i("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...a,children:r}):null});Pd.displayName="TabsContent";var Ed=$__namespace.createContext(null),Fo=()=>{let e=$__namespace.useContext(Ed);if(!e)throw new Error("Sheet components must be used within a Sheet");return e},Ko=({open:e,defaultOpen:t=false,onOpenChange:r,children:a})=>{let[n,o]=$__namespace.useState(t),s=e!==void 0,l=s?e:n,c=$__namespace.useCallback(d=>{s||o(d),r?.(d);},[s,r]);return jsxRuntime.jsx(Ed.Provider,{value:{open:l,onOpenChange:c},children:a})};Ko.displayName="Sheet";var Ld=$__namespace.forwardRef(({asChild:e,onClick:t,children:r,...a},n)=>{let{onOpenChange:o}=Fo(),s=l=>{t?.(l),o(true);};return e&&$__namespace.isValidElement(r)?$__namespace.cloneElement(r,{onClick:l=>{r.props.onClick?.(l),o(true);}}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:r})});Ld.displayName="SheetTrigger";var Dd=$__namespace.forwardRef(({asChild:e,onClick:t,children:r,...a},n)=>{let{onOpenChange:o}=Fo(),s=l=>{t?.(l),o(false);};return e&&$__namespace.isValidElement(r)?$__namespace.cloneElement(r,{onClick:l=>{r.props.onClick?.(l),o(false);}}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:r})});Dd.displayName="SheetClose";var Di=({children:e,container:t})=>{let[r,a]=$__namespace.useState(false);return $__namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};Di.displayName="SheetPortal";var Sd=$__namespace.forwardRef(({className:e,...t},r)=>{let{open:a,onOpenChange:n}=Fo();return a?jsxRuntime.jsx("div",{ref:r,className:i("fixed inset-0 z-50 bg-black/80",a?"animate-in fade-in-0":"animate-out fade-out-0",e),onClick:()=>n(false),"aria-hidden":"true",...t}):null});Sd.displayName="SheetOverlay";var Hd=classVarianceAuthority.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition-transform duration-300 ease-in-out",{variants:{side:{top:"inset-x-0 top-0 border-b",bottom:"inset-x-0 bottom-0 border-t",left:"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"}},defaultVariants:{side:"right"}}),VR=(e,t)=>({top:t?"animate-in slide-in-from-top":"animate-out slide-out-to-top",bottom:t?"animate-in slide-in-from-bottom":"animate-out slide-out-to-bottom",left:t?"animate-in slide-in-from-left":"animate-out slide-out-to-left",right:t?"animate-in slide-in-from-right":"animate-out slide-out-to-right"})[e],Go=$__namespace.forwardRef(({side:e="right",className:t,children:r,hideCloseButton:a,onEscapeKeyDown:n,onInteractOutside:o,...s},l)=>{let{open:c,onOpenChange:d}=Fo(),[u,m]=$__namespace.useState(false),[,f]=$__namespace.useState(false);return $__namespace.useEffect(()=>{if(c)m(true),f(true),document.body.style.overflow="hidden";else {f(true);let p=setTimeout(()=>{m(false),f(false),document.body.style.overflow="";},300);return ()=>clearTimeout(p)}return ()=>{document.body.style.overflow="";}},[c]),$__namespace.useEffect(()=>{let p=b=>{b.key==="Escape"&&c&&(n?.(),d(false));};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[c,d,n]),!u&&!c?null:jsxRuntime.jsxs(Di,{children:[jsxRuntime.jsx("div",{className:i("fixed inset-0 z-50 bg-black/80 transition-opacity duration-300",c?"opacity-100":"opacity-0"),onClick:()=>{o?.(),d(false);},"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:l,role:"dialog","aria-modal":"true",className:i(Hd({side:e}),VR(e,c),t),...s,children:[!a&&jsxRuntime.jsxs("button",{type:"button",onClick:()=>d(false),className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none cursor-pointer",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]})});Go.displayName="SheetContent";var Vd=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t});Vd.displayName="SheetHeader";var Id=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Id.displayName="SheetFooter";var Ad=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h2",{ref:r,className:i("text-lg font-semibold text-foreground",e),...t}));Ad.displayName="SheetTitle";var zd=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:i("text-sm text-muted-foreground",e),...t}));zd.displayName="SheetDescription";var zR=({theme:e="system",...t})=>jsxRuntime.jsx(sonner.Toaster,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t});var Bd=$__namespace.createContext(null),Bn=()=>{let e=$__namespace.useContext(Bd);if(!e)throw new Error("ContextMenu components must be used within a ContextMenu");return e},Si=$__namespace.createContext(null),Od=$__namespace.createContext(null),Fd=({children:e,onOpenChange:t})=>{let[r,a]=$__namespace.useState(false),[n,o]=$__namespace.useState({x:0,y:0}),s=$__namespace.useId(),l=$__namespace.useCallback(c=>{a(c),t?.(c);},[t]);return jsxRuntime.jsx(Bd.Provider,{value:{open:r,onOpenChange:l,position:n,setPosition:o,contentId:s},children:e})};Fd.displayName="ContextMenu";var Kd=$__namespace.forwardRef(({asChild:e,children:t,onContextMenu:r,...a},n)=>{let{onOpenChange:o,setPosition:s}=Bn(),l=c=>{c.preventDefault(),s({x:c.clientX,y:c.clientY}),o(true);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:n,onContextMenu:c=>{c.preventDefault(),t.props.onContextMenu?.(c),s({x:c.clientX,y:c.clientY}),o(true);},...a}):jsxRuntime.jsx("div",{ref:n,onContextMenu:c=>{r?.(c),l(c);},...a,children:t})});Kd.displayName="ContextMenuTrigger";var Gd=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"group",className:e,...t}));Gd.displayName="ContextMenuGroup";var $d=({children:e,container:t})=>{let[r,a]=$__namespace.useState(false);return $__namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};$d.displayName="ContextMenuPortal";var _d=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=$__namespace.useState(r),s=t!==void 0,l=s?t:n,c=$__namespace.useRef(null),d=$__namespace.useCallback(u=>{s||o(u),a?.(u);},[s,a]);return jsxRuntime.jsx(Si.Provider,{value:{open:l,onOpenChange:d,triggerRef:c},children:e})};_d.displayName="ContextMenuSub";var jd=$__namespace.forwardRef(({value:e="",onValueChange:t,className:r,...a},n)=>jsxRuntime.jsx(Od.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:n,role:"group",className:r,...a})}));jd.displayName="ContextMenuRadioGroup";var Wd=$__namespace.forwardRef(({className:e,onInteractOutside:t,onEscapeKeyDown:r,children:a,...n},o)=>{let{open:s,onOpenChange:l,position:c,contentId:d}=Bn(),[u,m]=$__namespace.useState(false),[f,p]=$__namespace.useState(c),b=$__namespace.useRef(null);return $__namespace.useEffect(()=>{m(true);},[]),$__namespace.useEffect(()=>{if(!s||!b.current){p(c);return}let g=b.current.getBoundingClientRect(),{x:v,y}=c;v+g.width>window.innerWidth&&(v=window.innerWidth-g.width-8),y+g.height>window.innerHeight&&(y=window.innerHeight-g.height-8),p({x:v,y});},[s,c]),$__namespace.useEffect(()=>{if(!s)return;let x=g=>{let v=g.target;b.current&&!b.current.contains(v)&&(t?.(),l(false));};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[s,l,t]),$__namespace.useEffect(()=>{if(!s)return;let x=g=>{g.key==="Escape"&&(r?.(),l(false));};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[s,l,r]),!u||!s?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:x=>{b.current=x,typeof o=="function"?o(x):o&&(o.current=x);},id:d,role:"menu","aria-orientation":"vertical","data-state":s?"open":"closed",className:i("fixed z-50 max-h-[calc(100vh-2rem)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 p-1 text-zinc-950 dark:text-zinc-50 shadow-md","animate-in fade-in-0 zoom-in-95",e),style:{top:f.y,left:f.x},...n,children:a}),document.body)});Wd.displayName="ContextMenuContent";var Yd=$__namespace.forwardRef(({className:e,inset:t,children:r,onMouseEnter:a,onMouseLeave:n,...o},s)=>{let l=$__namespace.useContext(Si);if(!l)throw new Error("ContextMenuSubTrigger must be used within ContextMenuSub");let{open:c,onOpenChange:d,triggerRef:u}=l,m=p=>{a?.(p),d(true);},f=p=>{n?.(p),d(false);};return jsxRuntime.jsxs("div",{ref:p=>{u.current=p,typeof s=="function"?s(p):s&&(s.current=p);},role:"menuitem","aria-haspopup":"menu","aria-expanded":c,"data-state":c?"open":"closed",className:i("flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[state=open]:bg-zinc-100 dark:data-[state=open]:bg-zinc-800",t&&"pl-8",e),onMouseEnter:m,onMouseLeave:f,...o,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});Yd.displayName="ContextMenuSubTrigger";var Ud=$__namespace.forwardRef(({className:e,sideOffset:t=2,onMouseEnter:r,onMouseLeave:a,...n},o)=>{let s=$__namespace.useContext(Si);if(!s)throw new Error("ContextMenuSubContent must be used within ContextMenuSub");let{open:l,onOpenChange:c,triggerRef:d}=s,[u,m]=$__namespace.useState({top:0,left:0}),[f,p]=$__namespace.useState(false),b=$__namespace.useRef(null);$__namespace.useEffect(()=>{p(true);},[]),$__namespace.useEffect(()=>{if(!l||!d.current||!b.current)return;(()=>{if(!d.current||!b.current)return;let y=d.current.getBoundingClientRect(),w=b.current.getBoundingClientRect(),h=y.top,C=y.right+t;C+w.width>window.innerWidth&&(C=y.left-w.width-t),m({top:h,left:C});})();},[l,t,d]);let x=v=>{r?.(v),c(true);},g=v=>{a?.(v),c(false);};return !f||!l?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:v=>{b.current=v,typeof o=="function"?o(v):o&&(o.current=v);},role:"menu","data-state":l?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 p-1 text-zinc-950 dark:text-zinc-50 shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",e),style:{top:u.top,left:u.left},onMouseEnter:x,onMouseLeave:g,...n}),document.body)});Ud.displayName="ContextMenuSubContent";var Xd=$__namespace.forwardRef(({className:e,inset:t,disabled:r,onSelect:a,onClick:n,...o},s)=>{let{onOpenChange:l}=Bn(),c=d=>{if(r){d.preventDefault();return}n?.(d),a?.(),l(false);};return jsxRuntime.jsx("div",{ref:s,role:"menuitem",tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,className:i("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",t&&"pl-8",e),onClick:c,...o})});Xd.displayName="ContextMenuItem";var qd=$__namespace.forwardRef(({className:e,children:t,checked:r=false,onCheckedChange:a,disabled:n,onClick:o,...s},l)=>{let{onOpenChange:c}=Bn(),d=u=>{if(n){u.preventDefault();return}o?.(u),a?.(!r),c(false);};return jsxRuntime.jsxs("div",{ref:l,role:"menuitemcheckbox","aria-checked":r,tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-state":r?"checked":"unchecked",className:i("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",e),onClick:d,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});qd.displayName="ContextMenuCheckboxItem";var Zd=$__namespace.forwardRef(({className:e,children:t,value:r,disabled:a,onClick:n,...o},s)=>{let{onOpenChange:l}=Bn(),c=$__namespace.useContext(Od),d=c?.value===r,u=m=>{if(a){m.preventDefault();return}n?.(m),c?.onValueChange(r),l(false);};return jsxRuntime.jsxs("div",{ref:s,role:"menuitemradio","aria-checked":d,tabIndex:a?-1:0,"aria-disabled":a,"data-disabled":a?"":void 0,"data-state":d?"checked":"unchecked",className:i("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",e),onClick:u,...o,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-4 w-4 fill-current"})}),t]})});Zd.displayName="ContextMenuRadioItem";var Jd=$__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...r}));Jd.displayName="ContextMenuLabel";var Qd=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("-mx-1 my-1 h-px bg-border",e),...t}));Qd.displayName="ContextMenuSeparator";var eu=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});eu.displayName="ContextMenuShortcut";var tu=$__namespace.createContext(null),$R=()=>{let e=$__namespace.useContext(tu);if(!e)throw new Error("RadioGroupItem must be used within a RadioGroup");return e},ru=$__namespace.forwardRef(({className:e,value:t,defaultValue:r="",onValueChange:a,name:n,disabled:o,required:s,orientation:l="vertical",children:c,...d},u)=>{let[m,f]=$__namespace.useState(r),p=t!==void 0,b=p?t:m,x=$__namespace.useId(),g=v=>{p||f(v),a?.(v);};return jsxRuntime.jsx("div",{ref:u,role:"radiogroup","aria-required":s,"aria-orientation":l,className:i(l==="vertical"?"grid gap-2":"flex gap-4",e),...d,children:jsxRuntime.jsx(tu.Provider,{value:{name:n||x,value:b,onValueChange:g,disabled:o,required:s},children:c})})});ru.displayName="RadioGroup";var au=$__namespace.forwardRef(({className:e,value:t,disabled:r,...a},n)=>{let o=$R(),s=o.value===t,l=r||o.disabled;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":s,disabled:l,ref:n,className:i("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",e),onClick:()=>o.onValueChange(t),...a,children:s&&jsxRuntime.jsx("span",{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}),jsxRuntime.jsx("input",{type:"radio","aria-hidden":true,tabIndex:-1,name:o.name,value:t,checked:s,required:o.required,disabled:l,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]})});au.displayName="RadioGroupItem";var jo=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",{variants:{variant:{solid:"bg-transparent hover:bg-muted data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",outline:"border border-input bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",ghost:"bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",soft:"bg-transparent hover:bg-primary/10 data-[state=on]:bg-primary/15 data-[state=on]:text-primary",surface:"bg-muted/50 hover:bg-muted data-[state=on]:bg-muted data-[state=on]:text-foreground"},size:{sm:"h-9 px-2.5 min-w-9",md:"h-10 px-3 min-w-10",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"solid",size:"md"}}),nu=$__namespace.forwardRef(({className:e,variant:t,size:r,pressed:a,defaultPressed:n=false,onPressedChange:o,disabled:s,onKeyDown:l,...c},d)=>{let[u,m]=$__namespace.useState(n),f=a!==void 0,p=f?a:u,b=()=>{if(s)return;let g=!p;f||m(g),o?.(g);},x=g=>{g.key==="Enter"&&g.preventDefault(),l?.(g);};return jsxRuntime.jsx("button",{type:"button","aria-pressed":p,"data-state":p?"on":"off",disabled:s,ref:d,className:i(jo({variant:t,size:r,className:e})),onClick:b,onKeyDown:x,...c})});nu.displayName="Toggle";var ou=$__namespace.createContext(null),UR=()=>{let e=$__namespace.useContext(ou);if(!e)throw new Error("ToggleGroupItem must be used within a ToggleGroup");return e},su=$__namespace.forwardRef(({className:e,variant:t,size:r,type:a,value:n,defaultValue:o,onValueChange:s,disabled:l,children:c,...d},u)=>{let[m,f]=$__namespace.useState(()=>a==="single"?o?[o]:[]:o||[]),p=n!==void 0,b=p?a==="single"?n?[n]:[]:n:m,x=g=>{if(a==="single"){let v=b.includes(g)?[]:[g];p||f(v),s?.(v[0]||"");}else {let v=b.includes(g)?b.filter(y=>y!==g):[...b,g];p||f(v),s?.(v);}};return jsxRuntime.jsx("div",{ref:u,role:"group",className:i("flex items-center justify-center gap-1",e),...d,children:jsxRuntime.jsx(ou.Provider,{value:{type:a,variant:t,size:r,value:b,onValueChange:x,disabled:l},children:c})})});su.displayName="ToggleGroup";var iu=$__namespace.forwardRef(({className:e,children:t,variant:r,size:a,value:n,disabled:o,...s},l)=>{let c=UR(),d=c.value.includes(n),u=o||c.disabled;return jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":d,"aria-pressed":d,"data-state":d?"on":"off",disabled:u,ref:l,className:i(jo({variant:c.variant||r,size:c.size||a}),e),onClick:()=>c.onValueChange(n),...s,children:t})});iu.displayName="ToggleGroupItem";var Yo=$__namespace.forwardRef(({className:e,value:t,defaultValue:r=[0],onValueChange:a,onValueCommit:n,min:o=0,max:s=100,step:l=1,disabled:c=false,orientation:d="horizontal",name:u,...m},f)=>{let[p,b]=$__namespace.useState(r),x=t!==void 0,g=x?t:p,v=$__namespace.useRef(null),[y,w]=$__namespace.useState(false),[h,C]=$__namespace.useState(null),R=(H,S)=>{if(!v.current)return g[0];let D=v.current.getBoundingClientRect(),V;d==="horizontal"?V=(H-D.left)/D.width:V=1-(S-D.top)/D.height,V=Math.max(0,Math.min(1,V));let z=o+V*(s-o),G=Math.round(z/l)*l;return Math.max(o,Math.min(s,G))},M=(H,S)=>{let D=[...g];D[S]=H,S>0&&H<g[S-1]&&(D[S]=g[S-1]),S<g.length-1&&H>g[S+1]&&(D[S]=g[S+1]),x||b(D),a?.(D);},T=(H,S)=>{c||(H.preventDefault(),w(true),C(S),H.target.setPointerCapture(H.pointerId));},E=H=>{if(!y||h===null||c)return;let S=R(H.clientX,H.clientY);M(S,h);},N=()=>{y&&(w(false),C(null),n?.(g));},P=H=>{if(c)return;let S=R(H.clientX,H.clientY),D=0,V=Math.abs(g[0]-S);for(let z=1;z<g.length;z++){let G=Math.abs(g[z]-S);G<V&&(V=G,D=z);}M(S,D),n?.([...g.slice(0,D),S,...g.slice(D+1)]);},k=(H,S)=>{if(c)return;let D=g[S];switch(H.key){case "ArrowRight":case "ArrowUp":H.preventDefault(),D=Math.min(s,g[S]+l);break;case "ArrowLeft":case "ArrowDown":H.preventDefault(),D=Math.max(o,g[S]-l);break;case "Home":H.preventDefault(),D=o;break;case "End":H.preventDefault(),D=s;break;default:return}M(D,S),n?.([...g.slice(0,S),D,...g.slice(S+1)]);},L=H=>(H-o)/(s-o)*100;return jsxRuntime.jsxs("div",{ref:f,className:i("relative flex touch-none select-none items-center",d==="vertical"&&"flex-col h-full w-5",c&&"opacity-50 pointer-events-none",e),...m,children:[jsxRuntime.jsx("div",{ref:v,className:i("relative grow overflow-hidden rounded-full bg-secondary",d==="horizontal"?"h-2 w-full":"h-full w-2"),onClick:P,children:jsxRuntime.jsx("div",{className:"absolute bg-primary",style:d==="horizontal"?{left:g.length>1?`${L(g[0])}%`:0,right:`${100-L(g[g.length-1])}%`,top:0,bottom:0}:{bottom:g.length>1?`${L(g[0])}%`:0,top:`${100-L(g[g.length-1])}%`,left:0,right:0}})}),g.map((H,S)=>jsxRuntime.jsx("div",{role:"slider",tabIndex:c?-1:0,"aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":H,"aria-orientation":d,"aria-disabled":c,className:i("absolute block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 cursor-grab",y&&h===S&&"cursor-grabbing"),style:d==="horizontal"?{left:`calc(${L(H)}% - 10px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${L(H)}% - 10px)`,left:"50%",transform:"translateX(-50%)"},onPointerDown:D=>T(D,S),onPointerMove:E,onPointerUp:N,onPointerCancel:N,onKeyDown:D=>k(D,S)},S)),u&&g.map((H,S)=>jsxRuntime.jsx("input",{type:"hidden",name:g.length>1?`${u}[${S}]`:u,value:H},S))]})});Yo.displayName="Slider";var lu=$__namespace.createContext(null),cu=()=>{let e=$__namespace.useContext(lu);if(!e)throw new Error("AccordionItem must be used within an Accordion");return e},Ii=$__namespace.createContext(null),du=()=>{let e=$__namespace.useContext(Ii);if(!e)throw new Error("AccordionTrigger/AccordionContent must be used within an AccordionItem");return e},uu=$__namespace.forwardRef(({className:e,type:t="multiple",value:r,defaultValue:a,onValueChange:n,collapsible:o=true,disabled:s,children:l,...c},d)=>{let[u,m]=$__namespace.useState(()=>t==="single"?a?[a]:[]:a||[]),f=$__namespace.useRef(new Map),p=$__namespace.useRef([]),b=r!==void 0,x=b?t==="single"?r?[r]:[]:r:u,g=h=>{if(t==="single"){let R=x.includes(h)&&o?[]:[h];b||m(R),n?.(R[0]||"");}else {let C=x.includes(h)?x.filter(R=>R!==h):[...x,h];b||m(C),n?.(C);}},v=$__namespace.useCallback((h,C)=>{f.current.set(h,C),p.current.includes(h)||p.current.push(h);},[]),y=$__namespace.useCallback(h=>{f.current.delete(h),p.current=p.current.filter(C=>C!==h);},[]),w=$__namespace.useCallback(h=>{let C=p.current;if(C.length===0)return;let R=document.activeElement,M;f.current.forEach((k,L)=>{k===R&&(M=L);});let T=M?C.indexOf(M):-1,E;switch(h){case "first":E=0;break;case "last":E=C.length-1;break;case "next":E=T===-1?0:(T+1)%C.length;break;case "prev":E=T===-1?C.length-1:(T-1+C.length)%C.length;break}let N=C[E];f.current.get(N)?.focus();},[]);return jsxRuntime.jsx(lu.Provider,{value:{type:t,value:x,onValueChange:g,collapsible:o,disabled:s,registerTrigger:v,unregisterTrigger:y,focusTrigger:w},children:jsxRuntime.jsx("div",{ref:d,"data-orientation":"vertical",className:i("w-full",e),...c,children:l})})});uu.displayName="Accordion";var mu=$__namespace.forwardRef(({className:e,value:t,disabled:r,title:a,subtitle:n,startContent:o,children:s,...l},c)=>{let d=cu(),u=d.value.includes(t),m=r||d.disabled||false,f=$__namespace.useId(),p=$__namespace.useId();return a!==void 0?jsxRuntime.jsx(Ii.Provider,{value:{value:t,isOpen:u,isDisabled:m,contentId:f,triggerId:p},children:jsxRuntime.jsxs("div",{ref:c,"data-state":u?"open":"closed","data-disabled":m?"":void 0,className:i("border-b",m&&"opacity-50",e),...l,children:[jsxRuntime.jsx(pu,{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[o,jsxRuntime.jsxs("div",{className:"flex flex-col items-start",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:a}),n&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:n})]})]})}),jsxRuntime.jsx(fu,{children:s})]})}):jsxRuntime.jsx(Ii.Provider,{value:{value:t,isOpen:u,isDisabled:m,contentId:f,triggerId:p},children:jsxRuntime.jsx("div",{ref:c,"data-state":u?"open":"closed","data-disabled":m?"":void 0,className:i("border-b",m&&"opacity-50",e),...l,children:s})})});mu.displayName="AccordionItem";var pu=$__namespace.forwardRef(({className:e,children:t,onClick:r,onKeyDown:a,...n},o)=>{let s=cu(),{value:l,isOpen:c,isDisabled:d,contentId:u,triggerId:m}=du(),f=$__namespace.useRef(null);$__namespace.useEffect(()=>{let b=f.current;return b&&!d&&s.registerTrigger(l,b),()=>{s.unregisterTrigger(l);}},[l,d,s]);let p=b=>{switch(a?.(b),b.key){case "ArrowDown":b.preventDefault(),s.focusTrigger("next");break;case "ArrowUp":b.preventDefault(),s.focusTrigger("prev");break;case "Home":b.preventDefault(),s.focusTrigger("first");break;case "End":b.preventDefault(),s.focusTrigger("last");break}};return jsxRuntime.jsx("h3",{className:"flex",children:jsxRuntime.jsxs("button",{type:"button",ref:b=>{f.current=b,typeof o=="function"?o(b):o&&(o.current=b);},id:m,"aria-controls":u,"aria-expanded":c,disabled:d,"data-state":c?"open":"closed",className:i("flex flex-1 items-center justify-between py-4 font-medium transition-all text-left cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),onClick:b=>{r?.(b),s.onValueChange(l);},onKeyDown:p,...n,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});pu.displayName="AccordionTrigger";var fu=$__namespace.forwardRef(({className:e,children:t,style:r,...a},n)=>{let{isOpen:o,contentId:s,triggerId:l,isDisabled:c}=du();return jsxRuntime.jsx("div",{ref:n,id:s,role:"region","aria-labelledby":l,"data-state":o?"open":"closed","data-disabled":c?"":void 0,className:i("grid transition-[grid-template-rows] duration-200 ease-out",o?"grid-rows-[1fr]":"grid-rows-[0fr]",e),style:r,...a,children:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:"pb-4 pt-0 text-sm",children:t})})})});fu.displayName="AccordionContent";var bu=$__namespace.createContext(null),vu=()=>{let e=$__namespace.useContext(bu);if(!e)throw new Error("Collapsible components must be used within a Collapsible");return e},hu=$__namespace.forwardRef(({className:e,open:t,defaultOpen:r=false,onOpenChange:a,disabled:n,title:o,children:s,...l},c)=>{let[d,u]=$__namespace.useState(r),m=t!==void 0,f=m?t:d,p=$__namespace.useId(),b=$__namespace.useId(),x=g=>{n||(m||u(g),a?.(g));};return jsxRuntime.jsx(bu.Provider,{value:{open:f,onOpenChange:x,disabled:n,contentId:p,triggerId:b},children:jsxRuntime.jsxs("div",{ref:c,"data-state":f?"open":"closed","data-disabled":n?"":void 0,className:i("space-y-2",e),...l,children:[o&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between space-x-4 px-4",children:[jsxRuntime.jsx("h4",{className:"text-sm font-semibold",children:o}),jsxRuntime.jsx(Ai,{})]}),s]})})});hu.displayName="Collapsible";var Ai=$__namespace.forwardRef(({className:e,children:t,onClick:r,...a},n)=>{let{open:o,onOpenChange:s,disabled:l,contentId:c,triggerId:d}=vu();return jsxRuntime.jsx("button",{ref:n,type:"button",id:d,"aria-controls":c,"aria-expanded":o,disabled:l,"data-state":o?"open":"closed","data-disabled":l?"":void 0,className:i("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",e),onClick:u=>{r?.(u),s(!o);},...a,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})})});Ai.displayName="CollapsibleTrigger";var xu=$__namespace.forwardRef(({className:e,children:t,style:r,...a},n)=>{let{open:o,contentId:s,triggerId:l,disabled:c}=vu(),d=$__namespace.useRef(null),[u,m]=$__namespace.useState(void 0),[f,p]=$__namespace.useState(false),[b,x]=$__namespace.useState(o);$__namespace.useEffect(()=>{o?(x(true),p(true),requestAnimationFrame(()=>{d.current&&m(d.current.scrollHeight);})):(p(true),m(0));},[o]);let g=()=>{p(false),o||x(false),m(void 0);};return b?jsxRuntime.jsx("div",{ref:n,id:s,role:"region","aria-labelledby":l,"data-state":o?"open":"closed","data-disabled":c?"":void 0,className:i("overflow-hidden",e),style:{...r,height:f?u!==void 0?u:"auto":o?"auto":0,transition:f?"height 0.25s ease-out, opacity 0.25s ease-out":void 0,opacity:o?1:0},onTransitionEnd:g,...a,children:jsxRuntime.jsx("div",{ref:d,children:t})}):null});xu.displayName="CollapsibleContent";var qo=$__namespace.forwardRef(({className:e,value:t=0,max:r=100,label:a,showPercentage:n=false,formatPercentage:o=c=>`${Math.round(c)}%`,...s},l)=>{let c=Math.min(Math.max(t/r*100,0),100);return jsxRuntime.jsxs("div",{ref:l,className:"w-full",children:[(a||n)&&jsxRuntime.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[a&&jsxRuntime.jsx("span",{className:"text-muted-foreground",children:a}),n&&jsxRuntime.jsx("span",{className:i("text-muted-foreground",!a&&"ml-auto"),children:o(c)})]}),jsxRuntime.jsx("div",{role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":r,"aria-label":typeof a=="string"?a:void 0,className:i("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...s,children:jsxRuntime.jsx("div",{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-c}%)`}})})]})});qo.displayName="Progress";var Cu=$__namespace.createContext(null),Nu=()=>{let e=$__namespace.useContext(Cu);if(!e)throw new Error("HoverCard components must be used within a HoverCard");return e},Mu=({children:e,open:t,defaultOpen:r=false,onOpenChange:a,openDelay:n=700,closeDelay:o=300,closeOnScroll:s=true})=>{let[l,c]=$__namespace.useState(r),d=t!==void 0,u=d?t:l,m=$__namespace.useRef(null),f=$__namespace.useId(),p=$__namespace.useRef(null),b=$__namespace.useRef(null),x=$__namespace.useCallback(g=>{p.current&&clearTimeout(p.current),b.current&&clearTimeout(b.current),g?p.current=setTimeout(()=>{d||c(true),a?.(true);},n):b.current=setTimeout(()=>{d||c(false),a?.(false);},o);},[d,a,n,o]);return $__namespace.useEffect(()=>{if(!s||!u)return;let g=()=>{p.current&&clearTimeout(p.current),b.current&&clearTimeout(b.current),d||c(false),a?.(false);};return window.addEventListener("scroll",g,true),()=>window.removeEventListener("scroll",g,true)},[s,u,d,a]),$__namespace.useEffect(()=>()=>{p.current&&clearTimeout(p.current),b.current&&clearTimeout(b.current);},[]),jsxRuntime.jsx(Cu.Provider,{value:{open:u,onOpenChange:x,triggerRef:m,contentId:f},children:e})};Mu.displayName="HoverCard";var Tu=$__namespace.forwardRef(({asChild:e,children:t,onMouseEnter:r,onMouseLeave:a,onFocus:n,onBlur:o,...s},l)=>{let{onOpenChange:c,triggerRef:d}=Nu(),u=b=>{r?.(b),c(true);},m=b=>{a?.(b),c(false);},f=b=>{n?.(b),c(true);},p=b=>{o?.(b),c(false);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:b=>{d.current=b,typeof l=="function"?l(b):l&&(l.current=b);},onMouseEnter:u,onMouseLeave:m,onFocus:f,onBlur:p,...s}):jsxRuntime.jsx("a",{ref:b=>{d.current=b,typeof l=="function"?l(b):l&&(l.current=b);},onMouseEnter:u,onMouseLeave:m,onFocus:f,onBlur:p,...s,children:t})});Tu.displayName="HoverCardTrigger";var Pu=$__namespace.forwardRef(({className:e,side:t="bottom",sideOffset:r=4,align:a="center",alignOffset:n=0,onMouseEnter:o,onMouseLeave:s,children:l,...c},d)=>{let{open:u,onOpenChange:m,triggerRef:f,contentId:p}=Nu(),[b,x]=$__namespace.useState({top:0,left:0}),[g,v]=$__namespace.useState(false),y=$__namespace.useRef(null);$__namespace.useEffect(()=>{v(true);},[]),$__namespace.useEffect(()=>{if(!u||!f.current||!y.current)return;(()=>{if(!f.current||!y.current)return;let M=f.current.getBoundingClientRect(),T=y.current.getBoundingClientRect(),E=0,N=0;switch(t){case "top":E=M.top-T.height-r;break;case "bottom":E=M.bottom+r;break;case "left":N=M.left-T.width-r;break;case "right":N=M.right+r;break}if(t==="top"||t==="bottom")switch(a){case "start":N=M.left+n;break;case "center":N=M.left+M.width/2-T.width/2;break;case "end":N=M.right-T.width-n;break}else switch(a){case "start":E=M.top+n;break;case "center":E=M.top+M.height/2-T.height/2;break;case "end":E=M.bottom-T.height-n;break}x({top:E,left:N});})();},[u,t,r,a,n,f]);let w=R=>{o?.(R),m(true);},h=R=>{s?.(R),m(false);};if(!g||!u)return null;let C={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return $o__namespace.createPortal(jsxRuntime.jsx("div",{ref:R=>{y.current=R,typeof d=="function"?d(R):d&&(d.current=R);},id:p,"data-state":u?"open":"closed","data-side":t,className:i("fixed z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",C,e),style:{top:b.top,left:b.left},onMouseEnter:w,onMouseLeave:h,...c,children:l}),document.body)});Pu.displayName="HoverCardContent";var ku=$__namespace.createContext({size:"md",variant:"default",radius:"md"}),Jo=()=>$__namespace.useContext(ku);classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""},variant:{default:"",bordered:"",filled:""},radius:{none:"",sm:"",md:"",lg:"",full:""}},defaultVariants:{size:"md",variant:"default",radius:"md"}});var e0=classVarianceAuthority.cva("flex flex-wrap items-center break-words",{variants:{size:{sm:"gap-1 text-xs",md:"gap-1.5 text-sm sm:gap-2",lg:"gap-2 text-base sm:gap-3"},variant:{default:"text-muted-foreground",bordered:"text-muted-foreground px-3 py-1.5 border",filled:"text-muted-foreground bg-muted px-3 py-1.5"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",variant:"default",radius:"md"}}),t0=classVarianceAuthority.cva("",{variants:{size:{sm:"[&>svg]:h-3 [&>svg]:w-3",md:"[&>svg]:h-3.5 [&>svg]:w-3.5",lg:"[&>svg]:h-4 [&>svg]:w-4"}},defaultVariants:{size:"md"}}),r0=classVarianceAuthority.cva("flex items-center justify-center",{variants:{size:{sm:"h-6 w-6 [&>svg]:h-3 [&>svg]:w-3",md:"h-8 w-8 [&>svg]:h-4 [&>svg]:w-4",lg:"h-10 w-10 [&>svg]:h-5 [&>svg]:w-5"}},defaultVariants:{size:"md"}}),Eu=$__namespace.forwardRef(({size:e="md",variant:t="default",radius:r="md",children:a,...n},o)=>jsxRuntime.jsx(ku.Provider,{value:{size:e,variant:t,radius:r},children:jsxRuntime.jsx("nav",{ref:o,"aria-label":"breadcrumb",...n,children:a})}));Eu.displayName="Breadcrumb";var Lu=$__namespace.forwardRef(({className:e,...t},r)=>{let{size:a,variant:n,radius:o}=Jo();return jsxRuntime.jsx("ol",{ref:r,className:i(e0({size:a,variant:n,radius:n==="default"?void 0:o}),e),...t})});Lu.displayName="BreadcrumbList";var Du=$__namespace.forwardRef(({className:e,...t},r)=>{let{size:a}=Jo();return jsxRuntime.jsx("li",{ref:r,className:i("inline-flex items-center",a==="sm"&&"gap-1",a==="md"&&"gap-1.5",a==="lg"&&"gap-2",e),...t})});Du.displayName="BreadcrumbItem";var Su=$__namespace.forwardRef(({asChild:e,className:t,...r},a)=>jsxRuntime.jsx(e?No:"a",{ref:a,className:i("transition-colors hover:text-foreground cursor-pointer",t),...r}));Su.displayName="BreadcrumbLink";var Hu=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-medium text-foreground",e),...t}));Hu.displayName="BreadcrumbPage";var Vu=({children:e,className:t,...r})=>{let{size:a}=Jo();return jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:i(t0({size:a}),"text-muted-foreground/60",t),...r,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})})};Vu.displayName="BreadcrumbSeparator";var Iu=({className:e,...t})=>{let{size:r}=Jo();return jsxRuntime.jsxs("span",{role:"presentation","aria-hidden":"true",className:i(r0({size:r}),e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]})};Iu.displayName="BreadcrumbEllipsis";var Bu=$__namespace.forwardRef(({ratio:e=1,className:t,style:r,children:a,...n},o)=>jsxRuntime.jsx("div",{ref:o,className:i("relative w-full",t),style:{...r,paddingBottom:`${100/e}%`},...n,children:jsxRuntime.jsx("div",{className:"absolute inset-0",children:a})}));Bu.displayName="AspectRatio";var Ku=$__namespace.createContext(null),Bi=()=>{let e=$__namespace.useContext(Ku);if(!e)throw new Error("NavigationMenu components must be used within a NavigationMenu");return e},Gu=$__namespace.createContext(null),$u=()=>{let e=$__namespace.useContext(Gu);if(!e)throw new Error("NavigationMenuItem components must be used within a NavigationMenuItem");return e},_u=$__namespace.forwardRef(({className:e,orientation:t="horizontal",children:r,...a},n)=>{let[o,s]=$__namespace.useState(null);return jsxRuntime.jsx(Ku.Provider,{value:{activeItem:o,setActiveItem:s,orientation:t},children:jsxRuntime.jsxs("nav",{ref:n,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[r,jsxRuntime.jsx(Oi,{})]})})});_u.displayName="NavigationMenu";var ju=$__namespace.forwardRef(({className:e,...t},r)=>{let{orientation:a}=Bi();return jsxRuntime.jsx("ul",{ref:r,className:i("group flex flex-1 list-none items-center justify-center gap-1",a==="vertical"&&"flex-col items-start",e),...t})});ju.displayName="NavigationMenuList";var Wu=$__namespace.forwardRef(({className:e,children:t,...r},a)=>{let{activeItem:n,setActiveItem:o}=Bi(),s=$__namespace.useId(),l=$__namespace.useRef(null),c=n===s,d=$__namespace.useCallback(u=>{o(u?s:null);},[s,o]);return jsxRuntime.jsx(Gu.Provider,{value:{itemId:s,triggerRef:l,open:c,onOpenChange:d},children:jsxRuntime.jsx("li",{ref:a,className:i("relative",e),...r,children:t})})});Wu.displayName="NavigationMenuItem";var Yu=classVarianceAuthority.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50"),Uu=$__namespace.forwardRef(({className:e,children:t,onMouseEnter:r,onClick:a,...n},o)=>{let{triggerRef:s,open:l,onOpenChange:c}=$u(),d=m=>{r?.(m),c(true);},u=m=>{a?.(m),c(!l);};return jsxRuntime.jsxs("button",{ref:m=>{s.current=m,typeof o=="function"?o(m):o&&(o.current=m);},type:"button","data-state":l?"open":"closed",className:i(Yu(),"group",e),onMouseEnter:d,onClick:u,"aria-expanded":l,...n,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})});Uu.displayName="NavigationMenuTrigger";var Xu=$__namespace.forwardRef(({className:e,onMouseEnter:t,onMouseLeave:r,...a},n)=>{let{open:o,onOpenChange:s,triggerRef:l}=$u(),c=$__namespace.useRef(null),[d,u]=$__namespace.useState({top:0,left:0});$__namespace.useEffect(()=>{if(!o||!l.current)return;let p=()=>{if(!l.current)return;let b=l.current.getBoundingClientRect();u({top:b.bottom+4,left:b.left});};return p(),window.addEventListener("resize",p),window.addEventListener("scroll",p,true),()=>{window.removeEventListener("resize",p),window.removeEventListener("scroll",p,true);}},[o,l]);let m=p=>{t?.(p),s(true);},f=p=>{r?.(p),s(false);};return o?$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:p=>{c.current=p,typeof n=="function"?n(p):n&&(n.current=p);},"data-state":o?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-4 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",e),style:{top:d.top,left:d.left},onMouseEnter:m,onMouseLeave:f,...a}),document.body):null});Xu.displayName="NavigationMenuContent";var qu=classVarianceAuthority.cva("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground"),Zu=$__namespace.forwardRef(({className:e,active:t,...r},a)=>jsxRuntime.jsx("a",{ref:a,className:i(qu(),t&&"bg-accent text-accent-foreground",e),...r}));Zu.displayName="NavigationMenuLink";var Oi=$__namespace.forwardRef((e,t)=>null);Oi.displayName="NavigationMenuViewport";var Ju=$__namespace.forwardRef(({className:e,...t},r)=>{let{activeItem:a}=Bi();return a?jsxRuntime.jsx("div",{ref:r,className:i("top-full z-[1] flex h-2.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:jsxRuntime.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}):null});Ju.displayName="NavigationMenuIndicator";var rm=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-muted",solid:"bg-muted hover:bg-muted/80",ghost:"hover:bg-accent hover:text-accent-foreground",light:"hover:bg-muted/50",outline:"border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),gr=$__namespace.forwardRef(({className:e,variant:t,size:r,iconSize:a,...n},o)=>{let l=a??{sm:14,md:16,lg:20}[r??"md"];return jsxRuntime.jsx("button",{ref:o,type:"button",className:i(rm({variant:t,size:r}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:l,height:l}})})});gr.displayName="CloseButton";var Qo=$__namespace.createContext(null);function p0(){let e=$__namespace.useContext(Qo);if(!e)throw new Error("useDrawer must be used within a DrawerProvider.");return e}function qr(){return $__namespace.useContext(Qo)}var f0="16rem",g0="18rem",b0="3rem",v0="b",h0={xs:"256px",sm:"320px",md:"384px",lg:"448px",xl:"512px","2xl":"576px","3xl":"672px","4xl":"768px","5xl":"896px",full:"100%"},x0={xs:"20vh",sm:"30vh",md:"40vh",lg:"50vh",xl:"60vh","2xl":"70vh","3xl":"75vh","4xl":"80vh","5xl":"90vh",full:"100vh"},Fi=$__namespace.forwardRef(({defaultOpen:e=false,open:t,onOpenChange:r,placement:a="left",size:n="md",backdrop:o="opaque",isDismissable:s=true,hideCloseButton:l=false,collapsible:c="offcanvas",mode:d,className:u,style:m,children:f,...p},b)=>{let x=d??"overlay",g=x==="overlay",[v,y]=$__namespace.useState(false),[w,h]=$__namespace.useState(false),[C,R]=$__namespace.useState(e),M=t??C,T=$__namespace.useCallback(k=>{let L=typeof k=="function"?k(M):k;r?r(L):R(L);},[r,M]);$__namespace.useEffect(()=>{let k=()=>{y(window.innerWidth<768);};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]);let E=$__namespace.useCallback(()=>g?T(k=>!k):v?h(k=>!k):T(k=>!k),[v,T,h,g]);$__namespace.useEffect(()=>{if(g)return;let k=L=>{L.key===v0&&(L.metaKey||L.ctrlKey)&&(L.preventDefault(),E());};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[E,g]);let N=M?"expanded":"collapsed",P=$__namespace.useMemo(()=>({placement:a,state:N,open:M,setOpen:T,isMobile:v,openMobile:w,setOpenMobile:h,toggleDrawer:E,collapsible:c,mode:x,size:n,backdrop:o,isDismissable:s,hideCloseButton:l}),[a,N,M,T,v,w,h,E,c,x,n,o,s,l]);return g?jsxRuntime.jsx(Qo.Provider,{value:P,children:jsxRuntime.jsx(vaul.Drawer.Root,{open:M,onOpenChange:T,direction:a,dismissible:s,children:f})}):jsxRuntime.jsx(Qo.Provider,{value:P,children:jsxRuntime.jsx(Gr,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:b,style:{"--drawer-width":f0,"--drawer-width-icon":b0,...m},className:i("group/drawer-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-muted/50",u),...p,children:f})})})});Fi.displayName="Drawer";var nm=$__namespace.forwardRef(({variant:e="default",embedded:t=false,className:r,children:a,...n},o)=>{let s=qr();if(!s)return jsxRuntime.jsx("div",{ref:o,className:i("flex h-full flex-col bg-background text-foreground",r),...n,children:a});let{placement:l,collapsible:c,isMobile:d,state:u,openMobile:m,setOpenMobile:f}=s;if(l==="bottom"||l==="top")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a});if(c==="none")return jsxRuntime.jsx("div",{ref:o,className:i("flex h-full w-[--drawer-width] flex-col bg-background text-foreground border-r",l==="right"&&"border-l border-r-0",r),...n,children:a});if(d&&!t)return jsxRuntime.jsx(y0,{open:m,onOpenChange:f,placement:l,children:a});if(t){let b=u==="collapsed",x=c==="offcanvas",g=c==="icon";return jsxRuntime.jsx("div",{ref:o,className:i("group peer text-foreground relative"),"data-state":u,"data-collapsible":b?c:"","data-variant":e,"data-placement":l,"data-embedded":"true",children:jsxRuntime.jsx("div",{className:i("flex h-full flex-col overflow-hidden transition-[width,opacity] duration-200 ease-out",x?b?"w-0 opacity-0":"w-[--drawer-width] opacity-100":g&&b?"w-[--drawer-width-icon]":"w-[--drawer-width]",r),...n,children:jsxRuntime.jsx("div",{"data-drawer":"drawer",className:i("flex h-full w-full flex-col bg-background transition-opacity duration-200",e==="floating"&&"overflow-hidden rounded-lg border shadow-sm",e==="inset"&&"overflow-hidden rounded-lg border",e==="default"&&l==="left"&&"border-r",e==="default"&&l==="right"&&"border-l"),children:a})})})}return jsxRuntime.jsxs("div",{ref:o,className:"group peer hidden md:block text-foreground","data-state":u,"data-collapsible":u==="collapsed"?c:"","data-variant":e,"data-placement":l,children:[jsxRuntime.jsx("div",{className:i("duration-200 relative h-svh w-[--drawer-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0",l==="right"&&"group-data-[placement=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--drawer-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--drawer-width-icon]")}),jsxRuntime.jsx("div",{className:i("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--drawer-width] transition-[left,right,width] ease-linear md:flex",l==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--drawer-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--drawer-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--drawer-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--drawer-width-icon] group-data-[placement=left]:border-r group-data-[placement=right]:border-l",r),...n,children:jsxRuntime.jsx("div",{"data-drawer":"drawer",className:i("flex h-full w-full flex-col bg-background",e==="floating"&&"overflow-hidden rounded-lg border shadow-sm",e==="inset"&&"overflow-hidden rounded-lg border"),children:a})})]})});nm.displayName="DrawerSidebar";var y0=({children:e,open:t,onOpenChange:r,placement:a})=>{let[n,o]=$__namespace.useState(false);return $__namespace.useEffect(()=>{o(true);},[]),$__namespace.useEffect(()=>(t&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[t]),!n||!t?null:$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 animate-in fade-in-0",onClick:()=>r(false)}),jsxRuntime.jsx("div",{className:i("fixed z-50 bg-background p-0 text-foreground shadow-lg","animate-in",a==="left"&&"inset-y-0 left-0 h-full w-[--drawer-width] slide-in-from-left",a==="right"&&"inset-y-0 right-0 h-full w-[--drawer-width] slide-in-from-right"),style:{"--drawer-width":g0},children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:e})})]}),document.body)},om=$__namespace.forwardRef(({className:e,onClick:t,...r},a)=>{let n=qr();if(n?.mode==="overlay")return jsxRuntime.jsx(vaul.Drawer.Trigger,{ref:a,className:e,onClick:t,...r});let o=n?.toggleDrawer;return jsxRuntime.jsxs("button",{ref:a,type:"button","data-drawer":"trigger",className:i("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-accent transition-colors cursor-pointer",e),onClick:s=>{t?.(s),o?.();},...r,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Drawer"})]})});om.displayName="DrawerTrigger";var sm=$__namespace.forwardRef(({className:e,children:t,...r},a)=>{let n=qr(),o=n?.mode==="overlay",s=n?.placement||"left",l=n?.size||"md",c=n?.backdrop||"opaque",d=n?.hideCloseButton||false;if(o){let u=s==="top"||s==="bottom",m=s==="left"||s==="right",f=m?h0[l]:x0[l],p={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},b={top:"inset-x-0 top-0 rounded-b-[10px]",bottom:"inset-x-0 bottom-0 rounded-t-[10px]",left:"inset-y-0 left-0 rounded-r-[10px]",right:"inset-y-0 right-0 rounded-l-[10px]"};return jsxRuntime.jsxs(vaul.Drawer.Portal,{children:[jsxRuntime.jsx(vaul.Drawer.Overlay,{className:i("fixed inset-0 z-50",p[c])}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:a,className:i("fixed z-50 flex flex-col border bg-background",b[s],e),style:{...m?{width:f,height:"100%"}:{},...u?{maxHeight:f}:{},...r.style},...r,children:[m&&!d&&jsxRuntime.jsx(vaul.Drawer.Close,{asChild:true,children:jsxRuntime.jsx(gr,{variant:"light",className:"absolute right-4 top-4 z-10"})}),u&&jsxRuntime.jsx("div",{className:i("mx-auto h-2 w-[100px] rounded-full bg-muted",s==="top"?"mb-4 mt-auto":"mt-4")}),t]})]})}return jsxRuntime.jsx("div",{ref:a,className:i("flex flex-col h-full",e),...r,children:t})});sm.displayName="DrawerContent";var im=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"header",className:i("flex flex-col gap-2 p-4",e),...t}));im.displayName="DrawerHeader";var lm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"body",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto p-4 group-data-[collapsible=icon]:overflow-hidden",e),...t}));lm.displayName="DrawerBody";var cm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"footer",className:i("flex flex-col gap-2 p-4 mt-auto",e),...t}));cm.displayName="DrawerFooter";var dm=$__namespace.forwardRef(({className:e,...t},r)=>qr()?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Title,{ref:r,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}):jsxRuntime.jsx("h2",{ref:r,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));dm.displayName="DrawerTitle";var um=$__namespace.forwardRef(({className:e,...t},r)=>qr()?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Description,{ref:r,className:i("text-sm text-muted-foreground",e),...t}):jsxRuntime.jsx("p",{ref:r,className:i("text-sm text-muted-foreground",e),...t}));um.displayName="DrawerDescription";var mm=$__namespace.forwardRef(({className:e,onClick:t,...r},a)=>{let n=qr();return n?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Close,{ref:a,className:e,onClick:t,...r}):jsxRuntime.jsx(gr,{ref:a,variant:"light",className:e,onClick:s=>{t?.(s),n?.setOpen(false);},...r})});mm.displayName="DrawerClose";var pm=$__namespace.forwardRef(({className:e,onClick:t,showLabel:r=true,...a},n)=>{let o=qr();if(!o)return null;let{toggleDrawer:s,state:l,placement:c}=o,d=l==="collapsed",u=c==="left",m=u?lucideReact.PanelLeftOpen:lucideReact.PanelRightOpen,f=u?lucideReact.PanelLeftClose:lucideReact.PanelRightClose;return jsxRuntime.jsxs("button",{ref:n,type:"button","data-drawer":"toggle","data-state":l,className:i("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-muted-foreground","hover:bg-accent hover:text-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",e),onClick:p=>{t?.(p),s();},...a,children:[d?jsxRuntime.jsx(m,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(f,{className:"h-4 w-4 shrink-0"}),r&&jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:d?"Expand":"Collapse"})]})});pm.displayName="DrawerToggle";var fm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"separator",className:i("mx-4 h-px bg-border",e),...t}));fm.displayName="DrawerSeparator";var gm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,"data-drawer":"menu",className:i("flex w-full min-w-0 flex-col gap-1",e),...t}));gm.displayName="DrawerMenu";var bm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,"data-drawer":"menu-item",className:i("group/menu-item relative",e),...t}));bm.displayName="DrawerMenuItem";var vm=classVarianceAuthority.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-ring transition-[width,height,padding] hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-accent data-[active=true]:font-medium data-[active=true]:text-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-accent hover:text-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--border))] hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent/50 hover:text-accent-foreground"},size:{sm:"h-7 text-xs",md:"h-8 text-sm",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"md"}}),hm=$__namespace.forwardRef(({asChild:e=false,isActive:t=false,variant:r="default",size:a="md",tooltip:n,className:o,children:s,...l},c)=>{let d=qr(),u=d?.isMobile??false,m=d?.state??"expanded",f=jsxRuntime.jsx("button",{ref:c,type:"button","data-drawer":"menu-button","data-size":a,"data-active":t,className:i(vm({variant:r,size:a}),o),...l,children:s});return n?jsxRuntime.jsxs($r,{children:[jsxRuntime.jsx(_r,{asChild:true,children:f}),jsxRuntime.jsx(jr,{side:"right",align:"center",hidden:m!=="collapsed"||u,...typeof n=="string"?{children:n}:n})]}):f});hm.displayName="DrawerMenuButton";var xm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"group",className:i("relative flex w-full min-w-0 flex-col p-2",e),...t}));xm.displayName="DrawerGroup";var ym=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-muted-foreground outline-none transition-[margin,opacity] ease-linear","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...t}));ym.displayName="DrawerGroupLabel";var Rm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("main",{ref:r,className:i("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Rm.displayName="DrawerInset";var R0=Fi;var Cm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:r,className:i("w-full caption-bottom text-sm",e),...t})}));Cm.displayName="Table";var Nm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("thead",{ref:r,className:i("[&_tr]:border-b",e),...t}));Nm.displayName="TableHeader";var Mm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tbody",{ref:r,className:i("[&_tr:last-child]:border-0",e),...t}));Mm.displayName="TableBody";var Tm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tfoot",{ref:r,className:i("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Tm.displayName="TableFooter";var Pm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tr",{ref:r,className:i("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Pm.displayName="TableRow";var km=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("th",{ref:r,className:i("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));km.displayName="TableHead";var Em=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("td",{ref:r,className:i("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Em.displayName="TableCell";var Lm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("caption",{ref:r,className:i("mt-4 text-sm text-muted-foreground",e),...t}));Lm.displayName="TableCaption";function P0({className:e,data:t,columns:r,selectable:a=false,selectedKeys:n,onSelectionChange:o,getRowKey:s=(h,C)=>String(C),sortable:l=false,sortState:c,onSortChange:d,paginated:u=false,pageSizeOptions:m=[10,20,50],paginationState:f,onPaginationChange:p,emptyContent:b="No data",loading:x=false,striped:g=false,hoverable:v=true,...y},w){let[h,C]=$__namespace.useState(new Set),[R,M]=$__namespace.useState({columnId:null,direction:null}),[T,E]=$__namespace.useState({pageIndex:0,pageSize:m[0]||10}),N=n??h,P=c??R,k=f??T,L=K=>{o?o(K):C(K);},H=K=>{d?d(K):M(K);},S=K=>{p?p(K):E(K);},D=$__namespace.useMemo(()=>{if(!P.columnId||!P.direction)return t;let K=r.find(B=>B.id===P.columnId);return K?[...t].sort((B,W)=>{let A=K.accessor(B),Y=K.accessor(W);if(A===Y)return 0;if(A==null)return 1;if(Y==null)return -1;let j=String(A).localeCompare(String(Y),void 0,{numeric:true});return P.direction==="asc"?j:-j}):t},[t,P,r]),V=$__namespace.useMemo(()=>{if(!u)return D;let K=k.pageIndex*k.pageSize;return D.slice(K,K+k.pageSize)},[D,u,k]),z=Math.ceil(D.length/k.pageSize),G=K=>{if(K===true){let B=new Set(V.map((W,A)=>s(W,A)));L(B);}else L(new Set);},I=(K,B)=>{let W=new Set(N);B?W.add(K):W.delete(K),L(W);},F=V.length>0&&V.every((K,B)=>N.has(s(K,B))),O=V.some((K,B)=>N.has(s(K,B))),Q=K=>{if(!r.find(A=>A.id===K)?.sortable&&!l)return;let W="asc";P.columnId===K&&(P.direction==="asc"?W="desc":P.direction==="desc"&&(W=null)),H({columnId:W?K:null,direction:W});},re=K=>P.columnId!==K?jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4 text-muted-foreground/50"}):P.direction==="asc"?jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"});return jsxRuntime.jsxs("div",{ref:w,className:i("w-full",e),...y,children:[jsxRuntime.jsx("div",{className:"relative w-full overflow-auto rounded-md border",children:jsxRuntime.jsxs("table",{className:"w-full caption-bottom text-sm",children:[jsxRuntime.jsx("thead",{className:"[&_tr]:border-b bg-muted/50",children:jsxRuntime.jsxs("tr",{children:[a&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(An,{checked:F?true:O?"indeterminate":false,onCheckedChange:G,"aria-label":"Select all"})}),r.map(K=>{let B=K.sortable??l;return jsxRuntime.jsx("th",{className:i("h-12 px-4 text-left align-middle font-medium text-muted-foreground",B&&"cursor-pointer select-none hover:text-foreground"),style:{width:K.width},onClick:()=>B&&Q(K.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[K.header,B&&re(K.id)]})},K.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:x?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:r.length+(a?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):V.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:r.length+(a?1:0),className:"h-24 text-center text-muted-foreground",children:b})}):V.map((K,B)=>{let W=s(K,B),A=N.has(W);return jsxRuntime.jsxs("tr",{className:i("border-b transition-colors",v&&"hover:bg-muted/50",g&&B%2===1&&"bg-muted/30",A&&"bg-muted"),"data-state":A?"selected":void 0,children:[a&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(An,{checked:A,onCheckedChange:Y=>I(W,!!Y),"aria-label":`Select row ${B+1}`})}),r.map(Y=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:Y.cell?Y.cell(K,B):Y.accessor(K)},Y.id))]},W)})})]})}),u&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:"Rows per page:"}),jsxRuntime.jsx("select",{value:k.pageSize,onChange:K=>S({pageIndex:0,pageSize:Number(K.target.value)}),className:"h-8 rounded-md border bg-transparent px-2",children:m.map(K=>jsxRuntime.jsx("option",{value:K,children:K},K))})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",k.pageIndex+1," of ",z||1]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx(J,{variant:"light",size:"icon",className:"h-8 w-8",onClick:()=>S({...k,pageIndex:k.pageIndex-1}),disabled:k.pageIndex===0,"aria-label":"Previous page",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(J,{variant:"light",size:"icon",className:"h-8 w-8",onClick:()=>S({...k,pageIndex:k.pageIndex+1}),disabled:k.pageIndex>=z-1,"aria-label":"Next page",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})]})]})}var k0=$__namespace.forwardRef(P0);var Sm=classVarianceAuthority.cva("animate-spin text-foreground",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),Hm=$__namespace.forwardRef(({className:e,size:t,...r},a)=>jsxRuntime.jsx(lucideReact.Loader2,{ref:a,className:i(Sm({size:t,className:e})),...r}));Hm.displayName="Spinner";var Ki=["January","February","March","April","May","June","July","August","September","October","November","December"];function B0({currentMonth:e,onMonthChange:t,startYear:r,endYear:a}){let[n,o]=$__namespace.useState(false),[s,l]=$__namespace.useState(false),c=$__namespace.useRef(null),d=$__namespace.useRef(null),u=dateFns.getMonth(e),m=dateFns.getYear(e);$__namespace.useEffect(()=>{function x(g){c.current&&!c.current.contains(g.target)&&o(false),d.current&&!d.current.contains(g.target)&&l(false);}return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);let f=x=>{let g=dateFns.setMonth(e,x);t(g),o(false);},p=x=>{let g=dateFns.setYear(e,x);t(g),l(false);},b=$__namespace.useMemo(()=>{let x=[];for(let g=a;g>=r;g--)x.push(g);return x},[r,a]);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{ref:c,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{o(!n),l(false);},className:i("inline-flex items-center justify-between gap-2 px-3 py-1.5 rounded-md","text-sm font-medium w-[120px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer",n&&"ring-2 ring-primary ring-offset-2 ring-offset-background"),children:[jsxRuntime.jsx("span",{children:Ki[u]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 text-muted-foreground transition-transform",n&&"rotate-180")})]}),n&&jsxRuntime.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[140px] rounded-md border border-border bg-background shadow-lg",children:jsxRuntime.jsx(We,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:Ki.map((x,g)=>jsxRuntime.jsx("button",{type:"button",onClick:()=>f(g),className:i("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",u===g&&"bg-primary/10 text-primary font-medium"),children:x},x))})})})]}),jsxRuntime.jsxs("div",{ref:d,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{l(!s),o(false);},className:i("inline-flex items-center justify-between gap-2 px-3 py-1.5 rounded-md","text-sm font-medium w-[85px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer",s&&"ring-2 ring-primary ring-offset-2 ring-offset-background"),children:[jsxRuntime.jsx("span",{children:m}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 text-muted-foreground transition-transform",s&&"rotate-180")})]}),s&&jsxRuntime.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[100px] rounded-md border border-border bg-background shadow-lg",children:jsxRuntime.jsx(We,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:b.map(x=>jsxRuntime.jsx("button",{type:"button",onClick:()=>p(x),className:i("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",m===x&&"bg-primary/10 text-primary font-medium"),children:x},x))})})})]})]})}function O0(e,t,r){return function({calendarMonth:n}){let{goToMonth:o,nextMonth:s,previousMonth:l}=reactDayPicker.useDayPicker();if(e)return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsx(B0,{currentMonth:n.date,onMonthChange:o,startYear:t,endYear:r}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&o(l),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&o(s),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]});let c=Ki[n.date.getMonth()],d=n.date.getFullYear();return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium w-[90px]",children:c}),jsxRuntime.jsx("span",{className:"text-sm font-medium w-[50px]",children:d})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&o(l),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&o(s),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})}}function nn({className:e,classNames:t,showOutsideDays:r=true,showMonthAndYearPickers:a=false,startYear:n=1900,endYear:o=new Date().getFullYear()+50,components:s,...l}){let c=$__namespace.useMemo(()=>O0(a,n,o),[a,n,o]);return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:r,className:i("p-4",e),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-2",month_caption:"sr-only",nav:"hidden",month_grid:"w-full border-collapse",weekdays:"flex",weekday:"text-muted-foreground w-10 font-normal text-xs text-center",week:"flex w-full mt-1",day:i("relative h-10 w-10 p-0 text-center text-sm","flex items-center justify-center","focus-within:relative focus-within:z-20","[&:has([aria-selected]:not(.outside-day))]:bg-accent","first:[&:has([aria-selected]:not(.outside-day))]:rounded-l-md","last:[&:has([aria-selected]:not(.outside-day))]:rounded-r-md"),day_button:i("size-10 p-0 font-normal rounded-md text-sm","inline-flex items-center justify-center","hover:bg-primary/10 hover:text-primary","focus:outline-none","transition-colors cursor-pointer"),range_start:"rounded-l-md",range_end:"rounded-r-md",selected:i("bg-primary text-primary-foreground rounded-md","hover:bg-primary/90 hover:!text-primary-foreground","focus:bg-primary focus:text-primary-foreground","[&.outside-day]:bg-transparent [&.outside-day]:text-muted-foreground/50"),today:"bg-accent text-accent-foreground rounded-md",outside:"outside-day text-muted-foreground/50",disabled:"text-muted-foreground/30 cursor-not-allowed",range_middle:"rounded-none",hidden:"invisible",...t},modifiersStyles:{range_middle:{backgroundColor:"var(--color-muted)",color:"var(--color-foreground)",borderRadius:0},outside:{backgroundColor:"transparent"}},components:{...s,MonthCaption:c},...l})}nn.displayName="Calendar";var zm=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center",e),...t});zm.displayName="Pagination";var Bm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,className:i("flex flex-row items-center gap-1",e),...t}));Bm.displayName="PaginationContent";var Om=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,className:i("",e),...t}));Om.displayName="PaginationItem";var es=({className:e,isActive:t,size:r="icon",...a})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:i(mr({variant:t?"solid":"light",size:r}),e),...a});es.displayName="PaginationLink";var Fm=({className:e,...t})=>jsxRuntime.jsxs(es,{"aria-label":"Go to previous page",size:"md",className:i("gap-1 pl-2.5",e),...t,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:"Previous"})]});Fm.displayName="PaginationPrevious";var Km=({className:e,...t})=>jsxRuntime.jsxs(es,{"aria-label":"Go to next page",size:"md",className:i("gap-1 pr-2.5",e),...t,children:[jsxRuntime.jsx("span",{children:"Next"}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})]});Km.displayName="PaginationNext";var Gm=({className:e,...t})=>jsxRuntime.jsxs("span",{"aria-hidden":true,className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"More pages"})]});Gm.displayName="PaginationEllipsis";var _i=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command,{ref:r,className:i("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));_i.displayName=cmdk.Command.displayName;var _0=({children:e,...t})=>jsxRuntime.jsx(To,{...t,children:jsxRuntime.jsx(Po,{className:"overflow-hidden p-0 shadow-lg",children:jsxRuntime.jsx(_i,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),$m=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(lucideReact.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:r,className:i("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));$m.displayName=cmdk.Command.Input.displayName;var _m=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.List,{ref:r,className:i("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));_m.displayName=cmdk.Command.List.displayName;var jm=$__namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));jm.displayName=cmdk.Command.Empty.displayName;var Wm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:r,className:i("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Wm.displayName=cmdk.Command.Group.displayName;var Ym=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:r,className:i("-mx-1 h-px bg-border",e),...t}));Ym.displayName=cmdk.Command.Separator.displayName;var Um=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Item,{ref:r,className:i("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Um.displayName=cmdk.Command.Item.displayName;var Xm=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Xm.displayName="CommandShortcut";var qm=$__namespace.forwardRef(({className:e,showToggle:t=true,disabled:r,onFocus:a,onBlur:n,style:o,...s},l)=>{let[c,d]=$__namespace.useState(false),[u,m]=$__namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:c?"text":"password",className:i("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",t&&"pr-10",e),ref:l,disabled:r,style:{...o,borderColor:u?"var(--color-foreground)":void 0},onFocus:f=>{m(true),a?.(f);},onBlur:f=>{m(false),n?.(f);},...s}),t&&jsxRuntime.jsx("button",{type:"button",className:"absolute right-0 top-0 h-10 w-10 px-3 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>d(!c),disabled:r,tabIndex:-1,"aria-label":c?"Hide password":"Show password",children:c?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4"})})]})});qm.displayName="PasswordInput";var Zm=$__namespace.forwardRef(({className:e,showButtons:t=true,step:r=1,min:a,max:n,value:o,defaultValue:s,onChange:l,disabled:c,...d},u)=>{let[m,f]=$__namespace.useState(s),[p,b]=$__namespace.useState(false),x=o!==void 0,g=x?o:m,v=T=>{T!==void 0&&(a!==void 0&&T<a&&(T=a),n!==void 0&&T>n&&(T=n)),x||f(T),l?.(T);},y=()=>{v((g??0)+r);},w=()=>{v((g??0)-r);},h=T=>{let E=T.target.value;if(E==="")v(void 0);else {let N=parseFloat(E);isNaN(N)||v(N);}},C=T=>{T.key==="ArrowUp"?(T.preventDefault(),y()):T.key==="ArrowDown"&&(T.preventDefault(),w());},R=a===void 0||(g??0)>a,M=n===void 0||(g??0)<n;return t?jsxRuntime.jsxs("div",{className:i("relative flex items-center rounded-md border transition-colors",p?"border-foreground":"border-input",c&&"opacity-50",e),children:[jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:w,disabled:c||!R,tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}),jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:"min-w-0 flex-1 h-10 bg-background text-sm text-center focus:outline-none disabled:cursor-not-allowed",ref:u,value:g??"",onChange:h,onKeyDown:C,disabled:c,onFocus:()=>b(true),onBlur:()=>b(false),...d}),jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:y,disabled:c||!M,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}):jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:i("flex h-10 w-full bg-background px-3 py-2 text-sm text-center border rounded-md placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",p?"border-foreground":"border-input",e),ref:u,value:g??"",onChange:h,onKeyDown:C,disabled:c,onFocus:()=>b(true),onBlur:()=>b(false),...d})});Zm.displayName="NumberInput";var Qm=$__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:r,placeholder:a="Pick a date",dateFormat:n="PPP",disabled:o=false,minDate:s,maxDate:l,className:c},d)=>{let[u,m]=$__namespace.useState(false),[f,p]=$__namespace.useState(t),b=e!==void 0,x=b?e:f,g=v=>{b||p(v),r?.(v),m(false);};return jsxRuntime.jsxs(at,{open:u,onOpenChange:m,children:[jsxRuntime.jsx(ht,{asChild:true,children:jsxRuntime.jsxs(J,{ref:d,variant:"bordered",disabled:o,className:i("w-full justify-start text-left font-normal",!x&&"text-muted-foreground",c),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),x?dateFns.format(x,n):a]})}),jsxRuntime.jsx(nt,{className:"w-auto p-0",align:"start",children:jsxRuntime.jsx(nn,{mode:"single",selected:x,onSelect:g,disabled:v=>!!(s&&v<s||l&&v>l),initialFocus:true})})]})});Qm.displayName="DatePicker";var ap=classVarianceAuthority.cva("flex -space-x-2",{variants:{size:{sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3"}},defaultVariants:{size:"md"}}),ep=classVarianceAuthority.cva("border-2 border-background ring-0 cursor-pointer transition-transform duration-200 hover:-translate-y-1",{variants:{size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{size:"md"}}),np=$__namespace.forwardRef(({className:e,items:t,max:r=5,size:a,showTooltips:n=false,...o},s)=>{let l=t.slice(0,r),c=t.length-r,d=(m,f)=>{let p=jsxRuntime.jsxs(Ca,{className:i(ep({size:a})),children:[m.src&&jsxRuntime.jsx(tn,{src:m.src,alt:m.alt||""}),jsxRuntime.jsx(Na,{className:"text-xs",children:m.fallback||m.alt?.charAt(0)?.toUpperCase()||"?"})]},f);return n&&m.alt?jsxRuntime.jsxs($r,{children:[jsxRuntime.jsx(_r,{asChild:true,children:p}),jsxRuntime.jsx(jr,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:m.alt})]},f):p},u=jsxRuntime.jsxs("div",{ref:s,className:i(ap({size:a,className:e})),...o,children:[l.map((m,f)=>d(m,f)),c>0&&jsxRuntime.jsx(Ca,{className:i(ep({size:a})),children:jsxRuntime.jsxs(Na,{className:"bg-muted text-muted-foreground",children:["+",c]})})]});return n?jsxRuntime.jsx(Gr,{delayDuration:300,children:u}):u});np.displayName="AvatarGroup";var op=classVarianceAuthority.cva("flex gap-0.5",{variants:{size:{sm:"[&_svg]:h-4 [&_svg]:w-4",md:"[&_svg]:h-5 [&_svg]:w-5",lg:"[&_svg]:h-6 [&_svg]:w-6"}},defaultVariants:{size:"md"}}),sp=$__namespace.forwardRef(({className:e,value:t,defaultValue:r=0,onValueChange:a,max:n=5,size:o,icon:s="star",allowHalf:l=false,readOnly:c=false,disabled:d=false,filledColor:u,emptyColor:m,...f},p)=>{let[b,x]=$__namespace.useState(r),[g,v]=$__namespace.useState(null),y=t!==void 0,w=y?t:b,h=g!==null?g:w,C=L=>{c||d||(y||x(L),a?.(L));},R=(L,H=false)=>{let S=l&&H?L+.5:L+1;C(S);},M=(L,H)=>{if(c||d)return;let S=L.currentTarget.getBoundingClientRect(),D=l&&L.clientX<S.left+S.width/2;v(D?H+.5:H+1);},T=()=>{v(null);},E=s==="heart"?lucideReact.Heart:lucideReact.Star,N=L=>h>=L+1?"full":h>=L+.5?"half":"empty",P=u?{color:u,fill:u}:{},k=m?{color:m}:{};return jsxRuntime.jsx("div",{ref:p,className:i(op({size:o,className:e}),d&&"opacity-50 cursor-not-allowed"),onMouseLeave:T,role:"radiogroup","aria-label":"Rating",...f,children:Array.from({length:n},(L,H)=>{let S=N(H);return jsxRuntime.jsxs("button",{type:"button",className:i("relative focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",!c&&!d&&"cursor-pointer hover:scale-110 transition-transform"),onClick:D=>{let V=D.currentTarget.getBoundingClientRect(),z=l&&D.clientX<V.left+V.width/2;R(H,z);},onMouseMove:D=>M(D,H),disabled:d||c,"aria-label":`Rate ${H+1} out of ${n}`,role:"radio","aria-checked":w===H+1,children:[jsxRuntime.jsx(E,{className:i("text-muted-foreground/30",S!=="empty"&&"absolute inset-0"),style:S==="empty"?k:void 0}),S!=="empty"&&jsxRuntime.jsx(E,{className:i("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",S==="half"&&"clip-path-half"),style:{...P,clipPath:S==="half"?"inset(0 50% 0 0)":void 0}})]},H)})})});sp.displayName="Rating";var cp=classVarianceAuthority.cva("inline-flex items-center justify-center gap-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"border-transparent text-primary-foreground",outline:"border bg-transparent",ghost:"border-transparent bg-transparent",soft:"border-transparent",surface:"border-transparent bg-muted text-muted-foreground"},color:{primary:"",secondary:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-6 px-2 text-xs",md:"h-7 px-2.5 text-sm",lg:"h-8 px-3 text-sm"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},clickable:{true:"cursor-pointer",false:""}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"solid",color:"success",className:"bg-success hover:bg-success/90"},{variant:"solid",color:"warning",className:"bg-warning text-warning-foreground hover:bg-warning/90"},{variant:"solid",color:"danger",className:"bg-danger hover:bg-danger/90"},{variant:"solid",color:"info",className:"bg-info hover:bg-info/90"},{variant:"outline",color:"primary",className:"border-primary text-primary hover:bg-primary/10"},{variant:"outline",color:"secondary",className:"border-secondary text-secondary-foreground hover:bg-secondary/10"},{variant:"outline",color:"success",className:"border-success text-success hover:bg-success/10"},{variant:"outline",color:"warning",className:"border-warning text-warning hover:bg-warning/10"},{variant:"outline",color:"danger",className:"border-danger text-danger hover:bg-danger/10"},{variant:"outline",color:"info",className:"border-info text-info hover:bg-info/10"},{variant:"ghost",color:"primary",className:"text-primary hover:bg-primary/10"},{variant:"ghost",color:"secondary",className:"text-secondary-foreground hover:bg-secondary"},{variant:"ghost",color:"success",className:"text-success hover:bg-success/10"},{variant:"ghost",color:"warning",className:"text-warning hover:bg-warning/10"},{variant:"ghost",color:"danger",className:"text-danger hover:bg-danger/10"},{variant:"ghost",color:"info",className:"text-info hover:bg-info/10"},{variant:"soft",color:"primary",className:"bg-primary/15 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"soft",color:"success",className:"bg-success/15 text-success hover:bg-success/20"},{variant:"soft",color:"warning",className:"bg-warning/15 text-warning hover:bg-warning/20"},{variant:"soft",color:"danger",className:"bg-danger/15 text-danger hover:bg-danger/20"},{variant:"soft",color:"info",className:"bg-info/15 text-info hover:bg-info/20"}],defaultVariants:{variant:"solid",color:"primary",size:"md",radius:"full",clickable:false}}),ow=classVarianceAuthority.cva("ml-1 rounded-full p-0.5 transition-colors hover:bg-black/10 dark:hover:bg-white/10",{variants:{size:{sm:"[&_svg]:size-3",md:"[&_svg]:size-3.5",lg:"[&_svg]:size-4"}},defaultVariants:{size:"md"}}),dp=$__namespace.forwardRef(({className:e,variant:t,color:r,size:a,radius:n,clickable:o,startContent:s,endContent:l,closable:c,onClose:d,disabled:u,avatar:m,children:f,onClick:p,...b},x)=>{let g=o||!!p,v=y=>{y.stopPropagation(),d?.();};return jsxRuntime.jsxs("div",{ref:x,role:g?"button":void 0,tabIndex:g&&!u?0:void 0,"aria-disabled":u,onClick:u?void 0:p,onKeyDown:g&&!u?y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),p?.(y));}:void 0,className:i(cp({variant:t,color:r,size:a,radius:n,clickable:g}),u&&"opacity-50 cursor-not-allowed",e),...b,children:[m&&jsxRuntime.jsx("span",{className:"-ml-1 [&>*]:size-5 [&>*]:rounded-full",children:m}),s&&jsxRuntime.jsx("span",{className:"shrink-0",children:s}),jsxRuntime.jsx("span",{className:"truncate",children:f}),l&&jsxRuntime.jsx("span",{className:"shrink-0",children:l}),c&&jsxRuntime.jsx("button",{type:"button","aria-label":"Remove",onClick:v,disabled:u,className:i(ow({size:a})),children:jsxRuntime.jsx(lucideReact.X,{})})]})});dp.displayName="Chip";var up=$.createContext({direction:"horizontal"}),pw=({className:e,direction:t="horizontal",children:r,...a})=>jsxRuntime.jsx(up.Provider,{value:{direction:t},children:jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:i("flex h-full w-full data-[orientation=vertical]:flex-col",e),...a,children:r})}),fw=reactResizablePanels.Panel,gw=({withHandle:e,className:t,...r})=>{let{direction:a}=$.useContext(up),n=a==="vertical";return jsxRuntime.jsx(reactResizablePanels.Separator,{className:i("relative flex shrink-0 items-center justify-center bg-border outline-none",n?"h-px w-full after:absolute after:inset-x-0 after:top-1/2 after:h-1 after:-translate-y-1/2":"w-px after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2",t),...r,children:e&&jsxRuntime.jsx("div",{className:i("z-10 flex items-center justify-center rounded-sm border bg-border",n?"h-3 w-4 rotate-90":"h-4 w-3"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-2.5 w-2.5"})})})};var fp=classVarianceAuthority.cva("inline-flex items-center gap-1",{variants:{size:{sm:"[&>span]:h-1 [&>span]:w-1",md:"[&>span]:h-1.5 [&>span]:w-1.5",lg:"[&>span]:h-2 [&>span]:w-2",xl:"[&>span]:h-3 [&>span]:w-3"}},defaultVariants:{size:"md"}}),gp=$__namespace.forwardRef(({className:e,size:t,count:r=3,...a},n)=>jsxRuntime.jsx("span",{ref:n,role:"status","aria-label":"Loading",className:i(fp({size:t,className:e})),...a,children:Array.from({length:r}).map((o,s)=>jsxRuntime.jsx("span",{className:"rounded-full bg-current animate-dots-bounce",style:{animationDelay:`${s*.16}s`}},s))}));gp.displayName="Dots";var hp=classVarianceAuthority.cva("relative inline-flex items-center justify-center",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-14 w-14"},color:{default:"",success:"",warning:"",danger:""}},defaultVariants:{size:"md",color:"default"}}),hw={sm:{size:32,strokeWidth:3,fontSize:"text-[10px]"},md:{size:40,strokeWidth:4,fontSize:"text-xs"},lg:{size:56,strokeWidth:5,fontSize:"text-sm"}},bp={default:"#18181b",success:"#16a34a",warning:"#d97706",danger:"#dc2626"},xp=$__namespace.forwardRef(({className:e,size:t="md",color:r="default",value:a,showValue:n=false,trackClassName:o,...s},l)=>{let c=a===void 0,d=Math.min(100,Math.max(0,a??0)),u=hw[t],m=(u.size-u.strokeWidth)/2,f=2*Math.PI*m,p=f-d/100*f,b=f*.3;return jsxRuntime.jsxs("div",{ref:l,className:i(hp({size:t,color:r}),e),role:"progressbar","aria-valuenow":c?void 0:d,"aria-valuemin":0,"aria-valuemax":100,...s,children:[jsxRuntime.jsxs("svg",{width:u.size,height:u.size,viewBox:`0 0 ${u.size} ${u.size}`,fill:"none",style:c?{animation:"circular-spin 0.8s linear infinite"}:void 0,children:[jsxRuntime.jsx("style",{children:`
44
- @keyframes circular-spin {
45
- 0% { transform: rotate(0deg); }
46
- 100% { transform: rotate(360deg); }
47
- }
48
- `}),jsxRuntime.jsx("circle",{className:i("stroke-muted",o),cx:u.size/2,cy:u.size/2,r:m,strokeWidth:u.strokeWidth,fill:"none"}),jsxRuntime.jsx("circle",{cx:u.size/2,cy:u.size/2,r:m,strokeWidth:u.strokeWidth,fill:"none",strokeLinecap:"round",stroke:bp[r]||bp.default,strokeDasharray:c?`${b} ${f-b}`:`${f} ${f}`,strokeDashoffset:c?0:p,style:{transformOrigin:"center",transform:"rotate(-90deg)",transition:c?void 0:"stroke-dashoffset 0.3s ease-in-out"}})]}),n&&!c&&jsxRuntime.jsxs("span",{className:i("absolute font-medium text-foreground",u.fontSize),children:[Math.round(d),"%"]})]})});xp.displayName="CircularProgress";var yp=$__namespace.createContext(null),Rw=()=>{let e=$__namespace.useContext(yp);if(!e)throw new Error("OTP components must be used within InputOTP");return e},Rp=classVarianceAuthority.cva("flex items-center gap-2 has-[:disabled]:opacity-50",{variants:{size:{sm:"[&_[data-otp-slot]]:h-8 [&_[data-otp-slot]]:w-8 [&_[data-otp-slot]]:text-xs",md:"[&_[data-otp-slot]]:h-10 [&_[data-otp-slot]]:w-10 [&_[data-otp-slot]]:text-sm",lg:"[&_[data-otp-slot]]:h-12 [&_[data-otp-slot]]:w-12 [&_[data-otp-slot]]:text-base"}},defaultVariants:{size:"md"}}),wp=$__namespace.forwardRef(({className:e,containerClassName:t,maxLength:r,value:a,defaultValue:n="",onChange:o,onComplete:s,pattern:l,disabled:c=false,size:d,children:u,...m},f)=>{let[p,b]=$__namespace.useState(n),[x,g]=$__namespace.useState(0),[v,y]=$__namespace.useState(false),w=$__namespace.useRef(null),h=a!==void 0?a:p;$__namespace.useImperativeHandle(f,()=>w.current),$__namespace.useEffect(()=>{g(Math.min(h.length,r-1));},[h,r]),$__namespace.useEffect(()=>{h.length===r&&s&&s(h);},[h,r,s]);let C=P=>{let k=P.target.value;if(l&&k){let L=new RegExp(l.replace("^","").replace("$","").replace("+",""));k=k.split("").filter(H=>L.test(H)).join("");}k=k.slice(0,r),a===void 0&&b(k),o?.(k);},R=P=>{P.key==="ArrowLeft"?g(k=>Math.max(0,k-1)):P.key==="ArrowRight"&&g(k=>Math.min(h.length,r-1,k+1));},M=()=>{w.current?.focus();},T=()=>{y(true),g(Math.min(h.length,r-1));},E=()=>{y(false);},N={value:h,activeIndex:v?x:-1,maxLength:r,disabled:c};return jsxRuntime.jsx(yp.Provider,{value:N,children:jsxRuntime.jsxs("div",{className:i(Rp({size:d}),t),onClick:M,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:w,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:h,onChange:C,onKeyDown:R,onFocus:T,onBlur:E,disabled:c,maxLength:r,className:i("absolute opacity-0 pointer-events-none w-0 h-0",e),...m}),u]})})});wp.displayName="InputOTP";var Cp=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center",e),...t}));Cp.displayName="InputOTPGroup";var Np=$__namespace.forwardRef(({index:e,className:t,...r},a)=>{let{value:n,activeIndex:o,disabled:s}=Rw(),l=n[e]||"",c=o===e,d=c&&n.length===e;return jsxRuntime.jsxs("div",{ref:a,"data-otp-slot":true,"data-active":c,"data-filled":!!l,className:i("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm font-medium transition-all first:rounded-l-md first:border-l last:rounded-r-md",c&&"z-10 border-foreground",s&&"cursor-not-allowed opacity-50",t),...r,children:[l,d&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});Np.displayName="InputOTPSlot";var Mp=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));Mp.displayName="InputOTPSeparator";var kp=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-full text-xs font-medium transition-colors",{variants:{variant:{solid:"bg-zinc-800 text-white dark:bg-zinc-200 dark:text-zinc-900",bordered:"border-2 border-zinc-300 bg-transparent dark:border-zinc-600",light:"bg-transparent text-zinc-800 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800",flat:"bg-zinc-100 text-zinc-800 dark:bg-zinc-800 dark:text-white",ghost:"border-2 border-zinc-800 bg-transparent dark:border-white"},size:{sm:"h-5 px-2 text-xs",md:"h-6 px-2.5 text-xs",lg:"h-7 px-3 text-sm"}},defaultVariants:{variant:"flat",size:"md"}}),Ep=$__namespace.forwardRef(({className:e,variant:t,size:r,value:a=[],onChange:n,placeholder:o="Add tag...",maxTags:s,minTagLength:l=1,maxTagLength:c=50,triggerKeys:d=["Enter",",","Tab"],allowDuplicates:u=false,disabled:m,readOnly:f,renderTag:p,...b},x)=>{let[g,v]=$__namespace.useState(""),y=$__namespace.useRef(null);$__namespace.useImperativeHandle(x,()=>y.current);let w=N=>{let P=N.trim();if(P.length<l||P.length>c||s&&a.length>=s||!u&&a.some(L=>L.text.toLowerCase()===P.toLowerCase()))return;let k={id:crypto.randomUUID(),text:P};n?.([...a,k]),v("");},h=N=>{m||f||n?.(a.filter(P=>P.id!==N));},C=N=>{if(d.includes(N.key)){if(N.key==="Tab"&&!g)return;N.preventDefault(),w(g);}N.key==="Backspace"&&!g&&a.length>0&&h(a[a.length-1].id);},R=N=>{let P=N.target.value;if(P.includes(",")){P.split(",").forEach(L=>{L.trim()&&w(L);});return}v(P);},M=N=>{N.preventDefault(),N.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(L=>{w(L);});},T=()=>{y.current?.focus();},E=s?a.length>=s:false;return jsxRuntime.jsxs("div",{className:i("flex min-h-10 w-full flex-wrap gap-1.5 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",m&&"cursor-not-allowed opacity-50",e),onClick:T,children:[a.map(N=>p?p(N,()=>h(N.id)):jsxRuntime.jsxs("span",{className:i(kp({variant:t,size:r})),children:[N.text,!m&&!f&&jsxRuntime.jsx("button",{type:"button",onClick:P=>{P.stopPropagation(),h(N.id);},className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${N.text}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},N.id)),!E&&!f&&jsxRuntime.jsx("input",{ref:y,type:"text",value:g,onChange:R,onKeyDown:C,onPaste:M,placeholder:a.length===0?o:"",disabled:m,className:i("flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed","min-w-[80px]"),...b})]})});Ep.displayName="TagInput";var Dp=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-2 py-6",md:"gap-3 py-10",lg:"gap-4 py-16"}},defaultVariants:{size:"md"}}),Sp=$__namespace.forwardRef(({className:e,size:t,icon:r,title:a,description:n,action:o,children:s,...l},c)=>jsxRuntime.jsxs("div",{ref:c,className:i(Dp({size:t,className:e})),...l,children:[r&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:r}),a&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:a}),n&&jsxRuntime.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:n}),o&&jsxRuntime.jsx("div",{className:"mt-2",children:o}),s]}));Sp.displayName="EmptyState";var Vp=classVarianceAuthority.cva("border p-6 text-card-foreground shadow-sm",{variants:{variant:{solid:"bg-zinc-800 text-white border-zinc-800 dark:bg-zinc-200 dark:text-zinc-900 dark:border-zinc-200",bordered:"border-2 border-zinc-300 bg-transparent dark:border-zinc-700",light:"bg-transparent border-transparent shadow-none",flat:"bg-zinc-100 border-transparent dark:bg-zinc-800",ghost:"border-2 border-zinc-900 bg-transparent dark:border-white"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-3xl"}},defaultVariants:{variant:"bordered",radius:"md"}}),Ip=$__namespace.forwardRef(({className:e,variant:t,radius:r,label:a,value:n,icon:o,trend:s,trendValue:l,description:c,...d},u)=>{let m=s==="up"?lucideReact.TrendingUp:s==="down"?lucideReact.TrendingDown:lucideReact.Minus,f=s==="up"?"text-green-500":s==="down"?"text-red-500":"text-muted-foreground";return jsxRuntime.jsxs("div",{ref:u,className:i(Vp({variant:t,radius:r,className:e})),...d,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("p",{className:i("text-sm font-medium",t==="solid"?"opacity-80":"text-muted-foreground"),children:a}),o&&jsxRuntime.jsx("div",{className:i("[&>svg]:h-4 [&>svg]:w-4",t==="solid"?"opacity-80":"text-muted-foreground"),children:o})]}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[jsxRuntime.jsx("p",{className:"text-2xl font-bold",children:n}),s&&l&&jsxRuntime.jsxs("span",{className:i("flex items-center gap-0.5 text-sm",f),children:[jsxRuntime.jsx(m,{className:"h-3 w-3"}),l]})]}),c&&jsxRuntime.jsx("p",{className:i("mt-1 text-xs",t==="solid"?"opacity-70":"text-muted-foreground"),children:c})]})});Ip.displayName="StatCard";var Xi=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-2",bordered:"divide-y divide-border rounded-lg border",striped:"gap-2 [&>*:nth-child(odd)]:bg-muted/50",filled:"gap-2 bg-muted/30 rounded-lg p-2"},size:{sm:"[&>*]:py-2 [&>*]:px-3",md:"[&>*]:py-3 [&>*]:px-4",lg:"[&>*]:py-4 [&>*]:px-5"}},defaultVariants:{variant:"default",size:"md"}}),Sw=({checked:e,disabled:t,onClick:r})=>jsxRuntime.jsx("button",{type:"button",role:"checkbox","aria-checked":e,disabled:t,onClick:a=>{a.stopPropagation(),t||r(a);},className:i("h-4 w-4 shrink-0 rounded-sm border border-primary transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",e&&"bg-primary text-primary-foreground",t&&"cursor-not-allowed opacity-50"),children:e&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})});function Hw({className:e,variant:t,size:r,items:a,renderItem:n,draggable:o=false,onReorder:s,showHandle:l=true,dragIcon:c,selectable:d=false,multiple:u=false,selectedKeys:m,defaultSelectedKeys:f=[],onSelect:p,checkable:b=false,checkedKeys:x,defaultCheckedKeys:g=[],onCheck:v,children:y,...w},h){let[C,R]=$__namespace.useState(null),[M,T]=$__namespace.useState(null),[E,N]=$__namespace.useState(new Set(f)),P=m!==void 0,k=P?new Set(m):E,[L,H]=$__namespace.useState(new Set(g)),S=x!==void 0,D=S?new Set(x):L,V=(B,W)=>{R(W),B.dataTransfer.effectAllowed="move",B.dataTransfer.setData("text/plain",String(W));},z=(B,W)=>{B.preventDefault(),!(C===null||C===W)&&T(W);},G=()=>{T(null);},I=(B,W)=>{if(B.preventDefault(),!a||C===null||C===W){R(null),T(null);return}let A=[...a],[Y]=A.splice(C,1);A.splice(W,0,Y),s?.(A),R(null),T(null);},F=()=>{R(null),T(null);},O=$__namespace.useCallback((B,W)=>{if(!a)return;let A=new Set(k),Y=!A.has(B.id);u?Y?A.add(B.id):A.delete(B.id):(A.clear(),Y&&A.add(B.id)),P||N(A);let j=a.filter(he=>A.has(he.id));p?.(Array.from(A),{selected:Y,selectedItems:j,item:B,event:W});},[a,k,u,P,p]),Q=$__namespace.useCallback((B,W)=>{if(!a)return;let A=new Set(D),Y=!A.has(B.id);Y?A.add(B.id):A.delete(B.id),S||H(A);let j=a.filter(he=>A.has(he.id));v?.(Array.from(A),{checked:Y,checkedItems:j,item:B,event:W});},[a,D,S,v]);return (o||d||b)&&a&&n?jsxRuntime.jsx("div",{ref:h,role:"list",className:i(Xi({variant:t,size:r,className:e})),...w,children:a.map((B,W)=>{let A=k.has(B.id),Y=D.has(B.id);return jsxRuntime.jsxs("div",{role:"listitem","aria-selected":d?A:void 0,draggable:o,onDragStart:o?me=>V(me,W):void 0,onDragOver:o?me=>z(me,W):void 0,onDragLeave:o?G:void 0,onDrop:o?me=>I(me,W):void 0,onDragEnd:o?F:void 0,onClick:d&&!b?me=>O(B,me):void 0,className:i("flex items-center gap-3 transition-all",o&&"cursor-move",d&&!b&&"cursor-pointer hover:bg-muted/50",b&&"cursor-pointer hover:bg-muted/50",C===W&&"opacity-50 scale-[1.02] z-10",M===W&&"border-primary border-dashed border rounded-md",A&&d&&!b&&"bg-primary/10"),children:[o&&l&&c!==false&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground cursor-grab active:cursor-grabbing",children:c??jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-5 w-5"})}),b&&jsxRuntime.jsx(Sw,{checked:Y,onClick:me=>Q(B,me)}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n(B,W)})]},B.id)})}):jsxRuntime.jsx("div",{ref:h,role:"list",className:i(Xi({variant:t,size:r,className:e})),...w,children:y})}var Vw=$__namespace.forwardRef(Hw),zp=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),Bp=$__namespace.forwardRef(({className:e,interactive:t,leading:r,trailing:a,children:n,...o},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:i(zp({interactive:t,className:e})),...o,children:[r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:r}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 whitespace-nowrap",children:a})]}));Bp.displayName="ListItem";var Op=$__namespace.forwardRef(({className:e,primary:t,secondary:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("min-w-0",e),...n,children:[t&&jsxRuntime.jsx("p",{className:"text-sm font-medium leading-none truncate",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:r}),a]}));Op.displayName="ListItemText";var Gp=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),$p=$__namespace.forwardRef(({className:e,position:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,"data-position":t,className:i(Gp({position:t,className:e})),...r}));$p.displayName="Timeline";var _p=classVarianceAuthority.cva("relative flex gap-4 pb-8 last:pb-0",{variants:{variant:{default:"",success:"[&_[data-timeline-dot]]:bg-green-500 [&_[data-timeline-dot]]:border-green-500",warning:"[&_[data-timeline-dot]]:bg-yellow-500 [&_[data-timeline-dot]]:border-yellow-500",error:"[&_[data-timeline-dot]]:bg-red-500 [&_[data-timeline-dot]]:border-red-500",info:"[&_[data-timeline-dot]]:bg-blue-500 [&_[data-timeline-dot]]:border-blue-500"}},defaultVariants:{variant:"default"}}),jp=$__namespace.forwardRef(({className:e,variant:t,hideSeparator:r=false,hideConnector:a=false,dot:n,children:o,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:i(_p({variant:t,className:e})),...s,children:[!r&&jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx("div",{"data-timeline-dot":true,className:"flex h-3 w-3 items-center justify-center rounded-full border-2 border-primary bg-primary",children:n}),!a&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}),o]}));jp.displayName="TimelineItem";var Wp=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex-1 pt-0.5",e),...t}));Wp.displayName="TimelineContent";var Yp=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));Yp.displayName="TimelineOpposite";var Xp=classVarianceAuthority.cva("inline-flex items-center rounded-lg bg-muted p-1 text-muted-foreground",{variants:{size:{sm:"h-8",md:"h-10",lg:"h-12"},fullWidth:{true:"w-full",false:""}},defaultVariants:{size:"md",fullWidth:false}}),qp=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"h-6 text-xs px-2.5",md:"h-8 text-sm px-3",lg:"h-10 text-base px-4"},selected:{true:"bg-background text-foreground shadow-sm",false:""}},defaultVariants:{size:"md",selected:false}}),Zp=$__namespace.createContext({}),Jp=$__namespace.forwardRef(({className:e,size:t="md",fullWidth:r,children:a,value:n,defaultValue:o,onValueChange:s,disabled:l,...c},d)=>{let[u,m]=$__namespace.useState(o),f=n!==void 0?n:u,p=$__namespace.useCallback(b=>{n===void 0&&m(b),s?.(b);},[n,s]);return jsxRuntime.jsx(Zp.Provider,{value:{size:t??"md",value:f,onValueChange:p,disabled:l},children:jsxRuntime.jsx("div",{ref:d,role:"group",className:i(Xp({size:t,fullWidth:r,className:e})),...c,children:a})})});Jp.displayName="SegmentedControl";var Qp=$__namespace.forwardRef(({className:e,children:t,value:r,disabled:a,...n},o)=>{let s=$__namespace.useContext(Zp),l=s.value===r,c=a||s.disabled;return jsxRuntime.jsx("button",{ref:o,type:"button",role:"radio","aria-checked":l,"data-state":l?"on":"off",disabled:c,onClick:()=>{c||s.onValueChange?.(r);},className:i(qp({size:s.size,selected:l}),"flex-1",e),...n,children:t})});Qp.displayName="SegmentedControlItem";var ef=classVarianceAuthority.cva("relative flex flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",{variants:{variant:{default:"border-input bg-background hover:bg-accent/50",active:"border-primary bg-primary/5",error:"border-danger bg-danger/5"},size:{sm:"p-4 min-h-[120px]",md:"p-6 min-h-[160px]",lg:"p-8 min-h-[200px]"}},defaultVariants:{variant:"default",size:"md"}}),tf=e=>{let t=e.type;return t.startsWith("image/")?lucideReact.Image:t.startsWith("video/")?lucideReact.FileVideo:t.startsWith("audio/")?lucideReact.FileAudio:t.includes("pdf")||t.includes("document")?lucideReact.FileText:t.includes("zip")||t.includes("rar")||t.includes("archive")?lucideReact.FileArchive:lucideReact.File},ss=e=>{if(e===0)return "0 Bytes";let t=1024,r=["Bytes","KB","MB","GB"],a=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,a)).toFixed(2))+" "+r[a]},rf=(e,t,r)=>{let a=[];return t&&e.size>t&&a.push({code:"file-too-large",message:`File is larger than ${ss(t)}`}),r&&r.length>0&&(r.some(o=>{if(o.startsWith("."))return e.name.toLowerCase().endsWith(o.toLowerCase());if(o.endsWith("/*")){let s=o.slice(0,-2);return e.type.startsWith(s)}return e.type===o})||a.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${r.join(", ")}`})),a},af=$__namespace.forwardRef(({className:e,variant:t,size:r,onFilesChange:a,onFilesRejected:n,onFileRemove:o,files:s=[],showFileList:l=true,children:c,maxSize:d=10*1024*1024,accept:u,multiple:m=true,disabled:f,...p},b)=>{let[x,g]=$__namespace.useState(false),[v,y]=$__namespace.useState(false),[w,h]=$__namespace.useState([]),C=$__namespace.useRef(null),R=$__namespace.useCallback(D=>{if(!D||D.length===0)return;let V=Array.from(D),z=[],G=[];(m?V:[V[0]]).forEach(F=>{let O=rf(F,d,u);O.length>0?G.push({file:F,errors:O}):z.push(F);}),h(G),z.length>0&&a?.(z),G.length>0&&n?.(G);},[d,u,m,a,n]),M=$__namespace.useCallback(D=>{if(D.preventDefault(),D.stopPropagation(),!f&&(g(true),D.dataTransfer.items)){let z=Array.from(D.dataTransfer.items).some(G=>{if(G.kind!=="file")return true;if(u&&u.length>0){let I=G.type;return !u.some(F=>F.endsWith("/*")?I.startsWith(F.slice(0,-2)):I===F)}return false});y(z);}},[f,u]),T=$__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),!f&&(D.dataTransfer.dropEffect="copy");},[f]),E=$__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation();let V=D.currentTarget.getBoundingClientRect(),z=D.clientX,G=D.clientY;(z<V.left||z>V.right||G<V.top||G>V.bottom)&&(g(false),y(false));},[]),N=$__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),g(false),y(false),!f&&R(D.dataTransfer.files);},[f,R]),P=$__namespace.useCallback(()=>{f||C.current?.click();},[f]),k=$__namespace.useCallback(D=>{R(D.target.files),D.target.value="";},[R]),L=$__namespace.useCallback(D=>{f||(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),C.current?.click());},[f]),H=v?"error":x?"active":t,S=u?.join(",");return jsxRuntime.jsxs("div",{ref:b,className:i("space-y-4",e),...p,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:f?-1:0,onDragEnter:M,onDragOver:T,onDragLeave:E,onDrop:N,onClick:P,onKeyDown:L,className:i(ef({variant:H,size:r}),f&&"opacity-50 cursor-not-allowed",!f&&"cursor-pointer focus:outline-none"),"aria-disabled":f,children:[jsxRuntime.jsx("input",{ref:C,type:"file",accept:S,multiple:m,disabled:f,onChange:k,className:"sr-only",tabIndex:-1}),c||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[jsxRuntime.jsx("div",{className:"rounded-full bg-muted p-3",children:jsxRuntime.jsx(lucideReact.Upload,{className:"h-6 w-6 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium",children:x?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[d&&`Max ${ss(d)}`,u&&u.length>0&&` \u2022 ${u.join(", ")}`]})]})]})]}),w.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:w.map(({file:D,errors:V})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:D.name}),":"," ",V.map(z=>z.message).join(", ")]},D.name))}),l&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(D=>{let V=tf(D.file);return jsxRuntime.jsxs("div",{className:i("flex items-center gap-3 rounded-lg border p-3",D.error&&"border-danger bg-danger/5"),children:[jsxRuntime.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-muted",children:jsxRuntime.jsx(V,{className:"h-5 w-5 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"truncate text-sm font-medium",children:D.file.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[ss(D.file.size),D.error&&jsxRuntime.jsx("span",{className:"ml-2 text-danger",children:D.error})]}),D.progress!==void 0&&D.progress<100&&jsxRuntime.jsx(qo,{value:D.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs(J,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:z=>{z.stopPropagation(),o?.(D.file);},children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]},D.id)})})]})});af.displayName="FileUpload";var _w=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,of=classVarianceAuthority.cva("relative rounded-md border border-input shadow-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"h-4 w-4",sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-12 w-12"},shape:{square:"rounded-md",circle:"rounded-full"},interactive:{true:"cursor-pointer hover:scale-110 active:scale-105",false:"cursor-default"}},defaultVariants:{size:"md",shape:"square",interactive:false}}),Yn=$__namespace.forwardRef(({color:e,isSelected:t,showTransparency:r=true,onSelect:a,size:n,shape:o,interactive:s,className:l,onClick:c,disabled:d,...u},m)=>jsxRuntime.jsx("button",{ref:m,type:"button",disabled:d,onClick:b=>{c?.(b),a?.(e);},className:i(of({size:n,shape:o,interactive:s??(!!a||!!c)}),t&&"ring-2 ring-ring ring-offset-2",l),style:{backgroundImage:r?_w:void 0,backgroundSize:r?"8px 8px":void 0},"aria-label":`Color ${e}`,"aria-pressed":t,...u,children:jsxRuntime.jsx("span",{className:"absolute inset-0 rounded-[inherit]",style:{backgroundColor:e}})}));Yn.displayName="ColorSwatch";var sf=classVarianceAuthority.cva("",{variants:{layout:{grid:"grid gap-2",stack:"flex flex-wrap gap-2"}},defaultVariants:{layout:"stack"}}),lf=$__namespace.forwardRef(({value:e,defaultValue:t,onChange:r,layout:a,columns:n=6,colors:o,swatchSize:s="md",swatchShape:l="square",disabled:c,className:d,style:u,...m},f)=>{let[p,b]=$__namespace.useState(t),x=e??p,g=$__namespace.useCallback(y=>{c||(e===void 0&&b(y),r?.(y));},[e,r,c]),v=y=>y.toLowerCase();return jsxRuntime.jsx("div",{ref:f,role:"listbox","aria-label":"Color options",className:i(sf({layout:a}),d),style:{...a==="grid"?{gridTemplateColumns:`repeat(${n}, 1fr)`}:{},...u},...m,children:o.map(y=>{let w=x?v(x)===v(y):false;return jsxRuntime.jsx(Yn,{role:"option",color:y,size:s,shape:l,isSelected:w,onSelect:g,disabled:c,"aria-selected":w},y)})})});lf.displayName="ColorSwatchPicker";var Yw=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],cf={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},df=$__namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:r,disabled:a,presets:n=Yw,showInput:o=true,size:s="md",className:l,variant:c="full"},d)=>{let[u,m]=$__namespace.useState(e??t),f=$__namespace.useId();$__namespace.useEffect(()=>{e!==void 0&&m(e);},[e]);let p=g=>{m(g),r?.(g);},b=g=>{m(g),r?.(g);},x=g=>{let v=g.target.value.toUpperCase();m(v),r?.(v);};return c==="simple"?jsxRuntime.jsxs("label",{className:i("relative rounded-md border border-input shadow-sm transition-colors cursor-pointer hover:border-foreground focus-within:border-foreground overflow-hidden",a&&"opacity-50 cursor-not-allowed",cf[s],l),children:[jsxRuntime.jsx("input",{type:"color",value:u,onChange:x,disabled:a,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed",id:f}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:u}})]}):jsxRuntime.jsxs(at,{children:[jsxRuntime.jsx(ht,{asChild:true,children:jsxRuntime.jsx("button",{ref:d,disabled:a,className:i("rounded-md border border-input shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",cf[s],l),style:{backgroundColor:u},"aria-label":`Color picker, current color: ${u}`})}),jsxRuntime.jsx(nt,{className:"w-auto p-3",align:"start",children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:u,onChange:p,className:"!w-[200px]"}),o&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(wa,{htmlFor:"color-input",className:"text-xs",children:"Hex Color"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx("div",{className:"h-9 w-9 shrink-0 rounded-md border",style:{backgroundColor:u}}),jsxRuntime.jsx(reactColorful.HexColorInput,{id:"color-input",color:u,onChange:p,prefixed:true,className:"flex h-9 w-full rounded-md border border-input bg-background px-3 py-2 font-mono text-sm uppercase ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"})]})]}),n.length>0&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(wa,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(g=>jsxRuntime.jsx(Yn,{color:g,size:"sm",isSelected:u.toLowerCase()===g.toLowerCase(),onSelect:b},g))})]})]})})]})});df.displayName="ColorPicker";var uf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Ji=e=>String(e).padStart(2,"0"),Jw=e=>{let[t,r]=e.split(":").map(Number);return {hours:t||0,minutes:r||0}},Qw=(e,t)=>`${Ji(e)}:${Ji(t)}`,mf=$__namespace.forwardRef(({className:e,size:t,value:r,onChange:a,use24Hour:n=true,minuteStep:o=1,showPicker:s=true,minTime:l,maxTime:c,disabled:d,...u},m)=>{let[f,p]=$__namespace.useState(r??""),[b,x]=$__namespace.useState(false);$__namespace.useEffect(()=>{r!==void 0&&p(r);},[r]);let{hours:g,minutes:v}=Jw(f||"00:00"),y=E=>{let N=E.target.value;p(N),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(N)&&a?.(N);},w=(E,N)=>{let P=Math.max(0,Math.min(23,E)),k=Math.max(0,Math.min(59,N)),L=Qw(P,k);p(L),a?.(L);},h=()=>w(g+1,v),C=()=>w(g-1,v),R=()=>w(g,v+o),M=()=>w(g,v-o),T=({value:E,onIncrement:N,onDecrement:P})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx(J,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:N,disabled:d,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"flex h-10 w-12 items-center justify-center rounded-md bg-muted text-lg font-semibold",children:Ji(E)}),jsxRuntime.jsx(J,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:P,disabled:d,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})})]});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[jsxRuntime.jsx("input",{ref:m,type:"time",value:f,onChange:y,disabled:d,className:i(uf({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...u}),s&&jsxRuntime.jsxs(at,{open:b,onOpenChange:x,children:[jsxRuntime.jsx(ht,{asChild:true,children:jsxRuntime.jsxs(J,{type:"button",variant:"ghost",size:"sm",className:"absolute right-1 h-7 w-7 p-0",disabled:d,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Pick time"})]})}),jsxRuntime.jsxs(nt,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(T,{value:g,onIncrement:h,onDecrement:C,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(T,{value:v,onIncrement:R,onDecrement:M,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx(J,{variant:"bordered",size:"sm",onClick:()=>{let E=new Date;w(E.getHours(),E.getMinutes());},children:"Now"}),jsxRuntime.jsx(J,{size:"sm",onClick:()=>x(false),children:"Done"})]})]})]})]})});mf.displayName="TimeInput";var pf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),tC=(e,t)=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0).find(o=>o.type==="currency")?.value??e}catch{return e}},Qi=(e,t,r,a)=>{let n=e.toFixed(t),[o,s]=n.split("."),l=o.replace(/\B(?=(\d{3})+(?!\d))/g,r);return s?`${l}${a}${s}`:l},ff=(e,t,r)=>{if(!e)return;let a=e.replace(new RegExp(`\\${t}`,"g"),"");a=a.replace(r,"."),a=a.replace(/[^0-9.-]/g,"");let n=parseFloat(a);return isNaN(n)?void 0:n},gf=$__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a,onChange:n,currency:o="USD",locale:s="en-US",decimals:l=2,min:c,max:d,showCurrency:u=true,currencyPosition:m="prefix",currencySymbol:f,thousandSeparator:p=",",decimalSeparator:b=".",disabled:x,placeholder:g,...v},y)=>{let[w,h]=$__namespace.useState(a),[C,R]=$__namespace.useState(""),[M,T]=$__namespace.useState(false),E=r!==void 0?r:w,N=f??tC(o,s);$__namespace.useEffect(()=>{!M&&E!==void 0&&R(Qi(E,l,p,b));},[E,l,p,b,M]);let P=D=>{let V=D.target.value;if(!V){R(""),r===void 0&&h(void 0),n?.(void 0);return}if(!new RegExp(`^[0-9${p}${b}.-]*$`).test(V))return;R(V);let G=ff(V,p,b);if(G!==void 0){let I=G;c!==void 0&&G<c&&(I=c),d!==void 0&&G>d&&(I=d),r===void 0&&h(I),n?.(I);}},k=()=>{T(true),E!==void 0&&R(E.toString().replace(".",b));},L=()=>{T(false),R(E!==void 0?Qi(E,l,p,b):"");},H=u&&m==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:N}),S=u&&m==="suffix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pl-1",children:N});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[H&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:H}),jsxRuntime.jsx("input",{ref:y,type:"text",inputMode:"decimal",value:C,onChange:P,onFocus:k,onBlur:L,disabled:x,placeholder:g??`0${b}${"0".repeat(l)}`,className:i(pf({size:t}),H&&"pl-8",S&&"pr-8","text-right",e),style:{borderColor:M?"var(--color-foreground)":void 0},...v}),S&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:S})]})});gf.displayName="CurrencyInput";var bf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),el={creditCard:{mask:"#### #### #### ####"},creditCardAmex:{mask:"#### ###### #####"},cvv:{mask:"###"},expiry:{mask:"##/##"},date:{mask:"##/##/####"},dateISO:{mask:"####-##-##"},time:{mask:"##:##"},ip:{mask:"###.###.###.###"},mac:{mask:"AA:AA:AA:AA:AA:AA"},id11:{mask:"###########"},id9:{mask:"#########"},id10:{mask:"##########"},postal5:{mask:"#####"},postal9:{mask:"#####-####"}},nC=(e,t)=>{switch(t){case "#":return /\d/.test(e);case "A":return /[a-zA-Z]/.test(e);case "*":return /[a-zA-Z0-9]/.test(e);default:return e===t}},ta=e=>["#","A","*"].includes(e),ls=(e,t,r)=>{let a="",n=0;for(let o=0;o<t.length&&n<=e.length;o++){let s=t[o];if(ta(s)){if(n<e.length){let l=e[n];nC(l,s)?(a+=l,n++):(n++,o--);}}else (n<e.length||r)&&(a+=s);}return a},tl=(e,t)=>{let r="";for(let a=0;a<e.length&&a<t.length;a++){let n=t[a];ta(n)&&(r+=e[a]);}return r},vf=(e,t)=>e.split("").map(r=>ta(r)?t:r).join(""),oC=(e,t,r)=>{let a=0;for(let l=0;l<r&&l<e.length&&l<t.length;l++)ta(t[l])&&a++;let o=0,s=0;for(let l=0;l<t.length&&s<a;l++)o++,ta(t[l])&&s++;for(;o<t.length&&!ta(t[o]);)o++;return Math.min(o,e.length)},hf=$__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,mask:o,maskPlaceholder:s="_",showMaskPlaceholder:l=false,includeMaskChars:c=false,disabled:d,placeholder:u,...m},f)=>{let p=typeof o=="string"&&o in el?el[o].mask:o,[b,x]=$__namespace.useState(a),[g,v]=$__namespace.useState(""),[y,w]=$__namespace.useState(false),h=$__namespace.useRef(null),C=r!==void 0?r:b;$__namespace.useImperativeHandle(f,()=>h.current),$__namespace.useEffect(()=>{let E=ls(C,p,true);v(E);},[C,p]);let R=E=>{let N=E.target.value,P=E.target.selectionStart??0,k=N.replace(/[^\w]/g,""),L=ls(k,p,true),H=tl(L,p);v(L),r===void 0&&x(c?L:H),n?.(H,L),requestAnimationFrame(()=>{if(h.current){let S=oC(L,p,P);h.current.setSelectionRange(S,S);}});},M=E=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(E.key)||E.ctrlKey||E.metaKey)return;let N=h.current;if(!N)return;let P=N.selectionStart??0;if(E.key==="Backspace"&&P>0){let k=P-1;for(;k>0&&!ta(p[k]);)k--;let L=tl(g,p),H=0;for(let V=0;V<k&&V<p.length;V++)ta(p[V])&&H++;let S=L.slice(0,Math.max(0,H-1))+L.slice(H),D=ls(S,p,true);v(D),r===void 0&&x(c?D:S),n?.(S,D),E.preventDefault(),requestAnimationFrame(()=>{h.current&&h.current.setSelectionRange(k,k);});}},T=l?vf(p,s):u;return jsxRuntime.jsx("input",{ref:h,type:"text",value:g,onChange:R,onKeyDown:M,onFocus:()=>w(true),onBlur:()=>w(false),disabled:d,placeholder:T,className:i(bf({size:t}),e),style:{borderColor:y?"var(--color-foreground)":void 0},...m})});hf.displayName="MaskedInput";var xf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),us={"DD/MM/YYYY":"/","MM/DD/YYYY":"/","YYYY-MM-DD":"-","DD.MM.YYYY":"."},al={"DD/MM/YYYY":["day","month","year"],"MM/DD/YYYY":["month","day","year"],"YYYY-MM-DD":["year","month","day"],"DD.MM.YYYY":["day","month","year"]},rl=(e,t)=>String(e).padStart(t,"0"),ds=(e,t)=>{let r=rl(e.getDate(),2),a=rl(e.getMonth()+1,2),n=rl(e.getFullYear(),4),o=us[t],s=al[t],l={day:r,month:a,year:n};return s.map(c=>l[c]).join(o)},yf=(e,t)=>{let r=us[t],a=e.split(r);if(a.length!==3)return null;let n=al[t],o={};if(n.forEach((l,c)=>{o[l]=parseInt(a[c],10);}),isNaN(o.day)||isNaN(o.month)||isNaN(o.year)||o.month<1||o.month>12||o.day<1||o.day>31||o.year<1e3||o.year>9999)return null;let s=new Date(o.year,o.month-1,o.day);return s.getFullYear()!==o.year||s.getMonth()!==o.month-1||s.getDate()!==o.day?null:s},cC=e=>e.toLowerCase(),dC=e=>{let t=us[e];return al[e].map(a=>a==="year"?"####":"##").join(t)},Rf=$__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a,onChange:n,format:o="DD/MM/YYYY",minDate:s,maxDate:l,showIcon:c=true,disabled:d,placeholder:u,...m},f)=>{let[p,b]=$__namespace.useState(a??null),[x,g]=$__namespace.useState(""),[v,y]=$__namespace.useState(null),w=$__namespace.useRef(null),h=r!==void 0?r:p;$__namespace.useImperativeHandle(f,()=>w.current),$__namespace.useEffect(()=>{h?(g(ds(h,o)),y(null)):g("");},[h,o]);let C=us[o],R=dC(o),M=N=>{let P=N.target.value;P=P.replace(new RegExp(`[^0-9\\${C}]`,"g"),"");let k=P.replace(new RegExp(`\\${C}`,"g"),""),L="",H=0;for(let S=0;S<R.length&&H<k.length;S++)R[S]==="#"?(L+=k[H],H++):L+=R[S];if(g(L),L.length===R.length){let S=yf(L,o);if(S){if(s&&S<s){y(`Date must be after ${ds(s,o)}`);return}if(l&&S>l){y(`Date must be before ${ds(l,o)}`);return}y(null),r===void 0&&b(S),n?.(S);}else y("Invalid date");}else r===void 0&&b(null),n?.(null),y(null);},T=()=>{x&&x.length!==R.length&&(g(""),y(null),r===void 0&&b(null),n?.(null));},E=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4";return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{ref:w,type:"text",inputMode:"numeric",value:x,onChange:M,onBlur:T,disabled:d,placeholder:u??cC(o),className:i(xf({size:t}),c&&"pr-10",v&&"border-danger focus-visible:ring-danger",e),"aria-invalid":!!v,"aria-describedby":v?"date-error":void 0,...m}),c&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2",children:jsxRuntime.jsx(lucideReact.Calendar,{className:i(E,"text-muted-foreground")})}),v&&jsxRuntime.jsx("p",{id:"date-error",className:"mt-1 text-xs text-danger",children:v})]})});Rf.displayName="DateInput";var Cf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Nf=[{code:"AR",name:"Argentina",dialCode:"+54",flag:"\u{1F1E6}\u{1F1F7}",format:"## ####-####"},{code:"AU",name:"Australia",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}",format:"### ### ###"},{code:"AT",name:"Austria",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}",format:"### #######"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}",format:"### ## ## ##"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"\u{1F1E7}\u{1F1F7}",format:"(##) #####-####"},{code:"BG",name:"Bulgaria",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}",format:"### ### ###"},{code:"CA",name:"Canada",dialCode:"+1",flag:"\u{1F1E8}\u{1F1E6}",format:"(###) ###-####"},{code:"CN",name:"China",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}",format:"### #### ####"},{code:"HR",name:"Croatia",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}",format:"## ### ####"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}",format:"### ### ###"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}",format:"## ## ## ##"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"\u{1F1EA}\u{1F1EC}",format:"### ### ####"},{code:"FI",name:"Finland",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}",format:"## ### ####"},{code:"FR",name:"France",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}",format:"# ## ## ## ##"},{code:"DE",name:"Germany",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}",format:"#### #######"},{code:"GR",name:"Greece",dialCode:"+30",flag:"\u{1F1EC}\u{1F1F7}",format:"### ### ####"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"\u{1F1ED}\u{1F1F0}",format:"#### ####"},{code:"HU",name:"Hungary",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}",format:"## ### ####"},{code:"IN",name:"India",dialCode:"+91",flag:"\u{1F1EE}\u{1F1F3}",format:"##### #####"},{code:"IL",name:"Israel",dialCode:"+972",flag:"\u{1F1EE}\u{1F1F1}",format:"##-###-####"},{code:"IT",name:"Italy",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}",format:"### ### ####"},{code:"JP",name:"Japan",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}",format:"##-####-####"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"\u{1F1F2}\u{1F1FD}",format:"### ### ####"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}",format:"## ########"},{code:"NZ",name:"New Zealand",dialCode:"+64",flag:"\u{1F1F3}\u{1F1FF}",format:"## ### ####"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"\u{1F1F3}\u{1F1EC}",format:"### ### ####"},{code:"NO",name:"Norway",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}",format:"### ## ###"},{code:"PK",name:"Pakistan",dialCode:"+92",flag:"\u{1F1F5}\u{1F1F0}",format:"### #######"},{code:"PL",name:"Poland",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}",format:"### ### ###"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}",format:"### ### ###"},{code:"RO",name:"Romania",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}",format:"### ### ###"},{code:"RU",name:"Russia",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}",format:"(###) ###-##-##"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"\u{1F1F8}\u{1F1E6}",format:"## ### ####"},{code:"RS",name:"Serbia",dialCode:"+381",flag:"\u{1F1F7}\u{1F1F8}",format:"## ### ####"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"\u{1F1F8}\u{1F1EC}",format:"#### ####"},{code:"SK",name:"Slovakia",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}",format:"### ### ###"},{code:"SI",name:"Slovenia",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}",format:"## ### ###"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"\u{1F1FF}\u{1F1E6}",format:"## ### ####"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"\u{1F1F0}\u{1F1F7}",format:"##-####-####"},{code:"ES",name:"Spain",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}",format:"### ### ###"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}",format:"##-### ## ##"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}",format:"## ### ## ##"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"\u{1F1F9}\u{1F1FC}",format:"### ### ###"},{code:"TR",name:"Turkey",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}",format:"(###) ### ## ##"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}",format:"## ### ## ##"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"\u{1F1E6}\u{1F1EA}",format:"## ### ####"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}",format:"#### ### ####"},{code:"US",name:"United States",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}",format:"(###) ###-####"}],ms=(e,t)=>{let r=e.replace(/\D/g,""),a="",n=0;for(let o=0;o<t.length&&n<r.length;o++)t[o]==="#"?(a+=r[n],n++):a+=t[o];return a},gC=e=>e.replace(/#/g,"_"),Mf=$__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,country:o,defaultCountry:s="TR",onCountryChange:l,countries:c=Nf,showCountrySelect:d=true,showDialCode:u=false,disabled:m,placeholder:f,...p},b)=>{let[x,g]=$__namespace.useState(a),[v,y]=$__namespace.useState(o??s),[w,h]=$__namespace.useState(false),[C,R]=$__namespace.useState(false),[M,T]=$__namespace.useState(false),[E,N]=$__namespace.useState({top:0,left:0,width:0}),P=$__namespace.useRef(null),k=$__namespace.useRef(null),L=r!==void 0?r:x,H=o??v,S=c.find(I=>I.code===H)??c[0],D=ms(L,S.format);$__namespace.useEffect(()=>{T(true);},[]),$__namespace.useEffect(()=>{if(C&&P.current){let I=P.current.getBoundingClientRect();N({top:I.bottom+4,left:I.left,width:Math.max(I.width,280)});}},[C]),$__namespace.useEffect(()=>{if(!C)return;let I=F=>{P.current&&!P.current.contains(F.target)&&k.current&&!k.current.contains(F.target)&&R(false);};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[C]),$__namespace.useEffect(()=>{if(!C)return;let I=F=>{F.key==="Escape"&&R(false);};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[C]);let V=I=>{let O=I.target.value.replace(/\D/g,"");r===void 0&&g(O);let Q=ms(O,S.format),re=`${S.dialCode} ${Q}`;n?.(O,re,S);},z=I=>{let F=c.find(re=>re.code===I);if(!F)return;o===void 0&&y(I),l?.(F);let O=ms(L,F.format),Q=`${F.dialCode} ${O}`;n?.(L,Q,F),R(false);};return jsxRuntime.jsxs("div",{className:"flex",children:[d&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{ref:P,type:"button",disabled:m,onClick:()=>R(!C),className:i("flex items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50","w-[100px] rounded-r-none border-r-0 shrink-0",t==="sm"?"h-8":t==="lg"?"h-12":"h-10"),children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:S.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:S.dialCode})]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 opacity-50 transition-transform",C&&"rotate-180")})]}),M&&C&&$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:k,className:"fixed z-50 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95",style:{top:E.top,left:E.left,minWidth:E.width},children:jsxRuntime.jsx(We,{style:{maxHeight:300},children:jsxRuntime.jsx("div",{className:"p-1",children:c.map(I=>jsxRuntime.jsxs("div",{role:"option","aria-selected":I.code===H,onClick:()=>z(I.code),className:"relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:I.code===H&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:I.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:I.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:I.dialCode})]})]},I.code))})})}),document.body)]}),jsxRuntime.jsxs("div",{className:"relative flex-1",children:[u&&!d&&jsxRuntime.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:S.dialCode}),jsxRuntime.jsx("input",{ref:b,type:"tel",inputMode:"tel",value:D,onChange:V,onFocus:()=>h(true),onBlur:()=>h(false),disabled:m,placeholder:f??gC(S.format),className:i(Cf({size:t}),d&&"rounded-l-none",u&&!d&&"pl-12",e),style:{borderColor:w?"var(--color-foreground)":void 0},...p})]})]})});Mf.displayName="PhoneInput";var Pf=classVarianceAuthority.cva("flex items-center justify-between w-full px-4 py-3 border-b bg-background",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-background border-border",ghost:"bg-transparent border-transparent",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-border"},size:{sm:"h-12 px-3 py-2",md:"h-14 px-4 py-3",lg:"h-16 px-6 py-4"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"outline",size:"md",sticky:false}}),kf=$__namespace.forwardRef(({className:e,variant:t,size:r,sticky:a,brand:n,children:o,mobileBreakpoint:s="md",...l},c)=>{let[d,u]=$__namespace.useState(false),m={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],f={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:c,className:i(Pf({variant:t,size:r,sticky:a,className:e})),...l,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between w-full",children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:n}),jsxRuntime.jsx("div",{className:i("items-center gap-4 flex-1 justify-end",m),children:o}),jsxRuntime.jsx("button",{type:"button",className:i("p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",f),onClick:()=>u(!d),"aria-label":d?"Close menu":"Open menu","aria-expanded":d,children:d?jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"})})]}),d&&jsxRuntime.jsx("div",{className:i("absolute top-full left-0 right-0 flex flex-col gap-2 p-4 bg-background border-b border-border shadow-lg",f),children:o})]})});kf.displayName="Navbar";var Ef=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center gap-2 font-semibold text-lg",e),...t}));Ef.displayName="NavbarBrand";var Lf=$__namespace.forwardRef(({className:e,justify:t="start",...r},a)=>{let n={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:a,className:i("flex items-center gap-4",n,e),...r})});Lf.displayName="NavbarContent";var Df=$__namespace.forwardRef(({className:e,isActive:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("flex items-center",t&&"text-primary font-medium",e),...r}));Df.displayName="NavbarItem";var Sf=$__namespace.forwardRef(({className:e,isActive:t,...r},a)=>jsxRuntime.jsx("a",{ref:a,className:i("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...r}));Sf.displayName="NavbarLink";var Vf=classVarianceAuthority.cva("inline-flex items-center gap-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"text-primary-foreground bg-primary px-2 py-0.5 rounded hover:bg-primary/90",outline:"text-primary underline-offset-4 hover:underline",ghost:"text-foreground hover:text-primary",soft:"text-primary bg-primary/10 px-2 py-0.5 rounded hover:bg-primary/20",surface:"text-foreground bg-muted px-2 py-0.5 rounded hover:bg-muted/80"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"},underline:{none:"",hover:"hover:underline underline-offset-4",always:"underline underline-offset-4"}},defaultVariants:{variant:"outline",size:"md",underline:"hover"}}),If=$__namespace.forwardRef(({className:e,variant:t,size:r,underline:a,isExternal:n,showExternalIcon:o=true,isDisabled:s,children:l,...c},d)=>{let u=n?{target:"_blank",rel:"noopener noreferrer"}:{};return jsxRuntime.jsxs("a",{ref:d,className:i(Vf({variant:t,size:r,underline:a,className:e}),s&&"pointer-events-none opacity-50"),"aria-disabled":s,...u,...c,children:[l,n&&o&&jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-3 w-3 ml-0.5","aria-hidden":"true"})]})});If.displayName="Link";var Af=classVarianceAuthority.cva("fixed z-50 transition-all duration-300",{variants:{position:{"bottom-right":"bottom-6 right-6","bottom-left":"bottom-6 left-6","bottom-center":"bottom-6 left-1/2 -translate-x-1/2"}},defaultVariants:{position:"bottom-right"}}),zf=$__namespace.forwardRef(({className:e,position:t,threshold:r=400,icon:a,behavior:n="smooth",variant:o="solid",color:s="default",size:l="md",radius:c="full",target:d,onVisibilityChange:u,onClick:m,...f},p)=>{let[b,x]=$__namespace.useState(false);$__namespace.useEffect(()=>{let y=d?.current||window,w=()=>{let C=(d?.current?d.current.scrollTop:window.scrollY||document.documentElement.scrollTop)>r;C!==b&&(x(C),u?.(C));};return y.addEventListener("scroll",w,{passive:true}),w(),()=>{y.removeEventListener("scroll",w);}},[r,d,b,u]);let g=y=>{d?.current?d.current.scrollTo({top:0,behavior:n}):window.scrollTo({top:0,behavior:n}),m?.(y);},v=l==="sm"?"h-4 w-4":l==="lg"?"h-6 w-6":"h-5 w-5";return jsxRuntime.jsx("div",{className:i(Af({position:t}),b?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-4 pointer-events-none",e),children:jsxRuntime.jsx(J,{ref:p,type:"button",variant:o,color:s,size:"icon",radius:c,onClick:g,"aria-label":"Back to top",className:i("shadow-lg",l==="sm"&&"h-9 w-9",l==="md"&&"h-10 w-10",l==="lg"&&"h-12 w-12"),...f,children:a||jsxRuntime.jsx(lucideReact.ArrowUp,{className:v})})})});zf.displayName="BackTop";var EC=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},defaultVariants:{radius:"sm"}}),LC=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"sm"}}),Bf=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-2xl"}},defaultVariants:{radius:"sm"}}),gs=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-xl"}},defaultVariants:{radius:"sm"}}),Of=$__namespace.createContext(null),aa=()=>{let e=$__namespace.useContext(Of);if(!e)throw new Error("Menubar components must be used within a Menubar");return e},Ff=$__namespace.createContext(null),Xn=()=>{let e=$__namespace.useContext(Ff);if(!e)throw new Error("Menu components must be used within a MenubarMenu");return e},ol=$__namespace.createContext(null),Kf=$__namespace.createContext(null),Gf=$__namespace.forwardRef(({className:e,children:t,radius:r="sm",...a},n)=>{let[o,s]=$__namespace.useState(null);return jsxRuntime.jsx(Of.Provider,{value:{activeMenu:o,setActiveMenu:s,radius:r},children:jsxRuntime.jsx("div",{ref:n,role:"menubar",className:i("flex h-10 items-center space-x-1 border bg-background p-1",EC({radius:r}),e),...a,children:t})})});Gf.displayName="Menubar";var $f=({children:e})=>{let{activeMenu:t,setActiveMenu:r}=aa(),a=$__namespace.useId(),n=$__namespace.useRef(null),o=t===a,s=$__namespace.useCallback(l=>{r(l?a:null);},[a,r]);return jsxRuntime.jsx(Ff.Provider,{value:{menuId:a,triggerRef:n,open:o,onOpenChange:s},children:e})};$f.displayName="MenubarMenu";var _f=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"group",className:e,...t}));_f.displayName="MenubarGroup";var jf=({children:e,container:t})=>{let[r,a]=$__namespace.useState(false);return $__namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};jf.displayName="MenubarPortal";var Wf=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=$__namespace.useState(r),s=t!==void 0,l=s?t:n,c=$__namespace.useRef(null),d=$__namespace.useCallback(u=>{s||o(u),a?.(u);},[s,a]);return jsxRuntime.jsx(ol.Provider,{value:{open:l,onOpenChange:d,triggerRef:c},children:e})};Wf.displayName="MenubarSub";var Yf=$__namespace.forwardRef(({value:e="",onValueChange:t,className:r,...a},n)=>jsxRuntime.jsx(Kf.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:n,role:"group",className:r,...a})}));Yf.displayName="MenubarRadioGroup";var Uf=$__namespace.forwardRef(({className:e,onClick:t,onMouseEnter:r,...a},n)=>{let{activeMenu:o,setActiveMenu:s,radius:l}=aa(),{menuId:c,triggerRef:d,open:u,onOpenChange:m}=Xn(),f=b=>{t?.(b),m(!u);},p=b=>{r?.(b),o&&o!==c&&(s(c),document.activeElement instanceof HTMLElement&&document.activeElement.blur());};return jsxRuntime.jsx("button",{ref:b=>{d.current=b,typeof n=="function"?n(b):n&&(n.current=b);},type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":u,"data-state":u?"open":"closed",className:i("flex cursor-default select-none items-center px-3 py-1.5 text-sm font-medium outline-none hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",LC({radius:l}),e),onClick:f,onMouseEnter:p,...a})});Uf.displayName="MenubarTrigger";var Xf=$__namespace.forwardRef(({className:e,inset:t,children:r,onMouseEnter:a,onMouseLeave:n,...o},s)=>{let{radius:l}=aa(),c=$__namespace.useContext(ol);if(!c)throw new Error("MenubarSubTrigger must be used within MenubarSub");let{open:d,onOpenChange:u,triggerRef:m}=c,f=b=>{a?.(b),u(true);},p=b=>{n?.(b),u(false);};return jsxRuntime.jsxs("div",{ref:b=>{m.current=b,typeof s=="function"?s(b):s&&(s.current=b);},role:"menuitem","aria-haspopup":"menu","aria-expanded":d,"data-state":d?"open":"closed",className:i("flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",gs({radius:l}),t&&"pl-8",e),onMouseEnter:f,onMouseLeave:p,...o,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});Xf.displayName="MenubarSubTrigger";var qf=$__namespace.forwardRef(({className:e,sideOffset:t=2,onMouseEnter:r,onMouseLeave:a,...n},o)=>{let{radius:s}=aa(),l=$__namespace.useContext(ol);if(!l)throw new Error("MenubarSubContent must be used within MenubarSub");let{open:c,onOpenChange:d,triggerRef:u}=l,[m,f]=$__namespace.useState({top:0,left:0}),[p,b]=$__namespace.useState(false),x=$__namespace.useRef(null);$__namespace.useEffect(()=>{b(true);},[]),$__namespace.useEffect(()=>{if(!c||!u.current||!x.current)return;(()=>{if(!u.current||!x.current)return;let w=u.current.getBoundingClientRect(),h=x.current.getBoundingClientRect(),C=w.top,R=w.right+t;R+h.width>window.innerWidth&&(R=w.left-h.width-t),f({top:C,left:R});})();},[c,t,u]);let g=y=>{r?.(y),d(true);},v=y=>{a?.(y),d(false);};return !p||!c?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:y=>{x.current=y,typeof o=="function"?o(y):o&&(o.current=y);},role:"menu","data-state":c?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",Bf({radius:s}),e),style:{top:m.top,left:m.left},onMouseEnter:g,onMouseLeave:v,...n}),document.body)});qf.displayName="MenubarSubContent";var Zf=$__namespace.forwardRef(({className:e,align:t="start",alignOffset:r=-4,sideOffset:a=8,children:n,...o},s)=>{let{radius:l}=aa(),{triggerRef:c,open:d,onOpenChange:u}=Xn(),[m,f]=$__namespace.useState({top:0,left:0}),[p,b]=$__namespace.useState(false),x=$__namespace.useRef(null);return $__namespace.useEffect(()=>{b(true);},[]),$__namespace.useEffect(()=>{if(!d||!c.current||!x.current)return;let g=()=>{if(!c.current||!x.current)return;let v=c.current.getBoundingClientRect(),y=x.current.getBoundingClientRect(),w=v.bottom+a,h=v.left+r;t==="center"?h=v.left+v.width/2-y.width/2:t==="end"&&(h=v.right-y.width-r),f({top:w,left:h});};return g(),window.addEventListener("resize",g),window.addEventListener("scroll",g,true),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g,true);}},[d,t,r,a,c]),$__namespace.useEffect(()=>{if(!d)return;let g=v=>{let y=v.target;x.current&&!x.current.contains(y)&&c.current&&!c.current.contains(y)&&u(false);};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[d,u,c]),$__namespace.useEffect(()=>{if(!d)return;let g=v=>{v.key==="Escape"&&u(false);};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[d,u]),!p||!d?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:g=>{x.current=g,typeof s=="function"?s(g):s&&(s.current=g);},role:"menu","data-state":d?"open":"closed",className:i("fixed z-50 min-w-[12rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-md","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",Bf({radius:l}),e),style:{top:m.top,left:m.left},...o,children:n}),document.body)});Zf.displayName="MenubarContent";var Jf=$__namespace.forwardRef(({className:e,inset:t,disabled:r,onSelect:a,onClick:n,...o},s)=>{let{radius:l}=aa(),{onOpenChange:c}=Xn(),d=u=>{if(r){u.preventDefault();return}n?.(u),a?.(),c(false);};return jsxRuntime.jsx("div",{ref:s,role:"menuitem",tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,className:i("relative flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",gs({radius:l}),t&&"pl-8",!r&&"cursor-pointer",e),onClick:d,...o})});Jf.displayName="MenubarItem";var Qf=$__namespace.forwardRef(({className:e,children:t,checked:r=false,onCheckedChange:a,disabled:n,onClick:o,...s},l)=>{let{radius:c}=aa(),{onOpenChange:d}=Xn(),u=m=>{if(n){m.preventDefault();return}o?.(m),a?.(!r),d(false);};return jsxRuntime.jsxs("div",{ref:l,role:"menuitemcheckbox","aria-checked":r,tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-state":r?"checked":"unchecked",className:i("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",gs({radius:c}),!n&&"cursor-pointer",e),onClick:u,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});Qf.displayName="MenubarCheckboxItem";var eg=$__namespace.forwardRef(({className:e,children:t,value:r,disabled:a,onClick:n,...o},s)=>{let{radius:l}=aa(),{onOpenChange:c}=Xn(),d=$__namespace.useContext(Kf),u=d?.value===r,m=f=>{if(a){f.preventDefault();return}n?.(f),d?.onValueChange(r),c(false);};return jsxRuntime.jsxs("div",{ref:s,role:"menuitemradio","aria-checked":u,tabIndex:a?-1:0,"aria-disabled":a,"data-disabled":a?"":void 0,"data-state":u?"checked":"unchecked",className:i("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",gs({radius:l}),!a&&"cursor-pointer",e),onClick:m,...o,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})}),t]})});eg.displayName="MenubarRadioItem";var tg=$__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));tg.displayName="MenubarLabel";var rg=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("-mx-1 my-1 h-px bg-muted",e),...t}));rg.displayName="MenubarSeparator";var ag=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});ag.displayName="MenubarShortcut";var ng=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center",vertical:"flex-col"},size:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"horizontal",size:"md"}}),og=$__namespace.forwardRef(({className:e,orientation:t,size:r,currentStep:a=0,children:n,...o},s)=>{let l=$__namespace.Children.toArray(n);return jsxRuntime.jsx("div",{ref:s,className:i(ng({orientation:t,size:r,className:e})),...o,children:l.map((c,d)=>$__namespace.isValidElement(c)?$__namespace.cloneElement(c,{...c.props,stepNumber:d+1,status:c.props.status||(d<a?"completed":d===a?"current":"upcoming"),isLast:d===l.length-1,orientation:t,size:r}):c)})});og.displayName="Steps";var sg=classVarianceAuthority.cva("flex items-center",{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col items-start"},size:{sm:"gap-2",md:"gap-3",lg:"gap-4"}},defaultVariants:{orientation:"horizontal",size:"md"}}),SC=classVarianceAuthority.cva("flex items-center justify-center rounded-full font-medium transition-colors",{variants:{status:{completed:"bg-primary text-primary-foreground",current:"bg-primary text-primary-foreground ring-2 ring-primary ring-offset-2 ring-offset-background",upcoming:"bg-muted text-muted-foreground border-2 border-muted-foreground/30"},size:{sm:"h-6 w-6 text-xs",md:"h-8 w-8 text-sm",lg:"h-10 w-10 text-base"}},defaultVariants:{status:"upcoming",size:"md"}}),HC=classVarianceAuthority.cva("bg-muted transition-colors",{variants:{orientation:{horizontal:"h-0.5 flex-1 min-w-8",vertical:"w-0.5 min-h-8 ml-4"},status:{completed:"bg-primary",current:"bg-muted",upcoming:"bg-muted"}},defaultVariants:{orientation:"horizontal",status:"upcoming"}}),ig=$__namespace.forwardRef(({className:e,orientation:t="horizontal",size:r="md",title:a,description:n,icon:o,status:s="upcoming",stepNumber:l,isLast:c,...d},u)=>jsxRuntime.jsxs("div",{ref:u,className:i(sg({orientation:t,size:r,className:e}),!c&&t==="horizontal"&&"flex-1"),...d,children:[jsxRuntime.jsx("div",{className:i("flex items-center",t==="vertical"&&"flex-col items-start"),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:i(SC({status:s,size:r})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:r==="sm"?"h-3 w-3":r==="lg"?"h-5 w-5":"h-4 w-4"}):o||l}),(a||n)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[a&&jsxRuntime.jsx("span",{className:i("font-medium",r==="sm"&&"text-sm",r==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:a}),n&&jsxRuntime.jsx("span",{className:i("text-muted-foreground",r==="sm"&&"text-xs",r==="md"&&"text-sm",r==="lg"&&"text-base"),children:n})]})]})}),!c&&jsxRuntime.jsx("div",{className:i(HC({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));ig.displayName="Step";var cg=classVarianceAuthority.cva("flex flex-col select-none",{variants:{variant:{default:"",bordered:"rounded-lg border",filled:"bg-muted/30 rounded-lg p-2"},size:{sm:"[--tree-indent:16px] [--tree-item-height:28px] text-xs",md:"[--tree-indent:20px] [--tree-item-height:32px] text-sm",lg:"[--tree-indent:24px] [--tree-item-height:40px] text-base"}},defaultVariants:{variant:"default",size:"md"}}),dg=classVarianceAuthority.cva("flex items-center py-1.5 px-2 rounded-sm transition-colors",{variants:{size:{sm:"py-1 px-1.5 text-sm min-h-[var(--tree-item-height)]",md:"py-1.5 px-2 text-sm min-h-[var(--tree-item-height)]",lg:"py-2 px-3 text-base min-h-[var(--tree-item-height)]"},isSelected:{true:"bg-primary/10 text-primary",false:""},isDragging:{true:"opacity-50",false:""},isDisabled:{true:"opacity-50 cursor-not-allowed",false:""},isHoverable:{true:"hover:bg-muted/50 cursor-pointer",false:""}},defaultVariants:{size:"md",isSelected:false,isDragging:false,isDisabled:false,isHoverable:true}}),ug=$__namespace.createContext(null),KC=()=>{let e=$__namespace.useContext(ug);if(!e)throw new Error("TreeNodeComponent must be used within Tree");return e},GC=({checked:e,indeterminate:t,disabled:r,onClick:a})=>jsxRuntime.jsx("button",{type:"button",role:"checkbox","aria-checked":t?"mixed":e,disabled:r,onClick:n=>{n.stopPropagation(),r||a(n);},className:i("h-4 w-4 shrink-0 rounded-sm border border-primary transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",(e||t)&&"bg-primary text-primary-foreground",r&&"cursor-not-allowed opacity-50"),children:(e||t)&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:t?jsxRuntime.jsx(lucideReact.Minus,{className:"h-3 w-3"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})}),mg=({node:e,level:t,isLast:r=false,parentIsLastPath:a=[]})=>{let{expandedKeys:n,toggleExpand:o,selectedKeys:s,handleSelect:l,selectable:c,checkedKeys:d,halfCheckedKeys:u,handleCheck:m,checkable:f,draggable:p,draggedNode:b,setDraggedNode:x,dragOverKey:g,dragOverPosition:v,setDragOver:y,handleDrop:w,allowDrop:h,onDragStart:C,onDragOver:R,onDragEnter:M,onDragLeave:T,onDragEnd:E,showLine:N,showIcon:P,showHandle:k,dragIcon:L,icon:H,leafIcon:S,folderIcon:D,folderOpenIcon:V,blockNode:z,disabled:G,size:I,getAllKeys:F}=KC(),O=e.children&&e.children.length>0,Q=e.isLeaf??!O,re=n.has(e.key),K=s.has(e.key),B=d.has(e.key),W=u.has(e.key),A=b?.key===e.key,Y=g===e.key,j=!!(G||e.disabled),he=c&&e.selectable!==false,me=f&&e.checkable!==false,Ar=$__namespace.useMemo(()=>j?false:typeof p=="boolean"?p:typeof p=="function"?p(e):p&&typeof p=="object"?p.nodeDraggable?p.nodeDraggable(e):true:false,[p,e,j]),ne=$__namespace.useMemo(()=>L!==void 0?L:typeof p=="object"&&p.icon!==void 0?p.icon:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4"}),[L,p]),rt=$__namespace.useMemo(()=>e.icon?e.icon:H?typeof H=="function"?H({expanded:re,isLeaf:Q}):H:Q?S:re?V:D,[e.icon,H,re,Q,S,D,V]),zr=U=>{if(!Ar)return;U.stopPropagation(),U.dataTransfer.effectAllowed="move";let Se=U.currentTarget,ie=Se.cloneNode(true),Ke=document.documentElement.classList.contains("dark"),Ge=Ke?"#0a0a0a":"#ffffff",Or=Ke?"#27272a":"#e4e4e7";ie.style.cssText=`
43
+ `;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:p}}),jsxRuntime.jsx("div",{ref:s,id:d,onMouseEnter:()=>c(true),onMouseLeave:()=>c(false),style:n,className:i("h-full w-full",t==="vertical"&&"overflow-y-auto overflow-x-hidden",t==="horizontal"&&"overflow-x-auto overflow-y-hidden",t==="both"&&"overflow-auto",e),...o,children:a})]})});je.displayName="ScrollArea";var dd=classVarianceAuthority.cva("flex min-h-10 w-full cursor-pointer items-center justify-between border border-zinc-300 dark:border-zinc-700 bg-background px-3 py-2 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),ud=$__namespace.forwardRef(({options:e,multiple:t=false,value:r,defaultValue:a,onValueChange:n,placeholder:o="Select...",searchable:s=false,searchPlaceholder:l="Search...",emptyText:c="No results found.",disabled:d=false,clearable:m=false,maxDisplayItems:u=3,maxDropdownHeight:f=240,radius:p,className:b,...x},g)=>{let[v,y]=$__namespace.useState(false),[w,h]=$__namespace.useState(""),[C,R]=$__namespace.useState(a||""),[M,T]=$__namespace.useState(a||[]),[L,N]=$__namespace.useState({top:0,left:0,width:0}),P=$__namespace.useRef(null),k=$__namespace.useRef(null),E=$__namespace.useRef(null),H=$__namespace.useRef(null),S=r!==void 0?r:C,D=r!==void 0?r:M,I=r!==void 0,z=A=>{m&&S===A?(I||R(""),n?.("")):(I||R(A),n?.(A)),y(false),h("");},G=A=>{let U=D.includes(A)?D.filter(W=>W!==A):[...D,A];I||T(U),n?.(U);},V=(A,U)=>{U.stopPropagation();let W=D.filter(he=>he!==A);I||T(W),n?.(W);},F=A=>{A.stopPropagation(),t?(I||T([]),n?.([])):(I||R(""),n?.(""));},O=e.find(A=>A.value===S),Q=e.filter(A=>D.includes(A.value)),re=Q.slice(0,u),K=Q.length-u,B=s?e.filter(A=>A.label.toLowerCase().includes(w.toLowerCase())):e;$__namespace.useEffect(()=>{if(v&&k.current){let A=k.current.getBoundingClientRect();N({top:A.bottom+4,left:A.left,width:A.width}),s&&setTimeout(()=>H.current?.focus(),0);}v||h("");},[v,s]),$__namespace.useEffect(()=>{let A=U=>{let W=U.target,he=P.current&&!P.current.contains(W),me=E.current&&!E.current.contains(W);he&&me&&(y(false),h(""));};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[]),$__namespace.useEffect(()=>{if(!v)return;let A=U=>{E.current?.contains(U.target)||(y(false),h(""));};return window.addEventListener("scroll",A,true),()=>window.removeEventListener("scroll",A,true)},[v]);let j=t?D.length>0:!!S;return jsxRuntime.jsxs("div",{ref:P,className:i("relative",b),...x,children:[jsxRuntime.jsxs("div",{ref:A=>{k.current=A,typeof g=="function"?g(A):g&&(g.current=A);},role:"combobox","aria-expanded":v,"aria-haspopup":"listbox","aria-disabled":d,onClick:()=>!d&&y(!v),className:i(dd({radius:p}),t&&"flex-wrap gap-1",d&&"cursor-not-allowed opacity-50"),children:[!t&&jsxRuntime.jsx("span",{className:i(!O&&"text-muted-foreground"),children:O?O.label:o}),t&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:Q.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground",children:o}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[re.map(A=>jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground",children:[A.label,jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:U=>V(A.value,U),onKeyDown:U=>{(U.key==="Enter"||U.key===" ")&&V(A.value,U);},className:"rounded-full hover:bg-secondary-foreground/20 cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},A.value)),K>0&&jsxRuntime.jsxs("span",{className:"text-xs text-muted-foreground",children:["+",K," more"]})]})}),jsxRuntime.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[m&&j&&jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:F,onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&F(A);},className:"rounded-full p-0.5 hover:bg-muted cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4 opacity-50"})}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 opacity-50 transition-transform",v&&"rotate-180")})]})]}),v&&!d&&typeof document<"u"&&Wo__namespace.createPortal(jsxRuntime.jsxs("div",{ref:E,className:"fixed z-[9999] overflow-hidden rounded-md border border-zinc-300 dark:border-zinc-700 bg-background shadow-md",style:{top:L.top,left:L.left,minWidth:L.width},children:[s&&jsxRuntime.jsxs("div",{className:"flex items-center border-b border-zinc-300 dark:border-zinc-700 px-3",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-4 w-4 opacity-50 mr-2"}),jsxRuntime.jsx("input",{ref:H,type:"text",value:w,onChange:A=>h(A.target.value),placeholder:l,className:"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground"})]}),jsxRuntime.jsx(je,{style:{maxHeight:f},onWheel:A=>A.stopPropagation(),children:jsxRuntime.jsx("div",{className:"p-1",children:B.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:c}):B.map(A=>{let U=t?D.includes(A.value):S===A.value;return jsxRuntime.jsxs("div",{role:"option","aria-selected":U,onClick:()=>{A.disabled||(t?G(A.value):z(A.value));},className:i("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800",A.disabled&&"pointer-events-none opacity-50"),children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:U&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),A.label]},A.value)})})})]}),document.body)]})});ud.displayName="Select";var md=$__namespace.createContext(null),Pa=()=>{let e=$__namespace.useContext(md);if(!e)throw new Error("Dropdown components must be used within a Dropdown");return e},ki=$__namespace.createContext(null),pd=$__namespace.createContext(null),Yr=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=$__namespace.useState(r),[s,l]=$__namespace.useState(-1),c=t!==void 0,d=c?t:n,m=$__namespace.useRef(null),u=$__namespace.useRef(null),f=$__namespace.useId(),p=$__namespace.useRef(new Map),b=$__namespace.useCallback(v=>{c||o(v),a?.(v),v||l(-1);},[c,a]),x=$__namespace.useCallback((v,y)=>{p.current.set(v,y);},[]),g=$__namespace.useCallback(v=>{p.current.delete(v);},[]);return jsxRuntime.jsx(md.Provider,{value:{open:d,onOpenChange:b,triggerRef:m,contentRef:u,contentId:f,activeIndex:s,setActiveIndex:l,items:p,registerItem:x,unregisterItem:g},children:e})};Yr.displayName="Dropdown";var Xr=$__namespace.forwardRef(({asChild:e,children:t,onClick:r,onKeyDown:a,...n},o)=>{let{open:s,onOpenChange:l,triggerRef:c,contentId:d}=Pa(),m=f=>{r?.(f),l(!s);},u=f=>{a?.(f),(f.key==="ArrowDown"||f.key==="ArrowUp")&&(f.preventDefault(),l(true));};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:f=>{c.current=f,typeof o=="function"?o(f):o&&(o.current=f);},onClick:f=>{t.props.onClick?.(f),l(!s);},onKeyDown:f=>{t.props.onKeyDown?.(f),(f.key==="ArrowDown"||f.key==="ArrowUp")&&(f.preventDefault(),l(true));},"aria-expanded":s,"aria-haspopup":"menu","aria-controls":s?d:void 0,...n}):jsxRuntime.jsx("button",{ref:f=>{c.current=f,typeof o=="function"?o(f):o&&(o.current=f);},type:"button","aria-expanded":s,"aria-haspopup":"menu","aria-controls":s?d:void 0,onClick:m,onKeyDown:u,...n,children:t})});Xr.displayName="DropdownTrigger";var qr=$__namespace.forwardRef(({className:e,side:t="bottom",sideOffset:r=4,align:a="start",alignOffset:n=0,collisionPadding:o=8,onInteractOutside:s,onEscapeKeyDown:l,loop:c=true,children:d,...m},u)=>{let{open:f,onOpenChange:p,triggerRef:b,contentRef:x,contentId:g,activeIndex:v,setActiveIndex:y,items:w}=Pa(),[h,C]=$__namespace.useState({top:0,left:0}),[R,M]=$__namespace.useState(t),[T,L]=$__namespace.useState(false),N=$__namespace.useRef(0);if($__namespace.useEffect(()=>{L(true);},[]),$__namespace.useEffect(()=>{f&&(N.current=w.current.size);},[f,w]),$__namespace.useEffect(()=>{if(!f||!b.current||!x.current)return;let k=()=>{if(!b.current||!x.current)return;let E=b.current.getBoundingClientRect(),H=x.current.getBoundingClientRect(),S=window.innerWidth,D=window.innerHeight,I=0,z=0,G=t;switch(t){case "top":I=E.top-H.height-r,I<o&&(I=E.bottom+r,G="bottom");break;case "bottom":I=E.bottom+r,I+H.height>D-o&&(I=E.top-H.height-r,G="top");break;case "left":z=E.left-H.width-r,z<o&&(z=E.right+r,G="right");break;case "right":z=E.right+r,z+H.width>S-o&&(z=E.left-H.width-r,G="left");break}if(G==="top"||G==="bottom"){switch(a){case "start":z=E.left+n;break;case "center":z=E.left+E.width/2-H.width/2;break;case "end":z=E.right-H.width-n;break}z<o?z=o:z+H.width>S-o&&(z=S-H.width-o);}else {switch(a){case "start":I=E.top+n;break;case "center":I=E.top+E.height/2-H.height/2;break;case "end":I=E.bottom-H.height-n;break}I<o?I=o:I+H.height>D-o&&(I=D-H.height-o);}C({top:I,left:z}),M(G);};return k(),window.addEventListener("resize",k),window.addEventListener("scroll",k,true),()=>{window.removeEventListener("resize",k),window.removeEventListener("scroll",k,true);}},[f,t,r,a,n,o,b]),$__namespace.useEffect(()=>{if(!f)return;let k=E=>{let H=E.target;x.current&&!x.current.contains(H)&&b.current&&!b.current.contains(H)&&(s?.(),p(false));};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[f,p,s,b,x]),$__namespace.useEffect(()=>{if(!f)return;let k=E=>{let H=Array.from(w.current.entries()).sort(([D],[I])=>D-I).map(([,D])=>D),S=H.length;if(S!==0)switch(E.key){case "Escape":E.preventDefault(),l?.(),p(false),b.current?.focus();break;case "ArrowDown":E.preventDefault(),v===-1||v>=S-1?y(c?0:Math.min(v+1,S-1)):y(v+1);break;case "ArrowUp":E.preventDefault(),v<=0?y(c?S-1:0):y(v-1);break;case "Home":E.preventDefault(),y(0);break;case "End":E.preventDefault(),y(S-1);break;case "Enter":case " ":E.preventDefault(),v>=0&&v<S&&H[v]?.click();break;case "Tab":p(false);break}};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[f,p,l,v,y,w,c,b]),$__namespace.useEffect(()=>{f&&v>=0&&Array.from(w.current.entries()).sort(([E],[H])=>E-H).map(([,E])=>E)[v]?.focus();},[f,v,w]),!T||!f)return null;let P={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[R];return Wo__namespace.createPortal(jsxRuntime.jsx("div",{ref:k=>{x.current=k,typeof u=="function"?u(k):u&&(u.current=k);},id:g,role:"menu","aria-orientation":"vertical","data-state":f?"open":"closed","data-side":R,className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md outline-none",P,e),style:{top:h.top,left:h.left},...m,children:d}),document.body)});qr.displayName="DropdownContent";var Bo=0,Jt=$__namespace.forwardRef(({className:e,inset:t,disabled:r,onSelect:a,onClick:n,onMouseEnter:o,...s},l)=>{let{onOpenChange:c,activeIndex:d,setActiveIndex:m,registerItem:u,unregisterItem:f}=Pa(),[p]=$__namespace.useState(()=>Bo++),b=$__namespace.useRef(null);$__namespace.useEffect(()=>(!r&&b.current&&u(p,b.current),()=>{f(p);}),[r,p,u,f]);let x=y=>{if(r){y.preventDefault();return}n?.(y),a?.(),c(false);},g=y=>{o?.(y),r||m(p);};return jsxRuntime.jsx("div",{ref:y=>{b.current=y,typeof l=="function"?l(y):l&&(l.current=y);},role:"menuitem",tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,"data-highlighted":d===p?"":void 0,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",!r&&"cursor-pointer",e),onClick:x,onMouseEnter:g,...s})});Jt.displayName="DropdownItem";var fd=$__namespace.forwardRef(({className:e,children:t,checked:r=false,onCheckedChange:a,disabled:n,onClick:o,onMouseEnter:s,...l},c)=>{let{onOpenChange:d,activeIndex:m,setActiveIndex:u,registerItem:f,unregisterItem:p}=Pa(),[b]=$__namespace.useState(()=>Bo++),x=$__namespace.useRef(null);$__namespace.useEffect(()=>(!n&&x.current&&f(b,x.current),()=>{p(b);}),[n,b,f,p]);let g=w=>{if(n){w.preventDefault();return}o?.(w),a?.(!r),d(false);},v=w=>{s?.(w),n||u(b);};return jsxRuntime.jsxs("div",{ref:w=>{x.current=w,typeof c=="function"?c(w):c&&(c.current=w);},role:"menuitemcheckbox","aria-checked":r,tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-highlighted":m===b?"":void 0,"data-state":r?"checked":"unchecked",className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",!n&&"cursor-pointer",e),onClick:g,onMouseEnter:v,...l,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});fd.displayName="DropdownCheckboxItem";var gd=$__namespace.forwardRef(({value:e="",onValueChange:t,className:r,...a},n)=>jsxRuntime.jsx(pd.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:n,role:"group",className:r,...a})}));gd.displayName="DropdownRadioGroup";var bd=$__namespace.forwardRef(({className:e,children:t,value:r,disabled:a,onClick:n,onMouseEnter:o,...s},l)=>{let{onOpenChange:c,activeIndex:d,setActiveIndex:m,registerItem:u,unregisterItem:f}=Pa(),p=$__namespace.useContext(pd),b=p?.value===r,[x]=$__namespace.useState(()=>Bo++),g=$__namespace.useRef(null);$__namespace.useEffect(()=>(!a&&g.current&&u(x,g.current),()=>{f(x);}),[a,x,u,f]);let v=h=>{if(a){h.preventDefault();return}n?.(h),p?.onValueChange(r),c(false);},y=h=>{o?.(h),a||m(x);};return jsxRuntime.jsxs("div",{ref:h=>{g.current=h,typeof l=="function"?l(h):l&&(l.current=h);},role:"menuitemradio","aria-checked":b,tabIndex:a?-1:0,"aria-disabled":a,"data-disabled":a?"":void 0,"data-highlighted":d===x?"":void 0,"data-state":b?"checked":"unchecked",className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",!a&&"cursor-pointer",e),onClick:v,onMouseEnter:y,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})}),t]})});bd.displayName="DropdownRadioItem";var vd=$__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));vd.displayName="DropdownLabel";var Oo=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("-mx-1 my-1 h-px bg-muted",e),...t}));Oo.displayName="DropdownSeparator";var hd=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...t});hd.displayName="DropdownShortcut";var xd=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"group",className:e,...t}));xd.displayName="DropdownGroup";var yd=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=$__namespace.useState(r),{contentRef:s}=Pa(),l=t!==void 0,c=l?t:n,d=$__namespace.useRef(null),m=$__namespace.useCallback(u=>{l||o(u),a?.(u);},[l,a]);return jsxRuntime.jsx(ki.Provider,{value:{open:c,onOpenChange:m,triggerRef:d,parentMenuRef:s},children:e})};yd.displayName="DropdownSub";var Rd=$__namespace.forwardRef(({className:e,inset:t,disabled:r,children:a,onMouseEnter:n,onMouseLeave:o,onKeyDown:s,...l},c)=>{let d=$__namespace.useContext(ki),{setActiveIndex:m,registerItem:u,unregisterItem:f}=Pa(),[p]=$__namespace.useState(()=>Bo++),b=$__namespace.useRef(null);if(!d)throw new Error("DropdownSubTrigger must be used within DropdownSub");let{open:x,onOpenChange:g,triggerRef:v}=d;$__namespace.useEffect(()=>(!r&&b.current&&u(p,b.current),()=>{f(p);}),[r,p,u,f]);let y=C=>{n?.(C),r||(m(p),g(true));},w=C=>{o?.(C);},h=C=>{s?.(C),(C.key==="ArrowRight"||C.key==="Enter"||C.key===" ")&&(C.preventDefault(),g(true));};return jsxRuntime.jsxs("div",{ref:C=>{b.current=C,v.current=C,typeof c=="function"?c(C):c&&(c.current=C);},role:"menuitem","aria-haspopup":"menu","aria-expanded":x,tabIndex:r?-1:0,"aria-disabled":r,"data-state":x?"open":"closed","data-disabled":r?"":void 0,className:i("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[state=open]:bg-accent","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",!r&&"cursor-pointer",e),onMouseEnter:y,onMouseLeave:w,onKeyDown:h,...l,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto"})]})});Rd.displayName="DropdownSubTrigger";var wd=$__namespace.forwardRef(({className:e,sideOffset:t=2,alignOffset:r=-4,collisionPadding:a=8,onMouseEnter:n,onMouseLeave:o,...s},l)=>{let c=$__namespace.useContext(ki);if(!c)throw new Error("DropdownSubContent must be used within DropdownSub");let{open:d,onOpenChange:m,triggerRef:u,parentMenuRef:f}=c,[p,b]=$__namespace.useState({top:0,left:0}),[x,g]=$__namespace.useState(false),v=$__namespace.useRef(null),y=$__namespace.useRef(null);$__namespace.useEffect(()=>{g(true);},[]),$__namespace.useEffect(()=>{if(!d||!u.current||!v.current)return;(()=>{if(!u.current||!v.current)return;let R=u.current.getBoundingClientRect(),M=v.current.getBoundingClientRect(),T=window.innerWidth,L=window.innerHeight,N=R.top+r,P=R.right+t;P+M.width>T-a&&(P=R.left-M.width-t),N+M.height>L-a&&(N=L-M.height-a),N<a&&(N=a),b({top:N,left:P});})();},[d,t,r,a,u]);let w=C=>{n?.(C),y.current&&(clearTimeout(y.current),y.current=null),m(true);},h=C=>{o?.(C);let R=C.relatedTarget;u.current?.contains(R)||f?.current?.contains(R)||(y.current=setTimeout(()=>{m(false);},100));};return $__namespace.useEffect(()=>()=>{y.current&&clearTimeout(y.current);},[]),!x||!d?null:Wo__namespace.createPortal(jsxRuntime.jsx("div",{ref:C=>{v.current=C,typeof l=="function"?l(C):l&&(l.current=C);},role:"menu","data-state":d?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",e),style:{top:p.top,left:p.left},onMouseEnter:w,onMouseLeave:h,...s}),document.body)});wd.displayName="DropdownSubContent";var Nd=$__namespace.createContext(null),Ei=()=>{let e=$__namespace.useContext(Nd);if(!e)throw new Error("Popover components must be used within a Popover");return e},at=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=$__namespace.useState(r),s=t!==void 0,l=s?t:n,c=$__namespace.useRef(null),d=$__namespace.useId(),m=$__namespace.useCallback(u=>{s||o(u),a?.(u);},[s,a]);return jsxRuntime.jsx(Nd.Provider,{value:{open:l,onOpenChange:m,triggerRef:c,contentId:d},children:e})};at.displayName="Popover";var ht=$__namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{open:o,onOpenChange:s,triggerRef:l,contentId:c}=Ei(),d=m=>{r?.(m),s(!o);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:m=>{l.current=m,typeof n=="function"?n(m):n&&(n.current=m);},onClick:m=>{t.props.onClick?.(m),s(!o);},"aria-expanded":o,"aria-haspopup":"dialog","aria-controls":o?c:void 0,...a}):jsxRuntime.jsx("button",{ref:m=>{l.current=m,typeof n=="function"?n(m):n&&(n.current=m);},type:"button","aria-expanded":o,"aria-haspopup":"dialog","aria-controls":o?c:void 0,onClick:d,...a,children:t})});ht.displayName="PopoverTrigger";var Fo=$__namespace.forwardRef(({asChild:e,children:t,...r},a)=>{let{triggerRef:n}=Ei();return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:o=>{n.current=o,typeof a=="function"?a(o):a&&(a.current=o);},...r}):jsxRuntime.jsx("div",{ref:o=>{n.current=o,typeof a=="function"?a(o):a&&(a.current=o);},...r,children:t})});Fo.displayName="PopoverAnchor";var nt=$__namespace.forwardRef(({className:e,side:t="bottom",sideOffset:r=4,align:a="center",alignOffset:n=0,onInteractOutside:o,onEscapeKeyDown:s,onOpenAutoFocus:l,onCloseAutoFocus:c,children:d,...m},u)=>{let{open:f,onOpenChange:p,triggerRef:b,contentId:x}=Ei(),[g,v]=$__namespace.useState({top:0,left:0}),[y,w]=$__namespace.useState(false),h=$__namespace.useRef(null);if($__namespace.useEffect(()=>{w(true);},[]),$__namespace.useEffect(()=>{if(!f||!b.current||!h.current)return;let R=()=>{if(!b.current||!h.current)return;let M=b.current.getBoundingClientRect(),T=h.current.getBoundingClientRect(),L=0,N=0;switch(t){case "top":L=M.top-T.height-r;break;case "bottom":L=M.bottom+r;break;case "left":N=M.left-T.width-r;break;case "right":N=M.right+r;break}if(t==="top"||t==="bottom")switch(a){case "start":N=M.left+n;break;case "center":N=M.left+M.width/2-T.width/2;break;case "end":N=M.right-T.width-n;break}else switch(a){case "start":L=M.top+n;break;case "center":L=M.top+M.height/2-T.height/2;break;case "end":L=M.bottom-T.height-n;break}v({top:L,left:N});};return R(),window.addEventListener("resize",R),window.addEventListener("scroll",R,true),()=>{window.removeEventListener("resize",R),window.removeEventListener("scroll",R,true);}},[f,t,r,a,n,b]),$__namespace.useEffect(()=>{if(!f)return;let R=M=>{let T=M.target;h.current&&!h.current.contains(T)&&b.current&&!b.current.contains(T)&&(o?.(),p(false));};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[f,p,o,b]),$__namespace.useEffect(()=>{if(!f)return;let R=M=>{M.key==="Escape"&&(s?.(),p(false));};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[f,p,s]),!y||!f)return null;let C={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return Wo__namespace.createPortal(jsxRuntime.jsx("div",{ref:R=>{h.current=R,typeof u=="function"?u(R):u&&(u.current=R);},id:x,role:"dialog","data-state":f?"open":"closed","data-side":t,className:i("fixed z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",C,e),style:{top:g.top,left:g.left},...m,children:d}),document.body)});nt.displayName="PopoverContent";var Md=$__namespace.createContext(null),Si=()=>{let e=$__namespace.useContext(Md);if(!e)throw new Error("Tabs components must be used within a Tabs");return e},Td=$__namespace.forwardRef(({className:e,value:t,defaultValue:r="",onValueChange:a,variant:n="solid",radius:o="md",orientation:s="horizontal",children:l,...c},d)=>{let[m,u]=$__namespace.useState(r),f=t!==void 0,p=f?t:m,b=x=>{f||u(x),a?.(x);};return jsxRuntime.jsx(Md.Provider,{value:{value:p,onValueChange:b,variant:n,radius:o,orientation:s},children:jsxRuntime.jsx("div",{ref:d,"data-orientation":s,className:i(s==="vertical"&&"flex gap-4",e),...c,children:l})})});Td.displayName="Tabs";var Di={none:{list:"rounded-none",trigger:"rounded-none",indicator:"rounded-none"},sm:{list:"rounded-md",trigger:"rounded-sm",indicator:"rounded-sm"},md:{list:"rounded-lg",trigger:"rounded-md",indicator:"rounded-md"},lg:{list:"rounded-xl",trigger:"rounded-lg",indicator:"rounded-lg"},full:{list:"rounded-full",trigger:"rounded-full",indicator:"rounded-full"}},Pd=$__namespace.forwardRef(({className:e,children:t,...r},a)=>{let{variant:n,radius:o,orientation:s,value:l}=Si(),c=$__namespace.useRef(null),[d,m]=$__namespace.useState({opacity:0});$__namespace.useEffect(()=>{let b=c.current;if(!b)return;let x=()=>{let v=b.querySelector('[data-state="active"]');if(v){let y=b.getBoundingClientRect(),w=v.getBoundingClientRect(),h=s==="vertical";n==="underline"?m(h?{width:2,height:w.height,transform:`translateY(${w.top-y.top}px)`,opacity:1}:{width:w.width,height:2,transform:`translateX(${w.left-y.left}px)`,opacity:1}):n==="solid"&&m(h?{width:w.width,height:w.height,transform:`translateY(${w.top-y.top}px)`,opacity:1}:{width:w.width,height:w.height,transform:`translateX(${w.left-y.left}px)`,opacity:1});}};x();let g=new ResizeObserver(x);return g.observe(b),()=>{g.disconnect();}},[n,s,l]);let u={solid:"bg-muted p-1",underline:"border-b border-border bg-transparent p-0 !rounded-none",outline:"bg-transparent p-0 gap-1 !rounded-none"},f=s==="vertical",p=()=>n==="solid"?f?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":n==="underline"?f?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxRuntime.jsxs("div",{ref:b=>{c.current=b,typeof a=="function"?a(b):a&&(a.current=b);},role:"tablist","aria-orientation":s,className:i("relative inline-flex h-9 items-center justify-center text-muted-foreground",f&&"flex-col h-auto w-auto",Di[o].list,u[n],e),...r,children:[(n==="solid"||n==="underline")&&jsxRuntime.jsx("span",{className:i("absolute transition-all duration-200 ease-out",Di[o].indicator,p()),style:d,"aria-hidden":"true"}),t]})});Pd.displayName="TabsList";var kd=$__namespace.forwardRef(({className:e,value:t,disabled:r,onClick:a,...n},o)=>{let{value:s,onValueChange:l,variant:c,radius:d}=Si(),m=s===t,u={solid:"data-[state=active]:text-foreground",underline:"!rounded-none border-b-2 border-transparent pb-2 data-[state=active]:text-foreground",outline:"border border-transparent data-[state=active]:border-border data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm"};return jsxRuntime.jsx("button",{type:"button",role:"tab",ref:o,"aria-selected":m,"data-state":m?"active":"inactive",disabled:r,className:i("relative z-10 inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",Di[d].trigger,u[c],e),onClick:f=>{a?.(f),l(t);},...n})});kd.displayName="TabsTrigger";var Ld=$__namespace.forwardRef(({className:e,value:t,children:r,...a},n)=>{let{value:o}=Si(),s=o===t;return s?jsxRuntime.jsx("div",{ref:n,role:"tabpanel","data-state":s?"active":"inactive",className:i("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...a,children:r}):null});Ld.displayName="TabsContent";var Dd=$__namespace.createContext(null),Go=()=>{let e=$__namespace.useContext(Dd);if(!e)throw new Error("Sheet components must be used within a Sheet");return e},$o=({open:e,defaultOpen:t=false,onOpenChange:r,children:a})=>{let[n,o]=$__namespace.useState(t),s=e!==void 0,l=s?e:n,c=$__namespace.useCallback(d=>{s||o(d),r?.(d);},[s,r]);return jsxRuntime.jsx(Dd.Provider,{value:{open:l,onOpenChange:c},children:a})};$o.displayName="Sheet";var Sd=$__namespace.forwardRef(({asChild:e,onClick:t,children:r,...a},n)=>{let{onOpenChange:o}=Go(),s=l=>{t?.(l),o(true);};return e&&$__namespace.isValidElement(r)?$__namespace.cloneElement(r,{onClick:l=>{r.props.onClick?.(l),o(true);}}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:r})});Sd.displayName="SheetTrigger";var Hd=$__namespace.forwardRef(({asChild:e,onClick:t,children:r,...a},n)=>{let{onOpenChange:o}=Go(),s=l=>{t?.(l),o(false);};return e&&$__namespace.isValidElement(r)?$__namespace.cloneElement(r,{onClick:l=>{r.props.onClick?.(l),o(false);}}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:r})});Hd.displayName="SheetClose";var Ii=({children:e,container:t})=>{let[r,a]=$__namespace.useState(false);return $__namespace.useEffect(()=>{a(true);},[]),r?Wo__namespace.createPortal(e,t||document.body):null};Ii.displayName="SheetPortal";var Id=$__namespace.forwardRef(({className:e,...t},r)=>{let{open:a,onOpenChange:n}=Go();return a?jsxRuntime.jsx("div",{ref:r,className:i("fixed inset-0 z-50 bg-black/80",a?"animate-in fade-in-0":"animate-out fade-out-0",e),onClick:()=>n(false),"aria-hidden":"true",...t}):null});Id.displayName="SheetOverlay";var Vd=classVarianceAuthority.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition-transform duration-300 ease-in-out",{variants:{side:{top:"inset-x-0 top-0 border-b",bottom:"inset-x-0 bottom-0 border-t",left:"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"}},defaultVariants:{side:"right"}}),qR=(e,t)=>({top:t?"animate-in slide-in-from-top":"animate-out slide-out-to-top",bottom:t?"animate-in slide-in-from-bottom":"animate-out slide-out-to-bottom",left:t?"animate-in slide-in-from-left":"animate-out slide-out-to-left",right:t?"animate-in slide-in-from-right":"animate-out slide-out-to-right"})[e],_o=$__namespace.forwardRef(({side:e="right",className:t,children:r,hideCloseButton:a,onEscapeKeyDown:n,onInteractOutside:o,...s},l)=>{let{open:c,onOpenChange:d}=Go(),[m,u]=$__namespace.useState(false),[,f]=$__namespace.useState(false);return $__namespace.useEffect(()=>{if(c)u(true),f(true),document.body.style.overflow="hidden";else {f(true);let p=setTimeout(()=>{u(false),f(false),document.body.style.overflow="";},300);return ()=>clearTimeout(p)}return ()=>{document.body.style.overflow="";}},[c]),$__namespace.useEffect(()=>{let p=b=>{b.key==="Escape"&&c&&(n?.(),d(false));};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[c,d,n]),!m&&!c?null:jsxRuntime.jsxs(Ii,{children:[jsxRuntime.jsx("div",{className:i("fixed inset-0 z-50 bg-black/80 transition-opacity duration-300",c?"opacity-100":"opacity-0"),onClick:()=>{o?.(),d(false);},"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:l,role:"dialog","aria-modal":"true",className:i(Vd({side:e}),qR(e,c),t),...s,children:[!a&&jsxRuntime.jsxs("button",{type:"button",onClick:()=>d(false),className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none cursor-pointer",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]})});_o.displayName="SheetContent";var Ad=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ad.displayName="SheetHeader";var zd=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});zd.displayName="SheetFooter";var Bd=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h2",{ref:r,className:i("text-lg font-semibold text-foreground",e),...t}));Bd.displayName="SheetTitle";var Od=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:i("text-sm text-muted-foreground",e),...t}));Od.displayName="SheetDescription";var QR=({theme:e="system",...t})=>jsxRuntime.jsx(sonner.Toaster,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t});var Fd=$__namespace.createContext(null),Fn=()=>{let e=$__namespace.useContext(Fd);if(!e)throw new Error("ContextMenu components must be used within a ContextMenu");return e},Vi=$__namespace.createContext(null),Kd=$__namespace.createContext(null),Gd=({children:e,onOpenChange:t})=>{let[r,a]=$__namespace.useState(false),[n,o]=$__namespace.useState({x:0,y:0}),s=$__namespace.useId(),l=$__namespace.useCallback(c=>{a(c),t?.(c);},[t]);return jsxRuntime.jsx(Fd.Provider,{value:{open:r,onOpenChange:l,position:n,setPosition:o,contentId:s},children:e})};Gd.displayName="ContextMenu";var $d=$__namespace.forwardRef(({asChild:e,children:t,onContextMenu:r,...a},n)=>{let{onOpenChange:o,setPosition:s}=Fn(),l=c=>{c.preventDefault(),s({x:c.clientX,y:c.clientY}),o(true);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:n,onContextMenu:c=>{c.preventDefault(),t.props.onContextMenu?.(c),s({x:c.clientX,y:c.clientY}),o(true);},...a}):jsxRuntime.jsx("div",{ref:n,onContextMenu:c=>{r?.(c),l(c);},...a,children:t})});$d.displayName="ContextMenuTrigger";var _d=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"group",className:e,...t}));_d.displayName="ContextMenuGroup";var Wd=({children:e,container:t})=>{let[r,a]=$__namespace.useState(false);return $__namespace.useEffect(()=>{a(true);},[]),r?Wo__namespace.createPortal(e,t||document.body):null};Wd.displayName="ContextMenuPortal";var jd=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=$__namespace.useState(r),s=t!==void 0,l=s?t:n,c=$__namespace.useRef(null),d=$__namespace.useCallback(m=>{s||o(m),a?.(m);},[s,a]);return jsxRuntime.jsx(Vi.Provider,{value:{open:l,onOpenChange:d,triggerRef:c},children:e})};jd.displayName="ContextMenuSub";var Ud=$__namespace.forwardRef(({value:e="",onValueChange:t,className:r,...a},n)=>jsxRuntime.jsx(Kd.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:n,role:"group",className:r,...a})}));Ud.displayName="ContextMenuRadioGroup";var Yd=$__namespace.forwardRef(({className:e,onInteractOutside:t,onEscapeKeyDown:r,children:a,...n},o)=>{let{open:s,onOpenChange:l,position:c,contentId:d}=Fn(),[m,u]=$__namespace.useState(false),[f,p]=$__namespace.useState(c),b=$__namespace.useRef(null);return $__namespace.useEffect(()=>{u(true);},[]),$__namespace.useEffect(()=>{if(!s||!b.current){p(c);return}let g=b.current.getBoundingClientRect(),{x:v,y}=c;v+g.width>window.innerWidth&&(v=window.innerWidth-g.width-8),y+g.height>window.innerHeight&&(y=window.innerHeight-g.height-8),p({x:v,y});},[s,c]),$__namespace.useEffect(()=>{if(!s)return;let x=g=>{let v=g.target;b.current&&!b.current.contains(v)&&(t?.(),l(false));};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[s,l,t]),$__namespace.useEffect(()=>{if(!s)return;let x=g=>{g.key==="Escape"&&(r?.(),l(false));};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[s,l,r]),!m||!s?null:Wo__namespace.createPortal(jsxRuntime.jsx("div",{ref:x=>{b.current=x,typeof o=="function"?o(x):o&&(o.current=x);},id:d,role:"menu","aria-orientation":"vertical","data-state":s?"open":"closed",className:i("fixed z-50 max-h-[calc(100vh-2rem)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 p-1 text-zinc-950 dark:text-zinc-50 shadow-md","animate-in fade-in-0 zoom-in-95",e),style:{top:f.y,left:f.x},...n,children:a}),document.body)});Yd.displayName="ContextMenuContent";var Xd=$__namespace.forwardRef(({className:e,inset:t,children:r,onMouseEnter:a,onMouseLeave:n,...o},s)=>{let l=$__namespace.useContext(Vi);if(!l)throw new Error("ContextMenuSubTrigger must be used within ContextMenuSub");let{open:c,onOpenChange:d,triggerRef:m}=l,u=p=>{a?.(p),d(true);},f=p=>{n?.(p),d(false);};return jsxRuntime.jsxs("div",{ref:p=>{m.current=p,typeof s=="function"?s(p):s&&(s.current=p);},role:"menuitem","aria-haspopup":"menu","aria-expanded":c,"data-state":c?"open":"closed",className:i("flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[state=open]:bg-zinc-100 dark:data-[state=open]:bg-zinc-800",t&&"pl-8",e),onMouseEnter:u,onMouseLeave:f,...o,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});Xd.displayName="ContextMenuSubTrigger";var qd=$__namespace.forwardRef(({className:e,sideOffset:t=2,onMouseEnter:r,onMouseLeave:a,...n},o)=>{let s=$__namespace.useContext(Vi);if(!s)throw new Error("ContextMenuSubContent must be used within ContextMenuSub");let{open:l,onOpenChange:c,triggerRef:d}=s,[m,u]=$__namespace.useState({top:0,left:0}),[f,p]=$__namespace.useState(false),b=$__namespace.useRef(null);$__namespace.useEffect(()=>{p(true);},[]),$__namespace.useEffect(()=>{if(!l||!d.current||!b.current)return;(()=>{if(!d.current||!b.current)return;let y=d.current.getBoundingClientRect(),w=b.current.getBoundingClientRect(),h=y.top,C=y.right+t;C+w.width>window.innerWidth&&(C=y.left-w.width-t),u({top:h,left:C});})();},[l,t,d]);let x=v=>{r?.(v),c(true);},g=v=>{a?.(v),c(false);};return !f||!l?null:Wo__namespace.createPortal(jsxRuntime.jsx("div",{ref:v=>{b.current=v,typeof o=="function"?o(v):o&&(o.current=v);},role:"menu","data-state":l?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 p-1 text-zinc-950 dark:text-zinc-50 shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",e),style:{top:m.top,left:m.left},onMouseEnter:x,onMouseLeave:g,...n}),document.body)});qd.displayName="ContextMenuSubContent";var Zd=$__namespace.forwardRef(({className:e,inset:t,disabled:r,onSelect:a,onClick:n,...o},s)=>{let{onOpenChange:l}=Fn(),c=d=>{if(r){d.preventDefault();return}n?.(d),a?.(),l(false);};return jsxRuntime.jsx("div",{ref:s,role:"menuitem",tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,className:i("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",t&&"pl-8",e),onClick:c,...o})});Zd.displayName="ContextMenuItem";var Jd=$__namespace.forwardRef(({className:e,children:t,checked:r=false,onCheckedChange:a,disabled:n,onClick:o,...s},l)=>{let{onOpenChange:c}=Fn(),d=m=>{if(n){m.preventDefault();return}o?.(m),a?.(!r),c(false);};return jsxRuntime.jsxs("div",{ref:l,role:"menuitemcheckbox","aria-checked":r,tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-state":r?"checked":"unchecked",className:i("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",e),onClick:d,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});Jd.displayName="ContextMenuCheckboxItem";var Qd=$__namespace.forwardRef(({className:e,children:t,value:r,disabled:a,onClick:n,...o},s)=>{let{onOpenChange:l}=Fn(),c=$__namespace.useContext(Kd),d=c?.value===r,m=u=>{if(a){u.preventDefault();return}n?.(u),c?.onValueChange(r),l(false);};return jsxRuntime.jsxs("div",{ref:s,role:"menuitemradio","aria-checked":d,tabIndex:a?-1:0,"aria-disabled":a,"data-disabled":a?"":void 0,"data-state":d?"checked":"unchecked",className:i("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",e),onClick:m,...o,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-4 w-4 fill-current"})}),t]})});Qd.displayName="ContextMenuRadioItem";var eu=$__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...r}));eu.displayName="ContextMenuLabel";var tu=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("-mx-1 my-1 h-px bg-border",e),...t}));tu.displayName="ContextMenuSeparator";var ru=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});ru.displayName="ContextMenuShortcut";var au=$__namespace.createContext(null),o0=()=>{let e=$__namespace.useContext(au);if(!e)throw new Error("RadioGroupItem must be used within a RadioGroup");return e},nu=$__namespace.forwardRef(({className:e,value:t,defaultValue:r="",onValueChange:a,name:n,disabled:o,required:s,orientation:l="vertical",children:c,...d},m)=>{let[u,f]=$__namespace.useState(r),p=t!==void 0,b=p?t:u,x=$__namespace.useId(),g=v=>{p||f(v),a?.(v);};return jsxRuntime.jsx("div",{ref:m,role:"radiogroup","aria-required":s,"aria-orientation":l,className:i(l==="vertical"?"grid gap-2":"flex gap-4",e),...d,children:jsxRuntime.jsx(au.Provider,{value:{name:n||x,value:b,onValueChange:g,disabled:o,required:s},children:c})})});nu.displayName="RadioGroup";var ou=$__namespace.forwardRef(({className:e,value:t,disabled:r,...a},n)=>{let o=o0(),s=o.value===t,l=r||o.disabled;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":s,disabled:l,ref:n,className:i("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",e),onClick:()=>o.onValueChange(t),...a,children:s&&jsxRuntime.jsx("span",{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}),jsxRuntime.jsx("input",{type:"radio","aria-hidden":true,tabIndex:-1,name:o.name,value:t,checked:s,required:o.required,disabled:l,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]})});ou.displayName="RadioGroupItem";var Uo=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",{variants:{variant:{solid:"bg-transparent hover:bg-muted data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",outline:"border border-input bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",ghost:"bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",soft:"bg-transparent hover:bg-primary/10 data-[state=on]:bg-primary/15 data-[state=on]:text-primary",surface:"bg-muted/50 hover:bg-muted data-[state=on]:bg-muted data-[state=on]:text-foreground"},size:{sm:"h-9 px-2.5 min-w-9",md:"h-10 px-3 min-w-10",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"solid",size:"md"}}),su=$__namespace.forwardRef(({className:e,variant:t,size:r,pressed:a,defaultPressed:n=false,onPressedChange:o,disabled:s,onKeyDown:l,...c},d)=>{let[m,u]=$__namespace.useState(n),f=a!==void 0,p=f?a:m,b=()=>{if(s)return;let g=!p;f||u(g),o?.(g);},x=g=>{g.key==="Enter"&&g.preventDefault(),l?.(g);};return jsxRuntime.jsx("button",{type:"button","aria-pressed":p,"data-state":p?"on":"off",disabled:s,ref:d,className:i(Uo({variant:t,size:r,className:e})),onClick:b,onKeyDown:x,...c})});su.displayName="Toggle";var iu=$__namespace.createContext(null),d0=()=>{let e=$__namespace.useContext(iu);if(!e)throw new Error("ToggleGroupItem must be used within a ToggleGroup");return e},lu=$__namespace.forwardRef(({className:e,variant:t,size:r,type:a,value:n,defaultValue:o,onValueChange:s,disabled:l,children:c,...d},m)=>{let[u,f]=$__namespace.useState(()=>a==="single"?o?[o]:[]:o||[]),p=n!==void 0,b=p?a==="single"?n?[n]:[]:n:u,x=g=>{if(a==="single"){let v=b.includes(g)?[]:[g];p||f(v),s?.(v[0]||"");}else {let v=b.includes(g)?b.filter(y=>y!==g):[...b,g];p||f(v),s?.(v);}};return jsxRuntime.jsx("div",{ref:m,role:"group",className:i("flex items-center justify-center gap-1",e),...d,children:jsxRuntime.jsx(iu.Provider,{value:{type:a,variant:t,size:r,value:b,onValueChange:x,disabled:l},children:c})})});lu.displayName="ToggleGroup";var cu=$__namespace.forwardRef(({className:e,children:t,variant:r,size:a,value:n,disabled:o,...s},l)=>{let c=d0(),d=c.value.includes(n),m=o||c.disabled;return jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":d,"aria-pressed":d,"data-state":d?"on":"off",disabled:m,ref:l,className:i(Uo({variant:c.variant||r,size:c.size||a}),e),onClick:()=>c.onValueChange(n),...s,children:t})});cu.displayName="ToggleGroupItem";var Xo=$__namespace.forwardRef(({className:e,value:t,defaultValue:r=[0],onValueChange:a,onValueCommit:n,min:o=0,max:s=100,step:l=1,disabled:c=false,orientation:d="horizontal",name:m,...u},f)=>{let[p,b]=$__namespace.useState(r),x=t!==void 0,g=x?t:p,v=$__namespace.useRef(null),[y,w]=$__namespace.useState(false),[h,C]=$__namespace.useState(null),R=(H,S)=>{if(!v.current)return g[0];let D=v.current.getBoundingClientRect(),I;d==="horizontal"?I=(H-D.left)/D.width:I=1-(S-D.top)/D.height,I=Math.max(0,Math.min(1,I));let z=o+I*(s-o),G=Math.round(z/l)*l;return Math.max(o,Math.min(s,G))},M=(H,S)=>{let D=[...g];D[S]=H,S>0&&H<g[S-1]&&(D[S]=g[S-1]),S<g.length-1&&H>g[S+1]&&(D[S]=g[S+1]),x||b(D),a?.(D);},T=(H,S)=>{c||(H.preventDefault(),w(true),C(S),H.target.setPointerCapture(H.pointerId));},L=H=>{if(!y||h===null||c)return;let S=R(H.clientX,H.clientY);M(S,h);},N=()=>{y&&(w(false),C(null),n?.(g));},P=H=>{if(c)return;let S=R(H.clientX,H.clientY),D=0,I=Math.abs(g[0]-S);for(let z=1;z<g.length;z++){let G=Math.abs(g[z]-S);G<I&&(I=G,D=z);}M(S,D),n?.([...g.slice(0,D),S,...g.slice(D+1)]);},k=(H,S)=>{if(c)return;let D=g[S];switch(H.key){case "ArrowRight":case "ArrowUp":H.preventDefault(),D=Math.min(s,g[S]+l);break;case "ArrowLeft":case "ArrowDown":H.preventDefault(),D=Math.max(o,g[S]-l);break;case "Home":H.preventDefault(),D=o;break;case "End":H.preventDefault(),D=s;break;default:return}M(D,S),n?.([...g.slice(0,S),D,...g.slice(S+1)]);},E=H=>(H-o)/(s-o)*100;return jsxRuntime.jsxs("div",{ref:f,className:i("relative flex touch-none select-none items-center",d==="vertical"&&"flex-col h-full w-5",c&&"opacity-50 pointer-events-none",e),...u,children:[jsxRuntime.jsx("div",{ref:v,className:i("relative grow overflow-hidden rounded-full bg-secondary",d==="horizontal"?"h-2 w-full":"h-full w-2"),onClick:P,children:jsxRuntime.jsx("div",{className:"absolute bg-primary",style:d==="horizontal"?{left:g.length>1?`${E(g[0])}%`:0,right:`${100-E(g[g.length-1])}%`,top:0,bottom:0}:{bottom:g.length>1?`${E(g[0])}%`:0,top:`${100-E(g[g.length-1])}%`,left:0,right:0}})}),g.map((H,S)=>jsxRuntime.jsx("div",{role:"slider",tabIndex:c?-1:0,"aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":H,"aria-orientation":d,"aria-disabled":c,className:i("absolute block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 cursor-grab",y&&h===S&&"cursor-grabbing"),style:d==="horizontal"?{left:`calc(${E(H)}% - 10px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${E(H)}% - 10px)`,left:"50%",transform:"translateX(-50%)"},onPointerDown:D=>T(D,S),onPointerMove:L,onPointerUp:N,onPointerCancel:N,onKeyDown:D=>k(D,S)},S)),m&&g.map((H,S)=>jsxRuntime.jsx("input",{type:"hidden",name:g.length>1?`${m}[${S}]`:m,value:H},S))]})});Xo.displayName="Slider";var du=$__namespace.createContext(null),uu=()=>{let e=$__namespace.useContext(du);if(!e)throw new Error("AccordionItem must be used within an Accordion");return e},Bi=$__namespace.createContext(null),mu=()=>{let e=$__namespace.useContext(Bi);if(!e)throw new Error("AccordionTrigger/AccordionContent must be used within an AccordionItem");return e},pu=$__namespace.forwardRef(({className:e,type:t="multiple",value:r,defaultValue:a,onValueChange:n,collapsible:o=true,disabled:s,children:l,...c},d)=>{let[m,u]=$__namespace.useState(()=>t==="single"?a?[a]:[]:a||[]),f=$__namespace.useRef(new Map),p=$__namespace.useRef([]),b=r!==void 0,x=b?t==="single"?r?[r]:[]:r:m,g=h=>{if(t==="single"){let R=x.includes(h)&&o?[]:[h];b||u(R),n?.(R[0]||"");}else {let C=x.includes(h)?x.filter(R=>R!==h):[...x,h];b||u(C),n?.(C);}},v=$__namespace.useCallback((h,C)=>{f.current.set(h,C),p.current.includes(h)||p.current.push(h);},[]),y=$__namespace.useCallback(h=>{f.current.delete(h),p.current=p.current.filter(C=>C!==h);},[]),w=$__namespace.useCallback(h=>{let C=p.current;if(C.length===0)return;let R=document.activeElement,M;f.current.forEach((k,E)=>{k===R&&(M=E);});let T=M?C.indexOf(M):-1,L;switch(h){case "first":L=0;break;case "last":L=C.length-1;break;case "next":L=T===-1?0:(T+1)%C.length;break;case "prev":L=T===-1?C.length-1:(T-1+C.length)%C.length;break}let N=C[L];f.current.get(N)?.focus();},[]);return jsxRuntime.jsx(du.Provider,{value:{type:t,value:x,onValueChange:g,collapsible:o,disabled:s,registerTrigger:v,unregisterTrigger:y,focusTrigger:w},children:jsxRuntime.jsx("div",{ref:d,"data-orientation":"vertical",className:i("w-full",e),...c,children:l})})});pu.displayName="Accordion";var fu=$__namespace.forwardRef(({className:e,value:t,disabled:r,title:a,subtitle:n,startContent:o,children:s,...l},c)=>{let d=uu(),m=d.value.includes(t),u=r||d.disabled||false,f=$__namespace.useId(),p=$__namespace.useId();return a!==void 0?jsxRuntime.jsx(Bi.Provider,{value:{value:t,isOpen:m,isDisabled:u,contentId:f,triggerId:p},children:jsxRuntime.jsxs("div",{ref:c,"data-state":m?"open":"closed","data-disabled":u?"":void 0,className:i("border-b",u&&"opacity-50",e),...l,children:[jsxRuntime.jsx(gu,{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[o,jsxRuntime.jsxs("div",{className:"flex flex-col items-start",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:a}),n&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:n})]})]})}),jsxRuntime.jsx(bu,{children:s})]})}):jsxRuntime.jsx(Bi.Provider,{value:{value:t,isOpen:m,isDisabled:u,contentId:f,triggerId:p},children:jsxRuntime.jsx("div",{ref:c,"data-state":m?"open":"closed","data-disabled":u?"":void 0,className:i("border-b",u&&"opacity-50",e),...l,children:s})})});fu.displayName="AccordionItem";var gu=$__namespace.forwardRef(({className:e,children:t,onClick:r,onKeyDown:a,...n},o)=>{let s=uu(),{value:l,isOpen:c,isDisabled:d,contentId:m,triggerId:u}=mu(),f=$__namespace.useRef(null);$__namespace.useEffect(()=>{let b=f.current;return b&&!d&&s.registerTrigger(l,b),()=>{s.unregisterTrigger(l);}},[l,d,s]);let p=b=>{switch(a?.(b),b.key){case "ArrowDown":b.preventDefault(),s.focusTrigger("next");break;case "ArrowUp":b.preventDefault(),s.focusTrigger("prev");break;case "Home":b.preventDefault(),s.focusTrigger("first");break;case "End":b.preventDefault(),s.focusTrigger("last");break}};return jsxRuntime.jsx("h3",{className:"flex",children:jsxRuntime.jsxs("button",{type:"button",ref:b=>{f.current=b,typeof o=="function"?o(b):o&&(o.current=b);},id:u,"aria-controls":m,"aria-expanded":c,disabled:d,"data-state":c?"open":"closed",className:i("flex flex-1 items-center justify-between py-4 font-medium transition-all text-left cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),onClick:b=>{r?.(b),s.onValueChange(l);},onKeyDown:p,...n,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});gu.displayName="AccordionTrigger";var bu=$__namespace.forwardRef(({className:e,children:t,style:r,...a},n)=>{let{isOpen:o,contentId:s,triggerId:l,isDisabled:c}=mu();return jsxRuntime.jsx("div",{ref:n,id:s,role:"region","aria-labelledby":l,"data-state":o?"open":"closed","data-disabled":c?"":void 0,className:i("grid transition-[grid-template-rows] duration-200 ease-out",o?"grid-rows-[1fr]":"grid-rows-[0fr]",e),style:r,...a,children:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:"pb-4 pt-0 text-sm",children:t})})})});bu.displayName="AccordionContent";var hu=$__namespace.createContext(null),xu=()=>{let e=$__namespace.useContext(hu);if(!e)throw new Error("Collapsible components must be used within a Collapsible");return e},yu=$__namespace.forwardRef(({className:e,open:t,defaultOpen:r=false,onOpenChange:a,disabled:n,title:o,children:s,...l},c)=>{let[d,m]=$__namespace.useState(r),u=t!==void 0,f=u?t:d,p=$__namespace.useId(),b=$__namespace.useId(),x=g=>{n||(u||m(g),a?.(g));};return jsxRuntime.jsx(hu.Provider,{value:{open:f,onOpenChange:x,disabled:n,contentId:p,triggerId:b},children:jsxRuntime.jsxs("div",{ref:c,"data-state":f?"open":"closed","data-disabled":n?"":void 0,className:i("space-y-2",e),...l,children:[o&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between space-x-4 px-4",children:[jsxRuntime.jsx("h4",{className:"text-sm font-semibold",children:o}),jsxRuntime.jsx(Oi,{})]}),s]})})});yu.displayName="Collapsible";var Oi=$__namespace.forwardRef(({className:e,children:t,onClick:r,...a},n)=>{let{open:o,onOpenChange:s,disabled:l,contentId:c,triggerId:d}=xu();return jsxRuntime.jsx("button",{ref:n,type:"button",id:d,"aria-controls":c,"aria-expanded":o,disabled:l,"data-state":o?"open":"closed","data-disabled":l?"":void 0,className:i("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",e),onClick:m=>{r?.(m),s(!o);},...a,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})})});Oi.displayName="CollapsibleTrigger";var Ru=$__namespace.forwardRef(({className:e,children:t,style:r,...a},n)=>{let{open:o,contentId:s,triggerId:l,disabled:c}=xu(),d=$__namespace.useRef(null),[m,u]=$__namespace.useState(void 0),[f,p]=$__namespace.useState(false),[b,x]=$__namespace.useState(o);$__namespace.useEffect(()=>{o?(x(true),p(true),requestAnimationFrame(()=>{d.current&&u(d.current.scrollHeight);})):(p(true),u(0));},[o]);let g=()=>{p(false),o||x(false),u(void 0);};return b?jsxRuntime.jsx("div",{ref:n,id:s,role:"region","aria-labelledby":l,"data-state":o?"open":"closed","data-disabled":c?"":void 0,className:i("overflow-hidden",e),style:{...r,height:f?m!==void 0?m:"auto":o?"auto":0,transition:f?"height 0.25s ease-out, opacity 0.25s ease-out":void 0,opacity:o?1:0},onTransitionEnd:g,...a,children:jsxRuntime.jsx("div",{ref:d,children:t})}):null});Ru.displayName="CollapsibleContent";var Jo=$__namespace.forwardRef(({className:e,value:t=0,max:r=100,label:a,showPercentage:n=false,formatPercentage:o=c=>`${Math.round(c)}%`,...s},l)=>{let c=Math.min(Math.max(t/r*100,0),100);return jsxRuntime.jsxs("div",{ref:l,className:"w-full",children:[(a||n)&&jsxRuntime.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[a&&jsxRuntime.jsx("span",{className:"text-muted-foreground",children:a}),n&&jsxRuntime.jsx("span",{className:i("text-muted-foreground",!a&&"ml-auto"),children:o(c)})]}),jsxRuntime.jsx("div",{role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":r,"aria-label":typeof a=="string"?a:void 0,className:i("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...s,children:jsxRuntime.jsx("div",{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-c}%)`}})})]})});Jo.displayName="Progress";var Mu=$__namespace.createContext(null),Tu=()=>{let e=$__namespace.useContext(Mu);if(!e)throw new Error("HoverCard components must be used within a HoverCard");return e},Pu=({children:e,open:t,defaultOpen:r=false,onOpenChange:a,openDelay:n=700,closeDelay:o=300,closeOnScroll:s=true})=>{let[l,c]=$__namespace.useState(r),d=t!==void 0,m=d?t:l,u=$__namespace.useRef(null),f=$__namespace.useId(),p=$__namespace.useRef(null),b=$__namespace.useRef(null),x=$__namespace.useCallback(g=>{p.current&&clearTimeout(p.current),b.current&&clearTimeout(b.current),g?p.current=setTimeout(()=>{d||c(true),a?.(true);},n):b.current=setTimeout(()=>{d||c(false),a?.(false);},o);},[d,a,n,o]);return $__namespace.useEffect(()=>{if(!s||!m)return;let g=()=>{p.current&&clearTimeout(p.current),b.current&&clearTimeout(b.current),d||c(false),a?.(false);};return window.addEventListener("scroll",g,true),()=>window.removeEventListener("scroll",g,true)},[s,m,d,a]),$__namespace.useEffect(()=>()=>{p.current&&clearTimeout(p.current),b.current&&clearTimeout(b.current);},[]),jsxRuntime.jsx(Mu.Provider,{value:{open:m,onOpenChange:x,triggerRef:u,contentId:f},children:e})};Pu.displayName="HoverCard";var ku=$__namespace.forwardRef(({asChild:e,children:t,onMouseEnter:r,onMouseLeave:a,onFocus:n,onBlur:o,...s},l)=>{let{onOpenChange:c,triggerRef:d}=Tu(),m=b=>{r?.(b),c(true);},u=b=>{a?.(b),c(false);},f=b=>{n?.(b),c(true);},p=b=>{o?.(b),c(false);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:b=>{d.current=b,typeof l=="function"?l(b):l&&(l.current=b);},onMouseEnter:m,onMouseLeave:u,onFocus:f,onBlur:p,...s}):jsxRuntime.jsx("a",{ref:b=>{d.current=b,typeof l=="function"?l(b):l&&(l.current=b);},onMouseEnter:m,onMouseLeave:u,onFocus:f,onBlur:p,...s,children:t})});ku.displayName="HoverCardTrigger";var Lu=$__namespace.forwardRef(({className:e,side:t="bottom",sideOffset:r=4,align:a="center",alignOffset:n=0,onMouseEnter:o,onMouseLeave:s,children:l,...c},d)=>{let{open:m,onOpenChange:u,triggerRef:f,contentId:p}=Tu(),[b,x]=$__namespace.useState({top:0,left:0}),[g,v]=$__namespace.useState(false),y=$__namespace.useRef(null);$__namespace.useEffect(()=>{v(true);},[]),$__namespace.useEffect(()=>{if(!m||!f.current||!y.current)return;(()=>{if(!f.current||!y.current)return;let M=f.current.getBoundingClientRect(),T=y.current.getBoundingClientRect(),L=0,N=0;switch(t){case "top":L=M.top-T.height-r;break;case "bottom":L=M.bottom+r;break;case "left":N=M.left-T.width-r;break;case "right":N=M.right+r;break}if(t==="top"||t==="bottom")switch(a){case "start":N=M.left+n;break;case "center":N=M.left+M.width/2-T.width/2;break;case "end":N=M.right-T.width-n;break}else switch(a){case "start":L=M.top+n;break;case "center":L=M.top+M.height/2-T.height/2;break;case "end":L=M.bottom-T.height-n;break}x({top:L,left:N});})();},[m,t,r,a,n,f]);let w=R=>{o?.(R),u(true);},h=R=>{s?.(R),u(false);};if(!g||!m)return null;let C={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return Wo__namespace.createPortal(jsxRuntime.jsx("div",{ref:R=>{y.current=R,typeof d=="function"?d(R):d&&(d.current=R);},id:p,"data-state":m?"open":"closed","data-side":t,className:i("fixed z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",C,e),style:{top:b.top,left:b.left},onMouseEnter:w,onMouseLeave:h,...c,children:l}),document.body)});Lu.displayName="HoverCardContent";var Eu=$__namespace.createContext({size:"md",variant:"default",radius:"md"}),es=()=>$__namespace.useContext(Eu);classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""},variant:{default:"",bordered:"",filled:""},radius:{none:"",sm:"",md:"",lg:"",full:""}},defaultVariants:{size:"md",variant:"default",radius:"md"}});var b0=classVarianceAuthority.cva("flex flex-wrap items-center break-words",{variants:{size:{sm:"gap-1 text-xs",md:"gap-1.5 text-sm sm:gap-2",lg:"gap-2 text-base sm:gap-3"},variant:{default:"text-muted-foreground",bordered:"text-muted-foreground px-3 py-1.5 border",filled:"text-muted-foreground bg-muted px-3 py-1.5"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",variant:"default",radius:"md"}}),v0=classVarianceAuthority.cva("",{variants:{size:{sm:"[&>svg]:h-3 [&>svg]:w-3",md:"[&>svg]:h-3.5 [&>svg]:w-3.5",lg:"[&>svg]:h-4 [&>svg]:w-4"}},defaultVariants:{size:"md"}}),h0=classVarianceAuthority.cva("flex items-center justify-center",{variants:{size:{sm:"h-6 w-6 [&>svg]:h-3 [&>svg]:w-3",md:"h-8 w-8 [&>svg]:h-4 [&>svg]:w-4",lg:"h-10 w-10 [&>svg]:h-5 [&>svg]:w-5"}},defaultVariants:{size:"md"}}),Du=$__namespace.forwardRef(({size:e="md",variant:t="default",radius:r="md",children:a,...n},o)=>jsxRuntime.jsx(Eu.Provider,{value:{size:e,variant:t,radius:r},children:jsxRuntime.jsx("nav",{ref:o,"aria-label":"breadcrumb",...n,children:a})}));Du.displayName="Breadcrumb";var Su=$__namespace.forwardRef(({className:e,...t},r)=>{let{size:a,variant:n,radius:o}=es();return jsxRuntime.jsx("ol",{ref:r,className:i(b0({size:a,variant:n,radius:n==="default"?void 0:o}),e),...t})});Su.displayName="BreadcrumbList";var Hu=$__namespace.forwardRef(({className:e,...t},r)=>{let{size:a}=es();return jsxRuntime.jsx("li",{ref:r,className:i("inline-flex items-center",a==="sm"&&"gap-1",a==="md"&&"gap-1.5",a==="lg"&&"gap-2",e),...t})});Hu.displayName="BreadcrumbItem";var Iu=$__namespace.forwardRef(({asChild:e,className:t,...r},a)=>jsxRuntime.jsx(e?To:"a",{ref:a,className:i("transition-colors hover:text-foreground cursor-pointer",t),...r}));Iu.displayName="BreadcrumbLink";var Vu=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-medium text-foreground",e),...t}));Vu.displayName="BreadcrumbPage";var Au=({children:e,className:t,...r})=>{let{size:a}=es();return jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:i(v0({size:a}),"text-muted-foreground/60",t),...r,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})})};Au.displayName="BreadcrumbSeparator";var zu=({className:e,...t})=>{let{size:r}=es();return jsxRuntime.jsxs("span",{role:"presentation","aria-hidden":"true",className:i(h0({size:r}),e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]})};zu.displayName="BreadcrumbEllipsis";var Fu=$__namespace.forwardRef(({ratio:e=1,className:t,style:r,children:a,...n},o)=>jsxRuntime.jsx("div",{ref:o,className:i("relative w-full",t),style:{...r,paddingBottom:`${100/e}%`},...n,children:jsxRuntime.jsx("div",{className:"absolute inset-0",children:a})}));Fu.displayName="AspectRatio";var $u=$__namespace.createContext(null),Ki=()=>{let e=$__namespace.useContext($u);if(!e)throw new Error("NavigationMenu components must be used within a NavigationMenu");return e},_u=$__namespace.createContext(null),Wu=()=>{let e=$__namespace.useContext(_u);if(!e)throw new Error("NavigationMenuItem components must be used within a NavigationMenuItem");return e},ju=$__namespace.forwardRef(({className:e,orientation:t="horizontal",children:r,...a},n)=>{let[o,s]=$__namespace.useState(null);return jsxRuntime.jsx($u.Provider,{value:{activeItem:o,setActiveItem:s,orientation:t},children:jsxRuntime.jsxs("nav",{ref:n,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[r,jsxRuntime.jsx(Gi,{})]})})});ju.displayName="NavigationMenu";var Uu=$__namespace.forwardRef(({className:e,...t},r)=>{let{orientation:a}=Ki();return jsxRuntime.jsx("ul",{ref:r,className:i("group flex flex-1 list-none items-center justify-center gap-1",a==="vertical"&&"flex-col items-start",e),...t})});Uu.displayName="NavigationMenuList";var Yu=$__namespace.forwardRef(({className:e,children:t,...r},a)=>{let{activeItem:n,setActiveItem:o}=Ki(),s=$__namespace.useId(),l=$__namespace.useRef(null),c=n===s,d=$__namespace.useCallback(m=>{o(m?s:null);},[s,o]);return jsxRuntime.jsx(_u.Provider,{value:{itemId:s,triggerRef:l,open:c,onOpenChange:d},children:jsxRuntime.jsx("li",{ref:a,className:i("relative",e),...r,children:t})})});Yu.displayName="NavigationMenuItem";var Xu=classVarianceAuthority.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50"),qu=$__namespace.forwardRef(({className:e,children:t,onMouseEnter:r,onClick:a,...n},o)=>{let{triggerRef:s,open:l,onOpenChange:c}=Wu(),d=u=>{r?.(u),c(true);},m=u=>{a?.(u),c(!l);};return jsxRuntime.jsxs("button",{ref:u=>{s.current=u,typeof o=="function"?o(u):o&&(o.current=u);},type:"button","data-state":l?"open":"closed",className:i(Xu(),"group",e),onMouseEnter:d,onClick:m,"aria-expanded":l,...n,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})});qu.displayName="NavigationMenuTrigger";var Zu=$__namespace.forwardRef(({className:e,onMouseEnter:t,onMouseLeave:r,...a},n)=>{let{open:o,onOpenChange:s,triggerRef:l}=Wu(),c=$__namespace.useRef(null),[d,m]=$__namespace.useState({top:0,left:0});$__namespace.useEffect(()=>{if(!o||!l.current)return;let p=()=>{if(!l.current)return;let b=l.current.getBoundingClientRect();m({top:b.bottom+4,left:b.left});};return p(),window.addEventListener("resize",p),window.addEventListener("scroll",p,true),()=>{window.removeEventListener("resize",p),window.removeEventListener("scroll",p,true);}},[o,l]);let u=p=>{t?.(p),s(true);},f=p=>{r?.(p),s(false);};return o?Wo__namespace.createPortal(jsxRuntime.jsx("div",{ref:p=>{c.current=p,typeof n=="function"?n(p):n&&(n.current=p);},"data-state":o?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-4 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",e),style:{top:d.top,left:d.left},onMouseEnter:u,onMouseLeave:f,...a}),document.body):null});Zu.displayName="NavigationMenuContent";var Ju=classVarianceAuthority.cva("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground"),Qu=$__namespace.forwardRef(({className:e,active:t,...r},a)=>jsxRuntime.jsx("a",{ref:a,className:i(Ju(),t&&"bg-accent text-accent-foreground",e),...r}));Qu.displayName="NavigationMenuLink";var Gi=$__namespace.forwardRef((e,t)=>null);Gi.displayName="NavigationMenuViewport";var em=$__namespace.forwardRef(({className:e,...t},r)=>{let{activeItem:a}=Ki();return a?jsxRuntime.jsx("div",{ref:r,className:i("top-full z-[1] flex h-2.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:jsxRuntime.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}):null});em.displayName="NavigationMenuIndicator";var nm=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-muted",solid:"bg-muted hover:bg-muted/80",ghost:"hover:bg-accent hover:text-accent-foreground",light:"hover:bg-muted/50",outline:"border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),vr=$__namespace.forwardRef(({className:e,variant:t,size:r,iconSize:a,...n},o)=>{let l=a??{sm:14,md:16,lg:20}[r??"md"];return jsxRuntime.jsx("button",{ref:o,type:"button",className:i(nm({variant:t,size:r}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:l,height:l}})})});vr.displayName="CloseButton";var ts=$__namespace.createContext(null);function L0(){let e=$__namespace.useContext(ts);if(!e)throw new Error("useDrawer must be used within a DrawerProvider.");return e}function Jr(){return $__namespace.useContext(ts)}var E0="16rem",D0="18rem",S0="3rem",H0="b",I0={xs:"256px",sm:"320px",md:"384px",lg:"448px",xl:"512px","2xl":"576px","3xl":"672px","4xl":"768px","5xl":"896px",full:"100%"},V0={xs:"20vh",sm:"30vh",md:"40vh",lg:"50vh",xl:"60vh","2xl":"70vh","3xl":"75vh","4xl":"80vh","5xl":"90vh",full:"100vh"},$i=$__namespace.forwardRef(({defaultOpen:e=false,open:t,onOpenChange:r,placement:a="left",size:n="md",backdrop:o="opaque",isDismissable:s=true,hideCloseButton:l=false,collapsible:c="offcanvas",mode:d,className:m,style:u,children:f,...p},b)=>{let x=d??"overlay",g=x==="overlay",[v,y]=$__namespace.useState(false),[w,h]=$__namespace.useState(false),[C,R]=$__namespace.useState(e),M=t??C,T=$__namespace.useCallback(k=>{let E=typeof k=="function"?k(M):k;r?r(E):R(E);},[r,M]);$__namespace.useEffect(()=>{let k=()=>{y(window.innerWidth<768);};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]);let L=$__namespace.useCallback(()=>g?T(k=>!k):v?h(k=>!k):T(k=>!k),[v,T,h,g]);$__namespace.useEffect(()=>{if(g)return;let k=E=>{E.key===H0&&(E.metaKey||E.ctrlKey)&&(E.preventDefault(),L());};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[L,g]);let N=M?"expanded":"collapsed",P=$__namespace.useMemo(()=>({placement:a,state:N,open:M,setOpen:T,isMobile:v,openMobile:w,setOpenMobile:h,toggleDrawer:L,collapsible:c,mode:x,size:n,backdrop:o,isDismissable:s,hideCloseButton:l}),[a,N,M,T,v,w,h,L,c,x,n,o,s,l]);return g?jsxRuntime.jsx(ts.Provider,{value:P,children:jsxRuntime.jsx(vaul.Drawer.Root,{open:M,onOpenChange:T,direction:a,dismissible:s,children:f})}):jsxRuntime.jsx(ts.Provider,{value:P,children:jsxRuntime.jsx(_r,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:b,style:{"--drawer-width":E0,"--drawer-width-icon":S0,...u},className:i("group/drawer-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-muted/50",m),...p,children:f})})})});$i.displayName="Drawer";var sm=$__namespace.forwardRef(({variant:e="default",embedded:t=false,className:r,children:a,...n},o)=>{let s=Jr();if(!s)return jsxRuntime.jsx("div",{ref:o,className:i("flex h-full flex-col bg-background text-foreground",r),...n,children:a});let{placement:l,collapsible:c,isMobile:d,state:m,openMobile:u,setOpenMobile:f}=s;if(l==="bottom"||l==="top")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a});if(c==="none")return jsxRuntime.jsx("div",{ref:o,className:i("flex h-full w-[--drawer-width] flex-col bg-background text-foreground border-r",l==="right"&&"border-l border-r-0",r),...n,children:a});if(d&&!t)return jsxRuntime.jsx(A0,{open:u,onOpenChange:f,placement:l,children:a});if(t){let b=m==="collapsed",x=c==="offcanvas",g=c==="icon";return jsxRuntime.jsx("div",{ref:o,className:i("group peer text-foreground relative"),"data-state":m,"data-collapsible":b?c:"","data-variant":e,"data-placement":l,"data-embedded":"true",children:jsxRuntime.jsx("div",{className:i("flex h-full flex-col overflow-hidden transition-[width,opacity] duration-200 ease-out",x?b?"w-0 opacity-0":"w-[--drawer-width] opacity-100":g&&b?"w-[--drawer-width-icon]":"w-[--drawer-width]",r),...n,children:jsxRuntime.jsx("div",{"data-drawer":"drawer",className:i("flex h-full w-full flex-col bg-background transition-opacity duration-200",e==="floating"&&"overflow-hidden rounded-lg border shadow-sm",e==="inset"&&"overflow-hidden rounded-lg border",e==="default"&&l==="left"&&"border-r",e==="default"&&l==="right"&&"border-l"),children:a})})})}return jsxRuntime.jsxs("div",{ref:o,className:"group peer hidden md:block text-foreground","data-state":m,"data-collapsible":m==="collapsed"?c:"","data-variant":e,"data-placement":l,children:[jsxRuntime.jsx("div",{className:i("duration-200 relative h-svh w-[--drawer-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0",l==="right"&&"group-data-[placement=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--drawer-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--drawer-width-icon]")}),jsxRuntime.jsx("div",{className:i("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--drawer-width] transition-[left,right,width] ease-linear md:flex",l==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--drawer-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--drawer-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--drawer-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--drawer-width-icon] group-data-[placement=left]:border-r group-data-[placement=right]:border-l",r),...n,children:jsxRuntime.jsx("div",{"data-drawer":"drawer",className:i("flex h-full w-full flex-col bg-background",e==="floating"&&"overflow-hidden rounded-lg border shadow-sm",e==="inset"&&"overflow-hidden rounded-lg border"),children:a})})]})});sm.displayName="DrawerSidebar";var A0=({children:e,open:t,onOpenChange:r,placement:a})=>{let[n,o]=$__namespace.useState(false);return $__namespace.useEffect(()=>{o(true);},[]),$__namespace.useEffect(()=>(t&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[t]),!n||!t?null:Wo__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 animate-in fade-in-0",onClick:()=>r(false)}),jsxRuntime.jsx("div",{className:i("fixed z-50 bg-background p-0 text-foreground shadow-lg","animate-in",a==="left"&&"inset-y-0 left-0 h-full w-[--drawer-width] slide-in-from-left",a==="right"&&"inset-y-0 right-0 h-full w-[--drawer-width] slide-in-from-right"),style:{"--drawer-width":D0},children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:e})})]}),document.body)},im=$__namespace.forwardRef(({className:e,onClick:t,...r},a)=>{let n=Jr();if(n?.mode==="overlay")return jsxRuntime.jsx(vaul.Drawer.Trigger,{ref:a,className:e,onClick:t,...r});let o=n?.toggleDrawer;return jsxRuntime.jsxs("button",{ref:a,type:"button","data-drawer":"trigger",className:i("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-accent transition-colors cursor-pointer",e),onClick:s=>{t?.(s),o?.();},...r,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Drawer"})]})});im.displayName="DrawerTrigger";var lm=$__namespace.forwardRef(({className:e,children:t,...r},a)=>{let n=Jr(),o=n?.mode==="overlay",s=n?.placement||"left",l=n?.size||"md",c=n?.backdrop||"opaque",d=n?.hideCloseButton||false;if(o){let m=s==="top"||s==="bottom",u=s==="left"||s==="right",f=u?I0[l]:V0[l],p={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},b={top:"inset-x-0 top-0 rounded-b-[10px]",bottom:"inset-x-0 bottom-0 rounded-t-[10px]",left:"inset-y-0 left-0 rounded-r-[10px]",right:"inset-y-0 right-0 rounded-l-[10px]"};return jsxRuntime.jsxs(vaul.Drawer.Portal,{children:[jsxRuntime.jsx(vaul.Drawer.Overlay,{className:i("fixed inset-0 z-50",p[c])}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:a,className:i("fixed z-50 flex flex-col border bg-background",b[s],e),style:{...u?{width:f,height:"100%"}:{},...m?{maxHeight:f}:{},...r.style},...r,children:[u&&!d&&jsxRuntime.jsx(vaul.Drawer.Close,{asChild:true,children:jsxRuntime.jsx(vr,{variant:"light",className:"absolute right-4 top-4 z-10"})}),m&&jsxRuntime.jsx("div",{className:i("mx-auto h-2 w-[100px] rounded-full bg-muted",s==="top"?"mb-4 mt-auto":"mt-4")}),t]})]})}return jsxRuntime.jsx("div",{ref:a,className:i("flex flex-col h-full",e),...r,children:t})});lm.displayName="DrawerContent";var cm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"header",className:i("flex flex-col gap-2 p-4",e),...t}));cm.displayName="DrawerHeader";var dm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"body",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto p-4 group-data-[collapsible=icon]:overflow-hidden",e),...t}));dm.displayName="DrawerBody";var um=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"footer",className:i("flex flex-col gap-2 p-4 mt-auto",e),...t}));um.displayName="DrawerFooter";var mm=$__namespace.forwardRef(({className:e,...t},r)=>Jr()?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Title,{ref:r,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}):jsxRuntime.jsx("h2",{ref:r,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));mm.displayName="DrawerTitle";var pm=$__namespace.forwardRef(({className:e,...t},r)=>Jr()?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Description,{ref:r,className:i("text-sm text-muted-foreground",e),...t}):jsxRuntime.jsx("p",{ref:r,className:i("text-sm text-muted-foreground",e),...t}));pm.displayName="DrawerDescription";var fm=$__namespace.forwardRef(({className:e,onClick:t,...r},a)=>{let n=Jr();return n?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Close,{ref:a,className:e,onClick:t,...r}):jsxRuntime.jsx(vr,{ref:a,variant:"light",className:e,onClick:s=>{t?.(s),n?.setOpen(false);},...r})});fm.displayName="DrawerClose";var gm=$__namespace.forwardRef(({className:e,onClick:t,showLabel:r=true,...a},n)=>{let o=Jr();if(!o)return null;let{toggleDrawer:s,state:l,placement:c}=o,d=l==="collapsed",m=c==="left",u=m?lucideReact.PanelLeftOpen:lucideReact.PanelRightOpen,f=m?lucideReact.PanelLeftClose:lucideReact.PanelRightClose;return jsxRuntime.jsxs("button",{ref:n,type:"button","data-drawer":"toggle","data-state":l,className:i("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-muted-foreground","hover:bg-accent hover:text-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",e),onClick:p=>{t?.(p),s();},...a,children:[d?jsxRuntime.jsx(u,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(f,{className:"h-4 w-4 shrink-0"}),r&&jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:d?"Expand":"Collapse"})]})});gm.displayName="DrawerToggle";var bm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"separator",className:i("mx-4 h-px bg-border",e),...t}));bm.displayName="DrawerSeparator";var vm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,"data-drawer":"menu",className:i("flex w-full min-w-0 flex-col gap-1",e),...t}));vm.displayName="DrawerMenu";var hm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,"data-drawer":"menu-item",className:i("group/menu-item relative",e),...t}));hm.displayName="DrawerMenuItem";var xm=classVarianceAuthority.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-ring transition-[width,height,padding] hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-accent data-[active=true]:font-medium data-[active=true]:text-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-accent hover:text-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--border))] hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent/50 hover:text-accent-foreground"},size:{sm:"h-7 text-xs",md:"h-8 text-sm",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"md"}}),ym=$__namespace.forwardRef(({asChild:e=false,isActive:t=false,variant:r="default",size:a="md",tooltip:n,className:o,children:s,...l},c)=>{let d=Jr(),m=d?.isMobile??false,u=d?.state??"expanded",f=jsxRuntime.jsx("button",{ref:c,type:"button","data-drawer":"menu-button","data-size":a,"data-active":t,className:i(xm({variant:r,size:a}),o),...l,children:s});return n?jsxRuntime.jsxs(Wr,{children:[jsxRuntime.jsx(jr,{asChild:true,children:f}),jsxRuntime.jsx(Ur,{side:"right",align:"center",hidden:u!=="collapsed"||m,...typeof n=="string"?{children:n}:n})]}):f});ym.displayName="DrawerMenuButton";var Rm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"group",className:i("relative flex w-full min-w-0 flex-col p-2",e),...t}));Rm.displayName="DrawerGroup";var wm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-muted-foreground outline-none transition-[margin,opacity] ease-linear","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...t}));wm.displayName="DrawerGroupLabel";var Cm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("main",{ref:r,className:i("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Cm.displayName="DrawerInset";var z0=$i;var Mm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:r,className:i("w-full caption-bottom text-sm",e),...t})}));Mm.displayName="Table";var Tm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("thead",{ref:r,className:i("[&_tr]:border-b",e),...t}));Tm.displayName="TableHeader";var Pm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tbody",{ref:r,className:i("[&_tr:last-child]:border-0",e),...t}));Pm.displayName="TableBody";var km=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tfoot",{ref:r,className:i("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));km.displayName="TableFooter";var Lm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tr",{ref:r,className:i("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Lm.displayName="TableRow";var Em=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("th",{ref:r,className:i("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Em.displayName="TableHead";var Dm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("td",{ref:r,className:i("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Dm.displayName="TableCell";var Sm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("caption",{ref:r,className:i("mt-4 text-sm text-muted-foreground",e),...t}));Sm.displayName="TableCaption";function $0({className:e,data:t,columns:r,selectable:a=false,selectedKeys:n,onSelectionChange:o,getRowKey:s=(h,C)=>String(C),sortable:l=false,sortState:c,onSortChange:d,paginated:m=false,pageSizeOptions:u=[10,20,50],paginationState:f,onPaginationChange:p,emptyContent:b="No data",loading:x=false,striped:g=false,hoverable:v=true,...y},w){let[h,C]=$__namespace.useState(new Set),[R,M]=$__namespace.useState({columnId:null,direction:null}),[T,L]=$__namespace.useState({pageIndex:0,pageSize:u[0]||10}),N=n??h,P=c??R,k=f??T,E=K=>{o?o(K):C(K);},H=K=>{d?d(K):M(K);},S=K=>{p?p(K):L(K);},D=$__namespace.useMemo(()=>{if(!P.columnId||!P.direction)return t;let K=r.find(B=>B.id===P.columnId);return K?[...t].sort((B,j)=>{let A=K.accessor(B),U=K.accessor(j);if(A===U)return 0;if(A==null)return 1;if(U==null)return -1;let W=String(A).localeCompare(String(U),void 0,{numeric:true});return P.direction==="asc"?W:-W}):t},[t,P,r]),I=$__namespace.useMemo(()=>{if(!m)return D;let K=k.pageIndex*k.pageSize;return D.slice(K,K+k.pageSize)},[D,m,k]),z=Math.ceil(D.length/k.pageSize),G=K=>{if(K===true){let B=new Set(I.map((j,A)=>s(j,A)));E(B);}else E(new Set);},V=(K,B)=>{let j=new Set(N);B?j.add(K):j.delete(K),E(j);},F=I.length>0&&I.every((K,B)=>N.has(s(K,B))),O=I.some((K,B)=>N.has(s(K,B))),Q=K=>{if(!r.find(A=>A.id===K)?.sortable&&!l)return;let j="asc";P.columnId===K&&(P.direction==="asc"?j="desc":P.direction==="desc"&&(j=null)),H({columnId:j?K:null,direction:j});},re=K=>P.columnId!==K?jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4 text-muted-foreground/50"}):P.direction==="asc"?jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"});return jsxRuntime.jsxs("div",{ref:w,className:i("w-full",e),...y,children:[jsxRuntime.jsx("div",{className:"relative w-full overflow-auto rounded-md border",children:jsxRuntime.jsxs("table",{className:"w-full caption-bottom text-sm",children:[jsxRuntime.jsx("thead",{className:"[&_tr]:border-b bg-muted/50",children:jsxRuntime.jsxs("tr",{children:[a&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(Bn,{checked:F?true:O?"indeterminate":false,onCheckedChange:G,"aria-label":"Select all"})}),r.map(K=>{let B=K.sortable??l;return jsxRuntime.jsx("th",{className:i("h-12 px-4 text-left align-middle font-medium text-muted-foreground",B&&"cursor-pointer select-none hover:text-foreground"),style:{width:K.width},onClick:()=>B&&Q(K.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[K.header,B&&re(K.id)]})},K.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:x?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:r.length+(a?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):I.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:r.length+(a?1:0),className:"h-24 text-center text-muted-foreground",children:b})}):I.map((K,B)=>{let j=s(K,B),A=N.has(j);return jsxRuntime.jsxs("tr",{className:i("border-b transition-colors",v&&"hover:bg-muted/50",g&&B%2===1&&"bg-muted/30",A&&"bg-muted"),"data-state":A?"selected":void 0,children:[a&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(Bn,{checked:A,onCheckedChange:U=>V(j,!!U),"aria-label":`Select row ${B+1}`})}),r.map(U=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:U.cell?U.cell(K,B):U.accessor(K)},U.id))]},j)})})]})}),m&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:"Rows per page:"}),jsxRuntime.jsx("select",{value:k.pageSize,onChange:K=>S({pageIndex:0,pageSize:Number(K.target.value)}),className:"h-8 rounded-md border bg-transparent px-2",children:u.map(K=>jsxRuntime.jsx("option",{value:K,children:K},K))})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",k.pageIndex+1," of ",z||1]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx(J,{variant:"light",size:"icon",className:"h-8 w-8",onClick:()=>S({...k,pageIndex:k.pageIndex-1}),disabled:k.pageIndex===0,"aria-label":"Previous page",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(J,{variant:"light",size:"icon",className:"h-8 w-8",onClick:()=>S({...k,pageIndex:k.pageIndex+1}),disabled:k.pageIndex>=z-1,"aria-label":"Next page",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})]})]})}var _0=$__namespace.forwardRef($0);var Vm=classVarianceAuthority.cva("animate-spin",{variants:{size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-12 w-12"},color:{default:"text-foreground",primary:"text-primary",muted:"text-muted-foreground",success:"text-success",warning:"text-warning",danger:"text-danger",white:"text-white"}},defaultVariants:{size:"md",color:"default"}}),j0={xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"},Am=$__namespace.forwardRef(({className:e,size:t="md",color:r,label:a="Loading",text:n,textPosition:o="right",customColor:s,...l},c)=>{let d=jsxRuntime.jsxs("svg",{className:i(Vm({size:t,color:s?void 0:r})),style:s?{color:s}:void 0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",role:"status","aria-label":a,children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]});if(!n)return jsxRuntime.jsx("div",{ref:c,className:i("inline-flex",e),...l,children:d});let m=jsxRuntime.jsx("span",{className:i("text-muted-foreground",j0[t]),children:n}),u=o==="top"||o==="bottom";return jsxRuntime.jsxs("div",{ref:c,className:i("inline-flex items-center",u?"flex-col gap-2":"flex-row gap-3",(o==="left"||o==="top")&&(u?"flex-col-reverse":"flex-row-reverse"),e),...l,children:[d,m]})});Am.displayName="Spinner";var _i=["January","February","March","April","May","June","July","August","September","October","November","December"];function Q0({currentMonth:e,onMonthChange:t,startYear:r,endYear:a}){let[n,o]=$__namespace.useState(false),[s,l]=$__namespace.useState(false),c=$__namespace.useRef(null),d=$__namespace.useRef(null),m=dateFns.getMonth(e),u=dateFns.getYear(e);$__namespace.useEffect(()=>{function x(g){c.current&&!c.current.contains(g.target)&&o(false),d.current&&!d.current.contains(g.target)&&l(false);}return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);let f=x=>{let g=dateFns.setMonth(e,x);t(g),o(false);},p=x=>{let g=dateFns.setYear(e,x);t(g),l(false);},b=$__namespace.useMemo(()=>{let x=[];for(let g=a;g>=r;g--)x.push(g);return x},[r,a]);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{ref:c,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{o(!n),l(false);},className:i("inline-flex items-center justify-between gap-2 px-3 py-1.5 rounded-md","text-sm font-medium w-[120px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer",n&&"ring-2 ring-primary ring-offset-2 ring-offset-background"),children:[jsxRuntime.jsx("span",{children:_i[m]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 text-muted-foreground transition-transform",n&&"rotate-180")})]}),n&&jsxRuntime.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[140px] rounded-md border border-border bg-background shadow-lg",children:jsxRuntime.jsx(je,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:_i.map((x,g)=>jsxRuntime.jsx("button",{type:"button",onClick:()=>f(g),className:i("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",m===g&&"bg-primary/10 text-primary font-medium"),children:x},x))})})})]}),jsxRuntime.jsxs("div",{ref:d,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{l(!s),o(false);},className:i("inline-flex items-center justify-between gap-2 px-3 py-1.5 rounded-md","text-sm font-medium w-[85px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer",s&&"ring-2 ring-primary ring-offset-2 ring-offset-background"),children:[jsxRuntime.jsx("span",{children:u}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 text-muted-foreground transition-transform",s&&"rotate-180")})]}),s&&jsxRuntime.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[100px] rounded-md border border-border bg-background shadow-lg",children:jsxRuntime.jsx(je,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:b.map(x=>jsxRuntime.jsx("button",{type:"button",onClick:()=>p(x),className:i("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",u===x&&"bg-primary/10 text-primary font-medium"),children:x},x))})})})]})]})}function ew(e,t,r){return function({calendarMonth:n}){let{goToMonth:o,nextMonth:s,previousMonth:l}=reactDayPicker.useDayPicker();if(e)return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsx(Q0,{currentMonth:n.date,onMonthChange:o,startYear:t,endYear:r}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&o(l),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&o(s),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]});let c=_i[n.date.getMonth()],d=n.date.getFullYear();return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium w-[90px]",children:c}),jsxRuntime.jsx("span",{className:"text-sm font-medium w-[50px]",children:d})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&o(l),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&o(s),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})}}function sn({className:e,classNames:t,showOutsideDays:r=true,showMonthAndYearPickers:a=false,startYear:n=1900,endYear:o=new Date().getFullYear()+50,components:s,...l}){let c=$__namespace.useMemo(()=>ew(a,n,o),[a,n,o]);return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:r,className:i("p-4",e),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-2",month_caption:"sr-only",nav:"hidden",month_grid:"w-full border-collapse",weekdays:"flex",weekday:"text-muted-foreground w-10 font-normal text-xs text-center",week:"flex w-full mt-1",day:i("relative h-10 w-10 p-0 text-center text-sm","flex items-center justify-center","focus-within:relative focus-within:z-20","[&:has([aria-selected]:not(.outside-day))]:bg-accent","first:[&:has([aria-selected]:not(.outside-day))]:rounded-l-md","last:[&:has([aria-selected]:not(.outside-day))]:rounded-r-md"),day_button:i("size-10 p-0 font-normal rounded-md text-sm","inline-flex items-center justify-center","hover:bg-primary/10 hover:text-primary","focus:outline-none","transition-colors cursor-pointer"),range_start:"rounded-l-md",range_end:"rounded-r-md",selected:i("bg-primary text-primary-foreground rounded-md","hover:bg-primary/90 hover:!text-primary-foreground","focus:bg-primary focus:text-primary-foreground","[&.outside-day]:bg-transparent [&.outside-day]:text-muted-foreground/50"),today:"bg-accent text-accent-foreground rounded-md",outside:"outside-day text-muted-foreground/50",disabled:"text-muted-foreground/30 cursor-not-allowed",range_middle:"rounded-none",hidden:"invisible",...t},modifiersStyles:{range_middle:{backgroundColor:"var(--color-muted)",color:"var(--color-foreground)",borderRadius:0},outside:{backgroundColor:"transparent"}},components:{...s,MonthCaption:c},...l})}sn.displayName="Calendar";var Fm=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center",e),...t});Fm.displayName="Pagination";var Km=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,className:i("flex flex-row items-center gap-1",e),...t}));Km.displayName="PaginationContent";var Gm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,className:i("",e),...t}));Gm.displayName="PaginationItem";var as=({className:e,isActive:t,size:r="icon",...a})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:i(fr({variant:t?"solid":"light",size:r}),e),...a});as.displayName="PaginationLink";var $m=({className:e,...t})=>jsxRuntime.jsxs(as,{"aria-label":"Go to previous page",size:"md",className:i("gap-1 pl-2.5",e),...t,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:"Previous"})]});$m.displayName="PaginationPrevious";var _m=({className:e,...t})=>jsxRuntime.jsxs(as,{"aria-label":"Go to next page",size:"md",className:i("gap-1 pr-2.5",e),...t,children:[jsxRuntime.jsx("span",{children:"Next"}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})]});_m.displayName="PaginationNext";var Wm=({className:e,...t})=>jsxRuntime.jsxs("span",{"aria-hidden":true,className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"More pages"})]});Wm.displayName="PaginationEllipsis";var Ui=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command,{ref:r,className:i("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Ui.displayName=cmdk.Command.displayName;var ow=({children:e,...t})=>jsxRuntime.jsx(ko,{...t,children:jsxRuntime.jsx(Lo,{className:"overflow-hidden p-0 shadow-lg",children:jsxRuntime.jsx(Ui,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),jm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(lucideReact.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:r,className:i("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));jm.displayName=cmdk.Command.Input.displayName;var Um=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.List,{ref:r,className:i("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Um.displayName=cmdk.Command.List.displayName;var Ym=$__namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Ym.displayName=cmdk.Command.Empty.displayName;var Xm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:r,className:i("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Xm.displayName=cmdk.Command.Group.displayName;var qm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:r,className:i("-mx-1 h-px bg-border",e),...t}));qm.displayName=cmdk.Command.Separator.displayName;var Zm=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Item,{ref:r,className:i("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Zm.displayName=cmdk.Command.Item.displayName;var Jm=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Jm.displayName="CommandShortcut";var Qm=$__namespace.forwardRef(({className:e,showToggle:t=true,disabled:r,onFocus:a,onBlur:n,style:o,...s},l)=>{let[c,d]=$__namespace.useState(false),[m,u]=$__namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:c?"text":"password",className:i("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",t&&"pr-10",e),ref:l,disabled:r,style:{...o,borderColor:m?"var(--color-foreground)":void 0},onFocus:f=>{u(true),a?.(f);},onBlur:f=>{u(false),n?.(f);},...s}),t&&jsxRuntime.jsx("button",{type:"button",className:"absolute right-0 top-0 h-10 w-10 px-3 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>d(!c),disabled:r,tabIndex:-1,"aria-label":c?"Hide password":"Show password",children:c?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4"})})]})});Qm.displayName="PasswordInput";var ep=$__namespace.forwardRef(({className:e,showButtons:t=true,step:r=1,min:a,max:n,value:o,defaultValue:s,onChange:l,disabled:c,...d},m)=>{let[u,f]=$__namespace.useState(s),[p,b]=$__namespace.useState(false),x=o!==void 0,g=x?o:u,v=T=>{T!==void 0&&(a!==void 0&&T<a&&(T=a),n!==void 0&&T>n&&(T=n)),x||f(T),l?.(T);},y=()=>{v((g??0)+r);},w=()=>{v((g??0)-r);},h=T=>{let L=T.target.value;if(L==="")v(void 0);else {let N=parseFloat(L);isNaN(N)||v(N);}},C=T=>{T.key==="ArrowUp"?(T.preventDefault(),y()):T.key==="ArrowDown"&&(T.preventDefault(),w());},R=a===void 0||(g??0)>a,M=n===void 0||(g??0)<n;return t?jsxRuntime.jsxs("div",{className:i("relative flex items-center rounded-md border transition-colors",p?"border-foreground":"border-input",c&&"opacity-50",e),children:[jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:w,disabled:c||!R,tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}),jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:"min-w-0 flex-1 h-10 bg-background text-sm text-center focus:outline-none disabled:cursor-not-allowed",ref:m,value:g??"",onChange:h,onKeyDown:C,disabled:c,onFocus:()=>b(true),onBlur:()=>b(false),...d}),jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:y,disabled:c||!M,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}):jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:i("flex h-10 w-full bg-background px-3 py-2 text-sm text-center border rounded-md placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",p?"border-foreground":"border-input",e),ref:m,value:g??"",onChange:h,onKeyDown:C,disabled:c,onFocus:()=>b(true),onBlur:()=>b(false),...d})});ep.displayName="NumberInput";var rp=$__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:r,placeholder:a="Pick a date",dateFormat:n="PPP",disabled:o=false,minDate:s,maxDate:l,className:c},d)=>{let[m,u]=$__namespace.useState(false),[f,p]=$__namespace.useState(t),b=e!==void 0,x=b?e:f,g=v=>{b||p(v),r?.(v),u(false);};return jsxRuntime.jsxs(at,{open:m,onOpenChange:u,children:[jsxRuntime.jsx(ht,{asChild:true,children:jsxRuntime.jsxs(J,{ref:d,variant:"bordered",disabled:o,className:i("w-full justify-start text-left font-normal",!x&&"text-muted-foreground",c),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),x?dateFns.format(x,n):a]})}),jsxRuntime.jsx(nt,{className:"w-auto p-0",align:"start",children:jsxRuntime.jsx(sn,{mode:"single",selected:x,onSelect:g,disabled:v=>!!(s&&v<s||l&&v>l),initialFocus:true})})]})});rp.displayName="DatePicker";var sp=classVarianceAuthority.cva("flex -space-x-2",{variants:{size:{sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3"}},defaultVariants:{size:"md"}}),ap=classVarianceAuthority.cva("border-2 border-background ring-0 cursor-pointer transition-transform duration-200 hover:-translate-y-1",{variants:{size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{size:"md"}}),ip=$__namespace.forwardRef(({className:e,items:t,max:r=5,size:a,showTooltips:n=false,...o},s)=>{let l=t.slice(0,r),c=t.length-r,d=(u,f)=>{let p=jsxRuntime.jsxs(Ma,{className:i(ap({size:a})),children:[u.src&&jsxRuntime.jsx(an,{src:u.src,alt:u.alt||""}),jsxRuntime.jsx(Ta,{className:"text-xs",children:u.fallback||u.alt?.charAt(0)?.toUpperCase()||"?"})]},f);return n&&u.alt?jsxRuntime.jsxs(Wr,{children:[jsxRuntime.jsx(jr,{asChild:true,children:p}),jsxRuntime.jsx(Ur,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:u.alt})]},f):p},m=jsxRuntime.jsxs("div",{ref:s,className:i(sp({size:a,className:e})),...o,children:[l.map((u,f)=>d(u,f)),c>0&&jsxRuntime.jsx(Ma,{className:i(ap({size:a})),children:jsxRuntime.jsxs(Ta,{className:"bg-muted text-muted-foreground",children:["+",c]})})]});return n?jsxRuntime.jsx(_r,{delayDuration:300,children:m}):m});ip.displayName="AvatarGroup";var lp=classVarianceAuthority.cva("flex gap-0.5",{variants:{size:{sm:"[&_svg]:h-4 [&_svg]:w-4",md:"[&_svg]:h-5 [&_svg]:w-5",lg:"[&_svg]:h-6 [&_svg]:w-6"}},defaultVariants:{size:"md"}}),cp=$__namespace.forwardRef(({className:e,value:t,defaultValue:r=0,onValueChange:a,max:n=5,size:o,icon:s="star",allowHalf:l=false,readOnly:c=false,disabled:d=false,filledColor:m,emptyColor:u,...f},p)=>{let[b,x]=$__namespace.useState(r),[g,v]=$__namespace.useState(null),y=t!==void 0,w=y?t:b,h=g!==null?g:w,C=E=>{c||d||(y||x(E),a?.(E));},R=(E,H=false)=>{let S=l&&H?E+.5:E+1;C(S);},M=(E,H)=>{if(c||d)return;let S=E.currentTarget.getBoundingClientRect(),D=l&&E.clientX<S.left+S.width/2;v(D?H+.5:H+1);},T=()=>{v(null);},L=s==="heart"?lucideReact.Heart:lucideReact.Star,N=E=>h>=E+1?"full":h>=E+.5?"half":"empty",P=m?{color:m,fill:m}:{},k=u?{color:u}:{};return jsxRuntime.jsx("div",{ref:p,className:i(lp({size:o,className:e}),d&&"opacity-50 cursor-not-allowed"),onMouseLeave:T,role:"radiogroup","aria-label":"Rating",...f,children:Array.from({length:n},(E,H)=>{let S=N(H);return jsxRuntime.jsxs("button",{type:"button",className:i("relative focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",!c&&!d&&"cursor-pointer hover:scale-110 transition-transform"),onClick:D=>{let I=D.currentTarget.getBoundingClientRect(),z=l&&D.clientX<I.left+I.width/2;R(H,z);},onMouseMove:D=>M(D,H),disabled:d||c,"aria-label":`Rate ${H+1} out of ${n}`,role:"radio","aria-checked":w===H+1,children:[jsxRuntime.jsx(L,{className:i("text-muted-foreground/30",S!=="empty"&&"absolute inset-0"),style:S==="empty"?k:void 0}),S!=="empty"&&jsxRuntime.jsx(L,{className:i("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",S==="half"&&"clip-path-half"),style:{...P,clipPath:S==="half"?"inset(0 50% 0 0)":void 0}})]},H)})})});cp.displayName="Rating";var mp=classVarianceAuthority.cva("inline-flex items-center justify-center gap-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"border-transparent text-primary-foreground",outline:"border bg-transparent",ghost:"border-transparent bg-transparent",soft:"border-transparent",surface:"border-transparent bg-muted text-muted-foreground"},color:{primary:"",secondary:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-6 px-2 text-xs",md:"h-7 px-2.5 text-sm",lg:"h-8 px-3 text-sm"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},clickable:{true:"cursor-pointer",false:""}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"solid",color:"success",className:"bg-success hover:bg-success/90"},{variant:"solid",color:"warning",className:"bg-warning text-warning-foreground hover:bg-warning/90"},{variant:"solid",color:"danger",className:"bg-danger hover:bg-danger/90"},{variant:"solid",color:"info",className:"bg-info hover:bg-info/90"},{variant:"outline",color:"primary",className:"border-primary text-primary hover:bg-primary/10"},{variant:"outline",color:"secondary",className:"border-secondary text-secondary-foreground hover:bg-secondary/10"},{variant:"outline",color:"success",className:"border-success text-success hover:bg-success/10"},{variant:"outline",color:"warning",className:"border-warning text-warning hover:bg-warning/10"},{variant:"outline",color:"danger",className:"border-danger text-danger hover:bg-danger/10"},{variant:"outline",color:"info",className:"border-info text-info hover:bg-info/10"},{variant:"ghost",color:"primary",className:"text-primary hover:bg-primary/10"},{variant:"ghost",color:"secondary",className:"text-secondary-foreground hover:bg-secondary"},{variant:"ghost",color:"success",className:"text-success hover:bg-success/10"},{variant:"ghost",color:"warning",className:"text-warning hover:bg-warning/10"},{variant:"ghost",color:"danger",className:"text-danger hover:bg-danger/10"},{variant:"ghost",color:"info",className:"text-info hover:bg-info/10"},{variant:"soft",color:"primary",className:"bg-primary/15 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"soft",color:"success",className:"bg-success/15 text-success hover:bg-success/20"},{variant:"soft",color:"warning",className:"bg-warning/15 text-warning hover:bg-warning/20"},{variant:"soft",color:"danger",className:"bg-danger/15 text-danger hover:bg-danger/20"},{variant:"soft",color:"info",className:"bg-info/15 text-info hover:bg-info/20"}],defaultVariants:{variant:"solid",color:"primary",size:"md",radius:"full",clickable:false}}),yw=classVarianceAuthority.cva("ml-1 rounded-full p-0.5 transition-colors hover:bg-black/10 dark:hover:bg-white/10",{variants:{size:{sm:"[&_svg]:size-3",md:"[&_svg]:size-3.5",lg:"[&_svg]:size-4"}},defaultVariants:{size:"md"}}),pp=$__namespace.forwardRef(({className:e,variant:t,color:r,size:a,radius:n,clickable:o,startContent:s,endContent:l,closable:c,onClose:d,disabled:m,avatar:u,children:f,onClick:p,...b},x)=>{let g=o||!!p,v=y=>{y.stopPropagation(),d?.();};return jsxRuntime.jsxs("div",{ref:x,role:g?"button":void 0,tabIndex:g&&!m?0:void 0,"aria-disabled":m,onClick:m?void 0:p,onKeyDown:g&&!m?y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),p?.(y));}:void 0,className:i(mp({variant:t,color:r,size:a,radius:n,clickable:g}),m&&"opacity-50 cursor-not-allowed",e),...b,children:[u&&jsxRuntime.jsx("span",{className:"-ml-1 [&>*]:size-5 [&>*]:rounded-full",children:u}),s&&jsxRuntime.jsx("span",{className:"shrink-0",children:s}),jsxRuntime.jsx("span",{className:"truncate",children:f}),l&&jsxRuntime.jsx("span",{className:"shrink-0",children:l}),c&&jsxRuntime.jsx("button",{type:"button","aria-label":"Remove",onClick:v,disabled:m,className:i(yw({size:a})),children:jsxRuntime.jsx(lucideReact.X,{})})]})});pp.displayName="Chip";var fp=$.createContext({direction:"horizontal"}),kw=({className:e,direction:t="horizontal",children:r,...a})=>jsxRuntime.jsx(fp.Provider,{value:{direction:t},children:jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:i("flex h-full w-full data-[orientation=vertical]:flex-col",e),...a,children:r})}),Lw=reactResizablePanels.Panel,Ew=({withHandle:e,className:t,...r})=>{let{direction:a}=$.useContext(fp),n=a==="vertical";return jsxRuntime.jsx(reactResizablePanels.Separator,{className:i("relative flex shrink-0 items-center justify-center bg-border outline-none",n?"h-px w-full after:absolute after:inset-x-0 after:top-1/2 after:h-1 after:-translate-y-1/2":"w-px after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2",t),...r,children:e&&jsxRuntime.jsx("div",{className:i("z-10 flex items-center justify-center rounded-sm border bg-border",n?"h-3 w-4 rotate-90":"h-4 w-3"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-2.5 w-2.5"})})})};var vp=classVarianceAuthority.cva("inline-flex items-center gap-1",{variants:{size:{sm:"[&>span]:h-1 [&>span]:w-1",md:"[&>span]:h-1.5 [&>span]:w-1.5",lg:"[&>span]:h-2 [&>span]:w-2",xl:"[&>span]:h-3 [&>span]:w-3"}},defaultVariants:{size:"md"}}),hp=$__namespace.forwardRef(({className:e,size:t,count:r=3,...a},n)=>jsxRuntime.jsx("span",{ref:n,role:"status","aria-label":"Loading",className:i(vp({size:t,className:e})),...a,children:Array.from({length:r}).map((o,s)=>jsxRuntime.jsx("span",{className:"rounded-full bg-current animate-dots-bounce",style:{animationDelay:`${s*.16}s`}},s))}));hp.displayName="Dots";var wp=classVarianceAuthority.cva("relative inline-flex items-center justify-center",{variants:{size:{sm:"h-8 w-8",md:"h-12 w-12",lg:"h-16 w-16",xl:"h-24 w-24"},color:{default:"",primary:"",success:"",warning:"",danger:""}},defaultVariants:{size:"md",color:"default"}}),Hw={sm:{size:32,strokeWidth:3,fontSize:"text-[10px]"},md:{size:48,strokeWidth:4,fontSize:"text-xs"},lg:{size:64,strokeWidth:5,fontSize:"text-sm"},xl:{size:96,strokeWidth:6,fontSize:"text-base"}},xp={default:"var(--color-foreground, #18181b)",primary:"var(--color-primary, #18181b)",success:"var(--color-success, #16a34a)",warning:"var(--color-warning, #d97706)",danger:"var(--color-danger, #dc2626)"},Cp=$__namespace.forwardRef(({className:e,size:t="md",color:r="default",value:a,max:n=100,showValue:o=false,formatValue:s=m=>`${Math.round(m)}%`,trackClassName:l,...c},d)=>{let m=Math.min(100,Math.max(0,a/n*100)),u=Hw[t],f=(u.size-u.strokeWidth)/2,p=2*Math.PI*f,b=p-m/100*p;return jsxRuntime.jsxs("div",{ref:d,className:i(wp({size:t,color:r}),e),role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":n,...c,children:[jsxRuntime.jsxs("svg",{width:u.size,height:u.size,viewBox:`0 0 ${u.size} ${u.size}`,fill:"none",children:[jsxRuntime.jsx("circle",{className:i("stroke-muted",l),cx:u.size/2,cy:u.size/2,r:f,strokeWidth:u.strokeWidth,fill:"none"}),jsxRuntime.jsx("circle",{cx:u.size/2,cy:u.size/2,r:f,strokeWidth:u.strokeWidth,fill:"none",strokeLinecap:"round",stroke:xp[r]||xp.default,strokeDasharray:`${p} ${p}`,strokeDashoffset:b,style:{transformOrigin:"center",transform:"rotate(-90deg)",transition:"stroke-dashoffset 0.3s ease-in-out"}})]}),o&&jsxRuntime.jsx("span",{className:i("absolute font-medium text-foreground",u.fontSize),children:s(m)})]})});Cp.displayName="CircularProgress";var Np=$__namespace.createContext(null),Aw=()=>{let e=$__namespace.useContext(Np);if(!e)throw new Error("OTP components must be used within InputOTP");return e},Mp=classVarianceAuthority.cva("flex items-center gap-2 has-[:disabled]:opacity-50",{variants:{size:{sm:"[&_[data-otp-slot]]:h-8 [&_[data-otp-slot]]:w-8 [&_[data-otp-slot]]:text-xs",md:"[&_[data-otp-slot]]:h-10 [&_[data-otp-slot]]:w-10 [&_[data-otp-slot]]:text-sm",lg:"[&_[data-otp-slot]]:h-12 [&_[data-otp-slot]]:w-12 [&_[data-otp-slot]]:text-base"}},defaultVariants:{size:"md"}}),Tp=$__namespace.forwardRef(({className:e,containerClassName:t,maxLength:r,value:a,defaultValue:n="",onChange:o,onComplete:s,pattern:l,disabled:c=false,size:d,children:m,...u},f)=>{let[p,b]=$__namespace.useState(n),[x,g]=$__namespace.useState(0),[v,y]=$__namespace.useState(false),w=$__namespace.useRef(null),h=a!==void 0?a:p;$__namespace.useImperativeHandle(f,()=>w.current),$__namespace.useEffect(()=>{g(Math.min(h.length,r-1));},[h,r]),$__namespace.useEffect(()=>{h.length===r&&s&&s(h);},[h,r,s]);let C=P=>{let k=P.target.value;if(l&&k){let E=new RegExp(l.replace("^","").replace("$","").replace("+",""));k=k.split("").filter(H=>E.test(H)).join("");}k=k.slice(0,r),a===void 0&&b(k),o?.(k);},R=P=>{P.key==="ArrowLeft"?g(k=>Math.max(0,k-1)):P.key==="ArrowRight"&&g(k=>Math.min(h.length,r-1,k+1));},M=()=>{w.current?.focus();},T=()=>{y(true),g(Math.min(h.length,r-1));},L=()=>{y(false);},N={value:h,activeIndex:v?x:-1,maxLength:r,disabled:c};return jsxRuntime.jsx(Np.Provider,{value:N,children:jsxRuntime.jsxs("div",{className:i(Mp({size:d}),t),onClick:M,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:w,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:h,onChange:C,onKeyDown:R,onFocus:T,onBlur:L,disabled:c,maxLength:r,className:i("absolute opacity-0 pointer-events-none w-0 h-0",e),...u}),m]})})});Tp.displayName="InputOTP";var Pp=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center",e),...t}));Pp.displayName="InputOTPGroup";var kp=$__namespace.forwardRef(({index:e,className:t,...r},a)=>{let{value:n,activeIndex:o,disabled:s}=Aw(),l=n[e]||"",c=o===e,d=c&&n.length===e;return jsxRuntime.jsxs("div",{ref:a,"data-otp-slot":true,"data-active":c,"data-filled":!!l,className:i("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm font-medium transition-all first:rounded-l-md first:border-l last:rounded-r-md",c&&"z-10 border-foreground",s&&"cursor-not-allowed opacity-50",t),...r,children:[l,d&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});kp.displayName="InputOTPSlot";var Lp=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));Lp.displayName="InputOTPSeparator";var Sp=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-full text-xs font-medium transition-colors",{variants:{variant:{solid:"bg-zinc-800 text-white dark:bg-zinc-200 dark:text-zinc-900",bordered:"border-2 border-zinc-300 bg-transparent dark:border-zinc-600",light:"bg-transparent text-zinc-800 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800",flat:"bg-zinc-100 text-zinc-800 dark:bg-zinc-800 dark:text-white",ghost:"border-2 border-zinc-800 bg-transparent dark:border-white"},size:{sm:"h-5 px-2 text-xs",md:"h-6 px-2.5 text-xs",lg:"h-7 px-3 text-sm"}},defaultVariants:{variant:"flat",size:"md"}}),Hp=$__namespace.forwardRef(({className:e,variant:t,size:r,value:a=[],onChange:n,placeholder:o="Add tag...",maxTags:s,minTagLength:l=1,maxTagLength:c=50,triggerKeys:d=["Enter",",","Tab"],allowDuplicates:m=false,disabled:u,readOnly:f,renderTag:p,...b},x)=>{let[g,v]=$__namespace.useState(""),y=$__namespace.useRef(null);$__namespace.useImperativeHandle(x,()=>y.current);let w=N=>{let P=N.trim();if(P.length<l||P.length>c||s&&a.length>=s||!m&&a.some(E=>E.text.toLowerCase()===P.toLowerCase()))return;let k={id:crypto.randomUUID(),text:P};n?.([...a,k]),v("");},h=N=>{u||f||n?.(a.filter(P=>P.id!==N));},C=N=>{if(d.includes(N.key)){if(N.key==="Tab"&&!g)return;N.preventDefault(),w(g);}N.key==="Backspace"&&!g&&a.length>0&&h(a[a.length-1].id);},R=N=>{let P=N.target.value;if(P.includes(",")){P.split(",").forEach(E=>{E.trim()&&w(E);});return}v(P);},M=N=>{N.preventDefault(),N.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(E=>{w(E);});},T=()=>{y.current?.focus();},L=s?a.length>=s:false;return jsxRuntime.jsxs("div",{className:i("flex min-h-10 w-full flex-wrap gap-1.5 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",u&&"cursor-not-allowed opacity-50",e),onClick:T,children:[a.map(N=>p?p(N,()=>h(N.id)):jsxRuntime.jsxs("span",{className:i(Sp({variant:t,size:r})),children:[N.text,!u&&!f&&jsxRuntime.jsx("button",{type:"button",onClick:P=>{P.stopPropagation(),h(N.id);},className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${N.text}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},N.id)),!L&&!f&&jsxRuntime.jsx("input",{ref:y,type:"text",value:g,onChange:R,onKeyDown:C,onPaste:M,placeholder:a.length===0?o:"",disabled:u,className:i("flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed","min-w-[80px]"),...b})]})});Hp.displayName="TagInput";var Vp=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-2 py-6",md:"gap-3 py-10",lg:"gap-4 py-16"}},defaultVariants:{size:"md"}}),Ap=$__namespace.forwardRef(({className:e,size:t,icon:r,title:a,description:n,action:o,children:s,...l},c)=>jsxRuntime.jsxs("div",{ref:c,className:i(Vp({size:t,className:e})),...l,children:[r&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:r}),a&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:a}),n&&jsxRuntime.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:n}),o&&jsxRuntime.jsx("div",{className:"mt-2",children:o}),s]}));Ap.displayName="EmptyState";var Bp=classVarianceAuthority.cva("border p-6 text-card-foreground shadow-sm",{variants:{variant:{solid:"bg-zinc-800 text-white border-zinc-800 dark:bg-zinc-200 dark:text-zinc-900 dark:border-zinc-200",bordered:"border-2 border-zinc-300 bg-transparent dark:border-zinc-700",light:"bg-transparent border-transparent shadow-none",flat:"bg-zinc-100 border-transparent dark:bg-zinc-800",ghost:"border-2 border-zinc-900 bg-transparent dark:border-white"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-3xl"}},defaultVariants:{variant:"bordered",radius:"md"}}),Op=$__namespace.forwardRef(({className:e,variant:t,radius:r,label:a,value:n,icon:o,trend:s,trendValue:l,description:c,...d},m)=>{let u=s==="up"?lucideReact.TrendingUp:s==="down"?lucideReact.TrendingDown:lucideReact.Minus,f=s==="up"?"text-green-500":s==="down"?"text-red-500":"text-muted-foreground";return jsxRuntime.jsxs("div",{ref:m,className:i(Bp({variant:t,radius:r,className:e})),...d,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("p",{className:i("text-sm font-medium",t==="solid"?"opacity-80":"text-muted-foreground"),children:a}),o&&jsxRuntime.jsx("div",{className:i("[&>svg]:h-4 [&>svg]:w-4",t==="solid"?"opacity-80":"text-muted-foreground"),children:o})]}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[jsxRuntime.jsx("p",{className:"text-2xl font-bold",children:n}),s&&l&&jsxRuntime.jsxs("span",{className:i("flex items-center gap-0.5 text-sm",f),children:[jsxRuntime.jsx(u,{className:"h-3 w-3"}),l]})]}),c&&jsxRuntime.jsx("p",{className:i("mt-1 text-xs",t==="solid"?"opacity-70":"text-muted-foreground"),children:c})]})});Op.displayName="StatCard";var Zi=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-2",bordered:"divide-y divide-border rounded-lg border",striped:"gap-2 [&>*:nth-child(odd)]:bg-muted/50",filled:"gap-2 bg-muted/30 rounded-lg p-2"},size:{sm:"[&>*]:py-2 [&>*]:px-3",md:"[&>*]:py-3 [&>*]:px-4",lg:"[&>*]:py-4 [&>*]:px-5"}},defaultVariants:{variant:"default",size:"md"}}),Uw=({checked:e,disabled:t,onClick:r})=>jsxRuntime.jsx("button",{type:"button",role:"checkbox","aria-checked":e,disabled:t,onClick:a=>{a.stopPropagation(),t||r(a);},className:i("h-4 w-4 shrink-0 rounded-sm border border-primary transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",e&&"bg-primary text-primary-foreground",t&&"cursor-not-allowed opacity-50"),children:e&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})});function Yw({className:e,variant:t,size:r,items:a,renderItem:n,draggable:o=false,onReorder:s,showHandle:l=true,dragIcon:c,selectable:d=false,multiple:m=false,selectedKeys:u,defaultSelectedKeys:f=[],onSelect:p,checkable:b=false,checkedKeys:x,defaultCheckedKeys:g=[],onCheck:v,children:y,...w},h){let[C,R]=$__namespace.useState(null),[M,T]=$__namespace.useState(null),[L,N]=$__namespace.useState(new Set(f)),P=u!==void 0,k=P?new Set(u):L,[E,H]=$__namespace.useState(new Set(g)),S=x!==void 0,D=S?new Set(x):E,I=(B,j)=>{R(j),B.dataTransfer.effectAllowed="move",B.dataTransfer.setData("text/plain",String(j));},z=(B,j)=>{B.preventDefault(),!(C===null||C===j)&&T(j);},G=()=>{T(null);},V=(B,j)=>{if(B.preventDefault(),!a||C===null||C===j){R(null),T(null);return}let A=[...a],[U]=A.splice(C,1);A.splice(j,0,U),s?.(A),R(null),T(null);},F=()=>{R(null),T(null);},O=$__namespace.useCallback((B,j)=>{if(!a)return;let A=new Set(k),U=!A.has(B.id);m?U?A.add(B.id):A.delete(B.id):(A.clear(),U&&A.add(B.id)),P||N(A);let W=a.filter(he=>A.has(he.id));p?.(Array.from(A),{selected:U,selectedItems:W,item:B,event:j});},[a,k,m,P,p]),Q=$__namespace.useCallback((B,j)=>{if(!a)return;let A=new Set(D),U=!A.has(B.id);U?A.add(B.id):A.delete(B.id),S||H(A);let W=a.filter(he=>A.has(he.id));v?.(Array.from(A),{checked:U,checkedItems:W,item:B,event:j});},[a,D,S,v]);return (o||d||b)&&a&&n?jsxRuntime.jsx("div",{ref:h,role:"list",className:i(Zi({variant:t,size:r,className:e})),...w,children:a.map((B,j)=>{let A=k.has(B.id),U=D.has(B.id);return jsxRuntime.jsxs("div",{role:"listitem","aria-selected":d?A:void 0,draggable:o,onDragStart:o?me=>I(me,j):void 0,onDragOver:o?me=>z(me,j):void 0,onDragLeave:o?G:void 0,onDrop:o?me=>V(me,j):void 0,onDragEnd:o?F:void 0,onClick:d&&!b?me=>O(B,me):void 0,className:i("flex items-center gap-3 transition-all",o&&"cursor-move",d&&!b&&"cursor-pointer hover:bg-muted/50",b&&"cursor-pointer hover:bg-muted/50",C===j&&"opacity-50 scale-[1.02] z-10",M===j&&"border-primary border-dashed border rounded-md",A&&d&&!b&&"bg-primary/10"),children:[o&&l&&c!==false&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground cursor-grab active:cursor-grabbing",children:c??jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-5 w-5"})}),b&&jsxRuntime.jsx(Uw,{checked:U,onClick:me=>Q(B,me)}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n(B,j)})]},B.id)})}):jsxRuntime.jsx("div",{ref:h,role:"list",className:i(Zi({variant:t,size:r,className:e})),...w,children:y})}var Xw=$__namespace.forwardRef(Yw),Kp=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),Gp=$__namespace.forwardRef(({className:e,interactive:t,leading:r,trailing:a,children:n,...o},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:i(Kp({interactive:t,className:e})),...o,children:[r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:r}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 whitespace-nowrap",children:a})]}));Gp.displayName="ListItem";var $p=$__namespace.forwardRef(({className:e,primary:t,secondary:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("min-w-0",e),...n,children:[t&&jsxRuntime.jsx("p",{className:"text-sm font-medium leading-none truncate",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:r}),a]}));$p.displayName="ListItemText";var jp=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),Up=$__namespace.forwardRef(({className:e,position:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,"data-position":t,className:i(jp({position:t,className:e})),...r}));Up.displayName="Timeline";var Yp=classVarianceAuthority.cva("relative flex gap-4 pb-8 last:pb-0",{variants:{variant:{default:"",success:"[&_[data-timeline-dot]]:bg-green-500 [&_[data-timeline-dot]]:border-green-500",warning:"[&_[data-timeline-dot]]:bg-yellow-500 [&_[data-timeline-dot]]:border-yellow-500",error:"[&_[data-timeline-dot]]:bg-red-500 [&_[data-timeline-dot]]:border-red-500",info:"[&_[data-timeline-dot]]:bg-blue-500 [&_[data-timeline-dot]]:border-blue-500"}},defaultVariants:{variant:"default"}}),Xp=$__namespace.forwardRef(({className:e,variant:t,hideSeparator:r=false,hideConnector:a=false,dot:n,children:o,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:i(Yp({variant:t,className:e})),...s,children:[!r&&jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx("div",{"data-timeline-dot":true,className:"flex h-3 w-3 items-center justify-center rounded-full border-2 border-primary bg-primary",children:n}),!a&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}),o]}));Xp.displayName="TimelineItem";var qp=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex-1 pt-0.5",e),...t}));qp.displayName="TimelineContent";var Zp=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));Zp.displayName="TimelineOpposite";var Qp=classVarianceAuthority.cva("inline-flex items-center rounded-lg bg-muted p-1 text-muted-foreground",{variants:{size:{sm:"h-8",md:"h-10",lg:"h-12"},fullWidth:{true:"w-full",false:""}},defaultVariants:{size:"md",fullWidth:false}}),ef=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"h-6 text-xs px-2.5",md:"h-8 text-sm px-3",lg:"h-10 text-base px-4"},selected:{true:"bg-background text-foreground shadow-sm",false:""}},defaultVariants:{size:"md",selected:false}}),tf=$__namespace.createContext({}),rf=$__namespace.forwardRef(({className:e,size:t="md",fullWidth:r,children:a,value:n,defaultValue:o,onValueChange:s,disabled:l,...c},d)=>{let[m,u]=$__namespace.useState(o),f=n!==void 0?n:m,p=$__namespace.useCallback(b=>{n===void 0&&u(b),s?.(b);},[n,s]);return jsxRuntime.jsx(tf.Provider,{value:{size:t??"md",value:f,onValueChange:p,disabled:l},children:jsxRuntime.jsx("div",{ref:d,role:"group",className:i(Qp({size:t,fullWidth:r,className:e})),...c,children:a})})});rf.displayName="SegmentedControl";var af=$__namespace.forwardRef(({className:e,children:t,value:r,disabled:a,...n},o)=>{let s=$__namespace.useContext(tf),l=s.value===r,c=a||s.disabled;return jsxRuntime.jsx("button",{ref:o,type:"button",role:"radio","aria-checked":l,"data-state":l?"on":"off",disabled:c,onClick:()=>{c||s.onValueChange?.(r);},className:i(ef({size:s.size,selected:l}),"flex-1",e),...n,children:t})});af.displayName="SegmentedControlItem";var nf=classVarianceAuthority.cva("relative flex flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",{variants:{variant:{default:"border-input bg-background hover:bg-accent/50",active:"border-primary bg-primary/5",error:"border-danger bg-danger/5"},size:{sm:"p-4 min-h-[120px]",md:"p-6 min-h-[160px]",lg:"p-8 min-h-[200px]"}},defaultVariants:{variant:"default",size:"md"}}),of=e=>{let t=e.type;return t.startsWith("image/")?lucideReact.Image:t.startsWith("video/")?lucideReact.FileVideo:t.startsWith("audio/")?lucideReact.FileAudio:t.includes("pdf")||t.includes("document")?lucideReact.FileText:t.includes("zip")||t.includes("rar")||t.includes("archive")?lucideReact.FileArchive:lucideReact.File},cs=e=>{if(e===0)return "0 Bytes";let t=1024,r=["Bytes","KB","MB","GB"],a=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,a)).toFixed(2))+" "+r[a]},sf=(e,t,r)=>{let a=[];return t&&e.size>t&&a.push({code:"file-too-large",message:`File is larger than ${cs(t)}`}),r&&r.length>0&&(r.some(o=>{if(o.startsWith("."))return e.name.toLowerCase().endsWith(o.toLowerCase());if(o.endsWith("/*")){let s=o.slice(0,-2);return e.type.startsWith(s)}return e.type===o})||a.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${r.join(", ")}`})),a},lf=$__namespace.forwardRef(({className:e,variant:t,size:r,onFilesChange:a,onFilesRejected:n,onFileRemove:o,files:s=[],showFileList:l=true,children:c,maxSize:d=10*1024*1024,accept:m,multiple:u=true,disabled:f,...p},b)=>{let[x,g]=$__namespace.useState(false),[v,y]=$__namespace.useState(false),[w,h]=$__namespace.useState([]),C=$__namespace.useRef(null),R=$__namespace.useCallback(D=>{if(!D||D.length===0)return;let I=Array.from(D),z=[],G=[];(u?I:[I[0]]).forEach(F=>{let O=sf(F,d,m);O.length>0?G.push({file:F,errors:O}):z.push(F);}),h(G),z.length>0&&a?.(z),G.length>0&&n?.(G);},[d,m,u,a,n]),M=$__namespace.useCallback(D=>{if(D.preventDefault(),D.stopPropagation(),!f&&(g(true),D.dataTransfer.items)){let z=Array.from(D.dataTransfer.items).some(G=>{if(G.kind!=="file")return true;if(m&&m.length>0){let V=G.type;return !m.some(F=>F.endsWith("/*")?V.startsWith(F.slice(0,-2)):V===F)}return false});y(z);}},[f,m]),T=$__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),!f&&(D.dataTransfer.dropEffect="copy");},[f]),L=$__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation();let I=D.currentTarget.getBoundingClientRect(),z=D.clientX,G=D.clientY;(z<I.left||z>I.right||G<I.top||G>I.bottom)&&(g(false),y(false));},[]),N=$__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),g(false),y(false),!f&&R(D.dataTransfer.files);},[f,R]),P=$__namespace.useCallback(()=>{f||C.current?.click();},[f]),k=$__namespace.useCallback(D=>{R(D.target.files),D.target.value="";},[R]),E=$__namespace.useCallback(D=>{f||(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),C.current?.click());},[f]),H=v?"error":x?"active":t,S=m?.join(",");return jsxRuntime.jsxs("div",{ref:b,className:i("space-y-4",e),...p,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:f?-1:0,onDragEnter:M,onDragOver:T,onDragLeave:L,onDrop:N,onClick:P,onKeyDown:E,className:i(nf({variant:H,size:r}),f&&"opacity-50 cursor-not-allowed",!f&&"cursor-pointer focus:outline-none"),"aria-disabled":f,children:[jsxRuntime.jsx("input",{ref:C,type:"file",accept:S,multiple:u,disabled:f,onChange:k,className:"sr-only",tabIndex:-1}),c||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[jsxRuntime.jsx("div",{className:"rounded-full bg-muted p-3",children:jsxRuntime.jsx(lucideReact.Upload,{className:"h-6 w-6 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium",children:x?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[d&&`Max ${cs(d)}`,m&&m.length>0&&` \u2022 ${m.join(", ")}`]})]})]})]}),w.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:w.map(({file:D,errors:I})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:D.name}),":"," ",I.map(z=>z.message).join(", ")]},D.name))}),l&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(D=>{let I=of(D.file);return jsxRuntime.jsxs("div",{className:i("flex items-center gap-3 rounded-lg border p-3",D.error&&"border-danger bg-danger/5"),children:[jsxRuntime.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-muted",children:jsxRuntime.jsx(I,{className:"h-5 w-5 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"truncate text-sm font-medium",children:D.file.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[cs(D.file.size),D.error&&jsxRuntime.jsx("span",{className:"ml-2 text-danger",children:D.error})]}),D.progress!==void 0&&D.progress<100&&jsxRuntime.jsx(Jo,{value:D.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs(J,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:z=>{z.stopPropagation(),o?.(D.file);},children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]},D.id)})})]})});lf.displayName="FileUpload";var oC=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,df=classVarianceAuthority.cva("relative rounded-md border border-input shadow-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"h-4 w-4",sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-12 w-12"},shape:{square:"rounded-md",circle:"rounded-full"},interactive:{true:"cursor-pointer hover:scale-110 active:scale-105",false:"cursor-default"}},defaultVariants:{size:"md",shape:"square",interactive:false}}),Xn=$__namespace.forwardRef(({color:e,isSelected:t,showTransparency:r=true,onSelect:a,size:n,shape:o,interactive:s,className:l,onClick:c,disabled:d,...m},u)=>jsxRuntime.jsx("button",{ref:u,type:"button",disabled:d,onClick:b=>{c?.(b),a?.(e);},className:i(df({size:n,shape:o,interactive:s??(!!a||!!c)}),t&&"ring-2 ring-ring ring-offset-2",l),style:{backgroundImage:r?oC:void 0,backgroundSize:r?"8px 8px":void 0},"aria-label":`Color ${e}`,"aria-pressed":t,...m,children:jsxRuntime.jsx("span",{className:"absolute inset-0 rounded-[inherit]",style:{backgroundColor:e}})}));Xn.displayName="ColorSwatch";var uf=classVarianceAuthority.cva("",{variants:{layout:{grid:"grid gap-2",stack:"flex flex-wrap gap-2"}},defaultVariants:{layout:"stack"}}),mf=$__namespace.forwardRef(({value:e,defaultValue:t,onChange:r,layout:a,columns:n=6,colors:o,swatchSize:s="md",swatchShape:l="square",disabled:c,className:d,style:m,...u},f)=>{let[p,b]=$__namespace.useState(t),x=e??p,g=$__namespace.useCallback(y=>{c||(e===void 0&&b(y),r?.(y));},[e,r,c]),v=y=>y.toLowerCase();return jsxRuntime.jsx("div",{ref:f,role:"listbox","aria-label":"Color options",className:i(uf({layout:a}),d),style:{...a==="grid"?{gridTemplateColumns:`repeat(${n}, 1fr)`}:{},...m},...u,children:o.map(y=>{let w=x?v(x)===v(y):false;return jsxRuntime.jsx(Xn,{role:"option",color:y,size:s,shape:l,isSelected:w,onSelect:g,disabled:c,"aria-selected":w},y)})})});mf.displayName="ColorSwatchPicker";var lC=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],pf={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},ff=$__namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:r,disabled:a,presets:n=lC,showInput:o=true,size:s="md",className:l,variant:c="full"},d)=>{let[m,u]=$__namespace.useState(e??t),f=$__namespace.useId();$__namespace.useEffect(()=>{e!==void 0&&u(e);},[e]);let p=g=>{u(g),r?.(g);},b=g=>{u(g),r?.(g);},x=g=>{let v=g.target.value.toUpperCase();u(v),r?.(v);};return c==="simple"?jsxRuntime.jsxs("label",{className:i("relative rounded-md border border-input shadow-sm transition-colors cursor-pointer hover:border-foreground focus-within:border-foreground overflow-hidden",a&&"opacity-50 cursor-not-allowed",pf[s],l),children:[jsxRuntime.jsx("input",{type:"color",value:m,onChange:x,disabled:a,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed",id:f}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:m}})]}):jsxRuntime.jsxs(at,{children:[jsxRuntime.jsx(ht,{asChild:true,children:jsxRuntime.jsx("button",{ref:d,disabled:a,className:i("rounded-md border border-input shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",pf[s],l),style:{backgroundColor:m},"aria-label":`Color picker, current color: ${m}`})}),jsxRuntime.jsx(nt,{className:"w-auto p-3",align:"start",children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:m,onChange:p,className:"!w-[200px]"}),o&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(Na,{htmlFor:"color-input",className:"text-xs",children:"Hex Color"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx("div",{className:"h-9 w-9 shrink-0 rounded-md border",style:{backgroundColor:m}}),jsxRuntime.jsx(reactColorful.HexColorInput,{id:"color-input",color:m,onChange:p,prefixed:true,className:"flex h-9 w-full rounded-md border border-input bg-background px-3 py-2 font-mono text-sm uppercase ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"})]})]}),n.length>0&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(Na,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(g=>jsxRuntime.jsx(Xn,{color:g,size:"sm",isSelected:m.toLowerCase()===g.toLowerCase(),onSelect:b},g))})]})]})})]})});ff.displayName="ColorPicker";var gf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),el=e=>String(e).padStart(2,"0"),pC=e=>{let[t,r]=e.split(":").map(Number);return {hours:t||0,minutes:r||0}},fC=(e,t)=>`${el(e)}:${el(t)}`,bf=$__namespace.forwardRef(({className:e,size:t,value:r,onChange:a,use24Hour:n=true,minuteStep:o=1,showPicker:s=true,minTime:l,maxTime:c,disabled:d,...m},u)=>{let[f,p]=$__namespace.useState(r??""),[b,x]=$__namespace.useState(false);$__namespace.useEffect(()=>{r!==void 0&&p(r);},[r]);let{hours:g,minutes:v}=pC(f||"00:00"),y=L=>{let N=L.target.value;p(N),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(N)&&a?.(N);},w=(L,N)=>{let P=Math.max(0,Math.min(23,L)),k=Math.max(0,Math.min(59,N)),E=fC(P,k);p(E),a?.(E);},h=()=>w(g+1,v),C=()=>w(g-1,v),R=()=>w(g,v+o),M=()=>w(g,v-o),T=({value:L,onIncrement:N,onDecrement:P})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx(J,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:N,disabled:d,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"flex h-10 w-12 items-center justify-center rounded-md bg-muted text-lg font-semibold",children:el(L)}),jsxRuntime.jsx(J,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:P,disabled:d,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})})]});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[jsxRuntime.jsx("input",{ref:u,type:"time",value:f,onChange:y,disabled:d,className:i(gf({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...m}),s&&jsxRuntime.jsxs(at,{open:b,onOpenChange:x,children:[jsxRuntime.jsx(ht,{asChild:true,children:jsxRuntime.jsxs(J,{type:"button",variant:"ghost",size:"sm",className:"absolute right-1 h-7 w-7 p-0",disabled:d,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Pick time"})]})}),jsxRuntime.jsxs(nt,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(T,{value:g,onIncrement:h,onDecrement:C,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(T,{value:v,onIncrement:R,onDecrement:M,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx(J,{variant:"bordered",size:"sm",onClick:()=>{let L=new Date;w(L.getHours(),L.getMinutes());},children:"Now"}),jsxRuntime.jsx(J,{size:"sm",onClick:()=>x(false),children:"Done"})]})]})]})]})});bf.displayName="TimeInput";var vf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),bC=(e,t)=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0).find(o=>o.type==="currency")?.value??e}catch{return e}},tl=(e,t,r,a)=>{let n=e.toFixed(t),[o,s]=n.split("."),l=o.replace(/\B(?=(\d{3})+(?!\d))/g,r);return s?`${l}${a}${s}`:l},hf=(e,t,r)=>{if(!e)return;let a=e.replace(new RegExp(`\\${t}`,"g"),"");a=a.replace(r,"."),a=a.replace(/[^0-9.-]/g,"");let n=parseFloat(a);return isNaN(n)?void 0:n},xf=$__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a,onChange:n,currency:o="USD",locale:s="en-US",decimals:l=2,min:c,max:d,showCurrency:m=true,currencyPosition:u="prefix",currencySymbol:f,thousandSeparator:p=",",decimalSeparator:b=".",disabled:x,placeholder:g,...v},y)=>{let[w,h]=$__namespace.useState(a),[C,R]=$__namespace.useState(""),[M,T]=$__namespace.useState(false),L=r!==void 0?r:w,N=f??bC(o,s);$__namespace.useEffect(()=>{!M&&L!==void 0&&R(tl(L,l,p,b));},[L,l,p,b,M]);let P=D=>{let I=D.target.value;if(!I){R(""),r===void 0&&h(void 0),n?.(void 0);return}if(!new RegExp(`^[0-9${p}${b}.-]*$`).test(I))return;R(I);let G=hf(I,p,b);if(G!==void 0){let V=G;c!==void 0&&G<c&&(V=c),d!==void 0&&G>d&&(V=d),r===void 0&&h(V),n?.(V);}},k=()=>{T(true),L!==void 0&&R(L.toString().replace(".",b));},E=()=>{T(false),R(L!==void 0?tl(L,l,p,b):"");},H=m&&u==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:N}),S=m&&u==="suffix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pl-1",children:N});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[H&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:H}),jsxRuntime.jsx("input",{ref:y,type:"text",inputMode:"decimal",value:C,onChange:P,onFocus:k,onBlur:E,disabled:x,placeholder:g??`0${b}${"0".repeat(l)}`,className:i(vf({size:t}),H&&"pl-8",S&&"pr-8","text-right",e),style:{borderColor:M?"var(--color-foreground)":void 0},...v}),S&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:S})]})});xf.displayName="CurrencyInput";var yf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),rl={creditCard:{mask:"#### #### #### ####"},creditCardAmex:{mask:"#### ###### #####"},cvv:{mask:"###"},expiry:{mask:"##/##"},date:{mask:"##/##/####"},dateISO:{mask:"####-##-##"},time:{mask:"##:##"},ip:{mask:"###.###.###.###"},mac:{mask:"AA:AA:AA:AA:AA:AA"},id11:{mask:"###########"},id9:{mask:"#########"},id10:{mask:"##########"},postal5:{mask:"#####"},postal9:{mask:"#####-####"}},xC=(e,t)=>{switch(t){case "#":return /\d/.test(e);case "A":return /[a-zA-Z]/.test(e);case "*":return /[a-zA-Z0-9]/.test(e);default:return e===t}},aa=e=>["#","A","*"].includes(e),us=(e,t,r)=>{let a="",n=0;for(let o=0;o<t.length&&n<=e.length;o++){let s=t[o];if(aa(s)){if(n<e.length){let l=e[n];xC(l,s)?(a+=l,n++):(n++,o--);}}else (n<e.length||r)&&(a+=s);}return a},al=(e,t)=>{let r="";for(let a=0;a<e.length&&a<t.length;a++){let n=t[a];aa(n)&&(r+=e[a]);}return r},Rf=(e,t)=>e.split("").map(r=>aa(r)?t:r).join(""),yC=(e,t,r)=>{let a=0;for(let l=0;l<r&&l<e.length&&l<t.length;l++)aa(t[l])&&a++;let o=0,s=0;for(let l=0;l<t.length&&s<a;l++)o++,aa(t[l])&&s++;for(;o<t.length&&!aa(t[o]);)o++;return Math.min(o,e.length)},wf=$__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,mask:o,maskPlaceholder:s="_",showMaskPlaceholder:l=false,includeMaskChars:c=false,disabled:d,placeholder:m,...u},f)=>{let p=typeof o=="string"&&o in rl?rl[o].mask:o,[b,x]=$__namespace.useState(a),[g,v]=$__namespace.useState(""),[y,w]=$__namespace.useState(false),h=$__namespace.useRef(null),C=r!==void 0?r:b;$__namespace.useImperativeHandle(f,()=>h.current),$__namespace.useEffect(()=>{let L=us(C,p,true);v(L);},[C,p]);let R=L=>{let N=L.target.value,P=L.target.selectionStart??0,k=N.replace(/[^\w]/g,""),E=us(k,p,true),H=al(E,p);v(E),r===void 0&&x(c?E:H),n?.(H,E),requestAnimationFrame(()=>{if(h.current){let S=yC(E,p,P);h.current.setSelectionRange(S,S);}});},M=L=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(L.key)||L.ctrlKey||L.metaKey)return;let N=h.current;if(!N)return;let P=N.selectionStart??0;if(L.key==="Backspace"&&P>0){let k=P-1;for(;k>0&&!aa(p[k]);)k--;let E=al(g,p),H=0;for(let I=0;I<k&&I<p.length;I++)aa(p[I])&&H++;let S=E.slice(0,Math.max(0,H-1))+E.slice(H),D=us(S,p,true);v(D),r===void 0&&x(c?D:S),n?.(S,D),L.preventDefault(),requestAnimationFrame(()=>{h.current&&h.current.setSelectionRange(k,k);});}},T=l?Rf(p,s):m;return jsxRuntime.jsx("input",{ref:h,type:"text",value:g,onChange:R,onKeyDown:M,onFocus:()=>w(true),onBlur:()=>w(false),disabled:d,placeholder:T,className:i(yf({size:t}),e),style:{borderColor:y?"var(--color-foreground)":void 0},...u})});wf.displayName="MaskedInput";var Cf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),fs={"DD/MM/YYYY":"/","MM/DD/YYYY":"/","YYYY-MM-DD":"-","DD.MM.YYYY":"."},ol={"DD/MM/YYYY":["day","month","year"],"MM/DD/YYYY":["month","day","year"],"YYYY-MM-DD":["year","month","day"],"DD.MM.YYYY":["day","month","year"]},nl=(e,t)=>String(e).padStart(t,"0"),ps=(e,t)=>{let r=nl(e.getDate(),2),a=nl(e.getMonth()+1,2),n=nl(e.getFullYear(),4),o=fs[t],s=ol[t],l={day:r,month:a,year:n};return s.map(c=>l[c]).join(o)},Nf=(e,t)=>{let r=fs[t],a=e.split(r);if(a.length!==3)return null;let n=ol[t],o={};if(n.forEach((l,c)=>{o[l]=parseInt(a[c],10);}),isNaN(o.day)||isNaN(o.month)||isNaN(o.year)||o.month<1||o.month>12||o.day<1||o.day>31||o.year<1e3||o.year>9999)return null;let s=new Date(o.year,o.month-1,o.day);return s.getFullYear()!==o.year||s.getMonth()!==o.month-1||s.getDate()!==o.day?null:s},NC=e=>e.toLowerCase(),MC=e=>{let t=fs[e];return ol[e].map(a=>a==="year"?"####":"##").join(t)},Mf=$__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a,onChange:n,format:o="DD/MM/YYYY",minDate:s,maxDate:l,showIcon:c=true,disabled:d,placeholder:m,...u},f)=>{let[p,b]=$__namespace.useState(a??null),[x,g]=$__namespace.useState(""),[v,y]=$__namespace.useState(null),w=$__namespace.useRef(null),h=r!==void 0?r:p;$__namespace.useImperativeHandle(f,()=>w.current),$__namespace.useEffect(()=>{h?(g(ps(h,o)),y(null)):g("");},[h,o]);let C=fs[o],R=MC(o),M=N=>{let P=N.target.value;P=P.replace(new RegExp(`[^0-9\\${C}]`,"g"),"");let k=P.replace(new RegExp(`\\${C}`,"g"),""),E="",H=0;for(let S=0;S<R.length&&H<k.length;S++)R[S]==="#"?(E+=k[H],H++):E+=R[S];if(g(E),E.length===R.length){let S=Nf(E,o);if(S){if(s&&S<s){y(`Date must be after ${ps(s,o)}`);return}if(l&&S>l){y(`Date must be before ${ps(l,o)}`);return}y(null),r===void 0&&b(S),n?.(S);}else y("Invalid date");}else r===void 0&&b(null),n?.(null),y(null);},T=()=>{x&&x.length!==R.length&&(g(""),y(null),r===void 0&&b(null),n?.(null));},L=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4";return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{ref:w,type:"text",inputMode:"numeric",value:x,onChange:M,onBlur:T,disabled:d,placeholder:m??NC(o),className:i(Cf({size:t}),c&&"pr-10",v&&"border-danger focus-visible:ring-danger",e),"aria-invalid":!!v,"aria-describedby":v?"date-error":void 0,...u}),c&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2",children:jsxRuntime.jsx(lucideReact.Calendar,{className:i(L,"text-muted-foreground")})}),v&&jsxRuntime.jsx("p",{id:"date-error",className:"mt-1 text-xs text-danger",children:v})]})});Mf.displayName="DateInput";var Pf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),kf=[{code:"AR",name:"Argentina",dialCode:"+54",flag:"\u{1F1E6}\u{1F1F7}",format:"## ####-####"},{code:"AU",name:"Australia",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}",format:"### ### ###"},{code:"AT",name:"Austria",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}",format:"### #######"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}",format:"### ## ## ##"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"\u{1F1E7}\u{1F1F7}",format:"(##) #####-####"},{code:"BG",name:"Bulgaria",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}",format:"### ### ###"},{code:"CA",name:"Canada",dialCode:"+1",flag:"\u{1F1E8}\u{1F1E6}",format:"(###) ###-####"},{code:"CN",name:"China",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}",format:"### #### ####"},{code:"HR",name:"Croatia",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}",format:"## ### ####"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}",format:"### ### ###"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}",format:"## ## ## ##"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"\u{1F1EA}\u{1F1EC}",format:"### ### ####"},{code:"FI",name:"Finland",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}",format:"## ### ####"},{code:"FR",name:"France",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}",format:"# ## ## ## ##"},{code:"DE",name:"Germany",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}",format:"#### #######"},{code:"GR",name:"Greece",dialCode:"+30",flag:"\u{1F1EC}\u{1F1F7}",format:"### ### ####"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"\u{1F1ED}\u{1F1F0}",format:"#### ####"},{code:"HU",name:"Hungary",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}",format:"## ### ####"},{code:"IN",name:"India",dialCode:"+91",flag:"\u{1F1EE}\u{1F1F3}",format:"##### #####"},{code:"IL",name:"Israel",dialCode:"+972",flag:"\u{1F1EE}\u{1F1F1}",format:"##-###-####"},{code:"IT",name:"Italy",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}",format:"### ### ####"},{code:"JP",name:"Japan",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}",format:"##-####-####"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"\u{1F1F2}\u{1F1FD}",format:"### ### ####"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}",format:"## ########"},{code:"NZ",name:"New Zealand",dialCode:"+64",flag:"\u{1F1F3}\u{1F1FF}",format:"## ### ####"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"\u{1F1F3}\u{1F1EC}",format:"### ### ####"},{code:"NO",name:"Norway",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}",format:"### ## ###"},{code:"PK",name:"Pakistan",dialCode:"+92",flag:"\u{1F1F5}\u{1F1F0}",format:"### #######"},{code:"PL",name:"Poland",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}",format:"### ### ###"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}",format:"### ### ###"},{code:"RO",name:"Romania",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}",format:"### ### ###"},{code:"RU",name:"Russia",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}",format:"(###) ###-##-##"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"\u{1F1F8}\u{1F1E6}",format:"## ### ####"},{code:"RS",name:"Serbia",dialCode:"+381",flag:"\u{1F1F7}\u{1F1F8}",format:"## ### ####"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"\u{1F1F8}\u{1F1EC}",format:"#### ####"},{code:"SK",name:"Slovakia",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}",format:"### ### ###"},{code:"SI",name:"Slovenia",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}",format:"## ### ###"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"\u{1F1FF}\u{1F1E6}",format:"## ### ####"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"\u{1F1F0}\u{1F1F7}",format:"##-####-####"},{code:"ES",name:"Spain",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}",format:"### ### ###"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}",format:"##-### ## ##"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}",format:"## ### ## ##"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"\u{1F1F9}\u{1F1FC}",format:"### ### ###"},{code:"TR",name:"Turkey",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}",format:"(###) ### ## ##"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}",format:"## ### ## ##"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"\u{1F1E6}\u{1F1EA}",format:"## ### ####"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}",format:"#### ### ####"},{code:"US",name:"United States",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}",format:"(###) ###-####"}],gs=(e,t)=>{let r=e.replace(/\D/g,""),a="",n=0;for(let o=0;o<t.length&&n<r.length;o++)t[o]==="#"?(a+=r[n],n++):a+=t[o];return a},EC=e=>e.replace(/#/g,"_"),Lf=$__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,country:o,defaultCountry:s="TR",onCountryChange:l,countries:c=kf,showCountrySelect:d=true,showDialCode:m=false,disabled:u,placeholder:f,...p},b)=>{let[x,g]=$__namespace.useState(a),[v,y]=$__namespace.useState(o??s),[w,h]=$__namespace.useState(false),[C,R]=$__namespace.useState(false),[M,T]=$__namespace.useState(false),[L,N]=$__namespace.useState({top:0,left:0,width:0}),P=$__namespace.useRef(null),k=$__namespace.useRef(null),E=r!==void 0?r:x,H=o??v,S=c.find(V=>V.code===H)??c[0],D=gs(E,S.format);$__namespace.useEffect(()=>{T(true);},[]),$__namespace.useEffect(()=>{if(C&&P.current){let V=P.current.getBoundingClientRect();N({top:V.bottom+4,left:V.left,width:Math.max(V.width,280)});}},[C]),$__namespace.useEffect(()=>{if(!C)return;let V=F=>{P.current&&!P.current.contains(F.target)&&k.current&&!k.current.contains(F.target)&&R(false);};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[C]),$__namespace.useEffect(()=>{if(!C)return;let V=F=>{F.key==="Escape"&&R(false);};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[C]);let I=V=>{let O=V.target.value.replace(/\D/g,"");r===void 0&&g(O);let Q=gs(O,S.format),re=`${S.dialCode} ${Q}`;n?.(O,re,S);},z=V=>{let F=c.find(re=>re.code===V);if(!F)return;o===void 0&&y(V),l?.(F);let O=gs(E,F.format),Q=`${F.dialCode} ${O}`;n?.(E,Q,F),R(false);};return jsxRuntime.jsxs("div",{className:"flex",children:[d&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{ref:P,type:"button",disabled:u,onClick:()=>R(!C),className:i("flex items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50","w-[100px] rounded-r-none border-r-0 shrink-0",t==="sm"?"h-8":t==="lg"?"h-12":"h-10"),children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:S.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:S.dialCode})]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 opacity-50 transition-transform",C&&"rotate-180")})]}),M&&C&&Wo__namespace.createPortal(jsxRuntime.jsx("div",{ref:k,className:"fixed z-50 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95",style:{top:L.top,left:L.left,minWidth:L.width},children:jsxRuntime.jsx(je,{style:{maxHeight:300},children:jsxRuntime.jsx("div",{className:"p-1",children:c.map(V=>jsxRuntime.jsxs("div",{role:"option","aria-selected":V.code===H,onClick:()=>z(V.code),className:"relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:V.code===H&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:V.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:V.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:V.dialCode})]})]},V.code))})})}),document.body)]}),jsxRuntime.jsxs("div",{className:"relative flex-1",children:[m&&!d&&jsxRuntime.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:S.dialCode}),jsxRuntime.jsx("input",{ref:b,type:"tel",inputMode:"tel",value:D,onChange:I,onFocus:()=>h(true),onBlur:()=>h(false),disabled:u,placeholder:f??EC(S.format),className:i(Pf({size:t}),d&&"rounded-l-none",m&&!d&&"pl-12",e),style:{borderColor:w?"var(--color-foreground)":void 0},...p})]})]})});Lf.displayName="PhoneInput";var Df=classVarianceAuthority.cva("flex items-center justify-between w-full px-4 py-3 border-b bg-background",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-background border-border",ghost:"bg-transparent border-transparent",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-border"},size:{sm:"h-12 px-3 py-2",md:"h-14 px-4 py-3",lg:"h-16 px-6 py-4"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"outline",size:"md",sticky:false}}),Sf=$__namespace.forwardRef(({className:e,variant:t,size:r,sticky:a,brand:n,children:o,mobileBreakpoint:s="md",...l},c)=>{let[d,m]=$__namespace.useState(false),u={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],f={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:c,className:i(Df({variant:t,size:r,sticky:a,className:e})),...l,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between w-full",children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:n}),jsxRuntime.jsx("div",{className:i("items-center gap-4 flex-1 justify-end",u),children:o}),jsxRuntime.jsx("button",{type:"button",className:i("p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",f),onClick:()=>m(!d),"aria-label":d?"Close menu":"Open menu","aria-expanded":d,children:d?jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"})})]}),d&&jsxRuntime.jsx("div",{className:i("absolute top-full left-0 right-0 flex flex-col gap-2 p-4 bg-background border-b border-border shadow-lg",f),children:o})]})});Sf.displayName="Navbar";var Hf=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center gap-2 font-semibold text-lg",e),...t}));Hf.displayName="NavbarBrand";var If=$__namespace.forwardRef(({className:e,justify:t="start",...r},a)=>{let n={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:a,className:i("flex items-center gap-4",n,e),...r})});If.displayName="NavbarContent";var Vf=$__namespace.forwardRef(({className:e,isActive:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("flex items-center",t&&"text-primary font-medium",e),...r}));Vf.displayName="NavbarItem";var Af=$__namespace.forwardRef(({className:e,isActive:t,...r},a)=>jsxRuntime.jsx("a",{ref:a,className:i("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...r}));Af.displayName="NavbarLink";var Bf=classVarianceAuthority.cva("inline-flex items-center gap-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"text-primary-foreground bg-primary px-2 py-0.5 rounded hover:bg-primary/90",outline:"text-primary underline-offset-4 hover:underline",ghost:"text-foreground hover:text-primary",soft:"text-primary bg-primary/10 px-2 py-0.5 rounded hover:bg-primary/20",surface:"text-foreground bg-muted px-2 py-0.5 rounded hover:bg-muted/80"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"},underline:{none:"",hover:"hover:underline underline-offset-4",always:"underline underline-offset-4"}},defaultVariants:{variant:"outline",size:"md",underline:"hover"}}),Of=$__namespace.forwardRef(({className:e,variant:t,size:r,underline:a,isExternal:n,showExternalIcon:o=true,isDisabled:s,children:l,...c},d)=>{let m=n?{target:"_blank",rel:"noopener noreferrer"}:{};return jsxRuntime.jsxs("a",{ref:d,className:i(Bf({variant:t,size:r,underline:a,className:e}),s&&"pointer-events-none opacity-50"),"aria-disabled":s,...m,...c,children:[l,n&&o&&jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-3 w-3 ml-0.5","aria-hidden":"true"})]})});Of.displayName="Link";var Ff=classVarianceAuthority.cva("fixed z-50 transition-all duration-300",{variants:{position:{"bottom-right":"bottom-6 right-6","bottom-left":"bottom-6 left-6","bottom-center":"bottom-6 left-1/2 -translate-x-1/2"}},defaultVariants:{position:"bottom-right"}}),Kf=$__namespace.forwardRef(({className:e,position:t,threshold:r=400,icon:a,behavior:n="smooth",variant:o="solid",color:s="default",size:l="md",radius:c="full",target:d,onVisibilityChange:m,onClick:u,...f},p)=>{let[b,x]=$__namespace.useState(false);$__namespace.useEffect(()=>{let y=d?.current||window,w=()=>{let C=(d?.current?d.current.scrollTop:window.scrollY||document.documentElement.scrollTop)>r;C!==b&&(x(C),m?.(C));};return y.addEventListener("scroll",w,{passive:true}),w(),()=>{y.removeEventListener("scroll",w);}},[r,d,b,m]);let g=y=>{d?.current?d.current.scrollTo({top:0,behavior:n}):window.scrollTo({top:0,behavior:n}),u?.(y);},v=l==="sm"?"h-4 w-4":l==="lg"?"h-6 w-6":"h-5 w-5";return jsxRuntime.jsx("div",{className:i(Ff({position:t}),b?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-4 pointer-events-none",e),children:jsxRuntime.jsx(J,{ref:p,type:"button",variant:o,color:s,size:"icon",radius:c,onClick:g,"aria-label":"Back to top",className:i("shadow-lg",l==="sm"&&"h-9 w-9",l==="md"&&"h-10 w-10",l==="lg"&&"h-12 w-12"),...f,children:a||jsxRuntime.jsx(lucideReact.ArrowUp,{className:v})})})});Kf.displayName="BackTop";var _C=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},defaultVariants:{radius:"sm"}}),WC=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"sm"}}),Gf=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-2xl"}},defaultVariants:{radius:"sm"}}),hs=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-xl"}},defaultVariants:{radius:"sm"}}),$f=$__namespace.createContext(null),oa=()=>{let e=$__namespace.useContext($f);if(!e)throw new Error("Menubar components must be used within a Menubar");return e},_f=$__namespace.createContext(null),Zn=()=>{let e=$__namespace.useContext(_f);if(!e)throw new Error("Menu components must be used within a MenubarMenu");return e},il=$__namespace.createContext(null),Wf=$__namespace.createContext(null),jf=$__namespace.forwardRef(({className:e,children:t,radius:r="sm",...a},n)=>{let[o,s]=$__namespace.useState(null);return jsxRuntime.jsx($f.Provider,{value:{activeMenu:o,setActiveMenu:s,radius:r},children:jsxRuntime.jsx("div",{ref:n,role:"menubar",className:i("flex h-10 items-center space-x-1 border bg-background p-1",_C({radius:r}),e),...a,children:t})})});jf.displayName="Menubar";var Uf=({children:e})=>{let{activeMenu:t,setActiveMenu:r}=oa(),a=$__namespace.useId(),n=$__namespace.useRef(null),o=t===a,s=$__namespace.useCallback(l=>{r(l?a:null);},[a,r]);return jsxRuntime.jsx(_f.Provider,{value:{menuId:a,triggerRef:n,open:o,onOpenChange:s},children:e})};Uf.displayName="MenubarMenu";var Yf=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"group",className:e,...t}));Yf.displayName="MenubarGroup";var Xf=({children:e,container:t})=>{let[r,a]=$__namespace.useState(false);return $__namespace.useEffect(()=>{a(true);},[]),r?Wo__namespace.createPortal(e,t||document.body):null};Xf.displayName="MenubarPortal";var qf=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=$__namespace.useState(r),s=t!==void 0,l=s?t:n,c=$__namespace.useRef(null),d=$__namespace.useCallback(m=>{s||o(m),a?.(m);},[s,a]);return jsxRuntime.jsx(il.Provider,{value:{open:l,onOpenChange:d,triggerRef:c},children:e})};qf.displayName="MenubarSub";var Zf=$__namespace.forwardRef(({value:e="",onValueChange:t,className:r,...a},n)=>jsxRuntime.jsx(Wf.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:n,role:"group",className:r,...a})}));Zf.displayName="MenubarRadioGroup";var Jf=$__namespace.forwardRef(({className:e,onClick:t,onMouseEnter:r,...a},n)=>{let{activeMenu:o,setActiveMenu:s,radius:l}=oa(),{menuId:c,triggerRef:d,open:m,onOpenChange:u}=Zn(),f=b=>{t?.(b),u(!m);},p=b=>{r?.(b),o&&o!==c&&(s(c),document.activeElement instanceof HTMLElement&&document.activeElement.blur());};return jsxRuntime.jsx("button",{ref:b=>{d.current=b,typeof n=="function"?n(b):n&&(n.current=b);},type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":m,"data-state":m?"open":"closed",className:i("flex cursor-default select-none items-center px-3 py-1.5 text-sm font-medium outline-none hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",WC({radius:l}),e),onClick:f,onMouseEnter:p,...a})});Jf.displayName="MenubarTrigger";var Qf=$__namespace.forwardRef(({className:e,inset:t,children:r,onMouseEnter:a,onMouseLeave:n,...o},s)=>{let{radius:l}=oa(),c=$__namespace.useContext(il);if(!c)throw new Error("MenubarSubTrigger must be used within MenubarSub");let{open:d,onOpenChange:m,triggerRef:u}=c,f=b=>{a?.(b),m(true);},p=b=>{n?.(b),m(false);};return jsxRuntime.jsxs("div",{ref:b=>{u.current=b,typeof s=="function"?s(b):s&&(s.current=b);},role:"menuitem","aria-haspopup":"menu","aria-expanded":d,"data-state":d?"open":"closed",className:i("flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",hs({radius:l}),t&&"pl-8",e),onMouseEnter:f,onMouseLeave:p,...o,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});Qf.displayName="MenubarSubTrigger";var eg=$__namespace.forwardRef(({className:e,sideOffset:t=2,onMouseEnter:r,onMouseLeave:a,...n},o)=>{let{radius:s}=oa(),l=$__namespace.useContext(il);if(!l)throw new Error("MenubarSubContent must be used within MenubarSub");let{open:c,onOpenChange:d,triggerRef:m}=l,[u,f]=$__namespace.useState({top:0,left:0}),[p,b]=$__namespace.useState(false),x=$__namespace.useRef(null);$__namespace.useEffect(()=>{b(true);},[]),$__namespace.useEffect(()=>{if(!c||!m.current||!x.current)return;(()=>{if(!m.current||!x.current)return;let w=m.current.getBoundingClientRect(),h=x.current.getBoundingClientRect(),C=w.top,R=w.right+t;R+h.width>window.innerWidth&&(R=w.left-h.width-t),f({top:C,left:R});})();},[c,t,m]);let g=y=>{r?.(y),d(true);},v=y=>{a?.(y),d(false);};return !p||!c?null:Wo__namespace.createPortal(jsxRuntime.jsx("div",{ref:y=>{x.current=y,typeof o=="function"?o(y):o&&(o.current=y);},role:"menu","data-state":c?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",Gf({radius:s}),e),style:{top:u.top,left:u.left},onMouseEnter:g,onMouseLeave:v,...n}),document.body)});eg.displayName="MenubarSubContent";var tg=$__namespace.forwardRef(({className:e,align:t="start",alignOffset:r=-4,sideOffset:a=8,children:n,...o},s)=>{let{radius:l}=oa(),{triggerRef:c,open:d,onOpenChange:m}=Zn(),[u,f]=$__namespace.useState({top:0,left:0}),[p,b]=$__namespace.useState(false),x=$__namespace.useRef(null);return $__namespace.useEffect(()=>{b(true);},[]),$__namespace.useEffect(()=>{if(!d||!c.current||!x.current)return;let g=()=>{if(!c.current||!x.current)return;let v=c.current.getBoundingClientRect(),y=x.current.getBoundingClientRect(),w=v.bottom+a,h=v.left+r;t==="center"?h=v.left+v.width/2-y.width/2:t==="end"&&(h=v.right-y.width-r),f({top:w,left:h});};return g(),window.addEventListener("resize",g),window.addEventListener("scroll",g,true),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g,true);}},[d,t,r,a,c]),$__namespace.useEffect(()=>{if(!d)return;let g=v=>{let y=v.target;x.current&&!x.current.contains(y)&&c.current&&!c.current.contains(y)&&m(false);};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[d,m,c]),$__namespace.useEffect(()=>{if(!d)return;let g=v=>{v.key==="Escape"&&m(false);};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[d,m]),!p||!d?null:Wo__namespace.createPortal(jsxRuntime.jsx("div",{ref:g=>{x.current=g,typeof s=="function"?s(g):s&&(s.current=g);},role:"menu","data-state":d?"open":"closed",className:i("fixed z-50 min-w-[12rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-md","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",Gf({radius:l}),e),style:{top:u.top,left:u.left},...o,children:n}),document.body)});tg.displayName="MenubarContent";var rg=$__namespace.forwardRef(({className:e,inset:t,disabled:r,onSelect:a,onClick:n,...o},s)=>{let{radius:l}=oa(),{onOpenChange:c}=Zn(),d=m=>{if(r){m.preventDefault();return}n?.(m),a?.(),c(false);};return jsxRuntime.jsx("div",{ref:s,role:"menuitem",tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,className:i("relative flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",hs({radius:l}),t&&"pl-8",!r&&"cursor-pointer",e),onClick:d,...o})});rg.displayName="MenubarItem";var ag=$__namespace.forwardRef(({className:e,children:t,checked:r=false,onCheckedChange:a,disabled:n,onClick:o,...s},l)=>{let{radius:c}=oa(),{onOpenChange:d}=Zn(),m=u=>{if(n){u.preventDefault();return}o?.(u),a?.(!r),d(false);};return jsxRuntime.jsxs("div",{ref:l,role:"menuitemcheckbox","aria-checked":r,tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-state":r?"checked":"unchecked",className:i("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",hs({radius:c}),!n&&"cursor-pointer",e),onClick:m,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});ag.displayName="MenubarCheckboxItem";var ng=$__namespace.forwardRef(({className:e,children:t,value:r,disabled:a,onClick:n,...o},s)=>{let{radius:l}=oa(),{onOpenChange:c}=Zn(),d=$__namespace.useContext(Wf),m=d?.value===r,u=f=>{if(a){f.preventDefault();return}n?.(f),d?.onValueChange(r),c(false);};return jsxRuntime.jsxs("div",{ref:s,role:"menuitemradio","aria-checked":m,tabIndex:a?-1:0,"aria-disabled":a,"data-disabled":a?"":void 0,"data-state":m?"checked":"unchecked",className:i("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",hs({radius:l}),!a&&"cursor-pointer",e),onClick:u,...o,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})}),t]})});ng.displayName="MenubarRadioItem";var og=$__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));og.displayName="MenubarLabel";var sg=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("-mx-1 my-1 h-px bg-muted",e),...t}));sg.displayName="MenubarSeparator";var ig=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});ig.displayName="MenubarShortcut";var lg=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center",vertical:"flex-col"},size:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"horizontal",size:"md"}}),cg=$__namespace.forwardRef(({className:e,orientation:t,size:r,currentStep:a=0,children:n,...o},s)=>{let l=$__namespace.Children.toArray(n);return jsxRuntime.jsx("div",{ref:s,className:i(lg({orientation:t,size:r,className:e})),...o,children:l.map((c,d)=>$__namespace.isValidElement(c)?$__namespace.cloneElement(c,{...c.props,stepNumber:d+1,status:c.props.status||(d<a?"completed":d===a?"current":"upcoming"),isLast:d===l.length-1,orientation:t,size:r}):c)})});cg.displayName="Steps";var dg=classVarianceAuthority.cva("flex items-center",{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col items-start"},size:{sm:"gap-2",md:"gap-3",lg:"gap-4"}},defaultVariants:{orientation:"horizontal",size:"md"}}),UC=classVarianceAuthority.cva("flex items-center justify-center rounded-full font-medium transition-colors",{variants:{status:{completed:"bg-primary text-primary-foreground",current:"bg-primary text-primary-foreground ring-2 ring-primary ring-offset-2 ring-offset-background",upcoming:"bg-muted text-muted-foreground border-2 border-muted-foreground/30"},size:{sm:"h-6 w-6 text-xs",md:"h-8 w-8 text-sm",lg:"h-10 w-10 text-base"}},defaultVariants:{status:"upcoming",size:"md"}}),YC=classVarianceAuthority.cva("bg-muted transition-colors",{variants:{orientation:{horizontal:"h-0.5 flex-1 min-w-8",vertical:"w-0.5 min-h-8 ml-4"},status:{completed:"bg-primary",current:"bg-muted",upcoming:"bg-muted"}},defaultVariants:{orientation:"horizontal",status:"upcoming"}}),ug=$__namespace.forwardRef(({className:e,orientation:t="horizontal",size:r="md",title:a,description:n,icon:o,status:s="upcoming",stepNumber:l,isLast:c,...d},m)=>jsxRuntime.jsxs("div",{ref:m,className:i(dg({orientation:t,size:r,className:e}),!c&&t==="horizontal"&&"flex-1"),...d,children:[jsxRuntime.jsx("div",{className:i("flex items-center",t==="vertical"&&"flex-col items-start"),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:i(UC({status:s,size:r})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:r==="sm"?"h-3 w-3":r==="lg"?"h-5 w-5":"h-4 w-4"}):o||l}),(a||n)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[a&&jsxRuntime.jsx("span",{className:i("font-medium",r==="sm"&&"text-sm",r==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:a}),n&&jsxRuntime.jsx("span",{className:i("text-muted-foreground",r==="sm"&&"text-xs",r==="md"&&"text-sm",r==="lg"&&"text-base"),children:n})]})]})}),!c&&jsxRuntime.jsx("div",{className:i(YC({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));ug.displayName="Step";var pg=classVarianceAuthority.cva("flex flex-col select-none",{variants:{variant:{default:"",bordered:"rounded-lg border",filled:"bg-muted/30 rounded-lg p-2"},size:{sm:"[--tree-indent:16px] [--tree-item-height:28px] text-xs",md:"[--tree-indent:20px] [--tree-item-height:32px] text-sm",lg:"[--tree-indent:24px] [--tree-item-height:40px] text-base"}},defaultVariants:{variant:"default",size:"md"}}),fg=classVarianceAuthority.cva("flex items-center py-1.5 px-2 rounded-sm transition-colors",{variants:{size:{sm:"py-1 px-1.5 text-sm min-h-[var(--tree-item-height)]",md:"py-1.5 px-2 text-sm min-h-[var(--tree-item-height)]",lg:"py-2 px-3 text-base min-h-[var(--tree-item-height)]"},isSelected:{true:"bg-primary/10 text-primary",false:""},isDragging:{true:"opacity-50",false:""},isDisabled:{true:"opacity-50 cursor-not-allowed",false:""},isHoverable:{true:"hover:bg-muted/50 cursor-pointer",false:""}},defaultVariants:{size:"md",isSelected:false,isDragging:false,isDisabled:false,isHoverable:true}}),gg=$__namespace.createContext(null),rN=()=>{let e=$__namespace.useContext(gg);if(!e)throw new Error("TreeNodeComponent must be used within Tree");return e},aN=({checked:e,indeterminate:t,disabled:r,onClick:a})=>jsxRuntime.jsx("button",{type:"button",role:"checkbox","aria-checked":t?"mixed":e,disabled:r,onClick:n=>{n.stopPropagation(),r||a(n);},className:i("h-4 w-4 shrink-0 rounded-sm border border-primary transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",(e||t)&&"bg-primary text-primary-foreground",r&&"cursor-not-allowed opacity-50"),children:(e||t)&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:t?jsxRuntime.jsx(lucideReact.Minus,{className:"h-3 w-3"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})}),bg=({node:e,level:t,isLast:r=false,parentIsLastPath:a=[]})=>{let{expandedKeys:n,toggleExpand:o,selectedKeys:s,handleSelect:l,selectable:c,checkedKeys:d,halfCheckedKeys:m,handleCheck:u,checkable:f,draggable:p,draggedNode:b,setDraggedNode:x,dragOverKey:g,dragOverPosition:v,setDragOver:y,handleDrop:w,allowDrop:h,onDragStart:C,onDragOver:R,onDragEnter:M,onDragLeave:T,onDragEnd:L,showLine:N,showIcon:P,showHandle:k,dragIcon:E,icon:H,leafIcon:S,folderIcon:D,folderOpenIcon:I,blockNode:z,disabled:G,size:V,getAllKeys:F}=rN(),O=e.children&&e.children.length>0,Q=e.isLeaf??!O,re=n.has(e.key),K=s.has(e.key),B=d.has(e.key),j=m.has(e.key),A=b?.key===e.key,U=g===e.key,W=!!(G||e.disabled),he=c&&e.selectable!==false,me=f&&e.checkable!==false,Br=$__namespace.useMemo(()=>W?false:typeof p=="boolean"?p:typeof p=="function"?p(e):p&&typeof p=="object"?p.nodeDraggable?p.nodeDraggable(e):true:false,[p,e,W]),ne=$__namespace.useMemo(()=>E!==void 0?E:typeof p=="object"&&p.icon!==void 0?p.icon:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4"}),[E,p]),rt=$__namespace.useMemo(()=>e.icon?e.icon:H?typeof H=="function"?H({expanded:re,isLeaf:Q}):H:Q?S:re?I:D,[e.icon,H,re,Q,S,D,I]),Or=Y=>{if(!Br)return;Y.stopPropagation(),Y.dataTransfer.effectAllowed="move";let Se=Y.currentTarget,ie=Se.cloneNode(true),Ke=document.documentElement.classList.contains("dark"),Ge=Ke?"#0a0a0a":"#ffffff",Kr=Ke?"#27272a":"#e4e4e7";ie.style.cssText=`
49
44
  position: fixed;
50
45
  top: -9999px;
51
46
  left: -9999px;
52
47
  background-color: ${Ge};
53
- border: 1px solid ${Or};
48
+ border: 1px solid ${Kr};
54
49
  border-radius: 6px;
55
50
  padding: 6px 12px;
56
51
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
57
52
  width: ${Se.offsetWidth}px;
58
53
  opacity: 1;
59
54
  z-index: 9999;
60
- `,document.body.appendChild(ie),U.dataTransfer.setDragImage(ie,20,15),setTimeout(()=>{document.body.removeChild(ie);},0),x(e),C?.({event:U,node:e});},bt=U=>{if(U.preventDefault(),U.stopPropagation(),!b||b.key===e.key||j)return;let Se=U.currentTarget.getBoundingClientRect(),ie=U.clientY-Se.top,Ke=Se.height,Ge;ie<Ke*.25?Ge=-1:ie>Ke*.75?Ge=1:Ge=0,!(h&&!h({dropNode:e,dropPosition:Ge,dragNode:b}))&&(y(e.key,Ge),R?.({event:U,node:e}));},va=U=>{U.preventDefault(),U.stopPropagation(),!(!b||b.key===e.key)&&M?.({event:U,node:e,expandedKeys:F()});},Br=U=>{U.stopPropagation(),T?.({event:U,node:e});},Hn=U=>{U.preventDefault(),U.stopPropagation(),!(!b||b.key===e.key||j)&&(v!==null&&w(e,v),x(null),y(null,null));},At=U=>{x(null),y(null,null),E?.({event:U,node:e});},yo=U=>{j||he&&l(e.key,e,U);},ha=U=>{U.stopPropagation(),!j&&!Q&&o(e.key,e);},_=$__namespace.useMemo(()=>{if(!Y||v===null)return "";switch(v){case -1:return "before:absolute before:left-0 before:right-0 before:top-0 before:h-0.5 before:bg-foreground";case 1:return "after:absolute after:left-0 after:right-0 after:bottom-0 after:h-0.5 after:bg-foreground";case 0:return "ring-2 ring-foreground ring-inset";default:return ""}},[Y,v]),ae=[...a,r];return jsxRuntime.jsxs("div",{className:"relative",children:[N&&t>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a.map((U,Se)=>!U&&jsxRuntime.jsx("div",{className:"absolute border-l border-border",style:{left:`calc(${Se} * var(--tree-indent) + 12px)`,top:0,bottom:0}},Se)),jsxRuntime.jsx("div",{className:"absolute border-l border-border",style:{left:`calc(${t-1} * var(--tree-indent) + 12px)`,top:0,height:r?"calc(var(--tree-item-height) / 2)":"100%"}}),jsxRuntime.jsx("div",{className:"absolute border-t border-border",style:{left:`calc(${t-1} * var(--tree-indent) + 12px)`,top:"calc(var(--tree-item-height) / 2)",width:"calc(var(--tree-indent) - 4px)"}})]}),jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":Q?void 0:re,"aria-selected":he?K:void 0,"aria-disabled":j,draggable:Ar,onDragStart:zr,onDragOver:bt,onDragEnter:va,onDragLeave:Br,onDrop:Hn,onDragEnd:At,onClick:yo,className:i("relative",dg({size:I,isSelected:K,isDragging:A,isDisabled:j,isHoverable:he&&!j}),_,z&&"flex-1"),style:{paddingLeft:`calc(${t} * var(--tree-indent) + 8px)`},children:[Ar&&k&&ne!==false&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground cursor-grab active:cursor-grabbing",children:ne}),jsxRuntime.jsx("button",{type:"button",onClick:ha,className:i("flex-shrink-0 p-0.5 rounded hover:bg-muted/80 transition-transform",Q&&"invisible"),tabIndex:-1,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:i("h-4 w-4 transition-transform duration-200",re&&"rotate-90")})}),me&&jsxRuntime.jsx(GC,{checked:B,indeterminate:W,disabled:j,onClick:U=>m(e.key,e,U)}),P&&rt&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground ml-1",children:rt}),jsxRuntime.jsx("div",{className:i("flex-1 min-w-0 truncate ml-1",z&&"flex-none"),children:e.label})]}),O&&re&&jsxRuntime.jsx("div",{role:"group",children:e.children.map((U,Se)=>jsxRuntime.jsx(mg,{node:U,level:t+1,isLast:Se===e.children.length-1,parentIsLastPath:ae},U.key))})]})},$C=e=>{let t=[],r=a=>{for(let n of a)t.push(n.key),n.children&&r(n.children);};return r(e),t},_C=e=>{let t=[],r=a=>{for(let n of a)t.push(n.key),n.children&&r(n.children);};return e.children&&r(e.children),t},pg=(e,t)=>{if(!e.children)return false;for(let r of e.children)if(r.key===t||pg(r,t))return true;return false},fg=$__namespace.forwardRef(({className:e,variant:t,size:r,data:a,draggable:n=false,allowDrop:o,expandedKeys:s,defaultExpandedKeys:l=[],defaultExpandAll:c=false,onExpand:d,selectable:u=true,multiple:m=false,selectedKeys:f,defaultSelectedKeys:p=[],onSelect:b,checkable:x=false,checkStrictly:g=false,checkedKeys:v,defaultCheckedKeys:y=[],onCheck:w,showLine:h=false,showIcon:C=false,showHandle:R=true,dragIcon:M,icon:T,leafIcon:E=jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),folderIcon:N=jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),folderOpenIcon:P=jsxRuntime.jsx(lucideReact.FolderOpen,{className:"h-4 w-4"}),onDragStart:k,onDragEnter:L,onDragOver:H,onDragLeave:S,onDragEnd:D,onDrop:V,blockNode:z=false,disabled:G=false,...I},F)=>{let O=$__namespace.useCallback(()=>c?new Set($C(a)):new Set(l),[c,l,a]),[Q,re]=$__namespace.useState(O),K=s!==void 0,B=K?new Set(s):Q,W=$__namespace.useCallback((xe,je)=>{let zt=new Set(B),Ae=!zt.has(xe);Ae?zt.add(xe):zt.delete(xe),K||re(zt),d?.(Array.from(zt),{expanded:Ae,node:je});},[B,K,d]),[A,Y]=$__namespace.useState(new Set(p)),j=f!==void 0,he=j?new Set(f):A,me=$__namespace.useCallback((xe,je,zt)=>{let Ae=new Set(he),ur=!Ae.has(xe);m?ur?Ae.add(xe):Ae.delete(xe):(Ae.clear(),ur&&Ae.add(xe)),j||Y(Ae);let qa=[],Vn=Ro=>{for(let Za of Ro)Ae.has(Za.key)&&qa.push(Za),Za.children&&Vn(Za.children);};Vn(a),b?.(Array.from(Ae),{selected:ur,selectedNodes:qa,node:je,event:zt});},[he,m,j,b,a]),[Ar,ne]=$__namespace.useState(new Set(y)),[rt,zr]=$__namespace.useState(new Set),bt=v!==void 0,va=bt?new Set(Array.isArray(v)?v:v.checked):Ar,Br=bt&&!Array.isArray(v)?new Set(v.halfChecked):rt,Hn=$__namespace.useCallback((xe,je,zt)=>{let Ae=new Set(va),ur=new Set(Br),qa=!Ae.has(xe);if(qa?(Ae.add(xe),ur.delete(xe)):Ae.delete(xe),!g&&je.children){let bi=_C(je);for(let Fr of bi)qa?(Ae.add(Fr),ur.delete(Fr)):Ae.delete(Fr);}bt||(ne(Ae),zr(ur));let Vn=[],Ro=bi=>{for(let Fr of bi)Ae.has(Fr.key)&&Vn.push(Fr),Fr.children&&Ro(Fr.children);};Ro(a);let Za=g?{checked:Array.from(Ae),halfChecked:Array.from(ur)}:Array.from(Ae);w?.(Za,{checked:qa,checkedNodes:Vn,node:je,event:zt,halfCheckedKeys:Array.from(ur)});},[va,Br,g,bt,w,a]),[At,yo]=$__namespace.useState(null),[ha,_]=$__namespace.useState(null),[ae,U]=$__namespace.useState(null),Se=$__namespace.useCallback((xe,je)=>{_(xe),U(je);},[]),ie=$__namespace.useCallback((xe,je)=>{!At||!V||je===0&&pg(At,xe.key)||V({event:{},node:xe,dragNode:At,dropPosition:je,dropToGap:je!==0});},[At,V]),Ke=$__namespace.useCallback(()=>Array.from(B),[B]),Ge={expandedKeys:B,toggleExpand:W,selectedKeys:he,handleSelect:me,selectable:u,multiple:m,checkedKeys:va,halfCheckedKeys:Br,handleCheck:Hn,checkable:x,checkStrictly:g,draggable:n,draggedNode:At,setDraggedNode:yo,dragOverKey:ha,dragOverPosition:ae,setDragOver:Se,handleDrop:ie,allowDrop:o,onDragStart:k,onDragEnter:L,onDragOver:H,onDragLeave:S,onDragEnd:D,showLine:h,showIcon:C,showHandle:R,dragIcon:M,icon:T,leafIcon:E,folderIcon:N,folderOpenIcon:P,blockNode:z,disabled:G,size:r,data:a,getAllKeys:Ke},Or=xe=>{let je=xe.relatedTarget,zt=xe.currentTarget;(!je||!zt.contains(je))&&Se(null,null);};return jsxRuntime.jsx(ug.Provider,{value:Ge,children:jsxRuntime.jsx("div",{ref:F,role:"tree","aria-multiselectable":m||x,className:i(cg({variant:t,size:r,className:e})),onDragLeave:Or,...I,children:a.map((xe,je)=>jsxRuntime.jsx(mg,{node:xe,level:0,isLast:je===a.length-1},xe.key))})})});fg.displayName="Tree";var bg=classVarianceAuthority.cva("flex rounded-md border border-input bg-background text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"},fullWidth:{true:"w-full",false:"w-fit min-w-48"}},defaultVariants:{size:"md",fullWidth:false}}),qC=({text:e,query:t})=>{if(!t)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let r=new RegExp(`(${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi"),a=e.split(r);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,o)=>r.test(n)?jsxRuntime.jsx("mark",{className:"bg-primary/20 text-foreground rounded-sm",children:n},o):jsxRuntime.jsx("span",{children:n},o))})},ZC=(e,t)=>{let[r,a]=$__namespace.useState(e);return $__namespace.useEffect(()=>{let n=setTimeout(()=>{a(e);},t);return ()=>{clearTimeout(n);}},[e,t]),r},vg=$__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,onSelect:o,options:s=[],loadOptions:l,debounceMs:c=300,minChars:d=0,placeholder:u="Type to search...",emptyText:m="No results found.",loadingText:f="Loading...",clearable:p=false,freeSolo:b=true,maxHeight:x=200,highlightMatch:g=true,fullWidth:v=false,disabled:y,...w},h)=>{let[C,R]=$__namespace.useState(false),[M,T]=$__namespace.useState(a),[E,N]=$__namespace.useState([]),[P,k]=$__namespace.useState(false),[L,H]=$__namespace.useState(false),S=$__namespace.useRef(null),D=r!==void 0?r:M,V=ZC(D,c);$__namespace.useImperativeHandle(h,()=>S.current);let z=l?E:s,G=$__namespace.useMemo(()=>l?z:z.filter(j=>j.label.toLowerCase().includes(D.toLowerCase())),[z,D,l]);$__namespace.useEffect(()=>{if(!l)return;if(V.length<d){N([]);return}let j=false;return (async()=>{k(true);try{let me=await l(V);j||N(me);}catch{j||N([]);}finally{j||k(false);}})(),()=>{j=true;}},[V,l,d]);let I=j=>{r===void 0&&T(j),n?.(j);},F=j=>{let he=j.target.value;I(he),he.length>=d&&R(true);},O=j=>{I(j.label),o?.(j),R(false);},Q=()=>{I(""),S.current?.focus();},re=()=>{H(true),D.length>=d&&(G.length>0||P)&&R(true);},K=()=>{H(false);},B=j=>{j.key==="Escape"&&R(false),j.key==="ArrowDown"&&!C&&G.length>0&&R(true);},W=C&&D.length>=d,A=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4",Y=p&&D?"pr-8":"pr-3";return jsxRuntime.jsxs(at,{open:W,onOpenChange:R,children:[jsxRuntime.jsx(Bo,{asChild:true,children:jsxRuntime.jsxs("div",{className:i("relative",v?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:S,type:"text",value:D,onChange:F,onFocus:re,onBlur:K,onKeyDown:B,disabled:y,placeholder:u,className:i(bg({size:t,fullWidth:v}),Y,e),style:{borderColor:L?"var(--color-foreground)":void 0},role:"combobox","aria-expanded":W,"aria-autocomplete":"list","aria-controls":"autocomplete-list",...w}),p&&D&&!y&&jsxRuntime.jsx("button",{type:"button",onClick:Q,className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground","aria-label":"Clear",children:jsxRuntime.jsx(lucideReact.X,{className:A})})]})}),jsxRuntime.jsx(nt,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",onOpenAutoFocus:j=>j.preventDefault(),children:jsxRuntime.jsx(cmdk.Command,{className:"overflow-hidden rounded-md",shouldFilter:false,children:jsxRuntime.jsx(cmdk.Command.List,{id:"autocomplete-list",className:"overflow-y-auto p-1",style:{maxHeight:x},children:P?jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:i(A,"animate-spin")}),f]}):G.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:m}):G.map(j=>jsxRuntime.jsxs(cmdk.Command.Item,{value:j.value,disabled:j.disabled,onSelect:()=>O(j),className:i("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground"),children:[jsxRuntime.jsx(lucideReact.Check,{className:i("mr-2 h-4 w-4 shrink-0",D===j.label?"opacity-100":"opacity-0")}),jsxRuntime.jsx("span",{className:"flex-1",children:g?jsxRuntime.jsx(qC,{text:j.label,query:D}):j.label})]},j.value))})})})]})});vg.displayName="Autocomplete";var dl=$__namespace.createContext(null),ul=$__namespace.createContext(null),ml=()=>{let e=$__namespace.useContext(dl);if(!e)throw new Error("useFormContext must be used within a Form");return e},hs=()=>{let e=$__namespace.useContext(ul);if(!e)throw new Error("useFieldContext must be used within a FormField");return e},JC={required:(e="This field is required")=>({validate:t=>typeof t=="string"?t.trim().length>0:Array.isArray(t)?t.length>0:t!=null,message:e}),minLength:(e,t)=>({validate:r=>typeof r=="string"&&r.length>=e,message:t??`Must be at least ${e} characters`}),maxLength:(e,t)=>({validate:r=>typeof r=="string"&&r.length<=e,message:t??`Must be at most ${e} characters`}),min:(e,t)=>({validate:r=>typeof r=="number"&&r>=e,message:t??`Must be at least ${e}`}),max:(e,t)=>({validate:r=>typeof r=="number"&&r<=e,message:t??`Must be at most ${e}`}),email:(e="Invalid email address")=>({validate:t=>typeof t=="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),message:e}),pattern:(e,t="Invalid format")=>({validate:r=>typeof r=="string"&&e.test(r),message:t}),custom:(e,t)=>({validate:e,message:t})},hg=$__namespace.forwardRef(({defaultValues:e={},onSubmit:t,onError:r,validateOnBlur:a=true,validateOnChange:n=false,children:o,className:s,...l},c)=>{let[d,u]=$__namespace.useState(e),[m,f]=$__namespace.useState({}),[p,b]=$__namespace.useState({}),[x,g]=$__namespace.useState({}),[v,y]=$__namespace.useState(false),w=$__namespace.useRef(new Map),h=$__namespace.useCallback((S,D)=>{w.current.set(S,D);},[]),C=$__namespace.useCallback(S=>{w.current.delete(S);},[]),R=$__namespace.useCallback(S=>{let D=w.current.get(S)||[],V=d[S];for(let z of D)if(!z.validate(V))return f(G=>({...G,[S]:z.message})),false;return f(z=>({...z,[S]:null})),true},[d]),M=$__namespace.useCallback(()=>{let S=true,D={};return w.current.forEach((V,z)=>{let G=d[z];for(let I of V)if(!I.validate(G)){D[z]=I.message,S=false;break}D[z]||(D[z]=null);}),f(D),S},[d]),T=$__namespace.useCallback((S,D)=>{u(V=>({...V,[S]:D})),g(V=>({...V,[S]:true})),n&&setTimeout(()=>{R(S);},0);},[n,R]),E=$__namespace.useCallback((S,D)=>{f(V=>({...V,[S]:D}));},[]),N=$__namespace.useCallback((S,D)=>{b(V=>({...V,[S]:D})),D&&a&&R(S);},[a,R]),P=$__namespace.useCallback(S=>({value:d[S],error:m[S]??null,touched:p[S]??false,dirty:x[S]??false}),[d,m,p,x]),k=$__namespace.useCallback(()=>{u(e),f({}),b({}),g({});},[e]),L=async S=>{S.preventDefault();let D={};if(w.current.forEach((z,G)=>{D[G]=true;}),b(D),!M()){r?.(m);return}if(t){y(true);try{await t(d);}finally{y(false);}}},H={values:d,errors:m,touched:p,dirty:x,isSubmitting:v,setValue:T,setError:E,setTouched:N,validateField:R,validateAll:M,registerField:h,unregisterField:C,getFieldState:P,reset:k};return jsxRuntime.jsx(dl.Provider,{value:H,children:jsxRuntime.jsx("form",{ref:c,onSubmit:L,className:i("space-y-4",s),...l,children:o})})});hg.displayName="Form";var xg=({name:e,rules:t=[],defaultValue:r,children:a})=>{let n=ml(),o=$__namespace.useId();$__namespace.useEffect(()=>(n.registerField(e,t),r!==void 0&&n.values[e]===void 0&&n.setValue(e,r),()=>{n.unregisterField(e);}),[e,t,r,n]);let s=n.getFieldState(e),l={name:e,id:`${o}-${e}`,value:s.value,error:s.error,touched:s.touched,dirty:s.dirty};return jsxRuntime.jsx(ul.Provider,{value:l,children:a})};xg.displayName="FormField";var yg=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("space-y-1.5",e),...t}));yg.displayName="FormItem";var Rg=$__namespace.forwardRef(({className:e,required:t,children:r,...a},n)=>{let{id:o,error:s,touched:l}=hs();return jsxRuntime.jsxs(wa,{ref:n,htmlFor:o,className:i(s&&l&&"text-danger",e),...a,children:[r,t&&jsxRuntime.jsx("span",{className:"ml-1 text-danger",children:"*"})]})});Rg.displayName="FormLabel";var wg=({children:e})=>{let{name:t,id:r,error:a,touched:n}=hs(),o=ml(),s=o.getFieldState(t),l=d=>{let u=d.target,m=u.type==="checkbox"?u.checked:u.value;o.setValue(t,m);},c=()=>{o.setTouched(t,true);};return $__namespace.cloneElement(e,{id:r,name:t,value:s.value??"",onChange:l,onBlur:c,"aria-invalid":a&&n?"true":void 0,"aria-describedby":a&&n?`${r}-error`:void 0})};wg.displayName="FormControl";var Cg=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:i("text-xs text-muted-foreground",e),...t}));Cg.displayName="FormDescription";var Ng=$__namespace.forwardRef(({className:e,message:t,...r},a)=>{let{id:n,error:o,touched:s}=hs(),l=t??(s?o:null);return l?jsxRuntime.jsx("p",{ref:a,id:`${n}-error`,className:i("text-xs text-danger",e),role:"alert",...r,children:l}):null});Ng.displayName="FormMessage";var Tg=classVarianceAuthority.cva("inline-flex items-center gap-3",{variants:{size:{sm:"[&_[data-user-avatar]]:h-8 [&_[data-user-avatar]]:w-8",md:"[&_[data-user-avatar]]:h-10 [&_[data-user-avatar]]:w-10",lg:"[&_[data-user-avatar]]:h-12 [&_[data-user-avatar]]:w-12"}},defaultVariants:{size:"md"}}),Pg=$__namespace.forwardRef(({className:e,size:t,name:r,description:a,avatarUrl:n,avatarFallback:o,trailing:s,...l},c)=>{let d=o||r.split(" ").map(u=>u[0]).join("").toUpperCase().slice(0,2);return jsxRuntime.jsxs("div",{ref:c,className:i(Tg({size:t,className:e})),...l,children:[jsxRuntime.jsxs(Ca,{"data-user-avatar":true,children:[n&&jsxRuntime.jsx(tn,{src:n,alt:r}),jsxRuntime.jsx(Na,{children:d})]}),jsxRuntime.jsxs("div",{className:"flex flex-col min-w-0",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium leading-none truncate",children:r}),a&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground truncate",children:a})]}),s&&jsxRuntime.jsx("div",{className:"ml-auto flex-shrink-0",children:s})]})});Pg.displayName="User";var Eg=classVarianceAuthority.cva("font-mono rounded",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-transparent",ghost:"bg-transparent",soft:"bg-muted text-foreground",surface:"bg-muted/50 text-foreground border border-border"},size:{sm:"px-1 py-0.5 text-xs",md:"px-1.5 py-0.5 text-sm",lg:"px-2 py-1 text-base"}},defaultVariants:{variant:"soft",size:"md"}}),Lg=$__namespace.forwardRef(({className:e,variant:t,size:r,...a},n)=>jsxRuntime.jsx("code",{ref:n,className:i(Eg({variant:t,size:r,className:e})),...a}));Lg.displayName="Code";var Dg=classVarianceAuthority.cva("relative flex items-center gap-2 font-mono rounded-lg border",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-transparent border-input",ghost:"bg-transparent border-transparent",soft:"bg-muted border-muted",surface:"bg-muted/50 border-border"},size:{sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-5 py-3 text-base"}},defaultVariants:{variant:"surface",size:"md"}}),Sg=$__namespace.forwardRef(({className:e,variant:t,size:r,code:a,copyable:n=true,copyLabel:o="Copy",onCopy:s,symbol:l="$",hideSymbol:c=false,...d},u)=>{let[m,f]=$__namespace.useState(false),p=async()=>{try{await navigator.clipboard.writeText(a),f(!0),s?.(),setTimeout(()=>f(!1),2e3);}catch(b){console.error("Failed to copy:",b);}};return jsxRuntime.jsxs("div",{ref:u,className:i(Dg({variant:t,size:r,className:e})),...d,children:[!c&&jsxRuntime.jsx("span",{className:"text-muted-foreground select-none",children:l}),jsxRuntime.jsx("code",{className:"flex-1 truncate",children:a}),n&&jsxRuntime.jsx("button",{type:"button",onClick:p,className:i("flex-shrink-0 rounded p-1 transition-colors","hover:bg-black/10 dark:hover:bg-white/10","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),"aria-label":m?"Copied":o,children:m?jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-4 w-4 text-muted-foreground"})})]})});Sg.displayName="Snippet";var gl=classVarianceAuthority.cva("overflow-hidden",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),Hg=$__namespace.forwardRef(({className:e,radius:t,src:r,alt:a,fallback:n,showSkeleton:o=true,onLoad:s,onError:l,fit:c="cover",aspectRatio:d,style:u,...m},f)=>{let[p,b]=$__namespace.useState("loading");$__namespace.useEffect(()=>{r&&b("loading");},[r]);let x=()=>{b("loaded"),s?.();},g=()=>{b("error"),l?.();},v={contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"}[c];return p==="error"&&n?jsxRuntime.jsx("div",{className:i(gl({radius:t}),"flex items-center justify-center bg-muted",e),style:{aspectRatio:d,...u},children:n}):jsxRuntime.jsxs("div",{className:i(gl({radius:t}),"relative",e),style:{aspectRatio:d,...u},children:[p==="loading"&&o&&jsxRuntime.jsx(Ho,{className:"absolute inset-0 h-full w-full"}),jsxRuntime.jsx("img",{ref:f,src:r,alt:a,onLoad:x,onError:g,className:i("h-full w-full transition-opacity duration-300",v,p==="loading"?"opacity-0":"opacity-100"),...m})]})});Hg.displayName="Image";var Ag=classVarianceAuthority.cva("flex flex-col rounded-lg border bg-background",{variants:{size:{sm:"p-1 gap-0.5",md:"p-1.5 gap-1",lg:"p-2 gap-1.5"}},defaultVariants:{size:"md"}}),zg=classVarianceAuthority.cva("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{size:{sm:"px-2 py-1 text-xs",md:"px-3 py-1.5 text-sm",lg:"px-4 py-2 text-base"}},defaultVariants:{size:"md"}}),Bg=$__namespace.createContext({value:"",onValueChange:()=>{},multiple:false,size:"md"}),Og=$__namespace.forwardRef(({className:e,size:t="md",value:r,defaultValue:a="",onValueChange:n,multiple:o=false,children:s,...l},c)=>{let[d,u]=$__namespace.useState(a),m=r??d,f=p=>{let b;if(o){let x=Array.isArray(m)?m:[m].filter(Boolean);x.includes(p)?b=x.filter(g=>g!==p):b=[...x,p];}else b=p;n?n(b):u(b);};return jsxRuntime.jsx(Bg.Provider,{value:{value:m,onValueChange:f,multiple:o,size:t??"md"},children:jsxRuntime.jsx("div",{ref:c,role:"listbox","aria-multiselectable":o,className:i(Ag({size:t,className:e})),...l,children:s})})});Og.displayName="Listbox";var Fg=$__namespace.forwardRef(({className:e,value:t,disabled:r,icon:a,description:n,children:o,...s},l)=>{let{value:c,onValueChange:d,multiple:u,size:m}=$__namespace.useContext(Bg),f=u?Array.isArray(c)&&c.includes(t):c===t,p=()=>{r||d(t);},b=x=>{(x.key==="Enter"||x.key===" ")&&!r&&(x.preventDefault(),d(t));};return jsxRuntime.jsxs("div",{ref:l,role:"option","aria-selected":f,"data-disabled":r?"":void 0,tabIndex:r?-1:0,className:i(zg({size:m}),f&&"bg-accent text-accent-foreground",e),onClick:p,onKeyDown:b,...s,children:[a&&jsxRuntime.jsx("span",{className:"mr-2 flex-shrink-0",children:a}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:o}),n&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:n})]}),f&&jsxRuntime.jsx(lucideReact.Check,{className:"ml-2 h-4 w-4 flex-shrink-0"})]})});Fg.displayName="ListboxItem";var Gg=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-2",bordered:"divide-y divide-border rounded-lg border",cards:"gap-2"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),$g=classVarianceAuthority.cva("flex items-center gap-3 bg-background transition-all",{variants:{variant:{default:"rounded-lg border p-3",bordered:"p-3",cards:"rounded-lg border p-3 shadow-sm"},size:{sm:"p-2 text-sm",md:"p-3 text-sm",lg:"p-4 text-base"},isDragging:{true:"opacity-50 scale-[1.02] shadow-lg z-10",false:""},isDragOver:{true:"border-primary border-dashed",false:""}},defaultVariants:{variant:"default",size:"md",isDragging:false,isDragOver:false}});function uN({className:e,variant:t,size:r,items:a,onReorder:n,renderItem:o,showHandle:s=true,disabled:l=false,...c},d){let[u,m]=$__namespace.useState(null),[f,p]=$__namespace.useState(null),b=(w,h)=>{l||(m(h),w.dataTransfer.effectAllowed="move",w.dataTransfer.setData("text/plain",String(h)));},x=(w,h)=>{w.preventDefault(),!(l||u===null||u===h)&&p(h);},g=()=>{p(null);},v=(w,h)=>{if(w.preventDefault(),l||u===null||u===h){m(null),p(null);return}let C=[...a],[R]=C.splice(u,1);C.splice(h,0,R),n?.(C),m(null),p(null);},y=()=>{m(null),p(null);};return jsxRuntime.jsx("div",{ref:d,className:i(Gg({variant:t,size:r,className:e})),...c,children:a.map((w,h)=>jsxRuntime.jsxs("div",{draggable:!l,onDragStart:C=>b(C,h),onDragOver:C=>x(C,h),onDragLeave:g,onDrop:C=>v(C,h),onDragEnd:y,className:i($g({variant:t,size:r,isDragging:u===h,isDragOver:f===h}),!l&&"cursor-move"),children:[s&&jsxRuntime.jsx("div",{className:i("flex-shrink-0 text-muted-foreground",l?"opacity-30":"cursor-grab active:cursor-grabbing"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-5 w-5"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:o(w,h)})]},w.id))})}var mN=$__namespace.forwardRef(uN);var Wg=classVarianceAuthority.cva("absolute inset-0 z-50 flex items-center justify-center transition-opacity",{variants:{variant:{solid:"bg-background",soft:"bg-background/80 backdrop-blur-sm",ghost:"bg-background/50"},visible:{true:"opacity-100 pointer-events-auto",false:"opacity-0 pointer-events-none"}},defaultVariants:{variant:"soft",visible:true}}),bN={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},Yg=$__namespace.forwardRef(({className:e,variant:t,loading:r=true,size:a="md",spinner:n,text:o,children:s,...l},c)=>jsxRuntime.jsxs("div",{ref:c,className:i("relative",e),...l,children:[s,jsxRuntime.jsx("div",{className:i(Wg({variant:t,visible:r})),"aria-hidden":!r,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n||jsxRuntime.jsx(lucideReact.Loader2,{className:i(bN[a],"animate-spin text-primary")}),o&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:o})]})})]}));Yg.displayName="LoadingOverlay";var Ug=classVarianceAuthority.cva("fixed top-0 left-0 z-[9999] h-0.5 transition-all duration-200 ease-out",{variants:{color:{primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"}},defaultVariants:{color:"primary"}}),Xg=$__namespace.forwardRef(({className:e,color:t,isLoading:r=false,progress:a,showSpinner:n=false,...o},s)=>{let[l,c]=$__namespace.useState(0),[d,u]=$__namespace.useState(false),m=$__namespace.useRef(null);return $__namespace.useEffect(()=>{if(a!==void 0){c(a),u(a>0&&a<100);return}return r?(u(true),c(10),m.current=setInterval(()=>{c(f=>{if(f>=90)return f;let p=Math.random()*10;return Math.min(f+p,90)});},500)):l>0&&(c(100),setTimeout(()=>{u(false),c(0);},200)),()=>{m.current&&clearInterval(m.current);}},[r,a]),!d&&a===void 0||a!==void 0&&(a<=0||a>=100)?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:s,className:i(Ug({color:t,className:e})),style:{width:`${l}%`},role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,...o,children:jsxRuntime.jsx("div",{className:"absolute right-0 h-full w-24 -translate-y-1 rotate-3 bg-inherit opacity-50 blur-sm"})}),n&&d&&jsxRuntime.jsx("div",{className:"fixed top-4 right-4 z-[9999]",children:jsxRuntime.jsx("div",{className:i("h-4 w-4 animate-spin rounded-full border-2 border-transparent",t==="primary"&&"border-t-primary",t==="secondary"&&"border-t-secondary",t==="success"&&"border-t-success",t==="warning"&&"border-t-warning",t==="danger"&&"border-t-danger",t==="info"&&"border-t-info")})})]})});Xg.displayName="NProgress";var Qg=classVarianceAuthority.cva("flex items-center justify-center",{variants:{variant:{spinner:"",dots:"",pulse:"",skeleton:""},size:{sm:"gap-1",md:"gap-2",lg:"gap-3"},fullScreen:{true:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",false:""}},defaultVariants:{variant:"spinner",size:"md",fullScreen:false}}),qg={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},wN={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-3 w-3"},eb=$__namespace.forwardRef(({className:e,variant:t="spinner",size:r="md",fullScreen:a,text:n,color:o="primary",...s},l)=>{let c={primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"}[o],d=()=>{switch(t){case "dots":return jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[0,1,2].map(u=>jsxRuntime.jsx("div",{className:i(wN[r||"md"],"animate-bounce rounded-full bg-current",c),style:{animationDelay:`${u*.15}s`}},u))});case "pulse":return jsxRuntime.jsx("div",{className:i(qg[r||"md"],"animate-pulse rounded-full bg-current",c)});case "skeleton":return jsxRuntime.jsxs("div",{className:"w-full space-y-2",children:[jsxRuntime.jsx("div",{className:"h-4 w-3/4 animate-pulse rounded bg-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-1/2 animate-pulse rounded bg-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-5/6 animate-pulse rounded bg-muted"})]});default:return jsxRuntime.jsx(lucideReact.Loader2,{className:i(qg[r||"md"],"animate-spin",c)})}};return jsxRuntime.jsx("div",{ref:l,className:i(Qg({variant:t,size:r,fullScreen:a,className:e})),role:"status","aria-label":n||"Loading",...s,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[d(),n&&jsxRuntime.jsx("span",{className:i("text-sm",c),children:n})]})})});eb.displayName="Loading";var hl=class extends $__namespace.Component{constructor(t){super(t),this.state={hasError:false,error:null};}static getDerivedStateFromError(t){return {hasError:true,error:t}}componentDidCatch(t,r){this.props.onError?.(t,r);}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&this.props.resetKeys.some((a,n)=>a!==t.resetKeys?.[n])&&this.reset();}reset=()=>{this.props.onReset?.(),this.setState({hasError:false,error:null});};render(){return this.state.hasError?this.props.fallback?this.props.fallback:jsxRuntime.jsx(xl,{error:this.state.error,onReset:this.reset}):this.props.children}},xl=$__namespace.forwardRef(({error:e,onReset:t,className:r},a)=>jsxRuntime.jsxs("div",{ref:a,className:i("flex min-h-[200px] flex-col items-center justify-center gap-4 rounded-lg border border-danger/20 bg-danger/5 p-6 text-center",r),role:"alert",children:[jsxRuntime.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-danger/10",children:jsxRuntime.jsx(lucideReact.AlertTriangle,{className:"h-6 w-6 text-danger"})}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Something went wrong"}),e&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:e.message||"An unexpected error occurred"})]}),t&&jsxRuntime.jsxs("button",{onClick:t,className:"inline-flex items-center gap-2 rounded-md bg-danger px-4 py-2 text-sm font-medium text-danger-foreground hover:bg-danger/90 transition-colors",children:[jsxRuntime.jsx(lucideReact.RefreshCw,{className:"h-4 w-4"}),"Try again"]})]}));xl.displayName="DefaultErrorFallback";var MN=hl;var rb=$__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:r,placeholder:a="Pick a date range",dateFormat:n="LLL dd, y",disabled:o=false,minDate:s,maxDate:l,numberOfMonths:c=2,className:d,align:u="start"},m)=>{let[f,p]=$__namespace.useState(false),[b,x]=$__namespace.useState(t),g=e!==void 0,v=g?e:b,y=h=>{g||x(h),r?.(h);},w=h=>{if(!h)return a;let{from:C,to:R}=h;return C&&R?`${dateFns.format(C,n)} - ${dateFns.format(R,n)}`:C?dateFns.format(C,n):a};return jsxRuntime.jsxs(at,{open:f,onOpenChange:p,children:[jsxRuntime.jsx(ht,{asChild:true,children:jsxRuntime.jsxs(J,{ref:m,variant:"bordered",disabled:o,className:i("w-full justify-start text-left font-normal",!v?.from&&"text-muted-foreground",d),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),w(v)]})}),jsxRuntime.jsx(nt,{className:"w-auto p-0",align:u,children:jsxRuntime.jsx(nn,{mode:"range",defaultMonth:v?.from,selected:v,onSelect:y,numberOfMonths:c,disabled:h=>!!(s&&h<s||l&&h>l),initialFocus:true})})]})});rb.displayName="DateRangePicker";var fn=e=>String(e).padStart(2,"0"),ab=$__namespace.forwardRef(({value:e,onValueChange:t,placeholder:r="Pick a time",use24Hour:a=true,minuteStep:n=1,disabled:o=false,className:s},l)=>{let[c,d]=$__namespace.useState(false),u=a?Array.from({length:24},(w,h)=>h):Array.from({length:12},(w,h)=>h+1),m=Array.from({length:Math.floor(60/n)},(w,h)=>h*n),f=w=>{if(!w)return r;if(a)return `${fn(w.hours)}:${fn(w.minutes)}`;let h=w.hours%12||12,C=w.hours>=12?"PM":"AM";return `${fn(h)}:${fn(w.minutes)} ${C}`},p=w=>{let h=e?.minutes??0,C=w;if(!a&&e){let R=e.hours>=12;R&&w!==12?C=w+12:!R&&w===12&&(C=0);}t?.({hours:C,minutes:h});},b=w=>{let h=e?.hours??0;t?.({hours:h,minutes:w});},x=w=>{if(!e)return;let h=e.hours;w==="AM"&&e.hours>=12?h=e.hours-12:w==="PM"&&e.hours<12&&(h=e.hours+12),t?.({hours:h,minutes:e.minutes});},g=()=>{let w=new Date;t?.({hours:w.getHours(),minutes:w.getMinutes()});},v=e?e.hours>=12?"PM":"AM":void 0,y=e?a?e.hours:e.hours%12||12:void 0;return jsxRuntime.jsxs(at,{open:c,onOpenChange:d,children:[jsxRuntime.jsx(ht,{asChild:true,children:jsxRuntime.jsxs(J,{ref:l,variant:"bordered",disabled:o,className:i("w-full justify-start text-left font-normal",!e&&"text-muted-foreground",s),children:[jsxRuntime.jsx(lucideReact.Clock,{className:"mr-2 h-4 w-4"}),f(e)]})}),jsxRuntime.jsxs(nt,{className:"w-auto p-0",align:"start",children:[jsxRuntime.jsxs("div",{className:"flex",children:[jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"Hour"}),jsxRuntime.jsx(We,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:u.map(w=>jsxRuntime.jsx(J,{variant:y===w?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>p(w),children:fn(w)},w))})})]}),jsxRuntime.jsxs("div",{className:"flex flex-col border-l",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"Min"}),jsxRuntime.jsx(We,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:m.map(w=>jsxRuntime.jsx(J,{variant:e?.minutes===w?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>b(w),children:fn(w)},w))})})]}),!a&&jsxRuntime.jsxs("div",{className:"flex flex-col border-l",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"\xA0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 p-1",children:[jsxRuntime.jsx(J,{variant:v==="AM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>x("AM"),children:"AM"}),jsxRuntime.jsx(J,{variant:v==="PM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>x("PM"),children:"PM"})]})]})]}),jsxRuntime.jsxs("div",{className:"flex justify-between border-t p-2",children:[jsxRuntime.jsx(J,{variant:"ghost",size:"sm",onClick:g,children:"Now"}),jsxRuntime.jsx(J,{size:"sm",onClick:()=>d(false),children:"Done"})]})]})]})});ab.displayName="TimePicker";var nb=classVarianceAuthority.cva("overflow-auto",{variants:{variant:{default:"",bordered:"border rounded-lg",cards:""}},defaultVariants:{variant:"default"}});function EN({className:e,variant:t,items:r,itemHeight:a,height:n,overscan:o=3,renderItem:s,getItemKey:l,gap:c=0,onScrollChange:d,...u},m){let f=$__namespace.useRef(null),[p,b]=$__namespace.useState(0);$__namespace.useImperativeHandle(m,()=>f.current);let x=r.length*(a+c)-c,g=a+c,v=Math.max(0,Math.floor(p/g)-o),y=Math.ceil(n/g)+2*o,w=Math.min(r.length-1,v+y),h=R=>{let M=R.currentTarget.scrollTop;b(M),d?.(M);},C=$__namespace.useMemo(()=>{let R=[];for(let M=v;M<=w;M++)r[M]!==void 0&&R.push({item:r[M],index:M,style:{position:"absolute",top:M*g,left:0,right:0,height:a}});return R},[r,v,w,g,a]);return jsxRuntime.jsx("div",{ref:f,className:i(nb({variant:t,className:e})),style:{height:n,position:"relative"},onScroll:h,...u,children:jsxRuntime.jsx("div",{style:{height:x,position:"relative"},children:C.map(({item:R,index:M,style:T})=>jsxRuntime.jsx("div",{style:T,children:s(R,M)},l?l(R,M):M))})})}var LN=$__namespace.forwardRef(EN);var sb=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"border rounded-lg overflow-hidden"}},defaultVariants:{variant:"default"}}),wl=classVarianceAuthority.cva("flex items-center justify-center py-4",{variants:{size:{sm:"py-2",md:"py-4",lg:"py-6"}},defaultVariants:{size:"md"}}),ib=$__namespace.forwardRef(({className:e,variant:t,size:r,children:a,onLoadMore:n,hasMore:o,isLoading:s=false,loader:l,threshold:c=100,rootMargin:d,useWindow:u=false,endMessage:m,...f},p)=>{let b=$__namespace.useRef(null),x=$__namespace.useRef(null),g=$__namespace.useRef(false);$__namespace.useImperativeHandle(p,()=>b.current),$__namespace.useEffect(()=>{let y=x.current;if(!y)return;let w=new IntersectionObserver(h=>{let[C]=h;C.isIntersecting&&o&&!s&&!g.current&&(g.current=true,Promise.resolve(n()).finally(()=>{g.current=false;}));},{root:u?null:b.current,rootMargin:d||`${c}px`,threshold:0});return w.observe(y),()=>{w.disconnect();}},[o,s,n,c,d,u]);let v=jsxRuntime.jsx("div",{className:i(wl({size:r})),children:jsxRuntime.jsx(lucideReact.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})});return jsxRuntime.jsxs("div",{ref:b,className:i(sb({variant:t,className:e})),...f,children:[a,jsxRuntime.jsx("div",{ref:x,className:"h-px w-full"}),s&&(l||v),!o&&!s&&m&&jsxRuntime.jsx("div",{className:i(wl({size:r}),"text-muted-foreground text-sm"),children:m})]})});ib.displayName="InfiniteScroll";var eo=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("span",{ref:r,className:i("absolute h-px w-px p-0 -m-px overflow-hidden whitespace-nowrap border-0","[clip:rect(0,0,0,0)]",e),...t}));eo.displayName="VisuallyHidden";var cb={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},VN={auto:"top-[50%] translate-y-[-50%]",center:"top-[50%] translate-y-[-50%]",top:"top-4 translate-y-0",bottom:"top-auto bottom-4 translate-y-0","top-center":"top-[20%] translate-y-0","bottom-center":"top-auto bottom-[20%] translate-y-0"},db=classVarianceAuthority.cva("fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),Cl=classVarianceAuthority.cva("fixed left-[50%] z-50 grid translate-x-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",{variants:{size:{xs:"w-full max-w-xs",sm:"w-full max-w-sm",md:"w-full max-w-md",lg:"w-full max-w-lg",xl:"w-full max-w-xl","2xl":"w-full max-w-2xl","3xl":"w-full max-w-3xl","4xl":"w-full max-w-4xl","5xl":"w-full max-w-5xl",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)] max-w-none"}},defaultVariants:{size:"md"}}),Ps=$__namespace.createContext(null),Ia=()=>{let e=$__namespace.useContext(Ps);if(!e)throw new Error("Modal components must be used within a Modal");return e},mb=$__namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a="Modal",children:n,hideCloseButton:o=false,isDismissable:s=true,isKeyboardDismissDisabled:l=false,backdrop:c="opaque",placement:d="center",scrollBehavior:u="inside",size:m,className:f},p)=>{let[b,x]=$__namespace.useState(false),g=e!==void 0,v=g?e:b,[y,w]=$__namespace.useState(false),h=$__namespace.useRef(null),C=$__namespace.useId(),R=$__namespace.useId();$__namespace.useEffect(()=>{w(true);},[]);let M=$__namespace.useCallback(P=>{g||x(P),t?.(P);},[g,t]);$__namespace.useEffect(()=>(v&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[v]),$__namespace.useEffect(()=>{if(!v||l)return;let P=k=>{k.key==="Escape"&&M(false);};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[v,l,M]);let T=P=>{s&&P.target===P.currentTarget&&M(false);},E=r?$__namespace.isValidElement(r)?$__namespace.cloneElement(r,{onClick:P=>{r.props.onClick?.(P),M(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>M(true),children:r}):null,N=()=>!y||!v?null:u==="outside"?$o__namespace.createPortal(jsxRuntime.jsx("div",{"data-state":v?"open":"closed",className:i(db(),cb[c],"overflow-y-auto flex items-start justify-center py-4"),onClick:T,children:jsxRuntime.jsxs("div",{ref:P=>{h.current=P,typeof p=="function"?p(P):p&&(p.current=P);},role:"dialog","aria-modal":"true","aria-labelledby":C,"aria-describedby":R,"data-state":v?"open":"closed",className:i("relative z-50 grid gap-4 border bg-background p-6 shadow-lg sm:rounded-lg dark:border-0",m==="xs"&&"w-full max-w-xs",m==="sm"&&"w-full max-w-sm",m==="md"&&"w-full max-w-md",m==="lg"&&"w-full max-w-lg",m==="xl"&&"w-full max-w-xl",m==="2xl"&&"w-full max-w-2xl",m==="3xl"&&"w-full max-w-3xl",m==="4xl"&&"w-full max-w-4xl",m==="5xl"&&"w-full max-w-5xl",m==="full"&&"w-[calc(100vw-2rem)] min-h-[calc(100vh-2rem)]",!m&&"w-full max-w-md",f),children:[jsxRuntime.jsx(eo,{children:jsxRuntime.jsx("h2",{id:C,children:a})}),n,!o&&jsxRuntime.jsx(gr,{variant:"light",className:"absolute right-4 top-4 z-10",onClick:()=>M(false)})]})}),document.body):$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{"data-state":v?"open":"closed",className:i(db(),cb[c]),onClick:T,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:P=>{h.current=P,typeof p=="function"?p(P):p&&(p.current=P);},role:"dialog","aria-modal":"true","aria-labelledby":C,"aria-describedby":R,"data-state":v?"open":"closed",className:i(Cl({size:m}),VN[d],"dark:border-0 max-h-[calc(100vh-2rem)] !flex !flex-col overflow-hidden gap-4",f),children:[jsxRuntime.jsx(eo,{children:jsxRuntime.jsx("h2",{id:C,children:a})}),n,!o&&jsxRuntime.jsx(gr,{variant:"light",className:"absolute right-4 top-4 z-10",onClick:()=>M(false)})]})]}),document.body);return jsxRuntime.jsxs(Ps.Provider,{value:{open:v,onOpenChange:M,scrollBehavior:u,titleId:C,descriptionId:R},children:[E,N()]})});mb.displayName="Modal";var pb=({children:e,open:t,defaultOpen:r=false,onOpenChange:a,scrollBehavior:n="inside"})=>{let[o,s]=$__namespace.useState(r),l=t!==void 0,c=l?t:o,d=$__namespace.useId(),u=$__namespace.useId(),m=$__namespace.useCallback(f=>{l||s(f),a?.(f);},[l,a]);return jsxRuntime.jsx(Ps.Provider,{value:{open:c,onOpenChange:m,scrollBehavior:n,titleId:d,descriptionId:u},children:e})};pb.displayName="ModalRoot";var fb=$__namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=Ia(),s=l=>{r?.(l),o(true);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(true);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});fb.displayName="ModalTrigger";var Nl=({children:e,container:t})=>{let[r,a]=$__namespace.useState(false);return $__namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};Nl.displayName="ModalPortal";var Ml=$__namespace.forwardRef(({className:e,...t},r)=>{let{open:a,onOpenChange:n}=Ia();return a?jsxRuntime.jsx("div",{ref:r,"data-state":a?"open":"closed",className:i("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),onClick:()=>n(false),"aria-hidden":"true",...t}):null});Ml.displayName="ModalOverlay";var Tl=$__namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=Ia(),s=l=>{r?.(l),o(false);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(false);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});Tl.displayName="ModalClose";var gb=$__namespace.forwardRef(({className:e,children:t,size:r,showCloseButton:a=true,onEscapeKeyDown:n,onInteractOutside:o,...s},l)=>{let{open:c,onOpenChange:d,titleId:u,descriptionId:m}=Ia(),[f,p]=$__namespace.useState(false);return $__namespace.useEffect(()=>{p(true);},[]),$__namespace.useEffect(()=>(c&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[c]),$__namespace.useEffect(()=>{if(!c)return;let b=x=>{x.key==="Escape"&&(n?.(),d(false));};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[c,d,n]),!f||!c?null:jsxRuntime.jsxs(Nl,{children:[jsxRuntime.jsx(Ml,{}),jsxRuntime.jsxs("div",{ref:l,role:"dialog","aria-modal":"true","aria-labelledby":u,"aria-describedby":m,"data-state":c?"open":"closed",className:i(Cl({size:r}),"top-[50%] translate-y-[-50%]",e),...s,children:[t,a&&jsxRuntime.jsx(Tl,{asChild:true,children:jsxRuntime.jsx(gr,{variant:"light",className:"absolute right-4 top-4 z-10"})})]})]})});gb.displayName="ModalContent";var bb=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex-shrink-0 flex flex-col space-y-1.5 text-center sm:text-left",e),...t});bb.displayName="ModalHeader";var vb=({className:e,children:t})=>($__namespace.useContext(Ps)?.scrollBehavior??"inside")==="inside"?jsxRuntime.jsx(We,{className:i("flex-1 min-h-0 -mx-6 px-6",e),children:t}):jsxRuntime.jsx("div",{className:i(e),children:t});vb.displayName="ModalBody";var hb=({className:e,children:t,...r})=>{let{onOpenChange:a}=Ia();return jsxRuntime.jsx("div",{className:i("flex-shrink-0 flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r,children:$__namespace.Children.map(t,n=>$__namespace.isValidElement(n)?$__namespace.cloneElement(n,{onClick:o=>{n.props.onClick?.(o),a(false);}}):n)})};hb.displayName="ModalFooter";var xb=$__namespace.forwardRef(({className:e,...t},r)=>{let{titleId:a}=Ia();return jsxRuntime.jsx("h2",{ref:r,id:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t})});xb.displayName="ModalTitle";var yb=$__namespace.forwardRef(({className:e,...t},r)=>{let{descriptionId:a}=Ia();return jsxRuntime.jsx("p",{ref:r,id:a,className:i("text-sm text-muted-foreground",e),...t})});yb.displayName="ModalDescription";var Cb=classVarianceAuthority.cva("h-10 w-10 rounded-full p-2",{variants:{variant:{default:"bg-muted text-foreground",danger:"bg-danger/10 text-danger",warning:"bg-warning/10 text-warning",success:"bg-success/10 text-success",info:"bg-info/10 text-info"}},defaultVariants:{variant:"default"}}),KN=classVarianceAuthority.cva("",{variants:{variant:{default:"",danger:"bg-danger text-danger-foreground hover:bg-danger/90",warning:"bg-warning text-warning-foreground hover:bg-warning/90",success:"bg-success text-success-foreground hover:bg-success/90",info:"bg-info text-info-foreground hover:bg-info/90"}},defaultVariants:{variant:"default"}}),GN=$__namespace.createContext(null),$N={default:lucideReact.HelpCircle,danger:lucideReact.XCircle,warning:lucideReact.AlertTriangle,success:lucideReact.CheckCircle,info:lucideReact.Info},Pl=$__namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a,description:n,confirmText:o="Confirm",cancelText:s="Cancel",onConfirm:l,onCancel:c,showIcon:d=true,icon:u,variant:m="default",loading:f=false,disabled:p=false,className:b},x)=>{let[g,v]=$__namespace.useState(false),[y,w]=$__namespace.useState(false),[h,C]=$__namespace.useState(false),R=e!==void 0,M=R?e:g,T=$N[m||"default"],E=$__namespace.useId(),N=$__namespace.useId();$__namespace.useEffect(()=>{C(true);},[]);let P=$__namespace.useCallback(V=>{R||v(V),t?.(V);},[R,t]);$__namespace.useEffect(()=>(M&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[M]);let k=async()=>{if(l){let V=l();if(V instanceof Promise){w(true);try{await V;}finally{w(false);}}}P(false);},L=()=>{c?.(),P(false);},H=f||y,S=r?$__namespace.isValidElement(r)?$__namespace.cloneElement(r,{onClick:V=>{r.props.onClick?.(V),P(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>P(true),children:r}):null,D=()=>!h||!M?null:$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{"data-state":M?"open":"closed",className:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:x,role:"alertdialog","aria-modal":"true","aria-labelledby":E,"aria-describedby":n?N:void 0,"data-state":M?"open":"closed",className:i("fixed left-[50%] top-[50%] z-50 grid w-full max-w-md translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",b),children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:items-start",children:[d&&jsxRuntime.jsx("div",{className:i(Cb({variant:m})),children:u||jsxRuntime.jsx(T,{className:"h-6 w-6"})}),jsxRuntime.jsxs("div",{className:"flex flex-col space-y-2 text-center sm:text-left",children:[jsxRuntime.jsx("h2",{id:E,className:"text-lg font-semibold",children:a}),n&&jsxRuntime.jsx("p",{id:N,className:"text-sm text-muted-foreground",children:n})]})]}),jsxRuntime.jsxs("div",{className:"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",children:[jsxRuntime.jsx("button",{type:"button",className:i(mr({variant:"bordered"})),onClick:L,disabled:H,children:s}),jsxRuntime.jsx("button",{type:"button",className:i(mr(),KN({variant:m}),H&&"opacity-50 cursor-not-allowed"),onClick:k,disabled:p||H,children:H?jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("svg",{className:"h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Loading..."]}):o})]})]})]}),document.body);return jsxRuntime.jsxs(GN.Provider,{value:{open:M,onOpenChange:P,titleId:E,descriptionId:N},children:[S,D()]})});Pl.displayName="ConfirmDialog";function _N(){let[e,t]=$__namespace.useState({open:false,options:null,resolve:null}),r=$__namespace.useCallback(l=>new Promise(c=>{t({open:true,options:l,resolve:c});}),[]),a=$__namespace.useCallback(()=>{e.resolve?.(true),t({open:false,options:null,resolve:null});},[e.resolve]),n=$__namespace.useCallback(()=>{e.resolve?.(false),t({open:false,options:null,resolve:null});},[e.resolve]),o=$__namespace.useCallback(l=>{l||(e.resolve?.(false),t({open:false,options:null,resolve:null}));},[e.resolve]),s=$__namespace.useMemo(()=>e.options?jsxRuntime.jsx(Pl,{open:e.open,onOpenChange:o,title:e.options.title,description:e.options.description,confirmText:e.options.confirmText,cancelText:e.options.cancelText,variant:e.options.variant,onConfirm:a,onCancel:n}):null,[e,a,n,o]);return {confirm:r,ConfirmDialog:s}}var tM=e=>e.map(t=>typeof t=="string"?{src:t}:t),kl=$__namespace.forwardRef(({images:e,open:t,onOpenChange:r,initialIndex:a=0,onIndexChange:n,trigger:o,showThumbnails:s=true,showZoom:l=true,showRotate:c=true,showDownload:d=true,showFullscreen:u=true,showNavigation:m=true,showCounter:f=true,closeOnBackdropClick:p=true,className:b},x)=>{let g=$__namespace.useMemo(()=>tM(e),[e]),[v,y]=$__namespace.useState(a),[w,h]=$__namespace.useState(1),[C,R]=$__namespace.useState(0),[M,T]=$__namespace.useState(false),[E,N]=$__namespace.useState(false),[P,k]=$__namespace.useState({x:0,y:0}),[L,H]=$__namespace.useState({x:0,y:0}),[S,D]=$__namespace.useState(false),V=$__namespace.useRef(null),z=g[v];$__namespace.useEffect(()=>{D(true);},[]),$__namespace.useEffect(()=>{y(a);},[a]),$__namespace.useEffect(()=>{n?.(v);},[v,n]),$__namespace.useEffect(()=>{h(1),R(0),k({x:0,y:0});},[v]),$__namespace.useEffect(()=>(t&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[t]);let G=$__namespace.useCallback(()=>{y(ne=>ne>0?ne-1:g.length-1);},[g.length]),I=$__namespace.useCallback(()=>{y(ne=>ne<g.length-1?ne+1:0);},[g.length]),F=()=>{h(ne=>Math.min(ne+.5,4));},O=()=>{h(ne=>{let rt=Math.max(ne-.5,.5);return rt===1&&k({x:0,y:0}),rt});},Q=()=>{R(ne=>(ne+90)%360);},re=async()=>{if(z)try{let rt=await(await fetch(z.src)).blob(),zr=URL.createObjectURL(rt),bt=document.createElement("a");bt.href=zr,bt.download=z.alt||`image-${v+1}`,document.body.appendChild(bt),bt.click(),document.body.removeChild(bt),URL.revokeObjectURL(zr);}catch{window.open(z.src,"_blank");}},K=async()=>{if(V.current)if(M)try{await document.exitFullscreen(),T(!1);}catch{}else try{await V.current.requestFullscreen(),T(!0);}catch{}},B=ne=>{w>1&&(N(true),H({x:ne.clientX-P.x,y:ne.clientY-P.y}));},W=ne=>{E&&w>1&&k({x:ne.clientX-L.x,y:ne.clientY-L.y});},A=()=>{N(false);},Y=()=>{r?.(false);},j=ne=>{p&&ne.target===ne.currentTarget&&Y();},he=$__namespace.useCallback(ne=>{switch(ne.key){case "ArrowLeft":G();break;case "ArrowRight":I();break;case "Escape":r?.(false);break;case "+":case "=":F();break;case "-":O();break}},[G,I,r]);if($__namespace.useEffect(()=>{if(t)return window.addEventListener("keydown",he),()=>window.removeEventListener("keydown",he)},[t,he]),$__namespace.useEffect(()=>{let ne=()=>{T(!!document.fullscreenElement);};return document.addEventListener("fullscreenchange",ne),()=>document.removeEventListener("fullscreenchange",ne)},[]),g.length===0)return null;let me=o?$__namespace.isValidElement(o)?$__namespace.cloneElement(o,{onClick:ne=>{o.props.onClick?.(ne),r?.(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>r?.(true),children:o}):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[me,!S||!t?null:$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/90 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-state":t?"open":"closed",onClick:j}),jsxRuntime.jsxs("div",{ref:x,className:i("fixed inset-0 z-50 flex flex-col outline-none",b),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-4 text-white",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[f&&g.length>1&&jsxRuntime.jsxs("span",{className:"text-sm",children:[v+1," / ",g.length]}),z?.title&&jsxRuntime.jsx("span",{className:"ml-4 text-sm font-medium",children:z.title})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:O,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom out",children:jsxRuntime.jsx(lucideReact.ZoomOut,{className:"h-5 w-5"})}),jsxRuntime.jsxs("span",{className:"min-w-[3rem] text-center text-sm",children:[Math.round(w*100),"%"]}),jsxRuntime.jsx("button",{onClick:F,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom in",children:jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-5 w-5"})})]}),c&&jsxRuntime.jsx("button",{onClick:Q,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Rotate",children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-5 w-5"})}),d&&jsxRuntime.jsx("button",{onClick:re,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Download",children:jsxRuntime.jsx(lucideReact.Download,{className:"h-5 w-5"})}),u&&jsxRuntime.jsx("button",{onClick:K,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:M?"Exit fullscreen":"Fullscreen",children:M?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-5 w-5"})}),jsxRuntime.jsxs("button",{onClick:Y,className:"rounded-full p-2 hover:bg-white/10 transition-colors ml-2",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}),jsxRuntime.jsxs("div",{ref:V,className:"relative flex-1 flex items-center justify-center overflow-hidden",onMouseDown:B,onMouseMove:W,onMouseUp:A,onMouseLeave:A,children:[m&&g.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:G,className:"absolute left-4 z-10 rounded-full bg-black/50 p-3 text-white hover:bg-black/70 transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-6 w-6"})}),jsxRuntime.jsx("button",{onClick:I,className:"absolute right-4 z-10 rounded-full bg-black/50 p-3 text-white hover:bg-black/70 transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-6 w-6"})})]}),jsxRuntime.jsx("img",{src:z?.src,alt:z?.alt||"",className:i("max-h-full max-w-full object-contain transition-transform duration-200",E?"cursor-grabbing":w>1?"cursor-grab":""),style:{transform:`translate(${P.x}px, ${P.y}px) scale(${w}) rotate(${C}deg)`},draggable:false})]}),z?.description&&jsxRuntime.jsx("div",{className:"p-4 text-center text-white text-sm",children:z.description}),s&&g.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-2 p-4 overflow-x-auto",children:g.map((ne,rt)=>jsxRuntime.jsx("button",{onClick:()=>y(rt),className:i("h-16 w-16 flex-shrink-0 overflow-hidden rounded border-2 transition-all",v===rt?"border-white opacity-100":"border-transparent opacity-50 hover:opacity-75"),children:jsxRuntime.jsx("img",{src:ne.src,alt:ne.alt||`Thumbnail ${rt+1}`,className:"h-full w-full object-cover"})},rt))})]})]}),document.body)]})});kl.displayName="ImageViewer";var Mb=({children:e,images:t,index:r=0,className:a})=>{let[n,o]=$__namespace.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>o(true),className:i("cursor-zoom-in",a),children:e}),jsxRuntime.jsx(kl,{images:t,open:n,onOpenChange:o,initialIndex:r})]})};Mb.displayName="ImageViewerTrigger";var Pb=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted hover:bg-muted/80"},size:{sm:"h-7 w-7",md:"h-9 w-9",lg:"h-11 w-11"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary text-primary-foreground hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/90"},{variant:"solid",color:"success",className:"bg-success text-success-foreground hover:bg-success/90"},{variant:"solid",color:"warning",className:"bg-warning text-warning-foreground hover:bg-warning/90"},{variant:"solid",color:"danger",className:"bg-danger text-danger-foreground hover:bg-danger/90"},{variant:"soft",color:"primary",className:"bg-primary/10 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary/10 text-secondary-foreground hover:bg-secondary/20"},{variant:"soft",color:"success",className:"bg-success/10 text-success hover:bg-success/20"},{variant:"soft",color:"warning",className:"bg-warning/10 text-warning hover:bg-warning/20"},{variant:"soft",color:"danger",className:"bg-danger/10 text-danger hover:bg-danger/20"},{variant:"outline",color:"primary",className:"border-primary text-primary hover:bg-primary/10"},{variant:"outline",color:"success",className:"border-success text-success hover:bg-success/10"},{variant:"outline",color:"warning",className:"border-warning text-warning hover:bg-warning/10"},{variant:"outline",color:"danger",className:"border-danger text-danger hover:bg-danger/10"}],defaultVariants:{variant:"ghost",size:"md",color:"default",radius:"md"}}),kb=$__namespace.forwardRef(({className:e,variant:t,size:r,color:a,radius:n,loading:o,disabled:s,children:l,...c},d)=>jsxRuntime.jsx("button",{ref:d,type:"button",className:i(Pb({variant:t,size:r,color:a,radius:n}),e),disabled:s||o,...c,children:o?jsxRuntime.jsxs("svg",{className:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{width:"1em",height:"1em"},children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):l}));kb.displayName="ActionIcon";var Db=({children:e,container:t,disabled:r=false})=>{let[a,n]=$__namespace.useState(false);if($__namespace.useEffect(()=>{n(true);},[]),r||!a)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let o=null;return typeof t=="string"?o=document.querySelector(t):t instanceof Element?o=t:o=document.body,o?$o.createPortal(e,o):jsxRuntime.jsx(jsxRuntime.Fragment,{children:e})};Db.displayName="Portal";var Sb=classVarianceAuthority.cva("absolute rounded-full border-2 border-background",{variants:{color:{default:"bg-muted-foreground",primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",danger:"bg-danger"},size:{sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3"},position:{"top-right":"top-0 right-0 -translate-y-1/3 translate-x-1/3","top-left":"top-0 left-0 -translate-y-1/3 -translate-x-1/3","bottom-right":"bottom-0 right-0 translate-y-1/3 translate-x-1/3","bottom-left":"bottom-0 left-0 translate-y-1/3 -translate-x-1/3"},ping:{true:"",false:""}},defaultVariants:{color:"primary",size:"md",position:"top-right",ping:false}}),Hb=$__namespace.forwardRef(({className:e,color:t,size:r,position:a,ping:n,content:o,show:s=true,offset:l,style:c,...d},u)=>{if(!s)return null;let m=o!=null;return jsxRuntime.jsxs("span",{ref:u,className:i(Sb({color:t,size:m?void 0:r,position:a,ping:n}),m&&"flex h-auto w-auto min-w-[1.25rem] items-center justify-center px-1 py-0.5 text-[10px] font-medium text-white",e),style:{...c,...l!==void 0&&{transform:`translate(${a?.includes("right")?l:-l}px, ${a?.includes("top")?-l:l}px)`}},...d,children:[n&&jsxRuntime.jsx("span",{className:i("absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",t==="default"&&"bg-muted-foreground",t==="primary"&&"bg-primary",t==="secondary"&&"bg-secondary",t==="success"&&"bg-success",t==="warning"&&"bg-warning",t==="danger"&&"bg-danger")}),o]})});Hb.displayName="Indicator";var Vb=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("relative inline-flex",e),...r,children:t}));Vb.displayName="IndicatorWrapper";var Ab=classVarianceAuthority.cva("relative overflow-auto",{variants:{orientation:{vertical:"",horizontal:"",both:""},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"vertical",size:"md"}}),zb=$__namespace.forwardRef(({className:e,orientation:t,size:r,hideScrollbar:a=false,shadowColor:n="rgba(0, 0, 0, 0.1)",children:o,...s},l)=>{let c=$__namespace.useRef(null),[d,u]=$__namespace.useState({top:false,bottom:false,left:false,right:false});$__namespace.useImperativeHandle(l,()=>c.current);let m=$__namespace.useCallback(()=>{let v=c.current;if(!v)return;let{scrollTop:y,scrollLeft:w,scrollHeight:h,scrollWidth:C,clientHeight:R,clientWidth:M}=v;u({top:y>0,bottom:y<h-R-1,left:w>0,right:w<C-M-1});},[]);$__namespace.useEffect(()=>{let v=c.current;if(v)return m(),v.addEventListener("scroll",m),window.addEventListener("resize",m),()=>{v.removeEventListener("scroll",m),window.removeEventListener("resize",m);}},[m]);let p={sm:"20px",md:"40px",lg:"60px"}[r??"md"],b=t==="vertical"||t==="both",x=t==="horizontal"||t==="both",g={maskImage:[b&&d.top&&`linear-gradient(to bottom, transparent, black ${p})`,b&&d.bottom&&`linear-gradient(to top, transparent, black ${p})`,x&&d.left&&`linear-gradient(to right, transparent, black ${p})`,x&&d.right&&`linear-gradient(to left, transparent, black ${p})`].filter(Boolean).join(", ")||void 0,maskComposite:"intersect",WebkitMaskComposite:"source-in"};return jsxRuntime.jsx("div",{ref:c,className:i(Ab({orientation:t,size:r}),a&&"scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",e),style:g,...s,children:o})});zb.displayName="ScrollShadow";var Bb=classVarianceAuthority.cva("inline-flex items-center justify-center font-mono font-medium",{variants:{variant:{default:"rounded border border-border bg-muted text-muted-foreground shadow-sm",outline:"rounded border border-border text-foreground",ghost:"text-muted-foreground"},size:{sm:"min-w-[1.25rem] px-1 py-0.5 text-[10px]",md:"min-w-[1.5rem] px-1.5 py-0.5 text-xs",lg:"min-w-[2rem] px-2 py-1 text-sm"}},defaultVariants:{variant:"default",size:"md"}}),dM={cmd:"\u2318",command:"\u2318",meta:"\u2318",ctrl:"\u2303",control:"\u2303",alt:"\u2325",option:"\u2325",shift:"\u21E7",enter:"\u21B5",return:"\u21B5",backspace:"\u232B",delete:"\u2326",escape:"\u238B",esc:"\u238B",tab:"\u21E5",space:"\u2423",up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",pageup:"\u21DE",pagedown:"\u21DF",home:"\u2912",end:"\u2913",capslock:"\u21EA"},uM={cmd:"meta",command:"meta",ctrl:"control",alt:"alt",option:"alt",shift:"shift",enter:"enter",return:"enter",backspace:"backspace",delete:"delete",escape:"escape",esc:"escape",tab:"tab",space:" ",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",pageup:"pageup",pagedown:"pagedown",home:"home",end:"end"},mM=e=>{let t=e.toLowerCase();return dM[t]||e.toUpperCase()},ro=e=>{let t=e.toLowerCase();return uM[t]||t},Es=e=>{let t=ro(e);return ["meta","control","alt","shift"].includes(t)},Ob=$__namespace.forwardRef(({className:e,variant:t,size:r,keys:a,children:n,onPress:o,disabled:s,preventDefault:l=true,...c},d)=>{$__namespace.useEffect(()=>{if(!o||!a||s)return;let m=Array.isArray(a)?a:[a],f=m.filter(Es).map(ro),p=m.filter(x=>!Es(x)).map(ro),b=x=>{let g=f.includes("meta")===x.metaKey,v=f.includes("control")===x.ctrlKey,y=f.includes("alt")===x.altKey,w=f.includes("shift")===x.shiftKey,h=p.length===0||p.includes(x.key.toLowerCase());g&&v&&y&&w&&h&&(l&&x.preventDefault(),o(x));};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a,o,s,l]);let u=()=>a?(Array.isArray(a)?a:[a]).map((f,p)=>jsxRuntime.jsxs($__namespace.Fragment,{children:[p>0&&jsxRuntime.jsx("span",{className:"mx-0.5 text-muted-foreground",children:"+"}),jsxRuntime.jsx("span",{children:mM(f)})]},p)):n;return jsxRuntime.jsx("kbd",{ref:d,className:i(Bb({variant:t,size:r}),s&&"opacity-50",e),...c,children:u()})});Ob.displayName="Kbd";function pM(e,t,r={}){let{disabled:a=false,preventDefault:n=true}=r;$__namespace.useEffect(()=>{if(a)return;let o=Array.isArray(e)?e:[e],s=o.filter(Es).map(ro),l=o.filter(d=>!Es(d)).map(ro),c=d=>{let u=s.includes("meta")===d.metaKey,m=s.includes("control")===d.ctrlKey,f=s.includes("alt")===d.altKey,p=s.includes("shift")===d.shiftKey,b=l.length===0||l.includes(d.key.toLowerCase());u&&m&&f&&p&&b&&(n&&d.preventDefault(),t(d));};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[e,t,a,n]);}var Kb=$__namespace.forwardRef(({className:e,size:t,axis:r="both",style:a,...n},o)=>{let s=typeof t=="number"?`${t}px`:t,l={...a,...t?{width:r==="vertical"?void 0:s,height:r==="horizontal"?void 0:s,minWidth:r==="vertical"?void 0:s,minHeight:r==="horizontal"?void 0:s,flexShrink:0}:{flex:"1 1 auto"}};return jsxRuntime.jsx("div",{ref:o,"aria-hidden":"true",className:i(e),style:l,...n})});Kb.displayName="Spacer";var Gb=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-muted",solid:"bg-muted hover:bg-muted/80",ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-7 w-7",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),$b=$__namespace.forwardRef(({className:e,variant:t,size:r,value:a,successDuration:n=2e3,onCopySuccess:o,onCopyError:s,copyIcon:l,successIcon:c,...d},u)=>{let[m,f]=$__namespace.useState(false),p={sm:14,md:16,lg:20}[r??"md"],b=async()=>{try{await navigator.clipboard.writeText(a),f(!0),o?.(),setTimeout(()=>{f(!1);},n);}catch(x){s?.(x);}};return jsxRuntime.jsx("button",{ref:u,type:"button",className:i(Gb({variant:t,size:r}),e),onClick:b,"aria-label":m?"Copied":"Copy to clipboard",...d,children:m?c??jsxRuntime.jsx(lucideReact.Check,{className:"text-success",style:{width:p,height:p}}):l??jsxRuntime.jsx(lucideReact.Copy,{style:{width:p,height:p}})})});$b.displayName="CopyButton";var jb=classVarianceAuthority.cva("flex flex-col bg-background",{variants:{variant:{default:"border rounded-lg",bordered:"border-2 rounded-lg",ghost:""},size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"md"}}),wM=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],CM=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function NM(e,t,r){let a=new Date(e,t,1),n=new Date(e,t+1,0),o=[],s=a.getDay()-r;s<0&&(s+=7);for(let c=s-1;c>=0;c--)o.push(new Date(e,t,-c));for(let c=1;c<=n.getDate();c++)o.push(new Date(e,t,c));let l=42-o.length;for(let c=1;c<=l;c++)o.push(new Date(e,t+1,c));return o}function MM(e,t){let r=[],n=e.getDay()-t;n<0&&(n+=7);let o=new Date(e);o.setDate(e.getDate()-n);for(let s=0;s<7;s++){let l=new Date(o);l.setDate(o.getDate()+s),r.push(l);}return r}function Ss(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Ds(e){return Ss(e,new Date)}function _b(e,t){return e.filter(r=>{let a=new Date(r.start),n=new Date(r.end);return Ss(a,t)||Ss(n,t)||a<t&&n>t})}var Wb=$__namespace.forwardRef(({className:e,variant:t,size:r,events:a=[],view:n="month",onViewChange:o,date:s,onDateChange:l,onEventClick:c,onSlotClick:d,weekStartsOn:u=0,locale:m="en-US",...f},p)=>{let[b,x]=$__namespace.useState(new Date),g=s??b,v=N=>{l?l(N):x(N);},y=u===1?CM:wM,w=()=>{let N=new Date(g);n==="month"?N.setMonth(N.getMonth()-1):n==="week"?N.setDate(N.getDate()-7):N.setDate(N.getDate()-1),v(N);},h=()=>{let N=new Date(g);n==="month"?N.setMonth(N.getMonth()+1):n==="week"?N.setDate(N.getDate()+7):N.setDate(N.getDate()+1),v(N);},C=()=>{v(new Date);},R=()=>n==="day"?g.toLocaleDateString(m,{weekday:"long",year:"numeric",month:"long",day:"numeric"}):g.toLocaleDateString(m,{year:"numeric",month:"long"}),M=()=>{let N=NM(g.getFullYear(),g.getMonth(),u);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col",children:[jsxRuntime.jsx("div",{className:"grid grid-cols-7 border-b",children:y.map(P=>jsxRuntime.jsx("div",{className:"p-2 text-center font-medium text-muted-foreground",children:P},P))}),jsxRuntime.jsx("div",{className:"flex-1 grid grid-cols-7 grid-rows-6",children:N.map((P,k)=>{let L=_b(a,P),H=P.getMonth()===g.getMonth();return jsxRuntime.jsxs("div",{className:i("min-h-[80px] border-b border-r p-1 cursor-pointer hover:bg-accent/50 transition-colors",!H&&"bg-muted/30"),onClick:()=>d?.(P),children:[jsxRuntime.jsx("div",{className:i("flex items-center justify-center w-7 h-7 rounded-full text-sm mb-1",Ds(P)&&"bg-primary text-primary-foreground",!H&&"text-muted-foreground"),children:P.getDate()}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[L.slice(0,3).map(S=>jsxRuntime.jsx("div",{className:"text-xs px-1 py-0.5 rounded truncate cursor-pointer hover:opacity-80",style:{backgroundColor:S.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),c?.(S);},children:S.title},S.id)),L.length>3&&jsxRuntime.jsxs("div",{className:"text-xs text-muted-foreground px-1",children:["+",L.length-3," more"]})]})]},k)})})]})},T=()=>{let N=MM(g,u),P=Array.from({length:24},(k,L)=>L);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[jsxRuntime.jsxs("div",{className:"grid grid-cols-[60px_repeat(7,1fr)] border-b",children:[jsxRuntime.jsx("div",{className:"p-2"}),N.map((k,L)=>jsxRuntime.jsxs("div",{className:i("p-2 text-center border-l",Ds(k)&&"bg-primary/10"),children:[jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground",children:y[L]}),jsxRuntime.jsx("div",{className:i("text-lg font-semibold",Ds(k)&&"text-primary"),children:k.getDate()})]},L))]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_repeat(7,1fr)]",children:P.map(k=>jsxRuntime.jsxs($__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[k.toString().padStart(2,"0"),":00"]}),N.map((L,H)=>{let S=new Date(L);S.setHours(k,0,0,0);let D=a.filter(V=>{let z=new Date(V.start);return Ss(z,L)&&z.getHours()===k});return jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>d?.(S),children:D.map(V=>jsxRuntime.jsx("div",{className:"absolute inset-x-0.5 top-0.5 text-xs px-1 py-0.5 rounded truncate cursor-pointer",style:{backgroundColor:V.color||"hsl(var(--primary))",color:"white"},onClick:z=>{z.stopPropagation(),c?.(V);},children:V.title},V.id))},H)})]},k))})})]})},E=()=>{let N=Array.from({length:24},(k,L)=>L),P=_b(a,g);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[jsxRuntime.jsx("div",{className:"p-4 border-b text-center",children:jsxRuntime.jsx("div",{className:i("inline-flex items-center justify-center w-12 h-12 rounded-full text-2xl font-semibold",Ds(g)&&"bg-primary text-primary-foreground"),children:g.getDate()})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_1fr]",children:N.map(k=>{let L=new Date(g);L.setHours(k,0,0,0);let H=P.filter(S=>new Date(S.start).getHours()===k);return jsxRuntime.jsxs($__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[k.toString().padStart(2,"0"),":00"]}),jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>d?.(L),children:H.map(S=>jsxRuntime.jsx("div",{className:"absolute inset-x-1 top-0.5 text-xs px-2 py-1 rounded truncate cursor-pointer",style:{backgroundColor:S.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),c?.(S);},children:S.title},S.id))})]},k)})})})]})};return jsxRuntime.jsxs("div",{ref:p,className:i(jb({variant:t,size:r,className:e})),...f,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(J,{variant:"bordered",size:"sm",onClick:C,children:"Today"}),jsxRuntime.jsx(J,{variant:"ghost",size:"icon",onClick:w,children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(J,{variant:"ghost",size:"icon",onClick:h,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),jsxRuntime.jsx("h2",{className:"text-lg font-semibold ml-2",children:R()})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-1 border rounded-lg p-1",children:["month","week","day"].map(N=>jsxRuntime.jsx(J,{variant:n===N?"solid":"ghost",size:"sm",onClick:()=>o?.(N),children:N.charAt(0).toUpperCase()+N.slice(1)},N))})]}),n==="month"&&M(),n==="week"&&T(),n==="day"&&E()]})});Wb.displayName="FullCalendar";var no=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"h-48",md:"h-64",lg:"h-96"}},defaultVariants:{size:"md"}}),oo=["hsl(var(--primary))","hsl(var(--chart-1, 220 70% 50%))","hsl(var(--chart-2, 160 60% 45%))","hsl(var(--chart-3, 30 80% 55%))","hsl(var(--chart-4, 280 65% 60%))"],Yb=$__namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=oo,showGrid:o=true,showLegend:s=true,showTooltip:l=true,xAxisKey:c="name",curveType:d="monotone",...u},m)=>jsxRuntime.jsx("div",{ref:m,className:i(no({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.LineChart,{data:r,children:[o&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:c,className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((f,p)=>jsxRuntime.jsx(recharts.Line,{type:d,dataKey:f,stroke:n[p%n.length],strokeWidth:2,dot:{fill:n[p%n.length],strokeWidth:0},activeDot:{r:6}},f))]})})}));Yb.displayName="LineChart";var Ub=$__namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=oo,showGrid:o=true,showLegend:s=true,showTooltip:l=true,xAxisKey:c="name",stacked:d=false,layout:u="horizontal",...m},f)=>jsxRuntime.jsx("div",{ref:f,className:i(no({size:t,className:e})),...m,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.BarChart,{data:r,layout:u,children:[o&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:u==="horizontal"?c:void 0,type:u==="horizontal"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{dataKey:u==="vertical"?c:void 0,type:u==="vertical"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((p,b)=>jsxRuntime.jsx(recharts.Bar,{dataKey:p,fill:n[b%n.length],stackId:d?"stack":void 0,radius:[4,4,0,0]},p))]})})}));Ub.displayName="BarChart";var Xb=$__namespace.forwardRef(({className:e,size:t,data:r,dataKey:a="value",nameKey:n="name",colors:o=oo,innerRadius:s=0,outerRadius:l=80,showLegend:c=true,showTooltip:d=true,showLabels:u=false,...m},f)=>jsxRuntime.jsx("div",{ref:f,className:i(no({size:t,className:e})),...m,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.PieChart,{children:[d&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"}}),c&&jsxRuntime.jsx(recharts.Legend,{}),jsxRuntime.jsx(recharts.Pie,{data:r,dataKey:a,nameKey:n,cx:"50%",cy:"50%",innerRadius:s,outerRadius:l,label:u,labelLine:u,children:r.map((p,b)=>jsxRuntime.jsx(recharts.Cell,{fill:o[b%o.length]},`cell-${b}`))})]})})}));Xb.displayName="PieChart";var qb=$__namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=oo,showGrid:o=true,showLegend:s=true,showTooltip:l=true,xAxisKey:c="name",stacked:d=false,curveType:u="monotone",...m},f)=>jsxRuntime.jsx("div",{ref:f,className:i(no({size:t,className:e})),...m,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.AreaChart,{data:r,children:[o&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:c,className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((p,b)=>jsxRuntime.jsx(recharts.Area,{type:u,dataKey:p,stroke:n[b%n.length],fill:n[b%n.length],fillOpacity:.3,stackId:d?"stack":void 0},p))]})})}));qb.displayName="AreaChart";var Qb=classVarianceAuthority.cva("flex gap-4 overflow-x-auto p-4",{variants:{variant:{default:"bg-muted/30",bordered:"border rounded-lg bg-background",ghost:""}},defaultVariants:{variant:"default"}}),ev=classVarianceAuthority.cva("flex flex-col min-w-[280px] w-[280px] rounded-lg",{variants:{variant:{default:"bg-muted/50",bordered:"border bg-background",ghost:"bg-transparent"}},defaultVariants:{variant:"default"}}),zl=classVarianceAuthority.cva("rounded-lg p-3 cursor-grab active:cursor-grabbing transition-all",{variants:{variant:{default:"bg-background border shadow-sm hover:shadow-md",bordered:"border-2 bg-background hover:border-primary/50",ghost:"bg-muted/50 hover:bg-muted"},isDragging:{true:"opacity-50 scale-[1.02] shadow-lg",false:""}},defaultVariants:{variant:"default",isDragging:false}});function UM({card:e,columnId:t,variant:r,renderCard:a,onCardClick:n}){let{attributes:o,listeners:s,setNodeRef:l,transform:c,transition:d,isDragging:u}=sortable.useSortable({id:e.id,data:{columnId:t}}),m={transform:utilities.CSS.Transform.toString(c),transition:d};return jsxRuntime.jsx("div",{ref:l,style:m,className:i(zl({variant:r,isDragging:u})),onClick:()=>n?.(e,t),...o,...s,children:a?a(e,t):jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"font-medium text-sm truncate",children:e.title}),e.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description})]})]})})}function XM({column:e,variant:t,renderCard:r,onCardClick:a,onAddCard:n,showAddCard:o,columnHeight:s}){return jsxRuntime.jsxs("div",{className:i(ev({variant:t})),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-3 border-b",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[e.color&&jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),jsxRuntime.jsx("h3",{className:"font-semibold text-sm",children:e.title}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground bg-muted px-2 py-0.5 rounded-full",children:e.cards.length})]}),o&&jsxRuntime.jsx(J,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>n?.(e.id),children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}),jsxRuntime.jsx(We,{style:{height:s},children:jsxRuntime.jsxs("div",{className:"p-2 space-y-2",children:[jsxRuntime.jsx(sortable.SortableContext,{items:e.cards.map(l=>l.id),strategy:sortable.verticalListSortingStrategy,children:e.cards.map(l=>jsxRuntime.jsx(UM,{card:l,columnId:e.id,variant:t,renderCard:r,onCardClick:a},l.id))}),e.cards.length===0&&jsxRuntime.jsx("div",{className:"h-20 border-2 border-dashed rounded-lg flex items-center justify-center text-muted-foreground text-sm",children:"Drop here"})]})})]})}var tv=$__namespace.forwardRef(({className:e,variant:t,columns:r,onCardMove:a,onCardClick:n,onAddCard:o,renderCard:s,showAddCard:l=true,columnHeight:c=500,...d},u)=>{let[m,f]=$__namespace.useState(null),[p,b]=$__namespace.useState(null),x=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:8}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),g=h=>r.find(C=>C.cards.some(R=>R.id===h));return jsxRuntime.jsxs(core.DndContext,{sensors:x,collisionDetection:core.closestCorners,onDragStart:h=>{let{active:C}=h,R=g(C.id);if(R){let M=R.cards.find(T=>T.id===C.id);M&&(f(M),b(R.id));}},onDragOver:h=>{let{active:C,over:R}=h;if(!R)return;let M=C.id,T=R.id,E=g(M),N=g(T)||r.find(L=>L.id===T);if(!E||!N||E.id===N.id)return;let P=N.cards.findIndex(L=>L.id===T),k=P===-1?N.cards.length:P;a?.(M,E.id,N.id,k);},onDragEnd:h=>{let{active:C,over:R}=h;if(R&&C.id!==R.id){let M=g(C.id),T=g(R.id)||r.find(E=>E.id===R.id);if(M&&T){let E=T.cards.findIndex(P=>P.id===R.id),N=E===-1?T.cards.length:E;a?.(C.id,M.id,T.id,N);}}f(null),b(null);},children:[jsxRuntime.jsx("div",{ref:u,className:i(Qb({variant:t,className:e})),...d,children:r.map(h=>jsxRuntime.jsx(XM,{column:h,variant:t,renderCard:s,onCardClick:n,onAddCard:o,showAddCard:l,columnHeight:c},h.id))}),jsxRuntime.jsx(core.DragOverlay,{children:m&&p&&jsxRuntime.jsx("div",{className:i(zl({variant:t,isDragging:true})),children:s?s(m,p):jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"font-medium text-sm truncate",children:m.title}),m.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:m.description})]})]})})})]})});tv.displayName="KanbanBoard";var rv=classVarianceAuthority.cva("relative",{variants:{variant:{default:"",bordered:"border rounded-lg p-4",cards:"rounded-lg"}},defaultVariants:{variant:"default"}}),av=$__namespace.createContext(null);function Bl(){let e=$__namespace.useContext(av);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var nv=$__namespace.forwardRef(({className:e,variant:t,children:r,opts:a,plugins:n,orientation:o="horizontal",showArrows:s=true,showDots:l=true,setApi:c,...d},u)=>{let[m,f]=qM__default.default({...a,axis:o==="horizontal"?"x":"y"},n),[p,b]=$__namespace.useState(false),[x,g]=$__namespace.useState(false),[v,y]=$__namespace.useState(0),[w,h]=$__namespace.useState([]),C=$__namespace.useCallback(N=>{N&&(y(N.selectedScrollSnap()),b(N.canScrollPrev()),g(N.canScrollNext()));},[]),R=$__namespace.useCallback(()=>{f?.scrollPrev();},[f]),M=$__namespace.useCallback(()=>{f?.scrollNext();},[f]),T=$__namespace.useCallback(N=>{f?.scrollTo(N);},[f]),E=$__namespace.useCallback(N=>{N.key==="ArrowLeft"?(N.preventDefault(),R()):N.key==="ArrowRight"&&(N.preventDefault(),M());},[R,M]);return $__namespace.useEffect(()=>{!f||!c||c(f);},[f,c]),$__namespace.useEffect(()=>{if(f)return h(f.scrollSnapList()),C(f),f.on("reInit",C),f.on("select",C),()=>{f?.off("select",C);}},[f,C]),jsxRuntime.jsx(av.Provider,{value:{carouselRef:m,api:f,scrollPrev:R,scrollNext:M,canScrollPrev:p,canScrollNext:x,selectedIndex:v,scrollSnaps:w,scrollTo:T},children:jsxRuntime.jsxs("div",{ref:u,className:i(rv({variant:t,className:e})),onKeyDownCapture:E,role:"region","aria-roledescription":"carousel",...d,children:[jsxRuntime.jsx("div",{ref:m,className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:i("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col"),children:r})}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ol,{}),jsxRuntime.jsx(Fl,{})]}),l&&w.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:w.map((N,P)=>jsxRuntime.jsx("button",{className:i("w-2 h-2 rounded-full transition-all",P===v?"bg-primary w-4":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),onClick:()=>T(P),"aria-label":`Go to slide ${P+1}`},P))})]})})});nv.displayName="Carousel";var ov=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex",e),...t}));ov.displayName="CarouselContent";var sv=$__namespace.forwardRef(({className:e,basis:t="basis-full",...r},a)=>jsxRuntime.jsx("div",{ref:a,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 pl-4",t,e),...r}));sv.displayName="CarouselItem";var Ol=$__namespace.forwardRef(({className:e,variant:t="bordered",size:r="icon",...a},n)=>{let{scrollPrev:o,canScrollPrev:s}=Bl();return jsxRuntime.jsxs(J,{ref:n,variant:t,size:r,className:i("absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:o,...a,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Ol.displayName="CarouselPrevious";var Fl=$__namespace.forwardRef(({className:e,variant:t="bordered",size:r="icon",...a},n)=>{let{scrollNext:o,canScrollNext:s}=Bl();return jsxRuntime.jsxs(J,{ref:n,variant:t,size:r,className:i("absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:o,...a,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next slide"})]})});Fl.displayName="CarouselNext";var iv=classVarianceAuthority.cva("flex flex-col bg-popover border rounded-lg shadow-md",{variants:{size:{sm:"w-64 h-72",md:"w-80 h-96",lg:"w-96 h-[480px]"}},defaultVariants:{size:"md"}}),Bs={recent:{icon:"\u{1F550}",name:"Recent"},smileys:{icon:"\u{1F600}",name:"Smileys & Emotion"},people:{icon:"\u{1F44B}",name:"People & Body"},animals:{icon:"\u{1F43B}",name:"Animals & Nature"},food:{icon:"\u{1F354}",name:"Food & Drink"},travel:{icon:"\u{1F697}",name:"Travel & Places"},activities:{icon:"\u26BD",name:"Activities"},objects:{icon:"\u{1F4A1}",name:"Objects"},symbols:{icon:"\u2764\uFE0F",name:"Symbols"},flags:{icon:"\u{1F3F3}\uFE0F",name:"Flags"}},Gl={smileys:["\u{1F600}","\u{1F603}","\u{1F604}","\u{1F601}","\u{1F606}","\u{1F605}","\u{1F923}","\u{1F602}","\u{1F642}","\u{1F643}","\u{1F609}","\u{1F60A}","\u{1F607}","\u{1F970}","\u{1F60D}","\u{1F929}","\u{1F618}","\u{1F617}","\u263A\uFE0F","\u{1F61A}","\u{1F60B}","\u{1F61B}","\u{1F61C}","\u{1F92A}","\u{1F61D}","\u{1F911}","\u{1F917}","\u{1F92D}","\u{1F92B}","\u{1F914}","\u{1F910}","\u{1F928}","\u{1F610}","\u{1F611}","\u{1F636}","\u{1F60F}","\u{1F612}","\u{1F644}","\u{1F62C}","\u{1F925}","\u{1F60C}","\u{1F614}","\u{1F62A}","\u{1F924}","\u{1F634}","\u{1F637}","\u{1F912}","\u{1F915}","\u{1F922}","\u{1F92E}","\u{1F927}","\u{1F975}","\u{1F976}","\u{1F974}","\u{1F635}","\u{1F92F}","\u{1F920}","\u{1F973}","\u{1F978}","\u{1F60E}","\u{1F913}","\u{1F9D0}","\u{1F615}","\u{1F61F}","\u{1F641}","\u2639\uFE0F","\u{1F62E}","\u{1F62F}","\u{1F632}","\u{1F633}","\u{1F97A}","\u{1F626}","\u{1F627}","\u{1F628}","\u{1F630}","\u{1F625}","\u{1F622}","\u{1F62D}","\u{1F631}","\u{1F616}","\u{1F623}","\u{1F61E}","\u{1F613}","\u{1F629}","\u{1F62B}","\u{1F971}","\u{1F624}","\u{1F621}","\u{1F620}","\u{1F92C}","\u{1F608}","\u{1F47F}","\u{1F480}","\u2620\uFE0F","\u{1F4A9}","\u{1F921}","\u{1F479}","\u{1F47A}","\u{1F47B}","\u{1F47D}"],people:["\u{1F44B}","\u{1F91A}","\u{1F590}\uFE0F","\u270B","\u{1F596}","\u{1F44C}","\u{1F90C}","\u{1F90F}","\u270C\uFE0F","\u{1F91E}","\u{1F91F}","\u{1F918}","\u{1F919}","\u{1F448}","\u{1F449}","\u{1F446}","\u{1F595}","\u{1F447}","\u261D\uFE0F","\u{1F44D}","\u{1F44E}","\u270A","\u{1F44A}","\u{1F91B}","\u{1F91C}","\u{1F44F}","\u{1F64C}","\u{1F450}","\u{1F932}","\u{1F91D}","\u{1F64F}","\u270D\uFE0F","\u{1F485}","\u{1F933}","\u{1F4AA}","\u{1F9BE}","\u{1F9BF}","\u{1F9B5}","\u{1F9B6}","\u{1F442}","\u{1F9BB}","\u{1F443}","\u{1F9E0}","\u{1FAC0}","\u{1FAC1}","\u{1F9B7}","\u{1F9B4}","\u{1F440}","\u{1F441}\uFE0F","\u{1F445}","\u{1F444}","\u{1F476}","\u{1F9D2}","\u{1F466}","\u{1F467}","\u{1F9D1}","\u{1F471}","\u{1F468}","\u{1F9D4}","\u{1F469}","\u{1F9D3}","\u{1F474}","\u{1F475}","\u{1F64D}","\u{1F64E}","\u{1F645}","\u{1F646}","\u{1F481}","\u{1F64B}","\u{1F9CF}","\u{1F647}","\u{1F926}","\u{1F937}","\u{1F46E}","\u{1F575}\uFE0F","\u{1F482}","\u{1F977}","\u{1F477}","\u{1F934}","\u{1F478}"],animals:["\u{1F436}","\u{1F431}","\u{1F42D}","\u{1F439}","\u{1F430}","\u{1F98A}","\u{1F43B}","\u{1F43C}","\u{1F428}","\u{1F42F}","\u{1F981}","\u{1F42E}","\u{1F437}","\u{1F43D}","\u{1F438}","\u{1F435}","\u{1F648}","\u{1F649}","\u{1F64A}","\u{1F412}","\u{1F414}","\u{1F427}","\u{1F426}","\u{1F424}","\u{1F423}","\u{1F425}","\u{1F986}","\u{1F985}","\u{1F989}","\u{1F987}","\u{1F43A}","\u{1F417}","\u{1F434}","\u{1F984}","\u{1F41D}","\u{1FAB1}","\u{1F41B}","\u{1F98B}","\u{1F40C}","\u{1F41E}","\u{1F41C}","\u{1FAB0}","\u{1FAB2}","\u{1FAB3}","\u{1F99F}","\u{1F997}","\u{1F577}\uFE0F","\u{1F578}\uFE0F","\u{1F982}","\u{1F422}","\u{1F40D}","\u{1F98E}","\u{1F996}","\u{1F995}","\u{1F419}","\u{1F991}","\u{1F990}","\u{1F99E}","\u{1F980}","\u{1F421}","\u{1F420}","\u{1F41F}","\u{1F42C}","\u{1F433}","\u{1F40B}","\u{1F988}","\u{1F40A}","\u{1F405}","\u{1F406}","\u{1F993}","\u{1F98D}","\u{1F9A7}","\u{1F9A3}","\u{1F418}","\u{1F99B}","\u{1F98F}","\u{1F42A}","\u{1F42B}","\u{1F992}","\u{1F998}"],food:["\u{1F347}","\u{1F348}","\u{1F349}","\u{1F34A}","\u{1F34B}","\u{1F34C}","\u{1F34D}","\u{1F96D}","\u{1F34E}","\u{1F34F}","\u{1F350}","\u{1F351}","\u{1F352}","\u{1F353}","\u{1FAD0}","\u{1F95D}","\u{1F345}","\u{1FAD2}","\u{1F965}","\u{1F951}","\u{1F346}","\u{1F954}","\u{1F955}","\u{1F33D}","\u{1F336}\uFE0F","\u{1FAD1}","\u{1F952}","\u{1F96C}","\u{1F966}","\u{1F9C4}","\u{1F9C5}","\u{1F344}","\u{1F95C}","\u{1F330}","\u{1F35E}","\u{1F950}","\u{1F956}","\u{1FAD3}","\u{1F968}","\u{1F96F}","\u{1F95E}","\u{1F9C7}","\u{1F9C0}","\u{1F356}","\u{1F357}","\u{1F969}","\u{1F953}","\u{1F354}","\u{1F35F}","\u{1F355}","\u{1F32D}","\u{1F96A}","\u{1F32E}","\u{1F32F}","\u{1FAD4}","\u{1F959}","\u{1F9C6}","\u{1F95A}","\u{1F373}","\u{1F958}","\u{1F372}","\u{1FAD5}","\u{1F963}","\u{1F957}","\u{1F37F}","\u{1F9C8}","\u{1F9C2}","\u{1F96B}","\u{1F371}","\u{1F358}","\u{1F359}","\u{1F35A}","\u{1F35B}","\u{1F35C}","\u{1F35D}","\u{1F360}","\u{1F362}","\u{1F363}","\u{1F364}","\u{1F365}"],travel:["\u{1F697}","\u{1F695}","\u{1F699}","\u{1F68C}","\u{1F68E}","\u{1F3CE}\uFE0F","\u{1F693}","\u{1F691}","\u{1F692}","\u{1F690}","\u{1F6FB}","\u{1F69A}","\u{1F69B}","\u{1F69C}","\u{1F9AF}","\u{1F9BD}","\u{1F9BC}","\u{1F6F4}","\u{1F6B2}","\u{1F6F5}","\u{1F3CD}\uFE0F","\u{1F6FA}","\u{1F6A8}","\u{1F694}","\u{1F68D}","\u{1F698}","\u{1F696}","\u{1F6A1}","\u{1F6A0}","\u{1F69F}","\u{1F683}","\u{1F68B}","\u{1F69E}","\u{1F69D}","\u{1F684}","\u{1F685}","\u{1F688}","\u{1F682}","\u{1F686}","\u{1F687}","\u{1F68A}","\u{1F689}","\u2708\uFE0F","\u{1F6EB}","\u{1F6EC}","\u{1F6E9}\uFE0F","\u{1F4BA}","\u{1F6F0}\uFE0F","\u{1F680}","\u{1F6F8}","\u{1F681}","\u{1F6F6}","\u26F5","\u{1F6A4}","\u{1F6E5}\uFE0F","\u{1F6F3}\uFE0F","\u26F4\uFE0F","\u{1F6A2}","\u2693","\u{1FA9D}","\u26FD","\u{1F6A7}","\u{1F6A6}","\u{1F6A5}","\u{1F68F}","\u{1F5FA}\uFE0F","\u{1F5FF}","\u{1F5FD}","\u{1F5FC}","\u{1F3F0}","\u{1F3EF}","\u{1F3DF}\uFE0F","\u{1F3A1}","\u{1F3A2}","\u{1F3A0}","\u26F2","\u26F1\uFE0F","\u{1F3D6}\uFE0F","\u{1F3DD}\uFE0F","\u{1F3DC}\uFE0F"],activities:["\u26BD","\u{1F3C0}","\u{1F3C8}","\u26BE","\u{1F94E}","\u{1F3BE}","\u{1F3D0}","\u{1F3C9}","\u{1F94F}","\u{1F3B1}","\u{1FA80}","\u{1F3D3}","\u{1F3F8}","\u{1F3D2}","\u{1F3D1}","\u{1F94D}","\u{1F3CF}","\u{1FA83}","\u{1F945}","\u26F3","\u{1FA81}","\u{1F3F9}","\u{1F3A3}","\u{1F93F}","\u{1F94A}","\u{1F94B}","\u{1F3BD}","\u{1F6F9}","\u{1F6FC}","\u{1F6F7}","\u26F8\uFE0F","\u{1F94C}","\u{1F3BF}","\u26F7\uFE0F","\u{1F3C2}","\u{1FA82}","\u{1F3CB}\uFE0F","\u{1F93C}","\u{1F938}","\u26F9\uFE0F","\u{1F93A}","\u{1F93E}","\u{1F3CC}\uFE0F","\u{1F3C7}","\u26D1\uFE0F","\u{1F9D8}","\u{1F3C4}","\u{1F3CA}","\u{1F93D}","\u{1F6A3}","\u{1F9D7}","\u{1F6B5}","\u{1F6B4}","\u{1F3C6}","\u{1F947}","\u{1F948}","\u{1F949}","\u{1F3C5}","\u{1F396}\uFE0F","\u{1F3F5}\uFE0F","\u{1F397}\uFE0F","\u{1F3AB}","\u{1F39F}\uFE0F","\u{1F3AA}","\u{1F939}","\u{1F3AD}","\u{1FA70}","\u{1F3A8}","\u{1F3AC}","\u{1F3A4}","\u{1F3A7}","\u{1F3BC}","\u{1F3B9}","\u{1F941}","\u{1FA98}","\u{1F3B7}","\u{1F3BA}","\u{1FA97}","\u{1F3B8}","\u{1FA95}"],objects:["\u231A","\u{1F4F1}","\u{1F4F2}","\u{1F4BB}","\u2328\uFE0F","\u{1F5A5}\uFE0F","\u{1F5A8}\uFE0F","\u{1F5B1}\uFE0F","\u{1F5B2}\uFE0F","\u{1F579}\uFE0F","\u{1F5DC}\uFE0F","\u{1F4BD}","\u{1F4BE}","\u{1F4BF}","\u{1F4C0}","\u{1F4FC}","\u{1F4F7}","\u{1F4F8}","\u{1F4F9}","\u{1F3A5}","\u{1F4FD}\uFE0F","\u{1F39E}\uFE0F","\u{1F4DE}","\u260E\uFE0F","\u{1F4DF}","\u{1F4E0}","\u{1F4FA}","\u{1F4FB}","\u{1F399}\uFE0F","\u{1F39A}\uFE0F","\u{1F39B}\uFE0F","\u{1F9ED}","\u23F1\uFE0F","\u23F2\uFE0F","\u23F0","\u{1F570}\uFE0F","\u231B","\u23F3","\u{1F4E1}","\u{1F50B}","\u{1F50C}","\u{1F4A1}","\u{1F526}","\u{1F56F}\uFE0F","\u{1FA94}","\u{1F9EF}","\u{1F6E2}\uFE0F","\u{1F4B8}","\u{1F4B5}","\u{1F4B4}","\u{1F4B6}","\u{1F4B7}","\u{1FA99}","\u{1F4B0}","\u{1F4B3}","\u{1F48E}","\u2696\uFE0F","\u{1FA9C}","\u{1F9F0}","\u{1FA9B}","\u{1F527}","\u{1F528}","\u2692\uFE0F","\u{1F6E0}\uFE0F","\u26CF\uFE0F","\u{1FA9A}","\u{1F529}","\u2699\uFE0F","\u{1FAA4}","\u{1F9F1}","\u26D3\uFE0F","\u{1F9F2}","\u{1F52B}","\u{1F4A3}","\u{1F9E8}","\u{1FA93}","\u{1F52A}","\u{1F5E1}\uFE0F","\u2694\uFE0F","\u{1F6E1}\uFE0F"],symbols:["\u2764\uFE0F","\u{1F9E1}","\u{1F49B}","\u{1F49A}","\u{1F499}","\u{1F49C}","\u{1F5A4}","\u{1F90D}","\u{1F90E}","\u{1F494}","\u2763\uFE0F","\u{1F495}","\u{1F49E}","\u{1F493}","\u{1F497}","\u{1F496}","\u{1F498}","\u{1F49D}","\u{1F49F}","\u262E\uFE0F","\u271D\uFE0F","\u262A\uFE0F","\u{1F549}\uFE0F","\u2638\uFE0F","\u2721\uFE0F","\u{1F52F}","\u{1F54E}","\u262F\uFE0F","\u2626\uFE0F","\u{1F6D0}","\u26CE","\u2648","\u2649","\u264A","\u264B","\u264C","\u264D","\u264E","\u264F","\u2650","\u2651","\u2652","\u2653","\u{1F194}","\u269B\uFE0F","\u{1F251}","\u2622\uFE0F","\u2623\uFE0F","\u{1F4F4}","\u{1F4F3}","\u{1F236}","\u{1F21A}","\u{1F238}","\u{1F23A}","\u{1F237}\uFE0F","\u2734\uFE0F","\u{1F19A}","\u{1F4AE}","\u{1F250}","\u3299\uFE0F","\u3297\uFE0F","\u{1F234}","\u{1F235}","\u{1F239}","\u{1F232}","\u{1F170}\uFE0F","\u{1F171}\uFE0F","\u{1F18E}","\u{1F191}","\u{1F17E}\uFE0F","\u{1F198}","\u274C","\u2B55","\u{1F6D1}","\u26D4","\u{1F4DB}","\u{1F6AB}","\u{1F4AF}","\u{1F4A2}","\u2668\uFE0F"],flags:["\u{1F3F3}\uFE0F","\u{1F3F4}","\u{1F3C1}","\u{1F6A9}","\u{1F3F3}\uFE0F\u200D\u{1F308}","\u{1F3F3}\uFE0F\u200D\u26A7\uFE0F","\u{1F1FA}\u{1F1F3}","\u{1F1E6}\u{1F1EB}","\u{1F1E6}\u{1F1F1}","\u{1F1E9}\u{1F1FF}","\u{1F1E6}\u{1F1F8}","\u{1F1E6}\u{1F1E9}","\u{1F1E6}\u{1F1F4}","\u{1F1E6}\u{1F1EE}","\u{1F1E6}\u{1F1F6}","\u{1F1E6}\u{1F1EC}","\u{1F1E6}\u{1F1F7}","\u{1F1E6}\u{1F1F2}","\u{1F1E6}\u{1F1FC}","\u{1F1E6}\u{1F1FA}","\u{1F1E6}\u{1F1F9}","\u{1F1E6}\u{1F1FF}","\u{1F1E7}\u{1F1F8}","\u{1F1E7}\u{1F1ED}","\u{1F1E7}\u{1F1E9}","\u{1F1E7}\u{1F1E7}","\u{1F1E7}\u{1F1FE}","\u{1F1E7}\u{1F1EA}","\u{1F1E7}\u{1F1FF}","\u{1F1E7}\u{1F1EF}","\u{1F1E7}\u{1F1F2}","\u{1F1E7}\u{1F1F9}","\u{1F1E7}\u{1F1F4}","\u{1F1E7}\u{1F1E6}","\u{1F1E7}\u{1F1FC}","\u{1F1E7}\u{1F1F7}","\u{1F1E7}\u{1F1F3}","\u{1F1E7}\u{1F1EC}","\u{1F1E7}\u{1F1EB}","\u{1F1E7}\u{1F1EE}","\u{1F1E8}\u{1F1FB}","\u{1F1F0}\u{1F1ED}","\u{1F1E8}\u{1F1F2}","\u{1F1E8}\u{1F1E6}","\u{1F1E8}\u{1F1EB}","\u{1F1F9}\u{1F1E9}","\u{1F1E8}\u{1F1F1}","\u{1F1E8}\u{1F1F3}","\u{1F1E8}\u{1F1F4}","\u{1F1F0}\u{1F1F2}","\u{1F1E8}\u{1F1EC}","\u{1F1E8}\u{1F1E9}","\u{1F1E8}\u{1F1F7}","\u{1F1ED}\u{1F1F7}","\u{1F1E8}\u{1F1FA}","\u{1F1E8}\u{1F1FE}","\u{1F1E8}\u{1F1FF}","\u{1F1E9}\u{1F1F0}","\u{1F1E9}\u{1F1EF}","\u{1F1E9}\u{1F1F2}","\u{1F1E9}\u{1F1F4}","\u{1F1EA}\u{1F1E8}","\u{1F1EA}\u{1F1EC}","\u{1F1F8}\u{1F1FB}","\u{1F1EC}\u{1F1F6}","\u{1F1EA}\u{1F1F7}","\u{1F1EA}\u{1F1EA}","\u{1F1EA}\u{1F1F9}","\u{1F1EA}\u{1F1FA}","\u{1F1EB}\u{1F1EF}","\u{1F1EB}\u{1F1EE}","\u{1F1EB}\u{1F1F7}","\u{1F1EC}\u{1F1E6}","\u{1F1EC}\u{1F1F2}","\u{1F1EC}\u{1F1EA}","\u{1F1E9}\u{1F1EA}","\u{1F1EC}\u{1F1ED}","\u{1F1EC}\u{1F1F7}","\u{1F1EC}\u{1F1F9}","\u{1F1EC}\u{1F1F3}"]},lv=$__namespace.forwardRef(({className:e,size:t,onEmojiSelect:r,recentEmojis:a=[],defaultCategory:n="smileys",showSearch:o=true,showCategories:s=true,...l},c)=>{let[d,u]=$__namespace.useState(a.length>0?"recent":n),[m,f]=$__namespace.useState(""),b=m?Object.values(Gl).flat().filter(g=>g.toLowerCase().includes(m.toLowerCase())):d==="recent"?a:Gl[d]||[],x=g=>{r?.(g);};return jsxRuntime.jsxs("div",{ref:c,className:i(iv({size:t,className:e})),...l,children:[o&&jsxRuntime.jsx("div",{className:"p-2 border-b",children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(lucideReact.Search,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),jsxRuntime.jsx(ko,{placeholder:"Search emojis...",value:m,onChange:g=>f(g.target.value),className:"pl-8 h-8"})]})}),s&&!m&&jsxRuntime.jsx("div",{className:"flex border-b px-1",children:Object.entries(Bs).map(([g,{icon:v}])=>g==="recent"&&a.length===0?null:jsxRuntime.jsx("button",{className:i("flex-1 p-2 text-lg hover:bg-accent rounded transition-colors",d===g&&"bg-accent"),onClick:()=>u(g),title:Bs[g].name,children:v},g))}),!m&&jsxRuntime.jsx("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground",children:Bs[d].name}),jsxRuntime.jsx(We,{className:"flex-1",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-8 gap-1 p-2",children:[b.map((g,v)=>jsxRuntime.jsx("button",{className:"w-8 h-8 flex items-center justify-center text-xl hover:bg-accent rounded transition-colors",onClick:()=>x(g),children:g},`${g}-${v}`)),b.length===0&&jsxRuntime.jsx("div",{className:"col-span-8 py-8 text-center text-muted-foreground text-sm",children:"No emojis found"})]})})]})});lv.displayName="EmojiPicker";var cv=classVarianceAuthority.cva("flex flex-col border rounded-lg bg-background overflow-hidden",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-transparent"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),kT=classVarianceAuthority.cva("flex flex-wrap items-center gap-0.5 p-1 border-b",{variants:{size:{sm:"p-0.5",md:"p-1",lg:"p-1.5"}},defaultVariants:{size:"md"}}),ET=classVarianceAuthority.cva("flex-1 overflow-auto prose prose-sm max-w-none dark:prose-invert [&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[inherit] [&_.ProseMirror.is-editor-empty:first-child::before]:text-muted-foreground [&_.ProseMirror.is-editor-empty:first-child::before]:content-[attr(data-placeholder)] [&_.ProseMirror.is-editor-empty:first-child::before]:float-left [&_.ProseMirror.is-editor-empty:first-child::before]:pointer-events-none [&_.ProseMirror.is-editor-empty:first-child::before]:h-0",{variants:{size:{sm:"min-h-[100px] [&_.ProseMirror]:p-2 text-sm",md:"min-h-[150px] [&_.ProseMirror]:p-3 text-sm",lg:"min-h-[200px] [&_.ProseMirror]:p-4 text-base"}},defaultVariants:{size:"md"}}),Ue=({icon:e,title:t,isActive:r,onClick:a,disabled:n})=>jsxRuntime.jsxs($r,{children:[jsxRuntime.jsx(_r,{asChild:true,children:jsxRuntime.jsx(J,{type:"button",variant:r?"solid":"ghost",size:"icon",className:"h-7 w-7",onClick:a,disabled:n,children:e})}),jsxRuntime.jsx(jr,{side:"top",className:"text-xs",children:t})]}),dv=$__namespace.forwardRef(({className:e,variant:t,size:r,value:a="",onChange:n,placeholder:o="Start writing...",readOnly:s=false,showToolbar:l=true,minHeight:c,maxHeight:d,onEditorReady:u,...m},f)=>{let p=react.useEditor({extensions:[oT__default.default.configure({heading:{levels:[1,2,3]}}),sT__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-primary underline"}}),iT__default.default,lT__default.default.configure({types:["heading","paragraph"]}),cT__default.default.configure({placeholder:o})],content:a,editable:!s,onUpdate:({editor:x})=>{n?.(x.getHTML());},onCreate:({editor:x})=>{u?.(x);}});$__namespace.useEffect(()=>{p&&a!==p.getHTML()&&p.commands.setContent(a);},[a,p]),$__namespace.useEffect(()=>{p&&p.setEditable(!s);},[s,p]);let b=()=>{if(!p)return;let x=p.getAttributes("link").href,g=window.prompt("URL",x);if(g!==null){if(g===""){p.chain().focus().extendMarkRange("link").unsetLink().run();return}p.chain().focus().extendMarkRange("link").setLink({href:g}).run();}};return p?jsxRuntime.jsx(Gr,{children:jsxRuntime.jsxs("div",{ref:f,className:i(cv({variant:t,size:r,className:e})),...m,children:[l&&!s&&jsxRuntime.jsxs("div",{className:i(kT({size:r})),children:[jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.Undo,{className:"h-4 w-4"}),title:"Undo",onClick:()=>p.chain().focus().undo().run(),disabled:!p.can().undo()}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.Redo,{className:"h-4 w-4"}),title:"Redo",onClick:()=>p.chain().focus().redo().run(),disabled:!p.can().redo()}),jsxRuntime.jsx(Kr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.Heading1,{className:"h-4 w-4"}),title:"Heading 1",isActive:p.isActive("heading",{level:1}),onClick:()=>p.chain().focus().toggleHeading({level:1}).run()}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.Heading2,{className:"h-4 w-4"}),title:"Heading 2",isActive:p.isActive("heading",{level:2}),onClick:()=>p.chain().focus().toggleHeading({level:2}).run()}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.Heading3,{className:"h-4 w-4"}),title:"Heading 3",isActive:p.isActive("heading",{level:3}),onClick:()=>p.chain().focus().toggleHeading({level:3}).run()}),jsxRuntime.jsx(Kr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.Bold,{className:"h-4 w-4"}),title:"Bold (Ctrl+B)",isActive:p.isActive("bold"),onClick:()=>p.chain().focus().toggleBold().run()}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.Italic,{className:"h-4 w-4"}),title:"Italic (Ctrl+I)",isActive:p.isActive("italic"),onClick:()=>p.chain().focus().toggleItalic().run()}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.Underline,{className:"h-4 w-4"}),title:"Underline (Ctrl+U)",isActive:p.isActive("underline"),onClick:()=>p.chain().focus().toggleUnderline().run()}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.Strikethrough,{className:"h-4 w-4"}),title:"Strikethrough",isActive:p.isActive("strike"),onClick:()=>p.chain().focus().toggleStrike().run()}),jsxRuntime.jsx(Kr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.List,{className:"h-4 w-4"}),title:"Bullet List",isActive:p.isActive("bulletList"),onClick:()=>p.chain().focus().toggleBulletList().run()}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.ListOrdered,{className:"h-4 w-4"}),title:"Numbered List",isActive:p.isActive("orderedList"),onClick:()=>p.chain().focus().toggleOrderedList().run()}),jsxRuntime.jsx(Kr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.AlignLeft,{className:"h-4 w-4"}),title:"Align Left",isActive:p.isActive({textAlign:"left"}),onClick:()=>p.chain().focus().setTextAlign("left").run()}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.AlignCenter,{className:"h-4 w-4"}),title:"Align Center",isActive:p.isActive({textAlign:"center"}),onClick:()=>p.chain().focus().setTextAlign("center").run()}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.AlignRight,{className:"h-4 w-4"}),title:"Align Right",isActive:p.isActive({textAlign:"right"}),onClick:()=>p.chain().focus().setTextAlign("right").run()}),jsxRuntime.jsx(Kr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.Quote,{className:"h-4 w-4"}),title:"Blockquote",isActive:p.isActive("blockquote"),onClick:()=>p.chain().focus().toggleBlockquote().run()}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.Code,{className:"h-4 w-4"}),title:"Code Block",isActive:p.isActive("codeBlock"),onClick:()=>p.chain().focus().toggleCodeBlock().run()}),jsxRuntime.jsx(Kr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.Link,{className:"h-4 w-4"}),title:"Insert Link",isActive:p.isActive("link"),onClick:b}),jsxRuntime.jsx(Ue,{icon:jsxRuntime.jsx(lucideReact.Unlink,{className:"h-4 w-4"}),title:"Remove Link",onClick:()=>p.chain().focus().unsetLink().run(),disabled:!p.isActive("link")})]}),jsxRuntime.jsx(react.EditorContent,{editor:p,className:i(ET({size:r})),style:{minHeight:c,maxHeight:d}})]})}):null});dv.displayName="RichTextEditor";var mv=classVarianceAuthority.cva("flex flex-col border rounded-lg bg-background overflow-hidden",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-none bg-transparent"}},defaultVariants:{variant:"default"}});function zT(e,t,r){return LT.centerCrop(LT.makeAspectCrop({unit:"%",width:90},r,e,t),e,t)}async function uv(e,t,r=0,a=1){let n=document.createElement("canvas"),o=n.getContext("2d");if(!o)return null;let s=e.naturalWidth/e.width,l=e.naturalHeight/e.height,c=window.devicePixelRatio||1;n.width=Math.floor(t.width*s*c),n.height=Math.floor(t.height*l*c),o.scale(c,c),o.imageSmoothingQuality="high";let d=t.x*s,u=t.y*l,m=r*Math.PI/180,f=e.naturalWidth/2,p=e.naturalHeight/2;return o.save(),o.translate(-d,-u),o.translate(f,p),o.rotate(m),o.scale(a,a),o.translate(-f,-p),o.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),o.restore(),new Promise(b=>{n.toBlob(x=>{b(x);},"image/png");})}var pv=$__namespace.forwardRef(({className:e,variant:t,src:r,aspectRatio:a,onCropChange:n,onCropComplete:o,showZoom:s=true,showRotation:l=true,minZoom:c=1,maxZoom:d=3,circularCrop:u=false,initialCrop:m,...f},p)=>{let b=$__namespace.useRef(null),[x,g]=$__namespace.useState(),[v,y]=$__namespace.useState(),[w,h]=$__namespace.useState(1),[C,R]=$__namespace.useState(0),M=P=>{let{width:k,height:L}=P.currentTarget;if(a){let H=zT(k,L,a);g(H);}else g(m||{unit:"%",x:10,y:10,width:80,height:80});},T=P=>{g(P),n?.(P);},E=async P=>{if(y(P),o&&b.current&&P.width&&P.height){let k=await uv(b.current,P,C,w);o(k);}},N=()=>{R(P=>(P+90)%360);};return $__namespace.useEffect(()=>{v&&b.current&&o&&uv(b.current,v,C,w).then(P=>{o(P);});},[w,C,v,o]),jsxRuntime.jsxs("div",{ref:p,className:i(mv({variant:t,className:e})),...f,children:[jsxRuntime.jsx("div",{className:"flex-1 flex items-center justify-center p-4 bg-muted/30 min-h-[300px]",children:jsxRuntime.jsx(LT__default.default,{crop:x,onChange:T,onComplete:E,aspect:a,circularCrop:u,className:"max-h-[400px]",children:jsxRuntime.jsx("img",{ref:b,src:r,alt:"Crop preview",onLoad:M,style:{transform:`scale(${w}) rotate(${C}deg)`,maxHeight:"400px"}})})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 p-3 border-t",children:[s&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[jsxRuntime.jsx(lucideReact.ZoomOut,{className:"h-4 w-4 text-muted-foreground"}),jsxRuntime.jsx(Yo,{value:[w],onValueChange:([P])=>h(P),min:c,max:d,step:.1,className:"flex-1"}),jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-4 w-4 text-muted-foreground"})]}),l&&jsxRuntime.jsx(J,{variant:"bordered",size:"icon",onClick:N,children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-4 w-4"})})]})]})});pv.displayName="ImageCropper";var Wl=classVarianceAuthority.cva("inline-block",{variants:{variant:{default:"",bordered:"border rounded-lg p-2",card:"border rounded-lg p-4 bg-card shadow-sm"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),FT={sm:96,md:128,lg:192},gv=$__namespace.forwardRef(({className:e,variant:t,size:r,value:a,qrSize:n,fgColor:o="currentColor",bgColor:s="transparent",level:l="M",includeMargin:c=false,title:d,logo:u,logoSize:m=40,logoPadding:f=4,logoBackgroundColor:p="white",...b},x)=>{let g=n??FT[r??"md"];return a?jsxRuntime.jsx("div",{ref:x,className:i(Wl({variant:t,size:r,className:e})),...b,children:jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx(BT__default.default,{value:a,size:g,fgColor:o,bgColor:s,level:l,title:d,style:{padding:c?16:0}}),u&&jsxRuntime.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded",style:{padding:f,backgroundColor:p},children:jsxRuntime.jsx("img",{src:u,alt:"Logo",style:{width:m,height:m,objectFit:"contain"}})})]})}):jsxRuntime.jsx("div",{ref:x,className:i(Wl({variant:t,size:r,className:e})),...b,children:jsxRuntime.jsx("div",{className:"flex items-center justify-center bg-muted text-muted-foreground text-xs rounded",style:{width:g,height:g},children:"No data"})})});gv.displayName="QRCode";var bv=({children:e,defaultTheme:t="system",storageKey:r="reever-ui-theme",enableSystem:a=true,disableTransitionOnChange:n=false,attribute:o="class",forcedTheme:s,themes:l=["light","dark"]})=>jsxRuntime.jsx(nextThemes.ThemeProvider,{defaultTheme:t,storageKey:r,enableSystem:a,disableTransitionOnChange:n,attribute:o,forcedTheme:s,themes:l,children:e});bv.displayName="ThemeProvider";var YT=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"",ghost:""},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"ghost",size:"md"}}),vv=$__namespace.forwardRef(({className:e,variant:t="ghost",size:r="md",mode:a="dropdown"},n)=>{let{theme:o,setTheme:s,resolvedTheme:l}=nextThemes.useTheme(),[c,d]=$__namespace.useState(false);$__namespace.useEffect(()=>{d(true);},[]);let u=()=>{let m=["light","dark","system"],p=(m.indexOf(o||"system")+1)%m.length;s(m[p]);};return c?a==="cycle"?jsxRuntime.jsxs(J,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:i("h-9 w-9",e),onClick:u,children:[l==="dark"?jsxRuntime.jsx(lucideReact.Moon,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]}):jsxRuntime.jsxs(Wr,{children:[jsxRuntime.jsx(Yr,{asChild:true,children:jsxRuntime.jsxs(J,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:i("h-9 w-9",e),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),jsxRuntime.jsx(lucideReact.Moon,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),jsxRuntime.jsxs(Ur,{align:"end",children:[jsxRuntime.jsxs(qt,{onClick:()=>s("light"),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}),jsxRuntime.jsxs(qt,{onClick:()=>s("dark"),children:[jsxRuntime.jsx(lucideReact.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),jsxRuntime.jsxs(qt,{onClick:()=>s("system"),children:[jsxRuntime.jsx(lucideReact.Monitor,{className:"mr-2 h-4 w-4"}),"System"]})]})]}):jsxRuntime.jsxs(J,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:i("h-9 w-9",e),disabled:true,children:[jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]})});vv.displayName="ThemeToggle";var hv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),xv=classVarianceAuthority.cva("flex w-full rounded-md border border-input bg-background ring-offset-background file:border-0 file:bg-transparent file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2.5 py-1.5 text-xs",md:"h-10 px-3 py-2 text-sm",lg:"h-12 px-4 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),yv=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Rv=$__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:u,startContent:m,endContent:f,id:p,...b},x)=>{let g=$__namespace.useId(),v=p||g,y=`${v}-description`,w=`${v}-error`,h=o&&a;return jsxRuntime.jsxs("div",{className:i(hv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:v,className:i(yv({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[m&&jsxRuntime.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:m}),jsxRuntime.jsx("input",{ref:x,id:v,"aria-invalid":o,"aria-describedby":h?w:r?y:void 0,"aria-required":n,className:i(xv({size:s,isInvalid:o}),m&&"pl-10",f&&"pr-10",c),...b}),f&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:f})]}),r&&!h&&jsxRuntime.jsx("p",{id:y,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),h&&jsxRuntime.jsx("p",{id:w,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Rv.displayName="TextField";var Nv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),qT=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 text-center [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",{variants:{size:{sm:"h-8 px-8 py-1.5 text-xs",md:"h-10 px-10 py-2 text-sm",lg:"h-12 px-12 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit min-w-24"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),wv=classVarianceAuthority.cva("absolute top-1/2 -translate-y-1/2 flex items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted disabled:opacity-50 disabled:cursor-not-allowed transition-colors",{variants:{size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{size:"md"}}),Cv=classVarianceAuthority.cva("",{variants:{size:{sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),ZT=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Mv=$__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:u,min:m,max:f,step:p=1,value:b,defaultValue:x,onChange:g,showButtons:v=true,formatOptions:y,fullWidth:w=false,disabled:h,id:C,...R},M)=>{let T=$__namespace.useId(),E=C||T,N=`${E}-description`,P=`${E}-error`,[k,L]=$__namespace.useState(x),[H,S]=$__namespace.useState(false),D=b!==void 0?b:k,V=o&&a,z=$__namespace.useCallback(B=>{B!==void 0&&(m!==void 0&&B<m&&(B=m),f!==void 0&&B>f&&(B=f)),b===void 0&&L(B),g?.(B);},[b,m,f,g]),G=()=>{let B=(D??0)+p;z(B);},I=()=>{let B=(D??0)-p;z(B);},F=B=>{let W=B.target.value;if(W==="")z(void 0);else {let A=parseFloat(W);isNaN(A)||z(A);}},O=B=>{B.key==="ArrowUp"?(B.preventDefault(),G()):B.key==="ArrowDown"&&(B.preventDefault(),I());},Q=$__namespace.useMemo(()=>D===void 0?"":y?new Intl.NumberFormat(void 0,y).format(D):D.toString(),[D,y]),re=m!==void 0&&D!==void 0&&D<=m,K=f!==void 0&&D!==void 0&&D>=f;return jsxRuntime.jsxs("div",{className:i(Nv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:E,className:i(ZT({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[v&&jsxRuntime.jsx("button",{type:"button",onClick:I,disabled:h||re,className:i(wv({size:s}),"left-1"),tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:i(Cv({size:s}))})}),jsxRuntime.jsx("input",{ref:M,id:E,type:"text",inputMode:"decimal",value:Q,onChange:F,onKeyDown:O,onFocus:()=>S(true),onBlur:()=>S(false),"aria-invalid":o,"aria-describedby":V?P:r?N:void 0,"aria-required":n,"aria-valuemin":m,"aria-valuemax":f,"aria-valuenow":D,disabled:h,className:i(qT({size:s,isInvalid:o,fullWidth:w}),!v&&"px-3",c),style:{borderColor:H?"var(--color-foreground)":void 0},...R}),v&&jsxRuntime.jsx("button",{type:"button",onClick:G,disabled:h||K,className:i(wv({size:s}),"right-1"),tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:i(Cv({size:s}))})})]}),r&&!V&&jsxRuntime.jsx("p",{id:N,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),V&&jsxRuntime.jsx("p",{id:P,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Mv.displayName="NumberField";var Pv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),eP=classVarianceAuthority.cva("flex w-full rounded-md border border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 pl-8 pr-8 py-1.5 text-xs",md:"h-10 pl-10 pr-10 py-2 text-sm",lg:"h-12 pl-12 pr-12 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),Tv=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),tP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),rP=classVarianceAuthority.cva("absolute top-1/2 -translate-y-1/2 flex items-center justify-center rounded-full text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",{variants:{size:{sm:"h-5 w-5 right-1.5",md:"h-6 w-6 right-2",lg:"h-7 w-7 right-2.5"}},defaultVariants:{size:"md"}}),kv=$__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:u,value:m,defaultValue:f="",onChange:p,onClear:b,onSearch:x,showClearButton:g=true,showSearchIcon:v=true,disabled:y,placeholder:w="Search...",id:h,...C},R)=>{let M=$__namespace.useId(),T=h||M,E=`${T}-description`,N=`${T}-error`,[P,k]=$__namespace.useState(f),L=m!==void 0?m:P,H=o&&a,S=L.length>0,D=G=>{let I=G.target.value;m===void 0&&k(I),p?.(I);},V=()=>{m===void 0&&k(""),p?.(""),b?.();},z=G=>{G.key==="Enter"?(G.preventDefault(),x?.(L)):G.key==="Escape"&&S&&(G.preventDefault(),V());};return jsxRuntime.jsxs("div",{className:i(Pv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:T,className:i(tP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[v&&jsxRuntime.jsx(lucideReact.Search,{className:i(Tv({size:s}),"absolute left-3 top-1/2 -translate-y-1/2")}),jsxRuntime.jsx("input",{ref:R,id:T,type:"search",value:L,onChange:D,onKeyDown:z,placeholder:w,"aria-invalid":o,"aria-describedby":H?N:r?E:void 0,"aria-required":n,disabled:y,className:i(eP({size:s,isInvalid:o}),!v&&"pl-3",!g&&"pr-3",c),...C}),g&&S&&!y&&jsxRuntime.jsx("button",{type:"button",onClick:V,className:i(rP({size:s})),tabIndex:-1,"aria-label":"Clear search",children:jsxRuntime.jsx(lucideReact.X,{className:i(Tv({size:s}))})})]}),r&&!H&&jsxRuntime.jsx("p",{id:E,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),H&&jsxRuntime.jsx("p",{id:N,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});kv.displayName="SearchField";var Ev=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),nP=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-calendar-picker-indicator]:hidden",{variants:{size:{sm:"h-8 pl-3 pr-8 py-1.5 text-xs",md:"h-10 pl-3 pr-10 py-2 text-sm",lg:"h-12 pl-4 pr-12 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),oP=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),sP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Jl=(e,t="yyyy-MM-dd")=>{if(!e)return "";let r=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(r)).replace("MM",a).replace("dd",n)},iP=e=>{if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},Lv=$__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:u,value:m,defaultValue:f,onChange:p,minDate:b,maxDate:x,dateFormat:g="yyyy-MM-dd",showIcon:v=true,fullWidth:y=false,disabled:w,id:h,...C},R)=>{let M=$__namespace.useId(),T=h||M,E=`${T}-description`,N=`${T}-error`,P=$__namespace.useRef(null),k=R||P,[L,H]=$__namespace.useState(f??null),[S,D]=$__namespace.useState(false),V=()=>{!w&&k.current&&k.current.showPicker?.();},z=m!==void 0?m:L,G=o&&a,I=re=>{let K=iP(re.target.value);m===void 0&&H(K),p?.(K);},F=z?Jl(z,"yyyy-MM-dd"):"",O=b?Jl(b,"yyyy-MM-dd"):void 0,Q=x?Jl(x,"yyyy-MM-dd"):void 0;return jsxRuntime.jsxs("div",{className:i(Ev({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:T,className:i(sP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:i("relative",y?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:k,id:T,type:"date",value:F,onChange:I,onFocus:()=>D(true),onBlur:()=>D(false),min:O,max:Q,"aria-invalid":o,"aria-describedby":G?N:r?E:void 0,"aria-required":n,disabled:w,className:i(nP({size:s,isInvalid:o,fullWidth:y}),!v&&"pr-3",c),style:{borderColor:S?"var(--color-foreground)":void 0},...C}),v&&jsxRuntime.jsx("button",{type:"button",onClick:V,disabled:w,className:"absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",tabIndex:-1,"aria-label":"Open calendar",children:jsxRuntime.jsx(lucideReact.Calendar,{className:i(oP({size:s}))})})]}),r&&!G&&jsxRuntime.jsx("p",{id:E,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),G&&jsxRuntime.jsx("p",{id:N,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Lv.displayName="DateField";var Dv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),lP=classVarianceAuthority.cva("inline-flex items-center rounded-md border border-input bg-background transition-colors",{variants:{size:{sm:"h-8 px-2 gap-0.5 text-xs",md:"h-10 px-3 gap-1 text-sm",lg:"h-12 px-4 gap-1.5 text-base"},isInvalid:{true:"border-danger",false:""},disabled:{true:"cursor-not-allowed opacity-50",false:""},fullWidth:{true:"w-full justify-center",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,disabled:false,fullWidth:false}}),cP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Sv=$__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:u,value:m,defaultValue:f,onChange:p,minTime:b,maxTime:x,showSeconds:g=false,hourCycle:v=24,disabled:y,fullWidth:w=false,id:h,...C},R)=>{let M=$__namespace.useId(),T=h||M,E=`${T}-description`,N=`${T}-error`,P=$__namespace.useRef(null),k=$__namespace.useRef(null),L=$__namespace.useRef(null),H=$__namespace.useRef(null),[S,D]=$__namespace.useState(f??null),V=m!==void 0?m:S,z=o&&a,G=_=>v===24?_:_===0?12:_>12?_-12:_,I=_=>_>=12?"PM":"AM",F=(_,ae)=>ae==="AM"?_===12?0:_:_===12?12:_+12,[O,Q]=$__namespace.useState(V?String(G(V.hour)).padStart(2,"0"):""),[re,K]=$__namespace.useState(V?String(V.minute).padStart(2,"0"):""),[B,W]=$__namespace.useState(V?.second!==void 0?String(V.second).padStart(2,"0"):""),[A,Y]=$__namespace.useState(V?I(V.hour):"AM"),[j,he]=$__namespace.useState(false);$__namespace.useEffect(()=>{m!==void 0&&(m?(Q(String(G(m.hour)).padStart(2,"0")),K(String(m.minute).padStart(2,"0")),m.second!==void 0&&W(String(m.second).padStart(2,"0")),Y(I(m.hour))):(Q(""),K(""),W("")));},[m,v]);let me=(_,ae,U,Se)=>{let ie=parseInt(_,10),Ke=parseInt(ae,10),Ge=g?parseInt(U,10):void 0;if(isNaN(ie)||isNaN(Ke)||g&&isNaN(Ge)){m===void 0&&D(null),p?.(null);return}let xe={hour:v===12?F(ie,Se):ie,minute:Ke,...g&&Ge!==void 0&&{second:Ge}};m===void 0&&D(xe),p?.(xe);},Ar=_=>{let ae=_.target.value.replace(/\D/g,"").slice(0,2);Q(ae);let U=v===24?23:12,Se=v===24?0:1;if(ae.length===2){let ie=parseInt(ae,10);ie>=Se&&ie<=U&&(k.current?.focus(),k.current?.select());}},ne=_=>{let ae=_.target.value.replace(/\D/g,"").slice(0,2);if(K(ae),ae.length===2){let U=parseInt(ae,10);U>=0&&U<=59&&(g?(L.current?.focus(),L.current?.select()):v===12&&H.current?.focus());}},rt=_=>{let ae=_.target.value.replace(/\D/g,"").slice(0,2);W(ae),ae.length===2&&v===12&&H.current?.focus();},zr=()=>{if(O){let _=parseInt(O,10),ae=v===24?23:12,Se=Math.min(Math.max(_,v===24?0:1),ae),ie=String(Se).padStart(2,"0");Q(ie),me(ie,re,B,A);}},bt=()=>{if(re){let _=parseInt(re,10),ae=Math.min(Math.max(_,0),59),U=String(ae).padStart(2,"0");K(U),me(O,U,B,A);}},va=()=>{if(B){let _=parseInt(B,10),ae=Math.min(Math.max(_,0),59),U=String(ae).padStart(2,"0");W(U),me(O,re,U,A);}},Br=()=>{let _=A==="AM"?"PM":"AM";Y(_),me(O,re,B,_);},Hn=_=>{let ae=_.key.toLowerCase();ae==="a"?(_.preventDefault(),A!=="AM"&&(Y("AM"),me(O,re,B,"AM"))):ae==="p"?(_.preventDefault(),A!=="PM"&&(Y("PM"),me(O,re,B,"PM"))):ae==="arrowup"||ae==="arrowdown"?(_.preventDefault(),Br()):ae==="arrowleft"&&(_.preventDefault(),g?(L.current?.focus(),L.current?.select()):(k.current?.focus(),k.current?.select()));},At=(_,ae)=>{if(_.key==="ArrowUp"||_.key==="ArrowDown"){_.preventDefault();let U=_.key==="ArrowUp"?1:-1;if(ae==="hour"){let Se=parseInt(O,10)||0,ie=v===24?23:12,Ke=v===24?0:1,Ge=Se+U;Ge>ie&&(Ge=Ke),Ge<Ke&&(Ge=ie);let Or=String(Ge).padStart(2,"0");Q(Or),me(Or,re,B,A);}else if(ae==="minute"){let ie=(parseInt(re,10)||0)+U;ie>59&&(ie=0),ie<0&&(ie=59);let Ke=String(ie).padStart(2,"0");K(Ke),me(O,Ke,B,A);}else if(ae==="second"){let ie=(parseInt(B,10)||0)+U;ie>59&&(ie=0),ie<0&&(ie=59);let Ke=String(ie).padStart(2,"0");W(Ke),me(O,re,Ke,A);}}_.key==="ArrowRight"&&(_.preventDefault(),ae==="hour"?(k.current?.focus(),k.current?.select()):ae==="minute"&&g?(L.current?.focus(),L.current?.select()):(ae==="minute"&&!g&&v===12||ae==="second"&&v===12)&&H.current?.focus()),_.key==="ArrowLeft"&&(_.preventDefault(),ae==="minute"?(P.current?.focus(),P.current?.select()):ae==="second"&&(k.current?.focus(),k.current?.select())),_.key==="Backspace"&&_.currentTarget.value===""&&(ae==="minute"?P.current?.focus():ae==="second"&&k.current?.focus());},ha=i((()=>{switch(s){case "sm":return "w-5";case "lg":return "w-7";default:return "w-6"}})(),"bg-transparent text-center outline-none placeholder:text-muted-foreground tabular-nums",y&&"cursor-not-allowed");return jsxRuntime.jsxs("div",{ref:R,className:i(Dv({size:s}),e),...C,children:[t&&jsxRuntime.jsxs("label",{htmlFor:T,className:i(cP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:i(lP({size:s,isInvalid:o,disabled:y,fullWidth:w}),c),style:{borderColor:j?"var(--color-foreground)":void 0},onFocus:()=>he(true),onBlur:_=>{_.currentTarget.contains(_.relatedTarget)||he(false);},children:[jsxRuntime.jsx("input",{ref:P,id:T,type:"text",inputMode:"numeric",placeholder:v===24?"HH":"hh",value:O,onChange:Ar,onBlur:zr,onKeyDown:_=>At(_,"hour"),onFocus:_=>_.target.select(),"aria-label":"Hour","aria-invalid":o,"aria-describedby":z?N:r?E:void 0,"aria-required":n,disabled:y,className:ha}),jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:k,type:"text",inputMode:"numeric",placeholder:"mm",value:re,onChange:ne,onBlur:bt,onKeyDown:_=>At(_,"minute"),onFocus:_=>_.target.select(),"aria-label":"Minute",disabled:y,className:ha}),g&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:L,type:"text",inputMode:"numeric",placeholder:"ss",value:B,onChange:rt,onBlur:va,onKeyDown:_=>At(_,"second"),onFocus:_=>_.target.select(),"aria-label":"Second",disabled:y,className:ha})]}),v===12&&jsxRuntime.jsx("button",{ref:H,type:"button",onClick:Br,onKeyDown:Hn,disabled:y,className:i("ml-0.5 rounded text-muted-foreground hover:text-foreground focus:outline-none focus:text-foreground transition-colors tabular-nums",s==="sm"?"w-6":s==="lg"?"w-8":"w-7",y&&"cursor-not-allowed"),"aria-label":"AM/PM",children:A})]}),r&&!z&&jsxRuntime.jsx("p",{id:E,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),z&&jsxRuntime.jsx("p",{id:N,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Sv.displayName="TimeField";var Vv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),uP=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono uppercase",{variants:{size:{sm:"h-8 pl-10 pr-3 py-1.5 text-xs",md:"h-10 pl-12 pr-3 py-2 text-sm",lg:"h-12 pl-14 pr-4 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),mP=classVarianceAuthority.cva("absolute left-2 top-1/2 -translate-y-1/2 rounded border border-input overflow-hidden",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),pP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Hv=e=>/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e),fP=e=>(e.startsWith("#")||(e="#"+e),e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.toUpperCase()),Iv=$__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:u,value:m,defaultValue:f="#000000",onChange:p,showSwatch:b=true,showPicker:x=true,allowAlpha:g=false,fullWidth:v=false,disabled:y,id:w,...h},C)=>{let R=$__namespace.useId(),M=w||R,T=`${M}-picker`,E=`${M}-description`,N=`${M}-error`,[P,k]=$__namespace.useState(f),[L,H]=$__namespace.useState(false),S=m!==void 0?m:P,D=o&&a,V=F=>{let O=F.target.value;O&&!O.startsWith("#")&&(O="#"+O),m===void 0&&k(O),p?.(O);},z=F=>{let O=F.target.value.toUpperCase();m===void 0&&k(O),p?.(O);},G=()=>{if(S&&Hv(S)){let F=fP(S);F!==S&&(m===void 0&&k(F),p?.(F));}},I=Hv(S)?S:"#000000";return jsxRuntime.jsxs("div",{className:i(Vv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:M,className:i(pP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[b&&jsxRuntime.jsx("div",{className:i(mP({size:s})),children:x?jsxRuntime.jsxs("label",{htmlFor:T,className:"block h-full w-full cursor-pointer",children:[jsxRuntime.jsx("input",{id:T,type:"color",value:I,onChange:z,disabled:y,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0",tabIndex:-1}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:I}})]}):jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:I}})}),jsxRuntime.jsx("input",{ref:C,id:M,type:"text",value:S,onChange:V,onFocus:()=>H(true),onBlur:()=>{H(false),G();},placeholder:"#000000",maxLength:g?9:7,"aria-invalid":o,"aria-describedby":D?N:r?E:void 0,"aria-required":n,disabled:y,className:i(uP({size:s,isInvalid:o,fullWidth:v}),!b&&"pl-3",c),style:{borderColor:L?"var(--color-foreground)":void 0},...h})]}),r&&!D&&jsxRuntime.jsx("p",{id:E,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),D&&jsxRuntime.jsx("p",{id:N,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Iv.displayName="ColorField";var zv=classVarianceAuthority.cva("inline-flex",{variants:{variant:{default:"",attached:"[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child)]:-ml-px"},orientation:{horizontal:"flex-row",vertical:"flex-col [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-b-none [&>*:last-child]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:ml-0"},spacing:{none:"gap-0",sm:"gap-1",md:"gap-2",lg:"gap-3"}},compoundVariants:[{variant:"attached",spacing:["sm","md","lg"],className:"gap-0"}],defaultVariants:{variant:"default",orientation:"horizontal",spacing:"sm"}}),Bv=$__namespace.createContext({});function bP(){return $__namespace.useContext(Bv)}var Ov=$__namespace.forwardRef(({className:e,variant:t,orientation:r,spacing:a,disabled:n,children:o,...s},l)=>jsxRuntime.jsx(Bv.Provider,{value:{disabled:n},children:jsxRuntime.jsx("div",{ref:l,role:"group",className:i(zv({variant:t,orientation:r,spacing:a,className:e})),...s,children:o})}));Ov.displayName="ButtonGroup";var Kv=classVarianceAuthority.cva("inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted text-muted-foreground hover:bg-muted/80"},size:{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10",xl:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{variant:"ghost",size:"md",radius:"md"}}),Gv=$__namespace.forwardRef(({className:e,variant:t,size:r,radius:a,isLoading:n,disabled:o,children:s,...l},c)=>{let d={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-6 w-6"}[r??"md"];return jsxRuntime.jsx("button",{ref:c,type:"button",disabled:o||n,className:i(Kv({variant:t,size:r,radius:a,className:e})),...l,children:n?jsxRuntime.jsxs("svg",{className:i("animate-spin",d),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):jsxRuntime.jsx("span",{className:i("[&>svg]:h-full [&>svg]:w-full",d),children:s})})});Gv.displayName="IconButton";var _v=classVarianceAuthority.cva("inline-flex items-center",{variants:{variant:{default:"gap-1",compact:"gap-0.5",attached:"[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child)]:-ml-px gap-0"},orientation:{horizontal:"flex-row",vertical:"flex-col [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-b-none [&>*:last-child]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:ml-0"},size:{sm:"",md:"",lg:""},density:{compact:"gap-0.5",regular:"gap-1",spacious:"gap-2"}},defaultVariants:{variant:"default",orientation:"horizontal",size:"md",density:"regular"}}),jv=$__namespace.forwardRef(({className:e,variant:t,orientation:r,size:a,density:n,items:o,maxVisibleItems:s,isDisabled:l,onAction:c,showLabels:d=false,renderItem:u,...m},f)=>{let p=s&&s<o.length?o.slice(0,s):o,b=s&&s<o.length?o.slice(s):[],x={sm:"h-8 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"}[a??"md"],g={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a??"md"],v={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5"}[a??"md"],y=(h,C)=>{C&&C(),c&&c(h);},w=h=>jsxRuntime.jsxs("button",{type:"button",disabled:l||h.isDisabled,onClick:()=>y(h.key,h.onPress),className:i("inline-flex items-center justify-center gap-2 rounded-md transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",d?x:g),"aria-label":h.label,children:[h.icon&&jsxRuntime.jsx("span",{className:v,children:h.icon}),d&&jsxRuntime.jsx("span",{children:h.label})]},h.key);return jsxRuntime.jsxs("div",{ref:f,role:"group",className:i(_v({variant:t,orientation:r,size:a,density:n,className:e})),...m,children:[p.map(h=>u?u(h):w(h)),b.length>0&&jsxRuntime.jsxs(Wr,{children:[jsxRuntime.jsx(Yr,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",disabled:l,className:i("inline-flex items-center justify-center rounded-md transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",g),"aria-label":"More actions",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:v})})}),jsxRuntime.jsx(Ur,{align:"end",children:b.map(h=>jsxRuntime.jsxs(qt,{disabled:h.isDisabled,onClick:()=>y(h.key,h.onPress),children:[h.icon&&jsxRuntime.jsx("span",{className:i(v,"mr-2"),children:h.icon}),h.label]},h.key))})]})]})});jv.displayName="ActionGroup";var Xv=classVarianceAuthority.cva("inline-flex items-center gap-2",{variants:{variant:{neutral:"[--status-color:theme(colors.muted.foreground)]",info:"[--status-color:theme(colors.blue.500)]",positive:"[--status-color:theme(colors.green.500)]",notice:"[--status-color:theme(colors.yellow.500)]",negative:"[--status-color:theme(colors.red.500)]"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{variant:"neutral",size:"md"}}),RP=classVarianceAuthority.cva("rounded-full bg-[--status-color] flex-shrink-0",{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2.5 w-2.5"},pulse:{true:"animate-pulse",false:""}},defaultVariants:{size:"md",pulse:false}}),qv=$__namespace.forwardRef(({className:e,variant:t,size:r,pulse:a=false,hideLabel:n=false,children:o,...s},l)=>jsxRuntime.jsxs("span",{ref:l,role:"status",className:i(Xv({variant:t,size:r,className:e})),...s,children:[jsxRuntime.jsx("span",{className:i(RP({size:r,pulse:a})),"aria-hidden":"true"}),!n&&o&&jsxRuntime.jsx("span",{className:"text-foreground",children:o})]}));qv.displayName="StatusLight";var Jv=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-3 max-w-xs",md:"gap-4 max-w-sm",lg:"gap-5 max-w-md"}},defaultVariants:{size:"md"}}),CP=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"[&>svg]:h-16 [&>svg]:w-16",md:"[&>svg]:h-24 [&>svg]:w-24",lg:"[&>svg]:h-32 [&>svg]:w-32"}},defaultVariants:{size:"md"}}),NP=classVarianceAuthority.cva("font-semibold text-foreground",{variants:{size:{sm:"text-base",md:"text-lg",lg:"text-xl"}},defaultVariants:{size:"md"}}),MP=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Qv=$__namespace.forwardRef(({className:e,size:t,illustration:r,heading:a,description:n,children:o,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:i(Jv({size:t,className:e})),...s,children:[r&&jsxRuntime.jsx("div",{className:i(CP({size:t})),"aria-hidden":"true",children:r}),a&&jsxRuntime.jsx("h3",{className:i(NP({size:t})),children:a}),n&&jsxRuntime.jsx("p",{className:i(MP({size:t})),children:n}),o&&jsxRuntime.jsx("div",{className:"mt-2",children:o})]}));Qv.displayName="IllustratedMessage";var rh=classVarianceAuthority.cva("relative flex gap-3 rounded-lg border p-4 text-sm",{variants:{variant:{info:"border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-100 [&>svg]:text-blue-600 dark:[&>svg]:text-blue-400",success:"border-green-200 bg-green-50 text-green-900 dark:border-green-800 dark:bg-green-950 dark:text-green-100 [&>svg]:text-green-600 dark:[&>svg]:text-green-400",warning:"border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-100 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400",error:"border-red-200 bg-red-50 text-red-900 dark:border-red-800 dark:bg-red-950 dark:text-red-100 [&>svg]:text-red-600 dark:[&>svg]:text-red-400",neutral:"border-border bg-muted text-foreground [&>svg]:text-muted-foreground"}},defaultVariants:{variant:"info"}}),SP={info:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle,neutral:lucideReact.Info},ah=$__namespace.forwardRef(({className:e,variant:t,title:r,icon:a,hideIcon:n=false,isDismissible:o=false,onDismiss:s,actions:l,children:c,...d},u)=>{let[m,f]=$__namespace.useState(true);if(!m)return null;let p=SP[t??"info"],b=()=>{f(false),s?.();};return jsxRuntime.jsxs("div",{ref:u,role:"alert",className:i(rh({variant:t,className:e})),...d,children:[!n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a||jsxRuntime.jsx(p,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[r&&jsxRuntime.jsx("div",{className:"font-medium",children:r}),c&&jsxRuntime.jsx("div",{className:"opacity-90",children:c}),l&&jsxRuntime.jsx("div",{className:"mt-3 flex gap-2",children:l})]}),o&&jsxRuntime.jsx("button",{type:"button",onClick:b,className:"absolute right-2 top-2 rounded-md p-1 opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":"Dismiss",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});ah.displayName="InlineAlert";var nh=classVarianceAuthority.cva("fixed flex items-center gap-2 rounded-lg border bg-background shadow-lg transition-all duration-200",{variants:{position:{bottom:"bottom-4 left-1/2 -translate-x-1/2",top:"top-4 left-1/2 -translate-x-1/2","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4"},size:{sm:"px-3 py-2 gap-1.5",md:"px-4 py-2.5 gap-2",lg:"px-5 py-3 gap-3"}},defaultVariants:{position:"bottom",size:"md"}}),oh=$__namespace.forwardRef(({className:e,position:t,size:r,selectedCount:a=0,isOpen:n=true,onClose:o,showClose:s=true,selectedText:l,children:c,...d},u)=>{if(!n||a===0)return null;let m=()=>typeof l=="function"?l(a):l||`${a} item${a>1?"s":""} selected`;return jsxRuntime.jsxs("div",{ref:u,role:"toolbar","aria-label":"Actions for selected items",className:i(nh({position:t,size:r,className:e})),...d,children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:m()}),jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:c}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("button",{type:"button",onClick:o,className:"rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors","aria-label":"Close action bar",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})]})});oh.displayName="ActionBar";var sh=$__namespace.forwardRef(({className:e,icon:t,children:r,...a},n)=>jsxRuntime.jsxs("button",{ref:n,type:"button",className:i("inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",e),...a,children:[t&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:t}),r]}));sh.displayName="ActionBarButton";var ih=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",subtle:"text-muted-foreground hover:text-foreground hover:bg-muted"},size:{sm:"h-7 w-7",md:"h-8 w-8",lg:"h-9 w-9"}},defaultVariants:{variant:"ghost",size:"md"}});function OP(e){return "items"in e}var lh=$__namespace.forwardRef(({items:e,align:t="end",side:r="bottom",iconOrientation:a="vertical",trigger:n,variant:o,size:s,onAction:l,"aria-label":c="More actions",triggerClassName:d,disabled:u},m)=>{let f={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}[s??"md"],p=a==="horizontal"?lucideReact.MoreHorizontal:lucideReact.MoreVertical,b=g=>{g.onSelect?.(),l?.(g.key);},x=g=>jsxRuntime.jsxs(qt,{disabled:g.isDisabled,onClick:()=>b(g),className:i(g.isDestructive&&"text-destructive focus:text-destructive"),children:[g.icon&&jsxRuntime.jsx("span",{className:"mr-2 h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:g.icon}),jsxRuntime.jsx("span",{className:"flex-1",children:g.label}),g.shortcut&&jsxRuntime.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:g.shortcut})]},g.key);return jsxRuntime.jsxs(Wr,{children:[jsxRuntime.jsx(Yr,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:m,type:"button",disabled:u,className:i(ih({variant:o,size:s}),d),"aria-label":c,children:jsxRuntime.jsx(p,{className:f})})}),jsxRuntime.jsx(Ur,{align:t,side:r,children:e.map((g,v)=>OP(g)?jsxRuntime.jsxs($__namespace.Fragment,{children:[v>0&&jsxRuntime.jsx(zo,{}),g.items.map(x)]},g.key):x(g))})]})});lh.displayName="ActionMenu";var uh=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-1",bordered:"border rounded-lg divide-y",cards:"gap-2"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),mh=classVarianceAuthority.cva("flex items-center gap-3 transition-colors cursor-pointer",{variants:{variant:{default:"rounded-md hover:bg-accent",bordered:"hover:bg-accent",cards:"rounded-lg border hover:border-primary/50 hover:bg-accent/50"},size:{sm:"px-2 py-1.5 text-sm",md:"px-3 py-2",lg:"px-4 py-3 text-lg"},isSelected:{true:"bg-accent",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},compoundVariants:[{variant:"cards",isSelected:true,className:"border-primary bg-accent"}],defaultVariants:{variant:"default",size:"md",isSelected:false,isDisabled:false}});function ph({className:e,variant:t,size:r,items:a,selectedKeys:n,selectionMode:o="none",onSelectionChange:s,allowsDragging:l=false,onReorder:c,showCheckbox:d=false,renderItem:u,emptyContent:m,...f}){let[p,b]=$__namespace.useState(new Set),[x,g]=$__namespace.useState(null),[v,y]=$__namespace.useState(null),w=$__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),h=T=>{if(o==="none")return;let E;o==="single"?E=w.has(T)?new Set:new Set([T]):(E=new Set(w),E.has(T)?E.delete(T):E.add(T)),n||b(E),s?.(E);},C=(T,E)=>{g(E),T.dataTransfer.effectAllowed="move";},R=(T,E)=>{T.preventDefault(),x!==E&&y(E);},M=()=>{if(x&&v&&x!==v){let T=a.findIndex(k=>k.key===x),E=a.findIndex(k=>k.key===v),N=[...a],[P]=N.splice(T,1);N.splice(E,0,P),c?.(N);}g(null),y(null);};return a.length===0?jsxRuntime.jsx("div",{className:i("flex items-center justify-center p-8 text-muted-foreground",e),children:m||"No items"}):jsxRuntime.jsx("div",{role:"listbox","aria-multiselectable":o==="multiple",className:i(uh({variant:t,size:r,className:e})),...f,children:a.map(T=>{let E=w.has(T.key),N=x===T.key,P=v===T.key;return u?jsxRuntime.jsx("div",{role:"option","aria-selected":E,onClick:()=>h(T.key),children:u(T,E)},T.key):jsxRuntime.jsxs("div",{role:"option","aria-selected":E,"aria-disabled":T.isDisabled,draggable:l&&!T.isDisabled,onDragStart:k=>C(k,T.key),onDragOver:k=>R(k,T.key),onDragEnd:M,onClick:()=>!T.isDisabled&&h(T.key),className:i(mh({variant:t,size:r,isSelected:E,isDisabled:T.isDisabled}),N&&"opacity-50",P&&"border-t-2 border-t-primary"),children:[l&&jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground cursor-grab"}),d&&o!=="none"&&jsxRuntime.jsx("div",{className:i("flex h-4 w-4 items-center justify-center rounded border",E?"bg-primary border-primary text-primary-foreground":"border-input"),children:E&&jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),T.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 text-muted-foreground [&>svg]:h-full [&>svg]:w-full",children:T.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:T.label}),T.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:T.description})]})]},T.key)})})}ph.displayName="ListView";var fh=classVarianceAuthority.cva("relative flex w-full touch-none select-none",{variants:{orientation:{horizontal:"items-center",vertical:"flex-col justify-center h-full"},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"horizontal",size:"md"}}),GP=classVarianceAuthority.cva("relative grow overflow-hidden rounded-full bg-secondary",{variants:{orientation:{horizontal:"w-full",vertical:"w-2 h-full"},size:{sm:"h-1",md:"h-2",lg:"h-3"}},compoundVariants:[{orientation:"vertical",size:"sm",className:"w-1 h-full"},{orientation:"vertical",size:"md",className:"w-2 h-full"},{orientation:"vertical",size:"lg",className:"w-3 h-full"}],defaultVariants:{orientation:"horizontal",size:"md"}}),$P=classVarianceAuthority.cva("block rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-grab",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{size:"md"}}),gh=$__namespace.forwardRef(({className:e,orientation:t="horizontal",size:r="md",value:a,defaultValue:n=[25,75],onValueChange:o,onValueCommit:s,min:l=0,max:c=100,step:d=1,disabled:u=false,showLabels:m=false,formatLabel:f=v=>String(v),trackColor:p="primary",name:b,...x},g)=>{let[v,y]=$__namespace.useState(n),w=a!==void 0,h=w?a:v,C=$__namespace.useRef(null),[R,M]=$__namespace.useState(false),[T,E]=$__namespace.useState(null),N=(I,F)=>{if(!C.current)return h[0];let O=C.current.getBoundingClientRect(),Q;t==="horizontal"?Q=(I-O.left)/O.width:Q=1-(F-O.top)/O.height,Q=Math.max(0,Math.min(1,Q));let re=l+Q*(c-l),K=Math.round(re/d)*d;return Math.max(l,Math.min(c,K))},P=(I,F)=>{let O=[...h];O[F]=I,F===0&&I>h[1]&&(O[0]=h[1]),F===1&&I<h[0]&&(O[1]=h[0]),w||y(O),o?.(O);},k=(I,F)=>{u||(I.preventDefault(),M(true),E(F),I.target.setPointerCapture(I.pointerId));},L=I=>{if(!R||T===null||u)return;let F=N(I.clientX,I.clientY);P(F,T);},H=()=>{R&&(M(false),E(null),s?.(h));},S=I=>{if(u)return;let F=N(I.clientX,I.clientY),O=Math.abs(h[0]-F),Q=Math.abs(h[1]-F),re=O<=Q?0:1;P(F,re);let K=[...h];K[re]=F,s?.(K);},D=(I,F)=>{if(u)return;let O=h[F];switch(I.key){case "ArrowRight":case "ArrowUp":I.preventDefault(),O=Math.min(c,h[F]+d);break;case "ArrowLeft":case "ArrowDown":I.preventDefault(),O=Math.max(l,h[F]-d);break;case "Home":I.preventDefault(),O=l;break;case "End":I.preventDefault(),O=c;break;default:return}P(O,F);let Q=[...h];Q[F]=O,s?.(Q);},V=I=>(I-l)/(c-l)*100,z={primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500"}[p],G={sm:14,md:20,lg:24}[r||"md"];return jsxRuntime.jsxs("div",{className:"relative w-full",children:[m&&jsxRuntime.jsxs("div",{className:"flex justify-between mb-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:f(h[0])}),jsxRuntime.jsx("span",{children:f(h[1])})]}),jsxRuntime.jsxs("div",{ref:g,className:i(fh({orientation:t,size:r}),u&&"opacity-50 pointer-events-none",e),...x,children:[jsxRuntime.jsx("div",{ref:C,className:i(GP({orientation:t,size:r})),onClick:S,children:jsxRuntime.jsx("div",{className:i("absolute rounded-full",z,{"h-full":t==="horizontal","w-full":t==="vertical"}),style:t==="horizontal"?{left:`${V(h[0])}%`,right:`${100-V(h[1])}%`,top:0,bottom:0}:{bottom:`${V(h[0])}%`,top:`${100-V(h[1])}%`,left:0,right:0}})}),h.map((I,F)=>jsxRuntime.jsx("div",{role:"slider",tabIndex:u?-1:0,"aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":I,"aria-orientation":t||void 0,"aria-disabled":u,className:i($P({size:r}),R&&T===F&&"cursor-grabbing"),style:t==="horizontal"?{position:"absolute",left:`calc(${V(I)}% - ${G/2}px)`,top:"50%",transform:"translateY(-50%)"}:{position:"absolute",bottom:`calc(${V(I)}% - ${G/2}px)`,left:"50%",transform:"translateX(-50%)"},onPointerDown:O=>k(O,F),onPointerMove:L,onPointerUp:H,onPointerCancel:H,onKeyDown:O=>D(O,F)},F)),b&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("input",{type:"hidden",name:`${b}[0]`,value:h[0]}),jsxRuntime.jsx("input",{type:"hidden",name:`${b}[1]`,value:h[1]})]})]})]})});gh.displayName="RangeSlider";var sc=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{variant:{help:"text-muted-foreground hover:text-foreground",info:"text-blue-500 hover:text-blue-600",warning:"text-yellow-500 hover:text-yellow-600"},size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{variant:"help",size:"md"}}),UP=classVarianceAuthority.cva("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none animate-in fade-in-0 zoom-in-95",{variants:{size:{sm:"w-56 text-xs",md:"w-72 text-sm",lg:"w-80 text-base"}},defaultVariants:{size:"md"}}),XP={help:lucideReact.HelpCircle,info:lucideReact.Info,warning:lucideReact.AlertCircle},hh=$__namespace.forwardRef(({variant:e="help",size:t,title:r,children:a,trigger:n,side:o="top",align:s="center",open:l,onOpenChange:c,learnMoreUrl:d,learnMoreText:u="Learn more",triggerClassName:m,contentClassName:f},p)=>{let[b,x]=$__namespace.useState(false),[g,v]=$__namespace.useState(false),[y,w]=$__namespace.useState({top:0,left:0}),h=$__namespace.useRef(null),C=$__namespace.useRef(null),R=l!==void 0?l:b,M=$__namespace.useCallback(P=>{l===void 0&&x(P),c?.(P);},[l,c]);$__namespace.useEffect(()=>{v(true);},[]),$__namespace.useEffect(()=>{if(!R||!h.current)return;let P=()=>{let k=h.current.getBoundingClientRect(),L=288,H=8,S=0,D=0;switch(o){case "top":S=k.top-H,D=k.left+k.width/2;break;case "bottom":S=k.bottom+H,D=k.left+k.width/2;break;case "left":S=k.top+k.height/2,D=k.left-H;break;case "right":S=k.top+k.height/2,D=k.right+H;break}if(o==="top"||o==="bottom")switch(s){case "start":D=k.left;break;case "center":D=k.left+k.width/2-L/2;break;case "end":D=k.right-L;break}D=Math.max(8,Math.min(D,window.innerWidth-L-8)),w({top:S,left:D});};return P(),window.addEventListener("resize",P),window.addEventListener("scroll",P,true),()=>{window.removeEventListener("resize",P),window.removeEventListener("scroll",P,true);}},[R,o,s]),$__namespace.useEffect(()=>{if(!R)return;let P=k=>{C.current&&!C.current.contains(k.target)&&h.current&&!h.current.contains(k.target)&&M(false);};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[R,M]),$__namespace.useEffect(()=>{if(!R)return;let P=k=>{k.key==="Escape"&&M(false);};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[R,M]);let T=XP[e??"help"],E=()=>{M(!R);},N=()=>{switch(o){case "top":return "bottom center";case "bottom":return "top center";case "left":return "right center";case "right":return "left center";default:return "center center"}};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?$__namespace.isValidElement(n)?$__namespace.cloneElement(n,{ref:h,onClick:P=>{n.props.onClick?.(P),E();}}):jsxRuntime.jsx("button",{ref:h,type:"button",onClick:E,className:i(sc({variant:e,size:t}),m),"aria-label":"Help",children:n}):jsxRuntime.jsx("button",{ref:P=>{h.current=P,typeof p=="function"?p(P):p&&(p.current=P);},type:"button",onClick:E,className:i(sc({variant:e,size:t}),m),"aria-label":"Help",children:jsxRuntime.jsx(T,{className:"h-full w-full"})}),g&&R&&$o__namespace.createPortal(jsxRuntime.jsxs("div",{ref:C,className:i(UP({size:t}),f),style:{position:"fixed",top:y.top,left:y.left,transformOrigin:N()},role:"tooltip",children:[r&&jsxRuntime.jsx("div",{className:"mb-2 font-semibold text-foreground",children:r}),jsxRuntime.jsx("div",{className:"text-muted-foreground",children:a}),d&&jsxRuntime.jsxs("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-block text-primary hover:underline",children:[u," \u2192"]}),jsxRuntime.jsx("div",{className:"absolute h-2 w-2 rotate-45 border bg-popover",style:{...o==="top"&&{bottom:-4,left:"50%",marginLeft:-4,borderTop:"none",borderLeft:"none"},...o==="bottom"&&{top:-4,left:"50%",marginLeft:-4,borderBottom:"none",borderRight:"none"},...o==="left"&&{right:-4,top:"50%",marginTop:-4,borderBottom:"none",borderLeft:"none"},...o==="right"&&{left:-4,top:"50%",marginTop:-4,borderTop:"none",borderRight:"none"}}})]}),document.body)]})});hh.displayName="ContextualHelp";var yh=classVarianceAuthority.cva("flex flex-wrap",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}}),ic=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-background hover:bg-accent",soft:"bg-primary/10 text-primary",surface:"bg-muted text-muted-foreground"},size:{sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm",lg:"px-3 py-1.5 text-base"},isSelected:{true:"",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},compoundVariants:[{variant:"outline",isSelected:true,className:"border-primary bg-primary/5"},{variant:"soft",isSelected:true,className:"bg-primary/20"},{variant:"surface",isSelected:true,className:"bg-muted/80 ring-2 ring-primary/20"}],defaultVariants:{variant:"soft",size:"md",isSelected:false,isDisabled:false}});function Rh({className:e,spacing:t,variant:r,size:a,items:n,selectedKeys:o,selectionMode:s="none",onSelectionChange:l,allowsRemoving:c=false,onRemove:d,label:u,description:m,errorMessage:f,maxTags:p,...b}){let[x,g]=$__namespace.useState(new Set),v=$__namespace.useMemo(()=>o?o instanceof Set?o:new Set(o):x,[o,x]),y=R=>{if(s==="none")return;let M;s==="single"?M=v.has(R)?new Set:new Set([R]):(M=new Set(v),M.has(R)?M.delete(R):M.add(R)),o||g(M),l?.(M);},w=(R,M)=>{M.stopPropagation(),d?.(R);},h=p?n.slice(0,p):n,C=p?Math.max(0,n.length-p):0;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-1.5",children:[u&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:u}),m&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:m}),jsxRuntime.jsxs("div",{role:"group","aria-label":u,className:i(yh({spacing:t}),e),...b,children:[h.map(R=>{let M=v.has(R.key),T=s!=="none";return jsxRuntime.jsxs("span",{role:T?"button":void 0,tabIndex:T&&!R.isDisabled?0:void 0,"aria-pressed":T?M:void 0,onClick:()=>!R.isDisabled&&y(R.key),onKeyDown:E=>{(E.key==="Enter"||E.key===" ")&&!R.isDisabled&&(E.preventDefault(),y(R.key));},style:R.color?{backgroundColor:R.color}:void 0,className:i(ic({variant:R.color?void 0:r,size:a,isSelected:M,isDisabled:R.isDisabled}),T&&!R.isDisabled&&"cursor-pointer hover:opacity-80",R.color&&"text-white"),children:[R.icon&&jsxRuntime.jsx("span",{className:"h-3.5 w-3.5 [&>svg]:h-full [&>svg]:w-full",children:R.icon}),R.label,c&&!R.isDisabled&&jsxRuntime.jsx("button",{type:"button",onClick:E=>w(R.key,E),className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${R.label}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},R.key)}),C>0&&jsxRuntime.jsxs("span",{className:i(ic({variant:"surface",size:a}),"cursor-default"),children:["+",C," more"]})]}),f&&jsxRuntime.jsx("span",{className:"text-sm text-destructive",children:f})]})}Rh.displayName="TagGroup";var Nh=classVarianceAuthority.cva("grid",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",auto:"grid-cols-[repeat(auto-fill,minmax(150px,1fr))]"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{columns:"auto",gap:"md"}}),Mh=classVarianceAuthority.cva("relative flex flex-col rounded-lg border transition-all cursor-pointer",{variants:{variant:{default:"hover:border-primary/50 hover:bg-accent/50",card:"bg-card shadow-sm hover:shadow-md hover:border-primary/50"},size:{sm:"p-2",md:"p-3",lg:"p-4"},isSelected:{true:"border-primary bg-accent ring-2 ring-primary/20",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},defaultVariants:{variant:"default",size:"md",isSelected:false,isDisabled:false}});function Th({className:e,columns:t,gap:r,items:a,selectedKeys:n,selectionMode:o="none",onSelectionChange:s,showSelectionIndicator:l=true,itemVariant:c="default",itemSize:d="md",renderItem:u,emptyContent:m,...f}){let[p,b]=$__namespace.useState(new Set),x=$__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),g=v=>{if(o==="none")return;let y;o==="single"?y=x.has(v)?new Set:new Set([v]):(y=new Set(x),y.has(v)?y.delete(v):y.add(v)),n||b(y),s?.(y);};return a.length===0?jsxRuntime.jsx("div",{className:i("flex items-center justify-center p-8 text-muted-foreground",e),children:m||"No items"}):jsxRuntime.jsx("div",{role:"grid","aria-multiselectable":o==="multiple",className:i(Nh({columns:t,gap:r,className:e})),...f,children:a.map(v=>{let y=x.has(v.key);return u?jsxRuntime.jsx("div",{role:"gridcell","aria-selected":y,onClick:()=>g(v.key),children:u(v,y)},v.key):jsxRuntime.jsxs("div",{role:"gridcell","aria-selected":y,"aria-disabled":v.isDisabled,onClick:()=>!v.isDisabled&&g(v.key),className:i(Mh({variant:c,size:d,isSelected:y,isDisabled:v.isDisabled})),children:[l&&o!=="none"&&y&&jsxRuntime.jsx("div",{className:"absolute top-2 right-2 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-primary-foreground",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),v.thumbnail&&jsxRuntime.jsx("div",{className:"mb-2 aspect-square w-full overflow-hidden rounded-md bg-muted",children:v.thumbnail}),jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:v.label}),v.description&&jsxRuntime.jsx("div",{className:"mt-1 truncate text-sm text-muted-foreground",children:v.description})]})]},v.key)})})}Th.displayName="GridList";var kh=classVarianceAuthority.cva("relative w-full",{variants:{size:{sm:"h-1.5",md:"h-2",lg:"h-3"}},defaultVariants:{size:"md"}}),QP=classVarianceAuthority.cva("w-full h-full rounded-full overflow-hidden",{variants:{variant:{default:"bg-secondary",subtle:"bg-muted"}},defaultVariants:{variant:"default"}}),ek=classVarianceAuthority.cva("h-full transition-all duration-300 ease-out",{variants:{color:{primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",info:"bg-blue-500",auto:""},rounded:{true:"rounded-full",false:"rounded-l-full"}},defaultVariants:{color:"primary",rounded:true}}),ri=$__namespace.forwardRef(({className:e,size:t,value:r,min:a=0,max:n=100,optimum:o,low:s,high:l,label:c,showValueLabel:d=false,formatValue:u,color:m="primary",trackVariant:f="default",...p},b)=>{let x=Math.min(100,Math.max(0,(r-a)/(n-a)*100)),g=()=>{if(m!=="auto")return "";let y=(r-a)/(n-a),w=s!==void 0?(s-a)/(n-a):.25,h=l!==void 0?(l-a)/(n-a):.75;return (o!==void 0?(o-a)/(n-a):1)>=.5?y<=w?"bg-red-500":y<=h?"bg-yellow-500":"bg-green-500":y>=h?"bg-red-500":y>=w?"bg-yellow-500":"bg-green-500"},v=u?u(r,x):`${Math.round(x)}%`;return jsxRuntime.jsxs("div",{ref:b,className:i("w-full",e),...p,children:[(c||d)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[c&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:c}),d&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:v})]}),jsxRuntime.jsx("div",{role:"meter","aria-valuenow":r,"aria-valuemin":a,"aria-valuemax":n,"aria-label":c,className:i(kh({size:t})),children:jsxRuntime.jsx("div",{className:i(QP({variant:f})),children:jsxRuntime.jsx("div",{className:i(ek({color:m==="auto"?void 0:m,rounded:x>=100}),m==="auto"&&g()),style:{width:`${x}%`}})})})]})});ri.displayName="Meter";var Eh=$__namespace.forwardRef((e,t)=>jsxRuntime.jsx(ri,{ref:t,color:"auto",low:50,high:80,optimum:0,...e}));Eh.displayName="DiskUsageMeter";var Lh=$__namespace.forwardRef((e,t)=>jsxRuntime.jsx(ri,{ref:t,color:"auto",low:20,high:50,optimum:100,...e}));Lh.displayName="BatteryMeter";var Dh=classVarianceAuthority.cva("relative rounded-lg overflow-hidden cursor-crosshair touch-none select-none",{variants:{size:{sm:"h-32 w-32",md:"h-48 w-48",lg:"h-64 w-64",full:"h-full w-full min-h-48"}},defaultVariants:{size:"md"}}),ni=(e,t,r)=>{let a=n=>{let o=(n+e/60)%6;return r-r*t*Math.max(Math.min(o,4-o,1),0)};return [Math.round(a(5)*255),Math.round(a(3)*255),Math.round(a(1)*255)]},Sh=(e,t,r)=>{e/=255,t/=255,r/=255;let a=Math.max(e,t,r),n=Math.min(e,t,r),o=a-n,s=0,l=a===0?0:o/a,c=a;if(o!==0)switch(a){case e:s=((t-r)/o+(t<r?6:0))*60;break;case t:s=((r-e)/o+2)*60;break;case r:s=((e-t)/o+4)*60;break}return [s,l,c]},Hh=e=>{let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null},Vh=(e,t,r)=>"#"+[e,t,r].map(a=>a.toString(16).padStart(2,"0")).join(""),Ih=$__namespace.forwardRef(({hue:e,saturation:t,brightness:r,value:a,defaultValue:n="#ff0000",onChange:o,onColorChange:s,size:l,disabled:c,thumbSize:d=18,className:u,...m},f)=>{let p=$__namespace.useRef(null),[b,x]=$__namespace.useState(false),g=$__namespace.useCallback(I=>{let F=Hh(I);return F?Sh(...F):[0,1,1]},[]),[v,y]=$__namespace.useState(()=>g(a||n)),w=e??v[0],h=t??v[1],C=r??v[2];$__namespace.useEffect(()=>{if(a){let I=g(a);y(I);}},[a,g]);let R=$__namespace.useCallback((I,F)=>{if(c||!p.current)return;let O=p.current.getBoundingClientRect(),Q=Math.max(0,Math.min(1,(I-O.left)/O.width)),re=Math.max(0,Math.min(1,(F-O.top)/O.height)),K=Q,B=1-re;t===void 0&&r===void 0&&y([w,K,B]),o?.({hue:w,saturation:K,brightness:B});let W=ni(w,K,B);s?.(Vh(...W));},[c,w,t,r,o,s]),M=I=>{c||(I.preventDefault(),x(true),I.target.setPointerCapture(I.pointerId),R(I.clientX,I.clientY));},T=I=>{b&&R(I.clientX,I.clientY);},E=I=>{x(false),I.target.releasePointerCapture(I.pointerId);},[N,P,k]=ni(w,1,1),L=`rgb(${N}, ${P}, ${k})`,H=h*100,S=(1-C)*100,[D,V,z]=ni(w,h,C),G=`rgb(${D}, ${V}, ${z})`;return jsxRuntime.jsx("div",{ref:f,className:i(Dh({size:l}),c&&"cursor-not-allowed opacity-50",u),...m,children:jsxRuntime.jsxs("div",{ref:p,className:"absolute inset-0",style:{backgroundColor:L},onPointerDown:M,onPointerMove:T,onPointerUp:E,onPointerLeave:E,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to right, white, transparent)"}}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, transparent, black)"}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white pointer-events-none",style:{width:d,height:d,left:`calc(${H}% - ${d/2}px)`,top:`calc(${S}% - ${d/2}px)`,backgroundColor:G,boxShadow:"0 0 0 1px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Ih.displayName="ColorArea";var zh=classVarianceAuthority.cva("relative rounded-full cursor-pointer touch-none select-none",{variants:{orientation:{horizontal:"w-full",vertical:"h-full"},size:{sm:"",md:"",lg:""}},compoundVariants:[{orientation:"horizontal",size:"sm",className:"h-3"},{orientation:"horizontal",size:"md",className:"h-4"},{orientation:"horizontal",size:"lg",className:"h-5"},{orientation:"vertical",size:"sm",className:"w-3"},{orientation:"vertical",size:"md",className:"w-4"},{orientation:"vertical",size:"lg",className:"w-5"}],defaultVariants:{orientation:"horizontal",size:"md"}}),nk=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,Ah="linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)",Bh=$__namespace.forwardRef(({value:e,defaultValue:t,onChange:r,channel:a="hue",baseColor:n="#ff0000",orientation:o,size:s,disabled:l,thumbSize:c=18,showBorder:d=true,className:u,...m},f)=>{let p=$__namespace.useRef(null),[b,x]=$__namespace.useState(false),g=()=>{switch(a){case "hue":return 0;case "alpha":case "saturation":case "brightness":return 1;default:return 0}},[v,y]=$__namespace.useState(t??g()),w=e??v,h=a==="hue"?w/360:w,C=$__namespace.useCallback((L,H)=>{if(l||!p.current)return;let S=p.current.getBoundingClientRect(),D=o!=="vertical",V;D?V=Math.max(0,Math.min(1,(L-S.left)/S.width)):V=Math.max(0,Math.min(1,1-(H-S.top)/S.height));let z=a==="hue"?V*360:V;e===void 0&&y(z),r?.(z);},[l,o,a,e,r]),R=L=>{l||(L.preventDefault(),x(true),L.target.setPointerCapture(L.pointerId),C(L.clientX,L.clientY));},M=L=>{b&&C(L.clientX,L.clientY);},T=L=>{x(false),L.target.releasePointerCapture(L.pointerId);},E=()=>{let L=o!=="vertical",H=L?"to right":"to top";switch(a){case "hue":return L?Ah:"linear-gradient(to top, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)";case "alpha":return `linear-gradient(${H}, transparent, ${n})`;case "saturation":return `linear-gradient(${H}, #808080, ${n})`;case "brightness":return `linear-gradient(${H}, #000000, ${n})`;default:return Ah}},N=()=>a==="hue"?`hsl(${w}, 100%, 50%)`:n,P=o!=="vertical",k=h*100;return jsxRuntime.jsx("div",{ref:f,className:i(zh({orientation:o,size:s}),l&&"cursor-not-allowed opacity-50",u),...m,children:jsxRuntime.jsxs("div",{ref:p,className:i("absolute inset-0 rounded-full overflow-hidden",d&&"border border-input"),style:{backgroundImage:a==="alpha"?nk:void 0,backgroundSize:a==="alpha"?"8px 8px":void 0},onPointerDown:R,onPointerMove:M,onPointerUp:T,onPointerLeave:T,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:E()}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:c,height:c,...P?{left:`calc(${k}% - ${c/2}px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${k}% - ${c/2}px)`,left:"50%",transform:"translateX(-50%)"},backgroundColor:N(),boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Bh.displayName="ColorSlider";var Oh=classVarianceAuthority.cva("relative cursor-crosshair touch-none select-none",{variants:{size:{sm:"h-32 w-32",md:"h-48 w-48",lg:"h-64 w-64"}},defaultVariants:{size:"md"}}),ik=(e,t,r)=>{let a=e-r,n=t-r,o=Math.atan2(n,a)*180/Math.PI+90;return o<0&&(o+=360),o},Fh=$__namespace.forwardRef(({value:e,defaultValue:t=0,onChange:r,size:a,disabled:n,innerRadius:o=.6,thumbSize:s=20,showCenter:l=true,className:c,...d},u)=>{let m=$__namespace.useRef(null),[f,p]=$__namespace.useState(false),[b,x]=$__namespace.useState(t),g=e??b,v=$__namespace.useCallback((R,M)=>{if(n||!m.current)return;let T=m.current.getBoundingClientRect(),E=T.width/2,N=R-T.left,P=M-T.top,k=ik(N,P,E);e===void 0&&x(k),r?.(k);},[n,e,r]),y=R=>{n||(R.preventDefault(),p(true),R.target.setPointerCapture(R.pointerId),v(R.clientX,R.clientY));},w=R=>{f&&v(R.clientX,R.clientY);},h=R=>{p(false),R.target.releasePointerCapture(R.pointerId);},C=()=>{let R=[];for(let M=0;M<=360;M+=30)R.push(`hsl(${M}, 100%, 50%) ${M}deg`);return `conic-gradient(from 270deg, ${R.join(", ")})`};return jsxRuntime.jsx("div",{ref:u,className:i(Oh({size:a}),n&&"cursor-not-allowed opacity-50",c),...d,children:jsxRuntime.jsxs("div",{ref:m,className:"absolute inset-0 rounded-full",style:{background:C()},onPointerDown:y,onPointerMove:w,onPointerUp:h,onPointerLeave:h,children:[o<1&&jsxRuntime.jsx("div",{className:"absolute bg-background rounded-full",style:{top:`${(1-o)*50}%`,left:`${(1-o)*50}%`,width:`${o*100}%`,height:`${o*100}%`}}),l&&o<1&&jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-input bg-background",style:{width:8,height:8,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}),jsxRuntime.jsx(lk,{hue:g,innerRadius:o,thumbSize:s})]})})});Fh.displayName="ColorWheel";var lk=({hue:e,innerRadius:t,thumbSize:r})=>{let a=(1-(1-t)/2)*50,n=(e-90)*Math.PI/180,o=50+a*Math.cos(n),s=50+a*Math.sin(n);return jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:r,height:r,left:`calc(${o}% - ${r/2}px)`,top:`calc(${s}% - ${r/2}px)`,backgroundColor:`hsl(${e}, 100%, 50%)`,boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})};var Kh=classVarianceAuthority.cva("flex",{variants:{direction:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},gap:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},inline:{true:"inline-flex",false:"flex"}},defaultVariants:{direction:"row",align:"stretch",justify:"start",wrap:"nowrap",gap:0,inline:false}}),fo=$__namespace.forwardRef(({className:e,direction:t,align:r,justify:a,wrap:n,gap:o,inline:s,as:l="div",...c},d)=>jsxRuntime.jsx(l,{ref:d,className:i(Kh({direction:t,align:r,justify:a,wrap:n,gap:o,inline:s,className:e})),...c}));fo.displayName="Flex";var Gh=$__namespace.forwardRef(({gap:e=2,align:t="center",...r},a)=>jsxRuntime.jsx(fo,{ref:a,direction:"row",gap:e,align:t,...r}));Gh.displayName="HStack";var $h=$__namespace.forwardRef(({gap:e=2,align:t="stretch",...r},a)=>jsxRuntime.jsx(fo,{ref:a,direction:"column",gap:e,align:t,...r}));$h.displayName="VStack";var _h=$__namespace.forwardRef((e,t)=>jsxRuntime.jsx(fo,{ref:t,align:"center",justify:"center",...e}));_h.displayName="Center";var Wh=classVarianceAuthority.cva("grid",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",none:"grid-cols-none",auto:"grid-cols-[repeat(auto-fill,minmax(200px,1fr))]"},rows:{1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",none:"grid-rows-none"},gap:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},gapX:{0:"gap-x-0",1:"gap-x-1",2:"gap-x-2",3:"gap-x-3",4:"gap-x-4",5:"gap-x-5",6:"gap-x-6",8:"gap-x-8",10:"gap-x-10",12:"gap-x-12"},gapY:{0:"gap-y-0",1:"gap-y-1",2:"gap-y-2",3:"gap-y-3",4:"gap-y-4",5:"gap-y-5",6:"gap-y-6",8:"gap-y-8",10:"gap-y-10",12:"gap-y-12"},flow:{row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},placeItems:{start:"place-items-start",center:"place-items-center",end:"place-items-end",stretch:"place-items-stretch"}},defaultVariants:{columns:1,gap:4,flow:"row",align:"stretch",justify:"stretch"}}),si=$__namespace.forwardRef(({className:e,columns:t,rows:r,gap:a,gapX:n,gapY:o,flow:s,align:l,justify:c,placeItems:d,as:u="div",minChildWidth:m,style:f,...p},b)=>{let x=m?{...f,gridTemplateColumns:`repeat(auto-fill, minmax(${m}, 1fr))`}:f;return jsxRuntime.jsx(u,{ref:b,className:i(Wh({columns:m?void 0:t,rows:r,gap:a,gapX:n,gapY:o,flow:s,align:l,justify:c,placeItems:d,className:e})),style:x,...p})});si.displayName="Grid";var Yh=classVarianceAuthority.cva("",{variants:{colSpan:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},rowSpan:{1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},colStart:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",13:"col-start-13",auto:"col-start-auto"},colEnd:{1:"col-end-1",2:"col-end-2",3:"col-end-3",4:"col-end-4",5:"col-end-5",6:"col-end-6",7:"col-end-7",8:"col-end-8",9:"col-end-9",10:"col-end-10",11:"col-end-11",12:"col-end-12",13:"col-end-13",auto:"col-end-auto"},rowStart:{1:"row-start-1",2:"row-start-2",3:"row-start-3",4:"row-start-4",5:"row-start-5",6:"row-start-6",7:"row-start-7",auto:"row-start-auto"},rowEnd:{1:"row-end-1",2:"row-end-2",3:"row-end-3",4:"row-end-4",5:"row-end-5",6:"row-end-6",7:"row-end-7",auto:"row-end-auto"}}}),Uh=$__namespace.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:a,colEnd:n,rowStart:o,rowEnd:s,as:l="div",...c},d)=>jsxRuntime.jsx(l,{ref:d,className:i(Yh({colSpan:t,rowSpan:r,colStart:a,colEnd:n,rowStart:o,rowEnd:s,className:e})),...c}));Uh.displayName="GridItem";var Xh=$__namespace.forwardRef(({columns:e=2,className:t,...r},a)=>{if(typeof e=="number")return jsxRuntime.jsx(si,{ref:a,columns:e,className:t,...r});let n=i(e.sm&&`sm:grid-cols-${e.sm}`,e.md&&`md:grid-cols-${e.md}`,e.lg&&`lg:grid-cols-${e.lg}`,e.xl&&`xl:grid-cols-${e.xl}`);return jsxRuntime.jsx(si,{ref:a,columns:1,className:i(n,t),...r})});Xh.displayName="SimpleGrid";var Zh=classVarianceAuthority.cva("rounded-lg",{variants:{variant:{default:"bg-muted",subtle:"bg-muted/50",outline:"border border-border bg-transparent",filled:"bg-accent",sunken:"bg-muted shadow-inner"},size:{sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-3xl"}},defaultVariants:{variant:"default",size:"md",radius:"lg"}}),Jh=$__namespace.forwardRef(({className:e,variant:t,size:r,radius:a,as:n="div",...o},s)=>jsxRuntime.jsx(n,{ref:s,className:i(Zh({variant:t,size:r,radius:a,className:e})),...o}));Jh.displayName="Well";var ex=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center gap-2",vertical:"flex-col gap-1"},size:{sm:"",md:"",lg:""},align:{start:"items-start",center:"items-center",end:"items-end"}},compoundVariants:[{orientation:"horizontal",align:"start",className:"items-start"},{orientation:"horizontal",align:"center",className:"items-center"},{orientation:"horizontal",align:"end",className:"items-end"}],defaultVariants:{orientation:"vertical",size:"md",align:"start"}}),pk=classVarianceAuthority.cva("text-muted-foreground font-medium",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),fk=classVarianceAuthority.cva("text-foreground",{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},mono:{true:"font-mono",false:""}},defaultVariants:{size:"md",weight:"normal",mono:false}}),tx=$__namespace.forwardRef(({className:e,orientation:t,size:r,align:a,label:n,value:o,valueWeight:s,mono:l,labelWidth:c,labelClassName:d,valueClassName:u,showColon:m=false,copyable:f=false,onCopy:p,...b},x)=>{let g=async()=>{if(!(!f||o===null||o===void 0))try{let v=typeof o=="string"?o:String(o);await navigator.clipboard.writeText(v),p?.();}catch{}};return jsxRuntime.jsxs("div",{ref:x,className:i(ex({orientation:t,size:r,align:a,className:e})),...b,children:[jsxRuntime.jsxs("span",{className:i(pk({size:r}),d),style:c?{width:c,flexShrink:0}:void 0,children:[n,m&&":"]}),jsxRuntime.jsx("span",{className:i(fk({size:r,weight:s,mono:l}),f&&"cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1 transition-colors",u),onClick:f?g:void 0,role:f?"button":void 0,tabIndex:f?0:void 0,onKeyDown:f?v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),g());}:void 0,children:o})]})});tx.displayName="LabeledValue";var rx=classVarianceAuthority.cva("",{variants:{orientation:{horizontal:"flex flex-row flex-wrap",vertical:"flex flex-col"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"vertical",gap:"md"}}),ax=$__namespace.forwardRef(({className:e,orientation:t,gap:r,...a},n)=>jsxRuntime.jsx("div",{ref:n,className:i(rx({orientation:t,gap:r,className:e})),...a}));ax.displayName="LabeledValueGroup";var ix=classVarianceAuthority.cva("flex items-center rounded-md border border-input bg-background ring-offset-background transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",{variants:{size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base"},variant:{default:"",filled:"bg-muted border-transparent",ghost:"border-transparent hover:bg-muted"}},defaultVariants:{size:"md",variant:"default"}}),Mn=classVarianceAuthority.cva("text-muted-foreground shrink-0",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),lx=$__namespace.forwardRef(({value:e,defaultValue:t="",onChange:r,onSearch:a,onSelect:n,suggestions:o=[],recentSearches:s=[],onClearRecentSearches:l,trendingSearches:c=[],isLoading:d,showClear:u=true,showIcon:m=true,popoverWidth:f="trigger",emptyMessage:p="No results found",size:b,variant:x,className:g,placeholder:v="Search...",disabled:y,...w},h)=>{let[C,R]=$__namespace.useState(false),[M,T]=$__namespace.useState(t),E=e!==void 0?e:M,N=$__namespace.useRef(null);$__namespace.useImperativeHandle(h,()=>N.current);let P=E.length>0,k=C&&(o.length>0||s.length>0||c.length>0||P),L=I=>{e===void 0&&T(I),r?.(I);},H=()=>{L(""),N.current?.focus();},S=I=>{I?.preventDefault(),E.trim()&&(a?.(E.trim()),R(false));},D=I=>{L(I.label),n?.(I),R(false);},V=I=>{L(I),a?.(I),R(false);},z=I=>{L(I),a?.(I),R(false);},G=$__namespace.useMemo(()=>{let I={};return o.forEach(F=>{let O=F.category||"Results";I[O]||(I[O]=[]),I[O].push(F);}),I},[o]);return jsxRuntime.jsxs(at,{open:k,onOpenChange:R,children:[jsxRuntime.jsx(ht,{asChild:true,children:jsxRuntime.jsxs("form",{onSubmit:S,className:i(ix({size:b,variant:x}),g),children:[m&&jsxRuntime.jsx(lucideReact.Search,{className:i(Mn({size:b}),"ml-3")}),jsxRuntime.jsx("input",{ref:N,type:"text",value:E,onChange:I=>L(I.target.value),onFocus:()=>R(true),placeholder:v,disabled:y,className:i("flex-1 bg-transparent px-3 py-2 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",!m&&"pl-3"),...w}),u&&P&&!y&&jsxRuntime.jsx("button",{type:"button",onClick:H,className:i("mr-2 rounded-sm p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",Mn({size:b})),children:jsxRuntime.jsx(lucideReact.X,{className:"h-full w-full"})})]})}),jsxRuntime.jsx(nt,{className:"p-0",style:{width:f==="trigger"?"var(--radix-popover-trigger-width)":f},align:"start",onOpenAutoFocus:I=>I.preventDefault(),children:jsxRuntime.jsxs(cmdk.Command,{className:"rounded-lg border-0",children:[s.length>0&&!P&&jsxRuntime.jsxs("div",{className:"p-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-1.5",children:[jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Recent"}),l&&jsxRuntime.jsx("button",{type:"button",onClick:l,className:"text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),s.map((I,F)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>V(I),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[jsxRuntime.jsx(lucideReact.Clock,{className:i(Mn({size:b}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:I}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:i(Mn({size:b}),"opacity-0 group-hover:opacity-100")})]},F))]}),c.length>0&&!P&&jsxRuntime.jsxs("div",{className:"border-t p-2",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5",children:jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Trending"})}),c.map((I,F)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>z(I),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[jsxRuntime.jsx(lucideReact.TrendingUp,{className:i(Mn({size:b}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:I})]},F))]}),P&&jsxRuntime.jsx("div",{className:"p-2",children:d?jsxRuntime.jsx("div",{className:"flex items-center justify-center py-6",children:jsxRuntime.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):o.length>0?Object.entries(G).map(([I,F])=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5",children:jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:I})}),F.map(O=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>D(O),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[O.icon||jsxRuntime.jsx(lucideReact.Search,{className:i(Mn({size:b}))}),jsxRuntime.jsxs("div",{className:"flex-1 text-left",children:[jsxRuntime.jsx("div",{className:"truncate",children:O.label}),O.description&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:O.description})]})]},O.id))]},I)):jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:p})})]})})]})});lx.displayName="SearchBar";var cx={Pages:jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),Files:jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),Settings:jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"}),Users:jsxRuntime.jsx(lucideReact.User,{className:"h-4 w-4"}),Tags:jsxRuntime.jsx(lucideReact.Hash,{className:"h-4 w-4"})},mx=$__namespace.forwardRef(({open:e,onOpenChange:t,items:r=[],recentItems:a=[],placeholder:n="Search...",isLoading:o,emptyMessage:s="No results found.",filter:l,shortcut:c="\u2318K",onSelect:d,footer:u},m)=>{let[f,p]=$__namespace.useState(""),b=$__namespace.useRef(null),[x,g]=$__namespace.useState(false);$__namespace.useEffect(()=>{g(true);},[]),$__namespace.useEffect(()=>{e||p("");},[e]),$__namespace.useEffect(()=>{if(!e)return;let R=M=>{M.key==="Escape"&&t?.(false);};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[e,t]),$__namespace.useEffect(()=>(e&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[e]);let v=$__namespace.useMemo(()=>{let R={};return r.forEach(M=>{let T=M.category||"Results";R[T]||(R[T]=[]),R[T].push(M);}),R},[r]),y=R=>{R.onSelect?.(),d?.(R),t?.(false);},w=()=>{t?.(false);},h=f.length>0,C=!h&&a.length>0;return !x||!e?null:$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-state":e?"open":"closed",onClick:w}),jsxRuntime.jsx("div",{ref:m,className:"fixed left-1/2 top-[20%] z-50 w-full max-w-2xl -translate-x-1/2 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=open]:slide-in-from-left-1/2","data-state":e?"open":"closed",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-xl border bg-background shadow-2xl",filter:l,shouldFilter:!l,children:[jsxRuntime.jsxs("div",{className:"flex items-center border-b px-4",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-5 w-5 shrink-0 text-muted-foreground"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:b,value:f,onValueChange:p,placeholder:n,className:"flex h-14 w-full bg-transparent px-4 py-4 text-base outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),f&&jsxRuntime.jsx("button",{type:"button",onClick:()=>p(""),className:"rounded-sm p-1 text-muted-foreground hover:text-foreground",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}),jsxRuntime.jsx(cmdk.Command.List,{className:"max-h-[400px] overflow-y-auto p-2",children:o?jsxRuntime.jsx("div",{className:"flex items-center justify-center py-10",children:jsxRuntime.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[C&&jsxRuntime.jsxs(cmdk.Command.Group,{heading:"Recent",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Recent"}),a.map(R=>jsxRuntime.jsxs(cmdk.Command.Item,{value:R.label,onSelect:()=>y(R),className:"flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm aria-selected:bg-muted",children:[jsxRuntime.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted",children:R.icon||cx[R.category||""]||jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"})}),jsxRuntime.jsxs("div",{className:"flex-1 overflow-hidden",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:R.label}),R.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:R.description})]}),R.shortcut&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:R.shortcut.map((M,T)=>jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-medium",children:M},T))})]},R.id))]}),h&&Object.entries(v).map(([R,M])=>jsxRuntime.jsxs(cmdk.Command.Group,{heading:R,children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:R}),M.map(T=>jsxRuntime.jsxs(cmdk.Command.Item,{value:`${T.label} ${T.keywords?.join(" ")||""}`,onSelect:()=>y(T),className:"flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm aria-selected:bg-muted",children:[jsxRuntime.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted",children:T.icon||cx[R]||jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"})}),jsxRuntime.jsxs("div",{className:"flex-1 overflow-hidden",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:T.label}),T.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:T.description})]}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-4 w-4 text-muted-foreground opacity-0 group-aria-selected:opacity-100"})]},T.id))]},R)),jsxRuntime.jsx(cmdk.Command.Empty,{className:"py-10 text-center text-sm text-muted-foreground",children:s})]})}),u?jsxRuntime.jsx("div",{className:"border-t px-4 py-3",children:u}):jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-t px-4 py-3 text-xs text-muted-foreground",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"\u2191\u2193"}),"Navigate"]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"\u21B5"}),"Select"]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"Esc"}),"Close"]})]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:["Press ",jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:c})," to open"]})]})]})})]}),document.body)});mx.displayName="SpotlightSearch";function Pk(e="k"){let[t,r]=$__namespace.useState(false);return $__namespace.useEffect(()=>{let a=n=>{(n.metaKey||n.ctrlKey)&&n.key===e&&(n.preventDefault(),r(o=>!o));};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),{open:t,setOpen:r,toggle:()=>r(a=>!a)}}var gx=$__namespace.createContext(null),di=()=>{let e=$__namespace.useContext(gx);if(!e)throw new Error("useNotificationCenter must be used within a NotificationCenterProvider");return e},Ik=({children:e,notifications:t,onNotificationsChange:r})=>{let[a,n]=$__namespace.useState([]),[o,s]=$__namespace.useState(false),l=$__namespace.useRef(null),c=t!==void 0,d=c?t:a,u=$__namespace.useCallback(g=>{c?r?.(g):n(g);},[c,r]),m=d.filter(g=>!g.read).length,f=$__namespace.useCallback(g=>{u(d.map(v=>v.id===g?{...v,read:true}:v));},[d,u]),p=$__namespace.useCallback(()=>{u(d.map(g=>({...g,read:true})));},[d,u]),b=$__namespace.useCallback(g=>{u(d.filter(v=>v.id!==g));},[d,u]),x=$__namespace.useCallback(()=>{u([]);},[u]);return jsxRuntime.jsx(gx.Provider,{value:{notifications:d,unreadCount:m,markAsRead:f,markAllAsRead:p,removeNotification:b,clearAll:x,open:o,setOpen:s,triggerRef:l},children:e})},bx=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("relative inline-block",e),...r,children:t}));bx.displayName="NotificationCenter";var vx=$__namespace.forwardRef(({className:e,showBadge:t=true,children:r,onClick:a,...n},o)=>{let{unreadCount:s,open:l,setOpen:c,triggerRef:d}=di(),u=f=>{a?.(f),c(!l);},m=s>99?"99+":String(s);return jsxRuntime.jsxs("button",{ref:f=>{d.current=f,typeof o=="function"?o(f):o&&(o.current=f);},type:"button",onClick:u,"aria-label":"Notifications"+(s>0?", "+s+" unread":""),className:i("relative inline-flex items-center justify-center rounded-md p-2 text-muted-foreground hover:bg-accent hover:text-accent-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",e),...n,children:[r||jsxRuntime.jsx(lucideReact.Bell,{className:"h-5 w-5"}),t&&s>0&&jsxRuntime.jsx("span",{className:"absolute -top-1 -right-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-destructive px-1 text-xs font-medium text-destructive-foreground",children:m})]})});vx.displayName="NotificationCenterTrigger";var hx=$__namespace.forwardRef(({className:e,align:t="end",sideOffset:r=8,emptyMessage:a="No notifications",children:n,...o},s)=>{let{open:l,setOpen:c,notifications:d,markAllAsRead:u,clearAll:m,triggerRef:f}=di(),[p,b]=$__namespace.useState(false),x=$__namespace.useRef(null),[g,v]=$__namespace.useState({top:0,left:0});return $__namespace.useEffect(()=>{b(true);},[]),$__namespace.useEffect(()=>{if(!l||!f.current||!x.current)return;let y=()=>{if(!f.current||!x.current)return;let w=f.current.getBoundingClientRect(),h=x.current.getBoundingClientRect(),C=w.bottom+r,R=w.left;t==="center"?R=w.left+w.width/2-h.width/2:t==="end"&&(R=w.right-h.width),R+h.width>window.innerWidth-16&&(R=window.innerWidth-h.width-16),R<16&&(R=16),v({top:C,left:R});};return y(),window.addEventListener("resize",y),window.addEventListener("scroll",y,true),()=>{window.removeEventListener("resize",y),window.removeEventListener("scroll",y,true);}},[l,f,t,r]),$__namespace.useEffect(()=>{if(!l)return;let y=h=>{x.current&&!x.current.contains(h.target)&&f.current&&!f.current.contains(h.target)&&c(false);},w=h=>{h.key==="Escape"&&c(false);};return document.addEventListener("mousedown",y),document.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("keydown",w);}},[l,c,f]),!p||!l?null:$o__namespace.createPortal(jsxRuntime.jsxs("div",{ref:y=>{x.current=y,typeof s=="function"?s(y):s&&(s.current=y);},className:i("fixed z-50 w-80 sm:w-96 max-h-[70vh] overflow-hidden rounded-lg border bg-popover text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",e),style:{top:g.top,left:g.left},...o,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[jsxRuntime.jsx("h3",{className:"font-semibold",children:"Notifications"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[d.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:u,className:"text-xs text-muted-foreground hover:text-foreground",children:"Mark all read"}),jsxRuntime.jsx("button",{type:"button",onClick:m,className:"text-xs text-muted-foreground hover:text-foreground",children:"Clear all"})]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>c(false),className:"rounded-md p-1 hover:bg-accent",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})]}),jsxRuntime.jsx("div",{className:"max-h-[calc(70vh-60px)] overflow-y-auto",children:n||(d.length===0?jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-10 w-10 mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:a})]}):d.map(y=>jsxRuntime.jsx(mc,{notification:y},y.id)))})]}),document.body)});hx.displayName="NotificationCenterContent";var Ak={info:"border-l-blue-500",success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"},zk={info:lucideReact.Info,success:lucideReact.CheckCircle,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},mc=({notification:e,onMarkAsRead:t,onRemove:r})=>{let{markAsRead:a,removeNotification:n}=di(),{id:o,title:s,description:l,type:c="info",timestamp:d,read:u,avatar:m,action:f}=e,p=zk[c],b=()=>{t?t():a(o);},x=()=>{r?r():n(o);},g=v=>{if(!v)return null;let y=typeof v=="string"?new Date(v):v,h=new Date().getTime()-y.getTime(),C=Math.floor(h/6e4),R=Math.floor(h/36e5),M=Math.floor(h/864e5);return C<1?"Just now":C<60?C+"m ago":R<24?R+"h ago":M<7?M+"d ago":y.toLocaleDateString()};return jsxRuntime.jsxs("div",{className:i("group relative flex gap-3 border-b border-l-4 px-4 py-3 transition-colors hover:bg-accent/50",Ak[c],!u&&"bg-accent/20"),children:[jsxRuntime.jsx("div",{className:"flex-shrink-0",children:m||jsxRuntime.jsx("div",{className:i("flex h-8 w-8 items-center justify-center rounded-full",c==="info"&&"bg-blue-100 text-blue-600 dark:bg-blue-900 dark:text-blue-400",c==="success"&&"bg-green-100 text-green-600 dark:bg-green-900 dark:text-green-400",c==="warning"&&"bg-yellow-100 text-yellow-600 dark:bg-yellow-900 dark:text-yellow-400",c==="error"&&"bg-red-100 text-red-600 dark:bg-red-900 dark:text-red-400"),children:jsxRuntime.jsx(p,{className:"h-4 w-4"})})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-2",children:[jsxRuntime.jsx("p",{className:i("text-sm font-medium",!u&&"font-semibold"),children:s}),!u&&jsxRuntime.jsx("span",{className:"h-2 w-2 flex-shrink-0 rounded-full bg-primary"})]}),l&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground line-clamp-2",children:l}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[d&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:g(d)}),f&&jsxRuntime.jsx("button",{type:"button",onClick:f.onClick,className:"text-xs font-medium text-primary hover:underline",children:f.label})]})]}),jsxRuntime.jsx("div",{className:"flex-shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:jsxRuntime.jsxs("div",{className:"flex gap-1",children:[!u&&jsxRuntime.jsx("button",{type:"button",onClick:b,className:"rounded-md p-1 hover:bg-accent",title:"Mark as read",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",onClick:x,className:"rounded-md p-1 hover:bg-accent text-destructive",title:"Remove",children:jsxRuntime.jsx(lucideReact.Trash2,{className:"h-4 w-4"})})]})})]})};mc.displayName="NotificationItem";var xx=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("divide-y",e),...r,children:t}));xx.displayName="NotificationList";var yx=classVarianceAuthority.cva("relative flex items-center justify-center gap-3 px-4 py-2.5 text-sm",{variants:{variant:{solid:"",flat:""},type:{default:"",success:"",warning:"",error:""},position:{top:"fixed top-0 left-0 right-0 z-50",relative:"relative"}},compoundVariants:[{variant:"solid",type:"default",className:"bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"bg-green-600 text-white dark:bg-green-500 [&>svg]:text-white"},{variant:"flat",type:"success",className:"bg-green-600/10 text-green-600 dark:bg-green-500/10 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"solid",type:"warning",className:"bg-amber-600 text-white dark:bg-amber-500 [&>svg]:text-white"},{variant:"flat",type:"warning",className:"bg-amber-600/10 text-amber-600 dark:bg-amber-500/10 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"solid",type:"error",className:"bg-red-600 text-white dark:bg-red-500 [&>svg]:text-white"},{variant:"flat",type:"error",className:"bg-red-600/10 text-red-600 dark:bg-red-500/10 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"}],defaultVariants:{variant:"solid",type:"default",position:"relative"}}),jk={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},Rx=$__namespace.forwardRef(({message:e,type:t="default",variant:r="solid",showIcon:a=false,icon:n,dismissible:o=true,onDismiss:s,endContent:l,position:c,animate:d,autoDismiss:u,storageKey:m,className:f,...p},b)=>{let[x,g]=$__namespace.useState(true),[v,y]=$__namespace.useState(false);$__namespace.useEffect(()=>{m&&localStorage.getItem(`banner-${m}`)==="true"&&g(false);},[m]),$__namespace.useEffect(()=>{if(u&&x){let R=setTimeout(()=>{w();},u);return ()=>clearTimeout(R)}},[u,x]);let w=()=>{y(true),setTimeout(()=>{g(false),m&&localStorage.setItem(`banner-${m}`,"true"),s?.();},200);};if(!x)return null;let h=jk[t],C=a?n!==void 0?n:h?jsxRuntime.jsx(h,{className:"h-4 w-4"}):null:null;return jsxRuntime.jsxs("div",{ref:b,className:i(yx({variant:r,type:t,position:c}),d&&"animate-pulse",v&&"animate-out fade-out slide-out-to-top duration-200",f),role:"banner",...p,children:[C&&jsxRuntime.jsx("span",{className:"shrink-0",children:C}),jsxRuntime.jsx("span",{className:"text-center font-medium",children:e}),l&&jsxRuntime.jsx("div",{className:"shrink-0 ml-2",children:l}),o&&jsxRuntime.jsx("button",{type:"button",onClick:w,className:i("absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-70 cursor-pointer",c==="relative"&&"right-4"),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});Rx.displayName="Banner";var go=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full shadow-lg transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",bordered:"border-2 border-primary bg-transparent text-primary hover:opacity-70",light:"bg-transparent text-primary hover:bg-primary/10",flat:"bg-primary/20 text-primary hover:opacity-70",ghost:"border-2 border-primary bg-transparent text-primary hover:bg-primary hover:text-primary-foreground"},size:{sm:"h-10 w-10",md:"h-14 w-14",lg:"h-16 w-16"},position:{"bottom-right":"fixed bottom-6 right-6","bottom-left":"fixed bottom-6 left-6","bottom-center":"fixed bottom-6 left-1/2 -translate-x-1/2",relative:"relative"}},defaultVariants:{variant:"solid",size:"md",position:"bottom-right"}}),Uk=classVarianceAuthority.cva("transition-transform duration-200 [&>svg]:h-full [&>svg]:w-full",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),fc=$__namespace.forwardRef(({icon:e,label:t="Action button",extended:r,extendedLabel:a,actions:n,direction:o="up",showTooltip:s=true,closeIcon:l,animation:c="rotate",variant:d,size:u,position:m,className:f,onClick:p,disabled:b,...x},g)=>{let[v,y]=$__namespace.useState(false),w=n&&n.length>0,h=E=>{w&&y(!v),p?.(E);},C=E=>{E.onClick?.(),y(false);},R={up:{container:"flex-col-reverse bottom-full mb-3 gap-3",item:""},down:{container:"flex-col top-full mt-3 gap-3",item:""},left:{container:"flex-row-reverse right-full mr-3 gap-3",item:""},right:{container:"flex-row left-full ml-3 gap-3",item:""}},M=c==="rotate"&&v?"rotate-45":"",T=c==="scale"&&v?"scale-0":"scale-100";return jsxRuntime.jsxs("div",{className:i("relative z-50",m!=="relative"&&m&&go({position:m})),children:[w&&v&&jsxRuntime.jsx("div",{className:i("absolute left-1/2 -translate-x-1/2 flex items-center",R[o].container),children:n.map((E,N)=>jsxRuntime.jsxs("div",{className:i("flex items-center gap-2 animate-in fade-in zoom-in duration-200",o==="up"||o==="down"?"flex-row":"flex-col"),style:{animationDelay:`${N*50}ms`},children:[s&&(o==="up"||o==="down")&&jsxRuntime.jsx("span",{className:"rounded-md bg-popover px-2 py-1 text-xs font-medium text-popover-foreground shadow-md whitespace-nowrap",children:E.label}),E.href?jsxRuntime.jsx("a",{href:E.href,className:i(go({variant:E.variant||"flat",size:u==="lg"?"md":"sm",position:"relative"}),"[&>svg]:h-5 [&>svg]:w-5"),"aria-label":E.label,children:E.icon}):jsxRuntime.jsx("button",{type:"button",onClick:()=>C(E),className:i(go({variant:E.variant||"flat",size:u==="lg"?"md":"sm",position:"relative"}),"[&>svg]:h-5 [&>svg]:w-5"),"aria-label":E.label,children:E.icon}),s&&(o==="left"||o==="right")&&jsxRuntime.jsx("span",{className:"rounded-md bg-popover px-2 py-1 text-xs font-medium text-popover-foreground shadow-md whitespace-nowrap",children:E.label})]},E.id))}),jsxRuntime.jsxs("button",{ref:g,type:"button",onClick:h,disabled:b,className:i(go({variant:d,size:u,position:"relative"}),r&&"w-auto px-6 gap-2",f),"aria-label":t,"aria-expanded":w?v:void 0,...x,children:[v&&l?l:jsxRuntime.jsx("span",{className:i(Uk({size:u}),M,T,"transition-all duration-200"),children:e||jsxRuntime.jsx(lucideReact.Plus,{})}),r&&a&&jsxRuntime.jsx("span",{className:"font-medium",children:a})]}),w&&v&&jsxRuntime.jsx("div",{className:"fixed inset-0 -z-10",onClick:()=>y(false)})]})});fc.displayName="FloatingActionButton";var Xk=fc;var Tx=classVarianceAuthority.cva("fixed bottom-0 left-0 right-0 z-50 flex items-center justify-around border-t bg-background safe-area-pb",{variants:{variant:{default:"border-border",elevated:"border-transparent shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]",filled:"border-transparent bg-primary text-primary-foreground"},size:{sm:"h-14",md:"h-16",lg:"h-20"}},defaultVariants:{variant:"default",size:"md"}}),Cx=classVarianceAuthority.cva("flex flex-1 flex-col items-center justify-center gap-1 transition-colors cursor-pointer",{variants:{variant:{default:"",elevated:"",filled:""}},defaultVariants:{variant:"default"}}),Px=$__namespace.forwardRef(({className:e,variant:t,size:r,items:a,value:n,defaultValue:o,onValueChange:s,hideLabels:l=false,showActiveLabel:c=false,renderItem:d,...u},m)=>{let[f,p]=$__namespace.useState(o||a[0]?.key),b=n!==void 0,x=b?n:f,g=h=>{h.disabled||(b||p(h.key),s?.(h.key));},v=h=>t==="filled"?h?"text-primary-foreground":"text-primary-foreground/60 hover:text-primary-foreground/80":h?"text-primary":"text-muted-foreground hover:text-foreground",y=()=>{switch(r){case "sm":return "h-5 w-5";case "lg":return "h-7 w-7";default:return "h-6 w-6"}},w=()=>{switch(r){case "sm":return "text-[10px]";case "lg":return "text-sm";default:return "text-xs"}};return jsxRuntime.jsx("nav",{ref:m,className:i(Tx({variant:t,size:r}),e),role:"navigation","aria-label":"Bottom navigation",...u,children:a.map(h=>{let C=x===h.key,R=!l&&(c?C:true),M=C&&h.activeIcon?h.activeIcon:h.icon;if(d)return jsxRuntime.jsx("div",{onClick:()=>g(h),className:i(Cx({variant:t}),h.disabled&&"opacity-50 cursor-not-allowed"),children:d(h,C)},h.key);let T=jsxRuntime.jsxs("div",{onClick:()=>!h.href&&g(h),className:i(Cx({variant:t}),v(C),h.disabled&&"opacity-50 cursor-not-allowed"),role:"button","aria-current":C?"page":void 0,"aria-disabled":h.disabled,tabIndex:h.disabled?-1:0,onKeyDown:E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),g(h));},children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:i(y(),"[&>svg]:h-full [&>svg]:w-full"),children:M}),h.badge!==void 0&&h.badge>0&&jsxRuntime.jsx("span",{className:"absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red-500 px-1 text-[10px] font-medium text-white",children:h.badge>99?"99+":h.badge}),h.showDot&&jsxRuntime.jsx("span",{className:"absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full bg-red-500"})]}),R&&h.label&&jsxRuntime.jsx("span",{className:i(w(),"font-medium truncate max-w-full px-1"),children:h.label})]},h.key);return h.href&&!h.disabled?jsxRuntime.jsx("a",{href:h.href,onClick:()=>g(h),className:i("flex flex-1 flex-col items-center justify-center gap-1 no-underline",v(C)),children:T},h.key):T})})});Px.displayName="BottomNavigation";var Zk="fixed inset-x-0 bottom-0 z-50 mt-24 flex h-fit max-h-[90vh] flex-col rounded-t-[20px] border-t border-border/40 dark:border-border/20 bg-background",Ex=classVarianceAuthority.cva("flex w-full items-center gap-3 px-4 py-3.5 text-left transition-colors focus-visible:outline-none focus-visible:bg-accent disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-accent",destructive:"text-destructive hover:bg-destructive/10"}},defaultVariants:{variant:"default"}}),Lx=$__namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a,description:n,items:o,cancelLabel:s="Cancel",onCancel:l,showCancel:c=true,children:d,closeOnSelect:u=true,onAction:m},f)=>{let p=b=>{b.isDisabled||(b.onSelect?.(),m?.(b.key),u&&t?.(false));};return jsxRuntime.jsxs(vaul.Drawer.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(vaul.Drawer.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(vaul.Drawer.Portal,{children:[jsxRuntime.jsx(vaul.Drawer.Overlay,{className:"fixed inset-0 z-50 bg-black/40"}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:f,className:Zk,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-muted"}),(a||n)&&jsxRuntime.jsxs("div",{className:"px-4 py-3 text-center",children:[a&&jsxRuntime.jsx(vaul.Drawer.Title,{className:"text-base font-semibold",children:a}),n&&jsxRuntime.jsx(vaul.Drawer.Description,{className:"mt-1 text-sm text-muted-foreground",children:n})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:d||jsxRuntime.jsx("div",{className:"divide-y divide-border/40 dark:divide-border/20",children:o?.map(b=>jsxRuntime.jsxs("button",{type:"button",disabled:b.isDisabled,onClick:()=>p(b),className:i(Ex({variant:b.isDestructive?"destructive":"default"})),children:[b.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 flex-shrink-0 [&>svg]:h-full [&>svg]:w-full",children:b.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"font-medium",children:b.label}),b.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:b.description})]})]},b.key))})}),c&&jsxRuntime.jsx("div",{className:"border-t border-border/40 dark:border-border/20 p-2 pb-safe",children:jsxRuntime.jsx(vaul.Drawer.Close,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",onClick:l,className:"w-full rounded-lg bg-muted py-3.5 text-center font-semibold transition-colors hover:bg-muted/80",children:s})})})]})]})]})});Lx.displayName="ActionSheet";var Sx=classVarianceAuthority.cva("relative overflow-hidden touch-pan-y",{variants:{variant:{default:"",card:"rounded-lg border bg-card"}},defaultVariants:{variant:"default"}}),bc=classVarianceAuthority.cva("flex h-full items-center justify-center px-4 text-white font-medium transition-opacity",{variants:{variant:{primary:"bg-primary",secondary:"bg-secondary text-secondary-foreground",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",info:"bg-blue-500"},size:{sm:"min-w-16",md:"min-w-20",lg:"min-w-24"}},defaultVariants:{variant:"primary",size:"md"}}),Hx=$__namespace.forwardRef(({className:e,variant:t,leftActions:r=[],rightActions:a=[],actionSize:n="md",threshold:o=.3,onSwipeEnd:s,disabled:l=false,fullSwipeAction:c,children:d,...u},m)=>{let f=$__namespace.useRef(null),[p,b]=$__namespace.useState(0),[x,g]=$__namespace.useState(false),v=$__namespace.useRef(0),y=$__namespace.useRef(0),w=r.length*(n==="sm"?64:n==="lg"?96:80),h=a.length*(n==="sm"?64:n==="lg"?96:80),C=N=>{l||(g(true),v.current=N.touches[0].clientX,y.current=p);},R=N=>{if(!x||l)return;let k=N.touches[0].clientX-v.current,L=y.current+k;(L>0&&r.length===0||L<0&&a.length===0)&&(L=0),L>w?L=w+(L-w)*.3:L<-h&&(L=-h+(L+h)*.3),b(L);},M=()=>{if(!x)return;g(false);let N=f.current?.offsetWidth||0,P=Math.abs(p)/N;if(c&&P>.6){c==="right"&&p>0&&r[0]?(r[0].onAction?.(),s?.("right",r[0].key)):c==="left"&&p<0&&a[0]&&(a[0].onAction?.(),s?.("left",a[0].key)),b(0);return}p>w*o&&r.length>0?(b(w),s?.("right")):p<-h*o&&a.length>0?(b(-h),s?.("left")):b(0);},T=(N,P)=>{N.onAction?.(),s?.(P,N.key),b(0);},E=()=>{b(0);};return jsxRuntime.jsxs("div",{ref:m,className:i(Sx({variant:t,className:e})),...u,children:[r.length>0&&p>0&&jsxRuntime.jsx("div",{className:"absolute left-0 top-0 bottom-0 flex",style:{width:w},children:r.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>T(N,"right"),className:i(bc({variant:N.variant,size:n})),style:{opacity:Math.min(1,p/w)},children:[N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:N.icon}),!N.icon&&N.label]},N.key))}),a.length>0&&p<0&&jsxRuntime.jsx("div",{className:"absolute right-0 top-0 bottom-0 flex",style:{width:h},children:a.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>T(N,"left"),className:i(bc({variant:N.variant,size:n})),style:{opacity:Math.min(1,Math.abs(p)/h)},children:[N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:N.icon}),!N.icon&&N.label]},N.key))}),jsxRuntime.jsx("div",{ref:f,className:i("relative bg-background",x?"":"transition-transform duration-200"),style:{transform:`translateX(${p}px)`},onTouchStart:C,onTouchMove:R,onTouchEnd:M,onClick:p!==0?E:void 0,children:d})]})});Hx.displayName="SwipeActions";var Ix=classVarianceAuthority.cva("relative overflow-hidden",{variants:{variant:{default:"",contained:"h-full"}},defaultVariants:{variant:"default"}}),eE=classVarianceAuthority.cva("absolute left-1/2 -translate-x-1/2 flex items-center justify-center transition-all duration-200",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"}},defaultVariants:{size:"md"}}),Ax=$__namespace.forwardRef(({className:e,variant:t,onRefresh:r,pullThreshold:a=80,maxPullDistance:n=120,loadingIndicator:o,pullIndicator:s,indicatorSize:l="md",disabled:c=false,pullText:d="Pull to refresh",releaseText:u="Release to refresh",refreshingText:m="Refreshing...",children:f,...p},b)=>{let x=$__namespace.useRef(null),[g,v]=$__namespace.useState(0),[y,w]=$__namespace.useState("idle"),h=$__namespace.useRef(0),C=$__namespace.useRef(false),R=()=>c||y==="refreshing"?false:(x.current?.scrollTop??window.scrollY)<=0,M=k=>{R()&&(h.current=k.touches[0].clientY,C.current=true);},T=k=>{if(!C.current||!R())return;let H=k.touches[0].clientY-h.current;if(H<0){v(0),w("idle");return}let D=Math.min(H*.5,n);v(D),w(D>=a?"ready":"pulling");},E=async()=>{if(C.current)if(C.current=false,y==="ready"){w("refreshing"),v(a*.6);try{await r();}finally{w("idle"),v(0);}}else w("idle"),v(0);},N={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[l],P=()=>{if(y==="refreshing")return o||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:i(N,"animate-spin text-primary")}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:m})]});let k=Math.min(g/a*180,180);return s||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.ArrowDown,{className:i(N,"text-muted-foreground transition-transform"),style:{transform:`rotate(${k}deg)`}}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:y==="ready"?u:d})]})};return jsxRuntime.jsxs("div",{ref:b,className:i(Ix({variant:t,className:e})),...p,children:[jsxRuntime.jsx("div",{className:i(eE({size:l}),"z-10",y==="idle"&&g===0&&"opacity-0"),style:{top:Math.max(g-60,-60),opacity:Math.min(g/(a*.5),1)},children:P()}),jsxRuntime.jsx("div",{ref:x,className:i("transition-transform duration-200",y==="refreshing"&&"ease-out"),style:{transform:`translateY(${g}px)`,transition:C.current?"none":void 0},onTouchStart:M,onTouchMove:T,onTouchEnd:E,children:f})]})});Ax.displayName="PullToRefresh";var Bx=classVarianceAuthority.cva("flex min-h-screen w-full",{variants:{layout:{default:"flex-col",sidebar:"flex-row"}},defaultVariants:{layout:"default"}}),Ox=$__namespace.forwardRef(({className:e,layout:t="default",header:r,footer:a,sidebar:n,aside:o,sidebarCollapsed:s=false,sidebarWidth:l="16rem",sidebarCollapsedWidth:c="4rem",asideWidth:d="16rem",fixed:u=false,children:m,...f},p)=>{let b=s?c:l;return jsxRuntime.jsxs("div",{ref:p,className:i(Bx({layout:t}),e),style:{"--app-shell-sidebar-width":b,"--app-shell-aside-width":d},...f,children:[r&&jsxRuntime.jsx(hc,{fixed:u,hasSidebar:!!n,children:r}),jsxRuntime.jsxs("div",{className:"flex flex-1",children:[n&&jsxRuntime.jsx(xc,{collapsed:s,fixed:u,children:n}),jsxRuntime.jsx("main",{className:i("flex-1 flex flex-col min-h-0",u&&r&&"pt-14",u&&a&&"pb-14"),children:m}),o&&jsxRuntime.jsx(yc,{fixed:u,children:o})]}),a&&jsxRuntime.jsx(Rc,{fixed:u,hasSidebar:!!n,children:a})]})});Ox.displayName="AppShell";var hc=$__namespace.forwardRef(({className:e,fixed:t,hasSidebar:r,children:a,...n},o)=>jsxRuntime.jsx("header",{ref:o,className:i("flex h-14 items-center border-b bg-background px-4",t&&"fixed top-0 right-0 z-40",t&&r&&"left-[var(--app-shell-sidebar-width)]",t&&!r&&"left-0",e),...n,children:a}));hc.displayName="AppShellHeader";var xc=$__namespace.forwardRef(({className:e,collapsed:t,fixed:r,children:a,...n},o)=>jsxRuntime.jsx("aside",{ref:o,className:i("w-[var(--app-shell-sidebar-width)] shrink-0 border-r bg-background transition-[width] duration-200",r&&"fixed left-0 top-0 bottom-0 z-50",e),"data-collapsed":t,...n,children:a}));xc.displayName="AppShellSidebar";var yc=$__namespace.forwardRef(({className:e,fixed:t,children:r,...a},n)=>jsxRuntime.jsx("aside",{ref:n,className:i("w-[var(--app-shell-aside-width)] shrink-0 border-l bg-background",t&&"fixed right-0 top-14 bottom-0 z-40",e),...a,children:r}));yc.displayName="AppShellAside";var Rc=$__namespace.forwardRef(({className:e,fixed:t,hasSidebar:r,children:a,...n},o)=>jsxRuntime.jsx("footer",{ref:o,className:i("flex h-14 items-center border-t bg-background px-4",t&&"fixed bottom-0 right-0 z-40",t&&r&&"left-[var(--app-shell-sidebar-width)]",t&&!r&&"left-0",e),...n,children:a}));Rc.displayName="AppShellFooter";var Fx=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex-1 overflow-auto p-4",e),...t}));Fx.displayName="AppShellMain";var Gx=classVarianceAuthority.cva("flex min-h-screen w-full bg-muted/40",{variants:{variant:{default:"",bordered:"[&_[data-slot=sidebar]]:border-r [&_[data-slot=header]]:border-b",filled:"[&_[data-slot=sidebar]]:bg-background [&_[data-slot=header]]:bg-background"}},defaultVariants:{variant:"bordered"}}),$x=$__namespace.forwardRef(({className:e,variant:t,navigation:r,logo:a,userMenu:n,headerActions:o,breadcrumb:s,defaultCollapsed:l=false,collapsed:c,onCollapsedChange:d,children:u,...m},f)=>{let[p,b]=$__namespace.useState(l),[x,g]=$__namespace.useState(false),v=c??p,y=$__namespace.useCallback(w=>{b(w),d?.(w);},[d]);return jsxRuntime.jsxs("div",{ref:f,className:i(Gx({variant:t}),e),...m,children:[jsxRuntime.jsxs("aside",{"data-slot":"sidebar","data-collapsed":v,className:i("hidden lg:flex flex-col fixed inset-y-0 left-0 z-50 bg-background transition-[width] duration-200",v?"w-16":"w-64"),children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:a}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:r}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]}),jsxRuntime.jsx(Ko,{open:x,onOpenChange:g,children:jsxRuntime.jsxs(Go,{side:"left",className:"w-64 p-0",children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:a}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:r}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]})}),jsxRuntime.jsxs("div",{className:i("flex flex-1 flex-col transition-[margin-left] duration-200",v?"lg:ml-16":"lg:ml-64"),children:[jsxRuntime.jsxs("header",{"data-slot":"header",className:"sticky top-0 z-40 flex h-14 items-center gap-4 bg-background px-4 lg:px-6",children:[jsxRuntime.jsxs(J,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>g(true),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle menu"})]}),jsxRuntime.jsxs(J,{variant:"ghost",size:"icon",className:"hidden lg:flex",onClick:()=>y(!v),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle sidebar"})]}),s&&jsxRuntime.jsx("div",{className:"flex-1",children:s}),o&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:o})]}),jsxRuntime.jsx("main",{className:"flex-1 p-4 lg:p-6",children:u})]})]})});$x.displayName="DashboardLayout";var _x=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("space-y-6",e),...t}));_x.displayName="DashboardPage";var jx=$__namespace.forwardRef(({className:e,title:t,description:r,actions:a,children:n,...o},s)=>jsxRuntime.jsxs("div",{ref:s,className:i("flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",e),...o,children:[jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),n]}),a&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:a})]}));jx.displayName="DashboardPageHeader";var Wx=$__namespace.forwardRef(({className:e,columns:t=4,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("grid gap-4",{1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"}[t],e),...r}));Wx.displayName="DashboardGrid";var pi=classVarianceAuthority.cva("min-h-screen w-full",{variants:{variant:{centered:"flex items-center justify-center bg-muted/40",split:"flex flex-col lg:flex-row",cover:"relative flex items-center justify-center"}},defaultVariants:{variant:"centered"}}),Yx=$__namespace.forwardRef(({className:e,variant:t="centered",logo:r,sideContent:a,backgroundImage:n,sidePosition:o="left",footer:s,children:l,...c},d)=>t==="split"?jsxRuntime.jsxs("div",{ref:d,className:i(pi({variant:t}),e),...c,children:[jsxRuntime.jsx("div",{className:i("hidden lg:flex lg:w-1/2 flex-col bg-primary text-primary-foreground",o==="right"&&"order-2"),children:a||jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:[r&&jsxRuntime.jsx("div",{className:"mb-8",children:r}),jsxRuntime.jsxs("div",{className:"max-w-md text-center",children:[jsxRuntime.jsx("h2",{className:"text-3xl font-bold",children:"Welcome back"}),jsxRuntime.jsx("p",{className:"mt-4 text-primary-foreground/80",children:"Sign in to your account to continue"})]})]})}),jsxRuntime.jsxs("div",{className:i("flex flex-1 flex-col lg:w-1/2",o==="right"&&"order-1"),children:[r&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-6 lg:hidden",children:r}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:jsxRuntime.jsx("div",{className:"w-full max-w-md space-y-6",children:l})}),s&&jsxRuntime.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:s})]})]}):t==="cover"?jsxRuntime.jsxs("div",{ref:d,className:i(pi({variant:t}),e),style:n?{backgroundImage:`url(${n})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,...c,children:[n&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-background/80 backdrop-blur-sm"}),jsxRuntime.jsxs("div",{className:"relative z-10 w-full max-w-md p-6",children:[r&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:r}),jsxRuntime.jsx("div",{className:"rounded-lg border bg-card p-6 shadow-lg",children:l}),s&&jsxRuntime.jsx("div",{className:"mt-6 text-center text-sm text-muted-foreground",children:s})]})]}):jsxRuntime.jsx("div",{ref:d,className:i(pi({variant:t}),e),...c,children:jsxRuntime.jsxs("div",{className:"w-full max-w-md p-6",children:[r&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:r}),jsxRuntime.jsx("div",{className:"rounded-lg border bg-card p-6 shadow-sm",children:l}),s&&jsxRuntime.jsx("div",{className:"mt-6 text-center text-sm text-muted-foreground",children:s})]})}));Yx.displayName="AuthLayout";var Ux=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("form",{ref:r,className:i("space-y-4",e),...t}));Ux.displayName="AuthForm";var Xx=$__namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("space-y-2 text-center",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),a]}));Xx.displayName="AuthHeader";var qx=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex flex-col gap-2 text-center text-sm",e),...t}));qx.displayName="AuthFooterLinks";var Zx=$__namespace.forwardRef(({className:e,text:t="or continue with",...r},a)=>jsxRuntime.jsxs("div",{ref:a,className:i("relative my-4",e),...r,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center",children:jsxRuntime.jsx("span",{className:"w-full border-t"})}),jsxRuntime.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:jsxRuntime.jsx("span",{className:"bg-card px-2 text-muted-foreground",children:t})})]}));Zx.displayName="AuthDivider";var Jx=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("grid grid-cols-2 gap-2",e),...t}));Jx.displayName="AuthSocialButtons";var fi=classVarianceAuthority.cva("w-full",{variants:{variant:{sidebar:"flex flex-col lg:flex-row gap-8",tabs:"space-y-6",stacked:"space-y-8"}},defaultVariants:{variant:"sidebar"}}),Qx=$__namespace.forwardRef(({className:e,variant:t="sidebar",navigation:r,title:a,description:n,children:o,...s},l)=>t==="sidebar"?jsxRuntime.jsxs("div",{ref:l,className:i(fi({variant:t}),e),...s,children:[r&&jsxRuntime.jsx("aside",{className:"lg:w-64 shrink-0",children:jsxRuntime.jsx("nav",{className:"flex flex-col gap-1",children:r})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-6",children:[(a||n)&&jsxRuntime.jsx(vo,{title:a,description:n}),o]})]}):t==="tabs"?jsxRuntime.jsxs("div",{ref:l,className:i(fi({variant:t}),e),...s,children:[(a||n)&&jsxRuntime.jsx(vo,{title:a,description:n}),r,jsxRuntime.jsx("div",{className:"pt-4",children:o})]}):jsxRuntime.jsxs("div",{ref:l,className:i(fi({variant:t}),e),...s,children:[(a||n)&&jsxRuntime.jsx(vo,{title:a,description:n}),o]}));Qx.displayName="SettingsLayout";var vo=$__namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("space-y-1",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),a]}));vo.displayName="SettingsHeader";var ey=$__namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("space-y-4",e),...n,children:[(t||r)&&jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h2",{className:"text-lg font-medium",children:t}),r&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:r})]}),a]}));ey.displayName="SettingsSection";var ty=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("rounded-lg border bg-card p-6",e),...t}));ty.displayName="SettingsCard";var ry=$__namespace.forwardRef(({className:e,label:t,description:r,htmlFor:a,children:n,...o},s)=>jsxRuntime.jsxs("div",{ref:s,className:i("flex flex-col gap-4 py-4 sm:flex-row sm:items-center sm:justify-between","border-b last:border-0 first:pt-0 last:pb-0",e),...o,children:[jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[t&&jsxRuntime.jsx("label",{htmlFor:a,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),r&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:r})]}),jsxRuntime.jsx("div",{className:"shrink-0",children:n})]}));ry.displayName="SettingsRow";var ay=$__namespace.forwardRef(({className:e,active:t,icon:r,children:a,...n},o)=>jsxRuntime.jsxs("button",{ref:o,type:"button",className:i("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors","hover:bg-muted",t&&"bg-muted",e),...n,children:[r&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:r}),a]}));ay.displayName="SettingsNavItem";var ny=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("h-px bg-border my-4",e),...t}));ny.displayName="SettingsSeparator";var Xa=(e,t,r)=>({duration:e,delay:t,ease:r||[.4,0,.2,1]}),oE={hidden:e=>({opacity:e}),visible:{opacity:1},exit:e=>({opacity:e})},oy=$__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,initialOpacity:l=0,onAnimationStart:c,onAnimationComplete:d},u)=>{let m=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:oE,custom:l,transition:Xa(r,a,n),className:i(o),onAnimationStart:c,onAnimationComplete:d,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&m}):m});oy.displayName="Fade";var sE=(e,t)=>{let r=typeof t=="number"?`${t}px`:t,a={up:{y:r},down:{y:`-${r}`},left:{x:r},right:{x:`-${r}`}};return {hidden:{opacity:0,...a[e]},visible:{opacity:1,x:0,y:0},exit:{opacity:0,...a[e]}}},sy=$__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,direction:l="up",offset:c=20,onAnimationStart:d,onAnimationComplete:u},m)=>{let f=$__namespace.useMemo(()=>sE(l,c),[l,c]),p=jsxRuntime.jsx(framerMotion.motion.div,{ref:m,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:f,transition:Xa(r,a,n),className:i(o),onAnimationStart:d,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});sy.displayName="Slide";var iE={center:"center center",top:"center top",bottom:"center bottom",left:"left center",right:"right center","top-left":"left top","top-right":"right top","bottom-left":"left bottom","bottom-right":"right bottom"},lE={hidden:e=>({opacity:0,scale:e}),visible:{opacity:1,scale:1},exit:e=>({opacity:0,scale:e})},iy=$__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,initialScale:l=.9,origin:c="center",onAnimationStart:d,onAnimationComplete:u},m)=>{let f=jsxRuntime.jsx(framerMotion.motion.div,{ref:m,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:lE,custom:l,transition:Xa(r,a,n),className:i(o),style:{transformOrigin:iE[c]},onAnimationStart:d,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&f}):f});iy.displayName="Scale";var ly=$__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,horizontal:s=false,startingSize:l=0,animateOpacity:c=true,onAnimationStart:d,onAnimationComplete:u},m)=>{let f=s?"width":"height",p={hidden:{[f]:l,opacity:c?0:1},visible:{[f]:"auto",opacity:1},exit:{[f]:l,opacity:c?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:m,initial:"hidden",animate:"visible",exit:"exit",variants:p,transition:Xa(r,a,n),className:i("overflow-hidden",o),onAnimationStart:d,onAnimationComplete:u,children:t})})});ly.displayName="Collapse";var cy=$__namespace.forwardRef(({show:e=true,children:t,duration:r=.4,delay:a=0,ease:n,className:o,initialWidth:s=0,initialHeight:l=0,animateOpacity:c=true,onAnimationStart:d,onAnimationComplete:u},m)=>{let f={hidden:{width:s,height:l,opacity:c?0:1},visible:{width:"auto",height:"auto",opacity:1},exit:{width:s,height:l,opacity:c?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:m,initial:"hidden",animate:"visible",exit:"exit",variants:f,transition:Xa(r,a,n),className:i("overflow-hidden",o),onAnimationStart:d,onAnimationComplete:u,children:t})})});cy.displayName="Expand";var dy=$__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,initialRotation:l=-180,finalRotation:c=0,onAnimationStart:d,onAnimationComplete:u},m)=>{let f={hidden:{opacity:0,rotate:l},visible:{opacity:1,rotate:c},exit:{opacity:0,rotate:l}},p=jsxRuntime.jsx(framerMotion.motion.div,{ref:m,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:f,transition:Xa(r,a,n),className:i(o),onAnimationStart:d,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});dy.displayName="Rotate";var uy=$__namespace.forwardRef(({front:e,back:t,direction:r="horizontal",flipped:a=false,duration:n=.6,delay:o=0,ease:s,className:l,onAnimationStart:c,onAnimationComplete:d},u)=>{let m=r==="horizontal"?"rotateY":"rotateX";return jsxRuntime.jsx("div",{ref:u,className:i("relative",l),style:{perspective:1e3},children:jsxRuntime.jsxs(framerMotion.motion.div,{animate:{[m]:a?180:0},transition:Xa(n,o,s),style:{transformStyle:"preserve-3d"},onAnimationStart:c,onAnimationComplete:d,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden"},children:e}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden",transform:`${m}(180deg)`},children:t})]})})});uy.displayName="Flip";var my=$__namespace.forwardRef(({color:e="currentColor",duration:t=.6,children:r,className:a,disabled:n=false},o)=>{let[s,l]=$__namespace.useState([]),c=$__namespace.useRef(null),d=m=>{if(n)return;let f=c.current;if(!f)return;let p=f.getBoundingClientRect(),b=m.clientX-p.left,x=m.clientY-p.top,g=Math.max(p.width,p.height)*2,v={id:Date.now(),x:b,y:x,size:g};l(y=>[...y,v]);},u=m=>{l(f=>f.filter(p=>p.id!==m));};return jsxRuntime.jsxs("div",{ref:o,className:i("relative overflow-hidden rounded-[inherit]",a),onClick:d,children:[jsxRuntime.jsx("div",{ref:c,className:"relative z-0",children:r}),jsxRuntime.jsx(framerMotion.AnimatePresence,{children:s.map(m=>jsxRuntime.jsx(framerMotion.motion.span,{initial:{scale:0,opacity:.35},animate:{scale:1,opacity:0},exit:{opacity:0},transition:{duration:t,ease:"easeOut"},onAnimationComplete:()=>u(m.id),className:"pointer-events-none absolute rounded-full",style:{left:m.x-m.size/2,top:m.y-m.size/2,width:m.size,height:m.size,backgroundColor:e}},m.id))})]})});my.displayName="Ripple";var py=$__namespace.forwardRef(({children:e,animate:t=true,height:r=10,duration:a=.5,count:n=0,className:o,triggerOnHover:s=false},l)=>{let[c,d]=$__namespace.useState(false),u=s?c:t,m={idle:{y:0},bounce:{y:[0,-r,0],transition:{duration:a,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:m,initial:"idle",animate:u?"bounce":"idle",className:i(o),onMouseEnter:()=>s&&d(true),onMouseLeave:()=>s&&d(false),children:e})});py.displayName="Bounce";var uE={subtle:[0,-2,2,-2,2,-1,1,0],normal:[0,-5,5,-5,5,-3,3,0],strong:[0,-10,10,-10,10,-5,5,0]},fy=$__namespace.forwardRef(({children:e,animate:t=true,intensity:r="normal",duration:a=.5,count:n=1,className:o,triggerOnHover:s=false},l)=>{let[c,d]=$__namespace.useState(false),u=s?c:t,m={idle:{x:0},shake:{x:uE[r],transition:{duration:a,ease:"easeInOut",repeat:n-1}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:m,initial:"idle",animate:u?"shake":"idle",className:i(o),onMouseEnter:()=>s&&d(true),onMouseLeave:()=>s&&d(false),children:e})});fy.displayName="Shake";var mE={slow:"animate-[pulse_3s_ease-in-out_infinite]",normal:"animate-[pulse_2s_ease-in-out_infinite]",fast:"animate-[pulse_1s_ease-in-out_infinite]"},gy=$__namespace.forwardRef(({children:e,animate:t=true,speed:r="normal",className:a},n)=>jsxRuntime.jsx("div",{ref:n,className:i(t&&mE[r],a),children:e}));gy.displayName="Pulse";var by=$__namespace.forwardRef(({children:e,animate:t=true,angle:r=10,duration:a=.3,count:n=0,className:o,triggerOnHover:s=false},l)=>{let[c,d]=$__namespace.useState(false),u=s?c:t,m={idle:{rotate:0},wiggle:{rotate:[0,-r,r,-r,r,0],transition:{duration:a,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:m,initial:"idle",animate:u?"wiggle":"idle",className:i(o),onMouseEnter:()=>s&&d(true),onMouseLeave:()=>s&&d(false),children:e})});by.displayName="Wiggle";var vy=$__namespace.forwardRef(({children:e,animate:t=false,scale:r=1.2,duration:a=.2,className:n,triggerOnHover:o=false,triggerOnClick:s=false},l)=>{let[c,d]=$__namespace.useState(false),u=t||c,m={type:"spring",stiffness:400,damping:17,duration:a},f=()=>{s&&(d(true),setTimeout(()=>d(false),a*1e3));};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,animate:{scale:u?r:1},transition:m,className:i(n),onMouseEnter:()=>o&&d(true),onMouseLeave:()=>o&&d(false),onClick:f,children:e})});vy.displayName="Pop";var hE=(e,t,r,a)=>{let n=e.toFixed(t),[o,s]=n.split("."),l=o.replace(/\B(?=(\d{3})+(?!\d))/g,r);return s?`${l}${a}${s}`:l},hy=$__namespace.forwardRef(({value:e,from:t=0,duration:r=2,decimals:a=0,prefix:n="",suffix:o="",separator:s=",",decimalSeparator:l=".",animateOnView:c=true,delay:d=0,className:u,onComplete:m},f)=>{let p=$__namespace.useRef(null),b=framerMotion.useInView(p,{once:true}),[x,g]=$__namespace.useState(!c);$__namespace.useEffect(()=>{if(c&&b){let w=setTimeout(()=>g(true),d*1e3);return ()=>clearTimeout(w)}},[c,b,d]);let v=framerMotion.useMotionValue(t),y=framerMotion.useTransform(v,w=>hE(w,a,s,l));return $__namespace.useEffect(()=>{if(x){let w=framerMotion.animate(v,e,{duration:r,ease:"easeOut",onComplete:m});return ()=>w.stop()}},[x,e,r,v,m]),jsxRuntime.jsx("span",{ref:p,className:i(u),children:jsxRuntime.jsxs("span",{ref:f,children:[n,jsxRuntime.jsx(framerMotion.motion.span,{children:y}),o]})})});hy.displayName="Counter";var xy=$__namespace.forwardRef(({text:e,speed:t=50,delay:r=0,pauseBetween:a=1500,cursor:n=true,cursorChar:o="|",loop:s=false,deleteSpeed:l=30,animateOnView:c=true,className:d,cursorClassName:u,onComplete:m},f)=>{let p=Array.isArray(e)?e:[e],[b,x]=$__namespace.useState(""),[g,v]=$__namespace.useState(0),[y,w]=$__namespace.useState(false),[h,C]=$__namespace.useState(false),R=$__namespace.useRef(null),M=framerMotion.useInView(R,{once:true}),[T,E]=$__namespace.useState(!c);return $__namespace.useEffect(()=>{if(c&&M){let N=setTimeout(()=>E(true),r*1e3);return ()=>clearTimeout(N)}},[c,M,r]),$__namespace.useEffect(()=>{if(!T||h)return;let N=p[g],P;return y?b.length>0?P=setTimeout(()=>{x(b.slice(0,-1));},l):(w(false),v(k=>(k+1)%p.length)):b.length<N.length?P=setTimeout(()=>{x(N.slice(0,b.length+1));},t):g<p.length-1||s?P=setTimeout(()=>{w(true);},a):(C(true),m?.()),()=>clearTimeout(P)},[T,b,g,y,h,p,t,l,a,s,m]),jsxRuntime.jsxs("span",{ref:R,className:i(d),children:[jsxRuntime.jsx("span",{ref:f,children:b}),n&&jsxRuntime.jsx(framerMotion.motion.span,{animate:{opacity:[1,0]},transition:{duration:.8,repeat:1/0,repeatType:"reverse"},className:i("ml-0.5",u),children:o})]})});xy.displayName="Typewriter";var yy=$__namespace.forwardRef(({children:e,direction:t="up",stagger:r=.05,duration:a=.5,delay:n=0,splitBy:o="word",animateOnView:s=true,className:l},c)=>{let d=$__namespace.useRef(null),u=framerMotion.useInView(d,{once:true,amount:.5}),m=s?u:true,f=typeof e=="string"?e:"",p=o==="word"?f.split(" "):f.split(""),b={up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}},x={hidden:{},visible:{transition:{staggerChildren:r,delayChildren:n}}},g={hidden:{opacity:0,...b[t]},visible:{opacity:1,x:0,y:0,transition:{duration:a,ease:"easeInOut"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:c,className:i("inline-flex flex-wrap",l),variants:x,initial:"hidden",animate:m?"visible":"hidden",children:jsxRuntime.jsx("span",{ref:d,children:p.map((v,y)=>jsxRuntime.jsxs(framerMotion.motion.span,{variants:g,className:"inline-block",children:[v,o==="word"&&y<p.length-1&&"\xA0"]},y))})})});yy.displayName="TextReveal";var Ry=$__namespace.forwardRef(({words:e,duration:t=2,animation:r="slide",animationDuration:a=.5,className:n,loop:o=true},s)=>{let[l,c]=$__namespace.useState(0);$__namespace.useEffect(()=>{if(!o&&l===e.length-1)return;let u=setInterval(()=>{c(m=>(m+1)%e.length);},t*1e3);return ()=>clearInterval(u)},[e.length,t,o,l]);let d=()=>{switch(r){case "fade":return {initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};case "slide":return {initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20}};case "scale":return {initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:1.2}};case "blur":return {initial:{opacity:0,filter:"blur(10px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(10px)"}}}};return jsxRuntime.jsx("span",{ref:s,className:i("relative inline-block",n),children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(framerMotion.motion.span,{variants:d(),initial:"initial",animate:"animate",exit:"exit",transition:{duration:a},className:"inline-block",children:e[l]},e[l])})})});Ry.displayName="WordRotate";var My=$__namespace.forwardRef(({children:e,direction:t="up",distance:r=50,duration:a=.6,delay:n=0,once:o=true,threshold:s=.1,className:l,scale:c,rotate:d,blur:u,ease:m=[.4,0,.2,1]},f)=>{let p=$__namespace.useRef(null),b=framerMotion.useInView(p,{once:o,amount:s}),g={up:{x:0,y:r},down:{x:0,y:-r},left:{x:r,y:0},right:{x:-r,y:0},none:{x:0,y:0}}[t],v={hidden:{opacity:0,x:g.x,y:g.y,scale:c??1,rotate:d??0,filter:u?`blur(${u}px)`:"blur(0px)"},visible:{opacity:1,x:0,y:0,scale:1,rotate:0,filter:"blur(0px)",transition:{duration:a,delay:n,ease:m}}};return jsxRuntime.jsx("div",{ref:p,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:f,variants:v,initial:"hidden",animate:b?"visible":"hidden",className:i(l),children:e})})});My.displayName="ScrollReveal";var Ty=$__namespace.forwardRef(({position:e="top",size:t=4,color:r="hsl(var(--primary))",backgroundColor:a="transparent",zIndex:n=50,className:o,container:s,showPercentage:l=false,useSpring:c=true},d)=>{let{scrollYProgress:u}=framerMotion.useScroll({container:s}),m=framerMotion.useSpring(u,{stiffness:100,damping:30,restDelta:.001}),f=c?m:u,p=e==="top"||e==="bottom",b={top:{top:0,left:0,right:0,height:t},bottom:{bottom:0,left:0,right:0,height:t},left:{top:0,left:0,bottom:0,width:t},right:{top:0,right:0,bottom:0,width:t}},x=p?"scaleX":"scaleY",g=p?"left":"top";return jsxRuntime.jsxs("div",{ref:d,className:i("fixed",o),style:{...b[e],zIndex:n,backgroundColor:a},children:[jsxRuntime.jsx(framerMotion.motion.div,{className:"h-full w-full",style:{[x]:f,transformOrigin:g,backgroundColor:r}}),l&&jsxRuntime.jsx(yE,{progress:f,position:e})]})});Ty.displayName="ScrollProgress";var yE=({progress:e,position:t})=>{let r=framerMotion.useTransform(e,s=>Math.round(s*100)),[a,n]=$__namespace.useState(0);return $__namespace.useEffect(()=>{let s=r.on("change",n);return ()=>s()},[r]),jsxRuntime.jsxs("span",{className:i("fixed rounded bg-background/80 px-2 py-1 text-xs font-medium backdrop-blur-sm",{top:"top-2 right-4",bottom:"bottom-2 right-4",left:"top-4 left-2",right:"top-4 right-2"}[t]),children:[a,"%"]})},Py=$__namespace.forwardRef(({children:e,speed:t=.5,direction:r="vertical",className:a,container:n},o)=>{let s=$__namespace.useRef(null),{scrollYProgress:l}=framerMotion.useScroll({target:s,container:n,offset:["start end","end start"]}),c=[-100*t,100*t],d=framerMotion.useTransform(l,[0,1],c),u=framerMotion.useSpring(d,{stiffness:100,damping:30}),m=r==="horizontal"?u:0,f=r==="vertical"?u:0;return jsxRuntime.jsx("div",{ref:s,className:i("overflow-hidden",a),children:jsxRuntime.jsx(framerMotion.motion.div,{ref:o,style:{x:m,y:f},children:e})})});Py.displayName="Parallax";var Ly=$__namespace.forwardRef(({children:e,width:t,height:r,duration:a=1.5,direction:n="right",baseColor:o="hsl(var(--muted))",highlightColor:s="hsl(var(--muted-foreground) / 0.1)",borderRadius:l,className:c,active:d=true},u)=>{let m={left:"to left",right:"to right",top:"to top",bottom:"to bottom"},f={left:"shimmer-left",right:"shimmer-right",top:"shimmer-top",bottom:"shimmer-bottom"};return jsxRuntime.jsxs("div",{ref:u,className:i("relative overflow-hidden",c),style:{width:t,height:r,borderRadius:l,backgroundColor:o},children:[e,d&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(${m[n]}, transparent, ${s}, transparent)`,animation:`${f[n]} ${a}s infinite`}}),jsxRuntime.jsx("style",{children:`
55
+ `,document.body.appendChild(ie),Y.dataTransfer.setDragImage(ie,20,15),setTimeout(()=>{document.body.removeChild(ie);},0),x(e),C?.({event:Y,node:e});},bt=Y=>{if(Y.preventDefault(),Y.stopPropagation(),!b||b.key===e.key||W)return;let Se=Y.currentTarget.getBoundingClientRect(),ie=Y.clientY-Se.top,Ke=Se.height,Ge;ie<Ke*.25?Ge=-1:ie>Ke*.75?Ge=1:Ge=0,!(h&&!h({dropNode:e,dropPosition:Ge,dragNode:b}))&&(y(e.key,Ge),R?.({event:Y,node:e}));},xa=Y=>{Y.preventDefault(),Y.stopPropagation(),!(!b||b.key===e.key)&&M?.({event:Y,node:e,expandedKeys:F()});},Fr=Y=>{Y.stopPropagation(),T?.({event:Y,node:e});},Vn=Y=>{Y.preventDefault(),Y.stopPropagation(),!(!b||b.key===e.key||W)&&(v!==null&&w(e,v),x(null),y(null,null));},Bt=Y=>{x(null),y(null,null),L?.({event:Y,node:e});},wo=Y=>{W||he&&l(e.key,e,Y);},ya=Y=>{Y.stopPropagation(),!W&&!Q&&o(e.key,e);},_=$__namespace.useMemo(()=>{if(!U||v===null)return "";switch(v){case -1:return "before:absolute before:left-0 before:right-0 before:top-0 before:h-0.5 before:bg-foreground";case 1:return "after:absolute after:left-0 after:right-0 after:bottom-0 after:h-0.5 after:bg-foreground";case 0:return "ring-2 ring-foreground ring-inset";default:return ""}},[U,v]),ae=[...a,r];return jsxRuntime.jsxs("div",{className:"relative",children:[N&&t>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a.map((Y,Se)=>!Y&&jsxRuntime.jsx("div",{className:"absolute border-l border-border",style:{left:`calc(${Se} * var(--tree-indent) + 12px)`,top:0,bottom:0}},Se)),jsxRuntime.jsx("div",{className:"absolute border-l border-border",style:{left:`calc(${t-1} * var(--tree-indent) + 12px)`,top:0,height:r?"calc(var(--tree-item-height) / 2)":"100%"}}),jsxRuntime.jsx("div",{className:"absolute border-t border-border",style:{left:`calc(${t-1} * var(--tree-indent) + 12px)`,top:"calc(var(--tree-item-height) / 2)",width:"calc(var(--tree-indent) - 4px)"}})]}),jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":Q?void 0:re,"aria-selected":he?K:void 0,"aria-disabled":W,draggable:Br,onDragStart:Or,onDragOver:bt,onDragEnter:xa,onDragLeave:Fr,onDrop:Vn,onDragEnd:Bt,onClick:wo,className:i("relative",fg({size:V,isSelected:K,isDragging:A,isDisabled:W,isHoverable:he&&!W}),_,z&&"flex-1"),style:{paddingLeft:`calc(${t} * var(--tree-indent) + 8px)`},children:[Br&&k&&ne!==false&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground cursor-grab active:cursor-grabbing",children:ne}),jsxRuntime.jsx("button",{type:"button",onClick:ya,className:i("flex-shrink-0 p-0.5 rounded hover:bg-muted/80 transition-transform",Q&&"invisible"),tabIndex:-1,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:i("h-4 w-4 transition-transform duration-200",re&&"rotate-90")})}),me&&jsxRuntime.jsx(aN,{checked:B,indeterminate:j,disabled:W,onClick:Y=>u(e.key,e,Y)}),P&&rt&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground ml-1",children:rt}),jsxRuntime.jsx("div",{className:i("flex-1 min-w-0 truncate ml-1",z&&"flex-none"),children:e.label})]}),O&&re&&jsxRuntime.jsx("div",{role:"group",children:e.children.map((Y,Se)=>jsxRuntime.jsx(bg,{node:Y,level:t+1,isLast:Se===e.children.length-1,parentIsLastPath:ae},Y.key))})]})},nN=e=>{let t=[],r=a=>{for(let n of a)t.push(n.key),n.children&&r(n.children);};return r(e),t},oN=e=>{let t=[],r=a=>{for(let n of a)t.push(n.key),n.children&&r(n.children);};return e.children&&r(e.children),t},vg=(e,t)=>{if(!e.children)return false;for(let r of e.children)if(r.key===t||vg(r,t))return true;return false},hg=$__namespace.forwardRef(({className:e,variant:t,size:r,data:a,draggable:n=false,allowDrop:o,expandedKeys:s,defaultExpandedKeys:l=[],defaultExpandAll:c=false,onExpand:d,selectable:m=true,multiple:u=false,selectedKeys:f,defaultSelectedKeys:p=[],onSelect:b,checkable:x=false,checkStrictly:g=false,checkedKeys:v,defaultCheckedKeys:y=[],onCheck:w,showLine:h=false,showIcon:C=false,showHandle:R=true,dragIcon:M,icon:T,leafIcon:L=jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),folderIcon:N=jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),folderOpenIcon:P=jsxRuntime.jsx(lucideReact.FolderOpen,{className:"h-4 w-4"}),onDragStart:k,onDragEnter:E,onDragOver:H,onDragLeave:S,onDragEnd:D,onDrop:I,blockNode:z=false,disabled:G=false,...V},F)=>{let O=$__namespace.useCallback(()=>c?new Set(nN(a)):new Set(l),[c,l,a]),[Q,re]=$__namespace.useState(O),K=s!==void 0,B=K?new Set(s):Q,j=$__namespace.useCallback((xe,We)=>{let Ot=new Set(B),Ae=!Ot.has(xe);Ae?Ot.add(xe):Ot.delete(xe),K||re(Ot),d?.(Array.from(Ot),{expanded:Ae,node:We});},[B,K,d]),[A,U]=$__namespace.useState(new Set(p)),W=f!==void 0,he=W?new Set(f):A,me=$__namespace.useCallback((xe,We,Ot)=>{let Ae=new Set(he),pr=!Ae.has(xe);u?pr?Ae.add(xe):Ae.delete(xe):(Ae.clear(),pr&&Ae.add(xe)),W||U(Ae);let Ja=[],An=Co=>{for(let Qa of Co)Ae.has(Qa.key)&&Ja.push(Qa),Qa.children&&An(Qa.children);};An(a),b?.(Array.from(Ae),{selected:pr,selectedNodes:Ja,node:We,event:Ot});},[he,u,W,b,a]),[Br,ne]=$__namespace.useState(new Set(y)),[rt,Or]=$__namespace.useState(new Set),bt=v!==void 0,xa=bt?new Set(Array.isArray(v)?v:v.checked):Br,Fr=bt&&!Array.isArray(v)?new Set(v.halfChecked):rt,Vn=$__namespace.useCallback((xe,We,Ot)=>{let Ae=new Set(xa),pr=new Set(Fr),Ja=!Ae.has(xe);if(Ja?(Ae.add(xe),pr.delete(xe)):Ae.delete(xe),!g&&We.children){let xi=oN(We);for(let Gr of xi)Ja?(Ae.add(Gr),pr.delete(Gr)):Ae.delete(Gr);}bt||(ne(Ae),Or(pr));let An=[],Co=xi=>{for(let Gr of xi)Ae.has(Gr.key)&&An.push(Gr),Gr.children&&Co(Gr.children);};Co(a);let Qa=g?{checked:Array.from(Ae),halfChecked:Array.from(pr)}:Array.from(Ae);w?.(Qa,{checked:Ja,checkedNodes:An,node:We,event:Ot,halfCheckedKeys:Array.from(pr)});},[xa,Fr,g,bt,w,a]),[Bt,wo]=$__namespace.useState(null),[ya,_]=$__namespace.useState(null),[ae,Y]=$__namespace.useState(null),Se=$__namespace.useCallback((xe,We)=>{_(xe),Y(We);},[]),ie=$__namespace.useCallback((xe,We)=>{!Bt||!I||We===0&&vg(Bt,xe.key)||I({event:{},node:xe,dragNode:Bt,dropPosition:We,dropToGap:We!==0});},[Bt,I]),Ke=$__namespace.useCallback(()=>Array.from(B),[B]),Ge={expandedKeys:B,toggleExpand:j,selectedKeys:he,handleSelect:me,selectable:m,multiple:u,checkedKeys:xa,halfCheckedKeys:Fr,handleCheck:Vn,checkable:x,checkStrictly:g,draggable:n,draggedNode:Bt,setDraggedNode:wo,dragOverKey:ya,dragOverPosition:ae,setDragOver:Se,handleDrop:ie,allowDrop:o,onDragStart:k,onDragEnter:E,onDragOver:H,onDragLeave:S,onDragEnd:D,showLine:h,showIcon:C,showHandle:R,dragIcon:M,icon:T,leafIcon:L,folderIcon:N,folderOpenIcon:P,blockNode:z,disabled:G,size:r,data:a,getAllKeys:Ke},Kr=xe=>{let We=xe.relatedTarget,Ot=xe.currentTarget;(!We||!Ot.contains(We))&&Se(null,null);};return jsxRuntime.jsx(gg.Provider,{value:Ge,children:jsxRuntime.jsx("div",{ref:F,role:"tree","aria-multiselectable":u||x,className:i(pg({variant:t,size:r,className:e})),onDragLeave:Kr,...V,children:a.map((xe,We)=>jsxRuntime.jsx(bg,{node:xe,level:0,isLast:We===a.length-1},xe.key))})})});hg.displayName="Tree";var yg=classVarianceAuthority.cva("flex rounded-md border border-input bg-background text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"},fullWidth:{true:"w-full",false:"w-fit min-w-48"}},defaultVariants:{size:"md",fullWidth:false}}),uN=({text:e,query:t})=>{if(!t)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let r=new RegExp(`(${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi"),a=e.split(r);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,o)=>r.test(n)?jsxRuntime.jsx("mark",{className:"bg-primary/20 text-foreground rounded-sm",children:n},o):jsxRuntime.jsx("span",{children:n},o))})},mN=(e,t)=>{let[r,a]=$__namespace.useState(e);return $__namespace.useEffect(()=>{let n=setTimeout(()=>{a(e);},t);return ()=>{clearTimeout(n);}},[e,t]),r},Rg=$__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,onSelect:o,options:s=[],loadOptions:l,debounceMs:c=300,minChars:d=0,placeholder:m="Type to search...",emptyText:u="No results found.",loadingText:f="Loading...",clearable:p=false,freeSolo:b=true,maxHeight:x=200,highlightMatch:g=true,fullWidth:v=false,disabled:y,...w},h)=>{let[C,R]=$__namespace.useState(false),[M,T]=$__namespace.useState(a),[L,N]=$__namespace.useState([]),[P,k]=$__namespace.useState(false),[E,H]=$__namespace.useState(false),S=$__namespace.useRef(null),D=r!==void 0?r:M,I=mN(D,c);$__namespace.useImperativeHandle(h,()=>S.current);let z=l?L:s,G=$__namespace.useMemo(()=>l?z:z.filter(W=>W.label.toLowerCase().includes(D.toLowerCase())),[z,D,l]);$__namespace.useEffect(()=>{if(!l)return;if(I.length<d){N([]);return}let W=false;return (async()=>{k(true);try{let me=await l(I);W||N(me);}catch{W||N([]);}finally{W||k(false);}})(),()=>{W=true;}},[I,l,d]);let V=W=>{r===void 0&&T(W),n?.(W);},F=W=>{let he=W.target.value;V(he),he.length>=d&&R(true);},O=W=>{V(W.label),o?.(W),R(false);},Q=()=>{V(""),S.current?.focus();},re=()=>{H(true),D.length>=d&&(G.length>0||P)&&R(true);},K=()=>{H(false);},B=W=>{W.key==="Escape"&&R(false),W.key==="ArrowDown"&&!C&&G.length>0&&R(true);},j=C&&D.length>=d,A=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4",U=p&&D?"pr-8":"pr-3";return jsxRuntime.jsxs(at,{open:j,onOpenChange:R,children:[jsxRuntime.jsx(Fo,{asChild:true,children:jsxRuntime.jsxs("div",{className:i("relative",v?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:S,type:"text",value:D,onChange:F,onFocus:re,onBlur:K,onKeyDown:B,disabled:y,placeholder:m,className:i(yg({size:t,fullWidth:v}),U,e),style:{borderColor:E?"var(--color-foreground)":void 0},role:"combobox","aria-expanded":j,"aria-autocomplete":"list","aria-controls":"autocomplete-list",...w}),p&&D&&!y&&jsxRuntime.jsx("button",{type:"button",onClick:Q,className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground","aria-label":"Clear",children:jsxRuntime.jsx(lucideReact.X,{className:A})})]})}),jsxRuntime.jsx(nt,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",onOpenAutoFocus:W=>W.preventDefault(),children:jsxRuntime.jsx(cmdk.Command,{className:"overflow-hidden rounded-md",shouldFilter:false,children:jsxRuntime.jsx(cmdk.Command.List,{id:"autocomplete-list",className:"overflow-y-auto p-1",style:{maxHeight:x},children:P?jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:i(A,"animate-spin")}),f]}):G.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:u}):G.map(W=>jsxRuntime.jsxs(cmdk.Command.Item,{value:W.value,disabled:W.disabled,onSelect:()=>O(W),className:i("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground"),children:[jsxRuntime.jsx(lucideReact.Check,{className:i("mr-2 h-4 w-4 shrink-0",D===W.label?"opacity-100":"opacity-0")}),jsxRuntime.jsx("span",{className:"flex-1",children:g?jsxRuntime.jsx(uN,{text:W.label,query:D}):W.label})]},W.value))})})})]})});Rg.displayName="Autocomplete";var ml=$__namespace.createContext(null),pl=$__namespace.createContext(null),fl=()=>{let e=$__namespace.useContext(ml);if(!e)throw new Error("useFormContext must be used within a Form");return e},Rs=()=>{let e=$__namespace.useContext(pl);if(!e)throw new Error("useFieldContext must be used within a FormField");return e},pN={required:(e="This field is required")=>({validate:t=>typeof t=="string"?t.trim().length>0:Array.isArray(t)?t.length>0:t!=null,message:e}),minLength:(e,t)=>({validate:r=>typeof r=="string"&&r.length>=e,message:t??`Must be at least ${e} characters`}),maxLength:(e,t)=>({validate:r=>typeof r=="string"&&r.length<=e,message:t??`Must be at most ${e} characters`}),min:(e,t)=>({validate:r=>typeof r=="number"&&r>=e,message:t??`Must be at least ${e}`}),max:(e,t)=>({validate:r=>typeof r=="number"&&r<=e,message:t??`Must be at most ${e}`}),email:(e="Invalid email address")=>({validate:t=>typeof t=="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),message:e}),pattern:(e,t="Invalid format")=>({validate:r=>typeof r=="string"&&e.test(r),message:t}),custom:(e,t)=>({validate:e,message:t})},wg=$__namespace.forwardRef(({defaultValues:e={},onSubmit:t,onError:r,validateOnBlur:a=true,validateOnChange:n=false,children:o,className:s,...l},c)=>{let[d,m]=$__namespace.useState(e),[u,f]=$__namespace.useState({}),[p,b]=$__namespace.useState({}),[x,g]=$__namespace.useState({}),[v,y]=$__namespace.useState(false),w=$__namespace.useRef(new Map),h=$__namespace.useCallback((S,D)=>{w.current.set(S,D);},[]),C=$__namespace.useCallback(S=>{w.current.delete(S);},[]),R=$__namespace.useCallback(S=>{let D=w.current.get(S)||[],I=d[S];for(let z of D)if(!z.validate(I))return f(G=>({...G,[S]:z.message})),false;return f(z=>({...z,[S]:null})),true},[d]),M=$__namespace.useCallback(()=>{let S=true,D={};return w.current.forEach((I,z)=>{let G=d[z];for(let V of I)if(!V.validate(G)){D[z]=V.message,S=false;break}D[z]||(D[z]=null);}),f(D),S},[d]),T=$__namespace.useCallback((S,D)=>{m(I=>({...I,[S]:D})),g(I=>({...I,[S]:true})),n&&setTimeout(()=>{R(S);},0);},[n,R]),L=$__namespace.useCallback((S,D)=>{f(I=>({...I,[S]:D}));},[]),N=$__namespace.useCallback((S,D)=>{b(I=>({...I,[S]:D})),D&&a&&R(S);},[a,R]),P=$__namespace.useCallback(S=>({value:d[S],error:u[S]??null,touched:p[S]??false,dirty:x[S]??false}),[d,u,p,x]),k=$__namespace.useCallback(()=>{m(e),f({}),b({}),g({});},[e]),E=async S=>{S.preventDefault();let D={};if(w.current.forEach((z,G)=>{D[G]=true;}),b(D),!M()){r?.(u);return}if(t){y(true);try{await t(d);}finally{y(false);}}},H={values:d,errors:u,touched:p,dirty:x,isSubmitting:v,setValue:T,setError:L,setTouched:N,validateField:R,validateAll:M,registerField:h,unregisterField:C,getFieldState:P,reset:k};return jsxRuntime.jsx(ml.Provider,{value:H,children:jsxRuntime.jsx("form",{ref:c,onSubmit:E,className:i("space-y-4",s),...l,children:o})})});wg.displayName="Form";var Cg=({name:e,rules:t=[],defaultValue:r,children:a})=>{let n=fl(),o=$__namespace.useId();$__namespace.useEffect(()=>(n.registerField(e,t),r!==void 0&&n.values[e]===void 0&&n.setValue(e,r),()=>{n.unregisterField(e);}),[e,t,r,n]);let s=n.getFieldState(e),l={name:e,id:`${o}-${e}`,value:s.value,error:s.error,touched:s.touched,dirty:s.dirty};return jsxRuntime.jsx(pl.Provider,{value:l,children:a})};Cg.displayName="FormField";var Ng=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("space-y-1.5",e),...t}));Ng.displayName="FormItem";var Mg=$__namespace.forwardRef(({className:e,required:t,children:r,...a},n)=>{let{id:o,error:s,touched:l}=Rs();return jsxRuntime.jsxs(Na,{ref:n,htmlFor:o,className:i(s&&l&&"text-danger",e),...a,children:[r,t&&jsxRuntime.jsx("span",{className:"ml-1 text-danger",children:"*"})]})});Mg.displayName="FormLabel";var Tg=({children:e})=>{let{name:t,id:r,error:a,touched:n}=Rs(),o=fl(),s=o.getFieldState(t),l=d=>{let m=d.target,u=m.type==="checkbox"?m.checked:m.value;o.setValue(t,u);},c=()=>{o.setTouched(t,true);};return $__namespace.cloneElement(e,{id:r,name:t,value:s.value??"",onChange:l,onBlur:c,"aria-invalid":a&&n?"true":void 0,"aria-describedby":a&&n?`${r}-error`:void 0})};Tg.displayName="FormControl";var Pg=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:i("text-xs text-muted-foreground",e),...t}));Pg.displayName="FormDescription";var kg=$__namespace.forwardRef(({className:e,message:t,...r},a)=>{let{id:n,error:o,touched:s}=Rs(),l=t??(s?o:null);return l?jsxRuntime.jsx("p",{ref:a,id:`${n}-error`,className:i("text-xs text-danger",e),role:"alert",...r,children:l}):null});kg.displayName="FormMessage";var Eg=classVarianceAuthority.cva("inline-flex items-center gap-3",{variants:{size:{sm:"[&_[data-user-avatar]]:h-8 [&_[data-user-avatar]]:w-8",md:"[&_[data-user-avatar]]:h-10 [&_[data-user-avatar]]:w-10",lg:"[&_[data-user-avatar]]:h-12 [&_[data-user-avatar]]:w-12"}},defaultVariants:{size:"md"}}),Dg=$__namespace.forwardRef(({className:e,size:t,name:r,description:a,avatarUrl:n,avatarFallback:o,trailing:s,...l},c)=>{let d=o||r.split(" ").map(m=>m[0]).join("").toUpperCase().slice(0,2);return jsxRuntime.jsxs("div",{ref:c,className:i(Eg({size:t,className:e})),...l,children:[jsxRuntime.jsxs(Ma,{"data-user-avatar":true,children:[n&&jsxRuntime.jsx(an,{src:n,alt:r}),jsxRuntime.jsx(Ta,{children:d})]}),jsxRuntime.jsxs("div",{className:"flex flex-col min-w-0",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium leading-none truncate",children:r}),a&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground truncate",children:a})]}),s&&jsxRuntime.jsx("div",{className:"ml-auto flex-shrink-0",children:s})]})});Dg.displayName="User";var Hg=classVarianceAuthority.cva("font-mono rounded",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-transparent",ghost:"bg-transparent",soft:"bg-muted text-foreground",surface:"bg-muted/50 text-foreground border border-border"},size:{sm:"px-1 py-0.5 text-xs",md:"px-1.5 py-0.5 text-sm",lg:"px-2 py-1 text-base"}},defaultVariants:{variant:"soft",size:"md"}}),Ig=$__namespace.forwardRef(({className:e,variant:t,size:r,...a},n)=>jsxRuntime.jsx("code",{ref:n,className:i(Hg({variant:t,size:r,className:e})),...a}));Ig.displayName="Code";var Vg=classVarianceAuthority.cva("relative flex items-center gap-2 font-mono rounded-lg border",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-transparent border-input",ghost:"bg-transparent border-transparent",soft:"bg-muted border-muted",surface:"bg-muted/50 border-border"},size:{sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-5 py-3 text-base"}},defaultVariants:{variant:"surface",size:"md"}}),Ag=$__namespace.forwardRef(({className:e,variant:t,size:r,code:a,copyable:n=true,copyLabel:o="Copy",onCopy:s,symbol:l="$",hideSymbol:c=false,...d},m)=>{let[u,f]=$__namespace.useState(false),p=async()=>{try{await navigator.clipboard.writeText(a),f(!0),s?.(),setTimeout(()=>f(!1),2e3);}catch(b){console.error("Failed to copy:",b);}};return jsxRuntime.jsxs("div",{ref:m,className:i(Vg({variant:t,size:r,className:e})),...d,children:[!c&&jsxRuntime.jsx("span",{className:"text-muted-foreground select-none",children:l}),jsxRuntime.jsx("code",{className:"flex-1 truncate",children:a}),n&&jsxRuntime.jsx("button",{type:"button",onClick:p,className:i("flex-shrink-0 rounded p-1 transition-colors","hover:bg-black/10 dark:hover:bg-white/10","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),"aria-label":u?"Copied":o,children:u?jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-4 w-4 text-muted-foreground"})})]})});Ag.displayName="Snippet";var vl=classVarianceAuthority.cva("overflow-hidden",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),zg=$__namespace.forwardRef(({className:e,radius:t,src:r,alt:a,fallback:n,showSkeleton:o=true,onLoad:s,onError:l,fit:c="cover",aspectRatio:d,style:m,...u},f)=>{let[p,b]=$__namespace.useState("loading");$__namespace.useEffect(()=>{r&&b("loading");},[r]);let x=()=>{b("loaded"),s?.();},g=()=>{b("error"),l?.();},v={contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"}[c];return p==="error"&&n?jsxRuntime.jsx("div",{className:i(vl({radius:t}),"flex items-center justify-center bg-muted",e),style:{aspectRatio:d,...m},children:n}):jsxRuntime.jsxs("div",{className:i(vl({radius:t}),"relative",e),style:{aspectRatio:d,...m},children:[p==="loading"&&o&&jsxRuntime.jsx(Vo,{className:"absolute inset-0 h-full w-full"}),jsxRuntime.jsx("img",{ref:f,src:r,alt:a,onLoad:x,onError:g,className:i("h-full w-full transition-opacity duration-300",v,p==="loading"?"opacity-0":"opacity-100"),...u})]})});zg.displayName="Image";var Fg=classVarianceAuthority.cva("flex flex-col rounded-lg border bg-background",{variants:{size:{sm:"p-1 gap-0.5",md:"p-1.5 gap-1",lg:"p-2 gap-1.5"}},defaultVariants:{size:"md"}}),Kg=classVarianceAuthority.cva("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{size:{sm:"px-2 py-1 text-xs",md:"px-3 py-1.5 text-sm",lg:"px-4 py-2 text-base"}},defaultVariants:{size:"md"}}),Gg=$__namespace.createContext({value:"",onValueChange:()=>{},multiple:false,size:"md"}),$g=$__namespace.forwardRef(({className:e,size:t="md",value:r,defaultValue:a="",onValueChange:n,multiple:o=false,children:s,...l},c)=>{let[d,m]=$__namespace.useState(a),u=r??d,f=p=>{let b;if(o){let x=Array.isArray(u)?u:[u].filter(Boolean);x.includes(p)?b=x.filter(g=>g!==p):b=[...x,p];}else b=p;n?n(b):m(b);};return jsxRuntime.jsx(Gg.Provider,{value:{value:u,onValueChange:f,multiple:o,size:t??"md"},children:jsxRuntime.jsx("div",{ref:c,role:"listbox","aria-multiselectable":o,className:i(Fg({size:t,className:e})),...l,children:s})})});$g.displayName="Listbox";var _g=$__namespace.forwardRef(({className:e,value:t,disabled:r,icon:a,description:n,children:o,...s},l)=>{let{value:c,onValueChange:d,multiple:m,size:u}=$__namespace.useContext(Gg),f=m?Array.isArray(c)&&c.includes(t):c===t,p=()=>{r||d(t);},b=x=>{(x.key==="Enter"||x.key===" ")&&!r&&(x.preventDefault(),d(t));};return jsxRuntime.jsxs("div",{ref:l,role:"option","aria-selected":f,"data-disabled":r?"":void 0,tabIndex:r?-1:0,className:i(Kg({size:u}),f&&"bg-accent text-accent-foreground",e),onClick:p,onKeyDown:b,...s,children:[a&&jsxRuntime.jsx("span",{className:"mr-2 flex-shrink-0",children:a}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:o}),n&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:n})]}),f&&jsxRuntime.jsx(lucideReact.Check,{className:"ml-2 h-4 w-4 flex-shrink-0"})]})});_g.displayName="ListboxItem";var jg=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-2",bordered:"divide-y divide-border rounded-lg border",cards:"gap-2"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),Ug=classVarianceAuthority.cva("flex items-center gap-3 bg-background transition-all",{variants:{variant:{default:"rounded-lg border p-3",bordered:"p-3",cards:"rounded-lg border p-3 shadow-sm"},size:{sm:"p-2 text-sm",md:"p-3 text-sm",lg:"p-4 text-base"},isDragging:{true:"opacity-50 scale-[1.02] shadow-lg z-10",false:""},isDragOver:{true:"border-primary border-dashed",false:""}},defaultVariants:{variant:"default",size:"md",isDragging:false,isDragOver:false}});function TN({className:e,variant:t,size:r,items:a,onReorder:n,renderItem:o,showHandle:s=true,disabled:l=false,...c},d){let[m,u]=$__namespace.useState(null),[f,p]=$__namespace.useState(null),b=(w,h)=>{l||(u(h),w.dataTransfer.effectAllowed="move",w.dataTransfer.setData("text/plain",String(h)));},x=(w,h)=>{w.preventDefault(),!(l||m===null||m===h)&&p(h);},g=()=>{p(null);},v=(w,h)=>{if(w.preventDefault(),l||m===null||m===h){u(null),p(null);return}let C=[...a],[R]=C.splice(m,1);C.splice(h,0,R),n?.(C),u(null),p(null);},y=()=>{u(null),p(null);};return jsxRuntime.jsx("div",{ref:d,className:i(jg({variant:t,size:r,className:e})),...c,children:a.map((w,h)=>jsxRuntime.jsxs("div",{draggable:!l,onDragStart:C=>b(C,h),onDragOver:C=>x(C,h),onDragLeave:g,onDrop:C=>v(C,h),onDragEnd:y,className:i(Ug({variant:t,size:r,isDragging:m===h,isDragOver:f===h}),!l&&"cursor-move"),children:[s&&jsxRuntime.jsx("div",{className:i("flex-shrink-0 text-muted-foreground",l?"opacity-30":"cursor-grab active:cursor-grabbing"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-5 w-5"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:o(w,h)})]},w.id))})}var PN=$__namespace.forwardRef(TN);var qg=classVarianceAuthority.cva("absolute inset-0 z-50 flex items-center justify-center transition-opacity",{variants:{variant:{solid:"bg-background",soft:"bg-background/80 backdrop-blur-sm",ghost:"bg-background/50"},visible:{true:"opacity-100 pointer-events-auto",false:"opacity-0 pointer-events-none"}},defaultVariants:{variant:"soft",visible:true}}),DN={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},Zg=$__namespace.forwardRef(({className:e,variant:t,loading:r=true,size:a="md",spinner:n,text:o,children:s,...l},c)=>jsxRuntime.jsxs("div",{ref:c,className:i("relative",e),...l,children:[s,jsxRuntime.jsx("div",{className:i(qg({variant:t,visible:r})),"aria-hidden":!r,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n||jsxRuntime.jsx(lucideReact.Loader2,{className:i(DN[a],"animate-spin text-primary")}),o&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:o})]})})]}));Zg.displayName="LoadingOverlay";var Jg=classVarianceAuthority.cva("fixed top-0 left-0 z-[9999] h-0.5 transition-all duration-200 ease-out",{variants:{color:{primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"}},defaultVariants:{color:"primary"}}),Qg=$__namespace.forwardRef(({className:e,color:t,isLoading:r=false,progress:a,showSpinner:n=false,...o},s)=>{let[l,c]=$__namespace.useState(0),[d,m]=$__namespace.useState(false),u=$__namespace.useRef(null);return $__namespace.useEffect(()=>{if(a!==void 0){c(a),m(a>0&&a<100);return}return r?(m(true),c(10),u.current=setInterval(()=>{c(f=>{if(f>=90)return f;let p=Math.random()*10;return Math.min(f+p,90)});},500)):l>0&&(c(100),setTimeout(()=>{m(false),c(0);},200)),()=>{u.current&&clearInterval(u.current);}},[r,a]),!d&&a===void 0||a!==void 0&&(a<=0||a>=100)?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:s,className:i(Jg({color:t,className:e})),style:{width:`${l}%`},role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,...o,children:jsxRuntime.jsx("div",{className:"absolute right-0 h-full w-24 -translate-y-1 rotate-3 bg-inherit opacity-50 blur-sm"})}),n&&d&&jsxRuntime.jsx("div",{className:"fixed top-4 right-4 z-[9999]",children:jsxRuntime.jsx("div",{className:i("h-4 w-4 animate-spin rounded-full border-2 border-transparent",t==="primary"&&"border-t-primary",t==="secondary"&&"border-t-secondary",t==="success"&&"border-t-success",t==="warning"&&"border-t-warning",t==="danger"&&"border-t-danger",t==="info"&&"border-t-info")})})]})});Qg.displayName="NProgress";var ab=classVarianceAuthority.cva("flex items-center justify-center",{variants:{variant:{spinner:"",dots:"",pulse:"",skeleton:""},size:{sm:"gap-1",md:"gap-2",lg:"gap-3"},fullScreen:{true:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",false:""}},defaultVariants:{variant:"spinner",size:"md",fullScreen:false}}),eb={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},zN={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-3 w-3"},nb=$__namespace.forwardRef(({className:e,variant:t="spinner",size:r="md",fullScreen:a,text:n,color:o="primary",...s},l)=>{let c={primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"}[o],d=()=>{switch(t){case "dots":return jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[0,1,2].map(m=>jsxRuntime.jsx("div",{className:i(zN[r||"md"],"animate-bounce rounded-full bg-current",c),style:{animationDelay:`${m*.15}s`}},m))});case "pulse":return jsxRuntime.jsx("div",{className:i(eb[r||"md"],"animate-pulse rounded-full bg-current",c)});case "skeleton":return jsxRuntime.jsxs("div",{className:"w-full space-y-2",children:[jsxRuntime.jsx("div",{className:"h-4 w-3/4 animate-pulse rounded bg-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-1/2 animate-pulse rounded bg-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-5/6 animate-pulse rounded bg-muted"})]});default:return jsxRuntime.jsx(lucideReact.Loader2,{className:i(eb[r||"md"],"animate-spin",c)})}};return jsxRuntime.jsx("div",{ref:l,className:i(ab({variant:t,size:r,fullScreen:a,className:e})),role:"status","aria-label":n||"Loading",...s,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[d(),n&&jsxRuntime.jsx("span",{className:i("text-sm",c),children:n})]})})});nb.displayName="Loading";var yl=class extends $__namespace.Component{constructor(t){super(t),this.state={hasError:false,error:null};}static getDerivedStateFromError(t){return {hasError:true,error:t}}componentDidCatch(t,r){this.props.onError?.(t,r);}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&this.props.resetKeys.some((a,n)=>a!==t.resetKeys?.[n])&&this.reset();}reset=()=>{this.props.onReset?.(),this.setState({hasError:false,error:null});};render(){return this.state.hasError?this.props.fallback?this.props.fallback:jsxRuntime.jsx(Rl,{error:this.state.error,onReset:this.reset}):this.props.children}},Rl=$__namespace.forwardRef(({error:e,onReset:t,className:r},a)=>jsxRuntime.jsxs("div",{ref:a,className:i("flex min-h-[200px] flex-col items-center justify-center gap-4 rounded-lg border border-danger/20 bg-danger/5 p-6 text-center",r),role:"alert",children:[jsxRuntime.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-danger/10",children:jsxRuntime.jsx(lucideReact.AlertTriangle,{className:"h-6 w-6 text-danger"})}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Something went wrong"}),e&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:e.message||"An unexpected error occurred"})]}),t&&jsxRuntime.jsxs("button",{onClick:t,className:"inline-flex items-center gap-2 rounded-md bg-danger px-4 py-2 text-sm font-medium text-danger-foreground hover:bg-danger/90 transition-colors",children:[jsxRuntime.jsx(lucideReact.RefreshCw,{className:"h-4 w-4"}),"Try again"]})]}));Rl.displayName="DefaultErrorFallback";var FN=yl;var sb=$__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:r,placeholder:a="Pick a date range",dateFormat:n="LLL dd, y",disabled:o=false,minDate:s,maxDate:l,numberOfMonths:c=2,className:d,align:m="start"},u)=>{let[f,p]=$__namespace.useState(false),[b,x]=$__namespace.useState(t),g=e!==void 0,v=g?e:b,y=h=>{g||x(h),r?.(h);},w=h=>{if(!h)return a;let{from:C,to:R}=h;return C&&R?`${dateFns.format(C,n)} - ${dateFns.format(R,n)}`:C?dateFns.format(C,n):a};return jsxRuntime.jsxs(at,{open:f,onOpenChange:p,children:[jsxRuntime.jsx(ht,{asChild:true,children:jsxRuntime.jsxs(J,{ref:u,variant:"bordered",disabled:o,className:i("w-full justify-start text-left font-normal",!v?.from&&"text-muted-foreground",d),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),w(v)]})}),jsxRuntime.jsx(nt,{className:"w-auto p-0",align:m,children:jsxRuntime.jsx(sn,{mode:"range",defaultMonth:v?.from,selected:v,onSelect:y,numberOfMonths:c,disabled:h=>!!(s&&h<s||l&&h>l),initialFocus:true})})]})});sb.displayName="DateRangePicker";var bn=e=>String(e).padStart(2,"0"),ib=$__namespace.forwardRef(({value:e,onValueChange:t,placeholder:r="Pick a time",use24Hour:a=true,minuteStep:n=1,disabled:o=false,className:s},l)=>{let[c,d]=$__namespace.useState(false),m=a?Array.from({length:24},(w,h)=>h):Array.from({length:12},(w,h)=>h+1),u=Array.from({length:Math.floor(60/n)},(w,h)=>h*n),f=w=>{if(!w)return r;if(a)return `${bn(w.hours)}:${bn(w.minutes)}`;let h=w.hours%12||12,C=w.hours>=12?"PM":"AM";return `${bn(h)}:${bn(w.minutes)} ${C}`},p=w=>{let h=e?.minutes??0,C=w;if(!a&&e){let R=e.hours>=12;R&&w!==12?C=w+12:!R&&w===12&&(C=0);}t?.({hours:C,minutes:h});},b=w=>{let h=e?.hours??0;t?.({hours:h,minutes:w});},x=w=>{if(!e)return;let h=e.hours;w==="AM"&&e.hours>=12?h=e.hours-12:w==="PM"&&e.hours<12&&(h=e.hours+12),t?.({hours:h,minutes:e.minutes});},g=()=>{let w=new Date;t?.({hours:w.getHours(),minutes:w.getMinutes()});},v=e?e.hours>=12?"PM":"AM":void 0,y=e?a?e.hours:e.hours%12||12:void 0;return jsxRuntime.jsxs(at,{open:c,onOpenChange:d,children:[jsxRuntime.jsx(ht,{asChild:true,children:jsxRuntime.jsxs(J,{ref:l,variant:"bordered",disabled:o,className:i("w-full justify-start text-left font-normal",!e&&"text-muted-foreground",s),children:[jsxRuntime.jsx(lucideReact.Clock,{className:"mr-2 h-4 w-4"}),f(e)]})}),jsxRuntime.jsxs(nt,{className:"w-auto p-0",align:"start",children:[jsxRuntime.jsxs("div",{className:"flex",children:[jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"Hour"}),jsxRuntime.jsx(je,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:m.map(w=>jsxRuntime.jsx(J,{variant:y===w?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>p(w),children:bn(w)},w))})})]}),jsxRuntime.jsxs("div",{className:"flex flex-col border-l",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"Min"}),jsxRuntime.jsx(je,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:u.map(w=>jsxRuntime.jsx(J,{variant:e?.minutes===w?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>b(w),children:bn(w)},w))})})]}),!a&&jsxRuntime.jsxs("div",{className:"flex flex-col border-l",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"\xA0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 p-1",children:[jsxRuntime.jsx(J,{variant:v==="AM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>x("AM"),children:"AM"}),jsxRuntime.jsx(J,{variant:v==="PM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>x("PM"),children:"PM"})]})]})]}),jsxRuntime.jsxs("div",{className:"flex justify-between border-t p-2",children:[jsxRuntime.jsx(J,{variant:"ghost",size:"sm",onClick:g,children:"Now"}),jsxRuntime.jsx(J,{size:"sm",onClick:()=>d(false),children:"Done"})]})]})]})});ib.displayName="TimePicker";var lb=classVarianceAuthority.cva("overflow-auto",{variants:{variant:{default:"",bordered:"border rounded-lg",cards:""}},defaultVariants:{variant:"default"}});function _N({className:e,variant:t,items:r,itemHeight:a,height:n,overscan:o=3,renderItem:s,getItemKey:l,gap:c=0,onScrollChange:d,...m},u){let f=$__namespace.useRef(null),[p,b]=$__namespace.useState(0);$__namespace.useImperativeHandle(u,()=>f.current);let x=r.length*(a+c)-c,g=a+c,v=Math.max(0,Math.floor(p/g)-o),y=Math.ceil(n/g)+2*o,w=Math.min(r.length-1,v+y),h=R=>{let M=R.currentTarget.scrollTop;b(M),d?.(M);},C=$__namespace.useMemo(()=>{let R=[];for(let M=v;M<=w;M++)r[M]!==void 0&&R.push({item:r[M],index:M,style:{position:"absolute",top:M*g,left:0,right:0,height:a}});return R},[r,v,w,g,a]);return jsxRuntime.jsx("div",{ref:f,className:i(lb({variant:t,className:e})),style:{height:n,position:"relative"},onScroll:h,...m,children:jsxRuntime.jsx("div",{style:{height:x,position:"relative"},children:C.map(({item:R,index:M,style:T})=>jsxRuntime.jsx("div",{style:T,children:s(R,M)},l?l(R,M):M))})})}var WN=$__namespace.forwardRef(_N);var db=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"border rounded-lg overflow-hidden"}},defaultVariants:{variant:"default"}}),Nl=classVarianceAuthority.cva("flex items-center justify-center py-4",{variants:{size:{sm:"py-2",md:"py-4",lg:"py-6"}},defaultVariants:{size:"md"}}),ub=$__namespace.forwardRef(({className:e,variant:t,size:r,children:a,onLoadMore:n,hasMore:o,isLoading:s=false,loader:l,threshold:c=100,rootMargin:d,useWindow:m=false,endMessage:u,...f},p)=>{let b=$__namespace.useRef(null),x=$__namespace.useRef(null),g=$__namespace.useRef(false);$__namespace.useImperativeHandle(p,()=>b.current),$__namespace.useEffect(()=>{let y=x.current;if(!y)return;let w=new IntersectionObserver(h=>{let[C]=h;C.isIntersecting&&o&&!s&&!g.current&&(g.current=true,Promise.resolve(n()).finally(()=>{g.current=false;}));},{root:m?null:b.current,rootMargin:d||`${c}px`,threshold:0});return w.observe(y),()=>{w.disconnect();}},[o,s,n,c,d,m]);let v=jsxRuntime.jsx("div",{className:i(Nl({size:r})),children:jsxRuntime.jsx(lucideReact.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})});return jsxRuntime.jsxs("div",{ref:b,className:i(db({variant:t,className:e})),...f,children:[a,jsxRuntime.jsx("div",{ref:x,className:"h-px w-full"}),s&&(l||v),!o&&!s&&u&&jsxRuntime.jsx("div",{className:i(Nl({size:r}),"text-muted-foreground text-sm"),children:u})]})});ub.displayName="InfiniteScroll";var ro=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("span",{ref:r,className:i("absolute h-px w-px p-0 -m-px overflow-hidden whitespace-nowrap border-0","[clip:rect(0,0,0,0)]",e),...t}));ro.displayName="VisuallyHidden";var pb={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},XN={auto:"top-[50%] translate-y-[-50%]",center:"top-[50%] translate-y-[-50%]",top:"top-4 translate-y-0",bottom:"top-auto bottom-4 translate-y-0","top-center":"top-[20%] translate-y-0","bottom-center":"top-auto bottom-[20%] translate-y-0"},fb=classVarianceAuthority.cva("fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),Ml=classVarianceAuthority.cva("fixed left-[50%] z-50 grid translate-x-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",{variants:{size:{xs:"w-full max-w-xs",sm:"w-full max-w-sm",md:"w-full max-w-md",lg:"w-full max-w-lg",xl:"w-full max-w-xl","2xl":"w-full max-w-2xl","3xl":"w-full max-w-3xl","4xl":"w-full max-w-4xl","5xl":"w-full max-w-5xl",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)] max-w-none"}},defaultVariants:{size:"md"}}),Es=$__namespace.createContext(null),za=()=>{let e=$__namespace.useContext(Es);if(!e)throw new Error("Modal components must be used within a Modal");return e},bb=$__namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a="Modal",children:n,hideCloseButton:o=false,isDismissable:s=true,isKeyboardDismissDisabled:l=false,backdrop:c="opaque",placement:d="center",scrollBehavior:m="inside",size:u,className:f},p)=>{let[b,x]=$__namespace.useState(false),g=e!==void 0,v=g?e:b,[y,w]=$__namespace.useState(false),h=$__namespace.useRef(null),C=$__namespace.useId(),R=$__namespace.useId();$__namespace.useEffect(()=>{w(true);},[]);let M=$__namespace.useCallback(P=>{g||x(P),t?.(P);},[g,t]);$__namespace.useEffect(()=>(v&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[v]),$__namespace.useEffect(()=>{if(!v||l)return;let P=k=>{k.key==="Escape"&&M(false);};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[v,l,M]);let T=P=>{s&&P.target===P.currentTarget&&M(false);},L=r?$__namespace.isValidElement(r)?$__namespace.cloneElement(r,{onClick:P=>{r.props.onClick?.(P),M(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>M(true),children:r}):null,N=()=>!y||!v?null:m==="outside"?Wo__namespace.createPortal(jsxRuntime.jsx("div",{"data-state":v?"open":"closed",className:i(fb(),pb[c],"overflow-y-auto flex items-start justify-center py-4"),onClick:T,children:jsxRuntime.jsxs("div",{ref:P=>{h.current=P,typeof p=="function"?p(P):p&&(p.current=P);},role:"dialog","aria-modal":"true","aria-labelledby":C,"aria-describedby":R,"data-state":v?"open":"closed",className:i("relative z-50 grid gap-4 border bg-background p-6 shadow-lg sm:rounded-lg dark:border-0",u==="xs"&&"w-full max-w-xs",u==="sm"&&"w-full max-w-sm",u==="md"&&"w-full max-w-md",u==="lg"&&"w-full max-w-lg",u==="xl"&&"w-full max-w-xl",u==="2xl"&&"w-full max-w-2xl",u==="3xl"&&"w-full max-w-3xl",u==="4xl"&&"w-full max-w-4xl",u==="5xl"&&"w-full max-w-5xl",u==="full"&&"w-[calc(100vw-2rem)] min-h-[calc(100vh-2rem)]",!u&&"w-full max-w-md",f),children:[jsxRuntime.jsx(ro,{children:jsxRuntime.jsx("h2",{id:C,children:a})}),n,!o&&jsxRuntime.jsx(vr,{variant:"light",className:"absolute right-4 top-4 z-10",onClick:()=>M(false)})]})}),document.body):Wo__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{"data-state":v?"open":"closed",className:i(fb(),pb[c]),onClick:T,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:P=>{h.current=P,typeof p=="function"?p(P):p&&(p.current=P);},role:"dialog","aria-modal":"true","aria-labelledby":C,"aria-describedby":R,"data-state":v?"open":"closed",className:i(Ml({size:u}),XN[d],"dark:border-0 max-h-[calc(100vh-2rem)] !flex !flex-col overflow-hidden gap-4",f),children:[jsxRuntime.jsx(ro,{children:jsxRuntime.jsx("h2",{id:C,children:a})}),n,!o&&jsxRuntime.jsx(vr,{variant:"light",className:"absolute right-4 top-4 z-10",onClick:()=>M(false)})]})]}),document.body);return jsxRuntime.jsxs(Es.Provider,{value:{open:v,onOpenChange:M,scrollBehavior:m,titleId:C,descriptionId:R},children:[L,N()]})});bb.displayName="Modal";var vb=({children:e,open:t,defaultOpen:r=false,onOpenChange:a,scrollBehavior:n="inside"})=>{let[o,s]=$__namespace.useState(r),l=t!==void 0,c=l?t:o,d=$__namespace.useId(),m=$__namespace.useId(),u=$__namespace.useCallback(f=>{l||s(f),a?.(f);},[l,a]);return jsxRuntime.jsx(Es.Provider,{value:{open:c,onOpenChange:u,scrollBehavior:n,titleId:d,descriptionId:m},children:e})};vb.displayName="ModalRoot";var hb=$__namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=za(),s=l=>{r?.(l),o(true);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(true);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});hb.displayName="ModalTrigger";var Tl=({children:e,container:t})=>{let[r,a]=$__namespace.useState(false);return $__namespace.useEffect(()=>{a(true);},[]),r?Wo__namespace.createPortal(e,t||document.body):null};Tl.displayName="ModalPortal";var Pl=$__namespace.forwardRef(({className:e,...t},r)=>{let{open:a,onOpenChange:n}=za();return a?jsxRuntime.jsx("div",{ref:r,"data-state":a?"open":"closed",className:i("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),onClick:()=>n(false),"aria-hidden":"true",...t}):null});Pl.displayName="ModalOverlay";var kl=$__namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=za(),s=l=>{r?.(l),o(false);};return e&&$__namespace.isValidElement(t)?$__namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(false);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});kl.displayName="ModalClose";var xb=$__namespace.forwardRef(({className:e,children:t,size:r,showCloseButton:a=true,onEscapeKeyDown:n,onInteractOutside:o,...s},l)=>{let{open:c,onOpenChange:d,titleId:m,descriptionId:u}=za(),[f,p]=$__namespace.useState(false);return $__namespace.useEffect(()=>{p(true);},[]),$__namespace.useEffect(()=>(c&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[c]),$__namespace.useEffect(()=>{if(!c)return;let b=x=>{x.key==="Escape"&&(n?.(),d(false));};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[c,d,n]),!f||!c?null:jsxRuntime.jsxs(Tl,{children:[jsxRuntime.jsx(Pl,{}),jsxRuntime.jsxs("div",{ref:l,role:"dialog","aria-modal":"true","aria-labelledby":m,"aria-describedby":u,"data-state":c?"open":"closed",className:i(Ml({size:r}),"top-[50%] translate-y-[-50%]",e),...s,children:[t,a&&jsxRuntime.jsx(kl,{asChild:true,children:jsxRuntime.jsx(vr,{variant:"light",className:"absolute right-4 top-4 z-10"})})]})]})});xb.displayName="ModalContent";var yb=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex-shrink-0 flex flex-col space-y-1.5 text-center sm:text-left",e),...t});yb.displayName="ModalHeader";var Rb=({className:e,children:t})=>($__namespace.useContext(Es)?.scrollBehavior??"inside")==="inside"?jsxRuntime.jsx(je,{className:i("flex-1 min-h-0 -mx-6 px-6",e),children:t}):jsxRuntime.jsx("div",{className:i(e),children:t});Rb.displayName="ModalBody";var wb=({className:e,children:t,...r})=>{let{onOpenChange:a}=za();return jsxRuntime.jsx("div",{className:i("flex-shrink-0 flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r,children:$__namespace.Children.map(t,n=>$__namespace.isValidElement(n)?$__namespace.cloneElement(n,{onClick:o=>{n.props.onClick?.(o),a(false);}}):n)})};wb.displayName="ModalFooter";var Cb=$__namespace.forwardRef(({className:e,...t},r)=>{let{titleId:a}=za();return jsxRuntime.jsx("h2",{ref:r,id:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t})});Cb.displayName="ModalTitle";var Nb=$__namespace.forwardRef(({className:e,...t},r)=>{let{descriptionId:a}=za();return jsxRuntime.jsx("p",{ref:r,id:a,className:i("text-sm text-muted-foreground",e),...t})});Nb.displayName="ModalDescription";var Pb=classVarianceAuthority.cva("h-10 w-10 rounded-full p-2",{variants:{variant:{default:"bg-muted text-foreground",danger:"bg-danger/10 text-danger",warning:"bg-warning/10 text-warning",success:"bg-success/10 text-success",info:"bg-info/10 text-info"}},defaultVariants:{variant:"default"}}),rM=classVarianceAuthority.cva("",{variants:{variant:{default:"",danger:"bg-danger text-danger-foreground hover:bg-danger/90",warning:"bg-warning text-warning-foreground hover:bg-warning/90",success:"bg-success text-success-foreground hover:bg-success/90",info:"bg-info text-info-foreground hover:bg-info/90"}},defaultVariants:{variant:"default"}}),aM=$__namespace.createContext(null),nM={default:lucideReact.HelpCircle,danger:lucideReact.XCircle,warning:lucideReact.AlertTriangle,success:lucideReact.CheckCircle,info:lucideReact.Info},Ll=$__namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a,description:n,confirmText:o="Confirm",cancelText:s="Cancel",onConfirm:l,onCancel:c,showIcon:d=true,icon:m,variant:u="default",loading:f=false,disabled:p=false,className:b},x)=>{let[g,v]=$__namespace.useState(false),[y,w]=$__namespace.useState(false),[h,C]=$__namespace.useState(false),R=e!==void 0,M=R?e:g,T=nM[u||"default"],L=$__namespace.useId(),N=$__namespace.useId();$__namespace.useEffect(()=>{C(true);},[]);let P=$__namespace.useCallback(I=>{R||v(I),t?.(I);},[R,t]);$__namespace.useEffect(()=>(M&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[M]);let k=async()=>{if(l){let I=l();if(I instanceof Promise){w(true);try{await I;}finally{w(false);}}}P(false);},E=()=>{c?.(),P(false);},H=f||y,S=r?$__namespace.isValidElement(r)?$__namespace.cloneElement(r,{onClick:I=>{r.props.onClick?.(I),P(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>P(true),children:r}):null,D=()=>!h||!M?null:Wo__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{"data-state":M?"open":"closed",className:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:x,role:"alertdialog","aria-modal":"true","aria-labelledby":L,"aria-describedby":n?N:void 0,"data-state":M?"open":"closed",className:i("fixed left-[50%] top-[50%] z-50 grid w-full max-w-md translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",b),children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:items-start",children:[d&&jsxRuntime.jsx("div",{className:i(Pb({variant:u})),children:m||jsxRuntime.jsx(T,{className:"h-6 w-6"})}),jsxRuntime.jsxs("div",{className:"flex flex-col space-y-2 text-center sm:text-left",children:[jsxRuntime.jsx("h2",{id:L,className:"text-lg font-semibold",children:a}),n&&jsxRuntime.jsx("p",{id:N,className:"text-sm text-muted-foreground",children:n})]})]}),jsxRuntime.jsxs("div",{className:"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",children:[jsxRuntime.jsx("button",{type:"button",className:i(fr({variant:"bordered"})),onClick:E,disabled:H,children:s}),jsxRuntime.jsx("button",{type:"button",className:i(fr(),rM({variant:u}),H&&"opacity-50 cursor-not-allowed"),onClick:k,disabled:p||H,children:H?jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("svg",{className:"h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Loading..."]}):o})]})]})]}),document.body);return jsxRuntime.jsxs(aM.Provider,{value:{open:M,onOpenChange:P,titleId:L,descriptionId:N},children:[S,D()]})});Ll.displayName="ConfirmDialog";function oM(){let[e,t]=$__namespace.useState({open:false,options:null,resolve:null}),r=$__namespace.useCallback(l=>new Promise(c=>{t({open:true,options:l,resolve:c});}),[]),a=$__namespace.useCallback(()=>{e.resolve?.(true),t({open:false,options:null,resolve:null});},[e.resolve]),n=$__namespace.useCallback(()=>{e.resolve?.(false),t({open:false,options:null,resolve:null});},[e.resolve]),o=$__namespace.useCallback(l=>{l||(e.resolve?.(false),t({open:false,options:null,resolve:null}));},[e.resolve]),s=$__namespace.useMemo(()=>e.options?jsxRuntime.jsx(Ll,{open:e.open,onOpenChange:o,title:e.options.title,description:e.options.description,confirmText:e.options.confirmText,cancelText:e.options.cancelText,variant:e.options.variant,onConfirm:a,onCancel:n}):null,[e,a,n,o]);return {confirm:r,ConfirmDialog:s}}var bM=e=>e.map(t=>typeof t=="string"?{src:t}:t),El=$__namespace.forwardRef(({images:e,open:t,onOpenChange:r,initialIndex:a=0,onIndexChange:n,trigger:o,showThumbnails:s=true,showZoom:l=true,showRotate:c=true,showDownload:d=true,showFullscreen:m=true,showNavigation:u=true,showCounter:f=true,closeOnBackdropClick:p=true,className:b},x)=>{let g=$__namespace.useMemo(()=>bM(e),[e]),[v,y]=$__namespace.useState(a),[w,h]=$__namespace.useState(1),[C,R]=$__namespace.useState(0),[M,T]=$__namespace.useState(false),[L,N]=$__namespace.useState(false),[P,k]=$__namespace.useState({x:0,y:0}),[E,H]=$__namespace.useState({x:0,y:0}),[S,D]=$__namespace.useState(false),I=$__namespace.useRef(null),z=g[v];$__namespace.useEffect(()=>{D(true);},[]),$__namespace.useEffect(()=>{y(a);},[a]),$__namespace.useEffect(()=>{n?.(v);},[v,n]),$__namespace.useEffect(()=>{h(1),R(0),k({x:0,y:0});},[v]),$__namespace.useEffect(()=>(t&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[t]);let G=$__namespace.useCallback(()=>{y(ne=>ne>0?ne-1:g.length-1);},[g.length]),V=$__namespace.useCallback(()=>{y(ne=>ne<g.length-1?ne+1:0);},[g.length]),F=()=>{h(ne=>Math.min(ne+.5,4));},O=()=>{h(ne=>{let rt=Math.max(ne-.5,.5);return rt===1&&k({x:0,y:0}),rt});},Q=()=>{R(ne=>(ne+90)%360);},re=async()=>{if(z)try{let rt=await(await fetch(z.src)).blob(),Or=URL.createObjectURL(rt),bt=document.createElement("a");bt.href=Or,bt.download=z.alt||`image-${v+1}`,document.body.appendChild(bt),bt.click(),document.body.removeChild(bt),URL.revokeObjectURL(Or);}catch{window.open(z.src,"_blank");}},K=async()=>{if(I.current)if(M)try{await document.exitFullscreen(),T(!1);}catch{}else try{await I.current.requestFullscreen(),T(!0);}catch{}},B=ne=>{w>1&&(N(true),H({x:ne.clientX-P.x,y:ne.clientY-P.y}));},j=ne=>{L&&w>1&&k({x:ne.clientX-E.x,y:ne.clientY-E.y});},A=()=>{N(false);},U=()=>{r?.(false);},W=ne=>{p&&ne.target===ne.currentTarget&&U();},he=$__namespace.useCallback(ne=>{switch(ne.key){case "ArrowLeft":G();break;case "ArrowRight":V();break;case "Escape":r?.(false);break;case "+":case "=":F();break;case "-":O();break}},[G,V,r]);if($__namespace.useEffect(()=>{if(t)return window.addEventListener("keydown",he),()=>window.removeEventListener("keydown",he)},[t,he]),$__namespace.useEffect(()=>{let ne=()=>{T(!!document.fullscreenElement);};return document.addEventListener("fullscreenchange",ne),()=>document.removeEventListener("fullscreenchange",ne)},[]),g.length===0)return null;let me=o?$__namespace.isValidElement(o)?$__namespace.cloneElement(o,{onClick:ne=>{o.props.onClick?.(ne),r?.(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>r?.(true),children:o}):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[me,!S||!t?null:Wo__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/90 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-state":t?"open":"closed",onClick:W}),jsxRuntime.jsxs("div",{ref:x,className:i("fixed inset-0 z-50 flex flex-col outline-none",b),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-4 text-white",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[f&&g.length>1&&jsxRuntime.jsxs("span",{className:"text-sm",children:[v+1," / ",g.length]}),z?.title&&jsxRuntime.jsx("span",{className:"ml-4 text-sm font-medium",children:z.title})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:O,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom out",children:jsxRuntime.jsx(lucideReact.ZoomOut,{className:"h-5 w-5"})}),jsxRuntime.jsxs("span",{className:"min-w-[3rem] text-center text-sm",children:[Math.round(w*100),"%"]}),jsxRuntime.jsx("button",{onClick:F,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom in",children:jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-5 w-5"})})]}),c&&jsxRuntime.jsx("button",{onClick:Q,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Rotate",children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-5 w-5"})}),d&&jsxRuntime.jsx("button",{onClick:re,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Download",children:jsxRuntime.jsx(lucideReact.Download,{className:"h-5 w-5"})}),m&&jsxRuntime.jsx("button",{onClick:K,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:M?"Exit fullscreen":"Fullscreen",children:M?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-5 w-5"})}),jsxRuntime.jsxs("button",{onClick:U,className:"rounded-full p-2 hover:bg-white/10 transition-colors ml-2",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}),jsxRuntime.jsxs("div",{ref:I,className:"relative flex-1 flex items-center justify-center overflow-hidden",onMouseDown:B,onMouseMove:j,onMouseUp:A,onMouseLeave:A,children:[u&&g.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:G,className:"absolute left-4 z-10 rounded-full bg-black/50 p-3 text-white hover:bg-black/70 transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-6 w-6"})}),jsxRuntime.jsx("button",{onClick:V,className:"absolute right-4 z-10 rounded-full bg-black/50 p-3 text-white hover:bg-black/70 transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-6 w-6"})})]}),jsxRuntime.jsx("img",{src:z?.src,alt:z?.alt||"",className:i("max-h-full max-w-full object-contain transition-transform duration-200",L?"cursor-grabbing":w>1?"cursor-grab":""),style:{transform:`translate(${P.x}px, ${P.y}px) scale(${w}) rotate(${C}deg)`},draggable:false})]}),z?.description&&jsxRuntime.jsx("div",{className:"p-4 text-center text-white text-sm",children:z.description}),s&&g.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-2 p-4 overflow-x-auto",children:g.map((ne,rt)=>jsxRuntime.jsx("button",{onClick:()=>y(rt),className:i("h-16 w-16 flex-shrink-0 overflow-hidden rounded border-2 transition-all",v===rt?"border-white opacity-100":"border-transparent opacity-50 hover:opacity-75"),children:jsxRuntime.jsx("img",{src:ne.src,alt:ne.alt||`Thumbnail ${rt+1}`,className:"h-full w-full object-cover"})},rt))})]})]}),document.body)]})});El.displayName="ImageViewer";var Lb=({children:e,images:t,index:r=0,className:a})=>{let[n,o]=$__namespace.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>o(true),className:i("cursor-zoom-in",a),children:e}),jsxRuntime.jsx(El,{images:t,open:n,onOpenChange:o,initialIndex:r})]})};Lb.displayName="ImageViewerTrigger";var Db=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted hover:bg-muted/80"},size:{sm:"h-7 w-7",md:"h-9 w-9",lg:"h-11 w-11"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary text-primary-foreground hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/90"},{variant:"solid",color:"success",className:"bg-success text-success-foreground hover:bg-success/90"},{variant:"solid",color:"warning",className:"bg-warning text-warning-foreground hover:bg-warning/90"},{variant:"solid",color:"danger",className:"bg-danger text-danger-foreground hover:bg-danger/90"},{variant:"soft",color:"primary",className:"bg-primary/10 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary/10 text-secondary-foreground hover:bg-secondary/20"},{variant:"soft",color:"success",className:"bg-success/10 text-success hover:bg-success/20"},{variant:"soft",color:"warning",className:"bg-warning/10 text-warning hover:bg-warning/20"},{variant:"soft",color:"danger",className:"bg-danger/10 text-danger hover:bg-danger/20"},{variant:"outline",color:"primary",className:"border-primary text-primary hover:bg-primary/10"},{variant:"outline",color:"success",className:"border-success text-success hover:bg-success/10"},{variant:"outline",color:"warning",className:"border-warning text-warning hover:bg-warning/10"},{variant:"outline",color:"danger",className:"border-danger text-danger hover:bg-danger/10"}],defaultVariants:{variant:"ghost",size:"md",color:"default",radius:"md"}}),Sb=$__namespace.forwardRef(({className:e,variant:t,size:r,color:a,radius:n,loading:o,disabled:s,children:l,...c},d)=>jsxRuntime.jsx("button",{ref:d,type:"button",className:i(Db({variant:t,size:r,color:a,radius:n}),e),disabled:s||o,...c,children:o?jsxRuntime.jsxs("svg",{className:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{width:"1em",height:"1em"},children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):l}));Sb.displayName="ActionIcon";var Vb=({children:e,container:t,disabled:r=false})=>{let[a,n]=$__namespace.useState(false);if($__namespace.useEffect(()=>{n(true);},[]),r||!a)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let o=null;return typeof t=="string"?o=document.querySelector(t):t instanceof Element?o=t:o=document.body,o?Wo.createPortal(e,o):jsxRuntime.jsx(jsxRuntime.Fragment,{children:e})};Vb.displayName="Portal";var Ab=classVarianceAuthority.cva("absolute rounded-full border-2 border-background",{variants:{color:{default:"bg-muted-foreground",primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",danger:"bg-danger"},size:{sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3"},position:{"top-right":"top-0 right-0 -translate-y-1/3 translate-x-1/3","top-left":"top-0 left-0 -translate-y-1/3 -translate-x-1/3","bottom-right":"bottom-0 right-0 translate-y-1/3 translate-x-1/3","bottom-left":"bottom-0 left-0 translate-y-1/3 -translate-x-1/3"},ping:{true:"",false:""}},defaultVariants:{color:"primary",size:"md",position:"top-right",ping:false}}),zb=$__namespace.forwardRef(({className:e,color:t,size:r,position:a,ping:n,content:o,show:s=true,offset:l,style:c,...d},m)=>{if(!s)return null;let u=o!=null;return jsxRuntime.jsxs("span",{ref:m,className:i(Ab({color:t,size:u?void 0:r,position:a,ping:n}),u&&"flex h-auto w-auto min-w-[1.25rem] items-center justify-center px-1 py-0.5 text-[10px] font-medium text-white",e),style:{...c,...l!==void 0&&{transform:`translate(${a?.includes("right")?l:-l}px, ${a?.includes("top")?-l:l}px)`}},...d,children:[n&&jsxRuntime.jsx("span",{className:i("absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",t==="default"&&"bg-muted-foreground",t==="primary"&&"bg-primary",t==="secondary"&&"bg-secondary",t==="success"&&"bg-success",t==="warning"&&"bg-warning",t==="danger"&&"bg-danger")}),o]})});zb.displayName="Indicator";var Bb=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("relative inline-flex",e),...r,children:t}));Bb.displayName="IndicatorWrapper";var Fb=classVarianceAuthority.cva("relative overflow-auto",{variants:{orientation:{vertical:"",horizontal:"",both:""},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"vertical",size:"md"}}),Kb=$__namespace.forwardRef(({className:e,orientation:t,size:r,hideScrollbar:a=false,shadowColor:n="rgba(0, 0, 0, 0.1)",children:o,...s},l)=>{let c=$__namespace.useRef(null),[d,m]=$__namespace.useState({top:false,bottom:false,left:false,right:false});$__namespace.useImperativeHandle(l,()=>c.current);let u=$__namespace.useCallback(()=>{let v=c.current;if(!v)return;let{scrollTop:y,scrollLeft:w,scrollHeight:h,scrollWidth:C,clientHeight:R,clientWidth:M}=v;m({top:y>0,bottom:y<h-R-1,left:w>0,right:w<C-M-1});},[]);$__namespace.useEffect(()=>{let v=c.current;if(v)return u(),v.addEventListener("scroll",u),window.addEventListener("resize",u),()=>{v.removeEventListener("scroll",u),window.removeEventListener("resize",u);}},[u]);let p={sm:"20px",md:"40px",lg:"60px"}[r??"md"],b=t==="vertical"||t==="both",x=t==="horizontal"||t==="both",g={maskImage:[b&&d.top&&`linear-gradient(to bottom, transparent, black ${p})`,b&&d.bottom&&`linear-gradient(to top, transparent, black ${p})`,x&&d.left&&`linear-gradient(to right, transparent, black ${p})`,x&&d.right&&`linear-gradient(to left, transparent, black ${p})`].filter(Boolean).join(", ")||void 0,maskComposite:"intersect",WebkitMaskComposite:"source-in"};return jsxRuntime.jsx("div",{ref:c,className:i(Fb({orientation:t,size:r}),a&&"scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",e),style:g,...s,children:o})});Kb.displayName="ScrollShadow";var Gb=classVarianceAuthority.cva("inline-flex items-center justify-center font-mono font-medium",{variants:{variant:{default:"rounded border border-border bg-muted text-muted-foreground shadow-sm",outline:"rounded border border-border text-foreground",ghost:"text-muted-foreground"},size:{sm:"min-w-[1.25rem] px-1 py-0.5 text-[10px]",md:"min-w-[1.5rem] px-1.5 py-0.5 text-xs",lg:"min-w-[2rem] px-2 py-1 text-sm"}},defaultVariants:{variant:"default",size:"md"}}),MM={cmd:"\u2318",command:"\u2318",meta:"\u2318",ctrl:"\u2303",control:"\u2303",alt:"\u2325",option:"\u2325",shift:"\u21E7",enter:"\u21B5",return:"\u21B5",backspace:"\u232B",delete:"\u2326",escape:"\u238B",esc:"\u238B",tab:"\u21E5",space:"\u2423",up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",pageup:"\u21DE",pagedown:"\u21DF",home:"\u2912",end:"\u2913",capslock:"\u21EA"},TM={cmd:"meta",command:"meta",ctrl:"control",alt:"alt",option:"alt",shift:"shift",enter:"enter",return:"enter",backspace:"backspace",delete:"delete",escape:"escape",esc:"escape",tab:"tab",space:" ",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",pageup:"pageup",pagedown:"pagedown",home:"home",end:"end"},PM=e=>{let t=e.toLowerCase();return MM[t]||e.toUpperCase()},no=e=>{let t=e.toLowerCase();return TM[t]||t},Ss=e=>{let t=no(e);return ["meta","control","alt","shift"].includes(t)},$b=$__namespace.forwardRef(({className:e,variant:t,size:r,keys:a,children:n,onPress:o,disabled:s,preventDefault:l=true,...c},d)=>{$__namespace.useEffect(()=>{if(!o||!a||s)return;let u=Array.isArray(a)?a:[a],f=u.filter(Ss).map(no),p=u.filter(x=>!Ss(x)).map(no),b=x=>{let g=f.includes("meta")===x.metaKey,v=f.includes("control")===x.ctrlKey,y=f.includes("alt")===x.altKey,w=f.includes("shift")===x.shiftKey,h=p.length===0||p.includes(x.key.toLowerCase());g&&v&&y&&w&&h&&(l&&x.preventDefault(),o(x));};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a,o,s,l]);let m=()=>a?(Array.isArray(a)?a:[a]).map((f,p)=>jsxRuntime.jsxs($__namespace.Fragment,{children:[p>0&&jsxRuntime.jsx("span",{className:"mx-0.5 text-muted-foreground",children:"+"}),jsxRuntime.jsx("span",{children:PM(f)})]},p)):n;return jsxRuntime.jsx("kbd",{ref:d,className:i(Gb({variant:t,size:r}),s&&"opacity-50",e),...c,children:m()})});$b.displayName="Kbd";function kM(e,t,r={}){let{disabled:a=false,preventDefault:n=true}=r;$__namespace.useEffect(()=>{if(a)return;let o=Array.isArray(e)?e:[e],s=o.filter(Ss).map(no),l=o.filter(d=>!Ss(d)).map(no),c=d=>{let m=s.includes("meta")===d.metaKey,u=s.includes("control")===d.ctrlKey,f=s.includes("alt")===d.altKey,p=s.includes("shift")===d.shiftKey,b=l.length===0||l.includes(d.key.toLowerCase());m&&u&&f&&p&&b&&(n&&d.preventDefault(),t(d));};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[e,t,a,n]);}var Wb=$__namespace.forwardRef(({className:e,size:t,axis:r="both",style:a,...n},o)=>{let s=typeof t=="number"?`${t}px`:t,l={...a,...t?{width:r==="vertical"?void 0:s,height:r==="horizontal"?void 0:s,minWidth:r==="vertical"?void 0:s,minHeight:r==="horizontal"?void 0:s,flexShrink:0}:{flex:"1 1 auto"}};return jsxRuntime.jsx("div",{ref:o,"aria-hidden":"true",className:i(e),style:l,...n})});Wb.displayName="Spacer";var jb=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-muted",solid:"bg-muted hover:bg-muted/80",ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-7 w-7",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),Ub=$__namespace.forwardRef(({className:e,variant:t,size:r,value:a,successDuration:n=2e3,onCopySuccess:o,onCopyError:s,copyIcon:l,successIcon:c,...d},m)=>{let[u,f]=$__namespace.useState(false),p={sm:14,md:16,lg:20}[r??"md"],b=async()=>{try{await navigator.clipboard.writeText(a),f(!0),o?.(),setTimeout(()=>{f(!1);},n);}catch(x){s?.(x);}};return jsxRuntime.jsx("button",{ref:m,type:"button",className:i(jb({variant:t,size:r}),e),onClick:b,"aria-label":u?"Copied":"Copy to clipboard",...d,children:u?c??jsxRuntime.jsx(lucideReact.Check,{className:"text-success",style:{width:p,height:p}}):l??jsxRuntime.jsx(lucideReact.Copy,{style:{width:p,height:p}})})});Ub.displayName="CopyButton";var Xb=classVarianceAuthority.cva("flex flex-col bg-background",{variants:{variant:{default:"border rounded-lg",bordered:"border-2 rounded-lg",ghost:""},size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"md"}}),zM=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],BM=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function OM(e,t,r){let a=new Date(e,t,1),n=new Date(e,t+1,0),o=[],s=a.getDay()-r;s<0&&(s+=7);for(let c=s-1;c>=0;c--)o.push(new Date(e,t,-c));for(let c=1;c<=n.getDate();c++)o.push(new Date(e,t,c));let l=42-o.length;for(let c=1;c<=l;c++)o.push(new Date(e,t+1,c));return o}function FM(e,t){let r=[],n=e.getDay()-t;n<0&&(n+=7);let o=new Date(e);o.setDate(e.getDate()-n);for(let s=0;s<7;s++){let l=new Date(o);l.setDate(o.getDate()+s),r.push(l);}return r}function Vs(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Is(e){return Vs(e,new Date)}function Yb(e,t){return e.filter(r=>{let a=new Date(r.start),n=new Date(r.end);return Vs(a,t)||Vs(n,t)||a<t&&n>t})}var qb=$__namespace.forwardRef(({className:e,variant:t,size:r,events:a=[],view:n="month",onViewChange:o,date:s,onDateChange:l,onEventClick:c,onSlotClick:d,weekStartsOn:m=0,locale:u="en-US",...f},p)=>{let[b,x]=$__namespace.useState(new Date),g=s??b,v=N=>{l?l(N):x(N);},y=m===1?BM:zM,w=()=>{let N=new Date(g);n==="month"?N.setMonth(N.getMonth()-1):n==="week"?N.setDate(N.getDate()-7):N.setDate(N.getDate()-1),v(N);},h=()=>{let N=new Date(g);n==="month"?N.setMonth(N.getMonth()+1):n==="week"?N.setDate(N.getDate()+7):N.setDate(N.getDate()+1),v(N);},C=()=>{v(new Date);},R=()=>n==="day"?g.toLocaleDateString(u,{weekday:"long",year:"numeric",month:"long",day:"numeric"}):g.toLocaleDateString(u,{year:"numeric",month:"long"}),M=()=>{let N=OM(g.getFullYear(),g.getMonth(),m);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col",children:[jsxRuntime.jsx("div",{className:"grid grid-cols-7 border-b",children:y.map(P=>jsxRuntime.jsx("div",{className:"p-2 text-center font-medium text-muted-foreground",children:P},P))}),jsxRuntime.jsx("div",{className:"flex-1 grid grid-cols-7 grid-rows-6",children:N.map((P,k)=>{let E=Yb(a,P),H=P.getMonth()===g.getMonth();return jsxRuntime.jsxs("div",{className:i("min-h-[80px] border-b border-r p-1 cursor-pointer hover:bg-accent/50 transition-colors",!H&&"bg-muted/30"),onClick:()=>d?.(P),children:[jsxRuntime.jsx("div",{className:i("flex items-center justify-center w-7 h-7 rounded-full text-sm mb-1",Is(P)&&"bg-primary text-primary-foreground",!H&&"text-muted-foreground"),children:P.getDate()}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[E.slice(0,3).map(S=>jsxRuntime.jsx("div",{className:"text-xs px-1 py-0.5 rounded truncate cursor-pointer hover:opacity-80",style:{backgroundColor:S.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),c?.(S);},children:S.title},S.id)),E.length>3&&jsxRuntime.jsxs("div",{className:"text-xs text-muted-foreground px-1",children:["+",E.length-3," more"]})]})]},k)})})]})},T=()=>{let N=FM(g,m),P=Array.from({length:24},(k,E)=>E);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[jsxRuntime.jsxs("div",{className:"grid grid-cols-[60px_repeat(7,1fr)] border-b",children:[jsxRuntime.jsx("div",{className:"p-2"}),N.map((k,E)=>jsxRuntime.jsxs("div",{className:i("p-2 text-center border-l",Is(k)&&"bg-primary/10"),children:[jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground",children:y[E]}),jsxRuntime.jsx("div",{className:i("text-lg font-semibold",Is(k)&&"text-primary"),children:k.getDate()})]},E))]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_repeat(7,1fr)]",children:P.map(k=>jsxRuntime.jsxs($__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[k.toString().padStart(2,"0"),":00"]}),N.map((E,H)=>{let S=new Date(E);S.setHours(k,0,0,0);let D=a.filter(I=>{let z=new Date(I.start);return Vs(z,E)&&z.getHours()===k});return jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>d?.(S),children:D.map(I=>jsxRuntime.jsx("div",{className:"absolute inset-x-0.5 top-0.5 text-xs px-1 py-0.5 rounded truncate cursor-pointer",style:{backgroundColor:I.color||"hsl(var(--primary))",color:"white"},onClick:z=>{z.stopPropagation(),c?.(I);},children:I.title},I.id))},H)})]},k))})})]})},L=()=>{let N=Array.from({length:24},(k,E)=>E),P=Yb(a,g);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[jsxRuntime.jsx("div",{className:"p-4 border-b text-center",children:jsxRuntime.jsx("div",{className:i("inline-flex items-center justify-center w-12 h-12 rounded-full text-2xl font-semibold",Is(g)&&"bg-primary text-primary-foreground"),children:g.getDate()})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_1fr]",children:N.map(k=>{let E=new Date(g);E.setHours(k,0,0,0);let H=P.filter(S=>new Date(S.start).getHours()===k);return jsxRuntime.jsxs($__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[k.toString().padStart(2,"0"),":00"]}),jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>d?.(E),children:H.map(S=>jsxRuntime.jsx("div",{className:"absolute inset-x-1 top-0.5 text-xs px-2 py-1 rounded truncate cursor-pointer",style:{backgroundColor:S.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),c?.(S);},children:S.title},S.id))})]},k)})})})]})};return jsxRuntime.jsxs("div",{ref:p,className:i(Xb({variant:t,size:r,className:e})),...f,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(J,{variant:"bordered",size:"sm",onClick:C,children:"Today"}),jsxRuntime.jsx(J,{variant:"ghost",size:"icon",onClick:w,children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(J,{variant:"ghost",size:"icon",onClick:h,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),jsxRuntime.jsx("h2",{className:"text-lg font-semibold ml-2",children:R()})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-1 border rounded-lg p-1",children:["month","week","day"].map(N=>jsxRuntime.jsx(J,{variant:n===N?"solid":"ghost",size:"sm",onClick:()=>o?.(N),children:N.charAt(0).toUpperCase()+N.slice(1)},N))})]}),n==="month"&&M(),n==="week"&&T(),n==="day"&&L()]})});qb.displayName="FullCalendar";var so=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"h-48",md:"h-64",lg:"h-96"}},defaultVariants:{size:"md"}}),io=["hsl(var(--primary))","hsl(var(--chart-1, 220 70% 50%))","hsl(var(--chart-2, 160 60% 45%))","hsl(var(--chart-3, 30 80% 55%))","hsl(var(--chart-4, 280 65% 60%))"],Zb=$__namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=io,showGrid:o=true,showLegend:s=true,showTooltip:l=true,xAxisKey:c="name",curveType:d="monotone",...m},u)=>jsxRuntime.jsx("div",{ref:u,className:i(so({size:t,className:e})),...m,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.LineChart,{data:r,children:[o&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:c,className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((f,p)=>jsxRuntime.jsx(recharts.Line,{type:d,dataKey:f,stroke:n[p%n.length],strokeWidth:2,dot:{fill:n[p%n.length],strokeWidth:0},activeDot:{r:6}},f))]})})}));Zb.displayName="LineChart";var Jb=$__namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=io,showGrid:o=true,showLegend:s=true,showTooltip:l=true,xAxisKey:c="name",stacked:d=false,layout:m="horizontal",...u},f)=>jsxRuntime.jsx("div",{ref:f,className:i(so({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.BarChart,{data:r,layout:m,children:[o&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:m==="horizontal"?c:void 0,type:m==="horizontal"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{dataKey:m==="vertical"?c:void 0,type:m==="vertical"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((p,b)=>jsxRuntime.jsx(recharts.Bar,{dataKey:p,fill:n[b%n.length],stackId:d?"stack":void 0,radius:[4,4,0,0]},p))]})})}));Jb.displayName="BarChart";var Qb=$__namespace.forwardRef(({className:e,size:t,data:r,dataKey:a="value",nameKey:n="name",colors:o=io,innerRadius:s=0,outerRadius:l=80,showLegend:c=true,showTooltip:d=true,showLabels:m=false,...u},f)=>jsxRuntime.jsx("div",{ref:f,className:i(so({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.PieChart,{children:[d&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"}}),c&&jsxRuntime.jsx(recharts.Legend,{}),jsxRuntime.jsx(recharts.Pie,{data:r,dataKey:a,nameKey:n,cx:"50%",cy:"50%",innerRadius:s,outerRadius:l,label:m,labelLine:m,children:r.map((p,b)=>jsxRuntime.jsx(recharts.Cell,{fill:o[b%o.length]},`cell-${b}`))})]})})}));Qb.displayName="PieChart";var ev=$__namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=io,showGrid:o=true,showLegend:s=true,showTooltip:l=true,xAxisKey:c="name",stacked:d=false,curveType:m="monotone",...u},f)=>jsxRuntime.jsx("div",{ref:f,className:i(so({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.AreaChart,{data:r,children:[o&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:c,className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((p,b)=>jsxRuntime.jsx(recharts.Area,{type:m,dataKey:p,stroke:n[b%n.length],fill:n[b%n.length],fillOpacity:.3,stackId:d?"stack":void 0},p))]})})}));ev.displayName="AreaChart";var av=classVarianceAuthority.cva("flex gap-4 overflow-x-auto p-4",{variants:{variant:{default:"bg-muted/30",bordered:"border rounded-lg bg-background",ghost:""}},defaultVariants:{variant:"default"}}),nv=classVarianceAuthority.cva("flex flex-col min-w-[280px] w-[280px] rounded-lg",{variants:{variant:{default:"bg-muted/50",bordered:"border bg-background",ghost:"bg-transparent"}},defaultVariants:{variant:"default"}}),Ol=classVarianceAuthority.cva("rounded-lg p-3 cursor-grab active:cursor-grabbing transition-all",{variants:{variant:{default:"bg-background border shadow-sm hover:shadow-md",bordered:"border-2 bg-background hover:border-primary/50",ghost:"bg-muted/50 hover:bg-muted"},isDragging:{true:"opacity-50 scale-[1.02] shadow-lg",false:""}},defaultVariants:{variant:"default",isDragging:false}});function cT({card:e,columnId:t,variant:r,renderCard:a,onCardClick:n}){let{attributes:o,listeners:s,setNodeRef:l,transform:c,transition:d,isDragging:m}=sortable.useSortable({id:e.id,data:{columnId:t}}),u={transform:utilities.CSS.Transform.toString(c),transition:d};return jsxRuntime.jsx("div",{ref:l,style:u,className:i(Ol({variant:r,isDragging:m})),onClick:()=>n?.(e,t),...o,...s,children:a?a(e,t):jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"font-medium text-sm truncate",children:e.title}),e.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description})]})]})})}function dT({column:e,variant:t,renderCard:r,onCardClick:a,onAddCard:n,showAddCard:o,columnHeight:s}){return jsxRuntime.jsxs("div",{className:i(nv({variant:t})),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-3 border-b",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[e.color&&jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),jsxRuntime.jsx("h3",{className:"font-semibold text-sm",children:e.title}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground bg-muted px-2 py-0.5 rounded-full",children:e.cards.length})]}),o&&jsxRuntime.jsx(J,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>n?.(e.id),children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}),jsxRuntime.jsx(je,{style:{height:s},children:jsxRuntime.jsxs("div",{className:"p-2 space-y-2",children:[jsxRuntime.jsx(sortable.SortableContext,{items:e.cards.map(l=>l.id),strategy:sortable.verticalListSortingStrategy,children:e.cards.map(l=>jsxRuntime.jsx(cT,{card:l,columnId:e.id,variant:t,renderCard:r,onCardClick:a},l.id))}),e.cards.length===0&&jsxRuntime.jsx("div",{className:"h-20 border-2 border-dashed rounded-lg flex items-center justify-center text-muted-foreground text-sm",children:"Drop here"})]})})]})}var ov=$__namespace.forwardRef(({className:e,variant:t,columns:r,onCardMove:a,onCardClick:n,onAddCard:o,renderCard:s,showAddCard:l=true,columnHeight:c=500,...d},m)=>{let[u,f]=$__namespace.useState(null),[p,b]=$__namespace.useState(null),x=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:8}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),g=h=>r.find(C=>C.cards.some(R=>R.id===h));return jsxRuntime.jsxs(core.DndContext,{sensors:x,collisionDetection:core.closestCorners,onDragStart:h=>{let{active:C}=h,R=g(C.id);if(R){let M=R.cards.find(T=>T.id===C.id);M&&(f(M),b(R.id));}},onDragOver:h=>{let{active:C,over:R}=h;if(!R)return;let M=C.id,T=R.id,L=g(M),N=g(T)||r.find(E=>E.id===T);if(!L||!N||L.id===N.id)return;let P=N.cards.findIndex(E=>E.id===T),k=P===-1?N.cards.length:P;a?.(M,L.id,N.id,k);},onDragEnd:h=>{let{active:C,over:R}=h;if(R&&C.id!==R.id){let M=g(C.id),T=g(R.id)||r.find(L=>L.id===R.id);if(M&&T){let L=T.cards.findIndex(P=>P.id===R.id),N=L===-1?T.cards.length:L;a?.(C.id,M.id,T.id,N);}}f(null),b(null);},children:[jsxRuntime.jsx("div",{ref:m,className:i(av({variant:t,className:e})),...d,children:r.map(h=>jsxRuntime.jsx(dT,{column:h,variant:t,renderCard:s,onCardClick:n,onAddCard:o,showAddCard:l,columnHeight:c},h.id))}),jsxRuntime.jsx(core.DragOverlay,{children:u&&p&&jsxRuntime.jsx("div",{className:i(Ol({variant:t,isDragging:true})),children:s?s(u,p):jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"font-medium text-sm truncate",children:u.title}),u.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:u.description})]})]})})})]})});ov.displayName="KanbanBoard";var sv=classVarianceAuthority.cva("relative",{variants:{variant:{default:"",bordered:"border rounded-lg p-4",cards:"rounded-lg"}},defaultVariants:{variant:"default"}}),iv=$__namespace.createContext(null);function Fl(){let e=$__namespace.useContext(iv);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var lv=$__namespace.forwardRef(({className:e,variant:t,children:r,opts:a,plugins:n,orientation:o="horizontal",showArrows:s=true,showDots:l=true,setApi:c,...d},m)=>{let[u,f]=uT__default.default({...a,axis:o==="horizontal"?"x":"y"},n),[p,b]=$__namespace.useState(false),[x,g]=$__namespace.useState(false),[v,y]=$__namespace.useState(0),[w,h]=$__namespace.useState([]),C=$__namespace.useCallback(N=>{N&&(y(N.selectedScrollSnap()),b(N.canScrollPrev()),g(N.canScrollNext()));},[]),R=$__namespace.useCallback(()=>{f?.scrollPrev();},[f]),M=$__namespace.useCallback(()=>{f?.scrollNext();},[f]),T=$__namespace.useCallback(N=>{f?.scrollTo(N);},[f]),L=$__namespace.useCallback(N=>{N.key==="ArrowLeft"?(N.preventDefault(),R()):N.key==="ArrowRight"&&(N.preventDefault(),M());},[R,M]);return $__namespace.useEffect(()=>{!f||!c||c(f);},[f,c]),$__namespace.useEffect(()=>{if(f)return h(f.scrollSnapList()),C(f),f.on("reInit",C),f.on("select",C),()=>{f?.off("select",C);}},[f,C]),jsxRuntime.jsx(iv.Provider,{value:{carouselRef:u,api:f,scrollPrev:R,scrollNext:M,canScrollPrev:p,canScrollNext:x,selectedIndex:v,scrollSnaps:w,scrollTo:T},children:jsxRuntime.jsxs("div",{ref:m,className:i(sv({variant:t,className:e})),onKeyDownCapture:L,role:"region","aria-roledescription":"carousel",...d,children:[jsxRuntime.jsx("div",{ref:u,className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:i("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col"),children:r})}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Kl,{}),jsxRuntime.jsx(Gl,{})]}),l&&w.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:w.map((N,P)=>jsxRuntime.jsx("button",{className:i("w-2 h-2 rounded-full transition-all",P===v?"bg-primary w-4":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),onClick:()=>T(P),"aria-label":`Go to slide ${P+1}`},P))})]})})});lv.displayName="Carousel";var cv=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex",e),...t}));cv.displayName="CarouselContent";var dv=$__namespace.forwardRef(({className:e,basis:t="basis-full",...r},a)=>jsxRuntime.jsx("div",{ref:a,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 pl-4",t,e),...r}));dv.displayName="CarouselItem";var Kl=$__namespace.forwardRef(({className:e,variant:t="bordered",size:r="icon",...a},n)=>{let{scrollPrev:o,canScrollPrev:s}=Fl();return jsxRuntime.jsxs(J,{ref:n,variant:t,size:r,className:i("absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:o,...a,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Kl.displayName="CarouselPrevious";var Gl=$__namespace.forwardRef(({className:e,variant:t="bordered",size:r="icon",...a},n)=>{let{scrollNext:o,canScrollNext:s}=Fl();return jsxRuntime.jsxs(J,{ref:n,variant:t,size:r,className:i("absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:o,...a,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next slide"})]})});Gl.displayName="CarouselNext";var uv=classVarianceAuthority.cva("flex flex-col bg-popover border rounded-lg shadow-md",{variants:{size:{sm:"w-64 h-72",md:"w-80 h-96",lg:"w-96 h-[480px]"}},defaultVariants:{size:"md"}}),Ks={recent:{icon:"\u{1F550}",name:"Recent"},smileys:{icon:"\u{1F600}",name:"Smileys & Emotion"},people:{icon:"\u{1F44B}",name:"People & Body"},animals:{icon:"\u{1F43B}",name:"Animals & Nature"},food:{icon:"\u{1F354}",name:"Food & Drink"},travel:{icon:"\u{1F697}",name:"Travel & Places"},activities:{icon:"\u26BD",name:"Activities"},objects:{icon:"\u{1F4A1}",name:"Objects"},symbols:{icon:"\u2764\uFE0F",name:"Symbols"},flags:{icon:"\u{1F3F3}\uFE0F",name:"Flags"}},_l={smileys:["\u{1F600}","\u{1F603}","\u{1F604}","\u{1F601}","\u{1F606}","\u{1F605}","\u{1F923}","\u{1F602}","\u{1F642}","\u{1F643}","\u{1F609}","\u{1F60A}","\u{1F607}","\u{1F970}","\u{1F60D}","\u{1F929}","\u{1F618}","\u{1F617}","\u263A\uFE0F","\u{1F61A}","\u{1F60B}","\u{1F61B}","\u{1F61C}","\u{1F92A}","\u{1F61D}","\u{1F911}","\u{1F917}","\u{1F92D}","\u{1F92B}","\u{1F914}","\u{1F910}","\u{1F928}","\u{1F610}","\u{1F611}","\u{1F636}","\u{1F60F}","\u{1F612}","\u{1F644}","\u{1F62C}","\u{1F925}","\u{1F60C}","\u{1F614}","\u{1F62A}","\u{1F924}","\u{1F634}","\u{1F637}","\u{1F912}","\u{1F915}","\u{1F922}","\u{1F92E}","\u{1F927}","\u{1F975}","\u{1F976}","\u{1F974}","\u{1F635}","\u{1F92F}","\u{1F920}","\u{1F973}","\u{1F978}","\u{1F60E}","\u{1F913}","\u{1F9D0}","\u{1F615}","\u{1F61F}","\u{1F641}","\u2639\uFE0F","\u{1F62E}","\u{1F62F}","\u{1F632}","\u{1F633}","\u{1F97A}","\u{1F626}","\u{1F627}","\u{1F628}","\u{1F630}","\u{1F625}","\u{1F622}","\u{1F62D}","\u{1F631}","\u{1F616}","\u{1F623}","\u{1F61E}","\u{1F613}","\u{1F629}","\u{1F62B}","\u{1F971}","\u{1F624}","\u{1F621}","\u{1F620}","\u{1F92C}","\u{1F608}","\u{1F47F}","\u{1F480}","\u2620\uFE0F","\u{1F4A9}","\u{1F921}","\u{1F479}","\u{1F47A}","\u{1F47B}","\u{1F47D}"],people:["\u{1F44B}","\u{1F91A}","\u{1F590}\uFE0F","\u270B","\u{1F596}","\u{1F44C}","\u{1F90C}","\u{1F90F}","\u270C\uFE0F","\u{1F91E}","\u{1F91F}","\u{1F918}","\u{1F919}","\u{1F448}","\u{1F449}","\u{1F446}","\u{1F595}","\u{1F447}","\u261D\uFE0F","\u{1F44D}","\u{1F44E}","\u270A","\u{1F44A}","\u{1F91B}","\u{1F91C}","\u{1F44F}","\u{1F64C}","\u{1F450}","\u{1F932}","\u{1F91D}","\u{1F64F}","\u270D\uFE0F","\u{1F485}","\u{1F933}","\u{1F4AA}","\u{1F9BE}","\u{1F9BF}","\u{1F9B5}","\u{1F9B6}","\u{1F442}","\u{1F9BB}","\u{1F443}","\u{1F9E0}","\u{1FAC0}","\u{1FAC1}","\u{1F9B7}","\u{1F9B4}","\u{1F440}","\u{1F441}\uFE0F","\u{1F445}","\u{1F444}","\u{1F476}","\u{1F9D2}","\u{1F466}","\u{1F467}","\u{1F9D1}","\u{1F471}","\u{1F468}","\u{1F9D4}","\u{1F469}","\u{1F9D3}","\u{1F474}","\u{1F475}","\u{1F64D}","\u{1F64E}","\u{1F645}","\u{1F646}","\u{1F481}","\u{1F64B}","\u{1F9CF}","\u{1F647}","\u{1F926}","\u{1F937}","\u{1F46E}","\u{1F575}\uFE0F","\u{1F482}","\u{1F977}","\u{1F477}","\u{1F934}","\u{1F478}"],animals:["\u{1F436}","\u{1F431}","\u{1F42D}","\u{1F439}","\u{1F430}","\u{1F98A}","\u{1F43B}","\u{1F43C}","\u{1F428}","\u{1F42F}","\u{1F981}","\u{1F42E}","\u{1F437}","\u{1F43D}","\u{1F438}","\u{1F435}","\u{1F648}","\u{1F649}","\u{1F64A}","\u{1F412}","\u{1F414}","\u{1F427}","\u{1F426}","\u{1F424}","\u{1F423}","\u{1F425}","\u{1F986}","\u{1F985}","\u{1F989}","\u{1F987}","\u{1F43A}","\u{1F417}","\u{1F434}","\u{1F984}","\u{1F41D}","\u{1FAB1}","\u{1F41B}","\u{1F98B}","\u{1F40C}","\u{1F41E}","\u{1F41C}","\u{1FAB0}","\u{1FAB2}","\u{1FAB3}","\u{1F99F}","\u{1F997}","\u{1F577}\uFE0F","\u{1F578}\uFE0F","\u{1F982}","\u{1F422}","\u{1F40D}","\u{1F98E}","\u{1F996}","\u{1F995}","\u{1F419}","\u{1F991}","\u{1F990}","\u{1F99E}","\u{1F980}","\u{1F421}","\u{1F420}","\u{1F41F}","\u{1F42C}","\u{1F433}","\u{1F40B}","\u{1F988}","\u{1F40A}","\u{1F405}","\u{1F406}","\u{1F993}","\u{1F98D}","\u{1F9A7}","\u{1F9A3}","\u{1F418}","\u{1F99B}","\u{1F98F}","\u{1F42A}","\u{1F42B}","\u{1F992}","\u{1F998}"],food:["\u{1F347}","\u{1F348}","\u{1F349}","\u{1F34A}","\u{1F34B}","\u{1F34C}","\u{1F34D}","\u{1F96D}","\u{1F34E}","\u{1F34F}","\u{1F350}","\u{1F351}","\u{1F352}","\u{1F353}","\u{1FAD0}","\u{1F95D}","\u{1F345}","\u{1FAD2}","\u{1F965}","\u{1F951}","\u{1F346}","\u{1F954}","\u{1F955}","\u{1F33D}","\u{1F336}\uFE0F","\u{1FAD1}","\u{1F952}","\u{1F96C}","\u{1F966}","\u{1F9C4}","\u{1F9C5}","\u{1F344}","\u{1F95C}","\u{1F330}","\u{1F35E}","\u{1F950}","\u{1F956}","\u{1FAD3}","\u{1F968}","\u{1F96F}","\u{1F95E}","\u{1F9C7}","\u{1F9C0}","\u{1F356}","\u{1F357}","\u{1F969}","\u{1F953}","\u{1F354}","\u{1F35F}","\u{1F355}","\u{1F32D}","\u{1F96A}","\u{1F32E}","\u{1F32F}","\u{1FAD4}","\u{1F959}","\u{1F9C6}","\u{1F95A}","\u{1F373}","\u{1F958}","\u{1F372}","\u{1FAD5}","\u{1F963}","\u{1F957}","\u{1F37F}","\u{1F9C8}","\u{1F9C2}","\u{1F96B}","\u{1F371}","\u{1F358}","\u{1F359}","\u{1F35A}","\u{1F35B}","\u{1F35C}","\u{1F35D}","\u{1F360}","\u{1F362}","\u{1F363}","\u{1F364}","\u{1F365}"],travel:["\u{1F697}","\u{1F695}","\u{1F699}","\u{1F68C}","\u{1F68E}","\u{1F3CE}\uFE0F","\u{1F693}","\u{1F691}","\u{1F692}","\u{1F690}","\u{1F6FB}","\u{1F69A}","\u{1F69B}","\u{1F69C}","\u{1F9AF}","\u{1F9BD}","\u{1F9BC}","\u{1F6F4}","\u{1F6B2}","\u{1F6F5}","\u{1F3CD}\uFE0F","\u{1F6FA}","\u{1F6A8}","\u{1F694}","\u{1F68D}","\u{1F698}","\u{1F696}","\u{1F6A1}","\u{1F6A0}","\u{1F69F}","\u{1F683}","\u{1F68B}","\u{1F69E}","\u{1F69D}","\u{1F684}","\u{1F685}","\u{1F688}","\u{1F682}","\u{1F686}","\u{1F687}","\u{1F68A}","\u{1F689}","\u2708\uFE0F","\u{1F6EB}","\u{1F6EC}","\u{1F6E9}\uFE0F","\u{1F4BA}","\u{1F6F0}\uFE0F","\u{1F680}","\u{1F6F8}","\u{1F681}","\u{1F6F6}","\u26F5","\u{1F6A4}","\u{1F6E5}\uFE0F","\u{1F6F3}\uFE0F","\u26F4\uFE0F","\u{1F6A2}","\u2693","\u{1FA9D}","\u26FD","\u{1F6A7}","\u{1F6A6}","\u{1F6A5}","\u{1F68F}","\u{1F5FA}\uFE0F","\u{1F5FF}","\u{1F5FD}","\u{1F5FC}","\u{1F3F0}","\u{1F3EF}","\u{1F3DF}\uFE0F","\u{1F3A1}","\u{1F3A2}","\u{1F3A0}","\u26F2","\u26F1\uFE0F","\u{1F3D6}\uFE0F","\u{1F3DD}\uFE0F","\u{1F3DC}\uFE0F"],activities:["\u26BD","\u{1F3C0}","\u{1F3C8}","\u26BE","\u{1F94E}","\u{1F3BE}","\u{1F3D0}","\u{1F3C9}","\u{1F94F}","\u{1F3B1}","\u{1FA80}","\u{1F3D3}","\u{1F3F8}","\u{1F3D2}","\u{1F3D1}","\u{1F94D}","\u{1F3CF}","\u{1FA83}","\u{1F945}","\u26F3","\u{1FA81}","\u{1F3F9}","\u{1F3A3}","\u{1F93F}","\u{1F94A}","\u{1F94B}","\u{1F3BD}","\u{1F6F9}","\u{1F6FC}","\u{1F6F7}","\u26F8\uFE0F","\u{1F94C}","\u{1F3BF}","\u26F7\uFE0F","\u{1F3C2}","\u{1FA82}","\u{1F3CB}\uFE0F","\u{1F93C}","\u{1F938}","\u26F9\uFE0F","\u{1F93A}","\u{1F93E}","\u{1F3CC}\uFE0F","\u{1F3C7}","\u26D1\uFE0F","\u{1F9D8}","\u{1F3C4}","\u{1F3CA}","\u{1F93D}","\u{1F6A3}","\u{1F9D7}","\u{1F6B5}","\u{1F6B4}","\u{1F3C6}","\u{1F947}","\u{1F948}","\u{1F949}","\u{1F3C5}","\u{1F396}\uFE0F","\u{1F3F5}\uFE0F","\u{1F397}\uFE0F","\u{1F3AB}","\u{1F39F}\uFE0F","\u{1F3AA}","\u{1F939}","\u{1F3AD}","\u{1FA70}","\u{1F3A8}","\u{1F3AC}","\u{1F3A4}","\u{1F3A7}","\u{1F3BC}","\u{1F3B9}","\u{1F941}","\u{1FA98}","\u{1F3B7}","\u{1F3BA}","\u{1FA97}","\u{1F3B8}","\u{1FA95}"],objects:["\u231A","\u{1F4F1}","\u{1F4F2}","\u{1F4BB}","\u2328\uFE0F","\u{1F5A5}\uFE0F","\u{1F5A8}\uFE0F","\u{1F5B1}\uFE0F","\u{1F5B2}\uFE0F","\u{1F579}\uFE0F","\u{1F5DC}\uFE0F","\u{1F4BD}","\u{1F4BE}","\u{1F4BF}","\u{1F4C0}","\u{1F4FC}","\u{1F4F7}","\u{1F4F8}","\u{1F4F9}","\u{1F3A5}","\u{1F4FD}\uFE0F","\u{1F39E}\uFE0F","\u{1F4DE}","\u260E\uFE0F","\u{1F4DF}","\u{1F4E0}","\u{1F4FA}","\u{1F4FB}","\u{1F399}\uFE0F","\u{1F39A}\uFE0F","\u{1F39B}\uFE0F","\u{1F9ED}","\u23F1\uFE0F","\u23F2\uFE0F","\u23F0","\u{1F570}\uFE0F","\u231B","\u23F3","\u{1F4E1}","\u{1F50B}","\u{1F50C}","\u{1F4A1}","\u{1F526}","\u{1F56F}\uFE0F","\u{1FA94}","\u{1F9EF}","\u{1F6E2}\uFE0F","\u{1F4B8}","\u{1F4B5}","\u{1F4B4}","\u{1F4B6}","\u{1F4B7}","\u{1FA99}","\u{1F4B0}","\u{1F4B3}","\u{1F48E}","\u2696\uFE0F","\u{1FA9C}","\u{1F9F0}","\u{1FA9B}","\u{1F527}","\u{1F528}","\u2692\uFE0F","\u{1F6E0}\uFE0F","\u26CF\uFE0F","\u{1FA9A}","\u{1F529}","\u2699\uFE0F","\u{1FAA4}","\u{1F9F1}","\u26D3\uFE0F","\u{1F9F2}","\u{1F52B}","\u{1F4A3}","\u{1F9E8}","\u{1FA93}","\u{1F52A}","\u{1F5E1}\uFE0F","\u2694\uFE0F","\u{1F6E1}\uFE0F"],symbols:["\u2764\uFE0F","\u{1F9E1}","\u{1F49B}","\u{1F49A}","\u{1F499}","\u{1F49C}","\u{1F5A4}","\u{1F90D}","\u{1F90E}","\u{1F494}","\u2763\uFE0F","\u{1F495}","\u{1F49E}","\u{1F493}","\u{1F497}","\u{1F496}","\u{1F498}","\u{1F49D}","\u{1F49F}","\u262E\uFE0F","\u271D\uFE0F","\u262A\uFE0F","\u{1F549}\uFE0F","\u2638\uFE0F","\u2721\uFE0F","\u{1F52F}","\u{1F54E}","\u262F\uFE0F","\u2626\uFE0F","\u{1F6D0}","\u26CE","\u2648","\u2649","\u264A","\u264B","\u264C","\u264D","\u264E","\u264F","\u2650","\u2651","\u2652","\u2653","\u{1F194}","\u269B\uFE0F","\u{1F251}","\u2622\uFE0F","\u2623\uFE0F","\u{1F4F4}","\u{1F4F3}","\u{1F236}","\u{1F21A}","\u{1F238}","\u{1F23A}","\u{1F237}\uFE0F","\u2734\uFE0F","\u{1F19A}","\u{1F4AE}","\u{1F250}","\u3299\uFE0F","\u3297\uFE0F","\u{1F234}","\u{1F235}","\u{1F239}","\u{1F232}","\u{1F170}\uFE0F","\u{1F171}\uFE0F","\u{1F18E}","\u{1F191}","\u{1F17E}\uFE0F","\u{1F198}","\u274C","\u2B55","\u{1F6D1}","\u26D4","\u{1F4DB}","\u{1F6AB}","\u{1F4AF}","\u{1F4A2}","\u2668\uFE0F"],flags:["\u{1F3F3}\uFE0F","\u{1F3F4}","\u{1F3C1}","\u{1F6A9}","\u{1F3F3}\uFE0F\u200D\u{1F308}","\u{1F3F3}\uFE0F\u200D\u26A7\uFE0F","\u{1F1FA}\u{1F1F3}","\u{1F1E6}\u{1F1EB}","\u{1F1E6}\u{1F1F1}","\u{1F1E9}\u{1F1FF}","\u{1F1E6}\u{1F1F8}","\u{1F1E6}\u{1F1E9}","\u{1F1E6}\u{1F1F4}","\u{1F1E6}\u{1F1EE}","\u{1F1E6}\u{1F1F6}","\u{1F1E6}\u{1F1EC}","\u{1F1E6}\u{1F1F7}","\u{1F1E6}\u{1F1F2}","\u{1F1E6}\u{1F1FC}","\u{1F1E6}\u{1F1FA}","\u{1F1E6}\u{1F1F9}","\u{1F1E6}\u{1F1FF}","\u{1F1E7}\u{1F1F8}","\u{1F1E7}\u{1F1ED}","\u{1F1E7}\u{1F1E9}","\u{1F1E7}\u{1F1E7}","\u{1F1E7}\u{1F1FE}","\u{1F1E7}\u{1F1EA}","\u{1F1E7}\u{1F1FF}","\u{1F1E7}\u{1F1EF}","\u{1F1E7}\u{1F1F2}","\u{1F1E7}\u{1F1F9}","\u{1F1E7}\u{1F1F4}","\u{1F1E7}\u{1F1E6}","\u{1F1E7}\u{1F1FC}","\u{1F1E7}\u{1F1F7}","\u{1F1E7}\u{1F1F3}","\u{1F1E7}\u{1F1EC}","\u{1F1E7}\u{1F1EB}","\u{1F1E7}\u{1F1EE}","\u{1F1E8}\u{1F1FB}","\u{1F1F0}\u{1F1ED}","\u{1F1E8}\u{1F1F2}","\u{1F1E8}\u{1F1E6}","\u{1F1E8}\u{1F1EB}","\u{1F1F9}\u{1F1E9}","\u{1F1E8}\u{1F1F1}","\u{1F1E8}\u{1F1F3}","\u{1F1E8}\u{1F1F4}","\u{1F1F0}\u{1F1F2}","\u{1F1E8}\u{1F1EC}","\u{1F1E8}\u{1F1E9}","\u{1F1E8}\u{1F1F7}","\u{1F1ED}\u{1F1F7}","\u{1F1E8}\u{1F1FA}","\u{1F1E8}\u{1F1FE}","\u{1F1E8}\u{1F1FF}","\u{1F1E9}\u{1F1F0}","\u{1F1E9}\u{1F1EF}","\u{1F1E9}\u{1F1F2}","\u{1F1E9}\u{1F1F4}","\u{1F1EA}\u{1F1E8}","\u{1F1EA}\u{1F1EC}","\u{1F1F8}\u{1F1FB}","\u{1F1EC}\u{1F1F6}","\u{1F1EA}\u{1F1F7}","\u{1F1EA}\u{1F1EA}","\u{1F1EA}\u{1F1F9}","\u{1F1EA}\u{1F1FA}","\u{1F1EB}\u{1F1EF}","\u{1F1EB}\u{1F1EE}","\u{1F1EB}\u{1F1F7}","\u{1F1EC}\u{1F1E6}","\u{1F1EC}\u{1F1F2}","\u{1F1EC}\u{1F1EA}","\u{1F1E9}\u{1F1EA}","\u{1F1EC}\u{1F1ED}","\u{1F1EC}\u{1F1F7}","\u{1F1EC}\u{1F1F9}","\u{1F1EC}\u{1F1F3}"]},mv=$__namespace.forwardRef(({className:e,size:t,onEmojiSelect:r,recentEmojis:a=[],defaultCategory:n="smileys",showSearch:o=true,showCategories:s=true,...l},c)=>{let[d,m]=$__namespace.useState(a.length>0?"recent":n),[u,f]=$__namespace.useState(""),b=u?Object.values(_l).flat().filter(g=>g.toLowerCase().includes(u.toLowerCase())):d==="recent"?a:_l[d]||[],x=g=>{r?.(g);};return jsxRuntime.jsxs("div",{ref:c,className:i(uv({size:t,className:e})),...l,children:[o&&jsxRuntime.jsx("div",{className:"p-2 border-b",children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(lucideReact.Search,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),jsxRuntime.jsx(Eo,{placeholder:"Search emojis...",value:u,onChange:g=>f(g.target.value),className:"pl-8 h-8"})]})}),s&&!u&&jsxRuntime.jsx("div",{className:"flex border-b px-1",children:Object.entries(Ks).map(([g,{icon:v}])=>g==="recent"&&a.length===0?null:jsxRuntime.jsx("button",{className:i("flex-1 p-2 text-lg hover:bg-accent rounded transition-colors",d===g&&"bg-accent"),onClick:()=>m(g),title:Ks[g].name,children:v},g))}),!u&&jsxRuntime.jsx("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground",children:Ks[d].name}),jsxRuntime.jsx(je,{className:"flex-1",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-8 gap-1 p-2",children:[b.map((g,v)=>jsxRuntime.jsx("button",{className:"w-8 h-8 flex items-center justify-center text-xl hover:bg-accent rounded transition-colors",onClick:()=>x(g),children:g},`${g}-${v}`)),b.length===0&&jsxRuntime.jsx("div",{className:"col-span-8 py-8 text-center text-muted-foreground text-sm",children:"No emojis found"})]})})]})});mv.displayName="EmojiPicker";var pv=classVarianceAuthority.cva("flex flex-col border rounded-lg bg-background overflow-hidden",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-transparent"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),$T=classVarianceAuthority.cva("flex flex-wrap items-center gap-0.5 p-1 border-b",{variants:{size:{sm:"p-0.5",md:"p-1",lg:"p-1.5"}},defaultVariants:{size:"md"}}),_T=classVarianceAuthority.cva("flex-1 overflow-auto prose prose-sm max-w-none dark:prose-invert [&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[inherit] [&_.ProseMirror.is-editor-empty:first-child::before]:text-muted-foreground [&_.ProseMirror.is-editor-empty:first-child::before]:content-[attr(data-placeholder)] [&_.ProseMirror.is-editor-empty:first-child::before]:float-left [&_.ProseMirror.is-editor-empty:first-child::before]:pointer-events-none [&_.ProseMirror.is-editor-empty:first-child::before]:h-0",{variants:{size:{sm:"min-h-[100px] [&_.ProseMirror]:p-2 text-sm",md:"min-h-[150px] [&_.ProseMirror]:p-3 text-sm",lg:"min-h-[200px] [&_.ProseMirror]:p-4 text-base"}},defaultVariants:{size:"md"}}),Ye=({icon:e,title:t,isActive:r,onClick:a,disabled:n})=>jsxRuntime.jsxs(Wr,{children:[jsxRuntime.jsx(jr,{asChild:true,children:jsxRuntime.jsx(J,{type:"button",variant:r?"solid":"ghost",size:"icon",className:"h-7 w-7",onClick:a,disabled:n,children:e})}),jsxRuntime.jsx(Ur,{side:"top",className:"text-xs",children:t})]}),fv=$__namespace.forwardRef(({className:e,variant:t,size:r,value:a="",onChange:n,placeholder:o="Start writing...",readOnly:s=false,showToolbar:l=true,minHeight:c,maxHeight:d,onEditorReady:m,...u},f)=>{let p=react.useEditor({extensions:[yT__default.default.configure({heading:{levels:[1,2,3]}}),RT__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-primary underline"}}),wT__default.default,CT__default.default.configure({types:["heading","paragraph"]}),NT__default.default.configure({placeholder:o})],content:a,editable:!s,onUpdate:({editor:x})=>{n?.(x.getHTML());},onCreate:({editor:x})=>{m?.(x);}});$__namespace.useEffect(()=>{p&&a!==p.getHTML()&&p.commands.setContent(a);},[a,p]),$__namespace.useEffect(()=>{p&&p.setEditable(!s);},[s,p]);let b=()=>{if(!p)return;let x=p.getAttributes("link").href,g=window.prompt("URL",x);if(g!==null){if(g===""){p.chain().focus().extendMarkRange("link").unsetLink().run();return}p.chain().focus().extendMarkRange("link").setLink({href:g}).run();}};return p?jsxRuntime.jsx(_r,{children:jsxRuntime.jsxs("div",{ref:f,className:i(pv({variant:t,size:r,className:e})),...u,children:[l&&!s&&jsxRuntime.jsxs("div",{className:i($T({size:r})),children:[jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.Undo,{className:"h-4 w-4"}),title:"Undo",onClick:()=>p.chain().focus().undo().run(),disabled:!p.can().undo()}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.Redo,{className:"h-4 w-4"}),title:"Redo",onClick:()=>p.chain().focus().redo().run(),disabled:!p.can().redo()}),jsxRuntime.jsx($r,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.Heading1,{className:"h-4 w-4"}),title:"Heading 1",isActive:p.isActive("heading",{level:1}),onClick:()=>p.chain().focus().toggleHeading({level:1}).run()}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.Heading2,{className:"h-4 w-4"}),title:"Heading 2",isActive:p.isActive("heading",{level:2}),onClick:()=>p.chain().focus().toggleHeading({level:2}).run()}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.Heading3,{className:"h-4 w-4"}),title:"Heading 3",isActive:p.isActive("heading",{level:3}),onClick:()=>p.chain().focus().toggleHeading({level:3}).run()}),jsxRuntime.jsx($r,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.Bold,{className:"h-4 w-4"}),title:"Bold (Ctrl+B)",isActive:p.isActive("bold"),onClick:()=>p.chain().focus().toggleBold().run()}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.Italic,{className:"h-4 w-4"}),title:"Italic (Ctrl+I)",isActive:p.isActive("italic"),onClick:()=>p.chain().focus().toggleItalic().run()}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.Underline,{className:"h-4 w-4"}),title:"Underline (Ctrl+U)",isActive:p.isActive("underline"),onClick:()=>p.chain().focus().toggleUnderline().run()}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.Strikethrough,{className:"h-4 w-4"}),title:"Strikethrough",isActive:p.isActive("strike"),onClick:()=>p.chain().focus().toggleStrike().run()}),jsxRuntime.jsx($r,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.List,{className:"h-4 w-4"}),title:"Bullet List",isActive:p.isActive("bulletList"),onClick:()=>p.chain().focus().toggleBulletList().run()}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.ListOrdered,{className:"h-4 w-4"}),title:"Numbered List",isActive:p.isActive("orderedList"),onClick:()=>p.chain().focus().toggleOrderedList().run()}),jsxRuntime.jsx($r,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.AlignLeft,{className:"h-4 w-4"}),title:"Align Left",isActive:p.isActive({textAlign:"left"}),onClick:()=>p.chain().focus().setTextAlign("left").run()}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.AlignCenter,{className:"h-4 w-4"}),title:"Align Center",isActive:p.isActive({textAlign:"center"}),onClick:()=>p.chain().focus().setTextAlign("center").run()}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.AlignRight,{className:"h-4 w-4"}),title:"Align Right",isActive:p.isActive({textAlign:"right"}),onClick:()=>p.chain().focus().setTextAlign("right").run()}),jsxRuntime.jsx($r,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.Quote,{className:"h-4 w-4"}),title:"Blockquote",isActive:p.isActive("blockquote"),onClick:()=>p.chain().focus().toggleBlockquote().run()}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.Code,{className:"h-4 w-4"}),title:"Code Block",isActive:p.isActive("codeBlock"),onClick:()=>p.chain().focus().toggleCodeBlock().run()}),jsxRuntime.jsx($r,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.Link,{className:"h-4 w-4"}),title:"Insert Link",isActive:p.isActive("link"),onClick:b}),jsxRuntime.jsx(Ye,{icon:jsxRuntime.jsx(lucideReact.Unlink,{className:"h-4 w-4"}),title:"Remove Link",onClick:()=>p.chain().focus().unsetLink().run(),disabled:!p.isActive("link")})]}),jsxRuntime.jsx(react.EditorContent,{editor:p,className:i(_T({size:r})),style:{minHeight:c,maxHeight:d}})]})}):null});fv.displayName="RichTextEditor";var bv=classVarianceAuthority.cva("flex flex-col border rounded-lg bg-background overflow-hidden",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-none bg-transparent"}},defaultVariants:{variant:"default"}});function JT(e,t,r){return WT.centerCrop(WT.makeAspectCrop({unit:"%",width:90},r,e,t),e,t)}async function gv(e,t,r=0,a=1){let n=document.createElement("canvas"),o=n.getContext("2d");if(!o)return null;let s=e.naturalWidth/e.width,l=e.naturalHeight/e.height,c=window.devicePixelRatio||1;n.width=Math.floor(t.width*s*c),n.height=Math.floor(t.height*l*c),o.scale(c,c),o.imageSmoothingQuality="high";let d=t.x*s,m=t.y*l,u=r*Math.PI/180,f=e.naturalWidth/2,p=e.naturalHeight/2;return o.save(),o.translate(-d,-m),o.translate(f,p),o.rotate(u),o.scale(a,a),o.translate(-f,-p),o.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),o.restore(),new Promise(b=>{n.toBlob(x=>{b(x);},"image/png");})}var vv=$__namespace.forwardRef(({className:e,variant:t,src:r,aspectRatio:a,onCropChange:n,onCropComplete:o,showZoom:s=true,showRotation:l=true,minZoom:c=1,maxZoom:d=3,circularCrop:m=false,initialCrop:u,...f},p)=>{let b=$__namespace.useRef(null),[x,g]=$__namespace.useState(),[v,y]=$__namespace.useState(),[w,h]=$__namespace.useState(1),[C,R]=$__namespace.useState(0),M=P=>{let{width:k,height:E}=P.currentTarget;if(a){let H=JT(k,E,a);g(H);}else g(u||{unit:"%",x:10,y:10,width:80,height:80});},T=P=>{g(P),n?.(P);},L=async P=>{if(y(P),o&&b.current&&P.width&&P.height){let k=await gv(b.current,P,C,w);o(k);}},N=()=>{R(P=>(P+90)%360);};return $__namespace.useEffect(()=>{v&&b.current&&o&&gv(b.current,v,C,w).then(P=>{o(P);});},[w,C,v,o]),jsxRuntime.jsxs("div",{ref:p,className:i(bv({variant:t,className:e})),...f,children:[jsxRuntime.jsx("div",{className:"flex-1 flex items-center justify-center p-4 bg-muted/30 min-h-[300px]",children:jsxRuntime.jsx(WT__default.default,{crop:x,onChange:T,onComplete:L,aspect:a,circularCrop:m,className:"max-h-[400px]",children:jsxRuntime.jsx("img",{ref:b,src:r,alt:"Crop preview",onLoad:M,style:{transform:`scale(${w}) rotate(${C}deg)`,maxHeight:"400px"}})})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 p-3 border-t",children:[s&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[jsxRuntime.jsx(lucideReact.ZoomOut,{className:"h-4 w-4 text-muted-foreground"}),jsxRuntime.jsx(Xo,{value:[w],onValueChange:([P])=>h(P),min:c,max:d,step:.1,className:"flex-1"}),jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-4 w-4 text-muted-foreground"})]}),l&&jsxRuntime.jsx(J,{variant:"bordered",size:"icon",onClick:N,children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-4 w-4"})})]})]})});vv.displayName="ImageCropper";var Yl=classVarianceAuthority.cva("inline-block",{variants:{variant:{default:"",bordered:"border rounded-lg p-2",card:"border rounded-lg p-4 bg-card shadow-sm"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),tP={sm:96,md:128,lg:192},xv=$__namespace.forwardRef(({className:e,variant:t,size:r,value:a,qrSize:n,fgColor:o="currentColor",bgColor:s="transparent",level:l="M",includeMargin:c=false,title:d,logo:m,logoSize:u=40,logoPadding:f=4,logoBackgroundColor:p="white",...b},x)=>{let g=n??tP[r??"md"];return a?jsxRuntime.jsx("div",{ref:x,className:i(Yl({variant:t,size:r,className:e})),...b,children:jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx(QT__default.default,{value:a,size:g,fgColor:o,bgColor:s,level:l,title:d,style:{padding:c?16:0}}),m&&jsxRuntime.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded",style:{padding:f,backgroundColor:p},children:jsxRuntime.jsx("img",{src:m,alt:"Logo",style:{width:u,height:u,objectFit:"contain"}})})]})}):jsxRuntime.jsx("div",{ref:x,className:i(Yl({variant:t,size:r,className:e})),...b,children:jsxRuntime.jsx("div",{className:"flex items-center justify-center bg-muted text-muted-foreground text-xs rounded",style:{width:g,height:g},children:"No data"})})});xv.displayName="QRCode";var yv=({children:e,defaultTheme:t="system",storageKey:r="reever-ui-theme",enableSystem:a=true,disableTransitionOnChange:n=false,attribute:o="class",forcedTheme:s,themes:l=["light","dark"]})=>jsxRuntime.jsx(nextThemes.ThemeProvider,{defaultTheme:t,storageKey:r,enableSystem:a,disableTransitionOnChange:n,attribute:o,forcedTheme:s,themes:l,children:e});yv.displayName="ThemeProvider";var lP=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"",ghost:""},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"ghost",size:"md"}}),Rv=$__namespace.forwardRef(({className:e,variant:t="ghost",size:r="md",mode:a="dropdown"},n)=>{let{theme:o,setTheme:s,resolvedTheme:l}=nextThemes.useTheme(),[c,d]=$__namespace.useState(false);$__namespace.useEffect(()=>{d(true);},[]);let m=()=>{let u=["light","dark","system"],p=(u.indexOf(o||"system")+1)%u.length;s(u[p]);};return c?a==="cycle"?jsxRuntime.jsxs(J,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:i("h-9 w-9",e),onClick:m,children:[l==="dark"?jsxRuntime.jsx(lucideReact.Moon,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]}):jsxRuntime.jsxs(Yr,{children:[jsxRuntime.jsx(Xr,{asChild:true,children:jsxRuntime.jsxs(J,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:i("h-9 w-9",e),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),jsxRuntime.jsx(lucideReact.Moon,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),jsxRuntime.jsxs(qr,{align:"end",children:[jsxRuntime.jsxs(Jt,{onClick:()=>s("light"),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}),jsxRuntime.jsxs(Jt,{onClick:()=>s("dark"),children:[jsxRuntime.jsx(lucideReact.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),jsxRuntime.jsxs(Jt,{onClick:()=>s("system"),children:[jsxRuntime.jsx(lucideReact.Monitor,{className:"mr-2 h-4 w-4"}),"System"]})]})]}):jsxRuntime.jsxs(J,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:i("h-9 w-9",e),disabled:true,children:[jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]})});Rv.displayName="ThemeToggle";var wv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),Cv=classVarianceAuthority.cva("flex w-full rounded-md border border-input bg-background ring-offset-background file:border-0 file:bg-transparent file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2.5 py-1.5 text-xs",md:"h-10 px-3 py-2 text-sm",lg:"h-12 px-4 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),Nv=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Mv=$__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,startContent:u,endContent:f,id:p,...b},x)=>{let g=$__namespace.useId(),v=p||g,y=`${v}-description`,w=`${v}-error`,h=o&&a;return jsxRuntime.jsxs("div",{className:i(wv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:v,className:i(Nv({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[u&&jsxRuntime.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:u}),jsxRuntime.jsx("input",{ref:x,id:v,"aria-invalid":o,"aria-describedby":h?w:r?y:void 0,"aria-required":n,className:i(Cv({size:s,isInvalid:o}),u&&"pl-10",f&&"pr-10",c),...b}),f&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:f})]}),r&&!h&&jsxRuntime.jsx("p",{id:y,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),h&&jsxRuntime.jsx("p",{id:w,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Mv.displayName="TextField";var kv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),uP=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 text-center [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",{variants:{size:{sm:"h-8 px-8 py-1.5 text-xs",md:"h-10 px-10 py-2 text-sm",lg:"h-12 px-12 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit min-w-24"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),Tv=classVarianceAuthority.cva("absolute top-1/2 -translate-y-1/2 flex items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted disabled:opacity-50 disabled:cursor-not-allowed transition-colors",{variants:{size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{size:"md"}}),Pv=classVarianceAuthority.cva("",{variants:{size:{sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),mP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Lv=$__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,min:u,max:f,step:p=1,value:b,defaultValue:x,onChange:g,showButtons:v=true,formatOptions:y,fullWidth:w=false,disabled:h,id:C,...R},M)=>{let T=$__namespace.useId(),L=C||T,N=`${L}-description`,P=`${L}-error`,[k,E]=$__namespace.useState(x),[H,S]=$__namespace.useState(false),D=b!==void 0?b:k,I=o&&a,z=$__namespace.useCallback(B=>{B!==void 0&&(u!==void 0&&B<u&&(B=u),f!==void 0&&B>f&&(B=f)),b===void 0&&E(B),g?.(B);},[b,u,f,g]),G=()=>{let B=(D??0)+p;z(B);},V=()=>{let B=(D??0)-p;z(B);},F=B=>{let j=B.target.value;if(j==="")z(void 0);else {let A=parseFloat(j);isNaN(A)||z(A);}},O=B=>{B.key==="ArrowUp"?(B.preventDefault(),G()):B.key==="ArrowDown"&&(B.preventDefault(),V());},Q=$__namespace.useMemo(()=>D===void 0?"":y?new Intl.NumberFormat(void 0,y).format(D):D.toString(),[D,y]),re=u!==void 0&&D!==void 0&&D<=u,K=f!==void 0&&D!==void 0&&D>=f;return jsxRuntime.jsxs("div",{className:i(kv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:L,className:i(mP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[v&&jsxRuntime.jsx("button",{type:"button",onClick:V,disabled:h||re,className:i(Tv({size:s}),"left-1"),tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:i(Pv({size:s}))})}),jsxRuntime.jsx("input",{ref:M,id:L,type:"text",inputMode:"decimal",value:Q,onChange:F,onKeyDown:O,onFocus:()=>S(true),onBlur:()=>S(false),"aria-invalid":o,"aria-describedby":I?P:r?N:void 0,"aria-required":n,"aria-valuemin":u,"aria-valuemax":f,"aria-valuenow":D,disabled:h,className:i(uP({size:s,isInvalid:o,fullWidth:w}),!v&&"px-3",c),style:{borderColor:H?"var(--color-foreground)":void 0},...R}),v&&jsxRuntime.jsx("button",{type:"button",onClick:G,disabled:h||K,className:i(Tv({size:s}),"right-1"),tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:i(Pv({size:s}))})})]}),r&&!I&&jsxRuntime.jsx("p",{id:N,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),I&&jsxRuntime.jsx("p",{id:P,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Lv.displayName="NumberField";var Dv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),gP=classVarianceAuthority.cva("flex w-full rounded-md border border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 pl-8 pr-8 py-1.5 text-xs",md:"h-10 pl-10 pr-10 py-2 text-sm",lg:"h-12 pl-12 pr-12 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),Ev=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),bP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),vP=classVarianceAuthority.cva("absolute top-1/2 -translate-y-1/2 flex items-center justify-center rounded-full text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",{variants:{size:{sm:"h-5 w-5 right-1.5",md:"h-6 w-6 right-2",lg:"h-7 w-7 right-2.5"}},defaultVariants:{size:"md"}}),Sv=$__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,value:u,defaultValue:f="",onChange:p,onClear:b,onSearch:x,showClearButton:g=true,showSearchIcon:v=true,disabled:y,placeholder:w="Search...",id:h,...C},R)=>{let M=$__namespace.useId(),T=h||M,L=`${T}-description`,N=`${T}-error`,[P,k]=$__namespace.useState(f),E=u!==void 0?u:P,H=o&&a,S=E.length>0,D=G=>{let V=G.target.value;u===void 0&&k(V),p?.(V);},I=()=>{u===void 0&&k(""),p?.(""),b?.();},z=G=>{G.key==="Enter"?(G.preventDefault(),x?.(E)):G.key==="Escape"&&S&&(G.preventDefault(),I());};return jsxRuntime.jsxs("div",{className:i(Dv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:T,className:i(bP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[v&&jsxRuntime.jsx(lucideReact.Search,{className:i(Ev({size:s}),"absolute left-3 top-1/2 -translate-y-1/2")}),jsxRuntime.jsx("input",{ref:R,id:T,type:"search",value:E,onChange:D,onKeyDown:z,placeholder:w,"aria-invalid":o,"aria-describedby":H?N:r?L:void 0,"aria-required":n,disabled:y,className:i(gP({size:s,isInvalid:o}),!v&&"pl-3",!g&&"pr-3",c),...C}),g&&S&&!y&&jsxRuntime.jsx("button",{type:"button",onClick:I,className:i(vP({size:s})),tabIndex:-1,"aria-label":"Clear search",children:jsxRuntime.jsx(lucideReact.X,{className:i(Ev({size:s}))})})]}),r&&!H&&jsxRuntime.jsx("p",{id:L,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),H&&jsxRuntime.jsx("p",{id:N,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Sv.displayName="SearchField";var Hv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),xP=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-calendar-picker-indicator]:hidden",{variants:{size:{sm:"h-8 pl-3 pr-8 py-1.5 text-xs",md:"h-10 pl-3 pr-10 py-2 text-sm",lg:"h-12 pl-4 pr-12 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),yP=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),RP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),ec=(e,t="yyyy-MM-dd")=>{if(!e)return "";let r=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(r)).replace("MM",a).replace("dd",n)},wP=e=>{if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},Iv=$__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,value:u,defaultValue:f,onChange:p,minDate:b,maxDate:x,dateFormat:g="yyyy-MM-dd",showIcon:v=true,fullWidth:y=false,disabled:w,id:h,...C},R)=>{let M=$__namespace.useId(),T=h||M,L=`${T}-description`,N=`${T}-error`,P=$__namespace.useRef(null),k=R||P,[E,H]=$__namespace.useState(f??null),[S,D]=$__namespace.useState(false),I=()=>{!w&&k.current&&k.current.showPicker?.();},z=u!==void 0?u:E,G=o&&a,V=re=>{let K=wP(re.target.value);u===void 0&&H(K),p?.(K);},F=z?ec(z,"yyyy-MM-dd"):"",O=b?ec(b,"yyyy-MM-dd"):void 0,Q=x?ec(x,"yyyy-MM-dd"):void 0;return jsxRuntime.jsxs("div",{className:i(Hv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:T,className:i(RP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:i("relative",y?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:k,id:T,type:"date",value:F,onChange:V,onFocus:()=>D(true),onBlur:()=>D(false),min:O,max:Q,"aria-invalid":o,"aria-describedby":G?N:r?L:void 0,"aria-required":n,disabled:w,className:i(xP({size:s,isInvalid:o,fullWidth:y}),!v&&"pr-3",c),style:{borderColor:S?"var(--color-foreground)":void 0},...C}),v&&jsxRuntime.jsx("button",{type:"button",onClick:I,disabled:w,className:"absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",tabIndex:-1,"aria-label":"Open calendar",children:jsxRuntime.jsx(lucideReact.Calendar,{className:i(yP({size:s}))})})]}),r&&!G&&jsxRuntime.jsx("p",{id:L,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),G&&jsxRuntime.jsx("p",{id:N,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Iv.displayName="DateField";var Vv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),CP=classVarianceAuthority.cva("inline-flex items-center rounded-md border border-input bg-background transition-colors",{variants:{size:{sm:"h-8 px-2 gap-0.5 text-xs",md:"h-10 px-3 gap-1 text-sm",lg:"h-12 px-4 gap-1.5 text-base"},isInvalid:{true:"border-danger",false:""},disabled:{true:"cursor-not-allowed opacity-50",false:""},fullWidth:{true:"w-full justify-center",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,disabled:false,fullWidth:false}}),NP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Av=$__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,value:u,defaultValue:f,onChange:p,minTime:b,maxTime:x,showSeconds:g=false,hourCycle:v=24,disabled:y,fullWidth:w=false,id:h,...C},R)=>{let M=$__namespace.useId(),T=h||M,L=`${T}-description`,N=`${T}-error`,P=$__namespace.useRef(null),k=$__namespace.useRef(null),E=$__namespace.useRef(null),H=$__namespace.useRef(null),[S,D]=$__namespace.useState(f??null),I=u!==void 0?u:S,z=o&&a,G=_=>v===24?_:_===0?12:_>12?_-12:_,V=_=>_>=12?"PM":"AM",F=(_,ae)=>ae==="AM"?_===12?0:_:_===12?12:_+12,[O,Q]=$__namespace.useState(I?String(G(I.hour)).padStart(2,"0"):""),[re,K]=$__namespace.useState(I?String(I.minute).padStart(2,"0"):""),[B,j]=$__namespace.useState(I?.second!==void 0?String(I.second).padStart(2,"0"):""),[A,U]=$__namespace.useState(I?V(I.hour):"AM"),[W,he]=$__namespace.useState(false);$__namespace.useEffect(()=>{u!==void 0&&(u?(Q(String(G(u.hour)).padStart(2,"0")),K(String(u.minute).padStart(2,"0")),u.second!==void 0&&j(String(u.second).padStart(2,"0")),U(V(u.hour))):(Q(""),K(""),j("")));},[u,v]);let me=(_,ae,Y,Se)=>{let ie=parseInt(_,10),Ke=parseInt(ae,10),Ge=g?parseInt(Y,10):void 0;if(isNaN(ie)||isNaN(Ke)||g&&isNaN(Ge)){u===void 0&&D(null),p?.(null);return}let xe={hour:v===12?F(ie,Se):ie,minute:Ke,...g&&Ge!==void 0&&{second:Ge}};u===void 0&&D(xe),p?.(xe);},Br=_=>{let ae=_.target.value.replace(/\D/g,"").slice(0,2);Q(ae);let Y=v===24?23:12,Se=v===24?0:1;if(ae.length===2){let ie=parseInt(ae,10);ie>=Se&&ie<=Y&&(k.current?.focus(),k.current?.select());}},ne=_=>{let ae=_.target.value.replace(/\D/g,"").slice(0,2);if(K(ae),ae.length===2){let Y=parseInt(ae,10);Y>=0&&Y<=59&&(g?(E.current?.focus(),E.current?.select()):v===12&&H.current?.focus());}},rt=_=>{let ae=_.target.value.replace(/\D/g,"").slice(0,2);j(ae),ae.length===2&&v===12&&H.current?.focus();},Or=()=>{if(O){let _=parseInt(O,10),ae=v===24?23:12,Se=Math.min(Math.max(_,v===24?0:1),ae),ie=String(Se).padStart(2,"0");Q(ie),me(ie,re,B,A);}},bt=()=>{if(re){let _=parseInt(re,10),ae=Math.min(Math.max(_,0),59),Y=String(ae).padStart(2,"0");K(Y),me(O,Y,B,A);}},xa=()=>{if(B){let _=parseInt(B,10),ae=Math.min(Math.max(_,0),59),Y=String(ae).padStart(2,"0");j(Y),me(O,re,Y,A);}},Fr=()=>{let _=A==="AM"?"PM":"AM";U(_),me(O,re,B,_);},Vn=_=>{let ae=_.key.toLowerCase();ae==="a"?(_.preventDefault(),A!=="AM"&&(U("AM"),me(O,re,B,"AM"))):ae==="p"?(_.preventDefault(),A!=="PM"&&(U("PM"),me(O,re,B,"PM"))):ae==="arrowup"||ae==="arrowdown"?(_.preventDefault(),Fr()):ae==="arrowleft"&&(_.preventDefault(),g?(E.current?.focus(),E.current?.select()):(k.current?.focus(),k.current?.select()));},Bt=(_,ae)=>{if(_.key==="ArrowUp"||_.key==="ArrowDown"){_.preventDefault();let Y=_.key==="ArrowUp"?1:-1;if(ae==="hour"){let Se=parseInt(O,10)||0,ie=v===24?23:12,Ke=v===24?0:1,Ge=Se+Y;Ge>ie&&(Ge=Ke),Ge<Ke&&(Ge=ie);let Kr=String(Ge).padStart(2,"0");Q(Kr),me(Kr,re,B,A);}else if(ae==="minute"){let ie=(parseInt(re,10)||0)+Y;ie>59&&(ie=0),ie<0&&(ie=59);let Ke=String(ie).padStart(2,"0");K(Ke),me(O,Ke,B,A);}else if(ae==="second"){let ie=(parseInt(B,10)||0)+Y;ie>59&&(ie=0),ie<0&&(ie=59);let Ke=String(ie).padStart(2,"0");j(Ke),me(O,re,Ke,A);}}_.key==="ArrowRight"&&(_.preventDefault(),ae==="hour"?(k.current?.focus(),k.current?.select()):ae==="minute"&&g?(E.current?.focus(),E.current?.select()):(ae==="minute"&&!g&&v===12||ae==="second"&&v===12)&&H.current?.focus()),_.key==="ArrowLeft"&&(_.preventDefault(),ae==="minute"?(P.current?.focus(),P.current?.select()):ae==="second"&&(k.current?.focus(),k.current?.select())),_.key==="Backspace"&&_.currentTarget.value===""&&(ae==="minute"?P.current?.focus():ae==="second"&&k.current?.focus());},ya=i((()=>{switch(s){case "sm":return "w-5";case "lg":return "w-7";default:return "w-6"}})(),"bg-transparent text-center outline-none placeholder:text-muted-foreground tabular-nums",y&&"cursor-not-allowed");return jsxRuntime.jsxs("div",{ref:R,className:i(Vv({size:s}),e),...C,children:[t&&jsxRuntime.jsxs("label",{htmlFor:T,className:i(NP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:i(CP({size:s,isInvalid:o,disabled:y,fullWidth:w}),c),style:{borderColor:W?"var(--color-foreground)":void 0},onFocus:()=>he(true),onBlur:_=>{_.currentTarget.contains(_.relatedTarget)||he(false);},children:[jsxRuntime.jsx("input",{ref:P,id:T,type:"text",inputMode:"numeric",placeholder:v===24?"HH":"hh",value:O,onChange:Br,onBlur:Or,onKeyDown:_=>Bt(_,"hour"),onFocus:_=>_.target.select(),"aria-label":"Hour","aria-invalid":o,"aria-describedby":z?N:r?L:void 0,"aria-required":n,disabled:y,className:ya}),jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:k,type:"text",inputMode:"numeric",placeholder:"mm",value:re,onChange:ne,onBlur:bt,onKeyDown:_=>Bt(_,"minute"),onFocus:_=>_.target.select(),"aria-label":"Minute",disabled:y,className:ya}),g&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:E,type:"text",inputMode:"numeric",placeholder:"ss",value:B,onChange:rt,onBlur:xa,onKeyDown:_=>Bt(_,"second"),onFocus:_=>_.target.select(),"aria-label":"Second",disabled:y,className:ya})]}),v===12&&jsxRuntime.jsx("button",{ref:H,type:"button",onClick:Fr,onKeyDown:Vn,disabled:y,className:i("ml-0.5 rounded text-muted-foreground hover:text-foreground focus:outline-none focus:text-foreground transition-colors tabular-nums",s==="sm"?"w-6":s==="lg"?"w-8":"w-7",y&&"cursor-not-allowed"),"aria-label":"AM/PM",children:A})]}),r&&!z&&jsxRuntime.jsx("p",{id:L,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),z&&jsxRuntime.jsx("p",{id:N,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Av.displayName="TimeField";var Bv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),TP=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono uppercase",{variants:{size:{sm:"h-8 pl-10 pr-3 py-1.5 text-xs",md:"h-10 pl-12 pr-3 py-2 text-sm",lg:"h-12 pl-14 pr-4 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),PP=classVarianceAuthority.cva("absolute left-2 top-1/2 -translate-y-1/2 rounded border border-input overflow-hidden",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),kP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),zv=e=>/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e),LP=e=>(e.startsWith("#")||(e="#"+e),e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.toUpperCase()),Ov=$__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,value:u,defaultValue:f="#000000",onChange:p,showSwatch:b=true,showPicker:x=true,allowAlpha:g=false,fullWidth:v=false,disabled:y,id:w,...h},C)=>{let R=$__namespace.useId(),M=w||R,T=`${M}-picker`,L=`${M}-description`,N=`${M}-error`,[P,k]=$__namespace.useState(f),[E,H]=$__namespace.useState(false),S=u!==void 0?u:P,D=o&&a,I=F=>{let O=F.target.value;O&&!O.startsWith("#")&&(O="#"+O),u===void 0&&k(O),p?.(O);},z=F=>{let O=F.target.value.toUpperCase();u===void 0&&k(O),p?.(O);},G=()=>{if(S&&zv(S)){let F=LP(S);F!==S&&(u===void 0&&k(F),p?.(F));}},V=zv(S)?S:"#000000";return jsxRuntime.jsxs("div",{className:i(Bv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:M,className:i(kP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[b&&jsxRuntime.jsx("div",{className:i(PP({size:s})),children:x?jsxRuntime.jsxs("label",{htmlFor:T,className:"block h-full w-full cursor-pointer",children:[jsxRuntime.jsx("input",{id:T,type:"color",value:V,onChange:z,disabled:y,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0",tabIndex:-1}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:V}})]}):jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:V}})}),jsxRuntime.jsx("input",{ref:C,id:M,type:"text",value:S,onChange:I,onFocus:()=>H(true),onBlur:()=>{H(false),G();},placeholder:"#000000",maxLength:g?9:7,"aria-invalid":o,"aria-describedby":D?N:r?L:void 0,"aria-required":n,disabled:y,className:i(TP({size:s,isInvalid:o,fullWidth:v}),!b&&"pl-3",c),style:{borderColor:E?"var(--color-foreground)":void 0},...h})]}),r&&!D&&jsxRuntime.jsx("p",{id:L,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),D&&jsxRuntime.jsx("p",{id:N,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Ov.displayName="ColorField";var Kv=classVarianceAuthority.cva("inline-flex",{variants:{variant:{default:"",attached:"[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child)]:-ml-px"},orientation:{horizontal:"flex-row",vertical:"flex-col [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-b-none [&>*:last-child]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:ml-0"},spacing:{none:"gap-0",sm:"gap-1",md:"gap-2",lg:"gap-3"}},compoundVariants:[{variant:"attached",spacing:["sm","md","lg"],className:"gap-0"}],defaultVariants:{variant:"default",orientation:"horizontal",spacing:"sm"}}),Gv=$__namespace.createContext({});function DP(){return $__namespace.useContext(Gv)}var $v=$__namespace.forwardRef(({className:e,variant:t,orientation:r,spacing:a,disabled:n,children:o,...s},l)=>jsxRuntime.jsx(Gv.Provider,{value:{disabled:n},children:jsxRuntime.jsx("div",{ref:l,role:"group",className:i(Kv({variant:t,orientation:r,spacing:a,className:e})),...s,children:o})}));$v.displayName="ButtonGroup";var Wv=classVarianceAuthority.cva("inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted text-muted-foreground hover:bg-muted/80"},size:{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10",xl:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{variant:"ghost",size:"md",radius:"md"}}),jv=$__namespace.forwardRef(({className:e,variant:t,size:r,radius:a,isLoading:n,disabled:o,children:s,...l},c)=>{let d={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-6 w-6"}[r??"md"];return jsxRuntime.jsx("button",{ref:c,type:"button",disabled:o||n,className:i(Wv({variant:t,size:r,radius:a,className:e})),...l,children:n?jsxRuntime.jsxs("svg",{className:i("animate-spin",d),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):jsxRuntime.jsx("span",{className:i("[&>svg]:h-full [&>svg]:w-full",d),children:s})})});jv.displayName="IconButton";var Yv=classVarianceAuthority.cva("inline-flex items-center",{variants:{variant:{default:"gap-1",compact:"gap-0.5",attached:"[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child)]:-ml-px gap-0"},orientation:{horizontal:"flex-row",vertical:"flex-col [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-b-none [&>*:last-child]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:ml-0"},size:{sm:"",md:"",lg:""},density:{compact:"gap-0.5",regular:"gap-1",spacious:"gap-2"}},defaultVariants:{variant:"default",orientation:"horizontal",size:"md",density:"regular"}}),Xv=$__namespace.forwardRef(({className:e,variant:t,orientation:r,size:a,density:n,items:o,maxVisibleItems:s,isDisabled:l,onAction:c,showLabels:d=false,renderItem:m,...u},f)=>{let p=s&&s<o.length?o.slice(0,s):o,b=s&&s<o.length?o.slice(s):[],x={sm:"h-8 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"}[a??"md"],g={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a??"md"],v={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5"}[a??"md"],y=(h,C)=>{C&&C(),c&&c(h);},w=h=>jsxRuntime.jsxs("button",{type:"button",disabled:l||h.isDisabled,onClick:()=>y(h.key,h.onPress),className:i("inline-flex items-center justify-center gap-2 rounded-md transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",d?x:g),"aria-label":h.label,children:[h.icon&&jsxRuntime.jsx("span",{className:v,children:h.icon}),d&&jsxRuntime.jsx("span",{children:h.label})]},h.key);return jsxRuntime.jsxs("div",{ref:f,role:"group",className:i(Yv({variant:t,orientation:r,size:a,density:n,className:e})),...u,children:[p.map(h=>m?m(h):w(h)),b.length>0&&jsxRuntime.jsxs(Yr,{children:[jsxRuntime.jsx(Xr,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",disabled:l,className:i("inline-flex items-center justify-center rounded-md transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",g),"aria-label":"More actions",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:v})})}),jsxRuntime.jsx(qr,{align:"end",children:b.map(h=>jsxRuntime.jsxs(Jt,{disabled:h.isDisabled,onClick:()=>y(h.key,h.onPress),children:[h.icon&&jsxRuntime.jsx("span",{className:i(v,"mr-2"),children:h.icon}),h.label]},h.key))})]})]})});Xv.displayName="ActionGroup";var Qv=classVarianceAuthority.cva("inline-flex items-center gap-2",{variants:{variant:{neutral:"[--status-color:theme(colors.muted.foreground)]",info:"[--status-color:theme(colors.blue.500)]",positive:"[--status-color:theme(colors.green.500)]",notice:"[--status-color:theme(colors.yellow.500)]",negative:"[--status-color:theme(colors.red.500)]"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{variant:"neutral",size:"md"}}),AP=classVarianceAuthority.cva("rounded-full bg-[--status-color] flex-shrink-0",{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2.5 w-2.5"},pulse:{true:"animate-pulse",false:""}},defaultVariants:{size:"md",pulse:false}}),eh=$__namespace.forwardRef(({className:e,variant:t,size:r,pulse:a=false,hideLabel:n=false,children:o,...s},l)=>jsxRuntime.jsxs("span",{ref:l,role:"status",className:i(Qv({variant:t,size:r,className:e})),...s,children:[jsxRuntime.jsx("span",{className:i(AP({size:r,pulse:a})),"aria-hidden":"true"}),!n&&o&&jsxRuntime.jsx("span",{className:"text-foreground",children:o})]}));eh.displayName="StatusLight";var rh=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-3 max-w-xs",md:"gap-4 max-w-sm",lg:"gap-5 max-w-md"}},defaultVariants:{size:"md"}}),BP=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"[&>svg]:h-16 [&>svg]:w-16",md:"[&>svg]:h-24 [&>svg]:w-24",lg:"[&>svg]:h-32 [&>svg]:w-32"}},defaultVariants:{size:"md"}}),OP=classVarianceAuthority.cva("font-semibold text-foreground",{variants:{size:{sm:"text-base",md:"text-lg",lg:"text-xl"}},defaultVariants:{size:"md"}}),FP=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),ah=$__namespace.forwardRef(({className:e,size:t,illustration:r,heading:a,description:n,children:o,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:i(rh({size:t,className:e})),...s,children:[r&&jsxRuntime.jsx("div",{className:i(BP({size:t})),"aria-hidden":"true",children:r}),a&&jsxRuntime.jsx("h3",{className:i(OP({size:t})),children:a}),n&&jsxRuntime.jsx("p",{className:i(FP({size:t})),children:n}),o&&jsxRuntime.jsx("div",{className:"mt-2",children:o})]}));ah.displayName="IllustratedMessage";var sh=classVarianceAuthority.cva("relative flex gap-3 rounded-lg border p-4 text-sm",{variants:{variant:{info:"border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-100 [&>svg]:text-blue-600 dark:[&>svg]:text-blue-400",success:"border-green-200 bg-green-50 text-green-900 dark:border-green-800 dark:bg-green-950 dark:text-green-100 [&>svg]:text-green-600 dark:[&>svg]:text-green-400",warning:"border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-100 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400",error:"border-red-200 bg-red-50 text-red-900 dark:border-red-800 dark:bg-red-950 dark:text-red-100 [&>svg]:text-red-600 dark:[&>svg]:text-red-400",neutral:"border-border bg-muted text-foreground [&>svg]:text-muted-foreground"}},defaultVariants:{variant:"info"}}),UP={info:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle,neutral:lucideReact.Info},ih=$__namespace.forwardRef(({className:e,variant:t,title:r,icon:a,hideIcon:n=false,isDismissible:o=false,onDismiss:s,actions:l,children:c,...d},m)=>{let[u,f]=$__namespace.useState(true);if(!u)return null;let p=UP[t??"info"],b=()=>{f(false),s?.();};return jsxRuntime.jsxs("div",{ref:m,role:"alert",className:i(sh({variant:t,className:e})),...d,children:[!n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a||jsxRuntime.jsx(p,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[r&&jsxRuntime.jsx("div",{className:"font-medium",children:r}),c&&jsxRuntime.jsx("div",{className:"opacity-90",children:c}),l&&jsxRuntime.jsx("div",{className:"mt-3 flex gap-2",children:l})]}),o&&jsxRuntime.jsx("button",{type:"button",onClick:b,className:"absolute right-2 top-2 rounded-md p-1 opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":"Dismiss",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});ih.displayName="InlineAlert";var lh=classVarianceAuthority.cva("fixed flex items-center gap-2 rounded-lg border bg-background shadow-lg transition-all duration-200",{variants:{position:{bottom:"bottom-4 left-1/2 -translate-x-1/2",top:"top-4 left-1/2 -translate-x-1/2","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4"},size:{sm:"px-3 py-2 gap-1.5",md:"px-4 py-2.5 gap-2",lg:"px-5 py-3 gap-3"}},defaultVariants:{position:"bottom",size:"md"}}),ch=$__namespace.forwardRef(({className:e,position:t,size:r,selectedCount:a=0,isOpen:n=true,onClose:o,showClose:s=true,selectedText:l,children:c,...d},m)=>{if(!n||a===0)return null;let u=()=>typeof l=="function"?l(a):l||`${a} item${a>1?"s":""} selected`;return jsxRuntime.jsxs("div",{ref:m,role:"toolbar","aria-label":"Actions for selected items",className:i(lh({position:t,size:r,className:e})),...d,children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:u()}),jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:c}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("button",{type:"button",onClick:o,className:"rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors","aria-label":"Close action bar",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})]})});ch.displayName="ActionBar";var dh=$__namespace.forwardRef(({className:e,icon:t,children:r,...a},n)=>jsxRuntime.jsxs("button",{ref:n,type:"button",className:i("inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",e),...a,children:[t&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:t}),r]}));dh.displayName="ActionBarButton";var uh=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",subtle:"text-muted-foreground hover:text-foreground hover:bg-muted"},size:{sm:"h-7 w-7",md:"h-8 w-8",lg:"h-9 w-9"}},defaultVariants:{variant:"ghost",size:"md"}});function ek(e){return "items"in e}var mh=$__namespace.forwardRef(({items:e,align:t="end",side:r="bottom",iconOrientation:a="vertical",trigger:n,variant:o,size:s,onAction:l,"aria-label":c="More actions",triggerClassName:d,disabled:m},u)=>{let f={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}[s??"md"],p=a==="horizontal"?lucideReact.MoreHorizontal:lucideReact.MoreVertical,b=g=>{g.onSelect?.(),l?.(g.key);},x=g=>jsxRuntime.jsxs(Jt,{disabled:g.isDisabled,onClick:()=>b(g),className:i(g.isDestructive&&"text-destructive focus:text-destructive"),children:[g.icon&&jsxRuntime.jsx("span",{className:"mr-2 h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:g.icon}),jsxRuntime.jsx("span",{className:"flex-1",children:g.label}),g.shortcut&&jsxRuntime.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:g.shortcut})]},g.key);return jsxRuntime.jsxs(Yr,{children:[jsxRuntime.jsx(Xr,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:u,type:"button",disabled:m,className:i(uh({variant:o,size:s}),d),"aria-label":c,children:jsxRuntime.jsx(p,{className:f})})}),jsxRuntime.jsx(qr,{align:t,side:r,children:e.map((g,v)=>ek(g)?jsxRuntime.jsxs($__namespace.Fragment,{children:[v>0&&jsxRuntime.jsx(Oo,{}),g.items.map(x)]},g.key):x(g))})]})});mh.displayName="ActionMenu";var gh=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-1",bordered:"border rounded-lg divide-y",cards:"gap-2"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),bh=classVarianceAuthority.cva("flex items-center gap-3 transition-colors cursor-pointer",{variants:{variant:{default:"rounded-md hover:bg-accent",bordered:"hover:bg-accent",cards:"rounded-lg border hover:border-primary/50 hover:bg-accent/50"},size:{sm:"px-2 py-1.5 text-sm",md:"px-3 py-2",lg:"px-4 py-3 text-lg"},isSelected:{true:"bg-accent",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},compoundVariants:[{variant:"cards",isSelected:true,className:"border-primary bg-accent"}],defaultVariants:{variant:"default",size:"md",isSelected:false,isDisabled:false}});function vh({className:e,variant:t,size:r,items:a,selectedKeys:n,selectionMode:o="none",onSelectionChange:s,allowsDragging:l=false,onReorder:c,showCheckbox:d=false,renderItem:m,emptyContent:u,...f}){let[p,b]=$__namespace.useState(new Set),[x,g]=$__namespace.useState(null),[v,y]=$__namespace.useState(null),w=$__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),h=T=>{if(o==="none")return;let L;o==="single"?L=w.has(T)?new Set:new Set([T]):(L=new Set(w),L.has(T)?L.delete(T):L.add(T)),n||b(L),s?.(L);},C=(T,L)=>{g(L),T.dataTransfer.effectAllowed="move";},R=(T,L)=>{T.preventDefault(),x!==L&&y(L);},M=()=>{if(x&&v&&x!==v){let T=a.findIndex(k=>k.key===x),L=a.findIndex(k=>k.key===v),N=[...a],[P]=N.splice(T,1);N.splice(L,0,P),c?.(N);}g(null),y(null);};return a.length===0?jsxRuntime.jsx("div",{className:i("flex items-center justify-center p-8 text-muted-foreground",e),children:u||"No items"}):jsxRuntime.jsx("div",{role:"listbox","aria-multiselectable":o==="multiple",className:i(gh({variant:t,size:r,className:e})),...f,children:a.map(T=>{let L=w.has(T.key),N=x===T.key,P=v===T.key;return m?jsxRuntime.jsx("div",{role:"option","aria-selected":L,onClick:()=>h(T.key),children:m(T,L)},T.key):jsxRuntime.jsxs("div",{role:"option","aria-selected":L,"aria-disabled":T.isDisabled,draggable:l&&!T.isDisabled,onDragStart:k=>C(k,T.key),onDragOver:k=>R(k,T.key),onDragEnd:M,onClick:()=>!T.isDisabled&&h(T.key),className:i(bh({variant:t,size:r,isSelected:L,isDisabled:T.isDisabled}),N&&"opacity-50",P&&"border-t-2 border-t-primary"),children:[l&&jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground cursor-grab"}),d&&o!=="none"&&jsxRuntime.jsx("div",{className:i("flex h-4 w-4 items-center justify-center rounded border",L?"bg-primary border-primary text-primary-foreground":"border-input"),children:L&&jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),T.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 text-muted-foreground [&>svg]:h-full [&>svg]:w-full",children:T.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:T.label}),T.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:T.description})]})]},T.key)})})}vh.displayName="ListView";var hh=classVarianceAuthority.cva("relative flex w-full touch-none select-none",{variants:{orientation:{horizontal:"items-center",vertical:"flex-col justify-center h-full"},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"horizontal",size:"md"}}),ak=classVarianceAuthority.cva("relative grow overflow-hidden rounded-full bg-secondary",{variants:{orientation:{horizontal:"w-full",vertical:"w-2 h-full"},size:{sm:"h-1",md:"h-2",lg:"h-3"}},compoundVariants:[{orientation:"vertical",size:"sm",className:"w-1 h-full"},{orientation:"vertical",size:"md",className:"w-2 h-full"},{orientation:"vertical",size:"lg",className:"w-3 h-full"}],defaultVariants:{orientation:"horizontal",size:"md"}}),nk=classVarianceAuthority.cva("block rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-grab",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{size:"md"}}),xh=$__namespace.forwardRef(({className:e,orientation:t="horizontal",size:r="md",value:a,defaultValue:n=[25,75],onValueChange:o,onValueCommit:s,min:l=0,max:c=100,step:d=1,disabled:m=false,showLabels:u=false,formatLabel:f=v=>String(v),trackColor:p="primary",name:b,...x},g)=>{let[v,y]=$__namespace.useState(n),w=a!==void 0,h=w?a:v,C=$__namespace.useRef(null),[R,M]=$__namespace.useState(false),[T,L]=$__namespace.useState(null),N=(V,F)=>{if(!C.current)return h[0];let O=C.current.getBoundingClientRect(),Q;t==="horizontal"?Q=(V-O.left)/O.width:Q=1-(F-O.top)/O.height,Q=Math.max(0,Math.min(1,Q));let re=l+Q*(c-l),K=Math.round(re/d)*d;return Math.max(l,Math.min(c,K))},P=(V,F)=>{let O=[...h];O[F]=V,F===0&&V>h[1]&&(O[0]=h[1]),F===1&&V<h[0]&&(O[1]=h[0]),w||y(O),o?.(O);},k=(V,F)=>{m||(V.preventDefault(),M(true),L(F),V.target.setPointerCapture(V.pointerId));},E=V=>{if(!R||T===null||m)return;let F=N(V.clientX,V.clientY);P(F,T);},H=()=>{R&&(M(false),L(null),s?.(h));},S=V=>{if(m)return;let F=N(V.clientX,V.clientY),O=Math.abs(h[0]-F),Q=Math.abs(h[1]-F),re=O<=Q?0:1;P(F,re);let K=[...h];K[re]=F,s?.(K);},D=(V,F)=>{if(m)return;let O=h[F];switch(V.key){case "ArrowRight":case "ArrowUp":V.preventDefault(),O=Math.min(c,h[F]+d);break;case "ArrowLeft":case "ArrowDown":V.preventDefault(),O=Math.max(l,h[F]-d);break;case "Home":V.preventDefault(),O=l;break;case "End":V.preventDefault(),O=c;break;default:return}P(O,F);let Q=[...h];Q[F]=O,s?.(Q);},I=V=>(V-l)/(c-l)*100,z={primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500"}[p],G={sm:14,md:20,lg:24}[r||"md"];return jsxRuntime.jsxs("div",{className:"relative w-full",children:[u&&jsxRuntime.jsxs("div",{className:"flex justify-between mb-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:f(h[0])}),jsxRuntime.jsx("span",{children:f(h[1])})]}),jsxRuntime.jsxs("div",{ref:g,className:i(hh({orientation:t,size:r}),m&&"opacity-50 pointer-events-none",e),...x,children:[jsxRuntime.jsx("div",{ref:C,className:i(ak({orientation:t,size:r})),onClick:S,children:jsxRuntime.jsx("div",{className:i("absolute rounded-full",z,{"h-full":t==="horizontal","w-full":t==="vertical"}),style:t==="horizontal"?{left:`${I(h[0])}%`,right:`${100-I(h[1])}%`,top:0,bottom:0}:{bottom:`${I(h[0])}%`,top:`${100-I(h[1])}%`,left:0,right:0}})}),h.map((V,F)=>jsxRuntime.jsx("div",{role:"slider",tabIndex:m?-1:0,"aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":V,"aria-orientation":t||void 0,"aria-disabled":m,className:i(nk({size:r}),R&&T===F&&"cursor-grabbing"),style:t==="horizontal"?{position:"absolute",left:`calc(${I(V)}% - ${G/2}px)`,top:"50%",transform:"translateY(-50%)"}:{position:"absolute",bottom:`calc(${I(V)}% - ${G/2}px)`,left:"50%",transform:"translateX(-50%)"},onPointerDown:O=>k(O,F),onPointerMove:E,onPointerUp:H,onPointerCancel:H,onKeyDown:O=>D(O,F)},F)),b&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("input",{type:"hidden",name:`${b}[0]`,value:h[0]}),jsxRuntime.jsx("input",{type:"hidden",name:`${b}[1]`,value:h[1]})]})]})]})});xh.displayName="RangeSlider";var lc=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{variant:{help:"text-muted-foreground hover:text-foreground",info:"text-blue-500 hover:text-blue-600",warning:"text-yellow-500 hover:text-yellow-600"},size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{variant:"help",size:"md"}}),ck=classVarianceAuthority.cva("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none animate-in fade-in-0 zoom-in-95",{variants:{size:{sm:"w-56 text-xs",md:"w-72 text-sm",lg:"w-80 text-base"}},defaultVariants:{size:"md"}}),dk={help:lucideReact.HelpCircle,info:lucideReact.Info,warning:lucideReact.AlertCircle},wh=$__namespace.forwardRef(({variant:e="help",size:t,title:r,children:a,trigger:n,side:o="top",align:s="center",open:l,onOpenChange:c,learnMoreUrl:d,learnMoreText:m="Learn more",triggerClassName:u,contentClassName:f},p)=>{let[b,x]=$__namespace.useState(false),[g,v]=$__namespace.useState(false),[y,w]=$__namespace.useState({top:0,left:0}),h=$__namespace.useRef(null),C=$__namespace.useRef(null),R=l!==void 0?l:b,M=$__namespace.useCallback(P=>{l===void 0&&x(P),c?.(P);},[l,c]);$__namespace.useEffect(()=>{v(true);},[]),$__namespace.useEffect(()=>{if(!R||!h.current)return;let P=()=>{let k=h.current.getBoundingClientRect(),E=288,H=8,S=0,D=0;switch(o){case "top":S=k.top-H,D=k.left+k.width/2;break;case "bottom":S=k.bottom+H,D=k.left+k.width/2;break;case "left":S=k.top+k.height/2,D=k.left-H;break;case "right":S=k.top+k.height/2,D=k.right+H;break}if(o==="top"||o==="bottom")switch(s){case "start":D=k.left;break;case "center":D=k.left+k.width/2-E/2;break;case "end":D=k.right-E;break}D=Math.max(8,Math.min(D,window.innerWidth-E-8)),w({top:S,left:D});};return P(),window.addEventListener("resize",P),window.addEventListener("scroll",P,true),()=>{window.removeEventListener("resize",P),window.removeEventListener("scroll",P,true);}},[R,o,s]),$__namespace.useEffect(()=>{if(!R)return;let P=k=>{C.current&&!C.current.contains(k.target)&&h.current&&!h.current.contains(k.target)&&M(false);};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[R,M]),$__namespace.useEffect(()=>{if(!R)return;let P=k=>{k.key==="Escape"&&M(false);};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[R,M]);let T=dk[e??"help"],L=()=>{M(!R);},N=()=>{switch(o){case "top":return "bottom center";case "bottom":return "top center";case "left":return "right center";case "right":return "left center";default:return "center center"}};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?$__namespace.isValidElement(n)?$__namespace.cloneElement(n,{ref:h,onClick:P=>{n.props.onClick?.(P),L();}}):jsxRuntime.jsx("button",{ref:h,type:"button",onClick:L,className:i(lc({variant:e,size:t}),u),"aria-label":"Help",children:n}):jsxRuntime.jsx("button",{ref:P=>{h.current=P,typeof p=="function"?p(P):p&&(p.current=P);},type:"button",onClick:L,className:i(lc({variant:e,size:t}),u),"aria-label":"Help",children:jsxRuntime.jsx(T,{className:"h-full w-full"})}),g&&R&&Wo__namespace.createPortal(jsxRuntime.jsxs("div",{ref:C,className:i(ck({size:t}),f),style:{position:"fixed",top:y.top,left:y.left,transformOrigin:N()},role:"tooltip",children:[r&&jsxRuntime.jsx("div",{className:"mb-2 font-semibold text-foreground",children:r}),jsxRuntime.jsx("div",{className:"text-muted-foreground",children:a}),d&&jsxRuntime.jsxs("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-block text-primary hover:underline",children:[m," \u2192"]}),jsxRuntime.jsx("div",{className:"absolute h-2 w-2 rotate-45 border bg-popover",style:{...o==="top"&&{bottom:-4,left:"50%",marginLeft:-4,borderTop:"none",borderLeft:"none"},...o==="bottom"&&{top:-4,left:"50%",marginLeft:-4,borderBottom:"none",borderRight:"none"},...o==="left"&&{right:-4,top:"50%",marginTop:-4,borderBottom:"none",borderLeft:"none"},...o==="right"&&{left:-4,top:"50%",marginTop:-4,borderTop:"none",borderRight:"none"}}})]}),document.body)]})});wh.displayName="ContextualHelp";var Nh=classVarianceAuthority.cva("flex flex-wrap",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}}),cc=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-background hover:bg-accent",soft:"bg-primary/10 text-primary",surface:"bg-muted text-muted-foreground"},size:{sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm",lg:"px-3 py-1.5 text-base"},isSelected:{true:"",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},compoundVariants:[{variant:"outline",isSelected:true,className:"border-primary bg-primary/5"},{variant:"soft",isSelected:true,className:"bg-primary/20"},{variant:"surface",isSelected:true,className:"bg-muted/80 ring-2 ring-primary/20"}],defaultVariants:{variant:"soft",size:"md",isSelected:false,isDisabled:false}});function Mh({className:e,spacing:t,variant:r,size:a,items:n,selectedKeys:o,selectionMode:s="none",onSelectionChange:l,allowsRemoving:c=false,onRemove:d,label:m,description:u,errorMessage:f,maxTags:p,...b}){let[x,g]=$__namespace.useState(new Set),v=$__namespace.useMemo(()=>o?o instanceof Set?o:new Set(o):x,[o,x]),y=R=>{if(s==="none")return;let M;s==="single"?M=v.has(R)?new Set:new Set([R]):(M=new Set(v),M.has(R)?M.delete(R):M.add(R)),o||g(M),l?.(M);},w=(R,M)=>{M.stopPropagation(),d?.(R);},h=p?n.slice(0,p):n,C=p?Math.max(0,n.length-p):0;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-1.5",children:[m&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:m}),u&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:u}),jsxRuntime.jsxs("div",{role:"group","aria-label":m,className:i(Nh({spacing:t}),e),...b,children:[h.map(R=>{let M=v.has(R.key),T=s!=="none";return jsxRuntime.jsxs("span",{role:T?"button":void 0,tabIndex:T&&!R.isDisabled?0:void 0,"aria-pressed":T?M:void 0,onClick:()=>!R.isDisabled&&y(R.key),onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&!R.isDisabled&&(L.preventDefault(),y(R.key));},style:R.color?{backgroundColor:R.color}:void 0,className:i(cc({variant:R.color?void 0:r,size:a,isSelected:M,isDisabled:R.isDisabled}),T&&!R.isDisabled&&"cursor-pointer hover:opacity-80",R.color&&"text-white"),children:[R.icon&&jsxRuntime.jsx("span",{className:"h-3.5 w-3.5 [&>svg]:h-full [&>svg]:w-full",children:R.icon}),R.label,c&&!R.isDisabled&&jsxRuntime.jsx("button",{type:"button",onClick:L=>w(R.key,L),className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${R.label}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},R.key)}),C>0&&jsxRuntime.jsxs("span",{className:i(cc({variant:"surface",size:a}),"cursor-default"),children:["+",C," more"]})]}),f&&jsxRuntime.jsx("span",{className:"text-sm text-destructive",children:f})]})}Mh.displayName="TagGroup";var kh=classVarianceAuthority.cva("grid",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",auto:"grid-cols-[repeat(auto-fill,minmax(150px,1fr))]"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{columns:"auto",gap:"md"}}),Lh=classVarianceAuthority.cva("relative flex flex-col rounded-lg border transition-all cursor-pointer",{variants:{variant:{default:"hover:border-primary/50 hover:bg-accent/50",card:"bg-card shadow-sm hover:shadow-md hover:border-primary/50"},size:{sm:"p-2",md:"p-3",lg:"p-4"},isSelected:{true:"border-primary bg-accent ring-2 ring-primary/20",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},defaultVariants:{variant:"default",size:"md",isSelected:false,isDisabled:false}});function Eh({className:e,columns:t,gap:r,items:a,selectedKeys:n,selectionMode:o="none",onSelectionChange:s,showSelectionIndicator:l=true,itemVariant:c="default",itemSize:d="md",renderItem:m,emptyContent:u,...f}){let[p,b]=$__namespace.useState(new Set),x=$__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),g=v=>{if(o==="none")return;let y;o==="single"?y=x.has(v)?new Set:new Set([v]):(y=new Set(x),y.has(v)?y.delete(v):y.add(v)),n||b(y),s?.(y);};return a.length===0?jsxRuntime.jsx("div",{className:i("flex items-center justify-center p-8 text-muted-foreground",e),children:u||"No items"}):jsxRuntime.jsx("div",{role:"grid","aria-multiselectable":o==="multiple",className:i(kh({columns:t,gap:r,className:e})),...f,children:a.map(v=>{let y=x.has(v.key);return m?jsxRuntime.jsx("div",{role:"gridcell","aria-selected":y,onClick:()=>g(v.key),children:m(v,y)},v.key):jsxRuntime.jsxs("div",{role:"gridcell","aria-selected":y,"aria-disabled":v.isDisabled,onClick:()=>!v.isDisabled&&g(v.key),className:i(Lh({variant:c,size:d,isSelected:y,isDisabled:v.isDisabled})),children:[l&&o!=="none"&&y&&jsxRuntime.jsx("div",{className:"absolute top-2 right-2 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-primary-foreground",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),v.thumbnail&&jsxRuntime.jsx("div",{className:"mb-2 aspect-square w-full overflow-hidden rounded-md bg-muted",children:v.thumbnail}),jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:v.label}),v.description&&jsxRuntime.jsx("div",{className:"mt-1 truncate text-sm text-muted-foreground",children:v.description})]})]},v.key)})})}Eh.displayName="GridList";var Sh=classVarianceAuthority.cva("relative w-full",{variants:{size:{sm:"h-1.5",md:"h-2",lg:"h-3"}},defaultVariants:{size:"md"}}),fk=classVarianceAuthority.cva("w-full h-full rounded-full overflow-hidden",{variants:{variant:{default:"bg-secondary",subtle:"bg-muted"}},defaultVariants:{variant:"default"}}),gk=classVarianceAuthority.cva("h-full transition-all duration-300 ease-out",{variants:{color:{primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",info:"bg-blue-500",auto:""},rounded:{true:"rounded-full",false:"rounded-l-full"}},defaultVariants:{color:"primary",rounded:true}}),oi=$__namespace.forwardRef(({className:e,size:t,value:r,min:a=0,max:n=100,optimum:o,low:s,high:l,label:c,showValueLabel:d=false,formatValue:m,color:u="primary",trackVariant:f="default",...p},b)=>{let x=Math.min(100,Math.max(0,(r-a)/(n-a)*100)),g=()=>{if(u!=="auto")return "";let y=(r-a)/(n-a),w=s!==void 0?(s-a)/(n-a):.25,h=l!==void 0?(l-a)/(n-a):.75;return (o!==void 0?(o-a)/(n-a):1)>=.5?y<=w?"bg-red-500":y<=h?"bg-yellow-500":"bg-green-500":y>=h?"bg-red-500":y>=w?"bg-yellow-500":"bg-green-500"},v=m?m(r,x):`${Math.round(x)}%`;return jsxRuntime.jsxs("div",{ref:b,className:i("w-full",e),...p,children:[(c||d)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[c&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:c}),d&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:v})]}),jsxRuntime.jsx("div",{role:"meter","aria-valuenow":r,"aria-valuemin":a,"aria-valuemax":n,"aria-label":c,className:i(Sh({size:t})),children:jsxRuntime.jsx("div",{className:i(fk({variant:f})),children:jsxRuntime.jsx("div",{className:i(gk({color:u==="auto"?void 0:u,rounded:x>=100}),u==="auto"&&g()),style:{width:`${x}%`}})})})]})});oi.displayName="Meter";var Hh=$__namespace.forwardRef((e,t)=>jsxRuntime.jsx(oi,{ref:t,color:"auto",low:50,high:80,optimum:0,...e}));Hh.displayName="DiskUsageMeter";var Ih=$__namespace.forwardRef((e,t)=>jsxRuntime.jsx(oi,{ref:t,color:"auto",low:20,high:50,optimum:100,...e}));Ih.displayName="BatteryMeter";var Vh=classVarianceAuthority.cva("relative rounded-lg overflow-hidden cursor-crosshair touch-none select-none",{variants:{size:{sm:"h-32 w-32",md:"h-48 w-48",lg:"h-64 w-64",full:"h-full w-full min-h-48"}},defaultVariants:{size:"md"}}),ii=(e,t,r)=>{let a=n=>{let o=(n+e/60)%6;return r-r*t*Math.max(Math.min(o,4-o,1),0)};return [Math.round(a(5)*255),Math.round(a(3)*255),Math.round(a(1)*255)]},Ah=(e,t,r)=>{e/=255,t/=255,r/=255;let a=Math.max(e,t,r),n=Math.min(e,t,r),o=a-n,s=0,l=a===0?0:o/a,c=a;if(o!==0)switch(a){case e:s=((t-r)/o+(t<r?6:0))*60;break;case t:s=((r-e)/o+2)*60;break;case r:s=((e-t)/o+4)*60;break}return [s,l,c]},zh=e=>{let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null},Bh=(e,t,r)=>"#"+[e,t,r].map(a=>a.toString(16).padStart(2,"0")).join(""),Oh=$__namespace.forwardRef(({hue:e,saturation:t,brightness:r,value:a,defaultValue:n="#ff0000",onChange:o,onColorChange:s,size:l,disabled:c,thumbSize:d=18,className:m,...u},f)=>{let p=$__namespace.useRef(null),[b,x]=$__namespace.useState(false),g=$__namespace.useCallback(V=>{let F=zh(V);return F?Ah(...F):[0,1,1]},[]),[v,y]=$__namespace.useState(()=>g(a||n)),w=e??v[0],h=t??v[1],C=r??v[2];$__namespace.useEffect(()=>{if(a){let V=g(a);y(V);}},[a,g]);let R=$__namespace.useCallback((V,F)=>{if(c||!p.current)return;let O=p.current.getBoundingClientRect(),Q=Math.max(0,Math.min(1,(V-O.left)/O.width)),re=Math.max(0,Math.min(1,(F-O.top)/O.height)),K=Q,B=1-re;t===void 0&&r===void 0&&y([w,K,B]),o?.({hue:w,saturation:K,brightness:B});let j=ii(w,K,B);s?.(Bh(...j));},[c,w,t,r,o,s]),M=V=>{c||(V.preventDefault(),x(true),V.target.setPointerCapture(V.pointerId),R(V.clientX,V.clientY));},T=V=>{b&&R(V.clientX,V.clientY);},L=V=>{x(false),V.target.releasePointerCapture(V.pointerId);},[N,P,k]=ii(w,1,1),E=`rgb(${N}, ${P}, ${k})`,H=h*100,S=(1-C)*100,[D,I,z]=ii(w,h,C),G=`rgb(${D}, ${I}, ${z})`;return jsxRuntime.jsx("div",{ref:f,className:i(Vh({size:l}),c&&"cursor-not-allowed opacity-50",m),...u,children:jsxRuntime.jsxs("div",{ref:p,className:"absolute inset-0",style:{backgroundColor:E},onPointerDown:M,onPointerMove:T,onPointerUp:L,onPointerLeave:L,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to right, white, transparent)"}}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, transparent, black)"}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white pointer-events-none",style:{width:d,height:d,left:`calc(${H}% - ${d/2}px)`,top:`calc(${S}% - ${d/2}px)`,backgroundColor:G,boxShadow:"0 0 0 1px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Oh.displayName="ColorArea";var Kh=classVarianceAuthority.cva("relative rounded-full cursor-pointer touch-none select-none",{variants:{orientation:{horizontal:"w-full",vertical:"h-full"},size:{sm:"",md:"",lg:""}},compoundVariants:[{orientation:"horizontal",size:"sm",className:"h-3"},{orientation:"horizontal",size:"md",className:"h-4"},{orientation:"horizontal",size:"lg",className:"h-5"},{orientation:"vertical",size:"sm",className:"w-3"},{orientation:"vertical",size:"md",className:"w-4"},{orientation:"vertical",size:"lg",className:"w-5"}],defaultVariants:{orientation:"horizontal",size:"md"}}),xk=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,Fh="linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)",Gh=$__namespace.forwardRef(({value:e,defaultValue:t,onChange:r,channel:a="hue",baseColor:n="#ff0000",orientation:o,size:s,disabled:l,thumbSize:c=18,showBorder:d=true,className:m,...u},f)=>{let p=$__namespace.useRef(null),[b,x]=$__namespace.useState(false),g=()=>{switch(a){case "hue":return 0;case "alpha":case "saturation":case "brightness":return 1;default:return 0}},[v,y]=$__namespace.useState(t??g()),w=e??v,h=a==="hue"?w/360:w,C=$__namespace.useCallback((E,H)=>{if(l||!p.current)return;let S=p.current.getBoundingClientRect(),D=o!=="vertical",I;D?I=Math.max(0,Math.min(1,(E-S.left)/S.width)):I=Math.max(0,Math.min(1,1-(H-S.top)/S.height));let z=a==="hue"?I*360:I;e===void 0&&y(z),r?.(z);},[l,o,a,e,r]),R=E=>{l||(E.preventDefault(),x(true),E.target.setPointerCapture(E.pointerId),C(E.clientX,E.clientY));},M=E=>{b&&C(E.clientX,E.clientY);},T=E=>{x(false),E.target.releasePointerCapture(E.pointerId);},L=()=>{let E=o!=="vertical",H=E?"to right":"to top";switch(a){case "hue":return E?Fh:"linear-gradient(to top, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)";case "alpha":return `linear-gradient(${H}, transparent, ${n})`;case "saturation":return `linear-gradient(${H}, #808080, ${n})`;case "brightness":return `linear-gradient(${H}, #000000, ${n})`;default:return Fh}},N=()=>a==="hue"?`hsl(${w}, 100%, 50%)`:n,P=o!=="vertical",k=h*100;return jsxRuntime.jsx("div",{ref:f,className:i(Kh({orientation:o,size:s}),l&&"cursor-not-allowed opacity-50",m),...u,children:jsxRuntime.jsxs("div",{ref:p,className:i("absolute inset-0 rounded-full overflow-hidden",d&&"border border-input"),style:{backgroundImage:a==="alpha"?xk:void 0,backgroundSize:a==="alpha"?"8px 8px":void 0},onPointerDown:R,onPointerMove:M,onPointerUp:T,onPointerLeave:T,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:L()}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:c,height:c,...P?{left:`calc(${k}% - ${c/2}px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${k}% - ${c/2}px)`,left:"50%",transform:"translateX(-50%)"},backgroundColor:N(),boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Gh.displayName="ColorSlider";var $h=classVarianceAuthority.cva("relative cursor-crosshair touch-none select-none",{variants:{size:{sm:"h-32 w-32",md:"h-48 w-48",lg:"h-64 w-64"}},defaultVariants:{size:"md"}}),wk=(e,t,r)=>{let a=e-r,n=t-r,o=Math.atan2(n,a)*180/Math.PI+90;return o<0&&(o+=360),o},_h=$__namespace.forwardRef(({value:e,defaultValue:t=0,onChange:r,size:a,disabled:n,innerRadius:o=.6,thumbSize:s=20,showCenter:l=true,className:c,...d},m)=>{let u=$__namespace.useRef(null),[f,p]=$__namespace.useState(false),[b,x]=$__namespace.useState(t),g=e??b,v=$__namespace.useCallback((R,M)=>{if(n||!u.current)return;let T=u.current.getBoundingClientRect(),L=T.width/2,N=R-T.left,P=M-T.top,k=wk(N,P,L);e===void 0&&x(k),r?.(k);},[n,e,r]),y=R=>{n||(R.preventDefault(),p(true),R.target.setPointerCapture(R.pointerId),v(R.clientX,R.clientY));},w=R=>{f&&v(R.clientX,R.clientY);},h=R=>{p(false),R.target.releasePointerCapture(R.pointerId);},C=()=>{let R=[];for(let M=0;M<=360;M+=30)R.push(`hsl(${M}, 100%, 50%) ${M}deg`);return `conic-gradient(from 270deg, ${R.join(", ")})`};return jsxRuntime.jsx("div",{ref:m,className:i($h({size:a}),n&&"cursor-not-allowed opacity-50",c),...d,children:jsxRuntime.jsxs("div",{ref:u,className:"absolute inset-0 rounded-full",style:{background:C()},onPointerDown:y,onPointerMove:w,onPointerUp:h,onPointerLeave:h,children:[o<1&&jsxRuntime.jsx("div",{className:"absolute bg-background rounded-full",style:{top:`${(1-o)*50}%`,left:`${(1-o)*50}%`,width:`${o*100}%`,height:`${o*100}%`}}),l&&o<1&&jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-input bg-background",style:{width:8,height:8,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}),jsxRuntime.jsx(Ck,{hue:g,innerRadius:o,thumbSize:s})]})})});_h.displayName="ColorWheel";var Ck=({hue:e,innerRadius:t,thumbSize:r})=>{let a=(1-(1-t)/2)*50,n=(e-90)*Math.PI/180,o=50+a*Math.cos(n),s=50+a*Math.sin(n);return jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:r,height:r,left:`calc(${o}% - ${r/2}px)`,top:`calc(${s}% - ${r/2}px)`,backgroundColor:`hsl(${e}, 100%, 50%)`,boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})};var Wh=classVarianceAuthority.cva("flex",{variants:{direction:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},gap:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},inline:{true:"inline-flex",false:"flex"}},defaultVariants:{direction:"row",align:"stretch",justify:"start",wrap:"nowrap",gap:0,inline:false}}),bo=$__namespace.forwardRef(({className:e,direction:t,align:r,justify:a,wrap:n,gap:o,inline:s,as:l="div",...c},d)=>jsxRuntime.jsx(l,{ref:d,className:i(Wh({direction:t,align:r,justify:a,wrap:n,gap:o,inline:s,className:e})),...c}));bo.displayName="Flex";var jh=$__namespace.forwardRef(({gap:e=2,align:t="center",...r},a)=>jsxRuntime.jsx(bo,{ref:a,direction:"row",gap:e,align:t,...r}));jh.displayName="HStack";var Uh=$__namespace.forwardRef(({gap:e=2,align:t="stretch",...r},a)=>jsxRuntime.jsx(bo,{ref:a,direction:"column",gap:e,align:t,...r}));Uh.displayName="VStack";var Yh=$__namespace.forwardRef((e,t)=>jsxRuntime.jsx(bo,{ref:t,align:"center",justify:"center",...e}));Yh.displayName="Center";var qh=classVarianceAuthority.cva("grid",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",none:"grid-cols-none",auto:"grid-cols-[repeat(auto-fill,minmax(200px,1fr))]"},rows:{1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",none:"grid-rows-none"},gap:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},gapX:{0:"gap-x-0",1:"gap-x-1",2:"gap-x-2",3:"gap-x-3",4:"gap-x-4",5:"gap-x-5",6:"gap-x-6",8:"gap-x-8",10:"gap-x-10",12:"gap-x-12"},gapY:{0:"gap-y-0",1:"gap-y-1",2:"gap-y-2",3:"gap-y-3",4:"gap-y-4",5:"gap-y-5",6:"gap-y-6",8:"gap-y-8",10:"gap-y-10",12:"gap-y-12"},flow:{row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},placeItems:{start:"place-items-start",center:"place-items-center",end:"place-items-end",stretch:"place-items-stretch"}},defaultVariants:{columns:1,gap:4,flow:"row",align:"stretch",justify:"stretch"}}),ci=$__namespace.forwardRef(({className:e,columns:t,rows:r,gap:a,gapX:n,gapY:o,flow:s,align:l,justify:c,placeItems:d,as:m="div",minChildWidth:u,style:f,...p},b)=>{let x=u?{...f,gridTemplateColumns:`repeat(auto-fill, minmax(${u}, 1fr))`}:f;return jsxRuntime.jsx(m,{ref:b,className:i(qh({columns:u?void 0:t,rows:r,gap:a,gapX:n,gapY:o,flow:s,align:l,justify:c,placeItems:d,className:e})),style:x,...p})});ci.displayName="Grid";var Zh=classVarianceAuthority.cva("",{variants:{colSpan:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},rowSpan:{1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},colStart:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",13:"col-start-13",auto:"col-start-auto"},colEnd:{1:"col-end-1",2:"col-end-2",3:"col-end-3",4:"col-end-4",5:"col-end-5",6:"col-end-6",7:"col-end-7",8:"col-end-8",9:"col-end-9",10:"col-end-10",11:"col-end-11",12:"col-end-12",13:"col-end-13",auto:"col-end-auto"},rowStart:{1:"row-start-1",2:"row-start-2",3:"row-start-3",4:"row-start-4",5:"row-start-5",6:"row-start-6",7:"row-start-7",auto:"row-start-auto"},rowEnd:{1:"row-end-1",2:"row-end-2",3:"row-end-3",4:"row-end-4",5:"row-end-5",6:"row-end-6",7:"row-end-7",auto:"row-end-auto"}}}),Jh=$__namespace.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:a,colEnd:n,rowStart:o,rowEnd:s,as:l="div",...c},d)=>jsxRuntime.jsx(l,{ref:d,className:i(Zh({colSpan:t,rowSpan:r,colStart:a,colEnd:n,rowStart:o,rowEnd:s,className:e})),...c}));Jh.displayName="GridItem";var Qh=$__namespace.forwardRef(({columns:e=2,className:t,...r},a)=>{if(typeof e=="number")return jsxRuntime.jsx(ci,{ref:a,columns:e,className:t,...r});let n=i(e.sm&&`sm:grid-cols-${e.sm}`,e.md&&`md:grid-cols-${e.md}`,e.lg&&`lg:grid-cols-${e.lg}`,e.xl&&`xl:grid-cols-${e.xl}`);return jsxRuntime.jsx(ci,{ref:a,columns:1,className:i(n,t),...r})});Qh.displayName="SimpleGrid";var tx=classVarianceAuthority.cva("rounded-lg",{variants:{variant:{default:"bg-muted",subtle:"bg-muted/50",outline:"border border-border bg-transparent",filled:"bg-accent",sunken:"bg-muted shadow-inner"},size:{sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-3xl"}},defaultVariants:{variant:"default",size:"md",radius:"lg"}}),rx=$__namespace.forwardRef(({className:e,variant:t,size:r,radius:a,as:n="div",...o},s)=>jsxRuntime.jsx(n,{ref:s,className:i(tx({variant:t,size:r,radius:a,className:e})),...o}));rx.displayName="Well";var nx=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center gap-2",vertical:"flex-col gap-1"},size:{sm:"",md:"",lg:""},align:{start:"items-start",center:"items-center",end:"items-end"}},compoundVariants:[{orientation:"horizontal",align:"start",className:"items-start"},{orientation:"horizontal",align:"center",className:"items-center"},{orientation:"horizontal",align:"end",className:"items-end"}],defaultVariants:{orientation:"vertical",size:"md",align:"start"}}),kk=classVarianceAuthority.cva("text-muted-foreground font-medium",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Lk=classVarianceAuthority.cva("text-foreground",{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},mono:{true:"font-mono",false:""}},defaultVariants:{size:"md",weight:"normal",mono:false}}),ox=$__namespace.forwardRef(({className:e,orientation:t,size:r,align:a,label:n,value:o,valueWeight:s,mono:l,labelWidth:c,labelClassName:d,valueClassName:m,showColon:u=false,copyable:f=false,onCopy:p,...b},x)=>{let g=async()=>{if(!(!f||o===null||o===void 0))try{let v=typeof o=="string"?o:String(o);await navigator.clipboard.writeText(v),p?.();}catch{}};return jsxRuntime.jsxs("div",{ref:x,className:i(nx({orientation:t,size:r,align:a,className:e})),...b,children:[jsxRuntime.jsxs("span",{className:i(kk({size:r}),d),style:c?{width:c,flexShrink:0}:void 0,children:[n,u&&":"]}),jsxRuntime.jsx("span",{className:i(Lk({size:r,weight:s,mono:l}),f&&"cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1 transition-colors",m),onClick:f?g:void 0,role:f?"button":void 0,tabIndex:f?0:void 0,onKeyDown:f?v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),g());}:void 0,children:o})]})});ox.displayName="LabeledValue";var sx=classVarianceAuthority.cva("",{variants:{orientation:{horizontal:"flex flex-row flex-wrap",vertical:"flex flex-col"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"vertical",gap:"md"}}),ix=$__namespace.forwardRef(({className:e,orientation:t,gap:r,...a},n)=>jsxRuntime.jsx("div",{ref:n,className:i(sx({orientation:t,gap:r,className:e})),...a}));ix.displayName="LabeledValueGroup";var ux=classVarianceAuthority.cva("flex items-center rounded-md border border-input bg-background ring-offset-background transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",{variants:{size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base"},variant:{default:"",filled:"bg-muted border-transparent",ghost:"border-transparent hover:bg-muted"}},defaultVariants:{size:"md",variant:"default"}}),Pn=classVarianceAuthority.cva("text-muted-foreground shrink-0",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),mx=$__namespace.forwardRef(({value:e,defaultValue:t="",onChange:r,onSearch:a,onSelect:n,suggestions:o=[],recentSearches:s=[],onClearRecentSearches:l,trendingSearches:c=[],isLoading:d,showClear:m=true,showIcon:u=true,popoverWidth:f="trigger",emptyMessage:p="No results found",size:b,variant:x,className:g,placeholder:v="Search...",disabled:y,...w},h)=>{let[C,R]=$__namespace.useState(false),[M,T]=$__namespace.useState(t),L=e!==void 0?e:M,N=$__namespace.useRef(null);$__namespace.useImperativeHandle(h,()=>N.current);let P=L.length>0,k=C&&(o.length>0||s.length>0||c.length>0||P),E=V=>{e===void 0&&T(V),r?.(V);},H=()=>{E(""),N.current?.focus();},S=V=>{V?.preventDefault(),L.trim()&&(a?.(L.trim()),R(false));},D=V=>{E(V.label),n?.(V),R(false);},I=V=>{E(V),a?.(V),R(false);},z=V=>{E(V),a?.(V),R(false);},G=$__namespace.useMemo(()=>{let V={};return o.forEach(F=>{let O=F.category||"Results";V[O]||(V[O]=[]),V[O].push(F);}),V},[o]);return jsxRuntime.jsxs(at,{open:k,onOpenChange:R,children:[jsxRuntime.jsx(ht,{asChild:true,children:jsxRuntime.jsxs("form",{onSubmit:S,className:i(ux({size:b,variant:x}),g),children:[u&&jsxRuntime.jsx(lucideReact.Search,{className:i(Pn({size:b}),"ml-3")}),jsxRuntime.jsx("input",{ref:N,type:"text",value:L,onChange:V=>E(V.target.value),onFocus:()=>R(true),placeholder:v,disabled:y,className:i("flex-1 bg-transparent px-3 py-2 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",!u&&"pl-3"),...w}),m&&P&&!y&&jsxRuntime.jsx("button",{type:"button",onClick:H,className:i("mr-2 rounded-sm p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",Pn({size:b})),children:jsxRuntime.jsx(lucideReact.X,{className:"h-full w-full"})})]})}),jsxRuntime.jsx(nt,{className:"p-0",style:{width:f==="trigger"?"var(--radix-popover-trigger-width)":f},align:"start",onOpenAutoFocus:V=>V.preventDefault(),children:jsxRuntime.jsxs(cmdk.Command,{className:"rounded-lg border-0",children:[s.length>0&&!P&&jsxRuntime.jsxs("div",{className:"p-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-1.5",children:[jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Recent"}),l&&jsxRuntime.jsx("button",{type:"button",onClick:l,className:"text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),s.map((V,F)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>I(V),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[jsxRuntime.jsx(lucideReact.Clock,{className:i(Pn({size:b}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:V}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:i(Pn({size:b}),"opacity-0 group-hover:opacity-100")})]},F))]}),c.length>0&&!P&&jsxRuntime.jsxs("div",{className:"border-t p-2",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5",children:jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Trending"})}),c.map((V,F)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>z(V),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[jsxRuntime.jsx(lucideReact.TrendingUp,{className:i(Pn({size:b}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:V})]},F))]}),P&&jsxRuntime.jsx("div",{className:"p-2",children:d?jsxRuntime.jsx("div",{className:"flex items-center justify-center py-6",children:jsxRuntime.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):o.length>0?Object.entries(G).map(([V,F])=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5",children:jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:V})}),F.map(O=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>D(O),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[O.icon||jsxRuntime.jsx(lucideReact.Search,{className:i(Pn({size:b}))}),jsxRuntime.jsxs("div",{className:"flex-1 text-left",children:[jsxRuntime.jsx("div",{className:"truncate",children:O.label}),O.description&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:O.description})]})]},O.id))]},V)):jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:p})})]})})]})});mx.displayName="SearchBar";var px={Pages:jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),Files:jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),Settings:jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"}),Users:jsxRuntime.jsx(lucideReact.User,{className:"h-4 w-4"}),Tags:jsxRuntime.jsx(lucideReact.Hash,{className:"h-4 w-4"})},bx=$__namespace.forwardRef(({open:e,onOpenChange:t,items:r=[],recentItems:a=[],placeholder:n="Search...",isLoading:o,emptyMessage:s="No results found.",filter:l,shortcut:c="\u2318K",onSelect:d,footer:m},u)=>{let[f,p]=$__namespace.useState(""),b=$__namespace.useRef(null),[x,g]=$__namespace.useState(false);$__namespace.useEffect(()=>{g(true);},[]),$__namespace.useEffect(()=>{e||p("");},[e]),$__namespace.useEffect(()=>{if(!e)return;let R=M=>{M.key==="Escape"&&t?.(false);};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[e,t]),$__namespace.useEffect(()=>(e&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[e]);let v=$__namespace.useMemo(()=>{let R={};return r.forEach(M=>{let T=M.category||"Results";R[T]||(R[T]=[]),R[T].push(M);}),R},[r]),y=R=>{R.onSelect?.(),d?.(R),t?.(false);},w=()=>{t?.(false);},h=f.length>0,C=!h&&a.length>0;return !x||!e?null:Wo__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-state":e?"open":"closed",onClick:w}),jsxRuntime.jsx("div",{ref:u,className:"fixed left-1/2 top-[20%] z-50 w-full max-w-2xl -translate-x-1/2 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=open]:slide-in-from-left-1/2","data-state":e?"open":"closed",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-xl border bg-background shadow-2xl",filter:l,shouldFilter:!l,children:[jsxRuntime.jsxs("div",{className:"flex items-center border-b px-4",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-5 w-5 shrink-0 text-muted-foreground"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:b,value:f,onValueChange:p,placeholder:n,className:"flex h-14 w-full bg-transparent px-4 py-4 text-base outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),f&&jsxRuntime.jsx("button",{type:"button",onClick:()=>p(""),className:"rounded-sm p-1 text-muted-foreground hover:text-foreground",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}),jsxRuntime.jsx(cmdk.Command.List,{className:"max-h-[400px] overflow-y-auto p-2",children:o?jsxRuntime.jsx("div",{className:"flex items-center justify-center py-10",children:jsxRuntime.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[C&&jsxRuntime.jsxs(cmdk.Command.Group,{heading:"Recent",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Recent"}),a.map(R=>jsxRuntime.jsxs(cmdk.Command.Item,{value:R.label,onSelect:()=>y(R),className:"flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm aria-selected:bg-muted",children:[jsxRuntime.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted",children:R.icon||px[R.category||""]||jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"})}),jsxRuntime.jsxs("div",{className:"flex-1 overflow-hidden",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:R.label}),R.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:R.description})]}),R.shortcut&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:R.shortcut.map((M,T)=>jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-medium",children:M},T))})]},R.id))]}),h&&Object.entries(v).map(([R,M])=>jsxRuntime.jsxs(cmdk.Command.Group,{heading:R,children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:R}),M.map(T=>jsxRuntime.jsxs(cmdk.Command.Item,{value:`${T.label} ${T.keywords?.join(" ")||""}`,onSelect:()=>y(T),className:"flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm aria-selected:bg-muted",children:[jsxRuntime.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted",children:T.icon||px[R]||jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"})}),jsxRuntime.jsxs("div",{className:"flex-1 overflow-hidden",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:T.label}),T.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:T.description})]}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-4 w-4 text-muted-foreground opacity-0 group-aria-selected:opacity-100"})]},T.id))]},R)),jsxRuntime.jsx(cmdk.Command.Empty,{className:"py-10 text-center text-sm text-muted-foreground",children:s})]})}),m?jsxRuntime.jsx("div",{className:"border-t px-4 py-3",children:m}):jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-t px-4 py-3 text-xs text-muted-foreground",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"\u2191\u2193"}),"Navigate"]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"\u21B5"}),"Select"]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"Esc"}),"Close"]})]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:["Press ",jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:c})," to open"]})]})]})})]}),document.body)});bx.displayName="SpotlightSearch";function Gk(e="k"){let[t,r]=$__namespace.useState(false);return $__namespace.useEffect(()=>{let a=n=>{(n.metaKey||n.ctrlKey)&&n.key===e&&(n.preventDefault(),r(o=>!o));};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),{open:t,setOpen:r,toggle:()=>r(a=>!a)}}var xx=$__namespace.createContext(null),pi=()=>{let e=$__namespace.useContext(xx);if(!e)throw new Error("useNotificationCenter must be used within a NotificationCenterProvider");return e},qk=({children:e,notifications:t,onNotificationsChange:r})=>{let[a,n]=$__namespace.useState([]),[o,s]=$__namespace.useState(false),l=$__namespace.useRef(null),c=t!==void 0,d=c?t:a,m=$__namespace.useCallback(g=>{c?r?.(g):n(g);},[c,r]),u=d.filter(g=>!g.read).length,f=$__namespace.useCallback(g=>{m(d.map(v=>v.id===g?{...v,read:true}:v));},[d,m]),p=$__namespace.useCallback(()=>{m(d.map(g=>({...g,read:true})));},[d,m]),b=$__namespace.useCallback(g=>{m(d.filter(v=>v.id!==g));},[d,m]),x=$__namespace.useCallback(()=>{m([]);},[m]);return jsxRuntime.jsx(xx.Provider,{value:{notifications:d,unreadCount:u,markAsRead:f,markAllAsRead:p,removeNotification:b,clearAll:x,open:o,setOpen:s,triggerRef:l},children:e})},yx=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("relative inline-block",e),...r,children:t}));yx.displayName="NotificationCenter";var Rx=$__namespace.forwardRef(({className:e,showBadge:t=true,children:r,onClick:a,...n},o)=>{let{unreadCount:s,open:l,setOpen:c,triggerRef:d}=pi(),m=f=>{a?.(f),c(!l);},u=s>99?"99+":String(s);return jsxRuntime.jsxs("button",{ref:f=>{d.current=f,typeof o=="function"?o(f):o&&(o.current=f);},type:"button",onClick:m,"aria-label":"Notifications"+(s>0?", "+s+" unread":""),className:i("relative inline-flex items-center justify-center rounded-md p-2 text-muted-foreground hover:bg-accent hover:text-accent-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",e),...n,children:[r||jsxRuntime.jsx(lucideReact.Bell,{className:"h-5 w-5"}),t&&s>0&&jsxRuntime.jsx("span",{className:"absolute -top-1 -right-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-destructive px-1 text-xs font-medium text-destructive-foreground",children:u})]})});Rx.displayName="NotificationCenterTrigger";var wx=$__namespace.forwardRef(({className:e,align:t="end",sideOffset:r=8,emptyMessage:a="No notifications",children:n,...o},s)=>{let{open:l,setOpen:c,notifications:d,markAllAsRead:m,clearAll:u,triggerRef:f}=pi(),[p,b]=$__namespace.useState(false),x=$__namespace.useRef(null),[g,v]=$__namespace.useState({top:0,left:0});return $__namespace.useEffect(()=>{b(true);},[]),$__namespace.useEffect(()=>{if(!l||!f.current||!x.current)return;let y=()=>{if(!f.current||!x.current)return;let w=f.current.getBoundingClientRect(),h=x.current.getBoundingClientRect(),C=w.bottom+r,R=w.left;t==="center"?R=w.left+w.width/2-h.width/2:t==="end"&&(R=w.right-h.width),R+h.width>window.innerWidth-16&&(R=window.innerWidth-h.width-16),R<16&&(R=16),v({top:C,left:R});};return y(),window.addEventListener("resize",y),window.addEventListener("scroll",y,true),()=>{window.removeEventListener("resize",y),window.removeEventListener("scroll",y,true);}},[l,f,t,r]),$__namespace.useEffect(()=>{if(!l)return;let y=h=>{x.current&&!x.current.contains(h.target)&&f.current&&!f.current.contains(h.target)&&c(false);},w=h=>{h.key==="Escape"&&c(false);};return document.addEventListener("mousedown",y),document.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("keydown",w);}},[l,c,f]),!p||!l?null:Wo__namespace.createPortal(jsxRuntime.jsxs("div",{ref:y=>{x.current=y,typeof s=="function"?s(y):s&&(s.current=y);},className:i("fixed z-50 w-80 sm:w-96 max-h-[70vh] overflow-hidden rounded-lg border bg-popover text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",e),style:{top:g.top,left:g.left},...o,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[jsxRuntime.jsx("h3",{className:"font-semibold",children:"Notifications"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[d.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:m,className:"text-xs text-muted-foreground hover:text-foreground",children:"Mark all read"}),jsxRuntime.jsx("button",{type:"button",onClick:u,className:"text-xs text-muted-foreground hover:text-foreground",children:"Clear all"})]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>c(false),className:"rounded-md p-1 hover:bg-accent",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})]}),jsxRuntime.jsx("div",{className:"max-h-[calc(70vh-60px)] overflow-y-auto",children:n||(d.length===0?jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-10 w-10 mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:a})]}):d.map(y=>jsxRuntime.jsx(fc,{notification:y},y.id)))})]}),document.body)});wx.displayName="NotificationCenterContent";var Zk={info:"border-l-blue-500",success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"},Jk={info:lucideReact.Info,success:lucideReact.CheckCircle,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},fc=({notification:e,onMarkAsRead:t,onRemove:r})=>{let{markAsRead:a,removeNotification:n}=pi(),{id:o,title:s,description:l,type:c="info",timestamp:d,read:m,avatar:u,action:f}=e,p=Jk[c],b=()=>{t?t():a(o);},x=()=>{r?r():n(o);},g=v=>{if(!v)return null;let y=typeof v=="string"?new Date(v):v,h=new Date().getTime()-y.getTime(),C=Math.floor(h/6e4),R=Math.floor(h/36e5),M=Math.floor(h/864e5);return C<1?"Just now":C<60?C+"m ago":R<24?R+"h ago":M<7?M+"d ago":y.toLocaleDateString()};return jsxRuntime.jsxs("div",{className:i("group relative flex gap-3 border-b border-l-4 px-4 py-3 transition-colors hover:bg-accent/50",Zk[c],!m&&"bg-accent/20"),children:[jsxRuntime.jsx("div",{className:"flex-shrink-0",children:u||jsxRuntime.jsx("div",{className:i("flex h-8 w-8 items-center justify-center rounded-full",c==="info"&&"bg-blue-100 text-blue-600 dark:bg-blue-900 dark:text-blue-400",c==="success"&&"bg-green-100 text-green-600 dark:bg-green-900 dark:text-green-400",c==="warning"&&"bg-yellow-100 text-yellow-600 dark:bg-yellow-900 dark:text-yellow-400",c==="error"&&"bg-red-100 text-red-600 dark:bg-red-900 dark:text-red-400"),children:jsxRuntime.jsx(p,{className:"h-4 w-4"})})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-2",children:[jsxRuntime.jsx("p",{className:i("text-sm font-medium",!m&&"font-semibold"),children:s}),!m&&jsxRuntime.jsx("span",{className:"h-2 w-2 flex-shrink-0 rounded-full bg-primary"})]}),l&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground line-clamp-2",children:l}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[d&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:g(d)}),f&&jsxRuntime.jsx("button",{type:"button",onClick:f.onClick,className:"text-xs font-medium text-primary hover:underline",children:f.label})]})]}),jsxRuntime.jsx("div",{className:"flex-shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:jsxRuntime.jsxs("div",{className:"flex gap-1",children:[!m&&jsxRuntime.jsx("button",{type:"button",onClick:b,className:"rounded-md p-1 hover:bg-accent",title:"Mark as read",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",onClick:x,className:"rounded-md p-1 hover:bg-accent text-destructive",title:"Remove",children:jsxRuntime.jsx(lucideReact.Trash2,{className:"h-4 w-4"})})]})})]})};fc.displayName="NotificationItem";var Cx=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("divide-y",e),...r,children:t}));Cx.displayName="NotificationList";var Nx=classVarianceAuthority.cva("relative flex items-center justify-center gap-3 px-4 py-2.5 text-sm",{variants:{variant:{solid:"",flat:""},type:{default:"",success:"",warning:"",error:""},position:{top:"fixed top-0 left-0 right-0 z-50",relative:"relative"}},compoundVariants:[{variant:"solid",type:"default",className:"bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"bg-green-600 text-white dark:bg-green-500 [&>svg]:text-white"},{variant:"flat",type:"success",className:"bg-green-600/10 text-green-600 dark:bg-green-500/10 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"solid",type:"warning",className:"bg-amber-600 text-white dark:bg-amber-500 [&>svg]:text-white"},{variant:"flat",type:"warning",className:"bg-amber-600/10 text-amber-600 dark:bg-amber-500/10 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"solid",type:"error",className:"bg-red-600 text-white dark:bg-red-500 [&>svg]:text-white"},{variant:"flat",type:"error",className:"bg-red-600/10 text-red-600 dark:bg-red-500/10 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"}],defaultVariants:{variant:"solid",type:"default",position:"relative"}}),sL={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},Mx=$__namespace.forwardRef(({message:e,type:t="default",variant:r="solid",showIcon:a=false,icon:n,dismissible:o=true,onDismiss:s,endContent:l,position:c,animate:d,autoDismiss:m,storageKey:u,className:f,...p},b)=>{let[x,g]=$__namespace.useState(true),[v,y]=$__namespace.useState(false);$__namespace.useEffect(()=>{u&&localStorage.getItem(`banner-${u}`)==="true"&&g(false);},[u]),$__namespace.useEffect(()=>{if(m&&x){let R=setTimeout(()=>{w();},m);return ()=>clearTimeout(R)}},[m,x]);let w=()=>{y(true),setTimeout(()=>{g(false),u&&localStorage.setItem(`banner-${u}`,"true"),s?.();},200);};if(!x)return null;let h=sL[t],C=a?n!==void 0?n:h?jsxRuntime.jsx(h,{className:"h-4 w-4"}):null:null;return jsxRuntime.jsxs("div",{ref:b,className:i(Nx({variant:r,type:t,position:c}),d&&"animate-pulse",v&&"animate-out fade-out slide-out-to-top duration-200",f),role:"banner",...p,children:[C&&jsxRuntime.jsx("span",{className:"shrink-0",children:C}),jsxRuntime.jsx("span",{className:"text-center font-medium",children:e}),l&&jsxRuntime.jsx("div",{className:"shrink-0 ml-2",children:l}),o&&jsxRuntime.jsx("button",{type:"button",onClick:w,className:i("absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-70 cursor-pointer",c==="relative"&&"right-4"),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});Mx.displayName="Banner";var vo=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full shadow-lg transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",bordered:"border-2 border-primary bg-transparent text-primary hover:opacity-70",light:"bg-transparent text-primary hover:bg-primary/10",flat:"bg-primary/20 text-primary hover:opacity-70",ghost:"border-2 border-primary bg-transparent text-primary hover:bg-primary hover:text-primary-foreground"},size:{sm:"h-10 w-10",md:"h-14 w-14",lg:"h-16 w-16"},position:{"bottom-right":"fixed bottom-6 right-6","bottom-left":"fixed bottom-6 left-6","bottom-center":"fixed bottom-6 left-1/2 -translate-x-1/2",relative:"relative"}},defaultVariants:{variant:"solid",size:"md",position:"bottom-right"}}),cL=classVarianceAuthority.cva("transition-transform duration-200 [&>svg]:h-full [&>svg]:w-full",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),bc=$__namespace.forwardRef(({icon:e,label:t="Action button",extended:r,extendedLabel:a,actions:n,direction:o="up",showTooltip:s=true,closeIcon:l,animation:c="rotate",variant:d,size:m,position:u,className:f,onClick:p,disabled:b,...x},g)=>{let[v,y]=$__namespace.useState(false),w=n&&n.length>0,h=L=>{w&&y(!v),p?.(L);},C=L=>{L.onClick?.(),y(false);},R={up:{container:"flex-col-reverse bottom-full mb-3 gap-3",item:""},down:{container:"flex-col top-full mt-3 gap-3",item:""},left:{container:"flex-row-reverse right-full mr-3 gap-3",item:""},right:{container:"flex-row left-full ml-3 gap-3",item:""}},M=c==="rotate"&&v?"rotate-45":"",T=c==="scale"&&v?"scale-0":"scale-100";return jsxRuntime.jsxs("div",{className:i("relative z-50",u!=="relative"&&u&&vo({position:u})),children:[w&&v&&jsxRuntime.jsx("div",{className:i("absolute left-1/2 -translate-x-1/2 flex items-center",R[o].container),children:n.map((L,N)=>jsxRuntime.jsxs("div",{className:i("flex items-center gap-2 animate-in fade-in zoom-in duration-200",o==="up"||o==="down"?"flex-row":"flex-col"),style:{animationDelay:`${N*50}ms`},children:[s&&(o==="up"||o==="down")&&jsxRuntime.jsx("span",{className:"rounded-md bg-popover px-2 py-1 text-xs font-medium text-popover-foreground shadow-md whitespace-nowrap",children:L.label}),L.href?jsxRuntime.jsx("a",{href:L.href,className:i(vo({variant:L.variant||"flat",size:m==="lg"?"md":"sm",position:"relative"}),"[&>svg]:h-5 [&>svg]:w-5"),"aria-label":L.label,children:L.icon}):jsxRuntime.jsx("button",{type:"button",onClick:()=>C(L),className:i(vo({variant:L.variant||"flat",size:m==="lg"?"md":"sm",position:"relative"}),"[&>svg]:h-5 [&>svg]:w-5"),"aria-label":L.label,children:L.icon}),s&&(o==="left"||o==="right")&&jsxRuntime.jsx("span",{className:"rounded-md bg-popover px-2 py-1 text-xs font-medium text-popover-foreground shadow-md whitespace-nowrap",children:L.label})]},L.id))}),jsxRuntime.jsxs("button",{ref:g,type:"button",onClick:h,disabled:b,className:i(vo({variant:d,size:m,position:"relative"}),r&&"w-auto px-6 gap-2",f),"aria-label":t,"aria-expanded":w?v:void 0,...x,children:[v&&l?l:jsxRuntime.jsx("span",{className:i(cL({size:m}),M,T,"transition-all duration-200"),children:e||jsxRuntime.jsx(lucideReact.Plus,{})}),r&&a&&jsxRuntime.jsx("span",{className:"font-medium",children:a})]}),w&&v&&jsxRuntime.jsx("div",{className:"fixed inset-0 -z-10",onClick:()=>y(false)})]})});bc.displayName="FloatingActionButton";var dL=bc;var Ex=classVarianceAuthority.cva("fixed bottom-0 left-0 right-0 z-50 flex items-center justify-around border-t bg-background safe-area-pb",{variants:{variant:{default:"border-border",elevated:"border-transparent shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]",filled:"border-transparent bg-primary text-primary-foreground"},size:{sm:"h-14",md:"h-16",lg:"h-20"}},defaultVariants:{variant:"default",size:"md"}}),Px=classVarianceAuthority.cva("flex flex-1 flex-col items-center justify-center gap-1 transition-colors cursor-pointer",{variants:{variant:{default:"",elevated:"",filled:""}},defaultVariants:{variant:"default"}}),Dx=$__namespace.forwardRef(({className:e,variant:t,size:r,items:a,value:n,defaultValue:o,onValueChange:s,hideLabels:l=false,showActiveLabel:c=false,renderItem:d,...m},u)=>{let[f,p]=$__namespace.useState(o||a[0]?.key),b=n!==void 0,x=b?n:f,g=h=>{h.disabled||(b||p(h.key),s?.(h.key));},v=h=>t==="filled"?h?"text-primary-foreground":"text-primary-foreground/60 hover:text-primary-foreground/80":h?"text-primary":"text-muted-foreground hover:text-foreground",y=()=>{switch(r){case "sm":return "h-5 w-5";case "lg":return "h-7 w-7";default:return "h-6 w-6"}},w=()=>{switch(r){case "sm":return "text-[10px]";case "lg":return "text-sm";default:return "text-xs"}};return jsxRuntime.jsx("nav",{ref:u,className:i(Ex({variant:t,size:r}),e),role:"navigation","aria-label":"Bottom navigation",...m,children:a.map(h=>{let C=x===h.key,R=!l&&(c?C:true),M=C&&h.activeIcon?h.activeIcon:h.icon;if(d)return jsxRuntime.jsx("div",{onClick:()=>g(h),className:i(Px({variant:t}),h.disabled&&"opacity-50 cursor-not-allowed"),children:d(h,C)},h.key);let T=jsxRuntime.jsxs("div",{onClick:()=>!h.href&&g(h),className:i(Px({variant:t}),v(C),h.disabled&&"opacity-50 cursor-not-allowed"),role:"button","aria-current":C?"page":void 0,"aria-disabled":h.disabled,tabIndex:h.disabled?-1:0,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),g(h));},children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:i(y(),"[&>svg]:h-full [&>svg]:w-full"),children:M}),h.badge!==void 0&&h.badge>0&&jsxRuntime.jsx("span",{className:"absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red-500 px-1 text-[10px] font-medium text-white",children:h.badge>99?"99+":h.badge}),h.showDot&&jsxRuntime.jsx("span",{className:"absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full bg-red-500"})]}),R&&h.label&&jsxRuntime.jsx("span",{className:i(w(),"font-medium truncate max-w-full px-1"),children:h.label})]},h.key);return h.href&&!h.disabled?jsxRuntime.jsx("a",{href:h.href,onClick:()=>g(h),className:i("flex flex-1 flex-col items-center justify-center gap-1 no-underline",v(C)),children:T},h.key):T})})});Dx.displayName="BottomNavigation";var mL="fixed inset-x-0 bottom-0 z-50 mt-24 flex h-fit max-h-[90vh] flex-col rounded-t-[20px] border-t border-border/40 dark:border-border/20 bg-background",Hx=classVarianceAuthority.cva("flex w-full items-center gap-3 px-4 py-3.5 text-left transition-colors focus-visible:outline-none focus-visible:bg-accent disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-accent",destructive:"text-destructive hover:bg-destructive/10"}},defaultVariants:{variant:"default"}}),Ix=$__namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a,description:n,items:o,cancelLabel:s="Cancel",onCancel:l,showCancel:c=true,children:d,closeOnSelect:m=true,onAction:u},f)=>{let p=b=>{b.isDisabled||(b.onSelect?.(),u?.(b.key),m&&t?.(false));};return jsxRuntime.jsxs(vaul.Drawer.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(vaul.Drawer.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(vaul.Drawer.Portal,{children:[jsxRuntime.jsx(vaul.Drawer.Overlay,{className:"fixed inset-0 z-50 bg-black/40"}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:f,className:mL,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-muted"}),(a||n)&&jsxRuntime.jsxs("div",{className:"px-4 py-3 text-center",children:[a&&jsxRuntime.jsx(vaul.Drawer.Title,{className:"text-base font-semibold",children:a}),n&&jsxRuntime.jsx(vaul.Drawer.Description,{className:"mt-1 text-sm text-muted-foreground",children:n})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:d||jsxRuntime.jsx("div",{className:"divide-y divide-border/40 dark:divide-border/20",children:o?.map(b=>jsxRuntime.jsxs("button",{type:"button",disabled:b.isDisabled,onClick:()=>p(b),className:i(Hx({variant:b.isDestructive?"destructive":"default"})),children:[b.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 flex-shrink-0 [&>svg]:h-full [&>svg]:w-full",children:b.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"font-medium",children:b.label}),b.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:b.description})]})]},b.key))})}),c&&jsxRuntime.jsx("div",{className:"border-t border-border/40 dark:border-border/20 p-2 pb-safe",children:jsxRuntime.jsx(vaul.Drawer.Close,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",onClick:l,className:"w-full rounded-lg bg-muted py-3.5 text-center font-semibold transition-colors hover:bg-muted/80",children:s})})})]})]})]})});Ix.displayName="ActionSheet";var Ax=classVarianceAuthority.cva("relative overflow-hidden touch-pan-y",{variants:{variant:{default:"",card:"rounded-lg border bg-card"}},defaultVariants:{variant:"default"}}),hc=classVarianceAuthority.cva("flex h-full items-center justify-center px-4 text-white font-medium transition-opacity",{variants:{variant:{primary:"bg-primary",secondary:"bg-secondary text-secondary-foreground",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",info:"bg-blue-500"},size:{sm:"min-w-16",md:"min-w-20",lg:"min-w-24"}},defaultVariants:{variant:"primary",size:"md"}}),zx=$__namespace.forwardRef(({className:e,variant:t,leftActions:r=[],rightActions:a=[],actionSize:n="md",threshold:o=.3,onSwipeEnd:s,disabled:l=false,fullSwipeAction:c,children:d,...m},u)=>{let f=$__namespace.useRef(null),[p,b]=$__namespace.useState(0),[x,g]=$__namespace.useState(false),v=$__namespace.useRef(0),y=$__namespace.useRef(0),w=r.length*(n==="sm"?64:n==="lg"?96:80),h=a.length*(n==="sm"?64:n==="lg"?96:80),C=N=>{l||(g(true),v.current=N.touches[0].clientX,y.current=p);},R=N=>{if(!x||l)return;let k=N.touches[0].clientX-v.current,E=y.current+k;(E>0&&r.length===0||E<0&&a.length===0)&&(E=0),E>w?E=w+(E-w)*.3:E<-h&&(E=-h+(E+h)*.3),b(E);},M=()=>{if(!x)return;g(false);let N=f.current?.offsetWidth||0,P=Math.abs(p)/N;if(c&&P>.6){c==="right"&&p>0&&r[0]?(r[0].onAction?.(),s?.("right",r[0].key)):c==="left"&&p<0&&a[0]&&(a[0].onAction?.(),s?.("left",a[0].key)),b(0);return}p>w*o&&r.length>0?(b(w),s?.("right")):p<-h*o&&a.length>0?(b(-h),s?.("left")):b(0);},T=(N,P)=>{N.onAction?.(),s?.(P,N.key),b(0);},L=()=>{b(0);};return jsxRuntime.jsxs("div",{ref:u,className:i(Ax({variant:t,className:e})),...m,children:[r.length>0&&p>0&&jsxRuntime.jsx("div",{className:"absolute left-0 top-0 bottom-0 flex",style:{width:w},children:r.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>T(N,"right"),className:i(hc({variant:N.variant,size:n})),style:{opacity:Math.min(1,p/w)},children:[N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:N.icon}),!N.icon&&N.label]},N.key))}),a.length>0&&p<0&&jsxRuntime.jsx("div",{className:"absolute right-0 top-0 bottom-0 flex",style:{width:h},children:a.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>T(N,"left"),className:i(hc({variant:N.variant,size:n})),style:{opacity:Math.min(1,Math.abs(p)/h)},children:[N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:N.icon}),!N.icon&&N.label]},N.key))}),jsxRuntime.jsx("div",{ref:f,className:i("relative bg-background",x?"":"transition-transform duration-200"),style:{transform:`translateX(${p}px)`},onTouchStart:C,onTouchMove:R,onTouchEnd:M,onClick:p!==0?L:void 0,children:d})]})});zx.displayName="SwipeActions";var Ox=classVarianceAuthority.cva("relative overflow-hidden",{variants:{variant:{default:"",contained:"h-full"}},defaultVariants:{variant:"default"}}),gL=classVarianceAuthority.cva("absolute left-1/2 -translate-x-1/2 flex items-center justify-center transition-all duration-200",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"}},defaultVariants:{size:"md"}}),Fx=$__namespace.forwardRef(({className:e,variant:t,onRefresh:r,pullThreshold:a=80,maxPullDistance:n=120,loadingIndicator:o,pullIndicator:s,indicatorSize:l="md",disabled:c=false,pullText:d="Pull to refresh",releaseText:m="Release to refresh",refreshingText:u="Refreshing...",children:f,...p},b)=>{let x=$__namespace.useRef(null),[g,v]=$__namespace.useState(0),[y,w]=$__namespace.useState("idle"),h=$__namespace.useRef(0),C=$__namespace.useRef(false),R=()=>c||y==="refreshing"?false:(x.current?.scrollTop??window.scrollY)<=0,M=k=>{R()&&(h.current=k.touches[0].clientY,C.current=true);},T=k=>{if(!C.current||!R())return;let H=k.touches[0].clientY-h.current;if(H<0){v(0),w("idle");return}let D=Math.min(H*.5,n);v(D),w(D>=a?"ready":"pulling");},L=async()=>{if(C.current)if(C.current=false,y==="ready"){w("refreshing"),v(a*.6);try{await r();}finally{w("idle"),v(0);}}else w("idle"),v(0);},N={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[l],P=()=>{if(y==="refreshing")return o||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:i(N,"animate-spin text-primary")}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:u})]});let k=Math.min(g/a*180,180);return s||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.ArrowDown,{className:i(N,"text-muted-foreground transition-transform"),style:{transform:`rotate(${k}deg)`}}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:y==="ready"?m:d})]})};return jsxRuntime.jsxs("div",{ref:b,className:i(Ox({variant:t,className:e})),...p,children:[jsxRuntime.jsx("div",{className:i(gL({size:l}),"z-10",y==="idle"&&g===0&&"opacity-0"),style:{top:Math.max(g-60,-60),opacity:Math.min(g/(a*.5),1)},children:P()}),jsxRuntime.jsx("div",{ref:x,className:i("transition-transform duration-200",y==="refreshing"&&"ease-out"),style:{transform:`translateY(${g}px)`,transition:C.current?"none":void 0},onTouchStart:M,onTouchMove:T,onTouchEnd:L,children:f})]})});Fx.displayName="PullToRefresh";var Gx=classVarianceAuthority.cva("flex min-h-screen w-full",{variants:{layout:{default:"flex-col",sidebar:"flex-row"}},defaultVariants:{layout:"default"}}),$x=$__namespace.forwardRef(({className:e,layout:t="default",header:r,footer:a,sidebar:n,aside:o,sidebarCollapsed:s=false,sidebarWidth:l="16rem",sidebarCollapsedWidth:c="4rem",asideWidth:d="16rem",fixed:m=false,children:u,...f},p)=>{let b=s?c:l;return jsxRuntime.jsxs("div",{ref:p,className:i(Gx({layout:t}),e),style:{"--app-shell-sidebar-width":b,"--app-shell-aside-width":d},...f,children:[r&&jsxRuntime.jsx(yc,{fixed:m,hasSidebar:!!n,children:r}),jsxRuntime.jsxs("div",{className:"flex flex-1",children:[n&&jsxRuntime.jsx(Rc,{collapsed:s,fixed:m,children:n}),jsxRuntime.jsx("main",{className:i("flex-1 flex flex-col min-h-0",m&&r&&"pt-14",m&&a&&"pb-14"),children:u}),o&&jsxRuntime.jsx(wc,{fixed:m,children:o})]}),a&&jsxRuntime.jsx(Cc,{fixed:m,hasSidebar:!!n,children:a})]})});$x.displayName="AppShell";var yc=$__namespace.forwardRef(({className:e,fixed:t,hasSidebar:r,children:a,...n},o)=>jsxRuntime.jsx("header",{ref:o,className:i("flex h-14 items-center border-b bg-background px-4",t&&"fixed top-0 right-0 z-40",t&&r&&"left-[var(--app-shell-sidebar-width)]",t&&!r&&"left-0",e),...n,children:a}));yc.displayName="AppShellHeader";var Rc=$__namespace.forwardRef(({className:e,collapsed:t,fixed:r,children:a,...n},o)=>jsxRuntime.jsx("aside",{ref:o,className:i("w-[var(--app-shell-sidebar-width)] shrink-0 border-r bg-background transition-[width] duration-200",r&&"fixed left-0 top-0 bottom-0 z-50",e),"data-collapsed":t,...n,children:a}));Rc.displayName="AppShellSidebar";var wc=$__namespace.forwardRef(({className:e,fixed:t,children:r,...a},n)=>jsxRuntime.jsx("aside",{ref:n,className:i("w-[var(--app-shell-aside-width)] shrink-0 border-l bg-background",t&&"fixed right-0 top-14 bottom-0 z-40",e),...a,children:r}));wc.displayName="AppShellAside";var Cc=$__namespace.forwardRef(({className:e,fixed:t,hasSidebar:r,children:a,...n},o)=>jsxRuntime.jsx("footer",{ref:o,className:i("flex h-14 items-center border-t bg-background px-4",t&&"fixed bottom-0 right-0 z-40",t&&r&&"left-[var(--app-shell-sidebar-width)]",t&&!r&&"left-0",e),...n,children:a}));Cc.displayName="AppShellFooter";var _x=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex-1 overflow-auto p-4",e),...t}));_x.displayName="AppShellMain";var jx=classVarianceAuthority.cva("flex min-h-screen w-full bg-muted/40",{variants:{variant:{default:"",bordered:"[&_[data-slot=sidebar]]:border-r [&_[data-slot=header]]:border-b",filled:"[&_[data-slot=sidebar]]:bg-background [&_[data-slot=header]]:bg-background"}},defaultVariants:{variant:"bordered"}}),Ux=$__namespace.forwardRef(({className:e,variant:t,navigation:r,logo:a,userMenu:n,headerActions:o,breadcrumb:s,defaultCollapsed:l=false,collapsed:c,onCollapsedChange:d,children:m,...u},f)=>{let[p,b]=$__namespace.useState(l),[x,g]=$__namespace.useState(false),v=c??p,y=$__namespace.useCallback(w=>{b(w),d?.(w);},[d]);return jsxRuntime.jsxs("div",{ref:f,className:i(jx({variant:t}),e),...u,children:[jsxRuntime.jsxs("aside",{"data-slot":"sidebar","data-collapsed":v,className:i("hidden lg:flex flex-col fixed inset-y-0 left-0 z-50 bg-background transition-[width] duration-200",v?"w-16":"w-64"),children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:a}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:r}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]}),jsxRuntime.jsx($o,{open:x,onOpenChange:g,children:jsxRuntime.jsxs(_o,{side:"left",className:"w-64 p-0",children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:a}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:r}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]})}),jsxRuntime.jsxs("div",{className:i("flex flex-1 flex-col transition-[margin-left] duration-200",v?"lg:ml-16":"lg:ml-64"),children:[jsxRuntime.jsxs("header",{"data-slot":"header",className:"sticky top-0 z-40 flex h-14 items-center gap-4 bg-background px-4 lg:px-6",children:[jsxRuntime.jsxs(J,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>g(true),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle menu"})]}),jsxRuntime.jsxs(J,{variant:"ghost",size:"icon",className:"hidden lg:flex",onClick:()=>y(!v),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle sidebar"})]}),s&&jsxRuntime.jsx("div",{className:"flex-1",children:s}),o&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:o})]}),jsxRuntime.jsx("main",{className:"flex-1 p-4 lg:p-6",children:m})]})]})});Ux.displayName="DashboardLayout";var Yx=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("space-y-6",e),...t}));Yx.displayName="DashboardPage";var Xx=$__namespace.forwardRef(({className:e,title:t,description:r,actions:a,children:n,...o},s)=>jsxRuntime.jsxs("div",{ref:s,className:i("flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",e),...o,children:[jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),n]}),a&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:a})]}));Xx.displayName="DashboardPageHeader";var qx=$__namespace.forwardRef(({className:e,columns:t=4,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("grid gap-4",{1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"}[t],e),...r}));qx.displayName="DashboardGrid";var bi=classVarianceAuthority.cva("min-h-screen w-full",{variants:{variant:{centered:"flex items-center justify-center bg-muted/40",split:"flex flex-col lg:flex-row",cover:"relative flex items-center justify-center"}},defaultVariants:{variant:"centered"}}),Zx=$__namespace.forwardRef(({className:e,variant:t="centered",logo:r,sideContent:a,backgroundImage:n,sidePosition:o="left",footer:s,children:l,...c},d)=>t==="split"?jsxRuntime.jsxs("div",{ref:d,className:i(bi({variant:t}),e),...c,children:[jsxRuntime.jsx("div",{className:i("hidden lg:flex lg:w-1/2 flex-col bg-primary text-primary-foreground",o==="right"&&"order-2"),children:a||jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:[r&&jsxRuntime.jsx("div",{className:"mb-8",children:r}),jsxRuntime.jsxs("div",{className:"max-w-md text-center",children:[jsxRuntime.jsx("h2",{className:"text-3xl font-bold",children:"Welcome back"}),jsxRuntime.jsx("p",{className:"mt-4 text-primary-foreground/80",children:"Sign in to your account to continue"})]})]})}),jsxRuntime.jsxs("div",{className:i("flex flex-1 flex-col lg:w-1/2",o==="right"&&"order-1"),children:[r&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-6 lg:hidden",children:r}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:jsxRuntime.jsx("div",{className:"w-full max-w-md space-y-6",children:l})}),s&&jsxRuntime.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:s})]})]}):t==="cover"?jsxRuntime.jsxs("div",{ref:d,className:i(bi({variant:t}),e),style:n?{backgroundImage:`url(${n})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,...c,children:[n&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-background/80 backdrop-blur-sm"}),jsxRuntime.jsxs("div",{className:"relative z-10 w-full max-w-md p-6",children:[r&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:r}),jsxRuntime.jsx("div",{className:"rounded-lg border bg-card p-6 shadow-lg",children:l}),s&&jsxRuntime.jsx("div",{className:"mt-6 text-center text-sm text-muted-foreground",children:s})]})]}):jsxRuntime.jsx("div",{ref:d,className:i(bi({variant:t}),e),...c,children:jsxRuntime.jsxs("div",{className:"w-full max-w-md p-6",children:[r&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:r}),jsxRuntime.jsx("div",{className:"rounded-lg border bg-card p-6 shadow-sm",children:l}),s&&jsxRuntime.jsx("div",{className:"mt-6 text-center text-sm text-muted-foreground",children:s})]})}));Zx.displayName="AuthLayout";var Jx=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("form",{ref:r,className:i("space-y-4",e),...t}));Jx.displayName="AuthForm";var Qx=$__namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("space-y-2 text-center",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),a]}));Qx.displayName="AuthHeader";var ey=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex flex-col gap-2 text-center text-sm",e),...t}));ey.displayName="AuthFooterLinks";var ty=$__namespace.forwardRef(({className:e,text:t="or continue with",...r},a)=>jsxRuntime.jsxs("div",{ref:a,className:i("relative my-4",e),...r,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center",children:jsxRuntime.jsx("span",{className:"w-full border-t"})}),jsxRuntime.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:jsxRuntime.jsx("span",{className:"bg-card px-2 text-muted-foreground",children:t})})]}));ty.displayName="AuthDivider";var ry=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("grid grid-cols-2 gap-2",e),...t}));ry.displayName="AuthSocialButtons";var vi=classVarianceAuthority.cva("w-full",{variants:{variant:{sidebar:"flex flex-col lg:flex-row gap-8",tabs:"space-y-6",stacked:"space-y-8"}},defaultVariants:{variant:"sidebar"}}),ay=$__namespace.forwardRef(({className:e,variant:t="sidebar",navigation:r,title:a,description:n,children:o,...s},l)=>t==="sidebar"?jsxRuntime.jsxs("div",{ref:l,className:i(vi({variant:t}),e),...s,children:[r&&jsxRuntime.jsx("aside",{className:"lg:w-64 shrink-0",children:jsxRuntime.jsx("nav",{className:"flex flex-col gap-1",children:r})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-6",children:[(a||n)&&jsxRuntime.jsx(xo,{title:a,description:n}),o]})]}):t==="tabs"?jsxRuntime.jsxs("div",{ref:l,className:i(vi({variant:t}),e),...s,children:[(a||n)&&jsxRuntime.jsx(xo,{title:a,description:n}),r,jsxRuntime.jsx("div",{className:"pt-4",children:o})]}):jsxRuntime.jsxs("div",{ref:l,className:i(vi({variant:t}),e),...s,children:[(a||n)&&jsxRuntime.jsx(xo,{title:a,description:n}),o]}));ay.displayName="SettingsLayout";var xo=$__namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("space-y-1",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),a]}));xo.displayName="SettingsHeader";var ny=$__namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("space-y-4",e),...n,children:[(t||r)&&jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h2",{className:"text-lg font-medium",children:t}),r&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:r})]}),a]}));ny.displayName="SettingsSection";var oy=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("rounded-lg border bg-card p-6",e),...t}));oy.displayName="SettingsCard";var sy=$__namespace.forwardRef(({className:e,label:t,description:r,htmlFor:a,children:n,...o},s)=>jsxRuntime.jsxs("div",{ref:s,className:i("flex flex-col gap-4 py-4 sm:flex-row sm:items-center sm:justify-between","border-b last:border-0 first:pt-0 last:pb-0",e),...o,children:[jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[t&&jsxRuntime.jsx("label",{htmlFor:a,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),r&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:r})]}),jsxRuntime.jsx("div",{className:"shrink-0",children:n})]}));sy.displayName="SettingsRow";var iy=$__namespace.forwardRef(({className:e,active:t,icon:r,children:a,...n},o)=>jsxRuntime.jsxs("button",{ref:o,type:"button",className:i("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors","hover:bg-muted",t&&"bg-muted",e),...n,children:[r&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:r}),a]}));iy.displayName="SettingsNavItem";var ly=$__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("h-px bg-border my-4",e),...t}));ly.displayName="SettingsSeparator";var Za=(e,t,r)=>({duration:e,delay:t,ease:r||[.4,0,.2,1]}),yL={hidden:e=>({opacity:e}),visible:{opacity:1},exit:e=>({opacity:e})},cy=$__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,initialOpacity:l=0,onAnimationStart:c,onAnimationComplete:d},m)=>{let u=jsxRuntime.jsx(framerMotion.motion.div,{ref:m,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:yL,custom:l,transition:Za(r,a,n),className:i(o),onAnimationStart:c,onAnimationComplete:d,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&u}):u});cy.displayName="Fade";var RL=(e,t)=>{let r=typeof t=="number"?`${t}px`:t,a={up:{y:r},down:{y:`-${r}`},left:{x:r},right:{x:`-${r}`}};return {hidden:{opacity:0,...a[e]},visible:{opacity:1,x:0,y:0},exit:{opacity:0,...a[e]}}},dy=$__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,direction:l="up",offset:c=20,onAnimationStart:d,onAnimationComplete:m},u)=>{let f=$__namespace.useMemo(()=>RL(l,c),[l,c]),p=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:f,transition:Za(r,a,n),className:i(o),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});dy.displayName="Slide";var wL={center:"center center",top:"center top",bottom:"center bottom",left:"left center",right:"right center","top-left":"left top","top-right":"right top","bottom-left":"left bottom","bottom-right":"right bottom"},CL={hidden:e=>({opacity:0,scale:e}),visible:{opacity:1,scale:1},exit:e=>({opacity:0,scale:e})},uy=$__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,initialScale:l=.9,origin:c="center",onAnimationStart:d,onAnimationComplete:m},u)=>{let f=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:CL,custom:l,transition:Za(r,a,n),className:i(o),style:{transformOrigin:wL[c]},onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&f}):f});uy.displayName="Scale";var my=$__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,horizontal:s=false,startingSize:l=0,animateOpacity:c=true,onAnimationStart:d,onAnimationComplete:m},u)=>{let f=s?"width":"height",p={hidden:{[f]:l,opacity:c?0:1},visible:{[f]:"auto",opacity:1},exit:{[f]:l,opacity:c?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:"visible",exit:"exit",variants:p,transition:Za(r,a,n),className:i("overflow-hidden",o),onAnimationStart:d,onAnimationComplete:m,children:t})})});my.displayName="Collapse";var py=$__namespace.forwardRef(({show:e=true,children:t,duration:r=.4,delay:a=0,ease:n,className:o,initialWidth:s=0,initialHeight:l=0,animateOpacity:c=true,onAnimationStart:d,onAnimationComplete:m},u)=>{let f={hidden:{width:s,height:l,opacity:c?0:1},visible:{width:"auto",height:"auto",opacity:1},exit:{width:s,height:l,opacity:c?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:"visible",exit:"exit",variants:f,transition:Za(r,a,n),className:i("overflow-hidden",o),onAnimationStart:d,onAnimationComplete:m,children:t})})});py.displayName="Expand";var fy=$__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,initialRotation:l=-180,finalRotation:c=0,onAnimationStart:d,onAnimationComplete:m},u)=>{let f={hidden:{opacity:0,rotate:l},visible:{opacity:1,rotate:c},exit:{opacity:0,rotate:l}},p=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:f,transition:Za(r,a,n),className:i(o),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});fy.displayName="Rotate";var gy=$__namespace.forwardRef(({front:e,back:t,direction:r="horizontal",flipped:a=false,duration:n=.6,delay:o=0,ease:s,className:l,onAnimationStart:c,onAnimationComplete:d},m)=>{let u=r==="horizontal"?"rotateY":"rotateX";return jsxRuntime.jsx("div",{ref:m,className:i("relative",l),style:{perspective:1e3},children:jsxRuntime.jsxs(framerMotion.motion.div,{animate:{[u]:a?180:0},transition:Za(n,o,s),style:{transformStyle:"preserve-3d"},onAnimationStart:c,onAnimationComplete:d,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden"},children:e}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden",transform:`${u}(180deg)`},children:t})]})})});gy.displayName="Flip";var by=$__namespace.forwardRef(({color:e="currentColor",duration:t=.6,children:r,className:a,disabled:n=false},o)=>{let[s,l]=$__namespace.useState([]),c=$__namespace.useRef(null),d=u=>{if(n)return;let f=c.current;if(!f)return;let p=f.getBoundingClientRect(),b=u.clientX-p.left,x=u.clientY-p.top,g=Math.max(p.width,p.height)*2,v={id:Date.now(),x:b,y:x,size:g};l(y=>[...y,v]);},m=u=>{l(f=>f.filter(p=>p.id!==u));};return jsxRuntime.jsxs("div",{ref:o,className:i("relative overflow-hidden rounded-[inherit]",a),onClick:d,children:[jsxRuntime.jsx("div",{ref:c,className:"relative z-0",children:r}),jsxRuntime.jsx(framerMotion.AnimatePresence,{children:s.map(u=>jsxRuntime.jsx(framerMotion.motion.span,{initial:{scale:0,opacity:.35},animate:{scale:1,opacity:0},exit:{opacity:0},transition:{duration:t,ease:"easeOut"},onAnimationComplete:()=>m(u.id),className:"pointer-events-none absolute rounded-full",style:{left:u.x-u.size/2,top:u.y-u.size/2,width:u.size,height:u.size,backgroundColor:e}},u.id))})]})});by.displayName="Ripple";var vy=$__namespace.forwardRef(({children:e,animate:t=true,height:r=10,duration:a=.5,count:n=0,className:o,triggerOnHover:s=false},l)=>{let[c,d]=$__namespace.useState(false),m=s?c:t,u={idle:{y:0},bounce:{y:[0,-r,0],transition:{duration:a,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:u,initial:"idle",animate:m?"bounce":"idle",className:i(o),onMouseEnter:()=>s&&d(true),onMouseLeave:()=>s&&d(false),children:e})});vy.displayName="Bounce";var TL={subtle:[0,-2,2,-2,2,-1,1,0],normal:[0,-5,5,-5,5,-3,3,0],strong:[0,-10,10,-10,10,-5,5,0]},hy=$__namespace.forwardRef(({children:e,animate:t=true,intensity:r="normal",duration:a=.5,count:n=1,className:o,triggerOnHover:s=false},l)=>{let[c,d]=$__namespace.useState(false),m=s?c:t,u={idle:{x:0},shake:{x:TL[r],transition:{duration:a,ease:"easeInOut",repeat:n-1}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:u,initial:"idle",animate:m?"shake":"idle",className:i(o),onMouseEnter:()=>s&&d(true),onMouseLeave:()=>s&&d(false),children:e})});hy.displayName="Shake";var PL={slow:"animate-[pulse_3s_ease-in-out_infinite]",normal:"animate-[pulse_2s_ease-in-out_infinite]",fast:"animate-[pulse_1s_ease-in-out_infinite]"},xy=$__namespace.forwardRef(({children:e,animate:t=true,speed:r="normal",className:a},n)=>jsxRuntime.jsx("div",{ref:n,className:i(t&&PL[r],a),children:e}));xy.displayName="Pulse";var yy=$__namespace.forwardRef(({children:e,animate:t=true,angle:r=10,duration:a=.3,count:n=0,className:o,triggerOnHover:s=false},l)=>{let[c,d]=$__namespace.useState(false),m=s?c:t,u={idle:{rotate:0},wiggle:{rotate:[0,-r,r,-r,r,0],transition:{duration:a,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:u,initial:"idle",animate:m?"wiggle":"idle",className:i(o),onMouseEnter:()=>s&&d(true),onMouseLeave:()=>s&&d(false),children:e})});yy.displayName="Wiggle";var Ry=$__namespace.forwardRef(({children:e,animate:t=false,scale:r=1.2,duration:a=.2,className:n,triggerOnHover:o=false,triggerOnClick:s=false},l)=>{let[c,d]=$__namespace.useState(false),m=t||c,u={type:"spring",stiffness:400,damping:17,duration:a},f=()=>{s&&(d(true),setTimeout(()=>d(false),a*1e3));};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,animate:{scale:m?r:1},transition:u,className:i(n),onMouseEnter:()=>o&&d(true),onMouseLeave:()=>o&&d(false),onClick:f,children:e})});Ry.displayName="Pop";var HL=(e,t,r,a)=>{let n=e.toFixed(t),[o,s]=n.split("."),l=o.replace(/\B(?=(\d{3})+(?!\d))/g,r);return s?`${l}${a}${s}`:l},wy=$__namespace.forwardRef(({value:e,from:t=0,duration:r=2,decimals:a=0,prefix:n="",suffix:o="",separator:s=",",decimalSeparator:l=".",animateOnView:c=true,delay:d=0,className:m,onComplete:u},f)=>{let p=$__namespace.useRef(null),b=framerMotion.useInView(p,{once:true}),[x,g]=$__namespace.useState(!c);$__namespace.useEffect(()=>{if(c&&b){let w=setTimeout(()=>g(true),d*1e3);return ()=>clearTimeout(w)}},[c,b,d]);let v=framerMotion.useMotionValue(t),y=framerMotion.useTransform(v,w=>HL(w,a,s,l));return $__namespace.useEffect(()=>{if(x){let w=framerMotion.animate(v,e,{duration:r,ease:"easeOut",onComplete:u});return ()=>w.stop()}},[x,e,r,v,u]),jsxRuntime.jsx("span",{ref:p,className:i(m),children:jsxRuntime.jsxs("span",{ref:f,children:[n,jsxRuntime.jsx(framerMotion.motion.span,{children:y}),o]})})});wy.displayName="Counter";var Cy=$__namespace.forwardRef(({text:e,speed:t=50,delay:r=0,pauseBetween:a=1500,cursor:n=true,cursorChar:o="|",loop:s=false,deleteSpeed:l=30,animateOnView:c=true,className:d,cursorClassName:m,onComplete:u},f)=>{let p=Array.isArray(e)?e:[e],[b,x]=$__namespace.useState(""),[g,v]=$__namespace.useState(0),[y,w]=$__namespace.useState(false),[h,C]=$__namespace.useState(false),R=$__namespace.useRef(null),M=framerMotion.useInView(R,{once:true}),[T,L]=$__namespace.useState(!c);return $__namespace.useEffect(()=>{if(c&&M){let N=setTimeout(()=>L(true),r*1e3);return ()=>clearTimeout(N)}},[c,M,r]),$__namespace.useEffect(()=>{if(!T||h)return;let N=p[g],P;return y?b.length>0?P=setTimeout(()=>{x(b.slice(0,-1));},l):(w(false),v(k=>(k+1)%p.length)):b.length<N.length?P=setTimeout(()=>{x(N.slice(0,b.length+1));},t):g<p.length-1||s?P=setTimeout(()=>{w(true);},a):(C(true),u?.()),()=>clearTimeout(P)},[T,b,g,y,h,p,t,l,a,s,u]),jsxRuntime.jsxs("span",{ref:R,className:i(d),children:[jsxRuntime.jsx("span",{ref:f,children:b}),n&&jsxRuntime.jsx(framerMotion.motion.span,{animate:{opacity:[1,0]},transition:{duration:.8,repeat:1/0,repeatType:"reverse"},className:i("ml-0.5",m),children:o})]})});Cy.displayName="Typewriter";var Ny=$__namespace.forwardRef(({children:e,direction:t="up",stagger:r=.05,duration:a=.5,delay:n=0,splitBy:o="word",animateOnView:s=true,className:l},c)=>{let d=$__namespace.useRef(null),m=framerMotion.useInView(d,{once:true,amount:.5}),u=s?m:true,f=typeof e=="string"?e:"",p=o==="word"?f.split(" "):f.split(""),b={up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}},x={hidden:{},visible:{transition:{staggerChildren:r,delayChildren:n}}},g={hidden:{opacity:0,...b[t]},visible:{opacity:1,x:0,y:0,transition:{duration:a,ease:"easeInOut"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:c,className:i("inline-flex flex-wrap",l),variants:x,initial:"hidden",animate:u?"visible":"hidden",children:jsxRuntime.jsx("span",{ref:d,children:p.map((v,y)=>jsxRuntime.jsxs(framerMotion.motion.span,{variants:g,className:"inline-block",children:[v,o==="word"&&y<p.length-1&&"\xA0"]},y))})})});Ny.displayName="TextReveal";var My=$__namespace.forwardRef(({words:e,duration:t=2,animation:r="slide",animationDuration:a=.5,className:n,loop:o=true},s)=>{let[l,c]=$__namespace.useState(0);$__namespace.useEffect(()=>{if(!o&&l===e.length-1)return;let m=setInterval(()=>{c(u=>(u+1)%e.length);},t*1e3);return ()=>clearInterval(m)},[e.length,t,o,l]);let d=()=>{switch(r){case "fade":return {initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};case "slide":return {initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20}};case "scale":return {initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:1.2}};case "blur":return {initial:{opacity:0,filter:"blur(10px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(10px)"}}}};return jsxRuntime.jsx("span",{ref:s,className:i("relative inline-block",n),children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(framerMotion.motion.span,{variants:d(),initial:"initial",animate:"animate",exit:"exit",transition:{duration:a},className:"inline-block",children:e[l]},e[l])})})});My.displayName="WordRotate";var Ly=$__namespace.forwardRef(({children:e,direction:t="up",distance:r=50,duration:a=.6,delay:n=0,once:o=true,threshold:s=.1,className:l,scale:c,rotate:d,blur:m,ease:u=[.4,0,.2,1]},f)=>{let p=$__namespace.useRef(null),b=framerMotion.useInView(p,{once:o,amount:s}),g={up:{x:0,y:r},down:{x:0,y:-r},left:{x:r,y:0},right:{x:-r,y:0},none:{x:0,y:0}}[t],v={hidden:{opacity:0,x:g.x,y:g.y,scale:c??1,rotate:d??0,filter:m?`blur(${m}px)`:"blur(0px)"},visible:{opacity:1,x:0,y:0,scale:1,rotate:0,filter:"blur(0px)",transition:{duration:a,delay:n,ease:u}}};return jsxRuntime.jsx("div",{ref:p,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:f,variants:v,initial:"hidden",animate:b?"visible":"hidden",className:i(l),children:e})})});Ly.displayName="ScrollReveal";var Ey=$__namespace.forwardRef(({position:e="top",size:t=4,color:r="hsl(var(--primary))",backgroundColor:a="transparent",zIndex:n=50,className:o,container:s,showPercentage:l=false,useSpring:c=true},d)=>{let{scrollYProgress:m}=framerMotion.useScroll({container:s}),u=framerMotion.useSpring(m,{stiffness:100,damping:30,restDelta:.001}),f=c?u:m,p=e==="top"||e==="bottom",b={top:{top:0,left:0,right:0,height:t},bottom:{bottom:0,left:0,right:0,height:t},left:{top:0,left:0,bottom:0,width:t},right:{top:0,right:0,bottom:0,width:t}},x=p?"scaleX":"scaleY",g=p?"left":"top";return jsxRuntime.jsxs("div",{ref:d,className:i("fixed",o),style:{...b[e],zIndex:n,backgroundColor:a},children:[jsxRuntime.jsx(framerMotion.motion.div,{className:"h-full w-full",style:{[x]:f,transformOrigin:g,backgroundColor:r}}),l&&jsxRuntime.jsx(VL,{progress:f,position:e})]})});Ey.displayName="ScrollProgress";var VL=({progress:e,position:t})=>{let r=framerMotion.useTransform(e,s=>Math.round(s*100)),[a,n]=$__namespace.useState(0);return $__namespace.useEffect(()=>{let s=r.on("change",n);return ()=>s()},[r]),jsxRuntime.jsxs("span",{className:i("fixed rounded bg-background/80 px-2 py-1 text-xs font-medium backdrop-blur-sm",{top:"top-2 right-4",bottom:"bottom-2 right-4",left:"top-4 left-2",right:"top-4 right-2"}[t]),children:[a,"%"]})},Dy=$__namespace.forwardRef(({children:e,speed:t=.5,direction:r="vertical",className:a,container:n},o)=>{let s=$__namespace.useRef(null),{scrollYProgress:l}=framerMotion.useScroll({target:s,container:n,offset:["start end","end start"]}),c=[-100*t,100*t],d=framerMotion.useTransform(l,[0,1],c),m=framerMotion.useSpring(d,{stiffness:100,damping:30}),u=r==="horizontal"?m:0,f=r==="vertical"?m:0;return jsxRuntime.jsx("div",{ref:s,className:i("overflow-hidden",a),children:jsxRuntime.jsx(framerMotion.motion.div,{ref:o,style:{x:u,y:f},children:e})})});Dy.displayName="Parallax";var Iy=$__namespace.forwardRef(({children:e,width:t,height:r,duration:a=1.5,direction:n="right",baseColor:o="hsl(var(--muted))",highlightColor:s="hsl(var(--muted-foreground) / 0.1)",borderRadius:l,className:c,active:d=true},m)=>{let u={left:"to left",right:"to right",top:"to top",bottom:"to bottom"},f={left:"shimmer-left",right:"shimmer-right",top:"shimmer-top",bottom:"shimmer-bottom"};return jsxRuntime.jsxs("div",{ref:m,className:i("relative overflow-hidden",c),style:{width:t,height:r,borderRadius:l,backgroundColor:o},children:[e,d&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(${u[n]}, transparent, ${s}, transparent)`,animation:`${f[n]} ${a}s infinite`}}),jsxRuntime.jsx("style",{children:`
61
56
  @keyframes shimmer-right {
62
57
  0% { transform: translateX(-100%); }
63
58
  100% { transform: translateX(100%); }
@@ -74,5 +69,5 @@
74
69
  0% { transform: translateY(-100%); }
75
70
  100% { transform: translateY(100%); }
76
71
  }
77
- `})]})});Ly.displayName="Shimmer";var RE={sm:24,md:40,lg:56,xl:80},wE={default:{circle:"stroke-muted-foreground",check:"stroke-foreground"},success:{circle:"stroke-green-500",check:"stroke-green-500"},primary:{circle:"stroke-primary",check:"stroke-primary"},outline:{circle:"stroke-border",check:"stroke-foreground"}},Dy=$__namespace.forwardRef(({show:e=true,size:t="md",variant:r="success",strokeWidth:a=2,duration:n=.6,delay:o=0,className:s,onComplete:l},c)=>{let d=RE[t],u=wE[r],m={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:o,ease:"easeOut"}}},f={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:o+n*.4,ease:"easeOut"}}};return jsxRuntime.jsxs("svg",{ref:c,width:d,height:d,viewBox:"0 0 50 50",className:i(s),children:[jsxRuntime.jsx(framerMotion.motion.circle,{cx:"25",cy:"25",r:"22",fill:"none",strokeWidth:a,className:u.circle,variants:m,initial:"hidden",animate:e?"visible":"hidden"}),jsxRuntime.jsx(framerMotion.motion.path,{d:"M14 27 L22 35 L36 18",fill:"none",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",className:u.check,variants:f,initial:"hidden",animate:e?"visible":"hidden",onAnimationComplete:()=>e&&l?.()})]})});Dy.displayName="Checkmark";var Sn={particleCount:100,spread:70,startVelocity:30,decay:.95,gravity:1,colors:["#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff"],origin:{x:.5,y:.5},shapes:["square","circle"],scalar:1,drift:0,ticks:200},Sy=$__namespace.forwardRef(({autoTrigger:e=false,delay:t=0,options:r={},children:a,onTrigger:n},o)=>{let s=$__namespace.useCallback(()=>{let l={...Sn,...r};Dn__default.default(l),n?.();},[r,n]);return $__namespace.useEffect(()=>{if(e){let l=setTimeout(s,t);return ()=>clearTimeout(l)}},[e,t,s]),a?jsxRuntime.jsx("div",{ref:o,onClick:s,className:"inline-block cursor-pointer",children:a}):null});Sy.displayName="Confetti";var CE=()=>{let e=$__namespace.useCallback(a=>{let n={...Sn,...a};Dn__default.default(n);},[]),t=$__namespace.useCallback(()=>{let n=Date.now()+3e3,o=setInterval(()=>{let s=n-Date.now();if(s<=0){clearInterval(o);return}let l=50*(s/3e3);Dn__default.default({...Sn,particleCount:l,origin:{x:Math.random()*.4+.1,y:Math.random()-.2}}),Dn__default.default({...Sn,particleCount:l,origin:{x:Math.random()*.4+.5,y:Math.random()-.2}});},250);},[]),r=$__namespace.useCallback((a="both")=>{let n={x:0,y:1},o={x:1,y:1};(a==="left"||a==="both")&&Dn__default.default({...Sn,particleCount:50,angle:60,spread:55,origin:n}),(a==="right"||a==="both")&&Dn__default.default({...Sn,particleCount:50,angle:120,spread:55,origin:o});},[]);return {fire:e,fireworks:t,cannon:r}},Hy=$__namespace.forwardRef(({children:e,color:t="hsl(var(--primary))",intensity:r=20,spread:a=0,animate:n=false,duration:o=2,className:s},l)=>{let c={boxShadow:`0 0 ${r}px ${a}px ${t}`};return n?jsxRuntime.jsx(framerMotion.motion.div,{ref:l,className:i("rounded-[inherit]",s),animate:{boxShadow:[`0 0 ${r}px ${a}px ${t}`,`0 0 ${r*1.5}px ${a+5}px ${t}`,`0 0 ${r}px ${a}px ${t}`]},transition:{duration:o,repeat:1/0,ease:"easeInOut"},children:e}):jsxRuntime.jsx("div",{ref:l,className:i("rounded-[inherit]",s),style:c,children:e})});Hy.displayName="Glow";var Ey=(e,t)=>({id:Math.random().toString(36).substr(2,9),x:`${Math.random()*100}%`,y:`${Math.random()*100}%`,size:Math.random()*(t-e)+e,delay:Math.random()*2}),Vy=$__namespace.forwardRef(({children:e,count:t=10,color:r="hsl(var(--primary))",minSize:a=4,maxSize:n=8,duration:o=1.5,className:s},l)=>{let[c,d]=$__namespace.useState([]);return $__namespace.useEffect(()=>{let u=Array.from({length:t},()=>Ey(a,n));d(u);let m=setInterval(()=>{d(f=>{let p=[...f],b=Math.floor(Math.random()*t);return p[b]=Ey(a,n),p});},o*500);return ()=>clearInterval(m)},[t,a,n,o]),jsxRuntime.jsxs("div",{ref:l,className:i("relative inline-block",s),children:[e,c.map(u=>jsxRuntime.jsx(framerMotion.motion.svg,{className:"pointer-events-none absolute",style:{left:u.x,top:u.y,width:u.size,height:u.size},viewBox:"0 0 24 24",initial:{scale:0,opacity:0,rotate:0},animate:{scale:[0,1,0],opacity:[0,1,0],rotate:[0,180]},transition:{duration:o,delay:u.delay,repeat:1/0,ease:"easeInOut"},children:jsxRuntime.jsx("path",{d:"M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z",fill:r})},u.id))]})});Vy.displayName="Sparkles";Object.defineProperty(exports,"toast",{enumerable:true,get:function(){return sonner.toast}});Object.defineProperty(exports,"useTheme",{enumerable:true,get:function(){return nextThemes.useTheme}});exports.Accordion=uu;exports.AccordionItem=mu;exports.ActionBar=oh;exports.ActionBarButton=sh;exports.ActionGroup=jv;exports.ActionIcon=kb;exports.ActionMenu=lh;exports.ActionSheet=Lx;exports.Alert=_y;exports.AlertDescription=Wy;exports.AlertTitle=jy;exports.AppShell=Ox;exports.AppShellAside=yc;exports.AppShellFooter=Rc;exports.AppShellHeader=hc;exports.AppShellMain=Fx;exports.AppShellSidebar=xc;exports.AreaChart=qb;exports.AspectRatio=Bu;exports.AuthDivider=Zx;exports.AuthFooterLinks=qx;exports.AuthForm=Ux;exports.AuthHeader=Xx;exports.AuthLayout=Yx;exports.AuthSocialButtons=Jx;exports.Autocomplete=vg;exports.Avatar=Ca;exports.AvatarFallback=Na;exports.AvatarGroup=np;exports.AvatarImage=tn;exports.BackTop=zf;exports.Badge=Xy;exports.Banner=Rx;exports.BarChart=Ub;exports.BatteryMeter=Lh;exports.BottomNavigation=Px;exports.Bounce=py;exports.Breadcrumb=Eu;exports.BreadcrumbEllipsis=Iu;exports.BreadcrumbItem=Du;exports.BreadcrumbLink=Su;exports.BreadcrumbList=Lu;exports.BreadcrumbPage=Hu;exports.BreadcrumbSeparator=Vu;exports.Button=J;exports.ButtonGroup=Ov;exports.COUNTRIES=Nf;exports.Calendar=nn;exports.Card=Sc;exports.CardContent=Vc;exports.CardFooter=Ic;exports.CardHeader=Hc;exports.Carousel=nv;exports.CarouselContent=ov;exports.CarouselItem=sv;exports.CarouselNext=Fl;exports.CarouselPrevious=Ol;exports.Center=_h;exports.Checkbox=An;exports.Checkmark=Dy;exports.Chip=dp;exports.CircularProgress=xp;exports.CloseButton=gr;exports.Code=Lg;exports.Collapse=ly;exports.Collapsible=hu;exports.CollapsibleContent=xu;exports.CollapsibleTrigger=Ai;exports.ColorArea=Ih;exports.ColorField=Iv;exports.ColorPicker=df;exports.ColorSlider=Bh;exports.ColorSwatch=Yn;exports.ColorSwatchPicker=lf;exports.ColorWheel=Fh;exports.Command=_i;exports.CommandDialog=_0;exports.CommandEmpty=jm;exports.CommandGroup=Wm;exports.CommandInput=$m;exports.CommandItem=Um;exports.CommandList=_m;exports.CommandSeparator=Ym;exports.CommandShortcut=Xm;exports.Confetti=Sy;exports.ConfirmDialog=Pl;exports.ContextMenu=Fd;exports.ContextMenuCheckboxItem=qd;exports.ContextMenuContent=Wd;exports.ContextMenuGroup=Gd;exports.ContextMenuItem=Xd;exports.ContextMenuLabel=Jd;exports.ContextMenuPortal=$d;exports.ContextMenuRadioGroup=jd;exports.ContextMenuRadioItem=Zd;exports.ContextMenuSeparator=Qd;exports.ContextMenuShortcut=eu;exports.ContextMenuSub=_d;exports.ContextMenuSubContent=Ud;exports.ContextMenuSubTrigger=Yd;exports.ContextMenuTrigger=Kd;exports.ContextualHelp=hh;exports.CopyButton=$b;exports.Counter=hy;exports.CurrencyInput=gf;exports.DEFAULT_COLORS=oo;exports.DashboardGrid=Wx;exports.DashboardLayout=$x;exports.DashboardPage=_x;exports.DashboardPageHeader=jx;exports.DataTable=k0;exports.DateField=Lv;exports.DateInput=Rf;exports.DatePicker=Qm;exports.DateRangePicker=rb;exports.DefaultErrorFallback=xl;exports.Dialog=To;exports.DialogClose=Oc;exports.DialogContent=Po;exports.DialogDescription=$c;exports.DialogFooter=Kc;exports.DialogHeader=Fc;exports.DialogOverlay=Ri;exports.DialogPortal=yi;exports.DialogTitle=Gc;exports.DialogTrigger=Bc;exports.DiskUsageMeter=Eh;exports.Dots=gp;exports.Drawer=Fi;exports.DrawerBody=lm;exports.DrawerClose=mm;exports.DrawerContent=sm;exports.DrawerDescription=um;exports.DrawerFooter=cm;exports.DrawerGroup=xm;exports.DrawerGroupLabel=ym;exports.DrawerHeader=im;exports.DrawerInset=Rm;exports.DrawerMenu=gm;exports.DrawerMenuButton=hm;exports.DrawerMenuItem=bm;exports.DrawerProvider=R0;exports.DrawerSeparator=fm;exports.DrawerSidebar=nm;exports.DrawerTitle=dm;exports.DrawerToggle=pm;exports.DrawerTrigger=om;exports.Dropdown=Wr;exports.DropdownCheckboxItem=md;exports.DropdownContent=Ur;exports.DropdownGroup=vd;exports.DropdownItem=qt;exports.DropdownLabel=gd;exports.DropdownRadioGroup=pd;exports.DropdownRadioItem=fd;exports.DropdownSeparator=zo;exports.DropdownShortcut=bd;exports.DropdownSub=hd;exports.DropdownSubContent=yd;exports.DropdownSubTrigger=xd;exports.DropdownTrigger=Yr;exports.EMOJIS=Gl;exports.EMOJI_CATEGORIES=Bs;exports.EmojiPicker=lv;exports.EmptyState=Sp;exports.ErrorBoundary=MN;exports.Expand=cy;exports.FAB=Xk;exports.Fade=oy;exports.FieldContext=ul;exports.FileUpload=af;exports.Flex=fo;exports.Flip=uy;exports.FloatingActionButton=fc;exports.Form=hg;exports.FormContext=dl;exports.FormControl=wg;exports.FormDescription=Cg;exports.FormField=xg;exports.FormItem=yg;exports.FormLabel=Rg;exports.FormMessage=Ng;exports.FullCalendar=Wb;exports.Glow=Hy;exports.Grid=si;exports.GridItem=Uh;exports.GridList=Th;exports.HStack=Gh;exports.HoverCard=Mu;exports.HoverCardContent=Pu;exports.HoverCardTrigger=Tu;exports.IconButton=Gv;exports.IllustratedMessage=Qv;exports.Image=Hg;exports.ImageCropper=pv;exports.ImageViewer=kl;exports.ImageViewerTrigger=Mb;exports.Indicator=Hb;exports.IndicatorWrapper=Vb;exports.InfiniteScroll=ib;exports.InlineAlert=ah;exports.Input=ko;exports.InputOTP=wp;exports.InputOTPGroup=Cp;exports.InputOTPSeparator=Mp;exports.InputOTPSlot=Np;exports.KanbanBoard=tv;exports.Kbd=Ob;exports.Label=wa;exports.LabeledValue=tx;exports.LabeledValueGroup=ax;exports.LineChart=Yb;exports.Link=If;exports.List=Vw;exports.ListItem=Bp;exports.ListItemText=Op;exports.ListView=ph;exports.Listbox=Og;exports.ListboxItem=Fg;exports.Loading=eb;exports.LoadingOverlay=Yg;exports.MASK_PRESETS=el;exports.MaskedInput=hf;exports.Menubar=Gf;exports.MenubarCheckboxItem=Qf;exports.MenubarContent=Zf;exports.MenubarGroup=_f;exports.MenubarItem=Jf;exports.MenubarLabel=tg;exports.MenubarMenu=$f;exports.MenubarPortal=jf;exports.MenubarRadioGroup=Yf;exports.MenubarRadioItem=eg;exports.MenubarSeparator=rg;exports.MenubarShortcut=ag;exports.MenubarSub=Wf;exports.MenubarSubContent=qf;exports.MenubarSubTrigger=Xf;exports.MenubarTrigger=Uf;exports.Meter=ri;exports.Modal=mb;exports.ModalBody=vb;exports.ModalClose=Tl;exports.ModalContent=gb;exports.ModalDescription=yb;exports.ModalFooter=hb;exports.ModalHeader=bb;exports.ModalOverlay=Ml;exports.ModalPortal=Nl;exports.ModalRoot=pb;exports.ModalTitle=xb;exports.ModalTrigger=fb;exports.NProgress=Xg;exports.Navbar=kf;exports.NavbarBrand=Ef;exports.NavbarContent=Lf;exports.NavbarItem=Df;exports.NavbarLink=Sf;exports.NavigationMenu=_u;exports.NavigationMenuContent=Xu;exports.NavigationMenuIndicator=Ju;exports.NavigationMenuItem=Wu;exports.NavigationMenuLink=Zu;exports.NavigationMenuList=ju;exports.NavigationMenuTrigger=Uu;exports.NavigationMenuViewport=Oi;exports.NotificationCenter=bx;exports.NotificationCenterContent=hx;exports.NotificationCenterProvider=Ik;exports.NotificationCenterTrigger=vx;exports.NotificationItem=mc;exports.NotificationList=xx;exports.NumberField=Mv;exports.NumberInput=Zm;exports.Pagination=zm;exports.PaginationContent=Bm;exports.PaginationEllipsis=Gm;exports.PaginationItem=Om;exports.PaginationLink=es;exports.PaginationNext=Km;exports.PaginationPrevious=Fm;exports.Parallax=Py;exports.PasswordInput=qm;exports.PhoneInput=Mf;exports.PieChart=Xb;exports.Pop=vy;exports.Popover=at;exports.PopoverAnchor=Bo;exports.PopoverContent=nt;exports.PopoverTrigger=ht;exports.Portal=Db;exports.Progress=qo;exports.PullToRefresh=Ax;exports.Pulse=gy;exports.QRCode=gv;exports.RadioGroup=ru;exports.RadioGroupItem=au;exports.RangeSlider=gh;exports.Rating=sp;exports.ResizableHandle=gw;exports.ResizablePanel=fw;exports.ResizablePanelGroup=pw;exports.RichTextEditor=dv;exports.Ripple=my;exports.Rotate=dy;exports.Scale=iy;exports.ScrollArea=We;exports.ScrollProgress=Ty;exports.ScrollReveal=My;exports.ScrollShadow=zb;exports.SearchBar=lx;exports.SearchField=kv;exports.SegmentedControl=Jp;exports.SegmentedControlItem=Qp;exports.Select=cd;exports.Separator=Kr;exports.SettingsCard=ty;exports.SettingsHeader=vo;exports.SettingsLayout=Qx;exports.SettingsNavItem=ay;exports.SettingsRow=ry;exports.SettingsSection=ey;exports.SettingsSeparator=ny;exports.Shake=fy;exports.Sheet=Ko;exports.SheetClose=Dd;exports.SheetContent=Go;exports.SheetDescription=zd;exports.SheetFooter=Id;exports.SheetHeader=Vd;exports.SheetOverlay=Sd;exports.SheetPortal=Di;exports.SheetTitle=Ad;exports.SheetTrigger=Ld;exports.Shimmer=Ly;exports.SimpleGrid=Xh;exports.Skeleton=Ho;exports.Slide=sy;exports.Slider=Yo;exports.Snippet=Sg;exports.SortableList=mN;exports.Spacer=Kb;exports.Sparkles=Vy;exports.Spinner=Hm;exports.SpotlightSearch=mx;exports.StatCard=Ip;exports.StatusLight=qv;exports.Step=ig;exports.Steps=og;exports.SwipeActions=Hx;exports.Switch=Uc;exports.Table=Cm;exports.TableBody=Mm;exports.TableCaption=Lm;exports.TableCell=Em;exports.TableFooter=Tm;exports.TableHead=km;exports.TableHeader=Nm;exports.TableRow=Pm;exports.Tabs=Nd;exports.TabsContent=Pd;exports.TabsList=Md;exports.TabsTrigger=Td;exports.TagGroup=Rh;exports.TagInput=Ep;exports.TextBadge=Zy;exports.TextField=Rv;exports.TextReveal=yy;exports.Textarea=Xc;exports.ThemeProvider=bv;exports.ThemeToggle=vv;exports.TimeField=Sv;exports.TimeInput=mf;exports.TimePicker=ab;exports.Timeline=$p;exports.TimelineContent=Wp;exports.TimelineItem=jp;exports.TimelineOpposite=Yp;exports.Toaster=zR;exports.Toggle=nu;exports.ToggleGroup=su;exports.ToggleGroupItem=iu;exports.Tooltip=$r;exports.TooltipContent=jr;exports.TooltipProvider=Gr;exports.TooltipTrigger=_r;exports.Tree=fg;exports.Typewriter=xy;exports.User=Pg;exports.VStack=$h;exports.VirtualList=LN;exports.VisuallyHidden=eo;exports.Well=Jh;exports.Wiggle=by;exports.WordRotate=Ry;exports.actionBarVariants=nh;exports.actionGroupVariants=_v;exports.actionIconVariants=Pb;exports.actionMenuTriggerVariants=ih;exports.actionSheetItemVariants=Ex;exports.alertVariants=Gy;exports.appShellVariants=Bx;exports.applyMask=ls;exports.authLayoutVariants=pi;exports.autocompleteInputVariants=bg;exports.avatarGroupVariants=ap;exports.backTopVariants=Af;exports.badgeIndicatorVariants=Yy;exports.bannerVariants=yx;exports.bottomNavigationVariants=Tx;exports.buttonGroupVariants=zv;exports.buttonVariants=mr;exports.cardVariants=Dc;exports.carouselVariants=rv;exports.chartContainerVariants=no;exports.chipVariants=cp;exports.circularProgressVariants=hp;exports.closeButtonVariants=rm;exports.cn=i;exports.codeVariants=Eg;exports.colorAreaVariants=Dh;exports.colorFieldVariants=Vv;exports.colorSliderVariants=zh;exports.colorSwatchPickerVariants=sf;exports.colorSwatchVariants=of;exports.colorWheelVariants=Oh;exports.confirmDialogIconVariants=Cb;exports.contextualHelpTriggerVariants=sc;exports.copyButtonVariants=Gb;exports.currencyInputVariants=pf;exports.dashboardLayoutVariants=Gx;exports.dateFieldVariants=Ev;exports.dateInputVariants=xf;exports.dotsVariants=fp;exports.drawerMenuButtonVariants=vm;exports.emojiPickerVariants=iv;exports.emptyStateVariants=Dp;exports.fabVariants=go;exports.fileUploadVariants=ef;exports.flexVariants=Kh;exports.formatCurrency=Qi;exports.formatDate=ds;exports.formatFileSize=ss;exports.formatPhoneNumber=ms;exports.fullCalendarVariants=jb;exports.getFileIcon=tf;exports.getMaskPlaceholder=vf;exports.gridItemVariants=Yh;exports.gridListItemVariants=Mh;exports.gridListVariants=Nh;exports.gridVariants=Wh;exports.hexToRgb=Hh;exports.hsvToRgb=ni;exports.iconButtonVariants=Kv;exports.illustratedMessageVariants=Jv;exports.imageCropperVariants=mv;exports.imageVariants=gl;exports.indicatorVariants=Sb;exports.infiniteScrollLoaderVariants=wl;exports.infiniteScrollVariants=sb;exports.inlineAlertVariants=rh;exports.inputOTPVariants=Rp;exports.inputSizeVariants=xv;exports.kanbanBoardVariants=Qb;exports.kanbanCardVariants=zl;exports.kanbanColumnVariants=ev;exports.kbdVariants=Bb;exports.labelSizeVariants=yv;exports.labeledValueGroupVariants=rx;exports.labeledValueVariants=ex;exports.linkVariants=Vf;exports.listItemVariants=zp;exports.listVariants=Xi;exports.listViewItemVariants=mh;exports.listViewVariants=uh;exports.listboxItemVariants=zg;exports.listboxVariants=Ag;exports.loadingOverlayVariants=Wg;exports.loadingVariants=Qg;exports.maskedInputVariants=bf;exports.meterVariants=kh;exports.modalContentVariants=Cl;exports.navbarVariants=Pf;exports.navigationMenuLinkStyle=qu;exports.navigationMenuTriggerStyle=Yu;exports.nprogressVariants=Ug;exports.numberFieldVariants=Nv;exports.parseDate=yf;exports.parseFormattedValue=ff;exports.phoneInputVariants=Cf;exports.pullToRefreshVariants=Ix;exports.qrCodeVariants=Wl;exports.rangeSliderVariants=fh;exports.ratingVariants=op;exports.rgbToHex=Vh;exports.rgbToHsv=Sh;exports.richTextEditorVariants=cv;exports.scrollShadowVariants=Ab;exports.searchBarVariants=ix;exports.searchFieldVariants=Pv;exports.segmentedControlItemVariants=qp;exports.segmentedControlVariants=Xp;exports.selectVariants=ld;exports.settingsLayoutVariants=fi;exports.sheetVariants=Hd;exports.skeletonVariants=Zc;exports.snippetVariants=Dg;exports.sortableItemVariants=$g;exports.sortableListVariants=Gg;exports.spinnerVariants=Sm;exports.statCardVariants=Vp;exports.statusLightVariants=Xv;exports.stepVariants=sg;exports.stepsVariants=ng;exports.swipeActionVariants=bc;exports.swipeActionsVariants=Sx;exports.switchColors=Lo;exports.tagGroupItemVariants=ic;exports.tagGroupVariants=yh;exports.tagVariants=kp;exports.textBadgeVariants=qy;exports.textFieldVariants=hv;exports.themeToggleVariants=YT;exports.timeFieldVariants=Dv;exports.timeInputVariants=uf;exports.timelineItemVariants=_p;exports.timelineVariants=Gp;exports.toggleVariants=jo;exports.treeItemVariants=dg;exports.treeVariants=cg;exports.unmask=tl;exports.useButtonGroup=bP;exports.useCarousel=Bl;exports.useConfetti=CE;exports.useConfirmDialog=_N;exports.useDrawer=p0;exports.useFieldContext=hs;exports.useFormContext=ml;exports.useKeyboardShortcut=pM;exports.useNotificationCenter=di;exports.useSpotlight=Pk;exports.userVariants=Tg;exports.validateFile=rf;exports.validators=JC;exports.virtualListVariants=nb;exports.wellVariants=Zh;//# sourceMappingURL=index.cjs.map
72
+ `})]})});Iy.displayName="Shimmer";var AL={sm:24,md:40,lg:56,xl:80},zL={default:{circle:"stroke-muted-foreground",check:"stroke-foreground"},success:{circle:"stroke-green-500",check:"stroke-green-500"},primary:{circle:"stroke-primary",check:"stroke-primary"},outline:{circle:"stroke-border",check:"stroke-foreground"}},Vy=$__namespace.forwardRef(({show:e=true,size:t="md",variant:r="success",strokeWidth:a=2,duration:n=.6,delay:o=0,className:s,onComplete:l},c)=>{let d=AL[t],m=zL[r],u={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:o,ease:"easeOut"}}},f={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:o+n*.4,ease:"easeOut"}}};return jsxRuntime.jsxs("svg",{ref:c,width:d,height:d,viewBox:"0 0 50 50",className:i(s),children:[jsxRuntime.jsx(framerMotion.motion.circle,{cx:"25",cy:"25",r:"22",fill:"none",strokeWidth:a,className:m.circle,variants:u,initial:"hidden",animate:e?"visible":"hidden"}),jsxRuntime.jsx(framerMotion.motion.path,{d:"M14 27 L22 35 L36 18",fill:"none",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",className:m.check,variants:f,initial:"hidden",animate:e?"visible":"hidden",onAnimationComplete:()=>e&&l?.()})]})});Vy.displayName="Checkmark";var In={particleCount:100,spread:70,startVelocity:30,decay:.95,gravity:1,colors:["#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff"],origin:{x:.5,y:.5},shapes:["square","circle"],scalar:1,drift:0,ticks:200},Ay=$__namespace.forwardRef(({autoTrigger:e=false,delay:t=0,options:r={},children:a,onTrigger:n},o)=>{let s=$__namespace.useCallback(()=>{let l={...In,...r};Hn__default.default(l),n?.();},[r,n]);return $__namespace.useEffect(()=>{if(e){let l=setTimeout(s,t);return ()=>clearTimeout(l)}},[e,t,s]),a?jsxRuntime.jsx("div",{ref:o,onClick:s,className:"inline-block cursor-pointer",children:a}):null});Ay.displayName="Confetti";var BL=()=>{let e=$__namespace.useCallback(a=>{let n={...In,...a};Hn__default.default(n);},[]),t=$__namespace.useCallback(()=>{let n=Date.now()+3e3,o=setInterval(()=>{let s=n-Date.now();if(s<=0){clearInterval(o);return}let l=50*(s/3e3);Hn__default.default({...In,particleCount:l,origin:{x:Math.random()*.4+.1,y:Math.random()-.2}}),Hn__default.default({...In,particleCount:l,origin:{x:Math.random()*.4+.5,y:Math.random()-.2}});},250);},[]),r=$__namespace.useCallback((a="both")=>{let n={x:0,y:1},o={x:1,y:1};(a==="left"||a==="both")&&Hn__default.default({...In,particleCount:50,angle:60,spread:55,origin:n}),(a==="right"||a==="both")&&Hn__default.default({...In,particleCount:50,angle:120,spread:55,origin:o});},[]);return {fire:e,fireworks:t,cannon:r}},zy=$__namespace.forwardRef(({children:e,color:t="hsl(var(--primary))",intensity:r=20,spread:a=0,animate:n=false,duration:o=2,className:s},l)=>{let c={boxShadow:`0 0 ${r}px ${a}px ${t}`};return n?jsxRuntime.jsx(framerMotion.motion.div,{ref:l,className:i("rounded-[inherit]",s),animate:{boxShadow:[`0 0 ${r}px ${a}px ${t}`,`0 0 ${r*1.5}px ${a+5}px ${t}`,`0 0 ${r}px ${a}px ${t}`]},transition:{duration:o,repeat:1/0,ease:"easeInOut"},children:e}):jsxRuntime.jsx("div",{ref:l,className:i("rounded-[inherit]",s),style:c,children:e})});zy.displayName="Glow";var Hy=(e,t)=>({id:Math.random().toString(36).substr(2,9),x:`${Math.random()*100}%`,y:`${Math.random()*100}%`,size:Math.random()*(t-e)+e,delay:Math.random()*2}),By=$__namespace.forwardRef(({children:e,count:t=10,color:r="hsl(var(--primary))",minSize:a=4,maxSize:n=8,duration:o=1.5,className:s},l)=>{let[c,d]=$__namespace.useState([]);return $__namespace.useEffect(()=>{let m=Array.from({length:t},()=>Hy(a,n));d(m);let u=setInterval(()=>{d(f=>{let p=[...f],b=Math.floor(Math.random()*t);return p[b]=Hy(a,n),p});},o*500);return ()=>clearInterval(u)},[t,a,n,o]),jsxRuntime.jsxs("div",{ref:l,className:i("relative inline-block",s),children:[e,c.map(m=>jsxRuntime.jsx(framerMotion.motion.svg,{className:"pointer-events-none absolute",style:{left:m.x,top:m.y,width:m.size,height:m.size},viewBox:"0 0 24 24",initial:{scale:0,opacity:0,rotate:0},animate:{scale:[0,1,0],opacity:[0,1,0],rotate:[0,180]},transition:{duration:o,delay:m.delay,repeat:1/0,ease:"easeInOut"},children:jsxRuntime.jsx("path",{d:"M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z",fill:r})},m.id))]})});By.displayName="Sparkles";var Oy=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("h1",{ref:a,className:i("scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl",e),...r,children:t}));Oy.displayName="H1";var Fy=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("h2",{ref:a,className:i("scroll-m-20 text-3xl font-semibold tracking-tight",e),...r,children:t}));Fy.displayName="H2";var Ky=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("h3",{ref:a,className:i("scroll-m-20 text-2xl font-semibold tracking-tight",e),...r,children:t}));Ky.displayName="H3";var Gy=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("h4",{ref:a,className:i("scroll-m-20 text-xl font-semibold tracking-tight",e),...r,children:t}));Gy.displayName="H4";var $y=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("p",{ref:a,className:i("leading-7 [&:not(:first-child)]:mt-6",e),...r,children:t}));$y.displayName="Paragraph";var _y=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("blockquote",{ref:a,className:i("mt-6 border-l-2 pl-6 italic",e),...r,children:t}));_y.displayName="Blockquote";var Wy=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("code",{ref:a,className:i("relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold",e),...r,children:t}));Wy.displayName="InlineCode";var jy=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("p",{ref:a,className:i("text-xl text-muted-foreground",e),...r,children:t}));jy.displayName="Lead";var Uy=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("text-lg font-semibold",e),...r,children:t}));Uy.displayName="Large";var Yy=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("small",{ref:a,className:i("text-sm font-medium leading-none",e),...r,children:t}));Yy.displayName="Small";var Xy=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("p",{ref:a,className:i("text-sm text-muted-foreground",e),...r,children:t}));Xy.displayName="Muted";var qy=$__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("ul",{ref:a,className:i("my-6 ml-6 list-disc [&>li]:mt-2",e),...r,children:t}));qy.displayName="UL";Object.defineProperty(exports,"toast",{enumerable:true,get:function(){return sonner.toast}});Object.defineProperty(exports,"useTheme",{enumerable:true,get:function(){return nextThemes.useTheme}});exports.Accordion=pu;exports.AccordionItem=fu;exports.ActionBar=ch;exports.ActionBarButton=dh;exports.ActionGroup=Xv;exports.ActionIcon=Sb;exports.ActionMenu=mh;exports.ActionSheet=Ix;exports.Alert=sR;exports.AlertDescription=lR;exports.AlertTitle=iR;exports.AppShell=$x;exports.AppShellAside=wc;exports.AppShellFooter=Cc;exports.AppShellHeader=yc;exports.AppShellMain=_x;exports.AppShellSidebar=Rc;exports.AreaChart=ev;exports.AspectRatio=Fu;exports.AuthDivider=ty;exports.AuthFooterLinks=ey;exports.AuthForm=Jx;exports.AuthHeader=Qx;exports.AuthLayout=Zx;exports.AuthSocialButtons=ry;exports.Autocomplete=Rg;exports.Avatar=Ma;exports.AvatarFallback=Ta;exports.AvatarGroup=ip;exports.AvatarImage=an;exports.BackTop=Kf;exports.Badge=uR;exports.Banner=Mx;exports.BarChart=Jb;exports.BatteryMeter=Ih;exports.Blockquote=_y;exports.BottomNavigation=Dx;exports.Bounce=vy;exports.Breadcrumb=Du;exports.BreadcrumbEllipsis=zu;exports.BreadcrumbItem=Hu;exports.BreadcrumbLink=Iu;exports.BreadcrumbList=Su;exports.BreadcrumbPage=Vu;exports.BreadcrumbSeparator=Au;exports.Button=J;exports.ButtonGroup=$v;exports.COUNTRIES=kf;exports.Calendar=sn;exports.Card=Ic;exports.CardContent=Ac;exports.CardFooter=zc;exports.CardHeader=Vc;exports.Carousel=lv;exports.CarouselContent=cv;exports.CarouselItem=dv;exports.CarouselNext=Gl;exports.CarouselPrevious=Kl;exports.Center=Yh;exports.Checkbox=Bn;exports.Checkmark=Vy;exports.Chip=pp;exports.CircularProgress=Cp;exports.CloseButton=vr;exports.Code=Ig;exports.Collapse=my;exports.Collapsible=yu;exports.CollapsibleContent=Ru;exports.CollapsibleTrigger=Oi;exports.ColorArea=Oh;exports.ColorField=Ov;exports.ColorPicker=ff;exports.ColorSlider=Gh;exports.ColorSwatch=Xn;exports.ColorSwatchPicker=mf;exports.ColorWheel=_h;exports.Command=Ui;exports.CommandDialog=ow;exports.CommandEmpty=Ym;exports.CommandGroup=Xm;exports.CommandInput=jm;exports.CommandItem=Zm;exports.CommandList=Um;exports.CommandSeparator=qm;exports.CommandShortcut=Jm;exports.Confetti=Ay;exports.ConfirmDialog=Ll;exports.ContextMenu=Gd;exports.ContextMenuCheckboxItem=Jd;exports.ContextMenuContent=Yd;exports.ContextMenuGroup=_d;exports.ContextMenuItem=Zd;exports.ContextMenuLabel=eu;exports.ContextMenuPortal=Wd;exports.ContextMenuRadioGroup=Ud;exports.ContextMenuRadioItem=Qd;exports.ContextMenuSeparator=tu;exports.ContextMenuShortcut=ru;exports.ContextMenuSub=jd;exports.ContextMenuSubContent=qd;exports.ContextMenuSubTrigger=Xd;exports.ContextMenuTrigger=$d;exports.ContextualHelp=wh;exports.CopyButton=Ub;exports.Counter=wy;exports.CurrencyInput=xf;exports.DEFAULT_COLORS=io;exports.DashboardGrid=qx;exports.DashboardLayout=Ux;exports.DashboardPage=Yx;exports.DashboardPageHeader=Xx;exports.DataTable=_0;exports.DateField=Iv;exports.DateInput=Mf;exports.DatePicker=rp;exports.DateRangePicker=sb;exports.DefaultErrorFallback=Rl;exports.Dialog=ko;exports.DialogClose=Kc;exports.DialogContent=Lo;exports.DialogDescription=Wc;exports.DialogFooter=$c;exports.DialogHeader=Gc;exports.DialogOverlay=Ni;exports.DialogPortal=Ci;exports.DialogTitle=_c;exports.DialogTrigger=Fc;exports.DiskUsageMeter=Hh;exports.Dots=hp;exports.Drawer=$i;exports.DrawerBody=dm;exports.DrawerClose=fm;exports.DrawerContent=lm;exports.DrawerDescription=pm;exports.DrawerFooter=um;exports.DrawerGroup=Rm;exports.DrawerGroupLabel=wm;exports.DrawerHeader=cm;exports.DrawerInset=Cm;exports.DrawerMenu=vm;exports.DrawerMenuButton=ym;exports.DrawerMenuItem=hm;exports.DrawerProvider=z0;exports.DrawerSeparator=bm;exports.DrawerSidebar=sm;exports.DrawerTitle=mm;exports.DrawerToggle=gm;exports.DrawerTrigger=im;exports.Dropdown=Yr;exports.DropdownCheckboxItem=fd;exports.DropdownContent=qr;exports.DropdownGroup=xd;exports.DropdownItem=Jt;exports.DropdownLabel=vd;exports.DropdownRadioGroup=gd;exports.DropdownRadioItem=bd;exports.DropdownSeparator=Oo;exports.DropdownShortcut=hd;exports.DropdownSub=yd;exports.DropdownSubContent=wd;exports.DropdownSubTrigger=Rd;exports.DropdownTrigger=Xr;exports.EMOJIS=_l;exports.EMOJI_CATEGORIES=Ks;exports.EmojiPicker=mv;exports.EmptyState=Ap;exports.ErrorBoundary=FN;exports.Expand=py;exports.FAB=dL;exports.Fade=cy;exports.FieldContext=pl;exports.FileUpload=lf;exports.Flex=bo;exports.Flip=gy;exports.FloatingActionButton=bc;exports.Form=wg;exports.FormContext=ml;exports.FormControl=Tg;exports.FormDescription=Pg;exports.FormField=Cg;exports.FormItem=Ng;exports.FormLabel=Mg;exports.FormMessage=kg;exports.FullCalendar=qb;exports.Glow=zy;exports.Grid=ci;exports.GridItem=Jh;exports.GridList=Eh;exports.H1=Oy;exports.H2=Fy;exports.H3=Ky;exports.H4=Gy;exports.HStack=jh;exports.HoverCard=Pu;exports.HoverCardContent=Lu;exports.HoverCardTrigger=ku;exports.IconButton=jv;exports.IllustratedMessage=ah;exports.Image=zg;exports.ImageCropper=vv;exports.ImageViewer=El;exports.ImageViewerTrigger=Lb;exports.Indicator=zb;exports.IndicatorWrapper=Bb;exports.InfiniteScroll=ub;exports.InlineAlert=ih;exports.InlineCode=Wy;exports.Input=Eo;exports.InputOTP=Tp;exports.InputOTPGroup=Pp;exports.InputOTPSeparator=Lp;exports.InputOTPSlot=kp;exports.KanbanBoard=ov;exports.Kbd=$b;exports.Label=Na;exports.LabeledValue=ox;exports.LabeledValueGroup=ix;exports.Large=Uy;exports.Lead=jy;exports.LineChart=Zb;exports.Link=Of;exports.List=Xw;exports.ListItem=Gp;exports.ListItemText=$p;exports.ListView=vh;exports.Listbox=$g;exports.ListboxItem=_g;exports.Loading=nb;exports.LoadingOverlay=Zg;exports.MASK_PRESETS=rl;exports.MaskedInput=wf;exports.Menubar=jf;exports.MenubarCheckboxItem=ag;exports.MenubarContent=tg;exports.MenubarGroup=Yf;exports.MenubarItem=rg;exports.MenubarLabel=og;exports.MenubarMenu=Uf;exports.MenubarPortal=Xf;exports.MenubarRadioGroup=Zf;exports.MenubarRadioItem=ng;exports.MenubarSeparator=sg;exports.MenubarShortcut=ig;exports.MenubarSub=qf;exports.MenubarSubContent=eg;exports.MenubarSubTrigger=Qf;exports.MenubarTrigger=Jf;exports.Meter=oi;exports.Modal=bb;exports.ModalBody=Rb;exports.ModalClose=kl;exports.ModalContent=xb;exports.ModalDescription=Nb;exports.ModalFooter=wb;exports.ModalHeader=yb;exports.ModalOverlay=Pl;exports.ModalPortal=Tl;exports.ModalRoot=vb;exports.ModalTitle=Cb;exports.ModalTrigger=hb;exports.Muted=Xy;exports.NProgress=Qg;exports.Navbar=Sf;exports.NavbarBrand=Hf;exports.NavbarContent=If;exports.NavbarItem=Vf;exports.NavbarLink=Af;exports.NavigationMenu=ju;exports.NavigationMenuContent=Zu;exports.NavigationMenuIndicator=em;exports.NavigationMenuItem=Yu;exports.NavigationMenuLink=Qu;exports.NavigationMenuList=Uu;exports.NavigationMenuTrigger=qu;exports.NavigationMenuViewport=Gi;exports.NotificationCenter=yx;exports.NotificationCenterContent=wx;exports.NotificationCenterProvider=qk;exports.NotificationCenterTrigger=Rx;exports.NotificationItem=fc;exports.NotificationList=Cx;exports.NumberField=Lv;exports.NumberInput=ep;exports.Pagination=Fm;exports.PaginationContent=Km;exports.PaginationEllipsis=Wm;exports.PaginationItem=Gm;exports.PaginationLink=as;exports.PaginationNext=_m;exports.PaginationPrevious=$m;exports.Paragraph=$y;exports.Parallax=Dy;exports.PasswordInput=Qm;exports.PhoneInput=Lf;exports.PieChart=Qb;exports.Pop=Ry;exports.Popover=at;exports.PopoverAnchor=Fo;exports.PopoverContent=nt;exports.PopoverTrigger=ht;exports.Portal=Vb;exports.Progress=Jo;exports.PullToRefresh=Fx;exports.Pulse=xy;exports.QRCode=xv;exports.RadioGroup=nu;exports.RadioGroupItem=ou;exports.RangeSlider=xh;exports.Rating=cp;exports.ResizableHandle=Ew;exports.ResizablePanel=Lw;exports.ResizablePanelGroup=kw;exports.RichTextEditor=fv;exports.Ripple=by;exports.Rotate=fy;exports.Scale=uy;exports.ScrollArea=je;exports.ScrollProgress=Ey;exports.ScrollReveal=Ly;exports.ScrollShadow=Kb;exports.SearchBar=mx;exports.SearchField=Sv;exports.SegmentedControl=rf;exports.SegmentedControlItem=af;exports.Select=ud;exports.Separator=$r;exports.SettingsCard=oy;exports.SettingsHeader=xo;exports.SettingsLayout=ay;exports.SettingsNavItem=iy;exports.SettingsRow=sy;exports.SettingsSection=ny;exports.SettingsSeparator=ly;exports.Shake=hy;exports.Sheet=$o;exports.SheetClose=Hd;exports.SheetContent=_o;exports.SheetDescription=Od;exports.SheetFooter=zd;exports.SheetHeader=Ad;exports.SheetOverlay=Id;exports.SheetPortal=Ii;exports.SheetTitle=Bd;exports.SheetTrigger=Sd;exports.Shimmer=Iy;exports.SimpleGrid=Qh;exports.Skeleton=Vo;exports.Slide=dy;exports.Slider=Xo;exports.Small=Yy;exports.Snippet=Ag;exports.SortableList=PN;exports.Spacer=Wb;exports.Sparkles=By;exports.Spinner=Am;exports.SpotlightSearch=bx;exports.StatCard=Op;exports.StatusLight=eh;exports.Step=ug;exports.Steps=cg;exports.SwipeActions=zx;exports.Switch=qc;exports.Table=Mm;exports.TableBody=Pm;exports.TableCaption=Sm;exports.TableCell=Dm;exports.TableFooter=km;exports.TableHead=Em;exports.TableHeader=Tm;exports.TableRow=Lm;exports.Tabs=Td;exports.TabsContent=Ld;exports.TabsList=Pd;exports.TabsTrigger=kd;exports.TagGroup=Mh;exports.TagInput=Hp;exports.TextBadge=pR;exports.TextField=Mv;exports.TextReveal=Ny;exports.Textarea=Zc;exports.ThemeProvider=yv;exports.ThemeToggle=Rv;exports.TimeField=Av;exports.TimeInput=bf;exports.TimePicker=ib;exports.Timeline=Up;exports.TimelineContent=qp;exports.TimelineItem=Xp;exports.TimelineOpposite=Zp;exports.Toaster=QR;exports.Toggle=su;exports.ToggleGroup=lu;exports.ToggleGroupItem=cu;exports.Tooltip=Wr;exports.TooltipContent=Ur;exports.TooltipProvider=_r;exports.TooltipTrigger=jr;exports.Tree=hg;exports.Typewriter=Cy;exports.UL=qy;exports.User=Dg;exports.VStack=Uh;exports.VirtualList=WN;exports.VisuallyHidden=ro;exports.Well=rx;exports.Wiggle=yy;exports.WordRotate=My;exports.actionBarVariants=lh;exports.actionGroupVariants=Yv;exports.actionIconVariants=Db;exports.actionMenuTriggerVariants=uh;exports.actionSheetItemVariants=Hx;exports.alertVariants=nR;exports.appShellVariants=Gx;exports.applyMask=us;exports.authLayoutVariants=bi;exports.autocompleteInputVariants=yg;exports.avatarGroupVariants=sp;exports.backTopVariants=Ff;exports.badgeIndicatorVariants=cR;exports.bannerVariants=Nx;exports.bottomNavigationVariants=Ex;exports.buttonGroupVariants=Kv;exports.buttonVariants=fr;exports.cardVariants=Hc;exports.carouselVariants=sv;exports.chartContainerVariants=so;exports.chipVariants=mp;exports.circularProgressVariants=wp;exports.closeButtonVariants=nm;exports.cn=i;exports.codeVariants=Hg;exports.colorAreaVariants=Vh;exports.colorFieldVariants=Bv;exports.colorSliderVariants=Kh;exports.colorSwatchPickerVariants=uf;exports.colorSwatchVariants=df;exports.colorWheelVariants=$h;exports.confirmDialogIconVariants=Pb;exports.contextualHelpTriggerVariants=lc;exports.copyButtonVariants=jb;exports.currencyInputVariants=vf;exports.dashboardLayoutVariants=jx;exports.dateFieldVariants=Hv;exports.dateInputVariants=Cf;exports.dotsVariants=vp;exports.drawerMenuButtonVariants=xm;exports.emojiPickerVariants=uv;exports.emptyStateVariants=Vp;exports.fabVariants=vo;exports.fileUploadVariants=nf;exports.flexVariants=Wh;exports.formatCurrency=tl;exports.formatDate=ps;exports.formatFileSize=cs;exports.formatPhoneNumber=gs;exports.fullCalendarVariants=Xb;exports.getFileIcon=of;exports.getMaskPlaceholder=Rf;exports.gridItemVariants=Zh;exports.gridListItemVariants=Lh;exports.gridListVariants=kh;exports.gridVariants=qh;exports.hexToRgb=zh;exports.hsvToRgb=ii;exports.iconButtonVariants=Wv;exports.illustratedMessageVariants=rh;exports.imageCropperVariants=bv;exports.imageVariants=vl;exports.indicatorVariants=Ab;exports.infiniteScrollLoaderVariants=Nl;exports.infiniteScrollVariants=db;exports.inlineAlertVariants=sh;exports.inputOTPVariants=Mp;exports.inputSizeVariants=Cv;exports.kanbanBoardVariants=av;exports.kanbanCardVariants=Ol;exports.kanbanColumnVariants=nv;exports.kbdVariants=Gb;exports.labelSizeVariants=Nv;exports.labeledValueGroupVariants=sx;exports.labeledValueVariants=nx;exports.linkVariants=Bf;exports.listItemVariants=Kp;exports.listVariants=Zi;exports.listViewItemVariants=bh;exports.listViewVariants=gh;exports.listboxItemVariants=Kg;exports.listboxVariants=Fg;exports.loadingOverlayVariants=qg;exports.loadingVariants=ab;exports.maskedInputVariants=yf;exports.meterVariants=Sh;exports.modalContentVariants=Ml;exports.navbarVariants=Df;exports.navigationMenuLinkStyle=Ju;exports.navigationMenuTriggerStyle=Xu;exports.nprogressVariants=Jg;exports.numberFieldVariants=kv;exports.parseDate=Nf;exports.parseFormattedValue=hf;exports.phoneInputVariants=Pf;exports.pullToRefreshVariants=Ox;exports.qrCodeVariants=Yl;exports.rangeSliderVariants=hh;exports.ratingVariants=lp;exports.rgbToHex=Bh;exports.rgbToHsv=Ah;exports.richTextEditorVariants=pv;exports.scrollShadowVariants=Fb;exports.searchBarVariants=ux;exports.searchFieldVariants=Dv;exports.segmentedControlItemVariants=ef;exports.segmentedControlVariants=Qp;exports.selectVariants=dd;exports.settingsLayoutVariants=vi;exports.sheetVariants=Vd;exports.skeletonVariants=Qc;exports.snippetVariants=Vg;exports.sortableItemVariants=Ug;exports.sortableListVariants=jg;exports.spinnerVariants=Vm;exports.statCardVariants=Bp;exports.statusLightVariants=Qv;exports.stepVariants=dg;exports.stepsVariants=lg;exports.swipeActionVariants=hc;exports.swipeActionsVariants=Ax;exports.switchColors=So;exports.tagGroupItemVariants=cc;exports.tagGroupVariants=Nh;exports.tagVariants=Sp;exports.textBadgeVariants=mR;exports.textFieldVariants=wv;exports.themeToggleVariants=lP;exports.timeFieldVariants=Vv;exports.timeInputVariants=gf;exports.timelineItemVariants=Yp;exports.timelineVariants=jp;exports.toggleVariants=Uo;exports.treeItemVariants=fg;exports.treeVariants=pg;exports.unmask=al;exports.useButtonGroup=DP;exports.useCarousel=Fl;exports.useConfetti=BL;exports.useConfirmDialog=oM;exports.useDrawer=L0;exports.useFieldContext=Rs;exports.useFormContext=fl;exports.useKeyboardShortcut=kM;exports.useNotificationCenter=pi;exports.useSpotlight=Gk;exports.userVariants=Eg;exports.validateFile=sf;exports.validators=pN;exports.virtualListVariants=lb;exports.wellVariants=tx;//# sourceMappingURL=index.cjs.map
78
73
  //# sourceMappingURL=index.cjs.map