octomux 1.0.4 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/TaskDetail-2gFAGaIH.js +1 -0
- package/dist/assets/index-C5ybRypn.css +1 -0
- package/dist/assets/index-DnKWWiii.js +2 -0
- package/dist/assets/vendor-ui-BEZHWVRx.js +31 -0
- package/dist/index.html +3 -3
- package/dist-server/index.js +19 -20
- package/package.json +3 -2
- package/dist/assets/TaskDetail-BvIvYM_M.js +0 -1
- package/dist/assets/index-DHcnQkuw.js +0 -2
- package/dist/assets/index-Df8OBouU.css +0 -1
- package/dist/assets/vendor-ui-CWZtXYLx.js +0 -31
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,r as n}from"./vendor-react-BZ8ItZjw.js";import{c as re,D as ae,a as ie,b as oe,d as le,e as de,L as B,T as X,B as u,f as h,I as K,P as Y,g as ee,h as te,u as ce,S as ue,i as xe}from"./index-DnKWWiii.js";import{TerminalView as se}from"./TerminalView-CguHyqU9.js";import{b as me,a as he,d as pe}from"./vendor-router-DRLGqALp.js";import"./vendor-ui-BEZHWVRx.js";import"./vendor-xterm-DvXGiZvM.js";function fe({agents:i,activeIndex:x,onSelect:r,onAddAgent:t,onStopAgent:d,canAddAgent:m}){return e.jsxs("div",{className:"flex items-center gap-1 border-b border-border px-1 pb-1",children:[i.filter(a=>a.status!=="stopped").map(a=>e.jsxs("div",{className:"group flex items-center",children:[e.jsxs("button",{className:re("rounded-t-md px-3 py-1.5 text-sm transition-colors",a.window_index===x?"bg-accent text-foreground":"text-muted-foreground hover:text-foreground"),onClick:()=>r(a.window_index),children:[a.label,a.status==="running"&&e.jsx("span",{className:`ml-1.5 inline-block h-1.5 w-1.5 rounded-full ${a.hook_activity==="waiting"?"bg-amber-500":a.hook_activity==="idle"?"bg-zinc-400":"animate-pulse bg-green-400"}`})]}),a.status==="running"&&e.jsx("button",{className:"ml-0.5 hidden rounded p-0.5 text-muted-foreground hover:text-destructive group-hover:inline-flex",onClick:l=>{l.stopPropagation(),d(a.id)},title:"Stop agent",children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M18 6 6 18"}),e.jsx("path",{d:"m6 6 12 12"})]})})]},a.id)),m&&e.jsx(ge,{onAdd:t})]})}function ge({onAdd:i}){const[x,r]=n.useState(!1),[t,d]=n.useState("");function m(){i(t.trim()||void 0),d(""),r(!1)}function a(){i()}return e.jsxs(ae,{open:x,onOpenChange:r,children:[e.jsxs("div",{className:"flex items-center gap-0.5",children:[e.jsx("button",{className:"rounded-t-md px-2 py-1.5 text-sm text-muted-foreground hover:text-foreground",onClick:a,title:"Add agent without prompt",children:"+"}),e.jsx(ie,{render:e.jsx("button",{className:"rounded px-1 py-1 text-xs text-muted-foreground hover:text-foreground",title:"Add agent with prompt"}),children:"..."})]}),e.jsxs(oe,{className:"sm:max-w-md",children:[e.jsx(le,{children:e.jsx(de,{children:"Add Agent"})}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(B,{htmlFor:"agent-prompt",children:"Initial Prompt (optional)"}),e.jsx(X,{id:"agent-prompt",placeholder:"Write tests for the authentication module...",rows:3,value:t,onChange:l=>d(l.target.value)})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(u,{variant:"ghost",onClick:()=>r(!1),children:"Cancel"}),e.jsx(u,{onClick:m,children:"Add Agent"})]})]})]})]})}function je({task:i,onSaved:x,onStart:r}){const[t,d]=n.useState(i.title),[m,a]=n.useState(i.description),[l,p]=n.useState(i.repo_path),[j,E]=n.useState(i.branch??""),[f,I]=n.useState(i.base_branch??""),[c,b]=n.useState(i.initial_prompt??""),[N,O]=n.useState(!!i.initial_prompt),[z,v]=n.useState([]),[U,k]=n.useState(""),[y,T]=n.useState(!1),[C,L]=n.useState(!1),[w,q]=n.useState(null),[J,M]=n.useState(!1),[A,P]=n.useState(!1),[G,D]=n.useState(null),[F,S]=n.useState(!1),R=n.useRef(f);R.current=f,n.useEffect(()=>{const s=l.trim();if(!s){v([]);return}let g=!1;const _=setTimeout(async()=>{try{const[Q,ne]=await Promise.all([h.listBranches(s),h.getDefaultBranch(s)]);g||(v(Q),R.current||I(ne.branch))}catch{g||v([])}},300);return()=>{g=!0,clearTimeout(_)}},[l]);const H=z.filter(s=>s.toLowerCase().includes(U.toLowerCase())),W=n.useCallback(async s=>{M(!0);try{const g=await h.browse(s);q(g)}catch{}finally{M(!1)}},[]);n.useEffect(()=>{C&&!w&&W()},[C,w,W]);function $(s){p(s),L(!1)}async function V(){if(!(!t.trim()||!m.trim()||!l.trim())){P(!0),D(null),S(!1);try{await h.updateTask(i.id,{title:t.trim(),description:m.trim(),repo_path:l.trim(),branch:j.trim()||void 0,base_branch:f.trim()||void 0,initial_prompt:c.trim()||void 0}),S(!0),x(),setTimeout(()=>S(!1),2e3)}catch(s){D(s.message)}finally{P(!1)}}}const o=t.trim()&&m.trim()&&l.trim()&&!A;return e.jsx("div",{className:"mx-auto max-w-2xl p-6",children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(B,{htmlFor:"edit-title",children:"Title"}),e.jsx(K,{id:"edit-title",value:t,onChange:s=>d(s.target.value),placeholder:"Task title"})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(B,{htmlFor:"edit-description",children:"Description"}),e.jsx(X,{id:"edit-description",value:m,onChange:s=>a(s.target.value),placeholder:"Task description",rows:3})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(B,{htmlFor:"edit-repo-path",children:"Repository Path"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(K,{id:"edit-repo-path",className:"flex-1 font-mono text-sm",value:l,onChange:s=>p(s.target.value),placeholder:"/Users/you/projects/my-repo"}),e.jsxs(Y,{open:C,onOpenChange:L,children:[e.jsx(ee,{render:e.jsx(u,{type:"button",variant:"outline",className:"shrink-0",children:"Browse"})}),e.jsx(te,{align:"end",side:"bottom",sideOffset:4,className:"w-[420px] p-0",children:e.jsx(ve,{data:w,loading:J,onNavigate:W,onSelect:$})})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(B,{htmlFor:"edit-branch",children:"Branch Name"}),e.jsx(K,{id:"edit-branch",className:"font-mono text-sm",value:j,onChange:s=>E(s.target.value),placeholder:"feat/my-feature"})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(B,{children:"Base Branch"}),e.jsxs(Y,{open:y,onOpenChange:T,children:[e.jsx(ee,{render:e.jsxs("button",{type:"button",className:"flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[e.jsx("span",{className:f?"font-mono text-xs":"text-muted-foreground",children:f||"Select base branch..."}),e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-muted-foreground",children:e.jsx("path",{d:"m6 9 6 6 6-6"})})]})}),e.jsx(te,{align:"start",side:"bottom",sideOffset:4,className:"w-[--trigger-width] p-0",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"border-b border-border px-3 py-2",children:e.jsx("input",{type:"text",placeholder:"Search branches...",className:"w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground",value:U,onChange:s=>k(s.target.value),autoFocus:!0})}),e.jsxs("div",{className:"max-h-[200px] overflow-y-auto",children:[H.length===0&&e.jsx("div",{className:"px-3 py-3 text-center text-xs text-muted-foreground",children:z.length===0?"Select a repository first":"No matching branches"}),H.map(s=>e.jsx("button",{type:"button",className:`flex w-full items-center px-3 py-1.5 text-left text-sm hover:bg-muted transition-colors ${s===f?"bg-muted font-medium":""}`,onClick:()=>{I(s),k(""),T(!1)},children:e.jsx("span",{className:"font-mono text-xs truncate",children:s})},s))]})]})})]})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("button",{type:"button",className:"w-fit cursor-pointer border-0 bg-transparent p-0 text-xs text-muted-foreground outline-0 ring-0 hover:text-foreground transition-colors text-left focus:outline-0 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0",onClick:()=>O(!N),children:N?"- Hide initial prompt":"+ Add initial prompt"}),N&&e.jsx(X,{id:"edit-initial-prompt",placeholder:"Custom prompt to send to the agent on start...",rows:4,value:c,onChange:s=>b(s.target.value)})]}),G&&e.jsx("p",{className:"text-sm text-destructive",children:G}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(u,{onClick:V,disabled:!o,children:A?"Saving...":"Save"}),e.jsx(u,{variant:"outline",onClick:r,children:"Start"}),F&&e.jsx("span",{className:"text-sm text-emerald-500",children:"Saved"})]})]})})}function ve({data:i,loading:x,onNavigate:r,onSelect:t}){return!i&&x?e.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:"Loading..."}):i?e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[e.jsx("button",{type:"button",disabled:!i.parent,className:"shrink-0 rounded p-1 text-muted-foreground hover:bg-muted hover:text-foreground disabled:opacity-30 disabled:hover:bg-transparent",onClick:()=>i.parent&&r(i.parent),children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m15 18-6-6 6-6"})})}),e.jsx("span",{className:"font-mono text-xs text-muted-foreground truncate direction-rtl text-left",children:i.current})]}),e.jsxs("div",{className:"max-h-[280px] overflow-y-auto",children:[i.entries.length===0&&e.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:"No subdirectories"}),i.entries.map(d=>e.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm hover:bg-muted transition-colors",onClick:()=>r(d.path),onDoubleClick:()=>d.isGit&&t(d.path),children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:d.isGit?"text-emerald-500":"text-muted-foreground",children:e.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}),e.jsxs("span",{className:"font-mono text-xs truncate",children:[d.name,e.jsx("span",{className:"text-muted-foreground",children:"/"})]}),d.isGit&&e.jsx("span",{className:"ml-auto shrink-0 rounded bg-emerald-500/10 px-1.5 py-0.5 text-[10px] font-medium text-emerald-600 dark:text-emerald-400",children:"git"})]},d.path))]}),e.jsxs("div",{className:"flex items-center justify-between border-t border-border px-3 py-2",children:[e.jsxs("div",{className:"flex flex-col truncate mr-2",children:[e.jsx("span",{className:"font-mono text-[10px] text-muted-foreground truncate",children:i.current}),e.jsx("span",{className:"text-[10px] text-muted-foreground/60",children:"Double-click a git repo to select it"})]}),e.jsx(u,{type:"button",size:"sm",className:"shrink-0 h-7 text-xs",onClick:()=>t(i.current),children:"Select"})]})]}):null}const Z=new Map;function Se(){Z.clear()}function _e(){var $,V;const{id:i}=me(),x=he(),r=i??"",{task:t,loading:d,error:m,refresh:a}=ce(r),[l,p]=n.useState(null),[j,E]=n.useState(!1),[f,I]=n.useState(!1),[c,b]=n.useState("agents"),[N,O]=n.useState(!1),[z]=pe(),v=z.get("agent"),[U,k]=n.useState(null),y=(t==null?void 0:t.user_window_index)??U,T=n.useRef(r),C=n.useRef(l),L=n.useRef(c);C.current=l,L.current=c,n.useEffect(()=>{const o=T.current;if(o!==r){Z.set(o,{activeWindow:C.current,mode:L.current});const s=Z.get(r);p((s==null?void 0:s.activeWindow)??null),b((s==null?void 0:s.mode)??"agents"),k(null),T.current=r}},[r]),n.useEffect(()=>{r&&Z.set(r,{activeWindow:l,mode:c})},[r,l,c]);const w=((V=($=t==null?void 0:t.agents)==null?void 0:$[0])==null?void 0:V.window_index)??null;n.useEffect(()=>{if(v&&(t!=null&&t.agents)){const o=t.agents.find(s=>s.id===v);if(o){p(o.window_index);return}}l===null&&w!==null&&p(w)},[w,l,v,t==null?void 0:t.agents]),n.useEffect(()=>{t&&t.status!=="running"&&(b("agents"),k(null))},[t==null?void 0:t.status]);const q=n.useCallback(async o=>{if(r)try{const s=await h.addAgent(r,o?{prompt:o}:void 0);p(s.window_index),a()}catch(s){console.error("Failed to add agent:",s)}},[r,a]),J=n.useCallback(async o=>{if(r)try{const s=(t==null?void 0:t.agents)||[],g=s.find(_=>_.id===o);if(await h.stopAgent(r,o),g&&g.window_index===l){const _=s.find(Q=>Q.id!==o&&Q.status!=="stopped");_&&p(_.window_index)}a()}catch(s){console.error("Failed to stop agent:",s)}},[r,a,t,l]),M=n.useCallback(async()=>{if(r)try{await h.updateTask(r,{status:"closed"}),a()}catch(o){console.error("Failed to close task:",o)}},[r,a]),A=n.useCallback(async()=>{if(r)try{await h.startTask(r),a()}catch(o){console.error("Failed to start task:",o)}},[r,a]),P=n.useCallback(async()=>{if(r){E(!0);try{await h.updateTask(r,{status:"running"}),a()}catch(o){console.error("Failed to resume task:",o)}finally{E(!1)}}},[r,a]),G=n.useCallback(async()=>{if(c==="editor"){b("agents");return}if(y===null){if(N)return;O(!0);try{const o=await h.createUserTerminal(r);k(o.user_window_index),a()}catch(o){console.error("Failed to create user terminal:",o);return}finally{O(!1)}}b("editor")},[c,y,r,N,a]);if(d)return e.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:"Loading..."});if(!t)return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-4",children:[e.jsx("p",{className:"text-destructive",children:m||"Task not found"}),e.jsx(u,{variant:"outline",onClick:()=>x("/"),children:"Back to Dashboard"})]});const D=t.agents||[],F=t.status==="running",S=t.status==="draft",R=(t.status==="closed"||t.status==="error")&&!!t.worktree,H=t.status==="running"||t.status==="setting_up",W=!!t.tmux_session&&D.length>0&&l!==null&&H;return e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-border px-3 py-2 sm:px-4 sm:py-3",children:[e.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 min-w-0",children:[e.jsxs(u,{variant:"ghost",size:"sm",className:"shrink-0",onClick:()=>x("/"),children:[e.jsx("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","data-icon":"inline-start",children:e.jsx("path",{d:"m15 18-6-6 6-6"})}),e.jsx("span",{className:"hidden sm:inline",children:"Tasks"})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h1",{className:"truncate text-base font-semibold sm:text-lg",children:t.title}),e.jsx(ue,{status:t.derived_status||t.status})]}),e.jsx("p",{className:"hidden max-w-xl truncate text-xs text-muted-foreground sm:block",children:t.description})]})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-1 sm:gap-2",children:[t.pr_url&&e.jsxs("a",{href:t.pr_url,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-blue-400 hover:underline sm:text-sm",children:["PR #",t.pr_number]}),R&&e.jsx(u,{variant:"default",size:"sm",disabled:j,onClick:P,children:j?"...":"Resume"}),F&&!!t.tmux_session&&e.jsxs(u,{variant:c==="editor"?"default":"outline",size:"sm",onClick:G,children:[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",children:[e.jsx("polyline",{points:"16 18 22 12 16 6"}),e.jsx("polyline",{points:"8 6 2 12 8 18"})]}),e.jsx("span",{className:"hidden sm:inline",children:"Editor"})]}),S&&e.jsx(u,{variant:"default",size:"sm",onClick:A,children:"Start"}),F&&e.jsx(u,{variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive",onClick:M,children:"Close"})]})]}),t.error&&e.jsx("div",{className:"border-b border-destructive/30 bg-destructive/10 px-4 py-2 text-sm text-destructive",children:t.error}),e.jsxs("div",{className:"border-b border-border",children:[e.jsxs("button",{onClick:()=>I(o=>!o),className:"flex w-full items-center gap-1.5 px-4 py-1.5 text-xs text-muted-foreground hover:bg-muted/50",children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`transition-transform ${f?"rotate-90":""}`,children:e.jsx("path",{d:"m9 18 6-6-6-6"})}),"Details"]}),f&&e.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-6 gap-y-1 px-4 pb-3 text-xs",children:[t.repo_path&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-muted-foreground",children:"Repo"}),e.jsx("span",{className:"font-mono text-muted-foreground",children:t.repo_path})]}),t.branch&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-muted-foreground",children:"Branch"}),e.jsx("span",{className:"font-mono text-muted-foreground",children:t.branch})]}),t.base_branch&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-muted-foreground",children:"Base"}),e.jsx(xe,{variant:"outline",className:"w-fit text-xs font-normal",children:t.base_branch})]}),t.pr_url&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-muted-foreground",children:"PR"}),e.jsxs("a",{href:t.pr_url,target:"_blank",rel:"noopener noreferrer",className:"text-blue-400 hover:underline",children:["#",t.pr_number," — ",t.pr_url]})]}),t.created_at&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-muted-foreground",children:"Created"}),e.jsx("span",{className:"text-muted-foreground",children:new Date(t.created_at).toLocaleString()})]}),t.updated_at&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-muted-foreground",children:"Updated"}),e.jsx("span",{className:"text-muted-foreground",children:new Date(t.updated_at).toLocaleString()})]})]})]}),W?e.jsxs("div",{className:c==="agents"?"flex min-h-0 flex-1 flex-col":"hidden",children:[e.jsx(fe,{agents:D,activeIndex:l,onSelect:p,onAddAgent:q,onStopAgent:J,canAddAgent:F}),e.jsx("div",{className:"min-h-0 flex-1 overflow-hidden p-1",children:e.jsx(se,{taskId:t.id,windowIndex:l,visible:c==="agents"})})]}):S?e.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e.jsx(je,{task:t,onSaved:a,onStart:A})}):e.jsx("div",{className:c==="agents"?"flex flex-1 flex-col items-center justify-center gap-3 text-muted-foreground":"hidden",children:t.status==="setting_up"?"Setting up terminal...":t.status==="closed"||t.status==="error"?e.jsxs(e.Fragment,{children:[e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-muted-foreground/50",children:[e.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),e.jsx("path",{d:"m7 8 4 4-4 4"}),e.jsx("path",{d:"M13 16h4"})]}),e.jsx("span",{className:"text-sm",children:"Terminal session ended"}),R&&e.jsx(u,{variant:"default",size:"sm",disabled:j,onClick:P,children:j?"Resuming...":"Resume"})]}):"No terminal available"}),y!==null&&c==="editor"&&e.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:e.jsx("div",{className:"min-h-0 flex-1 overflow-hidden p-1",children:e.jsx(se,{taskId:t.id,windowIndex:y})})})]})}export{Se as _resetPerTaskUiState,_e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-black:#000;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--radius-md:calc(var(--radius) * .8);--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-xs:4px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Geist Variable", sans-serif;--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}html{font-family:Geist Variable,sans-serif}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.-top-0\.5{top:calc(var(--spacing) * -.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.-right-0\.5{right:calc(var(--spacing) * -.5)}.right-0{right:calc(var(--spacing) * 0)}.right-2{right:calc(var(--spacing) * 2)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.isolate{isolation:isolate}.z-40{z-index:40}.z-50{z-index:50}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-3{margin-right:calc(var(--spacing) * 3)}.-mb-1{margin-bottom:calc(var(--spacing) * -1)}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.field-sizing-content{field-sizing:content}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[200px\]{max-height:200px}.max-h-\[280px\]{max-height:280px}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-4{width:calc(var(--spacing) * 4)}.w-8{width:calc(var(--spacing) * 8)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-32{width:calc(var(--spacing) * 32)}.w-48{width:calc(var(--spacing) * 48)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[--trigger-width\]{width:--trigger-width}.w-\[200px\]{width:200px}.w-\[420px\]{width:420px}.w-\[500px\]{width:500px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-\[180px\]{max-width:180px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-md{max-width:var(--container-md)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-5{min-width:calc(var(--spacing) * 5)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.origin-\(--transform-origin\){transform-origin:var(--transform-origin)}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-90{rotate:90deg}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize{resize:both}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-y-1{row-gap:calc(var(--spacing) * 1)}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-4xl{border-radius:calc(var(--radius) * 2.6)}.rounded-\[min\(var\(--radius-md\)\,10px\)\]{border-radius:min(var(--radius-md),10px)}.rounded-\[min\(var\(--radius-md\)\,12px\)\]{border-radius:min(var(--radius-md),12px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) * .8)}.rounded-xl{border-radius:calc(var(--radius) * 1.4)}.rounded-t-md{border-top-left-radius:calc(var(--radius) * .8);border-top-right-radius:calc(var(--radius) * .8)}.rounded-t-xl{border-top-left-radius:calc(var(--radius) * 1.4);border-top-right-radius:calc(var(--radius) * 1.4)}.rounded-b-xl{border-bottom-right-radius:calc(var(--radius) * 1.4);border-bottom-left-radius:calc(var(--radius) * 1.4)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-amber-500{border-color:var(--color-amber-500)}.border-amber-500\/30{border-color:#f99c004d}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/30{border-color:color-mix(in oklab,var(--color-amber-500) 30%,transparent)}}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/30{border-color:color-mix(in oklab,var(--color-blue-500) 30%,transparent)}}.border-border{border-color:var(--border)}.border-destructive\/30{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/30{border-color:color-mix(in oklab,var(--destructive) 30%,transparent)}}.border-destructive\/50{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/50{border-color:color-mix(in oklab,var(--destructive) 50%,transparent)}}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/30{border-color:color-mix(in oklab,var(--color-emerald-500) 30%,transparent)}}.border-green-500\/30{border-color:#00c7584d}@supports (color:color-mix(in lab,red,red)){.border-green-500\/30{border-color:color-mix(in oklab,var(--color-green-500) 30%,transparent)}}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-red-500\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.border-red-500\/30{border-color:color-mix(in oklab,var(--color-red-500) 30%,transparent)}}.border-transparent{border-color:#0000}.border-yellow-500\/30{border-color:#edb2004d}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/30{border-color:color-mix(in oklab,var(--color-yellow-500) 30%,transparent)}}.border-zinc-500\/30{border-color:#71717b4d}@supports (color:color-mix(in lab,red,red)){.border-zinc-500\/30{border-color:color-mix(in oklab,var(--color-zinc-500) 30%,transparent)}}.border-l-primary{border-left-color:var(--primary)}.border-l-transparent{border-left-color:#0000}.bg-\[\#09090b\]{background-color:#09090b}.bg-accent{background-color:var(--accent)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-500\/5{background-color:#f99c000d}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/5{background-color:color-mix(in oklab,var(--color-amber-500) 5%,transparent)}}.bg-amber-500\/15{background-color:#f99c0026}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/15{background-color:color-mix(in oklab,var(--color-amber-500) 15%,transparent)}}.bg-amber-500\/20{background-color:#f99c0033}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/20{background-color:color-mix(in oklab,var(--color-amber-500) 20%,transparent)}}.bg-background{background-color:var(--background)}.bg-black\/10{background-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.bg-black\/10{background-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black) 50%,transparent)}}.bg-blue-500\/20{background-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/20{background-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.bg-card{background-color:var(--card)}.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/10{background-color:color-mix(in oklab,var(--destructive) 10%,transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/10{background-color:color-mix(in oklab,var(--color-emerald-500) 10%,transparent)}}.bg-emerald-500\/20{background-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/20{background-color:color-mix(in oklab,var(--color-emerald-500) 20%,transparent)}}.bg-green-400{background-color:var(--color-green-400)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-500\/20{background-color:#00c75833}@supports (color:color-mix(in lab,red,red)){.bg-green-500\/20{background-color:color-mix(in oklab,var(--color-green-500) 20%,transparent)}}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/30{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/30{background-color:color-mix(in oklab,var(--muted-foreground) 30%,transparent)}}.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/30{background-color:color-mix(in oklab,var(--muted) 30%,transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-500\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/20{background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-yellow-500\/20{background-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/20{background-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.bg-zinc-400{background-color:var(--color-zinc-400)}.bg-zinc-500\/20{background-color:#71717b33}@supports (color:color-mix(in lab,red,red)){.bg-zinc-500\/20{background-color:color-mix(in oklab,var(--color-zinc-500) 20%,transparent)}}.bg-clip-padding{background-clip:padding-box}.p-0{padding:calc(var(--spacing) * 0)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.whitespace-nowrap{white-space:nowrap}.text-amber-400{color:var(--color-amber-400)}.text-amber-500{color:var(--color-amber-500)}.text-blue-400{color:var(--color-blue-400)}.text-card-foreground{color:var(--card-foreground)}.text-destructive,.text-destructive\/70{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.text-destructive\/70{color:color-mix(in oklab,var(--destructive) 70%,transparent)}}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-foreground{color:var(--foreground)}.text-green-400{color:var(--color-green-400)}.text-muted-foreground,.text-muted-foreground\/50{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/50{color:color-mix(in oklab,var(--muted-foreground) 50%,transparent)}}.text-muted-foreground\/60{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/60{color:color-mix(in oklab,var(--muted-foreground) 60%,transparent)}}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-400{color:var(--color-red-400)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-yellow-400{color:var(--color-yellow-400)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.underline-offset-4{text-underline-offset:4px}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-foreground\/10{--tw-ring-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-0{outline-style:var(--tw-outline-style);outline-width:0}.brightness-150{--tw-brightness:brightness(150%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.saturate-200{--tw-saturate:saturate(200%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\!running{animation-play-state:running!important}.running{animation-play-state:running}.slide-in-from-right{--tw-enter-translate-x:100%}@media(hover:hover){.group-hover\:inline-flex:is(:where(.group):hover *){display:inline-flex}}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.group-data-\[size\=sm\]\/card\:p-3:is(:where(.group\/card)[data-size=sm] *){padding:calc(var(--spacing) * 3)}.group-data-\[size\=sm\]\/card\:px-3:is(:where(.group\/card)[data-size=sm] *){padding-inline:calc(var(--spacing) * 3)}.group-data-\[size\=sm\]\/card\:text-sm:is(:where(.group\/card)[data-size=sm] *){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-6::file-selector-button{height:calc(var(--spacing) * 6)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}@media(hover:hover){.hover\:bg-accent:hover,.hover\:bg-accent\/50:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/50:hover{background-color:color-mix(in oklab,var(--accent) 50%,transparent)}}.hover\:bg-amber-500\/10:hover{background-color:#f99c001a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-amber-500\/10:hover{background-color:color-mix(in oklab,var(--color-amber-500) 10%,transparent)}}.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.hover\:bg-muted:hover,.hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}.hover\:bg-muted\/60:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/60:hover{background-color:color-mix(in oklab,var(--muted) 60%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.hover\:text-destructive:hover{color:var(--destructive)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-green-400:hover{color:var(--color-green-400)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-yellow-500:hover{color:var(--color-yellow-500)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:outline-0:focus{outline-style:var(--tw-outline-style);outline-width:0}.focus-visible\:border-destructive\/40:focus-visible{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:border-destructive\/40:focus-visible{border-color:color-mix(in oklab,var(--destructive) 40%,transparent)}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-3:focus-visible,.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring:focus-visible,.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.focus-visible\:outline-0:focus-visible{outline-style:var(--tw-outline-style);outline-width:0}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-input\/50:disabled{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.disabled\:bg-input\/50:disabled{background-color:color-mix(in oklab,var(--input) 50%,transparent)}}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-50:disabled{opacity:.5}@media(hover:hover){.disabled\:hover\:bg-transparent:disabled:hover{background-color:#0000}}:where([data-slot=button-group]) .in-data-\[slot\=button-group\]\:rounded-lg{border-radius:var(--radius)}.has-data-\[icon\=inline-end\]\:pr-1\.5:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-end\]\:pr-2:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 2)}.has-data-\[icon\=inline-end\]\:pr-3:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 3)}.has-data-\[icon\=inline-start\]\:pl-1\.5:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-start\]\:pl-2:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 2)}.has-data-\[icon\=inline-start\]\:pl-3:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 3)}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[slot\=card-description\]\:grid-rows-\[auto_auto\]:has([data-slot=card-description]){grid-template-rows:auto auto}.has-data-\[slot\=card-footer\]\:pb-0:has([data-slot=card-footer]){padding-bottom:calc(var(--spacing) * 0)}.has-\[\>img\:first-child\]\:pt-0:has(>img:first-child){padding-top:calc(var(--spacing) * 0)}.aria-expanded\:bg-muted[aria-expanded=true]{background-color:var(--muted)}.aria-expanded\:bg-secondary[aria-expanded=true]{background-color:var(--secondary)}.aria-expanded\:text-foreground[aria-expanded=true]{color:var(--foreground)}.aria-expanded\:text-secondary-foreground[aria-expanded=true]{color:var(--secondary-foreground)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-3[aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=inline-end\]\:slide-in-from-left-2[data-side=inline-end]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=inline-start\]\:slide-in-from-right-2[data-side=inline-start],.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=sm\]\:gap-3[data-size=sm]{gap:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:py-3[data-size=sm]{padding-block:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:has-data-\[slot\=card-footer\]\:pb-0[data-size=sm]:has([data-slot=card-footer]){padding-bottom:calc(var(--spacing) * 0)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.supports-backdrop-filter\:backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}}@media not all and (min-width:1279px){.max-\[1279px\]\:w-\[400px\]{width:400px}}@media not all and (min-width:1023px){.max-\[1023px\]\:w-\[350px\]{width:350px}}@media(min-width:40rem){.sm\:block{display:block}.sm\:inline{display:inline}.sm\:max-w-md{max-width:var(--container-md)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:max-w-xl{max-width:var(--container-xl)}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2{gap:calc(var(--spacing) * 2)}.sm\:gap-3{gap:calc(var(--spacing) * 3)}.sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.sm\:py-3{padding-block:calc(var(--spacing) * 3)}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:48rem){.md\:flex{display:flex}.md\:inline-flex{display:inline-flex}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:bg-destructive\/20:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/20:is(.dark *){background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab,var(--input) 30%,transparent)}}.dark\:text-emerald-400:is(.dark *){color:var(--color-emerald-400)}@media(hover:hover){.dark\:hover\:bg-destructive\/30:is(.dark *):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-destructive\/30:is(.dark *):hover{background-color:color-mix(in oklab,var(--destructive) 30%,transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input) 50%,transparent)}}.dark\:hover\:bg-muted\/50:is(.dark *):hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-muted\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:disabled\:bg-input\/80:is(.dark *):disabled{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:disabled\:bg-input\/80:is(.dark *):disabled{background-color:color-mix(in oklab,var(--input) 80%,transparent)}}.dark\:aria-invalid\:border-destructive\/50:is(.dark *)[aria-invalid=true]{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:border-destructive\/50:is(.dark *)[aria-invalid=true]{border-color:color-mix(in oklab,var(--destructive) 50%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.data-open\:animate-in:where([data-state=open]),.data-open\:animate-in:where([data-open]:not([data-open=false])){animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-open\:fade-in-0:where([data-state=open]),.data-open\:fade-in-0:where([data-open]:not([data-open=false])){--tw-enter-opacity:0}.data-open\:zoom-in-95:where([data-state=open]),.data-open\:zoom-in-95:where([data-open]:not([data-open=false])){--tw-enter-scale:.95}.data-closed\:animate-out:where([data-state=closed]),.data-closed\:animate-out:where([data-closed]:not([data-closed=false])){animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-closed\:fade-out-0:where([data-state=closed]),.data-closed\:fade-out-0:where([data-closed]:not([data-closed=false])){--tw-exit-opacity:0}.data-closed\:zoom-out-95:where([data-state=closed]),.data-closed\:zoom-out-95:where([data-closed]:not([data-closed=false])){--tw-exit-scale:.95}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\.border-b\]\:pb-4.border-b{padding-bottom:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-b\]\:pb-3:is(:where(.group\/card)[data-size=sm] *).border-b{padding-bottom:calc(var(--spacing) * 3)}:is(.\*\:\[a\]\:underline>*):is(a){text-decoration-line:underline}:is(.\*\:\[a\]\:underline-offset-3>*):is(a){text-underline-offset:3px}@media(hover:hover){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.\[a\]\:hover\:bg-muted:is(a):hover{background-color:var(--muted)}.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:color-mix(in oklab,var(--primary) 80%,transparent)}}.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.\[a\]\:hover\:text-muted-foreground:is(a):hover{color:var(--muted-foreground)}:is(.\*\:\[a\]\:hover\:text-foreground>*):is(a):hover{color:var(--foreground)}}:is(.\*\:\[img\:first-child\]\:rounded-t-xl>*):is(img:first-child){border-top-left-radius:calc(var(--radius) * 1.4);border-top-right-radius:calc(var(--radius) * 1.4)}:is(.\*\:\[img\:last-child\]\:rounded-b-xl>*):is(img:last-child){border-bottom-right-radius:calc(var(--radius) * 1.4);border-bottom-left-radius:calc(var(--radius) * 1.4)}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3\!>svg{width:calc(var(--spacing) * 3)!important;height:calc(var(--spacing) * 3)!important}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-wght-normal-Dm3htQBi.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(58% .22 27);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(80.9% .105 251.813);--chart-2:oklch(62.3% .214 259.815);--chart-3:oklch(54.6% .245 262.881);--chart-4:oklch(48.8% .243 264.376);--chart-5:oklch(42.4% .199 265.638);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(87% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(37.1% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(80.9% .105 251.813);--chart-2:oklch(62.3% .214 259.815);--chart-3:oklch(54.6% .245 262.881);--chart-4:oklch(48.8% .243 264.376);--chart-5:oklch(42.4% .199 265.638);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.6% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TerminalView-CguHyqU9.js","assets/vendor-react-BZ8ItZjw.js","assets/vendor-xterm-DvXGiZvM.js","assets/vendor-xterm-DYP7pi_n.css","assets/TaskDetail-2gFAGaIH.js","assets/vendor-router-DRLGqALp.js","assets/vendor-ui-BEZHWVRx.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var wr=Object.defineProperty;var kr=(e,t,r)=>t in e?wr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var jt=(e,t,r)=>kr(e,typeof t!="symbol"?t+"":t,r);import{c as f,d as jr,r as m,j as s,e as Nr}from"./vendor-react-BZ8ItZjw.js";import{u as Sr,a as ct,b as Cr,L as Tr,O as Er,R as _r,c as Je,B as zr}from"./vendor-router-DRLGqALp.js";import{u as Rr,m as Ar,B as Ir,P as Mr,a as Br,b as Lr,c as Pr,d as Dr,D as Or,e as $r,f as Vr,g as Fr,h as Wr,i as Hr,j as Gr,I as Yr}from"./vendor-ui-BEZHWVRx.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function r(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(i){if(i.ep)return;i.ep=!0;const c=r(i);fetch(i.href,c)}})();const Ur="modulepreload",qr=function(e){return"/"+e},Nt={},Wt=function(t,r,o){let i=Promise.resolve();if(r&&r.length>0){let d=function(a){return Promise.all(a.map(p=>Promise.resolve(p).then(n=>({status:"fulfilled",value:n}),n=>({status:"rejected",reason:n}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),l=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));i=d(r.map(a=>{if(a=qr(a),a in Nt)return;Nt[a]=!0;const p=a.endsWith(".css"),n=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${n}`))return;const b=document.createElement("link");if(b.rel=p?"stylesheet":Ur,p||(b.as="script"),b.crossOrigin="",b.href=a,l&&b.setAttribute("nonce",l),document.head.appendChild(b),p)return new Promise((w,N)=>{b.addEventListener("load",w),b.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${a}`)))})}))}function c(d){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=d,window.dispatchEvent(u),!u.defaultPrevented)throw d}return i.then(d=>{for(const u of d||[])u.status==="rejected"&&c(u.reason);return t().catch(c)})};function Kr(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const Xr=e=>{switch(e){case"success":return Qr;case"info":return ts;case"warning":return es;case"error":return rs;default:return null}},Jr=Array(12).fill(0),Zr=({visible:e,className:t})=>f.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},f.createElement("div",{className:"sonner-spinner"},Jr.map((r,o)=>f.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),Qr=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),es=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ts=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),rs=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ss=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),f.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),os=()=>{const[e,t]=f.useState(document.hidden);return f.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let ot=1;class ns{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:o,...i}=t,c=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:ot++,d=this.toasts.find(l=>l.id===c),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),d?this.toasts=this.toasts.map(l=>l.id===c?(this.publish({...l,...t,id:c,title:o}),{...l,...t,id:c,dismissible:u,title:o}):l):this.addToast({title:o,...i,dismissible:u,id:c}),c},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(o=>o({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let o;r.loading!==void 0&&(o=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let c=o!==void 0,d;const u=i.then(async a=>{if(d=["resolve",a],f.isValidElement(a))c=!1,this.create({id:o,type:"default",message:a});else if(is(a)&&!a.ok){c=!1;const n=typeof r.error=="function"?await r.error(`HTTP error! status: ${a.status}`):r.error,b=typeof r.description=="function"?await r.description(`HTTP error! status: ${a.status}`):r.description,N=typeof n=="object"&&!f.isValidElement(n)?n:{message:n};this.create({id:o,type:"error",description:b,...N})}else if(a instanceof Error){c=!1;const n=typeof r.error=="function"?await r.error(a):r.error,b=typeof r.description=="function"?await r.description(a):r.description,N=typeof n=="object"&&!f.isValidElement(n)?n:{message:n};this.create({id:o,type:"error",description:b,...N})}else if(r.success!==void 0){c=!1;const n=typeof r.success=="function"?await r.success(a):r.success,b=typeof r.description=="function"?await r.description(a):r.description,N=typeof n=="object"&&!f.isValidElement(n)?n:{message:n};this.create({id:o,type:"success",description:b,...N})}}).catch(async a=>{if(d=["reject",a],r.error!==void 0){c=!1;const p=typeof r.error=="function"?await r.error(a):r.error,n=typeof r.description=="function"?await r.description(a):r.description,w=typeof p=="object"&&!f.isValidElement(p)?p:{message:p};this.create({id:o,type:"error",description:n,...w})}}).finally(()=>{c&&(this.dismiss(o),o=void 0),r.finally==null||r.finally.call(r)}),l=()=>new Promise((a,p)=>u.then(()=>d[0]==="reject"?p(d[1]):a(d[1])).catch(p));return typeof o!="string"&&typeof o!="number"?{unwrap:l}:Object.assign(o,{unwrap:l})},this.custom=(t,r)=>{const o=(r==null?void 0:r.id)||ot++;return this.create({jsx:t(o),id:o,...r}),o},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const re=new ns,as=(e,t)=>{const r=(t==null?void 0:t.id)||ot++;return re.addToast({title:e,...t,id:r}),r},is=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",ls=as,cs=()=>re.toasts,ds=()=>re.getActiveToasts(),Ie=Object.assign(ls,{success:re.success,info:re.info,warning:re.warning,error:re.error,custom:re.custom,message:re.message,promise:re.promise,dismiss:re.dismiss,loading:re.loading},{getHistory:cs,getToasts:ds});Kr("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Fe(e){return e.label!==void 0}const us=3,ms="24px",fs="16px",St=4e3,ps=356,gs=14,hs=45,xs=200;function be(...e){return e.filter(Boolean).join(" ")}function bs(e){const[t,r]=e.split("-"),o=[];return t&&o.push(t),r&&o.push(r),o}const vs=e=>{var t,r,o,i,c,d,u,l,a;const{invert:p,toast:n,unstyled:b,interacting:w,setHeights:N,visibleToasts:B,heights:_,index:E,toasts:se,expanded:X,removeToast:J,defaultRichColors:Z,closeButton:P,style:Q,cancelButtonStyle:v,actionButtonStyle:D,className:he="",descriptionClassName:ve="",duration:oe,position:F,gap:ue,expandByDefault:W,classNames:S,icons:I,closeButtonAriaLabel:ee="Close toast"}=e,[ne,g]=f.useState(null),[te,xe]=f.useState(null),[k,z]=f.useState(!1),[j,R]=f.useState(!1),[U,A]=f.useState(!1),[M,me]=f.useState(!1),[fe,ae]=f.useState(!1),[y,L]=f.useState(0),[qe,De]=f.useState(0),Ce=f.useRef(n.duration||oe||St),gt=f.useRef(null),ye=f.useRef(null),ur=E===0,mr=E+1<=B,ie=n.type,ze=n.dismissible!==!1,fr=n.className||"",pr=n.descriptionClassName||"",Oe=f.useMemo(()=>_.findIndex(C=>C.toastId===n.id)||0,[_,n.id]),gr=f.useMemo(()=>{var C;return(C=n.closeButton)!=null?C:P},[n.closeButton,P]),ht=f.useMemo(()=>n.duration||oe||St,[n.duration,oe]),Ke=f.useRef(0),Re=f.useRef(0),xt=f.useRef(0),Ae=f.useRef(null),[hr,xr]=F.split("-"),bt=f.useMemo(()=>_.reduce((C,$,H)=>H>=Oe?C:C+$.height,0),[_,Oe]),vt=os(),br=n.invert||p,Xe=ie==="loading";Re.current=f.useMemo(()=>Oe*ue+bt,[Oe,bt]),f.useEffect(()=>{Ce.current=ht},[ht]),f.useEffect(()=>{z(!0)},[]),f.useEffect(()=>{const C=ye.current;if(C){const $=C.getBoundingClientRect().height;return De($),N(H=>[{toastId:n.id,height:$,position:n.position},...H]),()=>N(H=>H.filter(le=>le.toastId!==n.id))}},[N,n.id]),f.useLayoutEffect(()=>{if(!k)return;const C=ye.current,$=C.style.height;C.style.height="auto";const H=C.getBoundingClientRect().height;C.style.height=$,De(H),N(le=>le.find(V=>V.toastId===n.id)?le.map(V=>V.toastId===n.id?{...V,height:H}:V):[{toastId:n.id,height:H,position:n.position},...le])},[k,n.title,n.description,N,n.id,n.jsx,n.action,n.cancel]);const ke=f.useCallback(()=>{R(!0),L(Re.current),N(C=>C.filter($=>$.toastId!==n.id)),setTimeout(()=>{J(n)},xs)},[n,J,N,Re]);f.useEffect(()=>{if(n.promise&&ie==="loading"||n.duration===1/0||n.type==="loading")return;let C;return X||w||vt?(()=>{if(xt.current<Ke.current){const le=new Date().getTime()-Ke.current;Ce.current=Ce.current-le}xt.current=new Date().getTime()})():(()=>{Ce.current!==1/0&&(Ke.current=new Date().getTime(),C=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),ke()},Ce.current))})(),()=>clearTimeout(C)},[X,w,n,ie,vt,ke]),f.useEffect(()=>{n.delete&&(ke(),n.onDismiss==null||n.onDismiss.call(n,n))},[ke,n.delete]);function vr(){var C;if(I!=null&&I.loading){var $;return f.createElement("div",{className:be(S==null?void 0:S.loader,n==null||($=n.classNames)==null?void 0:$.loader,"sonner-loader"),"data-visible":ie==="loading"},I.loading)}return f.createElement(Zr,{className:be(S==null?void 0:S.loader,n==null||(C=n.classNames)==null?void 0:C.loader),visible:ie==="loading"})}const yr=n.icon||(I==null?void 0:I[ie])||Xr(ie);var yt,wt;return f.createElement("li",{tabIndex:0,ref:ye,className:be(he,fr,S==null?void 0:S.toast,n==null||(t=n.classNames)==null?void 0:t.toast,S==null?void 0:S.default,S==null?void 0:S[ie],n==null||(r=n.classNames)==null?void 0:r[ie]),"data-sonner-toast":"","data-rich-colors":(yt=n.richColors)!=null?yt:Z,"data-styled":!(n.jsx||n.unstyled||b),"data-mounted":k,"data-promise":!!n.promise,"data-swiped":fe,"data-removed":j,"data-visible":mr,"data-y-position":hr,"data-x-position":xr,"data-index":E,"data-front":ur,"data-swiping":U,"data-dismissible":ze,"data-type":ie,"data-invert":br,"data-swipe-out":M,"data-swipe-direction":te,"data-expanded":!!(X||W&&k),"data-testid":n.testId,style:{"--index":E,"--toasts-before":E,"--z-index":se.length-E,"--offset":`${j?y:Re.current}px`,"--initial-height":W?"auto":`${qe}px`,...Q,...n.style},onDragEnd:()=>{A(!1),g(null),Ae.current=null},onPointerDown:C=>{C.button!==2&&(Xe||!ze||(gt.current=new Date,L(Re.current),C.target.setPointerCapture(C.pointerId),C.target.tagName!=="BUTTON"&&(A(!0),Ae.current={x:C.clientX,y:C.clientY})))},onPointerUp:()=>{var C,$,H;if(M||!ze)return;Ae.current=null;const le=Number(((C=ye.current)==null?void 0:C.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),$e=Number((($=ye.current)==null?void 0:$.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),V=new Date().getTime()-((H=gt.current)==null?void 0:H.getTime()),de=ne==="x"?le:$e,Ve=Math.abs(de)/V;if(Math.abs(de)>=hs||Ve>.11){L(Re.current),n.onDismiss==null||n.onDismiss.call(n,n),xe(ne==="x"?le>0?"right":"left":$e>0?"down":"up"),ke(),me(!0);return}else{var pe,ge;(pe=ye.current)==null||pe.style.setProperty("--swipe-amount-x","0px"),(ge=ye.current)==null||ge.style.setProperty("--swipe-amount-y","0px")}ae(!1),A(!1),g(null)},onPointerMove:C=>{var $,H,le;if(!Ae.current||!ze||(($=window.getSelection())==null?void 0:$.toString().length)>0)return;const V=C.clientY-Ae.current.y,de=C.clientX-Ae.current.x;var Ve;const pe=(Ve=e.swipeDirections)!=null?Ve:bs(F);!ne&&(Math.abs(de)>1||Math.abs(V)>1)&&g(Math.abs(de)>Math.abs(V)?"x":"y");let ge={x:0,y:0};const kt=Te=>1/(1.5+Math.abs(Te)/20);if(ne==="y"){if(pe.includes("top")||pe.includes("bottom"))if(pe.includes("top")&&V<0||pe.includes("bottom")&&V>0)ge.y=V;else{const Te=V*kt(V);ge.y=Math.abs(Te)<Math.abs(V)?Te:V}}else if(ne==="x"&&(pe.includes("left")||pe.includes("right")))if(pe.includes("left")&&de<0||pe.includes("right")&&de>0)ge.x=de;else{const Te=de*kt(de);ge.x=Math.abs(Te)<Math.abs(de)?Te:de}(Math.abs(ge.x)>0||Math.abs(ge.y)>0)&&ae(!0),(H=ye.current)==null||H.style.setProperty("--swipe-amount-x",`${ge.x}px`),(le=ye.current)==null||le.style.setProperty("--swipe-amount-y",`${ge.y}px`)}},gr&&!n.jsx&&ie!=="loading"?f.createElement("button",{"aria-label":ee,"data-disabled":Xe,"data-close-button":!0,onClick:Xe||!ze?()=>{}:()=>{ke(),n.onDismiss==null||n.onDismiss.call(n,n)},className:be(S==null?void 0:S.closeButton,n==null||(o=n.classNames)==null?void 0:o.closeButton)},(wt=I==null?void 0:I.close)!=null?wt:ss):null,(ie||n.icon||n.promise)&&n.icon!==null&&((I==null?void 0:I[ie])!==null||n.icon)?f.createElement("div",{"data-icon":"",className:be(S==null?void 0:S.icon,n==null||(i=n.classNames)==null?void 0:i.icon)},n.promise||n.type==="loading"&&!n.icon?n.icon||vr():null,n.type!=="loading"?yr:null):null,f.createElement("div",{"data-content":"",className:be(S==null?void 0:S.content,n==null||(c=n.classNames)==null?void 0:c.content)},f.createElement("div",{"data-title":"",className:be(S==null?void 0:S.title,n==null||(d=n.classNames)==null?void 0:d.title)},n.jsx?n.jsx:typeof n.title=="function"?n.title():n.title),n.description?f.createElement("div",{"data-description":"",className:be(ve,pr,S==null?void 0:S.description,n==null||(u=n.classNames)==null?void 0:u.description)},typeof n.description=="function"?n.description():n.description):null),f.isValidElement(n.cancel)?n.cancel:n.cancel&&Fe(n.cancel)?f.createElement("button",{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||v,onClick:C=>{Fe(n.cancel)&&ze&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,C),ke())},className:be(S==null?void 0:S.cancelButton,n==null||(l=n.classNames)==null?void 0:l.cancelButton)},n.cancel.label):null,f.isValidElement(n.action)?n.action:n.action&&Fe(n.action)?f.createElement("button",{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||D,onClick:C=>{Fe(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,C),!C.defaultPrevented&&ke())},className:be(S==null?void 0:S.actionButton,n==null||(a=n.classNames)==null?void 0:a.actionButton)},n.action.label):null)};function Ct(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function ys(e,t){const r={};return[e,t].forEach((o,i)=>{const c=i===1,d=c?"--mobile-offset":"--offset",u=c?fs:ms;function l(a){["top","right","bottom","left"].forEach(p=>{r[`${d}-${p}`]=typeof a=="number"?`${a}px`:a})}typeof o=="number"||typeof o=="string"?l(o):typeof o=="object"?["top","right","bottom","left"].forEach(a=>{o[a]===void 0?r[`${d}-${a}`]=u:r[`${d}-${a}`]=typeof o[a]=="number"?`${o[a]}px`:o[a]}):l(u)}),r}const ws=f.forwardRef(function(t,r){const{id:o,invert:i,position:c="bottom-right",hotkey:d=["altKey","KeyT"],expand:u,closeButton:l,className:a,offset:p,mobileOffset:n,theme:b="light",richColors:w,duration:N,style:B,visibleToasts:_=us,toastOptions:E,dir:se=Ct(),gap:X=gs,icons:J,containerAriaLabel:Z="Notifications"}=t,[P,Q]=f.useState([]),v=f.useMemo(()=>o?P.filter(k=>k.toasterId===o):P.filter(k=>!k.toasterId),[P,o]),D=f.useMemo(()=>Array.from(new Set([c].concat(v.filter(k=>k.position).map(k=>k.position)))),[v,c]),[he,ve]=f.useState([]),[oe,F]=f.useState(!1),[ue,W]=f.useState(!1),[S,I]=f.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ee=f.useRef(null),ne=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=f.useRef(null),te=f.useRef(!1),xe=f.useCallback(k=>{Q(z=>{var j;return(j=z.find(R=>R.id===k.id))!=null&&j.delete||re.dismiss(k.id),z.filter(({id:R})=>R!==k.id)})},[]);return f.useEffect(()=>re.subscribe(k=>{if(k.dismiss){requestAnimationFrame(()=>{Q(z=>z.map(j=>j.id===k.id?{...j,delete:!0}:j))});return}setTimeout(()=>{jr.flushSync(()=>{Q(z=>{const j=z.findIndex(R=>R.id===k.id);return j!==-1?[...z.slice(0,j),{...z[j],...k},...z.slice(j+1)]:[k,...z]})})})}),[P]),f.useEffect(()=>{if(b!=="system"){I(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?I("dark"):I("light")),typeof window>"u")return;const k=window.matchMedia("(prefers-color-scheme: dark)");try{k.addEventListener("change",({matches:z})=>{I(z?"dark":"light")})}catch{k.addListener(({matches:j})=>{try{I(j?"dark":"light")}catch(R){console.error(R)}})}},[b]),f.useEffect(()=>{P.length<=1&&F(!1)},[P]),f.useEffect(()=>{const k=z=>{var j;if(d.every(A=>z[A]||z.code===A)){var U;F(!0),(U=ee.current)==null||U.focus()}z.code==="Escape"&&(document.activeElement===ee.current||(j=ee.current)!=null&&j.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[d]),f.useEffect(()=>{if(ee.current)return()=>{g.current&&(g.current.focus({preventScroll:!0}),g.current=null,te.current=!1)}},[ee.current]),f.createElement("section",{ref:r,"aria-label":`${Z} ${ne}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},D.map((k,z)=>{var j;const[R,U]=k.split("-");return v.length?f.createElement("ol",{key:k,dir:se==="auto"?Ct():se,tabIndex:-1,ref:ee,className:a,"data-sonner-toaster":!0,"data-sonner-theme":S,"data-y-position":R,"data-x-position":U,style:{"--front-toast-height":`${((j=he[0])==null?void 0:j.height)||0}px`,"--width":`${ps}px`,"--gap":`${X}px`,...B,...ys(p,n)},onBlur:A=>{te.current&&!A.currentTarget.contains(A.relatedTarget)&&(te.current=!1,g.current&&(g.current.focus({preventScroll:!0}),g.current=null))},onFocus:A=>{A.target instanceof HTMLElement&&A.target.dataset.dismissible==="false"||te.current||(te.current=!0,g.current=A.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{ue||F(!1)},onDragEnd:()=>F(!1),onPointerDown:A=>{A.target instanceof HTMLElement&&A.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},v.filter(A=>!A.position&&z===0||A.position===k).map((A,M)=>{var me,fe;return f.createElement(vs,{key:A.id,icons:J,index:M,toast:A,defaultRichColors:w,duration:(me=E==null?void 0:E.duration)!=null?me:N,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:i,visibleToasts:_,closeButton:(fe=E==null?void 0:E.closeButton)!=null?fe:l,interacting:ue,position:k,style:E==null?void 0:E.style,unstyled:E==null?void 0:E.unstyled,classNames:E==null?void 0:E.classNames,cancelButtonStyle:E==null?void 0:E.cancelButtonStyle,actionButtonStyle:E==null?void 0:E.actionButtonStyle,closeButtonAriaLabel:E==null?void 0:E.closeButtonAriaLabel,removeToast:xe,toasts:v.filter(ae=>ae.position==A.position),heights:he.filter(ae=>ae.position==A.position),setHeights:ve,expandByDefault:u,gap:X,expanded:oe,swipeDirections:t.swipeDirections})})):null}))}),ks="/api";async function G(e,t){const r={};t!=null&&t.body&&(r["Content-Type"]="application/json");const o=await fetch(`${ks}${e}`,{headers:r,...t});if(!o.ok){const i=await o.json().catch(()=>({error:o.statusText}));throw new Error(i.error||o.statusText)}if(o.status!==204)return o.json()}const ce={browse:e=>G(`/browse${e?`?path=${encodeURIComponent(e)}`:""}`),recentRepos:()=>G("/recent-repos"),listBranches:e=>G(`/branches?repo_path=${encodeURIComponent(e)}`),getDefaultBranch:e=>G(`/default-branch?repo_path=${encodeURIComponent(e)}`),listTasks:()=>G("/tasks"),getTask:e=>G(`/tasks/${e}`),createTask:e=>G("/tasks",{method:"POST",body:JSON.stringify(e)}),updateTask:(e,t)=>G(`/tasks/${e}`,{method:"PATCH",body:JSON.stringify(t)}),startTask:e=>G(`/tasks/${e}/start`,{method:"POST"}),deleteTask:e=>G(`/tasks/${e}`,{method:"DELETE"}),addAgent:(e,t)=>G(`/tasks/${e}/agents`,{method:"POST",body:JSON.stringify(t||{})}),stopAgent:(e,t)=>G(`/tasks/${e}/agents/${t}`,{method:"DELETE"}),createUserTerminal:e=>G(`/tasks/${e}/user-terminal`,{method:"POST"}),orchestratorStatus:()=>G("/orchestrator/status"),orchestratorStart:()=>G("/orchestrator/start",{method:"POST"}),orchestratorStop:()=>G("/orchestrator/stop",{method:"POST"})},js=1e4,dt=1e3;let Y=null,Ge=null,Le=dt;const Pe=new Set;function Ns(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws/events`}function Ht(){(Y==null?void 0:Y.readyState)===WebSocket.OPEN||(Y==null?void 0:Y.readyState)===WebSocket.CONNECTING||(Y=new WebSocket(Ns()),Y.onopen=()=>{Le=dt},Y.onmessage=()=>{for(const e of Pe)e()},Y.onclose=e=>{Y=null,e.code!==1e3&&Pe.size>0&&(Ge=setTimeout(()=>{Le=Math.min(Le*2,js),Ht()},Le))},Y.onerror=()=>{})}function ut(e){return Pe.add(e),Ht(),()=>{Pe.delete(e),Pe.size===0&&(Ge&&(clearTimeout(Ge),Ge=null),Y==null||Y.close(1e3),Y=null,Le=dt)}}function Ss(){const[e,t]=m.useState(!1),[r,o]=m.useState(!0),[i,c]=m.useState(null),d=m.useCallback(async()=>{try{const a=await ce.orchestratorStatus();t(a.running),c(null)}catch(a){c(a.message)}finally{o(!1)}},[]);m.useEffect(()=>(d(),ut(d)),[d]);const u=m.useCallback(async()=>{try{await ce.orchestratorStart(),t(!0)}catch(a){c(a.message)}},[]),l=m.useCallback(async()=>{try{await ce.orchestratorStop(),t(!1)}catch(a){c(a.message)}},[]);return{running:e,loading:r,error:i,start:u,stop:l,refresh:d}}function mt(){const[e,t]=m.useState([]),[r,o]=m.useState(!0),[i,c]=m.useState(null),d=m.useRef(""),u=m.useCallback(async()=>{try{const l=await ce.listTasks(),a=JSON.stringify(l);a!==d.current&&(d.current=a,t(l)),c(null)}catch(l){c(l.message)}finally{o(!1)}},[]);return m.useEffect(()=>(u(),ut(u)),[u]),{tasks:e,loading:r,error:i,refresh:u}}function Tn(e){const[t,r]=m.useState(null),[o,i]=m.useState(!0),[c,d]=m.useState(null),u=m.useRef(""),l=m.useCallback(async()=>{try{const a=await ce.getTask(e),p=JSON.stringify(a);p!==u.current&&(u.current=p,r(a)),d(null)}catch(a){d(a.message)}finally{i(!1)}},[e]);return m.useEffect(()=>(l(),ut(l)),[l]),{task:t,loading:o,error:c,refresh:l}}const Ze="octomux",Qe="/logo.png";function Cs(e){return e.filter(t=>{const r=t.derived_status??t.status;return r==="error"||r==="needs_attention"}).length}function Ts(e){const r=document.createElement("canvas");r.width=32,r.height=32;const o=r.getContext("2d");o.drawImage(e,0,0,32,32);const i=7,c=32-i-1,d=i+1;return o.beginPath(),o.arc(c,d,i,0,2*Math.PI),o.fillStyle="#ef4444",o.fill(),o.strokeStyle="#1a1a2e",o.lineWidth=2,o.stroke(),r.toDataURL("image/png")}function et(e){let t=document.querySelector('link[rel="icon"]');t||(t=document.createElement("link"),t.rel="icon",document.head.appendChild(t)),t.href!==e&&(t.href=e)}function Es(e){const t=m.useRef(null);m.useEffect(()=>{const r=new Image;r.onload=()=>{t.current=Ts(r)},r.src=Qe},[]),m.useEffect(()=>{const r=Cs(e);document.title=r>0?`(${r}) ${Ze}`:Ze,r>0&&t.current?et(t.current):et(Qe)},[e]),m.useEffect(()=>()=>{document.title=Ze,et(Qe)},[])}const Gt="octomux-notifications-enabled";function Yt(){return localStorage.getItem(Gt)!=="false"}function _s(e){localStorage.setItem(Gt,String(e))}function tt(e,t){var o;const r=((o=t.label.match(/\d+/))==null?void 0:o[0])??"1";return`${e.title} #${r}`}function zs(){const{pathname:e}=Sr(),t=e.match(/^\/tasks\/([^/]+)/);return t?t[1]:null}function Rs(e,t){const r=m.useRef(new Map),o=m.useRef(new Set),i=m.useRef(!1),c=zs();m.useEffect(()=>{var u,l;if(!Yt()||e.length===0)return;const d=new Map;for(const a of e){if(!a.agents)continue;const p=a.id===c;for(const n of a.agents){if(d.set(n.id,{status:n.status,hookActivity:n.hook_activity}),!i.current)continue;const b=r.current.get(n.id);if(b&&!p){if(b.status!=="stopped"&&n.status==="stopped"){const w=a.id;Ie(tt(a,n),{description:"Agent stopped",action:{label:"View",onClick:()=>t(`/tasks/${w}`)}})}if(b.hookActivity==="active"&&n.hook_activity==="idle"){const w=a.id;Ie.success(tt(a,n),{description:"Agent finished",action:{label:"View",onClick:()=>t(`/tasks/${w}`)}})}}}if(i.current&&!p&&a.pending_prompts){for(const n of a.pending_prompts)if(n.status==="pending"&&!o.current.has(n.id)){o.current.add(n.id);const b=a.id,w=n.agent_id,N=(u=a.agents)==null?void 0:u.find(_=>_.id===n.agent_id),B=N?tt(a,N):`${a.title} #?`;Ie.warning(B,{description:`Needs permission: ${n.tool_name}`,action:{label:"View",onClick:()=>t(`/tasks/${b}?agent=${w}`)}})}}}if(i.current){for(const a of e)if(a.id!==c&&(a.status==="closed"||a.status==="error")&&((l=a.agents)==null?void 0:l.some(n=>{const b=r.current.get(n.id);return b&&b.status!=="stopped"}))){const n=a.id;a.status==="error"?Ie.error(a.title,{description:"Task errored",action:{label:"View",onClick:()=>t(`/tasks/${n}`)}}):Ie.success(a.title,{description:"Task closed",action:{label:"View",onClick:()=>t(`/tasks/${n}`)}})}}if(r.current=d,!i.current){for(const a of e)if(a.pending_prompts)for(const p of a.pending_prompts)o.current.add(p.id);i.current=!0}},[e,t,c])}const Tt="octomux-repo-filter",Et="octomux-status-filter",_t=["setting_up","running","error"];function As(e){const[t,r]=m.useState({status:localStorage.getItem(Et)??"open",repo:localStorage.getItem(Tt)??""}),o=m.useMemo(()=>[...new Set(e.map(l=>l.repo_path))].sort((l,a)=>{const p=l.split("/").pop()||l,n=a.split("/").pop()||a;return p.localeCompare(n)}),[e]),i=m.useMemo(()=>{const u=t.repo?e.filter(l=>l.repo_path===t.repo):e;return{open:u.filter(l=>_t.includes(l.status)).length,closed:u.filter(l=>l.status==="closed").length,backlog:u.filter(l=>l.status==="draft").length}},[e,t.repo]),c=m.useMemo(()=>{const u=e.filter(l=>{let a;t.status==="open"?a=_t.includes(l.status):t.status==="backlog"?a=l.status==="draft":a=l.status==="closed";const p=!t.repo||l.repo_path===t.repo;return a&&p});if(t.status==="open"){const l={needs_attention:0,working:1,running:2,setting_up:3,error:4,draft:5};u.sort((a,p)=>{const n=l[a.derived_status??a.status]??9,b=l[p.derived_status??p.status]??9;return n!==b?n-b:p.created_at.localeCompare(a.created_at)})}return u},[e,t]);function d(u,l){u==="repo"?localStorage.setItem(Tt,l):u==="status"&&localStorage.setItem(Et,l),r(a=>({...a,[u]:l}))}return{filters:t,setFilter:d,filtered:c,counts:i,repos:o}}function Ut(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Ut(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function qt(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Ut(e))&&(o&&(o+=" "),o+=t);return o}const Is=(e,t)=>{const r=new Array(e.length+t.length);for(let o=0;o<e.length;o++)r[o]=e[o];for(let o=0;o<t.length;o++)r[e.length+o]=t[o];return r},Ms=(e,t)=>({classGroupId:e,validator:t}),Kt=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ye="-",zt=[],Bs="arbitrary..",Ls=e=>{const t=Ds(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return Ps(d);const u=d.split(Ye),l=u[0]===""&&u.length>1?1:0;return Xt(u,l,t)},getConflictingClassGroupIds:(d,u)=>{if(u){const l=o[d],a=r[d];return l?a?Is(a,l):l:a||zt}return r[d]||zt}}},Xt=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],c=r.nextPart.get(i);if(c){const a=Xt(e,t+1,c);if(a)return a}const d=r.validators;if(d===null)return;const u=t===0?e.join(Ye):e.slice(t).join(Ye),l=d.length;for(let a=0;a<l;a++){const p=d[a];if(p.validator(u))return p.classGroupId}},Ps=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),o=t.slice(0,r);return o?Bs+o:void 0})(),Ds=e=>{const{theme:t,classGroups:r}=e;return Os(r,t)},Os=(e,t)=>{const r=Kt();for(const o in e){const i=e[o];ft(i,r,o,t)}return r},ft=(e,t,r,o)=>{const i=e.length;for(let c=0;c<i;c++){const d=e[c];$s(d,t,r,o)}},$s=(e,t,r,o)=>{if(typeof e=="string"){Vs(e,t,r);return}if(typeof e=="function"){Fs(e,t,r,o);return}Ws(e,t,r,o)},Vs=(e,t,r)=>{const o=e===""?t:Jt(t,e);o.classGroupId=r},Fs=(e,t,r,o)=>{if(Hs(e)){ft(e(o),t,r,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Ms(r,e))},Ws=(e,t,r,o)=>{const i=Object.entries(e),c=i.length;for(let d=0;d<c;d++){const[u,l]=i[d];ft(l,Jt(t,u),r,o)}},Jt=(e,t)=>{let r=e;const o=t.split(Ye),i=o.length;for(let c=0;c<i;c++){const d=o[c];let u=r.nextPart.get(d);u||(u=Kt(),r.nextPart.set(d,u)),r=u}return r},Hs=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Gs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null);const i=(c,d)=>{r[c]=d,t++,t>e&&(t=0,o=r,r=Object.create(null))};return{get(c){let d=r[c];if(d!==void 0)return d;if((d=o[c])!==void 0)return i(c,d),d},set(c,d){c in r?r[c]=d:i(c,d)}}},nt="!",Rt=":",Ys=[],At=(e,t,r,o,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:i}),Us=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=i=>{const c=[];let d=0,u=0,l=0,a;const p=i.length;for(let B=0;B<p;B++){const _=i[B];if(d===0&&u===0){if(_===Rt){c.push(i.slice(l,B)),l=B+1;continue}if(_==="/"){a=B;continue}}_==="["?d++:_==="]"?d--:_==="("?u++:_===")"&&u--}const n=c.length===0?i:i.slice(l);let b=n,w=!1;n.endsWith(nt)?(b=n.slice(0,-1),w=!0):n.startsWith(nt)&&(b=n.slice(1),w=!0);const N=a&&a>l?a-l:void 0;return At(c,w,b,N)};if(t){const i=t+Rt,c=o;o=d=>d.startsWith(i)?c(d.slice(i.length)):At(Ys,!1,d,void 0,!0)}if(r){const i=o;o=c=>r({className:c,parseClassName:i})}return o},qs=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,o)=>{t.set(r,1e6+o)}),r=>{const o=[];let i=[];for(let c=0;c<r.length;c++){const d=r[c],u=d[0]==="[",l=t.has(d);u||l?(i.length>0&&(i.sort(),o.push(...i),i=[]),o.push(d)):i.push(d)}return i.length>0&&(i.sort(),o.push(...i)),o}},Ks=e=>({cache:Gs(e.cacheSize),parseClassName:Us(e),sortModifiers:qs(e),...Ls(e)}),Xs=/\s+/,Js=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:c}=t,d=[],u=e.trim().split(Xs);let l="";for(let a=u.length-1;a>=0;a-=1){const p=u[a],{isExternal:n,modifiers:b,hasImportantModifier:w,baseClassName:N,maybePostfixModifierPosition:B}=r(p);if(n){l=p+(l.length>0?" "+l:l);continue}let _=!!B,E=o(_?N.substring(0,B):N);if(!E){if(!_){l=p+(l.length>0?" "+l:l);continue}if(E=o(N),!E){l=p+(l.length>0?" "+l:l);continue}_=!1}const se=b.length===0?"":b.length===1?b[0]:c(b).join(":"),X=w?se+nt:se,J=X+E;if(d.indexOf(J)>-1)continue;d.push(J);const Z=i(E,_);for(let P=0;P<Z.length;++P){const Q=Z[P];d.push(X+Q)}l=p+(l.length>0?" "+l:l)}return l},Zs=(...e)=>{let t=0,r,o,i="";for(;t<e.length;)(r=e[t++])&&(o=Zt(r))&&(i&&(i+=" "),i+=o);return i},Zt=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Zt(e[o]))&&(r&&(r+=" "),r+=t);return r},Qs=(e,...t)=>{let r,o,i,c;const d=l=>{const a=t.reduce((p,n)=>n(p),e());return r=Ks(a),o=r.cache.get,i=r.cache.set,c=u,u(l)},u=l=>{const a=o(l);if(a)return a;const p=Js(l,r);return i(l,p),p};return c=d,(...l)=>c(Zs(...l))},eo=[],O=e=>{const t=r=>r[e]||eo;return t.isThemeGetter=!0,t},Qt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,er=/^\((?:(\w[\w-]*):)?(.+)\)$/i,to=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ro=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,so=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,no=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ao=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,je=e=>to.test(e),T=e=>!!e&&!Number.isNaN(Number(e)),Ne=e=>!!e&&Number.isInteger(Number(e)),rt=e=>e.endsWith("%")&&T(e.slice(0,-1)),we=e=>ro.test(e),tr=()=>!0,io=e=>so.test(e)&&!oo.test(e),pt=()=>!1,lo=e=>no.test(e),co=e=>ao.test(e),uo=e=>!h(e)&&!x(e),mo=e=>Se(e,or,pt),h=e=>Qt.test(e),Ee=e=>Se(e,nr,io),It=e=>Se(e,yo,T),fo=e=>Se(e,ir,tr),po=e=>Se(e,ar,pt),Mt=e=>Se(e,rr,pt),go=e=>Se(e,sr,co),We=e=>Se(e,lr,lo),x=e=>er.test(e),Me=e=>_e(e,nr),ho=e=>_e(e,ar),Bt=e=>_e(e,rr),xo=e=>_e(e,or),bo=e=>_e(e,sr),He=e=>_e(e,lr,!0),vo=e=>_e(e,ir,!0),Se=(e,t,r)=>{const o=Qt.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},_e=(e,t,r=!1)=>{const o=er.exec(e);return o?o[1]?t(o[1]):r:!1},rr=e=>e==="position"||e==="percentage",sr=e=>e==="image"||e==="url",or=e=>e==="length"||e==="size"||e==="bg-size",nr=e=>e==="length",yo=e=>e==="number",ar=e=>e==="family-name",ir=e=>e==="number"||e==="weight",lr=e=>e==="shadow",wo=()=>{const e=O("color"),t=O("font"),r=O("text"),o=O("font-weight"),i=O("tracking"),c=O("leading"),d=O("breakpoint"),u=O("container"),l=O("spacing"),a=O("radius"),p=O("shadow"),n=O("inset-shadow"),b=O("text-shadow"),w=O("drop-shadow"),N=O("blur"),B=O("perspective"),_=O("aspect"),E=O("ease"),se=O("animate"),X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...J(),x,h],P=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],v=()=>[x,h,l],D=()=>[je,"full","auto",...v()],he=()=>[Ne,"none","subgrid",x,h],ve=()=>["auto",{span:["full",Ne,x,h]},Ne,x,h],oe=()=>[Ne,"auto",x,h],F=()=>["auto","min","max","fr",x,h],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],S=()=>["auto",...v()],I=()=>[je,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...v()],ee=()=>[je,"screen","full","dvw","lvw","svw","min","max","fit",...v()],ne=()=>[je,"screen","full","lh","dvh","lvh","svh","min","max","fit",...v()],g=()=>[e,x,h],te=()=>[...J(),Bt,Mt,{position:[x,h]}],xe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",xo,mo,{size:[x,h]}],z=()=>[rt,Me,Ee],j=()=>["","none","full",a,x,h],R=()=>["",T,Me,Ee],U=()=>["solid","dashed","dotted","double"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>[T,rt,Bt,Mt],me=()=>["","none",N,x,h],fe=()=>["none",T,x,h],ae=()=>["none",T,x,h],y=()=>[T,x,h],L=()=>[je,"full",...v()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[we],breakpoint:[we],color:[tr],container:[we],"drop-shadow":[we],ease:["in","out","in-out"],font:[uo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[we],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[we],shadow:[we],spacing:["px",T],text:[we],"text-shadow":[we],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",je,h,x,_]}],container:["container"],columns:[{columns:[T,h,x,u]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Z()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Ne,"auto",x,h]}],basis:[{basis:[je,"full","auto",u,...v()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[T,je,"auto","initial","none",h]}],grow:[{grow:["",T,x,h]}],shrink:[{shrink:["",T,x,h]}],order:[{order:[Ne,"first","last","none",x,h]}],"grid-cols":[{"grid-cols":he()}],"col-start-end":[{col:ve()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":he()}],"row-start-end":[{row:ve()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:v()}],"gap-x":[{"gap-x":v()}],"gap-y":[{"gap-y":v()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:v()}],px:[{px:v()}],py:[{py:v()}],ps:[{ps:v()}],pe:[{pe:v()}],pbs:[{pbs:v()}],pbe:[{pbe:v()}],pt:[{pt:v()}],pr:[{pr:v()}],pb:[{pb:v()}],pl:[{pl:v()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mbs:[{mbs:S()}],mbe:[{mbe:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":v()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":v()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...ne()]}],"min-block-size":[{"min-block":["auto",...ne()]}],"max-block-size":[{"max-block":["none",...ne()]}],w:[{w:[u,"screen",...I()]}],"min-w":[{"min-w":[u,"screen","none",...I()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[d]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",r,Me,Ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,vo,fo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rt,h]}],"font-family":[{font:[ho,po,t]}],"font-features":[{"font-features":[h]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,x,h]}],"line-clamp":[{"line-clamp":[T,"none",x,It]}],leading:[{leading:[c,...v()]}],"list-image":[{"list-image":["none",x,h]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",x,h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:g()}],"text-color":[{text:g()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:[T,"from-font","auto",x,Ee]}],"text-decoration-color":[{decoration:g()}],"underline-offset":[{"underline-offset":[T,"auto",x,h]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x,h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",x,h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:xe()}],"bg-size":[{bg:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ne,x,h],radial:["",x,h],conic:[Ne,x,h]},bo,go]}],"bg-color":[{bg:g()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:g()}],"gradient-via":[{via:g()}],"gradient-to":[{to:g()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...U(),"hidden","none"]}],"divide-style":[{divide:[...U(),"hidden","none"]}],"border-color":[{border:g()}],"border-color-x":[{"border-x":g()}],"border-color-y":[{"border-y":g()}],"border-color-s":[{"border-s":g()}],"border-color-e":[{"border-e":g()}],"border-color-bs":[{"border-bs":g()}],"border-color-be":[{"border-be":g()}],"border-color-t":[{"border-t":g()}],"border-color-r":[{"border-r":g()}],"border-color-b":[{"border-b":g()}],"border-color-l":[{"border-l":g()}],"divide-color":[{divide:g()}],"outline-style":[{outline:[...U(),"none","hidden"]}],"outline-offset":[{"outline-offset":[T,x,h]}],"outline-w":[{outline:["",T,Me,Ee]}],"outline-color":[{outline:g()}],shadow:[{shadow:["","none",p,He,We]}],"shadow-color":[{shadow:g()}],"inset-shadow":[{"inset-shadow":["none",n,He,We]}],"inset-shadow-color":[{"inset-shadow":g()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:g()}],"ring-offset-w":[{"ring-offset":[T,Ee]}],"ring-offset-color":[{"ring-offset":g()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":g()}],"text-shadow":[{"text-shadow":["none",b,He,We]}],"text-shadow-color":[{"text-shadow":g()}],opacity:[{opacity:[T,x,h]}],"mix-blend":[{"mix-blend":[...A(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":A()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[T]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":g()}],"mask-image-linear-to-color":[{"mask-linear-to":g()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":g()}],"mask-image-t-to-color":[{"mask-t-to":g()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":g()}],"mask-image-r-to-color":[{"mask-r-to":g()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":g()}],"mask-image-b-to-color":[{"mask-b-to":g()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":g()}],"mask-image-l-to-color":[{"mask-l-to":g()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":g()}],"mask-image-x-to-color":[{"mask-x-to":g()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":g()}],"mask-image-y-to-color":[{"mask-y-to":g()}],"mask-image-radial":[{"mask-radial":[x,h]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":g()}],"mask-image-radial-to-color":[{"mask-radial-to":g()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":J()}],"mask-image-conic-pos":[{"mask-conic":[T]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":g()}],"mask-image-conic-to-color":[{"mask-conic-to":g()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:xe()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",x,h]}],filter:[{filter:["","none",x,h]}],blur:[{blur:me()}],brightness:[{brightness:[T,x,h]}],contrast:[{contrast:[T,x,h]}],"drop-shadow":[{"drop-shadow":["","none",w,He,We]}],"drop-shadow-color":[{"drop-shadow":g()}],grayscale:[{grayscale:["",T,x,h]}],"hue-rotate":[{"hue-rotate":[T,x,h]}],invert:[{invert:["",T,x,h]}],saturate:[{saturate:[T,x,h]}],sepia:[{sepia:["",T,x,h]}],"backdrop-filter":[{"backdrop-filter":["","none",x,h]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[T,x,h]}],"backdrop-contrast":[{"backdrop-contrast":[T,x,h]}],"backdrop-grayscale":[{"backdrop-grayscale":["",T,x,h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[T,x,h]}],"backdrop-invert":[{"backdrop-invert":["",T,x,h]}],"backdrop-opacity":[{"backdrop-opacity":[T,x,h]}],"backdrop-saturate":[{"backdrop-saturate":[T,x,h]}],"backdrop-sepia":[{"backdrop-sepia":["",T,x,h]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":v()}],"border-spacing-x":[{"border-spacing-x":v()}],"border-spacing-y":[{"border-spacing-y":v()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",x,h]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[T,"initial",x,h]}],ease:[{ease:["linear","initial",E,x,h]}],delay:[{delay:[T,x,h]}],animate:[{animate:["none",se,x,h]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[B,x,h]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:y()}],"skew-x":[{"skew-x":y()}],"skew-y":[{"skew-y":y()}],transform:[{transform:[x,h,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:L()}],"translate-x":[{"translate-x":L()}],"translate-y":[{"translate-y":L()}],"translate-z":[{"translate-z":L()}],"translate-none":["translate-none"],accent:[{accent:g()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:g()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",x,h]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mbs":[{"scroll-mbs":v()}],"scroll-mbe":[{"scroll-mbe":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pbs":[{"scroll-pbs":v()}],"scroll-pbe":[{"scroll-pbe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",x,h]}],fill:[{fill:["none",...g()]}],"stroke-w":[{stroke:[T,Me,Ee,It]}],stroke:[{stroke:["none",...g()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ko=Qs(wo);function K(...e){return ko(qt(e))}function jo({className:e,size:t="default",...r}){return s.jsx("div",{"data-slot":"card","data-size":t,className:K("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...r})}function No({className:e,...t}){return s.jsx("div",{"data-slot":"card-header",className:K("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...t})}function So({className:e,...t}){return s.jsx("div",{"data-slot":"card-title",className:K("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...t})}function Co({className:e,...t}){return s.jsx("div",{"data-slot":"card-description",className:K("text-sm text-muted-foreground",e),...t})}function To({className:e,...t}){return s.jsx("div",{"data-slot":"card-content",className:K("px-4 group-data-[size=sm]/card:px-3",e),...t})}const Lt=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Pt=qt,cr=(e,t)=>r=>{var o;if((t==null?void 0:t.variants)==null)return Pt(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:c}=t,d=Object.keys(i).map(a=>{const p=r==null?void 0:r[a],n=c==null?void 0:c[a];if(p===null)return null;const b=Lt(p)||Lt(n);return i[a][b]}),u=r&&Object.entries(r).reduce((a,p)=>{let[n,b]=p;return b===void 0||(a[n]=b),a},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((a,p)=>{let{class:n,className:b,...w}=p;return Object.entries(w).every(N=>{let[B,_]=N;return Array.isArray(_)?_.includes({...c,...u}[B]):{...c,...u}[B]===_})?[...a,n,b]:a},[]);return Pt(e,d,l,r==null?void 0:r.class,r==null?void 0:r.className)},Eo=cr("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function Ue({className:e,variant:t="default",render:r,...o}){return Rr({defaultTagName:"span",props:Ar({className:K(Eo({variant:t}),e)},o),render:r,state:{slot:"badge",variant:t}})}const _o=cr("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function q({className:e,variant:t="default",size:r="default",...o}){return s.jsx(Ir,{"data-slot":"button",className:K(_o({variant:t,size:r,className:e})),...o})}const zo={draft:{label:"Draft",className:"bg-zinc-500/20 text-zinc-400 border-zinc-500/30"},setting_up:{label:"Setting up",className:"bg-yellow-500/20 text-yellow-400 border-yellow-500/30"},running:{label:"Running",className:"bg-green-500/20 text-green-400 border-green-500/30"},closed:{label:"Closed",className:"bg-blue-500/20 text-blue-400 border-blue-500/30"},error:{label:"Error",className:"bg-red-500/20 text-red-400 border-red-500/30"},working:{label:"Working",className:"bg-green-500/20 text-green-400 border-green-500/30"},needs_attention:{label:"Needs attention",className:"bg-amber-500/20 text-amber-400 border-amber-500/30"},done:{label:"Done",className:"bg-emerald-500/20 text-emerald-400 border-emerald-500/30"}},Ro={label:"Unknown",className:"bg-zinc-500/20 text-zinc-400 border-zinc-500/30"},Ao=m.memo(function({status:t}){const r=zo[t]||Ro;return s.jsxs(Ue,{variant:"outline",className:r.className,children:[(t==="running"||t==="working")&&s.jsx("span",{className:"mr-1 inline-block h-1.5 w-1.5 animate-pulse rounded-full bg-green-400"}),r.label]})}),Dt={active:{dot:"bg-green-500",label:"active"},idle:{dot:"bg-zinc-400",label:"idle"},waiting:{dot:"bg-amber-500",label:"waiting"}},Io=m.memo(function({activity:t}){const r=Dt[t]||Dt.active;return s.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-zinc-400",children:[s.jsx("span",{className:`inline-block h-2 w-2 rounded-full ${r.dot} ${t==="active"?"animate-pulse":""}`}),r.label]})});function Mo(e){const t=Math.floor((Date.now()-new Date(e+"Z").getTime())/1e3);if(t<60)return"just now";const r=Math.floor(t/60);return r<60?`${r}m ago`:`${Math.floor(r/60)}h ago`}function Bo(e){const t=e.command||e.file_path||e.pattern||"",r=String(t);return r.length>40?r.slice(0,37)+"...":r}const Lo=m.memo(function({prompt:t,taskId:r}){const o=ct(),i=c=>{c.stopPropagation(),o(`/tasks/${r}?agent=${t.agent_id}`)};return s.jsxs("button",{onClick:i,className:"flex w-full items-center gap-2 rounded border-l-2 border-amber-500 bg-amber-500/5 px-2 py-1.5 text-left text-sm text-amber-400 hover:bg-amber-500/10",children:[s.jsx("span",{className:"animate-pulse text-amber-500",children:"⚠"}),s.jsx("span",{className:"shrink-0 rounded bg-amber-500/15 px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-amber-500",children:"Action required"}),s.jsx("span",{className:"text-zinc-400",children:t.agent_label}),s.jsxs("span",{className:"font-medium",children:[t.tool_name," ",Bo(t.tool_input)]}),s.jsx("span",{className:"ml-auto shrink-0 text-xs text-zinc-500",children:Mo(t.created_at)})]})});function Po(e){const t=Date.now()-new Date(e+"Z").getTime(),r=Math.floor(t/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;const o=Math.floor(r/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function Do(e){return e.split("/").pop()||e}const Oo=m.memo(function({task:t,onClose:r,onDelete:o,onResume:i}){const c=ct(),d=(t.status==="closed"||t.status==="error")&&!!t.worktree,u=t.status==="running"||t.status==="setting_up";return s.jsxs(jo,{className:"cursor-pointer transition-colors hover:bg-accent/50",onClick:()=>c(`/tasks/${t.id}`),children:[s.jsxs(No,{className:"pb-2",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsx(So,{className:"min-w-0 text-base leading-snug line-clamp-2",children:t.title}),s.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[s.jsx(Ao,{status:t.derived_status||t.status}),s.jsx("span",{className:"text-xs whitespace-nowrap text-muted-foreground",children:Po(t.created_at)})]})]}),s.jsx(Co,{className:"line-clamp-1",children:t.description})]}),s.jsxs(To,{children:[s.jsxs("div",{className:"flex items-center justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[s.jsx(Ue,{variant:"outline",className:"text-xs font-normal",children:Do(t.repo_path)}),t.branch&&s.jsx("span",{className:"font-mono text-xs",children:t.branch})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[t.pr_url&&s.jsxs("a",{href:t.pr_url,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-blue-400 hover:underline",onClick:l=>l.stopPropagation(),children:["PR #",t.pr_number]}),t.error&&s.jsx("span",{className:"text-xs text-destructive",title:t.error,children:"Error"}),d&&i&&s.jsx(q,{variant:"ghost",size:"icon-xs",className:"text-muted-foreground hover:text-green-400",title:"Resume agents",onClick:l=>{l.stopPropagation(),i(t.id)},children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",stroke:"none",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})}),u?s.jsx(q,{variant:"ghost",size:"icon-xs",className:"text-muted-foreground hover:text-yellow-500",title:"Close task",onClick:l=>{l.stopPropagation(),r(t.id)},children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),s.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})}):s.jsx(q,{variant:"ghost",size:"icon-xs",className:"text-muted-foreground hover:text-destructive",title:"Delete task",onClick:l=>{l.stopPropagation(),o(t.id)},children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M3 6h18"}),s.jsx("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}),s.jsx("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})]})})]})]}),t.agents&&t.agents.length>0&&t.status==="running"&&s.jsx("div",{className:"mt-2 flex flex-wrap gap-3 text-xs",children:t.agents.filter(l=>l.status!=="stopped").map(l=>s.jsxs("span",{className:"inline-flex items-center gap-1",children:[s.jsx(Io,{activity:l.hook_activity}),s.jsx("span",{className:"text-zinc-500",children:l.label})]},l.id))}),t.pending_prompts&&t.pending_prompts.length>0&&s.jsx("div",{className:"mt-1 space-y-0.5",children:t.pending_prompts.map(l=>s.jsx(Lo,{prompt:l,taskId:t.id},l.id))})]})]})});function $o({tasks:e,onClose:t,onDelete:r,onResume:o}){return e.length===0?s.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-muted-foreground",children:[s.jsx("p",{className:"text-lg",children:"No tasks yet"}),s.jsx("p",{className:"text-sm",children:"Create a task to get started"})]}):s.jsx("div",{className:"flex flex-col gap-3",children:e.map(i=>s.jsx(Oo,{task:i,onClose:t,onDelete:r,onResume:o},i.id))})}function at({...e}){return s.jsx(Mr,{"data-slot":"popover",...e})}function it({...e}){return s.jsx(Br,{"data-slot":"popover-trigger",...e})}function lt({className:e,align:t="center",alignOffset:r=0,side:o="bottom",sideOffset:i=4,...c}){return s.jsx(Lr,{children:s.jsx(Pr,{align:t,alignOffset:r,side:o,sideOffset:i,className:"isolate z-50",children:s.jsx(Dr,{"data-slot":"popover-content",className:K("z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...c})})})}function Ot(e){return e.split("/").pop()||e}function Vo({repos:e,activeRepo:t,onRepoChange:r}){const[o,i]=m.useState(!1);return s.jsxs(at,{open:o,onOpenChange:i,children:[s.jsx(it,{render:s.jsxs("button",{type:"button",className:"mb-1 flex items-center gap-1.5 rounded-md border border-border bg-background px-2 py-1 text-xs transition-colors hover:bg-muted",children:[t?s.jsx(Ue,{variant:"outline",className:"text-xs font-normal",children:Ot(t)}):s.jsx("span",{children:"All projects"}),s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-muted-foreground",children:s.jsx("path",{d:"m6 9 6 6 6-6"})})]})}),s.jsx(lt,{align:"end",side:"bottom",sideOffset:4,className:"w-[200px] p-0",children:s.jsxs("div",{className:"flex flex-col",children:[s.jsx("button",{type:"button",className:`px-3 py-1.5 text-left text-xs transition-colors hover:bg-muted ${t?"":"bg-muted font-medium"}`,onClick:()=>{r(""),i(!1)},children:"All projects"}),e.map(c=>s.jsx("button",{type:"button",className:`flex items-center px-3 py-1.5 text-left text-xs transition-colors hover:bg-muted ${c===t?"bg-muted font-medium":""}`,onClick:()=>{r(c),i(!1)},children:s.jsx(Ue,{variant:"outline",className:"text-xs font-normal",children:Ot(c)})},c))]})})]})}const Fo=m.memo(function({activeStatus:t,counts:r,onStatusChange:o,repos:i,activeRepo:c,onRepoChange:d}){const u=[{key:"open",label:`Open (${r.open})`},{key:"backlog",label:`Backlog (${r.backlog})`},{key:"closed",label:`Closed (${r.closed})`}];return s.jsxs("div",{className:"mb-4 flex items-center justify-between border-b border-border",children:[s.jsx("div",{className:"flex gap-1",children:u.map(l=>s.jsx("button",{className:`px-3 py-2 text-sm font-medium ${t===l.key?"border-b-2 border-primary text-foreground":"text-muted-foreground hover:text-foreground"}`,onClick:()=>o(l.key),children:l.label},l.key))}),i.length>1&&s.jsx(Vo,{repos:i,activeRepo:c,onRepoChange:d})]})});function Wo(e){return s.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",...e,children:[s.jsx("path",{d:"M18 6 6 18"}),s.jsx("path",{d:"m6 6 12 12"})]})}function Ho({...e}){return s.jsx(Or,{"data-slot":"dialog",...e})}function Go({...e}){return s.jsx($r,{"data-slot":"dialog-trigger",...e})}function Yo({...e}){return s.jsx(Hr,{"data-slot":"dialog-portal",...e})}function Uo({className:e,...t}){return s.jsx(Gr,{"data-slot":"dialog-overlay",className:K("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function qo({className:e,children:t,showCloseButton:r=!0,...o}){return s.jsxs(Yo,{children:[s.jsx(Uo,{}),s.jsxs(Vr,{"data-slot":"dialog-content",className:K("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-sm ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...o,children:[t,r&&s.jsxs(Fr,{"data-slot":"dialog-close",render:s.jsx(q,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[s.jsx(Wo,{}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Ko({className:e,...t}){return s.jsx("div",{"data-slot":"dialog-header",className:K("flex flex-col gap-2",e),...t})}function Xo({className:e,...t}){return s.jsx(Wr,{"data-slot":"dialog-title",className:K("text-base leading-none font-medium",e),...t})}function st({className:e,type:t,...r}){return s.jsx(Yr,{type:t,"data-slot":"input",className:K("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...r})}function $t({className:e,...t}){return s.jsx("textarea",{"data-slot":"textarea",className:K("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...t})}function Be({className:e,...t}){return s.jsx("label",{"data-slot":"label",className:K("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function Jo(e){const t=Date.now(),r=new Date(e+"Z").getTime(),o=Math.max(0,t-r),i=Math.floor(o/6e4);if(i<60)return`${i}m ago`;const c=Math.floor(i/60);return c<24?`${c}h ago`:`${Math.floor(c/24)}d ago`}function Zo({onCreated:e}){const[t,r]=m.useState(!1),[o,i]=m.useState(""),[c,d]=m.useState(""),[u,l]=m.useState(""),[a,p]=m.useState(""),[n,b]=m.useState(""),[w,N]=m.useState(""),[B,_]=m.useState([]),[E,se]=m.useState(""),[X,J]=m.useState(!1),[Z,P]=m.useState(!1),[Q,v]=m.useState(!1),[D,he]=m.useState(!1),[ve,oe]=m.useState(null),[F,ue]=m.useState([]),[W,S]=m.useState(!1),[I,ee]=m.useState(null),[ne,g]=m.useState(!1),[te,xe]=m.useState({}),[k,z]=m.useState("idle"),[j,R]=m.useState(!0),U=y=>xe(L=>({...L,[y]:!0})),A=o.trim()&&c.trim()&&u.trim()&&!D;m.useEffect(()=>{t&&ce.recentRepos().then(ue).catch(()=>ue([]))},[t]),m.useEffect(()=>{const y=u.trim();if(!y){_([]),N(""),z("idle");return}let L=!1;z("loading");const qe=setTimeout(async()=>{try{const[De,Ce]=await Promise.all([ce.listBranches(y),ce.getDefaultBranch(y)]);L||(_(De),N(Ce.branch),z("valid"))}catch{L||(_([]),z("invalid"))}},500);return()=>{L=!0,clearTimeout(qe)}},[u]),m.useEffect(()=>{if(!j)return;const y=o.trim();if(!y){b("");return}const L=y.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,"");b(L?`feat/${L}`:"")},[o,j]);const M=B.filter(y=>y.toLowerCase().includes(E.toLowerCase())),me=m.useCallback(async y=>{g(!0);try{const L=await ce.browse(y);ee(L)}catch{}finally{g(!1)}},[]);m.useEffect(()=>{W&&!I&&me()},[W,I,me]);function fe(y){l(y),S(!1)}async function ae(y){if(y.preventDefault(),!!A){he(!0),oe(null);try{await ce.createTask({title:o.trim(),description:c.trim(),repo_path:u.trim(),branch:n.trim()||void 0,base_branch:w.trim()||void 0,initial_prompt:a.trim()||void 0,draft:Q||void 0}),i(""),d(""),l(""),b(""),N(""),_([]),se(""),p(""),P(!1),v(!1),xe({}),z("idle"),R(!0),r(!1),e()}catch(L){oe(L.message)}finally{he(!1)}}}return s.jsxs(Ho,{open:t,onOpenChange:r,children:[s.jsxs(Go,{render:s.jsx(q,{}),children:[s.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","data-icon":"inline-start",children:[s.jsx("path",{d:"M12 5v14"}),s.jsx("path",{d:"M5 12h14"})]}),"New Task"]}),s.jsxs(qo,{className:"max-h-[90vh] overflow-y-auto sm:max-w-xl",children:[s.jsx(Ko,{children:s.jsx(Xo,{children:"Create Task"})}),s.jsxs("form",{onSubmit:ae,className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(Be,{htmlFor:"title",children:"Title"}),s.jsx(st,{id:"title",placeholder:"Fix order validation",value:o,onChange:y=>i(y.target.value),onBlur:()=>U("title")}),te.title&&!o.trim()&&s.jsx("p",{className:"text-xs text-destructive",children:"Title is required"})]}),s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(Be,{htmlFor:"description",children:"Description"}),s.jsx($t,{id:"description",placeholder:"Add negative quantity checks to the order form...",rows:3,value:c,onChange:y=>d(y.target.value),onBlur:()=>U("description")}),te.description&&!c.trim()&&s.jsx("p",{className:"text-xs text-destructive",children:"Description is required"})]}),s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(Be,{htmlFor:"repo-path",children:"Repository Path"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx(st,{id:"repo-path",placeholder:"/Users/you/projects/my-repo",className:"font-mono text-sm pr-8",value:u,onChange:y=>l(y.target.value),onBlur:()=>U("repoPath")}),u.trim()&&s.jsxs("span",{className:"absolute right-2 top-1/2 -translate-y-1/2",children:[k==="loading"&&s.jsxs("svg",{className:"h-4 w-4 animate-spin text-muted-foreground",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-label":"Validating repo",children:[s.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),s.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),k==="valid"&&s.jsx("svg",{className:"h-4 w-4 text-emerald-500",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-label":"Valid git repo",children:s.jsx("path",{d:"M20 6 9 17l-5-5"})}),k==="invalid"&&s.jsxs("svg",{className:"h-4 w-4 text-destructive",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-label":"Not a git repository",children:[s.jsx("path",{d:"M18 6 6 18"}),s.jsx("path",{d:"m6 6 12 12"})]})]})]}),s.jsxs(at,{open:W,onOpenChange:S,children:[s.jsx(it,{render:s.jsx(q,{type:"button",variant:"outline",className:"shrink-0",children:"Browse"})}),s.jsx(lt,{align:"end",side:"bottom",sideOffset:4,className:"w-[420px] p-0",children:s.jsx(Qo,{data:I,loading:ne,onNavigate:me,onSelect:fe})})]})]}),u.trim()&&k==="valid"&&s.jsx("p",{className:"text-xs text-emerald-500",children:"Valid git repo"}),u.trim()&&k==="invalid"&&s.jsx("p",{className:"text-xs text-destructive",children:"Not a git repository"}),te.repoPath&&!u.trim()&&s.jsx("p",{className:"text-xs text-destructive",children:"Repository path is required"}),!u.trim()&&F.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"Recent"}),s.jsx("div",{className:"rounded-md border border-border overflow-hidden",children:F.slice(0,5).map(y=>s.jsxs("button",{type:"button",className:"flex w-full items-center justify-between px-3 py-1.5 text-left text-sm hover:bg-muted transition-colors",onClick:()=>l(y.repo_path),children:[s.jsx("span",{className:"font-mono text-xs truncate mr-3",children:y.repo_path}),s.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:Jo(y.last_used)})]},y.repo_path))})]})]}),s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Be,{htmlFor:"branch",children:"Branch Name"}),j&&n&&s.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground",children:"auto"})]}),s.jsx(st,{id:"branch",placeholder:"feat/my-feature",className:"font-mono text-sm",value:n,onChange:y=>{b(y.target.value),R(!1)}})]}),s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(Be,{children:"Base Branch"}),s.jsxs(at,{open:X,onOpenChange:J,children:[s.jsx(it,{render:s.jsxs("button",{type:"button",className:"flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[s.jsx("span",{className:w?"font-mono text-xs":"text-muted-foreground",children:w||"Select base branch..."}),s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-muted-foreground",children:s.jsx("path",{d:"m6 9 6 6 6-6"})})]})}),s.jsx(lt,{align:"start",side:"bottom",sideOffset:4,className:"w-[--trigger-width] p-0",children:s.jsxs("div",{className:"flex flex-col",children:[s.jsx("div",{className:"border-b border-border px-3 py-2",children:s.jsx("input",{type:"text",placeholder:"Search branches...",className:"w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground",value:E,onChange:y=>se(y.target.value),autoFocus:!0})}),s.jsxs("div",{className:"max-h-[200px] overflow-y-auto",children:[M.length===0&&s.jsx("div",{className:"px-3 py-3 text-center text-xs text-muted-foreground",children:B.length===0?"Select a repository first":"No matching branches"}),M.map(y=>s.jsx("button",{type:"button",className:`flex w-full items-center px-3 py-1.5 text-left text-sm hover:bg-muted transition-colors ${y===w?"bg-muted font-medium":""}`,onClick:()=>{N(y),se(""),J(!1)},children:s.jsx("span",{className:"font-mono text-xs truncate",children:y})},y))]})]})})]})]}),s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(q,{type:"button",variant:"ghost",size:"sm",className:"w-fit h-auto px-2 py-1 text-xs text-muted-foreground hover:text-foreground",onClick:()=>P(!Z),children:Z?"- Hide initial prompt":"+ Add initial prompt"}),Z&&s.jsx($t,{id:"initial-prompt",placeholder:"Custom prompt to send to the agent on start...",rows:4,value:a,onChange:y=>p(y.target.value)})]}),s.jsxs("label",{className:"flex items-center gap-2 text-sm text-muted-foreground cursor-pointer",children:[s.jsx("input",{type:"checkbox",checked:Q,onChange:y=>v(y.target.checked),className:"rounded border-border"}),"Save as draft (start later)"]}),ve&&s.jsx("p",{className:"text-sm text-destructive",children:ve}),s.jsxs("div",{className:"sticky bottom-0 flex justify-end gap-2 border-t border-border bg-background pt-3 -mb-1",children:[s.jsx(q,{type:"button",variant:"ghost",onClick:()=>r(!1),children:"Cancel"}),s.jsx(q,{type:"submit",disabled:!A,children:D?"Creating...":"Create"})]})]})]})]})}function Qo({data:e,loading:t,onNavigate:r,onSelect:o}){return!e&&t?s.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:"Loading..."}):e?s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[s.jsx("button",{type:"button",disabled:!e.parent,className:"shrink-0 rounded p-1 text-muted-foreground hover:bg-muted hover:text-foreground disabled:opacity-30 disabled:hover:bg-transparent",onClick:()=>e.parent&&r(e.parent),children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("path",{d:"m15 18-6-6 6-6"})})}),s.jsx("span",{className:"font-mono text-xs text-muted-foreground truncate direction-rtl text-left",children:e.current})]}),s.jsxs("div",{className:"max-h-[280px] overflow-y-auto",children:[e.entries.length===0&&s.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:"No subdirectories"}),e.entries.map(i=>s.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm hover:bg-muted transition-colors",onClick:()=>r(i.path),onDoubleClick:()=>i.isGit&&o(i.path),children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:i.isGit?"text-emerald-500":"text-muted-foreground",children:s.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}),s.jsxs("span",{className:"font-mono text-xs truncate",children:[i.name,s.jsx("span",{className:"text-muted-foreground",children:"/"})]}),i.isGit&&s.jsx("span",{className:"ml-auto shrink-0 rounded bg-emerald-500/10 px-1.5 py-0.5 text-[10px] font-medium text-emerald-600 dark:text-emerald-400",children:"git"})]},i.path))]}),s.jsxs("div",{className:"flex items-center justify-between border-t border-border px-3 py-2",children:[s.jsx("span",{className:"font-mono text-[10px] text-muted-foreground truncate mr-2",children:e.current}),s.jsx(q,{type:"button",size:"sm",className:"shrink-0 h-7 text-xs",onClick:()=>o(e.current),children:"Select"})]})]}):null}function en(){const[e,t]=m.useState(Yt),r=m.useCallback(()=>{const o=!e;_s(o),t(o)},[e]);return s.jsx(q,{variant:"ghost",size:"icon",onClick:r,title:e?"Disable notifications":"Enable notifications",className:"relative h-8 w-8",children:e?s.jsx(tn,{className:"h-4 w-4"}):s.jsx(rn,{className:"h-4 w-4 text-muted-foreground"})})}function tn({className:e}){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:e,children:s.jsx("path",{fillRule:"evenodd",d:"M5.25 9a6.75 6.75 0 0 1 13.5 0v.75c0 2.123.8 4.057 2.118 5.52a.75.75 0 0 1-.573 1.23H3.705a.75.75 0 0 1-.573-1.23A8.973 8.973 0 0 0 5.25 9.75V9ZM8.159 18.753a.75.75 0 0 1 .932-.514 3.756 3.756 0 0 0 5.818 0 .75.75 0 0 1 1.446.418 5.256 5.256 0 0 1-7.678 0 .75.75 0 0 1-.518-.904Z",clipRule:"evenodd"})})}function rn({className:e}){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,className:e,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})})}const sn=m.lazy(()=>Wt(()=>import("./TerminalView-CguHyqU9.js"),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.TerminalView}))),Vt="orchestrator-panel-open";function on(){const[e,t]=m.useState(()=>window.innerWidth<768);return m.useEffect(()=>{const r=window.matchMedia("(max-width: 767px)"),o=i=>t(i.matches);return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),e}function nn(){const[e,t]=m.useState(()=>localStorage.getItem(Vt)==="true"),r=Ss();m.useEffect(()=>{localStorage.setItem(Vt,String(e))},[e]);const o=m.useCallback(()=>t(!0),[]),i=m.useCallback(()=>t(!1),[]),c=m.useCallback(()=>t(d=>!d),[]);return{isOpen:e,open:o,close:i,toggle:c,...r}}function an({isOpen:e,running:t,toggle:r}){return s.jsxs(q,{variant:e?"secondary":"ghost",size:"sm",onClick:r,title:"Toggle orchestrator panel",className:"relative gap-1.5 hidden md:inline-flex",children:[s.jsx(cn,{className:"h-4 w-4"}),s.jsx("span",{className:"text-xs",children:"Orchestrator"}),t&&s.jsxs("span",{className:"absolute -top-0.5 -right-0.5 flex h-2.5 w-2.5",children:[s.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-emerald-400 opacity-75"}),s.jsx("span",{className:"relative inline-flex h-2.5 w-2.5 rounded-full bg-emerald-500"})]})]})}function ln({state:e}){const{isOpen:t,close:r,running:o,loading:i,start:c,stop:d}=e,u=on();if(!t)return null;const l=s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-border px-3 py-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:`h-2 w-2 rounded-full ${o?"bg-emerald-500 animate-pulse":"bg-muted-foreground/30"}`}),s.jsx("span",{className:"text-sm font-medium",children:"Orchestrator"})]}),s.jsxs("div",{className:"flex items-center gap-1",children:[o&&s.jsx(q,{variant:"ghost",size:"sm",className:"h-7 text-xs",onClick:d,children:"Stop"}),s.jsx("button",{onClick:r,className:"rounded p-1 text-muted-foreground hover:bg-muted hover:text-foreground",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("path",{d:"m9 18 6-6-6-6"})})})]})]}),s.jsx("div",{className:"flex-1 overflow-hidden",children:i?s.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground",children:"Loading..."}):o?s.jsx(m.Suspense,{fallback:s.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground",children:"Loading terminal..."}),children:s.jsx(sn,{wsUrl:"/ws/terminal/orchestrator"})}):s.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-3",children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"Orchestrator is not running"}),s.jsx(q,{onClick:c,children:"Start Orchestrator"})]})})]});return u?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 z-40 bg-black/50",onClick:r}),s.jsx("div",{className:"fixed inset-y-0 right-0 z-50 w-full bg-card flex flex-col animate-in slide-in-from-right duration-200",children:l})]}):s.jsx("div",{className:"w-[500px] max-[1279px]:w-[400px] max-[1023px]:w-[350px] shrink-0 border-l border-border bg-card flex flex-col",children:l})}function cn({className:e}){return s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[s.jsx("polyline",{points:"4 17 10 11 4 5"}),s.jsx("line",{x1:"12",x2:"20",y1:"19",y2:"19"})]})}function dn(){const{tasks:e,loading:t,error:r,refresh:o}=mt(),{filters:i,setFilter:c,filtered:d,counts:u,repos:l}=As(e),a=nn(),p=m.useCallback(async w=>{try{await ce.updateTask(w,{status:"closed"}),o()}catch(N){console.error("Failed to close task:",N)}},[o]),n=m.useCallback(async w=>{try{await ce.deleteTask(w),o()}catch(N){console.error("Failed to delete task:",N)}},[o]),b=m.useCallback(async w=>{try{await ce.updateTask(w,{status:"running"}),o()}catch(N){console.error("Failed to resume task:",N)}},[o]);return s.jsxs("div",{className:"flex h-screen",children:[s.jsx("div",{className:"flex-1 overflow-auto",children:s.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-8",children:[s.jsxs("div",{className:"mb-6 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[s.jsx("div",{children:s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("img",{src:"/logo.png",alt:"octomux",className:"h-8 w-8 brightness-150 saturate-200"}),s.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:"octomux"})]})}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(an,{isOpen:a.isOpen,running:a.running,toggle:a.toggle}),s.jsx(en,{}),s.jsx(Zo,{onCreated:o})]})]}),r&&s.jsx("div",{className:"mb-4 rounded-lg border border-destructive/50 bg-destructive/10 p-4 text-sm text-destructive",children:s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{children:[s.jsx("p",{className:"font-medium",children:"Unable to load tasks. Check that the server is running on port 7777."}),s.jsx("p",{className:"mt-1 text-xs text-destructive/70",children:r})]}),s.jsx(q,{variant:"outline",size:"sm",onClick:o,children:"Retry"})]})}),t?s.jsx("div",{className:"flex flex-col gap-3",children:[1,2,3].map(w=>s.jsxs("div",{className:"animate-pulse rounded-xl border border-border bg-card p-4",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsx("div",{className:"h-5 w-48 rounded bg-muted"}),s.jsx("div",{className:"h-5 w-16 rounded bg-muted"})]}),s.jsx("div",{className:"mt-2 h-4 w-64 rounded bg-muted"}),s.jsxs("div",{className:"mt-3 flex items-center gap-2",children:[s.jsx("div",{className:"h-5 w-20 rounded bg-muted"}),s.jsx("div",{className:"h-4 w-32 rounded bg-muted"})]})]},w))}):s.jsxs(s.Fragment,{children:[s.jsx(Fo,{activeStatus:i.status,counts:u,onStatusChange:w=>c("status",w),repos:l,activeRepo:i.repo,onRepoChange:w=>c("repo",w)}),s.jsx($o,{tasks:d,onClose:p,onDelete:n,onResume:b})]})]})}),s.jsx(ln,{state:a})]})}const un=["running","setting_up","error"];function Ft(e){return e.status==="error"?2:e.derivedStatus==="needs_attention"?1:e.status==="running"||e.status==="setting_up"?0:3}function mn(e){const t=e.filter(i=>un.includes(i.status)),r=new Map;for(const i of t){const c=i.repo_path.split("/").pop()||i.repo_path,d={id:i.id,title:i.title,status:i.status,derivedStatus:i.derived_status??null},u=r.get(c);u?(u.items.push(d),u.tasks.push(i)):r.set(c,{items:[d],tasks:[i]})}const o=[];for(const[i,{items:c,tasks:d}]of r){const u=new Map(d.map(l=>[l.id,l.created_at]));c.sort((l,a)=>{const p=Ft(l)-Ft(a);return p!==0?p:(u.get(a.id)??"").localeCompare(u.get(l.id)??"")}),o.push({repo:i,items:c})}return o.sort((i,c)=>i.repo.localeCompare(c.repo)),o}const dr="octomux-sidebar-collapsed";function fn(){try{return localStorage.getItem(dr)==="true"}catch{return!1}}function pn({item:e}){switch(e.derivedStatus??e.status){case"working":case"running":return s.jsxs("svg",{className:"h-4 w-4 shrink-0 text-green-400 animate-spin",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[s.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"2",opacity:"0.3"}),s.jsx("path",{d:"M14 8a6 6 0 0 0-6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]});case"setting_up":return s.jsx("svg",{className:"h-4 w-4 shrink-0 text-yellow-400",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:s.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"4 2"})});case"needs_attention":return s.jsxs("svg",{className:"h-4 w-4 shrink-0 text-amber-400",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[s.jsx("path",{d:"M8 1.5l6.5 12H1.5L8 1.5z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),s.jsx("line",{x1:"8",y1:"6",x2:"8",y2:"9.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("circle",{cx:"8",cy:"11.5",r:"0.75",fill:"currentColor"})]});case"error":return s.jsxs("svg",{className:"h-4 w-4 shrink-0 text-red-400",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[s.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"1.5"}),s.jsx("path",{d:"M5.5 5.5l5 5M10.5 5.5l-5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]});default:return s.jsx("svg",{className:"h-4 w-4 shrink-0 text-muted-foreground",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:s.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"1.5"})})}}function gn(e){switch(e.derivedStatus??e.status){case"working":case"running":return"Running";case"setting_up":return"Setting up";case"needs_attention":return"Needs attention";case"error":return"Error";default:return e.status}}function hn(){const[e,t]=m.useState(fn),{tasks:r}=mt(),{id:o}=Cr(),i=m.useMemo(()=>mn(r),[r]),c=m.useMemo(()=>i.flatMap(l=>l.items),[i]),d=m.useMemo(()=>c.filter(l=>{const a=l.derivedStatus??l.status;return a==="error"||a==="needs_attention"}).length,[c]),u=m.useCallback(()=>{t(l=>{const a=!l;try{localStorage.setItem(dr,String(a))}catch{}return a})},[]);return m.useEffect(()=>{function l(a){(a.metaKey||a.ctrlKey)&&a.key==="b"&&(a.preventDefault(),u())}return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[u]),s.jsxs("nav",{"aria-label":"Task list",className:"hidden md:flex flex-col border-r border-border bg-muted/30 overflow-y-auto overflow-x-hidden transition-[width] duration-150 ease-out",style:{width:e?48:240},children:[s.jsxs("div",{className:"flex items-center gap-2 p-2 border-b border-border shrink-0",children:[s.jsx("button",{onClick:u,className:"p-1 rounded hover:bg-muted","aria-label":e?"Expand sidebar":"Collapse sidebar",children:s.jsxs("svg",{className:"h-4 w-4",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[s.jsx("rect",{x:"1.5",y:"2.5",width:"13",height:"11",rx:"1.5",stroke:"currentColor",strokeWidth:"1.5"}),s.jsx("path",{d:"M5.5 2.5v11",stroke:"currentColor",strokeWidth:"1.5"}),e?s.jsx("path",{d:"M9 6l2 2-2 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}):s.jsx("path",{d:"M11 6l-2 2 2 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),d>0&&s.jsx("span",{"data-testid":"attention-count",className:e?"sr-only":"ml-auto inline-flex items-center justify-center rounded-full bg-red-500/20 text-red-400 text-xs font-medium min-w-5 h-5 px-1.5",children:d})]}),s.jsx("div",{className:"flex-1 py-1",children:i.map(l=>s.jsxs("div",{children:[!e&&s.jsx("div",{className:"px-3 py-1.5 text-[11px] font-medium text-muted-foreground uppercase tracking-wider truncate",children:l.repo}),l.items.map(a=>{const p=a.id===o;return s.jsxs(Tr,{to:`/tasks/${a.id}`,"aria-current":p?"page":void 0,title:e?`${a.title} — ${gn(a)}`:void 0,className:`flex items-center gap-2 px-2 py-1.5 text-sm transition-colors hover:bg-muted/60 ${p?"bg-muted border-l-2 border-l-primary":"border-l-2 border-l-transparent"}`,children:[s.jsx(pn,{item:a}),!e&&s.jsx("span",{className:"truncate max-w-[180px]",children:a.title})]},a.id)})]},l.repo))})]})}function xn(){return s.jsxs("div",{className:"flex h-screen",children:[s.jsx(hn,{}),s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(m.Suspense,{fallback:s.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:"Loading..."}),children:s.jsx(Er,{})})})]})}const bn=m.lazy(()=>Wt(()=>import("./TaskDetail-2gFAGaIH.js"),__vite__mapDeps([4,1,0,2,3,5,6])));function vn(){const{tasks:e}=mt(),t=ct();return Es(e),Rs(e,t),null}class yn extends m.Component{constructor(){super(...arguments);jt(this,"state",{error:null})}static getDerivedStateFromError(r){return{error:r}}render(){return this.state.error?s.jsxs("div",{className:"flex h-screen flex-col items-center justify-center gap-4 bg-background text-foreground",children:[s.jsx("p",{className:"text-lg font-semibold text-destructive",children:"Something went wrong"}),s.jsx("p",{className:"max-w-md text-center text-sm text-muted-foreground",children:this.state.error.message}),s.jsx("button",{className:"rounded-md bg-primary px-4 py-2 text-sm text-primary-foreground",onClick:()=>{this.setState({error:null}),window.location.reload()},children:"Reload"})]}):this.props.children}}function wn(){return s.jsx(yn,{children:s.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[s.jsx(ws,{theme:"dark",position:"bottom-right",richColors:!0}),s.jsx(vn,{}),s.jsxs(_r,{children:[s.jsx(Je,{path:"/",element:s.jsx(dn,{})}),s.jsx(Je,{element:s.jsx(xn,{}),children:s.jsx(Je,{path:"/tasks/:id",element:s.jsx(bn,{})})})]})]})})}Nr.createRoot(document.getElementById("root")).render(s.jsx(m.StrictMode,{children:s.jsx(zr,{children:s.jsx(wn,{})})}));export{q as B,Ho as D,st as I,Be as L,at as P,Ao as S,$t as T,Go as a,qo as b,K as c,Ko as d,Xo as e,ce as f,it as g,lt as h,Ue as i,Tn as u};
|