@sigtes/ui 0.0.7 → 0.0.9

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.
Files changed (68) hide show
  1. package/dist/UserProvider-BzXtdnK7.cjs +22 -0
  2. package/dist/UserProvider-Cx4hp8vD.js +1221 -0
  3. package/dist/components/avatar/Avatar.d.ts +1 -0
  4. package/dist/components/avatar/index.d.ts +1 -0
  5. package/dist/components/badge/Badge.d.ts +6 -0
  6. package/dist/components/badge/badgeVariants.d.ts +3 -0
  7. package/dist/components/badge/index.d.ts +2 -0
  8. package/dist/components/button/Button.d.ts +1 -5
  9. package/dist/components/button/buttonVariants.d.ts +4 -0
  10. package/dist/components/button/index.d.ts +2 -1
  11. package/dist/components/calendar/Calendar.d.ts +7 -0
  12. package/dist/components/calendar/DatePicker.d.ts +6 -0
  13. package/dist/components/calendar/DateRangePicker.d.ts +9 -0
  14. package/dist/components/calendar/index.d.ts +4 -0
  15. package/dist/components/card/Card.d.ts +8 -0
  16. package/dist/components/card/CardExample.d.ts +1 -0
  17. package/dist/components/card/index.d.ts +1 -0
  18. package/dist/components/checkbox/Checkbox.d.ts +3 -0
  19. package/dist/components/checkbox/index.d.ts +1 -0
  20. package/dist/components/collapsible/Collapsible.d.ts +4 -0
  21. package/dist/components/collapsible/index.d.ts +1 -0
  22. package/dist/components/combobox/Combobox.d.ts +10 -0
  23. package/dist/components/combobox/index.d.ts +1 -0
  24. package/dist/components/command/Command.d.ts +17 -0
  25. package/dist/components/command/index.d.ts +1 -0
  26. package/dist/components/data-table-faceted-filter/data-table-faceted-filter.d.ts +17 -0
  27. package/dist/components/data-table-faceted-filter/index.d.ts +1 -0
  28. package/dist/components/dialog/Dialog.d.ts +14 -0
  29. package/dist/components/dialog/index.d.ts +1 -0
  30. package/dist/components/form/Form.d.ts +23 -0
  31. package/dist/components/form/index.d.ts +1 -0
  32. package/dist/components/input/Input.d.ts +2 -2
  33. package/dist/components/popover/Popover.d.ts +6 -0
  34. package/dist/components/popover/index.d.ts +1 -0
  35. package/dist/components/separator/Separator.d.ts +3 -0
  36. package/dist/components/separator/index.d.ts +1 -0
  37. package/dist/components/skeleton/Skeleton.d.ts +1 -0
  38. package/dist/components/skeleton/index.d.ts +1 -0
  39. package/dist/components/sonner/Sonner.d.ts +2 -0
  40. package/dist/components/sonner/index.d.ts +3 -0
  41. package/dist/components/table/DataTable.d.ts +1 -7
  42. package/dist/components/tabs/Tabs.d.ts +6 -0
  43. package/dist/components/tabs/index.d.ts +1 -0
  44. package/dist/components/textarea/Textarea.d.ts +2 -0
  45. package/dist/components/textarea/index.d.ts +1 -0
  46. package/dist/components.cjs.js +886 -0
  47. package/dist/components.es.js +32501 -0
  48. package/dist/globals.css +1 -1
  49. package/dist/hooks/index.d.ts +4 -0
  50. package/dist/hooks/useErrors/index.d.ts +1 -0
  51. package/dist/hooks/useErrors/useErrors.d.ts +13 -0
  52. package/dist/hooks/useFormState/index.d.ts +1 -0
  53. package/dist/hooks/useFormState/useFormState.d.ts +19 -0
  54. package/dist/hooks.cjs.js +1 -0
  55. package/dist/hooks.es.js +52 -0
  56. package/dist/index.d.ts +20 -2
  57. package/dist/providers/index.d.ts +3 -0
  58. package/dist/providers/locale-provider/index.d.ts +1 -0
  59. package/dist/providers/locale-provider/locale-provider.d.ts +11 -0
  60. package/dist/providers/theme-provider/ThemeProvider.d.ts +3 -0
  61. package/dist/providers/theme-provider/index.d.ts +2 -0
  62. package/dist/providers/user-provider/UserProvider.d.ts +25 -0
  63. package/dist/providers/user-provider/index.d.ts +1 -0
  64. package/dist/providers.cjs.js +1 -0
  65. package/dist/providers.es.js +20 -0
  66. package/package.json +27 -6
  67. package/dist/index.cjs.js +0 -505
  68. package/dist/index.es.js +0 -8306
@@ -0,0 +1,886 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./UserProvider-BzXtdnK7.cjs"),P=require("react"),Z=require("@radix-ui/react-slot"),ve=require("class-variance-authority"),Xh=require("tailwind-merge"),Bt=require("@tanstack/react-table"),Ao=require("@dnd-kit/sortable"),Ut=require("@dnd-kit/core"),JS=require("@radix-ui/react-dropdown-menu"),ge=require("lucide-react"),Kt=require("@tabler/icons-react"),QS=require("@radix-ui/react-select"),eC=require("@dnd-kit/modifiers"),tC=require("@radix-ui/react-label"),rC=require("@dnd-kit/utilities"),Ht=require("react-day-picker"),nC=require("@radix-ui/react-popover"),oC=require("@radix-ui/react-checkbox"),aC=require("@radix-ui/react-collapsible"),Te=require("react-dom"),Ur=require("cmdk"),sC=require("@radix-ui/react-separator"),Si=require("react-hook-form"),iC=require("next-themes"),Gh=require("sonner"),cC=require("@radix-ui/react-tabs");function Tt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=Tt(P),je=Tt(JS),Ne=Tt(QS),uC=Tt(tC),Io=Tt(nC),lp=Tt(oC),df=Tt(aC),_e=Tt(Te),lC=Tt(sC),Gi=Tt(cC),Ci=ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function qh(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=qh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function dC(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=qh(e))&&(n&&(n+=" "),n+=t);return n}function W(...e){return Xh.twMerge(dC(e))}function Ze({className:e,variant:t,size:r,asChild:n=!1,...o}){const a=n?Z.Slot:"button";return j.jsxRuntimeExports.jsx(a,{"data-slot":"button",className:W(Ci({variant:t,size:r,className:e})),...o})}function Zh({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:j.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:W("w-full caption-bottom text-sm",e),...t})})}function Jh({className:e,...t}){return j.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:W("[&_tr]:border-b",e),...t})}function Qh({className:e,...t}){return j.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:W("[&_tr:last-child]:border-0",e),...t})}function fC({className:e,...t}){return j.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:W("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",e),...t})}function ji({className:e,...t}){return j.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:W("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t})}function eb({className:e,...t}){return j.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:W("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function ff({className:e,...t}){return j.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:W("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function pC({className:e,...t}){return j.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:W("text-muted-foreground mt-4 text-sm",e),...t})}function cd({...e}){return j.jsxRuntimeExports.jsx(je.Root,{"data-slot":"dropdown-menu",...e})}function mC({...e}){return j.jsxRuntimeExports.jsx(je.Portal,{"data-slot":"dropdown-menu-portal",...e})}function Ni({...e}){return j.jsxRuntimeExports.jsx(je.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function ud({className:e,sideOffset:t=4,...r}){return j.jsxRuntimeExports.jsx(je.Portal,{children:j.jsxRuntimeExports.jsx(je.Content,{"data-slot":"dropdown-menu-content",sideOffset:t,className:W("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function vC({...e}){return j.jsxRuntimeExports.jsx(je.Group,{"data-slot":"dropdown-menu-group",...e})}function gC({className:e,inset:t,variant:r="default",...n}){return j.jsxRuntimeExports.jsx(je.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:W("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}function tb({className:e,children:t,checked:r,...n}){return j.jsxRuntimeExports.jsxs(je.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:W("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...n,children:[j.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:j.jsxRuntimeExports.jsx(je.ItemIndicator,{children:j.jsxRuntimeExports.jsx(ge.CheckIcon,{className:"size-4"})})}),t]})}function rb({...e}){return j.jsxRuntimeExports.jsx(je.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function nb({className:e,children:t,...r}){return j.jsxRuntimeExports.jsxs(je.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:W("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none 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:[j.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:j.jsxRuntimeExports.jsx(je.ItemIndicator,{children:j.jsxRuntimeExports.jsx(ge.CircleIcon,{className:"size-2 fill-current"})})}),t]})}function hC({className:e,inset:t,...r}){return j.jsxRuntimeExports.jsx(je.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:W("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function bC({className:e,...t}){return j.jsxRuntimeExports.jsx(je.Separator,{"data-slot":"dropdown-menu-separator",className:W("bg-border -mx-1 my-1 h-px",e),...t})}function yC({className:e,...t}){return j.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:W("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function wC({...e}){return j.jsxRuntimeExports.jsx(je.Sub,{"data-slot":"dropdown-menu-sub",...e})}function xC({className:e,inset:t,children:r,...n}){return j.jsxRuntimeExports.jsxs(je.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:W("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...n,children:[r,j.jsxRuntimeExports.jsx(ge.ChevronRightIcon,{className:"ml-auto size-4"})]})}function EC({className:e,...t}){return j.jsxRuntimeExports.jsx(je.SubContent,{"data-slot":"dropdown-menu-sub-content",className:W("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}function kC(){return j.jsxRuntimeExports.jsx(Ni,{asChild:!0,children:j.jsxRuntimeExports.jsxs(Ze,{variant:"ghost",className:"data-[state=open]:bg-muted text-muted-foreground flex size-8 p-0",size:"icon",children:[j.jsxRuntimeExports.jsx(Kt.IconDotsVertical,{className:"size-4"}),j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Abrir Menu"})]})})}function ob({...e}){return j.jsxRuntimeExports.jsx(Ne.Root,{"data-slot":"select",...e})}function RC({...e}){return j.jsxRuntimeExports.jsx(Ne.Group,{"data-slot":"select-group",...e})}function ab({...e}){return j.jsxRuntimeExports.jsx(Ne.Value,{"data-slot":"select-value",...e})}function sb({className:e,size:t="default",children:r,...n}){return j.jsxRuntimeExports.jsxs(Ne.Trigger,{"data-slot":"select-trigger","data-size":t,className:W("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,j.jsxRuntimeExports.jsx(Ne.Icon,{asChild:!0,children:j.jsxRuntimeExports.jsx(ge.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function ib({className:e,children:t,position:r="popper",...n}){return j.jsxRuntimeExports.jsx(Ne.Portal,{children:j.jsxRuntimeExports.jsxs(Ne.Content,{"data-slot":"select-content",className:W("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="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:r,...n,children:[j.jsxRuntimeExports.jsx(ub,{}),j.jsxRuntimeExports.jsx(Ne.Viewport,{className:W("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),j.jsxRuntimeExports.jsx(lb,{})]})})}function SC({className:e,...t}){return j.jsxRuntimeExports.jsx(Ne.Label,{"data-slot":"select-label",className:W("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function cb({className:e,children:t,...r}){return j.jsxRuntimeExports.jsxs(Ne.Item,{"data-slot":"select-item",className:W("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none 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),...r,children:[j.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:j.jsxRuntimeExports.jsx(Ne.ItemIndicator,{children:j.jsxRuntimeExports.jsx(ge.CheckIcon,{className:"size-4"})})}),j.jsxRuntimeExports.jsx(Ne.ItemText,{children:t})]})}function CC({className:e,...t}){return j.jsxRuntimeExports.jsx(Ne.Separator,{"data-slot":"select-separator",className:W("bg-border pointer-events-none -mx-1 my-1 h-px",e),...t})}function ub({className:e,...t}){return j.jsxRuntimeExports.jsx(Ne.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:W("flex cursor-default items-center justify-center py-1",e),...t,children:j.jsxRuntimeExports.jsx(ge.ChevronUpIcon,{className:"size-4"})})}function lb({className:e,...t}){return j.jsxRuntimeExports.jsx(Ne.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:W("flex cursor-default items-center justify-center py-1",e),...t,children:j.jsxRuntimeExports.jsx(ge.ChevronDownIcon,{className:"size-4"})})}function db({className:e,type:t,...r}){return j.jsxRuntimeExports.jsx("input",{type:t,"data-slot":"input",className:W("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}function pf({className:e,...t}){return j.jsxRuntimeExports.jsx(uC.Root,{"data-slot":"label",className:W("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",e),...t})}function jC({data:e,columns:t,getRowId:r,onRowOrderChange:n,onRowClick:o=()=>{},tableKey:a,Actions:c,defaultColumnFilter:s}){const m=`tablePageSize_${a}`,l=`tableColumnVisibility_${a}`,[u,p]=P.useState(()=>{if(typeof window>"u")return{};const D=localStorage.getItem(l);return D?JSON.parse(D):{}}),[v,h]=P.useState({pageIndex:0,pageSize:Number(typeof window<"u"&&localStorage.getItem(m))||10}),x=P.useId(),d=Ut.useSensors(Ut.useSensor(Ut.MouseSensor,{}),Ut.useSensor(Ut.TouchSensor,{}),Ut.useSensor(Ut.KeyboardSensor,{})),g=P.useMemo(()=>e?.map(({id:D})=>D)||[],[e]),[b,y]=P.useState(e),[w,E]=P.useState({}),[S,T]=P.useState([]),[R,C]=P.useState([]);P.useEffect(()=>{y(e)},[e]),P.useEffect(()=>{localStorage.setItem(l,JSON.stringify(u))},[u,l]),P.useEffect(()=>{localStorage.setItem(m,String(v.pageSize))},[v.pageSize,m]);function M({columns:D}){let Y=!1;for(const U of D)if(U.id==="drag"){Y=!0;break}const H={id:"drag"};return Y?[...D]:[H,...D]}function L(D){const{active:Y,over:H}=D;Y&&H&&Y.id!==H.id&&y(U=>{const V=U.findIndex(N=>N.id===Y.id),f=U.findIndex(N=>N.id===H.id),k=Ao.arrayMove(U,V,f);return n&&n(k),k})}const I=Bt.useReactTable({data:b,columns:M({columns:t}),state:{sorting:R,columnVisibility:u,rowSelection:w,columnFilters:S,pagination:v},getRowId:r,enableRowSelection:!0,onRowSelectionChange:E,onSortingChange:C,onColumnFiltersChange:T,onColumnVisibilityChange:p,onPaginationChange:h,getCoreRowModel:Bt.getCoreRowModel(),getFilteredRowModel:Bt.getFilteredRowModel(),getPaginationRowModel:Bt.getPaginationRowModel(),getSortedRowModel:Bt.getSortedRowModel(),getFacetedRowModel:Bt.getFacetedRowModel(),getFacetedUniqueValues:Bt.getFacetedUniqueValues()});function B(){const D=I.getAllColumns()[1].columnDef;return String(D.id)?String(D.id):String(D.header)}const[K,z]=P.useState(s??B());return j.jsxRuntimeExports.jsxs("div",{children:[j.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between px-4 lg:px-6 mb-5 gap-2",children:[j.jsxRuntimeExports.jsxs("div",{className:"relative w-full h-[32px]",children:[j.jsxRuntimeExports.jsx(ge.Search,{className:"absolute left-3 top-1/2 w-4 -translate-y-1/2 text-muted-foreground"}),j.jsxRuntimeExports.jsx(db,{type:"text",placeholder:"",className:"pl-10 h-[32px]",value:I.getColumn(K)?.getFilterValue()??"",onChange:D=>{I.getColumn(K)?.setFilterValue(D.target.value)}})]}),j.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[j.jsxRuntimeExports.jsxs(cd,{children:[j.jsxRuntimeExports.jsx(Ni,{asChild:!0,children:j.jsxRuntimeExports.jsxs(Ze,{variant:"outline",size:"sm",children:[j.jsxRuntimeExports.jsx(ge.FilterIcon,{}),j.jsxRuntimeExports.jsx("span",{className:"sm:hidden lg:inline",children:K||"Filtro"}),j.jsxRuntimeExports.jsx("span",{className:"lg:hidden",children:K||"Filtro"}),j.jsxRuntimeExports.jsx(Kt.IconChevronDown,{})]})}),j.jsxRuntimeExports.jsx(ud,{align:"end",className:"w-56",children:j.jsxRuntimeExports.jsx(rb,{value:K,onValueChange:D=>{T([]),z(D)},children:I.getAllColumns().filter(D=>typeof D.accessorFn<"u"&&D.getCanHide()).map(D=>{const Y=D.columnDef.id?String(D.columnDef.id):String(D.columnDef.header);return j.jsxRuntimeExports.jsx(nb,{value:Y,children:Y},Y)})})})]}),j.jsxRuntimeExports.jsxs(cd,{children:[j.jsxRuntimeExports.jsx(Ni,{asChild:!0,children:j.jsxRuntimeExports.jsxs(Ze,{variant:"outline",size:"sm",children:[j.jsxRuntimeExports.jsx(Kt.IconLayoutColumns,{}),j.jsxRuntimeExports.jsx("span",{className:"hidden lg:inline",children:"Colunas"}),j.jsxRuntimeExports.jsx("span",{className:"lg:hidden",children:"Colunas"}),j.jsxRuntimeExports.jsx(Kt.IconChevronDown,{})]})}),j.jsxRuntimeExports.jsx(ud,{align:"end",className:"w-56",children:I.getAllColumns().filter(D=>typeof D.accessorFn<"u"&&D.getCanHide()).map(D=>j.jsxRuntimeExports.jsx(tb,{className:"capitalize",checked:D.getIsVisible(),onCheckedChange:Y=>{D.toggleVisibility(!!Y)},children:D.columnDef.id?String(D.columnDef.id):String(D.columnDef.header)},D.id))})]}),c]})]}),j.jsxRuntimeExports.jsxs("div",{className:"relative flex flex-col gap-4 overflow-auto px-4 lg:px-6",children:[j.jsxRuntimeExports.jsx("div",{className:"overflow-hidden rounded-lg border",children:j.jsxRuntimeExports.jsx(Ut.DndContext,{collisionDetection:Ut.closestCenter,modifiers:[eC.restrictToVerticalAxis],onDragEnd:L,sensors:d,id:x,children:j.jsxRuntimeExports.jsxs(Zh,{children:[j.jsxRuntimeExports.jsx(Jh,{className:"sticky top-0 z-10",children:I.getHeaderGroups().map(D=>j.jsxRuntimeExports.jsx(ji,{children:D.headers.map(Y=>j.jsxRuntimeExports.jsx(eb,{colSpan:Y.colSpan,children:Y.isPlaceholder?null:Bt.flexRender(Y.column.columnDef.header,Y.getContext())},Y.id))},D.id))}),j.jsxRuntimeExports.jsx(Ao.SortableContext,{items:g,strategy:Ao.verticalListSortingStrategy,children:j.jsxRuntimeExports.jsx(Qh,{className:"**:data-[slot=table-cell]:first:w-8",children:I.getRowModel().rows?.length?I.getRowModel().rows.map(D=>j.jsxRuntimeExports.jsx(fb,{row:D,onRowClick:o},D.id)):j.jsxRuntimeExports.jsx(ji,{children:j.jsxRuntimeExports.jsx(ff,{colSpan:t.length,className:"h-24 text-center",children:"Nenhum Resultado."})})})})]})})}),j.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between px-4",children:[j.jsxRuntimeExports.jsxs("div",{className:"text-muted-foreground hidden flex-1 text-sm lg:flex",children:[I.getFilteredSelectedRowModel().rows.length," de"," ",I.getFilteredRowModel().rows.length," linhas selecionadas."]}),j.jsxRuntimeExports.jsxs("div",{className:"flex w-full items-center gap-8 lg:w-fit",children:[j.jsxRuntimeExports.jsxs("div",{className:"hidden items-center gap-2 lg:flex",children:[j.jsxRuntimeExports.jsx(pf,{htmlFor:"rows-per-page",className:"text-sm font-medium",children:"linhas por paginas"}),j.jsxRuntimeExports.jsxs(ob,{value:`${I.getState().pagination.pageSize}`,onValueChange:D=>{I.setPageSize(Number(D))},children:[j.jsxRuntimeExports.jsx(sb,{size:"sm",className:"w-20",id:"rows-per-page",children:j.jsxRuntimeExports.jsx(ab,{placeholder:I.getState().pagination.pageSize})}),j.jsxRuntimeExports.jsx(ib,{side:"top",children:[10,20,30,40,50].map(D=>j.jsxRuntimeExports.jsx(cb,{value:`${D}`,children:D},D))})]})]}),j.jsxRuntimeExports.jsxs("div",{className:"flex w-fit items-center justify-center text-sm font-medium",children:["Página ",I.getState().pagination.pageIndex+1," de"," ",I.getPageCount()]}),j.jsxRuntimeExports.jsxs("div",{className:"ml-auto flex items-center gap-2 lg:ml-0",children:[j.jsxRuntimeExports.jsxs(Ze,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>I.setPageIndex(0),disabled:!I.getCanPreviousPage(),children:[j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to first page"}),j.jsxRuntimeExports.jsx(Kt.IconChevronsLeft,{})]}),j.jsxRuntimeExports.jsxs(Ze,{variant:"outline",className:"size-8",size:"icon",onClick:()=>I.previousPage(),disabled:!I.getCanPreviousPage(),children:[j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to previous page"}),j.jsxRuntimeExports.jsx(Kt.IconChevronLeft,{})]}),j.jsxRuntimeExports.jsxs(Ze,{variant:"outline",className:"size-8",size:"icon",onClick:()=>I.nextPage(),disabled:!I.getCanNextPage(),children:[j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to next page"}),j.jsxRuntimeExports.jsx(Kt.IconChevronRight,{})]}),j.jsxRuntimeExports.jsxs(Ze,{variant:"outline",className:"hidden size-8 lg:flex",size:"icon",onClick:()=>I.setPageIndex(I.getPageCount()-1),disabled:!I.getCanNextPage(),children:[j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to last page"}),j.jsxRuntimeExports.jsx(Kt.IconChevronsRight,{})]})]})]})]})]})]})}function fb({row:e,onRowClick:t=()=>{}}){const{transform:r,transition:n,setNodeRef:o,isDragging:a}=Ao.useSortable({id:e.original.id});return j.jsxRuntimeExports.jsx(ji,{"data-state":e.getIsSelected()&&"selected","data-dragging":a,ref:o,style:{transform:rC.CSS.Transform.toString(r),transition:n,cursor:"grab"},onClick:()=>{t(e.original)},children:e.getVisibleCells().map(c=>j.jsxRuntimeExports.jsx(ff,{className:"cursor-pointer",children:Bt.flexRender(c.column.columnDef.cell,c.getContext())},c.id))})}function NC({id:e}){const{attributes:t,listeners:r}=Ao.useSortable({id:e});return j.jsxRuntimeExports.jsxs(Ze,{...t,...r,variant:"ghost",size:"icon",className:"text-muted-foreground size-7 hover:bg-transparent cursor-pointer",children:[j.jsxRuntimeExports.jsx(Kt.IconGripVertical,{className:"text-muted-foreground size-3"}),j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Drag to reorder"})]})}function mf({className:e,classNames:t,showOutsideDays:r=!0,captionLayout:n="label",buttonVariant:o="ghost",formatters:a,components:c,...s}){const m=Ht.getDefaultClassNames();return j.jsxRuntimeExports.jsx(Ht.DayPicker,{showOutsideDays:r,className:W("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:n,formatters:{formatMonthDropdown:l=>l.toLocaleString("default",{month:"short"}),...a},classNames:{root:W("w-fit",m.root),months:W("flex gap-4 flex-col md:flex-row relative",m.months),month:W("flex flex-col w-full gap-4",m.month),nav:W("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",m.nav),button_previous:W(Ci({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",m.button_previous),button_next:W(Ci({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",m.button_next),month_caption:W("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",m.month_caption),dropdowns:W("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",m.dropdowns),dropdown_root:W("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",m.dropdown_root),dropdown:W("absolute bg-popover inset-0 opacity-0",m.dropdown),caption_label:W("select-none font-medium",n==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",m.caption_label),table:"w-full border-collapse",weekdays:W("flex",m.weekdays),weekday:W("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",m.weekday),week:W("flex w-full mt-2",m.week),week_number_header:W("select-none w-(--cell-size)",m.week_number_header),week_number:W("text-[0.8rem] select-none text-muted-foreground",m.week_number),day:W("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",m.day),range_start:W("rounded-l-md bg-accent",m.range_start),range_middle:W("rounded-none",m.range_middle),range_end:W("rounded-r-md bg-accent",m.range_end),today:W("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",m.today),outside:W("text-muted-foreground aria-selected:text-muted-foreground",m.outside),disabled:W("text-muted-foreground opacity-50",m.disabled),hidden:W("invisible",m.hidden),...t},components:{Root:({className:l,rootRef:u,...p})=>j.jsxRuntimeExports.jsx("div",{"data-slot":"calendar",ref:u,className:W(l),...p}),Chevron:({className:l,orientation:u,...p})=>u==="left"?j.jsxRuntimeExports.jsx(ge.ChevronLeftIcon,{className:W("size-4",l),...p}):u==="right"?j.jsxRuntimeExports.jsx(ge.ChevronRightIcon,{className:W("size-4",l),...p}):j.jsxRuntimeExports.jsx(ge.ChevronDownIcon,{className:W("size-4",l),...p}),DayButton:pb,WeekNumber:({children:l,...u})=>j.jsxRuntimeExports.jsx("td",{...u,children:j.jsxRuntimeExports.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:l})}),...c},...s})}function pb({className:e,day:t,modifiers:r,...n}){const o=Ht.getDefaultClassNames(),a=P.useRef(null);return P.useEffect(()=>{r.focused&&a.current?.focus()},[r.focused]),j.jsxRuntimeExports.jsx(Ze,{ref:a,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":r.selected&&!r.range_start&&!r.range_end&&!r.range_middle,"data-range-start":r.range_start,"data-range-end":r.range_end,"data-range-middle":r.range_middle,className:W("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",o.day,e),...n})}const mb=6048e5,TC=864e5,dp=Symbol.for("constructDateFrom");function xr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&dp in e?e[dp](t):e instanceof Date?new e.constructor(t):new Date(t)}function et(e,t){return xr(t||e,e)}let _C={};function qi(){return _C}function Fo(e,t){const r=qi(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=et(e,t?.in),a=o.getDay(),c=(a<n?7:0)+a-n;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function Ti(e,t){return Fo(e,{...t,weekStartsOn:1})}function vb(e,t){const r=et(e,t?.in),n=r.getFullYear(),o=xr(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=Ti(o),c=xr(r,0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);const s=Ti(c);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function fp(e){const t=et(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function OC(e,...t){const r=xr.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function pp(e,t){const r=et(e,t?.in);return r.setHours(0,0,0,0),r}function DC(e,t,r){const[n,o]=OC(r?.in,e,t),a=pp(n),c=pp(o),s=+a-fp(a),m=+c-fp(c);return Math.round((s-m)/TC)}function PC(e,t){const r=vb(e,t),n=xr(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ti(n)}function MC(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function AC(e){return!(!MC(e)&&typeof e!="number"||isNaN(+et(e)))}function IC(e,t){const r=et(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function FC(e,t){const r=et(e,t?.in);return DC(r,IC(r))+1}function LC(e,t){const r=et(e,t?.in),n=+Ti(r)-+PC(r);return Math.round(n/mb)+1}function gb(e,t){const r=et(e,t?.in),n=r.getFullYear(),o=qi(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=xr(t?.in||e,0);c.setFullYear(n+1,0,a),c.setHours(0,0,0,0);const s=Fo(c,t),m=xr(t?.in||e,0);m.setFullYear(n,0,a),m.setHours(0,0,0,0);const l=Fo(m,t);return+r>=+s?n+1:+r>=+l?n:n-1}function WC(e,t){const r=qi(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=gb(e,t),a=xr(t?.in||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),Fo(a,t)}function zC(e,t){const r=et(e,t?.in),n=+Fo(r,t)-+WC(r,t);return Math.round(n/mb)+1}function ie(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const er={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ie(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ie(r+1,2)},d(e,t){return ie(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return ie(e.getHours()%12||12,t.length)},H(e,t){return ie(e.getHours(),t.length)},m(e,t){return ie(e.getMinutes(),t.length)},s(e,t){return ie(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return ie(o,t.length)}},Gr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mp={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return er.y(e,t)},Y:function(e,t,r,n){const o=gb(e,n),a=o>0?o:1-o;if(t==="YY"){const c=a%100;return ie(c,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):ie(a,t.length)},R:function(e,t){const r=vb(e);return ie(r,t.length)},u:function(e,t){const r=e.getFullYear();return ie(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ie(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ie(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return er.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return ie(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=zC(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ie(o,t.length)},I:function(e,t,r){const n=LC(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):ie(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):er.d(e,t)},D:function(e,t,r){const n=FC(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):ie(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ie(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ie(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return ie(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=Gr.noon:n===0?o=Gr.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=Gr.evening:n>=12?o=Gr.afternoon:n>=4?o=Gr.morning:o=Gr.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return er.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):er.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):ie(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):ie(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):er.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):er.s(e,t)},S:function(e,t){return er.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return gp(n);case"XXXX":case"XX":return Sr(n);case"XXXXX":case"XXX":default:return Sr(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return gp(n);case"xxxx":case"xx":return Sr(n);case"xxxxx":case"xxx":default:return Sr(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+vp(n,":");case"OOOO":default:return"GMT"+Sr(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+vp(n,":");case"zzzz":default:return"GMT"+Sr(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return ie(n,t.length)},T:function(e,t,r){return ie(+e,t.length)}};function vp(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+ie(a,2)}function gp(e,t){return e%60===0?(e>0?"-":"+")+ie(Math.abs(e)/60,2):Sr(e,t)}function Sr(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=ie(Math.trunc(n/60),2),a=ie(n%60,2);return r+o+t+a}const hp=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},hb=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},$C=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return hp(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",hp(n,t)).replace("{{time}}",hb(o,t))},YC={p:hb,P:$C},UC=/^D+$/,BC=/^Y+$/,KC=["D","DD","YY","YYYY"];function HC(e){return UC.test(e)}function VC(e){return BC.test(e)}function XC(e,t,r){const n=GC(e,t,r);if(console.warn(n),KC.includes(e))throw new RangeError(n)}function GC(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const qC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ZC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,JC=/^'([^]*?)'?$/,QC=/''/g,ej=/[a-zA-Z]/;function ld(e,t,r){const n=qi(),o=r?.locale??n.locale??j.enUS,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=et(e,r?.in);if(!AC(s))throw new RangeError("Invalid time value");let m=t.match(ZC).map(u=>{const p=u[0];if(p==="p"||p==="P"){const v=YC[p];return v(u,o.formatLong)}return u}).join("").match(qC).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const p=u[0];if(p==="'")return{isToken:!1,value:tj(u)};if(mp[p])return{isToken:!0,value:u};if(p.match(ej))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(m=o.localize.preprocessor(s,m));const l={firstWeekContainsDate:a,weekStartsOn:c,locale:o};return m.map(u=>{if(!u.isToken)return u.value;const p=u.value;(!r?.useAdditionalWeekYearTokens&&VC(p)||!r?.useAdditionalDayOfYearTokens&&HC(p))&&XC(p,t,String(e));const v=mp[p[0]];return v(s,p,o.localize,l)}).join("")}function tj(e){const t=e.match(JC);return t?t[1].replace(QC,"'"):e}function na({...e}){return j.jsxRuntimeExports.jsx(Io.Root,{"data-slot":"popover",...e})}function oa({...e}){return j.jsxRuntimeExports.jsx(Io.Trigger,{"data-slot":"popover-trigger",...e})}function aa({className:e,align:t="center",sideOffset:r=4,...n}){return j.jsxRuntimeExports.jsx(Io.Portal,{children:j.jsxRuntimeExports.jsx(Io.Content,{"data-slot":"popover-content",align:t,sideOffset:r,className:W("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}function rj({...e}){return j.jsxRuntimeExports.jsx(Io.Anchor,{"data-slot":"popover-anchor",...e})}function nj({value:e,onChange:t=()=>{}}){const[r,n]=P.useState(e),{locale:o}=j.useLocale();return j.jsxRuntimeExports.jsxs(na,{children:[j.jsxRuntimeExports.jsx(oa,{asChild:!0,children:j.jsxRuntimeExports.jsxs(Ze,{variant:"outline",className:W("justify-start text-left font-normal cursor-pointer h-[32px] border-dashed",!r&&"text-muted-foreground"),children:[j.jsxRuntimeExports.jsx(ge.Calendar,{className:"mr-2 h-4 w-4"}),r?ld(new Ht.TZDate(r.toString(),"UTC"),"dd 'de' MMMM 'de' yyyy",{locale:o}):j.jsxRuntimeExports.jsx("span",{children:"Selecione uma data"})]})}),j.jsxRuntimeExports.jsx(aa,{className:"w-auto p-0",children:j.jsxRuntimeExports.jsx(mf,{mode:"single",captionLayout:"dropdown",locale:o,timeZone:"UTC",selected:r,defaultMonth:e?new Ht.TZDate(e.toString()):new Ht.TZDate,onSelect:a=>{n(a),t(a)},endMonth:new Ht.TZDate(2099,11)})})]})}function oj({locale:e,value:t,onChange:r=()=>{}}){const[n,o]=P.useState(t),{locale:a}=j.useLocale();return j.jsxRuntimeExports.jsxs(na,{children:[j.jsxRuntimeExports.jsx(oa,{asChild:!0,children:j.jsxRuntimeExports.jsxs(Ze,{variant:"outline",className:W("justify-start text-left font-normal cursor-pointer h-[32px] border-dashed",!n&&"text-muted-foreground"),children:[j.jsxRuntimeExports.jsx(ge.Calendar,{className:"mr-2 h-4 w-4"}),n?.from&&n?.to?`${ld(n.from,"dd/MM/yy")} - ${ld(n.to,"dd/MM/yy")}`:j.jsxRuntimeExports.jsx("span",{children:"Selecione um período"})]})}),j.jsxRuntimeExports.jsx(aa,{className:"w-auto p-0",children:j.jsxRuntimeExports.jsx(mf,{mode:"range",selected:n,onSelect:c=>{c&&(o(c),r(c))},locale:e||a,captionLayout:"dropdown",endMonth:new Ht.TZDate(2099,11),numberOfMonths:1,className:"rounded-lg border shadow-sm"})})]})}const bb=ve.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Gs({className:e,variant:t,asChild:r=!1,...n}){const o=r?Z.Slot:"span";return j.jsxRuntimeExports.jsx(o,{"data-slot":"badge",className:W(bb({variant:t}),e),...n})}function aj({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:W("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function sj({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:W("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function ij({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:W("leading-none font-semibold",e),...t})}function cj({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:W("text-muted-foreground text-sm",e),...t})}function uj({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card-action",className:W("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function lj({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:W("px-6",e),...t})}function dj({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"card-footer",className:W("flex items-center px-6 [.border-t]:pt-6",e),...t})}function fj({className:e,...t}){return j.jsxRuntimeExports.jsx(lp.Root,{"data-slot":"checkbox",className:W("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:j.jsxRuntimeExports.jsx(lp.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:j.jsxRuntimeExports.jsx(ge.CheckIcon,{className:"size-3.5"})})})}function pj({...e}){return j.jsxRuntimeExports.jsx(df.Root,{"data-slot":"collapsible",...e})}function mj({...e}){return j.jsxRuntimeExports.jsx(df.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function vj({...e}){return j.jsxRuntimeExports.jsx(df.CollapsibleContent,{"data-slot":"collapsible-content",...e})}function gr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function bp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gj(...e){return t=>{let r=!1;const n=e.map(o=>{const a=bp(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():bp(e[o],null)}}}}function Br(...e){return i.useCallback(gj(...e),e)}function hj(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return j.jsxRuntimeExports.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function bj(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return j.jsxRuntimeExports.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(s){const m=s?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:m}}),[s,m])}};return o.scopeName=e,[n,yj(o,...t)]}function yj(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const c=n.reduce((s,{useScope:m,scopeName:l})=>{const p=m(a)[`__scope${l}`];return{...s,...p}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var Lo=globalThis?.document?i.useLayoutEffect:()=>{},wj=i[" useId ".trim().toString()]||(()=>{}),xj=0;function Hc(e){const[t,r]=i.useState(wj());return Lo(()=>{r(n=>n??String(xj++))},[e]),e||(t?`radix-${t}`:"")}var Ej=i[" useInsertionEffect ".trim().toString()]||Lo;function kj({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=Rj({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=Sj(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function Rj({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return Ej(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function Sj(e){return typeof e=="function"}var Cj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gt=Cj.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),j.jsxRuntimeExports.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function jj(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function Wo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function Nj(e,t=globalThis?.document){const r=Wo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Tj="DismissableLayer",dd="dismissableLayer.update",_j="dismissableLayer.pointerDownOutside",Oj="dismissableLayer.focusOutside",yp,yb=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wb=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(yb),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Br(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=Mj(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=Aj(R=>{const C=R.target;[...l.branches].some(L=>L.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return Nj(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(yp=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),wp(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=yp)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),wp())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(dd,R),()=>document.removeEventListener(dd,R)},[]),j.jsxRuntimeExports.jsx(Gt.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:gr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:gr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:gr(e.onPointerDownCapture,S.onPointerDownCapture)})});wb.displayName=Tj;var Dj="DismissableLayerBranch",Pj=i.forwardRef((e,t)=>{const r=i.useContext(yb),n=i.useRef(null),o=Br(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),j.jsxRuntimeExports.jsx(Gt.div,{...e,ref:o})});Pj.displayName=Dj;function Mj(e,t=globalThis?.document){const r=Wo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){xb(_j,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Aj(e,t=globalThis?.document){const r=Wo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&xb(Oj,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function wp(){const e=new CustomEvent(dd);document.dispatchEvent(e)}function xb(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?jj(o,a):o.dispatchEvent(a)}var Vc="focusScope.autoFocusOnMount",Xc="focusScope.autoFocusOnUnmount",xp={bubbles:!1,cancelable:!0},Ij="FocusScope",Eb=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Wo(o),u=Wo(a),p=i.useRef(null),v=Br(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:rr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||rr(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&rr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){kp.add(h);const d=document.activeElement;if(!s.contains(d)){const b=new CustomEvent(Vc,xp);s.addEventListener(Vc,l),s.dispatchEvent(b),b.defaultPrevented||(Fj(Yj(kb(s)),{select:!0}),document.activeElement===d&&rr(s))}return()=>{s.removeEventListener(Vc,l),setTimeout(()=>{const b=new CustomEvent(Xc,xp);s.addEventListener(Xc,u),s.dispatchEvent(b),b.defaultPrevented||rr(d??document.body,{select:!0}),s.removeEventListener(Xc,u),kp.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=Lj(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&rr(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&rr(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return j.jsxRuntimeExports.jsx(Gt.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});Eb.displayName=Ij;function Fj(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(rr(n,{select:t}),document.activeElement!==r)return}function Lj(e){const t=kb(e),r=Ep(t,e),n=Ep(t.reverse(),e);return[r,n]}function kb(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ep(e,t){for(const r of e)if(!Wj(r,{upTo:t}))return r}function Wj(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function zj(e){return e instanceof HTMLInputElement&&"select"in e}function rr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&zj(e)&&t&&e.select()}}var kp=$j();function $j(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Rp(e,t),e.unshift(t)},remove(t){e=Rp(e,t),e[0]?.resume()}}}function Rp(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Yj(e){return e.filter(t=>t.tagName!=="A")}var Uj="Portal",Rb=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Lo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(j.jsxRuntimeExports.jsx(Gt.div,{...n,ref:t}),c):null});Rb.displayName=Uj;function Bj(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Zi=e=>{const{present:t,children:r}=e,n=Kj(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Br(n.ref,Hj(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Zi.displayName="Presence";function Kj(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=Bj(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=ya(n.current);a.current=s==="mounted"?l:"none"},[s]),Lo(()=>{const l=n.current,u=o.current;if(u!==e){const v=a.current,h=ya(l);e?m("MOUNT"):h==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&v!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Lo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const d=ya(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&d&&(m("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=h=>{h.target===t&&(a.current=ya(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function ya(e){return e?.animationName||"none"}function Hj(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Gc=0;function Vj(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Sp()),document.body.insertAdjacentElement("beforeend",e[1]??Sp()),Gc++,()=>{Gc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Gc--}},[])}function Sp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var rt=function(){return rt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},rt.apply(this,arguments)};function Sb(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Xj(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var qs="right-scroll-bar-position",Zs="width-before-scroll-bar",Gj="with-scroll-bars-hidden",qj="--removed-body-scroll-bar-size";function qc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Zj(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Jj=typeof window<"u"?i.useLayoutEffect:i.useEffect,Cp=new WeakMap;function Qj(e,t){var r=Zj(null,function(n){return e.forEach(function(o){return qc(o,n)})});return Jj(function(){var n=Cp.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||qc(s,null)}),a.forEach(function(s){o.has(s)||qc(s,c)})}Cp.set(r,e)},[e]),r}function eN(e){return e}function tN(e,t){t===void 0&&(t=eN);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function rN(e){e===void 0&&(e={});var t=tN(null);return t.options=rt({async:!0,ssr:!1},e),t}var Cb=function(e){var t=e.sideCar,r=Sb(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,rt({},r))};Cb.isSideCarExport=!0;function nN(e,t){return e.useMedium(t),Cb}var jb=rN(),Zc=function(){},Ji=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Zc,onWheelCapture:Zc,onTouchMoveCapture:Zc}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=Sb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=Qj([r,t]),R=rt(rt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:jb,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),rt(rt({},R),{ref:T})):i.createElement(y,rt({},R,{className:m,ref:T}),s))});Ji.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ji.classNames={fullWidth:Zs,zeroRight:qs};var oN=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function aN(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=oN();return t&&e.setAttribute("nonce",t),e}function sN(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function iN(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cN=function(){var e=0,t=null;return{add:function(r){e==0&&(t=aN())&&(sN(t,r),iN(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uN=function(){var e=cN();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Nb=function(){var e=uN(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},lN={left:0,top:0,right:0,gap:0},Jc=function(e){return parseInt(e||"",10)||0},dN=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Jc(r),Jc(n),Jc(o)]},fN=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lN;var t=dN(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},pN=Nb(),zn="data-scroll-locked",mN=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
2
+ .`.concat(Gj,` {
3
+ overflow: hidden `).concat(n,`;
4
+ padding-right: `).concat(s,"px ").concat(n,`;
5
+ }
6
+ body[`).concat(zn,`] {
7
+ overflow: hidden `).concat(n,`;
8
+ overscroll-behavior: contain;
9
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
10
+ padding-left: `.concat(o,`px;
11
+ padding-top: `).concat(a,`px;
12
+ padding-right: `).concat(c,`px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: `).concat(s,"px ").concat(n,`;
16
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
17
+ }
18
+
19
+ .`).concat(qs,` {
20
+ right: `).concat(s,"px ").concat(n,`;
21
+ }
22
+
23
+ .`).concat(Zs,` {
24
+ margin-right: `).concat(s,"px ").concat(n,`;
25
+ }
26
+
27
+ .`).concat(qs," .").concat(qs,` {
28
+ right: 0 `).concat(n,`;
29
+ }
30
+
31
+ .`).concat(Zs," .").concat(Zs,` {
32
+ margin-right: 0 `).concat(n,`;
33
+ }
34
+
35
+ body[`).concat(zn,`] {
36
+ `).concat(qj,": ").concat(s,`px;
37
+ }
38
+ `)},jp=function(){var e=parseInt(document.body.getAttribute(zn)||"0",10);return isFinite(e)?e:0},vN=function(){i.useEffect(function(){return document.body.setAttribute(zn,(jp()+1).toString()),function(){var e=jp()-1;e<=0?document.body.removeAttribute(zn):document.body.setAttribute(zn,e.toString())}},[])},gN=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;vN();var a=i.useMemo(function(){return fN(o)},[o]);return i.createElement(pN,{styles:mN(a,!t,o,r?"":"!important")})},fd=!1;if(typeof window<"u")try{var wa=Object.defineProperty({},"passive",{get:function(){return fd=!0,!0}});window.addEventListener("test",wa,wa),window.removeEventListener("test",wa,wa)}catch{fd=!1}var qr=fd?{passive:!1}:!1,hN=function(e){return e.tagName==="TEXTAREA"},Tb=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!hN(e)&&r[t]==="visible")},bN=function(e){return Tb(e,"overflowY")},yN=function(e){return Tb(e,"overflowX")},Np=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=_b(e,n);if(o){var a=Ob(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},wN=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},xN=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},_b=function(e,t){return e==="v"?bN(t):yN(t)},Ob=function(e,t){return e==="v"?wN(t):xN(t)},EN=function(e,t){return e==="h"&&t==="rtl"?-1:1},kN=function(e,t,r,n,o){var a=EN(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=Ob(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&_b(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},xa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Tp=function(e){return[e.deltaX,e.deltaY]},_p=function(e){return e&&"current"in e?e.current:e},RN=function(e,t){return e[0]===t[0]&&e[1]===t[1]},SN=function(e){return`
39
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
40
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
+ `)},CN=0,Zr=[];function jN(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(CN++)[0],a=i.useState(Nb)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=Xj([e.lockRef.current],(e.shards||[]).map(_p),!0).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=xa(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=Np(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=Np(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return kN(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!Zr.length||Zr[Zr.length-1]!==a)){var b="deltaY"in g?Tp(g):xa(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&RN(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(_p).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:NN(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=xa(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Tp(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,xa(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Zr.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,qr),document.addEventListener("touchmove",m,qr),document.addEventListener("touchstart",u,qr),function(){Zr=Zr.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,qr),document.removeEventListener("touchmove",m,qr),document.removeEventListener("touchstart",u,qr)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:SN(o)}):null,h?i.createElement(gN,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function NN(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const TN=nN(jb,jN);var Db=i.forwardRef(function(e,t){return i.createElement(Ji,rt({},e,{ref:t,sideCar:TN}))});Db.classNames=Ji.classNames;var _N=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Jr=new WeakMap,Ea=new WeakMap,ka={},Qc=0,Pb=function(e){return e&&(e.host||Pb(e.parentNode))},ON=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Pb(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},DN=function(e,t,r,n){var o=ON(t,Array.isArray(e)?e:[e]);ka[r]||(ka[r]=new WeakMap);var a=ka[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Jr.get(v)||0)+1,g=(a.get(v)||0)+1;Jr.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Ea.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),Qc++,function(){c.forEach(function(p){var v=Jr.get(p)-1,h=a.get(p)-1;Jr.set(p,v),a.set(p,h),v||(Ea.has(p)||p.removeAttribute(n),Ea.delete(p)),h||p.removeAttribute(r)}),Qc--,Qc||(Jr=new WeakMap,Jr=new WeakMap,Ea=new WeakMap,ka={})}},PN=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=_N(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),DN(n,o,r,"aria-hidden")):function(){return null}},Qi="Dialog",[Mb]=bj(Qi),[MN,tt]=Mb(Qi),Ab=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:c=!0}=e,s=i.useRef(null),m=i.useRef(null),[l,u]=kj({prop:n,defaultProp:o??!1,onChange:a,caller:Qi});return j.jsxRuntimeExports.jsx(MN,{scope:t,triggerRef:s,contentRef:m,contentId:Hc(),titleId:Hc(),descriptionId:Hc(),open:l,onOpenChange:u,onOpenToggle:i.useCallback(()=>u(p=>!p),[u]),modal:c,children:r})};Ab.displayName=Qi;var Ib="DialogTrigger",Fb=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=tt(Ib,r),a=Br(t,o.triggerRef);return j.jsxRuntimeExports.jsx(Gt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hf(o.open),...n,ref:a,onClick:gr(e.onClick,o.onOpenToggle)})});Fb.displayName=Ib;var vf="DialogPortal",[AN,Lb]=Mb(vf,{forceMount:void 0}),Wb=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=tt(vf,t);return j.jsxRuntimeExports.jsx(AN,{scope:t,forceMount:r,children:i.Children.map(n,c=>j.jsxRuntimeExports.jsx(Zi,{present:r||a.open,children:j.jsxRuntimeExports.jsx(Rb,{asChild:!0,container:o,children:c})}))})};Wb.displayName=vf;var _i="DialogOverlay",zb=i.forwardRef((e,t)=>{const r=Lb(_i,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=tt(_i,e.__scopeDialog);return a.modal?j.jsxRuntimeExports.jsx(Zi,{present:n||a.open,children:j.jsxRuntimeExports.jsx(FN,{...o,ref:t})}):null});zb.displayName=_i;var IN=Z.createSlot("DialogOverlay.RemoveScroll"),FN=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=tt(_i,r);return j.jsxRuntimeExports.jsx(Db,{as:IN,allowPinchZoom:!0,shards:[o.contentRef],children:j.jsxRuntimeExports.jsx(Gt.div,{"data-state":hf(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Tr="DialogContent",$b=i.forwardRef((e,t)=>{const r=Lb(Tr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=tt(Tr,e.__scopeDialog);return j.jsxRuntimeExports.jsx(Zi,{present:n||a.open,children:a.modal?j.jsxRuntimeExports.jsx(LN,{...o,ref:t}):j.jsxRuntimeExports.jsx(WN,{...o,ref:t})})});$b.displayName=Tr;var LN=i.forwardRef((e,t)=>{const r=tt(Tr,e.__scopeDialog),n=i.useRef(null),o=Br(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return PN(a)},[]),j.jsxRuntimeExports.jsx(Yb,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:gr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:gr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:gr(e.onFocusOutside,a=>a.preventDefault())})}),WN=i.forwardRef((e,t)=>{const r=tt(Tr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return j.jsxRuntimeExports.jsx(Yb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Yb=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=tt(Tr,r),m=i.useRef(null),l=Br(t,m);return Vj(),j.jsxRuntimeExports.jsxs(j.jsxRuntimeExports.Fragment,{children:[j.jsxRuntimeExports.jsx(Eb,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:j.jsxRuntimeExports.jsx(wb,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":hf(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),j.jsxRuntimeExports.jsxs(j.jsxRuntimeExports.Fragment,{children:[j.jsxRuntimeExports.jsx(zN,{titleId:s.titleId}),j.jsxRuntimeExports.jsx(YN,{contentRef:m,descriptionId:s.descriptionId})]})]})}),gf="DialogTitle",Ub=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=tt(gf,r);return j.jsxRuntimeExports.jsx(Gt.h2,{id:o.titleId,...n,ref:t})});Ub.displayName=gf;var Bb="DialogDescription",Kb=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=tt(Bb,r);return j.jsxRuntimeExports.jsx(Gt.p,{id:o.descriptionId,...n,ref:t})});Kb.displayName=Bb;var Hb="DialogClose",Vb=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=tt(Hb,r);return j.jsxRuntimeExports.jsx(Gt.button,{type:"button",...n,ref:t,onClick:gr(e.onClick,()=>o.onOpenChange(!1))})});Vb.displayName=Hb;function hf(e){return e?"open":"closed"}var Xb="DialogTitleWarning",[zq,Gb]=hj(Xb,{contentName:Tr,titleName:gf,docsSlug:"dialog"}),zN=({titleId:e})=>{const t=Gb(Xb),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
+
43
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
+
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},$N="DialogDescriptionWarning",YN=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gb($N).contentName}}.`;return i.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},UN=Ab,BN=Fb,KN=Wb,HN=zb,VN=$b,XN=Ub,GN=Kb,qb=Vb;function Zb({...e}){return j.jsxRuntimeExports.jsx(UN,{"data-slot":"dialog",...e})}function qN({...e}){return j.jsxRuntimeExports.jsx(BN,{"data-slot":"dialog-trigger",...e})}function Jb({...e}){return j.jsxRuntimeExports.jsx(KN,{"data-slot":"dialog-portal",...e})}function ZN({...e}){return j.jsxRuntimeExports.jsx(qb,{"data-slot":"dialog-close",...e})}function Qb({className:e,...t}){return j.jsxRuntimeExports.jsx(HN,{"data-slot":"dialog-overlay",className:W("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function ey({className:e,children:t,showCloseButton:r=!0,...n}){return j.jsxRuntimeExports.jsxs(Jb,{"data-slot":"dialog-portal",children:[j.jsxRuntimeExports.jsx(Qb,{}),j.jsxRuntimeExports.jsxs(VN,{"data-slot":"dialog-content",className:W("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[t,r&&j.jsxRuntimeExports.jsxs(qb,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[j.jsxRuntimeExports.jsx(ge.XIcon,{}),j.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function ty({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:W("flex flex-col gap-2 text-center sm:text-left",e),...t})}function JN({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:W("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function ry({className:e,...t}){return j.jsxRuntimeExports.jsx(XN,{"data-slot":"dialog-title",className:W("text-lg leading-none font-semibold",e),...t})}function ny({className:e,...t}){return j.jsxRuntimeExports.jsx(GN,{"data-slot":"dialog-description",className:W("text-muted-foreground text-sm",e),...t})}function ec({className:e,...t}){return j.jsxRuntimeExports.jsx(Ur.Command,{"data-slot":"command",className:W("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function QN({title:e="Command Palette",description:t="Search for a command to run...",children:r,className:n,showCloseButton:o=!0,...a}){return j.jsxRuntimeExports.jsxs(Zb,{...a,children:[j.jsxRuntimeExports.jsxs(ty,{className:"sr-only",children:[j.jsxRuntimeExports.jsx(ry,{children:e}),j.jsxRuntimeExports.jsx(ny,{children:t})]}),j.jsxRuntimeExports.jsx(ey,{className:W("overflow-hidden p-0",n),showCloseButton:o,children:j.jsxRuntimeExports.jsx(ec,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[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:r})})]})}function bf({className:e,...t}){return j.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[j.jsxRuntimeExports.jsx(ge.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),j.jsxRuntimeExports.jsx(Ur.Command.Input,{"data-slot":"command-input",className:W("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function yf({className:e,...t}){return j.jsxRuntimeExports.jsx(Ur.Command.List,{"data-slot":"command-list",className:W("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function wf({...e}){return j.jsxRuntimeExports.jsx(Ur.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Oi({className:e,...t}){return j.jsxRuntimeExports.jsx(Ur.Command.Group,{"data-slot":"command-group",className:W("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function oy({className:e,...t}){return j.jsxRuntimeExports.jsx(Ur.Command.Separator,{"data-slot":"command-separator",className:W("bg-border -mx-1 h-px",e),...t})}function Di({className:e,...t}){return j.jsxRuntimeExports.jsx(Ur.Command.Item,{"data-slot":"command-item",className:W("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function eT({className:e,...t}){return j.jsxRuntimeExports.jsx("span",{"data-slot":"command-shortcut",className:W("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}var eu={exports:{}},yo={};/**
46
+ * @license React
47
+ * react-jsx-runtime.production.js
48
+ *
49
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
50
+ *
51
+ * This source code is licensed under the MIT license found in the
52
+ * LICENSE file in the root directory of this source tree.
53
+ */var Op;function tT(){if(Op)return yo;Op=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return yo.Fragment=t,yo.jsx=r,yo.jsxs=r,yo}var Ra={};/**
54
+ * @license React
55
+ * react-jsx-runtime.development.js
56
+ *
57
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
58
+ *
59
+ * This source code is licensed under the MIT license found in the
60
+ * LICENSE file in the root directory of this source tree.
61
+ */var Dp;function rT(){return Dp||(Dp=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,_,F,A,G,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,_,F,A,G,X){var O=k.children;if(O!==void 0)if(_)if(K(O)){for(_=0;_<O.length;_++)p(O[_]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(k,"key")){O=e(f);var $=Object.keys(k).filter(function(me){return me!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[O+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
62
+ let props = %s;
63
+ <%s {...props} />
64
+ React keys must be passed directly to JSX without using spread:
65
+ let props = %s;
66
+ <%s key={someKey} {...props} />`,_,O,$,O),V[O+_]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),c(k)&&(r(k.key),O=""+k.key),"key"in k){N={};for(var q in k)q!=="key"&&(N[q]=k[q])}else N=k;return O&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),N,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};Ra.Fragment=d,Ra.jsx=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},Ra.jsxs=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),Ra}var Pp;function nT(){return Pp||(Pp=1,process.env.NODE_ENV==="production"?eu.exports=tT():eu.exports=rT()),eu.exports}var ue=nT();P.createContext({locale:void 0});const oT={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]};P.createContext({user:oT,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});const aT=ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function ay(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ay(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function sT(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ay(e))&&(n&&(n+=" "),n+=t);return n}function iT(...e){return Xh.twMerge(sT(e))}function sy({className:e,variant:t,size:r,asChild:n=!1,...o}){const a=n?Z.Slot:"button";return ue.jsx(a,{"data-slot":"button",className:iT(aT({variant:t,size:r,className:e})),...o})}ve.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function hr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Mp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cT(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Mp(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Mp(e[o],null)}}}}function Kr(...e){return i.useCallback(cT(...e),e)}function uT(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ue.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function lT(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return ue.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,dT(o,...t)]}function dT(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var pd=globalThis?.document?i.useLayoutEffect:()=>{},fT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qt=fT.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ue.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pT(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function zo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function mT(e,t=globalThis?.document){const r=zo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var vT="DismissableLayer",md="dismissableLayer.update",gT="dismissableLayer.pointerDownOutside",hT="dismissableLayer.focusOutside",Ap,iy=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cy=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(iy),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Kr(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=wT(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=xT(R=>{const C=R.target;[...l.branches].some(M=>M.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return mT(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ap=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ip(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Ap)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ip())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(md,R),()=>document.removeEventListener(md,R)},[]),ue.jsx(qt.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:hr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:hr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:hr(e.onPointerDownCapture,S.onPointerDownCapture)})});cy.displayName=vT;var bT="DismissableLayerBranch",yT=i.forwardRef((e,t)=>{const r=i.useContext(iy),n=i.useRef(null),o=Kr(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ue.jsx(qt.div,{...e,ref:o})});yT.displayName=bT;function wT(e,t=globalThis?.document){const r=zo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){uy(gT,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function xT(e,t=globalThis?.document){const r=zo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&uy(hT,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Ip(){const e=new CustomEvent(md);document.dispatchEvent(e)}function uy(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?pT(o,a):o.dispatchEvent(a)}var tu="focusScope.autoFocusOnMount",ru="focusScope.autoFocusOnUnmount",Fp={bubbles:!1,cancelable:!0},ET="FocusScope",ly=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=zo(o),u=zo(a),p=i.useRef(null),v=Kr(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:nr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||nr(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&nr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Wp.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(tu,Fp);s.addEventListener(tu,l),s.dispatchEvent(g),g.defaultPrevented||(kT(NT(dy(s)),{select:!0}),document.activeElement===d&&nr(s))}return()=>{s.removeEventListener(tu,l),setTimeout(()=>{const g=new CustomEvent(ru,Fp);s.addEventListener(ru,u),s.dispatchEvent(g),g.defaultPrevented||nr(d??document.body,{select:!0}),s.removeEventListener(ru,u),Wp.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=RT(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&nr(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&nr(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return ue.jsx(qt.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});ly.displayName=ET;function kT(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(nr(n,{select:t}),document.activeElement!==r)return}function RT(e){const t=dy(e),r=Lp(t,e),n=Lp(t.reverse(),e);return[r,n]}function dy(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Lp(e,t){for(const r of e)if(!ST(r,{upTo:t}))return r}function ST(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function CT(e){return e instanceof HTMLInputElement&&"select"in e}function nr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&CT(e)&&t&&e.select()}}var Wp=jT();function jT(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=zp(e,t),e.unshift(t)},remove(t){e=zp(e,t),e[0]?.resume()}}}function zp(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function NT(e){return e.filter(t=>t.tagName!=="A")}var TT="Portal",_T=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);pd(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(ue.jsx(qt.div,{...n,ref:t}),c):null});_T.displayName=TT;function OT(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var xf=e=>{const{present:t,children:r}=e,n=DT(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Kr(n.ref,PT(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};xf.displayName="Presence";function DT(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=OT(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Sa(n.current);a.current=s==="mounted"?l:"none"},[s]),pd(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Sa(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),pd(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Sa(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Sa(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Sa(e){return e?.animationName||"none"}function PT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var nu=0;function MT(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$p()),document.body.insertAdjacentElement("beforeend",e[1]??$p()),nu++,()=>{nu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),nu--}},[])}function $p(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var nt=function(){return nt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nt.apply(this,arguments)};function fy(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function AT(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Js="right-scroll-bar-position",Qs="width-before-scroll-bar",IT="with-scroll-bars-hidden",FT="--removed-body-scroll-bar-size";function ou(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function LT(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var WT=typeof window<"u"?i.useLayoutEffect:i.useEffect,Yp=new WeakMap;function zT(e,t){var r=LT(null,function(n){return e.forEach(function(o){return ou(o,n)})});return WT(function(){var n=Yp.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||ou(s,null)}),a.forEach(function(s){o.has(s)||ou(s,c)})}Yp.set(r,e)},[e]),r}function $T(e){return e}function YT(e,t){t===void 0&&(t=$T);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function UT(e){e===void 0&&(e={});var t=YT(null);return t.options=nt({async:!0,ssr:!1},e),t}var py=function(e){var t=e.sideCar,r=fy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,nt({},r))};py.isSideCarExport=!0;function BT(e,t){return e.useMedium(t),py}var my=UT(),au=function(){},tc=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:au,onWheelCapture:au,onTouchMoveCapture:au}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=fy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=zT([r,t]),R=nt(nt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:my,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),nt(nt({},R),{ref:T})):i.createElement(y,nt({},R,{className:m,ref:T}),s))});tc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tc.classNames={fullWidth:Qs,zeroRight:Js};var KT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function HT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=KT();return t&&e.setAttribute("nonce",t),e}function VT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function XT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var GT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=HT())&&(VT(t,r),XT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qT=function(){var e=GT();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},vy=function(){var e=qT(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},ZT={left:0,top:0,right:0,gap:0},su=function(e){return parseInt(e||"",10)||0},JT=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[su(r),su(n),su(o)]},QT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ZT;var t=JT(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},e_=vy(),$n="data-scroll-locked",t_=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
67
+ .`.concat(IT,` {
68
+ overflow: hidden `).concat(n,`;
69
+ padding-right: `).concat(s,"px ").concat(n,`;
70
+ }
71
+ body[`).concat($n,`] {
72
+ overflow: hidden `).concat(n,`;
73
+ overscroll-behavior: contain;
74
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
75
+ padding-left: `.concat(o,`px;
76
+ padding-top: `).concat(a,`px;
77
+ padding-right: `).concat(c,`px;
78
+ margin-left:0;
79
+ margin-top:0;
80
+ margin-right: `).concat(s,"px ").concat(n,`;
81
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
82
+ }
83
+
84
+ .`).concat(Js,` {
85
+ right: `).concat(s,"px ").concat(n,`;
86
+ }
87
+
88
+ .`).concat(Qs,` {
89
+ margin-right: `).concat(s,"px ").concat(n,`;
90
+ }
91
+
92
+ .`).concat(Js," .").concat(Js,` {
93
+ right: 0 `).concat(n,`;
94
+ }
95
+
96
+ .`).concat(Qs," .").concat(Qs,` {
97
+ margin-right: 0 `).concat(n,`;
98
+ }
99
+
100
+ body[`).concat($n,`] {
101
+ `).concat(FT,": ").concat(s,`px;
102
+ }
103
+ `)},Up=function(){var e=parseInt(document.body.getAttribute($n)||"0",10);return isFinite(e)?e:0},r_=function(){i.useEffect(function(){return document.body.setAttribute($n,(Up()+1).toString()),function(){var e=Up()-1;e<=0?document.body.removeAttribute($n):document.body.setAttribute($n,e.toString())}},[])},n_=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;r_();var a=i.useMemo(function(){return QT(o)},[o]);return i.createElement(e_,{styles:t_(a,!t,o,r?"":"!important")})},vd=!1;if(typeof window<"u")try{var Ca=Object.defineProperty({},"passive",{get:function(){return vd=!0,!0}});window.addEventListener("test",Ca,Ca),window.removeEventListener("test",Ca,Ca)}catch{vd=!1}var Qr=vd?{passive:!1}:!1,o_=function(e){return e.tagName==="TEXTAREA"},gy=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!o_(e)&&r[t]==="visible")},a_=function(e){return gy(e,"overflowY")},s_=function(e){return gy(e,"overflowX")},Bp=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=hy(e,n);if(o){var a=by(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},i_=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},c_=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},hy=function(e,t){return e==="v"?a_(t):s_(t)},by=function(e,t){return e==="v"?i_(t):c_(t)},u_=function(e,t){return e==="h"&&t==="rtl"?-1:1},l_=function(e,t,r,n,o){var a=u_(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=by(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&hy(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},ja=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Kp=function(e){return[e.deltaX,e.deltaY]},Hp=function(e){return e&&"current"in e?e.current:e},d_=function(e,t){return e[0]===t[0]&&e[1]===t[1]},f_=function(e){return`
104
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
105
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
106
+ `)},p_=0,en=[];function m_(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(p_++)[0],a=i.useState(vy)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=AT([e.lockRef.current],(e.shards||[]).map(Hp)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=ja(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=Bp(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=Bp(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return l_(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!en.length||en[en.length-1]!==a)){var b="deltaY"in g?Kp(g):ja(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&d_(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Hp).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:v_(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=ja(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Kp(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,ja(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return en.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Qr),document.addEventListener("touchmove",m,Qr),document.addEventListener("touchstart",u,Qr),function(){en=en.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,Qr),document.removeEventListener("touchmove",m,Qr),document.removeEventListener("touchstart",u,Qr)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:f_(o)}):null,h?i.createElement(n_,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function v_(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const g_=BT(my,m_);var yy=i.forwardRef(function(e,t){return i.createElement(tc,nt({},e,{ref:t,sideCar:g_}))});yy.classNames=tc.classNames;var h_=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},tn=new WeakMap,Na=new WeakMap,Ta={},iu=0,wy=function(e){return e&&(e.host||wy(e.parentNode))},b_=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=wy(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},y_=function(e,t,r,n){var o=b_(t,Array.isArray(e)?e:[e]);Ta[r]||(Ta[r]=new WeakMap);var a=Ta[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(tn.get(v)||0)+1,g=(a.get(v)||0)+1;tn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Na.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),iu++,function(){c.forEach(function(p){var v=tn.get(p)-1,h=a.get(p)-1;tn.set(p,v),a.set(p,h),v||(Na.has(p)||p.removeAttribute(n),Na.delete(p)),h||p.removeAttribute(r)}),iu--,iu||(tn=new WeakMap,tn=new WeakMap,Na=new WeakMap,Ta={})}},w_=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=h_(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),y_(n,o,r,"aria-hidden")):function(){return null}},xy="Dialog",[Ey]=lT(xy),[$q,_t]=Ey(xy),ky="DialogTrigger",x_=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(ky,r),a=Kr(t,o.triggerRef);return ue.jsx(qt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":kf(o.open),...n,ref:a,onClick:hr(e.onClick,o.onOpenToggle)})});x_.displayName=ky;var E_="DialogPortal",[Yq,Ry]=Ey(E_,{forceMount:void 0}),Pi="DialogOverlay",k_=i.forwardRef((e,t)=>{const r=Ry(Pi,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=_t(Pi,e.__scopeDialog);return a.modal?ue.jsx(xf,{present:n||a.open,children:ue.jsx(S_,{...o,ref:t})}):null});k_.displayName=Pi;var R_=Z.createSlot("DialogOverlay.RemoveScroll"),S_=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(Pi,r);return ue.jsx(yy,{as:R_,allowPinchZoom:!0,shards:[o.contentRef],children:ue.jsx(qt.div,{"data-state":kf(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),_r="DialogContent",C_=i.forwardRef((e,t)=>{const r=Ry(_r,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=_t(_r,e.__scopeDialog);return ue.jsx(xf,{present:n||a.open,children:a.modal?ue.jsx(j_,{...o,ref:t}):ue.jsx(N_,{...o,ref:t})})});C_.displayName=_r;var j_=i.forwardRef((e,t)=>{const r=_t(_r,e.__scopeDialog),n=i.useRef(null),o=Kr(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return w_(a)},[]),ue.jsx(Sy,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:hr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:hr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:hr(e.onFocusOutside,a=>a.preventDefault())})}),N_=i.forwardRef((e,t)=>{const r=_t(_r,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ue.jsx(Sy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Sy=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=_t(_r,r),m=i.useRef(null),l=Kr(t,m);return MT(),ue.jsxs(ue.Fragment,{children:[ue.jsx(ly,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ue.jsx(cy,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":kf(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),ue.jsxs(ue.Fragment,{children:[ue.jsx(D_,{titleId:s.titleId}),ue.jsx(M_,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Ef="DialogTitle",T_=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(Ef,r);return ue.jsx(qt.h2,{id:o.titleId,...n,ref:t})});T_.displayName=Ef;var Cy="DialogDescription",__=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(Cy,r);return ue.jsx(qt.p,{id:o.descriptionId,...n,ref:t})});__.displayName=Cy;var jy="DialogClose",O_=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(jy,r);return ue.jsx(qt.button,{type:"button",...n,ref:t,onClick:hr(e.onClick,()=>o.onOpenChange(!1))})});O_.displayName=jy;function kf(e){return e?"open":"closed"}var Ny="DialogTitleWarning",[Uq,Ty]=uT(Ny,{contentName:_r,titleName:Ef,docsSlug:"dialog"}),D_=({titleId:e})=>{const t=Ty(Ny),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
107
+
108
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
109
+
110
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},P_="DialogDescriptionWarning",M_=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ty(P_).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},cu={exports:{}},wo={};/**
111
+ * @license React
112
+ * react-jsx-runtime.production.js
113
+ *
114
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
115
+ *
116
+ * This source code is licensed under the MIT license found in the
117
+ * LICENSE file in the root directory of this source tree.
118
+ */var Vp;function A_(){if(Vp)return wo;Vp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return wo.Fragment=t,wo.jsx=r,wo.jsxs=r,wo}var _a={};/**
119
+ * @license React
120
+ * react-jsx-runtime.development.js
121
+ *
122
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
123
+ *
124
+ * This source code is licensed under the MIT license found in the
125
+ * LICENSE file in the root directory of this source tree.
126
+ */var Xp;function I_(){return Xp||(Xp=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,_,F,A,G,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,_,F,A,G,X){var O=k.children;if(O!==void 0)if(_)if(K(O)){for(_=0;_<O.length;_++)p(O[_]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(k,"key")){O=e(f);var $=Object.keys(k).filter(function(me){return me!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[O+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
127
+ let props = %s;
128
+ <%s {...props} />
129
+ React keys must be passed directly to JSX without using spread:
130
+ let props = %s;
131
+ <%s key={someKey} {...props} />`,_,O,$,O),V[O+_]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),c(k)&&(r(k.key),O=""+k.key),"key"in k){N={};for(var q in k)q!=="key"&&(N[q]=k[q])}else N=k;return O&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),N,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};_a.Fragment=d,_a.jsx=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},_a.jsxs=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),_a}var Gp;function F_(){return Gp||(Gp=1,process.env.NODE_ENV==="production"?cu.exports=A_():cu.exports=I_()),cu.exports}var le=F_();P.createContext({locale:void 0});ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ve.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function br(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function qp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function L_(...e){return t=>{let r=!1;const n=e.map(o=>{const a=qp(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():qp(e[o],null)}}}}function Hr(...e){return i.useCallback(L_(...e),e)}function W_(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return le.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function z_(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return le.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,$_(o,...t)]}function $_(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var gd=globalThis?.document?i.useLayoutEffect:()=>{},Y_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zt=Y_.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),le.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function U_(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function $o(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function B_(e,t=globalThis?.document){const r=$o(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var K_="DismissableLayer",hd="dismissableLayer.update",H_="dismissableLayer.pointerDownOutside",V_="dismissableLayer.focusOutside",Zp,_y=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Oy=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(_y),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Hr(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=q_(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=Z_(R=>{const C=R.target;[...l.branches].some(M=>M.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return B_(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Zp=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Jp(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Zp)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Jp())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(hd,R),()=>document.removeEventListener(hd,R)},[]),le.jsx(Zt.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:br(e.onFocusCapture,T.onFocusCapture),onBlurCapture:br(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:br(e.onPointerDownCapture,S.onPointerDownCapture)})});Oy.displayName=K_;var X_="DismissableLayerBranch",G_=i.forwardRef((e,t)=>{const r=i.useContext(_y),n=i.useRef(null),o=Hr(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),le.jsx(Zt.div,{...e,ref:o})});G_.displayName=X_;function q_(e,t=globalThis?.document){const r=$o(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){Dy(H_,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Z_(e,t=globalThis?.document){const r=$o(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Dy(V_,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Jp(){const e=new CustomEvent(hd);document.dispatchEvent(e)}function Dy(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?U_(o,a):o.dispatchEvent(a)}var uu="focusScope.autoFocusOnMount",lu="focusScope.autoFocusOnUnmount",Qp={bubbles:!1,cancelable:!0},J_="FocusScope",Py=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=$o(o),u=$o(a),p=i.useRef(null),v=Hr(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:or(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||or(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&or(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){tm.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(uu,Qp);s.addEventListener(uu,l),s.dispatchEvent(g),g.defaultPrevented||(Q_(oO(My(s)),{select:!0}),document.activeElement===d&&or(s))}return()=>{s.removeEventListener(uu,l),setTimeout(()=>{const g=new CustomEvent(lu,Qp);s.addEventListener(lu,u),s.dispatchEvent(g),g.defaultPrevented||or(d??document.body,{select:!0}),s.removeEventListener(lu,u),tm.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=eO(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&or(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&or(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return le.jsx(Zt.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});Py.displayName=J_;function Q_(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(or(n,{select:t}),document.activeElement!==r)return}function eO(e){const t=My(e),r=em(t,e),n=em(t.reverse(),e);return[r,n]}function My(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function em(e,t){for(const r of e)if(!tO(r,{upTo:t}))return r}function tO(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rO(e){return e instanceof HTMLInputElement&&"select"in e}function or(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&rO(e)&&t&&e.select()}}var tm=nO();function nO(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=rm(e,t),e.unshift(t)},remove(t){e=rm(e,t),e[0]?.resume()}}}function rm(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function oO(e){return e.filter(t=>t.tagName!=="A")}var aO="Portal",sO=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);gd(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(le.jsx(Zt.div,{...n,ref:t}),c):null});sO.displayName=aO;function iO(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Rf=e=>{const{present:t,children:r}=e,n=cO(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Hr(n.ref,uO(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Rf.displayName="Presence";function cO(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=iO(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Oa(n.current);a.current=s==="mounted"?l:"none"},[s]),gd(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Oa(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),gd(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Oa(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Oa(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Oa(e){return e?.animationName||"none"}function uO(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var du=0;function lO(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nm()),document.body.insertAdjacentElement("beforeend",e[1]??nm()),du++,()=>{du===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),du--}},[])}function nm(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ot=function(){return ot=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ot.apply(this,arguments)};function Ay(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function dO(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var ei="right-scroll-bar-position",ti="width-before-scroll-bar",fO="with-scroll-bars-hidden",pO="--removed-body-scroll-bar-size";function fu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mO(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var vO=typeof window<"u"?i.useLayoutEffect:i.useEffect,om=new WeakMap;function gO(e,t){var r=mO(null,function(n){return e.forEach(function(o){return fu(o,n)})});return vO(function(){var n=om.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||fu(s,null)}),a.forEach(function(s){o.has(s)||fu(s,c)})}om.set(r,e)},[e]),r}function hO(e){return e}function bO(e,t){t===void 0&&(t=hO);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function yO(e){e===void 0&&(e={});var t=bO(null);return t.options=ot({async:!0,ssr:!1},e),t}var Iy=function(e){var t=e.sideCar,r=Ay(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ot({},r))};Iy.isSideCarExport=!0;function wO(e,t){return e.useMedium(t),Iy}var Fy=yO(),pu=function(){},rc=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:pu,onWheelCapture:pu,onTouchMoveCapture:pu}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=Ay(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=gO([r,t]),R=ot(ot({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:Fy,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ot(ot({},R),{ref:T})):i.createElement(y,ot({},R,{className:m,ref:T}),s))});rc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rc.classNames={fullWidth:ti,zeroRight:ei};var xO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function EO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=xO();return t&&e.setAttribute("nonce",t),e}function kO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function RO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var SO=function(){var e=0,t=null;return{add:function(r){e==0&&(t=EO())&&(kO(t,r),RO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},CO=function(){var e=SO();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ly=function(){var e=CO(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},jO={left:0,top:0,right:0,gap:0},mu=function(e){return parseInt(e||"",10)||0},NO=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[mu(r),mu(n),mu(o)]},TO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return jO;var t=NO(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},_O=Ly(),Yn="data-scroll-locked",OO=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
132
+ .`.concat(fO,` {
133
+ overflow: hidden `).concat(n,`;
134
+ padding-right: `).concat(s,"px ").concat(n,`;
135
+ }
136
+ body[`).concat(Yn,`] {
137
+ overflow: hidden `).concat(n,`;
138
+ overscroll-behavior: contain;
139
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
140
+ padding-left: `.concat(o,`px;
141
+ padding-top: `).concat(a,`px;
142
+ padding-right: `).concat(c,`px;
143
+ margin-left:0;
144
+ margin-top:0;
145
+ margin-right: `).concat(s,"px ").concat(n,`;
146
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
147
+ }
148
+
149
+ .`).concat(ei,` {
150
+ right: `).concat(s,"px ").concat(n,`;
151
+ }
152
+
153
+ .`).concat(ti,` {
154
+ margin-right: `).concat(s,"px ").concat(n,`;
155
+ }
156
+
157
+ .`).concat(ei," .").concat(ei,` {
158
+ right: 0 `).concat(n,`;
159
+ }
160
+
161
+ .`).concat(ti," .").concat(ti,` {
162
+ margin-right: 0 `).concat(n,`;
163
+ }
164
+
165
+ body[`).concat(Yn,`] {
166
+ `).concat(pO,": ").concat(s,`px;
167
+ }
168
+ `)},am=function(){var e=parseInt(document.body.getAttribute(Yn)||"0",10);return isFinite(e)?e:0},DO=function(){i.useEffect(function(){return document.body.setAttribute(Yn,(am()+1).toString()),function(){var e=am()-1;e<=0?document.body.removeAttribute(Yn):document.body.setAttribute(Yn,e.toString())}},[])},PO=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;DO();var a=i.useMemo(function(){return TO(o)},[o]);return i.createElement(_O,{styles:OO(a,!t,o,r?"":"!important")})},bd=!1;if(typeof window<"u")try{var Da=Object.defineProperty({},"passive",{get:function(){return bd=!0,!0}});window.addEventListener("test",Da,Da),window.removeEventListener("test",Da,Da)}catch{bd=!1}var rn=bd?{passive:!1}:!1,MO=function(e){return e.tagName==="TEXTAREA"},Wy=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!MO(e)&&r[t]==="visible")},AO=function(e){return Wy(e,"overflowY")},IO=function(e){return Wy(e,"overflowX")},sm=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=zy(e,n);if(o){var a=$y(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},FO=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},LO=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},zy=function(e,t){return e==="v"?AO(t):IO(t)},$y=function(e,t){return e==="v"?FO(t):LO(t)},WO=function(e,t){return e==="h"&&t==="rtl"?-1:1},zO=function(e,t,r,n,o){var a=WO(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=$y(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&zy(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Pa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},im=function(e){return[e.deltaX,e.deltaY]},cm=function(e){return e&&"current"in e?e.current:e},$O=function(e,t){return e[0]===t[0]&&e[1]===t[1]},YO=function(e){return`
169
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
170
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
171
+ `)},UO=0,nn=[];function BO(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(UO++)[0],a=i.useState(Ly)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=dO([e.lockRef.current],(e.shards||[]).map(cm)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=Pa(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=sm(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=sm(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return zO(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!nn.length||nn[nn.length-1]!==a)){var b="deltaY"in g?im(g):Pa(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&$O(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(cm).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:KO(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Pa(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,im(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Pa(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return nn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,rn),document.addEventListener("touchmove",m,rn),document.addEventListener("touchstart",u,rn),function(){nn=nn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,rn),document.removeEventListener("touchmove",m,rn),document.removeEventListener("touchstart",u,rn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:YO(o)}):null,h?i.createElement(PO,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function KO(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const HO=wO(Fy,BO);var Yy=i.forwardRef(function(e,t){return i.createElement(rc,ot({},e,{ref:t,sideCar:HO}))});Yy.classNames=rc.classNames;var VO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},on=new WeakMap,Ma=new WeakMap,Aa={},vu=0,Uy=function(e){return e&&(e.host||Uy(e.parentNode))},XO=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Uy(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},GO=function(e,t,r,n){var o=XO(t,Array.isArray(e)?e:[e]);Aa[r]||(Aa[r]=new WeakMap);var a=Aa[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(on.get(v)||0)+1,g=(a.get(v)||0)+1;on.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Ma.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),vu++,function(){c.forEach(function(p){var v=on.get(p)-1,h=a.get(p)-1;on.set(p,v),a.set(p,h),v||(Ma.has(p)||p.removeAttribute(n),Ma.delete(p)),h||p.removeAttribute(r)}),vu--,vu||(on=new WeakMap,on=new WeakMap,Ma=new WeakMap,Aa={})}},qO=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=VO(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),GO(n,o,r,"aria-hidden")):function(){return null}},By="Dialog",[Ky]=z_(By),[Bq,Ot]=Ky(By),Hy="DialogTrigger",ZO=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ot(Hy,r),a=Hr(t,o.triggerRef);return le.jsx(Zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Cf(o.open),...n,ref:a,onClick:br(e.onClick,o.onOpenToggle)})});ZO.displayName=Hy;var JO="DialogPortal",[Kq,Vy]=Ky(JO,{forceMount:void 0}),Mi="DialogOverlay",QO=i.forwardRef((e,t)=>{const r=Vy(Mi,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ot(Mi,e.__scopeDialog);return a.modal?le.jsx(Rf,{present:n||a.open,children:le.jsx(tD,{...o,ref:t})}):null});QO.displayName=Mi;var eD=Z.createSlot("DialogOverlay.RemoveScroll"),tD=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ot(Mi,r);return le.jsx(Yy,{as:eD,allowPinchZoom:!0,shards:[o.contentRef],children:le.jsx(Zt.div,{"data-state":Cf(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Or="DialogContent",rD=i.forwardRef((e,t)=>{const r=Vy(Or,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ot(Or,e.__scopeDialog);return le.jsx(Rf,{present:n||a.open,children:a.modal?le.jsx(nD,{...o,ref:t}):le.jsx(oD,{...o,ref:t})})});rD.displayName=Or;var nD=i.forwardRef((e,t)=>{const r=Ot(Or,e.__scopeDialog),n=i.useRef(null),o=Hr(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return qO(a)},[]),le.jsx(Xy,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:br(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:br(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:br(e.onFocusOutside,a=>a.preventDefault())})}),oD=i.forwardRef((e,t)=>{const r=Ot(Or,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return le.jsx(Xy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Xy=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Ot(Or,r),m=i.useRef(null),l=Hr(t,m);return lO(),le.jsxs(le.Fragment,{children:[le.jsx(Py,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:le.jsx(Oy,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Cf(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),le.jsxs(le.Fragment,{children:[le.jsx(cD,{titleId:s.titleId}),le.jsx(lD,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Sf="DialogTitle",aD=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ot(Sf,r);return le.jsx(Zt.h2,{id:o.titleId,...n,ref:t})});aD.displayName=Sf;var Gy="DialogDescription",sD=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ot(Gy,r);return le.jsx(Zt.p,{id:o.descriptionId,...n,ref:t})});sD.displayName=Gy;var qy="DialogClose",iD=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ot(qy,r);return le.jsx(Zt.button,{type:"button",...n,ref:t,onClick:br(e.onClick,()=>o.onOpenChange(!1))})});iD.displayName=qy;function Cf(e){return e?"open":"closed"}var Zy="DialogTitleWarning",[Hq,Jy]=W_(Zy,{contentName:Or,titleName:Sf,docsSlug:"dialog"}),cD=({titleId:e})=>{const t=Jy(Zy),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
172
+
173
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
174
+
175
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},uD="DialogDescriptionWarning",lD=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Jy(uD).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},gu={exports:{}},xo={};/**
176
+ * @license React
177
+ * react-jsx-runtime.production.js
178
+ *
179
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
180
+ *
181
+ * This source code is licensed under the MIT license found in the
182
+ * LICENSE file in the root directory of this source tree.
183
+ */var um;function dD(){if(um)return xo;um=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return xo.Fragment=t,xo.jsx=r,xo.jsxs=r,xo}var Ia={};/**
184
+ * @license React
185
+ * react-jsx-runtime.development.js
186
+ *
187
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
188
+ *
189
+ * This source code is licensed under the MIT license found in the
190
+ * LICENSE file in the root directory of this source tree.
191
+ */var lm;function fD(){return lm||(lm=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,_,F,A,G,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,_,F,A,G,X){var O=k.children;if(O!==void 0)if(_)if(K(O)){for(_=0;_<O.length;_++)p(O[_]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(k,"key")){O=e(f);var $=Object.keys(k).filter(function(me){return me!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[O+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
192
+ let props = %s;
193
+ <%s {...props} />
194
+ React keys must be passed directly to JSX without using spread:
195
+ let props = %s;
196
+ <%s key={someKey} {...props} />`,_,O,$,O),V[O+_]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),c(k)&&(r(k.key),O=""+k.key),"key"in k){N={};for(var q in k)q!=="key"&&(N[q]=k[q])}else N=k;return O&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),N,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};Ia.Fragment=d,Ia.jsx=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},Ia.jsxs=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),Ia}var dm;function pD(){return dm||(dm=1,process.env.NODE_ENV==="production"?gu.exports=dD():gu.exports=fD()),gu.exports}var de=pD();P.createContext({locale:void 0});ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ve.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function yr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function fm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mD(...e){return t=>{let r=!1;const n=e.map(o=>{const a=fm(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():fm(e[o],null)}}}}function Vr(...e){return i.useCallback(mD(...e),e)}function vD(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return de.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function gD(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return de.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,hD(o,...t)]}function hD(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var yd=globalThis?.document?i.useLayoutEffect:()=>{},bD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Jt=bD.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),de.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function yD(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function Yo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function wD(e,t=globalThis?.document){const r=Yo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var xD="DismissableLayer",wd="dismissableLayer.update",ED="dismissableLayer.pointerDownOutside",kD="dismissableLayer.focusOutside",pm,Qy=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ew=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(Qy),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Vr(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=CD(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=jD(R=>{const C=R.target;[...l.branches].some(M=>M.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return wD(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(pm=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),mm(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=pm)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),mm())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(wd,R),()=>document.removeEventListener(wd,R)},[]),de.jsx(Jt.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:yr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:yr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:yr(e.onPointerDownCapture,S.onPointerDownCapture)})});ew.displayName=xD;var RD="DismissableLayerBranch",SD=i.forwardRef((e,t)=>{const r=i.useContext(Qy),n=i.useRef(null),o=Vr(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),de.jsx(Jt.div,{...e,ref:o})});SD.displayName=RD;function CD(e,t=globalThis?.document){const r=Yo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){tw(ED,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function jD(e,t=globalThis?.document){const r=Yo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&tw(kD,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function mm(){const e=new CustomEvent(wd);document.dispatchEvent(e)}function tw(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?yD(o,a):o.dispatchEvent(a)}var hu="focusScope.autoFocusOnMount",bu="focusScope.autoFocusOnUnmount",vm={bubbles:!1,cancelable:!0},ND="FocusScope",rw=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=Yo(o),u=Yo(a),p=i.useRef(null),v=Vr(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:ar(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||ar(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&ar(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){hm.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(hu,vm);s.addEventListener(hu,l),s.dispatchEvent(g),g.defaultPrevented||(TD(MD(nw(s)),{select:!0}),document.activeElement===d&&ar(s))}return()=>{s.removeEventListener(hu,l),setTimeout(()=>{const g=new CustomEvent(bu,vm);s.addEventListener(bu,u),s.dispatchEvent(g),g.defaultPrevented||ar(d??document.body,{select:!0}),s.removeEventListener(bu,u),hm.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=_D(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&ar(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&ar(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return de.jsx(Jt.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});rw.displayName=ND;function TD(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ar(n,{select:t}),document.activeElement!==r)return}function _D(e){const t=nw(e),r=gm(t,e),n=gm(t.reverse(),e);return[r,n]}function nw(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function gm(e,t){for(const r of e)if(!OD(r,{upTo:t}))return r}function OD(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function DD(e){return e instanceof HTMLInputElement&&"select"in e}function ar(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&DD(e)&&t&&e.select()}}var hm=PD();function PD(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=bm(e,t),e.unshift(t)},remove(t){e=bm(e,t),e[0]?.resume()}}}function bm(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function MD(e){return e.filter(t=>t.tagName!=="A")}var AD="Portal",ID=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);yd(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(de.jsx(Jt.div,{...n,ref:t}),c):null});ID.displayName=AD;function FD(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var jf=e=>{const{present:t,children:r}=e,n=LD(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Vr(n.ref,WD(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};jf.displayName="Presence";function LD(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=FD(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Fa(n.current);a.current=s==="mounted"?l:"none"},[s]),yd(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Fa(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),yd(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Fa(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Fa(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Fa(e){return e?.animationName||"none"}function WD(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var yu=0;function zD(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ym()),document.body.insertAdjacentElement("beforeend",e[1]??ym()),yu++,()=>{yu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yu--}},[])}function ym(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var at=function(){return at=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},at.apply(this,arguments)};function ow(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function $D(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var ri="right-scroll-bar-position",ni="width-before-scroll-bar",YD="with-scroll-bars-hidden",UD="--removed-body-scroll-bar-size";function wu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function BD(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var KD=typeof window<"u"?i.useLayoutEffect:i.useEffect,wm=new WeakMap;function HD(e,t){var r=BD(null,function(n){return e.forEach(function(o){return wu(o,n)})});return KD(function(){var n=wm.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||wu(s,null)}),a.forEach(function(s){o.has(s)||wu(s,c)})}wm.set(r,e)},[e]),r}function VD(e){return e}function XD(e,t){t===void 0&&(t=VD);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function GD(e){e===void 0&&(e={});var t=XD(null);return t.options=at({async:!0,ssr:!1},e),t}var aw=function(e){var t=e.sideCar,r=ow(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,at({},r))};aw.isSideCarExport=!0;function qD(e,t){return e.useMedium(t),aw}var sw=GD(),xu=function(){},nc=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:xu,onWheelCapture:xu,onTouchMoveCapture:xu}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=ow(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=HD([r,t]),R=at(at({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:sw,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),at(at({},R),{ref:T})):i.createElement(y,at({},R,{className:m,ref:T}),s))});nc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};nc.classNames={fullWidth:ni,zeroRight:ri};var ZD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZD();return t&&e.setAttribute("nonce",t),e}function QD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function eP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=JD())&&(QD(t,r),eP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rP=function(){var e=tP();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},iw=function(){var e=rP(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},nP={left:0,top:0,right:0,gap:0},Eu=function(e){return parseInt(e||"",10)||0},oP=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Eu(r),Eu(n),Eu(o)]},aP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nP;var t=oP(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},sP=iw(),Un="data-scroll-locked",iP=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
197
+ .`.concat(YD,` {
198
+ overflow: hidden `).concat(n,`;
199
+ padding-right: `).concat(s,"px ").concat(n,`;
200
+ }
201
+ body[`).concat(Un,`] {
202
+ overflow: hidden `).concat(n,`;
203
+ overscroll-behavior: contain;
204
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
205
+ padding-left: `.concat(o,`px;
206
+ padding-top: `).concat(a,`px;
207
+ padding-right: `).concat(c,`px;
208
+ margin-left:0;
209
+ margin-top:0;
210
+ margin-right: `).concat(s,"px ").concat(n,`;
211
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
212
+ }
213
+
214
+ .`).concat(ri,` {
215
+ right: `).concat(s,"px ").concat(n,`;
216
+ }
217
+
218
+ .`).concat(ni,` {
219
+ margin-right: `).concat(s,"px ").concat(n,`;
220
+ }
221
+
222
+ .`).concat(ri," .").concat(ri,` {
223
+ right: 0 `).concat(n,`;
224
+ }
225
+
226
+ .`).concat(ni," .").concat(ni,` {
227
+ margin-right: 0 `).concat(n,`;
228
+ }
229
+
230
+ body[`).concat(Un,`] {
231
+ `).concat(UD,": ").concat(s,`px;
232
+ }
233
+ `)},xm=function(){var e=parseInt(document.body.getAttribute(Un)||"0",10);return isFinite(e)?e:0},cP=function(){i.useEffect(function(){return document.body.setAttribute(Un,(xm()+1).toString()),function(){var e=xm()-1;e<=0?document.body.removeAttribute(Un):document.body.setAttribute(Un,e.toString())}},[])},uP=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;cP();var a=i.useMemo(function(){return aP(o)},[o]);return i.createElement(sP,{styles:iP(a,!t,o,r?"":"!important")})},xd=!1;if(typeof window<"u")try{var La=Object.defineProperty({},"passive",{get:function(){return xd=!0,!0}});window.addEventListener("test",La,La),window.removeEventListener("test",La,La)}catch{xd=!1}var an=xd?{passive:!1}:!1,lP=function(e){return e.tagName==="TEXTAREA"},cw=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!lP(e)&&r[t]==="visible")},dP=function(e){return cw(e,"overflowY")},fP=function(e){return cw(e,"overflowX")},Em=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=uw(e,n);if(o){var a=lw(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},pP=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},mP=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},uw=function(e,t){return e==="v"?dP(t):fP(t)},lw=function(e,t){return e==="v"?pP(t):mP(t)},vP=function(e,t){return e==="h"&&t==="rtl"?-1:1},gP=function(e,t,r,n,o){var a=vP(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=lw(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&uw(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Wa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},km=function(e){return[e.deltaX,e.deltaY]},Rm=function(e){return e&&"current"in e?e.current:e},hP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bP=function(e){return`
234
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
235
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
236
+ `)},yP=0,sn=[];function wP(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(yP++)[0],a=i.useState(iw)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=$D([e.lockRef.current],(e.shards||[]).map(Rm)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=Wa(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=Em(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=Em(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return gP(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!sn.length||sn[sn.length-1]!==a)){var b="deltaY"in g?km(g):Wa(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&hP(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Rm).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:xP(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Wa(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,km(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Wa(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return sn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,an),document.addEventListener("touchmove",m,an),document.addEventListener("touchstart",u,an),function(){sn=sn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,an),document.removeEventListener("touchmove",m,an),document.removeEventListener("touchstart",u,an)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:bP(o)}):null,h?i.createElement(uP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function xP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const EP=qD(sw,wP);var dw=i.forwardRef(function(e,t){return i.createElement(nc,at({},e,{ref:t,sideCar:EP}))});dw.classNames=nc.classNames;var kP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cn=new WeakMap,za=new WeakMap,$a={},ku=0,fw=function(e){return e&&(e.host||fw(e.parentNode))},RP=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=fw(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},SP=function(e,t,r,n){var o=RP(t,Array.isArray(e)?e:[e]);$a[r]||($a[r]=new WeakMap);var a=$a[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(cn.get(v)||0)+1,g=(a.get(v)||0)+1;cn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&za.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),ku++,function(){c.forEach(function(p){var v=cn.get(p)-1,h=a.get(p)-1;cn.set(p,v),a.set(p,h),v||(za.has(p)||p.removeAttribute(n),za.delete(p)),h||p.removeAttribute(r)}),ku--,ku||(cn=new WeakMap,cn=new WeakMap,za=new WeakMap,$a={})}},CP=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=kP(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),SP(n,o,r,"aria-hidden")):function(){return null}},pw="Dialog",[mw]=gD(pw),[Vq,Dt]=mw(pw),vw="DialogTrigger",jP=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(vw,r),a=Vr(t,o.triggerRef);return de.jsx(Jt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Tf(o.open),...n,ref:a,onClick:yr(e.onClick,o.onOpenToggle)})});jP.displayName=vw;var NP="DialogPortal",[Xq,gw]=mw(NP,{forceMount:void 0}),Ai="DialogOverlay",TP=i.forwardRef((e,t)=>{const r=gw(Ai,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Dt(Ai,e.__scopeDialog);return a.modal?de.jsx(jf,{present:n||a.open,children:de.jsx(OP,{...o,ref:t})}):null});TP.displayName=Ai;var _P=Z.createSlot("DialogOverlay.RemoveScroll"),OP=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(Ai,r);return de.jsx(dw,{as:_P,allowPinchZoom:!0,shards:[o.contentRef],children:de.jsx(Jt.div,{"data-state":Tf(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Dr="DialogContent",DP=i.forwardRef((e,t)=>{const r=gw(Dr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Dt(Dr,e.__scopeDialog);return de.jsx(jf,{present:n||a.open,children:a.modal?de.jsx(PP,{...o,ref:t}):de.jsx(MP,{...o,ref:t})})});DP.displayName=Dr;var PP=i.forwardRef((e,t)=>{const r=Dt(Dr,e.__scopeDialog),n=i.useRef(null),o=Vr(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return CP(a)},[]),de.jsx(hw,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:yr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:yr(e.onFocusOutside,a=>a.preventDefault())})}),MP=i.forwardRef((e,t)=>{const r=Dt(Dr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return de.jsx(hw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),hw=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Dt(Dr,r),m=i.useRef(null),l=Vr(t,m);return zD(),de.jsxs(de.Fragment,{children:[de.jsx(rw,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:de.jsx(ew,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Tf(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),de.jsxs(de.Fragment,{children:[de.jsx(LP,{titleId:s.titleId}),de.jsx(zP,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Nf="DialogTitle",AP=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(Nf,r);return de.jsx(Jt.h2,{id:o.titleId,...n,ref:t})});AP.displayName=Nf;var bw="DialogDescription",IP=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(bw,r);return de.jsx(Jt.p,{id:o.descriptionId,...n,ref:t})});IP.displayName=bw;var yw="DialogClose",FP=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(yw,r);return de.jsx(Jt.button,{type:"button",...n,ref:t,onClick:yr(e.onClick,()=>o.onOpenChange(!1))})});FP.displayName=yw;function Tf(e){return e?"open":"closed"}var ww="DialogTitleWarning",[Gq,xw]=vD(ww,{contentName:Dr,titleName:Nf,docsSlug:"dialog"}),LP=({titleId:e})=>{const t=xw(ww),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
237
+
238
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
239
+
240
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},WP="DialogDescriptionWarning",zP=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xw(WP).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ru={exports:{}},Eo={};/**
241
+ * @license React
242
+ * react-jsx-runtime.production.js
243
+ *
244
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
245
+ *
246
+ * This source code is licensed under the MIT license found in the
247
+ * LICENSE file in the root directory of this source tree.
248
+ */var Sm;function $P(){if(Sm)return Eo;Sm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return Eo.Fragment=t,Eo.jsx=r,Eo.jsxs=r,Eo}var Ya={};/**
249
+ * @license React
250
+ * react-jsx-runtime.development.js
251
+ *
252
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
253
+ *
254
+ * This source code is licensed under the MIT license found in the
255
+ * LICENSE file in the root directory of this source tree.
256
+ */var Cm;function YP(){return Cm||(Cm=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,_,F,A,G,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,_,F,A,G,X){var O=k.children;if(O!==void 0)if(_)if(K(O)){for(_=0;_<O.length;_++)p(O[_]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(k,"key")){O=e(f);var $=Object.keys(k).filter(function(me){return me!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[O+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
257
+ let props = %s;
258
+ <%s {...props} />
259
+ React keys must be passed directly to JSX without using spread:
260
+ let props = %s;
261
+ <%s key={someKey} {...props} />`,_,O,$,O),V[O+_]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),c(k)&&(r(k.key),O=""+k.key),"key"in k){N={};for(var q in k)q!=="key"&&(N[q]=k[q])}else N=k;return O&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),N,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};Ya.Fragment=d,Ya.jsx=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},Ya.jsxs=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),Ya}var jm;function UP(){return jm||(jm=1,process.env.NODE_ENV==="production"?Ru.exports=$P():Ru.exports=YP()),Ru.exports}var J=UP();P.createContext({locale:void 0});var BP=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${BP.toString()})(${u})`}})});function KP(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Ed=1;class HP{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Ed++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(XP(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Ed++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ye=new HP,VP=(e,t)=>{const r=t?.id||Ed++;return Ye.addToast({title:e,...t,id:r}),r},XP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",GP=VP,qP=()=>Ye.toasts,ZP=()=>Ye.getActiveToasts();Object.assign(GP,{success:Ye.success,info:Ye.info,warning:Ye.warning,error:Ye.error,custom:Ye.custom,message:Ye.message,promise:Ye.promise,dismiss:Ye.dismiss,loading:Ye.loading},{getHistory:qP,getToasts:ZP});KP("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ve.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function be(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Nm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function JP(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Nm(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Nm(e[o],null)}}}}function yt(...e){return i.useCallback(JP(...e),e)}function QP(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return J.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function oc(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return J.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,eM(o,...t)]}function eM(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Uo=globalThis?.document?i.useLayoutEffect:()=>{},tM=i[" useId ".trim().toString()]||(()=>{}),rM=0;function Ew(e){const[t,r]=i.useState(tM());return Uo(()=>{r(n=>n??String(rM++))},[e]),t?`radix-${t}`:""}var nM=i[" useInsertionEffect ".trim().toString()]||Uo;function kw({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=oM({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=aM(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function oM({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return nM(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function aM(e){return typeof e=="function"}var sM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Oe=sM.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),J.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function iM(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function to(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function cM(e,t=globalThis?.document){const r=to(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var uM="DismissableLayer",kd="dismissableLayer.update",lM="dismissableLayer.pointerDownOutside",dM="dismissableLayer.focusOutside",Tm,Rw=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sw=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(Rw),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=yt(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=mM(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=vM(R=>{const C=R.target;[...l.branches].some(M=>M.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return cM(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Tm=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),_m(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Tm)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),_m())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(kd,R),()=>document.removeEventListener(kd,R)},[]),J.jsx(Oe.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:be(e.onFocusCapture,T.onFocusCapture),onBlurCapture:be(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:be(e.onPointerDownCapture,S.onPointerDownCapture)})});Sw.displayName=uM;var fM="DismissableLayerBranch",pM=i.forwardRef((e,t)=>{const r=i.useContext(Rw),n=i.useRef(null),o=yt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),J.jsx(Oe.div,{...e,ref:o})});pM.displayName=fM;function mM(e,t=globalThis?.document){const r=to(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){Cw(lM,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function vM(e,t=globalThis?.document){const r=to(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Cw(dM,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function _m(){const e=new CustomEvent(kd);document.dispatchEvent(e)}function Cw(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?iM(o,a):o.dispatchEvent(a)}var Su="focusScope.autoFocusOnMount",Cu="focusScope.autoFocusOnUnmount",Om={bubbles:!1,cancelable:!0},gM="FocusScope",jw=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=to(o),u=to(a),p=i.useRef(null),v=yt(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:sr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||sr(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&sr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Pm.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Su,Om);s.addEventListener(Su,l),s.dispatchEvent(g),g.defaultPrevented||(hM(EM(Nw(s)),{select:!0}),document.activeElement===d&&sr(s))}return()=>{s.removeEventListener(Su,l),setTimeout(()=>{const g=new CustomEvent(Cu,Om);s.addEventListener(Cu,u),s.dispatchEvent(g),g.defaultPrevented||sr(d??document.body,{select:!0}),s.removeEventListener(Cu,u),Pm.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=bM(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&sr(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&sr(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return J.jsx(Oe.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});jw.displayName=gM;function hM(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(sr(n,{select:t}),document.activeElement!==r)return}function bM(e){const t=Nw(e),r=Dm(t,e),n=Dm(t.reverse(),e);return[r,n]}function Nw(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Dm(e,t){for(const r of e)if(!yM(r,{upTo:t}))return r}function yM(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function wM(e){return e instanceof HTMLInputElement&&"select"in e}function sr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&wM(e)&&t&&e.select()}}var Pm=xM();function xM(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Mm(e,t),e.unshift(t)},remove(t){e=Mm(e,t),e[0]?.resume()}}}function Mm(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function EM(e){return e.filter(t=>t.tagName!=="A")}var kM="Portal",RM=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Uo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(J.jsx(Oe.div,{...n,ref:t}),c):null});RM.displayName=kM;function SM(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var ac=e=>{const{present:t,children:r}=e,n=CM(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=yt(n.ref,jM(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};ac.displayName="Presence";function CM(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=SM(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Ua(n.current);a.current=s==="mounted"?l:"none"},[s]),Uo(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Ua(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Uo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Ua(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Ua(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Ua(e){return e?.animationName||"none"}function jM(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ju=0;function NM(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Am()),document.body.insertAdjacentElement("beforeend",e[1]??Am()),ju++,()=>{ju===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ju--}},[])}function Am(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var st=function(){return st=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},st.apply(this,arguments)};function Tw(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function TM(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var oi="right-scroll-bar-position",ai="width-before-scroll-bar",_M="with-scroll-bars-hidden",OM="--removed-body-scroll-bar-size";function Nu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function DM(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var PM=typeof window<"u"?i.useLayoutEffect:i.useEffect,Im=new WeakMap;function MM(e,t){var r=DM(null,function(n){return e.forEach(function(o){return Nu(o,n)})});return PM(function(){var n=Im.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Nu(s,null)}),a.forEach(function(s){o.has(s)||Nu(s,c)})}Im.set(r,e)},[e]),r}function AM(e){return e}function IM(e,t){t===void 0&&(t=AM);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function FM(e){e===void 0&&(e={});var t=IM(null);return t.options=st({async:!0,ssr:!1},e),t}var _w=function(e){var t=e.sideCar,r=Tw(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,st({},r))};_w.isSideCarExport=!0;function LM(e,t){return e.useMedium(t),_w}var Ow=FM(),Tu=function(){},sc=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Tu,onWheelCapture:Tu,onTouchMoveCapture:Tu}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=Tw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=MM([r,t]),R=st(st({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:Ow,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),st(st({},R),{ref:T})):i.createElement(y,st({},R,{className:m,ref:T}),s))});sc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sc.classNames={fullWidth:ai,zeroRight:oi};var WM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zM(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=WM();return t&&e.setAttribute("nonce",t),e}function $M(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function YM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var UM=function(){var e=0,t=null;return{add:function(r){e==0&&(t=zM())&&($M(t,r),YM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},BM=function(){var e=UM();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Dw=function(){var e=BM(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},KM={left:0,top:0,right:0,gap:0},_u=function(e){return parseInt(e||"",10)||0},HM=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[_u(r),_u(n),_u(o)]},VM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KM;var t=HM(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},XM=Dw(),Bn="data-scroll-locked",GM=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
262
+ .`.concat(_M,` {
263
+ overflow: hidden `).concat(n,`;
264
+ padding-right: `).concat(s,"px ").concat(n,`;
265
+ }
266
+ body[`).concat(Bn,`] {
267
+ overflow: hidden `).concat(n,`;
268
+ overscroll-behavior: contain;
269
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
270
+ padding-left: `.concat(o,`px;
271
+ padding-top: `).concat(a,`px;
272
+ padding-right: `).concat(c,`px;
273
+ margin-left:0;
274
+ margin-top:0;
275
+ margin-right: `).concat(s,"px ").concat(n,`;
276
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
277
+ }
278
+
279
+ .`).concat(oi,` {
280
+ right: `).concat(s,"px ").concat(n,`;
281
+ }
282
+
283
+ .`).concat(ai,` {
284
+ margin-right: `).concat(s,"px ").concat(n,`;
285
+ }
286
+
287
+ .`).concat(oi," .").concat(oi,` {
288
+ right: 0 `).concat(n,`;
289
+ }
290
+
291
+ .`).concat(ai," .").concat(ai,` {
292
+ margin-right: 0 `).concat(n,`;
293
+ }
294
+
295
+ body[`).concat(Bn,`] {
296
+ `).concat(OM,": ").concat(s,`px;
297
+ }
298
+ `)},Fm=function(){var e=parseInt(document.body.getAttribute(Bn)||"0",10);return isFinite(e)?e:0},qM=function(){i.useEffect(function(){return document.body.setAttribute(Bn,(Fm()+1).toString()),function(){var e=Fm()-1;e<=0?document.body.removeAttribute(Bn):document.body.setAttribute(Bn,e.toString())}},[])},ZM=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;qM();var a=i.useMemo(function(){return VM(o)},[o]);return i.createElement(XM,{styles:GM(a,!t,o,r?"":"!important")})},Rd=!1;if(typeof window<"u")try{var Ba=Object.defineProperty({},"passive",{get:function(){return Rd=!0,!0}});window.addEventListener("test",Ba,Ba),window.removeEventListener("test",Ba,Ba)}catch{Rd=!1}var un=Rd?{passive:!1}:!1,JM=function(e){return e.tagName==="TEXTAREA"},Pw=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!JM(e)&&r[t]==="visible")},QM=function(e){return Pw(e,"overflowY")},eA=function(e){return Pw(e,"overflowX")},Lm=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Mw(e,n);if(o){var a=Aw(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},tA=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},rA=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Mw=function(e,t){return e==="v"?QM(t):eA(t)},Aw=function(e,t){return e==="v"?tA(t):rA(t)},nA=function(e,t){return e==="h"&&t==="rtl"?-1:1},oA=function(e,t,r,n,o){var a=nA(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=Aw(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&Mw(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Ka=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Wm=function(e){return[e.deltaX,e.deltaY]},zm=function(e){return e&&"current"in e?e.current:e},aA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sA=function(e){return`
299
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
300
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
301
+ `)},iA=0,ln=[];function cA(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(iA++)[0],a=i.useState(Dw)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=TM([e.lockRef.current],(e.shards||[]).map(zm)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=Ka(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=Lm(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=Lm(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return oA(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!ln.length||ln[ln.length-1]!==a)){var b="deltaY"in g?Wm(g):Ka(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&aA(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(zm).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:uA(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Ka(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Wm(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Ka(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return ln.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,un),document.addEventListener("touchmove",m,un),document.addEventListener("touchstart",u,un),function(){ln=ln.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,un),document.removeEventListener("touchmove",m,un),document.removeEventListener("touchstart",u,un)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:sA(o)}):null,h?i.createElement(ZM,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lA=LM(Ow,cA);var Iw=i.forwardRef(function(e,t){return i.createElement(sc,st({},e,{ref:t,sideCar:lA}))});Iw.classNames=sc.classNames;var dA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},dn=new WeakMap,Ha=new WeakMap,Va={},Ou=0,Fw=function(e){return e&&(e.host||Fw(e.parentNode))},fA=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Fw(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},pA=function(e,t,r,n){var o=fA(t,Array.isArray(e)?e:[e]);Va[r]||(Va[r]=new WeakMap);var a=Va[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(dn.get(v)||0)+1,g=(a.get(v)||0)+1;dn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Ha.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),Ou++,function(){c.forEach(function(p){var v=dn.get(p)-1,h=a.get(p)-1;dn.set(p,v),a.set(p,h),v||(Ha.has(p)||p.removeAttribute(n),Ha.delete(p)),h||p.removeAttribute(r)}),Ou--,Ou||(dn=new WeakMap,dn=new WeakMap,Ha=new WeakMap,Va={})}},mA=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=dA(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),pA(n,o,r,"aria-hidden")):function(){return null}},Lw="Dialog",[Ww]=oc(Lw),[qq,Pt]=Ww(Lw),zw="DialogTrigger",vA=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(zw,r),a=yt(t,o.triggerRef);return J.jsx(Oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Of(o.open),...n,ref:a,onClick:be(e.onClick,o.onOpenToggle)})});vA.displayName=zw;var gA="DialogPortal",[Zq,$w]=Ww(gA,{forceMount:void 0}),Ii="DialogOverlay",hA=i.forwardRef((e,t)=>{const r=$w(Ii,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Pt(Ii,e.__scopeDialog);return a.modal?J.jsx(ac,{present:n||a.open,children:J.jsx(yA,{...o,ref:t})}):null});hA.displayName=Ii;var bA=Z.createSlot("DialogOverlay.RemoveScroll"),yA=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(Ii,r);return J.jsx(Iw,{as:bA,allowPinchZoom:!0,shards:[o.contentRef],children:J.jsx(Oe.div,{"data-state":Of(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Pr="DialogContent",wA=i.forwardRef((e,t)=>{const r=$w(Pr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Pt(Pr,e.__scopeDialog);return J.jsx(ac,{present:n||a.open,children:a.modal?J.jsx(xA,{...o,ref:t}):J.jsx(EA,{...o,ref:t})})});wA.displayName=Pr;var xA=i.forwardRef((e,t)=>{const r=Pt(Pr,e.__scopeDialog),n=i.useRef(null),o=yt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return mA(a)},[]),J.jsx(Yw,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:be(e.onFocusOutside,a=>a.preventDefault())})}),EA=i.forwardRef((e,t)=>{const r=Pt(Pr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return J.jsx(Yw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Yw=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Pt(Pr,r),m=i.useRef(null),l=yt(t,m);return NM(),J.jsxs(J.Fragment,{children:[J.jsx(jw,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:J.jsx(Sw,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Of(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),J.jsxs(J.Fragment,{children:[J.jsx(CA,{titleId:s.titleId}),J.jsx(NA,{contentRef:m,descriptionId:s.descriptionId})]})]})}),_f="DialogTitle",kA=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(_f,r);return J.jsx(Oe.h2,{id:o.titleId,...n,ref:t})});kA.displayName=_f;var Uw="DialogDescription",RA=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(Uw,r);return J.jsx(Oe.p,{id:o.descriptionId,...n,ref:t})});RA.displayName=Uw;var Bw="DialogClose",SA=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(Bw,r);return J.jsx(Oe.button,{type:"button",...n,ref:t,onClick:be(e.onClick,()=>o.onOpenChange(!1))})});SA.displayName=Bw;function Of(e){return e?"open":"closed"}var Kw="DialogTitleWarning",[Jq,Hw]=QP(Kw,{contentName:Pr,titleName:_f,docsSlug:"dialog"}),CA=({titleId:e})=>{const t=Hw(Kw),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
302
+
303
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
304
+
305
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},jA="DialogDescriptionWarning",NA=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hw(jA).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Du={exports:{}},ko={};/**
306
+ * @license React
307
+ * react-jsx-runtime.production.js
308
+ *
309
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
310
+ *
311
+ * This source code is licensed under the MIT license found in the
312
+ * LICENSE file in the root directory of this source tree.
313
+ */var $m;function TA(){if($m)return ko;$m=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ko.Fragment=t,ko.jsx=r,ko.jsxs=r,ko}var Xa={};/**
314
+ * @license React
315
+ * react-jsx-runtime.development.js
316
+ *
317
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
318
+ *
319
+ * This source code is licensed under the MIT license found in the
320
+ * LICENSE file in the root directory of this source tree.
321
+ */var Ym;function _A(){return Ym||(Ym=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,_,F,A,G,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,_,F,A,G,X){var O=k.children;if(O!==void 0)if(_)if(K(O)){for(_=0;_<O.length;_++)p(O[_]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(k,"key")){O=e(f);var $=Object.keys(k).filter(function(me){return me!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[O+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
322
+ let props = %s;
323
+ <%s {...props} />
324
+ React keys must be passed directly to JSX without using spread:
325
+ let props = %s;
326
+ <%s key={someKey} {...props} />`,_,O,$,O),V[O+_]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),c(k)&&(r(k.key),O=""+k.key),"key"in k){N={};for(var q in k)q!=="key"&&(N[q]=k[q])}else N=k;return O&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),N,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};Xa.Fragment=d,Xa.jsx=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},Xa.jsxs=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),Xa}var Um;function OA(){return Um||(Um=1,process.env.NODE_ENV==="production"?Du.exports=TA():Du.exports=_A()),Du.exports}var Q=OA();P.createContext({locale:void 0});var DA=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${DA.toString()})(${u})`}})});ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ve.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ye(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Bm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function PA(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Bm(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Bm(e[o],null)}}}}function wt(...e){return i.useCallback(PA(...e),e)}function MA(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return Q.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function ic(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return Q.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,AA(o,...t)]}function AA(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Bo=globalThis?.document?i.useLayoutEffect:()=>{},IA=i[" useId ".trim().toString()]||(()=>{}),FA=0;function Vw(e){const[t,r]=i.useState(IA());return Bo(()=>{r(n=>n??String(FA++))},[e]),t?`radix-${t}`:""}var LA=i[" useInsertionEffect ".trim().toString()]||Bo;function Xw({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=WA({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=zA(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function WA({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return LA(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function zA(e){return typeof e=="function"}var $A=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],De=$A.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Q.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function YA(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function ro(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function UA(e,t=globalThis?.document){const r=ro(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var BA="DismissableLayer",Sd="dismissableLayer.update",KA="dismissableLayer.pointerDownOutside",HA="dismissableLayer.focusOutside",Km,Gw=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qw=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(Gw),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=wt(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=GA(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=qA(R=>{const C=R.target;[...l.branches].some(M=>M.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return UA(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Km=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Hm(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Km)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Hm())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Sd,R),()=>document.removeEventListener(Sd,R)},[]),Q.jsx(De.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,S.onPointerDownCapture)})});qw.displayName=BA;var VA="DismissableLayerBranch",XA=i.forwardRef((e,t)=>{const r=i.useContext(Gw),n=i.useRef(null),o=wt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),Q.jsx(De.div,{...e,ref:o})});XA.displayName=VA;function GA(e,t=globalThis?.document){const r=ro(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){Zw(KA,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function qA(e,t=globalThis?.document){const r=ro(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Zw(HA,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Hm(){const e=new CustomEvent(Sd);document.dispatchEvent(e)}function Zw(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?YA(o,a):o.dispatchEvent(a)}var Pu="focusScope.autoFocusOnMount",Mu="focusScope.autoFocusOnUnmount",Vm={bubbles:!1,cancelable:!0},ZA="FocusScope",Jw=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=ro(o),u=ro(a),p=i.useRef(null),v=wt(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:ir(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||ir(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&ir(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Gm.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Pu,Vm);s.addEventListener(Pu,l),s.dispatchEvent(g),g.defaultPrevented||(JA(nI(Qw(s)),{select:!0}),document.activeElement===d&&ir(s))}return()=>{s.removeEventListener(Pu,l),setTimeout(()=>{const g=new CustomEvent(Mu,Vm);s.addEventListener(Mu,u),s.dispatchEvent(g),g.defaultPrevented||ir(d??document.body,{select:!0}),s.removeEventListener(Mu,u),Gm.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=QA(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&ir(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&ir(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return Q.jsx(De.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});Jw.displayName=ZA;function JA(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ir(n,{select:t}),document.activeElement!==r)return}function QA(e){const t=Qw(e),r=Xm(t,e),n=Xm(t.reverse(),e);return[r,n]}function Qw(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Xm(e,t){for(const r of e)if(!eI(r,{upTo:t}))return r}function eI(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function tI(e){return e instanceof HTMLInputElement&&"select"in e}function ir(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&tI(e)&&t&&e.select()}}var Gm=rI();function rI(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=qm(e,t),e.unshift(t)},remove(t){e=qm(e,t),e[0]?.resume()}}}function qm(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function nI(e){return e.filter(t=>t.tagName!=="A")}var oI="Portal",aI=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Bo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(Q.jsx(De.div,{...n,ref:t}),c):null});aI.displayName=oI;function sI(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var cc=e=>{const{present:t,children:r}=e,n=iI(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=wt(n.ref,cI(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};cc.displayName="Presence";function iI(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=sI(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Ga(n.current);a.current=s==="mounted"?l:"none"},[s]),Bo(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Ga(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Bo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Ga(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Ga(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Ga(e){return e?.animationName||"none"}function cI(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Au=0;function uI(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Zm()),document.body.insertAdjacentElement("beforeend",e[1]??Zm()),Au++,()=>{Au===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Au--}},[])}function Zm(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var it=function(){return it=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},it.apply(this,arguments)};function e0(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function lI(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var si="right-scroll-bar-position",ii="width-before-scroll-bar",dI="with-scroll-bars-hidden",fI="--removed-body-scroll-bar-size";function Iu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pI(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var mI=typeof window<"u"?i.useLayoutEffect:i.useEffect,Jm=new WeakMap;function vI(e,t){var r=pI(null,function(n){return e.forEach(function(o){return Iu(o,n)})});return mI(function(){var n=Jm.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Iu(s,null)}),a.forEach(function(s){o.has(s)||Iu(s,c)})}Jm.set(r,e)},[e]),r}function gI(e){return e}function hI(e,t){t===void 0&&(t=gI);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function bI(e){e===void 0&&(e={});var t=hI(null);return t.options=it({async:!0,ssr:!1},e),t}var t0=function(e){var t=e.sideCar,r=e0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,it({},r))};t0.isSideCarExport=!0;function yI(e,t){return e.useMedium(t),t0}var r0=bI(),Fu=function(){},uc=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Fu,onWheelCapture:Fu,onTouchMoveCapture:Fu}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=e0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=vI([r,t]),R=it(it({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:r0,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),it(it({},R),{ref:T})):i.createElement(y,it({},R,{className:m,ref:T}),s))});uc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};uc.classNames={fullWidth:ii,zeroRight:si};var wI=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wI();return t&&e.setAttribute("nonce",t),e}function EI(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kI(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var RI=function(){var e=0,t=null;return{add:function(r){e==0&&(t=xI())&&(EI(t,r),kI(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},SI=function(){var e=RI();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},n0=function(){var e=SI(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},CI={left:0,top:0,right:0,gap:0},Lu=function(e){return parseInt(e||"",10)||0},jI=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Lu(r),Lu(n),Lu(o)]},NI=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return CI;var t=jI(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},TI=n0(),Kn="data-scroll-locked",_I=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
327
+ .`.concat(dI,` {
328
+ overflow: hidden `).concat(n,`;
329
+ padding-right: `).concat(s,"px ").concat(n,`;
330
+ }
331
+ body[`).concat(Kn,`] {
332
+ overflow: hidden `).concat(n,`;
333
+ overscroll-behavior: contain;
334
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
335
+ padding-left: `.concat(o,`px;
336
+ padding-top: `).concat(a,`px;
337
+ padding-right: `).concat(c,`px;
338
+ margin-left:0;
339
+ margin-top:0;
340
+ margin-right: `).concat(s,"px ").concat(n,`;
341
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
342
+ }
343
+
344
+ .`).concat(si,` {
345
+ right: `).concat(s,"px ").concat(n,`;
346
+ }
347
+
348
+ .`).concat(ii,` {
349
+ margin-right: `).concat(s,"px ").concat(n,`;
350
+ }
351
+
352
+ .`).concat(si," .").concat(si,` {
353
+ right: 0 `).concat(n,`;
354
+ }
355
+
356
+ .`).concat(ii," .").concat(ii,` {
357
+ margin-right: 0 `).concat(n,`;
358
+ }
359
+
360
+ body[`).concat(Kn,`] {
361
+ `).concat(fI,": ").concat(s,`px;
362
+ }
363
+ `)},Qm=function(){var e=parseInt(document.body.getAttribute(Kn)||"0",10);return isFinite(e)?e:0},OI=function(){i.useEffect(function(){return document.body.setAttribute(Kn,(Qm()+1).toString()),function(){var e=Qm()-1;e<=0?document.body.removeAttribute(Kn):document.body.setAttribute(Kn,e.toString())}},[])},DI=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;OI();var a=i.useMemo(function(){return NI(o)},[o]);return i.createElement(TI,{styles:_I(a,!t,o,r?"":"!important")})},Cd=!1;if(typeof window<"u")try{var qa=Object.defineProperty({},"passive",{get:function(){return Cd=!0,!0}});window.addEventListener("test",qa,qa),window.removeEventListener("test",qa,qa)}catch{Cd=!1}var fn=Cd?{passive:!1}:!1,PI=function(e){return e.tagName==="TEXTAREA"},o0=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!PI(e)&&r[t]==="visible")},MI=function(e){return o0(e,"overflowY")},AI=function(e){return o0(e,"overflowX")},ev=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=a0(e,n);if(o){var a=s0(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},II=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},FI=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},a0=function(e,t){return e==="v"?MI(t):AI(t)},s0=function(e,t){return e==="v"?II(t):FI(t)},LI=function(e,t){return e==="h"&&t==="rtl"?-1:1},WI=function(e,t,r,n,o){var a=LI(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=s0(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&a0(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Za=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tv=function(e){return[e.deltaX,e.deltaY]},rv=function(e){return e&&"current"in e?e.current:e},zI=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$I=function(e){return`
364
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
365
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
366
+ `)},YI=0,pn=[];function UI(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(YI++)[0],a=i.useState(n0)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=lI([e.lockRef.current],(e.shards||[]).map(rv)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=Za(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=ev(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=ev(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return WI(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!pn.length||pn[pn.length-1]!==a)){var b="deltaY"in g?tv(g):Za(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&zI(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(rv).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:BI(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Za(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,tv(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Za(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return pn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,fn),document.addEventListener("touchmove",m,fn),document.addEventListener("touchstart",u,fn),function(){pn=pn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,fn),document.removeEventListener("touchmove",m,fn),document.removeEventListener("touchstart",u,fn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:$I(o)}):null,h?i.createElement(DI,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function BI(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const KI=yI(r0,UI);var i0=i.forwardRef(function(e,t){return i.createElement(uc,it({},e,{ref:t,sideCar:KI}))});i0.classNames=uc.classNames;var HI=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mn=new WeakMap,Ja=new WeakMap,Qa={},Wu=0,c0=function(e){return e&&(e.host||c0(e.parentNode))},VI=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=c0(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},XI=function(e,t,r,n){var o=VI(t,Array.isArray(e)?e:[e]);Qa[r]||(Qa[r]=new WeakMap);var a=Qa[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(mn.get(v)||0)+1,g=(a.get(v)||0)+1;mn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Ja.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),Wu++,function(){c.forEach(function(p){var v=mn.get(p)-1,h=a.get(p)-1;mn.set(p,v),a.set(p,h),v||(Ja.has(p)||p.removeAttribute(n),Ja.delete(p)),h||p.removeAttribute(r)}),Wu--,Wu||(mn=new WeakMap,mn=new WeakMap,Ja=new WeakMap,Qa={})}},GI=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=HI(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),XI(n,o,r,"aria-hidden")):function(){return null}},u0="Dialog",[l0]=ic(u0),[Qq,Mt]=l0(u0),d0="DialogTrigger",qI=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(d0,r),a=wt(t,o.triggerRef);return Q.jsx(De.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Pf(o.open),...n,ref:a,onClick:ye(e.onClick,o.onOpenToggle)})});qI.displayName=d0;var ZI="DialogPortal",[e7,f0]=l0(ZI,{forceMount:void 0}),Fi="DialogOverlay",JI=i.forwardRef((e,t)=>{const r=f0(Fi,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Mt(Fi,e.__scopeDialog);return a.modal?Q.jsx(cc,{present:n||a.open,children:Q.jsx(eF,{...o,ref:t})}):null});JI.displayName=Fi;var QI=Z.createSlot("DialogOverlay.RemoveScroll"),eF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(Fi,r);return Q.jsx(i0,{as:QI,allowPinchZoom:!0,shards:[o.contentRef],children:Q.jsx(De.div,{"data-state":Pf(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Mr="DialogContent",tF=i.forwardRef((e,t)=>{const r=f0(Mr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Mt(Mr,e.__scopeDialog);return Q.jsx(cc,{present:n||a.open,children:a.modal?Q.jsx(rF,{...o,ref:t}):Q.jsx(nF,{...o,ref:t})})});tF.displayName=Mr;var rF=i.forwardRef((e,t)=>{const r=Mt(Mr,e.__scopeDialog),n=i.useRef(null),o=wt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return GI(a)},[]),Q.jsx(p0,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:ye(e.onFocusOutside,a=>a.preventDefault())})}),nF=i.forwardRef((e,t)=>{const r=Mt(Mr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return Q.jsx(p0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),p0=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Mt(Mr,r),m=i.useRef(null),l=wt(t,m);return uI(),Q.jsxs(Q.Fragment,{children:[Q.jsx(Jw,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:Q.jsx(qw,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Pf(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),Q.jsxs(Q.Fragment,{children:[Q.jsx(iF,{titleId:s.titleId}),Q.jsx(uF,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Df="DialogTitle",oF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(Df,r);return Q.jsx(De.h2,{id:o.titleId,...n,ref:t})});oF.displayName=Df;var m0="DialogDescription",aF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(m0,r);return Q.jsx(De.p,{id:o.descriptionId,...n,ref:t})});aF.displayName=m0;var v0="DialogClose",sF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(v0,r);return Q.jsx(De.button,{type:"button",...n,ref:t,onClick:ye(e.onClick,()=>o.onOpenChange(!1))})});sF.displayName=v0;function Pf(e){return e?"open":"closed"}var g0="DialogTitleWarning",[t7,h0]=MA(g0,{contentName:Mr,titleName:Df,docsSlug:"dialog"}),iF=({titleId:e})=>{const t=h0(g0),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
367
+
368
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
369
+
370
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},cF="DialogDescriptionWarning",uF=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${h0(cF).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},zu={exports:{}},Ro={};/**
371
+ * @license React
372
+ * react-jsx-runtime.production.js
373
+ *
374
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
375
+ *
376
+ * This source code is licensed under the MIT license found in the
377
+ * LICENSE file in the root directory of this source tree.
378
+ */var nv;function lF(){if(nv)return Ro;nv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return Ro.Fragment=t,Ro.jsx=r,Ro.jsxs=r,Ro}var es={};/**
379
+ * @license React
380
+ * react-jsx-runtime.development.js
381
+ *
382
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
383
+ *
384
+ * This source code is licensed under the MIT license found in the
385
+ * LICENSE file in the root directory of this source tree.
386
+ */var ov;function dF(){return ov||(ov=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,_,F,A,G,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,_,F,A,G,X){var O=k.children;if(O!==void 0)if(_)if(K(O)){for(_=0;_<O.length;_++)p(O[_]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(k,"key")){O=e(f);var $=Object.keys(k).filter(function(me){return me!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[O+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
387
+ let props = %s;
388
+ <%s {...props} />
389
+ React keys must be passed directly to JSX without using spread:
390
+ let props = %s;
391
+ <%s key={someKey} {...props} />`,_,O,$,O),V[O+_]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),c(k)&&(r(k.key),O=""+k.key),"key"in k){N={};for(var q in k)q!=="key"&&(N[q]=k[q])}else N=k;return O&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),N,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};es.Fragment=d,es.jsx=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},es.jsxs=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),es}var av;function fF(){return av||(av=1,process.env.NODE_ENV==="production"?zu.exports=lF():zu.exports=dF()),zu.exports}var ee=fF();P.createContext({locale:void 0});var pF=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${pF.toString()})(${u})`}})});ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ve.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function we(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function sv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mF(...e){return t=>{let r=!1;const n=e.map(o=>{const a=sv(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():sv(e[o],null)}}}}function xt(...e){return i.useCallback(mF(...e),e)}function vF(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ee.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function lc(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return ee.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,gF(o,...t)]}function gF(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ko=globalThis?.document?i.useLayoutEffect:()=>{},hF=i[" useId ".trim().toString()]||(()=>{}),bF=0;function b0(e){const[t,r]=i.useState(hF());return Ko(()=>{r(n=>n??String(bF++))},[e]),t?`radix-${t}`:""}var yF=i[" useInsertionEffect ".trim().toString()]||Ko;function y0({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=wF({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=xF(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function wF({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return yF(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function xF(e){return typeof e=="function"}var EF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pe=EF.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ee.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function kF(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function no(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function RF(e,t=globalThis?.document){const r=no(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var SF="DismissableLayer",jd="dismissableLayer.update",CF="dismissableLayer.pointerDownOutside",jF="dismissableLayer.focusOutside",iv,w0=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x0=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(w0),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=xt(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=_F(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=OF(R=>{const C=R.target;[...l.branches].some(M=>M.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return RF(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(iv=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),cv(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=iv)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),cv())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(jd,R),()=>document.removeEventListener(jd,R)},[]),ee.jsx(Pe.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:we(e.onFocusCapture,T.onFocusCapture),onBlurCapture:we(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:we(e.onPointerDownCapture,S.onPointerDownCapture)})});x0.displayName=SF;var NF="DismissableLayerBranch",TF=i.forwardRef((e,t)=>{const r=i.useContext(w0),n=i.useRef(null),o=xt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ee.jsx(Pe.div,{...e,ref:o})});TF.displayName=NF;function _F(e,t=globalThis?.document){const r=no(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){E0(CF,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function OF(e,t=globalThis?.document){const r=no(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&E0(jF,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function cv(){const e=new CustomEvent(jd);document.dispatchEvent(e)}function E0(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?kF(o,a):o.dispatchEvent(a)}var $u="focusScope.autoFocusOnMount",Yu="focusScope.autoFocusOnUnmount",uv={bubbles:!1,cancelable:!0},DF="FocusScope",k0=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=no(o),u=no(a),p=i.useRef(null),v=xt(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:cr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||cr(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&cr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){dv.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent($u,uv);s.addEventListener($u,l),s.dispatchEvent(g),g.defaultPrevented||(PF(LF(R0(s)),{select:!0}),document.activeElement===d&&cr(s))}return()=>{s.removeEventListener($u,l),setTimeout(()=>{const g=new CustomEvent(Yu,uv);s.addEventListener(Yu,u),s.dispatchEvent(g),g.defaultPrevented||cr(d??document.body,{select:!0}),s.removeEventListener(Yu,u),dv.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=MF(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&cr(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&cr(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return ee.jsx(Pe.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});k0.displayName=DF;function PF(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(cr(n,{select:t}),document.activeElement!==r)return}function MF(e){const t=R0(e),r=lv(t,e),n=lv(t.reverse(),e);return[r,n]}function R0(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function lv(e,t){for(const r of e)if(!AF(r,{upTo:t}))return r}function AF(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function IF(e){return e instanceof HTMLInputElement&&"select"in e}function cr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&IF(e)&&t&&e.select()}}var dv=FF();function FF(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=fv(e,t),e.unshift(t)},remove(t){e=fv(e,t),e[0]?.resume()}}}function fv(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function LF(e){return e.filter(t=>t.tagName!=="A")}var WF="Portal",zF=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Ko(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(ee.jsx(Pe.div,{...n,ref:t}),c):null});zF.displayName=WF;function $F(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var dc=e=>{const{present:t,children:r}=e,n=YF(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=xt(n.ref,UF(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};dc.displayName="Presence";function YF(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=$F(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=ts(n.current);a.current=s==="mounted"?l:"none"},[s]),Ko(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=ts(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ko(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=ts(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=ts(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function ts(e){return e?.animationName||"none"}function UF(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Uu=0;function BF(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??pv()),document.body.insertAdjacentElement("beforeend",e[1]??pv()),Uu++,()=>{Uu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Uu--}},[])}function pv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ct=function(){return ct=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ct.apply(this,arguments)};function S0(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function KF(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var ci="right-scroll-bar-position",ui="width-before-scroll-bar",HF="with-scroll-bars-hidden",VF="--removed-body-scroll-bar-size";function Bu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function XF(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var GF=typeof window<"u"?i.useLayoutEffect:i.useEffect,mv=new WeakMap;function qF(e,t){var r=XF(null,function(n){return e.forEach(function(o){return Bu(o,n)})});return GF(function(){var n=mv.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Bu(s,null)}),a.forEach(function(s){o.has(s)||Bu(s,c)})}mv.set(r,e)},[e]),r}function ZF(e){return e}function JF(e,t){t===void 0&&(t=ZF);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function QF(e){e===void 0&&(e={});var t=JF(null);return t.options=ct({async:!0,ssr:!1},e),t}var C0=function(e){var t=e.sideCar,r=S0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ct({},r))};C0.isSideCarExport=!0;function eL(e,t){return e.useMedium(t),C0}var j0=QF(),Ku=function(){},fc=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Ku,onWheelCapture:Ku,onTouchMoveCapture:Ku}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=S0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=qF([r,t]),R=ct(ct({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:j0,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ct(ct({},R),{ref:T})):i.createElement(y,ct({},R,{className:m,ref:T}),s))});fc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fc.classNames={fullWidth:ui,zeroRight:ci};var tL=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rL(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=tL();return t&&e.setAttribute("nonce",t),e}function nL(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oL(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var aL=function(){var e=0,t=null;return{add:function(r){e==0&&(t=rL())&&(nL(t,r),oL(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},sL=function(){var e=aL();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},N0=function(){var e=sL(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},iL={left:0,top:0,right:0,gap:0},Hu=function(e){return parseInt(e||"",10)||0},cL=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Hu(r),Hu(n),Hu(o)]},uL=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return iL;var t=cL(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},lL=N0(),Hn="data-scroll-locked",dL=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
392
+ .`.concat(HF,` {
393
+ overflow: hidden `).concat(n,`;
394
+ padding-right: `).concat(s,"px ").concat(n,`;
395
+ }
396
+ body[`).concat(Hn,`] {
397
+ overflow: hidden `).concat(n,`;
398
+ overscroll-behavior: contain;
399
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
400
+ padding-left: `.concat(o,`px;
401
+ padding-top: `).concat(a,`px;
402
+ padding-right: `).concat(c,`px;
403
+ margin-left:0;
404
+ margin-top:0;
405
+ margin-right: `).concat(s,"px ").concat(n,`;
406
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
407
+ }
408
+
409
+ .`).concat(ci,` {
410
+ right: `).concat(s,"px ").concat(n,`;
411
+ }
412
+
413
+ .`).concat(ui,` {
414
+ margin-right: `).concat(s,"px ").concat(n,`;
415
+ }
416
+
417
+ .`).concat(ci," .").concat(ci,` {
418
+ right: 0 `).concat(n,`;
419
+ }
420
+
421
+ .`).concat(ui," .").concat(ui,` {
422
+ margin-right: 0 `).concat(n,`;
423
+ }
424
+
425
+ body[`).concat(Hn,`] {
426
+ `).concat(VF,": ").concat(s,`px;
427
+ }
428
+ `)},vv=function(){var e=parseInt(document.body.getAttribute(Hn)||"0",10);return isFinite(e)?e:0},fL=function(){i.useEffect(function(){return document.body.setAttribute(Hn,(vv()+1).toString()),function(){var e=vv()-1;e<=0?document.body.removeAttribute(Hn):document.body.setAttribute(Hn,e.toString())}},[])},pL=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;fL();var a=i.useMemo(function(){return uL(o)},[o]);return i.createElement(lL,{styles:dL(a,!t,o,r?"":"!important")})},Nd=!1;if(typeof window<"u")try{var rs=Object.defineProperty({},"passive",{get:function(){return Nd=!0,!0}});window.addEventListener("test",rs,rs),window.removeEventListener("test",rs,rs)}catch{Nd=!1}var vn=Nd?{passive:!1}:!1,mL=function(e){return e.tagName==="TEXTAREA"},T0=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!mL(e)&&r[t]==="visible")},vL=function(e){return T0(e,"overflowY")},gL=function(e){return T0(e,"overflowX")},gv=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=_0(e,n);if(o){var a=O0(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hL=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},bL=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},_0=function(e,t){return e==="v"?vL(t):gL(t)},O0=function(e,t){return e==="v"?hL(t):bL(t)},yL=function(e,t){return e==="h"&&t==="rtl"?-1:1},wL=function(e,t,r,n,o){var a=yL(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=O0(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&_0(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},ns=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hv=function(e){return[e.deltaX,e.deltaY]},bv=function(e){return e&&"current"in e?e.current:e},xL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},EL=function(e){return`
429
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
430
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
431
+ `)},kL=0,gn=[];function RL(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(kL++)[0],a=i.useState(N0)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=KF([e.lockRef.current],(e.shards||[]).map(bv)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=ns(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=gv(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=gv(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return wL(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!gn.length||gn[gn.length-1]!==a)){var b="deltaY"in g?hv(g):ns(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&xL(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(bv).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:SL(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=ns(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,hv(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,ns(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return gn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,vn),document.addEventListener("touchmove",m,vn),document.addEventListener("touchstart",u,vn),function(){gn=gn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,vn),document.removeEventListener("touchmove",m,vn),document.removeEventListener("touchstart",u,vn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:EL(o)}):null,h?i.createElement(pL,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function SL(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const CL=eL(j0,RL);var D0=i.forwardRef(function(e,t){return i.createElement(fc,ct({},e,{ref:t,sideCar:CL}))});D0.classNames=fc.classNames;var jL=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},hn=new WeakMap,os=new WeakMap,as={},Vu=0,P0=function(e){return e&&(e.host||P0(e.parentNode))},NL=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=P0(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},TL=function(e,t,r,n){var o=NL(t,Array.isArray(e)?e:[e]);as[r]||(as[r]=new WeakMap);var a=as[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(hn.get(v)||0)+1,g=(a.get(v)||0)+1;hn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&os.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),Vu++,function(){c.forEach(function(p){var v=hn.get(p)-1,h=a.get(p)-1;hn.set(p,v),a.set(p,h),v||(os.has(p)||p.removeAttribute(n),os.delete(p)),h||p.removeAttribute(r)}),Vu--,Vu||(hn=new WeakMap,hn=new WeakMap,os=new WeakMap,as={})}},_L=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=jL(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),TL(n,o,r,"aria-hidden")):function(){return null}},M0="Dialog",[A0]=lc(M0),[r7,At]=A0(M0),I0="DialogTrigger",OL=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(I0,r),a=xt(t,o.triggerRef);return ee.jsx(Pe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Af(o.open),...n,ref:a,onClick:we(e.onClick,o.onOpenToggle)})});OL.displayName=I0;var DL="DialogPortal",[n7,F0]=A0(DL,{forceMount:void 0}),Li="DialogOverlay",PL=i.forwardRef((e,t)=>{const r=F0(Li,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=At(Li,e.__scopeDialog);return a.modal?ee.jsx(dc,{present:n||a.open,children:ee.jsx(AL,{...o,ref:t})}):null});PL.displayName=Li;var ML=Z.createSlot("DialogOverlay.RemoveScroll"),AL=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(Li,r);return ee.jsx(D0,{as:ML,allowPinchZoom:!0,shards:[o.contentRef],children:ee.jsx(Pe.div,{"data-state":Af(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ar="DialogContent",IL=i.forwardRef((e,t)=>{const r=F0(Ar,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=At(Ar,e.__scopeDialog);return ee.jsx(dc,{present:n||a.open,children:a.modal?ee.jsx(FL,{...o,ref:t}):ee.jsx(LL,{...o,ref:t})})});IL.displayName=Ar;var FL=i.forwardRef((e,t)=>{const r=At(Ar,e.__scopeDialog),n=i.useRef(null),o=xt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return _L(a)},[]),ee.jsx(L0,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:we(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:we(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:we(e.onFocusOutside,a=>a.preventDefault())})}),LL=i.forwardRef((e,t)=>{const r=At(Ar,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ee.jsx(L0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),L0=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=At(Ar,r),m=i.useRef(null),l=xt(t,m);return BF(),ee.jsxs(ee.Fragment,{children:[ee.jsx(k0,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ee.jsx(x0,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Af(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),ee.jsxs(ee.Fragment,{children:[ee.jsx(YL,{titleId:s.titleId}),ee.jsx(BL,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Mf="DialogTitle",WL=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(Mf,r);return ee.jsx(Pe.h2,{id:o.titleId,...n,ref:t})});WL.displayName=Mf;var W0="DialogDescription",zL=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(W0,r);return ee.jsx(Pe.p,{id:o.descriptionId,...n,ref:t})});zL.displayName=W0;var z0="DialogClose",$L=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(z0,r);return ee.jsx(Pe.button,{type:"button",...n,ref:t,onClick:we(e.onClick,()=>o.onOpenChange(!1))})});$L.displayName=z0;function Af(e){return e?"open":"closed"}var $0="DialogTitleWarning",[o7,Y0]=vF($0,{contentName:Ar,titleName:Mf,docsSlug:"dialog"}),YL=({titleId:e})=>{const t=Y0($0),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
432
+
433
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
434
+
435
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},UL="DialogDescriptionWarning",BL=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Y0(UL).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Xu={exports:{}},So={};/**
436
+ * @license React
437
+ * react-jsx-runtime.production.js
438
+ *
439
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
440
+ *
441
+ * This source code is licensed under the MIT license found in the
442
+ * LICENSE file in the root directory of this source tree.
443
+ */var yv;function KL(){if(yv)return So;yv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return So.Fragment=t,So.jsx=r,So.jsxs=r,So}var ss={};/**
444
+ * @license React
445
+ * react-jsx-runtime.development.js
446
+ *
447
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
448
+ *
449
+ * This source code is licensed under the MIT license found in the
450
+ * LICENSE file in the root directory of this source tree.
451
+ */var wv;function HL(){return wv||(wv=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,_,F,A,G,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,_,F,A,G,X){var O=k.children;if(O!==void 0)if(_)if(K(O)){for(_=0;_<O.length;_++)p(O[_]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(k,"key")){O=e(f);var $=Object.keys(k).filter(function(me){return me!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[O+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
452
+ let props = %s;
453
+ <%s {...props} />
454
+ React keys must be passed directly to JSX without using spread:
455
+ let props = %s;
456
+ <%s key={someKey} {...props} />`,_,O,$,O),V[O+_]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),c(k)&&(r(k.key),O=""+k.key),"key"in k){N={};for(var q in k)q!=="key"&&(N[q]=k[q])}else N=k;return O&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),N,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};ss.Fragment=d,ss.jsx=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},ss.jsxs=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),ss}var xv;function VL(){return xv||(xv=1,process.env.NODE_ENV==="production"?Xu.exports=KL():Xu.exports=HL()),Xu.exports}var te=VL();P.createContext({locale:void 0});var XL=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${XL.toString()})(${u})`}})});ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ve.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function xe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Ev(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function GL(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Ev(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Ev(e[o],null)}}}}function Et(...e){return i.useCallback(GL(...e),e)}function qL(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return te.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function pc(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return te.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,ZL(o,...t)]}function ZL(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ho=globalThis?.document?i.useLayoutEffect:()=>{},JL=i[" useId ".trim().toString()]||(()=>{}),QL=0;function U0(e){const[t,r]=i.useState(JL());return Ho(()=>{r(n=>n??String(QL++))},[e]),t?`radix-${t}`:""}var e2=i[" useInsertionEffect ".trim().toString()]||Ho;function B0({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=t2({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=r2(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function t2({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return e2(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function r2(e){return typeof e=="function"}var n2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Me=n2.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),te.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function o2(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function oo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function a2(e,t=globalThis?.document){const r=oo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var s2="DismissableLayer",Td="dismissableLayer.update",i2="dismissableLayer.pointerDownOutside",c2="dismissableLayer.focusOutside",kv,K0=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),H0=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(K0),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Et(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=d2(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=f2(R=>{const C=R.target;[...l.branches].some(M=>M.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return a2(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(kv=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Rv(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=kv)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Rv())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Td,R),()=>document.removeEventListener(Td,R)},[]),te.jsx(Me.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:xe(e.onFocusCapture,T.onFocusCapture),onBlurCapture:xe(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:xe(e.onPointerDownCapture,S.onPointerDownCapture)})});H0.displayName=s2;var u2="DismissableLayerBranch",l2=i.forwardRef((e,t)=>{const r=i.useContext(K0),n=i.useRef(null),o=Et(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),te.jsx(Me.div,{...e,ref:o})});l2.displayName=u2;function d2(e,t=globalThis?.document){const r=oo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){V0(i2,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function f2(e,t=globalThis?.document){const r=oo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&V0(c2,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Rv(){const e=new CustomEvent(Td);document.dispatchEvent(e)}function V0(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?o2(o,a):o.dispatchEvent(a)}var Gu="focusScope.autoFocusOnMount",qu="focusScope.autoFocusOnUnmount",Sv={bubbles:!1,cancelable:!0},p2="FocusScope",X0=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=oo(o),u=oo(a),p=i.useRef(null),v=Et(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:ur(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||ur(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&ur(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){jv.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Gu,Sv);s.addEventListener(Gu,l),s.dispatchEvent(g),g.defaultPrevented||(m2(y2(G0(s)),{select:!0}),document.activeElement===d&&ur(s))}return()=>{s.removeEventListener(Gu,l),setTimeout(()=>{const g=new CustomEvent(qu,Sv);s.addEventListener(qu,u),s.dispatchEvent(g),g.defaultPrevented||ur(d??document.body,{select:!0}),s.removeEventListener(qu,u),jv.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=v2(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&ur(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&ur(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return te.jsx(Me.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});X0.displayName=p2;function m2(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ur(n,{select:t}),document.activeElement!==r)return}function v2(e){const t=G0(e),r=Cv(t,e),n=Cv(t.reverse(),e);return[r,n]}function G0(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Cv(e,t){for(const r of e)if(!g2(r,{upTo:t}))return r}function g2(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function h2(e){return e instanceof HTMLInputElement&&"select"in e}function ur(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&h2(e)&&t&&e.select()}}var jv=b2();function b2(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Nv(e,t),e.unshift(t)},remove(t){e=Nv(e,t),e[0]?.resume()}}}function Nv(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function y2(e){return e.filter(t=>t.tagName!=="A")}var w2="Portal",x2=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Ho(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(te.jsx(Me.div,{...n,ref:t}),c):null});x2.displayName=w2;function E2(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var mc=e=>{const{present:t,children:r}=e,n=k2(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Et(n.ref,R2(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};mc.displayName="Presence";function k2(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=E2(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=is(n.current);a.current=s==="mounted"?l:"none"},[s]),Ho(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=is(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ho(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=is(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=is(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function is(e){return e?.animationName||"none"}function R2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Zu=0;function S2(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Tv()),document.body.insertAdjacentElement("beforeend",e[1]??Tv()),Zu++,()=>{Zu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Zu--}},[])}function Tv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ut=function(){return ut=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ut.apply(this,arguments)};function q0(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function C2(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var li="right-scroll-bar-position",di="width-before-scroll-bar",j2="with-scroll-bars-hidden",N2="--removed-body-scroll-bar-size";function Ju(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function T2(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var _2=typeof window<"u"?i.useLayoutEffect:i.useEffect,_v=new WeakMap;function O2(e,t){var r=T2(null,function(n){return e.forEach(function(o){return Ju(o,n)})});return _2(function(){var n=_v.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Ju(s,null)}),a.forEach(function(s){o.has(s)||Ju(s,c)})}_v.set(r,e)},[e]),r}function D2(e){return e}function P2(e,t){t===void 0&&(t=D2);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function M2(e){e===void 0&&(e={});var t=P2(null);return t.options=ut({async:!0,ssr:!1},e),t}var Z0=function(e){var t=e.sideCar,r=q0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ut({},r))};Z0.isSideCarExport=!0;function A2(e,t){return e.useMedium(t),Z0}var J0=M2(),Qu=function(){},vc=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Qu,onWheelCapture:Qu,onTouchMoveCapture:Qu}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=q0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=O2([r,t]),R=ut(ut({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:J0,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ut(ut({},R),{ref:T})):i.createElement(y,ut({},R,{className:m,ref:T}),s))});vc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};vc.classNames={fullWidth:di,zeroRight:li};var I2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function F2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=I2();return t&&e.setAttribute("nonce",t),e}function L2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function W2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var z2=function(){var e=0,t=null;return{add:function(r){e==0&&(t=F2())&&(L2(t,r),W2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$2=function(){var e=z2();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Q0=function(){var e=$2(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Y2={left:0,top:0,right:0,gap:0},el=function(e){return parseInt(e||"",10)||0},U2=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[el(r),el(n),el(o)]},B2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Y2;var t=U2(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},K2=Q0(),Vn="data-scroll-locked",H2=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
457
+ .`.concat(j2,` {
458
+ overflow: hidden `).concat(n,`;
459
+ padding-right: `).concat(s,"px ").concat(n,`;
460
+ }
461
+ body[`).concat(Vn,`] {
462
+ overflow: hidden `).concat(n,`;
463
+ overscroll-behavior: contain;
464
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
465
+ padding-left: `.concat(o,`px;
466
+ padding-top: `).concat(a,`px;
467
+ padding-right: `).concat(c,`px;
468
+ margin-left:0;
469
+ margin-top:0;
470
+ margin-right: `).concat(s,"px ").concat(n,`;
471
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
472
+ }
473
+
474
+ .`).concat(li,` {
475
+ right: `).concat(s,"px ").concat(n,`;
476
+ }
477
+
478
+ .`).concat(di,` {
479
+ margin-right: `).concat(s,"px ").concat(n,`;
480
+ }
481
+
482
+ .`).concat(li," .").concat(li,` {
483
+ right: 0 `).concat(n,`;
484
+ }
485
+
486
+ .`).concat(di," .").concat(di,` {
487
+ margin-right: 0 `).concat(n,`;
488
+ }
489
+
490
+ body[`).concat(Vn,`] {
491
+ `).concat(N2,": ").concat(s,`px;
492
+ }
493
+ `)},Ov=function(){var e=parseInt(document.body.getAttribute(Vn)||"0",10);return isFinite(e)?e:0},V2=function(){i.useEffect(function(){return document.body.setAttribute(Vn,(Ov()+1).toString()),function(){var e=Ov()-1;e<=0?document.body.removeAttribute(Vn):document.body.setAttribute(Vn,e.toString())}},[])},X2=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;V2();var a=i.useMemo(function(){return B2(o)},[o]);return i.createElement(K2,{styles:H2(a,!t,o,r?"":"!important")})},_d=!1;if(typeof window<"u")try{var cs=Object.defineProperty({},"passive",{get:function(){return _d=!0,!0}});window.addEventListener("test",cs,cs),window.removeEventListener("test",cs,cs)}catch{_d=!1}var bn=_d?{passive:!1}:!1,G2=function(e){return e.tagName==="TEXTAREA"},ex=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!G2(e)&&r[t]==="visible")},q2=function(e){return ex(e,"overflowY")},Z2=function(e){return ex(e,"overflowX")},Dv=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=tx(e,n);if(o){var a=rx(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},J2=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Q2=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},tx=function(e,t){return e==="v"?q2(t):Z2(t)},rx=function(e,t){return e==="v"?J2(t):Q2(t)},e5=function(e,t){return e==="h"&&t==="rtl"?-1:1},t5=function(e,t,r,n,o){var a=e5(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=rx(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&tx(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},us=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pv=function(e){return[e.deltaX,e.deltaY]},Mv=function(e){return e&&"current"in e?e.current:e},r5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},n5=function(e){return`
494
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
495
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
496
+ `)},o5=0,yn=[];function a5(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(o5++)[0],a=i.useState(Q0)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=C2([e.lockRef.current],(e.shards||[]).map(Mv)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=us(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=Dv(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=Dv(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return t5(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!yn.length||yn[yn.length-1]!==a)){var b="deltaY"in g?Pv(g):us(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&r5(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Mv).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:s5(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=us(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Pv(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,us(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return yn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,bn),document.addEventListener("touchmove",m,bn),document.addEventListener("touchstart",u,bn),function(){yn=yn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,bn),document.removeEventListener("touchmove",m,bn),document.removeEventListener("touchstart",u,bn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:n5(o)}):null,h?i.createElement(X2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function s5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const i5=A2(J0,a5);var nx=i.forwardRef(function(e,t){return i.createElement(vc,ut({},e,{ref:t,sideCar:i5}))});nx.classNames=vc.classNames;var c5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},wn=new WeakMap,ls=new WeakMap,ds={},tl=0,ox=function(e){return e&&(e.host||ox(e.parentNode))},u5=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ox(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},l5=function(e,t,r,n){var o=u5(t,Array.isArray(e)?e:[e]);ds[r]||(ds[r]=new WeakMap);var a=ds[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(wn.get(v)||0)+1,g=(a.get(v)||0)+1;wn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&ls.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),tl++,function(){c.forEach(function(p){var v=wn.get(p)-1,h=a.get(p)-1;wn.set(p,v),a.set(p,h),v||(ls.has(p)||p.removeAttribute(n),ls.delete(p)),h||p.removeAttribute(r)}),tl--,tl||(wn=new WeakMap,wn=new WeakMap,ls=new WeakMap,ds={})}},d5=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=c5(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),l5(n,o,r,"aria-hidden")):function(){return null}},ax="Dialog",[sx]=pc(ax),[a7,It]=sx(ax),ix="DialogTrigger",f5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(ix,r),a=Et(t,o.triggerRef);return te.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ff(o.open),...n,ref:a,onClick:xe(e.onClick,o.onOpenToggle)})});f5.displayName=ix;var p5="DialogPortal",[s7,cx]=sx(p5,{forceMount:void 0}),Wi="DialogOverlay",m5=i.forwardRef((e,t)=>{const r=cx(Wi,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=It(Wi,e.__scopeDialog);return a.modal?te.jsx(mc,{present:n||a.open,children:te.jsx(g5,{...o,ref:t})}):null});m5.displayName=Wi;var v5=Z.createSlot("DialogOverlay.RemoveScroll"),g5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(Wi,r);return te.jsx(nx,{as:v5,allowPinchZoom:!0,shards:[o.contentRef],children:te.jsx(Me.div,{"data-state":Ff(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ir="DialogContent",h5=i.forwardRef((e,t)=>{const r=cx(Ir,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=It(Ir,e.__scopeDialog);return te.jsx(mc,{present:n||a.open,children:a.modal?te.jsx(b5,{...o,ref:t}):te.jsx(y5,{...o,ref:t})})});h5.displayName=Ir;var b5=i.forwardRef((e,t)=>{const r=It(Ir,e.__scopeDialog),n=i.useRef(null),o=Et(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return d5(a)},[]),te.jsx(ux,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xe(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:xe(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:xe(e.onFocusOutside,a=>a.preventDefault())})}),y5=i.forwardRef((e,t)=>{const r=It(Ir,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return te.jsx(ux,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ux=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=It(Ir,r),m=i.useRef(null),l=Et(t,m);return S2(),te.jsxs(te.Fragment,{children:[te.jsx(X0,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:te.jsx(H0,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Ff(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),te.jsxs(te.Fragment,{children:[te.jsx(k5,{titleId:s.titleId}),te.jsx(S5,{contentRef:m,descriptionId:s.descriptionId})]})]})}),If="DialogTitle",w5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(If,r);return te.jsx(Me.h2,{id:o.titleId,...n,ref:t})});w5.displayName=If;var lx="DialogDescription",x5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(lx,r);return te.jsx(Me.p,{id:o.descriptionId,...n,ref:t})});x5.displayName=lx;var dx="DialogClose",E5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(dx,r);return te.jsx(Me.button,{type:"button",...n,ref:t,onClick:xe(e.onClick,()=>o.onOpenChange(!1))})});E5.displayName=dx;function Ff(e){return e?"open":"closed"}var fx="DialogTitleWarning",[i7,px]=qL(fx,{contentName:Ir,titleName:If,docsSlug:"dialog"}),k5=({titleId:e})=>{const t=px(fx),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
497
+
498
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
499
+
500
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},R5="DialogDescriptionWarning",S5=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${px(R5).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},rl={exports:{}},Co={};/**
501
+ * @license React
502
+ * react-jsx-runtime.production.js
503
+ *
504
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
505
+ *
506
+ * This source code is licensed under the MIT license found in the
507
+ * LICENSE file in the root directory of this source tree.
508
+ */var Av;function C5(){if(Av)return Co;Av=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return Co.Fragment=t,Co.jsx=r,Co.jsxs=r,Co}var fs={};/**
509
+ * @license React
510
+ * react-jsx-runtime.development.js
511
+ *
512
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
513
+ *
514
+ * This source code is licensed under the MIT license found in the
515
+ * LICENSE file in the root directory of this source tree.
516
+ */var Iv;function j5(){return Iv||(Iv=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,_,F,A,G,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,_,F,A,G,X){var O=k.children;if(O!==void 0)if(_)if(K(O)){for(_=0;_<O.length;_++)p(O[_]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(k,"key")){O=e(f);var $=Object.keys(k).filter(function(me){return me!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[O+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
517
+ let props = %s;
518
+ <%s {...props} />
519
+ React keys must be passed directly to JSX without using spread:
520
+ let props = %s;
521
+ <%s key={someKey} {...props} />`,_,O,$,O),V[O+_]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),c(k)&&(r(k.key),O=""+k.key),"key"in k){N={};for(var q in k)q!=="key"&&(N[q]=k[q])}else N=k;return O&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),N,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};fs.Fragment=d,fs.jsx=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},fs.jsxs=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),fs}var Fv;function N5(){return Fv||(Fv=1,process.env.NODE_ENV==="production"?rl.exports=C5():rl.exports=j5()),rl.exports}var re=N5();P.createContext({locale:void 0});var T5=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${T5.toString()})(${u})`}})});ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ve.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ee(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Lv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _5(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Lv(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Lv(e[o],null)}}}}function kt(...e){return i.useCallback(_5(...e),e)}function O5(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return re.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function gc(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return re.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,D5(o,...t)]}function D5(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Vo=globalThis?.document?i.useLayoutEffect:()=>{},P5=i[" useId ".trim().toString()]||(()=>{}),M5=0;function mx(e){const[t,r]=i.useState(P5());return Vo(()=>{r(n=>n??String(M5++))},[e]),t?`radix-${t}`:""}var A5=i[" useInsertionEffect ".trim().toString()]||Vo;function vx({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=I5({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=F5(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function I5({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return A5(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function F5(e){return typeof e=="function"}var L5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ae=L5.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),re.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function W5(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function ao(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function z5(e,t=globalThis?.document){const r=ao(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var $5="DismissableLayer",Od="dismissableLayer.update",Y5="dismissableLayer.pointerDownOutside",U5="dismissableLayer.focusOutside",Wv,gx=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hx=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(gx),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=kt(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=H5(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=V5(R=>{const C=R.target;[...l.branches].some(M=>M.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return z5(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Wv=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),zv(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Wv)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),zv())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Od,R),()=>document.removeEventListener(Od,R)},[]),re.jsx(Ae.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,S.onPointerDownCapture)})});hx.displayName=$5;var B5="DismissableLayerBranch",K5=i.forwardRef((e,t)=>{const r=i.useContext(gx),n=i.useRef(null),o=kt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),re.jsx(Ae.div,{...e,ref:o})});K5.displayName=B5;function H5(e,t=globalThis?.document){const r=ao(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){bx(Y5,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function V5(e,t=globalThis?.document){const r=ao(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&bx(U5,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function zv(){const e=new CustomEvent(Od);document.dispatchEvent(e)}function bx(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?W5(o,a):o.dispatchEvent(a)}var nl="focusScope.autoFocusOnMount",ol="focusScope.autoFocusOnUnmount",$v={bubbles:!1,cancelable:!0},X5="FocusScope",yx=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=ao(o),u=ao(a),p=i.useRef(null),v=kt(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:lr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||lr(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&lr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Uv.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(nl,$v);s.addEventListener(nl,l),s.dispatchEvent(g),g.defaultPrevented||(G5(eW(wx(s)),{select:!0}),document.activeElement===d&&lr(s))}return()=>{s.removeEventListener(nl,l),setTimeout(()=>{const g=new CustomEvent(ol,$v);s.addEventListener(ol,u),s.dispatchEvent(g),g.defaultPrevented||lr(d??document.body,{select:!0}),s.removeEventListener(ol,u),Uv.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=q5(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&lr(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&lr(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return re.jsx(Ae.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});yx.displayName=X5;function G5(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(lr(n,{select:t}),document.activeElement!==r)return}function q5(e){const t=wx(e),r=Yv(t,e),n=Yv(t.reverse(),e);return[r,n]}function wx(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Yv(e,t){for(const r of e)if(!Z5(r,{upTo:t}))return r}function Z5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function J5(e){return e instanceof HTMLInputElement&&"select"in e}function lr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&J5(e)&&t&&e.select()}}var Uv=Q5();function Q5(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Bv(e,t),e.unshift(t)},remove(t){e=Bv(e,t),e[0]?.resume()}}}function Bv(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function eW(e){return e.filter(t=>t.tagName!=="A")}var tW="Portal",rW=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Vo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(re.jsx(Ae.div,{...n,ref:t}),c):null});rW.displayName=tW;function nW(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var hc=e=>{const{present:t,children:r}=e,n=oW(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=kt(n.ref,aW(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};hc.displayName="Presence";function oW(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=nW(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=ps(n.current);a.current=s==="mounted"?l:"none"},[s]),Vo(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=ps(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Vo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=ps(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=ps(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function ps(e){return e?.animationName||"none"}function aW(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var al=0;function sW(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Kv()),document.body.insertAdjacentElement("beforeend",e[1]??Kv()),al++,()=>{al===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),al--}},[])}function Kv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var lt=function(){return lt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lt.apply(this,arguments)};function xx(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function iW(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var fi="right-scroll-bar-position",pi="width-before-scroll-bar",cW="with-scroll-bars-hidden",uW="--removed-body-scroll-bar-size";function sl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lW(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var dW=typeof window<"u"?i.useLayoutEffect:i.useEffect,Hv=new WeakMap;function fW(e,t){var r=lW(null,function(n){return e.forEach(function(o){return sl(o,n)})});return dW(function(){var n=Hv.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||sl(s,null)}),a.forEach(function(s){o.has(s)||sl(s,c)})}Hv.set(r,e)},[e]),r}function pW(e){return e}function mW(e,t){t===void 0&&(t=pW);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function vW(e){e===void 0&&(e={});var t=mW(null);return t.options=lt({async:!0,ssr:!1},e),t}var Ex=function(e){var t=e.sideCar,r=xx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,lt({},r))};Ex.isSideCarExport=!0;function gW(e,t){return e.useMedium(t),Ex}var kx=vW(),il=function(){},bc=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:il,onWheelCapture:il,onTouchMoveCapture:il}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=xx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=fW([r,t]),R=lt(lt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:kx,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),lt(lt({},R),{ref:T})):i.createElement(y,lt({},R,{className:m,ref:T}),s))});bc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bc.classNames={fullWidth:pi,zeroRight:fi};var hW=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function bW(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hW();return t&&e.setAttribute("nonce",t),e}function yW(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function wW(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xW=function(){var e=0,t=null;return{add:function(r){e==0&&(t=bW())&&(yW(t,r),wW(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},EW=function(){var e=xW();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Rx=function(){var e=EW(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},kW={left:0,top:0,right:0,gap:0},cl=function(e){return parseInt(e||"",10)||0},RW=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[cl(r),cl(n),cl(o)]},SW=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return kW;var t=RW(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},CW=Rx(),Xn="data-scroll-locked",jW=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
522
+ .`.concat(cW,` {
523
+ overflow: hidden `).concat(n,`;
524
+ padding-right: `).concat(s,"px ").concat(n,`;
525
+ }
526
+ body[`).concat(Xn,`] {
527
+ overflow: hidden `).concat(n,`;
528
+ overscroll-behavior: contain;
529
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
530
+ padding-left: `.concat(o,`px;
531
+ padding-top: `).concat(a,`px;
532
+ padding-right: `).concat(c,`px;
533
+ margin-left:0;
534
+ margin-top:0;
535
+ margin-right: `).concat(s,"px ").concat(n,`;
536
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
537
+ }
538
+
539
+ .`).concat(fi,` {
540
+ right: `).concat(s,"px ").concat(n,`;
541
+ }
542
+
543
+ .`).concat(pi,` {
544
+ margin-right: `).concat(s,"px ").concat(n,`;
545
+ }
546
+
547
+ .`).concat(fi," .").concat(fi,` {
548
+ right: 0 `).concat(n,`;
549
+ }
550
+
551
+ .`).concat(pi," .").concat(pi,` {
552
+ margin-right: 0 `).concat(n,`;
553
+ }
554
+
555
+ body[`).concat(Xn,`] {
556
+ `).concat(uW,": ").concat(s,`px;
557
+ }
558
+ `)},Vv=function(){var e=parseInt(document.body.getAttribute(Xn)||"0",10);return isFinite(e)?e:0},NW=function(){i.useEffect(function(){return document.body.setAttribute(Xn,(Vv()+1).toString()),function(){var e=Vv()-1;e<=0?document.body.removeAttribute(Xn):document.body.setAttribute(Xn,e.toString())}},[])},TW=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;NW();var a=i.useMemo(function(){return SW(o)},[o]);return i.createElement(CW,{styles:jW(a,!t,o,r?"":"!important")})},Dd=!1;if(typeof window<"u")try{var ms=Object.defineProperty({},"passive",{get:function(){return Dd=!0,!0}});window.addEventListener("test",ms,ms),window.removeEventListener("test",ms,ms)}catch{Dd=!1}var xn=Dd?{passive:!1}:!1,_W=function(e){return e.tagName==="TEXTAREA"},Sx=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!_W(e)&&r[t]==="visible")},OW=function(e){return Sx(e,"overflowY")},DW=function(e){return Sx(e,"overflowX")},Xv=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Cx(e,n);if(o){var a=jx(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},PW=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},MW=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Cx=function(e,t){return e==="v"?OW(t):DW(t)},jx=function(e,t){return e==="v"?PW(t):MW(t)},AW=function(e,t){return e==="h"&&t==="rtl"?-1:1},IW=function(e,t,r,n,o){var a=AW(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=jx(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&Cx(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},vs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gv=function(e){return[e.deltaX,e.deltaY]},qv=function(e){return e&&"current"in e?e.current:e},FW=function(e,t){return e[0]===t[0]&&e[1]===t[1]},LW=function(e){return`
559
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
560
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
561
+ `)},WW=0,En=[];function zW(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(WW++)[0],a=i.useState(Rx)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=iW([e.lockRef.current],(e.shards||[]).map(qv)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=vs(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=Xv(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=Xv(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return IW(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!En.length||En[En.length-1]!==a)){var b="deltaY"in g?Gv(g):vs(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&FW(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(qv).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:$W(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=vs(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Gv(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,vs(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return En.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,xn),document.addEventListener("touchmove",m,xn),document.addEventListener("touchstart",u,xn),function(){En=En.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,xn),document.removeEventListener("touchmove",m,xn),document.removeEventListener("touchstart",u,xn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:LW(o)}):null,h?i.createElement(TW,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function $W(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const YW=gW(kx,zW);var Nx=i.forwardRef(function(e,t){return i.createElement(bc,lt({},e,{ref:t,sideCar:YW}))});Nx.classNames=bc.classNames;var UW=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},kn=new WeakMap,gs=new WeakMap,hs={},ul=0,Tx=function(e){return e&&(e.host||Tx(e.parentNode))},BW=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Tx(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},KW=function(e,t,r,n){var o=BW(t,Array.isArray(e)?e:[e]);hs[r]||(hs[r]=new WeakMap);var a=hs[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(kn.get(v)||0)+1,g=(a.get(v)||0)+1;kn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&gs.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),ul++,function(){c.forEach(function(p){var v=kn.get(p)-1,h=a.get(p)-1;kn.set(p,v),a.set(p,h),v||(gs.has(p)||p.removeAttribute(n),gs.delete(p)),h||p.removeAttribute(r)}),ul--,ul||(kn=new WeakMap,kn=new WeakMap,gs=new WeakMap,hs={})}},HW=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=UW(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),KW(n,o,r,"aria-hidden")):function(){return null}},_x="Dialog",[Ox]=gc(_x),[c7,Ft]=Ox(_x),Dx="DialogTrigger",VW=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(Dx,r),a=kt(t,o.triggerRef);return re.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Wf(o.open),...n,ref:a,onClick:Ee(e.onClick,o.onOpenToggle)})});VW.displayName=Dx;var XW="DialogPortal",[u7,Px]=Ox(XW,{forceMount:void 0}),zi="DialogOverlay",GW=i.forwardRef((e,t)=>{const r=Px(zi,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ft(zi,e.__scopeDialog);return a.modal?re.jsx(hc,{present:n||a.open,children:re.jsx(ZW,{...o,ref:t})}):null});GW.displayName=zi;var qW=Z.createSlot("DialogOverlay.RemoveScroll"),ZW=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(zi,r);return re.jsx(Nx,{as:qW,allowPinchZoom:!0,shards:[o.contentRef],children:re.jsx(Ae.div,{"data-state":Wf(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Fr="DialogContent",JW=i.forwardRef((e,t)=>{const r=Px(Fr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ft(Fr,e.__scopeDialog);return re.jsx(hc,{present:n||a.open,children:a.modal?re.jsx(QW,{...o,ref:t}):re.jsx(e4,{...o,ref:t})})});JW.displayName=Fr;var QW=i.forwardRef((e,t)=>{const r=Ft(Fr,e.__scopeDialog),n=i.useRef(null),o=kt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return HW(a)},[]),re.jsx(Mx,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,a=>a.preventDefault())})}),e4=i.forwardRef((e,t)=>{const r=Ft(Fr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return re.jsx(Mx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Mx=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Ft(Fr,r),m=i.useRef(null),l=kt(t,m);return sW(),re.jsxs(re.Fragment,{children:[re.jsx(yx,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:re.jsx(hx,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Wf(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),re.jsxs(re.Fragment,{children:[re.jsx(o4,{titleId:s.titleId}),re.jsx(s4,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Lf="DialogTitle",t4=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(Lf,r);return re.jsx(Ae.h2,{id:o.titleId,...n,ref:t})});t4.displayName=Lf;var Ax="DialogDescription",r4=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(Ax,r);return re.jsx(Ae.p,{id:o.descriptionId,...n,ref:t})});r4.displayName=Ax;var Ix="DialogClose",n4=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(Ix,r);return re.jsx(Ae.button,{type:"button",...n,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});n4.displayName=Ix;function Wf(e){return e?"open":"closed"}var Fx="DialogTitleWarning",[l7,Lx]=O5(Fx,{contentName:Fr,titleName:Lf,docsSlug:"dialog"}),o4=({titleId:e})=>{const t=Lx(Fx),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
562
+
563
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
564
+
565
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},a4="DialogDescriptionWarning",s4=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Lx(a4).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ll={exports:{}},jo={};/**
566
+ * @license React
567
+ * react-jsx-runtime.production.js
568
+ *
569
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
570
+ *
571
+ * This source code is licensed under the MIT license found in the
572
+ * LICENSE file in the root directory of this source tree.
573
+ */var Zv;function i4(){if(Zv)return jo;Zv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return jo.Fragment=t,jo.jsx=r,jo.jsxs=r,jo}var bs={};/**
574
+ * @license React
575
+ * react-jsx-runtime.development.js
576
+ *
577
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
578
+ *
579
+ * This source code is licensed under the MIT license found in the
580
+ * LICENSE file in the root directory of this source tree.
581
+ */var Jv;function c4(){return Jv||(Jv=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,_,F,A,G,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,_,F,A,G,X){var O=k.children;if(O!==void 0)if(_)if(K(O)){for(_=0;_<O.length;_++)p(O[_]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(k,"key")){O=e(f);var $=Object.keys(k).filter(function(me){return me!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[O+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
582
+ let props = %s;
583
+ <%s {...props} />
584
+ React keys must be passed directly to JSX without using spread:
585
+ let props = %s;
586
+ <%s key={someKey} {...props} />`,_,O,$,O),V[O+_]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),c(k)&&(r(k.key),O=""+k.key),"key"in k){N={};for(var q in k)q!=="key"&&(N[q]=k[q])}else N=k;return O&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),N,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};bs.Fragment=d,bs.jsx=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},bs.jsxs=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),bs}var Qv;function u4(){return Qv||(Qv=1,process.env.NODE_ENV==="production"?ll.exports=i4():ll.exports=c4()),ll.exports}var ne=u4();P.createContext({locale:void 0});var l4=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${l4.toString()})(${u})`}})});ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ve.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ke(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function eg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function d4(...e){return t=>{let r=!1;const n=e.map(o=>{const a=eg(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():eg(e[o],null)}}}}function Rt(...e){return i.useCallback(d4(...e),e)}function f4(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ne.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function yc(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return ne.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,p4(o,...t)]}function p4(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Xo=globalThis?.document?i.useLayoutEffect:()=>{},m4=i[" useId ".trim().toString()]||(()=>{}),v4=0;function Wx(e){const[t,r]=i.useState(m4());return Xo(()=>{r(n=>n??String(v4++))},[e]),t?`radix-${t}`:""}var g4=i[" useInsertionEffect ".trim().toString()]||Xo;function zx({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=h4({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=b4(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function h4({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return g4(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function b4(e){return typeof e=="function"}var y4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=y4.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ne.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function w4(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function so(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function x4(e,t=globalThis?.document){const r=so(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var E4="DismissableLayer",Pd="dismissableLayer.update",k4="dismissableLayer.pointerDownOutside",R4="dismissableLayer.focusOutside",tg,$x=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yx=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext($x),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Rt(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=j4(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=N4(R=>{const C=R.target;[...l.branches].some(M=>M.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return x4(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(tg=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),rg(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=tg)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),rg())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Pd,R),()=>document.removeEventListener(Pd,R)},[]),ne.jsx(Ie.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:ke(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ke(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ke(e.onPointerDownCapture,S.onPointerDownCapture)})});Yx.displayName=E4;var S4="DismissableLayerBranch",C4=i.forwardRef((e,t)=>{const r=i.useContext($x),n=i.useRef(null),o=Rt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ne.jsx(Ie.div,{...e,ref:o})});C4.displayName=S4;function j4(e,t=globalThis?.document){const r=so(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){Ux(k4,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function N4(e,t=globalThis?.document){const r=so(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Ux(R4,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function rg(){const e=new CustomEvent(Pd);document.dispatchEvent(e)}function Ux(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?w4(o,a):o.dispatchEvent(a)}var dl="focusScope.autoFocusOnMount",fl="focusScope.autoFocusOnUnmount",ng={bubbles:!1,cancelable:!0},T4="FocusScope",Bx=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=so(o),u=so(a),p=i.useRef(null),v=Rt(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:dr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||dr(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&dr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){ag.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(dl,ng);s.addEventListener(dl,l),s.dispatchEvent(g),g.defaultPrevented||(_4(A4(Kx(s)),{select:!0}),document.activeElement===d&&dr(s))}return()=>{s.removeEventListener(dl,l),setTimeout(()=>{const g=new CustomEvent(fl,ng);s.addEventListener(fl,u),s.dispatchEvent(g),g.defaultPrevented||dr(d??document.body,{select:!0}),s.removeEventListener(fl,u),ag.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=O4(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&dr(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&dr(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return ne.jsx(Ie.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});Bx.displayName=T4;function _4(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(dr(n,{select:t}),document.activeElement!==r)return}function O4(e){const t=Kx(e),r=og(t,e),n=og(t.reverse(),e);return[r,n]}function Kx(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function og(e,t){for(const r of e)if(!D4(r,{upTo:t}))return r}function D4(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function P4(e){return e instanceof HTMLInputElement&&"select"in e}function dr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&P4(e)&&t&&e.select()}}var ag=M4();function M4(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=sg(e,t),e.unshift(t)},remove(t){e=sg(e,t),e[0]?.resume()}}}function sg(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function A4(e){return e.filter(t=>t.tagName!=="A")}var I4="Portal",F4=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Xo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(ne.jsx(Ie.div,{...n,ref:t}),c):null});F4.displayName=I4;function L4(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var wc=e=>{const{present:t,children:r}=e,n=W4(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Rt(n.ref,z4(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};wc.displayName="Presence";function W4(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=L4(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=ys(n.current);a.current=s==="mounted"?l:"none"},[s]),Xo(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=ys(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Xo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=ys(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=ys(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function ys(e){return e?.animationName||"none"}function z4(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var pl=0;function $4(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ig()),document.body.insertAdjacentElement("beforeend",e[1]??ig()),pl++,()=>{pl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pl--}},[])}function ig(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var dt=function(){return dt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},dt.apply(this,arguments)};function Hx(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Y4(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var mi="right-scroll-bar-position",vi="width-before-scroll-bar",U4="with-scroll-bars-hidden",B4="--removed-body-scroll-bar-size";function ml(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function K4(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var H4=typeof window<"u"?i.useLayoutEffect:i.useEffect,cg=new WeakMap;function V4(e,t){var r=K4(null,function(n){return e.forEach(function(o){return ml(o,n)})});return H4(function(){var n=cg.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||ml(s,null)}),a.forEach(function(s){o.has(s)||ml(s,c)})}cg.set(r,e)},[e]),r}function X4(e){return e}function G4(e,t){t===void 0&&(t=X4);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function q4(e){e===void 0&&(e={});var t=G4(null);return t.options=dt({async:!0,ssr:!1},e),t}var Vx=function(e){var t=e.sideCar,r=Hx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,dt({},r))};Vx.isSideCarExport=!0;function Z4(e,t){return e.useMedium(t),Vx}var Xx=q4(),vl=function(){},xc=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:vl,onWheelCapture:vl,onTouchMoveCapture:vl}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=Hx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=V4([r,t]),R=dt(dt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:Xx,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),dt(dt({},R),{ref:T})):i.createElement(y,dt({},R,{className:m,ref:T}),s))});xc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xc.classNames={fullWidth:vi,zeroRight:mi};var J4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Q4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=J4();return t&&e.setAttribute("nonce",t),e}function ez(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tz(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var rz=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Q4())&&(ez(t,r),tz(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nz=function(){var e=rz();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Gx=function(){var e=nz(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},oz={left:0,top:0,right:0,gap:0},gl=function(e){return parseInt(e||"",10)||0},az=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[gl(r),gl(n),gl(o)]},sz=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return oz;var t=az(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},iz=Gx(),Gn="data-scroll-locked",cz=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
587
+ .`.concat(U4,` {
588
+ overflow: hidden `).concat(n,`;
589
+ padding-right: `).concat(s,"px ").concat(n,`;
590
+ }
591
+ body[`).concat(Gn,`] {
592
+ overflow: hidden `).concat(n,`;
593
+ overscroll-behavior: contain;
594
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
595
+ padding-left: `.concat(o,`px;
596
+ padding-top: `).concat(a,`px;
597
+ padding-right: `).concat(c,`px;
598
+ margin-left:0;
599
+ margin-top:0;
600
+ margin-right: `).concat(s,"px ").concat(n,`;
601
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
602
+ }
603
+
604
+ .`).concat(mi,` {
605
+ right: `).concat(s,"px ").concat(n,`;
606
+ }
607
+
608
+ .`).concat(vi,` {
609
+ margin-right: `).concat(s,"px ").concat(n,`;
610
+ }
611
+
612
+ .`).concat(mi," .").concat(mi,` {
613
+ right: 0 `).concat(n,`;
614
+ }
615
+
616
+ .`).concat(vi," .").concat(vi,` {
617
+ margin-right: 0 `).concat(n,`;
618
+ }
619
+
620
+ body[`).concat(Gn,`] {
621
+ `).concat(B4,": ").concat(s,`px;
622
+ }
623
+ `)},ug=function(){var e=parseInt(document.body.getAttribute(Gn)||"0",10);return isFinite(e)?e:0},uz=function(){i.useEffect(function(){return document.body.setAttribute(Gn,(ug()+1).toString()),function(){var e=ug()-1;e<=0?document.body.removeAttribute(Gn):document.body.setAttribute(Gn,e.toString())}},[])},lz=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;uz();var a=i.useMemo(function(){return sz(o)},[o]);return i.createElement(iz,{styles:cz(a,!t,o,r?"":"!important")})},Md=!1;if(typeof window<"u")try{var ws=Object.defineProperty({},"passive",{get:function(){return Md=!0,!0}});window.addEventListener("test",ws,ws),window.removeEventListener("test",ws,ws)}catch{Md=!1}var Rn=Md?{passive:!1}:!1,dz=function(e){return e.tagName==="TEXTAREA"},qx=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!dz(e)&&r[t]==="visible")},fz=function(e){return qx(e,"overflowY")},pz=function(e){return qx(e,"overflowX")},lg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Zx(e,n);if(o){var a=Jx(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},mz=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},vz=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Zx=function(e,t){return e==="v"?fz(t):pz(t)},Jx=function(e,t){return e==="v"?mz(t):vz(t)},gz=function(e,t){return e==="h"&&t==="rtl"?-1:1},hz=function(e,t,r,n,o){var a=gz(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=Jx(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&Zx(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},xs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},dg=function(e){return[e.deltaX,e.deltaY]},fg=function(e){return e&&"current"in e?e.current:e},bz=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yz=function(e){return`
624
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
625
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
626
+ `)},wz=0,Sn=[];function xz(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(wz++)[0],a=i.useState(Gx)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=Y4([e.lockRef.current],(e.shards||[]).map(fg)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=xs(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=lg(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=lg(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return hz(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!Sn.length||Sn[Sn.length-1]!==a)){var b="deltaY"in g?dg(g):xs(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&bz(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(fg).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:Ez(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=xs(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,dg(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,xs(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Sn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Rn),document.addEventListener("touchmove",m,Rn),document.addEventListener("touchstart",u,Rn),function(){Sn=Sn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,Rn),document.removeEventListener("touchmove",m,Rn),document.removeEventListener("touchstart",u,Rn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:yz(o)}):null,h?i.createElement(lz,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ez(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kz=Z4(Xx,xz);var Qx=i.forwardRef(function(e,t){return i.createElement(xc,dt({},e,{ref:t,sideCar:kz}))});Qx.classNames=xc.classNames;var Rz=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cn=new WeakMap,Es=new WeakMap,ks={},hl=0,eE=function(e){return e&&(e.host||eE(e.parentNode))},Sz=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=eE(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Cz=function(e,t,r,n){var o=Sz(t,Array.isArray(e)?e:[e]);ks[r]||(ks[r]=new WeakMap);var a=ks[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Cn.get(v)||0)+1,g=(a.get(v)||0)+1;Cn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Es.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),hl++,function(){c.forEach(function(p){var v=Cn.get(p)-1,h=a.get(p)-1;Cn.set(p,v),a.set(p,h),v||(Es.has(p)||p.removeAttribute(n),Es.delete(p)),h||p.removeAttribute(r)}),hl--,hl||(Cn=new WeakMap,Cn=new WeakMap,Es=new WeakMap,ks={})}},jz=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Rz(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Cz(n,o,r,"aria-hidden")):function(){return null}},tE="Dialog",[rE]=yc(tE),[d7,Lt]=rE(tE),nE="DialogTrigger",Nz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(nE,r),a=Rt(t,o.triggerRef);return ne.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$f(o.open),...n,ref:a,onClick:ke(e.onClick,o.onOpenToggle)})});Nz.displayName=nE;var Tz="DialogPortal",[f7,oE]=rE(Tz,{forceMount:void 0}),$i="DialogOverlay",_z=i.forwardRef((e,t)=>{const r=oE($i,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Lt($i,e.__scopeDialog);return a.modal?ne.jsx(wc,{present:n||a.open,children:ne.jsx(Dz,{...o,ref:t})}):null});_z.displayName=$i;var Oz=Z.createSlot("DialogOverlay.RemoveScroll"),Dz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt($i,r);return ne.jsx(Qx,{as:Oz,allowPinchZoom:!0,shards:[o.contentRef],children:ne.jsx(Ie.div,{"data-state":$f(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Lr="DialogContent",Pz=i.forwardRef((e,t)=>{const r=oE(Lr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Lt(Lr,e.__scopeDialog);return ne.jsx(wc,{present:n||a.open,children:a.modal?ne.jsx(Mz,{...o,ref:t}):ne.jsx(Az,{...o,ref:t})})});Pz.displayName=Lr;var Mz=i.forwardRef((e,t)=>{const r=Lt(Lr,e.__scopeDialog),n=i.useRef(null),o=Rt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return jz(a)},[]),ne.jsx(aE,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ke(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:ke(e.onFocusOutside,a=>a.preventDefault())})}),Az=i.forwardRef((e,t)=>{const r=Lt(Lr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ne.jsx(aE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),aE=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Lt(Lr,r),m=i.useRef(null),l=Rt(t,m);return $4(),ne.jsxs(ne.Fragment,{children:[ne.jsx(Bx,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ne.jsx(Yx,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":$f(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),ne.jsxs(ne.Fragment,{children:[ne.jsx(Wz,{titleId:s.titleId}),ne.jsx($z,{contentRef:m,descriptionId:s.descriptionId})]})]})}),zf="DialogTitle",Iz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(zf,r);return ne.jsx(Ie.h2,{id:o.titleId,...n,ref:t})});Iz.displayName=zf;var sE="DialogDescription",Fz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(sE,r);return ne.jsx(Ie.p,{id:o.descriptionId,...n,ref:t})});Fz.displayName=sE;var iE="DialogClose",Lz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(iE,r);return ne.jsx(Ie.button,{type:"button",...n,ref:t,onClick:ke(e.onClick,()=>o.onOpenChange(!1))})});Lz.displayName=iE;function $f(e){return e?"open":"closed"}var cE="DialogTitleWarning",[p7,uE]=f4(cE,{contentName:Lr,titleName:zf,docsSlug:"dialog"}),Wz=({titleId:e})=>{const t=uE(cE),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
627
+
628
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
629
+
630
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},zz="DialogDescriptionWarning",$z=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${uE(zz).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},bl={exports:{}},No={};/**
631
+ * @license React
632
+ * react-jsx-runtime.production.js
633
+ *
634
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
635
+ *
636
+ * This source code is licensed under the MIT license found in the
637
+ * LICENSE file in the root directory of this source tree.
638
+ */var pg;function Yz(){if(pg)return No;pg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return No.Fragment=t,No.jsx=r,No.jsxs=r,No}var Rs={};/**
639
+ * @license React
640
+ * react-jsx-runtime.development.js
641
+ *
642
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
643
+ *
644
+ * This source code is licensed under the MIT license found in the
645
+ * LICENSE file in the root directory of this source tree.
646
+ */var mg;function Uz(){return mg||(mg=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,_,F,A,G,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,_,F,A,G,X){var O=k.children;if(O!==void 0)if(_)if(K(O)){for(_=0;_<O.length;_++)p(O[_]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(k,"key")){O=e(f);var $=Object.keys(k).filter(function(me){return me!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[O+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
647
+ let props = %s;
648
+ <%s {...props} />
649
+ React keys must be passed directly to JSX without using spread:
650
+ let props = %s;
651
+ <%s key={someKey} {...props} />`,_,O,$,O),V[O+_]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),c(k)&&(r(k.key),O=""+k.key),"key"in k){N={};for(var q in k)q!=="key"&&(N[q]=k[q])}else N=k;return O&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),N,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};Rs.Fragment=d,Rs.jsx=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},Rs.jsxs=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),Rs}var vg;function Bz(){return vg||(vg=1,process.env.NODE_ENV==="production"?bl.exports=Yz():bl.exports=Uz()),bl.exports}var oe=Bz();P.createContext({locale:void 0});var Kz=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${Kz.toString()})(${u})`}})});ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ve.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Re(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function gg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Hz(...e){return t=>{let r=!1;const n=e.map(o=>{const a=gg(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():gg(e[o],null)}}}}function St(...e){return i.useCallback(Hz(...e),e)}function Vz(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return oe.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Ec(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return oe.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,Xz(o,...t)]}function Xz(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Go=globalThis?.document?i.useLayoutEffect:()=>{},Gz=i[" useId ".trim().toString()]||(()=>{}),qz=0;function lE(e){const[t,r]=i.useState(Gz());return Go(()=>{r(n=>n??String(qz++))},[e]),t?`radix-${t}`:""}var Zz=i[" useInsertionEffect ".trim().toString()]||Go;function dE({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=Jz({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=Qz(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function Jz({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return Zz(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function Qz(e){return typeof e=="function"}var e$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=e$.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),oe.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function t$(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function io(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function r$(e,t=globalThis?.document){const r=io(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var n$="DismissableLayer",Ad="dismissableLayer.update",o$="dismissableLayer.pointerDownOutside",a$="dismissableLayer.focusOutside",hg,fE=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pE=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(fE),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=St(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=c$(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=u$(R=>{const C=R.target;[...l.branches].some(M=>M.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return r$(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(hg=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),bg(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=hg)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),bg())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Ad,R),()=>document.removeEventListener(Ad,R)},[]),oe.jsx(Fe.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Re(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Re(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Re(e.onPointerDownCapture,S.onPointerDownCapture)})});pE.displayName=n$;var s$="DismissableLayerBranch",i$=i.forwardRef((e,t)=>{const r=i.useContext(fE),n=i.useRef(null),o=St(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),oe.jsx(Fe.div,{...e,ref:o})});i$.displayName=s$;function c$(e,t=globalThis?.document){const r=io(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){mE(o$,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function u$(e,t=globalThis?.document){const r=io(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&mE(a$,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function bg(){const e=new CustomEvent(Ad);document.dispatchEvent(e)}function mE(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?t$(o,a):o.dispatchEvent(a)}var yl="focusScope.autoFocusOnMount",wl="focusScope.autoFocusOnUnmount",yg={bubbles:!1,cancelable:!0},l$="FocusScope",vE=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=io(o),u=io(a),p=i.useRef(null),v=St(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:fr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||fr(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&fr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){xg.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(yl,yg);s.addEventListener(yl,l),s.dispatchEvent(g),g.defaultPrevented||(d$(g$(gE(s)),{select:!0}),document.activeElement===d&&fr(s))}return()=>{s.removeEventListener(yl,l),setTimeout(()=>{const g=new CustomEvent(wl,yg);s.addEventListener(wl,u),s.dispatchEvent(g),g.defaultPrevented||fr(d??document.body,{select:!0}),s.removeEventListener(wl,u),xg.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=f$(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&fr(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&fr(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return oe.jsx(Fe.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});vE.displayName=l$;function d$(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(fr(n,{select:t}),document.activeElement!==r)return}function f$(e){const t=gE(e),r=wg(t,e),n=wg(t.reverse(),e);return[r,n]}function gE(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function wg(e,t){for(const r of e)if(!p$(r,{upTo:t}))return r}function p$(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function m$(e){return e instanceof HTMLInputElement&&"select"in e}function fr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&m$(e)&&t&&e.select()}}var xg=v$();function v$(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Eg(e,t),e.unshift(t)},remove(t){e=Eg(e,t),e[0]?.resume()}}}function Eg(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function g$(e){return e.filter(t=>t.tagName!=="A")}var h$="Portal",b$=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Go(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(oe.jsx(Fe.div,{...n,ref:t}),c):null});b$.displayName=h$;function y$(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var kc=e=>{const{present:t,children:r}=e,n=w$(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=St(n.ref,x$(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};kc.displayName="Presence";function w$(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=y$(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Ss(n.current);a.current=s==="mounted"?l:"none"},[s]),Go(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Ss(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Go(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Ss(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Ss(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Ss(e){return e?.animationName||"none"}function x$(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var xl=0;function E$(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kg()),document.body.insertAdjacentElement("beforeend",e[1]??kg()),xl++,()=>{xl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),xl--}},[])}function kg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ft=function(){return ft=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ft.apply(this,arguments)};function hE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function k$(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var gi="right-scroll-bar-position",hi="width-before-scroll-bar",R$="with-scroll-bars-hidden",S$="--removed-body-scroll-bar-size";function El(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function C$(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var j$=typeof window<"u"?i.useLayoutEffect:i.useEffect,Rg=new WeakMap;function N$(e,t){var r=C$(null,function(n){return e.forEach(function(o){return El(o,n)})});return j$(function(){var n=Rg.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||El(s,null)}),a.forEach(function(s){o.has(s)||El(s,c)})}Rg.set(r,e)},[e]),r}function T$(e){return e}function _$(e,t){t===void 0&&(t=T$);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function O$(e){e===void 0&&(e={});var t=_$(null);return t.options=ft({async:!0,ssr:!1},e),t}var bE=function(e){var t=e.sideCar,r=hE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ft({},r))};bE.isSideCarExport=!0;function D$(e,t){return e.useMedium(t),bE}var yE=O$(),kl=function(){},Rc=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:kl,onWheelCapture:kl,onTouchMoveCapture:kl}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=hE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=N$([r,t]),R=ft(ft({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:yE,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ft(ft({},R),{ref:T})):i.createElement(y,ft({},R,{className:m,ref:T}),s))});Rc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Rc.classNames={fullWidth:hi,zeroRight:gi};var P$=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function M$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=P$();return t&&e.setAttribute("nonce",t),e}function A$(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function I$(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var F$=function(){var e=0,t=null;return{add:function(r){e==0&&(t=M$())&&(A$(t,r),I$(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},L$=function(){var e=F$();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},wE=function(){var e=L$(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},W$={left:0,top:0,right:0,gap:0},Rl=function(e){return parseInt(e||"",10)||0},z$=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Rl(r),Rl(n),Rl(o)]},$$=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return W$;var t=z$(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Y$=wE(),qn="data-scroll-locked",U$=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
652
+ .`.concat(R$,` {
653
+ overflow: hidden `).concat(n,`;
654
+ padding-right: `).concat(s,"px ").concat(n,`;
655
+ }
656
+ body[`).concat(qn,`] {
657
+ overflow: hidden `).concat(n,`;
658
+ overscroll-behavior: contain;
659
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
660
+ padding-left: `.concat(o,`px;
661
+ padding-top: `).concat(a,`px;
662
+ padding-right: `).concat(c,`px;
663
+ margin-left:0;
664
+ margin-top:0;
665
+ margin-right: `).concat(s,"px ").concat(n,`;
666
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
667
+ }
668
+
669
+ .`).concat(gi,` {
670
+ right: `).concat(s,"px ").concat(n,`;
671
+ }
672
+
673
+ .`).concat(hi,` {
674
+ margin-right: `).concat(s,"px ").concat(n,`;
675
+ }
676
+
677
+ .`).concat(gi," .").concat(gi,` {
678
+ right: 0 `).concat(n,`;
679
+ }
680
+
681
+ .`).concat(hi," .").concat(hi,` {
682
+ margin-right: 0 `).concat(n,`;
683
+ }
684
+
685
+ body[`).concat(qn,`] {
686
+ `).concat(S$,": ").concat(s,`px;
687
+ }
688
+ `)},Sg=function(){var e=parseInt(document.body.getAttribute(qn)||"0",10);return isFinite(e)?e:0},B$=function(){i.useEffect(function(){return document.body.setAttribute(qn,(Sg()+1).toString()),function(){var e=Sg()-1;e<=0?document.body.removeAttribute(qn):document.body.setAttribute(qn,e.toString())}},[])},K$=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;B$();var a=i.useMemo(function(){return $$(o)},[o]);return i.createElement(Y$,{styles:U$(a,!t,o,r?"":"!important")})},Id=!1;if(typeof window<"u")try{var Cs=Object.defineProperty({},"passive",{get:function(){return Id=!0,!0}});window.addEventListener("test",Cs,Cs),window.removeEventListener("test",Cs,Cs)}catch{Id=!1}var jn=Id?{passive:!1}:!1,H$=function(e){return e.tagName==="TEXTAREA"},xE=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!H$(e)&&r[t]==="visible")},V$=function(e){return xE(e,"overflowY")},X$=function(e){return xE(e,"overflowX")},Cg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=EE(e,n);if(o){var a=kE(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},G$=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},q$=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},EE=function(e,t){return e==="v"?V$(t):X$(t)},kE=function(e,t){return e==="v"?G$(t):q$(t)},Z$=function(e,t){return e==="h"&&t==="rtl"?-1:1},J$=function(e,t,r,n,o){var a=Z$(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=kE(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&EE(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},js=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jg=function(e){return[e.deltaX,e.deltaY]},Ng=function(e){return e&&"current"in e?e.current:e},Q$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},eY=function(e){return`
689
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
690
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
691
+ `)},tY=0,Nn=[];function rY(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(tY++)[0],a=i.useState(wE)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=k$([e.lockRef.current],(e.shards||[]).map(Ng)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=js(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=Cg(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=Cg(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return J$(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!Nn.length||Nn[Nn.length-1]!==a)){var b="deltaY"in g?jg(g):js(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&Q$(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Ng).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:nY(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=js(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,jg(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,js(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Nn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,jn),document.addEventListener("touchmove",m,jn),document.addEventListener("touchstart",u,jn),function(){Nn=Nn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,jn),document.removeEventListener("touchmove",m,jn),document.removeEventListener("touchstart",u,jn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:eY(o)}):null,h?i.createElement(K$,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function nY(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const oY=D$(yE,rY);var RE=i.forwardRef(function(e,t){return i.createElement(Rc,ft({},e,{ref:t,sideCar:oY}))});RE.classNames=Rc.classNames;var aY=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Tn=new WeakMap,Ns=new WeakMap,Ts={},Sl=0,SE=function(e){return e&&(e.host||SE(e.parentNode))},sY=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=SE(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},iY=function(e,t,r,n){var o=sY(t,Array.isArray(e)?e:[e]);Ts[r]||(Ts[r]=new WeakMap);var a=Ts[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Tn.get(v)||0)+1,g=(a.get(v)||0)+1;Tn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Ns.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),Sl++,function(){c.forEach(function(p){var v=Tn.get(p)-1,h=a.get(p)-1;Tn.set(p,v),a.set(p,h),v||(Ns.has(p)||p.removeAttribute(n),Ns.delete(p)),h||p.removeAttribute(r)}),Sl--,Sl||(Tn=new WeakMap,Tn=new WeakMap,Ns=new WeakMap,Ts={})}},cY=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=aY(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),iY(n,o,r,"aria-hidden")):function(){return null}},CE="Dialog",[jE]=Ec(CE),[m7,Wt]=jE(CE),NE="DialogTrigger",uY=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(NE,r),a=St(t,o.triggerRef);return oe.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Uf(o.open),...n,ref:a,onClick:Re(e.onClick,o.onOpenToggle)})});uY.displayName=NE;var lY="DialogPortal",[v7,TE]=jE(lY,{forceMount:void 0}),Yi="DialogOverlay",dY=i.forwardRef((e,t)=>{const r=TE(Yi,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Wt(Yi,e.__scopeDialog);return a.modal?oe.jsx(kc,{present:n||a.open,children:oe.jsx(pY,{...o,ref:t})}):null});dY.displayName=Yi;var fY=Z.createSlot("DialogOverlay.RemoveScroll"),pY=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(Yi,r);return oe.jsx(RE,{as:fY,allowPinchZoom:!0,shards:[o.contentRef],children:oe.jsx(Fe.div,{"data-state":Uf(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Wr="DialogContent",mY=i.forwardRef((e,t)=>{const r=TE(Wr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Wt(Wr,e.__scopeDialog);return oe.jsx(kc,{present:n||a.open,children:a.modal?oe.jsx(vY,{...o,ref:t}):oe.jsx(gY,{...o,ref:t})})});mY.displayName=Wr;var vY=i.forwardRef((e,t)=>{const r=Wt(Wr,e.__scopeDialog),n=i.useRef(null),o=St(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return cY(a)},[]),oe.jsx(_E,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Re(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Re(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Re(e.onFocusOutside,a=>a.preventDefault())})}),gY=i.forwardRef((e,t)=>{const r=Wt(Wr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return oe.jsx(_E,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),_E=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Wt(Wr,r),m=i.useRef(null),l=St(t,m);return E$(),oe.jsxs(oe.Fragment,{children:[oe.jsx(vE,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:oe.jsx(pE,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Uf(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),oe.jsxs(oe.Fragment,{children:[oe.jsx(wY,{titleId:s.titleId}),oe.jsx(EY,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Yf="DialogTitle",hY=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(Yf,r);return oe.jsx(Fe.h2,{id:o.titleId,...n,ref:t})});hY.displayName=Yf;var OE="DialogDescription",bY=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(OE,r);return oe.jsx(Fe.p,{id:o.descriptionId,...n,ref:t})});bY.displayName=OE;var DE="DialogClose",yY=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(DE,r);return oe.jsx(Fe.button,{type:"button",...n,ref:t,onClick:Re(e.onClick,()=>o.onOpenChange(!1))})});yY.displayName=DE;function Uf(e){return e?"open":"closed"}var PE="DialogTitleWarning",[g7,ME]=Vz(PE,{contentName:Wr,titleName:Yf,docsSlug:"dialog"}),wY=({titleId:e})=>{const t=ME(PE),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
692
+
693
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
694
+
695
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},xY="DialogDescriptionWarning",EY=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ME(xY).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Cl={exports:{}},To={};/**
696
+ * @license React
697
+ * react-jsx-runtime.production.js
698
+ *
699
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
700
+ *
701
+ * This source code is licensed under the MIT license found in the
702
+ * LICENSE file in the root directory of this source tree.
703
+ */var Tg;function kY(){if(Tg)return To;Tg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return To.Fragment=t,To.jsx=r,To.jsxs=r,To}var _s={};/**
704
+ * @license React
705
+ * react-jsx-runtime.development.js
706
+ *
707
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
708
+ *
709
+ * This source code is licensed under the MIT license found in the
710
+ * LICENSE file in the root directory of this source tree.
711
+ */var _g;function RY(){return _g||(_g=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,_,F,A,G,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,_,F,A,G,X){var O=k.children;if(O!==void 0)if(_)if(K(O)){for(_=0;_<O.length;_++)p(O[_]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(k,"key")){O=e(f);var $=Object.keys(k).filter(function(me){return me!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[O+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
712
+ let props = %s;
713
+ <%s {...props} />
714
+ React keys must be passed directly to JSX without using spread:
715
+ let props = %s;
716
+ <%s key={someKey} {...props} />`,_,O,$,O),V[O+_]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),c(k)&&(r(k.key),O=""+k.key),"key"in k){N={};for(var q in k)q!=="key"&&(N[q]=k[q])}else N=k;return O&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),N,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};_s.Fragment=d,_s.jsx=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},_s.jsxs=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),_s}var Og;function SY(){return Og||(Og=1,process.env.NODE_ENV==="production"?Cl.exports=kY():Cl.exports=RY()),Cl.exports}var ae=SY();P.createContext({locale:void 0});var CY=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${CY.toString()})(${u})`}})});ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ve.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Se(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Dg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jY(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Dg(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Dg(e[o],null)}}}}function Ct(...e){return i.useCallback(jY(...e),e)}function NY(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ae.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Sc(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return ae.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,TY(o,...t)]}function TY(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var qo=globalThis?.document?i.useLayoutEffect:()=>{},_Y=i[" useId ".trim().toString()]||(()=>{}),OY=0;function AE(e){const[t,r]=i.useState(_Y());return qo(()=>{r(n=>n??String(OY++))},[e]),t?`radix-${t}`:""}var DY=i[" useInsertionEffect ".trim().toString()]||qo;function IE({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=PY({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=MY(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function PY({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return DY(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function MY(e){return typeof e=="function"}var AY=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Le=AY.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ae.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function IY(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function co(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function FY(e,t=globalThis?.document){const r=co(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var LY="DismissableLayer",Fd="dismissableLayer.update",WY="dismissableLayer.pointerDownOutside",zY="dismissableLayer.focusOutside",Pg,FE=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),LE=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(FE),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Ct(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=UY(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=BY(R=>{const C=R.target;[...l.branches].some(M=>M.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return FY(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Pg=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Mg(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Pg)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Mg())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Fd,R),()=>document.removeEventListener(Fd,R)},[]),ae.jsx(Le.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,S.onPointerDownCapture)})});LE.displayName=LY;var $Y="DismissableLayerBranch",YY=i.forwardRef((e,t)=>{const r=i.useContext(FE),n=i.useRef(null),o=Ct(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ae.jsx(Le.div,{...e,ref:o})});YY.displayName=$Y;function UY(e,t=globalThis?.document){const r=co(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){WE(WY,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function BY(e,t=globalThis?.document){const r=co(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&WE(zY,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Mg(){const e=new CustomEvent(Fd);document.dispatchEvent(e)}function WE(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?IY(o,a):o.dispatchEvent(a)}var jl="focusScope.autoFocusOnMount",Nl="focusScope.autoFocusOnUnmount",Ag={bubbles:!1,cancelable:!0},KY="FocusScope",zE=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=co(o),u=co(a),p=i.useRef(null),v=Ct(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:pr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||pr(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&pr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Fg.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(jl,Ag);s.addEventListener(jl,l),s.dispatchEvent(g),g.defaultPrevented||(HY(ZY($E(s)),{select:!0}),document.activeElement===d&&pr(s))}return()=>{s.removeEventListener(jl,l),setTimeout(()=>{const g=new CustomEvent(Nl,Ag);s.addEventListener(Nl,u),s.dispatchEvent(g),g.defaultPrevented||pr(d??document.body,{select:!0}),s.removeEventListener(Nl,u),Fg.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=VY(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&pr(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&pr(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return ae.jsx(Le.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});zE.displayName=KY;function HY(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(pr(n,{select:t}),document.activeElement!==r)return}function VY(e){const t=$E(e),r=Ig(t,e),n=Ig(t.reverse(),e);return[r,n]}function $E(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ig(e,t){for(const r of e)if(!XY(r,{upTo:t}))return r}function XY(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function GY(e){return e instanceof HTMLInputElement&&"select"in e}function pr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&GY(e)&&t&&e.select()}}var Fg=qY();function qY(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Lg(e,t),e.unshift(t)},remove(t){e=Lg(e,t),e[0]?.resume()}}}function Lg(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function ZY(e){return e.filter(t=>t.tagName!=="A")}var JY="Portal",QY=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);qo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(ae.jsx(Le.div,{...n,ref:t}),c):null});QY.displayName=JY;function e9(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Cc=e=>{const{present:t,children:r}=e,n=t9(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Ct(n.ref,r9(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Cc.displayName="Presence";function t9(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=e9(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Os(n.current);a.current=s==="mounted"?l:"none"},[s]),qo(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Os(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),qo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Os(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Os(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Os(e){return e?.animationName||"none"}function r9(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Tl=0;function n9(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Wg()),document.body.insertAdjacentElement("beforeend",e[1]??Wg()),Tl++,()=>{Tl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Tl--}},[])}function Wg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var pt=function(){return pt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},pt.apply(this,arguments)};function YE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function o9(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var bi="right-scroll-bar-position",yi="width-before-scroll-bar",a9="with-scroll-bars-hidden",s9="--removed-body-scroll-bar-size";function _l(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function i9(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var c9=typeof window<"u"?i.useLayoutEffect:i.useEffect,zg=new WeakMap;function u9(e,t){var r=i9(null,function(n){return e.forEach(function(o){return _l(o,n)})});return c9(function(){var n=zg.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||_l(s,null)}),a.forEach(function(s){o.has(s)||_l(s,c)})}zg.set(r,e)},[e]),r}function l9(e){return e}function d9(e,t){t===void 0&&(t=l9);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function f9(e){e===void 0&&(e={});var t=d9(null);return t.options=pt({async:!0,ssr:!1},e),t}var UE=function(e){var t=e.sideCar,r=YE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,pt({},r))};UE.isSideCarExport=!0;function p9(e,t){return e.useMedium(t),UE}var BE=f9(),Ol=function(){},jc=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Ol,onWheelCapture:Ol,onTouchMoveCapture:Ol}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=YE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=u9([r,t]),R=pt(pt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:BE,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),pt(pt({},R),{ref:T})):i.createElement(y,pt({},R,{className:m,ref:T}),s))});jc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jc.classNames={fullWidth:yi,zeroRight:bi};var m9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function v9(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=m9();return t&&e.setAttribute("nonce",t),e}function g9(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function h9(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var b9=function(){var e=0,t=null;return{add:function(r){e==0&&(t=v9())&&(g9(t,r),h9(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y9=function(){var e=b9();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},KE=function(){var e=y9(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},w9={left:0,top:0,right:0,gap:0},Dl=function(e){return parseInt(e||"",10)||0},x9=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Dl(r),Dl(n),Dl(o)]},E9=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return w9;var t=x9(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},k9=KE(),Zn="data-scroll-locked",R9=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
717
+ .`.concat(a9,` {
718
+ overflow: hidden `).concat(n,`;
719
+ padding-right: `).concat(s,"px ").concat(n,`;
720
+ }
721
+ body[`).concat(Zn,`] {
722
+ overflow: hidden `).concat(n,`;
723
+ overscroll-behavior: contain;
724
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
725
+ padding-left: `.concat(o,`px;
726
+ padding-top: `).concat(a,`px;
727
+ padding-right: `).concat(c,`px;
728
+ margin-left:0;
729
+ margin-top:0;
730
+ margin-right: `).concat(s,"px ").concat(n,`;
731
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
732
+ }
733
+
734
+ .`).concat(bi,` {
735
+ right: `).concat(s,"px ").concat(n,`;
736
+ }
737
+
738
+ .`).concat(yi,` {
739
+ margin-right: `).concat(s,"px ").concat(n,`;
740
+ }
741
+
742
+ .`).concat(bi," .").concat(bi,` {
743
+ right: 0 `).concat(n,`;
744
+ }
745
+
746
+ .`).concat(yi," .").concat(yi,` {
747
+ margin-right: 0 `).concat(n,`;
748
+ }
749
+
750
+ body[`).concat(Zn,`] {
751
+ `).concat(s9,": ").concat(s,`px;
752
+ }
753
+ `)},$g=function(){var e=parseInt(document.body.getAttribute(Zn)||"0",10);return isFinite(e)?e:0},S9=function(){i.useEffect(function(){return document.body.setAttribute(Zn,($g()+1).toString()),function(){var e=$g()-1;e<=0?document.body.removeAttribute(Zn):document.body.setAttribute(Zn,e.toString())}},[])},C9=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;S9();var a=i.useMemo(function(){return E9(o)},[o]);return i.createElement(k9,{styles:R9(a,!t,o,r?"":"!important")})},Ld=!1;if(typeof window<"u")try{var Ds=Object.defineProperty({},"passive",{get:function(){return Ld=!0,!0}});window.addEventListener("test",Ds,Ds),window.removeEventListener("test",Ds,Ds)}catch{Ld=!1}var _n=Ld?{passive:!1}:!1,j9=function(e){return e.tagName==="TEXTAREA"},HE=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!j9(e)&&r[t]==="visible")},N9=function(e){return HE(e,"overflowY")},T9=function(e){return HE(e,"overflowX")},Yg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=VE(e,n);if(o){var a=XE(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},_9=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},O9=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},VE=function(e,t){return e==="v"?N9(t):T9(t)},XE=function(e,t){return e==="v"?_9(t):O9(t)},D9=function(e,t){return e==="h"&&t==="rtl"?-1:1},P9=function(e,t,r,n,o){var a=D9(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=XE(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&VE(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Ps=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ug=function(e){return[e.deltaX,e.deltaY]},Bg=function(e){return e&&"current"in e?e.current:e},M9=function(e,t){return e[0]===t[0]&&e[1]===t[1]},A9=function(e){return`
754
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
755
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
756
+ `)},I9=0,On=[];function F9(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(I9++)[0],a=i.useState(KE)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=o9([e.lockRef.current],(e.shards||[]).map(Bg)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=Ps(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=Yg(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=Yg(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return P9(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!On.length||On[On.length-1]!==a)){var b="deltaY"in g?Ug(g):Ps(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&M9(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Bg).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:L9(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Ps(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Ug(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Ps(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return On.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,_n),document.addEventListener("touchmove",m,_n),document.addEventListener("touchstart",u,_n),function(){On=On.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,_n),document.removeEventListener("touchmove",m,_n),document.removeEventListener("touchstart",u,_n)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:A9(o)}):null,h?i.createElement(C9,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function L9(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const W9=p9(BE,F9);var GE=i.forwardRef(function(e,t){return i.createElement(jc,pt({},e,{ref:t,sideCar:W9}))});GE.classNames=jc.classNames;var z9=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dn=new WeakMap,Ms=new WeakMap,As={},Pl=0,qE=function(e){return e&&(e.host||qE(e.parentNode))},$9=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=qE(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Y9=function(e,t,r,n){var o=$9(t,Array.isArray(e)?e:[e]);As[r]||(As[r]=new WeakMap);var a=As[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Dn.get(v)||0)+1,g=(a.get(v)||0)+1;Dn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Ms.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),Pl++,function(){c.forEach(function(p){var v=Dn.get(p)-1,h=a.get(p)-1;Dn.set(p,v),a.set(p,h),v||(Ms.has(p)||p.removeAttribute(n),Ms.delete(p)),h||p.removeAttribute(r)}),Pl--,Pl||(Dn=new WeakMap,Dn=new WeakMap,Ms=new WeakMap,As={})}},U9=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=z9(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Y9(n,o,r,"aria-hidden")):function(){return null}},ZE="Dialog",[JE]=Sc(ZE),[h7,zt]=JE(ZE),QE="DialogTrigger",B9=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(QE,r),a=Ct(t,o.triggerRef);return ae.jsx(Le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Kf(o.open),...n,ref:a,onClick:Se(e.onClick,o.onOpenToggle)})});B9.displayName=QE;var K9="DialogPortal",[b7,e1]=JE(K9,{forceMount:void 0}),Ui="DialogOverlay",H9=i.forwardRef((e,t)=>{const r=e1(Ui,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=zt(Ui,e.__scopeDialog);return a.modal?ae.jsx(Cc,{present:n||a.open,children:ae.jsx(X9,{...o,ref:t})}):null});H9.displayName=Ui;var V9=Z.createSlot("DialogOverlay.RemoveScroll"),X9=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(Ui,r);return ae.jsx(GE,{as:V9,allowPinchZoom:!0,shards:[o.contentRef],children:ae.jsx(Le.div,{"data-state":Kf(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),zr="DialogContent",G9=i.forwardRef((e,t)=>{const r=e1(zr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=zt(zr,e.__scopeDialog);return ae.jsx(Cc,{present:n||a.open,children:a.modal?ae.jsx(q9,{...o,ref:t}):ae.jsx(Z9,{...o,ref:t})})});G9.displayName=zr;var q9=i.forwardRef((e,t)=>{const r=zt(zr,e.__scopeDialog),n=i.useRef(null),o=Ct(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return U9(a)},[]),ae.jsx(t1,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Se(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Se(e.onFocusOutside,a=>a.preventDefault())})}),Z9=i.forwardRef((e,t)=>{const r=zt(zr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ae.jsx(t1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),t1=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=zt(zr,r),m=i.useRef(null),l=Ct(t,m);return n9(),ae.jsxs(ae.Fragment,{children:[ae.jsx(zE,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ae.jsx(LE,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Kf(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),ae.jsxs(ae.Fragment,{children:[ae.jsx(t3,{titleId:s.titleId}),ae.jsx(n3,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Bf="DialogTitle",J9=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(Bf,r);return ae.jsx(Le.h2,{id:o.titleId,...n,ref:t})});J9.displayName=Bf;var r1="DialogDescription",Q9=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(r1,r);return ae.jsx(Le.p,{id:o.descriptionId,...n,ref:t})});Q9.displayName=r1;var n1="DialogClose",e3=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(n1,r);return ae.jsx(Le.button,{type:"button",...n,ref:t,onClick:Se(e.onClick,()=>o.onOpenChange(!1))})});e3.displayName=n1;function Kf(e){return e?"open":"closed"}var o1="DialogTitleWarning",[y7,a1]=NY(o1,{contentName:zr,titleName:Bf,docsSlug:"dialog"}),t3=({titleId:e})=>{const t=a1(o1),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
757
+
758
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
759
+
760
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},r3="DialogDescriptionWarning",n3=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${a1(r3).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ml={exports:{}},_o={};/**
761
+ * @license React
762
+ * react-jsx-runtime.production.js
763
+ *
764
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
765
+ *
766
+ * This source code is licensed under the MIT license found in the
767
+ * LICENSE file in the root directory of this source tree.
768
+ */var Kg;function o3(){if(Kg)return _o;Kg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return _o.Fragment=t,_o.jsx=r,_o.jsxs=r,_o}var Is={};/**
769
+ * @license React
770
+ * react-jsx-runtime.development.js
771
+ *
772
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
773
+ *
774
+ * This source code is licensed under the MIT license found in the
775
+ * LICENSE file in the root directory of this source tree.
776
+ */var Hg;function a3(){return Hg||(Hg=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,_,F,A,G,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,_,F,A,G,X){var O=k.children;if(O!==void 0)if(_)if(K(O)){for(_=0;_<O.length;_++)p(O[_]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(k,"key")){O=e(f);var $=Object.keys(k).filter(function(me){return me!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[O+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
777
+ let props = %s;
778
+ <%s {...props} />
779
+ React keys must be passed directly to JSX without using spread:
780
+ let props = %s;
781
+ <%s key={someKey} {...props} />`,_,O,$,O),V[O+_]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),c(k)&&(r(k.key),O=""+k.key),"key"in k){N={};for(var q in k)q!=="key"&&(N[q]=k[q])}else N=k;return O&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),N,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};Is.Fragment=d,Is.jsx=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},Is.jsxs=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),Is}var Vg;function s3(){return Vg||(Vg=1,process.env.NODE_ENV==="production"?Ml.exports=o3():Ml.exports=a3()),Ml.exports}var se=s3();P.createContext({locale:void 0});var i3=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(x,h)}),p(h)}function p(h){s&&l.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${i3.toString()})(${u})`}})});ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ve.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ce(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Xg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function c3(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Xg(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Xg(e[o],null)}}}}function jt(...e){return i.useCallback(c3(...e),e)}function u3(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return se.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Nc(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return se.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,l3(o,...t)]}function l3(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Zo=globalThis?.document?i.useLayoutEffect:()=>{},d3=i[" useId ".trim().toString()]||(()=>{}),f3=0;function s1(e){const[t,r]=i.useState(d3());return Zo(()=>{r(n=>n??String(f3++))},[e]),t?`radix-${t}`:""}var p3=i[" useInsertionEffect ".trim().toString()]||Zo;function i1({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=m3({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const p=v3(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,l]}function m3({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return p3(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function v3(e){return typeof e=="function"}var g3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=g3.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),se.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function h3(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function uo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function b3(e,t=globalThis?.document){const r=uo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var y3="DismissableLayer",Wd="dismissableLayer.update",w3="dismissableLayer.pointerDownOutside",x3="dismissableLayer.focusOutside",Gg,c1=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),u1=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(c1),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=jt(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=R3(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=S3(R=>{const C=R.target;[...l.branches].some(M=>M.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return b3(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Gg=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),qg(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Gg)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),qg())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Wd,R),()=>document.removeEventListener(Wd,R)},[]),se.jsx(We.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Ce(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ce(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ce(e.onPointerDownCapture,S.onPointerDownCapture)})});u1.displayName=y3;var E3="DismissableLayerBranch",k3=i.forwardRef((e,t)=>{const r=i.useContext(c1),n=i.useRef(null),o=jt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),se.jsx(We.div,{...e,ref:o})});k3.displayName=E3;function R3(e,t=globalThis?.document){const r=uo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){l1(w3,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function S3(e,t=globalThis?.document){const r=uo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&l1(x3,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function qg(){const e=new CustomEvent(Wd);document.dispatchEvent(e)}function l1(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?h3(o,a):o.dispatchEvent(a)}var Al="focusScope.autoFocusOnMount",Il="focusScope.autoFocusOnUnmount",Zg={bubbles:!1,cancelable:!0},C3="FocusScope",d1=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=uo(o),u=uo(a),p=i.useRef(null),v=jt(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:mr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||mr(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&mr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Qg.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Al,Zg);s.addEventListener(Al,l),s.dispatchEvent(g),g.defaultPrevented||(j3(D3(f1(s)),{select:!0}),document.activeElement===d&&mr(s))}return()=>{s.removeEventListener(Al,l),setTimeout(()=>{const g=new CustomEvent(Il,Zg);s.addEventListener(Il,u),s.dispatchEvent(g),g.defaultPrevented||mr(d??document.body,{select:!0}),s.removeEventListener(Il,u),Qg.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=N3(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&mr(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&mr(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return se.jsx(We.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});d1.displayName=C3;function j3(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(mr(n,{select:t}),document.activeElement!==r)return}function N3(e){const t=f1(e),r=Jg(t,e),n=Jg(t.reverse(),e);return[r,n]}function f1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Jg(e,t){for(const r of e)if(!T3(r,{upTo:t}))return r}function T3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _3(e){return e instanceof HTMLInputElement&&"select"in e}function mr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&_3(e)&&t&&e.select()}}var Qg=O3();function O3(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=eh(e,t),e.unshift(t)},remove(t){e=eh(e,t),e[0]?.resume()}}}function eh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function D3(e){return e.filter(t=>t.tagName!=="A")}var P3="Portal",M3=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Zo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(se.jsx(We.div,{...n,ref:t}),c):null});M3.displayName=P3;function A3(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Tc=e=>{const{present:t,children:r}=e,n=I3(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=jt(n.ref,F3(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Tc.displayName="Presence";function I3(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=A3(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Fs(n.current);a.current=s==="mounted"?l:"none"},[s]),Zo(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Fs(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Zo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Fs(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Fs(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Fs(e){return e?.animationName||"none"}function F3(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Fl=0;function L3(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??th()),document.body.insertAdjacentElement("beforeend",e[1]??th()),Fl++,()=>{Fl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Fl--}},[])}function th(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var mt=function(){return mt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},mt.apply(this,arguments)};function p1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function W3(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var wi="right-scroll-bar-position",xi="width-before-scroll-bar",z3="with-scroll-bars-hidden",$3="--removed-body-scroll-bar-size";function Ll(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Y3(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var U3=typeof window<"u"?i.useLayoutEffect:i.useEffect,rh=new WeakMap;function B3(e,t){var r=Y3(null,function(n){return e.forEach(function(o){return Ll(o,n)})});return U3(function(){var n=rh.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Ll(s,null)}),a.forEach(function(s){o.has(s)||Ll(s,c)})}rh.set(r,e)},[e]),r}function K3(e){return e}function H3(e,t){t===void 0&&(t=K3);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function V3(e){e===void 0&&(e={});var t=H3(null);return t.options=mt({async:!0,ssr:!1},e),t}var m1=function(e){var t=e.sideCar,r=p1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,mt({},r))};m1.isSideCarExport=!0;function X3(e,t){return e.useMedium(t),m1}var v1=V3(),Wl=function(){},_c=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Wl,onWheelCapture:Wl,onTouchMoveCapture:Wl}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=p1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=B3([r,t]),R=mt(mt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:v1,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),mt(mt({},R),{ref:T})):i.createElement(y,mt({},R,{className:m,ref:T}),s))});_c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_c.classNames={fullWidth:xi,zeroRight:wi};var G3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function q3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=G3();return t&&e.setAttribute("nonce",t),e}function Z3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function J3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Q3=function(){var e=0,t=null;return{add:function(r){e==0&&(t=q3())&&(Z3(t,r),J3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eU=function(){var e=Q3();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},g1=function(){var e=eU(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},tU={left:0,top:0,right:0,gap:0},zl=function(e){return parseInt(e||"",10)||0},rU=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[zl(r),zl(n),zl(o)]},nU=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tU;var t=rU(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},oU=g1(),Jn="data-scroll-locked",aU=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
782
+ .`.concat(z3,` {
783
+ overflow: hidden `).concat(n,`;
784
+ padding-right: `).concat(s,"px ").concat(n,`;
785
+ }
786
+ body[`).concat(Jn,`] {
787
+ overflow: hidden `).concat(n,`;
788
+ overscroll-behavior: contain;
789
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
790
+ padding-left: `.concat(o,`px;
791
+ padding-top: `).concat(a,`px;
792
+ padding-right: `).concat(c,`px;
793
+ margin-left:0;
794
+ margin-top:0;
795
+ margin-right: `).concat(s,"px ").concat(n,`;
796
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
797
+ }
798
+
799
+ .`).concat(wi,` {
800
+ right: `).concat(s,"px ").concat(n,`;
801
+ }
802
+
803
+ .`).concat(xi,` {
804
+ margin-right: `).concat(s,"px ").concat(n,`;
805
+ }
806
+
807
+ .`).concat(wi," .").concat(wi,` {
808
+ right: 0 `).concat(n,`;
809
+ }
810
+
811
+ .`).concat(xi," .").concat(xi,` {
812
+ margin-right: 0 `).concat(n,`;
813
+ }
814
+
815
+ body[`).concat(Jn,`] {
816
+ `).concat($3,": ").concat(s,`px;
817
+ }
818
+ `)},nh=function(){var e=parseInt(document.body.getAttribute(Jn)||"0",10);return isFinite(e)?e:0},sU=function(){i.useEffect(function(){return document.body.setAttribute(Jn,(nh()+1).toString()),function(){var e=nh()-1;e<=0?document.body.removeAttribute(Jn):document.body.setAttribute(Jn,e.toString())}},[])},iU=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;sU();var a=i.useMemo(function(){return nU(o)},[o]);return i.createElement(oU,{styles:aU(a,!t,o,r?"":"!important")})},zd=!1;if(typeof window<"u")try{var Ls=Object.defineProperty({},"passive",{get:function(){return zd=!0,!0}});window.addEventListener("test",Ls,Ls),window.removeEventListener("test",Ls,Ls)}catch{zd=!1}var Pn=zd?{passive:!1}:!1,cU=function(e){return e.tagName==="TEXTAREA"},h1=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!cU(e)&&r[t]==="visible")},uU=function(e){return h1(e,"overflowY")},lU=function(e){return h1(e,"overflowX")},oh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=b1(e,n);if(o){var a=y1(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},dU=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},fU=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},b1=function(e,t){return e==="v"?uU(t):lU(t)},y1=function(e,t){return e==="v"?dU(t):fU(t)},pU=function(e,t){return e==="h"&&t==="rtl"?-1:1},mU=function(e,t,r,n,o){var a=pU(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=y1(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&b1(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Ws=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ah=function(e){return[e.deltaX,e.deltaY]},sh=function(e){return e&&"current"in e?e.current:e},vU=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gU=function(e){return`
819
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
820
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
821
+ `)},hU=0,Mn=[];function bU(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(hU++)[0],a=i.useState(g1)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=W3([e.lockRef.current],(e.shards||[]).map(sh)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=Ws(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=oh(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=oh(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return mU(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!Mn.length||Mn[Mn.length-1]!==a)){var b="deltaY"in g?ah(g):Ws(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&vU(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(sh).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:yU(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Ws(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,ah(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Ws(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Mn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Pn),document.addEventListener("touchmove",m,Pn),document.addEventListener("touchstart",u,Pn),function(){Mn=Mn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,Pn),document.removeEventListener("touchmove",m,Pn),document.removeEventListener("touchstart",u,Pn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:gU(o)}):null,h?i.createElement(iU,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yU(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const wU=X3(v1,bU);var w1=i.forwardRef(function(e,t){return i.createElement(_c,mt({},e,{ref:t,sideCar:wU}))});w1.classNames=_c.classNames;var xU=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},An=new WeakMap,zs=new WeakMap,$s={},$l=0,x1=function(e){return e&&(e.host||x1(e.parentNode))},EU=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=x1(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},kU=function(e,t,r,n){var o=EU(t,Array.isArray(e)?e:[e]);$s[r]||($s[r]=new WeakMap);var a=$s[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(An.get(v)||0)+1,g=(a.get(v)||0)+1;An.set(v,d),a.set(v,g),c.push(v),d===1&&x&&zs.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),$l++,function(){c.forEach(function(p){var v=An.get(p)-1,h=a.get(p)-1;An.set(p,v),a.set(p,h),v||(zs.has(p)||p.removeAttribute(n),zs.delete(p)),h||p.removeAttribute(r)}),$l--,$l||(An=new WeakMap,An=new WeakMap,zs=new WeakMap,$s={})}},RU=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=xU(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),kU(n,o,r,"aria-hidden")):function(){return null}},E1="Dialog",[k1]=Nc(E1),[w7,$t]=k1(E1),R1="DialogTrigger",SU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(R1,r),a=jt(t,o.triggerRef);return se.jsx(We.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vf(o.open),...n,ref:a,onClick:Ce(e.onClick,o.onOpenToggle)})});SU.displayName=R1;var CU="DialogPortal",[x7,S1]=k1(CU,{forceMount:void 0}),Bi="DialogOverlay",jU=i.forwardRef((e,t)=>{const r=S1(Bi,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=$t(Bi,e.__scopeDialog);return a.modal?se.jsx(Tc,{present:n||a.open,children:se.jsx(TU,{...o,ref:t})}):null});jU.displayName=Bi;var NU=Z.createSlot("DialogOverlay.RemoveScroll"),TU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(Bi,r);return se.jsx(w1,{as:NU,allowPinchZoom:!0,shards:[o.contentRef],children:se.jsx(We.div,{"data-state":Vf(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),$r="DialogContent",_U=i.forwardRef((e,t)=>{const r=S1($r,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=$t($r,e.__scopeDialog);return se.jsx(Tc,{present:n||a.open,children:a.modal?se.jsx(OU,{...o,ref:t}):se.jsx(DU,{...o,ref:t})})});_U.displayName=$r;var OU=i.forwardRef((e,t)=>{const r=$t($r,e.__scopeDialog),n=i.useRef(null),o=jt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return RU(a)},[]),se.jsx(C1,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ce(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ce(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Ce(e.onFocusOutside,a=>a.preventDefault())})}),DU=i.forwardRef((e,t)=>{const r=$t($r,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return se.jsx(C1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),C1=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=$t($r,r),m=i.useRef(null),l=jt(t,m);return L3(),se.jsxs(se.Fragment,{children:[se.jsx(d1,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:se.jsx(u1,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Vf(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),se.jsxs(se.Fragment,{children:[se.jsx(IU,{titleId:s.titleId}),se.jsx(LU,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Hf="DialogTitle",PU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(Hf,r);return se.jsx(We.h2,{id:o.titleId,...n,ref:t})});PU.displayName=Hf;var j1="DialogDescription",MU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(j1,r);return se.jsx(We.p,{id:o.descriptionId,...n,ref:t})});MU.displayName=j1;var N1="DialogClose",AU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(N1,r);return se.jsx(We.button,{type:"button",...n,ref:t,onClick:Ce(e.onClick,()=>o.onOpenChange(!1))})});AU.displayName=N1;function Vf(e){return e?"open":"closed"}var T1="DialogTitleWarning",[E7,_1]=u3(T1,{contentName:$r,titleName:Hf,docsSlug:"dialog"}),IU=({titleId:e})=>{const t=_1(T1),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
822
+
823
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
824
+
825
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},FU="DialogDescriptionWarning",LU=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_1(FU).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Yl={exports:{}},Oo={};/**
826
+ * @license React
827
+ * react-jsx-runtime.production.js
828
+ *
829
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
830
+ *
831
+ * This source code is licensed under the MIT license found in the
832
+ * LICENSE file in the root directory of this source tree.
833
+ */var ih;function WU(){if(ih)return Oo;ih=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return Oo.Fragment=t,Oo.jsx=r,Oo.jsxs=r,Oo}var Ys={};/**
834
+ * @license React
835
+ * react-jsx-runtime.development.js
836
+ *
837
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
838
+ *
839
+ * This source code is licensed under the MIT license found in the
840
+ * LICENSE file in the root directory of this source tree.
841
+ */var ch;function zU(){return ch||(ch=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case R:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function m(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,_,F,A,G,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,_,F,A,G,X){var O=k.children;if(O!==void 0)if(_)if(K(O)){for(_=0;_<O.length;_++)p(O[_]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(O);if(B.call(k,"key")){O=e(f);var $=Object.keys(k).filter(function(me){return me!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[O+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
842
+ let props = %s;
843
+ <%s {...props} />
844
+ React keys must be passed directly to JSX without using spread:
845
+ let props = %s;
846
+ <%s key={someKey} {...props} />`,_,O,$,O),V[O+_]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),c(k)&&(r(k.key),O=""+k.key),"key"in k){N={};for(var q in k)q!=="key"&&(N[q]=k[q])}else N=k;return O&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,O,A,F,o(),N,G,X)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};Ys.Fragment=d,Ys.jsx=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},Ys.jsxs=function(f,k,N,_,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,_,F,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),Ys}var uh;function $U(){return uh||(uh=1,process.env.NODE_ENV==="production"?Yl.exports=WU():Yl.exports=zU()),Yl.exports}var fe=$U();const YU={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},UU=(e,t,r)=>{let n;const o=YU[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Ul(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const BU={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},KU={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},HU={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},VU={date:Ul({formats:BU,defaultWidth:"full"}),time:Ul({formats:KU,defaultWidth:"full"}),dateTime:Ul({formats:HU,defaultWidth:"full"})},XU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},GU=(e,t,r,n)=>XU[e];function Do(e){return(t,r)=>{const n=r?.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,s=r?.width?String(r.width):c;o=e.formattingValues[s]||e.formattingValues[c]}else{const c=e.defaultWidth,s=r?.width?String(r.width):e.defaultWidth;o=e.values[s]||e.values[c]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const qU={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ZU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},JU={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},QU={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},rB=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},nB={ordinalNumber:rB,era:Do({values:qU,defaultWidth:"wide"}),quarter:Do({values:ZU,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Do({values:JU,defaultWidth:"wide"}),day:Do({values:QU,defaultWidth:"wide"}),dayPeriod:Do({values:eB,defaultWidth:"wide",formattingValues:tB,defaultFormattingWidth:"wide"})};function Po(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const c=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(s)?aB(s,p=>p.test(c)):oB(s,p=>p.test(c));let l;l=e.valueCallback?e.valueCallback(m):m,l=r.valueCallback?r.valueCallback(l):l;const u=t.slice(c.length);return{value:l,rest:u}}}function oB(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function aB(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function sB(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],a=t.match(e.parsePattern);if(!a)return null;let c=e.valueCallback?e.valueCallback(a[0]):a[0];c=r.valueCallback?r.valueCallback(c):c;const s=t.slice(o.length);return{value:c,rest:s}}}const iB=/^(\d+)(th|st|nd|rd)?/i,cB=/\d+/i,uB={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lB={any:[/^b/i,/^(a|c)/i]},dB={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fB={any:[/1/i,/2/i,/3/i,/4/i]},pB={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},mB={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},vB={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},gB={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},hB={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bB={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},yB={ordinalNumber:sB({matchPattern:iB,parsePattern:cB,valueCallback:e=>parseInt(e,10)}),era:Po({matchPatterns:uB,defaultMatchWidth:"wide",parsePatterns:lB,defaultParseWidth:"any"}),quarter:Po({matchPatterns:dB,defaultMatchWidth:"wide",parsePatterns:fB,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Po({matchPatterns:pB,defaultMatchWidth:"wide",parsePatterns:mB,defaultParseWidth:"any"}),day:Po({matchPatterns:vB,defaultMatchWidth:"wide",parsePatterns:gB,defaultParseWidth:"any"}),dayPeriod:Po({matchPatterns:hB,defaultMatchWidth:"any",parsePatterns:bB,defaultParseWidth:"any"})},O1={code:"en-US",formatDistance:UU,formatLong:VU,formatRelative:GU,localize:nB,match:yB,options:{weekStartsOn:0,firstWeekContainsDate:1}};P.createContext({locale:void 0});ve.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function wB(e,t,r="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:r}).format(t).split(/\s/g).slice(2).join(" ")}const xB={},Mo={};function jr(e,t){try{const r=(xB[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in Mo?Mo[r]:lh(r,r.split(":"))}catch{if(e in Mo)return Mo[e];const r=e?.match(EB);return r?lh(e,r.slice(1)):NaN}}const EB=/([+-]\d\d):?(\d\d)?/;function lh(e,t){const r=+(t[0]||0),n=+(t[1]||0),o=+(t[2]||0)/60;return Mo[e]=r*60+n>0?r*60+n+o:r*60-n-o}class gt extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(jr(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),D1(this),$d(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new gt(...r,t):new gt(Date.now(),t)}withTimeZone(t){return new gt(+this,t)}getTimezoneOffset(){const t=-jr(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),$d(this),+this}[Symbol.for("constructDateFrom")](t){return new gt(+new Date(t),this.timeZone)}}const dh=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!dh.test(e))return;const t=e.replace(dh,"$1UTC");gt.prototype[t]&&(e.startsWith("get")?gt.prototype[e]=function(){return this.internal[t]()}:(gt.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),kB(this),+this},gt.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),$d(this),+this}))});function $d(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-jr(e.timeZone,e)*60))}function kB(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),D1(e)}function D1(e){const t=jr(e.timeZone,e),r=t>0?Math.floor(t):Math.ceil(t),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),a=-new Date(+n).getTimezoneOffset(),c=o-a,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();c&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+c);const m=o-r;m&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+m);const l=new Date(+e);l.setUTCSeconds(0);const u=o>0?l.getSeconds():(l.getSeconds()-60)%60,p=Math.round(-(jr(e.timeZone,e)*60))%60;(p||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+p),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+u));const v=jr(e.timeZone,e),h=v>0?Math.floor(v):Math.ceil(v),x=-new Date(+e).getTimezoneOffset()-h,d=h!==r,g=x-m;if(d&&g){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+g);const b=jr(e.timeZone,e),y=b>0?Math.floor(b):Math.ceil(b),w=h-y;w&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+w),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+w))}}class Nr extends gt{static tz(t,...r){return r.length?new Nr(...r,t):new Nr(Date.now(),t)}toISOString(){const[t,r,n]=this.tzComponents(),o=`${t}${r}:${n}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,r,n,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${n} ${r} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[r,n,o]=this.tzComponents();return`${t} GMT${r}${n}${o} (${wB(this.timeZone,this)})`}toLocaleString(t,r){return Date.prototype.toLocaleString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleDateString(t,r){return Date.prototype.toLocaleDateString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleTimeString(t,r){return Date.prototype.toLocaleTimeString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),r=t>0?"-":"+",n=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[r,n,o]}withTimeZone(t){return new Nr(+this,t)}[Symbol.for("constructDateFrom")](t){return new Nr(+new Date(t),this.timeZone)}}const P1=6048e5,RB=864e5,fh=Symbol.for("constructDateFrom");function he(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&fh in e?e[fh](t):e instanceof Date?new e.constructor(t):new Date(t)}function pe(e,t){return he(t||e,e)}function M1(e,t,r){const n=pe(e,r?.in);return isNaN(t)?he(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function A1(e,t,r){const n=pe(e,r?.in);if(isNaN(t))return he(e,NaN);if(!t)return n;const o=n.getDate(),a=he(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);const c=a.getDate();return o>=c?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}let SB={};function sa(){return SB}function lo(e,t){const r=sa(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=pe(e,t?.in),a=o.getDay(),c=(a<n?7:0)+a-n;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function Jo(e,t){return lo(e,{...t,weekStartsOn:1})}function I1(e,t){const r=pe(e,t?.in),n=r.getFullYear(),o=he(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=Jo(o),c=he(r,0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);const s=Jo(c);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function ph(e){const t=pe(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function go(e,...t){const r=he.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function Qo(e,t){const r=pe(e,t?.in);return r.setHours(0,0,0,0),r}function F1(e,t,r){const[n,o]=go(r?.in,e,t),a=Qo(n),c=Qo(o),s=+a-ph(a),m=+c-ph(c);return Math.round((s-m)/RB)}function CB(e,t){const r=I1(e,t),n=he(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Jo(n)}function jB(e,t,r){return M1(e,t*7,r)}function NB(e,t,r){return A1(e,t*12,r)}function TB(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=he.bind(null,o));const a=pe(o,n);(!r||r<a||isNaN(+a))&&(r=a)}),he(n,r||NaN)}function _B(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=he.bind(null,o));const a=pe(o,n);(!r||r>a||isNaN(+a))&&(r=a)}),he(n,r||NaN)}function OB(e,t,r){const[n,o]=go(r?.in,e,t);return+Qo(n)==+Qo(o)}function L1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function DB(e){return!(!L1(e)&&typeof e!="number"||isNaN(+pe(e)))}function PB(e,t,r){const[n,o]=go(r?.in,e,t),a=n.getFullYear()-o.getFullYear(),c=n.getMonth()-o.getMonth();return a*12+c}function MB(e,t){const r=pe(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function AB(e,t){const[r,n]=go(e,t.start,t.end);return{start:r,end:n}}function IB(e,t){const{start:r,end:n}=AB(t?.in,e);let o=+r>+n;const a=o?+r:+n,c=o?n:r;c.setHours(0,0,0,0),c.setDate(1);let s=1;const m=[];for(;+c<=a;)m.push(he(r,c)),c.setMonth(c.getMonth()+s);return o?m.reverse():m}function FB(e,t){const r=pe(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function LB(e,t){const r=pe(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}function W1(e,t){const r=pe(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function z1(e,t){const r=sa(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=pe(e,t?.in),a=o.getDay(),c=(a<n?-7:0)+6-(a-n);return o.setDate(o.getDate()+c),o.setHours(23,59,59,999),o}function WB(e,t){return z1(e,{...t,weekStartsOn:1})}function zB(e,t){const r=pe(e,t?.in);return F1(r,W1(r))+1}function $1(e,t){const r=pe(e,t?.in),n=+Jo(r)-+CB(r);return Math.round(n/P1)+1}function Y1(e,t){const r=pe(e,t?.in),n=r.getFullYear(),o=sa(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=he(t?.in||e,0);c.setFullYear(n+1,0,a),c.setHours(0,0,0,0);const s=lo(c,t),m=he(t?.in||e,0);m.setFullYear(n,0,a),m.setHours(0,0,0,0);const l=lo(m,t);return+r>=+s?n+1:+r>=+l?n:n-1}function $B(e,t){const r=sa(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=Y1(e,t),a=he(t?.in||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),lo(a,t)}function U1(e,t){const r=pe(e,t?.in),n=+lo(r,t)-+$B(r,t);return Math.round(n/P1)+1}function ce(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const tr={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ce(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ce(r+1,2)},d(e,t){return ce(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return ce(e.getHours()%12||12,t.length)},H(e,t){return ce(e.getHours(),t.length)},m(e,t){return ce(e.getMinutes(),t.length)},s(e,t){return ce(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return ce(o,t.length)}},In={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mh={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return tr.y(e,t)},Y:function(e,t,r,n){const o=Y1(e,n),a=o>0?o:1-o;if(t==="YY"){const c=a%100;return ce(c,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):ce(a,t.length)},R:function(e,t){const r=I1(e);return ce(r,t.length)},u:function(e,t){const r=e.getFullYear();return ce(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ce(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ce(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return tr.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return ce(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=U1(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ce(o,t.length)},I:function(e,t,r){const n=$1(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):ce(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):tr.d(e,t)},D:function(e,t,r){const n=zB(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):ce(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ce(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ce(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return ce(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=In.noon:n===0?o=In.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=In.evening:n>=12?o=In.afternoon:n>=4?o=In.morning:o=In.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return tr.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):tr.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):ce(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):ce(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):tr.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):tr.s(e,t)},S:function(e,t){return tr.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return gh(n);case"XXXX":case"XX":return Cr(n);case"XXXXX":case"XXX":default:return Cr(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return gh(n);case"xxxx":case"xx":return Cr(n);case"xxxxx":case"xxx":default:return Cr(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+vh(n,":");case"OOOO":default:return"GMT"+Cr(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+vh(n,":");case"zzzz":default:return"GMT"+Cr(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return ce(n,t.length)},T:function(e,t,r){return ce(+e,t.length)}};function vh(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+ce(a,2)}function gh(e,t){return e%60===0?(e>0?"-":"+")+ce(Math.abs(e)/60,2):Cr(e,t)}function Cr(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=ce(Math.trunc(n/60),2),a=ce(n%60,2);return r+o+t+a}const hh=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},B1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},YB=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return hh(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",hh(n,t)).replace("{{time}}",B1(o,t))},UB={p:B1,P:YB},BB=/^D+$/,KB=/^Y+$/,HB=["D","DD","YY","YYYY"];function VB(e){return BB.test(e)}function XB(e){return KB.test(e)}function GB(e,t,r){const n=qB(e,t,r);if(console.warn(n),HB.includes(e))throw new RangeError(n)}function qB(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ZB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,JB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,QB=/^'([^]*?)'?$/,e6=/''/g,t6=/[a-zA-Z]/;function r6(e,t,r){const n=sa(),o=r?.locale??n.locale??O1,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=pe(e,r?.in);if(!DB(s))throw new RangeError("Invalid time value");let m=t.match(JB).map(u=>{const p=u[0];if(p==="p"||p==="P"){const v=UB[p];return v(u,o.formatLong)}return u}).join("").match(ZB).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const p=u[0];if(p==="'")return{isToken:!1,value:n6(u)};if(mh[p])return{isToken:!0,value:u};if(p.match(t6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(m=o.localize.preprocessor(s,m));const l={firstWeekContainsDate:a,weekStartsOn:c,locale:o};return m.map(u=>{if(!u.isToken)return u.value;const p=u.value;(!r?.useAdditionalWeekYearTokens&&XB(p)||!r?.useAdditionalDayOfYearTokens&&VB(p))&&GB(p,t,String(e));const v=mh[p[0]];return v(s,p,o.localize,l)}).join("")}function n6(e){const t=e.match(QB);return t?t[1].replace(e6,"'"):e}function o6(e,t){const r=pe(e,t?.in),n=r.getFullYear(),o=r.getMonth(),a=he(r,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}function a6(e,t){return pe(e,t?.in).getMonth()}function s6(e,t){return pe(e,t?.in).getFullYear()}function i6(e,t){return+pe(e)>+pe(t)}function c6(e,t){return+pe(e)<+pe(t)}function u6(e,t,r){const[n,o]=go(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function l6(e,t,r){const[n,o]=go(r?.in,e,t);return n.getFullYear()===o.getFullYear()}function d6(e,t,r){const n=pe(e,r?.in),o=n.getFullYear(),a=n.getDate(),c=he(e,0);c.setFullYear(o,t,15),c.setHours(0,0,0,0);const s=o6(c);return n.setMonth(t,Math.min(a,s)),n}function f6(e,t,r){const n=pe(e,r?.in);return isNaN(+n)?he(e,NaN):(n.setFullYear(t),n)}const bh=5,p6=4;function m6(e,t){const r=t.startOfMonth(e),n=r.getDay()>0?r.getDay():7,o=t.addDays(e,-n+1),a=t.addDays(o,bh*7-1);return t.getMonth(e)===t.getMonth(a)?bh:p6}function K1(e,t){const r=t.startOfMonth(e),n=r.getDay();return n===1?r:n===0?t.addDays(r,-6):t.addDays(r,-1*(n-1))}function v6(e,t){const r=K1(e,t),n=m6(e,t);return t.addDays(r,n*7-1)}class ea{constructor(t,r){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Nr.tz(this.options.timeZone):new this.Date,this.newDate=(n,o,a)=>this.overrides?.newDate?this.overrides.newDate(n,o,a):this.options.timeZone?new Nr(n,o,a,this.options.timeZone):new Date(n,o,a),this.addDays=(n,o)=>this.overrides?.addDays?this.overrides.addDays(n,o):M1(n,o),this.addMonths=(n,o)=>this.overrides?.addMonths?this.overrides.addMonths(n,o):A1(n,o),this.addWeeks=(n,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(n,o):jB(n,o),this.addYears=(n,o)=>this.overrides?.addYears?this.overrides.addYears(n,o):NB(n,o),this.differenceInCalendarDays=(n,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(n,o):F1(n,o),this.differenceInCalendarMonths=(n,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(n,o):PB(n,o),this.eachMonthOfInterval=n=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(n):IB(n),this.endOfBroadcastWeek=n=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(n):v6(n,this),this.endOfISOWeek=n=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(n):WB(n),this.endOfMonth=n=>this.overrides?.endOfMonth?this.overrides.endOfMonth(n):MB(n),this.endOfWeek=(n,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(n,o):z1(n,this.options),this.endOfYear=n=>this.overrides?.endOfYear?this.overrides.endOfYear(n):LB(n),this.format=(n,o,a)=>{const c=this.overrides?.format?this.overrides.format(n,o,this.options):r6(n,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(c):c},this.getISOWeek=n=>this.overrides?.getISOWeek?this.overrides.getISOWeek(n):$1(n),this.getMonth=(n,o)=>this.overrides?.getMonth?this.overrides.getMonth(n,this.options):a6(n,this.options),this.getYear=(n,o)=>this.overrides?.getYear?this.overrides.getYear(n,this.options):s6(n,this.options),this.getWeek=(n,o)=>this.overrides?.getWeek?this.overrides.getWeek(n,this.options):U1(n,this.options),this.isAfter=(n,o)=>this.overrides?.isAfter?this.overrides.isAfter(n,o):i6(n,o),this.isBefore=(n,o)=>this.overrides?.isBefore?this.overrides.isBefore(n,o):c6(n,o),this.isDate=n=>this.overrides?.isDate?this.overrides.isDate(n):L1(n),this.isSameDay=(n,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(n,o):OB(n,o),this.isSameMonth=(n,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(n,o):u6(n,o),this.isSameYear=(n,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(n,o):l6(n,o),this.max=n=>this.overrides?.max?this.overrides.max(n):TB(n),this.min=n=>this.overrides?.min?this.overrides.min(n):_B(n),this.setMonth=(n,o)=>this.overrides?.setMonth?this.overrides.setMonth(n,o):d6(n,o),this.setYear=(n,o)=>this.overrides?.setYear?this.overrides.setYear(n,o):f6(n,o),this.startOfBroadcastWeek=(n,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(n,this):K1(n,this),this.startOfDay=n=>this.overrides?.startOfDay?this.overrides.startOfDay(n):Qo(n),this.startOfISOWeek=n=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(n):Jo(n),this.startOfMonth=n=>this.overrides?.startOfMonth?this.overrides.startOfMonth(n):FB(n),this.startOfWeek=(n,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(n,this.options):lo(n,this.options),this.startOfYear=n=>this.overrides?.startOfYear?this.overrides.startOfYear(n):W1(n),this.options={locale:O1,...t},this.overrides=r}getDigitMap(){const{numerals:t="latn"}=this.options,r=new Intl.NumberFormat("en-US",{numberingSystem:t}),n={};for(let o=0;o<10;o++)n[o.toString()]=r.format(o);return n}replaceDigits(t){const r=this.getDigitMap();return t.replace(/\d/g,n=>r[n]||n)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&ea.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:r,timeZone:n,numerals:o}=this.options,a=r?.code;if(a&&ea.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:n,numberingSystem:o}).format(t)}catch{}const c=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,c)}}ea.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);new ea;var yh;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(yh||(yh={}));var wh;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(wh||(wh={}));var xh;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(xh||(xh={}));var Eh;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Eh||(Eh={}));P.createContext(void 0);var kh;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(kh||(kh={}));function wr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Rh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function g6(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Rh(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Rh(e[o],null)}}}}function Rr(...e){return i.useCallback(g6(...e),e)}function H1(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const l=p=>{const{scope:v,children:h,...x}=p,d=v?.[e]?.[m]||s,g=i.useMemo(()=>x,Object.values(x));return fe.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,h6(o,...t)]}function h6(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const l=s(o)[`__scope${m}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var b6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qt=b6.reduce((e,t)=>{const r=Z.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),fe.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function y6(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function fo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function w6(e,t=globalThis?.document){const r=fo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var x6="DismissableLayer",Yd="dismissableLayer.update",E6="dismissableLayer.pointerDownOutside",k6="dismissableLayer.focusOutside",Sh,V1=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),X1=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,l=i.useContext(V1),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Rr(t,R=>p(R)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,S=C6(R=>{const C=R.target,M=[...l.branches].some(L=>L.contains(C));!E||M||(o?.(R),c?.(R),R.defaultPrevented||s?.())},v),T=j6(R=>{const C=R.target;[...l.branches].some(M=>M.contains(C))||(a?.(R),c?.(R),R.defaultPrevented||s?.())},v);return w6(R=>{y===l.layers.size-1&&(n?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Sh=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ch(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Sh)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ch())},[u,l]),i.useEffect(()=>{const R=()=>h({});return document.addEventListener(Yd,R),()=>document.removeEventListener(Yd,R)},[]),fe.jsx(Qt.div,{...m,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:wr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:wr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:wr(e.onPointerDownCapture,S.onPointerDownCapture)})});X1.displayName=x6;var R6="DismissableLayerBranch",S6=i.forwardRef((e,t)=>{const r=i.useContext(V1),n=i.useRef(null),o=Rr(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),fe.jsx(Qt.div,{...e,ref:o})});S6.displayName=R6;function C6(e,t=globalThis?.document){const r=fo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){G1(E6,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function j6(e,t=globalThis?.document){const r=fo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&G1(k6,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Ch(){const e=new CustomEvent(Yd);document.dispatchEvent(e)}function G1(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?y6(o,a):o.dispatchEvent(a)}var Bl=0;function N6(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??jh()),document.body.insertAdjacentElement("beforeend",e[1]??jh()),Bl++,()=>{Bl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Bl--}},[])}function jh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Kl="focusScope.autoFocusOnMount",Hl="focusScope.autoFocusOnUnmount",Nh={bubbles:!1,cancelable:!0},T6="FocusScope",q1=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),l=fo(o),u=fo(a),p=i.useRef(null),v=Rr(t,d=>m(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?p.current=E:vr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||vr(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&vr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){_h.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Kl,Nh);s.addEventListener(Kl,l),s.dispatchEvent(g),g.defaultPrevented||(_6(A6(Z1(s)),{select:!0}),document.activeElement===d&&vr(s))}return()=>{s.removeEventListener(Kl,l),setTimeout(()=>{const g=new CustomEvent(Hl,Nh);s.addEventListener(Hl,u),s.dispatchEvent(g),g.defaultPrevented||vr(d??document.body,{select:!0}),s.removeEventListener(Hl,u),_h.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=O6(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&vr(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&vr(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return fe.jsx(Qt.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});q1.displayName=T6;function _6(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(vr(n,{select:t}),document.activeElement!==r)return}function O6(e){const t=Z1(e),r=Th(t,e),n=Th(t.reverse(),e);return[r,n]}function Z1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Th(e,t){for(const r of e)if(!D6(r,{upTo:t}))return r}function D6(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function P6(e){return e instanceof HTMLInputElement&&"select"in e}function vr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&P6(e)&&t&&e.select()}}var _h=M6();function M6(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Oh(e,t),e.unshift(t)},remove(t){e=Oh(e,t),e[0]?.resume()}}}function Oh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function A6(e){return e.filter(t=>t.tagName!=="A")}var po=globalThis?.document?i.useLayoutEffect:()=>{};const I6=["top","right","bottom","left"],Er=Math.min,ze=Math.max,Ki=Math.round,Us=Math.floor,bt=e=>({x:e,y:e}),F6={left:"right",right:"left",bottom:"top",top:"bottom"},L6={start:"end",end:"start"};function Ud(e,t,r){return ze(e,Er(t,r))}function Vt(e,t){return typeof e=="function"?e(t):e}function Xt(e){return e.split("-")[0]}function ho(e){return e.split("-")[1]}function Xf(e){return e==="x"?"y":"x"}function Gf(e){return e==="y"?"height":"width"}const W6=new Set(["top","bottom"]);function ht(e){return W6.has(Xt(e))?"y":"x"}function qf(e){return Xf(ht(e))}function z6(e,t,r){r===void 0&&(r=!1);const n=ho(e),o=qf(e),a=Gf(o);let c=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(c=Hi(c)),[c,Hi(c)]}function $6(e){const t=Hi(e);return[Bd(e),t,Bd(t)]}function Bd(e){return e.replace(/start|end/g,t=>L6[t])}const Dh=["left","right"],Ph=["right","left"],Y6=["top","bottom"],U6=["bottom","top"];function B6(e,t,r){switch(e){case"top":case"bottom":return r?t?Ph:Dh:t?Dh:Ph;case"left":case"right":return t?Y6:U6;default:return[]}}function K6(e,t,r,n){const o=ho(e);let a=B6(Xt(e),r==="start",n);return o&&(a=a.map(c=>c+"-"+o),t&&(a=a.concat(a.map(Bd)))),a}function Hi(e){return e.replace(/left|right|bottom|top/g,t=>F6[t])}function H6(e){return{top:0,right:0,bottom:0,left:0,...e}}function J1(e){return typeof e!="number"?H6(e):{top:e,right:e,bottom:e,left:e}}function Vi(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Mh(e,t,r){let{reference:n,floating:o}=e;const a=ht(t),c=qf(t),s=Gf(c),m=Xt(t),l=a==="y",u=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,v=n[s]/2-o[s]/2;let h;switch(m){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-o.width,y:p};break;default:h={x:n.x,y:n.y}}switch(ho(t)){case"start":h[c]-=v*(r&&l?-1:1);break;case"end":h[c]+=v*(r&&l?-1:1);break}return h}const V6=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:c}=r,s=a.filter(Boolean),m=await(c.isRTL==null?void 0:c.isRTL(t));let l=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:p}=Mh(l,n,m),v=n,h={},x=0;for(let d=0;d<s.length;d++){const{name:g,fn:b}=s[d],{x:y,y:w,data:E,reset:S}=await b({x:u,y:p,initialPlacement:n,placement:v,strategy:o,middlewareData:h,rects:l,platform:c,elements:{reference:e,floating:t}});u=y??u,p=w??p,h={...h,[g]:{...h[g],...E}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&(v=S.placement),S.rects&&(l=S.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:p}=Mh(l,v,m)),d=-1)}return{x:u,y:p,placement:v,strategy:o,middlewareData:h}};async function ta(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:c,elements:s,strategy:m}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:v=!1,padding:h=0}=Vt(t,e),x=J1(h),d=s[v?p==="floating"?"reference":"floating":p],g=Vi(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(d)))==null||r?d:d.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:m})),b=p==="floating"?{x:n,y:o,width:c.floating.width,height:c.floating.height}:c.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),w=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},E=Vi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:m}):b);return{top:(g.top-E.top+x.top)/w.y,bottom:(E.bottom-g.bottom+x.bottom)/w.y,left:(g.left-E.left+x.left)/w.x,right:(E.right-g.right+x.right)/w.x}}const X6=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:c,elements:s,middlewareData:m}=t,{element:l,padding:u=0}=Vt(e,t)||{};if(l==null)return{};const p=J1(u),v={x:r,y:n},h=qf(o),x=Gf(h),d=await c.getDimensions(l),g=h==="y",b=g?"top":"left",y=g?"bottom":"right",w=g?"clientHeight":"clientWidth",E=a.reference[x]+a.reference[h]-v[h]-a.floating[x],S=v[h]-a.reference[h],T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(l));let R=T?T[w]:0;(!R||!await(c.isElement==null?void 0:c.isElement(T)))&&(R=s.floating[w]||a.floating[x]);const C=E/2-S/2,M=R/2-d[x]/2-1,L=Er(p[b],M),I=Er(p[y],M),B=L,K=R-d[x]-I,z=R/2-d[x]/2+C,D=Ud(B,z,K),Y=!m.arrow&&ho(o)!=null&&z!==D&&a.reference[x]/2-(z<B?L:I)-d[x]/2<0,H=Y?z<B?z-B:z-K:0;return{[h]:v[h]+H,data:{[h]:D,centerOffset:z-D-H,...Y&&{alignmentOffset:H}},reset:Y}}}),G6=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:c,initialPlacement:s,platform:m,elements:l}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:d=!0,...g}=Vt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const b=Xt(o),y=ht(s),w=Xt(s)===s,E=await(m.isRTL==null?void 0:m.isRTL(l.floating)),S=v||(w||!d?[Hi(s)]:$6(s)),T=x!=="none";!v&&T&&S.push(...K6(s,d,x,E));const R=[s,...S],C=await ta(t,g),M=[];let L=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&M.push(C[b]),p){const z=z6(o,c,E);M.push(C[z[0]],C[z[1]])}if(L=[...L,{placement:o,overflows:M}],!M.every(z=>z<=0)){var I,B;const z=(((I=a.flip)==null?void 0:I.index)||0)+1,D=R[z];if(D&&(!(p==="alignment"&&y!==ht(D))||L.every(H=>ht(H.placement)===y?H.overflows[0]>0:!0)))return{data:{index:z,overflows:L},reset:{placement:D}};let Y=(B=L.filter(H=>H.overflows[0]<=0).sort((H,U)=>H.overflows[1]-U.overflows[1])[0])==null?void 0:B.placement;if(!Y)switch(h){case"bestFit":{var K;const H=(K=L.filter(U=>{if(T){const V=ht(U.placement);return V===y||V==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(V=>V>0).reduce((V,f)=>V+f,0)]).sort((U,V)=>U[1]-V[1])[0])==null?void 0:K[0];H&&(Y=H);break}case"initialPlacement":Y=s;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};function Ah(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ih(e){return I6.some(t=>e[t]>=0)}const q6=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Vt(e,t);switch(n){case"referenceHidden":{const a=await ta(t,{...o,elementContext:"reference"}),c=Ah(a,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Ih(c)}}}case"escaped":{const a=await ta(t,{...o,altBoundary:!0}),c=Ah(a,r.floating);return{data:{escapedOffsets:c,escaped:Ih(c)}}}default:return{}}}}},Q1=new Set(["left","top"]);async function Z6(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),c=Xt(r),s=ho(r),m=ht(r)==="y",l=Q1.has(c)?-1:1,u=a&&m?-1:1,p=Vt(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof x=="number"&&(h=s==="end"?x*-1:x),m?{x:h*u,y:v*l}:{x:v*l,y:h*u}}const J6=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:c,middlewareData:s}=t,m=await Z6(t,e);return c===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+m.x,y:a+m.y,data:{...m,placement:c}}}}},Q6=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:s={fn:g=>{let{x:b,y}=g;return{x:b,y}}},...m}=Vt(e,t),l={x:r,y:n},u=await ta(t,m),p=ht(Xt(o)),v=Xf(p);let h=l[v],x=l[p];if(a){const g=v==="y"?"top":"left",b=v==="y"?"bottom":"right",y=h+u[g],w=h-u[b];h=Ud(y,h,w)}if(c){const g=p==="y"?"top":"left",b=p==="y"?"bottom":"right",y=x+u[g],w=x-u[b];x=Ud(y,x,w)}const d=s.fn({...t,[v]:h,[p]:x});return{...d,data:{x:d.x-r,y:d.y-n,enabled:{[v]:a,[p]:c}}}}}},eK=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:c}=t,{offset:s=0,mainAxis:m=!0,crossAxis:l=!0}=Vt(e,t),u={x:r,y:n},p=ht(o),v=Xf(p);let h=u[v],x=u[p];const d=Vt(s,t),g=typeof d=="number"?{mainAxis:d,crossAxis:0}:{mainAxis:0,crossAxis:0,...d};if(m){const w=v==="y"?"height":"width",E=a.reference[v]-a.floating[w]+g.mainAxis,S=a.reference[v]+a.reference[w]-g.mainAxis;h<E?h=E:h>S&&(h=S)}if(l){var b,y;const w=v==="y"?"width":"height",E=Q1.has(Xt(o)),S=a.reference[p]-a.floating[w]+(E&&((b=c.offset)==null?void 0:b[p])||0)+(E?0:g.crossAxis),T=a.reference[p]+a.reference[w]+(E?0:((y=c.offset)==null?void 0:y[p])||0)-(E?g.crossAxis:0);x<S?x=S:x>T&&(x=T)}return{[v]:h,[p]:x}}}},tK=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:c,elements:s}=t,{apply:m=()=>{},...l}=Vt(e,t),u=await ta(t,l),p=Xt(o),v=ho(o),h=ht(o)==="y",{width:x,height:d}=a.floating;let g,b;p==="top"||p==="bottom"?(g=p,b=v===(await(c.isRTL==null?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(b=p,g=v==="end"?"top":"bottom");const y=d-u.top-u.bottom,w=x-u.left-u.right,E=Er(d-u[g],y),S=Er(x-u[b],w),T=!t.middlewareData.shift;let R=E,C=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(R=y),T&&!v){const L=ze(u.left,0),I=ze(u.right,0),B=ze(u.top,0),K=ze(u.bottom,0);h?C=x-2*(L!==0||I!==0?L+I:ze(u.left,u.right)):R=d-2*(B!==0||K!==0?B+K:ze(u.top,u.bottom))}await m({...t,availableWidth:C,availableHeight:R});const M=await c.getDimensions(s.floating);return x!==M.width||d!==M.height?{reset:{rects:!0}}:{}}}};function Oc(){return typeof window<"u"}function bo(e){return ek(e)?(e.nodeName||"").toLowerCase():"#document"}function $e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yt(e){var t;return(t=(ek(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ek(e){return Oc()?e instanceof Node||e instanceof $e(e).Node:!1}function Je(e){return Oc()?e instanceof Element||e instanceof $e(e).Element:!1}function Nt(e){return Oc()?e instanceof HTMLElement||e instanceof $e(e).HTMLElement:!1}function Fh(e){return!Oc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $e(e).ShadowRoot}const rK=new Set(["inline","contents"]);function ia(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Qe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!rK.has(o)}const nK=new Set(["table","td","th"]);function oK(e){return nK.has(bo(e))}const aK=[":popover-open",":modal"];function Dc(e){return aK.some(t=>{try{return e.matches(t)}catch{return!1}})}const sK=["transform","translate","scale","rotate","perspective"],iK=["transform","translate","scale","rotate","perspective","filter"],cK=["paint","layout","strict","content"];function Zf(e){const t=Jf(),r=Je(e)?Qe(e):e;return sK.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||iK.some(n=>(r.willChange||"").includes(n))||cK.some(n=>(r.contain||"").includes(n))}function uK(e){let t=kr(e);for(;Nt(t)&&!mo(t);){if(Zf(t))return t;if(Dc(t))return null;t=kr(t)}return null}function Jf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lK=new Set(["html","body","#document"]);function mo(e){return lK.has(bo(e))}function Qe(e){return $e(e).getComputedStyle(e)}function Pc(e){return Je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function kr(e){if(bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fh(e)&&e.host||Yt(e);return Fh(t)?t.host:t}function tk(e){const t=kr(e);return mo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nt(t)&&ia(t)?t:tk(t)}function ra(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=tk(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),c=$e(o);if(a){const s=Kd(c);return t.concat(c,c.visualViewport||[],ia(o)?o:[],s&&r?ra(s):[])}return t.concat(o,ra(o,[],r))}function Kd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rk(e){const t=Qe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Nt(e),a=o?e.offsetWidth:r,c=o?e.offsetHeight:n,s=Ki(r)!==a||Ki(n)!==c;return s&&(r=a,n=c),{width:r,height:n,$:s}}function Qf(e){return Je(e)?e:e.contextElement}function Qn(e){const t=Qf(e);if(!Nt(t))return bt(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=rk(t);let c=(a?Ki(r.width):r.width)/n,s=(a?Ki(r.height):r.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const dK=bt(0);function nk(e){const t=$e(e);return!Jf()||!t.visualViewport?dK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fK(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==$e(e)?!1:t}function Yr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Qf(e);let c=bt(1);t&&(n?Je(n)&&(c=Qn(n)):c=Qn(e));const s=fK(a,r,n)?nk(a):bt(0);let m=(o.left+s.x)/c.x,l=(o.top+s.y)/c.y,u=o.width/c.x,p=o.height/c.y;if(a){const v=$e(a),h=n&&Je(n)?$e(n):n;let x=v,d=Kd(x);for(;d&&n&&h!==x;){const g=Qn(d),b=d.getBoundingClientRect(),y=Qe(d),w=b.left+(d.clientLeft+parseFloat(y.paddingLeft))*g.x,E=b.top+(d.clientTop+parseFloat(y.paddingTop))*g.y;m*=g.x,l*=g.y,u*=g.x,p*=g.y,m+=w,l+=E,x=$e(d),d=Kd(x)}}return Vi({width:u,height:p,x:m,y:l})}function Mc(e,t){const r=Pc(e).scrollLeft;return t?t.left+r:Yr(Yt(e)).left+r}function ok(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Mc(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function pK(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",c=Yt(n),s=t?Dc(t.floating):!1;if(n===c||s&&a)return r;let m={scrollLeft:0,scrollTop:0},l=bt(1);const u=bt(0),p=Nt(n);if((p||!p&&!a)&&((bo(n)!=="body"||ia(c))&&(m=Pc(n)),Nt(n))){const h=Yr(n);l=Qn(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const v=c&&!p&&!a?ok(c,m):bt(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-m.scrollLeft*l.x+u.x+v.x,y:r.y*l.y-m.scrollTop*l.y+u.y+v.y}}function mK(e){return Array.from(e.getClientRects())}function vK(e){const t=Yt(e),r=Pc(e),n=e.ownerDocument.body,o=ze(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ze(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let c=-r.scrollLeft+Mc(e);const s=-r.scrollTop;return Qe(n).direction==="rtl"&&(c+=ze(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:c,y:s}}const Lh=25;function gK(e,t){const r=$e(e),n=Yt(e),o=r.visualViewport;let a=n.clientWidth,c=n.clientHeight,s=0,m=0;if(o){a=o.width,c=o.height;const u=Jf();(!u||u&&t==="fixed")&&(s=o.offsetLeft,m=o.offsetTop)}const l=Mc(n);if(l<=0){const u=n.ownerDocument,p=u.body,v=getComputedStyle(p),h=u.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(n.clientWidth-p.clientWidth-h);x<=Lh&&(a-=x)}else l<=Lh&&(a+=l);return{width:a,height:c,x:s,y:m}}const hK=new Set(["absolute","fixed"]);function bK(e,t){const r=Yr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Nt(e)?Qn(e):bt(1),c=e.clientWidth*a.x,s=e.clientHeight*a.y,m=o*a.x,l=n*a.y;return{width:c,height:s,x:m,y:l}}function Wh(e,t,r){let n;if(t==="viewport")n=gK(e,r);else if(t==="document")n=vK(Yt(e));else if(Je(t))n=bK(t,r);else{const o=nk(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Vi(n)}function ak(e,t){const r=kr(e);return r===t||!Je(r)||mo(r)?!1:Qe(r).position==="fixed"||ak(r,t)}function yK(e,t){const r=t.get(e);if(r)return r;let n=ra(e,[],!1).filter(s=>Je(s)&&bo(s)!=="body"),o=null;const a=Qe(e).position==="fixed";let c=a?kr(e):e;for(;Je(c)&&!mo(c);){const s=Qe(c),m=Zf(c);!m&&s.position==="fixed"&&(o=null),(a?!m&&!o:!m&&s.position==="static"&&o&&hK.has(o.position)||ia(c)&&!m&&ak(e,c))?n=n.filter(l=>l!==c):o=s,c=kr(c)}return t.set(e,n),n}function wK(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Dc(t)?[]:yK(t,this._c):[].concat(r),n],c=a[0],s=a.reduce((m,l)=>{const u=Wh(t,l,o);return m.top=ze(u.top,m.top),m.right=Er(u.right,m.right),m.bottom=Er(u.bottom,m.bottom),m.left=ze(u.left,m.left),m},Wh(t,c,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function xK(e){const{width:t,height:r}=rk(e);return{width:t,height:r}}function EK(e,t,r){const n=Nt(t),o=Yt(t),a=r==="fixed",c=Yr(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const m=bt(0);function l(){m.x=Mc(o)}if(n||!n&&!a)if((bo(t)!=="body"||ia(o))&&(s=Pc(t)),n){const h=Yr(t,!0,a,t);m.x=h.x+t.clientLeft,m.y=h.y+t.clientTop}else o&&l();a&&!n&&o&&l();const u=o&&!n&&!a?ok(o,s):bt(0),p=c.left+s.scrollLeft-m.x-u.x,v=c.top+s.scrollTop-m.y-u.y;return{x:p,y:v,width:c.width,height:c.height}}function Vl(e){return Qe(e).position==="static"}function zh(e,t){if(!Nt(e)||Qe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Yt(e)===r&&(r=r.ownerDocument.body),r}function sk(e,t){const r=$e(e);if(Dc(e))return r;if(!Nt(e)){let o=kr(e);for(;o&&!mo(o);){if(Je(o)&&!Vl(o))return o;o=kr(o)}return r}let n=zh(e,t);for(;n&&oK(n)&&Vl(n);)n=zh(n,t);return n&&mo(n)&&Vl(n)&&!Zf(n)?r:n||uK(e)||r}const kK=async function(e){const t=this.getOffsetParent||sk,r=this.getDimensions,n=await r(e.floating);return{reference:EK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function RK(e){return Qe(e).direction==="rtl"}const SK={convertOffsetParentRelativeRectToViewportRelativeRect:pK,getDocumentElement:Yt,getClippingRect:wK,getOffsetParent:sk,getElementRects:kK,getClientRects:mK,getDimensions:xK,getScale:Qn,isElement:Je,isRTL:RK};function ik(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function CK(e,t){let r=null,n;const o=Yt(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function c(s,m){s===void 0&&(s=!1),m===void 0&&(m=1),a();const l=e.getBoundingClientRect(),{left:u,top:p,width:v,height:h}=l;if(s||t(),!v||!h)return;const x=Us(p),d=Us(o.clientWidth-(u+v)),g=Us(o.clientHeight-(p+h)),b=Us(u),y={rootMargin:-x+"px "+-d+"px "+-g+"px "+-b+"px",threshold:ze(0,Er(1,m))||1};let w=!0;function E(S){const T=S[0].intersectionRatio;if(T!==m){if(!w)return c();T?c(!1,T):n=setTimeout(()=>{c(!1,1e-7)},1e3)}T===1&&!ik(l,e.getBoundingClientRect())&&c(),w=!1}try{r=new IntersectionObserver(E,{...y,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,y)}r.observe(e)}return c(!0),a}function jK(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:m=!1}=n,l=Qf(e),u=o||a?[...l?ra(l):[],...ra(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});const p=l&&s?CK(l,r):null;let v=-1,h=null;c&&(h=new ResizeObserver(b=>{let[y]=b;y&&y.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),l&&!m&&h.observe(l),h.observe(t));let x,d=m?Yr(e):null;m&&g();function g(){const b=Yr(e);d&&!ik(d,b)&&r(),d=b,x=requestAnimationFrame(g)}return r(),()=>{var b;u.forEach(y=>{o&&y.removeEventListener("scroll",r),a&&y.removeEventListener("resize",r)}),p?.(),(b=h)==null||b.disconnect(),h=null,m&&cancelAnimationFrame(x)}}const NK=J6,TK=Q6,_K=G6,OK=tK,DK=q6,$h=X6,PK=eK,MK=(e,t,r)=>{const n=new Map,o={platform:SK,...r},a={...o.platform,_c:n};return V6(e,t,{...o,platform:a})};var AK=typeof document<"u",IK=function(){},Ei=AK?P.useLayoutEffect:IK;function Xi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Xi(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Xi(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ck(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yh(e,t){const r=ck(e);return Math.round(t*r)/r}function Xl(e){const t=i.useRef(e);return Ei(()=>{t.current=e}),t}function FK(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:c}={},transform:s=!0,whileElementsMounted:m,open:l}=e,[u,p]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=i.useState(n);Xi(v,n)||h(n);const[x,d]=i.useState(null),[g,b]=i.useState(null),y=i.useCallback(U=>{U!==T.current&&(T.current=U,d(U))},[]),w=i.useCallback(U=>{U!==R.current&&(R.current=U,b(U))},[]),E=a||x,S=c||g,T=i.useRef(null),R=i.useRef(null),C=i.useRef(u),M=m!=null,L=Xl(m),I=Xl(o),B=Xl(l),K=i.useCallback(()=>{if(!T.current||!R.current)return;const U={placement:t,strategy:r,middleware:v};I.current&&(U.platform=I.current),MK(T.current,R.current,U).then(V=>{const f={...V,isPositioned:B.current!==!1};z.current&&!Xi(C.current,f)&&(C.current=f,_e.flushSync(()=>{p(f)}))})},[v,t,r,I,B]);Ei(()=>{l===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,p(U=>({...U,isPositioned:!1})))},[l]);const z=i.useRef(!1);Ei(()=>(z.current=!0,()=>{z.current=!1}),[]),Ei(()=>{if(E&&(T.current=E),S&&(R.current=S),E&&S){if(L.current)return L.current(E,S,K);K()}},[E,S,K,L,M]);const D=i.useMemo(()=>({reference:T,floating:R,setReference:y,setFloating:w}),[y,w]),Y=i.useMemo(()=>({reference:E,floating:S}),[E,S]),H=i.useMemo(()=>{const U={position:r,left:0,top:0};if(!Y.floating)return U;const V=Yh(Y.floating,u.x),f=Yh(Y.floating,u.y);return s?{...U,transform:"translate("+V+"px, "+f+"px)",...ck(Y.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:V,top:f}},[r,s,Y.floating,u.x,u.y]);return i.useMemo(()=>({...u,update:K,refs:D,elements:Y,floatingStyles:H}),[u,K,D,Y,H])}const LK=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?$h({element:n.current,padding:o}).fn(r):{}:n?$h({element:n,padding:o}).fn(r):{}}}},WK=(e,t)=>({...NK(e),options:[e,t]}),zK=(e,t)=>({...TK(e),options:[e,t]}),$K=(e,t)=>({...PK(e),options:[e,t]}),YK=(e,t)=>({..._K(e),options:[e,t]}),UK=(e,t)=>({...OK(e),options:[e,t]}),BK=(e,t)=>({...DK(e),options:[e,t]}),KK=(e,t)=>({...LK(e),options:[e,t]});var HK="Arrow",uk=i.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return fe.jsx(Qt.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:fe.jsx("polygon",{points:"0,0 30,0 15,10"})})});uk.displayName=HK;var VK=uk;function XK(e){const[t,r]=i.useState(void 0);return po(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let c,s;if("borderBoxSize"in a){const m=a.borderBoxSize,l=Array.isArray(m)?m[0]:m;c=l.inlineSize,s=l.blockSize}else c=e.offsetWidth,s=e.offsetHeight;r({width:c,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var lk="Popper",[dk,fk]=H1(lk),[k7,pk]=dk(lk),mk="PopperAnchor",vk=i.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=pk(mk,r),c=i.useRef(null),s=Rr(t,c),m=i.useRef(null);return i.useEffect(()=>{const l=m.current;m.current=n?.current||c.current,l!==m.current&&a.onAnchorChange(m.current)}),n?null:fe.jsx(Qt.div,{...o,ref:s})});vk.displayName=mk;var ep="PopperContent",[GK,qK]=dk(ep),gk=i.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:c=0,arrowPadding:s=0,avoidCollisions:m=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:x,...d}=e,g=pk(ep,r),[b,y]=i.useState(null),w=Rr(t,X=>y(X)),[E,S]=i.useState(null),T=XK(E),R=T?.width??0,C=T?.height??0,M=n+(a!=="center"?"-"+a:""),L=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(l)?l:[l],B=I.length>0,K={padding:L,boundary:I.filter(JK),altBoundary:B},{refs:z,floatingStyles:D,placement:Y,isPositioned:H,middlewareData:U}=FK({strategy:"fixed",placement:M,whileElementsMounted:(...X)=>jK(...X,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[WK({mainAxis:o+C,alignmentAxis:c}),m&&zK({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?$K():void 0,...K}),m&&YK({...K}),UK({...K,apply:({elements:X,rects:O,availableWidth:$,availableHeight:q})=>{const{width:me,height:ZS}=O.reference,ba=X.floating.style;ba.setProperty("--radix-popper-available-width",`${$}px`),ba.setProperty("--radix-popper-available-height",`${q}px`),ba.setProperty("--radix-popper-anchor-width",`${me}px`),ba.setProperty("--radix-popper-anchor-height",`${ZS}px`)}}),E&&KK({element:E,padding:s}),QK({arrowWidth:R,arrowHeight:C}),v&&BK({strategy:"referenceHidden",...K})]}),[V,f]=yk(Y),k=fo(x);po(()=>{H&&k?.()},[H,k]);const N=U.arrow?.x,_=U.arrow?.y,F=U.arrow?.centerOffset!==0,[A,G]=i.useState();return po(()=>{b&&G(window.getComputedStyle(b).zIndex)},[b]),fe.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:H?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:A,"--radix-popper-transform-origin":[U.transformOrigin?.x,U.transformOrigin?.y].join(" "),...U.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:fe.jsx(GK,{scope:r,placedSide:V,onArrowChange:S,arrowX:N,arrowY:_,shouldHideArrow:F,children:fe.jsx(Qt.div,{"data-side":V,"data-align":f,...d,ref:w,style:{...d.style,animation:H?void 0:"none"}})})})});gk.displayName=ep;var hk="PopperArrow",ZK={top:"bottom",right:"left",bottom:"top",left:"right"},bk=i.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=qK(hk,r),a=ZK[o.placedSide];return fe.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:fe.jsx(VK,{...n,ref:t,style:{...n.style,display:"block"}})})});bk.displayName=hk;function JK(e){return e!==null}var QK=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,c=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[m,l]=yk(r),u={start:"0%",center:"50%",end:"100%"}[l],p=(o.arrow?.x??0)+c/2,v=(o.arrow?.y??0)+s/2;let h="",x="";return m==="bottom"?(h=a?u:`${p}px`,x=`${-s}px`):m==="top"?(h=a?u:`${p}px`,x=`${n.floating.height+s}px`):m==="right"?(h=`${-s}px`,x=a?u:`${v}px`):m==="left"&&(h=`${n.floating.width+s}px`,x=a?u:`${v}px`),{data:{x:h,y:x}}}});function yk(e){const[t,r="center"]=e.split("-");return[t,r]}var wk=vk,e8=gk,t8=bk,r8="Portal",n8=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);po(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Te.createPortal(fe.jsx(Qt.div,{...n,ref:t}),c):null});n8.displayName=r8;function o8(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var xk=e=>{const{present:t,children:r}=e,n=a8(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Rr(n.ref,s8(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};xk.displayName="Presence";function a8(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=o8(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Bs(n.current);a.current=s==="mounted"?l:"none"},[s]),po(()=>{const l=n.current,u=o.current;if(u!==e){const p=a.current,v=Bs(l);e?m("MOUNT"):v==="none"||l?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),po(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=h=>{const x=Bs(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(m("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Bs(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Bs(e){return e?.animationName||"none"}function s8(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var i8=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Fn=new WeakMap,Ks=new WeakMap,Hs={},Gl=0,Ek=function(e){return e&&(e.host||Ek(e.parentNode))},c8=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Ek(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},u8=function(e,t,r,n){var o=c8(t,Array.isArray(e)?e:[e]);Hs[r]||(Hs[r]=new WeakMap);var a=Hs[r],c=[],s=new Set,m=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Fn.get(v)||0)+1,g=(a.get(v)||0)+1;Fn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Ks.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),Gl++,function(){c.forEach(function(p){var v=Fn.get(p)-1,h=a.get(p)-1;Fn.set(p,v),a.set(p,h),v||(Ks.has(p)||p.removeAttribute(n),Ks.delete(p)),h||p.removeAttribute(r)}),Gl--,Gl||(Fn=new WeakMap,Fn=new WeakMap,Ks=new WeakMap,Hs={})}},l8=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=i8(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),u8(n,o,r,"aria-hidden")):function(){return null}},vt=function(){return vt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vt.apply(this,arguments)};function kk(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function d8(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var ki="right-scroll-bar-position",Ri="width-before-scroll-bar",f8="with-scroll-bars-hidden",p8="--removed-body-scroll-bar-size";function ql(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function m8(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var v8=typeof window<"u"?i.useLayoutEffect:i.useEffect,Uh=new WeakMap;function g8(e,t){var r=m8(null,function(n){return e.forEach(function(o){return ql(o,n)})});return v8(function(){var n=Uh.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||ql(s,null)}),a.forEach(function(s){o.has(s)||ql(s,c)})}Uh.set(r,e)},[e]),r}function h8(e){return e}function b8(e,t){t===void 0&&(t=h8);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function y8(e){e===void 0&&(e={});var t=b8(null);return t.options=vt({async:!0,ssr:!1},e),t}var Rk=function(e){var t=e.sideCar,r=kk(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,vt({},r))};Rk.isSideCarExport=!0;function w8(e,t){return e.useMedium(t),Rk}var Sk=y8(),Zl=function(){},Ac=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Zl,onWheelCapture:Zl,onTouchMoveCapture:Zl}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=kk(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=g8([r,t]),R=vt(vt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:Sk,removeScrollBar:l,shards:p,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),vt(vt({},R),{ref:T})):i.createElement(y,vt({},R,{className:m,ref:T}),s))});Ac.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ac.classNames={fullWidth:Ri,zeroRight:ki};var x8=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function E8(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=x8();return t&&e.setAttribute("nonce",t),e}function k8(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function R8(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var S8=function(){var e=0,t=null;return{add:function(r){e==0&&(t=E8())&&(k8(t,r),R8(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},C8=function(){var e=S8();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ck=function(){var e=C8(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},j8={left:0,top:0,right:0,gap:0},Jl=function(e){return parseInt(e||"",10)||0},N8=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Jl(r),Jl(n),Jl(o)]},T8=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return j8;var t=N8(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},_8=Ck(),eo="data-scroll-locked",O8=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
847
+ .`.concat(f8,` {
848
+ overflow: hidden `).concat(n,`;
849
+ padding-right: `).concat(s,"px ").concat(n,`;
850
+ }
851
+ body[`).concat(eo,`] {
852
+ overflow: hidden `).concat(n,`;
853
+ overscroll-behavior: contain;
854
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
855
+ padding-left: `.concat(o,`px;
856
+ padding-top: `).concat(a,`px;
857
+ padding-right: `).concat(c,`px;
858
+ margin-left:0;
859
+ margin-top:0;
860
+ margin-right: `).concat(s,"px ").concat(n,`;
861
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
862
+ }
863
+
864
+ .`).concat(ki,` {
865
+ right: `).concat(s,"px ").concat(n,`;
866
+ }
867
+
868
+ .`).concat(Ri,` {
869
+ margin-right: `).concat(s,"px ").concat(n,`;
870
+ }
871
+
872
+ .`).concat(ki," .").concat(ki,` {
873
+ right: 0 `).concat(n,`;
874
+ }
875
+
876
+ .`).concat(Ri," .").concat(Ri,` {
877
+ margin-right: 0 `).concat(n,`;
878
+ }
879
+
880
+ body[`).concat(eo,`] {
881
+ `).concat(p8,": ").concat(s,`px;
882
+ }
883
+ `)},Bh=function(){var e=parseInt(document.body.getAttribute(eo)||"0",10);return isFinite(e)?e:0},D8=function(){i.useEffect(function(){return document.body.setAttribute(eo,(Bh()+1).toString()),function(){var e=Bh()-1;e<=0?document.body.removeAttribute(eo):document.body.setAttribute(eo,e.toString())}},[])},P8=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;D8();var a=i.useMemo(function(){return T8(o)},[o]);return i.createElement(_8,{styles:O8(a,!t,o,r?"":"!important")})},Hd=!1;if(typeof window<"u")try{var Vs=Object.defineProperty({},"passive",{get:function(){return Hd=!0,!0}});window.addEventListener("test",Vs,Vs),window.removeEventListener("test",Vs,Vs)}catch{Hd=!1}var Ln=Hd?{passive:!1}:!1,M8=function(e){return e.tagName==="TEXTAREA"},jk=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!M8(e)&&r[t]==="visible")},A8=function(e){return jk(e,"overflowY")},I8=function(e){return jk(e,"overflowX")},Kh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Nk(e,n);if(o){var a=Tk(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},F8=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},L8=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Nk=function(e,t){return e==="v"?A8(t):I8(t)},Tk=function(e,t){return e==="v"?F8(t):L8(t)},W8=function(e,t){return e==="h"&&t==="rtl"?-1:1},z8=function(e,t,r,n,o){var a=W8(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),l=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=Tk(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&Nk(e,s)&&(p+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Xs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Hh=function(e){return[e.deltaX,e.deltaY]},Vh=function(e){return e&&"current"in e?e.current:e},$8=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Y8=function(e){return`
884
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
885
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
886
+ `)},U8=0,Wn=[];function B8(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(U8++)[0],a=i.useState(Ck)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=d8([e.lockRef.current],(e.shards||[]).map(Vh)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=Xs(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],S,T=d.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&R==="h"&&T.type==="range")return!1;var C=Kh(R,T);if(!C)return!0;if(C?S=R:(S=R==="v"?"h":"v",C=Kh(R,T)),!C)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=S),!S)return!0;var M=n.current||S;return z8(M,g,d,M==="h"?w:E)},[]),m=i.useCallback(function(d){var g=d;if(!(!Wn.length||Wn[Wn.length-1]!==a)){var b="deltaY"in g?Hh(g):Xs(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&$8(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Vh).filter(Boolean).filter(function(S){return S.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:K8(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Xs(d),n.current=void 0},[]),p=i.useCallback(function(d){l(d.type,Hh(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Xs(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Wn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Ln),document.addEventListener("touchmove",m,Ln),document.addEventListener("touchstart",u,Ln),function(){Wn=Wn.filter(function(d){return d!==a}),document.removeEventListener("wheel",m,Ln),document.removeEventListener("touchmove",m,Ln),document.removeEventListener("touchstart",u,Ln)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:Y8(o)}):null,h?i.createElement(P8,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function K8(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const H8=w8(Sk,B8);var _k=i.forwardRef(function(e,t){return i.createElement(Ac,vt({},e,{ref:t,sideCar:H8}))});_k.classNames=Ac.classNames;var Ok="Popover",[Dk]=H1(Ok,[fk]),Ic=fk(),[R7,Xr]=Dk(Ok),Pk="PopoverAnchor",V8=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Xr(Pk,r),a=Ic(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:s}=o;return i.useEffect(()=>(c(),()=>s()),[c,s]),fe.jsx(wk,{...a,...n,ref:t})});V8.displayName=Pk;var Mk="PopoverTrigger",X8=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Xr(Mk,r),a=Ic(r),c=Rr(t,o.triggerRef),s=fe.jsx(Qt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Fk(o.open),...n,ref:c,onClick:wr(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:fe.jsx(wk,{asChild:!0,...a,children:s})});X8.displayName=Mk;var G8="PopoverPortal",[S7,q8]=Dk(G8,{forceMount:void 0}),vo="PopoverContent",Z8=i.forwardRef((e,t)=>{const r=q8(vo,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Xr(vo,e.__scopePopover);return fe.jsx(xk,{present:n||a.open,children:a.modal?fe.jsx(Q8,{...o,ref:t}):fe.jsx(eH,{...o,ref:t})})});Z8.displayName=vo;var J8=Z.createSlot("PopoverContent.RemoveScroll"),Q8=i.forwardRef((e,t)=>{const r=Xr(vo,e.__scopePopover),n=i.useRef(null),o=Rr(t,n),a=i.useRef(!1);return i.useEffect(()=>{const c=n.current;if(c)return l8(c)},[]),fe.jsx(_k,{as:J8,allowPinchZoom:!0,children:fe.jsx(Ak,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:wr(e.onCloseAutoFocus,c=>{c.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:wr(e.onPointerDownOutside,c=>{const s=c.detail.originalEvent,m=s.button===0&&s.ctrlKey===!0,l=s.button===2||m;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:wr(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),eH=i.forwardRef((e,t)=>{const r=Xr(vo,e.__scopePopover),n=i.useRef(!1),o=i.useRef(!1);return fe.jsx(Ak,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ak=i.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEscapeKeyDown:s,onPointerDownOutside:m,onFocusOutside:l,onInteractOutside:u,...p}=e,v=Xr(vo,r),h=Ic(r);return N6(),fe.jsx(q1,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:fe.jsx(X1,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:m,onFocusOutside:l,onDismiss:()=>v.onOpenChange(!1),children:fe.jsx(e8,{"data-state":Fk(v.open),role:"dialog",id:v.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Ik="PopoverClose",tH=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Xr(Ik,r);return fe.jsx(Qt.button,{type:"button",...n,ref:t,onClick:wr(e.onClick,()=>o.onOpenChange(!1))})});tH.displayName=Ik;var rH="PopoverArrow",nH=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ic(r);return fe.jsx(t8,{...o,...n,ref:t})});nH.displayName=rH;function Fk(e){return e?"open":"closed"}i.createContext({});i.createContext({});function oH(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Vd=1;class aH{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Vd++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(iH(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Vd++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ue=new aH,sH=(e,t)=>{const r=t?.id||Vd++;return Ue.addToast({title:e,...t,id:r}),r},iH=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",cH=sH,uH=()=>Ue.toasts,lH=()=>Ue.getActiveToasts();Object.assign(cH,{success:Ue.success,info:Ue.info,warning:Ue.warning,error:Ue.error,custom:Ue.custom,message:Ue.message,promise:Ue.promise,dismiss:Ue.dismiss,loading:Ue.loading},{getHistory:uH,getToasts:lH});oH("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function dH(e){const t=e+"CollectionProvider",[r,n]=Nc(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return se.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=jt(g,w.collectionRef);return se.jsx(m,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),S=jt(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),se.jsx(v,{[p]:"",ref:S,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var fH=i.createContext(void 0);function Lk(e){const t=i.useContext(fH);return e||t||"ltr"}var Ql="rovingFocusGroup.onEntryFocus",pH={bubbles:!1,cancelable:!0},ca="RovingFocusGroup",[Xd,Wk,mH]=dH(ca),[vH,zk]=Nc(ca,[mH]),[gH,hH]=vH(ca),$k=i.forwardRef((e,t)=>se.jsx(Xd.Provider,{scope:e.__scopeRovingFocusGroup,children:se.jsx(Xd.Slot,{scope:e.__scopeRovingFocusGroup,children:se.jsx(bH,{...e,ref:t})})}));$k.displayName=ca;var bH=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=jt(t,v),x=Lk(a),[d,g]=i1({prop:c,defaultProp:s??null,onChange:m,caller:ca}),[b,y]=i.useState(!1),w=uo(l),E=Wk(r),S=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const C=v.current;if(C)return C.addEventListener(Ql,w),()=>C.removeEventListener(Ql,w)},[w]),se.jsx(gH,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(C=>g(C),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(C=>C+1),[]),onFocusableItemRemove:i.useCallback(()=>R(C=>C-1),[]),children:se.jsx(We.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Ce(e.onMouseDown,()=>{S.current=!0}),onFocus:Ce(e.onFocus,C=>{const M=!S.current;if(C.target===C.currentTarget&&M&&!b){const L=new CustomEvent(Ql,pH);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);Bk(z,u)}}S.current=!1}),onBlur:Ce(e.onBlur,()=>y(!1))})})}),Yk="RovingFocusGroupItem",Uk=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=s1(),l=a||m,u=hH(Yk,r),p=u.currentTabStopId===l,v=Wk(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),se.jsx(Xd.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:se.jsx(We.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Ce(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:Ce(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Ce(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=xH(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?EH(y,w+1):y.slice(w+1)}setTimeout(()=>Bk(y))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});Uk.displayName=Yk;var yH={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wH(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xH(e,t,r){const n=wH(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return yH[n]}function Bk(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function EH(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var kH=$k,RH=Uk,Fc="Tabs",[SH]=Nc(Fc,[zk]),Kk=zk(),[CH,tp]=SH(Fc),jH=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=Lk(s),[p,v]=i1({prop:n,onChange:o,defaultProp:a??"",caller:Fc});return se.jsx(CH,{scope:r,baseId:s1(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:se.jsx(We.div,{dir:u,"data-orientation":c,...l,ref:t})})});jH.displayName=Fc;var Hk="TabsList",NH=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=tp(Hk,r),c=Kk(r);return se.jsx(kH,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:se.jsx(We.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});NH.displayName=Hk;var Vk="TabsTrigger",TH=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=tp(Vk,r),s=Kk(r),m=Gk(c.baseId,n),l=qk(c.baseId,n),u=n===c.value;return se.jsx(RH,{asChild:!0,...s,focusable:!o,active:u,children:se.jsx(We.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Ce(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Ce(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Ce(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});TH.displayName=Vk;var Xk="TabsContent",_H=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=tp(Xk,r),m=Gk(s.baseId,n),l=qk(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),se.jsx(Tc,{present:o||u,children:({present:v})=>se.jsx(We.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});_H.displayName=Xk;function Gk(e,t){return`${e}-trigger-${t}`}function qk(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function OH(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Gd=1;class DH{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Gd++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(MH(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Gd++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Be=new DH,PH=(e,t)=>{const r=t?.id||Gd++;return Be.addToast({title:e,...t,id:r}),r},MH=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",AH=PH,IH=()=>Be.toasts,FH=()=>Be.getActiveToasts();Object.assign(AH,{success:Be.success,info:Be.info,warning:Be.warning,error:Be.error,custom:Be.custom,message:Be.message,promise:Be.promise,dismiss:Be.dismiss,loading:Be.loading},{getHistory:IH,getToasts:FH});OH("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function LH(e){const t=e+"CollectionProvider",[r,n]=Sc(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return ae.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=Ct(g,w.collectionRef);return ae.jsx(m,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),S=Ct(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),ae.jsx(v,{[p]:"",ref:S,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var WH=i.createContext(void 0);function Zk(e){const t=i.useContext(WH);return e||t||"ltr"}var ed="rovingFocusGroup.onEntryFocus",zH={bubbles:!1,cancelable:!0},ua="RovingFocusGroup",[qd,Jk,$H]=LH(ua),[YH,Qk]=Sc(ua,[$H]),[UH,BH]=YH(ua),eR=i.forwardRef((e,t)=>ae.jsx(qd.Provider,{scope:e.__scopeRovingFocusGroup,children:ae.jsx(qd.Slot,{scope:e.__scopeRovingFocusGroup,children:ae.jsx(KH,{...e,ref:t})})}));eR.displayName=ua;var KH=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Ct(t,v),x=Zk(a),[d,g]=IE({prop:c,defaultProp:s??null,onChange:m,caller:ua}),[b,y]=i.useState(!1),w=co(l),E=Jk(r),S=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const C=v.current;if(C)return C.addEventListener(ed,w),()=>C.removeEventListener(ed,w)},[w]),ae.jsx(UH,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(C=>g(C),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(C=>C+1),[]),onFocusableItemRemove:i.useCallback(()=>R(C=>C-1),[]),children:ae.jsx(Le.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{S.current=!0}),onFocus:Se(e.onFocus,C=>{const M=!S.current;if(C.target===C.currentTarget&&M&&!b){const L=new CustomEvent(ed,zH);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);nR(z,u)}}S.current=!1}),onBlur:Se(e.onBlur,()=>y(!1))})})}),tR="RovingFocusGroupItem",rR=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=AE(),l=a||m,u=BH(tR,r),p=u.currentTabStopId===l,v=Jk(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),ae.jsx(qd.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:ae.jsx(Le.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Se(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:Se(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Se(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=XH(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?GH(y,w+1):y.slice(w+1)}setTimeout(()=>nR(y))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});rR.displayName=tR;var HH={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function VH(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function XH(e,t,r){const n=VH(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return HH[n]}function nR(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function GH(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var qH=eR,ZH=rR,Lc="Tabs",[JH]=Sc(Lc,[Qk]),oR=Qk(),[QH,rp]=JH(Lc),eV=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=Zk(s),[p,v]=IE({prop:n,onChange:o,defaultProp:a??"",caller:Lc});return ae.jsx(QH,{scope:r,baseId:AE(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:ae.jsx(Le.div,{dir:u,"data-orientation":c,...l,ref:t})})});eV.displayName=Lc;var aR="TabsList",tV=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=rp(aR,r),c=oR(r);return ae.jsx(qH,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:ae.jsx(Le.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});tV.displayName=aR;var sR="TabsTrigger",rV=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=rp(sR,r),s=oR(r),m=cR(c.baseId,n),l=uR(c.baseId,n),u=n===c.value;return ae.jsx(ZH,{asChild:!0,...s,focusable:!o,active:u,children:ae.jsx(Le.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Se(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Se(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Se(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});rV.displayName=sR;var iR="TabsContent",nV=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=rp(iR,r),m=cR(s.baseId,n),l=uR(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),ae.jsx(Cc,{present:o||u,children:({present:v})=>ae.jsx(Le.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});nV.displayName=iR;function cR(e,t){return`${e}-trigger-${t}`}function uR(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function oV(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Zd=1;class aV{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Zd++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(iV(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Zd++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ke=new aV,sV=(e,t)=>{const r=t?.id||Zd++;return Ke.addToast({title:e,...t,id:r}),r},iV=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",cV=sV,uV=()=>Ke.toasts,lV=()=>Ke.getActiveToasts();Object.assign(cV,{success:Ke.success,info:Ke.info,warning:Ke.warning,error:Ke.error,custom:Ke.custom,message:Ke.message,promise:Ke.promise,dismiss:Ke.dismiss,loading:Ke.loading},{getHistory:uV,getToasts:lV});oV("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function dV(e){const t=e+"CollectionProvider",[r,n]=Ec(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return oe.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=St(g,w.collectionRef);return oe.jsx(m,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),S=St(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),oe.jsx(v,{[p]:"",ref:S,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var fV=i.createContext(void 0);function lR(e){const t=i.useContext(fV);return e||t||"ltr"}var td="rovingFocusGroup.onEntryFocus",pV={bubbles:!1,cancelable:!0},la="RovingFocusGroup",[Jd,dR,mV]=dV(la),[vV,fR]=Ec(la,[mV]),[gV,hV]=vV(la),pR=i.forwardRef((e,t)=>oe.jsx(Jd.Provider,{scope:e.__scopeRovingFocusGroup,children:oe.jsx(Jd.Slot,{scope:e.__scopeRovingFocusGroup,children:oe.jsx(bV,{...e,ref:t})})}));pR.displayName=la;var bV=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=St(t,v),x=lR(a),[d,g]=dE({prop:c,defaultProp:s??null,onChange:m,caller:la}),[b,y]=i.useState(!1),w=io(l),E=dR(r),S=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const C=v.current;if(C)return C.addEventListener(td,w),()=>C.removeEventListener(td,w)},[w]),oe.jsx(gV,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(C=>g(C),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(C=>C+1),[]),onFocusableItemRemove:i.useCallback(()=>R(C=>C-1),[]),children:oe.jsx(Fe.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Re(e.onMouseDown,()=>{S.current=!0}),onFocus:Re(e.onFocus,C=>{const M=!S.current;if(C.target===C.currentTarget&&M&&!b){const L=new CustomEvent(td,pV);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);gR(z,u)}}S.current=!1}),onBlur:Re(e.onBlur,()=>y(!1))})})}),mR="RovingFocusGroupItem",vR=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=lE(),l=a||m,u=hV(mR,r),p=u.currentTabStopId===l,v=dR(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),oe.jsx(Jd.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:oe.jsx(Fe.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Re(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:Re(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Re(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=xV(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?EV(y,w+1):y.slice(w+1)}setTimeout(()=>gR(y))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});vR.displayName=mR;var yV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wV(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xV(e,t,r){const n=wV(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return yV[n]}function gR(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function EV(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var kV=pR,RV=vR,Wc="Tabs",[SV]=Ec(Wc,[fR]),hR=fR(),[CV,np]=SV(Wc),jV=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=lR(s),[p,v]=dE({prop:n,onChange:o,defaultProp:a??"",caller:Wc});return oe.jsx(CV,{scope:r,baseId:lE(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:oe.jsx(Fe.div,{dir:u,"data-orientation":c,...l,ref:t})})});jV.displayName=Wc;var bR="TabsList",NV=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=np(bR,r),c=hR(r);return oe.jsx(kV,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:oe.jsx(Fe.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});NV.displayName=bR;var yR="TabsTrigger",TV=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=np(yR,r),s=hR(r),m=xR(c.baseId,n),l=ER(c.baseId,n),u=n===c.value;return oe.jsx(RV,{asChild:!0,...s,focusable:!o,active:u,children:oe.jsx(Fe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Re(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Re(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Re(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});TV.displayName=yR;var wR="TabsContent",_V=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=np(wR,r),m=xR(s.baseId,n),l=ER(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),oe.jsx(kc,{present:o||u,children:({present:v})=>oe.jsx(Fe.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});_V.displayName=wR;function xR(e,t){return`${e}-trigger-${t}`}function ER(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function OV(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Qd=1;class DV{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Qd++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(MV(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Qd++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const He=new DV,PV=(e,t)=>{const r=t?.id||Qd++;return He.addToast({title:e,...t,id:r}),r},MV=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",AV=PV,IV=()=>He.toasts,FV=()=>He.getActiveToasts();Object.assign(AV,{success:He.success,info:He.info,warning:He.warning,error:He.error,custom:He.custom,message:He.message,promise:He.promise,dismiss:He.dismiss,loading:He.loading},{getHistory:IV,getToasts:FV});OV("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function LV(e){const t=e+"CollectionProvider",[r,n]=yc(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return ne.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=Rt(g,w.collectionRef);return ne.jsx(m,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),S=Rt(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),ne.jsx(v,{[p]:"",ref:S,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var WV=i.createContext(void 0);function kR(e){const t=i.useContext(WV);return e||t||"ltr"}var rd="rovingFocusGroup.onEntryFocus",zV={bubbles:!1,cancelable:!0},da="RovingFocusGroup",[ef,RR,$V]=LV(da),[YV,SR]=yc(da,[$V]),[UV,BV]=YV(da),CR=i.forwardRef((e,t)=>ne.jsx(ef.Provider,{scope:e.__scopeRovingFocusGroup,children:ne.jsx(ef.Slot,{scope:e.__scopeRovingFocusGroup,children:ne.jsx(KV,{...e,ref:t})})}));CR.displayName=da;var KV=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Rt(t,v),x=kR(a),[d,g]=zx({prop:c,defaultProp:s??null,onChange:m,caller:da}),[b,y]=i.useState(!1),w=so(l),E=RR(r),S=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const C=v.current;if(C)return C.addEventListener(rd,w),()=>C.removeEventListener(rd,w)},[w]),ne.jsx(UV,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(C=>g(C),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(C=>C+1),[]),onFocusableItemRemove:i.useCallback(()=>R(C=>C-1),[]),children:ne.jsx(Ie.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:ke(e.onMouseDown,()=>{S.current=!0}),onFocus:ke(e.onFocus,C=>{const M=!S.current;if(C.target===C.currentTarget&&M&&!b){const L=new CustomEvent(rd,zV);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);TR(z,u)}}S.current=!1}),onBlur:ke(e.onBlur,()=>y(!1))})})}),jR="RovingFocusGroupItem",NR=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=Wx(),l=a||m,u=BV(jR,r),p=u.currentTabStopId===l,v=RR(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),ne.jsx(ef.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:ne.jsx(Ie.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:ke(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:ke(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:ke(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=XV(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?GV(y,w+1):y.slice(w+1)}setTimeout(()=>TR(y))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});NR.displayName=jR;var HV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function VV(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function XV(e,t,r){const n=VV(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return HV[n]}function TR(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function GV(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var qV=CR,ZV=NR,zc="Tabs",[JV]=yc(zc,[SR]),_R=SR(),[QV,op]=JV(zc),eX=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=kR(s),[p,v]=zx({prop:n,onChange:o,defaultProp:a??"",caller:zc});return ne.jsx(QV,{scope:r,baseId:Wx(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:ne.jsx(Ie.div,{dir:u,"data-orientation":c,...l,ref:t})})});eX.displayName=zc;var OR="TabsList",tX=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=op(OR,r),c=_R(r);return ne.jsx(qV,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:ne.jsx(Ie.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});tX.displayName=OR;var DR="TabsTrigger",rX=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=op(DR,r),s=_R(r),m=MR(c.baseId,n),l=AR(c.baseId,n),u=n===c.value;return ne.jsx(ZV,{asChild:!0,...s,focusable:!o,active:u,children:ne.jsx(Ie.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:ke(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:ke(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:ke(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});rX.displayName=DR;var PR="TabsContent",nX=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=op(PR,r),m=MR(s.baseId,n),l=AR(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),ne.jsx(wc,{present:o||u,children:({present:v})=>ne.jsx(Ie.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});nX.displayName=PR;function MR(e,t){return`${e}-trigger-${t}`}function AR(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function oX(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let tf=1;class aX{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:tf++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(iX(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||tf++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ve=new aX,sX=(e,t)=>{const r=t?.id||tf++;return Ve.addToast({title:e,...t,id:r}),r},iX=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",cX=sX,uX=()=>Ve.toasts,lX=()=>Ve.getActiveToasts();Object.assign(cX,{success:Ve.success,info:Ve.info,warning:Ve.warning,error:Ve.error,custom:Ve.custom,message:Ve.message,promise:Ve.promise,dismiss:Ve.dismiss,loading:Ve.loading},{getHistory:uX,getToasts:lX});oX("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function dX(e){const t=e+"CollectionProvider",[r,n]=gc(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return re.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=kt(g,w.collectionRef);return re.jsx(m,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),S=kt(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),re.jsx(v,{[p]:"",ref:S,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var fX=i.createContext(void 0);function IR(e){const t=i.useContext(fX);return e||t||"ltr"}var nd="rovingFocusGroup.onEntryFocus",pX={bubbles:!1,cancelable:!0},fa="RovingFocusGroup",[rf,FR,mX]=dX(fa),[vX,LR]=gc(fa,[mX]),[gX,hX]=vX(fa),WR=i.forwardRef((e,t)=>re.jsx(rf.Provider,{scope:e.__scopeRovingFocusGroup,children:re.jsx(rf.Slot,{scope:e.__scopeRovingFocusGroup,children:re.jsx(bX,{...e,ref:t})})}));WR.displayName=fa;var bX=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=kt(t,v),x=IR(a),[d,g]=vx({prop:c,defaultProp:s??null,onChange:m,caller:fa}),[b,y]=i.useState(!1),w=ao(l),E=FR(r),S=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const C=v.current;if(C)return C.addEventListener(nd,w),()=>C.removeEventListener(nd,w)},[w]),re.jsx(gX,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(C=>g(C),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(C=>C+1),[]),onFocusableItemRemove:i.useCallback(()=>R(C=>C-1),[]),children:re.jsx(Ae.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Ee(e.onMouseDown,()=>{S.current=!0}),onFocus:Ee(e.onFocus,C=>{const M=!S.current;if(C.target===C.currentTarget&&M&&!b){const L=new CustomEvent(nd,pX);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);YR(z,u)}}S.current=!1}),onBlur:Ee(e.onBlur,()=>y(!1))})})}),zR="RovingFocusGroupItem",$R=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=mx(),l=a||m,u=hX(zR,r),p=u.currentTabStopId===l,v=FR(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),re.jsx(rf.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:re.jsx(Ae.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Ee(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:Ee(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Ee(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=xX(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?EX(y,w+1):y.slice(w+1)}setTimeout(()=>YR(y))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});$R.displayName=zR;var yX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wX(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xX(e,t,r){const n=wX(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return yX[n]}function YR(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function EX(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var kX=WR,RX=$R,$c="Tabs",[SX]=gc($c,[LR]),UR=LR(),[CX,ap]=SX($c),jX=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=IR(s),[p,v]=vx({prop:n,onChange:o,defaultProp:a??"",caller:$c});return re.jsx(CX,{scope:r,baseId:mx(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:re.jsx(Ae.div,{dir:u,"data-orientation":c,...l,ref:t})})});jX.displayName=$c;var BR="TabsList",NX=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=ap(BR,r),c=UR(r);return re.jsx(kX,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:re.jsx(Ae.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});NX.displayName=BR;var KR="TabsTrigger",TX=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=ap(KR,r),s=UR(r),m=VR(c.baseId,n),l=XR(c.baseId,n),u=n===c.value;return re.jsx(RX,{asChild:!0,...s,focusable:!o,active:u,children:re.jsx(Ae.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Ee(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Ee(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Ee(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});TX.displayName=KR;var HR="TabsContent",_X=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=ap(HR,r),m=VR(s.baseId,n),l=XR(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),re.jsx(hc,{present:o||u,children:({present:v})=>re.jsx(Ae.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});_X.displayName=HR;function VR(e,t){return`${e}-trigger-${t}`}function XR(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function OX(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let nf=1;class DX{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:nf++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(MX(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||nf++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Xe=new DX,PX=(e,t)=>{const r=t?.id||nf++;return Xe.addToast({title:e,...t,id:r}),r},MX=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",AX=PX,IX=()=>Xe.toasts,FX=()=>Xe.getActiveToasts();Object.assign(AX,{success:Xe.success,info:Xe.info,warning:Xe.warning,error:Xe.error,custom:Xe.custom,message:Xe.message,promise:Xe.promise,dismiss:Xe.dismiss,loading:Xe.loading},{getHistory:IX,getToasts:FX});OX("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function LX(e){const t=e+"CollectionProvider",[r,n]=pc(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return te.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=Et(g,w.collectionRef);return te.jsx(m,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),S=Et(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),te.jsx(v,{[p]:"",ref:S,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var WX=i.createContext(void 0);function GR(e){const t=i.useContext(WX);return e||t||"ltr"}var od="rovingFocusGroup.onEntryFocus",zX={bubbles:!1,cancelable:!0},pa="RovingFocusGroup",[of,qR,$X]=LX(pa),[YX,ZR]=pc(pa,[$X]),[UX,BX]=YX(pa),JR=i.forwardRef((e,t)=>te.jsx(of.Provider,{scope:e.__scopeRovingFocusGroup,children:te.jsx(of.Slot,{scope:e.__scopeRovingFocusGroup,children:te.jsx(KX,{...e,ref:t})})}));JR.displayName=pa;var KX=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Et(t,v),x=GR(a),[d,g]=B0({prop:c,defaultProp:s??null,onChange:m,caller:pa}),[b,y]=i.useState(!1),w=oo(l),E=qR(r),S=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const C=v.current;if(C)return C.addEventListener(od,w),()=>C.removeEventListener(od,w)},[w]),te.jsx(UX,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(C=>g(C),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(C=>C+1),[]),onFocusableItemRemove:i.useCallback(()=>R(C=>C-1),[]),children:te.jsx(Me.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:xe(e.onMouseDown,()=>{S.current=!0}),onFocus:xe(e.onFocus,C=>{const M=!S.current;if(C.target===C.currentTarget&&M&&!b){const L=new CustomEvent(od,zX);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);tS(z,u)}}S.current=!1}),onBlur:xe(e.onBlur,()=>y(!1))})})}),QR="RovingFocusGroupItem",eS=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=U0(),l=a||m,u=BX(QR,r),p=u.currentTabStopId===l,v=qR(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),te.jsx(of.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:te.jsx(Me.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:xe(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:xe(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:xe(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=XX(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?GX(y,w+1):y.slice(w+1)}setTimeout(()=>tS(y))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});eS.displayName=QR;var HX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function VX(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function XX(e,t,r){const n=VX(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return HX[n]}function tS(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function GX(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var qX=JR,ZX=eS,Yc="Tabs",[JX]=pc(Yc,[ZR]),rS=ZR(),[QX,sp]=JX(Yc),eG=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=GR(s),[p,v]=B0({prop:n,onChange:o,defaultProp:a??"",caller:Yc});return te.jsx(QX,{scope:r,baseId:U0(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:te.jsx(Me.div,{dir:u,"data-orientation":c,...l,ref:t})})});eG.displayName=Yc;var nS="TabsList",tG=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=sp(nS,r),c=rS(r);return te.jsx(qX,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:te.jsx(Me.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});tG.displayName=nS;var oS="TabsTrigger",rG=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=sp(oS,r),s=rS(r),m=sS(c.baseId,n),l=iS(c.baseId,n),u=n===c.value;return te.jsx(ZX,{asChild:!0,...s,focusable:!o,active:u,children:te.jsx(Me.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:xe(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:xe(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:xe(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});rG.displayName=oS;var aS="TabsContent",nG=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=sp(aS,r),m=sS(s.baseId,n),l=iS(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),te.jsx(mc,{present:o||u,children:({present:v})=>te.jsx(Me.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});nG.displayName=aS;function sS(e,t){return`${e}-trigger-${t}`}function iS(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function oG(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let af=1;class aG{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:af++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(iG(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||af++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ge=new aG,sG=(e,t)=>{const r=t?.id||af++;return Ge.addToast({title:e,...t,id:r}),r},iG=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",cG=sG,uG=()=>Ge.toasts,lG=()=>Ge.getActiveToasts();Object.assign(cG,{success:Ge.success,info:Ge.info,warning:Ge.warning,error:Ge.error,custom:Ge.custom,message:Ge.message,promise:Ge.promise,dismiss:Ge.dismiss,loading:Ge.loading},{getHistory:uG,getToasts:lG});oG("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function dG(e){const t=e+"CollectionProvider",[r,n]=lc(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return ee.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=xt(g,w.collectionRef);return ee.jsx(m,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),S=xt(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),ee.jsx(v,{[p]:"",ref:S,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var fG=i.createContext(void 0);function cS(e){const t=i.useContext(fG);return e||t||"ltr"}var ad="rovingFocusGroup.onEntryFocus",pG={bubbles:!1,cancelable:!0},ma="RovingFocusGroup",[sf,uS,mG]=dG(ma),[vG,lS]=lc(ma,[mG]),[gG,hG]=vG(ma),dS=i.forwardRef((e,t)=>ee.jsx(sf.Provider,{scope:e.__scopeRovingFocusGroup,children:ee.jsx(sf.Slot,{scope:e.__scopeRovingFocusGroup,children:ee.jsx(bG,{...e,ref:t})})}));dS.displayName=ma;var bG=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=xt(t,v),x=cS(a),[d,g]=y0({prop:c,defaultProp:s??null,onChange:m,caller:ma}),[b,y]=i.useState(!1),w=no(l),E=uS(r),S=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const C=v.current;if(C)return C.addEventListener(ad,w),()=>C.removeEventListener(ad,w)},[w]),ee.jsx(gG,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(C=>g(C),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(C=>C+1),[]),onFocusableItemRemove:i.useCallback(()=>R(C=>C-1),[]),children:ee.jsx(Pe.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:we(e.onMouseDown,()=>{S.current=!0}),onFocus:we(e.onFocus,C=>{const M=!S.current;if(C.target===C.currentTarget&&M&&!b){const L=new CustomEvent(ad,pG);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);mS(z,u)}}S.current=!1}),onBlur:we(e.onBlur,()=>y(!1))})})}),fS="RovingFocusGroupItem",pS=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=b0(),l=a||m,u=hG(fS,r),p=u.currentTabStopId===l,v=uS(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),ee.jsx(sf.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:ee.jsx(Pe.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:we(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:we(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:we(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=xG(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?EG(y,w+1):y.slice(w+1)}setTimeout(()=>mS(y))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});pS.displayName=fS;var yG={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wG(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xG(e,t,r){const n=wG(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return yG[n]}function mS(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function EG(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var kG=dS,RG=pS,Uc="Tabs",[SG]=lc(Uc,[lS]),vS=lS(),[CG,ip]=SG(Uc),jG=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=cS(s),[p,v]=y0({prop:n,onChange:o,defaultProp:a??"",caller:Uc});return ee.jsx(CG,{scope:r,baseId:b0(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:ee.jsx(Pe.div,{dir:u,"data-orientation":c,...l,ref:t})})});jG.displayName=Uc;var gS="TabsList",NG=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=ip(gS,r),c=vS(r);return ee.jsx(kG,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:ee.jsx(Pe.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});NG.displayName=gS;var hS="TabsTrigger",TG=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=ip(hS,r),s=vS(r),m=yS(c.baseId,n),l=wS(c.baseId,n),u=n===c.value;return ee.jsx(RG,{asChild:!0,...s,focusable:!o,active:u,children:ee.jsx(Pe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:we(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:we(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:we(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});TG.displayName=hS;var bS="TabsContent",_G=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=ip(bS,r),m=yS(s.baseId,n),l=wS(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),ee.jsx(dc,{present:o||u,children:({present:v})=>ee.jsx(Pe.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});_G.displayName=bS;function yS(e,t){return`${e}-trigger-${t}`}function wS(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function OG(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let cf=1;class DG{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:cf++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(MG(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,p=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||cf++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qe=new DG,PG=(e,t)=>{const r=t?.id||cf++;return qe.addToast({title:e,...t,id:r}),r},MG=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",AG=PG,IG=()=>qe.toasts,FG=()=>qe.getActiveToasts();Object.assign(AG,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:IG,getToasts:FG});OG("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function LG(e){const t=e+"CollectionProvider",[r,n]=ic(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return Q.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=wt(g,w.collectionRef);return Q.jsx(m,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),S=wt(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),Q.jsx(v,{[p]:"",ref:S,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var WG=i.createContext(void 0);function xS(e){const t=i.useContext(WG);return e||t||"ltr"}var sd="rovingFocusGroup.onEntryFocus",zG={bubbles:!1,cancelable:!0},va="RovingFocusGroup",[uf,ES,$G]=LG(va),[YG,kS]=ic(va,[$G]),[UG,BG]=YG(va),RS=i.forwardRef((e,t)=>Q.jsx(uf.Provider,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(uf.Slot,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(KG,{...e,ref:t})})}));RS.displayName=va;var KG=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=wt(t,v),x=xS(a),[d,g]=Xw({prop:c,defaultProp:s??null,onChange:m,caller:va}),[b,y]=i.useState(!1),w=ro(l),E=ES(r),S=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const C=v.current;if(C)return C.addEventListener(sd,w),()=>C.removeEventListener(sd,w)},[w]),Q.jsx(UG,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(C=>g(C),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(C=>C+1),[]),onFocusableItemRemove:i.useCallback(()=>R(C=>C-1),[]),children:Q.jsx(De.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:ye(e.onMouseDown,()=>{S.current=!0}),onFocus:ye(e.onFocus,C=>{const M=!S.current;if(C.target===C.currentTarget&&M&&!b){const L=new CustomEvent(sd,zG);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);jS(z,u)}}S.current=!1}),onBlur:ye(e.onBlur,()=>y(!1))})})}),SS="RovingFocusGroupItem",CS=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=Vw(),l=a||m,u=BG(SS,r),p=u.currentTabStopId===l,v=ES(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),Q.jsx(uf.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:Q.jsx(De.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:ye(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:ye(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:ye(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=XG(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?GG(y,w+1):y.slice(w+1)}setTimeout(()=>jS(y))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});CS.displayName=SS;var HG={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function VG(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function XG(e,t,r){const n=VG(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return HG[n]}function jS(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function GG(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var qG=RS,ZG=CS,Bc="Tabs",[JG]=ic(Bc,[kS]),NS=kS(),[QG,cp]=JG(Bc),eq=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=xS(s),[p,v]=Xw({prop:n,onChange:o,defaultProp:a??"",caller:Bc});return Q.jsx(QG,{scope:r,baseId:Vw(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:Q.jsx(De.div,{dir:u,"data-orientation":c,...l,ref:t})})});eq.displayName=Bc;var TS="TabsList",tq=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=cp(TS,r),c=NS(r);return Q.jsx(qG,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:Q.jsx(De.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});tq.displayName=TS;var _S="TabsTrigger",rq=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=cp(_S,r),s=NS(r),m=DS(c.baseId,n),l=PS(c.baseId,n),u=n===c.value;return Q.jsx(ZG,{asChild:!0,...s,focusable:!o,active:u,children:Q.jsx(De.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:ye(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:ye(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:ye(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});rq.displayName=_S;var OS="TabsContent",nq=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=cp(OS,r),m=DS(s.baseId,n),l=PS(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),Q.jsx(cc,{present:o||u,children:({present:v})=>Q.jsx(De.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});nq.displayName=OS;function DS(e,t){return`${e}-trigger-${t}`}function PS(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function oq(e){const t=e+"CollectionProvider",[r,n]=oc(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return J.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=yt(g,w.collectionRef);return J.jsx(m,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),S=yt(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),J.jsx(v,{[p]:"",ref:S,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var aq=i.createContext(void 0);function MS(e){const t=i.useContext(aq);return e||t||"ltr"}var id="rovingFocusGroup.onEntryFocus",sq={bubbles:!1,cancelable:!0},ga="RovingFocusGroup",[lf,AS,iq]=oq(ga),[cq,IS]=oc(ga,[iq]),[uq,lq]=cq(ga),FS=i.forwardRef((e,t)=>J.jsx(lf.Provider,{scope:e.__scopeRovingFocusGroup,children:J.jsx(lf.Slot,{scope:e.__scopeRovingFocusGroup,children:J.jsx(dq,{...e,ref:t})})}));FS.displayName=ga;var dq=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=yt(t,v),x=MS(a),[d,g]=kw({prop:c,defaultProp:s??null,onChange:m,caller:ga}),[b,y]=i.useState(!1),w=to(l),E=AS(r),S=i.useRef(!1),[T,R]=i.useState(0);return i.useEffect(()=>{const C=v.current;if(C)return C.addEventListener(id,w),()=>C.removeEventListener(id,w)},[w]),J.jsx(uq,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(C=>g(C),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>R(C=>C+1),[]),onFocusableItemRemove:i.useCallback(()=>R(C=>C-1),[]),children:J.jsx(Oe.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:be(e.onMouseDown,()=>{S.current=!0}),onFocus:be(e.onFocus,C=>{const M=!S.current;if(C.target===C.currentTarget&&M&&!b){const L=new CustomEvent(id,sq);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);zS(z,u)}}S.current=!1}),onBlur:be(e.onBlur,()=>y(!1))})})}),LS="RovingFocusGroupItem",WS=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=Ew(),l=a||m,u=lq(LS,r),p=u.currentTabStopId===l,v=AS(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),J.jsx(lf.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:J.jsx(Oe.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:be(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:be(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:be(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=mq(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?vq(y,w+1):y.slice(w+1)}setTimeout(()=>zS(y))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:d!=null}):c})})});WS.displayName=LS;var fq={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pq(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function mq(e,t,r){const n=pq(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return fq[n]}function zS(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function vq(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var gq=FS,hq=WS,Kc="Tabs",[bq]=oc(Kc,[IS]),$S=IS(),[yq,up]=bq(Kc),wq=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...l}=e,u=MS(s),[p,v]=kw({prop:n,onChange:o,defaultProp:a??"",caller:Kc});return J.jsx(yq,{scope:r,baseId:Ew(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:J.jsx(Oe.div,{dir:u,"data-orientation":c,...l,ref:t})})});wq.displayName=Kc;var YS="TabsList",xq=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=up(YS,r),c=$S(r);return J.jsx(gq,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:J.jsx(Oe.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});xq.displayName=YS;var US="TabsTrigger",Eq=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=up(US,r),s=$S(r),m=KS(c.baseId,n),l=HS(c.baseId,n),u=n===c.value;return J.jsx(hq,{asChild:!0,...s,focusable:!o,active:u,children:J.jsx(Oe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:be(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:be(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:be(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});Eq.displayName=US;var BS="TabsContent",kq=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=up(BS,r),m=KS(s.baseId,n),l=HS(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),J.jsx(ac,{present:o||u,children:({present:v})=>J.jsx(Oe.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});kq.displayName=BS;function KS(e,t){return`${e}-trigger-${t}`}function HS(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});function Rq({data:e=[],placeholder:t="Selecione um item...",value:r,...n}){const[o,a]=i.useState(!1);let c=-1;r&&(c=e.findIndex(l=>l.value===r));const[s,m]=i.useState(c);return j.jsxRuntimeExports.jsxs(na,{open:o,onOpenChange:a,children:[j.jsxRuntimeExports.jsx(oa,{asChild:!0,children:j.jsxRuntimeExports.jsxs(sy,{variant:"outline",role:"combobox","aria-expanded":o,className:"justify-between",children:[s>-1?e[s].label:j.jsxRuntimeExports.jsx("div",{className:"text-sm text-foreground opacity-50 font-normal",children:t}),j.jsxRuntimeExports.jsx(ge.ChevronsUpDown,{className:"opacity-50"})]})}),j.jsxRuntimeExports.jsx(aa,{className:" lg:w-[654px] md:w-[558px] p-0",children:j.jsxRuntimeExports.jsxs(ec,{children:[j.jsxRuntimeExports.jsx(bf,{placeholder:t,className:"h-9 opacity-50",...n}),j.jsxRuntimeExports.jsxs(yf,{children:[j.jsxRuntimeExports.jsx(wf,{children:"Nenhum registro encontrado."}),j.jsxRuntimeExports.jsx(Oi,{children:e?.map(l=>j.jsxRuntimeExports.jsxs(Di,{value:l.label,onSelect:u=>{const p=e.findIndex(v=>v.label===u);m(p),typeof n.onValueChange=="function"&&n.onValueChange(e[p].value),a(!1)},children:[l.label,j.jsxRuntimeExports.jsx(ge.Check,{className:W("ml-auto",l.value===e[s]?.value?"opacity-100":"opacity-0")})]},l.value))})]})]})})]})}function VS({className:e,orientation:t="horizontal",decorative:r=!0,...n}){return j.jsxRuntimeExports.jsx(lC.Root,{"data-slot":"separator",decorative:r,orientation:t,className:W("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function Sq({column:e,title:t,options:r,onChange:n,value:o=[]}){const a=e?.getFacetedUniqueValues(),c=new Set(o);return j.jsxRuntimeExports.jsxs(na,{children:[j.jsxRuntimeExports.jsx(oa,{asChild:!0,children:j.jsxRuntimeExports.jsxs(sy,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[j.jsxRuntimeExports.jsx(ge.PlusCircle,{}),t,c?.size>0&&j.jsxRuntimeExports.jsxs(j.jsxRuntimeExports.Fragment,{children:[j.jsxRuntimeExports.jsx(VS,{orientation:"vertical",className:"mx-2 h-4"}),j.jsxRuntimeExports.jsx(Gs,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:c.size}),j.jsxRuntimeExports.jsx("div",{className:"hidden gap-1 lg:flex",children:c.size>2?j.jsxRuntimeExports.jsxs(Gs,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[c.size," selected"]}):r.filter(s=>c.has(s.value)).map(s=>j.jsxRuntimeExports.jsx(Gs,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:s.label},s.value))})]})]})}),j.jsxRuntimeExports.jsx(aa,{className:"w-[200px] p-0",align:"start",children:j.jsxRuntimeExports.jsxs(ec,{children:[j.jsxRuntimeExports.jsx(bf,{placeholder:t}),j.jsxRuntimeExports.jsxs(yf,{children:[j.jsxRuntimeExports.jsx(wf,{children:"No results found."}),j.jsxRuntimeExports.jsx(Oi,{children:r.map(s=>{const m=c.has(s.value);return j.jsxRuntimeExports.jsxs(Di,{onSelect:()=>{const l=new Set(c);m?l.delete(s.value):l.add(s.value),typeof n=="function"&&n(l);const u=Array.from(l);e?.setFilterValue(u.length?u:void 0)},children:[j.jsxRuntimeExports.jsx("div",{className:W("flex size-4 items-center justify-center rounded-[4px] border",m?"bg-primary border-primary text-primary-foreground":"border-input [&_svg]:invisible"),children:j.jsxRuntimeExports.jsx(ge.Check,{className:"text-primary-foreground size-3.5"})}),s.icon&&j.jsxRuntimeExports.jsx(s.icon,{className:"text-muted-foreground size-4"}),j.jsxRuntimeExports.jsx("span",{children:s.label}),a?.get(s.value)&&j.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground ml-auto flex size-4 items-center justify-center font-mono text-xs",children:a.get(s.value)})]},s.value)})}),c.size>0&&j.jsxRuntimeExports.jsxs(j.jsxRuntimeExports.Fragment,{children:[j.jsxRuntimeExports.jsx(oy,{}),j.jsxRuntimeExports.jsx(Oi,{children:j.jsxRuntimeExports.jsx(Di,{onSelect:()=>{e?.setFilterValue(void 0),typeof n=="function"&&n(new Set)},className:"justify-center text-center",children:"Limpar Filtro"})})]})]})]})})]})}const Cq=Si.FormProvider,XS=i.createContext({}),jq=({...e})=>j.jsxRuntimeExports.jsx(XS.Provider,{value:{name:e.name},children:j.jsxRuntimeExports.jsx(Si.Controller,{...e})}),ha=()=>{const e=i.useContext(XS),t=i.useContext(GS),{getFieldState:r}=Si.useFormContext(),n=Si.useFormState({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},GS=i.createContext({});function Nq({className:e,...t}){const r=i.useId();return j.jsxRuntimeExports.jsx(GS.Provider,{value:{id:r},children:j.jsxRuntimeExports.jsx("div",{"data-slot":"form-item",className:W("grid gap-2",e),...t})})}function Tq({className:e,...t}){const{error:r,formItemId:n}=ha();return j.jsxRuntimeExports.jsx(pf,{"data-slot":"form-label","data-error":!!r,className:W("data-[error=true]:text-destructive",e),htmlFor:n,...t})}function _q({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=ha();return j.jsxRuntimeExports.jsx(Z.Slot,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function Oq({className:e,...t}){const{formDescriptionId:r}=ha();return j.jsxRuntimeExports.jsx("p",{"data-slot":"form-description",id:r,className:W("text-muted-foreground text-sm",e),...t})}function Dq({className:e,...t}){const{error:r,formMessageId:n}=ha(),o=r?String(r?.message??""):t.children;return o?j.jsxRuntimeExports.jsx("p",{"data-slot":"form-message",id:n,className:W("text-destructive text-sm",e),...t,children:o}):null}function qS({className:e,...t}){return j.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:W("bg-accent animate-pulse rounded-md",e),...t})}const Pq=({...e})=>{const{theme:t="system"}=iC.useTheme();return j.jsxRuntimeExports.jsx(Gh.Toaster,{theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function Mq({className:e,...t}){return j.jsxRuntimeExports.jsx(Gi.Root,{"data-slot":"tabs",className:W("flex flex-col gap-2",e),...t})}function Aq({className:e,...t}){return j.jsxRuntimeExports.jsx(Gi.List,{"data-slot":"tabs-list",className:W("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Iq({className:e,...t}){return j.jsxRuntimeExports.jsx(Gi.Trigger,{"data-slot":"tabs-trigger",className:W("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Fq({className:e,...t}){return j.jsxRuntimeExports.jsx(Gi.Content,{"data-slot":"tabs-content",className:W("flex-1 outline-none",e),...t})}function Lq({className:e,...t}){return j.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",className:W("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}function Wq(){const{user:e,isLoading:t}=j.useUser(),r=e?.username,n=r?r.substring(0,2):"";return t?j.jsxRuntimeExports.jsx(qS,{className:"h-9 w-9 rounded-4xl"}):j.jsxRuntimeExports.jsx("div",{className:"rounded-full w-9 h-9 justify-center text-xs cursor-default uppercase items-center flex flex-col bg-amber-400 border-2 border-black",children:n})}Object.defineProperty(exports,"TZDate",{enumerable:!0,get:()=>Ht.TZDate});Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>Gh.toast});exports.Avatar=Wq;exports.Badge=Gs;exports.Button=Ze;exports.Calendar=mf;exports.CalendarDayButton=pb;exports.Card=aj;exports.CardAction=uj;exports.CardContent=lj;exports.CardDescription=cj;exports.CardFooter=dj;exports.CardHeader=sj;exports.CardTitle=ij;exports.Checkbox=fj;exports.Collapsible=pj;exports.CollapsibleContent=vj;exports.CollapsibleTrigger=mj;exports.Combobox=Rq;exports.Command=ec;exports.CommandDialog=QN;exports.CommandEmpty=wf;exports.CommandGroup=Oi;exports.CommandInput=bf;exports.CommandItem=Di;exports.CommandList=yf;exports.CommandSeparator=oy;exports.CommandShortcut=eT;exports.DataTable=jC;exports.DataTableFacetedFilter=Sq;exports.DatePicker=nj;exports.DateRangePicker=oj;exports.DefaultDropdownMenuTrigger=kC;exports.Dialog=Zb;exports.DialogClose=ZN;exports.DialogContent=ey;exports.DialogDescription=ny;exports.DialogFooter=JN;exports.DialogHeader=ty;exports.DialogOverlay=Qb;exports.DialogPortal=Jb;exports.DialogTitle=ry;exports.DialogTrigger=qN;exports.DragHandle=NC;exports.DraggableRow=fb;exports.DropdownMenu=cd;exports.DropdownMenuCheckboxItem=tb;exports.DropdownMenuContent=ud;exports.DropdownMenuGroup=vC;exports.DropdownMenuItem=gC;exports.DropdownMenuLabel=hC;exports.DropdownMenuPortal=mC;exports.DropdownMenuRadioGroup=rb;exports.DropdownMenuRadioItem=nb;exports.DropdownMenuSeparator=bC;exports.DropdownMenuShortcut=yC;exports.DropdownMenuSub=wC;exports.DropdownMenuSubContent=EC;exports.DropdownMenuSubTrigger=xC;exports.DropdownMenuTrigger=Ni;exports.Form=Cq;exports.FormControl=_q;exports.FormDescription=Oq;exports.FormField=jq;exports.FormItem=Nq;exports.FormLabel=Tq;exports.FormMessage=Dq;exports.Input=db;exports.Label=pf;exports.Popover=na;exports.PopoverAnchor=rj;exports.PopoverContent=aa;exports.PopoverTrigger=oa;exports.Select=ob;exports.SelectContent=ib;exports.SelectGroup=RC;exports.SelectItem=cb;exports.SelectLabel=SC;exports.SelectScrollDownButton=lb;exports.SelectScrollUpButton=ub;exports.SelectSeparator=CC;exports.SelectTrigger=sb;exports.SelectValue=ab;exports.Separator=VS;exports.Skeleton=qS;exports.Table=Zh;exports.TableBody=Qh;exports.TableCaption=pC;exports.TableCell=ff;exports.TableFooter=fC;exports.TableHead=eb;exports.TableHeader=Jh;exports.TableRow=ji;exports.Tabs=Mq;exports.TabsContent=Fq;exports.TabsList=Aq;exports.TabsTrigger=Iq;exports.Textarea=Lq;exports.Toaster=Pq;exports.badgeVariants=bb;exports.buttonVariants=Ci;exports.useFormField=ha;