@min98/ui 1.3.53 → 1.3.55

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/lib/index.js CHANGED
@@ -1,8 +1,85 @@
1
- "use client";
2
- import*as Pr from"react";import*as Ve from"@radix-ui/react-accordion";import{clsx as am}from"clsx";import{twMerge as nm}from"tailwind-merge";var r=(...e)=>nm(am(e));import{Icon as im}from"@iconify/react";import{jsx as Vo,jsxs as lm}from"react/jsx-runtime";var sm=Ve.Root,Ti=Pr.forwardRef(({className:e,...t},o)=>Vo(Ve.Item,{ref:o,className:r("border-b",e),...t}));Ti.displayName="AccordionItem";var Ni=Pr.forwardRef(({className:e,children:t,...o},a)=>Vo(Ve.Header,{className:"flex",children:lm(Ve.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,Vo(im,{icon:"mdi:chevron-down",className:"h-4 w-4 shrink-0 text-gray-500 transition-transform duration-200"})]})}));Ni.displayName=Ve.Trigger.displayName;var Mi=Pr.forwardRef(({className:e,children:t,...o},a)=>Vo(Ve.Content,{ref:a,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:Vo("div",{className:r("pb-4 pt-0",e),children:t})}));Mi.displayName=Ve.Content.displayName;import*as It from"react";import*as oe from"@radix-ui/react-alert-dialog";import*as Li from"react";import{Slot as cm}from"@radix-ui/react-slot";import{clsx as dm}from"clsx";var Di=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ki=dm,j=(e,t)=>o=>{if(t?.variants==null)return ki(e,o?.class,o?.className);let{variants:a,defaultVariants:n}=t,i=Object.keys(a).map(d=>{let c=o?.[d],p=n?.[d];if(c===null)return null;let m=Di(c)||Di(p);return a[d][m]}),s=o&&Object.entries(o).reduce((d,[c,p])=>(p===void 0||(d[c]=p),d),{}),l=t?.compoundVariants?.reduce((d,{class:c,className:p,...m})=>Object.entries(m).every(([f,u])=>Array.isArray(u)?u.includes({...n,...s}[f]):{...n,...s}[f]===u)?[...d,c,p]:d,[]);return ki(e,i,l,o?.class,o?.className)};import{jsx as Ei,jsxs as Ii}from"react/jsx-runtime";var Ke=j("group relative inline-flex items-center justify-center text-sm font-medium transition-colors focus-visible:border-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 transition-all delay-100 duration-300",{variants:{variant:{default:"bg-transparent hover:bg-gray-200",fill:"fill",ghost:"rounded-md hover:bg-transparent hover:bg-gray-200 border-none hover:border-gray-200 dark:hover:text-black",link:"text-primary underline-offset-4 hover:underline",icon:"h-9 w-9 !rounded-full data-[fill='icon']:bg-transparent data-[fill='icon']:hover:bg-gray-200 data-[fill='icon']:px-0 data-[fill='icon']:py-0"},color:{default:"rounded-md bg-transparent text-dark dark:text-white hover:bg-gray-200 border-2 border-gray-300 hover:border-gray-300 dark:hover:text-black",dark:r("bg-dark border-2 border-dark","text-white","hover:bg-gray-800 hover:text-white/80","dark:text-white"),light:r("bg-light border-2 border-gray-300","text-dark","hover:bg-gray-300 hover:text-dark","dark:text-dark"),primary:["border-2 border-primary","data-[fill=true]:bg-primary data-[fill=true]:text-white data-[fill=true]:hover:bg-primary/70","text-dark dark:text-white","hover:bg-primary/70 hover:text-white"],secondary:r("border-2 border-secondary","data-[fill=true]:bg-secondary data-[fill=true]:text-white data-[fill=true]:hover:bg-secondary/70","text-dark dark:text-white","hover:bg-secondary/70 hover:text-white"),success:r("border-2 border-success","data-[fill=true]:bg-success data-[fill=true]:text-white data-[fill=true]:hover:bg-success/70","text-dark dark:text-white","hover:bg-success/70 hover:text-white"),info:r("border-2 border-info","data-[fill=true]:bg-info data-[fill=true]:text-white data-[fill=true]:hover:bg-info/70","text-dark dark:text-white","hover:bg-info/70 hover:text-white"),warning:r("border-2 border-warning","data-[fill=true]:bg-warning data-[fill=true]:text-white data-[fill=true]:hover:bg-warning/70","text-dark dark:text-white","hover:bg-warning/70 hover:text-white"),danger:r("border-2 border-danger","data-[fill=true]:bg-danger data-[fill=true]:text-white data-[fill=true]:hover:bg-danger/70","text-dark dark:text-white","hover:bg-danger/70 hover:text-white"),"primary-light":r("border-2 border-primary-light","data-[fill=true]:bg-primary-light hover:bg-primary/70 data-[fill=true]:hover:bg-primary/70","text-dark dark:text-white data-[fill=true]:text-dark data-[fill=true]:dark:text-dark data-[fill=true]:dark:hover:text-white"),"secondary-light":r("border-2 border-secondary-light","data-[fill=true]:bg-secondary-light hover:bg-secondary/70 data-[fill=true]:hover:bg-secondary/70","text-dark dark:text-white data-[fill=true]:text-dark data-[fill=true]:dark:text-dark data-[fill=true]:dark:hover:text-white"),"success-light":r("border-2 border-success-light","data-[fill=true]:bg-success-light hover:bg-success/70 data-[fill=true]:hover:bg-success/70","text-dark dark:text-white data-[fill=true]:text-dark data-[fill=true]:dark:text-dark data-[fill=true]:dark:hover:text-white"),"info-light":r("border-2 border-info-light","data-[fill=true]:bg-info-light hover:bg-info/70 data-[fill=true]:hover:bg-info/70","text-dark dark:text-white data-[fill=true]:text-dark data-[fill=true]:dark:text-dark data-[fill=true]:dark:hover:text-white"),"warning-light":r("border-2 border-warning-light","data-[fill=true]:bg-warning-light hover:bg-warning/70 data-[fill=true]:hover:bg-warning/70","text-dark dark:text-white data-[fill=true]:text-dark data-[fill=true]:dark:text-dark data-[fill=true]:dark:hover:text-white"),"danger-light":r("border-2 border-danger-light","data-[fill=true]:bg-danger-light hover:bg-danger/70 data-[fill=true]:hover:bg-danger/70","text-dark dark:text-white data-[fill=true]:text-dark data-[fill=true]:dark:text-dark data-[fill=true]:dark:hover:text-white")},size:{default:"h-9 rounded-md px-2 py-2",sm:"h-5 rounded-md px-2 text-xs",lg:"h-10 rounded-md px-8"}},defaultVariants:{variant:"default",size:"default",color:"default"}}),V=Li.forwardRef(({className:e,variant:t,size:o,color:a,asChild:n=!1,tooltip:i=!1,children:s,...l},d)=>Ii(n?cm:"button",{className:r(Ke({variant:t,size:o,color:a,className:e})),ref:d,...l,"data-fill":t=="fill","data-icon":t=="icon",children:[s,i?Ii("div",{className:"absolute bottom-3 hidden flex-col items-center mb-6 group-hover:flex animate-slide-up-fade",children:[Ei("span",{className:"relative rounded-md z-10 p-1 text-xs leading-none text-white whitespace-no-wrap bg-black shadow-lg dark:bg-white dark:text-dark",children:i}),Ei("div",{className:"w-3 h-3 -mt-2 rotate-45 bg-black dark:bg-white"})]}):null]}));V.displayName="Button";import{jsx as qe,jsxs as um}from"react/jsx-runtime";var Ga=oe.Root,mm=oe.Trigger,Ua=({...e})=>qe(oe.Portal,{...e});Ua.displayName=oe.Portal.displayName;var Ya=It.forwardRef(({className:e,...t},o)=>qe(oe.Overlay,{className:r("fixed inset-0 z-50 bg-dark/80 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",e),...t,ref:o}));Ya.displayName=oe.Overlay.displayName;var wr=It.forwardRef(({className:e,...t},o)=>um(Ua,{children:[qe(Ya,{}),qe(oe.Content,{ref:o,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-light p-6 shadow-lg sm:rounded-lg md:w-full","duration-200 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]",e),...t})]}));wr.displayName=oe.Content.displayName;var Cr=({className:e,...t})=>qe("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});Cr.displayName="AlertDialogHeader";var Sr=({className:e,...t})=>qe("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Sr.displayName="AlertDialogFooter";var Tr=It.forwardRef(({className:e,...t},o)=>qe(oe.Title,{ref:o,className:r("text-lg font-semibold",e),...t}));Tr.displayName=oe.Title.displayName;var Nr=It.forwardRef(({className:e,...t},o)=>qe(oe.Description,{ref:o,className:r("text-sm text-gray-500",e),...t}));Nr.displayName=oe.Description.displayName;var Mr=It.forwardRef(({className:e,...t},o)=>qe(oe.Action,{ref:o,"data-fill":!0,className:r(Ke({variant:"fill",color:"success-light"}),e),...t}));Mr.displayName=oe.Action.displayName;var Dr=It.forwardRef(({className:e,...t},o)=>qe(oe.Cancel,{ref:o,"data-fill":!0,className:r(Ke({variant:"fill",color:"danger-light"}),"mt-2 sm:mt-0",e),...t}));Dr.displayName=oe.Cancel.displayName;import*as kr from"react";import{jsx as ja}from"react/jsx-runtime";var Ai=j("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-gray-50 [&>svg~*]:pl-7",{variants:{variant:{default:"bg-white text-white border border-white",primary:"bg-primary text-primary-light border border-primary",secondary:"bg-secondary text-secondary-light border border-secondary",success:"bg-success text-success-light border border-success",warning:"bg-warning text-warning-light border border-warning",danger:"bg-danger text-danger-light border border-danger","primary-light":"bg-primary-light text-primary-dark border border-primary","secondary-light":"bg-secondary-light text-secondary-dark border border-secondary","success-light":"bg-success-light text-success-dark border border-success","warning-light":"bg-warning-light text-warning-dark border border-warning","danger-light":"bg-danger-light text-danger-dark border border-danger"}},defaultVariants:{variant:"default"}}),Hi=kr.forwardRef(({className:e,variant:t,...o},a)=>ja("div",{ref:a,role:"alert",className:r(Ai({variant:t}),e),...o}));Hi.displayName="Alert";var Vi=kr.forwardRef(({className:e,...t},o)=>ja("h5",{ref:o,className:r("mb-1 font-medium leading-none tracking-tight",e),...t}));Vi.displayName="AlertTitle";var Fi=kr.forwardRef(({className:e,...t},o)=>ja("div",{ref:o,className:r("text-sm [&_p]:leading-relaxed",e),...t}));Fi.displayName="AlertDescription";import*as Oi from"@radix-ui/react-aspect-ratio";var pm=Oi.Root;import*as Er from"react";import*as it from"@radix-ui/react-avatar";import{jsx as Ka}from"react/jsx-runtime";var Bi=Er.forwardRef(({className:e,...t},o)=>Ka(it.Root,{ref:o,className:r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Bi.displayName=it.Root.displayName;var zi=Er.forwardRef(({className:e,...t},o)=>Ka(it.Image,{ref:o,className:r("aspect-square h-full w-full",e),...t}));zi.displayName=it.Image.displayName;var Wi=Er.forwardRef(({className:e,...t},o)=>Ka(it.Fallback,{ref:o,className:r("flex h-full w-full items-center justify-center rounded-full bg-dark",e),...t}));Wi.displayName=it.Fallback.displayName;import{jsx as fm}from"react/jsx-runtime";var $i=j("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-dark focus:ring-offset-2",{variants:{variant:{default:"",fill:"fill"},color:{default:"",dark:"",light:"",primary:"bg-primary text-primary-light hover:bg-primary/80 border-2 border-primary",secondary:"bg-secondary text-secondary-light hover:bg-secondary/80 border-2 border-secondary",success:"bg-success text-success-light hover:bg-success/80 border-2 border-success",info:"bg-info text-info-light hover:bg-info/80 border-2 border-info",warning:"bg-warning text-warning-light hover:bg-warning/80 border-2 border-warning",danger:"bg-danger text-danger-light hover:bg-danger/80 border-2 border-danger","primary-light":"bg-primary-light text-primary-dark hover:bg-primary/80 border-2 border-primary-light","secondary-light":"bg-secondary-light text-secondary-dark hover:bg-secondary/80 border-2 border-secondary-light","success-light":"bg-success-light text-success-dark hover:bg-success/80 border-2 border-success-light ","info-light":"bg-info-light text-info-dark hover:bg-info/80 border-2 border-info-light ","warning-light":"bg-warning-light text-warning-dark hover:bg-warning/80 border-2 border-warning-light","danger-light":"bg-danger-light text-danger-dark hover:bg-danger/80 border-2 border-danger-light"}},defaultVariants:{variant:"default",color:"default"}}),Ir=({className:e,variant:t,color:o,...a})=>fm("div",{className:r($i({variant:t,color:o}),e),...a});Ir.displayName="Badge";import to from"react";var qa=(e,t,o)=>{let a=[];for(let n=e;n<=t;n+=o)a.push(n);return a};import _i from"react";function gm(e){let t=_i.useRef(null);return _i.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}import*as Lr from"react";function Lt(e){let[t,o]=Lr.useState(!1);return Lr.useEffect(()=>{function a(i){o(i.matches)}let n=matchMedia(e);return n.addEventListener("change",a),o(n.matches),()=>n.removeEventListener("change",a)},[e]),t}import bm from"react";var vm=(e,t,o)=>{bm.useEffect(()=>{let a=setTimeout(()=>{e.apply(void 0,o)},t);return()=>{clearTimeout(a)}},o)};import hm from"react";var ym=(e,t,o)=>{hm.useEffect(()=>{let a=setTimeout(()=>{e()},t);return()=>{clearTimeout(a)}},o)};import xm from"react";var Xa=(e,t,o)=>{xm.useEffect(()=>{let a=setInterval(()=>{e()},t);return()=>{clearInterval(a)}},o)};var Fo=j("",{variants:{color:{default:"bg-dark",dark:"bg-dark",light:"bg-light",primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",info:"bg-info",warning:"bg-warning",danger:"bg-danger","primary-light":"bg-primary-light","secondary-light":"bg-secondary-light","success-light":"bg-success-light","info-light":"bg-info-light","warning-light":"bg-warning-light","danger-light":"bg-danger-light"}},defaultVariants:{color:"default"}});import*as Ar from"react";var Ja=768;function Qa(){let[e,t]=Ar.useState(void 0);return Ar.useEffect(()=>{let o=window.matchMedia(`(max-width: ${Ja-1}px)`),a=()=>{t(window.innerWidth<Ja)};return o.addEventListener("change",a),t(window.innerWidth<Ja),()=>o.removeEventListener("change",a)},[]),!!e}import{jsx as Rm}from"react/jsx-runtime";var Gi=to.forwardRef(({className:e,children:t,...o},a)=>Rm("div",{className:r("inline-flex rounded-md shadow mx-1",e),...o,ref:a,children:to.Children.map(t,(n,i)=>{if(to.isValidElement(n)){let s=i===0,l=i===to.Children.count(t)-1,d=to.Children.count(t)===1,c=n;return to.cloneElement(c,{className:r("px-3 py-2 rounded-md",s?"rounded-r-none":"",l?"rounded-l-none":"",!s&&!l?"rounded-none":"",d?"rounded-md":"",c.props.className),...c.props})}return n})}));Gi.displayName="ButtonGroup";import{Slot as wm}from"@radix-ui/react-slot";import*as Ui from"react";import*as Za from"@radix-ui/react-separator";import{jsx as Pm}from"react/jsx-runtime";var Xe=Ui.forwardRef(({className:e,orientation:t="horizontal",decorative:o=!0,...a},n)=>Pm(Za.Root,{ref:n,decorative:o,orientation:t,className:r("shrink-0 bg-dark",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...a}));Xe.displayName=Za.Root.displayName;import{jsx as en}from"react/jsx-runtime";var Yi=j("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});function Cm({className:e,orientation:t,...o}){return en("div",{role:"group","data-slot":"button-group","data-orientation":t,className:r(Yi({orientation:t}),e),...o})}function Sm({className:e,asChild:t=!1,...o}){return en(t?wm:"div",{className:r("bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",e),...o})}function Tm({className:e,orientation:t="vertical",...o}){return en(Xe,{"data-slot":"button-group-separator",orientation:t,className:r("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",e),...o})}import*as oo from"react";import{Slot as Nm}from"@radix-ui/react-slot";import{Icon as ji}from"@iconify/react";import{jsx as st,jsxs as Mm}from"react/jsx-runtime";var Ki=oo.forwardRef(({...e},t)=>st("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ki.displayName="Breadcrumb";var qi=oo.forwardRef(({className:e,...t},o)=>st("ol",{ref:o,className:r("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));qi.displayName="BreadcrumbList";var Xi=oo.forwardRef(({className:e,...t},o)=>st("li",{ref:o,className:r("inline-flex items-center gap-1.5",e),...t}));Xi.displayName="BreadcrumbItem";var Ji=oo.forwardRef(({asChild:e,className:t,...o},a)=>st(e?Nm:"a",{ref:a,className:r("transition-colors hover:text-foreground",t),...o}));Ji.displayName="BreadcrumbLink";var Qi=oo.forwardRef(({className:e,...t},o)=>st("span",{ref:o,role:"link","aria-disabled":"true","aria-current":"page",className:r("font-normal text-foreground",e),...t}));Qi.displayName="BreadcrumbPage";var Zi=({children:e,className:t,...o})=>st("li",{role:"presentation","aria-hidden":"true",className:r("[&>svg]:size-3.5",t),...o,children:e??st(ji,{icon:"mdi:chevron-right"})});Zi.displayName="BreadcrumbSeparator";var es=({className:e,...t})=>Mm("span",{role:"presentation","aria-hidden":"true",className:r("flex h-9 w-9 items-center justify-center",e),...t,children:[st(ji,{icon:"mdi:more-horiz",className:"h-4 w-4"}),st("span",{className:"sr-only",children:"More"})]});es.displayName="BreadcrumbElipssis";import{DayPicker as Dm}from"react-day-picker";import{Icon as ts}from"@iconify/react";import{jsx as tn}from"react/jsx-runtime";var ht=({className:e,classNames:t,showOutsideDays:o=!0,...a})=>tn(Dm,{showOutsideDays:o,className:r("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:r(Ke({variant:"default"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 static"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-gray-500 rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:r("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-gray-100",a.mode==="range"?["[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md ","first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md"]:"[&:has([aria-selected])]:rounded-md"),day:r(Ke({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"text-gray-500 hover:!text-dark hover:bg-purple-200 focus:bg-purple-400 focus:text-dark",day_today:"bg-gray-50 text-gray-100",day_outside:"text-gray-300 opacity-50",day_disabled:"text-gray-300 opacity-50",day_range_middle:"aria-selected:bg-gray-100 aria-selected:text-gray-500",day_hidden:"invisible",...t},components:{IconLeft:()=>tn(ts,{icon:"mdi:chevron-left",className:"h-4 w-4"}),IconRight:()=>tn(ts,{icon:"mdi:chevron-right",className:"h-4 w-4"})},...a});ht.displayName="Calendar";import*as Fe from"react";import*as ao from"recharts";import{Fragment as Lm,jsx as Re,jsxs as ro}from"react/jsx-runtime";var km={light:"",dark:".dark"},os=Fe.createContext(null);function rs(){let e=Fe.useContext(os);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}var as=Fe.forwardRef(({id:e,className:t,children:o,config:a,...n},i)=>{let s=Fe.useId(),l=`chart-${e||s.replace(/:/g,"")}`;return Re(os.Provider,{value:{config:a},children:ro("div",{"data-chart":l,ref:i,className:r("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...n,children:[Re(ns,{id:l,config:a}),Re(ao.ResponsiveContainer,{children:o})]})})});as.displayName="Chart";var ns=({id:e,config:t})=>{let o=Object.entries(t).filter(([,a])=>a.theme||a.color);return o.length?Re("style",{dangerouslySetInnerHTML:{__html:Object.entries(km).map(([a,n])=>`
3
- ${n} [data-chart=${e}] {
4
- ${o.map(([i,s])=>{let l=s.theme?.[a]||s.color;return l?` --color-${i}: ${l};`:null}).join(`
5
- `)}
6
- }
7
- `).join(`
8
- `)}}):null},Em=ao.Tooltip,is=Fe.forwardRef(({active:e,payload:t,className:o,indicator:a="dot",hideLabel:n=!1,hideIndicator:i=!1,label:s,labelFormatter:l,labelClassName:d,formatter:c,color:p,nameKey:m,labelKey:f},u)=>{let{config:v}=rs(),x=Fe.useMemo(()=>{if(n||!t?.length)return null;let[C]=t,w=`${f||C?.dataKey||C?.name||"value"}`,R=on(v,C,w),g=!f&&typeof s=="string"?v[s]?.label||s:R?.label;return l?Re("div",{className:r("font-medium",d),children:l(g,t)}):g?Re("div",{className:r("font-medium",d),children:g}):null},[s,l,t,n,d,v,f]);if(!e||!t?.length)return null;let y=t.length===1&&a!=="dot";return ro("div",{ref:u,className:r("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",o),children:[y?null:x,Re("div",{className:"grid gap-1.5",children:t.filter(C=>C.type!=="none").map((C,w)=>{let R=`${m||C.name||C.dataKey||"value"}`,g=on(v,C,R),T=p||C.payload.fill||C.color;return Re("div",{className:r("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",a==="dot"&&"items-center"),children:c&&C?.value!==void 0&&C.name?c(C.value,C.name,C,w,C.payload):ro(Lm,{children:[g?.icon?Re(g.icon,{}):!i&&Re("div",{className:r("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":a==="dot","w-1":a==="line","w-0 border-[1.5px] border-dashed bg-transparent":a==="dashed","my-0.5":y&&a==="dashed"}),style:{"--color-bg":T,"--color-border":T}}),ro("div",{className:r("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[ro("div",{className:"grid gap-1.5",children:[y?x:null,Re("span",{className:"text-muted-foreground",children:g?.label||C.name})]}),C.value&&Re("span",{className:"font-mono font-medium tabular-nums text-foreground",children:C.value.toLocaleString()})]})]})},C.dataKey)})})]})});is.displayName="ChartTooltip";var Im=ao.Legend,ss=Fe.forwardRef(({className:e,hideIcon:t=!1,payload:o,verticalAlign:a="bottom",nameKey:n},i)=>{let{config:s}=rs();return o?.length?Re("div",{ref:i,className:r("flex items-center justify-center gap-4",a==="top"?"pb-3":"pt-3",e),children:o.filter(l=>l.type!=="none").map(l=>{let d=`${n||l.dataKey||"value"}`,c=on(s,l,d);return ro("div",{className:r("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[c?.icon&&!t?Re(c.icon,{}):Re("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:l.color}}),c?.label]},l.value)})}):null});ss.displayName="ChartLegend";function on(e,t,o){if(typeof t!="object"||t===null)return;let a="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0,n=o;return o in t&&typeof t[o]=="string"?n=t[o]:a&&o in a&&typeof a[o]=="string"&&(n=a[o]),n in e?e[n]:e[o]}import*as At from"react";import{jsx as no}from"react/jsx-runtime";var ls=At.forwardRef(({className:e,...t},o)=>no("div",{ref:o,className:r("rounded-xl my-3 border bg-card text-dark bg-white shadow dark:bg-boxdark-2 dark:text-bodydark",e),...t}));ls.displayName="Card";var ds=At.forwardRef(({className:e,...t},o)=>no("div",{ref:o,className:r("flex flex-col space-y-1.5 p-6",e),...t}));ds.displayName="CardHeader";var cs=At.forwardRef(({className:e,...t},o)=>no("h3",{ref:o,className:r("font-semibold leading-none tracking-tight",e),...t}));cs.displayName="CardTitle";var ms=At.forwardRef(({className:e,...t},o)=>no("p",{ref:o,className:r("text-sm text-gray-500",e),...t}));ms.displayName="CardDescription";var us=At.forwardRef(({className:e,...t},o)=>no("div",{ref:o,className:r("p-6 py-3 ",e),...t}));us.displayName="CardContent";var ps=At.forwardRef(({className:e,...t},o)=>no("div",{ref:o,className:r("flex items-center p-6 pt-0",e),...t}));ps.displayName="CardFooter";import*as X from"react";import Am from"embla-carousel-react";import{Icon as fs}from"@iconify/react";import{jsx as Pe,jsxs as Ts}from"react/jsx-runtime";var gs=X.createContext(null);function Ht(){let e=X.useContext(gs);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var bs=X.forwardRef(({orientation:e="horizontal",opts:t,setApi:o,plugins:a,className:n,children:i,...s},l)=>{let[d,c]=Am({...t,axis:e==="horizontal"?"x":"y"},a),[p,m]=X.useState(!1),[f,u]=X.useState(!1),v=X.useCallback(w=>{w&&(m(w.canScrollPrev()),u(w.canScrollNext()))},[]),x=X.useCallback(()=>{c?.scrollPrev()},[c]),y=X.useCallback(()=>{c?.scrollNext()},[c]),C=X.useCallback(w=>{w.key==="ArrowLeft"?(w.preventDefault(),x()):w.key==="ArrowRight"&&(w.preventDefault(),y())},[x,y]);return X.useEffect(()=>{!c||!o||o(c)},[c,o]),X.useEffect(()=>{if(c)return v(c),c.on("reInit",v),c.on("select",v),()=>{c?.off("select",v)}},[c,v]),Pe(gs.Provider,{value:{carouselRef:d,api:c,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:x,scrollNext:y,canScrollPrev:p,canScrollNext:f},children:Pe("div",{ref:l,onKeyDownCapture:C,className:r("relative",n),role:"region","aria-roledescription":"carousel",...s,children:i})})});bs.displayName="Carousel";var vs=X.forwardRef(({className:e,...t},o)=>{let{carouselRef:a,orientation:n}=Ht();return Pe("div",{ref:a,className:"overflow-hidden",children:Pe("div",{ref:o,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});vs.displayName="CarouselContent";var hs=X.forwardRef(({className:e,...t},o)=>{let{orientation:a}=Ht();return Pe("div",{ref:o,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...t})});hs.displayName="CarouselItem";var ys=X.forwardRef(({className:e,position:t,variant:o="icon",size:a="default",...n},i)=>{let{orientation:s,scrollPrev:l,canScrollPrev:d}=Ht();return Ts(V,{ref:i,variant:o,size:a,className:r("rounded-full border border-gray-100",s==="horizontal"&&!t?"absolute -left-12 top-1/2 -translate-y-1/2":s==="vertical"&&!t?"absolute -top-12 left-1/2 -translate-x-1/2 rotate-90":t,e),type:"button",disabled:!d,onClick:l,...n,children:[Pe(fs,{icon:"mdi:chevron-left",fontSize:25}),Pe("span",{className:"sr-only",children:"Previous slide"})]})});ys.displayName="CarouselPrevious";var xs=X.forwardRef(({className:e,position:t,variant:o="icon",size:a="default",...n},i)=>{let{orientation:s,scrollNext:l,canScrollNext:d}=Ht();return Ts(V,{ref:i,variant:o,size:a,className:r("rounded-full border border-gray-100",s==="horizontal"&&!t?"absolute -right-12 top-1/2 -translate-y-1/2":s==="vertical"&&!t?"absolute -bottom-12 left-1/2 -translate-x-1/2 rotate-90":t,e),type:"button",disabled:!d,onClick:l,...n,children:[Pe(fs,{icon:"mdi:chevron-right",fontSize:25}),Pe("span",{className:"sr-only",children:"Next slide"})]})});xs.displayName="CarouselNext";var Rs=X.forwardRef(({children:e,className:t,...o},a)=>Pe("div",{ref:a,className:r("grid grid-flow-col auto-cols-max justify-between gap-5 mt-7",t),...o,children:e}));Rs.displayName="CarouselControl";var Ps=X.forwardRef(({children:e,className:t,...o},a)=>Pe("div",{ref:a,className:r("grid grid-cols-2 justify-between gap-2 items-center",t),...o,children:e}));Ps.displayName="CarouselButton";var ws=X.forwardRef(({children:e,className:t,...o},a)=>Pe("div",{ref:a,className:r("flex flex-wrap justify-end items-center gap-2",t),...o,children:e}));ws.displayName="CarouselSelect";var Cs=X.forwardRef(({className:e,index:t,children:o,...a},n)=>{let{api:i}=Ht(),[s,l]=X.useState(!1),d=X.useCallback(()=>{i&&i.scrollTo(t)},[i,t]);return X.useEffect(()=>{if(!i)return;let c=()=>{l(i.selectedScrollSnap()===t)};return i.on("select",c),c(),()=>{i.off("select",c)}},[i,t]),Pe("button",{ref:n,type:"button",className:r("appearance-none bg-transparent touch-manipulation cursor-pointer","no-underline border-2 border-black dark:border-gray-200 p-0 m-0 w-4 h-4 items-center justify-center rounded-full",s?"bg-dark/60 dark:bg-gray-300":"",e),onClick:d,...a})});Cs.displayName="DotButton";var Ss=X.forwardRef(({className:e,classNameDot:t,...o},a)=>{let{api:n}=Ht(),[i,s]=X.useState([]);return X.useEffect(()=>{if(!n)return;s(n.scrollSnapList());let l=()=>{s(n.scrollSnapList())};return n.on("reInit",l),()=>{n.off("reInit",l)}},[n]),Pe("div",{ref:a,className:r("flex justify-center gap-2 mt-4",e),...o,children:i.map((l,d)=>Pe(Cs,{className:t,index:d},d))})});Ss.displayName="CarouselDots";import*as Ns from"react";import*as Oo from"@radix-ui/react-checkbox";import{Icon as Hm}from"@iconify/react";import{jsx as rn}from"react/jsx-runtime";var Ms=Ns.forwardRef(({className:e,...t},o)=>rn(Oo.Root,{ref:o,className:r("peer h-4 w-4 shrink-0 rounded-md border border-gray-100 shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-dark disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-dark data-[state=checked]:text-white",e),...t,children:rn(Oo.Indicator,{className:r("flex items-center justify-center text-current"),children:rn(Hm,{icon:"mdi:check",className:"h-4 w-4"})})}));Ms.displayName=Oo.Root.displayName;import*as io from"@radix-ui/react-collapsible";var Vm=io.Root,Fm=io.CollapsibleTrigger,Om=io.CollapsibleContent;import*as yt from"react";import{Command as we}from"cmdk";import*as Bo from"react";import*as ie from"@radix-ui/react-dialog";import{Icon as Bm}from"@iconify/react";import{jsx as lt,jsxs as an}from"react/jsx-runtime";var zo=ie.Root,zm=ie.Trigger,nn=ie.Close,sn=({...e})=>lt(ie.Portal,{...e});sn.displayName=ie.Portal.displayName;var ln=Bo.forwardRef(({className:e,...t},o)=>lt(ie.Overlay,{ref:o,className:r("fixed inset-0 z-12 bg-dark/80 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",e),...t}));ln.displayName=ie.Overlay.displayName;var Wm=j(r("fixed z-50 grid translate-x-[-50%] translate-y-[-33.3%] gap-4 border bg-white p-6 shadow-lg duration-200 rounded-lg w-full","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","left-0 right-0 top-[5%] mx-auto"),{variants:{size:{default:"max-w-lg",xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl"}},defaultVariants:{size:"default"}}),so=Bo.forwardRef(({size:e="md",className:t,children:o,...a},n)=>an(sn,{children:[lt(ln,{}),an(ie.Content,{ref:n,className:r(Wm({size:e,className:t})),...a,"data-size":e,children:[o,an(ie.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-dark transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-dark focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-dark data-[state=open]:text-gray-500",children:[lt(Bm,{icon:"mdi:close",className:"h-4 w-4"}),lt("span",{className:"sr-only",children:"Close"})]})]})]}));so.displayName=ie.Content.displayName;var Hr=({className:e,...t})=>lt("div",{className:r("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Hr.displayName="DialogHeader";var Vr=({className:e,...t})=>lt("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Vr.displayName="DialogFooter";var Fr=Bo.forwardRef(({className:e,...t},o)=>lt(ie.Title,{ref:o,className:r("text-lg font-semibold leading-none tracking-tight",e),...t}));Fr.displayName=ie.Title.displayName;var Or=Bo.forwardRef(({className:e,...t},o)=>lt(ie.Description,{ref:o,className:r("text-sm text-gray-500",e),...t}));Or.displayName=ie.Description.displayName;import{Icon as $m}from"@iconify/react";import{jsx as Oe,jsxs as _m}from"react/jsx-runtime";var Vt=yt.forwardRef(({className:e,...t},o)=>Oe(we,{ref:o,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Vt.displayName=we.displayName;var Ds=({children:e,...t})=>Oe(zo,{...t,children:Oe(so,{className:"overflow-hidden p-0",children:Oe(Vt,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-dark [&_[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})})});Ds.displayName="CommandDialog";var lo=yt.forwardRef(({className:e,...t},o)=>_m("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[Oe($m,{icon:"mdi:magnify",className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),Oe(we.Input,{ref:o,className:r("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-dark disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));lo.displayName=we.Input.displayName;var ks=yt.forwardRef(({className:e,...t},o)=>Oe(we.List,{ref:o,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));ks.displayName=we.List.displayName;var co=yt.forwardRef((e,t)=>Oe(we.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));co.displayName=we.Empty.displayName;var mo=yt.forwardRef(({className:e,...t},o)=>Oe(we.Group,{ref:o,className:r("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-dark",e),...t}));mo.displayName=we.Group.displayName;var Es=yt.forwardRef(({className:e,...t},o)=>Oe(we.Separator,{ref:o,className:r("-mx-1 h-px bg-border",e),...t}));Es.displayName=we.Separator.displayName;var uo=yt.forwardRef(({className:e,...t},o)=>Oe(we.Item,{ref:o,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-gray-200 aria-selected:text-dark data-[selected=true]:bg-gray-200 data-[selected=true]:text-dark data-[disabled]:pointer-events-none data-[disabled=true]:pointer-events-none data-[disabled]:opacity-50 data-[disabled=true]:opacity-50",e),...t}));uo.displayName=we.Item.displayName;var Is=({className:e,...t})=>Oe("span",{className:r("ml-auto text-xs tracking-widest text-dark",e),...t});Is.displayName="CommandShortcut";import*as dt from"react";import*as B from"@radix-ui/react-context-menu";import{Icon as dn}from"@iconify/react";import{jsx as Ce,jsxs as pn}from"react/jsx-runtime";var cn=B.Root,mn=B.Trigger,Gm=B.Group,Um=B.Portal,un=B.Sub,Ym=B.RadioGroup,Br=dt.forwardRef(({className:e,inset:t,children:o,...a},n)=>pn(B.SubTrigger,{ref:n,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-gray-200 focus:text-gray-800 data-[state=open]:bg-gray-100 data-[state=open]:text-black",t&&"pl-8",e),...a,children:[o,Ce(dn,{icon:"mdi:chevron-right",className:"ml-auto h-4 w-4"})]}));Br.displayName=B.SubTrigger.displayName;var zr=dt.forwardRef(({className:e,...t},o)=>Ce(B.SubContent,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-white p-1 text-dark dark:bg-dark dark:text-light 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}));zr.displayName=B.SubContent.displayName;var Wr=dt.forwardRef(({className:e,...t},o)=>Ce(B.Portal,{children:Ce(B.Content,{ref:o,className:r("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-light p-1 text-dark dark:bg-dark dark:text-light 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})}));Wr.displayName=B.Content.displayName;var $r=dt.forwardRef(({className:e,inset:t,...o},a)=>Ce(B.Item,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-gray-200 focus:text-gray-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...o}));$r.displayName=B.Item.displayName;var Ls=dt.forwardRef(({className:e,children:t,checked:o,...a},n)=>pn(B.CheckboxItem,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-200 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...a,children:[Ce("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:Ce(B.ItemIndicator,{children:Ce(dn,{icon:"mdi:check",className:"h-4 w-4"})})}),t]}));Ls.displayName=B.CheckboxItem.displayName;var As=dt.forwardRef(({className:e,children:t,...o},a)=>pn(B.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-200 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[Ce("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:Ce(B.ItemIndicator,{children:Ce(dn,{icon:"mdi:dot",className:"h-4 w-4 fill-current"})})}),t]}));As.displayName=B.RadioItem.displayName;var Hs=dt.forwardRef(({className:e,inset:t,...o},a)=>Ce(B.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold text-white",t&&"pl-8",e),...o}));Hs.displayName=B.Label.displayName;var Vs=dt.forwardRef(({className:e,...t},o)=>Ce(B.Separator,{ref:o,className:r("-mx-1 my-1 h-px bg-dark",e),...t}));Vs.displayName=B.Separator.displayName;var _r=({className:e,...t})=>Ce("span",{className:r("ml-auto text-xs tracking-widest text-dark dark:text-white",e),...t});_r.displayName="ContextMenuShortcut";import fn from"react";import{Slot as jm}from"@radix-ui/react-slot";import{jsx as ct,jsxs as gn}from"react/jsx-runtime";var Gr=e=>ct(fn.Fragment,{children:e.map((t,o)=>ct(fn.Fragment,{children:t?.child?gn(un,{children:[ct(Br,{children:t?.label}),ct(zr,{className:"w-48",children:Gr(t.child)})]}):gn($r,{onClick:()=>t?.onClick?.(),disabled:t.disabled,children:[t?.label,ct(_r,{children:t?.shortcut})]})},o))});Gr.displayName="RenderContextMenuItem";var Fs=fn.forwardRef(({asChild:e,title:t,list:o=[],...a},n)=>gn(cn,{children:[ct(mn,{asChild:e,ref:n,children:e?ct(jm,{...a,children:t}):ct(V,{tooltip:"right click",variant:"ghost",className:r(a?.className),children:t})}),ct(Wr,{className:"w-auto",children:Gr(o)})]}));Fs.displayName="ContextMenu";import bn from"react";import{jsx as _e,jsxs as Ur}from"react/jsx-runtime";var Km=({className:e,width:t=50,height:o=50,value:a,maxValue:n=360,meterColor:i="#007bff",meterWidth:s=5,textColor:l="#000000",pointerColor:d="#007bff",pointerRadius:c=10,onValueChange:p,padding:m=5})=>{let f=bn.useRef(null),[u,v]=bn.useState(!1),x=Math.min(t,o)-2*m,y=x/2,C=x/2,w=x/2*.85,R=b=>{let S=(b-270)*Math.PI/180,A=y+w*Math.cos(S),K=C+w*Math.sin(S);return{x:A,y:K}},g=(b,S)=>Math.round(Math.atan((S-C)/(b-y))/(Math.PI/180)+(b>y?270:90)),T=b=>{if(!u)return;let S=f.current?.getBoundingClientRect();if(S){let A=b.clientX-S.left-m,K=b.clientY-S.top-m,ee=g(A,K),fe=Math.round(ee/360*n);p(Math.min(fe,n))}};bn.useEffect(()=>(document.addEventListener("mousemove",T),document.addEventListener("mouseup",()=>v(!1)),()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",()=>v(!1))}),[u]);let O=R(0),M=R(a/n*360),_=`gradient-${Math.random().toString(36).substr(2,9)}`,h=()=>{if(typeof i=="string")return Ur("linearGradient",{id:_,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[_e("stop",{offset:"0%",stopColor:i}),_e("stop",{offset:"100%",stopColor:i})]});let{colors:b,stops:S}=i;return _e("linearGradient",{id:_,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:b.map((A,K)=>_e("stop",{offset:S?`${S[K]}%`:`${K/(b.length-1)*100}%`,stopColor:A},K))})};return _e("div",{className:r("inline-block",e),style:{width:`${t}px`,height:`${o}px`},children:Ur("svg",{ref:f,width:t,height:o,viewBox:`0 0 ${x+2*m} ${x+2*m}`,className:"touch-none select-none",children:[_e("defs",{children:h()}),Ur("g",{transform:`translate(${m}, ${m})`,children:[_e("circle",{cx:y,cy:C,r:w,className:"stroke-gray-200 stroke-[0.5] fill-none"}),_e("path",{stroke:`url(#${_})`,strokeWidth:s,fill:"none",d:`M${O.x} ${O.y} A ${w} ${w} 0 ${a>n/2?1:0} 1 ${M.x} ${M.y}`}),Ur("g",{transform:`translate(${M.x-c/2}, ${M.y-c/2})`,onMouseDown:()=>v(!0),children:[_e("circle",{cx:c/2,cy:c/2,r:c,fill:d,className:"cursor-pointer"}),_e("circle",{cx:c/2,cy:c/2,r:c*.7,fill:"#FFFFFF",className:"cursor-pointer"}),_e("text",{x:c/2,y:c/2,fontSize:c*.8,fill:l,textAnchor:"middle",dominantBaseline:"central",className:"select-none pointer-events-none",children:a})]})]})]})})};import*as Yo from"react";import*as ve from"@radix-ui/react-dialog";import U from"react";import Os from"react";var vn=Os.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,handleOnly:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),Wo=()=>{let e=Os.useContext(vn);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};import{useEffect as Bs}from"react";var qm=typeof window<"u"?Bs:Bs;function xn(...e){return(...t)=>{for(let o of e)typeof o=="function"&&o(...t)}}function Xm(){return Pn(/^Mac/)}function Jm(){return Pn(/^iPhone/)}function Qm(){return Pn(/^iPad/)||Xm()&&navigator.maxTouchPoints>1}function Rn(){return Jm()||Qm()}function Pn(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var hn=typeof document<"u"&&window.visualViewport;function zs(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function $s(e){for(zs(e)&&(e=e.parentElement);e&&!zs(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var Zm=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Yr=0,yn;function _s(e={}){let{isDisabled:t}=e;qm(()=>{if(!t)return Yr++,Yr===1&&(Rn()?yn=tu():yn=eu()),()=>{Yr--,Yr===0&&yn()}},[t])}function eu(){return xn(Gs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function tu(){let e,t=0,o=m=>{e=$s(m.target),!(e===document.documentElement&&e===document.body)&&(t=m.changedTouches[0].pageY)},a=m=>{if(!e||e===document.documentElement||e===document.body){m.preventDefault();return}let f=m.changedTouches[0].pageY,u=e.scrollTop,v=e.scrollHeight-e.clientHeight;v!==0&&((u<=0&&f>t||u>=v&&f<t)&&m.preventDefault(),t=f)},n=m=>{let f=m.target;jr(f)&&f!==document.activeElement&&(m.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},i=m=>{let f=m.target;jr(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",hn&&(hn.height<window.innerHeight?requestAnimationFrame(()=>{Ws(f)}):hn.addEventListener("resize",()=>Ws(f),{once:!0}))}))},s=()=>{window.scrollTo(0,0)},l=window.pageXOffset,d=window.pageYOffset,c=xn(Gs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let p=xn($o(document,"touchstart",o,{passive:!1,capture:!0}),$o(document,"touchmove",a,{passive:!1,capture:!0}),$o(document,"touchend",n,{passive:!1,capture:!0}),$o(document,"focus",i,!0),$o(window,"scroll",s));return()=>{c(),p(),window.scrollTo(l,d)}}function Gs(e,t,o){let a=e.style[t];return e.style[t]=o,()=>{e.style[t]=a}}function $o(e,t,o,a){return e.addEventListener(t,o,a),()=>{e.removeEventListener(t,o,a)}}function Ws(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let o=$s(e);if(o!==document.documentElement&&o!==document.body&&o!==e){let a=o.getBoundingClientRect().top,n=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom,s=o.getBoundingClientRect().bottom;i>s&&(o.scrollTop+=n-a)}e=o.parentElement}}function jr(e){return e instanceof HTMLInputElement&&!Zm.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}import*as Us from"react";function ou(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ru(...e){return t=>e.forEach(o=>ou(o,t))}function wn(...e){return Us.useCallback(ru(...e),e)}import po from"react";var _o=null;function Ys({isOpen:e,modal:t,nested:o,hasBeenOpened:a,preventScrollRestoration:n,noBodyStyles:i}){let[s,l]=po.useState(()=>typeof window<"u"?window.location.href:""),d=po.useRef(0),c=po.useCallback(()=>{if(_o===null&&e&&!i){_o={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};let{scrollX:m,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-d.current}px`,left:`${-m}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let u=f-window.innerHeight;u&&d.current>=f&&(document.body.style.top=`${-(d.current+u)}px`)}),300)}},[e]),p=po.useCallback(()=>{if(_o!==null&&!i){let m=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,_o),window.requestAnimationFrame(()=>{if(n&&s!==window.location.href){l(window.location.href);return}window.scrollTo(f,m)}),_o=null}},[s]);return po.useEffect(()=>{function m(){d.current=window.scrollY}return m(),window.addEventListener("scroll",m),()=>{window.removeEventListener("scroll",m)}},[]),po.useEffect(()=>{o||!a||(e?(!window.matchMedia("(display-mode: standalone)").matches&&c(),t||window.setTimeout(()=>{p()},500)):p())},[e,a,s,t,o,c,p]),{restorePositionSetting:p}}import fo from"react";var js=new WeakMap;function Z(e,t,o=!1){if(!e||!(e instanceof HTMLElement))return;let a={};Object.entries(t).forEach(([n,i])=>{if(n.startsWith("--")){e.style.setProperty(n,i);return}a[n]=e.style[n],e.style[n]=i}),!o&&js.set(e,a)}function Go(e,t){if(!e||!(e instanceof HTMLElement))return;let o=js.get(e);o&&(t?e.style[t]=o[t]:Object.entries(o).forEach(([a,n])=>{e.style[a]=n}))}var se=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Uo(e,t){if(!e)return null;let o=window.getComputedStyle(e),a=o.transform||o.webkitTransform||o.mozTransform,n=a.match(/^matrix3d\((.+)\)$/);return n?parseFloat(n[1].split(", ")[se(t)?13:12]):(n=a.match(/^matrix\((.+)\)$/),n?parseFloat(n[1].split(", ")[se(t)?5:4]):null)}function Ks(e){return 8*(Math.log(e+1)-2)}var J={DURATION:.5,EASE:[.32,.72,0,1]},Kr=.4;import Ft from"react";function qs(e){let t=Ft.useRef(e);return Ft.useEffect(()=>{t.current=e}),Ft.useMemo(()=>((...o)=>t.current?.(...o)),[])}function au({defaultProp:e,onChange:t}){let o=Ft.useState(e),[a]=o,n=Ft.useRef(a),i=qs(t);return Ft.useEffect(()=>{n.current!==a&&(i(a),n.current=a)},[a,n,i]),o}function Xs({prop:e,defaultProp:t,onChange:o=()=>{}}){let[a,n]=au({defaultProp:t,onChange:o}),i=e!==void 0,s=i?e:a,l=qs(o),d=Ft.useCallback(c=>{if(i){let m=typeof c=="function"?c(e):c;m!==e&&l(m)}else n(c)},[i,e,n,l]);return[s,d]}function Js({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:o,drawerRef:a,overlayRef:n,fadeFromIndex:i,onSnapPointChange:s,direction:l="bottom"}){let[d,c]=Xs({prop:e,defaultProp:o?.[0],onChange:t}),p=fo.useMemo(()=>d===o?.[o.length-1]||null,[o,d]),m=o&&o.length>0&&(i||i===0)&&!Number.isNaN(i)&&o[i]===d||!o,f=fo.useMemo(()=>o?.findIndex(R=>R===d),[o,d]),u=fo.useMemo(()=>o?.map(R=>{let g=typeof window<"u",T=typeof R=="string",O=0;if(T&&(O=parseInt(R,10)),se(l)){let _=T?O:g?R*window.innerHeight:0;return g?l==="bottom"?window.innerHeight-_:-window.innerHeight+_:_}let M=T?O:g?R*window.innerWidth:0;return g?l==="right"?window.innerWidth-M:-window.innerWidth+M:M})??[],[o]),v=fo.useMemo(()=>f?u?.[f]:null,[u,f]),x=fo.useCallback(R=>{let g=u?.findIndex(T=>T===R)??null;s(g),Z(a.current,{transition:`transform ${J.DURATION}s cubic-bezier(${J.EASE.join(",")})`,transform:se(l)?`translate3d(0, ${R}px, 0)`:`translate3d(${R}px, 0, 0)`}),u&&g!==u.length-1&&g!==i?Z(n.current,{transition:`opacity ${J.DURATION}s cubic-bezier(${J.EASE.join(",")})`,opacity:"0"}):Z(n.current,{transition:`opacity ${J.DURATION}s cubic-bezier(${J.EASE.join(",")})`,opacity:"1"}),c(g!==null?o?.[g]:null)},[a.current,o,u,i,n,c]);fo.useEffect(()=>{if(d||e){let R=o?.findIndex(g=>g===e||g===d)??-1;u&&R!==-1&&typeof u[R]=="number"&&x(u[R])}},[d,e,o,u,x]);function y({draggedDistance:R,closeDrawer:g,velocity:T,dismissible:O}){if(i===void 0)return;let M=l==="bottom"||l==="right"?(v??0)-R:(v??0)+R,_=f===i-1,h=f===0,b=R>0;if(_&&Z(n.current,{transition:`opacity ${J.DURATION}s cubic-bezier(${J.EASE.join(",")})`}),T>2&&!b){O?g():x(u[0]);return}if(T>2&&b&&u&&o){x(u[o.length-1]);return}let S=u?.reduce((K,ee)=>typeof K!="number"||typeof ee!="number"?K:Math.abs(ee-M)<Math.abs(K-M)?ee:K),A=se(l)?window.innerHeight:window.innerWidth;if(T>Kr&&Math.abs(R)<A*.4){let K=b?1:-1;if(K>0&&p&&o){x(u[o.length-1]);return}if(h&&K<0&&O&&g(),!f)return;x(u[f+K]);return}x(S)}function C({draggedDistance:R}){if(v===null)return;let g=l==="bottom"||l==="right"?v-R:v+R;(l==="bottom"||l==="right")&&g<u[u.length-1]||(l==="top"||l==="left")&&g>u[u.length-1]||Z(a.current,{transform:se(l)?`translate3d(0, ${g}px, 0)`:`translate3d(${g}px, 0, 0)`})}function w(R,g){if(!o||typeof f!="number"||!u||i===void 0)return null;let T=f===i-1;if(f>=i&&g)return 0;if(T&&!g)return 1;if(!m&&!T)return null;let M=T?f+1:f-1,_=T?u[M]-u[M-1]:u[M+1]-u[M],h=R/Math.abs(_);return T?1-h:h}return{isLastSnapPoint:p,activeSnapPoint:d,shouldFade:m,getPercentageDragged:w,setActiveSnapPoint:c,activeSnapPointIndex:f,onRelease:y,onDrag:C,snapPointsOffset:u}}import{jsx as Bt}from"react/jsx-runtime";var nu=.25,iu=100,Qs=8,Ot=16,Zs=26,Cn="vaul-dragging";function el({open:e,onOpenChange:t,children:o,shouldScaleBackground:a,onDrag:n,onRelease:i,snapPoints:s,nested:l=!1,setBackgroundColorOnScale:d=!0,closeThreshold:c=nu,scrollLockTimeout:p=iu,dismissible:m=!0,handleOnly:f=!1,fadeFromIndex:u=s&&s.length-1,activeSnapPoint:v,setActiveSnapPoint:x,fixed:y,modal:C=!0,onClose:w,noBodyStyles:R=!1,direction:g="bottom",preventScrollRestoration:T=!0,disablePreventScroll:O=!1}){let[M=!1,_]=U.useState(!1),[h,b]=U.useState(!1),[S,A]=U.useState(!1),[K,ee]=U.useState(!1),[fe,We]=U.useState(!1),[kt,$e]=U.useState(!1),k=U.useRef(null),N=U.useRef(null),D=U.useRef(null),P=U.useRef(null),E=U.useRef(null),me=U.useRef(!1),He=U.useRef(null),$a=U.useRef(0),Qt=U.useRef(!1),hi=U.useRef(0),F=U.useRef(null),yi=U.useRef(F.current?.getBoundingClientRect().height||0),_a=U.useRef(0),Gc=U.useCallback(H=>{s&&H===Ho.length-1&&(N.current=new Date)},[]),{activeSnapPoint:Uc,activeSnapPointIndex:Ao,setActiveSnapPoint:xi,onRelease:Yc,snapPointsOffset:Ho,onDrag:jc,shouldFade:Ri,getPercentageDragged:Kc}=Js({snapPoints:s,activeSnapPointProp:v,setActiveSnapPointProp:x,drawerRef:F,fadeFromIndex:u,overlayRef:k,onSnapPointChange:Gc,direction:g});_s({isDisabled:!M||fe||!C||kt||!h||O});let{restorePositionSetting:qc}=Ys({isOpen:M,modal:C,nested:l,hasBeenOpened:h,preventScrollRestoration:T,noBodyStyles:R});function Zt(){return(window.innerWidth-Zs)/window.innerWidth}function Xc(H){!m&&!s||F.current&&!F.current.contains(H.target)||(yi.current=F.current?.getBoundingClientRect().height||0,We(!0),D.current=new Date,Rn()&&window.addEventListener("touchend",()=>me.current=!1,{once:!0}),H.target.setPointerCapture(H.pointerId),$a.current=se(g)?H.clientY:H.clientX)}function Pi(H,q){let G=H,Q=window.getSelection()?.toString(),ue=F.current?Uo(F.current,g):null,xe=new Date;if(G.hasAttribute("data-vaul-no-drag")||G.closest("[data-vaul-no-drag]"))return!1;if(g==="right"||g==="left")return!0;if(N.current&&xe.getTime()-N.current.getTime()<500)return!1;if(ue!==null&&(g==="bottom"?ue>0:ue<0))return!0;if(Q&&Q.length>0)return!1;if(E.current&&xe.getTime()-E.current.getTime()<p&&ue===0||q)return E.current=xe,!1;for(;G;){if(G.scrollHeight>G.clientHeight){if(G.scrollTop!==0)return E.current=new Date,!1;if(G.getAttribute("role")==="dialog")return!0}G=G.parentNode}return!0}function Jc(H){if(F.current&&fe){let q=g==="bottom"||g==="right"?1:-1,G=($a.current-(se(g)?H.clientY:H.clientX))*q,Q=G>0,ue=s&&!m&&!Q;if(ue&&Ao===0)return;let xe=Math.abs(G),nt=document.querySelector("[vaul-drawer-wrapper]"),je=xe/yi.current,Ci=Kc(xe,Q);if(Ci!==null&&(je=Ci),ue&&je>=1||!me.current&&!Pi(H.target,Q))return;if(F.current.classList.add(Cn),me.current=!0,Z(F.current,{transition:"none"}),Z(k.current,{transition:"none"}),s&&jc({draggedDistance:G}),Q&&!s){let Et=Ks(G),Rr=Math.min(Et*-1,0)*q;Z(F.current,{transform:se(g)?`translate3d(0, ${Rr}px, 0)`:`translate3d(${Rr}px, 0, 0)`});return}let rm=1-je;if((Ri||u&&Ao===u-1)&&(n?.(H,je),Z(k.current,{opacity:`${rm}`,transition:"none"},!0)),nt&&k.current&&a){let Et=Math.min(Zt()+je*(1-Zt()),1),Rr=8-je*8,Si=Math.max(0,14-je*14);Z(nt,{borderRadius:`${Rr}px`,transform:se(g)?`scale(${Et}) translate3d(0, ${Si}px, 0)`:`scale(${Et}) translate3d(${Si}px, 0, 0)`,transition:"none"},!0)}if(!s){let Et=xe*q;Z(F.current,{transform:se(g)?`translate3d(0, ${Et}px, 0)`:`translate3d(${Et}px, 0, 0)`})}}}U.useEffect(()=>()=>{xr(!1),qc()},[]),U.useEffect(()=>{function H(){if(!F.current)return;let q=document.activeElement;if(jr(q)||Qt.current){let G=window.visualViewport?.height||0,Q=window.innerHeight-G,ue=F.current.getBoundingClientRect().height||0;_a.current||(_a.current=ue);let xe=F.current.getBoundingClientRect().top;if(Math.abs(hi.current-Q)>60&&(Qt.current=!Qt.current),s&&s.length>0&&Ho&&Ao){let nt=Ho[Ao]||0;Q+=nt}if(hi.current=Q,ue>G||Qt.current){let nt=F.current.getBoundingClientRect().height,je=nt;nt>G&&(je=G-Zs),y?F.current.style.height=`${nt-Math.max(Q,0)}px`:F.current.style.height=`${Math.max(je,G-xe)}px`}else F.current.style.height=`${_a.current}px`;s&&s.length>0&&!Qt.current?F.current.style.bottom="0px":F.current.style.bottom=`${Math.max(Q,0)}px`}}return window.visualViewport?.addEventListener("resize",H),()=>window.visualViewport?.removeEventListener("resize",H)},[Ao,s,Ho]);function eo(){F.current&&(Qc(),w?.(),Z(F.current,{transform:se(g)?`translate3d(0, ${g==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${g==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${J.DURATION}s cubic-bezier(${J.EASE.join(",")})`}),Z(k.current,{opacity:"0",transition:`opacity ${J.DURATION}s cubic-bezier(${J.EASE.join(",")})`}),xr(!1),setTimeout(()=>{A(!1),_(!1)},300),setTimeout(()=>{s&&xi(s[0])},J.DURATION*1e3))}U.useEffect(()=>{if(!M&&a){let H=setTimeout(()=>{Go(document.body)},200);return()=>clearTimeout(H)}},[M,a]),U.useEffect(()=>{e?(_(!0),b(!0)):eo()},[e]),U.useEffect(()=>{K&&t?.(M)},[M]),U.useEffect(()=>{ee(!0)},[]);function wi(){if(!F.current)return;let H=document.querySelector("[vaul-drawer-wrapper]"),q=Uo(F.current,g);Z(F.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${J.DURATION}s cubic-bezier(${J.EASE.join(",")})`}),Z(k.current,{transition:`opacity ${J.DURATION}s cubic-bezier(${J.EASE.join(",")})`,opacity:"1"}),a&&q&&q>0&&M&&Z(H,{borderRadius:`${Qs}px`,overflow:"hidden",...se(g)?{transform:`scale(${Zt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Zt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${J.DURATION}s`,transitionTimingFunction:`cubic-bezier(${J.EASE.join(",")})`},!0)}function Qc(){!fe||!F.current||(F.current.classList.remove(Cn),me.current=!1,We(!1),P.current=new Date)}function Zc(H){if(!fe||!F.current)return;F.current.classList.remove(Cn),me.current=!1,We(!1),P.current=new Date;let q=Uo(F.current,g);if(!Pi(H.target,!1)||!q||Number.isNaN(q)||D.current===null)return;let G=P.current.getTime()-D.current.getTime(),Q=$a.current-(se(g)?H.clientY:H.clientX),ue=Math.abs(Q)/G;if(ue>.05&&($e(!0),setTimeout(()=>{$e(!1)},200)),s){Yc({draggedDistance:Q*(g==="bottom"||g==="right"?1:-1),closeDrawer:eo,velocity:ue,dismissible:m}),i?.(H,!0);return}if(g==="bottom"||g==="right"?Q>0:Q<0){wi(),i?.(H,!0);return}if(ue>Kr){eo(),i?.(H,!1);return}let xe=Math.min(F.current.getBoundingClientRect().height??0,window.innerHeight);if(q>=xe*c){eo(),i?.(H,!1);return}i?.(H,!0),wi()}U.useEffect(()=>{M&&(Z(document.documentElement,{scrollBehavior:"auto"}),N.current=new Date,xr(!0))},[M]),U.useEffect(()=>{F.current&&S&&F?.current?.querySelectorAll("*")?.forEach(q=>{let G=q;(G.scrollHeight>G.clientHeight||G.scrollWidth>G.clientWidth)&&G.classList.add("vaul-scrollable")})},[S]);function xr(H){let q=document.querySelector("[vaul-drawer-wrapper]");!q||!a||(H?(d&&(R||(Z(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),Z(document.body,{background:"black"},!0))),Z(q,{borderRadius:`${Qs}px`,overflow:"hidden",...se(g)?{transform:`scale(${Zt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Zt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${J.DURATION}s`,transitionTimingFunction:`cubic-bezier(${J.EASE.join(",")})`})):(Go(q,"overflow"),Go(q,"transform"),Go(q,"borderRadius"),Z(q,{transitionProperty:"transform, border-radius",transitionDuration:`${J.DURATION}s`,transitionTimingFunction:`cubic-bezier(${J.EASE.join(",")})`})))}function em(H){let q=H?(window.innerWidth-Ot)/window.innerWidth:1,G=H?-Ot:0;He.current&&window.clearTimeout(He.current),Z(F.current,{transition:`transform ${J.DURATION}s cubic-bezier(${J.EASE.join(",")})`,transform:`scale(${q}) translate3d(0, ${G}px, 0)`}),!H&&F.current&&(He.current=setTimeout(()=>{let Q=Uo(F.current,g);Z(F.current,{transition:"none",transform:se(g)?`translate3d(0, ${Q}px, 0)`:`translate3d(${Q}px, 0, 0)`})},500))}function tm(H,q){if(q<0)return;let G=se(g)?window.innerHeight:window.innerWidth,Q=(G-Ot)/G,ue=Q+q*(1-Q),xe=-Ot+q*Ot;Z(F.current,{transform:se(g)?`scale(${ue}) translate3d(0, ${xe}px, 0)`:`scale(${ue}) translate3d(${xe}px, 0, 0)`,transition:"none"})}function om(H,q){let G=se(g)?window.innerHeight:window.innerWidth,Q=q?(G-Ot)/G:1,ue=q?-Ot:0;q&&Z(F.current,{transition:`transform ${J.DURATION}s cubic-bezier(${J.EASE.join(",")})`,transform:se(g)?`scale(${Q}) translate3d(0, ${ue}px, 0)`:`scale(${Q}) translate3d(${ue}px, 0, 0)`})}return Bt(ve.Root,{modal:C,onOpenChange:H=>{if(e!==void 0){t?.(H);return}H?(b(!0),_(H)):eo()},open:M,children:Bt(vn.Provider,{value:{visible:S,activeSnapPoint:Uc,snapPoints:s,setActiveSnapPoint:xi,drawerRef:F,overlayRef:k,scaleBackground:xr,onOpenChange:t,onPress:Xc,setVisible:A,onRelease:Zc,onDrag:Jc,dismissible:m,handleOnly:f,isOpen:M,isDragging:fe,shouldFade:Ri,closeDrawer:eo,onNestedDrag:tm,onNestedOpenChange:em,onNestedRelease:om,keyboardIsOpen:Qt,openProp:e,modal:C,snapPointsOffset:Ho,direction:g},children:o})})}var su=250,lu=120,tl=U.forwardRef(function({preventCycle:e=!1,children:t,...o},a){let{visible:n,closeDrawer:i,isDragging:s,snapPoints:l,activeSnapPoint:d,setActiveSnapPoint:c,dismissible:p,handleOnly:m,onPress:f,onDrag:u}=Wo(),v=U.useRef(null),x=U.useRef(!1);function y(){if(x.current){R();return}window.setTimeout(()=>{C()},lu)}function C(){if(s||e||x.current){R();return}if(R(),(!l||l.length===0)&&p){i();return}if(d===l?.length&&l?.[l.length-1]&&p){i();return}let T=l?.findIndex(M=>M===d);if(T===-1)return;let O=l?.length&&T&&l?.[T+1];c(O)}function w(){v.current=window.setTimeout(()=>{x.current=!0},su)}function R(){v.current&&window.clearTimeout(v.current),x.current=!1}return Bt("div",{onClick:y,onDoubleClick:()=>{x.current=!0,i()},onPointerCancel:R,onPointerDown:g=>{m&&f(g),w()},onPointerMove:g=>{m&&u(g)},ref:a,"vaul-drawer-visible":n?"true":"false","vaul-handle":"","aria-hidden":"true",...o,children:Bt("span",{"vaul-handle-hitarea":"","aria-hidden":"true",children:t})})});tl.displayName="Drawer.Handle";var ol=U.forwardRef(function({children:e,...t},o){let{overlayRef:a,snapPoints:n,onRelease:i,shouldFade:s,isOpen:l,visible:d}=Wo(),c=wn(o,a),p=n&&n.length>0;return Bt(ve.Overlay,{onMouseUp:i,ref:c,"vaul-drawer-visible":d?"true":"false","vaul-overlay":"","vaul-snap-points":l&&p?"true":"false","vaul-snap-points-overlay":l&&s?"true":"false",...t})});ol.displayName="Drawer.Overlay";var rl=U.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:t,onAnimationEnd:o,style:a,...n},i){let{drawerRef:s,onPress:l,onRelease:d,onDrag:c,dismissible:p,keyboardIsOpen:m,snapPointsOffset:f,visible:u,closeDrawer:v,modal:x,openProp:y,onOpenChange:C,setVisible:w,handleOnly:R,direction:g}=Wo(),T=wn(i,s),O=U.useRef(null),M=U.useRef(!1),_=(h,b,S=0)=>{if(M.current)return!0;let A=Math.abs(h.y),K=Math.abs(h.x),ee=K>A,fe=b&&["bottom","right"].includes(b)?1:-1;if(b==="left"||b==="right"){if(!(h.x*fe<0)&&K>=0&&K<=S)return ee}else if(!(h.y*fe<0)&&A>=0&&A<=S)return!ee;return M.current=!0,!0};return U.useEffect(()=>{w(!0)},[]),Bt(ve.Content,{"vaul-drawer":"","vaul-drawer-direction":g,"vaul-drawer-visible":u?"true":"false",...n,ref:T,style:f&&f.length>0?{"--snap-point-height":`${f[0]}px`,...a}:a,onOpenAutoFocus:h=>{e?e(h):(h.preventDefault(),s.current?.focus())},onPointerDown:h=>{R||(n.onPointerDown?.(h),O.current={x:h.clientX,y:h.clientY},l(h))},onPointerDownOutside:h=>{if(t?.(h),!x||h.defaultPrevented){h.preventDefault();return}m.current&&(m.current=!1),h.preventDefault(),C?.(!1),!(!p||y!==void 0)&&v()},onFocusOutside:h=>{if(!x){h.preventDefault();return}},onEscapeKeyDown:h=>{if(!x){h.preventDefault();return}},onPointerMove:h=>{if(R||(n.onPointerMove?.(h),!O.current))return;let b=h.clientY-O.current.y,S=h.clientX-O.current.x,A=h.pointerType==="touch"?10:2;_({x:S,y:b},g,A)?c(h):(Math.abs(S)>A||Math.abs(b)>A)&&(O.current=null)},onPointerUp:h=>{n.onPointerUp?.(h),O.current=null,M.current=!1,d(h)}})});rl.displayName="Drawer.Content";function du({onDrag:e,onOpenChange:t,...o}){let{onNestedDrag:a,onNestedOpenChange:n,onNestedRelease:i}=Wo();if(!a)throw new Error("Drawer.NestedRoot must be placed in another drawer");return Bt(el,{nested:!0,onClose:()=>{n(!1)},onDrag:(s,l)=>{a(s,l),e?.(s,l)},onOpenChange:s=>{s&&n(s),t?.(s)},onRelease:i,...o})}var Be={Root:el,NestedRoot:du,Content:rl,Handle:tl,Overlay:ol,Trigger:ve.Trigger,Portal:ve.Portal,Close:ve.Close,Title:ve.Title,Description:ve.Description};import{jsx as xt,jsxs as al}from"react/jsx-runtime";var Rt=({shouldScaleBackground:e=!0,...t})=>xt(Be.Root,{shouldScaleBackground:e,...t});Rt.displayName="Drawer";var jo=Be.Trigger,nl=Be.Portal,Sn=Be.Close,Tn=Yo.forwardRef(({className:e,...t},o)=>xt(Be.Overlay,{ref:o,className:r("fixed inset-0 z-50 bg-black/80",e),...t}));Tn.displayName=Be.Overlay.displayName;var Pt=Yo.forwardRef(({className:e,children:t,...o},a)=>al(nl,{children:[xt(Tn,{}),al(Be.Content,{ref:a,className:r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-white dark:bg-dark will-change-transform ease-slide transition-transform","[&[vaul-drawer-visible=true]]:-translate-y-[translate3d(0,var(--snap-point-height,0),0)]","[&[vaul-drawer-direction=bottom]]:translate-y-full","[&[vaul-drawer-direction=top]]:-translate-y-full","[&[vaul-drawer-direction=left]]:-translate-x-full","[&[vaul-drawer-direction=right]]:translate-x-full",e),...o,children:[xt("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-gray-200 dark:bg-white"}),t]})]}));Pt.displayName="DrawerContent";var qr=({className:e,...t})=>xt("div",{className:r("grid gap-1.5 p-4 text-center sm:text-left",e),...t});qr.displayName="DrawerHeader";var Xr=({className:e,...t})=>xt("div",{className:r("mt-auto flex flex-col gap-2 p-4",e),...t});Xr.displayName="DrawerFooter";var Jr=Yo.forwardRef(({className:e,...t},o)=>xt(Be.Title,{ref:o,className:r("text-lg font-semibold leading-none tracking-tight",e),...t}));Jr.displayName=Be.Title.displayName;var Qr=Yo.forwardRef(({className:e,...t},o)=>xt(Be.Description,{ref:o,className:r("text-sm text-gray-500",e),...t}));Qr.displayName=Be.Description.displayName;import*as mt from"react";import*as z from"@radix-ui/react-dropdown-menu";import{Icon as Nn}from"@iconify/react";import{jsx as Se,jsxs as En}from"react/jsx-runtime";var Ko=z.Root,qo=z.Trigger,Mn=z.Group,Dn=z.Portal,kn=z.Sub,cu=z.RadioGroup,Zr=mt.forwardRef(({className:e,inset:t,children:o,...a},n)=>En(z.SubTrigger,{ref:n,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-gray-100 data-[state=open]:bg-gray-100 dark:focus:bg-gray-800 dark:data-[state=open]:bg-gray-800",t&&"pl-8",e),...a,children:[o,Se(Nn,{icon:"mdi:chevron-right",className:"ml-auto h-4 w-4"})]}));Zr.displayName=z.SubTrigger.displayName;var ea=mt.forwardRef(({className:e,...t},o)=>Se(z.SubContent,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border text-gray-950 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-dropdown-menu-content-transform-origin]","border-gray-200 bg-white dark:bg-dark","p-1 dark:border-gray-800 dark:text-gray-50",e),...t}));ea.displayName=z.SubContent.displayName;var go=mt.forwardRef(({className:e,sideOffset:t=4,...o},a)=>Se(z.Portal,{children:Se(z.Content,{ref:a,sideOffset:t,className:r("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-gray-200 bg-white p-1 text-gray-950 shadow-md","dark:border-white dark:bg-gray-950 dark:text-white dark:bg-dark border-gray-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-[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-dropdown-menu-content-transform-origin]",e),...o})}));go.displayName=z.Content.displayName;var Xo=mt.forwardRef(({className:e,inset:t,...o},a)=>Se(z.Item,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","dark:bg-dark dark:border-gray-200"," transition-colors focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-800 dark:focus:text-gray-50",t&&"pl-8",e),...o}));Xo.displayName=z.Item.displayName;var Jo=mt.forwardRef(({className:e,children:t,checked:o,...a},n)=>En(z.CheckboxItem,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm","dark:bg-dark dark:border-gray-200"," py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-800 dark:focus:text-gray-50",e),checked:o,...a,children:[Se("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:Se(z.ItemIndicator,{children:Se(Nn,{icon:"mdi:check",className:"h-4 w-4"})})}),t]}));Jo.displayName=z.CheckboxItem.displayName;var il=mt.forwardRef(({className:e,children:t,...o},a)=>En(z.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","dark:bg-dark dark:border-gray-200"," transition-colors focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-500 dark:focus:text-gray-50 dark:bg-gray-500",e),...o,children:[Se("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:Se(z.ItemIndicator,{children:Se(Nn,{icon:"mdi:dot",className:"h-4 w-4 fill-current"})})}),t]}));il.displayName=z.RadioItem.displayName;var ta=mt.forwardRef(({className:e,inset:t,...o},a)=>Se(z.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold dark:text-white dark:bg-gray-500",t&&"pl-8",e),...o}));ta.displayName=z.Label.displayName;var bo=mt.forwardRef(({className:e,...t},o)=>Se(z.Separator,{ref:o,className:r("-mx-1 my-1 h-px bg-gray-100 dark:bg-gray-800",e),...t}));bo.displayName=z.Separator.displayName;var oa=({className:e,...t})=>Se("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...t});oa.displayName="DropdownMenuShortcut";import{jsx as vo}from"react/jsx-runtime";function mu({className:e,...t}){return vo("div",{"data-slot":"empty",className:r("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12",e),...t})}function uu({className:e,...t}){return vo("div",{"data-slot":"empty-header",className:r("flex max-w-sm flex-col items-center gap-2 text-center",e),...t})}var sl=j("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function pu({className:e,variant:t="default",...o}){return vo("div",{"data-slot":"empty-icon","data-variant":t,className:r(sl({variant:t,className:e})),...o})}function fu({className:e,...t}){return vo("div",{"data-slot":"empty-title",className:r("text-lg font-medium tracking-tight",e),...t})}function gu({className:e,...t}){return vo("div",{"data-slot":"empty-description",className:r("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",e),...t})}function bu({className:e,...t}){return vo("div",{"data-slot":"empty-content",className:r("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm",e),...t})}import{useMemo as yu}from"react";import*as ll from"react";import*as In from"@radix-ui/react-label";import{jsx as hu}from"react/jsx-runtime";var vu=j("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-black dark:text-white"),wt=ll.forwardRef(({className:e,...t},o)=>hu(In.Root,{ref:o,className:r(vu(),e),...t}));wt.displayName=In.Root.displayName;import{jsx as Me,jsxs as ku}from"react/jsx-runtime";function xu({className:e,...t}){return Me("fieldset",{"data-slot":"field-set",className:r("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",e),...t})}function Ru({className:e,variant:t="legend",...o}){return Me("legend",{"data-slot":"field-legend","data-variant":t,className:r("mb-3 font-medium","data-[variant=legend]:text-base","data-[variant=label]:text-sm",e),...o})}function Pu({className:e,...t}){return Me("div",{"data-slot":"field-group",className:r("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...t})}var dl=j("group/field data-[invalid=true]:text-destructive flex w-full gap-3",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start"],responsive:["@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function wu({className:e,orientation:t="vertical",...o}){return Me("div",{role:"group","data-slot":"field","data-orientation":t,className:r(dl({orientation:t}),e),...o})}function Cu({className:e,...t}){return Me("div",{"data-slot":"field-content",className:r("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",e),...t})}function Su({className:e,...t}){return Me(wt,{"data-slot":"field-label",className:r("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e),...t})}function Tu({className:e,...t}){return Me("div",{"data-slot":"field-label",className:r("flex w-fit items-center gap-2 text-sm font-medium leading-snug group-data-[disabled=true]/field:opacity-50",e),...t})}function Nu({className:e,...t}){return Me("p",{"data-slot":"field-description",className:r("text-muted-foreground text-sm font-normal leading-normal group-has-[[data-orientation=horizontal]]/field:text-balance","nth-last-2:-mt-1 last:mt-0 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})}function Mu({children:e,className:t,...o}){return ku("div",{"data-slot":"field-separator","data-content":!!e,className:r("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",t),...o,children:[Me(Xe,{className:"absolute inset-0 top-1/2"}),e&&Me("span",{className:"bg-background text-muted-foreground relative mx-auto block w-fit px-2","data-slot":"field-separator-content",children:e})]})}function Du({className:e,children:t,errors:o,...a}){let n=yu(()=>t||(o?o?.length===1&&o[0]?.message?o[0].message:Me("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:o.map((i,s)=>i?.message&&Me("li",{children:i.message},s))}):null),[t,o]);return n?Me("div",{role:"alert","data-slot":"field-error",className:r("text-destructive text-sm font-normal",e),...a,children:n}):null}import*as Te from"react";import{Slot as Eu}from"@radix-ui/react-slot";import{Controller as Iu,FormProvider as Lu,useFormContext as Au}from"react-hook-form";import{jsx as Ct}from"react/jsx-runtime";var Hu=Lu,cl=Te.createContext({}),Ln=({...e})=>Ct(cl.Provider,{value:{name:e.name},children:Ct(Iu,{...e})}),Qo=()=>{let e=Te.useContext(cl),t=Te.useContext(ml),{getFieldState:o,formState:a}=Au(),n=o(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...n}},ml=Te.createContext({}),ra=Te.forwardRef(({className:e,...t},o)=>{let a=Te.useId();return Ct(ml.Provider,{value:{id:a},children:Ct("div",{ref:o,className:r("space-y-2",e),...t})})});ra.displayName="FormItem";var aa=Te.forwardRef(({className:e,...t},o)=>{let{error:a,formItemId:n}=Qo();return Ct(wt,{ref:o,className:r(a&&"text-danger",e),htmlFor:n,...t})});aa.displayName="FormLabel";var na=Te.forwardRef(({...e},t)=>{let{error:o,formItemId:a,formDescriptionId:n,formMessageId:i}=Qo();return Ct(Eu,{ref:t,id:a,"aria-describedby":o?`${n} ${i}`:`${n}`,"aria-invalid":!!o,...e})});na.displayName="FormControl";var ia=Te.forwardRef(({className:e,...t},o)=>{let{formDescriptionId:a}=Qo();return Ct("p",{ref:o,id:a,className:r("text-[0.8rem] text-gray-500",e),...t})});ia.displayName="FormDescription";var sa=Te.forwardRef(({className:e,children:t,...o},a)=>{let{error:n,formMessageId:i}=Qo(),s=n?String(n?.message??""):t;return s?Ct("p",{ref:a,id:i,className:r("text-[0.8rem] font-medium text-danger",e),...o,children:s}):null});sa.displayName="FormMessage";import*as ul from"react";import*as zt from"@radix-ui/react-hover-card";import{jsx as Ou}from"react/jsx-runtime";var Vu=zt.Root,Fu=zt.Trigger,pl=ul.forwardRef(({className:e,align:t="center",sideOffset:o=4,...a},n)=>Ou(zt.Content,{ref:n,align:t,sideOffset:o,className:r("z-50 w-64 rounded-md border bg-white p-4 text-dark 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-hover-card-content-transform-origin]",e),...a}));pl.displayName=zt.Content.displayName;import*as fl from"react";import{jsx as Bu}from"react/jsx-runtime";var ge=fl.forwardRef(({className:e,type:t,...o},a)=>Bu("input",{type:t,className:r("flex h-9 w-full text-black dark:text-white rounded-md border border-gray-100 bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-dark disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));ge.displayName="Input";import*as gl from"react";import{jsx as zu}from"react/jsx-runtime";var ho=gl.forwardRef(({className:e,...t},o)=>zu("textarea",{className:r("flex min-h-[60px] w-full dark:text-gray-100 rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-gray-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-dark disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));ho.displayName="Textarea";import{jsx as yo}from"react/jsx-runtime";function Wu({className:e,...t}){return yo("div",{"data-slot":"input-group",role:"group",className:r("group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-md border outline-none transition-[color,box-shadow]","h-9 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:ring-ring has-[[data-slot=input-group-control]:focus-visible]:ring-1","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e),...t})}var bl=j("text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.4rem] has-[>kbd]:mr-[-0.35rem]","block-start":"[.border-b]:pb-3 order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5","block-end":"[.border-t]:pt-3 order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function $u({className:e,align:t="inline-start",...o}){return yo("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:r(bl({align:t}),e),onClick:a=>{a.target.closest("button")||a.currentTarget.parentElement?.querySelector("input")?.focus()},...o})}var vl=j("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function _u({className:e,type:t="button",variant:o="ghost",size:a="xs",...n}){return yo(V,{type:t,"data-size":a,variant:o,className:r(vl({size:a}),e),...n})}function Gu({className:e,...t}){return yo("span",{className:r("text-muted-foreground flex items-center gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",e),...t})}function Uu({className:e,...t}){return yo(ge,{"data-slot":"input-group-control",className:r("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function Yu({className:e,...t}){return yo(ho,{"data-slot":"input-group-control",className:r("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}import*as Wt from"react";import{OTPInput as ju,OTPInputContext as Ku}from"input-otp";import{Icon as qu}from"@iconify/react";import{jsx as xo,jsxs as Xu}from"react/jsx-runtime";var hl=Wt.forwardRef(({className:e,containerClassName:t,...o},a)=>xo(ju,{ref:a,containerClassName:r("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:r("disabled:cursor-not-allowed",e),...o}));hl.displayName="InputOTP";var yl=Wt.forwardRef(({className:e,...t},o)=>xo("div",{ref:o,className:r("flex items-center",e),...t}));yl.displayName="InputOTPGroup";var xl=Wt.forwardRef(({index:e,className:t,...o},a)=>{let n=Wt.useContext(Ku),{char:i,hasFakeCaret:s,isActive:l}=n.slots[e];return Xu("div",{ref:a,className:r("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"z-10 ring-2 ring-ring ring-offset-background",t),...o,children:[i,s&&xo("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:xo("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});xl.displayName="InputOTPSlot";var Rl=Wt.forwardRef(({...e},t)=>xo("div",{ref:t,role:"separator",...e,children:xo(qu,{icon:"mdi:dot"})}));Rl.displayName="InputOTPSeparator";import{Slot as Ju}from"@radix-ui/react-slot";import{jsx as Je}from"react/jsx-runtime";function Qu({className:e,...t}){return Je("div",{role:"list","data-slot":"item-group",className:r("group/item-group flex flex-col",e),...t})}function Zu({className:e,...t}){return Je(Xe,{"data-slot":"item-separator",orientation:"horizontal",className:r("my-0",e),...t})}var Pl=j("group/item [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 [a]:transition-colors flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]",{variants:{variant:{default:"bg-transparent",outline:"border-border",muted:"bg-muted/50"},size:{default:"gap-4 p-4 ",sm:"gap-2.5 px-4 py-3"}},defaultVariants:{variant:"default",size:"default"}});function ep({className:e,variant:t="default",size:o="default",asChild:a=!1,...n}){return Je(a?Ju:"div",{"data-slot":"item","data-variant":t,"data-size":o,className:r(Pl({variant:t,size:o,className:e})),...n})}var wl=j("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});function tp({className:e,variant:t="default",...o}){return Je("div",{"data-slot":"item-media","data-variant":t,className:r(wl({variant:t,className:e})),...o})}function op({className:e,...t}){return Je("div",{"data-slot":"item-content",className:r("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",e),...t})}function rp({className:e,...t}){return Je("div",{"data-slot":"item-title",className:r("flex w-fit items-center gap-2 text-sm font-medium leading-snug",e),...t})}function ap({className:e,...t}){return Je("p",{"data-slot":"item-description",className:r("text-muted-foreground line-clamp-2 text-balance text-sm font-normal leading-normal","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})}function np({className:e,...t}){return Je("div",{"data-slot":"item-actions",className:r("flex items-center gap-2",e),...t})}function ip({className:e,...t}){return Je("div",{"data-slot":"item-header",className:r("flex basis-full items-center justify-between gap-2",e),...t})}function sp({className:e,...t}){return Je("div",{"data-slot":"item-footer",className:r("flex basis-full items-center justify-between gap-2",e),...t})}import{jsx as Cl}from"react/jsx-runtime";function lp({className:e,...t}){return Cl("kbd",{"data-slot":"kbd",className:r("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",e),...t})}function dp({className:e,...t}){return Cl("kbd",{"data-slot":"kbd-group",className:r("inline-flex items-center gap-1",e),...t})}import*as Ge from"react";import*as L from"@radix-ui/react-menubar";import{Icon as An}from"@iconify/react";import{jsx as ce,jsxs as Hn}from"react/jsx-runtime";function cp({...e}){return ce(L.Menu,{...e})}function mp({...e}){return ce(L.Group,{...e})}function up({...e}){return ce(L.Portal,{...e})}function pp({...e}){return ce(L.RadioGroup,{...e})}function fp({...e}){return ce(L.Sub,{"data-slot":"menubar-sub",...e})}var Sl=Ge.forwardRef(({className:e,...t},o)=>ce(L.Root,{ref:o,className:r("flex h-9 items-center space-x-1 rounded-md border bg-white p-1 shadow-sm",e),...t}));Sl.displayName=L.Root.displayName;var Tl=Ge.forwardRef(({className:e,...t},o)=>ce(L.Trigger,{ref:o,className:r("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-dark focus:text-gray-50 data-[state=open]:bg-dark data-[state=open]:text-gray-50",e),...t}));Tl.displayName=L.Trigger.displayName;var Nl=Ge.forwardRef(({className:e,inset:t,children:o,...a},n)=>Hn(L.SubTrigger,{ref:n,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-dark focus:text-gray-50 data-[state=open]:bg-dark data-[state=open]:text-gray-50",t&&"pl-8",e),...a,children:[o,ce(An,{icon:"mdi:chevron-right",className:"ml-auto h-4 w-4"})]}));Nl.displayName=L.SubTrigger.displayName;var Ml=Ge.forwardRef(({className:e,...t},o)=>ce(L.SubContent,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-dark p-1 text-dark 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-menubar-content-transform-origin]",e),...t}));Ml.displayName=L.SubContent.displayName;var Dl=Ge.forwardRef(({className:e,align:t="start",alignOffset:o=-4,sideOffset:a=8,...n},i)=>ce(L.Portal,{children:ce(L.Content,{ref:i,align:t,alignOffset:o,sideOffset:a,className:r("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-dark p-1 text-dark 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 origin-[--radix-menubar-content-transform-origin]",e),...n})}));Dl.displayName=L.Content.displayName;var kl=Ge.forwardRef(({className:e,inset:t,...o},a)=>ce(L.Item,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-dark focus:text-gray-50 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...o}));kl.displayName=L.Item.displayName;var El=Ge.forwardRef(({className:e,children:t,checked:o,...a},n)=>Hn(L.CheckboxItem,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-dark focus:text-gray-50 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...a,children:[ce("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:ce(L.ItemIndicator,{children:ce(An,{icon:"mdi:check",className:"h-4 w-4"})})}),t]}));El.displayName=L.CheckboxItem.displayName;var Il=Ge.forwardRef(({className:e,children:t,...o},a)=>Hn(L.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-dark focus:text-gray-50 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[ce("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:ce(L.ItemIndicator,{children:ce(An,{icon:"mdi:dot",className:"h-4 w-4 fill-current"})})}),t]}));Il.displayName=L.RadioItem.displayName;var Ll=Ge.forwardRef(({className:e,inset:t,...o},a)=>ce(L.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Ll.displayName=L.Label.displayName;var Al=Ge.forwardRef(({className:e,...t},o)=>ce(L.Separator,{ref:o,className:r("-mx-1 my-1 h-px bg-dark",e),...t}));Al.displayName=L.Separator.displayName;var Hl=({className:e,...t})=>ce("span",{className:r("ml-auto text-xs tracking-widest text-gray-500",e),...t});Hl.displayname="MenubarShortcut";import gp from"react";import{jsx as bp}from"react/jsx-runtime";var Vl=gp.forwardRef(({className:e,children:t,...o},a)=>bp("ul",{ref:a,className:r("mb-6 flex flex-col gap-1.5",e),...o,children:t}));Vl.displayName="Menu";import Fl from"react";import{jsx as vp}from"react/jsx-runtime";var Vn=Fl.forwardRef(({active:e,children:t,...o},a)=>{let[n,i]=Fl.useState(e??!1);return vp("li",{ref:a,...o,children:t?.(()=>{i(!n)},n)})});Vn.displayName="MenuButton";var la=Vn;import Ol from"react";import{jsx as da,jsxs as hp}from"react/jsx-runtime";var Bl=Ol.forwardRef(({className:e,icon:t,active:o=!1,disabled:a=!1,prefix:n,suffix:i,component:s,children:l,...d},c)=>da(la,{children:()=>hp("a",{ref:c,className:r("group flex items-center gap-2.5 rounded-sm py-2 px-4 font-medium text-dark dark:text-white hover:text-white hover:bg-black/70 duration-300 ease-in-out","cursor-pointer",o&&"bg-black/70 text-white",e),...d,children:[n,t,s?Ol.cloneElement(s,{className:r("flex-grow")}):typeof l=="string"?da("span",{className:"flex-grow overflow-hidden",children:l}):da("div",{className:"flex-grow overflow-hidden",children:l}),i?da("div",{className:"mr-5",children:i}):null]})}));Bl.displayName="MenuItem";import zl from"react";import{Icon as yp}from"@iconify/react";import{jsx as $t,jsxs as Wl}from"react/jsx-runtime";var $l=zl.forwardRef(({className:e,label:t,icon:o,active:a=!1,disabled:n=!1,defaultOpen:i=!1,prefix:s,suffix:l,component:d,children:c,...p},m)=>$t(la,{active:a,children:(f,u)=>Wl(zl.Fragment,{children:[Wl("a",{ref:m,className:r("group relative flex items-center gap-2.5 rounded-sm py-2 px-4 font-medium text-black dark:text-white hover:text-white hover:bg-black/70 duration-300 ease-in-out","cursor-pointer",a&&"bg-black/70 text-white",e),onClick:v=>{v.preventDefault(),f()},...p,children:[s,o,typeof t=="string"?$t("span",{className:"flex-grow overflow-hidden",children:t}):$t("div",{className:"flex-grow overflow-hidden",children:t}),$t("div",{className:"mr-5",children:l}),$t(yp,{className:r("absolute right-4 top-1/2 -translate-y-1/2",u&&"rotate-180"),icon:"tabler:chevron-down"})]}),$t("div",{className:r("translate transform overflow-hidden",!u&&"hidden"),children:$t("ul",{className:"my-1 flex flex-col gap-2.5 pl-6",children:d??c})})]})}));$l.displayName="SubMenu";import{Icon as xp}from"@iconify/react";import _l from"react";import{jsx as _t,jsxs as ca}from"react/jsx-runtime";var Gl=_l.forwardRef(({className:e,collapsed:t,onToggle:o,brandName:a,logo:n,children:i,...s},l)=>(_l.useEffect(()=>{o?.(t)},[t]),ca("aside",{ref:l,className:r("absolute left-0 top-0 z-15 flex h-screen w-72.5 flex-col overflow-y-hidden duration-300 ease-linear bg-white dark:bg-boxdark lg:static lg:translate-x-0",t?"translate-x-0":"-translate-x-full",e),...s,children:[ca("div",{className:"flex items-center justify-between gap-2 px-6 py-5.5 lg:py-6.5",children:[ca("a",{href:"/admin",className:"flex flex-grow text-center items-center p-1",children:[_t("div",{children:n}),_t("h2",{className:"flex row-end-1 text-2xl text-dark dark:text-white font-semibold",children:a})]}),_t("button",{onClick:()=>o?.(!t),"aria-controls":"sidebar",className:"block lg:hidden",children:_t(xp,{icon:"tabler:x"})})]}),_t("div",{className:"no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear",children:_t("nav",{className:"mt-5 py-4 px-4 lg:mt-9 lg:px-6",children:ca("div",{className:"p-1",children:[_t("h3",{className:"mb-4 ml-4 text-sm font-semibold text-bodydark2",children:"MENU"}),i]})})})]})));Gl.displayName="Sidebar";import*as Gt from"react";import*as le from"@radix-ui/react-navigation-menu";import{Icon as Rp}from"@iconify/react";import{jsx as St,jsxs as Jl}from"react/jsx-runtime";var Ul=Gt.forwardRef(({className:e,children:t,...o},a)=>Jl(le.Root,{ref:a,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...o,children:[t,St(Fn,{})]}));Ul.displayName=le.Root.displayName;var Yl=Gt.forwardRef(({className:e,...t},o)=>St(le.List,{ref:o,className:r("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));Yl.displayName=le.List.displayName;var Pp=le.Item,jl=j("group inline-flex h-9 w-max items-center justify-center rounded-md bg-dark px-4 py-2 text-sm font-medium transition-colors hover:bg-dark hover:text-gray-50 focus:bg-dark focus:text-gray-50 focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-dark/50 data-[state=open]:bg-dark/50"),Kl=Gt.forwardRef(({className:e,children:t,...o},a)=>Jl(le.Trigger,{ref:a,className:r(jl(),"group",e),...o,children:[t," ",St(Rp,{icon:"mdi:chevron-down",className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Kl.displayName=le.Trigger.displayName;var ql=Gt.forwardRef(({className:e,...t},o)=>St(le.Content,{ref:o,className:r("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}));ql.displayName=le.Content.displayName;var wp=le.Link,Fn=Gt.forwardRef(({className:e,...t},o)=>St("div",{className:r("absolute left-0 top-full flex justify-center"),children:St(le.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-dark text-dark shadow 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:o,...t})}));Fn.displayName=le.Viewport.displayName;var Xl=Gt.forwardRef(({className:e,...t},o)=>St(le.Indicator,{ref:o,className:r("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:St("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Xl.displayName=le.Indicator.displayName;import*as On from"react";import{Icon as Bn}from"@iconify/react";import{jsx as Qe,jsxs as zn}from"react/jsx-runtime";var Ql=({className:e,...t})=>Qe("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center",e),...t});Ql.displayName="Pagination";var Zl=On.forwardRef(({className:e,...t},o)=>Qe("ul",{ref:o,className:r("flex flex-row items-center gap-1",e),...t}));Zl.displayName="PaginationContent";var ed=On.forwardRef(({className:e,...t},o)=>Qe("li",{ref:o,className:r("",e),...t}));ed.displayName="PaginationItem";var ma=({className:e,isActive:t,size:o="default",...a})=>Qe("a",{"aria-current":t?"page":void 0,className:r(Ke({variant:t?"fill":"ghost",size:o}),e),...a});ma.displayName="PaginationLink";var td=({className:e,...t})=>zn(ma,{"aria-label":"Go to previous page",size:"default",className:r("gap-1 pl-2.5",e),...t,children:[Qe(Bn,{icon:"mdi:chevron-left",className:"h-4 w-4"}),Qe("span",{children:"Previous"})]});td.displayName="PaginationPrevious";var od=({className:e,...t})=>zn(ma,{"aria-label":"Go to next page",size:"default",className:r("gap-1 pr-2.5",e),...t,children:[Qe("span",{children:"Next"}),Qe(Bn,{icon:"mdi:chevron-right",className:"h-4 w-4"})]});od.displayName="PaginationNext";var rd=({className:e,...t})=>zn("span",{"aria-hidden":!0,className:r("flex h-9 w-9 items-center justify-center",e),...t,children:[Qe(Bn,{icon:"mdi:more-horiz",className:"h-4 w-4"}),Qe("span",{className:"sr-only",children:"More pages"})]});rd.displayName="PaginationEllipsis";import*as nd from"react";import*as Ue from"@radix-ui/react-popover";import{jsx as ad}from"react/jsx-runtime";var De=Ue.Root,ke=Ue.Trigger,Cp=Ue.Anchor,Ne=nd.forwardRef(({className:e,align:t="center",sideOffset:o=4,...a},n)=>ad(Ue.Portal,{children:ad(Ue.Content,{ref:n,align:t,sideOffset:o,className:r("z-50 w-72 rounded-md border bg-white p-4 text-gray 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),...a})}));Ne.displayName=Ue.Content.displayName;import*as sd from"react";import*as Zo from"@radix-ui/react-progress";import{jsx as id}from"react/jsx-runtime";var ua=sd.forwardRef(({className:e,color:t,value:o,...a},n)=>id(Zo.Root,{ref:n,className:r("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...a,children:id(Zo.Indicator,{className:r(Fo({color:t}),"h-full w-full flex-1 transition-all"),style:{transform:`translateX(-${100-(o||0)}%)`}})}));ua.displayName=Zo.Root.displayName;import*as Wn from"react";import*as Tt from"@radix-ui/react-radio-group";import{Icon as Sp}from"@iconify/react";import{jsx as pa}from"react/jsx-runtime";var ld=Wn.forwardRef(({className:e,...t},o)=>pa(Tt.Root,{className:r("grid gap-2",e),...t,ref:o}));ld.displayName=Tt.Root.displayName;var dd=Wn.forwardRef(({className:e,children:t,...o},a)=>pa(Tt.Item,{ref:a,className:r("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-dark disabled:cursor-not-allowed disabled:opacity-50",e),...o,children:pa(Tt.Indicator,{className:"flex items-center justify-center",children:pa(Sp,{icon:"mdi:check",className:"h-3.5 w-3.5 fill-primary"})})}));dd.displayName=Tt.Item.displayName;import*as $n from"react";import*as ze from"@radix-ui/react-scroll-area";import{jsx as er,jsxs as Tp}from"react/jsx-runtime";var ut=$n.forwardRef(({className:e,children:t,...o},a)=>Tp(ze.Root,{ref:a,className:r("relative overflow-hidden",e),...o,children:[er(ze.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),er(_n,{}),er(ze.Corner,{})]}));ut.displayName=ze.Root.displayName;var _n=$n.forwardRef(({className:e,orientation:t="vertical",...o},a)=>er(ze.ScrollAreaScrollbar,{ref:a,orientation:t,className:r("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),...o,children:er(ze.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-dark"})}));_n.displayName=ze.ScrollAreaScrollbar.displayName;import*as Nt from"react";import*as $ from"@radix-ui/react-select";import{Icon as fa}from"@iconify/react";import{jsx as he,jsxs as Yn}from"react/jsx-runtime";var ga=$.Root,ba=$.Group,va=$.Value,tr=Nt.forwardRef(({className:e,children:t,...o},a)=>Yn($.Trigger,{ref:a,className:r("flex h-9 dark:text-white w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-gray-500 focus:outline-none focus:ring-1 focus:ring-dark disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...o,children:[t,he($.Icon,{asChild:!0,children:he(fa,{icon:"mdi:chevron-up-down",className:"h-4 w-4 opacity-50"})})]}));tr.displayName=$.Trigger.displayName;var Gn=Nt.forwardRef(({className:e,...t},o)=>he($.ScrollUpButton,{ref:o,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:he(fa,{icon:"mdi:chevron-up",className:"h-4 w-4"})}));Gn.displayName=$.ScrollUpButton.displayName;var Un=Nt.forwardRef(({className:e,...t},o)=>he($.ScrollDownButton,{ref:o,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:he(fa,{icon:"mdi:chevron-down",className:"h-4 w-4"})}));Un.displayName=$.ScrollDownButton.displayName;var or=Nt.forwardRef(({className:e,children:t,position:o="popper",...a},n)=>he($.Portal,{children:Yn($.Content,{ref:n,className:r("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-white text-dark/70 dark:bg-dark dark:text-white 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-select-content-transform-origin]",o==="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:o,...a,children:[he(Gn,{}),he($.Viewport,{className:r("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),he(Un,{})]})}));or.displayName=$.Content.displayName;var ha=Nt.forwardRef(({className:e,...t},o)=>he($.Label,{ref:o,className:r("px-2 py-1.5 text-sm font-semibold",e),...t}));ha.displayName=$.Label.displayName;var Ro=Nt.forwardRef(({className:e,children:t,...o},a)=>Yn($.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-gray-200 focus:text-dark data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[he("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:he($.ItemIndicator,{children:he(fa,{icon:"mdi:check",className:"h-4 w-4"})})}),he($.ItemText,{children:t})]}));Ro.displayName=$.Item.displayName;var cd=Nt.forwardRef(({className:e,...t},o)=>he($.Separator,{ref:o,className:r("-mx-1 my-1 h-px bg-dark",e),...t}));cd.displayName=$.Separator.displayName;import*as rr from"react";import*as de from"@radix-ui/react-dialog";import{Icon as Np}from"@iconify/react";import{jsx as pt,jsxs as jn}from"react/jsx-runtime";var ar=de.Root,Mp=de.Trigger,Dp=de.Close,Kn=({...e})=>pt(de.Portal,{...e});Kn.displayName=de.Portal.displayName;var qn=rr.forwardRef(({className:e,...t},o)=>pt(de.Overlay,{className:r("fixed inset-0 z-50 bg-dark/80 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",e),...t,ref:o}));qn.displayName=de.Overlay.displayName;var kp=j("fixed z-50 gap-4 bg-white dark:bg-dark p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[side=top]:w-full data-[side=bottom]:w-full sm:w-full",{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 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",right:"inset-y-0 right-0 h-full border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right"},size:{default:"data-[side=left]:max-w-sm data-[side=right]:max-w-sm",xs:"data-[side=left]:max-w-xs data-[side=right]:max-w-xs",sm:"data-[side=left]:max-w-sm data-[side=right]:max-w-sm",md:"data-[side=left]:max-w-md data-[side=right]:max-w-md",lg:"data-[side=left]:max-w-lg data-[side=right]:max-w-lg",xl:"data-[side=left]:max-w-xl data-[side=right]:max-w-xl","2xl":"data-[side=left]:max-w-2xl data-[side=right]:max-w-2xl","3xl":"data-[side=left]:max-w-3xl data-[side=right]:max-w-3xl","4xl":"data-[side=left]:max-w-4xl data-[side=right]:max-w-4xl"}},defaultVariants:{side:"right",size:"default"}}),Po=rr.forwardRef(({side:e="right",size:t,className:o,children:a,...n},i)=>jn(Kn,{children:[pt(qn,{}),jn(de.Content,{ref:i,className:r(kp({side:e,size:t,className:o})),...n,"data-side":e,"data-size":t,children:[a,jn(de.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-dark transition-opacity hover:opacity-100 focus:outline-none focus:ring-1 focus:ring-dark focus:ring-offset-1 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[pt(Np,{icon:"mdi:close",className:"h-4 w-4"}),pt("span",{className:"sr-only",children:"Close"})]})]})]}));Po.displayName=de.Content.displayName;var wo=({className:e,...t})=>pt("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});wo.displayName="SheetHeader";var md=({className:e,...t})=>pt("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});md.displayName="SheetFooter";var Co=rr.forwardRef(({className:e,...t},o)=>pt(de.Title,{ref:o,className:r("text-lg font-semibold text-dark dark:text-white",e),...t}));Co.displayName=de.Title.displayName;var So=rr.forwardRef(({className:e,...t},o)=>pt(de.Description,{ref:o,className:r("text-sm text-dark/80 dark:text-gray-100",e),...t}));So.displayName=de.Description.displayName;import{jsx as Xn,jsxs as ud}from"react/jsx-runtime";var Ep=({className:e,open:t,title:o,size:a,side:n,description:i,children:s,cancel:l})=>Xn(ar,{open:t,onOpenChange:l,children:ud(Po,{className:e,side:n,size:a,children:[ud(wo,{children:[Xn(Co,{children:o}),Xn(So,{children:i})]}),s]})});import*as W from"react";import{Slot as ir}from"@radix-ui/react-slot";import{Icon as Vp}from"@iconify/react";import{jsx as Ip}from"react/jsx-runtime";var nr=({className:e,...t})=>Ip("div",{className:r("animate-pulse rounded-md bg-secondary/10",e),...t});nr.displayName="Skeleton";import*as pd from"react";import*as Ee from"@radix-ui/react-tooltip";import{jsx as Hp}from"react/jsx-runtime";var Jn=Ee.Provider,Qn=Ee.Root,Zn=Ee.Trigger,Lp=Ee.Arrow,Ap=Ee.TooltipPortal,ya=pd.forwardRef(({className:e,sideOffset:t=4,...o},a)=>Hp(Ee.Content,{ref:a,sideOffset:t,className:r("z-50 overflow-hidden rounded-md border border-gray-100 bg-black text-white dark:bg-white dark:text-dark px-3 py-1.5 text-xs 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 origin-[--radix-tooltip-content-transform-origin]",e),...o}));ya.displayName=Ee.Content.displayName;import{jsx as Y,jsxs as To}from"react/jsx-runtime";var Fp="sidebar_state",Op=3600*24*7,Bp="16rem",zp="18rem",Wp="3rem",$p="b",fd=W.createContext(null);function sr(){let e=W.useContext(fd);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var gd=W.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:o,className:a,style:n,children:i,...s},l)=>{let d=Qa(),[c,p]=W.useState(!1),[m,f]=W.useState(e),u=t??m,v=W.useCallback(w=>{let R=typeof w=="function"?w(u):w;o?o(R):f(R),document.cookie=`${Fp}=${R}; path=/; max-age=${Op}`},[o,u]),x=W.useCallback(()=>d?p(w=>!w):v(w=>!w),[d,v,p]);W.useEffect(()=>{let w=R=>{R.key===$p&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),x())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[x]);let y=u?"expanded":"collapsed",C=W.useMemo(()=>({state:y,open:u,setOpen:v,isMobile:d,openMobile:c,setOpenMobile:p,toggleSidebar:x}),[y,u,v,d,c,p,x]);return Y(fd.Provider,{value:C,children:Y(Jn,{delayDuration:0,children:Y("div",{style:{"--sidebar-width":Bp,"--sidebar-width-icon":Wp,...n},className:r("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",a),ref:l,...s,children:i})})})});gd.displayName="SidebarProvider";var bd=W.forwardRef(({side:e="left",variant:t="sidebar",collapsible:o="offcanvas",className:a,children:n,...i},s)=>{let{isMobile:l,state:d,openMobile:c,setOpenMobile:p}=sr();return o==="none"?Y("div",{className:r("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",a),ref:s,...i,children:n}):l?Y(ar,{open:c,onOpenChange:p,...i,children:To(Po,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":zp},side:e,children:[To(wo,{className:"sr-only",children:[Y(Co,{children:"Sidebar"}),Y(So,{children:"Displays the mobile sidebar."})]}),Y("div",{className:"flex h-full w-full flex-col",children:n})]})}):To("div",{ref:s,className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?o:"","data-variant":t,"data-side":e,children:[Y("div",{className:r("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 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]")}),Y("div",{className:r("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 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",a),...i,children:Y("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:n})})]})});bd.displayName="Sidebar";var vd=W.forwardRef(({className:e,onClick:t,...o},a)=>{let{toggleSidebar:n}=sr();return To(V,{ref:a,"data-sidebar":"trigger",variant:"ghost",size:"default",className:r("h-7 w-7",e),onClick:i=>{t?.(i),n()},...o,children:[Y(Vp,{icon:"lucide:panel-left",className:"h-4 w-4"}),Y("span",{className:"sr-only",children:"Toggle Sidebar"})]})});vd.displayName="SidebarTrigger";var hd=W.forwardRef(({className:e,...t},o)=>{let{toggleSidebar:a}=sr();return Y("button",{ref:o,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:a,title:"Toggle Sidebar",className:r("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})});hd.displayName="SidebarRail";var yd=W.forwardRef(({className:e,...t},o)=>Y("main",{ref:o,className:r("relative flex w-full flex-1 flex-col bg-background","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}));yd.displayName="SidebarInset";var xd=W.forwardRef(({className:e,...t},o)=>Y(ge,{ref:o,"data-sidebar":"input",className:r("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));xd.displayName="SidebarInput";var Rd=W.forwardRef(({className:e,...t},o)=>Y("div",{ref:o,"data-sidebar":"header",className:r("flex flex-col gap-2 p-2",e),...t}));Rd.displayName="SidebarHeader";var Pd=W.forwardRef(({className:e,...t},o)=>Y("div",{ref:o,"data-sidebar":"footer",className:r("flex flex-col gap-2 p-2",e),...t}));Pd.displayName="SidebarFooter";var wd=W.forwardRef(({className:e,...t},o)=>Y(Xe,{ref:o,"data-sidebar":"separator",className:r("mx-2 w-auto bg-sidebar-border",e),...t}));wd.displayName="SidebarSeparator";var Cd=W.forwardRef(({className:e,...t},o)=>Y("div",{ref:o,"data-sidebar":"content",className:r("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Cd.displayName="SidebarContent";var Sd=W.forwardRef(({className:e,...t},o)=>Y("div",{ref:o,"data-sidebar":"group",className:r("relative flex w-full min-w-0 flex-col p-2",e),...t}));Sd.displayName="SidebarGroup";var Td=W.forwardRef(({className:e,asChild:t=!1,...o},a)=>Y(t?ir:"div",{ref:a,"data-sidebar":"group-label",className:r("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,opacity] duration-200 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),...o}));Td.displayName="SidebarGroupLabel";var Nd=W.forwardRef(({className:e,asChild:t=!1,...o},a)=>Y(t?ir:"button",{ref:a,"data-sidebar":"group-action",className:r("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),...o}));Nd.displayName="SidebarGroupAction";var Md=W.forwardRef(({className:e,...t},o)=>Y("div",{ref:o,"data-sidebar":"group-content",className:r("w-full text-sm",e),...t}));Md.displayName="SidebarGroupContent";var Dd=W.forwardRef(({className:e,...t},o)=>Y("ul",{ref:o,"data-sidebar":"menu",className:r("flex w-full min-w-0 flex-col gap-1",e),...t}));Dd.displayName="SidebarMenu";var kd=W.forwardRef(({className:e,...t},o)=>Y("li",{ref:o,"data-sidebar":"menu-item",className:r("group/menu-item relative",e),...t}));kd.displayName="SidebarMenuItem";var Ed=j("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:{default:"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))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Id=W.forwardRef(({asChild:e=!1,isActive:t=!1,variant:o="default",size:a="default",tooltip:n,className:i,...s},l)=>{let d=e?ir:"button",{isMobile:c,state:p}=sr(),m=Y(d,{ref:l,"data-sidebar":"menu-button","data-size":a,"data-active":t,className:r(Ed({variant:o,size:a}),i),...s});return n?(typeof n=="string"&&(n={children:n}),To(Qn,{children:[Y(Zn,{asChild:!0,children:m}),Y(ya,{side:"right",align:"center",hidden:p!=="collapsed"||c,...n})]})):m});Id.displayName="SidebarMenuButton";var Ld=W.forwardRef(({className:e,asChild:t=!1,showOnHover:o=!1,...a},n)=>Y(t?ir:"button",{ref:n,"data-sidebar":"menu-action",className:r("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",o&&"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),...a}));Ld.displayName="SidebarMenuAction";var Ad=W.forwardRef(({className:e,...t},o)=>Y("div",{ref:o,"data-sidebar":"menu-badge",className:r("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","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}));Ad.displayName="SidebarMenuBadge";var Hd=W.forwardRef(({className:e,showIcon:t=!1,...o},a)=>{let n=W.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return To("div",{ref:a,"data-sidebar":"menu-skeleton",className:r("flex h-8 items-center gap-2 rounded-md px-2",e),...o,children:[t&&Y(nr,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),Y(nr,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":n}})]})});Hd.displayName="SidebarMenuSkeleton";var Vd=W.forwardRef(({className:e,...t},o)=>Y("ul",{ref:o,"data-sidebar":"menu-sub",className:r("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}));Vd.displayName="SidebarMenuSub";var Fd=W.forwardRef(({...e},t)=>Y("li",{ref:t,...e}));Fd.displayName="SidebarMenuSubItem";var Od=W.forwardRef(({asChild:e=!1,size:t="md",isActive:o,className:a,...n},i)=>Y(e?ir:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":o,className:r("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",a),...n}));Od.displayName="SidebarMenuSubButton";import*as Bd from"react";import*as ft from"@radix-ui/react-slider";import{jsx as ei,jsxs as _p}from"react/jsx-runtime";var zd=Bd.forwardRef(({className:e,...t},o)=>_p(ft.Root,{ref:o,className:r("relative flex w-full touch-none select-none items-center",e),...t,children:[ei(ft.Track,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:ei(ft.Range,{className:"absolute h-full bg-primary"})}),ei(ft.Thumb,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-dark shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-dark disabled:pointer-events-none disabled:opacity-50"})]}));zd.displayName=ft.Root.displayName;import{Icon as Gp}from"@iconify/react";import{jsx as Yp}from"react/jsx-runtime";function Up({className:e,...t}){return Yp(Gp,{icon:"lucide:loader-2",role:"status","aria-label":"Loading",className:r("size-4 animate-spin",e),...t})}import*as Wd from"react";import*as Ze from"@radix-ui/react-slider";import{jsx as xa,jsxs as jp}from"react/jsx-runtime";var $d=Wd.forwardRef(({className:e,color:t,...o},a)=>jp(Ze.Root,{ref:a,className:r("relative flex w-full touch-none select-none items-center",e),...o,children:[xa(Ze.Track,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:xa(Ze.Range,{className:r("absolute h-ful",Fo({color:t}))})}),xa(Ze.Thumb,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-dark shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-dark disabled:pointer-events-none disabled:opacity-50"}),xa(Ze.Thumb,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-dark shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-dark disabled:pointer-events-none disabled:opacity-50"})]}));$d.displayName=Ze.Root.displayName;import*as Gd from"react";import*as lr from"@radix-ui/react-switch";import{jsx as _d}from"react/jsx-runtime";var Ud=Gd.forwardRef(({className:e,...t},o)=>_d(lr.Root,{className:r("peer inline-flex h-[20px] w-[36px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-dark focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-dark dark:bg-primary-light data-[state=unchecked]:bg-gray-100",e),...t,ref:o,children:_d(lr.Thumb,{className:r("pointer-events-none block h-4 w-4 rounded-full bg-light dark:bg-dark shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Ud.displayName=lr.Root.displayName;import*as bt from"react";import{jsx as gt}from"react/jsx-runtime";var Ra=bt.forwardRef(({className:e,...t},o)=>gt("div",{className:r("w-full overflow-auto",e),children:gt("table",{ref:o,className:r("w-full caption-bottom text-sm"),...t})}));Ra.displayName="Table";var Pa=bt.forwardRef(({className:e,...t},o)=>gt("thead",{ref:o,className:r("[&_tr]:border-b",e),...t}));Pa.displayName="TableHeader";var wa=bt.forwardRef(({className:e,...t},o)=>gt("tbody",{ref:o,className:r("[&_tr:last-child]:border-0",e),...t}));wa.displayName="TableBody";var Ca=bt.forwardRef(({className:e,...t},o)=>gt("tfoot",{ref:o,className:r("bg-primary font-medium text-white",e),...t}));Ca.displayName="TableFooter";var Ut=bt.forwardRef(({className:e,...t},o)=>gt("tr",{ref:o,className:r("border-b border-gray-300 dark:border-dark transition-colors hover:bg-gray-100 dark:hover:bg-gray-300 dark:hover:text-black text-black dark:text-white","data-[state=selected]:bg-gray-200 data-[state=selected]:text-black",e),...t}));Ut.displayName="TableRow";var dr=bt.forwardRef(({className:e,...t},o)=>gt("th",{ref:o,className:r("h-10 px-2 text-left align-middle font-medium text-gray-700 hover:text-dark [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));dr.displayName="TableHead";var cr=bt.forwardRef(({className:e,...t},o)=>gt("td",{ref:o,className:r("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));cr.displayName="TableCell";var Yd=bt.forwardRef(({className:e,...t},o)=>gt("caption",{ref:o,className:r("mt-4 text-sm text-gray-100",e),...t}));Yd.displayName="TableCaption";import*as Sa from"react";import*as Ye from"@radix-ui/react-tabs";import{jsx as ti}from"react/jsx-runtime";var Kp=Ye.Root,jd=Sa.forwardRef(({className:e,...t},o)=>ti(Ye.List,{ref:o,className:r("inline-flex h-9 items-center justify-center rounded-lg bg-gray-50 p-1 text-dark dark:bg-dark dark:text-white",e),...t}));jd.displayName=Ye.List.displayName;var Kd=Sa.forwardRef(({className:e,...t},o)=>ti(Ye.Trigger,{ref:o,className:r("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-gray-100 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-dark focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","data-[state=active]:bg-white data-[state=active]:text-dark data-[state=active]:shadow","dark:border-gray-300 dark:bg-dark dark:text-white dark:border-opacity-50 dark:shadow-none",e),...t}));Kd.displayName=Ye.Trigger.displayName;var qd=Sa.forwardRef(({className:e,...t},o)=>ti(Ye.Content,{ref:o,className:r("mt-2 ring-offset-dark focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-dark focus-visible:ring-offset-2",e),...t}));qd.displayName=Ye.Content.displayName;import*as jt from"react";import*as pe from"@radix-ui/react-toast";import{Icon as qp}from"@iconify/react";import{jsx as Yt}from"react/jsx-runtime";var oi=pe.Provider,Ta=jt.forwardRef(({className:e,...t},o)=>Yt(pe.Viewport,{ref:o,className:r("fixed top-0 z-55 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Ta.displayName=pe.Viewport.displayName;var Xp=j("group pointer-events-auto mt-[5px] relative flex w-full items-center space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-white text-dark dark:bg-dark dark:text-white",outline:"outlined outlined:bg-transparent outlined:hover:bg-gray-200"},color:{default:"group border-2 border-gray-100",primary:"group bg-primary text-primary-light hover:bg-primary/80 border-2 border-primary",secondary:"group bg-secondary text-secondary-light hover:bg-secondary/80 border-2 border-secondary",success:"group bg-success text-success-light hover:bg-success/80 border-2 border-success",info:"group bg-info text-info-light hover:bg-info/80 border-2 border-info",warning:"group bg-warning text-warning-light hover:bg-warning/80 border-2 border-warning",danger:"group bg-danger text-danger-light hover:bg-danger/80 border-2 border-danger","primary-light":"group bg-primary-light text-primary-dark hover:bg-primary/80 border-2 border-primary-light","secondary-light":"group bg-secondary-light text-secondary-dark hover:bg-secondary/80 border-2 border-secondary-light","success-light":"group bg-success-light text-success-dark hover:bg-success/80 border-2 border-success-light","info-light":"group bg-info-light text-info-dark hover:bg-info/80 border-2 border-info-light","warning-light":"group bg-warning-light text-warning-dark hover:bg-warning/80 border-2 border-warning-light","danger-light":"group bg-danger-light text-danger-dark hover:bg-danger/80 border-2 border-danger-light"}},defaultVariants:{variant:"default",color:"default"}}),Na=jt.forwardRef(({className:e,variant:t="default",color:o="default",...a},n)=>Yt(pe.Root,{ref:n,className:r(Xp({variant:t,color:o}),e),...a}));Na.displayName=pe.Root.displayName;var Xd=jt.forwardRef(({className:e,...t},o)=>Yt(pe.Action,{ref:o,className:r("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-dark disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-dark/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-white group-[.destructive]:focus:ring-destructive",e),...t}));Xd.displayName=pe.Action.displayName;var Ma=jt.forwardRef(({className:e,...t},o)=>Yt(pe.Close,{ref:o,className:r("absolute right-1 top-1 rounded-md p-1 text-dark/50 opacity-0 transition-opacity hover:text-dark focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:Yt(qp,{icon:"mdi:close",className:"h-4 w-4"})}));Ma.displayName=pe.Close.displayName;var Da=jt.forwardRef(({className:e,...t},o)=>Yt(pe.Title,{ref:o,className:r("text-sm font-semibold [&+div]:text-xs",e),...t}));Da.displayName=pe.Title.displayName;var ka=jt.forwardRef(({className:e,...t},o)=>Yt(pe.Description,{ref:o,className:r("text-sm opacity-90",e),...t}));ka.displayName=pe.Description.displayName;import{Icon as ur}from"@iconify/react";import*as La from"react";var Jp=5,Qp=1e6;var ri=0;function Zp(){return ri=(ri+1)%Number.MAX_VALUE,ri.toString()}var ai=new Map,Jd=e=>{if(ai.has(e))return;let t=setTimeout(()=>{ai.delete(e),mr({type:"REMOVE_TOAST",toastId:e})},Qp);ai.set(e,t)},ef=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Jp)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case"DISMISS_TOAST":{let{toastId:o}=t;return o?Jd(o):e.toasts.forEach(a=>{Jd(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===o||o===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)}}},Ea=[],Ia={toasts:[]};function mr(e){Ia=ef(Ia,e),Ea.forEach(t=>{t(Ia)})}function Qd({...e}){let t=Zp(),o=n=>mr({type:"UPDATE_TOAST",toast:{...n,id:t}}),a=()=>mr({type:"DISMISS_TOAST",toastId:t});return mr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:n=>{n||a()}}}),{id:t,dismiss:a,update:o}}function ni(){let[e,t]=La.useState(Ia);return La.useEffect(()=>(Ea.push(t),()=>{let o=Ea.indexOf(t);o>-1&&Ea.splice(o,1)}),[e]),{...e,toast:Qd,dismiss:o=>mr({type:"DISMISS_TOAST",toastId:o})}}import{jsx as et,jsxs as ii}from"react/jsx-runtime";var tf=({status:e})=>{let t="";switch(e){case"success":t=et(ur,{icon:"tabler:circle-check",fontSize:24});break;case"error":t=et(ur,{icon:"tabler:alert-circle",fontSize:24});break;case"warning":t=et(ur,{icon:"tabler:alert-small",fontSize:24});break;case"info":t=et(ur,{icon:"tabler:exclamation-mark",fontSize:24});break;default:t=et(ur,{icon:"tabler:circle-check",fontSize:24});break}return t},of=e=>{let t="primary";switch(e){case"success":t="success";break;case"error":t="danger";break;case"warning":t="warning";break;case"info":t="info";break;default:t="success";break}return t},Zd=()=>{let{toasts:e}=ni();return ii(oi,{children:[e.map(function({id:t,title:o,description:a,status:n="success",action:i,...s}){let l=of(n);return ii(Na,{color:l,...s,className:i?"justify-between":"",children:[et(tf,{status:n}),ii("div",{className:"grid gap-1",children:[o&&et(Da,{children:o}),a&&et(ka,{children:a})]}),i,et(Ma,{})]},t)}),et(Ta,{})]})};Zd.displayName="Toaster";import{useTheme as rf}from"next-themes";import{Toaster as af}from"sonner";import{jsx as sf}from"react/jsx-runtime";var nf=({...e})=>{let{theme:t="system"}=rf();return sf(af,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-white dark:group-[.toaster]:bg-black group-[.toaster]:text-black dark:group-[.toaster]:text-white group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-gray-300",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-gray-300"}},...e})};import*as ec from"react";import*as si from"@radix-ui/react-toggle";import{jsx as lf}from"react/jsx-runtime";var Aa=j("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-dark hover:text-gray-500 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-dark disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-dark data-[state=on]:text-gray-50",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-dark hover:text-gray-50"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),tc=ec.forwardRef(({className:e,variant:t,size:o,...a},n)=>lf(si.Root,{ref:n,className:r(Aa({variant:t,size:o,className:e})),...a}));tc.displayName=si.Root.displayName;import*as Kt from"react";import*as No from"@radix-ui/react-toggle-group";import{jsx as li}from"react/jsx-runtime";var oc=Kt.createContext({size:"default",variant:"default"}),rc=Kt.forwardRef(({className:e,variant:t,size:o,children:a,...n},i)=>li(No.Root,{ref:i,className:r("flex items-center justify-center gap-1",e),...n,children:li(oc.Provider,{value:{variant:t,size:o},children:a})}));rc.displayName=No.Root.displayName;var ac=Kt.forwardRef(({className:e,children:t,variant:o,size:a,...n},i)=>{let s=Kt.useContext(oc);return li(No.Item,{ref:i,className:r(Aa({variant:s.variant||o,size:s.size||a}),e),...n,children:t})});ac.displayName=No.Item.displayName;import df from"react";import{jsx as Ie,jsxs as pr}from"react/jsx-runtime";var nc=({item:e})=>{let t=o=>{o?.action?o?.action():o.path&&(window.location.href=o.path)};return e.child?pr(Mn,{children:[Ie(ta,{children:e?.label}),pr(kn,{children:[Ie(Zr,{children:e?.label}),Ie(Dn,{children:Ie(cf,{item:e.child})})]})]}):pr(df.Fragment,{children:[pr(Xo,{onClick:()=>t(e),children:[e?.label,e?.icon?Ie(oa,{className:"ml-2",children:e?.icon}):null]}),Ie(bo,{})]})},cf=({item:e})=>Ie(ea,{children:e.map((t,o)=>Ie(Xo,{children:Ie(nc,{item:t})},o))}),mf=({icon:e=null,label:t,variant:o="default",list:a=[]})=>pr(Ko,{children:[Ie(qo,{asChild:!0,children:Ie(V,{variant:e?"icon":o,children:e||t||null})}),Ie(go,{className:"w-auto",children:a.map((n,i)=>Ie(nc,{item:n},i))})]});import{jsx as fr,jsxs as di}from"react/jsx-runtime";var ci=({open:e,title:t,message:o,children:a,action:n,cancel:i})=>{let s=()=>{n?.()},l=()=>{i?.()};return fr(Ga,{open:e,children:di(wr,{className:"lg:!w-3/4 md:!w-full sm:!w-full",children:[di(Cr,{children:[fr(Tr,{children:t}),fr(Nr,{children:o})]}),a,di(Sr,{children:[n?fr(Mr,{onClick:()=>s(),children:"Confirm"}):null,fr(Dr,{onClick:()=>l(),children:"Cancel"})]})]})})};import Ha from"react";import uf from"react-draggable";import{jsx as ye,jsxs as Mo}from"react/jsx-runtime";var ic=Ha.forwardRef(({className:e,open:t,title:o,desc:a,size:n,children:i,action:s,cancel:l,draggable:d=!1,scrollable:c=!1,response:p=!1,...m},f)=>{let[u,v]=Ha.useState({left:0,top:0,bottom:0,right:0}),x=Lt("only screen and (max-width: 768px)"),y=()=>{s?.()},C=()=>{l?.()},w=Ha.useRef(),R=(g,T)=>{let O=w.current,{clientWidth:M,clientHeight:_}=window?.document?.documentElement,h=O?.getBoundingClientRect(),b={left:-h?.left+T?.x,right:M-(h?.right-T?.x),top:-h?.top+T?.y,bottom:_-(h?.bottom-T?.y)};v(b)};return ye(Ha.Fragment,{children:x&&p?ye(Rt,{open:t,onOpenChange:g=>{!g&&C()},children:Mo(Pt,{className:r(e),children:[Mo(qr,{className:"text-left",children:[ye(Jr,{children:o}),ye(Qr,{children:a})]}),ye(ut,{className:"h-[400px]",children:i}),Mo(Xr,{className:"pt-2",children:[s&&ye(V,{type:"button",color:"success",onClick:y,children:"Confirm"}),ye(Sn,{asChild:!0,children:ye(V,{type:"button",color:"secondary",variant:"fill",children:"Close"})})]})]})}):ye(zo,{open:t,onOpenChange:g=>{!g&&C()},children:ye(uf,{handle:".dialog-header",onStart:(g,T)=>{R(g,T)},bounds:u,disabled:!d,children:Mo(so,{size:n,className:r("bg-white h-auto dark:bg-dark",e),ref:w,...m,children:[Mo(Hr,{className:r("dialog-header",d?"cursor-move":""),children:[ye(Fr,{children:o}),ye(Or,{children:a})]}),c?ye(ut,{className:"max-h-[98%]",children:i}):i,Mo(Vr,{className:"sm:justify-start md:justify-end lg:justify-end",children:[s&&ye(V,{type:"button",color:"success",variant:"fill",onClick:y,children:"Confirm"}),ye(nn,{asChild:!0,className:"dialog-close",children:ye(V,{type:"button",variant:"fill",color:"secondary",children:"Close"})})]})]})})})})});ic.displayName="DialogModal";import*as sc from"react";import{jsx as pf}from"react/jsx-runtime";var lc=sc.forwardRef(({className:e,display:t,col:o,rows:a,flow:n,align:i,justify:s,gap:l,gapX:d,gapY:c,...p},m)=>pf("div",{ref:m,className:r(`${t||"grid"}`,`grid-cols-${o||"none"}`,`grid-rows-${a||"none"}`,`grid-flow-${n||""}`,`items-${i||"start"}`,`justify-${s||"start"}`,`gap-${l||"1"}`,`${d?"gap-x-"+d:""}`,`${c?"gap-y-"+c:""}`,e),...p}));lc.displayName="Grid";var dc=lc;import*as cc from"react";import{jsx as ff}from"react/jsx-runtime";var mc=cc.forwardRef(({className:e,col:t,spaceX:o,spaceY:a,start:n,end:i,...s},l)=>ff("div",{ref:l,className:r(e,t?`col-span-${t}`:"col-auto",o?`space-x-${o}`:"space-x-0",a?`space-y-${a}`:"space-y-0",n?`col-start-${n}`:"",i?`col-end-${i}`:""),...s}));mc.displayName="Col";var uc=mc;import*as pc from"react";import{jsx as gf}from"react/jsx-runtime";var fc=pc.forwardRef(({className:e,display:t,direction:o,align:a,justify:n,wrap:i,gap:s,...l},d)=>gf("div",{ref:d,className:r(e,`${t||"flex"}`,`flex-${o||"row"}`,`items-${a||"start"}`,`justify-${n||"start"}`,`flex-${i||"nowrap"}`,`gap-${s||"1"}`),...l}));fc.displayName="Flex";var gc=fc;import*as tt from"react";import{Icon as mi}from"@iconify/react";import{jsx as be,jsxs as Do}from"react/jsx-runtime";var bc=({options:e,setOpen:t,selected:o,setSelect:a,filter:n})=>Do(Vt,{filter:n,children:[be(lo,{placeholder:"Search..."}),be(co,{children:"No Result found."}),be(mo,{children:be(ut,{className:"h-[250px]",children:e.map((i,s)=>Do(uo,{onSelect:()=>{a(i.value===o?"":i.value),t(!1)},value:i.value,disabled:i.disabled??!1,children:[be(mi,{icon:"tabler:check",className:r("mr-2 h-4 w-4",i.value==o?"opacity-100":"opacity-0")}),i.label]},s))})})]}),vc=tt.forwardRef(({title:e="Select...",options:t=[],value:o,filter:a,onChange:n,response:i=!1,...s},l)=>{let[d,c]=tt.useState(!1),[p,m]=tt.useState(o),f=Lt("only screen and (max-width: 768px)");return tt.useEffect(()=>{o!=p&&n?.(p)},[p]),tt.useEffect(()=>{m(o)},[o]),be(tt.Fragment,{children:f&&i?Do(Rt,{open:d,onOpenChange:c,children:[be(jo,{asChild:!0,...s,children:Do(V,{variant:"default",role:"combobox","aria-expanded":d,className:r("w-auto justify-between"),ref:l,children:[p?be("span",{className:"truncate",children:t?.find(u=>u.value==p)?.label}):e,be(mi,{icon:"carbon:chevron-sort",className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),be(Pt,{children:be("div",{className:"mt-4 border-t",children:be(bc,{options:t,selected:p,setOpen:c,setSelect:m,filter:a})})})]}):Do(De,{open:d,onOpenChange:c,children:[be(ke,{asChild:!0,...s,children:Do(V,{variant:"default",role:"combobox","aria-expanded":d,className:r("w-auto justify-between"),ref:l,children:[be("span",{className:"truncate",children:t?.find(u=>u.value==p)?.label??e}),be(mi,{icon:"carbon:chevron-sort",className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),be(Ne,{className:r("max-w-[200px] p-0"),children:be(bc,{options:t,selected:p,setOpen:c,setSelect:m,filter:a})})]})})});vc.displayName="ComboBox";import ot from"react";import{Icon as gr}from"@iconify/react";import{jsx as re,jsxs as qt}from"react/jsx-runtime";var ui=ot.forwardRef(({options:e=[],selected:t=[],tags:o,tag:a,setTag:n,filter:i,handleKeyDown:s,handleClick:l,...d},c)=>qt(Vt,{filter:i,children:[re(lo,{placeholder:o?"Create...":"Search...",onValueChange:p=>n(p),onKeyDown:o?s:()=>{},ref:c,value:a,...d}),re(co,{children:"No Data"}),re(mo,{children:re(ut,{className:"h-[250px]",children:e.map((p,m)=>qt(uo,{onSelect:f=>{p.value,t.includes(p?.value)?l(p?.value,"remove"):l(p?.value,"add")},disabled:p.disabled??!1,children:[re(gr,{icon:"tabler:check",className:r("mr-2 h-4 w-4",t.includes(p?.value)?"opacity-100":"opacity-0")}),p.label]},m))})})]}));ui.displayName="RenderSelect";var hc=ot.forwardRef(({options:e=[],value:t,placeholder:o,tags:a=!1,filter:n,onChange:i,response:s,...l},d)=>{let[c,p]=ot.useState(!1),[m,f]=ot.useState([]),[u,v]=ot.useState(t??[]),[x,y]=ot.useState(""),C=ot.useRef(null),w=Lt("(max-width: 767px)"),R=h=>{if((h.key=="Enter"||h.key=="Tab")&&(h.preventDefault(),!m.some(S=>S.value===x))){let S={value:x,label:x};f([...m,S]),v([...u,x]),y(""),C.current&&(C.current.value="")}},g=()=>{v([]),f([])},T=(h,b)=>{let S=[...u];if(b==="add")S.includes(h)||S.push(h);else if(b==="remove"){let A=S.indexOf(h);A!==-1&&S.splice(A,1)}v(S)},O=h=>{let b=[];for(let S of h)S.value!==void 0?b.push(S.value):S.options&&(b=b.concat(O(S.options)));return b},M=(h,b)=>{let S=[];for(let A of h)A.value!==void 0&&b.includes(A.value)?S.push(A):A.options&&S.push(...M(A.options,b));return S};ot.useEffect(()=>{t&&v(t)},[t]),ot.useEffect(()=>{JSON.stringify(u)!=JSON.stringify(t)&&i?.(u)},[u]);let _=()=>re("div",{className:"flex flex-wrap gap-1",children:M(e.concat(m),u).map((h,b)=>qt(Ir,{color:"secondary",className:"justify-center items-center",children:[h.label,re("span",{"aria-hidden":"true",onClick:()=>{T(h.value,"remove")},className:"ml-1 text-danger",children:"\xD7"})]},b))});return re(ot.Fragment,{children:w&&s?qt(Rt,{open:c,onOpenChange:p,children:[re(jo,{asChild:!0,...l,children:qt(V,{variant:"default",role:"combobox","aria-expanded":c,className:"w-auto h-auto justify-between",ref:d,children:[Object.values(u).length>0?re(_,{}):re("span",{children:o??"Select..."}),u.length>0?re("span",{onClick:g,className:"pl-2 pr-1",children:re(gr,{icon:"tabler:x",color:"red"})}):null,re(gr,{icon:"carbon:chevron-sort",className:"h-4 w-4 shrink-0 opacity-50"})]})}),re(Pt,{children:re("div",{className:"mt-4 border-t",children:re(ui,{options:e.concat(m),selected:u,tag:x,tags:a,setTag:y,filter:n,handleClick:T,handleKeyDown:R,ref:C})})})]}):qt(De,{open:c,onOpenChange:p,children:[re(ke,{asChild:!0,...l,children:qt(V,{variant:"default",role:"combobox","aria-expanded":c,className:"w-auto h-auto justify-between",children:[Object.values(u).length>0?re(_,{}):re("span",{children:o??"Select..."}),u.length>0?re("span",{onClick:g,className:"pl-2 pr-1",children:re(gr,{icon:"tabler:x",color:"red"})}):null,re(gr,{icon:"carbon:chevron-sort",className:"h-4 w-4 shrink-0 opacity-50"})]})}),re(Ne,{className:"max-w-[200px] p-0",children:re(ui,{options:e.concat(m),selected:u,tag:x,tags:a,setTag:y,filter:n,handleClick:T,handleKeyDown:R,ref:C})})]})})});hc.displayName="MultipleSelect";import bf,{forwardRef as vf,useEffect as hf,useRef as yf,useState as xf}from"react";import{jsx as rt,jsxs as yc}from"react/jsx-runtime";var xc=vf(({className:e,control:t,label:o,iconStart:a,iconEnd:n,placeholder:i,description:s,component:l,clickIcon:d,...c},p)=>{let[m,f]=xf({}),u=yf(null),v=()=>{if(u.current){let y=u.current.scrollHeight;f({height:`${y}px`})}};hf(()=>{if(c?.type!=="textarea"||!u.current)return;v();let y=new ResizeObserver(v);return y.observe(u.current),()=>{y.disconnect()}},[c?.type]);let x=c?.type==="textarea"?m:void 0;return rt(Ln,{control:t,name:c?.name,render:({field:y})=>yc(ra,{className:"block",children:[rt("div",{children:rt(aa,{children:o})}),yc("div",{className:r(a||n?"inline-flex items-center justify-center":"",e),children:[a&&rt("button",{type:"button",className:"inline-flex shrink-0 h-9 p-2 items-center justify-center bg-gray-100 text-dark border-b-gray-300 dark:bg-dark dark:text-white border border-tl-gray-100 rounded-br-none rounded-tr-none rounded-tl-md rounded-bl-md disabled:cursor-not-allowed disabled:opacity-50",disabled:c?.disabled,style:x,children:a}),rt(na,{children:l?bf.cloneElement(l,{...y,...c,ref:p}):c?.type==="textarea"?rt(ho,{className:r(a?"rounded-bl-none rounded-tl-none":"",n?"rounded-br-none rounded-tr-none":""),...y,...c,ref:u}):rt(ge,{className:r(a?"rounded-bl-none rounded-tl-none":"",n?"rounded-br-none rounded-tr-none":""),placeholder:i,...y,...c})}),n&&rt("button",{type:"button",className:"inline-flex shrink-0 cursor-pointer h-9 p-2 items-center justify-center bg-gray-100 text-dark border-b-gray-300 dark:bg-dark dark:text-white border border-tr-gray-100 rounded-bl-none rounded-tl-none rounded-tr-md rounded-br-md disabled:cursor-not-allowed disabled:opacity-50",onClick:d,disabled:c?.disabled,style:x,children:n})]}),rt(ia,{children:s}),rt(sa,{})]})})});xc.displayName="InputForm";import*as ko from"react";import{DateTime as pi}from"luxon";import{Icon as Rf}from"@iconify/react";import{jsx as Mt,jsxs as br}from"react/jsx-runtime";var Rc=({value:e,onChange:t})=>{let[o,a]=ko.useState(pi.fromJSDate(e??new Date));ko.useEffect(()=>{a(pi.fromJSDate(e??new Date))},[e]);let n=l=>{let c=pi.fromJSDate(l).set({hour:o.hour,minute:o.minute});a(c),t(c.toJSDate())},s=br(ko.Fragment,{children:[br("div",{className:"px-4 pt-0 pb-4",children:[Mt(wt,{children:"Time"}),Mt(ge,{className:"",type:"time",step:"1",onChange:l=>{let{value:d}=l.target,c=Number.parseInt(d.split(":")[0]||"00",10),p=Number.parseInt(d.split(":")[1]||"00",10);var m=o.set({hour:c,minute:p});a(m),t(m.toJSDate())},value:o.toFormat("HH:mm")})]}),!o&&Mt("p",{children:"Please pick a day."})]});return br(De,{children:[Mt(ke,{asChild:!0,className:"z-10",children:br(V,{variant:"default",color:"secondary",className:r("w-[280px] justify-start text-left font-normal",!e&&"text-dark"),children:[Mt(Rf,{icon:"mdi:calendar-month-outline",className:"mr-2 h-4 w-4"}),e?Mt("span",{className:"text-dark dark:text-white",children:o.toFormat("DDD HH:mm")}):Mt("span",{children:"Pick a date"})]})}),br(Ne,{className:"w-auto p-0 dark:bg-graydark",children:[Mt(ht,{mode:"single",selected:o.toJSDate(),onSelect:n,initialFocus:!0}),s]})]})};Rc.displayName="DateTimePicker";import Pc from"react";import{addDays as Pf,format as fi}from"date-fns";import{Icon as wf}from"@iconify/react";import{Fragment as Cf,jsx as Eo,jsxs as gi}from"react/jsx-runtime";var wc=({className:e,onChange:t})=>{let[o,a]=Pc.useState({from:new Date,to:Pf(new Date,20)});return Pc.useEffect(()=>{t?.(o)},[o]),Eo("div",{className:r("grid gap-2",e),children:gi(De,{children:[Eo(ke,{asChild:!0,children:gi(V,{id:"date",variant:"default",color:"secondary-light",className:r("w-[300px] justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[Eo(wf,{icon:"mdi:calendar-month-outline",className:"mr-2 h-4 w-4"}),o?.from?o.to?gi(Cf,{children:[fi(o.from,"LLL dd, y")," -"," ",fi(o.to,"LLL dd, y")]}):fi(o.from,"LLL dd, y"):Eo("span",{children:"Pick a date"})]})}),Eo(Ne,{className:"w-auto p-0",align:"start",children:Eo(ht,{initialFocus:!0,mode:"range",defaultMonth:o?.from,selected:o,onSelect:a,numberOfMonths:2})})]})})};wc.displayName="DatePicker";import*as hr from"react";import{format as Sf}from"date-fns";import{Icon as Tf}from"@iconify/react";import{jsx as vr,jsxs as Cc}from"react/jsx-runtime";var Sc=({value:e,onChange:t})=>{let[o,a]=hr.useState();return hr.useEffect(()=>{a(e??new Date)},[e]),hr.useEffect(()=>{e!=o&&t(o)},[o]),Cc(De,{children:[vr(ke,{asChild:!0,children:Cc(V,{variant:"default",className:r("w-[280px] justify-start text-left font-normal",!o&&"text-dark"),children:[vr(Tf,{icon:"mdi:calendar-month-outline",className:"mr-2 h-4 w-4"}),o?Sf(o,"PPP"):vr("span",{children:"Pick a date"})]})}),vr(Ne,{className:"w-auto p-0",children:vr(ht,{mode:"single",selected:o,onSelect:a,initialFocus:!0})})]})};Sc.displayName="DatePicker";import vt from"react";import{jsx as Va}from"react/jsx-runtime";var Tc=({height:e,setHourFormat:t,hourFormat:o})=>{let a=[{number:"AM",translatedValue:(e*2).toString(),selected:!1},{number:"PM",translatedValue:e.toString(),selected:!1}],[n,i]=vt.useState([{number:"AM",translatedValue:(e*2).toString(),selected:o.hourFormat==="AM"},{number:"PM",translatedValue:e.toString(),selected:o.hourFormat==="PM"}]),s=vt.useRef(null),[l,d]=vt.useState(null),[c,p]=vt.useState(null),[m,f]=vt.useState(parseInt(n.filter(b=>b.selected===!0)[0]?.translatedValue)),[u,v]=vt.useState(!1),[x,y]=vt.useState(!1),C=b=>{y(!1),p(b.clientY),v(!0)},w=b=>{y(!1),p(b.targetTouches[0].clientY),v(!0)},R=()=>{v(!1),f(b=>b+(l??0)),y(!0)},g=()=>{v(!1),f(b=>b+(l??0)),y(!0)},T=b=>{d(u?b.clientY-(c??0):0)},O=b=>{d(u?b.targetTouches[0].clientY-(c??0):0)};vt.useEffect(()=>{u&&s.current&&(s.current.style.transform=`translateY(${m+(l??0)}px)`)},[l]),vt.useEffect(()=>{if(x){let b=Math.round((m??0)/e)*e;b<e&&(b=e),b>e*2&&(b=e*2),s.current&&(s.current.style.transform=`translateY(${b}px)`),f(b),d(0)}},[x]);let M=b=>{b.propertyName==="transform"&&[{number:"AM",translatedValue:(e*2).toString(),arrayNumber:0},{number:"PM",translatedValue:e.toString(),arrayNumber:1}].map(A=>{parseInt(A.translatedValue)===(m??0)&&(t({mount:!0,hourFormat:A.number}),i(()=>a.map(ee=>ee.number===A.number&&ee.translatedValue===(m??0).toString()?{...ee,selected:!0}:ee)))})},_=b=>{l===0&&f(parseInt(b.currentTarget.dataset.translatedValue??"0"))},h=b=>{b.deltaY>0?m&&m<=e&&f(S=>(S??0)+e):m&&m>=e*2&&f(S=>(S??0)-e)};return Va("div",{className:"relative w-1/2 overflow-hidden z-100 mr-1",onMouseDown:C,onMouseUp:R,onMouseMove:T,onMouseLeave:g,style:{height:e*5},onWheel:h,onTouchStart:w,onTouchMove:O,onTouchEnd:R,children:Va("div",{ref:s,className:`${x&&"transition-all duration-100 ease-out"}`,onTransitionEnd:M,style:{transform:`translateY(${m}px)`},children:n.map((b,S)=>Va("div",{className:"w-full text-center flex justify-start items-center select-none transition-all duration-100 ease-linear",style:{height:`${e}px`},children:Va("div",{className:r("w-fit-content text-black dark:text-white opacity-65 h-full transition-all duration-100 ease-linear cursor-pointer rounded-md leading-9 text-center flex justify-end items-center text-sm px-2",b.selected?"text-black dark:text-white opacity-100 font-bold":""),onClick:_,"data-translated-value":b.translatedValue,children:b.number})},S))})})},Nc=Tc;import Le from"react";var Dt=(e=54,t=24,o=null)=>{let a=[{number:"00",translatedValue:(e*2).toString(),selected:!1},{number:"01",translatedValue:e.toString(),selected:!1}],n=[{number:"00",translatedValue:e.toString(),selected:!1,hidden:!0},{number:"01",translatedValue:e.toString(),selected:!1}],i=t===13?n:a,s=0;for(let l=0;l<3;l++)for(let d=0;d<t;d++)if(!(l===0&&d<2||t===13&&d===0)){if(l===1&&d===o){d.toString().length===1?i.push({number:`0${d.toString()}`,translatedValue:`-${s}`,selected:!0}):i.push({number:d.toString(),translatedValue:`-${s}`,selected:!0}),s+=e;continue}d.toString().length===1?i.push({number:`0${d.toString()}`,translatedValue:`-${s}`,selected:!1}):i.push({number:d.toString(),translatedValue:`-${s}`,selected:!1}),s+=e}return i},Fa=(e=54,t=24)=>{let o=[{number:"00",translatedValue:(e*2).toString(),arrayNumber:0},{number:"01",translatedValue:e.toString(),arrayNumber:1}],a=0;for(let n=0;n<3;n++)for(let i=0;i<t;i++)n===0&&i<2||t===13&&i===0||(i.toString().length===1?o.push({number:`0${i.toString()}`,translatedValue:`-${a}`,arrayNumber:o.length}):o.push({number:i.toString(),translatedValue:`-${a}`,arrayNumber:o.length}),a+=e);return o};import{jsx as Oa}from"react/jsx-runtime";var Mc=({height:e,value:t,setValue:o,use12Hours:a})=>{let n=a?13:24,[i,s]=Le.useState(()=>Dt(e,n,parseInt(t.slice(0,2)))),l=Le.useRef(null),[d,c]=Le.useState(null),[p,m]=Le.useState(null),[f,u]=Le.useState(()=>{let D=Dt(e,n,parseInt(t.slice(0,2))).find(P=>P.number===t.slice(0,2)&&P.selected===!0);return parseInt(D?.translatedValue??"0")}),[v,x]=Le.useState(!1),[y,C]=Le.useState(!1),[w,R]=Le.useState(null),[g,T]=Le.useState(null),[O,M]=Le.useState(null),[_,h]=Le.useState(null),b=D=>{C(!1),m(D.clientY),x(!0),R(performance.now())},S=D=>{C(!1),m(D.targetTouches[0].clientY),x(!0),R(performance.now())},A=()=>{x(!1),u(D=>(D??0)+(d??0)),C(!0),T(performance.now()),performance.now()-(w??0)<=100?M("fast"):M("slow"),d&&d<0?h("down"):h("up")},K=()=>{x(!1),u(D=>(D??0)+(d??0)),C(!0),T(performance.now()),performance.now()-(w??0)<=100?M("fast"):M("slow"),d&&d<0?h("down"):h("up")},ee=D=>{c(v?D.clientY-(p??0):0)},fe=D=>{c(v?D.targetTouches[0].clientY-(p??0):0)};Le.useEffect(()=>{v&&l.current&&(l.current.style.transform=`translateY(${(f??0)+(d??0)}px)`)},[d]),Le.useEffect(()=>{if(y){if((g??0)-(w??0)<=100&&d!==0){let D;_==="down"?D=(f??0)-120/((g??0)-(w??0))*100:_==="up"&&(D=(f??0)+120/((g??0)-(w??0))*100);let P=Math.round((D??0)/e)*e;a?(P<e*-34&&(P=e*-34),P>e&&(P=e)):(P<e*-69&&(P=e*-69),P>e*2&&(P=e*2)),l.current&&(l.current.style.transform=`translateY(${P}px)`),u(P)}if((g??0)-(w??0)>100&&d!==0){let D=Math.round((f??0)/e)*e;a?(D<e*-34&&(D=e*-34),D>e&&(D=e)):(D<e*-69&&(D=e*-69),D>e*2&&(D=e*2)),l.current&&(l.current.style.transform=`translateY(${D}px)`),u(D)}c(0)}},[y]);let We=()=>{Fa(e,n).map(D=>{parseInt(D.translatedValue)===(f??0)&&(o(P=>`${D.number}:${P.slice(3,6)}`),s(()=>Dt(e,n).map(E=>E.number===D.number&&E.translatedValue===(f??0).toString()?{...E,selected:!0}:E)))})},kt=D=>{d===0&&u(parseInt(D.currentTarget.dataset.translatedValue??"0"))},$e=y&&O==="fast",k=y&&O==="slow",N=D=>{a?D.deltaY>0?(f??0)<e&&u(P=>(P??0)+e):(f??0)>e*-34&&u(P=>(P??0)-e):D.deltaY>0?(f??0)<e*2&&u(P=>(P??0)+e):(f??0)>e*-69&&u(P=>(P??0)-e)};return Oa("div",{className:`relative w-1/2 overflow-hidden z-100 mr-1 ${a&&"react-ios-time-picker-hour-12hour-format"}`,onMouseDown:b,onMouseUp:A,onMouseMove:ee,onMouseLeave:K,style:{height:e*5},onWheel:N,onTouchStart:S,onTouchMove:fe,onTouchEnd:A,children:Oa("div",{ref:l,className:`${$e===!0&&"transistion-all duration-700 ease-in-expo"} ${k===!0&&"transistion-all duration-600 ease-in-expo"}`,onTransitionEnd:We,style:{transform:`translateY(${f}px)`},children:i.map((D,P)=>Oa("div",{className:"w-full text-center flex justify-end items-center select-none transition-all duration-100 ease-linear",style:{height:`${e}px`},children:Oa("div",{className:r("w-fit-content text-black opacity-70 dark:text-white h-full hover:bg-orange-400 transition-all duration-100 ease-linear cursor-pointer rounded-md leading-9 text-center flex justify-end items-center px-2",D.selected?" text-black dark:text-white font-bold opacity-100":"",D?.hidden?" pointer-events-none opacity-0 invisible":""),onClick:kt,"data-translated-value":D.translatedValue,children:D.number})},P))})})},Dc=Mc;import Ae from"react";import{jsx as Ba}from"react/jsx-runtime";var kc=({height:e,value:t,setValue:o})=>{let[a,n]=Ae.useState(()=>Dt(e,60,parseInt(t.slice(3,6)))),i=Ae.useRef(null),[s,l]=Ae.useState(null),[d,c]=Ae.useState(null),[p,m]=Ae.useState(()=>{let k=Dt(e,60,parseInt(t.slice(3,6))).find(N=>N.number===t.slice(3,6)&&N.selected===!0);return parseInt(k?.translatedValue??"0")}),[f,u]=Ae.useState(!1),[v,x]=Ae.useState(!1),[y,C]=Ae.useState(null),[w,R]=Ae.useState(null),[g,T]=Ae.useState(null),[O,M]=Ae.useState(null),_=k=>{x(!1),c(k.clientY),u(!0),C(performance.now())},h=k=>{x(!1),c(k.targetTouches[0].clientY),u(!0),C(performance.now())},b=()=>{u(!1),m(k=>(k??0)+(s??0)),x(!0),R(performance.now()),performance.now()-(y??0)<=100?T("fast"):T("slow"),s&&s<0?M("down"):M("up")},S=()=>{u(!1),m(k=>(k??0)+(s??0)),x(!0),R(performance.now()),performance.now()-(y??0)<=100?T("fast"):T("slow"),s&&s<0?M("down"):M("up")},A=k=>{l(f?k.clientY-(d??0):0)},K=k=>{l(f?k.targetTouches[0].clientY-(d??0):0)};Ae.useEffect(()=>{f&&i.current&&(i.current.style.transform=`translateY(${(p??0)+(s??0)}px)`)},[s]),Ae.useEffect(()=>{if(v){if((w??0)-(y??0)<=100&&s!==0){let k;O==="down"?k=(p??0)-120/((w??0)-(y??0))*100:O==="up"&&(k=(p??0)+120/((w??0)-(y??0))*100);let N=Math.round((k??0)/e)*e;N<e*-177&&(N=e*-177),N>e*2&&(N=e*2),i.current&&(i.current.style.transform=`translateY(${N}px)`),m(N)}if((w??0)-(y??0)>100&&s!==0){let k=Math.round((p??0)/e)*e;k<e*-177&&(k=e*-177),k>e*2&&(k=e*2),i.current&&(i.current.style.transform=`translateY(${k}px)`),m(k)}l(0)}},[v]);let ee=()=>{Fa(e,60).map(k=>{parseInt(k.translatedValue)===(p??0)&&(o(N=>`${N.slice(0,2)}:${k.number}`),n(()=>Dt(e,60).map(D=>D.number===k.number&&D.translatedValue===(p??0).toString()?{...D,selected:!0}:D)))})},fe=k=>{s===0&&m(parseInt(k.currentTarget.dataset.translatedValue??"0"))},We=v&&g==="fast",kt=v&&g==="slow",$e=k=>{k.deltaY>0?(p??0)<e*2&&m(N=>(N??0)+e):(p??0)>e*-177&&m(N=>(N??0)-e)};return Ba("div",{className:"relative w-1/2 overflow-hidden z-100 ml-1",onMouseDown:_,onMouseUp:b,onMouseMove:A,onMouseLeave:S,style:{height:e*5},onWheel:$e,onTouchStart:h,onTouchMove:K,onTouchEnd:b,children:Ba("div",{ref:i,className:`${We===!0&&"transistion-all duration-700 ease-in-expo"} ${kt===!0&&"transistion-all duration-600 ease-in-expo"}`,onTransitionEnd:ee,style:{transform:`translateY(${p}px)`},children:a.map((k,N)=>Ba("div",{className:"w-full text-center flex justify-start items-center select-none transition-all duration-100 ease-linear",style:{height:`${e}px`},children:Ba("div",{className:r("w-fit-content opacity-70 text-black dark:text-white hover:bg-orange-400 h-full transition-all duration-100 ease-linear cursor-pointer rounded-md leading-9 text-center flex justify-start items-center px-2",k.selected?"font-bold text-black dark:text-white opacity-100":""),onClick:fe,"data-translated-value":k.translatedValue,children:k.number})},N))})})},Ec=kc;import{Fragment as UP,jsx as GP,jsxs as YP}from"react/jsx-runtime";import Io from"react";import za from"react";import{jsx as Xt,jsxs as bi}from"react/jsx-runtime";var Ic=({pickerDefaultValue:e,initialValue:t="00:00",height:o=10,onSave:a,onCancel:n,cancelButtonText:i,saveButtonText:s,controllers:l,setInputValue:d,setIsOpen:c,seperator:p,use12Hours:m,onAmPmChange:f})=>{let u=m?t.slice(0,5):t,[v,x]=za.useState(t===null?e:u),[y,C]=za.useState({mount:!1,hourFormat:t.slice(6,8)});za.useEffect(()=>{if(!l){let T=m?`${v} ${y.hourFormat}`:v;d(T)}},[v,y]),za.useEffect(()=>{y.mount&&f?.(y.hourFormat)},[y]);let w={height:o,value:v,setValue:x,controllers:l,use12Hours:m,onAmPmChange:f,setHourFormat:C,hourFormat:y},R=()=>{let T=m?`${v} ${y.hourFormat}`:v;d(T),a?.(T),c(!1)},g=()=>{n?.(),c(!1)};return bi("div",{className:"rounded-md overflow-hidden shadow shadow-black dark:shadow-gray-200 transition-all duration-150 ease-out",children:[bi("div",{className:"flex justify-center relative bg-white dark:bg-black w-56 overflow-hidden py-5",style:{height:`${o*5+40}px`},children:[Xt("div",{className:"absolute mx-3 rounded-md bg-gray-300 dark:bg-dark pointer-events-none left-0 right-0 z-1",style:{top:`${o*2+20}px`,height:`${o}px`}}),Xt(Dc,{...w}),p&&Xt("div",{className:"flex justify-center items-center h-full text-dark dark:text-white relative z-100 font-semibold",children:":"}),Xt(Ec,{...w}),m&&Xt(Nc,{...w})]}),l&&bi("div",{className:"relative flex justify-between dark:bg-black border-b-gray-300 z-50",children:[Xt(V,{color:"secondary",variant:"ghost",onClick:g,className:"w-14 transition-all duration-150 ease-linear font-light",children:i}),Xt(V,{variant:"ghost",color:"success",onClick:R,className:"w-14 transition-all duration-150 ease-linear font-light opacity-60",children:s})]})]})},Lc=Ic;import{jsx as yr,jsxs as Mf}from"react/jsx-runtime";var Nf=({className:e,value:t=null,cellHeight:o=28,placeHolder:a="Select Time",pickerDefaultValue:n="10:00",onChange:i,onFocus:s,onBlur:l,onSave:d,onCancel:c,disabled:p=!1,open:m=!1,required:f=!1,cancelButtonText:u="Cancel",saveButtonText:v="Save",controllers:x=!1,seperator:y=!0,id:C=null,use12Hours:w=!1,onAmPmChange:R,name:g=null,onOpen:T,inputClassName:O=null})=>{let[M,_]=Io.useState(m),[h,b]=Io.useState(),[S,A]=Io.useState(t),K=()=>{s?.(),T?.()};Io.useEffect(()=>{b(o)},[o]),Io.useEffect(()=>{S!=t&&i?.({name:g,id:C,value:S})},[S]),Io.useEffect(()=>{!t&&w?A(`${n} AM`):!t&&!w&&A(n)},[]);let ee={height:h,onSave:d,onCancel:c,cancelButtonText:u,saveButtonText:v,controllers:x,setInputValue:A,setIsOpen:_,seperator:y,use12Hours:w,onAmPmChange:R,initialValue:S,pickerDefaultValue:n};return yr("div",{className:r("grid gap-2",e),children:Mf(De,{open:M,onOpenChange:_,children:[yr(ke,{asChild:!0,children:yr(ge,{id:C??"time",name:g??"time",className:` cursor-text py-2 px-3 rounded-md border border-black dark:border-white ${O||""}`,value:S||"",type:"text",placeholder:a,readOnly:!0,disabled:p,required:f,onFocus:K})}),yr(Ne,{className:"w-auto p-0",align:"start",onFocus:K,onBlur:l,children:yr(Lc,{...ee})})]})})};import*as ae from"react";import{flexRender as vi,getCoreRowModel as Df,getFilteredRowModel as kf,getPaginationRowModel as Ef,getSortedRowModel as If,useReactTable as Lf}from"@tanstack/react-table";import{Icon as Af}from"@iconify/react";import{jsx as I,jsxs as ne}from"react/jsx-runtime";var Ac=()=>{let[e,t]=ae.useState({pageSize:10,pageIndex:0}),{pageSize:o,pageIndex:a}=e;return{limit:o,onPaginateChange:t,pagination:e,skip:o*a}},Hf=()=>{let e=ae.useRef(!0),t=e.current,o=ae.useCallback(()=>{e.current=!1},[]);return ae.useEffect(()=>{e.current=!0}),[t,o]},Hc=({column:e,table:t})=>{let o=t.getPreFilteredRowModel().flatRows[0]?.getValue(e.id),a=e.getFilterValue();return typeof o=="number"?ne("div",{className:"flex space-x-2",children:[I(ge,{type:"number",value:a?.[0]??"",onChange:n=>e.setFilterValue(i=>[n.target.value,i?.[1]]),placeholder:"Min",className:"min-w-24 h-6"}),I(ge,{type:"number",value:a?.[1]??"",onChange:n=>e.setFilterValue(i=>[i?.[0],n.target.value]),placeholder:"Max",className:"min-w-24 h-6"})]}):I(ge,{type:"text",value:a??"",onChange:n=>e.setFilterValue(n.target.value),placeholder:"Search...",className:"min-w-36 h-6"})},Vf=({className:e,data:t=[],columns:o=[],search:a="",hidden:n=[],pageCount:i,manualPagination:s=!1,onPagination:l,paginationSetting:d={start:10,end:100,step:10},onSelectRow:c,actions:p=[],scrollable:m=!1,headerClass:f,bodyClass:u})=>{let[v,x]=ae.useState([]),[y,C]=ae.useState([]),[w,R]=ae.useState([]),[g,T]=ae.useState({}),[O,M]=ae.useState({}),[_,h]=ae.useState("onChange"),[b,S]=ae.useState(!1),[A,K]=ae.useState([]),[ee,fe]=ae.useState(),{onPaginateChange:We,pagination:kt}=Ac(),[$e,k]=ae.useState({pageSize:d.start,pageIndex:0});ae.useEffect(()=>{x(t)},[t]),ae.useEffect(()=>{s?l?.($e):We($e)},[$e]);let N=Lf({data:v,columns:o,pageCount:i??Math.floor(t.length/kt.pageSize)+1,onSortingChange:C,onColumnFiltersChange:R,getCoreRowModel:Df(),getPaginationRowModel:Ef(),getSortedRowModel:If(),getFilteredRowModel:kf(),onColumnVisibilityChange:T,onRowSelectionChange:M,onPaginationChange:k,columnResizeMode:_,manualPagination:!!s,state:{sorting:y,pagination:$e,columnFilters:w,columnVisibility:g,rowSelection:O}});ae.useEffect(()=>{let E=N.getSelectedRowModel().flatRows.map(me=>me.original);p?.length||c?.(E),K(E)},[O]),Xa(()=>{N.resetRowSelection(!0)},6e4,[]),ae.useEffect(()=>{let E=N.getAllColumns().filter(me=>me.getCanHide()).map(me=>me.id).reduce((me,He)=>(me[He]=!n.includes(He),me),{});T(E)},[]);let D=P=>{S(!0),fe(P)};return ne("div",{className:"w-full",children:[ne("div",{className:r("lg:flex lg:flex-row md:flex md:flex-col py-2 gap-1 items-center",a?"justify-between":"justify-end"),children:[a||Object.keys(O).length>0&&p.length>0?ne("div",{className:"gap-1 flex lg:flex-row md:flex md:flex-col py-4 justify-between items-center",children:[a&&I(ge,{placeholder:"Filter...",value:N.getColumn(a)?.getFilterValue()??"",onChange:P=>N.getColumn(a)?.setFilterValue(P.target.value),className:"max-w-sm"}),Object.keys(O).length>0&&p.length>0?I("div",{className:"flex gap-2",children:p.map((P,E)=>I(V,{variant:"fill",color:P?.color??"danger",onClick:()=>D(P),children:P.label},E))}):null]}):null,ee&&ne(ci,{open:b,title:ee.label,action:()=>{ee.action?.(A),S(!b),fe(void 0),N.resetRowSelection(!0)},cancel:()=>{S(!b),fe(void 0)},children:[A.length," ","item"]}),ne("div",{className:"flex items-end justify-end",children:[ne(ga,{value:_,onValueChange:P=>h(P),children:[I(tr,{className:"w-auto",children:I(va,{placeholder:"Choose select"})}),I(or,{children:ne(ba,{children:[I(ha,{children:"Resize"}),I(Ro,{value:"onEnd",children:"Resize: onEnd"}),I(Ro,{value:"onChange",children:"Resize: onChange"})]})})]}),ne(Ko,{children:[I(qo,{asChild:!0,children:ne(V,{variant:"default",className:"ml-auto",children:["Columns",I(Af,{icon:"mdi:chevron-down",className:"ml-2 h-4 w-4"})]})}),ne(go,{align:"end",children:[I(Jo,{className:"capitalize",checked:N.getIsAllColumnsVisible(),onCheckedChange:N.getToggleAllColumnsVisibilityHandler(),children:"all"}),I(bo,{}),N.getAllColumns().filter(P=>P.getCanHide()).map(P=>I(Jo,{className:"capitalize",checked:P.getIsVisible(),onCheckedChange:E=>P.toggleVisibility(!!E),children:P.id},P.id))]})]})]})]}),I("div",{className:"rounded-md border",children:ne(Ra,{className:r(m?`overflow-auto relative ${e??"h-[600px]"}`:""),style:{width:N.getTotalSize()},children:[I(Pa,{className:r(m?"sticky top-0 z-50":"",f),children:N.getHeaderGroups().map(P=>I(Ut,{children:P.headers.map((E,me,He)=>ne(dr,{className:r("border-1 border-gray-200 relative !text-center",P.headers.length>=5&&me===He.length-1?"sm:sticky sm:right-0 top-0 md:sticky md:right-0 shadow-md bg-gray-100 dark:bg-dark z-50":""),style:{width:E.getSize()},colSpan:E.colSpan,children:[E.isPlaceholder?null:ne("div",{className:"flex flex-col justify-between items-center gap-1 content-start",children:[I("div",{className:"col-span-1 min-h-[36px] flex items-center justify-center capitalize",children:vi(E.column.columnDef.header,E.getContext())}),I("div",{className:"col-span-1 min-h-[24px] pb-1",children:E.column.columnDef?.enableColumnFilter?I(Hc,{column:E.column,table:N}):null})]}),I("div",{onMouseDown:E.getResizeHandler(),onTouchStart:E.getResizeHandler(),className:"cursor-col-resize absolute right-0 top-0 h-full w-[5px] select-none touch-none",style:{transform:_==="onEnd"&&E.column.getIsResizing()?`translateX(${N.getState().columnSizingInfo.deltaOffset}px)`:"0"}})]},E.id))},P.id))}),I(wa,{className:r(u),children:N.getRowModel().rows?.length?N.getRowModel().rows.map(P=>I(Ut,{"data-state":P.getIsSelected()&&"selected",children:P.getVisibleCells().map((E,me,He)=>I(cr,{style:{width:E.column.getSize()},className:r(P.getVisibleCells().length>=5&&me===He.length-1?"sticky right-0 shadow-md z-49 bg-gray-100 dark:bg-dark":"","!text-center"),children:vi(E.column.columnDef.cell,E.getContext())},E.id))},P.id)):I(Ut,{children:I(cr,{colSpan:o.length,className:"h-24 text-center",children:"No Data"})})}),I(Ca,{children:N.getFooterGroups().map(P=>I(Ut,{children:P.headers.map((E,me,He)=>I(ae.Fragment,{children:E.column.columnDef.footer?I(dr,{className:r("border-1 border-gray-200 relative !text-center",P.headers.length>=5&&me===He.length-1?"sm:sticky sm:right-0 md:sticky md:right-0 shadow-md bg-gray-100 dark:bg-dark":""),style:{width:E.getSize()},colSpan:E.colSpan,children:E.isPlaceholder?null:vi(E.column.columnDef.footer,E.getContext())}):null},E.id))},P.id))})]})}),ne("div",{className:"lg:flex lg:flex-row md:flex md:flex-col items-center justify-end gap-2 py-4",children:[ne("div",{className:"flex-1 text-sm text-dark dark:text-white",children:[N.getFilteredSelectedRowModel().rows.length," of"," ",N.getFilteredRowModel().rows.length," row(s) selected."]}),ne("div",{className:"lg:flex lg:flex-row md:flex md:flex-col items-center gap-2",children:[ne("div",{className:"flex flex-row",children:[I(V,{size:"sm",onClick:()=>N.setPageIndex(0),disabled:!N.getCanPreviousPage(),tooltip:"first",children:"<<"}),I(V,{size:"sm",onClick:()=>N.previousPage(),disabled:!N.getCanPreviousPage(),tooltip:"previous",children:"<"}),I(V,{size:"sm",onClick:()=>N.nextPage(),disabled:!N.getCanNextPage(),tooltip:"next",children:">"}),I(V,{size:"sm",onClick:()=>N.setPageIndex(N.getPageCount()-1),disabled:!N.getCanNextPage(),tooltip:"last",children:">>"})]}),ne("div",{className:"flex flex-row",children:[ne("span",{className:"flex items-center gap-1",children:[I("div",{children:"page"}),ne("strong",{children:[N.getState().pagination?.pageIndex+1," ","of",N.getPageCount()]})]}),ne("span",{className:"flex items-center gap-1",children:["| ","Go to",":",I(ge,{type:"number",defaultValue:N.getState().pagination?.pageIndex+1,onChange:P=>{let E=P.target.value?Number(P.target.value)-1:0;N.setPageIndex(E)},className:"border p-1 rounded w-16"})]})]}),I("div",{className:"flex flex-row",children:ne(ga,{name:"status",value:String(N.getState().pagination.pageSize),onValueChange:P=>{N.setPageSize(Number(P))},children:[I(tr,{className:"w-auto",children:I(va,{placeholder:"show"+N.getState().pagination.pageSize})}),I(or,{children:I(ba,{children:qa(d.start,d.end,d.step).map((P,E)=>I(Ro,{value:String(P),children:" show "+P},E))})})]})})]})]})]})};import*as Lo from"react-resizable-panels";import{Icon as Ff}from"@iconify/react";import{jsx as Wa}from"react/jsx-runtime";var Of=({className:e,...t})=>Wa(Lo.PanelGroup,{className:r("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),Bf=Lo.Panel,zf=({withHandle:e,className:t,...o})=>Wa(Lo.PanelResizeHandle,{className:r("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...o,children:e&&Wa("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:Wa(Ff,{icon:"lucide:grip-vertical",className:"h-2.5 w-2.5"})})});import te from"react";import{jsx as at,jsxs as $f}from"react/jsx-runtime";var Jt=te.createContext(void 0),Vc=te.forwardRef(({defaultIndex:e=0,className:t,children:o,onIndexChange:a,autoNextStep:n=!0,...i},s)=>{let[l,d]=te.useState(e),[c,p]=te.useState(0),[m,f]=te.useState([]);te.useEffect(()=>{a?.(l)},[l,a]),te.useEffect(()=>{let v=new Array(c).fill(!1);v[0]=!1,f(v)},[c]);let u=te.useCallback(v=>{f(x=>{let y=[...x];return y[v]=!0,y}),n&&v<c-1&&d(v+1)},[n,c]);return te.useImperativeHandle(s,()=>({setStepCompleted:u})),at(Jt.Provider,{value:{currentStepIndex:l,setCurrentStepIndex:d,totalSteps:c,setTotalSteps:p,completedSteps:m,setCompletedSteps:f,setStepCompleted:u},children:at("div",{className:t,...i,children:o})})});Vc.displayName="StepContainer";var Fc=te.forwardRef(({className:e,children:t,...o},a)=>at("div",{ref:a,className:r("flex justify-between items-center",e),...o,children:t}));Fc.displayName="StepList";var Oc=te.forwardRef(({index:e,icon:t,children:o,disabled:a,...n},i)=>{let s=te.useContext(Jt);if(!s)throw new Error("StepTrigger must be used within a StepContainer");let{currentStepIndex:l,setCurrentStepIndex:d,completedSteps:c}=s,p=c[e],m=p||e===0||c[e-1];return $f("div",{ref:i,className:"flex flex-col items-center",...n,children:[at("div",{className:r("w-10 h-10 rounded-full flex items-center justify-center",m?"cursor-pointer":"cursor-not-allowed",e===l?"bg-indigo-600 text-white":p?"bg-green-500 text-white":m?"bg-gray-200 text-gray-600":"bg-gray-100 text-gray-400"),onClick:()=>m&&d(e),children:t}),o]})});Oc.displayName="StepTrigger";var Wf=({className:e,color:t})=>{let o=te.useContext(Jt);if(!o)throw new Error("StepProgress must be used within a StepContainer");let{currentStepIndex:a,totalSteps:n}=o,i=(a+1)/n*100;return at(ua,{value:i,className:r("w-auto",e),color:t})},Bc=te.forwardRef(({className:e,children:t,...o},a)=>{let n=te.useContext(Jt);if(!n)throw new Error("Stepper must be used within a StepContainer");let{currentStepIndex:i,setTotalSteps:s}=n;return te.useEffect(()=>{let l=te.Children.count(t);s(l)},[]),at("div",{ref:a,className:e,...o,children:te.Children.map(t,(l,d)=>te.isValidElement(l)&&d==i?te.cloneElement(l,{isActive:!0}):null)})});Bc.displayName="Stepper";var zc=te.forwardRef(({className:e,isActive:t,children:o,...a},n)=>t?at("div",{ref:n,className:r(e),...a,children:o}):null);zc.displayName="StepsContent";var Wc=te.forwardRef(({className:e,children:t,...o},a)=>at("div",{ref:a,className:r("mt-8 flex justify-between",e),...o,children:t}));Wc.displayName="StepNav";var $c=te.forwardRef(({className:e,children:t,disabled:o,...a},n)=>{let i=te.useContext(Jt);if(!i)throw new Error("StepPrevious must be used within a StepContainer");let{currentStepIndex:s,setCurrentStepIndex:l}=i,d=()=>{s>0&&l(s-1)};return at(V,{ref:n,className:r(e),onClick:d,disabled:o??s===0,...a,children:t})});$c.displayName="StepPrevious";var _c=te.forwardRef(({className:e,children:t,disabled:o,labelFinish:a="Finish",...n},i)=>{let s=te.useContext(Jt);if(!s)throw new Error("StepNext must be used within a StepContainer");let{currentStepIndex:l,setCurrentStepIndex:d,totalSteps:c,completedSteps:p}=s,m=()=>{l<c-1&&p[l]&&d(l+1)};return at(V,{ref:i,className:r(e),onClick:m,disabled:o||l===c-1||!p[l],variant:"fill",color:!p[l]&&l!==c-1?"danger":"success",...n,children:l===c-1?a:t})});_c.displayName="StepNext";export{sm as Accordion,Mi as AccordionContent,Ti as AccordionItem,Ni as AccordionTrigger,Hi as Alert,Fi as AlertDescription,Ga as AlertDialog,Mr as AlertDialogAction,Dr as AlertDialogCancel,wr as AlertDialogContent,Nr as AlertDialogDescription,Sr as AlertDialogFooter,Cr as AlertDialogHeader,Ya as AlertDialogOverlay,Ua as AlertDialogPortal,Tr as AlertDialogTitle,mm as AlertDialogTrigger,Vi as AlertTitle,pm as AspectRatio,Bi as Avatar,Wi as AvatarFallback,zi as AvatarImage,Ir as Badge,Ki as Breadcrumb,es as BreadcrumbEllipsis,Xi as BreadcrumbItem,Ji as BreadcrumbLink,qi as BreadcrumbList,Qi as BreadcrumbPage,Zi as BreadcrumbSeparator,V as Button,Gi as ButtonGroup,Tm as ButtonGroupSeparator,Sm as ButtonGroupText,ht as Calendar,ls as Card,us as CardContent,ms as CardDescription,ps as CardFooter,ds as CardHeader,cs as CardTitle,bs as Carousel,Ps as CarouselButton,vs as CarouselContent,Rs as CarouselControl,Ss as CarouselDots,hs as CarouselItem,xs as CarouselNext,ys as CarouselPrevious,ws as CarouselSelect,as as ChartContainer,Im as ChartLegend,ss as ChartLegendContent,ns as ChartStyle,Em as ChartTooltip,is as ChartTooltipContent,Ms as Checkbox,Km as CircularSlider,uc as Col,Vm as Collapsible,Om as CollapsibleContent,Fm as CollapsibleTrigger,vc as ComboBox,Vt as Command,Ds as CommandDialog,co as CommandEmpty,mo as CommandGroup,lo as CommandInput,uo as CommandItem,ks as CommandList,Es as CommandSeparator,Is as CommandShortcut,cn as ContextMenu,Ls as ContextMenuCheckboxItem,Wr as ContextMenuContent,Fs as ContextMenuCustom,Gm as ContextMenuGroup,$r as ContextMenuItem,Hs as ContextMenuLabel,Um as ContextMenuPortal,Ym as ContextMenuRadioGroup,As as ContextMenuRadioItem,Vs as ContextMenuSeparator,_r as ContextMenuShortcut,un as ContextMenuSub,zr as ContextMenuSubContent,Br as ContextMenuSubTrigger,mn as ContextMenuTrigger,Vf as DataTable,Sc as DatePicker,wc as DatePickerRange,Rc as DateTimePicker,zo as Dialog,nn as DialogClose,so as DialogContent,Or as DialogDescription,Vr as DialogFooter,Hr as DialogHeader,ic as DialogModal,ln as DialogOverlay,sn as DialogPortal,Fr as DialogTitle,zm as DialogTrigger,Rt as Drawer,Sn as DrawerClose,Pt as DrawerContent,Qr as DrawerDescription,Xr as DrawerFooter,qr as DrawerHeader,Tn as DrawerOverlay,nl as DrawerPortal,Jr as DrawerTitle,jo as DrawerTrigger,mf as Dropdown,Ko as DropdownMenu,Jo as DropdownMenuCheckboxItem,go as DropdownMenuContent,Mn as DropdownMenuGroup,Xo as DropdownMenuItem,ta as DropdownMenuLabel,Dn as DropdownMenuPortal,cu as DropdownMenuRadioGroup,il as DropdownMenuRadioItem,bo as DropdownMenuSeparator,oa as DropdownMenuShortcut,kn as DropdownMenuSub,ea as DropdownMenuSubContent,Zr as DropdownMenuSubTrigger,qo as DropdownMenuTrigger,$d as DualSlider,mu as Empty,bu as EmptyContent,gu as EmptyDescription,uu as EmptyHeader,pu as EmptyMedia,fu as EmptyTitle,wu as Field,Cu as FieldContent,Nu as FieldDescription,Du as FieldError,Pu as FieldGroup,Su as FieldLabel,Ru as FieldLegend,Mu as FieldSeparator,xu as FieldSet,Tu as FieldTitle,Hc as Filter,gc as Flex,Hu as Form,na as FormControl,ia as FormDescription,Ln as FormField,ra as FormItem,aa as FormLabel,sa as FormMessage,dc as Grid,Tc as HourFormat,Mc as HourWheel,Vu as HoverCard,pl as HoverCardContent,Fu as HoverCardTrigger,ge as Input,xc as InputForm,Wu as InputGroup,$u as InputGroupAddon,_u as InputGroupButton,Uu as InputGroupInput,Gu as InputGroupText,Yu as InputGroupTextarea,hl as InputOTP,yl as InputOTPGroup,Rl as InputOTPSeparator,xl as InputOTPSlot,ep as Item,np as ItemActions,op as ItemContent,ap as ItemDescription,sp as ItemFooter,Qu as ItemGroup,ip as ItemHeader,tp as ItemMedia,Zu as ItemSeparator,rp as ItemTitle,lp as Kbd,dp as KbdGroup,wt as Label,Vl as Menu,Vn as MenuButton,Bl as MenuItem,Sl as Menubar,El as MenubarCheckboxItem,Dl as MenubarContent,mp as MenubarGroup,kl as MenubarItem,Ll as MenubarLabel,cp as MenubarMenu,up as MenubarPortal,pp as MenubarRadioGroup,Il as MenubarRadioItem,Al as MenubarSeparator,Hl as MenubarShortcut,fp as MenubarSub,Ml as MenubarSubContent,Nl as MenubarSubTrigger,Tl as MenubarTrigger,kc as MinuteWheel,ci as Modal,hc as MultipleSelect,Ul as NavigationMenu,ql as NavigationMenuContent,Xl as NavigationMenuIndicator,Pp as NavigationMenuItem,wp as NavigationMenuLink,Yl as NavigationMenuList,Kl as NavigationMenuTrigger,Fn as NavigationMenuViewport,Ql as Pagination,Zl as PaginationContent,rd as PaginationEllipsis,ed as PaginationItem,ma as PaginationLink,od as PaginationNext,td as PaginationPrevious,De as Popover,Cp as PopoverAnchor,Ne as PopoverContent,ke as PopoverTrigger,ua as Progress,ld as RadioGroup,dd as RadioGroupItem,Gr as RenderContextMenuItem,zf as ResizableHandle,Bf as ResizablePanel,Of as ResizablePanelGroup,ut as ScrollArea,_n as ScrollBar,ga as Select,or as SelectContent,ba as SelectGroup,Ro as SelectItem,ha as SelectLabel,Un as SelectScrollDownButton,Gn as SelectScrollUpButton,cd as SelectSeparator,tr as SelectTrigger,va as SelectValue,Xe as Separator,Cm as ShadcnButtonGroup,bd as ShadcnSidebar,ar as Sheet,Dp as SheetClose,Po as SheetContent,Ep as SheetCustom,So as SheetDescription,md as SheetFooter,wo as SheetHeader,qn as SheetOverlay,Kn as SheetPortal,Co as SheetTitle,Mp as SheetTrigger,Gl as Sidebar,Cd as SidebarContent,Pd as SidebarFooter,Sd as SidebarGroup,Nd as SidebarGroupAction,Md as SidebarGroupContent,Td as SidebarGroupLabel,Rd as SidebarHeader,xd as SidebarInput,yd as SidebarInset,Dd as SidebarMenu,Ld as SidebarMenuAction,Ad as SidebarMenuBadge,Id as SidebarMenuButton,kd as SidebarMenuItem,Hd as SidebarMenuSkeleton,Vd as SidebarMenuSub,Od as SidebarMenuSubButton,Fd as SidebarMenuSubItem,gd as SidebarProvider,hd as SidebarRail,wd as SidebarSeparator,vd as SidebarTrigger,nr as Skeleton,zd as Slider,Up as Spinner,Vc as StepContainer,Fc as StepList,Wc as StepNav,_c as StepNext,$c as StepPrevious,Wf as StepProgress,Oc as StepTrigger,Bc as Stepper,Jt as StepperContext,zc as StepsContent,$l as SubMenu,Ud as Switch,Ra as Table,wa as TableBody,Yd as TableCaption,cr as TableCell,Ca as TableFooter,dr as TableHead,Pa as TableHeader,Ut as TableRow,Kp as Tabs,qd as TabsContent,jd as TabsList,Kd as TabsTrigger,ho as Textarea,Nf as TimePicker,Ic as TimePickerSelection,Na as Toast,Xd as ToastAction,Ma as ToastClose,ka as ToastDescription,oi as ToastProvider,Da as ToastTitle,Ta as ToastViewport,Zd as Toaster,nf as ToasterSonner,tc as Toggle,rc as ToggleGroup,ac as ToggleGroupItem,Qn as Tooltip,Lp as TooltipArrow,ya as TooltipContent,Ap as TooltipPortal,Jn as TooltipProvider,Zn as TooltipTrigger,Ai as alertVariants,$i as badgeVariants,Yi as buttonGroupVariants,Ke as buttonVariants,r as cn,Fo as colorVariants,j as cva,sl as emptyMediaVariants,dl as fieldVariants,qa as generateArray,bl as inputGroupAddonVariants,vl as inputGroupButtonVariants,wl as itemMediaVariants,Pl as itemVariants,jl as navigationMenuTriggerStyle,Ed as sidebarMenuButtonVariants,Qd as toast,Aa as toggleVariants,Ht as useCarousel,vm as useDebounce,ym as useDelay,Qo as useFormField,gm as useForwardedRef,Qa as useIsMobile,Lt as useMediaQuery,Ac as usePagination,Xa as useRepeat,sr as useSidebar,Hf as useSkipper,ni as useToast};
1
+ "use client";
2
+ import*as Ar from"react";import*as rt from"@radix-ui/react-accordion";import{Icon as Wp}from"@iconify/react";import{clsx as Bp}from"clsx";import{twMerge as Gp}from"tailwind-merge";var i=(...e)=>Gp(Bp(e));import{jsx as rr,jsxs as Up}from"react/jsx-runtime";var Ds=Ar.forwardRef(({className:e,...t},o)=>rr(rt.Root,{ref:o,"data-slot":"accordion",className:i("flex w-full flex-col",e),...t}));Ds.displayName="Accordion";var Es=Ar.forwardRef(({className:e,...t},o)=>rr(rt.Item,{ref:o,"data-slot":"accordion-item",className:i("border-b last:border-b-0",e),...t}));Es.displayName="AccordionItem";var ks=Ar.forwardRef(({className:e,children:t,...o},r)=>rr(rt.Header,{className:"flex",children:Up(rt.Trigger,{ref:r,"data-slot":"accordion-trigger",className:i("group/accordion-trigger relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,rr(Wp,{icon:"lucide:chevron-down",className:"pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200"})]})}));ks.displayName=rt.Trigger.displayName;var Is=Ar.forwardRef(({className:e,children:t,...o},r)=>rr(rt.Content,{ref:r,"data-slot":"accordion-content",className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:rr("div",{className:i("pt-0 pb-2.5 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),children:t})}));Is.displayName=rt.Content.displayName;import*as Lo from"react";import*as de from"@radix-ui/react-alert-dialog";import*as Vs from"react";import{Slot as Xp}from"@radix-ui/react-slot";import{clsx as jp}from"clsx";var zs=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ls=jp,$=(e,t)=>o=>{if(t?.variants==null)return Ls(e,o?.class,o?.className);let{variants:r,defaultVariants:n}=t,a=Object.keys(r).map(d=>{let c=o?.[d],m=n?.[d];if(c===null)return null;let f=zs(c)||zs(m);return r[d][f]}),s=o&&Object.entries(o).reduce((d,[c,m])=>(m===void 0||(d[c]=m),d),{}),l=t?.compoundVariants?.reduce((d,{class:c,className:m,...f})=>Object.entries(f).every(([p,u])=>Array.isArray(u)?u.includes({...n,...s}[p]):{...n,...s}[p]===u)?[...d,c,m]:d,[]);return Ls(e,a,l,o?.class,o?.className)};import*as _s from"react";import*as Ne from"@radix-ui/react-tooltip";import{jsx as qa,jsxs as Kp}from"react/jsx-runtime";var nr=({delayDuration:e=0,...t})=>qa(Ne.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t});nr.displayName=Ne.Provider.displayName;var Fr=Ne.Root,Hr=Ne.Trigger,qp=Ne.Arrow,Yp=Ne.TooltipPortal,ar=_s.forwardRef(({className:e,sideOffset:t=4,style:o,children:r,...n},a)=>qa(Ne.Portal,{children:Kp(Ne.Content,{ref:a,"data-slot":"tooltip-content",sideOffset:t,style:{zIndex:9999,...o},className:i("z-[9999] inline-flex w-fit max-w-xs origin-[var(--radix-tooltip-content-transform-origin)] items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background shadow-md has-data-[slot=kbd]:pr-1.5 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 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...n,children:[r,qa(Ne.Arrow,{className:"z-[9999] size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})}));ar.displayName=Ne.Content.displayName;import{jsx as Nn,jsxs as Jp}from"react/jsx-runtime";var Ct=$("group/button relative inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/85",fill:"bg-primary text-primary-foreground hover:bg-primary/85",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",glass:"border-sky-200/80 dark:border-sky-400/30 bg-gradient-to-br from-white/70 via-sky-50/50 to-indigo-50/60 dark:from-slate-800/60 dark:via-sky-950/40 dark:to-indigo-950/50 text-sky-900 dark:text-sky-100 backdrop-blur-md shadow-[0_4px_14px_0_rgba(14,165,233,0.16),inset_0_1px_1px_0_rgba(255,255,255,0.9)] dark:shadow-[0_4px_14px_0_rgba(2,6,23,0.45),inset_0_1px_1px_0_rgba(255,255,255,0.2)] hover:from-white/85 hover:via-sky-100/60 hover:to-indigo-100/70 dark:hover:from-slate-800/80 dark:hover:to-indigo-900/60",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",success:"bg-emerald-500/10 text-emerald-600 hover:bg-emerald-500/20 focus-visible:border-emerald-500/40 focus-visible:ring-emerald-500/20 dark:bg-emerald-500/20 dark:text-emerald-400 dark:hover:bg-emerald-500/30 dark:focus-visible:ring-emerald-500/40",warning:"bg-amber-500/10 text-amber-600 hover:bg-amber-500/20 focus-visible:border-amber-500/40 focus-visible:ring-amber-500/20 dark:bg-amber-500/20 dark:text-amber-400 dark:hover:bg-amber-500/30 dark:focus-visible:ring-amber-500/40",info:"bg-sky-500/10 text-sky-600 hover:bg-sky-500/20 focus-visible:border-sky-500/40 focus-visible:ring-sky-500/20 dark:bg-sky-500/20 dark:text-sky-400 dark:hover:bg-sky-500/30 dark:focus-visible:ring-sky-500/40",link:"text-primary underline-offset-4 hover:underline",icon:"size-8 rounded-lg hover:bg-muted hover:text-foreground p-0"},color:{default:"",dark:"bg-foreground text-background hover:bg-foreground/90",light:"bg-muted text-foreground hover:bg-muted/80",primary:"bg-primary text-primary-foreground hover:bg-primary/85",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-emerald-600 text-white hover:bg-emerald-600/90 dark:bg-emerald-500",info:"bg-sky-600 text-white hover:bg-sky-600/90 dark:bg-sky-500",warning:"bg-amber-500 text-white hover:bg-amber-500/90 dark:bg-amber-500",danger:"bg-destructive text-destructive-foreground hover:bg-destructive/90","primary-light":"bg-primary/10 text-primary hover:bg-primary/20 dark:bg-primary/20","secondary-light":"bg-secondary/60 text-secondary-foreground hover:bg-secondary/80","success-light":"bg-emerald-500/10 text-emerald-600 hover:bg-emerald-500/20 dark:bg-emerald-500/20 dark:text-emerald-400","info-light":"bg-sky-500/10 text-sky-600 hover:bg-sky-500/20 dark:bg-sky-500/20 dark:text-sky-400","warning-light":"bg-amber-500/10 text-amber-600 hover:bg-amber-500/20 dark:bg-amber-500/20 dark:text-amber-400","danger-light":"bg-destructive/10 text-destructive hover:bg-destructive/20 dark:bg-destructive/20"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-3 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default",color:"default"}}),I=Vs.forwardRef(({className:e,variant:t="default",size:o="default",color:r="default",asChild:n=!1,tooltip:a,children:s,...l},d)=>{let m=Nn(n?Xp:"button",{"data-slot":"button","data-variant":t,"data-size":o,"data-fill":t==="fill","data-icon":t==="icon",className:i(Ct({variant:t,size:o,color:r,className:e})),ref:d,...l,children:s});return!a||n?m:Nn(nr,{delayDuration:150,children:Jp(Fr,{children:[Nn(Hr,{asChild:!0,children:m}),Nn(ar,{children:a})]})})});I.displayName="Button";import{jsx as ut,jsxs as em}from"react/jsx-runtime";var Qp=de.Root,Zp=de.Trigger,Ya=({...e})=>ut(de.Portal,{"data-slot":"alert-dialog-portal",...e});Ya.displayName=de.Portal.displayName;var Ka=Lo.forwardRef(({className:e,...t},o)=>ut(de.Overlay,{ref:o,"data-slot":"alert-dialog-overlay",className:i("fixed inset-0 z-50 bg-black/40 backdrop-blur-xs duration-100 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",e),...t}));Ka.displayName=de.Overlay.displayName;var As=Lo.forwardRef(({className:e,size:t="default",...o},r)=>em(Ya,{children:[ut(Ka,{}),ut(de.Content,{ref:r,"data-slot":"alert-dialog-content","data-size":t,className:i("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-foreground ring-1 ring-foreground/10 shadow-lg duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...o})]}));As.displayName=de.Content.displayName;var Fs=({className:e,...t})=>ut("div",{"data-slot":"alert-dialog-header",className:i("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-cols-[auto_1fr]",e),...t});Fs.displayName="AlertDialogHeader";var Hs=({className:e,...t})=>ut("div",{"data-slot":"alert-dialog-footer",className:i("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...t});Hs.displayName="AlertDialogFooter";var $s=({className:e,...t})=>ut("div",{"data-slot":"alert-dialog-media",className:i("mb-2 inline-flex size-10 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6",e),...t});$s.displayName="AlertDialogMedia";var Os=Lo.forwardRef(({className:e,...t},o)=>ut(de.Title,{ref:o,"data-slot":"alert-dialog-title",className:i("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...t}));Os.displayName=de.Title.displayName;var Bs=Lo.forwardRef(({className:e,...t},o)=>ut(de.Description,{ref:o,"data-slot":"alert-dialog-description",className:i("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t}));Bs.displayName=de.Description.displayName;var Gs=Lo.forwardRef(({className:e,variant:t="default",size:o="default",color:r="default",...n},a)=>ut(de.Action,{ref:a,"data-slot":"alert-dialog-action",className:i(Ct({variant:t,size:o,color:r}),e),...n}));Gs.displayName=de.Action.displayName;var Ws=Lo.forwardRef(({className:e,variant:t="outline",size:o="default",color:r="default",...n},a)=>ut(de.Cancel,{ref:a,"data-slot":"alert-dialog-cancel",className:i(Ct({variant:t,size:o,color:r}),e),...n}));Ws.displayName=de.Cancel.displayName;import*as $r from"react";import{jsx as Mn}from"react/jsx-runtime";var Us=$("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"border-destructive/30 bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current",danger:"border-destructive/30 bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current",primary:"border-primary/30 bg-primary/5 text-primary *:data-[slot=alert-description]:text-primary/90 *:[svg]:text-current",secondary:"border-secondary bg-secondary/50 text-secondary-foreground *:data-[slot=alert-description]:text-secondary-foreground/90",success:"border-emerald-500/30 bg-emerald-500/5 text-emerald-600 dark:text-emerald-400 *:data-[slot=alert-description]:text-emerald-600/90 dark:*:data-[slot=alert-description]:text-emerald-400/90 *:[svg]:text-current",warning:"border-amber-500/30 bg-amber-500/5 text-amber-600 dark:text-amber-400 *:data-[slot=alert-description]:text-amber-600/90 dark:*:data-[slot=alert-description]:text-amber-400/90 *:[svg]:text-current",info:"border-sky-500/30 bg-sky-500/5 text-sky-600 dark:text-sky-400 *:data-[slot=alert-description]:text-sky-600/90 dark:*:data-[slot=alert-description]:text-sky-400/90 *:[svg]:text-current","primary-light":"border-primary/30 bg-primary/10 text-primary *:[svg]:text-current","secondary-light":"border-secondary bg-secondary/40 text-secondary-foreground","success-light":"border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400","warning-light":"border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400","danger-light":"border-destructive/30 bg-destructive/10 text-destructive"}},defaultVariants:{variant:"default"}}),js=$r.forwardRef(({className:e,variant:t,...o},r)=>Mn("div",{ref:r,"data-slot":"alert",role:"alert",className:i(Us({variant:t}),e),...o}));js.displayName="Alert";var qs=$r.forwardRef(({className:e,...t},o)=>Mn("div",{ref:o,"data-slot":"alert-title",className:i("font-heading font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...t}));qs.displayName="AlertTitle";var Ys=$r.forwardRef(({className:e,...t},o)=>Mn("div",{ref:o,"data-slot":"alert-description",className:i("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...t}));Ys.displayName="AlertDescription";var Ks=$r.forwardRef(({className:e,...t},o)=>Mn("div",{ref:o,"data-slot":"alert-action",className:i("absolute top-2 right-2",e),...t}));Ks.displayName="AlertAction";import*as Xs from"@radix-ui/react-aspect-ratio";var tm=Xs.Root;import{Slot as Xa}from"@radix-ui/react-slot";import{jsx as At}from"react/jsx-runtime";function om({className:e,...t}){return At("div",{"data-slot":"attachment-group",className:i("group/attachment-group flex flex-wrap gap-2 data-[orientation=vertical]:flex-col",e),...t})}var Js=$("group/attachment relative flex items-center gap-2.5 overflow-hidden rounded-lg border text-sm transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",{variants:{variant:{default:"border-border bg-background hover:bg-muted/50",outline:"border-input bg-transparent hover:bg-accent/50",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"border-transparent bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"p-2.5",sm:"gap-2 px-2 py-1.5 text-xs",lg:"gap-3 p-3"}},defaultVariants:{variant:"default",size:"default"}});function rm({className:e,variant:t="default",size:o="default",asChild:r=!1,...n}){return At(r?Xa:"div",{"data-slot":"attachment","data-variant":t,"data-size":o,className:i(Js({variant:t,size:o,className:e})),...n})}var Qs=$("flex shrink-0 items-center justify-center overflow-hidden rounded-md [&_svg]:pointer-events-none",{variants:{variant:{default:"size-10 bg-muted text-muted-foreground [&_svg:not([class*='size-'])]:size-5",icon:"size-8 bg-muted text-muted-foreground [&_svg:not([class*='size-'])]:size-4",preview:"size-10 bg-muted [&_img]:size-full [&_img]:object-cover",lg:"size-12 bg-muted text-muted-foreground [&_img]:size-full [&_img]:object-cover [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function nm({className:e,variant:t="default",...o}){return At("div",{"data-slot":"attachment-media","data-variant":t,className:i(Qs({variant:t,className:e})),...o})}function am({className:e,...t}){return At("div",{"data-slot":"attachment-content",className:i("flex min-w-0 flex-1 flex-col gap-0.5",e),...t})}function im({className:e,...t}){return At("div",{"data-slot":"attachment-title",className:i("truncate font-medium leading-snug",e),...t})}function sm({className:e,...t}){return At("div",{"data-slot":"attachment-description",className:i("truncate text-xs text-muted-foreground",e),...t})}function lm({className:e,...t}){return At("div",{"data-slot":"attachment-actions",className:i("flex shrink-0 items-center gap-1",e),...t})}function dm({className:e,asChild:t=!1,...o}){return At(t?Xa:"button",{"data-slot":"attachment-action",type:"button",className:i("inline-flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",e),...o})}function um({className:e,asChild:t=!1,...o}){return At(t?Xa:"button",{"data-slot":"attachment-trigger",type:"button",className:i("inline-flex items-center justify-center gap-1.5 rounded-lg border border-dashed border-input bg-transparent px-3 py-2 text-sm font-medium text-muted-foreground transition-colors outline-none hover:border-ring hover:bg-accent/50 hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",e),...o})}import*as Tn from"react";import*as Ft from"@radix-ui/react-avatar";import{jsx as ir}from"react/jsx-runtime";var Zs=Tn.forwardRef(({className:e,size:t="default",...o},r)=>ir(Ft.Root,{ref:r,"data-slot":"avatar","data-size":t,className:i("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),...o}));Zs.displayName=Ft.Root.displayName;var el=Tn.forwardRef(({className:e,...t},o)=>ir(Ft.Image,{ref:o,"data-slot":"avatar-image",className:i("aspect-square size-full rounded-full object-cover",e),...t}));el.displayName=Ft.Image.displayName;var tl=Tn.forwardRef(({className:e,...t},o)=>ir(Ft.Fallback,{ref:o,"data-slot":"avatar-fallback",className:i("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...t}));tl.displayName=Ft.Fallback.displayName;function cm({className:e,...t}){return ir("span",{"data-slot":"avatar-badge",className:i("absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none","group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden","group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2","group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2",e),...t})}function pm({className:e,...t}){return ir("div",{"data-slot":"avatar-group",className:i("group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background",e),...t})}function mm({className:e,...t}){return ir("div",{"data-slot":"avatar-group-count",className:i("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3",e),...t})}import*as ol from"react";import{Slot as fm}from"@radix-ui/react-slot";import{jsx as gm}from"react/jsx-runtime";var rl=$("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",fill:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline",success:"bg-emerald-500/10 text-emerald-600 focus-visible:ring-emerald-500/20 dark:bg-emerald-500/20 dark:text-emerald-400 dark:focus-visible:ring-emerald-500/40 [a]:hover:bg-emerald-500/20",warning:"bg-amber-500/10 text-amber-600 focus-visible:ring-amber-500/20 dark:bg-amber-500/20 dark:text-amber-400 dark:focus-visible:ring-amber-500/40 [a]:hover:bg-amber-500/20",info:"bg-sky-500/10 text-sky-600 focus-visible:ring-sky-500/20 dark:bg-sky-500/20 dark:text-sky-400 dark:focus-visible:ring-sky-500/40 [a]:hover:bg-sky-500/20"},color:{default:"",dark:"bg-foreground text-background",light:"bg-muted text-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-emerald-500/10 text-emerald-600 dark:bg-emerald-500/20 dark:text-emerald-400",info:"bg-sky-500/10 text-sky-600 dark:bg-sky-500/20 dark:text-sky-400",warning:"bg-amber-500/10 text-amber-600 dark:bg-amber-500/20 dark:text-amber-400",danger:"bg-destructive/10 text-destructive dark:bg-destructive/20","primary-light":"bg-primary/10 text-primary dark:bg-primary/20","secondary-light":"bg-secondary text-secondary-foreground","success-light":"bg-emerald-500/10 text-emerald-600 dark:bg-emerald-500/20 dark:text-emerald-400","info-light":"bg-sky-500/10 text-sky-600 dark:bg-sky-500/20 dark:text-sky-400","warning-light":"bg-amber-500/10 text-amber-600 dark:bg-amber-500/20 dark:text-amber-400","danger-light":"bg-destructive/10 text-destructive dark:bg-destructive/20"}},defaultVariants:{variant:"default",color:"default"}}),Dn=ol.forwardRef(({className:e,variant:t="default",color:o="default",asChild:r=!1,...n},a)=>gm(r?fm:"span",{ref:a,"data-slot":"badge","data-variant":t,className:i(rl({variant:t,color:o}),e),...n}));Dn.displayName="Badge";import{Slot as vm}from"@radix-ui/react-slot";import{jsx as En}from"react/jsx-runtime";function bm({className:e,...t}){return En("div",{"data-slot":"bubble-group",className:i("group/bubble-group flex flex-col gap-0.5 [&>[data-slot=bubble]:first-child_[data-slot=bubble-content]]:rounded-t-2xl [&>[data-slot=bubble]:last-child_[data-slot=bubble-content]]:rounded-b-2xl",e),...t})}var nl=$("group/bubble relative flex flex-col",{variants:{align:{start:"items-start",end:"items-end"}},defaultVariants:{align:"start"}});function xm({className:e,align:t="start",...o}){return En("div",{"data-slot":"bubble","data-align":t,className:i(nl({align:t,className:e})),...o})}var al=$("relative max-w-full rounded-2xl px-3.5 py-2 text-sm leading-relaxed break-words transition-colors",{variants:{variant:{default:"bg-muted text-foreground",primary:"bg-primary text-primary-foreground",outline:"border border-border bg-background text-foreground",ghost:"bg-transparent px-0 py-0 text-foreground"},shape:{default:"",start:"rounded-bl-md group-data-[align=end]/bubble:rounded-bl-2xl group-data-[align=end]/bubble:rounded-br-md",middle:"rounded-l-md group-data-[align=end]/bubble:rounded-l-2xl group-data-[align=end]/bubble:rounded-r-md",end:"rounded-tl-md group-data-[align=end]/bubble:rounded-tl-2xl group-data-[align=end]/bubble:rounded-tr-md"}},defaultVariants:{variant:"default",shape:"default"}});function hm({className:e,variant:t="default",shape:o="default",asChild:r=!1,...n}){return En(r?vm:"div",{"data-slot":"bubble-content","data-variant":t,"data-shape":o,className:i(al({variant:t,shape:o,className:e})),...n})}var il=$("mt-1 flex flex-wrap items-center gap-1",{variants:{align:{start:"justify-start",end:"justify-end"}},defaultVariants:{align:"start"}});function Rm({className:e,align:t="start",...o}){return En("div",{"data-slot":"bubble-reactions",className:i(il({align:t,className:e})),...o})}import{Icon as ym}from"@iconify/react";import{jsx as Or,jsxs as wm}from"react/jsx-runtime";function Cm({selectedCount:e,onClear:t,children:o,selectedLabel:r=a=>`${a} selected`,className:n}){return e===0?null:wm("div",{"data-slot":"bulk-actions-bar",className:i("flex items-center gap-2 rounded-lg border bg-muted/60 px-3 py-1.5 text-sm animate-in fade-in-0 slide-in-from-top-1 duration-150",n),children:[Or("span",{className:"font-medium text-foreground whitespace-nowrap",children:r(e)}),Or(I,{variant:"ghost",size:"icon-xs",onClick:t,className:"text-muted-foreground hover:text-foreground",children:Or(ym,{icon:"lucide:x",className:"size-3.5"})}),Or("div",{className:"mx-1 h-4 w-px bg-border"}),Or("div",{className:"flex items-center gap-1.5",children:o})]})}import*as dl from"react";import{Slot as Im}from"@radix-ui/react-slot";var Ja=(e,t,o)=>{let r=[];for(let n=e;n<=t;n+=o)r.push(n);return r};import sl from"react";function Pm(e){let t=sl.useRef(null);return sl.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}import*as kn from"react";function _o(e){let[t,o]=kn.useState(!1);return kn.useEffect(()=>{function r(a){o(a.matches)}let n=matchMedia(e);return n.addEventListener("change",r),o(n.matches),()=>n.removeEventListener("change",r)},[e]),t}import Sm from"react";var Nm=(e,t,o)=>{Sm.useEffect(()=>{let r=setTimeout(()=>{e.apply(void 0,o)},t);return()=>{clearTimeout(r)}},o)};import Mm from"react";var Tm=(e,t,o)=>{Mm.useEffect(()=>{let r=setTimeout(()=>{e()},t);return()=>{clearTimeout(r)}},o)};import Dm from"react";var Em=(e,t,o)=>{Dm.useEffect(()=>{let r=setInterval(()=>{e()},t);return()=>{clearInterval(r)}},o)};var Br=$("",{variants:{color:{default:"bg-primary",dark:"bg-foreground",light:"bg-muted",primary:"bg-primary",secondary:"bg-secondary",success:"bg-emerald-600 dark:bg-emerald-500",info:"bg-sky-600 dark:bg-sky-500",warning:"bg-amber-500",danger:"bg-destructive","primary-light":"bg-primary/20","secondary-light":"bg-secondary/60","success-light":"bg-emerald-500/20","info-light":"bg-sky-500/20","warning-light":"bg-amber-500/20","danger-light":"bg-destructive/20"}},defaultVariants:{color:"default"}});import*as In from"react";var Qa=768;function Za(){let[e,t]=In.useState(void 0);return In.useEffect(()=>{let o=window.matchMedia(`(max-width: ${Qa-1}px)`),r=()=>{t(window.innerWidth<Qa)};return o.addEventListener("change",r),t(window.innerWidth<Qa),()=>o.removeEventListener("change",r)},[]),!!e}import*as ll from"react";import*as ei from"@radix-ui/react-separator";import{jsx as km}from"react/jsx-runtime";var wt=ll.forwardRef(({className:e,orientation:t="horizontal",decorative:o=!0,...r},n)=>km(ei.Root,{ref:n,"data-slot":"separator",decorative:o,orientation:t,className:i("shrink-0 bg-border",t==="horizontal"?"h-px w-full":"h-full w-px self-stretch",e),...r}));wt.displayName=ei.Root.displayName;import{jsx as oi}from"react/jsx-runtime";var ul=$("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}}),ti=dl.forwardRef(({className:e,orientation:t="horizontal",...o},r)=>oi("div",{ref:r,role:"group","data-slot":"button-group","data-orientation":t,className:i(ul({orientation:t}),e),...o}));ti.displayName="ButtonGroup";function zm({className:e,asChild:t=!1,...o}){return oi(t?Im:"div",{className:i("bg-muted shadow-xs flex items-center gap-2 rounded-lg border px-3 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",e),...o})}function Lm({className:e,orientation:t="vertical",...o}){return oi(wt,{"data-slot":"button-group-separator",orientation:t,className:i("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",e),...o})}import*as sr from"react";import{Slot as _m}from"@radix-ui/react-slot";import{Icon as cl}from"@iconify/react";import{jsx as Ht,jsxs as Vm}from"react/jsx-runtime";var pl=sr.forwardRef(({...e},t)=>Ht("nav",{ref:t,"aria-label":"breadcrumb","data-slot":"breadcrumb",...e}));pl.displayName="Breadcrumb";var ml=sr.forwardRef(({className:e,...t},o)=>Ht("ol",{ref:o,"data-slot":"breadcrumb-list",className:i("flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground",e),...t}));ml.displayName="BreadcrumbList";var fl=sr.forwardRef(({className:e,...t},o)=>Ht("li",{ref:o,"data-slot":"breadcrumb-item",className:i("inline-flex items-center gap-1",e),...t}));fl.displayName="BreadcrumbItem";var gl=sr.forwardRef(({asChild:e,className:t,...o},r)=>Ht(e?_m:"a",{ref:r,"data-slot":"breadcrumb-link",className:i("transition-colors hover:text-foreground",t),...o}));gl.displayName="BreadcrumbLink";var vl=sr.forwardRef(({className:e,...t},o)=>Ht("span",{ref:o,"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:i("font-normal text-foreground",e),...t}));vl.displayName="BreadcrumbPage";var bl=({children:e,className:t,...o})=>Ht("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i("[&>svg]:size-3.5",t),...o,children:e??Ht(cl,{icon:"lucide:chevron-right"})});bl.displayName="BreadcrumbSeparator";var xl=({className:e,...t})=>Vm("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:i("flex size-5 items-center justify-center [&>svg]:size-4",e),...t,children:[Ht(cl,{icon:"lucide:more-horizontal",className:"size-4"}),Ht("span",{className:"sr-only",children:"More"})]});xl.displayName="BreadcrumbEllipsis";import{DayPicker as Am}from"react-day-picker";import{Icon as hl}from"@iconify/react";import{jsx as ri}from"react/jsx-runtime";var no=({className:e,classNames:t,showOutsideDays:o=!0,...r})=>ri(Am,{showOutsideDays:o,"data-slot":"calendar",className:i("bg-background p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium text-foreground",nav:"space-x-1 flex items-center",nav_button:i(Ct({variant:"outline",size:"icon-sm"}),"size-7 bg-transparent p-0 opacity-60 hover:opacity-100 static"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:i("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-muted",r.mode==="range"?["[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md","first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md"]:"[&:has([aria-selected])]:rounded-md"),day:i(Ct({variant:"ghost",size:"icon-sm"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-muted text-foreground font-medium",day_outside:"text-muted-foreground opacity-50",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-muted aria-selected:text-foreground",day_hidden:"invisible",...t},components:{IconLeft:()=>ri(hl,{icon:"lucide:chevron-left",className:"size-4"}),IconRight:()=>ri(hl,{icon:"lucide:chevron-right",className:"size-4"})},...r});no.displayName="Calendar";import*as nt from"react";import*as dr from"recharts";import{Fragment as Om,jsx as Ve,jsxs as lr}from"react/jsx-runtime";var Fm={light:"",dark:".dark"},Rl=nt.createContext(null);function yl(){let e=nt.useContext(Rl);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}var Cl=nt.forwardRef(({id:e,className:t,children:o,config:r,...n},a)=>{let s=nt.useId(),l=`chart-${e||s.replace(/:/g,"")}`;return Ve(Rl.Provider,{value:{config:r},children:lr("div",{"data-chart":l,ref:a,className:i("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...n,children:[Ve(wl,{id:l,config:r}),Ve(dr.ResponsiveContainer,{children:o})]})})});Cl.displayName="Chart";var wl=({id:e,config:t})=>{let o=Object.entries(t).filter(([,r])=>r.theme||r.color);return o.length?Ve("style",{dangerouslySetInnerHTML:{__html:Object.entries(Fm).map(([r,n])=>`
3
+ ${n} [data-chart=${e}] {
4
+ ${o.map(([a,s])=>{let l=s.theme?.[r]||s.color;return l?` --color-${a}: ${l};`:null}).join(`
5
+ `)}
6
+ }
7
+ `).join(`
8
+ `)}}):null},Hm=dr.Tooltip,Pl=nt.forwardRef(({active:e,payload:t,className:o,indicator:r="dot",hideLabel:n=!1,hideIndicator:a=!1,label:s,labelFormatter:l,labelClassName:d,formatter:c,color:m,nameKey:f,labelKey:p},u)=>{let{config:g}=yl(),v=nt.useMemo(()=>{if(n||!t?.length)return null;let[b]=t,R=`${p||b?.dataKey||b?.name||"value"}`,y=ni(g,b,R),x=!p&&typeof s=="string"?g[s]?.label||s:y?.label;return l?Ve("div",{className:i("font-medium",d),children:l(x,t)}):x?Ve("div",{className:i("font-medium",d),children:x}):null},[s,l,t,n,d,g,p]);if(!e||!t?.length)return null;let h=t.length===1&&r!=="dot";return lr("div",{ref:u,className:i("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",o),children:[h?null:v,Ve("div",{className:"grid gap-1.5",children:t.filter(b=>b.type!=="none").map((b,R)=>{let y=`${f||b.name||b.dataKey||"value"}`,x=ni(g,b,y),P=m||b.payload.fill||b.color;return Ve("div",{className:i("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",r==="dot"&&"items-center"),children:c&&b?.value!==void 0&&b.name?c(b.value,b.name,b,R,b.payload):lr(Om,{children:[x?.icon?Ve(x.icon,{}):!a&&Ve("div",{className:i("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":h&&r==="dashed"}),style:{"--color-bg":P,"--color-border":P}}),lr("div",{className:i("flex flex-1 justify-between leading-none",h?"items-end":"items-center"),children:[lr("div",{className:"grid gap-1.5",children:[h?v:null,Ve("span",{className:"text-muted-foreground",children:x?.label||b.name})]}),b.value&&Ve("span",{className:"font-mono font-medium tabular-nums text-foreground",children:b.value.toLocaleString()})]})]})},b.dataKey)})})]})});Pl.displayName="ChartTooltip";var $m=dr.Legend,Sl=nt.forwardRef(({className:e,hideIcon:t=!1,payload:o,verticalAlign:r="bottom",nameKey:n},a)=>{let{config:s}=yl();return o?.length?Ve("div",{ref:a,className:i("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:o.filter(l=>l.type!=="none").map(l=>{let d=`${n||l.dataKey||"value"}`,c=ni(s,l,d);return lr("div",{className:i("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[c?.icon&&!t?Ve(c.icon,{}):Ve("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:l.color}}),c?.label]},l.value)})}):null});Sl.displayName="ChartLegend";function ni(e,t,o){if(typeof t!="object"||t===null)return;let r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0,n=o;return o in t&&typeof t[o]=="string"?n=t[o]:r&&o in r&&typeof r[o]=="string"&&(n=r[o]),n in e?e[n]:e[o]}import*as ao from"react";import{jsx as Vo}from"react/jsx-runtime";var Nl=ao.forwardRef(({className:e,size:t="default",...o},r)=>Vo("div",{ref:r,"data-slot":"card","data-size":t,className:i("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...o}));Nl.displayName="Card";var Ml=ao.forwardRef(({className:e,...t},o)=>Vo("div",{ref:o,"data-slot":"card-header",className:i("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...t}));Ml.displayName="CardHeader";var Tl=ao.forwardRef(({className:e,...t},o)=>Vo("div",{ref:o,"data-slot":"card-title",className:i("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...t}));Tl.displayName="CardTitle";var Dl=ao.forwardRef(({className:e,...t},o)=>Vo("div",{ref:o,"data-slot":"card-description",className:i("text-sm text-muted-foreground",e),...t}));Dl.displayName="CardDescription";var El=ao.forwardRef(({className:e,...t},o)=>Vo("div",{ref:o,"data-slot":"card-action",className:i("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t}));El.displayName="CardAction";var kl=ao.forwardRef(({className:e,...t},o)=>Vo("div",{ref:o,"data-slot":"card-content",className:i("px-4 group-data-[size=sm]/card:px-3",e),...t}));kl.displayName="CardContent";var Il=ao.forwardRef(({className:e,...t},o)=>Vo("div",{ref:o,"data-slot":"card-footer",className:i("flex items-center rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/card:p-3",e),...t}));Il.displayName="CardFooter";import*as te from"react";import Bm from"embla-carousel-react";import{Icon as zl}from"@iconify/react";import{jsx as Ae,jsxs as Ul}from"react/jsx-runtime";var Ll=te.createContext(null);function Ao(){let e=te.useContext(Ll);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var _l=te.forwardRef(({orientation:e="horizontal",opts:t,setApi:o,plugins:r,className:n,children:a,...s},l)=>{let[d,c]=Bm({...t,axis:e==="horizontal"?"x":"y"},r),[m,f]=te.useState(!1),[p,u]=te.useState(!1),g=te.useCallback(R=>{R&&(f(R.canScrollPrev()),u(R.canScrollNext()))},[]),v=te.useCallback(()=>{c?.scrollPrev()},[c]),h=te.useCallback(()=>{c?.scrollNext()},[c]),b=te.useCallback(R=>{R.key==="ArrowLeft"?(R.preventDefault(),v()):R.key==="ArrowRight"&&(R.preventDefault(),h())},[v,h]);return te.useEffect(()=>{!c||!o||o(c)},[c,o]),te.useEffect(()=>{if(c)return g(c),c.on("reInit",g),c.on("select",g),()=>{c?.off("select",g)}},[c,g]),Ae(Ll.Provider,{value:{carouselRef:d,api:c,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:h,canScrollPrev:m,canScrollNext:p},children:Ae("div",{ref:l,"data-slot":"carousel",onKeyDownCapture:b,className:i("relative",n),role:"region","aria-roledescription":"carousel",...s,children:a})})});_l.displayName="Carousel";var Vl=te.forwardRef(({className:e,...t},o)=>{let{carouselRef:r,orientation:n}=Ao();return Ae("div",{ref:r,"data-slot":"carousel-content",className:"overflow-hidden",children:Ae("div",{ref:o,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Vl.displayName="CarouselContent";var Al=te.forwardRef(({className:e,...t},o)=>{let{orientation:r}=Ao();return Ae("div",{ref:o,"data-slot":"carousel-item",role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});Al.displayName="CarouselItem";var Fl=te.forwardRef(({className:e,position:t,variant:o="outline",size:r="icon",...n},a)=>{let{orientation:s,scrollPrev:l,canScrollPrev:d}=Ao();return Ul(I,{ref:a,"data-slot":"carousel-previous",variant:o,size:r,className:i("size-8 rounded-full",s==="horizontal"&&!t?"absolute -left-12 top-1/2 -translate-y-1/2":s==="vertical"&&!t?"absolute -top-12 left-1/2 -translate-x-1/2 rotate-90":t,e),type:"button",disabled:!d,onClick:l,...n,children:[Ae(zl,{icon:"lucide:chevron-left",className:"size-4"}),Ae("span",{className:"sr-only",children:"Previous slide"})]})});Fl.displayName="CarouselPrevious";var Hl=te.forwardRef(({className:e,position:t,variant:o="outline",size:r="icon",...n},a)=>{let{orientation:s,scrollNext:l,canScrollNext:d}=Ao();return Ul(I,{ref:a,"data-slot":"carousel-next",variant:o,size:r,className:i("size-8 rounded-full",s==="horizontal"&&!t?"absolute -right-12 top-1/2 -translate-y-1/2":s==="vertical"&&!t?"absolute -bottom-12 left-1/2 -translate-x-1/2 rotate-90":t,e),type:"button",disabled:!d,onClick:l,...n,children:[Ae(zl,{icon:"lucide:chevron-right",className:"size-4"}),Ae("span",{className:"sr-only",children:"Next slide"})]})});Hl.displayName="CarouselNext";var $l=te.forwardRef(({children:e,className:t,...o},r)=>Ae("div",{ref:r,className:i("grid grid-flow-col auto-cols-max justify-between gap-5 mt-6",t),...o,children:e}));$l.displayName="CarouselControl";var Ol=te.forwardRef(({children:e,className:t,...o},r)=>Ae("div",{ref:r,className:i("grid grid-cols-2 justify-between gap-2 items-center",t),...o,children:e}));Ol.displayName="CarouselButton";var Bl=te.forwardRef(({children:e,className:t,...o},r)=>Ae("div",{ref:r,className:i("flex flex-wrap justify-end items-center gap-2",t),...o,children:e}));Bl.displayName="CarouselSelect";var Gl=te.forwardRef(({className:e,index:t,children:o,...r},n)=>{let{api:a}=Ao(),[s,l]=te.useState(!1),d=te.useCallback(()=>{a&&a.scrollTo(t)},[a,t]);return te.useEffect(()=>{if(!a)return;let c=()=>{l(a.selectedScrollSnap()===t)};return a.on("select",c),c(),()=>{a.off("select",c)}},[a,t]),Ae("button",{ref:n,type:"button",className:i("size-2.5 cursor-pointer rounded-full transition-all",s?"w-5 bg-primary":"bg-muted-foreground/30 hover:bg-muted-foreground/50",e),onClick:d,...r})});Gl.displayName="DotButton";var Wl=te.forwardRef(({className:e,classNameDot:t,...o},r)=>{let{api:n}=Ao(),[a,s]=te.useState([]);return te.useEffect(()=>{if(!n)return;s(n.scrollSnapList());let l=()=>{s(n.scrollSnapList())};return n.on("reInit",l),()=>{n.off("reInit",l)}},[n]),Ae("div",{ref:r,className:i("flex justify-center items-center gap-1.5 mt-4",e),...o,children:a.map((l,d)=>Ae(Gl,{className:t,index:d},d))})});Wl.displayName="CarouselDots";import*as jl from"react";import*as Gr from"@radix-ui/react-checkbox";import{Icon as Gm}from"@iconify/react";import{jsx as ai}from"react/jsx-runtime";var Wr=jl.forwardRef(({className:e,...t},o)=>ai(Gr.Root,{ref:o,"data-slot":"checkbox",className:i("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary",e),...t,children:ai(Gr.Indicator,{"data-slot":"checkbox-indicator",className:i("grid place-content-center text-current transition-none [&>svg]:size-3.5"),children:ai(Gm,{icon:"lucide:check",className:"size-3.5"})})}));Wr.displayName=Gr.Root.displayName;import*as ur from"@radix-ui/react-collapsible";var Wm=ur.Root,Um=ur.CollapsibleTrigger,jm=ur.CollapsibleContent;import*as lo from"react";import{Command as Oe}from"cmdk";import{Icon as Xm}from"@iconify/react";import*as Ur from"react";import*as pe from"@radix-ui/react-dialog";import{Icon as qm}from"@iconify/react";import{jsx as at,jsxs as zn}from"react/jsx-runtime";var io=pe.Root,Ym=pe.Trigger,ii=pe.Close,si=({...e})=>at(pe.Portal,{"data-slot":"dialog-portal",...e});si.displayName=pe.Portal.displayName;var li=Ur.forwardRef(({className:e,variant:t="default",...o},r)=>at(pe.Overlay,{ref:r,"data-slot":"dialog-overlay","data-variant":t,className:i("fixed inset-0 isolate z-50 duration-100 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",t==="glass"?"bg-slate-900/10 dark:bg-slate-950/35":"bg-black/40 backdrop-blur-xs",e),...o}));li.displayName=pe.Overlay.displayName;var Km=`
9
+ [data-slot="dialog-overlay"][data-variant="glass"] {
10
+ background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.04) 0%, rgba(15, 23, 42, 0.12) 100%);
11
+ backdrop-filter: none;
12
+ -webkit-backdrop-filter: none;
13
+ }
14
+ .dark [data-slot="dialog-overlay"][data-variant="glass"] {
15
+ background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.06) 0%, rgba(2, 6, 23, 0.42) 100%);
16
+ }
17
+ [data-slot="dialog-content"][data-variant="glass"] {
18
+ background:
19
+ linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.18) 38%, rgba(186, 230, 253, 0.24) 72%, rgba(224, 231, 255, 0.46) 100%),
20
+ radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.72) 0%, transparent 55%),
21
+ radial-gradient(120% 100% at 100% 100%, rgba(56, 189, 248, 0.22) 0%, transparent 55%);
22
+ backdrop-filter: blur(12px) saturate(220%) brightness(1.15);
23
+ -webkit-backdrop-filter: blur(12px) saturate(220%) brightness(1.15);
24
+ border: 1px solid rgba(255, 255, 255, 0.9);
25
+ box-shadow:
26
+ 0 25px 50px -12px rgba(14, 116, 144, 0.22),
27
+ 0 12px 24px -8px rgba(30, 58, 138, 0.14),
28
+ 0 0 0 1px rgba(186, 230, 253, 0.55),
29
+ inset 0 2px 3px 0 rgba(255, 255, 255, 0.95),
30
+ inset 2px 0 2px 0 rgba(255, 255, 255, 0.75),
31
+ inset 0 -2px 4px 0 rgba(56, 189, 248, 0.25);
32
+ }
33
+ .dark [data-slot="dialog-content"][data-variant="glass"] {
34
+ background:
35
+ linear-gradient(135deg, rgba(30, 41, 59, 0.56) 0%, rgba(15, 23, 42, 0.30) 45%, rgba(30, 58, 138, 0.36) 100%),
36
+ radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
37
+ radial-gradient(120% 100% at 100% 100%, rgba(56, 189, 248, 0.18) 0%, transparent 55%);
38
+ backdrop-filter: blur(12px) saturate(190%) brightness(1.1);
39
+ -webkit-backdrop-filter: blur(12px) saturate(190%) brightness(1.1);
40
+ border: 1px solid rgba(255, 255, 255, 0.24);
41
+ box-shadow:
42
+ 0 25px 50px -12px rgba(2, 6, 23, 0.65),
43
+ 0 0 0 1px rgba(56, 189, 248, 0.2),
44
+ inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.32),
45
+ inset 1px 0 1.5px 0 rgba(255, 255, 255, 0.18),
46
+ inset 0 -1.5px 3px 0 rgba(56, 189, 248, 0.2);
47
+ }
48
+ [data-slot="dialog-content"][data-variant="glass"] [data-slot="dialog-footer"] {
49
+ background: linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0%, rgba(224, 242, 254, 0.28) 100%);
50
+ border-top: 1px solid rgba(255, 255, 255, 0.55);
51
+ }
52
+ .dark [data-slot="dialog-content"][data-variant="glass"] [data-slot="dialog-footer"] {
53
+ background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(56, 189, 248, 0.08) 100%);
54
+ border-top: 1px solid rgba(255, 255, 255, 0.12);
55
+ }
56
+ `,ql=$("group/dialog fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 text-sm duration-100 outline-none will-change-transform [&.react-draggable-dragging]:!transition-none [&.react-draggable-dragging]:!duration-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]",{variants:{size:{default:"sm:max-w-sm",xs:"sm:max-w-xs",sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl","3xl":"sm:max-w-3xl","4xl":"sm:max-w-4xl","5xl":"sm:max-w-5xl","6xl":"sm:max-w-6xl",full:"sm:max-w-[calc(100vw-2rem)] sm:h-[calc(100vh-2rem)]"},variant:{default:"bg-background text-foreground ring-1 ring-foreground/10 shadow-lg",glass:"backdrop-blur-md text-foreground",destructive:"bg-background text-foreground ring-2 ring-destructive/50 shadow-lg shadow-destructive/10"}},defaultVariants:{size:"default",variant:"default"}}),$t=Ur.forwardRef(({size:e="default",variant:t="default",showCloseButton:o=!0,className:r,children:n,...a},s)=>zn(si,{children:[t==="glass"&&at("style",{dangerouslySetInnerHTML:{__html:Km}}),at(li,{variant:t}),zn(pe.Content,{ref:s,"data-slot":"dialog-content","data-size":e,"data-variant":t,className:i(ql({size:e,variant:t,className:r})),...a,children:[n,o&&at(pe.Close,{"data-slot":"dialog-close",asChild:!0,children:zn(I,{variant:"ghost",size:"icon-sm",className:"absolute top-2 right-2 focus-visible:ring-0 focus-visible:border-transparent hover:bg-black/5 dark:hover:bg-white/10",children:[at(qm,{icon:"lucide:x",className:"size-4"}),at("span",{className:"sr-only",children:"Close"})]})})]})]}));$t.displayName=pe.Content.displayName;var Ot=({className:e,...t})=>at("div",{"data-slot":"dialog-header",className:i("flex flex-col gap-2",e),...t});Ot.displayName="DialogHeader";var so=({className:e,showCloseButton:t=!1,children:o,...r})=>zn("div",{"data-slot":"dialog-footer",className:i("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 group-data-[variant=glass]/dialog:bg-white/30 dark:group-data-[variant=glass]/dialog:bg-white/5 group-data-[variant=glass]/dialog:border-white/30 dark:group-data-[variant=glass]/dialog:border-white/10 p-4 sm:flex-row sm:justify-end",e),...r,children:[o,t&&at(pe.Close,{asChild:!0,children:at(I,{variant:"outline",children:"Close"})})]});so.displayName="DialogFooter";var Bt=Ur.forwardRef(({className:e,...t},o)=>at(pe.Title,{ref:o,"data-slot":"dialog-title",className:i("font-heading text-base leading-none font-medium",e),...t}));Bt.displayName=pe.Title.displayName;var Gt=Ur.forwardRef(({className:e,...t},o)=>at(pe.Description,{ref:o,"data-slot":"dialog-description",className:i("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t}));Gt.displayName=pe.Description.displayName;import{jsx as Ye,jsxs as di}from"react/jsx-runtime";var Wt=lo.forwardRef(({className:e,...t},o)=>Ye(Oe,{ref:o,"data-slot":"command",className:i("flex size-full flex-col overflow-hidden rounded-xl bg-popover p-1 text-popover-foreground",e),...t}));Wt.displayName=Oe.displayName;var Yl=({title:e="Command Palette",description:t="Search for a command to run...",children:o,className:r,showCloseButton:n=!1,...a})=>di(io,{...a,children:[di(Ot,{className:"sr-only",children:[Ye(Bt,{children:e}),Ye(Gt,{children:t})]}),Ye($t,{className:i("overflow-hidden rounded-xl p-0",r),showCloseButton:n,children:Ye(Wt,{children:o})})]});Yl.displayName="CommandDialog";var uo=lo.forwardRef(({className:e,...t},o)=>di("div",{"data-slot":"command-input-wrapper",className:"flex items-center border-b px-2.5 py-1.5","cmdk-input-wrapper":"",children:[Ye(Xm,{icon:"lucide:search",className:"mr-2 size-4 shrink-0 opacity-50"}),Ye(Oe.Input,{ref:o,"data-slot":"command-input",className:i("flex h-8 w-full rounded-md bg-transparent py-1.5 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));uo.displayName=Oe.Input.displayName;var co=lo.forwardRef(({className:e,...t},o)=>Ye(Oe.List,{ref:o,"data-slot":"command-list",className:i("max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",e),...t}));co.displayName=Oe.List.displayName;var po=lo.forwardRef(({className:e,...t},o)=>Ye(Oe.Empty,{ref:o,"data-slot":"command-empty",className:i("py-6 text-center text-sm text-muted-foreground",e),...t}));po.displayName=Oe.Empty.displayName;var mo=lo.forwardRef(({className:e,...t},o)=>Ye(Oe.Group,{ref:o,"data-slot":"command-group",className:i("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));mo.displayName=Oe.Group.displayName;var Kl=lo.forwardRef(({className:e,...t},o)=>Ye(Oe.Separator,{ref:o,"data-slot":"command-separator",className:i("-mx-1 my-1 h-px bg-border",e),...t}));Kl.displayName=Oe.Separator.displayName;var Ut=lo.forwardRef(({className:e,...t},o)=>Ye(Oe.Item,{ref:o,"data-slot":"command-item",className:i("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none aria-selected:bg-muted aria-selected:text-foreground data-[selected=true]:bg-muted data-[selected=true]:text-foreground data-[disabled]:pointer-events-none data-[disabled=true]:pointer-events-none data-[disabled]:opacity-50 data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t}));Ut.displayName=Oe.Item.displayName;var Xl=({className:e,...t})=>Ye("span",{"data-slot":"command-shortcut",className:i("ml-auto text-xs tracking-widest text-muted-foreground group-data-[selected=true]/command-item:text-foreground",e),...t});Xl.displayName="CommandShortcut";import*as jt from"react";import*as G from"@radix-ui/react-context-menu";import{Icon as ui}from"@iconify/react";import{jsx as Be,jsxs as fi}from"react/jsx-runtime";var ci=G.Root,pi=G.Trigger,Jm=G.Group,Qm=G.Portal,mi=G.Sub,Zm=G.RadioGroup,Ln=jt.forwardRef(({className:e,inset:t,children:o,...r},n)=>fi(G.SubTrigger,{ref:n,"data-slot":"context-menu-sub-trigger","data-inset":t,className:i("flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t&&"pl-7",e),...r,children:[o,Be(ui,{icon:"lucide:chevron-right",className:"ml-auto size-4"})]}));Ln.displayName=G.SubTrigger.displayName;var _n=jt.forwardRef(({className:e,...t},o)=>Be(G.SubContent,{ref:o,"data-slot":"context-menu-sub-content",className:i("z-50 min-w-32 origin-[var(--radix-context-menu-content-transform-origin)] overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-lg duration-100 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...t}));_n.displayName=G.SubContent.displayName;var Vn=jt.forwardRef(({className:e,...t},o)=>Be(G.Portal,{children:Be(G.Content,{ref:o,"data-slot":"context-menu-content",className:i("z-50 max-h-[var(--radix-context-menu-content-available-height)] min-w-36 origin-[var(--radix-context-menu-content-transform-origin)] overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...t})}));Vn.displayName=G.Content.displayName;var An=jt.forwardRef(({className:e,inset:t,variant:o="default",...r},n)=>Be(G.Item,{ref:n,"data-slot":"context-menu-item","data-inset":t,"data-variant":o,className:i("group/context-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t&&"pl-7",e),...r}));An.displayName=G.Item.displayName;var Jl=jt.forwardRef(({className:e,children:t,checked:o,inset:r,...n},a)=>fi(G.CheckboxItem,{ref:a,"data-slot":"context-menu-checkbox-item","data-inset":r,className:i("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",r&&"pl-7",e),checked:o,...n,children:[Be("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center",children:Be(G.ItemIndicator,{children:Be(ui,{icon:"lucide:check",className:"size-4"})})}),t]}));Jl.displayName=G.CheckboxItem.displayName;var Ql=jt.forwardRef(({className:e,children:t,inset:o,...r},n)=>fi(G.RadioItem,{ref:n,"data-slot":"context-menu-radio-item","data-inset":o,className:i("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o&&"pl-7",e),...r,children:[Be("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center",children:Be(G.ItemIndicator,{children:Be(ui,{icon:"lucide:check",className:"size-4"})})}),t]}));Ql.displayName=G.RadioItem.displayName;var Zl=jt.forwardRef(({className:e,inset:t,...o},r)=>Be(G.Label,{ref:r,"data-slot":"context-menu-label","data-inset":t,className:i("px-1.5 py-1 text-xs font-medium text-muted-foreground",t&&"pl-7",e),...o}));Zl.displayName=G.Label.displayName;var Fn=jt.forwardRef(({className:e,...t},o)=>Be(G.Separator,{ref:o,"data-slot":"context-menu-separator",className:i("-mx-1 my-1 h-px bg-border",e),...t}));Fn.displayName=G.Separator.displayName;var Hn=({className:e,...t})=>Be("span",{"data-slot":"context-menu-shortcut",className:i("ml-auto text-xs tracking-widest text-muted-foreground group-focus/context-menu-item:text-accent-foreground",e),...t});Hn.displayName="ContextMenuShortcut";import gi from"react";import{Slot as ef}from"@radix-ui/react-slot";import{jsx as ct,jsxs as $n}from"react/jsx-runtime";var vi=e=>ct(gi.Fragment,{children:e.map((t,o)=>{if(t.separator)return ct(Fn,{},o);let r=t.child??t.sub,n=t.label??t.title,a=t.onClick??t.action;return ct(gi.Fragment,{children:r?.length?$n(mi,{children:[$n(Ln,{disabled:t.disabled,children:[t.icon,ct("span",{children:n})]}),ct(_n,{className:"min-w-44",children:vi(r)})]}):$n(An,{variant:t.variant,onClick:()=>a?.(),disabled:t.disabled,children:[t.icon,ct("span",{children:n}),t.shortcut?ct(Hn,{children:t.shortcut}):null]})},o)})}),ed=gi.forwardRef(({asChild:e,title:t,children:o,list:r=[],className:n,contentClassName:a,...s},l)=>$n(ci,{children:[ct(pi,{asChild:e,ref:l,children:e?ct(ef,{className:n,...s,children:o??t}):ct(I,{variant:"ghost",className:i(n),...s,children:o??t})}),ct(Vn,{className:i("min-w-44",a),children:vi(r)})]}));ed.displayName="ContextMenuCustom";import On from"react";import{jsx as pt,jsxs as Bn}from"react/jsx-runtime";var td=({className:e,width:t=64,height:o=64,value:r,maxValue:n=360,meterColor:a="hsl(var(--primary))",meterWidth:s=5,textColor:l="currentColor",pointerColor:d="hsl(var(--primary))",pointerRadius:c=10,onValueChange:m,padding:f=6})=>{let p=On.useRef(null),[u,g]=On.useState(!1),h=`circular-slider-gradient-${On.useId().replace(/:/g,"")}`,b=Math.min(t,o)-2*f,R=b/2,y=b/2,x=b/2*.85,P=C=>{let S=(C-270)*Math.PI/180,A=R+x*Math.cos(S),B=y+x*Math.sin(S);return{x:A,y:B}},L=(C,S)=>Math.round(Math.atan((S-y)/(C-R))/(Math.PI/180)+(C>R?270:90));On.useEffect(()=>{if(!u)return;let C=A=>{let B=p.current?.getBoundingClientRect();if(B){let Z=A.clientX-B.left-f,me=A.clientY-B.top-f,Te=L(Z,me),Le=Math.round(Te/360*n);m(Math.max(0,Math.min(Le,n)))}},S=()=>g(!1);return document.addEventListener("mousemove",C),document.addEventListener("mouseup",S),()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",S)}},[u,n,f]);let D=P(0),U=P(Math.min(r,n)/n*360),w=()=>{if(typeof a=="string")return Bn("linearGradient",{id:h,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[pt("stop",{offset:"0%",stopColor:a}),pt("stop",{offset:"100%",stopColor:a})]});let{colors:C,stops:S}=a;return pt("linearGradient",{id:h,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:C.map((A,B)=>pt("stop",{offset:S?`${S[B]}%`:`${B/(C.length-1)*100}%`,stopColor:A},B))})};return pt("div",{"data-slot":"circular-slider",className:i("inline-block text-foreground",e),style:{width:`${t}px`,height:`${o}px`},children:Bn("svg",{ref:p,width:t,height:o,viewBox:`0 0 ${b+2*f} ${b+2*f}`,className:"touch-none select-none",children:[pt("defs",{children:w()}),Bn("g",{transform:`translate(${f}, ${f})`,children:[pt("circle",{cx:R,cy:y,r:x,strokeWidth:s,className:"fill-none stroke-muted"}),pt("path",{stroke:`url(#${h})`,strokeWidth:s,strokeLinecap:"round",fill:"none",d:`M${D.x} ${D.y} A ${x} ${x} 0 ${r>n/2?1:0} 1 ${U.x} ${U.y}`}),Bn("g",{transform:`translate(${U.x-c/2}, ${U.y-c/2})`,onMouseDown:()=>g(!0),children:[pt("circle",{cx:c/2,cy:c/2,r:c,fill:d,className:"cursor-pointer"}),pt("circle",{cx:c/2,cy:c/2,r:c*.72,className:"cursor-pointer fill-background"}),pt("text",{x:c/2,y:c/2,fontSize:c*.75,fill:l,textAnchor:"middle",dominantBaseline:"central",className:"pointer-events-none select-none font-medium",children:r})]})]})]})})};td.displayName="CircularSlider";import*as Gn from"react";import{jsx as rf}from"react/jsx-runtime";var od=Gn.createContext("ltr");function tf({dir:e,direction:t,children:o}){return rf(od.Provider,{value:t??e??"ltr",children:o})}function of(e){let t=Gn.useContext(od);return e||t}import*as Jr from"react";import*as De from"@radix-ui/react-dialog";import J from"react";import rd from"react";var bi=rd.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,handleOnly:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),jr=()=>{let e=rd.useContext(bi);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};import{useEffect as nd}from"react";var nf=typeof window<"u"?nd:nd;function Ri(...e){return(...t)=>{for(let o of e)typeof o=="function"&&o(...t)}}function af(){return Ci(/^Mac/)}function sf(){return Ci(/^iPhone/)}function lf(){return Ci(/^iPad/)||af()&&navigator.maxTouchPoints>1}function yi(){return sf()||lf()}function Ci(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var xi=typeof document<"u"&&window.visualViewport;function ad(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function sd(e){for(ad(e)&&(e=e.parentElement);e&&!ad(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var df=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Wn=0,hi;function ld(e={}){let{isDisabled:t}=e;nf(()=>{if(!t)return Wn++,Wn===1&&(yi()?hi=cf():hi=uf()),()=>{Wn--,Wn===0&&hi()}},[t])}function uf(){return Ri(dd(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function cf(){let e,t=0,o=f=>{e=sd(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let p=f.changedTouches[0].pageY,u=e.scrollTop,g=e.scrollHeight-e.clientHeight;g!==0&&((u<=0&&p>t||u>=g&&p<t)&&f.preventDefault(),t=p)},n=f=>{let p=f.target;Un(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Un(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",xi&&(xi.height<window.innerHeight?requestAnimationFrame(()=>{id(p)}):xi.addEventListener("resize",()=>id(p),{once:!0}))}))},s=()=>{window.scrollTo(0,0)},l=window.pageXOffset,d=window.pageYOffset,c=Ri(dd(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let m=Ri(qr(document,"touchstart",o,{passive:!1,capture:!0}),qr(document,"touchmove",r,{passive:!1,capture:!0}),qr(document,"touchend",n,{passive:!1,capture:!0}),qr(document,"focus",a,!0),qr(window,"scroll",s));return()=>{c(),m(),window.scrollTo(l,d)}}function dd(e,t,o){let r=e.style[t];return e.style[t]=o,()=>{e.style[t]=r}}function qr(e,t,o,r){return e.addEventListener(t,o,r),()=>{e.removeEventListener(t,o,r)}}function id(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let o=sd(e);if(o!==document.documentElement&&o!==document.body&&o!==e){let r=o.getBoundingClientRect().top,n=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,s=o.getBoundingClientRect().bottom;a>s&&(o.scrollTop+=n-r)}e=o.parentElement}}function Un(e){return e instanceof HTMLInputElement&&!df.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}import*as ud from"react";function pf(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function mf(...e){return t=>e.forEach(o=>pf(o,t))}function wi(...e){return ud.useCallback(mf(...e),e)}import cr from"react";var Yr=null;function cd({isOpen:e,modal:t,nested:o,hasBeenOpened:r,preventScrollRestoration:n,noBodyStyles:a}){let[s,l]=cr.useState(()=>typeof window<"u"?window.location.href:""),d=cr.useRef(0),c=cr.useCallback(()=>{if(Yr===null&&e&&!a){Yr={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};let{scrollX:f,innerHeight:p}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-d.current}px`,left:`${-f}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let u=p-window.innerHeight;u&&d.current>=p&&(document.body.style.top=`${-(d.current+u)}px`)}),300)}},[e]),m=cr.useCallback(()=>{if(Yr!==null&&!a){let f=-parseInt(document.body.style.top,10),p=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Yr),window.requestAnimationFrame(()=>{if(n&&s!==window.location.href){l(window.location.href);return}window.scrollTo(p,f)}),Yr=null}},[s]);return cr.useEffect(()=>{function f(){d.current=window.scrollY}return f(),window.addEventListener("scroll",f),()=>{window.removeEventListener("scroll",f)}},[]),cr.useEffect(()=>{o||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&c(),t||window.setTimeout(()=>{m()},500)):m())},[e,r,s,t,o,c,m]),{restorePositionSetting:m}}import pr from"react";var pd=new WeakMap;function ae(e,t,o=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([n,a])=>{if(n.startsWith("--")){e.style.setProperty(n,a);return}r[n]=e.style[n],e.style[n]=a}),!o&&pd.set(e,r)}function Kr(e,t){if(!e||!(e instanceof HTMLElement))return;let o=pd.get(e);o&&(t?e.style[t]=o[t]:Object.entries(o).forEach(([r,n])=>{e.style[r]=n}))}var ge=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Xr(e,t){if(!e)return null;let o=window.getComputedStyle(e),r=o.transform||o.webkitTransform||o.mozTransform,n=r.match(/^matrix3d\((.+)\)$/);return n?parseFloat(n[1].split(", ")[ge(t)?13:12]):(n=r.match(/^matrix\((.+)\)$/),n?parseFloat(n[1].split(", ")[ge(t)?5:4]):null)}function md(e){return 8*(Math.log(e+1)-2)}var ne={DURATION:.5,EASE:[.32,.72,0,1]},jn=.4;import Fo from"react";function fd(e){let t=Fo.useRef(e);return Fo.useEffect(()=>{t.current=e}),Fo.useMemo(()=>((...o)=>t.current?.(...o)),[])}function ff({defaultProp:e,onChange:t}){let o=Fo.useState(e),[r]=o,n=Fo.useRef(r),a=fd(t);return Fo.useEffect(()=>{n.current!==r&&(a(r),n.current=r)},[r,n,a]),o}function gd({prop:e,defaultProp:t,onChange:o=()=>{}}){let[r,n]=ff({defaultProp:t,onChange:o}),a=e!==void 0,s=a?e:r,l=fd(o),d=Fo.useCallback(c=>{if(a){let f=typeof c=="function"?c(e):c;f!==e&&l(f)}else n(c)},[a,e,n,l]);return[s,d]}function vd({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:o,drawerRef:r,overlayRef:n,fadeFromIndex:a,onSnapPointChange:s,direction:l="bottom"}){let[d,c]=gd({prop:e,defaultProp:o?.[0],onChange:t}),m=pr.useMemo(()=>d===o?.[o.length-1]||null,[o,d]),f=o&&o.length>0&&(a||a===0)&&!Number.isNaN(a)&&o[a]===d||!o,p=pr.useMemo(()=>o?.findIndex(y=>y===d),[o,d]),u=pr.useMemo(()=>o?.map(y=>{let x=typeof window<"u",P=typeof y=="string",L=0;if(P&&(L=parseInt(y,10)),ge(l)){let U=P?L:x?y*window.innerHeight:0;return x?l==="bottom"?window.innerHeight-U:-window.innerHeight+U:U}let D=P?L:x?y*window.innerWidth:0;return x?l==="right"?window.innerWidth-D:-window.innerWidth+D:D})??[],[o]),g=pr.useMemo(()=>p?u?.[p]:null,[u,p]),v=pr.useCallback(y=>{let x=u?.findIndex(P=>P===y)??null;s(x),ae(r.current,{transition:`transform ${ne.DURATION}s cubic-bezier(${ne.EASE.join(",")})`,transform:ge(l)?`translate3d(0, ${y}px, 0)`:`translate3d(${y}px, 0, 0)`}),u&&x!==u.length-1&&x!==a?ae(n.current,{transition:`opacity ${ne.DURATION}s cubic-bezier(${ne.EASE.join(",")})`,opacity:"0"}):ae(n.current,{transition:`opacity ${ne.DURATION}s cubic-bezier(${ne.EASE.join(",")})`,opacity:"1"}),c(x!==null?o?.[x]:null)},[r.current,o,u,a,n,c]);pr.useEffect(()=>{if(d||e){let y=o?.findIndex(x=>x===e||x===d)??-1;u&&y!==-1&&typeof u[y]=="number"&&v(u[y])}},[d,e,o,u,v]);function h({draggedDistance:y,closeDrawer:x,velocity:P,dismissible:L}){if(a===void 0)return;let D=l==="bottom"||l==="right"?(g??0)-y:(g??0)+y,U=p===a-1,w=p===0,C=y>0;if(U&&ae(n.current,{transition:`opacity ${ne.DURATION}s cubic-bezier(${ne.EASE.join(",")})`}),P>2&&!C){L?x():v(u[0]);return}if(P>2&&C&&u&&o){v(u[o.length-1]);return}let S=u?.reduce((B,Z)=>typeof B!="number"||typeof Z!="number"?B:Math.abs(Z-D)<Math.abs(B-D)?Z:B),A=ge(l)?window.innerHeight:window.innerWidth;if(P>jn&&Math.abs(y)<A*.4){let B=C?1:-1;if(B>0&&m&&o){v(u[o.length-1]);return}if(w&&B<0&&L&&x(),!p)return;v(u[p+B]);return}v(S)}function b({draggedDistance:y}){if(g===null)return;let x=l==="bottom"||l==="right"?g-y:g+y;(l==="bottom"||l==="right")&&x<u[u.length-1]||(l==="top"||l==="left")&&x>u[u.length-1]||ae(r.current,{transform:ge(l)?`translate3d(0, ${x}px, 0)`:`translate3d(${x}px, 0, 0)`})}function R(y,x){if(!o||typeof p!="number"||!u||a===void 0)return null;let P=p===a-1;if(p>=a&&x)return 0;if(P&&!x)return 1;if(!f&&!P)return null;let D=P?p+1:p-1,U=P?u[D]-u[D-1]:u[D+1]-u[D],w=y/Math.abs(U);return P?1-w:w}return{isLastSnapPoint:m,activeSnapPoint:d,shouldFade:f,getPercentageDragged:R,setActiveSnapPoint:c,activeSnapPointIndex:p,onRelease:h,onDrag:b,snapPointsOffset:u}}import{jsx as $o}from"react/jsx-runtime";var gf=.25,vf=100,bd=8,Ho=16,xd=26,Pi="vaul-dragging";function hd({open:e,onOpenChange:t,children:o,shouldScaleBackground:r,onDrag:n,onRelease:a,snapPoints:s,nested:l=!1,setBackgroundColorOnScale:d=!0,closeThreshold:c=gf,scrollLockTimeout:m=vf,dismissible:f=!0,handleOnly:p=!1,fadeFromIndex:u=s&&s.length-1,activeSnapPoint:g,setActiveSnapPoint:v,fixed:h,modal:b=!0,onClose:R,noBodyStyles:y=!1,direction:x="bottom",preventScrollRestoration:P=!0,disablePreventScroll:L=!1}){let[D=!1,U]=J.useState(!1),[w,C]=J.useState(!1),[S,A]=J.useState(!1),[B,Z]=J.useState(!1),[me,Te]=J.useState(!1),[Le,et]=J.useState(!1),E=J.useRef(null),ee=J.useRef(null),k=J.useRef(null),T=J.useRef(null),K=J.useRef(null),je=J.useRef(!1),he=J.useRef(null),ht=J.useRef(0),ye=J.useRef(!1),Se=J.useRef(0),z=J.useRef(null),To=J.useRef(z.current?.getBoundingClientRect().height||0),Do=J.useRef(0),er=J.useCallback(F=>{s&&F===Rt.length-1&&(ee.current=new Date)},[]),{activeSnapPoint:Lr,activeSnapPointIndex:dt,setActiveSnapPoint:Eo,onRelease:tr,snapPointsOffset:Rt,onDrag:_r,shouldFade:tt,getPercentageDragged:ko}=vd({snapPoints:s,activeSnapPointProp:g,setActiveSnapPointProp:v,drawerRef:z,fadeFromIndex:u,overlayRef:E,onSnapPointChange:er,direction:x});ld({isDisabled:!D||me||!b||Le||!w||L});let{restorePositionSetting:ot}=cd({isOpen:D,modal:b,nested:l,hasBeenOpened:w,preventScrollRestoration:P,noBodyStyles:y});function qe(){return(window.innerWidth-xd)/window.innerWidth}function Ua(F){!f&&!s||z.current&&!z.current.contains(F.target)||(To.current=z.current?.getBoundingClientRect().height||0,Te(!0),k.current=new Date,yi()&&window.addEventListener("touchend",()=>je.current=!1,{once:!0}),F.target.setPointerCapture(F.pointerId),ht.current=ge(x)?F.clientY:F.clientX)}function or(F,X){let j=F,re=window.getSelection()?.toString(),fe=z.current?Xr(z.current,x):null,Ce=new Date;if(j.hasAttribute("data-vaul-no-drag")||j.closest("[data-vaul-no-drag]"))return!1;if(x==="right"||x==="left")return!0;if(ee.current&&Ce.getTime()-ee.current.getTime()<500)return!1;if(fe!==null&&(x==="bottom"?fe>0:fe<0))return!0;if(re&&re.length>0)return!1;if(K.current&&Ce.getTime()-K.current.getTime()<m&&fe===0||X)return K.current=Ce,!1;for(;j;){if(j.scrollHeight>j.clientHeight){if(j.scrollTop!==0)return K.current=new Date,!1;if(j.getAttribute("role")==="dialog")return!0}j=j.parentNode}return!0}function Vr(F){if(z.current&&me){let X=x==="bottom"||x==="right"?1:-1,j=(ht.current-(ge(x)?F.clientY:F.clientX))*X,re=j>0,fe=s&&!f&&!re;if(fe&&dt===0)return;let Ce=Math.abs(j),$e=document.querySelector("[vaul-drawer-wrapper]"),M=Ce/To.current,H=ko(Ce,re);if(H!==null&&(M=H),fe&&M>=1||!je.current&&!or(F.target,re))return;if(z.current.classList.add(Pi),je.current=!0,ae(z.current,{transition:"none"}),ae(E.current,{transition:"none"}),s&&_r({draggedDistance:j}),re&&!s){let we=md(j),yt=Math.min(we*-1,0)*X;ae(z.current,{transform:ge(x)?`translate3d(0, ${yt}px, 0)`:`translate3d(${yt}px, 0, 0)`});return}let _e=1-M;if((tt||u&&dt===u-1)&&(n?.(F,M),ae(E.current,{opacity:`${_e}`,transition:"none"},!0)),$e&&E.current&&r){let we=Math.min(qe()+M*(1-qe()),1),yt=8-M*8,Sn=Math.max(0,14-M*14);ae($e,{borderRadius:`${yt}px`,transform:ge(x)?`scale(${we}) translate3d(0, ${Sn}px, 0)`:`scale(${we}) translate3d(${Sn}px, 0, 0)`,transition:"none"},!0)}if(!s){let we=Ce*X;ae(z.current,{transform:ge(x)?`translate3d(0, ${we}px, 0)`:`translate3d(${we}px, 0, 0)`})}}}J.useEffect(()=>()=>{ro(!1),ot()},[]),J.useEffect(()=>{function F(){if(!z.current)return;let X=document.activeElement;if(Un(X)||ye.current){let j=window.visualViewport?.height||0,re=window.innerHeight-j,fe=z.current.getBoundingClientRect().height||0;Do.current||(Do.current=fe);let Ce=z.current.getBoundingClientRect().top;if(Math.abs(Se.current-re)>60&&(ye.current=!ye.current),s&&s.length>0&&Rt&&dt){let $e=Rt[dt]||0;re+=$e}if(Se.current=re,fe>j||ye.current){let $e=z.current.getBoundingClientRect().height,M=$e;$e>j&&(M=j-xd),h?z.current.style.height=`${$e-Math.max(re,0)}px`:z.current.style.height=`${Math.max(M,j-Ce)}px`}else z.current.style.height=`${Do.current}px`;s&&s.length>0&&!ye.current?z.current.style.bottom="0px":z.current.style.bottom=`${Math.max(re,0)}px`}}return window.visualViewport?.addEventListener("resize",F),()=>window.visualViewport?.removeEventListener("resize",F)},[dt,s,Rt]);function _t(){z.current&&(Vt(),R?.(),ae(z.current,{transform:ge(x)?`translate3d(0, ${x==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${x==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${ne.DURATION}s cubic-bezier(${ne.EASE.join(",")})`}),ae(E.current,{opacity:"0",transition:`opacity ${ne.DURATION}s cubic-bezier(${ne.EASE.join(",")})`}),ro(!1),setTimeout(()=>{A(!1),U(!1)},300),setTimeout(()=>{s&&Eo(s[0])},ne.DURATION*1e3))}J.useEffect(()=>{if(!D&&r){let F=setTimeout(()=>{Kr(document.body)},200);return()=>clearTimeout(F)}},[D,r]),J.useEffect(()=>{e?(U(!0),C(!0)):_t()},[e]),J.useEffect(()=>{B&&t?.(D)},[D]),J.useEffect(()=>{Z(!0)},[]);function Pn(){if(!z.current)return;let F=document.querySelector("[vaul-drawer-wrapper]"),X=Xr(z.current,x);ae(z.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${ne.DURATION}s cubic-bezier(${ne.EASE.join(",")})`}),ae(E.current,{transition:`opacity ${ne.DURATION}s cubic-bezier(${ne.EASE.join(",")})`,opacity:"1"}),r&&X&&X>0&&D&&ae(F,{borderRadius:`${bd}px`,overflow:"hidden",...ge(x)?{transform:`scale(${qe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${qe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${ne.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ne.EASE.join(",")})`},!0)}function Vt(){!me||!z.current||(z.current.classList.remove(Pi),je.current=!1,Te(!1),T.current=new Date)}function Io(F){if(!me||!z.current)return;z.current.classList.remove(Pi),je.current=!1,Te(!1),T.current=new Date;let X=Xr(z.current,x);if(!or(F.target,!1)||!X||Number.isNaN(X)||k.current===null)return;let j=T.current.getTime()-k.current.getTime(),re=ht.current-(ge(x)?F.clientY:F.clientX),fe=Math.abs(re)/j;if(fe>.05&&(et(!0),setTimeout(()=>{et(!1)},200)),s){tr({draggedDistance:re*(x==="bottom"||x==="right"?1:-1),closeDrawer:_t,velocity:fe,dismissible:f}),a?.(F,!0);return}if(x==="bottom"||x==="right"?re>0:re<0){Pn(),a?.(F,!0);return}if(fe>jn){_t(),a?.(F,!1);return}let Ce=Math.min(z.current.getBoundingClientRect().height??0,window.innerHeight);if(X>=Ce*c){_t(),a?.(F,!1);return}a?.(F,!0),Pn()}J.useEffect(()=>{D&&(ae(document.documentElement,{scrollBehavior:"auto"}),ee.current=new Date,ro(!0))},[D]),J.useEffect(()=>{z.current&&S&&z?.current?.querySelectorAll("*")?.forEach(X=>{let j=X;(j.scrollHeight>j.clientHeight||j.scrollWidth>j.clientWidth)&&j.classList.add("vaul-scrollable")})},[S]);function ro(F){let X=document.querySelector("[vaul-drawer-wrapper]");!X||!r||(F?(d&&(y||(ae(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),ae(document.body,{background:"black"},!0))),ae(X,{borderRadius:`${bd}px`,overflow:"hidden",...ge(x)?{transform:`scale(${qe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${qe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${ne.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ne.EASE.join(",")})`})):(Kr(X,"overflow"),Kr(X,"transform"),Kr(X,"borderRadius"),ae(X,{transitionProperty:"transform, border-radius",transitionDuration:`${ne.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ne.EASE.join(",")})`})))}function ja(F){let X=F?(window.innerWidth-Ho)/window.innerWidth:1,j=F?-Ho:0;he.current&&window.clearTimeout(he.current),ae(z.current,{transition:`transform ${ne.DURATION}s cubic-bezier(${ne.EASE.join(",")})`,transform:`scale(${X}) translate3d(0, ${j}px, 0)`}),!F&&z.current&&(he.current=setTimeout(()=>{let re=Xr(z.current,x);ae(z.current,{transition:"none",transform:ge(x)?`translate3d(0, ${re}px, 0)`:`translate3d(${re}px, 0, 0)`})},500))}function oe(F,X){if(X<0)return;let j=ge(x)?window.innerHeight:window.innerWidth,re=(j-Ho)/j,fe=re+X*(1-re),Ce=-Ho+X*Ho;ae(z.current,{transform:ge(x)?`scale(${fe}) translate3d(0, ${Ce}px, 0)`:`scale(${fe}) translate3d(${Ce}px, 0, 0)`,transition:"none"})}function zo(F,X){let j=ge(x)?window.innerHeight:window.innerWidth,re=X?(j-Ho)/j:1,fe=X?-Ho:0;X&&ae(z.current,{transition:`transform ${ne.DURATION}s cubic-bezier(${ne.EASE.join(",")})`,transform:ge(x)?`scale(${re}) translate3d(0, ${fe}px, 0)`:`scale(${re}) translate3d(${fe}px, 0, 0)`})}return $o(De.Root,{modal:b,onOpenChange:F=>{if(e!==void 0){t?.(F);return}F?(C(!0),U(F)):_t()},open:D,children:$o(bi.Provider,{value:{visible:S,activeSnapPoint:Lr,snapPoints:s,setActiveSnapPoint:Eo,drawerRef:z,overlayRef:E,scaleBackground:ro,onOpenChange:t,onPress:Ua,setVisible:A,onRelease:Io,onDrag:Vr,dismissible:f,handleOnly:p,isOpen:D,isDragging:me,shouldFade:tt,closeDrawer:_t,onNestedDrag:oe,onNestedOpenChange:ja,onNestedRelease:zo,keyboardIsOpen:ye,openProp:e,modal:b,snapPointsOffset:Rt,direction:x},children:o})})}var bf=250,xf=120,Rd=J.forwardRef(function({preventCycle:e=!1,children:t,...o},r){let{visible:n,closeDrawer:a,isDragging:s,snapPoints:l,activeSnapPoint:d,setActiveSnapPoint:c,dismissible:m,handleOnly:f,onPress:p,onDrag:u}=jr(),g=J.useRef(null),v=J.useRef(!1);function h(){if(v.current){y();return}window.setTimeout(()=>{b()},xf)}function b(){if(s||e||v.current){y();return}if(y(),(!l||l.length===0)&&m){a();return}if(d===l?.length&&l?.[l.length-1]&&m){a();return}let P=l?.findIndex(D=>D===d);if(P===-1)return;let L=l?.length&&P&&l?.[P+1];c(L)}function R(){g.current=window.setTimeout(()=>{v.current=!0},bf)}function y(){g.current&&window.clearTimeout(g.current),v.current=!1}return $o("div",{onClick:h,onDoubleClick:()=>{v.current=!0,a()},onPointerCancel:y,onPointerDown:x=>{f&&p(x),R()},onPointerMove:x=>{f&&u(x)},ref:r,"vaul-drawer-visible":n?"true":"false","vaul-handle":"","aria-hidden":"true",...o,children:$o("span",{"vaul-handle-hitarea":"","aria-hidden":"true",children:t})})});Rd.displayName="Drawer.Handle";var yd=J.forwardRef(function({children:e,...t},o){let{overlayRef:r,snapPoints:n,onRelease:a,shouldFade:s,isOpen:l,visible:d}=jr(),c=wi(o,r),m=n&&n.length>0;return $o(De.Overlay,{onMouseUp:a,ref:c,"vaul-drawer-visible":d?"true":"false","vaul-overlay":"","vaul-snap-points":l&&m?"true":"false","vaul-snap-points-overlay":l&&s?"true":"false",...t})});yd.displayName="Drawer.Overlay";var Cd=J.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:t,onAnimationEnd:o,style:r,...n},a){let{drawerRef:s,onPress:l,onRelease:d,onDrag:c,dismissible:m,keyboardIsOpen:f,snapPointsOffset:p,visible:u,closeDrawer:g,modal:v,openProp:h,onOpenChange:b,setVisible:R,handleOnly:y,direction:x}=jr(),P=wi(a,s),L=J.useRef(null),D=J.useRef(!1),U=(w,C,S=0)=>{if(D.current)return!0;let A=Math.abs(w.y),B=Math.abs(w.x),Z=B>A,me=C&&["bottom","right"].includes(C)?1:-1;if(C==="left"||C==="right"){if(!(w.x*me<0)&&B>=0&&B<=S)return Z}else if(!(w.y*me<0)&&A>=0&&A<=S)return!Z;return D.current=!0,!0};return J.useEffect(()=>{R(!0)},[]),$o(De.Content,{"vaul-drawer":"","vaul-drawer-direction":x,"vaul-drawer-visible":u?"true":"false",...n,ref:P,style:p&&p.length>0?{"--snap-point-height":`${p[0]}px`,...r}:r,onOpenAutoFocus:w=>{e?e(w):(w.preventDefault(),s.current?.focus())},onPointerDown:w=>{y||(n.onPointerDown?.(w),L.current={x:w.clientX,y:w.clientY},l(w))},onPointerDownOutside:w=>{if(t?.(w),!v||w.defaultPrevented){w.preventDefault();return}f.current&&(f.current=!1),w.preventDefault(),b?.(!1),!(!m||h!==void 0)&&g()},onFocusOutside:w=>{if(!v){w.preventDefault();return}},onEscapeKeyDown:w=>{if(!v){w.preventDefault();return}},onPointerMove:w=>{if(y||(n.onPointerMove?.(w),!L.current))return;let C=w.clientY-L.current.y,S=w.clientX-L.current.x,A=w.pointerType==="touch"?10:2;U({x:S,y:C},x,A)?c(w):(Math.abs(S)>A||Math.abs(C)>A)&&(L.current=null)},onPointerUp:w=>{n.onPointerUp?.(w),L.current=null,D.current=!1,d(w)}})});Cd.displayName="Drawer.Content";function hf({onDrag:e,onOpenChange:t,...o}){let{onNestedDrag:r,onNestedOpenChange:n,onNestedRelease:a}=jr();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return $o(hd,{nested:!0,onClose:()=>{n(!1)},onDrag:(s,l)=>{r(s,l),e?.(s,l)},onOpenChange:s=>{s&&n(s),t?.(s)},onRelease:a,...o})}var it={Root:hd,NestedRoot:hf,Content:Cd,Handle:Rd,Overlay:yd,Trigger:De.Trigger,Portal:De.Portal,Close:De.Close,Title:De.Title,Description:De.Description};import{jsx as fo,jsxs as wd}from"react/jsx-runtime";var go=({shouldScaleBackground:e=!0,...t})=>fo(it.Root,{"data-slot":"drawer",shouldScaleBackground:e,...t});go.displayName="Drawer";var Qr=it.Trigger,Pd=it.Portal,Si=it.Close,Ni=Jr.forwardRef(({className:e,...t},o)=>fo(it.Overlay,{ref:o,"data-slot":"drawer-overlay",className:i("fixed inset-0 z-50 bg-black/40 backdrop-blur-xs",e),...t}));Ni.displayName=it.Overlay.displayName;var vo=Jr.forwardRef(({className:e,children:t,...o},r)=>wd(Pd,{children:[fo(Ni,{}),wd(it.Content,{ref:r,"data-slot":"drawer-content",className:i("group/drawer-content fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-xl border bg-popover text-sm text-popover-foreground will-change-transform ease-slide transition-transform","[&[vaul-drawer-visible=true]]:-translate-y-[translate3d(0,var(--snap-point-height,0),0)]","[&[vaul-drawer-direction=bottom]]:translate-y-full","[&[vaul-drawer-direction=top]]:-translate-y-full","[&[vaul-drawer-direction=left]]:-translate-x-full","[&[vaul-drawer-direction=right]]:translate-x-full",e),...o,children:[fo("div",{className:"mx-auto mt-4 h-1 w-[100px] shrink-0 rounded-full bg-muted"}),t]})]}));vo.displayName="DrawerContent";var qn=({className:e,...t})=>fo("div",{"data-slot":"drawer-header",className:i("flex flex-col gap-0.5 p-4 text-center sm:text-left",e),...t});qn.displayName="DrawerHeader";var Yn=({className:e,...t})=>fo("div",{"data-slot":"drawer-footer",className:i("mt-auto flex flex-col gap-2 p-4",e),...t});Yn.displayName="DrawerFooter";var Kn=Jr.forwardRef(({className:e,...t},o)=>fo(it.Title,{ref:o,"data-slot":"drawer-title",className:i("font-heading text-base font-medium text-foreground",e),...t}));Kn.displayName=it.Title.displayName;var Xn=Jr.forwardRef(({className:e,...t},o)=>fo(it.Description,{ref:o,"data-slot":"drawer-description",className:i("text-sm text-muted-foreground",e),...t}));Xn.displayName=it.Description.displayName;import*as qt from"react";import*as W from"@radix-ui/react-dropdown-menu";import{Icon as Mi}from"@iconify/react";import{jsx as Ge,jsxs as ki}from"react/jsx-runtime";var Zr=W.Root,en=W.Trigger,Ti=W.Group,Di=W.Portal,Ei=W.Sub,Rf=W.RadioGroup,Jn=qt.forwardRef(({className:e,inset:t,children:o,...r},n)=>ki(W.SubTrigger,{ref:n,"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:i("flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t&&"pl-7",e),...r,children:[o,Ge(Mi,{icon:"lucide:chevron-right",className:"ml-auto size-4"})]}));Jn.displayName=W.SubTrigger.displayName;var Qn=qt.forwardRef(({className:e,...t},o)=>Ge(W.SubContent,{ref:o,"data-slot":"dropdown-menu-sub-content",className:i("z-50 min-w-[96px] origin-[var(--radix-dropdown-menu-content-transform-origin)] overflow-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...t}));Qn.displayName=W.SubContent.displayName;var mr=qt.forwardRef(({className:e,align:t="start",sideOffset:o=4,...r},n)=>Ge(W.Portal,{children:Ge(W.Content,{ref:n,"data-slot":"dropdown-menu-content",align:t,sideOffset:o,className:i("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-32 origin-[var(--radix-dropdown-menu-content-transform-origin)] overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 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 data-[state=closed]:overflow-hidden data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...r})}));mr.displayName=W.Content.displayName;var Zn=qt.forwardRef(({className:e,inset:t,variant:o="default",...r},n)=>Ge(W.Item,{ref:n,"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":o,className:i("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t&&"pl-7",e),...r}));Zn.displayName=W.Item.displayName;var fr=qt.forwardRef(({className:e,children:t,checked:o,inset:r,...n},a)=>ki(W.CheckboxItem,{ref:a,"data-slot":"dropdown-menu-checkbox-item","data-inset":r,className:i("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",r&&"pl-7",e),checked:o,...n,children:[Ge("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center","data-slot":"dropdown-menu-checkbox-item-indicator",children:Ge(W.ItemIndicator,{children:Ge(Mi,{icon:"lucide:check",className:"size-4"})})}),t]}));fr.displayName=W.CheckboxItem.displayName;var Sd=qt.forwardRef(({className:e,children:t,inset:o,...r},n)=>ki(W.RadioItem,{ref:n,"data-slot":"dropdown-menu-radio-item","data-inset":o,className:i("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o&&"pl-7",e),...r,children:[Ge("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center","data-slot":"dropdown-menu-radio-item-indicator",children:Ge(W.ItemIndicator,{children:Ge(Mi,{icon:"lucide:check",className:"size-4"})})}),t]}));Sd.displayName=W.RadioItem.displayName;var gr=qt.forwardRef(({className:e,inset:t,...o},r)=>Ge(W.Label,{ref:r,"data-slot":"dropdown-menu-label","data-inset":t,className:i("px-1.5 py-1 text-xs font-medium text-muted-foreground",t&&"pl-7",e),...o}));gr.displayName=W.Label.displayName;var Yt=qt.forwardRef(({className:e,...t},o)=>Ge(W.Separator,{ref:o,"data-slot":"dropdown-menu-separator",className:i("-mx-1 my-1 h-px bg-border",e),...t}));Yt.displayName=W.Separator.displayName;var ea=({className:e,...t})=>Ge("span",{"data-slot":"dropdown-menu-shortcut",className:i("ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground",e),...t});ea.displayName="DropdownMenuShortcut";import{jsx as vr}from"react/jsx-runtime";function yf({className:e,...t}){return vr("div",{"data-slot":"empty",className:i("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12",e),...t})}function Cf({className:e,...t}){return vr("div",{"data-slot":"empty-header",className:i("flex max-w-sm flex-col items-center gap-2 text-center",e),...t})}var Nd=$("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function wf({className:e,variant:t="default",...o}){return vr("div",{"data-slot":"empty-icon","data-variant":t,className:i(Nd({variant:t,className:e})),...o})}function Pf({className:e,...t}){return vr("div",{"data-slot":"empty-title",className:i("text-lg font-medium tracking-tight",e),...t})}function Sf({className:e,...t}){return vr("div",{"data-slot":"empty-description",className:i("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",e),...t})}function Nf({className:e,...t}){return vr("div",{"data-slot":"empty-content",className:i("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm",e),...t})}import{useMemo as Tf}from"react";import*as Md from"react";import*as Ii from"@radix-ui/react-label";import{jsx as Mf}from"react/jsx-runtime";var Td=$("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50"),bo=Md.forwardRef(({className:e,...t},o)=>Mf(Ii.Root,{ref:o,"data-slot":"label",className:i(Td(),e),...t}));bo.displayName=Ii.Root.displayName;import{jsx as Ke,jsxs as Hf}from"react/jsx-runtime";function Df({className:e,...t}){return Ke("fieldset",{"data-slot":"field-set",className:i("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",e),...t})}function Ef({className:e,variant:t="legend",...o}){return Ke("legend",{"data-slot":"field-legend","data-variant":t,className:i("mb-3 font-medium","data-[variant=legend]:text-base","data-[variant=label]:text-sm",e),...o})}function kf({className:e,...t}){return Ke("div",{"data-slot":"field-group",className:i("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...t})}var Dd=$("group/field data-[invalid=true]:text-destructive flex w-full gap-3",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start"],responsive:["@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function If({className:e,orientation:t="vertical",...o}){return Ke("div",{role:"group","data-slot":"field","data-orientation":t,className:i(Dd({orientation:t}),e),...o})}function zf({className:e,...t}){return Ke("div",{"data-slot":"field-content",className:i("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",e),...t})}function Lf({className:e,...t}){return Ke(bo,{"data-slot":"field-label",className:i("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e),...t})}function _f({className:e,...t}){return Ke("div",{"data-slot":"field-label",className:i("flex w-fit items-center gap-2 text-sm font-medium leading-snug group-data-[disabled=true]/field:opacity-50",e),...t})}function Vf({className:e,...t}){return Ke("p",{"data-slot":"field-description",className:i("text-muted-foreground text-sm font-normal leading-normal group-has-[[data-orientation=horizontal]]/field:text-balance","nth-last-2:-mt-1 last:mt-0 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})}function Af({children:e,className:t,...o}){return Hf("div",{"data-slot":"field-separator","data-content":!!e,className:i("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",t),...o,children:[Ke(wt,{className:"absolute inset-0 top-1/2"}),e&&Ke("span",{className:"bg-background text-muted-foreground relative mx-auto block w-fit px-2","data-slot":"field-separator-content",children:e})]})}function Ff({className:e,children:t,errors:o,...r}){let n=Tf(()=>t||(o?o?.length===1&&o[0]?.message?o[0].message:Ke("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:o.map((a,s)=>a?.message&&Ke("li",{children:a.message},s))}):null),[t,o]);return n?Ke("div",{role:"alert","data-slot":"field-error",className:i("text-destructive text-sm font-normal",e),...r,children:n}):null}import*as We from"react";import{Slot as $f}from"@radix-ui/react-slot";import{Controller as Of,FormProvider as Bf,useFormContext as Gf,useFormState as Wf}from"react-hook-form";import{jsx as xo}from"react/jsx-runtime";var Uf=Bf,Ed=We.createContext({}),zi=({...e})=>xo(Ed.Provider,{value:{name:e.name},children:xo(Of,{...e})}),tn=()=>{let e=We.useContext(Ed),t=We.useContext(kd),{getFieldState:o}=Gf(),r=Wf({name:e.name}),n=o(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...n}},kd=We.createContext({}),ta=We.forwardRef(({className:e,...t},o)=>{let r=We.useId();return xo(kd.Provider,{value:{id:r},children:xo("div",{ref:o,"data-slot":"form-item",className:i("grid gap-1.5",e),...t})})});ta.displayName="FormItem";var oa=We.forwardRef(({className:e,...t},o)=>{let{error:r,formItemId:n}=tn();return xo(bo,{ref:o,"data-slot":"form-label","data-error":!!r,className:i("data-[error=true]:text-destructive",e),htmlFor:n,...t})});oa.displayName="FormLabel";var ra=We.forwardRef(({...e},t)=>{let{error:o,formItemId:r,formDescriptionId:n,formMessageId:a}=tn();return xo($f,{ref:t,"data-slot":"form-control",id:r,"aria-describedby":o?`${n} ${a}`:`${n}`,"aria-invalid":!!o,...e})});ra.displayName="FormControl";var na=We.forwardRef(({className:e,...t},o)=>{let{formDescriptionId:r}=tn();return xo("p",{ref:o,"data-slot":"form-description",id:r,className:i("text-xs text-muted-foreground",e),...t})});na.displayName="FormDescription";var aa=We.forwardRef(({className:e,children:t,...o},r)=>{let{error:n,formMessageId:a}=tn();return(n?String(n?.message??""):t)?xo("p",{ref:r,"data-slot":"form-message",id:a,className:i("text-xs font-medium text-destructive",e),...o}):null});aa.displayName="FormMessage";import*as zd from"react";import*as Kt from"@radix-ui/react-hover-card";import{jsx as Id}from"react/jsx-runtime";var jf=Kt.Root,qf=Kt.Trigger,Ld=zd.forwardRef(({className:e,align:t="center",sideOffset:o=4,...r},n)=>Id(Kt.Portal,{"data-slot":"hover-card-portal",children:Id(Kt.Content,{ref:n,"data-slot":"hover-card-content",align:t,sideOffset:o,className:i("z-50 w-64 origin-[var(--radix-hover-card-content-transform-origin)] rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-none duration-100 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...r})}));Ld.displayName=Kt.Content.displayName;import{Icon as Yf}from"@iconify/react";import{jsx as Kf}from"react/jsx-runtime";function _d({icon:e,size:t=20,className:o,...r}){return Kf(Yf,{icon:e,width:t,height:t,className:i("inline-block shrink-0",o),...r})}_d.displayName="AppIcon";import*as Vd from"react";import{jsx as Xf}from"react/jsx-runtime";var Me=Vd.forwardRef(({className:e,type:t,...o},r)=>Xf("input",{type:t,"data-slot":"input",className:i("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),ref:r,...o}));Me.displayName="Input";import*as Ad from"react";import{jsx as Jf}from"react/jsx-runtime";var br=Ad.forwardRef(({className:e,...t},o)=>Jf("textarea",{"data-slot":"textarea",className:i("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),ref:o,...t}));br.displayName="Textarea";import{jsx as xr}from"react/jsx-runtime";function Qf({className:e,...t}){return xr("div",{"data-slot":"input-group",role:"group",className:i("group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-md border outline-none transition-[color,box-shadow]","h-9 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:ring-ring has-[[data-slot=input-group-control]:focus-visible]:ring-1","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e),...t})}var Fd=$("text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.4rem] has-[>kbd]:mr-[-0.35rem]","block-start":"[.border-b]:pb-3 order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5","block-end":"[.border-t]:pt-3 order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function Zf({className:e,align:t="inline-start",...o}){return xr("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:i(Fd({align:t}),e),onClick:r=>{r.target.closest("button")||r.currentTarget.parentElement?.querySelector("input")?.focus()},...o})}var Hd=$("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function eg({className:e,type:t="button",variant:o="ghost",size:r="xs",...n}){return xr(I,{type:t,"data-size":r,variant:o,className:i(Hd({size:r}),e),...n})}function tg({className:e,...t}){return xr("span",{className:i("text-muted-foreground flex items-center gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",e),...t})}function og({className:e,...t}){return xr(Me,{"data-slot":"input-group-control",className:i("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function rg({className:e,...t}){return xr(br,{"data-slot":"input-group-control",className:i("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}import*as Oo from"react";import{OTPInput as ng,OTPInputContext as ag}from"input-otp";import{Icon as ig}from"@iconify/react";import{jsx as hr,jsxs as sg}from"react/jsx-runtime";var $d=Oo.forwardRef(({className:e,containerClassName:t,...o},r)=>hr(ng,{ref:r,"data-slot":"input-otp",containerClassName:i("cn-input-otp flex items-center has-[:disabled]:opacity-50",t),spellCheck:!1,className:i("disabled:cursor-not-allowed",e),...o}));$d.displayName="InputOTP";var Od=Oo.forwardRef(({className:e,...t},o)=>hr("div",{ref:o,"data-slot":"input-otp-group",className:i("flex items-center rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40",e),...t}));Od.displayName="InputOTPGroup";var Bd=Oo.forwardRef(({index:e,className:t,...o},r)=>{let n=Oo.useContext(ag),{char:a,hasFakeCaret:s,isActive:l}=n?.slots[e]??{};return sg("div",{ref:r,"data-slot":"input-otp-slot","data-active":l,className:i("relative flex size-8 items-center justify-center border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40",t),...o,children:[a,s&&hr("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:hr("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});Bd.displayName="InputOTPSlot";var Gd=Oo.forwardRef(({...e},t)=>hr("div",{ref:t,"data-slot":"input-otp-separator",className:"flex items-center [&_svg:not([class*='size-'])]:size-4",role:"separator",...e,children:hr(ig,{icon:"lucide:minus",className:"size-4"})}));Gd.displayName="InputOTPSeparator";import{Slot as lg}from"@radix-ui/react-slot";import{jsx as Pt}from"react/jsx-runtime";function dg({className:e,...t}){return Pt("div",{role:"list","data-slot":"item-group",className:i("group/item-group flex flex-col",e),...t})}function ug({className:e,...t}){return Pt(wt,{"data-slot":"item-separator",orientation:"horizontal",className:i("my-0",e),...t})}var Wd=$("group/item [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 [a]:transition-colors flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]",{variants:{variant:{default:"bg-transparent",outline:"border-border",muted:"bg-muted/50"},size:{default:"gap-4 p-4 ",sm:"gap-2.5 px-4 py-3"}},defaultVariants:{variant:"default",size:"default"}});function cg({className:e,variant:t="default",size:o="default",asChild:r=!1,...n}){return Pt(r?lg:"div",{"data-slot":"item","data-variant":t,"data-size":o,className:i(Wd({variant:t,size:o,className:e})),...n})}var Ud=$("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});function pg({className:e,variant:t="default",...o}){return Pt("div",{"data-slot":"item-media","data-variant":t,className:i(Ud({variant:t,className:e})),...o})}function mg({className:e,...t}){return Pt("div",{"data-slot":"item-content",className:i("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",e),...t})}function fg({className:e,...t}){return Pt("div",{"data-slot":"item-title",className:i("flex w-fit items-center gap-2 text-sm font-medium leading-snug",e),...t})}function gg({className:e,...t}){return Pt("p",{"data-slot":"item-description",className:i("text-muted-foreground line-clamp-2 text-balance text-sm font-normal leading-normal","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})}function vg({className:e,...t}){return Pt("div",{"data-slot":"item-actions",className:i("flex items-center gap-2",e),...t})}function bg({className:e,...t}){return Pt("div",{"data-slot":"item-header",className:i("flex basis-full items-center justify-between gap-2",e),...t})}function xg({className:e,...t}){return Pt("div",{"data-slot":"item-footer",className:i("flex basis-full items-center justify-between gap-2",e),...t})}import{jsx as jd}from"react/jsx-runtime";function hg({className:e,...t}){return jd("kbd",{"data-slot":"kbd",className:i("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",e),...t})}function Rg({className:e,...t}){return jd("kbd",{"data-slot":"kbd-group",className:i("inline-flex items-center gap-1",e),...t})}import{Slot as yg}from"@radix-ui/react-slot";import{jsx as Li}from"react/jsx-runtime";var qd=$("group/marker inline-flex items-center gap-1.5 text-xs font-medium select-none",{variants:{variant:{default:"text-muted-foreground",badge:"rounded-full border border-border bg-muted/60 px-2.5 py-0.5 text-muted-foreground",line:"w-full before:h-px before:flex-1 before:bg-border after:h-px after:flex-1 after:bg-border"}},defaultVariants:{variant:"default"}});function Cg({className:e,variant:t="default",asChild:o=!1,...r}){return Li(o?yg:"div",{"data-slot":"marker","data-variant":t,className:i(qd({variant:t,className:e})),...r})}function wg({className:e,...t}){return Li("span",{"data-slot":"marker-icon",className:i("inline-flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-3.5",e),...t})}function Pg({className:e,...t}){return Li("span",{"data-slot":"marker-content",className:i("truncate",e),...t})}import*as mt from"react";import*as O from"@radix-ui/react-menubar";import{Icon as _i}from"@iconify/react";import{jsx as be,jsxs as Vi}from"react/jsx-runtime";function Sg({...e}){return be(O.Menu,{"data-slot":"menubar-menu",...e})}function Ng({...e}){return be(O.Group,{"data-slot":"menubar-group",...e})}function Yd({...e}){return be(O.Portal,{"data-slot":"menubar-portal",...e})}function Mg({...e}){return be(O.RadioGroup,{"data-slot":"menubar-radio-group",...e})}function Tg({...e}){return be(O.Sub,{"data-slot":"menubar-sub",...e})}var Kd=mt.forwardRef(({className:e,...t},o)=>be(O.Root,{ref:o,"data-slot":"menubar",className:i("flex h-8 items-center gap-0.5 rounded-lg border bg-background p-[3px]",e),...t}));Kd.displayName=O.Root.displayName;var Xd=mt.forwardRef(({className:e,...t},o)=>be(O.Trigger,{ref:o,"data-slot":"menubar-trigger",className:i("flex items-center rounded-sm px-1.5 py-[2px] text-sm font-medium outline-none select-none hover:bg-muted aria-expanded:bg-muted data-[state=open]:bg-muted",e),...t}));Xd.displayName=O.Trigger.displayName;var Jd=mt.forwardRef(({className:e,inset:t,children:o,...r},n)=>Vi(O.SubTrigger,{ref:n,"data-slot":"menubar-sub-trigger","data-inset":t,className:i("flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='size-'])]:size-4",t&&"pl-7",e),...r,children:[o,be(_i,{icon:"lucide:chevron-right",className:"ml-auto size-4"})]}));Jd.displayName=O.SubTrigger.displayName;var Qd=mt.forwardRef(({className:e,...t},o)=>be(O.SubContent,{ref:o,"data-slot":"menubar-sub-content",className:i("z-50 min-w-32 origin-[var(--radix-menubar-content-transform-origin)] overflow-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...t}));Qd.displayName=O.SubContent.displayName;var Zd=mt.forwardRef(({className:e,align:t="start",alignOffset:o=-4,sideOffset:r=8,...n},a)=>be(Yd,{children:be(O.Content,{ref:a,"data-slot":"menubar-content",align:t,alignOffset:o,sideOffset:r,className:i("z-50 min-w-36 origin-[var(--radix-menubar-content-transform-origin)] overflow-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...n})}));Zd.displayName=O.Content.displayName;var eu=mt.forwardRef(({className:e,inset:t,variant:o="default",...r},n)=>be(O.Item,{ref:n,"data-slot":"menubar-item","data-inset":t,"data-variant":o,className:i("group/menubar-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t&&"pl-7",e),...r}));eu.displayName=O.Item.displayName;var tu=mt.forwardRef(({className:e,children:t,checked:o,inset:r,...n},a)=>Vi(O.CheckboxItem,{ref:a,"data-slot":"menubar-checkbox-item","data-inset":r,className:i("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",e),checked:o,...n,children:[be("span",{className:"pointer-events-none absolute left-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",children:be(O.ItemIndicator,{children:be(_i,{icon:"lucide:check",className:"size-4"})})}),t]}));tu.displayName=O.CheckboxItem.displayName;var ou=mt.forwardRef(({className:e,children:t,inset:o,...r},n)=>Vi(O.RadioItem,{ref:n,"data-slot":"menubar-radio-item","data-inset":o,className:i("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[be("span",{className:"pointer-events-none absolute left-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",children:be(O.ItemIndicator,{children:be(_i,{icon:"lucide:check",className:"size-4"})})}),t]}));ou.displayName=O.RadioItem.displayName;var ru=mt.forwardRef(({className:e,inset:t,...o},r)=>be(O.Label,{ref:r,"data-slot":"menubar-label","data-inset":t,className:i("px-1.5 py-1 text-sm font-medium",t&&"pl-7",e),...o}));ru.displayName=O.Label.displayName;var nu=mt.forwardRef(({className:e,...t},o)=>be(O.Separator,{ref:o,"data-slot":"menubar-separator",className:i("-mx-1 my-1 h-px bg-border",e),...t}));nu.displayName=O.Separator.displayName;var au=({className:e,...t})=>be("span",{"data-slot":"menubar-shortcut",className:i("ml-auto text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground",e),...t});au.displayName="MenubarShortcut";import Dg from"react";import{jsx as Eg}from"react/jsx-runtime";var iu=Dg.forwardRef(({className:e,children:t,...o},r)=>Eg("ul",{ref:r,className:i("flex flex-col gap-1",e),...o,children:t}));iu.displayName="Menu";import su from"react";import{jsx as kg}from"react/jsx-runtime";var Ai=su.forwardRef(({active:e,children:t,...o},r)=>{let[n,a]=su.useState(e??!1);return kg("li",{ref:r,...o,children:t?.(()=>{a(!n)},n)})});Ai.displayName="MenuButton";var ia=Ai;import lu from"react";import{jsx as sa,jsxs as Ig}from"react/jsx-runtime";var du=lu.forwardRef(({className:e,icon:t,active:o=!1,disabled:r=!1,prefix:n,suffix:a,component:s,children:l,...d},c)=>sa(ia,{children:()=>Ig("a",{ref:c,"aria-disabled":r,className:i("group flex items-center gap-2 rounded-lg px-2.5 py-1.5 text-sm font-medium text-sidebar-foreground/80 transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground cursor-pointer [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",o&&"bg-sidebar-accent text-sidebar-accent-foreground font-semibold",r&&"pointer-events-none opacity-50",e),...d,children:[n,t,s?lu.cloneElement(s,{className:i("flex-grow truncate")}):typeof l=="string"?sa("span",{className:"flex-grow truncate",children:l}):sa("div",{className:"flex-grow truncate",children:l}),a?sa("div",{className:"ml-auto shrink-0",children:a}):null]})}));du.displayName="MenuItem";import uu from"react";import{Icon as zg}from"@iconify/react";import{jsx as Bo,jsxs as cu}from"react/jsx-runtime";var pu=uu.forwardRef(({className:e,label:t,icon:o,active:r=!1,disabled:n=!1,defaultOpen:a=!1,prefix:s,suffix:l,component:d,children:c,...m},f)=>Bo(ia,{active:r||a,children:(p,u)=>cu(uu.Fragment,{children:[cu("a",{ref:f,"aria-disabled":n,className:i("group relative flex items-center gap-2 rounded-lg px-2.5 py-1.5 text-sm font-medium text-sidebar-foreground/80 transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground cursor-pointer [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",r&&"bg-sidebar-accent text-sidebar-accent-foreground font-semibold",n&&"pointer-events-none opacity-50",e),onClick:g=>{g.preventDefault(),n||p()},...m,children:[s,o,typeof t=="string"?Bo("span",{className:"flex-grow truncate",children:t}):Bo("div",{className:"flex-grow truncate",children:t}),l&&Bo("div",{className:"mr-4 shrink-0",children:l}),Bo(zg,{className:i("ml-auto size-4 text-muted-foreground transition-transform duration-200",u&&"rotate-180"),icon:"lucide:chevron-down"})]}),Bo("div",{className:i("overflow-hidden transition-all",!u&&"hidden"),children:Bo("ul",{className:"mt-1 flex flex-col gap-1 border-l border-sidebar-border ml-4 pl-2.5",children:d??c})})]})}));pu.displayName="SubMenu";import{Icon as Lg}from"@iconify/react";import mu from"react";import{jsx as Go,jsxs as la}from"react/jsx-runtime";var fu=mu.forwardRef(({className:e,collapsed:t,onToggle:o,brandName:r,logo:n,homePath:a="/admin",children:s,...l},d)=>(mu.useEffect(()=>{o?.(t)},[t]),la("aside",{ref:d,className:i("absolute left-0 top-0 z-40 flex h-screen w-64 flex-col overflow-y-hidden border-r border-sidebar-border bg-sidebar text-sidebar-foreground transition-transform duration-200 ease-in-out lg:static lg:translate-x-0",t?"translate-x-0":"-translate-x-full",e),...l,children:[la("div",{className:"flex items-center justify-between gap-2 border-b border-sidebar-border px-4 py-3.5",children:[la("a",{href:a,className:"flex flex-grow items-center gap-2.5 text-left",children:[n&&Go("div",{className:"shrink-0",children:n}),r&&Go("h2",{className:"text-base font-semibold tracking-tight text-sidebar-foreground",children:r})]}),Go("button",{type:"button",onClick:()=>o?.(!t),"aria-controls":"sidebar",className:"inline-flex size-7 items-center justify-center rounded-md text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground lg:hidden",children:Go(Lg,{icon:"lucide:x",className:"size-4"})})]}),Go("div",{className:"no-scrollbar flex flex-1 flex-col overflow-y-auto",children:Go("nav",{className:"flex-1 px-3 py-4",children:la("div",{className:"space-y-1",children:[Go("h3",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Menu"}),s]})})})]})));fu.displayName="Sidebar";import{jsx as Rr}from"react/jsx-runtime";function _g({className:e,...t}){return Rr("div",{"data-slot":"message-group",className:i("group/message-group flex flex-col gap-4",e),...t})}function Vg({className:e,align:t="start",...o}){return Rr("div",{"data-slot":"message","data-align":t,className:i("group/message flex items-start gap-2.5 data-[align=end]:flex-row-reverse",e),...o})}function Ag({className:e,...t}){return Rr("div",{"data-slot":"message-avatar",className:i("shrink-0",e),...t})}function Fg({className:e,...t}){return Rr("div",{"data-slot":"message-content",className:i("flex min-w-0 max-w-[80%] flex-col gap-1 group-data-[align=end]/message:items-end",e),...t})}function Hg({className:e,...t}){return Rr("div",{"data-slot":"message-header",className:i("flex items-center gap-2 text-xs text-muted-foreground",e),...t})}function $g({className:e,...t}){return Rr("div",{"data-slot":"message-footer",className:i("flex items-center gap-1.5 text-xs text-muted-foreground",e),...t})}import*as St from"react";import{Icon as on}from"@iconify/react";import{jsx as Ue,jsxs as Wo}from"react/jsx-runtime";function Og({options:e,selected:t,onChange:o,placeholder:r="Select items...",searchPlaceholder:n="Search...",emptyText:a="No items found.",disabled:s=!1,className:l}){let[d,c]=St.useState(!1),[m,f]=St.useState(""),p=St.useRef(null);St.useEffect(()=>{function b(R){p.current&&!p.current.contains(R.target)&&c(!1)}if(d)return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[d]);let u=St.useMemo(()=>{if(!m.trim())return e;let b=m.toLowerCase();return e.filter(R=>R.label.toLowerCase().includes(b)||R.description?.toLowerCase().includes(b)||R.value.toLowerCase().includes(b))},[e,m]),g=b=>{t.includes(b)?o(t.filter(R=>R!==b)):o([...t,b])},v=(b,R)=>{R.stopPropagation(),o(t.filter(y=>y!==b))},h=St.useMemo(()=>{let b=new Map;for(let R of e)b.set(R.value,R);return b},[e]);return Wo("div",{ref:p,className:i("relative",l),children:[Wo("div",{role:"combobox","aria-expanded":d,tabIndex:s?-1:0,onClick:()=>!s&&c(!d),onKeyDown:b=>{!s&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),c(!d))},className:i("flex min-h-8 w-full flex-wrap items-center gap-1 rounded-lg border border-input bg-transparent px-2.5 py-1 text-sm transition-colors cursor-pointer","focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 outline-none","dark:bg-input/30",s&&"pointer-events-none cursor-not-allowed opacity-50"),children:[t.length===0?Ue("span",{className:"text-muted-foreground select-none",children:r}):t.map(b=>{let R=h.get(b);return Wo("span",{className:"inline-flex items-center gap-1 rounded-md bg-muted px-2 py-0.5 text-xs font-medium text-foreground",children:[R?.label||b,!s&&Ue("button",{type:"button",onClick:y=>v(b,y),className:"rounded-sm hover:bg-foreground/10 p-0.5 transition-colors",children:Ue(on,{icon:"lucide:x",className:"size-3"})})]},b)}),Ue(on,{icon:"lucide:chevron-down",className:i("ml-auto size-4 shrink-0 text-muted-foreground transition-transform",d&&"rotate-180")})]}),d&&Wo("div",{className:"absolute z-50 mt-1 w-full rounded-lg border bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 animate-in fade-in-0 zoom-in-95",children:[Wo("div",{className:"flex items-center border-b px-2.5 py-1.5",children:[Ue(on,{icon:"lucide:search",className:"size-3.5 text-muted-foreground mr-2 shrink-0"}),Ue("input",{type:"text",value:m,onChange:b=>f(b.target.value),placeholder:n,className:"flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground",autoFocus:!0}),m&&Ue("button",{type:"button",onClick:()=>f(""),className:"text-muted-foreground hover:text-foreground",children:Ue(on,{icon:"lucide:x",className:"size-3.5"})})]}),Ue("div",{className:"max-h-52 overflow-y-auto p-1",children:u.length===0?Ue("div",{className:"py-4 text-center text-xs text-muted-foreground",children:a}):u.map(b=>{let R=t.includes(b.value);return Wo("div",{onClick:()=>g(b.value),className:i("flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors select-none",R?"bg-accent text-accent-foreground":"hover:bg-muted/60"),children:[Ue("div",{className:i("flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors",R?"border-primary bg-primary text-primary-foreground":"border-input"),children:R&&Ue(on,{icon:"lucide:check",className:"size-3"})}),Wo("div",{className:"flex-1 min-w-0",children:[Ue("div",{className:"truncate font-medium",children:b.label}),b.description&&Ue("div",{className:"truncate text-xs text-muted-foreground",children:b.description})]})]},b.value)})})]})]})}import{Icon as Bg}from"@iconify/react";import{jsx as da,jsxs as jg}from"react/jsx-runtime";function Gg({className:e,size:t="default",...o}){return jg("div",{className:i("group/native-select relative w-fit has-[select:disabled]:opacity-50",e),"data-slot":"native-select-wrapper","data-size":t,children:[da("select",{"data-slot":"native-select","data-size":t,className:"h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",...o}),da(Bg,{icon:"lucide:chevron-down",className:"pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none","aria-hidden":"true","data-slot":"native-select-icon"})]})}function Wg({...e}){return da("option",{"data-slot":"native-select-option",...e})}function Ug({className:e,...t}){return da("optgroup",{"data-slot":"native-select-optgroup",className:i(e),...t})}import*as Xt from"react";import*as ce from"@radix-ui/react-navigation-menu";import{Icon as qg}from"@iconify/react";import{jsx as Nt,jsxs as wu}from"react/jsx-runtime";var gu=Xt.forwardRef(({className:e,children:t,viewport:o=!0,...r},n)=>wu(ce.Root,{ref:n,"data-slot":"navigation-menu","data-viewport":o,className:i("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,o&&Nt(Fi,{})]}));gu.displayName=ce.Root.displayName;var vu=Xt.forwardRef(({className:e,...t},o)=>Nt(ce.List,{ref:o,"data-slot":"navigation-menu-list",className:i("group flex flex-1 list-none items-center justify-center gap-0",e),...t}));vu.displayName=ce.List.displayName;var bu=Xt.forwardRef(({className:e,...t},o)=>Nt(ce.Item,{ref:o,"data-slot":"navigation-menu-item",className:i("relative",e),...t}));bu.displayName=ce.Item.displayName;var xu=$("group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-muted/50 data-[state=open]:hover:bg-muted data-[state=open]:focus:bg-muted"),hu=Xt.forwardRef(({className:e,children:t,...o},r)=>wu(ce.Trigger,{ref:r,"data-slot":"navigation-menu-trigger",className:i(xu(),"group",e),...o,children:[t," ",Nt(qg,{icon:"lucide:chevron-down",className:"relative top-px ml-1 size-3 transition duration-300 group-data-[state=open]/navigation-menu-trigger:rotate-180","aria-hidden":"true"})]}));hu.displayName=ce.Trigger.displayName;var Ru=Xt.forwardRef(({className:e,...t},o)=>Nt(ce.Content,{ref:o,"data-slot":"navigation-menu-content",className:i("top-0 left-0 w-full p-1 [transition-timing-function:cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:duration-300 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 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out md:absolute md:w-auto",e),...t}));Ru.displayName=ce.Content.displayName;var yu=Xt.forwardRef(({className:e,...t},o)=>Nt(ce.Link,{ref:o,"data-slot":"navigation-menu-link",className:i("flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 data-[active]:bg-muted/50 data-[active]:hover:bg-muted data-[active]:focus:bg-muted [&_svg:not([class*='size-'])]:size-4",e),...t}));yu.displayName=ce.Link.displayName;var Fi=Xt.forwardRef(({className:e,...t},o)=>Nt("div",{className:i("absolute top-full left-0 isolate z-50 flex justify-center"),children:Nt(ce.Viewport,{ref:o,"data-slot":"navigation-menu-viewport",className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 duration-100 md:w-[var(--radix-navigation-menu-viewport-width)] data-[state=open]:animate-in data-[state=open]:zoom-in-90 data-[state=closed]:animate-out data-[state=closed]:zoom-out-90",e),...t})}));Fi.displayName=ce.Viewport.displayName;var Cu=Xt.forwardRef(({className:e,...t},o)=>Nt(ce.Indicator,{ref:o,"data-slot":"navigation-menu-indicator",className:i("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:Nt("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Cu.displayName=ce.Indicator.displayName;import*as Hi from"react";import{Icon as $i}from"@iconify/react";import{jsx as Mt,jsxs as Oi}from"react/jsx-runtime";var Pu=({className:e,...t})=>Mt("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:i("mx-auto flex w-full justify-center",e),...t});Pu.displayName="Pagination";var Su=Hi.forwardRef(({className:e,...t},o)=>Mt("ul",{ref:o,"data-slot":"pagination-content",className:i("flex flex-row items-center gap-1",e),...t}));Su.displayName="PaginationContent";var Nu=Hi.forwardRef(({className:e,...t},o)=>Mt("li",{ref:o,"data-slot":"pagination-item",className:i("",e),...t}));Nu.displayName="PaginationItem";var ua=({className:e,isActive:t,size:o="icon",...r})=>Mt("a",{"aria-current":t?"page":void 0,"data-slot":"pagination-link","data-active":t,className:i(Ct({variant:t?"outline":"ghost",size:o}),e),...r});ua.displayName="PaginationLink";var Mu=({className:e,...t})=>Oi(ua,{"aria-label":"Go to previous page",size:"default",className:i("gap-1 px-2.5 sm:pl-2.5",e),...t,children:[Mt($i,{icon:"lucide:chevron-left",className:"size-4"}),Mt("span",{className:"hidden sm:block",children:"Previous"})]});Mu.displayName="PaginationPrevious";var Tu=({className:e,...t})=>Oi(ua,{"aria-label":"Go to next page",size:"default",className:i("gap-1 px-2.5 sm:pr-2.5",e),...t,children:[Mt("span",{className:"hidden sm:block",children:"Next"}),Mt($i,{icon:"lucide:chevron-right",className:"size-4"})]});Tu.displayName="PaginationNext";var Du=({className:e,...t})=>Oi("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:i("flex size-8 items-center justify-center",e),...t,children:[Mt($i,{icon:"lucide:more-horizontal",className:"size-4"}),Mt("span",{className:"sr-only",children:"More pages"})]});Du.displayName="PaginationEllipsis";import*as Eu from"react";import*as ft from"@radix-ui/react-popover";import{jsx as rn}from"react/jsx-runtime";var Fe=ft.Root,He=ft.Trigger,Yg=ft.Anchor,Ee=Eu.forwardRef(({className:e,align:t="center",sideOffset:o=4,...r},n)=>rn(ft.Portal,{children:rn(ft.Content,{ref:n,"data-slot":"popover-content",align:t,sideOffset:o,className:i("z-50 flex w-72 origin-[var(--radix-popover-content-transform-origin)] flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-none duration-100 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...r})}));Ee.displayName=ft.Content.displayName;function Kg({className:e,...t}){return rn("div",{"data-slot":"popover-header",className:i("flex flex-col gap-0.5 text-sm",e),...t})}function Xg({className:e,...t}){return rn("div",{"data-slot":"popover-title",className:i("font-medium",e),...t})}function Jg({className:e,...t}){return rn("p",{"data-slot":"popover-description",className:i("text-muted-foreground",e),...t})}import*as Iu from"react";import*as nn from"@radix-ui/react-progress";import{jsx as ku}from"react/jsx-runtime";var ca=Iu.forwardRef(({className:e,color:t,value:o,...r},n)=>ku(nn.Root,{ref:n,"data-slot":"progress",className:i("relative flex h-1.5 w-full items-center overflow-x-hidden rounded-full bg-muted",e),...r,children:ku(nn.Indicator,{"data-slot":"progress-indicator",className:i(t?Br({color:t}):"bg-primary","size-full flex-1 transition-all"),style:{transform:`translateX(-${100-(o||0)}%)`}})}));ca.displayName=nn.Root.displayName;import*as Bi from"react";import*as ho from"@radix-ui/react-radio-group";import{jsx as pa}from"react/jsx-runtime";var zu=Bi.forwardRef(({className:e,...t},o)=>pa(ho.Root,{"data-slot":"radio-group",className:i("grid w-full gap-2",e),...t,ref:o}));zu.displayName=ho.Root.displayName;var Lu=Bi.forwardRef(({className:e,...t},o)=>pa(ho.Item,{ref:o,"data-slot":"radio-group-item",className:i("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary",e),...t,children:pa(ho.Indicator,{"data-slot":"radio-group-indicator",className:"flex size-4 items-center justify-center",children:pa("span",{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground"})})}));Lu.displayName=ho.Item.displayName;import*as Gi from"react";import*as st from"@radix-ui/react-scroll-area";import{jsx as an,jsxs as Qg}from"react/jsx-runtime";var sn=Gi.forwardRef(({className:e,children:t,...o},r)=>Qg(st.Root,{ref:r,"data-slot":"scroll-area",className:i("relative overflow-hidden",e),...o,children:[an(st.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:t}),an(Wi,{}),an(st.Corner,{})]}));sn.displayName=st.Root.displayName;var Wi=Gi.forwardRef(({className:e,orientation:t="vertical",...o},r)=>an(st.ScrollAreaScrollbar,{ref:r,"data-slot":"scroll-area-scrollbar","data-orientation":t,orientation:t,className:i("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...o,children:an(st.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})}));Wi.displayName=st.ScrollAreaScrollbar.displayName;import*as _u from"react";import{Icon as Ui}from"@iconify/react";import{jsx as gt,jsxs as Ro}from"react/jsx-runtime";function Zg({options:e,value:t,onValueChange:o,placeholder:r="Select...",searchPlaceholder:n="Search...",emptyText:a="No results found",allowClear:s=!1,clearLabel:l="None",disabled:d=!1,className:c}){let[m,f]=_u.useState(!1),p=e.find(u=>u.value===t);return Ro(Fe,{open:m,onOpenChange:f,children:[gt(He,{asChild:!0,children:Ro("button",{type:"button",role:"combobox","aria-expanded":m,disabled:d,className:i("flex h-8 w-full items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-1.5 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-input/30 dark:hover:bg-input/50",!p&&"text-muted-foreground",c),children:[gt("span",{className:"truncate text-left",children:p?p.label:r}),gt(Ui,{icon:"lucide:chevrons-up-down",className:"size-4 shrink-0 text-muted-foreground"})]})}),gt(Ee,{className:"w-[var(--radix-popover-trigger-width)] min-w-52 p-0",align:"start",children:Ro(Wt,{children:[gt(uo,{placeholder:n}),Ro(co,{children:[gt(po,{children:a}),Ro(mo,{children:[s&&Ro(Ut,{value:"__clear__",onSelect:()=>{o(""),f(!1)},children:[gt("span",{className:"text-muted-foreground italic flex-1",children:l}),!t&&gt(Ui,{icon:"lucide:check",className:"size-4 text-primary ml-auto shrink-0"})]}),e.map(u=>Ro(Ut,{value:`${u.label} ${u.sublabel||""}`,onSelect:()=>{o(u.value===t?"":u.value),f(!1)},children:[Ro("div",{className:"flex flex-col flex-1 min-w-0",children:[gt("span",{className:"truncate",children:u.label}),u.sublabel&&gt("span",{className:"text-xs text-muted-foreground truncate",children:u.sublabel})]}),u.value===t&&gt(Ui,{icon:"lucide:check",className:"size-4 text-primary ml-auto shrink-0"})]},u.value))]})]})]})})]})}import*as yo from"react";import*as Y from"@radix-ui/react-select";import{Icon as ma}from"@iconify/react";import{jsx as ke,jsxs as Yi}from"react/jsx-runtime";var ev=Y.Root,tv=Y.Group,ov=Y.Value,Vu=yo.forwardRef(({className:e,size:t="default",children:o,...r},n)=>Yi(Y.Trigger,{ref:n,"data-slot":"select-trigger","data-size":t,className:i("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[o,ke(Y.Icon,{asChild:!0,children:ke(ma,{icon:"lucide:chevron-down",className:"pointer-events-none size-4 text-muted-foreground"})})]}));Vu.displayName=Y.Trigger.displayName;var ji=yo.forwardRef(({className:e,...t},o)=>ke(Y.ScrollUpButton,{ref:o,"data-slot":"select-scroll-up-button",className:i("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:ke(ma,{icon:"lucide:chevron-up",className:"size-4"})}));ji.displayName=Y.ScrollUpButton.displayName;var qi=yo.forwardRef(({className:e,...t},o)=>ke(Y.ScrollDownButton,{ref:o,"data-slot":"select-scroll-down-button",className:i("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:ke(ma,{icon:"lucide:chevron-down",className:"size-4"})}));qi.displayName=Y.ScrollDownButton.displayName;var Au=yo.forwardRef(({className:e,children:t,position:o="item-aligned",align:r="center",...n},a)=>ke(Y.Portal,{children:Yi(Y.Content,{ref:a,"data-slot":"select-content","data-align-trigger":o==="item-aligned",className:i("relative z-50 max-h-[var(--radix-select-content-available-height)] min-w-36 origin-[var(--radix-select-content-transform-origin)] overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",o==="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:o,align:r,...n,children:[ke(ji,{}),ke(Y.Viewport,{"data-position":o,className:i("p-1 data-[position=popper]:h-[var(--radix-select-trigger-height)] data-[position=popper]:w-full data-[position=popper]:min-w-[var(--radix-select-trigger-width)]"),children:t}),ke(qi,{})]})}));Au.displayName=Y.Content.displayName;var Fu=yo.forwardRef(({className:e,...t},o)=>ke(Y.Label,{ref:o,"data-slot":"select-label",className:i("px-1.5 py-1 text-xs text-muted-foreground",e),...t}));Fu.displayName=Y.Label.displayName;var Hu=yo.forwardRef(({className:e,children:t,...o},r)=>Yi(Y.Item,{ref:r,"data-slot":"select-item",className:i("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...o,children:[ke("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:ke(Y.ItemIndicator,{children:ke(ma,{icon:"lucide:check",className:"pointer-events-none size-4"})})}),ke(Y.ItemText,{children:t})]}));Hu.displayName=Y.Item.displayName;var $u=yo.forwardRef(({className:e,...t},o)=>ke(Y.Separator,{ref:o,"data-slot":"select-separator",className:i("pointer-events-none -mx-1 my-1 h-px bg-border",e),...t}));$u.displayName=Y.Separator.displayName;import*as ln from"react";import*as ve from"@radix-ui/react-dialog";import{Icon as rv}from"@iconify/react";import{jsx as Tt,jsxs as Ki}from"react/jsx-runtime";var dn=ve.Root,nv=ve.Trigger,av=ve.Close,Xi=({...e})=>Tt(ve.Portal,{"data-slot":"sheet-portal",...e});Xi.displayName=ve.Portal.displayName;var Ji=ln.forwardRef(({className:e,...t},o)=>Tt(ve.Overlay,{ref:o,"data-slot":"sheet-overlay",className:i("fixed inset-0 z-50 bg-black/40 backdrop-blur-xs duration-100 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",e),...t}));Ji.displayName=ve.Overlay.displayName;var Ou=$("fixed z-50 flex flex-col gap-4 bg-background bg-clip-padding text-sm text-foreground shadow-lg transition duration-200 ease-in-out data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",{variants:{side:{top:"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 h-auto 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",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"},size:{default:"data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",xs:"data-[side=left]:sm:max-w-xs data-[side=right]:sm:max-w-xs",sm:"data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",md:"data-[side=left]:sm:max-w-md data-[side=right]:sm:max-w-md",lg:"data-[side=left]:sm:max-w-lg data-[side=right]:sm:max-w-lg",xl:"data-[side=left]:sm:max-w-xl data-[side=right]:sm:max-w-xl","2xl":"data-[side=left]:sm:max-w-2xl data-[side=right]:sm:max-w-2xl","3xl":"data-[side=left]:sm:max-w-3xl data-[side=right]:sm:max-w-3xl","4xl":"data-[side=left]:sm:max-w-4xl data-[side=right]:sm:max-w-4xl","5xl":"data-[side=left]:sm:max-w-5xl data-[side=right]:sm:max-w-5xl","6xl":"data-[side=left]:sm:max-w-6xl data-[side=right]:sm:max-w-6xl",full:"data-[side=left]:sm:max-w-full data-[side=right]:sm:max-w-full"}},defaultVariants:{side:"right",size:"default"}}),yr=ln.forwardRef(({side:e="right",size:t="default",showCloseButton:o=!0,className:r,children:n,...a},s)=>Ki(Xi,{children:[Tt(Ji,{}),Ki(ve.Content,{ref:s,"data-slot":"sheet-content","data-side":e,"data-size":t,className:i(Ou({side:e,size:t,className:r})),...a,children:[n,o&&Tt(ve.Close,{"data-slot":"sheet-close",asChild:!0,children:Ki(I,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm",children:[Tt(rv,{icon:"lucide:x",className:"size-4"}),Tt("span",{className:"sr-only",children:"Close"})]})})]})]}));yr.displayName=ve.Content.displayName;var Cr=({className:e,...t})=>Tt("div",{"data-slot":"sheet-header",className:i("flex flex-col gap-0.5 p-4",e),...t});Cr.displayName="SheetHeader";var Bu=({className:e,...t})=>Tt("div",{"data-slot":"sheet-footer",className:i("mt-auto flex flex-col gap-2 p-4",e),...t});Bu.displayName="SheetFooter";var wr=ln.forwardRef(({className:e,...t},o)=>Tt(ve.Title,{ref:o,"data-slot":"sheet-title",className:i("font-heading text-base font-medium text-foreground",e),...t}));wr.displayName=ve.Title.displayName;var Pr=ln.forwardRef(({className:e,...t},o)=>Tt(ve.Description,{ref:o,"data-slot":"sheet-description",className:i("text-sm text-muted-foreground",e),...t}));Pr.displayName=ve.Description.displayName;import{jsx as fa,jsxs as Gu}from"react/jsx-runtime";var iv=({className:e,open:t,title:o,size:r="default",side:n="right",description:a,children:s,cancel:l})=>fa(dn,{open:t,onOpenChange:d=>!d&&l(),children:Gu(yr,{className:e,side:n,size:r,children:[(o||a)&&Gu(Cr,{children:[o&&fa(wr,{children:o}),a&&fa(Pr,{children:a})]}),fa("div",{className:"flex-1 overflow-y-auto px-4 pb-4",children:s})]})});import*as q from"react";import{Slot as un}from"@radix-ui/react-slot";import{Icon as lv}from"@iconify/react";import{jsx as sv}from"react/jsx-runtime";function Uo({className:e,...t}){return sv("div",{"data-slot":"skeleton",className:i("animate-pulse rounded-md bg-muted",e),...t})}Uo.displayName="Skeleton";import{jsx as Q,jsxs as Sr}from"react/jsx-runtime";var dv="sidebar_state",uv=3600*24*7,cv="16rem",pv="18rem",mv="3rem",fv="b",Wu=q.createContext(null);function cn(){let e=q.useContext(Wu);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var Uu=q.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:o,className:r,style:n,children:a,...s},l)=>{let d=Za(),[c,m]=q.useState(!1),[f,p]=q.useState(e),u=t??f,g=q.useCallback(R=>{let y=typeof R=="function"?R(u):R;o?o(y):p(y),document.cookie=`${dv}=${y}; path=/; max-age=${uv}`},[o,u]),v=q.useCallback(()=>d?m(R=>!R):g(R=>!R),[d,g,m]);q.useEffect(()=>{let R=y=>{y.key===fv&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),v())};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[v]);let h=u?"expanded":"collapsed",b=q.useMemo(()=>({state:h,open:u,setOpen:g,isMobile:d,openMobile:c,setOpenMobile:m,toggleSidebar:v}),[h,u,g,d,c,m,v]);return Q(Wu.Provider,{value:b,children:Q(nr,{delayDuration:0,children:Q("div",{style:{"--sidebar-width":cv,"--sidebar-width-icon":mv,...n},className:i("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:l,...s,children:a})})})});Uu.displayName="SidebarProvider";var ju=q.forwardRef(({side:e="left",variant:t="sidebar",collapsible:o="offcanvas",className:r,children:n,...a},s)=>{let{isMobile:l,state:d,openMobile:c,setOpenMobile:m}=cn();return o==="none"?Q("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:s,...a,children:n}):l?Q(dn,{open:c,onOpenChange:m,...a,children:Sr(yr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":pv},side:e,children:[Sr(Cr,{className:"sr-only",children:[Q(wr,{children:"Sidebar"}),Q(Pr,{children:"Displays the mobile sidebar."})]}),Q("div",{className:"flex h-full w-full flex-col",children:n})]})}):Sr("div",{ref:s,className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?o:"","data-variant":t,"data-side":e,children:[Q("div",{className:i("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 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]")}),Q("div",{className:i("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 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",r),...a,children:Q("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:n})})]})});ju.displayName="Sidebar";var qu=q.forwardRef(({className:e,onClick:t,...o},r)=>{let{toggleSidebar:n}=cn();return Sr(I,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"default",className:i("h-7 w-7",e),onClick:a=>{t?.(a),n()},...o,children:[Q(lv,{icon:"lucide:panel-left",className:"h-4 w-4"}),Q("span",{className:"sr-only",children:"Toggle Sidebar"})]})});qu.displayName="SidebarTrigger";var Yu=q.forwardRef(({className:e,...t},o)=>{let{toggleSidebar:r}=cn();return Q("button",{ref:o,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:i("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})});Yu.displayName="SidebarRail";var Ku=q.forwardRef(({className:e,...t},o)=>Q("main",{ref:o,className:i("relative flex w-full flex-1 flex-col bg-background","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}));Ku.displayName="SidebarInset";var Xu=q.forwardRef(({className:e,...t},o)=>Q(Me,{ref:o,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Xu.displayName="SidebarInput";var Ju=q.forwardRef(({className:e,...t},o)=>Q("div",{ref:o,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",e),...t}));Ju.displayName="SidebarHeader";var Qu=q.forwardRef(({className:e,...t},o)=>Q("div",{ref:o,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",e),...t}));Qu.displayName="SidebarFooter";var Zu=q.forwardRef(({className:e,...t},o)=>Q(wt,{ref:o,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",e),...t}));Zu.displayName="SidebarSeparator";var ec=q.forwardRef(({className:e,...t},o)=>Q("div",{ref:o,"data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));ec.displayName="SidebarContent";var tc=q.forwardRef(({className:e,...t},o)=>Q("div",{ref:o,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",e),...t}));tc.displayName="SidebarGroup";var oc=q.forwardRef(({className:e,asChild:t=!1,...o},r)=>Q(t?un:"div",{ref:r,"data-sidebar":"group-label",className:i("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,opacity] duration-200 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),...o}));oc.displayName="SidebarGroupLabel";var rc=q.forwardRef(({className:e,asChild:t=!1,...o},r)=>Q(t?un:"button",{ref:r,"data-sidebar":"group-action",className:i("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),...o}));rc.displayName="SidebarGroupAction";var nc=q.forwardRef(({className:e,...t},o)=>Q("div",{ref:o,"data-sidebar":"group-content",className:i("w-full text-sm",e),...t}));nc.displayName="SidebarGroupContent";var ac=q.forwardRef(({className:e,...t},o)=>Q("ul",{ref:o,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",e),...t}));ac.displayName="SidebarMenu";var ic=q.forwardRef(({className:e,...t},o)=>Q("li",{ref:o,"data-sidebar":"menu-item",className:i("group/menu-item relative",e),...t}));ic.displayName="SidebarMenuItem";var sc=$("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:{default:"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))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),lc=q.forwardRef(({asChild:e=!1,isActive:t=!1,variant:o="default",size:r="default",tooltip:n,className:a,...s},l)=>{let d=e?un:"button",{isMobile:c,state:m}=cn(),f=Q(d,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:i(sc({variant:o,size:r}),a),...s});return n?(typeof n=="string"&&(n={children:n}),Sr(Fr,{children:[Q(Hr,{asChild:!0,children:f}),Q(ar,{side:"right",align:"center",hidden:m!=="collapsed"||c,...n})]})):f});lc.displayName="SidebarMenuButton";var dc=q.forwardRef(({className:e,asChild:t=!1,showOnHover:o=!1,...r},n)=>Q(t?un:"button",{ref:n,"data-sidebar":"menu-action",className:i("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",o&&"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}));dc.displayName="SidebarMenuAction";var uc=q.forwardRef(({className:e,...t},o)=>Q("div",{ref:o,"data-sidebar":"menu-badge",className:i("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","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}));uc.displayName="SidebarMenuBadge";var cc=q.forwardRef(({className:e,showIcon:t=!1,...o},r)=>{let n=q.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return Sr("div",{ref:r,"data-sidebar":"menu-skeleton",className:i("flex h-8 items-center gap-2 rounded-md px-2",e),...o,children:[t&&Q(Uo,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),Q(Uo,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":n}})]})});cc.displayName="SidebarMenuSkeleton";var pc=q.forwardRef(({className:e,...t},o)=>Q("ul",{ref:o,"data-sidebar":"menu-sub",className:i("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}));pc.displayName="SidebarMenuSub";var mc=q.forwardRef(({...e},t)=>Q("li",{ref:t,...e}));mc.displayName="SidebarMenuSubItem";var fc=q.forwardRef(({asChild:e=!1,size:t="md",isActive:o,className:r,...n},a)=>Q(e?un:"a",{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":o,className:i("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}));fc.displayName="SidebarMenuSubButton";import*as ga from"react";import*as Jt from"@radix-ui/react-slider";import{jsx as Qi,jsxs as gv}from"react/jsx-runtime";var gc=ga.forwardRef(({className:e,defaultValue:t,value:o,min:r=0,max:n=100,...a},s)=>{let l=ga.useMemo(()=>Array.isArray(o)?o:Array.isArray(t)?t:[r,n],[o,t,r,n]);return gv(Jt.Root,{ref:s,"data-slot":"slider",defaultValue:t,value:o,min:r,max:n,className:i("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",e),...a,children:[Qi(Jt.Track,{"data-slot":"slider-track",className:"relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5",children:Qi(Jt.Range,{"data-slot":"slider-range",className:"absolute bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"})}),Array.from({length:l.length},(d,c)=>Qi(Jt.Thumb,{"data-slot":"slider-thumb",className:"relative block size-3.5 shrink-0 rounded-full border border-ring bg-white ring-ring/50 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-none active:ring-3 disabled:pointer-events-none disabled:opacity-50"},c))]})});gc.displayName=Jt.Root.displayName;import{Icon as vv}from"@iconify/react";import{jsx as xv}from"react/jsx-runtime";function bv({className:e,...t}){return xv(vv,{icon:"lucide:loader-2",role:"status","aria-label":"Loading",className:i("size-4 animate-spin",e),...t})}import*as vc from"react";import*as Dt from"@radix-ui/react-slider";import{jsx as va,jsxs as hv}from"react/jsx-runtime";var bc=vc.forwardRef(({className:e,color:t="primary",...o},r)=>hv(Dt.Root,{ref:r,"data-slot":"dual-slider",className:i("relative flex w-full touch-none select-none items-center",e),...o,children:[va(Dt.Track,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-muted",children:va(Dt.Range,{className:i("absolute h-full",Br({color:t}))})}),va(Dt.Thumb,{className:"block size-4 rounded-full border border-ring bg-background shadow-sm transition-colors hover:ring-4 hover:ring-ring/50 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50"}),va(Dt.Thumb,{className:"block size-4 rounded-full border border-ring bg-background shadow-sm transition-colors hover:ring-4 hover:ring-ring/50 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50"})]}));bc.displayName=Dt.Root.displayName;import*as hc from"react";import*as pn from"@radix-ui/react-switch";import{jsx as xc}from"react/jsx-runtime";var Rc=hc.forwardRef(({className:e,size:t="default",...o},r)=>xc(pn.Root,{ref:r,"data-slot":"switch","data-size":t,className:i("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80 disabled:cursor-not-allowed disabled:opacity-50",e),...o,children:xc(pn.Thumb,{"data-slot":"switch-thumb",className:i("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-[state=checked]:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-[state=checked]:translate-x-[calc(100%-2px)] dark:data-[state=checked]:bg-primary-foreground group-data-[size=default]/switch:data-[state=unchecked]:translate-x-0 group-data-[size=sm]/switch:data-[state=unchecked]:translate-x-0 dark:data-[state=unchecked]:bg-foreground")})}));Rc.displayName=pn.Root.displayName;import*as Zt from"react";import{jsx as Qt}from"react/jsx-runtime";var ba=Zt.forwardRef(({className:e,...t},o)=>Qt("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:Qt("table",{ref:o,"data-slot":"table",className:i("w-full caption-bottom text-sm",e),...t})}));ba.displayName="Table";var xa=Zt.forwardRef(({className:e,...t},o)=>Qt("thead",{ref:o,"data-slot":"table-header",className:i("[&_tr]:border-b",e),...t}));xa.displayName="TableHeader";var ha=Zt.forwardRef(({className:e,...t},o)=>Qt("tbody",{ref:o,"data-slot":"table-body",className:i("[&_tr:last-child]:border-0",e),...t}));ha.displayName="TableBody";var Ra=Zt.forwardRef(({className:e,...t},o)=>Qt("tfoot",{ref:o,"data-slot":"table-footer",className:i("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Ra.displayName="TableFooter";var Co=Zt.forwardRef(({className:e,...t},o)=>Qt("tr",{ref:o,"data-slot":"table-row",className:i("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Co.displayName="TableRow";var mn=Zt.forwardRef(({className:e,...t},o)=>Qt("th",{ref:o,"data-slot":"table-head",className:i("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...t}));mn.displayName="TableHead";var Nr=Zt.forwardRef(({className:e,...t},o)=>Qt("td",{ref:o,"data-slot":"table-cell",className:i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...t}));Nr.displayName="TableCell";var yc=Zt.forwardRef(({className:e,...t},o)=>Qt("caption",{ref:o,"data-slot":"table-caption",className:i("mt-4 text-sm text-muted-foreground",e),...t}));yc.displayName="TableCaption";import*as fn from"react";import*as lt from"@radix-ui/react-tabs";import{jsx as ya}from"react/jsx-runtime";var Cc=fn.forwardRef(({className:e,orientation:t="horizontal",...o},r)=>ya(lt.Root,{ref:r,"data-slot":"tabs","data-orientation":t,orientation:t,className:i("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...o}));Cc.displayName=lt.Root.displayName;var wc=$("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-8 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}}),Pc=fn.forwardRef(({className:e,variant:t="default",...o},r)=>ya(lt.List,{ref:r,"data-slot":"tabs-list","data-variant":t,className:i(wc({variant:t}),e),...o}));Pc.displayName=lt.List.displayName;var Sc=fn.forwardRef(({className:e,...t},o)=>ya(lt.Trigger,{ref:o,"data-slot":"tabs-trigger",className:i("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-[state=active]:shadow-xs group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",e),...t}));Sc.displayName=lt.Trigger.displayName;var Nc=fn.forwardRef(({className:e,...t},o)=>ya(lt.Content,{ref:o,"data-slot":"tabs-content",className:i("flex-1 text-sm outline-none",e),...t}));Nc.displayName=lt.Content.displayName;import*as qo from"react";import*as Re from"@radix-ui/react-toast";import{Icon as Rv}from"@iconify/react";import{jsx as jo}from"react/jsx-runtime";var Zi=Re.Provider,Ca=qo.forwardRef(({className:e,style:t,...o},r)=>jo(Re.Viewport,{ref:r,"data-slot":"toast-viewport",style:{zIndex:9999,...t},className:i("fixed top-0 z-[9999] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...o}));Ca.displayName=Re.Viewport.displayName;var Mc=$("group pointer-events-auto mt-1.5 relative flex w-full items-center gap-3 overflow-hidden rounded-xl border bg-popover p-4 pr-8 text-popover-foreground shadow-lg ring-1 ring-foreground/10 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border-border bg-popover text-popover-foreground",outline:"border-border bg-background text-foreground",destructive:"destructive group border-destructive/30 bg-destructive/10 text-destructive dark:bg-destructive/20"},color:{default:"",primary:"border-primary/30 bg-primary/10 text-primary",secondary:"border-secondary bg-secondary text-secondary-foreground",success:"border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400",info:"border-sky-500/30 bg-sky-500/10 text-sky-600 dark:text-sky-400",warning:"border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400",danger:"border-destructive/30 bg-destructive/10 text-destructive dark:bg-destructive/20","primary-light":"border-primary/20 bg-primary/5 text-primary","secondary-light":"border-secondary bg-secondary/50 text-secondary-foreground","success-light":"border-emerald-500/20 bg-emerald-500/5 text-emerald-600 dark:text-emerald-400","info-light":"border-sky-500/20 bg-sky-500/5 text-sky-600 dark:text-sky-400","warning-light":"border-amber-500/20 bg-amber-500/5 text-amber-600 dark:text-amber-400","danger-light":"border-destructive/20 bg-destructive/5 text-destructive"}},defaultVariants:{variant:"default",color:"default"}}),wa=qo.forwardRef(({className:e,variant:t="default",color:o="default",...r},n)=>jo(Re.Root,{ref:n,"data-slot":"toast",className:i(Mc({variant:t,color:o}),e),...r}));wa.displayName=Re.Root.displayName;var Tc=qo.forwardRef(({className:e,...t},o)=>jo(Re.Action,{ref:o,"data-slot":"toast-action",className:i("inline-flex h-7 shrink-0 items-center justify-center rounded-lg border bg-transparent px-2.5 text-xs font-medium transition-colors hover:bg-muted focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50",e),...t}));Tc.displayName=Re.Action.displayName;var Pa=qo.forwardRef(({className:e,...t},o)=>jo(Re.Close,{ref:o,"data-slot":"toast-close",className:i("absolute right-2 top-2 rounded-md p-1 text-muted-foreground opacity-70 transition-opacity hover:text-foreground hover:opacity-100 focus:opacity-100 focus:outline-none focus:ring-2",e),"toast-close":"",...t,children:jo(Rv,{icon:"lucide:x",className:"size-4"})}));Pa.displayName=Re.Close.displayName;var Sa=qo.forwardRef(({className:e,...t},o)=>jo(Re.Title,{ref:o,"data-slot":"toast-title",className:i("text-sm font-medium [&+div]:text-xs",e),...t}));Sa.displayName=Re.Title.displayName;var Na=qo.forwardRef(({className:e,...t},o)=>jo(Re.Description,{ref:o,"data-slot":"toast-description",className:i("text-sm text-muted-foreground",e),...t}));Na.displayName=Re.Description.displayName;import{Icon as vn}from"@iconify/react";import*as Da from"react";var yv=5,Cv=1e6;var es=0;function wv(){return es=(es+1)%Number.MAX_VALUE,es.toString()}var ts=new Map,Dc=e=>{if(ts.has(e))return;let t=setTimeout(()=>{ts.delete(e),gn({type:"REMOVE_TOAST",toastId:e})},Cv);ts.set(e,t)},Pv=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,yv)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case"DISMISS_TOAST":{let{toastId:o}=t;return o?Dc(o):e.toasts.forEach(r=>{Dc(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===o||o===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)}}},Ma=[],Ta={toasts:[]};function gn(e){Ta=Pv(Ta,e),Ma.forEach(t=>{t(Ta)})}function Ec({...e}){let t=wv(),o=n=>gn({type:"UPDATE_TOAST",toast:{...n,id:t}}),r=()=>gn({type:"DISMISS_TOAST",toastId:t});return gn({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:n=>{n||r()}}}),{id:t,dismiss:r,update:o}}function os(){let[e,t]=Da.useState(Ta);return Da.useEffect(()=>(Ma.push(t),()=>{let o=Ma.indexOf(t);o>-1&&Ma.splice(o,1)}),[e]),{...e,toast:Ec,dismiss:o=>gn({type:"DISMISS_TOAST",toastId:o})}}import{jsx as Et,jsxs as rs}from"react/jsx-runtime";var Sv=({status:e})=>{switch(e){case"success":return Et(vn,{icon:"lucide:circle-check",className:"size-5 shrink-0 text-emerald-500"});case"error":return Et(vn,{icon:"lucide:octagon-x",className:"size-5 shrink-0 text-destructive"});case"warning":return Et(vn,{icon:"lucide:triangle-alert",className:"size-5 shrink-0 text-amber-500"});case"info":return Et(vn,{icon:"lucide:info",className:"size-5 shrink-0 text-sky-500"});default:return Et(vn,{icon:"lucide:circle-check",className:"size-5 shrink-0 text-emerald-500"})}},Nv=e=>{switch(e){case"success":return"success";case"error":return"danger";case"warning":return"warning";case"info":return"info";default:return"default"}},kc=()=>{let{toasts:e}=os();return rs(Zi,{children:[e.map(function({id:t,title:o,description:r,status:n="success",action:a,...s}){let l=Nv(n);return rs(wa,{color:l,...s,className:a?"justify-between":"",children:[Et(Sv,{status:n}),rs("div",{className:"grid flex-1 gap-0.5",children:[o&&Et(Sa,{children:o}),r&&Et(Na,{children:r})]}),a,Et(Pa,{})]},t)}),Et(Ca,{})]})};kc.displayName="Toaster";import{useTheme as Mv}from"next-themes";import{Toaster as Tv}from"sonner";import{Icon as bn}from"@iconify/react";import{jsx as Mr}from"react/jsx-runtime";var Dv=({...e})=>{let{theme:t="system"}=Mv();return Mr(Tv,{theme:t,className:"toaster group z-[9999]",icons:{success:Mr(bn,{icon:"lucide:circle-check",className:"size-4"}),info:Mr(bn,{icon:"lucide:info",className:"size-4"}),warning:Mr(bn,{icon:"lucide:triangle-alert",className:"size-4"}),error:Mr(bn,{icon:"lucide:octagon-x",className:"size-4"}),loading:Mr(bn,{icon:"lucide:loader-2",className:"size-4 animate-spin"})},style:{zIndex:9999,"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},toastOptions:{classNames:{toast:"cn-toast group toast group-[.toaster]:bg-popover group-[.toaster]:text-popover-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg group-[.toaster]:rounded-xl",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"}},...e})};import*as Ic from"react";import*as ns from"@radix-ui/react-toggle";import{jsx as Ev}from"react/jsx-runtime";var Ea=$("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted data-[state=on]:text-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}}),zc=Ic.forwardRef(({className:e,variant:t="default",size:o="default",...r},n)=>Ev(ns.Root,{ref:n,"data-slot":"toggle",className:i(Ea({variant:t,size:o,className:e})),...r}));zc.displayName=ns.Root.displayName;import*as Yo from"react";import*as Tr from"@radix-ui/react-toggle-group";import{jsx as as}from"react/jsx-runtime";var Lc=Yo.createContext({size:"default",variant:"default"}),_c=Yo.forwardRef(({className:e,variant:t,size:o,children:r,...n},a)=>as(Tr.Root,{ref:a,"data-slot":"toggle-group","data-variant":t,"data-size":o,className:i("group/toggle-group flex w-fit items-center rounded-lg data-[variant=outline]:shadow-xs",e),...n,children:as(Lc.Provider,{value:{variant:t,size:o},children:r})}));_c.displayName=Tr.Root.displayName;var Vc=Yo.forwardRef(({className:e,children:t,variant:o,size:r,...n},a)=>{let s=Yo.useContext(Lc);return as(Tr.Item,{ref:a,"data-slot":"toggle-group-item","data-variant":s.variant||o,"data-size":s.size||r,className:i(Ea({variant:s.variant||o,size:s.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-lg last:rounded-r-lg focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",e),...n,children:t})});Vc.displayName=Tr.Item.displayName;import{Fragment as zv,jsx as Xe,jsxs as Ko}from"react/jsx-runtime";var Ac=({item:e})=>{let t=o=>{o?.action?o.action():o.path&&(window.location.href=o.path)};return e.separator?Xe(Yt,{}):e.child?Xe(Ti,{children:Ko(Ei,{children:[Ko(Jn,{disabled:e.disabled,children:[e?.icon,Xe("span",{children:e?.label})]}),Xe(Di,{children:Xe(kv,{item:e.child})})]})}):Ko(Zn,{disabled:e.disabled,variant:e.variant,onClick:()=>t(e),children:[e?.icon,Xe("span",{children:e?.label}),e?.shortcut?Xe(ea,{className:"ml-auto",children:e.shortcut}):null]})},kv=({item:e})=>Xe(Qn,{children:e.map((t,o)=>Xe(Ac,{item:t},o))}),Iv=({icon:e=null,label:t,title:o,variant:r="outline",size:n,align:a="end",className:s,contentClassName:l,list:d=[]})=>{let c=!!(e&&!t);return Ko(Zr,{children:[Xe(en,{asChild:!0,children:Ko(I,{variant:c?"ghost":r,size:n??(c?"icon-sm":"default"),className:s,children:[e,t]})}),Ko(mr,{align:a,className:i("min-w-44",l),children:[o?Ko(zv,{children:[Xe(gr,{children:o}),Xe(Yt,{})]}):null,d.map((m,f)=>Xe(Ac,{item:m},f))]})]})};import{Icon as Fc}from"@iconify/react";import{jsx as Ie,jsxs as wo}from"react/jsx-runtime";function Lv({open:e,onOpenChange:t,title:o,description:r,message:n,children:a,footer:s,size:l="md",variant:d="default",showCloseButton:c=!0,className:m,action:f,cancel:p,confirmText:u="Confirm",cancelText:g="Cancel"}){let v=r??n;return Ie(io,{open:e,onOpenChange:b=>{t?.(b),b||p?.()},children:wo($t,{size:l,variant:d,showCloseButton:c,className:i(m),children:[(o||v)&&wo(Ot,{children:[o&&Ie(Bt,{children:o}),v&&Ie(Gt,{children:v})]}),a&&Ie("div",{className:"py-1",children:a}),s?Ie(so,{children:s}):f||p?wo(so,{children:[p&&Ie(I,{variant:"outline",onClick:()=>p(),children:g}),f&&Ie(I,{onClick:()=>f(),children:u})]}):null]})})}function ka({open:e,onOpenChange:t,title:o,description:r,onConfirm:n,onCancel:a,confirmText:s="Confirm",cancelText:l="Cancel",variant:d="default",loading:c=!1,isLoading:m=!1,icon:f}){let p=c||m,g=(()=>{switch(d){case"destructive":return{name:f||"solar:trash-bin-trash-bold-duotone",color:"text-destructive",bg:"bg-destructive/10 ring-destructive/20",btnVariant:"destructive"};case"warning":return{name:f||"solar:danger-triangle-bold-duotone",color:"text-amber-500",bg:"bg-amber-500/10 ring-amber-500/20",btnVariant:"default"};case"info":return{name:f||"solar:info-circle-bold-duotone",color:"text-sky-500",bg:"bg-sky-500/10 ring-sky-500/20",btnVariant:"default"};default:return{name:f||"solar:question-circle-bold-duotone",color:"text-primary",bg:"bg-primary/10 ring-primary/20",btnVariant:"default"}}})(),v=()=>{a?.(),t(!1)};return Ie(io,{open:e,onOpenChange:t,children:wo($t,{variant:"glass",size:"sm",showCloseButton:!1,className:"p-6",children:[wo("div",{className:"flex flex-col items-center text-center sm:flex-row sm:items-start sm:text-left gap-4",children:[Ie("div",{className:i("flex size-12 shrink-0 items-center justify-center rounded-2xl ring-1",g.bg),children:Ie(Fc,{icon:g.name,width:28,height:28,className:g.color})}),Ie("div",{className:"flex-1 space-y-1.5 pt-0.5",children:wo(Ot,{className:"p-0 text-center sm:text-left",children:[Ie(Bt,{className:"text-lg font-semibold tracking-tight",children:o}),r&&Ie(Gt,{className:"text-sm leading-relaxed text-muted-foreground",children:r})]})})]}),wo(so,{className:"mt-4 -mx-6 -mb-6 bg-white/30 dark:bg-white/5 border-white/30 dark:border-white/10 px-6 py-3.5 sm:justify-end gap-2.5",children:[Ie(I,{type:"button",variant:"ghost",onClick:v,disabled:p,className:"hover:bg-background/80",children:l}),Ie(I,{type:"button",variant:g.btnVariant,onClick:n,disabled:p,className:"min-w-24 shadow-sm",children:p?wo("span",{className:"flex items-center gap-2",children:[Ie(Fc,{icon:"lucide:loader-2",width:16,height:16,className:"animate-spin"}),s]}):s})]})]})})}var _v=ka;import vt from"react";import Vv from"react-draggable";import{Fragment as Av,jsx as ue,jsxs as Xo}from"react/jsx-runtime";var Hc=vt.forwardRef(({className:e,open:t,title:o,desc:r,size:n="md",variant:a="default",children:s,action:l,cancel:d,confirmText:c="Confirm",cancelText:m="Close",draggable:f=!1,resizable:p=!1,scrollable:u=!1,response:g=!1,style:v,...h},b)=>{let[R,y]=vt.useState(void 0),[x,P]=vt.useState({x:0,y:0}),[L,D]=vt.useState({}),[U,w]=vt.useState(!1),C=_o("only screen and (max-width: 768px)");vt.useEffect(()=>{t||(P({x:0,y:0}),D({}),w(!1))},[t]);let S=()=>{l?.()},A=()=>{d?.()},B=vt.useMemo(()=>typeof document<"u"?document.createElement("div"):null,[]),Z=vt.useRef(B);!Z.current&&B&&(Z.current=B);let me=vt.useCallback((T=0,K=0)=>{let je=Z.current;if(!je||typeof window>"u")return;let{clientWidth:he,clientHeight:ht}=window.document.documentElement,ye=je.getBoundingClientRect?.();if(!ye||ye.width===0&&ye.height===0)return;let Se={left:Math.round(-ye.left+T),right:Math.round(he-(ye.right-T)),top:Math.round(-ye.top+K),bottom:Math.round(ht-(ye.bottom-K))};y(z=>z&&Math.abs(z.left-Se.left)<=1&&Math.abs(z.right-Se.right)<=1&&Math.abs(z.top-Se.top)<=1&&Math.abs(z.bottom-Se.bottom)<=1?z:Se)},[]),Te=vt.useCallback(T=>{Z.current=T??B,T&&f&&me(x.x,x.y)},[B,f,me,x.x,x.y]),Le=(T,K)=>{me(K.x,K.y)},et=(T,K)=>{P({x:K.x,y:K.y})},E=(T,K)=>{K.preventDefault(),K.stopPropagation();let je=Z.current;if(!je||typeof window>"u")return;let he=je.getBoundingClientRect(),ht=K.clientX,ye=K.clientY,Se=x.x,z=x.y,To=360,Do=260,er=window.innerWidth-24,Lr=window.innerHeight-24;w(!0);let dt=tr=>{let Rt=tr.clientX-ht,_r=tr.clientY-ye,tt=he.width,ko=he.height,ot=Se,qe=z;T.includes("e")?(tt=Math.max(To,Math.min(er,he.width+Rt)),f&&(ot=Se+(tt-he.width)/2)):T.includes("w")&&(tt=Math.max(To,Math.min(er,he.width-Rt)),f&&(ot=Se-(tt-he.width)/2)),T.includes("s")&&(ko=Math.max(Do,Math.min(Lr,he.height+_r)),f&&(qe=z+(ko-he.height)/2)),D({width:Math.round(tt),height:Math.round(ko)}),f&&P({x:Math.round(ot),y:Math.round(qe)})},Eo=()=>{w(!1),window.removeEventListener("pointermove",dt),window.removeEventListener("pointerup",Eo)};window.addEventListener("pointermove",dt),window.addEventListener("pointerup",Eo)},ee=!!(L.width||L.height),k=Xo($t,{size:n,variant:a,className:i("h-auto flex flex-col",U&&"!transition-none !duration-0 select-none",ee&&"sm:max-w-[calc(100vw-1.5rem)]",e),style:{...v,...L.width?{width:`${L.width}px`}:{},...L.height?{height:`${L.height}px`}:{}},ref:Te,...h,children:[Xo(Ot,{className:i("dialog-header shrink-0 select-none touch-none group/drag",f?"cursor-grab active:cursor-grabbing min-h-7 py-1 flex flex-col justify-center pr-6":"",!o&&!r&&!f?"sr-only":""),children:[f&&ue("div",{className:"mx-auto mb-1 h-1.5 w-14 rounded-full bg-muted-foreground/25 transition-colors group-hover/drag:bg-muted-foreground/45"}),ue(Bt,{className:o?void 0:"sr-only",children:o||"Dialog"}),ue(Gt,{className:r?void 0:"sr-only",children:r||"Dialog content"})]}),ue("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:u?ue(sn,{className:"max-h-[75vh] flex-1",children:s}):s}),Xo(so,{className:"shrink-0",children:[ue(ii,{asChild:!0,className:"dialog-close",children:ue(I,{type:"button",variant:"outline",children:m})}),l&&ue(I,{type:"button",onClick:S,children:c})]}),p&&!C&&Xo(Av,{children:[ue("div",{onPointerDown:T=>E("e",T),className:"absolute top-3 bottom-4 right-0 z-50 w-2 cursor-ew-resize"}),ue("div",{onPointerDown:T=>E("w",T),className:"absolute top-3 bottom-4 left-0 z-50 w-2 cursor-ew-resize"}),ue("div",{onPointerDown:T=>E("s",T),className:"absolute bottom-0 left-4 right-4 z-50 h-2 cursor-ns-resize"}),ue("div",{onPointerDown:T=>E("sw",T),className:"absolute bottom-0 left-0 z-50 h-4 w-4 cursor-nesw-resize"}),ue("div",{onPointerDown:T=>E("se",T),title:"Resize",className:"absolute bottom-0 right-0 z-50 flex h-5 w-5 cursor-nwse-resize items-end justify-end p-1 text-muted-foreground/50 hover:text-foreground transition-colors",children:ue("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",className:"pointer-events-none",children:ue("path",{d:"M9 1L1 9M9 5L5 9M9 8.5L8.5 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]})]});return ue(vt.Fragment,{children:C&&g?ue(go,{open:t,onOpenChange:T=>{!T&&A()},children:Xo(vo,{className:i(e),children:[Xo(qn,{className:"text-left",children:[o&&ue(Kn,{children:o}),r&&ue(Xn,{children:r})]}),ue(sn,{className:"max-h-[70vh] px-4",children:s}),Xo(Yn,{className:"pt-2",children:[l&&ue(I,{type:"button",onClick:S,children:c}),ue(Si,{asChild:!0,children:ue(I,{type:"button",variant:"outline",children:m})})]})]})}):ue(io,{open:t,onOpenChange:T=>{!T&&A()},children:t&&f?ue(Vv,{nodeRef:Z,handle:".dialog-header",position:x,positionOffset:{x:"-50%",y:"-50%"},onStart:(T,K)=>{Le(T,K)},onDrag:et,bounds:R,disabled:!f||U,children:k}):k})})});Hc.displayName="DialogModal";import{jsx as is,jsxs as Fv}from"react/jsx-runtime";var $c=({img:e,className:t,size:o=80})=>is("div",{id:"loading","data-slot":"loader",className:i("flex min-h-[240px] w-full items-center justify-center bg-background/80 backdrop-blur-xs",t),children:Fv("div",{className:"relative flex items-center justify-center",style:{width:o,height:o},children:[is("div",{className:"absolute inset-0 animate-spin rounded-full border-2 border-muted border-t-primary"}),e&&is("img",{className:"relative z-10 max-h-[55%] max-w-[55%] object-contain",src:e,alt:"Loading"})]})});$c.displayName="Loader";import*as Oc from"react";import{Slot as Hv}from"@radix-ui/react-slot";import{jsx as Yv}from"react/jsx-runtime";var $v={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",subgrid:"grid-cols-subgrid"},Ov={1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",7:"grid-rows-7",8:"grid-rows-8",9:"grid-rows-9",10:"grid-rows-10",11:"grid-rows-11",12:"grid-rows-12",none:"grid-rows-none",subgrid:"grid-rows-subgrid"},Bv={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},Gv={stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},Wv={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},Uv={0:"gap-0","0.5":"gap-0.5",1:"gap-1","1.5":"gap-1.5",2:"gap-2","2.5":"gap-2.5",3:"gap-3","3.5":"gap-3.5",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",9:"gap-9",10:"gap-10",11:"gap-11",12:"gap-12"},jv={0:"gap-x-0","0.5":"gap-x-0.5",1:"gap-x-1","1.5":"gap-x-1.5",2:"gap-x-2","2.5":"gap-x-2.5",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"},qv={0:"gap-y-0","0.5":"gap-y-0.5",1:"gap-y-1","1.5":"gap-y-1.5",2:"gap-y-2","2.5":"gap-y-2.5",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"},Bc=Oc.forwardRef(({className:e,asChild:t=!1,display:o="grid",col:r,cols:n,rows:a,flow:s,align:l,justify:d,gap:c="4",gapX:m,gapY:f,...p},u)=>{let g=t?Hv:"div",v=n??r;return Yv(g,{ref:u,"data-slot":"grid",className:i(o,v?$v[String(v)]??`grid-cols-${v}`:void 0,a?Ov[String(a)]??`grid-rows-${a}`:void 0,s?Bv[s]:void 0,l?Gv[l]:void 0,d?Wv[d]:void 0,c!==void 0?Uv[String(c)]??`gap-${c}`:void 0,m!==void 0?jv[String(m)]??`gap-x-${m}`:void 0,f!==void 0?qv[String(f)]??`gap-y-${f}`:void 0,e),...p})});Bc.displayName="Grid";var Gc=Bc;import*as Wc from"react";import{Slot as Kv}from"@radix-ui/react-slot";import{jsx as tb}from"react/jsx-runtime";var Xv={auto:"col-auto",full:"col-span-full",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"},Jv={auto:"col-start-auto",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"},Qv={auto:"col-end-auto",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"},Zv={0:"space-x-0",1:"space-x-1",2:"space-x-2",3:"space-x-3",4:"space-x-4",5:"space-x-5",6:"space-x-6",8:"space-x-8",10:"space-x-10",12:"space-x-12"},eb={0:"space-y-0",1:"space-y-1",2:"space-y-2",3:"space-y-3",4:"space-y-4",5:"space-y-5",6:"space-y-6",8:"space-y-8",10:"space-y-10",12:"space-y-12"},Uc=Wc.forwardRef(({className:e,asChild:t=!1,col:o,span:r,spaceX:n,spaceY:a,start:s,end:l,...d},c)=>{let m=t?Kv:"div",f=r??o;return tb(m,{ref:c,"data-slot":"col",className:i(f?Xv[String(f)]??`col-span-${f}`:"col-auto",n!==void 0?Zv[String(n)]??`space-x-${n}`:void 0,a!==void 0?eb[String(a)]??`space-y-${a}`:void 0,s!==void 0?Jv[String(s)]??`col-start-${s}`:void 0,l!==void 0?Qv[String(l)]??`col-end-${l}`:void 0,e),...d})});Uc.displayName="Col";var jc=Uc;import*as qc from"react";import{Slot as ob}from"@radix-ui/react-slot";import{jsx as lb}from"react/jsx-runtime";var rb={row:"flex-row","row-reverse":"flex-row-reverse",col:"flex-col","col-reverse":"flex-col-reverse"},nb={stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},ab={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},ib={nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},sb={0:"gap-0","0.5":"gap-0.5",1:"gap-1","1.5":"gap-1.5",2:"gap-2","2.5":"gap-2.5",3:"gap-3","3.5":"gap-3.5",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",9:"gap-9",10:"gap-10",11:"gap-11",12:"gap-12"},Yc=qc.forwardRef(({className:e,asChild:t=!1,display:o="flex",direction:r="row",align:n="start",justify:a="start",wrap:s="nowrap",gap:l="2",...d},c)=>lb(t?ob:"div",{ref:c,"data-slot":"flex",className:i(o,rb[r],nb[n],ab[a],ib[s],l!==void 0?sb[String(l)]??`gap-${l}`:void 0,e),...d}));Yc.displayName="Flex";var Kc=Yc;import*as kt from"react";import{Icon as ss}from"@iconify/react";import{jsx as Pe,jsxs as Po}from"react/jsx-runtime";var Xc=({options:e=[],setOpen:t,selected:o,setSelect:r,filter:n,allowDeselect:a=!0})=>Po(Wt,{filter:n,children:[Pe(uo,{placeholder:"Search..."}),Po(co,{children:[Pe(po,{children:"No result found."}),Pe(mo,{children:e.map((s,l)=>Po(Ut,{onSelect:()=>{r(a&&s.value===o?"":s.value),t(!1)},value:String(s.label??s.value??""),disabled:s.disabled??!1,children:[Po("div",{className:"flex flex-col flex-1 min-w-0",children:[Pe("span",{className:"truncate",children:s.label}),s.sublabel&&Pe("span",{className:"text-xs text-muted-foreground truncate",children:s.sublabel})]}),Pe(ss,{icon:"lucide:check",className:i("ml-auto size-4 shrink-0 text-primary",s.value==o?"opacity-100":"opacity-0")})]},l))})]})]}),xn=kt.forwardRef(({title:e="Select...",options:t=[],value:o,filter:r,onChange:n,response:a=!1,allowDeselect:s=!0,className:l,...d},c)=>{let[m,f]=kt.useState(!1),[p,u]=kt.useState(o),g=_o("only screen and (max-width: 768px)");kt.useEffect(()=>{o!=p&&n?.(p)},[p]),kt.useEffect(()=>{u(o)},[o]);let v=t?.find(h=>h.value==p)?.label;return Pe(kt.Fragment,{children:g&&a?Po(go,{open:m,onOpenChange:f,children:[Pe(Qr,{asChild:!0,...d,children:Po(I,{variant:"outline",role:"combobox","aria-expanded":m,className:i("w-auto min-w-[140px] justify-between font-normal",!v&&"text-muted-foreground",l),ref:c,children:[Pe("span",{className:"truncate",children:v??e}),Pe(ss,{icon:"lucide:chevrons-up-down",className:"ml-2 size-4 shrink-0 text-muted-foreground"})]})}),Pe(vo,{children:Pe("div",{className:"mt-4 border-t p-2",children:Pe(Xc,{options:t,selected:p,setOpen:f,setSelect:u,filter:r,allowDeselect:s})})})]}):Po(Fe,{open:m,onOpenChange:f,children:[Pe(He,{asChild:!0,...d,children:Po(I,{variant:"outline",role:"combobox","aria-expanded":m,className:i("w-auto min-w-[140px] justify-between font-normal",!v&&"text-muted-foreground",l),ref:c,children:[Pe("span",{className:"truncate",children:v??e}),Pe(ss,{icon:"lucide:chevrons-up-down",className:"ml-2 size-4 shrink-0 text-muted-foreground"})]})}),Pe(Ee,{className:"w-[var(--radix-popover-trigger-width)] min-w-36 p-0",align:"start",children:Pe(Xc,{options:t,selected:p,setOpen:f,setSelect:u,filter:r,allowDeselect:s})})]})})});xn.displayName="ComboBox";import It from"react";import{Icon as Dr}from"@iconify/react";import{jsx as ie,jsxs as zt}from"react/jsx-runtime";var ls=It.forwardRef(({options:e=[],selected:t=[],tags:o,tag:r,setTag:n,filter:a,handleKeyDown:s,handleClick:l,...d},c)=>zt(Wt,{filter:a,children:[ie(uo,{placeholder:o?"Create or search...":"Search...",onValueChange:m=>n(m),onKeyDown:o?s:()=>{},ref:c,value:r,...d}),zt(co,{children:[ie(po,{children:"No items found."}),ie(mo,{children:e.map((m,f)=>{let p=t.includes(m?.value);return zt(Ut,{onSelect:()=>{p?l(m?.value,"remove"):l(m?.value,"add")},disabled:m.disabled??!1,children:[ie("div",{className:i("mr-2 flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors",p?"border-primary bg-primary text-primary-foreground":"border-input"),children:p&&ie(Dr,{icon:"lucide:check",className:"size-3"})}),ie("span",{className:"truncate",children:m.label})]},f)})})]})]}));ls.displayName="RenderSelect";var Jc=It.forwardRef(({options:e=[],value:t,placeholder:o,tags:r=!1,filter:n,onChange:a,response:s,className:l,...d},c)=>{let[m,f]=It.useState(!1),[p,u]=It.useState([]),[g,v]=It.useState(t??[]),[h,b]=It.useState(""),R=It.useRef(null),y=_o("(max-width: 767px)"),x=w=>{if((w.key=="Enter"||w.key=="Tab")&&h.trim()&&(w.preventDefault(),!p.some(S=>S.value===h))){let S={value:h,label:h};u([...p,S]),v([...g,h]),b(""),R.current&&(R.current.value="")}},P=w=>{w.stopPropagation(),v([]),u([])},L=(w,C)=>{let S=[...g];if(C==="add")S.includes(w)||S.push(w);else if(C==="remove"){let A=S.indexOf(w);A!==-1&&S.splice(A,1)}v(S)},D=(w,C)=>{let S=[];for(let A of w)A.value!==void 0&&C.includes(A.value)?S.push(A):A.options&&S.push(...D(A.options,C));return S};It.useEffect(()=>{t&&v(t)},[t]),It.useEffect(()=>{JSON.stringify(g)!=JSON.stringify(t)&&a?.(g)},[g]);let U=()=>ie("div",{className:"flex flex-wrap gap-1",children:D(e.concat(p),g).map((w,C)=>zt(Dn,{variant:"secondary",className:"items-center justify-center gap-1 pr-1",children:[w.label,ie("span",{"aria-hidden":"true",onClick:S=>{S.stopPropagation(),L(w.value,"remove")},className:"rounded-sm p-0.5 hover:bg-foreground/10 cursor-pointer",children:ie(Dr,{icon:"lucide:x",className:"size-3"})})]},C))});return ie(It.Fragment,{children:y&&s?zt(go,{open:m,onOpenChange:f,children:[ie(Qr,{asChild:!0,...d,children:zt(I,{variant:"outline",role:"combobox","aria-expanded":m,className:i("min-h-8 h-auto w-auto min-w-[160px] justify-between py-1 font-normal",g.length===0&&"text-muted-foreground",l),ref:c,children:[g.length>0?ie(U,{}):ie("span",{children:o??"Select..."}),zt("div",{className:"flex items-center gap-1 ml-2",children:[g.length>0?ie("span",{onClick:P,className:"rounded-sm p-0.5 text-muted-foreground hover:text-foreground",children:ie(Dr,{icon:"lucide:x",className:"size-3.5"})}):null,ie(Dr,{icon:"lucide:chevrons-up-down",className:"size-4 shrink-0 text-muted-foreground"})]})]})}),ie(vo,{children:ie("div",{className:"mt-4 border-t p-2",children:ie(ls,{options:e.concat(p),selected:g,tag:h,tags:r,setTag:b,filter:n,handleClick:L,handleKeyDown:x,ref:R})})})]}):zt(Fe,{open:m,onOpenChange:f,children:[ie(He,{asChild:!0,...d,children:zt(I,{variant:"outline",role:"combobox","aria-expanded":m,className:i("min-h-8 h-auto w-auto min-w-[160px] justify-between py-1 font-normal",g.length===0&&"text-muted-foreground",l),ref:c,children:[g.length>0?ie(U,{}):ie("span",{children:o??"Select..."}),zt("div",{className:"flex items-center gap-1 ml-2",children:[g.length>0?ie("span",{onClick:P,className:"rounded-sm p-0.5 text-muted-foreground hover:text-foreground",children:ie(Dr,{icon:"lucide:x",className:"size-3.5"})}):null,ie(Dr,{icon:"lucide:chevrons-up-down",className:"size-4 shrink-0 text-muted-foreground"})]})]})}),ie(Ee,{className:"w-[var(--radix-popover-trigger-width)] min-w-52 p-0",align:"start",children:ie(ls,{options:e.concat(p),selected:g,tag:h,tags:r,setTag:b,filter:n,handleClick:L,handleKeyDown:x,ref:R})})]})})});Jc.displayName="MultipleSelect";import db,{forwardRef as ub,useEffect as cb,useRef as pb,useState as mb}from"react";import{jsx as eo,jsxs as Qc}from"react/jsx-runtime";var Zc=ub(({className:e,itemClassName:t,control:o,label:r,iconStart:n,iconEnd:a,placeholder:s,description:l,component:d,clickIcon:c,...m},f)=>{let[p,u]=mb({}),g=pb(null),v=()=>{if(g.current){let b=g.current.scrollHeight;u({height:`${b}px`})}};cb(()=>{if(m?.type!=="textarea"||!g.current)return;v();let b=new ResizeObserver(v);return b.observe(g.current),()=>{b.disconnect()}},[m?.type]);let h=m?.type==="textarea"?p:void 0;return eo(zi,{control:o,name:m?.name,render:({field:b})=>Qc(ta,{className:i("grid gap-1.5",t),children:[r&&eo(oa,{children:r}),Qc("div",{className:i(n||a?"flex w-full items-stretch":"w-full",e),children:[n&&eo("button",{type:"button",tabIndex:-1,className:"inline-flex h-8 shrink-0 items-center justify-center rounded-l-lg border border-r-0 border-input bg-muted/50 px-2.5 text-muted-foreground transition-colors disabled:cursor-not-allowed disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4",disabled:m?.disabled,style:h,children:n}),eo(ra,{children:d?db.cloneElement(d,{...b,...m,ref:f}):m?.type==="textarea"?eo(br,{className:i(n&&"rounded-l-none",a&&"rounded-r-none"),placeholder:s,...b,...m,value:m?.value??b.value??"",ref:g}):eo(Me,{className:i(n&&"rounded-l-none",a&&"rounded-r-none"),placeholder:s,...b,...m,value:m?.value??b.value??""})}),a&&eo("button",{type:"button",className:"inline-flex h-8 shrink-0 cursor-pointer items-center justify-center rounded-r-lg border border-l-0 border-input bg-muted/50 px-2.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4",onClick:c,disabled:m?.disabled,style:h,children:a})]}),l&&eo(na,{children:l}),eo(aa,{})]})})});Zc.displayName="InputForm";import*as za from"react";import{DateTime as ds}from"luxon";import{Icon as fb}from"@iconify/react";import{jsx as Jo,jsxs as Ia}from"react/jsx-runtime";var ep=({value:e,onChange:t,className:o})=>{let[r,n]=za.useState(ds.fromJSDate(e??new Date));za.useEffect(()=>{n(ds.fromJSDate(e??new Date))},[e]);let a=d=>{if(!d)return;let m=ds.fromJSDate(d).set({hour:r.hour,minute:r.minute});n(m),t(m.toJSDate())},l=Ia("div",{className:"border-t px-3 pt-2.5 pb-3 space-y-1.5",children:[Jo(bo,{className:"text-xs text-muted-foreground",children:"Time"}),Jo(Me,{type:"time",step:"1",onChange:d=>{let{value:c}=d.target,m=Number.parseInt(c.split(":")[0]||"00",10),f=Number.parseInt(c.split(":")[1]||"00",10),p=r.set({hour:m,minute:f});n(p),t(p.toJSDate())},value:r.toFormat("HH:mm")})]});return Ia(Fe,{children:[Jo(He,{asChild:!0,children:Ia(I,{variant:"outline",className:i("w-[260px] justify-start text-left font-normal",!e&&"text-muted-foreground",o),children:[Jo(fb,{icon:"lucide:calendar-clock",className:"mr-2 size-4 text-muted-foreground"}),e?Jo("span",{className:"text-foreground",children:r.toFormat("DDD HH:mm")}):Jo("span",{children:"Pick a date & time"})]})}),Ia(Ee,{className:"w-auto p-0",align:"start",children:[Jo(no,{mode:"single",selected:r.toJSDate(),onSelect:a,initialFocus:!0}),l]})]})};ep.displayName="DateTimePicker";import tp from"react";import{addDays as gb,format as us}from"date-fns";import{Icon as vb}from"@iconify/react";import{Fragment as bb,jsx as Er,jsxs as cs}from"react/jsx-runtime";var op=({className:e,onChange:t})=>{let[o,r]=tp.useState({from:new Date,to:gb(new Date,20)});return tp.useEffect(()=>{t?.(o)},[o]),Er("div",{className:i("grid gap-2",e),children:cs(Fe,{children:[Er(He,{asChild:!0,children:cs(I,{id:"date",variant:"outline",className:i("w-[280px] justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[Er(vb,{icon:"lucide:calendar",className:"mr-2 size-4 text-muted-foreground"}),o?.from?o.to?cs(bb,{children:[us(o.from,"LLL dd, y")," -"," ",us(o.to,"LLL dd, y")]}):us(o.from,"LLL dd, y"):Er("span",{children:"Pick a date"})]})}),Er(Ee,{className:"w-auto p-0",align:"start",children:Er(no,{initialFocus:!0,mode:"range",defaultMonth:o?.from,selected:o,onSelect:r,numberOfMonths:2})})]})})};op.displayName="DatePickerRange";import*as Rn from"react";import{format as xb}from"date-fns";import{Icon as hb}from"@iconify/react";import{jsx as hn,jsxs as rp}from"react/jsx-runtime";var np=({value:e,onChange:t,placeholder:o="Pick a date",className:r})=>{let[n,a]=Rn.useState(e);return Rn.useEffect(()=>{a(e??new Date)},[e]),Rn.useEffect(()=>{e!=n&&t(n)},[n]),rp(Fe,{children:[hn(He,{asChild:!0,children:rp(I,{variant:"outline",className:i("w-[260px] justify-start text-left font-normal",!n&&"text-muted-foreground",r),children:[hn(hb,{icon:"lucide:calendar",className:"mr-2 size-4 text-muted-foreground"}),n?xb(n,"PPP"):hn("span",{children:o})]})}),hn(Ee,{className:"w-auto p-0",align:"start",children:hn(no,{mode:"single",selected:n,onSelect:a,initialFocus:!0})})]})};np.displayName="DatePicker";import to from"react";import{jsx as La}from"react/jsx-runtime";var ap=({height:e,setHourFormat:t,hourFormat:o})=>{let r=[{number:"AM",translatedValue:(e*2).toString(),selected:!1},{number:"PM",translatedValue:e.toString(),selected:!1}],[n,a]=to.useState([{number:"AM",translatedValue:(e*2).toString(),selected:o.hourFormat==="AM"},{number:"PM",translatedValue:e.toString(),selected:o.hourFormat==="PM"}]),s=to.useRef(null),[l,d]=to.useState(null),[c,m]=to.useState(null),[f,p]=to.useState(parseInt(n.filter(C=>C.selected===!0)[0]?.translatedValue)),[u,g]=to.useState(!1),[v,h]=to.useState(!1),b=C=>{h(!1),m(C.clientY),g(!0)},R=C=>{h(!1),m(C.targetTouches[0].clientY),g(!0)},y=()=>{g(!1),p(C=>C+(l??0)),h(!0)},x=()=>{g(!1),p(C=>C+(l??0)),h(!0)},P=C=>{d(u?C.clientY-(c??0):0)},L=C=>{d(u?C.targetTouches[0].clientY-(c??0):0)};to.useEffect(()=>{u&&s.current&&(s.current.style.transform=`translateY(${f+(l??0)}px)`)},[l]),to.useEffect(()=>{if(v){let C=Math.round((f??0)/e)*e;C<e&&(C=e),C>e*2&&(C=e*2),s.current&&(s.current.style.transform=`translateY(${C}px)`),p(C),d(0)}},[v]);let D=C=>{C.propertyName==="transform"&&[{number:"AM",translatedValue:(e*2).toString(),arrayNumber:0},{number:"PM",translatedValue:e.toString(),arrayNumber:1}].map(A=>{parseInt(A.translatedValue)===(f??0)&&(t({mount:!0,hourFormat:A.number}),a(()=>r.map(Z=>Z.number===A.number&&Z.translatedValue===(f??0).toString()?{...Z,selected:!0}:Z)))})},U=C=>{l===0&&p(parseInt(C.currentTarget.dataset.translatedValue??"0"))},w=C=>{C.deltaY>0?f&&f<=e&&p(S=>(S??0)+e):f&&f>=e*2&&p(S=>(S??0)-e)};return La("div",{className:"relative z-10 mr-1 w-1/2 overflow-hidden",onMouseDown:b,onMouseUp:y,onMouseMove:P,onMouseLeave:x,style:{height:e*5},onWheel:w,onTouchStart:R,onTouchMove:L,onTouchEnd:y,children:La("div",{ref:s,className:i(v&&"transition-all duration-100 ease-out"),onTransitionEnd:D,style:{transform:`translateY(${f}px)`},children:n.map((C,S)=>La("div",{className:"flex w-full select-none items-center justify-start text-center transition-all duration-100 ease-linear",style:{height:`${e}px`},children:La("div",{className:i("flex h-full cursor-pointer items-center justify-end rounded-md px-2 text-center text-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",C.selected&&"font-semibold text-foreground"),onClick:U,"data-translated-value":C.translatedValue,children:C.number})},S))})})},ip=ap;import Je from"react";var So=(e=54,t=24,o=null)=>{let r=[{number:"00",translatedValue:(e*2).toString(),selected:!1},{number:"01",translatedValue:e.toString(),selected:!1}],n=[{number:"00",translatedValue:e.toString(),selected:!1,hidden:!0},{number:"01",translatedValue:e.toString(),selected:!1}],a=t===13?n:r,s=0;for(let l=0;l<3;l++)for(let d=0;d<t;d++)if(!(l===0&&d<2||t===13&&d===0)){if(l===1&&d===o){d.toString().length===1?a.push({number:`0${d.toString()}`,translatedValue:`-${s}`,selected:!0}):a.push({number:d.toString(),translatedValue:`-${s}`,selected:!0}),s+=e;continue}d.toString().length===1?a.push({number:`0${d.toString()}`,translatedValue:`-${s}`,selected:!1}):a.push({number:d.toString(),translatedValue:`-${s}`,selected:!1}),s+=e}return a},_a=(e=54,t=24)=>{let o=[{number:"00",translatedValue:(e*2).toString(),arrayNumber:0},{number:"01",translatedValue:e.toString(),arrayNumber:1}],r=0;for(let n=0;n<3;n++)for(let a=0;a<t;a++)n===0&&a<2||t===13&&a===0||(a.toString().length===1?o.push({number:`0${a.toString()}`,translatedValue:`-${r}`,arrayNumber:o.length}):o.push({number:a.toString(),translatedValue:`-${r}`,arrayNumber:o.length}),r+=e);return o};import{jsx as Va}from"react/jsx-runtime";var sp=({height:e,value:t,setValue:o,use12Hours:r})=>{let n=r?13:24,[a,s]=Je.useState(()=>So(e,n,parseInt(t.slice(0,2)))),l=Je.useRef(null),[d,c]=Je.useState(null),[m,f]=Je.useState(null),[p,u]=Je.useState(()=>{let k=So(e,n,parseInt(t.slice(0,2))).find(T=>T.number===t.slice(0,2)&&T.selected===!0);return parseInt(k?.translatedValue??"0")}),[g,v]=Je.useState(!1),[h,b]=Je.useState(!1),[R,y]=Je.useState(null),[x,P]=Je.useState(null),[L,D]=Je.useState(null),[U,w]=Je.useState(null),C=k=>{b(!1),f(k.clientY),v(!0),y(performance.now())},S=k=>{b(!1),f(k.targetTouches[0].clientY),v(!0),y(performance.now())},A=()=>{v(!1),u(k=>(k??0)+(d??0)),b(!0),P(performance.now()),performance.now()-(R??0)<=100?D("fast"):D("slow"),d&&d<0?w("down"):w("up")},B=()=>{v(!1),u(k=>(k??0)+(d??0)),b(!0),P(performance.now()),performance.now()-(R??0)<=100?D("fast"):D("slow"),d&&d<0?w("down"):w("up")},Z=k=>{c(g?k.clientY-(m??0):0)},me=k=>{c(g?k.targetTouches[0].clientY-(m??0):0)};Je.useEffect(()=>{g&&l.current&&(l.current.style.transform=`translateY(${(p??0)+(d??0)}px)`)},[d]),Je.useEffect(()=>{if(h){if((x??0)-(R??0)<=100&&d!==0){let k;U==="down"?k=(p??0)-120/((x??0)-(R??0))*100:U==="up"&&(k=(p??0)+120/((x??0)-(R??0))*100);let T=Math.round((k??0)/e)*e;r?(T<e*-34&&(T=e*-34),T>e&&(T=e)):(T<e*-69&&(T=e*-69),T>e*2&&(T=e*2)),l.current&&(l.current.style.transform=`translateY(${T}px)`),u(T)}if((x??0)-(R??0)>100&&d!==0){let k=Math.round((p??0)/e)*e;r?(k<e*-34&&(k=e*-34),k>e&&(k=e)):(k<e*-69&&(k=e*-69),k>e*2&&(k=e*2)),l.current&&(l.current.style.transform=`translateY(${k}px)`),u(k)}c(0)}},[h]);let Te=()=>{_a(e,n).map(k=>{parseInt(k.translatedValue)===(p??0)&&(o(T=>`${k.number}:${T.slice(3,6)}`),s(()=>So(e,n).map(K=>K.number===k.number&&K.translatedValue===(p??0).toString()?{...K,selected:!0}:K)))})},Le=k=>{d===0&&u(parseInt(k.currentTarget.dataset.translatedValue??"0"))},et=h&&L==="fast",E=h&&L==="slow",ee=k=>{r?k.deltaY>0?(p??0)<e&&u(T=>(T??0)+e):(p??0)>e*-34&&u(T=>(T??0)-e):k.deltaY>0?(p??0)<e*2&&u(T=>(T??0)+e):(p??0)>e*-69&&u(T=>(T??0)-e)};return Va("div",{className:i("relative z-10 mr-1 w-1/2 overflow-hidden",r&&"react-ios-time-picker-hour-12hour-format"),onMouseDown:C,onMouseUp:A,onMouseMove:Z,onMouseLeave:B,style:{height:e*5},onWheel:ee,onTouchStart:S,onTouchMove:me,onTouchEnd:A,children:Va("div",{ref:l,className:i(et&&"transition-all duration-700 ease-out",E&&"transition-all duration-500 ease-out"),onTransitionEnd:Te,style:{transform:`translateY(${p}px)`},children:a.map((k,T)=>Va("div",{className:"flex w-full select-none items-center justify-end text-center transition-all duration-100 ease-linear",style:{height:`${e}px`},children:Va("div",{className:i("flex h-full cursor-pointer items-center justify-end rounded-md px-2 text-center text-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",k.selected&&"font-semibold text-foreground",k?.hidden&&"pointer-events-none invisible opacity-0"),onClick:Le,"data-translated-value":k.translatedValue,children:k.number})},T))})})},lp=sp;import Qe from"react";import{jsx as Aa}from"react/jsx-runtime";var dp=({height:e,value:t,setValue:o})=>{let[r,n]=Qe.useState(()=>So(e,60,parseInt(t.slice(3,6)))),a=Qe.useRef(null),[s,l]=Qe.useState(null),[d,c]=Qe.useState(null),[m,f]=Qe.useState(()=>{let E=So(e,60,parseInt(t.slice(3,6))).find(ee=>ee.number===t.slice(3,6)&&ee.selected===!0);return parseInt(E?.translatedValue??"0")}),[p,u]=Qe.useState(!1),[g,v]=Qe.useState(!1),[h,b]=Qe.useState(null),[R,y]=Qe.useState(null),[x,P]=Qe.useState(null),[L,D]=Qe.useState(null),U=E=>{v(!1),c(E.clientY),u(!0),b(performance.now())},w=E=>{v(!1),c(E.targetTouches[0].clientY),u(!0),b(performance.now())},C=()=>{u(!1),f(E=>(E??0)+(s??0)),v(!0),y(performance.now()),performance.now()-(h??0)<=100?P("fast"):P("slow"),s&&s<0?D("down"):D("up")},S=()=>{u(!1),f(E=>(E??0)+(s??0)),v(!0),y(performance.now()),performance.now()-(h??0)<=100?P("fast"):P("slow"),s&&s<0?D("down"):D("up")},A=E=>{l(p?E.clientY-(d??0):0)},B=E=>{l(p?E.targetTouches[0].clientY-(d??0):0)};Qe.useEffect(()=>{p&&a.current&&(a.current.style.transform=`translateY(${(m??0)+(s??0)}px)`)},[s]),Qe.useEffect(()=>{if(g){if((R??0)-(h??0)<=100&&s!==0){let E;L==="down"?E=(m??0)-120/((R??0)-(h??0))*100:L==="up"&&(E=(m??0)+120/((R??0)-(h??0))*100);let ee=Math.round((E??0)/e)*e;ee<e*-177&&(ee=e*-177),ee>e*2&&(ee=e*2),a.current&&(a.current.style.transform=`translateY(${ee}px)`),f(ee)}if((R??0)-(h??0)>100&&s!==0){let E=Math.round((m??0)/e)*e;E<e*-177&&(E=e*-177),E>e*2&&(E=e*2),a.current&&(a.current.style.transform=`translateY(${E}px)`),f(E)}l(0)}},[g]);let Z=()=>{_a(e,60).map(E=>{parseInt(E.translatedValue)===(m??0)&&(o(ee=>`${ee.slice(0,2)}:${E.number}`),n(()=>So(e,60).map(k=>k.number===E.number&&k.translatedValue===(m??0).toString()?{...k,selected:!0}:k)))})},me=E=>{s===0&&f(parseInt(E.currentTarget.dataset.translatedValue??"0"))},Te=g&&x==="fast",Le=g&&x==="slow",et=E=>{E.deltaY>0?(m??0)<e*2&&f(ee=>(ee??0)+e):(m??0)>e*-177&&f(ee=>(ee??0)-e)};return Aa("div",{className:"relative z-10 ml-1 w-1/2 overflow-hidden",onMouseDown:U,onMouseUp:C,onMouseMove:A,onMouseLeave:S,style:{height:e*5},onWheel:et,onTouchStart:w,onTouchMove:B,onTouchEnd:C,children:Aa("div",{ref:a,className:i(Te&&"transition-all duration-700 ease-out",Le&&"transition-all duration-500 ease-out"),onTransitionEnd:Z,style:{transform:`translateY(${m}px)`},children:r.map((E,ee)=>Aa("div",{className:"flex w-full select-none items-center justify-start text-center transition-all duration-100 ease-linear",style:{height:`${e}px`},children:Aa("div",{className:i("flex h-full cursor-pointer items-center justify-start rounded-md px-2 text-center text-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",E.selected&&"font-semibold text-foreground"),onClick:me,"data-translated-value":E.translatedValue,children:E.number})},ee))})})},up=dp;import{Fragment as RN,jsx as hN,jsxs as yN}from"react/jsx-runtime";import kr from"react";import{Icon as Rb}from"@iconify/react";import Fa from"react";import{jsx as Qo,jsxs as ps}from"react/jsx-runtime";var cp=({pickerDefaultValue:e,initialValue:t="00:00",height:o=28,onSave:r,onCancel:n,cancelButtonText:a,saveButtonText:s,controllers:l,setInputValue:d,setIsOpen:c,seperator:m,use12Hours:f,onAmPmChange:p})=>{let u=f?t.slice(0,5):t,[g,v]=Fa.useState(t===null?e:u),[h,b]=Fa.useState({mount:!1,hourFormat:t.slice(6,8)});Fa.useEffect(()=>{if(!l){let P=f?`${g} ${h.hourFormat}`:g;d(P)}},[g,h]),Fa.useEffect(()=>{h.mount&&p?.(h.hourFormat)},[h]);let R={height:o,value:g,setValue:v,controllers:l,use12Hours:f,onAmPmChange:p,setHourFormat:b,hourFormat:h},y=()=>{let P=f?`${g} ${h.hourFormat}`:g;d(P),r?.(P),c(!1)},x=()=>{n?.(),c(!1)};return ps("div",{className:"overflow-hidden rounded-lg bg-popover text-popover-foreground transition-all duration-150 ease-out",children:[ps("div",{className:"relative flex w-56 justify-center overflow-hidden py-5",style:{height:`${o*5+40}px`},children:[Qo("div",{className:"pointer-events-none absolute left-0 right-0 z-0 mx-3 rounded-md bg-accent/80",style:{top:`${o*2+20}px`,height:`${o}px`}}),Qo(lp,{...R}),m&&Qo("div",{className:"relative z-10 flex h-full items-center justify-center font-semibold text-foreground",children:":"}),Qo(up,{...R}),f&&Qo(ip,{...R})]}),l&&ps("div",{className:"relative z-20 flex items-center justify-end gap-1.5 border-t bg-muted/30 p-2",children:[Qo(I,{variant:"ghost",size:"sm",onClick:x,children:a}),Qo(I,{variant:"default",size:"sm",onClick:y,children:s})]})]})},pp=cp;import{jsx as Ir,jsxs as mp}from"react/jsx-runtime";var yb=({className:e,value:t=null,cellHeight:o=28,placeHolder:r="Select Time",pickerDefaultValue:n="10:00",onChange:a,onFocus:s,onBlur:l,onSave:d,onCancel:c,disabled:m=!1,open:f=!1,required:p=!1,cancelButtonText:u="Cancel",saveButtonText:g="Save",controllers:v=!1,seperator:h=!0,id:b=null,use12Hours:R=!1,onAmPmChange:y,name:x=null,onOpen:P,inputClassName:L=null})=>{let[D,U]=kr.useState(f),[w,C]=kr.useState(o),[S,A]=kr.useState(t),B=()=>{s?.(),P?.()};kr.useEffect(()=>{C(o)},[o]),kr.useEffect(()=>{S!=t&&a?.({name:x,id:b,value:S})},[S]),kr.useEffect(()=>{!t&&R?A(`${n} AM`):!t&&!R&&A(n)},[]);let Z={height:w,onSave:d,onCancel:c,cancelButtonText:u,saveButtonText:g,controllers:v,setInputValue:A,setIsOpen:U,seperator:h,use12Hours:R,onAmPmChange:y,initialValue:S,pickerDefaultValue:n};return Ir("div",{className:i("grid gap-2",e),children:mp(Fe,{open:D,onOpenChange:U,children:[Ir(He,{asChild:!0,children:mp("div",{className:"relative",children:[Ir(Rb,{icon:"lucide:clock",className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),Ir(Me,{id:b??"time",name:x??"time",className:i("cursor-pointer pl-8",L),value:S||"",type:"text",placeholder:r,readOnly:!0,disabled:m,required:p,onFocus:B})]})}),Ir(Ee,{className:"w-auto p-0",align:"start",onFocus:B,onBlur:l,children:Ir(pp,{...Z})})]})})};import*as se from"react";import*as wn from"react";function No(e,t){return typeof e=="function"?e(t):e}function Ze(e,t){return o=>{t.setState(r=>({...r,[e]:No(o,r[e])}))}}function Ba(e){return e instanceof Function}function Cb(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function wb(e,t){let o=[],r=n=>{n.forEach(a=>{o.push(a);let s=t(a);s!=null&&s.length&&r(s)})};return r(e),o}function _(e,t,o){let r=[],n;return a=>{let s;o.key&&o.debug&&(s=Date.now());let l=e(a);if(!(l.length!==r.length||l.some((m,f)=>r[f]!==m)))return n;r=l;let c;if(o.key&&o.debug&&(c=Date.now()),n=t(...l),o==null||o.onChange==null||o.onChange(n),o.key&&o.debug&&o!=null&&o.debug()){let m=Math.round((Date.now()-s)*100)/100,f=Math.round((Date.now()-c)*100)/100,p=f/16,u=(g,v)=>{for(g=String(g);g.length<v;)g=" "+g;return g};console.info(`%c\u23F1 ${u(f,5)} /${u(m,5)} ms`,`
57
+ font-size: .6rem;
58
+ font-weight: bold;
59
+ color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,o?.key)}return n}}function V(e,t,o,r){return{debug:()=>{var n;return(n=e?.debugAll)!=null?n:e[t]},key:process.env.NODE_ENV==="development"&&o,onChange:r}}function Pb(e,t,o,r){let n=()=>{var s;return(s=a.getValue())!=null?s:e.options.renderFallbackValue},a={id:`${t.id}_${o.id}`,row:t,column:o,getValue:()=>t.getValue(r),renderValue:n,getContext:_(()=>[e,o,t,a],(s,l,d,c)=>({table:s,column:l,row:d,cell:c,getValue:c.getValue,renderValue:c.renderValue}),V(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(a,o,t,e)},{}),a}function Sb(e,t,o,r){var n,a;let l={...e._getDefaultColumnDef(),...t},d=l.accessorKey,c=(n=(a=l.id)!=null?a:d?typeof String.prototype.replaceAll=="function"?d.replaceAll(".","_"):d.replace(/\./g,"_"):void 0)!=null?n:typeof l.header=="string"?l.header:void 0,m;if(l.accessorFn?m=l.accessorFn:d&&(d.includes(".")?m=p=>{let u=p;for(let v of d.split(".")){var g;u=(g=u)==null?void 0:g[v],process.env.NODE_ENV!=="production"&&u===void 0&&console.warn(`"${v}" in deeply nested key "${d}" returned undefined.`)}return u}:m=p=>p[l.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(l.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let f={id:`${String(c)}`,accessorFn:m,parent:r,depth:o,columnDef:l,columns:[],getFlatColumns:_(()=>[!0],()=>{var p;return[f,...(p=f.columns)==null?void 0:p.flatMap(u=>u.getFlatColumns())]},V(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:_(()=>[e._getOrderColumnsFn()],p=>{var u;if((u=f.columns)!=null&&u.length){let g=f.columns.flatMap(v=>v.getLeafColumns());return p(g)}return[f]},V(e.options,"debugColumns","column.getLeafColumns"))};for(let p of e._features)p.createColumn==null||p.createColumn(f,e);return f}var ze="debugHeaders";function fp(e,t,o){var r;let a={id:(r=o.id)!=null?r:t.id,column:t,index:o.index,isPlaceholder:!!o.isPlaceholder,placeholderId:o.placeholderId,depth:o.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let s=[],l=d=>{d.subHeaders&&d.subHeaders.length&&d.subHeaders.map(l),s.push(d)};return l(a),s},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(a,e)}),a}var Nb={createTable:e=>{e.getHeaderGroups=_(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,o,r,n)=>{var a,s;let l=(a=r?.map(f=>o.find(p=>p.id===f)).filter(Boolean))!=null?a:[],d=(s=n?.map(f=>o.find(p=>p.id===f)).filter(Boolean))!=null?s:[],c=o.filter(f=>!(r!=null&&r.includes(f.id))&&!(n!=null&&n.includes(f.id)));return Ha(t,[...l,...c,...d],e)},V(e.options,ze,"getHeaderGroups")),e.getCenterHeaderGroups=_(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,o,r,n)=>(o=o.filter(a=>!(r!=null&&r.includes(a.id))&&!(n!=null&&n.includes(a.id))),Ha(t,o,e,"center")),V(e.options,ze,"getCenterHeaderGroups")),e.getLeftHeaderGroups=_(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,o,r)=>{var n;let a=(n=r?.map(s=>o.find(l=>l.id===s)).filter(Boolean))!=null?n:[];return Ha(t,a,e,"left")},V(e.options,ze,"getLeftHeaderGroups")),e.getRightHeaderGroups=_(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,o,r)=>{var n;let a=(n=r?.map(s=>o.find(l=>l.id===s)).filter(Boolean))!=null?n:[];return Ha(t,a,e,"right")},V(e.options,ze,"getRightHeaderGroups")),e.getFooterGroups=_(()=>[e.getHeaderGroups()],t=>[...t].reverse(),V(e.options,ze,"getFooterGroups")),e.getLeftFooterGroups=_(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),V(e.options,ze,"getLeftFooterGroups")),e.getCenterFooterGroups=_(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),V(e.options,ze,"getCenterFooterGroups")),e.getRightFooterGroups=_(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),V(e.options,ze,"getRightFooterGroups")),e.getFlatHeaders=_(()=>[e.getHeaderGroups()],t=>t.map(o=>o.headers).flat(),V(e.options,ze,"getFlatHeaders")),e.getLeftFlatHeaders=_(()=>[e.getLeftHeaderGroups()],t=>t.map(o=>o.headers).flat(),V(e.options,ze,"getLeftFlatHeaders")),e.getCenterFlatHeaders=_(()=>[e.getCenterHeaderGroups()],t=>t.map(o=>o.headers).flat(),V(e.options,ze,"getCenterFlatHeaders")),e.getRightFlatHeaders=_(()=>[e.getRightHeaderGroups()],t=>t.map(o=>o.headers).flat(),V(e.options,ze,"getRightFlatHeaders")),e.getCenterLeafHeaders=_(()=>[e.getCenterFlatHeaders()],t=>t.filter(o=>{var r;return!((r=o.subHeaders)!=null&&r.length)}),V(e.options,ze,"getCenterLeafHeaders")),e.getLeftLeafHeaders=_(()=>[e.getLeftFlatHeaders()],t=>t.filter(o=>{var r;return!((r=o.subHeaders)!=null&&r.length)}),V(e.options,ze,"getLeftLeafHeaders")),e.getRightLeafHeaders=_(()=>[e.getRightFlatHeaders()],t=>t.filter(o=>{var r;return!((r=o.subHeaders)!=null&&r.length)}),V(e.options,ze,"getRightLeafHeaders")),e.getLeafHeaders=_(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,o,r)=>{var n,a,s,l,d,c;return[...(n=(a=t[0])==null?void 0:a.headers)!=null?n:[],...(s=(l=o[0])==null?void 0:l.headers)!=null?s:[],...(d=(c=r[0])==null?void 0:c.headers)!=null?d:[]].map(m=>m.getLeafHeaders()).flat()},V(e.options,ze,"getLeafHeaders"))}};function Ha(e,t,o,r){var n,a;let s=0,l=function(p,u){u===void 0&&(u=1),s=Math.max(s,u),p.filter(g=>g.getIsVisible()).forEach(g=>{var v;(v=g.columns)!=null&&v.length&&l(g.columns,u+1)},0)};l(e);let d=[],c=(p,u)=>{let g={depth:u,id:[r,`${u}`].filter(Boolean).join("_"),headers:[]},v=[];p.forEach(h=>{let b=[...v].reverse()[0],R=h.column.depth===g.depth,y,x=!1;if(R&&h.column.parent?y=h.column.parent:(y=h.column,x=!0),b&&b?.column===y)b.subHeaders.push(h);else{let P=fp(o,y,{id:[r,u,y.id,h?.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${v.filter(L=>L.column===y).length}`:void 0,depth:u,index:v.length});P.subHeaders.push(h),v.push(P)}g.headers.push(h),h.headerGroup=g}),d.push(g),u>0&&c(v,u-1)},m=t.map((p,u)=>fp(o,p,{depth:s,index:u}));c(m,s-1),d.reverse();let f=p=>p.filter(g=>g.column.getIsVisible()).map(g=>{let v=0,h=0,b=[0];g.subHeaders&&g.subHeaders.length?(b=[],f(g.subHeaders).forEach(y=>{let{colSpan:x,rowSpan:P}=y;v+=x,b.push(P)})):v=1;let R=Math.min(...b);return h=h+R,g.colSpan=v,g.rowSpan=h,{colSpan:v,rowSpan:h}});return f((n=(a=d[0])==null?void 0:a.headers)!=null?n:[]),d}var Ss=(e,t,o,r,n,a,s)=>{let l={id:t,index:r,original:o,depth:n,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:d=>{if(l._valuesCache.hasOwnProperty(d))return l._valuesCache[d];let c=e.getColumn(d);if(c!=null&&c.accessorFn)return l._valuesCache[d]=c.accessorFn(l.original,r),l._valuesCache[d]},getUniqueValues:d=>{if(l._uniqueValuesCache.hasOwnProperty(d))return l._uniqueValuesCache[d];let c=e.getColumn(d);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(l._uniqueValuesCache[d]=c.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[d]):(l._uniqueValuesCache[d]=[l.getValue(d)],l._uniqueValuesCache[d])},renderValue:d=>{var c;return(c=l.getValue(d))!=null?c:e.options.renderFallbackValue},subRows:a??[],getLeafRows:()=>wb(l.subRows,d=>d.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let d=[],c=l;for(;;){let m=c.getParentRow();if(!m)break;d.push(m),c=m}return d.reverse()},getAllCells:_(()=>[e.getAllLeafColumns()],d=>d.map(c=>Pb(e,l,c,c.id)),V(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:_(()=>[l.getAllCells()],d=>d.reduce((c,m)=>(c[m.column.id]=m,c),{}),V(e.options,"debugRows","getAllCellsByColumnId"))};for(let d=0;d<e._features.length;d++){let c=e._features[d];c==null||c.createRow==null||c.createRow(l,e)}return l},Mb={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},vp=(e,t,o)=>{var r,n;let a=o==null||(r=o.toString())==null?void 0:r.toLowerCase();return!!(!((n=e.getValue(t))==null||(n=n.toString())==null||(n=n.toLowerCase())==null)&&n.includes(a))};vp.autoRemove=e=>bt(e);var bp=(e,t,o)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(o))};bp.autoRemove=e=>bt(e);var xp=(e,t,o)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===o?.toLowerCase()};xp.autoRemove=e=>bt(e);var hp=(e,t,o)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(o)};hp.autoRemove=e=>bt(e);var Rp=(e,t,o)=>!o.some(r=>{var n;return!((n=e.getValue(t))!=null&&n.includes(r))});Rp.autoRemove=e=>bt(e)||!(e!=null&&e.length);var yp=(e,t,o)=>o.some(r=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)});yp.autoRemove=e=>bt(e)||!(e!=null&&e.length);var Cp=(e,t,o)=>e.getValue(t)===o;Cp.autoRemove=e=>bt(e);var wp=(e,t,o)=>e.getValue(t)==o;wp.autoRemove=e=>bt(e);var Ns=(e,t,o)=>{let[r,n]=o,a=e.getValue(t);return a>=r&&a<=n};Ns.resolveFilterValue=e=>{let[t,o]=e,r=typeof t!="number"?parseFloat(t):t,n=typeof o!="number"?parseFloat(o):o,a=t===null||Number.isNaN(r)?-1/0:r,s=o===null||Number.isNaN(n)?1/0:n;if(a>s){let l=a;a=s,s=l}return[a,s]};Ns.autoRemove=e=>bt(e)||bt(e[0])&&bt(e[1]);var oo={includesString:vp,includesStringSensitive:bp,equalsString:xp,arrIncludes:hp,arrIncludesAll:Rp,arrIncludesSome:yp,equals:Cp,weakEquals:wp,inNumberRange:Ns};function bt(e){return e==null||e===""}var Tb={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ze("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let o=t.getCoreRowModel().flatRows[0],r=o?.getValue(e.id);return typeof r=="string"?oo.includesString:typeof r=="number"?oo.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?oo.equals:Array.isArray(r)?oo.arrIncludes:oo.weakEquals},e.getFilterFn=()=>{var o,r;return Ba(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(o=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?o:oo[e.columnDef.filterFn]},e.getCanFilter=()=>{var o,r,n;return((o=e.columnDef.enableColumnFilter)!=null?o:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((n=t.options.enableFilters)!=null?n:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var o;return(o=t.getState().columnFilters)==null||(o=o.find(r=>r.id===e.id))==null?void 0:o.value},e.getFilterIndex=()=>{var o,r;return(o=(r=t.getState().columnFilters)==null?void 0:r.findIndex(n=>n.id===e.id))!=null?o:-1},e.setFilterValue=o=>{t.setColumnFilters(r=>{let n=e.getFilterFn(),a=r?.find(m=>m.id===e.id),s=No(o,a?a.value:void 0);if(gp(n,s,e)){var l;return(l=r?.filter(m=>m.id!==e.id))!=null?l:[]}let d={id:e.id,value:s};if(a){var c;return(c=r?.map(m=>m.id===e.id?d:m))!=null?c:[]}return r!=null&&r.length?[...r,d]:[d]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let o=e.getAllLeafColumns(),r=n=>{var a;return(a=No(t,n))==null?void 0:a.filter(s=>{let l=o.find(d=>d.id===s.id);if(l){let d=l.getFilterFn();if(gp(d,s.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var o,r;e.setColumnFilters(t?[]:(o=(r=e.initialState)==null?void 0:r.columnFilters)!=null?o:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function gp(e,t,o){return(e&&e.autoRemove?e.autoRemove(t,o):!1)||typeof t>"u"||typeof t=="string"&&!t}var Db=(e,t,o)=>o.reduce((r,n)=>{let a=n.getValue(e);return r+(typeof a=="number"?a:0)},0),Eb=(e,t,o)=>{let r;return o.forEach(n=>{let a=n.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},kb=(e,t,o)=>{let r;return o.forEach(n=>{let a=n.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},Ib=(e,t,o)=>{let r,n;return o.forEach(a=>{let s=a.getValue(e);s!=null&&(r===void 0?s>=s&&(r=n=s):(r>s&&(r=s),n<s&&(n=s)))}),[r,n]},zb=(e,t)=>{let o=0,r=0;if(t.forEach(n=>{let a=n.getValue(e);a!=null&&(a=+a)>=a&&(++o,r+=a)}),o)return r/o},Lb=(e,t)=>{if(!t.length)return;let o=t.map(a=>a.getValue(e));if(!Cb(o))return;if(o.length===1)return o[0];let r=Math.floor(o.length/2),n=o.sort((a,s)=>a-s);return o.length%2!==0?n[r]:(n[r-1]+n[r])/2},_b=(e,t)=>Array.from(new Set(t.map(o=>o.getValue(e))).values()),Vb=(e,t)=>new Set(t.map(o=>o.getValue(e))).size,Ab=(e,t)=>t.length,ms={sum:Db,min:Eb,max:kb,extent:Ib,mean:zb,median:Lb,unique:_b,uniqueCount:Vb,count:Ab},Fb={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,o;return(t=(o=e.getValue())==null||o.toString==null?void 0:o.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Ze("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(o=>o!=null&&o.includes(e.id)?o.filter(r=>r!==e.id):[...o??[],e.id])},e.getCanGroup=()=>{var o,r;return((o=e.columnDef.enableGrouping)!=null?o:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var o;return(o=t.getState().grouping)==null?void 0:o.includes(e.id)},e.getGroupedIndex=()=>{var o;return(o=t.getState().grouping)==null?void 0:o.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let o=e.getCanGroup();return()=>{o&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let o=t.getCoreRowModel().flatRows[0],r=o?.getValue(e.id);if(typeof r=="number")return ms.sum;if(Object.prototype.toString.call(r)==="[object Date]")return ms.extent},e.getAggregationFn=()=>{var o,r;if(!e)throw new Error;return Ba(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(o=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?o:ms[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var o,r;e.setGrouping(t?[]:(o=(r=e.initialState)==null?void 0:r.grouping)!=null?o:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=o=>{if(e._groupingValuesCache.hasOwnProperty(o))return e._groupingValuesCache[o];let r=t.getColumn(o);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[o]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[o]):e.getValue(o)},e._groupingValuesCache={}},createCell:(e,t,o,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===o.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var n;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((n=o.subRows)!=null&&n.length)}}};function Hb(e,t,o){if(!(t!=null&&t.length)||!o)return e;let r=e.filter(a=>!t.includes(a.id));return o==="remove"?r:[...t.map(a=>e.find(s=>s.id===a)).filter(Boolean),...r]}var $b={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ze("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=_(o=>[Cn(t,o)],o=>o.findIndex(r=>r.id===e.id),V(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=o=>{var r;return((r=Cn(t,o)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=o=>{var r;let n=Cn(t,o);return((r=n[n.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var o;e.setColumnOrder(t?[]:(o=e.initialState.columnOrder)!=null?o:[])},e._getOrderColumnsFn=_(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,o,r)=>n=>{let a=[];if(!(t!=null&&t.length))a=n;else{let s=[...t],l=[...n];for(;l.length&&s.length;){let d=s.shift(),c=l.findIndex(m=>m.id===d);c>-1&&a.push(l.splice(c,1)[0])}a=[...a,...l]}return Hb(a,o,r)},V(e.options,"debugTable","_getOrderColumnsFn"))}},fs=()=>({left:[],right:[]}),Ob={getInitialState:e=>({columnPinning:fs(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Ze("columnPinning",e)}),createColumn:(e,t)=>{e.pin=o=>{let r=e.getLeafColumns().map(n=>n.id).filter(Boolean);t.setColumnPinning(n=>{var a,s;if(o==="right"){var l,d;return{left:((l=n?.left)!=null?l:[]).filter(f=>!(r!=null&&r.includes(f))),right:[...((d=n?.right)!=null?d:[]).filter(f=>!(r!=null&&r.includes(f))),...r]}}if(o==="left"){var c,m;return{left:[...((c=n?.left)!=null?c:[]).filter(f=>!(r!=null&&r.includes(f))),...r],right:((m=n?.right)!=null?m:[]).filter(f=>!(r!=null&&r.includes(f)))}}return{left:((a=n?.left)!=null?a:[]).filter(f=>!(r!=null&&r.includes(f))),right:((s=n?.right)!=null?s:[]).filter(f=>!(r!=null&&r.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var n,a,s;return((n=r.columnDef.enablePinning)!=null?n:!0)&&((a=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{let o=e.getLeafColumns().map(l=>l.id),{left:r,right:n}=t.getState().columnPinning,a=o.some(l=>r?.includes(l)),s=o.some(l=>n?.includes(l));return a?"left":s?"right":!1},e.getPinnedIndex=()=>{var o,r;let n=e.getIsPinned();return n?(o=(r=t.getState().columnPinning)==null||(r=r[n])==null?void 0:r.indexOf(e.id))!=null?o:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=_(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(o,r,n)=>{let a=[...r??[],...n??[]];return o.filter(s=>!a.includes(s.column.id))},V(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=_(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(o,r)=>(r??[]).map(a=>o.find(s=>s.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),V(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=_(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(o,r)=>(r??[]).map(a=>o.find(s=>s.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),V(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var o,r;return e.setColumnPinning(t?fs():(o=(r=e.initialState)==null?void 0:r.columnPinning)!=null?o:fs())},e.getIsSomeColumnsPinned=t=>{var o;let r=e.getState().columnPinning;if(!t){var n,a;return!!((n=r.left)!=null&&n.length||(a=r.right)!=null&&a.length)}return!!((o=r[t])!=null&&o.length)},e.getLeftLeafColumns=_(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,o)=>(o??[]).map(r=>t.find(n=>n.id===r)).filter(Boolean),V(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=_(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,o)=>(o??[]).map(r=>t.find(n=>n.id===r)).filter(Boolean),V(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=_(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,o,r)=>{let n=[...o??[],...r??[]];return t.filter(a=>!n.includes(a.id))},V(e.options,"debugColumns","getCenterLeafColumns"))}};function Bb(e){return e||(typeof document<"u"?document:null)}var $a={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},gs=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Gb={getDefaultColumnDef:()=>$a,getInitialState:e=>({columnSizing:{},columnSizingInfo:gs(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ze("columnSizing",e),onColumnSizingInfoChange:Ze("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var o,r,n;let a=t.getState().columnSizing[e.id];return Math.min(Math.max((o=e.columnDef.minSize)!=null?o:$a.minSize,(r=a??e.columnDef.size)!=null?r:$a.size),(n=e.columnDef.maxSize)!=null?n:$a.maxSize)},e.getStart=_(o=>[o,Cn(t,o),t.getState().columnSizing],(o,r)=>r.slice(0,e.getIndex(o)).reduce((n,a)=>n+a.getSize(),0),V(t.options,"debugColumns","getStart")),e.getAfter=_(o=>[o,Cn(t,o),t.getState().columnSizing],(o,r)=>r.slice(e.getIndex(o)+1).reduce((n,a)=>n+a.getSize(),0),V(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(o=>{let{[e.id]:r,...n}=o;return n})},e.getCanResize=()=>{var o,r;return((o=e.columnDef.enableResizing)!=null?o:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let o=0,r=n=>{if(n.subHeaders.length)n.subHeaders.forEach(r);else{var a;o+=(a=n.column.getSize())!=null?a:0}};return r(e),o},e.getStart=()=>{if(e.index>0){let o=e.headerGroup.headers[e.index-1];return o.getStart()+o.getSize()}return 0},e.getResizeHandler=o=>{let r=t.getColumn(e.column.id),n=r?.getCanResize();return a=>{if(!r||!n||(a.persist==null||a.persist(),vs(a)&&a.touches&&a.touches.length>1))return;let s=e.getSize(),l=e?e.getLeafHeaders().map(b=>[b.column.id,b.column.getSize()]):[[r.id,r.getSize()]],d=vs(a)?Math.round(a.touches[0].clientX):a.clientX,c={},m=(b,R)=>{typeof R=="number"&&(t.setColumnSizingInfo(y=>{var x,P;let L=t.options.columnResizeDirection==="rtl"?-1:1,D=(R-((x=y?.startOffset)!=null?x:0))*L,U=Math.max(D/((P=y?.startSize)!=null?P:0),-.999999);return y.columnSizingStart.forEach(w=>{let[C,S]=w;c[C]=Math.round(Math.max(S+S*U,0)*100)/100}),{...y,deltaOffset:D,deltaPercentage:U}}),(t.options.columnResizeMode==="onChange"||b==="end")&&t.setColumnSizing(y=>({...y,...c})))},f=b=>m("move",b),p=b=>{m("end",b),t.setColumnSizingInfo(R=>({...R,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},u=Bb(o),g={moveHandler:b=>f(b.clientX),upHandler:b=>{u?.removeEventListener("mousemove",g.moveHandler),u?.removeEventListener("mouseup",g.upHandler),p(b.clientX)}},v={moveHandler:b=>(b.cancelable&&(b.preventDefault(),b.stopPropagation()),f(b.touches[0].clientX),!1),upHandler:b=>{var R;u?.removeEventListener("touchmove",v.moveHandler),u?.removeEventListener("touchend",v.upHandler),b.cancelable&&(b.preventDefault(),b.stopPropagation()),p((R=b.touches[0])==null?void 0:R.clientX)}},h=Wb()?{passive:!1}:!1;vs(a)?(u?.addEventListener("touchmove",v.moveHandler,h),u?.addEventListener("touchend",v.upHandler,h)):(u?.addEventListener("mousemove",g.moveHandler,h),u?.addEventListener("mouseup",g.upHandler,h)),t.setColumnSizingInfo(b=>({...b,startOffset:d,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var o;e.setColumnSizing(t?{}:(o=e.initialState.columnSizing)!=null?o:{})},e.resetHeaderSizeInfo=t=>{var o;e.setColumnSizingInfo(t?gs():(o=e.initialState.columnSizingInfo)!=null?o:gs())},e.getTotalSize=()=>{var t,o;return(t=(o=e.getHeaderGroups()[0])==null?void 0:o.headers.reduce((r,n)=>r+n.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,o;return(t=(o=e.getLeftHeaderGroups()[0])==null?void 0:o.headers.reduce((r,n)=>r+n.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,o;return(t=(o=e.getCenterHeaderGroups()[0])==null?void 0:o.headers.reduce((r,n)=>r+n.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,o;return(t=(o=e.getRightHeaderGroups()[0])==null?void 0:o.headers.reduce((r,n)=>r+n.getSize(),0))!=null?t:0}}},Oa=null;function Wb(){if(typeof Oa=="boolean")return Oa;let e=!1;try{let t={get passive(){return e=!0,!1}},o=()=>{};window.addEventListener("test",o,t),window.removeEventListener("test",o)}catch{e=!1}return Oa=e,Oa}function vs(e){return e.type==="touchstart"}var Ub={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ze("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=o=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:o??!e.getIsVisible()}))},e.getIsVisible=()=>{var o,r;let n=e.columns;return(o=n.length?n.some(a=>a.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?o:!0},e.getCanHide=()=>{var o,r;return((o=e.columnDef.enableHiding)!=null?o:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>o=>{e.toggleVisibility==null||e.toggleVisibility(o.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=_(()=>[e.getAllCells(),t.getState().columnVisibility],o=>o.filter(r=>r.column.getIsVisible()),V(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=_(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(o,r,n)=>[...o,...r,...n],V(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(o,r)=>_(()=>[r(),r().filter(n=>n.getIsVisible()).map(n=>n.id).join("_")],n=>n.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),V(e.options,"debugColumns",o));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=o=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(o),e.resetColumnVisibility=o=>{var r;e.setColumnVisibility(o?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=o=>{var r;o=(r=o)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((n,a)=>({...n,[a.id]:o||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(o=>!(o.getIsVisible!=null&&o.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(o=>o.getIsVisible==null?void 0:o.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>o=>{var r;e.toggleAllColumnsVisible((r=o.target)==null?void 0:r.checked)}}};function Cn(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}var jb={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},qb={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Ze("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var o;let r=(o=e.getCoreRowModel().flatRows[0])==null||(o=o._getAllCellsByColumnId()[t.id])==null?void 0:o.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var o,r,n,a;return((o=e.columnDef.enableGlobalFilter)!=null?o:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableFilters)!=null?n:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>oo.includesString,e.getGlobalFilterFn=()=>{var t,o;let{globalFilterFn:r}=e.options;return Ba(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(o=e.options.filterFns)==null?void 0:o[r])!=null?t:oo[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Yb={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ze("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,o=!1;e._autoResetExpanded=()=>{var r,n;if(!t){e._queue(()=>{t=!0});return}if((r=(n=e.options.autoResetAll)!=null?n:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(o)return;o=!0,e._queue(()=>{e.resetExpanded(),o=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var n,a;e.setExpanded(r?{}:(n=(a=e.initialState)==null?void 0:a.expanded)!=null?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{let r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(n=>!n.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{let s=a.split(".");r=Math.max(r,s.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=o=>{t.setExpanded(r=>{var n;let a=r===!0?!0:!!(r!=null&&r[e.id]),s={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(l=>{s[l]=!0}):s=r,o=(n=o)!=null?n:!a,!a&&o)return{...s,[e.id]:!0};if(a&&!o){let{[e.id]:l,...d}=s;return d}return r})},e.getIsExpanded=()=>{var o;let r=t.getState().expanded;return!!((o=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?o:r===!0||r?.[e.id])},e.getCanExpand=()=>{var o,r,n;return(o=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?o:((r=t.options.enableExpanding)!=null?r:!0)&&!!((n=e.subRows)!=null&&n.length)},e.getIsAllParentsExpanded=()=>{let o=!0,r=e;for(;o&&r.parentId;)r=t.getRow(r.parentId,!0),o=r.getIsExpanded();return o},e.getToggleExpandedHandler=()=>{let o=e.getCanExpand();return()=>{o&&e.toggleExpanded()}}}},Rs=0,ys=10,bs=()=>({pageIndex:Rs,pageSize:ys}),Kb={getInitialState:e=>({...e,pagination:{...bs(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ze("pagination",e)}),createTable:e=>{let t=!1,o=!1;e._autoResetPageIndex=()=>{var r,n;if(!t){e._queue(()=>{t=!0});return}if((r=(n=e.options.autoResetAll)!=null?n:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(o)return;o=!0,e._queue(()=>{e.resetPageIndex(),o=!1})}},e.setPagination=r=>{let n=a=>No(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(n)},e.resetPagination=r=>{var n;e.setPagination(r?bs():(n=e.initialState.pagination)!=null?n:bs())},e.setPageIndex=r=>{e.setPagination(n=>{let a=No(r,n.pageIndex),s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,s)),{...n,pageIndex:a}})},e.resetPageIndex=r=>{var n,a;e.setPageIndex(r?Rs:(n=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?n:Rs)},e.resetPageSize=r=>{var n,a;e.setPageSize(r?ys:(n=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?n:ys)},e.setPageSize=r=>{e.setPagination(n=>{let a=Math.max(1,No(r,n.pageSize)),s=n.pageSize*n.pageIndex,l=Math.floor(s/a);return{...n,pageIndex:l,pageSize:a}})},e.setPageCount=r=>e.setPagination(n=>{var a;let s=No(r,(a=e.options.pageCount)!=null?a:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...n,pageCount:s}}),e.getPageOptions=_(()=>[e.getPageCount()],r=>{let n=[];return r&&r>0&&(n=[...new Array(r)].fill(null).map((a,s)=>s)),n},V(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:r}=e.getState().pagination,n=e.getPageCount();return n===-1?!0:n===0?!1:r<n-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},xs=()=>({top:[],bottom:[]}),Xb={getInitialState:e=>({rowPinning:xs(),...e}),getDefaultOptions:e=>({onRowPinningChange:Ze("rowPinning",e)}),createRow:(e,t)=>{e.pin=(o,r,n)=>{let a=r?e.getLeafRows().map(d=>{let{id:c}=d;return c}):[],s=n?e.getParentRows().map(d=>{let{id:c}=d;return c}):[],l=new Set([...s,e.id,...a]);t.setRowPinning(d=>{var c,m;if(o==="bottom"){var f,p;return{top:((f=d?.top)!=null?f:[]).filter(v=>!(l!=null&&l.has(v))),bottom:[...((p=d?.bottom)!=null?p:[]).filter(v=>!(l!=null&&l.has(v))),...Array.from(l)]}}if(o==="top"){var u,g;return{top:[...((u=d?.top)!=null?u:[]).filter(v=>!(l!=null&&l.has(v))),...Array.from(l)],bottom:((g=d?.bottom)!=null?g:[]).filter(v=>!(l!=null&&l.has(v)))}}return{top:((c=d?.top)!=null?c:[]).filter(v=>!(l!=null&&l.has(v))),bottom:((m=d?.bottom)!=null?m:[]).filter(v=>!(l!=null&&l.has(v)))}})},e.getCanPin=()=>{var o;let{enableRowPinning:r,enablePinning:n}=t.options;return typeof r=="function"?r(e):(o=r??n)!=null?o:!0},e.getIsPinned=()=>{let o=[e.id],{top:r,bottom:n}=t.getState().rowPinning,a=o.some(l=>r?.includes(l)),s=o.some(l=>n?.includes(l));return a?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var o,r;let n=e.getIsPinned();if(!n)return-1;let a=(o=n==="top"?t.getTopRows():t.getBottomRows())==null?void 0:o.map(s=>{let{id:l}=s;return l});return(r=a?.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var o,r;return e.setRowPinning(t?xs():(o=(r=e.initialState)==null?void 0:r.rowPinning)!=null?o:xs())},e.getIsSomeRowsPinned=t=>{var o;let r=e.getState().rowPinning;if(!t){var n,a;return!!((n=r.top)!=null&&n.length||(a=r.bottom)!=null&&a.length)}return!!((o=r[t])!=null&&o.length)},e._getPinnedRows=(t,o,r)=>{var n;return((n=e.options.keepPinnedRows)==null||n?(o??[]).map(s=>{let l=e.getRow(s,!0);return l.getIsAllParentsExpanded()?l:null}):(o??[]).map(s=>t.find(l=>l.id===s))).filter(Boolean).map(s=>({...s,position:r}))},e.getTopRows=_(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,o)=>e._getPinnedRows(t,o,"top"),V(e.options,"debugRows","getTopRows")),e.getBottomRows=_(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,o)=>e._getPinnedRows(t,o,"bottom"),V(e.options,"debugRows","getBottomRows")),e.getCenterRows=_(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,o,r)=>{let n=new Set([...o??[],...r??[]]);return t.filter(a=>!n.has(a.id))},V(e.options,"debugRows","getCenterRows"))}},Jb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ze("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var o;return e.setRowSelection(t?{}:(o=e.initialState.rowSelection)!=null?o:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(o=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();let r={...o},n=e.getPreGroupedRowModel().flatRows;return t?n.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):n.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(o=>{let r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),n={...o};return e.getRowModel().rows.forEach(a=>{Cs(n,a.id,r,!0,e)}),n}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=_(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,o)=>Object.keys(t).length?hs(e,o):{rows:[],flatRows:[],rowsById:{}},V(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=_(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,o)=>Object.keys(t).length?hs(e,o):{rows:[],flatRows:[],rowsById:{}},V(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=_(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,o)=>Object.keys(t).length?hs(e,o):{rows:[],flatRows:[],rowsById:{}},V(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:o}=e.getState(),r=!!(t.length&&Object.keys(o).length);return r&&t.some(n=>n.getCanSelect()&&!o[n.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(n=>n.getCanSelect()),{rowSelection:o}=e.getState(),r=!!t.length;return r&&t.some(n=>!o[n.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;let o=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return o>0&&o<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(o=>o.getCanSelect()).some(o=>o.getIsSelected()||o.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(o,r)=>{let n=e.getIsSelected();t.setRowSelection(a=>{var s;if(o=typeof o<"u"?o:!n,e.getCanSelect()&&n===o)return a;let l={...a};return Cs(l,e.id,o,(s=r?.selectChildren)!=null?s:!0,t),l})},e.getIsSelected=()=>{let{rowSelection:o}=t.getState();return Ms(e,o)},e.getIsSomeSelected=()=>{let{rowSelection:o}=t.getState();return ws(e,o)==="some"},e.getIsAllSubRowsSelected=()=>{let{rowSelection:o}=t.getState();return ws(e,o)==="all"},e.getCanSelect=()=>{var o;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(o=t.options.enableRowSelection)!=null?o:!0},e.getCanSelectSubRows=()=>{var o;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(o=t.options.enableSubRowSelection)!=null?o:!0},e.getCanMultiSelect=()=>{var o;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(o=t.options.enableMultiRowSelection)!=null?o:!0},e.getToggleSelectedHandler=()=>{let o=e.getCanSelect();return r=>{var n;o&&e.toggleSelected((n=r.target)==null?void 0:n.checked)}}}},Cs=(e,t,o,r,n)=>{var a;let s=n.getRow(t,!0);o?(s.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),s.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=s.subRows)!=null&&a.length&&s.getCanSelectSubRows()&&s.subRows.forEach(l=>Cs(e,l.id,o,r,n))};function hs(e,t){let o=e.getState().rowSelection,r=[],n={},a=function(s,l){return s.map(d=>{var c;let m=Ms(d,o);if(m&&(r.push(d),n[d.id]=d),(c=d.subRows)!=null&&c.length&&(d={...d,subRows:a(d.subRows)}),m)return d}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:n}}function Ms(e,t){var o;return(o=t[e.id])!=null?o:!1}function ws(e,t,o){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let n=!0,a=!1;return e.subRows.forEach(s=>{if(!(a&&!n)&&(s.getCanSelect()&&(Ms(s,t)?a=!0:n=!1),s.subRows&&s.subRows.length)){let l=ws(s,t);l==="all"?a=!0:(l==="some"&&(a=!0),n=!1)}}),n?"all":a?"some":!1}var Ps=/([0-9]+)/gm,Qb=(e,t,o)=>Pp(Mo(e.getValue(o)).toLowerCase(),Mo(t.getValue(o)).toLowerCase()),Zb=(e,t,o)=>Pp(Mo(e.getValue(o)),Mo(t.getValue(o))),ex=(e,t,o)=>Ts(Mo(e.getValue(o)).toLowerCase(),Mo(t.getValue(o)).toLowerCase()),tx=(e,t,o)=>Ts(Mo(e.getValue(o)),Mo(t.getValue(o))),ox=(e,t,o)=>{let r=e.getValue(o),n=t.getValue(o);return r>n?1:r<n?-1:0},rx=(e,t,o)=>Ts(e.getValue(o),t.getValue(o));function Ts(e,t){return e===t?0:e>t?1:-1}function Mo(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Pp(e,t){let o=e.split(Ps).filter(Boolean),r=t.split(Ps).filter(Boolean);for(;o.length&&r.length;){let n=o.shift(),a=r.shift(),s=parseInt(n,10),l=parseInt(a,10),d=[s,l].sort();if(isNaN(d[0])){if(n>a)return 1;if(a>n)return-1;continue}if(isNaN(d[1]))return isNaN(s)?-1:1;if(s>l)return 1;if(l>s)return-1}return o.length-r.length}var yn={alphanumeric:Qb,alphanumericCaseSensitive:Zb,text:ex,textCaseSensitive:tx,datetime:ox,basic:rx},nx={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ze("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let o=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let n of o){let a=n?.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return yn.datetime;if(typeof a=="string"&&(r=!0,a.split(Ps).length>1))return yn.alphanumeric}return r?yn.text:yn.basic},e.getAutoSortDir=()=>{let o=t.getFilteredRowModel().flatRows[0];return typeof o?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var o,r;if(!e)throw new Error;return Ba(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(o=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?o:yn[e.columnDef.sortingFn]},e.toggleSorting=(o,r)=>{let n=e.getNextSortingOrder(),a=typeof o<"u"&&o!==null;t.setSorting(s=>{let l=s?.find(u=>u.id===e.id),d=s?.findIndex(u=>u.id===e.id),c=[],m,f=a?o:n==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&r?l?m="toggle":m="add":s!=null&&s.length&&d!==s.length-1?m="replace":l?m="toggle":m="replace",m==="toggle"&&(a||n||(m="remove")),m==="add"){var p;c=[...s,{id:e.id,desc:f}],c.splice(0,c.length-((p=t.options.maxMultiSortColCount)!=null?p:Number.MAX_SAFE_INTEGER))}else m==="toggle"?c=s.map(u=>u.id===e.id?{...u,desc:f}:u):m==="remove"?c=s.filter(u=>u.id!==e.id):c=[{id:e.id,desc:f}];return c})},e.getFirstSortDir=()=>{var o,r;return((o=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?o:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=o=>{var r,n;let a=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==a&&((r=t.options.enableSortingRemoval)==null||r)&&(!(o&&(n=t.options.enableMultiRemove)!=null)||n)?!1:s==="desc"?"asc":"desc":a},e.getCanSort=()=>{var o,r;return((o=e.columnDef.enableSorting)!=null?o:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var o,r;return(o=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?o:!!e.accessorFn},e.getIsSorted=()=>{var o;let r=(o=t.getState().sorting)==null?void 0:o.find(n=>n.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var o,r;return(o=(r=t.getState().sorting)==null?void 0:r.findIndex(n=>n.id===e.id))!=null?o:-1},e.clearSorting=()=>{t.setSorting(o=>o!=null&&o.length?o.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{let o=e.getCanSort();return r=>{o&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var o,r;e.setSorting(t?[]:(o=(r=e.initialState)==null?void 0:r.sorting)!=null?o:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},ax=[Nb,Ub,$b,Ob,Mb,Tb,jb,qb,nx,Fb,Yb,Kb,Xb,Jb,Gb];function Sp(e){var t,o;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let r=[...ax,...(t=e._features)!=null?t:[]],n={_features:r},a=n._features.reduce((p,u)=>Object.assign(p,u.getDefaultOptions==null?void 0:u.getDefaultOptions(n)),{}),s=p=>n.options.mergeOptions?n.options.mergeOptions(a,p):{...a,...p},d={...{},...(o=e.initialState)!=null?o:{}};n._features.forEach(p=>{var u;d=(u=p.getInitialState==null?void 0:p.getInitialState(d))!=null?u:d});let c=[],m=!1,f={_features:r,options:{...a,...e},initialState:d,_queue:p=>{c.push(p),m||(m=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();m=!1}).catch(u=>setTimeout(()=>{throw u})))},reset:()=>{n.setState(n.initialState)},setOptions:p=>{let u=No(p,n.options);n.options=s(u)},getState:()=>n.options.state,setState:p=>{n.options.onStateChange==null||n.options.onStateChange(p)},_getRowId:(p,u,g)=>{var v;return(v=n.options.getRowId==null?void 0:n.options.getRowId(p,u,g))!=null?v:`${g?[g.id,u].join("."):u}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(p,u)=>{let g=(u?n.getPrePaginationRowModel():n.getRowModel()).rowsById[p];if(!g&&(g=n.getCoreRowModel().rowsById[p],!g))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${p}`):new Error;return g},_getDefaultColumnDef:_(()=>[n.options.defaultColumn],p=>{var u;return p=(u=p)!=null?u:{},{header:g=>{let v=g.header.column.columnDef;return v.accessorKey?v.accessorKey:v.accessorFn?v.id:null},cell:g=>{var v,h;return(v=(h=g.renderValue())==null||h.toString==null?void 0:h.toString())!=null?v:null},...n._features.reduce((g,v)=>Object.assign(g,v.getDefaultColumnDef==null?void 0:v.getDefaultColumnDef()),{}),...p}},V(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>n.options.columns,getAllColumns:_(()=>[n._getColumnDefs()],p=>{let u=function(g,v,h){return h===void 0&&(h=0),g.map(b=>{let R=Sb(n,b,h,v),y=b;return R.columns=y.columns?u(y.columns,R,h+1):[],R})};return u(p)},V(e,"debugColumns","getAllColumns")),getAllFlatColumns:_(()=>[n.getAllColumns()],p=>p.flatMap(u=>u.getFlatColumns()),V(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:_(()=>[n.getAllFlatColumns()],p=>p.reduce((u,g)=>(u[g.id]=g,u),{}),V(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:_(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(p,u)=>{let g=p.flatMap(v=>v.getLeafColumns());return u(g)},V(e,"debugColumns","getAllLeafColumns")),getColumn:p=>{let u=n._getAllFlatColumnsById()[p];return process.env.NODE_ENV!=="production"&&!u&&console.error(`[Table] Column with id '${p}' does not exist.`),u}};Object.assign(n,f);for(let p=0;p<n._features.length;p++){let u=n._features[p];u==null||u.createTable==null||u.createTable(n)}return n}function Np(){return e=>_(()=>[e.options.data],t=>{let o={rows:[],flatRows:[],rowsById:{}},r=function(n,a,s){a===void 0&&(a=0);let l=[];for(let c=0;c<n.length;c++){let m=Ss(e,e._getRowId(n[c],c,s),n[c],c,a,void 0,s?.id);if(o.flatRows.push(m),o.rowsById[m.id]=m,l.push(m),e.options.getSubRows){var d;m.originalSubRows=e.options.getSubRows(n[c],c),(d=m.originalSubRows)!=null&&d.length&&(m.subRows=r(m.originalSubRows,a+1,m))}}return l};return o.rows=r(t),o},V(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function ix(e){let t=[],o=r=>{var n;t.push(r),(n=r.subRows)!=null&&n.length&&r.getIsExpanded()&&r.subRows.forEach(o)};return e.rows.forEach(o),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function sx(e,t,o){return o.options.filterFromLeafRows?lx(e,t,o):dx(e,t,o)}function lx(e,t,o){var r;let n=[],a={},s=(r=o.options.maxLeafRowFilterDepth)!=null?r:100,l=function(d,c){c===void 0&&(c=0);let m=[];for(let p=0;p<d.length;p++){var f;let u=d[p],g=Ss(o,u.id,u.original,u.index,u.depth,void 0,u.parentId);if(g.columnFilters=u.columnFilters,(f=u.subRows)!=null&&f.length&&c<s){if(g.subRows=l(u.subRows,c+1),u=g,t(u)&&!g.subRows.length){m.push(u),a[u.id]=u,n.push(u);continue}if(t(u)||g.subRows.length){m.push(u),a[u.id]=u,n.push(u);continue}}else u=g,t(u)&&(m.push(u),a[u.id]=u,n.push(u))}return m};return{rows:l(e),flatRows:n,rowsById:a}}function dx(e,t,o){var r;let n=[],a={},s=(r=o.options.maxLeafRowFilterDepth)!=null?r:100,l=function(d,c){c===void 0&&(c=0);let m=[];for(let p=0;p<d.length;p++){let u=d[p];if(t(u)){var f;if((f=u.subRows)!=null&&f.length&&c<s){let v=Ss(o,u.id,u.original,u.index,u.depth,void 0,u.parentId);v.subRows=l(u.subRows,c+1),u=v}m.push(u),n.push(u),a[u.id]=u}}return m};return{rows:l(e),flatRows:n,rowsById:a}}function Mp(){return e=>_(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,o,r)=>{if(!t.rows.length||!(o!=null&&o.length)&&!r){for(let p=0;p<t.flatRows.length;p++)t.flatRows[p].columnFilters={},t.flatRows[p].columnFiltersMeta={};return t}let n=[],a=[];(o??[]).forEach(p=>{var u;let g=e.getColumn(p.id);if(!g)return;let v=g.getFilterFn();if(!v){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${g.id}.`);return}n.push({id:p.id,filterFn:v,resolvedValue:(u=v.resolveFilterValue==null?void 0:v.resolveFilterValue(p.value))!=null?u:p.value})});let s=(o??[]).map(p=>p.id),l=e.getGlobalFilterFn(),d=e.getAllLeafColumns().filter(p=>p.getCanGlobalFilter());r&&l&&d.length&&(s.push("__global__"),d.forEach(p=>{var u;a.push({id:p.id,filterFn:l,resolvedValue:(u=l.resolveFilterValue==null?void 0:l.resolveFilterValue(r))!=null?u:r})}));let c,m;for(let p=0;p<t.flatRows.length;p++){let u=t.flatRows[p];if(u.columnFilters={},n.length)for(let g=0;g<n.length;g++){c=n[g];let v=c.id;u.columnFilters[v]=c.filterFn(u,v,c.resolvedValue,h=>{u.columnFiltersMeta[v]=h})}if(a.length){for(let g=0;g<a.length;g++){m=a[g];let v=m.id;if(m.filterFn(u,v,m.resolvedValue,h=>{u.columnFiltersMeta[v]=h})){u.columnFilters.__global__=!0;break}}u.columnFilters.__global__!==!0&&(u.columnFilters.__global__=!1)}}let f=p=>{for(let u=0;u<s.length;u++)if(p.columnFilters[s[u]]===!1)return!1;return!0};return sx(t.rows,f,e)},V(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function Tp(e){return t=>_(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(o,r)=>{if(!r.rows.length)return r;let{pageSize:n,pageIndex:a}=o,{rows:s,flatRows:l,rowsById:d}=r,c=n*a,m=c+n;s=s.slice(c,m);let f;t.options.paginateExpandedRows?f={rows:s,flatRows:l,rowsById:d}:f=ix({rows:s,flatRows:l,rowsById:d}),f.flatRows=[];let p=u=>{f.flatRows.push(u),u.subRows.length&&u.subRows.forEach(p)};return f.rows.forEach(p),f},V(t.options,"debugTable","getPaginationRowModel"))}function Dp(){return e=>_(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,o)=>{if(!o.rows.length||!(t!=null&&t.length))return o;let r=e.getState().sorting,n=[],a=r.filter(d=>{var c;return(c=e.getColumn(d.id))==null?void 0:c.getCanSort()}),s={};a.forEach(d=>{let c=e.getColumn(d.id);c&&(s[d.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});let l=d=>{let c=d.map(m=>({...m}));return c.sort((m,f)=>{for(let u=0;u<a.length;u+=1){var p;let g=a[u],v=s[g.id],h=v.sortUndefined,b=(p=g?.desc)!=null?p:!1,R=0;if(h){let y=m.getValue(g.id),x=f.getValue(g.id),P=y===void 0,L=x===void 0;if(P||L){if(h==="first")return P?-1:1;if(h==="last")return P?1:-1;R=P&&L?0:P?h:-h}}if(R===0&&(R=v.sortingFn(m,f,g.id)),R!==0)return b&&(R*=-1),v.invertSorting&&(R*=-1),R}return m.index-f.index}),c.forEach(m=>{var f;n.push(m),(f=m.subRows)!=null&&f.length&&(m.subRows=l(m.subRows))}),c};return{rows:l(o.rows),flatRows:n,rowsById:o.rowsById}},V(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function Ga(e,t){return e?ux(e)?wn.createElement(e,t):e:null}function ux(e){return cx(e)||typeof e=="function"||px(e)}function cx(e){return typeof e=="function"&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function px(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function Ep(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[o]=wn.useState(()=>({current:Sp(t)})),[r,n]=wn.useState(()=>o.current.initialState);return o.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:s=>{n(s),e.onStateChange==null||e.onStateChange(s)}})),o.current}import{Icon as xt}from"@iconify/react";import{Fragment as xx,jsx as N,jsxs as xe}from"react/jsx-runtime";var mx={searchPlaceholder:"Search...",noResults:"No results found.",rowsSelected:(e,t)=>`${e} / ${t} rows selected`,rowsPerPage:"Rows / page",pageInfo:(e,t)=>`Page ${e} / ${t}`,columns:"Columns",toggleColumns:"Toggle columns",stickyLastColumn:"Sticky last column",resizeMode:"Resize"},fx=()=>{let[e,t]=se.useState({pageSize:10,pageIndex:0}),{pageSize:o,pageIndex:r}=e;return{limit:o,onPaginateChange:t,pagination:e,skip:o*r}},gx=()=>{let e=se.useRef(!0),t=e.current,o=se.useCallback(()=>{e.current=!1},[]);return se.useEffect(()=>{e.current=!0}),[t,o]},kp=({column:e,table:t})=>{let o=t.getPreFilteredRowModel().flatRows[0]?.getValue(e.id),r=e.getFilterValue();return typeof o=="number"?xe("div",{className:"flex gap-1.5",children:[N(Me,{type:"number",value:r?.[0]??"",onChange:n=>e.setFilterValue(a=>[n.target.value,a?.[1]]),placeholder:"Min",className:"h-7 min-w-20 text-xs"}),N(Me,{type:"number",value:r?.[1]??"",onChange:n=>e.setFilterValue(a=>[a?.[0],n.target.value]),placeholder:"Max",className:"h-7 min-w-20 text-xs"})]}):N(Me,{type:"text",value:r??"",onChange:n=>e.setFilterValue(n.target.value),placeholder:"Search...",className:"h-7 min-w-32 text-xs"})};function Ip(){return{id:"select",header:({table:e})=>N(Wr,{checked:e.getIsAllPageRowsSelected()||e.getIsSomePageRowsSelected()&&"indeterminate",onCheckedChange:t=>e.toggleAllPageRowsSelected(!!t),"aria-label":"Select all"}),cell:({row:e})=>N(Wr,{checked:e.getIsSelected(),onCheckedChange:t=>e.toggleSelected(!!t),"aria-label":"Select row",onClick:t=>t.stopPropagation()}),enableSorting:!1,enableHiding:!1,size:40}}function vx({title:e,column:t,className:o}){if(!t.getCanSort())return N("span",{className:o,children:e});let r=t.getIsSorted();return xe("button",{type:"button",className:i("inline-flex items-center gap-1 hover:text-foreground transition-colors -ml-1 px-1 py-0.5 rounded font-medium",o),onClick:()=>t.toggleSorting(r==="asc"),children:[N("span",{children:e}),r==="asc"?N(xt,{icon:"lucide:arrow-up",className:"size-3.5"}):r==="desc"?N(xt,{icon:"lucide:arrow-down",className:"size-3.5"}):N(xt,{icon:"lucide:arrow-up-down",className:"size-3.5 opacity-40"})]})}function zp({columns:e=[],data:t=[],totalRows:o,pagination:r,onPaginationChange:n,sorting:a,onSortingChange:s,searchValue:l,onSearchChange:d,searchColumn:c,enableRowSelection:m=!1,rowSelection:f,onRowSelectionChange:p,getRowId:u,enableColumnVisibility:g=!0,enableColumnResizing:v=!0,stickyLastColumn:h=!0,enableStickyToggle:b=!0,toolbarActions:R,filterSlot:y,bulkActions:x,loading:P=!1,isLoading:L=!1,pageSizeOptions:D,labels:U,emptyIcon:w,onRowClick:C,className:S,search:A,hidden:B=[],pageCount:Z,manualPagination:me=!1,onPagination:Te,paginationSetting:Le,onSelectRow:et,actions:E=[],scrollable:ee=!1,headerClass:k,bodyClass:T}){let K={...mx,...U},je=P||L,he=c??A,ht=se.useMemo(()=>D?.length?D:Le?Ja(Le.start,Le.end,Le.step):[10,20,50,100],[D,Le]),ye=!!r&&!!n||me,Se=!!a&&!!s,[z,To]=se.useState([]),[Do,er]=se.useState([]),[Lr,dt]=se.useState({}),[Eo,tr]=se.useState({}),[Rt,_r]=se.useState({pageIndex:0,pageSize:ht[0]??10}),[tt,ko]=se.useState("onChange"),[ot,qe]=se.useState(h),[Ua,or]=se.useState(!1),[Vr,_t]=se.useState();se.useEffect(()=>{qe(h)},[h]);let Pn=Se?a:z,Vt=r??Rt,Io=f??Eo;se.useEffect(()=>{me&&Te&&Te(Vt)},[Vt,me]);let ro=se.useMemo(()=>m?[Ip(),...e]:e,[e,m]),ja=Z??(ye?Math.max(1,Math.ceil((o??t.length)/Vt.pageSize)):void 0),oe=Ep({data:t,columns:ro,pageCount:ja,state:{sorting:Pn,columnFilters:Do,columnVisibility:Lr,rowSelection:Io,pagination:Vt},getRowId:u,enableRowSelection:m||!!et||E.length>0,enableColumnResizing:v,columnResizeMode:tt,onSortingChange:Se?s:To,onColumnFiltersChange:er,onColumnVisibilityChange:dt,onRowSelectionChange:p??tr,onPaginationChange:n??_r,getCoreRowModel:Np(),...Se?{}:{getSortedRowModel:Dp()},...ye?{manualPagination:!0}:{getPaginationRowModel:Tp()},getFilteredRowModel:Mp(),manualSorting:Se});se.useEffect(()=>{if(!B?.length)return;let M=oe.getAllColumns().filter(_e=>_e.getCanHide()).map(_e=>_e.id),H={};for(let _e of M)H[_e]=!B.includes(_e);dt(H)},[]);let zo=se.useMemo(()=>oe.getSelectedRowModel().rows.map(M=>M.original),[oe,Io]);se.useEffect(()=>{et&&!E.length&&et(zo)},[Io]);let F=!!d||!!he,X=d?l??"":he?oe.getColumn(he)?.getFilterValue()??"":"",j=M=>{d?d(M):he&&oe.getColumn(he)?.setFilterValue(M)},re=o??oe.getFilteredRowModel().rows.length,fe=Vt.pageIndex+1,Ce=Math.max(1,oe.getPageCount()),$e=zo.length>0;return xe("div",{className:i("w-full space-y-3",!ee&&S),children:[(F||y||R||g||v||b||$e&&(x||E.length>0))&&xe("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[xe("div",{className:"flex flex-wrap flex-1 items-center gap-2",children:[F&&xe("div",{className:"relative w-full max-w-xs",children:[N(xt,{icon:"lucide:search",className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),N(Me,{placeholder:K.searchPlaceholder,value:X,onChange:M=>j(M.target.value),className:"pl-8 pr-8"}),X&&N("button",{type:"button",onClick:()=>j(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:N(xt,{icon:"lucide:x",className:"size-3.5"})})]}),y,$e&&x&&N("div",{className:"flex items-center gap-2",children:x(zo)}),$e&&E.length>0&&N("div",{className:"flex items-center gap-2",children:E.map((M,H)=>xe(I,{color:M?.color??"danger",size:"sm",onClick:()=>{_t(M),or(!0)},children:[M.icon,M.label]},H))})]}),xe("div",{className:"flex flex-wrap items-center gap-2",children:[R,b&&xe(I,{type:"button",variant:ot?"default":"outline",size:"default",tooltip:K.stickyLastColumn,onClick:()=>qe(M=>!M),children:[N(xt,{icon:ot?"lucide:pin":"lucide:pin-off",className:"size-4"}),N("span",{className:"hidden md:inline text-xs",children:"Sticky"})]}),v&&N(xn,{className:"h-9 w-auto min-w-[150px] max-w-[180px] px-2.5 text-xs",allowDeselect:!1,value:tt,options:[{label:"Resize: onChange",value:"onChange"},{label:"Resize: onEnd",value:"onEnd"}],onChange:M=>{(M==="onChange"||M==="onEnd")&&ko(M)}}),g&&xe(Zr,{children:[N(en,{asChild:!0,children:xe(I,{variant:"outline",size:"default",children:[N(xt,{icon:"lucide:sliders-horizontal",className:"size-4"}),N("span",{className:"hidden sm:inline",children:K.columns})]})}),xe(mr,{align:"end",className:"w-48",children:[N(gr,{children:K.toggleColumns}),N(Yt,{}),b&&xe(xx,{children:[N(fr,{checked:ot,onCheckedChange:M=>qe(!!M),children:K.stickyLastColumn}),N(Yt,{})]}),N(fr,{className:"capitalize",checked:oe.getIsAllColumnsVisible(),onCheckedChange:oe.getToggleAllColumnsVisibilityHandler(),children:"All"}),N(Yt,{}),oe.getAllColumns().filter(M=>M.getCanHide()).map(M=>N(fr,{className:"capitalize",checked:M.getIsVisible(),onCheckedChange:H=>M.toggleVisibility(!!H),children:typeof M.columnDef.header=="string"?M.columnDef.header:M.id},M.id))]})]})]})]}),Vr&&N(ka,{open:Ua,onOpenChange:or,title:Vr.label,description:`${zo.length} item(s) selected`,variant:"destructive",onConfirm:()=>{Vr.action?.(zo),or(!1),_t(void 0),oe.resetRowSelection(!0)}}),N("div",{className:"rounded-xl border bg-card overflow-hidden",children:xe(ba,{className:i(ee?`overflow-auto relative ${S??"max-h-[600px]"}`:""),style:{minWidth:"100%",width:oe.getTotalSize()},children:[N(xa,{className:i("bg-muted/40",ee?"sticky top-0 z-20 bg-card":"",k),children:oe.getHeaderGroups().map(M=>N(Co,{className:"bg-muted/40 hover:bg-muted/40",children:M.headers.map((H,_e,we)=>{let yt=ot&&we.length>=2&&_e===we.length-1;return xe(mn,{colSpan:H.colSpan,className:i("relative border-r last:border-r-0 border-border/50",yt&&"sticky right-0 z-20 bg-card dark:bg-card shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.12)] border-l border-border/60"),style:{width:H.getSize()},children:[H.isPlaceholder?null:xe("div",{className:"flex flex-col gap-1",children:[N("div",{className:"flex items-center gap-1",children:Ga(H.column.columnDef.header,H.getContext())}),H.column.columnDef?.enableColumnFilter?N("div",{className:"pb-1",children:N(kp,{column:H.column,table:oe})}):null]}),v&&H.column.getCanResize()&&N("div",{onMouseDown:H.getResizeHandler(),onTouchStart:H.getResizeHandler(),onDoubleClick:()=>H.column.resetSize(),onClick:Sn=>Sn.stopPropagation(),className:i("cursor-col-resize absolute right-0 top-0 h-full w-[5px] select-none touch-none z-30 transition-colors hover:bg-primary/60",H.column.getIsResizing()&&"bg-primary"),style:{transform:tt==="onEnd"&&H.column.getIsResizing()?`translateX(${oe.getState().columnSizingInfo.deltaOffset??0}px)`:void 0}})]},H.id)})},M.id))}),N(ha,{className:i(T),children:je?Array.from({length:Math.min(Vt.pageSize,5)}).map((M,H)=>N(Co,{children:ro.map((_e,we)=>N(Nr,{children:N(Uo,{className:"h-4 w-full max-w-[120px]"})},`skeleton-${H}-${we}`))},`skeleton-${H}`)):oe.getRowModel().rows.length>0?oe.getRowModel().rows.map(M=>N(Co,{"data-state":M.getIsSelected()&&"selected",className:i("group/row",C&&"cursor-pointer"),onClick:()=>C?.(M.original),children:M.getVisibleCells().map((H,_e,we)=>{let yt=ot&&we.length>=2&&_e===we.length-1;return N(Nr,{style:{width:H.column.getSize()},className:i(yt&&"sticky right-0 z-10 bg-card dark:bg-card group-hover/row:bg-muted data-[state=selected]:bg-muted shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.12)] border-l border-border/60"),children:Ga(H.column.columnDef.cell,H.getContext())},H.id)})},M.id)):N(Co,{children:N(Nr,{colSpan:ro.length,className:"h-32 text-center",children:xe("div",{className:"flex flex-col items-center justify-center gap-2 text-muted-foreground",children:[w,N("span",{children:K.noResults})]})})})}),oe.getFooterGroups().some(M=>M.headers.some(H=>H.column.columnDef.footer))&&N(Ra,{children:oe.getFooterGroups().map(M=>N(Co,{children:M.headers.map((H,_e,we)=>{let yt=ot&&we.length>=2&&_e===we.length-1;return N(se.Fragment,{children:H.column.columnDef.footer?N(mn,{colSpan:H.colSpan,style:{width:H.getSize()},className:i(yt&&"sticky right-0 z-10 bg-card dark:bg-card shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.12)] border-l border-border/60"),children:H.isPlaceholder?null:Ga(H.column.columnDef.footer,H.getContext())}):null},H.id)})},M.id))})]})}),xe("div",{className:"flex flex-wrap items-center justify-between gap-2 text-sm text-muted-foreground",children:[N("div",{children:(m||$e)&&N("span",{children:K.rowsSelected(Object.keys(Io).filter(M=>Io[M]).length,re)})}),xe("div",{className:"flex items-center gap-4",children:[xe("div",{className:"flex items-center gap-1.5",children:[N("span",{className:"hidden sm:inline text-xs",children:K.rowsPerPage}),N(xn,{className:"h-7 w-20 px-2.5 text-xs",allowDeselect:!1,value:Vt.pageSize,options:ht.map(M=>({label:String(M),value:M})),onChange:M=>{let H=Number(M);!Number.isNaN(H)&&H>0&&oe.setPageSize(H)}})]}),N("span",{className:"text-xs whitespace-nowrap",children:K.pageInfo(fe,Ce)}),xe("div",{className:"flex items-center gap-1",children:[N(I,{variant:"outline",size:"icon-xs",onClick:()=>oe.setPageIndex(0),disabled:!oe.getCanPreviousPage(),children:N(xt,{icon:"lucide:chevrons-left",className:"size-3.5"})}),N(I,{variant:"outline",size:"icon-xs",onClick:()=>oe.previousPage(),disabled:!oe.getCanPreviousPage(),children:N(xt,{icon:"lucide:chevron-left",className:"size-3.5"})}),N(I,{variant:"outline",size:"icon-xs",onClick:()=>oe.nextPage(),disabled:!oe.getCanNextPage(),children:N(xt,{icon:"lucide:chevron-right",className:"size-3.5"})}),N(I,{variant:"outline",size:"icon-xs",onClick:()=>oe.setPageIndex(Ce-1),disabled:!oe.getCanNextPage(),children:N(xt,{icon:"lucide:chevrons-right",className:"size-3.5"})})]})]})]})]})}var bx=zp;import*as zr from"react-resizable-panels";import{Icon as hx}from"@iconify/react";import{jsx as Wa}from"react/jsx-runtime";var Rx=({className:e,...t})=>Wa(zr.PanelGroup,{className:i("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),yx=zr.Panel,Cx=({withHandle:e,className:t,...o})=>Wa(zr.PanelResizeHandle,{className:i("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...o,children:e&&Wa("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:Wa(hx,{icon:"lucide:grip-vertical",className:"h-2.5 w-2.5"})})});import le from"react";import{jsx as Lt,jsxs as Px}from"react/jsx-runtime";var Zo=le.createContext(void 0),Lp=le.forwardRef(({defaultIndex:e=0,className:t,children:o,onIndexChange:r,autoNextStep:n=!0,...a},s)=>{let[l,d]=le.useState(e),[c,m]=le.useState(0),[f,p]=le.useState([]);le.useEffect(()=>{r?.(l)},[l,r]),le.useEffect(()=>{let g=new Array(c).fill(!1);g[0]=!1,p(g)},[c]);let u=le.useCallback(g=>{p(v=>{let h=[...v];return h[g]=!0,h}),n&&g<c-1&&d(g+1)},[n,c]);return le.useImperativeHandle(s,()=>({setStepCompleted:u})),Lt(Zo.Provider,{value:{currentStepIndex:l,setCurrentStepIndex:d,totalSteps:c,setTotalSteps:m,completedSteps:f,setCompletedSteps:p,setStepCompleted:u},children:Lt("div",{className:t,...a,children:o})})});Lp.displayName="StepContainer";var _p=le.forwardRef(({className:e,children:t,...o},r)=>Lt("div",{ref:r,className:i("flex justify-between items-center gap-2",e),...o,children:t}));_p.displayName="StepList";var Vp=le.forwardRef(({index:e,icon:t,children:o,disabled:r,...n},a)=>{let s=le.useContext(Zo);if(!s)throw new Error("StepTrigger must be used within a StepContainer");let{currentStepIndex:l,setCurrentStepIndex:d,completedSteps:c}=s,m=c[e],f=!r&&(m||e===0||c[e-1]);return Px("div",{ref:a,className:"flex flex-col items-center gap-1.5 text-sm font-medium",...n,children:[Lt("div",{className:i("size-9 rounded-full flex items-center justify-center border text-sm font-medium transition-all",f?"cursor-pointer":"cursor-not-allowed opacity-50",e===l?"border-primary bg-primary text-primary-foreground shadow-sm":m?"border-emerald-600 bg-emerald-600 text-white dark:border-emerald-500 dark:bg-emerald-500":f?"border-border bg-muted text-foreground hover:bg-accent":"border-border bg-muted/50 text-muted-foreground"),onClick:()=>f&&d(e),children:t??e+1}),o]})});Vp.displayName="StepTrigger";var wx=({className:e,color:t="primary"})=>{let o=le.useContext(Zo);if(!o)throw new Error("StepProgress must be used within a StepContainer");let{currentStepIndex:r,totalSteps:n}=o,a=n>0?(r+1)/n*100:0;return Lt(ca,{value:a,className:i("w-auto",e),color:t})},Ap=le.forwardRef(({className:e,children:t,...o},r)=>{let n=le.useContext(Zo);if(!n)throw new Error("Stepper must be used within a StepContainer");let{currentStepIndex:a,setTotalSteps:s}=n;return le.useEffect(()=>{let l=le.Children.count(t);s(l)},[]),Lt("div",{ref:r,className:e,...o,children:le.Children.map(t,(l,d)=>le.isValidElement(l)&&d==a?le.cloneElement(l,{isActive:!0}):null)})});Ap.displayName="Stepper";var Fp=le.forwardRef(({className:e,isActive:t,children:o,...r},n)=>t?Lt("div",{ref:n,className:i(e),...r,children:o}):null);Fp.displayName="StepsContent";var Hp=le.forwardRef(({className:e,children:t,...o},r)=>Lt("div",{ref:r,className:i("mt-6 flex items-center justify-between gap-2",e),...o,children:t}));Hp.displayName="StepNav";var $p=le.forwardRef(({className:e,children:t,disabled:o,...r},n)=>{let a=le.useContext(Zo);if(!a)throw new Error("StepPrevious must be used within a StepContainer");let{currentStepIndex:s,setCurrentStepIndex:l}=a,d=()=>{s>0&&l(s-1)};return Lt(I,{ref:n,variant:"outline",className:i(e),onClick:d,disabled:o??s===0,...r,children:t})});$p.displayName="StepPrevious";var Op=le.forwardRef(({className:e,children:t,disabled:o,labelFinish:r="Finish",...n},a)=>{let s=le.useContext(Zo);if(!s)throw new Error("StepNext must be used within a StepContainer");let{currentStepIndex:l,setCurrentStepIndex:d,totalSteps:c,completedSteps:m}=s,f=()=>{l<c-1&&m[l]&&d(l+1)};return Lt(I,{ref:a,className:i(e),onClick:f,disabled:o||l===c-1||!m[l],variant:"default",...n,children:l===c-1?r:t})});Op.displayName="StepNext";export{Ds as Accordion,Is as AccordionContent,Es as AccordionItem,ks as AccordionTrigger,js as Alert,Ks as AlertAction,Ys as AlertDescription,Qp as AlertDialog,Gs as AlertDialogAction,Ws as AlertDialogCancel,As as AlertDialogContent,Bs as AlertDialogDescription,Hs as AlertDialogFooter,Fs as AlertDialogHeader,$s as AlertDialogMedia,Ka as AlertDialogOverlay,Ya as AlertDialogPortal,Os as AlertDialogTitle,Zp as AlertDialogTrigger,qs as AlertTitle,_d as AppIcon,tm as AspectRatio,rm as Attachment,dm as AttachmentAction,lm as AttachmentActions,am as AttachmentContent,sm as AttachmentDescription,om as AttachmentGroup,nm as AttachmentMedia,im as AttachmentTitle,um as AttachmentTrigger,Zs as Avatar,cm as AvatarBadge,tl as AvatarFallback,pm as AvatarGroup,mm as AvatarGroupCount,el as AvatarImage,Dn as Badge,pl as Breadcrumb,xl as BreadcrumbEllipsis,fl as BreadcrumbItem,gl as BreadcrumbLink,ml as BreadcrumbList,vl as BreadcrumbPage,bl as BreadcrumbSeparator,xm as Bubble,hm as BubbleContent,bm as BubbleGroup,Rm as BubbleReactions,Cm as BulkActionsBar,I as Button,ti as ButtonGroup,Lm as ButtonGroupSeparator,zm as ButtonGroupText,no as Calendar,Nl as Card,El as CardAction,kl as CardContent,Dl as CardDescription,Il as CardFooter,Ml as CardHeader,Tl as CardTitle,_l as Carousel,Ol as CarouselButton,Vl as CarouselContent,$l as CarouselControl,Wl as CarouselDots,Al as CarouselItem,Hl as CarouselNext,Fl as CarouselPrevious,Bl as CarouselSelect,Cl as ChartContainer,$m as ChartLegend,Sl as ChartLegendContent,wl as ChartStyle,Hm as ChartTooltip,Pl as ChartTooltipContent,Wr as Checkbox,td as CircularSlider,jc as Col,Wm as Collapsible,jm as CollapsibleContent,Um as CollapsibleTrigger,xn as ComboBox,Wt as Command,Yl as CommandDialog,po as CommandEmpty,mo as CommandGroup,uo as CommandInput,Ut as CommandItem,co as CommandList,Kl as CommandSeparator,Xl as CommandShortcut,_v as ConfirmDialog,ka as ConfirmModal,ci as ContextMenu,Jl as ContextMenuCheckboxItem,Vn as ContextMenuContent,ed as ContextMenuCustom,Jm as ContextMenuGroup,An as ContextMenuItem,Zl as ContextMenuLabel,Qm as ContextMenuPortal,Zm as ContextMenuRadioGroup,Ql as ContextMenuRadioItem,Fn as ContextMenuSeparator,Hn as ContextMenuShortcut,mi as ContextMenuSub,_n as ContextMenuSubContent,Ln as ContextMenuSubTrigger,pi as ContextMenuTrigger,zp as DataTable,vx as DataTableColumnHeader,np as DatePicker,op as DatePickerRange,ep as DateTimePicker,io as Dialog,ii as DialogClose,$t as DialogContent,Gt as DialogDescription,so as DialogFooter,Ot as DialogHeader,Hc as DialogModal,li as DialogOverlay,si as DialogPortal,Bt as DialogTitle,Ym as DialogTrigger,tf as DirectionProvider,go as Drawer,Si as DrawerClose,vo as DrawerContent,Xn as DrawerDescription,Yn as DrawerFooter,qn as DrawerHeader,Ni as DrawerOverlay,Pd as DrawerPortal,Kn as DrawerTitle,Qr as DrawerTrigger,Iv as Dropdown,Zr as DropdownMenu,fr as DropdownMenuCheckboxItem,mr as DropdownMenuContent,Ti as DropdownMenuGroup,Zn as DropdownMenuItem,gr as DropdownMenuLabel,Di as DropdownMenuPortal,Rf as DropdownMenuRadioGroup,Sd as DropdownMenuRadioItem,Yt as DropdownMenuSeparator,ea as DropdownMenuShortcut,Ei as DropdownMenuSub,Qn as DropdownMenuSubContent,Jn as DropdownMenuSubTrigger,en as DropdownMenuTrigger,bc as DualSlider,yf as Empty,Nf as EmptyContent,Sf as EmptyDescription,Cf as EmptyHeader,wf as EmptyMedia,Pf as EmptyTitle,If as Field,zf as FieldContent,Vf as FieldDescription,Ff as FieldError,kf as FieldGroup,Lf as FieldLabel,Ef as FieldLegend,Af as FieldSeparator,Df as FieldSet,_f as FieldTitle,kp as Filter,Kc as Flex,Uf as Form,ra as FormControl,na as FormDescription,zi as FormField,ta as FormItem,oa as FormLabel,aa as FormMessage,Gc as Grid,ap as HourFormat,sp as HourWheel,jf as HoverCard,Ld as HoverCardContent,qf as HoverCardTrigger,Me as Input,Zc as InputForm,Qf as InputGroup,Zf as InputGroupAddon,eg as InputGroupButton,og as InputGroupInput,tg as InputGroupText,rg as InputGroupTextarea,$d as InputOTP,Od as InputOTPGroup,Gd as InputOTPSeparator,Bd as InputOTPSlot,cg as Item,vg as ItemActions,mg as ItemContent,gg as ItemDescription,xg as ItemFooter,dg as ItemGroup,bg as ItemHeader,pg as ItemMedia,ug as ItemSeparator,fg as ItemTitle,hg as Kbd,Rg as KbdGroup,bo as Label,$c as Loader,Cg as Marker,Pg as MarkerContent,wg as MarkerIcon,iu as Menu,Ai as MenuButton,du as MenuItem,Kd as Menubar,tu as MenubarCheckboxItem,Zd as MenubarContent,Ng as MenubarGroup,eu as MenubarItem,ru as MenubarLabel,Sg as MenubarMenu,Yd as MenubarPortal,Mg as MenubarRadioGroup,ou as MenubarRadioItem,nu as MenubarSeparator,au as MenubarShortcut,Tg as MenubarSub,Qd as MenubarSubContent,Jd as MenubarSubTrigger,Xd as MenubarTrigger,Vg as Message,Ag as MessageAvatar,Fg as MessageContent,$g as MessageFooter,_g as MessageGroup,Hg as MessageHeader,dp as MinuteWheel,Lv as Modal,bx as ModernDataTable,Og as MultiSelect,Jc as MultipleSelect,Gg as NativeSelect,Ug as NativeSelectOptGroup,Wg as NativeSelectOption,gu as NavigationMenu,Ru as NavigationMenuContent,Cu as NavigationMenuIndicator,bu as NavigationMenuItem,yu as NavigationMenuLink,vu as NavigationMenuList,hu as NavigationMenuTrigger,Fi as NavigationMenuViewport,Pu as Pagination,Su as PaginationContent,Du as PaginationEllipsis,Nu as PaginationItem,ua as PaginationLink,Tu as PaginationNext,Mu as PaginationPrevious,Fe as Popover,Yg as PopoverAnchor,Ee as PopoverContent,Jg as PopoverDescription,Kg as PopoverHeader,Xg as PopoverTitle,He as PopoverTrigger,ca as Progress,zu as RadioGroup,Lu as RadioGroupItem,vi as RenderContextMenuItem,Cx as ResizableHandle,yx as ResizablePanel,Rx as ResizablePanelGroup,sn as ScrollArea,Wi as ScrollBar,Zg as SearchableCombobox,ev as Select,Au as SelectContent,tv as SelectGroup,Hu as SelectItem,Fu as SelectLabel,qi as SelectScrollDownButton,ji as SelectScrollUpButton,$u as SelectSeparator,Vu as SelectTrigger,ov as SelectValue,wt as Separator,ti as ShadcnButtonGroup,ju as ShadcnSidebar,dn as Sheet,av as SheetClose,yr as SheetContent,iv as SheetCustom,Pr as SheetDescription,Bu as SheetFooter,Cr as SheetHeader,Ji as SheetOverlay,Xi as SheetPortal,wr as SheetTitle,nv as SheetTrigger,fu as Sidebar,ec as SidebarContent,Qu as SidebarFooter,tc as SidebarGroup,rc as SidebarGroupAction,nc as SidebarGroupContent,oc as SidebarGroupLabel,Ju as SidebarHeader,Xu as SidebarInput,Ku as SidebarInset,ac as SidebarMenu,dc as SidebarMenuAction,uc as SidebarMenuBadge,lc as SidebarMenuButton,ic as SidebarMenuItem,cc as SidebarMenuSkeleton,pc as SidebarMenuSub,fc as SidebarMenuSubButton,mc as SidebarMenuSubItem,Uu as SidebarProvider,Yu as SidebarRail,Zu as SidebarSeparator,qu as SidebarTrigger,Uo as Skeleton,gc as Slider,bv as Spinner,Lp as StepContainer,_p as StepList,Hp as StepNav,Op as StepNext,$p as StepPrevious,wx as StepProgress,Vp as StepTrigger,Ap as Stepper,Zo as StepperContext,Fp as StepsContent,pu as SubMenu,Rc as Switch,ba as Table,ha as TableBody,yc as TableCaption,Nr as TableCell,Ra as TableFooter,mn as TableHead,xa as TableHeader,Co as TableRow,Cc as Tabs,Nc as TabsContent,Pc as TabsList,Sc as TabsTrigger,br as Textarea,yb as TimePicker,cp as TimePickerSelection,wa as Toast,Tc as ToastAction,Pa as ToastClose,Na as ToastDescription,Zi as ToastProvider,Sa as ToastTitle,Ca as ToastViewport,kc as Toaster,Dv as ToasterSonner,zc as Toggle,_c as ToggleGroup,Vc as ToggleGroupItem,Fr as Tooltip,qp as TooltipArrow,ar as TooltipContent,Yp as TooltipPortal,nr as TooltipProvider,Hr as TooltipTrigger,Us as alertVariants,Qs as attachmentMediaVariants,Js as attachmentVariants,rl as badgeVariants,al as bubbleContentVariants,il as bubbleReactionsVariants,nl as bubbleVariants,ul as buttonGroupVariants,Ct as buttonVariants,i as cn,Br as colorVariants,Ip as createSelectionColumn,$ as cva,ql as dialogContentVariants,Nd as emptyMediaVariants,Dd as fieldVariants,Ja as generateArray,Fd as inputGroupAddonVariants,Hd as inputGroupButtonVariants,Ud as itemMediaVariants,Wd as itemVariants,Td as labelVariants,qd as markerVariants,xu as navigationMenuTriggerStyle,Ou as sheetVariants,sc as sidebarMenuButtonVariants,wc as tabsListVariants,Ec as toast,Mc as toastVariants,Ea as toggleVariants,Ao as useCarousel,Nm as useDebounce,Tm as useDelay,of as useDirection,tn as useFormField,Pm as useForwardedRef,Za as useIsMobile,_o as useMediaQuery,fx as usePagination,Em as useRepeat,cn as useSidebar,gx as useSkipper,os as useToast};
60
+ /*! Bundled license information:
61
+
62
+ @tanstack/table-core/build/lib/index.mjs:
63
+ (**
64
+ * table-core
65
+ *
66
+ * Copyright (c) TanStack
67
+ *
68
+ * This source code is licensed under the MIT license found in the
69
+ * LICENSE.md file in the root directory of this source tree.
70
+ *
71
+ * @license MIT
72
+ *)
73
+
74
+ @tanstack/react-table/build/lib/index.mjs:
75
+ (**
76
+ * react-table
77
+ *
78
+ * Copyright (c) TanStack
79
+ *
80
+ * This source code is licensed under the MIT license found in the
81
+ * LICENSE.md file in the root directory of this source tree.
82
+ *
83
+ * @license MIT
84
+ *)
85
+ */