@euraika-labs/pan-ui 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/.next/standalone/package.json +1 -1
  2. package/.next/static/chunks/1257.5a9a3f3bc1e6e4ed.js +1 -0
  3. package/.next/static/chunks/1635-44de098967ff5444.js +1 -0
  4. package/.next/static/chunks/3140.a3aebdd856baf0d3.js +1 -0
  5. package/.next/static/chunks/5097-d987432c8a1ddd83.js +1 -0
  6. package/.next/static/chunks/9475-c598640ff854b528.js +1 -0
  7. package/.next/static/chunks/9860-b632f9e287faaf54.js +1 -0
  8. package/.next/static/chunks/app/chat/page-f3942a49cfe4b77b.js +1 -0
  9. package/.next/static/chunks/app/extensions/[id]/{page-7c76094c2a6c11f6.js → page-0f477dc304d1d5cf.js} +1 -1
  10. package/.next/static/chunks/app/extensions/page-e0ed118aa408f2e3.js +1 -0
  11. package/.next/static/chunks/app/login/page-d23b3ef0f354f117.js +1 -0
  12. package/.next/static/chunks/app/marketplace/page-e9f839ad75b7f4a8.js +1 -0
  13. package/.next/static/chunks/app/memory/{page-b342176f578ac3e1.js → page-f95977739323e68e.js} +1 -1
  14. package/.next/static/chunks/app/plugins/page-12765968a2205454.js +1 -0
  15. package/.next/static/chunks/app/profiles/{page-a310e2af4f74b22a.js → page-97406601ee76c29f.js} +1 -1
  16. package/.next/static/chunks/app/settings/approvals/{page-fb7f8c77298778c6.js → page-1896332d180b6b0b.js} +1 -1
  17. package/.next/static/chunks/app/settings/artifacts/{page-df5f9d3c400b1586.js → page-81d011d52fa461cc.js} +1 -1
  18. package/.next/static/chunks/app/settings/audit/{page-0662a3333df6ae9f.js → page-bfb44fd8063d016e.js} +1 -1
  19. package/.next/static/chunks/app/settings/health/page-61496548509805ea.js +1 -0
  20. package/.next/static/chunks/app/settings/mcp-diagnostics/{page-8e1832173f7549ca.js → page-9ebfa25825168715.js} +1 -1
  21. package/.next/static/chunks/app/settings/page-c2f930a6fe7cde0f.js +1 -0
  22. package/.next/static/chunks/app/settings/runs/[id]/{page-5a303128e85d58fe.js → page-734dea18f0ca8aaa.js} +1 -1
  23. package/.next/static/chunks/app/settings/runs/{page-984128fbd605e8d0.js → page-e0160a1bd8df943a.js} +1 -1
  24. package/.next/static/chunks/app/settings/telemetry/{page-78aa5bafcbbda4d0.js → page-029bd254b2dd0864.js} +1 -1
  25. package/.next/static/chunks/app/skills/[id]/page-241027df81583175.js +1 -0
  26. package/.next/static/chunks/app/skills/page-cdeae1ae5c2ca918.js +1 -0
  27. package/.next/static/chunks/webpack-3f60b0ecd96bfc29.js +1 -0
  28. package/.next/static/css/371b679522737b32.css +3 -0
  29. package/README.md +11 -6
  30. package/package.json +1 -1
  31. package/.next/static/chunks/1257.54113c0563d88c2a.js +0 -1
  32. package/.next/static/chunks/1309-d826505bfad78fd1.js +0 -1
  33. package/.next/static/chunks/2879-f52b74c5a777c467.js +0 -1
  34. package/.next/static/chunks/5097-5b8f431c6476eb16.js +0 -1
  35. package/.next/static/chunks/5466-d51838091ed9ea30.js +0 -1
  36. package/.next/static/chunks/7125.612316a1e048a7f4.js +0 -1
  37. package/.next/static/chunks/app/chat/page-546ff23415364599.js +0 -1
  38. package/.next/static/chunks/app/extensions/page-f539189aff2b1b94.js +0 -1
  39. package/.next/static/chunks/app/login/page-a3820386479beb5e.js +0 -1
  40. package/.next/static/chunks/app/marketplace/page-6b778df190bb536a.js +0 -1
  41. package/.next/static/chunks/app/plugins/page-7b22ec026349b568.js +0 -1
  42. package/.next/static/chunks/app/settings/health/page-db439e6c286b740d.js +0 -1
  43. package/.next/static/chunks/app/settings/page-88a91cd1a7247d31.js +0 -1
  44. package/.next/static/chunks/app/skills/[id]/page-38550f8e5d12c113.js +0 -1
  45. package/.next/static/chunks/app/skills/page-72556e7fabec6267.js +0 -1
  46. package/.next/static/chunks/webpack-d0188ab3bbe75853.js +0 -1
  47. package/.next/static/css/f1e2a36e93e27dc9.css +0 -3
  48. /package/.next/static/{U9MGh7Yll3BhhAfxC8UW9 → 1rIKKfgwcoD-Sz4I0QlZE}/_buildManifest.js +0 -0
  49. /package/.next/static/{U9MGh7Yll3BhhAfxC8UW9 → 1rIKKfgwcoD-Sz4I0QlZE}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@euraika-labs/pan-ui",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Beautiful WebUI for Hermes Agent — chat, skills, plugins, memory, profiles, and runtime diagnostics in one workspace.",
