@kimuson/claude-code-viewer 0.2.0 → 0.2.1
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/README.md +27 -11
- package/dist/standalone/.next/BUILD_ID +1 -1
- package/dist/standalone/.next/app-build-manifest.json +8 -8
- package/dist/standalone/.next/build-manifest.json +2 -2
- package/dist/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/app/api/[[...route]]/route.js +2 -2
- package/dist/standalone/.next/server/app/api/[[...route]]/route_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/app/projects/[projectId]/page.js +2 -2
- package/dist/standalone/.next/server/app/projects/[projectId]/page.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/projects/[projectId]/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/app/projects/[projectId]/sessions/[sessionId]/page.js +2 -2
- package/dist/standalone/.next/server/app/projects/[projectId]/sessions/[sessionId]/page.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/projects/[projectId]/sessions/[sessionId]/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/chunks/253.js +5 -0
- package/dist/standalone/.next/server/chunks/791.js +1 -1
- package/dist/standalone/.next/server/pages/500.html +1 -1
- package/dist/standalone/.next/static/-RcQZ3HqGna2BJlPWmT02/_buildManifest.js +1 -0
- package/dist/standalone/.next/static/-RcQZ3HqGna2BJlPWmT02/_ssgManifest.js +1 -0
- package/dist/standalone/.next/static/EeFwMdI7zg6O7c4KD_wjS/_buildManifest.js +1 -0
- package/dist/standalone/.next/static/EeFwMdI7zg6O7c4KD_wjS/_ssgManifest.js +1 -0
- package/dist/standalone/.next/static/KBYOpJafbhUDA4eyLg6Ko/_buildManifest.js +1 -0
- package/dist/standalone/.next/static/KBYOpJafbhUDA4eyLg6Ko/_ssgManifest.js +1 -0
- package/dist/standalone/.next/static/bL-BVMm29SJGhcVw5iiOa/_buildManifest.js +1 -0
- package/dist/standalone/.next/static/bL-BVMm29SJGhcVw5iiOa/_ssgManifest.js +1 -0
- package/dist/standalone/.next/static/chunks/156-e096f8ebbb19a87b.js +1 -0
- package/dist/standalone/.next/static/chunks/5-d9ec5b78d3d7322e.js +1 -0
- package/dist/standalone/.next/static/chunks/598-cab8dbe6e53258b7.js +16 -0
- package/dist/standalone/.next/static/chunks/763-65c49384a5f44b0d.js +16 -0
- package/dist/standalone/.next/static/chunks/925-1e9fb2197e63b05e.js +16 -0
- package/dist/standalone/.next/static/chunks/960-ca15ca27cd5b8c32.js +16 -0
- package/dist/standalone/.next/static/chunks/app/projects/[projectId]/page-48b46cdbd39646a2.js +1 -0
- package/dist/standalone/.next/static/chunks/app/projects/[projectId]/sessions/[sessionId]/page-4a8735a6c6386a0c.js +1 -0
- package/dist/standalone/.next/static/chunks/app/projects/[projectId]/sessions/[sessionId]/page-60b3530a6b39b226.js +1 -0
- package/dist/standalone/.next/static/chunks/app/projects/[projectId]/sessions/[sessionId]/page-671797a5d38eed0a.js +1 -0
- package/dist/standalone/.next/static/chunks/app/projects/[projectId]/sessions/[sessionId]/page-a62c7bc47e7c58c9.js +1 -0
- package/dist/standalone/.next/static/css/25a41db9e4947f11.css +3 -0
- package/dist/standalone/.next/static/css/412b3e73705ef8e0.css +3 -0
- package/dist/standalone/.next/static/css/74ef8f003c2f9dde.css +3 -0
- package/dist/standalone/.next/static/css/ca2e8ee6065efaab.css +3 -0
- package/dist/standalone/.next/static/f-kLR8CLFYZ-whjKzvvBp/_buildManifest.js +1 -0
- package/dist/standalone/.next/static/f-kLR8CLFYZ-whjKzvvBp/_ssgManifest.js +1 -0
- package/dist/standalone/package.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[332],{17352:(e,s,t)=>{Promise.resolve().then(t.bind(t,98613)),Promise.resolve().then(t.bind(t,72611)),Promise.resolve().then(t.bind(t,13881)),Promise.resolve().then(t.bind(t,85452)),Promise.resolve().then(t.bind(t,120)),Promise.resolve().then(t.bind(t,27740)),Promise.resolve().then(t.bind(t,59054)),Promise.resolve().then(t.bind(t,8120)),Promise.resolve().then(t.bind(t,9161)),Promise.resolve().then(t.bind(t,63812)),Promise.resolve().then(t.bind(t,86260)),Promise.resolve().then(t.bind(t,15312)),Promise.resolve().then(t.bind(t,45320)),Promise.resolve().then(t.bind(t,27249))},27249:(e,s,t)=>{"use strict";t.d(s,{ProjectPageContent:()=>w});var a=t(89835),n=t(13881),l=t(50417),i=t(65492),r=t(62520),o=t(9005),d=t(5530),m=t(26057),c=t(75123),h=t.n(c),x=t(55931),j=t(57981),u=t(80942),f=t(75284),N=t(45730),p=t(89290),g=t(5685),b=t(72667),v=t(51290);let w=e=>{var s,t;let{projectId:c}=e,{data:{project:w,sessions:P}}=(0,g.B)(c),{config:y}=(0,p.U)(),C=(0,n.useQueryClient)(),[k,A]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{C.invalidateQueries({queryKey:(0,g.M)(c).queryKey})},[y.hideNoUserMessageSession,y.unifySameTitleSession]),(0,a.jsxs)("div",{className:"container mx-auto px-2 sm:px-4 py-4 sm:py-8 max-w-6xl",children:[(0,a.jsxs)("header",{className:"mb-6 sm:mb-8",children:[(0,a.jsx)(u.$,{asChild:!0,variant:"ghost",className:"mb-4",children:(0,a.jsxs)(h(),{href:"/projects",className:"flex items-center gap-2",children:[(0,a.jsx)(l.A,{className:"w-4 h-4"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Back to Projects"}),(0,a.jsx)("span",{className:"sm:hidden",children:"Back"})]})}),(0,a.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between mb-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3 min-w-0 flex-1",children:[(0,a.jsx)(i.A,{className:"w-5 h-5 sm:w-6 sm:h-6 flex-shrink-0"}),(0,a.jsx)("h1",{className:"text-xl sm:text-2xl md:text-3xl font-bold break-words overflow-hidden",children:null!=(s=w.meta.projectPath)?s:w.claudeProjectPath})]}),(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(v.c,{projectId:c,trigger:(0,a.jsxs)(u.$,{size:"lg",className:"gap-2 w-full sm:w-auto",children:[(0,a.jsx)(r.A,{className:"w-4 h-4 sm:w-5 sm:h-5"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Start New Chat"}),(0,a.jsx)("span",{className:"sm:hidden",children:"New Chat"})]})})})]}),(0,a.jsxs)("p",{className:"text-muted-foreground font-mono text-xs sm:text-sm break-all",children:["History File: ",null!=(t=w.claudeProjectPath)?t:"unknown"]})]}),(0,a.jsx)("main",{children:(0,a.jsxs)("section",{children:[(0,a.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold mb-4",children:["Conversation Sessions"," ",P.length>0?"(".concat(P.length,")"):""]}),(0,a.jsx)(N.Nt,{open:k,onOpenChange:A,children:(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsx)(N.R6,{asChild:!0,children:(0,a.jsxs)(u.$,{variant:"outline",className:"w-full justify-between mb-2 h-auto py-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(o.A,{className:"w-4 h-4"}),(0,a.jsx)("span",{className:"font-medium",children:"Filter Settings"}),(0,a.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",P.length," sessions)"]})]}),(0,a.jsx)(d.A,{className:"w-4 h-4 transition-transform ".concat(k?"rotate-180":"")})]})}),(0,a.jsx)(N.Ke,{children:(0,a.jsx)("div",{className:"p-4 bg-muted/50 rounded-lg border",children:(0,a.jsx)(j.o,{onConfigChange:()=>{C.invalidateQueries({queryKey:(0,g.M)(c).queryKey})}})})})]})}),0===P.length?(0,a.jsx)(f.Zp,{children:(0,a.jsxs)(f.Wu,{className:"flex flex-col items-center justify-center py-12",children:[(0,a.jsx)(m.A,{className:"w-12 h-12 text-muted-foreground mb-4"}),(0,a.jsx)("h3",{className:"text-lg font-medium mb-2",children:"No sessions found"}),(0,a.jsx)("p",{className:"text-muted-foreground text-center max-w-md mb-6",children:"No conversation sessions found for this project. Start a conversation with Claude Code in this project to create sessions."}),(0,a.jsx)(v.c,{projectId:c,trigger:(0,a.jsxs)(u.$,{size:"lg",className:"gap-2",children:[(0,a.jsx)(r.A,{className:"w-5 h-5"}),"Start First Chat"]})})]})}):(0,a.jsx)("div",{className:"grid gap-4 md:grid-cols-1 lg:grid-cols-1",children:P.map(e=>(0,a.jsxs)(f.Zp,{className:"hover:shadow-md transition-shadow",children:[(0,a.jsxs)(f.aR,{children:[(0,a.jsx)(f.ZB,{className:"flex items-center gap-2",children:(0,a.jsx)("span",{className:"break-words overflow-ellipsis line-clamp-2 text-lg sm:text-xl",children:null!==e.meta.firstCommand?(0,b.H)(e.meta.firstCommand):e.id})}),(0,a.jsx)(f.BT,{className:"font-mono text-xs",children:e.id})]}),(0,a.jsxs)(f.Wu,{className:"space-y-2",children:[(0,a.jsxs)("p",{className:"text-sm text-muted-foreground",children:[e.meta.messageCount," messages"]}),(0,a.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Last modified:"," ",e.meta.lastModifiedAt?new Date(e.meta.lastModifiedAt).toLocaleDateString():""]}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground font-mono",children:e.jsonlFilePath})]}),(0,a.jsx)(f.Wu,{className:"pt-0",children:(0,a.jsx)(u.$,{asChild:!0,className:"w-full",children:(0,a.jsx)(h(),{href:"/projects/".concat(c,"/sessions/").concat(encodeURIComponent(e.id)),children:"View Session"})})})]},e.id))})]})})]})}},65492:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(92398).A)("folder",[["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",key:"1kt360"}]])}},e=>{e.O(0,[33,150,156,5,900,341,358],()=>e(e.s=17352)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[998],{82791:(e,s,t)=>{Promise.resolve().then(t.bind(t,98613)),Promise.resolve().then(t.bind(t,72611)),Promise.resolve().then(t.bind(t,13881)),Promise.resolve().then(t.bind(t,85452)),Promise.resolve().then(t.bind(t,120)),Promise.resolve().then(t.bind(t,27740)),Promise.resolve().then(t.bind(t,59054)),Promise.resolve().then(t.bind(t,8120)),Promise.resolve().then(t.bind(t,9161)),Promise.resolve().then(t.bind(t,63812)),Promise.resolve().then(t.bind(t,86260)),Promise.resolve().then(t.bind(t,15312)),Promise.resolve().then(t.bind(t,45320)),Promise.resolve().then(t.bind(t,83510))},83510:(e,s,t)=>{"use strict";t.d(s,{SessionPageContent:()=>eh});var r=t(89835),a=t(59054),n=t(4015),l=t(50417),i=t(58903),d=t(93856),o=t(38514),c=t(75123),m=t.n(c),u=t(55931),x=t(80942),h=t(53630),p=t(72667),g=t(63812),f=t(27608),b=t(89854),j=t(45320),v=t(41633),N=t(40138);let y=e=>{let{conversation:s,sidechainConversations:t,getToolResult:a}=e,n=(e=>{let s=e.at(0),t="".concat(e.length," conversations (").concat((null==s?void 0:s.type)!=="summary"?null==s?void 0:s.uuid:"",")");if(!s||"user"!==s.type)return t;let r="string"==typeof s.message.content?s.message.content:(()=>{let e=s.message.content.at(0);return void 0===e?null:"string"==typeof e?e:"text"===e.type?e.text:null})();return null!=r?r:t})(t),l="summary"!==s.type?s.uuid:s.leafUuid;return(0,r.jsxs)(N.lG,{children:[(0,r.jsx)(N.zM,{asChild:!0,children:(0,r.jsx)(x.$,{variant:"outline",size:"sm",className:"w-full mb-3 items-center justify-start",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(v.A,{className:"h-4 w-4 flex-shrink-0"}),(0,r.jsxs)("span",{className:"overflow-hidden text-ellipsis",children:["View Task: ",n]})]})})}),(0,r.jsxs)(N.Cf,{className:"!w-[1200px] !max-w-none max-h-[80vh] overflow-hidden flex flex-col",children:[(0,r.jsxs)(N.c7,{children:[(0,r.jsx)(N.L3,{children:n.length>100?"".concat(n.slice(0,100),"..."):n}),(0,r.jsxs)(N.rr,{children:["Root UUID: ",l]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-auto",children:(0,r.jsx)(ee,{conversations:t,getToolResult:a})})]})]})};var w=t(55407),k=t(5530),A=t(9005),C=t(68607),S=t(36703),R=t(83632),M=t(8607),T=t(7951),I=t(18237);let P=(0,T.F)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function _(e){let{className:s,variant:t,asChild:a=!1,...n}=e,l=a?M.DX:"span";return(0,r.jsx)(l,{"data-slot":"badge",className:(0,I.cn)(P({variant:t}),s),...n})}var U=t(75284),z=t(45730),D=t(35853),E=t(35880),B=t(96318);let F=e=>{let{content:s,className:t=""}=e;return(0,r.jsx)("div",{className:"prose prose-neutral dark:prose-invert max-w-none ".concat(t),children:(0,r.jsx)(D.oz,{remarkPlugins:[B.A],components:{h1(e){let{children:s,...t}=e;return(0,r.jsx)("h1",{className:"text-3xl font-bold mb-6 mt-8 pb-3 border-b border-border text-foreground",...t,children:s})},h2(e){let{children:s,...t}=e;return(0,r.jsx)("h2",{className:"text-2xl font-semibold mb-4 mt-8 pb-2 border-b border-border/50 text-foreground",...t,children:s})},h3(e){let{children:s,...t}=e;return(0,r.jsx)("h3",{className:"text-xl font-semibold mb-3 mt-6 text-foreground",...t,children:s})},h4(e){let{children:s,...t}=e;return(0,r.jsx)("h4",{className:"text-lg font-medium mb-2 mt-4 text-foreground",...t,children:s})},h5(e){let{children:s,...t}=e;return(0,r.jsx)("h5",{className:"text-base font-medium mb-2 mt-4 text-foreground",...t,children:s})},h6(e){let{children:s,...t}=e;return(0,r.jsx)("h6",{className:"text-sm font-medium mb-2 mt-4 text-muted-foreground",...t,children:s})},p(e){let{children:s,...t}=e;return(0,r.jsx)("p",{className:"mb-4 leading-7 text-foreground",...t,children:s})},ul(e){let{children:s,...t}=e;return(0,r.jsx)("ul",{className:"mb-4 ml-6 list-disc space-y-2",...t,children:s})},ol(e){let{children:s,...t}=e;return(0,r.jsx)("ol",{className:"mb-4 ml-6 list-decimal space-y-2",...t,children:s})},li(e){let{children:s,...t}=e;return(0,r.jsx)("li",{className:"leading-7 text-foreground",...t,children:s})},code(e){let{className:s,children:t,...a}=e,n=/language-(\w+)/.exec(s||"");return n?(0,r.jsxs)("div",{className:"relative my-6",children:[(0,r.jsx)("div",{className:"flex items-center justify-between bg-muted/30 px-4 py-2 border-b border-border rounded-t-lg",children:(0,r.jsx)("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:n[1]})}),(0,r.jsx)(S.A,{style:E.A,language:n[1],PreTag:"div",className:"!mt-0 !rounded-t-none !rounded-b-lg !border-t-0 !border !border-border",customStyle:{margin:0,borderTopLeftRadius:0,borderTopRightRadius:0},children:String(t).replace(/\n$/,"")})]}):(0,r.jsx)("code",{className:"bg-muted/70 px-2 py-1 rounded-md text-sm font-mono text-foreground border",...a,children:t})},pre(e){let{children:s,...t}=e;return(0,r.jsx)("pre",{...t,children:s})},blockquote(e){let{children:s,...t}=e;return(0,r.jsx)("blockquote",{className:"border-l-4 border-primary/30 bg-muted/30 pl-6 pr-4 py-4 my-6 italic rounded-r-lg",...t,children:(0,r.jsx)("div",{className:"text-muted-foreground",children:s})})},a(e){let{children:s,href:t,...a}=e;return(0,r.jsx)("a",{href:t,className:"text-primary hover:text-primary/80 underline underline-offset-4 decoration-primary/30 hover:decoration-primary/60 transition-colors",...a,children:s})},table(e){let{children:s,...t}=e;return(0,r.jsx)("div",{className:"overflow-x-auto my-6 rounded-lg border border-border",children:(0,r.jsx)("table",{className:"min-w-full border-collapse",...t,children:s})})},thead(e){let{children:s,...t}=e;return(0,r.jsx)("thead",{className:"bg-muted/50",...t,children:s})},th(e){let{children:s,...t}=e;return(0,r.jsx)("th",{className:"border-b border-border px-4 py-3 text-left font-semibold text-foreground",...t,children:s})},td(e){let{children:s,...t}=e;return(0,r.jsx)("td",{className:"border-b border-border px-4 py-3 text-foreground",...t,children:s})},hr(e){let{...s}=e;return(0,r.jsx)("hr",{className:"my-8 border-t border-border",...s})},strong(e){let{children:s,...t}=e;return(0,r.jsx)("strong",{className:"font-semibold text-foreground",...t,children:s})},em(e){let{children:s,...t}=e;return(0,r.jsx)("em",{className:"italic text-foreground",...t,children:s})}},children:s})})},Z=e=>{let{content:s,getToolResult:t}=e;if("text"===s.type)return(0,r.jsx)("div",{className:"w-full mx-1 sm:mx-2 my-4 sm:my-6",children:(0,r.jsx)(F,{content:s.text})});if("thinking"===s.type)return(0,r.jsx)(U.Zp,{className:"bg-muted/50 border-dashed gap-2 py-3 mb-2",children:(0,r.jsxs)(z.Nt,{children:[(0,r.jsx)(z.R6,{asChild:!0,children:(0,r.jsx)(U.aR,{className:"cursor-pointer hover:bg-muted/80 rounded-t-lg transition-colors py-0 px-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(w.A,{className:"h-4 w-4 text-muted-foreground"}),(0,r.jsx)(U.ZB,{className:"text-sm font-medium",children:"Thinking"}),(0,r.jsx)(k.A,{className:"h-4 w-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})})}),(0,r.jsx)(z.Ke,{children:(0,r.jsx)(U.Wu,{className:"py-0 px-4",children:(0,r.jsx)("div",{className:"text-sm text-muted-foreground whitespace-pre-wrap font-mono",children:s.thinking})})})]})});if("tool_use"===s.type){let e=t(s.id);return(0,r.jsxs)(U.Zp,{className:"border-blue-200 bg-blue-50/50 dark:border-blue-800 dark:bg-blue-950/20 gap-2 py-3 mb-2",children:[(0,r.jsxs)(U.aR,{className:"py-0 px-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(A.A,{className:"h-4 w-4 text-blue-600 dark:text-blue-400"}),(0,r.jsx)(U.ZB,{className:"text-sm font-medium",children:"Tool Use"}),(0,r.jsx)(_,{variant:"outline",className:"border-blue-300 text-blue-700 dark:border-blue-700 dark:text-blue-300",children:s.name})]}),(0,r.jsxs)(U.BT,{className:"text-xs",children:["Tool execution with ID: ",s.id]})]}),(0,r.jsxs)(U.Wu,{className:"space-y-2 py-0 px-4",children:[(0,r.jsxs)(z.Nt,{children:[(0,r.jsx)(z.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Input Parameters"}),(0,r.jsx)(k.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(z.Ke,{children:(0,r.jsx)(S.A,{style:R.A,language:"json",PreTag:"div",className:"text-xs",children:JSON.stringify(s.input,null,2)})})]}),e&&(0,r.jsxs)(z.Nt,{children:[(0,r.jsx)(z.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Tool Result"}),(0,r.jsx)(k.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(z.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-2 mt-1",children:"string"==typeof e.content?(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words",children:e.content}):e.content.map(e=>{if("image"===e.type)return(0,r.jsx)(C.default,{src:"data:".concat(e.source.media_type,";base64,").concat(e.source.data),alt:"Tool Result"},e.source.data);if("text"===e.type)return(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words",children:e.text},e.text);throw Error("Unexpected tool result content type")})})})]})]})]})}return s.type,null},$=e=>{let{children:s}=e;return(0,r.jsxs)(z.Nt,{children:[(0,r.jsx)(z.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Meta Information"}),(0,r.jsx)(k.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(z.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-3 mt-2",children:s})})]})},K=e=>{let{children:s}=e;return(0,r.jsxs)(z.Nt,{children:[(0,r.jsx)(z.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Summarized"}),(0,r.jsx)(k.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(z.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-3 mt-2",children:(0,r.jsx)("pre",{className:"text-xs overflow-x-auto",children:s})})})]})},O=e=>{let{children:s}=e;return(0,r.jsxs)(z.Nt,{children:[(0,r.jsx)(z.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"System Message"}),(0,r.jsx)(k.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(z.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-3 mt-2",children:(0,r.jsx)("pre",{className:"text-xs overflow-x-auto",children:s})})})]})};var q=t(93021),L=t(28043),W=t(72676),H=t(5556);let V=RegExp("<(?<tag>[^>]+)>(?<content>\\s*[^<]*?\\s*)<\\/\\k<tag>>","g"),G=H.Ik({tag:H.Yj(),content:H.Yj()}),Q=e=>{let{text:s,id:t}=e,a=(e=>{var s,t,r,a;let n=Array.from(e.matchAll(V)).map(e=>G.safeParse(e.groups)).filter(e=>e.success).map(e=>e.data);if(0===n.length)return{kind:"text",content:e};let l=null==(s=n.find(e=>"command-name"===e.tag))?void 0:s.content,i=null==(t=n.find(e=>"command-args"===e.tag))?void 0:t.content,d=null==(r=n.find(e=>"command-message"===e.tag))?void 0:r.content,o=null==(a=n.find(e=>"local-command-stdout"===e.tag))?void 0:a.content;switch(!0){case void 0!==l:return{kind:"command",commandName:l,commandArgs:i,commandMessage:d};case void 0!==o:return{kind:"local-command",stdout:o};default:return{kind:"text",content:e}}})(s);return"command"===a.kind?(0,r.jsxs)(U.Zp,{className:"border-green-200 bg-green-50/50 dark:border-green-800 dark:bg-green-950/20 gap-2 py-3 mb-3",id:t,children:[(0,r.jsx)(U.aR,{className:"py-0 px-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(W.A,{className:"h-4 w-4 text-green-600 dark:text-green-400"}),(0,r.jsx)(U.ZB,{className:"text-sm font-medium",children:"Claude Code Command"}),(0,r.jsx)(_,{variant:"outline",className:"border-green-300 text-green-700 dark:border-green-700 dark:text-green-300",children:a.commandName})]})}),a.commandArgs||a.commandMessage?(0,r.jsx)(U.Wu,{className:"py-0 px-4",children:(0,r.jsx)("div",{className:"space-y-2",children:(0,r.jsxs)("div",{children:[a.commandArgs&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:"Arguments:"}),(0,r.jsx)("div",{className:"bg-background rounded border p-2 mt-1",children:(0,r.jsx)("code",{className:"text-xs whitespace-pre-line",children:a.commandArgs})})]}),a.commandMessage&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:"Message:"}),(0,r.jsx)("div",{className:"bg-background rounded border p-2 mt-1",children:(0,r.jsx)("code",{className:"text-xs whitespace-pre-line",children:a.commandMessage})})]})]})})}):null]}):"local-command"===a.kind?(0,r.jsxs)(U.Zp,{className:"border-green-200 bg-green-50/50 dark:border-green-800 dark:bg-green-950/20 gap-2 py-3 mb-3",children:[(0,r.jsx)(U.aR,{className:"py-0 px-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(W.A,{className:"h-4 w-4 text-green-600 dark:text-green-400"}),(0,r.jsx)(U.ZB,{className:"text-sm font-medium",children:"Local Command"})]})}),(0,r.jsx)(U.Wu,{className:"py-0 px-4",children:(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words",children:a.stdout})})]}):(0,r.jsx)(F,{className:"w-full px-3 py-3 mb-5 border border-border rounded-lg bg-slate-50",content:a.content})},Y=e=>{let{content:s,id:t}=e;return"string"==typeof s?(0,r.jsx)(Q,{text:s,id:t}):"text"===s.type?(0,r.jsx)(Q,{text:s.text,id:t}):"image"===s.type?"base64"===s.source.type?(0,r.jsxs)(U.Zp,{className:"border-purple-200 bg-purple-50/50 dark:border-purple-800 dark:bg-purple-950/20",id:t,children:[(0,r.jsxs)(U.aR,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(q.A,{className:"h-4 w-4 text-purple-600 dark:text-purple-400"}),(0,r.jsx)(U.ZB,{className:"text-sm font-medium",children:"Image"}),(0,r.jsx)(_,{variant:"outline",className:"border-purple-300 text-purple-700 dark:border-purple-700 dark:text-purple-300",children:s.source.media_type})]}),(0,r.jsx)(U.BT,{className:"text-xs",children:"User uploaded image content"})]}),(0,r.jsx)(U.Wu,{children:(0,r.jsx)("div",{className:"rounded-lg border overflow-hidden bg-background",children:(0,r.jsx)(C.default,{src:"data:".concat(s.source.media_type,";base64,").concat(s.source.data),alt:"User uploaded content",className:"max-w-full h-auto max-h-96 object-contain"})})})]}):(0,r.jsx)(U.Zp,{className:"border-red-200 bg-red-50/50 dark:border-red-800 dark:bg-red-950/20",id:t,children:(0,r.jsxs)(U.aR,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(L.A,{className:"h-4 w-4 text-red-600 dark:text-red-400"}),(0,r.jsx)(U.ZB,{className:"text-sm font-medium",children:"Unsupported Media"}),(0,r.jsx)(_,{variant:"destructive",children:"Error"})]}),(0,r.jsx)(U.BT,{className:"text-xs",children:"Media type not supported for display"})]})}):(s.type,null)},J=e=>{let{conversation:s,getToolResult:t,isRootSidechain:a,getSidechainConversations:n}=e;if("summary"===s.type)return(0,r.jsx)(K,{children:s.summary});if("system"===s.type)return(0,r.jsx)(O,{children:s.content});if(s.isSidechain)return a(s)?(0,r.jsx)(y,{conversation:s,sidechainConversations:n(s.uuid).map(e=>"summary"===e.type?e:{...e,isSidechain:!1}),getToolResult:t}):null;if("user"===s.type){let e="string"==typeof s.message.content?(0,r.jsx)(Y,{content:s.message.content,id:"message-".concat(s.uuid)}):(0,r.jsx)("ul",{className:"w-full",id:"message-".concat(s.uuid),children:s.message.content.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(Y,{content:e})},e.toString()))});return!0===s.isMeta?(0,r.jsx)($,{children:e}):e}return"assistant"===s.type?(0,r.jsx)("ul",{className:"w-full",children:s.message.content.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(Z,{content:e,getToolResult:t})},e.toString()))}):null},X=e=>{if("user"===e.type)return"user_".concat(e.uuid);if("assistant"===e.type)return"assistant_".concat(e.uuid);if("system"===e.type)return"system_".concat(e.uuid);if("summary"===e.type)return"summary_".concat(e.leafUuid);throw Error("Unknown conversation type: ".concat(e))},ee=e=>{let{conversations:s,getToolResult:t}=e,{isRootSidechain:a,getSidechainConversations:n}=(e=>{let s=(0,u.useMemo)(()=>new Map(e.filter(e=>"summary"!==e.type).map(e=>[e.uuid,e])),[e]),t=(0,u.useCallback)(e=>{if("summary"===e.type||null===e.parentUuid)return e;let r=s.get(e.parentUuid);return void 0===r?e:t(r)},[s]),r=(0,u.useMemo)(()=>{let s=e.filter(e=>"summary"!==e.type).filter(e=>!0===e.isSidechain),r=new Map;for(let e of s){let s=t(e);if("summary"!==s.type)if(r.has(s.uuid)){var a;null==(a=r.get(s.uuid))||a.push(e)}else r.set(s.uuid,[e])}return r},[e,t]);return{isRootSidechain:(0,u.useCallback)(e=>"summary"!==e.type&&r.has(e.uuid),[r]),getSidechainConversations:(0,u.useCallback)(e=>{var s;return null!=(s=r.get(e))?s:[]},[r])}})((0,u.useMemo)(()=>s.filter(e=>"x-error"!==e.type),[s]));return(0,r.jsx)("ul",{children:s.flatMap(e=>{if("x-error"===e.type)return(0,r.jsx)("div",{className:"w-full max-w-4xl sm:w-[90%] md:w-[85%]",children:e.line},"error_".concat(e.line));let s=(0,r.jsx)(J,{conversation:e,getToolResult:t,isRootSidechain:a,getSidechainConversations:n},X(e)),l="summary"!==e.type&&e.isSidechain;return[(0,r.jsx)("li",{className:"w-full flex ".concat(l||"assistant"===e.type||"system"===e.type||"summary"===e.type?"justify-start":"justify-end"),children:(0,r.jsx)("div",{className:"w-full max-w-4xl sm:w-[90%] md:w-[85%]",children:s})},X(e))]})})};var es=t(70038),et=t(79588),er=t(31264),ea=t(19611);let en=e=>{let{projectId:s,sessionId:t,isPausedTask:n,isRunningTask:l}=e,d=(0,et.useRouter)(),o=(0,u.useRef)(null),c=(0,a.useMutation)({mutationFn:async e=>{let r=await h.s.api.projects[":projectId"].sessions[":sessionId"].resume.$post({param:{projectId:s,sessionId:t},json:{resumeMessage:e.message}});if(!r.ok)throw Error(r.statusText);return r.json()},onSuccess:async e=>{t!==e.sessionId&&d.push("/projects/".concat(s,"/sessions/").concat(e.sessionId,"#message-").concat(e.userMessageId)),p("")}}),[m,p]=(0,u.useState)(""),g=(0,u.useRef)(null),f=(0,u.useId)(),b=()=>{m.trim()&&c.mutate({message:m.trim()})};return(0,r.jsxs)("div",{className:"border-t border-border/50 bg-muted/20 p-4 mt-6",children:[c.error&&(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 mb-3 text-sm text-destructive bg-destructive/10 border border-destructive/20 rounded-md",children:[(0,r.jsx)(L.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{children:"Failed to resume chat. Please try again."})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(er.T,{ref:o,value:m,onChange:e=>p(e.target.value),onKeyDown:e=>{var s;(null==(s=g.current)||!s.handleKeyDown(e))&&"Enter"===e.key&&e.shiftKey&&(e.preventDefault(),b())},placeholder:"Type your message... (Start with / for commands, Shift+Enter to send)",className:"min-h-[60px] resize-none",disabled:c.isPending,maxLength:4e3,"aria-label":"Message input with command completion","aria-describedby":f,"aria-expanded":m.startsWith("/"),"aria-haspopup":"listbox",role:"combobox","aria-autocomplete":"list"}),(0,r.jsx)(ea.s,{ref:g,projectId:s,inputValue:m,onCommandSelect:e=>{var s;p(e),null==(s=o.current)||s.focus()},className:"absolute top-full left-0 right-0"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("span",{className:"text-xs text-muted-foreground",id:f,children:[m.length,"/4000"]}),(0,r.jsx)(x.$,{onClick:b,disabled:!m.trim()||c.isPending,size:"default",className:"gap-2",children:c.isPending?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.A,{className:"w-4 h-4 animate-spin"}),"Sending... This may take a while."]}):n||l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(es.A,{className:"w-4 h-4"}),"Send"]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(es.A,{className:"w-4 h-4"}),"Resume"]})})]})]})]})};var el=t(26057),ei=t(5685),ed=t(62520),eo=t(51290);let ec=e=>{let{sessions:s,currentSessionId:t,projectId:a}=e,n=(0,f.md)(b.r),l=[...s].sort((e,s)=>{let t=n.find(s=>s.sessionId===e.id),r=n.find(e=>e.sessionId===s.id),a=null==t?void 0:t.status,l=null==r?void 0:r.status,i=e=>"running"===e?0:"paused"===e?1:2,d=i(a),o=i(l);if(d!==o)return d-o;let c=e.meta.lastModifiedAt?new Date(e.meta.lastModifiedAt).getTime():0;return(s.meta.lastModifiedAt?new Date(s.meta.lastModifiedAt).getTime():0)-c});return(0,r.jsxs)("div",{className:"h-full flex flex-col",children:[(0,r.jsxs)("div",{className:"border-b border-sidebar-border p-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsx)("h2",{className:"font-semibold text-lg",children:"Sessions"}),(0,r.jsx)(eo.c,{projectId:a,trigger:(0,r.jsxs)(x.$,{size:"sm",variant:"outline",className:"gap-1.5",children:[(0,r.jsx)(ed.A,{className:"w-3.5 h-3.5"}),"New"]})})]}),(0,r.jsxs)("p",{className:"text-xs text-sidebar-foreground/70",children:[s.length," total"]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto p-2 space-y-0.5",children:l.map(e=>{let s=e.id===t,l=null!==e.meta.firstCommand?(0,p.H)(e.meta.firstCommand):e.id,i=n.find(s=>s.sessionId===e.id),d=(null==i?void 0:i.status)==="running",o=(null==i?void 0:i.status)==="paused";return(0,r.jsx)(m(),{href:"/projects/".concat(a,"/sessions/").concat(encodeURIComponent(e.id)),className:(0,I.cn)("block rounded-lg p-2.5 transition-all duration-200 hover:bg-blue-50/60 hover:border-blue-300/60 hover:shadow-sm border border-sidebar-border/40 bg-sidebar/30",s&&"bg-blue-100 border-blue-400 shadow-md ring-1 ring-blue-200/50 hover:bg-blue-100 hover:border-blue-400"),children:(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,r.jsx)("h3",{className:"text-sm font-medium line-clamp-2 leading-tight text-sidebar-foreground flex-1",children:l}),(d||o)&&(0,r.jsx)(_,{variant:d?"default":"secondary",className:(0,I.cn)("text-xs",d&&"bg-green-500 text-white",o&&"bg-yellow-500 text-white"),children:d?"Running":"Paused"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 text-xs text-sidebar-foreground/70",children:[(0,r.jsx)(el.A,{className:"w-3 h-3"}),(0,r.jsx)("span",{children:e.meta.messageCount})]}),e.meta.lastModifiedAt&&(0,r.jsx)("span",{className:"text-xs text-sidebar-foreground/60",children:new Date(e.meta.lastModifiedAt).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]})]})},e.id)})})]})};var em=t(57981);let eu=()=>(0,r.jsxs)("div",{className:"h-full flex flex-col",children:[(0,r.jsxs)("div",{className:"border-b border-sidebar-border p-4",children:[(0,r.jsx)("h2",{className:"font-semibold text-lg",children:"Settings"}),(0,r.jsx)("p",{className:"text-xs text-sidebar-foreground/70",children:"Display and behavior preferences"})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto p-4 space-y-6",children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("h3",{className:"font-medium text-sm text-sidebar-foreground",children:"Session Display"}),(0,r.jsx)(em.o,{})]})})]}),ex=e=>{let{currentSessionId:s,projectId:t,className:a,isMobileOpen:n=!1,onMobileOpenChange:l}=e,{data:{sessions:i}}=(0,ei.B)(t),[d,o]=(0,u.useState)("sessions"),[c,m]=(0,u.useState)(!0),x=e=>{d===e&&c?m(!1):(o(e),m(!0))},h=(0,r.jsxs)("div",{className:(0,I.cn)("h-full border-r border-sidebar-border transition-all duration-300 ease-in-out flex bg-sidebar text-sidebar-foreground",c?"w-72 lg:w-80":"w-12"),children:[(0,r.jsx)("div",{className:"w-12 flex flex-col border-r border-sidebar-border bg-sidebar/50",children:(0,r.jsxs)("div",{className:"flex flex-col p-2 space-y-1",children:[(0,r.jsx)("button",{type:"button",onClick:()=>x("sessions"),className:(0,I.cn)("w-8 h-8 flex items-center justify-center rounded-md transition-colors","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","sessions"===d&&c?"bg-sidebar-accent text-sidebar-accent-foreground shadow-sm":"text-sidebar-foreground/70"),title:"Sessions",children:(0,r.jsx)(el.A,{className:"w-4 h-4"})}),(0,r.jsx)("button",{type:"button",onClick:()=>x("settings"),className:(0,I.cn)("w-8 h-8 flex items-center justify-center rounded-md transition-colors","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","settings"===d&&c?"bg-sidebar-accent text-sidebar-accent-foreground shadow-sm":"text-sidebar-foreground/70"),title:"Settings",children:(0,r.jsx)(A.A,{className:"w-4 h-4"})})]})}),c&&(0,r.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden",children:(()=>{switch(d){case"sessions":return(0,r.jsx)(ec,{sessions:i,currentSessionId:s,projectId:t});case"settings":return(0,r.jsx)(eu,{});default:return null}})()})]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,I.cn)("hidden md:flex h-full",a),children:h}),(0,r.jsx)("div",{className:"md:hidden",children:(0,r.jsx)(N.lG,{open:n,onOpenChange:l,children:(0,r.jsx)(N.Cf,{className:"p-0 max-w-sm w-full h-[90vh] max-h-[90vh] overflow-hidden flex flex-col",children:(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:h})})})})]})},eh=e=>{let{projectId:s,sessionId:t}=e,{session:c,conversations:v,getToolResult:N}=((e,s)=>{let t=(0,j.useSuspenseQuery)({...((e,s)=>({queryKey:["sessions",s],queryFn:async()=>(await h.s.api.projects[":projectId"].sessions[":sessionId"].$get({param:{projectId:e,sessionId:s}})).json()}))(e,s)}),r=(0,u.useMemo)(()=>new Map(t.data.session.conversations.flatMap(e=>"user"!==e.type||"string"==typeof e.message.content?[]:e.message.content.flatMap(e=>"string"==typeof e||"tool_result"!==e.type?[]:[[e.tool_use_id,e]]))),[t.data.session.conversations]),a=(0,u.useCallback)(e=>r.get(e),[r]);return{session:t.data.session,conversations:t.data.session.conversations,getToolResult:a}})(s,t),y=(0,a.useMutation)({mutationFn:async e=>{let s=await h.s.api.tasks.abort.$post({json:{sessionId:e}});if(!s.ok)throw Error(s.statusText);return s.json()}}),{isRunningTask:w,isPausedTask:k}=(e=>{let[s,t]=(0,f.fp)(b.r);return(0,g.useQuery)({queryKey:["aliveTasks"],queryFn:async()=>{let e=await h.s.api.tasks.alive.$get({});if(!e.ok)throw Error(e.statusText);return t((await e.json()).aliveTasks),e.json()},refetchOnReconnect:!0}),(0,u.useMemo)(()=>{let t=s.find(s=>s.sessionId===e);return{aliveTask:s.find(s=>s.sessionId===e),isRunningTask:(null==t?void 0:t.status)==="running",isPausedTask:(null==t?void 0:t.status)==="paused"}},[s,e])})(t),[A,C]=(0,u.useState)(0),[S,R]=(0,u.useState)(!1),M=(0,u.useRef)(null);return(0,u.useEffect)(()=>{if((w||k)&&v.length!==A){C(v.length);let e=M.current;e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}},[v,w,k,A]),(0,r.jsxs)("div",{className:"flex h-screen",children:[(0,r.jsx)(ex,{currentSessionId:t,projectId:s,isMobileOpen:S,onMobileOpenChange:R}),(0,r.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden",children:(0,r.jsxs)("div",{ref:M,className:"max-w-none flex-1 overflow-y-auto",children:[(0,r.jsxs)("header",{className:"px-2 sm:px-3 py-3 sticky top-0 z-10 bg-background w-full",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,r.jsx)(x.$,{variant:"ghost",size:"sm",className:"md:hidden",onClick:()=>R(!0),children:(0,r.jsx)(n.A,{className:"w-4 h-4"})}),(0,r.jsx)(x.$,{asChild:!0,variant:"ghost",children:(0,r.jsxs)(m(),{href:"/projects/".concat(s),className:"flex items-center gap-2",children:[(0,r.jsx)(l.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Back to Session List"}),(0,r.jsx)("span",{className:"sm:hidden",children:"Back"})]})})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("div",{className:"flex items-center gap-3",children:(0,r.jsx)("h1",{className:"text-xl sm:text-2xl md:text-3xl font-bold break-words overflow-ellipsis line-clamp-2 px-2 sm:px-5",children:null!==c.meta.firstCommand?(0,p.H)(c.meta.firstCommand):t})}),w&&(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-primary/10 border border-primary/20 rounded-lg",children:[(0,r.jsx)(i.A,{className:"w-4 h-4 animate-spin"}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)("p",{className:"text-sm font-medium",children:"Conversation is in progress..."})}),(0,r.jsxs)(x.$,{variant:"ghost",size:"sm",onClick:()=>{y.mutate(t)},children:[(0,r.jsx)(d.A,{className:"w-4 h-4"}),"Abort"]})]}),k&&(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-primary/10 border border-primary/20 rounded-lg",children:[(0,r.jsx)(o.A,{className:"w-4 h-4"}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)("p",{className:"text-sm font-medium",children:"Conversation is paused..."})}),(0,r.jsxs)(x.$,{variant:"ghost",size:"sm",onClick:()=>{y.mutate(t)},children:[(0,r.jsx)(d.A,{className:"w-4 h-4"}),"Abort"]})]}),(0,r.jsxs)("p",{className:"text-muted-foreground font-mono text-sm",children:["Session ID: ",t]})]})]}),(0,r.jsxs)("main",{className:"w-full px-4 sm:px-8 md:px-12 lg:px-16 xl:px-20 pb-10 relative z-5",children:[(0,r.jsx)(ee,{conversations:v,getToolResult:N}),(0,r.jsx)(en,{projectId:s,sessionId:t,isPausedTask:k,isRunningTask:w})]})]})})]})}},89854:(e,s,t)=>{"use strict";t.d(s,{r:()=>r});let r=(0,t(48304).eU)([])}},e=>{e.O(0,[33,150,156,608,960,5,900,341,358],()=>e(e.s=82791)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[998],{34163:(e,s,t)=>{"use strict";t.d(s,{SessionPageContent:()=>eN});var r=t(89835),a=t(59054),n=t(4015),l=t(50417),i=t(58903),d=t(93856),o=t(38514),c=t(75123),m=t.n(c),u=t(55931),x=t(80942),h=t(53630),p=t(72667),g=t(63812),f=t(27608),b=t(89854),j=t(45320),v=t(42251),N=t(5530),y=t(64426),w=t(7951),k=t(18237);let A=(0,w.F)("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function C(e){let{className:s,variant:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,k.cn)(A({variant:t}),s),...a})}function S(e){let{className:s,...t}=e;return(0,r.jsx)("div",{"data-slot":"alert-title",className:(0,k.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",s),...t})}function R(e){let{className:s,...t}=e;return(0,r.jsx)("div",{"data-slot":"alert-description",className:(0,k.cn)("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",s),...t})}var T=t(45730),M=t(41633),I=t(40138);let P=e=>{let{conversation:s,sidechainConversations:t,getToolResult:a}=e,n=(e=>{let s=e.at(0),t="".concat(e.length," conversations (").concat((null==s?void 0:s.type)!=="summary"?null==s?void 0:s.uuid:"",")");if(!s||"user"!==s.type)return t;let r="string"==typeof s.message.content?s.message.content:(()=>{let e=s.message.content.at(0);return void 0===e?null:"string"==typeof e?e:"text"===e.type?e.text:null})();return null!=r?r:t})(t),l="summary"!==s.type?s.uuid:s.leafUuid;return(0,r.jsxs)(I.lG,{children:[(0,r.jsx)(I.zM,{asChild:!0,children:(0,r.jsx)(x.$,{variant:"outline",size:"sm",className:"w-full mb-3 items-center justify-start",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(M.A,{className:"h-4 w-4 flex-shrink-0"}),(0,r.jsxs)("span",{className:"overflow-hidden text-ellipsis",children:["View Task: ",n]})]})})}),(0,r.jsxs)(I.Cf,{className:"!w-[1200px] !max-w-none max-h-[80vh] overflow-hidden flex flex-col",children:[(0,r.jsxs)(I.c7,{children:[(0,r.jsx)(I.L3,{children:n.length>100?"".concat(n.slice(0,100),"..."):n}),(0,r.jsxs)(I.rr,{children:["Root UUID: ",l]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-auto",children:(0,r.jsx)(ei,{conversations:t,getToolResult:a})})]})]})};var _=t(55407),E=t(9005),U=t(68607),z=t(36703),D=t(83632),F=t(8607);let B=(0,w.F)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function K(e){let{className:s,variant:t,asChild:a=!1,...n}=e,l=a?F.DX:"span";return(0,r.jsx)(l,{"data-slot":"badge",className:(0,k.cn)(B({variant:t}),s),...n})}var Z=t(75284),$=t(35853),L=t(35880),O=t(96318);let q=e=>{let{content:s,className:t=""}=e;return(0,r.jsx)("div",{className:"prose prose-neutral dark:prose-invert max-w-none ".concat(t),children:(0,r.jsx)($.oz,{remarkPlugins:[O.A],components:{h1(e){let{children:s,...t}=e;return(0,r.jsx)("h1",{className:"text-3xl font-bold mb-6 mt-8 pb-3 border-b border-border text-foreground",...t,children:s})},h2(e){let{children:s,...t}=e;return(0,r.jsx)("h2",{className:"text-2xl font-semibold mb-4 mt-8 pb-2 border-b border-border/50 text-foreground",...t,children:s})},h3(e){let{children:s,...t}=e;return(0,r.jsx)("h3",{className:"text-xl font-semibold mb-3 mt-6 text-foreground",...t,children:s})},h4(e){let{children:s,...t}=e;return(0,r.jsx)("h4",{className:"text-lg font-medium mb-2 mt-4 text-foreground",...t,children:s})},h5(e){let{children:s,...t}=e;return(0,r.jsx)("h5",{className:"text-base font-medium mb-2 mt-4 text-foreground",...t,children:s})},h6(e){let{children:s,...t}=e;return(0,r.jsx)("h6",{className:"text-sm font-medium mb-2 mt-4 text-muted-foreground",...t,children:s})},p(e){let{children:s,...t}=e;return(0,r.jsx)("p",{className:"mb-4 leading-7 text-foreground",...t,children:s})},ul(e){let{children:s,...t}=e;return(0,r.jsx)("ul",{className:"mb-4 ml-6 list-disc space-y-2",...t,children:s})},ol(e){let{children:s,...t}=e;return(0,r.jsx)("ol",{className:"mb-4 ml-6 list-decimal space-y-2",...t,children:s})},li(e){let{children:s,...t}=e;return(0,r.jsx)("li",{className:"leading-7 text-foreground",...t,children:s})},code(e){let{className:s,children:t,...a}=e,n=/language-(\w+)/.exec(s||"");return n?(0,r.jsxs)("div",{className:"relative my-6",children:[(0,r.jsx)("div",{className:"flex items-center justify-between bg-muted/30 px-4 py-2 border-b border-border rounded-t-lg",children:(0,r.jsx)("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:n[1]})}),(0,r.jsx)(z.A,{style:L.A,language:n[1],PreTag:"div",className:"!mt-0 !rounded-t-none !rounded-b-lg !border-t-0 !border !border-border",customStyle:{margin:0,borderTopLeftRadius:0,borderTopRightRadius:0},children:String(t).replace(/\n$/,"")})]}):(0,r.jsx)("code",{className:"bg-muted/70 px-2 py-1 rounded-md text-sm font-mono text-foreground border",...a,children:t})},pre(e){let{children:s,...t}=e;return(0,r.jsx)("pre",{...t,children:s})},blockquote(e){let{children:s,...t}=e;return(0,r.jsx)("blockquote",{className:"border-l-4 border-primary/30 bg-muted/30 pl-6 pr-4 py-4 my-6 italic rounded-r-lg",...t,children:(0,r.jsx)("div",{className:"text-muted-foreground",children:s})})},a(e){let{children:s,href:t,...a}=e;return(0,r.jsx)("a",{href:t,className:"text-primary hover:text-primary/80 underline underline-offset-4 decoration-primary/30 hover:decoration-primary/60 transition-colors",...a,children:s})},table(e){let{children:s,...t}=e;return(0,r.jsx)("div",{className:"overflow-x-auto my-6 rounded-lg border border-border",children:(0,r.jsx)("table",{className:"min-w-full border-collapse",...t,children:s})})},thead(e){let{children:s,...t}=e;return(0,r.jsx)("thead",{className:"bg-muted/50",...t,children:s})},th(e){let{children:s,...t}=e;return(0,r.jsx)("th",{className:"border-b border-border px-4 py-3 text-left font-semibold text-foreground",...t,children:s})},td(e){let{children:s,...t}=e;return(0,r.jsx)("td",{className:"border-b border-border px-4 py-3 text-foreground",...t,children:s})},hr(e){let{...s}=e;return(0,r.jsx)("hr",{className:"my-8 border-t border-border",...s})},strong(e){let{children:s,...t}=e;return(0,r.jsx)("strong",{className:"font-semibold text-foreground",...t,children:s})},em(e){let{children:s,...t}=e;return(0,r.jsx)("em",{className:"italic text-foreground",...t,children:s})}},children:s})})},W=e=>{let{content:s,getToolResult:t}=e;if("text"===s.type)return(0,r.jsx)("div",{className:"w-full mx-1 sm:mx-2 my-4 sm:my-6",children:(0,r.jsx)(q,{content:s.text})});if("thinking"===s.type)return(0,r.jsx)(Z.Zp,{className:"bg-muted/50 border-dashed gap-2 py-3 mb-2",children:(0,r.jsxs)(T.Nt,{children:[(0,r.jsx)(T.R6,{asChild:!0,children:(0,r.jsx)(Z.aR,{className:"cursor-pointer hover:bg-muted/80 rounded-t-lg transition-colors py-0 px-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(_.A,{className:"h-4 w-4 text-muted-foreground"}),(0,r.jsx)(Z.ZB,{className:"text-sm font-medium",children:"Thinking"}),(0,r.jsx)(N.A,{className:"h-4 w-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})})}),(0,r.jsx)(T.Ke,{children:(0,r.jsx)(Z.Wu,{className:"py-0 px-4",children:(0,r.jsx)("div",{className:"text-sm text-muted-foreground whitespace-pre-wrap font-mono",children:s.thinking})})})]})});if("tool_use"===s.type){let e=t(s.id);return(0,r.jsxs)(Z.Zp,{className:"border-blue-200 bg-blue-50/50 dark:border-blue-800 dark:bg-blue-950/20 gap-2 py-3 mb-2",children:[(0,r.jsxs)(Z.aR,{className:"py-0 px-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(E.A,{className:"h-4 w-4 text-blue-600 dark:text-blue-400"}),(0,r.jsx)(Z.ZB,{className:"text-sm font-medium",children:"Tool Use"}),(0,r.jsx)(K,{variant:"outline",className:"border-blue-300 text-blue-700 dark:border-blue-700 dark:text-blue-300",children:s.name})]}),(0,r.jsxs)(Z.BT,{className:"text-xs",children:["Tool execution with ID: ",s.id]})]}),(0,r.jsxs)(Z.Wu,{className:"space-y-2 py-0 px-4",children:[(0,r.jsxs)(T.Nt,{children:[(0,r.jsx)(T.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Input Parameters"}),(0,r.jsx)(N.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(T.Ke,{children:(0,r.jsx)(z.A,{style:D.A,language:"json",PreTag:"div",className:"text-xs",children:JSON.stringify(s.input,null,2)})})]}),e&&(0,r.jsxs)(T.Nt,{children:[(0,r.jsx)(T.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Tool Result"}),(0,r.jsx)(N.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(T.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-2 mt-1",children:"string"==typeof e.content?(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words",children:e.content}):e.content.map(e=>{if("image"===e.type)return(0,r.jsx)(U.default,{src:"data:".concat(e.source.media_type,";base64,").concat(e.source.data),alt:"Tool Result"},e.source.data);if("text"===e.type)return(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words",children:e.text},e.text);throw Error("Unexpected tool result content type")})})})]})]})]})}return s.type,null},V=e=>{let{children:s}=e;return(0,r.jsxs)(T.Nt,{children:[(0,r.jsx)(T.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Meta Information"}),(0,r.jsx)(N.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(T.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-3 mt-2",children:s})})]})},H=e=>{let{children:s}=e;return(0,r.jsxs)(T.Nt,{children:[(0,r.jsx)(T.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Summarized"}),(0,r.jsx)(N.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(T.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-3 mt-2",children:(0,r.jsx)("pre",{className:"text-xs overflow-x-auto",children:s})})})]})},G=e=>{let{children:s}=e;return(0,r.jsxs)(T.Nt,{children:[(0,r.jsx)(T.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"System Message"}),(0,r.jsx)(N.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(T.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-3 mt-2",children:(0,r.jsx)("pre",{className:"text-xs overflow-x-auto",children:s})})})]})};var Q=t(93021),Y=t(28043),J=t(72676),X=t(5556);let ee=RegExp("<(?<tag>[^>]+)>(?<content>\\s*[^<]*?\\s*)<\\/\\k<tag>>","g"),es=X.Ik({tag:X.Yj(),content:X.Yj()}),et=e=>{let{text:s,id:t}=e,a=(e=>{var s,t,r,a;let n=Array.from(e.matchAll(ee)).map(e=>es.safeParse(e.groups)).filter(e=>e.success).map(e=>e.data);if(0===n.length)return{kind:"text",content:e};let l=null==(s=n.find(e=>"command-name"===e.tag))?void 0:s.content,i=null==(t=n.find(e=>"command-args"===e.tag))?void 0:t.content,d=null==(r=n.find(e=>"command-message"===e.tag))?void 0:r.content,o=null==(a=n.find(e=>"local-command-stdout"===e.tag))?void 0:a.content;switch(!0){case void 0!==l:return{kind:"command",commandName:l,commandArgs:i,commandMessage:d};case void 0!==o:return{kind:"local-command",stdout:o};default:return{kind:"text",content:e}}})(s);return"command"===a.kind?(0,r.jsxs)(Z.Zp,{className:"border-green-200 bg-green-50/50 dark:border-green-800 dark:bg-green-950/20 gap-2 py-3 mb-3",id:t,children:[(0,r.jsx)(Z.aR,{className:"py-0 px-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(J.A,{className:"h-4 w-4 text-green-600 dark:text-green-400"}),(0,r.jsx)(Z.ZB,{className:"text-sm font-medium",children:"Claude Code Command"}),(0,r.jsx)(K,{variant:"outline",className:"border-green-300 text-green-700 dark:border-green-700 dark:text-green-300",children:a.commandName})]})}),a.commandArgs||a.commandMessage?(0,r.jsx)(Z.Wu,{className:"py-0 px-4",children:(0,r.jsx)("div",{className:"space-y-2",children:(0,r.jsxs)("div",{children:[a.commandArgs&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:"Arguments:"}),(0,r.jsx)("div",{className:"bg-background rounded border p-2 mt-1",children:(0,r.jsx)("code",{className:"text-xs whitespace-pre-line",children:a.commandArgs})})]}),a.commandMessage&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:"Message:"}),(0,r.jsx)("div",{className:"bg-background rounded border p-2 mt-1",children:(0,r.jsx)("code",{className:"text-xs whitespace-pre-line",children:a.commandMessage})})]})]})})}):null]}):"local-command"===a.kind?(0,r.jsxs)(Z.Zp,{className:"border-green-200 bg-green-50/50 dark:border-green-800 dark:bg-green-950/20 gap-2 py-3 mb-3",children:[(0,r.jsx)(Z.aR,{className:"py-0 px-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(J.A,{className:"h-4 w-4 text-green-600 dark:text-green-400"}),(0,r.jsx)(Z.ZB,{className:"text-sm font-medium",children:"Local Command"})]})}),(0,r.jsx)(Z.Wu,{className:"py-0 px-4",children:(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words",children:a.stdout})})]}):(0,r.jsx)(q,{className:"w-full px-3 py-3 mb-5 border border-border rounded-lg bg-slate-50",content:a.content})},er=e=>{let{content:s,id:t}=e;return"string"==typeof s?(0,r.jsx)(et,{text:s,id:t}):"text"===s.type?(0,r.jsx)(et,{text:s.text,id:t}):"image"===s.type?"base64"===s.source.type?(0,r.jsxs)(Z.Zp,{className:"border-purple-200 bg-purple-50/50 dark:border-purple-800 dark:bg-purple-950/20",id:t,children:[(0,r.jsxs)(Z.aR,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(Q.A,{className:"h-4 w-4 text-purple-600 dark:text-purple-400"}),(0,r.jsx)(Z.ZB,{className:"text-sm font-medium",children:"Image"}),(0,r.jsx)(K,{variant:"outline",className:"border-purple-300 text-purple-700 dark:border-purple-700 dark:text-purple-300",children:s.source.media_type})]}),(0,r.jsx)(Z.BT,{className:"text-xs",children:"User uploaded image content"})]}),(0,r.jsx)(Z.Wu,{children:(0,r.jsx)("div",{className:"rounded-lg border overflow-hidden bg-background",children:(0,r.jsx)(U.default,{src:"data:".concat(s.source.media_type,";base64,").concat(s.source.data),alt:"User uploaded content",className:"max-w-full h-auto max-h-96 object-contain"})})})]}):(0,r.jsx)(Z.Zp,{className:"border-red-200 bg-red-50/50 dark:border-red-800 dark:bg-red-950/20",id:t,children:(0,r.jsxs)(Z.aR,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(Y.A,{className:"h-4 w-4 text-red-600 dark:text-red-400"}),(0,r.jsx)(Z.ZB,{className:"text-sm font-medium",children:"Unsupported Media"}),(0,r.jsx)(K,{variant:"destructive",children:"Error"})]}),(0,r.jsx)(Z.BT,{className:"text-xs",children:"Media type not supported for display"})]})}):(s.type,null)},ea=e=>{let{conversation:s,getToolResult:t,isRootSidechain:a,getSidechainConversations:n}=e;if("summary"===s.type)return(0,r.jsx)(H,{children:s.summary});if("system"===s.type)return(0,r.jsx)(G,{children:s.content});if(s.isSidechain)return a(s)?(0,r.jsx)(P,{conversation:s,sidechainConversations:n(s.uuid).map(e=>"summary"===e.type?e:{...e,isSidechain:!1}),getToolResult:t}):null;if("user"===s.type){let e="string"==typeof s.message.content?(0,r.jsx)(er,{content:s.message.content,id:"message-".concat(s.uuid)}):(0,r.jsx)("ul",{className:"w-full",id:"message-".concat(s.uuid),children:s.message.content.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(er,{content:e})},e.toString()))});return!0===s.isMeta?(0,r.jsx)(V,{children:e}):e}return"assistant"===s.type?(0,r.jsx)("ul",{className:"w-full",children:s.message.content.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(W,{content:e,getToolResult:t})},e.toString()))}):null},en=e=>{if("user"===e.type)return"user_".concat(e.uuid);if("assistant"===e.type)return"assistant_".concat(e.uuid);if("system"===e.type)return"system_".concat(e.uuid);if("summary"===e.type)return"summary_".concat(e.leafUuid);throw Error("Unknown conversation type: ".concat(e))},el=e=>{let{errorLine:s}=e;return(0,r.jsx)("li",{className:"w-full flex justify-start",children:(0,r.jsx)("div",{className:"w-full max-w-4xl sm:w-[90%] md:w-[85%] px-2",children:(0,r.jsxs)(T.Nt,{children:[(0,r.jsx)(T.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2 border-l-2 border-red-400",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(v.A,{className:"h-3 w-3 text-red-500"}),(0,r.jsx)("span",{className:"text-xs font-medium text-red-600",children:"Schema Error"})]}),(0,r.jsx)(N.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(T.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border border-red-200 p-3 mt-2",children:(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)(C,{variant:"destructive",className:"border-red-200 bg-red-50",children:[(0,r.jsx)(v.A,{className:"h-4 w-4"}),(0,r.jsx)(S,{className:"text-red-800",children:"Schema Validation Error"}),(0,r.jsxs)(R,{className:"text-red-700",children:["This conversation entry failed to parse correctly. This might indicate a format change or parsing issue."," ",(0,r.jsxs)("a",{href:"https://github.com/d-kimuson/claude-code-viewer/issues",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-red-600 hover:text-red-800 underline underline-offset-4",children:["Report this issue",(0,r.jsx)(y.A,{className:"h-3 w-3"})]})]})]}),(0,r.jsxs)("div",{className:"bg-gray-50 border rounded px-3 py-2",children:[(0,r.jsx)("h5",{className:"text-xs font-medium text-gray-700 mb-2",children:"Raw Content:"}),(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-all font-mono text-gray-800",children:s})]})]})})})]})})})},ei=e=>{let{conversations:s,getToolResult:t}=e,{isRootSidechain:a,getSidechainConversations:n}=(e=>{let s=(0,u.useMemo)(()=>new Map(e.filter(e=>"summary"!==e.type).map(e=>[e.uuid,e])),[e]),t=(0,u.useCallback)(e=>{if("summary"===e.type||null===e.parentUuid)return e;let r=s.get(e.parentUuid);return void 0===r?e:t(r)},[s]),r=(0,u.useMemo)(()=>{let s=e.filter(e=>"summary"!==e.type).filter(e=>!0===e.isSidechain),r=new Map;for(let e of s){let s=t(e);if("summary"!==s.type)if(r.has(s.uuid)){var a;null==(a=r.get(s.uuid))||a.push(e)}else r.set(s.uuid,[e])}return r},[e,t]);return{isRootSidechain:(0,u.useCallback)(e=>"summary"!==e.type&&r.has(e.uuid),[r]),getSidechainConversations:(0,u.useCallback)(e=>{var s;return null!=(s=r.get(e))?s:[]},[r])}})((0,u.useMemo)(()=>s.filter(e=>"x-error"!==e.type),[s]));return(0,r.jsx)("ul",{children:s.flatMap(e=>{if("x-error"===e.type)return(0,r.jsx)(el,{errorLine:e.line},"error_".concat(e.line));let s=(0,r.jsx)(ea,{conversation:e,getToolResult:t,isRootSidechain:a,getSidechainConversations:n},en(e)),l="summary"!==e.type&&e.isSidechain;return[(0,r.jsx)("li",{className:"w-full flex ".concat(l||"assistant"===e.type||"system"===e.type||"summary"===e.type?"justify-start":"justify-end"),children:(0,r.jsx)("div",{className:"w-full max-w-4xl sm:w-[90%] md:w-[85%]",children:s})},en(e))]})})};var ed=t(70038),eo=t(79588),ec=t(31264),em=t(19611);let eu=e=>{let{projectId:s,sessionId:t,isPausedTask:n,isRunningTask:l}=e,d=(0,eo.useRouter)(),o=(0,u.useRef)(null),c=(0,a.useMutation)({mutationFn:async e=>{let r=await h.s.api.projects[":projectId"].sessions[":sessionId"].resume.$post({param:{projectId:s,sessionId:t},json:{resumeMessage:e.message}});if(!r.ok)throw Error(r.statusText);return r.json()},onSuccess:async e=>{t!==e.sessionId&&d.push("/projects/".concat(s,"/sessions/").concat(e.sessionId,"#message-").concat(e.userMessageId)),p("")}}),[m,p]=(0,u.useState)(""),g=(0,u.useRef)(null),f=(0,u.useId)(),b=()=>{m.trim()&&c.mutate({message:m.trim()})};return(0,r.jsxs)("div",{className:"border-t border-border/50 bg-muted/20 p-4 mt-6",children:[c.error&&(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 mb-3 text-sm text-destructive bg-destructive/10 border border-destructive/20 rounded-md",children:[(0,r.jsx)(Y.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{children:"Failed to resume chat. Please try again."})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(ec.T,{ref:o,value:m,onChange:e=>p(e.target.value),onKeyDown:e=>{var s;(null==(s=g.current)||!s.handleKeyDown(e))&&"Enter"===e.key&&e.shiftKey&&(e.preventDefault(),b())},placeholder:"Type your message... (Start with / for commands, Shift+Enter to send)",className:"min-h-[60px] resize-none",disabled:c.isPending,maxLength:4e3,"aria-label":"Message input with command completion","aria-describedby":f,"aria-expanded":m.startsWith("/"),"aria-haspopup":"listbox",role:"combobox","aria-autocomplete":"list"}),(0,r.jsx)(em.s,{ref:g,projectId:s,inputValue:m,onCommandSelect:e=>{var s;p(e),null==(s=o.current)||s.focus()},className:"absolute top-full left-0 right-0"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("span",{className:"text-xs text-muted-foreground",id:f,children:[m.length,"/4000"]}),(0,r.jsx)(x.$,{onClick:b,disabled:!m.trim()||c.isPending,size:"default",className:"gap-2",children:c.isPending?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.A,{className:"w-4 h-4 animate-spin"}),"Sending... This may take a while."]}):n||l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ed.A,{className:"w-4 h-4"}),"Send"]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ed.A,{className:"w-4 h-4"}),"Resume"]})})]})]})]})};var ex=t(26057),eh=t(5685),ep=t(62520),eg=t(51290);let ef=e=>{let{sessions:s,currentSessionId:t,projectId:a}=e,n=(0,f.md)(b.r),l=[...s].sort((e,s)=>{let t=n.find(s=>s.sessionId===e.id),r=n.find(e=>e.sessionId===s.id),a=null==t?void 0:t.status,l=null==r?void 0:r.status,i=e=>"running"===e?0:"paused"===e?1:2,d=i(a),o=i(l);if(d!==o)return d-o;let c=e.meta.lastModifiedAt?new Date(e.meta.lastModifiedAt).getTime():0;return(s.meta.lastModifiedAt?new Date(s.meta.lastModifiedAt).getTime():0)-c});return(0,r.jsxs)("div",{className:"h-full flex flex-col",children:[(0,r.jsxs)("div",{className:"border-b border-sidebar-border p-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsx)("h2",{className:"font-semibold text-lg",children:"Sessions"}),(0,r.jsx)(eg.c,{projectId:a,trigger:(0,r.jsxs)(x.$,{size:"sm",variant:"outline",className:"gap-1.5",children:[(0,r.jsx)(ep.A,{className:"w-3.5 h-3.5"}),"New"]})})]}),(0,r.jsxs)("p",{className:"text-xs text-sidebar-foreground/70",children:[s.length," total"]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto p-2 space-y-0.5",children:l.map(e=>{let s=e.id===t,l=null!==e.meta.firstCommand?(0,p.H)(e.meta.firstCommand):e.id,i=n.find(s=>s.sessionId===e.id),d=(null==i?void 0:i.status)==="running",o=(null==i?void 0:i.status)==="paused";return(0,r.jsx)(m(),{href:"/projects/".concat(a,"/sessions/").concat(encodeURIComponent(e.id)),className:(0,k.cn)("block rounded-lg p-2.5 transition-all duration-200 hover:bg-blue-50/60 hover:border-blue-300/60 hover:shadow-sm border border-sidebar-border/40 bg-sidebar/30",s&&"bg-blue-100 border-blue-400 shadow-md ring-1 ring-blue-200/50 hover:bg-blue-100 hover:border-blue-400"),children:(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,r.jsx)("h3",{className:"text-sm font-medium line-clamp-2 leading-tight text-sidebar-foreground flex-1",children:l}),(d||o)&&(0,r.jsx)(K,{variant:d?"default":"secondary",className:(0,k.cn)("text-xs",d&&"bg-green-500 text-white",o&&"bg-yellow-500 text-white"),children:d?"Running":"Paused"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 text-xs text-sidebar-foreground/70",children:[(0,r.jsx)(ex.A,{className:"w-3 h-3"}),(0,r.jsx)("span",{children:e.meta.messageCount})]}),e.meta.lastModifiedAt&&(0,r.jsx)("span",{className:"text-xs text-sidebar-foreground/60",children:new Date(e.meta.lastModifiedAt).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]})]})},e.id)})})]})};var eb=t(57981);let ej=()=>(0,r.jsxs)("div",{className:"h-full flex flex-col",children:[(0,r.jsxs)("div",{className:"border-b border-sidebar-border p-4",children:[(0,r.jsx)("h2",{className:"font-semibold text-lg",children:"Settings"}),(0,r.jsx)("p",{className:"text-xs text-sidebar-foreground/70",children:"Display and behavior preferences"})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto p-4 space-y-6",children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("h3",{className:"font-medium text-sm text-sidebar-foreground",children:"Session Display"}),(0,r.jsx)(eb.o,{})]})})]}),ev=e=>{let{currentSessionId:s,projectId:t,className:a,isMobileOpen:n=!1,onMobileOpenChange:l}=e,{data:{sessions:i}}=(0,eh.B)(t),[d,o]=(0,u.useState)("sessions"),[c,m]=(0,u.useState)(!0),x=e=>{d===e&&c?m(!1):(o(e),m(!0))},h=(0,r.jsxs)("div",{className:(0,k.cn)("h-full border-r border-sidebar-border transition-all duration-300 ease-in-out flex bg-sidebar text-sidebar-foreground",c?"w-72 lg:w-80":"w-12"),children:[(0,r.jsx)("div",{className:"w-12 flex flex-col border-r border-sidebar-border bg-sidebar/50",children:(0,r.jsxs)("div",{className:"flex flex-col p-2 space-y-1",children:[(0,r.jsx)("button",{type:"button",onClick:()=>x("sessions"),className:(0,k.cn)("w-8 h-8 flex items-center justify-center rounded-md transition-colors","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","sessions"===d&&c?"bg-sidebar-accent text-sidebar-accent-foreground shadow-sm":"text-sidebar-foreground/70"),title:"Sessions",children:(0,r.jsx)(ex.A,{className:"w-4 h-4"})}),(0,r.jsx)("button",{type:"button",onClick:()=>x("settings"),className:(0,k.cn)("w-8 h-8 flex items-center justify-center rounded-md transition-colors","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","settings"===d&&c?"bg-sidebar-accent text-sidebar-accent-foreground shadow-sm":"text-sidebar-foreground/70"),title:"Settings",children:(0,r.jsx)(E.A,{className:"w-4 h-4"})})]})}),c&&(0,r.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden",children:(()=>{switch(d){case"sessions":return(0,r.jsx)(ef,{sessions:i,currentSessionId:s,projectId:t});case"settings":return(0,r.jsx)(ej,{});default:return null}})()})]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,k.cn)("hidden md:flex h-full",a),children:h}),(0,r.jsx)("div",{className:"md:hidden",children:(0,r.jsx)(I.lG,{open:n,onOpenChange:l,children:(0,r.jsx)(I.Cf,{className:"p-0 max-w-sm w-full h-[90vh] max-h-[90vh] overflow-hidden flex flex-col",children:(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:h})})})})]})},eN=e=>{let{projectId:s,sessionId:t}=e,{session:c,conversations:v,getToolResult:N}=((e,s)=>{let t=(0,j.useSuspenseQuery)({...((e,s)=>({queryKey:["sessions",s],queryFn:async()=>(await h.s.api.projects[":projectId"].sessions[":sessionId"].$get({param:{projectId:e,sessionId:s}})).json()}))(e,s)}),r=(0,u.useMemo)(()=>new Map(t.data.session.conversations.flatMap(e=>"user"!==e.type||"string"==typeof e.message.content?[]:e.message.content.flatMap(e=>"string"==typeof e||"tool_result"!==e.type?[]:[[e.tool_use_id,e]]))),[t.data.session.conversations]),a=(0,u.useCallback)(e=>r.get(e),[r]);return{session:t.data.session,conversations:t.data.session.conversations,getToolResult:a}})(s,t),y=(0,a.useMutation)({mutationFn:async e=>{let s=await h.s.api.tasks.abort.$post({json:{sessionId:e}});if(!s.ok)throw Error(s.statusText);return s.json()}}),{isRunningTask:w,isPausedTask:k}=(e=>{let[s,t]=(0,f.fp)(b.r);return(0,g.useQuery)({queryKey:["aliveTasks"],queryFn:async()=>{let e=await h.s.api.tasks.alive.$get({});if(!e.ok)throw Error(e.statusText);return t((await e.json()).aliveTasks),e.json()},refetchOnReconnect:!0}),(0,u.useMemo)(()=>{let t=s.find(s=>s.sessionId===e);return{aliveTask:s.find(s=>s.sessionId===e),isRunningTask:(null==t?void 0:t.status)==="running",isPausedTask:(null==t?void 0:t.status)==="paused"}},[s,e])})(t),[A,C]=(0,u.useState)(0),[S,R]=(0,u.useState)(!1),T=(0,u.useRef)(null);return(0,u.useEffect)(()=>{if((w||k)&&v.length!==A){C(v.length);let e=T.current;e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}},[v,w,k,A]),(0,r.jsxs)("div",{className:"flex h-screen",children:[(0,r.jsx)(ev,{currentSessionId:t,projectId:s,isMobileOpen:S,onMobileOpenChange:R}),(0,r.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden",children:(0,r.jsxs)("div",{ref:T,className:"max-w-none flex-1 overflow-y-auto",children:[(0,r.jsxs)("header",{className:"px-2 sm:px-3 py-3 sticky top-0 z-10 bg-background w-full",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,r.jsx)(x.$,{variant:"ghost",size:"sm",className:"md:hidden",onClick:()=>R(!0),children:(0,r.jsx)(n.A,{className:"w-4 h-4"})}),(0,r.jsx)(x.$,{asChild:!0,variant:"ghost",children:(0,r.jsxs)(m(),{href:"/projects/".concat(s),className:"flex items-center gap-2",children:[(0,r.jsx)(l.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Back to Session List"}),(0,r.jsx)("span",{className:"sm:hidden",children:"Back"})]})})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("div",{className:"flex items-center gap-3",children:(0,r.jsx)("h1",{className:"text-xl sm:text-2xl md:text-3xl font-bold break-words overflow-ellipsis line-clamp-2 px-2 sm:px-5",children:null!==c.meta.firstCommand?(0,p.H)(c.meta.firstCommand):t})}),w&&(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-primary/10 border border-primary/20 rounded-lg",children:[(0,r.jsx)(i.A,{className:"w-4 h-4 animate-spin"}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)("p",{className:"text-sm font-medium",children:"Conversation is in progress..."})}),(0,r.jsxs)(x.$,{variant:"ghost",size:"sm",onClick:()=>{y.mutate(t)},children:[(0,r.jsx)(d.A,{className:"w-4 h-4"}),"Abort"]})]}),k&&(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-primary/10 border border-primary/20 rounded-lg",children:[(0,r.jsx)(o.A,{className:"w-4 h-4"}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)("p",{className:"text-sm font-medium",children:"Conversation is paused..."})}),(0,r.jsxs)(x.$,{variant:"ghost",size:"sm",onClick:()=>{y.mutate(t)},children:[(0,r.jsx)(d.A,{className:"w-4 h-4"}),"Abort"]})]}),(0,r.jsxs)("p",{className:"text-muted-foreground font-mono text-sm",children:["Session ID: ",t]})]})]}),(0,r.jsxs)("main",{className:"w-full px-4 sm:px-8 md:px-12 lg:px-16 xl:px-20 pb-10 relative z-5",children:[(0,r.jsx)(ei,{conversations:v,getToolResult:N}),(0,r.jsx)(eu,{projectId:s,sessionId:t,isPausedTask:k,isRunningTask:w})]})]})})]})}},82791:(e,s,t)=>{Promise.resolve().then(t.bind(t,98613)),Promise.resolve().then(t.bind(t,72611)),Promise.resolve().then(t.bind(t,13881)),Promise.resolve().then(t.bind(t,85452)),Promise.resolve().then(t.bind(t,120)),Promise.resolve().then(t.bind(t,27740)),Promise.resolve().then(t.bind(t,59054)),Promise.resolve().then(t.bind(t,8120)),Promise.resolve().then(t.bind(t,9161)),Promise.resolve().then(t.bind(t,63812)),Promise.resolve().then(t.bind(t,86260)),Promise.resolve().then(t.bind(t,15312)),Promise.resolve().then(t.bind(t,45320)),Promise.resolve().then(t.bind(t,34163))},89854:(e,s,t)=>{"use strict";t.d(s,{r:()=>r});let r=(0,t(48304).eU)([])}},e=>{e.O(0,[33,150,156,608,925,5,900,341,358],()=>e(e.s=82791)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[998],{65390:(e,s,t)=>{"use strict";t.d(s,{SessionPageContent:()=>eC});var r=t(89835),a=t(59054),n=t(4015),l=t(50417),d=t(58903),i=t(93856),o=t(38514),c=t(75123),m=t.n(c),x=t(55931),u=t(80942),h=t(53630),p=t(5685),g=t(72667),f=t(63812),j=t(27608),b=t(89854),v=t(45320),N=t(42251),y=t(5530),w=t(64426),k=t(7951),C=t(18237);let A=(0,k.F)("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function S(e){let{className:s,variant:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,C.cn)(A({variant:t}),s),...a})}function M(e){let{className:s,...t}=e;return(0,r.jsx)("div",{"data-slot":"alert-title",className:(0,C.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",s),...t})}function R(e){let{className:s,...t}=e;return(0,r.jsx)("div",{"data-slot":"alert-description",className:(0,C.cn)("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",s),...t})}var P=t(45730),T=t(41633),I=t(40138);let _=e=>{let{conversation:s,sidechainConversations:t,getToolResult:a}=e,n=(e=>{let s=e.at(0),t="".concat(e.length," conversations (").concat((null==s?void 0:s.type)!=="summary"?null==s?void 0:s.uuid:"",")");if(!s||"user"!==s.type)return t;let r="string"==typeof s.message.content?s.message.content:(()=>{let e=s.message.content.at(0);return void 0===e?null:"string"==typeof e?e:"text"===e.type?e.text:null})();return null!=r?r:t})(t),l="summary"!==s.type?s.uuid:s.leafUuid;return(0,r.jsxs)(I.lG,{children:[(0,r.jsx)(I.zM,{asChild:!0,children:(0,r.jsx)(u.$,{variant:"outline",size:"sm",className:"w-full mb-3 items-center justify-start",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(T.A,{className:"h-4 w-4 flex-shrink-0"}),(0,r.jsxs)("span",{className:"overflow-hidden text-ellipsis",children:["View Task: ",n]})]})})}),(0,r.jsxs)(I.Cf,{className:"!w-[1200px] !max-w-none max-h-[80vh] overflow-hidden flex flex-col",children:[(0,r.jsxs)(I.c7,{children:[(0,r.jsx)(I.L3,{children:n.length>100?"".concat(n.slice(0,100),"..."):n}),(0,r.jsxs)(I.rr,{children:["Root UUID: ",l]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-auto",children:(0,r.jsx)(ei,{conversations:t,getToolResult:a})})]})]})};var E=t(55407),F=t(9005),z=t(68607),U=t(36703),K=t(83632),$=t(8607);let B=(0,k.F)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function D(e){let{className:s,variant:t,asChild:a=!1,...n}=e,l=a?$.DX:"span";return(0,r.jsx)(l,{"data-slot":"badge",className:(0,C.cn)(B({variant:t}),s),...n})}var Z=t(75284),q=t(35853),L=t(35880),O=t(96318);let W=e=>{let{content:s,className:t=""}=e;return(0,r.jsx)("div",{className:"prose prose-neutral dark:prose-invert max-w-none ".concat(t),children:(0,r.jsx)(q.oz,{remarkPlugins:[O.A],components:{h1(e){let{children:s,...t}=e;return(0,r.jsx)("h1",{className:"text-3xl font-bold mb-6 mt-8 pb-3 border-b border-border text-foreground",...t,children:s})},h2(e){let{children:s,...t}=e;return(0,r.jsx)("h2",{className:"text-2xl font-semibold mb-4 mt-8 pb-2 border-b border-border/50 text-foreground",...t,children:s})},h3(e){let{children:s,...t}=e;return(0,r.jsx)("h3",{className:"text-xl font-semibold mb-3 mt-6 text-foreground",...t,children:s})},h4(e){let{children:s,...t}=e;return(0,r.jsx)("h4",{className:"text-lg font-medium mb-2 mt-4 text-foreground",...t,children:s})},h5(e){let{children:s,...t}=e;return(0,r.jsx)("h5",{className:"text-base font-medium mb-2 mt-4 text-foreground",...t,children:s})},h6(e){let{children:s,...t}=e;return(0,r.jsx)("h6",{className:"text-sm font-medium mb-2 mt-4 text-muted-foreground",...t,children:s})},p(e){let{children:s,...t}=e;return(0,r.jsx)("p",{className:"mb-4 leading-7 text-foreground",...t,children:s})},ul(e){let{children:s,...t}=e;return(0,r.jsx)("ul",{className:"mb-4 ml-6 list-disc space-y-2",...t,children:s})},ol(e){let{children:s,...t}=e;return(0,r.jsx)("ol",{className:"mb-4 ml-6 list-decimal space-y-2",...t,children:s})},li(e){let{children:s,...t}=e;return(0,r.jsx)("li",{className:"leading-7 text-foreground",...t,children:s})},code(e){let{className:s,children:t,...a}=e,n=/language-(\w+)/.exec(s||"");return n?(0,r.jsxs)("div",{className:"relative my-6",children:[(0,r.jsx)("div",{className:"flex items-center justify-between bg-muted/30 px-4 py-2 border-b border-border rounded-t-lg",children:(0,r.jsx)("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:n[1]})}),(0,r.jsx)(U.A,{style:L.A,language:n[1],PreTag:"div",className:"!mt-0 !rounded-t-none !rounded-b-lg !border-t-0 !border !border-border",customStyle:{margin:0,borderTopLeftRadius:0,borderTopRightRadius:0},children:String(t).replace(/\n$/,"")})]}):(0,r.jsx)("code",{className:"bg-muted/70 px-2 py-1 rounded-md text-sm font-mono text-foreground border",...a,children:t})},pre(e){let{children:s,...t}=e;return(0,r.jsx)("pre",{...t,children:s})},blockquote(e){let{children:s,...t}=e;return(0,r.jsx)("blockquote",{className:"border-l-4 border-primary/30 bg-muted/30 pl-6 pr-4 py-4 my-6 italic rounded-r-lg",...t,children:(0,r.jsx)("div",{className:"text-muted-foreground",children:s})})},a(e){let{children:s,href:t,...a}=e;return(0,r.jsx)("a",{href:t,className:"text-primary hover:text-primary/80 underline underline-offset-4 decoration-primary/30 hover:decoration-primary/60 transition-colors",...a,children:s})},table(e){let{children:s,...t}=e;return(0,r.jsx)("div",{className:"overflow-x-auto my-6 rounded-lg border border-border",children:(0,r.jsx)("table",{className:"min-w-full border-collapse",...t,children:s})})},thead(e){let{children:s,...t}=e;return(0,r.jsx)("thead",{className:"bg-muted/50",...t,children:s})},th(e){let{children:s,...t}=e;return(0,r.jsx)("th",{className:"border-b border-border px-4 py-3 text-left font-semibold text-foreground",...t,children:s})},td(e){let{children:s,...t}=e;return(0,r.jsx)("td",{className:"border-b border-border px-4 py-3 text-foreground",...t,children:s})},hr(e){let{...s}=e;return(0,r.jsx)("hr",{className:"my-8 border-t border-border",...s})},strong(e){let{children:s,...t}=e;return(0,r.jsx)("strong",{className:"font-semibold text-foreground",...t,children:s})},em(e){let{children:s,...t}=e;return(0,r.jsx)("em",{className:"italic text-foreground",...t,children:s})}},children:s})})},Q=e=>{let{content:s,getToolResult:t}=e;if("text"===s.type)return(0,r.jsx)("div",{className:"w-full mx-1 sm:mx-2 my-4 sm:my-6",children:(0,r.jsx)(W,{content:s.text})});if("thinking"===s.type)return(0,r.jsx)(Z.Zp,{className:"bg-muted/50 border-dashed gap-2 py-3 mb-2",children:(0,r.jsxs)(P.Nt,{children:[(0,r.jsx)(P.R6,{asChild:!0,children:(0,r.jsx)(Z.aR,{className:"cursor-pointer hover:bg-muted/80 rounded-t-lg transition-colors py-0 px-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(E.A,{className:"h-4 w-4 text-muted-foreground"}),(0,r.jsx)(Z.ZB,{className:"text-sm font-medium",children:"Thinking"}),(0,r.jsx)(y.A,{className:"h-4 w-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})})}),(0,r.jsx)(P.Ke,{children:(0,r.jsx)(Z.Wu,{className:"py-0 px-4",children:(0,r.jsx)("div",{className:"text-sm text-muted-foreground whitespace-pre-wrap font-mono",children:s.thinking})})})]})});if("tool_use"===s.type){let e=t(s.id);return(0,r.jsxs)(Z.Zp,{className:"border-blue-200 bg-blue-50/50 dark:border-blue-800 dark:bg-blue-950/20 gap-2 py-3 mb-2",children:[(0,r.jsxs)(Z.aR,{className:"py-0 px-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(F.A,{className:"h-4 w-4 text-blue-600 dark:text-blue-400"}),(0,r.jsx)(Z.ZB,{className:"text-sm font-medium",children:"Tool Use"}),(0,r.jsx)(D,{variant:"outline",className:"border-blue-300 text-blue-700 dark:border-blue-700 dark:text-blue-300",children:s.name})]}),(0,r.jsxs)(Z.BT,{className:"text-xs",children:["Tool execution with ID: ",s.id]})]}),(0,r.jsxs)(Z.Wu,{className:"space-y-2 py-0 px-4",children:[(0,r.jsxs)(P.Nt,{children:[(0,r.jsx)(P.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Input Parameters"}),(0,r.jsx)(y.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(P.Ke,{children:(0,r.jsx)(U.A,{style:K.A,language:"json",PreTag:"div",className:"text-xs",children:JSON.stringify(s.input,null,2)})})]}),e&&(0,r.jsxs)(P.Nt,{children:[(0,r.jsx)(P.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Tool Result"}),(0,r.jsx)(y.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(P.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-2 mt-1",children:"string"==typeof e.content?(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words",children:e.content}):e.content.map(e=>{if("image"===e.type)return(0,r.jsx)(z.default,{src:"data:".concat(e.source.media_type,";base64,").concat(e.source.data),alt:"Tool Result"},e.source.data);if("text"===e.type)return(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words",children:e.text},e.text);throw Error("Unexpected tool result content type")})})})]})]})]})}return s.type,null},V=e=>{let{children:s}=e;return(0,r.jsxs)(P.Nt,{children:[(0,r.jsx)(P.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Meta Information"}),(0,r.jsx)(y.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(P.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-3 mt-2",children:s})})]})},H=e=>{let{children:s}=e;return(0,r.jsxs)(P.Nt,{children:[(0,r.jsx)(P.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Summarized"}),(0,r.jsx)(y.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(P.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-3 mt-2",children:(0,r.jsx)("pre",{className:"text-xs overflow-x-auto",children:s})})})]})},G=e=>{let{children:s}=e;return(0,r.jsxs)(P.Nt,{children:[(0,r.jsx)(P.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"System Message"}),(0,r.jsx)(y.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(P.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-3 mt-2",children:(0,r.jsx)("pre",{className:"text-xs overflow-x-auto",children:s})})})]})};var Y=t(93021),J=t(28043),X=t(72676),ee=t(5556);let es=RegExp("<(?<tag>[^>]+)>(?<content>\\s*[^<]*?\\s*)<\\/\\k<tag>>","g"),et=ee.Ik({tag:ee.Yj(),content:ee.Yj()}),er=e=>{let{text:s,id:t}=e,a=(e=>{var s,t,r,a;let n=Array.from(e.matchAll(es)).map(e=>et.safeParse(e.groups)).filter(e=>e.success).map(e=>e.data);if(0===n.length)return{kind:"text",content:e};let l=null==(s=n.find(e=>"command-name"===e.tag))?void 0:s.content,d=null==(t=n.find(e=>"command-args"===e.tag))?void 0:t.content,i=null==(r=n.find(e=>"command-message"===e.tag))?void 0:r.content,o=null==(a=n.find(e=>"local-command-stdout"===e.tag))?void 0:a.content;switch(!0){case void 0!==l:return{kind:"command",commandName:l,commandArgs:d,commandMessage:i};case void 0!==o:return{kind:"local-command",stdout:o};default:return{kind:"text",content:e}}})(s);return"command"===a.kind?(0,r.jsxs)(Z.Zp,{className:"border-green-200 bg-green-50/50 dark:border-green-800 dark:bg-green-950/20 gap-2 py-3 mb-3",id:t,children:[(0,r.jsx)(Z.aR,{className:"py-0 px-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(X.A,{className:"h-4 w-4 text-green-600 dark:text-green-400"}),(0,r.jsx)(Z.ZB,{className:"text-sm font-medium",children:"Claude Code Command"}),(0,r.jsx)(D,{variant:"outline",className:"border-green-300 text-green-700 dark:border-green-700 dark:text-green-300",children:a.commandName})]})}),a.commandArgs||a.commandMessage?(0,r.jsx)(Z.Wu,{className:"py-0 px-4",children:(0,r.jsx)("div",{className:"space-y-2",children:(0,r.jsxs)("div",{children:[a.commandArgs&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:"Arguments:"}),(0,r.jsx)("div",{className:"bg-background rounded border p-2 mt-1",children:(0,r.jsx)("code",{className:"text-xs whitespace-pre-line",children:a.commandArgs})})]}),a.commandMessage&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:"Message:"}),(0,r.jsx)("div",{className:"bg-background rounded border p-2 mt-1",children:(0,r.jsx)("code",{className:"text-xs whitespace-pre-line",children:a.commandMessage})})]})]})})}):null]}):"local-command"===a.kind?(0,r.jsxs)(Z.Zp,{className:"border-green-200 bg-green-50/50 dark:border-green-800 dark:bg-green-950/20 gap-2 py-3 mb-3",children:[(0,r.jsx)(Z.aR,{className:"py-0 px-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(X.A,{className:"h-4 w-4 text-green-600 dark:text-green-400"}),(0,r.jsx)(Z.ZB,{className:"text-sm font-medium",children:"Local Command"})]})}),(0,r.jsx)(Z.Wu,{className:"py-0 px-4",children:(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words",children:a.stdout})})]}):(0,r.jsx)(W,{className:"w-full px-3 py-3 mb-5 border border-border rounded-lg bg-slate-50",content:a.content})},ea=e=>{let{content:s,id:t}=e;return"string"==typeof s?(0,r.jsx)(er,{text:s,id:t}):"text"===s.type?(0,r.jsx)(er,{text:s.text,id:t}):"image"===s.type?"base64"===s.source.type?(0,r.jsxs)(Z.Zp,{className:"border-purple-200 bg-purple-50/50 dark:border-purple-800 dark:bg-purple-950/20",id:t,children:[(0,r.jsxs)(Z.aR,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(Y.A,{className:"h-4 w-4 text-purple-600 dark:text-purple-400"}),(0,r.jsx)(Z.ZB,{className:"text-sm font-medium",children:"Image"}),(0,r.jsx)(D,{variant:"outline",className:"border-purple-300 text-purple-700 dark:border-purple-700 dark:text-purple-300",children:s.source.media_type})]}),(0,r.jsx)(Z.BT,{className:"text-xs",children:"User uploaded image content"})]}),(0,r.jsx)(Z.Wu,{children:(0,r.jsx)("div",{className:"rounded-lg border overflow-hidden bg-background",children:(0,r.jsx)(z.default,{src:"data:".concat(s.source.media_type,";base64,").concat(s.source.data),alt:"User uploaded content",className:"max-w-full h-auto max-h-96 object-contain"})})})]}):(0,r.jsx)(Z.Zp,{className:"border-red-200 bg-red-50/50 dark:border-red-800 dark:bg-red-950/20",id:t,children:(0,r.jsxs)(Z.aR,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(J.A,{className:"h-4 w-4 text-red-600 dark:text-red-400"}),(0,r.jsx)(Z.ZB,{className:"text-sm font-medium",children:"Unsupported Media"}),(0,r.jsx)(D,{variant:"destructive",children:"Error"})]}),(0,r.jsx)(Z.BT,{className:"text-xs",children:"Media type not supported for display"})]})}):(s.type,null)},en=e=>{let{conversation:s,getToolResult:t,isRootSidechain:a,getSidechainConversations:n}=e;if("summary"===s.type)return(0,r.jsx)(H,{children:s.summary});if("system"===s.type)return(0,r.jsx)(G,{children:s.content});if(s.isSidechain)return a(s)?(0,r.jsx)(_,{conversation:s,sidechainConversations:n(s.uuid).map(e=>"summary"===e.type?e:{...e,isSidechain:!1}),getToolResult:t}):null;if("user"===s.type){let e="string"==typeof s.message.content?(0,r.jsx)(ea,{content:s.message.content,id:"message-".concat(s.uuid)}):(0,r.jsx)("ul",{className:"w-full",id:"message-".concat(s.uuid),children:s.message.content.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(ea,{content:e})},e.toString()))});return!0===s.isMeta?(0,r.jsx)(V,{children:e}):e}return"assistant"===s.type?(0,r.jsx)("ul",{className:"w-full",children:s.message.content.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(Q,{content:e,getToolResult:t})},e.toString()))}):null},el=e=>{if("user"===e.type)return"user_".concat(e.uuid);if("assistant"===e.type)return"assistant_".concat(e.uuid);if("system"===e.type)return"system_".concat(e.uuid);if("summary"===e.type)return"summary_".concat(e.leafUuid);throw Error("Unknown conversation type: ".concat(e))},ed=e=>{let{errorLine:s}=e;return(0,r.jsx)("li",{className:"w-full flex justify-start",children:(0,r.jsx)("div",{className:"w-full max-w-4xl sm:w-[90%] md:w-[85%] px-2",children:(0,r.jsxs)(P.Nt,{children:[(0,r.jsx)(P.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2 border-l-2 border-red-400",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(N.A,{className:"h-3 w-3 text-red-500"}),(0,r.jsx)("span",{className:"text-xs font-medium text-red-600",children:"Schema Error"})]}),(0,r.jsx)(y.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(P.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border border-red-200 p-3 mt-2",children:(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)(S,{variant:"destructive",className:"border-red-200 bg-red-50",children:[(0,r.jsx)(N.A,{className:"h-4 w-4"}),(0,r.jsx)(M,{className:"text-red-800",children:"Schema Validation Error"}),(0,r.jsxs)(R,{className:"text-red-700",children:["This conversation entry failed to parse correctly. This might indicate a format change or parsing issue."," ",(0,r.jsxs)("a",{href:"https://github.com/d-kimuson/claude-code-viewer/issues",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-red-600 hover:text-red-800 underline underline-offset-4",children:["Report this issue",(0,r.jsx)(w.A,{className:"h-3 w-3"})]})]})]}),(0,r.jsxs)("div",{className:"bg-gray-50 border rounded px-3 py-2",children:[(0,r.jsx)("h5",{className:"text-xs font-medium text-gray-700 mb-2",children:"Raw Content:"}),(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-all font-mono text-gray-800",children:s})]})]})})})]})})})},ei=e=>{let{conversations:s,getToolResult:t}=e,{isRootSidechain:a,getSidechainConversations:n}=(e=>{let s=(0,x.useMemo)(()=>new Map(e.filter(e=>"summary"!==e.type).map(e=>[e.uuid,e])),[e]),t=(0,x.useCallback)(e=>{if("summary"===e.type||null===e.parentUuid)return e;let r=s.get(e.parentUuid);return void 0===r?e:t(r)},[s]),r=(0,x.useMemo)(()=>{let s=e.filter(e=>"summary"!==e.type).filter(e=>!0===e.isSidechain),r=new Map;for(let e of s){let s=t(e);if("summary"!==s.type)if(r.has(s.uuid)){var a;null==(a=r.get(s.uuid))||a.push(e)}else r.set(s.uuid,[e])}return r},[e,t]);return{isRootSidechain:(0,x.useCallback)(e=>"summary"!==e.type&&r.has(e.uuid),[r]),getSidechainConversations:(0,x.useCallback)(e=>{var s;return null!=(s=r.get(e))?s:[]},[r])}})((0,x.useMemo)(()=>s.filter(e=>"x-error"!==e.type),[s]));return(0,r.jsx)("ul",{children:s.flatMap(e=>{if("x-error"===e.type)return(0,r.jsx)(ed,{errorLine:e.line},"error_".concat(e.line));let s=(0,r.jsx)(en,{conversation:e,getToolResult:t,isRootSidechain:a,getSidechainConversations:n},el(e)),l="summary"!==e.type&&e.isSidechain;return[(0,r.jsx)("li",{className:"w-full flex ".concat(l||"assistant"===e.type||"system"===e.type||"summary"===e.type?"justify-start":"justify-end"),children:(0,r.jsx)("div",{className:"w-full max-w-4xl sm:w-[90%] md:w-[85%]",children:s})},el(e))]})})};var eo=t(70038),ec=t(79588),em=t(31264),ex=t(19611);let eu=e=>{let{projectId:s,sessionId:t,isPausedTask:n,isRunningTask:l}=e,i=(0,ec.useRouter)(),o=(0,x.useRef)(null),c=(0,a.useMutation)({mutationFn:async e=>{let r=await h.s.api.projects[":projectId"].sessions[":sessionId"].resume.$post({param:{projectId:s,sessionId:t},json:{resumeMessage:e.message}});if(!r.ok)throw Error(r.statusText);return r.json()},onSuccess:async e=>{t!==e.sessionId&&i.push("/projects/".concat(s,"/sessions/").concat(e.sessionId,"#message-").concat(e.userMessageId)),p("")}}),[m,p]=(0,x.useState)(""),g=(0,x.useRef)(null),f=(0,x.useId)(),j=()=>{m.trim()&&c.mutate({message:m.trim()})};return(0,r.jsxs)("div",{className:"border-t border-border/50 bg-muted/20 p-4 mt-6",children:[c.error&&(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 mb-3 text-sm text-destructive bg-destructive/10 border border-destructive/20 rounded-md",children:[(0,r.jsx)(J.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{children:"Failed to resume chat. Please try again."})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(em.T,{ref:o,value:m,onChange:e=>p(e.target.value),onKeyDown:e=>{var s;(null==(s=g.current)||!s.handleKeyDown(e))&&"Enter"===e.key&&e.shiftKey&&(e.preventDefault(),j())},placeholder:"Type your message... (Start with / for commands, Shift+Enter to send)",className:"min-h-[60px] resize-none",disabled:c.isPending,maxLength:4e3,"aria-label":"Message input with command completion","aria-describedby":f,"aria-expanded":m.startsWith("/"),"aria-haspopup":"listbox",role:"combobox","aria-autocomplete":"list"}),(0,r.jsx)(ex.s,{ref:g,projectId:s,inputValue:m,onCommandSelect:e=>{var s;p(e),null==(s=o.current)||s.focus()},className:"absolute top-full left-0 right-0"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("span",{className:"text-xs text-muted-foreground",id:f,children:[m.length,"/4000"]}),(0,r.jsx)(u.$,{onClick:j,disabled:!m.trim()||c.isPending,size:"default",className:"gap-2",children:c.isPending?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.A,{className:"w-4 h-4 animate-spin"}),"Sending... This may take a while."]}):n||l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eo.A,{className:"w-4 h-4"}),"Send"]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eo.A,{className:"w-4 h-4"}),"Resume"]})})]})]})]})};var eh=t(26057),ep=t(50028),eg=t(13881),ef=t(3008);let ej=()=>{let e=(0,eg.useQueryClient)(),{data:s,isLoading:t,error:a}=(0,f.useQuery)({queryKey:["mcp","list"],queryFn:async()=>{let e=await h.s.api.mcp.list.$get();if(!e.ok)throw Error("Failed to fetch MCP servers");return e.json()}});return(0,r.jsxs)("div",{className:"flex flex-col h-full",children:[(0,r.jsx)("div",{className:"p-3 border-b border-sidebar-border",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h2",{className:"text-sm font-semibold text-sidebar-foreground",children:"MCP Servers"}),(0,r.jsx)(u.$,{onClick:()=>{e.invalidateQueries({queryKey:["mcp","list"]})},variant:"ghost",size:"sm",className:"h-7 w-7 p-0",disabled:t,title:"Reload MCP servers",children:(0,r.jsx)(ef.A,{className:"w-3 h-3 ".concat(t?"animate-spin":"")})})]})}),(0,r.jsxs)("div",{className:"flex-1 overflow-auto p-3",children:[t&&(0,r.jsx)("div",{className:"flex items-center justify-center h-32",children:(0,r.jsx)("div",{className:"text-sm text-muted-foreground",children:"Loading..."})}),a&&(0,r.jsxs)("div",{className:"text-sm text-red-500",children:["Failed to load MCP servers: ",a.message]}),s&&0===s.servers.length&&(0,r.jsx)("div",{className:"text-sm text-muted-foreground text-center py-8",children:"No MCP servers found"}),s&&s.servers.length>0&&(0,r.jsx)("div",{className:"space-y-3",children:s.servers.map(e=>(0,r.jsx)("div",{className:"p-3 bg-sidebar-accent/50 rounded-md border border-sidebar-border",children:(0,r.jsx)("div",{className:"flex items-start justify-between",children:(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("h3",{className:"text-sm font-medium text-sidebar-foreground truncate",children:e.name}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground mt-1 font-mono break-all",children:e.command})]})})},e.name))})]})]})};var eb=t(62520),ev=t(51290);let eN=e=>{let{sessions:s,currentSessionId:t,projectId:a}=e,n=(0,j.md)(b.r),l=[...s].sort((e,s)=>{let t=n.find(s=>s.sessionId===e.id),r=n.find(e=>e.sessionId===s.id),a=null==t?void 0:t.status,l=null==r?void 0:r.status,d=e=>"running"===e?0:"paused"===e?1:2,i=d(a),o=d(l);if(i!==o)return i-o;let c=e.meta.lastModifiedAt?new Date(e.meta.lastModifiedAt).getTime():0;return(s.meta.lastModifiedAt?new Date(s.meta.lastModifiedAt).getTime():0)-c});return(0,r.jsxs)("div",{className:"h-full flex flex-col",children:[(0,r.jsxs)("div",{className:"border-b border-sidebar-border p-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsx)("h2",{className:"font-semibold text-lg",children:"Sessions"}),(0,r.jsx)(ev.c,{projectId:a,trigger:(0,r.jsxs)(u.$,{size:"sm",variant:"outline",className:"gap-1.5",children:[(0,r.jsx)(eb.A,{className:"w-3.5 h-3.5"}),"New"]})})]}),(0,r.jsxs)("p",{className:"text-xs text-sidebar-foreground/70",children:[s.length," total"]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto p-2 space-y-0.5",children:l.map(e=>{let s=e.id===t,l=null!==e.meta.firstCommand?(0,g.H)(e.meta.firstCommand):e.id,d=n.find(s=>s.sessionId===e.id),i=(null==d?void 0:d.status)==="running",o=(null==d?void 0:d.status)==="paused";return(0,r.jsx)(m(),{href:"/projects/".concat(a,"/sessions/").concat(encodeURIComponent(e.id)),className:(0,C.cn)("block rounded-lg p-2.5 transition-all duration-200 hover:bg-blue-50/60 hover:border-blue-300/60 hover:shadow-sm border border-sidebar-border/40 bg-sidebar/30",s&&"bg-blue-100 border-blue-400 shadow-md ring-1 ring-blue-200/50 hover:bg-blue-100 hover:border-blue-400"),children:(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,r.jsx)("h3",{className:"text-sm font-medium line-clamp-2 leading-tight text-sidebar-foreground flex-1",children:l}),(i||o)&&(0,r.jsx)(D,{variant:i?"default":"secondary",className:(0,C.cn)("text-xs",i&&"bg-green-500 text-white",o&&"bg-yellow-500 text-white"),children:i?"Running":"Paused"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 text-xs text-sidebar-foreground/70",children:[(0,r.jsx)(eh.A,{className:"w-3 h-3"}),(0,r.jsx)("span",{children:e.meta.messageCount})]}),e.meta.lastModifiedAt&&(0,r.jsx)("span",{className:"text-xs text-sidebar-foreground/60",children:new Date(e.meta.lastModifiedAt).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]})]})},e.id)})})]})};var ey=t(57981);let ew=()=>(0,r.jsxs)("div",{className:"h-full flex flex-col",children:[(0,r.jsxs)("div",{className:"border-b border-sidebar-border p-4",children:[(0,r.jsx)("h2",{className:"font-semibold text-lg",children:"Settings"}),(0,r.jsx)("p",{className:"text-xs text-sidebar-foreground/70",children:"Display and behavior preferences"})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto p-4 space-y-6",children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("h3",{className:"font-medium text-sm text-sidebar-foreground",children:"Session Display"}),(0,r.jsx)(ey.o,{})]})})]}),ek=e=>{let{currentSessionId:s,projectId:t,className:a,isMobileOpen:n=!1,onMobileOpenChange:l}=e,{data:{sessions:d}}=(0,p.B)(t),[i,o]=(0,x.useState)("sessions"),[c,m]=(0,x.useState)(!0),u=e=>{i===e&&c?m(!1):(o(e),m(!0))},h=(0,r.jsxs)("div",{className:(0,C.cn)("h-full border-r border-sidebar-border transition-all duration-300 ease-in-out flex bg-sidebar text-sidebar-foreground",c?"w-72 lg:w-80":"w-12"),children:[(0,r.jsx)("div",{className:"w-12 flex flex-col border-r border-sidebar-border bg-sidebar/50",children:(0,r.jsxs)("div",{className:"flex flex-col p-2 space-y-1",children:[(0,r.jsx)("button",{type:"button",onClick:()=>u("sessions"),className:(0,C.cn)("w-8 h-8 flex items-center justify-center rounded-md transition-colors","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","sessions"===i&&c?"bg-sidebar-accent text-sidebar-accent-foreground shadow-sm":"text-sidebar-foreground/70"),title:"Sessions",children:(0,r.jsx)(eh.A,{className:"w-4 h-4"})}),(0,r.jsx)("button",{type:"button",onClick:()=>u("mcp"),className:(0,C.cn)("w-8 h-8 flex items-center justify-center rounded-md transition-colors","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","mcp"===i&&c?"bg-sidebar-accent text-sidebar-accent-foreground shadow-sm":"text-sidebar-foreground/70"),title:"MCP Servers",children:(0,r.jsx)(ep.A,{className:"w-4 h-4"})}),(0,r.jsx)("button",{type:"button",onClick:()=>u("settings"),className:(0,C.cn)("w-8 h-8 flex items-center justify-center rounded-md transition-colors","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","settings"===i&&c?"bg-sidebar-accent text-sidebar-accent-foreground shadow-sm":"text-sidebar-foreground/70"),title:"Settings",children:(0,r.jsx)(F.A,{className:"w-4 h-4"})})]})}),c&&(0,r.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden",children:(()=>{switch(i){case"sessions":return(0,r.jsx)(eN,{sessions:d,currentSessionId:s,projectId:t});case"mcp":return(0,r.jsx)(ej,{});case"settings":return(0,r.jsx)(ew,{});default:return null}})()})]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,C.cn)("hidden md:flex h-full",a),children:h}),(0,r.jsx)("div",{className:"md:hidden",children:(0,r.jsx)(I.lG,{open:n,onOpenChange:l,children:(0,r.jsx)(I.Cf,{className:"p-0 max-w-sm w-full h-[90vh] max-h-[90vh] overflow-hidden flex flex-col",children:(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:h})})})})]})},eC=e=>{var s;let{projectId:t,sessionId:c}=e,{session:N,conversations:y,getToolResult:w}=((e,s)=>{let t=(0,v.useSuspenseQuery)({...((e,s)=>({queryKey:["sessions",s],queryFn:async()=>(await h.s.api.projects[":projectId"].sessions[":sessionId"].$get({param:{projectId:e,sessionId:s}})).json()}))(e,s)}),r=(0,x.useMemo)(()=>new Map(t.data.session.conversations.flatMap(e=>"user"!==e.type||"string"==typeof e.message.content?[]:e.message.content.flatMap(e=>"string"==typeof e||"tool_result"!==e.type?[]:[[e.tool_use_id,e]]))),[t.data.session.conversations]),a=(0,x.useCallback)(e=>r.get(e),[r]);return{session:t.data.session,conversations:t.data.session.conversations,getToolResult:a}})(t,c),{data:k}=(0,p.B)(t),C=(0,a.useMutation)({mutationFn:async e=>{let s=await h.s.api.tasks.abort.$post({json:{sessionId:e}});if(!s.ok)throw Error(s.statusText);return s.json()}}),{isRunningTask:A,isPausedTask:S}=(e=>{let[s,t]=(0,j.fp)(b.r);return(0,f.useQuery)({queryKey:["aliveTasks"],queryFn:async()=>{let e=await h.s.api.tasks.alive.$get({});if(!e.ok)throw Error(e.statusText);return t((await e.json()).aliveTasks),e.json()},refetchOnReconnect:!0}),(0,x.useMemo)(()=>{let t=s.find(s=>s.sessionId===e);return{aliveTask:s.find(s=>s.sessionId===e),isRunningTask:(null==t?void 0:t.status)==="running",isPausedTask:(null==t?void 0:t.status)==="paused"}},[s,e])})(c),[M,R]=(0,x.useState)(0),[P,T]=(0,x.useState)(!1),I=(0,x.useRef)(null);return(0,x.useEffect)(()=>{if((A||S)&&y.length!==M){R(y.length);let e=I.current;e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}},[y,A,S,M]),(0,r.jsxs)("div",{className:"flex h-screen",children:[(0,r.jsx)(ek,{currentSessionId:c,projectId:t,isMobileOpen:P,onMobileOpenChange:T}),(0,r.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden",children:(0,r.jsxs)("div",{ref:I,className:"max-w-none flex-1 overflow-y-auto",children:[(0,r.jsxs)("header",{className:"px-2 sm:px-3 py-3 sticky top-0 z-10 bg-background w-full",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,r.jsx)(u.$,{variant:"ghost",size:"sm",className:"md:hidden",onClick:()=>T(!0),children:(0,r.jsx)(n.A,{className:"w-4 h-4"})}),(0,r.jsx)(u.$,{asChild:!0,variant:"ghost",children:(0,r.jsxs)(m(),{href:"/projects/".concat(t),className:"flex items-center gap-2",children:[(0,r.jsx)(l.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Back to Session List"}),(0,r.jsx)("span",{className:"sm:hidden",children:"Back"})]})})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("div",{className:"flex items-center gap-3",children:(0,r.jsx)("h1",{className:"text-xl sm:text-2xl md:text-3xl font-bold break-words overflow-ellipsis line-clamp-1 px-2 sm:px-5",children:null!==N.meta.firstCommand?(0,g.H)(N.meta.firstCommand):c})}),(0,r.jsxs)("div",{className:"px-2 sm:px-5 space-y-1",children:[(null==k?void 0:k.project.claudeProjectPath)&&(0,r.jsxs)("p",{className:"text-sm text-muted-foreground font-mono break-all",children:["Project:"," ",null!=(s=k.project.meta.projectPath)?s:k.project.claudeProjectPath]}),(0,r.jsxs)("p",{className:"text-sm text-muted-foreground font-mono",children:["Session ID: ",c]})]}),A&&(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-primary/10 border border-primary/20 rounded-lg",children:[(0,r.jsx)(d.A,{className:"w-4 h-4 animate-spin"}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)("p",{className:"text-sm font-medium",children:"Conversation is in progress..."})}),(0,r.jsxs)(u.$,{variant:"ghost",size:"sm",onClick:()=>{C.mutate(c)},children:[(0,r.jsx)(i.A,{className:"w-4 h-4"}),"Abort"]})]}),S&&(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-primary/10 border border-primary/20 rounded-lg",children:[(0,r.jsx)(o.A,{className:"w-4 h-4"}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)("p",{className:"text-sm font-medium",children:"Conversation is paused..."})}),(0,r.jsxs)(u.$,{variant:"ghost",size:"sm",onClick:()=>{C.mutate(c)},children:[(0,r.jsx)(i.A,{className:"w-4 h-4"}),"Abort"]})]})]})]}),(0,r.jsxs)("main",{className:"w-full px-4 sm:px-8 md:px-12 lg:px-16 xl:px-20 pb-10 relative z-5",children:[(0,r.jsx)(ei,{conversations:y,getToolResult:w}),(0,r.jsx)(eu,{projectId:t,sessionId:c,isPausedTask:S,isRunningTask:A})]})]})})]})}},82791:(e,s,t)=>{Promise.resolve().then(t.bind(t,98613)),Promise.resolve().then(t.bind(t,72611)),Promise.resolve().then(t.bind(t,13881)),Promise.resolve().then(t.bind(t,85452)),Promise.resolve().then(t.bind(t,120)),Promise.resolve().then(t.bind(t,27740)),Promise.resolve().then(t.bind(t,59054)),Promise.resolve().then(t.bind(t,8120)),Promise.resolve().then(t.bind(t,9161)),Promise.resolve().then(t.bind(t,63812)),Promise.resolve().then(t.bind(t,86260)),Promise.resolve().then(t.bind(t,15312)),Promise.resolve().then(t.bind(t,45320)),Promise.resolve().then(t.bind(t,65390))},89854:(e,s,t)=>{"use strict";t.d(s,{r:()=>r});let r=(0,t(48304).eU)([])}},e=>{e.O(0,[33,150,156,608,763,5,900,341,358],()=>e(e.s=82791)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[998],{34163:(e,s,t)=>{"use strict";t.d(s,{SessionPageContent:()=>ey});var r=t(89835),a=t(59054),n=t(4015),l=t(50417),i=t(58903),d=t(93856),o=t(38514),c=t(75123),m=t.n(c),u=t(55931),x=t(80942),h=t(53630),p=t(72667),g=t(63812),f=t(27608),j=t(89854),b=t(45320),v=t(42251),N=t(64426),y=t(5530),w=t(34892),k=t(7951),A=t(18237);let C=(0,k.F)("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function S(e){let{className:s,variant:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,A.cn)(C({variant:t}),s),...a})}function R(e){let{className:s,...t}=e;return(0,r.jsx)("div",{"data-slot":"alert-title",className:(0,A.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",s),...t})}function T(e){let{className:s,...t}=e;return(0,r.jsx)("div",{"data-slot":"alert-description",className:(0,A.cn)("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",s),...t})}var M=t(45730),I=t(41633),P=t(40138);let _=e=>{let{conversation:s,sidechainConversations:t,getToolResult:a}=e,n=(e=>{let s=e.at(0),t="".concat(e.length," conversations (").concat((null==s?void 0:s.type)!=="summary"?null==s?void 0:s.uuid:"",")");if(!s||"user"!==s.type)return t;let r="string"==typeof s.message.content?s.message.content:(()=>{let e=s.message.content.at(0);return void 0===e?null:"string"==typeof e?e:"text"===e.type?e.text:null})();return null!=r?r:t})(t),l="summary"!==s.type?s.uuid:s.leafUuid;return(0,r.jsxs)(P.lG,{children:[(0,r.jsx)(P.zM,{asChild:!0,children:(0,r.jsx)(x.$,{variant:"outline",size:"sm",className:"w-full mb-3 items-center justify-start",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(I.A,{className:"h-4 w-4 flex-shrink-0"}),(0,r.jsxs)("span",{className:"overflow-hidden text-ellipsis",children:["View Task: ",n]})]})})}),(0,r.jsxs)(P.Cf,{className:"!w-[1200px] !max-w-none max-h-[80vh] overflow-hidden flex flex-col",children:[(0,r.jsxs)(P.c7,{children:[(0,r.jsx)(P.L3,{children:n.length>100?"".concat(n.slice(0,100),"..."):n}),(0,r.jsxs)(P.rr,{children:["Root UUID: ",l]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-auto",children:(0,r.jsx)(ed,{conversations:t,getToolResult:a})})]})]})};var U=t(55407),z=t(9005),E=t(68607),D=t(36703),F=t(83632),B=t(8607);let K=(0,k.F)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Z(e){let{className:s,variant:t,asChild:a=!1,...n}=e,l=a?B.DX:"span";return(0,r.jsx)(l,{"data-slot":"badge",className:(0,A.cn)(K({variant:t}),s),...n})}var $=t(75284),O=t(35853),L=t(35880),q=t(96318);let W=e=>{let{content:s,className:t=""}=e;return(0,r.jsx)("div",{className:"prose prose-neutral dark:prose-invert max-w-none ".concat(t),children:(0,r.jsx)(O.oz,{remarkPlugins:[q.A],components:{h1(e){let{children:s,...t}=e;return(0,r.jsx)("h1",{className:"text-3xl font-bold mb-6 mt-8 pb-3 border-b border-border text-foreground",...t,children:s})},h2(e){let{children:s,...t}=e;return(0,r.jsx)("h2",{className:"text-2xl font-semibold mb-4 mt-8 pb-2 border-b border-border/50 text-foreground",...t,children:s})},h3(e){let{children:s,...t}=e;return(0,r.jsx)("h3",{className:"text-xl font-semibold mb-3 mt-6 text-foreground",...t,children:s})},h4(e){let{children:s,...t}=e;return(0,r.jsx)("h4",{className:"text-lg font-medium mb-2 mt-4 text-foreground",...t,children:s})},h5(e){let{children:s,...t}=e;return(0,r.jsx)("h5",{className:"text-base font-medium mb-2 mt-4 text-foreground",...t,children:s})},h6(e){let{children:s,...t}=e;return(0,r.jsx)("h6",{className:"text-sm font-medium mb-2 mt-4 text-muted-foreground",...t,children:s})},p(e){let{children:s,...t}=e;return(0,r.jsx)("p",{className:"mb-4 leading-7 text-foreground",...t,children:s})},ul(e){let{children:s,...t}=e;return(0,r.jsx)("ul",{className:"mb-4 ml-6 list-disc space-y-2",...t,children:s})},ol(e){let{children:s,...t}=e;return(0,r.jsx)("ol",{className:"mb-4 ml-6 list-decimal space-y-2",...t,children:s})},li(e){let{children:s,...t}=e;return(0,r.jsx)("li",{className:"leading-7 text-foreground",...t,children:s})},code(e){let{className:s,children:t,...a}=e,n=/language-(\w+)/.exec(s||"");return n?(0,r.jsxs)("div",{className:"relative my-6",children:[(0,r.jsx)("div",{className:"flex items-center justify-between bg-muted/30 px-4 py-2 border-b border-border rounded-t-lg",children:(0,r.jsx)("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:n[1]})}),(0,r.jsx)(D.A,{style:L.A,language:n[1],PreTag:"div",className:"!mt-0 !rounded-t-none !rounded-b-lg !border-t-0 !border !border-border",customStyle:{margin:0,borderTopLeftRadius:0,borderTopRightRadius:0},children:String(t).replace(/\n$/,"")})]}):(0,r.jsx)("code",{className:"bg-muted/70 px-2 py-1 rounded-md text-sm font-mono text-foreground border",...a,children:t})},pre(e){let{children:s,...t}=e;return(0,r.jsx)("pre",{...t,children:s})},blockquote(e){let{children:s,...t}=e;return(0,r.jsx)("blockquote",{className:"border-l-4 border-primary/30 bg-muted/30 pl-6 pr-4 py-4 my-6 italic rounded-r-lg",...t,children:(0,r.jsx)("div",{className:"text-muted-foreground",children:s})})},a(e){let{children:s,href:t,...a}=e;return(0,r.jsx)("a",{href:t,className:"text-primary hover:text-primary/80 underline underline-offset-4 decoration-primary/30 hover:decoration-primary/60 transition-colors",...a,children:s})},table(e){let{children:s,...t}=e;return(0,r.jsx)("div",{className:"overflow-x-auto my-6 rounded-lg border border-border",children:(0,r.jsx)("table",{className:"min-w-full border-collapse",...t,children:s})})},thead(e){let{children:s,...t}=e;return(0,r.jsx)("thead",{className:"bg-muted/50",...t,children:s})},th(e){let{children:s,...t}=e;return(0,r.jsx)("th",{className:"border-b border-border px-4 py-3 text-left font-semibold text-foreground",...t,children:s})},td(e){let{children:s,...t}=e;return(0,r.jsx)("td",{className:"border-b border-border px-4 py-3 text-foreground",...t,children:s})},hr(e){let{...s}=e;return(0,r.jsx)("hr",{className:"my-8 border-t border-border",...s})},strong(e){let{children:s,...t}=e;return(0,r.jsx)("strong",{className:"font-semibold text-foreground",...t,children:s})},em(e){let{children:s,...t}=e;return(0,r.jsx)("em",{className:"italic text-foreground",...t,children:s})}},children:s})})},V=e=>{let{content:s,getToolResult:t}=e;if("text"===s.type)return(0,r.jsx)("div",{className:"w-full mx-1 sm:mx-2 my-4 sm:my-6",children:(0,r.jsx)(W,{content:s.text})});if("thinking"===s.type)return(0,r.jsx)($.Zp,{className:"bg-muted/50 border-dashed gap-2 py-3 mb-2",children:(0,r.jsxs)(M.Nt,{children:[(0,r.jsx)(M.R6,{asChild:!0,children:(0,r.jsx)($.aR,{className:"cursor-pointer hover:bg-muted/80 rounded-t-lg transition-colors py-0 px-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(U.A,{className:"h-4 w-4 text-muted-foreground"}),(0,r.jsx)($.ZB,{className:"text-sm font-medium",children:"Thinking"}),(0,r.jsx)(y.A,{className:"h-4 w-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})})}),(0,r.jsx)(M.Ke,{children:(0,r.jsx)($.Wu,{className:"py-0 px-4",children:(0,r.jsx)("div",{className:"text-sm text-muted-foreground whitespace-pre-wrap font-mono",children:s.thinking})})})]})});if("tool_use"===s.type){let e=t(s.id);return(0,r.jsxs)($.Zp,{className:"border-blue-200 bg-blue-50/50 dark:border-blue-800 dark:bg-blue-950/20 gap-2 py-3 mb-2",children:[(0,r.jsxs)($.aR,{className:"py-0 px-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(z.A,{className:"h-4 w-4 text-blue-600 dark:text-blue-400"}),(0,r.jsx)($.ZB,{className:"text-sm font-medium",children:"Tool Use"}),(0,r.jsx)(Z,{variant:"outline",className:"border-blue-300 text-blue-700 dark:border-blue-700 dark:text-blue-300",children:s.name})]}),(0,r.jsxs)($.BT,{className:"text-xs",children:["Tool execution with ID: ",s.id]})]}),(0,r.jsxs)($.Wu,{className:"space-y-2 py-0 px-4",children:[(0,r.jsxs)(M.Nt,{children:[(0,r.jsx)(M.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Input Parameters"}),(0,r.jsx)(y.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(M.Ke,{children:(0,r.jsx)(D.A,{style:F.A,language:"json",PreTag:"div",className:"text-xs",children:JSON.stringify(s.input,null,2)})})]}),e&&(0,r.jsxs)(M.Nt,{children:[(0,r.jsx)(M.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Tool Result"}),(0,r.jsx)(y.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(M.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-2 mt-1",children:"string"==typeof e.content?(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words",children:e.content}):e.content.map(e=>{if("image"===e.type)return(0,r.jsx)(E.default,{src:"data:".concat(e.source.media_type,";base64,").concat(e.source.data),alt:"Tool Result"},e.source.data);if("text"===e.type)return(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words",children:e.text},e.text);throw Error("Unexpected tool result content type")})})})]})]})]})}return s.type,null},H=e=>{let{children:s}=e;return(0,r.jsxs)(M.Nt,{children:[(0,r.jsx)(M.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Meta Information"}),(0,r.jsx)(y.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(M.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-3 mt-2",children:s})})]})},G=e=>{let{children:s}=e;return(0,r.jsxs)(M.Nt,{children:[(0,r.jsx)(M.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"Summarized"}),(0,r.jsx)(y.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(M.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-3 mt-2",children:(0,r.jsx)("pre",{className:"text-xs overflow-x-auto",children:s})})})]})},Q=e=>{let{children:s}=e;return(0,r.jsxs)(M.Nt,{children:[(0,r.jsx)(M.R6,{asChild:!0,children:(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 rounded p-2 -mx-2",children:[(0,r.jsx)("h4",{className:"text-xs font-medium text-muted-foreground",children:"System Message"}),(0,r.jsx)(y.A,{className:"h-3 w-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(M.Ke,{children:(0,r.jsx)("div",{className:"bg-background rounded border p-3 mt-2",children:(0,r.jsx)("pre",{className:"text-xs overflow-x-auto",children:s})})})]})};var Y=t(93021),J=t(28043),X=t(72676),ee=t(5556);let es=RegExp("<(?<tag>[^>]+)>(?<content>\\s*[^<]*?\\s*)<\\/\\k<tag>>","g"),et=ee.Ik({tag:ee.Yj(),content:ee.Yj()}),er=e=>{let{text:s,id:t}=e,a=(e=>{var s,t,r,a;let n=Array.from(e.matchAll(es)).map(e=>et.safeParse(e.groups)).filter(e=>e.success).map(e=>e.data);if(0===n.length)return{kind:"text",content:e};let l=null==(s=n.find(e=>"command-name"===e.tag))?void 0:s.content,i=null==(t=n.find(e=>"command-args"===e.tag))?void 0:t.content,d=null==(r=n.find(e=>"command-message"===e.tag))?void 0:r.content,o=null==(a=n.find(e=>"local-command-stdout"===e.tag))?void 0:a.content;switch(!0){case void 0!==l:return{kind:"command",commandName:l,commandArgs:i,commandMessage:d};case void 0!==o:return{kind:"local-command",stdout:o};default:return{kind:"text",content:e}}})(s);return"command"===a.kind?(0,r.jsxs)($.Zp,{className:"border-green-200 bg-green-50/50 dark:border-green-800 dark:bg-green-950/20 gap-2 py-3 mb-3",id:t,children:[(0,r.jsx)($.aR,{className:"py-0 px-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(X.A,{className:"h-4 w-4 text-green-600 dark:text-green-400"}),(0,r.jsx)($.ZB,{className:"text-sm font-medium",children:"Claude Code Command"}),(0,r.jsx)(Z,{variant:"outline",className:"border-green-300 text-green-700 dark:border-green-700 dark:text-green-300",children:a.commandName})]})}),a.commandArgs||a.commandMessage?(0,r.jsx)($.Wu,{className:"py-0 px-4",children:(0,r.jsx)("div",{className:"space-y-2",children:(0,r.jsxs)("div",{children:[a.commandArgs&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:"Arguments:"}),(0,r.jsx)("div",{className:"bg-background rounded border p-2 mt-1",children:(0,r.jsx)("code",{className:"text-xs whitespace-pre-line",children:a.commandArgs})})]}),a.commandMessage&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:"Message:"}),(0,r.jsx)("div",{className:"bg-background rounded border p-2 mt-1",children:(0,r.jsx)("code",{className:"text-xs whitespace-pre-line",children:a.commandMessage})})]})]})})}):null]}):"local-command"===a.kind?(0,r.jsxs)($.Zp,{className:"border-green-200 bg-green-50/50 dark:border-green-800 dark:bg-green-950/20 gap-2 py-3 mb-3",children:[(0,r.jsx)($.aR,{className:"py-0 px-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(X.A,{className:"h-4 w-4 text-green-600 dark:text-green-400"}),(0,r.jsx)($.ZB,{className:"text-sm font-medium",children:"Local Command"})]})}),(0,r.jsx)($.Wu,{className:"py-0 px-4",children:(0,r.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words",children:a.stdout})})]}):(0,r.jsx)(W,{className:"w-full px-3 py-3 mb-5 border border-border rounded-lg bg-slate-50",content:a.content})},ea=e=>{let{content:s,id:t}=e;return"string"==typeof s?(0,r.jsx)(er,{text:s,id:t}):"text"===s.type?(0,r.jsx)(er,{text:s.text,id:t}):"image"===s.type?"base64"===s.source.type?(0,r.jsxs)($.Zp,{className:"border-purple-200 bg-purple-50/50 dark:border-purple-800 dark:bg-purple-950/20",id:t,children:[(0,r.jsxs)($.aR,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(Y.A,{className:"h-4 w-4 text-purple-600 dark:text-purple-400"}),(0,r.jsx)($.ZB,{className:"text-sm font-medium",children:"Image"}),(0,r.jsx)(Z,{variant:"outline",className:"border-purple-300 text-purple-700 dark:border-purple-700 dark:text-purple-300",children:s.source.media_type})]}),(0,r.jsx)($.BT,{className:"text-xs",children:"User uploaded image content"})]}),(0,r.jsx)($.Wu,{children:(0,r.jsx)("div",{className:"rounded-lg border overflow-hidden bg-background",children:(0,r.jsx)(E.default,{src:"data:".concat(s.source.media_type,";base64,").concat(s.source.data),alt:"User uploaded content",className:"max-w-full h-auto max-h-96 object-contain"})})})]}):(0,r.jsx)($.Zp,{className:"border-red-200 bg-red-50/50 dark:border-red-800 dark:bg-red-950/20",id:t,children:(0,r.jsxs)($.aR,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(J.A,{className:"h-4 w-4 text-red-600 dark:text-red-400"}),(0,r.jsx)($.ZB,{className:"text-sm font-medium",children:"Unsupported Media"}),(0,r.jsx)(Z,{variant:"destructive",children:"Error"})]}),(0,r.jsx)($.BT,{className:"text-xs",children:"Media type not supported for display"})]})}):(s.type,null)},en=e=>{let{conversation:s,getToolResult:t,isRootSidechain:a,getSidechainConversations:n}=e;if("summary"===s.type)return(0,r.jsx)(G,{children:s.summary});if("system"===s.type)return(0,r.jsx)(Q,{children:s.content});if(s.isSidechain)return a(s)?(0,r.jsx)(_,{conversation:s,sidechainConversations:n(s.uuid).map(e=>"summary"===e.type?e:{...e,isSidechain:!1}),getToolResult:t}):null;if("user"===s.type){let e="string"==typeof s.message.content?(0,r.jsx)(ea,{content:s.message.content,id:"message-".concat(s.uuid)}):(0,r.jsx)("ul",{className:"w-full",id:"message-".concat(s.uuid),children:s.message.content.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(ea,{content:e})},e.toString()))});return!0===s.isMeta?(0,r.jsx)(H,{children:e}):e}return"assistant"===s.type?(0,r.jsx)("ul",{className:"w-full",children:s.message.content.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(V,{content:e,getToolResult:t})},e.toString()))}):null},el=e=>{if("user"===e.type)return"user_".concat(e.uuid);if("assistant"===e.type)return"assistant_".concat(e.uuid);if("system"===e.type)return"system_".concat(e.uuid);if("summary"===e.type)return"summary_".concat(e.leafUuid);throw Error("Unknown conversation type: ".concat(e))},ei=e=>{let{errorLine:s}=e,[t,a]=(0,u.useState)(!1);return(0,r.jsx)("li",{className:"w-full flex justify-start",children:(0,r.jsx)("div",{className:"w-full max-w-4xl sm:w-[90%] md:w-[85%]",children:(0,r.jsxs)(S,{variant:"destructive",className:"border-red-200 bg-red-50",children:[(0,r.jsx)(v.A,{className:"h-4 w-4"}),(0,r.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)(R,{className:"text-red-800",children:"Schema Validation Error"}),(0,r.jsxs)(T,{className:"text-red-700",children:["This conversation entry failed to parse correctly."," ",(0,r.jsxs)("a",{href:"https://github.com/d-kimuson/claude-code-viewer/issues",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-red-600 hover:text-red-800 underline underline-offset-4",children:["Report this issue",(0,r.jsx)(N.A,{className:"h-3 w-3"})]})]})]}),(0,r.jsxs)(M.Nt,{open:t,onOpenChange:a,children:[(0,r.jsx)(M.R6,{className:"ml-2 p-1 text-red-600 hover:text-red-800 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 rounded",children:t?(0,r.jsx)(y.A,{className:"h-4 w-4"}):(0,r.jsx)(w.A,{className:"h-4 w-4"})}),(0,r.jsx)(M.Ke,{className:"mt-2",children:(0,r.jsx)("div",{className:"bg-red-100 border border-red-200 rounded px-3 py-2 text-sm font-mono text-red-800 whitespace-pre-wrap break-all",children:s})})]})]})]})})})},ed=e=>{let{conversations:s,getToolResult:t}=e,{isRootSidechain:a,getSidechainConversations:n}=(e=>{let s=(0,u.useMemo)(()=>new Map(e.filter(e=>"summary"!==e.type).map(e=>[e.uuid,e])),[e]),t=(0,u.useCallback)(e=>{if("summary"===e.type||null===e.parentUuid)return e;let r=s.get(e.parentUuid);return void 0===r?e:t(r)},[s]),r=(0,u.useMemo)(()=>{let s=e.filter(e=>"summary"!==e.type).filter(e=>!0===e.isSidechain),r=new Map;for(let e of s){let s=t(e);if("summary"!==s.type)if(r.has(s.uuid)){var a;null==(a=r.get(s.uuid))||a.push(e)}else r.set(s.uuid,[e])}return r},[e,t]);return{isRootSidechain:(0,u.useCallback)(e=>"summary"!==e.type&&r.has(e.uuid),[r]),getSidechainConversations:(0,u.useCallback)(e=>{var s;return null!=(s=r.get(e))?s:[]},[r])}})((0,u.useMemo)(()=>s.filter(e=>"x-error"!==e.type),[s]));return(0,r.jsx)("ul",{children:s.flatMap(e=>{if("x-error"===e.type)return(0,r.jsx)(ei,{errorLine:e.line},"error_".concat(e.line));let s=(0,r.jsx)(en,{conversation:e,getToolResult:t,isRootSidechain:a,getSidechainConversations:n},el(e)),l="summary"!==e.type&&e.isSidechain;return[(0,r.jsx)("li",{className:"w-full flex ".concat(l||"assistant"===e.type||"system"===e.type||"summary"===e.type?"justify-start":"justify-end"),children:(0,r.jsx)("div",{className:"w-full max-w-4xl sm:w-[90%] md:w-[85%]",children:s})},el(e))]})})};var eo=t(70038),ec=t(79588),em=t(31264),eu=t(19611);let ex=e=>{let{projectId:s,sessionId:t,isPausedTask:n,isRunningTask:l}=e,d=(0,ec.useRouter)(),o=(0,u.useRef)(null),c=(0,a.useMutation)({mutationFn:async e=>{let r=await h.s.api.projects[":projectId"].sessions[":sessionId"].resume.$post({param:{projectId:s,sessionId:t},json:{resumeMessage:e.message}});if(!r.ok)throw Error(r.statusText);return r.json()},onSuccess:async e=>{t!==e.sessionId&&d.push("/projects/".concat(s,"/sessions/").concat(e.sessionId,"#message-").concat(e.userMessageId)),p("")}}),[m,p]=(0,u.useState)(""),g=(0,u.useRef)(null),f=(0,u.useId)(),j=()=>{m.trim()&&c.mutate({message:m.trim()})};return(0,r.jsxs)("div",{className:"border-t border-border/50 bg-muted/20 p-4 mt-6",children:[c.error&&(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 mb-3 text-sm text-destructive bg-destructive/10 border border-destructive/20 rounded-md",children:[(0,r.jsx)(J.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{children:"Failed to resume chat. Please try again."})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(em.T,{ref:o,value:m,onChange:e=>p(e.target.value),onKeyDown:e=>{var s;(null==(s=g.current)||!s.handleKeyDown(e))&&"Enter"===e.key&&e.shiftKey&&(e.preventDefault(),j())},placeholder:"Type your message... (Start with / for commands, Shift+Enter to send)",className:"min-h-[60px] resize-none",disabled:c.isPending,maxLength:4e3,"aria-label":"Message input with command completion","aria-describedby":f,"aria-expanded":m.startsWith("/"),"aria-haspopup":"listbox",role:"combobox","aria-autocomplete":"list"}),(0,r.jsx)(eu.s,{ref:g,projectId:s,inputValue:m,onCommandSelect:e=>{var s;p(e),null==(s=o.current)||s.focus()},className:"absolute top-full left-0 right-0"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("span",{className:"text-xs text-muted-foreground",id:f,children:[m.length,"/4000"]}),(0,r.jsx)(x.$,{onClick:j,disabled:!m.trim()||c.isPending,size:"default",className:"gap-2",children:c.isPending?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.A,{className:"w-4 h-4 animate-spin"}),"Sending... This may take a while."]}):n||l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eo.A,{className:"w-4 h-4"}),"Send"]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eo.A,{className:"w-4 h-4"}),"Resume"]})})]})]})]})};var eh=t(26057),ep=t(5685),eg=t(62520),ef=t(51290);let ej=e=>{let{sessions:s,currentSessionId:t,projectId:a}=e,n=(0,f.md)(j.r),l=[...s].sort((e,s)=>{let t=n.find(s=>s.sessionId===e.id),r=n.find(e=>e.sessionId===s.id),a=null==t?void 0:t.status,l=null==r?void 0:r.status,i=e=>"running"===e?0:"paused"===e?1:2,d=i(a),o=i(l);if(d!==o)return d-o;let c=e.meta.lastModifiedAt?new Date(e.meta.lastModifiedAt).getTime():0;return(s.meta.lastModifiedAt?new Date(s.meta.lastModifiedAt).getTime():0)-c});return(0,r.jsxs)("div",{className:"h-full flex flex-col",children:[(0,r.jsxs)("div",{className:"border-b border-sidebar-border p-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsx)("h2",{className:"font-semibold text-lg",children:"Sessions"}),(0,r.jsx)(ef.c,{projectId:a,trigger:(0,r.jsxs)(x.$,{size:"sm",variant:"outline",className:"gap-1.5",children:[(0,r.jsx)(eg.A,{className:"w-3.5 h-3.5"}),"New"]})})]}),(0,r.jsxs)("p",{className:"text-xs text-sidebar-foreground/70",children:[s.length," total"]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto p-2 space-y-0.5",children:l.map(e=>{let s=e.id===t,l=null!==e.meta.firstCommand?(0,p.H)(e.meta.firstCommand):e.id,i=n.find(s=>s.sessionId===e.id),d=(null==i?void 0:i.status)==="running",o=(null==i?void 0:i.status)==="paused";return(0,r.jsx)(m(),{href:"/projects/".concat(a,"/sessions/").concat(encodeURIComponent(e.id)),className:(0,A.cn)("block rounded-lg p-2.5 transition-all duration-200 hover:bg-blue-50/60 hover:border-blue-300/60 hover:shadow-sm border border-sidebar-border/40 bg-sidebar/30",s&&"bg-blue-100 border-blue-400 shadow-md ring-1 ring-blue-200/50 hover:bg-blue-100 hover:border-blue-400"),children:(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,r.jsx)("h3",{className:"text-sm font-medium line-clamp-2 leading-tight text-sidebar-foreground flex-1",children:l}),(d||o)&&(0,r.jsx)(Z,{variant:d?"default":"secondary",className:(0,A.cn)("text-xs",d&&"bg-green-500 text-white",o&&"bg-yellow-500 text-white"),children:d?"Running":"Paused"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 text-xs text-sidebar-foreground/70",children:[(0,r.jsx)(eh.A,{className:"w-3 h-3"}),(0,r.jsx)("span",{children:e.meta.messageCount})]}),e.meta.lastModifiedAt&&(0,r.jsx)("span",{className:"text-xs text-sidebar-foreground/60",children:new Date(e.meta.lastModifiedAt).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]})]})},e.id)})})]})};var eb=t(57981);let ev=()=>(0,r.jsxs)("div",{className:"h-full flex flex-col",children:[(0,r.jsxs)("div",{className:"border-b border-sidebar-border p-4",children:[(0,r.jsx)("h2",{className:"font-semibold text-lg",children:"Settings"}),(0,r.jsx)("p",{className:"text-xs text-sidebar-foreground/70",children:"Display and behavior preferences"})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto p-4 space-y-6",children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("h3",{className:"font-medium text-sm text-sidebar-foreground",children:"Session Display"}),(0,r.jsx)(eb.o,{})]})})]}),eN=e=>{let{currentSessionId:s,projectId:t,className:a,isMobileOpen:n=!1,onMobileOpenChange:l}=e,{data:{sessions:i}}=(0,ep.B)(t),[d,o]=(0,u.useState)("sessions"),[c,m]=(0,u.useState)(!0),x=e=>{d===e&&c?m(!1):(o(e),m(!0))},h=(0,r.jsxs)("div",{className:(0,A.cn)("h-full border-r border-sidebar-border transition-all duration-300 ease-in-out flex bg-sidebar text-sidebar-foreground",c?"w-72 lg:w-80":"w-12"),children:[(0,r.jsx)("div",{className:"w-12 flex flex-col border-r border-sidebar-border bg-sidebar/50",children:(0,r.jsxs)("div",{className:"flex flex-col p-2 space-y-1",children:[(0,r.jsx)("button",{type:"button",onClick:()=>x("sessions"),className:(0,A.cn)("w-8 h-8 flex items-center justify-center rounded-md transition-colors","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","sessions"===d&&c?"bg-sidebar-accent text-sidebar-accent-foreground shadow-sm":"text-sidebar-foreground/70"),title:"Sessions",children:(0,r.jsx)(eh.A,{className:"w-4 h-4"})}),(0,r.jsx)("button",{type:"button",onClick:()=>x("settings"),className:(0,A.cn)("w-8 h-8 flex items-center justify-center rounded-md transition-colors","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","settings"===d&&c?"bg-sidebar-accent text-sidebar-accent-foreground shadow-sm":"text-sidebar-foreground/70"),title:"Settings",children:(0,r.jsx)(z.A,{className:"w-4 h-4"})})]})}),c&&(0,r.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden",children:(()=>{switch(d){case"sessions":return(0,r.jsx)(ej,{sessions:i,currentSessionId:s,projectId:t});case"settings":return(0,r.jsx)(ev,{});default:return null}})()})]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,A.cn)("hidden md:flex h-full",a),children:h}),(0,r.jsx)("div",{className:"md:hidden",children:(0,r.jsx)(P.lG,{open:n,onOpenChange:l,children:(0,r.jsx)(P.Cf,{className:"p-0 max-w-sm w-full h-[90vh] max-h-[90vh] overflow-hidden flex flex-col",children:(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:h})})})})]})},ey=e=>{let{projectId:s,sessionId:t}=e,{session:c,conversations:v,getToolResult:N}=((e,s)=>{let t=(0,b.useSuspenseQuery)({...((e,s)=>({queryKey:["sessions",s],queryFn:async()=>(await h.s.api.projects[":projectId"].sessions[":sessionId"].$get({param:{projectId:e,sessionId:s}})).json()}))(e,s)}),r=(0,u.useMemo)(()=>new Map(t.data.session.conversations.flatMap(e=>"user"!==e.type||"string"==typeof e.message.content?[]:e.message.content.flatMap(e=>"string"==typeof e||"tool_result"!==e.type?[]:[[e.tool_use_id,e]]))),[t.data.session.conversations]),a=(0,u.useCallback)(e=>r.get(e),[r]);return{session:t.data.session,conversations:t.data.session.conversations,getToolResult:a}})(s,t),y=(0,a.useMutation)({mutationFn:async e=>{let s=await h.s.api.tasks.abort.$post({json:{sessionId:e}});if(!s.ok)throw Error(s.statusText);return s.json()}}),{isRunningTask:w,isPausedTask:k}=(e=>{let[s,t]=(0,f.fp)(j.r);return(0,g.useQuery)({queryKey:["aliveTasks"],queryFn:async()=>{let e=await h.s.api.tasks.alive.$get({});if(!e.ok)throw Error(e.statusText);return t((await e.json()).aliveTasks),e.json()},refetchOnReconnect:!0}),(0,u.useMemo)(()=>{let t=s.find(s=>s.sessionId===e);return{aliveTask:s.find(s=>s.sessionId===e),isRunningTask:(null==t?void 0:t.status)==="running",isPausedTask:(null==t?void 0:t.status)==="paused"}},[s,e])})(t),[A,C]=(0,u.useState)(0),[S,R]=(0,u.useState)(!1),T=(0,u.useRef)(null);return(0,u.useEffect)(()=>{if((w||k)&&v.length!==A){C(v.length);let e=T.current;e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}},[v,w,k,A]),(0,r.jsxs)("div",{className:"flex h-screen",children:[(0,r.jsx)(eN,{currentSessionId:t,projectId:s,isMobileOpen:S,onMobileOpenChange:R}),(0,r.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden",children:(0,r.jsxs)("div",{ref:T,className:"max-w-none flex-1 overflow-y-auto",children:[(0,r.jsxs)("header",{className:"px-2 sm:px-3 py-3 sticky top-0 z-10 bg-background w-full",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,r.jsx)(x.$,{variant:"ghost",size:"sm",className:"md:hidden",onClick:()=>R(!0),children:(0,r.jsx)(n.A,{className:"w-4 h-4"})}),(0,r.jsx)(x.$,{asChild:!0,variant:"ghost",children:(0,r.jsxs)(m(),{href:"/projects/".concat(s),className:"flex items-center gap-2",children:[(0,r.jsx)(l.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Back to Session List"}),(0,r.jsx)("span",{className:"sm:hidden",children:"Back"})]})})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("div",{className:"flex items-center gap-3",children:(0,r.jsx)("h1",{className:"text-xl sm:text-2xl md:text-3xl font-bold break-words overflow-ellipsis line-clamp-2 px-2 sm:px-5",children:null!==c.meta.firstCommand?(0,p.H)(c.meta.firstCommand):t})}),w&&(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-primary/10 border border-primary/20 rounded-lg",children:[(0,r.jsx)(i.A,{className:"w-4 h-4 animate-spin"}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)("p",{className:"text-sm font-medium",children:"Conversation is in progress..."})}),(0,r.jsxs)(x.$,{variant:"ghost",size:"sm",onClick:()=>{y.mutate(t)},children:[(0,r.jsx)(d.A,{className:"w-4 h-4"}),"Abort"]})]}),k&&(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-primary/10 border border-primary/20 rounded-lg",children:[(0,r.jsx)(o.A,{className:"w-4 h-4"}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)("p",{className:"text-sm font-medium",children:"Conversation is paused..."})}),(0,r.jsxs)(x.$,{variant:"ghost",size:"sm",onClick:()=>{y.mutate(t)},children:[(0,r.jsx)(d.A,{className:"w-4 h-4"}),"Abort"]})]}),(0,r.jsxs)("p",{className:"text-muted-foreground font-mono text-sm",children:["Session ID: ",t]})]})]}),(0,r.jsxs)("main",{className:"w-full px-4 sm:px-8 md:px-12 lg:px-16 xl:px-20 pb-10 relative z-5",children:[(0,r.jsx)(ed,{conversations:v,getToolResult:N}),(0,r.jsx)(ex,{projectId:s,sessionId:t,isPausedTask:k,isRunningTask:w})]})]})})]})}},82791:(e,s,t)=>{Promise.resolve().then(t.bind(t,98613)),Promise.resolve().then(t.bind(t,72611)),Promise.resolve().then(t.bind(t,13881)),Promise.resolve().then(t.bind(t,85452)),Promise.resolve().then(t.bind(t,120)),Promise.resolve().then(t.bind(t,27740)),Promise.resolve().then(t.bind(t,59054)),Promise.resolve().then(t.bind(t,8120)),Promise.resolve().then(t.bind(t,9161)),Promise.resolve().then(t.bind(t,63812)),Promise.resolve().then(t.bind(t,86260)),Promise.resolve().then(t.bind(t,15312)),Promise.resolve().then(t.bind(t,45320)),Promise.resolve().then(t.bind(t,34163))},89854:(e,s,t)=>{"use strict";t.d(s,{r:()=>r});let r=(0,t(48304).eU)([])}},e=>{e.O(0,[33,150,156,608,598,5,900,341,358],()=>e(e.s=82791)),_N_E=e.O()}]);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/8d697b304b401681-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/ba015fad6dcf6784-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,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;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/569ce4b8f30dc480-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Geist Fallback;src:local("Arial");ascent-override:95.94%;descent-override:28.16%;line-gap-override:0.00%;size-adjust:104.76%}.__className_5cfdac{font-family:Geist,Geist Fallback;font-style:normal}.__variable_5cfdac{--font-geist-sans:"Geist","Geist Fallback"}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/9610d9e46709d722-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/747892c23ea88013-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,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 Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/93f479601ee12b01-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Geist Mono Fallback;src:local("Arial");ascent-override:74.67%;descent-override:21.92%;line-gap-override:0.00%;size-adjust:134.59%}.__className_9a8899{font-family:Geist Mono,Geist Mono Fallback;font-style:normal}.__variable_9a8899{--font-geist-mono:"Geist Mono","Geist Mono Fallback"}
|
|
2
|
+
|
|
3
|
+
/*! tailwindcss v4.1.12 | 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)))){*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-space-x-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-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{:host,:root{--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-500:oklch(79.5% .184 86.047);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-950:oklch(26.6% .065 152.934);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-950:oklch(28.2% .091 267.935);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-950:oklch(29.1% .149 302.717);--color-slate-50:oklch(98.4% .003 247.858);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-4xl:56rem;--container-6xl:72rem;--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:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25/1.875);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--leading-tight:1.25;--leading-relaxed:1.625;--radius-xs:.125rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}}@layer base{*,::backdrop,:after,:before{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}:host,html{-webkit-text-size-adjust:100%;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,pre,samp{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}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,optgroup,select,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,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-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]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-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)}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.collapse{visibility:collapse}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden}.absolute,.sr-only{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.top-\[50\%\]{top:50%}.top-full{top:100%}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.left-0{left:calc(var(--spacing)*0)}.left-\[50\%\]{left:50%}.z-5{z-index:5}.z-10{z-index:10}.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-2{margin-inline:calc(var(--spacing)*-2)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing)*4)}.my-6{margin-block:calc(var(--spacing)*6)}.my-8{margin-block:calc(var(--spacing)*8)}.\!mt-0{margin-top:calc(var(--spacing)*0)!important}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mr-1{margin-right:calc(var(--spacing)*1)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-6{margin-left:calc(var(--spacing)*6)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-2{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.aspect-square{aspect-ratio:1}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-full{width:100%;height:100%}.h-3{height:calc(var(--spacing)*3)}.h-3\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-\[90vh\]{height:90vh}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.max-h-48{max-height:calc(var(--spacing)*48)}.max-h-96{max-height:calc(var(--spacing)*96)}.max-h-\[80vh\]{max-height:80vh}.max-h-\[90vh\]{max-height:90vh}.min-h-4{min-height:calc(var(--spacing)*4)}.min-h-\[60px\]{min-height:60px}.min-h-\[100px\]{min-height:100px}.\!w-\[1200px\]{width:1200px!important}.w-3{width:calc(var(--spacing)*3)}.w-3\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-64{width:calc(var(--spacing)*64)}.w-72{width:calc(var(--spacing)*72)}.w-fit{width:fit-content}.w-full{width:100%}.\!max-w-none{max-width:none!important}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.origin-\(--radix-hover-card-content-transform-origin\){transform-origin:var(--radix-hover-card-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-x-\[-50\%\],.translate-y-\[-50\%\]{translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-180{rotate:180deg}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-\[0_1fr\]{grid-template-columns:0 1fr}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.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}.justify-start{justify-content:flex-start}.justify-items-start{justify-items:start}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}: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)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-0\.5{row-gap:calc(var(--spacing)*.5)}.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-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:3.40282e+38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.\!rounded-t-none{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-t-lg{border-top-left-radius:var(--radius)}.rounded-r-lg,.rounded-t-lg{border-top-right-radius:var(--radius)}.rounded-r-lg{border-bottom-right-radius:var(--radius)}.\!rounded-b-lg{border-bottom-right-radius:var(--radius)!important;border-bottom-left-radius:var(--radius)!important}.\!border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border{border-style:var(--tw-border-style);border-width:1px}.\!border-t-0{border-top-style:var(--tw-border-style)!important;border-top-width:0!important}.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-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.\!border-border{border-color:var(--border)!important}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-400{border-color:var(--color-blue-400)}.border-border,.border-border\/50{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.border-border\/50{border-color:color-mix(in oklab,var(--border)50%,transparent)}}.border-destructive\/20{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/20{border-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.border-green-200{border-color:var(--color-green-200)}.border-green-300{border-color:var(--color-green-300)}.border-input{border-color:var(--input)}.border-primary\/20{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.border-primary\/20{border-color:color-mix(in oklab,var(--primary)20%,transparent)}}.border-primary\/30{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.border-primary\/30{border-color:color-mix(in oklab,var(--primary)30%,transparent)}}.border-purple-200{border-color:var(--color-purple-200)}.border-purple-300{border-color:var(--color-purple-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-400{border-color:var(--color-red-400)}.border-sidebar-border,.border-sidebar-border\/40{border-color:var(--sidebar-border)}@supports (color:color-mix(in lab,red,red)){.border-sidebar-border\/40{border-color:color-mix(in oklab,var(--sidebar-border)40%,transparent)}}.border-transparent{border-color:#0000}.bg-accent{background-color:var(--accent)}.bg-background{background-color:var(--background)}.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-50\/50{background-color:#eff6ff80}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\/50{background-color:color-mix(in oklab,var(--color-blue-50)50%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-card{background-color:var(--card)}.bg-destructive,.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-gray-50{background-color:var(--color-gray-50)}.bg-green-50\/50{background-color:#f0fdf480}@supports (color:color-mix(in lab,red,red)){.bg-green-50\/50{background-color:color-mix(in oklab,var(--color-green-50)50%,transparent)}}.bg-green-500{background-color:var(--color-green-500)}.bg-muted,.bg-muted\/20{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/20{background-color:color-mix(in oklab,var(--muted)20%,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-muted\/70{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/70{background-color:color-mix(in oklab,var(--muted)70%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary,.bg-primary\/10{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/10{background-color:color-mix(in oklab,var(--primary)10%,transparent)}}.bg-purple-50\/50{background-color:#faf5ff80}@supports (color:color-mix(in lab,red,red)){.bg-purple-50\/50{background-color:color-mix(in oklab,var(--color-purple-50)50%,transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\/50{background-color:#fef2f280}@supports (color:color-mix(in lab,red,red)){.bg-red-50\/50{background-color:color-mix(in oklab,var(--color-red-50)50%,transparent)}}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-accent{background-color:var(--sidebar-accent)}.bg-sidebar\/30{background-color:var(--sidebar)}@supports (color:color-mix(in lab,red,red)){.bg-sidebar\/30{background-color:color-mix(in oklab,var(--sidebar)30%,transparent)}}.bg-sidebar\/50{background-color:var(--sidebar)}@supports (color:color-mix(in lab,red,red)){.bg-sidebar\/50{background-color:color-mix(in oklab,var(--sidebar)50%,transparent)}}.bg-slate-50{background-color:var(--color-slate-50)}.bg-transparent{background-color:#0000}.bg-yellow-500{background-color:var(--color-yellow-500)}.object-contain{object-fit:contain}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0{padding-block:calc(var(--spacing)*0)}.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-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-12{padding-block:calc(var(--spacing)*12)}.pt-0{padding-top:calc(var(--spacing)*0)}.pr-4{padding-right:calc(var(--spacing)*4)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-10{padding-bottom:calc(var(--spacing)*10)}.pl-6{padding-left:calc(var(--spacing)*6)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--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-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-7{--tw-leading:calc(var(--spacing)*7);line-height:calc(var(--spacing)*7)}.leading-none{--tw-leading:1;line-height:1}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.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-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)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.overflow-ellipsis,.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent-foreground{color:var(--accent-foreground)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-accent-foreground{color:var(--sidebar-accent-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/60{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/60{color:color-mix(in oklab,var(--sidebar-foreground)60%,transparent)}}.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground)70%,transparent)}}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.decoration-primary\/30{-webkit-text-decoration-color:var(--primary);text-decoration-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.decoration-primary\/30{-webkit-text-decoration-color:color-mix(in oklab,var(--primary)30%,transparent);text-decoration-color:color-mix(in oklab,var(--primary)30%,transparent)}}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)}.shadow-lg,.shadow-md{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.shadow-sm,.shadow-xs{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)}.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-blue-200\/50{--tw-ring-color:#bedbff80}@supports (color:color-mix(in lab,red,red)){.ring-blue-200\/50{--tw-ring-color:color-mix(in oklab,var(--color-blue-200)50%,transparent)}}.ring-offset-background{--tw-ring-offset-color:var(--background)}.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}.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-\[color\,box-shadow\]{transition-property:color,box-shadow;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-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;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))}.transition-none{transition-property:none}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.paused{animation-play-state:paused}.running{animation-play-state:running}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing)*7)}.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\:border-blue-300\/60:hover{border-color:#90c5ff99}@supports (color:color-mix(in lab,red,red)){.hover\:border-blue-300\/60:hover{border-color:color-mix(in oklab,var(--color-blue-300)60%,transparent)}}.hover\:border-blue-400:hover{border-color:var(--color-blue-400)}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-blue-50\/60:hover{background-color:#eff6ff99}@supports (color:color-mix(in lab,red,red)){.hover\:bg-blue-50\/60:hover{background-color:color-mix(in oklab,var(--color-blue-50)60%,transparent)}}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.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\/80:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/80:hover{background-color:color-mix(in oklab,var(--muted)80%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,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\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-primary\/80:hover{color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:text-primary\/80:hover{color:color-mix(in oklab,var(--primary)80%,transparent)}}.hover\:text-red-800:hover{color:var(--color-red-800)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:decoration-primary\/60:hover{-webkit-text-decoration-color:var(--primary);text-decoration-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:decoration-primary\/60:hover{-webkit-text-decoration-color:color-mix(in oklab,var(--primary)60%,transparent);text-decoration-color:color-mix(in oklab,var(--primary)60%,transparent)}}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a)}.hover\:shadow-md:hover,.hover\:shadow-sm:hover{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-sm:hover{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + 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\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + 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-\[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\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.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\:opacity-50:disabled{opacity:.5}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-\[\>svg\]\:grid-cols-\[calc\(var\(--spacing\)\*4\)_1fr\]:has(>svg){grid-template-columns:calc(var(--spacing)*4)1fr}.has-\[\>svg\]\:gap-x-3:has(>svg){column-gap:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.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\=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))}:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:color-mix(in oklab,var(--destructive)90%,transparent)}}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}.data-\[state\=active\]\:text-foreground[data-state=active]{color:var(--foreground)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px 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)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{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-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:animate-in[data-state=open]{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-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}@media (min-width:40rem){.sm\:mx-2{margin-inline:calc(var(--spacing)*2)}.sm\:my-6{margin-block:calc(var(--spacing)*6)}.sm\:mb-8{margin-bottom:calc(var(--spacing)*8)}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:h-5{height:calc(var(--spacing)*5)}.sm\:h-6{height:calc(var(--spacing)*6)}.sm\:w-5{width:calc(var(--spacing)*5)}.sm\:w-6{width:calc(var(--spacing)*6)}.sm\:w-\[90\%\]{width:90%}.sm\:w-auto{width:auto}.sm\:max-w-\[500px\]{max-width:500px}.sm\:max-w-lg{max-width:var(--container-lg)}.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-3{gap:calc(var(--spacing)*3)}.sm\:px-3{padding-inline:calc(var(--spacing)*3)}.sm\:px-4{padding-inline:calc(var(--spacing)*4)}.sm\:px-5{padding-inline:calc(var(--spacing)*5)}.sm\:px-8{padding-inline:calc(var(--spacing)*8)}.sm\:py-8{padding-block:calc(var(--spacing)*8)}.sm\:text-left{text-align:left}.sm\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (min-width:48rem){.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-\[85\%\]{width:85%}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:px-12{padding-inline:calc(var(--spacing)*12)}.md\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (min-width:64rem){.lg\:w-80{width:calc(var(--spacing)*80)}.lg\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:px-16{padding-inline:calc(var(--spacing)*16)}}@media (min-width:80rem){.xl\:px-20{padding-inline:calc(var(--spacing)*20)}}.dark\:border-blue-700:is(.dark *){border-color:var(--color-blue-700)}.dark\:border-blue-800:is(.dark *){border-color:var(--color-blue-800)}.dark\:border-green-700:is(.dark *){border-color:var(--color-green-700)}.dark\:border-green-800:is(.dark *){border-color:var(--color-green-800)}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:border-purple-700:is(.dark *){border-color:var(--color-purple-700)}.dark\:border-purple-800:is(.dark *){border-color:var(--color-purple-800)}.dark\:border-red-800:is(.dark *){border-color:var(--color-red-800)}.dark\:bg-blue-950\/20:is(.dark *){background-color:#16245633}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-950\/20:is(.dark *){background-color:color-mix(in oklab,var(--color-blue-950)20%,transparent)}}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:bg-green-950\/20:is(.dark *){background-color:#032e1533}@supports (color:color-mix(in lab,red,red)){.dark\:bg-green-950\/20:is(.dark *){background-color:color-mix(in oklab,var(--color-green-950)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\:bg-purple-950\/20:is(.dark *){background-color:#3c036633}@supports (color:color-mix(in lab,red,red)){.dark\:bg-purple-950\/20:is(.dark *){background-color:color-mix(in oklab,var(--color-purple-950)20%,transparent)}}.dark\:bg-red-950\/20:is(.dark *){background-color:#46080933}@supports (color:color-mix(in lab,red,red)){.dark\:bg-red-950\/20:is(.dark *){background-color:color-mix(in oklab,var(--color-red-950)20%,transparent)}}.dark\:text-blue-300:is(.dark *){color:var(--color-blue-300)}.dark\:text-blue-400:is(.dark *){color:var(--color-blue-400)}.dark\:text-green-300:is(.dark *){color:var(--color-green-300)}.dark\:text-green-400:is(.dark *){color:var(--color-green-400)}.dark\:text-purple-300:is(.dark *){color:var(--color-purple-300)}.dark\:text-purple-400:is(.dark *){color:var(--color-purple-400)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}@media (hover:hover){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,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\: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\: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)}}.dark\:data-\[state\=checked\]\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&\>svg\]\:translate-y-0\.5>svg{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.\[\&\>svg\]\:text-current>svg{color:currentColor}@media (hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab,var(--secondary)90%,transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@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}:root{--radius:.625rem;--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(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--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(92.2% 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(26.9% 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(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--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-space-x-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}@keyframes spin{to{transform:rotate(1turn)}}@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))}}
|