@librechat/client 0.3.1 → 0.3.2

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 (31) hide show
  1. package/dist/index.es.js +1 -1
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/types/components/Badge.d.ts.map +1 -1
  5. package/dist/types/components/Checkbox.d.ts +11 -1
  6. package/dist/types/components/Checkbox.d.ts.map +1 -1
  7. package/dist/types/components/DataTable.d.ts.map +1 -1
  8. package/dist/types/components/DataTableColumnHeader.d.ts.map +1 -1
  9. package/dist/types/components/Dropdown.d.ts +1 -0
  10. package/dist/types/components/Dropdown.d.ts.map +1 -1
  11. package/dist/types/components/DropdownMenu.d.ts +23 -25
  12. package/dist/types/components/DropdownMenu.d.ts.map +1 -1
  13. package/dist/types/components/InfoHoverCard.d.ts.map +1 -1
  14. package/dist/types/components/OGDialogTemplate.d.ts.map +1 -1
  15. package/dist/types/components/Radio.d.ts +3 -0
  16. package/dist/types/components/Radio.d.ts.map +1 -1
  17. package/dist/types/components/Slider.d.ts +15 -4
  18. package/dist/types/components/Slider.d.ts.map +1 -1
  19. package/dist/types/components/Switch.d.ts +9 -1
  20. package/dist/types/components/Switch.d.ts.map +1 -1
  21. package/dist/types/components/TextareaAutosize.d.ts +10 -1
  22. package/dist/types/components/TextareaAutosize.d.ts.map +1 -1
  23. package/dist/types/locales/i18n.d.ts +3 -0
  24. package/dist/types/locales/i18n.d.ts.map +1 -1
  25. package/dist/types/svgs/AudioPaths.d.ts +2 -0
  26. package/dist/types/svgs/AudioPaths.d.ts.map +1 -0
  27. package/dist/types/svgs/VideoPaths.d.ts +2 -0
  28. package/dist/types/svgs/VideoPaths.d.ts.map +1 -0
  29. package/dist/types/svgs/index.d.ts +2 -0
  30. package/dist/types/svgs/index.d.ts.map +1 -1
  31. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("@radix-ui/react-accordion"),s=require("@radix-ui/react-icons"),a=require("clsx"),o=require("tailwind-merge"),n=require("@ariakit/react"),i=require("@radix-ui/react-alert-dialog"),l=require("@radix-ui/react-slot"),c=require("lucide-react"),d=require("class-variance-authority"),u=require("@radix-ui/react-checkbox"),m=require("@radix-ui/react-dropdown-menu"),p=require("@radix-ui/react-dialog"),h=require("jotai"),x=require("@dicebear/core"),f=require("@dicebear/collection"),g=require("match-sorter"),b=require("react-i18next"),C=require("@radix-ui/react-hover-card"),v=require("rc-input-number"),w=require("@radix-ui/react-label"),y=require("@radix-ui/react-slider"),j=require("@radix-ui/react-separator"),N=require("@radix-ui/react-switch"),k=require("@radix-ui/react-tabs"),L=require("react-textarea-autosize"),M=require("@radix-ui/react-toast"),S=require("dompurify"),R=require("framer-motion"),z=require("@radix-ui/react-progress"),I=require("input-otp"),T=require("react-resizable-panels"),V=require("@radix-ui/react-select"),H=require("@ariakit/react/select"),B=require("@react-spring/web"),D=require("@tanstack/react-virtual"),P=require("@tanstack/react-table"),A=require("jotai/utils"),O=require("@headlessui/react"),Z=require("@ariakit/react-core/select/select-renderer");function E(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var W=E(t),F=E(r),q=E(n),$=E(i),G=E(u),_=E(m),U=E(p),X=E(C),K=E(w),Q=E(y),Y=E(j),J=E(N),ee=E(k),te=E(M),re=E(z),se=E(T),ae=E(V),oe=E(H);const ne=(...e)=>o.twMerge(a.clsx(e)),ie=F.Root,le=W.forwardRef((({className:t="",...r},s)=>e.jsx(F.Item,{ref:s,className:ne("border-b",t),...r})));le.displayName="AccordionItem";const ce=W.forwardRef((({className:t="",children:r,...a},o)=>e.jsx(F.Header,{className:"flex",children:e.jsxs(F.Trigger,{ref:o,className:ne("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...a,children:[r,e.jsx(s.ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})));ce.displayName=F.Trigger.displayName;const de=W.forwardRef((({className:t="",children:r,...s},a)=>e.jsx(F.Content,{ref:a,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...s,children:e.jsx("div",{className:ne("pb-4 pt-0",t),children:r})})));function ue(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===r&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}de.displayName=F.Content.displayName;ue("/* AnimatedTabs.css */\n.animated-tab-panel {\n transition-property: opacity, translate;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n animation-duration: 300ms;\n}\n\n/* Sliding underline animation for tabs */\n.animated-tab-list {\n position: relative;\n}\n\n.animated-tab-list::after {\n content: '';\n position: absolute;\n bottom: 0;\n height: 2px;\n background-color: currentColor; /* Inherit color from active tab */\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n left: var(--tab-left, 0);\n width: var(--tab-width, 0);\n}\n\n.animated-tab {\n position: relative;\n}\n\n.animated-tab[data-state='active'] {\n border-bottom-color: transparent !important;\n}\n\n.animated-tab-panel[data-enter] {\n opacity: 1 !important;\n translate: 0 !important;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .animated-tab-panel {\n transition: none;\n }\n}\n\n.animated-tab-panel:not([data-open]) {\n position: absolute;\n top: 0px;\n}\n\n.animated-panels:has(> [data-was-open]) > .animated-tab-panel {\n opacity: 0;\n translate: -100%;\n}\n\n.animated-panels [data-was-open] ~ .animated-tab-panel,\n.animated-panels [data-open] ~ .animated-tab-panel {\n translate: 100%;\n}\n");const me=t.forwardRef((function(r,s){const a=t.useRef(null);return t.useEffect((()=>{const e=a.current;if(!e)return;const t=()=>{const t="true"===e.getAttribute("aria-selected");e.setAttribute("data-state",t?"active":"inactive")};t();const r=new MutationObserver(t);return r.observe(e,{attributes:!0,attributeFilter:["aria-selected"]}),()=>r.disconnect()}),[]),e.jsx(q.Tab,{ref:e=>{a.current=e,"function"==typeof s?s(e):s&&(s.current=e)},...r,className:`animated-tab aria-selected:text-token-text-primary flex select-none items-center justify-center gap-2 whitespace-nowrap border-none text-sm font-medium outline-none transition-colors aria-disabled:opacity-50 ${r.className||""}`})})),pe=t.forwardRef((function(r,s){const a=q.useTabContext(),o=function(e){const r=t.useRef(void 0);return t.useEffect((()=>{r.current=e}),[e]),r.current}(q.useStoreState(a,"selectedId")),n=r.tabId&&o===r.tabId;return e.jsx(q.TabPanel,{ref:s,...r,"data-was-open":n||void 0,className:`animated-tab-panel max-w-full ${r.className||""}`})}));const he=$.Root,xe=$.Trigger,fe=({className:t="",children:r,...s})=>e.jsx($.Portal,{className:ne(t),...s,children:e.jsx("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:r})});fe.displayName=$.Portal.displayName;const ge=W.forwardRef((({className:t="",...r},s)=>e.jsx($.Overlay,{className:ne("fixed inset-0 z-50 bg-gray-500/90 transition-opacity animate-in fade-in dark:bg-gray-800/90",t),...r,ref:s})));ge.displayName=$.Overlay.displayName;const be=W.forwardRef((({className:t="",...r},s)=>e.jsxs(fe,{children:[e.jsx(ge,{}),e.jsx($.Content,{ref:s,className:ne("fixed z-50 grid w-full max-w-lg scale-100 gap-4 bg-white p-6 opacity-100 animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full","dark:bg-gray-900",t),...r})]})));be.displayName=$.Content.displayName;const Ce=({className:t="",...r})=>e.jsx("div",{className:ne("flex flex-col space-y-2 text-center sm:text-left",t),...r});Ce.displayName="AlertDialogHeader";const ve=({className:t="",...r})=>e.jsx("div",{className:ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r});ve.displayName="AlertDialogFooter";const we=W.forwardRef((({className:t="",...r},s)=>e.jsx($.Title,{ref:s,className:ne("text-lg font-semibold text-gray-900","dark:text-gray-50",t),...r})));we.displayName=$.Title.displayName;const ye=W.forwardRef((({className:t="",...r},s)=>e.jsx($.Description,{ref:s,className:ne("text-sm text-gray-500","dark:text-gray-400",t),...r})));ye.displayName=$.Description.displayName;const je=W.forwardRef((({className:t="",...r},s)=>e.jsx($.Action,{ref:s,className:ne("inline-flex h-10 items-center justify-center rounded-md bg-gray-900 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-gray-100 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),...r})));je.displayName=$.Action.displayName;const Ne=W.forwardRef((({className:t="",...r},s)=>e.jsx($.Cancel,{ref:s,className:ne("mt-2 inline-flex h-10 items-center justify-center rounded-md border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t),...r})));Ne.displayName=$.Cancel.displayName;const ke=W.forwardRef((({...t},r)=>e.jsx("nav",{ref:r,"aria-label":"breadcrumb",...t})));ke.displayName="Breadcrumb";const Le=W.forwardRef((({className:t,...r},s)=>e.jsx("ol",{ref:s,className:ne("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...r})));Le.displayName="BreadcrumbList";const Me=W.forwardRef((({className:t,...r},s)=>e.jsx("li",{ref:s,className:ne("inline-flex items-center gap-1.5",t),...r})));Me.displayName="BreadcrumbItem";const Se=W.forwardRef((({asChild:t,className:r,...s},a)=>{const o=t?l.Slot:"a";return e.jsx(o,{ref:a,className:ne("transition-colors hover:text-foreground",r),...s})}));Se.displayName="BreadcrumbLink";const Re=W.forwardRef((({className:t,...r},s)=>e.jsx("span",{ref:s,role:"link","aria-disabled":"true","aria-current":"page",className:ne("font-normal text-foreground",t),...r})));Re.displayName="BreadcrumbPage";const ze=({children:t,className:r,...s})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:ne("[&>svg]:size-3.5",r),...s,children:t??e.jsx(c.ChevronRight,{})});ze.displayName="BreadcrumbSeparator";const Ie=({className:t,...r})=>e.jsxs("span",{role:"presentation","aria-hidden":"true",className:ne("flex h-9 w-9 items-center justify-center",t),...r,children:[e.jsx(c.MoreHorizontal,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More"})]});Ie.displayName="BreadcrumbElipssis";const Te=d.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-surface-destructive text-destructive-foreground hover:bg-surface-destructive-hover",outline:"text-text-primary border border-border-light bg-transparent hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-surface-hover hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",submit:"bg-surface-submit text-white hover:bg-surface-submit-hover"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-lg px-3",lg:"h-11 rounded-lg px-8",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),Ve=W.forwardRef((({className:t,variant:r,size:s,asChild:a=!1,...o},n)=>{const i=a?l.Slot:"button";return e.jsx(i,{className:ne(Te({variant:r,size:s,className:t})),ref:n,...o})}));Ve.displayName="Button";const He=W.forwardRef((({className:t="",...r},s)=>e.jsx(G.Root,{ref:s,className:ne("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...r,children:e.jsx(G.Indicator,{className:ne("flex items-center justify-center"),children:e.jsx(c.Check,{className:"h-4 w-4"})})})));He.displayName=G.Root.displayName;const Be=_.Root,De=_.Trigger,Pe=_.Group,Ae=_.Portal,Oe=_.Sub,Ze=_.RadioGroup,Ee=W.forwardRef((({className:t="",inset:r,children:s,...a},o)=>e.jsxs(_.SubTrigger,{ref:o,className:ne("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[state=open]:bg-gray-100 dark:focus:bg-gray-900 dark:data-[state=open]:bg-gray-900",r?"pl-8":"",t),...a,children:[s,e.jsx(c.ChevronRight,{className:"ml-auto h-4 w-4"})]})));Ee.displayName=_.SubTrigger.displayName;const We=W.forwardRef((({className:t="",...r},s)=>e.jsx(_.SubContent,{ref:s,className:ne("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in slide-in-from-left-1 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...r})));We.displayName=_.SubContent.displayName;const Fe=W.forwardRef((({className:t="",sideOffset:r=4,...s},a)=>e.jsx(_.Portal,{children:e.jsx(_.Content,{ref:a,sideOffset:r,className:ne("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in 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 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...s})})));Fe.displayName=_.Content.displayName;const qe=W.forwardRef((({className:t="",inset:r,...s},a)=>e.jsx(_.Item,{ref:a,className:ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",r?"pl-8":"",t),...s})));qe.displayName=_.Item.displayName;const $e=W.forwardRef((({className:t="",children:r,checked:s,...a},o)=>e.jsxs(_.CheckboxItem,{ref:o,className:ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",t),checked:s,...a,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(_.ItemIndicator,{children:e.jsx(c.Check,{className:"h-4 w-4"})})}),r]})));$e.displayName=_.CheckboxItem.displayName;const Ge=W.forwardRef((({className:t="",children:r,...s},a)=>e.jsxs(_.RadioItem,{ref:a,className:ne(t,"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-800"),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(_.ItemIndicator,{children:e.jsx(c.Circle,{className:"h-2 w-2 fill-current"})})}),r]})));Ge.displayName=_.RadioItem.displayName;const _e=W.forwardRef((({className:t="",inset:r,...s},a)=>e.jsx(_.Label,{ref:a,className:ne("px-2 py-1.5 text-sm font-semibold text-gray-900 dark:text-gray-300",r?"pl-8":"",t),...s})));_e.displayName=_.Label.displayName;const Ue=W.forwardRef((({className:t="",...r},s)=>e.jsx(_.Separator,{ref:s,className:ne("-mx-1 my-1 h-px bg-border-medium",t),...r})));Ue.displayName=_.Separator.displayName;const Xe=({className:t="",...r})=>e.jsx("span",{className:ne("ml-auto text-xs tracking-widest text-gray-500",t),...r});var Ke,Qe;Xe.displayName="DropdownMenuShortcut",exports.ESide=void 0,(Ke=exports.ESide||(exports.ESide={})).Top="top",Ke.Right="right",Ke.Bottom="bottom",Ke.Left="left",exports.NotificationSeverity=void 0,(Qe=exports.NotificationSeverity||(exports.NotificationSeverity={})).INFO="info",Qe.SUCCESS="success",Qe.WARNING="warning",Qe.ERROR="error";const Ye=h.atom("en"),Je=h.atom("ltr"),et=h.atom("text-base"),tt=h.atom({open:!1,message:"",severity:exports.NotificationSeverity.SUCCESS,showIcon:!0});function rt(e=100){const[r,s]=h.useAtom(tt),a=t.useRef(null),o=t.useRef(null);t.useEffect((()=>()=>{null!==a.current&&clearTimeout(a.current),null!==o.current&&clearTimeout(o.current)}),[]);return{toast:r,onOpenChange:e=>s({...r,open:e}),showToast:({message:t,severity:r=exports.NotificationSeverity.SUCCESS,showIcon:n=!0,duration:i=3e3,status:l})=>{null!==a.current&&clearTimeout(a.current),null!==o.current&&clearTimeout(o.current),a.current=window.setTimeout((()=>{s({open:!0,message:t,severity:l??r,showIcon:n}),o.current=window.setTimeout((()=>{s((e=>({...e,open:!1})))}),i)}),e)}}}const st={},at=e=>t.useMemo((()=>{const{username:t,name:r}=e??{},s=r||t;if(!s)return"";if(e?.avatar&&""!==e?.avatar)return e.avatar;if(st[s])return st[s];const a=x.createAvatar(f.initials,{seed:s,fontFamily:["Verdana"],fontSize:36});let o="";try{o=a.toDataUri(),o&&(st[s]=o)}catch(e){console.error("Failed to generate avatar:",e)}return o}),[e]);function ot({value:e,options:r}){const[s,a]=t.useState(!1),[o,n]=t.useState(""),i=t.useMemo((()=>{if(!o)return r;const t=g.matchSorter(r,o,{keys:["label","value"]}),s=r.find((t=>t.value===e));return s&&!t.includes(s)&&t.push(s),t}),[o,e,r]);return{open:s,setOpen:a,searchValue:o,setSearchValue:n,matches:i}}function nt(){const e=h.useAtomValue(Ye),{t:r,i18n:s}=b.useTranslation();return t.useEffect((()=>{s.language!==e&&s.changeLanguage(e)}),[e,s]),(e,t)=>r(e,t)}function it(e){const[r,s]=t.useState(!1);return t.useEffect((()=>{const t=window.matchMedia(e);t.matches!==r&&s(t.matches);const a=()=>s(t.matches);return t.addEventListener("change",a),()=>t.removeEventListener("change",a)}),[r,e]),r}const lt=e=>{const[r,s]=t.useState(!0),a=t.useRef(null);return t.useEffect((()=>{if(r){const t=new Promise((t=>{const r=setTimeout((()=>{s(!1),t()}),e);return()=>{clearTimeout(r)}}));a.current=t}return()=>{a.current=null}}),[e,r]),e=>{if(r&&a.current)throw a.current;return e()}};const ct=U.Root,dt=U.Trigger,ut=({className:t="",children:r,...s})=>e.jsx(U.Portal,{className:ne(t),...s,children:e.jsx("div",{className:"fixed inset-0 z-[999] flex items-start justify-center sm:items-center",children:r})});ut.displayName=U.Portal.displayName;const mt=W.forwardRef((({className:t,...r},s)=>e.jsx(U.Overlay,{className:ne("fixed inset-0 z-[999] bg-gray-600/65 transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in dark:bg-black/80",t??""),...r,ref:s})));mt.displayName=U.Overlay.displayName;const pt=W.forwardRef((({className:t,children:r=!0,showCloseButton:s=!0,disableScroll:a=!1,...o},n)=>{const i=it("(max-width: 768px)");return e.jsxs(ut,{children:[e.jsx(mt,{}),e.jsxs(U.Content,{ref:n,className:ne("fixed z-[999] grid w-full gap-4 rounded-b-lg bg-white pb-6 animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:rounded-lg","dark:bg-gray-700",i?"fixed left-1/2 top-1/2 z-[999] m-auto grid w-11/12 -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-white pb-6":"",a?"overflow-hidden":"",t??""),...o,children:[r,s&&e.jsxs(U.Close,{className:"absolute right-6 top-[1.6rem] rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100 dark:focus:ring-white dark:focus:ring-offset-gray-700 dark:data-[state=open]:bg-gray-800",children:[e.jsx(c.X,{className:"h-5 w-5 text-black dark:text-white"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}));pt.displayName=U.Content.displayName;const ht=({className:t,...r})=>e.jsx("div",{className:ne("flex flex-col space-y-2 border-b border-black/10 p-6 pb-4 text-left dark:border-white/10",t??""),...r});ht.displayName="DialogHeader";const xt=({className:t,...r})=>e.jsx("div",{className:ne("flex flex-row justify-between space-x-2 px-6 py-4",t??""),...r});xt.displayName="DialogFooter";const ft=W.forwardRef((({className:t,...r},s)=>e.jsx(U.Title,{ref:s,className:ne("text-lg font-semibold text-gray-900","dark:text-gray-50",t??""),...r})));ft.displayName=U.Title.displayName;const gt=W.forwardRef((({className:t,...r},s)=>e.jsx(U.Description,{ref:s,className:ne("text-sm text-gray-500","dark:text-gray-400",t??""),...r})));gt.displayName=U.Description.displayName;const bt=W.forwardRef((({className:t,...r},s)=>e.jsx(U.Close,{ref:s,className:ne("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...r})));bt.displayName=U.Title.displayName;const Ct=W.forwardRef((({className:t,...r},s)=>e.jsx(Ve,{ref:s,variant:"outline",className:ne("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...r})));Ct.displayName=U.Title.displayName;const vt=X.Root,wt=X.Trigger,yt=X.Portal,jt=W.forwardRef((({className:t="",align:r="center",sideOffset:s=6,disabled:a=!1,...o},n)=>a?null:e.jsx(X.Content,{ref:n,align:r,sideOffset:s,className:ne("z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-xl border border-border-light bg-surface-secondary p-4 text-text-primary shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o})));jt.displayName=X.Content.displayName;const Nt=W.forwardRef((({className:t,...r},s)=>e.jsx("input",{className:ne("flex h-10 w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",t??""),ref:s,...r})));Nt.displayName="Input";const kt=W.forwardRef((({className:t,...r},s)=>e.jsx(v,{className:ne("flex max-h-5 w-full rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50",t??""),ref:s,...r})));kt.displayName="Input";const Lt=W.forwardRef((({className:t="",...r},s)=>e.jsx(K.Root,{ref:s,...r,className:ne("block w-full break-all text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-200",t)})));Lt.displayName=K.Root.displayName;const Mt=W.forwardRef((({children:t,triggerRef:r,triggerRefs:s,onOpenChange:a,...o},n)=>e.jsx(U.Root,{...o,onOpenChange:e=>{!e&&r?.current&&setTimeout((()=>{r.current?.focus()}),0),s?.length&&s.forEach((e=>{e?.current&&setTimeout((()=>{e.current?.focus()}),0)})),a?.(e)},children:t}))),St=U.Trigger,Rt=U.Portal,zt=U.Close,It=W.forwardRef((({className:t,...r},s)=>e.jsx(U.Overlay,{ref:s,className:ne("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r})));It.displayName=U.Overlay.displayName;const Tt=W.forwardRef((({className:t,overlayClassName:r,showCloseButton:s=!0,children:a,...o},n)=>e.jsxs(Rt,{children:[e.jsx(It,{className:r}),e.jsxs(U.Content,{ref:n,className:ne("max-w-11/12 fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl bg-background p-6 text-text-primary shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",t),...o,children:[a,s&&e.jsxs(U.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-ring-primary ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(c.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));Tt.displayName=U.Content.displayName;const Vt=({className:t,...r})=>e.jsx("div",{className:ne("flex flex-col space-y-1.5 text-center sm:text-left",t),...r});Vt.displayName="DialogHeader";const Ht=({className:t,...r})=>e.jsx("div",{className:ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r});Ht.displayName="DialogFooter";const Bt=W.forwardRef((({className:t,...r},s)=>e.jsx(U.Title,{ref:s,className:ne("text-lg font-semibold leading-none tracking-tight",t),...r})));Bt.displayName=U.Title.displayName;const Dt=W.forwardRef((({className:t,...r},s)=>e.jsx(U.Description,{ref:s,className:ne("text-sm text-text-secondary",t),...r})));Dt.displayName=U.Description.displayName;const Pt=W.forwardRef((({className:t,onDoubleClick:r,...s},a)=>e.jsxs(Q.Root,{ref:a,...s,className:ne("relative flex w-full cursor-pointer touch-none select-none items-center",t),onDoubleClick:r,children:[e.jsx(Q.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(Q.Range,{className:"absolute h-full bg-primary"})}),e.jsx(Q.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]})));Pt.displayName=Q.Root.displayName;const At=W.forwardRef((({className:t="",orientation:r="horizontal",decorative:s=!0,...a},o)=>e.jsx(Y.Root,{ref:o,...a,decorative:s,orientation:r,className:ne("shrink-0 bg-border-light","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",t)})));At.displayName=Y.Root.displayName;function Ot({className:t,...r}){return e.jsx("div",{className:ne("animate-pulse rounded-md bg-surface-tertiary opacity-50 dark:opacity-25",t),...r})}const Zt=W.forwardRef((({className:t,...r},s)=>e.jsx(J.Root,{className:ne("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-switch-unchecked",t),...r,ref:s,children:e.jsx(J.Thumb,{className:ne("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})})));Zt.displayName=J.Root.displayName;const Et=W.forwardRef((({className:t,...r},s)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:s,className:ne("w-full caption-bottom text-sm",t),...r})})));Et.displayName="Table";const Wt=W.forwardRef((({className:t,...r},s)=>e.jsx("thead",{ref:s,className:ne("[&_tr]:border-b",t),...r})));Wt.displayName="TableHeader";const Ft=W.forwardRef((({className:t,...r},s)=>e.jsx("tbody",{ref:s,className:ne("[&_tr:last-child]:border-0",t),...r})));Ft.displayName="TableBody";const qt=W.forwardRef((({className:t,...r},s)=>e.jsx("tfoot",{ref:s,className:ne("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...r})));qt.displayName="TableFooter";const $t=W.forwardRef((({className:t,...r},s)=>e.jsx("tr",{ref:s,className:ne("border-b border-border-light transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...r})));$t.displayName="TableRow";const Gt=W.forwardRef((({className:t,...r},s)=>e.jsx("th",{ref:s,className:ne("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...r})));Gt.displayName="TableHead";const _t=W.forwardRef((({className:t,...r},s)=>e.jsx("td",{ref:s,className:ne("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...r})));_t.displayName="TableCell";const Ut=W.forwardRef((({className:t,...r},s)=>e.jsx("caption",{ref:s,className:ne("mt-4 text-sm text-muted-foreground",t),...r})));Ut.displayName="TableCaption";const Xt=ee.Root,Kt=W.forwardRef((({className:t="",...r},s)=>e.jsx(ee.List,{ref:s,className:ne("inline-flex items-center justify-center rounded-md bg-surface-primary",t),...r})));Kt.displayName=ee.List.displayName;const Qt=W.forwardRef((({className:t="",...r},s)=>e.jsx(ee.Trigger,{className:ne("inline-flex min-w-[100px] items-center justify-center rounded-[0.185rem] px-3 py-1.5 text-sm font-medium text-gray-700 transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-gray-800 data-[state=active]:shadow-sm dark:data-[state=active]:bg-gray-700 dark:data-[state=active]:text-gray-200",t),...r,ref:s})));Qt.displayName=ee.Trigger.displayName;const Yt=W.forwardRef((({className:t="",...r},s)=>e.jsx(ee.Content,{className:ne("mt-2 rounded-md p-6",t),...r,ref:s})));Yt.displayName=ee.Content.displayName;const Jt=W.forwardRef((({CancelButton:t,LabelNode:r,label:s,onRemove:a,className:o="",labelClassName:n="",...i},l)=>e.jsxs("div",{ref:l,...i,className:ne("flex max-h-8 items-center overflow-y-hidden rounded-3xl border-2 border-green-600 bg-green-600/20 text-xs text-green-600 dark:text-white",o),children:[e.jsxs("div",{className:ne("ml-1 whitespace-pre-wrap px-2 py-1",n),children:[r?e.jsxs(e.Fragment,{children:[r," "]}):null,s]}),t||a&&e.jsx("button",{onClick:e=>{e.stopPropagation(),a(e)},className:"rounded-full bg-green-600/50","aria-label":`Remove ${s}`,children:e.jsx(c.X,{className:"m-[1.5px] p-1"})})]})));Jt.displayName="Tag";const er=W.memo(Jt),tr=W.forwardRef((({className:t="",...r},s)=>e.jsx("textarea",{className:ne("flex h-20 w-full resize-none rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),ref:s,...r})));tr.displayName="Textarea";const rr=t.forwardRef(((r,s)=>{const[,a]=t.useState(!1),o=h.useAtomValue(Je).toLowerCase();return t.useLayoutEffect((()=>a(!0)),[]),e.jsx(L,{dir:o,...r,ref:s})}));ue(".tooltip {\n z-index: 50;\n cursor: pointer;\n border-radius: 0.275rem;\n background-color: var(--surface-primary);\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n font-size: 1rem;\n line-height: 1.5rem;\n color: black;\n box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.25);\n /* Enhanced layout for longer descriptions */\n max-width: 320px;\n word-wrap: break-word;\n text-align: left;\n}\n\n@media (max-width: 640px) {\n .tooltip {\n max-width: 200px;\n }\n}\n\n.tooltip:where(.dark, .dark *) {\n background-color: var(--surface-primary);\n color: white;\n box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.35);\n}\n");const sr=t.forwardRef((function({description:r,side:s="top",className:a,role:o,enableHTML:n=!1,...i},l){const c=q.useTooltipStore({placement:s}),d=q.useStoreState(c,(e=>e.mounted)),u=q.useStoreState(c,(e=>e.placement)),m=t.useId(),p=t.useMemo((()=>{const e=S();return e.addHook("afterSanitizeAttributes",(e=>{e.tagName&&"A"===e.tagName&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))})),e}),[]),h=t.useMemo((()=>{if(!n)return"";try{return p.sanitize(r,{ALLOWED_TAGS:["a","strong","b","em","i","br","code"],ALLOWED_ATTR:["href","class","target","rel"],ALLOW_DATA_ATTR:!1,ALLOW_ARIA_ATTR:!1})}catch(e){return console.error("Sanitization failed",e),r}}),[n,r,p]),{x:x,y:f}=t.useMemo((()=>{switch(u.split("-")[0]){case"top":return{x:0,y:-8};case"bottom":return{x:0,y:8};case"left":return{x:-8,y:0};case"right":return{x:8,y:0};default:return{x:0,y:0}}}),[u]);return e.jsxs(q.TooltipProvider,{store:c,hideTimeout:0,children:[e.jsx(q.TooltipAnchor,{...i,ref:l,role:o,"aria-describedby":m,onKeyDown:e=>{"button"===o&&"Enter"===e.key&&(e.preventDefault(),e.target.click())},className:ne("cursor-pointer",a)}),e.jsx(R.AnimatePresence,{children:!0===d&&e.jsxs(q.Tooltip,{gutter:4,alwaysVisible:!0,className:"tooltip",id:m,render:e.jsx(R.motion.div,{initial:{opacity:0,x:x,y:f},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:x,y:f}}),children:[e.jsx(q.TooltipArrow,{}),n?e.jsx("div",{dangerouslySetInnerHTML:{__html:h}}):r]})})]})})),ar=({className:t,...r})=>e.jsx("nav",{role:"navigation","aria-label":"pagination",className:ne("mx-auto flex w-full justify-center",t),...r});ar.displayName="Pagination";const or=W.forwardRef((({className:t,...r},s)=>e.jsx("ul",{ref:s,className:ne("flex flex-row items-center gap-1",t),...r})));or.displayName="PaginationContent";const nr=W.forwardRef((({className:t,...r},s)=>e.jsx("li",{ref:s,className:ne("",t),...r})));nr.displayName="PaginationItem";const ir=({className:t,isActive:r=!1,size:s="icon",children:a,...o})=>e.jsx("a",{"aria-current":r?"page":void 0,className:ne(Te({variant:r?"outline":"ghost",size:s}),t),...o,children:a||e.jsx("span",{className:"sr-only",children:"Page link"})});ir.displayName="PaginationLink";const lr=({className:t,...r})=>e.jsxs(ir,{"aria-label":"Go to previous page",size:"default",className:ne("gap-1 pl-2.5",t),...r,children:[e.jsx(c.ChevronLeft,{className:"h-4 w-4"}),e.jsx("span",{children:"Previous"})]});lr.displayName="PaginationPrevious";const cr=({className:t,...r})=>e.jsxs(ir,{"aria-label":"Go to next page",size:"default",className:ne("gap-1 pr-2.5",t),...r,children:[e.jsx("span",{children:"Next"}),e.jsx(c.ChevronRight,{className:"h-4 w-4"})]});cr.displayName="PaginationNext";const dr=({className:t,...r})=>e.jsxs("span",{"aria-hidden":!0,className:ne("flex h-9 w-9 items-center justify-center",t),...r,children:[e.jsx(c.MoreHorizontal,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More pages"})]});dr.displayName="PaginationEllipsis";const ur=W.forwardRef((({className:t,value:r,...s},a)=>e.jsx(re.Root,{ref:a,className:ne("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...s,children:e.jsx(re.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}})})));ur.displayName=re.Root.displayName;const mr=W.forwardRef((({className:t,containerClassName:r,...s},a)=>e.jsx(I.OTPInput,{ref:a,containerClassName:ne("flex items-center gap-2 has-[:disabled]:opacity-50",r),className:ne("disabled:cursor-not-allowed",t),...s})));mr.displayName="InputOTP";const pr=W.forwardRef((({className:t,...r},s)=>e.jsx("div",{ref:s,className:ne("flex items-center",t),...r})));pr.displayName="InputOTPGroup";const hr=W.forwardRef((({index:t,className:r,...s},a)=>{const o=W.useContext(I.OTPInputContext);if(!o)throw new Error("InputOTPSlot must be used within an OTPInput");const{char:n,hasFakeCaret:i,isActive:l}=o.slots[t];return e.jsxs("div",{ref:a,className:ne("text-md relative flex h-11 w-11 items-center justify-center border-y border-r border-input shadow-sm transition-all first:rounded-l-xl first:border-l last:rounded-r-xl",l&&"z-10 ring-1 ring-ring",r),...s,children:[n,i&&e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})}));hr.displayName="InputOTPSlot";const xr=W.forwardRef((({...t},r)=>e.jsx("div",{ref:r,role:"separator",...t,children:e.jsx(c.Minus,{})})));function fr({value:r,onChange:s,placeholder:a,className:o=""}){const n=t.useRef(null),i=t.useCallback((e=>s(e.target.value)),[s]);return e.jsxs("div",{className:ne("focus:to-surface-primary/50 group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-gradient-to-b from-surface-tertiary-alt from-65% to-transparent px-3 py-2 text-text-primary transition-colors duration-300 focus:bg-gradient-to-b focus:from-surface-primary",o),children:[e.jsx(c.Search,{className:"h-4 w-4 text-text-secondary-alt transition-colors duration-300","aria-hidden":"true"}),e.jsx("input",{ref:n,type:"text",value:r??"",onChange:i,placeholder:String(a??"Search..."),"aria-label":"Search Model",className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm placeholder-text-secondary focus:outline-none focus:ring-1 focus:ring-ring-primary"}),e.jsx("button",{className:ne("relative flex h-5 w-5 items-center justify-end rounded-md text-text-secondary-alt",r?.length?"cursor-pointer opacity-100":"hidden"),"aria-label":"Clear search",onClick:()=>{s(""),setTimeout((()=>{n.current?.focus()}),0)},tabIndex:0,children:e.jsx(c.X,{"aria-hidden":"true",className:ne("text-text-secondary-alt",r?.length?"cursor-pointer opacity-100":"opacity-0")})})]})}function gr(e){return"string"==typeof e?e.startsWith("---")&&e.endsWith("---")?"":e.toUpperCase():""}function br({availableOptions:r=[],placeholder:s,getTextKeyOverride:a,className:o,disabled:n=!1}){const[i,l]=t.useState(null),c=r.length>10&&!n,d=a||gr,u=t.useMemo((()=>{const e=i??"";if(!c||!e||!r.length)return r;const t=e.toUpperCase();return r.filter((e=>d(e).includes(t)))}),[r,d,i,c]),m=t.useCallback((e=>l(e)),[]);return[u,c?e.jsx(fr,{value:i,className:o,onChange:m,placeholder:s}):null]}xr.displayName="InputOTPSeparator";const Cr=se.Panel,vr=ae.Root,wr=ae.Group,yr=ae.Value,jr=W.forwardRef((({className:t="",children:r,...a},o)=>e.jsxs(ae.Trigger,{ref:o,className:ne("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-gray-200 border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-600 [&>span]:line-clamp-1","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",t),...a,children:[r,e.jsx(ae.Icon,{asChild:!0,children:e.jsx(s.CaretSortIcon,{className:"h-4 w-4 opacity-50"})})]})));jr.displayName=ae.Trigger.displayName;const Nr=W.forwardRef((({className:t="",...r},a)=>e.jsx(ae.ScrollUpButton,{ref:a,className:ne("flex cursor-default items-center justify-center py-1 dark:text-white",t),...r,children:e.jsx(s.ChevronUpIcon,{})})));Nr.displayName=ae.ScrollUpButton.displayName;const kr=W.forwardRef((({className:t="",...r},a)=>e.jsx(ae.ScrollDownButton,{ref:a,className:ne("flex cursor-default items-center justify-center py-1 dark:text-white",t),...r,children:e.jsx(s.ChevronDownIcon,{})})));kr.displayName=ae.ScrollDownButton.displayName;const Lr=W.forwardRef((({className:t="",children:r,position:s="popper",...a},o)=>e.jsx(ae.Portal,{children:e.jsxs(ae.Content,{ref:o,className:ne("bg-popover text-popover-foreground relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-gray-600","popper"===s?"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1":"",t),position:s,...a,children:[e.jsx(Nr,{}),e.jsx(ae.Viewport,{className:ne("p-1","popper"===s?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""),children:r}),e.jsx(kr,{})]})})));Lr.displayName=ae.Content.displayName;const Mr=W.forwardRef((({className:t="",...r},s)=>e.jsx(ae.Label,{ref:s,className:ne("px-2 py-1.5 text-sm font-semibold",t),...r})));Mr.displayName=ae.Label.displayName;const Sr=W.forwardRef((({className:t="",children:r,...a},o)=>e.jsxs(ae.Item,{ref:o,className:ne("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",t),...a,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(ae.ItemIndicator,{children:e.jsx(s.CheckIcon,{className:"h-4 w-4"})})}),e.jsx(ae.ItemText,{children:r})]})));Sr.displayName=ae.Item.displayName;const Rr=W.forwardRef((({className:t="",...r},s)=>e.jsx(ae.Separator,{ref:s,className:ne("-mx-1 my-1 h-px bg-muted",t),...r})));Rr.displayName=ae.Separator.displayName;const zr=t.memo((function({options:r,value:s,onChange:a,disabled:o=!1}){const n=nt(),[i,l]=t.useState(s??""),c=t.useRef([]),[d,u]=t.useState({}),m=t.useCallback((()=>{const e=r.findIndex((e=>e.value===i));if(e>=0&&c.current[e]){const t=c.current[e],r=t?.parentElement;if(t&&r){const e=r.getBoundingClientRect(),s=t.getBoundingClientRect(),a=s.left-e.left-4;u({width:`${s.width}px`,transform:`translateX(${a}px)`})}}}),[i,r]);if(t.useLayoutEffect((()=>{m()}),[m]),t.useLayoutEffect((()=>{void 0!==s&&l(s)}),[s]),0===r.length)return e.jsx("div",{className:"relative inline-flex items-center rounded-lg bg-muted p-1 opacity-50",role:"radiogroup",children:e.jsx("span",{className:"px-4 py-2 text-xs text-muted-foreground",children:n("com_ui_no_options")})});const p=r.findIndex((e=>e.value===i));return e.jsxs("div",{className:"relative inline-flex items-center rounded-lg bg-muted p-1",role:"radiogroup",children:[p>=0&&e.jsx("div",{className:"pointer-events-none absolute inset-y-1 rounded-md border border-border/50 bg-background shadow-sm transition-all duration-300 ease-out",style:d}),r.map(((t,r)=>e.jsx("button",{ref:e=>{c.current[r]=e},type:"button",role:"radio","aria-checked":i===t.value,onClick:()=>{return e=t.value,l(e),void a?.(e);var e},disabled:o,className:`relative z-10 flex h-[34px] items-center justify-center rounded-md px-4 text-sm font-medium transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${t.value,"text-foreground"} ${o?"cursor-not-allowed opacity-50":""}`,children:e.jsx("span",{className:"whitespace-nowrap",children:t.label})},t.value)))]})}));const Ir=t.forwardRef(((t,r)=>{const{className:s="icon-md",size:a="1.2em"}=t;return e.jsx("svg",{ref:r,fill:"none",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:a,width:a,className:ne(s),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2929 4.29291C15.0641 2.52167 17.9359 2.52167 19.7071 4.2929C21.4783 6.06414 21.4783 8.93588 19.7071 10.7071L18.7073 11.7069L11.1603 19.2539C10.7182 19.696 10.1489 19.989 9.53219 20.0918L4.1644 20.9864C3.84584 21.0395 3.52125 20.9355 3.29289 20.7071C3.06453 20.4788 2.96051 20.1542 3.0136 19.8356L3.90824 14.4678C4.01103 13.8511 4.30396 13.2818 4.7461 12.8397L13.2929 4.29291ZM13 7.41422L6.16031 14.2539C6.01293 14.4013 5.91529 14.591 5.88102 14.7966L5.21655 18.7835L9.20339 18.119C9.40898 18.0847 9.59872 17.9871 9.7461 17.8397L16.5858 11L13 7.41422ZM18 9.5858L14.4142 6.00001L14.7071 5.70712C15.6973 4.71693 17.3027 4.71693 18.2929 5.70712C19.2831 6.69731 19.2831 8.30272 18.2929 9.29291L18 9.5858Z",fill:"currentColor"})})}));function Tr({className:t="m-auto",size:r=20,color:s="currentColor",bgOpacity:a=.1,speed:o=.75}){const n={"--spinner-speed":`${o}s`};return e.jsxs("svg",{className:ne(t,"spinner"),width:r,height:r,viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",style:n,children:[e.jsx("defs",{children:e.jsx("style",{type:"text/css",children:"\n .spinner {\n transform-origin: center;\n overflow: visible;\n animation: spinner-rotate var(--spinner-speed) linear infinite;\n }\n @keyframes spinner-rotate {\n to { transform: rotate(360deg); }\n }\n "})}),e.jsx("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:s,strokeOpacity:a}),e.jsx("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:s,strokeDasharray:"25 75",strokeLinecap:"round"})]})}function Vr({className:t=""}){return e.jsx("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0633 5.67375C18.5196 5.98487 18.6374 6.607 18.3262 7.06331L10.8262 18.0633C10.6585 18.3093 10.3898 18.4678 10.0934 18.4956C9.79688 18.5234 9.50345 18.4176 9.29289 18.2071L4.79289 13.7071C4.40237 13.3166 4.40237 12.6834 4.79289 12.2929C5.18342 11.9023 5.81658 11.9023 6.20711 12.2929L9.85368 15.9394L16.6738 5.93664C16.9849 5.48033 17.607 5.36263 18.0633 5.67375Z",fill:"currentColor"})})}function Hr({className:t=""}){return e.jsx("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne("icon-md h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5555 4C10.099 4 9.70052 4.30906 9.58693 4.75114L9.29382 5.8919H14.715L14.4219 4.75114C14.3083 4.30906 13.9098 4 13.4533 4H10.5555ZM16.7799 5.8919L16.3589 4.25342C16.0182 2.92719 14.8226 2 13.4533 2H10.5555C9.18616 2 7.99062 2.92719 7.64985 4.25342L7.22886 5.8919H4C3.44772 5.8919 3 6.33961 3 6.8919C3 7.44418 3.44772 7.8919 4 7.8919H4.10069L5.31544 19.3172C5.47763 20.8427 6.76455 22 8.29863 22H15.7014C17.2354 22 18.5224 20.8427 18.6846 19.3172L19.8993 7.8919H20C20.5523 7.8919 21 7.44418 21 6.8919C21 6.33961 20.5523 5.8919 20 5.8919H16.7799ZM17.888 7.8919H6.11196L7.30423 19.1057C7.3583 19.6142 7.78727 20 8.29863 20H15.7014C16.2127 20 16.6417 19.6142 16.6958 19.1057L17.888 7.8919ZM10 10C10.5523 10 11 10.4477 11 11V16C11 16.5523 10.5523 17 10 17C9.44772 17 9 16.5523 9 16V11C9 10.4477 9.44772 10 10 10ZM14 10C14.5523 10 15 10.4477 15 11V16C15 16.5523 14.5523 17 14 17C13.4477 17 13 16.5523 13 16V11C13 10.4477 13.4477 10 14 10Z",fill:"currentColor"})})}function Br(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),e.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}ue(".popover-ui {\n display: flex;\n max-height: min(var(--popover-available-height, 1700px), 1700px);\n flex-direction: column;\n overflow: auto;\n overscroll-behavior: contain;\n border-radius: 1rem;\n border-width: 1px;\n border-style: solid;\n border-color: var(--border-light);\n background-color: var(--surface-primary);\n padding: 0.5rem;\n color: var(--text-primary);\n box-shadow:\n 0 10px 15px -3px rgb(0 0 0 / 0.1),\n 0 4px 6px -4px rgb(0 0 0 / 0.1);\n transform-origin: top;\n opacity: 0;\n transition-property: opacity, scale, translate;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n scale: 0.95;\n translate: 0 -0.5rem;\n margin-top: 4px;\n margin-right: -2px;\n}\n\n.popover-animate {\n opacity: 0;\n transform: scale(0.95) translateY(-0.5rem);\n transition:\n opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),\n transform 150ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.popover-animate[data-enter] {\n opacity: 1;\n transform: scale(1) translateY(0);\n}\n\n.popover-ui:focus-visible,\n.popover-ui[data-focus-visible] {\n outline: var(--bg-surface-hover);\n outline-offset: -1px;\n}\n\n.popover-ui:where(.dark, .dark *) {\n background-color: var(--surface-secondary);\n color: var(--text-secondary);\n box-shadow:\n 0 10px 15px -3px rgb(0 0 0 / 0.25),\n 0 4px 6px -4px rgb(0 0 0 / 0.1);\n}\n\n.select-item {\n display: flex;\n cursor: pointer;\n scroll-margin: 0.5rem;\n align-items: center;\n gap: 0.5rem;\n border-radius: 0.5rem;\n padding: 0.5rem;\n outline: none !important;\n}\n\n.select-item[aria-disabled='true'] {\n opacity: 0.5;\n}\n\n.select-item[data-active-item] {\n background-color: var(--surface-hover);\n color: var(--text-primary);\n}\n\n.popover-ui[data-enter] {\n opacity: 1;\n scale: 1;\n translate: 0;\n}\n");const Dr=e=>"object"==typeof e&&"divider"in e,Pr=e=>"object"==typeof e&&"value"in e&&"label"in e,Ar=e=>{if("undefined"!=typeof Intl&&"Segmenter"in Intl){const t=new Intl.Segmenter("en",{granularity:"grapheme"}).segment(e);return Array.from(t).map((e=>e.segment))}return[...e]},Or=({value:t,onChange:r,isSearching:s,placeholder:a})=>{const o=!0===s,n=null!=t&&t.length>0;return e.jsxs("div",{className:"relative w-full",children:[e.jsx("div",{className:"relative rounded-lg transition-all duration-500 ease-in-out",children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-3 top-1/2 z-50 -translate-y-1/2",children:e.jsx(c.Search,{className:ne("h-4 w-4 transition-all duration-500 ease-in-out",o&&n?"text-blue-400":"text-gray-400")})}),e.jsx("input",{type:"text",value:t,onChange:r,placeholder:a,className:"peer relative z-20 w-full rounded-lg bg-surface-secondary px-10 py-2 outline-none ring-0 backdrop-blur-sm transition-all duration-500 ease-in-out placeholder:text-gray-400 focus:outline-none focus:ring-0"}),e.jsx("div",{className:`pointer-events-none absolute inset-0 z-20 rounded-lg bg-gradient-to-r from-blue-500/20 via-purple-500/20 to-blue-500/20 transition-all duration-500 ease-in-out ${o&&n?"opacity-100 blur-sm":"opacity-0 blur-none"} `}),e.jsx("div",{className:`absolute right-3 top-1/2 z-20 -translate-y-1/2 transition-all duration-500 ease-in-out ${o&&n?"scale-100 opacity-100":"scale-0 opacity-0"} `,children:e.jsxs("div",{className:"relative h-2 w-2",children:[e.jsx("div",{className:"absolute inset-0 animate-ping rounded-full bg-blue-500/60"}),e.jsx("div",{className:"absolute inset-0 rounded-full bg-blue-500"})]})})]})}),e.jsx("div",{className:`absolute -inset-8 -z-10 transition-all duration-700 ease-in-out ${o&&n?"scale-105 opacity-100":"scale-100 opacity-0"} `,children:e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("div",{className:`bg-gradient-radial absolute inset-0 from-blue-500/10 to-transparent transition-opacity duration-700 ease-in-out ${o&&n?"animate-pulse-slow opacity-100":"opacity-0"} `}),e.jsx("div",{className:`absolute inset-0 bg-gradient-to-r from-purple-500/5 via-blue-500/5 to-purple-500/5 blur-xl transition-all duration-700 ease-in-out ${o&&n?"animate-gradient-x opacity-100":"opacity-0"} `})]})}),e.jsx("div",{className:"absolute inset-0 -z-20 scale-100 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-blue-500/10 opacity-0 blur-xl transition-all duration-500 ease-in-out peer-focus:scale-105 peer-focus:opacity-100"})]})},Zr=t.memo((({checked:t,onChange:r,ariaLabel:s})=>e.jsx("div",{role:"button",tabIndex:0,onKeyDown:e=>e.stopPropagation(),className:"flex h-full w-[30px] items-center justify-center",onClick:e=>e.stopPropagation(),children:e.jsx(He,{checked:t,onCheckedChange:r,"aria-label":s})})));Zr.displayName="SelectionCheckbox";const Er=t.memo((({row:r,isSmallScreen:s,onSelectionChange:a,index:o,isSearching:n})=>{const i=t.useCallback((e=>{r.toggleSelected(e),a?.(r.id,e)}),[r,a]);return e.jsx($t,{"data-state":r.getIsSelected()?"selected":void 0,className:"motion-safe:animate-fadeIn border-b border-border-light transition-all duration-300 ease-out hover:bg-surface-secondary",style:{animationDelay:20*o+"ms",transform:`translateY(${n?"4px":"0"})`,opacity:n?.5:1},children:r.getVisibleCells().map((t=>"select"===t.column.id?e.jsx(_t,{className:"px-2 py-1 transition-all duration-300",children:e.jsx(Zr,{checked:r.getIsSelected(),onChange:i,ariaLabel:"Select row"})},t.id):e.jsx(_t,{className:"w-0 max-w-0 px-2 py-1 align-middle text-xs transition-all duration-300 sm:px-4 sm:py-2 sm:text-sm",style:Wr(t.column.columnDef,s),children:e.jsx("div",{className:"overflow-hidden text-ellipsis",children:P.flexRender(t.column.columnDef.cell,t.getContext())})},t.id)))})}));function Wr(e,t){return{width:t?e.meta?.mobileSize:e.meta?.size,minWidth:e.meta?.minWidth,maxWidth:e.meta?.size}}const Fr=t.memo((({onDelete:t,isDeleting:r,disabled:s,isSmallScreen:a})=>t?e.jsx(Ve,{variant:"outline",onClick:t,disabled:s,className:ne("min-w-[40px] transition-all duration-200",a&&"px-2 py-1"),children:r?e.jsx(Tr,{className:"size-4"}):e.jsxs(e.Fragment,{children:[e.jsx(Hr,{className:"size-3.5 text-red-400 sm:size-4"}),!a&&e.jsx("span",{className:"ml-2",children:"Delete"})]})}):null));class qr{constructor(e,t,r,s,a,o,n,i){this.width=e.width,this.height=e.height,this.ctx=t,this.x=r,this.y=s,this.color=a,this.speed=this.random(.1,.9)*o,this.size=0,this.sizeStep=.4*Math.random(),this.minSize=.5,this.maxSizeInteger=2,this.maxSize=this.random(this.minSize,this.maxSizeInteger),this.delay=n,this.counter=0,this.counterStep=4*Math.random()+.01*(this.width+this.height),this.isIdle=!1,this.isReverse=!1,this.isShimmer=!1,this.activationThreshold=i}random(e,t){return Math.random()*(t-e)+e}draw(){const e=.5*this.maxSizeInteger-.5*this.size;this.ctx.fillStyle=this.color,this.ctx.fillRect(this.x+e,this.y+e,this.size,this.size)}appear(){this.isIdle=!1,this.counter<=this.delay?this.counter+=this.counterStep:(this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.draw())}appearWithProgress(e){if(e-this.activationThreshold<=0)this.isIdle=!0;else{if(this.counter<=this.delay)return this.counter+=this.counterStep,void(this.isIdle=!1);this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.isIdle=!1,this.draw()}}disappear(){this.isShimmer=!1,this.counter=0,this.size<=0?this.isIdle=!0:(this.size-=.1,this.draw())}shimmer(){this.size>=this.maxSize?this.isReverse=!0:this.size<=this.minSize&&(this.isReverse=!1),this.size+=this.isReverse?-this.speed:this.speed}}const $r=(e,t)=>{const r=parseInt(String(e),10);return r<=0||t?0:r>=100?.1:.001*r},Gr=(e,t=0,r=1)=>Math.min(Math.max(e,t),r),_r={default:{gap:5,speed:35,colors:"#f8fafc,#f1f5f9,#cbd5e1",noFocus:!1},blue:{gap:10,speed:25,colors:"#e0f2fe,#7dd3fc,#0ea5e9",noFocus:!1},yellow:{gap:3,speed:20,colors:"#fef08a,#fde047,#eab308",noFocus:!1},pink:{gap:6,speed:80,colors:"#fecdd3,#fda4af,#e11d48",noFocus:!0}};const Ur=t.forwardRef((({children:t,handleFileChange:r},s)=>e.jsxs(e.Fragment,{children:[t,e.jsx("input",{ref:s,multiple:!0,type:"file",style:{display:"none"},onChange:r})]})));Ur.displayName="FileUpload";function Xr(e,t){return 0===e.length?t||"Select...":1===e.length?e[0]:`${e.length} items selected`}ue(".animate-popover {\n transform-origin: top;\n opacity: 0;\n transition:\n opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),\n transform 150ms cubic-bezier(0.4, 0, 0.2, 1);\n transform: scale(0.95) translateY(-0.5rem);\n}\n\n.animate-popover[data-enter] {\n opacity: 1;\n transform: scale(1) translateY(0);\n}\n\n.animate-popover-left {\n transform-origin: left;\n opacity: 0;\n transition:\n opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),\n transform 150ms cubic-bezier(0.4, 0, 0.2, 1);\n transform: scale(0.95) translateX(-0.5rem);\n}\n\n.animate-popover-left[data-enter] {\n opacity: 1;\n transform: scale(1) translateX(0);\n}\n");const Kr=({items:t,menuId:r,keyPrefix:s,className:a,iconClassName:o,itemClassName:n,modal:i,portal:l,sameWidth:c,gutter:d=8,finalFocus:u,unmountOnHide:m,preserveTabOrder:p,...h})=>{const x=q.useMenuStore(),f=q.useMenuContext();return e.jsx(q.Menu,{id:r,modal:i,gutter:d,portal:l,sameWidth:c,finalFocus:u,unmountOnHide:m,preserveTabOrder:p,className:ne("popover-ui z-50",a),...h,children:t.filter((e=>!1!==e.show)).map(((t,a)=>{const{subItems:i}=t;return!0===t.separate?e.jsx(q.MenuSeparator,{className:"my-1 h-px bg-white/10"},a):i&&i.length>0?e.jsxs(q.MenuProvider,{store:x,children:[e.jsxs(q.MenuButton,{className:ne("group flex w-full cursor-pointer items-center justify-between gap-2 rounded-lg px-3 py-3.5 text-sm text-text-primary outline-none transition-colors duration-200 hover:bg-surface-hover focus:bg-surface-hover md:px-2.5 md:py-2",n),disabled:t.disabled,id:t.id,render:t.render,ref:t.ref,children:[e.jsxs("span",{className:"flex items-center gap-2",children:[null!=t.icon&&e.jsx("span",{className:ne("mr-2 size-4",o),"aria-hidden":"true",children:t.icon}),t.label]}),e.jsx(q.MenuButtonArrow,{className:"stroke-1 text-base opacity-75"})]}),e.jsx(Kr,{items:i,menuId:`${r}-${a}`,gutter:12,portal:!0},`${s??""}${a}-${t.id??""}`)]},`${s??""}${a}-${t.id??""}-provider`):e.jsxs(q.MenuItem,{id:t.id,className:ne("group flex w-full cursor-pointer items-center gap-2 rounded-lg px-3 py-3.5 text-sm text-text-primary outline-none transition-colors duration-200 hover:bg-surface-hover focus:bg-surface-hover md:px-2.5 md:py-2",n),disabled:t.disabled,render:t.render,ref:t.ref,hideOnClick:t.hideOnClick,onClick:e=>{e.preventDefault(),t.onClick&&t.onClick(e),!1!==t.hideOnClick&&f?.hide()},children:[null!=t.icon&&e.jsx("span",{className:ne("mr-2 size-4",o),"aria-hidden":"true",children:t.icon}),t.label,null!=t.kbd&&e.jsxs("kbd",{className:"ml-auto hidden font-sans text-xs text-black/50 group-hover:inline group-focus:inline dark:text-white/50",children:["⌘",t.kbd]})]},`${s??""}${a}-${t.id??""}`)}))})};function Qr(e){if(!e)return;const t=function(e){const t={};return Object.entries({"rgb-text-primary":"--text-primary","rgb-text-secondary":"--text-secondary","rgb-text-secondary-alt":"--text-secondary-alt","rgb-text-tertiary":"--text-tertiary","rgb-text-warning":"--text-warning","rgb-ring-primary":"--ring-primary","rgb-header-primary":"--header-primary","rgb-header-hover":"--header-hover","rgb-header-button-hover":"--header-button-hover","rgb-surface-active":"--surface-active","rgb-surface-active-alt":"--surface-active-alt","rgb-surface-hover":"--surface-hover","rgb-surface-hover-alt":"--surface-hover-alt","rgb-surface-primary":"--surface-primary","rgb-surface-primary-alt":"--surface-primary-alt","rgb-surface-primary-contrast":"--surface-primary-contrast","rgb-surface-secondary":"--surface-secondary","rgb-surface-secondary-alt":"--surface-secondary-alt","rgb-surface-tertiary":"--surface-tertiary","rgb-surface-tertiary-alt":"--surface-tertiary-alt","rgb-surface-dialog":"--surface-dialog","rgb-surface-submit":"--surface-submit","rgb-surface-submit-hover":"--surface-submit-hover","rgb-surface-destructive":"--surface-destructive","rgb-surface-destructive-hover":"--surface-destructive-hover","rgb-surface-chat":"--surface-chat","rgb-border-light":"--border-light","rgb-border-medium":"--border-medium","rgb-border-medium-alt":"--border-medium-alt","rgb-border-heavy":"--border-heavy","rgb-border-xheavy":"--border-xheavy","rgb-brand-purple":"--brand-purple","rgb-presentation":"--presentation","rgb-background":"--background","rgb-foreground":"--foreground","rgb-primary":"--primary","rgb-primary-foreground":"--primary-foreground","rgb-secondary":"--secondary","rgb-secondary-foreground":"--secondary-foreground","rgb-muted":"--muted","rgb-muted-foreground":"--muted-foreground","rgb-accent":"--accent","rgb-accent-foreground":"--accent-foreground","rgb-destructive-foreground":"--destructive-foreground","rgb-border":"--border","rgb-input":"--input","rgb-ring":"--ring","rgb-card":"--card","rgb-card-foreground":"--card-foreground"}).forEach((([r,s])=>{const a=e[r];a&&(t[s]=a)})),t}(e),r=document.documentElement;Object.entries(t).forEach((([e,t])=>{if(!t)return;!function(e){if(!e)return!0;const t=e.match(/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})$/);if(!t)return!1;const[,r,s,a]=t;return[r,s,a].every((e=>{const t=parseInt(e,10);return t>=0&&t<=255}))}(t)?console.error(`Invalid RGB value for ${e}: ${t}`):r.style.setProperty(e,`rgb(${t})`)}))}const Yr=A.atomWithStorage("color-theme","system",void 0,{getOnInit:!0}),Jr=A.atomWithStorage("theme-colors",void 0,void 0,{getOnInit:!0}),es=A.atomWithStorage("theme-name",void 0,void 0,{getOnInit:!0}),ts=t.createContext({theme:"system",setTheme:()=>{},setThemeRGB:()=>{},setThemeName:()=>{},resetTheme:()=>{}}),rs=e=>"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches:"dark"===e;const ss=({theme:r,onChange:s})=>{const a={system:e.jsx(c.Monitor,{}),dark:e.jsx(c.Moon,{color:"white"}),light:e.jsx(c.Sun,{})},o=rs(r)?"light":"dark",n=`Switch to ${o} theme`;return t.useEffect((()=>{const e=e=>{e.ctrlKey&&e.shiftKey&&"t"===e.key.toLowerCase()&&(e.preventDefault(),s(o))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[o,s]),e.jsx("button",{className:"flex items-center gap-2 rounded-lg p-2 transition-colors hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","aria-label":n,"aria-keyshortcuts":"Ctrl+Shift+T",onClick:e=>{e.preventDefault(),s(o)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),s(o))},children:a[r]})},as=W.forwardRef((({icon:r,label:s,setValue:a,className:o,checked:i,defaultChecked:l,isCheckedClassName:c},d)=>{const u=n.useCheckboxStore(),m=n.useStoreState(u,(e=>e?.value));return t.useEffect((()=>{void 0!==i&&u.setValue(i)}),[i,u]),t.useEffect((()=>{void 0!==l&&void 0===i&&u.setValue(l)}),[l,i,u]),e.jsxs(n.Checkbox,{ref:d,store:u,onChange:e=>{e.stopPropagation(),"boolean"==typeof m&&a?.({e:e,value:!m})},className:ne("group relative inline-flex items-center justify-center gap-1.5","rounded-full border border-border-medium text-sm font-medium","size-9 p-2 transition-all md:w-full md:p-3","bg-transparent shadow-sm hover:bg-surface-hover hover:shadow-md active:shadow-inner",m&&c&&c,o),render:e.jsx("button",{type:"button","aria-label":s}),children:[r&&e.jsx("span",{className:"icon-md text-text-primary",children:r}),e.jsx("span",{className:"hidden truncate md:block",children:s})]})}));as.displayName="CheckboxButton";const os=t.forwardRef(((t,r)=>{const{title:s,description:a,main:o,buttons:n,leftButtons:i,selection:l,className:c,headerClassName:d,footerClassName:u,showCloseButton:m,showCancelButton:p=!0}=t,{selectHandler:h,selectClasses:x,selectText:f}=l||{};return e.jsxs(pt,{showCloseButton:m,ref:r,className:ne("shadow-2xl dark:bg-gray-700",c||""),onClick:e=>e.stopPropagation(),children:[e.jsxs(ht,{className:ne(d??""),children:[e.jsx(ft,{className:"text-lg font-medium leading-6 text-gray-800 dark:text-gray-200",children:s}),a&&e.jsx(gt,{className:"text-gray-600 dark:text-gray-300",children:a})]}),e.jsx("div",{className:"px-6",children:o||null}),e.jsxs(xt,{className:u,children:[e.jsx("div",{children:i||null}),e.jsxs("div",{className:"flex h-auto gap-3",children:[p&&e.jsx(bt,{className:"border-gray-100 hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-600",children:"cancel"}),n||null,l?e.jsx(bt,{onClick:h,className:`${x||"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} inline-flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm`,children:f}):null]})]})]})}));var ns=t.memo((function({selectedValue:r,displayValue:s,items:a,setValue:o,ariaLabel:n,searchPlaceholder:i,selectPlaceholder:l,containerClassName:d,isCollapsed:u,SelectIcon:m,showCarat:p,className:h,disabled:x,iconClassName:f,iconSide:b="left",selectId:C}){const[v,w]=t.useState(""),y=t.useRef(null),[j,N]=t.useState(null),k=e=>({id:`item-${e.value}`,value:e.value,label:e.label,icon:e.icon}),L=q.useComboboxStore({defaultItems:a.map(k),resetValueOnHide:!0,value:v,setValue:w}),M=q.useSelectStore({combobox:L,defaultItems:a.map(k),value:r,setValue:o}),S=t.useMemo((()=>g.matchSorter(a,v,{keys:["value","label"],baseSort:(e,t)=>e.index<t.index?-1:1}).map(k)),[v,a]);t.useEffect((()=>{y.current&&!u&&N(y.current.offsetWidth)}),[u]);const R=ne("flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",f),z=ne("mr-2 flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",f);return e.jsxs("div",{className:ne("flex w-full items-center justify-center px-1",d),children:[e.jsx(q.SelectLabel,{store:M,className:"sr-only",children:n}),e.jsxs(q.Select,{ref:y,store:M,id:C,disabled:x,className:ne("flex items-center justify-center gap-2 rounded-full bg-surface-secondary","text-text-primary hover:bg-surface-tertiary","border border-border-light",u?"h-10 w-10":"h-10 w-full rounded-xl px-3 py-2 text-sm",h),children:[null!=m&&"left"===b&&e.jsx("div",{className:R,children:m}),!u&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"flex-grow truncate text-left",children:null!=s?s||l:r||l}),null!=m&&"right"===b&&e.jsx("div",{className:R,children:m}),p&&e.jsx(c.ChevronDown,{className:"h-4 w-4 text-text-secondary"})]})]}),e.jsxs(q.SelectPopover,{store:M,gutter:4,portal:!0,className:ne("animate-popover z-50 overflow-hidden rounded-xl border border-border-light bg-surface-secondary shadow-lg"),style:{width:u?"300px":j??"300px"},children:[e.jsx("div",{className:"py-1.5",children:e.jsxs("div",{className:"relative",children:[e.jsx(c.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-primary"}),e.jsx(q.Combobox,{store:L,autoSelect:!0,placeholder:i,className:"w-full rounded-md bg-surface-secondary py-2 pl-9 pr-3 text-sm text-text-primary focus:outline-none"})]})}),e.jsx("div",{className:"max-h-[300px] overflow-auto",children:e.jsx(q.ComboboxList,{store:L,children:e.jsx(Z.SelectRenderer,{store:M,items:S,itemSize:36,overscan:5,children:({value:t,icon:r,label:s,...a})=>e.jsxs(q.ComboboxItem,{...a,className:ne("flex w-full cursor-pointer items-center px-3 text-sm","text-text-primary hover:bg-surface-tertiary","data-[active-item]:bg-surface-tertiary"),render:e.jsx(q.SelectItem,{value:t}),children:[null!=r&&"left"===b&&e.jsx("div",{className:z,children:r}),e.jsx("span",{className:"flex-grow truncate text-left",children:s}),null!=r&&"right"===b&&e.jsx("div",{className:z,children:r})]},a.id)})})})]})]})}));const is=t.forwardRef(((t,r)=>{const s=nt(),{title:a,main:o,buttons:n,selection:i,className:l,leftButtons:c,description:d="",mainClassName:u,headerClassName:m,footerClassName:p,showCloseButton:h,overlayClassName:x,showCancelButton:f=!0}=t,{selectHandler:g,selectClasses:b,selectText:C,isLoading:v}=i||{};return e.jsxs(Tt,{overlayClassName:x,showCloseButton:h,ref:r,className:ne("w-11/12 border-none bg-background text-foreground",l??""),onClick:e=>e.stopPropagation(),children:[e.jsxs(Vt,{className:ne(m??""),children:[e.jsx(Bt,{children:a}),d&&e.jsx(Dt,{className:"items-center justify-center",children:d})]}),e.jsx("div",{className:ne("px-0 py-2",u),children:null!=o?o:null}),e.jsxs(Ht,{className:p,children:[e.jsx("div",{children:null!=c?e.jsx("div",{className:"mt-3 flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:mt-0 sm:flex-row",children:c}):null}),e.jsxs("div",{className:"flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:flex-row",children:[f&&e.jsx(zt,{asChild:!0,children:e.jsx(Ve,{variant:"outline",children:s("com_ui_cancel")})}),null!=n?n:null,i?e.jsx(zt,{onClick:g,disabled:v,className:`${b??"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm disabled:opacity-80 max-sm:order-first max-sm:w-full sm:order-none`,children:!0===v?e.jsx(Tr,{className:"size-4 text-white"}):C}):null]})]})]})})),ls=W.forwardRef((({className:t,options:r,onSelect:s,...a},o)=>{const[n,i]=W.useState(!1),[l,c]=W.useState(a.value||""),[d,u]=W.useState(-1),m=W.useRef(null),p=e=>{c(e),i(!1),u(-1),s&&s(e),a.onChange&&a.onChange({target:{value:e}})};return W.useEffect((()=>{const e=e=>{m.current&&!m.current.contains(e.target)&&(i(!1),u(-1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),e.jsxs("div",{className:"relative",ref:m,children:[e.jsxs("div",{className:"relative",children:[e.jsx(Nt,{...a,value:l,onChange:e=>{c(e.target.value),a.onChange&&a.onChange(e)},onKeyDown:e=>{switch(e.key){case"ArrowDown":e.preventDefault(),n?u((e=>e<r.length-1?e+1:e)):i(!0);break;case"ArrowUp":e.preventDefault(),u((e=>e>0?e-1:0));break;case"Enter":e.preventDefault(),n&&-1!==d&&p(r[d]),i(!1);break;case"Escape":i(!1),u(-1)}},"aria-haspopup":"listbox","aria-controls":"dropdown-list",className:ne("bg-surface-secondary",t??""),ref:o}),e.jsx("button",{type:"button",className:"text-tertiary absolute inset-y-0 right-0 flex items-center rounded-md px-2 hover:text-secondary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring-primary",onClick:()=>i(!n),"aria-label":n?"Close dropdown":"Open dropdown",children:e.jsx("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),n&&e.jsx("ul",{id:"dropdown-list",role:"listbox",className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md border border-border-medium bg-surface-secondary shadow-lg focus:ring-1 focus:ring-inset focus:ring-ring-primary",children:r.map(((t,r)=>e.jsx("li",{role:"option","aria-selected":r===d,className:ne("cursor-pointer rounded-md px-3 py-2","focus:bg-surface-tertiary focus:outline-none focus:ring-1 focus:ring-inset focus:ring-ring-primary",r===d?"bg-surface-active text-primary":"text-secondary hover:bg-surface-tertiary"),onClick:()=>p(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p(t))},tabIndex:0,children:t},r)))})]})}));ls.displayName="InputWithDropdown";const cs=t.createContext({showToast:()=>({})});exports.Accordion=ie,exports.AccordionContent=de,exports.AccordionItem=le,exports.AccordionTrigger=ce,exports.AlertDialog=he,exports.AlertDialogAction=je,exports.AlertDialogCancel=Ne,exports.AlertDialogContent=be,exports.AlertDialogDescription=ye,exports.AlertDialogFooter=ve,exports.AlertDialogHeader=Ce,exports.AlertDialogTitle=we,exports.AlertDialogTrigger=xe,exports.AnimatedSearchInput=Or,exports.AnimatedTabs=function({tabs:r,className:s="",tabListClassName:a="",tabClassName:o="",tabPanelClassName:n="",containerClassName:i="",tabListProps:l={},defaultSelectedId:c}){const d=r.map(((e,t)=>e.id||`tab-${t}`)),u=c||d[0],m=t.useRef(null);return t.useEffect((()=>{const e=m.current;if(!e)return;const t=()=>{const t=e.querySelector('[data-state="active"]');t&&(e.style.setProperty("--tab-left",`${t.offsetLeft}px`),e.style.setProperty("--tab-width",`${t.offsetWidth}px`))};t();const r=new MutationObserver(t);return r.observe(e,{attributes:!0,subtree:!0,attributeFilter:["data-state"]}),()=>r.disconnect()}),[r]),e.jsx("div",{className:`w-full ${s}`,children:e.jsxs(q.TabProvider,{defaultSelectedId:u,children:[e.jsx(q.TabList,{ref:m,"aria-label":"Tabs",className:`animated-tab-list flex py-1 ${a}`,...l,children:r.map(((t,r)=>e.jsx(me,{id:d[r],disabled:t.disabled,className:o,"data-state":d[r]===u?"active":"inactive",children:t.label},d[r])))}),e.jsx("div",{className:ne("animated-panels relative flex w-full flex-col items-center overflow-hidden p-0",i),children:r.map(((t,r)=>e.jsx(pe,{id:`panel-${d[r]}`,tabId:d[r],className:n,children:t.content},`panel-${d[r]}`)))})]})})},exports.AnthropicIcon=function({size:t=25,className:r=""}){return e.jsxs("svg",{viewBox:"0 0 24 16",overflow:"visible",width:t,height:t,className:ne("fill-current text-black",r),children:[e.jsx("g",{style:{transform:"translateX(13px) rotateZ(0deg)",transformOrigin:"4.775px 7.73501px"},children:e.jsx("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M0,0 C0,0 6.1677093505859375,15.470022201538086 6.1677093505859375,15.470022201538086 C6.1677093505859375,15.470022201538086 9.550004005432129,15.470022201538086 9.550004005432129,15.470022201538086 C9.550004005432129,15.470022201538086 3.382294178009033,0 3.382294178009033,0 C3.382294178009033,0 0,0 0,0 C0,0 0,0 0,0z"})}),e.jsx("g",{style:{transform:"none",transformOrigin:"7.935px 7.73501px"},opacity:"1",children:e.jsx("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 7.93500280380249,3.911694288253784 7.93500280380249,3.911694288253784 C7.93500280380249,3.911694288253784 10.045400619506836,9.348296165466309 10.045400619506836,9.348296165466309 C10.045400619506836,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309z M6.166755199432373,0 C6.166755199432373,0 0,15.470022201538086 0,15.470022201538086 C0,15.470022201538086 3.4480772018432617,15.470022201538086 3.4480772018432617,15.470022201538086 C3.4480772018432617,15.470022201538086 4.709278583526611,12.22130012512207 4.709278583526611,12.22130012512207 C4.709278583526611,12.22130012512207 11.16093635559082,12.22130012512207 11.16093635559082,12.22130012512207 C11.16093635559082,12.22130012512207 12.421928405761719,15.470022201538086 12.421928405761719,15.470022201538086 C12.421928405761719,15.470022201538086 15.87000560760498,15.470022201538086 15.87000560760498,15.470022201538086 C15.87000560760498,15.470022201538086 9.703250885009766,0 9.703250885009766,0 C9.703250885009766,0 6.166755199432373,0 6.166755199432373,0 C6.166755199432373,0 6.166755199432373,0 6.166755199432373,0z"})})]})},exports.AnthropicMinimalIcon=function(){return e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"m17.304 3.5472h-3.6718l6.6959 16.906h3.6718zm-10.608 0-6.6959 16.906h3.7442l1.3693-3.5502h7.0052l1.3693 3.5502h3.7442l-6.6959-16.906zm-0.37114 10.216 2.2914-5.9413 2.2914 5.9413z"})})},exports.AppleIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 814 1000",id:"apple",className:"h-6 w-6",children:e.jsx("path",{d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z",fill:"currentColor"})})},exports.ArchiveIcon=function({className:t="icon-md"}){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.62188 3.07918C3.87597 2.571 4.39537 2.25 4.96353 2.25H13.0365C13.6046 2.25 14.124 2.571 14.3781 3.07918L15.75 5.82295V13.5C15.75 14.7426 14.7426 15.75 13.5 15.75H4.5C3.25736 15.75 2.25 14.7426 2.25 13.5V5.82295L3.62188 3.07918ZM13.0365 3.75H4.96353L4.21353 5.25H13.7865L13.0365 3.75ZM14.25 6.75H3.75V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25H13.5C13.9142 14.25 14.25 13.9142 14.25 13.5V6.75ZM6.75 9C6.75 8.58579 7.08579 8.25 7.5 8.25H10.5C10.9142 8.25 11.25 8.58579 11.25 9C11.25 9.41421 10.9142 9.75 10.5 9.75H7.5C7.08579 9.75 6.75 9.41421 6.75 9Z",fill:"currentColor"})})},exports.AssistantIcon=function({className:t="",size:r="1em"}){const s=r,a=r;return e.jsxs("svg",{width:a,height:s,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:ne("text-token-secondary h-2/3 w-2/3",t),xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),e.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),e.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})},exports.AttachmentIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 7C9 4.23858 11.2386 2 14 2C16.7614 2 19 4.23858 19 7V15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15V9C5 8.44772 5.44772 8 6 8C6.55228 8 7 8.44772 7 9V15C7 17.7614 9.23858 20 12 20C14.7614 20 17 17.7614 17 15V7C17 5.34315 15.6569 4 14 4C12.3431 4 11 5.34315 11 7V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V9C13 8.44772 13.4477 8 14 8C14.5523 8 15 8.44772 15 9V15C15 16.6569 13.6569 18 12 18C10.3431 18 9 16.6569 9 15V7Z",fill:"currentColor"})})},exports.Avatar=({user:r,size:s=32,className:a="",alt:o,showDefaultWhenEmpty:n=!0})=>{const i=at(r),[l,c]=t.useState(!1),[d,u]=t.useState(!1),m=t.useMemo((()=>r?.avatar||r?.username||r?.email||""),[r?.avatar,r?.username,r?.email]),p=t.useMemo((()=>o||`${r?.name||r?.username||r?.email||""}'s avatar`),[o,r?.name,r?.username,r?.email]),h=t.useMemo((()=>!m||d?"":(r?.avatar??"")||i||""),[r?.avatar,i,m,d]),x=t.useCallback((()=>{c(!0)}),[]),f=t.useCallback((()=>{u(!0),c(!1)}),[]),g=t.useCallback((()=>e.jsx("div",{style:{backgroundColor:"rgb(121, 137, 255)",width:`${s}px`,height:`${s}px`,boxShadow:"rgba(240, 246, 252, 0.1) 0px 0px 0px 1px"},className:`relative flex items-center justify-center rounded-full p-1 text-text-primary ${a}`,"aria-hidden":"true",children:e.jsx(Br,{})})),[s,a]);return 0===m.length&&n?e.jsx(g,{}):m.length>0&&!d?e.jsxs("div",{className:"relative",style:{width:`${s}px`,height:`${s}px`},children:[!l&&e.jsx(Ot,{className:"rounded-full",style:{width:`${s}px`,height:`${s}px`}}),e.jsx("img",{style:{width:`${s}px`,height:`${s}px`,display:l?"block":"none"},className:`rounded-full ${a}`,src:h,alt:p,onLoad:x,onError:f})]}):d&&n?e.jsx(g,{}):null},exports.AzureMinimalIcon=function({size:t=25,className:r="h-4 w-4"}){const s=t,a=t;return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne(r,""),width:a,height:s,xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"m8.0458 0.81981a1.1197 1.1197 0 0 0-1.0608 0.76184l-6.7912 20.123a1.1178 1.1178 0 0 0 1.0592 1.4751h5.4647a1.1197 1.1197 0 0 0 1.0608-0.7615l1.3528-4.0084-2.3684-2.2107a0.51536 0.51536 0 0 1 0.35193-0.8923h3.0639l1.8213-5.3966-2.8111-8.3294a1.1181 1.1181 0 0 0-1.0595-0.76049h-0.0836z"}),e.jsx("path",{d:"m7.1147 15.307a0.51536 0.51536 0 0 0-0.35193 0.8923l7.1552 6.6782a1.1248 1.1248 0 0 0 0.76724 0.30238h0.2417a1.1181 1.1181 0 0 0 1.0534-1.4755l-2.1591-6.3974z"}),e.jsx("path",{d:"m17.015 1.5807a1.1178 1.1178 0 0 0-1.0593-0.76049h-7.8258a1.1181 1.1181 0 0 1 1.0593 0.76049l6.7916 20.123a1.1181 1.1181 0 0 1-1.0593 1.4757h7.8261a1.1181 1.1181 0 0 0 1.059-1.4757z"})]})},exports.Badge=function({icon:t,label:r,id:s,isActive:a=!1,isEditing:o=!1,isDragging:n=!1,isAvailable:i=!0,isInChat:l=!1,onBadgeAction:d,onToggle:u,className:m,...p}){const h=o&&i,x="1"===s&&l;return e.jsxs(R.motion.button,{onClick:e=>{if(x)return e.preventDefault(),void e.stopPropagation();!o&&u&&(e.preventDefault(),e.stopPropagation(),u())},className:ne("group relative inline-flex items-center gap-1.5 rounded-full px-4 py-1.5","border border-border-medium text-sm font-medium transition-shadow md:w-full","size-9 p-2 md:p-3",a?"bg-surface-active shadow-md":"bg-surface-chat shadow-sm hover:bg-surface-hover hover:shadow-md","active:scale-95 active:shadow-inner",h&&"cursor-move",x&&"cursor-not-allowed opacity-50 hover:shadow-sm",m),animate:{scale:n?1.1:1,boxShadow:n?"0 10px 25px rgba(0,0,0,0.1)":void 0},whileTap:{scale:n?1.1:x?1:.97},transition:{type:"tween",duration:.1,ease:"easeOut"},...p,children:[t&&e.jsx(t,{className:ne("relative h-5 w-5 md:h-4 md:w-4",!r&&"mx-auto")}),e.jsx("span",{className:"relative hidden md:inline",children:r}),o&&!n&&e.jsx(R.motion.button,{className:"absolute -right-1 -top-1 flex h-6 w-6 items-center justify-center rounded-full bg-surface-secondary-alt text-text-primary shadow-sm md:h-5 md:w-5",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},whileTap:{scale:.9},onMouseDown:e=>e.stopPropagation(),onClick:e=>{e.stopPropagation(),d?.()},children:i?e.jsx(c.X,{className:"h-3 w-3"}):e.jsx(c.Plus,{className:"h-3 w-3"})})]})},exports.BedrockIcon=function({size:t=25,className:r=""}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:ne("fill-current text-black",r),children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M12,18.1397014 L9.574,18.9487014 L8.628,18.3177014 L9.658,17.9737014 L9.342,17.0257014 L7.574,17.6147014 L7,17.2327014 L7,14.4997014 C7,14.3107014 6.893,14.1377014 6.724,14.0527014 L5,13.1907014 L5,10.8087014 L6.5,10.0587014 L8,10.8087014 L8,12.4997014 C8,12.6897014 8.107,12.8627014 8.276,12.9477014 L10.276,13.9477014 L10.724,13.0527014 L9,12.1907014 L9,10.8087014 L10.724,9.94770136 C10.893,9.86270136 11,9.68970136 11,9.49970136 L11,7.99970136 L10,7.99970136 L10,9.19070136 L8.5,9.94070136 L7,9.19070136 L7,6.76770136 L8,6.10070136 L8,7.99970136 L9,7.99970136 L9,5.43470136 L9.574,5.05170136 L12,5.86070136 L12,18.1397014 Z M17.5,16.9997014 C17.775,16.9997014 18,17.2237014 18,17.4997014 C18,17.7757014 17.775,17.9997014 17.5,17.9997014 C17.225,17.9997014 17,17.7757014 17,17.4997014 C17,17.2237014 17.225,16.9997014 17.5,16.9997014 L17.5,16.9997014 Z M16.5,5.99970136 C16.775,5.99970136 17,6.22370136 17,6.49970136 C17,6.77570136 16.775,6.99970136 16.5,6.99970136 C16.225,6.99970136 16,6.77570136 16,6.49970136 C16,6.22370136 16.225,5.99970136 16.5,5.99970136 L16.5,5.99970136 Z M18.5,11.9997014 C18.775,11.9997014 19,12.2237014 19,12.4997014 C19,12.7757014 18.775,12.9997014 18.5,12.9997014 C18.225,12.9997014 18,12.7757014 18,12.4997014 C18,12.2237014 18.225,11.9997014 18.5,11.9997014 L18.5,11.9997014 Z M17.092,12.9997014 C17.299,13.5807014 17.849,13.9997014 18.5,13.9997014 C19.327,13.9997014 20,13.3277014 20,12.4997014 C20,11.6727014 19.327,10.9997014 18.5,10.9997014 C17.849,10.9997014 17.299,11.4197014 17.092,11.9997014 L13,11.9997014 L13,9.99970136 L16.5,9.99970136 C16.776,9.99970136 17,9.77670136 17,9.49970136 L17,7.90770136 C17.581,7.70070136 18,7.15070136 18,6.49970136 C18,5.67270136 17.327,4.99970136 16.5,4.99970136 C15.673,4.99970136 15,5.67270136 15,6.49970136 C15,7.15070136 15.419,7.70070136 16,7.90770136 L16,8.99970136 L13,8.99970136 L13,5.49970136 C13,5.28470136 12.862,5.09370136 12.658,5.02570136 L9.658,4.02570136 C9.511,3.97670136 9.351,3.99870136 9.223,4.08370136 L6.223,6.08370136 C6.084,6.17670136 6,6.33270136 6,6.49970136 L6,9.19070136 L4.276,10.0527014 C4.107,10.1377014 4,10.3107014 4,10.4997014 L4,13.4997014 C4,13.6897014 4.107,13.8627014 4.276,13.9477014 L6,14.8087014 L6,17.4997014 C6,17.6667014 6.084,17.8237014 6.223,17.9157014 L9.223,19.9157014 C9.306,19.9717014 9.402,19.9997014 9.5,19.9997014 C9.553,19.9997014 9.606,19.9917014 9.658,19.9737014 L12.658,18.9737014 C12.862,18.9067014 13,18.7157014 13,18.4997014 L13,15.9997014 L15.293,15.9997014 L16.146,16.8537014 L16.159,16.8407014 C16.061,17.0407014 16,17.2627014 16,17.4997014 C16,18.3267014 16.673,18.9997014 17.5,18.9997014 C18.327,18.9997014 19,18.3267014 19,17.4997014 C19,16.6727014 18.327,15.9997014 17.5,15.9997014 C17.262,15.9997014 17.04,16.0607014 16.841,16.1597014 L16.854,16.1467014 L15.854,15.1467014 C15.76,15.0527014 15.633,14.9997014 15.5,14.9997014 L13,14.9997014 L13,12.9997014 L17.092,12.9997014 Z"})})})},exports.BirthdayIcon=function({className:t=""}){return e.jsxs("svg",{version:"1.1",viewBox:"0 0 233.33 290",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:ne("h-9 w-9",t),children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"linearGradient1842",x1:"163.92",x2:"173.66",y1:"22.212",y2:"-6.5784",gradientTransform:"translate(.10391 .050143)",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#640a62",offset:"0"}),e.jsx("stop",{stopColor:"#852283",offset:".49917"}),e.jsx("stop",{stopColor:"#640a62",offset:"1"})]})}),e.jsxs("g",{children:[e.jsx("path",{transform:"matrix(.43416 .90084 -.89966 .4366 0 0)",d:"m259.29-126.03a232.2 237.56 0 0 1-17.412 231.34l-193.32-131.59z",fill:"url(#linearGradient1842)"}),e.jsx("path",{transform:"matrix(.6967 .051926 -.051926 .6967 35.578 23.196)",d:"m50.818 31.415c-1.4654 2.4749-10.838 2.4195-12.997 4.3204-2.1584 1.9009-3.288 11.206-5.9282 12.347-2.6402 1.1409-10.191-4.4132-13.054-4.1441-2.8636 0.26917-9.2466 7.133-12.053 6.5041-2.8066-0.62889-5.6503-9.5602-8.1252-11.026-2.4749-1.4654-11.673 0.33572-13.574-1.8227s1.0482-11.056-0.0927-13.696c-1.1409-2.6402-9.6412-6.5898-9.9104-9.4533-0.26917-2.8636 7.3463-8.328 7.9752-11.135 0.62889-2.8066-3.9265-10.998-2.4612-13.473 1.4654-2.4749 10.838-2.4195 12.997-4.3204 2.1584-1.9009 3.288-11.206 5.9282-12.347 2.6402-1.1409 10.191 4.4132 13.054 4.1441 2.8636-0.26917 9.2466-7.133 12.053-6.5041 2.8066 0.62889 5.6503 9.5602 8.1252 11.026s11.673-0.33572 13.574 1.8227c1.9009 2.1584-1.0482 11.056 0.0927 13.696 1.1409 2.6402 9.6412 6.5898 9.9104 9.4533 0.26917 2.8635-7.3463 8.328-7.9752 11.135-0.62889 2.8066 3.9265 10.998 2.4612 13.473z",fill:"#ff9d78",stroke:"#f29472",strokeWidth:"4.7877"}),e.jsx("circle",{cx:"170.36",cy:"215.76",r:"12.903",fill:"#cfffff"}),e.jsx("path",{d:"m220.77 174.77c-88.526 101.03-191.21 85.731-209.5 82.142-2.2101-2e-5 -2.6686 0.42426-3.437 2.0021l-1.7042 7.5028c0.056197 2.3603 0.37544 2.6428 1.9121 3.5409 18.396 3.3746 130.27 19.488 223.46-86.881 0.64011-1.5095 0.46653-3.1324-0.59137-4.7337l-5.1558-3.6482c-1.586-0.8743-3.9524-0.94332-4.9837 0.0751z",color:"#000000",fill:"#ff9d78",stroke:"#f29472",strokeLinejoin:"round",strokeWidth:"2.8913"}),e.jsxs("g",{fill:"#cfffff",children:[e.jsx("circle",{cx:"72.684",cy:"99.47",r:"12.903"}),e.jsx("circle",{cx:"99.144",cy:"172.32",r:"12.903"}),e.jsx("circle",{cx:"59.617",cy:"214.78",r:"12.903"}),e.jsx("circle",{cx:"135.4",cy:"118.42",r:"12.903"}),e.jsx("path",{transform:"rotate(38.66)",d:"m254.21-1.9608a12.903 12.903 0 0 1-6.4852 11.194 12.903 12.903 0 0 1-12.937-0.0582 12.903 12.903 0 0 1-6.3843-11.252l12.903 0.1161z"}),e.jsx("path",{d:"m29.476 158.16a12.903 12.903 0 0 0-3.6562 0.5293l-3.3691 23.189a12.903 12.903 0 0 0 7.0254 2.0879 12.903 12.903 0 0 0 12.904-12.904 12.903 12.903 0 0 0-12.904-12.902z"})]})]})]})},exports.Blocks=function({className:t=""}){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:ne("lucide lucide-blocks",t),children:[e.jsx("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),e.jsx("path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3"})]})},exports.Breadcrumb=ke,exports.BreadcrumbEllipsis=Ie,exports.BreadcrumbItem=Me,exports.BreadcrumbLink=Se,exports.BreadcrumbList=Le,exports.BreadcrumbPage=Re,exports.BreadcrumbSeparator=ze,exports.Button=Ve,exports.ChatGPTMinimalIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"lucide lucide-bot",children:[e.jsx("rect",{width:"18",height:"10",x:"3",y:"11",rx:"2"}),e.jsx("circle",{cx:"12",cy:"5",r:"2"}),e.jsx("path",{d:"M12 7v4"}),e.jsx("line",{x1:"8",x2:"8",y1:"16",y2:"16"}),e.jsx("line",{x1:"16",x2:"16",y1:"16",y2:"16"})]})},exports.CheckMark=Vr,exports.Checkbox=He,exports.CheckboxButton=as,exports.CircleHelpIcon=function({className:t="icon-md-heavy",size:r="1em"}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:ne(t),children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e.jsx("path",{d:"M12 17h.01"})]})},exports.Clipboard=function({className:t="icon-md-heavy",size:r="1em"}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne(t),children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-9a3 3 0 0 1 3-3h2zm2 2h5a3 3 0 0 1 3 3v5h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-9a1 1 0 0 0-1 1zM5 9a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1z",clipRule:"evenodd"})})},exports.CodePaths=function(){return e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M21.333 23L26.333 18L21.333 13",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M14.667 13L9.66699 18L14.667 23",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.CodeyIcon=function({size:t=25,className:r=""}){return e.jsx("svg",{width:t,height:t,className:ne("dark:fill-white",r),viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:e.jsx("path",{d:"M2 4.006C2 2.898 2.897 2 4.006 2h9.988C15.102 2 16 2.897 16 4.006v9.988A2.005 2.005 0 0 1 13.994 16H4.006A2.005 2.005 0 0 1 2 13.994V4.006zM13.992 9l.003-.003L10.997 6 9.75 7.247 11.503 9 9.75 10.753 10.997 12l2.997-2.997L13.992 9zm-9.99 0L4 8.997 6.997 6l1.247 1.247L6.492 9l1.753 1.753L6.997 12 4 9.003 4.003 9z",fillRule:"evenodd"})})},exports.Combobox=function({selectedValue:r,displayValue:a,items:o,setValue:i,ariaLabel:l,searchPlaceholder:d,selectPlaceholder:u,isCollapsed:m,SelectIcon:p}){const h=(o??[]).map((e=>"string"==typeof e?{label:e,value:e}:e)),{open:x,setOpen:f,setSearchValue:g,matches:b}=ot({value:r,options:h});return e.jsx(ae.Root,{value:r,onValueChange:i,open:x,onOpenChange:()=>{!0!==x?setTimeout((()=>{f(!x)}),75):f(!1)},children:e.jsxs(n.ComboboxProvider,{open:x,setOpen:f,resetValueOnHide:!0,includesBaseElement:!1,setValue:e=>{t.startTransition((()=>{g(e)}))},children:[e.jsx(jr,{"aria-label":l,className:ne("flex items-center gap-2 [&>span]:line-clamp-1 [&>span]:flex [&>span]:w-full [&>span]:items-center [&>span]:gap-1 [&>span]:truncate [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0",m?"flex h-9 w-9 shrink-0 items-center justify-center p-0 [&>span]:w-auto [&>svg]:hidden":"","bg-white text-black hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-gray-500 dark:bg-gray-850 dark:text-white"),children:e.jsxs(yr,{placeholder:u,children:[e.jsx("div",{className:"assistant-item flex items-center justify-center overflow-hidden rounded-full",children:p||e.jsx(s.ChevronDownIcon,{})}),e.jsx("span",{className:ne("ml-2",m?"hidden":""),style:{userSelect:"none"},children:r?a??r:u&&u})]})}),e.jsx(ae.Portal,{children:e.jsxs(ae.Content,{role:"dialog","aria-label":l+"s",position:"popper",className:ne("bg-popover text-popover-foreground relative z-50 max-h-[52vh] min-w-[8rem] overflow-hidden rounded-md border border-gray-200 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-gray-600","data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1","bg-white dark:bg-gray-700"),children:[e.jsxs(ae.Viewport,{className:"mb-5 h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",children:[e.jsxs("div",{className:"group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-white px-3 py-2 text-black duration-300 dark:bg-gray-700 dark:text-white",children:[e.jsx(c.Search,{className:"h-4 w-4 text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"}),e.jsx(n.Combobox,{autoSelect:!0,placeholder:d,className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-gray-700/10 dark:focus:ring-gray-200/10",onBlurCapture:e=>{e.preventDefault(),e.stopPropagation()}}),e.jsx(n.ComboboxCancel,{hideWhenEmpty:!0,className:"relative flex h-5 w-5 items-center justify-end text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"})]}),e.jsx(n.ComboboxList,{className:"overflow-y-auto p-1 py-2",children:b.map((({label:t,value:r,icon:a})=>e.jsx(ae.Item,{value:`${r??""}`,asChild:!0,children:e.jsxs(n.ComboboxItem,{className:ne("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","rounded-lg hover:bg-gray-100/50 hover:bg-gray-50 dark:text-white dark:hover:bg-gray-600"),onTouchEnd:()=>{i(`${r??""}`),f(!1)},children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(ae.ItemIndicator,{children:e.jsx(s.CheckIcon,{className:"h-4 w-4"})})}),e.jsx(ae.ItemText,{children:e.jsxs("div",{className:"flex items-center justify-center gap-3 dark:text-white [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0 [&_svg]:text-foreground",children:[e.jsx("div",{className:"assistant-item overflow-hidden rounded-full",children:a&&a}),t]})})]})},r)))})]}),e.jsx(kr,{className:"absolute bottom-0 left-0 right-0"})]})})]})})},exports.ContinueIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne("h-3 w-3 -rotate-180",t),height:"19",width:"19",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("polygon",{points:"11 19 2 12 11 5 11 19"}),e.jsx("polygon",{points:"22 19 13 12 22 5 22 19"})]})},exports.ControlCombobox=ns,exports.CrossIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne(t,"h-4 w-4"),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})},exports.CustomMinimalIcon=function({size:t=25,className:r=""}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:ne("lucide lucide-bot",r),children:[e.jsx("path",{d:"M12 8V4H8"}),e.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),e.jsx("path",{d:"M2 14h2"}),e.jsx("path",{d:"M20 14h2"}),e.jsx("path",{d:"M15 13v2"}),e.jsx("path",{d:"M9 13v2"})]})},exports.DataIcon=function({className:t="icon-sm"}){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.00633 5.5C6.02321 5.53319 6.07042 5.60366 6.19525 5.70906C6.42458 5.9027 6.81573 6.12215 7.38659 6.32603C8.5196 6.73067 10.1506 7 12 7C13.8494 7 15.4804 6.73067 16.6134 6.32603C17.1843 6.12215 17.5754 5.9027 17.8048 5.70906C17.9296 5.60366 17.9768 5.53319 17.9937 5.5C17.9768 5.46681 17.9296 5.39634 17.8048 5.29094C17.5754 5.0973 17.1843 4.87785 16.6134 4.67397C15.4804 4.26933 13.8494 4 12 4C10.1506 4 8.5196 4.26933 7.38659 4.67397C6.81573 4.87785 6.42458 5.0973 6.19525 5.29094C6.07042 5.39634 6.02321 5.46681 6.00633 5.5ZM18 7.91726C17.7726 8.02403 17.5333 8.12123 17.2861 8.20951C15.8856 8.70968 14.0166 9 12 9C9.98341 9 8.1144 8.70968 6.71392 8.20951C6.46674 8.12123 6.22738 8.02403 6 7.91726V11.9866C6.00813 12.0073 6.03931 12.0661 6.14259 12.1624C6.31976 12.3277 6.63181 12.5252 7.10609 12.7189C8.04837 13.1039 9.43027 13.3932 11.051 13.476C11.6026 13.5042 12.0269 13.9741 11.9987 14.5257C11.9705 15.0773 11.5005 15.5016 10.949 15.4734C9.17744 15.3829 7.55934 15.0646 6.34969 14.5704C6.23097 14.5219 6.11419 14.4709 6 14.4173V18.4866C6.00813 18.5073 6.03931 18.5661 6.14259 18.6624C6.31976 18.8277 6.63181 19.0252 7.10609 19.2189C8.04837 19.6039 9.43027 19.8932 11.051 19.976C11.6026 20.0042 12.0269 20.4741 11.9987 21.0257C11.9705 21.5773 11.5005 22.0016 10.949 21.9734C9.17744 21.8829 7.55934 21.5646 6.34969 21.0704C5.74801 20.8246 5.19611 20.5146 4.77833 20.1249C4.35948 19.7341 4 19.1866 4 18.5V5.5C4 4.74631 4.43048 4.16346 4.90494 3.76283C5.38405 3.35829 6.01803 3.03902 6.71392 2.79049C8.1144 2.29032 9.98341 2 12 2C14.0166 2 15.8856 2.29032 17.2861 2.79049C17.982 3.03902 18.616 3.35829 19.0951 3.76283C19.5695 4.16346 20 4.74631 20 5.5V10C20 10.5523 19.5523 11 19 11C18.4477 11 18 10.5523 18 10V7.91726ZM17.5 13C18.0523 13 18.5 13.4477 18.5 14V14.6707C18.851 14.7948 19.172 14.9823 19.4492 15.2195L20.0308 14.8837C20.5091 14.6075 21.1207 14.7714 21.3968 15.2497C21.673 15.728 21.5091 16.3396 21.0308 16.6157L20.4499 16.9511C20.4828 17.1291 20.5 17.3125 20.5 17.5C20.5 17.6873 20.4828 17.8707 20.45 18.0485L21.0308 18.3838C21.5091 18.6599 21.6729 19.2715 21.3968 19.7498C21.1206 20.2281 20.5091 20.392 20.0308 20.1158L19.4495 19.7803C19.1722 20.0176 18.8511 20.2052 18.5 20.3293V21C18.5 21.5523 18.0523 22 17.5 22C16.9477 22 16.5 21.5523 16.5 21V20.3293C16.1489 20.2052 15.8277 20.0176 15.5504 19.7802L14.969 20.1159C14.4907 20.392 13.8791 20.2282 13.603 19.7499C13.3269 19.2716 13.4907 18.66 13.969 18.3839L14.55 18.0484C14.5172 17.8706 14.5 17.6873 14.5 17.5C14.5 17.3127 14.5172 17.1294 14.55 16.9515L13.9691 16.6161C13.4908 16.34 13.3269 15.7284 13.6031 15.2501C13.8792 14.7718 14.4908 14.608 14.9691 14.8841L15.5504 15.2197C15.8278 14.9824 16.1489 14.7948 16.5 14.6707V14C16.5 13.4477 16.9477 13 17.5 13ZM16.624 17.0174C16.6274 17.0117 16.6308 17.0059 16.6342 17.0001C16.6374 16.9946 16.6405 16.989 16.6436 16.9834C16.8187 16.6937 17.1367 16.5 17.5 16.5C17.8645 16.5 18.1835 16.6951 18.3583 16.9865C18.3607 16.9909 18.3632 16.9953 18.3658 16.9997C18.3685 17.0044 18.3713 17.0091 18.3741 17.0138C18.4543 17.1577 18.5 17.3235 18.5 17.5C18.5 17.6737 18.4557 17.8371 18.3778 17.9794C18.3737 17.9861 18.3697 17.9929 18.3657 17.9998C18.3619 18.0064 18.3581 18.0131 18.3545 18.0198C18.1789 18.3077 17.8619 18.5 17.5 18.5C17.1362 18.5 16.8178 18.3058 16.6428 18.0154C16.64 18.0102 16.6371 18.005 16.6341 17.9999C16.631 17.9945 16.6278 17.9891 16.6246 17.9838C16.5452 17.8404 16.5 17.6755 16.5 17.5C16.5 17.325 16.545 17.1605 16.624 17.0174Z",fill:"currentColor"})})},exports.DataTable=function({columns:r,data:s,onDelete:a,filterColumn:o,defaultSort:n=[],className:i="",isFetchingNextPage:l=!1,hasNextPage:c=!1,fetchNextPage:d,enableRowSelection:u=!0,showCheckboxes:m=!0,onFilterChange:p,filterValue:h,isLoading:x,enableSearch:f=!0}){const g=it("(max-width: 768px)"),b=t.useRef(null),[C,v]=t.useState(!1),[w,y]=t.useState({}),[j,N]=t.useState(n),[k,L]=t.useState([]),[M,S]=t.useState({}),[R,z]=t.useState(h??""),[I,T]=t.useState(!1),V=t.useMemo((()=>{if(!u||!m)return r;const t={id:"select",header:({table:t})=>e.jsx("div",{className:"flex h-full w-[30px] items-center justify-center",children:e.jsx(He,{checked:t.getIsAllPageRowsSelected(),onCheckedChange:e=>t.toggleAllPageRowsSelected(Boolean(e)),"aria-label":"Select all"})}),cell:({row:t})=>e.jsx(Zr,{checked:t.getIsSelected(),onChange:e=>t.toggleSelected(e),ariaLabel:"Select row"}),meta:{size:"50px"}};return[t,...r]}),[r,u,m]),H=P.useReactTable({data:s,columns:V,getCoreRowModel:P.getCoreRowModel(),getSortedRowModel:P.getSortedRowModel(),getFilteredRowModel:P.getFilteredRowModel(),enableRowSelection:u,enableMultiRowSelection:!0,state:{sorting:j,columnFilters:k,columnVisibility:M,rowSelection:w},onSortingChange:N,onColumnFiltersChange:L,onColumnVisibilityChange:S,onRowSelectionChange:y}),{rows:B}=H.getRowModel(),A=D.useVirtualizer({count:B.length,getScrollElement:()=>b.current,estimateSize:t.useCallback((()=>48),[]),overscan:10}),O=A.getVirtualItems(),Z=A.getTotalSize(),E=O.length>0?O[0].start:0,W=O.length>0?Z-O[O.length-1].end:0;t.useEffect((()=>{const e=b.current;if(!e)return;const t=async()=>{if(!c||l)return;const{scrollTop:t,scrollHeight:r,clientHeight:s}=e;if(r-t<=1.5*s)try{await(d?.())}catch(e){console.error("Unable to fetch next page:",e)}};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)}),[c,l,d]),t.useEffect((()=>{T(!0);const e=setTimeout((()=>{p?.(R),T(!1)}),300);return()=>clearTimeout(e)}),[R,p]);const F=t.useCallback((async()=>{if(a){v(!0);try{const e=H.getFilteredSelectedRowModel().rows.map((e=>e.original));await a(e),y({})}finally{v(!1)}}}),[a,H]),q=Array.from({length:13},((t,r)=>{const s=Math.floor(241*Math.random())+170,a="select"===V[0]?.id?1:0;return e.jsx($t,{className:"motion-safe:animate-fadeIn border-b border-border-light",children:V.map(((t,r)=>{const o=Wr(t,g),n=r===a;return e.jsx(_t,{className:"px-2 py-1 sm:px-4 sm:py-2",style:o,children:e.jsx(Ot,{className:"h-6",style:n?{width:`${s}px`}:{width:"100%"}})},t.id)}))},r)}));return e.jsxs("div",{className:ne("flex h-full flex-col gap-4",i),children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 sm:gap-4",children:[u&&m&&e.jsx(Fr,{onDelete:F,isDeleting:C,disabled:!H.getFilteredSelectedRowModel().rows.length||C,isSmallScreen:g}),void 0!==o&&H.getColumn(o)&&f&&e.jsx("div",{className:"relative flex-1",children:e.jsx(Or,{value:R,onChange:e=>z(e.target.value),isSearching:I,placeholder:"Search..."})})]}),e.jsx("div",{ref:b,className:ne("relative h-[calc(100vh-20rem)] max-w-full overflow-x-auto overflow-y-auto rounded-md border border-black/10 dark:border-white/10","transition-all duration-300 ease-out",I&&"bg-surface-secondary/50",i),children:e.jsxs(Et,{className:"w-full min-w-[300px] table-fixed border-separate border-spacing-0",children:[e.jsx(Wt,{className:"sticky top-0 z-50 bg-surface-secondary",children:H.getHeaderGroups().map((t=>e.jsx($t,{className:"border-b border-border-light",children:t.headers.map((t=>e.jsx(Gt,{className:"whitespace-nowrap bg-surface-secondary px-2 py-2 text-left text-sm font-medium text-text-secondary sm:px-4",style:Wr(t.column.columnDef,g),onClick:t.column.getCanSort()?t.column.getToggleSortingHandler():void 0,children:t.isPlaceholder?null:P.flexRender(t.column.columnDef.header,t.getContext())},t.id)))},t.id)))}),e.jsxs(Ft,{children:[E>0&&e.jsx("tr",{children:e.jsx("td",{style:{height:`${E}px`}})}),x&&q,O.map((t=>{const r=B[t.index];return e.jsx(Er,{row:r,isSmallScreen:g,index:t.index,isSearching:I},r.id)})),!O.length&&e.jsx($t,{className:"hover:bg-transparent",children:e.jsx(_t,{colSpan:r.length,className:"p-4 text-center",children:"No data available"})}),W>0&&e.jsx("tr",{children:e.jsx("td",{style:{height:`${W}px`}})}),(l||c)&&e.jsx($t,{className:"hover:bg-transparent",children:e.jsx(_t,{colSpan:r.length,className:"p-4",children:e.jsx("div",{className:"flex h-full items-center justify-center",children:l?e.jsx(Tr,{className:"size-4"}):c&&e.jsx("div",{className:"h-6"})})})})]})]})})]})},exports.DataTableColumnHeader=function({column:t,title:r,className:a=""}){return t.getCanSort()?e.jsx("div",{className:ne("flex items-center space-x-2",a),children:e.jsxs(Be,{children:[e.jsx(De,{asChild:!0,children:e.jsxs(Ve,{variant:"ghost",size:"sm",className:"-ml-3 h-8 data-[state=open]:bg-accent",children:[e.jsx("span",{children:r}),"desc"===t.getIsSorted()?e.jsx(s.ArrowDownIcon,{className:"ml-2 h-4 w-4"}):"asc"===t.getIsSorted()?e.jsx(s.ArrowUpIcon,{className:"ml-2 h-4 w-4"}):e.jsx(s.CaretSortIcon,{className:"ml-2 h-4 w-4"})]})}),e.jsxs(Fe,{align:"start",className:"z-[1001]",children:[e.jsxs(qe,{onClick:()=>t.toggleSorting(!1),children:[e.jsx(s.ArrowUpIcon,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Asc"]}),e.jsxs(qe,{onClick:()=>t.toggleSorting(!0),children:[e.jsx(s.ArrowDownIcon,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Desc"]}),e.jsx(Ue,{}),e.jsxs(qe,{onClick:()=>t.toggleVisibility(!1),children:[e.jsx(s.EyeNoneIcon,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Hide"]})]})]})}):e.jsx("div",{className:ne(a),children:r})},exports.DelayedRender=({delay:e,children:t})=>lt(e)((()=>t)),exports.Dialog=ct,exports.DialogButton=Ct,exports.DialogClose=bt,exports.DialogContent=pt,exports.DialogDescription=gt,exports.DialogFooter=xt,exports.DialogHeader=ht,exports.DialogOverlay=It,exports.DialogTemplate=os,exports.DialogTitle=ft,exports.DialogTrigger=dt,exports.DiscordIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"discord",className:"h-6 w-6",children:[e.jsx("circle",{cx:"512",cy:"512",r:"512",fill:"#5865f2"}),e.jsx("path",{fill:"#fff",d:"M689.43 349a422.21 422.21 0 0 0-104.22-32.32 1.58 1.58 0 0 0-1.68.79 294.11 294.11 0 0 0-13 26.66 389.78 389.78 0 0 0-117.05 0 269.75 269.75 0 0 0-13.18-26.66 1.64 1.64 0 0 0-1.68-.79A421 421 0 0 0 334.44 349a1.49 1.49 0 0 0-.69.59c-66.37 99.17-84.55 195.9-75.63 291.41a1.76 1.76 0 0 0 .67 1.2 424.58 424.58 0 0 0 127.85 64.63 1.66 1.66 0 0 0 1.8-.59 303.45 303.45 0 0 0 26.15-42.54 1.62 1.62 0 0 0-.89-2.25 279.6 279.6 0 0 1-39.94-19 1.64 1.64 0 0 1-.16-2.72c2.68-2 5.37-4.1 7.93-6.22a1.58 1.58 0 0 1 1.65-.22c83.79 38.26 174.51 38.26 257.31 0a1.58 1.58 0 0 1 1.68.2c2.56 2.11 5.25 4.23 8 6.24a1.64 1.64 0 0 1-.14 2.72 262.37 262.37 0 0 1-40 19 1.63 1.63 0 0 0-.87 2.28 340.72 340.72 0 0 0 26.13 42.52 1.62 1.62 0 0 0 1.8.61 423.17 423.17 0 0 0 128-64.63 1.64 1.64 0 0 0 .67-1.18c10.68-110.44-17.88-206.38-75.7-291.42a1.3 1.3 0 0 0-.63-.63zM427.09 582.85c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.02 28.44-20.37 51.6-46 51.6zm170.13 0c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.01 28.44-20.17 51.6-46 51.6z"})]})},exports.DotsIcon=function({className:t="h-4 w-4 flex-shrink-0 text-gray-500"}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"12",cy:"12",r:"1"}),e.jsx("circle",{cx:"19",cy:"12",r:"1"}),e.jsx("circle",{cx:"5",cy:"12",r:"1"})]})},exports.Dropdown=({value:t,label:r="",onChange:s,options:a,className:o="",sizeClasses:n,testId:i="dropdown-menu",icon:l,iconOnly:c=!1,renderValue:d,ariaLabel:u,portal:m=!0})=>{const p=oe.useSelectStore({value:t,setValue:e=>{s(e)}}),h=e=>{if(null!=e&&""!==e)return a.filter((e=>!Dr(e))).map((e=>"string"==typeof e?{value:e,label:e}:e)).find((t=>Pr(t)&&t.value===e))};return e.jsxs("div",{className:ne("relative",o),children:[e.jsxs(oe.Select,{store:p,className:ne("focus:ring-offset-ring-offset relative inline-flex items-center justify-between rounded-xl border border-input bg-background px-3 py-2 text-sm text-text-primary transition-all duration-200 ease-in-out hover:bg-accent hover:text-accent-foreground focus:ring-ring-primary",c?"h-full w-10":"w-fit gap-2",o),"data-testid":i,"aria-label":u,children:[e.jsxs("div",{className:"flex w-full items-center gap-2",children:[l,!c&&e.jsxs("span",{className:"block truncate",children:[r,(()=>{const e=h(t);return e&&d?d(e):(e=>{if(null==e||""===e)return"";const t=h(e);return t?t.label:e})(t)})()]})]}),!c&&e.jsx(oe.SelectArrow,{})]}),e.jsx(oe.SelectPopover,{portal:m,store:p,className:ne("popover-ui",n,o,"max-h-[80vh] overflow-y-auto","[pointer-events:auto]"),children:a.map(((r,s)=>{if(Dr(r))return e.jsx("div",{className:"my-1 border-t border-border-heavy"},`divider-${s}`);const a="string"==typeof r?{value:r,label:r}:r;return Pr(a)?e.jsx(oe.SelectItem,{value:String(a.value),className:"select-item","data-theme":a.value,children:e.jsxs("div",{className:"flex w-full items-center gap-2",children:[null!=a.icon&&e.jsx("span",{children:a.icon}),e.jsx("span",{className:"block truncate",children:a.label}),t===a.value&&e.jsx("span",{className:"ml-auto pl-2",children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md block group-hover:hidden",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM16.0755 7.93219C16.5272 8.25003 16.6356 8.87383 16.3178 9.32549L11.5678 16.0755C11.3931 16.3237 11.1152 16.4792 10.8123 16.4981C10.5093 16.517 10.2142 16.3973 10.0101 16.1727L7.51006 13.4227C7.13855 13.014 7.16867 12.3816 7.57733 12.0101C7.98598 11.6386 8.61843 11.6687 8.98994 12.0773L10.6504 13.9039L14.6822 8.17451C15 7.72284 15.6238 7.61436 16.0755 7.93219Z",fill:"currentColor"})})})]})},`option-${s}`):null}))})]})},exports.DropdownMenu=Be,exports.DropdownMenuCheckboxItem=$e,exports.DropdownMenuContent=Fe,exports.DropdownMenuGroup=Pe,exports.DropdownMenuItem=qe,exports.DropdownMenuLabel=_e,exports.DropdownMenuPortal=Ae,exports.DropdownMenuRadioGroup=Ze,exports.DropdownMenuRadioItem=Ge,exports.DropdownMenuSeparator=Ue,exports.DropdownMenuShortcut=Xe,exports.DropdownMenuSub=Oe,exports.DropdownMenuSubContent=We,exports.DropdownMenuSubTrigger=Ee,exports.DropdownMenuTrigger=De,exports.DropdownPopup=({trigger:t,isOpen:r,setIsOpen:s,focusLoop:a,mountByState:o,...n})=>{const i=q.useMenuStore({open:r,setOpen:s,focusLoop:a});return o?e.jsxs(q.MenuProvider,{store:i,children:[t,r&&e.jsx(Kr,{...n})]}):e.jsxs(q.MenuProvider,{store:i,children:[t,e.jsx(Kr,{...n})]})},exports.EditIcon=Ir,exports.ExperimentIcon=function(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e.jsx("path",{d:"M9 3H15M9 3V9.2759C9 9.74377 8.83597 10.1968 8.53644 10.5563L4.85085 14.979C4.30108 15.6387 4 16.4703 4 17.3291V17.3291C4 19.3565 5.64353 21 7.67094 21H16.3291C18.3565 21 20 19.3565 20 17.3291V17.3291C20 16.4703 19.6989 15.6387 19.1492 14.979L15.4636 10.5563C15.164 10.1968 15 9.74377 15 9.2759V3M9 3H8M15 3H16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 14.774C11.5 12.839 12.15 16.7089 18 14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.FacebookIcon=function(){return e.jsxs("svg",{viewBox:"0 0 40 40",width:"25",height:"25",children:[e.jsxs("linearGradient",{id:"a",x1:-277.375,x2:-277.375,y1:406.602,y2:407.573,gradientTransform:"matrix(40 0 0 -39.7778 11115.001 16212.334)",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:0,stopColor:"#0062e0"}),e.jsx("stop",{offset:1,stopColor:"#19afff"})]}),e.jsx("path",{fill:"url(#a)",d:"M16.7 39.8C7.2 38.1 0 29.9 0 20 0 9 9 0 20 0s20 9 20 20c0 9.9-7.2 18.1-16.7 19.8l-1.1-.9h-4.4l-1.1.9z"}),e.jsx("path",{fill:"#fff",d:"m27.8 25.6.9-5.6h-5.3v-3.9c0-1.6.6-2.8 3-2.8H29V8.2c-1.4-.2-3-.4-4.4-.4-4.6 0-7.8 2.8-7.8 7.8V20h-5v5.6h5v14.1c1.1.2 2.2.3 3.3.3 1.1 0 2.2-.1 3.3-.3V25.6h4.4z"})]})},exports.FileIcon=function({file:t,fileType:r}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36",fill:"none",className:"h-10 w-10 flex-shrink-0",width:"36",height:"36",children:[e.jsx("rect",{width:"36",height:"36",rx:"6",fill:r.fill}),(t?.progress??1)>=1&&e.jsx(e.Fragment,{children:e.jsx(r.paths,{})})]})},exports.FilePaths=function(){return e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M18.833 9.66663H12.9997C12.5576 9.66663 12.1337 9.84222 11.8212 10.1548C11.5086 10.4673 11.333 10.8913 11.333 11.3333V24.6666C11.333 25.1087 11.5086 25.5326 11.8212 25.8451C12.1337 26.1577 12.5576 26.3333 12.9997 26.3333H22.9997C23.4417 26.3333 23.8656 26.1577 24.1782 25.8451C24.4907 25.5326 24.6663 25.1087 24.6663 24.6666V15.5L18.833 9.66663Z",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M18.833 9.66663V15.5H24.6663",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.FileUpload=Ur,exports.FormInput=function({field:t,label:r,labelClass:s,inputClass:a,containerClass:o,labelAdjacent:n,placeholder:i="",type:l="string"}){return e.jsxs("div",{className:ne("flex w-full flex-col items-center gap-2",o),children:[e.jsxs("div",{className:"flex w-full items-center justify-start gap-2",children:[e.jsx(Lt,{htmlFor:`${t.name}-input`,className:ne("text-left text-sm font-semibold text-text-primary",s),children:r}),n]}),e.jsx(Nt,{id:`${t.name}-input`,value:t.value??"",onChange:e=>{const r=e.target.value;"number"===l?""===r?t.onChange(r):isNaN(Number(r))||t.onChange(Number(r)):t.onChange(r)},placeholder:i,className:ne("flex h-10 max-h-10 w-full resize-none border-none bg-surface-secondary px-3 py-2",a)})]})},exports.GPTIcon=function({size:t=25,className:r=""}){const s=t,a=t;return e.jsx("svg",{width:a,height:s,viewBox:"0 0 41 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"1.5",className:ne(r,""),children:e.jsx("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z",fill:"currentColor"})})},exports.GearIcon=({className:t=""})=>e.jsxs("svg",{className:t,width:"17",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M11.6439 3C10.9352 3 10.2794 3.37508 9.92002 3.98596L9.49644 4.70605C8.96184 5.61487 7.98938 6.17632 6.93501 6.18489L6.09967 6.19168C5.39096 6.19744 4.73823 6.57783 4.38386 7.19161L4.02776 7.80841C3.67339 8.42219 3.67032 9.17767 4.01969 9.7943L4.43151 10.5212C4.95127 11.4386 4.95127 12.5615 4.43151 13.4788L4.01969 14.2057C3.67032 14.8224 3.67339 15.5778 4.02776 16.1916L4.38386 16.8084C4.73823 17.4222 5.39096 17.8026 6.09966 17.8083L6.93502 17.8151C7.98939 17.8237 8.96185 18.3851 9.49645 19.294L9.92002 20.014C10.2794 20.6249 10.9352 21 11.6439 21H12.3561C13.0648 21 13.7206 20.6249 14.08 20.014L14.5035 19.294C15.0381 18.3851 16.0106 17.8237 17.065 17.8151L17.9004 17.8083C18.6091 17.8026 19.2618 17.4222 19.6162 16.8084L19.9723 16.1916C20.3267 15.5778 20.3298 14.8224 19.9804 14.2057L19.5686 13.4788C19.0488 12.5615 19.0488 11.4386 19.5686 10.5212L19.9804 9.7943C20.3298 9.17767 20.3267 8.42219 19.9723 7.80841L19.6162 7.19161C19.2618 6.57783 18.6091 6.19744 17.9004 6.19168L17.065 6.18489C16.0106 6.17632 15.0382 5.61487 14.5036 4.70605L14.08 3.98596C13.7206 3.37508 13.0648 3 12.3561 3H11.6439Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),e.jsx("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"2"})]}),exports.GeminiIcon=function({size:t=25,className:r=""}){return e.jsxs("svg",{width:t,height:t,className:r,viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e.jsx("path",{fill:"url(#_4rif_paint0_radial_897_42)",d:"M9 18c0-1.245-.24-2.415-.72-3.51a8.934 8.934 0 00-1.912-2.857A8.934 8.934 0 003.51 9.72 8.646 8.646 0 000 9a8.886 8.886 0 003.51-.697 9.247 9.247 0 002.857-1.936A8.934 8.934 0 008.28 3.51C8.76 2.415 9 1.245 9 0c0 1.245.232 2.415.697 3.51a9.247 9.247 0 001.936 2.857 9.247 9.247 0 002.857 1.936A8.886 8.886 0 0018 9c-1.245 0-2.415.24-3.51.72a8.934 8.934 0 00-2.857 1.912 9.247 9.247 0 00-1.935 2.858A8.886 8.886 0 009 18z"}),e.jsx("defs",{children:e.jsxs("radialGradient",{id:"_4rif_paint0_radial_897_42",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(135 9 3.728) scale(25.4558 12.7279)",children:[e.jsx("stop",{offset:".325",stopColor:"#FFDDB7"}),e.jsx("stop",{offset:".706",stopColor:"#076EFF"})]})})]})},exports.GithubIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",children:e.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 0 0-3.84 23.399c.608.112.832-.256.832-.576v-2.015c-3.395.736-4.115-1.632-4.115-1.632a3.241 3.241 0 0 0-1.359-1.792c-1.104-.736.064-.736.064-.736a2.566 2.566 0 0 1 1.824 1.216a2.638 2.638 0 0 0 3.616 1.024a2.607 2.607 0 0 1 .768-1.6c-2.688-.32-5.504-1.344-5.504-5.984a4.677 4.677 0 0 1 1.216-3.168a4.383 4.383 0 0 1 .128-3.136s1.024-.32 3.36 1.216a11.66 11.66 0 0 1 6.112 0c2.336-1.536 3.36-1.216 3.36-1.216a4.354 4.354 0 0 1 .128 3.136a4.628 4.628 0 0 1 1.216 3.168c0 4.672-2.848 5.664-5.536 5.952a2.881 2.881 0 0 1 .832 2.24v3.36c0 .32.224.672.832.576A12 12 0 0 0 12 0z"})})},exports.GoogleIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",id:"google",className:"h-5 w-5",children:[e.jsx("path",{fill:"#fbbb00",d:"M113.47 309.408 95.648 375.94l-65.139 1.378C11.042 341.211 0 299.9 0 256c0-42.451 10.324-82.483 28.624-117.732h.014L86.63 148.9l25.404 57.644c-5.317 15.501-8.215 32.141-8.215 49.456.002 18.792 3.406 36.797 9.651 53.408z"}),e.jsx("path",{fill:"#518ef8",d:"M507.527 208.176C510.467 223.662 512 239.655 512 256c0 18.328-1.927 36.206-5.598 53.451-12.462 58.683-45.025 109.925-90.134 146.187l-.014-.014-73.044-3.727-10.338-64.535c29.932-17.554 53.324-45.025 65.646-77.911h-136.89V208.176h245.899z"}),e.jsx("path",{fill:"#28b446",d:"m416.253 455.624.014.014C372.396 490.901 316.666 512 256 512c-97.491 0-182.252-54.491-225.491-134.681l82.961-67.91c21.619 57.698 77.278 98.771 142.53 98.771 28.047 0 54.323-7.582 76.87-20.818l83.383 68.262z"}),e.jsx("path",{fill:"#f14336",d:"m419.404 58.936-82.933 67.896C313.136 112.246 285.552 103.82 256 103.82c-66.729 0-123.429 42.957-143.965 102.724l-83.397-68.276h-.014C71.23 56.123 157.06 0 256 0c62.115 0 119.068 22.126 163.404 58.936z"})]})},exports.GoogleIconChat=function({size:t=25,className:r=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24px",height:"24px",viewBox:"0 0 512 512",strokeWidth:"1.5",className:ne(r,""),children:e.jsx("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})},exports.GoogleMinimalIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"800px",height:"800px",viewBox:"0 0 512 512",className:ne("h-4 w-4",t),children:e.jsx("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})},exports.HoverCard=vt,exports.HoverCardContent=jt,exports.HoverCardPortal=yt,exports.HoverCardTrigger=wt,exports.InfoHoverCard=({side:t,text:r})=>e.jsxs(vt,{openDelay:50,children:[e.jsxs(wt,{className:"cursor-help",children:[e.jsx(c.CircleHelpIcon,{className:"h-5 w-5 text-text-tertiary"})," "]}),e.jsx(yt,{children:e.jsx(jt,{side:t,className:"z-[999] w-80",children:e.jsx("div",{className:"space-y-2",children:e.jsx("p",{className:"text-sm text-text-secondary",children:r})})})})]}),exports.Input=Nt,exports.InputCombobox=({label:r,labelClassName:s,placeholder:a="Select an option",options:o,className:n,value:i,onChange:l,onBlur:c})=>{const d=e=>null!=e&&"object"==typeof e&&"value"in e,[u,m]=t.useState(!1),[p,h]=t.useState(i),[x,f]=t.useState(!1);t.useEffect((()=>{h(i)}),[i]);const g=e=>{h(e),l(e)};return e.jsxs(q.ComboboxProvider,{value:p,setValue:g,children:[null!=r&&e.jsx(q.ComboboxLabel,{className:ne("mb-2 block text-sm font-medium text-text-primary",s??""),children:r}),e.jsx("div",{className:ne("relative",x?"rounded-md ring-2 ring-ring-primary":""),children:e.jsx(q.Combobox,{placeholder:a,className:ne("h-10 w-full rounded-md border border-border-light bg-surface-primary px-3 py-2 text-sm","placeholder-text-secondary hover:bg-surface-hover","focus:outline-none",n),onChange:e=>g(e.target.value),onBlur:()=>{f(!1),c()},onFocusVisible:()=>{f(!0),m(!0)},onMouseDown:()=>{f(!1)}})}),e.jsx(q.ComboboxPopover,{gutter:4,sameWidth:!0,open:u,onClose:()=>m(!1),className:ne("z-50 max-h-60 w-full overflow-auto rounded-md bg-surface-primary p-1 shadow-lg","animate-in fade-in-0 zoom-in-95"),children:o.map(((t,r)=>e.jsxs(q.ComboboxItem,{className:ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","cursor-pointer hover:bg-surface-tertiary hover:text-text-primary","data-[active-item]:bg-surface-tertiary data-[active-item]:text-text-primary"),value:d(t)?`${t.value??""}`:t,children:[d(t)&&null!=t.icon&&e.jsx("span",{className:"mr-2 flex-shrink-0",children:t.icon}),d(t)?t.label:t]},r)))})]})},exports.InputNumber=kt,exports.InputOTP=mr,exports.InputOTPGroup=pr,exports.InputOTPSeparator=xr,exports.InputOTPSlot=hr,exports.InputWithDropdown=ls,exports.Label=Lt,exports.LightningIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true",className:ne("h-6 w-6",t),children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"})})},exports.LinkIcon=function(){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 5C14.4477 5 14 4.55228 14 4C14 3.44772 14.4477 3 15 3H20C20.5523 3 21 3.44772 21 4V9C21 9.55228 20.5523 10 20 10C19.4477 10 19 9.55228 19 9V6.41421L13.7071 11.7071C13.3166 12.0976 12.6834 12.0976 12.2929 11.7071C11.9024 11.3166 11.9024 10.6834 12.2929 10.2929L17.5858 5H15ZM4 7C4 5.34315 5.34315 4 7 4H10C10.5523 4 11 4.44772 11 5C11 5.55228 10.5523 6 10 6H7C6.44772 6 6 6.44772 6 7V17C6 17.5523 6.44772 18 7 18H17C17.5523 18 18 17.5523 18 17V14C18 13.4477 18.4477 13 19 13C19.5523 13 20 13.4477 20 14V17C20 18.6569 18.6569 20 17 20H7C5.34315 20 4 18.6569 4 17V7Z",fill:"currentColor"})})},exports.ListeningIcon=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:ne(t),strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),e.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),e.jsx("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]})},exports.LockIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-lock",children:[e.jsx("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),e.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})},exports.LogOutIcon=function(){return e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:[e.jsx("path",{d:"M11 3H7C5.89543 3 5 3.89543 5 5V19C5 20.1046 5.89543 21 7 21H11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M20 12H11M20 12L16 16M20 12L16 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.MCPIcon=function({className:t}){return e.jsxs("svg",{width:"195",height:"195",viewBox:"0 2 195 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[e.jsx("path",{d:"M25 97.8528L92.8823 29.9706C102.255 20.598 117.451 20.598 126.823 29.9706V29.9706C136.196 39.3431 136.196 54.5391 126.823 63.9117L75.5581 115.177",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e.jsx("path",{d:"M76.2653 114.47L126.823 63.9117C136.196 54.5391 151.392 54.5391 160.765 63.9117L161.118 64.2652C170.491 73.6378 170.491 88.8338 161.118 98.2063L99.7248 159.6C96.6006 162.724 96.6006 167.789 99.7248 170.913L112.331 183.52",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e.jsx("path",{d:"M109.853 46.9411L59.6482 97.1457C50.2757 106.518 50.2757 121.714 59.6482 131.087V131.087C69.0208 140.459 84.2168 140.459 93.5894 131.087L143.794 80.8822",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"})]})},exports.MessagesSquared=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:ne(t??"","lucide lucide-messages-square"),children:[e.jsx("path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v5Z"}),e.jsx("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})]})},exports.MinimalPlugin=function({size:t,className:r="icon-md"}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.4646 19C15.2219 20.6961 13.7632 22 12 22C10.2368 22 8.77806 20.6961 8.53544 19H6C4.34315 19 3 17.6569 3 16V13.5C3 12.9477 3.44772 12.5 4 12.5H4.5C5.32843 12.5 6 11.8284 6 11C6 10.1716 5.32843 9.5 4.5 9.5H4C3.44772 9.5 3 9.05229 3 8.5L3 6C3 4.34315 4.34315 3 6 3L18 3C19.6569 3 21 4.34315 21 6L21 16C21 17.6569 19.6569 19 18 19H15.4646ZM12 20C12.8284 20 13.5 19.3284 13.5 18.5V18C13.5 17.4477 13.9477 17 14.5 17H18C18.5523 17 19 16.5523 19 16L19 6C19 5.44772 18.5523 5 18 5L6 5C5.44772 5 5 5.44772 5 6V7.53544C6.69615 7.77806 8 9.23676 8 11C8 12.7632 6.69615 14.2219 5 14.4646L5 16C5 16.5523 5.44771 17 6 17H9.5C10.0523 17 10.5 17.4477 10.5 18V18.5C10.5 19.3284 11.1716 20 12 20Z",fill:"currentColor"})})},exports.MobileSidebar=function({className:t}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 8C3 7.44772 3.44772 7 4 7H20C20.5523 7 21 7.44772 21 8C21 8.55228 20.5523 9 20 9H4C3.44772 9 3 8.55228 3 8ZM3 16C3 15.4477 3.44772 15 4 15H14C14.5523 15 15 15.4477 15 16C15 16.5523 14.5523 17 14 17H4C3.44772 17 3 16.5523 3 16Z",fill:"currentColor"})})},exports.MultiSelect=function({items:r,label:s,placeholder:a="Select...",onSelectedValuesChange:o,renderSelectedValues:i=Xr,className:l,selectIcon:c,itemClassName:d,labelClassName:u,selectClassName:m,popoverClassName:p,selectItemsClassName:h,selectedValues:x=[],setSelectedValues:f,renderItemContent:g}){const b=t.useRef(null);return e.jsx("div",{className:l,children:e.jsxs(n.SelectProvider,{value:x,setValue:e=>{f(e),o&&o(e)},children:[s&&e.jsx(n.SelectLabel,{className:ne("mb-1 block text-sm text-text-primary",u),children:s}),e.jsxs(n.Select,{ref:b,className:ne("flex items-center justify-between gap-2 rounded-xl px-3 py-2 text-sm","bg-surface-tertiary text-text-primary shadow-sm hover:cursor-pointer hover:bg-surface-hover","outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75",m,x.length>0&&null!=h&&h),onChange:e=>e.stopPropagation(),children:[c&&e.jsx("span",{children:c}),e.jsx("span",{className:"mr-auto hidden truncate md:block",children:i(x,a)}),e.jsx(n.SelectArrow,{className:"ml-1 hidden stroke-1 text-base opacity-75 md:block"})]}),e.jsx(n.SelectPopover,{gutter:4,sameWidth:!0,modal:!0,unmountOnHide:!0,finalFocus:b,className:ne("animate-popover z-50 flex max-h-[300px]","flex-col overflow-auto overscroll-contain rounded-xl","bg-surface-secondary px-1.5 py-1 text-text-primary shadow-lg","border border-border-light","outline-none",p),children:r.map((t=>{const r=e.jsxs(e.Fragment,{children:[e.jsx(n.SelectItemCheck,{className:"mr-0.5 text-primary"}),e.jsx("span",{className:"truncate",children:t})]}),s=x.includes(t);return e.jsx(n.SelectItem,{value:t,className:ne("flex items-center gap-2 rounded-lg px-2 py-1.5 hover:cursor-pointer","scroll-m-1 outline-none transition-colors","hover:bg-black/[0.075] dark:hover:bg-white/10","data-[active-item]:bg-black/[0.075] dark:data-[active-item]:bg-white/10","w-full min-w-0 text-sm",d),children:g?g(t,r,s):r},t)}))})]})})},exports.NewChatIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ne("text-black dark:text-white",t),"aria-hidden":!0,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7929 2.79289C18.0118 1.57394 19.9882 1.57394 21.2071 2.79289C22.4261 4.01184 22.4261 5.98815 21.2071 7.20711L12.7071 15.7071C12.5196 15.8946 12.2652 16 12 16H9C8.44772 16 8 15.5523 8 15V12C8 11.7348 8.10536 11.4804 8.29289 11.2929L16.7929 2.79289ZM19.7929 4.20711C19.355 3.7692 18.645 3.7692 18.2071 4.2071L10 12.4142V14H11.5858L19.7929 5.79289C20.2308 5.35499 20.2308 4.64501 19.7929 4.20711ZM6 5C5.44772 5 5 5.44771 5 6V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V14C19 13.4477 19.4477 13 20 13C20.5523 13 21 13.4477 21 14V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6C3 4.34314 4.34315 3 6 3H10C10.5523 3 11 3.44771 11 4C11 4.55228 10.5523 5 10 5H6Z",fill:"currentColor"})})},exports.OGDialog=Mt,exports.OGDialogClose=zt,exports.OGDialogContent=Tt,exports.OGDialogDescription=Dt,exports.OGDialogFooter=Ht,exports.OGDialogHeader=Vt,exports.OGDialogOverlay=It,exports.OGDialogPortal=Rt,exports.OGDialogTemplate=is,exports.OGDialogTitle=Bt,exports.OGDialogTrigger=St,exports.OpenAIMinimalIcon=function({className:t="h-4 w-4"}){return e.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"1",viewBox:"0 0 40 40",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z"})})},exports.OpenIDIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",id:"openid",className:"h-5 w-5",children:e.jsx("path",{fill:"currentColor",d:"M271.5 432l-68 32C88.5 453.7 0 392.5 0 318.2c0-71.5 82.5-131 191.7-144.3v43c-71.5 12.5-124 53-124 101.3 0 51 58.5 93.3 135.7 103v-340l68-33.2v384zM448 291l-131.3-28.5 36.8-20.7c-19.5-11.5-43.5-20-70-24.8v-43c46.2 5.5 87.7 19.5 120.3 39.3l35-19.8L448 291z"})})},exports.PaLMIcon=function({size:t=25,className:r=""}){return e.jsxs("svg",{width:t,height:t,className:r,viewBox:"0 0 19 17",fill:"none",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e.jsx("path",{d:"M9.62674 16.2202H9.7049C10.4225 16.2202 11.0016 15.6412 11.0016 14.9236V4.04224H8.33008V14.92C8.33008 15.6376 8.90914 16.2202 9.62674 16.2202Z",fill:"#F9AB00"}),e.jsx("path",{d:"M14.6819 8.02813C13.3249 6.66752 11.2964 6.39398 9.66577 7.2004L15.0585 12.5931C15.2823 12.8169 15.6624 12.7281 15.7583 12.4297C16.2308 10.927 15.8756 9.21822 14.6819 8.02813Z",fill:"#5BB974"}),e.jsx("path",{d:"M4.64953 8.02813C6.00659 6.66752 8.03507 6.39398 9.66567 7.2004L4.27297 12.5931C4.04916 12.8169 3.66904 12.7281 3.57312 12.4297C3.10064 10.927 3.45589 9.21822 4.64953 8.02813Z",fill:"#129EAF"}),e.jsx("path",{d:"M14.284 3.84326C12.1383 3.84326 10.3159 5.25005 9.66577 7.20038H18.1918C18.5399 7.20038 18.7744 6.83092 18.6145 6.5183C17.8081 4.93033 16.1704 3.84326 14.284 3.84326Z",fill:"#AF5CF7"}),e.jsx("path",{d:"M10.5574 1.55901C9.04053 3.07593 8.74567 5.36019 9.66577 7.20039L15.6944 1.17179C15.943 0.923113 15.8436 0.496814 15.5132 0.390239C13.8151 -0.1604 11.8896 0.226822 10.5574 1.55901Z",fill:"#FF8BCB"}),e.jsx("path",{d:"M8.77408 1.55901C10.291 3.07593 10.5859 5.36019 9.66576 7.20039L3.63716 1.17179C3.38848 0.923113 3.48795 0.496814 3.81833 0.390239C5.51643 -0.1604 7.44189 0.226822 8.77408 1.55901Z",fill:"#FA7B17"}),e.jsx("path",{d:"M5.04752 3.84326C7.19323 3.84326 9.01566 5.25005 9.66577 7.20038H1.13976C0.791616 7.20038 0.55715 6.83092 0.717013 6.5183C1.52343 4.93033 3.16114 3.84326 5.04752 3.84326Z",fill:"#4285F4"})]})},exports.PaLMinimalIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 32 32",strokeLinecap:"round",strokeLinejoin:"round",className:ne("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"m16 30.238c1.2298 0 2.2259-0.99608 2.2259-2.2259v-11.46c-0.63513-0.56429-1.6553-1.6805-2.2259-2.251-0.79858 0.83793-1.3599 1.3599-2.2259 2.251v11.46c0 1.2298 0.99608 2.2259 2.2259 2.2259z"}),e.jsx("path",{d:"m24.868 15.761c-0.61691-0.61643-1.3121-1.1065-2.0536-1.4703-6.8147 0.010467 0.13304 0.031026-6.8147 0.010467l9.5286 9.5286c0.39324 0.39324 1.0703 0.23743 1.2372-0.29122 0.83841-2.6544 0.20589-5.6723-1.8976-7.7776z"}),e.jsx("path",{d:"m7.1318 15.761c0.5902-0.58975 1.2521-1.0639 1.9575-1.4224 6.9107-0.037427-0.11812-0.057288 6.9107-0.037427l-9.5286 9.5286c-0.39324 0.39324-1.0703 0.23743-1.2372-0.29122-0.83841-2.6543-0.20589-5.6723 1.8976-7.7776z"}),e.jsx("path",{d:"m24.162 8.3655c-0.93169 0-1.8288 0.15009-2.6691 0.42772-5.4924 5.5079 0 0-5.4924 5.5079h15.069c0.61767 0 1.0295-0.65292 0.74938-1.2038-1.432-2.8102-4.3219-4.7318-7.657-4.7318z"}),e.jsx("path",{d:"m17.575 4.333c-0.62613 0.62613-1.1343 1.3257-1.5248 2.0718 1.6767 4.1174 0.53518 6.3909-0.05003 7.8964l10.656-10.656c0.43775-0.43775 0.2671-1.1908-0.3209-1.3819-3.0012-0.97382-6.4031-0.28751-8.7607 2.0701z"}),e.jsx("path",{d:"m14.425 4.333c2.6822 2.6822 3.1997 6.7129 1.5748 9.9682l-10.656-10.656c-0.43775-0.43775-0.2671-1.1908 0.3209-1.3819 3.0012-0.97382 6.4031-0.28751 8.7607 2.0701z"}),e.jsx("path",{d:"m7.8385 8.3655c0.9121 0 1.791 0.14385 2.616 0.41037 5.5455 5.5253-0.061773 0.011675 5.5455 5.5253h-15.069c-0.61768 0-1.0295-0.65292-0.74938-1.2038 1.432-2.8102 4.3219-4.7318 7.657-4.7318z"})]})},exports.Pagination=ar,exports.PaginationContent=or,exports.PaginationEllipsis=dr,exports.PaginationItem=nr,exports.PaginationLink=ir,exports.PaginationNext=cr,exports.PaginationPrevious=lr,exports.PersonalizationIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`icon-sm ${t}`,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C10.3431 4 9 5.34315 9 7C9 8.65685 10.3431 10 12 10C13.6569 10 15 8.65685 15 7C15 5.34315 13.6569 4 12 4ZM7 7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7C17 9.76142 14.7614 12 12 12C9.23858 12 7 9.76142 7 7ZM19.0277 15.6255C18.6859 15.5646 18.1941 15.6534 17.682 16.1829C17.4936 16.3777 17.2342 16.4877 16.9632 16.4877C16.6922 16.4877 16.4328 16.3777 16.2444 16.1829C15.7322 15.6534 15.2405 15.5646 14.8987 15.6255C14.5381 15.6897 14.2179 15.9384 14.0623 16.3275C13.8048 16.9713 13.9014 18.662 16.9632 20.4617C20.0249 18.662 20.1216 16.9713 19.864 16.3275C19.7084 15.9384 19.3882 15.6897 19.0277 15.6255ZM21.721 15.5847C22.5748 17.7191 21.2654 20.429 17.437 22.4892C17.1412 22.6484 16.7852 22.6484 16.4893 22.4892C12.6609 20.4291 11.3516 17.7191 12.2053 15.5847C12.6117 14.5689 13.4917 13.8446 14.5481 13.6565C15.3567 13.5125 16.2032 13.6915 16.9632 14.1924C17.7232 13.6915 18.5697 13.5125 19.3783 13.6565C20.4347 13.8446 21.3147 14.5689 21.721 15.5847ZM9.92597 14.2049C10.1345 14.7163 9.889 15.2999 9.3776 15.5084C7.06131 16.453 5.5 18.5813 5.5 20.9999C5.5 21.5522 5.05228 21.9999 4.5 21.9999C3.94772 21.9999 3.5 21.5522 3.5 20.9999C3.5 17.6777 5.641 14.8723 8.6224 13.6565C9.1338 13.448 9.71743 13.6935 9.92597 14.2049Z",fill:"currentColor"})})},exports.PinIcon=function({unpin:t=!1}){return t?e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e.jsx("path",{d:"M15 15V17.5585C15 18.4193 14.4491 19.1836 13.6325 19.4558L13.1726 19.6091C12.454 19.8487 11.6616 19.6616 11.126 19.126L4.87403 12.874C4.33837 12.3384 4.15132 11.546 4.39088 10.8274L4.54415 10.3675C4.81638 9.55086 5.58066 9 6.44152 9H9M12 6.2L13.6277 3.92116C14.3461 2.91549 15.7955 2.79552 16.6694 3.66942L20.3306 7.33058C21.2045 8.20448 21.0845 9.65392 20.0788 10.3723L18 11.8571",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8 16L3 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4 4L20 20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):e.jsx("svg",{className:"icon-sm",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4845 2.8798C16.1773 1.57258 14.0107 1.74534 12.9272 3.24318L9.79772 7.56923C9.60945 7.82948 9.30775 7.9836 8.98654 7.9836H6.44673C3.74061 7.9836 2.27414 11.6759 4.16948 13.5713L6.59116 15.993L2.29324 20.2909C1.90225 20.6819 1.90225 21.3158 2.29324 21.7068C2.68422 22.0977 3.31812 22.0977 3.70911 21.7068L8.00703 17.4088L10.4287 19.8305C12.3241 21.7259 16.0164 20.2594 16.0164 17.5533V15.0135C16.0164 14.6923 16.1705 14.3906 16.4308 14.2023L20.7568 11.0728C22.2547 9.98926 22.4274 7.8227 21.1202 6.51549L17.4845 2.8798ZM11.8446 18.4147C12.4994 19.0694 14.0141 18.4928 14.0141 17.5533V15.0135C14.0141 14.0499 14.4764 13.1447 15.2572 12.58L19.5832 9.45047C20.0825 9.08928 20.1401 8.3671 19.7043 7.93136L16.0686 4.29567C15.6329 3.85993 14.9107 3.91751 14.5495 4.4168L11.4201 8.74285C10.8553 9.52359 9.95016 9.98594 8.98654 9.98594H6.44673C5.5072 9.98594 4.93059 11.5006 5.58535 12.1554L11.8446 18.4147Z",fill:"currentColor"})})},exports.PixelCard=function({variant:r="default",gap:s,speed:a,colors:o,noFocus:n,className:i="",progress:l,randomness:c=.3,width:d,height:u}){const m=t.useRef(null),p=t.useRef(null),h=t.useRef([]),x=t.useRef(void 0),f=t.useRef(performance.now()),g=t.useRef(l),b=t.useRef(window.matchMedia("(prefers-reduced-motion: reduce)").matches).current,C=_r[r],v=s??C.gap,w=a??C.speed,y=o??C.colors,j=n??C.noFocus,N=t.useCallback((()=>{if(!p.current)return;if(void 0===g.current)return void(p.current.style.opacity="1");const e=g.current>=.9?1-(g.current-.9)/.1:1;p.current.style.opacity=String(Gr(e))}),[]),k=t.useCallback((e=>{x.current=requestAnimationFrame((()=>k(e)));const t=performance.now(),r=t-f.current;if(r<1e3/60)return;f.current=t-r%(1e3/60);const s=p.current?.getContext("2d");if(!s||!p.current)return;s.clearRect(0,0,p.current.width,p.current.height);let a=!0;for(const t of h.current)"appearWithProgress"===e?void 0!==g.current?t.appearWithProgress(g.current):t.isIdle=!0:t[e](),t.isIdle||(a=!1);N(),a&&cancelAnimationFrame(x.current)}),[N]),L=t.useCallback((e=>{cancelAnimationFrame(x.current),x.current=requestAnimationFrame((()=>k(e)))}),[k]),M=t.useCallback((()=>{if(!m.current||!p.current)return;const{width:e,height:t}=m.current.getBoundingClientRect(),r=p.current.getContext("2d");p.current.width=Math.floor(e),p.current.height=Math.floor(t);const s=y.split(","),a=[],o=e/2,n=t/2,i=Math.hypot(o,n);for(let l=0;l<e;l+=v)for(let e=0;e<t;e+=v){const t=s[Math.floor(Math.random()*s.length)],d=Math.hypot(l-o,e-n)/i,u=Gr(d*(1-c)+Math.random()*c),m=b?0:d*i;r&&a.push(new qr(p.current,r,l,e,t,$r(w,b),m,u))}h.current=a,void 0!==g.current&&L("appearWithProgress")}),[v,y,w,c,b,L]);return t.useEffect((()=>{g.current=l,void 0!==l&&L("appearWithProgress")}),[l,L]),t.useEffect((()=>{void 0===l&&cancelAnimationFrame(x.current)}),[l]),t.useEffect((()=>{M();const e=new ResizeObserver(M);return m.current&&e.observe(m.current),()=>{e.disconnect(),cancelAnimationFrame(x.current)}}),[M]),e.jsx("div",{ref:m,style:{width:d||"100%",height:u||"100%"},children:e.jsx("div",{className:ne("relative isolate grid select-none place-items-center overflow-hidden rounded-lg border border-border-light shadow-md transition-colors duration-200 ease-in-out",i),style:{width:"100%",height:"100%",transitionTimingFunction:"cubic-bezier(0.5, 1, 0.89, 1)"},onMouseEnter:()=>void 0===g.current&&L("appear"),onMouseLeave:()=>void 0===g.current&&L("disappear"),onFocus:j?void 0:e=>{j||e.currentTarget.contains(e.relatedTarget)||void 0!==g.current||L("appear")},onBlur:j?void 0:e=>{j||e.currentTarget.contains(e.relatedTarget)||void 0!==g.current||L("disappear")},tabIndex:j?-1:0,children:e.jsx("canvas",{ref:p,className:"pointer-events-none absolute inset-0 block",width:d&&"auto"!==d?parseInt(String(d)):void 0,height:u&&"auto"!==u?parseInt(String(u)):void 0})})})},exports.Plugin=function({className:t="",...r}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:ne("h-4 w-4",t),width:"16",height:"16",strokeWidth:"2",...r,children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13.164.98a.7.7 0 0 0-1.328 0l-.478 1.435a.7.7 0 0 1-.443.443l-1.436.478a.7.7 0 0 0 0 1.328l1.436.479a.7.7 0 0 1 .443.442l.478 1.436a.7.7 0 0 0 1.328 0l.478-1.436a.7.7 0 0 1 .443-.443l1.436-.478a.7.7 0 0 0 0-1.328l-1.436-.478a.7.7 0 0 1-.443-.443L13.164.979Z"}),e.jsx("path",{d:"M13.237 10.534c-.228-.245-.513-.46-.847-.46a.823.823 0 0 0-.828.849c.04 1.04.128 2.067.263 3.08a.619.619 0 0 1-.528.695c-.872.121-1.748.208-2.626.262a.8.8 0 0 1-.845-.805c0-.325.21-.602.45-.82.235-.215.375-.488.375-.787 0-.683-.738-1.237-1.65-1.237-.911 0-1.65.554-1.65 1.237 0 .294.137.563.364.775.245.229.461.513.461.848a.823.823 0 0 1-.85.829 33.809 33.809 0 0 1-3.266-.278.619.619 0 0 1-.532-.532 34.099 34.099 0 0 1-.278-3.267.823.823 0 0 1 .83-.85c.333 0 .619.216.846.461.212.228.482.364.776.364.683 0 1.237-.738 1.237-1.65 0-.91-.554-1.65-1.237-1.65-.299 0-.572.142-.786.376-.219.24-.496.45-.821.45a.8.8 0 0 1-.805-.845c.054-.885.142-1.76.262-2.626a.619.619 0 0 1 .695-.528c1.022.136 2.05.224 3.08.263a.822.822 0 0 0 .85-.828c0-.334-.217-.62-.462-.847-.227-.212-.363-.482-.363-.776C5.352 1.554 6.09 1 7.002 1c.91 0 1.649.554 1.649 1.237 0 .173-.012.327-.029.473C8.258 3 8 3.41 8 4c0 1.5 1.667 1.833 2.5 2 .167.833.5 2.5 2 2.5.732 0 1.186-.397 1.479-.9l.034-.001c.683 0 1.237.738 1.237 1.65 0 .911-.554 1.65-1.237 1.65-.294 0-.564-.137-.776-.364Z"})]})})},exports.Progress=ur,exports.QuestionMark=({className:t=""})=>e.jsx("span",{children:e.jsx("div",{className:ne("border-token-border-medium text-token-text-tertiary ml-2 flex h-3.5 w-3.5 cursor-default items-center justify-center rounded-full border text-[0.5rem] font-medium leading-none",t),children:"?"})}),exports.Radio=zr,exports.RegenerateIcon=function({className:t="",size:r="1em"}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne("icon-md-heavy",t),children:e.jsx("path",{fill:"currentColor",d:"M3.07 10.876C3.623 6.436 7.41 3 12 3a9.15 9.15 0 0 1 6.012 2.254V4a1 1 0 1 1 2 0v4a1 1 0 0 1-1 1H15a1 1 0 1 1 0-2h1.957A7.15 7.15 0 0 0 12 5a7 7 0 0 0-6.946 6.124 1 1 0 1 1-1.984-.248m16.992 1.132a1 1 0 0 1 .868 1.116C20.377 17.564 16.59 21 12 21a9.15 9.15 0 0 1-6-2.244V20a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H7.043A7.15 7.15 0 0 0 12 19a7 7 0 0 0 6.946-6.124 1 1 0 0 1 1.116-.868"})})},exports.ResizableHandle=({withHandle:t,className:r="",...s})=>e.jsx(se.PanelResizeHandle,{className:ne("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",r),...s,children:t&&e.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e.jsx(c.GripVertical,{className:"h-2.5 w-2.5"})})}),exports.ResizableHandleAlt=({withHandle:t,className:r="",...s})=>e.jsx(se.PanelResizeHandle,{className:ne("group relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",r),...s,children:t&&e.jsx("div",{className:"invisible z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border group-hover:visible group-active:visible",children:e.jsx(c.GripVertical,{className:"h-2.5 w-2.5"})})}),exports.ResizablePanel=Cr,exports.ResizablePanelGroup=({className:t="",...r})=>e.jsx(se.PanelGroup,{className:ne("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...r}),exports.SamlIcon=function(){return e.jsx("svg",{width:"800px",height:"800px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"h-5 w-5",children:e.jsxs("g",{fill:"#000000",children:[e.jsx("path",{d:"M7.754 2l.463.41c.343.304.687.607 1.026.915C11.44 5.32 13.3 7.565 14.7 10.149c.072.132.137.268.202.403l.098.203-.108.057-.081-.115-.21-.299-.147-.214c-1.019-1.479-2.04-2.96-3.442-4.145a6.563 6.563 0 00-1.393-.904c-1.014-.485-1.916-.291-2.69.505-.736.757-1.118 1.697-1.463 2.653-.045.123-.092.245-.139.367l-.082.215-.172-.055c.1-.348.192-.698.284-1.049.21-.795.42-1.59.712-2.356.31-.816.702-1.603 1.093-2.39.169-.341.338-.682.5-1.025h.092z"}),e.jsx("path",{d:"M8.448 11.822c-1.626.77-5.56 1.564-7.426 1.36C.717 11.576 3.71 4.05 5.18 2.91l-.095.218a4.638 4.638 0 01-.138.303l-.066.129c-.76 1.462-1.519 2.926-1.908 4.53a7.482 7.482 0 00-.228 1.689c-.01 1.34.824 2.252 2.217 2.309.67.027 1.347-.043 2.023-.114.294-.03.587-.061.88-.084.108-.008.214-.021.352-.039l.231-.028z"}),e.jsx("path",{d:"M3.825 14.781c-.445.034-.89.068-1.333.108 4.097.39 8.03-.277 11.91-1.644-1.265-2.23-2.97-3.991-4.952-5.522.026.098.084.169.141.239l.048.06c.17.226.348.448.527.67.409.509.818 1.018 1.126 1.578.778 1.42.356 2.648-1.168 3.296-1.002.427-2.097.718-3.18.892-1.03.164-2.075.243-3.119.323z"})]})})},exports.SaveIcon=function({size:t="1em",className:r}){return e.jsx("svg",{viewBox:"64 64 896 896",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:r,width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"})})},exports.Select=vr,exports.SelectContent=Lr,exports.SelectDropDown=function({title:r,value:s,disabled:a,setValue:o,availableValues:n,showAbove:i=!1,showLabel:l=!0,emptyTitle:c=!1,iconSide:d="right",optionIconSide:u="left",placeholder:m,containerClassName:p,optionsListClass:h,optionsClass:x,currentValueClass:f,subContainerClassName:g,className:b,renderOption:C,searchClassName:v,searchPlaceholder:w,showOptionIcon:y=!1}){const j={className:"top-full mt-3"};i&&(j.className="bottom-full mb-3");let N=r;c&&(N="");const k=n??[],[L,M]=br({availableOptions:k,placeholder:w,getTextKeyOverride:e=>function(e){return"string"==typeof e?e:"label"in e?e.label??"":"value"in e?(e.value??"")+"":""}(e).toUpperCase(),className:v,disabled:a}),S=null!=M?L:k,R=y&&null!=s&&null!=s.icon,z=t.useRef(null);return e.jsx("div",{className:ne("flex items-center justify-center gap-2",p??""),children:e.jsx("div",{className:ne("relative w-full",g??""),children:e.jsx(O.Listbox,{value:s,onChange:o,disabled:a,children:({open:t})=>e.jsxs(e.Fragment,{children:[e.jsxs(O.ListboxButton,{ref:z,"data-testid":"select-dropdown-button",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),!t&&z.current&&z.current.click())},className:ne("relative flex w-full cursor-default flex-col rounded-md border border-black/10 bg-white py-2 pl-3 pr-10 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:bg-white dark:border-gray-600 dark:bg-gray-700 sm:text-sm",b??""),children:[l&&e.jsx(O.Label,{className:"block text-xs text-gray-700 dark:text-gray-500",id:"headlessui-listbox-label-:r1:","data-headlessui-state":"",children:N}),e.jsx("span",{className:"inline-flex w-full truncate",children:e.jsxs("span",{className:ne("flex h-6 items-center gap-1 truncate text-sm text-gray-800 dark:text-white",l?"":"text-xs",f??""),children:[!l&&!c&&e.jsxs("span",{className:"text-xs text-gray-700 dark:text-gray-500",children:[N,":"]}),R&&"right"!==u&&e.jsx("span",{className:"icon-md flex items-center",children:s.icon}),R&&e.jsx("span",{className:"icon-md absolute right-0 mr-8 flex items-center",children:s.icon}),s?"string"!=typeof s?s.label??"":s:e.jsx("span",{className:"text-text-secondary",children:m})]})}),e.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 text-gray-400",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",style:i?{transform:"scaleY(-1)"}:{},children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})})]}),e.jsx(O.Transition,{show:t,as:"div",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",...j,children:e.jsxs(O.ListboxOptions,{className:ne("absolute z-10 mt-2 max-h-60 w-full overflow-auto rounded border bg-white text-xs ring-black/10 dark:border-gray-600 dark:bg-gray-700 dark:ring-white/20 md:w-[100%]",h??""),children:[C&&e.jsx(O.ListboxOption,{value:null,className:ne("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-700",x??""),children:C()},"listbox-render-option"),M,S.map(((t,r)=>{if(!t)return null;const a="string"==typeof t?t:t.label??t.value??"",o="string"==typeof t?t:t.value??"",n="string"==typeof t?null:t.icon??null;let i=s;return"string"!=typeof i&&(i=i?.value??""),e.jsx(O.ListboxOption,{value:t,className:({active:e})=>ne("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-600",e?"bg-surface-active text-text-primary":"",x??""),children:e.jsxs("span",{className:"flex items-center gap-1.5 truncate",children:[e.jsxs("span",{className:ne("flex h-6 items-center gap-1 text-gray-800 dark:text-gray-200",t===s?"font-semibold":"","left"===d?"ml-4":""),children:[null!=n&&e.jsx("span",{className:ne("mr-1","right"===u?"absolute right-0 pr-2":""),children:n}),a]}),o===i&&e.jsx("span",{className:ne("absolute inset-y-0 flex items-center text-gray-800 dark:text-gray-200","left"===d?"left-0 pl-2":"right-0 pr-3"),children:e.jsx(Vr,{})})]})},r)}))]})})]})})})})},exports.SelectGroup=wr,exports.SelectItem=Sr,exports.SelectLabel=Mr,exports.SelectScrollDownButton=kr,exports.SelectScrollUpButton=Nr,exports.SelectSeparator=Rr,exports.SelectTrigger=jr,exports.SelectValue=yr,exports.SendIcon=function({size:t=24,className:r=""}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:ne("text-white dark:text-black",r),children:e.jsx("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},exports.SendMessageIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:"icon-sm m-1 md:m-0",style:{width:"1em",height:"1em",verticalAlign:"middle"},children:e.jsx("path",{d:"M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z",fill:"currentColor"})})},exports.Separator=At,exports.SharePointIcon=function({className:t=""}){return e.jsx("svg",{fill:"currentColor",width:"24",height:"24",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{d:"M24 13.5q0 1.242-.475 2.332-.474 1.09-1.289 1.904-.814.815-1.904 1.29-1.09.474-2.332.474-.762 0-1.523-.2-.106.997-.557 1.858-.451.862-1.154 1.494-.704.633-1.606.99-.902.358-1.91.358-1.09 0-2.045-.416-.955-.416-1.664-1.125-.709-.709-1.125-1.664Q6 19.84 6 18.75q0-.188.018-.375.017-.188.04-.375H.997q-.41 0-.703-.293T0 17.004V6.996q0-.41.293-.703T.996 6h3.54q.14-1.277.726-2.373.586-1.096 1.488-1.904Q7.652.914 8.807.457 9.96 0 11.25 0q1.395 0 2.625.533T16.02 1.98q.914.915 1.447 2.145T18 6.75q0 .188-.012.375-.011.188-.035.375 1.242 0 2.344.469 1.101.468 1.928 1.277.826.809 1.3 1.904Q24 12.246 24 13.5zm-12.75-12q-.973 0-1.857.34-.885.34-1.577.943-.691.604-1.154 1.43Q6.2 5.039 6.06 6h4.945q.41 0 .703.293t.293.703v4.945l.21-.035q.212-.75.61-1.424.399-.673.944-1.218.545-.545 1.213-.944.668-.398 1.43-.61.093-.503.093-.96 0-1.09-.416-2.045-.416-.955-1.125-1.664-.709-.709-1.664-1.125Q12.34 1.5 11.25 1.5zM6.117 15.902q.54 0 1.06-.111.522-.111.932-.37.41-.257.662-.679.252-.422.252-1.055 0-.632-.263-1.054-.264-.422-.662-.703-.399-.282-.856-.463l-.855-.34q-.399-.158-.662-.334-.264-.176-.264-.445 0-.2.14-.323.141-.123.335-.193.193-.07.404-.094.21-.023.351-.023.598 0 1.055.152.457.153.95.457V8.543q-.282-.082-.522-.14-.24-.06-.475-.1-.234-.041-.486-.059-.252-.017-.557-.017-.515 0-1.054.117-.54.117-.979.375-.44.258-.715.68-.275.421-.275 1.03 0 .598.263.997.264.398.663.68.398.28.855.474l.856.363q.398.17.662.358.263.187.263.457 0 .222-.123.351-.123.13-.31.2-.188.07-.393.087-.205.018-.369.018-.703 0-1.248-.234-.545-.235-1.107-.621v1.875q1.195.468 2.472.468zM11.25 22.5q.773 0 1.453-.293t1.19-.803q.51-.51.808-1.195.299-.686.299-1.459 0-.668-.223-1.277-.222-.61-.62-1.096-.4-.486-.95-.826-.55-.34-1.207-.48v1.933q0 .41-.293.703t-.703.293H7.57q-.07.375-.07.75 0 .773.293 1.459t.803 1.195q.51.51 1.195.803.686.293 1.459.293zM18 18q.926 0 1.746-.352.82-.351 1.436-.966.615-.616.966-1.43.352-.815.352-1.752 0-.926-.352-1.746-.351-.82-.966-1.436-.616-.615-1.436-.966Q18.926 9 18 9t-1.74.357q-.815.358-1.43.973t-.973 1.43q-.357.814-.357 1.74 0 .129.006.258t.017.258q.551.27 1.02.65t.838.855q.369.475.627 1.026.258.55.387 1.148Q17.18 18 18 18Z"})})},exports.SheetPaths=function(){return e.jsx(e.Fragment,{children:e.jsx("path",{d:"M15.5 10.5H12.1667C11.2462 10.5 10.5 11.2462 10.5 12.1667V13.5V18M15.5 10.5H23.8333C24.7538 10.5 25.5 11.2462 25.5 12.1667V13.5V18M15.5 10.5V25.5M15.5 25.5H18H23.8333C24.7538 25.5 25.5 24.7538 25.5 23.8333V18M15.5 25.5H12.1667C11.2462 25.5 10.5 24.7538 10.5 23.8333V18M10.5 18H25.5",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})},exports.Sidebar=function({className:t}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.85719 3H15.1428C16.2266 2.99999 17.1007 2.99998 17.8086 3.05782C18.5375 3.11737 19.1777 3.24318 19.77 3.54497C20.7108 4.02433 21.4757 4.78924 21.955 5.73005C22.2568 6.32234 22.3826 6.96253 22.4422 7.69138C22.5 8.39925 22.5 9.27339 22.5 10.3572V13.6428C22.5 14.7266 22.5 15.6008 22.4422 16.3086C22.3826 17.0375 22.2568 17.6777 21.955 18.27C21.4757 19.2108 20.7108 19.9757 19.77 20.455C19.1777 20.7568 18.5375 20.8826 17.8086 20.9422C17.1008 21 16.2266 21 15.1428 21H8.85717C7.77339 21 6.89925 21 6.19138 20.9422C5.46253 20.8826 4.82234 20.7568 4.23005 20.455C3.28924 19.9757 2.52433 19.2108 2.04497 18.27C1.74318 17.6777 1.61737 17.0375 1.55782 16.3086C1.49998 15.6007 1.49999 14.7266 1.5 13.6428V10.3572C1.49999 9.27341 1.49998 8.39926 1.55782 7.69138C1.61737 6.96253 1.74318 6.32234 2.04497 5.73005C2.52433 4.78924 3.28924 4.02433 4.23005 3.54497C4.82234 3.24318 5.46253 3.11737 6.19138 3.05782C6.89926 2.99998 7.77341 2.99999 8.85719 3ZM6.35424 5.05118C5.74907 5.10062 5.40138 5.19279 5.13803 5.32698C4.57354 5.6146 4.1146 6.07354 3.82698 6.63803C3.69279 6.90138 3.60062 7.24907 3.55118 7.85424C3.50078 8.47108 3.5 9.26339 3.5 10.4V13.6C3.5 14.7366 3.50078 15.5289 3.55118 16.1458C3.60062 16.7509 3.69279 17.0986 3.82698 17.362C4.1146 17.9265 4.57354 18.3854 5.13803 18.673C5.40138 18.8072 5.74907 18.8994 6.35424 18.9488C6.97108 18.9992 7.76339 19 8.9 19H9.5V5H8.9C7.76339 5 6.97108 5.00078 6.35424 5.05118ZM11.5 5V19H15.1C16.2366 19 17.0289 18.9992 17.6458 18.9488C18.2509 18.8994 18.5986 18.8072 18.862 18.673C19.4265 18.3854 19.8854 17.9265 20.173 17.362C20.3072 17.0986 20.3994 16.7509 20.4488 16.1458C20.4992 15.5289 20.5 14.7366 20.5 13.6V10.4C20.5 9.26339 20.4992 8.47108 20.4488 7.85424C20.3994 7.24907 20.3072 6.90138 20.173 6.63803C19.8854 6.07354 19.4265 5.6146 18.862 5.32698C18.5986 5.19279 18.2509 5.10062 17.6458 5.05118C17.0289 5.00078 16.2366 5 15.1 5H11.5ZM5 8.5C5 7.94772 5.44772 7.5 6 7.5H7C7.55229 7.5 8 7.94772 8 8.5C8 9.05229 7.55229 9.5 7 9.5H6C5.44772 9.5 5 9.05229 5 8.5ZM5 12C5 11.4477 5.44772 11 6 11H7C7.55229 11 8 11.4477 8 12C8 12.5523 7.55229 13 7 13H6C5.44772 13 5 12.5523 5 12Z",fill:"currentColor"})})},exports.Skeleton=Ot,exports.Slider=Pt,exports.Sparkles=function({className:t="",size:r=24}){return e.jsxs("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ne("icon-md shrink-0",t),children:[e.jsx("path",{d:"M19.3975 1.35498C19.3746 1.15293 19.2037 1.00021 19.0004 1C18.7971 0.999793 18.6259 1.15217 18.6026 1.35417C18.4798 2.41894 18.1627 3.15692 17.6598 3.65983C17.1569 4.16274 16.4189 4.47983 15.3542 4.60264C15.1522 4.62593 14.9998 4.79707 15 5.00041C15.0002 5.20375 15.1529 5.37457 15.355 5.39746C16.4019 5.51605 17.1562 5.83304 17.6716 6.33906C18.1845 6.84269 18.5078 7.57998 18.6016 8.63539C18.6199 8.84195 18.7931 9.00023 19.0005 9C19.2078 8.99977 19.3806 8.84109 19.3985 8.6345C19.4883 7.59673 19.8114 6.84328 20.3273 6.32735C20.8433 5.81142 21.5967 5.48834 22.6345 5.39851C22.8411 5.38063 22.9998 5.20782 23 5.00045C23.0002 4.79308 22.842 4.61992 22.6354 4.60157C21.58 4.50782 20.8427 4.18447 20.3391 3.67157C19.833 3.15623 19.516 2.40192 19.3975 1.35498Z",fill:"currentColor"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 3C11.4833 3 11.8974 3.34562 11.9839 3.82111C12.4637 6.46043 13.279 8.23983 14.5196 9.48039C15.7602 10.721 17.5396 11.5363 20.1789 12.0161C20.6544 12.1026 21 12.5167 21 13C21 13.4833 20.6544 13.8974 20.1789 13.9839C17.5396 14.4637 15.7602 15.279 14.5196 16.5196C13.279 17.7602 12.4637 19.5396 11.9839 22.1789C11.8974 22.6544 11.4833 23 11 23C10.5167 23 10.1026 22.6544 10.0161 22.1789C9.53625 19.5396 8.72096 17.7602 7.48039 16.5196C6.23983 15.279 4.46043 14.4637 1.82111 13.9839C1.34562 13.8974 1 13.4833 1 13C1 12.5167 1.34562 12.1026 1.82111 12.0161C4.46043 11.5363 6.23983 10.721 7.48039 9.48039C8.72096 8.23983 9.53625 6.46043 10.0161 3.82111C10.1026 3.34562 10.5167 3 11 3ZM5.66618 13C6.9247 13.5226 7.99788 14.2087 8.89461 15.1054C9.79134 16.0021 10.4774 17.0753 11 18.3338C11.5226 17.0753 12.2087 16.0021 13.1054 15.1054C14.0021 14.2087 15.0753 13.5226 16.3338 13C15.0753 12.4774 14.0021 11.7913 13.1054 10.8946C12.2087 9.99788 11.5226 8.9247 11 7.66618C10.4774 8.9247 9.79134 9.99788 8.89461 10.8946C7.99788 11.7913 6.9247 12.4774 5.66618 13Z",fill:"currentColor"})]})},exports.SpeechIcon=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:ne(t),children:[e.jsx("path",{d:"M2 10v3"}),e.jsx("path",{d:"M6 6v11"}),e.jsx("path",{d:"M10 3v18"}),e.jsx("path",{d:"M14 8v7"}),e.jsx("path",{d:"M18 5v13"}),e.jsx("path",{d:"M22 10v3"})]})},exports.Spinner=Tr,exports.SplitText=({text:r="",className:s="",delay:a=100,animationFrom:o={opacity:0,transform:"translate3d(0,40px,0)"},animationTo:n={opacity:1,transform:"translate3d(0,0,0)"},easing:i=(e=>e),threshold:l=.1,rootMargin:c="-100px",textAlign:d="center",onLetterAnimationComplete:u,onLineCountChange:m})=>{const p=r.split(" ").map(Ar),h=p.flat(),[x,f]=t.useState(!1),g=t.useRef(null),b=t.useRef(0),[C]=B.useSprings(h.length,(e=>({from:o,to:x?async e=>{await e(n),b.current+=1,b.current===h.length&&u&&u()}:o,delay:e*a,config:{easing:i}})),[x,r,a,o,n,i,u]);return t.useEffect((()=>{const e=new IntersectionObserver((([t])=>{t.isIntersecting&&(f(!0),g.current&&e.unobserve(g.current))}),{threshold:l,rootMargin:c});return g.current&&e.observe(g.current),()=>e.disconnect()}),[l,c]),t.useEffect((()=>{if(g.current&&x){const e=g.current;setTimeout((()=>{const t=parseInt(getComputedStyle(e).lineHeight)||1.2*parseInt(getComputedStyle(e).fontSize),r=e.offsetHeight,s=Math.round(r/t);m&&m(s)}),100)}}),[x,r,m]),e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sr-only",children:r}),e.jsx("p",{ref:g,className:`split-parent inline overflow-hidden ${s}`,style:{textAlign:d,whiteSpace:"normal",wordWrap:"break-word"},"aria-hidden":"true",children:p.map(((t,r)=>e.jsxs("span",{style:{display:"inline-block",whiteSpace:"nowrap"},children:[t.map(((t,s)=>{const a=p.slice(0,r).reduce(((e,t)=>e+t.length),0)+s;return e.jsx(B.animated.span,{style:C[a],className:"inline-block transform transition-opacity will-change-transform",children:t},a)})),r<p.length-1&&e.jsx("span",{style:{display:"inline-block",width:"0.3em"},children:" "})]},r)))})]})},exports.SquirclePlusIcon=function(){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"text-3xl",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})},exports.StopGeneratingIcon=function({className:t=""}){return e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne("h-3 w-3 text-gray-600 dark:text-gray-400",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})})},exports.Switch=Zt,exports.Table=Et,exports.TableBody=Ft,exports.TableCaption=Ut,exports.TableCell=_t,exports.TableFooter=qt,exports.TableHead=Gt,exports.TableHeader=Wt,exports.TableRow=$t,exports.Tabs=Xt,exports.TabsContent=Yt,exports.TabsList=Kt,exports.TabsTrigger=Qt,exports.Tag=er,exports.TextPaths=function(){return e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M19.6663 9.66663H12.9997C12.5576 9.66663 12.1337 9.84222 11.8212 10.1548C11.5086 10.4673 11.333 10.8913 11.333 11.3333V24.6666C11.333 25.1087 11.5086 25.5326 11.8212 25.8451C12.1337 26.1577 12.5576 26.3333 12.9997 26.3333H22.9997C23.4417 26.3333 23.8656 26.1577 24.1782 25.8451C24.4907 25.5326 24.6663 25.1087 24.6663 24.6666V14.6666L19.6663 9.66663Z",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M19.667 9.66663V14.6666H24.667",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M21.3337 18.8334H14.667",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M21.3337 22.1666H14.667",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16.3337 15.5H15.5003H14.667",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.Textarea=tr,exports.TextareaAutosize=rr,exports.ThemeContext=ts,exports.ThemeProvider=function({children:r,themeRGB:s,themeName:a,initialTheme:o}){const[n,i]=h.useAtom(Yr),[l,c]=h.useAtom(Jr),[d,u]=h.useAtom(es),m=t.useRef(!1);t.useEffect((()=>{m.current||(m.current=!0,o&&i(o),s&&c(s),a&&u(a))}),[o,s,a,i,c,u]);const p=t.useCallback((e=>{const t=window.document.documentElement,r=rs(e);t.classList.remove(r?"light":"dark"),t.classList.add(r?"dark":"light")}),[]);t.useEffect((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),t=()=>{"system"===n&&p("system")};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}),[n,p]),t.useEffect((()=>{p(n)}),[n,p]),t.useEffect((()=>{l&&Qr(l)}),[l]);const x=t.useCallback((()=>{i("system"),c(void 0),u(void 0);const e=document.documentElement;Array.from(e.style).filter((e=>e.startsWith("--"))).forEach((t=>e.style.removeProperty(t)))}),[i,c,u]),f=t.useMemo((()=>({theme:n,setTheme:i,themeRGB:l,setThemeRGB:c,themeName:d,setThemeName:u,resetTheme:x})),[n,i,l,c,d,u,x]);return e.jsx(ts.Provider,{value:f,children:r})},exports.ThemeSelector=({returnThemeOnly:r})=>{const{theme:s,setTheme:a}=t.useContext(ts),[o,n]=t.useState(""),i=t.useCallback((e=>{const t=Date.now();"number"==typeof window.lastThemeChange&&t-window.lastThemeChange<500||(window.lastThemeChange=t,a(e),n(rs(e)?"Dark theme enabled":"Light theme enabled"))}),[a]);return t.useEffect((()=>{if("system"===s){const e=window.matchMedia("(prefers-color-scheme: dark)").matches;a(e?"dark":"light")}}),[s,a]),t.useEffect((()=>{if(o){const e=setTimeout((()=>n("")),1e3);return()=>clearTimeout(e)}}),[o]),!0===r?e.jsx(ss,{theme:s,onChange:i}):e.jsxs("div",{className:"flex flex-col items-center justify-center bg-white pt-6 dark:bg-gray-900 sm:pt-0",children:[e.jsx("div",{className:"absolute bottom-0 left-0 m-4",children:e.jsx(ss,{theme:s,onChange:i})}),o&&e.jsx("div",{"aria-live":"polite",className:"sr-only",children:o})]})},exports.ThumbDownIcon=function({className:t="",size:r="1em",bold:s=!1}){return s?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:t,children:[e.jsx("path",{d:"M11.4079 21.4961C11.1953 21.8698 10.7683 22.0649 10.348 21.9805C8.4373 21.5968 7.27541 19.6391 7.84844 17.7691L8.69697 14.9999L6.98577 14.9999C4.35915 14.9999 2.45151 12.492 3.14262 9.94747L4.50063 4.94747C4.97329 3.20722 6.54741 1.99994 8.34378 1.99994H14.0328C15.131 2.00207 16.0206 2.89668 16.0206 3.99994V14.9999H15.6827C15.3253 14.9999 14.9953 15.1922 14.818 15.5038L11.4079 21.4961Z",fill:"currentColor"}),e.jsx("path",{d:"M18.0124 14.9999C19.6624 14.9999 21 13.6568 21 11.9999V4.99994C21 3.34308 19.6624 1.99994 18.0124 1.99994H17.4794C17.8184 2.58829 18.0124 3.27136 18.0124 3.99994V14.9999Z",fill:"currentColor"})]}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8727 21.4961C11.6725 21.8466 11.2811 22.0423 10.8805 21.9922L10.4267 21.9355C7.95958 21.6271 6.36855 19.1665 7.09975 16.7901L7.65054 15H6.93226C4.29476 15 2.37923 12.4921 3.0732 9.94753L4.43684 4.94753C4.91145 3.20728 6.49209 2 8.29589 2H18.0045C19.6614 2 21.0045 3.34315 21.0045 5V12C21.0045 13.6569 19.6614 15 18.0045 15H16.0045C15.745 15 15.5054 15.1391 15.3766 15.3644L11.8727 21.4961ZM14.0045 4H8.29589C7.39399 4 6.60367 4.60364 6.36637 5.47376L5.00273 10.4738C4.65574 11.746 5.61351 13 6.93226 13H9.00451C9.32185 13 9.62036 13.1506 9.8089 13.4059C9.99743 13.6612 10.0536 13.9908 9.96028 14.2941L9.01131 17.3782C8.6661 18.5002 9.35608 19.6596 10.4726 19.9153L13.6401 14.3721C13.9523 13.8258 14.4376 13.4141 15.0045 13.1902V5C15.0045 4.44772 14.5568 4 14.0045 4ZM17.0045 13V5C17.0045 4.64937 16.9444 4.31278 16.8338 4H18.0045C18.5568 4 19.0045 4.44772 19.0045 5V12C19.0045 12.5523 18.5568 13 18.0045 13H17.0045Z",fill:"currentColor"})})},exports.ThumbUpIcon=function({className:t="",size:r="1em",bold:s=!1}){return s?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:t,children:[e.jsx("path",{d:"M12.592 2.50386C12.8047 2.13014 13.2317 1.935 13.652 2.01942C15.5627 2.40314 16.7246 4.36079 16.1516 6.23085L15.303 9L17.0142 9C19.6409 9 21.5485 11.5079 20.8574 14.0525L19.4994 19.0525C19.0267 20.7927 17.4526 22 15.6562 22H9.96721C8.869 21.9979 7.97939 21.1033 7.97939 20V9H8.31734C8.67472 9 9.0047 8.80771 9.18201 8.49613L12.592 2.50386Z",fill:"currentColor"}),e.jsx("path",{d:"M5.98763 9C4.33761 9 3 10.3431 3 12V19C3 20.6569 4.33761 22 5.98763 22H6.52055C6.18162 21.4116 5.98763 20.7286 5.98763 20V9Z",fill:"currentColor"})]}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1318 2.50389C12.3321 2.15338 12.7235 1.95768 13.124 2.00775L13.5778 2.06447C16.0449 2.37286 17.636 4.83353 16.9048 7.20993L16.354 8.99999H17.0722C19.7097 8.99999 21.6253 11.5079 20.9313 14.0525L19.5677 19.0525C19.0931 20.7927 17.5124 22 15.7086 22H6C4.34315 22 3 20.6568 3 19V12C3 10.3431 4.34315 8.99999 6 8.99999H8C8.25952 8.99999 8.49914 8.86094 8.6279 8.63561L12.1318 2.50389ZM10 20H15.7086C16.6105 20 17.4008 19.3964 17.6381 18.5262L19.0018 13.5262C19.3488 12.2539 18.391 11 17.0722 11H15C14.6827 11 14.3841 10.8494 14.1956 10.5941C14.0071 10.3388 13.9509 10.0092 14.0442 9.70591L14.9932 6.62175C15.3384 5.49984 14.6484 4.34036 13.5319 4.08468L10.3644 9.62789C10.0522 10.1742 9.56691 10.5859 9 10.8098V19C9 19.5523 9.44772 20 10 20ZM7 11V19C7 19.3506 7.06015 19.6872 7.17071 20H6C5.44772 20 5 19.5523 5 19V12C5 11.4477 5.44772 11 6 11H7Z",fill:"currentColor"})})},exports.Toast=function(){const{toast:t,onOpenChange:r}=rt(),s={[exports.NotificationSeverity.INFO]:"border-gray-500 bg-gray-500",[exports.NotificationSeverity.SUCCESS]:"border-green-500 bg-green-500",[exports.NotificationSeverity.WARNING]:"border-orange-500 bg-orange-500",[exports.NotificationSeverity.ERROR]:"border-red-500 bg-red-500"};return e.jsx(te.Root,{open:t.open,onOpenChange:r,className:"toast-root",style:{height:"74px",marginBottom:"0px"},children:e.jsx("div",{className:"w-full p-1 text-center md:w-auto md:text-justify",children:e.jsxs("div",{className:`alert-root pointer-events-auto inline-flex flex-row gap-2 rounded-md border px-3 py-2 text-white ${s[t.severity]}`,children:[t.showIcon&&e.jsx("div",{className:"mt-1 flex-shrink-0 flex-grow-0",children:e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),e.jsx(te.Description,{className:"flex-1 justify-center gap-2",children:e.jsx("div",{className:"whitespace-pre-wrap text-left",children:t.message})})]})})})},exports.ToastContext=cs,exports.ToastProvider=function({children:t}){const{showToast:r}=rt();return e.jsx(cs.Provider,{value:{showToast:r},children:t})},exports.TooltipAnchor=sr,exports.TrashIcon=Hr,exports.UserIcon=Br,exports.VectorIcon=function({className:t}){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-label":"",children:e.jsx("path",{d:"M7.45996 14.375C7.45996 13.3616 6.63844 12.54 5.625 12.54C4.61156 12.54 3.79004 13.3616 3.79004 14.375C3.79004 15.3884 4.61156 16.21 5.625 16.21C6.63844 16.21 7.45996 15.3884 7.45996 14.375ZM16.21 14.375C16.21 13.3616 15.3884 12.54 14.375 12.54C13.3616 12.54 12.54 13.3616 12.54 14.375C12.54 15.3884 13.3616 16.21 14.375 16.21C15.3884 16.21 16.21 15.3884 16.21 14.375ZM7.45996 5.625C7.45996 4.61156 6.63844 3.79004 5.625 3.79004C4.61156 3.79004 3.79004 4.61156 3.79004 5.625C3.79004 6.63844 4.61156 7.45996 5.625 7.45996C6.63844 7.45996 7.45996 6.63844 7.45996 5.625ZM16.21 5.625C16.21 4.61156 15.3884 3.79004 14.375 3.79004C13.3616 3.79004 12.54 4.61156 12.54 5.625C12.54 6.63844 13.3616 7.45996 14.375 7.45996C15.3884 7.45996 16.21 6.63844 16.21 5.625ZM17.54 14.375C17.54 16.123 16.123 17.54 14.375 17.54C12.627 17.54 11.21 16.123 11.21 14.375C11.21 12.627 12.627 11.21 14.375 11.21C16.123 11.21 17.54 12.627 17.54 14.375ZM8.79004 5.625C8.79004 7.37298 7.37298 8.79004 5.625 8.79004C3.87702 8.79004 2.45996 7.37298 2.45996 5.625C2.45996 3.87702 3.87702 2.45996 5.625 2.45996C7.37298 2.45996 8.79004 3.87702 8.79004 5.625ZM17.54 5.625C17.54 7.37298 16.123 8.79004 14.375 8.79004C13.7416 8.79004 13.153 8.60173 12.6582 8.28125L8.28125 12.6582C8.60173 13.153 8.79004 13.7416 8.79004 14.375C8.79004 16.123 7.37298 17.54 5.625 17.54C3.87702 17.54 2.45996 16.123 2.45996 14.375C2.45996 12.627 3.87702 11.21 5.625 11.21C6.25794 11.21 6.84623 11.3977 7.34082 11.7178L11.7178 7.34082C11.3977 6.84623 11.21 6.25794 11.21 5.625C11.21 3.87702 12.627 2.45996 14.375 2.45996C16.123 2.45996 17.54 3.87702 17.54 5.625Z"})})},exports.VolumeIcon=function({className:t="",size:r="1em"}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:r,width:r,className:ne(t),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4.9099C11 4.47485 10.4828 4.24734 10.1621 4.54132L6.67572 7.7372C6.49129 7.90626 6.25019 8.00005 6 8.00005H4C3.44772 8.00005 3 8.44776 3 9.00005V15C3 15.5523 3.44772 16 4 16H6C6.25019 16 6.49129 16.0938 6.67572 16.2629L10.1621 19.4588C10.4828 19.7527 11 19.5252 11 19.0902V4.9099ZM8.81069 3.06701C10.4142 1.59714 13 2.73463 13 4.9099V19.0902C13 21.2655 10.4142 22.403 8.81069 20.9331L5.61102 18H4C2.34315 18 1 16.6569 1 15V9.00005C1 7.34319 2.34315 6.00005 4 6.00005H5.61102L8.81069 3.06701ZM20.3166 6.35665C20.8019 6.09313 21.409 6.27296 21.6725 6.75833C22.5191 8.3176 22.9996 10.1042 22.9996 12.0001C22.9996 13.8507 22.5418 15.5974 21.7323 17.1302C21.4744 17.6185 20.8695 17.8054 20.3811 17.5475C19.8927 17.2896 19.7059 16.6846 19.9638 16.1962C20.6249 14.9444 20.9996 13.5175 20.9996 12.0001C20.9996 10.4458 20.6064 8.98627 19.9149 7.71262C19.6514 7.22726 19.8312 6.62017 20.3166 6.35665ZM15.7994 7.90049C16.241 7.5688 16.8679 7.65789 17.1995 8.09947C18.0156 9.18593 18.4996 10.5379 18.4996 12.0001C18.4996 13.3127 18.1094 14.5372 17.4385 15.5604C17.1357 16.0222 16.5158 16.1511 16.0539 15.8483C15.5921 15.5455 15.4632 14.9255 15.766 14.4637C16.2298 13.7564 16.4996 12.9113 16.4996 12.0001C16.4996 10.9859 16.1653 10.0526 15.6004 9.30063C15.2687 8.85905 15.3578 8.23218 15.7994 7.90049Z",fill:"currentColor"})})},exports.VolumeMuteIcon=function({className:t="",size:r="1em"}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:r,width:r,className:ne(t),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9.5 8.5C8.94772 8.5 8.5 8.94772 8.5 9.5V14.5C8.5 15.0523 8.94772 15.5 9.5 15.5H14.5C15.0523 15.5 15.5 15.0523 15.5 14.5V9.5C15.5 8.94772 15.0523 8.5 14.5 8.5H9.5Z",fill:"currentColor"})})},exports.XAIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",fill:"currentColor",className:t,children:e.jsx("path",{d:"m3.005 8.858 8.783 12.544h3.904L6.908 8.858zM6.905 15.825 3 21.402h3.907l1.951-2.788zM16.585 2l-6.75 9.64 1.953 2.79L20.492 2zM17.292 7.965v13.437h3.2V3.395z"})})},exports.applyFontSize=e=>{const t=document.documentElement;switch(e.split("-")[1]){case"xs":t.style.setProperty("--markdown-font-size","0.75rem");break;case"sm":t.style.setProperty("--markdown-font-size","0.875rem");break;case"base":t.style.setProperty("--markdown-font-size","1rem");break;case"lg":t.style.setProperty("--markdown-font-size","1.125rem");break;case"xl":t.style.setProperty("--markdown-font-size","1.25rem")}},exports.applyTheme=Qr,exports.buttonVariants=Te,exports.chatDirectionAtom=Je,exports.cn=ne,exports.darkTheme={"rgb-text-primary":"236 236 236","rgb-text-secondary":"205 205 205","rgb-text-secondary-alt":"153 150 150","rgb-text-tertiary":"89 89 89","rgb-text-warning":"245 158 11","rgb-ring-primary":"89 89 89","rgb-header-primary":"47 47 47","rgb-header-hover":"66 66 66","rgb-header-button-hover":"47 47 47","rgb-surface-active":"89 89 89","rgb-surface-active-alt":"47 47 47","rgb-surface-hover":"66 66 66","rgb-surface-hover-alt":"66 66 66","rgb-surface-primary":"13 13 13","rgb-surface-primary-alt":"23 23 23","rgb-surface-primary-contrast":"23 23 23","rgb-surface-secondary":"33 33 33","rgb-surface-secondary-alt":"33 33 33","rgb-surface-tertiary":"47 47 47","rgb-surface-tertiary-alt":"47 47 47","rgb-surface-dialog":"23 23 23","rgb-surface-submit":"4 120 87","rgb-surface-submit-hover":"6 95 70","rgb-surface-destructive":"153 27 27","rgb-surface-destructive-hover":"127 29 29","rgb-surface-chat":"47 47 47","rgb-border-light":"47 47 47","rgb-border-medium":"66 66 66","rgb-border-medium-alt":"66 66 66","rgb-border-heavy":"89 89 89","rgb-border-xheavy":"153 150 150","rgb-brand-purple":"171 104 255","rgb-presentation":"33 33 33","rgb-background":"33 33 33","rgb-foreground":"255 255 255","rgb-primary":"66 66 66","rgb-primary-foreground":"255 255 255","rgb-secondary":"42 42 42","rgb-secondary-foreground":"193 193 193","rgb-muted":"56 56 56","rgb-muted-foreground":"140 140 140","rgb-accent":"82 82 82","rgb-accent-foreground":"255 255 255","rgb-destructive-foreground":"255 255 255","rgb-border":"82 82 82","rgb-input":"66 66 66","rgb-ring":"255 255 255","rgb-card":"42 42 42","rgb-card-foreground":"255 255 255"},exports.defaultTheme={"rgb-text-primary":"33 33 33","rgb-text-secondary":"66 66 66","rgb-text-secondary-alt":"89 89 89","rgb-text-tertiary":"89 89 89","rgb-text-warning":"245 158 11","rgb-ring-primary":"89 89 89","rgb-header-primary":"255 255 255","rgb-header-hover":"247 247 248","rgb-header-button-hover":"247 247 248","rgb-surface-active":"236 236 236","rgb-surface-active-alt":"227 227 227","rgb-surface-hover":"227 227 227","rgb-surface-hover-alt":"205 205 205","rgb-surface-primary":"255 255 255","rgb-surface-primary-alt":"247 247 248","rgb-surface-primary-contrast":"236 236 236","rgb-surface-secondary":"247 247 248","rgb-surface-secondary-alt":"227 227 227","rgb-surface-tertiary":"236 236 236","rgb-surface-tertiary-alt":"255 255 255","rgb-surface-dialog":"255 255 255","rgb-surface-submit":"4 120 87","rgb-surface-submit-hover":"6 95 70","rgb-surface-destructive":"185 28 28","rgb-surface-destructive-hover":"153 27 27","rgb-surface-chat":"255 255 255","rgb-border-light":"227 227 227","rgb-border-medium":"205 205 205","rgb-border-medium-alt":"205 205 205","rgb-border-heavy":"153 150 150","rgb-border-xheavy":"89 89 89","rgb-brand-purple":"171 104 255","rgb-presentation":"255 255 255","rgb-background":"255 255 255","rgb-foreground":"17 17 17","rgb-primary":"235 235 235","rgb-primary-foreground":"0 0 0","rgb-secondary":"247 247 248","rgb-secondary-foreground":"66 66 66","rgb-muted":"250 250 250","rgb-muted-foreground":"120 120 120","rgb-accent":"245 245 245","rgb-accent-foreground":"17 17 17","rgb-destructive-foreground":"17 17 17","rgb-border":"215 215 215","rgb-input":"230 230 230","rgb-ring":"180 180 180","rgb-card":"247 247 248","rgb-card-foreground":"17 17 17"},exports.fontSizeAtom=et,exports.getInitialTheme=()=>{if("undefined"!=typeof window&&window.localStorage){const e=window.localStorage.getItem("color-theme");if("string"==typeof e)return e;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark"}return"light"},exports.isDark=rs,exports.langAtom=Ye,exports.themeColorsAtom=Jr,exports.themeModeAtom=Yr,exports.themeNameAtom=es,exports.toastState=tt,exports.useAvatar=at,exports.useCombobox=ot,exports.useDelayedRender=lt,exports.useLocalize=nt,exports.useMediaQuery=it,exports.useMultiSearch=br,exports.useOnClickOutside=function(e,r,s,a){t.useEffect((()=>{const t=t=>{const o=t.target;o&&"id"in o&&s.includes(o.id)||o?.parentNode&&"id"in o.parentNode&&s.includes(o.parentNode.id)||a&&a(o)||e.current&&!e.current.contains(o)&&r()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}}),[e,r])},exports.useTheme=function(){const e=t.useContext(ts);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},exports.useToast=rt,exports.useToastContext=function(){return t.useContext(cs)};
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("@radix-ui/react-accordion"),s=require("@radix-ui/react-icons"),a=require("clsx"),o=require("tailwind-merge"),n=require("@ariakit/react"),i=require("@radix-ui/react-alert-dialog"),l=require("@radix-ui/react-slot"),c=require("lucide-react"),d=require("class-variance-authority"),u=require("@radix-ui/react-checkbox"),m=require("@radix-ui/react-dropdown-menu"),p=require("jotai"),x=require("@dicebear/core"),h=require("@dicebear/collection"),f=require("match-sorter"),g=require("react-i18next"),b=require("@radix-ui/react-dialog"),C=require("@radix-ui/react-hover-card"),v=require("rc-input-number"),w=require("@radix-ui/react-label"),y=require("@radix-ui/react-slider"),j=require("@radix-ui/react-separator"),N=require("@radix-ui/react-switch"),k=require("@radix-ui/react-tabs"),L=require("react-textarea-autosize"),M=require("@radix-ui/react-toast"),S=require("dompurify"),z=require("framer-motion"),R=require("@radix-ui/react-progress"),I=require("input-otp"),T=require("react-resizable-panels"),V=require("@radix-ui/react-select"),H=require("@ariakit/react/select"),B=require("@react-spring/web"),D=require("@tanstack/react-virtual"),P=require("@tanstack/react-table"),A=require("jotai/utils"),O=require("@headlessui/react"),Z=require("@ariakit/react-core/select/select-renderer");function W(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var E=W(t),F=W(r),q=W(n),$=W(i),_=W(u),G=W(m),U=W(b),X=W(C),K=W(w),Q=W(y),Y=W(j),J=W(N),ee=W(k),te=W(M),re=W(R),se=W(T),ae=W(V),oe=W(H);const ne=(...e)=>o.twMerge(a.clsx(e)),ie=F.Root,le=E.forwardRef((({className:t="",...r},s)=>e.jsx(F.Item,{ref:s,className:ne("border-b",t),...r})));le.displayName="AccordionItem";const ce=E.forwardRef((({className:t="",children:r,...a},o)=>e.jsx(F.Header,{className:"flex",children:e.jsxs(F.Trigger,{ref:o,className:ne("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...a,children:[r,e.jsx(s.ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})));ce.displayName=F.Trigger.displayName;const de=E.forwardRef((({className:t="",children:r,...s},a)=>e.jsx(F.Content,{ref:a,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...s,children:e.jsx("div",{className:ne("pb-4 pt-0",t),children:r})})));function ue(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===r&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}de.displayName=F.Content.displayName;ue("/* AnimatedTabs.css */\n.animated-tab-panel {\n transition-property: opacity, translate;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n animation-duration: 300ms;\n}\n\n/* Sliding underline animation for tabs */\n.animated-tab-list {\n position: relative;\n}\n\n.animated-tab-list::after {\n content: '';\n position: absolute;\n bottom: 0;\n height: 2px;\n background-color: currentColor; /* Inherit color from active tab */\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n left: var(--tab-left, 0);\n width: var(--tab-width, 0);\n}\n\n.animated-tab {\n position: relative;\n}\n\n.animated-tab[data-state='active'] {\n border-bottom-color: transparent !important;\n}\n\n.animated-tab-panel[data-enter] {\n opacity: 1 !important;\n translate: 0 !important;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .animated-tab-panel {\n transition: none;\n }\n}\n\n.animated-tab-panel:not([data-open]) {\n position: absolute;\n top: 0px;\n}\n\n.animated-panels:has(> [data-was-open]) > .animated-tab-panel {\n opacity: 0;\n translate: -100%;\n}\n\n.animated-panels [data-was-open] ~ .animated-tab-panel,\n.animated-panels [data-open] ~ .animated-tab-panel {\n translate: 100%;\n}\n");const me=t.forwardRef((function(r,s){const a=t.useRef(null);return t.useEffect((()=>{const e=a.current;if(!e)return;const t=()=>{const t="true"===e.getAttribute("aria-selected");e.setAttribute("data-state",t?"active":"inactive")};t();const r=new MutationObserver(t);return r.observe(e,{attributes:!0,attributeFilter:["aria-selected"]}),()=>r.disconnect()}),[]),e.jsx(q.Tab,{ref:e=>{a.current=e,"function"==typeof s?s(e):s&&(s.current=e)},...r,className:`animated-tab aria-selected:text-token-text-primary flex select-none items-center justify-center gap-2 whitespace-nowrap border-none text-sm font-medium outline-none transition-colors aria-disabled:opacity-50 ${r.className||""}`})})),pe=t.forwardRef((function(r,s){const a=q.useTabContext(),o=function(e){const r=t.useRef(void 0);return t.useEffect((()=>{r.current=e}),[e]),r.current}(q.useStoreState(a,"selectedId")),n=r.tabId&&o===r.tabId;return e.jsx(q.TabPanel,{ref:s,...r,"data-was-open":n||void 0,className:`animated-tab-panel max-w-full ${r.className||""}`})}));const xe=$.Root,he=$.Trigger,fe=({className:t="",children:r,...s})=>e.jsx($.Portal,{className:ne(t),...s,children:e.jsx("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:r})});fe.displayName=$.Portal.displayName;const ge=E.forwardRef((({className:t="",...r},s)=>e.jsx($.Overlay,{className:ne("fixed inset-0 z-50 bg-gray-500/90 transition-opacity animate-in fade-in dark:bg-gray-800/90",t),...r,ref:s})));ge.displayName=$.Overlay.displayName;const be=E.forwardRef((({className:t="",...r},s)=>e.jsxs(fe,{children:[e.jsx(ge,{}),e.jsx($.Content,{ref:s,className:ne("fixed z-50 grid w-full max-w-lg scale-100 gap-4 bg-white p-6 opacity-100 animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full","dark:bg-gray-900",t),...r})]})));be.displayName=$.Content.displayName;const Ce=({className:t="",...r})=>e.jsx("div",{className:ne("flex flex-col space-y-2 text-center sm:text-left",t),...r});Ce.displayName="AlertDialogHeader";const ve=({className:t="",...r})=>e.jsx("div",{className:ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r});ve.displayName="AlertDialogFooter";const we=E.forwardRef((({className:t="",...r},s)=>e.jsx($.Title,{ref:s,className:ne("text-lg font-semibold text-gray-900","dark:text-gray-50",t),...r})));we.displayName=$.Title.displayName;const ye=E.forwardRef((({className:t="",...r},s)=>e.jsx($.Description,{ref:s,className:ne("text-sm text-gray-500","dark:text-gray-400",t),...r})));ye.displayName=$.Description.displayName;const je=E.forwardRef((({className:t="",...r},s)=>e.jsx($.Action,{ref:s,className:ne("inline-flex h-10 items-center justify-center rounded-md bg-gray-900 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-gray-100 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),...r})));je.displayName=$.Action.displayName;const Ne=E.forwardRef((({className:t="",...r},s)=>e.jsx($.Cancel,{ref:s,className:ne("mt-2 inline-flex h-10 items-center justify-center rounded-md border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t),...r})));Ne.displayName=$.Cancel.displayName;const ke=E.forwardRef((({...t},r)=>e.jsx("nav",{ref:r,"aria-label":"breadcrumb",...t})));ke.displayName="Breadcrumb";const Le=E.forwardRef((({className:t,...r},s)=>e.jsx("ol",{ref:s,className:ne("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...r})));Le.displayName="BreadcrumbList";const Me=E.forwardRef((({className:t,...r},s)=>e.jsx("li",{ref:s,className:ne("inline-flex items-center gap-1.5",t),...r})));Me.displayName="BreadcrumbItem";const Se=E.forwardRef((({asChild:t,className:r,...s},a)=>{const o=t?l.Slot:"a";return e.jsx(o,{ref:a,className:ne("transition-colors hover:text-foreground",r),...s})}));Se.displayName="BreadcrumbLink";const ze=E.forwardRef((({className:t,...r},s)=>e.jsx("span",{ref:s,role:"link","aria-disabled":"true","aria-current":"page",className:ne("font-normal text-foreground",t),...r})));ze.displayName="BreadcrumbPage";const Re=({children:t,className:r,...s})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:ne("[&>svg]:size-3.5",r),...s,children:t??e.jsx(c.ChevronRight,{})});Re.displayName="BreadcrumbSeparator";const Ie=({className:t,...r})=>e.jsxs("span",{role:"presentation","aria-hidden":"true",className:ne("flex h-9 w-9 items-center justify-center",t),...r,children:[e.jsx(c.MoreHorizontal,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More"})]});Ie.displayName="BreadcrumbElipssis";const Te=d.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-surface-destructive text-destructive-foreground hover:bg-surface-destructive-hover",outline:"text-text-primary border border-border-light bg-transparent hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-surface-hover hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",submit:"bg-surface-submit text-white hover:bg-surface-submit-hover"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-lg px-3",lg:"h-11 rounded-lg px-8",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),Ve=E.forwardRef((({className:t,variant:r,size:s,asChild:a=!1,...o},n)=>{const i=a?l.Slot:"button";return e.jsx(i,{className:ne(Te({variant:r,size:s,className:t})),ref:n,...o})}));Ve.displayName="Button";const He=E.forwardRef((({className:t="",...r},s)=>e.jsx(_.Root,{ref:s,className:ne("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...r,children:e.jsx(_.Indicator,{className:ne("flex items-center justify-center"),children:e.jsx(c.Check,{className:"h-4 w-4"})})})));function Be({...t}){return e.jsx(G.Root,{"data-slot":"dropdown-menu",...t})}function De({...t}){return e.jsx(G.Trigger,{"data-slot":"dropdown-menu-trigger",...t})}function Pe({className:t,sideOffset:r=4,...s}){return e.jsx(G.Portal,{children:e.jsx(G.Content,{"data-slot":"dropdown-menu-content",sideOffset:r,className:ne("text-popover-foreground max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-border-light bg-surface-secondary p-1 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...s})})}function Ae({className:t,inset:r,variant:s="default",...a}){return e.jsx(G.Item,{"data-slot":"dropdown-menu-item","data-inset":r,"data-variant":s,className:ne("data-[variant=destructive]:*:[svg]:!text-destructive outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",t),...a})}function Oe({className:t,...r}){return e.jsx(G.Separator,{"data-slot":"dropdown-menu-separator",className:ne("-mx-1 my-1 h-px bg-surface-hover",t),...r})}var Ze,We;He.displayName=_.Root.displayName,exports.ESide=void 0,(Ze=exports.ESide||(exports.ESide={})).Top="top",Ze.Right="right",Ze.Bottom="bottom",Ze.Left="left",exports.NotificationSeverity=void 0,(We=exports.NotificationSeverity||(exports.NotificationSeverity={})).INFO="info",We.SUCCESS="success",We.WARNING="warning",We.ERROR="error";const Ee=p.atom("en"),Fe=p.atom("ltr"),qe=p.atom("text-base"),$e=p.atom({open:!1,message:"",severity:exports.NotificationSeverity.SUCCESS,showIcon:!0});function _e(e=100){const[r,s]=p.useAtom($e),a=t.useRef(null),o=t.useRef(null);t.useEffect((()=>()=>{null!==a.current&&clearTimeout(a.current),null!==o.current&&clearTimeout(o.current)}),[]);return{toast:r,onOpenChange:e=>s({...r,open:e}),showToast:({message:t,severity:r=exports.NotificationSeverity.SUCCESS,showIcon:n=!0,duration:i=3e3,status:l})=>{null!==a.current&&clearTimeout(a.current),null!==o.current&&clearTimeout(o.current),a.current=window.setTimeout((()=>{s({open:!0,message:t,severity:l??r,showIcon:n}),o.current=window.setTimeout((()=>{s((e=>({...e,open:!1})))}),i)}),e)}}}const Ge={},Ue=e=>t.useMemo((()=>{const{username:t,name:r}=e??{},s=r||t;if(!s)return"";if(e?.avatar&&""!==e?.avatar)return e.avatar;if(Ge[s])return Ge[s];const a=x.createAvatar(h.initials,{seed:s,fontFamily:["Verdana"],fontSize:36});let o="";try{o=a.toDataUri(),o&&(Ge[s]=o)}catch(e){console.error("Failed to generate avatar:",e)}return o}),[e]);function Xe({value:e,options:r}){const[s,a]=t.useState(!1),[o,n]=t.useState(""),i=t.useMemo((()=>{if(!o)return r;const t=f.matchSorter(r,o,{keys:["label","value"]}),s=r.find((t=>t.value===e));return s&&!t.includes(s)&&t.push(s),t}),[o,e,r]);return{open:s,setOpen:a,searchValue:o,setSearchValue:n,matches:i}}function Ke(){const e=p.useAtomValue(Ee),{t:r,i18n:s}=g.useTranslation();return t.useEffect((()=>{s.language!==e&&s.changeLanguage(e)}),[e,s]),(e,t)=>r(e,t)}function Qe(e){const[r,s]=t.useState(!1);return t.useEffect((()=>{const t=window.matchMedia(e);t.matches!==r&&s(t.matches);const a=()=>s(t.matches);return t.addEventListener("change",a),()=>t.removeEventListener("change",a)}),[r,e]),r}const Ye=e=>{const[r,s]=t.useState(!0),a=t.useRef(null);return t.useEffect((()=>{if(r){const t=new Promise((t=>{const r=setTimeout((()=>{s(!1),t()}),e);return()=>{clearTimeout(r)}}));a.current=t}return()=>{a.current=null}}),[e,r]),e=>{if(r&&a.current)throw a.current;return e()}};const Je=U.Root,et=U.Trigger,tt=({className:t="",children:r,...s})=>e.jsx(U.Portal,{className:ne(t),...s,children:e.jsx("div",{className:"fixed inset-0 z-[999] flex items-start justify-center sm:items-center",children:r})});tt.displayName=U.Portal.displayName;const rt=E.forwardRef((({className:t,...r},s)=>e.jsx(U.Overlay,{className:ne("fixed inset-0 z-[999] bg-gray-600/65 transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in dark:bg-black/80",t??""),...r,ref:s})));rt.displayName=U.Overlay.displayName;const st=E.forwardRef((({className:t,children:r=!0,showCloseButton:s=!0,disableScroll:a=!1,...o},n)=>{const i=Qe("(max-width: 768px)");return e.jsxs(tt,{children:[e.jsx(rt,{}),e.jsxs(U.Content,{ref:n,className:ne("fixed z-[999] grid w-full gap-4 rounded-b-lg bg-white pb-6 animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:rounded-lg","dark:bg-gray-700",i?"fixed left-1/2 top-1/2 z-[999] m-auto grid w-11/12 -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-white pb-6":"",a?"overflow-hidden":"",t??""),...o,children:[r,s&&e.jsxs(U.Close,{className:"absolute right-6 top-[1.6rem] rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100 dark:focus:ring-white dark:focus:ring-offset-gray-700 dark:data-[state=open]:bg-gray-800",children:[e.jsx(c.X,{className:"h-5 w-5 text-black dark:text-white"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}));st.displayName=U.Content.displayName;const at=({className:t,...r})=>e.jsx("div",{className:ne("flex flex-col space-y-2 border-b border-black/10 p-6 pb-4 text-left dark:border-white/10",t??""),...r});at.displayName="DialogHeader";const ot=({className:t,...r})=>e.jsx("div",{className:ne("flex flex-row justify-between space-x-2 px-6 py-4",t??""),...r});ot.displayName="DialogFooter";const nt=E.forwardRef((({className:t,...r},s)=>e.jsx(U.Title,{ref:s,className:ne("text-lg font-semibold text-gray-900","dark:text-gray-50",t??""),...r})));nt.displayName=U.Title.displayName;const it=E.forwardRef((({className:t,...r},s)=>e.jsx(U.Description,{ref:s,className:ne("text-sm text-gray-500","dark:text-gray-400",t??""),...r})));it.displayName=U.Description.displayName;const lt=E.forwardRef((({className:t,...r},s)=>e.jsx(U.Close,{ref:s,className:ne("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...r})));lt.displayName=U.Title.displayName;const ct=E.forwardRef((({className:t,...r},s)=>e.jsx(Ve,{ref:s,variant:"outline",className:ne("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...r})));ct.displayName=U.Title.displayName;const dt=X.Root,ut=X.Trigger,mt=X.Portal,pt=E.forwardRef((({className:t="",align:r="center",sideOffset:s=6,disabled:a=!1,...o},n)=>a?null:e.jsx(X.Content,{ref:n,align:r,sideOffset:s,className:ne("z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-xl border border-border-light bg-surface-secondary p-4 text-text-primary shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o})));pt.displayName=X.Content.displayName;const xt=E.forwardRef((({className:t,...r},s)=>e.jsx("input",{className:ne("flex h-10 w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",t??""),ref:s,...r})));xt.displayName="Input";const ht=E.forwardRef((({className:t,...r},s)=>e.jsx(v,{className:ne("flex max-h-5 w-full rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50",t??""),ref:s,...r})));ht.displayName="Input";const ft=E.forwardRef((({className:t="",...r},s)=>e.jsx(K.Root,{ref:s,...r,className:ne("block w-full break-all text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-200",t)})));ft.displayName=K.Root.displayName;const gt=E.forwardRef((({children:t,triggerRef:r,triggerRefs:s,onOpenChange:a,...o},n)=>e.jsx(U.Root,{...o,onOpenChange:e=>{!e&&r?.current&&setTimeout((()=>{r.current?.focus()}),0),s?.length&&s.forEach((e=>{e?.current&&setTimeout((()=>{e.current?.focus()}),0)})),a?.(e)},children:t}))),bt=U.Trigger,Ct=U.Portal,vt=U.Close,wt=E.forwardRef((({className:t,...r},s)=>e.jsx(U.Overlay,{ref:s,className:ne("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r})));wt.displayName=U.Overlay.displayName;const yt=E.forwardRef((({className:t,overlayClassName:r,showCloseButton:s=!0,children:a,...o},n)=>e.jsxs(Ct,{children:[e.jsx(wt,{className:r}),e.jsxs(U.Content,{ref:n,className:ne("max-w-11/12 fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl bg-background p-6 text-text-primary shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",t),...o,children:[a,s&&e.jsxs(U.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-ring-primary ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(c.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));yt.displayName=U.Content.displayName;const jt=({className:t,...r})=>e.jsx("div",{className:ne("flex flex-col space-y-1.5 text-center sm:text-left",t),...r});jt.displayName="DialogHeader";const Nt=({className:t,...r})=>e.jsx("div",{className:ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r});Nt.displayName="DialogFooter";const kt=E.forwardRef((({className:t,...r},s)=>e.jsx(U.Title,{ref:s,className:ne("text-lg font-semibold leading-none tracking-tight",t),...r})));kt.displayName=U.Title.displayName;const Lt=E.forwardRef((({className:t,...r},s)=>e.jsx(U.Description,{ref:s,className:ne("text-sm text-text-secondary",t),...r})));Lt.displayName=U.Description.displayName;const Mt=E.forwardRef((({className:t,onDoubleClick:r,"aria-labelledby":s,"aria-label":a,"aria-describedby":o,...n},i)=>e.jsxs(Q.Root,{ref:i,...n,className:ne("relative flex w-full cursor-pointer touch-none select-none items-center",t),onDoubleClick:r,children:[e.jsx(Q.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(Q.Range,{className:"absolute h-full bg-primary"})}),e.jsx(Q.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","aria-labelledby":s,"aria-label":a,"aria-describedby":o})]})));Mt.displayName=Q.Root.displayName;const St=E.forwardRef((({className:t="",orientation:r="horizontal",decorative:s=!0,...a},o)=>e.jsx(Y.Root,{ref:o,...a,decorative:s,orientation:r,className:ne("shrink-0 bg-border-light","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",t)})));St.displayName=Y.Root.displayName;function zt({className:t,...r}){return e.jsx("div",{className:ne("animate-pulse rounded-md bg-surface-tertiary opacity-50 dark:opacity-25",t),...r})}const Rt=E.forwardRef((({className:t,...r},s)=>e.jsx(J.Root,{className:ne("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-switch-unchecked",t),...r,ref:s,children:e.jsx(J.Thumb,{className:ne("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})})));Rt.displayName=J.Root.displayName;const It=E.forwardRef((({className:t,...r},s)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:s,className:ne("w-full caption-bottom text-sm",t),...r})})));It.displayName="Table";const Tt=E.forwardRef((({className:t,...r},s)=>e.jsx("thead",{ref:s,className:ne("[&_tr]:border-b",t),...r})));Tt.displayName="TableHeader";const Vt=E.forwardRef((({className:t,...r},s)=>e.jsx("tbody",{ref:s,className:ne("[&_tr:last-child]:border-0",t),...r})));Vt.displayName="TableBody";const Ht=E.forwardRef((({className:t,...r},s)=>e.jsx("tfoot",{ref:s,className:ne("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...r})));Ht.displayName="TableFooter";const Bt=E.forwardRef((({className:t,...r},s)=>e.jsx("tr",{ref:s,className:ne("border-b border-border-light transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...r})));Bt.displayName="TableRow";const Dt=E.forwardRef((({className:t,...r},s)=>e.jsx("th",{ref:s,className:ne("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...r})));Dt.displayName="TableHead";const Pt=E.forwardRef((({className:t,...r},s)=>e.jsx("td",{ref:s,className:ne("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...r})));Pt.displayName="TableCell";const At=E.forwardRef((({className:t,...r},s)=>e.jsx("caption",{ref:s,className:ne("mt-4 text-sm text-muted-foreground",t),...r})));At.displayName="TableCaption";const Ot=ee.Root,Zt=E.forwardRef((({className:t="",...r},s)=>e.jsx(ee.List,{ref:s,className:ne("inline-flex items-center justify-center rounded-md bg-surface-primary",t),...r})));Zt.displayName=ee.List.displayName;const Wt=E.forwardRef((({className:t="",...r},s)=>e.jsx(ee.Trigger,{className:ne("inline-flex min-w-[100px] items-center justify-center rounded-[0.185rem] px-3 py-1.5 text-sm font-medium text-gray-700 transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-gray-800 data-[state=active]:shadow-sm dark:data-[state=active]:bg-gray-700 dark:data-[state=active]:text-gray-200",t),...r,ref:s})));Wt.displayName=ee.Trigger.displayName;const Et=E.forwardRef((({className:t="",...r},s)=>e.jsx(ee.Content,{className:ne("mt-2 rounded-md p-6",t),...r,ref:s})));Et.displayName=ee.Content.displayName;const Ft=E.forwardRef((({CancelButton:t,LabelNode:r,label:s,onRemove:a,className:o="",labelClassName:n="",...i},l)=>e.jsxs("div",{ref:l,...i,className:ne("flex max-h-8 items-center overflow-y-hidden rounded-3xl border-2 border-green-600 bg-green-600/20 text-xs text-green-600 dark:text-white",o),children:[e.jsxs("div",{className:ne("ml-1 whitespace-pre-wrap px-2 py-1",n),children:[r?e.jsxs(e.Fragment,{children:[r," "]}):null,s]}),t||a&&e.jsx("button",{onClick:e=>{e.stopPropagation(),a(e)},className:"rounded-full bg-green-600/50","aria-label":`Remove ${s}`,children:e.jsx(c.X,{className:"m-[1.5px] p-1"})})]})));Ft.displayName="Tag";const qt=E.memo(Ft),$t=E.forwardRef((({className:t="",...r},s)=>e.jsx("textarea",{className:ne("flex h-20 w-full resize-none rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),ref:s,...r})));$t.displayName="Textarea";const _t=t.forwardRef(((r,s)=>{const[,a]=t.useState(!1),o=p.useAtomValue(Fe).toLowerCase();return t.useLayoutEffect((()=>a(!0)),[]),e.jsx(L,{dir:o,...r,ref:s})}));ue(".tooltip {\n z-index: 50;\n cursor: pointer;\n border-radius: 0.275rem;\n background-color: var(--surface-primary);\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n font-size: 1rem;\n line-height: 1.5rem;\n color: black;\n box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.25);\n /* Enhanced layout for longer descriptions */\n max-width: 320px;\n word-wrap: break-word;\n text-align: left;\n}\n\n@media (max-width: 640px) {\n .tooltip {\n max-width: 200px;\n }\n}\n\n.tooltip:where(.dark, .dark *) {\n background-color: var(--surface-primary);\n color: white;\n box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.35);\n}\n");const Gt=t.forwardRef((function({description:r,side:s="top",className:a,role:o,enableHTML:n=!1,...i},l){const c=q.useTooltipStore({placement:s}),d=q.useStoreState(c,(e=>e.mounted)),u=q.useStoreState(c,(e=>e.placement)),m=t.useId(),p=t.useMemo((()=>{const e=S();return e.addHook("afterSanitizeAttributes",(e=>{e.tagName&&"A"===e.tagName&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))})),e}),[]),x=t.useMemo((()=>{if(!n)return"";try{return p.sanitize(r,{ALLOWED_TAGS:["a","strong","b","em","i","br","code"],ALLOWED_ATTR:["href","class","target","rel"],ALLOW_DATA_ATTR:!1,ALLOW_ARIA_ATTR:!1})}catch(e){return console.error("Sanitization failed",e),r}}),[n,r,p]),{x:h,y:f}=t.useMemo((()=>{switch(u.split("-")[0]){case"top":return{x:0,y:-8};case"bottom":return{x:0,y:8};case"left":return{x:-8,y:0};case"right":return{x:8,y:0};default:return{x:0,y:0}}}),[u]);return e.jsxs(q.TooltipProvider,{store:c,hideTimeout:0,children:[e.jsx(q.TooltipAnchor,{...i,ref:l,role:o,"aria-describedby":m,onKeyDown:e=>{"button"===o&&"Enter"===e.key&&(e.preventDefault(),e.target.click())},className:ne("cursor-pointer",a)}),e.jsx(z.AnimatePresence,{children:!0===d&&e.jsxs(q.Tooltip,{gutter:4,alwaysVisible:!0,className:"tooltip",id:m,render:e.jsx(z.motion.div,{initial:{opacity:0,x:h,y:f},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:h,y:f}}),children:[e.jsx(q.TooltipArrow,{}),n?e.jsx("div",{dangerouslySetInnerHTML:{__html:x}}):r]})})]})})),Ut=({className:t,...r})=>e.jsx("nav",{role:"navigation","aria-label":"pagination",className:ne("mx-auto flex w-full justify-center",t),...r});Ut.displayName="Pagination";const Xt=E.forwardRef((({className:t,...r},s)=>e.jsx("ul",{ref:s,className:ne("flex flex-row items-center gap-1",t),...r})));Xt.displayName="PaginationContent";const Kt=E.forwardRef((({className:t,...r},s)=>e.jsx("li",{ref:s,className:ne("",t),...r})));Kt.displayName="PaginationItem";const Qt=({className:t,isActive:r=!1,size:s="icon",children:a,...o})=>e.jsx("a",{"aria-current":r?"page":void 0,className:ne(Te({variant:r?"outline":"ghost",size:s}),t),...o,children:a||e.jsx("span",{className:"sr-only",children:"Page link"})});Qt.displayName="PaginationLink";const Yt=({className:t,...r})=>e.jsxs(Qt,{"aria-label":"Go to previous page",size:"default",className:ne("gap-1 pl-2.5",t),...r,children:[e.jsx(c.ChevronLeft,{className:"h-4 w-4"}),e.jsx("span",{children:"Previous"})]});Yt.displayName="PaginationPrevious";const Jt=({className:t,...r})=>e.jsxs(Qt,{"aria-label":"Go to next page",size:"default",className:ne("gap-1 pr-2.5",t),...r,children:[e.jsx("span",{children:"Next"}),e.jsx(c.ChevronRight,{className:"h-4 w-4"})]});Jt.displayName="PaginationNext";const er=({className:t,...r})=>e.jsxs("span",{"aria-hidden":!0,className:ne("flex h-9 w-9 items-center justify-center",t),...r,children:[e.jsx(c.MoreHorizontal,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More pages"})]});er.displayName="PaginationEllipsis";const tr=E.forwardRef((({className:t,value:r,...s},a)=>e.jsx(re.Root,{ref:a,className:ne("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...s,children:e.jsx(re.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}})})));tr.displayName=re.Root.displayName;const rr=E.forwardRef((({className:t,containerClassName:r,...s},a)=>e.jsx(I.OTPInput,{ref:a,containerClassName:ne("flex items-center gap-2 has-[:disabled]:opacity-50",r),className:ne("disabled:cursor-not-allowed",t),...s})));rr.displayName="InputOTP";const sr=E.forwardRef((({className:t,...r},s)=>e.jsx("div",{ref:s,className:ne("flex items-center",t),...r})));sr.displayName="InputOTPGroup";const ar=E.forwardRef((({index:t,className:r,...s},a)=>{const o=E.useContext(I.OTPInputContext);if(!o)throw new Error("InputOTPSlot must be used within an OTPInput");const{char:n,hasFakeCaret:i,isActive:l}=o.slots[t];return e.jsxs("div",{ref:a,className:ne("text-md relative flex h-11 w-11 items-center justify-center border-y border-r border-input shadow-sm transition-all first:rounded-l-xl first:border-l last:rounded-r-xl",l&&"z-10 ring-1 ring-ring",r),...s,children:[n,i&&e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})}));ar.displayName="InputOTPSlot";const or=E.forwardRef((({...t},r)=>e.jsx("div",{ref:r,role:"separator",...t,children:e.jsx(c.Minus,{})})));function nr({value:r,onChange:s,placeholder:a,className:o=""}){const n=t.useRef(null),i=t.useCallback((e=>s(e.target.value)),[s]);return e.jsxs("div",{className:ne("focus:to-surface-primary/50 group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-gradient-to-b from-surface-tertiary-alt from-65% to-transparent px-3 py-2 text-text-primary transition-colors duration-300 focus:bg-gradient-to-b focus:from-surface-primary",o),children:[e.jsx(c.Search,{className:"h-4 w-4 text-text-secondary-alt transition-colors duration-300","aria-hidden":"true"}),e.jsx("input",{ref:n,type:"text",value:r??"",onChange:i,placeholder:String(a??"Search..."),"aria-label":"Search Model",className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm placeholder-text-secondary focus:outline-none focus:ring-1 focus:ring-ring-primary"}),e.jsx("button",{className:ne("relative flex h-5 w-5 items-center justify-end rounded-md text-text-secondary-alt",r?.length?"cursor-pointer opacity-100":"hidden"),"aria-label":"Clear search",onClick:()=>{s(""),setTimeout((()=>{n.current?.focus()}),0)},tabIndex:0,children:e.jsx(c.X,{"aria-hidden":"true",className:ne("text-text-secondary-alt",r?.length?"cursor-pointer opacity-100":"opacity-0")})})]})}function ir(e){return"string"==typeof e?e.startsWith("---")&&e.endsWith("---")?"":e.toUpperCase():""}function lr({availableOptions:r=[],placeholder:s,getTextKeyOverride:a,className:o,disabled:n=!1}){const[i,l]=t.useState(null),c=r.length>10&&!n,d=a||ir,u=t.useMemo((()=>{const e=i??"";if(!c||!e||!r.length)return r;const t=e.toUpperCase();return r.filter((e=>d(e).includes(t)))}),[r,d,i,c]),m=t.useCallback((e=>l(e)),[]);return[u,c?e.jsx(nr,{value:i,className:o,onChange:m,placeholder:s}):null]}or.displayName="InputOTPSeparator";const cr=se.Panel,dr=ae.Root,ur=ae.Group,mr=ae.Value,pr=E.forwardRef((({className:t="",children:r,...a},o)=>e.jsxs(ae.Trigger,{ref:o,className:ne("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-gray-200 border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-600 [&>span]:line-clamp-1","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",t),...a,children:[r,e.jsx(ae.Icon,{asChild:!0,children:e.jsx(s.CaretSortIcon,{className:"h-4 w-4 opacity-50"})})]})));pr.displayName=ae.Trigger.displayName;const xr=E.forwardRef((({className:t="",...r},a)=>e.jsx(ae.ScrollUpButton,{ref:a,className:ne("flex cursor-default items-center justify-center py-1 dark:text-white",t),...r,children:e.jsx(s.ChevronUpIcon,{})})));xr.displayName=ae.ScrollUpButton.displayName;const hr=E.forwardRef((({className:t="",...r},a)=>e.jsx(ae.ScrollDownButton,{ref:a,className:ne("flex cursor-default items-center justify-center py-1 dark:text-white",t),...r,children:e.jsx(s.ChevronDownIcon,{})})));hr.displayName=ae.ScrollDownButton.displayName;const fr=E.forwardRef((({className:t="",children:r,position:s="popper",...a},o)=>e.jsx(ae.Portal,{children:e.jsxs(ae.Content,{ref:o,className:ne("bg-popover text-popover-foreground relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-gray-600","popper"===s?"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1":"",t),position:s,...a,children:[e.jsx(xr,{}),e.jsx(ae.Viewport,{className:ne("p-1","popper"===s?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""),children:r}),e.jsx(hr,{})]})})));fr.displayName=ae.Content.displayName;const gr=E.forwardRef((({className:t="",...r},s)=>e.jsx(ae.Label,{ref:s,className:ne("px-2 py-1.5 text-sm font-semibold",t),...r})));gr.displayName=ae.Label.displayName;const br=E.forwardRef((({className:t="",children:r,...a},o)=>e.jsxs(ae.Item,{ref:o,className:ne("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",t),...a,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(ae.ItemIndicator,{children:e.jsx(s.CheckIcon,{className:"h-4 w-4"})})}),e.jsx(ae.ItemText,{children:r})]})));br.displayName=ae.Item.displayName;const Cr=E.forwardRef((({className:t="",...r},s)=>e.jsx(ae.Separator,{ref:s,className:ne("-mx-1 my-1 h-px bg-muted",t),...r})));Cr.displayName=ae.Separator.displayName;const vr=t.memo((function({options:r,value:s,onChange:a,disabled:o=!1,className:n="",fullWidth:i=!1}){const l=Ke(),[c,d]=t.useState(s??""),u=t.useRef([]),[m,p]=t.useState({}),x=t.useCallback((()=>{const e=r.findIndex((e=>e.value===c));if(e>=0&&u.current[e]){const t=u.current[e],r=t?.parentElement;if(t&&r){const e=r.getBoundingClientRect(),s=t.getBoundingClientRect(),a=s.left-e.left-4;p({width:`${s.width}px`,transform:`translateX(${a}px)`})}}}),[c,r]);if(t.useLayoutEffect((()=>{x()}),[x]),t.useLayoutEffect((()=>{void 0!==s&&d(s)}),[s]),0===r.length)return e.jsx("div",{className:"relative inline-flex items-center rounded-lg bg-muted p-1 opacity-50",role:"radiogroup",children:e.jsx("span",{className:"px-4 py-2 text-xs text-muted-foreground",children:l("com_ui_no_options")})});const h=r.findIndex((e=>e.value===c));return e.jsxs("div",{className:`relative ${i?"flex":"inline-flex"} items-center rounded-lg bg-muted p-1 ${n}`,role:"radiogroup",children:[h>=0&&e.jsx("div",{className:"pointer-events-none absolute inset-y-1 rounded-md border border-border/50 bg-background shadow-sm transition-all duration-300 ease-out",style:m}),r.map(((t,r)=>e.jsxs("button",{ref:e=>{u.current[r]=e},type:"button",role:"radio","aria-checked":c===t.value,onClick:()=>{return e=t.value,d(e),void a?.(e);var e},disabled:o,className:`relative z-10 flex h-[34px] items-center justify-center gap-2 rounded-md px-4 text-sm font-medium transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${t.value,"text-foreground"} ${o?"cursor-not-allowed opacity-50":""} ${i?"flex-1":""}`,children:[t.icon&&e.jsx("span",{className:"flex-shrink-0",children:t.icon}),e.jsx("span",{className:"whitespace-nowrap",children:t.label})]},t.value)))]})}));const wr=t.forwardRef(((t,r)=>{const{className:s="icon-md",size:a="1.2em"}=t;return e.jsx("svg",{ref:r,fill:"none",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:a,width:a,className:ne(s),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2929 4.29291C15.0641 2.52167 17.9359 2.52167 19.7071 4.2929C21.4783 6.06414 21.4783 8.93588 19.7071 10.7071L18.7073 11.7069L11.1603 19.2539C10.7182 19.696 10.1489 19.989 9.53219 20.0918L4.1644 20.9864C3.84584 21.0395 3.52125 20.9355 3.29289 20.7071C3.06453 20.4788 2.96051 20.1542 3.0136 19.8356L3.90824 14.4678C4.01103 13.8511 4.30396 13.2818 4.7461 12.8397L13.2929 4.29291ZM13 7.41422L6.16031 14.2539C6.01293 14.4013 5.91529 14.591 5.88102 14.7966L5.21655 18.7835L9.20339 18.119C9.40898 18.0847 9.59872 17.9871 9.7461 17.8397L16.5858 11L13 7.41422ZM18 9.5858L14.4142 6.00001L14.7071 5.70712C15.6973 4.71693 17.3027 4.71693 18.2929 5.70712C19.2831 6.69731 19.2831 8.30272 18.2929 9.29291L18 9.5858Z",fill:"currentColor"})})}));function yr({className:t="m-auto",size:r=20,color:s="currentColor",bgOpacity:a=.1,speed:o=.75}){const n={"--spinner-speed":`${o}s`};return e.jsxs("svg",{className:ne(t,"spinner"),width:r,height:r,viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",style:n,children:[e.jsx("defs",{children:e.jsx("style",{type:"text/css",children:"\n .spinner {\n transform-origin: center;\n overflow: visible;\n animation: spinner-rotate var(--spinner-speed) linear infinite;\n }\n @keyframes spinner-rotate {\n to { transform: rotate(360deg); }\n }\n "})}),e.jsx("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:s,strokeOpacity:a}),e.jsx("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:s,strokeDasharray:"25 75",strokeLinecap:"round"})]})}function jr({className:t=""}){return e.jsx("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0633 5.67375C18.5196 5.98487 18.6374 6.607 18.3262 7.06331L10.8262 18.0633C10.6585 18.3093 10.3898 18.4678 10.0934 18.4956C9.79688 18.5234 9.50345 18.4176 9.29289 18.2071L4.79289 13.7071C4.40237 13.3166 4.40237 12.6834 4.79289 12.2929C5.18342 11.9023 5.81658 11.9023 6.20711 12.2929L9.85368 15.9394L16.6738 5.93664C16.9849 5.48033 17.607 5.36263 18.0633 5.67375Z",fill:"currentColor"})})}function Nr({className:t=""}){return e.jsx("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne("icon-md h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5555 4C10.099 4 9.70052 4.30906 9.58693 4.75114L9.29382 5.8919H14.715L14.4219 4.75114C14.3083 4.30906 13.9098 4 13.4533 4H10.5555ZM16.7799 5.8919L16.3589 4.25342C16.0182 2.92719 14.8226 2 13.4533 2H10.5555C9.18616 2 7.99062 2.92719 7.64985 4.25342L7.22886 5.8919H4C3.44772 5.8919 3 6.33961 3 6.8919C3 7.44418 3.44772 7.8919 4 7.8919H4.10069L5.31544 19.3172C5.47763 20.8427 6.76455 22 8.29863 22H15.7014C17.2354 22 18.5224 20.8427 18.6846 19.3172L19.8993 7.8919H20C20.5523 7.8919 21 7.44418 21 6.8919C21 6.33961 20.5523 5.8919 20 5.8919H16.7799ZM17.888 7.8919H6.11196L7.30423 19.1057C7.3583 19.6142 7.78727 20 8.29863 20H15.7014C16.2127 20 16.6417 19.6142 16.6958 19.1057L17.888 7.8919ZM10 10C10.5523 10 11 10.4477 11 11V16C11 16.5523 10.5523 17 10 17C9.44772 17 9 16.5523 9 16V11C9 10.4477 9.44772 10 10 10ZM14 10C14.5523 10 15 10.4477 15 11V16C15 16.5523 14.5523 17 14 17C13.4477 17 13 16.5523 13 16V11C13 10.4477 13.4477 10 14 10Z",fill:"currentColor"})})}function kr(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),e.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}ue(".popover-ui {\n display: flex;\n max-height: min(var(--popover-available-height, 1700px), 1700px);\n flex-direction: column;\n overflow: auto;\n overscroll-behavior: contain;\n border-radius: 1rem;\n border-width: 1px;\n border-style: solid;\n border-color: var(--border-light);\n background-color: var(--surface-primary);\n padding: 0.5rem;\n color: var(--text-primary);\n box-shadow:\n 0 10px 15px -3px rgb(0 0 0 / 0.1),\n 0 4px 6px -4px rgb(0 0 0 / 0.1);\n transform-origin: top;\n opacity: 0;\n transition-property: opacity, scale, translate;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n scale: 0.95;\n translate: 0 -0.5rem;\n margin-top: 4px;\n margin-right: -2px;\n}\n\n.popover-animate {\n opacity: 0;\n transform: scale(0.95) translateY(-0.5rem);\n transition:\n opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),\n transform 150ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.popover-animate[data-enter] {\n opacity: 1;\n transform: scale(1) translateY(0);\n}\n\n.popover-ui:focus-visible,\n.popover-ui[data-focus-visible] {\n outline: var(--bg-surface-hover);\n outline-offset: -1px;\n}\n\n.popover-ui:where(.dark, .dark *) {\n background-color: var(--surface-secondary);\n color: var(--text-secondary);\n box-shadow:\n 0 10px 15px -3px rgb(0 0 0 / 0.25),\n 0 4px 6px -4px rgb(0 0 0 / 0.1);\n}\n\n.select-item {\n display: flex;\n cursor: pointer;\n scroll-margin: 0.5rem;\n align-items: center;\n gap: 0.5rem;\n border-radius: 0.5rem;\n padding: 0.5rem;\n outline: none !important;\n}\n\n.select-item[aria-disabled='true'] {\n opacity: 0.5;\n}\n\n.select-item[data-active-item] {\n background-color: var(--surface-hover);\n color: var(--text-primary);\n}\n\n.popover-ui[data-enter] {\n opacity: 1;\n scale: 1;\n translate: 0;\n}\n");const Lr=e=>"object"==typeof e&&"divider"in e,Mr=e=>"object"==typeof e&&"value"in e&&"label"in e,Sr=e=>{if("undefined"!=typeof Intl&&"Segmenter"in Intl){const t=new Intl.Segmenter("en",{granularity:"grapheme"}).segment(e);return Array.from(t).map((e=>e.segment))}return[...e]},zr=({value:t,onChange:r,isSearching:s,placeholder:a})=>{const o=!0===s,n=null!=t&&t.length>0;return e.jsxs("div",{className:"relative w-full",children:[e.jsx("div",{className:"relative rounded-lg transition-all duration-500 ease-in-out",children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-3 top-1/2 z-50 -translate-y-1/2",children:e.jsx(c.Search,{className:ne("h-4 w-4 transition-all duration-500 ease-in-out",o&&n?"text-blue-400":"text-gray-400")})}),e.jsx("input",{type:"text",value:t,onChange:r,placeholder:a,className:"peer relative z-20 w-full rounded-lg bg-surface-secondary px-10 py-2 outline-none backdrop-blur-sm transition-all duration-500 ease-in-out placeholder:text-gray-400 focus:ring-ring"}),e.jsx("div",{className:`pointer-events-none absolute inset-0 z-20 rounded-lg bg-gradient-to-r from-blue-500/20 via-purple-500/20 to-blue-500/20 transition-all duration-500 ease-in-out ${o&&n?"opacity-100 blur-sm":"opacity-0 blur-none"} `}),e.jsx("div",{className:`absolute right-3 top-1/2 z-20 -translate-y-1/2 transition-all duration-500 ease-in-out ${o&&n?"scale-100 opacity-100":"scale-0 opacity-0"} `,children:e.jsxs("div",{className:"relative h-2 w-2",children:[e.jsx("div",{className:"absolute inset-0 animate-ping rounded-full bg-blue-500/60"}),e.jsx("div",{className:"absolute inset-0 rounded-full bg-blue-500"})]})})]})}),e.jsx("div",{className:`absolute -inset-8 -z-10 transition-all duration-700 ease-in-out ${o&&n?"scale-105 opacity-100":"scale-100 opacity-0"} `,children:e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("div",{className:`bg-gradient-radial absolute inset-0 from-blue-500/10 to-transparent transition-opacity duration-700 ease-in-out ${o&&n?"animate-pulse-slow opacity-100":"opacity-0"} `}),e.jsx("div",{className:`absolute inset-0 bg-gradient-to-r from-purple-500/5 via-blue-500/5 to-purple-500/5 blur-xl transition-all duration-700 ease-in-out ${o&&n?"animate-gradient-x opacity-100":"opacity-0"} `})]})}),e.jsx("div",{className:"absolute inset-0 -z-20 scale-100 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-blue-500/10 opacity-0 blur-xl transition-all duration-500 ease-in-out peer-focus:scale-105 peer-focus:opacity-100"})]})},Rr=t.memo((({checked:t,onChange:r,ariaLabel:s})=>e.jsx("div",{role:"button",tabIndex:0,onKeyDown:e=>e.stopPropagation(),className:"flex h-full w-[30px] items-center justify-center",onClick:e=>e.stopPropagation(),children:e.jsx(He,{checked:t,onCheckedChange:r,"aria-label":s})})));Rr.displayName="SelectionCheckbox";const Ir=t.memo((({row:r,isSmallScreen:s,onSelectionChange:a,index:o,isSearching:n})=>{const i=t.useCallback((e=>{r.toggleSelected(e),a?.(r.id,e)}),[r,a]);return e.jsx(Bt,{"data-state":r.getIsSelected()?"selected":void 0,className:"motion-safe:animate-fadeIn border-b border-border-light transition-all duration-300 ease-out hover:bg-surface-secondary",style:{animationDelay:20*o+"ms",transform:`translateY(${n?"4px":"0"})`,opacity:n?.5:1},children:r.getVisibleCells().map((t=>"select"===t.column.id?e.jsx(Pt,{className:"px-2 py-1 transition-all duration-300",children:e.jsx(Rr,{checked:r.getIsSelected(),onChange:i,ariaLabel:"Select row"})},t.id):"title"===t.column.id?e.jsx(Dt,{className:"w-0 max-w-0 px-2 py-1 align-middle text-xs transition-all duration-300 sm:px-4 sm:py-2 sm:text-sm",style:Tr(t.column.columnDef,s),scope:"row",children:e.jsx("div",{className:"overflow-hidden text-ellipsis",children:P.flexRender(t.column.columnDef.cell,t.getContext())})},t.id):e.jsx(Pt,{className:"w-0 max-w-0 px-2 py-1 align-middle text-xs transition-all duration-300 sm:px-4 sm:py-2 sm:text-sm",style:Tr(t.column.columnDef,s),children:e.jsx("div",{className:"overflow-hidden text-ellipsis",children:P.flexRender(t.column.columnDef.cell,t.getContext())})},t.id)))})}));function Tr(e,t){return{width:t?e.meta?.mobileSize:e.meta?.size,minWidth:e.meta?.minWidth,maxWidth:e.meta?.size}}const Vr=t.memo((({onDelete:t,isDeleting:r,disabled:s,isSmallScreen:a,ariaLabel:o})=>t?e.jsx(Ve,{variant:"outline",onClick:t,disabled:s,className:ne("min-w-[40px] transition-all duration-200",a&&"px-2 py-1"),"aria-label":o,children:r?e.jsx(yr,{className:"size-4"}):e.jsxs(e.Fragment,{children:[e.jsx(Nr,{className:"size-3.5 text-red-400 sm:size-4"}),!a&&e.jsx("span",{className:"ml-2",children:"Delete"})]})}):null));class Hr{constructor(e,t,r,s,a,o,n,i){this.width=e.width,this.height=e.height,this.ctx=t,this.x=r,this.y=s,this.color=a,this.speed=this.random(.1,.9)*o,this.size=0,this.sizeStep=.4*Math.random(),this.minSize=.5,this.maxSizeInteger=2,this.maxSize=this.random(this.minSize,this.maxSizeInteger),this.delay=n,this.counter=0,this.counterStep=4*Math.random()+.01*(this.width+this.height),this.isIdle=!1,this.isReverse=!1,this.isShimmer=!1,this.activationThreshold=i}random(e,t){return Math.random()*(t-e)+e}draw(){const e=.5*this.maxSizeInteger-.5*this.size;this.ctx.fillStyle=this.color,this.ctx.fillRect(this.x+e,this.y+e,this.size,this.size)}appear(){this.isIdle=!1,this.counter<=this.delay?this.counter+=this.counterStep:(this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.draw())}appearWithProgress(e){if(e-this.activationThreshold<=0)this.isIdle=!0;else{if(this.counter<=this.delay)return this.counter+=this.counterStep,void(this.isIdle=!1);this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.isIdle=!1,this.draw()}}disappear(){this.isShimmer=!1,this.counter=0,this.size<=0?this.isIdle=!0:(this.size-=.1,this.draw())}shimmer(){this.size>=this.maxSize?this.isReverse=!0:this.size<=this.minSize&&(this.isReverse=!1),this.size+=this.isReverse?-this.speed:this.speed}}const Br=(e,t)=>{const r=parseInt(String(e),10);return r<=0||t?0:r>=100?.1:.001*r},Dr=(e,t=0,r=1)=>Math.min(Math.max(e,t),r),Pr={default:{gap:5,speed:35,colors:"#f8fafc,#f1f5f9,#cbd5e1",noFocus:!1},blue:{gap:10,speed:25,colors:"#e0f2fe,#7dd3fc,#0ea5e9",noFocus:!1},yellow:{gap:3,speed:20,colors:"#fef08a,#fde047,#eab308",noFocus:!1},pink:{gap:6,speed:80,colors:"#fecdd3,#fda4af,#e11d48",noFocus:!0}};const Ar=t.forwardRef((({children:t,handleFileChange:r},s)=>e.jsxs(e.Fragment,{children:[t,e.jsx("input",{ref:s,multiple:!0,type:"file",style:{display:"none"},onChange:r})]})));Ar.displayName="FileUpload";function Or(e,t){return 0===e.length?t||"Select...":1===e.length?e[0]:`${e.length} items selected`}ue(".animate-popover {\n transform-origin: top;\n opacity: 0;\n transition:\n opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),\n transform 150ms cubic-bezier(0.4, 0, 0.2, 1);\n transform: scale(0.95) translateY(-0.5rem);\n}\n\n.animate-popover[data-enter] {\n opacity: 1;\n transform: scale(1) translateY(0);\n}\n\n.animate-popover-left {\n transform-origin: left;\n opacity: 0;\n transition:\n opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),\n transform 150ms cubic-bezier(0.4, 0, 0.2, 1);\n transform: scale(0.95) translateX(-0.5rem);\n}\n\n.animate-popover-left[data-enter] {\n opacity: 1;\n transform: scale(1) translateX(0);\n}\n");const Zr=({items:t,menuId:r,keyPrefix:s,className:a,iconClassName:o,itemClassName:n,modal:i,portal:l,sameWidth:c,gutter:d=8,finalFocus:u,unmountOnHide:m,preserveTabOrder:p,...x})=>{const h=q.useMenuStore(),f=q.useMenuContext();return e.jsx(q.Menu,{id:r,modal:i,gutter:d,portal:l,sameWidth:c,finalFocus:u,unmountOnHide:m,preserveTabOrder:p,className:ne("popover-ui z-50",a),...x,children:t.filter((e=>!1!==e.show)).map(((t,a)=>{const{subItems:i}=t;return!0===t.separate?e.jsx(q.MenuSeparator,{className:"my-1 h-px bg-white/10"},a):i&&i.length>0?e.jsxs(q.MenuProvider,{store:h,children:[e.jsxs(q.MenuButton,{className:ne("group flex w-full cursor-pointer items-center justify-between gap-2 rounded-lg px-3 py-3.5 text-sm text-text-primary outline-none transition-colors duration-200 hover:bg-surface-hover focus:bg-surface-hover md:px-2.5 md:py-2",n),disabled:t.disabled,id:t.id,render:t.render,ref:t.ref,children:[e.jsxs("span",{className:"flex items-center gap-2",children:[null!=t.icon&&e.jsx("span",{className:ne("mr-2 size-4",o),"aria-hidden":"true",children:t.icon}),t.label]}),e.jsx(q.MenuButtonArrow,{className:"stroke-1 text-base opacity-75"})]}),e.jsx(Zr,{items:i,menuId:`${r}-${a}`,gutter:12,portal:!0},`${s??""}${a}-${t.id??""}`)]},`${s??""}${a}-${t.id??""}-provider`):e.jsxs(q.MenuItem,{id:t.id,className:ne("group flex w-full cursor-pointer items-center gap-2 rounded-lg px-3 py-3.5 text-sm text-text-primary outline-none transition-colors duration-200 hover:bg-surface-hover focus:bg-surface-hover md:px-2.5 md:py-2",n),disabled:t.disabled,render:t.render,ref:t.ref,hideOnClick:t.hideOnClick,onClick:e=>{e.preventDefault(),t.onClick&&t.onClick(e),!1!==t.hideOnClick&&f?.hide()},children:[null!=t.icon&&e.jsx("span",{className:ne("mr-2 size-4",o),"aria-hidden":"true",children:t.icon}),t.label,null!=t.kbd&&e.jsxs("kbd",{className:"ml-auto hidden font-sans text-xs text-black/50 group-hover:inline group-focus:inline dark:text-white/50",children:["⌘",t.kbd]})]},`${s??""}${a}-${t.id??""}`)}))})};function Wr(e){if(!e)return;const t=function(e){const t={};return Object.entries({"rgb-text-primary":"--text-primary","rgb-text-secondary":"--text-secondary","rgb-text-secondary-alt":"--text-secondary-alt","rgb-text-tertiary":"--text-tertiary","rgb-text-warning":"--text-warning","rgb-ring-primary":"--ring-primary","rgb-header-primary":"--header-primary","rgb-header-hover":"--header-hover","rgb-header-button-hover":"--header-button-hover","rgb-surface-active":"--surface-active","rgb-surface-active-alt":"--surface-active-alt","rgb-surface-hover":"--surface-hover","rgb-surface-hover-alt":"--surface-hover-alt","rgb-surface-primary":"--surface-primary","rgb-surface-primary-alt":"--surface-primary-alt","rgb-surface-primary-contrast":"--surface-primary-contrast","rgb-surface-secondary":"--surface-secondary","rgb-surface-secondary-alt":"--surface-secondary-alt","rgb-surface-tertiary":"--surface-tertiary","rgb-surface-tertiary-alt":"--surface-tertiary-alt","rgb-surface-dialog":"--surface-dialog","rgb-surface-submit":"--surface-submit","rgb-surface-submit-hover":"--surface-submit-hover","rgb-surface-destructive":"--surface-destructive","rgb-surface-destructive-hover":"--surface-destructive-hover","rgb-surface-chat":"--surface-chat","rgb-border-light":"--border-light","rgb-border-medium":"--border-medium","rgb-border-medium-alt":"--border-medium-alt","rgb-border-heavy":"--border-heavy","rgb-border-xheavy":"--border-xheavy","rgb-brand-purple":"--brand-purple","rgb-presentation":"--presentation","rgb-background":"--background","rgb-foreground":"--foreground","rgb-primary":"--primary","rgb-primary-foreground":"--primary-foreground","rgb-secondary":"--secondary","rgb-secondary-foreground":"--secondary-foreground","rgb-muted":"--muted","rgb-muted-foreground":"--muted-foreground","rgb-accent":"--accent","rgb-accent-foreground":"--accent-foreground","rgb-destructive-foreground":"--destructive-foreground","rgb-border":"--border","rgb-input":"--input","rgb-ring":"--ring","rgb-card":"--card","rgb-card-foreground":"--card-foreground"}).forEach((([r,s])=>{const a=e[r];a&&(t[s]=a)})),t}(e),r=document.documentElement;Object.entries(t).forEach((([e,t])=>{if(!t)return;!function(e){if(!e)return!0;const t=e.match(/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})$/);if(!t)return!1;const[,r,s,a]=t;return[r,s,a].every((e=>{const t=parseInt(e,10);return t>=0&&t<=255}))}(t)?console.error(`Invalid RGB value for ${e}: ${t}`):r.style.setProperty(e,`rgb(${t})`)}))}const Er=A.atomWithStorage("color-theme","system",void 0,{getOnInit:!0}),Fr=A.atomWithStorage("theme-colors",void 0,void 0,{getOnInit:!0}),qr=A.atomWithStorage("theme-name",void 0,void 0,{getOnInit:!0}),$r=t.createContext({theme:"system",setTheme:()=>{},setThemeRGB:()=>{},setThemeName:()=>{},resetTheme:()=>{}}),_r=e=>"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches:"dark"===e;const Gr=({theme:r,onChange:s})=>{const a={system:e.jsx(c.Monitor,{}),dark:e.jsx(c.Moon,{color:"white"}),light:e.jsx(c.Sun,{})},o=_r(r)?"light":"dark",n=`Switch to ${o} theme`;return t.useEffect((()=>{const e=e=>{e.ctrlKey&&e.shiftKey&&"t"===e.key.toLowerCase()&&(e.preventDefault(),s(o))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[o,s]),e.jsx("button",{className:"flex items-center gap-2 rounded-lg p-2 transition-colors hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","aria-label":n,"aria-keyshortcuts":"Ctrl+Shift+T",onClick:e=>{e.preventDefault(),s(o)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),s(o))},children:a[r]})},Ur=E.forwardRef((({icon:r,label:s,setValue:a,className:o,checked:i,defaultChecked:l,isCheckedClassName:c},d)=>{const u=n.useCheckboxStore(),m=n.useStoreState(u,(e=>e?.value));return t.useEffect((()=>{void 0!==i&&u.setValue(i)}),[i,u]),t.useEffect((()=>{void 0!==l&&void 0===i&&u.setValue(l)}),[l,i,u]),e.jsxs(n.Checkbox,{ref:d,store:u,onChange:e=>{e.stopPropagation(),"boolean"==typeof m&&a?.({e:e,value:!m})},className:ne("group relative inline-flex items-center justify-center gap-1.5","rounded-full border border-border-medium text-sm font-medium","size-9 p-2 transition-all md:w-full md:p-3","bg-transparent shadow-sm hover:bg-surface-hover hover:shadow-md active:shadow-inner",m&&c&&c,o),render:e.jsx("button",{type:"button","aria-label":s}),children:[r&&e.jsx("span",{className:"icon-md text-text-primary",children:r}),e.jsx("span",{className:"hidden truncate md:block",children:s})]})}));Ur.displayName="CheckboxButton";const Xr=t.forwardRef(((t,r)=>{const{title:s,description:a,main:o,buttons:n,leftButtons:i,selection:l,className:c,headerClassName:d,footerClassName:u,showCloseButton:m,showCancelButton:p=!0}=t,{selectHandler:x,selectClasses:h,selectText:f}=l||{};return e.jsxs(st,{showCloseButton:m,ref:r,className:ne("shadow-2xl dark:bg-gray-700",c||""),onClick:e=>e.stopPropagation(),children:[e.jsxs(at,{className:ne(d??""),children:[e.jsx(nt,{className:"text-lg font-medium leading-6 text-gray-800 dark:text-gray-200",children:s}),a&&e.jsx(it,{className:"text-gray-600 dark:text-gray-300",children:a})]}),e.jsx("div",{className:"px-6",children:o||null}),e.jsxs(ot,{className:u,children:[e.jsx("div",{children:i||null}),e.jsxs("div",{className:"flex h-auto gap-3",children:[p&&e.jsx(lt,{className:"border-gray-100 hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-600",children:"cancel"}),n||null,l?e.jsx(lt,{onClick:x,className:`${h||"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} inline-flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm`,children:f}):null]})]})]})}));var Kr=t.memo((function({selectedValue:r,displayValue:s,items:a,setValue:o,ariaLabel:n,searchPlaceholder:i,selectPlaceholder:l,containerClassName:d,isCollapsed:u,SelectIcon:m,showCarat:p,className:x,disabled:h,iconClassName:g,iconSide:b="left",selectId:C}){const[v,w]=t.useState(""),y=t.useRef(null),[j,N]=t.useState(null),k=e=>({id:`item-${e.value}`,value:e.value,label:e.label,icon:e.icon}),L=q.useComboboxStore({defaultItems:a.map(k),resetValueOnHide:!0,value:v,setValue:w}),M=q.useSelectStore({combobox:L,defaultItems:a.map(k),value:r,setValue:o}),S=t.useMemo((()=>f.matchSorter(a,v,{keys:["value","label"],baseSort:(e,t)=>e.index<t.index?-1:1}).map(k)),[v,a]);t.useEffect((()=>{y.current&&!u&&N(y.current.offsetWidth)}),[u]);const z=ne("flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",g),R=ne("mr-2 flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",g);return e.jsxs("div",{className:ne("flex w-full items-center justify-center px-1",d),children:[e.jsx(q.SelectLabel,{store:M,className:"sr-only",children:n}),e.jsxs(q.Select,{ref:y,store:M,id:C,disabled:h,className:ne("flex items-center justify-center gap-2 rounded-full bg-surface-secondary","text-text-primary hover:bg-surface-tertiary","border border-border-light",u?"h-10 w-10":"h-10 w-full rounded-xl px-3 py-2 text-sm",x),children:[null!=m&&"left"===b&&e.jsx("div",{className:z,children:m}),!u&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"flex-grow truncate text-left",children:null!=s?s||l:r||l}),null!=m&&"right"===b&&e.jsx("div",{className:z,children:m}),p&&e.jsx(c.ChevronDown,{className:"h-4 w-4 text-text-secondary"})]})]}),e.jsxs(q.SelectPopover,{store:M,gutter:4,portal:!0,className:ne("animate-popover z-50 overflow-hidden rounded-xl border border-border-light bg-surface-secondary shadow-lg"),style:{width:u?"300px":j??"300px"},children:[e.jsx("div",{className:"py-1.5",children:e.jsxs("div",{className:"relative",children:[e.jsx(c.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-primary"}),e.jsx(q.Combobox,{store:L,autoSelect:!0,placeholder:i,className:"w-full rounded-md bg-surface-secondary py-2 pl-9 pr-3 text-sm text-text-primary focus:outline-none"})]})}),e.jsx("div",{className:"max-h-[300px] overflow-auto",children:e.jsx(q.ComboboxList,{store:L,children:e.jsx(Z.SelectRenderer,{store:M,items:S,itemSize:36,overscan:5,children:({value:t,icon:r,label:s,...a})=>e.jsxs(q.ComboboxItem,{...a,className:ne("flex w-full cursor-pointer items-center px-3 text-sm","text-text-primary hover:bg-surface-tertiary","data-[active-item]:bg-surface-tertiary"),render:e.jsx(q.SelectItem,{value:t}),children:[null!=r&&"left"===b&&e.jsx("div",{className:R,children:r}),e.jsx("span",{className:"flex-grow truncate text-left",children:s}),null!=r&&"right"===b&&e.jsx("div",{className:R,children:r})]},a.id)})})})]})]})}));const Qr=t.forwardRef(((t,r)=>{const s=Ke(),{title:a,main:o,buttons:n,selection:i,className:l,leftButtons:c,description:d="",mainClassName:u,headerClassName:m,footerClassName:p,showCloseButton:x,overlayClassName:h,showCancelButton:f=!0}=t,{selectHandler:g,selectClasses:b,selectText:C,isLoading:v}=i||{};return e.jsxs(yt,{overlayClassName:h,showCloseButton:x,ref:r,className:ne("w-11/12 border-none bg-background text-foreground",l??""),onClick:e=>e.stopPropagation(),children:[e.jsxs(jt,{className:ne(m??""),children:[e.jsx(kt,{children:a}),d&&e.jsx(Lt,{className:"items-center justify-center",children:d})]}),e.jsx("div",{className:ne("px-0 py-2",u),children:null!=o?o:null}),e.jsxs(Nt,{className:p,children:[e.jsx("div",{children:null!=c?e.jsx("div",{className:"mt-3 flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:mt-0 sm:flex-row",children:c}):null}),e.jsxs("div",{className:"flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:flex-row",children:[f&&e.jsx(vt,{asChild:!0,children:e.jsx(Ve,{variant:"outline","aria-label":s("com_ui_cancel"),children:s("com_ui_cancel")})}),null!=n?n:null,i?e.jsx(vt,{onClick:g,disabled:v,className:`${b??"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm disabled:opacity-80 max-sm:order-first max-sm:w-full sm:order-none`,children:!0===v?e.jsx(yr,{className:"size-4 text-white"}):C}):null]})]})]})})),Yr=E.forwardRef((({className:t,options:r,onSelect:s,...a},o)=>{const[n,i]=E.useState(!1),[l,c]=E.useState(a.value||""),[d,u]=E.useState(-1),m=E.useRef(null),p=e=>{c(e),i(!1),u(-1),s&&s(e),a.onChange&&a.onChange({target:{value:e}})};return E.useEffect((()=>{const e=e=>{m.current&&!m.current.contains(e.target)&&(i(!1),u(-1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),e.jsxs("div",{className:"relative",ref:m,children:[e.jsxs("div",{className:"relative",children:[e.jsx(xt,{...a,value:l,onChange:e=>{c(e.target.value),a.onChange&&a.onChange(e)},onKeyDown:e=>{switch(e.key){case"ArrowDown":e.preventDefault(),n?u((e=>e<r.length-1?e+1:e)):i(!0);break;case"ArrowUp":e.preventDefault(),u((e=>e>0?e-1:0));break;case"Enter":e.preventDefault(),n&&-1!==d&&p(r[d]),i(!1);break;case"Escape":i(!1),u(-1)}},"aria-haspopup":"listbox","aria-controls":"dropdown-list",className:ne("bg-surface-secondary",t??""),ref:o}),e.jsx("button",{type:"button",className:"text-tertiary absolute inset-y-0 right-0 flex items-center rounded-md px-2 hover:text-secondary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring-primary",onClick:()=>i(!n),"aria-label":n?"Close dropdown":"Open dropdown",children:e.jsx("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),n&&e.jsx("ul",{id:"dropdown-list",role:"listbox",className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md border border-border-medium bg-surface-secondary shadow-lg focus:ring-1 focus:ring-inset focus:ring-ring-primary",children:r.map(((t,r)=>e.jsx("li",{role:"option","aria-selected":r===d,className:ne("cursor-pointer rounded-md px-3 py-2","focus:bg-surface-tertiary focus:outline-none focus:ring-1 focus:ring-inset focus:ring-ring-primary",r===d?"bg-surface-active text-primary":"text-secondary hover:bg-surface-tertiary"),onClick:()=>p(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p(t))},tabIndex:0,children:t},r)))})]})}));Yr.displayName="InputWithDropdown";const Jr=t.createContext({showToast:()=>({})});exports.Accordion=ie,exports.AccordionContent=de,exports.AccordionItem=le,exports.AccordionTrigger=ce,exports.AlertDialog=xe,exports.AlertDialogAction=je,exports.AlertDialogCancel=Ne,exports.AlertDialogContent=be,exports.AlertDialogDescription=ye,exports.AlertDialogFooter=ve,exports.AlertDialogHeader=Ce,exports.AlertDialogTitle=we,exports.AlertDialogTrigger=he,exports.AnimatedSearchInput=zr,exports.AnimatedTabs=function({tabs:r,className:s="",tabListClassName:a="",tabClassName:o="",tabPanelClassName:n="",containerClassName:i="",tabListProps:l={},defaultSelectedId:c}){const d=r.map(((e,t)=>e.id||`tab-${t}`)),u=c||d[0],m=t.useRef(null);return t.useEffect((()=>{const e=m.current;if(!e)return;const t=()=>{const t=e.querySelector('[data-state="active"]');t&&(e.style.setProperty("--tab-left",`${t.offsetLeft}px`),e.style.setProperty("--tab-width",`${t.offsetWidth}px`))};t();const r=new MutationObserver(t);return r.observe(e,{attributes:!0,subtree:!0,attributeFilter:["data-state"]}),()=>r.disconnect()}),[r]),e.jsx("div",{className:`w-full ${s}`,children:e.jsxs(q.TabProvider,{defaultSelectedId:u,children:[e.jsx(q.TabList,{ref:m,"aria-label":"Tabs",className:`animated-tab-list flex py-1 ${a}`,...l,children:r.map(((t,r)=>e.jsx(me,{id:d[r],disabled:t.disabled,className:o,"data-state":d[r]===u?"active":"inactive",children:t.label},d[r])))}),e.jsx("div",{className:ne("animated-panels relative flex w-full flex-col items-center overflow-hidden p-0",i),children:r.map(((t,r)=>e.jsx(pe,{id:`panel-${d[r]}`,tabId:d[r],className:n,children:t.content},`panel-${d[r]}`)))})]})})},exports.AnthropicIcon=function({size:t=25,className:r=""}){return e.jsxs("svg",{viewBox:"0 0 24 16",overflow:"visible",width:t,height:t,className:ne("fill-current text-black",r),children:[e.jsx("g",{style:{transform:"translateX(13px) rotateZ(0deg)",transformOrigin:"4.775px 7.73501px"},children:e.jsx("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M0,0 C0,0 6.1677093505859375,15.470022201538086 6.1677093505859375,15.470022201538086 C6.1677093505859375,15.470022201538086 9.550004005432129,15.470022201538086 9.550004005432129,15.470022201538086 C9.550004005432129,15.470022201538086 3.382294178009033,0 3.382294178009033,0 C3.382294178009033,0 0,0 0,0 C0,0 0,0 0,0z"})}),e.jsx("g",{style:{transform:"none",transformOrigin:"7.935px 7.73501px"},opacity:"1",children:e.jsx("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 7.93500280380249,3.911694288253784 7.93500280380249,3.911694288253784 C7.93500280380249,3.911694288253784 10.045400619506836,9.348296165466309 10.045400619506836,9.348296165466309 C10.045400619506836,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309z M6.166755199432373,0 C6.166755199432373,0 0,15.470022201538086 0,15.470022201538086 C0,15.470022201538086 3.4480772018432617,15.470022201538086 3.4480772018432617,15.470022201538086 C3.4480772018432617,15.470022201538086 4.709278583526611,12.22130012512207 4.709278583526611,12.22130012512207 C4.709278583526611,12.22130012512207 11.16093635559082,12.22130012512207 11.16093635559082,12.22130012512207 C11.16093635559082,12.22130012512207 12.421928405761719,15.470022201538086 12.421928405761719,15.470022201538086 C12.421928405761719,15.470022201538086 15.87000560760498,15.470022201538086 15.87000560760498,15.470022201538086 C15.87000560760498,15.470022201538086 9.703250885009766,0 9.703250885009766,0 C9.703250885009766,0 6.166755199432373,0 6.166755199432373,0 C6.166755199432373,0 6.166755199432373,0 6.166755199432373,0z"})})]})},exports.AnthropicMinimalIcon=function(){return e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"m17.304 3.5472h-3.6718l6.6959 16.906h3.6718zm-10.608 0-6.6959 16.906h3.7442l1.3693-3.5502h7.0052l1.3693 3.5502h3.7442l-6.6959-16.906zm-0.37114 10.216 2.2914-5.9413 2.2914 5.9413z"})})},exports.AppleIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 814 1000",id:"apple",className:"h-6 w-6",children:e.jsx("path",{d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z",fill:"currentColor"})})},exports.ArchiveIcon=function({className:t="icon-md"}){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.62188 3.07918C3.87597 2.571 4.39537 2.25 4.96353 2.25H13.0365C13.6046 2.25 14.124 2.571 14.3781 3.07918L15.75 5.82295V13.5C15.75 14.7426 14.7426 15.75 13.5 15.75H4.5C3.25736 15.75 2.25 14.7426 2.25 13.5V5.82295L3.62188 3.07918ZM13.0365 3.75H4.96353L4.21353 5.25H13.7865L13.0365 3.75ZM14.25 6.75H3.75V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25H13.5C13.9142 14.25 14.25 13.9142 14.25 13.5V6.75ZM6.75 9C6.75 8.58579 7.08579 8.25 7.5 8.25H10.5C10.9142 8.25 11.25 8.58579 11.25 9C11.25 9.41421 10.9142 9.75 10.5 9.75H7.5C7.08579 9.75 6.75 9.41421 6.75 9Z",fill:"currentColor"})})},exports.AssistantIcon=function({className:t="",size:r="1em"}){const s=r,a=r;return e.jsxs("svg",{width:a,height:s,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:ne("text-token-secondary h-2/3 w-2/3",t),xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),e.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),e.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})},exports.AttachmentIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 7C9 4.23858 11.2386 2 14 2C16.7614 2 19 4.23858 19 7V15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15V9C5 8.44772 5.44772 8 6 8C6.55228 8 7 8.44772 7 9V15C7 17.7614 9.23858 20 12 20C14.7614 20 17 17.7614 17 15V7C17 5.34315 15.6569 4 14 4C12.3431 4 11 5.34315 11 7V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V9C13 8.44772 13.4477 8 14 8C14.5523 8 15 8.44772 15 9V15C15 16.6569 13.6569 18 12 18C10.3431 18 9 16.6569 9 15V7Z",fill:"currentColor"})})},exports.AudioPaths=function(){return e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M8 15v6",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13 8v20",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M18 10v16",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M23 6v24",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M28 12v12",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.Avatar=({user:r,size:s=32,className:a="",alt:o,showDefaultWhenEmpty:n=!0})=>{const i=Ue(r),[l,c]=t.useState(!1),[d,u]=t.useState(!1),m=t.useMemo((()=>r?.avatar||r?.username||r?.email||""),[r?.avatar,r?.username,r?.email]),p=t.useMemo((()=>o||`${r?.name||r?.username||r?.email||""}'s avatar`),[o,r?.name,r?.username,r?.email]),x=t.useMemo((()=>!m||d?"":(r?.avatar??"")||i||""),[r?.avatar,i,m,d]),h=t.useCallback((()=>{c(!0)}),[]),f=t.useCallback((()=>{u(!0),c(!1)}),[]),g=t.useCallback((()=>e.jsx("div",{style:{backgroundColor:"rgb(121, 137, 255)",width:`${s}px`,height:`${s}px`,boxShadow:"rgba(240, 246, 252, 0.1) 0px 0px 0px 1px"},className:`relative flex items-center justify-center rounded-full p-1 text-text-primary ${a}`,"aria-hidden":"true",children:e.jsx(kr,{})})),[s,a]);return 0===m.length&&n?e.jsx(g,{}):m.length>0&&!d?e.jsxs("div",{className:"relative",style:{width:`${s}px`,height:`${s}px`},children:[!l&&e.jsx(zt,{className:"rounded-full",style:{width:`${s}px`,height:`${s}px`}}),e.jsx("img",{style:{width:`${s}px`,height:`${s}px`,display:l?"block":"none"},className:`rounded-full ${a}`,src:x,alt:p,onLoad:h,onError:f})]}):d&&n?e.jsx(g,{}):null},exports.AzureMinimalIcon=function({size:t=25,className:r="h-4 w-4"}){const s=t,a=t;return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne(r,""),width:a,height:s,xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"m8.0458 0.81981a1.1197 1.1197 0 0 0-1.0608 0.76184l-6.7912 20.123a1.1178 1.1178 0 0 0 1.0592 1.4751h5.4647a1.1197 1.1197 0 0 0 1.0608-0.7615l1.3528-4.0084-2.3684-2.2107a0.51536 0.51536 0 0 1 0.35193-0.8923h3.0639l1.8213-5.3966-2.8111-8.3294a1.1181 1.1181 0 0 0-1.0595-0.76049h-0.0836z"}),e.jsx("path",{d:"m7.1147 15.307a0.51536 0.51536 0 0 0-0.35193 0.8923l7.1552 6.6782a1.1248 1.1248 0 0 0 0.76724 0.30238h0.2417a1.1181 1.1181 0 0 0 1.0534-1.4755l-2.1591-6.3974z"}),e.jsx("path",{d:"m17.015 1.5807a1.1178 1.1178 0 0 0-1.0593-0.76049h-7.8258a1.1181 1.1181 0 0 1 1.0593 0.76049l6.7916 20.123a1.1181 1.1181 0 0 1-1.0593 1.4757h7.8261a1.1181 1.1181 0 0 0 1.059-1.4757z"})]})},exports.Badge=function({icon:t,label:r,id:s,isActive:a=!1,isEditing:o=!1,isDragging:n=!1,isAvailable:i=!0,isInChat:l=!1,onBadgeAction:d,onToggle:u,className:m,...p}){const x=o&&i,h="1"===s&&l;return e.jsxs(z.motion.button,{onClick:e=>{if(h)return e.preventDefault(),void e.stopPropagation();!o&&u&&(e.preventDefault(),e.stopPropagation(),u())},className:ne("group relative inline-flex items-center gap-1.5 rounded-full px-4 py-1.5","border border-border-medium text-sm font-medium transition-shadow","@container-[600px]:w-full size-9 p-2",a?"bg-surface-active shadow-md":"bg-surface-chat shadow-sm hover:bg-surface-hover hover:shadow-md","active:scale-95 active:shadow-inner",x&&"cursor-move",h&&"cursor-not-allowed opacity-50 hover:shadow-sm",m),animate:{scale:n?1.1:1,boxShadow:n?"0 10px 25px rgba(0,0,0,0.1)":void 0},whileTap:{scale:n?1.1:h?1:.97},transition:{type:"tween",duration:.1,ease:"easeOut"},...p,children:[t&&e.jsx(t,{className:ne("@container-[600px]:h-4 @container-[600px]:w-4 relative h-5 w-5",!r&&"mx-auto")}),e.jsx("span",{className:"@container-[600px]:inline relative hidden",children:r}),o&&!n&&e.jsx(z.motion.button,{className:"@container-[600px]:h-5 @container-[600px]:w-5 absolute -right-1 -top-1 flex h-6 w-6 items-center justify-center rounded-full bg-surface-secondary-alt text-text-primary shadow-sm",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},whileTap:{scale:.9},onMouseDown:e=>e.stopPropagation(),onClick:e=>{e.stopPropagation(),d?.()},children:i?e.jsx(c.X,{className:"h-3 w-3"}):e.jsx(c.Plus,{className:"h-3 w-3"})})]})},exports.BedrockIcon=function({size:t=25,className:r=""}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:ne("fill-current text-black",r),children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M12,18.1397014 L9.574,18.9487014 L8.628,18.3177014 L9.658,17.9737014 L9.342,17.0257014 L7.574,17.6147014 L7,17.2327014 L7,14.4997014 C7,14.3107014 6.893,14.1377014 6.724,14.0527014 L5,13.1907014 L5,10.8087014 L6.5,10.0587014 L8,10.8087014 L8,12.4997014 C8,12.6897014 8.107,12.8627014 8.276,12.9477014 L10.276,13.9477014 L10.724,13.0527014 L9,12.1907014 L9,10.8087014 L10.724,9.94770136 C10.893,9.86270136 11,9.68970136 11,9.49970136 L11,7.99970136 L10,7.99970136 L10,9.19070136 L8.5,9.94070136 L7,9.19070136 L7,6.76770136 L8,6.10070136 L8,7.99970136 L9,7.99970136 L9,5.43470136 L9.574,5.05170136 L12,5.86070136 L12,18.1397014 Z M17.5,16.9997014 C17.775,16.9997014 18,17.2237014 18,17.4997014 C18,17.7757014 17.775,17.9997014 17.5,17.9997014 C17.225,17.9997014 17,17.7757014 17,17.4997014 C17,17.2237014 17.225,16.9997014 17.5,16.9997014 L17.5,16.9997014 Z M16.5,5.99970136 C16.775,5.99970136 17,6.22370136 17,6.49970136 C17,6.77570136 16.775,6.99970136 16.5,6.99970136 C16.225,6.99970136 16,6.77570136 16,6.49970136 C16,6.22370136 16.225,5.99970136 16.5,5.99970136 L16.5,5.99970136 Z M18.5,11.9997014 C18.775,11.9997014 19,12.2237014 19,12.4997014 C19,12.7757014 18.775,12.9997014 18.5,12.9997014 C18.225,12.9997014 18,12.7757014 18,12.4997014 C18,12.2237014 18.225,11.9997014 18.5,11.9997014 L18.5,11.9997014 Z M17.092,12.9997014 C17.299,13.5807014 17.849,13.9997014 18.5,13.9997014 C19.327,13.9997014 20,13.3277014 20,12.4997014 C20,11.6727014 19.327,10.9997014 18.5,10.9997014 C17.849,10.9997014 17.299,11.4197014 17.092,11.9997014 L13,11.9997014 L13,9.99970136 L16.5,9.99970136 C16.776,9.99970136 17,9.77670136 17,9.49970136 L17,7.90770136 C17.581,7.70070136 18,7.15070136 18,6.49970136 C18,5.67270136 17.327,4.99970136 16.5,4.99970136 C15.673,4.99970136 15,5.67270136 15,6.49970136 C15,7.15070136 15.419,7.70070136 16,7.90770136 L16,8.99970136 L13,8.99970136 L13,5.49970136 C13,5.28470136 12.862,5.09370136 12.658,5.02570136 L9.658,4.02570136 C9.511,3.97670136 9.351,3.99870136 9.223,4.08370136 L6.223,6.08370136 C6.084,6.17670136 6,6.33270136 6,6.49970136 L6,9.19070136 L4.276,10.0527014 C4.107,10.1377014 4,10.3107014 4,10.4997014 L4,13.4997014 C4,13.6897014 4.107,13.8627014 4.276,13.9477014 L6,14.8087014 L6,17.4997014 C6,17.6667014 6.084,17.8237014 6.223,17.9157014 L9.223,19.9157014 C9.306,19.9717014 9.402,19.9997014 9.5,19.9997014 C9.553,19.9997014 9.606,19.9917014 9.658,19.9737014 L12.658,18.9737014 C12.862,18.9067014 13,18.7157014 13,18.4997014 L13,15.9997014 L15.293,15.9997014 L16.146,16.8537014 L16.159,16.8407014 C16.061,17.0407014 16,17.2627014 16,17.4997014 C16,18.3267014 16.673,18.9997014 17.5,18.9997014 C18.327,18.9997014 19,18.3267014 19,17.4997014 C19,16.6727014 18.327,15.9997014 17.5,15.9997014 C17.262,15.9997014 17.04,16.0607014 16.841,16.1597014 L16.854,16.1467014 L15.854,15.1467014 C15.76,15.0527014 15.633,14.9997014 15.5,14.9997014 L13,14.9997014 L13,12.9997014 L17.092,12.9997014 Z"})})})},exports.BirthdayIcon=function({className:t=""}){return e.jsxs("svg",{version:"1.1",viewBox:"0 0 233.33 290",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:ne("h-9 w-9",t),children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"linearGradient1842",x1:"163.92",x2:"173.66",y1:"22.212",y2:"-6.5784",gradientTransform:"translate(.10391 .050143)",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#640a62",offset:"0"}),e.jsx("stop",{stopColor:"#852283",offset:".49917"}),e.jsx("stop",{stopColor:"#640a62",offset:"1"})]})}),e.jsxs("g",{children:[e.jsx("path",{transform:"matrix(.43416 .90084 -.89966 .4366 0 0)",d:"m259.29-126.03a232.2 237.56 0 0 1-17.412 231.34l-193.32-131.59z",fill:"url(#linearGradient1842)"}),e.jsx("path",{transform:"matrix(.6967 .051926 -.051926 .6967 35.578 23.196)",d:"m50.818 31.415c-1.4654 2.4749-10.838 2.4195-12.997 4.3204-2.1584 1.9009-3.288 11.206-5.9282 12.347-2.6402 1.1409-10.191-4.4132-13.054-4.1441-2.8636 0.26917-9.2466 7.133-12.053 6.5041-2.8066-0.62889-5.6503-9.5602-8.1252-11.026-2.4749-1.4654-11.673 0.33572-13.574-1.8227s1.0482-11.056-0.0927-13.696c-1.1409-2.6402-9.6412-6.5898-9.9104-9.4533-0.26917-2.8636 7.3463-8.328 7.9752-11.135 0.62889-2.8066-3.9265-10.998-2.4612-13.473 1.4654-2.4749 10.838-2.4195 12.997-4.3204 2.1584-1.9009 3.288-11.206 5.9282-12.347 2.6402-1.1409 10.191 4.4132 13.054 4.1441 2.8636-0.26917 9.2466-7.133 12.053-6.5041 2.8066 0.62889 5.6503 9.5602 8.1252 11.026s11.673-0.33572 13.574 1.8227c1.9009 2.1584-1.0482 11.056 0.0927 13.696 1.1409 2.6402 9.6412 6.5898 9.9104 9.4533 0.26917 2.8635-7.3463 8.328-7.9752 11.135-0.62889 2.8066 3.9265 10.998 2.4612 13.473z",fill:"#ff9d78",stroke:"#f29472",strokeWidth:"4.7877"}),e.jsx("circle",{cx:"170.36",cy:"215.76",r:"12.903",fill:"#cfffff"}),e.jsx("path",{d:"m220.77 174.77c-88.526 101.03-191.21 85.731-209.5 82.142-2.2101-2e-5 -2.6686 0.42426-3.437 2.0021l-1.7042 7.5028c0.056197 2.3603 0.37544 2.6428 1.9121 3.5409 18.396 3.3746 130.27 19.488 223.46-86.881 0.64011-1.5095 0.46653-3.1324-0.59137-4.7337l-5.1558-3.6482c-1.586-0.8743-3.9524-0.94332-4.9837 0.0751z",color:"#000000",fill:"#ff9d78",stroke:"#f29472",strokeLinejoin:"round",strokeWidth:"2.8913"}),e.jsxs("g",{fill:"#cfffff",children:[e.jsx("circle",{cx:"72.684",cy:"99.47",r:"12.903"}),e.jsx("circle",{cx:"99.144",cy:"172.32",r:"12.903"}),e.jsx("circle",{cx:"59.617",cy:"214.78",r:"12.903"}),e.jsx("circle",{cx:"135.4",cy:"118.42",r:"12.903"}),e.jsx("path",{transform:"rotate(38.66)",d:"m254.21-1.9608a12.903 12.903 0 0 1-6.4852 11.194 12.903 12.903 0 0 1-12.937-0.0582 12.903 12.903 0 0 1-6.3843-11.252l12.903 0.1161z"}),e.jsx("path",{d:"m29.476 158.16a12.903 12.903 0 0 0-3.6562 0.5293l-3.3691 23.189a12.903 12.903 0 0 0 7.0254 2.0879 12.903 12.903 0 0 0 12.904-12.904 12.903 12.903 0 0 0-12.904-12.902z"})]})]})]})},exports.Blocks=function({className:t=""}){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:ne("lucide lucide-blocks",t),children:[e.jsx("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),e.jsx("path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3"})]})},exports.Breadcrumb=ke,exports.BreadcrumbEllipsis=Ie,exports.BreadcrumbItem=Me,exports.BreadcrumbLink=Se,exports.BreadcrumbList=Le,exports.BreadcrumbPage=ze,exports.BreadcrumbSeparator=Re,exports.Button=Ve,exports.ChatGPTMinimalIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"lucide lucide-bot",children:[e.jsx("rect",{width:"18",height:"10",x:"3",y:"11",rx:"2"}),e.jsx("circle",{cx:"12",cy:"5",r:"2"}),e.jsx("path",{d:"M12 7v4"}),e.jsx("line",{x1:"8",x2:"8",y1:"16",y2:"16"}),e.jsx("line",{x1:"16",x2:"16",y1:"16",y2:"16"})]})},exports.CheckMark=jr,exports.Checkbox=He,exports.CheckboxButton=Ur,exports.CircleHelpIcon=function({className:t="icon-md-heavy",size:r="1em"}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:ne(t),children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e.jsx("path",{d:"M12 17h.01"})]})},exports.Clipboard=function({className:t="icon-md-heavy",size:r="1em"}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne(t),children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-9a3 3 0 0 1 3-3h2zm2 2h5a3 3 0 0 1 3 3v5h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-9a1 1 0 0 0-1 1zM5 9a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1z",clipRule:"evenodd"})})},exports.CodePaths=function(){return e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M21.333 23L26.333 18L21.333 13",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M14.667 13L9.66699 18L14.667 23",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.CodeyIcon=function({size:t=25,className:r=""}){return e.jsx("svg",{width:t,height:t,className:ne("dark:fill-white",r),viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:e.jsx("path",{d:"M2 4.006C2 2.898 2.897 2 4.006 2h9.988C15.102 2 16 2.897 16 4.006v9.988A2.005 2.005 0 0 1 13.994 16H4.006A2.005 2.005 0 0 1 2 13.994V4.006zM13.992 9l.003-.003L10.997 6 9.75 7.247 11.503 9 9.75 10.753 10.997 12l2.997-2.997L13.992 9zm-9.99 0L4 8.997 6.997 6l1.247 1.247L6.492 9l1.753 1.753L6.997 12 4 9.003 4.003 9z",fillRule:"evenodd"})})},exports.Combobox=function({selectedValue:r,displayValue:a,items:o,setValue:i,ariaLabel:l,searchPlaceholder:d,selectPlaceholder:u,isCollapsed:m,SelectIcon:p}){const x=(o??[]).map((e=>"string"==typeof e?{label:e,value:e}:e)),{open:h,setOpen:f,setSearchValue:g,matches:b}=Xe({value:r,options:x});return e.jsx(ae.Root,{value:r,onValueChange:i,open:h,onOpenChange:()=>{!0!==h?setTimeout((()=>{f(!h)}),75):f(!1)},children:e.jsxs(n.ComboboxProvider,{open:h,setOpen:f,resetValueOnHide:!0,includesBaseElement:!1,setValue:e=>{t.startTransition((()=>{g(e)}))},children:[e.jsx(pr,{"aria-label":l,className:ne("flex items-center gap-2 [&>span]:line-clamp-1 [&>span]:flex [&>span]:w-full [&>span]:items-center [&>span]:gap-1 [&>span]:truncate [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0",m?"flex h-9 w-9 shrink-0 items-center justify-center p-0 [&>span]:w-auto [&>svg]:hidden":"","bg-white text-black hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-gray-500 dark:bg-gray-850 dark:text-white"),children:e.jsxs(mr,{placeholder:u,children:[e.jsx("div",{className:"assistant-item flex items-center justify-center overflow-hidden rounded-full",children:p||e.jsx(s.ChevronDownIcon,{})}),e.jsx("span",{className:ne("ml-2",m?"hidden":""),style:{userSelect:"none"},children:r?a??r:u&&u})]})}),e.jsx(ae.Portal,{children:e.jsxs(ae.Content,{role:"dialog","aria-label":l+"s",position:"popper",className:ne("bg-popover text-popover-foreground relative z-50 max-h-[52vh] min-w-[8rem] overflow-hidden rounded-md border border-gray-200 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-gray-600","data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1","bg-white dark:bg-gray-700"),children:[e.jsxs(ae.Viewport,{className:"mb-5 h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",children:[e.jsxs("div",{className:"group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-white px-3 py-2 text-black duration-300 dark:bg-gray-700 dark:text-white",children:[e.jsx(c.Search,{className:"h-4 w-4 text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"}),e.jsx(n.Combobox,{autoSelect:!0,placeholder:d,className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-gray-700/10 dark:focus:ring-gray-200/10",onBlurCapture:e=>{e.preventDefault(),e.stopPropagation()}}),e.jsx(n.ComboboxCancel,{hideWhenEmpty:!0,className:"relative flex h-5 w-5 items-center justify-end text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"})]}),e.jsx(n.ComboboxList,{className:"overflow-y-auto p-1 py-2",children:b.map((({label:t,value:r,icon:a})=>e.jsx(ae.Item,{value:`${r??""}`,asChild:!0,children:e.jsxs(n.ComboboxItem,{className:ne("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","rounded-lg hover:bg-gray-100/50 hover:bg-gray-50 dark:text-white dark:hover:bg-gray-600"),onTouchEnd:()=>{i(`${r??""}`),f(!1)},children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(ae.ItemIndicator,{children:e.jsx(s.CheckIcon,{className:"h-4 w-4"})})}),e.jsx(ae.ItemText,{children:e.jsxs("div",{className:"flex items-center justify-center gap-3 dark:text-white [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0 [&_svg]:text-foreground",children:[e.jsx("div",{className:"assistant-item overflow-hidden rounded-full",children:a&&a}),t]})})]})},r)))})]}),e.jsx(hr,{className:"absolute bottom-0 left-0 right-0"})]})})]})})},exports.ContinueIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne("h-3 w-3 -rotate-180",t),height:"19",width:"19",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("polygon",{points:"11 19 2 12 11 5 11 19"}),e.jsx("polygon",{points:"22 19 13 12 22 5 22 19"})]})},exports.ControlCombobox=Kr,exports.CrossIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne(t,"h-4 w-4"),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})},exports.CustomMinimalIcon=function({size:t=25,className:r=""}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:ne("lucide lucide-bot",r),children:[e.jsx("path",{d:"M12 8V4H8"}),e.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),e.jsx("path",{d:"M2 14h2"}),e.jsx("path",{d:"M20 14h2"}),e.jsx("path",{d:"M15 13v2"}),e.jsx("path",{d:"M9 13v2"})]})},exports.DataIcon=function({className:t="icon-sm"}){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.00633 5.5C6.02321 5.53319 6.07042 5.60366 6.19525 5.70906C6.42458 5.9027 6.81573 6.12215 7.38659 6.32603C8.5196 6.73067 10.1506 7 12 7C13.8494 7 15.4804 6.73067 16.6134 6.32603C17.1843 6.12215 17.5754 5.9027 17.8048 5.70906C17.9296 5.60366 17.9768 5.53319 17.9937 5.5C17.9768 5.46681 17.9296 5.39634 17.8048 5.29094C17.5754 5.0973 17.1843 4.87785 16.6134 4.67397C15.4804 4.26933 13.8494 4 12 4C10.1506 4 8.5196 4.26933 7.38659 4.67397C6.81573 4.87785 6.42458 5.0973 6.19525 5.29094C6.07042 5.39634 6.02321 5.46681 6.00633 5.5ZM18 7.91726C17.7726 8.02403 17.5333 8.12123 17.2861 8.20951C15.8856 8.70968 14.0166 9 12 9C9.98341 9 8.1144 8.70968 6.71392 8.20951C6.46674 8.12123 6.22738 8.02403 6 7.91726V11.9866C6.00813 12.0073 6.03931 12.0661 6.14259 12.1624C6.31976 12.3277 6.63181 12.5252 7.10609 12.7189C8.04837 13.1039 9.43027 13.3932 11.051 13.476C11.6026 13.5042 12.0269 13.9741 11.9987 14.5257C11.9705 15.0773 11.5005 15.5016 10.949 15.4734C9.17744 15.3829 7.55934 15.0646 6.34969 14.5704C6.23097 14.5219 6.11419 14.4709 6 14.4173V18.4866C6.00813 18.5073 6.03931 18.5661 6.14259 18.6624C6.31976 18.8277 6.63181 19.0252 7.10609 19.2189C8.04837 19.6039 9.43027 19.8932 11.051 19.976C11.6026 20.0042 12.0269 20.4741 11.9987 21.0257C11.9705 21.5773 11.5005 22.0016 10.949 21.9734C9.17744 21.8829 7.55934 21.5646 6.34969 21.0704C5.74801 20.8246 5.19611 20.5146 4.77833 20.1249C4.35948 19.7341 4 19.1866 4 18.5V5.5C4 4.74631 4.43048 4.16346 4.90494 3.76283C5.38405 3.35829 6.01803 3.03902 6.71392 2.79049C8.1144 2.29032 9.98341 2 12 2C14.0166 2 15.8856 2.29032 17.2861 2.79049C17.982 3.03902 18.616 3.35829 19.0951 3.76283C19.5695 4.16346 20 4.74631 20 5.5V10C20 10.5523 19.5523 11 19 11C18.4477 11 18 10.5523 18 10V7.91726ZM17.5 13C18.0523 13 18.5 13.4477 18.5 14V14.6707C18.851 14.7948 19.172 14.9823 19.4492 15.2195L20.0308 14.8837C20.5091 14.6075 21.1207 14.7714 21.3968 15.2497C21.673 15.728 21.5091 16.3396 21.0308 16.6157L20.4499 16.9511C20.4828 17.1291 20.5 17.3125 20.5 17.5C20.5 17.6873 20.4828 17.8707 20.45 18.0485L21.0308 18.3838C21.5091 18.6599 21.6729 19.2715 21.3968 19.7498C21.1206 20.2281 20.5091 20.392 20.0308 20.1158L19.4495 19.7803C19.1722 20.0176 18.8511 20.2052 18.5 20.3293V21C18.5 21.5523 18.0523 22 17.5 22C16.9477 22 16.5 21.5523 16.5 21V20.3293C16.1489 20.2052 15.8277 20.0176 15.5504 19.7802L14.969 20.1159C14.4907 20.392 13.8791 20.2282 13.603 19.7499C13.3269 19.2716 13.4907 18.66 13.969 18.3839L14.55 18.0484C14.5172 17.8706 14.5 17.6873 14.5 17.5C14.5 17.3127 14.5172 17.1294 14.55 16.9515L13.9691 16.6161C13.4908 16.34 13.3269 15.7284 13.6031 15.2501C13.8792 14.7718 14.4908 14.608 14.9691 14.8841L15.5504 15.2197C15.8278 14.9824 16.1489 14.7948 16.5 14.6707V14C16.5 13.4477 16.9477 13 17.5 13ZM16.624 17.0174C16.6274 17.0117 16.6308 17.0059 16.6342 17.0001C16.6374 16.9946 16.6405 16.989 16.6436 16.9834C16.8187 16.6937 17.1367 16.5 17.5 16.5C17.8645 16.5 18.1835 16.6951 18.3583 16.9865C18.3607 16.9909 18.3632 16.9953 18.3658 16.9997C18.3685 17.0044 18.3713 17.0091 18.3741 17.0138C18.4543 17.1577 18.5 17.3235 18.5 17.5C18.5 17.6737 18.4557 17.8371 18.3778 17.9794C18.3737 17.9861 18.3697 17.9929 18.3657 17.9998C18.3619 18.0064 18.3581 18.0131 18.3545 18.0198C18.1789 18.3077 17.8619 18.5 17.5 18.5C17.1362 18.5 16.8178 18.3058 16.6428 18.0154C16.64 18.0102 16.6371 18.005 16.6341 17.9999C16.631 17.9945 16.6278 17.9891 16.6246 17.9838C16.5452 17.8404 16.5 17.6755 16.5 17.5C16.5 17.325 16.545 17.1605 16.624 17.0174Z",fill:"currentColor"})})},exports.DataTable=function({columns:r,data:s,onDelete:a,filterColumn:o,defaultSort:n=[],className:i="",isFetchingNextPage:l=!1,hasNextPage:c=!1,fetchNextPage:d,enableRowSelection:u=!0,showCheckboxes:m=!0,onFilterChange:p,filterValue:x,isLoading:h,enableSearch:f=!0}){const g=Ke(),b=Qe("(max-width: 768px)"),C=t.useRef(null),[v,w]=t.useState(!1),[y,j]=t.useState({}),[N,k]=t.useState(n),[L,M]=t.useState([]),[S,z]=t.useState({}),[R,I]=t.useState(x??""),[T,V]=t.useState(!1),H=t.useMemo((()=>{if(!u||!m)return r;const t={id:"select",header:({table:t})=>e.jsx("div",{className:"flex h-full w-[30px] items-center justify-center",children:e.jsx(He,{checked:t.getIsAllPageRowsSelected(),onCheckedChange:e=>t.toggleAllPageRowsSelected(Boolean(e)),"aria-label":"Select all"})}),cell:({row:t})=>e.jsx(Rr,{checked:t.getIsSelected(),onChange:e=>t.toggleSelected(e),ariaLabel:"Select row"}),meta:{size:"50px"}};return[t,...r]}),[r,u,m]),B=P.useReactTable({data:s,columns:H,getCoreRowModel:P.getCoreRowModel(),getSortedRowModel:P.getSortedRowModel(),getFilteredRowModel:P.getFilteredRowModel(),enableRowSelection:u,enableMultiRowSelection:!0,state:{sorting:N,columnFilters:L,columnVisibility:S,rowSelection:y},onSortingChange:k,onColumnFiltersChange:M,onColumnVisibilityChange:z,onRowSelectionChange:j}),{rows:A}=B.getRowModel(),O=D.useVirtualizer({count:A.length,getScrollElement:()=>C.current,estimateSize:t.useCallback((()=>48),[]),overscan:10}),Z=O.getVirtualItems(),W=O.getTotalSize(),E=Z.length>0?Z[0].start:0,F=Z.length>0?W-Z[Z.length-1].end:0;t.useEffect((()=>{const e=C.current;if(!e)return;const t=async()=>{if(!c||l)return;const{scrollTop:t,scrollHeight:r,clientHeight:s}=e;if(r-t<=1.5*s)try{await(d?.())}catch(e){console.error("Unable to fetch next page:",e)}};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)}),[c,l,d]),t.useEffect((()=>{V(!0);const e=setTimeout((()=>{p?.(R),V(!1)}),300);return()=>clearTimeout(e)}),[R,p]);const q=t.useCallback((async()=>{if(a){w(!0);try{const e=B.getFilteredSelectedRowModel().rows.map((e=>e.original));await a(e),j({})}finally{w(!1)}}}),[a,B]),$=Array.from({length:13},((t,r)=>{const s=Math.floor(241*Math.random())+170,a="select"===H[0]?.id?1:0;return e.jsx(Bt,{className:"motion-safe:animate-fadeIn border-b border-border-light",children:H.map(((t,r)=>{const o=Tr(t,b),n=r===a;return e.jsx(Pt,{className:"px-2 py-1 sm:px-4 sm:py-2",style:o,children:e.jsx(zt,{className:"h-6",style:n?{width:`${s}px`}:{width:"100%"}})},t.id)}))},r)}));return e.jsxs("div",{className:ne("flex h-full flex-col gap-4",i),children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 sm:gap-4",children:[u&&m&&e.jsx(Vr,{onDelete:q,isDeleting:v,disabled:!B.getFilteredSelectedRowModel().rows.length||v,isSmallScreen:b,ariaLabel:g("com_ui_delete_selected_items")}),void 0!==o&&B.getColumn(o)&&f&&e.jsx("div",{className:"relative flex-1",children:e.jsx(zr,{value:R,onChange:e=>I(e.target.value),isSearching:T,placeholder:"Search..."})})]}),e.jsx("div",{ref:C,className:ne("relative h-[calc(100vh-20rem)] max-w-full overflow-x-auto overflow-y-auto rounded-md border border-black/10 dark:border-white/10","transition-all duration-300 ease-out",T&&"bg-surface-secondary/50",i),children:e.jsxs(It,{className:"w-full min-w-[300px] table-fixed border-separate border-spacing-0",children:[e.jsx(Tt,{className:"sticky top-0 z-50 bg-surface-secondary",children:B.getHeaderGroups().map((t=>e.jsx(Bt,{className:"border-b border-border-light",children:t.headers.map((t=>e.jsx(Dt,{className:"whitespace-nowrap bg-surface-secondary px-2 py-2 text-left text-sm font-medium text-text-secondary sm:px-4",style:Tr(t.column.columnDef,b),onClick:t.column.getCanSort()?t.column.getToggleSortingHandler():void 0,scope:"col",children:t.isPlaceholder?null:P.flexRender(t.column.columnDef.header,t.getContext())},t.id)))},t.id)))}),e.jsxs(Vt,{children:[E>0&&e.jsx("tr",{children:e.jsx("td",{style:{height:`${E}px`}})}),h&&$,Z.map((t=>{const r=A[t.index];return e.jsx(Ir,{row:r,isSmallScreen:b,index:t.index,isSearching:T},r.id)})),!Z.length&&e.jsx(Bt,{className:"hover:bg-transparent",children:e.jsx(Pt,{colSpan:r.length,className:"p-4 text-center",children:"No data available"})}),F>0&&e.jsx("tr",{children:e.jsx("td",{style:{height:`${F}px`}})}),(l||c)&&e.jsx(Bt,{className:"hover:bg-transparent",children:e.jsx(Pt,{colSpan:r.length,className:"p-4",children:e.jsx("div",{className:"flex h-full items-center justify-center",children:l?e.jsx(yr,{className:"size-4"}):c&&e.jsx("div",{className:"h-6"})})})})]})]})})]})},exports.DataTableColumnHeader=function({column:t,title:r,className:a=""}){const o=Ke();return t.getCanSort()?e.jsx("div",{className:ne("flex items-center space-x-2",a),children:e.jsxs(Be,{children:[e.jsx(De,{asChild:!0,children:e.jsxs(Ve,{variant:"ghost",size:"sm",className:"-ml-3 h-8 data-[state=open]:bg-accent","aria-label":o("com_ui_filter_by",{title:r}),children:[e.jsx("span",{children:r}),(()=>{const r=t.getIsSorted();return"desc"===r?e.jsx(s.ArrowDownIcon,{className:"ml-2 h-4 w-4"}):"asc"===r?e.jsx(s.ArrowUpIcon,{className:"ml-2 h-4 w-4"}):e.jsx(s.CaretSortIcon,{className:"ml-2 h-4 w-4"})})()]})}),e.jsxs(Pe,{align:"start",className:"z-[1001]",children:[e.jsxs(Ae,{onClick:()=>t.toggleSorting(!1),children:[e.jsx(s.ArrowUpIcon,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Asc"]}),e.jsxs(Ae,{onClick:()=>t.toggleSorting(!0),children:[e.jsx(s.ArrowDownIcon,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Desc"]}),e.jsx(Oe,{}),e.jsxs(Ae,{onClick:()=>t.toggleVisibility(!1),children:[e.jsx(s.EyeNoneIcon,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Hide"]})]})]})}):e.jsx("div",{className:ne(a),children:r})},exports.DelayedRender=({delay:e,children:t})=>Ye(e)((()=>t)),exports.Dialog=Je,exports.DialogButton=ct,exports.DialogClose=lt,exports.DialogContent=st,exports.DialogDescription=it,exports.DialogFooter=ot,exports.DialogHeader=at,exports.DialogOverlay=wt,exports.DialogTemplate=Xr,exports.DialogTitle=nt,exports.DialogTrigger=et,exports.DiscordIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"discord",className:"h-6 w-6",children:[e.jsx("circle",{cx:"512",cy:"512",r:"512",fill:"#5865f2"}),e.jsx("path",{fill:"#fff",d:"M689.43 349a422.21 422.21 0 0 0-104.22-32.32 1.58 1.58 0 0 0-1.68.79 294.11 294.11 0 0 0-13 26.66 389.78 389.78 0 0 0-117.05 0 269.75 269.75 0 0 0-13.18-26.66 1.64 1.64 0 0 0-1.68-.79A421 421 0 0 0 334.44 349a1.49 1.49 0 0 0-.69.59c-66.37 99.17-84.55 195.9-75.63 291.41a1.76 1.76 0 0 0 .67 1.2 424.58 424.58 0 0 0 127.85 64.63 1.66 1.66 0 0 0 1.8-.59 303.45 303.45 0 0 0 26.15-42.54 1.62 1.62 0 0 0-.89-2.25 279.6 279.6 0 0 1-39.94-19 1.64 1.64 0 0 1-.16-2.72c2.68-2 5.37-4.1 7.93-6.22a1.58 1.58 0 0 1 1.65-.22c83.79 38.26 174.51 38.26 257.31 0a1.58 1.58 0 0 1 1.68.2c2.56 2.11 5.25 4.23 8 6.24a1.64 1.64 0 0 1-.14 2.72 262.37 262.37 0 0 1-40 19 1.63 1.63 0 0 0-.87 2.28 340.72 340.72 0 0 0 26.13 42.52 1.62 1.62 0 0 0 1.8.61 423.17 423.17 0 0 0 128-64.63 1.64 1.64 0 0 0 .67-1.18c10.68-110.44-17.88-206.38-75.7-291.42a1.3 1.3 0 0 0-.63-.63zM427.09 582.85c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.02 28.44-20.37 51.6-46 51.6zm170.13 0c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.01 28.44-20.17 51.6-46 51.6z"})]})},exports.DotsIcon=function({className:t="h-4 w-4 flex-shrink-0 text-gray-500"}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"12",cy:"12",r:"1"}),e.jsx("circle",{cx:"19",cy:"12",r:"1"}),e.jsx("circle",{cx:"5",cy:"12",r:"1"})]})},exports.Dropdown=({value:t,label:r="",onChange:s,options:a,className:o="",sizeClasses:n,testId:i="dropdown-menu",icon:l,iconOnly:c=!1,renderValue:d,ariaLabel:u,"aria-labelledby":m,portal:p=!0})=>{const x=oe.useSelectStore({value:t,setValue:e=>{s(e)}}),h=e=>{if(null!=e&&""!==e)return a.filter((e=>!Lr(e))).map((e=>"string"==typeof e?{value:e,label:e}:e)).find((t=>Mr(t)&&t.value===e))};return e.jsxs("div",{className:ne("relative",o),children:[e.jsxs(oe.Select,{store:x,className:ne("focus:ring-offset-ring-offset relative inline-flex items-center justify-between rounded-xl border border-input bg-background px-3 py-2 text-sm text-text-primary transition-all duration-200 ease-in-out hover:bg-accent hover:text-accent-foreground focus:ring-ring-primary",c?"h-full w-10":"w-fit gap-2",o),"data-testid":i,"aria-label":u,"aria-labelledby":m,children:[e.jsxs("div",{className:"flex w-full items-center gap-2",children:[l,!c&&e.jsxs("span",{className:"block truncate",children:[r,(()=>{const e=h(t);return e&&d?d(e):(e=>{if(null==e||""===e)return"";const t=h(e);return t?t.label:e})(t)})()]})]}),!c&&e.jsx(oe.SelectArrow,{})]}),e.jsx(oe.SelectPopover,{portal:p,store:x,className:ne("popover-ui",n,o,"max-h-[80vh] overflow-y-auto","[pointer-events:auto]"),children:a.map(((r,s)=>{if(Lr(r))return e.jsx("div",{className:"my-1 border-t border-border-heavy"},`divider-${s}`);const a="string"==typeof r?{value:r,label:r}:r;return Mr(a)?e.jsx(oe.SelectItem,{value:String(a.value),className:"select-item","data-theme":a.value,children:e.jsxs("div",{className:"flex w-full items-center gap-2",children:[null!=a.icon&&e.jsx("span",{children:a.icon}),e.jsx("span",{className:"block truncate",children:a.label}),t===a.value&&e.jsx("span",{className:"ml-auto pl-2",children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md block group-hover:hidden",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM16.0755 7.93219C16.5272 8.25003 16.6356 8.87383 16.3178 9.32549L11.5678 16.0755C11.3931 16.3237 11.1152 16.4792 10.8123 16.4981C10.5093 16.517 10.2142 16.3973 10.0101 16.1727L7.51006 13.4227C7.13855 13.014 7.16867 12.3816 7.57733 12.0101C7.98598 11.6386 8.61843 11.6687 8.98994 12.0773L10.6504 13.9039L14.6822 8.17451C15 7.72284 15.6238 7.61436 16.0755 7.93219Z",fill:"currentColor"})})})]})},`option-${s}`):null}))})]})},exports.DropdownMenu=Be,exports.DropdownMenuCheckboxItem=function({className:t,children:r,checked:s,...a}){return e.jsxs(G.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:ne("outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",t),checked:s,...a,children:[e.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsx(G.ItemIndicator,{children:e.jsx(c.CheckIcon,{className:"size-4"})})}),r]})},exports.DropdownMenuContent=Pe,exports.DropdownMenuGroup=function({...t}){return e.jsx(G.Group,{"data-slot":"dropdown-menu-group",...t})},exports.DropdownMenuItem=Ae,exports.DropdownMenuLabel=function({className:t,inset:r,...s}){return e.jsx(G.Label,{"data-slot":"dropdown-menu-label","data-inset":r,className:ne("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...s})},exports.DropdownMenuPortal=function({...t}){return e.jsx(G.Portal,{"data-slot":"dropdown-menu-portal",...t})},exports.DropdownMenuRadioGroup=function({...t}){return e.jsx(G.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...t})},exports.DropdownMenuRadioItem=function({className:t,children:r,...s}){return e.jsxs(G.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:ne("outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",t),...s,children:[e.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsx(G.ItemIndicator,{children:e.jsx(c.CircleIcon,{className:"size-2 fill-current"})})}),r]})},exports.DropdownMenuSeparator=Oe,exports.DropdownMenuShortcut=function({className:t,...r}){return e.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:ne("ml-auto text-xs tracking-widest text-muted-foreground",t),...r})},exports.DropdownMenuSub=function({...t}){return e.jsx(G.Sub,{"data-slot":"dropdown-menu-sub",...t})},exports.DropdownMenuSubContent=function({className:t,...r}){return e.jsx(G.SubContent,{"data-slot":"dropdown-menu-sub-content",className:ne("text-popover-foreground origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border border-border-medium bg-surface-secondary p-1 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r})},exports.DropdownMenuSubTrigger=function({className:t,inset:r,children:s,...a}){return e.jsxs(G.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":r,className:ne("outline-hidden flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[inset]:pl-8 data-[state=open]:text-accent-foreground",t),...a,children:[s,e.jsx(c.ChevronRightIcon,{className:"ml-auto size-4"})]})},exports.DropdownMenuTrigger=De,exports.DropdownPopup=({trigger:t,isOpen:r,setIsOpen:s,focusLoop:a,mountByState:o,...n})=>{const i=q.useMenuStore({open:r,setOpen:s,focusLoop:a});return o?e.jsxs(q.MenuProvider,{store:i,children:[t,r&&e.jsx(Zr,{...n})]}):e.jsxs(q.MenuProvider,{store:i,children:[t,e.jsx(Zr,{...n})]})},exports.EditIcon=wr,exports.ExperimentIcon=function(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e.jsx("path",{d:"M9 3H15M9 3V9.2759C9 9.74377 8.83597 10.1968 8.53644 10.5563L4.85085 14.979C4.30108 15.6387 4 16.4703 4 17.3291V17.3291C4 19.3565 5.64353 21 7.67094 21H16.3291C18.3565 21 20 19.3565 20 17.3291V17.3291C20 16.4703 19.6989 15.6387 19.1492 14.979L15.4636 10.5563C15.164 10.1968 15 9.74377 15 9.2759V3M9 3H8M15 3H16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 14.774C11.5 12.839 12.15 16.7089 18 14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.FacebookIcon=function(){return e.jsxs("svg",{viewBox:"0 0 40 40",width:"25",height:"25",children:[e.jsxs("linearGradient",{id:"a",x1:-277.375,x2:-277.375,y1:406.602,y2:407.573,gradientTransform:"matrix(40 0 0 -39.7778 11115.001 16212.334)",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:0,stopColor:"#0062e0"}),e.jsx("stop",{offset:1,stopColor:"#19afff"})]}),e.jsx("path",{fill:"url(#a)",d:"M16.7 39.8C7.2 38.1 0 29.9 0 20 0 9 9 0 20 0s20 9 20 20c0 9.9-7.2 18.1-16.7 19.8l-1.1-.9h-4.4l-1.1.9z"}),e.jsx("path",{fill:"#fff",d:"m27.8 25.6.9-5.6h-5.3v-3.9c0-1.6.6-2.8 3-2.8H29V8.2c-1.4-.2-3-.4-4.4-.4-4.6 0-7.8 2.8-7.8 7.8V20h-5v5.6h5v14.1c1.1.2 2.2.3 3.3.3 1.1 0 2.2-.1 3.3-.3V25.6h4.4z"})]})},exports.FileIcon=function({file:t,fileType:r}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36",fill:"none",className:"h-10 w-10 flex-shrink-0",width:"36",height:"36",children:[e.jsx("rect",{width:"36",height:"36",rx:"6",fill:r.fill}),(t?.progress??1)>=1&&e.jsx(e.Fragment,{children:e.jsx(r.paths,{})})]})},exports.FilePaths=function(){return e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M18.833 9.66663H12.9997C12.5576 9.66663 12.1337 9.84222 11.8212 10.1548C11.5086 10.4673 11.333 10.8913 11.333 11.3333V24.6666C11.333 25.1087 11.5086 25.5326 11.8212 25.8451C12.1337 26.1577 12.5576 26.3333 12.9997 26.3333H22.9997C23.4417 26.3333 23.8656 26.1577 24.1782 25.8451C24.4907 25.5326 24.6663 25.1087 24.6663 24.6666V15.5L18.833 9.66663Z",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M18.833 9.66663V15.5H24.6663",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.FileUpload=Ar,exports.FormInput=function({field:t,label:r,labelClass:s,inputClass:a,containerClass:o,labelAdjacent:n,placeholder:i="",type:l="string"}){return e.jsxs("div",{className:ne("flex w-full flex-col items-center gap-2",o),children:[e.jsxs("div",{className:"flex w-full items-center justify-start gap-2",children:[e.jsx(ft,{htmlFor:`${t.name}-input`,className:ne("text-left text-sm font-semibold text-text-primary",s),children:r}),n]}),e.jsx(xt,{id:`${t.name}-input`,value:t.value??"",onChange:e=>{const r=e.target.value;"number"===l?""===r?t.onChange(r):isNaN(Number(r))||t.onChange(Number(r)):t.onChange(r)},placeholder:i,className:ne("flex h-10 max-h-10 w-full resize-none border-none bg-surface-secondary px-3 py-2",a)})]})},exports.GPTIcon=function({size:t=25,className:r=""}){const s=t,a=t;return e.jsx("svg",{width:a,height:s,viewBox:"0 0 41 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"1.5",className:ne(r,""),children:e.jsx("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z",fill:"currentColor"})})},exports.GearIcon=({className:t=""})=>e.jsxs("svg",{className:t,width:"17",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M11.6439 3C10.9352 3 10.2794 3.37508 9.92002 3.98596L9.49644 4.70605C8.96184 5.61487 7.98938 6.17632 6.93501 6.18489L6.09967 6.19168C5.39096 6.19744 4.73823 6.57783 4.38386 7.19161L4.02776 7.80841C3.67339 8.42219 3.67032 9.17767 4.01969 9.7943L4.43151 10.5212C4.95127 11.4386 4.95127 12.5615 4.43151 13.4788L4.01969 14.2057C3.67032 14.8224 3.67339 15.5778 4.02776 16.1916L4.38386 16.8084C4.73823 17.4222 5.39096 17.8026 6.09966 17.8083L6.93502 17.8151C7.98939 17.8237 8.96185 18.3851 9.49645 19.294L9.92002 20.014C10.2794 20.6249 10.9352 21 11.6439 21H12.3561C13.0648 21 13.7206 20.6249 14.08 20.014L14.5035 19.294C15.0381 18.3851 16.0106 17.8237 17.065 17.8151L17.9004 17.8083C18.6091 17.8026 19.2618 17.4222 19.6162 16.8084L19.9723 16.1916C20.3267 15.5778 20.3298 14.8224 19.9804 14.2057L19.5686 13.4788C19.0488 12.5615 19.0488 11.4386 19.5686 10.5212L19.9804 9.7943C20.3298 9.17767 20.3267 8.42219 19.9723 7.80841L19.6162 7.19161C19.2618 6.57783 18.6091 6.19744 17.9004 6.19168L17.065 6.18489C16.0106 6.17632 15.0382 5.61487 14.5036 4.70605L14.08 3.98596C13.7206 3.37508 13.0648 3 12.3561 3H11.6439Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),e.jsx("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"2"})]}),exports.GeminiIcon=function({size:t=25,className:r=""}){return e.jsxs("svg",{width:t,height:t,className:r,viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e.jsx("path",{fill:"url(#_4rif_paint0_radial_897_42)",d:"M9 18c0-1.245-.24-2.415-.72-3.51a8.934 8.934 0 00-1.912-2.857A8.934 8.934 0 003.51 9.72 8.646 8.646 0 000 9a8.886 8.886 0 003.51-.697 9.247 9.247 0 002.857-1.936A8.934 8.934 0 008.28 3.51C8.76 2.415 9 1.245 9 0c0 1.245.232 2.415.697 3.51a9.247 9.247 0 001.936 2.857 9.247 9.247 0 002.857 1.936A8.886 8.886 0 0018 9c-1.245 0-2.415.24-3.51.72a8.934 8.934 0 00-2.857 1.912 9.247 9.247 0 00-1.935 2.858A8.886 8.886 0 009 18z"}),e.jsx("defs",{children:e.jsxs("radialGradient",{id:"_4rif_paint0_radial_897_42",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(135 9 3.728) scale(25.4558 12.7279)",children:[e.jsx("stop",{offset:".325",stopColor:"#FFDDB7"}),e.jsx("stop",{offset:".706",stopColor:"#076EFF"})]})})]})},exports.GithubIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",children:e.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 0 0-3.84 23.399c.608.112.832-.256.832-.576v-2.015c-3.395.736-4.115-1.632-4.115-1.632a3.241 3.241 0 0 0-1.359-1.792c-1.104-.736.064-.736.064-.736a2.566 2.566 0 0 1 1.824 1.216a2.638 2.638 0 0 0 3.616 1.024a2.607 2.607 0 0 1 .768-1.6c-2.688-.32-5.504-1.344-5.504-5.984a4.677 4.677 0 0 1 1.216-3.168a4.383 4.383 0 0 1 .128-3.136s1.024-.32 3.36 1.216a11.66 11.66 0 0 1 6.112 0c2.336-1.536 3.36-1.216 3.36-1.216a4.354 4.354 0 0 1 .128 3.136a4.628 4.628 0 0 1 1.216 3.168c0 4.672-2.848 5.664-5.536 5.952a2.881 2.881 0 0 1 .832 2.24v3.36c0 .32.224.672.832.576A12 12 0 0 0 12 0z"})})},exports.GoogleIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",id:"google",className:"h-5 w-5",children:[e.jsx("path",{fill:"#fbbb00",d:"M113.47 309.408 95.648 375.94l-65.139 1.378C11.042 341.211 0 299.9 0 256c0-42.451 10.324-82.483 28.624-117.732h.014L86.63 148.9l25.404 57.644c-5.317 15.501-8.215 32.141-8.215 49.456.002 18.792 3.406 36.797 9.651 53.408z"}),e.jsx("path",{fill:"#518ef8",d:"M507.527 208.176C510.467 223.662 512 239.655 512 256c0 18.328-1.927 36.206-5.598 53.451-12.462 58.683-45.025 109.925-90.134 146.187l-.014-.014-73.044-3.727-10.338-64.535c29.932-17.554 53.324-45.025 65.646-77.911h-136.89V208.176h245.899z"}),e.jsx("path",{fill:"#28b446",d:"m416.253 455.624.014.014C372.396 490.901 316.666 512 256 512c-97.491 0-182.252-54.491-225.491-134.681l82.961-67.91c21.619 57.698 77.278 98.771 142.53 98.771 28.047 0 54.323-7.582 76.87-20.818l83.383 68.262z"}),e.jsx("path",{fill:"#f14336",d:"m419.404 58.936-82.933 67.896C313.136 112.246 285.552 103.82 256 103.82c-66.729 0-123.429 42.957-143.965 102.724l-83.397-68.276h-.014C71.23 56.123 157.06 0 256 0c62.115 0 119.068 22.126 163.404 58.936z"})]})},exports.GoogleIconChat=function({size:t=25,className:r=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24px",height:"24px",viewBox:"0 0 512 512",strokeWidth:"1.5",className:ne(r,""),children:e.jsx("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})},exports.GoogleMinimalIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"800px",height:"800px",viewBox:"0 0 512 512",className:ne("h-4 w-4",t),children:e.jsx("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})},exports.HoverCard=dt,exports.HoverCardContent=pt,exports.HoverCardPortal=mt,exports.HoverCardTrigger=ut,exports.InfoHoverCard=({side:r,text:s})=>{const[a,o]=t.useState(!1);return e.jsxs(dt,{openDelay:50,open:a,onOpenChange:o,children:[e.jsx(ut,{tabIndex:0,className:"inline-flex cursor-help items-center justify-center rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring-primary focus-visible:ring-offset-2",onFocus:()=>o(!0),onBlur:()=>o(!1),"aria-label":s,children:e.jsx(c.CircleHelpIcon,{className:"h-5 w-5 text-text-tertiary","aria-hidden":"true"})}),e.jsx(mt,{children:e.jsx(pt,{side:r,className:"z-[999] w-80",children:e.jsx("div",{className:"space-y-2",children:e.jsx("span",{className:"text-sm text-text-secondary",children:s})})})})]})},exports.Input=xt,exports.InputCombobox=({label:r,labelClassName:s,placeholder:a="Select an option",options:o,className:n,value:i,onChange:l,onBlur:c})=>{const d=e=>null!=e&&"object"==typeof e&&"value"in e,[u,m]=t.useState(!1),[p,x]=t.useState(i),[h,f]=t.useState(!1);t.useEffect((()=>{x(i)}),[i]);const g=e=>{x(e),l(e)};return e.jsxs(q.ComboboxProvider,{value:p,setValue:g,children:[null!=r&&e.jsx(q.ComboboxLabel,{className:ne("mb-2 block text-sm font-medium text-text-primary",s??""),children:r}),e.jsx("div",{className:ne("relative",h?"rounded-md ring-2 ring-ring-primary":""),children:e.jsx(q.Combobox,{placeholder:a,className:ne("h-10 w-full rounded-md border border-border-light bg-surface-primary px-3 py-2 text-sm","placeholder-text-secondary hover:bg-surface-hover","focus:outline-none",n),onChange:e=>g(e.target.value),onBlur:()=>{f(!1),c()},onFocusVisible:()=>{f(!0),m(!0)},onMouseDown:()=>{f(!1)}})}),e.jsx(q.ComboboxPopover,{gutter:4,sameWidth:!0,open:u,onClose:()=>m(!1),className:ne("z-50 max-h-60 w-full overflow-auto rounded-md bg-surface-primary p-1 shadow-lg","animate-in fade-in-0 zoom-in-95"),children:o.map(((t,r)=>e.jsxs(q.ComboboxItem,{className:ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","cursor-pointer hover:bg-surface-tertiary hover:text-text-primary","data-[active-item]:bg-surface-tertiary data-[active-item]:text-text-primary"),value:d(t)?`${t.value??""}`:t,children:[d(t)&&null!=t.icon&&e.jsx("span",{className:"mr-2 flex-shrink-0",children:t.icon}),d(t)?t.label:t]},r)))})]})},exports.InputNumber=ht,exports.InputOTP=rr,exports.InputOTPGroup=sr,exports.InputOTPSeparator=or,exports.InputOTPSlot=ar,exports.InputWithDropdown=Yr,exports.Label=ft,exports.LightningIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true",className:ne("h-6 w-6",t),children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"})})},exports.LinkIcon=function(){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 5C14.4477 5 14 4.55228 14 4C14 3.44772 14.4477 3 15 3H20C20.5523 3 21 3.44772 21 4V9C21 9.55228 20.5523 10 20 10C19.4477 10 19 9.55228 19 9V6.41421L13.7071 11.7071C13.3166 12.0976 12.6834 12.0976 12.2929 11.7071C11.9024 11.3166 11.9024 10.6834 12.2929 10.2929L17.5858 5H15ZM4 7C4 5.34315 5.34315 4 7 4H10C10.5523 4 11 4.44772 11 5C11 5.55228 10.5523 6 10 6H7C6.44772 6 6 6.44772 6 7V17C6 17.5523 6.44772 18 7 18H17C17.5523 18 18 17.5523 18 17V14C18 13.4477 18.4477 13 19 13C19.5523 13 20 13.4477 20 14V17C20 18.6569 18.6569 20 17 20H7C5.34315 20 4 18.6569 4 17V7Z",fill:"currentColor"})})},exports.ListeningIcon=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:ne(t),strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),e.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),e.jsx("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]})},exports.LockIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-lock",children:[e.jsx("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),e.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})},exports.LogOutIcon=function(){return e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:[e.jsx("path",{d:"M11 3H7C5.89543 3 5 3.89543 5 5V19C5 20.1046 5.89543 21 7 21H11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M20 12H11M20 12L16 16M20 12L16 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.MCPIcon=function({className:t}){return e.jsxs("svg",{width:"195",height:"195",viewBox:"0 2 195 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[e.jsx("path",{d:"M25 97.8528L92.8823 29.9706C102.255 20.598 117.451 20.598 126.823 29.9706V29.9706C136.196 39.3431 136.196 54.5391 126.823 63.9117L75.5581 115.177",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e.jsx("path",{d:"M76.2653 114.47L126.823 63.9117C136.196 54.5391 151.392 54.5391 160.765 63.9117L161.118 64.2652C170.491 73.6378 170.491 88.8338 161.118 98.2063L99.7248 159.6C96.6006 162.724 96.6006 167.789 99.7248 170.913L112.331 183.52",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e.jsx("path",{d:"M109.853 46.9411L59.6482 97.1457C50.2757 106.518 50.2757 121.714 59.6482 131.087V131.087C69.0208 140.459 84.2168 140.459 93.5894 131.087L143.794 80.8822",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"})]})},exports.MessagesSquared=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:ne(t??"","lucide lucide-messages-square"),children:[e.jsx("path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v5Z"}),e.jsx("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})]})},exports.MinimalPlugin=function({size:t,className:r="icon-md"}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.4646 19C15.2219 20.6961 13.7632 22 12 22C10.2368 22 8.77806 20.6961 8.53544 19H6C4.34315 19 3 17.6569 3 16V13.5C3 12.9477 3.44772 12.5 4 12.5H4.5C5.32843 12.5 6 11.8284 6 11C6 10.1716 5.32843 9.5 4.5 9.5H4C3.44772 9.5 3 9.05229 3 8.5L3 6C3 4.34315 4.34315 3 6 3L18 3C19.6569 3 21 4.34315 21 6L21 16C21 17.6569 19.6569 19 18 19H15.4646ZM12 20C12.8284 20 13.5 19.3284 13.5 18.5V18C13.5 17.4477 13.9477 17 14.5 17H18C18.5523 17 19 16.5523 19 16L19 6C19 5.44772 18.5523 5 18 5L6 5C5.44772 5 5 5.44772 5 6V7.53544C6.69615 7.77806 8 9.23676 8 11C8 12.7632 6.69615 14.2219 5 14.4646L5 16C5 16.5523 5.44771 17 6 17H9.5C10.0523 17 10.5 17.4477 10.5 18V18.5C10.5 19.3284 11.1716 20 12 20Z",fill:"currentColor"})})},exports.MobileSidebar=function({className:t}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 8C3 7.44772 3.44772 7 4 7H20C20.5523 7 21 7.44772 21 8C21 8.55228 20.5523 9 20 9H4C3.44772 9 3 8.55228 3 8ZM3 16C3 15.4477 3.44772 15 4 15H14C14.5523 15 15 15.4477 15 16C15 16.5523 14.5523 17 14 17H4C3.44772 17 3 16.5523 3 16Z",fill:"currentColor"})})},exports.MultiSelect=function({items:r,label:s,placeholder:a="Select...",onSelectedValuesChange:o,renderSelectedValues:i=Or,className:l,selectIcon:c,itemClassName:d,labelClassName:u,selectClassName:m,popoverClassName:p,selectItemsClassName:x,selectedValues:h=[],setSelectedValues:f,renderItemContent:g}){const b=t.useRef(null);return e.jsx("div",{className:l,children:e.jsxs(n.SelectProvider,{value:h,setValue:e=>{f(e),o&&o(e)},children:[s&&e.jsx(n.SelectLabel,{className:ne("mb-1 block text-sm text-text-primary",u),children:s}),e.jsxs(n.Select,{ref:b,className:ne("flex items-center justify-between gap-2 rounded-xl px-3 py-2 text-sm","bg-surface-tertiary text-text-primary shadow-sm hover:cursor-pointer hover:bg-surface-hover","outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75",m,h.length>0&&null!=x&&x),onChange:e=>e.stopPropagation(),children:[c&&e.jsx("span",{children:c}),e.jsx("span",{className:"mr-auto hidden truncate md:block",children:i(h,a)}),e.jsx(n.SelectArrow,{className:"ml-1 hidden stroke-1 text-base opacity-75 md:block"})]}),e.jsx(n.SelectPopover,{gutter:4,sameWidth:!0,modal:!0,unmountOnHide:!0,finalFocus:b,className:ne("animate-popover z-50 flex max-h-[300px]","flex-col overflow-auto overscroll-contain rounded-xl","bg-surface-secondary px-1.5 py-1 text-text-primary shadow-lg","border border-border-light","outline-none",p),children:r.map((t=>{const r=e.jsxs(e.Fragment,{children:[e.jsx(n.SelectItemCheck,{className:"mr-0.5 text-primary"}),e.jsx("span",{className:"truncate",children:t})]}),s=h.includes(t);return e.jsx(n.SelectItem,{value:t,className:ne("flex items-center gap-2 rounded-lg px-2 py-1.5 hover:cursor-pointer","scroll-m-1 outline-none transition-colors","hover:bg-black/[0.075] dark:hover:bg-white/10","data-[active-item]:bg-black/[0.075] dark:data-[active-item]:bg-white/10","w-full min-w-0 text-sm",d),children:g?g(t,r,s):r},t)}))})]})})},exports.NewChatIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ne("text-black dark:text-white",t),"aria-hidden":!0,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7929 2.79289C18.0118 1.57394 19.9882 1.57394 21.2071 2.79289C22.4261 4.01184 22.4261 5.98815 21.2071 7.20711L12.7071 15.7071C12.5196 15.8946 12.2652 16 12 16H9C8.44772 16 8 15.5523 8 15V12C8 11.7348 8.10536 11.4804 8.29289 11.2929L16.7929 2.79289ZM19.7929 4.20711C19.355 3.7692 18.645 3.7692 18.2071 4.2071L10 12.4142V14H11.5858L19.7929 5.79289C20.2308 5.35499 20.2308 4.64501 19.7929 4.20711ZM6 5C5.44772 5 5 5.44771 5 6V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V14C19 13.4477 19.4477 13 20 13C20.5523 13 21 13.4477 21 14V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6C3 4.34314 4.34315 3 6 3H10C10.5523 3 11 3.44771 11 4C11 4.55228 10.5523 5 10 5H6Z",fill:"currentColor"})})},exports.OGDialog=gt,exports.OGDialogClose=vt,exports.OGDialogContent=yt,exports.OGDialogDescription=Lt,exports.OGDialogFooter=Nt,exports.OGDialogHeader=jt,exports.OGDialogOverlay=wt,exports.OGDialogPortal=Ct,exports.OGDialogTemplate=Qr,exports.OGDialogTitle=kt,exports.OGDialogTrigger=bt,exports.OpenAIMinimalIcon=function({className:t="h-4 w-4"}){return e.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"1",viewBox:"0 0 40 40",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z"})})},exports.OpenIDIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",id:"openid",className:"h-5 w-5",children:e.jsx("path",{fill:"currentColor",d:"M271.5 432l-68 32C88.5 453.7 0 392.5 0 318.2c0-71.5 82.5-131 191.7-144.3v43c-71.5 12.5-124 53-124 101.3 0 51 58.5 93.3 135.7 103v-340l68-33.2v384zM448 291l-131.3-28.5 36.8-20.7c-19.5-11.5-43.5-20-70-24.8v-43c46.2 5.5 87.7 19.5 120.3 39.3l35-19.8L448 291z"})})},exports.PaLMIcon=function({size:t=25,className:r=""}){return e.jsxs("svg",{width:t,height:t,className:r,viewBox:"0 0 19 17",fill:"none",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e.jsx("path",{d:"M9.62674 16.2202H9.7049C10.4225 16.2202 11.0016 15.6412 11.0016 14.9236V4.04224H8.33008V14.92C8.33008 15.6376 8.90914 16.2202 9.62674 16.2202Z",fill:"#F9AB00"}),e.jsx("path",{d:"M14.6819 8.02813C13.3249 6.66752 11.2964 6.39398 9.66577 7.2004L15.0585 12.5931C15.2823 12.8169 15.6624 12.7281 15.7583 12.4297C16.2308 10.927 15.8756 9.21822 14.6819 8.02813Z",fill:"#5BB974"}),e.jsx("path",{d:"M4.64953 8.02813C6.00659 6.66752 8.03507 6.39398 9.66567 7.2004L4.27297 12.5931C4.04916 12.8169 3.66904 12.7281 3.57312 12.4297C3.10064 10.927 3.45589 9.21822 4.64953 8.02813Z",fill:"#129EAF"}),e.jsx("path",{d:"M14.284 3.84326C12.1383 3.84326 10.3159 5.25005 9.66577 7.20038H18.1918C18.5399 7.20038 18.7744 6.83092 18.6145 6.5183C17.8081 4.93033 16.1704 3.84326 14.284 3.84326Z",fill:"#AF5CF7"}),e.jsx("path",{d:"M10.5574 1.55901C9.04053 3.07593 8.74567 5.36019 9.66577 7.20039L15.6944 1.17179C15.943 0.923113 15.8436 0.496814 15.5132 0.390239C13.8151 -0.1604 11.8896 0.226822 10.5574 1.55901Z",fill:"#FF8BCB"}),e.jsx("path",{d:"M8.77408 1.55901C10.291 3.07593 10.5859 5.36019 9.66576 7.20039L3.63716 1.17179C3.38848 0.923113 3.48795 0.496814 3.81833 0.390239C5.51643 -0.1604 7.44189 0.226822 8.77408 1.55901Z",fill:"#FA7B17"}),e.jsx("path",{d:"M5.04752 3.84326C7.19323 3.84326 9.01566 5.25005 9.66577 7.20038H1.13976C0.791616 7.20038 0.55715 6.83092 0.717013 6.5183C1.52343 4.93033 3.16114 3.84326 5.04752 3.84326Z",fill:"#4285F4"})]})},exports.PaLMinimalIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 32 32",strokeLinecap:"round",strokeLinejoin:"round",className:ne("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"m16 30.238c1.2298 0 2.2259-0.99608 2.2259-2.2259v-11.46c-0.63513-0.56429-1.6553-1.6805-2.2259-2.251-0.79858 0.83793-1.3599 1.3599-2.2259 2.251v11.46c0 1.2298 0.99608 2.2259 2.2259 2.2259z"}),e.jsx("path",{d:"m24.868 15.761c-0.61691-0.61643-1.3121-1.1065-2.0536-1.4703-6.8147 0.010467 0.13304 0.031026-6.8147 0.010467l9.5286 9.5286c0.39324 0.39324 1.0703 0.23743 1.2372-0.29122 0.83841-2.6544 0.20589-5.6723-1.8976-7.7776z"}),e.jsx("path",{d:"m7.1318 15.761c0.5902-0.58975 1.2521-1.0639 1.9575-1.4224 6.9107-0.037427-0.11812-0.057288 6.9107-0.037427l-9.5286 9.5286c-0.39324 0.39324-1.0703 0.23743-1.2372-0.29122-0.83841-2.6543-0.20589-5.6723 1.8976-7.7776z"}),e.jsx("path",{d:"m24.162 8.3655c-0.93169 0-1.8288 0.15009-2.6691 0.42772-5.4924 5.5079 0 0-5.4924 5.5079h15.069c0.61767 0 1.0295-0.65292 0.74938-1.2038-1.432-2.8102-4.3219-4.7318-7.657-4.7318z"}),e.jsx("path",{d:"m17.575 4.333c-0.62613 0.62613-1.1343 1.3257-1.5248 2.0718 1.6767 4.1174 0.53518 6.3909-0.05003 7.8964l10.656-10.656c0.43775-0.43775 0.2671-1.1908-0.3209-1.3819-3.0012-0.97382-6.4031-0.28751-8.7607 2.0701z"}),e.jsx("path",{d:"m14.425 4.333c2.6822 2.6822 3.1997 6.7129 1.5748 9.9682l-10.656-10.656c-0.43775-0.43775-0.2671-1.1908 0.3209-1.3819 3.0012-0.97382 6.4031-0.28751 8.7607 2.0701z"}),e.jsx("path",{d:"m7.8385 8.3655c0.9121 0 1.791 0.14385 2.616 0.41037 5.5455 5.5253-0.061773 0.011675 5.5455 5.5253h-15.069c-0.61768 0-1.0295-0.65292-0.74938-1.2038 1.432-2.8102 4.3219-4.7318 7.657-4.7318z"})]})},exports.Pagination=Ut,exports.PaginationContent=Xt,exports.PaginationEllipsis=er,exports.PaginationItem=Kt,exports.PaginationLink=Qt,exports.PaginationNext=Jt,exports.PaginationPrevious=Yt,exports.PersonalizationIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`icon-sm ${t}`,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C10.3431 4 9 5.34315 9 7C9 8.65685 10.3431 10 12 10C13.6569 10 15 8.65685 15 7C15 5.34315 13.6569 4 12 4ZM7 7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7C17 9.76142 14.7614 12 12 12C9.23858 12 7 9.76142 7 7ZM19.0277 15.6255C18.6859 15.5646 18.1941 15.6534 17.682 16.1829C17.4936 16.3777 17.2342 16.4877 16.9632 16.4877C16.6922 16.4877 16.4328 16.3777 16.2444 16.1829C15.7322 15.6534 15.2405 15.5646 14.8987 15.6255C14.5381 15.6897 14.2179 15.9384 14.0623 16.3275C13.8048 16.9713 13.9014 18.662 16.9632 20.4617C20.0249 18.662 20.1216 16.9713 19.864 16.3275C19.7084 15.9384 19.3882 15.6897 19.0277 15.6255ZM21.721 15.5847C22.5748 17.7191 21.2654 20.429 17.437 22.4892C17.1412 22.6484 16.7852 22.6484 16.4893 22.4892C12.6609 20.4291 11.3516 17.7191 12.2053 15.5847C12.6117 14.5689 13.4917 13.8446 14.5481 13.6565C15.3567 13.5125 16.2032 13.6915 16.9632 14.1924C17.7232 13.6915 18.5697 13.5125 19.3783 13.6565C20.4347 13.8446 21.3147 14.5689 21.721 15.5847ZM9.92597 14.2049C10.1345 14.7163 9.889 15.2999 9.3776 15.5084C7.06131 16.453 5.5 18.5813 5.5 20.9999C5.5 21.5522 5.05228 21.9999 4.5 21.9999C3.94772 21.9999 3.5 21.5522 3.5 20.9999C3.5 17.6777 5.641 14.8723 8.6224 13.6565C9.1338 13.448 9.71743 13.6935 9.92597 14.2049Z",fill:"currentColor"})})},exports.PinIcon=function({unpin:t=!1}){return t?e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e.jsx("path",{d:"M15 15V17.5585C15 18.4193 14.4491 19.1836 13.6325 19.4558L13.1726 19.6091C12.454 19.8487 11.6616 19.6616 11.126 19.126L4.87403 12.874C4.33837 12.3384 4.15132 11.546 4.39088 10.8274L4.54415 10.3675C4.81638 9.55086 5.58066 9 6.44152 9H9M12 6.2L13.6277 3.92116C14.3461 2.91549 15.7955 2.79552 16.6694 3.66942L20.3306 7.33058C21.2045 8.20448 21.0845 9.65392 20.0788 10.3723L18 11.8571",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8 16L3 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4 4L20 20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):e.jsx("svg",{className:"icon-sm",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4845 2.8798C16.1773 1.57258 14.0107 1.74534 12.9272 3.24318L9.79772 7.56923C9.60945 7.82948 9.30775 7.9836 8.98654 7.9836H6.44673C3.74061 7.9836 2.27414 11.6759 4.16948 13.5713L6.59116 15.993L2.29324 20.2909C1.90225 20.6819 1.90225 21.3158 2.29324 21.7068C2.68422 22.0977 3.31812 22.0977 3.70911 21.7068L8.00703 17.4088L10.4287 19.8305C12.3241 21.7259 16.0164 20.2594 16.0164 17.5533V15.0135C16.0164 14.6923 16.1705 14.3906 16.4308 14.2023L20.7568 11.0728C22.2547 9.98926 22.4274 7.8227 21.1202 6.51549L17.4845 2.8798ZM11.8446 18.4147C12.4994 19.0694 14.0141 18.4928 14.0141 17.5533V15.0135C14.0141 14.0499 14.4764 13.1447 15.2572 12.58L19.5832 9.45047C20.0825 9.08928 20.1401 8.3671 19.7043 7.93136L16.0686 4.29567C15.6329 3.85993 14.9107 3.91751 14.5495 4.4168L11.4201 8.74285C10.8553 9.52359 9.95016 9.98594 8.98654 9.98594H6.44673C5.5072 9.98594 4.93059 11.5006 5.58535 12.1554L11.8446 18.4147Z",fill:"currentColor"})})},exports.PixelCard=function({variant:r="default",gap:s,speed:a,colors:o,noFocus:n,className:i="",progress:l,randomness:c=.3,width:d,height:u}){const m=t.useRef(null),p=t.useRef(null),x=t.useRef([]),h=t.useRef(void 0),f=t.useRef(performance.now()),g=t.useRef(l),b=t.useRef(window.matchMedia("(prefers-reduced-motion: reduce)").matches).current,C=Pr[r],v=s??C.gap,w=a??C.speed,y=o??C.colors,j=n??C.noFocus,N=t.useCallback((()=>{if(!p.current)return;if(void 0===g.current)return void(p.current.style.opacity="1");const e=g.current>=.9?1-(g.current-.9)/.1:1;p.current.style.opacity=String(Dr(e))}),[]),k=t.useCallback((e=>{h.current=requestAnimationFrame((()=>k(e)));const t=performance.now(),r=t-f.current;if(r<1e3/60)return;f.current=t-r%(1e3/60);const s=p.current?.getContext("2d");if(!s||!p.current)return;s.clearRect(0,0,p.current.width,p.current.height);let a=!0;for(const t of x.current)"appearWithProgress"===e?void 0!==g.current?t.appearWithProgress(g.current):t.isIdle=!0:t[e](),t.isIdle||(a=!1);N(),a&&cancelAnimationFrame(h.current)}),[N]),L=t.useCallback((e=>{cancelAnimationFrame(h.current),h.current=requestAnimationFrame((()=>k(e)))}),[k]),M=t.useCallback((()=>{if(!m.current||!p.current)return;const{width:e,height:t}=m.current.getBoundingClientRect(),r=p.current.getContext("2d");p.current.width=Math.floor(e),p.current.height=Math.floor(t);const s=y.split(","),a=[],o=e/2,n=t/2,i=Math.hypot(o,n);for(let l=0;l<e;l+=v)for(let e=0;e<t;e+=v){const t=s[Math.floor(Math.random()*s.length)],d=Math.hypot(l-o,e-n)/i,u=Dr(d*(1-c)+Math.random()*c),m=b?0:d*i;r&&a.push(new Hr(p.current,r,l,e,t,Br(w,b),m,u))}x.current=a,void 0!==g.current&&L("appearWithProgress")}),[v,y,w,c,b,L]);return t.useEffect((()=>{g.current=l,void 0!==l&&L("appearWithProgress")}),[l,L]),t.useEffect((()=>{void 0===l&&cancelAnimationFrame(h.current)}),[l]),t.useEffect((()=>{M();const e=new ResizeObserver(M);return m.current&&e.observe(m.current),()=>{e.disconnect(),cancelAnimationFrame(h.current)}}),[M]),e.jsx("div",{ref:m,style:{width:d||"100%",height:u||"100%"},children:e.jsx("div",{className:ne("relative isolate grid select-none place-items-center overflow-hidden rounded-lg border border-border-light shadow-md transition-colors duration-200 ease-in-out",i),style:{width:"100%",height:"100%",transitionTimingFunction:"cubic-bezier(0.5, 1, 0.89, 1)"},onMouseEnter:()=>void 0===g.current&&L("appear"),onMouseLeave:()=>void 0===g.current&&L("disappear"),onFocus:j?void 0:e=>{j||e.currentTarget.contains(e.relatedTarget)||void 0!==g.current||L("appear")},onBlur:j?void 0:e=>{j||e.currentTarget.contains(e.relatedTarget)||void 0!==g.current||L("disappear")},tabIndex:j?-1:0,children:e.jsx("canvas",{ref:p,className:"pointer-events-none absolute inset-0 block",width:d&&"auto"!==d?parseInt(String(d)):void 0,height:u&&"auto"!==u?parseInt(String(u)):void 0})})})},exports.Plugin=function({className:t="",...r}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:ne("h-4 w-4",t),width:"16",height:"16",strokeWidth:"2",...r,children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13.164.98a.7.7 0 0 0-1.328 0l-.478 1.435a.7.7 0 0 1-.443.443l-1.436.478a.7.7 0 0 0 0 1.328l1.436.479a.7.7 0 0 1 .443.442l.478 1.436a.7.7 0 0 0 1.328 0l.478-1.436a.7.7 0 0 1 .443-.443l1.436-.478a.7.7 0 0 0 0-1.328l-1.436-.478a.7.7 0 0 1-.443-.443L13.164.979Z"}),e.jsx("path",{d:"M13.237 10.534c-.228-.245-.513-.46-.847-.46a.823.823 0 0 0-.828.849c.04 1.04.128 2.067.263 3.08a.619.619 0 0 1-.528.695c-.872.121-1.748.208-2.626.262a.8.8 0 0 1-.845-.805c0-.325.21-.602.45-.82.235-.215.375-.488.375-.787 0-.683-.738-1.237-1.65-1.237-.911 0-1.65.554-1.65 1.237 0 .294.137.563.364.775.245.229.461.513.461.848a.823.823 0 0 1-.85.829 33.809 33.809 0 0 1-3.266-.278.619.619 0 0 1-.532-.532 34.099 34.099 0 0 1-.278-3.267.823.823 0 0 1 .83-.85c.333 0 .619.216.846.461.212.228.482.364.776.364.683 0 1.237-.738 1.237-1.65 0-.91-.554-1.65-1.237-1.65-.299 0-.572.142-.786.376-.219.24-.496.45-.821.45a.8.8 0 0 1-.805-.845c.054-.885.142-1.76.262-2.626a.619.619 0 0 1 .695-.528c1.022.136 2.05.224 3.08.263a.822.822 0 0 0 .85-.828c0-.334-.217-.62-.462-.847-.227-.212-.363-.482-.363-.776C5.352 1.554 6.09 1 7.002 1c.91 0 1.649.554 1.649 1.237 0 .173-.012.327-.029.473C8.258 3 8 3.41 8 4c0 1.5 1.667 1.833 2.5 2 .167.833.5 2.5 2 2.5.732 0 1.186-.397 1.479-.9l.034-.001c.683 0 1.237.738 1.237 1.65 0 .911-.554 1.65-1.237 1.65-.294 0-.564-.137-.776-.364Z"})]})})},exports.Progress=tr,exports.QuestionMark=({className:t=""})=>e.jsx("span",{children:e.jsx("div",{className:ne("border-token-border-medium text-token-text-tertiary ml-2 flex h-3.5 w-3.5 cursor-default items-center justify-center rounded-full border text-[0.5rem] font-medium leading-none",t),children:"?"})}),exports.Radio=vr,exports.RegenerateIcon=function({className:t="",size:r="1em"}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne("icon-md-heavy",t),children:e.jsx("path",{fill:"currentColor",d:"M3.07 10.876C3.623 6.436 7.41 3 12 3a9.15 9.15 0 0 1 6.012 2.254V4a1 1 0 1 1 2 0v4a1 1 0 0 1-1 1H15a1 1 0 1 1 0-2h1.957A7.15 7.15 0 0 0 12 5a7 7 0 0 0-6.946 6.124 1 1 0 1 1-1.984-.248m16.992 1.132a1 1 0 0 1 .868 1.116C20.377 17.564 16.59 21 12 21a9.15 9.15 0 0 1-6-2.244V20a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H7.043A7.15 7.15 0 0 0 12 19a7 7 0 0 0 6.946-6.124 1 1 0 0 1 1.116-.868"})})},exports.ResizableHandle=({withHandle:t,className:r="",...s})=>e.jsx(se.PanelResizeHandle,{className:ne("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",r),...s,children:t&&e.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e.jsx(c.GripVertical,{className:"h-2.5 w-2.5"})})}),exports.ResizableHandleAlt=({withHandle:t,className:r="",...s})=>e.jsx(se.PanelResizeHandle,{className:ne("group relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",r),...s,children:t&&e.jsx("div",{className:"invisible z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border group-hover:visible group-active:visible group-data-[resize-handle-active]:visible",children:e.jsx(c.GripVertical,{className:"h-2.5 w-2.5"})})}),exports.ResizablePanel=cr,exports.ResizablePanelGroup=({className:t="",...r})=>e.jsx(se.PanelGroup,{className:ne("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...r}),exports.SamlIcon=function(){return e.jsx("svg",{width:"800px",height:"800px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"h-5 w-5",children:e.jsxs("g",{fill:"#000000",children:[e.jsx("path",{d:"M7.754 2l.463.41c.343.304.687.607 1.026.915C11.44 5.32 13.3 7.565 14.7 10.149c.072.132.137.268.202.403l.098.203-.108.057-.081-.115-.21-.299-.147-.214c-1.019-1.479-2.04-2.96-3.442-4.145a6.563 6.563 0 00-1.393-.904c-1.014-.485-1.916-.291-2.69.505-.736.757-1.118 1.697-1.463 2.653-.045.123-.092.245-.139.367l-.082.215-.172-.055c.1-.348.192-.698.284-1.049.21-.795.42-1.59.712-2.356.31-.816.702-1.603 1.093-2.39.169-.341.338-.682.5-1.025h.092z"}),e.jsx("path",{d:"M8.448 11.822c-1.626.77-5.56 1.564-7.426 1.36C.717 11.576 3.71 4.05 5.18 2.91l-.095.218a4.638 4.638 0 01-.138.303l-.066.129c-.76 1.462-1.519 2.926-1.908 4.53a7.482 7.482 0 00-.228 1.689c-.01 1.34.824 2.252 2.217 2.309.67.027 1.347-.043 2.023-.114.294-.03.587-.061.88-.084.108-.008.214-.021.352-.039l.231-.028z"}),e.jsx("path",{d:"M3.825 14.781c-.445.034-.89.068-1.333.108 4.097.39 8.03-.277 11.91-1.644-1.265-2.23-2.97-3.991-4.952-5.522.026.098.084.169.141.239l.048.06c.17.226.348.448.527.67.409.509.818 1.018 1.126 1.578.778 1.42.356 2.648-1.168 3.296-1.002.427-2.097.718-3.18.892-1.03.164-2.075.243-3.119.323z"})]})})},exports.SaveIcon=function({size:t="1em",className:r}){return e.jsx("svg",{viewBox:"64 64 896 896",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:r,width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"})})},exports.Select=dr,exports.SelectContent=fr,exports.SelectDropDown=function({title:r,value:s,disabled:a,setValue:o,availableValues:n,showAbove:i=!1,showLabel:l=!0,emptyTitle:c=!1,iconSide:d="right",optionIconSide:u="left",placeholder:m,containerClassName:p,optionsListClass:x,optionsClass:h,currentValueClass:f,subContainerClassName:g,className:b,renderOption:C,searchClassName:v,searchPlaceholder:w,showOptionIcon:y=!1}){const j={className:"top-full mt-3"};i&&(j.className="bottom-full mb-3");let N=r;c&&(N="");const k=n??[],[L,M]=lr({availableOptions:k,placeholder:w,getTextKeyOverride:e=>function(e){return"string"==typeof e?e:"label"in e?e.label??"":"value"in e?(e.value??"")+"":""}(e).toUpperCase(),className:v,disabled:a}),S=null!=M?L:k,z=y&&null!=s&&null!=s.icon,R=t.useRef(null);return e.jsx("div",{className:ne("flex items-center justify-center gap-2",p??""),children:e.jsx("div",{className:ne("relative w-full",g??""),children:e.jsx(O.Listbox,{value:s,onChange:o,disabled:a,children:({open:t})=>e.jsxs(e.Fragment,{children:[e.jsxs(O.ListboxButton,{ref:R,"data-testid":"select-dropdown-button",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),!t&&R.current&&R.current.click())},className:ne("relative flex w-full cursor-default flex-col rounded-md border border-black/10 bg-white py-2 pl-3 pr-10 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:bg-white dark:border-gray-600 dark:bg-gray-700 sm:text-sm",b??""),children:[l&&e.jsx(O.Label,{className:"block text-xs text-gray-700 dark:text-gray-500",id:"headlessui-listbox-label-:r1:","data-headlessui-state":"",children:N}),e.jsx("span",{className:"inline-flex w-full truncate",children:e.jsxs("span",{className:ne("flex h-6 items-center gap-1 truncate text-sm text-gray-800 dark:text-white",l?"":"text-xs",f??""),children:[!l&&!c&&e.jsxs("span",{className:"text-xs text-gray-700 dark:text-gray-500",children:[N,":"]}),z&&"right"!==u&&e.jsx("span",{className:"icon-md flex items-center",children:s.icon}),z&&e.jsx("span",{className:"icon-md absolute right-0 mr-8 flex items-center",children:s.icon}),s?"string"!=typeof s?s.label??"":s:e.jsx("span",{className:"text-text-secondary",children:m})]})}),e.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 text-gray-400",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",style:i?{transform:"scaleY(-1)"}:{},children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})})]}),e.jsx(O.Transition,{show:t,as:"div",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",...j,children:e.jsxs(O.ListboxOptions,{className:ne("absolute z-10 mt-2 max-h-60 w-full overflow-auto rounded border bg-white text-xs ring-black/10 dark:border-gray-600 dark:bg-gray-700 dark:ring-white/20 md:w-[100%]",x??""),children:[C&&e.jsx(O.ListboxOption,{value:null,className:ne("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-700",h??""),children:C()},"listbox-render-option"),M,S.map(((t,r)=>{if(!t)return null;const a="string"==typeof t?t:t.label??t.value??"",o="string"==typeof t?t:t.value??"",n="string"==typeof t?null:t.icon??null;let i=s;return"string"!=typeof i&&(i=i?.value??""),e.jsx(O.ListboxOption,{value:t,className:({active:e})=>ne("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-600",e?"bg-surface-active text-text-primary":"",h??""),children:e.jsxs("span",{className:"flex items-center gap-1.5 truncate",children:[e.jsxs("span",{className:ne("flex h-6 items-center gap-1 text-gray-800 dark:text-gray-200",t===s?"font-semibold":"","left"===d?"ml-4":""),children:[null!=n&&e.jsx("span",{className:ne("mr-1","right"===u?"absolute right-0 pr-2":""),children:n}),a]}),o===i&&e.jsx("span",{className:ne("absolute inset-y-0 flex items-center text-gray-800 dark:text-gray-200","left"===d?"left-0 pl-2":"right-0 pr-3"),children:e.jsx(jr,{})})]})},r)}))]})})]})})})})},exports.SelectGroup=ur,exports.SelectItem=br,exports.SelectLabel=gr,exports.SelectScrollDownButton=hr,exports.SelectScrollUpButton=xr,exports.SelectSeparator=Cr,exports.SelectTrigger=pr,exports.SelectValue=mr,exports.SendIcon=function({size:t=24,className:r=""}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:ne("text-white dark:text-black",r),children:e.jsx("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},exports.SendMessageIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:"icon-sm m-1 md:m-0",style:{width:"1em",height:"1em",verticalAlign:"middle"},children:e.jsx("path",{d:"M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z",fill:"currentColor"})})},exports.Separator=St,exports.SharePointIcon=function({className:t=""}){return e.jsx("svg",{fill:"currentColor",width:"24",height:"24",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{d:"M24 13.5q0 1.242-.475 2.332-.474 1.09-1.289 1.904-.814.815-1.904 1.29-1.09.474-2.332.474-.762 0-1.523-.2-.106.997-.557 1.858-.451.862-1.154 1.494-.704.633-1.606.99-.902.358-1.91.358-1.09 0-2.045-.416-.955-.416-1.664-1.125-.709-.709-1.125-1.664Q6 19.84 6 18.75q0-.188.018-.375.017-.188.04-.375H.997q-.41 0-.703-.293T0 17.004V6.996q0-.41.293-.703T.996 6h3.54q.14-1.277.726-2.373.586-1.096 1.488-1.904Q7.652.914 8.807.457 9.96 0 11.25 0q1.395 0 2.625.533T16.02 1.98q.914.915 1.447 2.145T18 6.75q0 .188-.012.375-.011.188-.035.375 1.242 0 2.344.469 1.101.468 1.928 1.277.826.809 1.3 1.904Q24 12.246 24 13.5zm-12.75-12q-.973 0-1.857.34-.885.34-1.577.943-.691.604-1.154 1.43Q6.2 5.039 6.06 6h4.945q.41 0 .703.293t.293.703v4.945l.21-.035q.212-.75.61-1.424.399-.673.944-1.218.545-.545 1.213-.944.668-.398 1.43-.61.093-.503.093-.96 0-1.09-.416-2.045-.416-.955-1.125-1.664-.709-.709-1.664-1.125Q12.34 1.5 11.25 1.5zM6.117 15.902q.54 0 1.06-.111.522-.111.932-.37.41-.257.662-.679.252-.422.252-1.055 0-.632-.263-1.054-.264-.422-.662-.703-.399-.282-.856-.463l-.855-.34q-.399-.158-.662-.334-.264-.176-.264-.445 0-.2.14-.323.141-.123.335-.193.193-.07.404-.094.21-.023.351-.023.598 0 1.055.152.457.153.95.457V8.543q-.282-.082-.522-.14-.24-.06-.475-.1-.234-.041-.486-.059-.252-.017-.557-.017-.515 0-1.054.117-.54.117-.979.375-.44.258-.715.68-.275.421-.275 1.03 0 .598.263.997.264.398.663.68.398.28.855.474l.856.363q.398.17.662.358.263.187.263.457 0 .222-.123.351-.123.13-.31.2-.188.07-.393.087-.205.018-.369.018-.703 0-1.248-.234-.545-.235-1.107-.621v1.875q1.195.468 2.472.468zM11.25 22.5q.773 0 1.453-.293t1.19-.803q.51-.51.808-1.195.299-.686.299-1.459 0-.668-.223-1.277-.222-.61-.62-1.096-.4-.486-.95-.826-.55-.34-1.207-.48v1.933q0 .41-.293.703t-.703.293H7.57q-.07.375-.07.75 0 .773.293 1.459t.803 1.195q.51.51 1.195.803.686.293 1.459.293zM18 18q.926 0 1.746-.352.82-.351 1.436-.966.615-.616.966-1.43.352-.815.352-1.752 0-.926-.352-1.746-.351-.82-.966-1.436-.616-.615-1.436-.966Q18.926 9 18 9t-1.74.357q-.815.358-1.43.973t-.973 1.43q-.357.814-.357 1.74 0 .129.006.258t.017.258q.551.27 1.02.65t.838.855q.369.475.627 1.026.258.55.387 1.148Q17.18 18 18 18Z"})})},exports.SheetPaths=function(){return e.jsx(e.Fragment,{children:e.jsx("path",{d:"M15.5 10.5H12.1667C11.2462 10.5 10.5 11.2462 10.5 12.1667V13.5V18M15.5 10.5H23.8333C24.7538 10.5 25.5 11.2462 25.5 12.1667V13.5V18M15.5 10.5V25.5M15.5 25.5H18H23.8333C24.7538 25.5 25.5 24.7538 25.5 23.8333V18M15.5 25.5H12.1667C11.2462 25.5 10.5 24.7538 10.5 23.8333V18M10.5 18H25.5",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})},exports.Sidebar=function({className:t}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.85719 3H15.1428C16.2266 2.99999 17.1007 2.99998 17.8086 3.05782C18.5375 3.11737 19.1777 3.24318 19.77 3.54497C20.7108 4.02433 21.4757 4.78924 21.955 5.73005C22.2568 6.32234 22.3826 6.96253 22.4422 7.69138C22.5 8.39925 22.5 9.27339 22.5 10.3572V13.6428C22.5 14.7266 22.5 15.6008 22.4422 16.3086C22.3826 17.0375 22.2568 17.6777 21.955 18.27C21.4757 19.2108 20.7108 19.9757 19.77 20.455C19.1777 20.7568 18.5375 20.8826 17.8086 20.9422C17.1008 21 16.2266 21 15.1428 21H8.85717C7.77339 21 6.89925 21 6.19138 20.9422C5.46253 20.8826 4.82234 20.7568 4.23005 20.455C3.28924 19.9757 2.52433 19.2108 2.04497 18.27C1.74318 17.6777 1.61737 17.0375 1.55782 16.3086C1.49998 15.6007 1.49999 14.7266 1.5 13.6428V10.3572C1.49999 9.27341 1.49998 8.39926 1.55782 7.69138C1.61737 6.96253 1.74318 6.32234 2.04497 5.73005C2.52433 4.78924 3.28924 4.02433 4.23005 3.54497C4.82234 3.24318 5.46253 3.11737 6.19138 3.05782C6.89926 2.99998 7.77341 2.99999 8.85719 3ZM6.35424 5.05118C5.74907 5.10062 5.40138 5.19279 5.13803 5.32698C4.57354 5.6146 4.1146 6.07354 3.82698 6.63803C3.69279 6.90138 3.60062 7.24907 3.55118 7.85424C3.50078 8.47108 3.5 9.26339 3.5 10.4V13.6C3.5 14.7366 3.50078 15.5289 3.55118 16.1458C3.60062 16.7509 3.69279 17.0986 3.82698 17.362C4.1146 17.9265 4.57354 18.3854 5.13803 18.673C5.40138 18.8072 5.74907 18.8994 6.35424 18.9488C6.97108 18.9992 7.76339 19 8.9 19H9.5V5H8.9C7.76339 5 6.97108 5.00078 6.35424 5.05118ZM11.5 5V19H15.1C16.2366 19 17.0289 18.9992 17.6458 18.9488C18.2509 18.8994 18.5986 18.8072 18.862 18.673C19.4265 18.3854 19.8854 17.9265 20.173 17.362C20.3072 17.0986 20.3994 16.7509 20.4488 16.1458C20.4992 15.5289 20.5 14.7366 20.5 13.6V10.4C20.5 9.26339 20.4992 8.47108 20.4488 7.85424C20.3994 7.24907 20.3072 6.90138 20.173 6.63803C19.8854 6.07354 19.4265 5.6146 18.862 5.32698C18.5986 5.19279 18.2509 5.10062 17.6458 5.05118C17.0289 5.00078 16.2366 5 15.1 5H11.5ZM5 8.5C5 7.94772 5.44772 7.5 6 7.5H7C7.55229 7.5 8 7.94772 8 8.5C8 9.05229 7.55229 9.5 7 9.5H6C5.44772 9.5 5 9.05229 5 8.5ZM5 12C5 11.4477 5.44772 11 6 11H7C7.55229 11 8 11.4477 8 12C8 12.5523 7.55229 13 7 13H6C5.44772 13 5 12.5523 5 12Z",fill:"currentColor"})})},exports.Skeleton=zt,exports.Slider=Mt,exports.Sparkles=function({className:t="",size:r=24}){return e.jsxs("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ne("icon-md shrink-0",t),children:[e.jsx("path",{d:"M19.3975 1.35498C19.3746 1.15293 19.2037 1.00021 19.0004 1C18.7971 0.999793 18.6259 1.15217 18.6026 1.35417C18.4798 2.41894 18.1627 3.15692 17.6598 3.65983C17.1569 4.16274 16.4189 4.47983 15.3542 4.60264C15.1522 4.62593 14.9998 4.79707 15 5.00041C15.0002 5.20375 15.1529 5.37457 15.355 5.39746C16.4019 5.51605 17.1562 5.83304 17.6716 6.33906C18.1845 6.84269 18.5078 7.57998 18.6016 8.63539C18.6199 8.84195 18.7931 9.00023 19.0005 9C19.2078 8.99977 19.3806 8.84109 19.3985 8.6345C19.4883 7.59673 19.8114 6.84328 20.3273 6.32735C20.8433 5.81142 21.5967 5.48834 22.6345 5.39851C22.8411 5.38063 22.9998 5.20782 23 5.00045C23.0002 4.79308 22.842 4.61992 22.6354 4.60157C21.58 4.50782 20.8427 4.18447 20.3391 3.67157C19.833 3.15623 19.516 2.40192 19.3975 1.35498Z",fill:"currentColor"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 3C11.4833 3 11.8974 3.34562 11.9839 3.82111C12.4637 6.46043 13.279 8.23983 14.5196 9.48039C15.7602 10.721 17.5396 11.5363 20.1789 12.0161C20.6544 12.1026 21 12.5167 21 13C21 13.4833 20.6544 13.8974 20.1789 13.9839C17.5396 14.4637 15.7602 15.279 14.5196 16.5196C13.279 17.7602 12.4637 19.5396 11.9839 22.1789C11.8974 22.6544 11.4833 23 11 23C10.5167 23 10.1026 22.6544 10.0161 22.1789C9.53625 19.5396 8.72096 17.7602 7.48039 16.5196C6.23983 15.279 4.46043 14.4637 1.82111 13.9839C1.34562 13.8974 1 13.4833 1 13C1 12.5167 1.34562 12.1026 1.82111 12.0161C4.46043 11.5363 6.23983 10.721 7.48039 9.48039C8.72096 8.23983 9.53625 6.46043 10.0161 3.82111C10.1026 3.34562 10.5167 3 11 3ZM5.66618 13C6.9247 13.5226 7.99788 14.2087 8.89461 15.1054C9.79134 16.0021 10.4774 17.0753 11 18.3338C11.5226 17.0753 12.2087 16.0021 13.1054 15.1054C14.0021 14.2087 15.0753 13.5226 16.3338 13C15.0753 12.4774 14.0021 11.7913 13.1054 10.8946C12.2087 9.99788 11.5226 8.9247 11 7.66618C10.4774 8.9247 9.79134 9.99788 8.89461 10.8946C7.99788 11.7913 6.9247 12.4774 5.66618 13Z",fill:"currentColor"})]})},exports.SpeechIcon=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:ne(t),children:[e.jsx("path",{d:"M2 10v3"}),e.jsx("path",{d:"M6 6v11"}),e.jsx("path",{d:"M10 3v18"}),e.jsx("path",{d:"M14 8v7"}),e.jsx("path",{d:"M18 5v13"}),e.jsx("path",{d:"M22 10v3"})]})},exports.Spinner=yr,exports.SplitText=({text:r="",className:s="",delay:a=100,animationFrom:o={opacity:0,transform:"translate3d(0,40px,0)"},animationTo:n={opacity:1,transform:"translate3d(0,0,0)"},easing:i=(e=>e),threshold:l=.1,rootMargin:c="-100px",textAlign:d="center",onLetterAnimationComplete:u,onLineCountChange:m})=>{const p=r.split(" ").map(Sr),x=p.flat(),[h,f]=t.useState(!1),g=t.useRef(null),b=t.useRef(0),[C]=B.useSprings(x.length,(e=>({from:o,to:h?async e=>{await e(n),b.current+=1,b.current===x.length&&u&&u()}:o,delay:e*a,config:{easing:i}})),[h,r,a,o,n,i,u]);return t.useEffect((()=>{const e=new IntersectionObserver((([t])=>{t.isIntersecting&&(f(!0),g.current&&e.unobserve(g.current))}),{threshold:l,rootMargin:c});return g.current&&e.observe(g.current),()=>e.disconnect()}),[l,c]),t.useEffect((()=>{if(g.current&&h){const e=g.current;setTimeout((()=>{const t=parseInt(getComputedStyle(e).lineHeight)||1.2*parseInt(getComputedStyle(e).fontSize),r=e.offsetHeight,s=Math.round(r/t);m&&m(s)}),100)}}),[h,r,m]),e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sr-only",children:r}),e.jsx("p",{ref:g,className:`split-parent inline overflow-hidden ${s}`,style:{textAlign:d,whiteSpace:"normal",wordWrap:"break-word"},"aria-hidden":"true",children:p.map(((t,r)=>e.jsxs("span",{style:{display:"inline-block",whiteSpace:"nowrap"},children:[t.map(((t,s)=>{const a=p.slice(0,r).reduce(((e,t)=>e+t.length),0)+s;return e.jsx(B.animated.span,{style:C[a],className:"inline-block transform transition-opacity will-change-transform",children:t},a)})),r<p.length-1&&e.jsx("span",{style:{display:"inline-block",width:"0.3em"},children:" "})]},r)))})]})},exports.SquirclePlusIcon=function(){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"text-3xl",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})},exports.StopGeneratingIcon=function({className:t=""}){return e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:ne("h-3 w-3 text-gray-600 dark:text-gray-400",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})})},exports.Switch=Rt,exports.Table=It,exports.TableBody=Vt,exports.TableCaption=At,exports.TableCell=Pt,exports.TableFooter=Ht,exports.TableHead=Dt,exports.TableHeader=Tt,exports.TableRow=Bt,exports.Tabs=Ot,exports.TabsContent=Et,exports.TabsList=Zt,exports.TabsTrigger=Wt,exports.Tag=qt,exports.TextPaths=function(){return e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M19.6663 9.66663H12.9997C12.5576 9.66663 12.1337 9.84222 11.8212 10.1548C11.5086 10.4673 11.333 10.8913 11.333 11.3333V24.6666C11.333 25.1087 11.5086 25.5326 11.8212 25.8451C12.1337 26.1577 12.5576 26.3333 12.9997 26.3333H22.9997C23.4417 26.3333 23.8656 26.1577 24.1782 25.8451C24.4907 25.5326 24.6663 25.1087 24.6663 24.6666V14.6666L19.6663 9.66663Z",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M19.667 9.66663V14.6666H24.667",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M21.3337 18.8334H14.667",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M21.3337 22.1666H14.667",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16.3337 15.5H15.5003H14.667",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.Textarea=$t,exports.TextareaAutosize=_t,exports.ThemeContext=$r,exports.ThemeProvider=function({children:r,themeRGB:s,themeName:a,initialTheme:o}){const[n,i]=p.useAtom(Er),[l,c]=p.useAtom(Fr),[d,u]=p.useAtom(qr),m=t.useRef(!1);t.useEffect((()=>{m.current||(m.current=!0,o&&i(o),s&&c(s),a&&u(a))}),[o,s,a,i,c,u]);const x=t.useCallback((e=>{const t=window.document.documentElement,r=_r(e);t.classList.remove(r?"light":"dark"),t.classList.add(r?"dark":"light")}),[]);t.useEffect((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),t=()=>{"system"===n&&x("system")};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}),[n,x]),t.useEffect((()=>{x(n)}),[n,x]),t.useEffect((()=>{l&&Wr(l)}),[l]);const h=t.useCallback((()=>{i("system"),c(void 0),u(void 0);const e=document.documentElement;Array.from(e.style).filter((e=>e.startsWith("--"))).forEach((t=>e.style.removeProperty(t)))}),[i,c,u]),f=t.useMemo((()=>({theme:n,setTheme:i,themeRGB:l,setThemeRGB:c,themeName:d,setThemeName:u,resetTheme:h})),[n,i,l,c,d,u,h]);return e.jsx($r.Provider,{value:f,children:r})},exports.ThemeSelector=({returnThemeOnly:r})=>{const{theme:s,setTheme:a}=t.useContext($r),[o,n]=t.useState(""),i=t.useCallback((e=>{const t=Date.now();"number"==typeof window.lastThemeChange&&t-window.lastThemeChange<500||(window.lastThemeChange=t,a(e),n(_r(e)?"Dark theme enabled":"Light theme enabled"))}),[a]);return t.useEffect((()=>{if("system"===s){const e=window.matchMedia("(prefers-color-scheme: dark)").matches;a(e?"dark":"light")}}),[s,a]),t.useEffect((()=>{if(o){const e=setTimeout((()=>n("")),1e3);return()=>clearTimeout(e)}}),[o]),!0===r?e.jsx(Gr,{theme:s,onChange:i}):e.jsxs("div",{className:"flex flex-col items-center justify-center bg-white pt-6 dark:bg-gray-900 sm:pt-0",children:[e.jsx("div",{className:"absolute bottom-0 left-0 m-4",children:e.jsx(Gr,{theme:s,onChange:i})}),o&&e.jsx("div",{"aria-live":"polite",className:"sr-only",children:o})]})},exports.ThumbDownIcon=function({className:t="",size:r="1em",bold:s=!1}){return s?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:t,children:[e.jsx("path",{d:"M11.4079 21.4961C11.1953 21.8698 10.7683 22.0649 10.348 21.9805C8.4373 21.5968 7.27541 19.6391 7.84844 17.7691L8.69697 14.9999L6.98577 14.9999C4.35915 14.9999 2.45151 12.492 3.14262 9.94747L4.50063 4.94747C4.97329 3.20722 6.54741 1.99994 8.34378 1.99994H14.0328C15.131 2.00207 16.0206 2.89668 16.0206 3.99994V14.9999H15.6827C15.3253 14.9999 14.9953 15.1922 14.818 15.5038L11.4079 21.4961Z",fill:"currentColor"}),e.jsx("path",{d:"M18.0124 14.9999C19.6624 14.9999 21 13.6568 21 11.9999V4.99994C21 3.34308 19.6624 1.99994 18.0124 1.99994H17.4794C17.8184 2.58829 18.0124 3.27136 18.0124 3.99994V14.9999Z",fill:"currentColor"})]}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8727 21.4961C11.6725 21.8466 11.2811 22.0423 10.8805 21.9922L10.4267 21.9355C7.95958 21.6271 6.36855 19.1665 7.09975 16.7901L7.65054 15H6.93226C4.29476 15 2.37923 12.4921 3.0732 9.94753L4.43684 4.94753C4.91145 3.20728 6.49209 2 8.29589 2H18.0045C19.6614 2 21.0045 3.34315 21.0045 5V12C21.0045 13.6569 19.6614 15 18.0045 15H16.0045C15.745 15 15.5054 15.1391 15.3766 15.3644L11.8727 21.4961ZM14.0045 4H8.29589C7.39399 4 6.60367 4.60364 6.36637 5.47376L5.00273 10.4738C4.65574 11.746 5.61351 13 6.93226 13H9.00451C9.32185 13 9.62036 13.1506 9.8089 13.4059C9.99743 13.6612 10.0536 13.9908 9.96028 14.2941L9.01131 17.3782C8.6661 18.5002 9.35608 19.6596 10.4726 19.9153L13.6401 14.3721C13.9523 13.8258 14.4376 13.4141 15.0045 13.1902V5C15.0045 4.44772 14.5568 4 14.0045 4ZM17.0045 13V5C17.0045 4.64937 16.9444 4.31278 16.8338 4H18.0045C18.5568 4 19.0045 4.44772 19.0045 5V12C19.0045 12.5523 18.5568 13 18.0045 13H17.0045Z",fill:"currentColor"})})},exports.ThumbUpIcon=function({className:t="",size:r="1em",bold:s=!1}){return s?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:t,children:[e.jsx("path",{d:"M12.592 2.50386C12.8047 2.13014 13.2317 1.935 13.652 2.01942C15.5627 2.40314 16.7246 4.36079 16.1516 6.23085L15.303 9L17.0142 9C19.6409 9 21.5485 11.5079 20.8574 14.0525L19.4994 19.0525C19.0267 20.7927 17.4526 22 15.6562 22H9.96721C8.869 21.9979 7.97939 21.1033 7.97939 20V9H8.31734C8.67472 9 9.0047 8.80771 9.18201 8.49613L12.592 2.50386Z",fill:"currentColor"}),e.jsx("path",{d:"M5.98763 9C4.33761 9 3 10.3431 3 12V19C3 20.6569 4.33761 22 5.98763 22H6.52055C6.18162 21.4116 5.98763 20.7286 5.98763 20V9Z",fill:"currentColor"})]}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1318 2.50389C12.3321 2.15338 12.7235 1.95768 13.124 2.00775L13.5778 2.06447C16.0449 2.37286 17.636 4.83353 16.9048 7.20993L16.354 8.99999H17.0722C19.7097 8.99999 21.6253 11.5079 20.9313 14.0525L19.5677 19.0525C19.0931 20.7927 17.5124 22 15.7086 22H6C4.34315 22 3 20.6568 3 19V12C3 10.3431 4.34315 8.99999 6 8.99999H8C8.25952 8.99999 8.49914 8.86094 8.6279 8.63561L12.1318 2.50389ZM10 20H15.7086C16.6105 20 17.4008 19.3964 17.6381 18.5262L19.0018 13.5262C19.3488 12.2539 18.391 11 17.0722 11H15C14.6827 11 14.3841 10.8494 14.1956 10.5941C14.0071 10.3388 13.9509 10.0092 14.0442 9.70591L14.9932 6.62175C15.3384 5.49984 14.6484 4.34036 13.5319 4.08468L10.3644 9.62789C10.0522 10.1742 9.56691 10.5859 9 10.8098V19C9 19.5523 9.44772 20 10 20ZM7 11V19C7 19.3506 7.06015 19.6872 7.17071 20H6C5.44772 20 5 19.5523 5 19V12C5 11.4477 5.44772 11 6 11H7Z",fill:"currentColor"})})},exports.Toast=function(){const{toast:t,onOpenChange:r}=_e(),s={[exports.NotificationSeverity.INFO]:"border-gray-500 bg-gray-500",[exports.NotificationSeverity.SUCCESS]:"border-green-500 bg-green-500",[exports.NotificationSeverity.WARNING]:"border-orange-500 bg-orange-500",[exports.NotificationSeverity.ERROR]:"border-red-500 bg-red-500"};return e.jsx(te.Root,{open:t.open,onOpenChange:r,className:"toast-root",style:{height:"74px",marginBottom:"0px"},children:e.jsx("div",{className:"w-full p-1 text-center md:w-auto md:text-justify",children:e.jsxs("div",{className:`alert-root pointer-events-auto inline-flex flex-row gap-2 rounded-md border px-3 py-2 text-white ${s[t.severity]}`,children:[t.showIcon&&e.jsx("div",{className:"mt-1 flex-shrink-0 flex-grow-0",children:e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),e.jsx(te.Description,{className:"flex-1 justify-center gap-2",children:e.jsx("div",{className:"whitespace-pre-wrap text-left",children:t.message})})]})})})},exports.ToastContext=Jr,exports.ToastProvider=function({children:t}){const{showToast:r}=_e();return e.jsx(Jr.Provider,{value:{showToast:r},children:t})},exports.TooltipAnchor=Gt,exports.TrashIcon=Nr,exports.UserIcon=kr,exports.VectorIcon=function({className:t}){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-label":"",children:e.jsx("path",{d:"M7.45996 14.375C7.45996 13.3616 6.63844 12.54 5.625 12.54C4.61156 12.54 3.79004 13.3616 3.79004 14.375C3.79004 15.3884 4.61156 16.21 5.625 16.21C6.63844 16.21 7.45996 15.3884 7.45996 14.375ZM16.21 14.375C16.21 13.3616 15.3884 12.54 14.375 12.54C13.3616 12.54 12.54 13.3616 12.54 14.375C12.54 15.3884 13.3616 16.21 14.375 16.21C15.3884 16.21 16.21 15.3884 16.21 14.375ZM7.45996 5.625C7.45996 4.61156 6.63844 3.79004 5.625 3.79004C4.61156 3.79004 3.79004 4.61156 3.79004 5.625C3.79004 6.63844 4.61156 7.45996 5.625 7.45996C6.63844 7.45996 7.45996 6.63844 7.45996 5.625ZM16.21 5.625C16.21 4.61156 15.3884 3.79004 14.375 3.79004C13.3616 3.79004 12.54 4.61156 12.54 5.625C12.54 6.63844 13.3616 7.45996 14.375 7.45996C15.3884 7.45996 16.21 6.63844 16.21 5.625ZM17.54 14.375C17.54 16.123 16.123 17.54 14.375 17.54C12.627 17.54 11.21 16.123 11.21 14.375C11.21 12.627 12.627 11.21 14.375 11.21C16.123 11.21 17.54 12.627 17.54 14.375ZM8.79004 5.625C8.79004 7.37298 7.37298 8.79004 5.625 8.79004C3.87702 8.79004 2.45996 7.37298 2.45996 5.625C2.45996 3.87702 3.87702 2.45996 5.625 2.45996C7.37298 2.45996 8.79004 3.87702 8.79004 5.625ZM17.54 5.625C17.54 7.37298 16.123 8.79004 14.375 8.79004C13.7416 8.79004 13.153 8.60173 12.6582 8.28125L8.28125 12.6582C8.60173 13.153 8.79004 13.7416 8.79004 14.375C8.79004 16.123 7.37298 17.54 5.625 17.54C3.87702 17.54 2.45996 16.123 2.45996 14.375C2.45996 12.627 3.87702 11.21 5.625 11.21C6.25794 11.21 6.84623 11.3977 7.34082 11.7178L11.7178 7.34082C11.3977 6.84623 11.21 6.25794 11.21 5.625C11.21 3.87702 12.627 2.45996 14.375 2.45996C16.123 2.45996 17.54 3.87702 17.54 5.625Z"})})},exports.VideoPaths=function(){return e.jsxs(e.Fragment,{children:[e.jsx("rect",{x:"8",y:"10",width:"20",height:"16",rx:"3",stroke:"white",strokeWidth:"2",fill:"none"}),e.jsx("path",{d:"M22 18l-6 4v-8L22 18z",fill:"white"})]})},exports.VolumeIcon=function({className:t="",size:r="1em"}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:r,width:r,className:ne(t),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4.9099C11 4.47485 10.4828 4.24734 10.1621 4.54132L6.67572 7.7372C6.49129 7.90626 6.25019 8.00005 6 8.00005H4C3.44772 8.00005 3 8.44776 3 9.00005V15C3 15.5523 3.44772 16 4 16H6C6.25019 16 6.49129 16.0938 6.67572 16.2629L10.1621 19.4588C10.4828 19.7527 11 19.5252 11 19.0902V4.9099ZM8.81069 3.06701C10.4142 1.59714 13 2.73463 13 4.9099V19.0902C13 21.2655 10.4142 22.403 8.81069 20.9331L5.61102 18H4C2.34315 18 1 16.6569 1 15V9.00005C1 7.34319 2.34315 6.00005 4 6.00005H5.61102L8.81069 3.06701ZM20.3166 6.35665C20.8019 6.09313 21.409 6.27296 21.6725 6.75833C22.5191 8.3176 22.9996 10.1042 22.9996 12.0001C22.9996 13.8507 22.5418 15.5974 21.7323 17.1302C21.4744 17.6185 20.8695 17.8054 20.3811 17.5475C19.8927 17.2896 19.7059 16.6846 19.9638 16.1962C20.6249 14.9444 20.9996 13.5175 20.9996 12.0001C20.9996 10.4458 20.6064 8.98627 19.9149 7.71262C19.6514 7.22726 19.8312 6.62017 20.3166 6.35665ZM15.7994 7.90049C16.241 7.5688 16.8679 7.65789 17.1995 8.09947C18.0156 9.18593 18.4996 10.5379 18.4996 12.0001C18.4996 13.3127 18.1094 14.5372 17.4385 15.5604C17.1357 16.0222 16.5158 16.1511 16.0539 15.8483C15.5921 15.5455 15.4632 14.9255 15.766 14.4637C16.2298 13.7564 16.4996 12.9113 16.4996 12.0001C16.4996 10.9859 16.1653 10.0526 15.6004 9.30063C15.2687 8.85905 15.3578 8.23218 15.7994 7.90049Z",fill:"currentColor"})})},exports.VolumeMuteIcon=function({className:t="",size:r="1em"}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:r,width:r,className:ne(t),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9.5 8.5C8.94772 8.5 8.5 8.94772 8.5 9.5V14.5C8.5 15.0523 8.94772 15.5 9.5 15.5H14.5C15.0523 15.5 15.5 15.0523 15.5 14.5V9.5C15.5 8.94772 15.0523 8.5 14.5 8.5H9.5Z",fill:"currentColor"})})},exports.XAIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",fill:"currentColor",className:t,children:e.jsx("path",{d:"m3.005 8.858 8.783 12.544h3.904L6.908 8.858zM6.905 15.825 3 21.402h3.907l1.951-2.788zM16.585 2l-6.75 9.64 1.953 2.79L20.492 2zM17.292 7.965v13.437h3.2V3.395z"})})},exports.applyFontSize=e=>{const t=document.documentElement;switch(e.split("-")[1]){case"xs":t.style.setProperty("--markdown-font-size","0.75rem");break;case"sm":t.style.setProperty("--markdown-font-size","0.875rem");break;case"base":t.style.setProperty("--markdown-font-size","1rem");break;case"lg":t.style.setProperty("--markdown-font-size","1.125rem");break;case"xl":t.style.setProperty("--markdown-font-size","1.25rem")}},exports.applyTheme=Wr,exports.buttonVariants=Te,exports.chatDirectionAtom=Fe,exports.cn=ne,exports.darkTheme={"rgb-text-primary":"236 236 236","rgb-text-secondary":"205 205 205","rgb-text-secondary-alt":"153 150 150","rgb-text-tertiary":"89 89 89","rgb-text-warning":"245 158 11","rgb-ring-primary":"89 89 89","rgb-header-primary":"47 47 47","rgb-header-hover":"66 66 66","rgb-header-button-hover":"47 47 47","rgb-surface-active":"89 89 89","rgb-surface-active-alt":"47 47 47","rgb-surface-hover":"66 66 66","rgb-surface-hover-alt":"66 66 66","rgb-surface-primary":"13 13 13","rgb-surface-primary-alt":"23 23 23","rgb-surface-primary-contrast":"23 23 23","rgb-surface-secondary":"33 33 33","rgb-surface-secondary-alt":"33 33 33","rgb-surface-tertiary":"47 47 47","rgb-surface-tertiary-alt":"47 47 47","rgb-surface-dialog":"23 23 23","rgb-surface-submit":"4 120 87","rgb-surface-submit-hover":"6 95 70","rgb-surface-destructive":"153 27 27","rgb-surface-destructive-hover":"127 29 29","rgb-surface-chat":"47 47 47","rgb-border-light":"47 47 47","rgb-border-medium":"66 66 66","rgb-border-medium-alt":"66 66 66","rgb-border-heavy":"89 89 89","rgb-border-xheavy":"153 150 150","rgb-brand-purple":"171 104 255","rgb-presentation":"33 33 33","rgb-background":"33 33 33","rgb-foreground":"255 255 255","rgb-primary":"66 66 66","rgb-primary-foreground":"255 255 255","rgb-secondary":"42 42 42","rgb-secondary-foreground":"193 193 193","rgb-muted":"56 56 56","rgb-muted-foreground":"140 140 140","rgb-accent":"82 82 82","rgb-accent-foreground":"255 255 255","rgb-destructive-foreground":"255 255 255","rgb-border":"82 82 82","rgb-input":"66 66 66","rgb-ring":"255 255 255","rgb-card":"42 42 42","rgb-card-foreground":"255 255 255"},exports.defaultTheme={"rgb-text-primary":"33 33 33","rgb-text-secondary":"66 66 66","rgb-text-secondary-alt":"89 89 89","rgb-text-tertiary":"89 89 89","rgb-text-warning":"245 158 11","rgb-ring-primary":"89 89 89","rgb-header-primary":"255 255 255","rgb-header-hover":"247 247 248","rgb-header-button-hover":"247 247 248","rgb-surface-active":"236 236 236","rgb-surface-active-alt":"227 227 227","rgb-surface-hover":"227 227 227","rgb-surface-hover-alt":"205 205 205","rgb-surface-primary":"255 255 255","rgb-surface-primary-alt":"247 247 248","rgb-surface-primary-contrast":"236 236 236","rgb-surface-secondary":"247 247 248","rgb-surface-secondary-alt":"227 227 227","rgb-surface-tertiary":"236 236 236","rgb-surface-tertiary-alt":"255 255 255","rgb-surface-dialog":"255 255 255","rgb-surface-submit":"4 120 87","rgb-surface-submit-hover":"6 95 70","rgb-surface-destructive":"185 28 28","rgb-surface-destructive-hover":"153 27 27","rgb-surface-chat":"255 255 255","rgb-border-light":"227 227 227","rgb-border-medium":"205 205 205","rgb-border-medium-alt":"205 205 205","rgb-border-heavy":"153 150 150","rgb-border-xheavy":"89 89 89","rgb-brand-purple":"171 104 255","rgb-presentation":"255 255 255","rgb-background":"255 255 255","rgb-foreground":"17 17 17","rgb-primary":"235 235 235","rgb-primary-foreground":"0 0 0","rgb-secondary":"247 247 248","rgb-secondary-foreground":"66 66 66","rgb-muted":"250 250 250","rgb-muted-foreground":"120 120 120","rgb-accent":"245 245 245","rgb-accent-foreground":"17 17 17","rgb-destructive-foreground":"17 17 17","rgb-border":"215 215 215","rgb-input":"230 230 230","rgb-ring":"180 180 180","rgb-card":"247 247 248","rgb-card-foreground":"17 17 17"},exports.fontSizeAtom=qe,exports.getInitialTheme=()=>{if("undefined"!=typeof window&&window.localStorage){const e=window.localStorage.getItem("color-theme");if("string"==typeof e)return e;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark"}return"light"},exports.isDark=_r,exports.langAtom=Ee,exports.themeColorsAtom=Fr,exports.themeModeAtom=Er,exports.themeNameAtom=qr,exports.toastState=$e,exports.useAvatar=Ue,exports.useCombobox=Xe,exports.useDelayedRender=Ye,exports.useLocalize=Ke,exports.useMediaQuery=Qe,exports.useMultiSearch=lr,exports.useOnClickOutside=function(e,r,s,a){t.useEffect((()=>{const t=t=>{const o=t.target;o&&"id"in o&&s.includes(o.id)||o?.parentNode&&"id"in o.parentNode&&s.includes(o.parentNode.id)||a&&a(o)||e.current&&!e.current.contains(o)&&r()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}}),[e,r])},exports.useTheme=function(){const e=t.useContext($r);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},exports.useToast=_e,exports.useToastContext=function(){return t.useContext(Jr)};
2
2
  //# sourceMappingURL=index.js.map