5
5
  "keywords": [
6
6
  "hermes",
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1257],{685:(e,t,r)=>{function l(e,t){return"builtin"===e?"Built in for every workspace":"global"===e?"Installed for all profiles":t?"Profile scoped \xb7 ".concat(t):"Profile scoped"}function s(e){switch(e){case"built-in":return"Official";case"verified":return"Verified";case"custom":return"Community";case"local-process":return"Local";default:return e}}function a(e){switch(e){case"built-in":return"Official";case"verified":return"Verified";case"custom":return"Community";case"self-hosted":return"Self-hosted";case"local-process":return"Local process";default:return"Unknown source"}}function n(e){switch(e){case"read":case"low":return"Low risk";case"write":case"medium":return"Writes data";case"execute":return"Executes commands";case"admin":case"high":return"High privilege";default:return e}}function d(e){let t=String(null!=e?e:"unknown");return"needs-auth"===t?"Needs auth":"expired"===t?"Auth expired":"none"===t?"No auth required":"unknown"===t?"Auth unknown":"Auth connected"}function o(e){switch(e){case"enabled":return"Enabled by policy";case"blocked":return"Blocked by policy";case"approval-gated":return"Approval required";case"policy-limited":return"Policy limited";default:return"Governance unknown"}}function i(e){switch(e){case"auto":return"Auto approve";case"on-request":return"On request";case"always":return"Always ask";default:return"Policy inherited"}}function c(e){switch(e){case"global":return"Visible to every profile";case"profile":return"Visible only in this profile";case"session":return"Loaded only in the active session";default:return e}}r.d(t,{B6:()=>i,BX:()=>d,CF:()=>a,CV:()=>s,Ow:()=>o,VJ:()=>l,b:()=>n,mF:()=>c})},1257:(e,t,r)=>{r.r(t),r.d(t,{SkillsScreen:()=>L});var l=r(5155),s=r(2115),a=r(63),n=r(6907),d=r(7910),o=r(7801),i=r(9867),c=r(5880),u=r(9068),m=r(9347),x=r(6651),p=r(5229),h=r(8734),g=r(8584),f=r(2619),b=r.n(f),y=r(7726),v=r(1613),j=r(685);function k(e){var t;let{skill:r,loadedInCurrentSession:s=!1,sessionId:a}=e,n=a?"/skills/".concat(r.id,"?session=").concat(encodeURIComponent(a)):"/skills/".concat(r.id),d=null==(t=r.linkedFiles)?void 0:t.reduce((e,t)=>(e[t.group]=(e[t.group]||0)+1,e),{});return(0,l.jsxs)(b(),{href:n,"aria-label":r.id,className:"block rounded-2xl border border-border/70 bg-card p-4 shadow-sm transition hover:-translate-y-0.5 hover:bg-muted/40 hover:shadow-md",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("h3",{className:"truncate text-sm font-semibold",children:r.name}),r.category?(0,l.jsxs)("span",{className:"hidden shrink-0 items-center gap-1 rounded-md bg-muted/60 px-1.5 py-0.5 text-3xs text-muted-foreground sm:inline-flex",children:[(0,l.jsx)(h.A,{className:"h-2.5 w-2.5"}),r.category]}):null]}),(0,l.jsx)("p",{className:"mt-1 line-clamp-2 text-xs leading-5 text-muted-foreground",children:r.description})]}),(0,l.jsxs)("div",{className:"space-y-1.5 text-right text-3xs",children:[(0,l.jsx)("p",{className:"rounded-full border border-border/60 px-2 py-0.5",children:(0,j.VJ)(r.scope,r.ownerProfileId)}),(0,l.jsx)("p",{className:"rounded-full border border-border/60 px-2 py-0.5",children:(0,j.CV)(r.provenance)})]})]}),r.tags&&r.tags.length>0?(0,l.jsxs)("div",{className:"mt-2 flex flex-wrap gap-1",children:[r.tags.slice(0,4).map(e=>(0,l.jsxs)("span",{className:"inline-flex items-center gap-0.5 rounded-md bg-primary/8 px-1.5 py-0.5 text-3xs text-muted-foreground",children:[(0,l.jsx)(y.A,{className:"h-2 w-2"}),e]},e)),r.tags.length>4?(0,l.jsxs)("span",{className:"rounded-md bg-muted/50 px-1.5 py-0.5 text-3xs text-muted-foreground",children:["+",r.tags.length-4]}):null]}):null,(0,l.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-1.5 text-xs",children:[(0,l.jsx)("span",{className:"rounded-full px-2 py-0.5 ".concat(r.enabled?"bg-success/15 text-foreground":"bg-muted text-muted-foreground"),children:r.enabled?"Enabled":r.installed?"Installed":"Available"}),s?(0,l.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-foreground",children:"Loaded"}):null,d&&Object.keys(d).length>0?(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full border border-border/50 px-2 py-0.5 text-muted-foreground",children:[(0,l.jsx)(v.A,{className:"h-3 w-3"}),Object.entries(d).map(e=>{let[t,r]=e;return"".concat(r," ").concat(t)}).join(", ")]}):null,r.updatedAt?(0,l.jsx)("span",{className:"rounded-full border border-border/50 px-2 py-0.5 text-muted-foreground",children:new Date(r.updatedAt).toLocaleDateString()}):null]})]})}var N=r(9318),w=r(2604);function A(e){let{level:t}=e;return"trusted"===t?(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-emerald-500/15 px-2 py-0.5 text-3xs font-medium text-emerald-400",children:[(0,l.jsx)(n.A,{className:"h-2.5 w-2.5"}),"Trusted"]}):"official"===t?(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-blue-500/15 px-2 py-0.5 text-3xs font-medium text-blue-400",children:[(0,l.jsx)(d.A,{className:"h-2.5 w-2.5"}),"Official"]}):(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-amber-500/15 px-2 py-0.5 text-3xs font-medium text-amber-400",children:[(0,l.jsx)(o.A,{className:"h-2.5 w-2.5"}),"Community"]})}function C(e){let{audits:t}=e;return t?(0,l.jsx)("div",{className:"flex gap-1",children:Object.entries(t).map(e=>{let[t,r]=e;return(0,l.jsxs)("span",{className:"rounded-full px-1.5 py-0.5 text-[9px] font-medium ".concat("Pass"===r?"bg-emerald-500/15 text-emerald-400":"Warn"===r?"bg-amber-500/15 text-amber-400":"bg-red-500/15 text-red-400"),children:[t,": ",r]},t)})}):null}function S(e){var t,r;let{skill:s,onInstall:a,installing:n}=e;return(0,l.jsxs)("div",{className:"flex flex-col rounded-2xl border border-border/70 bg-card p-4 shadow-sm transition hover:-translate-y-0.5 hover:shadow-md",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("h3",{className:"truncate text-sm font-semibold",children:s.name}),(0,l.jsx)(A,{level:s.trustLevel})]}),(0,l.jsx)("p",{className:"mt-0.5 text-2xs text-muted-foreground",children:s.repo})]}),null!=s.installs?(0,l.jsxs)("span",{className:"shrink-0 rounded-lg bg-muted/50 px-2 py-0.5 text-3xs text-muted-foreground",children:[(0,l.jsx)(i.A,{className:"mr-0.5 inline h-2.5 w-2.5"}),s.installs.toLocaleString()]}):null]}),(0,l.jsx)("p",{className:"mt-2 line-clamp-3 flex-1 text-xs leading-5 text-muted-foreground",children:(null==(t=s.detail)?void 0:t.summary)||s.description}),(null==(r=s.detail)?void 0:r.securityAudits)?(0,l.jsx)("div",{className:"mt-2",children:(0,l.jsx)(C,{audits:s.detail.securityAudits})}):null,(0,l.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,l.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),a()},disabled:n,className:"rounded-xl bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground shadow-sm transition hover:opacity-90 disabled:opacity-50",children:n?"Installing…":"Install"}),s.detailUrl?(0,l.jsxs)("a",{href:s.detailUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-xl border border-border/50 px-2.5 py-1.5 text-xs text-muted-foreground transition hover:bg-muted/40",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)(c.A,{className:"h-3 w-3"}),"skills.sh"]}):null,s.repoUrl?(0,l.jsxs)("a",{href:s.repoUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-xl border border-border/50 px-2.5 py-1.5 text-xs text-muted-foreground transition hover:bg-muted/40",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)(u.A,{className:"h-3 w-3"}),"Repo"]}):null]})]})}function L(){var e,t,r,n,d,o;let i=(0,a.useRouter)(),c=(0,a.useSearchParams)().get("session"),[u,f]=(0,s.useState)("installed"),[b,y]=(0,s.useState)(null),[v,j]=(0,s.useState)(""),[A,C]=(0,s.useState)(""),[L,M]=(0,s.useState)(""),I=(0,N.a$)("installed"===u),V=(0,N.$P)(),F=(0,N.vb)(A||void 0),P=(0,N.jM)(),[q,O]=(0,s.useState)(null),{selectedProfileId:H,activeSessionId:E,setActiveSessionId:U}=(0,w.j)();(0,s.useEffect)(()=>{c&&(c!==E&&U(c),i.replace("/skills",{scroll:!1}))},[E,c,i,U]);let z=(0,g.Ux)(H,null!=c?c:E),D=new Set((null==(t=z.data)||null==(e=t.loadedSkillIds)?void 0:e.length)?z.data.loadedSkillIds:["skill-authoring"]),_=null!=(d=I.data)?d:[],B=(0,s.useMemo)(()=>{var e;let t=new Set;for(let e of _)e.category&&t.add(e.category);for(let r of null!=(e=V.data)?e:[])t.add(r);return Array.from(t).sort()},[_,V.data]),T=(0,s.useMemo)(()=>{let e=_;if(b&&(e=e.filter(e=>e.category===b)),v.trim()){let t=v.toLowerCase();e=e.filter(e=>{var r,l;return e.name.toLowerCase().includes(t)||e.description.toLowerCase().includes(t)||(null==(r=e.tags)?void 0:r.some(e=>e.toLowerCase().includes(t)))||(null==(l=e.category)?void 0:l.toLowerCase().includes(t))})}return e},[_,b,v]),R=null!=(o=null==(r=F.data)?void 0:r.skills)?o:[],G=_.filter(e=>e.enabled).length,J=_.filter(e=>e.linkedFiles&&e.linkedFiles.length>0).length;async function W(e){O(e.id);try{await P.mutateAsync({identifier:e.identifier})}finally{O(null)}}return(0,l.jsxs)("div",{className:"h-full overflow-y-auto space-y-5 p-4 pb-8 lg:p-6 lg:pb-10",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"text-2xl font-semibold",children:"Skills"}),(0,l.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"installed"===u?(0,l.jsxs)(l.Fragment,{children:["Browse ",_.length," installed skills across ",B.length," categories.",G>0?" ".concat(G," enabled."):"",J>0?" ".concat(J," include references, scripts, or templates."):""]}):(0,l.jsxs)(l.Fragment,{children:["Discover skills from skills.sh and other registries. ",R.length," available to install",(null==(n=F.data)?void 0:n.total)?" (".concat(F.data.total," total, ").concat(F.data.total-R.length," already installed)"):"","."]})})]}),(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>f("installed"),className:"rounded-xl px-4 py-2 text-sm font-medium transition ".concat("installed"===u?"bg-primary text-primary-foreground shadow-sm":"border border-border/70 text-muted-foreground hover:bg-card"),children:["Installed (",_.length,")"]}),(0,l.jsxs)("button",{type:"button",onClick:()=>f("discover"),className:"rounded-xl px-4 py-2 text-sm font-medium transition ".concat("discover"===u?"bg-primary text-primary-foreground shadow-sm":"border border-border/70 text-muted-foreground hover:bg-card"),children:[(0,l.jsx)(m.A,{className:"mr-1 inline h-3.5 w-3.5"}),"Discover"]})]}),"installed"===u?(0,l.jsxs)("div",{className:"relative flex-1 min-w-[200px] max-w-md",children:[(0,l.jsx)(x.A,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),(0,l.jsx)("input",{type:"text",placeholder:"Search skills by name, tag, or category…",value:v,onChange:e=>j(e.target.value),className:"w-full rounded-xl border border-border/70 bg-background/80 py-2 pl-9 pr-8 text-sm outline-none placeholder:text-muted-foreground focus:ring-2 focus:ring-primary/30"}),v?(0,l.jsx)("button",{type:"button",onClick:()=>j(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:(0,l.jsx)(p.A,{className:"h-4 w-4"})}):null]}):(0,l.jsxs)("form",{className:"relative flex-1 min-w-[200px] max-w-md",onSubmit:e=>{e.preventDefault(),C(L)},children:[(0,l.jsx)(x.A,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),(0,l.jsx)("input",{type:"text",placeholder:"Search skills.sh (e.g. kubernetes, react, python)…",value:L,onChange:e=>M(e.target.value),className:"w-full rounded-xl border border-border/70 bg-background/80 py-2 pl-9 pr-8 text-sm outline-none placeholder:text-muted-foreground focus:ring-2 focus:ring-primary/30"}),L?(0,l.jsx)("button",{type:"button",onClick:()=>{M(""),C("")},className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:(0,l.jsx)(p.A,{className:"h-4 w-4"})}):null]})]}),"installed"===u?(0,l.jsxs)(l.Fragment,{children:[B.length>0?(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,l.jsx)(h.A,{className:"h-4 w-4 text-muted-foreground"}),(0,l.jsx)("button",{type:"button",onClick:()=>y(null),className:"rounded-lg px-3 py-1 text-xs font-medium transition ".concat(b?"border border-border/50 text-muted-foreground hover:bg-card":"bg-primary/15 text-foreground ring-1 ring-primary/30"),children:"All"}),B.map(e=>{let t=_.filter(t=>t.category===e).length;return(0,l.jsxs)("button",{type:"button",onClick:()=>y(b===e?null:e),className:"rounded-lg px-3 py-1 text-xs font-medium transition ".concat(b===e?"bg-primary/15 text-foreground ring-1 ring-primary/30":"border border-border/50 text-muted-foreground hover:bg-card"),children:[e," (",t,")"]},e)})]}):null,I.isLoading?(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading skill data…"}):null,D.size?(0,l.jsxs)("div",{className:"rounded-2xl border border-border/70 bg-card/80 p-3 text-sm text-muted-foreground",children:[(0,l.jsx)("span",{className:"font-medium text-foreground",children:"Loaded in current session:"}),(0,l.jsx)("span",{className:"ml-2",children:Array.from(D).join(", ")})]}):null,I.isLoading||0!==T.length?null:(0,l.jsx)("div",{className:"rounded-2xl border border-dashed border-border/70 bg-card/60 p-5 text-sm text-muted-foreground",children:v||b?'No skills match "'.concat(v||b,'". Try a different filter.'):"No installed skills were detected for the current runtime/profile scope."}),(0,l.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:T.map(e=>(0,l.jsx)(k,{skill:e,loadedInCurrentSession:D.has(e.id),sessionId:null!=c?c:E},e.id))})]}):null,"discover"===u?(0,l.jsxs)(l.Fragment,{children:[F.isLoading?(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Searching skills.sh…"}):null,F.isLoading||0!==R.length?null:(0,l.jsx)("div",{className:"rounded-2xl border border-dashed border-border/70 bg-card/60 p-5 text-sm text-muted-foreground",children:A?'No skills found for "'.concat(A,'". Try a different search term.'):"No discoverable skills found. The skills.sh cache may need to be populated — run `hermes skills browse` in your terminal."}),(0,l.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:R.map(e=>(0,l.jsx)(S,{skill:e,onInstall:()=>W(e),installing:q===e.id},e.id))})]}):null]})}},1613:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(1847).A)("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]])},5880:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(1847).A)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},7726:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(1847).A)("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]])},7910:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(1847).A)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},8734:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(1847).A)("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]])},9068:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(1847).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9347:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(1847).A)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},9867:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(1847).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1635],{63:(e,t,r)=>{var n=r(7260);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},497:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("ShieldQuestion",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},549:(e,t,r)=>{r.d(t,{n:()=>c});var n=r(2115),o=r(8559),s=r(4268),a=r(8445),i=r(4049),l=class extends a.Q{#e;#t=void 0;#r;#n;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,i.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,i.EN)(t.mutationKey)!==(0,i.EN)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#o(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#o(),this.#s()}mutate(e,t){return this.#n=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#o(){let e=this.#r?.state??(0,o.$)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#s(e){s.jG.batch(()=>{if(this.#n&&this.hasListeners()){let t=this.#t.variables,r=this.#t.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#n.onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{this.#n.onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#n.onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{this.#n.onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},u=r(9776);function c(e,t){let r=(0,u.jE)(t),[o]=n.useState(()=>new l(r,e));n.useEffect(()=>{o.setOptions(e)},[o,e]);let a=n.useSyncExternalStore(n.useCallback(e=>o.subscribe(s.jG.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c=n.useCallback((e,t)=>{o.mutate(e,t).catch(i.lQ)},[o]);if(a.error&&(0,i.GU)(o.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:c,mutateAsync:a.mutate}}},906:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},1473:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]])},1847:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(2115);let o=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:u="",children:c,iconNode:d,...h}=e;return(0,n.createElement)("svg",{ref:t,...s,width:a,height:a,stroke:r,strokeWidth:l?24*Number(i)/Number(a):i,className:o("lucide",u),...h},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),i=(e,t)=>{let r=(0,n.forwardRef)((r,s)=>{let{className:i,...l}=r;return(0,n.createElement)(a,{ref:s,iconNode:t,className:o("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),i),...l})});return r.displayName="".concat(e),r}},2296:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return f},MiddlewareNotFoundError:function(){return g},MissingStaticPage:function(){return m},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return i},isAbsoluteUrl:function(){return s},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return v}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),s=0;s<n;s++)o[s]=arguments[s];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>o.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function i(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let h="undefined"!=typeof performance,p=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class f extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class m extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class g extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},2454:(e,t,r)=>{r.d(t,{I:()=>w});var n=r(6195),o=r(7788),s=r(4268),a=r(1668),i=r(8445),l=r(3515),u=r(4049),c=r(7126),d=class extends i.Q{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#i=(0,l.T)(),this.bindMethods(),this.setOptions(t)}#e;#l=void 0;#u=void 0;#t=void 0;#c;#d;#i;#a;#h;#p;#f;#b;#y;#m;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#l.addObserver(this),h(this.#l,this.options)?this.#v():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return p(this.#l,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return p(this.#l,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#k(),this.#l.removeObserver(this)}setOptions(e){let t=this.options,r=this.#l;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.Eh)(this.options.enabled,this.#l))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#R(),this.#l.setOptions(this.options),t._defaulted&&!(0,u.f8)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#l,observer:this});let n=this.hasListeners();n&&f(this.#l,r,this.options,t)&&this.#v(),this.updateResult(),n&&(this.#l!==r||(0,u.Eh)(this.options.enabled,this.#l)!==(0,u.Eh)(t.enabled,this.#l)||(0,u.d2)(this.options.staleTime,this.#l)!==(0,u.d2)(t.staleTime,this.#l))&&this.#M();let o=this.#S();n&&(this.#l!==r||(0,u.Eh)(this.options.enabled,this.#l)!==(0,u.Eh)(t.enabled,this.#l)||o!==this.#m)&&this.#O(o)}getOptimisticResult(e){var t,r;let n=this.#e.getQueryCache().build(this.#e,e),o=this.createResult(n,e);return t=this,r=o,(0,u.f8)(t.getCurrentResult(),r)||(this.#t=o,this.#d=this.options,this.#c=this.#l.state),o}getCurrentResult(){return this.#t}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#i.status||this.#i.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#l}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#v({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#t))}#v(e){this.#R();let t=this.#l.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.lQ)),t}#M(){this.#w();let e=(0,u.d2)(this.options.staleTime,this.#l);if(o.H.isServer()||this.#t.isStale||!(0,u.gn)(e))return;let t=(0,u.j3)(this.#t.dataUpdatedAt,e);this.#b=c.zs.setTimeout(()=>{this.#t.isStale||this.updateResult()},t+1)}#S(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#l):this.options.refetchInterval)??!1}#O(e){this.#k(),this.#m=e,!o.H.isServer()&&!1!==(0,u.Eh)(this.options.enabled,this.#l)&&(0,u.gn)(this.#m)&&0!==this.#m&&(this.#y=c.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||n.m.isFocused())&&this.#v()},this.#m))}#x(){this.#M(),this.#O(this.#S())}#w(){this.#b&&(c.zs.clearTimeout(this.#b),this.#b=void 0)}#k(){this.#y&&(c.zs.clearInterval(this.#y),this.#y=void 0)}createResult(e,t){let r,n=this.#l,o=this.options,s=this.#t,i=this.#c,c=this.#d,d=e!==n?e.state:this.#u,{state:p}=e,y={...p},m=!1;if(t._optimisticResults){let r=this.hasListeners(),s=!r&&h(e,t),i=r&&f(e,n,t,o);(s||i)&&(y={...y,...(0,a.k)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(y.fetchStatus="idle")}let{error:g,errorUpdatedAt:v,status:x}=y;r=y.data;let w=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===x){let e;s?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=s.data,w=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,void 0!==e&&(x="success",r=(0,u.pl)(s?.data,e,t),m=!0)}if(t.select&&void 0!==r&&!w)if(s&&r===i?.data&&t.select===this.#h)r=this.#p;else try{this.#h=t.select,r=t.select(r),r=(0,u.pl)(s?.data,r,t),this.#p=r,this.#a=null}catch(e){this.#a=e}this.#a&&(g=this.#a,r=this.#p,v=Date.now(),x="error");let k="fetching"===y.fetchStatus,R="pending"===x,M="error"===x,S=R&&k,O=void 0!==r,A={status:x,fetchStatus:y.fetchStatus,isPending:R,isSuccess:"success"===x,isError:M,isInitialLoading:S,isLoading:S,data:r,dataUpdatedAt:y.dataUpdatedAt,error:g,errorUpdatedAt:v,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:y.dataUpdateCount>d.dataUpdateCount||y.errorUpdateCount>d.errorUpdateCount,isFetching:k,isRefetching:k&&!R,isLoadingError:M&&!O,isPaused:"paused"===y.fetchStatus,isPlaceholderData:m,isRefetchError:M&&O,isStale:b(e,t),refetch:this.refetch,promise:this.#i,isEnabled:!1!==(0,u.Eh)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==A.data,r="error"===A.status&&!t,o=e=>{r?e.reject(A.error):t&&e.resolve(A.data)},s=()=>{o(this.#i=A.promise=(0,l.T)())},a=this.#i;switch(a.status){case"pending":e.queryHash===n.queryHash&&o(a);break;case"fulfilled":(r||A.data!==a.value)&&s();break;case"rejected":r&&A.error===a.reason||s()}}return A}updateResult(){let e=this.#t,t=this.createResult(this.#l,this.options);if(this.#c=this.#l.state,this.#d=this.options,void 0!==this.#c.data&&(this.#f=this.#l),(0,u.f8)(t,e))return;this.#t=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#g.size)return!0;let n=new Set(r??this.#g);return this.options.throwOnError&&n.add("error"),Object.keys(this.#t).some(t=>this.#t[t]!==e[t]&&n.has(t))};this.#s({listeners:r()})}#R(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#l)return;let t=this.#l;this.#l=e,this.#u=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#s(e){s.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#t)}),this.#e.getQueryCache().notify({query:this.#l,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,u.Eh)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&p(e,t,t.refetchOnMount)}function p(e,t,r){if(!1!==(0,u.Eh)(t.enabled,e)&&"static"!==(0,u.d2)(t.staleTime,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&b(e,t)}return!1}function f(e,t,r,n){return(e!==t||!1===(0,u.Eh)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&b(e,r)}function b(e,t){return!1!==(0,u.Eh)(t.enabled,e)&&e.isStaleByTime((0,u.d2)(t.staleTime,e))}var y=r(2115),m=r(9776);r(5155);var g=y.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),v=y.createContext(!1);v.Provider;var x=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function w(e,t){return function(e,t,r){var n,a,i,l;let c=y.useContext(v),d=y.useContext(g),h=(0,m.jE)(r),p=h.defaultQueryOptions(e);null==(a=h.getDefaultOptions().queries)||null==(n=a._experimental_beforeQuery)||n.call(a,p);let f=h.getQueryCache().get(p.queryHash);if(p._optimisticResults=c?"isRestoring":"optimistic",p.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=p.staleTime;p.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof p.gcTime&&(p.gcTime=Math.max(p.gcTime,1e3))}let b=(null==f?void 0:f.state.error)&&"function"==typeof p.throwOnError?(0,u.GU)(p.throwOnError,[f.state.error,f]):p.throwOnError;(p.suspense||p.experimental_prefetchInRender||b)&&!d.isReset()&&(p.retryOnMount=!1),y.useEffect(()=>{d.clearReset()},[d]);let w=!h.getQueryCache().get(p.queryHash),[k]=y.useState(()=>new t(h,p)),R=k.getOptimisticResult(p),M=!c&&!1!==e.subscribed;if(y.useSyncExternalStore(y.useCallback(e=>{let t=M?k.subscribe(s.jG.batchCalls(e)):u.lQ;return k.updateResult(),t},[k,M]),()=>k.getCurrentResult(),()=>k.getCurrentResult()),y.useEffect(()=>{k.setOptions(p)},[p,k]),p?.suspense&&R.isPending)throw x(p,k,d);if((e=>{let{result:t,errorResetBoundary:r,throwOnError:n,query:o,suspense:s}=e;return t.isError&&!r.isReset()&&!t.isFetching&&o&&(s&&void 0===t.data||(0,u.GU)(n,[t.error,o]))})({result:R,errorResetBoundary:d,throwOnError:p.throwOnError,query:f,suspense:p.suspense}))throw R.error;if(null==(l=h.getDefaultOptions().queries)||null==(i=l._experimental_afterQuery)||i.call(l,p,R),p.experimental_prefetchInRender&&!o.H.isServer()&&R.isLoading&&R.isFetching&&!c){let e=w?x(p,k,d):null==f?void 0:f.promise;null==e||e.catch(u.lQ).finally(()=>{k.updateResult()})}return p.notifyOnChangeProps?R:k.trackResult(R)}(e,d,t)}},2619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return y},useLinkStatus:function(){return g}});let n=r(9417),o=r(5155),s=n._(r(2115)),a=r(7670),i=r(6752),l=r(3011),u=r(2296),c=r(6058);r(4781);let d=r(3499),h=r(8607),p=r(1807);r(7045);let f=r(6048);function b(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function y(e){var t;let r,n,a,[y,g]=(0,s.useOptimistic)(d.IDLE_LINK_STATUS),v=(0,s.useRef)(null),{href:x,as:w,children:k,prefetch:R=null,passHref:M,replace:S,shallow:O,scroll:A,onClick:E,onMouseEnter:C,onTouchStart:j,legacyBehavior:I=!1,onNavigate:P,ref:z,unstable_dynamicOnHover:Q,...T}=e;r=k,I&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let _=s.default.useContext(i.AppRouterContext),L=!1!==R,N=!1!==R?null===(t=R)||"auto"===t?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,{href:U,as:F}=s.default.useMemo(()=>{let e=b(x);return{href:e,as:w?b(w):e}},[x,w]);I&&(n=s.default.Children.only(r));let q=I?n&&"object"==typeof n&&n.ref:z,D=s.default.useCallback(e=>(null!==_&&(v.current=(0,d.mountLinkInstance)(e,U,_,N,L,g)),()=>{v.current&&((0,d.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,d.unmountPrefetchableInstance)(e)}),[L,U,_,N,g]),H={ref:(0,l.useMergedRef)(D,q),onClick(e){I||"function"!=typeof E||E(e),I&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),_&&(e.defaultPrevented||function(e,t,r,n,o,a,i){let{nodeName:l}=e.currentTarget;if(!("A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,h.isLocalURL)(t)){o&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}s.default.startTransition(()=>{(0,p.dispatchNavigateAction)(r||t,o?"replace":"push",null==a||a,n.current)})}}(e,U,F,v,S,A,P))},onMouseEnter(e){I||"function"!=typeof C||C(e),I&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),_&&L&&(0,d.onNavigationIntent)(e.currentTarget,!0===Q)},onTouchStart:function(e){I||"function"!=typeof j||j(e),I&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),_&&L&&(0,d.onNavigationIntent)(e.currentTarget,!0===Q)}};return(0,u.isAbsoluteUrl)(F)?H.href=F:I&&!M&&("a"!==n.type||"href"in n.props)||(H.href=(0,c.addBasePath)(F)),a=I?s.default.cloneElement(n,H):(0,o.jsx)("a",{...T,...H,children:r}),(0,o.jsx)(m.Provider,{value:y,children:a})}let m=(0,s.createContext)(d.IDLE_LINK_STATUS),g=()=>(0,s.useContext)(m);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2821:(e,t,r)=>{r.d(t,{$:()=>n});function n(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(n&&(n+=" "),n+=t);return n}},3011:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=r(2115);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=s(e,n)),t&&(o.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3078:(e,t)=>{function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function s(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return s},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},4033:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},4860:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},5136:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]])},5229:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},5740:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},5870:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},5889:(e,t,r)=>{r.d(t,{QP:()=>D});let n=(e,t)=>{if(0===e.length)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?n(e.slice(1),o):void 0;if(s)return s;if(0===t.validators.length)return;let a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},o=/^\[(.+)\]$/,s=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:a(t,e)).classGroupId=r;return}if("function"==typeof e)return i(e)?void s(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,o])=>{s(o,a(t,e),r,n)})})},a=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},i=e=>e.isThemeGetter,l=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,u=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},c=/\s+/;function d(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=h(e))&&(n&&(n+=" "),n+=t);return n}let h=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=h(e[n]))&&(r&&(r+=" "),r+=t);return r},p=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},f=/^\[(?:([a-z-]+):)?(.+)\]$/i,b=/^\d+\/\d+$/,y=new Set(["px","full","screen"]),m=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,g=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,v=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,x=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,w=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>M(e)||y.has(e)||b.test(e),R=e=>L(e,"length",N),M=e=>!!e&&!Number.isNaN(Number(e)),S=e=>L(e,"number",M),O=e=>!!e&&Number.isInteger(Number(e)),A=e=>e.endsWith("%")&&M(e.slice(0,-1)),E=e=>f.test(e),C=e=>m.test(e),j=new Set(["length","size","percentage"]),I=e=>L(e,j,U),P=e=>L(e,"position",U),z=new Set(["image","url"]),Q=e=>L(e,z,q),T=e=>L(e,"",F),_=()=>!0,L=(e,t,r)=>{let n=f.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},N=e=>g.test(e)&&!v.test(e),U=()=>!1,F=e=>x.test(e),q=e=>w.test(e);Symbol.toStringTag;let D=function(e,...t){let r,a,i,h=function(u){let c;return a=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,o=(o,s)=>{r.set(o,s),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}})((c=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],s=t.length,a=e=>{let r,a=[],i=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===i){if(c===o&&(n||e.slice(u,u+s)===t)){a.push(e.slice(l,u)),l=u+s;continue}if("/"===c){r=u;continue}}"["===c?i++:"]"===c&&i--}let u=0===a.length?e:e.substring(l),c=u.startsWith("!"),d=c?u.substring(1):u;return{modifiers:a,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:r&&r>l?r-l:void 0}};return r?e=>r({className:e,parseClassName:a}):a})(c),...(e=>{let t=(e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return l(Object.entries(e.classGroups),r).forEach(([e,r])=>{s(r,n,e,t)}),n})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:e=>{let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),n(r,t)||(e=>{if(o.test(e)){let t=o.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}})(e)},getConflictingClassGroupIds:(e,t)=>{let n=r[e]||[];return t&&a[e]?[...n,...a[e]]:n}}})(c)}).cache.get,i=r.cache.set,h=p,p(u)};function p(e){let t=a(e);if(t)return t;let n=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,s=[],a=e.trim().split(c),i="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{modifiers:l,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:h}=r(t),p=!!h,f=n(p?d.substring(0,h):d);if(!f){if(!p||!(f=n(d))){i=t+(i.length>0?" "+i:i);continue}p=!1}let b=u(l).join(":"),y=c?b+"!":b,m=y+f;if(s.includes(m))continue;s.push(m);let g=o(f,p);for(let e=0;e<g.length;++e){let t=g[e];s.push(y+t)}i=t+(i.length>0?" "+i:i)}return i})(e,r);return i(e,n),n}return function(){return h(d.apply(null,arguments))}}(()=>{let e=p("colors"),t=p("spacing"),r=p("blur"),n=p("brightness"),o=p("borderColor"),s=p("borderRadius"),a=p("borderSpacing"),i=p("borderWidth"),l=p("contrast"),u=p("grayscale"),c=p("hueRotate"),d=p("invert"),h=p("gap"),f=p("gradientColorStops"),b=p("gradientColorStopPositions"),y=p("inset"),m=p("margin"),g=p("opacity"),v=p("padding"),x=p("saturate"),w=p("scale"),j=p("sepia"),z=p("skew"),L=p("space"),N=p("translate"),U=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",E,t],D=()=>[E,t],H=()=>["",k,R],G=()=>["auto",M,E],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",E],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[M,E];return{cacheSize:500,separator:":",theme:{colors:[_],spacing:[k,R],blur:["none","",C,E],brightness:J(),borderColor:[e],borderRadius:["none","","full",C,E],borderSpacing:D(),borderWidth:H(),contrast:J(),grayscale:B(),hueRotate:J(),invert:B(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[A,R],inset:q(),margin:q(),opacity:J(),padding:D(),saturate:J(),scale:J(),sepia:B(),skew:J(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",E]}],container:["container"],columns:[{columns:[C]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...W(),E]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",O,E]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",E]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",O,E]}],"grid-cols":[{"grid-cols":[_]}],"col-start-end":[{col:["auto",{span:["full",O,E]},E]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[_]}],"row-start-end":[{row:["auto",{span:[O,E]},E]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",E]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",E]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...$()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",E,t]}],"min-w":[{"min-w":[E,t,"min","max","fit"]}],"max-w":[{"max-w":[E,t,"none","full","min","max","fit","prose",{screen:[C]},C]}],h:[{h:[E,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[E,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[E,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[E,t,"auto","min","max","fit"]}],"font-size":[{text:["base",C,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",S]}],"font-family":[{font:[_]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",E]}],"line-clamp":[{"line-clamp":["none",M,S]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,E]}],"list-image":[{"list-image":["none",E]}],"list-style-type":[{list:["none","disc","decimal",E]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",k,R]}],"underline-offset":[{"underline-offset":["auto",k,E]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",E]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",E]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),P]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",I]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Q]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:V()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[k,E]}],"outline-w":[{outline:[k,R]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[k,R]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",C,T]}],"shadow-color":[{shadow:[_]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",C,E]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",E]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",E]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",E]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[O,E]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[z]}],"skew-y":[{"skew-y":[z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",E]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",E]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",E]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[k,R,S]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})},5959:(e,t,r)=>{r.d(t,{v:()=>a});var n=r(2115);let o=e=>{let t,r=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},t,o),r.forEach(r=>r(t,e))}},o=()=>t,s={setState:n,getState:o,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e))},a=t=e(n,o,s);return s},s=e=>{let t=(e=>e?o(e):o)(e),r=e=>(function(e,t=e=>e){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},a=e=>e?s(e):s},6191:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},6254:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]])},6651:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},6907:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},7045:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},7494:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]])},7515:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("PanelRightOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]])},7586:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},7670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return s},formatWithValidation:function(){return i},urlObjectKeys:function(){return a}});let n=r(9417)._(r(3078)),o=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,s=e.protocol||"",a=e.pathname||"",i=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return s&&!s.endsWith(":")&&(s+=":"),e.slashes||(!s||o.test(s))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),""+s+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+i}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function i(e){return s(e)}},7801:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]])},8192:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},8486:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]])},8599:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]])},8607:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=r(2296),o=r(2929);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},8695:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]])},9397:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},9427:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},9540:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},9715:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1847).A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},9863:(e,t,r)=>{r.d(t,{Zr:()=>o});let n=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>n(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>n(t)(e)}}},o=(e,t)=>(r,o,s)=>{let a,i={storage:function(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var t;let n=e=>null===e?null:JSON.parse(e,void 0),o=null!=(t=r.getItem(e))?t:null;return o instanceof Promise?o.then(n):n(o)},setItem:(e,t)=>r.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>r.removeItem(e)}}(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1,u=0,c=new Set,d=new Set,h=i.storage;if(!h)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...e)},o,s);let p=()=>{let e=i.partialize({...o()});return h.setItem(i.name,{state:e,version:i.version})},f=s.setState;s.setState=(e,t)=>(f(e,t),p());let b=e((...e)=>(r(...e),p()),o,s);s.getInitialState=()=>b;let y=()=>{var e,t;if(!h)return;let s=++u;l=!1,c.forEach(e=>{var t;return e(null!=(t=o())?t:b)});let f=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=o())?e:b))||void 0;return n(h.getItem.bind(h))(i.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===i.version)return[!1,e.state];else{if(i.migrate){let t=i.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;if(s!==u)return;let[n,l]=e;if(r(a=i.merge(l,null!=(t=o())?t:b),!0),n)return p()}).then(()=>{s===u&&(null==f||f(o(),void 0),a=o(),l=!0,d.forEach(e=>e(a)))}).catch(e=>{s===u&&(null==f||f(void 0,e))})};return s.persist={setOptions:e=>{i={...i,...e},e.storage&&(h=e.storage)},clearStorage:()=>{null==h||h.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>y(),hasHydrated:()=>l,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},i.skipHydration||y(),a||b}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3140],{3140:(e,s,t)=>{t.r(s),t.d(s,{PluginsScreen:()=>b});var r=t(5155),n=t(2115),l=t(8599),a=t(1375),d=t(962),i=t(1847);let o=(0,i.A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);var u=t(4269);let c={user:"bg-blue-500/15 text-blue-400",builtin:"bg-emerald-500/15 text-emerald-400",pip:"bg-amber-500/15 text-amber-400"};function m(e){let{plugin:s,onToggle:t,onRemove:n}=e;return(0,r.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("h3",{className:"truncate text-lg font-semibold",children:s.name}),(0,r.jsxs)("span",{className:"shrink-0 rounded-full bg-muted/70 px-2 py-0.5 text-2xs text-muted-foreground",children:["v",s.version]})]}),s.author&&(0,r.jsxs)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:["by ",s.author]})]}),(0,r.jsx)("span",{className:(0,u.cn)("shrink-0 rounded-full px-2 py-0.5 text-2xs font-medium",c[s.source]),children:s.source})]}),s.description&&(0,r.jsx)("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:s.description}),s.providedTools.length>0&&(0,r.jsxs)("div",{className:"mt-3",children:[(0,r.jsx)("p",{className:"text-2xs font-medium uppercase tracking-label text-muted-foreground",children:"Tools"}),(0,r.jsx)("div",{className:"mt-1 flex flex-wrap gap-1",children:s.providedTools.map(e=>(0,r.jsx)("span",{className:"rounded-md bg-muted/50 px-1.5 py-0.5 text-2xs text-muted-foreground",children:e},e))})]}),s.providedHooks.length>0&&(0,r.jsxs)("div",{className:"mt-2",children:[(0,r.jsx)("p",{className:"text-2xs font-medium uppercase tracking-label text-muted-foreground",children:"Hooks"}),(0,r.jsx)("div",{className:"mt-1 flex flex-wrap gap-1",children:s.providedHooks.map(e=>(0,r.jsx)("span",{className:"rounded-md bg-muted/50 px-1.5 py-0.5 text-2xs text-muted-foreground",children:e},e))})]}),(0,r.jsxs)("div",{className:"mt-4 flex items-center justify-between border-t border-border/70 pt-4",children:[(0,r.jsxs)("label",{className:"flex cursor-pointer items-center gap-2",children:[(0,r.jsx)("button",{type:"button",role:"switch","aria-checked":s.enabled,onClick:()=>t(s.id,!s.enabled),className:(0,u.cn)("relative inline-flex h-5 w-9 shrink-0 items-center rounded-full transition-colors",s.enabled?"bg-primary":"bg-muted"),children:(0,r.jsx)("span",{className:(0,u.cn)("pointer-events-none block h-4 w-4 rounded-full bg-white shadow-sm transition-transform",s.enabled?"translate-x-[18px]":"translate-x-0.5")})}),(0,r.jsx)("span",{className:"text-sm text-muted-foreground",children:s.enabled?"Enabled":"Disabled"})]}),"user"===s.source&&n&&(0,r.jsxs)("button",{type:"button",onClick:()=>n(s.id),className:"flex items-center gap-1.5 rounded-lg border border-danger/30 bg-danger/10 px-2.5 py-1.5 text-xs text-danger transition hover:bg-danger/20",children:[(0,r.jsx)(o,{className:"h-3.5 w-3.5"}),"Remove"]})]})]})}let x=(0,i.A)("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);var p=t(5299);let g=/^[a-zA-Z0-9][a-zA-Z0-9._-]*\/[a-zA-Z0-9._-]+$/;function h(e){let{open:s,onClose:t}=e,[l,a]=(0,n.useState)(""),[i,o]=(0,n.useState)(null),u=(0,d.c$)();if(!s)return null;let c=g.test(l);async function m(){if(!l.trim())return void o("Repository is required.");if(!c)return void o("Invalid format. Use owner/repo (for example nousresearch/hermes-plugin-web).");o(null);try{await u.mutateAsync({identifier:l.trim()}),a(""),o(null),t()}catch(e){o(function(e){let s=e.toLowerCase();return s.includes("plugin.yaml")?"This repository cloned successfully, but it is not a valid Hermes plugin yet. A valid plugin repo must include a plugin.yaml manifest.":s.includes("__init__.py")?"This repository is missing the required __init__.py plugin entrypoint, so Pan cannot treat it as a real plugin.":s.includes("already exists")||s.includes("already installed")?"That plugin is already installed in this workspace.":e}(e instanceof Error?e.message:String(e)))}}return(0,r.jsx)("div",{className:"fixed inset-0 z-30 flex items-center justify-center bg-black/50 p-4",children:(0,r.jsxs)("div",{className:"w-full max-w-md rounded-2xl border border-border bg-background p-5 shadow-xl",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(x,{className:"h-5 w-5 text-primary"}),(0,r.jsx)("h3",{className:"text-lg font-semibold",children:"Install plugin"})]}),(0,r.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Install a repo-based plugin when you need custom hooks or tool bundles beyond MCP servers and built-in integrations."}),(0,r.jsxs)("div",{className:"mt-4 rounded-xl border border-border/70 bg-card/60 p-3 text-sm text-muted-foreground",children:[(0,r.jsx)("p",{className:"font-medium text-foreground",children:"What counts as a valid plugin repo?"}),(0,r.jsxs)("ul",{className:"mt-2 list-disc space-y-1 pl-5 text-xs leading-5",children:[(0,r.jsxs)("li",{children:["Use the GitHub format ",(0,r.jsx)("span",{className:"font-medium text-foreground",children:"owner/repo"}),"."]}),(0,r.jsxs)("li",{children:["The repository must contain a ",(0,r.jsx)("span",{className:"font-medium text-foreground",children:"plugin.yaml"})," manifest."]}),(0,r.jsxs)("li",{children:["The repository must also include the required ",(0,r.jsx)("span",{className:"font-medium text-foreground",children:"__init__.py"})," entrypoint."]})]})]}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground",children:"GitHub repository"}),(0,r.jsx)("input",{value:l,onChange:e=>{a(e.target.value),o(null)},placeholder:"owner/repo",className:"mt-1 w-full rounded-lg border bg-background px-3 py-2 text-sm outline-none placeholder:text-muted-foreground/50 focus:border-primary/50 ".concat(i?"border-red-500/70":"border-input"),autoFocus:!0,onKeyDown:e=>{"Enter"===e.key&&m()}}),!l||c||i?null:(0,r.jsx)("p",{className:"mt-1 text-xs text-amber-400",children:"Format: owner/repo (for example nousresearch/hermes-plugin-web)"}),l||i?null:(0,r.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:"Pan validates the repo before counting the install as successful."})]}),i?(0,r.jsx)("div",{className:"mt-3 rounded-lg border border-red-500/30 bg-red-500/10 px-3 py-2 text-sm text-red-400",children:i}):null,u.isSuccess?(0,r.jsx)("div",{className:"mt-3 rounded-lg border border-emerald-500/30 bg-emerald-500/10 px-3 py-2 text-sm text-emerald-400",children:"Plugin installed successfully."}):null,(0,r.jsxs)("div",{className:"mt-5 flex justify-end gap-2",children:[(0,r.jsx)("button",{type:"button",onClick:function(){a(""),o(null),u.reset(),t()},className:"rounded-lg border border-border px-4 py-2 text-sm",children:"Cancel"}),(0,r.jsxs)("button",{type:"button",onClick:()=>void m(),disabled:u.isPending||!l.trim()||!c,className:"flex items-center gap-2 rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50",children:[u.isPending?(0,r.jsx)(p.A,{className:"h-4 w-4 animate-spin"}):null,u.isPending?"Installing…":"Install plugin"]})]})]})})}function b(){var e;let s=(0,d.qw)(),t=(0,d.P4)(),i=(0,d.Ho)(),[o,u]=(0,n.useState)(!1),c=null!=(e=s.data)?e:[];function x(e,s){t.mutateAsync({id:e,enabled:s})}function p(e){i.mutateAsync(e)}return(0,r.jsxs)("div",{className:"h-full overflow-y-auto space-y-6 p-4 pb-8 lg:p-6 lg:pb-10",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-start md:justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold",children:"Plugins"}),(0,r.jsx)("p",{className:"mt-2 max-w-3xl text-sm text-muted-foreground",children:"Plugins are repo-based extensions for custom hooks and bundled tools. Use MCP servers for live external systems, and use plugins when you need deeper runtime customization."})]}),(0,r.jsx)("button",{type:"button",onClick:()=>u(!0),className:"rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",children:"Install plugin"})]}),(0,r.jsxs)("div",{className:"rounded-2xl border border-border/60 bg-card/55 p-4 text-sm text-muted-foreground shadow-sm",children:[(0,r.jsx)("p",{className:"font-medium text-foreground",children:"How plugins differ from integrations"}),(0,r.jsx)("p",{className:"mt-2",children:"Integrations and MCP servers focus on what the agent can reach right now. Plugins focus on adding custom hooks, packaged tools, and deeper behavior changes to the runtime."})]}),s.isLoading?(0,r.jsx)(a.Gu,{title:"Loading plugins…",description:"Reading installed plugins and their tool/hook metadata for this workspace."}):null,s.isError?(0,r.jsx)(a.W5,{title:"Could not load plugins",error:s.error,description:"Pan could not read the installed plugin inventory right now."}):null,s.isSuccess&&0===c.length?(0,r.jsx)(a.pp,{title:"No plugins installed",description:"Plugins are optional and usually come after skills and MCP servers. Install one when you need repo-based hooks, tool bundles, or runtime customization.",icon:(0,r.jsx)(l.A,{className:"h-5 w-5"}),primaryAction:(0,r.jsx)("button",{type:"button",onClick:()=>u(!0),className:"rounded-2xl bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",children:"Install your first plugin"})}):null,s.isSuccess&&c.length>0?(0,r.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:c.map(e=>(0,r.jsx)(m,{plugin:e,onToggle:x,onRemove:p},e.id))}):null,(0,r.jsx)(h,{open:o,onClose:()=>u(!1)})]})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5097],{592:(e,t,s)=>{s.d(t,{w:()=>l});var a=s(2454),r=s(9678),n=s(2604);function l(){let e=(0,n.j)(e=>e.selectedProfileId);return(0,a.I)({queryKey:["runtime-status",e],queryFn:()=>(0,r.n)("/api/runtime/status"),select:e=>e.status})}},1935:(e,t,s)=>{s.d(t,{RightDrawer:()=>T});var a=s(5155),r=s(5229),n=s(5740),l=s(4860),o=s(8192),i=s(9715),d=s(6651),c=s(9397),u=s(2115);function m(e){var t,s;let{artifacts:r,selectedArtifactId:n,onSelect:l}=e,o=null!=(t=r.find(e=>e.artifactId===n))?t:r[0];return r.length?(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:r.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>l(e.artifactId),className:"rounded-full px-3 py-1 text-xs ".concat((null==o?void 0:o.artifactId)===e.artifactId?"bg-primary text-primary-foreground":"border border-border text-muted-foreground"),children:e.label},e.artifactId))}),o?(0,a.jsxs)("div",{className:"rounded-lg border border-border/70 bg-background/80 p-3 shadow-[var(--shadow-card)]",children:[(0,a.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:o.artifactType}),(0,a.jsx)("h4",{className:"mt-1 text-sm font-semibold text-foreground",children:o.label}),(0,a.jsx)("pre",{className:"mt-3 whitespace-pre-wrap text-xs leading-6 text-muted-foreground",children:null!=(s=o.content)?s:"No artifact content available."})]}):null]}):(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Artifacts will appear here when the agent emits files, plans, or generated content."})}var p=s(2619),x=s.n(p),h=s(2263),g=s(4695);function b(e){let{source:t}=e;return(0,a.jsxs)("div",{className:"rounded-lg border border-border/70 bg-background/60 p-3 shadow-[var(--shadow-card)]",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-foreground",children:t.title}),(0,a.jsx)("p",{className:"mt-1 text-xs uppercase tracking-label text-muted-foreground",children:t.sourceType})]}),(0,a.jsx)(h.W,{label:t.provenance,tone:(0,g.o4)(t.provenance)})]}),t.snippet?(0,a.jsx)("p",{className:"mt-3 text-sm leading-6 text-muted-foreground",children:t.snippet}):null,t.note?(0,a.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:t.note}):null,t.href?(0,a.jsx)(x(),{href:t.href,target:"_blank",rel:"noreferrer",className:"mt-3 inline-flex text-sm font-medium text-primary underline-offset-4 hover:underline",children:"Open source"}):null]})}var f=s(9043),v=s(5050),y=s(8584),j=s(592),w=s(6288),N=s(2604),k=s(4269);let I=[{id:"context",label:"Overview"},{id:"activity",label:"Activity"},{id:"tools",label:"Tools"},{id:"output",label:"Output"},{id:"session",label:"Thread"}],S={context:"Current context, loaded skills, and memory that shape the next reply.",activity:"What the agent is doing right now, including approvals and recent events.",tools:"Which tools and runtime surfaces are active in this session.",output:"Artifacts and sources emitted while the run unfolds.",session:"Conversation metadata and thread-level settings."};function A(e){let{title:t,description:s,children:r}=e;return(0,a.jsxs)("section",{className:"space-y-3 rounded-2xl border border-border/50 bg-background/35 p-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:t}),s?(0,a.jsx)("p",{className:"mt-1 text-xs leading-5 text-muted-foreground",children:s}):null]}),r]})}function C(e){let{label:t,value:s}=e;return(0,a.jsxs)("div",{className:"rounded-2xl border border-border/60 bg-card/50 px-3 py-3",children:[(0,a.jsx)("p",{className:"text-2xs uppercase tracking-label text-muted-foreground",children:t}),(0,a.jsx)("div",{className:"mt-2 text-sm font-semibold text-foreground",children:s})]})}function D(e){let{label:t,value:s}=e;return(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-2xl border border-border/60 bg-card/50 px-3 py-2.5 text-sm",children:[(0,a.jsx)("span",{className:"text-muted-foreground",children:t}),(0,a.jsx)("div",{className:"text-right text-foreground",children:s})]})}function T(){var e,t,s,p,x,T,P,q,L,O,E,R,W,F,M,U,K,Q,_,J,H,z,V,B,Y,Z,$,G,X,ee,et,es,ea,er,en,el,eo,ei,ed,ec,eu,em,ep,ex,eh,eg,eb,ef,ev,ey,ej,ew,eN,ek,eI,eS,eA;let{rightDrawerOpen:eC,closeRightDrawer:eD,rightDrawerTab:eT,setRightDrawerTab:eP,runEvents:eq,artifacts:eL,selectedArtifactId:eO,selectArtifact:eE,activeSessionId:eR,selectedProfileId:eW}=(0,N.j)(),eF=(0,v.tn)(eR),eM=(0,v.$Q)(eR),eU=(0,w.wV)(eR),eK=(0,j.w)(),eQ=(0,y.Ux)(eW,eR),e_=(0,u.useMemo)(()=>{var e;return[...null!=(e=eF.data)?e:[],...eq]},[eq,eF.data]),eJ=(0,u.useMemo)(()=>{var e;let t=[...null!=(e=eM.data)?e:[],...eL];return t.filter((e,s)=>t.findIndex(t=>t.artifactId===e.artifactId)===s)},[eL,eM.data]),eH=e_.filter(e=>"source.emitted"===e.type),ez=e_.filter(e=>"tool.started"===e.type||"tool.completed"===e.type),eV=e_.filter(e=>"tool.awaiting_approval"===e.type),eB=e_.filter(e=>"run.phase"===e.type).at(-1),eY=Array.from(new Set([...null!=(ea=null==(e=eQ.data)?void 0:e.loadedSkillIds)?ea:[],...null!=(er=null==(t=eU.data)?void 0:t.loadedSkillIds)?er:[]].filter(Boolean))),eZ=Array.from(new Set(ez.map(e=>e.toolName))),e$=Array.from(new Set(ez.map(e=>e.riskLevel).filter(e=>!!e)));return(0,a.jsxs)("aside",{className:(0,k.cn)("fixed inset-x-3 bottom-3 z-30 flex max-h-[70vh] min-h-[320px] flex-col rounded-xl border border-border/50 bg-card/95 shadow-[var(--shadow-elevated)] backdrop-blur-xl transition-all duration-200 xl:inset-x-auto xl:bottom-auto xl:right-4 xl:top-[calc(1rem+72px)] xl:h-[calc(100vh-5.75rem)] xl:max-h-none xl:w-[360px]",eC?"translate-x-0 opacity-100":"pointer-events-none translate-x-6 opacity-0"),children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3 border-b border-border/70 px-4 py-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-base font-semibold text-foreground",children:"Inspector"}),(0,a.jsx)("p",{className:"mt-1 text-xs leading-5 text-muted-foreground",children:S[eT]})]}),(0,a.jsx)("button",{type:"button",onClick:eD,className:"rounded-2xl border border-border/70 bg-background/80 p-2 text-muted-foreground shadow-[var(--shadow-card)]","aria-label":"Close details panel",children:(0,a.jsx)(r.A,{className:"h-4 w-4"})})]}),(0,a.jsx)("div",{className:"border-b border-border/60 px-3 py-3",children:(0,a.jsx)("div",{className:"grid grid-cols-5 gap-1 rounded-2xl bg-background/50 p-1",children:I.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>eP(e.id),className:(0,k.cn)("rounded-[1rem] px-2 py-2 text-xs font-medium text-muted-foreground transition",eT===e.id&&"bg-card/80 text-foreground"),children:e.label},e.id))})}),(0,a.jsxs)("div",{className:"flex-1 space-y-4 overflow-y-auto px-4 py-4",children:["context"===eT?(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)(A,{title:"Current context",description:"The main ingredients shaping the next answer.",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsx)(C,{label:"Profile",value:null!=(el=null!=(en=null==(s=eQ.data)?void 0:s.activeProfileId)?en:null==(p=eK.data)?void 0:p.activeProfile)?el:"default"}),(0,a.jsx)(C,{label:"Memory",value:null!=(ei=null!=(eo=null==(x=eQ.data)?void 0:x.memoryMode)?eo:null==(T=eU.data)?void 0:T.settings.memoryMode)?ei:"standard"}),(0,a.jsx)(C,{label:"Policy",value:null!=(ec=null!=(ed=null==(P=eQ.data)?void 0:P.policyPreset)?ed:null==(q=eU.data)?void 0:q.settings.policyPreset)?ec:"safe-chat"}),(0,a.jsx)(C,{label:"Skills",value:eY.length||"None"})]}),(0,a.jsxs)("div",{className:"rounded-2xl border border-border/60 bg-card/50 p-3",children:[(0,a.jsx)("p",{className:"text-2xs font-semibold uppercase tracking-label text-muted-foreground",children:"Active thread"}),(0,a.jsx)("p",{className:"mt-2 text-sm font-semibold text-foreground",children:null!=(em=null!=(eu=null==(L=eQ.data)?void 0:L.activeSessionTitle)?eu:null==(O=eU.data)?void 0:O.title)?em:"No active session"}),(0,a.jsx)("p",{className:"mt-1 text-xs leading-5 text-muted-foreground",children:null!=(ex=null!=(ep=null==(E=eQ.data)?void 0:E.activeSessionPreview)?ep:null==(R=eU.data)?void 0:R.preview)?ex:"Start chatting to build a richer working context."})]})]}),(0,a.jsx)(A,{title:"Loaded skills",description:"Reusable procedures and references already attached to this conversation.",children:eY.length?(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:eY.map(e=>(0,a.jsx)(h.W,{label:e,tone:"success",icon:(0,a.jsx)(n.A,{className:"h-3.5 w-3.5 text-success"})},e))}):(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"No explicit skills are attached yet. Open Skills when you want reusable procedures or references."})}),(0,a.jsxs)(A,{title:"Memory snippets",description:"Compact recall currently visible to the agent.",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsx)(C,{label:"User memory",value:null!=(eh=null==(W=eQ.data)?void 0:W.userMemory.length)?eh:0}),(0,a.jsx)(C,{label:"Agent memory",value:null!=(eg=null==(F=eQ.data)?void 0:F.agentMemory.length)?eg:0})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[[...null!=(eb=null==(M=eQ.data)?void 0:M.userMemory)?eb:[],...null!=(ef=null==(U=eQ.data)?void 0:U.agentMemory)?ef:[]].slice(0,4).map((e,t)=>(0,a.jsx)("div",{className:"rounded-2xl border border-border/60 bg-card/50 p-3 text-sm leading-6 text-muted-foreground",children:e},"".concat(e,"-").concat(t))),(null==(K=eQ.data)?void 0:K.userMemory.length)||(null==(Q=eQ.data)?void 0:Q.agentMemory.length)?null:(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"No memory snippets surfaced for this session yet."})]})]})]}):null,"activity"===eT?(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)(A,{title:"What is happening now",description:"Use this tab when you want the agent's live status without leaving the chat.",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsx)(C,{label:"Phase",value:null!=(ev=null==eB?void 0:eB.label)?ev:"Idle"}),(0,a.jsx)(C,{label:"Approvals",value:eV.length?"".concat(eV.length," waiting"):"None"})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[eB?(0,a.jsx)(h.W,{label:eB.phase,tone:"accent"}):(0,a.jsx)(h.W,{label:"No active run",tone:"muted"}),(0,a.jsx)(h.W,{label:"".concat(e_.length," events"),tone:"muted"})]})]}),eV.length?(0,a.jsx)(A,{title:"Approval queue",description:"High-visibility requests that need human confirmation.",children:(0,a.jsx)("div",{className:"space-y-3",children:eV.map(e=>{var t,s;return(0,a.jsxs)("div",{className:"rounded-2xl border border-approval/35 bg-approval/10 p-3",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-foreground",children:e.toolName}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,a.jsx)(h.W,{label:null!=(t=e.governance)?t:"approval-gated",tone:(0,g.fh)(null!=(s=e.governance)?s:"approval-gated")}),e.riskLevel?(0,a.jsx)(h.W,{label:e.riskLevel,tone:(0,g.yD)(e.riskLevel)}):null]})]}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:e.summary})]},e.toolCallId)})})}):null,(0,a.jsx)(A,{title:"Tool timeline",description:"Latest tool and phase events emitted by the agent.",children:(0,a.jsx)("div",{className:"space-y-3",children:e_.length?e_.filter(e=>"assistant.delta"!==e.type).slice(-10).reverse().map((e,t)=>"tool.started"===e.type||"tool.completed"===e.type?(0,a.jsx)(f.J,{event:e},"".concat(e.toolCallId,"-").concat(e.type,"-").concat(t)):"run.phase"===e.type?(0,a.jsx)("div",{className:"rounded-lg border border-border/70 bg-background/80 p-4 shadow-[var(--shadow-card)]",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Run phase"}),(0,a.jsx)("p",{className:"mt-1 text-sm font-semibold text-foreground",children:e.label})]}),(0,a.jsx)(h.W,{label:(0,g.MU)(e.phase),tone:"accent"})]})},"".concat(e.type,"-").concat(e.phase,"-").concat(t)):"source.emitted"===e.type?(0,a.jsxs)("div",{className:"rounded-lg border border-border/70 bg-background/80 p-4 shadow-[var(--shadow-card)]",children:[(0,a.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Source captured"}),(0,a.jsx)("p",{className:"mt-1 text-sm font-semibold text-foreground",children:e.source.title}),(0,a.jsx)("p",{className:"mt-1 text-xs leading-5 text-muted-foreground",children:e.source.snippet})]},"".concat(e.type,"-").concat(e.source.id,"-").concat(t)):"artifact.emitted"===e.type?(0,a.jsxs)("div",{className:"rounded-lg border border-border/70 bg-background/80 p-4 shadow-[var(--shadow-card)]",children:[(0,a.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Output created"}),(0,a.jsx)("p",{className:"mt-1 text-sm font-semibold text-foreground",children:e.label}),(0,a.jsx)("p",{className:"mt-1 text-xs leading-5 text-muted-foreground",children:e.artifactType})]},"".concat(e.type,"-").concat(e.artifactId,"-").concat(t)):"tool.awaiting_approval"===e.type?(0,a.jsxs)("div",{className:"rounded-lg border border-approval/35 bg-approval/10 p-4 shadow-[var(--shadow-card)]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-foreground",children:e.toolName}),(0,a.jsx)(h.W,{label:"approval-gated",tone:"warning"})]}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:e.summary})]},"".concat(e.type,"-").concat(e.toolCallId,"-").concat(t)):"error"===e.type?(0,a.jsxs)("div",{className:"rounded-lg border border-danger/35 bg-danger/8 p-4 shadow-[var(--shadow-card)]",children:[(0,a.jsx)("p",{className:"text-xs uppercase tracking-label text-danger",children:"Runtime error"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-foreground",children:e.message})]},"".concat(e.type,"-").concat(t)):null):(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"No activity yet. Start a run to populate the timeline."})})})]}):null,"tools"===eT?(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)(A,{title:"Tool posture",description:"What kinds of actions the current run is using and how risky they are.",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsx)(C,{label:"Distinct tools",value:eZ.length}),(0,a.jsx)(C,{label:"Artifacts",value:eJ.length})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:e$.length?e$.map(e=>(0,a.jsx)(h.W,{label:"".concat(e," risk"),tone:(0,g.yD)(e)},e)):(0,a.jsx)(h.W,{label:"Read-only so far",tone:"muted"})})]}),(0,a.jsx)(A,{title:"Seen tools",description:"Quick inventory of tool families already used in this session.",children:eZ.length?(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:eZ.map(e=>(0,a.jsx)(h.W,{label:e,tone:"accent",icon:(0,a.jsx)(l.A,{className:"h-3.5 w-3.5 text-accent"})},e))}):(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"No tools have executed yet for this session."})}),(0,a.jsx)(A,{title:"Connected runtime resources",description:"Runtime-provided MCP servers and execution surfaces.",children:(0,a.jsx)("div",{className:"space-y-2",children:(null==(_=eK.data)?void 0:_.mcpServers.length)?eK.data.mcpServers.map(e=>{var t,s;return(0,a.jsxs)("div",{className:"rounded-2xl border border-border/70 bg-card/60 p-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-foreground",children:e.name}),(0,a.jsx)(h.W,{label:e.url?"remote":"local",tone:e.url?"success":"accent"})]}),(0,a.jsx)("p",{className:"mt-2 text-xs leading-5 text-muted-foreground",children:null!=(s=null!=(t=e.url)?t:e.command)?s:"No endpoint metadata available."})]},e.name)}):(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"No MCP servers reported by the runtime."})})})]}):null,"output"===eT?(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(A,{title:"Generated output",description:"Artifacts, plans, files, and structured content emitted during the run.",children:(0,a.jsx)(m,{artifacts:eJ,selectedArtifactId:eO,onSelect:eE})}),(0,a.jsx)(A,{title:"Sources and citations",description:"Retrieved pages, references, and snippets surfaced by the agent.",children:(0,a.jsx)("div",{className:"space-y-3",children:eH.length?eH.map((e,t)=>(0,a.jsx)(b,{source:e.source},"".concat(e.source.id,"-").concat(t))):(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"No sources have been emitted for this session yet."})})})]}):null,"session"===eT?(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)(A,{title:"Thread summary",description:"Core metadata for the active conversation thread.",children:[(0,a.jsxs)("div",{className:"rounded-2xl border border-border/60 bg-card/50 p-3",children:[(0,a.jsx)("p",{className:"text-2xs uppercase tracking-label text-muted-foreground",children:"Title"}),(0,a.jsx)("p",{className:"mt-2 text-sm font-semibold text-foreground",children:null!=(ey=null==(J=eU.data)?void 0:J.title)?ey:"Unsaved chat"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsx)(C,{label:"Messages",value:null!=(ej=null==(H=eU.data)?void 0:H.messages.length)?ej:0}),(0,a.jsx)(C,{label:"Updated",value:(null==(z=eU.data)?void 0:z.updatedAt)?new Date(eU.data.updatedAt).toLocaleString([],{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}):"Not saved"})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,a.jsx)(h.W,{label:null!=(eN=null!=(ew=null==(V=eU.data)?void 0:V.settings.model)?ew:null==(B=eK.data)?void 0:B.modelDefault)?eN:"default model",tone:"accent",icon:(0,a.jsx)(o.A,{className:"h-3.5 w-3.5 text-accent"})}),(0,a.jsx)(h.W,{label:null!=(eI=null!=(ek=null==(Y=eU.data)?void 0:Y.settings.provider)?ek:null==(Z=eK.data)?void 0:Z.provider)?eI:"provider",tone:"success"}),(0,a.jsx)(h.W,{label:(null==($=eU.data)?void 0:$.archived)?"archived":"active",tone:(null==(G=eU.data)?void 0:G.archived)?"muted":"success"})]})]}),(0,a.jsx)(A,{title:"Thread settings",description:"Runtime behavior selected for this conversation.",children:(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(D,{label:"Policy preset",value:(0,a.jsx)(h.W,{label:null!=(eS=null==(X=eU.data)?void 0:X.settings.policyPreset)?eS:"safe-chat",tone:"warning"})}),(0,a.jsx)(D,{label:"Memory mode",value:(0,a.jsx)(h.W,{label:null!=(eA=null==(ee=eU.data)?void 0:ee.settings.memoryMode)?eA:"standard",tone:"muted"})}),(0,a.jsx)(D,{label:"Artifacts",value:(0,a.jsx)(h.W,{label:"".concat(eJ.length),tone:"accent",icon:(0,a.jsx)(i.A,{className:"h-3.5 w-3.5 text-accent"})})}),(0,a.jsx)(D,{label:"Sources",value:(0,a.jsx)(h.W,{label:"".concat(eH.length),tone:"success",icon:(0,a.jsx)(d.A,{className:"h-3.5 w-3.5 text-success"})})})]})}),(0,a.jsx)(A,{title:"Workspace linkage",description:"How this thread relates to the broader workspace.",children:(0,a.jsxs)("div",{className:"rounded-2xl border border-border/60 bg-card/50 p-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-foreground",children:[(0,a.jsx)(c.A,{className:"h-4 w-4 text-accent"}),(0,a.jsx)("p",{className:"text-sm font-semibold",children:(null==(et=eU.data)?void 0:et.parentSessionId)?"Forked thread":"Primary thread"})]}),(0,a.jsx)("p",{className:"mt-2 text-xs leading-5 text-muted-foreground",children:(null==(es=eU.data)?void 0:es.parentSessionId)?"Derived from ".concat(eU.data.parentSessionId,". Forking preserves the old run while letting you branch."):"This session is the main line for its current workspace context."})]})})]}):null]})]})}},2263:(e,t,s)=>{s.d(t,{W:()=>c});var a=s(5155),r=s(6907),n=s(497),l=s(7801),o=s(4269);let i={success:"border-success/25 bg-success/10 text-foreground",warning:"border-warning/25 bg-warning/10 text-foreground",danger:"border-danger/25 bg-danger/10 text-foreground",muted:"border-border/70 bg-background/60 text-muted-foreground",accent:"border-accent/25 bg-accent/10 text-foreground"},d={success:(0,a.jsx)(r.A,{className:"h-3.5 w-3.5 text-success"}),warning:(0,a.jsx)(n.A,{className:"h-3.5 w-3.5 text-warning"}),danger:(0,a.jsx)(l.A,{className:"h-3.5 w-3.5 text-danger"}),muted:(0,a.jsx)(n.A,{className:"h-3.5 w-3.5 text-muted-foreground"}),accent:(0,a.jsx)(r.A,{className:"h-3.5 w-3.5 text-accent"})};function c(e){let{label:t,tone:s,icon:r,className:n}=e;return(0,a.jsxs)("span",{className:(0,o.cn)("inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-2xs font-medium capitalize tracking-[0.01em]",i[s],n),children:[null!=r?r:d[s],t]})}},2604:(e,t,s)=>{s.d(t,{j:()=>n});var a=s(5959),r=s(9863);let n=(0,a.v)()((0,r.Zr)(e=>({rightDrawerOpen:!1,mobileNavOpen:!1,sidebarCompact:!1,selectedProfileId:null,activeSessionId:null,recentlyLoadedSkillIds:[],sessionLoadedSkillIds:{},runEvents:[],artifacts:[],selectedArtifactId:null,rightDrawerTab:"activity",sessionDrawerTabs:{},openRightDrawer:t=>e(e=>{let s=e.activeSessionId,a=null!=t?t:e.rightDrawerTab;return{rightDrawerOpen:!0,rightDrawerTab:a,sessionDrawerTabs:s?{...e.sessionDrawerTabs,[s]:a}:e.sessionDrawerTabs}}),closeRightDrawer:()=>e({rightDrawerOpen:!1}),toggleMobileNav:()=>e(e=>({mobileNavOpen:!e.mobileNavOpen})),toggleSidebarCompact:()=>e(e=>({sidebarCompact:!e.sidebarCompact})),setSelectedProfileId:t=>e({selectedProfileId:t}),setActiveSessionId:t=>e(e=>{var s;return{activeSessionId:t,rightDrawerTab:t&&null!=(s=e.sessionDrawerTabs[t])?s:e.rightDrawerTab}}),rememberLoadedSkill:t=>e(e=>({recentlyLoadedSkillIds:e.recentlyLoadedSkillIds.includes(t)?e.recentlyLoadedSkillIds:[t,...e.recentlyLoadedSkillIds]})),rememberLoadedSkillInSession:(t,s)=>e(e=>{var a,r;return{recentlyLoadedSkillIds:e.recentlyLoadedSkillIds.includes(s)?e.recentlyLoadedSkillIds:[s,...e.recentlyLoadedSkillIds],sessionLoadedSkillIds:{...e.sessionLoadedSkillIds,[t]:(null==(a=e.sessionLoadedSkillIds[t])?void 0:a.includes(s))?e.sessionLoadedSkillIds[t]:[s,...null!=(r=e.sessionLoadedSkillIds[t])?r:[]]}}}),resetRunState:()=>e(e=>({runEvents:[],artifacts:[],selectedArtifactId:null,rightDrawerTab:e.rightDrawerTab})),addRunEvent:t=>e(e=>{let s=function(e){switch(e.type){case"artifact.emitted":case"source.emitted":return"output";case"tool.awaiting_approval":case"tool.started":case"tool.completed":case"run.phase":return"activity";default:return null}}(t),a=e.activeSessionId;return{runEvents:[...e.runEvents,t],rightDrawerOpen:e.rightDrawerOpen,rightDrawerTab:null!=s?s:e.rightDrawerTab,sessionDrawerTabs:s&&a?{...e.sessionDrawerTabs,[a]:s}:e.sessionDrawerTabs}}),addArtifact:t=>e(e=>({artifacts:e.artifacts.some(e=>e.artifactId===t.artifactId)?e.artifacts:[...e.artifacts,t],selectedArtifactId:t.artifactId,rightDrawerOpen:e.rightDrawerOpen,rightDrawerTab:"output",sessionDrawerTabs:e.activeSessionId?{...e.sessionDrawerTabs,[e.activeSessionId]:"output"}:e.sessionDrawerTabs})),selectArtifact:t=>e(e=>({selectedArtifactId:t,rightDrawerOpen:!0,rightDrawerTab:"output",sessionDrawerTabs:e.activeSessionId?{...e.sessionDrawerTabs,[e.activeSessionId]:"output"}:e.sessionDrawerTabs})),setRightDrawerTab:t=>e(e=>({rightDrawerTab:t,rightDrawerOpen:!0,sessionDrawerTabs:e.activeSessionId?{...e.sessionDrawerTabs,[e.activeSessionId]:t}:e.sessionDrawerTabs})),updateApprovalState:(t,s)=>e(e=>({runEvents:e.runEvents.map(e=>"tool.awaiting_approval"===e.type&&e.toolCallId===t?{...e,summary:s?"".concat(e.summary," (Approved)"):"".concat(e.summary," (Rejected)")}:e)}))}),{name:"pan-ui",partialize:e=>({sidebarCompact:e.sidebarCompact,selectedProfileId:e.selectedProfileId,activeSessionId:e.activeSessionId,recentlyLoadedSkillIds:e.recentlyLoadedSkillIds,sessionLoadedSkillIds:e.sessionLoadedSkillIds,rightDrawerTab:e.rightDrawerTab,sessionDrawerTabs:e.sessionDrawerTabs})}))},4269:(e,t,s)=>{s.d(t,{cn:()=>n});var a=s(2821),r=s(5889);function n(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,r.QP)((0,a.$)(t))}},4695:(e,t,s)=>{function a(e){switch(e){case"healthy":return"success";case"degraded":return"warning";case"unreachable":return"danger"}}function r(e){switch(e){case"connected":return"success";case"needs-auth":return"warning";case"expired":return"danger"}}function n(e){switch(e){case"enabled":return"success";case"approval-gated":return"warning";case"policy-limited":return"muted";case"blocked":return"danger"}}function l(e){switch(e){case"read":return"muted";case"write":return"warning";case"execute":return"accent";case"admin":return"danger"}}function o(e){switch(e){case"built-in":case"verified":return"success";case"custom":return"warning";case"self-hosted":case"local-process":return"accent"}}function i(e){switch(e){case"healthy":return"healthy";case"needs_configuration":return"needs-auth";case"auth_expired":return"expired";case"disabled_by_policy":return"policy-limited";default:return"degraded"}}function d(e){return e.replaceAll("_"," ")}s.d(t,{Ds:()=>i,MU:()=>d,OX:()=>a,P0:()=>r,fh:()=>n,o4:()=>o,yD:()=>l})},5050:(e,t,s)=>{s.d(t,{$Q:()=>l,kv:()=>o,tn:()=>n});var a=s(2454),r=s(9678);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,a.I)({queryKey:["runtime-timeline",e,t],queryFn:()=>(0,r.n)("/api/runtime/timeline?sessionId=".concat(encodeURIComponent(e||""),"&query=").concat(encodeURIComponent(t))),select:e=>e.events,enabled:!!e})}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,a.I)({queryKey:["runtime-artifacts",e,t],queryFn:()=>(0,r.n)("/api/runtime/artifacts?sessionId=".concat(encodeURIComponent(e||""),"&query=").concat(encodeURIComponent(t))),select:e=>e.artifacts,enabled:!!e})}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,a.I)({queryKey:["runtime-approvals",e,t,s],queryFn:()=>(0,r.n)("/api/runtime/approvals?sessionId=".concat(encodeURIComponent(e||""),"&query=").concat(encodeURIComponent(t),"&status=").concat(encodeURIComponent(s))),select:e=>e.approvals})}},6288:(e,t,s)=>{s.d(t,{Kp:()=>u,Or:()=>h,QV:()=>x,Sv:()=>m,oz:()=>c,tS:()=>p,te:()=>i,wV:()=>d});var a=s(2454),r=s(9776),n=s(549),l=s(9678);function o(e){return{id:e.id,title:e.title,updatedAt:e.updatedAt,preview:e.preview,workspaceLabel:e.archived?"Archived":e.parentSessionId?"Forks":"Active workspace",pinned:!e.archived&&!e.parentSessionId,archived:e.archived,parentSessionId:e.parentSessionId}}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,a.I)({queryKey:["sessions",e],queryFn:()=>(0,l.n)("/api/chat/sessions".concat(e?"?search=".concat(encodeURIComponent(e)):"")),select:e=>e.sessions})}function d(e){return(0,a.I)({queryKey:["session",e],queryFn:()=>(0,l.n)("/api/chat/sessions/".concat(e)),select:e=>e.session,enabled:!!e})}function c(){let e=(0,r.jE)();return(0,n.n)({mutationFn:()=>(0,l.n)("/api/chat/sessions",{method:"POST"}),onSuccess:async t=>{let{session:s}=t;await e.invalidateQueries({queryKey:["sessions"]}),e.setQueryData(["session",s.id],{session:s})}})}function u(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>{let{sessionId:t,title:s}=e;return(0,l.n)("/api/chat/sessions/".concat(t),{method:"PATCH",body:JSON.stringify({title:s})})},onSuccess:async t=>{let{session:s}=t;await e.invalidateQueries({queryKey:["sessions"]}),e.setQueryData(["sessions",""],e=>e?{sessions:e.sessions.map(e=>e.id===s.id?{...e,...o(s)}:e)}:e),e.setQueryData(["session",s.id],{session:s})}})}function m(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>(0,l.n)("/api/chat/sessions/".concat(e),{method:"PATCH",body:JSON.stringify({archived:!0})}),onSuccess:async t=>{let{session:s}=t;await e.invalidateQueries({queryKey:["sessions"]}),e.setQueryData(["session",s.id],{session:s})}})}function p(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>(0,l.n)("/api/chat/sessions/".concat(e),{method:"DELETE"}),onSuccess:async()=>{await e.invalidateQueries({queryKey:["sessions"]})}})}function x(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>(0,l.n)("/api/chat/sessions/".concat(e,"/fork"),{method:"POST"}),onSuccess:async t=>{let{session:s}=t;await e.invalidateQueries({queryKey:["sessions"]}),e.setQueryData(["sessions",""],e=>e?{sessions:[o(s),...e.sessions.filter(e=>e.id!==s.id)]}:{sessions:[o(s)]}),e.setQueryData(["session",s.id],{session:s})}})}function h(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>{let{sessionId:t,settings:s}=e;return(0,l.n)("/api/chat/sessions/".concat(t),{method:"PATCH",body:JSON.stringify({settings:s})})},onSuccess:async t=>{let{session:s}=t;await e.invalidateQueries({queryKey:["sessions"]}),e.setQueryData(["session",s.id],{session:s})}})}},6981:(e,t,s)=>{s.d(t,{Topbar:()=>I});var a=s(5155),r=s(2619),n=s.n(r),l=s(63),o=s(9540),i=s(906),d=s(6907),c=s(6191),u=s(7515),m=s(9427),p=s(7494),x=s(5740),h=s(5379),g=s(2115);function b(){let{resolvedTheme:e,setTheme:t}=(0,h.D)(),[s,r]=(0,g.useState)(!1);(0,g.useEffect)(()=>{r(!0)},[]);let n=!s||"dark"===e;return(0,a.jsxs)("button",{type:"button","aria-label":"Toggle theme",className:"inline-flex items-center gap-2 rounded-2xl border border-border/70 bg-background/80 px-3 py-2 text-sm font-medium text-foreground shadow-[var(--shadow-card)] transition hover:-translate-y-0.5 hover:bg-card disabled:cursor-not-allowed disabled:opacity-70",onClick:()=>t(n?"light":"dark"),disabled:!s,children:[n?(0,a.jsx)(m.A,{className:"h-4 w-4 text-warning"}):(0,a.jsx)(p.A,{className:"h-4 w-4 text-primary"}),(0,a.jsx)("span",{children:n?"Light":"Dark"}),(0,a.jsx)(x.A,{className:"h-3.5 w-3.5 text-muted-foreground"})]})}var f=s(4033),v=s(7510),y=s(2604);function j(){var e;let t=(0,v.Sj)(),s=(0,v.Sn)(),{selectedProfileId:r,setSelectedProfileId:n}=(0,y.j)();return(0,g.useEffect)(()=>{var e,s;!r&&(null==(e=t.data)?void 0:e.length)&&n((null!=(s=t.data.find(e=>e.active))?s:t.data[0]).id)},[t.data,r,n]),(0,a.jsxs)("div",{className:"relative min-w-[13rem]",children:[(0,a.jsx)("select",{value:null!=r?r:"",onChange:async e=>{let t=e.target.value;n(t);try{await s.mutateAsync({profileId:t,action:"activate"})}catch(e){n(null!=r?r:null)}},className:"w-full appearance-none rounded-2xl border border-border/70 bg-background/80 px-4 py-2.5 pr-10 text-sm font-medium shadow-[var(--shadow-card)] outline-none transition focus:border-primary focus:ring-2 focus:ring-primary/20","aria-label":"Profile switcher",children:(null!=(e=t.data)?e:[]).map(e=>(0,a.jsx)("option",{value:e.id,children:e.name},e.id))}),(0,a.jsx)(f.A,{className:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"})]})}var w=s(592),N=s(4269);let k={"/":{eyebrow:"Workspace",title:"Pan workspace",description:"Chat, tools, approvals, skills, and runtime context stay visible in one place."},"/chat":{eyebrow:"Workspace",title:"Pan workspace",description:"Chat, tools, approvals, skills, and runtime context stay visible in one place."},"/skills":{eyebrow:"Library",title:"Skills and reusable workflows",description:"Browse, inspect, and curate skills without losing runtime visibility."},"/extensions":{eyebrow:"Extensions",title:"Plugins and MCP integrations",description:"See extension health, auth posture, and runtime compatibility at a glance."},"/memory":{eyebrow:"Memory",title:"User and agent memory",description:"Understand what the agent remembers and what context is active in chat."},"/settings":{eyebrow:"Settings",title:"Runtime and governance controls",description:"Configuration, approvals, and runtime diagnostics."}};function I(){var e,t,s,r;let m=(0,l.usePathname)(),{toggleMobileNav:p,openRightDrawer:x,activeSessionId:h}=(0,y.j)(),g=(0,w.w)(),f=null!=(s=null==(e=g.data)?void 0:e.apiReachable)&&s,v=g.data,I=m.startsWith("/settings")?k["/settings"]:null!=(r=k[m])?r:k["/"];return(0,a.jsx)("header",{className:"sticky top-0 z-20 border-b border-border/70 bg-background/80 px-3 py-3 backdrop-blur-xl sm:px-4 lg:px-6",children:(0,a.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-border/70 card-default px-4 py-3 shadow-[var(--shadow-soft)] lg:flex-row lg:items-center lg:justify-between lg:px-5",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,a.jsx)("button",{type:"button",onClick:p,className:"rounded-2xl border border-border/70 bg-background/80 p-2 text-muted-foreground shadow-[var(--shadow-card)] lg:hidden","aria-label":"Open navigation",children:(0,a.jsx)(o.A,{className:"h-4 w-4"})}),(0,a.jsx)("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-2xl bg-[linear-gradient(135deg,hsl(var(--primary)),hsl(var(--accent)))] text-sm font-semibold text-primary-foreground shadow-[var(--shadow-card)]",children:"H"}),(0,a.jsxs)("div",{className:"min-w-0 space-y-1",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)("p",{className:"text-2xs font-semibold uppercase tracking-label text-muted-foreground",children:I.eyebrow}),(0,a.jsxs)("span",{className:(0,N.cn)("inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-2xs font-medium",f?"border-success/30 bg-success/10 text-foreground":"border-warning/30 bg-warning/10 text-foreground"),children:[(0,a.jsx)(i.A,{className:(0,N.cn)("h-3 w-3",f?"text-success":"text-warning")}),f?"Runtime live":"Runtime degraded"]}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full border border-border/70 bg-background/80 px-2 py-0.5 text-2xs font-medium text-foreground",children:[(0,a.jsx)(d.A,{className:"h-3 w-3 text-approval"}),(null==v||null==(t=v.profileContext)?void 0:t.label)||"Profile context loading"]}),h?(0,a.jsx)("span",{className:"inline-flex items-center gap-1 rounded-full border border-border/70 bg-background/80 px-2 py-0.5 text-2xs font-medium text-muted-foreground",children:"Saved session"}):null]}),(0,a.jsxs)("div",{className:"space-y-0.5",children:[(0,a.jsx)("h1",{className:"truncate text-base font-semibold text-foreground sm:text-lg",children:I.title}),(0,a.jsx)("p",{className:"truncate text-sm text-muted-foreground",children:(null==v?void 0:v.modelDefault)?"".concat(I.description," Default model: ").concat(v.modelDefault).concat(v.provider?" via ".concat(v.provider):"","."):I.description})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 lg:justify-end",children:[(0,a.jsx)(j,{}),(0,a.jsxs)(n(),{href:"/chat",className:"inline-flex items-center gap-2 rounded-2xl border border-border/70 bg-background/80 px-3 py-2 text-sm font-medium text-foreground shadow-[var(--shadow-card)]",children:[(0,a.jsx)(c.A,{className:"h-4 w-4"}),"New chat"]}),(0,a.jsx)("span",{className:"hidden h-5 w-px bg-border/70 lg:block"}),(0,a.jsx)(n(),{href:"/settings/approvals",className:"rounded-2xl border border-border/70 bg-background/80 px-3 py-2 text-sm font-medium text-foreground shadow-[var(--shadow-card)]",children:"Approvals"}),(0,a.jsx)(n(),{href:"/settings/health",className:"rounded-2xl border border-border/70 bg-background/80 px-3 py-2 text-sm font-medium text-foreground shadow-[var(--shadow-card)]",children:"Diagnostics"}),(0,a.jsx)("span",{className:"hidden h-5 w-px bg-border/70 lg:block"}),(0,a.jsx)("button",{type:"button",onClick:()=>x("activity"),className:"rounded-2xl border border-border/70 bg-background/80 p-2.5 text-muted-foreground shadow-[var(--shadow-card)] transition hover:-translate-y-0.5 hover:bg-card","aria-label":"Open inspector",children:(0,a.jsx)(u.A,{className:"h-4 w-4"})}),(0,a.jsx)(b,{})]})]})})}},7510:(e,t,s)=>{s.d(t,{OK:()=>u,Oq:()=>p,Sj:()=>i,Sn:()=>c,bL:()=>d,eJ:()=>x,zO:()=>m});var a=s(2454),r=s(9776),n=s(549),l=s(9678);async function o(e){await Promise.all([["profiles"],["audit"],["runtime-status"],["runtime-health"],["sessions"],["session"],["skills"],["skill"],["extensions"],["extension"],["memory"],["context-inspector"],["runtime-runs"],["runtime-run"],["runtime-run-events"],["runtime-approvals"],["runtime-artifacts"],["runtime-timeline"],["mcp-probe-results"],["telemetry"]].map(t=>e.invalidateQueries({queryKey:t})))}function i(){return(0,a.I)({queryKey:["profiles"],queryFn:()=>(0,l.n)("/api/profiles"),select:e=>e.profiles})}function d(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>(0,l.n)("/api/profiles",{method:"POST",body:JSON.stringify(e)}),onSuccess:async()=>{await o(e)}})}function c(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>{let{profileId:t,action:s,policyPreset:a}=e;return(0,l.n)("/api/profiles/".concat(t),{method:"PATCH",body:JSON.stringify({action:s,policyPreset:a})})},onSuccess:async()=>{await o(e)}})}function u(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>(0,l.n)("/api/profiles/".concat(e),{method:"DELETE"}),onSuccess:async()=>{await o(e)}})}function m(e){return(0,a.I)({queryKey:["profile-config",e],queryFn:()=>(0,l.n)("/api/profiles/".concat(e,"/config")),select:e=>e.config,enabled:!!e})}function p(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>{let{profileId:t,config:s}=e;return(0,l.n)("/api/profiles/".concat(t,"/config"),{method:"PATCH",body:JSON.stringify({config:s})})},onSuccess:async()=>{await o(e)}})}function x(){return(0,n.n)({mutationFn:e=>{let{profileId:t,purpose:s,mode:a}=e;return(0,l.n)("/api/profiles/".concat(t,"/config"),{method:"POST",body:JSON.stringify({purpose:s,mode:a})})}})}},8584:(e,t,s)=>{s.d(t,{I8:()=>i,PA:()=>o,SS:()=>d,Ux:()=>c});var a=s(2454),r=s(9776),n=s(549),l=s(9678);function o(e){return(0,a.I)({queryKey:["memory",e],queryFn:()=>(0,l.n)("/api/memory/".concat(e))})}function i(e){let t=(0,r.jE)();return(0,n.n)({mutationFn:t=>(0,l.n)("/api/memory/".concat(e),{method:"PATCH",body:JSON.stringify({content:t})}),onSuccess:async()=>{await t.invalidateQueries({queryKey:["memory",e]}),await t.invalidateQueries({queryKey:["audit"]})}})}function d(e){return(0,a.I)({queryKey:["memory-session-search",e],queryFn:()=>(0,l.n)("/api/memory/session-search?query=".concat(encodeURIComponent(e))),select:e=>e.results,enabled:e.trim().length>0})}function c(e,t){return(0,a.I)({queryKey:["context-inspector",e,t],queryFn:()=>(0,l.n)("/api/memory/context-inspector?profileId=".concat(encodeURIComponent(null!=e?e:""),"&sessionId=").concat(encodeURIComponent(null!=t?t:""))),select:e=>e.context})}},9043:(e,t,s)=>{s.d(t,{J:()=>l});var a=s(5155),r=s(2263),n=s(4695);function l(e){let{event:t}=e,s="tool.started"===t.type;return(0,a.jsxs)("div",{className:"rounded-lg border border-border/70 bg-background/80 p-4 shadow-[var(--shadow-card)]",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Tool activity"}),(0,a.jsx)("h4",{className:"mt-1 text-sm font-semibold text-foreground",children:t.toolName}),(0,a.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:["Call ",t.toolCallId]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)(r.W,{label:s?"Running":"Completed",tone:s?"warning":"success"}),t.riskLevel?(0,a.jsx)(r.W,{label:"".concat(t.riskLevel," risk"),tone:(0,n.yD)(t.riskLevel)}):null,"tool.started"===t.type&&t.provenance?(0,a.jsx)(r.W,{label:t.provenance,tone:(0,n.o4)(t.provenance)}):null]})]}),!s&&t.output?(0,a.jsx)("pre",{className:"mt-3 overflow-x-auto rounded-xl border border-border/70 bg-card/80 p-3 text-xs leading-6 text-muted-foreground",children:t.output}):null]})}},9136:(e,t,s)=>{s.d(t,{Sidebar:()=>w});var a=s(5155),r=s(2619),n=s.n(r),l=s(63),o=s(7586),i=s(5136),d=s(8486),c=s(8192),u=s(8599),m=s(1473),p=s(6254),x=s(5870),h=s(2604),g=s(4269),b=s(2115),f=s(8695),v=s(5229);function y(){let[e,t]=(0,b.useState)(null),[s,r]=(0,b.useState)(!1);return((0,b.useEffect)(()=>{let e=new AbortController;return fetch("/api/runtime/update-check",{signal:e.signal}).then(e=>e.ok?e.json():null).then(e=>{(null==e?void 0:e.updateAvailable)&&t(e)}).catch(()=>{}),()=>e.abort()},[]),!e||s)?null:(0,a.jsx)("div",{className:"mx-3 mb-2 rounded-lg border border-primary/30 bg-primary/8 px-3 py-2.5 text-xs",children:(0,a.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex items-start gap-2",children:[(0,a.jsx)(f.A,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-primary"}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"font-medium text-foreground",children:["Pan ",e.latest," available"]}),(0,a.jsxs)("p",{className:"mt-0.5 text-muted-foreground",children:["You're on ",e.current,"."," ",(0,a.jsx)("code",{className:"rounded bg-muted/70 px-1 py-0.5 text-[10px] font-mono",children:"pan-ui update"})]})]})]}),(0,a.jsx)("button",{onClick:()=>r(!0),className:"mt-0.5 rounded p-0.5 text-muted-foreground hover:text-foreground transition","aria-label":"Dismiss update notice",children:(0,a.jsx)(v.A,{className:"h-3 w-3"})})]})})}let j=[{href:"/chat",label:"Chat",icon:o.A,description:"Your chats and chat history"},{href:"/marketplace",label:"Marketplace",icon:i.A,description:"Discover skills, MCP servers, and plugins before you install them"},{href:"/skills",label:"Skills",icon:d.A,description:"Reusable procedures, references, and local skill edits"},{href:"/extensions",label:"Integrations",icon:c.A,description:"Live integrations, MCP servers, available tools, approvals, and diagnostics"},{href:"/plugins",label:"Plugins",icon:u.A,description:"Repo-based extensions for custom hooks and bundled tools"},{href:"/memory",label:"Memory",icon:m.A,description:"User memory, agent memory, context, and chat history"},{href:"/profiles",label:"Profiles",icon:p.A,description:"Active profile, defaults, policies, and access"},{href:"/settings",label:"Settings",icon:x.A,description:"Runtime, diagnostics, and environment controls"}];function w(){var e;let t=(0,l.usePathname)(),s=(0,l.useSearchParams)(),r=t.match(/^\/skills\/([^/?#]+)/),o=null!=(e=null==r?void 0:r[1])?e:s.get("loadedSkill"),{mobileNavOpen:i,toggleMobileNav:d,activeSessionId:c,sidebarCompact:u,toggleSidebarCompact:m}=(0,h.j)(),p=(0,a.jsxs)("div",{className:"flex h-full flex-col",children:[(0,a.jsx)("div",{className:(0,g.cn)("border-b border-border/50 px-5",u?"py-3":"py-4"),children:(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"flex h-11 w-11 items-center justify-center rounded-2xl text-primary-foreground shadow-[var(--shadow-card)] euraika-flow-gradient",children:(0,a.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M14 8h20a14 14 0 0 1 0 28H24v20h-10V8Z",fill:"#FEFFEF"}),(0,a.jsx)("path",{d:"M24 18h9a6 6 0 0 1 0 12h-9V18Z",fill:"#073455",fillOpacity:"0.3"}),(0,a.jsx)("rect",{x:"14",y:"58",width:"24",height:"4",rx:"2",fill:"#E9C819"})]})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-2xs font-semibold uppercase tracking-label text-muted-foreground",children:"by Euraika"}),(0,a.jsx)("h1",{className:"text-lg font-semibold",children:"Pan"}),u?null:(0,a.jsx)("p",{className:"mt-1 text-xs leading-5 text-muted-foreground",children:"Your AI workspace — chat, skills, integrations, memory, and runtime controls in one place."})]})]}),(0,a.jsx)("button",{type:"button",onClick:m,className:"rounded-full border border-border/70 bg-background/80 px-2.5 py-1 text-3xs font-medium uppercase tracking-label text-muted-foreground",children:u?"Comfort":"Compact"})]})}),(0,a.jsx)("nav",{className:(0,g.cn)("space-y-1 p-3",u&&"space-y-0.5 p-2"),children:j.map(e=>{let{href:s,label:r,icon:l,description:m}=e,p="/chat"===s&&c?"/chat?session=".concat(encodeURIComponent(c)).concat(o?"&loadedSkill=".concat(encodeURIComponent(o)):""):"/skills"===s&&c?"/skills?session=".concat(encodeURIComponent(c)):s,x=t===s;return(0,a.jsxs)(n(),{href:p,"aria-label":"Integrations"===r?"Integrations":"Chat"===r?"Workspace chat":r,onClick:()=>{i&&d()},className:(0,g.cn)("group flex items-start gap-3 rounded-2xl px-3 text-sm transition",u?"py-2":"py-3",x?"border-l-[3px] border-l-accent bg-primary/8 text-foreground":"border-l-[3px] border-l-transparent text-muted-foreground hover:border-border/60 hover:bg-card/40 hover:text-foreground"),children:[(0,a.jsx)("span",{className:(0,g.cn)("mt-0.5 flex items-center justify-center rounded-xl transition",u?"h-8 w-8":"h-9 w-9",x?"bg-primary/15 text-primary":"bg-muted/50 text-muted-foreground group-hover:bg-background group-hover:text-foreground"),children:(0,a.jsx)(l,{className:"h-4 w-4"})}),(0,a.jsxs)("span",{className:"min-w-0",children:[(0,a.jsx)("span",{className:"block font-medium",children:r}),u?null:(0,a.jsx)("span",{className:(0,g.cn)("mt-1 block text-xs leading-5 text-muted-foreground",x?"block":"hidden group-hover:block"),children:m})]})]},s)})}),(0,a.jsx)(y,{}),u?null:(0,a.jsx)("div",{className:"mt-auto px-4 pb-4 pt-2 text-xs leading-5 text-muted-foreground",children:"Chat, skills, integrations, profiles, and settings share one workspace shell. Chat history stays separate so the UI feels like a workspace, not a page list."})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("aside",{className:"hidden w-80 shrink-0 border-r border-border/70 bg-surface/70 backdrop-blur-xl lg:block",children:p}),i?(0,a.jsx)("div",{className:"fixed inset-0 z-40 bg-black/45 backdrop-blur-sm lg:hidden",onClick:d,children:(0,a.jsx)("aside",{className:"h-full w-80 border-r border-border/70 bg-background/95 shadow-[var(--shadow-elevated)]",onClick:e=>e.stopPropagation(),children:p})}):null]})}},9678:(e,t,s)=>{s.d(t,{h:()=>a,n:()=>r});class a extends Error{constructor(e,t,s,a){super(t),this.status=e,this.code=s,this.details=a,this.name="ApiError"}}async function r(e,t){var s;let r=await fetch(e,{...t,headers:{"Content-Type":"application/json",...null!=(s=null==t?void 0:t.headers)?s:{}},cache:"no-store"});if(!r.ok){let e=(r.headers.get("content-type")||"").includes("application/json")?await r.json().catch(()=>null):await r.text().catch(()=>""),t="string"==typeof e?e||"API request failed with status ".concat(r.status):(null==e?void 0:e.error)||(null==e?void 0:e.message)||"API request failed with status ".concat(r.status),s="object"==typeof e&&null!==e&&"code"in e?String(e.code):void 0;throw new a(r.status,t,s,e)}return await r.json()}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9475],{21:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(1847).A)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},5880:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(1847).A)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},9068:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(1847).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9347:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(1847).A)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},9475:(e,r,t)=>{t.r(r),t.d(r,{McpHub:()=>S});var s=t(5155),l=t(2115),n=t(9347),a=t(6651),o=t(5229),d=t(6670),i=t(9867),c=t(9068),m=t(5880),u=t(6907),x=t(1847);let p=(0,x.A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);var h=t(21),g=t(4269);let b={verified:{label:"Verified",icon:u.A,colorClasses:"bg-emerald-500/15 text-emerald-400"},community:{label:"Community",icon:p,colorClasses:"bg-blue-500/15 text-blue-400"},unreviewed:{label:"Unreviewed",icon:h.A,colorClasses:"bg-muted text-muted-foreground"}};function f(e){let{level:r,className:t}=e,{label:l,icon:n,colorClasses:a}=b[r];return(0,s.jsxs)("span",{className:(0,g.cn)("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-3xs font-medium",a,t),children:[(0,s.jsx)(n,{className:"h-2.5 w-2.5"}),l]})}function y(e){let{server:r,onInstall:t}=e,l=r.verified?"verified":"community";return(0,s.jsxs)("div",{className:"flex flex-col rounded-2xl border border-border/70 bg-card p-4 shadow-sm transition hover:-translate-y-0.5 hover:shadow-md",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("h3",{className:"truncate text-sm font-semibold",children:r.title||r.name}),(0,s.jsx)(f,{level:l})]}),r.author?(0,s.jsx)("p",{className:"mt-0.5 text-2xs text-muted-foreground",children:r.author}):null]}),(0,s.jsx)("span",{className:"shrink-0 rounded-lg bg-muted/50 px-2 py-0.5 text-3xs text-muted-foreground",children:"stdio"===r.transport?"stdio":"HTTP"})]}),(0,s.jsx)("p",{className:"mt-2 line-clamp-2 flex-1 text-xs leading-5 text-muted-foreground",children:r.description}),r.tools.length>0?(0,s.jsxs)("p",{className:"mt-1.5 text-3xs text-muted-foreground",children:[r.tools.length," tool",1!==r.tools.length?"s":""]}):null,(0,s.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,s.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),t(r)},className:"rounded-xl bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground shadow-sm transition hover:opacity-90",children:[(0,s.jsx)(i.A,{className:"mr-1 inline h-3 w-3"}),"Install"]}),r.repository?(0,s.jsxs)("a",{href:r.repository,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-xl border border-border/50 px-2.5 py-1.5 text-xs text-muted-foreground transition hover:bg-muted/40",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)(c.A,{className:"h-3 w-3"}),"Repo"]}):null,r.websiteUrl?(0,s.jsxs)("a",{href:r.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-xl border border-border/50 px-2.5 py-1.5 text-xs text-muted-foreground transition hover:bg-muted/40",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)(m.A,{className:"h-3 w-3"}),"Site"]}):null]})]})}let v=(0,x.A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),j=(0,x.A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),N=(0,x.A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),k=(0,x.A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var w=t(5299);function C(e){let r=e.toUpperCase();return r.includes("SECRET")||r.includes("TOKEN")||r.includes("KEY")}function A(e){var r;let{server:t,onClose:n}=e,[a,o]=(0,l.useState)(1),[i,c]=(0,l.useState)({}),[m,u]=(0,l.useState)(null),[x,p]=(0,l.useState)(!1),h=(0,d.K)(),g=null!=(r=null==t?void 0:t.requiredEnv)?r:[],b=g.length>0,y=(null==t?void 0:t.verified)?"verified":"community",A=(0,l.useCallback)(()=>{o(1),c({}),u(null),p(!1)},[]),M=(0,l.useCallback)(()=>{A(),n()},[n,A]),S=(0,l.useCallback)(async()=>{if(t){u(null);try{let r=await h.mutateAsync({identifier:t.id||t.name,env:Object.keys(i).length>0?i:void 0});if(r.success)p(!0),setTimeout(()=>M(),1500);else{var e;u(null!=(e=r.error)?e:"Installation failed.")}}catch(e){u(e instanceof Error?e.message:"Installation failed.")}}},[t,i,h,M]),E=(0,l.useCallback)(()=>{1===a?o(b?2:3):2===a&&o(3)},[a,b]),P=(0,l.useCallback)(()=>{3===a?o(b?2:1):2===a&&o(1)},[a,b]);return t?(0,s.jsx)("div",{className:"fixed inset-0 z-30 flex items-center justify-center bg-black/50 p-4",children:(0,s.jsxs)("div",{className:"w-full max-w-lg rounded-2xl border border-border bg-background p-5 shadow-xl",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold",children:"Install MCP Server"}),(0,s.jsxs)("span",{className:"text-xs text-muted-foreground",children:["Step ",a," of 3"]})]}),1===a?(0,s.jsx)("div",{className:"mt-4 space-y-3",children:(0,s.jsxs)("div",{className:"rounded-xl border border-border/70 bg-card/80 p-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("h4",{className:"text-sm font-semibold",children:t.title||t.name}),(0,s.jsx)(f,{level:y})]}),t.author?(0,s.jsxs)("p",{className:"mt-1 text-2xs text-muted-foreground",children:["by ",t.author]}):null,(0,s.jsx)("p",{className:"mt-2 text-xs leading-5 text-muted-foreground",children:t.description}),(0,s.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2 text-xs text-muted-foreground",children:[(0,s.jsxs)("span",{className:"rounded-full border border-border px-2 py-0.5",children:["Transport: ",t.transport]}),"0.0.0"!==t.version?(0,s.jsxs)("span",{className:"rounded-full border border-border px-2 py-0.5",children:["v",t.version]}):null,t.tools.length>0?(0,s.jsxs)("span",{className:"rounded-full border border-border px-2 py-0.5",children:[t.tools.length," tool",1!==t.tools.length?"s":""]}):null,(0,s.jsx)("span",{className:"rounded-full border border-border px-2 py-0.5",children:t.category})]})]})}):null,2===a?(0,s.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:"Configure required environment variables for this server."}),g.map(e=>{var r;return(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs font-medium text-foreground",children:e.name}),e.description?(0,s.jsx)("p",{className:"mt-0.5 text-3xs text-muted-foreground",children:e.description}):null,(0,s.jsx)("input",{type:C(e.name)?"password":"text",value:null!=(r=i[e.name])?r:"",onChange:r=>c(t=>({...t,[e.name]:r.target.value})),placeholder:e.name,className:"mt-1 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm"})]},e.name)}),0===g.length?(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:"No environment variables required."}):null]}):null,3===a?(0,s.jsxs)("div",{className:"mt-4 space-y-3",children:[x?(0,s.jsxs)("div",{className:"flex items-center gap-2 rounded-xl border border-emerald-500/30 bg-emerald-500/10 p-4 text-sm text-emerald-400",children:[(0,s.jsx)(v,{className:"h-4 w-4 shrink-0"}),(0,s.jsxs)("span",{children:[t.title||t.name," installed successfully!"]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Ready to install ",(0,s.jsx)("span",{className:"font-medium text-foreground",children:t.title||t.name}),"."]}),t.installCommand?(0,s.jsx)("div",{className:"rounded-lg border border-border/70 bg-muted/30 px-3 py-2 font-mono text-xs text-muted-foreground",children:t.installCommand}):null,Object.keys(i).length>0?(0,s.jsxs)("div",{className:"text-xs text-muted-foreground",children:[(0,s.jsx)("p",{className:"font-medium text-foreground",children:"Environment variables:"}),(0,s.jsx)("ul",{className:"mt-1 space-y-0.5",children:Object.entries(i).map(e=>{let[r,t]=e;return(0,s.jsxs)("li",{children:[(0,s.jsx)("span",{className:"font-mono",children:r})," ="," ",C(r)?"••••••••":t||"(empty)"]},r)})})]}):null]}),m?(0,s.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-danger/30 bg-danger/10 p-3 text-sm text-foreground",children:[(0,s.jsx)(j,{className:"h-4 w-4 shrink-0 text-danger"}),m]}):null]}):null,(0,s.jsxs)("div",{className:"mt-5 flex justify-between gap-2",children:[(0,s.jsx)("div",{children:a>1&&!x?(0,s.jsxs)("button",{type:"button",onClick:P,className:"inline-flex items-center gap-1 rounded-lg border border-border px-4 py-2 text-sm text-muted-foreground transition hover:bg-card",children:[(0,s.jsx)(N,{className:"h-3.5 w-3.5"}),"Back"]}):null}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("button",{type:"button",onClick:M,className:"rounded-lg border border-border px-4 py-2 text-sm",children:x?"Done":"Cancel"}),a<3?(0,s.jsxs)("button",{type:"button",onClick:E,className:"inline-flex items-center gap-1 rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",children:["Next",(0,s.jsx)(k,{className:"h-3.5 w-3.5"})]}):null,3!==a||x?null:(0,s.jsx)("button",{type:"button",onClick:S,disabled:h.isPending,className:"inline-flex items-center gap-1 rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50",children:h.isPending?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w.A,{className:"h-3.5 w-3.5 animate-spin"}),"Installing…"]}):"Install"})]})]})]})}):null}let M=new Set(JSON.parse('["@modelcontextprotocol/server-filesystem","@modelcontextprotocol/server-github","@modelcontextprotocol/server-postgres","@modelcontextprotocol/server-sqlite","@modelcontextprotocol/server-brave-search","@modelcontextprotocol/server-google-maps","@modelcontextprotocol/server-slack","@modelcontextprotocol/server-memory","@modelcontextprotocol/server-puppeteer","@modelcontextprotocol/server-fetch","@modelcontextprotocol/server-sequential-thinking","playwright-mcp","mcp-server-docker","@anthropic/mcp-server-claude","mcp-server-kubernetes","@stripe/agent-toolkit","mcp-server-notion","mcp-server-linear","mcp-server-discord","mcp-server-youtube-transcript"]'));function S(){var e,r;let[t,i]=(0,l.useState)("featured"),[c,m]=(0,l.useState)(""),[u,x]=(0,l.useState)(""),[p,h]=(0,l.useState)(null),g=(0,l.useRef)(null);(0,l.useEffect)(()=>(g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{x(c)},300),()=>{g.current&&clearTimeout(g.current)}),[c]);let b=(0,d.J)(u||void 0),f=null!=(r=null==(e=b.data)?void 0:e.servers)?r:[],v=(0,l.useMemo)(()=>"featured"===t?f.filter(e=>{var r;return M.has(e.name)||M.has(null!=(r=e.npmPackage)?r:"")}):f,[f,t]);return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>i("featured"),className:"rounded-xl px-4 py-2 text-sm font-medium transition ".concat("featured"===t?"bg-primary text-primary-foreground shadow-sm":"border border-border/70 text-muted-foreground hover:bg-card"),children:[(0,s.jsx)(n.A,{className:"mr-1 inline h-3.5 w-3.5"}),"Featured"]}),(0,s.jsx)("button",{type:"button",onClick:()=>i("all"),className:"rounded-xl px-4 py-2 text-sm font-medium transition ".concat("all"===t?"bg-primary text-primary-foreground shadow-sm":"border border-border/70 text-muted-foreground hover:bg-card"),children:"All Servers"})]}),(0,s.jsxs)("div",{className:"relative flex-1 min-w-[200px] max-w-md",children:[(0,s.jsx)(a.A,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),(0,s.jsx)("input",{type:"text",placeholder:"Search MCP servers…",value:c,onChange:e=>m(e.target.value),className:"w-full rounded-xl border border-border/70 bg-background/80 py-2 pl-9 pr-8 text-sm outline-none placeholder:text-muted-foreground focus:ring-2 focus:ring-primary/30"}),c?(0,s.jsx)("button",{type:"button",onClick:()=>m(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:(0,s.jsx)(o.A,{className:"h-4 w-4"})}):null]})]}),b.isLoading?(0,s.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:Array.from({length:6}).map((e,r)=>(0,s.jsx)("div",{className:"h-40 animate-pulse rounded-2xl border border-border/70 bg-card/60"},r))}):null,b.isError?(0,s.jsxs)("div",{className:"rounded-lg border border-danger/30 bg-danger/10 p-4 text-sm text-foreground",children:["Failed to load MCP servers. ",b.error instanceof Error?b.error.message:"Unknown error."]}):null,b.isLoading||b.isError||0!==v.length?null:(0,s.jsx)("div",{className:"rounded-2xl border border-dashed border-border/70 bg-card/60 p-5 text-sm text-muted-foreground",children:u?'No MCP servers found for "'.concat(u,'". Try a different search term.'):"featured"===t?"No featured servers found. The MCP hub cache may need to populate — it syncs automatically in the background.":"No MCP servers found. The hub cache may need to populate — it syncs automatically in the background."}),!b.isLoading&&v.length>0?(0,s.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:v.map(e=>(0,s.jsx)(y,{server:e,onInstall:e=>h(e)},e.id))}):null,(0,s.jsx)(A,{server:p,onClose:()=>h(null)})]})}},9867:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(1847).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9860],{1375:(e,a,t)=>{t.d(a,{eS:()=>u,pp:()=>p,W5:()=>m,Gu:()=>c});var l=t(5155),o=t(5299),i=t(1847);let n=(0,i.A)("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]),r=(0,i.A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var s=t(4269);function d(e){return"banner"===e?"rounded-xl border border-border/60 bg-card/50 p-4 shadow-[var(--shadow-card)]":"rounded-2xl border border-border/60 bg-card/55 p-6 shadow-[var(--shadow-card)]"}function c(e){var a;let{title:t,message:i,description:n,layout:r="card",className:c,children:p}=e,u=null!=(a=null!=t?t:i)?a:"Loading…";return(0,l.jsxs)("div",{className:(0,s.cn)(d(r),c),children:[(0,l.jsxs)("div",{className:"flex items-start gap-3",children:[(0,l.jsx)(o.A,{className:"mt-0.5 h-4 w-4 animate-spin text-primary"}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"font-semibold text-foreground",children:u}),n?(0,l.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:n}):null]})]}),p?(0,l.jsx)("div",{className:"mt-4",children:p}):null]})}function p(e){let{title:a,description:t,icon:o,primaryAction:i,secondaryAction:r,action:c,layout:p="card",className:u}=e,m=null!=i?i:c;return(0,l.jsx)("div",{className:(0,s.cn)(d(p),"border-dashed",u),children:(0,l.jsxs)("div",{className:"flex items-start gap-3",children:[(0,l.jsx)("div",{className:"mt-0.5 text-primary",children:null!=o?o:(0,l.jsx)(n,{className:"h-4 w-4"})}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"font-semibold text-foreground",children:a}),(0,l.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:t}),m||r?(0,l.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[m,r]}):null]})]})})}function u(e){let{title:a,description:t,severity:o="warning",icon:i,details:n,primaryAction:c,secondaryAction:p,layout:u="card",className:m}=e;return(0,l.jsx)("div",{className:(0,s.cn)(d(u),"danger"===o?"border-danger/35 bg-danger/10":"border-warning/35 bg-warning/10",m),children:(0,l.jsxs)("div",{className:"flex items-start gap-3",children:[(0,l.jsx)("div",{className:(0,s.cn)("mt-0.5","danger"===o?"text-danger":"text-warning"),children:null!=i?i:(0,l.jsx)(r,{className:"h-4 w-4"})}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"font-semibold text-foreground",children:a}),(0,l.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:t}),n?(0,l.jsx)("div",{className:"mt-2 text-xs leading-5 text-muted-foreground",children:n}):null,c||p?(0,l.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[c,p]}):null]})]})})}function m(e){let{title:a="Something went wrong",error:t,message:o,description:i,primaryAction:n,secondaryAction:c,layout:p="card",className:u}=e,m=null!=o?o:t,j="string"==typeof m?m:m instanceof Error?m.message:null;return(0,l.jsx)("div",{className:(0,s.cn)(d(p),"border-danger/35 bg-danger/10",u),children:(0,l.jsxs)("div",{className:"flex items-start gap-3",children:[(0,l.jsx)(r,{className:"mt-0.5 h-4 w-4 text-danger"}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"font-semibold text-foreground",children:a}),i?(0,l.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:i}):null,j?(0,l.jsx)("p",{className:"mt-1 text-sm leading-6 text-foreground",children:j}):null,n||c?(0,l.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[n,c]}):null]})]})})}},4412:(e,a,t)=>{t.d(a,{O:()=>i});var l=t(5155),o=t(4269);function i(e){let{count:a=6,className:t,cardClassName:i}=e;return(0,l.jsx)("div",{className:(0,o.cn)("grid gap-4 md:grid-cols-2 xl:grid-cols-3",t),children:Array.from({length:a}).map((e,a)=>(0,l.jsx)("div",{className:(0,o.cn)("h-40 animate-pulse rounded-2xl border border-border/50 bg-card/50",i)},a))})}},5299:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(1847).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},6670:(e,a,t)=>{t.d(a,{J:()=>r,K:()=>s});var l=t(2454),o=t(9776),i=t(549),n=t(9678);function r(e){let a=e?"?q=".concat(encodeURIComponent(e)):"";return(0,l.I)({queryKey:["hub-mcp",null!=e?e:""],queryFn:()=>(0,n.n)("/api/extensions/hub".concat(a))})}function s(){let e=(0,o.jE)();return(0,i.n)({mutationFn:e=>(0,n.n)("/api/extensions/hub/install",{method:"POST",body:JSON.stringify(e)}),onSuccess:()=>{e.invalidateQueries({queryKey:["hub-mcp"]}),e.invalidateQueries({queryKey:["extensions"]})}})}},9054:(e,a,t)=>{t.d(a,{HB:()=>m,C5:()=>j,d:()=>p,iF:()=>u,YM:()=>Y});var l=t(4879);l.gM("type",[l.Ik({type:l.eu("assistant.delta"),delta:l.Yj()}),l.Ik({type:l.eu("run.phase"),phase:l.k5(["drafting","tool-started","waiting-approval","completed"]),label:l.Yj()}),l.Ik({type:l.eu("tool.started"),toolCallId:l.Yj(),toolName:l.Yj(),riskLevel:l.k5(["read","write","execute","admin"]).optional(),provenance:l.k5(["built-in","verified","custom","self-hosted","local-process"]).optional()}),l.Ik({type:l.eu("tool.awaiting_approval"),toolCallId:l.Yj(),toolName:l.Yj(),summary:l.Yj(),riskLevel:l.k5(["read","write","execute","admin"]).optional(),governance:l.k5(["enabled","blocked","approval-gated","policy-limited"]).optional()}),l.Ik({type:l.eu("tool.completed"),toolCallId:l.Yj(),toolName:l.Yj(),output:l.Yj().optional(),riskLevel:l.k5(["read","write","execute","admin"]).optional()}),l.Ik({type:l.eu("artifact.emitted"),artifactId:l.Yj(),artifactType:l.Yj(),label:l.Yj(),content:l.Yj().optional()}),l.Ik({type:l.eu("source.emitted"),source:l.Ik({id:l.Yj(),title:l.Yj(),href:l.Yj().optional(),snippet:l.Yj().optional(),sourceType:l.k5(["web","file","workspace","integration","unknown"]),provenance:l.k5(["built-in","verified","custom","self-hosted","local-process"]),note:l.Yj().optional(),label:l.Yj().optional()})}),l.Ik({type:l.eu("error"),message:l.Yj()})]),l.Ik({model:l.Yj(),provider:l.Yj(),policyPreset:l.k5(["safe-chat","research","builder","full-power"]),memoryMode:l.k5(["standard","minimal"])}),l.Ik({id:l.Yj(),title:l.Yj(),updatedAt:l.Yj(),preview:l.Yj().optional()});let o=l.Ik({id:l.Yj(),name:l.Yj(),description:l.Yj(),enabled:l.zM(),riskLevel:l.k5(["read","write","execute","admin"]),scope:l.k5(["global","profile","session"]),approvalPolicy:l.k5(["auto","on-request","always"]).optional(),lastUsedAt:l.Yj().optional()}),i=l.Ik({command:l.Yj().optional(),url:l.Yj().optional(),authType:l.k5(["none","api-key","oauth"]).optional(),token:l.Yj().optional()}),n=l.Ik({source:l.k5(["live","cache","persisted","failed"]),errorText:l.Yj().nullable().optional(),remediation:l.YO(l.Yj()).optional(),discoveredTools:l.ai().optional(),probedAt:l.Yj().optional()}),r=l.Ik({id:l.Yj(),name:l.Yj(),description:l.Yj(),health:l.k5(["healthy","degraded","blocked","failed"]),riskLevel:l.k5(["read","write","execute","admin"]),authState:l.k5(["connected","needs-auth","expired"]),governance:l.k5(["enabled","blocked","approval-gated","policy-limited"]),provenance:l.k5(["built-in","verified","custom","self-hosted","local-process"]),approvalPolicy:l.k5(["auto","on-request","always"]),type:l.k5(["mcp","native","builtin"]),installed:l.zM(),config:i,capabilities:l.YO(o),toolCount:l.ai(),profilesUsing:l.YO(l.Yj()),diagnostics:n.optional(),version:l.Yj().optional(),updatedAt:l.Yj().optional()}),s=l.Ik({id:l.Yj(),name:l.Yj(),sourceExtensionId:l.Yj(),sourceExtensionName:l.Yj(),category:l.k5(["mcp","builtin","native"]),riskLevel:l.k5(["read","write","execute","admin"]),enabled:l.zM(),approvalPolicy:l.k5(["auto","on-request","always"]),lastUsedAt:l.Yj().optional(),scope:l.k5(["global","profile","session"])});l.Ik({id:l.Yj(),createdAt:l.Yj(),action:l.Yj(),targetType:l.Yj(),targetId:l.Yj(),detail:l.Yj()}),l.Ik({id:l.Yj(),content:l.Yj(),updatedAt:l.Yj().optional(),scope:l.k5(["user","agent"])}),l.Ik({activeProfileId:l.Yj().nullable(),activeSessionId:l.Yj().nullable(),activeSessionTitle:l.Yj().optional(),activeSessionPreview:l.Yj().optional(),loadedSkillIds:l.YO(l.Yj()),model:l.Yj().optional(),provider:l.Yj().optional(),policyPreset:l.k5(["safe-chat","research","builder","full-power"]).optional(),memoryMode:l.k5(["standard","minimal"]).optional(),userMemory:l.YO(l.Yj()),agentMemory:l.YO(l.Yj())}),l.Ik({id:l.Yj(),name:l.Yj(),modelDefault:l.Yj().optional(),policyPreset:l.k5(["safe-chat","research","builder","full-power"]).optional(),sessionCount:l.ai().optional(),skillCount:l.ai().optional(),extensionCount:l.ai().optional(),active:l.zM().optional()}),l.Ik({id:l.Yj(),title:l.Yj(),updatedAt:l.Yj(),status:l.k5(["active","archived"]),preview:l.Yj().optional(),parentSessionId:l.Yj().optional()});let d=l.Ik({path:l.Yj(),name:l.Yj(),group:l.Yj()}),c=l.Ik({id:l.Yj(),name:l.Yj(),description:l.Yj(),source:l.k5(["bundled","local","hub","agent-created"]),scope:l.k5(["builtin","global","profile"]),provenance:l.k5(["built-in","verified","custom","local-process"]),installed:l.zM(),enabled:l.zM(),content:l.Yj(),loadedInSessions:l.YO(l.Yj()).optional(),ownerProfileId:l.Yj().nullable().optional(),filePath:l.Yj().optional(),version:l.Yj().optional(),updatedAt:l.Yj().optional(),impliedTools:l.YO(l.Yj()).optional(),category:l.Yj().optional(),tags:l.YO(l.Yj()).optional(),relatedSkills:l.YO(l.Yj()).optional(),linkedFiles:l.YO(d).optional(),author:l.Yj().optional()}),p=e=>c.parse(e),u=e=>c.array().parse(e),m=e=>r.parse(e),j=e=>r.array().parse(e),Y=e=>s.array().parse(e)}}]);