@reeverdev/ui 0.1.43 → 0.1.45

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,4 +1,4 @@
1
- 'use strict';var $=require('react'),classVarianceAuthority=require('class-variance-authority'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),reactSlot=require('@radix-ui/react-slot'),lucideReact=require('lucide-react'),mo=require('@radix-ui/react-checkbox'),oe=require('@radix-ui/react-dialog'),_i=require('@radix-ui/react-label'),fo=require('@radix-ui/react-separator'),go=require('@radix-ui/react-switch'),At=require('@radix-ui/react-avatar'),it=require('@radix-ui/react-tooltip'),j=require('@radix-ui/react-select'),U=require('@radix-ui/react-dropdown-menu'),st=require('@radix-ui/react-popover'),lt=require('@radix-ui/react-tabs'),sonner=require('sonner'),Ye=require('@radix-ui/react-scroll-area'),Y=require('@radix-ui/react-context-menu'),ba=require('@radix-ui/react-radio-group'),is=require('@radix-ui/react-toggle'),yr=require('@radix-ui/react-toggle-group'),Ft=require('@radix-ui/react-slider'),yt=require('@radix-ui/react-accordion'),ja=require('@radix-ui/react-collapsible'),le=require('@radix-ui/react-alert-dialog'),yo=require('@radix-ui/react-progress'),qa=require('@radix-ui/react-hover-card'),Bc=require('@radix-ui/react-aspect-ratio'),fe=require('@radix-ui/react-navigation-menu'),vaul=require('vaul'),reactDayPicker=require('react-day-picker'),cmdk=require('cmdk'),dateFns=require('date-fns'),reactResizablePanels=require('react-resizable-panels'),reactColorful=require('react-colorful'),K=require('@radix-ui/react-menubar'),reactDom=require('react-dom'),Cg=require('@radix-ui/react-visually-hidden'),recharts=require('recharts'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),GP=require('embla-carousel-react'),react=require('@tiptap/react'),qP=require('@tiptap/starter-kit'),ZP=require('@tiptap/extension-link'),QP=require('@tiptap/extension-underline'),JP=require('@tiptap/extension-text-align'),eC=require('@tiptap/extension-placeholder'),RC=require('react-image-crop');require('react-image-crop/dist/ReactCrop.css');var kC=require('react-qr-code'),nextThemes=require('next-themes'),framerMotion=require('framer-motion'),oo=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 mo__namespace=/*#__PURE__*/_interopNamespace(mo);var oe__namespace=/*#__PURE__*/_interopNamespace(oe);var _i__namespace=/*#__PURE__*/_interopNamespace(_i);var fo__namespace=/*#__PURE__*/_interopNamespace(fo);var go__namespace=/*#__PURE__*/_interopNamespace(go);var At__namespace=/*#__PURE__*/_interopNamespace(At);var it__namespace=/*#__PURE__*/_interopNamespace(it);var j__namespace=/*#__PURE__*/_interopNamespace(j);var U__namespace=/*#__PURE__*/_interopNamespace(U);var st__namespace=/*#__PURE__*/_interopNamespace(st);var lt__namespace=/*#__PURE__*/_interopNamespace(lt);var Ye__namespace=/*#__PURE__*/_interopNamespace(Ye);var Y__namespace=/*#__PURE__*/_interopNamespace(Y);var ba__namespace=/*#__PURE__*/_interopNamespace(ba);var is__namespace=/*#__PURE__*/_interopNamespace(is);var yr__namespace=/*#__PURE__*/_interopNamespace(yr);var Ft__namespace=/*#__PURE__*/_interopNamespace(Ft);var yt__namespace=/*#__PURE__*/_interopNamespace(yt);var ja__namespace=/*#__PURE__*/_interopNamespace(ja);var le__namespace=/*#__PURE__*/_interopNamespace(le);var yo__namespace=/*#__PURE__*/_interopNamespace(yo);var qa__namespace=/*#__PURE__*/_interopNamespace(qa);var Bc__namespace=/*#__PURE__*/_interopNamespace(Bc);var fe__namespace=/*#__PURE__*/_interopNamespace(fe);var K__namespace=/*#__PURE__*/_interopNamespace(K);var Cg__namespace=/*#__PURE__*/_interopNamespace(Cg);var GP__default=/*#__PURE__*/_interopDefault(GP);var qP__default=/*#__PURE__*/_interopDefault(qP);var ZP__default=/*#__PURE__*/_interopDefault(ZP);var QP__default=/*#__PURE__*/_interopDefault(QP);var JP__default=/*#__PURE__*/_interopDefault(JP);var eC__default=/*#__PURE__*/_interopDefault(eC);var RC__default=/*#__PURE__*/_interopDefault(RC);var kC__default=/*#__PURE__*/_interopDefault(kC);var oo__default=/*#__PURE__*/_interopDefault(oo);function o(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var Ex=classVarianceAuthority.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4",{variants:{variant:{solid:"border-transparent bg-primary text-primary-foreground [&>svg]:text-primary-foreground",outline:"border-input bg-transparent text-foreground [&>svg]:text-foreground",ghost:"border-transparent bg-transparent text-foreground [&>svg]:text-foreground",soft:"border-transparent bg-primary/15 text-primary [&>svg]:text-primary",surface:"border-transparent bg-muted text-muted-foreground [&>svg]:text-muted-foreground",destructive:"border-destructive/50 bg-destructive/10 text-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"solid"}}),Hx=$__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,role:"alert",className:o(Ex({variant:t}),e),...a}));Hx.displayName="Alert";var Ax=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("h5",{ref:a,className:o("mb-1 font-medium leading-none tracking-tight",e),...t}));Ax.displayName="AlertTitle";var zx=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("text-sm [&_p]:leading-relaxed",e),...t}));zx.displayName="AlertDescription";var Bx=classVarianceAuthority.cva("absolute rounded-full flex items-center justify-center font-semibold",{variants:{variant:{solid:"",bordered:"border-2"},color:{default:"",success:"",warning:"",danger:""},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:"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"},{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"}}),Fx={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},Ox=$__namespace.forwardRef(({className:e,children:t,content:a,variant:r="solid",color:n="default",size:i="md",placement:s="top-right",isDot:l=false,...d},m)=>jsxRuntime.jsxs("div",{ref:m,className:o("relative inline-flex",e),...d,children:[t,jsxRuntime.jsx("span",{className:o(Bx({variant:r,color:n,size:l?void 0:i,placement:s}),l&&Fx[i||"md"],l&&"min-w-0 p-0"),children:!l&&a})]}));Ox.displayName="Badge";var Gx=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"},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"}}),lo=$__namespace.forwardRef(({className:e,color:t,size:a,...r},n)=>jsxRuntime.jsx("span",{ref:n,className:o(Gx({color:t,size:a}),e),...r}));lo.displayName="TextBadge";var Me=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:""},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"}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md"}}),O=$__namespace.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,asChild:i=false,href:s,loading:l=false,startContent:d,endContent:m,children:u,disabled:p,style:g,...c},v)=>{let N=p||l,h=t==="bordered"?{borderColor:"currentColor",...g}:g,R=l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"animate-spin"}),u]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d,u,m]});return i?jsxRuntime.jsx(reactSlot.Slot,{className:o(Me({variant:t,color:a,size:r,radius:n,className:e})),ref:v,style:h,...c,children:R}):s?jsxRuntime.jsx("a",{href:s,className:o(Me({variant:t,color:a,size:r,radius:n,className:e}),N&&"pointer-events-none opacity-50"),style:h,...c,children:R}):jsxRuntime.jsx("button",{className:o(Me({variant:t,color:a,size:r,radius:n,className:e})),ref:v,disabled:N,style:h,...c,children:R})});O.displayName="Button";var td=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"}}),ad=$__namespace.forwardRef(({className:e,radius:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(td({radius:t,className:e})),...a}));ad.displayName="Card";var rd=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));rd.displayName="CardHeader";var od=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("p-6 pt-0",e),...t}));od.displayName="CardContent";var nd=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center p-6 pt-0",e),...t}));nd.displayName="CardFooter";var po=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(mo__namespace.Root,{ref:a,className:o("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:jsxRuntime.jsx(mo__namespace.Indicator,{className:o("flex items-center justify-center text-current"),children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}));po.displayName=mo__namespace.Root.displayName;var $i=oe__namespace.Root,Xx=oe__namespace.Trigger,sd=oe__namespace.Portal,qx=oe__namespace.Close,Wi=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Overlay,{ref:a,className:o("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),...t}));Wi.displayName=oe__namespace.Overlay.displayName;var on=$__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(sd,{children:[jsxRuntime.jsx(Wi,{}),jsxRuntime.jsxs(oe__namespace.Content,{ref:r,className:o("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),...a,children:[t,jsxRuntime.jsxs(oe__namespace.Close,{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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));on.displayName=oe__namespace.Content.displayName;var ld=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ld.displayName="DialogHeader";var dd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});dd.displayName="DialogFooter";var cd=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));cd.displayName=oe__namespace.Title.displayName;var md=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));md.displayName=oe__namespace.Description.displayName;var Qx=classVarianceAuthority.cva("flex h-10 w-full 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 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:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),nn=$__namespace.forwardRef(({className:e,type:t,radius:a,...r},n)=>jsxRuntime.jsx("input",{type:t,className:o(Qx({radius:a,className:e})),ref:n,...r}));nn.displayName="Input";var ty=classVarianceAuthority.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ba=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(_i__namespace.Root,{ref:a,className:o(ty(),e),...t}));Ba.displayName=_i__namespace.Root.displayName;var ma=$__namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:a=true,text:r,...n},i)=>r&&t==="horizontal"?jsxRuntime.jsxs("div",{className:o("flex items-center gap-4",e),children:[jsxRuntime.jsx(fo__namespace.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:r}),jsxRuntime.jsx(fo__namespace.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n})]}):jsxRuntime.jsx(fo__namespace.Root,{ref:i,decorative:a,orientation:t,className:o("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));ma.displayName=fo__namespace.Root.displayName;var vd=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(go__namespace.Root,{className:o("peer inline-flex h-6 w-11 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 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:a,children:jsxRuntime.jsx(go__namespace.Thumb,{className:o("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));vd.displayName=go__namespace.Root.displayName;var ny=classVarianceAuthority.cva("flex min-h-[80px] w-full border border-input bg-background px-3 py-2 text-sm 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:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"md"}}),xd=$__namespace.forwardRef(({className:e,radius:t,...a},r)=>jsxRuntime.jsx("textarea",{className:o(ny({radius:t,className:e})),ref:r,...a}));xd.displayName="Textarea";var Rd=classVarianceAuthority.cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),ln=$__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(Rd({variant:t,className:e})),...a}));ln.displayName="Skeleton";var cy=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"}}),Fa=$__namespace.forwardRef(({className:e,size:t,radius:a,...r},n)=>jsxRuntime.jsx(At__namespace.Root,{ref:n,className:o(cy({size:t,radius:a,className:e})),...r}));Fa.displayName=At__namespace.Root.displayName;var hr=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(At__namespace.Image,{ref:a,className:o("aspect-square h-full w-full",e),...t}));hr.displayName=At__namespace.Image.displayName;var Oa=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(At__namespace.Fallback,{ref:a,className:o("flex h-full w-full items-center justify-center bg-muted",e),...t}));Oa.displayName=At__namespace.Fallback.displayName;var Ga=it__namespace.Provider,$a=it__namespace.Root,Wa=it__namespace.Trigger,pa=$__namespace.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsxRuntime.jsx(it__namespace.Portal,{children:jsxRuntime.jsx(it__namespace.Content,{ref:r,sideOffset:t,className:o("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 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));pa.displayName=it__namespace.Content.displayName;var Ui=j__namespace.Root,uy=j__namespace.Group,Yi=j__namespace.Value,cn=$__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(j__namespace.Trigger,{ref:r,className:o("flex h-10 w-full 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 [&>span]:line-clamp-1",e),...a,children:[t,jsxRuntime.jsx(j__namespace.Icon,{asChild:true,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));cn.displayName=j__namespace.Trigger.displayName;var ji=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(j__namespace.ScrollUpButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}));ji.displayName=j__namespace.ScrollUpButton.displayName;var Xi=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(j__namespace.ScrollDownButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})}));Xi.displayName=j__namespace.ScrollDownButton.displayName;var mn=$__namespace.forwardRef(({className:e,children:t,position:a="popper",...r},n)=>jsxRuntime.jsx(j__namespace.Portal,{children:jsxRuntime.jsxs(j__namespace.Content,{ref:n,className:o("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...r,children:[jsxRuntime.jsx(ji,{}),jsxRuntime.jsx(j__namespace.Viewport,{className:o("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),jsxRuntime.jsx(Xi,{})]})}));mn.displayName=j__namespace.Content.displayName;var Cd=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(j__namespace.Label,{ref:a,className:o("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Cd.displayName=j__namespace.Label.displayName;var pn=$__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(j__namespace.Item,{ref:r,className:o("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(j__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),jsxRuntime.jsx(j__namespace.ItemText,{children:t})]}));pn.displayName=j__namespace.Item.displayName;var Sd=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(j__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Sd.displayName=j__namespace.Separator.displayName;var _a=U__namespace.Root,Ka=U__namespace.Trigger,vy=U__namespace.Group,hy=U__namespace.Portal,xy=U__namespace.Sub,yy=U__namespace.RadioGroup,Td=$__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(U__namespace.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto"})]}));Td.displayName=U__namespace.SubTrigger.displayName;var Md=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(U__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Md.displayName=U__namespace.SubContent.displayName;var fa=$__namespace.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsxRuntime.jsx(U__namespace.Portal,{children:jsxRuntime.jsx(U__namespace.Content,{ref:r,sideOffset:t,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));fa.displayName=U__namespace.Content.displayName;var xt=$__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(U__namespace.Item,{ref:r,className:o("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-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));xt.displayName=U__namespace.Item.displayName;var kd=$__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(U__namespace.CheckboxItem,{ref:n,className:o("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-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(U__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));kd.displayName=U__namespace.CheckboxItem.displayName;var Dd=$__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(U__namespace.RadioItem,{ref:r,className:o("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-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(U__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Dd.displayName=U__namespace.RadioItem.displayName;var Vd=$__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(U__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Vd.displayName=U__namespace.Label.displayName;var un=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(U__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));un.displayName=U__namespace.Separator.displayName;var Ld=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest opacity-60",e),...t});Ld.displayName="DropdownMenuShortcut";var ve=st__namespace.Root,Re=st__namespace.Trigger,Qi=st__namespace.Anchor,ue=$__namespace.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsxRuntime.jsx(st__namespace.Portal,{children:jsxRuntime.jsx(st__namespace.Content,{ref:n,align:t,sideOffset:a,className:o("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...r})}));ue.displayName=st__namespace.Content.displayName;var Hd=$__namespace.createContext({variant:"solid",radius:"md"}),Ad=()=>$__namespace.useContext(Hd),zd=$__namespace.forwardRef(({variant:e="solid",radius:t="md",...a},r)=>jsxRuntime.jsx(Hd.Provider,{value:{variant:e,radius:t},children:jsxRuntime.jsx(lt__namespace.Root,{ref:r,...a})}));zd.displayName="Tabs";var Ji={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"}},Bd=$__namespace.forwardRef(({className:e,...t},a)=>{let{variant:r,radius:n}=Ad(),i=$__namespace.useRef(null),[s,l]=$__namespace.useState({opacity:0});$__namespace.useEffect(()=>{let c=i.current;if(!c)return;let v=()=>{let h=c.querySelector('[data-state="active"]');if(h){let R=c.getBoundingClientRect(),f=h.getBoundingClientRect(),x=c.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(c).flexDirection==="column";r==="underline"?l(x?{width:2,height:f.height,transform:`translateY(${f.top-R.top}px)`,opacity:1}:{width:f.width,height:2,transform:`translateX(${f.left-R.left}px)`,opacity:1}):r==="solid"&&l(x?{width:f.width,height:f.height,transform:`translateY(${f.top-R.top}px)`,opacity:1}:{width:f.width,height:f.height,transform:`translateX(${f.left-R.left}px)`,opacity:1});}};v();let N=new MutationObserver(v);N.observe(c,{attributes:true,subtree:true,attributeFilter:["data-state"]});let b=new ResizeObserver(v);return b.observe(c),()=>{N.disconnect(),b.disconnect();}},[r]);let d={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"},m=()=>{let c=i.current;return c?c.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(c).flexDirection==="column":false},[u,p]=$__namespace.useState(false);$__namespace.useEffect(()=>{p(m());},[]);let g=()=>r==="solid"?u?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":r==="underline"?u?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxRuntime.jsxs(lt__namespace.List,{ref:c=>{if(i.current=c,typeof a=="function"?a(c):a&&(a.current=c),c){let v=c.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(c).flexDirection==="column";p(v);}},className:o("relative inline-flex h-9 items-center justify-center text-muted-foreground",Ji[n].list,d[r],e),...t,children:[(r==="solid"||r==="underline")&&jsxRuntime.jsx("span",{className:o("absolute transition-all duration-200 ease-out",Ji[n].indicator,g()),style:s,"aria-hidden":"true"}),t.children]})});Bd.displayName=lt__namespace.List.displayName;var Fd=$__namespace.forwardRef(({className:e,...t},a)=>{let{variant:r,radius:n}=Ad(),i={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(lt__namespace.Trigger,{ref:a,className:o("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",Ji[n].trigger,i[r],e),...t})});Fd.displayName=lt__namespace.Trigger.displayName;var Od=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(lt__namespace.Content,{ref:a,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 animate-in animate-out",e),...t}));Od.displayName=lt__namespace.Content.displayName;var ho=oe__namespace.Root,Py=oe__namespace.Trigger,Cy=oe__namespace.Close,Gd=oe__namespace.Portal,ts=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Overlay,{className:o("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),...t,ref:a}));ts.displayName=oe__namespace.Overlay.displayName;var $d=classVarianceAuthority.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),xr=$__namespace.forwardRef(({side:e="right",className:t,children:a,...r},n)=>jsxRuntime.jsxs(Gd,{children:[jsxRuntime.jsx(ts,{}),jsxRuntime.jsxs(oe__namespace.Content,{ref:n,className:o($d({side:e}),t),...r,children:[jsxRuntime.jsxs(oe__namespace.Close,{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 data-[state=open]:bg-secondary",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]}),a]})]}));xr.displayName=oe__namespace.Content.displayName;var Wd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});Wd.displayName="SheetHeader";var _d=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});_d.displayName="SheetFooter";var Kd=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Title,{ref:a,className:o("text-lg font-semibold text-foreground",e),...t}));Kd.displayName=oe__namespace.Title.displayName;var Ud=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));Ud.displayName=oe__namespace.Description.displayName;var My=({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 dt=$__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Ye__namespace.Root,{ref:r,className:o("relative overflow-hidden",e),...a,children:[jsxRuntime.jsx(Ye__namespace.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),jsxRuntime.jsx(rs,{}),jsxRuntime.jsx(Ye__namespace.Corner,{})]}));dt.displayName=Ye__namespace.Root.displayName;var rs=$__namespace.forwardRef(({className:e,orientation:t="vertical",...a},r)=>jsxRuntime.jsx(Ye__namespace.ScrollAreaScrollbar,{ref:r,orientation:t,className:o("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:jsxRuntime.jsx(Ye__namespace.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));rs.displayName=Ye__namespace.ScrollAreaScrollbar.displayName;var Ey=Y__namespace.Root,Hy=Y__namespace.Trigger,Ay=Y__namespace.Group,zy=Y__namespace.Portal,By=Y__namespace.Sub,Fy=Y__namespace.RadioGroup,Yd=$__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(Y__namespace.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Yd.displayName=Y__namespace.SubTrigger.displayName;var jd=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t}));jd.displayName=Y__namespace.SubContent.displayName;var Xd=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Portal,{children:jsxRuntime.jsx(Y__namespace.Content,{ref:a,className:o("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));Xd.displayName=Y__namespace.Content.displayName;var qd=$__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(Y__namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));qd.displayName=Y__namespace.Item.displayName;var Zd=$__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(Y__namespace.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Y__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));Zd.displayName=Y__namespace.CheckboxItem.displayName;var Qd=$__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Y__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Y__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-4 w-4 fill-current"})})}),t]}));Qd.displayName=Y__namespace.RadioItem.displayName;var Jd=$__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(Y__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...a}));Jd.displayName=Y__namespace.Label.displayName;var ec=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-border",e),...t}));ec.displayName=Y__namespace.Separator.displayName;var tc=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});tc.displayName="ContextMenuShortcut";var ac=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ba__namespace.Root,{className:o("grid gap-2",e),...t,ref:a}));ac.displayName=ba__namespace.Root.displayName;var rc=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ba__namespace.Item,{ref:a,className:o("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",e),...t,children:jsxRuntime.jsx(ba__namespace.Indicator,{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));rc.displayName=ba__namespace.Item.displayName;var gn=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md text-sm font-medium 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 [&_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"}}),nc=$__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx(is__namespace.Root,{ref:n,className:o(gn({variant:t,size:a,className:e})),...r}));nc.displayName=is__namespace.Root.displayName;var ic=$__namespace.createContext({size:"md",variant:"solid"}),sc=$__namespace.forwardRef(({className:e,variant:t,size:a,children:r,...n},i)=>jsxRuntime.jsx(yr__namespace.Root,{ref:i,className:o("flex items-center justify-center gap-1",e),...n,children:jsxRuntime.jsx(ic.Provider,{value:{variant:t,size:a},children:r})}));sc.displayName=yr__namespace.Root.displayName;var lc=$__namespace.forwardRef(({className:e,children:t,variant:a,size:r,...n},i)=>{let s=$__namespace.useContext(ic);return jsxRuntime.jsx(yr__namespace.Item,{ref:i,className:o(gn({variant:s.variant||a,size:s.size||r}),e),...n,children:t})});lc.displayName=yr__namespace.Item.displayName;var bn=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsxs(Ft__namespace.Root,{ref:a,className:o("relative flex w-full touch-none select-none items-center",e),...t,children:[jsxRuntime.jsx(Ft__namespace.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsxRuntime.jsx(Ft__namespace.Range,{className:"absolute h-full bg-primary"})}),jsxRuntime.jsx(Ft__namespace.Thumb,{className:"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 disabled:pointer-events-none disabled:opacity-50"})]}));bn.displayName=Ft__namespace.Root.displayName;var Ky=`
1
+ 'use strict';var K=require('react'),classVarianceAuthority=require('class-variance-authority'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),reactSlot=require('@radix-ui/react-slot'),lucideReact=require('lucide-react'),Ro=require('@radix-ui/react-checkbox'),ne=require('@radix-ui/react-dialog'),rs=require('@radix-ui/react-label'),Po=require('@radix-ui/react-separator'),Co=require('@radix-ui/react-switch'),Kt=require('@radix-ui/react-avatar'),gt=require('@radix-ui/react-tooltip'),Q=require('@radix-ui/react-select'),X=require('@radix-ui/react-dropdown-menu'),bt=require('@radix-ui/react-popover'),vt=require('@radix-ui/react-tabs'),sonner=require('sonner'),et=require('@radix-ui/react-scroll-area'),q=require('@radix-ui/react-context-menu'),Ta=require('@radix-ui/react-radio-group'),xs=require('@radix-ui/react-toggle'),Er=require('@radix-ui/react-toggle-group'),jt=require('@radix-ui/react-slider'),kt=require('@radix-ui/react-accordion'),ir=require('@radix-ui/react-collapsible'),ce=require('@radix-ui/react-alert-dialog'),Do=require('@radix-ui/react-progress'),lr=require('@radix-ui/react-hover-card'),Xc=require('@radix-ui/react-aspect-ratio'),he=require('@radix-ui/react-navigation-menu'),vaul=require('vaul'),reactDayPicker=require('react-day-picker'),cmdk=require('cmdk'),dateFns=require('date-fns'),reactResizablePanels=require('react-resizable-panels'),reactColorful=require('react-colorful'),Y=require('@radix-ui/react-menubar'),reactDom=require('react-dom'),Bg=require('@radix-ui/react-visually-hidden'),recharts=require('recharts'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),iC=require('embla-carousel-react'),react=require('@tiptap/react'),gC=require('@tiptap/starter-kit'),bC=require('@tiptap/extension-link'),vC=require('@tiptap/extension-underline'),hC=require('@tiptap/extension-text-align'),xC=require('@tiptap/extension-placeholder'),OC=require('react-image-crop');require('react-image-crop/dist/ReactCrop.css');var jC=require('react-qr-code'),nextThemes=require('next-themes'),framerMotion=require('framer-motion'),vo=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 K__namespace=/*#__PURE__*/_interopNamespace(K);var Ro__namespace=/*#__PURE__*/_interopNamespace(Ro);var ne__namespace=/*#__PURE__*/_interopNamespace(ne);var rs__namespace=/*#__PURE__*/_interopNamespace(rs);var Po__namespace=/*#__PURE__*/_interopNamespace(Po);var Co__namespace=/*#__PURE__*/_interopNamespace(Co);var Kt__namespace=/*#__PURE__*/_interopNamespace(Kt);var gt__namespace=/*#__PURE__*/_interopNamespace(gt);var Q__namespace=/*#__PURE__*/_interopNamespace(Q);var X__namespace=/*#__PURE__*/_interopNamespace(X);var bt__namespace=/*#__PURE__*/_interopNamespace(bt);var vt__namespace=/*#__PURE__*/_interopNamespace(vt);var et__namespace=/*#__PURE__*/_interopNamespace(et);var q__namespace=/*#__PURE__*/_interopNamespace(q);var Ta__namespace=/*#__PURE__*/_interopNamespace(Ta);var xs__namespace=/*#__PURE__*/_interopNamespace(xs);var Er__namespace=/*#__PURE__*/_interopNamespace(Er);var jt__namespace=/*#__PURE__*/_interopNamespace(jt);var kt__namespace=/*#__PURE__*/_interopNamespace(kt);var ir__namespace=/*#__PURE__*/_interopNamespace(ir);var ce__namespace=/*#__PURE__*/_interopNamespace(ce);var Do__namespace=/*#__PURE__*/_interopNamespace(Do);var lr__namespace=/*#__PURE__*/_interopNamespace(lr);var Xc__namespace=/*#__PURE__*/_interopNamespace(Xc);var he__namespace=/*#__PURE__*/_interopNamespace(he);var Y__namespace=/*#__PURE__*/_interopNamespace(Y);var Bg__namespace=/*#__PURE__*/_interopNamespace(Bg);var iC__default=/*#__PURE__*/_interopDefault(iC);var gC__default=/*#__PURE__*/_interopDefault(gC);var bC__default=/*#__PURE__*/_interopDefault(bC);var vC__default=/*#__PURE__*/_interopDefault(vC);var hC__default=/*#__PURE__*/_interopDefault(hC);var xC__default=/*#__PURE__*/_interopDefault(xC);var OC__default=/*#__PURE__*/_interopDefault(OC);var jC__default=/*#__PURE__*/_interopDefault(jC);var vo__default=/*#__PURE__*/_interopDefault(vo);function o(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var ty=classVarianceAuthority.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4",{variants:{variant:{solid:"border-transparent bg-primary text-primary-foreground [&>svg]:text-primary-foreground",outline:"border-input bg-transparent text-foreground [&>svg]:text-foreground",ghost:"border-transparent bg-transparent text-foreground [&>svg]:text-foreground",soft:"border-transparent bg-primary/15 text-primary [&>svg]:text-primary",surface:"border-transparent bg-muted text-muted-foreground [&>svg]:text-muted-foreground",destructive:"border-destructive/50 bg-destructive/10 text-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"solid"}}),ay=K__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,role:"alert",className:o(ty({variant:t}),e),...a}));ay.displayName="Alert";var ry=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("h5",{ref:a,className:o("mb-1 font-medium leading-none tracking-tight",e),...t}));ry.displayName="AlertTitle";var oy=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("text-sm [&_p]:leading-relaxed",e),...t}));oy.displayName="AlertDescription";var ny=classVarianceAuthority.cva("absolute rounded-full flex items-center justify-center font-semibold",{variants:{variant:{solid:"",bordered:"border-2"},color:{default:"",success:"",warning:"",danger:""},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:"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"},{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"}}),iy={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},sy=K__namespace.forwardRef(({className:e,children:t,content:a,variant:r="solid",color:n="default",size:i="md",placement:s="top-right",isDot:l=false,...d},m)=>jsxRuntime.jsxs("div",{ref:m,className:o("relative inline-flex",e),...d,children:[t,jsxRuntime.jsx("span",{className:o(ny({variant:r,color:n,size:l?void 0:i,placement:s}),l&&iy[i||"md"],l&&"min-w-0 p-0"),children:!l&&a})]}));sy.displayName="Badge";var ly=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"},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"}}),xo=K__namespace.forwardRef(({className:e,color:t,size:a,...r},n)=>jsxRuntime.jsx("span",{ref:n,className:o(ly({color:t,size:a}),e),...r}));xo.displayName="TextBadge";var Ee=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:""},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"}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md"}}),W=K__namespace.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,asChild:i=false,href:s,loading:l=false,startContent:d,endContent:m,children:p,disabled:c,style:g,...u},h)=>{let w=c||l,v=t==="bordered"?{borderColor:"currentColor",...g}:g,R=l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"animate-spin"}),p]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d,p,m]});return i?jsxRuntime.jsx(reactSlot.Slot,{className:o(Ee({variant:t,color:a,size:r,radius:n,className:e})),ref:h,style:v,...u,children:R}):s?jsxRuntime.jsx("a",{href:s,className:o(Ee({variant:t,color:a,size:r,radius:n,className:e}),w&&"pointer-events-none opacity-50"),style:v,...u,children:R}):jsxRuntime.jsx("button",{className:o(Ee({variant:t,color:a,size:r,radius:n,className:e})),ref:h,disabled:w,style:v,...u,children:R})});W.displayName="Button";var gd=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"}}),bd=K__namespace.forwardRef(({className:e,radius:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(gd({radius:t,className:e})),...a}));bd.displayName="Card";var vd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));vd.displayName="CardHeader";var hd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("p-6 pt-0",e),...t}));hd.displayName="CardContent";var xd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center p-6 pt-0",e),...t}));xd.displayName="CardFooter";var wo=K__namespace.forwardRef(({className:e,checked:t,onFocus:a,onBlur:r,style:n,...i},s)=>{let[l,d]=K__namespace.useState(false);return jsxRuntime.jsx(Ro__namespace.Root,{ref:s,checked:t,className:o("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 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-background data-[state=indeterminate]:text-foreground transition-colors",e),style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),a?.(m);},onBlur:m=>{d(false),r?.(m);},...i,children:jsxRuntime.jsx(Ro__namespace.Indicator,{className:o("flex items-center justify-center text-current"),children:t==="indeterminate"?jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})})});wo.displayName=Ro__namespace.Root.displayName;var ts=ne__namespace.Root,vy=ne__namespace.Trigger,yd=ne__namespace.Portal,hy=ne__namespace.Close,as=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Overlay,{ref:a,className:o("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),...t}));as.displayName=ne__namespace.Overlay.displayName;var gn=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(yd,{children:[jsxRuntime.jsx(as,{}),jsxRuntime.jsxs(ne__namespace.Content,{ref:r,className:o("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),...a,children:[t,jsxRuntime.jsxs(ne__namespace.Close,{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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));gn.displayName=ne__namespace.Content.displayName;var Rd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Rd.displayName="DialogHeader";var wd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});wd.displayName="DialogFooter";var Nd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));Nd.displayName=ne__namespace.Title.displayName;var Pd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));Pd.displayName=ne__namespace.Description.displayName;var yy=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"}}),vn=K__namespace.forwardRef(({className:e,type:t,radius:a,onFocus:r,onBlur:n,style:i,...s},l)=>{let[d,m]=K__namespace.useState(false);return jsxRuntime.jsx("input",{type:t,className:o(yy({radius:a,className:e})),ref:l,style:{...i,borderColor:d?"var(--color-foreground)":void 0},onFocus:p=>{m(true),r?.(p);},onBlur:p=>{m(false),n?.(p);},...s})});vn.displayName="Input";var Ny=classVarianceAuthority.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),qa=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(rs__namespace.Root,{ref:a,className:o(Ny(),e),...t}));qa.displayName=rs__namespace.Root.displayName;var wa=K__namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:a=true,text:r,...n},i)=>r&&t==="horizontal"?jsxRuntime.jsxs("div",{className:o("flex items-center gap-4",e),children:[jsxRuntime.jsx(Po__namespace.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:r}),jsxRuntime.jsx(Po__namespace.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n})]}):jsxRuntime.jsx(Po__namespace.Root,{ref:i,decorative:a,orientation:t,className:o("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));wa.displayName=Po__namespace.Root.displayName;var kd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Co__namespace.Root,{className:o("peer inline-flex h-6 w-11 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 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:a,children:jsxRuntime.jsx(Co__namespace.Thumb,{className:o("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));kd.displayName=Co__namespace.Root.displayName;var Ty=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"}}),Dd=K__namespace.forwardRef(({className:e,radius:t,onFocus:a,onBlur:r,style:n,...i},s)=>{let[l,d]=K__namespace.useState(false);return jsxRuntime.jsx("textarea",{className:o(Ty({radius:t,className:e})),ref:s,style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),a?.(m);},onBlur:m=>{d(false),r?.(m);},...i})});Dd.displayName="Textarea";var Vd=classVarianceAuthority.cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),yn=K__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(Vd({variant:t,className:e})),...a}));yn.displayName="Skeleton";var Vy=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"}}),Za=K__namespace.forwardRef(({className:e,size:t,radius:a,...r},n)=>jsxRuntime.jsx(Kt__namespace.Root,{ref:n,className:o(Vy({size:t,radius:a,className:e})),...r}));Za.displayName=Kt__namespace.Root.displayName;var Vr=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Kt__namespace.Image,{ref:a,className:o("aspect-square h-full w-full",e),...t}));Vr.displayName=Kt__namespace.Image.displayName;var Qa=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Kt__namespace.Fallback,{ref:a,className:o("flex h-full w-full items-center justify-center bg-muted",e),...t}));Qa.displayName=Kt__namespace.Fallback.displayName;var Ja=gt__namespace.Provider,er=gt__namespace.Root,tr=gt__namespace.Trigger,Na=K__namespace.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsxRuntime.jsx(gt__namespace.Portal,{children:jsxRuntime.jsx(gt__namespace.Content,{ref:r,sideOffset:t,className:o("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 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Na.displayName=gt__namespace.Content.displayName;var ns=Q__namespace.Root,Hy=Q__namespace.Group,is=Q__namespace.Value,wn=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Q__namespace.Trigger,{ref:r,className:o("flex h-10 w-full 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 [&>span]:line-clamp-1",e),...a,children:[t,jsxRuntime.jsx(Q__namespace.Icon,{asChild:true,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));wn.displayName=Q__namespace.Trigger.displayName;var ss=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Q__namespace.ScrollUpButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}));ss.displayName=Q__namespace.ScrollUpButton.displayName;var ls=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Q__namespace.ScrollDownButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})}));ls.displayName=Q__namespace.ScrollDownButton.displayName;var Nn=K__namespace.forwardRef(({className:e,children:t,position:a="popper",...r},n)=>jsxRuntime.jsx(Q__namespace.Portal,{children:jsxRuntime.jsxs(Q__namespace.Content,{ref:n,className:o("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...r,children:[jsxRuntime.jsx(ss,{}),jsxRuntime.jsx(Q__namespace.Viewport,{className:o("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),jsxRuntime.jsx(ls,{})]})}));Nn.displayName=Q__namespace.Content.displayName;var Ad=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Q__namespace.Label,{ref:a,className:o("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Ad.displayName=Q__namespace.Label.displayName;var Pn=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Q__namespace.Item,{ref:r,className:o("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Q__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),jsxRuntime.jsx(Q__namespace.ItemText,{children:t})]}));Pn.displayName=Q__namespace.Item.displayName;var zd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Q__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));zd.displayName=Q__namespace.Separator.displayName;var ar=X__namespace.Root,rr=X__namespace.Trigger,By=X__namespace.Group,Oy=X__namespace.Portal,Gy=X__namespace.Sub,Wy=X__namespace.RadioGroup,Fd=K__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(X__namespace.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto"})]}));Fd.displayName=X__namespace.SubTrigger.displayName;var Bd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(X__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Bd.displayName=X__namespace.SubContent.displayName;var Ca=K__namespace.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsxRuntime.jsx(X__namespace.Portal,{children:jsxRuntime.jsx(X__namespace.Content,{ref:r,sideOffset:t,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ca.displayName=X__namespace.Content.displayName;var Mt=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(X__namespace.Item,{ref:r,className:o("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-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Mt.displayName=X__namespace.Item.displayName;var Od=K__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(X__namespace.CheckboxItem,{ref:n,className:o("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-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(X__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));Od.displayName=X__namespace.CheckboxItem.displayName;var Gd=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(X__namespace.RadioItem,{ref:r,className:o("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-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(X__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Gd.displayName=X__namespace.RadioItem.displayName;var Wd=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(X__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Wd.displayName=X__namespace.Label.displayName;var Cn=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(X__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Cn.displayName=X__namespace.Separator.displayName;var $d=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest opacity-60",e),...t});$d.displayName="DropdownMenuShortcut";var ye=bt__namespace.Root,Pe=bt__namespace.Trigger,ms=bt__namespace.Anchor,ve=K__namespace.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsxRuntime.jsx(bt__namespace.Portal,{children:jsxRuntime.jsx(bt__namespace.Content,{ref:n,align:t,sideOffset:a,className:o("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...r})}));ve.displayName=bt__namespace.Content.displayName;var Ud=K__namespace.createContext({variant:"solid",radius:"md"}),Yd=()=>K__namespace.useContext(Ud),jd=K__namespace.forwardRef(({variant:e="solid",radius:t="md",...a},r)=>jsxRuntime.jsx(Ud.Provider,{value:{variant:e,radius:t},children:jsxRuntime.jsx(vt__namespace.Root,{ref:r,...a})}));jd.displayName="Tabs";var us={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"}},Xd=K__namespace.forwardRef(({className:e,...t},a)=>{let{variant:r,radius:n}=Yd(),i=K__namespace.useRef(null),[s,l]=K__namespace.useState({opacity:0});K__namespace.useEffect(()=>{let u=i.current;if(!u)return;let h=()=>{let v=u.querySelector('[data-state="active"]');if(v){let R=u.getBoundingClientRect(),f=v.getBoundingClientRect(),x=u.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(u).flexDirection==="column";r==="underline"?l(x?{width:2,height:f.height,transform:`translateY(${f.top-R.top}px)`,opacity:1}:{width:f.width,height:2,transform:`translateX(${f.left-R.left}px)`,opacity:1}):r==="solid"&&l(x?{width:f.width,height:f.height,transform:`translateY(${f.top-R.top}px)`,opacity:1}:{width:f.width,height:f.height,transform:`translateX(${f.left-R.left}px)`,opacity:1});}};h();let w=new MutationObserver(h);w.observe(u,{attributes:true,subtree:true,attributeFilter:["data-state"]});let b=new ResizeObserver(h);return b.observe(u),()=>{w.disconnect(),b.disconnect();}},[r]);let d={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"},m=()=>{let u=i.current;return u?u.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(u).flexDirection==="column":false},[p,c]=K__namespace.useState(false);K__namespace.useEffect(()=>{c(m());},[]);let g=()=>r==="solid"?p?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":r==="underline"?p?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxRuntime.jsxs(vt__namespace.List,{ref:u=>{if(i.current=u,typeof a=="function"?a(u):a&&(a.current=u),u){let h=u.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(u).flexDirection==="column";c(h);}},className:o("relative inline-flex h-9 items-center justify-center text-muted-foreground",us[n].list,d[r],e),...t,children:[(r==="solid"||r==="underline")&&jsxRuntime.jsx("span",{className:o("absolute transition-all duration-200 ease-out",us[n].indicator,g()),style:s,"aria-hidden":"true"}),t.children]})});Xd.displayName=vt__namespace.List.displayName;var qd=K__namespace.forwardRef(({className:e,...t},a)=>{let{variant:r,radius:n}=Yd(),i={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(vt__namespace.Trigger,{ref:a,className:o("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",us[n].trigger,i[r],e),...t})});qd.displayName=vt__namespace.Trigger.displayName;var Zd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vt__namespace.Content,{ref:a,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 animate-in animate-out",e),...t}));Zd.displayName=vt__namespace.Content.displayName;var Mo=ne__namespace.Root,Uy=ne__namespace.Trigger,Yy=ne__namespace.Close,Qd=ne__namespace.Portal,fs=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Overlay,{className:o("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),...t,ref:a}));fs.displayName=ne__namespace.Overlay.displayName;var Jd=classVarianceAuthority.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ir=K__namespace.forwardRef(({side:e="right",className:t,children:a,...r},n)=>jsxRuntime.jsxs(Qd,{children:[jsxRuntime.jsx(fs,{}),jsxRuntime.jsxs(ne__namespace.Content,{ref:n,className:o(Jd({side:e}),t),...r,children:[jsxRuntime.jsxs(ne__namespace.Close,{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 data-[state=open]:bg-secondary",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]}),a]})]}));Ir.displayName=ne__namespace.Content.displayName;var ec=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});ec.displayName="SheetHeader";var tc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});tc.displayName="SheetFooter";var ac=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Title,{ref:a,className:o("text-lg font-semibold text-foreground",e),...t}));ac.displayName=ne__namespace.Title.displayName;var rc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));rc.displayName=ne__namespace.Description.displayName;var qy=({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 ht=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(et__namespace.Root,{ref:r,className:o("relative overflow-hidden group/scroll",e),...a,children:[jsxRuntime.jsx(et__namespace.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),jsxRuntime.jsx(bs,{}),jsxRuntime.jsx(et__namespace.Corner,{})]}));ht.displayName=et__namespace.Root.displayName;var bs=K__namespace.forwardRef(({className:e,orientation:t="vertical",...a},r)=>jsxRuntime.jsx(et__namespace.ScrollAreaScrollbar,{ref:r,orientation:t,className:o("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2 flex-col border-t border-t-transparent p-[1px]",e),...a,children:jsxRuntime.jsx(et__namespace.ScrollAreaThumb,{className:o("relative flex-1 rounded-full transition-colors","bg-transparent group-hover/scroll:bg-border hover:!bg-muted-foreground")})}));bs.displayName=et__namespace.ScrollAreaScrollbar.displayName;var aR=q__namespace.Root,rR=q__namespace.Trigger,oR=q__namespace.Group,nR=q__namespace.Portal,iR=q__namespace.Sub,sR=q__namespace.RadioGroup,oc=K__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(q__namespace.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));oc.displayName=q__namespace.SubTrigger.displayName;var nc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(q__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t}));nc.displayName=q__namespace.SubContent.displayName;var ic=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(q__namespace.Portal,{children:jsxRuntime.jsx(q__namespace.Content,{ref:a,className:o("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));ic.displayName=q__namespace.Content.displayName;var sc=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(q__namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));sc.displayName=q__namespace.Item.displayName;var lc=K__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(q__namespace.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(q__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));lc.displayName=q__namespace.CheckboxItem.displayName;var dc=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(q__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(q__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-4 w-4 fill-current"})})}),t]}));dc.displayName=q__namespace.RadioItem.displayName;var cc=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(q__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...a}));cc.displayName=q__namespace.Label.displayName;var mc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(q__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-border",e),...t}));mc.displayName=q__namespace.Separator.displayName;var uc=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});uc.displayName="ContextMenuShortcut";var pc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Ta__namespace.Root,{className:o("grid gap-2",e),...t,ref:a}));pc.displayName=Ta__namespace.Root.displayName;var fc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Ta__namespace.Item,{ref:a,className:o("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",e),...t,children:jsxRuntime.jsx(Ta__namespace.Indicator,{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));fc.displayName=Ta__namespace.Item.displayName;var Tn=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md text-sm font-medium 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 [&_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"}}),bc=K__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx(xs__namespace.Root,{ref:n,className:o(Tn({variant:t,size:a,className:e})),...r}));bc.displayName=xs__namespace.Root.displayName;var vc=K__namespace.createContext({size:"md",variant:"solid"}),hc=K__namespace.forwardRef(({className:e,variant:t,size:a,children:r,...n},i)=>jsxRuntime.jsx(Er__namespace.Root,{ref:i,className:o("flex items-center justify-center gap-1",e),...n,children:jsxRuntime.jsx(vc.Provider,{value:{variant:t,size:a},children:r})}));hc.displayName=Er__namespace.Root.displayName;var xc=K__namespace.forwardRef(({className:e,children:t,variant:a,size:r,...n},i)=>{let s=K__namespace.useContext(vc);return jsxRuntime.jsx(Er__namespace.Item,{ref:i,className:o(Tn({variant:s.variant||a,size:s.size||r}),e),...n,children:t})});xc.displayName=Er__namespace.Item.displayName;var Mn=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsxs(jt__namespace.Root,{ref:a,className:o("relative flex w-full touch-none select-none items-center",e),...t,children:[jsxRuntime.jsx(jt__namespace.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsxRuntime.jsx(jt__namespace.Range,{className:"absolute h-full bg-primary"})}),jsxRuntime.jsx(jt__namespace.Thumb,{className:"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 disabled:pointer-events-none disabled:opacity-50"})]}));Mn.displayName=jt__namespace.Root.displayName;var pR=`
2
2
  @keyframes accordion-down {
3
3
  from { height: 0; opacity: 0; }
4
4
  to { height: var(--radix-accordion-content-height); opacity: 1; }
@@ -13,7 +13,7 @@
13
13
  .accordion-content[data-state="closed"] {
14
14
  animation: accordion-up 0.2s ease-out;
15
15
  }
16
- `,cc=false,Uy=()=>{if(cc||typeof document>"u")return;let e=document.createElement("style");e.textContent=Ky,document.head.appendChild(e),cc=true;},mc=({className:e,...t})=>($__namespace.useEffect(()=>{Uy();},[]),jsxRuntime.jsx(yt__namespace.Root,{className:o("w-full",e),...t}));mc.displayName="Accordion";var Yy=mc,pc=$__namespace.forwardRef(({className:e,title:t,subtitle:a,startContent:r,children:n,...i},s)=>jsxRuntime.jsxs(yt__namespace.Item,{ref:s,className:o("border-b data-[disabled]:opacity-50",e),...i,children:[jsxRuntime.jsx(yt__namespace.Header,{className:"flex",children:jsxRuntime.jsxs(yt__namespace.Trigger,{className:"flex flex-1 items-center justify-between py-4 font-medium transition-all text-left cursor-pointer [&[data-state=open]>svg]:rotate-180 disabled:pointer-events-none disabled:opacity-50",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[r,jsxRuntime.jsxs("div",{className:"flex flex-col items-start",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:t}),a&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:a})]})]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}),jsxRuntime.jsx(yt__namespace.Content,{className:"accordion-content overflow-hidden text-sm",children:jsxRuntime.jsx("div",{className:"pb-4 pt-0",children:n})})]}));pc.displayName="AccordionItem";var jy=`
16
+ `,Rc=false,fR=()=>{if(Rc||typeof document>"u")return;let e=document.createElement("style");e.textContent=pR,document.head.appendChild(e),Rc=true;},wc=({className:e,...t})=>(K__namespace.useEffect(()=>{fR();},[]),jsxRuntime.jsx(kt__namespace.Root,{className:o("w-full",e),...t}));wc.displayName="Accordion";var gR=wc,Nc=K__namespace.forwardRef(({className:e,title:t,subtitle:a,startContent:r,children:n,...i},s)=>jsxRuntime.jsxs(kt__namespace.Item,{ref:s,className:o("border-b data-[disabled]:opacity-50",e),...i,children:[jsxRuntime.jsx(kt__namespace.Header,{className:"flex",children:jsxRuntime.jsxs(kt__namespace.Trigger,{className:"flex flex-1 items-center justify-between py-4 font-medium transition-all text-left cursor-pointer [&[data-state=open]>svg]:rotate-180 disabled:pointer-events-none disabled:opacity-50",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[r,jsxRuntime.jsxs("div",{className:"flex flex-col items-start",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:t}),a&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:a})]})]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}),jsxRuntime.jsx(kt__namespace.Content,{className:"accordion-content overflow-hidden text-sm",children:jsxRuntime.jsx("div",{className:"pb-4 pt-0",children:n})})]}));Nc.displayName="AccordionItem";var bR=`
17
17
  @keyframes collapsible-down {
18
18
  from { height: 0; opacity: 0; }
19
19
  to { height: var(--radix-collapsible-content-height); opacity: 1; }
@@ -28,7 +28,7 @@
28
28
  .collapsible-content[data-state="closed"] {
29
29
  animation: collapsible-up 0.2s ease-out;
30
30
  }
31
- `,uc=false,Xy=()=>{if(uc||typeof document>"u")return;let e=document.createElement("style");e.textContent=jy,document.head.appendChild(e),uc=true;},bc=$__namespace.forwardRef(({className:e,title:t,children:a,...r},n)=>($__namespace.useEffect(()=>{Xy();},[]),jsxRuntime.jsxs(ja__namespace.Root,{ref:n,className:o("space-y-2",e),...r,children:[t&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between space-x-4 px-4",children:[jsxRuntime.jsx("h4",{className:"text-sm font-semibold",children:t}),jsxRuntime.jsx(ja__namespace.CollapsibleTrigger,{className:"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",children:jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})})]}),a]})));bc.displayName="Collapsible";var vc=$__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx(ja__namespace.CollapsibleTrigger,{ref:r,className:o("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",e),...a,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})}));vc.displayName="CollapsibleTrigger";var hc=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ja__namespace.CollapsibleContent,{ref:a,className:o("collapsible-content overflow-hidden",e),...t}));hc.displayName="CollapsibleContent";var qy=le__namespace.Root,Zy=le__namespace.Trigger,xc=le__namespace.Portal,ds=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__namespace.Overlay,{className:o("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),...t,ref:a}));ds.displayName=le__namespace.Overlay.displayName;var yc=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsxs(xc,{children:[jsxRuntime.jsx(ds,{}),jsxRuntime.jsx(le__namespace.Content,{ref:a,className:o("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),...t})]}));yc.displayName=le__namespace.Content.displayName;var Rc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});Rc.displayName="AlertDialogHeader";var wc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});wc.displayName="AlertDialogFooter";var Nc=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__namespace.Title,{ref:a,className:o("text-lg font-semibold",e),...t}));Nc.displayName=le__namespace.Title.displayName;var Pc=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));Pc.displayName=le__namespace.Description.displayName;var Cc=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__namespace.Action,{ref:a,className:o(Me(),e),...t}));Cc.displayName=le__namespace.Action.displayName;var Sc=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__namespace.Cancel,{ref:a,className:o(Me({variant:"bordered"}),"mt-2 sm:mt-0",e),...t}));Sc.displayName=le__namespace.Cancel.displayName;var xn=$__namespace.forwardRef(({className:e,value:t,...a},r)=>jsxRuntime.jsx(yo__namespace.Root,{ref:r,className:o("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:jsxRuntime.jsx(yo__namespace.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));xn.displayName=yo__namespace.Root.displayName;var Jy=qa__namespace.Root,eR=qa__namespace.Trigger,Dc=$__namespace.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsxRuntime.jsx(qa__namespace.Content,{ref:n,align:t,sideOffset:a,className:o("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Dc.displayName=qa__namespace.Content.displayName;var Vc=$__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Vc.displayName="Breadcrumb";var Lc=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ol",{ref:a,className:o("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Lc.displayName="BreadcrumbList";var Ic=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,className:o("inline-flex items-center gap-1.5",e),...t}));Ic.displayName="BreadcrumbItem";var Ec=$__namespace.forwardRef(({asChild:e,className:t,...a},r)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:r,className:o("transition-colors hover:text-foreground",t),...a}));Ec.displayName="BreadcrumbLink";var Hc=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:o("font-normal text-foreground",e),...t}));Hc.displayName="BreadcrumbPage";var Ac=({children:e,className:t,...a})=>jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:o("[&>svg]:h-3.5 [&>svg]:w-3.5",t),...a,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})});Ac.displayName="BreadcrumbSeparator";var zc=({className:e,...t})=>jsxRuntime.jsxs("span",{role:"presentation","aria-hidden":"true",className:o("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"})]});zc.displayName="BreadcrumbEllipsis";var iR=Bc__namespace.Root;var Fc=$__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(fe__namespace.Root,{ref:r,className:o("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[t,jsxRuntime.jsx(cs,{})]}));Fc.displayName=fe__namespace.Root.displayName;var Oc=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fe__namespace.List,{ref:a,className:o("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));Oc.displayName=fe__namespace.List.displayName;var dR=fe__namespace.Item,Gc=classVarianceAuthority.cva("group inline-flex h-10 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-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),$c=$__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(fe__namespace.Trigger,{ref:r,className:o(Gc(),"group",e),...a,children:[t," ",jsxRuntime.jsx(lucideReact.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));$c.displayName=fe__namespace.Trigger.displayName;var Wc=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fe__namespace.Content,{ref:a,className:o("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));Wc.displayName=fe__namespace.Content.displayName;var cR=fe__namespace.Link,cs=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{className:o("absolute left-0 top-full flex justify-center"),children:jsxRuntime.jsx(fe__namespace.Viewport,{className:o("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:a,...t})}));cs.displayName=fe__namespace.Viewport.displayName;var _c=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fe__namespace.Indicator,{ref:a,className:o("top-full z-[1] flex h-1.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"})}));_c.displayName=fe__namespace.Indicator.displayName;var Yc=({shouldScaleBackground:e=true,...t})=>jsxRuntime.jsx(vaul.Drawer.Root,{shouldScaleBackground:e,...t});Yc.displayName="Drawer";var mR=vaul.Drawer.Trigger,jc=vaul.Drawer.Portal,pR=vaul.Drawer.Close,ms=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Overlay,{ref:a,className:o("fixed inset-0 z-50 bg-black/80",e),...t}));ms.displayName=vaul.Drawer.Overlay.displayName;var Xc=$__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(jc,{children:[jsxRuntime.jsx(ms,{}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:r,className:o("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...a,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Xc.displayName="DrawerContent";var qc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("grid gap-1.5 p-4 text-center sm:text-left",e),...t});qc.displayName="DrawerHeader";var Zc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("mt-auto flex flex-col gap-2 p-4",e),...t});Zc.displayName="DrawerFooter";var Qc=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));Qc.displayName=vaul.Drawer.Title.displayName;var Jc=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));Jc.displayName=vaul.Drawer.Description.displayName;var em=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:a,className:o("w-full caption-bottom text-sm",e),...t})}));em.displayName="Table";var tm=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("thead",{ref:a,className:o("[&_tr]:border-b",e),...t}));tm.displayName="TableHeader";var am=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tbody",{ref:a,className:o("[&_tr:last-child]:border-0",e),...t}));am.displayName="TableBody";var rm=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tfoot",{ref:a,className:o("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));rm.displayName="TableFooter";var om=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tr",{ref:a,className:o("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));om.displayName="TableRow";var nm=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("th",{ref:a,className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));nm.displayName="TableHead";var im=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("td",{ref:a,className:o("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));im.displayName="TableCell";var sm=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("caption",{ref:a,className:o("mt-4 text-sm text-muted-foreground",e),...t}));sm.displayName="TableCaption";var dm=classVarianceAuthority.cva("animate-spin text-muted-foreground",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),cm=$__namespace.forwardRef(({className:e,size:t,...a},r)=>jsxRuntime.jsx(lucideReact.Loader2,{ref:r,className:o(dm({size:t,className:e})),...a}));cm.displayName="Spinner";function Pr({className:e,classNames:t,showOutsideDays:a=true,...r}){return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:a,className:o("p-3",e),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-4",month_caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",button_previous:o(Me({variant:"bordered"}),"absolute left-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),button_next:o(Me({variant:"bordered"}),"absolute right-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),month_grid:"w-full border-collapse space-y-1",weekdays:"flex",weekday:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",week:"flex w-full mt-2",day:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day_button:o(Me({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),range_end:"day-range-end",selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",today:"bg-accent text-accent-foreground",outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",disabled:"text-muted-foreground opacity-50",range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",hidden:"invisible",...t},components:{Chevron:({orientation:n})=>n==="left"?jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})},...r})}Pr.displayName="Calendar";var mm=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:o("mx-auto flex w-full justify-center",e),...t});mm.displayName="Pagination";var pm=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,className:o("flex flex-row items-center gap-1",e),...t}));pm.displayName="PaginationContent";var um=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,className:o("",e),...t}));um.displayName="PaginationItem";var yn=({className:e,isActive:t,size:a="icon",...r})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:o(Me({variant:t?"bordered":"ghost",size:a}),e),...r});yn.displayName="PaginationLink";var fm=({className:e,...t})=>jsxRuntime.jsxs(yn,{"aria-label":"Go to previous page",size:"md",className:o("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 gm=({className:e,...t})=>jsxRuntime.jsxs(yn,{"aria-label":"Go to next page",size:"md",className:o("gap-1 pr-2.5",e),...t,children:[jsxRuntime.jsx("span",{children:"Next"}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})]});gm.displayName="PaginationNext";var bm=({className:e,...t})=>jsxRuntime.jsxs("span",{"aria-hidden":true,className:o("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"})]});bm.displayName="PaginationEllipsis";var gs=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command,{ref:a,className:o("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));gs.displayName=cmdk.Command.displayName;var NR=({children:e,...t})=>jsxRuntime.jsx($i,{...t,children:jsxRuntime.jsx(on,{className:"overflow-hidden p-0 shadow-lg",children:jsxRuntime.jsx(gs,{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})})}),vm=$__namespace.forwardRef(({className:e,...t},a)=>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:a,className:o("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})]}));vm.displayName=cmdk.Command.Input.displayName;var hm=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.List,{ref:a,className:o("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));hm.displayName=cmdk.Command.List.displayName;var xm=$__namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));xm.displayName=cmdk.Command.Empty.displayName;var ym=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:a,className:o("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}));ym.displayName=cmdk.Command.Group.displayName;var Rm=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:a,className:o("-mx-1 h-px bg-border",e),...t}));Rm.displayName=cmdk.Command.Separator.displayName;var wm=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Item,{ref:a,className:o("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}));wm.displayName=cmdk.Command.Item.displayName;var Nm=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Nm.displayName="CommandShortcut";var Pm=$__namespace.forwardRef(({className:e,showToggle:t=true,disabled:a,...r},n)=>{let[i,s]=$__namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:i?"text":"password",className:o("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 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",t&&"pr-10",e),ref:n,disabled:a,...r}),t&&jsxRuntime.jsx(O,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-10 w-10 px-3 hover:bg-transparent",onClick:()=>s(!i),disabled:a,tabIndex:-1,"aria-label":i?"Hide password":"Show password",children:i?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4 text-muted-foreground"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4 text-muted-foreground"})})]})});Pm.displayName="PasswordInput";var Cm=$__namespace.forwardRef(({className:e,showButtons:t=true,step:a=1,min:r,max:n,value:i,defaultValue:s,onChange:l,disabled:d,...m},u)=>{let[p,g]=$__namespace.useState(s),c=i!==void 0,v=c?i:p,N=y=>{y!==void 0&&(r!==void 0&&y<r&&(y=r),n!==void 0&&y>n&&(y=n)),c||g(y),l?.(y);},b=()=>{N((v??0)+a);},h=()=>{N((v??0)-a);},R=y=>{let S=y.target.value;if(S==="")N(void 0);else {let T=parseFloat(S);isNaN(T)||N(T);}},f=y=>{y.key==="ArrowUp"?(y.preventDefault(),b()):y.key==="ArrowDown"&&(y.preventDefault(),h());},x=r===void 0||(v??0)>r,C=n===void 0||(v??0)<n;return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[t&&jsxRuntime.jsx(O,{type:"button",variant:"bordered",size:"icon",className:"h-10 w-10 rounded-r-none border-r-0",onClick:h,disabled:d||!x,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:o("flex h-10 w-full bg-background px-3 py-2 text-sm text-center 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",t?"border-y border-input rounded-none":"border border-input rounded-md",e),ref:u,value:v??"",onChange:R,onKeyDown:f,disabled:d,...m}),t&&jsxRuntime.jsx(O,{type:"button",variant:"bordered",size:"icon",className:"h-10 w-10 rounded-l-none border-l-0",onClick:b,disabled:d||!C,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]})});Cm.displayName="NumberInput";var Sm=$__namespace.forwardRef(({options:e,value:t,defaultValue:a=[],onValueChange:r,placeholder:n="Select items...",searchPlaceholder:i="Search...",emptyText:s="No items found.",maxItems:l,showCount:d=false,disabled:m=false,className:u},p)=>{let[g,c]=$__namespace.useState(false),[v,N]=$__namespace.useState(""),[b,h]=$__namespace.useState(a),R=t!==void 0,f=R?t:b,x=w=>{R||h(w),r?.(w);},C=w=>{let P=f.includes(w)?f.filter(D=>D!==w):l&&f.length>=l?f:[...f,w];x(P);},y=w=>{x(f.filter(P=>P!==w));},S=()=>{x([]);},T=e.filter(w=>f.includes(w.value)),k=e.filter(w=>w.label.toLowerCase().includes(v.toLowerCase()));return jsxRuntime.jsxs(ve,{open:g,onOpenChange:c,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{ref:p,variant:"bordered",role:"combobox","aria-expanded":g,disabled:m,className:o("w-full justify-between h-auto min-h-10",f.length>0?"px-2 py-1.5":"px-3 py-2",u),children:[f.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground font-normal",children:n}):d?jsxRuntime.jsxs("span",{className:"font-normal",children:[f.length," selected"]}):jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1",children:T.map(w=>jsxRuntime.jsxs(lo,{className:"mr-1",children:[w.label,jsxRuntime.jsx("button",{type:"button",className:"ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",onKeyDown:P=>{P.key==="Enter"&&(P.preventDefault(),P.stopPropagation(),y(w.value));},onMouseDown:P=>{P.preventDefault(),P.stopPropagation();},onClick:P=>{P.preventDefault(),P.stopPropagation(),y(w.value);},children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},w.value))}),jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),jsxRuntime.jsx(ue,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-md",children:[jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3",children:[jsxRuntime.jsx(cmdk.Command.Input,{value:v,onValueChange:N,placeholder:i,className:"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),f.length>0&&jsxRuntime.jsx("button",{type:"button",onClick:S,className:"ml-2 text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),jsxRuntime.jsxs(cmdk.Command.List,{className:"max-h-[200px] overflow-y-auto p-1",children:[k.length===0&&jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:s}),k.map(w=>{let P=f.includes(w.value),D=w.disabled||!P&&l!==void 0&&f.length>=l;return jsxRuntime.jsxs(cmdk.Command.Item,{value:w.value,disabled:D,onSelect:()=>C(w.value),className:o("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("div",{className:o("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",P?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),w.label]},w.value)})]})]})})]})});Sm.displayName="MultiSelect";var Tm=$__namespace.forwardRef(({options:e,value:t,defaultValue:a="",onValueChange:r,placeholder:n="Select...",searchPlaceholder:i="Search...",emptyText:s="No results found.",disabled:l=false,clearable:d=false,className:m},u)=>{let[p,g]=$__namespace.useState(false),[c,v]=$__namespace.useState(""),[N,b]=$__namespace.useState(a),h=t!==void 0,R=h?t:N,f=S=>{h||b(S),r?.(S);},x=S=>{f(d&&R===S?"":S),g(false),v("");},C=e.find(S=>S.value===R),y=e.filter(S=>S.label.toLowerCase().includes(c.toLowerCase()));return jsxRuntime.jsxs(ve,{open:p,onOpenChange:g,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{ref:u,variant:"bordered",role:"combobox","aria-expanded":p,disabled:l,className:o("w-full justify-between font-normal",!R&&"text-muted-foreground",m),children:[C?C.label:n,jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),jsxRuntime.jsx(ue,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-md",children:[jsxRuntime.jsx("div",{className:"flex items-center border-b px-3",children:jsxRuntime.jsx(cmdk.Command.Input,{value:c,onValueChange:v,placeholder:i,className:"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"})}),jsxRuntime.jsxs(cmdk.Command.List,{className:"max-h-[200px] overflow-y-auto p-1",children:[y.length===0&&jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:s}),y.map(S=>jsxRuntime.jsxs(cmdk.Command.Item,{value:S.value,disabled:S.disabled,onSelect:()=>x(S.value),className:o("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:o("mr-2 h-4 w-4",R===S.value?"opacity-100":"opacity-0")}),S.label]},S.value))]})]})})]})});Tm.displayName="Combobox";var km=$__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:a,placeholder:r="Pick a date",dateFormat:n="PPP",disabled:i=false,minDate:s,maxDate:l,className:d},m)=>{let[u,p]=$__namespace.useState(false),[g,c]=$__namespace.useState(t),v=e!==void 0,N=v?e:g,b=h=>{v||c(h),a?.(h),p(false);};return jsxRuntime.jsxs(ve,{open:u,onOpenChange:p,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{ref:m,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!N&&"text-muted-foreground",d),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),N?dateFns.format(N,n):r]})}),jsxRuntime.jsx(ue,{className:"w-auto p-0",align:"start",children:jsxRuntime.jsx(Pr,{mode:"single",selected:N,onSelect:b,disabled:h=>!!(s&&h<s||l&&h>l),initialFocus:true})})]})});km.displayName="DatePicker";var Im=classVarianceAuthority.cva("flex -space-x-2",{variants:{size:{sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3"}},defaultVariants:{size:"md"}}),Dm=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"}}),Em=$__namespace.forwardRef(({className:e,items:t,max:a=5,size:r,showTooltips:n=false,...i},s)=>{let l=t.slice(0,a),d=t.length-a,m=(p,g)=>{let c=jsxRuntime.jsxs(Fa,{className:o(Dm({size:r})),children:[p.src&&jsxRuntime.jsx(hr,{src:p.src,alt:p.alt||""}),jsxRuntime.jsx(Oa,{className:"text-xs",children:p.fallback||p.alt?.charAt(0)?.toUpperCase()||"?"})]},g);return n&&p.alt?jsxRuntime.jsxs($a,{children:[jsxRuntime.jsx(Wa,{asChild:true,children:c}),jsxRuntime.jsx(pa,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:p.alt})]},g):c},u=jsxRuntime.jsxs("div",{ref:s,className:o(Im({size:r,className:e})),...i,children:[l.map((p,g)=>m(p,g)),d>0&&jsxRuntime.jsx(Fa,{className:o(Dm({size:r})),children:jsxRuntime.jsxs(Oa,{className:"bg-muted text-muted-foreground",children:["+",d]})})]});return n?jsxRuntime.jsx(Ga,{delayDuration:300,children:u}):u});Em.displayName="AvatarGroup";var Hm=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"}}),Am=$__namespace.forwardRef(({className:e,value:t,defaultValue:a=0,onValueChange:r,max:n=5,size:i,icon:s="star",allowHalf:l=false,readOnly:d=false,disabled:m=false,filledColor:u,emptyColor:p,...g},c)=>{let[v,N]=$__namespace.useState(a),[b,h]=$__namespace.useState(null),R=t!==void 0,f=R?t:v,x=b!==null?b:f,C=M=>{d||m||(R||N(M),r?.(M));},y=(M,I=false)=>{let L=l&&I?M+.5:M+1;C(L);},S=(M,I)=>{if(d||m)return;let L=M.currentTarget.getBoundingClientRect(),V=l&&M.clientX<L.left+L.width/2;h(V?I+.5:I+1);},T=()=>{h(null);},k=s==="heart"?lucideReact.Heart:lucideReact.Star,w=M=>x>=M+1?"full":x>=M+.5?"half":"empty",P=u?{color:u,fill:u}:{},D=p?{color:p}:{};return jsxRuntime.jsx("div",{ref:c,className:o(Hm({size:i,className:e}),m&&"opacity-50 cursor-not-allowed"),onMouseLeave:T,role:"radiogroup","aria-label":"Rating",...g,children:Array.from({length:n},(M,I)=>{let L=w(I);return jsxRuntime.jsxs("button",{type:"button",className:o("relative focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",!d&&!m&&"cursor-pointer hover:scale-110 transition-transform"),onClick:V=>{let E=V.currentTarget.getBoundingClientRect(),A=l&&V.clientX<E.left+E.width/2;y(I,A);},onMouseMove:V=>S(V,I),disabled:m||d,"aria-label":`Rate ${I+1} out of ${n}`,role:"radio","aria-checked":f===I+1,children:[jsxRuntime.jsx(k,{className:o("text-muted-foreground/30",L!=="empty"&&"absolute inset-0"),style:L==="empty"?D:void 0}),L!=="empty"&&jsxRuntime.jsx(k,{className:o("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",L==="half"&&"clip-path-half"),style:{...P,clipPath:L==="half"?"inset(0 50% 0 0)":void 0}})]},I)})})});Am.displayName="Rating";var _R="16rem",KR="18rem",UR="3rem",YR="b",hs=$__namespace.createContext(null);function Mn(){let e=$__namespace.useContext(hs);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function xs(){return $__namespace.useContext(hs)}var Bm=$__namespace.forwardRef(({defaultOpen:e=true,open:t,onOpenChange:a,className:r,style:n,children:i,...s},l)=>{let[d,m]=$__namespace.useState(false),[u,p]=$__namespace.useState(false),[g,c]=$__namespace.useState(e),v=t??g,N=$__namespace.useCallback(f=>{let x=typeof f=="function"?f(v):f;a?a(x):c(x);},[a,v]);$__namespace.useEffect(()=>{let f=()=>{m(window.innerWidth<768);};return f(),window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[]);let b=$__namespace.useCallback(()=>d?p(f=>!f):N(f=>!f),[d,N,p]);$__namespace.useEffect(()=>{let f=x=>{x.key===YR&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),b());};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[b]);let h=v?"expanded":"collapsed",R=$__namespace.useMemo(()=>({state:h,open:v,setOpen:N,isMobile:d,openMobile:u,setOpenMobile:p,toggleSidebar:b}),[h,v,N,d,u,p,b]);return jsxRuntime.jsx(hs.Provider,{value:R,children:jsxRuntime.jsx(Ga,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:l,style:{"--sidebar-width":_R,"--sidebar-width-icon":UR,...n},className:o("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),...s,children:i})})})});Bm.displayName="SidebarProvider";var Fm=$__namespace.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",embedded:r=false,resizable:n=false,minWidth:i=200,maxWidth:s=480,defaultWidth:l=256,onWidthChange:d,className:m,children:u,...p},g)=>{let[c,v]=$__namespace.useState(l),[N,b]=$__namespace.useState(false),h=$__namespace.useRef(null),R=$__namespace.useCallback(S=>{S.preventDefault(),b(true);},[]);if($__namespace.useEffect(()=>{if(!N)return;let S=k=>{if(!h.current)return;let w=h.current.getBoundingClientRect(),P;e==="left"?P=k.clientX-w.left:P=w.right-k.clientX,P=Math.max(i,Math.min(s,P)),v(P),d?.(P);},T=()=>{b(false);};return document.addEventListener("mousemove",S),document.addEventListener("mouseup",T),()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",T);}},[N,e,i,s,d]),a==="none"){if(n){let S={width:`${c}px`,minWidth:`${i}px`,maxWidth:`${s}px`};return jsxRuntime.jsxs("div",{ref:T=>{typeof g=="function"?g(T):g&&(g.current=T),h.current=T;},className:o("relative text-sidebar-foreground h-full min-h-0",N&&"select-none"),"data-sidebar":"sidebar-wrapper","data-resizing":N,children:[jsxRuntime.jsx("div",{className:o("flex h-full min-h-0 flex-col bg-sidebar overflow-hidden",!N&&"transition-all duration-200 ease-in-out",e==="left"&&"border-r-0",e==="right"&&"border-l-0",m),style:S,...p,children:u}),jsxRuntime.jsx("div",{onMouseDown:R,className:o("absolute top-0 bottom-0 z-20 w-1 cursor-ew-resize",e==="left"?"right-0":"left-0"),"data-sidebar":"resize-handle",children:jsxRuntime.jsx("div",{className:o("absolute top-0 bottom-0 w-px transition-colors",e==="left"?"right-0":"left-0","bg-sidebar-border")})})]})}return jsxRuntime.jsx("div",{ref:g,className:o("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",m),style:{"--sidebar-width":"16rem"},...p,children:u})}let{isMobile:f,state:x,openMobile:C,setOpenMobile:y}=Mn();if(f&&!r)return jsxRuntime.jsx(ho,{open:C,onOpenChange:y,children:jsxRuntime.jsx(xr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":KR},side:e,children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:u})})});if(r){let S=x==="collapsed",T=a==="offcanvas",k=a==="icon",w=n&&!S&&!k?{width:`${c}px`,minWidth:`${i}px`,maxWidth:`${s}px`}:void 0;return jsxRuntime.jsxs("div",{ref:P=>{typeof g=="function"?g(P):g&&(g.current=P),h.current=P;},className:o("group peer text-sidebar-foreground relative",N&&"select-none"),"data-state":x,"data-collapsible":S?a:"","data-variant":t,"data-side":e,"data-embedded":"true","data-resizing":N,children:[jsxRuntime.jsx("div",{className:o("flex h-full flex-col overflow-hidden",!N&&"transition-[width,opacity] duration-200 ease-out",!n&&(T?S?"w-0 opacity-0":"w-[--sidebar-width] opacity-100":k&&S?"w-[--sidebar-width-icon]":"w-[--sidebar-width]"),n&&T&&S&&"w-0 opacity-0",n&&k&&S&&"w-[--sidebar-width-icon]",m),style:w,...p,children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:o("flex h-full w-full flex-col bg-sidebar transition-opacity duration-200",t==="floating"&&"overflow-hidden rounded-lg border border-sidebar-border shadow-sm",t==="inset"&&"overflow-hidden rounded-lg border border-sidebar-border",t==="sidebar"&&e==="left"&&!n&&"border-r",t==="sidebar"&&e==="right"&&!n&&"border-l"),children:u})}),n&&!S&&jsxRuntime.jsx("div",{onMouseDown:R,className:o("absolute top-0 bottom-0 z-20 w-1 cursor-ew-resize",e==="left"?"right-0":"left-0"),"data-sidebar":"resize-handle",children:jsxRuntime.jsx("div",{className:o("absolute top-0 bottom-0 w-px transition-colors",e==="left"?"right-0":"left-0","bg-sidebar-border")})})]})}return jsxRuntime.jsxs("div",{ref:g,className:"group peer hidden md:block text-sidebar-foreground","data-state":x,"data-collapsible":x==="collapsed"?a:"","data-variant":t,"data-side":e,children:[jsxRuntime.jsx("div",{className:o("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),jsxRuntime.jsx("div",{className:o("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",m),...p,children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:o("flex h-full w-full flex-col bg-sidebar",t==="floating"&&"overflow-hidden rounded-lg border border-sidebar-border shadow-sm",t==="inset"&&"overflow-hidden rounded-lg border border-sidebar-border"),children:u})})]})});Fm.displayName="Sidebar";var Om=$__namespace.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:n}=Mn();return jsxRuntime.jsxs("button",{ref:r,type:"button","data-sidebar":"trigger",className:o("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",e),onClick:i=>{t?.(i),n();},...a,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Om.displayName="SidebarTrigger";var jR=$__namespace.forwardRef(({className:e,onClick:t,showLabel:a=true,...r},n)=>{let i=xs();if(!i)return null;let{toggleSidebar:s,state:l}=i,d=l==="collapsed";return jsxRuntime.jsxs("button",{ref:n,type:"button","data-sidebar":"toggle","data-state":l,className:o("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-sidebar-foreground/70","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",e),onClick:m=>{t?.(m),s();},...r,children:[d?jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(lucideReact.PanelLeftClose,{className:"h-4 w-4 shrink-0"}),a&&jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:d?"Expand":"Collapse"})]})});jR.displayName="SidebarToggle";var XR=$__namespace.forwardRef(({className:e,onClick:t,expandedLabel:a="Collapse",collapsedLabel:r="Expand",...n},i)=>{let s=xs();if(!s)return null;let{toggleSidebar:l,state:d}=s,m=d==="collapsed";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{ref:i,type:"button","data-sidebar":"toggle","data-state":d,className:o("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-sidebar-foreground/70","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:hidden",e),onClick:u=>{t?.(u),l();},...n,children:[m?jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(lucideReact.PanelLeftClose,{className:"h-4 w-4 shrink-0"}),jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:m?r:a})]}),jsxRuntime.jsxs("button",{type:"button","data-sidebar":"floating-toggle","data-state":d,className:o("fixed left-3 bottom-4 z-50 flex items-center justify-center h-10 w-10 rounded-lg","bg-sidebar border border-sidebar-border shadow-md","text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-all duration-200 cursor-pointer","opacity-0 pointer-events-none scale-90","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:opacity-100","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:pointer-events-auto","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:scale-100"),onClick:u=>{t?.(u),l();},children:[jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:r})]})]})});XR.displayName="SidebarPersistentToggle";var Gm=$__namespace.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=Mn();return jsxRuntime.jsx("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:o("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Gm.displayName="SidebarRail";var $m=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("main",{ref:a,className:o("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}));$m.displayName="SidebarInset";var Wm=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"header",className:o("flex flex-col gap-2 p-2",e),...t}));Wm.displayName="SidebarHeader";var _m=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"footer",className:o("flex flex-col gap-2 p-2",e),...t}));_m.displayName="SidebarFooter";var Km=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"separator",className:o("mx-2 h-px w-auto bg-sidebar-border",e),...t}));Km.displayName="SidebarSeparator";var Um=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"content",className:o("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Um.displayName="SidebarContent";var Ym=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"group",className:o("relative flex w-full min-w-0 flex-col p-2",e),...t}));Ym.displayName="SidebarGroup";var jm=$__namespace.forwardRef(({className:e,asChild:t=false,...a},r)=>jsxRuntime.jsx(t?reactSlot.Slot:"div",{ref:r,"data-sidebar":"group-label",className:o("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));jm.displayName="SidebarGroupLabel";var Xm=$__namespace.forwardRef(({className:e,asChild:t=false,...a},r)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:r,"data-sidebar":"group-action",className:o("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));Xm.displayName="SidebarGroupAction";var qm=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"group-content",className:o("w-full text-sm",e),...t}));qm.displayName="SidebarGroupContent";var Zm=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,"data-sidebar":"menu",className:o("flex w-full min-w-0 flex-col gap-1",e),...t}));Zm.displayName="SidebarMenu";var Qm=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,"data-sidebar":"menu-item",className:o("group/menu-item relative",e),...t}));Qm.displayName="SidebarMenuItem";var Jm=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-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-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:{solid:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",ghost:"hover:bg-sidebar-accent/50 hover:text-sidebar-accent-foreground",soft:"hover:bg-primary/10 hover:text-primary",surface:"bg-sidebar-accent/30 hover:bg-sidebar-accent hover:text-sidebar-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:"solid",size:"md"}}),ep=$__namespace.forwardRef(({asChild:e=false,isActive:t=false,variant:a="solid",size:r="md",tooltip:n,className:i,...s},l)=>{let d=e?reactSlot.Slot:"button",m=xs(),u=m?.isMobile??false,p=m?.state??"expanded",g=jsxRuntime.jsx(d,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:o(Jm({variant:a,size:r}),i),...s});return n?(typeof n=="string"&&(n={children:n}),jsxRuntime.jsxs($a,{children:[jsxRuntime.jsx(Wa,{asChild:true,children:g}),jsxRuntime.jsx(pa,{side:"right",align:"center",hidden:p!=="collapsed"||u,...n})]})):g});ep.displayName="SidebarMenuButton";var tp=$__namespace.forwardRef(({className:e,asChild:t=false,showOnHover:a=false,...r},n)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:n,"data-sidebar":"menu-action",className:o("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r}));tp.displayName="SidebarMenuAction";var ap=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"menu-badge",className:o("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));ap.displayName="SidebarMenuBadge";var rp=$__namespace.forwardRef(({className:e,showIcon:t=false,...a},r)=>{let n=$__namespace.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:o("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&jsxRuntime.jsx("div",{className:"size-4 rounded-md bg-sidebar-accent animate-pulse"}),jsxRuntime.jsx("div",{className:"h-4 flex-1 max-w-[--skeleton-width] bg-sidebar-accent animate-pulse rounded-md",style:{"--skeleton-width":n}})]})});rp.displayName="SidebarMenuSkeleton";var op=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,"data-sidebar":"menu-sub",className:o("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));op.displayName="SidebarMenuSub";var np=$__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("li",{ref:t,...e}));np.displayName="SidebarMenuSubItem";var ip=$__namespace.forwardRef(({asChild:e=false,size:t="md",isActive:a,className:r,...n},i)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:o("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...n}));ip.displayName="SidebarMenuSubButton";var dp=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}}),QR=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"}}),cp=$__namespace.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,clickable:i,startContent:s,endContent:l,closable:d,onClose:m,disabled:u,avatar:p,children:g,onClick:c,...v},N)=>{let b=i||!!c,h=R=>{R.stopPropagation(),m?.();};return jsxRuntime.jsxs("div",{ref:N,role:b?"button":void 0,tabIndex:b&&!u?0:void 0,"aria-disabled":u,onClick:u?void 0:c,onKeyDown:b&&!u?R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),c?.(R));}:void 0,className:o(dp({variant:t,color:a,size:r,radius:n,clickable:b}),u&&"opacity-50 cursor-not-allowed",e),...v,children:[p&&jsxRuntime.jsx("span",{className:"-ml-1 [&>*]:size-5 [&>*]:rounded-full",children:p}),s&&jsxRuntime.jsx("span",{className:"shrink-0",children:s}),jsxRuntime.jsx("span",{className:"truncate",children:g}),l&&jsxRuntime.jsx("span",{className:"shrink-0",children:l}),d&&jsxRuntime.jsx("button",{type:"button","aria-label":"Remove",onClick:h,disabled:u,className:o(QR({size:r})),children:jsxRuntime.jsx(lucideReact.X,{})})]})});cp.displayName="Chip";var mp=$.createContext({direction:"horizontal"}),i0=({className:e,direction:t="horizontal",children:a,...r})=>jsxRuntime.jsx(mp.Provider,{value:{direction:t},children:jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:o("flex h-full w-full data-[orientation=vertical]:flex-col",e),...r,children:a})}),s0=reactResizablePanels.Panel,l0=({withHandle:e,className:t,...a})=>{let{direction:r}=$.useContext(mp),n=r==="vertical";return jsxRuntime.jsx(reactResizablePanels.Separator,{className:o("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),...a,children:e&&jsxRuntime.jsx("div",{className:o("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:a=3,...r},n)=>jsxRuntime.jsx("span",{ref:n,role:"status","aria-label":"Loading",className:o(fp({size:t,className:e})),...r,children:Array.from({length:a}).map((i,s)=>jsxRuntime.jsx("span",{className:"rounded-full bg-current animate-dots-bounce",style:{animationDelay:`${s*.16}s`}},s))}));gp.displayName="Dots";var vp=classVarianceAuthority.cva("",{variants:{size:{sm:"h-4 w-4",md:"h-8 w-8",lg:"h-12 w-12",xl:"h-16 w-16"}},defaultVariants:{size:"md"}}),hp=$__namespace.forwardRef(({className:e,size:t,value:a,strokeWidth:r=4,showValue:n=false,label:i,...s},l)=>{let d=a===void 0,m=50-r/2,u=2*Math.PI*m,p=d?0:u-Math.min(100,Math.max(0,a))/100*u;return jsxRuntime.jsxs("svg",{ref:l,viewBox:"0 0 100 100",className:o(vp({size:t,className:e}),d&&"animate-spin"),role:"progressbar","aria-valuenow":d?void 0:a,"aria-valuemin":0,"aria-valuemax":100,...s,children:[jsxRuntime.jsx("circle",{cx:"50",cy:"50",r:m,fill:"none",stroke:"currentColor",strokeWidth:r,className:"text-muted opacity-20"}),jsxRuntime.jsx("circle",{cx:"50",cy:"50",r:m,fill:"none",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeDasharray:u,strokeDashoffset:d?u*.75:p,className:"text-primary transition-[stroke-dashoffset] duration-300 ease-in-out",style:{transformOrigin:"center",transform:"rotate(-90deg)"}}),n&&!d&&jsxRuntime.jsx("text",{x:"50",y:"50",textAnchor:"middle",dominantBaseline:"central",className:"fill-current text-[0.65rem] font-medium",children:i??`${Math.round(a)}%`})]})});hp.displayName="CircularProgress";var xp=$__namespace.createContext(null),f0=()=>{let e=$__namespace.useContext(xp);if(!e)throw new Error("OTP components must be used within InputOTP");return e},yp=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"}}),Rp=$__namespace.forwardRef(({className:e,containerClassName:t,maxLength:a,value:r,defaultValue:n="",onChange:i,onComplete:s,pattern:l,disabled:d=false,size:m,children:u,...p},g)=>{let[c,v]=$__namespace.useState(n),[N,b]=$__namespace.useState(0),[h,R]=$__namespace.useState(false),f=$__namespace.useRef(null),x=r!==void 0?r:c;$__namespace.useImperativeHandle(g,()=>f.current),$__namespace.useEffect(()=>{b(Math.min(x.length,a-1));},[x,a]),$__namespace.useEffect(()=>{x.length===a&&s&&s(x);},[x,a,s]);let C=P=>{let D=P.target.value;if(l&&D){let M=new RegExp(l.replace("^","").replace("$","").replace("+",""));D=D.split("").filter(I=>M.test(I)).join("");}D=D.slice(0,a),r===void 0&&v(D),i?.(D);},y=P=>{P.key==="ArrowLeft"?b(D=>Math.max(0,D-1)):P.key==="ArrowRight"&&b(D=>Math.min(x.length,a-1,D+1));},S=()=>{f.current?.focus();},T=()=>{R(true),b(Math.min(x.length,a-1));},k=()=>{R(false);},w={value:x,activeIndex:h?N:-1,maxLength:a,disabled:d};return jsxRuntime.jsx(xp.Provider,{value:w,children:jsxRuntime.jsxs("div",{className:o(yp({size:m}),t),onClick:S,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:f,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:x,onChange:C,onKeyDown:y,onFocus:T,onBlur:k,disabled:d,maxLength:a,className:o("absolute opacity-0 pointer-events-none w-0 h-0",e),...p}),u]})})});Rp.displayName="InputOTP";var wp=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center",e),...t}));wp.displayName="InputOTPGroup";var Np=$__namespace.forwardRef(({index:e,className:t,...a},r)=>{let{value:n,activeIndex:i,disabled:s}=f0(),l=n[e]||"",d=i===e,m=d&&n.length===e;return jsxRuntime.jsxs("div",{ref:r,"data-otp-slot":true,"data-active":d,"data-filled":!!l,className:o("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",d&&"z-10 ring-2 ring-ring ring-offset-background",s&&"cursor-not-allowed opacity-50",t),...a,children:[l,m&&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 Pp=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,role:"separator",className:o("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));Pp.displayName="InputOTPSeparator";var Tp=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-full text-xs font-medium transition-colors",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-transparent",ghost:"bg-transparent text-foreground",soft:"bg-primary/15 text-primary",surface:"bg-muted text-muted-foreground"},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:"soft",size:"md"}}),Mp=$__namespace.forwardRef(({className:e,variant:t,size:a,value:r=[],onChange:n,placeholder:i="Add tag...",maxTags:s,minTagLength:l=1,maxTagLength:d=50,triggerKeys:m=["Enter",",","Tab"],allowDuplicates:u=false,disabled:p,readOnly:g,renderTag:c,...v},N)=>{let[b,h]=$__namespace.useState(""),R=$__namespace.useRef(null);$__namespace.useImperativeHandle(N,()=>R.current);let f=w=>{let P=w.trim();if(P.length<l||P.length>d||s&&r.length>=s||!u&&r.some(M=>M.text.toLowerCase()===P.toLowerCase()))return;let D={id:crypto.randomUUID(),text:P};n?.([...r,D]),h("");},x=w=>{p||g||n?.(r.filter(P=>P.id!==w));},C=w=>{if(m.includes(w.key)){if(w.key==="Tab"&&!b)return;w.preventDefault(),f(b);}w.key==="Backspace"&&!b&&r.length>0&&x(r[r.length-1].id);},y=w=>{let P=w.target.value;if(P.includes(",")){P.split(",").forEach(M=>{M.trim()&&f(M);});return}h(P);},S=w=>{w.preventDefault(),w.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(M=>{f(M);});},T=()=>{R.current?.focus();},k=s?r.length>=s:false;return jsxRuntime.jsxs("div",{className:o("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",p&&"cursor-not-allowed opacity-50",e),onClick:T,children:[r.map(w=>c?c(w,()=>x(w.id)):jsxRuntime.jsxs("span",{className:o(Tp({variant:t,size:a})),children:[w.text,!p&&!g&&jsxRuntime.jsx("button",{type:"button",onClick:P=>{P.stopPropagation(),x(w.id);},className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${w.text}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},w.id)),!k&&!g&&jsxRuntime.jsx("input",{ref:R,type:"text",value:b,onChange:y,onKeyDown:C,onPaste:S,placeholder:r.length===0?i:"",disabled:p,className:o("flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed","min-w-[80px]"),...v})]})});Mp.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"}}),Vp=$__namespace.forwardRef(({className:e,size:t,icon:a,title:r,description:n,action:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o(Dp({size:t,className:e})),...l,children:[a&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:a}),r&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:r}),n&&jsxRuntime.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i}),s]}));Vp.displayName="EmptyState";var Ip=classVarianceAuthority.cva("rounded-lg border bg-card p-6 text-card-foreground shadow-sm",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-transparent",ghost:"border-transparent shadow-none",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-muted"}},defaultVariants:{variant:"outline"}}),Ep=$__namespace.forwardRef(({className:e,variant:t,label:a,value:r,icon:n,trend:i,trendValue:s,description:l,...d},m)=>{let u=i==="up"?lucideReact.TrendingUp:i==="down"?lucideReact.TrendingDown:lucideReact.Minus,p=i==="up"?"text-green-500":i==="down"?"text-red-500":"text-muted-foreground";return jsxRuntime.jsxs("div",{ref:m,className:o(Ip({variant:t,className:e})),...d,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:a}),n&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-4 [&>svg]:w-4",children:n})]}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[jsxRuntime.jsx("p",{className:"text-2xl font-bold",children:r}),i&&s&&jsxRuntime.jsxs("span",{className:o("flex items-center gap-0.5 text-sm",p),children:[jsxRuntime.jsx(u,{className:"h-3 w-3"}),s]})]}),l&&jsxRuntime.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:l})]})});Ep.displayName="StatCard";var Ap=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"",bordered:"divide-y divide-border rounded-lg border",striped:"[&>*:nth-child(odd)]:bg-muted/50"},size:{sm:"gap-1 [&>*]:py-2 [&>*]:px-3",md:"gap-2 [&>*]:py-3 [&>*]:px-4",lg:"gap-3 [&>*]:py-4 [&>*]:px-5"}},defaultVariants:{variant:"default",size:"md"}}),zp=$__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx("div",{ref:n,role:"list",className:o(Ap({variant:t,size:a,className:e})),...r}));zp.displayName="List";var Bp=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),Fp=$__namespace.forwardRef(({className:e,interactive:t,leading:a,trailing:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:o(Bp({interactive:t,className:e})),...i,children:[a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:a}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]}));Fp.displayName="ListItem";var Op=$__namespace.forwardRef(({className:e,primary:t,secondary:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("min-w-0",e),...n,children:[t&&jsxRuntime.jsx("p",{className:"text-sm font-medium leading-none truncate",children:t}),a&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:a}),r]}));Op.displayName="ListItemText";var Wp=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),_p=$__namespace.forwardRef(({className:e,position:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,"data-position":t,className:o(Wp({position:t,className:e})),...a}));_p.displayName="Timeline";var Kp=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"}}),Up=$__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(Kp({variant:t,className:e})),...a}));Up.displayName="TimelineItem";var Yp=$__namespace.forwardRef(({className:e,dot:t,showConnector:a=true,...r},n)=>jsxRuntime.jsxs("div",{ref:n,className:o("flex flex-col items-center",e),...r,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:t}),a&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}));Yp.displayName="TimelineSeparator";var jp=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 pt-0.5",e),...t}));jp.displayName="TimelineContent";var Xp=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));Xp.displayName="TimelineOpposite";var Zp=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 data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm",{variants:{size:{sm:"h-6 text-xs px-2.5",md:"h-8 text-sm px-3",lg:"h-10 text-base px-4"}},defaultVariants:{size:"md"}}),Jp=$__namespace.createContext({}),eu=$__namespace.forwardRef(({className:e,size:t,fullWidth:a,children:r,...n},i)=>jsxRuntime.jsx(yr__namespace.Root,{ref:i,type:"single",rovingFocus:false,className:o(Zp({size:t,fullWidth:a,className:e})),...n,children:jsxRuntime.jsx(Jp.Provider,{value:{size:t??"md"},children:r})}));eu.displayName="SegmentedControl";var tu=$__namespace.forwardRef(({className:e,children:t,...a},r)=>{let{size:n}=$__namespace.useContext(Jp);return jsxRuntime.jsx(yr__namespace.Item,{ref:r,className:o(Qp({size:n}),"flex-1",e),...a,children:t})});tu.displayName="SegmentedControlItem";var au=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"}}),ru=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},In=e=>{if(e===0)return "0 Bytes";let t=1024,a=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+a[r]},ou=(e,t,a)=>{let r=[];return t&&e.size>t&&r.push({code:"file-too-large",message:`File is larger than ${In(t)}`}),a&&a.length>0&&(a.some(i=>{if(i.startsWith("."))return e.name.toLowerCase().endsWith(i.toLowerCase());if(i.endsWith("/*")){let s=i.slice(0,-2);return e.type.startsWith(s)}return e.type===i})||r.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${a.join(", ")}`})),r},nu=$__namespace.forwardRef(({className:e,variant:t,size:a,onFilesChange:r,onFilesRejected:n,onFileRemove:i,files:s=[],showFileList:l=true,children:d,maxSize:m=10*1024*1024,accept:u,multiple:p=true,disabled:g,...c},v)=>{let[N,b]=$__namespace.useState(false),[h,R]=$__namespace.useState(false),[f,x]=$__namespace.useState([]),C=$__namespace.useRef(null),y=$__namespace.useCallback(V=>{if(!V||V.length===0)return;let E=Array.from(V),A=[],B=[];(p?E:[E[0]]).forEach(Q=>{let te=ou(Q,m,u);te.length>0?B.push({file:Q,errors:te}):A.push(Q);}),x(B),A.length>0&&r?.(A),B.length>0&&n?.(B);},[m,u,p,r,n]),S=$__namespace.useCallback(V=>{if(V.preventDefault(),V.stopPropagation(),!g&&(b(true),V.dataTransfer.items)){let A=Array.from(V.dataTransfer.items).some(B=>{if(B.kind!=="file")return true;if(u&&u.length>0){let H=B.type;return !u.some(Q=>Q.endsWith("/*")?H.startsWith(Q.slice(0,-2)):H===Q)}return false});R(A);}},[g,u]),T=$__namespace.useCallback(V=>{V.preventDefault(),V.stopPropagation(),!g&&(V.dataTransfer.dropEffect="copy");},[g]),k=$__namespace.useCallback(V=>{V.preventDefault(),V.stopPropagation();let E=V.currentTarget.getBoundingClientRect(),A=V.clientX,B=V.clientY;(A<E.left||A>E.right||B<E.top||B>E.bottom)&&(b(false),R(false));},[]),w=$__namespace.useCallback(V=>{V.preventDefault(),V.stopPropagation(),b(false),R(false),!g&&y(V.dataTransfer.files);},[g,y]),P=$__namespace.useCallback(()=>{g||C.current?.click();},[g]),D=$__namespace.useCallback(V=>{y(V.target.files),V.target.value="";},[y]),M=$__namespace.useCallback(V=>{g||(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),C.current?.click());},[g]),I=h?"error":N?"active":t,L=u?.join(",");return jsxRuntime.jsxs("div",{ref:v,className:o("space-y-4",e),...c,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:g?-1:0,onDragEnter:S,onDragOver:T,onDragLeave:k,onDrop:w,onClick:P,onKeyDown:M,className:o(au({variant:I,size:a}),g&&"opacity-50 cursor-not-allowed",!g&&"cursor-pointer focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),"aria-disabled":g,children:[jsxRuntime.jsx("input",{ref:C,type:"file",accept:L,multiple:p,disabled:g,onChange:D,className:"sr-only",tabIndex:-1}),d||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:N?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[m&&`Max ${In(m)}`,u&&u.length>0&&` \u2022 ${u.join(", ")}`]})]})]})]}),f.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:f.map(({file:V,errors:E})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:V.name}),":"," ",E.map(A=>A.message).join(", ")]},V.name))}),l&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(V=>{let E=ru(V.file);return jsxRuntime.jsxs("div",{className:o("flex items-center gap-3 rounded-lg border p-3",V.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(E,{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:V.file.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[In(V.file.size),V.error&&jsxRuntime.jsx("span",{className:"ml-2 text-danger",children:V.error})]}),V.progress!==void 0&&V.progress<100&&jsxRuntime.jsx(xn,{value:V.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs(O,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:A=>{A.stopPropagation(),i?.(V.file);},children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]},V.id)})})]})});nu.displayName="FileUpload";var lu=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}}),E0=`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")`,Lr=$__namespace.forwardRef(({color:e,isSelected:t,showTransparency:a=true,onSelect:r,size:n,shape:i,interactive:s,className:l,onClick:d,disabled:m,...u},p)=>jsxRuntime.jsx("button",{ref:p,type:"button",disabled:m,onClick:v=>{d?.(v),r?.(e);},className:o(lu({size:n,shape:i,interactive:s??(!!r||!!d)}),t&&"ring-2 ring-ring ring-offset-2",l),style:{backgroundImage:a?E0:void 0,backgroundSize:a?"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}})}));Lr.displayName="ColorSwatch";var z0=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],B0={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},du=$__namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:a,disabled:r,presets:n=z0,showInput:i=true,size:s="md",className:l},d)=>{let[m,u]=$__namespace.useState(e??t);$__namespace.useEffect(()=>{e!==void 0&&u(e);},[e]);let p=c=>{u(c),a?.(c);},g=c=>{u(c),a?.(c);};return jsxRuntime.jsxs(ve,{children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsx("button",{ref:d,disabled:r,className:o("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",B0[s],l),style:{backgroundColor:m},"aria-label":`Color picker, current color: ${m}`})}),jsxRuntime.jsx(ue,{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]"}),i&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(Ba,{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(Ba,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(c=>jsxRuntime.jsx(Lr,{color:c,size:"sm",isSelected:m.toLowerCase()===c.toLowerCase(),onSelect:g},c))})]})]})})]})});du.displayName="ColorPicker";var cu=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"}}),Ns=e=>String(e).padStart(2,"0"),W0=e=>{let[t,a]=e.split(":").map(Number);return {hours:t||0,minutes:a||0}},_0=(e,t)=>`${Ns(e)}:${Ns(t)}`,mu=$__namespace.forwardRef(({className:e,size:t,value:a,onChange:r,use24Hour:n=true,minuteStep:i=1,showPicker:s=true,minTime:l,maxTime:d,disabled:m,...u},p)=>{let[g,c]=$__namespace.useState(a??""),[v,N]=$__namespace.useState(false);$__namespace.useEffect(()=>{a!==void 0&&c(a);},[a]);let{hours:b,minutes:h}=W0(g||"00:00"),R=k=>{let w=k.target.value;c(w),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(w)&&r?.(w);},f=(k,w)=>{let P=Math.max(0,Math.min(23,k)),D=Math.max(0,Math.min(59,w)),M=_0(P,D);c(M),r?.(M);},x=()=>f(b+1,h),C=()=>f(b-1,h),y=()=>f(b,h+i),S=()=>f(b,h-i),T=({value:k,onIncrement:w,onDecrement:P})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx(O,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:w,disabled:m,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:Ns(k)}),jsxRuntime.jsx(O,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:P,disabled:m,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})})]});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[jsxRuntime.jsx("input",{ref:p,type:"time",value:g,onChange:R,disabled:m,className:o(cu({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...u}),s&&jsxRuntime.jsxs(ve,{open:v,onOpenChange:N,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{type:"button",variant:"ghost",size:"sm",className:"absolute right-1 h-7 w-7 p-0",disabled:m,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Pick time"})]})}),jsxRuntime.jsxs(ue,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(T,{value:b,onIncrement:x,onDecrement:C,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(T,{value:h,onIncrement:y,onDecrement:S,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx(O,{variant:"bordered",size:"sm",onClick:()=>{let k=new Date;f(k.getHours(),k.getMinutes());},children:"Now"}),jsxRuntime.jsx(O,{size:"sm",onClick:()=>N(false),children:"Done"})]})]})]})]})});mu.displayName="TimeInput";var pu=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"}}),U0=(e,t)=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0).find(i=>i.type==="currency")?.value??e}catch{return e}},Ps=(e,t,a,r)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,a);return s?`${l}${r}${s}`:l},uu=(e,t,a)=>{if(!e)return;let r=e.replace(new RegExp(`\\${t}`,"g"),"");r=r.replace(a,"."),r=r.replace(/[^0-9.-]/g,"");let n=parseFloat(r);return isNaN(n)?void 0:n},fu=$__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r,onChange:n,currency:i="USD",locale:s="en-US",decimals:l=2,min:d,max:m,showCurrency:u=true,currencyPosition:p="prefix",currencySymbol:g,thousandSeparator:c=",",decimalSeparator:v=".",disabled:N,placeholder:b,...h},R)=>{let[f,x]=$__namespace.useState(r),[C,y]=$__namespace.useState(""),[S,T]=$__namespace.useState(false),k=a!==void 0?a:f,w=g??U0(i,s);$__namespace.useEffect(()=>{!S&&k!==void 0&&y(Ps(k,l,c,v));},[k,l,c,v,S]);let P=V=>{let E=V.target.value;if(!E){y(""),a===void 0&&x(void 0),n?.(void 0);return}if(!new RegExp(`^[0-9${c}${v}.-]*$`).test(E))return;y(E);let B=uu(E,c,v);if(B!==void 0){let H=B;d!==void 0&&B<d&&(H=d),m!==void 0&&B>m&&(H=m),a===void 0&&x(H),n?.(H);}},D=()=>{T(true),k!==void 0&&y(k.toString().replace(".",v));},M=()=>{T(false),y(k!==void 0?Ps(k,l,c,v):"");},I=u&&p==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:w}),L=u&&p==="suffix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pl-1",children:w});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[I&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:I}),jsxRuntime.jsx("input",{ref:R,type:"text",inputMode:"decimal",value:C,onChange:P,onFocus:D,onBlur:M,disabled:N,placeholder:b??`0${v}${"0".repeat(l)}`,className:o(pu({size:t}),I&&"pl-8",L&&"pr-8","text-right",e),...h}),L&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:L})]})});fu.displayName="CurrencyInput";var gu=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 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"}}),Cs={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:"#####-####"}},X0=(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}},Na=e=>["#","A","*"].includes(e),En=(e,t,a)=>{let r="",n=0;for(let i=0;i<t.length&&n<=e.length;i++){let s=t[i];if(Na(s)){if(n<e.length){let l=e[n];X0(l,s)?(r+=l,n++):(n++,i--);}}else (n<e.length||a)&&(r+=s);}return r},Ss=(e,t)=>{let a="";for(let r=0;r<e.length&&r<t.length;r++){let n=t[r];Na(n)&&(a+=e[r]);}return a},bu=(e,t)=>e.split("").map(a=>Na(a)?t:a).join(""),q0=(e,t,a)=>{let r=0;for(let l=0;l<a&&l<e.length&&l<t.length;l++)Na(t[l])&&r++;let i=0,s=0;for(let l=0;l<t.length&&s<r;l++)i++,Na(t[l])&&s++;for(;i<t.length&&!Na(t[i]);)i++;return Math.min(i,e.length)},vu=$__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,mask:i,maskPlaceholder:s="_",showMaskPlaceholder:l=false,includeMaskChars:d=false,disabled:m,placeholder:u,...p},g)=>{let c=typeof i=="string"&&i in Cs?Cs[i].mask:i,[v,N]=$__namespace.useState(r),[b,h]=$__namespace.useState(""),R=$__namespace.useRef(null),f=a!==void 0?a:v;$__namespace.useImperativeHandle(g,()=>R.current),$__namespace.useEffect(()=>{let S=En(f,c,true);h(S);},[f,c]);let x=S=>{let T=S.target.value,k=S.target.selectionStart??0,w=T.replace(/[^\w]/g,""),P=En(w,c,true),D=Ss(P,c);h(P),a===void 0&&N(d?P:D),n?.(D,P),requestAnimationFrame(()=>{if(R.current){let M=q0(P,c,k);R.current.setSelectionRange(M,M);}});},C=S=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(S.key)||S.ctrlKey||S.metaKey)return;let T=R.current;if(!T)return;let k=T.selectionStart??0;if(S.key==="Backspace"&&k>0){let w=k-1;for(;w>0&&!Na(c[w]);)w--;let P=Ss(b,c),D=0;for(let L=0;L<w&&L<c.length;L++)Na(c[L])&&D++;let M=P.slice(0,Math.max(0,D-1))+P.slice(D),I=En(M,c,true);h(I),a===void 0&&N(d?I:M),n?.(M,I),S.preventDefault(),requestAnimationFrame(()=>{R.current&&R.current.setSelectionRange(w,w);});}},y=l?bu(c,s):u;return jsxRuntime.jsx("input",{ref:R,type:"text",value:b,onChange:x,onKeyDown:C,disabled:m,placeholder:y,className:o(gu({size:t}),e),...p})});vu.displayName="MaskedInput";var hu=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"}}),zn={"DD/MM/YYYY":"/","MM/DD/YYYY":"/","YYYY-MM-DD":"-","DD.MM.YYYY":"."},Ms={"DD/MM/YYYY":["day","month","year"],"MM/DD/YYYY":["month","day","year"],"YYYY-MM-DD":["year","month","day"],"DD.MM.YYYY":["day","month","year"]},Ts=(e,t)=>String(e).padStart(t,"0"),An=(e,t)=>{let a=Ts(e.getDate(),2),r=Ts(e.getMonth()+1,2),n=Ts(e.getFullYear(),4),i=zn[t],s=Ms[t],l={day:a,month:r,year:n};return s.map(d=>l[d]).join(i)},xu=(e,t)=>{let a=zn[t],r=e.split(a);if(r.length!==3)return null;let n=Ms[t],i={};if(n.forEach((l,d)=>{i[l]=parseInt(r[d],10);}),isNaN(i.day)||isNaN(i.month)||isNaN(i.year)||i.month<1||i.month>12||i.day<1||i.day>31||i.year<1e3||i.year>9999)return null;let s=new Date(i.year,i.month-1,i.day);return s.getFullYear()!==i.year||s.getMonth()!==i.month-1||s.getDate()!==i.day?null:s},ew=e=>e.toLowerCase(),tw=e=>{let t=zn[e];return Ms[e].map(r=>r==="year"?"####":"##").join(t)},yu=$__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r,onChange:n,format:i="DD/MM/YYYY",minDate:s,maxDate:l,showIcon:d=true,disabled:m,placeholder:u,...p},g)=>{let[c,v]=$__namespace.useState(r??null),[N,b]=$__namespace.useState(""),[h,R]=$__namespace.useState(null),f=$__namespace.useRef(null),x=a!==void 0?a:c;$__namespace.useImperativeHandle(g,()=>f.current),$__namespace.useEffect(()=>{x?(b(An(x,i)),R(null)):b("");},[x,i]);let C=zn[i],y=tw(i),S=w=>{let P=w.target.value;P=P.replace(new RegExp(`[^0-9\\${C}]`,"g"),"");let D=P.replace(new RegExp(`\\${C}`,"g"),""),M="",I=0;for(let L=0;L<y.length&&I<D.length;L++)y[L]==="#"?(M+=D[I],I++):M+=y[L];if(b(M),M.length===y.length){let L=xu(M,i);if(L){if(s&&L<s){R(`Date must be after ${An(s,i)}`);return}if(l&&L>l){R(`Date must be before ${An(l,i)}`);return}R(null),a===void 0&&v(L),n?.(L);}else R("Invalid date");}else a===void 0&&v(null),n?.(null),R(null);},T=()=>{N&&N.length!==y.length&&(b(""),R(null),a===void 0&&v(null),n?.(null));},k=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:f,type:"text",inputMode:"numeric",value:N,onChange:S,onBlur:T,disabled:m,placeholder:u??ew(i),className:o(hu({size:t}),d&&"pr-10",h&&"border-danger focus-visible:ring-danger",e),"aria-invalid":!!h,"aria-describedby":h?"date-error":void 0,...p}),d&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2",children:jsxRuntime.jsx(lucideReact.Calendar,{className:o(k,"text-muted-foreground")})}),h&&jsxRuntime.jsx("p",{id:"date-error",className:"mt-1 text-xs text-danger",children:h})]})});yu.displayName="DateInput";var Ru=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"}}),wu=[{code:"TR",name:"Turkey",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}",format:"(###) ### ## ##"},{code:"US",name:"United States",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}",format:"(###) ###-####"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}",format:"#### ### ####"},{code:"DE",name:"Germany",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}",format:"#### #######"},{code:"FR",name:"France",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}",format:"# ## ## ## ##"},{code:"IT",name:"Italy",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}",format:"### ### ####"},{code:"ES",name:"Spain",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}",format:"### ### ###"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}",format:"## ########"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}",format:"### ## ## ##"},{code:"AT",name:"Austria",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}",format:"### #######"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}",format:"## ### ## ##"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}",format:"##-### ## ##"},{code:"NO",name:"Norway",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}",format:"### ## ###"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}",format:"## ## ## ##"},{code:"FI",name:"Finland",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}",format:"## ### ####"},{code:"PL",name:"Poland",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}",format:"### ### ###"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}",format:"### ### ###"},{code:"GR",name:"Greece",dialCode:"+30",flag:"\u{1F1EC}\u{1F1F7}",format:"### ### ####"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}",format:"### ### ###"},{code:"RU",name:"Russia",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}",format:"(###) ###-##-##"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}",format:"## ### ## ##"},{code:"RO",name:"Romania",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}",format:"### ### ###"},{code:"HU",name:"Hungary",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}",format:"## ### ####"},{code:"BG",name:"Bulgaria",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}",format:"### ### ###"},{code:"HR",name:"Croatia",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}",format:"## ### ####"},{code:"RS",name:"Serbia",dialCode:"+381",flag:"\u{1F1F7}\u{1F1F8}",format:"## ### ####"},{code:"SI",name:"Slovenia",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}",format:"## ### ###"},{code:"SK",name:"Slovakia",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}",format:"### ### ###"},{code:"CA",name:"Canada",dialCode:"+1",flag:"\u{1F1E8}\u{1F1E6}",format:"(###) ###-####"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"\u{1F1F2}\u{1F1FD}",format:"### ### ####"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"\u{1F1E7}\u{1F1F7}",format:"(##) #####-####"},{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:"NZ",name:"New Zealand",dialCode:"+64",flag:"\u{1F1F3}\u{1F1FF}",format:"## ### ####"},{code:"JP",name:"Japan",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}",format:"##-####-####"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"\u{1F1F0}\u{1F1F7}",format:"##-####-####"},{code:"CN",name:"China",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}",format:"### #### ####"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"\u{1F1ED}\u{1F1F0}",format:"#### ####"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"\u{1F1F9}\u{1F1FC}",format:"### ### ###"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"\u{1F1F8}\u{1F1EC}",format:"#### ####"},{code:"IN",name:"India",dialCode:"+91",flag:"\u{1F1EE}\u{1F1F3}",format:"##### #####"},{code:"PK",name:"Pakistan",dialCode:"+92",flag:"\u{1F1F5}\u{1F1F0}",format:"### #######"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"\u{1F1E6}\u{1F1EA}",format:"## ### ####"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"\u{1F1F8}\u{1F1E6}",format:"## ### ####"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"\u{1F1EA}\u{1F1EC}",format:"### ### ####"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"\u{1F1FF}\u{1F1E6}",format:"## ### ####"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"\u{1F1F3}\u{1F1EC}",format:"### ### ####"},{code:"IL",name:"Israel",dialCode:"+972",flag:"\u{1F1EE}\u{1F1F1}",format:"##-###-####"}],Bn=(e,t)=>{let a=e.replace(/\D/g,""),r="",n=0;for(let i=0;i<t.length&&n<a.length;i++)t[i]==="#"?(r+=a[n],n++):r+=t[i];return r},ow=e=>e.replace(/#/g,"_"),Nu=$__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,country:i,defaultCountry:s="TR",onCountryChange:l,countries:d=wu,showCountrySelect:m=true,showDialCode:u=false,disabled:p,placeholder:g,...c},v)=>{let[N,b]=$__namespace.useState(r),[h,R]=$__namespace.useState(i??s),f=a!==void 0?a:N,x=i??h,C=d.find(w=>w.code===x)??d[0],y=Bn(f,C.format),S=w=>{let D=w.target.value.replace(/\D/g,"");a===void 0&&b(D);let M=Bn(D,C.format),I=`${C.dialCode} ${M}`;n?.(D,I,C);};return jsxRuntime.jsxs("div",{className:"flex",children:[m&&jsxRuntime.jsxs(Ui,{value:x,onValueChange:w=>{let P=d.find(I=>I.code===w);if(!P)return;i===void 0&&R(w),l?.(P);let D=Bn(f,P.format),M=`${P.dialCode} ${D}`;n?.(f,M,P);},disabled:p,children:[jsxRuntime.jsx(cn,{className:o("w-[100px] rounded-r-none border-r-0 shrink-0",t==="sm"?"h-8":t==="lg"?"h-12":"h-10"),children:jsxRuntime.jsx(Yi,{children:jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:C.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:C.dialCode})]})})}),jsxRuntime.jsx(mn,{className:"max-h-[300px]",children:d.map(w=>jsxRuntime.jsx(pn,{value:w.code,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:w.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:w.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:w.dialCode})]})},w.code))})]}),jsxRuntime.jsxs("div",{className:"relative flex-1",children:[u&&!m&&jsxRuntime.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:C.dialCode}),jsxRuntime.jsx("input",{ref:v,type:"tel",inputMode:"tel",value:y,onChange:S,disabled:p,placeholder:g??ow(C.format),className:o(Ru({size:t}),m&&"rounded-l-none",u&&!m&&"pl-12",e),...c})]})]})});Nu.displayName="PhoneInput";var Cu=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}}),Su=$__namespace.forwardRef(({className:e,variant:t,size:a,sticky:r,brand:n,children:i,mobileBreakpoint:s="md",...l},d)=>{let[m,u]=$__namespace.useState(false),p={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],g={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:d,className:o(Cu({variant:t,size:a,sticky:r,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:o("items-center gap-4 flex-1 justify-end",p),children:i}),jsxRuntime.jsx("button",{type:"button",className:o("p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",g),onClick:()=>u(!m),"aria-label":m?"Close menu":"Open menu","aria-expanded":m,children:m?jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"})})]}),m&&jsxRuntime.jsx("div",{className:o("absolute top-full left-0 right-0 flex flex-col gap-2 p-4 bg-background border-b border-border shadow-lg",g),children:i})]})});Su.displayName="Navbar";var Tu=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center gap-2 font-semibold text-lg",e),...t}));Tu.displayName="NavbarBrand";var Mu=$__namespace.forwardRef(({className:e,justify:t="start",...a},r)=>{let n={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:r,className:o("flex items-center gap-4",n,e),...a})});Mu.displayName="NavbarContent";var ku=$__namespace.forwardRef(({className:e,isActive:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex items-center",t&&"text-primary font-medium",e),...a}));ku.displayName="NavbarItem";var Du=$__namespace.forwardRef(({className:e,isActive:t,...a},r)=>jsxRuntime.jsx("a",{ref:r,className:o("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...a}));Du.displayName="NavbarLink";var Lu=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"}}),Iu=$__namespace.forwardRef(({className:e,variant:t,size:a,underline:r,isExternal:n,showExternalIcon:i=true,isDisabled:s,children:l,...d},m)=>{let u=n?{target:"_blank",rel:"noopener noreferrer"}:{};return jsxRuntime.jsxs("a",{ref:m,className:o(Lu({variant:t,size:a,underline:r,className:e}),s&&"pointer-events-none opacity-50"),"aria-disabled":s,...u,...d,children:[l,n&&i&&jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-3 w-3 ml-0.5","aria-hidden":"true"})]})});Iu.displayName="Link";var Hu=classVarianceAuthority.cva("fixed bottom-6 right-6 z-50 flex items-center justify-center rounded-full shadow-lg transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"bg-background border border-border text-foreground hover:bg-accent",ghost:"bg-background/80 backdrop-blur-sm text-foreground hover:bg-accent",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted text-foreground hover:bg-muted/80"},size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"}},defaultVariants:{variant:"solid",size:"md"}}),Au=$__namespace.forwardRef(({className:e,variant:t,size:a,visibilityHeight:r=400,smooth:n=true,icon:i,duration:s=300,onClick:l,...d},m)=>{let[u,p]=$__namespace.useState(false);$__namespace.useEffect(()=>{let v=()=>{p(window.scrollY>r);};return v(),window.addEventListener("scroll",v,{passive:true}),()=>window.removeEventListener("scroll",v)},[r]);let g=v=>{n?window.scrollTo({top:0,behavior:"smooth"}):window.scrollTo(0,0),l?.(v);},c={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[a||"md"];return u?jsxRuntime.jsx("button",{ref:m,type:"button",className:o(Hu({variant:t,size:a,className:e}),"animate-in fade-in zoom-in duration-300"),onClick:g,"aria-label":"Back to top",...d,children:i||jsxRuntime.jsx(lucideReact.ArrowUp,{className:c})}):null});Au.displayName="BackTop";var vw=K__namespace.Menu,hw=K__namespace.Group,xw=K__namespace.Portal,yw=K__namespace.Sub,Rw=K__namespace.RadioGroup,zu=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(K__namespace.Root,{ref:a,className:o("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));zu.displayName=K__namespace.Root.displayName;var Bu=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(K__namespace.Trigger,{ref:a,className:o("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));Bu.displayName=K__namespace.Trigger.displayName;var Fu=$__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(K__namespace.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Fu.displayName=K__namespace.SubTrigger.displayName;var Ou=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(K__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Ou.displayName=K__namespace.SubContent.displayName;var Gu=$__namespace.forwardRef(({className:e,align:t="start",alignOffset:a=-4,sideOffset:r=8,...n},i)=>jsxRuntime.jsx(K__namespace.Portal,{children:jsxRuntime.jsx(K__namespace.Content,{ref:i,align:t,alignOffset:a,sideOffset:r,className:o("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Gu.displayName=K__namespace.Content.displayName;var $u=$__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(K__namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));$u.displayName=K__namespace.Item.displayName;var Wu=$__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(K__namespace.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(K__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));Wu.displayName=K__namespace.CheckboxItem.displayName;var _u=$__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(K__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(K__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));_u.displayName=K__namespace.RadioItem.displayName;var Ku=$__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(K__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Ku.displayName=K__namespace.Label.displayName;var Uu=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(K__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Uu.displayName=K__namespace.Separator.displayName;var Yu=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Yu.displayName="MenubarShortcut";var ju=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"}}),Xu=$__namespace.forwardRef(({className:e,orientation:t,size:a,currentStep:r=0,children:n,...i},s)=>{let l=$__namespace.Children.toArray(n);return jsxRuntime.jsx("div",{ref:s,className:o(ju({orientation:t,size:a,className:e})),...i,children:l.map((d,m)=>$__namespace.isValidElement(d)?$__namespace.cloneElement(d,{...d.props,stepNumber:m+1,status:d.props.status||(m<r?"completed":m===r?"current":"upcoming"),isLast:m===l.length-1,orientation:t,size:a}):d)})});Xu.displayName="Steps";var qu=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"}}),Nw=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"}}),Pw=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"}}),Zu=$__namespace.forwardRef(({className:e,orientation:t="horizontal",size:a="md",title:r,description:n,icon:i,status:s="upcoming",stepNumber:l,isLast:d,...m},u)=>jsxRuntime.jsxs("div",{ref:u,className:o(qu({orientation:t,size:a,className:e}),!d&&t==="horizontal"&&"flex-1"),...m,children:[jsxRuntime.jsx("div",{className:o("flex items-center",t==="vertical"&&"flex-col items-start"),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:o(Nw({status:s,size:a})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:a==="sm"?"h-3 w-3":a==="lg"?"h-5 w-5":"h-4 w-4"}):i||l}),(r||n)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[r&&jsxRuntime.jsx("span",{className:o("font-medium",a==="sm"&&"text-sm",a==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:r}),n&&jsxRuntime.jsx("span",{className:o("text-muted-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm",a==="lg"&&"text-base"),children:n})]})]})}),!d&&jsxRuntime.jsx("div",{className:o(Pw({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));Zu.displayName="Step";function Dw({className:e,data:t,columns:a,selectable:r=false,selectedKeys:n,onSelectionChange:i,getRowKey:s=(x,C)=>String(C),sortable:l=false,sortState:d,onSortChange:m,paginated:u=false,pageSizeOptions:p=[10,20,50],paginationState:g,onPaginationChange:c,emptyContent:v="No data",loading:N=false,striped:b=false,hoverable:h=true,...R},f){let[x,C]=$__namespace.useState(new Set),[y,S]=$__namespace.useState({columnId:null,direction:null}),[T,k]=$__namespace.useState({pageIndex:0,pageSize:p[0]||10}),w=n??x,P=d??y,D=g??T,M=z=>{i?i(z):C(z);},I=z=>{m?m(z):S(z);},L=z=>{c?c(z):k(z);},V=$__namespace.useMemo(()=>{if(!P.columnId||!P.direction)return t;let z=a.find(F=>F.id===P.columnId);return z?[...t].sort((F,ae)=>{let W=z.accessor(F),ge=z.accessor(ae);if(W===ge)return 0;if(W==null)return 1;if(ge==null)return -1;let io=String(W).localeCompare(String(ge),void 0,{numeric:true});return P.direction==="asc"?io:-io}):t},[t,P,a]),E=$__namespace.useMemo(()=>{if(!u)return V;let z=D.pageIndex*D.pageSize;return V.slice(z,z+D.pageSize)},[V,u,D]),A=Math.ceil(V.length/D.pageSize),B=z=>{if(z){let F=new Set(E.map((ae,W)=>s(ae,W)));M(F);}else M(new Set);},H=(z,F)=>{let ae=new Set(w);F?ae.add(z):ae.delete(z),M(ae);},Q=E.length>0&&E.every((z,F)=>w.has(s(z,F))),te=E.some((z,F)=>w.has(s(z,F))),J=z=>{if(!a.find(W=>W.id===z)?.sortable&&!l)return;let ae="asc";P.columnId===z&&(P.direction==="asc"?ae="desc":P.direction==="desc"&&(ae=null)),I({columnId:ae?z:null,direction:ae});},nt=z=>P.columnId!==z?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:f,className:o("w-full",e),...R,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:[r&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(po,{checked:Q?true:te?"indeterminate":false,onCheckedChange:B,"aria-label":"Select all"})}),a.map(z=>{let F=z.sortable??l;return jsxRuntime.jsx("th",{className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground",F&&"cursor-pointer select-none hover:text-foreground"),style:{width:z.width},onClick:()=>F&&J(z.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[z.header,F&&nt(z.id)]})},z.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:N?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):E.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:v})}):E.map((z,F)=>{let ae=s(z,F),W=w.has(ae);return jsxRuntime.jsxs("tr",{className:o("border-b transition-colors",h&&"hover:bg-muted/50",b&&F%2===1&&"bg-muted/30",W&&"bg-muted"),"data-state":W?"selected":void 0,children:[r&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(po,{checked:W,onCheckedChange:ge=>H(ae,!!ge),"aria-label":`Select row ${F+1}`})}),a.map(ge=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:ge.cell?ge.cell(z,F):ge.accessor(z)},ge.id))]},ae)})})]})}),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:D.pageSize,onChange:z=>L({pageIndex:0,pageSize:Number(z.target.value)}),className:"h-8 rounded-md border bg-transparent px-2",children:p.map(z=>jsxRuntime.jsx("option",{value:z,children:z},z))})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",D.pageIndex+1," of ",A||1]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx("button",{onClick:()=>L({...D,pageIndex:D.pageIndex-1}),disabled:D.pageIndex===0,className:"inline-flex h-8 w-8 items-center justify-center rounded-md border bg-transparent hover:bg-muted disabled:opacity-50 disabled:pointer-events-none","aria-label":"Previous page",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{onClick:()=>L({...D,pageIndex:D.pageIndex+1}),disabled:D.pageIndex>=A-1,className:"inline-flex h-8 w-8 items-center justify-center rounded-md border bg-transparent hover:bg-muted disabled:opacity-50 disabled:pointer-events-none","aria-label":"Next page",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})]})]})}var Vw=$__namespace.forwardRef(Dw);var Ju=classVarianceAuthority.cva("",{variants:{size:{sm:"[--tree-indent:12px] [--tree-item-height:28px] text-xs",md:"[--tree-indent:16px] [--tree-item-height:32px] text-sm",lg:"[--tree-indent:20px] [--tree-item-height:40px] text-base"}},defaultVariants:{size:"md"}}),ef=$__namespace.forwardRef(({className:e,size:t,data:a,defaultExpandedIds:r=[],expandedIds:n,onExpandedChange:i,selectedId:s,onSelect:l,showIcons:d=true,leafIcon:m=jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),folderIcon:u=jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),folderOpenIcon:p=jsxRuntime.jsx(lucideReact.FolderOpen,{className:"h-4 w-4"}),defaultExpandAll:g=false,...c},v)=>{let N=$__namespace.useCallback(y=>y.reduce((S,T)=>T.children?.length?[...S,T.id,...N(T.children)]:S,[]),[]),[b,h]=$__namespace.useState(()=>g?N(a):r),R=n??b,f=y=>{i?i(y):h(y);},x=y=>{R.includes(y)?f(R.filter(S=>S!==y)):f([...R,y]);},C=(y,S=0)=>{let T=y.children&&y.children.length>0,k=R.includes(y.id),w=s===y.id,P=()=>{y.disabled||l?.(y);},D=I=>{I.stopPropagation(),T&&x(y.id);},M=()=>y.icon?y.icon:T?k?p:u:m;return jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":T?k:void 0,children:[jsxRuntime.jsxs("div",{className:o("flex items-center gap-1 rounded-md px-2 cursor-pointer transition-colors","h-[var(--tree-item-height)]","hover:bg-muted/50",w&&"bg-primary/10 text-primary",y.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`calc(${S} * var(--tree-indent) + 8px)`},onClick:P,children:[jsxRuntime.jsx("button",{type:"button",className:o("flex h-5 w-5 items-center justify-center rounded hover:bg-muted",!T&&"invisible"),onClick:D,tabIndex:-1,"aria-label":k?"Collapse":"Expand",children:k?jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),d&&jsxRuntime.jsx("span",{className:"flex-shrink-0 text-muted-foreground",children:M()}),jsxRuntime.jsx("span",{className:"truncate",children:y.name})]}),T&&k&&jsxRuntime.jsx("div",{role:"group",children:y.children.map(I=>C(I,S+1))})]},y.id)};return jsxRuntime.jsx("div",{ref:v,role:"tree",className:o(Ju({size:t,className:e})),...c,children:a.map(y=>C(y))})});ef.displayName="TreeView";var af=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm 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 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),$w=({text:e,query:t})=>{if(!t)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let a=new RegExp(`(${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi"),r=e.split(a);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map((n,i)=>a.test(n)?jsxRuntime.jsx("mark",{className:"bg-primary/20 text-foreground rounded-sm",children:n},i):jsxRuntime.jsx("span",{children:n},i))})},Ww=(e,t)=>{let[a,r]=$__namespace.useState(e);return $__namespace.useEffect(()=>{let n=setTimeout(()=>{r(e);},t);return ()=>{clearTimeout(n);}},[e,t]),a},rf=$__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,onSelect:i,options:s=[],loadOptions:l,debounceMs:d=300,minChars:m=0,placeholder:u="Type to search...",emptyText:p="No results found.",loadingText:g="Loading...",clearable:c=false,freeSolo:v=true,maxHeight:N=200,highlightMatch:b=true,disabled:h,...R},f)=>{let[x,C]=$__namespace.useState(false),[y,S]=$__namespace.useState(r),[T,k]=$__namespace.useState([]),[w,P]=$__namespace.useState(false),D=$__namespace.useRef(null),M=a!==void 0?a:y,I=Ww(M,d);$__namespace.useImperativeHandle(f,()=>D.current);let L=l?T:s,V=$__namespace.useMemo(()=>l?L:L.filter(F=>F.label.toLowerCase().includes(M.toLowerCase())),[L,M,l]);$__namespace.useEffect(()=>{if(!l)return;if(I.length<m){k([]);return}let F=false;return (async()=>{P(true);try{let W=await l(I);F||k(W);}catch{F||k([]);}finally{F||P(false);}})(),()=>{F=true;}},[I,l,m]);let E=F=>{a===void 0&&S(F),n?.(F);},A=F=>{let ae=F.target.value;E(ae),ae.length>=m&&C(true);},B=F=>{E(F.label),i?.(F),C(false);},H=()=>{E(""),D.current?.focus();},Q=()=>{M.length>=m&&(V.length>0||w)&&C(true);},te=F=>{F.key==="Escape"&&C(false),F.key==="ArrowDown"&&!x&&V.length>0&&C(true);},J=x&&M.length>=m,nt=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4",z=c&&M?"pr-8":"pr-3";return jsxRuntime.jsxs(ve,{open:J,onOpenChange:C,children:[jsxRuntime.jsx(Qi,{asChild:true,children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx("input",{ref:D,type:"text",value:M,onChange:A,onFocus:Q,onKeyDown:te,disabled:h,placeholder:u,className:o(af({size:t}),z,e),role:"combobox","aria-expanded":J,"aria-autocomplete":"list","aria-controls":"autocomplete-list",...R}),c&&M&&!h&&jsxRuntime.jsx("button",{type:"button",onClick:H,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:nt})})]})}),jsxRuntime.jsx(ue,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",onOpenAutoFocus:F=>F.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:N},children:w?jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(nt,"animate-spin")}),g]}):V.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:p}):V.map(F=>jsxRuntime.jsxs(cmdk.Command.Item,{value:F.value,disabled:F.disabled,onSelect:()=>B(F),className:o("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:o("mr-2 h-4 w-4 shrink-0",M===F.label?"opacity-100":"opacity-0")}),jsxRuntime.jsx("span",{className:"flex-1",children:b?jsxRuntime.jsx($w,{text:F.label,query:M}):F.label})]},F.value))})})})]})});rf.displayName="Autocomplete";var Ls=$__namespace.createContext(null),Is=$__namespace.createContext(null),Es=()=>{let e=$__namespace.useContext(Ls);if(!e)throw new Error("useFormContext must be used within a Form");return e},Gn=()=>{let e=$__namespace.useContext(Is);if(!e)throw new Error("useFieldContext must be used within a FormField");return e},_w={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:a=>typeof a=="string"&&a.length>=e,message:t??`Must be at least ${e} characters`}),maxLength:(e,t)=>({validate:a=>typeof a=="string"&&a.length<=e,message:t??`Must be at most ${e} characters`}),min:(e,t)=>({validate:a=>typeof a=="number"&&a>=e,message:t??`Must be at least ${e}`}),max:(e,t)=>({validate:a=>typeof a=="number"&&a<=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:a=>typeof a=="string"&&e.test(a),message:t}),custom:(e,t)=>({validate:e,message:t})},of=$__namespace.forwardRef(({defaultValues:e={},onSubmit:t,onError:a,validateOnBlur:r=true,validateOnChange:n=false,children:i,className:s,...l},d)=>{let[m,u]=$__namespace.useState(e),[p,g]=$__namespace.useState({}),[c,v]=$__namespace.useState({}),[N,b]=$__namespace.useState({}),[h,R]=$__namespace.useState(false),f=$__namespace.useRef(new Map),x=$__namespace.useCallback((L,V)=>{f.current.set(L,V);},[]),C=$__namespace.useCallback(L=>{f.current.delete(L);},[]),y=$__namespace.useCallback(L=>{let V=f.current.get(L)||[],E=m[L];for(let A of V)if(!A.validate(E))return g(B=>({...B,[L]:A.message})),false;return g(A=>({...A,[L]:null})),true},[m]),S=$__namespace.useCallback(()=>{let L=true,V={};return f.current.forEach((E,A)=>{let B=m[A];for(let H of E)if(!H.validate(B)){V[A]=H.message,L=false;break}V[A]||(V[A]=null);}),g(V),L},[m]),T=$__namespace.useCallback((L,V)=>{u(E=>({...E,[L]:V})),b(E=>({...E,[L]:true})),n&&setTimeout(()=>{y(L);},0);},[n,y]),k=$__namespace.useCallback((L,V)=>{g(E=>({...E,[L]:V}));},[]),w=$__namespace.useCallback((L,V)=>{v(E=>({...E,[L]:V})),V&&r&&y(L);},[r,y]),P=$__namespace.useCallback(L=>({value:m[L],error:p[L]??null,touched:c[L]??false,dirty:N[L]??false}),[m,p,c,N]),D=$__namespace.useCallback(()=>{u(e),g({}),v({}),b({});},[e]),M=async L=>{L.preventDefault();let V={};if(f.current.forEach((A,B)=>{V[B]=true;}),v(V),!S()){a?.(p);return}if(t){R(true);try{await t(m);}finally{R(false);}}},I={values:m,errors:p,touched:c,dirty:N,isSubmitting:h,setValue:T,setError:k,setTouched:w,validateField:y,validateAll:S,registerField:x,unregisterField:C,getFieldState:P,reset:D};return jsxRuntime.jsx(Ls.Provider,{value:I,children:jsxRuntime.jsx("form",{ref:d,onSubmit:M,className:o("space-y-4",s),...l,children:i})})});of.displayName="Form";var nf=({name:e,rules:t=[],defaultValue:a,children:r})=>{let n=Es(),i=$__namespace.useId();$__namespace.useEffect(()=>(n.registerField(e,t),a!==void 0&&n.values[e]===void 0&&n.setValue(e,a),()=>{n.unregisterField(e);}),[e,t,a,n]);let s=n.getFieldState(e),l={name:e,id:`${i}-${e}`,value:s.value,error:s.error,touched:s.touched,dirty:s.dirty};return jsxRuntime.jsx(Is.Provider,{value:l,children:r})};nf.displayName="FormField";var sf=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("space-y-1.5",e),...t}));sf.displayName="FormItem";var lf=$__namespace.forwardRef(({className:e,required:t,children:a,...r},n)=>{let{id:i,error:s,touched:l}=Gn();return jsxRuntime.jsxs(Ba,{ref:n,htmlFor:i,className:o(s&&l&&"text-danger",e),...r,children:[a,t&&jsxRuntime.jsx("span",{className:"ml-1 text-danger",children:"*"})]})});lf.displayName="FormLabel";var df=({children:e})=>{let{name:t,id:a,error:r,touched:n}=Gn(),i=Es(),s=i.getFieldState(t),l=m=>{let u=m.target,p=u.type==="checkbox"?u.checked:u.value;i.setValue(t,p);},d=()=>{i.setTouched(t,true);};return $__namespace.cloneElement(e,{id:a,name:t,value:s.value??"",onChange:l,onBlur:d,"aria-invalid":r&&n?"true":void 0,"aria-describedby":r&&n?`${a}-error`:void 0})};df.displayName="FormControl";var cf=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("p",{ref:a,className:o("text-xs text-muted-foreground",e),...t}));cf.displayName="FormDescription";var mf=$__namespace.forwardRef(({className:e,message:t,...a},r)=>{let{id:n,error:i,touched:s}=Gn(),l=t??(s?i:null);return l?jsxRuntime.jsx("p",{ref:r,id:`${n}-error`,className:o("text-xs text-danger",e),role:"alert",...a,children:l}):null});mf.displayName="FormMessage";var uf=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"}}),ff=$__namespace.forwardRef(({className:e,size:t,name:a,description:r,avatarUrl:n,avatarFallback:i,trailing:s,...l},d)=>{let m=i||a.split(" ").map(u=>u[0]).join("").toUpperCase().slice(0,2);return jsxRuntime.jsxs("div",{ref:d,className:o(uf({size:t,className:e})),...l,children:[jsxRuntime.jsxs(Fa,{"data-user-avatar":true,children:[n&&jsxRuntime.jsx(hr,{src:n,alt:a}),jsxRuntime.jsx(Oa,{children:m})]}),jsxRuntime.jsxs("div",{className:"flex flex-col min-w-0",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium leading-none truncate",children:a}),r&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground truncate",children:r})]}),s&&jsxRuntime.jsx("div",{className:"ml-auto flex-shrink-0",children:s})]})});ff.displayName="User";var bf=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"}}),vf=$__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx("code",{ref:n,className:o(bf({variant:t,size:a,className:e})),...r}));vf.displayName="Code";var hf=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"}}),xf=$__namespace.forwardRef(({className:e,variant:t,size:a,code:r,copyable:n=true,copyLabel:i="Copy",onCopy:s,symbol:l="$",hideSymbol:d=false,...m},u)=>{let[p,g]=$__namespace.useState(false),c=async()=>{try{await navigator.clipboard.writeText(r),g(!0),s?.(),setTimeout(()=>g(!1),2e3);}catch(v){console.error("Failed to copy:",v);}};return jsxRuntime.jsxs("div",{ref:u,className:o(hf({variant:t,size:a,className:e})),...m,children:[!d&&jsxRuntime.jsx("span",{className:"text-muted-foreground select-none",children:l}),jsxRuntime.jsx("code",{className:"flex-1 truncate",children:r}),n&&jsxRuntime.jsx("button",{type:"button",onClick:c,className:o("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":p?"Copied":i,children:p?jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-4 w-4 text-muted-foreground"})})]})});xf.displayName="Snippet";var zs=classVarianceAuthority.cva("overflow-hidden",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),yf=$__namespace.forwardRef(({className:e,radius:t,src:a,alt:r,fallback:n,showSkeleton:i=true,onLoad:s,onError:l,fit:d="cover",aspectRatio:m,style:u,...p},g)=>{let[c,v]=$__namespace.useState("loading");$__namespace.useEffect(()=>{a&&v("loading");},[a]);let N=()=>{v("loaded"),s?.();},b=()=>{v("error"),l?.();},h={contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"}[d];return c==="error"&&n?jsxRuntime.jsx("div",{className:o(zs({radius:t}),"flex items-center justify-center bg-muted",e),style:{aspectRatio:m,...u},children:n}):jsxRuntime.jsxs("div",{className:o(zs({radius:t}),"relative",e),style:{aspectRatio:m,...u},children:[c==="loading"&&i&&jsxRuntime.jsx(ln,{className:"absolute inset-0 h-full w-full"}),jsxRuntime.jsx("img",{ref:g,src:a,alt:r,onLoad:N,onError:b,className:o("h-full w-full transition-opacity duration-300",h,c==="loading"?"opacity-0":"opacity-100"),...p})]})});yf.displayName="Image";var Nf=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"}}),Pf=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"}}),Cf=$__namespace.createContext({value:"",onValueChange:()=>{},multiple:false,size:"md"}),Sf=$__namespace.forwardRef(({className:e,size:t="md",value:a,defaultValue:r="",onValueChange:n,multiple:i=false,children:s,...l},d)=>{let[m,u]=$__namespace.useState(r),p=a??m,g=c=>{let v;if(i){let N=Array.isArray(p)?p:[p].filter(Boolean);N.includes(c)?v=N.filter(b=>b!==c):v=[...N,c];}else v=c;n?n(v):u(v);};return jsxRuntime.jsx(Cf.Provider,{value:{value:p,onValueChange:g,multiple:i,size:t??"md"},children:jsxRuntime.jsx("div",{ref:d,role:"listbox","aria-multiselectable":i,className:o(Nf({size:t,className:e})),...l,children:s})})});Sf.displayName="Listbox";var Tf=$__namespace.forwardRef(({className:e,value:t,disabled:a,icon:r,description:n,children:i,...s},l)=>{let{value:d,onValueChange:m,multiple:u,size:p}=$__namespace.useContext(Cf),g=u?Array.isArray(d)&&d.includes(t):d===t,c=()=>{a||m(t);},v=N=>{(N.key==="Enter"||N.key===" ")&&!a&&(N.preventDefault(),m(t));};return jsxRuntime.jsxs("div",{ref:l,role:"option","aria-selected":g,"data-disabled":a?"":void 0,tabIndex:a?-1:0,className:o(Pf({size:p}),g&&"bg-accent text-accent-foreground",e),onClick:c,onKeyDown:v,...s,children:[r&&jsxRuntime.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:i}),n&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:n})]}),g&&jsxRuntime.jsx(lucideReact.Check,{className:"ml-2 h-4 w-4 flex-shrink-0"})]})});Tf.displayName="ListboxItem";var kf=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"}}),Df=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 rN({className:e,variant:t,size:a,items:r,onReorder:n,renderItem:i,showHandle:s=true,disabled:l=false,...d},m){let[u,p]=$__namespace.useState(null),[g,c]=$__namespace.useState(null),v=(f,x)=>{l||(p(x),f.dataTransfer.effectAllowed="move",f.dataTransfer.setData("text/plain",String(x)));},N=(f,x)=>{f.preventDefault(),!(l||u===null||u===x)&&c(x);},b=()=>{c(null);},h=(f,x)=>{if(f.preventDefault(),l||u===null||u===x){p(null),c(null);return}let C=[...r],[y]=C.splice(u,1);C.splice(x,0,y),n?.(C),p(null),c(null);},R=()=>{p(null),c(null);};return jsxRuntime.jsx("div",{ref:m,className:o(kf({variant:t,size:a,className:e})),...d,children:r.map((f,x)=>jsxRuntime.jsxs("div",{draggable:!l,onDragStart:C=>v(C,x),onDragOver:C=>N(C,x),onDragLeave:b,onDrop:C=>h(C,x),onDragEnd:R,className:o(Df({variant:t,size:a,isDragging:u===x,isDragOver:g===x}),!l&&"cursor-move"),children:[s&&jsxRuntime.jsx("div",{className:o("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:i(f,x)})]},f.id))})}var oN=$__namespace.forwardRef(rN);var If=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}}),lN={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},Ef=$__namespace.forwardRef(({className:e,variant:t,loading:a=true,size:r="md",spinner:n,text:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o("relative",e),...l,children:[s,jsxRuntime.jsx("div",{className:o(If({variant:t,visible:a})),"aria-hidden":!a,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n||jsxRuntime.jsx(lucideReact.Loader2,{className:o(lN[r],"animate-spin text-primary")}),i&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:i})]})})]}));Ef.displayName="LoadingOverlay";var Hf=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"}}),Af=$__namespace.forwardRef(({className:e,color:t,isLoading:a=false,progress:r,showSpinner:n=false,...i},s)=>{let[l,d]=$__namespace.useState(0),[m,u]=$__namespace.useState(false),p=$__namespace.useRef(null);return $__namespace.useEffect(()=>{if(r!==void 0){d(r),u(r>0&&r<100);return}return a?(u(true),d(10),p.current=setInterval(()=>{d(g=>{if(g>=90)return g;let c=Math.random()*10;return Math.min(g+c,90)});},500)):l>0&&(d(100),setTimeout(()=>{u(false),d(0);},200)),()=>{p.current&&clearInterval(p.current);}},[a,r]),!m&&r===void 0||r!==void 0&&(r<=0||r>=100)?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:s,className:o(Hf({color:t,className:e})),style:{width:`${l}%`},role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,...i,children:jsxRuntime.jsx("div",{className:"absolute right-0 h-full w-24 -translate-y-1 rotate-3 bg-inherit opacity-50 blur-sm"})}),n&&m&&jsxRuntime.jsx("div",{className:"fixed top-4 right-4 z-[9999]",children:jsxRuntime.jsx("div",{className:o("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")})})]})});Af.displayName="NProgress";var Of=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}}),zf={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},fN={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-3 w-3"},Gf=$__namespace.forwardRef(({className:e,variant:t="spinner",size:a="md",fullScreen:r,text:n,color:i="primary",...s},l)=>{let d={primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"}[i],m=()=>{switch(t){case "dots":return jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[0,1,2].map(u=>jsxRuntime.jsx("div",{className:o(fN[a||"md"],"animate-bounce rounded-full bg-current",d),style:{animationDelay:`${u*.15}s`}},u))});case "pulse":return jsxRuntime.jsx("div",{className:o(zf[a||"md"],"animate-pulse rounded-full bg-current",d)});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:o(zf[a||"md"],"animate-spin",d)})}};return jsxRuntime.jsx("div",{ref:l,className:o(Of({variant:t,size:a,fullScreen:r,className:e})),role:"status","aria-label":n||"Loading",...s,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[m(),n&&jsxRuntime.jsx("span",{className:o("text-sm",d),children:n})]})})});Gf.displayName="Loading";var Os=class extends $__namespace.Component{constructor(t){super(t),this.state={hasError:false,error:null};}static getDerivedStateFromError(t){return {hasError:true,error:t}}componentDidCatch(t,a){this.props.onError?.(t,a);}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&this.props.resetKeys.some((r,n)=>r!==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(Gs,{error:this.state.error,onReset:this.reset}):this.props.children}},Gs=$__namespace.forwardRef(({error:e,onReset:t,className:a},r)=>jsxRuntime.jsxs("div",{ref:r,className:o("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",a),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"]})]}));Gs.displayName="DefaultErrorFallback";var vN=Os;var Wf=$__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:a,placeholder:r="Pick a date range",dateFormat:n="LLL dd, y",disabled:i=false,minDate:s,maxDate:l,numberOfMonths:d=2,className:m,align:u="start"},p)=>{let[g,c]=$__namespace.useState(false),[v,N]=$__namespace.useState(t),b=e!==void 0,h=b?e:v,R=x=>{b||N(x),a?.(x);},f=x=>{if(!x)return r;let{from:C,to:y}=x;return C&&y?`${dateFns.format(C,n)} - ${dateFns.format(y,n)}`:C?dateFns.format(C,n):r};return jsxRuntime.jsxs(ve,{open:g,onOpenChange:c,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{ref:p,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!h?.from&&"text-muted-foreground",m),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),f(h)]})}),jsxRuntime.jsx(ue,{className:"w-auto p-0",align:u,children:jsxRuntime.jsx(Pr,{mode:"range",defaultMonth:h?.from,selected:h,onSelect:R,numberOfMonths:d,disabled:x=>!!(s&&x<s||l&&x>l),initialFocus:true})})]})});Wf.displayName="DateRangePicker";var Fr=e=>String(e).padStart(2,"0"),_f=$__namespace.forwardRef(({value:e,onValueChange:t,placeholder:a="Pick a time",use24Hour:r=true,minuteStep:n=1,disabled:i=false,className:s},l)=>{let[d,m]=$__namespace.useState(false),u=r?Array.from({length:24},(f,x)=>x):Array.from({length:12},(f,x)=>x+1),p=Array.from({length:Math.floor(60/n)},(f,x)=>x*n),g=f=>{if(!f)return a;if(r)return `${Fr(f.hours)}:${Fr(f.minutes)}`;let x=f.hours%12||12,C=f.hours>=12?"PM":"AM";return `${Fr(x)}:${Fr(f.minutes)} ${C}`},c=f=>{let x=e?.minutes??0,C=f;if(!r&&e){let y=e.hours>=12;y&&f!==12?C=f+12:!y&&f===12&&(C=0);}t?.({hours:C,minutes:x});},v=f=>{let x=e?.hours??0;t?.({hours:x,minutes:f});},N=f=>{if(!e)return;let x=e.hours;f==="AM"&&e.hours>=12?x=e.hours-12:f==="PM"&&e.hours<12&&(x=e.hours+12),t?.({hours:x,minutes:e.minutes});},b=()=>{let f=new Date;t?.({hours:f.getHours(),minutes:f.getMinutes()});},h=e?e.hours>=12?"PM":"AM":void 0,R=e?r?e.hours:e.hours%12||12:void 0;return jsxRuntime.jsxs(ve,{open:d,onOpenChange:m,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{ref:l,variant:"bordered",disabled:i,className:o("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"}),g(e)]})}),jsxRuntime.jsxs(ue,{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(dt,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:u.map(f=>jsxRuntime.jsx(O,{variant:R===f?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>c(f),children:Fr(f)},f))})})]}),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(dt,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:p.map(f=>jsxRuntime.jsx(O,{variant:e?.minutes===f?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>v(f),children:Fr(f)},f))})})]}),!r&&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(O,{variant:h==="AM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>N("AM"),children:"AM"}),jsxRuntime.jsx(O,{variant:h==="PM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>N("PM"),children:"PM"})]})]})]}),jsxRuntime.jsxs("div",{className:"flex justify-between border-t p-2",children:[jsxRuntime.jsx(O,{variant:"ghost",size:"sm",onClick:b,children:"Now"}),jsxRuntime.jsx(O,{size:"sm",onClick:()=>m(false),children:"Done"})]})]})]})});_f.displayName="TimePicker";var Kf=classVarianceAuthority.cva("overflow-auto",{variants:{variant:{default:"",bordered:"border rounded-lg",cards:""}},defaultVariants:{variant:"default"}});function RN({className:e,variant:t,items:a,itemHeight:r,height:n,overscan:i=3,renderItem:s,getItemKey:l,gap:d=0,onScrollChange:m,...u},p){let g=$__namespace.useRef(null),[c,v]=$__namespace.useState(0);$__namespace.useImperativeHandle(p,()=>g.current);let N=a.length*(r+d)-d,b=r+d,h=Math.max(0,Math.floor(c/b)-i),R=Math.ceil(n/b)+2*i,f=Math.min(a.length-1,h+R),x=y=>{let S=y.currentTarget.scrollTop;v(S),m?.(S);},C=$__namespace.useMemo(()=>{let y=[];for(let S=h;S<=f;S++)a[S]!==void 0&&y.push({item:a[S],index:S,style:{position:"absolute",top:S*b,left:0,right:0,height:r}});return y},[a,h,f,b,r]);return jsxRuntime.jsx("div",{ref:g,className:o(Kf({variant:t,className:e})),style:{height:n,position:"relative"},onScroll:x,...u,children:jsxRuntime.jsx("div",{style:{height:N,position:"relative"},children:C.map(({item:y,index:S,style:T})=>jsxRuntime.jsx("div",{style:T,children:s(y,S)},l?l(y,S):S))})})}var wN=$__namespace.forwardRef(RN);var Yf=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"border rounded-lg overflow-hidden"}},defaultVariants:{variant:"default"}}),_s=classVarianceAuthority.cva("flex items-center justify-center py-4",{variants:{size:{sm:"py-2",md:"py-4",lg:"py-6"}},defaultVariants:{size:"md"}}),jf=$__namespace.forwardRef(({className:e,variant:t,size:a,children:r,onLoadMore:n,hasMore:i,isLoading:s=false,loader:l,threshold:d=100,rootMargin:m,useWindow:u=false,endMessage:p,...g},c)=>{let v=$__namespace.useRef(null),N=$__namespace.useRef(null),b=$__namespace.useRef(false);$__namespace.useImperativeHandle(c,()=>v.current),$__namespace.useEffect(()=>{let R=N.current;if(!R)return;let f=new IntersectionObserver(x=>{let[C]=x;C.isIntersecting&&i&&!s&&!b.current&&(b.current=true,Promise.resolve(n()).finally(()=>{b.current=false;}));},{root:u?null:v.current,rootMargin:m||`${d}px`,threshold:0});return f.observe(R),()=>{f.disconnect();}},[i,s,n,d,m,u]);let h=jsxRuntime.jsx("div",{className:o(_s({size:a})),children:jsxRuntime.jsx(lucideReact.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})});return jsxRuntime.jsxs("div",{ref:v,className:o(Yf({variant:t,className:e})),...g,children:[r,jsxRuntime.jsx("div",{ref:N,className:"h-px w-full"}),s&&(l||h),!i&&!s&&p&&jsxRuntime.jsx("div",{className:o(_s({size:a}),"text-muted-foreground text-sm"),children:p})]})});jf.displayName="InfiniteScroll";var Zf=classVarianceAuthority.cva("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"),Ks=classVarianceAuthority.cva("fixed left-[50%] top-[50%] z-50 grid 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",{variants:{size:{sm:"w-full max-w-sm",md:"w-full max-w-lg",lg:"w-full max-w-2xl",xl:"w-full max-w-4xl",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)] max-w-none"}},defaultVariants:{size:"md"}}),Qf=$__namespace.forwardRef(({open:e,onOpenChange:t,children:a,trigger:r,title:n,description:i,footer:s,showCloseButton:l=true,closeOnOverlayClick:d=true,closeOnEscape:m=true,size:u,className:p,contentClassName:g},c)=>jsxRuntime.jsxs(oe__namespace.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(oe__namespace.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(oe__namespace.Portal,{children:[jsxRuntime.jsx(oe__namespace.Overlay,{className:o(Zf(),p),onClick:d?void 0:v=>v.stopPropagation()}),jsxRuntime.jsxs(oe__namespace.Content,{ref:c,className:o(Ks({size:u}),g),onEscapeKeyDown:m?void 0:v=>v.preventDefault(),onPointerDownOutside:d?void 0:v=>v.preventDefault(),children:[(n||i)&&jsxRuntime.jsxs("div",{className:"flex flex-col space-y-1.5 text-center sm:text-left",children:[n&&jsxRuntime.jsx(oe__namespace.Title,{className:"text-lg font-semibold leading-none tracking-tight",children:n}),i&&jsxRuntime.jsx(oe__namespace.Description,{className:"text-sm text-muted-foreground",children:i})]}),a,s&&jsxRuntime.jsx("div",{className:"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",children:s}),l&&jsxRuntime.jsxs(oe__namespace.Close,{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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]})]}));Qf.displayName="Modal";var CN=oe__namespace.Root,SN=oe__namespace.Trigger,Jf=oe__namespace.Portal,TN=oe__namespace.Close,Us=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Overlay,{ref:a,className:o(Zf(),e),...t}));Us.displayName="ModalOverlay";var eg=$__namespace.forwardRef(({className:e,children:t,size:a,showCloseButton:r=true,...n},i)=>jsxRuntime.jsxs(Jf,{children:[jsxRuntime.jsx(Us,{}),jsxRuntime.jsxs(oe__namespace.Content,{ref:i,className:o(Ks({size:a}),e),...n,children:[t,r&&jsxRuntime.jsxs(oe__namespace.Close,{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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));eg.displayName="ModalContent";var tg=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});tg.displayName="ModalHeader";var ag=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ag.displayName="ModalFooter";var rg=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));rg.displayName="ModalTitle";var og=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));og.displayName="ModalDescription";var ig=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"}}),IN=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"}}),EN={default:lucideReact.HelpCircle,danger:lucideReact.XCircle,warning:lucideReact.AlertTriangle,success:lucideReact.CheckCircle,info:lucideReact.Info},Ys=$__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r,description:n,confirmText:i="Confirm",cancelText:s="Cancel",onConfirm:l,onCancel:d,showIcon:m=true,icon:u,variant:p="default",loading:g=false,disabled:c=false,className:v},N)=>{let[b,h]=$__namespace.useState(false),R=EN[p||"default"],f=async()=>{if(l){let y=l();if(y instanceof Promise){h(true);try{await y;}finally{h(false);}}}},x=()=>{d?.();},C=g||b;return jsxRuntime.jsxs(le__namespace.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(le__namespace.Trigger,{asChild:true,children:a}),jsxRuntime.jsxs(le__namespace.Portal,{children:[jsxRuntime.jsx(le__namespace.Overlay,{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"}),jsxRuntime.jsxs(le__namespace.Content,{ref:N,className:o("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",v),children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:items-start",children:[m&&jsxRuntime.jsx("div",{className:o(ig({variant:p})),children:u||jsxRuntime.jsx(R,{className:"h-6 w-6"})}),jsxRuntime.jsxs("div",{className:"flex flex-col space-y-2 text-center sm:text-left",children:[jsxRuntime.jsx(le__namespace.Title,{className:"text-lg font-semibold",children:r}),n&&jsxRuntime.jsx(le__namespace.Description,{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(le__namespace.Cancel,{className:o(Me({variant:"bordered"})),onClick:x,disabled:C,children:s}),jsxRuntime.jsx(le__namespace.Action,{className:o(Me(),IN({variant:p}),C&&"opacity-50 cursor-not-allowed"),onClick:f,disabled:c||C,children:C?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..."]}):i})]})]})]})]})});Ys.displayName="ConfirmDialog";function HN(){let[e,t]=$__namespace.useState({open:false,options:null,resolve:null}),a=$__namespace.useCallback(l=>new Promise(d=>{t({open:true,options:l,resolve:d});}),[]),r=$__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]),i=$__namespace.useCallback(l=>{l||(e.resolve?.(false),t({open:false,options:null,resolve:null}));},[e.resolve]),s=$__namespace.useMemo(()=>e.options?jsxRuntime.jsx(Ys,{open:e.open,onOpenChange:i,title:e.options.title,description:e.options.description,confirmText:e.options.confirmText,cancelText:e.options.cancelText,variant:e.options.variant,onConfirm:r,onCancel:n}):null,[e,r,n,i]);return {confirm:a,ConfirmDialog:s}}var KN=e=>e.map(t=>typeof t=="string"?{src:t}:t),Xs=$__namespace.forwardRef(({images:e,open:t,onOpenChange:a,initialIndex:r=0,onIndexChange:n,trigger:i,showThumbnails:s=true,showZoom:l=true,showRotate:d=true,showDownload:m=true,showFullscreen:u=true,showNavigation:p=true,showCounter:g=true,closeOnBackdropClick:c=true,className:v},N)=>{let b=$__namespace.useMemo(()=>KN(e),[e]),[h,R]=$__namespace.useState(r),[f,x]=$__namespace.useState(1),[C,y]=$__namespace.useState(0),[S,T]=$__namespace.useState(false),[k,w]=$__namespace.useState(false),[P,D]=$__namespace.useState({x:0,y:0}),[M,I]=$__namespace.useState({x:0,y:0}),L=$__namespace.useRef(null),V=b[h];$__namespace.useEffect(()=>{R(r);},[r]),$__namespace.useEffect(()=>{n?.(h);},[h,n]),$__namespace.useEffect(()=>{x(1),y(0),D({x:0,y:0});},[h]);let E=$__namespace.useCallback(()=>{R(W=>W>0?W-1:b.length-1);},[b.length]),A=$__namespace.useCallback(()=>{R(W=>W<b.length-1?W+1:0);},[b.length]),B=()=>{x(W=>Math.min(W+.5,4));},H=()=>{x(W=>{let ge=Math.max(W-.5,.5);return ge===1&&D({x:0,y:0}),ge});},Q=()=>{y(W=>(W+90)%360);},te=async()=>{if(V)try{let ge=await(await fetch(V.src)).blob(),io=URL.createObjectURL(ge),so=document.createElement("a");so.href=io,so.download=V.alt||`image-${h+1}`,document.body.appendChild(so),so.click(),document.body.removeChild(so),URL.revokeObjectURL(io);}catch{window.open(V.src,"_blank");}},J=async()=>{if(L.current)if(S)try{await document.exitFullscreen(),T(!1);}catch{}else try{await L.current.requestFullscreen(),T(!0);}catch{}},nt=W=>{f>1&&(w(true),I({x:W.clientX-P.x,y:W.clientY-P.y}));},z=W=>{k&&f>1&&D({x:W.clientX-M.x,y:W.clientY-M.y});},F=()=>{w(false);},ae=$__namespace.useCallback(W=>{switch(W.key){case "ArrowLeft":E();break;case "ArrowRight":A();break;case "Escape":a?.(false);break;case "+":case "=":B();break;case "-":H();break}},[E,A,a]);return $__namespace.useEffect(()=>{if(t)return window.addEventListener("keydown",ae),()=>window.removeEventListener("keydown",ae)},[t,ae]),$__namespace.useEffect(()=>{let W=()=>{T(!!document.fullscreenElement);};return document.addEventListener("fullscreenchange",W),()=>document.removeEventListener("fullscreenchange",W)},[]),b.length===0?null:jsxRuntime.jsxs(oe__namespace.Root,{open:t,onOpenChange:a,children:[i&&jsxRuntime.jsx(oe__namespace.Trigger,{asChild:true,children:i}),jsxRuntime.jsxs(oe__namespace.Portal,{children:[jsxRuntime.jsx(oe__namespace.Overlay,{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",onClick:c?void 0:W=>W.stopPropagation()}),jsxRuntime.jsxs(oe__namespace.Content,{ref:N,className:o("fixed inset-0 z-50 flex flex-col outline-none",v),onPointerDownOutside:c?void 0:W=>W.preventDefault(),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:[g&&b.length>1&&jsxRuntime.jsxs("span",{className:"text-sm",children:[h+1," / ",b.length]}),V?.title&&jsxRuntime.jsx("span",{className:"ml-4 text-sm font-medium",children:V.title})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:H,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(f*100),"%"]}),jsxRuntime.jsx("button",{onClick:B,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom in",children:jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-5 w-5"})})]}),d&&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"})}),m&&jsxRuntime.jsx("button",{onClick:te,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:J,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:S?"Exit fullscreen":"Fullscreen",children:S?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-5 w-5"})}),jsxRuntime.jsxs(oe__namespace.Close,{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:L,className:"relative flex-1 flex items-center justify-center overflow-hidden",onMouseDown:nt,onMouseMove:z,onMouseUp:F,onMouseLeave:F,children:[p&&b.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:E,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:A,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:V?.src,alt:V?.alt||"",className:o("max-h-full max-w-full object-contain transition-transform duration-200",k?"cursor-grabbing":f>1?"cursor-grab":""),style:{transform:`translate(${P.x}px, ${P.y}px) scale(${f}) rotate(${C}deg)`},draggable:false})]}),V?.description&&jsxRuntime.jsx("div",{className:"p-4 text-center text-white text-sm",children:V.description}),s&&b.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-2 p-4 overflow-x-auto",children:b.map((W,ge)=>jsxRuntime.jsx("button",{onClick:()=>R(ge),className:o("h-16 w-16 flex-shrink-0 overflow-hidden rounded border-2 transition-all",h===ge?"border-white opacity-100":"border-transparent opacity-50 hover:opacity-75"),children:jsxRuntime.jsx("img",{src:W.src,alt:W.alt||`Thumbnail ${ge+1}`,className:"h-full w-full object-cover"})},ge))})]})]})]})});Xs.displayName="ImageViewer";var sg=({children:e,images:t,index:a=0,className:r})=>{let[n,i]=$__namespace.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>i(true),className:o("cursor-zoom-in",r),children:e}),jsxRuntime.jsx(Xs,{images:t,open:n,onOpenChange:i,initialIndex:a})]})};sg.displayName="ImageViewerTrigger";var cg=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:{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-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),mg=$__namespace.forwardRef(({className:e,variant:t,size:a,iconSize:r,...n},i)=>{let l=r??{sm:14,md:16,lg:20}[a??"md"];return jsxRuntime.jsx("button",{ref:i,type:"button",className:o(cg({variant:t,size:a}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:l,height:l}})})});mg.displayName="CloseButton";var ug=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"}}),fg=$__namespace.forwardRef(({className:e,variant:t,size:a,color:r,radius:n,loading:i,disabled:s,children:l,...d},m)=>jsxRuntime.jsx("button",{ref:m,type:"button",className:o(ug({variant:t,size:a,color:r,radius:n}),e),disabled:s||i,...d,children:i?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}));fg.displayName="ActionIcon";var vg=({children:e,container:t,disabled:a=false})=>{let[r,n]=$__namespace.useState(false);if($__namespace.useEffect(()=>{n(true);},[]),a||!r)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let i=null;return typeof t=="string"?i=document.querySelector(t):t instanceof Element?i=t:i=document.body,i?reactDom.createPortal(e,i):jsxRuntime.jsx(jsxRuntime.Fragment,{children:e})};vg.displayName="Portal";var hg=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}}),xg=$__namespace.forwardRef(({className:e,color:t,size:a,position:r,ping:n,content:i,show:s=true,offset:l,style:d,...m},u)=>{if(!s)return null;let p=i!=null;return jsxRuntime.jsxs("span",{ref:u,className:o(hg({color:t,size:p?void 0:a,position:r,ping:n}),p&&"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:{...d,...l!==void 0&&{transform:`translate(${r?.includes("right")?l:-l}px, ${r?.includes("top")?-l:l}px)`}},...m,children:[n&&jsxRuntime.jsx("span",{className:o("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")}),i]})});xg.displayName="Indicator";var yg=$__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("relative inline-flex",e),...a,children:t}));yg.displayName="IndicatorWrapper";var wg=classVarianceAuthority.cva("relative overflow-auto",{variants:{orientation:{vertical:"",horizontal:"",both:""},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"vertical",size:"md"}}),Ng=$__namespace.forwardRef(({className:e,orientation:t,size:a,hideScrollbar:r=false,shadowColor:n="rgba(0, 0, 0, 0.1)",children:i,...s},l)=>{let d=$__namespace.useRef(null),[m,u]=$__namespace.useState({top:false,bottom:false,left:false,right:false});$__namespace.useImperativeHandle(l,()=>d.current);let p=$__namespace.useCallback(()=>{let h=d.current;if(!h)return;let{scrollTop:R,scrollLeft:f,scrollHeight:x,scrollWidth:C,clientHeight:y,clientWidth:S}=h;u({top:R>0,bottom:R<x-y-1,left:f>0,right:f<C-S-1});},[]);$__namespace.useEffect(()=>{let h=d.current;if(h)return p(),h.addEventListener("scroll",p),window.addEventListener("resize",p),()=>{h.removeEventListener("scroll",p),window.removeEventListener("resize",p);}},[p]);let c={sm:"20px",md:"40px",lg:"60px"}[a??"md"],v=t==="vertical"||t==="both",N=t==="horizontal"||t==="both",b={maskImage:[v&&m.top&&`linear-gradient(to bottom, transparent, black ${c})`,v&&m.bottom&&`linear-gradient(to top, transparent, black ${c})`,N&&m.left&&`linear-gradient(to right, transparent, black ${c})`,N&&m.right&&`linear-gradient(to left, transparent, black ${c})`].filter(Boolean).join(", ")||void 0,maskComposite:"intersect",WebkitMaskComposite:"source-in"};return jsxRuntime.jsx("div",{ref:d,className:o(wg({orientation:t,size:a}),r&&"scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",e),style:b,...s,children:i})});Ng.displayName="ScrollShadow";var Sg=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Cg__namespace.Root,{ref:a,className:o(e),...t}));Sg.displayName="VisuallyHidden";var Tg=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"}}),rP={cmd:"\u2318",command:"\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"},oP=e=>{let t=e.toLowerCase();return rP[t]||e.toUpperCase()},Mg=$__namespace.forwardRef(({className:e,variant:t,size:a,keys:r,children:n,...i},s)=>{let l=()=>r?(Array.isArray(r)?r:[r]).map((m,u)=>jsxRuntime.jsxs($__namespace.Fragment,{children:[u>0&&jsxRuntime.jsx("span",{className:"mx-0.5 text-muted-foreground",children:"+"}),jsxRuntime.jsx("span",{children:oP(m)})]},u)):n;return jsxRuntime.jsx("kbd",{ref:s,className:o(Tg({variant:t,size:a}),e),...i,children:l()})});Mg.displayName="Kbd";var Dg=$__namespace.forwardRef(({className:e,size:t,axis:a="both",style:r,...n},i)=>{let s=typeof t=="number"?`${t}px`:t,l={...r,...t?{width:a==="vertical"?void 0:s,height:a==="horizontal"?void 0:s,minWidth:a==="vertical"?void 0:s,minHeight:a==="horizontal"?void 0:s,flexShrink:0}:{flex:"1 1 auto"}};return jsxRuntime.jsx("div",{ref:i,"aria-hidden":"true",className:o(e),style:l,...n})});Dg.displayName="Spacer";var Vg=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"}}),Lg=$__namespace.forwardRef(({className:e,variant:t,size:a,value:r,successDuration:n=2e3,onCopySuccess:i,onCopyError:s,copyIcon:l,successIcon:d,...m},u)=>{let[p,g]=$__namespace.useState(false),c={sm:14,md:16,lg:20}[a??"md"],v=async()=>{try{await navigator.clipboard.writeText(r),g(!0),i?.(),setTimeout(()=>{g(!1);},n);}catch(N){s?.(N);}};return jsxRuntime.jsx("button",{ref:u,type:"button",className:o(Vg({variant:t,size:a}),e),onClick:v,"aria-label":p?"Copied":"Copy to clipboard",...m,children:p?d??jsxRuntime.jsx(lucideReact.Check,{className:"text-success",style:{width:c,height:c}}):l??jsxRuntime.jsx(lucideReact.Copy,{style:{width:c,height:c}})})});Lg.displayName="CopyButton";var Eg=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"}}),uP=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],fP=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function gP(e,t,a){let r=new Date(e,t,1),n=new Date(e,t+1,0),i=[],s=r.getDay()-a;s<0&&(s+=7);for(let d=s-1;d>=0;d--)i.push(new Date(e,t,-d));for(let d=1;d<=n.getDate();d++)i.push(new Date(e,t,d));let l=42-i.length;for(let d=1;d<=l;d++)i.push(new Date(e,t+1,d));return i}function bP(e,t){let a=[],n=e.getDay()-t;n<0&&(n+=7);let i=new Date(e);i.setDate(e.getDate()-n);for(let s=0;s<7;s++){let l=new Date(i);l.setDate(i.getDate()+s),a.push(l);}return a}function Jn(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Qn(e){return Jn(e,new Date)}function Ig(e,t){return e.filter(a=>{let r=new Date(a.start),n=new Date(a.end);return Jn(r,t)||Jn(n,t)||r<t&&n>t})}var Hg=$__namespace.forwardRef(({className:e,variant:t,size:a,events:r=[],view:n="month",onViewChange:i,date:s,onDateChange:l,onEventClick:d,onSlotClick:m,weekStartsOn:u=0,locale:p="en-US",...g},c)=>{let[v,N]=$__namespace.useState(new Date),b=s??v,h=w=>{l?l(w):N(w);},R=u===1?fP:uP,f=()=>{let w=new Date(b);n==="month"?w.setMonth(w.getMonth()-1):n==="week"?w.setDate(w.getDate()-7):w.setDate(w.getDate()-1),h(w);},x=()=>{let w=new Date(b);n==="month"?w.setMonth(w.getMonth()+1):n==="week"?w.setDate(w.getDate()+7):w.setDate(w.getDate()+1),h(w);},C=()=>{h(new Date);},y=()=>n==="day"?b.toLocaleDateString(p,{weekday:"long",year:"numeric",month:"long",day:"numeric"}):b.toLocaleDateString(p,{year:"numeric",month:"long"}),S=()=>{let w=gP(b.getFullYear(),b.getMonth(),u);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col",children:[jsxRuntime.jsx("div",{className:"grid grid-cols-7 border-b",children:R.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:w.map((P,D)=>{let M=Ig(r,P),I=P.getMonth()===b.getMonth();return jsxRuntime.jsxs("div",{className:o("min-h-[80px] border-b border-r p-1 cursor-pointer hover:bg-accent/50 transition-colors",!I&&"bg-muted/30"),onClick:()=>m?.(P),children:[jsxRuntime.jsx("div",{className:o("flex items-center justify-center w-7 h-7 rounded-full text-sm mb-1",Qn(P)&&"bg-primary text-primary-foreground",!I&&"text-muted-foreground"),children:P.getDate()}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[M.slice(0,3).map(L=>jsxRuntime.jsx("div",{className:"text-xs px-1 py-0.5 rounded truncate cursor-pointer hover:opacity-80",style:{backgroundColor:L.color||"hsl(var(--primary))",color:"white"},onClick:V=>{V.stopPropagation(),d?.(L);},children:L.title},L.id)),M.length>3&&jsxRuntime.jsxs("div",{className:"text-xs text-muted-foreground px-1",children:["+",M.length-3," more"]})]})]},D)})})]})},T=()=>{let w=bP(b,u),P=Array.from({length:24},(D,M)=>M);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"}),w.map((D,M)=>jsxRuntime.jsxs("div",{className:o("p-2 text-center border-l",Qn(D)&&"bg-primary/10"),children:[jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground",children:R[M]}),jsxRuntime.jsx("div",{className:o("text-lg font-semibold",Qn(D)&&"text-primary"),children:D.getDate()})]},M))]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_repeat(7,1fr)]",children:P.map(D=>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:[D.toString().padStart(2,"0"),":00"]}),w.map((M,I)=>{let L=new Date(M);L.setHours(D,0,0,0);let V=r.filter(E=>{let A=new Date(E.start);return Jn(A,M)&&A.getHours()===D});return jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(L),children:V.map(E=>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:E.color||"hsl(var(--primary))",color:"white"},onClick:A=>{A.stopPropagation(),d?.(E);},children:E.title},E.id))},I)})]},D))})})]})},k=()=>{let w=Array.from({length:24},(D,M)=>M),P=Ig(r,b);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:o("inline-flex items-center justify-center w-12 h-12 rounded-full text-2xl font-semibold",Qn(b)&&"bg-primary text-primary-foreground"),children:b.getDate()})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_1fr]",children:w.map(D=>{let M=new Date(b);M.setHours(D,0,0,0);let I=P.filter(L=>new Date(L.start).getHours()===D);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:[D.toString().padStart(2,"0"),":00"]}),jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(M),children:I.map(L=>jsxRuntime.jsx("div",{className:"absolute inset-x-1 top-0.5 text-xs px-2 py-1 rounded truncate cursor-pointer",style:{backgroundColor:L.color||"hsl(var(--primary))",color:"white"},onClick:V=>{V.stopPropagation(),d?.(L);},children:L.title},L.id))})]},D)})})})]})};return jsxRuntime.jsxs("div",{ref:c,className:o(Eg({variant:t,size:a,className:e})),...g,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(O,{variant:"bordered",size:"sm",onClick:C,children:"Today"}),jsxRuntime.jsx(O,{variant:"ghost",size:"icon",onClick:f,children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(O,{variant:"ghost",size:"icon",onClick:x,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),jsxRuntime.jsx("h2",{className:"text-lg font-semibold ml-2",children:y()})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-1 border rounded-lg p-1",children:["month","week","day"].map(w=>jsxRuntime.jsx(O,{variant:n===w?"solid":"ghost",size:"sm",onClick:()=>i?.(w),children:w.charAt(0).toUpperCase()+w.slice(1)},w))})]}),n==="month"&&S(),n==="week"&&T(),n==="day"&&k()]})});Hg.displayName="FullCalendar";var Bo=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"h-48",md:"h-64",lg:"h-96"}},defaultVariants:{size:"md"}}),Fo=["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%))"],Ag=$__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Fo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",curveType:m="monotone",...u},p)=>jsxRuntime.jsx("div",{ref:p,className:o(Bo({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.LineChart,{data:a,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:d,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,{}),r.map((g,c)=>jsxRuntime.jsx(recharts.Line,{type:m,dataKey:g,stroke:n[c%n.length],strokeWidth:2,dot:{fill:n[c%n.length],strokeWidth:0},activeDot:{r:6}},g))]})})}));Ag.displayName="LineChart";var zg=$__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Fo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,layout:u="horizontal",...p},g)=>jsxRuntime.jsx("div",{ref:g,className:o(Bo({size:t,className:e})),...p,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.BarChart,{data:a,layout:u,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:u==="horizontal"?d:void 0,type:u==="horizontal"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{dataKey:u==="vertical"?d: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,{}),r.map((c,v)=>jsxRuntime.jsx(recharts.Bar,{dataKey:c,fill:n[v%n.length],stackId:m?"stack":void 0,radius:[4,4,0,0]},c))]})})}));zg.displayName="BarChart";var Bg=$__namespace.forwardRef(({className:e,size:t,data:a,dataKey:r="value",nameKey:n="name",colors:i=Fo,innerRadius:s=0,outerRadius:l=80,showLegend:d=true,showTooltip:m=true,showLabels:u=false,...p},g)=>jsxRuntime.jsx("div",{ref:g,className:o(Bo({size:t,className:e})),...p,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.PieChart,{children:[m&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"}}),d&&jsxRuntime.jsx(recharts.Legend,{}),jsxRuntime.jsx(recharts.Pie,{data:a,dataKey:r,nameKey:n,cx:"50%",cy:"50%",innerRadius:s,outerRadius:l,label:u,labelLine:u,children:a.map((c,v)=>jsxRuntime.jsx(recharts.Cell,{fill:i[v%i.length]},`cell-${v}`))})]})})}));Bg.displayName="PieChart";var Fg=$__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Fo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,curveType:u="monotone",...p},g)=>jsxRuntime.jsx("div",{ref:g,className:o(Bo({size:t,className:e})),...p,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.AreaChart,{data:a,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:d,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,{}),r.map((c,v)=>jsxRuntime.jsx(recharts.Area,{type:u,dataKey:c,stroke:n[v%n.length],fill:n[v%n.length],fillOpacity:.3,stackId:m?"stack":void 0},c))]})})}));Fg.displayName="AreaChart";var $g=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"}}),Wg=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 FP({card:e,columnId:t,variant:a,renderCard:r,onCardClick:n}){let{attributes:i,listeners:s,setNodeRef:l,transform:d,transition:m,isDragging:u}=sortable.useSortable({id:e.id,data:{columnId:t}}),p={transform:utilities.CSS.Transform.toString(d),transition:m};return jsxRuntime.jsx("div",{ref:l,style:p,className:o(ol({variant:a,isDragging:u})),onClick:()=>n?.(e,t),...i,...s,children:r?r(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 OP({column:e,variant:t,renderCard:a,onCardClick:r,onAddCard:n,showAddCard:i,columnHeight:s}){return jsxRuntime.jsxs("div",{className:o(Wg({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})]}),i&&jsxRuntime.jsx(O,{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(dt,{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(FP,{card:l,columnId:e.id,variant:t,renderCard:a,onCardClick:r},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 _g=$__namespace.forwardRef(({className:e,variant:t,columns:a,onCardMove:r,onCardClick:n,onAddCard:i,renderCard:s,showAddCard:l=true,columnHeight:d=500,...m},u)=>{let[p,g]=$__namespace.useState(null),[c,v]=$__namespace.useState(null),N=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:8}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),b=x=>a.find(C=>C.cards.some(y=>y.id===x));return jsxRuntime.jsxs(core.DndContext,{sensors:N,collisionDetection:core.closestCorners,onDragStart:x=>{let{active:C}=x,y=b(C.id);if(y){let S=y.cards.find(T=>T.id===C.id);S&&(g(S),v(y.id));}},onDragOver:x=>{let{active:C,over:y}=x;if(!y)return;let S=C.id,T=y.id,k=b(S),w=b(T)||a.find(M=>M.id===T);if(!k||!w||k.id===w.id)return;let P=w.cards.findIndex(M=>M.id===T),D=P===-1?w.cards.length:P;r?.(S,k.id,w.id,D);},onDragEnd:x=>{let{active:C,over:y}=x;if(y&&C.id!==y.id){let S=b(C.id),T=b(y.id)||a.find(k=>k.id===y.id);if(S&&T){let k=T.cards.findIndex(P=>P.id===y.id),w=k===-1?T.cards.length:k;r?.(C.id,S.id,T.id,w);}}g(null),v(null);},children:[jsxRuntime.jsx("div",{ref:u,className:o($g({variant:t,className:e})),...m,children:a.map(x=>jsxRuntime.jsx(OP,{column:x,variant:t,renderCard:s,onCardClick:n,onAddCard:i,showAddCard:l,columnHeight:d},x.id))}),jsxRuntime.jsx(core.DragOverlay,{children:p&&c&&jsxRuntime.jsx("div",{className:o(ol({variant:t,isDragging:true})),children:s?s(p,c):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:p.title}),p.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:p.description})]})]})})})]})});_g.displayName="KanbanBoard";var Kg=classVarianceAuthority.cva("relative",{variants:{variant:{default:"",bordered:"border rounded-lg p-4",cards:"rounded-lg"}},defaultVariants:{variant:"default"}}),Ug=$__namespace.createContext(null);function nl(){let e=$__namespace.useContext(Ug);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Yg=$__namespace.forwardRef(({className:e,variant:t,children:a,opts:r,plugins:n,orientation:i="horizontal",showArrows:s=true,showDots:l=true,setApi:d,...m},u)=>{let[p,g]=GP__default.default({...r,axis:i==="horizontal"?"x":"y"},n),[c,v]=$__namespace.useState(false),[N,b]=$__namespace.useState(false),[h,R]=$__namespace.useState(0),[f,x]=$__namespace.useState([]),C=$__namespace.useCallback(w=>{w&&(R(w.selectedScrollSnap()),v(w.canScrollPrev()),b(w.canScrollNext()));},[]),y=$__namespace.useCallback(()=>{g?.scrollPrev();},[g]),S=$__namespace.useCallback(()=>{g?.scrollNext();},[g]),T=$__namespace.useCallback(w=>{g?.scrollTo(w);},[g]),k=$__namespace.useCallback(w=>{w.key==="ArrowLeft"?(w.preventDefault(),y()):w.key==="ArrowRight"&&(w.preventDefault(),S());},[y,S]);return $__namespace.useEffect(()=>{!g||!d||d(g);},[g,d]),$__namespace.useEffect(()=>{if(g)return x(g.scrollSnapList()),C(g),g.on("reInit",C),g.on("select",C),()=>{g?.off("select",C);}},[g,C]),jsxRuntime.jsx(Ug.Provider,{value:{carouselRef:p,api:g,scrollPrev:y,scrollNext:S,canScrollPrev:c,canScrollNext:N,selectedIndex:h,scrollSnaps:f,scrollTo:T},children:jsxRuntime.jsxs("div",{ref:u,className:o(Kg({variant:t,className:e})),onKeyDownCapture:k,role:"region","aria-roledescription":"carousel",...m,children:[jsxRuntime.jsx("div",{ref:p,className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:o("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col"),children:a})}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(il,{}),jsxRuntime.jsx(sl,{})]}),l&&f.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:f.map((w,P)=>jsxRuntime.jsx("button",{className:o("w-2 h-2 rounded-full transition-all",P===h?"bg-primary w-4":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),onClick:()=>T(P),"aria-label":`Go to slide ${P+1}`},P))})]})})});Yg.displayName="Carousel";var jg=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex",e),...t}));jg.displayName="CarouselContent";var Xg=$__namespace.forwardRef(({className:e,basis:t="basis-full",...a},r)=>jsxRuntime.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:o("min-w-0 shrink-0 grow-0 pl-4",t,e),...a}));Xg.displayName="CarouselItem";var il=$__namespace.forwardRef(({className:e,variant:t="bordered",size:a="icon",...r},n)=>{let{scrollPrev:i,canScrollPrev:s}=nl();return jsxRuntime.jsxs(O,{ref:n,variant:t,size:a,className:o("absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...r,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous slide"})]})});il.displayName="CarouselPrevious";var sl=$__namespace.forwardRef(({className:e,variant:t="bordered",size:a="icon",...r},n)=>{let{scrollNext:i,canScrollNext:s}=nl();return jsxRuntime.jsxs(O,{ref:n,variant:t,size:a,className:o("absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...r,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next slide"})]})});sl.displayName="CarouselNext";var qg=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"}}),ni={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"}},dl={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}"]},Zg=$__namespace.forwardRef(({className:e,size:t,onEmojiSelect:a,recentEmojis:r=[],defaultCategory:n="smileys",showSearch:i=true,showCategories:s=true,...l},d)=>{let[m,u]=$__namespace.useState(r.length>0?"recent":n),[p,g]=$__namespace.useState(""),v=p?Object.values(dl).flat().filter(b=>b.toLowerCase().includes(p.toLowerCase())):m==="recent"?r:dl[m]||[],N=b=>{a?.(b);};return jsxRuntime.jsxs("div",{ref:d,className:o(qg({size:t,className:e})),...l,children:[i&&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(nn,{placeholder:"Search emojis...",value:p,onChange:b=>g(b.target.value),className:"pl-8 h-8"})]})}),s&&!p&&jsxRuntime.jsx("div",{className:"flex border-b px-1",children:Object.entries(ni).map(([b,{icon:h}])=>b==="recent"&&r.length===0?null:jsxRuntime.jsx("button",{className:o("flex-1 p-2 text-lg hover:bg-accent rounded transition-colors",m===b&&"bg-accent"),onClick:()=>u(b),title:ni[b].name,children:h},b))}),!p&&jsxRuntime.jsx("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground",children:ni[m].name}),jsxRuntime.jsx(dt,{className:"flex-1",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-8 gap-1 p-2",children:[v.map((b,h)=>jsxRuntime.jsx("button",{className:"w-8 h-8 flex items-center justify-center text-xl hover:bg-accent rounded transition-colors",onClick:()=>N(b),children:b},`${b}-${h}`)),v.length===0&&jsxRuntime.jsx("div",{className:"col-span-8 py-8 text-center text-muted-foreground text-sm",children:"No emojis found"})]})})]})});Zg.displayName="EmojiPicker";var Qg=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"}}),xC=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"}}),yC=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"}}),Pe=({icon:e,title:t,isActive:a,onClick:r,disabled:n})=>jsxRuntime.jsxs($a,{children:[jsxRuntime.jsx(Wa,{asChild:true,children:jsxRuntime.jsx(O,{type:"button",variant:a?"solid":"ghost",size:"icon",className:"h-7 w-7",onClick:r,disabled:n,children:e})}),jsxRuntime.jsx(pa,{side:"top",className:"text-xs",children:t})]}),Jg=$__namespace.forwardRef(({className:e,variant:t,size:a,value:r="",onChange:n,placeholder:i="Start writing...",readOnly:s=false,showToolbar:l=true,minHeight:d,maxHeight:m,onEditorReady:u,...p},g)=>{let c=react.useEditor({extensions:[qP__default.default.configure({heading:{levels:[1,2,3]}}),ZP__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-primary underline"}}),QP__default.default,JP__default.default.configure({types:["heading","paragraph"]}),eC__default.default.configure({placeholder:i})],content:r,editable:!s,onUpdate:({editor:N})=>{n?.(N.getHTML());},onCreate:({editor:N})=>{u?.(N);}});$__namespace.useEffect(()=>{c&&r!==c.getHTML()&&c.commands.setContent(r);},[r,c]),$__namespace.useEffect(()=>{c&&c.setEditable(!s);},[s,c]);let v=()=>{if(!c)return;let N=c.getAttributes("link").href,b=window.prompt("URL",N);if(b!==null){if(b===""){c.chain().focus().extendMarkRange("link").unsetLink().run();return}c.chain().focus().extendMarkRange("link").setLink({href:b}).run();}};return c?jsxRuntime.jsx(Ga,{children:jsxRuntime.jsxs("div",{ref:g,className:o(Qg({variant:t,size:a,className:e})),...p,children:[l&&!s&&jsxRuntime.jsxs("div",{className:o(xC({size:a})),children:[jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Undo,{className:"h-4 w-4"}),title:"Undo",onClick:()=>c.chain().focus().undo().run(),disabled:!c.can().undo()}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Redo,{className:"h-4 w-4"}),title:"Redo",onClick:()=>c.chain().focus().redo().run(),disabled:!c.can().redo()}),jsxRuntime.jsx(ma,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Heading1,{className:"h-4 w-4"}),title:"Heading 1",isActive:c.isActive("heading",{level:1}),onClick:()=>c.chain().focus().toggleHeading({level:1}).run()}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Heading2,{className:"h-4 w-4"}),title:"Heading 2",isActive:c.isActive("heading",{level:2}),onClick:()=>c.chain().focus().toggleHeading({level:2}).run()}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Heading3,{className:"h-4 w-4"}),title:"Heading 3",isActive:c.isActive("heading",{level:3}),onClick:()=>c.chain().focus().toggleHeading({level:3}).run()}),jsxRuntime.jsx(ma,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Bold,{className:"h-4 w-4"}),title:"Bold (Ctrl+B)",isActive:c.isActive("bold"),onClick:()=>c.chain().focus().toggleBold().run()}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Italic,{className:"h-4 w-4"}),title:"Italic (Ctrl+I)",isActive:c.isActive("italic"),onClick:()=>c.chain().focus().toggleItalic().run()}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Underline,{className:"h-4 w-4"}),title:"Underline (Ctrl+U)",isActive:c.isActive("underline"),onClick:()=>c.chain().focus().toggleUnderline().run()}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Strikethrough,{className:"h-4 w-4"}),title:"Strikethrough",isActive:c.isActive("strike"),onClick:()=>c.chain().focus().toggleStrike().run()}),jsxRuntime.jsx(ma,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.List,{className:"h-4 w-4"}),title:"Bullet List",isActive:c.isActive("bulletList"),onClick:()=>c.chain().focus().toggleBulletList().run()}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.ListOrdered,{className:"h-4 w-4"}),title:"Numbered List",isActive:c.isActive("orderedList"),onClick:()=>c.chain().focus().toggleOrderedList().run()}),jsxRuntime.jsx(ma,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.AlignLeft,{className:"h-4 w-4"}),title:"Align Left",isActive:c.isActive({textAlign:"left"}),onClick:()=>c.chain().focus().setTextAlign("left").run()}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.AlignCenter,{className:"h-4 w-4"}),title:"Align Center",isActive:c.isActive({textAlign:"center"}),onClick:()=>c.chain().focus().setTextAlign("center").run()}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.AlignRight,{className:"h-4 w-4"}),title:"Align Right",isActive:c.isActive({textAlign:"right"}),onClick:()=>c.chain().focus().setTextAlign("right").run()}),jsxRuntime.jsx(ma,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Quote,{className:"h-4 w-4"}),title:"Blockquote",isActive:c.isActive("blockquote"),onClick:()=>c.chain().focus().toggleBlockquote().run()}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Code,{className:"h-4 w-4"}),title:"Code Block",isActive:c.isActive("codeBlock"),onClick:()=>c.chain().focus().toggleCodeBlock().run()}),jsxRuntime.jsx(ma,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Link,{className:"h-4 w-4"}),title:"Insert Link",isActive:c.isActive("link"),onClick:v}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Unlink,{className:"h-4 w-4"}),title:"Remove Link",onClick:()=>c.chain().focus().unsetLink().run(),disabled:!c.isActive("link")})]}),jsxRuntime.jsx(react.EditorContent,{editor:c,className:o(yC({size:a})),style:{minHeight:d,maxHeight:m}})]})}):null});Jg.displayName="RichTextEditor";var tb=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 MC(e,t,a){return RC.centerCrop(RC.makeAspectCrop({unit:"%",width:90},a,e,t),e,t)}async function eb(e,t,a=0,r=1){let n=document.createElement("canvas"),i=n.getContext("2d");if(!i)return null;let s=e.naturalWidth/e.width,l=e.naturalHeight/e.height,d=window.devicePixelRatio||1;n.width=Math.floor(t.width*s*d),n.height=Math.floor(t.height*l*d),i.scale(d,d),i.imageSmoothingQuality="high";let m=t.x*s,u=t.y*l,p=a*Math.PI/180,g=e.naturalWidth/2,c=e.naturalHeight/2;return i.save(),i.translate(-m,-u),i.translate(g,c),i.rotate(p),i.scale(r,r),i.translate(-g,-c),i.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),i.restore(),new Promise(v=>{n.toBlob(N=>{v(N);},"image/png");})}var ab=$__namespace.forwardRef(({className:e,variant:t,src:a,aspectRatio:r,onCropChange:n,onCropComplete:i,showZoom:s=true,showRotation:l=true,minZoom:d=1,maxZoom:m=3,circularCrop:u=false,initialCrop:p,...g},c)=>{let v=$__namespace.useRef(null),[N,b]=$__namespace.useState(),[h,R]=$__namespace.useState(),[f,x]=$__namespace.useState(1),[C,y]=$__namespace.useState(0),S=P=>{let{width:D,height:M}=P.currentTarget;if(r){let I=MC(D,M,r);b(I);}else b(p||{unit:"%",x:10,y:10,width:80,height:80});},T=P=>{b(P),n?.(P);},k=async P=>{if(R(P),i&&v.current&&P.width&&P.height){let D=await eb(v.current,P,C,f);i(D);}},w=()=>{y(P=>(P+90)%360);};return $__namespace.useEffect(()=>{h&&v.current&&i&&eb(v.current,h,C,f).then(P=>{i(P);});},[f,C,h,i]),jsxRuntime.jsxs("div",{ref:c,className:o(tb({variant:t,className:e})),...g,children:[jsxRuntime.jsx("div",{className:"flex-1 flex items-center justify-center p-4 bg-muted/30 min-h-[300px]",children:jsxRuntime.jsx(RC__default.default,{crop:N,onChange:T,onComplete:k,aspect:r,circularCrop:u,className:"max-h-[400px]",children:jsxRuntime.jsx("img",{ref:v,src:a,alt:"Crop preview",onLoad:S,style:{transform:`scale(${f}) 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(bn,{value:[f],onValueChange:([P])=>x(P),min:d,max:m,step:.1,className:"flex-1"}),jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-4 w-4 text-muted-foreground"})]}),l&&jsxRuntime.jsx(O,{variant:"bordered",size:"icon",onClick:w,children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-4 w-4"})})]})]})});ab.displayName="ImageCropper";var ul=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"}}),VC={sm:96,md:128,lg:192},ob=$__namespace.forwardRef(({className:e,variant:t,size:a,value:r,qrSize:n,fgColor:i="currentColor",bgColor:s="transparent",level:l="M",includeMargin:d=false,title:m,logo:u,logoSize:p=40,logoPadding:g=4,logoBackgroundColor:c="white",...v},N)=>{let b=n??VC[a??"md"];return r?jsxRuntime.jsx("div",{ref:N,className:o(ul({variant:t,size:a,className:e})),...v,children:jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx(kC__default.default,{value:r,size:b,fgColor:i,bgColor:s,level:l,title:m,style:{padding:d?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:g,backgroundColor:c},children:jsxRuntime.jsx("img",{src:u,alt:"Logo",style:{width:p,height:p,objectFit:"contain"}})})]})}):jsxRuntime.jsx("div",{ref:N,className:o(ul({variant:t,size:a,className:e})),...v,children:jsxRuntime.jsx("div",{className:"flex items-center justify-center bg-muted text-muted-foreground text-xs rounded",style:{width:b,height:b},children:"No data"})})});ob.displayName="QRCode";var nb=({children:e,defaultTheme:t="system",storageKey:a="reever-ui-theme",enableSystem:r=true,disableTransitionOnChange:n=false,attribute:i="class",forcedTheme:s,themes:l=["light","dark"]})=>jsxRuntime.jsx(nextThemes.ThemeProvider,{defaultTheme:t,storageKey:a,enableSystem:r,disableTransitionOnChange:n,attribute:i,forcedTheme:s,themes:l,children:e});nb.displayName="ThemeProvider";var BC=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"",ghost:""},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"ghost",size:"md"}}),ib=$__namespace.forwardRef(({className:e,variant:t="ghost",size:a="md",mode:r="dropdown"},n)=>{let{theme:i,setTheme:s,resolvedTheme:l}=nextThemes.useTheme(),[d,m]=$__namespace.useState(false);$__namespace.useEffect(()=>{m(true);},[]);let u=()=>{let p=["light","dark","system"],c=(p.indexOf(i||"system")+1)%p.length;s(p[c]);};return d?r==="cycle"?jsxRuntime.jsxs(O,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("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(_a,{children:[jsxRuntime.jsx(Ka,{asChild:true,children:jsxRuntime.jsxs(O,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("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(fa,{align:"end",children:[jsxRuntime.jsxs(xt,{onClick:()=>s("light"),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}),jsxRuntime.jsxs(xt,{onClick:()=>s("dark"),children:[jsxRuntime.jsx(lucideReact.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),jsxRuntime.jsxs(xt,{onClick:()=>s("system"),children:[jsxRuntime.jsx(lucideReact.Monitor,{className:"mr-2 h-4 w-4"}),"System"]})]})]}):jsxRuntime.jsxs(O,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("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"})]})});ib.displayName="ThemeToggle";var lb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),db=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}}),cb=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"}}),mb=$__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,startContent:p,endContent:g,id:c,...v},N)=>{let b=$__namespace.useId(),h=c||b,R=`${h}-description`,f=`${h}-error`,x=i&&r;return jsxRuntime.jsxs("div",{className:o(lb({size:s}),e),children:[t&&jsxRuntime.jsxs(_i__namespace.Root,{htmlFor:h,className:o(cb({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:[p&&jsxRuntime.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:p}),jsxRuntime.jsx("input",{ref:N,id:h,"aria-invalid":i,"aria-describedby":x?f:a?R:void 0,"aria-required":n,className:o(db({size:s,isInvalid:i}),p&&"pl-10",g&&"pr-10",d),...v}),g&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:g})]}),a&&!x&&jsxRuntime.jsx("p",{id:R,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),x&&jsxRuntime.jsx("p",{id:f,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});mb.displayName="TextField";var gb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),GC=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 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-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),pb=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"}}),ub=classVarianceAuthority.cva("",{variants:{size:{sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),$C=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"}}),bb=$__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,min:p,max:g,step:c=1,value:v,defaultValue:N,onChange:b,showButtons:h=true,formatOptions:R,disabled:f,id:x,...C},y)=>{let S=$__namespace.useId(),T=x||S,k=`${T}-description`,w=`${T}-error`,[P,D]=$__namespace.useState(N),M=v!==void 0?v:P,I=i&&r,L=$__namespace.useCallback(J=>{J!==void 0&&(p!==void 0&&J<p&&(J=p),g!==void 0&&J>g&&(J=g)),v===void 0&&D(J),b?.(J);},[v,p,g,b]),V=()=>{let J=(M??0)+c;L(J);},E=()=>{let J=(M??0)-c;L(J);},A=J=>{let nt=J.target.value;if(nt==="")L(void 0);else {let z=parseFloat(nt);isNaN(z)||L(z);}},B=J=>{J.key==="ArrowUp"?(J.preventDefault(),V()):J.key==="ArrowDown"&&(J.preventDefault(),E());},H=$__namespace.useMemo(()=>M===void 0?"":R?new Intl.NumberFormat(void 0,R).format(M):M.toString(),[M,R]),Q=p!==void 0&&M!==void 0&&M<=p,te=g!==void 0&&M!==void 0&&M>=g;return jsxRuntime.jsxs("div",{className:o(gb({size:s}),e),children:[t&&jsxRuntime.jsxs(_i__namespace.Root,{htmlFor:T,className:o($C({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:[h&&jsxRuntime.jsx("button",{type:"button",onClick:E,disabled:f||Q,className:o(pb({size:s}),"left-1"),tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:o(ub({size:s}))})}),jsxRuntime.jsx("input",{ref:y,id:T,type:"text",inputMode:"decimal",value:H,onChange:A,onKeyDown:B,"aria-invalid":i,"aria-describedby":I?w:a?k:void 0,"aria-required":n,"aria-valuemin":p,"aria-valuemax":g,"aria-valuenow":M,disabled:f,className:o(GC({size:s,isInvalid:i}),!h&&"px-3",d),...C}),h&&jsxRuntime.jsx("button",{type:"button",onClick:V,disabled:f||te,className:o(pb({size:s}),"right-1"),tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:o(ub({size:s}))})})]}),a&&!I&&jsxRuntime.jsx("p",{id:k,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),I&&jsxRuntime.jsx("p",{id:w,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});bb.displayName="NumberField";var xb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),KC=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}}),vb=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"}}),UC=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"}}),YC=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"}}),yb=$__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:p,defaultValue:g="",onChange:c,onClear:v,onSearch:N,showClearButton:b=true,showSearchIcon:h=true,disabled:R,placeholder:f="Search...",id:x,...C},y)=>{let S=$__namespace.useId(),T=x||S,k=`${T}-description`,w=`${T}-error`,[P,D]=$__namespace.useState(g),M=p!==void 0?p:P,I=i&&r,L=M.length>0,V=B=>{let H=B.target.value;p===void 0&&D(H),c?.(H);},E=()=>{p===void 0&&D(""),c?.(""),v?.();},A=B=>{B.key==="Enter"?(B.preventDefault(),N?.(M)):B.key==="Escape"&&L&&(B.preventDefault(),E());};return jsxRuntime.jsxs("div",{className:o(xb({size:s}),e),children:[t&&jsxRuntime.jsxs(_i__namespace.Root,{htmlFor:T,className:o(UC({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:[h&&jsxRuntime.jsx(lucideReact.Search,{className:o(vb({size:s}),"absolute left-3 top-1/2 -translate-y-1/2")}),jsxRuntime.jsx("input",{ref:y,id:T,type:"search",value:M,onChange:V,onKeyDown:A,placeholder:f,"aria-invalid":i,"aria-describedby":I?w:a?k:void 0,"aria-required":n,disabled:R,className:o(KC({size:s,isInvalid:i}),!h&&"pl-3",!b&&"pr-3",d),...C}),b&&L&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:E,className:o(YC({size:s})),tabIndex:-1,"aria-label":"Clear search",children:jsxRuntime.jsx(lucideReact.X,{className:o(vb({size:s}))})})]}),a&&!I&&jsxRuntime.jsx("p",{id:k,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),I&&jsxRuntime.jsx("p",{id:w,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});yb.displayName="SearchField";var wb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),XC=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-3 py-1.5 text-xs",md:"h-10 pl-10 pr-3 py-2 text-sm",lg:"h-12 pl-12 pr-4 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),qC=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"}}),ZC=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"}}),xl=(e,t="yyyy-MM-dd")=>{if(!e)return "";let a=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(a)).replace("MM",r).replace("dd",n)},QC=e=>{if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},Nb=$__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:p,defaultValue:g,onChange:c,minDate:v,maxDate:N,dateFormat:b="yyyy-MM-dd",showIcon:h=true,disabled:R,id:f,...x},C)=>{let y=$__namespace.useId(),S=f||y,T=`${S}-description`,k=`${S}-error`,[w,P]=$__namespace.useState(g??null),D=p!==void 0?p:w,M=i&&r,I=A=>{let B=QC(A.target.value);p===void 0&&P(B),c?.(B);},L=D?xl(D,"yyyy-MM-dd"):"",V=v?xl(v,"yyyy-MM-dd"):void 0,E=N?xl(N,"yyyy-MM-dd"):void 0;return jsxRuntime.jsxs("div",{className:o(wb({size:s}),e),children:[t&&jsxRuntime.jsxs(_i__namespace.Root,{htmlFor:S,className:o(ZC({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:[h&&jsxRuntime.jsx(lucideReact.Calendar,{className:o(qC({size:s}),"absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none")}),jsxRuntime.jsx("input",{ref:C,id:S,type:"date",value:L,onChange:I,min:V,max:E,"aria-invalid":i,"aria-describedby":M?k:a?T:void 0,"aria-required":n,disabled:R,className:o(XC({size:s,isInvalid:i}),!h&&"pl-3",d),...x})]}),a&&!M&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),M&&jsxRuntime.jsx("p",{id:k,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Nb.displayName="DateField";var Cb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),eS=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-3 py-1.5 text-xs",md:"h-10 pl-10 pr-3 py-2 text-sm",lg:"h-12 pl-12 pr-4 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),tS=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"}}),aS=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"}}),Rl=(e,t)=>{if(!e)return "";let a=String(e.hour).padStart(2,"0"),r=String(e.minute).padStart(2,"0");if(t&&e.second!==void 0){let n=String(e.second).padStart(2,"0");return `${a}:${r}:${n}`}return `${a}:${r}`},rS=(e,t)=>{if(!e)return null;let a=e.split(":");if(a.length<2)return null;let r=parseInt(a[0],10),n=parseInt(a[1],10),i=t&&a[2]?parseInt(a[2],10):void 0;return isNaN(r)||isNaN(n)?null:{hour:r,minute:n,second:i}},Sb=$__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:p,defaultValue:g,onChange:c,minTime:v,maxTime:N,showSeconds:b=false,showIcon:h=true,hourCycle:R=24,disabled:f,id:x,...C},y)=>{let S=$__namespace.useId(),T=x||S,k=`${T}-description`,w=`${T}-error`,[P,D]=$__namespace.useState(g??null),M=p!==void 0?p:P,I=i&&r,L=B=>{let H=rS(B.target.value,b);p===void 0&&D(H),c?.(H);},V=Rl(M,b),E=v?Rl(v,b):void 0,A=N?Rl(N,b):void 0;return jsxRuntime.jsxs("div",{className:o(Cb({size:s}),e),children:[t&&jsxRuntime.jsxs(_i__namespace.Root,{htmlFor:T,className:o(aS({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:[h&&jsxRuntime.jsx(lucideReact.Clock,{className:o(tS({size:s}),"absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none")}),jsxRuntime.jsx("input",{ref:y,id:T,type:"time",value:V,onChange:L,min:E,max:A,step:b?1:60,"aria-invalid":i,"aria-describedby":I?w:a?k:void 0,"aria-required":n,disabled:f,className:o(eS({size:s,isInvalid:i}),!h&&"pl-3",d),...C})]}),a&&!I&&jsxRuntime.jsx("p",{id:k,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),I&&jsxRuntime.jsx("p",{id:w,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Sb.displayName="TimeField";var kb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),oS=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 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-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),nS=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"}}),iS=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"}}),Tb=e=>/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e),sS=e=>(e.startsWith("#")||(e="#"+e),e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.toUpperCase()),Db=$__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:p,defaultValue:g="#000000",onChange:c,showSwatch:v=true,showPicker:N=true,allowAlpha:b=false,disabled:h,id:R,...f},x)=>{let C=$__namespace.useId(),y=R||C,S=`${y}-picker`,T=`${y}-description`,k=`${y}-error`,[w,P]=$__namespace.useState(g),D=p!==void 0?p:w,M=i&&r,I=A=>{let B=A.target.value;B&&!B.startsWith("#")&&(B="#"+B),p===void 0&&P(B),c?.(B);},L=A=>{let B=A.target.value.toUpperCase();p===void 0&&P(B),c?.(B);},V=()=>{if(D&&Tb(D)){let A=sS(D);A!==D&&(p===void 0&&P(A),c?.(A));}},E=Tb(D)?D:"#000000";return jsxRuntime.jsxs("div",{className:o(kb({size:s}),e),children:[t&&jsxRuntime.jsxs(_i__namespace.Root,{htmlFor:y,className:o(iS({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("div",{className:o(nS({size:s})),children:N?jsxRuntime.jsxs("label",{htmlFor:S,className:"block h-full w-full cursor-pointer",children:[jsxRuntime.jsx("input",{id:S,type:"color",value:E,onChange:L,disabled:h,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0",tabIndex:-1}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:E}})]}):jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:E}})}),jsxRuntime.jsx("input",{ref:x,id:y,type:"text",value:D,onChange:I,onBlur:V,placeholder:"#000000",maxLength:b?9:7,"aria-invalid":i,"aria-describedby":M?k:a?T:void 0,"aria-required":n,disabled:h,className:o(oS({size:s,isInvalid:i}),!v&&"pl-3",d),...f})]}),a&&!M&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),M&&jsxRuntime.jsx("p",{id:k,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Db.displayName="ColorField";var Lb=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"}}),Ib=$__namespace.createContext({});function dS(){return $__namespace.useContext(Ib)}var Eb=$__namespace.forwardRef(({className:e,variant:t,orientation:a,spacing:r,disabled:n,children:i,...s},l)=>jsxRuntime.jsx(Ib.Provider,{value:{disabled:n},children:jsxRuntime.jsx("div",{ref:l,role:"group",className:o(Lb({variant:t,orientation:a,spacing:r,className:e})),...s,children:i})}));Eb.displayName="ButtonGroup";var Ab=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"}}),zb=$__namespace.forwardRef(({className:e,variant:t,size:a,radius:r,isLoading:n,disabled:i,children:s,...l},d)=>{let m={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-6 w-6"}[a??"md"];return jsxRuntime.jsx("button",{ref:d,type:"button",disabled:i||n,className:o(Ab({variant:t,size:a,radius:r,className:e})),...l,children:n?jsxRuntime.jsxs("svg",{className:o("animate-spin",m),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:o("[&>svg]:h-full [&>svg]:w-full",m),children:s})})});zb.displayName="IconButton";var Fb=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"}}),Ob=$__namespace.forwardRef(({className:e,variant:t,orientation:a,size:r,density:n,items:i,maxVisibleItems:s,isDisabled:l,onAction:d,showLabels:m=false,renderItem:u,...p},g)=>{let c=s&&s<i.length?i.slice(0,s):i,v=s&&s<i.length?i.slice(s):[],N={sm:"h-8 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"}[r??"md"],b={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[r??"md"],h={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5"}[r??"md"],R=(x,C)=>{C&&C(),d&&d(x);},f=x=>jsxRuntime.jsxs("button",{type:"button",disabled:l||x.isDisabled,onClick:()=>R(x.key,x.onPress),className:o("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",m?N:b),"aria-label":x.label,children:[x.icon&&jsxRuntime.jsx("span",{className:h,children:x.icon}),m&&jsxRuntime.jsx("span",{children:x.label})]},x.key);return jsxRuntime.jsxs("div",{ref:g,role:"group",className:o(Fb({variant:t,orientation:a,size:r,density:n,className:e})),...p,children:[c.map(x=>u?u(x):f(x)),v.length>0&&jsxRuntime.jsxs(_a,{children:[jsxRuntime.jsx(Ka,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",disabled:l,className:o("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",b),"aria-label":"More actions",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:h})})}),jsxRuntime.jsx(fa,{align:"end",children:v.map(x=>jsxRuntime.jsxs(xt,{disabled:x.isDisabled,onClick:()=>R(x.key,x.onPress),children:[x.icon&&jsxRuntime.jsx("span",{className:o(h,"mr-2"),children:x.icon}),x.label]},x.key))})]})]})});Ob.displayName="ActionGroup";var _b=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"}}),fS=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}}),Kb=$__namespace.forwardRef(({className:e,variant:t,size:a,pulse:r=false,hideLabel:n=false,children:i,...s},l)=>jsxRuntime.jsxs("span",{ref:l,role:"status",className:o(_b({variant:t,size:a,className:e})),...s,children:[jsxRuntime.jsx("span",{className:o(fS({size:a,pulse:r})),"aria-hidden":"true"}),!n&&i&&jsxRuntime.jsx("span",{className:"text-foreground",children:i})]}));Kb.displayName="StatusLight";var Yb=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"}}),bS=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"}}),vS=classVarianceAuthority.cva("font-semibold text-foreground",{variants:{size:{sm:"text-base",md:"text-lg",lg:"text-xl"}},defaultVariants:{size:"md"}}),hS=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),jb=$__namespace.forwardRef(({className:e,size:t,illustration:a,heading:r,description:n,children:i,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:o(Yb({size:t,className:e})),...s,children:[a&&jsxRuntime.jsx("div",{className:o(bS({size:t})),"aria-hidden":"true",children:a}),r&&jsxRuntime.jsx("h3",{className:o(vS({size:t})),children:r}),n&&jsxRuntime.jsx("p",{className:o(hS({size:t})),children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i})]}));jb.displayName="IllustratedMessage";var Zb=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-yellow-200 bg-yellow-50 text-yellow-900 dark:border-yellow-800 dark:bg-yellow-950 dark:text-yellow-100 [&>svg]:text-yellow-600 dark:[&>svg]:text-yellow-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"}}),CS={info:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle,neutral:lucideReact.Info},Qb=$__namespace.forwardRef(({className:e,variant:t,title:a,icon:r,hideIcon:n=false,isDismissible:i=false,onDismiss:s,actions:l,children:d,...m},u)=>{let[p,g]=$__namespace.useState(true);if(!p)return null;let c=CS[t??"info"],v=()=>{g(false),s?.();};return jsxRuntime.jsxs("div",{ref:u,role:"alert",className:o(Zb({variant:t,className:e})),...m,children:[!n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r||jsxRuntime.jsx(c,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[a&&jsxRuntime.jsx("div",{className:"font-medium",children:a}),d&&jsxRuntime.jsx("div",{className:"opacity-90",children:d}),l&&jsxRuntime.jsx("div",{className:"mt-3 flex gap-2",children:l})]}),i&&jsxRuntime.jsx("button",{type:"button",onClick:v,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"})})]})});Qb.displayName="InlineAlert";var Jb=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"}}),ev=$__namespace.forwardRef(({className:e,position:t,size:a,selectedCount:r=0,isOpen:n=true,onClose:i,showClose:s=true,selectedText:l,children:d,...m},u)=>{if(!n||r===0)return null;let p=()=>typeof l=="function"?l(r):l||`${r} item${r>1?"s":""} selected`;return jsxRuntime.jsxs("div",{ref:u,role:"toolbar","aria-label":"Actions for selected items",className:o(Jb({position:t,size:a,className:e})),...m,children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:p()}),jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:d}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("button",{type:"button",onClick:i,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"})})]})]})});ev.displayName="ActionBar";var tv=$__namespace.forwardRef(({className:e,icon:t,children:a,...r},n)=>jsxRuntime.jsxs("button",{ref:n,type:"button",className:o("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),...r,children:[t&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:t}),a]}));tv.displayName="ActionBarButton";var av=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 LS(e){return "items"in e}var rv=$__namespace.forwardRef(({items:e,align:t="end",side:a="bottom",iconOrientation:r="vertical",trigger:n,variant:i,size:s,onAction:l,"aria-label":d="More actions",triggerClassName:m,disabled:u},p)=>{let g={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}[s??"md"],c=r==="horizontal"?lucideReact.MoreHorizontal:lucideReact.MoreVertical,v=b=>{b.onSelect?.(),l?.(b.key);},N=b=>jsxRuntime.jsxs(xt,{disabled:b.isDisabled,onClick:()=>v(b),className:o(b.isDestructive&&"text-destructive focus:text-destructive"),children:[b.icon&&jsxRuntime.jsx("span",{className:"mr-2 h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:b.icon}),jsxRuntime.jsx("span",{className:"flex-1",children:b.label}),b.shortcut&&jsxRuntime.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:b.shortcut})]},b.key);return jsxRuntime.jsxs(_a,{children:[jsxRuntime.jsx(Ka,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:p,type:"button",disabled:u,className:o(av({variant:i,size:s}),m),"aria-label":d,children:jsxRuntime.jsx(c,{className:g})})}),jsxRuntime.jsx(fa,{align:t,side:a,children:e.map((b,h)=>LS(b)?jsxRuntime.jsxs($__namespace.Fragment,{children:[h>0&&jsxRuntime.jsx(un,{}),b.items.map(N)]},b.key):N(b))})]})});rv.displayName="ActionMenu";var iv=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"}}),sv=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 lv({className:e,variant:t,size:a,items:r,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,allowsDragging:l=false,onReorder:d,showCheckbox:m=false,renderItem:u,emptyContent:p,...g}){let[c,v]=$__namespace.useState(new Set),[N,b]=$__namespace.useState(null),[h,R]=$__namespace.useState(null),f=$__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):c,[n,c]),x=T=>{if(i==="none")return;let k;i==="single"?k=f.has(T)?new Set:new Set([T]):(k=new Set(f),k.has(T)?k.delete(T):k.add(T)),n||v(k),s?.(k);},C=(T,k)=>{b(k),T.dataTransfer.effectAllowed="move";},y=(T,k)=>{T.preventDefault(),N!==k&&R(k);},S=()=>{if(N&&h&&N!==h){let T=r.findIndex(D=>D.key===N),k=r.findIndex(D=>D.key===h),w=[...r],[P]=w.splice(T,1);w.splice(k,0,P),d?.(w);}b(null),R(null);};return r.length===0?jsxRuntime.jsx("div",{className:o("flex items-center justify-center p-8 text-muted-foreground",e),children:p||"No items"}):jsxRuntime.jsx("div",{role:"listbox","aria-multiselectable":i==="multiple",className:o(iv({variant:t,size:a,className:e})),...g,children:r.map(T=>{let k=f.has(T.key),w=N===T.key,P=h===T.key;return u?jsxRuntime.jsx("div",{role:"option","aria-selected":k,onClick:()=>x(T.key),children:u(T,k)},T.key):jsxRuntime.jsxs("div",{role:"option","aria-selected":k,"aria-disabled":T.isDisabled,draggable:l&&!T.isDisabled,onDragStart:D=>C(D,T.key),onDragOver:D=>y(D,T.key),onDragEnd:S,onClick:()=>!T.isDisabled&&x(T.key),className:o(sv({variant:t,size:a,isSelected:k,isDisabled:T.isDisabled}),w&&"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"}),m&&i!=="none"&&jsxRuntime.jsx("div",{className:o("flex h-4 w-4 items-center justify-center rounded border",k?"bg-primary border-primary text-primary-foreground":"border-input"),children:k&&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)})})}lv.displayName="ListView";var cv=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"}}),HS=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"}}),dv=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",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{size:"md"}}),mv=$__namespace.forwardRef(({className:e,orientation:t="horizontal",size:a,value:r,defaultValue:n=[25,75],onValueChange:i,onValueCommit:s,showLabels:l=false,formatLabel:d=b=>String(b),trackColor:m="primary",min:u=0,max:p=100,step:g=1,disabled:c,...v},N)=>{let[b,h]=$__namespace.useState(n),R=r??b,f=y=>{let S=y;r||h(S),i?.(S);},x=y=>{s?.(y);},C={primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500"}[m];return jsxRuntime.jsxs("div",{className:"relative w-full",children:[l&&jsxRuntime.jsxs("div",{className:"flex justify-between mb-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:d(R[0])}),jsxRuntime.jsx("span",{children:d(R[1])})]}),jsxRuntime.jsxs(Ft__namespace.Root,{ref:N,value:R,onValueChange:f,onValueCommit:x,min:u,max:p,step:g,disabled:c,orientation:t??"horizontal",className:o(cv({orientation:t,size:a,className:e})),...v,children:[jsxRuntime.jsx(Ft__namespace.Track,{className:o(HS({orientation:t,size:a})),children:jsxRuntime.jsx(Ft__namespace.Range,{className:o("absolute rounded-full",C,{"h-full":t==="horizontal","w-full":t==="vertical"})})}),jsxRuntime.jsx(Ft__namespace.Thumb,{className:o(dv({size:a}))}),jsxRuntime.jsx(Ft__namespace.Thumb,{className:o(dv({size:a}))})]})]})});mv.displayName="RangeSlider";var fv=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"}}),FS=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"}}),OS={help:lucideReact.HelpCircle,info:lucideReact.Info,warning:lucideReact.AlertCircle},gv=$__namespace.forwardRef(({variant:e="help",size:t,title:a,children:r,trigger:n,side:i="top",align:s="center",open:l,onOpenChange:d,learnMoreUrl:m,learnMoreText:u="Learn more",triggerClassName:p,contentClassName:g},c)=>{let v=OS[e??"help"];return jsxRuntime.jsxs(st__namespace.Root,{open:l,onOpenChange:d,children:[jsxRuntime.jsx(st__namespace.Trigger,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:c,type:"button",className:o(fv({variant:e,size:t}),p),"aria-label":"Help",children:jsxRuntime.jsx(v,{className:"h-full w-full"})})}),jsxRuntime.jsx(st__namespace.Portal,{children:jsxRuntime.jsxs(st__namespace.Content,{side:i,align:s,sideOffset:8,className:o(FS({size:t}),g),children:[a&&jsxRuntime.jsx("div",{className:"mb-2 font-semibold text-foreground",children:a}),jsxRuntime.jsx("div",{className:"text-muted-foreground",children:r}),m&&jsxRuntime.jsxs("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-block text-primary hover:underline",children:[u," \u2192"]}),jsxRuntime.jsx(st__namespace.Arrow,{className:"fill-popover"})]})})]})});gv.displayName="ContextualHelp";var vv=classVarianceAuthority.cva("flex flex-wrap",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}}),kl=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 hv({className:e,spacing:t,variant:a,size:r,items:n,selectedKeys:i,selectionMode:s="none",onSelectionChange:l,allowsRemoving:d=false,onRemove:m,label:u,description:p,errorMessage:g,maxTags:c,...v}){let[N,b]=$__namespace.useState(new Set),h=$__namespace.useMemo(()=>i?i instanceof Set?i:new Set(i):N,[i,N]),R=y=>{if(s==="none")return;let S;s==="single"?S=h.has(y)?new Set:new Set([y]):(S=new Set(h),S.has(y)?S.delete(y):S.add(y)),i||b(S),l?.(S);},f=(y,S)=>{S.stopPropagation(),m?.(y);},x=c?n.slice(0,c):n,C=c?Math.max(0,n.length-c):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}),p&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:p}),jsxRuntime.jsxs("div",{role:"group","aria-label":u,className:o(vv({spacing:t}),e),...v,children:[x.map(y=>{let S=h.has(y.key),T=s!=="none";return jsxRuntime.jsxs("span",{role:T?"button":void 0,tabIndex:T&&!y.isDisabled?0:void 0,"aria-pressed":T?S:void 0,onClick:()=>!y.isDisabled&&R(y.key),onKeyDown:k=>{(k.key==="Enter"||k.key===" ")&&!y.isDisabled&&(k.preventDefault(),R(y.key));},style:y.color?{backgroundColor:y.color}:void 0,className:o(kl({variant:y.color?void 0:a,size:r,isSelected:S,isDisabled:y.isDisabled}),T&&!y.isDisabled&&"cursor-pointer hover:opacity-80",y.color&&"text-white"),children:[y.icon&&jsxRuntime.jsx("span",{className:"h-3.5 w-3.5 [&>svg]:h-full [&>svg]:w-full",children:y.icon}),y.label,d&&!y.isDisabled&&jsxRuntime.jsx("button",{type:"button",onClick:k=>f(y.key,k),className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${y.label}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},y.key)}),C>0&&jsxRuntime.jsxs("span",{className:o(kl({variant:"surface",size:r}),"cursor-default"),children:["+",C," more"]})]}),g&&jsxRuntime.jsx("span",{className:"text-sm text-destructive",children:g})]})}hv.displayName="TagGroup";var Rv=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"}}),wv=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 Nv({className:e,columns:t,gap:a,items:r,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,showSelectionIndicator:l=true,itemVariant:d="default",itemSize:m="md",renderItem:u,emptyContent:p,...g}){let[c,v]=$__namespace.useState(new Set),N=$__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):c,[n,c]),b=h=>{if(i==="none")return;let R;i==="single"?R=N.has(h)?new Set:new Set([h]):(R=new Set(N),R.has(h)?R.delete(h):R.add(h)),n||v(R),s?.(R);};return r.length===0?jsxRuntime.jsx("div",{className:o("flex items-center justify-center p-8 text-muted-foreground",e),children:p||"No items"}):jsxRuntime.jsx("div",{role:"grid","aria-multiselectable":i==="multiple",className:o(Rv({columns:t,gap:a,className:e})),...g,children:r.map(h=>{let R=N.has(h.key);return u?jsxRuntime.jsx("div",{role:"gridcell","aria-selected":R,onClick:()=>b(h.key),children:u(h,R)},h.key):jsxRuntime.jsxs("div",{role:"gridcell","aria-selected":R,"aria-disabled":h.isDisabled,onClick:()=>!h.isDisabled&&b(h.key),className:o(wv({variant:d,size:m,isSelected:R,isDisabled:h.isDisabled})),children:[l&&i!=="none"&&R&&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"})}),h.thumbnail&&jsxRuntime.jsx("div",{className:"mb-2 aspect-square w-full overflow-hidden rounded-md bg-muted",children:h.thumbnail}),jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:h.label}),h.description&&jsxRuntime.jsx("div",{className:"mt-1 truncate text-sm text-muted-foreground",children:h.description})]})]},h.key)})})}Nv.displayName="GridList";var Cv=classVarianceAuthority.cva("relative w-full",{variants:{size:{sm:"h-1.5",md:"h-2",lg:"h-3"}},defaultVariants:{size:"md"}}),WS=classVarianceAuthority.cva("w-full h-full rounded-full overflow-hidden",{variants:{variant:{default:"bg-secondary",subtle:"bg-muted"}},defaultVariants:{variant:"default"}}),_S=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}}),Ni=$__namespace.forwardRef(({className:e,size:t,value:a,min:r=0,max:n=100,optimum:i,low:s,high:l,label:d,showValueLabel:m=false,formatValue:u,color:p="primary",trackVariant:g="default",...c},v)=>{let N=Math.min(100,Math.max(0,(a-r)/(n-r)*100)),b=()=>{if(p!=="auto")return "";let R=(a-r)/(n-r),f=s!==void 0?(s-r)/(n-r):.25,x=l!==void 0?(l-r)/(n-r):.75;return (i!==void 0?(i-r)/(n-r):1)>=.5?R<=f?"bg-red-500":R<=x?"bg-yellow-500":"bg-green-500":R>=x?"bg-red-500":R>=f?"bg-yellow-500":"bg-green-500"},h=u?u(a,N):`${Math.round(N)}%`;return jsxRuntime.jsxs("div",{ref:v,className:o("w-full",e),...c,children:[(d||m)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[d&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:d}),m&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:h})]}),jsxRuntime.jsx("div",{role:"meter","aria-valuenow":a,"aria-valuemin":r,"aria-valuemax":n,"aria-label":d,className:o(Cv({size:t})),children:jsxRuntime.jsx("div",{className:o(WS({variant:g})),children:jsxRuntime.jsx("div",{className:o(_S({color:p==="auto"?void 0:p,rounded:N>=100}),p==="auto"&&b()),style:{width:`${N}%`}})})})]})});Ni.displayName="Meter";var Sv=$__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Ni,{ref:t,color:"auto",low:50,high:80,optimum:0,...e}));Sv.displayName="DiskUsageMeter";var Tv=$__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Ni,{ref:t,color:"auto",low:20,high:50,optimum:100,...e}));Tv.displayName="BatteryMeter";var kv=classVarianceAuthority.cva("flex flex-wrap",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2"},layout:{wrap:"flex-wrap",grid:"grid"}},defaultVariants:{size:"md",layout:"wrap"}}),Dv=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],Vv=["#f8fafc","#f1f5f9","#e2e8f0","#cbd5e1","#94a3b8","#64748b","#475569","#334155","#1e293b","#0f172a","#fef2f2","#fee2e2","#fecaca","#fca5a5","#f87171","#ef4444","#dc2626","#b91c1c","#991b1b","#7f1d1d","#fff7ed","#ffedd5","#fed7aa","#fdba74","#fb923c","#f97316","#ea580c","#c2410c","#9a3412","#7c2d12","#fefce8","#fef9c3","#fef08a","#fde047","#facc15","#eab308","#ca8a04","#a16207","#854d0e","#713f12","#f0fdf4","#dcfce7","#bbf7d0","#86efac","#4ade80","#22c55e","#16a34a","#15803d","#166534","#14532d","#eff6ff","#dbeafe","#bfdbfe","#93c5fd","#60a5fa","#3b82f6","#2563eb","#1d4ed8","#1e40af","#1e3a8a","#faf5ff","#f3e8ff","#e9d5ff","#d8b4fe","#c084fc","#a855f7","#9333ea","#7e22ce","#6b21a8","#581c87","#fdf2f8","#fce7f3","#fbcfe8","#f9a8d4","#f472b6","#ec4899","#db2777","#be185d","#9d174d","#831843"],Lv=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],Iv=$__namespace.forwardRef(({value:e,defaultValue:t,onChange:a,colors:r="default",customColors:n,size:i,layout:s,swatchSize:l="md",swatchShape:d="square",columns:m,disabled:u,showSelection:p=true,className:g,...c},v)=>{let[N,b]=$__namespace.useState(t),h=e!==void 0?e:N,f=(()=>{if(n)return n;if(Array.isArray(r))return r;switch(r){case "tailwind":return Vv;case "material":return Lv;default:return Dv}})(),x=y=>{u||(e===void 0&&b(y),a?.(y));},C=s==="grid"&&m?{gridTemplateColumns:`repeat(${m}, 1fr)`}:{};return jsxRuntime.jsx("div",{ref:v,role:"listbox","aria-label":"Color palette",className:o(kv({size:i,layout:s}),g),style:C,...c,children:f.map((y,S)=>jsxRuntime.jsx(Lr,{color:y,size:l,shape:d,isSelected:p&&h?.toLowerCase()===y.toLowerCase(),onSelect:x,disabled:u,role:"option","aria-selected":h?.toLowerCase()===y.toLowerCase()},`${y}-${S}`))})});Iv.displayName="ColorSwatchPicker";var Ev=classVarianceAuthority.cva("relative rounded-md border border-input 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"}},defaultVariants:{size:"md"}}),Si=(e,t,a)=>{let r=n=>{let i=(n+e/60)%6;return a-a*t*Math.max(Math.min(i,4-i,1),0)};return [Math.round(r(5)*255),Math.round(r(3)*255),Math.round(r(1)*255)]},Hv=(e,t,a)=>{e/=255,t/=255,a/=255;let r=Math.max(e,t,a),n=Math.min(e,t,a),i=r-n,s=0,l=r===0?0:i/r,d=r;if(i!==0)switch(r){case e:s=((t-a)/i+(t<a?6:0))*60;break;case t:s=((a-e)/i+2)*60;break;case a:s=((e-t)/i+4)*60;break}return [s,l,d]},Av=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},zv=(e,t,a)=>"#"+[e,t,a].map(r=>r.toString(16).padStart(2,"0")).join(""),Bv=$__namespace.forwardRef(({hue:e,saturation:t,brightness:a,value:r,defaultValue:n="#ff0000",onChange:i,onColorChange:s,size:l,disabled:d,thumbSize:m=16,className:u,...p},g)=>{let c=$__namespace.useRef(null),[v,N]=$__namespace.useState(false),b=$__namespace.useCallback(H=>{let Q=Av(H);return Q?Hv(...Q):[0,1,1]},[]),[h,R]=$__namespace.useState(()=>b(r||n)),f=e??h[0],x=t??h[1],C=a??h[2];$__namespace.useEffect(()=>{if(r){let H=b(r);R(H);}},[r,b]);let y=$__namespace.useCallback((H,Q)=>{if(d||!c.current)return;let te=c.current.getBoundingClientRect(),J=Math.max(0,Math.min(1,(H-te.left)/te.width)),nt=Math.max(0,Math.min(1,(Q-te.top)/te.height)),z=J,F=1-nt;t===void 0&&a===void 0&&R([f,z,F]),i?.({hue:f,saturation:z,brightness:F});let ae=Si(f,z,F);s?.(zv(...ae));},[d,f,t,a,i,s]),S=H=>{d||(H.preventDefault(),N(true),H.target.setPointerCapture(H.pointerId),y(H.clientX,H.clientY));},T=H=>{v&&y(H.clientX,H.clientY);},k=H=>{N(false),H.target.releasePointerCapture(H.pointerId);},[w,P,D]=Si(f,1,1),M=`rgb(${w}, ${P}, ${D})`,I=x*100,L=(1-C)*100,[V,E,A]=Si(f,x,C),B=`rgb(${V}, ${E}, ${A})`;return jsxRuntime.jsx("div",{ref:g,className:o(Ev({size:l}),d&&"cursor-not-allowed opacity-50",u),...p,children:jsxRuntime.jsxs("div",{ref:c,className:"absolute inset-0",style:{backgroundColor:M},onPointerDown:S,onPointerMove:T,onPointerUp:k,onPointerLeave:k,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 shadow-md pointer-events-none",style:{width:m,height:m,left:`calc(${I}% - ${m/2}px)`,top:`calc(${L}% - ${m/2}px)`,backgroundColor:B,boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Bv.displayName="ColorArea";var Ov=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"}}),XS=`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")`,Fv="linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)",Gv=$__namespace.forwardRef(({value:e,defaultValue:t,onChange:a,channel:r="hue",baseColor:n="#ff0000",orientation:i,size:s,disabled:l,thumbSize:d=18,showBorder:m=true,className:u,...p},g)=>{let c=$__namespace.useRef(null),[v,N]=$__namespace.useState(false),b=()=>{switch(r){case "hue":return 0;case "alpha":case "saturation":case "brightness":return 1;default:return 0}},[h,R]=$__namespace.useState(t??b()),f=e??h,x=r==="hue"?f/360:f,C=$__namespace.useCallback((M,I)=>{if(l||!c.current)return;let L=c.current.getBoundingClientRect(),V=i!=="vertical",E;V?E=Math.max(0,Math.min(1,(M-L.left)/L.width)):E=Math.max(0,Math.min(1,1-(I-L.top)/L.height));let A=r==="hue"?E*360:E;e===void 0&&R(A),a?.(A);},[l,i,r,e,a]),y=M=>{l||(M.preventDefault(),N(true),M.target.setPointerCapture(M.pointerId),C(M.clientX,M.clientY));},S=M=>{v&&C(M.clientX,M.clientY);},T=M=>{N(false),M.target.releasePointerCapture(M.pointerId);},k=()=>{let M=i!=="vertical",I=M?"to right":"to top";switch(r){case "hue":return M?Fv:"linear-gradient(to top, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)";case "alpha":return `linear-gradient(${I}, transparent, ${n})`;case "saturation":return `linear-gradient(${I}, #808080, ${n})`;case "brightness":return `linear-gradient(${I}, #000000, ${n})`;default:return Fv}},w=()=>r==="hue"?`hsl(${f}, 100%, 50%)`:n,P=i!=="vertical",D=x*100;return jsxRuntime.jsx("div",{ref:g,className:o(Ov({orientation:i,size:s}),l&&"cursor-not-allowed opacity-50",u),...p,children:jsxRuntime.jsxs("div",{ref:c,className:o("absolute inset-0 rounded-full overflow-hidden",m&&"border border-input"),style:{backgroundImage:r==="alpha"?XS:void 0,backgroundSize:r==="alpha"?"8px 8px":void 0},onPointerDown:y,onPointerMove:S,onPointerUp:T,onPointerLeave:T,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:k()}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:d,height:d,...P?{left:`calc(${D}% - ${d/2}px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${D}% - ${d/2}px)`,left:"50%",transform:"translateX(-50%)"},backgroundColor:w(),boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Gv.displayName="ColorSlider";var $v=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"}}),QS=(e,t,a)=>{let r=e-a,n=t-a,i=Math.atan2(n,r)*180/Math.PI+90;return i<0&&(i+=360),i},Wv=$__namespace.forwardRef(({value:e,defaultValue:t=0,onChange:a,size:r,disabled:n,innerRadius:i=.6,thumbSize:s=20,showCenter:l=true,className:d,...m},u)=>{let p=$__namespace.useRef(null),[g,c]=$__namespace.useState(false),[v,N]=$__namespace.useState(t),b=e??v,h=$__namespace.useCallback((y,S)=>{if(n||!p.current)return;let T=p.current.getBoundingClientRect(),k=T.width/2,w=y-T.left,P=S-T.top,D=QS(w,P,k);e===void 0&&N(D),a?.(D);},[n,e,a]),R=y=>{n||(y.preventDefault(),c(true),y.target.setPointerCapture(y.pointerId),h(y.clientX,y.clientY));},f=y=>{g&&h(y.clientX,y.clientY);},x=y=>{c(false),y.target.releasePointerCapture(y.pointerId);},C=()=>{let y=[];for(let S=0;S<=360;S+=30)y.push(`hsl(${S}, 100%, 50%) ${S}deg`);return `conic-gradient(from 270deg, ${y.join(", ")})`};return jsxRuntime.jsx("div",{ref:u,className:o($v({size:r}),n&&"cursor-not-allowed opacity-50",d),...m,children:jsxRuntime.jsxs("div",{ref:p,className:"absolute inset-0 rounded-full",style:{background:C()},onPointerDown:R,onPointerMove:f,onPointerUp:x,onPointerLeave:x,children:[i<1&&jsxRuntime.jsx("div",{className:"absolute bg-background rounded-full",style:{top:`${(1-i)*50}%`,left:`${(1-i)*50}%`,width:`${i*100}%`,height:`${i*100}%`}}),l&&i<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(JS,{hue:b,innerRadius:i,thumbSize:s})]})})});Wv.displayName="ColorWheel";var JS=({hue:e,innerRadius:t,thumbSize:a})=>{let r=(1-(1-t)/2)*50,n=(e-90)*Math.PI/180,i=50+r*Math.cos(n),s=50+r*Math.sin(n);return jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:a,height:a,left:`calc(${i}% - ${a/2}px)`,top:`calc(${s}% - ${a/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 _v=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}}),Xo=$__namespace.forwardRef(({className:e,direction:t,align:a,justify:r,wrap:n,gap:i,inline:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(_v({direction:t,align:a,justify:r,wrap:n,gap:i,inline:s,className:e})),...d}));Xo.displayName="Flex";var Kv=$__namespace.forwardRef(({gap:e=2,align:t="center",...a},r)=>jsxRuntime.jsx(Xo,{ref:r,direction:"row",gap:e,align:t,...a}));Kv.displayName="HStack";var Uv=$__namespace.forwardRef(({gap:e=2,align:t="stretch",...a},r)=>jsxRuntime.jsx(Xo,{ref:r,direction:"column",gap:e,align:t,...a}));Uv.displayName="VStack";var Yv=$__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Xo,{ref:t,align:"center",justify:"center",...e}));Yv.displayName="Center";var Xv=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"}}),Mi=$__namespace.forwardRef(({className:e,columns:t,rows:a,gap:r,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,as:u="div",minChildWidth:p,style:g,...c},v)=>{let N=p?{...g,gridTemplateColumns:`repeat(auto-fill, minmax(${p}, 1fr))`}:g;return jsxRuntime.jsx(u,{ref:v,className:o(Xv({columns:p?void 0:t,rows:a,gap:r,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,className:e})),style:N,...c})});Mi.displayName="Grid";var qv=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"}}}),Zv=$__namespace.forwardRef(({className:e,colSpan:t,rowSpan:a,colStart:r,colEnd:n,rowStart:i,rowEnd:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(qv({colSpan:t,rowSpan:a,colStart:r,colEnd:n,rowStart:i,rowEnd:s,className:e})),...d}));Zv.displayName="GridItem";var Qv=$__namespace.forwardRef(({columns:e=2,className:t,...a},r)=>{if(typeof e=="number")return jsxRuntime.jsx(Mi,{ref:r,columns:e,className:t,...a});let n=o(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(Mi,{ref:r,columns:1,className:o(n,t),...a})});Qv.displayName="SimpleGrid";var eh=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"}}),th=$__namespace.forwardRef(({className:e,variant:t,size:a,radius:r,as:n="div",...i},s)=>jsxRuntime.jsx(n,{ref:s,className:o(eh({variant:t,size:a,radius:r,className:e})),...i}));th.displayName="Well";var rh=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"}}),oT=classVarianceAuthority.cva("text-muted-foreground font-medium",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),nT=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}}),oh=$__namespace.forwardRef(({className:e,orientation:t,size:a,align:r,label:n,value:i,valueWeight:s,mono:l,labelWidth:d,labelClassName:m,valueClassName:u,showColon:p=false,copyable:g=false,onCopy:c,...v},N)=>{let b=async()=>{if(!(!g||i===null||i===void 0))try{let h=typeof i=="string"?i:String(i);await navigator.clipboard.writeText(h),c?.();}catch{}};return jsxRuntime.jsxs("div",{ref:N,className:o(rh({orientation:t,size:a,align:r,className:e})),...v,children:[jsxRuntime.jsxs("span",{className:o(oT({size:a}),m),style:d?{width:d,flexShrink:0}:void 0,children:[n,p&&":"]}),jsxRuntime.jsx("span",{className:o(nT({size:a,weight:s,mono:l}),g&&"cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1 transition-colors",u),onClick:g?b:void 0,role:g?"button":void 0,tabIndex:g?0:void 0,onKeyDown:g?h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),b());}:void 0,children:i})]})});oh.displayName="LabeledValue";var nh=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"}}),ih=$__namespace.forwardRef(({className:e,orientation:t,gap:a,...r},n)=>jsxRuntime.jsx("div",{ref:n,className:o(nh({orientation:t,gap:a,className:e})),...r}));ih.displayName="LabeledValueGroup";var ch=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"}}),Qr=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"}}),mh=$__namespace.forwardRef(({value:e,defaultValue:t="",onChange:a,onSearch:r,onSelect:n,suggestions:i=[],recentSearches:s=[],onClearRecentSearches:l,trendingSearches:d=[],isLoading:m,showClear:u=true,showIcon:p=true,popoverWidth:g="trigger",emptyMessage:c="No results found",size:v,variant:N,className:b,placeholder:h="Search...",disabled:R,...f},x)=>{let[C,y]=$__namespace.useState(false),[S,T]=$__namespace.useState(t),k=e!==void 0?e:S,w=$__namespace.useRef(null);$__namespace.useImperativeHandle(x,()=>w.current);let P=k.length>0,D=C&&(i.length>0||s.length>0||d.length>0||P),M=H=>{e===void 0&&T(H),a?.(H);},I=()=>{M(""),w.current?.focus();},L=H=>{H?.preventDefault(),k.trim()&&(r?.(k.trim()),y(false));},V=H=>{M(H.label),n?.(H),y(false);},E=H=>{M(H),r?.(H),y(false);},A=H=>{M(H),r?.(H),y(false);},B=$__namespace.useMemo(()=>{let H={};return i.forEach(Q=>{let te=Q.category||"Results";H[te]||(H[te]=[]),H[te].push(Q);}),H},[i]);return jsxRuntime.jsxs(ve,{open:D,onOpenChange:y,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs("form",{onSubmit:L,className:o(ch({size:v,variant:N}),b),children:[p&&jsxRuntime.jsx(lucideReact.Search,{className:o(Qr({size:v}),"ml-3")}),jsxRuntime.jsx("input",{ref:w,type:"text",value:k,onChange:H=>M(H.target.value),onFocus:()=>y(true),placeholder:h,disabled:R,className:o("flex-1 bg-transparent px-3 py-2 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",!p&&"pl-3"),...f}),u&&P&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:I,className:o("mr-2 rounded-sm p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",Qr({size:v})),children:jsxRuntime.jsx(lucideReact.X,{className:"h-full w-full"})})]})}),jsxRuntime.jsx(ue,{className:"p-0",style:{width:g==="trigger"?"var(--radix-popover-trigger-width)":g},align:"start",onOpenAutoFocus:H=>H.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((H,Q)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>E(H),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:o(Qr({size:v}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:H}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:o(Qr({size:v}),"opacity-0 group-hover:opacity-100")})]},Q))]}),d.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"})}),d.map((H,Q)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>A(H),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:o(Qr({size:v}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:H})]},Q))]}),P&&jsxRuntime.jsx("div",{className:"p-2",children:m?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"})}):i.length>0?Object.entries(B).map(([H,Q])=>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:H})}),Q.map(te=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>V(te),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[te.icon||jsxRuntime.jsx(lucideReact.Search,{className:o(Qr({size:v}))}),jsxRuntime.jsxs("div",{className:"flex-1 text-left",children:[jsxRuntime.jsx("div",{className:"truncate",children:te.label}),te.description&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:te.description})]})]},te.id))]},H)):jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:c})})]})})]})});mh.displayName="SearchBar";var ph={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"})},uh=$__namespace.forwardRef(({open:e,onOpenChange:t,items:a=[],recentItems:r=[],placeholder:n="Search...",isLoading:i,emptyMessage:s="No results found.",filter:l,shortcut:d="\u2318K",onSelect:m,footer:u},p)=>{let[g,c]=$__namespace.useState(""),v=$__namespace.useRef(null);$__namespace.useEffect(()=>{e||c("");},[e]);let N=$__namespace.useMemo(()=>{let f={};return a.forEach(x=>{let C=x.category||"Results";f[C]||(f[C]=[]),f[C].push(x);}),f},[a]),b=f=>{f.onSelect?.(),m?.(f),t?.(false);},h=g.length>0,R=!h&&r.length>0;return jsxRuntime.jsx(oe__namespace.Root,{open:e,onOpenChange:t,children:jsxRuntime.jsxs(oe__namespace.Portal,{children:[jsxRuntime.jsx(oe__namespace.Overlay,{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"}),jsxRuntime.jsx(oe__namespace.Content,{ref:p,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",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:v,value:g,onValueChange:c,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"}),g&&jsxRuntime.jsx("button",{type:"button",onClick:()=>c(""),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:i?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:[R&&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"}),r.map(f=>jsxRuntime.jsxs(cmdk.Command.Item,{value:f.label,onSelect:()=>b(f),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:f.icon||ph[f.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:f.label}),f.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:f.description})]}),f.shortcut&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:f.shortcut.map((x,C)=>jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-medium",children:x},C))})]},f.id))]}),h&&Object.entries(N).map(([f,x])=>jsxRuntime.jsxs(cmdk.Command.Group,{heading:f,children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:f}),x.map(C=>jsxRuntime.jsxs(cmdk.Command.Item,{value:`${C.label} ${C.keywords?.join(" ")||""}`,onSelect:()=>b(C),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:C.icon||ph[f]||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:C.label}),C.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:C.description})]}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-4 w-4 text-muted-foreground opacity-0 group-aria-selected:opacity-100"})]},C.id))]},f)),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:d})," to open"]})]})]})})]})})});uh.displayName="SpotlightSearch";function hT(e="k"){let[t,a]=$__namespace.useState(false);return $__namespace.useEffect(()=>{let r=n=>{(n.metaKey||n.ctrlKey)&&n.key===e&&(n.preventDefault(),a(i=>!i));};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e]),{open:t,setOpen:a,toggle:()=>a(r=>!r)}}var ST=classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),TT={default:"bg-muted",info:"bg-blue-500/10 text-blue-600 dark:text-blue-400",success:"bg-green-500/10 text-green-600 dark:text-green-400",warning:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",error:"bg-red-500/10 text-red-600 dark:text-red-400"},MT=e=>{let t=typeof e=="string"?new Date(e):e,r=new Date().getTime()-t.getTime(),n=Math.floor(r/6e4),i=Math.floor(r/36e5),s=Math.floor(r/864e5);return n<1?"Just now":n<60?`${n}m ago`:i<24?`${i}h ago`:s<7?`${s}d ago`:t.toLocaleDateString()},fh=$__namespace.forwardRef(({notifications:e=[],onNotificationClick:t,onMarkAsRead:a,onMarkAllAsRead:r,onDismiss:n,onClearAll:i,showSettings:s,onSettingsClick:l,trigger:d,align:m="end",emptyMessage:u="No notifications",maxHeight:p=400,className:g},c)=>{let[v,N]=$__namespace.useState(false),b=e.filter(f=>!f.read).length,h=e.length>0,R=f=>{f.read||a?.(f.id),t?.(f);};return jsxRuntime.jsxs(ve,{open:v,onOpenChange:N,children:[jsxRuntime.jsx(Re,{asChild:true,children:d||jsxRuntime.jsxs("button",{ref:c,className:o("relative inline-flex h-10 w-10 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",g),children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-5 w-5"}),b>0&&jsxRuntime.jsx("span",{className:"absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-medium text-primary-foreground",children:b>99?"99+":b})]})}),jsxRuntime.jsxs(ue,{className:"w-80 p-0 sm:w-96",align:m,sideOffset:8,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{className:"font-semibold",children:"Notifications"}),b>0&&jsxRuntime.jsxs(lo,{size:"sm",children:[b," new"]})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[h&&r&&b>0&&jsxRuntime.jsx("button",{type:"button",onClick:r,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Mark all as read",children:jsxRuntime.jsx(lucideReact.CheckCheck,{className:"h-4 w-4"})}),h&&i&&jsxRuntime.jsx("button",{type:"button",onClick:i,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Clear all",children:jsxRuntime.jsx(lucideReact.Trash2,{className:"h-4 w-4"})}),s&&l&&jsxRuntime.jsx("button",{type:"button",onClick:l,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Settings",children:jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"})})]})]}),h?jsxRuntime.jsx(dt,{style:{maxHeight:p},children:jsxRuntime.jsx("div",{className:"divide-y",children:e.map(f=>jsxRuntime.jsxs("div",{className:o("group relative flex gap-3 px-4 py-3 transition-colors hover:bg-muted/50",!f.read&&"bg-muted/30"),children:[jsxRuntime.jsx("div",{className:o("flex h-9 w-9 shrink-0 items-center justify-center rounded-full",f.avatar?"overflow-hidden":TT[f.type||"default"]),children:f.avatar?jsxRuntime.jsx("img",{src:f.avatar,alt:"",className:"h-full w-full object-cover"}):f.icon?f.icon:jsxRuntime.jsx(lucideReact.Bell,{className:"h-4 w-4"})}),jsxRuntime.jsxs("button",{type:"button",onClick:()=>R(f),className:"flex-1 text-left",children:[jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-2",children:[jsxRuntime.jsx("p",{className:o("text-sm",!f.read&&"font-medium"),children:f.title}),!f.read&&jsxRuntime.jsx("span",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-primary"})]}),f.description&&jsxRuntime.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground line-clamp-2",children:f.description}),jsxRuntime.jsx("p",{className:"mt-1 text-[10px] text-muted-foreground",children:MT(f.timestamp)})]}),jsxRuntime.jsxs("div",{className:"absolute right-2 top-2 flex gap-1 opacity-0 transition-opacity group-hover:opacity-100",children:[!f.read&&a&&jsxRuntime.jsx("button",{type:"button",onClick:x=>{x.stopPropagation(),a(f.id);},className:"rounded-sm p-1 text-muted-foreground hover:bg-background hover:text-foreground",title:"Mark as read",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5"})}),(n||f.onDismiss)&&jsxRuntime.jsx("button",{type:"button",onClick:x=>{x.stopPropagation(),f.onDismiss?.(),n?.(f.id);},className:"rounded-sm p-1 text-muted-foreground hover:bg-background hover:text-foreground",title:"Dismiss",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3.5 w-3.5"})})]})]},f.id))})}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center py-10 text-center",children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-10 w-10 text-muted-foreground/50"}),jsxRuntime.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:u})]})]})]})});fh.displayName="NotificationCenter";var bh=classVarianceAuthority.cva("relative flex items-center justify-center gap-3 px-4 py-2.5 text-sm",{variants:{variant:{default:"bg-muted text-foreground",primary:"bg-primary text-primary-foreground",info:"bg-blue-500 text-white",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-black",danger:"bg-red-500 text-white",gradient:"bg-gradient-to-r from-primary via-purple-500 to-pink-500 text-white"},position:{top:"fixed top-0 left-0 right-0 z-50",relative:"relative"}},defaultVariants:{variant:"default",position:"relative"}}),HT={default:lucideReact.Megaphone,primary:lucideReact.Megaphone,info:lucideReact.Info,success:lucideReact.CheckCircle,warning:lucideReact.AlertTriangle,danger:lucideReact.XCircle,gradient:lucideReact.Megaphone},vh=$__namespace.forwardRef(({message:e,showIcon:t=true,icon:a,dismissible:r=true,onDismiss:n,action:i,variant:s="default",position:l,animate:d,autoDismiss:m,storageKey:u,className:p,...g},c)=>{let[v,N]=$__namespace.useState(true),[b,h]=$__namespace.useState(false);$__namespace.useEffect(()=>{u&&localStorage.getItem(`banner-${u}`)==="true"&&N(false);},[u]),$__namespace.useEffect(()=>{if(m&&v){let x=setTimeout(()=>{R();},m);return ()=>clearTimeout(x)}},[m,v]);let R=()=>{h(true),setTimeout(()=>{N(false),u&&localStorage.setItem(`banner-${u}`,"true"),n?.();},200);};if(!v)return null;let f=a?null:HT[s||"default"];return jsxRuntime.jsxs("div",{ref:c,className:o(bh({variant:s,position:l}),d&&"animate-pulse",b&&"animate-out fade-out slide-out-to-top duration-200",p),role:"banner",...g,children:[t&&jsxRuntime.jsx("span",{className:"shrink-0",children:a||f&&jsxRuntime.jsx(f,{className:"h-4 w-4"})}),jsxRuntime.jsx("span",{className:"text-center font-medium",children:e}),i&&(i.href?jsxRuntime.jsxs("a",{href:i.href,className:"group inline-flex shrink-0 items-center gap-1 font-semibold underline-offset-4 hover:underline",children:[i.label,jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]}):jsxRuntime.jsxs("button",{type:"button",onClick:i.onClick,className:"group inline-flex shrink-0 items-center gap-1 font-semibold underline-offset-4 hover:underline",children:[i.label,jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})),r&&jsxRuntime.jsx("button",{type:"button",onClick:R,className:o("absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-70",l==="relative"&&"right-4"),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});vh.displayName="AnnouncementBanner";var qo=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:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-muted",ghost:"bg-background hover:bg-muted shadow-md"},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:"default",size:"md",position:"bottom-right"}}),zT=classVarianceAuthority.cva("transition-transform duration-200",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-7 w-7"}},defaultVariants:{size:"md"}}),Bl=$__namespace.forwardRef(({icon:e,label:t="Action button",extended:a,extendedLabel:r,actions:n,direction:i="up",showTooltip:s=true,closeIcon:l,animation:d="rotate",variant:m,size:u,position:p,className:g,onClick:c,disabled:v,...N},b)=>{let[h,R]=$__namespace.useState(false),f=n&&n.length>0,x=k=>{f&&R(!h),c?.(k);},C=k=>{k.onClick?.(),R(false);},y={up:{container:"flex-col-reverse bottom-full mb-3",item:"mb-3"},down:{container:"flex-col top-full mt-3",item:"mt-3"},left:{container:"flex-row-reverse right-full mr-3",item:"mr-3"},right:{container:"flex-row left-full ml-3",item:"ml-3"}},S=d==="rotate"&&h?"rotate-45":"",T=d==="scale"&&h?"scale-0":"scale-100";return jsxRuntime.jsxs("div",{className:o("z-50",p!=="relative"&&p&&qo({position:p})),children:[f&&h&&jsxRuntime.jsx("div",{className:o("absolute flex items-center gap-2",y[i].container),children:n.map((k,w)=>jsxRuntime.jsxs("div",{className:o("flex items-center gap-2 animate-in fade-in zoom-in duration-200",i==="up"||i==="down"?"flex-row":"flex-col"),style:{animationDelay:`${w*50}ms`},children:[s&&(i==="up"||i==="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:k.label}),k.href?jsxRuntime.jsx("a",{href:k.href,className:o(qo({variant:k.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":k.label,children:k.icon}):jsxRuntime.jsx("button",{type:"button",onClick:()=>C(k),className:o(qo({variant:k.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":k.label,children:k.icon}),s&&(i==="left"||i==="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:k.label})]},k.id))}),jsxRuntime.jsxs("button",{ref:b,type:"button",onClick:x,disabled:v,className:o(qo({variant:m,size:u,position:"relative"}),a&&"px-6 gap-2",g),"aria-label":t,"aria-expanded":f?h:void 0,...N,children:[h&&l?l:jsxRuntime.jsx("span",{className:o(zT({size:u}),S,T,"transition-all duration-200"),children:e||jsxRuntime.jsx(lucideReact.Plus,{})}),a&&r&&jsxRuntime.jsx("span",{className:"font-medium",children:r})]}),f&&h&&jsxRuntime.jsx("div",{className:"fixed inset-0 -z-10",onClick:()=>R(false)})]})});Bl.displayName="FloatingActionButton";var BT=Bl;var yh=classVarianceAuthority.cva("fixed bottom-0 left-0 right-0 z-50 flex items-center justify-around border-t bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80 safe-area-inset-bottom",{variants:{variant:{default:"border-border",elevated:"border-transparent shadow-lg",filled:"border-transparent bg-primary text-primary-foreground"},size:{sm:"h-14",md:"h-16",lg:"h-20"}},defaultVariants:{variant:"default",size:"md"}}),FT=classVarianceAuthority.cva("flex flex-1 flex-col items-center justify-center gap-1 transition-colors",{variants:{variant:{default:"text-muted-foreground hover:text-foreground",elevated:"text-muted-foreground hover:text-foreground",filled:"text-primary-foreground/70 hover:text-primary-foreground"},size:{sm:"py-1.5",md:"py-2",lg:"py-3"},isActive:{true:"",false:""}},compoundVariants:[{variant:"default",isActive:true,className:"text-primary"},{variant:"elevated",isActive:true,className:"text-primary"},{variant:"filled",isActive:true,className:"text-primary-foreground"}],defaultVariants:{variant:"default",size:"md",isActive:false}}),OT=classVarianceAuthority.cva("transition-transform",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-7 w-7"},isActive:{true:"scale-110",false:""}},defaultVariants:{size:"md",isActive:false}}),GT=classVarianceAuthority.cva("font-medium transition-opacity",{variants:{size:{sm:"text-[10px]",md:"text-xs",lg:"text-sm"},showLabel:{always:"opacity-100",active:"",never:"sr-only"},isActive:{true:"",false:""}},compoundVariants:[{showLabel:"active",isActive:true,className:"opacity-100"},{showLabel:"active",isActive:false,className:"opacity-0 h-0"}],defaultVariants:{size:"md",showLabel:"always",isActive:false}}),Rh=$__namespace.forwardRef(({className:e,variant:t,size:a,items:r,activeKey:n,defaultActiveKey:i,onChange:s,showLabels:l="always",hideOnScroll:d=false,...m},u)=>{let[p,g]=$__namespace.useState(i??r[0]?.key),[c,v]=$__namespace.useState(true),N=$__namespace.useRef(0),b=n??p;$__namespace.useEffect(()=>{if(!d)return;let R=()=>{let f=window.scrollY,x=f>N.current,C=f<N.current;x&&f>100?v(false):C&&v(true),N.current=f;};return window.addEventListener("scroll",R,{passive:true}),()=>window.removeEventListener("scroll",R)},[d]);let h=R=>{n===void 0&&g(R.key),s?.(R.key),R.onClick?.();};return jsxRuntime.jsx("nav",{ref:u,role:"navigation","aria-label":"Bottom navigation",className:o(yh({variant:t,size:a,className:e}),"transition-transform duration-300",!c&&"translate-y-full"),...m,children:r.map(R=>{let f=b===R.key,x=f&&R.activeIcon?R.activeIcon:R.icon,C=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"relative",children:[jsxRuntime.jsx("span",{className:o(OT({size:a,isActive:f})),children:x}),R.badge!==void 0&&jsxRuntime.jsx("span",{className:"absolute -right-2 -top-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-destructive px-1 text-[10px] font-medium text-destructive-foreground",children:typeof R.badge=="number"&&R.badge>99?"99+":R.badge})]}),jsxRuntime.jsx("span",{className:o(GT({size:a,showLabel:l,isActive:f})),children:R.label})]}),y=o(FT({variant:t,size:a,isActive:f}));return R.href?jsxRuntime.jsx("a",{href:R.href,className:y,"aria-current":f?"page":void 0,onClick:()=>h(R),children:C},R.key):jsxRuntime.jsx("button",{type:"button",className:y,"aria-current":f?"page":void 0,onClick:()=>h(R),children:C},R.key)})})});Rh.displayName="BottomNavigation";var Ph=classVarianceAuthority.cva("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[20px] border-t bg-background",{variants:{size:{sm:"max-h-[50vh]",md:"max-h-[70vh]",lg:"max-h-[85vh]",full:"max-h-[100vh] rounded-t-none"}},defaultVariants:{size:"md"}}),Ch=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"}}),Sh=$__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r,description:n,items:i,cancelLabel:s="Cancel",onCancel:l,showCancel:d=true,children:m,size:u,closeOnSelect:p=true,onAction:g},c)=>{let v=b=>{b.isDisabled||(b.onSelect?.(),g?.(b.key),p&&t?.(false));},N=()=>{l?.(),t?.(false);};return jsxRuntime.jsxs(vaul.Drawer.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(vaul.Drawer.Trigger,{asChild:true,children:a}),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:c,className:o(Ph({size:u})),children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-muted"}),(r||n)&&jsxRuntime.jsxs("div",{className:"px-4 py-3 text-center",children:[r&&jsxRuntime.jsx(vaul.Drawer.Title,{className:"text-base font-semibold",children:r}),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:m||jsxRuntime.jsx("div",{className:"divide-y",children:i?.map(b=>jsxRuntime.jsxs("button",{type:"button",disabled:b.isDisabled,onClick:()=>v(b),className:o(Ch({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))})}),d&&jsxRuntime.jsx("div",{className:"border-t p-2 pb-safe",children:jsxRuntime.jsx("button",{type:"button",onClick:N,className:"w-full rounded-lg bg-muted py-3.5 text-center font-semibold transition-colors hover:bg-muted/80",children:s})})]})]})]})});Sh.displayName="ActionSheet";var Mh=classVarianceAuthority.cva("relative overflow-hidden touch-pan-y",{variants:{variant:{default:"",card:"rounded-lg border bg-card"}},defaultVariants:{variant:"default"}}),Ol=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"}}),kh=$__namespace.forwardRef(({className:e,variant:t,leftActions:a=[],rightActions:r=[],actionSize:n="md",threshold:i=.3,onSwipeEnd:s,disabled:l=false,fullSwipeAction:d,children:m,...u},p)=>{let g=$__namespace.useRef(null),[c,v]=$__namespace.useState(0),[N,b]=$__namespace.useState(false),h=$__namespace.useRef(0),R=$__namespace.useRef(0),f=a.length*(n==="sm"?64:n==="lg"?96:80),x=r.length*(n==="sm"?64:n==="lg"?96:80),C=w=>{l||(b(true),h.current=w.touches[0].clientX,R.current=c);},y=w=>{if(!N||l)return;let D=w.touches[0].clientX-h.current,M=R.current+D;(M>0&&a.length===0||M<0&&r.length===0)&&(M=0),M>f?M=f+(M-f)*.3:M<-x&&(M=-x+(M+x)*.3),v(M);},S=()=>{if(!N)return;b(false);let w=g.current?.offsetWidth||0,P=Math.abs(c)/w;if(d&&P>.6){d==="right"&&c>0&&a[0]?(a[0].onAction?.(),s?.("right",a[0].key)):d==="left"&&c<0&&r[0]&&(r[0].onAction?.(),s?.("left",r[0].key)),v(0);return}c>f*i&&a.length>0?(v(f),s?.("right")):c<-x*i&&r.length>0?(v(-x),s?.("left")):v(0);},T=(w,P)=>{w.onAction?.(),s?.(P,w.key),v(0);},k=()=>{v(0);};return jsxRuntime.jsxs("div",{ref:p,className:o(Mh({variant:t,className:e})),...u,children:[a.length>0&&jsxRuntime.jsx("div",{className:"absolute left-0 top-0 bottom-0 flex",style:{width:f},children:a.map(w=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>T(w,"right"),className:o(Ol({variant:w.variant,size:n})),style:{opacity:Math.min(1,c/f)},children:[w.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:w.icon}),!w.icon&&w.label]},w.key))}),r.length>0&&jsxRuntime.jsx("div",{className:"absolute right-0 top-0 bottom-0 flex",style:{width:x},children:r.map(w=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>T(w,"left"),className:o(Ol({variant:w.variant,size:n})),style:{opacity:Math.min(1,Math.abs(c)/x)},children:[w.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:w.icon}),!w.icon&&w.label]},w.key))}),jsxRuntime.jsx("div",{ref:g,className:o("relative bg-background",N?"":"transition-transform duration-200"),style:{transform:`translateX(${c}px)`},onTouchStart:C,onTouchMove:y,onTouchEnd:S,onClick:c!==0?k:void 0,children:m})]})});kh.displayName="SwipeActions";var Vh=classVarianceAuthority.cva("relative overflow-hidden",{variants:{variant:{default:"",contained:"h-full"}},defaultVariants:{variant:"default"}}),KT=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"}}),Lh=$__namespace.forwardRef(({className:e,variant:t,onRefresh:a,pullThreshold:r=80,maxPullDistance:n=120,loadingIndicator:i,pullIndicator:s,indicatorSize:l="md",disabled:d=false,pullText:m="Pull to refresh",releaseText:u="Release to refresh",refreshingText:p="Refreshing...",children:g,...c},v)=>{let N=$__namespace.useRef(null),[b,h]=$__namespace.useState(0),[R,f]=$__namespace.useState("idle"),x=$__namespace.useRef(0),C=$__namespace.useRef(false),y=()=>d||R==="refreshing"?false:(N.current?.scrollTop??window.scrollY)<=0,S=D=>{y()&&(x.current=D.touches[0].clientY,C.current=true);},T=D=>{if(!C.current||!y())return;let I=D.touches[0].clientY-x.current;if(I<0){h(0),f("idle");return}let V=Math.min(I*.5,n);h(V),f(V>=r?"ready":"pulling");},k=async()=>{if(C.current)if(C.current=false,R==="ready"){f("refreshing"),h(r*.6);try{await a();}finally{f("idle"),h(0);}}else f("idle"),h(0);},w={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[l],P=()=>{if(R==="refreshing")return i||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(w,"animate-spin text-primary")}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:p})]});let D=Math.min(b/r*180,180);return s||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.ArrowDown,{className:o(w,"text-muted-foreground transition-transform"),style:{transform:`rotate(${D}deg)`}}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:R==="ready"?u:m})]})};return jsxRuntime.jsxs("div",{ref:v,className:o(Vh({variant:t,className:e})),...c,children:[jsxRuntime.jsx("div",{className:o(KT({size:l}),"z-10",R==="idle"&&b===0&&"opacity-0"),style:{top:Math.max(b-60,-60),opacity:Math.min(b/(r*.5),1)},children:P()}),jsxRuntime.jsx("div",{ref:N,className:o("transition-transform duration-200",R==="refreshing"&&"ease-out"),style:{transform:`translateY(${b}px)`,transition:C.current?"none":void 0},onTouchStart:S,onTouchMove:T,onTouchEnd:k,children:g})]})});Lh.displayName="PullToRefresh";var Eh=classVarianceAuthority.cva("flex min-h-screen w-full",{variants:{layout:{default:"flex-col",sidebar:"flex-row"}},defaultVariants:{layout:"default"}}),Hh=$__namespace.forwardRef(({className:e,layout:t="default",header:a,footer:r,sidebar:n,aside:i,sidebarCollapsed:s=false,sidebarWidth:l="16rem",sidebarCollapsedWidth:d="4rem",asideWidth:m="16rem",fixed:u=false,children:p,...g},c)=>{let v=s?d:l;return jsxRuntime.jsxs("div",{ref:c,className:o(Eh({layout:t}),e),style:{"--app-shell-sidebar-width":v,"--app-shell-aside-width":m},...g,children:[a&&jsxRuntime.jsx($l,{fixed:u,hasSidebar:!!n,children:a}),jsxRuntime.jsxs("div",{className:"flex flex-1",children:[n&&jsxRuntime.jsx(Wl,{collapsed:s,fixed:u,children:n}),jsxRuntime.jsx("main",{className:o("flex-1 flex flex-col min-h-0",u&&a&&"pt-14",u&&r&&"pb-14"),children:p}),i&&jsxRuntime.jsx(_l,{fixed:u,children:i})]}),r&&jsxRuntime.jsx(Kl,{fixed:u,hasSidebar:!!n,children:r})]})});Hh.displayName="AppShell";var $l=$__namespace.forwardRef(({className:e,fixed:t,hasSidebar:a,children:r,...n},i)=>jsxRuntime.jsx("header",{ref:i,className:o("flex h-14 items-center border-b bg-background px-4",t&&"fixed top-0 right-0 z-40",t&&a&&"left-[var(--app-shell-sidebar-width)]",t&&!a&&"left-0",e),...n,children:r}));$l.displayName="AppShellHeader";var Wl=$__namespace.forwardRef(({className:e,collapsed:t,fixed:a,children:r,...n},i)=>jsxRuntime.jsx("aside",{ref:i,className:o("w-[var(--app-shell-sidebar-width)] shrink-0 border-r bg-background transition-[width] duration-200",a&&"fixed left-0 top-0 bottom-0 z-50",e),"data-collapsed":t,...n,children:r}));Wl.displayName="AppShellSidebar";var _l=$__namespace.forwardRef(({className:e,fixed:t,children:a,...r},n)=>jsxRuntime.jsx("aside",{ref:n,className:o("w-[var(--app-shell-aside-width)] shrink-0 border-l bg-background",t&&"fixed right-0 top-14 bottom-0 z-40",e),...r,children:a}));_l.displayName="AppShellAside";var Kl=$__namespace.forwardRef(({className:e,fixed:t,hasSidebar:a,children:r,...n},i)=>jsxRuntime.jsx("footer",{ref:i,className:o("flex h-14 items-center border-t bg-background px-4",t&&"fixed bottom-0 right-0 z-40",t&&a&&"left-[var(--app-shell-sidebar-width)]",t&&!a&&"left-0",e),...n,children:r}));Kl.displayName="AppShellFooter";var Ah=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 overflow-auto p-4",e),...t}));Ah.displayName="AppShellMain";var Bh=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"}}),Fh=$__namespace.forwardRef(({className:e,variant:t,navigation:a,logo:r,userMenu:n,headerActions:i,breadcrumb:s,defaultCollapsed:l=false,collapsed:d,onCollapsedChange:m,children:u,...p},g)=>{let[c,v]=$__namespace.useState(l),[N,b]=$__namespace.useState(false),h=d??c,R=$__namespace.useCallback(f=>{v(f),m?.(f);},[m]);return jsxRuntime.jsxs("div",{ref:g,className:o(Bh({variant:t}),e),...p,children:[jsxRuntime.jsxs("aside",{"data-slot":"sidebar","data-collapsed":h,className:o("hidden lg:flex flex-col fixed inset-y-0 left-0 z-50 bg-background transition-[width] duration-200",h?"w-16":"w-64"),children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:r}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:a}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]}),jsxRuntime.jsx(ho,{open:N,onOpenChange:b,children:jsxRuntime.jsxs(xr,{side:"left",className:"w-64 p-0",children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:r}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:a}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]})}),jsxRuntime.jsxs("div",{className:o("flex flex-1 flex-col transition-[margin-left] duration-200",h?"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(O,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>b(true),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle menu"})]}),jsxRuntime.jsxs(O,{variant:"ghost",size:"icon",className:"hidden lg:flex",onClick:()=>R(!h),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}),i&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:i})]}),jsxRuntime.jsx("main",{className:"flex-1 p-4 lg:p-6",children:u})]})]})});Fh.displayName="DashboardLayout";var Oh=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("space-y-6",e),...t}));Oh.displayName="DashboardPage";var Gh=$__namespace.forwardRef(({className:e,title:t,description:a,actions:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,className:o("flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",e),...i,children:[jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:t}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),n]}),r&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:r})]}));Gh.displayName="DashboardPageHeader";var $h=$__namespace.forwardRef(({className:e,columns:t=4,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("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),...a}));$h.displayName="DashboardGrid";var Hi=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"}}),Wh=$__namespace.forwardRef(({className:e,variant:t="centered",logo:a,sideContent:r,backgroundImage:n,sidePosition:i="left",footer:s,children:l,...d},m)=>t==="split"?jsxRuntime.jsxs("div",{ref:m,className:o(Hi({variant:t}),e),...d,children:[jsxRuntime.jsx("div",{className:o("hidden lg:flex lg:w-1/2 flex-col bg-primary text-primary-foreground",i==="right"&&"order-2"),children:r||jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:[a&&jsxRuntime.jsx("div",{className:"mb-8",children:a}),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:o("flex flex-1 flex-col lg:w-1/2",i==="right"&&"order-1"),children:[a&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-6 lg:hidden",children:a}),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:m,className:o(Hi({variant:t}),e),style:n?{backgroundImage:`url(${n})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,...d,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:[a&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:a}),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:m,className:o(Hi({variant:t}),e),...d,children:jsxRuntime.jsxs("div",{className:"w-full max-w-md p-6",children:[a&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:a}),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})]})}));Wh.displayName="AuthLayout";var _h=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("form",{ref:a,className:o("space-y-4",e),...t}));_h.displayName="AuthForm";var Kh=$__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-2 text-center",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),r]}));Kh.displayName="AuthHeader";var Uh=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex flex-col gap-2 text-center text-sm",e),...t}));Uh.displayName="AuthFooterLinks";var Yh=$__namespace.forwardRef(({className:e,text:t="or continue with",...a},r)=>jsxRuntime.jsxs("div",{ref:r,className:o("relative my-4",e),...a,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})})]}));Yh.displayName="AuthDivider";var jh=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("grid grid-cols-2 gap-2",e),...t}));jh.displayName="AuthSocialButtons";var Ai=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"}}),Xh=$__namespace.forwardRef(({className:e,variant:t="sidebar",navigation:a,title:r,description:n,children:i,...s},l)=>t==="sidebar"?jsxRuntime.jsxs("div",{ref:l,className:o(Ai({variant:t}),e),...s,children:[a&&jsxRuntime.jsx("aside",{className:"lg:w-64 shrink-0",children:jsxRuntime.jsx("nav",{className:"flex flex-col gap-1",children:a})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-6",children:[(r||n)&&jsxRuntime.jsx(Qo,{title:r,description:n}),i]})]}):t==="tabs"?jsxRuntime.jsxs("div",{ref:l,className:o(Ai({variant:t}),e),...s,children:[(r||n)&&jsxRuntime.jsx(Qo,{title:r,description:n}),a,jsxRuntime.jsx("div",{className:"pt-4",children:i})]}):jsxRuntime.jsxs("div",{ref:l,className:o(Ai({variant:t}),e),...s,children:[(r||n)&&jsxRuntime.jsx(Qo,{title:r,description:n}),i]}));Xh.displayName="SettingsLayout";var Qo=$__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-1",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),r]}));Qo.displayName="SettingsHeader";var qh=$__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-4",e),...n,children:[(t||a)&&jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h2",{className:"text-lg font-medium",children:t}),a&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),r]}));qh.displayName="SettingsSection";var Zh=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("rounded-lg border bg-card p-6",e),...t}));Zh.displayName="SettingsCard";var Qh=$__namespace.forwardRef(({className:e,label:t,description:a,htmlFor:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,className:o("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),...i,children:[jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[t&&jsxRuntime.jsx("label",{htmlFor:r,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),a&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),jsxRuntime.jsx("div",{className:"shrink-0",children:n})]}));Qh.displayName="SettingsRow";var Jh=$__namespace.forwardRef(({className:e,active:t,icon:a,children:r,...n},i)=>jsxRuntime.jsxs("button",{ref:i,type:"button",className:o("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:[a&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:a}),r]}));Jh.displayName="SettingsNavItem";var ex=$__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("h-px bg-border my-4",e),...t}));ex.displayName="SettingsSeparator";var vr=(e,t,a)=>({duration:e,delay:t,ease:a||[.4,0,.2,1]}),qT={hidden:e=>({opacity:e}),visible:{opacity:1},exit:e=>({opacity:e})},tx=$__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialOpacity:l=0,onAnimationStart:d,onAnimationComplete:m},u)=>{let p=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:qT,custom:l,transition:vr(a,r,n),className:o(i),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});tx.displayName="Fade";var ZT=(e,t)=>{let a=typeof t=="number"?`${t}px`:t,r={up:{y:a},down:{y:`-${a}`},left:{x:a},right:{x:`-${a}`}};return {hidden:{opacity:0,...r[e]},visible:{opacity:1,x:0,y:0},exit:{opacity:0,...r[e]}}},ax=$__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,direction:l="up",offset:d=20,onAnimationStart:m,onAnimationComplete:u},p)=>{let g=$__namespace.useMemo(()=>ZT(l,d),[l,d]),c=jsxRuntime.jsx(framerMotion.motion.div,{ref:p,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:g,transition:vr(a,r,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&c}):c});ax.displayName="Slide";var QT={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"},JT={hidden:e=>({opacity:0,scale:e}),visible:{opacity:1,scale:1},exit:e=>({opacity:0,scale:e})},rx=$__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialScale:l=.9,origin:d="center",onAnimationStart:m,onAnimationComplete:u},p)=>{let g=jsxRuntime.jsx(framerMotion.motion.div,{ref:p,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:JT,custom:l,transition:vr(a,r,n),className:o(i),style:{transformOrigin:QT[d]},onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&g}):g});rx.displayName="Scale";var ox=$__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,horizontal:s=false,startingSize:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},p)=>{let g=s?"width":"height",c={hidden:{[g]:l,opacity:d?0:1},visible:{[g]:"auto",opacity:1},exit:{[g]:l,opacity:d?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:p,initial:"hidden",animate:"visible",exit:"exit",variants:c,transition:vr(a,r,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});ox.displayName="Collapse";var nx=$__namespace.forwardRef(({show:e=true,children:t,duration:a=.4,delay:r=0,ease:n,className:i,initialWidth:s=0,initialHeight:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},p)=>{let g={hidden:{width:s,height:l,opacity:d?0:1},visible:{width:"auto",height:"auto",opacity:1},exit:{width:s,height:l,opacity:d?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:p,initial:"hidden",animate:"visible",exit:"exit",variants:g,transition:vr(a,r,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});nx.displayName="Expand";var ix=$__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialRotation:l=-180,finalRotation:d=0,onAnimationStart:m,onAnimationComplete:u},p)=>{let g={hidden:{opacity:0,rotate:l},visible:{opacity:1,rotate:d},exit:{opacity:0,rotate:l}},c=jsxRuntime.jsx(framerMotion.motion.div,{ref:p,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:g,transition:vr(a,r,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&c}):c});ix.displayName="Rotate";var sx=$__namespace.forwardRef(({front:e,back:t,direction:a="horizontal",flipped:r=false,duration:n=.6,delay:i=0,ease:s,className:l,onAnimationStart:d,onAnimationComplete:m},u)=>{let p=a==="horizontal"?"rotateY":"rotateX";return jsxRuntime.jsx("div",{ref:u,className:o("relative",l),style:{perspective:1e3},children:jsxRuntime.jsxs(framerMotion.motion.div,{animate:{[p]:r?180:0},transition:vr(n,i,s),style:{transformStyle:"preserve-3d"},onAnimationStart:d,onAnimationComplete:m,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden"},children:e}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden",transform:`${p}(180deg)`},children:t})]})})});sx.displayName="Flip";var lx=$__namespace.forwardRef(({color:e="currentColor",duration:t=.6,children:a,className:r,disabled:n=false},i)=>{let[s,l]=$__namespace.useState([]),d=$__namespace.useRef(null),m=p=>{if(n)return;let g=d.current;if(!g)return;let c=g.getBoundingClientRect(),v=p.clientX-c.left,N=p.clientY-c.top,b=Math.max(c.width,c.height)*2,h={id:Date.now(),x:v,y:N,size:b};l(R=>[...R,h]);},u=p=>{l(g=>g.filter(c=>c.id!==p));};return jsxRuntime.jsxs("div",{ref:i,className:o("relative overflow-hidden",r),onClick:m,children:[jsxRuntime.jsx("div",{ref:d,className:"relative z-0",children:a}),jsxRuntime.jsx(framerMotion.AnimatePresence,{children:s.map(p=>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(p.id),className:"pointer-events-none absolute rounded-full",style:{left:p.x-p.size/2,top:p.y-p.size/2,width:p.size,height:p.size,backgroundColor:e}},p.id))})]})});lx.displayName="Ripple";var dx=$__namespace.forwardRef(({children:e,animate:t=true,height:a=10,duration:r=.5,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=$__namespace.useState(false),u=s?d:t,p={idle:{y:0},bounce:{y:[0,-a,0],transition:{duration:r,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:p,initial:"idle",animate:u?"bounce":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});dx.displayName="Bounce";var aM={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]},cx=$__namespace.forwardRef(({children:e,animate:t=true,intensity:a="normal",duration:r=.5,count:n=1,className:i,triggerOnHover:s=false},l)=>{let[d,m]=$__namespace.useState(false),u=s?d:t,p={idle:{x:0},shake:{x:aM[a],transition:{duration:r,ease:"easeInOut",repeat:n-1}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:p,initial:"idle",animate:u?"shake":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});cx.displayName="Shake";var rM={slow:"animate-[pulse_3s_ease-in-out_infinite]",normal:"animate-[pulse_2s_ease-in-out_infinite]",fast:"animate-[pulse_1s_ease-in-out_infinite]"},mx=$__namespace.forwardRef(({children:e,animate:t=true,speed:a="normal",className:r},n)=>jsxRuntime.jsx("div",{ref:n,className:o(t&&rM[a],r),children:e}));mx.displayName="Pulse";var px=$__namespace.forwardRef(({children:e,animate:t=true,angle:a=10,duration:r=.3,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=$__namespace.useState(false),u=s?d:t,p={idle:{rotate:0},wiggle:{rotate:[0,-a,a,-a,a,0],transition:{duration:r,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:p,initial:"idle",animate:u?"wiggle":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});px.displayName="Wiggle";var ux=$__namespace.forwardRef(({children:e,animate:t=false,scale:a=1.2,duration:r=.2,className:n,triggerOnHover:i=false,triggerOnClick:s=false},l)=>{let[d,m]=$__namespace.useState(false),u=t||d,p={type:"spring",stiffness:400,damping:17,duration:r},g=()=>{s&&(m(true),setTimeout(()=>m(false),r*1e3));};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,animate:{scale:u?a:1},transition:p,className:o(n),onMouseEnter:()=>i&&m(true),onMouseLeave:()=>i&&m(false),onClick:g,children:e})});ux.displayName="Pop";var lM=(e,t,a,r)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,a);return s?`${l}${r}${s}`:l},fx=$__namespace.forwardRef(({value:e,from:t=0,duration:a=2,decimals:r=0,prefix:n="",suffix:i="",separator:s=",",decimalSeparator:l=".",animateOnView:d=true,delay:m=0,className:u,onComplete:p},g)=>{let c=$__namespace.useRef(null),v=framerMotion.useInView(c,{once:true}),[N,b]=$__namespace.useState(!d);$__namespace.useEffect(()=>{if(d&&v){let x=setTimeout(()=>b(true),m*1e3);return ()=>clearTimeout(x)}},[d,v,m]);let h={damping:30,stiffness:100,duration:a*1e3},R=framerMotion.useSpring(N?e:t,h),f=framerMotion.useTransform(R,x=>lM(x,r,s,l));return $__namespace.useEffect(()=>{N&&R.set(e);},[N,e,R]),$__namespace.useEffect(()=>{let x=R.on("change",C=>{Math.abs(C-e)<.01&&p&&p();});return ()=>x()},[R,e,p]),jsxRuntime.jsx("span",{ref:c,className:o(u),children:jsxRuntime.jsxs("span",{ref:g,children:[n,jsxRuntime.jsx(framerMotion.motion.span,{children:f}),i]})})});fx.displayName="Counter";var gx=$__namespace.forwardRef(({text:e,speed:t=50,delay:a=0,pauseBetween:r=1500,cursor:n=true,cursorChar:i="|",loop:s=false,deleteSpeed:l=30,animateOnView:d=true,className:m,cursorClassName:u,onComplete:p},g)=>{let c=Array.isArray(e)?e:[e],[v,N]=$__namespace.useState(""),[b,h]=$__namespace.useState(0),[R,f]=$__namespace.useState(false),[x,C]=$__namespace.useState(false),y=$__namespace.useRef(null),S=framerMotion.useInView(y,{once:true}),[T,k]=$__namespace.useState(!d);return $__namespace.useEffect(()=>{if(d&&S){let w=setTimeout(()=>k(true),a*1e3);return ()=>clearTimeout(w)}},[d,S,a]),$__namespace.useEffect(()=>{if(!T||x)return;let w=c[b],P;return R?v.length>0?P=setTimeout(()=>{N(v.slice(0,-1));},l):(f(false),h(D=>(D+1)%c.length)):v.length<w.length?P=setTimeout(()=>{N(w.slice(0,v.length+1));},t):b<c.length-1||s?P=setTimeout(()=>{f(true);},r):(C(true),p?.()),()=>clearTimeout(P)},[T,v,b,R,x,c,t,l,r,s,p]),jsxRuntime.jsxs("span",{ref:y,className:o(m),children:[jsxRuntime.jsx("span",{ref:g,children:v}),n&&jsxRuntime.jsx(framerMotion.motion.span,{animate:{opacity:[1,0]},transition:{duration:.8,repeat:1/0,repeatType:"reverse"},className:o("ml-0.5",u),children:i})]})});gx.displayName="Typewriter";var bx=$__namespace.forwardRef(({children:e,direction:t="up",stagger:a=.05,duration:r=.5,delay:n=0,splitBy:i="word",animateOnView:s=true,className:l},d)=>{let m=$__namespace.useRef(null),u=framerMotion.useInView(m,{once:true,amount:.5}),p=s?u:true,g=typeof e=="string"?e:"",c=i==="word"?g.split(" "):g.split(""),v={up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}},N={hidden:{},visible:{transition:{staggerChildren:a,delayChildren:n}}},b={hidden:{opacity:0,...v[t]},visible:{opacity:1,x:0,y:0,transition:{duration:r,ease:"easeInOut"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:d,className:o("inline-flex flex-wrap",l),variants:N,initial:"hidden",animate:p?"visible":"hidden",children:jsxRuntime.jsx("span",{ref:m,children:c.map((h,R)=>jsxRuntime.jsxs(framerMotion.motion.span,{variants:b,className:"inline-block",children:[h,i==="word"&&R<c.length-1&&"\xA0"]},R))})})});bx.displayName="TextReveal";var vx=$__namespace.forwardRef(({words:e,duration:t=2,animation:a="slide",animationDuration:r=.5,className:n,loop:i=true},s)=>{let[l,d]=$__namespace.useState(0);$__namespace.useEffect(()=>{if(!i&&l===e.length-1)return;let u=setInterval(()=>{d(p=>(p+1)%e.length);},t*1e3);return ()=>clearInterval(u)},[e.length,t,i,l]);let m=()=>{switch(a){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:o("relative inline-block",n),children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(framerMotion.motion.span,{variants:m(),initial:"initial",animate:"animate",exit:"exit",transition:{duration:r},className:"inline-block",children:e[l]},e[l])})})});vx.displayName="WordRotate";var Rx=$__namespace.forwardRef(({children:e,direction:t="up",distance:a=50,duration:r=.6,delay:n=0,once:i=true,threshold:s=.1,className:l,scale:d,rotate:m,blur:u,ease:p=[.4,0,.2,1]},g)=>{let c=$__namespace.useRef(null),v=framerMotion.useInView(c,{once:i,amount:s}),b={up:{x:0,y:a},down:{x:0,y:-a},left:{x:a,y:0},right:{x:-a,y:0},none:{x:0,y:0}}[t],h={hidden:{opacity:0,x:b.x,y:b.y,scale:d??1,rotate:m??0,filter:u?`blur(${u}px)`:"blur(0px)"},visible:{opacity:1,x:0,y:0,scale:1,rotate:0,filter:"blur(0px)",transition:{duration:r,delay:n,ease:p}}};return jsxRuntime.jsx("div",{ref:c,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:g,variants:h,initial:"hidden",animate:v?"visible":"hidden",className:o(l),children:e})})});Rx.displayName="ScrollReveal";var wx=$__namespace.forwardRef(({position:e="top",size:t=4,color:a="hsl(var(--primary))",backgroundColor:r="transparent",zIndex:n=50,className:i,container:s,showPercentage:l=false,useSpring:d=true},m)=>{let{scrollYProgress:u}=framerMotion.useScroll({container:s}),p=framerMotion.useSpring(u,{stiffness:100,damping:30,restDelta:.001}),g=d?p:u,c=e==="top"||e==="bottom",v={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}},N=c?"scaleX":"scaleY",b=c?"left":"top";return jsxRuntime.jsxs("div",{ref:m,className:o("fixed",i),style:{...v[e],zIndex:n,backgroundColor:r},children:[jsxRuntime.jsx(framerMotion.motion.div,{className:"h-full w-full",style:{[N]:g,transformOrigin:b,backgroundColor:a}}),l&&jsxRuntime.jsx(cM,{progress:g,position:e})]})});wx.displayName="ScrollProgress";var cM=({progress:e,position:t})=>{let a=framerMotion.useTransform(e,s=>Math.round(s*100)),[r,n]=$__namespace.useState(0);return $__namespace.useEffect(()=>{let s=a.on("change",n);return ()=>s()},[a]),jsxRuntime.jsxs("span",{className:o("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:[r,"%"]})},Nx=$__namespace.forwardRef(({children:e,speed:t=.5,direction:a="vertical",className:r,container:n},i)=>{let s=$__namespace.useRef(null),{scrollYProgress:l}=framerMotion.useScroll({target:s,container:n,offset:["start end","end start"]}),d=[-100*t,100*t],m=framerMotion.useTransform(l,[0,1],d),u=framerMotion.useSpring(m,{stiffness:100,damping:30}),p=a==="horizontal"?u:0,g=a==="vertical"?u:0;return jsxRuntime.jsx("div",{ref:s,className:o("overflow-hidden",r),children:jsxRuntime.jsx(framerMotion.motion.div,{ref:i,style:{x:p,y:g},children:e})})});Nx.displayName="Parallax";var Sx=$__namespace.forwardRef(({children:e,width:t,height:a,duration:r=1.5,direction:n="right",baseColor:i="hsl(var(--muted))",highlightColor:s="hsl(var(--muted-foreground) / 0.1)",borderRadius:l,className:d,active:m=true},u)=>{let p={left:"to left",right:"to right",top:"to top",bottom:"to bottom"},g={left:"shimmer-left",right:"shimmer-right",top:"shimmer-top",bottom:"shimmer-bottom"};return jsxRuntime.jsxs("div",{ref:u,className:o("relative overflow-hidden",d),style:{width:t,height:a,borderRadius:l,backgroundColor:i},children:[e,m&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(${p[n]}, transparent, ${s}, transparent)`,animation:`${g[n]} ${r}s infinite`}}),jsxRuntime.jsx("style",{children:`
31
+ `,Pc=false,vR=()=>{if(Pc||typeof document>"u")return;let e=document.createElement("style");e.textContent=bR,document.head.appendChild(e),Pc=true;},Tc=K__namespace.forwardRef(({className:e,title:t,children:a,...r},n)=>(K__namespace.useEffect(()=>{vR();},[]),jsxRuntime.jsxs(ir__namespace.Root,{ref:n,className:o("space-y-2",e),...r,children:[t&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between space-x-4 px-4",children:[jsxRuntime.jsx("h4",{className:"text-sm font-semibold",children:t}),jsxRuntime.jsx(ir__namespace.CollapsibleTrigger,{className:"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",children:jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})})]}),a]})));Tc.displayName="Collapsible";var Mc=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx(ir__namespace.CollapsibleTrigger,{ref:r,className:o("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",e),...a,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})}));Mc.displayName="CollapsibleTrigger";var kc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ir__namespace.CollapsibleContent,{ref:a,className:o("collapsible-content overflow-hidden",e),...t}));kc.displayName="CollapsibleContent";var hR=ce__namespace.Root,xR=ce__namespace.Trigger,Dc=ce__namespace.Portal,ws=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ce__namespace.Overlay,{className:o("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),...t,ref:a}));ws.displayName=ce__namespace.Overlay.displayName;var Lc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsxs(Dc,{children:[jsxRuntime.jsx(ws,{}),jsxRuntime.jsx(ce__namespace.Content,{ref:a,className:o("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),...t})]}));Lc.displayName=ce__namespace.Content.displayName;var Vc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});Vc.displayName="AlertDialogHeader";var Ic=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ic.displayName="AlertDialogFooter";var Ec=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ce__namespace.Title,{ref:a,className:o("text-lg font-semibold",e),...t}));Ec.displayName=ce__namespace.Title.displayName;var Hc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ce__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));Hc.displayName=ce__namespace.Description.displayName;var Ac=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ce__namespace.Action,{ref:a,className:o(Ee(),e),...t}));Ac.displayName=ce__namespace.Action.displayName;var zc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ce__namespace.Cancel,{ref:a,className:o(Ee({variant:"bordered"}),"mt-2 sm:mt-0",e),...t}));zc.displayName=ce__namespace.Cancel.displayName;var Ln=K__namespace.forwardRef(({className:e,value:t,...a},r)=>jsxRuntime.jsx(Do__namespace.Root,{ref:r,className:o("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:jsxRuntime.jsx(Do__namespace.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Ln.displayName=Do__namespace.Root.displayName;var RR=lr__namespace.Root,wR=lr__namespace.Trigger,Gc=K__namespace.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsxRuntime.jsx(lr__namespace.Content,{ref:n,align:t,sideOffset:a,className:o("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Gc.displayName=lr__namespace.Content.displayName;var Wc=K__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Wc.displayName="Breadcrumb";var $c=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ol",{ref:a,className:o("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));$c.displayName="BreadcrumbList";var _c=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,className:o("inline-flex items-center gap-1.5",e),...t}));_c.displayName="BreadcrumbItem";var Kc=K__namespace.forwardRef(({asChild:e,className:t,...a},r)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:r,className:o("transition-colors hover:text-foreground",t),...a}));Kc.displayName="BreadcrumbLink";var Uc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:o("font-normal text-foreground",e),...t}));Uc.displayName="BreadcrumbPage";var Yc=({children:e,className:t,...a})=>jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:o("[&>svg]:h-3.5 [&>svg]:w-3.5",t),...a,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})});Yc.displayName="BreadcrumbSeparator";var jc=({className:e,...t})=>jsxRuntime.jsxs("span",{role:"presentation","aria-hidden":"true",className:o("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"})]});jc.displayName="BreadcrumbEllipsis";var MR=Xc__namespace.Root;var qc=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(he__namespace.Root,{ref:r,className:o("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[t,jsxRuntime.jsx(Ns,{})]}));qc.displayName=he__namespace.Root.displayName;var Zc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(he__namespace.List,{ref:a,className:o("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));Zc.displayName=he__namespace.List.displayName;var LR=he__namespace.Item,Qc=classVarianceAuthority.cva("group inline-flex h-10 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-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),Jc=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(he__namespace.Trigger,{ref:r,className:o(Qc(),"group",e),...a,children:[t," ",jsxRuntime.jsx(lucideReact.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Jc.displayName=he__namespace.Trigger.displayName;var em=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(he__namespace.Content,{ref:a,className:o("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));em.displayName=he__namespace.Content.displayName;var VR=he__namespace.Link,Ns=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{className:o("absolute left-0 top-full flex justify-center"),children:jsxRuntime.jsx(he__namespace.Viewport,{className:o("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:a,...t})}));Ns.displayName=he__namespace.Viewport.displayName;var tm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(he__namespace.Indicator,{ref:a,className:o("top-full z-[1] flex h-1.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"})}));tm.displayName=he__namespace.Indicator.displayName;var om=({shouldScaleBackground:e=true,...t})=>jsxRuntime.jsx(vaul.Drawer.Root,{shouldScaleBackground:e,...t});om.displayName="Drawer";var IR=vaul.Drawer.Trigger,nm=vaul.Drawer.Portal,ER=vaul.Drawer.Close,Ps=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Overlay,{ref:a,className:o("fixed inset-0 z-50 bg-black/80",e),...t}));Ps.displayName=vaul.Drawer.Overlay.displayName;var im=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(nm,{children:[jsxRuntime.jsx(Ps,{}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:r,className:o("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...a,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));im.displayName="DrawerContent";var sm=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("grid gap-1.5 p-4 text-center sm:text-left",e),...t});sm.displayName="DrawerHeader";var lm=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("mt-auto flex flex-col gap-2 p-4",e),...t});lm.displayName="DrawerFooter";var dm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));dm.displayName=vaul.Drawer.Title.displayName;var cm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));cm.displayName=vaul.Drawer.Description.displayName;var mm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:a,className:o("w-full caption-bottom text-sm",e),...t})}));mm.displayName="Table";var um=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("thead",{ref:a,className:o("[&_tr]:border-b",e),...t}));um.displayName="TableHeader";var pm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tbody",{ref:a,className:o("[&_tr:last-child]:border-0",e),...t}));pm.displayName="TableBody";var fm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tfoot",{ref:a,className:o("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));fm.displayName="TableFooter";var gm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tr",{ref:a,className:o("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));gm.displayName="TableRow";var bm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("th",{ref:a,className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));bm.displayName="TableHead";var vm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("td",{ref:a,className:o("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));vm.displayName="TableCell";var hm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("caption",{ref:a,className:o("mt-4 text-sm text-muted-foreground",e),...t}));hm.displayName="TableCaption";var ym=classVarianceAuthority.cva("animate-spin text-muted-foreground",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),Rm=K__namespace.forwardRef(({className:e,size:t,...a},r)=>jsxRuntime.jsx(lucideReact.Loader2,{ref:r,className:o(ym({size:t,className:e})),...a}));Rm.displayName="Spinner";function Fr({className:e,classNames:t,showOutsideDays:a=true,...r}){return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:a,className:o("p-3",e),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-4",month_caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",button_previous:o(Ee({variant:"bordered"}),"absolute left-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),button_next:o(Ee({variant:"bordered"}),"absolute right-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),month_grid:"w-full border-collapse space-y-1",weekdays:"flex",weekday:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",week:"flex w-full mt-2",day:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day_button:o(Ee({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),range_end:"day-range-end",selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",today:"bg-accent text-accent-foreground",outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",disabled:"text-muted-foreground opacity-50",range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",hidden:"invisible",...t},components:{Chevron:({orientation:n})=>n==="left"?jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})},...r})}Fr.displayName="Calendar";var wm=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:o("mx-auto flex w-full justify-center",e),...t});wm.displayName="Pagination";var Nm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,className:o("flex flex-row items-center gap-1",e),...t}));Nm.displayName="PaginationContent";var Pm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,className:o("",e),...t}));Pm.displayName="PaginationItem";var Vn=({className:e,isActive:t,size:a="icon",...r})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:o(Ee({variant:t?"bordered":"ghost",size:a}),e),...r});Vn.displayName="PaginationLink";var Cm=({className:e,...t})=>jsxRuntime.jsxs(Vn,{"aria-label":"Go to previous page",size:"md",className:o("gap-1 pl-2.5",e),...t,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:"Previous"})]});Cm.displayName="PaginationPrevious";var Sm=({className:e,...t})=>jsxRuntime.jsxs(Vn,{"aria-label":"Go to next page",size:"md",className:o("gap-1 pr-2.5",e),...t,children:[jsxRuntime.jsx("span",{children:"Next"}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})]});Sm.displayName="PaginationNext";var Tm=({className:e,...t})=>jsxRuntime.jsxs("span",{"aria-hidden":true,className:o("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"})]});Tm.displayName="PaginationEllipsis";var Ms=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command,{ref:a,className:o("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Ms.displayName=cmdk.Command.displayName;var KR=({children:e,...t})=>jsxRuntime.jsx(ts,{...t,children:jsxRuntime.jsx(gn,{className:"overflow-hidden p-0 shadow-lg",children:jsxRuntime.jsx(Ms,{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})})}),Mm=K__namespace.forwardRef(({className:e,...t},a)=>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:a,className:o("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})]}));Mm.displayName=cmdk.Command.Input.displayName;var km=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.List,{ref:a,className:o("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));km.displayName=cmdk.Command.List.displayName;var Dm=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Dm.displayName=cmdk.Command.Empty.displayName;var Lm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:a,className:o("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}));Lm.displayName=cmdk.Command.Group.displayName;var Vm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:a,className:o("-mx-1 h-px bg-border",e),...t}));Vm.displayName=cmdk.Command.Separator.displayName;var Im=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Item,{ref:a,className:o("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}));Im.displayName=cmdk.Command.Item.displayName;var Em=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Em.displayName="CommandShortcut";var Hm=K__namespace.forwardRef(({className:e,showToggle:t=true,disabled:a,onFocus:r,onBlur:n,style:i,...s},l)=>{let[d,m]=K__namespace.useState(false),[p,c]=K__namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:d?"text":"password",className:o("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:a,style:{...i,borderColor:p?"var(--color-foreground)":void 0},onFocus:g=>{c(true),r?.(g);},onBlur:g=>{c(false),n?.(g);},...s}),t&&jsxRuntime.jsx(W,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-10 w-10 px-3 hover:bg-transparent",onClick:()=>m(!d),disabled:a,tabIndex:-1,"aria-label":d?"Hide password":"Show password",children:d?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4 text-muted-foreground"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4 text-muted-foreground"})})]})});Hm.displayName="PasswordInput";var Am=K__namespace.forwardRef(({className:e,showButtons:t=true,step:a=1,min:r,max:n,value:i,defaultValue:s,onChange:l,disabled:d,...m},p)=>{let[c,g]=K__namespace.useState(s),u=i!==void 0,h=u?i:c,w=y=>{y!==void 0&&(r!==void 0&&y<r&&(y=r),n!==void 0&&y>n&&(y=n)),u||g(y),l?.(y);},b=()=>{w((h??0)+a);},v=()=>{w((h??0)-a);},R=y=>{let C=y.target.value;if(C==="")w(void 0);else {let M=parseFloat(C);isNaN(M)||w(M);}},f=y=>{y.key==="ArrowUp"?(y.preventDefault(),b()):y.key==="ArrowDown"&&(y.preventDefault(),v());},x=r===void 0||(h??0)>r,S=n===void 0||(h??0)<n;return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[t&&jsxRuntime.jsx(W,{type:"button",variant:"bordered",size:"icon",className:"h-10 w-10 rounded-r-none border-r-0",onClick:v,disabled:d||!x,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:o("flex h-10 w-full bg-background px-3 py-2 text-sm text-center 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",t?"border-y border-input rounded-none":"border border-input rounded-md",e),ref:p,value:h??"",onChange:R,onKeyDown:f,disabled:d,...m}),t&&jsxRuntime.jsx(W,{type:"button",variant:"bordered",size:"icon",className:"h-10 w-10 rounded-l-none border-l-0",onClick:b,disabled:d||!S,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]})});Am.displayName="NumberInput";var zm=K__namespace.forwardRef(({options:e,value:t,defaultValue:a=[],onValueChange:r,placeholder:n="Select items...",searchPlaceholder:i="Search...",emptyText:s="No items found.",maxItems:l,showCount:d=false,disabled:m=false,className:p},c)=>{let[g,u]=K__namespace.useState(false),[h,w]=K__namespace.useState(""),[b,v]=K__namespace.useState(a),R=t!==void 0,f=R?t:b,x=N=>{R||v(N),r?.(N);},S=N=>{let P=f.includes(N)?f.filter(D=>D!==N):l&&f.length>=l?f:[...f,N];x(P);},y=N=>{x(f.filter(P=>P!==N));},C=()=>{x([]);},M=e.filter(N=>f.includes(N.value)),T=e.filter(N=>N.label.toLowerCase().includes(h.toLowerCase()));return jsxRuntime.jsxs(ye,{open:g,onOpenChange:u,children:[jsxRuntime.jsx(Pe,{asChild:true,children:jsxRuntime.jsxs(W,{ref:c,variant:"bordered",role:"combobox","aria-expanded":g,disabled:m,className:o("w-full justify-between h-auto min-h-10",f.length>0?"px-2 py-1.5":"px-3 py-2",p),children:[f.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground font-normal",children:n}):d?jsxRuntime.jsxs("span",{className:"font-normal",children:[f.length," selected"]}):jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1",children:M.map(N=>jsxRuntime.jsxs(xo,{className:"mr-1",children:[N.label,jsxRuntime.jsx("button",{type:"button",className:"ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",onKeyDown:P=>{P.key==="Enter"&&(P.preventDefault(),P.stopPropagation(),y(N.value));},onMouseDown:P=>{P.preventDefault(),P.stopPropagation();},onClick:P=>{P.preventDefault(),P.stopPropagation(),y(N.value);},children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},N.value))}),jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),jsxRuntime.jsx(ve,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-md",children:[jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3",children:[jsxRuntime.jsx(cmdk.Command.Input,{value:h,onValueChange:w,placeholder:i,className:"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),f.length>0&&jsxRuntime.jsx("button",{type:"button",onClick:C,className:"ml-2 text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),jsxRuntime.jsxs(cmdk.Command.List,{className:"max-h-[200px] overflow-y-auto p-1",children:[T.length===0&&jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:s}),T.map(N=>{let P=f.includes(N.value),D=N.disabled||!P&&l!==void 0&&f.length>=l;return jsxRuntime.jsxs(cmdk.Command.Item,{value:N.value,disabled:D,onSelect:()=>S(N.value),className:o("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("div",{className:o("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",P?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),N.label]},N.value)})]})]})})]})});zm.displayName="MultiSelect";var Fm=K__namespace.forwardRef(({options:e,value:t,defaultValue:a="",onValueChange:r,placeholder:n="Select...",searchPlaceholder:i="Search...",emptyText:s="No results found.",disabled:l=false,clearable:d=false,className:m},p)=>{let[c,g]=K__namespace.useState(false),[u,h]=K__namespace.useState(""),[w,b]=K__namespace.useState(a),v=t!==void 0,R=v?t:w,f=C=>{v||b(C),r?.(C);},x=C=>{f(d&&R===C?"":C),g(false),h("");},S=e.find(C=>C.value===R),y=e.filter(C=>C.label.toLowerCase().includes(u.toLowerCase()));return jsxRuntime.jsxs(ye,{open:c,onOpenChange:g,children:[jsxRuntime.jsx(Pe,{asChild:true,children:jsxRuntime.jsxs(W,{ref:p,variant:"bordered",role:"combobox","aria-expanded":c,disabled:l,className:o("w-full justify-between font-normal",!R&&"text-muted-foreground",m),children:[S?S.label:n,jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),jsxRuntime.jsx(ve,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-md",children:[jsxRuntime.jsx("div",{className:"flex items-center border-b px-3",children:jsxRuntime.jsx(cmdk.Command.Input,{value:u,onValueChange:h,placeholder:i,className:"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"})}),jsxRuntime.jsxs(cmdk.Command.List,{className:"max-h-[200px] overflow-y-auto p-1",children:[y.length===0&&jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:s}),y.map(C=>jsxRuntime.jsxs(cmdk.Command.Item,{value:C.value,disabled:C.disabled,onSelect:()=>x(C.value),className:o("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:o("mr-2 h-4 w-4",R===C.value?"opacity-100":"opacity-0")}),C.label]},C.value))]})]})})]})});Fm.displayName="Combobox";var Om=K__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:a,placeholder:r="Pick a date",dateFormat:n="PPP",disabled:i=false,minDate:s,maxDate:l,className:d},m)=>{let[p,c]=K__namespace.useState(false),[g,u]=K__namespace.useState(t),h=e!==void 0,w=h?e:g,b=v=>{h||u(v),a?.(v),c(false);};return jsxRuntime.jsxs(ye,{open:p,onOpenChange:c,children:[jsxRuntime.jsx(Pe,{asChild:true,children:jsxRuntime.jsxs(W,{ref:m,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!w&&"text-muted-foreground",d),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),w?dateFns.format(w,n):r]})}),jsxRuntime.jsx(ve,{className:"w-auto p-0",align:"start",children:jsxRuntime.jsx(Fr,{mode:"single",selected:w,onSelect:b,disabled:v=>!!(s&&v<s||l&&v>l),initialFocus:true})})]})});Om.displayName="DatePicker";var _m=classVarianceAuthority.cva("flex -space-x-2",{variants:{size:{sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3"}},defaultVariants:{size:"md"}}),Gm=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"}}),Km=K__namespace.forwardRef(({className:e,items:t,max:a=5,size:r,showTooltips:n=false,...i},s)=>{let l=t.slice(0,a),d=t.length-a,m=(c,g)=>{let u=jsxRuntime.jsxs(Za,{className:o(Gm({size:r})),children:[c.src&&jsxRuntime.jsx(Vr,{src:c.src,alt:c.alt||""}),jsxRuntime.jsx(Qa,{className:"text-xs",children:c.fallback||c.alt?.charAt(0)?.toUpperCase()||"?"})]},g);return n&&c.alt?jsxRuntime.jsxs(er,{children:[jsxRuntime.jsx(tr,{asChild:true,children:u}),jsxRuntime.jsx(Na,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:c.alt})]},g):u},p=jsxRuntime.jsxs("div",{ref:s,className:o(_m({size:r,className:e})),...i,children:[l.map((c,g)=>m(c,g)),d>0&&jsxRuntime.jsx(Za,{className:o(Gm({size:r})),children:jsxRuntime.jsxs(Qa,{className:"bg-muted text-muted-foreground",children:["+",d]})})]});return n?jsxRuntime.jsx(Ja,{delayDuration:300,children:p}):p});Km.displayName="AvatarGroup";var Um=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"}}),Ym=K__namespace.forwardRef(({className:e,value:t,defaultValue:a=0,onValueChange:r,max:n=5,size:i,icon:s="star",allowHalf:l=false,readOnly:d=false,disabled:m=false,filledColor:p,emptyColor:c,...g},u)=>{let[h,w]=K__namespace.useState(a),[b,v]=K__namespace.useState(null),R=t!==void 0,f=R?t:h,x=b!==null?b:f,S=k=>{d||m||(R||w(k),r?.(k));},y=(k,I=false)=>{let V=l&&I?k+.5:k+1;S(V);},C=(k,I)=>{if(d||m)return;let V=k.currentTarget.getBoundingClientRect(),L=l&&k.clientX<V.left+V.width/2;v(L?I+.5:I+1);},M=()=>{v(null);},T=s==="heart"?lucideReact.Heart:lucideReact.Star,N=k=>x>=k+1?"full":x>=k+.5?"half":"empty",P=p?{color:p,fill:p}:{},D=c?{color:c}:{};return jsxRuntime.jsx("div",{ref:u,className:o(Um({size:i,className:e}),m&&"opacity-50 cursor-not-allowed"),onMouseLeave:M,role:"radiogroup","aria-label":"Rating",...g,children:Array.from({length:n},(k,I)=>{let V=N(I);return jsxRuntime.jsxs("button",{type:"button",className:o("relative focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",!d&&!m&&"cursor-pointer hover:scale-110 transition-transform"),onClick:L=>{let H=L.currentTarget.getBoundingClientRect(),B=l&&L.clientX<H.left+H.width/2;y(I,B);},onMouseMove:L=>C(L,I),disabled:m||d,"aria-label":`Rate ${I+1} out of ${n}`,role:"radio","aria-checked":f===I+1,children:[jsxRuntime.jsx(T,{className:o("text-muted-foreground/30",V!=="empty"&&"absolute inset-0"),style:V==="empty"?D:void 0}),V!=="empty"&&jsxRuntime.jsx(T,{className:o("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",V==="half"&&"clip-path-half"),style:{...P,clipPath:V==="half"?"inset(0 50% 0 0)":void 0}})]},I)})})});Ym.displayName="Rating";var u0="16rem",p0="18rem",f0="3rem",g0="b",Ls=K__namespace.createContext(null);function Bn(){let e=K__namespace.useContext(Ls);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Vs(){return K__namespace.useContext(Ls)}var Xm=K__namespace.forwardRef(({defaultOpen:e=true,open:t,onOpenChange:a,className:r,style:n,children:i,...s},l)=>{let[d,m]=K__namespace.useState(false),[p,c]=K__namespace.useState(false),[g,u]=K__namespace.useState(e),h=t??g,w=K__namespace.useCallback(f=>{let x=typeof f=="function"?f(h):f;a?a(x):u(x);},[a,h]);K__namespace.useEffect(()=>{let f=()=>{m(window.innerWidth<768);};return f(),window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[]);let b=K__namespace.useCallback(()=>d?c(f=>!f):w(f=>!f),[d,w,c]);K__namespace.useEffect(()=>{let f=x=>{x.key===g0&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),b());};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[b]);let v=h?"expanded":"collapsed",R=K__namespace.useMemo(()=>({state:v,open:h,setOpen:w,isMobile:d,openMobile:p,setOpenMobile:c,toggleSidebar:b}),[v,h,w,d,p,c,b]);return jsxRuntime.jsx(Ls.Provider,{value:R,children:jsxRuntime.jsx(Ja,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:l,style:{"--sidebar-width":u0,"--sidebar-width-icon":f0,...n},className:o("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),...s,children:i})})})});Xm.displayName="SidebarProvider";var qm=K__namespace.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",embedded:r=false,resizable:n=false,minWidth:i=200,maxWidth:s=480,defaultWidth:l=256,onWidthChange:d,className:m,children:p,...c},g)=>{let[u,h]=K__namespace.useState(l),[w,b]=K__namespace.useState(false),v=K__namespace.useRef(null),R=K__namespace.useCallback(C=>{C.preventDefault(),b(true);},[]);if(K__namespace.useEffect(()=>{if(!w)return;let C=T=>{if(!v.current)return;let N=v.current.getBoundingClientRect(),P;e==="left"?P=T.clientX-N.left:P=N.right-T.clientX,P=Math.max(i,Math.min(s,P)),h(P),d?.(P);},M=()=>{b(false);};return document.addEventListener("mousemove",C),document.addEventListener("mouseup",M),()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",M);}},[w,e,i,s,d]),a==="none"){if(n){let C={width:`${u}px`,minWidth:`${i}px`,maxWidth:`${s}px`};return jsxRuntime.jsxs("div",{ref:M=>{typeof g=="function"?g(M):g&&(g.current=M),v.current=M;},className:o("relative text-sidebar-foreground h-full min-h-0",w&&"select-none"),"data-sidebar":"sidebar-wrapper","data-resizing":w,children:[jsxRuntime.jsx("div",{className:o("flex h-full min-h-0 flex-col bg-sidebar overflow-hidden",!w&&"transition-all duration-200 ease-in-out",e==="left"&&"border-r-0",e==="right"&&"border-l-0",m),style:C,...c,children:p}),jsxRuntime.jsx("div",{onMouseDown:R,className:o("absolute top-0 bottom-0 z-20 w-1 cursor-ew-resize",e==="left"?"right-0":"left-0"),"data-sidebar":"resize-handle",children:jsxRuntime.jsx("div",{className:o("absolute top-0 bottom-0 w-px transition-colors",e==="left"?"right-0":"left-0","bg-sidebar-border")})})]})}return jsxRuntime.jsx("div",{ref:g,className:o("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",m),style:{"--sidebar-width":"16rem"},...c,children:p})}let{isMobile:f,state:x,openMobile:S,setOpenMobile:y}=Bn();if(f&&!r)return jsxRuntime.jsx(Mo,{open:S,onOpenChange:y,children:jsxRuntime.jsx(Ir,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":p0},side:e,children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:p})})});if(r){let C=x==="collapsed",M=a==="offcanvas",T=a==="icon",N=n&&!C&&!T?{width:`${u}px`,minWidth:`${i}px`,maxWidth:`${s}px`}:void 0;return jsxRuntime.jsxs("div",{ref:P=>{typeof g=="function"?g(P):g&&(g.current=P),v.current=P;},className:o("group peer text-sidebar-foreground relative",w&&"select-none"),"data-state":x,"data-collapsible":C?a:"","data-variant":t,"data-side":e,"data-embedded":"true","data-resizing":w,children:[jsxRuntime.jsx("div",{className:o("flex h-full flex-col overflow-hidden",!w&&"transition-[width,opacity] duration-200 ease-out",!n&&(M?C?"w-0 opacity-0":"w-[--sidebar-width] opacity-100":T&&C?"w-[--sidebar-width-icon]":"w-[--sidebar-width]"),n&&M&&C&&"w-0 opacity-0",n&&T&&C&&"w-[--sidebar-width-icon]",m),style:N,...c,children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:o("flex h-full w-full flex-col bg-sidebar transition-opacity duration-200",t==="floating"&&"overflow-hidden rounded-lg border border-sidebar-border shadow-sm",t==="inset"&&"overflow-hidden rounded-lg border border-sidebar-border",t==="sidebar"&&e==="left"&&!n&&"border-r",t==="sidebar"&&e==="right"&&!n&&"border-l"),children:p})}),n&&!C&&jsxRuntime.jsx("div",{onMouseDown:R,className:o("absolute top-0 bottom-0 z-20 w-1 cursor-ew-resize",e==="left"?"right-0":"left-0"),"data-sidebar":"resize-handle",children:jsxRuntime.jsx("div",{className:o("absolute top-0 bottom-0 w-px transition-colors",e==="left"?"right-0":"left-0","bg-sidebar-border")})})]})}return jsxRuntime.jsxs("div",{ref:g,className:"group peer hidden md:block text-sidebar-foreground","data-state":x,"data-collapsible":x==="collapsed"?a:"","data-variant":t,"data-side":e,children:[jsxRuntime.jsx("div",{className:o("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),jsxRuntime.jsx("div",{className:o("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",m),...c,children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:o("flex h-full w-full flex-col bg-sidebar",t==="floating"&&"overflow-hidden rounded-lg border border-sidebar-border shadow-sm",t==="inset"&&"overflow-hidden rounded-lg border border-sidebar-border"),children:p})})]})});qm.displayName="Sidebar";var Zm=K__namespace.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:n}=Bn();return jsxRuntime.jsxs("button",{ref:r,type:"button","data-sidebar":"trigger",className:o("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",e),onClick:i=>{t?.(i),n();},...a,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Zm.displayName="SidebarTrigger";var Qm=K__namespace.forwardRef(({className:e,onClick:t,showLabel:a=true,...r},n)=>{let i=Vs();if(!i)return null;let{toggleSidebar:s,state:l}=i,d=l==="collapsed";return jsxRuntime.jsxs("button",{ref:n,type:"button","data-sidebar":"toggle","data-state":l,className:o("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-sidebar-foreground/70","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",e),onClick:m=>{t?.(m),s();},...r,children:[d?jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(lucideReact.PanelLeftClose,{className:"h-4 w-4 shrink-0"}),a&&jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:d?"Expand":"Collapse"})]})});Qm.displayName="SidebarToggle";var Jm=K__namespace.forwardRef(({className:e,onClick:t,expandedLabel:a="Collapse",collapsedLabel:r="Expand",...n},i)=>{let s=Vs();if(!s)return null;let{toggleSidebar:l,state:d}=s,m=d==="collapsed";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{ref:i,type:"button","data-sidebar":"toggle","data-state":d,className:o("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-sidebar-foreground/70","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:hidden",e),onClick:p=>{t?.(p),l();},...n,children:[m?jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(lucideReact.PanelLeftClose,{className:"h-4 w-4 shrink-0"}),jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:m?r:a})]}),jsxRuntime.jsxs("button",{type:"button","data-sidebar":"floating-toggle","data-state":d,className:o("fixed left-3 bottom-4 z-50 flex items-center justify-center h-10 w-10 rounded-lg","bg-sidebar border border-sidebar-border shadow-md","text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-all duration-200 cursor-pointer","opacity-0 pointer-events-none scale-90","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:opacity-100","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:pointer-events-auto","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:scale-100"),onClick:p=>{t?.(p),l();},children:[jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:r})]})]})});Jm.displayName="SidebarPersistentToggle";var eu=K__namespace.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=Bn();return jsxRuntime.jsx("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:o("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});eu.displayName="SidebarRail";var tu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("main",{ref:a,className:o("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}));tu.displayName="SidebarInset";var au=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"header",className:o("flex flex-col gap-2 p-2",e),...t}));au.displayName="SidebarHeader";var ru=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"footer",className:o("flex flex-col gap-2 p-2",e),...t}));ru.displayName="SidebarFooter";var ou=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"separator",className:o("mx-2 h-px w-auto bg-sidebar-border",e),...t}));ou.displayName="SidebarSeparator";var nu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"content",className:o("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));nu.displayName="SidebarContent";var iu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"group",className:o("relative flex w-full min-w-0 flex-col p-2",e),...t}));iu.displayName="SidebarGroup";var su=K__namespace.forwardRef(({className:e,asChild:t=false,...a},r)=>jsxRuntime.jsx(t?reactSlot.Slot:"div",{ref:r,"data-sidebar":"group-label",className:o("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));su.displayName="SidebarGroupLabel";var lu=K__namespace.forwardRef(({className:e,asChild:t=false,...a},r)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:r,"data-sidebar":"group-action",className:o("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));lu.displayName="SidebarGroupAction";var du=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"group-content",className:o("w-full text-sm",e),...t}));du.displayName="SidebarGroupContent";var cu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,"data-sidebar":"menu",className:o("flex w-full min-w-0 flex-col gap-1",e),...t}));cu.displayName="SidebarMenu";var mu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,"data-sidebar":"menu-item",className:o("group/menu-item relative",e),...t}));mu.displayName="SidebarMenuItem";var uu=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-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-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:{solid:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",ghost:"hover:bg-sidebar-accent/50 hover:text-sidebar-accent-foreground",soft:"hover:bg-primary/10 hover:text-primary",surface:"bg-sidebar-accent/30 hover:bg-sidebar-accent hover:text-sidebar-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:"solid",size:"md"}}),pu=K__namespace.forwardRef(({asChild:e=false,isActive:t=false,variant:a="solid",size:r="md",tooltip:n,className:i,...s},l)=>{let d=e?reactSlot.Slot:"button",m=Vs(),p=m?.isMobile??false,c=m?.state??"expanded",g=jsxRuntime.jsx(d,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:o(uu({variant:a,size:r}),i),...s});return n?(typeof n=="string"&&(n={children:n}),jsxRuntime.jsxs(er,{children:[jsxRuntime.jsx(tr,{asChild:true,children:g}),jsxRuntime.jsx(Na,{side:"right",align:"center",hidden:c!=="collapsed"||p,...n})]})):g});pu.displayName="SidebarMenuButton";var fu=K__namespace.forwardRef(({className:e,asChild:t=false,showOnHover:a=false,...r},n)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:n,"data-sidebar":"menu-action",className:o("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r}));fu.displayName="SidebarMenuAction";var gu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"menu-badge",className:o("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));gu.displayName="SidebarMenuBadge";var bu=K__namespace.forwardRef(({className:e,showIcon:t=false,...a},r)=>{let n=K__namespace.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:o("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&jsxRuntime.jsx("div",{className:"size-4 rounded-md bg-sidebar-accent animate-pulse"}),jsxRuntime.jsx("div",{className:"h-4 flex-1 max-w-[--skeleton-width] bg-sidebar-accent animate-pulse rounded-md",style:{"--skeleton-width":n}})]})});bu.displayName="SidebarMenuSkeleton";var vu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,"data-sidebar":"menu-sub",className:o("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));vu.displayName="SidebarMenuSub";var hu=K__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("li",{ref:t,...e}));hu.displayName="SidebarMenuSubItem";var xu=K__namespace.forwardRef(({asChild:e=false,size:t="md",isActive:a,className:r,...n},i)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:o("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...n}));xu.displayName="SidebarMenuSubButton";var wu=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}}),h0=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"}}),Nu=K__namespace.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,clickable:i,startContent:s,endContent:l,closable:d,onClose:m,disabled:p,avatar:c,children:g,onClick:u,...h},w)=>{let b=i||!!u,v=R=>{R.stopPropagation(),m?.();};return jsxRuntime.jsxs("div",{ref:w,role:b?"button":void 0,tabIndex:b&&!p?0:void 0,"aria-disabled":p,onClick:p?void 0:u,onKeyDown:b&&!p?R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),u?.(R));}:void 0,className:o(wu({variant:t,color:a,size:r,radius:n,clickable:b}),p&&"opacity-50 cursor-not-allowed",e),...h,children:[c&&jsxRuntime.jsx("span",{className:"-ml-1 [&>*]:size-5 [&>*]:rounded-full",children:c}),s&&jsxRuntime.jsx("span",{className:"shrink-0",children:s}),jsxRuntime.jsx("span",{className:"truncate",children:g}),l&&jsxRuntime.jsx("span",{className:"shrink-0",children:l}),d&&jsxRuntime.jsx("button",{type:"button","aria-label":"Remove",onClick:v,disabled:p,className:o(h0({size:r})),children:jsxRuntime.jsx(lucideReact.X,{})})]})});Nu.displayName="Chip";var Pu=K.createContext({direction:"horizontal"}),S0=({className:e,direction:t="horizontal",children:a,...r})=>jsxRuntime.jsx(Pu.Provider,{value:{direction:t},children:jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:o("flex h-full w-full data-[orientation=vertical]:flex-col",e),...r,children:a})}),T0=reactResizablePanels.Panel,M0=({withHandle:e,className:t,...a})=>{let{direction:r}=K.useContext(Pu),n=r==="vertical";return jsxRuntime.jsx(reactResizablePanels.Separator,{className:o("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),...a,children:e&&jsxRuntime.jsx("div",{className:o("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 Tu=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"}}),Mu=K__namespace.forwardRef(({className:e,size:t,count:a=3,...r},n)=>jsxRuntime.jsx("span",{ref:n,role:"status","aria-label":"Loading",className:o(Tu({size:t,className:e})),...r,children:Array.from({length:a}).map((i,s)=>jsxRuntime.jsx("span",{className:"rounded-full bg-current animate-dots-bounce",style:{animationDelay:`${s*.16}s`}},s))}));Mu.displayName="Dots";var Du=classVarianceAuthority.cva("",{variants:{size:{sm:"h-4 w-4",md:"h-8 w-8",lg:"h-12 w-12",xl:"h-16 w-16"}},defaultVariants:{size:"md"}}),Lu=K__namespace.forwardRef(({className:e,size:t,value:a,strokeWidth:r=4,showValue:n=false,label:i,...s},l)=>{let d=a===void 0,m=50-r/2,p=2*Math.PI*m,c=d?0:p-Math.min(100,Math.max(0,a))/100*p;return jsxRuntime.jsxs("svg",{ref:l,viewBox:"0 0 100 100",className:o(Du({size:t,className:e}),d&&"animate-spin"),role:"progressbar","aria-valuenow":d?void 0:a,"aria-valuemin":0,"aria-valuemax":100,...s,children:[jsxRuntime.jsx("circle",{cx:"50",cy:"50",r:m,fill:"none",stroke:"currentColor",strokeWidth:r,className:"text-muted opacity-20"}),jsxRuntime.jsx("circle",{cx:"50",cy:"50",r:m,fill:"none",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeDasharray:p,strokeDashoffset:d?p*.75:c,className:"text-primary transition-[stroke-dashoffset] duration-300 ease-in-out",style:{transformOrigin:"center",transform:"rotate(-90deg)"}}),n&&!d&&jsxRuntime.jsx("text",{x:"50",y:"50",textAnchor:"middle",dominantBaseline:"central",className:"fill-current text-[0.65rem] font-medium",children:i??`${Math.round(a)}%`})]})});Lu.displayName="CircularProgress";var Vu=K__namespace.createContext(null),E0=()=>{let e=K__namespace.useContext(Vu);if(!e)throw new Error("OTP components must be used within InputOTP");return e},Iu=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"}}),Eu=K__namespace.forwardRef(({className:e,containerClassName:t,maxLength:a,value:r,defaultValue:n="",onChange:i,onComplete:s,pattern:l,disabled:d=false,size:m,children:p,...c},g)=>{let[u,h]=K__namespace.useState(n),[w,b]=K__namespace.useState(0),[v,R]=K__namespace.useState(false),f=K__namespace.useRef(null),x=r!==void 0?r:u;K__namespace.useImperativeHandle(g,()=>f.current),K__namespace.useEffect(()=>{b(Math.min(x.length,a-1));},[x,a]),K__namespace.useEffect(()=>{x.length===a&&s&&s(x);},[x,a,s]);let S=P=>{let D=P.target.value;if(l&&D){let k=new RegExp(l.replace("^","").replace("$","").replace("+",""));D=D.split("").filter(I=>k.test(I)).join("");}D=D.slice(0,a),r===void 0&&h(D),i?.(D);},y=P=>{P.key==="ArrowLeft"?b(D=>Math.max(0,D-1)):P.key==="ArrowRight"&&b(D=>Math.min(x.length,a-1,D+1));},C=()=>{f.current?.focus();},M=()=>{R(true),b(Math.min(x.length,a-1));},T=()=>{R(false);},N={value:x,activeIndex:v?w:-1,maxLength:a,disabled:d};return jsxRuntime.jsx(Vu.Provider,{value:N,children:jsxRuntime.jsxs("div",{className:o(Iu({size:m}),t),onClick:C,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:f,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:x,onChange:S,onKeyDown:y,onFocus:M,onBlur:T,disabled:d,maxLength:a,className:o("absolute opacity-0 pointer-events-none w-0 h-0",e),...c}),p]})})});Eu.displayName="InputOTP";var Hu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center",e),...t}));Hu.displayName="InputOTPGroup";var Au=K__namespace.forwardRef(({index:e,className:t,...a},r)=>{let{value:n,activeIndex:i,disabled:s}=E0(),l=n[e]||"",d=i===e,m=d&&n.length===e;return jsxRuntime.jsxs("div",{ref:r,"data-otp-slot":true,"data-active":d,"data-filled":!!l,className:o("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",d&&"z-10 border-foreground",s&&"cursor-not-allowed opacity-50",t),...a,children:[l,m&&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"})})]})});Au.displayName="InputOTPSlot";var zu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,role:"separator",className:o("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));zu.displayName="InputOTPSeparator";var Ou=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-full text-xs font-medium transition-colors",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-transparent",ghost:"bg-transparent text-foreground",soft:"bg-primary/15 text-primary",surface:"bg-muted text-muted-foreground"},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:"soft",size:"md"}}),Gu=K__namespace.forwardRef(({className:e,variant:t,size:a,value:r=[],onChange:n,placeholder:i="Add tag...",maxTags:s,minTagLength:l=1,maxTagLength:d=50,triggerKeys:m=["Enter",",","Tab"],allowDuplicates:p=false,disabled:c,readOnly:g,renderTag:u,...h},w)=>{let[b,v]=K__namespace.useState(""),R=K__namespace.useRef(null);K__namespace.useImperativeHandle(w,()=>R.current);let f=N=>{let P=N.trim();if(P.length<l||P.length>d||s&&r.length>=s||!p&&r.some(k=>k.text.toLowerCase()===P.toLowerCase()))return;let D={id:crypto.randomUUID(),text:P};n?.([...r,D]),v("");},x=N=>{c||g||n?.(r.filter(P=>P.id!==N));},S=N=>{if(m.includes(N.key)){if(N.key==="Tab"&&!b)return;N.preventDefault(),f(b);}N.key==="Backspace"&&!b&&r.length>0&&x(r[r.length-1].id);},y=N=>{let P=N.target.value;if(P.includes(",")){P.split(",").forEach(k=>{k.trim()&&f(k);});return}v(P);},C=N=>{N.preventDefault(),N.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(k=>{f(k);});},M=()=>{R.current?.focus();},T=s?r.length>=s:false;return jsxRuntime.jsxs("div",{className:o("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",c&&"cursor-not-allowed opacity-50",e),onClick:M,children:[r.map(N=>u?u(N,()=>x(N.id)):jsxRuntime.jsxs("span",{className:o(Ou({variant:t,size:a})),children:[N.text,!c&&!g&&jsxRuntime.jsx("button",{type:"button",onClick:P=>{P.stopPropagation(),x(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)),!T&&!g&&jsxRuntime.jsx("input",{ref:R,type:"text",value:b,onChange:y,onKeyDown:S,onPaste:C,placeholder:r.length===0?i:"",disabled:c,className:o("flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed","min-w-[80px]"),...h})]})});Gu.displayName="TagInput";var $u=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"}}),_u=K__namespace.forwardRef(({className:e,size:t,icon:a,title:r,description:n,action:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o($u({size:t,className:e})),...l,children:[a&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:a}),r&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:r}),n&&jsxRuntime.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i}),s]}));_u.displayName="EmptyState";var Uu=classVarianceAuthority.cva("rounded-lg border bg-card p-6 text-card-foreground shadow-sm",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-transparent",ghost:"border-transparent shadow-none",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-muted"}},defaultVariants:{variant:"outline"}}),Yu=K__namespace.forwardRef(({className:e,variant:t,label:a,value:r,icon:n,trend:i,trendValue:s,description:l,...d},m)=>{let p=i==="up"?lucideReact.TrendingUp:i==="down"?lucideReact.TrendingDown:lucideReact.Minus,c=i==="up"?"text-green-500":i==="down"?"text-red-500":"text-muted-foreground";return jsxRuntime.jsxs("div",{ref:m,className:o(Uu({variant:t,className:e})),...d,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:a}),n&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-4 [&>svg]:w-4",children:n})]}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[jsxRuntime.jsx("p",{className:"text-2xl font-bold",children:r}),i&&s&&jsxRuntime.jsxs("span",{className:o("flex items-center gap-0.5 text-sm",c),children:[jsxRuntime.jsx(p,{className:"h-3 w-3"}),s]})]}),l&&jsxRuntime.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:l})]})});Yu.displayName="StatCard";var Xu=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"",bordered:"divide-y divide-border rounded-lg border",striped:"[&>*:nth-child(odd)]:bg-muted/50"},size:{sm:"gap-1 [&>*]:py-2 [&>*]:px-3",md:"gap-2 [&>*]:py-3 [&>*]:px-4",lg:"gap-3 [&>*]:py-4 [&>*]:px-5"}},defaultVariants:{variant:"default",size:"md"}}),qu=K__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx("div",{ref:n,role:"list",className:o(Xu({variant:t,size:a,className:e})),...r}));qu.displayName="List";var Zu=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),Qu=K__namespace.forwardRef(({className:e,interactive:t,leading:a,trailing:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:o(Zu({interactive:t,className:e})),...i,children:[a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:a}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]}));Qu.displayName="ListItem";var Ju=K__namespace.forwardRef(({className:e,primary:t,secondary:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("min-w-0",e),...n,children:[t&&jsxRuntime.jsx("p",{className:"text-sm font-medium leading-none truncate",children:t}),a&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:a}),r]}));Ju.displayName="ListItemText";var ap=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),rp=K__namespace.forwardRef(({className:e,position:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,"data-position":t,className:o(ap({position:t,className:e})),...a}));rp.displayName="Timeline";var op=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"}}),np=K__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(op({variant:t,className:e})),...a}));np.displayName="TimelineItem";var ip=K__namespace.forwardRef(({className:e,dot:t,showConnector:a=true,...r},n)=>jsxRuntime.jsxs("div",{ref:n,className:o("flex flex-col items-center",e),...r,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:t}),a&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}));ip.displayName="TimelineSeparator";var sp=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 pt-0.5",e),...t}));sp.displayName="TimelineContent";var lp=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));lp.displayName="TimelineOpposite";var cp=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}}),mp=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 data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm",{variants:{size:{sm:"h-6 text-xs px-2.5",md:"h-8 text-sm px-3",lg:"h-10 text-base px-4"}},defaultVariants:{size:"md"}}),up=K__namespace.createContext({}),pp=K__namespace.forwardRef(({className:e,size:t,fullWidth:a,children:r,...n},i)=>jsxRuntime.jsx(Er__namespace.Root,{ref:i,type:"single",rovingFocus:false,className:o(cp({size:t,fullWidth:a,className:e})),...n,children:jsxRuntime.jsx(up.Provider,{value:{size:t??"md"},children:r})}));pp.displayName="SegmentedControl";var fp=K__namespace.forwardRef(({className:e,children:t,...a},r)=>{let{size:n}=K__namespace.useContext(up);return jsxRuntime.jsx(Er__namespace.Item,{ref:r,className:o(mp({size:n}),"flex-1",e),...a,children:t})});fp.displayName="SegmentedControlItem";var gp=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"}}),bp=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},_n=e=>{if(e===0)return "0 Bytes";let t=1024,a=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+a[r]},vp=(e,t,a)=>{let r=[];return t&&e.size>t&&r.push({code:"file-too-large",message:`File is larger than ${_n(t)}`}),a&&a.length>0&&(a.some(i=>{if(i.startsWith("."))return e.name.toLowerCase().endsWith(i.toLowerCase());if(i.endsWith("/*")){let s=i.slice(0,-2);return e.type.startsWith(s)}return e.type===i})||r.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${a.join(", ")}`})),r},hp=K__namespace.forwardRef(({className:e,variant:t,size:a,onFilesChange:r,onFilesRejected:n,onFileRemove:i,files:s=[],showFileList:l=true,children:d,maxSize:m=10*1024*1024,accept:p,multiple:c=true,disabled:g,...u},h)=>{let[w,b]=K__namespace.useState(false),[v,R]=K__namespace.useState(false),[f,x]=K__namespace.useState([]),S=K__namespace.useRef(null),y=K__namespace.useCallback(L=>{if(!L||L.length===0)return;let H=Array.from(L),B=[],$=[];(c?H:[H[0]]).forEach(O=>{let te=vp(O,m,p);te.length>0?$.push({file:O,errors:te}):B.push(O);}),x($),B.length>0&&r?.(B),$.length>0&&n?.($);},[m,p,c,r,n]),C=K__namespace.useCallback(L=>{if(L.preventDefault(),L.stopPropagation(),!g&&(b(true),L.dataTransfer.items)){let B=Array.from(L.dataTransfer.items).some($=>{if($.kind!=="file")return true;if(p&&p.length>0){let A=$.type;return !p.some(O=>O.endsWith("/*")?A.startsWith(O.slice(0,-2)):A===O)}return false});R(B);}},[g,p]),M=K__namespace.useCallback(L=>{L.preventDefault(),L.stopPropagation(),!g&&(L.dataTransfer.dropEffect="copy");},[g]),T=K__namespace.useCallback(L=>{L.preventDefault(),L.stopPropagation();let H=L.currentTarget.getBoundingClientRect(),B=L.clientX,$=L.clientY;(B<H.left||B>H.right||$<H.top||$>H.bottom)&&(b(false),R(false));},[]),N=K__namespace.useCallback(L=>{L.preventDefault(),L.stopPropagation(),b(false),R(false),!g&&y(L.dataTransfer.files);},[g,y]),P=K__namespace.useCallback(()=>{g||S.current?.click();},[g]),D=K__namespace.useCallback(L=>{y(L.target.files),L.target.value="";},[y]),k=K__namespace.useCallback(L=>{g||(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),S.current?.click());},[g]),I=v?"error":w?"active":t,V=p?.join(",");return jsxRuntime.jsxs("div",{ref:h,className:o("space-y-4",e),...u,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:g?-1:0,onDragEnter:C,onDragOver:M,onDragLeave:T,onDrop:N,onClick:P,onKeyDown:k,className:o(gp({variant:I,size:a}),g&&"opacity-50 cursor-not-allowed",!g&&"cursor-pointer focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),"aria-disabled":g,children:[jsxRuntime.jsx("input",{ref:S,type:"file",accept:V,multiple:c,disabled:g,onChange:D,className:"sr-only",tabIndex:-1}),d||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:w?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[m&&`Max ${_n(m)}`,p&&p.length>0&&` \u2022 ${p.join(", ")}`]})]})]})]}),f.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:f.map(({file:L,errors:H})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:L.name}),":"," ",H.map(B=>B.message).join(", ")]},L.name))}),l&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(L=>{let H=bp(L.file);return jsxRuntime.jsxs("div",{className:o("flex items-center gap-3 rounded-lg border p-3",L.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(H,{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:L.file.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[_n(L.file.size),L.error&&jsxRuntime.jsx("span",{className:"ml-2 text-danger",children:L.error})]}),L.progress!==void 0&&L.progress<100&&jsxRuntime.jsx(Ln,{value:L.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs(W,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:B=>{B.stopPropagation(),i?.(L.file);},children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]},L.id)})})]})});hp.displayName="FileUpload";var Rp=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}}),ew=`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")`,Ur=K__namespace.forwardRef(({color:e,isSelected:t,showTransparency:a=true,onSelect:r,size:n,shape:i,interactive:s,className:l,onClick:d,disabled:m,...p},c)=>jsxRuntime.jsx("button",{ref:c,type:"button",disabled:m,onClick:h=>{d?.(h),r?.(e);},className:o(Rp({size:n,shape:i,interactive:s??(!!r||!!d)}),t&&"ring-2 ring-ring ring-offset-2",l),style:{backgroundImage:a?ew:void 0,backgroundSize:a?"8px 8px":void 0},"aria-label":`Color ${e}`,"aria-pressed":t,...p,children:jsxRuntime.jsx("span",{className:"absolute inset-0 rounded-[inherit]",style:{backgroundColor:e}})}));Ur.displayName="ColorSwatch";var rw=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],wp={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},Np=K__namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:a,disabled:r,presets:n=rw,showInput:i=true,size:s="md",className:l,variant:d="full"},m)=>{let[p,c]=K__namespace.useState(e??t),g=K__namespace.useId();K__namespace.useEffect(()=>{e!==void 0&&c(e);},[e]);let u=b=>{c(b),a?.(b);},h=b=>{c(b),a?.(b);},w=b=>{let v=b.target.value.toUpperCase();c(v),a?.(v);};return d==="simple"?jsxRuntime.jsxs("label",{className:o("relative rounded-md border border-input shadow-sm transition-colors cursor-pointer hover:border-foreground focus-within:border-foreground overflow-hidden",r&&"opacity-50 cursor-not-allowed",wp[s],l),children:[jsxRuntime.jsx("input",{type:"color",value:p,onChange:w,disabled:r,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed",id:g}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:p}})]}):jsxRuntime.jsxs(ye,{children:[jsxRuntime.jsx(Pe,{asChild:true,children:jsxRuntime.jsx("button",{ref:m,disabled:r,className:o("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",wp[s],l),style:{backgroundColor:p},"aria-label":`Color picker, current color: ${p}`})}),jsxRuntime.jsx(ve,{className:"w-auto p-3",align:"start",children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:p,onChange:u,className:"!w-[200px]"}),i&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(qa,{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:p}}),jsxRuntime.jsx(reactColorful.HexColorInput,{id:"color-input",color:p,onChange:u,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(qa,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(b=>jsxRuntime.jsx(Ur,{color:b,size:"sm",isSelected:p.toLowerCase()===b.toLowerCase(),onSelect:h},b))})]})]})})]})});Np.displayName="ColorPicker";var Pp=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"}}),As=e=>String(e).padStart(2,"0"),lw=e=>{let[t,a]=e.split(":").map(Number);return {hours:t||0,minutes:a||0}},dw=(e,t)=>`${As(e)}:${As(t)}`,Cp=K__namespace.forwardRef(({className:e,size:t,value:a,onChange:r,use24Hour:n=true,minuteStep:i=1,showPicker:s=true,minTime:l,maxTime:d,disabled:m,...p},c)=>{let[g,u]=K__namespace.useState(a??""),[h,w]=K__namespace.useState(false);K__namespace.useEffect(()=>{a!==void 0&&u(a);},[a]);let{hours:b,minutes:v}=lw(g||"00:00"),R=T=>{let N=T.target.value;u(N),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(N)&&r?.(N);},f=(T,N)=>{let P=Math.max(0,Math.min(23,T)),D=Math.max(0,Math.min(59,N)),k=dw(P,D);u(k),r?.(k);},x=()=>f(b+1,v),S=()=>f(b-1,v),y=()=>f(b,v+i),C=()=>f(b,v-i),M=({value:T,onIncrement:N,onDecrement:P})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx(W,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:N,disabled:m,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:As(T)}),jsxRuntime.jsx(W,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:P,disabled:m,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})})]});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[jsxRuntime.jsx("input",{ref:c,type:"time",value:g,onChange:R,disabled:m,className:o(Pp({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...p}),s&&jsxRuntime.jsxs(ye,{open:h,onOpenChange:w,children:[jsxRuntime.jsx(Pe,{asChild:true,children:jsxRuntime.jsxs(W,{type:"button",variant:"ghost",size:"sm",className:"absolute right-1 h-7 w-7 p-0",disabled:m,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Pick time"})]})}),jsxRuntime.jsxs(ve,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(M,{value:b,onIncrement:x,onDecrement:S,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(M,{value:v,onIncrement:y,onDecrement:C,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx(W,{variant:"bordered",size:"sm",onClick:()=>{let T=new Date;f(T.getHours(),T.getMinutes());},children:"Now"}),jsxRuntime.jsx(W,{size:"sm",onClick:()=>w(false),children:"Done"})]})]})]})]})});Cp.displayName="TimeInput";var Sp=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"}}),mw=(e,t)=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0).find(i=>i.type==="currency")?.value??e}catch{return e}},zs=(e,t,a,r)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,a);return s?`${l}${r}${s}`:l},Tp=(e,t,a)=>{if(!e)return;let r=e.replace(new RegExp(`\\${t}`,"g"),"");r=r.replace(a,"."),r=r.replace(/[^0-9.-]/g,"");let n=parseFloat(r);return isNaN(n)?void 0:n},Mp=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r,onChange:n,currency:i="USD",locale:s="en-US",decimals:l=2,min:d,max:m,showCurrency:p=true,currencyPosition:c="prefix",currencySymbol:g,thousandSeparator:u=",",decimalSeparator:h=".",disabled:w,placeholder:b,...v},R)=>{let[f,x]=K__namespace.useState(r),[S,y]=K__namespace.useState(""),[C,M]=K__namespace.useState(false),T=a!==void 0?a:f,N=g??mw(i,s);K__namespace.useEffect(()=>{!C&&T!==void 0&&y(zs(T,l,u,h));},[T,l,u,h,C]);let P=L=>{let H=L.target.value;if(!H){y(""),a===void 0&&x(void 0),n?.(void 0);return}if(!new RegExp(`^[0-9${u}${h}.-]*$`).test(H))return;y(H);let $=Tp(H,u,h);if($!==void 0){let A=$;d!==void 0&&$<d&&(A=d),m!==void 0&&$>m&&(A=m),a===void 0&&x(A),n?.(A);}},D=()=>{M(true),T!==void 0&&y(T.toString().replace(".",h));},k=()=>{M(false),y(T!==void 0?zs(T,l,u,h):"");},I=p&&c==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:N}),V=p&&c==="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:[I&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:I}),jsxRuntime.jsx("input",{ref:R,type:"text",inputMode:"decimal",value:S,onChange:P,onFocus:D,onBlur:k,disabled:w,placeholder:b??`0${h}${"0".repeat(l)}`,className:o(Sp({size:t}),I&&"pl-8",V&&"pr-8","text-right",e),style:{borderColor:C?"var(--color-foreground)":void 0},...v}),V&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:V})]})});Mp.displayName="CurrencyInput";var kp=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"}}),Fs={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:"#####-####"}},fw=(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}},Ha=e=>["#","A","*"].includes(e),Kn=(e,t,a)=>{let r="",n=0;for(let i=0;i<t.length&&n<=e.length;i++){let s=t[i];if(Ha(s)){if(n<e.length){let l=e[n];fw(l,s)?(r+=l,n++):(n++,i--);}}else (n<e.length||a)&&(r+=s);}return r},Bs=(e,t)=>{let a="";for(let r=0;r<e.length&&r<t.length;r++){let n=t[r];Ha(n)&&(a+=e[r]);}return a},Dp=(e,t)=>e.split("").map(a=>Ha(a)?t:a).join(""),gw=(e,t,a)=>{let r=0;for(let l=0;l<a&&l<e.length&&l<t.length;l++)Ha(t[l])&&r++;let i=0,s=0;for(let l=0;l<t.length&&s<r;l++)i++,Ha(t[l])&&s++;for(;i<t.length&&!Ha(t[i]);)i++;return Math.min(i,e.length)},Lp=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,mask:i,maskPlaceholder:s="_",showMaskPlaceholder:l=false,includeMaskChars:d=false,disabled:m,placeholder:p,...c},g)=>{let u=typeof i=="string"&&i in Fs?Fs[i].mask:i,[h,w]=K__namespace.useState(r),[b,v]=K__namespace.useState(""),[R,f]=K__namespace.useState(false),x=K__namespace.useRef(null),S=a!==void 0?a:h;K__namespace.useImperativeHandle(g,()=>x.current),K__namespace.useEffect(()=>{let T=Kn(S,u,true);v(T);},[S,u]);let y=T=>{let N=T.target.value,P=T.target.selectionStart??0,D=N.replace(/[^\w]/g,""),k=Kn(D,u,true),I=Bs(k,u);v(k),a===void 0&&w(d?k:I),n?.(I,k),requestAnimationFrame(()=>{if(x.current){let V=gw(k,u,P);x.current.setSelectionRange(V,V);}});},C=T=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(T.key)||T.ctrlKey||T.metaKey)return;let N=x.current;if(!N)return;let P=N.selectionStart??0;if(T.key==="Backspace"&&P>0){let D=P-1;for(;D>0&&!Ha(u[D]);)D--;let k=Bs(b,u),I=0;for(let H=0;H<D&&H<u.length;H++)Ha(u[H])&&I++;let V=k.slice(0,Math.max(0,I-1))+k.slice(I),L=Kn(V,u,true);v(L),a===void 0&&w(d?L:V),n?.(V,L),T.preventDefault(),requestAnimationFrame(()=>{x.current&&x.current.setSelectionRange(D,D);});}},M=l?Dp(u,s):p;return jsxRuntime.jsx("input",{ref:x,type:"text",value:b,onChange:y,onKeyDown:C,onFocus:()=>f(true),onBlur:()=>f(false),disabled:m,placeholder:M,className:o(kp({size:t}),e),style:{borderColor:R?"var(--color-foreground)":void 0},...c})});Lp.displayName="MaskedInput";var Vp=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"}}),jn={"DD/MM/YYYY":"/","MM/DD/YYYY":"/","YYYY-MM-DD":"-","DD.MM.YYYY":"."},Gs={"DD/MM/YYYY":["day","month","year"],"MM/DD/YYYY":["month","day","year"],"YYYY-MM-DD":["year","month","day"],"DD.MM.YYYY":["day","month","year"]},Os=(e,t)=>String(e).padStart(t,"0"),Yn=(e,t)=>{let a=Os(e.getDate(),2),r=Os(e.getMonth()+1,2),n=Os(e.getFullYear(),4),i=jn[t],s=Gs[t],l={day:a,month:r,year:n};return s.map(d=>l[d]).join(i)},Ip=(e,t)=>{let a=jn[t],r=e.split(a);if(r.length!==3)return null;let n=Gs[t],i={};if(n.forEach((l,d)=>{i[l]=parseInt(r[d],10);}),isNaN(i.day)||isNaN(i.month)||isNaN(i.year)||i.month<1||i.month>12||i.day<1||i.day>31||i.year<1e3||i.year>9999)return null;let s=new Date(i.year,i.month-1,i.day);return s.getFullYear()!==i.year||s.getMonth()!==i.month-1||s.getDate()!==i.day?null:s},xw=e=>e.toLowerCase(),yw=e=>{let t=jn[e];return Gs[e].map(r=>r==="year"?"####":"##").join(t)},Ep=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r,onChange:n,format:i="DD/MM/YYYY",minDate:s,maxDate:l,showIcon:d=true,disabled:m,placeholder:p,...c},g)=>{let[u,h]=K__namespace.useState(r??null),[w,b]=K__namespace.useState(""),[v,R]=K__namespace.useState(null),f=K__namespace.useRef(null),x=a!==void 0?a:u;K__namespace.useImperativeHandle(g,()=>f.current),K__namespace.useEffect(()=>{x?(b(Yn(x,i)),R(null)):b("");},[x,i]);let S=jn[i],y=yw(i),C=N=>{let P=N.target.value;P=P.replace(new RegExp(`[^0-9\\${S}]`,"g"),"");let D=P.replace(new RegExp(`\\${S}`,"g"),""),k="",I=0;for(let V=0;V<y.length&&I<D.length;V++)y[V]==="#"?(k+=D[I],I++):k+=y[V];if(b(k),k.length===y.length){let V=Ip(k,i);if(V){if(s&&V<s){R(`Date must be after ${Yn(s,i)}`);return}if(l&&V>l){R(`Date must be before ${Yn(l,i)}`);return}R(null),a===void 0&&h(V),n?.(V);}else R("Invalid date");}else a===void 0&&h(null),n?.(null),R(null);},M=()=>{w&&w.length!==y.length&&(b(""),R(null),a===void 0&&h(null),n?.(null));},T=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:f,type:"text",inputMode:"numeric",value:w,onChange:C,onBlur:M,disabled:m,placeholder:p??xw(i),className:o(Vp({size:t}),d&&"pr-10",v&&"border-danger focus-visible:ring-danger",e),"aria-invalid":!!v,"aria-describedby":v?"date-error":void 0,...c}),d&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2",children:jsxRuntime.jsx(lucideReact.Calendar,{className:o(T,"text-muted-foreground")})}),v&&jsxRuntime.jsx("p",{id:"date-error",className:"mt-1 text-xs text-danger",children:v})]})});Ep.displayName="DateInput";var Hp=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"}}),Ap=[{code:"TR",name:"Turkey",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}",format:"(###) ### ## ##"},{code:"US",name:"United States",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}",format:"(###) ###-####"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}",format:"#### ### ####"},{code:"DE",name:"Germany",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}",format:"#### #######"},{code:"FR",name:"France",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}",format:"# ## ## ## ##"},{code:"IT",name:"Italy",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}",format:"### ### ####"},{code:"ES",name:"Spain",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}",format:"### ### ###"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}",format:"## ########"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}",format:"### ## ## ##"},{code:"AT",name:"Austria",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}",format:"### #######"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}",format:"## ### ## ##"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}",format:"##-### ## ##"},{code:"NO",name:"Norway",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}",format:"### ## ###"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}",format:"## ## ## ##"},{code:"FI",name:"Finland",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}",format:"## ### ####"},{code:"PL",name:"Poland",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}",format:"### ### ###"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}",format:"### ### ###"},{code:"GR",name:"Greece",dialCode:"+30",flag:"\u{1F1EC}\u{1F1F7}",format:"### ### ####"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}",format:"### ### ###"},{code:"RU",name:"Russia",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}",format:"(###) ###-##-##"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}",format:"## ### ## ##"},{code:"RO",name:"Romania",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}",format:"### ### ###"},{code:"HU",name:"Hungary",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}",format:"## ### ####"},{code:"BG",name:"Bulgaria",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}",format:"### ### ###"},{code:"HR",name:"Croatia",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}",format:"## ### ####"},{code:"RS",name:"Serbia",dialCode:"+381",flag:"\u{1F1F7}\u{1F1F8}",format:"## ### ####"},{code:"SI",name:"Slovenia",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}",format:"## ### ###"},{code:"SK",name:"Slovakia",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}",format:"### ### ###"},{code:"CA",name:"Canada",dialCode:"+1",flag:"\u{1F1E8}\u{1F1E6}",format:"(###) ###-####"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"\u{1F1F2}\u{1F1FD}",format:"### ### ####"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"\u{1F1E7}\u{1F1F7}",format:"(##) #####-####"},{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:"NZ",name:"New Zealand",dialCode:"+64",flag:"\u{1F1F3}\u{1F1FF}",format:"## ### ####"},{code:"JP",name:"Japan",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}",format:"##-####-####"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"\u{1F1F0}\u{1F1F7}",format:"##-####-####"},{code:"CN",name:"China",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}",format:"### #### ####"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"\u{1F1ED}\u{1F1F0}",format:"#### ####"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"\u{1F1F9}\u{1F1FC}",format:"### ### ###"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"\u{1F1F8}\u{1F1EC}",format:"#### ####"},{code:"IN",name:"India",dialCode:"+91",flag:"\u{1F1EE}\u{1F1F3}",format:"##### #####"},{code:"PK",name:"Pakistan",dialCode:"+92",flag:"\u{1F1F5}\u{1F1F0}",format:"### #######"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"\u{1F1E6}\u{1F1EA}",format:"## ### ####"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"\u{1F1F8}\u{1F1E6}",format:"## ### ####"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"\u{1F1EA}\u{1F1EC}",format:"### ### ####"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"\u{1F1FF}\u{1F1E6}",format:"## ### ####"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"\u{1F1F3}\u{1F1EC}",format:"### ### ####"},{code:"IL",name:"Israel",dialCode:"+972",flag:"\u{1F1EE}\u{1F1F1}",format:"##-###-####"}],Xn=(e,t)=>{let a=e.replace(/\D/g,""),r="",n=0;for(let i=0;i<t.length&&n<a.length;i++)t[i]==="#"?(r+=a[n],n++):r+=t[i];return r},Nw=e=>e.replace(/#/g,"_"),zp=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,country:i,defaultCountry:s="TR",onCountryChange:l,countries:d=Ap,showCountrySelect:m=true,showDialCode:p=false,disabled:c,placeholder:g,...u},h)=>{let[w,b]=K__namespace.useState(r),[v,R]=K__namespace.useState(i??s),[f,x]=K__namespace.useState(false),S=a!==void 0?a:w,y=i??v,C=d.find(D=>D.code===y)??d[0],M=Xn(S,C.format),T=D=>{let I=D.target.value.replace(/\D/g,"");a===void 0&&b(I);let V=Xn(I,C.format),L=`${C.dialCode} ${V}`;n?.(I,L,C);};return jsxRuntime.jsxs("div",{className:"flex",children:[m&&jsxRuntime.jsxs(ns,{value:y,onValueChange:D=>{let k=d.find(L=>L.code===D);if(!k)return;i===void 0&&R(D),l?.(k);let I=Xn(S,k.format),V=`${k.dialCode} ${I}`;n?.(S,V,k);},disabled:c,children:[jsxRuntime.jsx(wn,{className:o("w-[100px] rounded-r-none border-r-0 shrink-0",t==="sm"?"h-8":t==="lg"?"h-12":"h-10"),children:jsxRuntime.jsx(is,{children:jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:C.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:C.dialCode})]})})}),jsxRuntime.jsx(Nn,{className:"max-h-[300px]",children:d.map(D=>jsxRuntime.jsx(Pn,{value:D.code,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:D.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:D.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:D.dialCode})]})},D.code))})]}),jsxRuntime.jsxs("div",{className:"relative flex-1",children:[p&&!m&&jsxRuntime.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:C.dialCode}),jsxRuntime.jsx("input",{ref:h,type:"tel",inputMode:"tel",value:M,onChange:T,onFocus:()=>x(true),onBlur:()=>x(false),disabled:c,placeholder:g??Nw(C.format),className:o(Hp({size:t}),m&&"rounded-l-none",p&&!m&&"pl-12",e),style:{borderColor:f?"var(--color-foreground)":void 0},...u})]})]})});zp.displayName="PhoneInput";var Bp=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}}),Op=K__namespace.forwardRef(({className:e,variant:t,size:a,sticky:r,brand:n,children:i,mobileBreakpoint:s="md",...l},d)=>{let[m,p]=K__namespace.useState(false),c={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],g={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:d,className:o(Bp({variant:t,size:a,sticky:r,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:o("items-center gap-4 flex-1 justify-end",c),children:i}),jsxRuntime.jsx("button",{type:"button",className:o("p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",g),onClick:()=>p(!m),"aria-label":m?"Close menu":"Open menu","aria-expanded":m,children:m?jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"})})]}),m&&jsxRuntime.jsx("div",{className:o("absolute top-full left-0 right-0 flex flex-col gap-2 p-4 bg-background border-b border-border shadow-lg",g),children:i})]})});Op.displayName="Navbar";var Gp=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center gap-2 font-semibold text-lg",e),...t}));Gp.displayName="NavbarBrand";var Wp=K__namespace.forwardRef(({className:e,justify:t="start",...a},r)=>{let n={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:r,className:o("flex items-center gap-4",n,e),...a})});Wp.displayName="NavbarContent";var $p=K__namespace.forwardRef(({className:e,isActive:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex items-center",t&&"text-primary font-medium",e),...a}));$p.displayName="NavbarItem";var _p=K__namespace.forwardRef(({className:e,isActive:t,...a},r)=>jsxRuntime.jsx("a",{ref:r,className:o("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...a}));_p.displayName="NavbarLink";var Up=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"}}),Yp=K__namespace.forwardRef(({className:e,variant:t,size:a,underline:r,isExternal:n,showExternalIcon:i=true,isDisabled:s,children:l,...d},m)=>{let p=n?{target:"_blank",rel:"noopener noreferrer"}:{};return jsxRuntime.jsxs("a",{ref:m,className:o(Up({variant:t,size:a,underline:r,className:e}),s&&"pointer-events-none opacity-50"),"aria-disabled":s,...p,...d,children:[l,n&&i&&jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-3 w-3 ml-0.5","aria-hidden":"true"})]})});Yp.displayName="Link";var Xp=classVarianceAuthority.cva("fixed bottom-6 right-6 z-50 flex items-center justify-center rounded-full shadow-lg transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"bg-background border border-border text-foreground hover:bg-accent",ghost:"bg-background/80 backdrop-blur-sm text-foreground hover:bg-accent",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted text-foreground hover:bg-muted/80"},size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"}},defaultVariants:{variant:"solid",size:"md"}}),qp=K__namespace.forwardRef(({className:e,variant:t,size:a,visibilityHeight:r=400,smooth:n=true,icon:i,duration:s=300,onClick:l,...d},m)=>{let[p,c]=K__namespace.useState(false);K__namespace.useEffect(()=>{let h=()=>{c(window.scrollY>r);};return h(),window.addEventListener("scroll",h,{passive:true}),()=>window.removeEventListener("scroll",h)},[r]);let g=h=>{n?window.scrollTo({top:0,behavior:"smooth"}):window.scrollTo(0,0),l?.(h);},u={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[a||"md"];return p?jsxRuntime.jsx("button",{ref:m,type:"button",className:o(Xp({variant:t,size:a,className:e}),"animate-in fade-in zoom-in duration-300"),onClick:g,"aria-label":"Back to top",...d,children:i||jsxRuntime.jsx(lucideReact.ArrowUp,{className:u})}):null});qp.displayName="BackTop";var Aw=Y__namespace.Menu,zw=Y__namespace.Group,Fw=Y__namespace.Portal,Bw=Y__namespace.Sub,Ow=Y__namespace.RadioGroup,Zp=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Root,{ref:a,className:o("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));Zp.displayName=Y__namespace.Root.displayName;var Qp=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Trigger,{ref:a,className:o("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));Qp.displayName=Y__namespace.Trigger.displayName;var Jp=K__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(Y__namespace.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Jp.displayName=Y__namespace.SubTrigger.displayName;var ef=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));ef.displayName=Y__namespace.SubContent.displayName;var tf=K__namespace.forwardRef(({className:e,align:t="start",alignOffset:a=-4,sideOffset:r=8,...n},i)=>jsxRuntime.jsx(Y__namespace.Portal,{children:jsxRuntime.jsx(Y__namespace.Content,{ref:i,align:t,alignOffset:a,sideOffset:r,className:o("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));tf.displayName=Y__namespace.Content.displayName;var af=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(Y__namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));af.displayName=Y__namespace.Item.displayName;var rf=K__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(Y__namespace.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Y__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));rf.displayName=Y__namespace.CheckboxItem.displayName;var of=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Y__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Y__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));of.displayName=Y__namespace.RadioItem.displayName;var nf=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(Y__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));nf.displayName=Y__namespace.Label.displayName;var sf=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));sf.displayName=Y__namespace.Separator.displayName;var lf=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});lf.displayName="MenubarShortcut";var df=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"}}),cf=K__namespace.forwardRef(({className:e,orientation:t,size:a,currentStep:r=0,children:n,...i},s)=>{let l=K__namespace.Children.toArray(n);return jsxRuntime.jsx("div",{ref:s,className:o(df({orientation:t,size:a,className:e})),...i,children:l.map((d,m)=>K__namespace.isValidElement(d)?K__namespace.cloneElement(d,{...d.props,stepNumber:m+1,status:d.props.status||(m<r?"completed":m===r?"current":"upcoming"),isLast:m===l.length-1,orientation:t,size:a}):d)})});cf.displayName="Steps";var mf=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"}}),Ww=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"}}),$w=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"}}),uf=K__namespace.forwardRef(({className:e,orientation:t="horizontal",size:a="md",title:r,description:n,icon:i,status:s="upcoming",stepNumber:l,isLast:d,...m},p)=>jsxRuntime.jsxs("div",{ref:p,className:o(mf({orientation:t,size:a,className:e}),!d&&t==="horizontal"&&"flex-1"),...m,children:[jsxRuntime.jsx("div",{className:o("flex items-center",t==="vertical"&&"flex-col items-start"),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:o(Ww({status:s,size:a})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:a==="sm"?"h-3 w-3":a==="lg"?"h-5 w-5":"h-4 w-4"}):i||l}),(r||n)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[r&&jsxRuntime.jsx("span",{className:o("font-medium",a==="sm"&&"text-sm",a==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:r}),n&&jsxRuntime.jsx("span",{className:o("text-muted-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm",a==="lg"&&"text-base"),children:n})]})]})}),!d&&jsxRuntime.jsx("div",{className:o($w({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));uf.displayName="Step";function Xw({className:e,data:t,columns:a,selectable:r=false,selectedKeys:n,onSelectionChange:i,getRowKey:s=(x,S)=>String(S),sortable:l=false,sortState:d,onSortChange:m,paginated:p=false,pageSizeOptions:c=[10,20,50],paginationState:g,onPaginationChange:u,emptyContent:h="No data",loading:w=false,striped:b=false,hoverable:v=true,...R},f){let[x,S]=K__namespace.useState(new Set),[y,C]=K__namespace.useState({columnId:null,direction:null}),[M,T]=K__namespace.useState({pageIndex:0,pageSize:c[0]||10}),N=n??x,P=d??y,D=g??M,k=E=>{i?i(E):S(E);},I=E=>{m?m(E):C(E);},V=E=>{u?u(E):T(E);},L=K__namespace.useMemo(()=>{if(!P.columnId||!P.direction)return t;let E=a.find(z=>z.id===P.columnId);return E?[...t].sort((z,j)=>{let G=E.accessor(z),fe=E.accessor(j);if(G===fe)return 0;if(G==null)return 1;if(fe==null)return -1;let ya=String(G).localeCompare(String(fe),void 0,{numeric:true});return P.direction==="asc"?ya:-ya}):t},[t,P,a]),H=K__namespace.useMemo(()=>{if(!p)return L;let E=D.pageIndex*D.pageSize;return L.slice(E,E+D.pageSize)},[L,p,D]),B=Math.ceil(L.length/D.pageSize),$=E=>{if(E){let z=new Set(H.map((j,G)=>s(j,G)));k(z);}else k(new Set);},A=(E,z)=>{let j=new Set(N);z?j.add(E):j.delete(E),k(j);},O=H.length>0&&H.every((E,z)=>N.has(s(E,z))),te=H.some((E,z)=>N.has(s(E,z))),be=E=>{if(!a.find(G=>G.id===E)?.sortable&&!l)return;let j="asc";P.columnId===E&&(P.direction==="asc"?j="desc":P.direction==="desc"&&(j=null)),I({columnId:j?E:null,direction:j});},Ie=E=>P.columnId!==E?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:f,className:o("w-full",e),...R,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:[r&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(wo,{checked:O?true:te?"indeterminate":false,onCheckedChange:$,"aria-label":"Select all"})}),a.map(E=>{let z=E.sortable??l;return jsxRuntime.jsx("th",{className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground",z&&"cursor-pointer select-none hover:text-foreground"),style:{width:E.width},onClick:()=>z&&be(E.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[E.header,z&&Ie(E.id)]})},E.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:w?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):H.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:h})}):H.map((E,z)=>{let j=s(E,z),G=N.has(j);return jsxRuntime.jsxs("tr",{className:o("border-b transition-colors",v&&"hover:bg-muted/50",b&&z%2===1&&"bg-muted/30",G&&"bg-muted"),"data-state":G?"selected":void 0,children:[r&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(wo,{checked:G,onCheckedChange:fe=>A(j,!!fe),"aria-label":`Select row ${z+1}`})}),a.map(fe=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:fe.cell?fe.cell(E,z):fe.accessor(E)},fe.id))]},j)})})]})}),p&&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:D.pageSize,onChange:E=>V({pageIndex:0,pageSize:Number(E.target.value)}),className:"h-8 rounded-md border bg-transparent px-2",children:c.map(E=>jsxRuntime.jsx("option",{value:E,children:E},E))})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",D.pageIndex+1," of ",B||1]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx("button",{onClick:()=>V({...D,pageIndex:D.pageIndex-1}),disabled:D.pageIndex===0,className:"inline-flex h-8 w-8 items-center justify-center rounded-md border bg-transparent hover:bg-muted disabled:opacity-50 disabled:pointer-events-none","aria-label":"Previous page",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{onClick:()=>V({...D,pageIndex:D.pageIndex+1}),disabled:D.pageIndex>=B-1,className:"inline-flex h-8 w-8 items-center justify-center rounded-md border bg-transparent hover:bg-muted disabled:opacity-50 disabled:pointer-events-none","aria-label":"Next page",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})]})]})}var qw=K__namespace.forwardRef(Xw);var ff=classVarianceAuthority.cva("",{variants:{size:{sm:"[--tree-indent:12px] [--tree-item-height:28px] text-xs",md:"[--tree-indent:16px] [--tree-item-height:32px] text-sm",lg:"[--tree-indent:20px] [--tree-item-height:40px] text-base"}},defaultVariants:{size:"md"}}),gf=K__namespace.forwardRef(({className:e,size:t,data:a,defaultExpandedIds:r=[],expandedIds:n,onExpandedChange:i,selectedId:s,onSelect:l,showIcons:d=true,leafIcon:m=jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),folderIcon:p=jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),folderOpenIcon:c=jsxRuntime.jsx(lucideReact.FolderOpen,{className:"h-4 w-4"}),defaultExpandAll:g=false,...u},h)=>{let w=K__namespace.useCallback(y=>y.reduce((C,M)=>M.children?.length?[...C,M.id,...w(M.children)]:C,[]),[]),[b,v]=K__namespace.useState(()=>g?w(a):r),R=n??b,f=y=>{i?i(y):v(y);},x=y=>{R.includes(y)?f(R.filter(C=>C!==y)):f([...R,y]);},S=(y,C=0)=>{let M=y.children&&y.children.length>0,T=R.includes(y.id),N=s===y.id,P=()=>{y.disabled||l?.(y);},D=I=>{I.stopPropagation(),M&&x(y.id);},k=()=>y.icon?y.icon:M?T?c:p:m;return jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":M?T:void 0,children:[jsxRuntime.jsxs("div",{className:o("flex items-center gap-1 rounded-md px-2 cursor-pointer transition-colors","h-[var(--tree-item-height)]","hover:bg-muted/50",N&&"bg-primary/10 text-primary",y.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`calc(${C} * var(--tree-indent) + 8px)`},onClick:P,children:[jsxRuntime.jsx("button",{type:"button",className:o("flex h-5 w-5 items-center justify-center rounded hover:bg-muted",!M&&"invisible"),onClick:D,tabIndex:-1,"aria-label":T?"Collapse":"Expand",children:T?jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),d&&jsxRuntime.jsx("span",{className:"flex-shrink-0 text-muted-foreground",children:k()}),jsxRuntime.jsx("span",{className:"truncate",children:y.name})]}),M&&T&&jsxRuntime.jsx("div",{role:"group",children:y.children.map(I=>S(I,C+1))})]},y.id)};return jsxRuntime.jsx("div",{ref:h,role:"tree",className:o(ff({size:t,className:e})),...u,children:a.map(y=>S(y))})});gf.displayName="TreeView";var vf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm 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 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),sN=({text:e,query:t})=>{if(!t)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let a=new RegExp(`(${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi"),r=e.split(a);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map((n,i)=>a.test(n)?jsxRuntime.jsx("mark",{className:"bg-primary/20 text-foreground rounded-sm",children:n},i):jsxRuntime.jsx("span",{children:n},i))})},lN=(e,t)=>{let[a,r]=K__namespace.useState(e);return K__namespace.useEffect(()=>{let n=setTimeout(()=>{r(e);},t);return ()=>{clearTimeout(n);}},[e,t]),a},hf=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,onSelect:i,options:s=[],loadOptions:l,debounceMs:d=300,minChars:m=0,placeholder:p="Type to search...",emptyText:c="No results found.",loadingText:g="Loading...",clearable:u=false,freeSolo:h=true,maxHeight:w=200,highlightMatch:b=true,disabled:v,...R},f)=>{let[x,S]=K__namespace.useState(false),[y,C]=K__namespace.useState(r),[M,T]=K__namespace.useState([]),[N,P]=K__namespace.useState(false),D=K__namespace.useRef(null),k=a!==void 0?a:y,I=lN(k,d);K__namespace.useImperativeHandle(f,()=>D.current);let V=l?M:s,L=K__namespace.useMemo(()=>l?V:V.filter(z=>z.label.toLowerCase().includes(k.toLowerCase())),[V,k,l]);K__namespace.useEffect(()=>{if(!l)return;if(I.length<m){T([]);return}let z=false;return (async()=>{P(true);try{let G=await l(I);z||T(G);}catch{z||T([]);}finally{z||P(false);}})(),()=>{z=true;}},[I,l,m]);let H=z=>{a===void 0&&C(z),n?.(z);},B=z=>{let j=z.target.value;H(j),j.length>=m&&S(true);},$=z=>{H(z.label),i?.(z),S(false);},A=()=>{H(""),D.current?.focus();},O=()=>{k.length>=m&&(L.length>0||N)&&S(true);},te=z=>{z.key==="Escape"&&S(false),z.key==="ArrowDown"&&!x&&L.length>0&&S(true);},be=x&&k.length>=m,Ie=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4",E=u&&k?"pr-8":"pr-3";return jsxRuntime.jsxs(ye,{open:be,onOpenChange:S,children:[jsxRuntime.jsx(ms,{asChild:true,children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx("input",{ref:D,type:"text",value:k,onChange:B,onFocus:O,onKeyDown:te,disabled:v,placeholder:p,className:o(vf({size:t}),E,e),role:"combobox","aria-expanded":be,"aria-autocomplete":"list","aria-controls":"autocomplete-list",...R}),u&&k&&!v&&jsxRuntime.jsx("button",{type:"button",onClick:A,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:Ie})})]})}),jsxRuntime.jsx(ve,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",onOpenAutoFocus:z=>z.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:w},children:N?jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(Ie,"animate-spin")}),g]}):L.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:c}):L.map(z=>jsxRuntime.jsxs(cmdk.Command.Item,{value:z.value,disabled:z.disabled,onSelect:()=>$(z),className:o("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:o("mr-2 h-4 w-4 shrink-0",k===z.label?"opacity-100":"opacity-0")}),jsxRuntime.jsx("span",{className:"flex-1",children:b?jsxRuntime.jsx(sN,{text:z.label,query:k}):z.label})]},z.value))})})})]})});hf.displayName="Autocomplete";var Ks=K__namespace.createContext(null),Us=K__namespace.createContext(null),Ys=()=>{let e=K__namespace.useContext(Ks);if(!e)throw new Error("useFormContext must be used within a Form");return e},Qn=()=>{let e=K__namespace.useContext(Us);if(!e)throw new Error("useFieldContext must be used within a FormField");return e},dN={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:a=>typeof a=="string"&&a.length>=e,message:t??`Must be at least ${e} characters`}),maxLength:(e,t)=>({validate:a=>typeof a=="string"&&a.length<=e,message:t??`Must be at most ${e} characters`}),min:(e,t)=>({validate:a=>typeof a=="number"&&a>=e,message:t??`Must be at least ${e}`}),max:(e,t)=>({validate:a=>typeof a=="number"&&a<=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:a=>typeof a=="string"&&e.test(a),message:t}),custom:(e,t)=>({validate:e,message:t})},xf=K__namespace.forwardRef(({defaultValues:e={},onSubmit:t,onError:a,validateOnBlur:r=true,validateOnChange:n=false,children:i,className:s,...l},d)=>{let[m,p]=K__namespace.useState(e),[c,g]=K__namespace.useState({}),[u,h]=K__namespace.useState({}),[w,b]=K__namespace.useState({}),[v,R]=K__namespace.useState(false),f=K__namespace.useRef(new Map),x=K__namespace.useCallback((V,L)=>{f.current.set(V,L);},[]),S=K__namespace.useCallback(V=>{f.current.delete(V);},[]),y=K__namespace.useCallback(V=>{let L=f.current.get(V)||[],H=m[V];for(let B of L)if(!B.validate(H))return g($=>({...$,[V]:B.message})),false;return g(B=>({...B,[V]:null})),true},[m]),C=K__namespace.useCallback(()=>{let V=true,L={};return f.current.forEach((H,B)=>{let $=m[B];for(let A of H)if(!A.validate($)){L[B]=A.message,V=false;break}L[B]||(L[B]=null);}),g(L),V},[m]),M=K__namespace.useCallback((V,L)=>{p(H=>({...H,[V]:L})),b(H=>({...H,[V]:true})),n&&setTimeout(()=>{y(V);},0);},[n,y]),T=K__namespace.useCallback((V,L)=>{g(H=>({...H,[V]:L}));},[]),N=K__namespace.useCallback((V,L)=>{h(H=>({...H,[V]:L})),L&&r&&y(V);},[r,y]),P=K__namespace.useCallback(V=>({value:m[V],error:c[V]??null,touched:u[V]??false,dirty:w[V]??false}),[m,c,u,w]),D=K__namespace.useCallback(()=>{p(e),g({}),h({}),b({});},[e]),k=async V=>{V.preventDefault();let L={};if(f.current.forEach((B,$)=>{L[$]=true;}),h(L),!C()){a?.(c);return}if(t){R(true);try{await t(m);}finally{R(false);}}},I={values:m,errors:c,touched:u,dirty:w,isSubmitting:v,setValue:M,setError:T,setTouched:N,validateField:y,validateAll:C,registerField:x,unregisterField:S,getFieldState:P,reset:D};return jsxRuntime.jsx(Ks.Provider,{value:I,children:jsxRuntime.jsx("form",{ref:d,onSubmit:k,className:o("space-y-4",s),...l,children:i})})});xf.displayName="Form";var yf=({name:e,rules:t=[],defaultValue:a,children:r})=>{let n=Ys(),i=K__namespace.useId();K__namespace.useEffect(()=>(n.registerField(e,t),a!==void 0&&n.values[e]===void 0&&n.setValue(e,a),()=>{n.unregisterField(e);}),[e,t,a,n]);let s=n.getFieldState(e),l={name:e,id:`${i}-${e}`,value:s.value,error:s.error,touched:s.touched,dirty:s.dirty};return jsxRuntime.jsx(Us.Provider,{value:l,children:r})};yf.displayName="FormField";var Rf=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("space-y-1.5",e),...t}));Rf.displayName="FormItem";var wf=K__namespace.forwardRef(({className:e,required:t,children:a,...r},n)=>{let{id:i,error:s,touched:l}=Qn();return jsxRuntime.jsxs(qa,{ref:n,htmlFor:i,className:o(s&&l&&"text-danger",e),...r,children:[a,t&&jsxRuntime.jsx("span",{className:"ml-1 text-danger",children:"*"})]})});wf.displayName="FormLabel";var Nf=({children:e})=>{let{name:t,id:a,error:r,touched:n}=Qn(),i=Ys(),s=i.getFieldState(t),l=m=>{let p=m.target,c=p.type==="checkbox"?p.checked:p.value;i.setValue(t,c);},d=()=>{i.setTouched(t,true);};return K__namespace.cloneElement(e,{id:a,name:t,value:s.value??"",onChange:l,onBlur:d,"aria-invalid":r&&n?"true":void 0,"aria-describedby":r&&n?`${a}-error`:void 0})};Nf.displayName="FormControl";var Pf=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("p",{ref:a,className:o("text-xs text-muted-foreground",e),...t}));Pf.displayName="FormDescription";var Cf=K__namespace.forwardRef(({className:e,message:t,...a},r)=>{let{id:n,error:i,touched:s}=Qn(),l=t??(s?i:null);return l?jsxRuntime.jsx("p",{ref:r,id:`${n}-error`,className:o("text-xs text-danger",e),role:"alert",...a,children:l}):null});Cf.displayName="FormMessage";var Tf=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"}}),Mf=K__namespace.forwardRef(({className:e,size:t,name:a,description:r,avatarUrl:n,avatarFallback:i,trailing:s,...l},d)=>{let m=i||a.split(" ").map(p=>p[0]).join("").toUpperCase().slice(0,2);return jsxRuntime.jsxs("div",{ref:d,className:o(Tf({size:t,className:e})),...l,children:[jsxRuntime.jsxs(Za,{"data-user-avatar":true,children:[n&&jsxRuntime.jsx(Vr,{src:n,alt:a}),jsxRuntime.jsx(Qa,{children:m})]}),jsxRuntime.jsxs("div",{className:"flex flex-col min-w-0",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium leading-none truncate",children:a}),r&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground truncate",children:r})]}),s&&jsxRuntime.jsx("div",{className:"ml-auto flex-shrink-0",children:s})]})});Mf.displayName="User";var Df=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"}}),Lf=K__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx("code",{ref:n,className:o(Df({variant:t,size:a,className:e})),...r}));Lf.displayName="Code";var Vf=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"}}),If=K__namespace.forwardRef(({className:e,variant:t,size:a,code:r,copyable:n=true,copyLabel:i="Copy",onCopy:s,symbol:l="$",hideSymbol:d=false,...m},p)=>{let[c,g]=K__namespace.useState(false),u=async()=>{try{await navigator.clipboard.writeText(r),g(!0),s?.(),setTimeout(()=>g(!1),2e3);}catch(h){console.error("Failed to copy:",h);}};return jsxRuntime.jsxs("div",{ref:p,className:o(Vf({variant:t,size:a,className:e})),...m,children:[!d&&jsxRuntime.jsx("span",{className:"text-muted-foreground select-none",children:l}),jsxRuntime.jsx("code",{className:"flex-1 truncate",children:r}),n&&jsxRuntime.jsx("button",{type:"button",onClick:u,className:o("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":c?"Copied":i,children:c?jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-4 w-4 text-muted-foreground"})})]})});If.displayName="Snippet";var qs=classVarianceAuthority.cva("overflow-hidden",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),Ef=K__namespace.forwardRef(({className:e,radius:t,src:a,alt:r,fallback:n,showSkeleton:i=true,onLoad:s,onError:l,fit:d="cover",aspectRatio:m,style:p,...c},g)=>{let[u,h]=K__namespace.useState("loading");K__namespace.useEffect(()=>{a&&h("loading");},[a]);let w=()=>{h("loaded"),s?.();},b=()=>{h("error"),l?.();},v={contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"}[d];return u==="error"&&n?jsxRuntime.jsx("div",{className:o(qs({radius:t}),"flex items-center justify-center bg-muted",e),style:{aspectRatio:m,...p},children:n}):jsxRuntime.jsxs("div",{className:o(qs({radius:t}),"relative",e),style:{aspectRatio:m,...p},children:[u==="loading"&&i&&jsxRuntime.jsx(yn,{className:"absolute inset-0 h-full w-full"}),jsxRuntime.jsx("img",{ref:g,src:a,alt:r,onLoad:w,onError:b,className:o("h-full w-full transition-opacity duration-300",v,u==="loading"?"opacity-0":"opacity-100"),...c})]})});Ef.displayName="Image";var zf=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"}}),Ff=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"}}),Bf=K__namespace.createContext({value:"",onValueChange:()=>{},multiple:false,size:"md"}),Of=K__namespace.forwardRef(({className:e,size:t="md",value:a,defaultValue:r="",onValueChange:n,multiple:i=false,children:s,...l},d)=>{let[m,p]=K__namespace.useState(r),c=a??m,g=u=>{let h;if(i){let w=Array.isArray(c)?c:[c].filter(Boolean);w.includes(u)?h=w.filter(b=>b!==u):h=[...w,u];}else h=u;n?n(h):p(h);};return jsxRuntime.jsx(Bf.Provider,{value:{value:c,onValueChange:g,multiple:i,size:t??"md"},children:jsxRuntime.jsx("div",{ref:d,role:"listbox","aria-multiselectable":i,className:o(zf({size:t,className:e})),...l,children:s})})});Of.displayName="Listbox";var Gf=K__namespace.forwardRef(({className:e,value:t,disabled:a,icon:r,description:n,children:i,...s},l)=>{let{value:d,onValueChange:m,multiple:p,size:c}=K__namespace.useContext(Bf),g=p?Array.isArray(d)&&d.includes(t):d===t,u=()=>{a||m(t);},h=w=>{(w.key==="Enter"||w.key===" ")&&!a&&(w.preventDefault(),m(t));};return jsxRuntime.jsxs("div",{ref:l,role:"option","aria-selected":g,"data-disabled":a?"":void 0,tabIndex:a?-1:0,className:o(Ff({size:c}),g&&"bg-accent text-accent-foreground",e),onClick:u,onKeyDown:h,...s,children:[r&&jsxRuntime.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:i}),n&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:n})]}),g&&jsxRuntime.jsx(lucideReact.Check,{className:"ml-2 h-4 w-4 flex-shrink-0"})]})});Gf.displayName="ListboxItem";var $f=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"}}),_f=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 wN({className:e,variant:t,size:a,items:r,onReorder:n,renderItem:i,showHandle:s=true,disabled:l=false,...d},m){let[p,c]=K__namespace.useState(null),[g,u]=K__namespace.useState(null),h=(f,x)=>{l||(c(x),f.dataTransfer.effectAllowed="move",f.dataTransfer.setData("text/plain",String(x)));},w=(f,x)=>{f.preventDefault(),!(l||p===null||p===x)&&u(x);},b=()=>{u(null);},v=(f,x)=>{if(f.preventDefault(),l||p===null||p===x){c(null),u(null);return}let S=[...r],[y]=S.splice(p,1);S.splice(x,0,y),n?.(S),c(null),u(null);},R=()=>{c(null),u(null);};return jsxRuntime.jsx("div",{ref:m,className:o($f({variant:t,size:a,className:e})),...d,children:r.map((f,x)=>jsxRuntime.jsxs("div",{draggable:!l,onDragStart:S=>h(S,x),onDragOver:S=>w(S,x),onDragLeave:b,onDrop:S=>v(S,x),onDragEnd:R,className:o(_f({variant:t,size:a,isDragging:p===x,isDragOver:g===x}),!l&&"cursor-move"),children:[s&&jsxRuntime.jsx("div",{className:o("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:i(f,x)})]},f.id))})}var NN=K__namespace.forwardRef(wN);var Yf=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}}),TN={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},jf=K__namespace.forwardRef(({className:e,variant:t,loading:a=true,size:r="md",spinner:n,text:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o("relative",e),...l,children:[s,jsxRuntime.jsx("div",{className:o(Yf({variant:t,visible:a})),"aria-hidden":!a,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n||jsxRuntime.jsx(lucideReact.Loader2,{className:o(TN[r],"animate-spin text-primary")}),i&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:i})]})})]}));jf.displayName="LoadingOverlay";var Xf=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"}}),qf=K__namespace.forwardRef(({className:e,color:t,isLoading:a=false,progress:r,showSpinner:n=false,...i},s)=>{let[l,d]=K__namespace.useState(0),[m,p]=K__namespace.useState(false),c=K__namespace.useRef(null);return K__namespace.useEffect(()=>{if(r!==void 0){d(r),p(r>0&&r<100);return}return a?(p(true),d(10),c.current=setInterval(()=>{d(g=>{if(g>=90)return g;let u=Math.random()*10;return Math.min(g+u,90)});},500)):l>0&&(d(100),setTimeout(()=>{p(false),d(0);},200)),()=>{c.current&&clearInterval(c.current);}},[a,r]),!m&&r===void 0||r!==void 0&&(r<=0||r>=100)?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:s,className:o(Xf({color:t,className:e})),style:{width:`${l}%`},role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,...i,children:jsxRuntime.jsx("div",{className:"absolute right-0 h-full w-24 -translate-y-1 rotate-3 bg-inherit opacity-50 blur-sm"})}),n&&m&&jsxRuntime.jsx("div",{className:"fixed top-4 right-4 z-[9999]",children:jsxRuntime.jsx("div",{className:o("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")})})]})});qf.displayName="NProgress";var eg=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}}),Zf={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},IN={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-3 w-3"},tg=K__namespace.forwardRef(({className:e,variant:t="spinner",size:a="md",fullScreen:r,text:n,color:i="primary",...s},l)=>{let d={primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"}[i],m=()=>{switch(t){case "dots":return jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[0,1,2].map(p=>jsxRuntime.jsx("div",{className:o(IN[a||"md"],"animate-bounce rounded-full bg-current",d),style:{animationDelay:`${p*.15}s`}},p))});case "pulse":return jsxRuntime.jsx("div",{className:o(Zf[a||"md"],"animate-pulse rounded-full bg-current",d)});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:o(Zf[a||"md"],"animate-spin",d)})}};return jsxRuntime.jsx("div",{ref:l,className:o(eg({variant:t,size:a,fullScreen:r,className:e})),role:"status","aria-label":n||"Loading",...s,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[m(),n&&jsxRuntime.jsx("span",{className:o("text-sm",d),children:n})]})})});tg.displayName="Loading";var Js=class extends K__namespace.Component{constructor(t){super(t),this.state={hasError:false,error:null};}static getDerivedStateFromError(t){return {hasError:true,error:t}}componentDidCatch(t,a){this.props.onError?.(t,a);}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&this.props.resetKeys.some((r,n)=>r!==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(el,{error:this.state.error,onReset:this.reset}):this.props.children}},el=K__namespace.forwardRef(({error:e,onReset:t,className:a},r)=>jsxRuntime.jsxs("div",{ref:r,className:o("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",a),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"]})]}));el.displayName="DefaultErrorFallback";var AN=Js;var rg=K__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:a,placeholder:r="Pick a date range",dateFormat:n="LLL dd, y",disabled:i=false,minDate:s,maxDate:l,numberOfMonths:d=2,className:m,align:p="start"},c)=>{let[g,u]=K__namespace.useState(false),[h,w]=K__namespace.useState(t),b=e!==void 0,v=b?e:h,R=x=>{b||w(x),a?.(x);},f=x=>{if(!x)return r;let{from:S,to:y}=x;return S&&y?`${dateFns.format(S,n)} - ${dateFns.format(y,n)}`:S?dateFns.format(S,n):r};return jsxRuntime.jsxs(ye,{open:g,onOpenChange:u,children:[jsxRuntime.jsx(Pe,{asChild:true,children:jsxRuntime.jsxs(W,{ref:c,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!v?.from&&"text-muted-foreground",m),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),f(v)]})}),jsxRuntime.jsx(ve,{className:"w-auto p-0",align:p,children:jsxRuntime.jsx(Fr,{mode:"range",defaultMonth:v?.from,selected:v,onSelect:R,numberOfMonths:d,disabled:x=>!!(s&&x<s||l&&x>l),initialFocus:true})})]})});rg.displayName="DateRangePicker";var eo=e=>String(e).padStart(2,"0"),og=K__namespace.forwardRef(({value:e,onValueChange:t,placeholder:a="Pick a time",use24Hour:r=true,minuteStep:n=1,disabled:i=false,className:s},l)=>{let[d,m]=K__namespace.useState(false),p=r?Array.from({length:24},(f,x)=>x):Array.from({length:12},(f,x)=>x+1),c=Array.from({length:Math.floor(60/n)},(f,x)=>x*n),g=f=>{if(!f)return a;if(r)return `${eo(f.hours)}:${eo(f.minutes)}`;let x=f.hours%12||12,S=f.hours>=12?"PM":"AM";return `${eo(x)}:${eo(f.minutes)} ${S}`},u=f=>{let x=e?.minutes??0,S=f;if(!r&&e){let y=e.hours>=12;y&&f!==12?S=f+12:!y&&f===12&&(S=0);}t?.({hours:S,minutes:x});},h=f=>{let x=e?.hours??0;t?.({hours:x,minutes:f});},w=f=>{if(!e)return;let x=e.hours;f==="AM"&&e.hours>=12?x=e.hours-12:f==="PM"&&e.hours<12&&(x=e.hours+12),t?.({hours:x,minutes:e.minutes});},b=()=>{let f=new Date;t?.({hours:f.getHours(),minutes:f.getMinutes()});},v=e?e.hours>=12?"PM":"AM":void 0,R=e?r?e.hours:e.hours%12||12:void 0;return jsxRuntime.jsxs(ye,{open:d,onOpenChange:m,children:[jsxRuntime.jsx(Pe,{asChild:true,children:jsxRuntime.jsxs(W,{ref:l,variant:"bordered",disabled:i,className:o("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"}),g(e)]})}),jsxRuntime.jsxs(ve,{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(ht,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:p.map(f=>jsxRuntime.jsx(W,{variant:R===f?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>u(f),children:eo(f)},f))})})]}),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(ht,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:c.map(f=>jsxRuntime.jsx(W,{variant:e?.minutes===f?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>h(f),children:eo(f)},f))})})]}),!r&&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(W,{variant:v==="AM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>w("AM"),children:"AM"}),jsxRuntime.jsx(W,{variant:v==="PM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>w("PM"),children:"PM"})]})]})]}),jsxRuntime.jsxs("div",{className:"flex justify-between border-t p-2",children:[jsxRuntime.jsx(W,{variant:"ghost",size:"sm",onClick:b,children:"Now"}),jsxRuntime.jsx(W,{size:"sm",onClick:()=>m(false),children:"Done"})]})]})]})});og.displayName="TimePicker";var ng=classVarianceAuthority.cva("overflow-auto",{variants:{variant:{default:"",bordered:"border rounded-lg",cards:""}},defaultVariants:{variant:"default"}});function ON({className:e,variant:t,items:a,itemHeight:r,height:n,overscan:i=3,renderItem:s,getItemKey:l,gap:d=0,onScrollChange:m,...p},c){let g=K__namespace.useRef(null),[u,h]=K__namespace.useState(0);K__namespace.useImperativeHandle(c,()=>g.current);let w=a.length*(r+d)-d,b=r+d,v=Math.max(0,Math.floor(u/b)-i),R=Math.ceil(n/b)+2*i,f=Math.min(a.length-1,v+R),x=y=>{let C=y.currentTarget.scrollTop;h(C),m?.(C);},S=K__namespace.useMemo(()=>{let y=[];for(let C=v;C<=f;C++)a[C]!==void 0&&y.push({item:a[C],index:C,style:{position:"absolute",top:C*b,left:0,right:0,height:r}});return y},[a,v,f,b,r]);return jsxRuntime.jsx("div",{ref:g,className:o(ng({variant:t,className:e})),style:{height:n,position:"relative"},onScroll:x,...p,children:jsxRuntime.jsx("div",{style:{height:w,position:"relative"},children:S.map(({item:y,index:C,style:M})=>jsxRuntime.jsx("div",{style:M,children:s(y,C)},l?l(y,C):C))})})}var GN=K__namespace.forwardRef(ON);var sg=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"border rounded-lg overflow-hidden"}},defaultVariants:{variant:"default"}}),rl=classVarianceAuthority.cva("flex items-center justify-center py-4",{variants:{size:{sm:"py-2",md:"py-4",lg:"py-6"}},defaultVariants:{size:"md"}}),lg=K__namespace.forwardRef(({className:e,variant:t,size:a,children:r,onLoadMore:n,hasMore:i,isLoading:s=false,loader:l,threshold:d=100,rootMargin:m,useWindow:p=false,endMessage:c,...g},u)=>{let h=K__namespace.useRef(null),w=K__namespace.useRef(null),b=K__namespace.useRef(false);K__namespace.useImperativeHandle(u,()=>h.current),K__namespace.useEffect(()=>{let R=w.current;if(!R)return;let f=new IntersectionObserver(x=>{let[S]=x;S.isIntersecting&&i&&!s&&!b.current&&(b.current=true,Promise.resolve(n()).finally(()=>{b.current=false;}));},{root:p?null:h.current,rootMargin:m||`${d}px`,threshold:0});return f.observe(R),()=>{f.disconnect();}},[i,s,n,d,m,p]);let v=jsxRuntime.jsx("div",{className:o(rl({size:a})),children:jsxRuntime.jsx(lucideReact.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})});return jsxRuntime.jsxs("div",{ref:h,className:o(sg({variant:t,className:e})),...g,children:[r,jsxRuntime.jsx("div",{ref:w,className:"h-px w-full"}),s&&(l||v),!i&&!s&&c&&jsxRuntime.jsx("div",{className:o(rl({size:a}),"text-muted-foreground text-sm"),children:c})]})});lg.displayName="InfiniteScroll";var mg=classVarianceAuthority.cva("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"),ol=classVarianceAuthority.cva("fixed left-[50%] top-[50%] z-50 grid 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",{variants:{size:{sm:"w-full max-w-sm",md:"w-full max-w-lg",lg:"w-full max-w-2xl",xl:"w-full max-w-4xl",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)] max-w-none"}},defaultVariants:{size:"md"}}),ug=K__namespace.forwardRef(({open:e,onOpenChange:t,children:a,trigger:r,title:n,description:i,footer:s,showCloseButton:l=true,closeOnOverlayClick:d=true,closeOnEscape:m=true,size:p,className:c,contentClassName:g},u)=>jsxRuntime.jsxs(ne__namespace.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(ne__namespace.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(ne__namespace.Portal,{children:[jsxRuntime.jsx(ne__namespace.Overlay,{className:o(mg(),c),onClick:d?void 0:h=>h.stopPropagation()}),jsxRuntime.jsxs(ne__namespace.Content,{ref:u,className:o(ol({size:p}),g),onEscapeKeyDown:m?void 0:h=>h.preventDefault(),onPointerDownOutside:d?void 0:h=>h.preventDefault(),children:[(n||i)&&jsxRuntime.jsxs("div",{className:"flex flex-col space-y-1.5 text-center sm:text-left",children:[n&&jsxRuntime.jsx(ne__namespace.Title,{className:"text-lg font-semibold leading-none tracking-tight",children:n}),i&&jsxRuntime.jsx(ne__namespace.Description,{className:"text-sm text-muted-foreground",children:i})]}),a,s&&jsxRuntime.jsx("div",{className:"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",children:s}),l&&jsxRuntime.jsxs(ne__namespace.Close,{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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]})]}));ug.displayName="Modal";var _N=ne__namespace.Root,KN=ne__namespace.Trigger,pg=ne__namespace.Portal,UN=ne__namespace.Close,nl=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Overlay,{ref:a,className:o(mg(),e),...t}));nl.displayName="ModalOverlay";var fg=K__namespace.forwardRef(({className:e,children:t,size:a,showCloseButton:r=true,...n},i)=>jsxRuntime.jsxs(pg,{children:[jsxRuntime.jsx(nl,{}),jsxRuntime.jsxs(ne__namespace.Content,{ref:i,className:o(ol({size:a}),e),...n,children:[t,r&&jsxRuntime.jsxs(ne__namespace.Close,{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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));fg.displayName="ModalContent";var gg=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});gg.displayName="ModalHeader";var bg=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});bg.displayName="ModalFooter";var vg=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));vg.displayName="ModalTitle";var hg=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));hg.displayName="ModalDescription";var yg=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"}}),QN=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"}}),JN={default:lucideReact.HelpCircle,danger:lucideReact.XCircle,warning:lucideReact.AlertTriangle,success:lucideReact.CheckCircle,info:lucideReact.Info},il=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r,description:n,confirmText:i="Confirm",cancelText:s="Cancel",onConfirm:l,onCancel:d,showIcon:m=true,icon:p,variant:c="default",loading:g=false,disabled:u=false,className:h},w)=>{let[b,v]=K__namespace.useState(false),R=JN[c||"default"],f=async()=>{if(l){let y=l();if(y instanceof Promise){v(true);try{await y;}finally{v(false);}}}},x=()=>{d?.();},S=g||b;return jsxRuntime.jsxs(ce__namespace.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(ce__namespace.Trigger,{asChild:true,children:a}),jsxRuntime.jsxs(ce__namespace.Portal,{children:[jsxRuntime.jsx(ce__namespace.Overlay,{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"}),jsxRuntime.jsxs(ce__namespace.Content,{ref:w,className:o("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",h),children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:items-start",children:[m&&jsxRuntime.jsx("div",{className:o(yg({variant:c})),children:p||jsxRuntime.jsx(R,{className:"h-6 w-6"})}),jsxRuntime.jsxs("div",{className:"flex flex-col space-y-2 text-center sm:text-left",children:[jsxRuntime.jsx(ce__namespace.Title,{className:"text-lg font-semibold",children:r}),n&&jsxRuntime.jsx(ce__namespace.Description,{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(ce__namespace.Cancel,{className:o(Ee({variant:"bordered"})),onClick:x,disabled:S,children:s}),jsxRuntime.jsx(ce__namespace.Action,{className:o(Ee(),QN({variant:c}),S&&"opacity-50 cursor-not-allowed"),onClick:f,disabled:u||S,children:S?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..."]}):i})]})]})]})]})});il.displayName="ConfirmDialog";function eP(){let[e,t]=K__namespace.useState({open:false,options:null,resolve:null}),a=K__namespace.useCallback(l=>new Promise(d=>{t({open:true,options:l,resolve:d});}),[]),r=K__namespace.useCallback(()=>{e.resolve?.(true),t({open:false,options:null,resolve:null});},[e.resolve]),n=K__namespace.useCallback(()=>{e.resolve?.(false),t({open:false,options:null,resolve:null});},[e.resolve]),i=K__namespace.useCallback(l=>{l||(e.resolve?.(false),t({open:false,options:null,resolve:null}));},[e.resolve]),s=K__namespace.useMemo(()=>e.options?jsxRuntime.jsx(il,{open:e.open,onOpenChange:i,title:e.options.title,description:e.options.description,confirmText:e.options.confirmText,cancelText:e.options.cancelText,variant:e.options.variant,onConfirm:r,onCancel:n}):null,[e,r,n,i]);return {confirm:a,ConfirmDialog:s}}var cP=e=>e.map(t=>typeof t=="string"?{src:t}:t),ll=K__namespace.forwardRef(({images:e,open:t,onOpenChange:a,initialIndex:r=0,onIndexChange:n,trigger:i,showThumbnails:s=true,showZoom:l=true,showRotate:d=true,showDownload:m=true,showFullscreen:p=true,showNavigation:c=true,showCounter:g=true,closeOnBackdropClick:u=true,className:h},w)=>{let b=K__namespace.useMemo(()=>cP(e),[e]),[v,R]=K__namespace.useState(r),[f,x]=K__namespace.useState(1),[S,y]=K__namespace.useState(0),[C,M]=K__namespace.useState(false),[T,N]=K__namespace.useState(false),[P,D]=K__namespace.useState({x:0,y:0}),[k,I]=K__namespace.useState({x:0,y:0}),V=K__namespace.useRef(null),L=b[v];K__namespace.useEffect(()=>{R(r);},[r]),K__namespace.useEffect(()=>{n?.(v);},[v,n]),K__namespace.useEffect(()=>{x(1),y(0),D({x:0,y:0});},[v]);let H=K__namespace.useCallback(()=>{R(G=>G>0?G-1:b.length-1);},[b.length]),B=K__namespace.useCallback(()=>{R(G=>G<b.length-1?G+1:0);},[b.length]),$=()=>{x(G=>Math.min(G+.5,4));},A=()=>{x(G=>{let fe=Math.max(G-.5,.5);return fe===1&&D({x:0,y:0}),fe});},O=()=>{y(G=>(G+90)%360);},te=async()=>{if(L)try{let fe=await(await fetch(L.src)).blob(),ya=URL.createObjectURL(fe),Ge=document.createElement("a");Ge.href=ya,Ge.download=L.alt||`image-${v+1}`,document.body.appendChild(Ge),Ge.click(),document.body.removeChild(Ge),URL.revokeObjectURL(ya);}catch{window.open(L.src,"_blank");}},be=async()=>{if(V.current)if(C)try{await document.exitFullscreen(),M(!1);}catch{}else try{await V.current.requestFullscreen(),M(!0);}catch{}},Ie=G=>{f>1&&(N(true),I({x:G.clientX-P.x,y:G.clientY-P.y}));},E=G=>{T&&f>1&&D({x:G.clientX-k.x,y:G.clientY-k.y});},z=()=>{N(false);},j=K__namespace.useCallback(G=>{switch(G.key){case "ArrowLeft":H();break;case "ArrowRight":B();break;case "Escape":a?.(false);break;case "+":case "=":$();break;case "-":A();break}},[H,B,a]);return K__namespace.useEffect(()=>{if(t)return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[t,j]),K__namespace.useEffect(()=>{let G=()=>{M(!!document.fullscreenElement);};return document.addEventListener("fullscreenchange",G),()=>document.removeEventListener("fullscreenchange",G)},[]),b.length===0?null:jsxRuntime.jsxs(ne__namespace.Root,{open:t,onOpenChange:a,children:[i&&jsxRuntime.jsx(ne__namespace.Trigger,{asChild:true,children:i}),jsxRuntime.jsxs(ne__namespace.Portal,{children:[jsxRuntime.jsx(ne__namespace.Overlay,{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",onClick:u?void 0:G=>G.stopPropagation()}),jsxRuntime.jsxs(ne__namespace.Content,{ref:w,className:o("fixed inset-0 z-50 flex flex-col outline-none",h),onPointerDownOutside:u?void 0:G=>G.preventDefault(),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:[g&&b.length>1&&jsxRuntime.jsxs("span",{className:"text-sm",children:[v+1," / ",b.length]}),L?.title&&jsxRuntime.jsx("span",{className:"ml-4 text-sm font-medium",children:L.title})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:A,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(f*100),"%"]}),jsxRuntime.jsx("button",{onClick:$,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom in",children:jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-5 w-5"})})]}),d&&jsxRuntime.jsx("button",{onClick:O,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Rotate",children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-5 w-5"})}),m&&jsxRuntime.jsx("button",{onClick:te,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Download",children:jsxRuntime.jsx(lucideReact.Download,{className:"h-5 w-5"})}),p&&jsxRuntime.jsx("button",{onClick:be,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:C?"Exit fullscreen":"Fullscreen",children:C?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-5 w-5"})}),jsxRuntime.jsxs(ne__namespace.Close,{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:Ie,onMouseMove:E,onMouseUp:z,onMouseLeave:z,children:[c&&b.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:H,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:B,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:L?.src,alt:L?.alt||"",className:o("max-h-full max-w-full object-contain transition-transform duration-200",T?"cursor-grabbing":f>1?"cursor-grab":""),style:{transform:`translate(${P.x}px, ${P.y}px) scale(${f}) rotate(${S}deg)`},draggable:false})]}),L?.description&&jsxRuntime.jsx("div",{className:"p-4 text-center text-white text-sm",children:L.description}),s&&b.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-2 p-4 overflow-x-auto",children:b.map((G,fe)=>jsxRuntime.jsx("button",{onClick:()=>R(fe),className:o("h-16 w-16 flex-shrink-0 overflow-hidden rounded border-2 transition-all",v===fe?"border-white opacity-100":"border-transparent opacity-50 hover:opacity-75"),children:jsxRuntime.jsx("img",{src:G.src,alt:G.alt||`Thumbnail ${fe+1}`,className:"h-full w-full object-cover"})},fe))})]})]})]})});ll.displayName="ImageViewer";var Rg=({children:e,images:t,index:a=0,className:r})=>{let[n,i]=K__namespace.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>i(true),className:o("cursor-zoom-in",r),children:e}),jsxRuntime.jsx(ll,{images:t,open:n,onOpenChange:i,initialIndex:a})]})};Rg.displayName="ImageViewerTrigger";var Pg=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:{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-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),Cg=K__namespace.forwardRef(({className:e,variant:t,size:a,iconSize:r,...n},i)=>{let l=r??{sm:14,md:16,lg:20}[a??"md"];return jsxRuntime.jsx("button",{ref:i,type:"button",className:o(Pg({variant:t,size:a}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:l,height:l}})})});Cg.displayName="CloseButton";var Tg=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"}}),Mg=K__namespace.forwardRef(({className:e,variant:t,size:a,color:r,radius:n,loading:i,disabled:s,children:l,...d},m)=>jsxRuntime.jsx("button",{ref:m,type:"button",className:o(Tg({variant:t,size:a,color:r,radius:n}),e),disabled:s||i,...d,children:i?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}));Mg.displayName="ActionIcon";var Lg=({children:e,container:t,disabled:a=false})=>{let[r,n]=K__namespace.useState(false);if(K__namespace.useEffect(()=>{n(true);},[]),a||!r)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let i=null;return typeof t=="string"?i=document.querySelector(t):t instanceof Element?i=t:i=document.body,i?reactDom.createPortal(e,i):jsxRuntime.jsx(jsxRuntime.Fragment,{children:e})};Lg.displayName="Portal";var Vg=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}}),Ig=K__namespace.forwardRef(({className:e,color:t,size:a,position:r,ping:n,content:i,show:s=true,offset:l,style:d,...m},p)=>{if(!s)return null;let c=i!=null;return jsxRuntime.jsxs("span",{ref:p,className:o(Vg({color:t,size:c?void 0:a,position:r,ping:n}),c&&"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:{...d,...l!==void 0&&{transform:`translate(${r?.includes("right")?l:-l}px, ${r?.includes("top")?-l:l}px)`}},...m,children:[n&&jsxRuntime.jsx("span",{className:o("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")}),i]})});Ig.displayName="Indicator";var Eg=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("relative inline-flex",e),...a,children:t}));Eg.displayName="IndicatorWrapper";var Ag=classVarianceAuthority.cva("relative overflow-auto",{variants:{orientation:{vertical:"",horizontal:"",both:""},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"vertical",size:"md"}}),zg=K__namespace.forwardRef(({className:e,orientation:t,size:a,hideScrollbar:r=false,shadowColor:n="rgba(0, 0, 0, 0.1)",children:i,...s},l)=>{let d=K__namespace.useRef(null),[m,p]=K__namespace.useState({top:false,bottom:false,left:false,right:false});K__namespace.useImperativeHandle(l,()=>d.current);let c=K__namespace.useCallback(()=>{let v=d.current;if(!v)return;let{scrollTop:R,scrollLeft:f,scrollHeight:x,scrollWidth:S,clientHeight:y,clientWidth:C}=v;p({top:R>0,bottom:R<x-y-1,left:f>0,right:f<S-C-1});},[]);K__namespace.useEffect(()=>{let v=d.current;if(v)return c(),v.addEventListener("scroll",c),window.addEventListener("resize",c),()=>{v.removeEventListener("scroll",c),window.removeEventListener("resize",c);}},[c]);let u={sm:"20px",md:"40px",lg:"60px"}[a??"md"],h=t==="vertical"||t==="both",w=t==="horizontal"||t==="both",b={maskImage:[h&&m.top&&`linear-gradient(to bottom, transparent, black ${u})`,h&&m.bottom&&`linear-gradient(to top, transparent, black ${u})`,w&&m.left&&`linear-gradient(to right, transparent, black ${u})`,w&&m.right&&`linear-gradient(to left, transparent, black ${u})`].filter(Boolean).join(", ")||void 0,maskComposite:"intersect",WebkitMaskComposite:"source-in"};return jsxRuntime.jsx("div",{ref:d,className:o(Ag({orientation:t,size:a}),r&&"scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",e),style:b,...s,children:i})});zg.displayName="ScrollShadow";var Og=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Bg__namespace.Root,{ref:a,className:o(e),...t}));Og.displayName="VisuallyHidden";var Gg=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"}}),wP={cmd:"\u2318",command:"\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"},NP=e=>{let t=e.toLowerCase();return wP[t]||e.toUpperCase()},Wg=K__namespace.forwardRef(({className:e,variant:t,size:a,keys:r,children:n,...i},s)=>{let l=()=>r?(Array.isArray(r)?r:[r]).map((m,p)=>jsxRuntime.jsxs(K__namespace.Fragment,{children:[p>0&&jsxRuntime.jsx("span",{className:"mx-0.5 text-muted-foreground",children:"+"}),jsxRuntime.jsx("span",{children:NP(m)})]},p)):n;return jsxRuntime.jsx("kbd",{ref:s,className:o(Gg({variant:t,size:a}),e),...i,children:l()})});Wg.displayName="Kbd";var _g=K__namespace.forwardRef(({className:e,size:t,axis:a="both",style:r,...n},i)=>{let s=typeof t=="number"?`${t}px`:t,l={...r,...t?{width:a==="vertical"?void 0:s,height:a==="horizontal"?void 0:s,minWidth:a==="vertical"?void 0:s,minHeight:a==="horizontal"?void 0:s,flexShrink:0}:{flex:"1 1 auto"}};return jsxRuntime.jsx("div",{ref:i,"aria-hidden":"true",className:o(e),style:l,...n})});_g.displayName="Spacer";var Kg=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"}}),Ug=K__namespace.forwardRef(({className:e,variant:t,size:a,value:r,successDuration:n=2e3,onCopySuccess:i,onCopyError:s,copyIcon:l,successIcon:d,...m},p)=>{let[c,g]=K__namespace.useState(false),u={sm:14,md:16,lg:20}[a??"md"],h=async()=>{try{await navigator.clipboard.writeText(r),g(!0),i?.(),setTimeout(()=>{g(!1);},n);}catch(w){s?.(w);}};return jsxRuntime.jsx("button",{ref:p,type:"button",className:o(Kg({variant:t,size:a}),e),onClick:h,"aria-label":c?"Copied":"Copy to clipboard",...m,children:c?d??jsxRuntime.jsx(lucideReact.Check,{className:"text-success",style:{width:u,height:u}}):l??jsxRuntime.jsx(lucideReact.Copy,{style:{width:u,height:u}})})});Ug.displayName="CopyButton";var jg=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"}}),VP=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],IP=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function EP(e,t,a){let r=new Date(e,t,1),n=new Date(e,t+1,0),i=[],s=r.getDay()-a;s<0&&(s+=7);for(let d=s-1;d>=0;d--)i.push(new Date(e,t,-d));for(let d=1;d<=n.getDate();d++)i.push(new Date(e,t,d));let l=42-i.length;for(let d=1;d<=l;d++)i.push(new Date(e,t+1,d));return i}function HP(e,t){let a=[],n=e.getDay()-t;n<0&&(n+=7);let i=new Date(e);i.setDate(e.getDate()-n);for(let s=0;s<7;s++){let l=new Date(i);l.setDate(i.getDate()+s),a.push(l);}return a}function ci(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function di(e){return ci(e,new Date)}function Yg(e,t){return e.filter(a=>{let r=new Date(a.start),n=new Date(a.end);return ci(r,t)||ci(n,t)||r<t&&n>t})}var Xg=K__namespace.forwardRef(({className:e,variant:t,size:a,events:r=[],view:n="month",onViewChange:i,date:s,onDateChange:l,onEventClick:d,onSlotClick:m,weekStartsOn:p=0,locale:c="en-US",...g},u)=>{let[h,w]=K__namespace.useState(new Date),b=s??h,v=N=>{l?l(N):w(N);},R=p===1?IP:VP,f=()=>{let N=new Date(b);n==="month"?N.setMonth(N.getMonth()-1):n==="week"?N.setDate(N.getDate()-7):N.setDate(N.getDate()-1),v(N);},x=()=>{let N=new Date(b);n==="month"?N.setMonth(N.getMonth()+1):n==="week"?N.setDate(N.getDate()+7):N.setDate(N.getDate()+1),v(N);},S=()=>{v(new Date);},y=()=>n==="day"?b.toLocaleDateString(c,{weekday:"long",year:"numeric",month:"long",day:"numeric"}):b.toLocaleDateString(c,{year:"numeric",month:"long"}),C=()=>{let N=EP(b.getFullYear(),b.getMonth(),p);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col",children:[jsxRuntime.jsx("div",{className:"grid grid-cols-7 border-b",children:R.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,D)=>{let k=Yg(r,P),I=P.getMonth()===b.getMonth();return jsxRuntime.jsxs("div",{className:o("min-h-[80px] border-b border-r p-1 cursor-pointer hover:bg-accent/50 transition-colors",!I&&"bg-muted/30"),onClick:()=>m?.(P),children:[jsxRuntime.jsx("div",{className:o("flex items-center justify-center w-7 h-7 rounded-full text-sm mb-1",di(P)&&"bg-primary text-primary-foreground",!I&&"text-muted-foreground"),children:P.getDate()}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[k.slice(0,3).map(V=>jsxRuntime.jsx("div",{className:"text-xs px-1 py-0.5 rounded truncate cursor-pointer hover:opacity-80",style:{backgroundColor:V.color||"hsl(var(--primary))",color:"white"},onClick:L=>{L.stopPropagation(),d?.(V);},children:V.title},V.id)),k.length>3&&jsxRuntime.jsxs("div",{className:"text-xs text-muted-foreground px-1",children:["+",k.length-3," more"]})]})]},D)})})]})},M=()=>{let N=HP(b,p),P=Array.from({length:24},(D,k)=>k);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((D,k)=>jsxRuntime.jsxs("div",{className:o("p-2 text-center border-l",di(D)&&"bg-primary/10"),children:[jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground",children:R[k]}),jsxRuntime.jsx("div",{className:o("text-lg font-semibold",di(D)&&"text-primary"),children:D.getDate()})]},k))]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_repeat(7,1fr)]",children:P.map(D=>jsxRuntime.jsxs(K__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[D.toString().padStart(2,"0"),":00"]}),N.map((k,I)=>{let V=new Date(k);V.setHours(D,0,0,0);let L=r.filter(H=>{let B=new Date(H.start);return ci(B,k)&&B.getHours()===D});return jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(V),children:L.map(H=>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:H.color||"hsl(var(--primary))",color:"white"},onClick:B=>{B.stopPropagation(),d?.(H);},children:H.title},H.id))},I)})]},D))})})]})},T=()=>{let N=Array.from({length:24},(D,k)=>k),P=Yg(r,b);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:o("inline-flex items-center justify-center w-12 h-12 rounded-full text-2xl font-semibold",di(b)&&"bg-primary text-primary-foreground"),children:b.getDate()})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_1fr]",children:N.map(D=>{let k=new Date(b);k.setHours(D,0,0,0);let I=P.filter(V=>new Date(V.start).getHours()===D);return jsxRuntime.jsxs(K__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[D.toString().padStart(2,"0"),":00"]}),jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(k),children:I.map(V=>jsxRuntime.jsx("div",{className:"absolute inset-x-1 top-0.5 text-xs px-2 py-1 rounded truncate cursor-pointer",style:{backgroundColor:V.color||"hsl(var(--primary))",color:"white"},onClick:L=>{L.stopPropagation(),d?.(V);},children:V.title},V.id))})]},D)})})})]})};return jsxRuntime.jsxs("div",{ref:u,className:o(jg({variant:t,size:a,className:e})),...g,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(W,{variant:"bordered",size:"sm",onClick:S,children:"Today"}),jsxRuntime.jsx(W,{variant:"ghost",size:"icon",onClick:f,children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(W,{variant:"ghost",size:"icon",onClick:x,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),jsxRuntime.jsx("h2",{className:"text-lg font-semibold ml-2",children:y()})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-1 border rounded-lg p-1",children:["month","week","day"].map(N=>jsxRuntime.jsx(W,{variant:n===N?"solid":"ghost",size:"sm",onClick:()=>i?.(N),children:N.charAt(0).toUpperCase()+N.slice(1)},N))})]}),n==="month"&&C(),n==="week"&&M(),n==="day"&&T()]})});Xg.displayName="FullCalendar";var Yo=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"h-48",md:"h-64",lg:"h-96"}},defaultVariants:{size:"md"}}),jo=["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%))"],qg=K__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=jo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",curveType:m="monotone",...p},c)=>jsxRuntime.jsx("div",{ref:c,className:o(Yo({size:t,className:e})),...p,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.LineChart,{data:a,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:d,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,{}),r.map((g,u)=>jsxRuntime.jsx(recharts.Line,{type:m,dataKey:g,stroke:n[u%n.length],strokeWidth:2,dot:{fill:n[u%n.length],strokeWidth:0},activeDot:{r:6}},g))]})})}));qg.displayName="LineChart";var Zg=K__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=jo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,layout:p="horizontal",...c},g)=>jsxRuntime.jsx("div",{ref:g,className:o(Yo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.BarChart,{data:a,layout:p,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:p==="horizontal"?d:void 0,type:p==="horizontal"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{dataKey:p==="vertical"?d:void 0,type:p==="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,{}),r.map((u,h)=>jsxRuntime.jsx(recharts.Bar,{dataKey:u,fill:n[h%n.length],stackId:m?"stack":void 0,radius:[4,4,0,0]},u))]})})}));Zg.displayName="BarChart";var Qg=K__namespace.forwardRef(({className:e,size:t,data:a,dataKey:r="value",nameKey:n="name",colors:i=jo,innerRadius:s=0,outerRadius:l=80,showLegend:d=true,showTooltip:m=true,showLabels:p=false,...c},g)=>jsxRuntime.jsx("div",{ref:g,className:o(Yo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.PieChart,{children:[m&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"}}),d&&jsxRuntime.jsx(recharts.Legend,{}),jsxRuntime.jsx(recharts.Pie,{data:a,dataKey:r,nameKey:n,cx:"50%",cy:"50%",innerRadius:s,outerRadius:l,label:p,labelLine:p,children:a.map((u,h)=>jsxRuntime.jsx(recharts.Cell,{fill:i[h%i.length]},`cell-${h}`))})]})})}));Qg.displayName="PieChart";var Jg=K__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=jo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,curveType:p="monotone",...c},g)=>jsxRuntime.jsx("div",{ref:g,className:o(Yo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.AreaChart,{data:a,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:d,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,{}),r.map((u,h)=>jsxRuntime.jsx(recharts.Area,{type:p,dataKey:u,stroke:n[h%n.length],fill:n[h%n.length],fillOpacity:.3,stackId:m?"stack":void 0},u))]})})}));Jg.displayName="AreaChart";var ab=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"}}),rb=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"}}),vl=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 oC({card:e,columnId:t,variant:a,renderCard:r,onCardClick:n}){let{attributes:i,listeners:s,setNodeRef:l,transform:d,transition:m,isDragging:p}=sortable.useSortable({id:e.id,data:{columnId:t}}),c={transform:utilities.CSS.Transform.toString(d),transition:m};return jsxRuntime.jsx("div",{ref:l,style:c,className:o(vl({variant:a,isDragging:p})),onClick:()=>n?.(e,t),...i,...s,children:r?r(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 nC({column:e,variant:t,renderCard:a,onCardClick:r,onAddCard:n,showAddCard:i,columnHeight:s}){return jsxRuntime.jsxs("div",{className:o(rb({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})]}),i&&jsxRuntime.jsx(W,{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(ht,{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(oC,{card:l,columnId:e.id,variant:t,renderCard:a,onCardClick:r},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 ob=K__namespace.forwardRef(({className:e,variant:t,columns:a,onCardMove:r,onCardClick:n,onAddCard:i,renderCard:s,showAddCard:l=true,columnHeight:d=500,...m},p)=>{let[c,g]=K__namespace.useState(null),[u,h]=K__namespace.useState(null),w=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:8}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),b=x=>a.find(S=>S.cards.some(y=>y.id===x));return jsxRuntime.jsxs(core.DndContext,{sensors:w,collisionDetection:core.closestCorners,onDragStart:x=>{let{active:S}=x,y=b(S.id);if(y){let C=y.cards.find(M=>M.id===S.id);C&&(g(C),h(y.id));}},onDragOver:x=>{let{active:S,over:y}=x;if(!y)return;let C=S.id,M=y.id,T=b(C),N=b(M)||a.find(k=>k.id===M);if(!T||!N||T.id===N.id)return;let P=N.cards.findIndex(k=>k.id===M),D=P===-1?N.cards.length:P;r?.(C,T.id,N.id,D);},onDragEnd:x=>{let{active:S,over:y}=x;if(y&&S.id!==y.id){let C=b(S.id),M=b(y.id)||a.find(T=>T.id===y.id);if(C&&M){let T=M.cards.findIndex(P=>P.id===y.id),N=T===-1?M.cards.length:T;r?.(S.id,C.id,M.id,N);}}g(null),h(null);},children:[jsxRuntime.jsx("div",{ref:p,className:o(ab({variant:t,className:e})),...m,children:a.map(x=>jsxRuntime.jsx(nC,{column:x,variant:t,renderCard:s,onCardClick:n,onAddCard:i,showAddCard:l,columnHeight:d},x.id))}),jsxRuntime.jsx(core.DragOverlay,{children:c&&u&&jsxRuntime.jsx("div",{className:o(vl({variant:t,isDragging:true})),children:s?s(c,u):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:c.title}),c.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:c.description})]})]})})})]})});ob.displayName="KanbanBoard";var nb=classVarianceAuthority.cva("relative",{variants:{variant:{default:"",bordered:"border rounded-lg p-4",cards:"rounded-lg"}},defaultVariants:{variant:"default"}}),ib=K__namespace.createContext(null);function hl(){let e=K__namespace.useContext(ib);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var sb=K__namespace.forwardRef(({className:e,variant:t,children:a,opts:r,plugins:n,orientation:i="horizontal",showArrows:s=true,showDots:l=true,setApi:d,...m},p)=>{let[c,g]=iC__default.default({...r,axis:i==="horizontal"?"x":"y"},n),[u,h]=K__namespace.useState(false),[w,b]=K__namespace.useState(false),[v,R]=K__namespace.useState(0),[f,x]=K__namespace.useState([]),S=K__namespace.useCallback(N=>{N&&(R(N.selectedScrollSnap()),h(N.canScrollPrev()),b(N.canScrollNext()));},[]),y=K__namespace.useCallback(()=>{g?.scrollPrev();},[g]),C=K__namespace.useCallback(()=>{g?.scrollNext();},[g]),M=K__namespace.useCallback(N=>{g?.scrollTo(N);},[g]),T=K__namespace.useCallback(N=>{N.key==="ArrowLeft"?(N.preventDefault(),y()):N.key==="ArrowRight"&&(N.preventDefault(),C());},[y,C]);return K__namespace.useEffect(()=>{!g||!d||d(g);},[g,d]),K__namespace.useEffect(()=>{if(g)return x(g.scrollSnapList()),S(g),g.on("reInit",S),g.on("select",S),()=>{g?.off("select",S);}},[g,S]),jsxRuntime.jsx(ib.Provider,{value:{carouselRef:c,api:g,scrollPrev:y,scrollNext:C,canScrollPrev:u,canScrollNext:w,selectedIndex:v,scrollSnaps:f,scrollTo:M},children:jsxRuntime.jsxs("div",{ref:p,className:o(nb({variant:t,className:e})),onKeyDownCapture:T,role:"region","aria-roledescription":"carousel",...m,children:[jsxRuntime.jsx("div",{ref:c,className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:o("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col"),children:a})}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(xl,{}),jsxRuntime.jsx(yl,{})]}),l&&f.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:f.map((N,P)=>jsxRuntime.jsx("button",{className:o("w-2 h-2 rounded-full transition-all",P===v?"bg-primary w-4":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),onClick:()=>M(P),"aria-label":`Go to slide ${P+1}`},P))})]})})});sb.displayName="Carousel";var lb=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex",e),...t}));lb.displayName="CarouselContent";var db=K__namespace.forwardRef(({className:e,basis:t="basis-full",...a},r)=>jsxRuntime.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:o("min-w-0 shrink-0 grow-0 pl-4",t,e),...a}));db.displayName="CarouselItem";var xl=K__namespace.forwardRef(({className:e,variant:t="bordered",size:a="icon",...r},n)=>{let{scrollPrev:i,canScrollPrev:s}=hl();return jsxRuntime.jsxs(W,{ref:n,variant:t,size:a,className:o("absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...r,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous slide"})]})});xl.displayName="CarouselPrevious";var yl=K__namespace.forwardRef(({className:e,variant:t="bordered",size:a="icon",...r},n)=>{let{scrollNext:i,canScrollNext:s}=hl();return jsxRuntime.jsxs(W,{ref:n,variant:t,size:a,className:o("absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...r,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next slide"})]})});yl.displayName="CarouselNext";var cb=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"}}),bi={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"}},wl={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}"]},mb=K__namespace.forwardRef(({className:e,size:t,onEmojiSelect:a,recentEmojis:r=[],defaultCategory:n="smileys",showSearch:i=true,showCategories:s=true,...l},d)=>{let[m,p]=K__namespace.useState(r.length>0?"recent":n),[c,g]=K__namespace.useState(""),h=c?Object.values(wl).flat().filter(b=>b.toLowerCase().includes(c.toLowerCase())):m==="recent"?r:wl[m]||[],w=b=>{a?.(b);};return jsxRuntime.jsxs("div",{ref:d,className:o(cb({size:t,className:e})),...l,children:[i&&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(vn,{placeholder:"Search emojis...",value:c,onChange:b=>g(b.target.value),className:"pl-8 h-8"})]})}),s&&!c&&jsxRuntime.jsx("div",{className:"flex border-b px-1",children:Object.entries(bi).map(([b,{icon:v}])=>b==="recent"&&r.length===0?null:jsxRuntime.jsx("button",{className:o("flex-1 p-2 text-lg hover:bg-accent rounded transition-colors",m===b&&"bg-accent"),onClick:()=>p(b),title:bi[b].name,children:v},b))}),!c&&jsxRuntime.jsx("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground",children:bi[m].name}),jsxRuntime.jsx(ht,{className:"flex-1",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-8 gap-1 p-2",children:[h.map((b,v)=>jsxRuntime.jsx("button",{className:"w-8 h-8 flex items-center justify-center text-xl hover:bg-accent rounded transition-colors",onClick:()=>w(b),children:b},`${b}-${v}`)),h.length===0&&jsxRuntime.jsx("div",{className:"col-span-8 py-8 text-center text-muted-foreground text-sm",children:"No emojis found"})]})})]})});mb.displayName="EmojiPicker";var ub=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"}}),FC=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"}}),BC=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"}}),Te=({icon:e,title:t,isActive:a,onClick:r,disabled:n})=>jsxRuntime.jsxs(er,{children:[jsxRuntime.jsx(tr,{asChild:true,children:jsxRuntime.jsx(W,{type:"button",variant:a?"solid":"ghost",size:"icon",className:"h-7 w-7",onClick:r,disabled:n,children:e})}),jsxRuntime.jsx(Na,{side:"top",className:"text-xs",children:t})]}),pb=K__namespace.forwardRef(({className:e,variant:t,size:a,value:r="",onChange:n,placeholder:i="Start writing...",readOnly:s=false,showToolbar:l=true,minHeight:d,maxHeight:m,onEditorReady:p,...c},g)=>{let u=react.useEditor({extensions:[gC__default.default.configure({heading:{levels:[1,2,3]}}),bC__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-primary underline"}}),vC__default.default,hC__default.default.configure({types:["heading","paragraph"]}),xC__default.default.configure({placeholder:i})],content:r,editable:!s,onUpdate:({editor:w})=>{n?.(w.getHTML());},onCreate:({editor:w})=>{p?.(w);}});K__namespace.useEffect(()=>{u&&r!==u.getHTML()&&u.commands.setContent(r);},[r,u]),K__namespace.useEffect(()=>{u&&u.setEditable(!s);},[s,u]);let h=()=>{if(!u)return;let w=u.getAttributes("link").href,b=window.prompt("URL",w);if(b!==null){if(b===""){u.chain().focus().extendMarkRange("link").unsetLink().run();return}u.chain().focus().extendMarkRange("link").setLink({href:b}).run();}};return u?jsxRuntime.jsx(Ja,{children:jsxRuntime.jsxs("div",{ref:g,className:o(ub({variant:t,size:a,className:e})),...c,children:[l&&!s&&jsxRuntime.jsxs("div",{className:o(FC({size:a})),children:[jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.Undo,{className:"h-4 w-4"}),title:"Undo",onClick:()=>u.chain().focus().undo().run(),disabled:!u.can().undo()}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.Redo,{className:"h-4 w-4"}),title:"Redo",onClick:()=>u.chain().focus().redo().run(),disabled:!u.can().redo()}),jsxRuntime.jsx(wa,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.Heading1,{className:"h-4 w-4"}),title:"Heading 1",isActive:u.isActive("heading",{level:1}),onClick:()=>u.chain().focus().toggleHeading({level:1}).run()}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.Heading2,{className:"h-4 w-4"}),title:"Heading 2",isActive:u.isActive("heading",{level:2}),onClick:()=>u.chain().focus().toggleHeading({level:2}).run()}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.Heading3,{className:"h-4 w-4"}),title:"Heading 3",isActive:u.isActive("heading",{level:3}),onClick:()=>u.chain().focus().toggleHeading({level:3}).run()}),jsxRuntime.jsx(wa,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.Bold,{className:"h-4 w-4"}),title:"Bold (Ctrl+B)",isActive:u.isActive("bold"),onClick:()=>u.chain().focus().toggleBold().run()}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.Italic,{className:"h-4 w-4"}),title:"Italic (Ctrl+I)",isActive:u.isActive("italic"),onClick:()=>u.chain().focus().toggleItalic().run()}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.Underline,{className:"h-4 w-4"}),title:"Underline (Ctrl+U)",isActive:u.isActive("underline"),onClick:()=>u.chain().focus().toggleUnderline().run()}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.Strikethrough,{className:"h-4 w-4"}),title:"Strikethrough",isActive:u.isActive("strike"),onClick:()=>u.chain().focus().toggleStrike().run()}),jsxRuntime.jsx(wa,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.List,{className:"h-4 w-4"}),title:"Bullet List",isActive:u.isActive("bulletList"),onClick:()=>u.chain().focus().toggleBulletList().run()}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.ListOrdered,{className:"h-4 w-4"}),title:"Numbered List",isActive:u.isActive("orderedList"),onClick:()=>u.chain().focus().toggleOrderedList().run()}),jsxRuntime.jsx(wa,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.AlignLeft,{className:"h-4 w-4"}),title:"Align Left",isActive:u.isActive({textAlign:"left"}),onClick:()=>u.chain().focus().setTextAlign("left").run()}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.AlignCenter,{className:"h-4 w-4"}),title:"Align Center",isActive:u.isActive({textAlign:"center"}),onClick:()=>u.chain().focus().setTextAlign("center").run()}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.AlignRight,{className:"h-4 w-4"}),title:"Align Right",isActive:u.isActive({textAlign:"right"}),onClick:()=>u.chain().focus().setTextAlign("right").run()}),jsxRuntime.jsx(wa,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.Quote,{className:"h-4 w-4"}),title:"Blockquote",isActive:u.isActive("blockquote"),onClick:()=>u.chain().focus().toggleBlockquote().run()}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.Code,{className:"h-4 w-4"}),title:"Code Block",isActive:u.isActive("codeBlock"),onClick:()=>u.chain().focus().toggleCodeBlock().run()}),jsxRuntime.jsx(wa,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.Link,{className:"h-4 w-4"}),title:"Insert Link",isActive:u.isActive("link"),onClick:h}),jsxRuntime.jsx(Te,{icon:jsxRuntime.jsx(lucideReact.Unlink,{className:"h-4 w-4"}),title:"Remove Link",onClick:()=>u.chain().focus().unsetLink().run(),disabled:!u.isActive("link")})]}),jsxRuntime.jsx(react.EditorContent,{editor:u,className:o(BC({size:a})),style:{minHeight:d,maxHeight:m}})]})}):null});pb.displayName="RichTextEditor";var gb=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 YC(e,t,a){return OC.centerCrop(OC.makeAspectCrop({unit:"%",width:90},a,e,t),e,t)}async function fb(e,t,a=0,r=1){let n=document.createElement("canvas"),i=n.getContext("2d");if(!i)return null;let s=e.naturalWidth/e.width,l=e.naturalHeight/e.height,d=window.devicePixelRatio||1;n.width=Math.floor(t.width*s*d),n.height=Math.floor(t.height*l*d),i.scale(d,d),i.imageSmoothingQuality="high";let m=t.x*s,p=t.y*l,c=a*Math.PI/180,g=e.naturalWidth/2,u=e.naturalHeight/2;return i.save(),i.translate(-m,-p),i.translate(g,u),i.rotate(c),i.scale(r,r),i.translate(-g,-u),i.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),i.restore(),new Promise(h=>{n.toBlob(w=>{h(w);},"image/png");})}var bb=K__namespace.forwardRef(({className:e,variant:t,src:a,aspectRatio:r,onCropChange:n,onCropComplete:i,showZoom:s=true,showRotation:l=true,minZoom:d=1,maxZoom:m=3,circularCrop:p=false,initialCrop:c,...g},u)=>{let h=K__namespace.useRef(null),[w,b]=K__namespace.useState(),[v,R]=K__namespace.useState(),[f,x]=K__namespace.useState(1),[S,y]=K__namespace.useState(0),C=P=>{let{width:D,height:k}=P.currentTarget;if(r){let I=YC(D,k,r);b(I);}else b(c||{unit:"%",x:10,y:10,width:80,height:80});},M=P=>{b(P),n?.(P);},T=async P=>{if(R(P),i&&h.current&&P.width&&P.height){let D=await fb(h.current,P,S,f);i(D);}},N=()=>{y(P=>(P+90)%360);};return K__namespace.useEffect(()=>{v&&h.current&&i&&fb(h.current,v,S,f).then(P=>{i(P);});},[f,S,v,i]),jsxRuntime.jsxs("div",{ref:u,className:o(gb({variant:t,className:e})),...g,children:[jsxRuntime.jsx("div",{className:"flex-1 flex items-center justify-center p-4 bg-muted/30 min-h-[300px]",children:jsxRuntime.jsx(OC__default.default,{crop:w,onChange:M,onComplete:T,aspect:r,circularCrop:p,className:"max-h-[400px]",children:jsxRuntime.jsx("img",{ref:h,src:a,alt:"Crop preview",onLoad:C,style:{transform:`scale(${f}) rotate(${S}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(Mn,{value:[f],onValueChange:([P])=>x(P),min:d,max:m,step:.1,className:"flex-1"}),jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-4 w-4 text-muted-foreground"})]}),l&&jsxRuntime.jsx(W,{variant:"bordered",size:"icon",onClick:N,children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-4 w-4"})})]})]})});bb.displayName="ImageCropper";var Sl=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"}}),qC={sm:96,md:128,lg:192},hb=K__namespace.forwardRef(({className:e,variant:t,size:a,value:r,qrSize:n,fgColor:i="currentColor",bgColor:s="transparent",level:l="M",includeMargin:d=false,title:m,logo:p,logoSize:c=40,logoPadding:g=4,logoBackgroundColor:u="white",...h},w)=>{let b=n??qC[a??"md"];return r?jsxRuntime.jsx("div",{ref:w,className:o(Sl({variant:t,size:a,className:e})),...h,children:jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx(jC__default.default,{value:r,size:b,fgColor:i,bgColor:s,level:l,title:m,style:{padding:d?16:0}}),p&&jsxRuntime.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded",style:{padding:g,backgroundColor:u},children:jsxRuntime.jsx("img",{src:p,alt:"Logo",style:{width:c,height:c,objectFit:"contain"}})})]})}):jsxRuntime.jsx("div",{ref:w,className:o(Sl({variant:t,size:a,className:e})),...h,children:jsxRuntime.jsx("div",{className:"flex items-center justify-center bg-muted text-muted-foreground text-xs rounded",style:{width:b,height:b},children:"No data"})})});hb.displayName="QRCode";var xb=({children:e,defaultTheme:t="system",storageKey:a="reever-ui-theme",enableSystem:r=true,disableTransitionOnChange:n=false,attribute:i="class",forcedTheme:s,themes:l=["light","dark"]})=>jsxRuntime.jsx(nextThemes.ThemeProvider,{defaultTheme:t,storageKey:a,enableSystem:r,disableTransitionOnChange:n,attribute:i,forcedTheme:s,themes:l,children:e});xb.displayName="ThemeProvider";var rS=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"",ghost:""},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"ghost",size:"md"}}),yb=K__namespace.forwardRef(({className:e,variant:t="ghost",size:a="md",mode:r="dropdown"},n)=>{let{theme:i,setTheme:s,resolvedTheme:l}=nextThemes.useTheme(),[d,m]=K__namespace.useState(false);K__namespace.useEffect(()=>{m(true);},[]);let p=()=>{let c=["light","dark","system"],u=(c.indexOf(i||"system")+1)%c.length;s(c[u]);};return d?r==="cycle"?jsxRuntime.jsxs(W,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("h-9 w-9",e),onClick:p,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(ar,{children:[jsxRuntime.jsx(rr,{asChild:true,children:jsxRuntime.jsxs(W,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("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(Ca,{align:"end",children:[jsxRuntime.jsxs(Mt,{onClick:()=>s("light"),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}),jsxRuntime.jsxs(Mt,{onClick:()=>s("dark"),children:[jsxRuntime.jsx(lucideReact.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),jsxRuntime.jsxs(Mt,{onClick:()=>s("system"),children:[jsxRuntime.jsx(lucideReact.Monitor,{className:"mr-2 h-4 w-4"}),"System"]})]})]}):jsxRuntime.jsxs(W,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("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"})]})});yb.displayName="ThemeToggle";var wb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),Nb=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}}),Pb=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"}}),Cb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:p,startContent:c,endContent:g,id:u,...h},w)=>{let b=K__namespace.useId(),v=u||b,R=`${v}-description`,f=`${v}-error`,x=i&&r;return jsxRuntime.jsxs("div",{className:o(wb({size:s}),e),children:[t&&jsxRuntime.jsxs(rs__namespace.Root,{htmlFor:v,className:o(Pb({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:[c&&jsxRuntime.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:c}),jsxRuntime.jsx("input",{ref:w,id:v,"aria-invalid":i,"aria-describedby":x?f:a?R:void 0,"aria-required":n,className:o(Nb({size:s,isInvalid:i}),c&&"pl-10",g&&"pr-10",d),...h}),g&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:g})]}),a&&!x&&jsxRuntime.jsx("p",{id:R,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),x&&jsxRuntime.jsx("p",{id:f,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",p),children:r})]})});Cb.displayName="TextField";var kb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),iS=classVarianceAuthority.cva("flex w-full 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:""}},defaultVariants:{size:"md",isInvalid:false}}),Sb=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"}}),Tb=classVarianceAuthority.cva("",{variants:{size:{sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),sS=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"}}),Db=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:p,min:c,max:g,step:u=1,value:h,defaultValue:w,onChange:b,showButtons:v=true,formatOptions:R,disabled:f,id:x,...S},y)=>{let C=K__namespace.useId(),M=x||C,T=`${M}-description`,N=`${M}-error`,[P,D]=K__namespace.useState(w),[k,I]=K__namespace.useState(false),V=h!==void 0?h:P,L=i&&r,H=K__namespace.useCallback(E=>{E!==void 0&&(c!==void 0&&E<c&&(E=c),g!==void 0&&E>g&&(E=g)),h===void 0&&D(E),b?.(E);},[h,c,g,b]),B=()=>{let E=(V??0)+u;H(E);},$=()=>{let E=(V??0)-u;H(E);},A=E=>{let z=E.target.value;if(z==="")H(void 0);else {let j=parseFloat(z);isNaN(j)||H(j);}},O=E=>{E.key==="ArrowUp"?(E.preventDefault(),B()):E.key==="ArrowDown"&&(E.preventDefault(),$());},te=K__namespace.useMemo(()=>V===void 0?"":R?new Intl.NumberFormat(void 0,R).format(V):V.toString(),[V,R]),be=c!==void 0&&V!==void 0&&V<=c,Ie=g!==void 0&&V!==void 0&&V>=g;return jsxRuntime.jsxs("div",{className:o(kb({size:s}),e),children:[t&&jsxRuntime.jsxs(rs__namespace.Root,{htmlFor:M,className:o(sS({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:$,disabled:f||be,className:o(Sb({size:s}),"left-1"),tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:o(Tb({size:s}))})}),jsxRuntime.jsx("input",{ref:y,id:M,type:"text",inputMode:"decimal",value:te,onChange:A,onKeyDown:O,onFocus:()=>I(true),onBlur:()=>I(false),"aria-invalid":i,"aria-describedby":L?N:a?T:void 0,"aria-required":n,"aria-valuemin":c,"aria-valuemax":g,"aria-valuenow":V,disabled:f,className:o(iS({size:s,isInvalid:i}),!v&&"px-3",d),style:{borderColor:k?"var(--color-foreground)":void 0},...S}),v&&jsxRuntime.jsx("button",{type:"button",onClick:B,disabled:f||Ie,className:o(Sb({size:s}),"right-1"),tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:o(Tb({size:s}))})})]}),a&&!L&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),L&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",p),children:r})]})});Db.displayName="NumberField";var Ib=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),cS=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}}),Lb=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"}}),mS=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"}}),uS=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"}}),Eb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:p,value:c,defaultValue:g="",onChange:u,onClear:h,onSearch:w,showClearButton:b=true,showSearchIcon:v=true,disabled:R,placeholder:f="Search...",id:x,...S},y)=>{let C=K__namespace.useId(),M=x||C,T=`${M}-description`,N=`${M}-error`,[P,D]=K__namespace.useState(g),k=c!==void 0?c:P,I=i&&r,V=k.length>0,L=$=>{let A=$.target.value;c===void 0&&D(A),u?.(A);},H=()=>{c===void 0&&D(""),u?.(""),h?.();},B=$=>{$.key==="Enter"?($.preventDefault(),w?.(k)):$.key==="Escape"&&V&&($.preventDefault(),H());};return jsxRuntime.jsxs("div",{className:o(Ib({size:s}),e),children:[t&&jsxRuntime.jsxs(rs__namespace.Root,{htmlFor:M,className:o(mS({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:o(Lb({size:s}),"absolute left-3 top-1/2 -translate-y-1/2")}),jsxRuntime.jsx("input",{ref:y,id:M,type:"search",value:k,onChange:L,onKeyDown:B,placeholder:f,"aria-invalid":i,"aria-describedby":I?N:a?T:void 0,"aria-required":n,disabled:R,className:o(cS({size:s,isInvalid:i}),!v&&"pl-3",!b&&"pr-3",d),...S}),b&&V&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:H,className:o(uS({size:s})),tabIndex:-1,"aria-label":"Clear search",children:jsxRuntime.jsx(lucideReact.X,{className:o(Lb({size:s}))})})]}),a&&!I&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),I&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",p),children:r})]})});Eb.displayName="SearchField";var Ab=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),fS=classVarianceAuthority.cva("flex w-full rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 pl-8 pr-3 py-1.5 text-xs",md:"h-10 pl-10 pr-3 py-2 text-sm",lg:"h-12 pl-12 pr-4 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),gS=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"}}),bS=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"}}),Vl=(e,t="yyyy-MM-dd")=>{if(!e)return "";let a=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(a)).replace("MM",r).replace("dd",n)},vS=e=>{if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},zb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:p,value:c,defaultValue:g,onChange:u,minDate:h,maxDate:w,dateFormat:b="yyyy-MM-dd",showIcon:v=true,disabled:R,id:f,...x},S)=>{let y=K__namespace.useId(),C=f||y,M=`${C}-description`,T=`${C}-error`,[N,P]=K__namespace.useState(g??null),[D,k]=K__namespace.useState(false),I=c!==void 0?c:N,V=i&&r,L=A=>{let O=vS(A.target.value);c===void 0&&P(O),u?.(O);},H=I?Vl(I,"yyyy-MM-dd"):"",B=h?Vl(h,"yyyy-MM-dd"):void 0,$=w?Vl(w,"yyyy-MM-dd"):void 0;return jsxRuntime.jsxs("div",{className:o(Ab({size:s}),e),children:[t&&jsxRuntime.jsxs(rs__namespace.Root,{htmlFor:C,className:o(bS({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.Calendar,{className:o(gS({size:s}),"absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none")}),jsxRuntime.jsx("input",{ref:S,id:C,type:"date",value:H,onChange:L,onFocus:()=>k(true),onBlur:()=>k(false),min:B,max:$,"aria-invalid":i,"aria-describedby":V?T:a?M:void 0,"aria-required":n,disabled:R,className:o(fS({size:s,isInvalid:i}),!v&&"pl-3",d),style:{borderColor:D?"var(--color-foreground)":void 0},...x})]}),a&&!V&&jsxRuntime.jsx("p",{id:M,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),V&&jsxRuntime.jsx("p",{id:T,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",p),children:r})]})});zb.displayName="DateField";var Bb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),hS=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:""}},defaultVariants:{size:"md",isInvalid:false,disabled:false}}),xS=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"}}),Ob=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:p,value:c,defaultValue:g,onChange:u,minTime:h,maxTime:w,showSeconds:b=false,hourCycle:v=24,disabled:R,id:f,...x},S)=>{let y=K__namespace.useId(),C=f||y,M=`${C}-description`,T=`${C}-error`,N=K__namespace.useRef(null),P=K__namespace.useRef(null),D=K__namespace.useRef(null),k=K__namespace.useRef(null),[I,V]=K__namespace.useState(g??null),L=c!==void 0?c:I,H=i&&r,B=F=>v===24?F:F===0?12:F>12?F-12:F,$=F=>F>=12?"PM":"AM",A=(F,Z)=>Z==="AM"?F===12?0:F:F===12?12:F+12,[O,te]=K__namespace.useState(L?String(B(L.hour)).padStart(2,"0"):""),[be,Ie]=K__namespace.useState(L?String(L.minute).padStart(2,"0"):""),[E,z]=K__namespace.useState(L?.second!==void 0?String(L.second).padStart(2,"0"):""),[j,G]=K__namespace.useState(L?$(L.hour):"AM"),[fe,ya]=K__namespace.useState(false);K__namespace.useEffect(()=>{c!==void 0&&(c?(te(String(B(c.hour)).padStart(2,"0")),Ie(String(c.minute).padStart(2,"0")),c.second!==void 0&&z(String(c.second).padStart(2,"0")),G($(c.hour))):(te(""),Ie(""),z("")));},[c,v]);let Ge=(F,Z,ke,$t)=>{let de=parseInt(F,10),ft=parseInt(Z,10),_t=b?parseInt(ke,10):void 0;if(isNaN(de)||isNaN(ft)||b&&isNaN(_t)){c===void 0&&V(null),u?.(null);return}let dd={hour:v===12?A(de,$t):de,minute:ft,...b&&_t!==void 0&&{second:_t}};c===void 0&&V(dd),u?.(dd);},Kx=F=>{let Z=F.target.value.replace(/\D/g,"").slice(0,2);te(Z);let ke=v===24?23:12,$t=v===24?0:1;if(Z.length===2){let de=parseInt(Z,10);de>=$t&&de<=ke&&(P.current?.focus(),P.current?.select());}},Ux=F=>{let Z=F.target.value.replace(/\D/g,"").slice(0,2);if(Ie(Z),Z.length===2){let ke=parseInt(Z,10);ke>=0&&ke<=59&&(b?(D.current?.focus(),D.current?.select()):v===12&&k.current?.focus());}},Yx=F=>{let Z=F.target.value.replace(/\D/g,"").slice(0,2);z(Z),Z.length===2&&v===12&&k.current?.focus();},jx=()=>{if(O){let F=parseInt(O,10),Z=v===24?23:12,$t=Math.min(Math.max(F,v===24?0:1),Z),de=String($t).padStart(2,"0");te(de),Ge(de,be,E,j);}},Xx=()=>{if(be){let F=parseInt(be,10),Z=Math.min(Math.max(F,0),59),ke=String(Z).padStart(2,"0");Ie(ke),Ge(O,ke,E,j);}},qx=()=>{if(E){let F=parseInt(E,10),Z=Math.min(Math.max(F,0),59),ke=String(Z).padStart(2,"0");z(ke),Ge(O,be,ke,j);}},ld=()=>{let F=j==="AM"?"PM":"AM";G(F),Ge(O,be,E,F);},Zx=F=>{let Z=F.key.toLowerCase();Z==="a"?(F.preventDefault(),j!=="AM"&&(G("AM"),Ge(O,be,E,"AM"))):Z==="p"?(F.preventDefault(),j!=="PM"&&(G("PM"),Ge(O,be,E,"PM"))):Z==="arrowup"||Z==="arrowdown"?(F.preventDefault(),ld()):Z==="arrowleft"&&(F.preventDefault(),b?(D.current?.focus(),D.current?.select()):(P.current?.focus(),P.current?.select()));},Xi=(F,Z)=>{if(F.key==="ArrowUp"||F.key==="ArrowDown"){F.preventDefault();let ke=F.key==="ArrowUp"?1:-1;if(Z==="hour"){let $t=parseInt(O,10)||0,de=v===24?23:12,ft=v===24?0:1,_t=$t+ke;_t>de&&(_t=ft),_t<ft&&(_t=de);let Zi=String(_t).padStart(2,"0");te(Zi),Ge(Zi,be,E,j);}else if(Z==="minute"){let de=(parseInt(be,10)||0)+ke;de>59&&(de=0),de<0&&(de=59);let ft=String(de).padStart(2,"0");Ie(ft),Ge(O,ft,E,j);}else if(Z==="second"){let de=(parseInt(E,10)||0)+ke;de>59&&(de=0),de<0&&(de=59);let ft=String(de).padStart(2,"0");z(ft),Ge(O,be,ft,j);}}F.key==="ArrowRight"&&(F.preventDefault(),Z==="hour"?(P.current?.focus(),P.current?.select()):Z==="minute"&&b?(D.current?.focus(),D.current?.select()):(Z==="minute"&&!b&&v===12||Z==="second"&&v===12)&&k.current?.focus()),F.key==="ArrowLeft"&&(F.preventDefault(),Z==="minute"?(N.current?.focus(),N.current?.select()):Z==="second"&&(P.current?.focus(),P.current?.select())),F.key==="Backspace"&&F.currentTarget.value===""&&(Z==="minute"?N.current?.focus():Z==="second"&&P.current?.focus());},qi=o((()=>{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",R&&"cursor-not-allowed");return jsxRuntime.jsxs("div",{ref:S,className:o(Bb({size:s}),e),...x,children:[t&&jsxRuntime.jsxs(rs__namespace.Root,{htmlFor:C,className:o(xS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:o(hS({size:s,isInvalid:i,disabled:R}),d),style:{borderColor:fe?"var(--color-foreground)":void 0},onFocus:()=>ya(true),onBlur:F=>{F.currentTarget.contains(F.relatedTarget)||ya(false);},children:[jsxRuntime.jsx("input",{ref:N,id:C,type:"text",inputMode:"numeric",placeholder:v===24?"HH":"hh",value:O,onChange:Kx,onBlur:jx,onKeyDown:F=>Xi(F,"hour"),onFocus:F=>F.target.select(),"aria-label":"Hour","aria-invalid":i,"aria-describedby":H?T:a?M:void 0,"aria-required":n,disabled:R,className:qi}),jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:P,type:"text",inputMode:"numeric",placeholder:"mm",value:be,onChange:Ux,onBlur:Xx,onKeyDown:F=>Xi(F,"minute"),onFocus:F=>F.target.select(),"aria-label":"Minute",disabled:R,className:qi}),b&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:D,type:"text",inputMode:"numeric",placeholder:"ss",value:E,onChange:Yx,onBlur:qx,onKeyDown:F=>Xi(F,"second"),onFocus:F=>F.target.select(),"aria-label":"Second",disabled:R,className:qi})]}),v===12&&jsxRuntime.jsx("button",{ref:k,type:"button",onClick:ld,onKeyDown:Zx,disabled:R,className:o("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",R&&"cursor-not-allowed"),"aria-label":"AM/PM",children:j})]}),a&&!H&&jsxRuntime.jsx("p",{id:M,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),H&&jsxRuntime.jsx("p",{id:T,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",p),children:r})]})});Ob.displayName="TimeField";var $b=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),RS=classVarianceAuthority.cva("flex w-full 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:""}},defaultVariants:{size:"md",isInvalid:false}}),wS=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"}}),NS=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"}}),Gb=e=>/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e),PS=e=>(e.startsWith("#")||(e="#"+e),e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.toUpperCase()),_b=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:p,value:c,defaultValue:g="#000000",onChange:u,showSwatch:h=true,showPicker:w=true,allowAlpha:b=false,disabled:v,id:R,...f},x)=>{let S=K__namespace.useId(),y=R||S,C=`${y}-picker`,M=`${y}-description`,T=`${y}-error`,[N,P]=K__namespace.useState(g),[D,k]=K__namespace.useState(false),I=c!==void 0?c:N,V=i&&r,L=A=>{let O=A.target.value;O&&!O.startsWith("#")&&(O="#"+O),c===void 0&&P(O),u?.(O);},H=A=>{let O=A.target.value.toUpperCase();c===void 0&&P(O),u?.(O);},B=()=>{if(I&&Gb(I)){let A=PS(I);A!==I&&(c===void 0&&P(A),u?.(A));}},$=Gb(I)?I:"#000000";return jsxRuntime.jsxs("div",{className:o($b({size:s}),e),children:[t&&jsxRuntime.jsxs(rs__namespace.Root,{htmlFor:y,className:o(NS({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:[h&&jsxRuntime.jsx("div",{className:o(wS({size:s})),children:w?jsxRuntime.jsxs("label",{htmlFor:C,className:"block h-full w-full cursor-pointer",children:[jsxRuntime.jsx("input",{id:C,type:"color",value:$,onChange:H,disabled:v,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0",tabIndex:-1}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:$}})]}):jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:$}})}),jsxRuntime.jsx("input",{ref:x,id:y,type:"text",value:I,onChange:L,onFocus:()=>k(true),onBlur:()=>{k(false),B();},placeholder:"#000000",maxLength:b?9:7,"aria-invalid":i,"aria-describedby":V?T:a?M:void 0,"aria-required":n,disabled:v,className:o(RS({size:s,isInvalid:i}),!h&&"pl-3",d),style:{borderColor:D?"var(--color-foreground)":void 0},...f})]}),a&&!V&&jsxRuntime.jsx("p",{id:M,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),V&&jsxRuntime.jsx("p",{id:T,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",p),children:r})]})});_b.displayName="ColorField";var Ub=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"}}),Yb=K__namespace.createContext({});function SS(){return K__namespace.useContext(Yb)}var jb=K__namespace.forwardRef(({className:e,variant:t,orientation:a,spacing:r,disabled:n,children:i,...s},l)=>jsxRuntime.jsx(Yb.Provider,{value:{disabled:n},children:jsxRuntime.jsx("div",{ref:l,role:"group",className:o(Ub({variant:t,orientation:a,spacing:r,className:e})),...s,children:i})}));jb.displayName="ButtonGroup";var qb=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"}}),Zb=K__namespace.forwardRef(({className:e,variant:t,size:a,radius:r,isLoading:n,disabled:i,children:s,...l},d)=>{let m={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-6 w-6"}[a??"md"];return jsxRuntime.jsx("button",{ref:d,type:"button",disabled:i||n,className:o(qb({variant:t,size:a,radius:r,className:e})),...l,children:n?jsxRuntime.jsxs("svg",{className:o("animate-spin",m),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:o("[&>svg]:h-full [&>svg]:w-full",m),children:s})})});Zb.displayName="IconButton";var Jb=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"}}),ev=K__namespace.forwardRef(({className:e,variant:t,orientation:a,size:r,density:n,items:i,maxVisibleItems:s,isDisabled:l,onAction:d,showLabels:m=false,renderItem:p,...c},g)=>{let u=s&&s<i.length?i.slice(0,s):i,h=s&&s<i.length?i.slice(s):[],w={sm:"h-8 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"}[r??"md"],b={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[r??"md"],v={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5"}[r??"md"],R=(x,S)=>{S&&S(),d&&d(x);},f=x=>jsxRuntime.jsxs("button",{type:"button",disabled:l||x.isDisabled,onClick:()=>R(x.key,x.onPress),className:o("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",m?w:b),"aria-label":x.label,children:[x.icon&&jsxRuntime.jsx("span",{className:v,children:x.icon}),m&&jsxRuntime.jsx("span",{children:x.label})]},x.key);return jsxRuntime.jsxs("div",{ref:g,role:"group",className:o(Jb({variant:t,orientation:a,size:r,density:n,className:e})),...c,children:[u.map(x=>p?p(x):f(x)),h.length>0&&jsxRuntime.jsxs(ar,{children:[jsxRuntime.jsx(rr,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",disabled:l,className:o("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",b),"aria-label":"More actions",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:v})})}),jsxRuntime.jsx(Ca,{align:"end",children:h.map(x=>jsxRuntime.jsxs(Mt,{disabled:x.isDisabled,onClick:()=>R(x.key,x.onPress),children:[x.icon&&jsxRuntime.jsx("span",{className:o(v,"mr-2"),children:x.icon}),x.label]},x.key))})]})]})});ev.displayName="ActionGroup";var ov=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"}}),LS=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}}),nv=K__namespace.forwardRef(({className:e,variant:t,size:a,pulse:r=false,hideLabel:n=false,children:i,...s},l)=>jsxRuntime.jsxs("span",{ref:l,role:"status",className:o(ov({variant:t,size:a,className:e})),...s,children:[jsxRuntime.jsx("span",{className:o(LS({size:a,pulse:r})),"aria-hidden":"true"}),!n&&i&&jsxRuntime.jsx("span",{className:"text-foreground",children:i})]}));nv.displayName="StatusLight";var sv=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"}}),IS=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"}}),ES=classVarianceAuthority.cva("font-semibold text-foreground",{variants:{size:{sm:"text-base",md:"text-lg",lg:"text-xl"}},defaultVariants:{size:"md"}}),HS=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),lv=K__namespace.forwardRef(({className:e,size:t,illustration:a,heading:r,description:n,children:i,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:o(sv({size:t,className:e})),...s,children:[a&&jsxRuntime.jsx("div",{className:o(IS({size:t})),"aria-hidden":"true",children:a}),r&&jsxRuntime.jsx("h3",{className:o(ES({size:t})),children:r}),n&&jsxRuntime.jsx("p",{className:o(HS({size:t})),children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i})]}));lv.displayName="IllustratedMessage";var mv=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-yellow-200 bg-yellow-50 text-yellow-900 dark:border-yellow-800 dark:bg-yellow-950 dark:text-yellow-100 [&>svg]:text-yellow-600 dark:[&>svg]:text-yellow-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"}}),WS={info:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle,neutral:lucideReact.Info},uv=K__namespace.forwardRef(({className:e,variant:t,title:a,icon:r,hideIcon:n=false,isDismissible:i=false,onDismiss:s,actions:l,children:d,...m},p)=>{let[c,g]=K__namespace.useState(true);if(!c)return null;let u=WS[t??"info"],h=()=>{g(false),s?.();};return jsxRuntime.jsxs("div",{ref:p,role:"alert",className:o(mv({variant:t,className:e})),...m,children:[!n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r||jsxRuntime.jsx(u,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[a&&jsxRuntime.jsx("div",{className:"font-medium",children:a}),d&&jsxRuntime.jsx("div",{className:"opacity-90",children:d}),l&&jsxRuntime.jsx("div",{className:"mt-3 flex gap-2",children:l})]}),i&&jsxRuntime.jsx("button",{type:"button",onClick:h,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"})})]})});uv.displayName="InlineAlert";var pv=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"}}),fv=K__namespace.forwardRef(({className:e,position:t,size:a,selectedCount:r=0,isOpen:n=true,onClose:i,showClose:s=true,selectedText:l,children:d,...m},p)=>{if(!n||r===0)return null;let c=()=>typeof l=="function"?l(r):l||`${r} item${r>1?"s":""} selected`;return jsxRuntime.jsxs("div",{ref:p,role:"toolbar","aria-label":"Actions for selected items",className:o(pv({position:t,size:a,className:e})),...m,children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:c()}),jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:d}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("button",{type:"button",onClick:i,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"})})]})]})});fv.displayName="ActionBar";var gv=K__namespace.forwardRef(({className:e,icon:t,children:a,...r},n)=>jsxRuntime.jsxs("button",{ref:n,type:"button",className:o("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),...r,children:[t&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:t}),a]}));gv.displayName="ActionBarButton";var bv=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 XS(e){return "items"in e}var vv=K__namespace.forwardRef(({items:e,align:t="end",side:a="bottom",iconOrientation:r="vertical",trigger:n,variant:i,size:s,onAction:l,"aria-label":d="More actions",triggerClassName:m,disabled:p},c)=>{let g={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}[s??"md"],u=r==="horizontal"?lucideReact.MoreHorizontal:lucideReact.MoreVertical,h=b=>{b.onSelect?.(),l?.(b.key);},w=b=>jsxRuntime.jsxs(Mt,{disabled:b.isDisabled,onClick:()=>h(b),className:o(b.isDestructive&&"text-destructive focus:text-destructive"),children:[b.icon&&jsxRuntime.jsx("span",{className:"mr-2 h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:b.icon}),jsxRuntime.jsx("span",{className:"flex-1",children:b.label}),b.shortcut&&jsxRuntime.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:b.shortcut})]},b.key);return jsxRuntime.jsxs(ar,{children:[jsxRuntime.jsx(rr,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:c,type:"button",disabled:p,className:o(bv({variant:i,size:s}),m),"aria-label":d,children:jsxRuntime.jsx(u,{className:g})})}),jsxRuntime.jsx(Ca,{align:t,side:a,children:e.map((b,v)=>XS(b)?jsxRuntime.jsxs(K__namespace.Fragment,{children:[v>0&&jsxRuntime.jsx(Cn,{}),b.items.map(w)]},b.key):w(b))})]})});vv.displayName="ActionMenu";var yv=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"}}),Rv=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 wv({className:e,variant:t,size:a,items:r,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,allowsDragging:l=false,onReorder:d,showCheckbox:m=false,renderItem:p,emptyContent:c,...g}){let[u,h]=K__namespace.useState(new Set),[w,b]=K__namespace.useState(null),[v,R]=K__namespace.useState(null),f=K__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):u,[n,u]),x=M=>{if(i==="none")return;let T;i==="single"?T=f.has(M)?new Set:new Set([M]):(T=new Set(f),T.has(M)?T.delete(M):T.add(M)),n||h(T),s?.(T);},S=(M,T)=>{b(T),M.dataTransfer.effectAllowed="move";},y=(M,T)=>{M.preventDefault(),w!==T&&R(T);},C=()=>{if(w&&v&&w!==v){let M=r.findIndex(D=>D.key===w),T=r.findIndex(D=>D.key===v),N=[...r],[P]=N.splice(M,1);N.splice(T,0,P),d?.(N);}b(null),R(null);};return r.length===0?jsxRuntime.jsx("div",{className:o("flex items-center justify-center p-8 text-muted-foreground",e),children:c||"No items"}):jsxRuntime.jsx("div",{role:"listbox","aria-multiselectable":i==="multiple",className:o(yv({variant:t,size:a,className:e})),...g,children:r.map(M=>{let T=f.has(M.key),N=w===M.key,P=v===M.key;return p?jsxRuntime.jsx("div",{role:"option","aria-selected":T,onClick:()=>x(M.key),children:p(M,T)},M.key):jsxRuntime.jsxs("div",{role:"option","aria-selected":T,"aria-disabled":M.isDisabled,draggable:l&&!M.isDisabled,onDragStart:D=>S(D,M.key),onDragOver:D=>y(D,M.key),onDragEnd:C,onClick:()=>!M.isDisabled&&x(M.key),className:o(Rv({variant:t,size:a,isSelected:T,isDisabled:M.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"}),m&&i!=="none"&&jsxRuntime.jsx("div",{className:o("flex h-4 w-4 items-center justify-center rounded border",T?"bg-primary border-primary text-primary-foreground":"border-input"),children:T&&jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),M.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 text-muted-foreground [&>svg]:h-full [&>svg]:w-full",children:M.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:M.label}),M.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:M.description})]})]},M.key)})})}wv.displayName="ListView";var Pv=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"}}),QS=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"}}),Nv=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",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{size:"md"}}),Cv=K__namespace.forwardRef(({className:e,orientation:t="horizontal",size:a,value:r,defaultValue:n=[25,75],onValueChange:i,onValueCommit:s,showLabels:l=false,formatLabel:d=b=>String(b),trackColor:m="primary",min:p=0,max:c=100,step:g=1,disabled:u,...h},w)=>{let[b,v]=K__namespace.useState(n),R=r??b,f=y=>{let C=y;r||v(C),i?.(C);},x=y=>{s?.(y);},S={primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500"}[m];return jsxRuntime.jsxs("div",{className:"relative w-full",children:[l&&jsxRuntime.jsxs("div",{className:"flex justify-between mb-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:d(R[0])}),jsxRuntime.jsx("span",{children:d(R[1])})]}),jsxRuntime.jsxs(jt__namespace.Root,{ref:w,value:R,onValueChange:f,onValueCommit:x,min:p,max:c,step:g,disabled:u,orientation:t??"horizontal",className:o(Pv({orientation:t,size:a,className:e})),...h,children:[jsxRuntime.jsx(jt__namespace.Track,{className:o(QS({orientation:t,size:a})),children:jsxRuntime.jsx(jt__namespace.Range,{className:o("absolute rounded-full",S,{"h-full":t==="horizontal","w-full":t==="vertical"})})}),jsxRuntime.jsx(jt__namespace.Thumb,{className:o(Nv({size:a}))}),jsxRuntime.jsx(jt__namespace.Thumb,{className:o(Nv({size:a}))})]})]})});Cv.displayName="RangeSlider";var Mv=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"}}),aT=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"}}),rT={help:lucideReact.HelpCircle,info:lucideReact.Info,warning:lucideReact.AlertCircle},kv=K__namespace.forwardRef(({variant:e="help",size:t,title:a,children:r,trigger:n,side:i="top",align:s="center",open:l,onOpenChange:d,learnMoreUrl:m,learnMoreText:p="Learn more",triggerClassName:c,contentClassName:g},u)=>{let h=rT[e??"help"];return jsxRuntime.jsxs(bt__namespace.Root,{open:l,onOpenChange:d,children:[jsxRuntime.jsx(bt__namespace.Trigger,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:u,type:"button",className:o(Mv({variant:e,size:t}),c),"aria-label":"Help",children:jsxRuntime.jsx(h,{className:"h-full w-full"})})}),jsxRuntime.jsx(bt__namespace.Portal,{children:jsxRuntime.jsxs(bt__namespace.Content,{side:i,align:s,sideOffset:8,className:o(aT({size:t}),g),children:[a&&jsxRuntime.jsx("div",{className:"mb-2 font-semibold text-foreground",children:a}),jsxRuntime.jsx("div",{className:"text-muted-foreground",children:r}),m&&jsxRuntime.jsxs("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-block text-primary hover:underline",children:[p," \u2192"]}),jsxRuntime.jsx(bt__namespace.Arrow,{className:"fill-popover"})]})})]})});kv.displayName="ContextualHelp";var Lv=classVarianceAuthority.cva("flex flex-wrap",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}}),Gl=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 Vv({className:e,spacing:t,variant:a,size:r,items:n,selectedKeys:i,selectionMode:s="none",onSelectionChange:l,allowsRemoving:d=false,onRemove:m,label:p,description:c,errorMessage:g,maxTags:u,...h}){let[w,b]=K__namespace.useState(new Set),v=K__namespace.useMemo(()=>i?i instanceof Set?i:new Set(i):w,[i,w]),R=y=>{if(s==="none")return;let C;s==="single"?C=v.has(y)?new Set:new Set([y]):(C=new Set(v),C.has(y)?C.delete(y):C.add(y)),i||b(C),l?.(C);},f=(y,C)=>{C.stopPropagation(),m?.(y);},x=u?n.slice(0,u):n,S=u?Math.max(0,n.length-u):0;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-1.5",children:[p&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:p}),c&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:c}),jsxRuntime.jsxs("div",{role:"group","aria-label":p,className:o(Lv({spacing:t}),e),...h,children:[x.map(y=>{let C=v.has(y.key),M=s!=="none";return jsxRuntime.jsxs("span",{role:M?"button":void 0,tabIndex:M&&!y.isDisabled?0:void 0,"aria-pressed":M?C:void 0,onClick:()=>!y.isDisabled&&R(y.key),onKeyDown:T=>{(T.key==="Enter"||T.key===" ")&&!y.isDisabled&&(T.preventDefault(),R(y.key));},style:y.color?{backgroundColor:y.color}:void 0,className:o(Gl({variant:y.color?void 0:a,size:r,isSelected:C,isDisabled:y.isDisabled}),M&&!y.isDisabled&&"cursor-pointer hover:opacity-80",y.color&&"text-white"),children:[y.icon&&jsxRuntime.jsx("span",{className:"h-3.5 w-3.5 [&>svg]:h-full [&>svg]:w-full",children:y.icon}),y.label,d&&!y.isDisabled&&jsxRuntime.jsx("button",{type:"button",onClick:T=>f(y.key,T),className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${y.label}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},y.key)}),S>0&&jsxRuntime.jsxs("span",{className:o(Gl({variant:"surface",size:r}),"cursor-default"),children:["+",S," more"]})]}),g&&jsxRuntime.jsx("span",{className:"text-sm text-destructive",children:g})]})}Vv.displayName="TagGroup";var Hv=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"}}),Av=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 zv({className:e,columns:t,gap:a,items:r,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,showSelectionIndicator:l=true,itemVariant:d="default",itemSize:m="md",renderItem:p,emptyContent:c,...g}){let[u,h]=K__namespace.useState(new Set),w=K__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):u,[n,u]),b=v=>{if(i==="none")return;let R;i==="single"?R=w.has(v)?new Set:new Set([v]):(R=new Set(w),R.has(v)?R.delete(v):R.add(v)),n||h(R),s?.(R);};return r.length===0?jsxRuntime.jsx("div",{className:o("flex items-center justify-center p-8 text-muted-foreground",e),children:c||"No items"}):jsxRuntime.jsx("div",{role:"grid","aria-multiselectable":i==="multiple",className:o(Hv({columns:t,gap:a,className:e})),...g,children:r.map(v=>{let R=w.has(v.key);return p?jsxRuntime.jsx("div",{role:"gridcell","aria-selected":R,onClick:()=>b(v.key),children:p(v,R)},v.key):jsxRuntime.jsxs("div",{role:"gridcell","aria-selected":R,"aria-disabled":v.isDisabled,onClick:()=>!v.isDisabled&&b(v.key),className:o(Av({variant:d,size:m,isSelected:R,isDisabled:v.isDisabled})),children:[l&&i!=="none"&&R&&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)})})}zv.displayName="GridList";var Bv=classVarianceAuthority.cva("relative w-full",{variants:{size:{sm:"h-1.5",md:"h-2",lg:"h-3"}},defaultVariants:{size:"md"}}),iT=classVarianceAuthority.cva("w-full h-full rounded-full overflow-hidden",{variants:{variant:{default:"bg-secondary",subtle:"bg-muted"}},defaultVariants:{variant:"default"}}),sT=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}}),Ei=K__namespace.forwardRef(({className:e,size:t,value:a,min:r=0,max:n=100,optimum:i,low:s,high:l,label:d,showValueLabel:m=false,formatValue:p,color:c="primary",trackVariant:g="default",...u},h)=>{let w=Math.min(100,Math.max(0,(a-r)/(n-r)*100)),b=()=>{if(c!=="auto")return "";let R=(a-r)/(n-r),f=s!==void 0?(s-r)/(n-r):.25,x=l!==void 0?(l-r)/(n-r):.75;return (i!==void 0?(i-r)/(n-r):1)>=.5?R<=f?"bg-red-500":R<=x?"bg-yellow-500":"bg-green-500":R>=x?"bg-red-500":R>=f?"bg-yellow-500":"bg-green-500"},v=p?p(a,w):`${Math.round(w)}%`;return jsxRuntime.jsxs("div",{ref:h,className:o("w-full",e),...u,children:[(d||m)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[d&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:d}),m&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:v})]}),jsxRuntime.jsx("div",{role:"meter","aria-valuenow":a,"aria-valuemin":r,"aria-valuemax":n,"aria-label":d,className:o(Bv({size:t})),children:jsxRuntime.jsx("div",{className:o(iT({variant:g})),children:jsxRuntime.jsx("div",{className:o(sT({color:c==="auto"?void 0:c,rounded:w>=100}),c==="auto"&&b()),style:{width:`${w}%`}})})})]})});Ei.displayName="Meter";var Ov=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Ei,{ref:t,color:"auto",low:50,high:80,optimum:0,...e}));Ov.displayName="DiskUsageMeter";var Gv=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Ei,{ref:t,color:"auto",low:20,high:50,optimum:100,...e}));Gv.displayName="BatteryMeter";var $v=classVarianceAuthority.cva("flex flex-wrap",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2"},layout:{wrap:"flex-wrap",grid:"grid"}},defaultVariants:{size:"md",layout:"wrap"}}),_v=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],Kv=["#f8fafc","#f1f5f9","#e2e8f0","#cbd5e1","#94a3b8","#64748b","#475569","#334155","#1e293b","#0f172a","#fef2f2","#fee2e2","#fecaca","#fca5a5","#f87171","#ef4444","#dc2626","#b91c1c","#991b1b","#7f1d1d","#fff7ed","#ffedd5","#fed7aa","#fdba74","#fb923c","#f97316","#ea580c","#c2410c","#9a3412","#7c2d12","#fefce8","#fef9c3","#fef08a","#fde047","#facc15","#eab308","#ca8a04","#a16207","#854d0e","#713f12","#f0fdf4","#dcfce7","#bbf7d0","#86efac","#4ade80","#22c55e","#16a34a","#15803d","#166534","#14532d","#eff6ff","#dbeafe","#bfdbfe","#93c5fd","#60a5fa","#3b82f6","#2563eb","#1d4ed8","#1e40af","#1e3a8a","#faf5ff","#f3e8ff","#e9d5ff","#d8b4fe","#c084fc","#a855f7","#9333ea","#7e22ce","#6b21a8","#581c87","#fdf2f8","#fce7f3","#fbcfe8","#f9a8d4","#f472b6","#ec4899","#db2777","#be185d","#9d174d","#831843"],Uv=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],Yv=K__namespace.forwardRef(({value:e,defaultValue:t,onChange:a,colors:r="default",customColors:n,size:i,layout:s,swatchSize:l="md",swatchShape:d="square",columns:m,disabled:p,showSelection:c=true,className:g,...u},h)=>{let[w,b]=K__namespace.useState(t),v=e!==void 0?e:w,f=(()=>{if(n)return n;if(Array.isArray(r))return r;switch(r){case "tailwind":return Kv;case "material":return Uv;default:return _v}})(),x=y=>{p||(e===void 0&&b(y),a?.(y));},S=s==="grid"&&m?{gridTemplateColumns:`repeat(${m}, 1fr)`}:{};return jsxRuntime.jsx("div",{ref:h,role:"listbox","aria-label":"Color palette",className:o($v({size:i,layout:s}),g),style:S,...u,children:f.map((y,C)=>jsxRuntime.jsx(Ur,{color:y,size:l,shape:d,isSelected:c&&v?.toLowerCase()===y.toLowerCase(),onSelect:x,disabled:p,role:"option","aria-selected":v?.toLowerCase()===y.toLowerCase()},`${y}-${C}`))})});Yv.displayName="ColorSwatchPicker";var jv=classVarianceAuthority.cva("relative rounded-md border border-input 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"}},defaultVariants:{size:"md"}}),zi=(e,t,a)=>{let r=n=>{let i=(n+e/60)%6;return a-a*t*Math.max(Math.min(i,4-i,1),0)};return [Math.round(r(5)*255),Math.round(r(3)*255),Math.round(r(1)*255)]},Xv=(e,t,a)=>{e/=255,t/=255,a/=255;let r=Math.max(e,t,a),n=Math.min(e,t,a),i=r-n,s=0,l=r===0?0:i/r,d=r;if(i!==0)switch(r){case e:s=((t-a)/i+(t<a?6:0))*60;break;case t:s=((a-e)/i+2)*60;break;case a:s=((e-t)/i+4)*60;break}return [s,l,d]},qv=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},Zv=(e,t,a)=>"#"+[e,t,a].map(r=>r.toString(16).padStart(2,"0")).join(""),Qv=K__namespace.forwardRef(({hue:e,saturation:t,brightness:a,value:r,defaultValue:n="#ff0000",onChange:i,onColorChange:s,size:l,disabled:d,thumbSize:m=16,className:p,...c},g)=>{let u=K__namespace.useRef(null),[h,w]=K__namespace.useState(false),b=K__namespace.useCallback(A=>{let O=qv(A);return O?Xv(...O):[0,1,1]},[]),[v,R]=K__namespace.useState(()=>b(r||n)),f=e??v[0],x=t??v[1],S=a??v[2];K__namespace.useEffect(()=>{if(r){let A=b(r);R(A);}},[r,b]);let y=K__namespace.useCallback((A,O)=>{if(d||!u.current)return;let te=u.current.getBoundingClientRect(),be=Math.max(0,Math.min(1,(A-te.left)/te.width)),Ie=Math.max(0,Math.min(1,(O-te.top)/te.height)),E=be,z=1-Ie;t===void 0&&a===void 0&&R([f,E,z]),i?.({hue:f,saturation:E,brightness:z});let j=zi(f,E,z);s?.(Zv(...j));},[d,f,t,a,i,s]),C=A=>{d||(A.preventDefault(),w(true),A.target.setPointerCapture(A.pointerId),y(A.clientX,A.clientY));},M=A=>{h&&y(A.clientX,A.clientY);},T=A=>{w(false),A.target.releasePointerCapture(A.pointerId);},[N,P,D]=zi(f,1,1),k=`rgb(${N}, ${P}, ${D})`,I=x*100,V=(1-S)*100,[L,H,B]=zi(f,x,S),$=`rgb(${L}, ${H}, ${B})`;return jsxRuntime.jsx("div",{ref:g,className:o(jv({size:l}),d&&"cursor-not-allowed opacity-50",p),...c,children:jsxRuntime.jsxs("div",{ref:u,className:"absolute inset-0",style:{backgroundColor:k},onPointerDown:C,onPointerMove:M,onPointerUp:T,onPointerLeave:T,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 shadow-md pointer-events-none",style:{width:m,height:m,left:`calc(${I}% - ${m/2}px)`,top:`calc(${V}% - ${m/2}px)`,backgroundColor:$,boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Qv.displayName="ColorArea";var eh=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"}}),uT=`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")`,Jv="linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)",th=K__namespace.forwardRef(({value:e,defaultValue:t,onChange:a,channel:r="hue",baseColor:n="#ff0000",orientation:i,size:s,disabled:l,thumbSize:d=18,showBorder:m=true,className:p,...c},g)=>{let u=K__namespace.useRef(null),[h,w]=K__namespace.useState(false),b=()=>{switch(r){case "hue":return 0;case "alpha":case "saturation":case "brightness":return 1;default:return 0}},[v,R]=K__namespace.useState(t??b()),f=e??v,x=r==="hue"?f/360:f,S=K__namespace.useCallback((k,I)=>{if(l||!u.current)return;let V=u.current.getBoundingClientRect(),L=i!=="vertical",H;L?H=Math.max(0,Math.min(1,(k-V.left)/V.width)):H=Math.max(0,Math.min(1,1-(I-V.top)/V.height));let B=r==="hue"?H*360:H;e===void 0&&R(B),a?.(B);},[l,i,r,e,a]),y=k=>{l||(k.preventDefault(),w(true),k.target.setPointerCapture(k.pointerId),S(k.clientX,k.clientY));},C=k=>{h&&S(k.clientX,k.clientY);},M=k=>{w(false),k.target.releasePointerCapture(k.pointerId);},T=()=>{let k=i!=="vertical",I=k?"to right":"to top";switch(r){case "hue":return k?Jv:"linear-gradient(to top, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)";case "alpha":return `linear-gradient(${I}, transparent, ${n})`;case "saturation":return `linear-gradient(${I}, #808080, ${n})`;case "brightness":return `linear-gradient(${I}, #000000, ${n})`;default:return Jv}},N=()=>r==="hue"?`hsl(${f}, 100%, 50%)`:n,P=i!=="vertical",D=x*100;return jsxRuntime.jsx("div",{ref:g,className:o(eh({orientation:i,size:s}),l&&"cursor-not-allowed opacity-50",p),...c,children:jsxRuntime.jsxs("div",{ref:u,className:o("absolute inset-0 rounded-full overflow-hidden",m&&"border border-input"),style:{backgroundImage:r==="alpha"?uT:void 0,backgroundSize:r==="alpha"?"8px 8px":void 0},onPointerDown:y,onPointerMove:C,onPointerUp:M,onPointerLeave:M,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:T()}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:d,height:d,...P?{left:`calc(${D}% - ${d/2}px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${D}% - ${d/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)"}})]})})});th.displayName="ColorSlider";var ah=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"}}),gT=(e,t,a)=>{let r=e-a,n=t-a,i=Math.atan2(n,r)*180/Math.PI+90;return i<0&&(i+=360),i},rh=K__namespace.forwardRef(({value:e,defaultValue:t=0,onChange:a,size:r,disabled:n,innerRadius:i=.6,thumbSize:s=20,showCenter:l=true,className:d,...m},p)=>{let c=K__namespace.useRef(null),[g,u]=K__namespace.useState(false),[h,w]=K__namespace.useState(t),b=e??h,v=K__namespace.useCallback((y,C)=>{if(n||!c.current)return;let M=c.current.getBoundingClientRect(),T=M.width/2,N=y-M.left,P=C-M.top,D=gT(N,P,T);e===void 0&&w(D),a?.(D);},[n,e,a]),R=y=>{n||(y.preventDefault(),u(true),y.target.setPointerCapture(y.pointerId),v(y.clientX,y.clientY));},f=y=>{g&&v(y.clientX,y.clientY);},x=y=>{u(false),y.target.releasePointerCapture(y.pointerId);},S=()=>{let y=[];for(let C=0;C<=360;C+=30)y.push(`hsl(${C}, 100%, 50%) ${C}deg`);return `conic-gradient(from 270deg, ${y.join(", ")})`};return jsxRuntime.jsx("div",{ref:p,className:o(ah({size:r}),n&&"cursor-not-allowed opacity-50",d),...m,children:jsxRuntime.jsxs("div",{ref:c,className:"absolute inset-0 rounded-full",style:{background:S()},onPointerDown:R,onPointerMove:f,onPointerUp:x,onPointerLeave:x,children:[i<1&&jsxRuntime.jsx("div",{className:"absolute bg-background rounded-full",style:{top:`${(1-i)*50}%`,left:`${(1-i)*50}%`,width:`${i*100}%`,height:`${i*100}%`}}),l&&i<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(bT,{hue:b,innerRadius:i,thumbSize:s})]})})});rh.displayName="ColorWheel";var bT=({hue:e,innerRadius:t,thumbSize:a})=>{let r=(1-(1-t)/2)*50,n=(e-90)*Math.PI/180,i=50+r*Math.cos(n),s=50+r*Math.sin(n);return jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:a,height:a,left:`calc(${i}% - ${a/2}px)`,top:`calc(${s}% - ${a/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 oh=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}}),rn=K__namespace.forwardRef(({className:e,direction:t,align:a,justify:r,wrap:n,gap:i,inline:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(oh({direction:t,align:a,justify:r,wrap:n,gap:i,inline:s,className:e})),...d}));rn.displayName="Flex";var nh=K__namespace.forwardRef(({gap:e=2,align:t="center",...a},r)=>jsxRuntime.jsx(rn,{ref:r,direction:"row",gap:e,align:t,...a}));nh.displayName="HStack";var ih=K__namespace.forwardRef(({gap:e=2,align:t="stretch",...a},r)=>jsxRuntime.jsx(rn,{ref:r,direction:"column",gap:e,align:t,...a}));ih.displayName="VStack";var sh=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(rn,{ref:t,align:"center",justify:"center",...e}));sh.displayName="Center";var dh=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"}}),Bi=K__namespace.forwardRef(({className:e,columns:t,rows:a,gap:r,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,as:p="div",minChildWidth:c,style:g,...u},h)=>{let w=c?{...g,gridTemplateColumns:`repeat(auto-fill, minmax(${c}, 1fr))`}:g;return jsxRuntime.jsx(p,{ref:h,className:o(dh({columns:c?void 0:t,rows:a,gap:r,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,className:e})),style:w,...u})});Bi.displayName="Grid";var ch=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"}}}),mh=K__namespace.forwardRef(({className:e,colSpan:t,rowSpan:a,colStart:r,colEnd:n,rowStart:i,rowEnd:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(ch({colSpan:t,rowSpan:a,colStart:r,colEnd:n,rowStart:i,rowEnd:s,className:e})),...d}));mh.displayName="GridItem";var uh=K__namespace.forwardRef(({columns:e=2,className:t,...a},r)=>{if(typeof e=="number")return jsxRuntime.jsx(Bi,{ref:r,columns:e,className:t,...a});let n=o(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(Bi,{ref:r,columns:1,className:o(n,t),...a})});uh.displayName="SimpleGrid";var fh=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"}}),gh=K__namespace.forwardRef(({className:e,variant:t,size:a,radius:r,as:n="div",...i},s)=>jsxRuntime.jsx(n,{ref:s,className:o(fh({variant:t,size:a,radius:r,className:e})),...i}));gh.displayName="Well";var vh=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"}}),RT=classVarianceAuthority.cva("text-muted-foreground font-medium",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),wT=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}}),hh=K__namespace.forwardRef(({className:e,orientation:t,size:a,align:r,label:n,value:i,valueWeight:s,mono:l,labelWidth:d,labelClassName:m,valueClassName:p,showColon:c=false,copyable:g=false,onCopy:u,...h},w)=>{let b=async()=>{if(!(!g||i===null||i===void 0))try{let v=typeof i=="string"?i:String(i);await navigator.clipboard.writeText(v),u?.();}catch{}};return jsxRuntime.jsxs("div",{ref:w,className:o(vh({orientation:t,size:a,align:r,className:e})),...h,children:[jsxRuntime.jsxs("span",{className:o(RT({size:a}),m),style:d?{width:d,flexShrink:0}:void 0,children:[n,c&&":"]}),jsxRuntime.jsx("span",{className:o(wT({size:a,weight:s,mono:l}),g&&"cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1 transition-colors",p),onClick:g?b:void 0,role:g?"button":void 0,tabIndex:g?0:void 0,onKeyDown:g?v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),b());}:void 0,children:i})]})});hh.displayName="LabeledValue";var xh=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"}}),yh=K__namespace.forwardRef(({className:e,orientation:t,gap:a,...r},n)=>jsxRuntime.jsx("div",{ref:n,className:o(xh({orientation:t,gap:a,className:e})),...r}));yh.displayName="LabeledValueGroup";var Ph=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"}}),mo=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"}}),Ch=K__namespace.forwardRef(({value:e,defaultValue:t="",onChange:a,onSearch:r,onSelect:n,suggestions:i=[],recentSearches:s=[],onClearRecentSearches:l,trendingSearches:d=[],isLoading:m,showClear:p=true,showIcon:c=true,popoverWidth:g="trigger",emptyMessage:u="No results found",size:h,variant:w,className:b,placeholder:v="Search...",disabled:R,...f},x)=>{let[S,y]=K__namespace.useState(false),[C,M]=K__namespace.useState(t),T=e!==void 0?e:C,N=K__namespace.useRef(null);K__namespace.useImperativeHandle(x,()=>N.current);let P=T.length>0,D=S&&(i.length>0||s.length>0||d.length>0||P),k=A=>{e===void 0&&M(A),a?.(A);},I=()=>{k(""),N.current?.focus();},V=A=>{A?.preventDefault(),T.trim()&&(r?.(T.trim()),y(false));},L=A=>{k(A.label),n?.(A),y(false);},H=A=>{k(A),r?.(A),y(false);},B=A=>{k(A),r?.(A),y(false);},$=K__namespace.useMemo(()=>{let A={};return i.forEach(O=>{let te=O.category||"Results";A[te]||(A[te]=[]),A[te].push(O);}),A},[i]);return jsxRuntime.jsxs(ye,{open:D,onOpenChange:y,children:[jsxRuntime.jsx(Pe,{asChild:true,children:jsxRuntime.jsxs("form",{onSubmit:V,className:o(Ph({size:h,variant:w}),b),children:[c&&jsxRuntime.jsx(lucideReact.Search,{className:o(mo({size:h}),"ml-3")}),jsxRuntime.jsx("input",{ref:N,type:"text",value:T,onChange:A=>k(A.target.value),onFocus:()=>y(true),placeholder:v,disabled:R,className:o("flex-1 bg-transparent px-3 py-2 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",!c&&"pl-3"),...f}),p&&P&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:I,className:o("mr-2 rounded-sm p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",mo({size:h})),children:jsxRuntime.jsx(lucideReact.X,{className:"h-full w-full"})})]})}),jsxRuntime.jsx(ve,{className:"p-0",style:{width:g==="trigger"?"var(--radix-popover-trigger-width)":g},align:"start",onOpenAutoFocus:A=>A.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((A,O)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>H(A),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:o(mo({size:h}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:A}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:o(mo({size:h}),"opacity-0 group-hover:opacity-100")})]},O))]}),d.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"})}),d.map((A,O)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>B(A),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:o(mo({size:h}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:A})]},O))]}),P&&jsxRuntime.jsx("div",{className:"p-2",children:m?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"})}):i.length>0?Object.entries($).map(([A,O])=>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:A})}),O.map(te=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>L(te),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[te.icon||jsxRuntime.jsx(lucideReact.Search,{className:o(mo({size:h}))}),jsxRuntime.jsxs("div",{className:"flex-1 text-left",children:[jsxRuntime.jsx("div",{className:"truncate",children:te.label}),te.description&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:te.description})]})]},te.id))]},A)):jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:u})})]})})]})});Ch.displayName="SearchBar";var Sh={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"})},Th=K__namespace.forwardRef(({open:e,onOpenChange:t,items:a=[],recentItems:r=[],placeholder:n="Search...",isLoading:i,emptyMessage:s="No results found.",filter:l,shortcut:d="\u2318K",onSelect:m,footer:p},c)=>{let[g,u]=K__namespace.useState(""),h=K__namespace.useRef(null);K__namespace.useEffect(()=>{e||u("");},[e]);let w=K__namespace.useMemo(()=>{let f={};return a.forEach(x=>{let S=x.category||"Results";f[S]||(f[S]=[]),f[S].push(x);}),f},[a]),b=f=>{f.onSelect?.(),m?.(f),t?.(false);},v=g.length>0,R=!v&&r.length>0;return jsxRuntime.jsx(ne__namespace.Root,{open:e,onOpenChange:t,children:jsxRuntime.jsxs(ne__namespace.Portal,{children:[jsxRuntime.jsx(ne__namespace.Overlay,{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"}),jsxRuntime.jsx(ne__namespace.Content,{ref:c,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",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:h,value:g,onValueChange:u,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"}),g&&jsxRuntime.jsx("button",{type:"button",onClick:()=>u(""),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:i?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:[R&&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"}),r.map(f=>jsxRuntime.jsxs(cmdk.Command.Item,{value:f.label,onSelect:()=>b(f),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:f.icon||Sh[f.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:f.label}),f.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:f.description})]}),f.shortcut&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:f.shortcut.map((x,S)=>jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-medium",children:x},S))})]},f.id))]}),v&&Object.entries(w).map(([f,x])=>jsxRuntime.jsxs(cmdk.Command.Group,{heading:f,children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:f}),x.map(S=>jsxRuntime.jsxs(cmdk.Command.Item,{value:`${S.label} ${S.keywords?.join(" ")||""}`,onSelect:()=>b(S),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:S.icon||Sh[f]||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:S.label}),S.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:S.description})]}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-4 w-4 text-muted-foreground opacity-0 group-aria-selected:opacity-100"})]},S.id))]},f)),jsxRuntime.jsx(cmdk.Command.Empty,{className:"py-10 text-center text-sm text-muted-foreground",children:s})]})}),p?jsxRuntime.jsx("div",{className:"border-t px-4 py-3",children:p}):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:d})," to open"]})]})]})})]})})});Th.displayName="SpotlightSearch";function HT(e="k"){let[t,a]=K__namespace.useState(false);return K__namespace.useEffect(()=>{let r=n=>{(n.metaKey||n.ctrlKey)&&n.key===e&&(n.preventDefault(),a(i=>!i));};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e]),{open:t,setOpen:a,toggle:()=>a(r=>!r)}}var $T=classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),_T={default:"bg-muted",info:"bg-blue-500/10 text-blue-600 dark:text-blue-400",success:"bg-green-500/10 text-green-600 dark:text-green-400",warning:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",error:"bg-red-500/10 text-red-600 dark:text-red-400"},KT=e=>{let t=typeof e=="string"?new Date(e):e,r=new Date().getTime()-t.getTime(),n=Math.floor(r/6e4),i=Math.floor(r/36e5),s=Math.floor(r/864e5);return n<1?"Just now":n<60?`${n}m ago`:i<24?`${i}h ago`:s<7?`${s}d ago`:t.toLocaleDateString()},Mh=K__namespace.forwardRef(({notifications:e=[],onNotificationClick:t,onMarkAsRead:a,onMarkAllAsRead:r,onDismiss:n,onClearAll:i,showSettings:s,onSettingsClick:l,trigger:d,align:m="end",emptyMessage:p="No notifications",maxHeight:c=400,className:g},u)=>{let[h,w]=K__namespace.useState(false),b=e.filter(f=>!f.read).length,v=e.length>0,R=f=>{f.read||a?.(f.id),t?.(f);};return jsxRuntime.jsxs(ye,{open:h,onOpenChange:w,children:[jsxRuntime.jsx(Pe,{asChild:true,children:d||jsxRuntime.jsxs("button",{ref:u,className:o("relative inline-flex h-10 w-10 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",g),children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-5 w-5"}),b>0&&jsxRuntime.jsx("span",{className:"absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-medium text-primary-foreground",children:b>99?"99+":b})]})}),jsxRuntime.jsxs(ve,{className:"w-80 p-0 sm:w-96",align:m,sideOffset:8,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{className:"font-semibold",children:"Notifications"}),b>0&&jsxRuntime.jsxs(xo,{size:"sm",children:[b," new"]})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[v&&r&&b>0&&jsxRuntime.jsx("button",{type:"button",onClick:r,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Mark all as read",children:jsxRuntime.jsx(lucideReact.CheckCheck,{className:"h-4 w-4"})}),v&&i&&jsxRuntime.jsx("button",{type:"button",onClick:i,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Clear all",children:jsxRuntime.jsx(lucideReact.Trash2,{className:"h-4 w-4"})}),s&&l&&jsxRuntime.jsx("button",{type:"button",onClick:l,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Settings",children:jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"})})]})]}),v?jsxRuntime.jsx(ht,{style:{maxHeight:c},children:jsxRuntime.jsx("div",{className:"divide-y",children:e.map(f=>jsxRuntime.jsxs("div",{className:o("group relative flex gap-3 px-4 py-3 transition-colors hover:bg-muted/50",!f.read&&"bg-muted/30"),children:[jsxRuntime.jsx("div",{className:o("flex h-9 w-9 shrink-0 items-center justify-center rounded-full",f.avatar?"overflow-hidden":_T[f.type||"default"]),children:f.avatar?jsxRuntime.jsx("img",{src:f.avatar,alt:"",className:"h-full w-full object-cover"}):f.icon?f.icon:jsxRuntime.jsx(lucideReact.Bell,{className:"h-4 w-4"})}),jsxRuntime.jsxs("button",{type:"button",onClick:()=>R(f),className:"flex-1 text-left",children:[jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-2",children:[jsxRuntime.jsx("p",{className:o("text-sm",!f.read&&"font-medium"),children:f.title}),!f.read&&jsxRuntime.jsx("span",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-primary"})]}),f.description&&jsxRuntime.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground line-clamp-2",children:f.description}),jsxRuntime.jsx("p",{className:"mt-1 text-[10px] text-muted-foreground",children:KT(f.timestamp)})]}),jsxRuntime.jsxs("div",{className:"absolute right-2 top-2 flex gap-1 opacity-0 transition-opacity group-hover:opacity-100",children:[!f.read&&a&&jsxRuntime.jsx("button",{type:"button",onClick:x=>{x.stopPropagation(),a(f.id);},className:"rounded-sm p-1 text-muted-foreground hover:bg-background hover:text-foreground",title:"Mark as read",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5"})}),(n||f.onDismiss)&&jsxRuntime.jsx("button",{type:"button",onClick:x=>{x.stopPropagation(),f.onDismiss?.(),n?.(f.id);},className:"rounded-sm p-1 text-muted-foreground hover:bg-background hover:text-foreground",title:"Dismiss",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3.5 w-3.5"})})]})]},f.id))})}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center py-10 text-center",children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-10 w-10 text-muted-foreground/50"}),jsxRuntime.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:p})]})]})]})});Mh.displayName="NotificationCenter";var Dh=classVarianceAuthority.cva("relative flex items-center justify-center gap-3 px-4 py-2.5 text-sm",{variants:{variant:{default:"bg-muted text-foreground",primary:"bg-primary text-primary-foreground",info:"bg-blue-500 text-white",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-black",danger:"bg-red-500 text-white",gradient:"bg-gradient-to-r from-primary via-purple-500 to-pink-500 text-white"},position:{top:"fixed top-0 left-0 right-0 z-50",relative:"relative"}},defaultVariants:{variant:"default",position:"relative"}}),QT={default:lucideReact.Megaphone,primary:lucideReact.Megaphone,info:lucideReact.Info,success:lucideReact.CheckCircle,warning:lucideReact.AlertTriangle,danger:lucideReact.XCircle,gradient:lucideReact.Megaphone},Lh=K__namespace.forwardRef(({message:e,showIcon:t=true,icon:a,dismissible:r=true,onDismiss:n,action:i,variant:s="default",position:l,animate:d,autoDismiss:m,storageKey:p,className:c,...g},u)=>{let[h,w]=K__namespace.useState(true),[b,v]=K__namespace.useState(false);K__namespace.useEffect(()=>{p&&localStorage.getItem(`banner-${p}`)==="true"&&w(false);},[p]),K__namespace.useEffect(()=>{if(m&&h){let x=setTimeout(()=>{R();},m);return ()=>clearTimeout(x)}},[m,h]);let R=()=>{v(true),setTimeout(()=>{w(false),p&&localStorage.setItem(`banner-${p}`,"true"),n?.();},200);};if(!h)return null;let f=a?null:QT[s||"default"];return jsxRuntime.jsxs("div",{ref:u,className:o(Dh({variant:s,position:l}),d&&"animate-pulse",b&&"animate-out fade-out slide-out-to-top duration-200",c),role:"banner",...g,children:[t&&jsxRuntime.jsx("span",{className:"shrink-0",children:a||f&&jsxRuntime.jsx(f,{className:"h-4 w-4"})}),jsxRuntime.jsx("span",{className:"text-center font-medium",children:e}),i&&(i.href?jsxRuntime.jsxs("a",{href:i.href,className:"group inline-flex shrink-0 items-center gap-1 font-semibold underline-offset-4 hover:underline",children:[i.label,jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]}):jsxRuntime.jsxs("button",{type:"button",onClick:i.onClick,className:"group inline-flex shrink-0 items-center gap-1 font-semibold underline-offset-4 hover:underline",children:[i.label,jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})),r&&jsxRuntime.jsx("button",{type:"button",onClick:R,className:o("absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-70",l==="relative"&&"right-4"),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});Lh.displayName="AnnouncementBanner";var on=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:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-muted",ghost:"bg-background hover:bg-muted shadow-md"},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:"default",size:"md",position:"bottom-right"}}),eM=classVarianceAuthority.cva("transition-transform duration-200",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-7 w-7"}},defaultVariants:{size:"md"}}),ql=K__namespace.forwardRef(({icon:e,label:t="Action button",extended:a,extendedLabel:r,actions:n,direction:i="up",showTooltip:s=true,closeIcon:l,animation:d="rotate",variant:m,size:p,position:c,className:g,onClick:u,disabled:h,...w},b)=>{let[v,R]=K__namespace.useState(false),f=n&&n.length>0,x=T=>{f&&R(!v),u?.(T);},S=T=>{T.onClick?.(),R(false);},y={up:{container:"flex-col-reverse bottom-full mb-3",item:"mb-3"},down:{container:"flex-col top-full mt-3",item:"mt-3"},left:{container:"flex-row-reverse right-full mr-3",item:"mr-3"},right:{container:"flex-row left-full ml-3",item:"ml-3"}},C=d==="rotate"&&v?"rotate-45":"",M=d==="scale"&&v?"scale-0":"scale-100";return jsxRuntime.jsxs("div",{className:o("z-50",c!=="relative"&&c&&on({position:c})),children:[f&&v&&jsxRuntime.jsx("div",{className:o("absolute flex items-center gap-2",y[i].container),children:n.map((T,N)=>jsxRuntime.jsxs("div",{className:o("flex items-center gap-2 animate-in fade-in zoom-in duration-200",i==="up"||i==="down"?"flex-row":"flex-col"),style:{animationDelay:`${N*50}ms`},children:[s&&(i==="up"||i==="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:T.label}),T.href?jsxRuntime.jsx("a",{href:T.href,className:o(on({variant:T.variant||"secondary",size:p==="lg"?"md":"sm"})),"aria-label":T.label,children:T.icon}):jsxRuntime.jsx("button",{type:"button",onClick:()=>S(T),className:o(on({variant:T.variant||"secondary",size:p==="lg"?"md":"sm"})),"aria-label":T.label,children:T.icon}),s&&(i==="left"||i==="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:T.label})]},T.id))}),jsxRuntime.jsxs("button",{ref:b,type:"button",onClick:x,disabled:h,className:o(on({variant:m,size:p,position:"relative"}),a&&"px-6 gap-2",g),"aria-label":t,"aria-expanded":f?v:void 0,...w,children:[v&&l?l:jsxRuntime.jsx("span",{className:o(eM({size:p}),C,M,"transition-all duration-200"),children:e||jsxRuntime.jsx(lucideReact.Plus,{})}),a&&r&&jsxRuntime.jsx("span",{className:"font-medium",children:r})]}),f&&v&&jsxRuntime.jsx("div",{className:"fixed inset-0 -z-10",onClick:()=>R(false)})]})});ql.displayName="FloatingActionButton";var tM=ql;var Eh=classVarianceAuthority.cva("fixed bottom-0 left-0 right-0 z-50 flex items-center justify-around border-t bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80 safe-area-inset-bottom",{variants:{variant:{default:"border-border",elevated:"border-transparent shadow-lg",filled:"border-transparent bg-primary text-primary-foreground"},size:{sm:"h-14",md:"h-16",lg:"h-20"}},defaultVariants:{variant:"default",size:"md"}}),aM=classVarianceAuthority.cva("flex flex-1 flex-col items-center justify-center gap-1 transition-colors",{variants:{variant:{default:"text-muted-foreground hover:text-foreground",elevated:"text-muted-foreground hover:text-foreground",filled:"text-primary-foreground/70 hover:text-primary-foreground"},size:{sm:"py-1.5",md:"py-2",lg:"py-3"},isActive:{true:"",false:""}},compoundVariants:[{variant:"default",isActive:true,className:"text-primary"},{variant:"elevated",isActive:true,className:"text-primary"},{variant:"filled",isActive:true,className:"text-primary-foreground"}],defaultVariants:{variant:"default",size:"md",isActive:false}}),rM=classVarianceAuthority.cva("transition-transform",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-7 w-7"},isActive:{true:"scale-110",false:""}},defaultVariants:{size:"md",isActive:false}}),oM=classVarianceAuthority.cva("font-medium transition-opacity",{variants:{size:{sm:"text-[10px]",md:"text-xs",lg:"text-sm"},showLabel:{always:"opacity-100",active:"",never:"sr-only"},isActive:{true:"",false:""}},compoundVariants:[{showLabel:"active",isActive:true,className:"opacity-100"},{showLabel:"active",isActive:false,className:"opacity-0 h-0"}],defaultVariants:{size:"md",showLabel:"always",isActive:false}}),Hh=K__namespace.forwardRef(({className:e,variant:t,size:a,items:r,activeKey:n,defaultActiveKey:i,onChange:s,showLabels:l="always",hideOnScroll:d=false,...m},p)=>{let[c,g]=K__namespace.useState(i??r[0]?.key),[u,h]=K__namespace.useState(true),w=K__namespace.useRef(0),b=n??c;K__namespace.useEffect(()=>{if(!d)return;let R=()=>{let f=window.scrollY,x=f>w.current,S=f<w.current;x&&f>100?h(false):S&&h(true),w.current=f;};return window.addEventListener("scroll",R,{passive:true}),()=>window.removeEventListener("scroll",R)},[d]);let v=R=>{n===void 0&&g(R.key),s?.(R.key),R.onClick?.();};return jsxRuntime.jsx("nav",{ref:p,role:"navigation","aria-label":"Bottom navigation",className:o(Eh({variant:t,size:a,className:e}),"transition-transform duration-300",!u&&"translate-y-full"),...m,children:r.map(R=>{let f=b===R.key,x=f&&R.activeIcon?R.activeIcon:R.icon,S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"relative",children:[jsxRuntime.jsx("span",{className:o(rM({size:a,isActive:f})),children:x}),R.badge!==void 0&&jsxRuntime.jsx("span",{className:"absolute -right-2 -top-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-destructive px-1 text-[10px] font-medium text-destructive-foreground",children:typeof R.badge=="number"&&R.badge>99?"99+":R.badge})]}),jsxRuntime.jsx("span",{className:o(oM({size:a,showLabel:l,isActive:f})),children:R.label})]}),y=o(aM({variant:t,size:a,isActive:f}));return R.href?jsxRuntime.jsx("a",{href:R.href,className:y,"aria-current":f?"page":void 0,onClick:()=>v(R),children:S},R.key):jsxRuntime.jsx("button",{type:"button",className:y,"aria-current":f?"page":void 0,onClick:()=>v(R),children:S},R.key)})})});Hh.displayName="BottomNavigation";var Fh=classVarianceAuthority.cva("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[20px] border-t bg-background",{variants:{size:{sm:"max-h-[50vh]",md:"max-h-[70vh]",lg:"max-h-[85vh]",full:"max-h-[100vh] rounded-t-none"}},defaultVariants:{size:"md"}}),Bh=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"}}),Oh=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r,description:n,items:i,cancelLabel:s="Cancel",onCancel:l,showCancel:d=true,children:m,size:p,closeOnSelect:c=true,onAction:g},u)=>{let h=b=>{b.isDisabled||(b.onSelect?.(),g?.(b.key),c&&t?.(false));},w=()=>{l?.(),t?.(false);};return jsxRuntime.jsxs(vaul.Drawer.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(vaul.Drawer.Trigger,{asChild:true,children:a}),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:u,className:o(Fh({size:p})),children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-muted"}),(r||n)&&jsxRuntime.jsxs("div",{className:"px-4 py-3 text-center",children:[r&&jsxRuntime.jsx(vaul.Drawer.Title,{className:"text-base font-semibold",children:r}),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:m||jsxRuntime.jsx("div",{className:"divide-y",children:i?.map(b=>jsxRuntime.jsxs("button",{type:"button",disabled:b.isDisabled,onClick:()=>h(b),className:o(Bh({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))})}),d&&jsxRuntime.jsx("div",{className:"border-t p-2 pb-safe",children:jsxRuntime.jsx("button",{type:"button",onClick:w,className:"w-full rounded-lg bg-muted py-3.5 text-center font-semibold transition-colors hover:bg-muted/80",children:s})})]})]})]})});Oh.displayName="ActionSheet";var Wh=classVarianceAuthority.cva("relative overflow-hidden touch-pan-y",{variants:{variant:{default:"",card:"rounded-lg border bg-card"}},defaultVariants:{variant:"default"}}),Ql=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"}}),$h=K__namespace.forwardRef(({className:e,variant:t,leftActions:a=[],rightActions:r=[],actionSize:n="md",threshold:i=.3,onSwipeEnd:s,disabled:l=false,fullSwipeAction:d,children:m,...p},c)=>{let g=K__namespace.useRef(null),[u,h]=K__namespace.useState(0),[w,b]=K__namespace.useState(false),v=K__namespace.useRef(0),R=K__namespace.useRef(0),f=a.length*(n==="sm"?64:n==="lg"?96:80),x=r.length*(n==="sm"?64:n==="lg"?96:80),S=N=>{l||(b(true),v.current=N.touches[0].clientX,R.current=u);},y=N=>{if(!w||l)return;let D=N.touches[0].clientX-v.current,k=R.current+D;(k>0&&a.length===0||k<0&&r.length===0)&&(k=0),k>f?k=f+(k-f)*.3:k<-x&&(k=-x+(k+x)*.3),h(k);},C=()=>{if(!w)return;b(false);let N=g.current?.offsetWidth||0,P=Math.abs(u)/N;if(d&&P>.6){d==="right"&&u>0&&a[0]?(a[0].onAction?.(),s?.("right",a[0].key)):d==="left"&&u<0&&r[0]&&(r[0].onAction?.(),s?.("left",r[0].key)),h(0);return}u>f*i&&a.length>0?(h(f),s?.("right")):u<-x*i&&r.length>0?(h(-x),s?.("left")):h(0);},M=(N,P)=>{N.onAction?.(),s?.(P,N.key),h(0);},T=()=>{h(0);};return jsxRuntime.jsxs("div",{ref:c,className:o(Wh({variant:t,className:e})),...p,children:[a.length>0&&jsxRuntime.jsx("div",{className:"absolute left-0 top-0 bottom-0 flex",style:{width:f},children:a.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>M(N,"right"),className:o(Ql({variant:N.variant,size:n})),style:{opacity:Math.min(1,u/f)},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))}),r.length>0&&jsxRuntime.jsx("div",{className:"absolute right-0 top-0 bottom-0 flex",style:{width:x},children:r.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>M(N,"left"),className:o(Ql({variant:N.variant,size:n})),style:{opacity:Math.min(1,Math.abs(u)/x)},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:g,className:o("relative bg-background",w?"":"transition-transform duration-200"),style:{transform:`translateX(${u}px)`},onTouchStart:S,onTouchMove:y,onTouchEnd:C,onClick:u!==0?T:void 0,children:m})]})});$h.displayName="SwipeActions";var Kh=classVarianceAuthority.cva("relative overflow-hidden",{variants:{variant:{default:"",contained:"h-full"}},defaultVariants:{variant:"default"}}),lM=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"}}),Uh=K__namespace.forwardRef(({className:e,variant:t,onRefresh:a,pullThreshold:r=80,maxPullDistance:n=120,loadingIndicator:i,pullIndicator:s,indicatorSize:l="md",disabled:d=false,pullText:m="Pull to refresh",releaseText:p="Release to refresh",refreshingText:c="Refreshing...",children:g,...u},h)=>{let w=K__namespace.useRef(null),[b,v]=K__namespace.useState(0),[R,f]=K__namespace.useState("idle"),x=K__namespace.useRef(0),S=K__namespace.useRef(false),y=()=>d||R==="refreshing"?false:(w.current?.scrollTop??window.scrollY)<=0,C=D=>{y()&&(x.current=D.touches[0].clientY,S.current=true);},M=D=>{if(!S.current||!y())return;let I=D.touches[0].clientY-x.current;if(I<0){v(0),f("idle");return}let L=Math.min(I*.5,n);v(L),f(L>=r?"ready":"pulling");},T=async()=>{if(S.current)if(S.current=false,R==="ready"){f("refreshing"),v(r*.6);try{await a();}finally{f("idle"),v(0);}}else f("idle"),v(0);},N={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[l],P=()=>{if(R==="refreshing")return i||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(N,"animate-spin text-primary")}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:c})]});let D=Math.min(b/r*180,180);return s||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.ArrowDown,{className:o(N,"text-muted-foreground transition-transform"),style:{transform:`rotate(${D}deg)`}}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:R==="ready"?p:m})]})};return jsxRuntime.jsxs("div",{ref:h,className:o(Kh({variant:t,className:e})),...u,children:[jsxRuntime.jsx("div",{className:o(lM({size:l}),"z-10",R==="idle"&&b===0&&"opacity-0"),style:{top:Math.max(b-60,-60),opacity:Math.min(b/(r*.5),1)},children:P()}),jsxRuntime.jsx("div",{ref:w,className:o("transition-transform duration-200",R==="refreshing"&&"ease-out"),style:{transform:`translateY(${b}px)`,transition:S.current?"none":void 0},onTouchStart:C,onTouchMove:M,onTouchEnd:T,children:g})]})});Uh.displayName="PullToRefresh";var jh=classVarianceAuthority.cva("flex min-h-screen w-full",{variants:{layout:{default:"flex-col",sidebar:"flex-row"}},defaultVariants:{layout:"default"}}),Xh=K__namespace.forwardRef(({className:e,layout:t="default",header:a,footer:r,sidebar:n,aside:i,sidebarCollapsed:s=false,sidebarWidth:l="16rem",sidebarCollapsedWidth:d="4rem",asideWidth:m="16rem",fixed:p=false,children:c,...g},u)=>{let h=s?d:l;return jsxRuntime.jsxs("div",{ref:u,className:o(jh({layout:t}),e),style:{"--app-shell-sidebar-width":h,"--app-shell-aside-width":m},...g,children:[a&&jsxRuntime.jsx(ed,{fixed:p,hasSidebar:!!n,children:a}),jsxRuntime.jsxs("div",{className:"flex flex-1",children:[n&&jsxRuntime.jsx(td,{collapsed:s,fixed:p,children:n}),jsxRuntime.jsx("main",{className:o("flex-1 flex flex-col min-h-0",p&&a&&"pt-14",p&&r&&"pb-14"),children:c}),i&&jsxRuntime.jsx(ad,{fixed:p,children:i})]}),r&&jsxRuntime.jsx(rd,{fixed:p,hasSidebar:!!n,children:r})]})});Xh.displayName="AppShell";var ed=K__namespace.forwardRef(({className:e,fixed:t,hasSidebar:a,children:r,...n},i)=>jsxRuntime.jsx("header",{ref:i,className:o("flex h-14 items-center border-b bg-background px-4",t&&"fixed top-0 right-0 z-40",t&&a&&"left-[var(--app-shell-sidebar-width)]",t&&!a&&"left-0",e),...n,children:r}));ed.displayName="AppShellHeader";var td=K__namespace.forwardRef(({className:e,collapsed:t,fixed:a,children:r,...n},i)=>jsxRuntime.jsx("aside",{ref:i,className:o("w-[var(--app-shell-sidebar-width)] shrink-0 border-r bg-background transition-[width] duration-200",a&&"fixed left-0 top-0 bottom-0 z-50",e),"data-collapsed":t,...n,children:r}));td.displayName="AppShellSidebar";var ad=K__namespace.forwardRef(({className:e,fixed:t,children:a,...r},n)=>jsxRuntime.jsx("aside",{ref:n,className:o("w-[var(--app-shell-aside-width)] shrink-0 border-l bg-background",t&&"fixed right-0 top-14 bottom-0 z-40",e),...r,children:a}));ad.displayName="AppShellAside";var rd=K__namespace.forwardRef(({className:e,fixed:t,hasSidebar:a,children:r,...n},i)=>jsxRuntime.jsx("footer",{ref:i,className:o("flex h-14 items-center border-t bg-background px-4",t&&"fixed bottom-0 right-0 z-40",t&&a&&"left-[var(--app-shell-sidebar-width)]",t&&!a&&"left-0",e),...n,children:r}));rd.displayName="AppShellFooter";var qh=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 overflow-auto p-4",e),...t}));qh.displayName="AppShellMain";var Qh=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"}}),Jh=K__namespace.forwardRef(({className:e,variant:t,navigation:a,logo:r,userMenu:n,headerActions:i,breadcrumb:s,defaultCollapsed:l=false,collapsed:d,onCollapsedChange:m,children:p,...c},g)=>{let[u,h]=K__namespace.useState(l),[w,b]=K__namespace.useState(false),v=d??u,R=K__namespace.useCallback(f=>{h(f),m?.(f);},[m]);return jsxRuntime.jsxs("div",{ref:g,className:o(Qh({variant:t}),e),...c,children:[jsxRuntime.jsxs("aside",{"data-slot":"sidebar","data-collapsed":v,className:o("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:r}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:a}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]}),jsxRuntime.jsx(Mo,{open:w,onOpenChange:b,children:jsxRuntime.jsxs(Ir,{side:"left",className:"w-64 p-0",children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:r}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:a}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]})}),jsxRuntime.jsxs("div",{className:o("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(W,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>b(true),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle menu"})]}),jsxRuntime.jsxs(W,{variant:"ghost",size:"icon",className:"hidden lg:flex",onClick:()=>R(!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}),i&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:i})]}),jsxRuntime.jsx("main",{className:"flex-1 p-4 lg:p-6",children:p})]})]})});Jh.displayName="DashboardLayout";var ex=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("space-y-6",e),...t}));ex.displayName="DashboardPage";var tx=K__namespace.forwardRef(({className:e,title:t,description:a,actions:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,className:o("flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",e),...i,children:[jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:t}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),n]}),r&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:r})]}));tx.displayName="DashboardPageHeader";var ax=K__namespace.forwardRef(({className:e,columns:t=4,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("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),...a}));ax.displayName="DashboardGrid";var Ui=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"}}),rx=K__namespace.forwardRef(({className:e,variant:t="centered",logo:a,sideContent:r,backgroundImage:n,sidePosition:i="left",footer:s,children:l,...d},m)=>t==="split"?jsxRuntime.jsxs("div",{ref:m,className:o(Ui({variant:t}),e),...d,children:[jsxRuntime.jsx("div",{className:o("hidden lg:flex lg:w-1/2 flex-col bg-primary text-primary-foreground",i==="right"&&"order-2"),children:r||jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:[a&&jsxRuntime.jsx("div",{className:"mb-8",children:a}),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:o("flex flex-1 flex-col lg:w-1/2",i==="right"&&"order-1"),children:[a&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-6 lg:hidden",children:a}),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:m,className:o(Ui({variant:t}),e),style:n?{backgroundImage:`url(${n})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,...d,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:[a&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:a}),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:m,className:o(Ui({variant:t}),e),...d,children:jsxRuntime.jsxs("div",{className:"w-full max-w-md p-6",children:[a&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:a}),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})]})}));rx.displayName="AuthLayout";var ox=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("form",{ref:a,className:o("space-y-4",e),...t}));ox.displayName="AuthForm";var nx=K__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-2 text-center",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),r]}));nx.displayName="AuthHeader";var ix=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex flex-col gap-2 text-center text-sm",e),...t}));ix.displayName="AuthFooterLinks";var sx=K__namespace.forwardRef(({className:e,text:t="or continue with",...a},r)=>jsxRuntime.jsxs("div",{ref:r,className:o("relative my-4",e),...a,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})})]}));sx.displayName="AuthDivider";var lx=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("grid grid-cols-2 gap-2",e),...t}));lx.displayName="AuthSocialButtons";var Yi=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"}}),dx=K__namespace.forwardRef(({className:e,variant:t="sidebar",navigation:a,title:r,description:n,children:i,...s},l)=>t==="sidebar"?jsxRuntime.jsxs("div",{ref:l,className:o(Yi({variant:t}),e),...s,children:[a&&jsxRuntime.jsx("aside",{className:"lg:w-64 shrink-0",children:jsxRuntime.jsx("nav",{className:"flex flex-col gap-1",children:a})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-6",children:[(r||n)&&jsxRuntime.jsx(sn,{title:r,description:n}),i]})]}):t==="tabs"?jsxRuntime.jsxs("div",{ref:l,className:o(Yi({variant:t}),e),...s,children:[(r||n)&&jsxRuntime.jsx(sn,{title:r,description:n}),a,jsxRuntime.jsx("div",{className:"pt-4",children:i})]}):jsxRuntime.jsxs("div",{ref:l,className:o(Yi({variant:t}),e),...s,children:[(r||n)&&jsxRuntime.jsx(sn,{title:r,description:n}),i]}));dx.displayName="SettingsLayout";var sn=K__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-1",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),r]}));sn.displayName="SettingsHeader";var cx=K__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-4",e),...n,children:[(t||a)&&jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h2",{className:"text-lg font-medium",children:t}),a&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),r]}));cx.displayName="SettingsSection";var mx=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("rounded-lg border bg-card p-6",e),...t}));mx.displayName="SettingsCard";var ux=K__namespace.forwardRef(({className:e,label:t,description:a,htmlFor:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,className:o("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),...i,children:[jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[t&&jsxRuntime.jsx("label",{htmlFor:r,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),a&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),jsxRuntime.jsx("div",{className:"shrink-0",children:n})]}));ux.displayName="SettingsRow";var px=K__namespace.forwardRef(({className:e,active:t,icon:a,children:r,...n},i)=>jsxRuntime.jsxs("button",{ref:i,type:"button",className:o("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:[a&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:a}),r]}));px.displayName="SettingsNavItem";var fx=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("h-px bg-border my-4",e),...t}));fx.displayName="SettingsSeparator";var Lr=(e,t,a)=>({duration:e,delay:t,ease:a||[.4,0,.2,1]}),pM={hidden:e=>({opacity:e}),visible:{opacity:1},exit:e=>({opacity:e})},gx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialOpacity:l=0,onAnimationStart:d,onAnimationComplete:m},p)=>{let c=jsxRuntime.jsx(framerMotion.motion.div,{ref:p,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:pM,custom:l,transition:Lr(a,r,n),className:o(i),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&c}):c});gx.displayName="Fade";var fM=(e,t)=>{let a=typeof t=="number"?`${t}px`:t,r={up:{y:a},down:{y:`-${a}`},left:{x:a},right:{x:`-${a}`}};return {hidden:{opacity:0,...r[e]},visible:{opacity:1,x:0,y:0},exit:{opacity:0,...r[e]}}},bx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,direction:l="up",offset:d=20,onAnimationStart:m,onAnimationComplete:p},c)=>{let g=K__namespace.useMemo(()=>fM(l,d),[l,d]),u=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:g,transition:Lr(a,r,n),className:o(i),onAnimationStart:m,onAnimationComplete:p,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&u}):u});bx.displayName="Slide";var gM={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"},bM={hidden:e=>({opacity:0,scale:e}),visible:{opacity:1,scale:1},exit:e=>({opacity:0,scale:e})},vx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialScale:l=.9,origin:d="center",onAnimationStart:m,onAnimationComplete:p},c)=>{let g=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:bM,custom:l,transition:Lr(a,r,n),className:o(i),style:{transformOrigin:gM[d]},onAnimationStart:m,onAnimationComplete:p,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&g}):g});vx.displayName="Scale";var hx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,horizontal:s=false,startingSize:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:p},c)=>{let g=s?"width":"height",u={hidden:{[g]:l,opacity:d?0:1},visible:{[g]:"auto",opacity:1},exit:{[g]:l,opacity:d?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:"visible",exit:"exit",variants:u,transition:Lr(a,r,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:p,children:t})})});hx.displayName="Collapse";var xx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.4,delay:r=0,ease:n,className:i,initialWidth:s=0,initialHeight:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:p},c)=>{let g={hidden:{width:s,height:l,opacity:d?0:1},visible:{width:"auto",height:"auto",opacity:1},exit:{width:s,height:l,opacity:d?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:"visible",exit:"exit",variants:g,transition:Lr(a,r,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:p,children:t})})});xx.displayName="Expand";var yx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialRotation:l=-180,finalRotation:d=0,onAnimationStart:m,onAnimationComplete:p},c)=>{let g={hidden:{opacity:0,rotate:l},visible:{opacity:1,rotate:d},exit:{opacity:0,rotate:l}},u=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:g,transition:Lr(a,r,n),className:o(i),onAnimationStart:m,onAnimationComplete:p,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&u}):u});yx.displayName="Rotate";var Rx=K__namespace.forwardRef(({front:e,back:t,direction:a="horizontal",flipped:r=false,duration:n=.6,delay:i=0,ease:s,className:l,onAnimationStart:d,onAnimationComplete:m},p)=>{let c=a==="horizontal"?"rotateY":"rotateX";return jsxRuntime.jsx("div",{ref:p,className:o("relative",l),style:{perspective:1e3},children:jsxRuntime.jsxs(framerMotion.motion.div,{animate:{[c]:r?180:0},transition:Lr(n,i,s),style:{transformStyle:"preserve-3d"},onAnimationStart:d,onAnimationComplete:m,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden"},children:e}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden",transform:`${c}(180deg)`},children:t})]})})});Rx.displayName="Flip";var wx=K__namespace.forwardRef(({color:e="currentColor",duration:t=.6,children:a,className:r,disabled:n=false},i)=>{let[s,l]=K__namespace.useState([]),d=K__namespace.useRef(null),m=c=>{if(n)return;let g=d.current;if(!g)return;let u=g.getBoundingClientRect(),h=c.clientX-u.left,w=c.clientY-u.top,b=Math.max(u.width,u.height)*2,v={id:Date.now(),x:h,y:w,size:b};l(R=>[...R,v]);},p=c=>{l(g=>g.filter(u=>u.id!==c));};return jsxRuntime.jsxs("div",{ref:i,className:o("relative overflow-hidden",r),onClick:m,children:[jsxRuntime.jsx("div",{ref:d,className:"relative z-0",children:a}),jsxRuntime.jsx(framerMotion.AnimatePresence,{children:s.map(c=>jsxRuntime.jsx(framerMotion.motion.span,{initial:{scale:0,opacity:.35},animate:{scale:1,opacity:0},exit:{opacity:0},transition:{duration:t,ease:"easeOut"},onAnimationComplete:()=>p(c.id),className:"pointer-events-none absolute rounded-full",style:{left:c.x-c.size/2,top:c.y-c.size/2,width:c.size,height:c.size,backgroundColor:e}},c.id))})]})});wx.displayName="Ripple";var Nx=K__namespace.forwardRef(({children:e,animate:t=true,height:a=10,duration:r=.5,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),p=s?d:t,c={idle:{y:0},bounce:{y:[0,-a,0],transition:{duration:r,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:p?"bounce":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});Nx.displayName="Bounce";var xM={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]},Px=K__namespace.forwardRef(({children:e,animate:t=true,intensity:a="normal",duration:r=.5,count:n=1,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),p=s?d:t,c={idle:{x:0},shake:{x:xM[a],transition:{duration:r,ease:"easeInOut",repeat:n-1}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:p?"shake":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});Px.displayName="Shake";var yM={slow:"animate-[pulse_3s_ease-in-out_infinite]",normal:"animate-[pulse_2s_ease-in-out_infinite]",fast:"animate-[pulse_1s_ease-in-out_infinite]"},Cx=K__namespace.forwardRef(({children:e,animate:t=true,speed:a="normal",className:r},n)=>jsxRuntime.jsx("div",{ref:n,className:o(t&&yM[a],r),children:e}));Cx.displayName="Pulse";var Sx=K__namespace.forwardRef(({children:e,animate:t=true,angle:a=10,duration:r=.3,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),p=s?d:t,c={idle:{rotate:0},wiggle:{rotate:[0,-a,a,-a,a,0],transition:{duration:r,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:p?"wiggle":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});Sx.displayName="Wiggle";var Tx=K__namespace.forwardRef(({children:e,animate:t=false,scale:a=1.2,duration:r=.2,className:n,triggerOnHover:i=false,triggerOnClick:s=false},l)=>{let[d,m]=K__namespace.useState(false),p=t||d,c={type:"spring",stiffness:400,damping:17,duration:r},g=()=>{s&&(m(true),setTimeout(()=>m(false),r*1e3));};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,animate:{scale:p?a:1},transition:c,className:o(n),onMouseEnter:()=>i&&m(true),onMouseLeave:()=>i&&m(false),onClick:g,children:e})});Tx.displayName="Pop";var CM=(e,t,a,r)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,a);return s?`${l}${r}${s}`:l},Mx=K__namespace.forwardRef(({value:e,from:t=0,duration:a=2,decimals:r=0,prefix:n="",suffix:i="",separator:s=",",decimalSeparator:l=".",animateOnView:d=true,delay:m=0,className:p,onComplete:c},g)=>{let u=K__namespace.useRef(null),h=framerMotion.useInView(u,{once:true}),[w,b]=K__namespace.useState(!d);K__namespace.useEffect(()=>{if(d&&h){let x=setTimeout(()=>b(true),m*1e3);return ()=>clearTimeout(x)}},[d,h,m]);let v={damping:30,stiffness:100,duration:a*1e3},R=framerMotion.useSpring(w?e:t,v),f=framerMotion.useTransform(R,x=>CM(x,r,s,l));return K__namespace.useEffect(()=>{w&&R.set(e);},[w,e,R]),K__namespace.useEffect(()=>{let x=R.on("change",S=>{Math.abs(S-e)<.01&&c&&c();});return ()=>x()},[R,e,c]),jsxRuntime.jsx("span",{ref:u,className:o(p),children:jsxRuntime.jsxs("span",{ref:g,children:[n,jsxRuntime.jsx(framerMotion.motion.span,{children:f}),i]})})});Mx.displayName="Counter";var kx=K__namespace.forwardRef(({text:e,speed:t=50,delay:a=0,pauseBetween:r=1500,cursor:n=true,cursorChar:i="|",loop:s=false,deleteSpeed:l=30,animateOnView:d=true,className:m,cursorClassName:p,onComplete:c},g)=>{let u=Array.isArray(e)?e:[e],[h,w]=K__namespace.useState(""),[b,v]=K__namespace.useState(0),[R,f]=K__namespace.useState(false),[x,S]=K__namespace.useState(false),y=K__namespace.useRef(null),C=framerMotion.useInView(y,{once:true}),[M,T]=K__namespace.useState(!d);return K__namespace.useEffect(()=>{if(d&&C){let N=setTimeout(()=>T(true),a*1e3);return ()=>clearTimeout(N)}},[d,C,a]),K__namespace.useEffect(()=>{if(!M||x)return;let N=u[b],P;return R?h.length>0?P=setTimeout(()=>{w(h.slice(0,-1));},l):(f(false),v(D=>(D+1)%u.length)):h.length<N.length?P=setTimeout(()=>{w(N.slice(0,h.length+1));},t):b<u.length-1||s?P=setTimeout(()=>{f(true);},r):(S(true),c?.()),()=>clearTimeout(P)},[M,h,b,R,x,u,t,l,r,s,c]),jsxRuntime.jsxs("span",{ref:y,className:o(m),children:[jsxRuntime.jsx("span",{ref:g,children:h}),n&&jsxRuntime.jsx(framerMotion.motion.span,{animate:{opacity:[1,0]},transition:{duration:.8,repeat:1/0,repeatType:"reverse"},className:o("ml-0.5",p),children:i})]})});kx.displayName="Typewriter";var Dx=K__namespace.forwardRef(({children:e,direction:t="up",stagger:a=.05,duration:r=.5,delay:n=0,splitBy:i="word",animateOnView:s=true,className:l},d)=>{let m=K__namespace.useRef(null),p=framerMotion.useInView(m,{once:true,amount:.5}),c=s?p:true,g=typeof e=="string"?e:"",u=i==="word"?g.split(" "):g.split(""),h={up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}},w={hidden:{},visible:{transition:{staggerChildren:a,delayChildren:n}}},b={hidden:{opacity:0,...h[t]},visible:{opacity:1,x:0,y:0,transition:{duration:r,ease:"easeInOut"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:d,className:o("inline-flex flex-wrap",l),variants:w,initial:"hidden",animate:c?"visible":"hidden",children:jsxRuntime.jsx("span",{ref:m,children:u.map((v,R)=>jsxRuntime.jsxs(framerMotion.motion.span,{variants:b,className:"inline-block",children:[v,i==="word"&&R<u.length-1&&"\xA0"]},R))})})});Dx.displayName="TextReveal";var Lx=K__namespace.forwardRef(({words:e,duration:t=2,animation:a="slide",animationDuration:r=.5,className:n,loop:i=true},s)=>{let[l,d]=K__namespace.useState(0);K__namespace.useEffect(()=>{if(!i&&l===e.length-1)return;let p=setInterval(()=>{d(c=>(c+1)%e.length);},t*1e3);return ()=>clearInterval(p)},[e.length,t,i,l]);let m=()=>{switch(a){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:o("relative inline-block",n),children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(framerMotion.motion.span,{variants:m(),initial:"initial",animate:"animate",exit:"exit",transition:{duration:r},className:"inline-block",children:e[l]},e[l])})})});Lx.displayName="WordRotate";var Hx=K__namespace.forwardRef(({children:e,direction:t="up",distance:a=50,duration:r=.6,delay:n=0,once:i=true,threshold:s=.1,className:l,scale:d,rotate:m,blur:p,ease:c=[.4,0,.2,1]},g)=>{let u=K__namespace.useRef(null),h=framerMotion.useInView(u,{once:i,amount:s}),b={up:{x:0,y:a},down:{x:0,y:-a},left:{x:a,y:0},right:{x:-a,y:0},none:{x:0,y:0}}[t],v={hidden:{opacity:0,x:b.x,y:b.y,scale:d??1,rotate:m??0,filter:p?`blur(${p}px)`:"blur(0px)"},visible:{opacity:1,x:0,y:0,scale:1,rotate:0,filter:"blur(0px)",transition:{duration:r,delay:n,ease:c}}};return jsxRuntime.jsx("div",{ref:u,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:g,variants:v,initial:"hidden",animate:h?"visible":"hidden",className:o(l),children:e})})});Hx.displayName="ScrollReveal";var Ax=K__namespace.forwardRef(({position:e="top",size:t=4,color:a="hsl(var(--primary))",backgroundColor:r="transparent",zIndex:n=50,className:i,container:s,showPercentage:l=false,useSpring:d=true},m)=>{let{scrollYProgress:p}=framerMotion.useScroll({container:s}),c=framerMotion.useSpring(p,{stiffness:100,damping:30,restDelta:.001}),g=d?c:p,u=e==="top"||e==="bottom",h={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}},w=u?"scaleX":"scaleY",b=u?"left":"top";return jsxRuntime.jsxs("div",{ref:m,className:o("fixed",i),style:{...h[e],zIndex:n,backgroundColor:r},children:[jsxRuntime.jsx(framerMotion.motion.div,{className:"h-full w-full",style:{[w]:g,transformOrigin:b,backgroundColor:a}}),l&&jsxRuntime.jsx(TM,{progress:g,position:e})]})});Ax.displayName="ScrollProgress";var TM=({progress:e,position:t})=>{let a=framerMotion.useTransform(e,s=>Math.round(s*100)),[r,n]=K__namespace.useState(0);return K__namespace.useEffect(()=>{let s=a.on("change",n);return ()=>s()},[a]),jsxRuntime.jsxs("span",{className:o("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:[r,"%"]})},zx=K__namespace.forwardRef(({children:e,speed:t=.5,direction:a="vertical",className:r,container:n},i)=>{let s=K__namespace.useRef(null),{scrollYProgress:l}=framerMotion.useScroll({target:s,container:n,offset:["start end","end start"]}),d=[-100*t,100*t],m=framerMotion.useTransform(l,[0,1],d),p=framerMotion.useSpring(m,{stiffness:100,damping:30}),c=a==="horizontal"?p:0,g=a==="vertical"?p:0;return jsxRuntime.jsx("div",{ref:s,className:o("overflow-hidden",r),children:jsxRuntime.jsx(framerMotion.motion.div,{ref:i,style:{x:c,y:g},children:e})})});zx.displayName="Parallax";var Ox=K__namespace.forwardRef(({children:e,width:t,height:a,duration:r=1.5,direction:n="right",baseColor:i="hsl(var(--muted))",highlightColor:s="hsl(var(--muted-foreground) / 0.1)",borderRadius:l,className:d,active:m=true},p)=>{let c={left:"to left",right:"to right",top:"to top",bottom:"to bottom"},g={left:"shimmer-left",right:"shimmer-right",top:"shimmer-top",bottom:"shimmer-bottom"};return jsxRuntime.jsxs("div",{ref:p,className:o("relative overflow-hidden",d),style:{width:t,height:a,borderRadius:l,backgroundColor:i},children:[e,m&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(${c[n]}, transparent, ${s}, transparent)`,animation:`${g[n]} ${r}s infinite`}}),jsxRuntime.jsx("style",{children:`
32
32
  @keyframes shimmer-right {
33
33
  0% { transform: translateX(-100%); }
34
34
  100% { transform: translateX(100%); }
@@ -45,5 +45,5 @@
45
45
  0% { transform: translateY(-100%); }
46
46
  100% { transform: translateY(100%); }
47
47
  }
48
- `})]})});Sx.displayName="Shimmer";var mM={sm:24,md:40,lg:56,xl:80},pM={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"}},Tx=$__namespace.forwardRef(({show:e=true,size:t="md",variant:a="success",strokeWidth:r=2,duration:n=.6,delay:i=0,className:s,onComplete:l},d)=>{let m=mM[t],u=pM[a],p={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i,ease:"easeOut"}}},g={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i+n*.4,ease:"easeOut"}}};return jsxRuntime.jsxs("svg",{ref:d,width:m,height:m,viewBox:"0 0 50 50",className:o(s),children:[jsxRuntime.jsx(framerMotion.motion.circle,{cx:"25",cy:"25",r:"22",fill:"none",strokeWidth:r,className:u.circle,variants:p,initial:"hidden",animate:e?"visible":"hidden"}),jsxRuntime.jsx(framerMotion.motion.path,{d:"M14 27 L22 35 L36 18",fill:"none",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:u.check,variants:g,initial:"hidden",animate:e?"visible":"hidden",onAnimationComplete:()=>e&&l?.()})]})});Tx.displayName="Checkmark";var no={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},Mx=$__namespace.forwardRef(({autoTrigger:e=false,delay:t=0,options:a={},children:r,onTrigger:n},i)=>{let s=$__namespace.useCallback(()=>{let l={...no,...a};oo__default.default(l),n?.();},[a,n]);return $__namespace.useEffect(()=>{if(e){let l=setTimeout(s,t);return ()=>clearTimeout(l)}},[e,t,s]),r?jsxRuntime.jsx("button",{ref:i,type:"button",onClick:s,children:r}):null});Mx.displayName="Confetti";var uM=()=>{let e=$__namespace.useCallback(r=>{let n={...no,...r};oo__default.default(n);},[]),t=$__namespace.useCallback(()=>{let n=Date.now()+3e3,i=setInterval(()=>{let s=n-Date.now();if(s<=0){clearInterval(i);return}let l=50*(s/3e3);oo__default.default({...no,particleCount:l,origin:{x:Math.random()*.4+.1,y:Math.random()-.2}}),oo__default.default({...no,particleCount:l,origin:{x:Math.random()*.4+.5,y:Math.random()-.2}});},250);},[]),a=$__namespace.useCallback((r="both")=>{let n={x:0,y:1},i={x:1,y:1};(r==="left"||r==="both")&&oo__default.default({...no,particleCount:50,angle:60,spread:55,origin:n}),(r==="right"||r==="both")&&oo__default.default({...no,particleCount:50,angle:120,spread:55,origin:i});},[]);return {fire:e,fireworks:t,cannon:a}},kx=$__namespace.forwardRef(({children:e,color:t="hsl(var(--primary))",intensity:a=20,spread:r=0,animate:n=false,duration:i=2,className:s},l)=>{let d={boxShadow:`0 0 ${a}px ${r}px ${t}`};return n?jsxRuntime.jsx(framerMotion.motion.div,{ref:l,className:o(s),animate:{boxShadow:[`0 0 ${a}px ${r}px ${t}`,`0 0 ${a*1.5}px ${r+5}px ${t}`,`0 0 ${a}px ${r}px ${t}`]},transition:{duration:i,repeat:1/0,ease:"easeInOut"},children:e}):jsxRuntime.jsx("div",{ref:l,className:o(s),style:d,children:e})});kx.displayName="Glow";var Cx=(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}),Dx=$__namespace.forwardRef(({children:e,count:t=10,color:a="hsl(var(--primary))",minSize:r=4,maxSize:n=8,duration:i=1.5,className:s},l)=>{let[d,m]=$__namespace.useState([]);return $__namespace.useEffect(()=>{let u=Array.from({length:t},()=>Cx(r,n));m(u);let p=setInterval(()=>{m(g=>{let c=[...g],v=Math.floor(Math.random()*t);return c[v]=Cx(r,n),c});},i*500);return ()=>clearInterval(p)},[t,r,n,i]),jsxRuntime.jsxs("div",{ref:l,className:o("relative inline-block",s),children:[e,d.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:i,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:a})},u.id))]})});Dx.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=Yy;exports.AccordionItem=pc;exports.ActionBar=ev;exports.ActionBarButton=tv;exports.ActionGroup=Ob;exports.ActionIcon=fg;exports.ActionMenu=rv;exports.ActionSheet=Sh;exports.Alert=Hx;exports.AlertDescription=zx;exports.AlertDialog=qy;exports.AlertDialogAction=Cc;exports.AlertDialogCancel=Sc;exports.AlertDialogContent=yc;exports.AlertDialogDescription=Pc;exports.AlertDialogFooter=wc;exports.AlertDialogHeader=Rc;exports.AlertDialogOverlay=ds;exports.AlertDialogPortal=xc;exports.AlertDialogTitle=Nc;exports.AlertDialogTrigger=Zy;exports.AlertTitle=Ax;exports.AnnouncementBanner=vh;exports.AppShell=Hh;exports.AppShellAside=_l;exports.AppShellFooter=Kl;exports.AppShellHeader=$l;exports.AppShellMain=Ah;exports.AppShellSidebar=Wl;exports.AreaChart=Fg;exports.AspectRatio=iR;exports.AuthDivider=Yh;exports.AuthFooterLinks=Uh;exports.AuthForm=_h;exports.AuthHeader=Kh;exports.AuthLayout=Wh;exports.AuthSocialButtons=jh;exports.Autocomplete=rf;exports.Avatar=Fa;exports.AvatarFallback=Oa;exports.AvatarGroup=Em;exports.AvatarImage=hr;exports.BackTop=Au;exports.Badge=Ox;exports.BarChart=zg;exports.BatteryMeter=Tv;exports.BottomNavigation=Rh;exports.Bounce=dx;exports.Breadcrumb=Vc;exports.BreadcrumbEllipsis=zc;exports.BreadcrumbItem=Ic;exports.BreadcrumbLink=Ec;exports.BreadcrumbList=Lc;exports.BreadcrumbPage=Hc;exports.BreadcrumbSeparator=Ac;exports.Button=O;exports.ButtonGroup=Eb;exports.COUNTRIES=wu;exports.Calendar=Pr;exports.Card=ad;exports.CardContent=od;exports.CardFooter=nd;exports.CardHeader=rd;exports.Carousel=Yg;exports.CarouselContent=jg;exports.CarouselItem=Xg;exports.CarouselNext=sl;exports.CarouselPrevious=il;exports.Center=Yv;exports.Checkbox=po;exports.Checkmark=Tx;exports.Chip=cp;exports.CircularProgress=hp;exports.CloseButton=mg;exports.Code=vf;exports.Collapse=ox;exports.Collapsible=bc;exports.CollapsibleContent=hc;exports.CollapsibleTrigger=vc;exports.ColorArea=Bv;exports.ColorField=Db;exports.ColorPicker=du;exports.ColorSlider=Gv;exports.ColorSwatch=Lr;exports.ColorSwatchPicker=Iv;exports.ColorWheel=Wv;exports.Combobox=Tm;exports.Command=gs;exports.CommandDialog=NR;exports.CommandEmpty=xm;exports.CommandGroup=ym;exports.CommandInput=vm;exports.CommandItem=wm;exports.CommandList=hm;exports.CommandSeparator=Rm;exports.CommandShortcut=Nm;exports.Confetti=Mx;exports.ConfirmDialog=Ys;exports.ContextMenu=Ey;exports.ContextMenuCheckboxItem=Zd;exports.ContextMenuContent=Xd;exports.ContextMenuGroup=Ay;exports.ContextMenuItem=qd;exports.ContextMenuLabel=Jd;exports.ContextMenuPortal=zy;exports.ContextMenuRadioGroup=Fy;exports.ContextMenuRadioItem=Qd;exports.ContextMenuSeparator=ec;exports.ContextMenuShortcut=tc;exports.ContextMenuSub=By;exports.ContextMenuSubContent=jd;exports.ContextMenuSubTrigger=Yd;exports.ContextMenuTrigger=Hy;exports.ContextualHelp=gv;exports.CopyButton=Lg;exports.Counter=fx;exports.CurrencyInput=fu;exports.DEFAULT_COLORS=Fo;exports.DashboardGrid=$h;exports.DashboardLayout=Fh;exports.DashboardPage=Oh;exports.DashboardPageHeader=Gh;exports.DataTable=Vw;exports.DateField=Nb;exports.DateInput=yu;exports.DatePicker=km;exports.DateRangePicker=Wf;exports.DefaultErrorFallback=Gs;exports.Dialog=$i;exports.DialogClose=qx;exports.DialogContent=on;exports.DialogDescription=md;exports.DialogFooter=dd;exports.DialogHeader=ld;exports.DialogOverlay=Wi;exports.DialogPortal=sd;exports.DialogTitle=cd;exports.DialogTrigger=Xx;exports.DiskUsageMeter=Sv;exports.Dots=gp;exports.Drawer=Yc;exports.DrawerClose=pR;exports.DrawerContent=Xc;exports.DrawerDescription=Jc;exports.DrawerFooter=Zc;exports.DrawerHeader=qc;exports.DrawerOverlay=ms;exports.DrawerPortal=jc;exports.DrawerTitle=Qc;exports.DrawerTrigger=mR;exports.DropdownMenu=_a;exports.DropdownMenuCheckboxItem=kd;exports.DropdownMenuContent=fa;exports.DropdownMenuGroup=vy;exports.DropdownMenuItem=xt;exports.DropdownMenuLabel=Vd;exports.DropdownMenuPortal=hy;exports.DropdownMenuRadioGroup=yy;exports.DropdownMenuRadioItem=Dd;exports.DropdownMenuSeparator=un;exports.DropdownMenuShortcut=Ld;exports.DropdownMenuSub=xy;exports.DropdownMenuSubContent=Md;exports.DropdownMenuSubTrigger=Td;exports.DropdownMenuTrigger=Ka;exports.EMOJIS=dl;exports.EMOJI_CATEGORIES=ni;exports.EmojiPicker=Zg;exports.EmptyState=Vp;exports.ErrorBoundary=vN;exports.Expand=nx;exports.FAB=BT;exports.Fade=tx;exports.FieldContext=Is;exports.FileUpload=nu;exports.Flex=Xo;exports.Flip=sx;exports.FloatingActionButton=Bl;exports.Form=of;exports.FormContext=Ls;exports.FormControl=df;exports.FormDescription=cf;exports.FormField=nf;exports.FormItem=sf;exports.FormLabel=lf;exports.FormMessage=mf;exports.FullCalendar=Hg;exports.Glow=kx;exports.Grid=Mi;exports.GridItem=Zv;exports.GridList=Nv;exports.HStack=Kv;exports.HoverCard=Jy;exports.HoverCardContent=Dc;exports.HoverCardTrigger=eR;exports.IconButton=zb;exports.IllustratedMessage=jb;exports.Image=yf;exports.ImageCropper=ab;exports.ImageViewer=Xs;exports.ImageViewerTrigger=sg;exports.Indicator=xg;exports.IndicatorWrapper=yg;exports.InfiniteScroll=jf;exports.InlineAlert=Qb;exports.Input=nn;exports.InputOTP=Rp;exports.InputOTPGroup=wp;exports.InputOTPSeparator=Pp;exports.InputOTPSlot=Np;exports.KanbanBoard=_g;exports.Kbd=Mg;exports.Label=Ba;exports.LabeledValue=oh;exports.LabeledValueGroup=ih;exports.LineChart=Ag;exports.Link=Iu;exports.List=zp;exports.ListItem=Fp;exports.ListItemText=Op;exports.ListView=lv;exports.Listbox=Sf;exports.ListboxItem=Tf;exports.Loading=Gf;exports.LoadingOverlay=Ef;exports.MASK_PRESETS=Cs;exports.MaskedInput=vu;exports.Menubar=zu;exports.MenubarCheckboxItem=Wu;exports.MenubarContent=Gu;exports.MenubarGroup=hw;exports.MenubarItem=$u;exports.MenubarLabel=Ku;exports.MenubarMenu=vw;exports.MenubarPortal=xw;exports.MenubarRadioGroup=Rw;exports.MenubarRadioItem=_u;exports.MenubarSeparator=Uu;exports.MenubarShortcut=Yu;exports.MenubarSub=yw;exports.MenubarSubContent=Ou;exports.MenubarSubTrigger=Fu;exports.MenubarTrigger=Bu;exports.Meter=Ni;exports.Modal=Qf;exports.ModalClose=TN;exports.ModalContent=eg;exports.ModalDescription=og;exports.ModalFooter=ag;exports.ModalHeader=tg;exports.ModalOverlay=Us;exports.ModalPortal=Jf;exports.ModalRoot=CN;exports.ModalTitle=rg;exports.ModalTrigger=SN;exports.MultiSelect=Sm;exports.NProgress=Af;exports.Navbar=Su;exports.NavbarBrand=Tu;exports.NavbarContent=Mu;exports.NavbarItem=ku;exports.NavbarLink=Du;exports.NavigationMenu=Fc;exports.NavigationMenuContent=Wc;exports.NavigationMenuIndicator=_c;exports.NavigationMenuItem=dR;exports.NavigationMenuLink=cR;exports.NavigationMenuList=Oc;exports.NavigationMenuTrigger=$c;exports.NavigationMenuViewport=cs;exports.NotificationCenter=fh;exports.NumberField=bb;exports.NumberInput=Cm;exports.Pagination=mm;exports.PaginationContent=pm;exports.PaginationEllipsis=bm;exports.PaginationItem=um;exports.PaginationLink=yn;exports.PaginationNext=gm;exports.PaginationPrevious=fm;exports.Parallax=Nx;exports.PasswordInput=Pm;exports.PhoneInput=Nu;exports.PieChart=Bg;exports.Pop=ux;exports.Popover=ve;exports.PopoverAnchor=Qi;exports.PopoverContent=ue;exports.PopoverTrigger=Re;exports.Portal=vg;exports.Progress=xn;exports.PullToRefresh=Lh;exports.Pulse=mx;exports.QRCode=ob;exports.RadioGroup=ac;exports.RadioGroupItem=rc;exports.RangeSlider=mv;exports.Rating=Am;exports.ResizableHandle=l0;exports.ResizablePanel=s0;exports.ResizablePanelGroup=i0;exports.RichTextEditor=Jg;exports.Ripple=lx;exports.Rotate=ix;exports.Scale=rx;exports.ScrollArea=dt;exports.ScrollBar=rs;exports.ScrollProgress=wx;exports.ScrollReveal=Rx;exports.ScrollShadow=Ng;exports.SearchBar=mh;exports.SearchField=yb;exports.SegmentedControl=eu;exports.SegmentedControlItem=tu;exports.Select=Ui;exports.SelectContent=mn;exports.SelectGroup=uy;exports.SelectItem=pn;exports.SelectLabel=Cd;exports.SelectScrollDownButton=Xi;exports.SelectScrollUpButton=ji;exports.SelectSeparator=Sd;exports.SelectTrigger=cn;exports.SelectValue=Yi;exports.Separator=ma;exports.SettingsCard=Zh;exports.SettingsHeader=Qo;exports.SettingsLayout=Xh;exports.SettingsNavItem=Jh;exports.SettingsRow=Qh;exports.SettingsSection=qh;exports.SettingsSeparator=ex;exports.Shake=cx;exports.Sheet=ho;exports.SheetClose=Cy;exports.SheetContent=xr;exports.SheetDescription=Ud;exports.SheetFooter=_d;exports.SheetHeader=Wd;exports.SheetOverlay=ts;exports.SheetPortal=Gd;exports.SheetTitle=Kd;exports.SheetTrigger=Py;exports.Shimmer=Sx;exports.Sidebar=Fm;exports.SidebarContent=Um;exports.SidebarFooter=_m;exports.SidebarGroup=Ym;exports.SidebarGroupAction=Xm;exports.SidebarGroupContent=qm;exports.SidebarGroupLabel=jm;exports.SidebarHeader=Wm;exports.SidebarInset=$m;exports.SidebarMenu=Zm;exports.SidebarMenuAction=tp;exports.SidebarMenuBadge=ap;exports.SidebarMenuButton=ep;exports.SidebarMenuItem=Qm;exports.SidebarMenuSkeleton=rp;exports.SidebarMenuSub=op;exports.SidebarMenuSubButton=ip;exports.SidebarMenuSubItem=np;exports.SidebarProvider=Bm;exports.SidebarRail=Gm;exports.SidebarSeparator=Km;exports.SidebarTrigger=Om;exports.SimpleGrid=Qv;exports.Skeleton=ln;exports.Slide=ax;exports.Slider=bn;exports.Snippet=xf;exports.SortableList=oN;exports.Spacer=Dg;exports.Sparkles=Dx;exports.Spinner=cm;exports.SpotlightSearch=uh;exports.StatCard=Ep;exports.StatusLight=Kb;exports.Step=Zu;exports.Steps=Xu;exports.SwipeActions=kh;exports.Switch=vd;exports.Table=em;exports.TableBody=am;exports.TableCaption=sm;exports.TableCell=im;exports.TableFooter=rm;exports.TableHead=nm;exports.TableHeader=tm;exports.TableRow=om;exports.Tabs=zd;exports.TabsContent=Od;exports.TabsList=Bd;exports.TabsTrigger=Fd;exports.TagGroup=hv;exports.TagInput=Mp;exports.TextBadge=lo;exports.TextField=mb;exports.TextReveal=bx;exports.Textarea=xd;exports.ThemeProvider=nb;exports.ThemeToggle=ib;exports.TimeField=Sb;exports.TimeInput=mu;exports.TimePicker=_f;exports.Timeline=_p;exports.TimelineContent=jp;exports.TimelineItem=Up;exports.TimelineOpposite=Xp;exports.TimelineSeparator=Yp;exports.Toaster=My;exports.Toggle=nc;exports.ToggleGroup=sc;exports.ToggleGroupItem=lc;exports.Tooltip=$a;exports.TooltipContent=pa;exports.TooltipProvider=Ga;exports.TooltipTrigger=Wa;exports.TreeView=ef;exports.Typewriter=gx;exports.User=ff;exports.VStack=Uv;exports.VirtualList=wN;exports.VisuallyHidden=Sg;exports.Well=th;exports.Wiggle=px;exports.WordRotate=vx;exports.actionBarVariants=Jb;exports.actionGroupVariants=Fb;exports.actionIconVariants=ug;exports.actionMenuTriggerVariants=av;exports.actionSheetItemVariants=Ch;exports.actionSheetVariants=Ph;exports.announcementBannerVariants=bh;exports.appShellVariants=Eh;exports.applyMask=En;exports.authLayoutVariants=Hi;exports.autocompleteInputVariants=af;exports.avatarGroupVariants=Im;exports.backTopVariants=Hu;exports.badgeIndicatorVariants=Bx;exports.bottomNavigationVariants=yh;exports.buttonGroupVariants=Lb;exports.buttonVariants=Me;exports.cardVariants=td;exports.carouselVariants=Kg;exports.chartContainerVariants=Bo;exports.chipVariants=dp;exports.circularProgressVariants=vp;exports.closeButtonVariants=cg;exports.cn=o;exports.codeVariants=bf;exports.colorAreaVariants=Ev;exports.colorFieldVariants=kb;exports.colorSliderVariants=Ov;exports.colorSwatchPickerVariants=kv;exports.colorSwatchVariants=lu;exports.colorWheelVariants=$v;exports.confirmDialogIconVariants=ig;exports.contextualHelpTriggerVariants=fv;exports.copyButtonVariants=Vg;exports.currencyInputVariants=pu;exports.dashboardLayoutVariants=Bh;exports.dateFieldVariants=wb;exports.dateInputVariants=hu;exports.defaultColors=Dv;exports.dotsVariants=fp;exports.emojiPickerVariants=qg;exports.emptyStateVariants=Dp;exports.fabVariants=qo;exports.fileUploadVariants=au;exports.flexVariants=_v;exports.formatCurrency=Ps;exports.formatDate=An;exports.formatFileSize=In;exports.formatPhoneNumber=Bn;exports.fullCalendarVariants=Eg;exports.getFileIcon=ru;exports.getMaskPlaceholder=bu;exports.gridItemVariants=qv;exports.gridListItemVariants=wv;exports.gridListVariants=Rv;exports.gridVariants=Xv;exports.hexToRgb=Av;exports.hsvToRgb=Si;exports.iconButtonVariants=Ab;exports.illustratedMessageVariants=Yb;exports.imageCropperVariants=tb;exports.imageVariants=zs;exports.indicatorVariants=hg;exports.infiniteScrollLoaderVariants=_s;exports.infiniteScrollVariants=Yf;exports.inlineAlertVariants=Zb;exports.inputOTPVariants=yp;exports.inputSizeVariants=db;exports.kanbanBoardVariants=$g;exports.kanbanCardVariants=ol;exports.kanbanColumnVariants=Wg;exports.kbdVariants=Tg;exports.labelSizeVariants=cb;exports.labeledValueGroupVariants=nh;exports.labeledValueVariants=rh;exports.linkVariants=Lu;exports.listItemVariants=Bp;exports.listVariants=Ap;exports.listViewItemVariants=sv;exports.listViewVariants=iv;exports.listboxItemVariants=Pf;exports.listboxVariants=Nf;exports.loadingOverlayVariants=If;exports.loadingVariants=Of;exports.maskedInputVariants=gu;exports.materialColors=Lv;exports.meterVariants=Cv;exports.modalContentVariants=Ks;exports.navbarVariants=Cu;exports.navigationMenuTriggerStyle=Gc;exports.notificationCenterVariants=ST;exports.nprogressVariants=Hf;exports.numberFieldVariants=gb;exports.parseDate=xu;exports.parseFormattedValue=uu;exports.phoneInputVariants=Ru;exports.pullToRefreshVariants=Vh;exports.qrCodeVariants=ul;exports.rangeSliderVariants=cv;exports.ratingVariants=Hm;exports.rgbToHex=zv;exports.rgbToHsv=Hv;exports.richTextEditorVariants=Qg;exports.scrollShadowVariants=wg;exports.searchBarVariants=ch;exports.searchFieldVariants=xb;exports.segmentedControlItemVariants=Qp;exports.segmentedControlVariants=Zp;exports.settingsLayoutVariants=Ai;exports.sheetVariants=$d;exports.sidebarMenuButtonVariants=Jm;exports.skeletonVariants=Rd;exports.snippetVariants=hf;exports.sortableItemVariants=Df;exports.sortableListVariants=kf;exports.spinnerVariants=dm;exports.statCardVariants=Ip;exports.statusLightVariants=_b;exports.stepVariants=qu;exports.stepsVariants=ju;exports.swipeActionVariants=Ol;exports.swipeActionsVariants=Mh;exports.tagGroupItemVariants=kl;exports.tagGroupVariants=vv;exports.tagVariants=Tp;exports.tailwindColors=Vv;exports.textBadgeVariants=Gx;exports.textFieldVariants=lb;exports.themeToggleVariants=BC;exports.timeFieldVariants=Cb;exports.timeInputVariants=cu;exports.timelineItemVariants=Kp;exports.timelineVariants=Wp;exports.toggleVariants=gn;exports.treeViewVariants=Ju;exports.unmask=Ss;exports.useButtonGroup=dS;exports.useCarousel=nl;exports.useConfetti=uM;exports.useConfirmDialog=HN;exports.useFieldContext=Gn;exports.useFormContext=Es;exports.useSidebar=Mn;exports.useSpotlight=hT;exports.userVariants=uf;exports.validateFile=ou;exports.validators=_w;exports.virtualListVariants=Kf;exports.wellVariants=eh;//# sourceMappingURL=index.cjs.map
48
+ `})]})});Ox.displayName="Shimmer";var MM={sm:24,md:40,lg:56,xl:80},kM={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"}},Gx=K__namespace.forwardRef(({show:e=true,size:t="md",variant:a="success",strokeWidth:r=2,duration:n=.6,delay:i=0,className:s,onComplete:l},d)=>{let m=MM[t],p=kM[a],c={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i,ease:"easeOut"}}},g={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i+n*.4,ease:"easeOut"}}};return jsxRuntime.jsxs("svg",{ref:d,width:m,height:m,viewBox:"0 0 50 50",className:o(s),children:[jsxRuntime.jsx(framerMotion.motion.circle,{cx:"25",cy:"25",r:"22",fill:"none",strokeWidth:r,className:p.circle,variants:c,initial:"hidden",animate:e?"visible":"hidden"}),jsxRuntime.jsx(framerMotion.motion.path,{d:"M14 27 L22 35 L36 18",fill:"none",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:p.check,variants:g,initial:"hidden",animate:e?"visible":"hidden",onAnimationComplete:()=>e&&l?.()})]})});Gx.displayName="Checkmark";var ho={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},Wx=K__namespace.forwardRef(({autoTrigger:e=false,delay:t=0,options:a={},children:r,onTrigger:n},i)=>{let s=K__namespace.useCallback(()=>{let l={...ho,...a};vo__default.default(l),n?.();},[a,n]);return K__namespace.useEffect(()=>{if(e){let l=setTimeout(s,t);return ()=>clearTimeout(l)}},[e,t,s]),r?jsxRuntime.jsx("button",{ref:i,type:"button",onClick:s,children:r}):null});Wx.displayName="Confetti";var DM=()=>{let e=K__namespace.useCallback(r=>{let n={...ho,...r};vo__default.default(n);},[]),t=K__namespace.useCallback(()=>{let n=Date.now()+3e3,i=setInterval(()=>{let s=n-Date.now();if(s<=0){clearInterval(i);return}let l=50*(s/3e3);vo__default.default({...ho,particleCount:l,origin:{x:Math.random()*.4+.1,y:Math.random()-.2}}),vo__default.default({...ho,particleCount:l,origin:{x:Math.random()*.4+.5,y:Math.random()-.2}});},250);},[]),a=K__namespace.useCallback((r="both")=>{let n={x:0,y:1},i={x:1,y:1};(r==="left"||r==="both")&&vo__default.default({...ho,particleCount:50,angle:60,spread:55,origin:n}),(r==="right"||r==="both")&&vo__default.default({...ho,particleCount:50,angle:120,spread:55,origin:i});},[]);return {fire:e,fireworks:t,cannon:a}},$x=K__namespace.forwardRef(({children:e,color:t="hsl(var(--primary))",intensity:a=20,spread:r=0,animate:n=false,duration:i=2,className:s},l)=>{let d={boxShadow:`0 0 ${a}px ${r}px ${t}`};return n?jsxRuntime.jsx(framerMotion.motion.div,{ref:l,className:o(s),animate:{boxShadow:[`0 0 ${a}px ${r}px ${t}`,`0 0 ${a*1.5}px ${r+5}px ${t}`,`0 0 ${a}px ${r}px ${t}`]},transition:{duration:i,repeat:1/0,ease:"easeInOut"},children:e}):jsxRuntime.jsx("div",{ref:l,className:o(s),style:d,children:e})});$x.displayName="Glow";var Bx=(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}),_x=K__namespace.forwardRef(({children:e,count:t=10,color:a="hsl(var(--primary))",minSize:r=4,maxSize:n=8,duration:i=1.5,className:s},l)=>{let[d,m]=K__namespace.useState([]);return K__namespace.useEffect(()=>{let p=Array.from({length:t},()=>Bx(r,n));m(p);let c=setInterval(()=>{m(g=>{let u=[...g],h=Math.floor(Math.random()*t);return u[h]=Bx(r,n),u});},i*500);return ()=>clearInterval(c)},[t,r,n,i]),jsxRuntime.jsxs("div",{ref:l,className:o("relative inline-block",s),children:[e,d.map(p=>jsxRuntime.jsx(framerMotion.motion.svg,{className:"pointer-events-none absolute",style:{left:p.x,top:p.y,width:p.size,height:p.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:i,delay:p.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:a})},p.id))]})});_x.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=gR;exports.AccordionItem=Nc;exports.ActionBar=fv;exports.ActionBarButton=gv;exports.ActionGroup=ev;exports.ActionIcon=Mg;exports.ActionMenu=vv;exports.ActionSheet=Oh;exports.Alert=ay;exports.AlertDescription=oy;exports.AlertDialog=hR;exports.AlertDialogAction=Ac;exports.AlertDialogCancel=zc;exports.AlertDialogContent=Lc;exports.AlertDialogDescription=Hc;exports.AlertDialogFooter=Ic;exports.AlertDialogHeader=Vc;exports.AlertDialogOverlay=ws;exports.AlertDialogPortal=Dc;exports.AlertDialogTitle=Ec;exports.AlertDialogTrigger=xR;exports.AlertTitle=ry;exports.AnnouncementBanner=Lh;exports.AppShell=Xh;exports.AppShellAside=ad;exports.AppShellFooter=rd;exports.AppShellHeader=ed;exports.AppShellMain=qh;exports.AppShellSidebar=td;exports.AreaChart=Jg;exports.AspectRatio=MR;exports.AuthDivider=sx;exports.AuthFooterLinks=ix;exports.AuthForm=ox;exports.AuthHeader=nx;exports.AuthLayout=rx;exports.AuthSocialButtons=lx;exports.Autocomplete=hf;exports.Avatar=Za;exports.AvatarFallback=Qa;exports.AvatarGroup=Km;exports.AvatarImage=Vr;exports.BackTop=qp;exports.Badge=sy;exports.BarChart=Zg;exports.BatteryMeter=Gv;exports.BottomNavigation=Hh;exports.Bounce=Nx;exports.Breadcrumb=Wc;exports.BreadcrumbEllipsis=jc;exports.BreadcrumbItem=_c;exports.BreadcrumbLink=Kc;exports.BreadcrumbList=$c;exports.BreadcrumbPage=Uc;exports.BreadcrumbSeparator=Yc;exports.Button=W;exports.ButtonGroup=jb;exports.COUNTRIES=Ap;exports.Calendar=Fr;exports.Card=bd;exports.CardContent=hd;exports.CardFooter=xd;exports.CardHeader=vd;exports.Carousel=sb;exports.CarouselContent=lb;exports.CarouselItem=db;exports.CarouselNext=yl;exports.CarouselPrevious=xl;exports.Center=sh;exports.Checkbox=wo;exports.Checkmark=Gx;exports.Chip=Nu;exports.CircularProgress=Lu;exports.CloseButton=Cg;exports.Code=Lf;exports.Collapse=hx;exports.Collapsible=Tc;exports.CollapsibleContent=kc;exports.CollapsibleTrigger=Mc;exports.ColorArea=Qv;exports.ColorField=_b;exports.ColorPicker=Np;exports.ColorSlider=th;exports.ColorSwatch=Ur;exports.ColorSwatchPicker=Yv;exports.ColorWheel=rh;exports.Combobox=Fm;exports.Command=Ms;exports.CommandDialog=KR;exports.CommandEmpty=Dm;exports.CommandGroup=Lm;exports.CommandInput=Mm;exports.CommandItem=Im;exports.CommandList=km;exports.CommandSeparator=Vm;exports.CommandShortcut=Em;exports.Confetti=Wx;exports.ConfirmDialog=il;exports.ContextMenu=aR;exports.ContextMenuCheckboxItem=lc;exports.ContextMenuContent=ic;exports.ContextMenuGroup=oR;exports.ContextMenuItem=sc;exports.ContextMenuLabel=cc;exports.ContextMenuPortal=nR;exports.ContextMenuRadioGroup=sR;exports.ContextMenuRadioItem=dc;exports.ContextMenuSeparator=mc;exports.ContextMenuShortcut=uc;exports.ContextMenuSub=iR;exports.ContextMenuSubContent=nc;exports.ContextMenuSubTrigger=oc;exports.ContextMenuTrigger=rR;exports.ContextualHelp=kv;exports.CopyButton=Ug;exports.Counter=Mx;exports.CurrencyInput=Mp;exports.DEFAULT_COLORS=jo;exports.DashboardGrid=ax;exports.DashboardLayout=Jh;exports.DashboardPage=ex;exports.DashboardPageHeader=tx;exports.DataTable=qw;exports.DateField=zb;exports.DateInput=Ep;exports.DatePicker=Om;exports.DateRangePicker=rg;exports.DefaultErrorFallback=el;exports.Dialog=ts;exports.DialogClose=hy;exports.DialogContent=gn;exports.DialogDescription=Pd;exports.DialogFooter=wd;exports.DialogHeader=Rd;exports.DialogOverlay=as;exports.DialogPortal=yd;exports.DialogTitle=Nd;exports.DialogTrigger=vy;exports.DiskUsageMeter=Ov;exports.Dots=Mu;exports.Drawer=om;exports.DrawerClose=ER;exports.DrawerContent=im;exports.DrawerDescription=cm;exports.DrawerFooter=lm;exports.DrawerHeader=sm;exports.DrawerOverlay=Ps;exports.DrawerPortal=nm;exports.DrawerTitle=dm;exports.DrawerTrigger=IR;exports.DropdownMenu=ar;exports.DropdownMenuCheckboxItem=Od;exports.DropdownMenuContent=Ca;exports.DropdownMenuGroup=By;exports.DropdownMenuItem=Mt;exports.DropdownMenuLabel=Wd;exports.DropdownMenuPortal=Oy;exports.DropdownMenuRadioGroup=Wy;exports.DropdownMenuRadioItem=Gd;exports.DropdownMenuSeparator=Cn;exports.DropdownMenuShortcut=$d;exports.DropdownMenuSub=Gy;exports.DropdownMenuSubContent=Bd;exports.DropdownMenuSubTrigger=Fd;exports.DropdownMenuTrigger=rr;exports.EMOJIS=wl;exports.EMOJI_CATEGORIES=bi;exports.EmojiPicker=mb;exports.EmptyState=_u;exports.ErrorBoundary=AN;exports.Expand=xx;exports.FAB=tM;exports.Fade=gx;exports.FieldContext=Us;exports.FileUpload=hp;exports.Flex=rn;exports.Flip=Rx;exports.FloatingActionButton=ql;exports.Form=xf;exports.FormContext=Ks;exports.FormControl=Nf;exports.FormDescription=Pf;exports.FormField=yf;exports.FormItem=Rf;exports.FormLabel=wf;exports.FormMessage=Cf;exports.FullCalendar=Xg;exports.Glow=$x;exports.Grid=Bi;exports.GridItem=mh;exports.GridList=zv;exports.HStack=nh;exports.HoverCard=RR;exports.HoverCardContent=Gc;exports.HoverCardTrigger=wR;exports.IconButton=Zb;exports.IllustratedMessage=lv;exports.Image=Ef;exports.ImageCropper=bb;exports.ImageViewer=ll;exports.ImageViewerTrigger=Rg;exports.Indicator=Ig;exports.IndicatorWrapper=Eg;exports.InfiniteScroll=lg;exports.InlineAlert=uv;exports.Input=vn;exports.InputOTP=Eu;exports.InputOTPGroup=Hu;exports.InputOTPSeparator=zu;exports.InputOTPSlot=Au;exports.KanbanBoard=ob;exports.Kbd=Wg;exports.Label=qa;exports.LabeledValue=hh;exports.LabeledValueGroup=yh;exports.LineChart=qg;exports.Link=Yp;exports.List=qu;exports.ListItem=Qu;exports.ListItemText=Ju;exports.ListView=wv;exports.Listbox=Of;exports.ListboxItem=Gf;exports.Loading=tg;exports.LoadingOverlay=jf;exports.MASK_PRESETS=Fs;exports.MaskedInput=Lp;exports.Menubar=Zp;exports.MenubarCheckboxItem=rf;exports.MenubarContent=tf;exports.MenubarGroup=zw;exports.MenubarItem=af;exports.MenubarLabel=nf;exports.MenubarMenu=Aw;exports.MenubarPortal=Fw;exports.MenubarRadioGroup=Ow;exports.MenubarRadioItem=of;exports.MenubarSeparator=sf;exports.MenubarShortcut=lf;exports.MenubarSub=Bw;exports.MenubarSubContent=ef;exports.MenubarSubTrigger=Jp;exports.MenubarTrigger=Qp;exports.Meter=Ei;exports.Modal=ug;exports.ModalClose=UN;exports.ModalContent=fg;exports.ModalDescription=hg;exports.ModalFooter=bg;exports.ModalHeader=gg;exports.ModalOverlay=nl;exports.ModalPortal=pg;exports.ModalRoot=_N;exports.ModalTitle=vg;exports.ModalTrigger=KN;exports.MultiSelect=zm;exports.NProgress=qf;exports.Navbar=Op;exports.NavbarBrand=Gp;exports.NavbarContent=Wp;exports.NavbarItem=$p;exports.NavbarLink=_p;exports.NavigationMenu=qc;exports.NavigationMenuContent=em;exports.NavigationMenuIndicator=tm;exports.NavigationMenuItem=LR;exports.NavigationMenuLink=VR;exports.NavigationMenuList=Zc;exports.NavigationMenuTrigger=Jc;exports.NavigationMenuViewport=Ns;exports.NotificationCenter=Mh;exports.NumberField=Db;exports.NumberInput=Am;exports.Pagination=wm;exports.PaginationContent=Nm;exports.PaginationEllipsis=Tm;exports.PaginationItem=Pm;exports.PaginationLink=Vn;exports.PaginationNext=Sm;exports.PaginationPrevious=Cm;exports.Parallax=zx;exports.PasswordInput=Hm;exports.PhoneInput=zp;exports.PieChart=Qg;exports.Pop=Tx;exports.Popover=ye;exports.PopoverAnchor=ms;exports.PopoverContent=ve;exports.PopoverTrigger=Pe;exports.Portal=Lg;exports.Progress=Ln;exports.PullToRefresh=Uh;exports.Pulse=Cx;exports.QRCode=hb;exports.RadioGroup=pc;exports.RadioGroupItem=fc;exports.RangeSlider=Cv;exports.Rating=Ym;exports.ResizableHandle=M0;exports.ResizablePanel=T0;exports.ResizablePanelGroup=S0;exports.RichTextEditor=pb;exports.Ripple=wx;exports.Rotate=yx;exports.Scale=vx;exports.ScrollArea=ht;exports.ScrollBar=bs;exports.ScrollProgress=Ax;exports.ScrollReveal=Hx;exports.ScrollShadow=zg;exports.SearchBar=Ch;exports.SearchField=Eb;exports.SegmentedControl=pp;exports.SegmentedControlItem=fp;exports.Select=ns;exports.SelectContent=Nn;exports.SelectGroup=Hy;exports.SelectItem=Pn;exports.SelectLabel=Ad;exports.SelectScrollDownButton=ls;exports.SelectScrollUpButton=ss;exports.SelectSeparator=zd;exports.SelectTrigger=wn;exports.SelectValue=is;exports.Separator=wa;exports.SettingsCard=mx;exports.SettingsHeader=sn;exports.SettingsLayout=dx;exports.SettingsNavItem=px;exports.SettingsRow=ux;exports.SettingsSection=cx;exports.SettingsSeparator=fx;exports.Shake=Px;exports.Sheet=Mo;exports.SheetClose=Yy;exports.SheetContent=Ir;exports.SheetDescription=rc;exports.SheetFooter=tc;exports.SheetHeader=ec;exports.SheetOverlay=fs;exports.SheetPortal=Qd;exports.SheetTitle=ac;exports.SheetTrigger=Uy;exports.Shimmer=Ox;exports.Sidebar=qm;exports.SidebarContent=nu;exports.SidebarFooter=ru;exports.SidebarGroup=iu;exports.SidebarGroupAction=lu;exports.SidebarGroupContent=du;exports.SidebarGroupLabel=su;exports.SidebarHeader=au;exports.SidebarInset=tu;exports.SidebarMenu=cu;exports.SidebarMenuAction=fu;exports.SidebarMenuBadge=gu;exports.SidebarMenuButton=pu;exports.SidebarMenuItem=mu;exports.SidebarMenuSkeleton=bu;exports.SidebarMenuSub=vu;exports.SidebarMenuSubButton=xu;exports.SidebarMenuSubItem=hu;exports.SidebarPersistentToggle=Jm;exports.SidebarProvider=Xm;exports.SidebarRail=eu;exports.SidebarSeparator=ou;exports.SidebarToggle=Qm;exports.SidebarTrigger=Zm;exports.SimpleGrid=uh;exports.Skeleton=yn;exports.Slide=bx;exports.Slider=Mn;exports.Snippet=If;exports.SortableList=NN;exports.Spacer=_g;exports.Sparkles=_x;exports.Spinner=Rm;exports.SpotlightSearch=Th;exports.StatCard=Yu;exports.StatusLight=nv;exports.Step=uf;exports.Steps=cf;exports.SwipeActions=$h;exports.Switch=kd;exports.Table=mm;exports.TableBody=pm;exports.TableCaption=hm;exports.TableCell=vm;exports.TableFooter=fm;exports.TableHead=bm;exports.TableHeader=um;exports.TableRow=gm;exports.Tabs=jd;exports.TabsContent=Zd;exports.TabsList=Xd;exports.TabsTrigger=qd;exports.TagGroup=Vv;exports.TagInput=Gu;exports.TextBadge=xo;exports.TextField=Cb;exports.TextReveal=Dx;exports.Textarea=Dd;exports.ThemeProvider=xb;exports.ThemeToggle=yb;exports.TimeField=Ob;exports.TimeInput=Cp;exports.TimePicker=og;exports.Timeline=rp;exports.TimelineContent=sp;exports.TimelineItem=np;exports.TimelineOpposite=lp;exports.TimelineSeparator=ip;exports.Toaster=qy;exports.Toggle=bc;exports.ToggleGroup=hc;exports.ToggleGroupItem=xc;exports.Tooltip=er;exports.TooltipContent=Na;exports.TooltipProvider=Ja;exports.TooltipTrigger=tr;exports.TreeView=gf;exports.Typewriter=kx;exports.User=Mf;exports.VStack=ih;exports.VirtualList=GN;exports.VisuallyHidden=Og;exports.Well=gh;exports.Wiggle=Sx;exports.WordRotate=Lx;exports.actionBarVariants=pv;exports.actionGroupVariants=Jb;exports.actionIconVariants=Tg;exports.actionMenuTriggerVariants=bv;exports.actionSheetItemVariants=Bh;exports.actionSheetVariants=Fh;exports.announcementBannerVariants=Dh;exports.appShellVariants=jh;exports.applyMask=Kn;exports.authLayoutVariants=Ui;exports.autocompleteInputVariants=vf;exports.avatarGroupVariants=_m;exports.backTopVariants=Xp;exports.badgeIndicatorVariants=ny;exports.bottomNavigationVariants=Eh;exports.buttonGroupVariants=Ub;exports.buttonVariants=Ee;exports.cardVariants=gd;exports.carouselVariants=nb;exports.chartContainerVariants=Yo;exports.chipVariants=wu;exports.circularProgressVariants=Du;exports.closeButtonVariants=Pg;exports.cn=o;exports.codeVariants=Df;exports.colorAreaVariants=jv;exports.colorFieldVariants=$b;exports.colorSliderVariants=eh;exports.colorSwatchPickerVariants=$v;exports.colorSwatchVariants=Rp;exports.colorWheelVariants=ah;exports.confirmDialogIconVariants=yg;exports.contextualHelpTriggerVariants=Mv;exports.copyButtonVariants=Kg;exports.currencyInputVariants=Sp;exports.dashboardLayoutVariants=Qh;exports.dateFieldVariants=Ab;exports.dateInputVariants=Vp;exports.defaultColors=_v;exports.dotsVariants=Tu;exports.emojiPickerVariants=cb;exports.emptyStateVariants=$u;exports.fabVariants=on;exports.fileUploadVariants=gp;exports.flexVariants=oh;exports.formatCurrency=zs;exports.formatDate=Yn;exports.formatFileSize=_n;exports.formatPhoneNumber=Xn;exports.fullCalendarVariants=jg;exports.getFileIcon=bp;exports.getMaskPlaceholder=Dp;exports.gridItemVariants=ch;exports.gridListItemVariants=Av;exports.gridListVariants=Hv;exports.gridVariants=dh;exports.hexToRgb=qv;exports.hsvToRgb=zi;exports.iconButtonVariants=qb;exports.illustratedMessageVariants=sv;exports.imageCropperVariants=gb;exports.imageVariants=qs;exports.indicatorVariants=Vg;exports.infiniteScrollLoaderVariants=rl;exports.infiniteScrollVariants=sg;exports.inlineAlertVariants=mv;exports.inputOTPVariants=Iu;exports.inputSizeVariants=Nb;exports.kanbanBoardVariants=ab;exports.kanbanCardVariants=vl;exports.kanbanColumnVariants=rb;exports.kbdVariants=Gg;exports.labelSizeVariants=Pb;exports.labeledValueGroupVariants=xh;exports.labeledValueVariants=vh;exports.linkVariants=Up;exports.listItemVariants=Zu;exports.listVariants=Xu;exports.listViewItemVariants=Rv;exports.listViewVariants=yv;exports.listboxItemVariants=Ff;exports.listboxVariants=zf;exports.loadingOverlayVariants=Yf;exports.loadingVariants=eg;exports.maskedInputVariants=kp;exports.materialColors=Uv;exports.meterVariants=Bv;exports.modalContentVariants=ol;exports.navbarVariants=Bp;exports.navigationMenuTriggerStyle=Qc;exports.notificationCenterVariants=$T;exports.nprogressVariants=Xf;exports.numberFieldVariants=kb;exports.parseDate=Ip;exports.parseFormattedValue=Tp;exports.phoneInputVariants=Hp;exports.pullToRefreshVariants=Kh;exports.qrCodeVariants=Sl;exports.rangeSliderVariants=Pv;exports.ratingVariants=Um;exports.rgbToHex=Zv;exports.rgbToHsv=Xv;exports.richTextEditorVariants=ub;exports.scrollShadowVariants=Ag;exports.searchBarVariants=Ph;exports.searchFieldVariants=Ib;exports.segmentedControlItemVariants=mp;exports.segmentedControlVariants=cp;exports.settingsLayoutVariants=Yi;exports.sheetVariants=Jd;exports.sidebarMenuButtonVariants=uu;exports.skeletonVariants=Vd;exports.snippetVariants=Vf;exports.sortableItemVariants=_f;exports.sortableListVariants=$f;exports.spinnerVariants=ym;exports.statCardVariants=Uu;exports.statusLightVariants=ov;exports.stepVariants=mf;exports.stepsVariants=df;exports.swipeActionVariants=Ql;exports.swipeActionsVariants=Wh;exports.tagGroupItemVariants=Gl;exports.tagGroupVariants=Lv;exports.tagVariants=Ou;exports.tailwindColors=Kv;exports.textBadgeVariants=ly;exports.textFieldVariants=wb;exports.themeToggleVariants=rS;exports.timeFieldVariants=Bb;exports.timeInputVariants=Pp;exports.timelineItemVariants=op;exports.timelineVariants=ap;exports.toggleVariants=Tn;exports.treeViewVariants=ff;exports.unmask=Bs;exports.useButtonGroup=SS;exports.useCarousel=hl;exports.useConfetti=DM;exports.useConfirmDialog=eP;exports.useFieldContext=Qn;exports.useFormContext=Ys;exports.useSidebar=Bn;exports.useSpotlight=HT;exports.userVariants=Tf;exports.validateFile=vp;exports.validators=dN;exports.virtualListVariants=ng;exports.wellVariants=fh;//# sourceMappingURL=index.cjs.map
49
49
  //# sourceMappingURL=index.cjs.map