@capagents/forgeqe 2.4.5 → 2.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/HOW_TO_USE.md +21 -1
  2. package/dist/docs-site/docs/index.html +24 -3
  3. package/dist/docs-site/docs/search.js +1 -1
  4. package/dist/docs-site/docs/web-app/index.html +19 -3
  5. package/dist/forgeqe.js +1006 -1044
  6. package/dist/template.html +4 -4
  7. package/dist/web/assets/ApiTests-D5YLst-t.js +2 -0
  8. package/dist/web/assets/Chat-DUZawyA0.js +3 -0
  9. package/dist/web/assets/{Data-M-G4Y2k9.js → Data-BOu8BrmB.js} +4 -4
  10. package/dist/web/assets/Features-BCBzUoB7.js +1 -0
  11. package/dist/web/assets/Jobs-C-Tqj504.js +3 -0
  12. package/dist/web/assets/Quality-CzCArgrj.js +1 -0
  13. package/dist/web/assets/Record-CcHMCfs6.js +1 -0
  14. package/dist/web/assets/Regression-CgiNh2hj.js +2 -0
  15. package/dist/web/assets/Reports-CXRY0udx.js +2 -0
  16. package/dist/web/assets/Response-VUbDhVeF.js +8 -0
  17. package/dist/web/assets/Runs-kghxBY8X.js +2 -0
  18. package/dist/web/assets/capgemini-BO8ajcbd.svg +21 -0
  19. package/dist/web/assets/{circle-dashed-ODPnEo8f.js → circle-dashed-CQKCycSk.js} +1 -1
  20. package/dist/web/assets/{external-link-S8aL0KIN.js → external-link-B45wnQ3R.js} +1 -1
  21. package/dist/web/assets/{file-chart-column-increasing-D6q2iZ64.js → file-chart-column-increasing-9rCBQxTk.js} +1 -1
  22. package/dist/web/assets/frame-CHQgOaj6.js +3 -0
  23. package/dist/web/assets/index-CwX6YH3i.css +2 -0
  24. package/dist/web/assets/index-Hd8gmpz5.js +26 -0
  25. package/dist/web/assets/{markdown-4IJa7wkI.js → markdown-BPBR6Fva.js} +7 -7
  26. package/dist/web/assets/{sticky-note-i4oBl2S1.js → sticky-note-D_lJfPYH.js} +1 -1
  27. package/dist/web/assets/{terminal-Cb_EtWVl.js → terminal-BZSHVR9y.js} +1 -1
  28. package/dist/web/assets/{trending-up-Cxt0Wl0_.js → trending-up-Bypj2D7Z.js} +1 -1
  29. package/dist/web/index.html +3 -3
  30. package/docs/WEB_APP.md +20 -3
  31. package/docs/user-guide.html +24 -3
  32. package/docs/walkthrough/hotfix-narration.md +606 -0
  33. package/docs/walkthrough/index.html +238 -39
  34. package/forgeqe.example.yaml +13 -0
  35. package/package.json +1 -1
  36. package/prompts/brain.md +1 -0
  37. package/py/forgeqe_mobile/hyperexecute.py +1 -0
  38. package/dist/web/assets/ApiTests-BKeFkLyV.js +0 -2
  39. package/dist/web/assets/Chat-dwxejH0o.js +0 -3
  40. package/dist/web/assets/Features-EJv_T9B8.js +0 -1
  41. package/dist/web/assets/Jobs-5A8NDMou.js +0 -3
  42. package/dist/web/assets/Quality-DIhsU907.js +0 -1
  43. package/dist/web/assets/Record-D7BkDgkZ.js +0 -1
  44. package/dist/web/assets/Regression-CbnOqFND.js +0 -2
  45. package/dist/web/assets/Reports-Duxt7oC1.js +0 -2
  46. package/dist/web/assets/Response-B2lhSJ1u.js +0 -8
  47. package/dist/web/assets/Runs-6M-obw2F.js +0 -2
  48. package/dist/web/assets/frame-pVqMQRrR.js +0 -3
  49. package/dist/web/assets/index-BAI8SJTX.css +0 -2
  50. package/dist/web/assets/index-Cu314_Zs.js +0 -26
  51. package/dist/web/assets/rotate-ccw-BgnQpY8R.js +0 -1
  52. package/dist/web/assets/trash-zYYpxA_X.js +0 -1
@@ -1,2 +0,0 @@
1
- import{$ as e,$t as t,An as n,En as r,Kt as i,L as a,N as o,Nn as s,Nt as c,Ot as l,P as u,Q as d,R as f,St as p,Tt as m,Y as h,Yt as g,Z as _,Zt as v,_t as y,at as b,bt as x,gt as S,pn as C,q as w,r as T,sn as E,st as D,t as O,tt as k,y as A}from"./frame-pVqMQRrR.js";import{t as ee}from"./circle-dashed-ODPnEo8f.js";import{n as j,t as M}from"./markdown-4IJa7wkI.js";import{t as N}from"./external-link-S8aL0KIN.js";import{t as P}from"./file-chart-column-increasing-D6q2iZ64.js";import{a as te,i as ne,t as re}from"./Response-B2lhSJ1u.js";import{t as ie}from"./rotate-ccw-BgnQpY8R.js";import{t as ae}from"./terminal-Cb_EtWVl.js";import{C as oe,M as se,N as ce,_ as le,j as ue,k as de,s as F}from"./index-Cu314_Zs.js";import{n as I,t as fe}from"./when-CHnpLdYw.js";var pe={name:`book-check`,size:24,node:[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`m9 9.5 2 2 4-4`,key:`1dth82`}]]};pe.node;var me=E(pe),L={name:`code-xml`,size:24,node:[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]],aliases:[`code-2`]};L.node;var R=E(L),z={name:`flag`,size:24,node:[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]};z.node;var he=E(z),ge={name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]};ge.node;var _e=E(ge),B=s(n(),1),V=_(),H={execution:`Execution`,report:`Report`,coding:`Coding`,chat:`Chat`},ve={execution:c,report:P,coding:R,chat:x};function ye({kind:e}){let t=ve[e];return(0,V.jsx)(t,{size:14,"aria-hidden":`true`,className:`flex-none text-muted`})}var be={passed:{label:`Passed`,tone:`pass`},failed:{label:`Failed`,tone:`fail`},error:{label:`Error`,tone:`fail`},skipped:{label:`Skipped`,tone:`neutral`},stopped:{label:`Stopped`,tone:`neutral`},blocked:{label:`Blocked`,tone:`warn`}},U=e=>be[e]||{label:e?e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g,` `):`–`,tone:`neutral`},xe={suite:`Suite`,monitor:`Monitor round`,run:`Browser run`,explore:`Exploration`,api:`API run`,desktop:`Desktop run`,mobile:`App run`},Se=e=>{if(!e)return``;let t=Math.round(e/1e3);return t<60?`${t}s`:`${Math.floor(t/60)}m ${t%60}s`};function W({title:e,icon:t,children:n,aside:r}){return(0,V.jsxs)(`section`,{className:`flex flex-col gap-3 rounded-[14px] border border-line-soft p-4`,children:[(0,V.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,V.jsxs)(`h3`,{className:`m-0 flex flex-1 items-center gap-2 text-base font-semibold`,children:[(0,V.jsx)(`span`,{className:`text-accent`,children:t}),e]}),r]}),n]})}function Ce({path:e,label:t=`Open report`}){let[n,r]=(0,B.useState)(``);return(0,V.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-2`,children:[(0,V.jsxs)(h,{onClick:async()=>r(await a(e)),children:[(0,V.jsx)(N,{size:16,"aria-hidden":`true`}),t]}),n&&(0,V.jsx)(`span`,{className:`text-[13px] text-fail`,children:n})]})}function we({items:e,first:t,render:n}){let[r,i]=(0,B.useState)(!1);return(0,V.jsxs)(V.Fragment,{children:[(r?e:e.slice(0,t)).map(n),e.length>t&&(0,V.jsx)(`button`,{type:`button`,"aria-expanded":r,onClick:()=>i(!r),className:`min-h-8 cursor-pointer self-start border-0 bg-transparent px-0 text-[13px] font-medium text-accent hover:underline`,children:r?`Show fewer`:`Show all ${e.length}`})]})}function Te({c:e}){if(!e.total)return null;let t=t=>`${t/e.total*100}%`;return(0,V.jsxs)(`div`,{role:`img`,"aria-label":`${e.passed} passed, ${e.failed} failed, ${e.other} other, of ${e.total}`,className:`flex h-2 overflow-hidden rounded-full bg-surface-strong`,children:[(0,V.jsx)(`div`,{className:`bg-pass`,style:{width:t(e.passed)}}),(0,V.jsx)(`div`,{className:`bg-fail`,style:{width:t(e.failed)}}),(0,V.jsx)(`div`,{className:`bg-warn`,style:{width:t(e.other)}})]})}function Ee({e}){let t=e.counts.total?Math.round(e.counts.passed/e.counts.total*100):0;return(0,V.jsxs)(`div`,{className:`flex flex-col gap-3 border-t border-line-soft pt-3 first:border-t-0 first:pt-0`,children:[(0,V.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-3 gap-y-2`,children:[(0,V.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-0.5`,children:[(0,V.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:e.title}),(0,V.jsx)(`span`,{className:`text-[13px] text-muted`,children:[xe[e.scope]||e.scope,Se(e.ms),e.tokens?`${A(e.tokens)} tokens`:``,e.stopped?`stopped early`:``].filter(Boolean).join(` · `)})]}),e.report&&(0,V.jsx)(Ce,{path:e.report})]}),(0,V.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-sm`,children:[(0,V.jsxs)(`span`,{className:`text-[22px] font-semibold tabular-nums`,children:[t,`%`]}),(0,V.jsx)(`span`,{className:`text-muted`,children:`passed`}),(0,V.jsxs)(F,{tone:`pass`,children:[e.counts.passed,` passed`]}),e.counts.failed>0&&(0,V.jsxs)(F,{tone:`fail`,children:[e.counts.failed,` failed`]}),e.counts.other>0&&(0,V.jsxs)(F,{tone:`warn`,children:[e.counts.other,` other`]}),(0,V.jsxs)(`span`,{className:`text-muted`,children:[`of `,e.counts.total]})]}),(0,V.jsx)(Te,{c:e.counts}),e.cases.length>0&&(0,V.jsx)(`ul`,{"aria-label":`Cases of ${e.title}`,className:`m-0 flex list-none flex-col p-0`,children:(0,V.jsx)(we,{items:[...e.cases].sort((e,t)=>Number(U(t.status).tone===`fail`)-Number(U(e.status).tone===`fail`)),first:6,render:(e,t)=>(0,V.jsxs)(`li`,{className:`flex min-w-0 items-start gap-3 border-t border-line-soft py-2 text-sm`,children:[(0,V.jsx)(`span`,{className:`w-[76px] flex-none`,children:(0,V.jsx)(F,{tone:U(e.status).tone,children:U(e.status).label})}),(0,V.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,V.jsxs)(`span`,{className:`[overflow-wrap:anywhere]`,children:[e.id&&(0,V.jsx)(`span`,{className:`mr-1.5 font-mono text-[12px] text-muted`,children:e.id}),e.title,e.device&&(0,V.jsxs)(`span`,{className:`text-muted`,children:[` · `,e.device]})]}),e.summary&&(0,V.jsx)(`span`,{className:`line-clamp-2 text-[13px] text-muted`,children:e.summary})]}),(0,V.jsx)(`span`,{className:`flex-none text-[13px] text-muted tabular-nums`,children:Se(e.ms)})]},`${e.id}-${t}`)})}),e.folder&&!e.report&&(0,V.jsxs)(`span`,{className:`text-sm`,children:[`Kept in `,(0,V.jsx)(M,{path:e.folder})]})]})}function De({list:t}){let n=t.reduce((e,t)=>({total:e.total+t.counts.total,passed:e.passed+t.counts.passed,failed:e.failed+t.counts.failed}),{total:0,passed:0,failed:0});return(0,V.jsx)(W,{title:`Execution summary`,icon:(0,V.jsx)(c,{size:18,"aria-hidden":`true`}),aside:t.length>1?(0,V.jsxs)(`span`,{className:`text-sm text-muted`,children:[e(t.length,`run`),` · `,n.passed,` of `,n.total,` passed`]}):void 0,children:t.length?t.map((e,t)=>(0,V.jsx)(Ee,{e},`${e.folder||e.title}-${t}`)):(0,V.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`No results found for this run yet: they appear once its report is written.`})})}function Oe({list:e}){return(0,V.jsxs)(W,{title:`Report summary`,icon:(0,V.jsx)(P,{size:18,"aria-hidden":`true`}),children:[e.length===0&&(0,V.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`No report was written in this run.`}),e.map((e,t)=>(0,V.jsxs)(`div`,{className:`flex flex-col gap-3 border-t border-line-soft pt-3 first:border-t-0 first:pt-0`,children:[(0,V.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-3 gap-y-2`,children:[(0,V.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-0.5`,children:[(0,V.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:e.title}),(0,V.jsx)(`span`,{className:`text-[13px] text-muted`,children:e.builtAt?`Written ${new Date(e.builtAt).toLocaleString([],{dateStyle:`medium`,timeStyle:`short`})}`:e.path?``:`Its page is not there any more`})]}),e.path&&(0,V.jsx)(Ce,{path:e.path})]}),e.stats&&(0,V.jsx)(`dl`,{className:`m-0 grid grid-cols-[repeat(auto-fit,minmax(110px,1fr))] gap-2`,children:e.stats.map(e=>(0,V.jsxs)(`div`,{className:`rounded-[10px] bg-surface-muted px-3 py-2`,children:[(0,V.jsx)(`dt`,{className:`text-[12px] text-muted`,children:e.label}),(0,V.jsx)(`dd`,{className:`m-0 text-[18px] font-semibold tabular-nums`,children:e.value})]},e.label))}),e.markdown&&(0,V.jsx)(ke,{text:e.markdown})]},`${e.path||e.title}-${t}`))]})}function ke({text:e,height:t=220}){let[n,r]=(0,B.useState)(!1),[i,a]=(0,B.useState)(!0),o=(0,B.useRef)(null);return(0,B.useLayoutEffect)(()=>{o.current&&!n&&a(o.current.scrollHeight>t+8)},[e,t,n]),(0,V.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,V.jsxs)(`div`,{ref:o,style:n?void 0:{maxHeight:t},className:n?``:`relative overflow-hidden`,children:[(0,V.jsx)(j,{text:e,className:`text-sm`}),!n&&i&&(0,V.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-0 h-12 bg-gradient-to-t from-bg to-transparent`})]}),(n||i)&&(0,V.jsx)(`button`,{type:`button`,"aria-expanded":n,onClick:()=>r(!n),className:`min-h-8 cursor-pointer self-start border-0 bg-transparent px-0 text-[13px] font-medium text-accent hover:underline`,children:n?`Show less`:`Show all of it`})]})}function Ae(e){let t=e.join(`
2
- `),n=Math.max(2,...(t.match(/`+/g)||[]).map(e=>e.length)),r="`".repeat(n+1);return`${r}diff\n${t}\n${r}`}function je({e}){let[t,n]=(0,B.useState)(!1),r=e.action===`write`?`New`:`Edited`;return(0,V.jsxs)(`li`,{className:`border-t border-line-soft`,children:[(0,V.jsxs)(`div`,{className:`flex min-h-[44px] min-w-0 items-center gap-2 py-1.5 text-sm`,children:[(0,V.jsx)(`button`,{type:`button`,"aria-expanded":t,"aria-label":`${t?`Hide`:`Show`} the diff of ${e.path}`,disabled:!e.diffs.length,onClick:()=>n(!t),className:`inline-flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg border-0 bg-transparent text-muted hover:bg-surface-strong disabled:cursor-default disabled:opacity-40`,children:t?(0,V.jsx)(g,{size:16,"aria-hidden":`true`}):(0,V.jsx)(ue,{size:16,"aria-hidden":`true`})}),(0,V.jsx)(`span`,{className:`w-[52px] flex-none text-[12px] text-muted`,children:r}),(0,V.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:(0,V.jsx)(M,{path:e.path})}),(0,V.jsxs)(`span`,{className:`flex-none font-mono text-[12px] tabular-nums`,children:[(0,V.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.added]}),` `,(0,V.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.removed]})]})]}),t&&(0,V.jsx)(`div`,{className:`pb-3 pl-10 [&_pre]:max-h-[420px] [&_pre]:overflow-auto`,children:e.diffs.length?(0,V.jsx)(j,{text:Ae(e.diffs)}):null})]})}function Me({c:e}){let t=e.edits.reduce((e,t)=>e+t.added,0),n=e.edits.reduce((e,t)=>e+t.removed,0),r=e.tests.at(-1),i=e.reviews.at(-1);return(0,V.jsxs)(W,{title:`Code changes`,icon:(0,V.jsx)(R,{size:18,"aria-hidden":`true`}),aside:(0,V.jsxs)(`span`,{className:`font-mono text-[13px] tabular-nums`,children:[e.edits.length,` file`,e.edits.length===1?``:`s`,` · `,(0,V.jsxs)(`span`,{className:`text-pass`,children:[`+`,t]}),` `,(0,V.jsxs)(`span`,{className:`text-fail`,children:[`−`,n]})]}),children:[e.results.map((e,t)=>(0,V.jsxs)(`div`,{className:`flex flex-col gap-2 rounded-[12px] bg-surface-muted px-4 py-3 text-sm`,children:[(0,V.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,V.jsx)(F,{tone:e.status===`passed`||e.status===`done`?`pass`:e.status===`error`||e.status===`failed`?`fail`:`warn`,children:U(e.status).label}),e.testFile&&(0,V.jsx)(M,{path:e.testFile}),e.maxAttempts>0&&(0,V.jsxs)(`span`,{className:`text-muted`,children:[`attempt `,e.attempts,` of `,e.maxAttempts]}),e.review&&(0,V.jsx)(F,{tone:e.review.approved?`pass`:`warn`,children:e.review.approved?`Review approved`:`Review not approved`})]}),e.error&&(0,V.jsx)(`p`,{className:`m-0 text-fail`,children:e.error}),e.notes&&(0,V.jsx)(j,{text:e.notes,className:`text-sm [&_p]:my-1`}),e.command&&(0,V.jsx)(j,{text:`Run it with \`${e.command.replace(/`/g,``)}\``,className:`text-sm [&_p]:my-0`})]},t)),(r||i)&&(0,V.jsxs)(`div`,{className:`flex flex-wrap gap-2 text-sm`,children:[r&&(0,V.jsxs)(F,{tone:r.ok?`pass`:`fail`,children:[`Last test run `,r.ok?`passed`:`failed`,e.tests.length>1?` (${e.tests.length} runs)`:``]}),i&&(0,V.jsxs)(F,{tone:i.approved?`pass`:`warn`,children:[`Review `,i.approved?`approved`:`asked for ${i.issues} fix${i.issues===1?``:`es`}`]})]}),e.edits.length?(0,V.jsx)(`ul`,{"aria-label":`Files changed`,className:`m-0 flex list-none flex-col p-0`,children:(0,V.jsx)(we,{items:e.edits,first:8,render:e=>(0,V.jsx)(je,{e},e.path)})}):(0,V.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`No files changed.`}),e.edits.some(e=>!e.diffs.length)&&(0,V.jsx)(`p`,{className:`m-0 text-[13px] text-muted`,children:`A file without a diff was changed before ForgeQE kept diffs, or is a hidden or credential file, whose text is not kept.`})]})}function Ne({final:e,answer:t}){let n=e.from===`agent`?t?.facts??[]:[],r=e.from===`agent`?t?.files??[]:[],i=e.from!==`agent`,a=Math.max(2,...(e.text.match(/`+/g)||[]).map(e=>e.length)),o="`".repeat(a+1);return(0,V.jsxs)(W,{title:`Final message`,icon:(0,V.jsx)(he,{size:18,"aria-hidden":`true`}),aside:(0,V.jsx)(`span`,{className:`text-[13px] text-muted`,children:e.from===`agent`?`The agent's last reply`:e.from===`job`?`The end of the job's output`:`What the command said at the end`}),children:[n.length>0&&(0,V.jsx)(`dl`,{className:`m-0 grid grid-cols-[repeat(auto-fit,minmax(180px,1fr))] gap-2`,children:n.map((e,t)=>(0,V.jsxs)(`div`,{className:`min-w-0 rounded-[10px] bg-surface-muted px-3 py-2`,children:[(0,V.jsx)(`dt`,{className:`text-[12px] text-muted`,children:e.label}),(0,V.jsx)(`dd`,{className:`m-0 text-sm [overflow-wrap:anywhere]`,children:(0,V.jsx)(j,{text:e.value,className:`[&_p]:my-0`})})]},`${e.label}-${t}`))}),(0,V.jsx)(ke,{text:i?`${o}text\n${e.text}\n${o}`:te(e.text),height:360}),r.length>0&&(0,V.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-sm`,children:[(0,V.jsx)(`span`,{className:`text-muted`,children:`Files it names:`}),r.map(e=>(0,V.jsx)(M,{path:e},e))]})]})}var Pe={rule:{icon:me,label:`Rulebook`},decision:{icon:l,label:`Test decisions`},memory:{icon:t,label:`Page memory`},replay:{icon:S,label:`Replays`},model:{icon:D,label:`Model`},skill:{icon:m,label:`Skills`}};function Fe({list:e}){let t=Object.keys(Pe).filter(t=>e.some(e=>e.kind===t));return(0,V.jsx)(W,{title:`Learnings`,icon:(0,V.jsx)(_e,{size:18,"aria-hidden":`true`}),aside:e.length?(0,V.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[e.length,` from this session`]}):void 0,children:e.length===0?(0,V.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Nothing learned or decided in this session: no rules, test decisions, page memory or model switches in its log.`}):(0,V.jsx)(`div`,{className:`grid grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-x-6 gap-y-3`,children:t.map(t=>{let{icon:n,label:r}=Pe[t];return(0,V.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,V.jsxs)(`h4`,{className:`m-0 flex items-center gap-1.5 text-[13px] font-medium text-muted`,children:[(0,V.jsx)(n,{size:14,"aria-hidden":`true`}),r]}),(0,V.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.filter(e=>e.kind===t).map((e,t)=>(0,V.jsxs)(`li`,{className:`flex flex-col gap-0.5 border-t border-line-soft py-1.5 text-sm first:border-t-0`,children:[(0,V.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e.text}),e.note&&(0,V.jsx)(`span`,{className:`text-[13px] text-muted [overflow-wrap:anywhere]`,children:e.note})]},t))})]},t)})})})}function Ie({run:e}){let t=[];return(e.executions.length||e.kind===`execution`)&&t.push({kind:`execution`,node:(0,V.jsx)(De,{list:e.executions},`e`)}),(e.reports.length||e.kind===`report`)&&t.push({kind:`report`,node:(0,V.jsx)(Oe,{list:e.reports},`r`)}),e.coding&&(e.coding.edits.length||e.coding.results.length||e.kind===`coding`)&&t.push({kind:`coding`,node:(0,V.jsx)(Me,{c:e.coding},`c`)}),t.sort((t,n)=>Number(n.kind===e.kind)-Number(t.kind===e.kind)),(0,V.jsx)(V.Fragment,{children:t.map(e=>e.node)})}var Le={running:{label:`Running`,tone:`running`},done:{label:`Done`,tone:`pass`},failed:{label:`Failed`,tone:`fail`},stopped:{label:`Stopped`,tone:`neutral`}},Re={chat:`Chat`,suite:`Suite`,monitor:`Monitor`,run:`Browser run`,start:`Chat`,heal:`Heal`,"pr-tests":`PR tests`,pack:`Pack`,pipeline:`Pipeline watch`,explore:`Explore`,api:`API tests`,generate:`Generate`,jobs:`Jobs service`},ze=e=>Re[e]||e.charAt(0).toUpperCase()+e.slice(1),G=e=>{if(!e)return``;let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString([],{month:`short`,day:`numeric`,...t.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`},hour:`numeric`,minute:`2-digit`})},K=(e,t)=>Math.max(0,Math.round(((e.status===`running`?t:Date.parse(e.lastAt))-Date.parse(e.startedAt))/1e3)),q=e=>Number.isFinite(e)?e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m ${e%60}s`:`${Math.floor(e/3600)}h ${Math.floor(e%3600/60)}m`:`–`,J=e=>e.usage.input+e.usage.output;function Be(e){let[t,n]=(0,B.useState)(Date.now());return(0,B.useEffect)(()=>{if(!e)return;let t=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(t)},[e]),t}function Ve({r:e}){return e.origin.kind===`web`?(0,V.jsxs)(`a`,{href:f(`chats`,e.origin.chat),className:`inline-flex items-center gap-1.5`,children:[(0,V.jsx)(x,{size:14,"aria-hidden":`true`}),`Web chat`]}):e.origin.kind===`job`?(0,V.jsxs)(`a`,{href:f(`jobs`,encodeURIComponent(e.origin.job)),className:`inline-flex items-center gap-1.5`,children:[(0,V.jsx)(v,{size:14,"aria-hidden":`true`}),`Job`]}):(0,V.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-muted`,children:[(0,V.jsx)(ae,{size:14,"aria-hidden":`true`}),`Terminal`]})}function He({status:e}){let t=Le[e].label;return e===`running`?(0,V.jsx)(p,{size:16,"aria-label":t,className:`flex-none animate-spin text-accent`}):e===`done`?(0,V.jsx)(de,{size:16,"aria-label":t,className:`flex-none text-pass`}):e===`failed`?(0,V.jsx)(i,{size:16,"aria-label":t,className:`flex-none text-fail`}):(0,V.jsx)(ee,{size:16,"aria-label":t,className:`flex-none text-muted`})}var Y=e=>e.status!==`running`&&!e.tools&&!e.turns&&!J(e)&&!e.files.length&&!e.outputs.length&&K(e,0)<2;function X({label:e,children:t}){return(0,V.jsxs)(`div`,{className:`grid grid-cols-[120px_minmax(0,1fr)] items-baseline gap-3 border-t border-line-soft py-2 text-sm first:border-t-0`,children:[(0,V.jsx)(`span`,{className:`text-[13px] text-muted`,children:e}),(0,V.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:t})]})}function Z({title:e,children:t}){return(0,V.jsxs)(`section`,{className:`flex min-w-0 flex-col rounded-[14px] border border-line-soft px-4 py-3`,children:[(0,V.jsx)(`h3`,{className:`m-0 mb-1 text-[14px] font-semibold`,children:e}),t]})}var Ue={rerun:ie,write_test:le,investigate:oe,fix_test:k};function We({actions:e}){let[t,n]=(0,B.useState)(``),[r,i]=(0,B.useState)(``);if(!e.length)return null;let a=async e=>{n(e.prompt),i(``);try{let{id:t}=await C.start(e.prompt,{});location.hash=f(`chats`,t)}catch(e){i(e.message),n(``)}};return(0,V.jsxs)(`section`,{"aria-label":`Next steps`,className:`flex flex-col gap-2`,children:[(0,V.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:e.map((e,n)=>{let r=Ue[e.kind];return(0,V.jsxs)(`button`,{type:`button`,disabled:!!t,onClick:()=>void a(e),className:d(`flex min-h-[52px] max-w-full cursor-pointer items-center gap-3 rounded-[14px] border px-3 py-2 text-left disabled:cursor-default disabled:opacity-60`,n===0?`border-accent bg-accent-soft hover:bg-accent-soft/70`:`border-line-soft bg-bg hover:bg-surface-muted`),children:[(0,V.jsx)(r,{size:18,"aria-hidden":`true`,className:`flex-none text-accent`}),(0,V.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,V.jsx)(`span`,{className:`text-sm font-medium text-ink`,children:t===e.prompt?`Opening a chat…`:e.label}),(0,V.jsx)(`span`,{className:`max-w-[320px] truncate text-[12px] text-muted`,children:e.note})]})]},n)})}),(0,V.jsx)(`span`,{className:`text-[12px] text-muted`,children:`Each opens a chat with the request; it asks before it changes anything.`}),r&&(0,V.jsx)(`p`,{className:`m-0 text-sm text-fail`,children:r})]})}var Q=e=>`\`${e.replace(/`/g,``)}\``;function Ge({name:t}){let[n,i]=(0,B.useState)(null),[a,o]=(0,B.useState)(``),[s,c]=(0,B.useState)(!1),[l,u]=(0,B.useState)(`summary`),p=(0,B.useCallback)(()=>{r.detail(t).then(e=>{i(e),o(``)},e=>o(e.message))},[t]);(0,B.useEffect)(p,[p]);let m=n?.status===`running`;(0,B.useEffect)(()=>{if(!m)return;let e=setInterval(p,2e3);return()=>clearInterval(e)},[p,m]);let g=Be(m),_=(0,B.useMemo)(()=>(n?.events??[]).map(ne).filter(e=>!!e),[n?.events]),v=async()=>{c(!0),o(``);try{await r.cancel(t),p()}catch(e){o(e.message)}finally{c(!1)}},y=(0,V.jsxs)(`a`,{href:f(`runs`),className:`inline-flex items-center gap-1.5 text-sm`,children:[(0,V.jsx)(ce,{size:16,"aria-hidden":`true`}),`All runs`]});if(!n)return(0,V.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[y,a?(0,V.jsx)(`p`,{role:`alert`,className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail`,children:a}):(0,V.jsx)(`p`,{role:`status`,className:`m-0 text-sm text-muted`,children:`Loading…`})]});let x=Le[n.status],S=!n.replies.length,C=!!n.final||n.executions.length>0||n.reports.length>0||!!(n.coding&&(n.coding.edits.length||n.coding.results.length))||n.learnings.length>0||n.outputs.length>0,w=[{id:`summary`,label:`Summary`},{id:`conversation`,label:S?`Command`:`Conversation`,n:n.replies.length||void 0},{id:`activity`,label:`Activity`,n:_.length||void 0},{id:`details`,label:`Details`}],T=new Set([...n.reports.map(e=>e.path),...n.executions.flatMap(e=>[e.report,e.folder])].filter(Boolean)),E=n.outputs.filter(e=>!T.has(e.path)),D=n.context?.limit?Math.round(n.context.tokens/n.context.limit*100):null;return(0,V.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[y,(0,V.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-3 gap-y-3`,children:[(0,V.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_320px] flex-col gap-1.5`,children:[(0,V.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,V.jsx)(`h2`,{className:`m-0 min-w-0 text-[22px] font-semibold tracking-[-0.01em] [overflow-wrap:anywhere]`,children:n.title}),(0,V.jsx)(F,{tone:x.tone,children:x.label})]}),(0,V.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 text-[13px] text-muted`,children:[(0,V.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,V.jsx)(ye,{kind:n.kind}),H[n.kind]]}),`· `,(0,V.jsx)(Ve,{r:n}),`· `,G(n.startedAt),` · `,m?`running for `:`took `,q(K(n,g)),` · `,A(J(n)),` tokens`,n.profile?.model?` · ${n.profile.model}`:``]})]}),n.cancel&&(0,V.jsxs)(h,{disabled:s,onClick:()=>void v(),className:`border-fail text-fail hover:bg-fail-soft`,children:[(0,V.jsx)(b,{size:14,fill:`currentColor`,"aria-hidden":`true`}),s?`Stopping…`:n.cancel===`chat`?`Stop this chat's work`:`Cancel this job's run`]})]}),a&&(0,V.jsx)(`p`,{role:`alert`,className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:a}),n.error&&(0,V.jsxs)(`p`,{className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:[(0,V.jsx)(`strong`,{children:`What went wrong:`}),` `,n.error]}),!m&&(0,V.jsx)(We,{actions:n.actions??[]}),(0,V.jsx)(`div`,{role:`tablist`,"aria-label":`This run`,className:`flex gap-1 overflow-x-auto border-b border-line-soft`,children:w.map(e=>(0,V.jsxs)(`button`,{type:`button`,role:`tab`,id:`run-tab-${e.id}`,"aria-selected":l===e.id,"aria-controls":`run-panel-${e.id}`,onClick:()=>u(e.id),className:d(`-mb-px inline-flex min-h-10 cursor-pointer items-center gap-1.5 border-0 border-b-2 bg-transparent px-3 text-sm font-medium whitespace-nowrap`,l===e.id?`border-accent text-ink`:`border-transparent text-muted hover:text-ink`),children:[e.label,e.n!==void 0&&(0,V.jsx)(`span`,{className:`text-[12px] text-muted tabular-nums`,children:e.n})]},e.id))}),(0,V.jsxs)(`div`,{role:`tabpanel`,id:`run-panel-${l}`,"aria-labelledby":`run-tab-${l}`,className:`flex min-w-0 flex-col gap-4`,children:[l===`summary`&&(0,V.jsxs)(V.Fragment,{children:[n.final&&(0,V.jsx)(Ne,{final:n.final,answer:n.answer}),(0,V.jsx)(Ie,{run:n}),E.length>0&&(0,V.jsx)(Z,{title:`What it produced (${E.length})`,children:E.map(e=>(0,V.jsx)(X,{label:e.label,children:(0,V.jsx)(M,{path:e.path})},e.path))}),n.learnings.length>0&&(0,V.jsx)(Fe,{list:n.learnings}),!C&&(0,V.jsx)(`p`,{className:`m-0 rounded-[12px] bg-surface-muted px-4 py-3 text-sm text-ink-2`,children:m?`Still working: its answer and what it produces show here when it ends.`:`This run left no answer, results or files. Its Activity shows what it did.`})]}),l===`conversation`&&(S?(0,V.jsx)(j,{text:Q(n.prompt),className:`text-sm [&_p]:my-0`}):(0,V.jsx)(`ol`,{className:`m-0 flex list-none flex-col gap-4 p-0`,children:n.replies.map((e,t)=>(0,V.jsxs)(`li`,{className:`flex flex-col gap-2`,children:[(0,V.jsx)(`div`,{className:`self-end rounded-[14px] bg-surface-strong px-4 py-2.5 text-sm max-w-[85%]`,children:(0,V.jsx)(j,{text:e.ask,className:`[&_p]:my-0.5`})}),e.text&&(0,V.jsx)(j,{text:te(e.text),className:`text-sm`}),e.error&&(0,V.jsx)(`p`,{className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:e.error})]},t))})),l===`activity`&&(n.archived?(0,V.jsxs)(`p`,{className:`m-0 rounded-[12px] bg-surface-muted px-4 py-3 text-sm text-ink-2`,children:[`ForgeQE keeps the newest session logs only, and this run's is gone. Its summary, final message and learnings were kept in `,(0,V.jsx)(`code`,{className:`font-mono text-[13px]`,children:`.forgeqe/runs`}),`; its step-by-step activity was not.`]}):_.length?(0,V.jsx)(re,{lines:_,start:n.startedAt,live:m,name:`forgeqe-run-${n.name.replace(/\.log$/,``)}.md`}):(0,V.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Nothing logged yet.`})),l===`details`&&(0,V.jsxs)(`div`,{className:`grid items-start gap-3 @3xl:grid-cols-2`,children:[(0,V.jsxs)(Z,{title:`Numbers`,children:[(0,V.jsx)(X,{label:m?`Running for`:`Took`,children:q(K(n,g))}),(0,V.jsxs)(X,{label:`Tokens`,children:[A(J(n)),` `,(0,V.jsxs)(`span`,{className:`text-muted`,children:[`(`,A(n.usage.input),` in · `,A(n.usage.output),` out`,n.usage.cached?` · ${A(n.usage.cached)} cached`:``,`)`]})]}),(0,V.jsxs)(X,{label:`Context`,children:[n.context?A(n.context.tokens):`–`,D!==null&&(0,V.jsxs)(`span`,{className:`text-muted`,children:[` of `,A(n.context.limit),` (`,D,`%)`]})]}),(0,V.jsxs)(X,{label:`Tool calls`,children:[n.tools,` `,(0,V.jsxs)(`span`,{className:`text-muted`,children:[`in `,e(n.turns,`turn`)]})]})]}),(0,V.jsxs)(Z,{title:`Session`,children:[(0,V.jsx)(X,{label:`Started by`,children:(0,V.jsx)(Ve,{r:n})}),(0,V.jsx)(X,{label:`Command`,children:ze(n.command)}),(0,V.jsx)(X,{label:`Model`,children:n.profile?[n.profile.name,n.profile.model].filter(Boolean).join(` · `):`–`}),(0,V.jsx)(X,{label:`Agents`,children:n.agents.length?n.agents.map(t=>`${t.name} (${e(t.calls,`call`)})`).join(`, `):(0,V.jsx)(`span`,{className:`text-muted`,children:`None`})}),(0,V.jsxs)(X,{label:`Log`,children:[n.archived?(0,V.jsx)(`span`,{className:`text-muted`,children:`No longer kept: ForgeQE keeps the newest logs only`}):(0,V.jsx)(M,{path:`.forgeqe/logs/${n.name}`}),n.truncated&&(0,V.jsx)(`span`,{className:`block text-[13px] text-muted`,children:`Very long: only its start is shown.`})]})]}),n.job&&(0,V.jsxs)(Z,{title:`Job`,children:[(0,V.jsx)(X,{label:`Job`,children:(0,V.jsx)(`a`,{href:f(`jobs`,encodeURIComponent(n.origin.kind===`job`?n.origin.job:n.job.name)),children:n.job.name})}),(0,V.jsx)(X,{label:`Runs`,children:(0,V.jsx)(j,{text:Q(n.job.command),className:`text-sm [&_p]:my-0`})}),(0,V.jsxs)(X,{label:`Schedule`,children:[n.job.schedule,!n.job.enabled&&` (disabled)`,n.job.nextAt&&n.job.enabled?` · next ${G(n.job.nextAt)}`:``]}),n.job.run&&(0,V.jsxs)(X,{label:`This run`,children:[n.job.run.reason===`asked`?`Asked for`:`On schedule`,`, `,n.job.run.status.replace(`_`,` `),n.job.run.exitCode!==void 0&&n.job.run.exitCode!==null?`, exit ${n.job.run.exitCode}`:``]})]}),(0,V.jsx)(Z,{title:`Files worked on (${n.files.length})`,children:n.files.length?n.files.map(e=>(0,V.jsx)(X,{label:e.action===`write`?`Written`:e.action===`edit`?`Edited`:e.action===`delete`?`Deleted`:e.action||`Changed`,children:e.action===`delete`?(0,V.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.path}):(0,V.jsx)(M,{path:e.path})},e.path)):(0,V.jsx)(`p`,{className:`m-0 py-1 text-sm text-muted`,children:`No files changed.`})}),(0,V.jsx)(Z,{title:`Notifications`,children:n.notifications.length?n.notifications.map(e=>(0,V.jsx)(X,{label:e.event.replace(/_/g,` `),children:e.channels.length?e.channels.join(`, `):(0,V.jsx)(`span`,{className:`text-muted`,children:`No channel takes it`})},e.event)):(0,V.jsx)(`p`,{className:`m-0 py-1 text-sm text-muted`,children:n.origin.kind===`terminal`||n.origin.kind===`web`?`None: notify channels go with jobs, suites and the monitor.`:`No notify channels are set up (Settings, Notify).`})})]})]})]})}var $=25;function Ke({runs:t}){let n=Be(t.some(e=>e.status===`running`)),[r,i]=(0,B.useState)(``),[a,s]=(0,B.useState)(`all`),[c,l]=(0,B.useState)(``),[p,m]=(0,B.useState)(``),[g,_]=(0,B.useState)(!1),[v,y]=(0,B.useState)(0);(0,B.useEffect)(()=>y(0),[r,a,c,p,g]);let b=t.filter(Y).length,x=r.toLowerCase().split(/\s+/).filter(Boolean),S=t.filter(e=>(g||!Y(e))&&(!c||e.kind===c)&&(!p||e.origin.kind===p)&&x.every(t=>`${e.title} ${e.command} ${e.error||``}`.toLowerCase().includes(t))),C={all:S.length,running:S.filter(e=>e.status===`running`).length,failed:S.filter(e=>e.status===`failed`).length},w=a===`all`?S:S.filter(e=>e.status===a),T=Math.max(1,Math.ceil(w.length/$)),E=Math.min(v,T-1),D=w.slice(E*$,E*$+$),O=t.filter(e=>e.status!==`running`&&!Y(e)),k=O.filter(e=>e.status===`failed`).length,ee=O.length?O.reduce((e,t)=>e+K(t,n),0)/O.length:NaN,j=t.reduce((e,t)=>e+J(t),0),M=[...new Set(t.map(e=>e.kind))],N=[...new Set(t.map(e=>e.origin.kind))],P={web:`Web chat`,job:`Job`,terminal:`Terminal`};return t.length===0?(0,V.jsx)(`p`,{className:`m-0 rounded-[14px] bg-surface-muted px-5 py-4 text-sm leading-relaxed text-ink-2`,children:`No runs yet. A chat here, a job, or a ForgeQE command in this project adds one.`}):(0,V.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,V.jsxs)(`div`,{className:`flex flex-wrap gap-x-6 gap-y-1 text-[13px] text-muted`,children:[(0,V.jsxs)(`span`,{children:[(0,V.jsx)(`b`,{className:`text-ink tabular-nums`,children:t.length-b}),` runs`]}),t.some(e=>e.status===`running`)&&(0,V.jsxs)(`span`,{children:[(0,V.jsx)(`b`,{className:`text-accent tabular-nums`,children:t.filter(e=>e.status===`running`).length}),` running now`]}),(0,V.jsxs)(`span`,{children:[(0,V.jsx)(`b`,{className:d(`tabular-nums`,k?`text-fail`:`text-ink`),children:k}),` failed`,O.length?` (${Math.round(k/O.length*100)}%)`:``]}),(0,V.jsxs)(`span`,{children:[(0,V.jsx)(`b`,{className:`text-ink tabular-nums`,children:A(j)}),` tokens`]}),(0,V.jsxs)(`span`,{children:[(0,V.jsx)(`b`,{className:`text-ink tabular-nums`,children:q(Math.round(ee))}),` on average`]})]}),(0,V.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,V.jsxs)(`div`,{className:`relative min-w-0 flex-[1_1_240px]`,children:[(0,V.jsx)(oe,{size:16,"aria-hidden":`true`,className:`pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-muted`}),(0,V.jsx)(`label`,{htmlFor:`run-search`,className:`sr-only`,children:`Find a run`}),(0,V.jsx)(o,{id:`run-search`,type:`search`,value:r,onChange:e=>i(e.target.value),placeholder:`Find a run by what was asked`,className:`h-9 pl-9`})]}),[[`all`,`All`],[`running`,`Running`],[`failed`,`Failed`]].map(([e,t])=>(0,V.jsxs)(`button`,{type:`button`,"aria-pressed":a===e,onClick:()=>s(e),className:d(`inline-flex min-h-8 cursor-pointer items-center gap-1 rounded-[8px] border px-3 text-[13px] font-medium`,a===e?`border-accent bg-accent-soft text-ink`:`border-transparent bg-surface-strong text-ink-2 hover:bg-line hover:text-ink`),children:[t,(0,V.jsx)(`span`,{className:d(`tabular-nums`,e===`failed`&&C.failed?`text-fail`:``),children:C[e]})]},e)),M.length>1&&(0,V.jsxs)(u,{"aria-label":`What it did`,value:c,onChange:e=>l(e.target.value),className:`h-8 w-auto py-0 pr-7 pl-3 text-[13px]`,children:[(0,V.jsx)(`option`,{value:``,children:`Any kind`}),M.map(e=>(0,V.jsx)(`option`,{value:e,children:H[e]},e))]}),N.length>1&&(0,V.jsxs)(u,{"aria-label":`Started by`,value:p,onChange:e=>m(e.target.value),className:`h-8 w-auto py-0 pr-7 pl-3 text-[13px]`,children:[(0,V.jsx)(`option`,{value:``,children:`Started anywhere`}),N.map(e=>(0,V.jsx)(`option`,{value:e,children:P[e]||e},e))]})]}),(0,V.jsxs)(`div`,{className:`rounded-[14px] border border-line-soft bg-bg`,children:[(0,V.jsxs)(`div`,{"aria-hidden":`true`,className:`hidden grid-cols-[auto_minmax(0,1fr)_104px_104px_72px_64px_92px] items-center gap-x-4 border-b border-line-soft px-4 py-2 text-[12px] font-semibold text-muted @3xl:grid`,children:[(0,V.jsx)(`span`,{className:`w-4`}),(0,V.jsx)(`span`,{children:`Run`}),(0,V.jsx)(`span`,{children:`Kind`}),(0,V.jsx)(`span`,{children:`Started by`}),(0,V.jsx)(`span`,{className:`text-right`,children:`Took`}),(0,V.jsx)(`span`,{className:`text-right`,children:`Tokens`}),(0,V.jsx)(`span`,{className:`text-right`,children:`When`})]}),(0,V.jsxs)(`ul`,{"aria-label":`Runs`,className:`m-0 list-none p-1.5`,children:[D.length===0&&(0,V.jsx)(`li`,{className:`px-3 py-4 text-sm text-muted`,children:`Nothing matches.`}),D.map((e,t)=>{let r=I(e.startedAt);return(0,V.jsxs)(`li`,{className:`contents`,children:[(t===0||I(D[t-1].startedAt)!==r)&&(0,V.jsx)(`span`,{className:`block px-3 pt-3 pb-1 text-[12px] font-semibold text-muted`,children:r}),(0,V.jsxs)(`a`,{href:f(`runs`,encodeURIComponent(e.name)),className:`grid min-h-12 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-3 rounded-[10px] px-3 py-1.5 text-ink no-underline hover:bg-surface-muted hover:text-ink @3xl:grid-cols-[auto_minmax(0,1fr)_104px_104px_72px_64px_92px] @3xl:gap-x-4`,children:[(0,V.jsx)(He,{status:e.status}),(0,V.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,V.jsx)(`span`,{className:`truncate text-[14px] font-medium`,title:e.title,children:e.title}),e.error?(0,V.jsx)(`span`,{className:`truncate text-[12px] text-fail`,children:e.error}):(0,V.jsx)(`span`,{className:`truncate text-[12px] text-muted @3xl:hidden`,children:[H[e.kind],P[e.origin.kind],q(K(e,n)),`${A(J(e))} tokens`].join(` · `)})]}),(0,V.jsxs)(`span`,{className:`hidden min-w-0 items-center gap-1.5 text-[13px] text-ink-2 @3xl:inline-flex`,children:[(0,V.jsx)(ye,{kind:e.kind}),H[e.kind]]}),(0,V.jsx)(`span`,{className:`hidden text-[13px] text-ink-2 @3xl:block`,children:P[e.origin.kind]||e.origin.kind}),(0,V.jsx)(`span`,{className:`hidden text-right text-[13px] text-muted tabular-nums @3xl:block`,children:q(K(e,n))}),(0,V.jsx)(`span`,{className:`hidden text-right text-[13px] text-muted tabular-nums @3xl:block`,children:A(J(e))}),(0,V.jsx)(`span`,{className:`text-right text-[12.5px] text-muted tabular-nums`,title:G(e.startedAt),children:fe(e.startedAt)})]})]},e.name)})]}),(0,V.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 border-t border-line-soft px-4 py-2.5 text-[13px] text-muted`,children:[(0,V.jsxs)(`span`,{className:`flex-1`,children:[w.length?`${E*$+1}–${Math.min(w.length,E*$+$)} of ${w.length}`:`0 runs`,b>0&&(0,V.jsxs)(V.Fragment,{children:[` · `,(0,V.jsx)(`button`,{type:`button`,onClick:()=>_(!g),className:`cursor-pointer border-0 bg-transparent p-0 text-[13px] text-accent hover:underline`,children:g?`Hide the ${e(b,`empty session`)}`:`${e(b,`empty session`)} hidden`})]})]}),T>1&&(0,V.jsxs)(`nav`,{"aria-label":`Pages of runs`,className:`flex items-center gap-1`,children:[(0,V.jsx)(h,{size:`sm`,variant:`ghost`,disabled:E===0,onClick:()=>y(E-1),"aria-label":`Newer runs`,children:(0,V.jsx)(se,{size:16,"aria-hidden":`true`})}),(0,V.jsxs)(`span`,{className:`px-1 tabular-nums`,children:[`Page `,E+1,` of `,T]}),(0,V.jsx)(h,{size:`sm`,variant:`ghost`,disabled:E>=T-1,onClick:()=>y(E+1),"aria-label":`Older runs`,children:(0,V.jsx)(ue,{size:16,"aria-hidden":`true`})})]})]})]})]})}function qe({sub:e}){let[t,n]=(0,B.useState)(null),[i,a]=(0,B.useState)(``),o=(0,B.useCallback)(()=>{r.list().then(e=>{n(e.runs),a(``)},e=>a(e.message))},[]);(0,B.useEffect)(o,[o]);let s=t?.some(e=>e.status===`running`);(0,B.useEffect)(()=>{if(e)return;let t=setInterval(o,s?3e3:2e4);return()=>clearInterval(t)},[o,s,e]);let c=e?decodeURIComponent(e):``;return(0,V.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[(0,V.jsx)(T,{}),(0,V.jsx)(`main`,{className:d(O,`@container flex-auto gap-4`),children:c?(0,V.jsx)(Ge,{name:c},c):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,V.jsx)(w,{icon:y,size:`lg`}),(0,V.jsx)(`h1`,{className:`m-0 text-[26px] font-semibold tracking-[-0.01em]`,children:`Runs`})]}),(0,V.jsx)(`p`,{className:`m-0 max-w-[70ch] text-sm leading-relaxed text-muted`,children:`Every ForgeQE session in this project: chats here, jobs' runs, and commands typed in a terminal, newest first. Open one for how it went and what it produced.`}),i&&(0,V.jsx)(`p`,{role:`alert`,className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:i}),!t&&!i&&(0,V.jsx)(`p`,{role:`status`,className:`m-0 text-sm text-muted`,children:`Loading…`}),t&&(0,V.jsx)(Ke,{runs:t})]})})]})}export{qe as Runs};
@@ -1,3 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function ee(){}var C={H:null,A:null,T:null,S:null},w=Object.prototype.hasOwnProperty;function T(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function E(e,t){return T(e.type,t,e.props)}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var O=/\/+/g;function k(e,t){return typeof e==`object`&&e&&e.key!=null?te(``+e.key):t.toString(36)}function A(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(ee,ee):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,j(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+k(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(O,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(O,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+k(a,u),c+=j(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+k(a,u++),c+=j(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return j(A(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function N(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var P=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ne={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ne,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!w.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return T(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)w.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return T(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),i=C.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(ee,P)}catch(e){P(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),C.T=t}},e.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},e.use=function(e){return C.H.use(e)},e.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},e.useCallback=function(e,t){return C.H.useCallback(e,t)},e.useContext=function(e){return C.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return C.H.useEffect(e,t)},e.useEffectEvent=function(e){return C.H.useEffectEvent(e)},e.useId=function(){return C.H.useId()},e.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return C.H.useMemo(e,t)},e.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},e.useRef=function(e){return C.H.useRef(e)},e.useState=function(e){return C.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return C.H.useTransition()},e.version=`19.2.7`})),d=o(((e,t)=>{t.exports=u()})),f=l(d(),1),p=`forgeqe-web-token`,m=``;function h(e){return/(?:^#|&)token=([A-Za-z0-9]+)(?:&|$)/.exec(e)?.[1]}function g(){let e=h(location.hash);if(!e)return!1;let t=e!==v();m=e;try{sessionStorage.setItem(p,m)}catch{}return history.replaceState(null,``,`${location.pathname}${location.search}#/`),t}function _(){window.addEventListener(`hashchange`,()=>{g()&&location.reload()})}function v(){if(m)return m;try{return sessionStorage.getItem(p)||``}catch{return``}}var y=`forgeqe-web-signed-out`,b=`ForgeQE web does not accept this page's sign-in: it was started again, with a new token. Open the address it printed last (with its #token=…) in this tab.`,x=class extends Error{status;constructor(e,t){super(e),this.status=t}};async function S(e,t,n){let r;try{r=await fetch(t,{method:e,headers:{Authorization:`Bearer ${v()}`,...n===void 0?{}:{"Content-Type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n)})}catch{throw new x(`ForgeQE web is not running. Start it in your project folder with forgeqe web, then open the address it prints.`,0)}let i=await r.json().catch(()=>({}));if(r.status===401)throw window.dispatchEvent(new Event(y)),new x(b,401);if(!r.ok)throw new x(i.error||`The request failed (${r.status}).`,r.status);return i}var ee={settings:()=>S(`GET`,`/api/settings`),save:(e,t,n)=>S(`PUT`,`/api/settings/${e}`,{value:t,version:n}),saveText:(e,t,n,r)=>S(`PUT`,`/api/settings/${e}`,{text:t,env:n,version:r}),splitEnvironments:()=>S(`PUT`,`/api/settings/split`,{}),saveGrid:(e,t,n)=>S(`PUT`,`/api/settings/grid`,{grid:e,value:t,version:n}),test:(e,t,n,r)=>S(`POST`,`/api/test`,{kind:e,id:t,settings:n,values:r}),saveSecrets:e=>S(`PUT`,`/api/secrets`,{values:e}),saveGuardrails:(e,t)=>S(`PUT`,`/api/settings/guardrails`,{rules:e,version:t})},C={state:()=>S(`GET`,`/api/setup`),machine:()=>S(`GET`,`/api/setup/machine`),folders:e=>S(`GET`,`/api/folders${e?`?path=${encodeURIComponent(e)}`:``}`),newFolder:(e,t)=>S(`POST`,`/api/folders`,{parent:e,name:t}),open:e=>S(`PUT`,`/api/project`,{path:e}),init:()=>S(`POST`,`/api/project/init`),run:()=>S(`POST`,`/api/setup/run`)},w={get:()=>S(`GET`,`/api/fx`)},T={list:()=>S(`GET`,`/api/background`)},E={prompts:()=>S(`GET`,`/api/prompts`),addTeamPrompt:e=>S(`POST`,`/api/prompts/team`,e),saveTeamPrompt:(e,t)=>S(`PUT`,`/api/prompts/team/${encodeURIComponent(e)}`,t),deleteTeamPrompt:e=>S(`DELETE`,`/api/prompts/team/${encodeURIComponent(e)}`),agentPrompt:e=>S(`GET`,`/api/prompts/agent/${encodeURIComponent(e)}`),prompt:e=>S(`GET`,`/api/prompts/${encodeURIComponent(e)}`),savePrompt:(e,t)=>S(`PUT`,`/api/prompts/${encodeURIComponent(e)}`,{text:t}),resetPrompt:e=>S(`DELETE`,`/api/prompts/${encodeURIComponent(e)}`),skills:()=>S(`GET`,`/api/skills`),skill:e=>S(`GET`,`/api/skills/${encodeURIComponent(e)}`),addSkill:e=>S(`POST`,`/api/skills`,e),saveSkill:(e,t)=>S(`PUT`,`/api/skills/${encodeURIComponent(e)}`,t),removeSkill:e=>S(`DELETE`,`/api/skills/${encodeURIComponent(e)}`),registry:()=>S(`GET`,`/api/registry`),logs:()=>S(`GET`,`/api/logs`),log:e=>S(`GET`,`/api/logs/${encodeURIComponent(e)}`),audit:()=>S(`GET`,`/api/audit`),tokenomics:()=>S(`GET`,`/api/tokenomics`)},D={start:(e,t)=>S(`POST`,`/api/chats`,{text:e,...t}),list:()=>S(`GET`,`/api/chats`),events:(e,t,n)=>S(`GET`,`/api/chats/${encodeURIComponent(e)}?after=${t}${n?`&wait=1`:``}`),send:(e,t)=>S(`POST`,`/api/chats/${encodeURIComponent(e)}/messages`,{text:t}),answer:(e,t,n)=>S(`POST`,`/api/chats/${encodeURIComponent(e)}/answer`,{ask:t,choice:n}),proceed:(e,t,n)=>S(`POST`,`/api/chats/${encodeURIComponent(e)}/continue`,{wait:t,ok:n}),stop:e=>S(`POST`,`/api/chats/${encodeURIComponent(e)}/stop`,{}),settings:(e,t)=>S(`POST`,`/api/chats/${encodeURIComponent(e)}/settings`,t),close:e=>S(`DELETE`,`/api/chats/${encodeURIComponent(e)}`)},te={knowledge:()=>S(`GET`,`/api/knowledge`),knowledgeFile:e=>S(`GET`,`/api/knowledge/file?rel=${encodeURIComponent(e)}`),saveKnowledgeFile:(e,t)=>S(`PUT`,`/api/knowledge/file`,{rel:e,text:t}),memory:()=>S(`GET`,`/api/memory`),clearMemory:e=>S(`POST`,`/api/memory/clear`,{...e?{target:e.name,kind:e.kind}:{},confirmed:!0})},O={convert:(e,t)=>S(`POST`,`/api/environments/convert`,{...e,...t?{name:t}:{}}),files:e=>S(`GET`,`/api/environments/files?kind=${e}`)},k={get:()=>S(`GET`,`/api/workspace`)},A={open:e=>S(`POST`,`/api/files/open`,{path:e})},j={list:()=>S(`GET`,`/api/reports`),build:()=>S(`POST`,`/api/reports/project/build`),buildStatus:()=>S(`GET`,`/api/reports/project/build`)},M={list:()=>S(`GET`,`/api/jobs`),detail:e=>S(`GET`,`/api/jobs/${encodeURIComponent(e)}`),log:(e,t)=>S(`GET`,`/api/jobs/${encodeURIComponent(e)}/log?tail=400${t?`&run=${encodeURIComponent(t)}`:``}`),add:e=>S(`POST`,`/api/jobs`,e),act:(e,t)=>S(`POST`,`/api/jobs/${encodeURIComponent(e)}/${t}`),remove:e=>S(`DELETE`,`/api/jobs/${encodeURIComponent(e)}`)},N={list:()=>S(`GET`,`/api/runs`),detail:e=>S(`GET`,`/api/runs/${encodeURIComponent(e)}`),cancel:e=>S(`POST`,`/api/runs/${encodeURIComponent(e)}/cancel`)},P={get:()=>S(`GET`,`/api/record`),start:e=>S(`POST`,`/api/record`,e),command:e=>S(`POST`,`/api/record/command`,e)},ne={list:()=>S(`GET`,`/api/packs`),detail:e=>S(`GET`,`/api/packs/${encodeURIComponent(e)}`),build:e=>S(`POST`,`/api/packs/build`,e),run:(e,t)=>S(`POST`,`/api/packs/${encodeURIComponent(e)}/run`,{on:t}),heal:(e,t)=>S(`POST`,`/api/packs/${encodeURIComponent(e)}/heal`,{tests:t}),stop:()=>S(`POST`,`/api/packs/stop`,{})},re={view:()=>S(`GET`,`/api/apitests`),set:e=>S(`GET`,`/api/apitests/${encodeURIComponent(e)}`),contracts:e=>S(`POST`,`/api/apitests/contracts`,e),run:(e,t)=>S(`POST`,`/api/apitests/${encodeURIComponent(e)}/run`,t),scenarios:(e,t)=>S(`POST`,`/api/apitests/${encodeURIComponent(e)}/scenarios`,t),runScenarios:(e,t)=>S(`POST`,`/api/apitests/${encodeURIComponent(e)}/run-scenarios`,t),stop:()=>S(`POST`,`/api/apitests/stop`,{})};async function ie(e){let t=await fetch(e,{headers:{Authorization:`Bearer ${v()}`}});if(!t.ok||t.headers.get(`content-type`)!==`image/png`)throw new x(`The image could not be loaded.`,t.status);let n=new Blob([await t.arrayBuffer()],{type:`image/png`}),r=await new Promise((e,t)=>{let r=new FileReader;r.onload=()=>e(String(r.result)),r.onerror=()=>t(new x(`The image could not be read.`,0)),r.readAsDataURL(n)});if(!r.startsWith(`data:image/png;base64,`))throw new x(`The image could not be read.`,0);return r}var F={view:()=>S(`GET`,`/api/quality`),run:e=>S(`GET`,`/api/quality/${encodeURIComponent(e)}`),compare:e=>S(`POST`,`/api/quality/${encodeURIComponent(e)}/compare`,{}),approve:(e,t,n)=>S(`POST`,`/api/quality/${encodeURIComponent(e)}/approve`,{pages:t,...n?{reason:n}:{}}),image:(e,t,n)=>ie(`/api/quality/${encodeURIComponent(e)}/image/${t}/${n}`)},I={view:()=>S(`GET`,`/api/data`),impact:e=>S(`GET`,`/api/data/impact?of=${encodeURIComponent(e)}`),stop:()=>S(`POST`,`/api/data/stop`,{}),run:(e,t)=>S(`POST`,`/api/data/${e}`,t)},L={view:()=>S(`GET`,`/api/features`),detail:e=>S(`GET`,`/api/features/${encodeURIComponent(e)}`),scope:(e,t)=>S(`POST`,`/api/features/${encodeURIComponent(e)}/scope`,{to:t})},ae={job:()=>S(`GET`,`/api/refine`),start:(e,t)=>S(`POST`,`/api/refine`,{text:e,key:t}),stop:()=>S(`POST`,`/api/refine/stop`,{})},oe={view:()=>S(`GET`,`/api/about`),generated:()=>S(`GET`,`/api/generated`),run:(e,t={})=>S(`POST`,`/api/about/${e}`,t),stop:()=>S(`POST`,`/api/about/stop`,{})},R=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function se(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:R(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var ce=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},le=e=>{let t=ce(e);return t.charAt(0).toUpperCase()+t.slice(1)},z=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),B={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function ue(e){return e!=null}function de(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??B.width,a=e.size??e.height??B.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?z(...c):z(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??B[`stroke-width`])*Number(e.size??e.width??B.width)/Number(t.size??t.width??B.width):t.strokeWidth??B[`stroke-width`];return[`svg`,{...Object.entries(B).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&ue(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&ue(t.width)&&{[r(`width`)]:t.width},...`height`in t&&ue(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function fe(e,t={}){return de(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var pe=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},me=(0,f.createContext)({}),he=()=>(0,f.useContext)(me),ge=(0,f.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=he()??{},b=!!c||pe(d),[x,S,ee=[]]=fe(u,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:z(y,s),hasA11yProp:b,attributes:d});return(0,f.createElement)(x,{ref:p,...S},[...ee.map(([e,t])=>(0,f.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function V(e,t=[],n=[]){let r=typeof e==`string`?se(e,t,n):e,i=(0,f.forwardRef)(({className:e,...t},n)=>(0,f.createElement)(ge,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=le(r.name)),i}var _e={name:`accessibility`,size:24,node:[[`circle`,{cx:`16`,cy:`4`,r:`1`,key:`1grugj`}],[`path`,{d:`m18 19 1-7-6 1`,key:`r0i19z`}],[`path`,{d:`m5 8 3-3 5.5 3-2.36 3.5`,key:`9ptxx2`}],[`path`,{d:`M4.24 14.5a5 5 0 0 0 6.88 6`,key:`10kmtu`}],[`path`,{d:`M13.76 17.5a5 5 0 0 0-6.88-6`,key:`2qq6rc`}]]};_e.node;var ve=V(_e),ye={name:`alarm-clock`,size:24,node:[[`circle`,{cx:`12`,cy:`13`,r:`8`,key:`3y4lt7`}],[`path`,{d:`M12 9v4l2 2`,key:`1c63tq`}],[`path`,{d:`M5 3 2 6`,key:`18tl5t`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.38 18.7 4 21`,key:`17xu3x`}],[`path`,{d:`M17.64 18.67 20 21`,key:`kv2oe2`}]]};ye.node;var be=V(ye),xe={name:`app-window`,size:24,node:[[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}],[`path`,{d:`M10 4v4`,key:`pp8u80`}],[`path`,{d:`M2 8h20`,key:`d11cs7`}],[`path`,{d:`M6 4v4`,key:`1svtjw`}]]};xe.node;var Se=V(xe),Ce={name:`badge-check`,size:24,node:[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`verified`]};Ce.node;var we=V(Ce),Te={name:`bell-ring`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]};Te.node;var Ee=V(Te),De={name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]};De.node;var Oe=V(De),ke={name:`blocks`,size:24,node:[[`path`,{d:`M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2`,key:`1ah6g2`}],[`rect`,{x:`14`,y:`2`,width:`8`,height:`8`,rx:`1`,key:`88lufb`}]]};ke.node;var Ae=V(ke),je={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};je.node;var Me=V(je),Ne={name:`box`,size:24,node:[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]};Ne.node;var Pe=V(Ne),Fe={name:`brain`,size:24,node:[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4`,key:`5nuw1p`}],[`path`,{d:`M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294`,key:`18ldcf`}],[`path`,{d:`M17.996 5.125a4 4 0 012.526 5.77`,key:`1sdu8q`}],[`path`,{d:`M18 18a4 4 0 002-7.465`,key:`7xqqvr`}],[`path`,{d:`M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517`,key:`t46ysz`}],[`path`,{d:`M6 18a4 4 0 01-2-7.465`,key:`1y2m15`}],[`path`,{d:`M6.004 5.125a4 4 0 00-2.526 5.77`,key:`3cw1ss`}]]};Fe.node;var Ie=V(Fe),Le={name:`bug`,size:24,node:[[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z`,key:`uouzyp`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 21a4 4 0 0 0-3.81-4`,key:`1b0z45`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]};Le.node;var Re=V(Le),ze={name:`calendar-clock`,size:24,node:[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`,key:`7hb8p4`}],[`path`,{d:`M3 9h5.859`,key:`numkqi`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]};ze.node;var Be=V(ze),Ve={name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]};Ve.node;var He=V(Ve),Ue={name:`chart-column`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]],aliases:[`bar-chart-3`]};Ue.node;var We=V(Ue),Ge={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Ge.node;var Ke=V(Ge),qe={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};qe.node;var Je=V(qe),Ye={name:`circle-dot`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]};Ye.node;var Xe=V(Ye),Ze={name:`circle-question-mark`,size:24,node:[[`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`}]],aliases:[`help-circle`,`circle-help`]};Ze.node;var Qe=V(Ze),$e={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};$e.node;var et=V($e),tt={name:`clipboard-check`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`m9 14 2 2 4-4`,key:`df797q`}]]};tt.node;var nt=V(tt),rt={name:`clipboard-list`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]};rt.node;var it=V(rt),at={name:`cloud`,size:24,node:[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]};at.node;var ot=V(at),st={name:`code`,size:24,node:[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]};st.node;var ct=V(st),lt={name:`coins`,size:24,node:[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]};lt.node;var ut=V(lt),dt={name:`columns-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]],aliases:[`panels-left-right`]};dt.node;var ft=V(dt),pt={name:`container`,size:24,node:[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]};pt.node;var mt=V(pt),ht={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]};ht.node;var gt=V(ht),_t={name:`database-zap`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 15 21.84`,key:`14ibmq`}],[`path`,{d:`M21 5V8`,key:`1marbg`}],[`path`,{d:`M21 12L18 17H22L19 22`,key:`zafso`}],[`path`,{d:`M3 12A9 3 0 0 0 14.59 14.87`,key:`1y4wr8`}]]};_t.node;var vt=V(_t),yt={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};yt.node;var bt=V(yt),xt={name:`file-chart-column`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 18v-1`,key:`zg0ygc`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`M16 18v-3`,key:`j5jt4h`}]],aliases:[`file-bar-chart-2`]};xt.node;var St=V(xt),Ct={name:`file-code`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]};Ct.node;var wt=V(Ct),Tt={name:`file-diff`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]};Tt.node;var Et=V(Tt),Dt={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};Dt.node;var Ot=V(Dt),kt={name:`flame`,size:24,node:[[`path`,{d:`M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4`,key:`1slcih`}]]};kt.node;var At=V(kt),jt={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};jt.node;var Mt=V(jt),Nt={name:`folder-cog`,size:24,node:[[`path`,{d:`M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3`,key:`128dxu`}],[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]],aliases:[`folder-cog-2`]};Nt.node;var Pt=V(Nt),Ft={name:`folder-git-2`,size:24,node:[[`path`,{d:`M18 19a5 5 0 0 1-5-5v8`,key:`sz5oeg`}],[`path`,{d:`M9 20H4a2 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.9H20a2 2 0 0 1 2 2v5`,key:`1w6njk`}],[`circle`,{cx:`13`,cy:`12`,r:`2`,key:`1j92g6`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]};Ft.node;var It=V(Ft),Lt={name:`folder-open`,size:24,node:[[`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`}]]};Lt.node;var Rt=V(Lt),zt={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};zt.node;var Bt=V(zt),Vt={name:`gauge`,size:24,node:[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]};Vt.node;var Ht=V(Vt),Ut={name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]};Ut.node;var Wt=V(Ut),Gt={name:`git-pull-request`,size:24,node:[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`line`,{x1:`6`,x2:`6`,y1:`9`,y2:`21`,key:`rroup`}]]};Gt.node;var Kt=V(Gt),qt={name:`globe`,size:24,node:[[`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`}]]};qt.node;var Jt=V(qt),Yt={name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]};Yt.node;var Xt=V(Yt),Zt={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};Zt.node;var Qt=V(Zt),$t={name:`inbox`,size:24,node:[[`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`}]]};$t.node;var en=V($t),tn={name:`laptop`,size:24,node:[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]};tn.node;var nn=V(tn),rn={name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]};rn.node;var an=V(rn),on={name:`life-buoy`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m4.93 4.93 4.24 4.24`,key:`1ymg45`}],[`path`,{d:`m14.83 9.17 4.24-4.24`,key:`1cb5xl`}],[`path`,{d:`m14.83 14.83 4.24 4.24`,key:`q42g0n`}],[`path`,{d:`m9.17 14.83-4.24 4.24`,key:`bqpfvv`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}]]};on.node;var sn=V(on),cn={name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]};cn.node;var ln=V(cn),un={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};un.node;var dn=V(un),fn={name:`list-tree`,size:24,node:[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]};fn.node;var pn=V(fn),mn={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};mn.node;var hn=V(mn),gn={name:`map-pin`,size:24,node:[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]};gn.node;var _n=V(gn),vn={name:`message-square-text`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]};vn.node;var yn=V(vn),bn={name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]};bn.node;var xn=V(bn),Sn={name:`messages-square`,size:24,node:[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]};Sn.node;var Cn=V(Sn),wn={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};wn.node;var Tn=V(wn),En={name:`package-check`,size:24,node:[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`m16 17 2 2 4-4`,key:`uh5qu3`}],[`path`,{d:`M21 11.127V8a2 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.729l7 4a2 2 0 0 0 2 .001l1.32-.753`,key:`kpkbpo`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]};En.node;var Dn=V(En),On={name:`panel-left-close`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]],aliases:[`sidebar-close`]};On.node;var kn=V(On),An={name:`panel-left-open`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]],aliases:[`sidebar-open`]};An.node;var jn=V(An),Mn={name:`panel-right-close`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]};Mn.node;var Nn=V(Mn),Pn={name:`panel-right-open`,size:24,node:[[`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`}]]};Pn.node;var Fn=V(Pn),In={name:`piggy-bank`,size:24,node:[[`path`,{d:`M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z`,key:`1piglc`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M2 8v1a2 2 0 0 0 2 2h1`,key:`1env43`}]]};In.node;var Ln=V(In),Rn={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};Rn.node;var zn=V(Rn),Bn={name:`repeat`,size:24,node:[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}]]};Bn.node;var Vn=V(Bn),Hn={name:`rocket`,size:24,node:[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]};Hn.node;var Un=V(Hn),Wn={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};Wn.node;var Gn=V(Wn),Kn={name:`route`,size:24,node:[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]};Kn.node;var qn=V(Kn),Jn={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};Jn.node;var Yn=V(Jn),Xn={name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]};Xn.node;var Zn=V(Xn),Qn={name:`server`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]};Qn.node;var $n=V(Qn),er={name:`shapes`,size:24,node:[[`path`,{d:`M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z`,key:`1bo67w`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`3.5`,key:`w3z12y`}]]};er.node;var tr=V(er),nr={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};nr.node;var rr=V(nr),ir={name:`shield-check`,size:24,node:[[`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`}]]};ir.node;var ar=V(ir),or={name:`shuffle`,size:24,node:[[`path`,{d:`m18 14 4 4-4 4`,key:`10pe0f`}],[`path`,{d:`m18 2 4 4-4 4`,key:`pucp1d`}],[`path`,{d:`M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22`,key:`1ailkh`}],[`path`,{d:`M2 6h1.972a4 4 0 0 1 3.6 2.2`,key:`km57vx`}],[`path`,{d:`M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45`,key:`os18l9`}]]};or.node;var sr=V(or),cr={name:`smartphone`,size:24,node:[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]};cr.node;var lr=V(cr),ur={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};ur.node;var dr=V(ur),fr={name:`square-pen`,size:24,node:[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]],aliases:[`pen-box`,`edit`,`pen-square`]};fr.node;var pr=V(fr),mr={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};mr.node;var hr=V(mr),gr={name:`table-2`,size:24,node:[[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]};gr.node;var _r=V(gr),vr={name:`tablet-smartphone`,size:24,node:[[`rect`,{width:`10`,height:`14`,x:`3`,y:`8`,rx:`2`,key:`1vrsiq`}],[`path`,{d:`M5 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2.4`,key:`1j4zmg`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}]]};vr.node;var yr=V(vr),br={name:`timer`,size:24,node:[[`line`,{x1:`10`,x2:`14`,y1:`2`,y2:`2`,key:`14vaq8`}],[`line`,{x1:`12`,x2:`15`,y1:`14`,y2:`11`,key:`17fdiu`}],[`circle`,{cx:`12`,cy:`14`,r:`8`,key:`1e1u0o`}]]};br.node;var xr=V(br),Sr={name:`triangle-alert`,size:24,node:[[`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`}]],aliases:[`alert-triangle`]};Sr.node;var Cr=V(Sr),wr={name:`wallet`,size:24,node:[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]};wr.node;var Tr=V(wr),Er={name:`webhook`,size:24,node:[[`path`,{d:`M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2`,key:`q3hayz`}],[`path`,{d:`m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06`,key:`1go1hn`}],[`path`,{d:`m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8`,key:`qlwsc0`}]]};Er.node;var Dr=V(Er),Or={name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]};Or.node;var kr=V(Or),Ar={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Ar.node;var jr=V(Ar);function Mr(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Mr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Nr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Mr(e))&&(r&&(r+=` `),r+=t);return r}var Pr=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Fr=Nr,Ir=(e,t)=>n=>{if(t?.variants==null)return Fr(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Pr(t)||Pr(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Fr(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Lr=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Rr=(e,t)=>({classGroupId:e,validator:t}),zr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Br=`-`,Vr=[],Hr=`arbitrary..`,Ur=e=>{let t=Kr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Gr(e);let n=e.split(Br);return Wr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Lr(i,t):t:i||Vr}return n[e]||Vr}}},Wr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Wr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Br):e.slice(t).join(Br),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Gr=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Hr+r:void 0})(),Kr=e=>{let{theme:t,classGroups:n}=e;return qr(n,t)},qr=(e,t)=>{let n=zr();for(let r in e){let i=e[r];Jr(i,n,r,t)}return n},Jr=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Yr(i,t,n,r)}},Yr=(e,t,n,r)=>{typeof e==`string`?Xr(e,t,n):typeof e==`function`?Zr(e,t,n,r):Qr(e,t,n,r)},Xr=(e,t,n)=>{let r=e===``?t:$r(t,e);r.classGroupId=n},Zr=(e,t,n,r)=>{ei(e)?Jr(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(Rr(n,e)))},Qr=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Jr(o,$r(t,a),n,r)}},$r=(e,t)=>{let n=e,r=t.split(Br),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=zr(),n.nextPart.set(t,i)),n=i}return n},ei=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ti=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ni=`!`,ri=`:`,ii=[],ai=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),oi=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===ri){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(ni)?(c=s.slice(0,-1),l=!0):s.startsWith(ni)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return ai(t,l,c,u)};if(t){let e=t+ri,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ai(ii,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},si=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},ci=e=>({cache:ti(e.cacheSize),parseClassName:oi(e),sortModifiers:si(e),postfixLookupClassGroupIds:li(e),...Ur(e)}),li=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},ui=/\s+/,di=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(ui),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+ni:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},fi=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=pi(n))&&(i&&(i+=` `),i+=r);return i},pi=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=pi(e[r]))&&(n&&(n+=` `),n+=t);return n},mi=(e,...t)=>{let n,r,i,a,o=o=>(n=ci(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=di(e,n);return i(e,a),a};return a=o,(...e)=>a(fi(...e))},hi=[],H=e=>{let t=t=>t[e]||hi;return t.isThemeGetter=!0,t.themeKey=e,t},gi=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_i=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vi=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,yi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bi=/\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$/,xi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,Si=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ci=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wi=e=>vi.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),Ti=e=>!!e&&Number.isInteger(Number(e)),Ei=e=>e.endsWith(`%`)&&U(e.slice(0,-1)),Di=e=>yi.test(e),Oi=()=>!0,ki=e=>bi.test(e)&&!xi.test(e),Ai=()=>!1,ji=e=>Si.test(e),Mi=e=>Ci.test(e),Ni=e=>!W(e)&&!G(e),Pi=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Fi=e=>Xi(e,ea,Ai),W=e=>gi.test(e),Ii=e=>Xi(e,ta,ki),Li=e=>Xi(e,na,U),Ri=e=>Xi(e,ia,Oi),zi=e=>Xi(e,ra,Ai),Bi=e=>Xi(e,Qi,Ai),Vi=e=>Xi(e,$i,Mi),Hi=e=>Xi(e,aa,ji),G=e=>_i.test(e),Ui=e=>Zi(e,ta),Wi=e=>Zi(e,ra),Gi=e=>Zi(e,Qi),Ki=e=>Zi(e,ea),qi=e=>Zi(e,$i),Ji=e=>Zi(e,aa,!0),Yi=e=>Zi(e,ia,!0),Xi=(e,t,n)=>{let r=gi.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Zi=(e,t,n=!1)=>{let r=_i.exec(e);return r?r[1]?t(r[1]):n:!1},Qi=e=>e===`position`||e===`percentage`,$i=e=>e===`image`||e===`url`,ea=e=>e===`length`||e===`size`||e===`bg-size`,ta=e=>e===`length`,na=e=>e===`number`,ra=e=>e===`family-name`,ia=e=>e===`number`||e===`weight`,aa=e=>e===`shadow`,oa=mi(()=>{let e=H(`color`),t=H(`font`),n=H(`text`),r=H(`font-weight`),i=H(`tracking`),a=H(`leading`),o=H(`breakpoint`),s=H(`container`),c=H(`spacing`),l=H(`radius`),u=H(`shadow`),d=H(`inset-shadow`),f=H(`text-shadow`),p=H(`drop-shadow`),m=H(`blur`),h=H(`perspective`),g=H(`aspect`),_=H(`ease`),v=H(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),G,W],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ee=()=>[`auto`,`contain`,`none`],C=()=>[G,W,c],w=()=>[wi,`full`,`auto`,...C()],T=()=>[Ti,`none`,`subgrid`,G,W],E=()=>[`auto`,{span:[`full`,Ti,G,W]},Ti,G,W],D=()=>[Ti,`auto`,G,W],te=()=>[`auto`,`min`,`max`,`fr`,G,W],O=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],k=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],A=()=>[`auto`,...C()],j=()=>[wi,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...C()],M=()=>[s,wi,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...C()],N=()=>[wi,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...C()],P=()=>[e,G,W],ne=()=>[...b(),Gi,Bi,{position:[G,W]}],re=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ie=()=>[`auto`,`cover`,`contain`,Ki,Fi,{size:[G,W]}],F=()=>[Ei,Ui,Ii],I=()=>[``,`none`,`full`,l,G,W],L=()=>[``,U,Ui,Ii],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],R=()=>[U,Ei,Gi,Bi],se=()=>[``,`none`,m,G,W],ce=()=>[`none`,U,G,W],le=()=>[`none`,U,G,W],z=()=>[U,G,W],B=()=>[wi,`full`,...C()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Di],breakpoint:[Di],color:[Oi],container:[Di],"drop-shadow":[Di],ease:[`in`,`out`,`in-out`],font:[Ni],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Di],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Di],shadow:[Di],spacing:[`px`,U],text:[Di],"text-shadow":[Di],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,wi,W,G,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,G,W]}],"container-named":[Pi],columns:[{columns:[U,`auto`,W,G,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-y":[{"overscroll-y":ee()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Ti,`auto`,G,W]}],basis:[{basis:[wi,`full`,`auto`,s,...C()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[U,wi,`auto`,`initial`,`none`,W]}],grow:[{grow:[``,U,G,W]}],shrink:[{shrink:[``,U,G,W]}],order:[{order:[Ti,`first`,`last`,`none`,G,W]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...O(),`normal`]}],"justify-items":[{"justify-items":[...k(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...k()]}],"align-content":[{content:[`normal`,...O()]}],"align-items":[{items:[...k(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...k(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...k(),`baseline`]}],"place-self":[{"place-self":[`auto`,...k()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":C()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":C()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],"inline-size":[{inline:[`auto`,...M()]}],"min-inline-size":[{"min-inline":[`auto`,...M()]}],"max-inline-size":[{"max-inline":[`none`,...M()]}],"block-size":[{block:[`auto`,...N()]}],"min-block-size":[{"min-block":[`auto`,...N()]}],"max-block-size":[{"max-block":[`none`,...N()]}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,`lh`,...j()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...j()]}],"font-size":[{text:[`base`,n,Ui,Ii]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Yi,Ri]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ei,W]}],"font-family":[{font:[Wi,zi,t]}],"font-features":[{"font-features":[W]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,G,W]}],"line-clamp":[{"line-clamp":[U,`none`,G,Li]}],leading:[{leading:[`none`,a,...C()]}],"list-image":[{"list-image":[`none`,G,W]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,G,W]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[U,`from-font`,`auto`,G,Ii]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[U,`auto`,G,W]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:C()}],"tab-size":[{tab:[Ti,G,W]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,G,W]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,G,W]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Ti,G,W],radial:[``,G,W],conic:[``,Ti,G,W]},qi,Vi]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[U,G,W]}],"outline-w":[{outline:[``,U,Ui,Ii]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`inner`,`none`,u,Ji,Hi]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ji,Hi]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[U,Ii]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,Ji,Hi]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[U,G,W]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[U]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[G,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[U]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,G,W]}],filter:[{filter:[``,`none`,G,W]}],blur:[{blur:se()}],brightness:[{brightness:[U,G,W]}],contrast:[{contrast:[U,G,W]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ji,Hi]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,U,G,W]}],"hue-rotate":[{"hue-rotate":[U,G,W]}],invert:[{invert:[``,U,G,W]}],saturate:[{saturate:[U,G,W]}],sepia:[{sepia:[``,U,G,W]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,G,W]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[U,G,W]}],"backdrop-contrast":[{"backdrop-contrast":[U,G,W]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,U,G,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,G,W]}],"backdrop-invert":[{"backdrop-invert":[``,U,G,W]}],"backdrop-opacity":[{"backdrop-opacity":[U,G,W]}],"backdrop-saturate":[{"backdrop-saturate":[U,G,W]}],"backdrop-sepia":[{"backdrop-sepia":[``,U,G,W]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,G,W]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[U,`initial`,G,W]}],ease:[{ease:[`linear`,`initial`,_,G,W]}],delay:[{delay:[U,G,W]}],animate:[{animate:[`none`,v,G,W]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,G,W]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":[`scale-3d`],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[G,W,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:B()}],"translate-x":[{"translate-x":B()}],"translate-y":[{"translate-y":B()}],"translate-z":[{"translate-z":B()}],"translate-none":[`translate-none`],zoom:[{zoom:[Ti,G,W]}],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,G,W]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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`,G,W]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[U,Ui,Ii,Li]}],stroke:[{stroke:[`none`,...P()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function K(...e){return oa(Nr(e))}var sa=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`,ca=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),la=o(((e,t)=>{t.exports=ca()})),q=la(),ua=Ir(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap font-medium no-underline transition-colors disabled:cursor-not-allowed disabled:opacity-50`,{variants:{variant:{outline:`rounded-[8px] border border-transparent bg-surface-strong text-ink hover:bg-line hover:text-ink`,primary:`rounded-[8px] border border-accent bg-accent text-white hover:border-accent-hover hover:bg-accent-hover hover:text-white`,ghost:`rounded-[8px] border-0 bg-transparent text-ink hover:bg-surface-strong`,icon:`rounded-[8px] border-0 bg-transparent text-ink-2 hover:bg-surface-strong hover:text-ink`},size:{default:`min-h-10 px-4 text-sm`,lg:`min-h-11 px-5 text-sm`,sm:`min-h-8 px-3 text-[13px]`,icon:`size-10`}},defaultVariants:{variant:`outline`,size:`default`}});function J({className:e,variant:t,size:n,type:r=`button`,...i}){return(0,q.jsx)(`button`,{type:r,className:K(ua({variant:t,size:n}),e),...i})}var da={idle:[`default`,`blink`],working:[`default`,`gyro`],reasoning:[`default`,`twins`],searching:[`default`,`lighthouse`],background:[`default`,`spiral`],retrying:[`default`,`surge`],compacting:[`default`,`squeeze`,`fuse`],waiting:[`default`],using:[`default`,`tap`,`scroll`,`type`,`zoom`,`snap`,`record`]},Y=Math.PI*2,fa=Math.PI*(3-Math.sqrt(5)),pa=e=>(1-Math.cos(Math.PI*e))/2,ma=e=>{let t=Math.sin(e*127.1)*43758.5453;return t-Math.floor(t)},ha=(e,t)=>(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2,ga=(e,t,n)=>{let r=[],i=[],a=e[t];for(let o=0;o<e.length;o++){if(o===t)continue;let s=ha(a,e[o]),c=r.length;if(c===n){if(s>=i[n-1])continue;c--}for(;c>0&&i[c-1]>s;)r[c]=r[c-1],i[c]=i[c-1],c--;r[c]=o,i[c]=s}return r},_a={idle:6500,"idle-blink":13e3,working:3e3,"working-gyro":3e3,reasoning:6500,"reasoning-twins":6500,searching:13e3,"searching-lighthouse":13e3,background:13e3,"background-spiral":13e3,retrying:13e3,"retrying-surge":13e3,compacting:1e4,"compacting-squeeze":1e4,"compacting-fuse":1e4,waiting:13e3,using:13e3,"using-tap":13e3,"using-scroll":13e3,"using-type":13e3,"using-zoom":13e3,"using-snap":13e3,"using-record":13e3},va=new Map;function ya(e,t,n){let r=va.get(e);return r||va.set(e,r={t:0,last:t}),t>r.last&&(r.t+=Math.min(t-r.last,100)*n,r.last=t),r.t}var ba=e=>1-Math.exp(-4.5*e)*Math.cos(3*Math.PI*e)-e*Math.exp(-4.5);function xa(e,t){let n=3200,r=Math.floor(e/n),i=e-r*n,a=1260*t,o=2200*t,s;if(i<2e3)s=i*t;else if(i<2200){let e=(i-2e3)/200;s=(2e3+200*(e-e*e/2))*t}else if(i<3e3)s=2100*t-a*ba((i-2200)/800);else{let e=(i-3e3)/200;s=2100*t-a+100*e*e*t}return r*(o-a)+s}function Sa(e,t){if(e===`retrying`)return xa(2*t,Y/9e3);if(e===`retrying-surge`){let e=t/3250,n=e-Math.floor(e);return(Math.floor(e)+(1-(1-n)**3))*Y}return e===`using-scroll`?.4:e===`using-snap`?(Math.floor(t/Xa)*Za+Math.min(t%Xa,Za))/_a[e]*Y:t/_a[e]*Y}var Ca=(()=>{let e=30*Math.PI/180,t=10*Math.PI/180;return[-Math.sin(t)*Math.cos(e),Math.cos(t)*Math.cos(e),Math.sin(e)]})(),wa=1.4,Ta=30*Math.PI/180,Ea=Math.PI/2,Da=1800,Oa=.4,ka=.6;function Aa(e){let t=e*2.45+ma(e)*1.5,n=(15+30*ma(e+.5))*Math.PI/180;return[Math.sin(n)*Math.cos(t),Math.sin(n)*Math.sin(t),Math.cos(n)]}function ja(e){let t=Math.floor(e/Da),n=e/Da-t,r=n<Oa?(1-Math.cos(n/Oa*Math.PI))/2:1,i=Aa(t),a=Aa(t+1),o=i.map((e,t)=>e+(a[t]-e)*r),s=Math.hypot(o[0],o[1],o[2]);return o.map(e=>e/s)}var Ma=.45,Na=.5,Pa=600,Fa=e=>Aa(e+57),Ia=(e,t,n)=>{let r=e.map((e,r)=>e+(t[r]-e)*n),i=Math.hypot(r[0],r[1],r[2]);return r.map(e=>e/i)},La=(e,t)=>e<t?(1-(e/t)**2)**2:0,Ra=1400;function za(e){let t=Math.floor(e/Ra),n=e/Ra-t;return{at:Ia(Fa(t),Fa(t+1),n<.35?pa(n/.35):1),click:Fa(n<.5?t:t+1),since:(n<.5?n+.5:n-.5)*Ra}}var Ba=e=>e<60?e/60:Math.max(0,1-(e-60)/240)**2,Va=1,Ha=[[0,0],[0,16],[4,12],[7,18],[9,17],[6,11],[11,11]].map(([e,t])=>[e/18*Va,t/18*Va]);function Ua(e,t,n){let r=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){let[o,s]=e[i],[c,l]=e[a];s>n!=l>n&&t<(c-o)*(n-s)/(l-s)+o&&(r=!r)}return r}var Wa=[-.3,.5],Ga=(e,t)=>[e,t,Math.sqrt(Math.max(0,1-e*e-t*t))],Ka=e=>Ga(Wa[0]+.35*e[0],Wa[1]+.35*e[1]),qa=1800;function Ja(e,t){let n=e%qa/qa,r=n<.3?pa(n/.3):n<.6?1:n<.85?1-pa((n-.6)/.25):0,i=e=>Ga(Wa[0]+.3*e*Math.cos(t),Wa[1]+.3*e*Math.sin(t));return{at:i(r),click:i(1),since:(n<.45?n+.55:n-.45)*qa}}var Ya=2600,Xa=2600,Za=2100;function Qa(e){let t=e%Xa-Za;return t<0?0:Math.exp(-t/220)}function $a(e){let t=e%Xa;return t<120?1.2*(1-pa(t/120)):t<180?0:t<430?1.2*pa((t-180)/250):1.2}var eo=1200,to=e=>Math.abs(1-2*(e%eo/eo));function no(e){let t=e%Ya/Ya;return t<.25?pa(t/.25):t<.5?1:t<.75?1-pa((t-.5)/.25):0}var ro=1500,io=1.1;function ao(e){let t=Math.floor(e/ro),n=Math.min(1,(e/ro-t)/.75);return{by:(t+1-(1-n)**3)*io,pace:(1-n)**2}}var oo={right:0,"up-right":45,up:90,"up-left":135,left:180,"down-left":225,down:270,"down-right":315},so=[90,270,45,180,0,225].map(e=>e*Math.PI/180);function co(e,t){let n=-Math.sin(e),r=Math.cos(e),i=Math.sin(t),a=Math.cos(t),o=1-a;return[a+n*n*o,n*r*o,r*i,n*r*o,a+r*r*o,-n*i,-r*i,n*i,a]}var lo=(e,t)=>e.map((n,r)=>e[r-r%3]*t[r%3]+e[r-r%3+1]*t[r%3+3]+e[r-r%3+2]*t[r%3+6]),uo=[`xxxx xxx xx`,`xxxxx xx xxxx`,`xxx xxxxx`],fo=.09,po=.3,mo=.33,ho=-.5,go=(()=>{let e=0;return uo.flatMap((t,n)=>[...t].map((r,i)=>{let a={row:n,col:i,at:e};return e+=r===` `?200:i===t.length-1?350:70+60*ma(n*31+i),a}))})(),_o=uo.map((e,t)=>go.flatMap((e,n)=>e.row===t?[n]:[])),vo=go[go.length-1].at,yo=vo+1300;function bo(e){let t=e%yo,n=0;for(;n<go.length&&go[n].at<=t;)n++;let r=n?t-go[n-1].at:1/0,i=go[n]??{row:uo.length-1,col:uo[uo.length-1].length},a=r<300?1:+(Math.floor(t/450)%2==0);return{n,since:r,blink:a,caret:[ho+i.col*fo,mo-i.row*po],fade:t<vo+900?1:Math.max(0,1-(t-vo-900)/300)}}var xo=220,So=5,Co=24,wo=16,To={mount:({make:e,pts:t})=>{let n=t.map(()=>e(`circle`)),r=new Uint8Array(t.length);return{dot(e,t,i,a,o){let s=n[e],c=o.toFixed(2);c===`0.00`&&r[e]||(r[e]=+(c===`0.00`),s.setAttribute(`cx`,t.toFixed(2)),s.setAttribute(`cy`,i.toFixed(2)),s.setAttribute(`r`,Math.max(.45,a).toFixed(2)),s.setAttribute(`fill-opacity`,c))}}}};function Eo(e){let t=(e,t)=>[Math.cos(e)*Math.cos(t),Math.sin(e),Math.cos(e)*Math.sin(t)],n=Math.sqrt(4*Math.PI/e),r=.6*n;return Array.from({length:8},(e,i)=>{let a=i?i&-i:8,o=Math.min(85*Math.PI/180,Math.acos(Math.min(1,n*8/(Y*a)))),s=[];for(let e=-o+i*.618%1*r;e<=o;e+=r/Math.sqrt(1+Math.cos(e)**2))s.push(t(e,i/8*Y-e));return s}).flat()}function Do(e,t,n){return n?n.points(t,e):e===`background-spiral`?Eo(t):Array.from({length:t},(e,n)=>{let r=1-2*(n+.5)/t,i=Math.sqrt(1-r*r),a=n*fa;return[i*Math.cos(a),r,i*Math.sin(a)]})}function Oo(e,{state:t,variant:n,size:r=20,speed:i=1,label:a,shape:o,render:s=To,density:c=1,dotSize:l=1,tilt:u=20,direction:d}={}){let f=t===`base`?`idle`:t,p=f&&Object.hasOwn(da,f)?f:`idle`,m=n!=="default"&&da[p].includes(n??``)?`${p}-${n}`:p,h={width:r,height:r,viewBox:`0 0 ${r} ${r}`,fill:`currentColor`};for(let[t,n]of Object.entries(h))e.setAttribute(t,String(n));a?(e.setAttribute(`role`,`img`),e.setAttribute(`aria-label`,a),e.removeAttribute(`aria-hidden`)):(e.setAttribute(`aria-hidden`,`true`),e.removeAttribute(`role`),e.removeAttribute(`aria-label`));let g=m===`background`?1:m===`using`||m===`using-type`?Math.max(4,1e3/r):4,_=Math.max(8,Math.round(r*g*c)),v=typeof o==`function`?{points:o}:o,y=r/2,b=y*.8*(v?.scale??1),x=(r/64)**.6*(.72*Math.sqrt(4/g))*l,S=Do(m,_,v),ee=s.mount({make:t=>e.appendChild(document.createElementNS(`http://www.w3.org/2000/svg`,t)),pts:S,size:r,radius:x}),C=!!s.flat,w=(m===`reasoning`||m===`reasoning-twins`)&&S.length>1,T=m===`compacting`||m===`compacting-fuse`,E=w?S.map((e,t)=>ga(S,t,Co)):[],D=Array.from({length:m===`reasoning-twins`?2:1},()=>[]),te=0,O={k:0,m:[1,0,0,0,1,0,0,0,1]},k=e=>{let t=_a[m],n=Sa(m,e),i=m===`using-scroll`?ao(e):null,a=d&&oo[d],o=null;if(i&&a!==void 0)o=co(a*Math.PI/180+Math.PI,i.by);else if(i){let t=Math.floor(e/ro);for(t<O.k&&(O={k:0,m:[1,0,0,0,1,0,0,0,1]});O.k<t;O.k++)O.m=lo(co(so[O.k%so.length],io),O.m);o=lo(co(so[t%so.length],i.by-t*io),O.m)}let s=m===`working-gyro`?e/5e3*Y:null,c=((C?0:u)+(v?.tip??0)+(s===null?0:10*Math.cos(s)))*Math.PI/180,l=s===null?0:12*Math.sin(s)*Math.PI/180,f=Math.sin(l),p=Math.cos(l),h=Math.sin(n),g=Math.cos(n),_=Math.sin(c),k=Math.cos(c),A=e=>S[e][1]*_+(-S[e][0]*h+S[e][2]*g)*k,j=new Map;if(w){let t=e/xo,n=Math.floor(t),r=t-n;if(!D[0].length){let e=[...S.keys()].reduce((e,t)=>A(t)>A(e)?t:e,0),t=t=>A(t)+ha(S[t],S[e]);D.forEach((n,r)=>n.push(r?[...S.keys()].reduce((e,n)=>t(n)>t(e)?n:e,0):e))}for(te=Math.max(te,n-wo);te<n;te++)D.forEach((e,t)=>{let n=e.slice(-8),r=e[e.length-1],i=-1,a=-1/0,o=m===`reasoning-twins`?D[1-t].at(-1):void 0;E[r].forEach((e,r)=>{let s=o===void 0?0:1.2*Math.min(Math.sqrt(ha(S[e],S[o])),.8),c=A(e)+.35*ma(te*31+r+t*977)+s;!n.includes(e)&&c>a&&(a=c,i=e)}),e.push(i<0?E[r][0]:i),e.length>wo&&e.shift()});let i=(e,t)=>e!==void 0&&j.set(e,Math.max(j.get(e)??0,t));for(let e of D)for(let t=4;t>=0;t--)i(e[e.length-1-t],t===0?pa(Math.min(1,r*2)):1-(t-1+r)/So)}let M=e/2e3*Y+n,N=Y/2e3+Y/t,P=e=>70*Math.PI/180*(1-2*(e%6e3/6e3)),ne=Math.min(1,3*Math.sin(Math.PI*(e%6e3/6e3))),re=m===`searching`?ja(e):null,ie=m===`working-gyro`?.5*Math.sin(e/2600*Y):m===`compacting-squeeze`?Math.sin(e/2600*Y):0,F=null;if(T){let t=e%2800/2800,n=(t-.7)/.3,r=m===`compacting-fuse`?(1-n)**3:n<.45?1-1.25*pa(n/.45):n<.7?-.25*(1-(n-.45)/.25)**2:0;F={at:-1.15+2.3*Math.min(1,t/.7),hold:t<.7?1:r}}let I=null;m===`using-tap`&&(I=za(e));let L=m===`using`;if(L){let t=a===void 0?za(e):null;I=t?{...t,at:Ka(t.at),click:Ka(t.click)}:Ja(e,(a??0)*Math.PI/180)}let ae=L&&I?1-.15*Ba(I.since):1,oe=m===`using-type`?bo(e):null,R=m===`using-zoom`?no(e):null,se=m===`using-snap`?Qa(e):null,ce=m===`idle-blink`?$a(e):null,le=m===`using-record`?to(e):null;S.forEach(([t,a,s],c)=>{let u=n+wa*ie*a,[d,v]=ie?[Math.sin(u),Math.cos(u)]:[h,g],S=-t*d+s*v,T=t*v+s*d,E=a*k-S*_,D=S,te=T*_,O=a*_+S*k;o&&([T,E,O]=[0,3,6].map(e=>o[e]*T+o[e+1]*E+o[e+2]*O));let A=(O+1)/2,z=(.5+1.4*A)*x,B=Math.max(0,(A-.3)/.7);if(re){let e=Math.acos(Math.min(1,(T*re[0]+E*re[1]+O*re[2])/Math.hypot(T,E,O))),t=e<ka?(1-(e/ka)**2)**2:0;B*=1-.55*(1-t),r<=24&&(z*=1+.5*t),t&&(T*=1+.12*t,E*=1+.12*t,T+=(T-re[0])*.35*t,E+=(E-re[1])*.35*t,z*=1+.9*t,B+=(1-B)*t)}if(F){let e=T,t=Math.min(1,Math.max(0,(F.at-e)/.2))*F.hold,n=m===`compacting`?1.5:1;if(T*=1-.2*n*t,E*=1-.2*n*t,z*=1-.3*n*t,m===`compacting-fuse`){B*=1-.5*t;let n=Math.exp(-(((e-F.at)/.08)**2))*Math.max(0,F.hold)*Math.min(1,A/.5);z*=1+.8*n,B+=(1-B)*n}}if(m===`working`){let t=e%1700,n=1.3-2.6*pa(Math.min(1,t/1200)),r=C?E:T*Ca[0]+E*Ca[1]+O*Ca[2],i=t<1200?Math.exp(-(((r-n)/.2)**2)):0;z*=1+.6*i,B+=(1-B)*i;let a=Math.min(1,Math.max(0,(r-n)/.2))*(t<1200?1:1-Math.min(1,1.6*((t-1200)/800)));T*=1-.08*a,E*=1-.08*a,z*=1-.15*a}if(m===`searching-lighthouse`){B*=.5;let t=Math.sin(Ta),n=Math.cos(Ta),r=T*n-E*t,i=-_*(T*t+E*n)+k*O,a=((Math.atan2(r,i)-(e/2500%1*Y-Math.PI)+Math.PI)%Y+Y)%Y-Math.PI,o=(a<0?Math.max(0,1+a/Ea):Math.exp(-((a/.45)**2)))*(.25+.75*Math.min(1,Math.max(0,(A-.4)/.3)));z*=1+.6*o,B+=(1-B)*o}if(w){let e=j.get(c)??0;B*=.5,e&&(z*=1+.8*e,B+=(1-B)*e)}if(m===`waiting`){let n=Math.asin(a/(Math.hypot(t,a,s)||1)),r=Math.atan2(s,t),i=Math.atan2(Math.sin(r-M),Math.cos(r-M)),o=i*Math.cos(n),c=Math.exp(-(((n-P(e+i/N))/.28)**2))*Math.exp(-((o/(i*N>0?.12:1))**2)),l=ne*c**.6;B=B*.5+(1-B*.5)*l,z*=1+1.1*l}if(I){let e=Math.hypot(T,E,O)||1,t=t=>Math.acos(Math.min(1,Math.max(-1,(T*t[0]+E*t[1]+O*t[2])/e)));B*=L?.25:.5;let n=I.since,r=L?0:La(t(I.at),Ma),i=t(I.click),a=Ba(n),o=a*La(i,Na),s=Math.min(1,n/Pa),c=Math.exp(-(((i-(.15+1.3*(1-(1-s)**2)))/.18)**2))*(1-s)**2;if(T*=1-.14*o,E*=1-.14*o,z*=(1-.35*o)*(1+.7*Math.max(c,r*(1-a))),B+=(1-B)*Math.max(r,c),L&&Ua(Ha,(T-I.at[0])/ae,(I.at[1]-E)/ae)){let e=Math.min(1,Math.max(0,(A-.5)/.2));z*=1+.15*e,B+=(1-B)*e}}if(oe){B*=.25;let e=Math.round((mo-E)/po),t=Math.floor((T-ho)/fo),n=_o[e]?.[t],r=0;n!==void 0&&n<oe.n&&uo[e][t]===`x`&&Math.abs(mo-e*po-E)<.085&&(r=.75+(n===oe.n-1?.25*Math.exp(-oe.since/120):0));let[i,a]=oe.caret;Math.abs(E-a)<.1&&(r=Math.max(r,oe.blink*Math.exp(-(((T-i)/.04)**2)))),B+=(1-B)*r*oe.fade*Math.min(1,Math.max(0,(A-.5)/.2))}if(R){let e=R*Math.max(0,O);T*=1+.45*e,E*=1+.45*e,z*=1+.8*e,B*=Math.min(1,Math.max(0,(1.05-Math.hypot(T,E))/.1))}if(i&&(B*=.55+.45*i.pace),se!==null&&(B*=.55,z*=1+.25*se,B+=(1-B)*se),ce!==null){let e=Math.exp(-(((Math.abs(E)-ce)/.06)**2))*+(ce<1.2);B*=Math.min(1,Math.max(0,(ce-Math.abs(E))/.08)),z*=1+.4*e,B+=(1-B)*e*Math.min(1,Math.max(0,(A-.4)/.3))}le!==null&&(T*=.92+.08*le,E*=.92+.08*le,B*=.3+.7*le),l&&([T,E]=[T*p-E*f,T*f+E*p]),ee.dot(c,y+T*b,y-E*b,z,B,D,-te)}),ee.frame?.()},A=`${m}@${i}`;k(ya(A,performance.now(),i));let j=matchMedia(`(prefers-reduced-motion: reduce)`).matches,M=!1,N=0,P=!1,ne=new IntersectionObserver(e=>M=e[e.length-1].isIntersecting);ne.observe(e);function re(e){M&&k(ya(A,e,i)),N=requestAnimationFrame(re)}let ie=()=>{cancelAnimationFrame(N),N=0},F=()=>{N||j||P||(N=requestAnimationFrame(re))};return F(),{pause:ie,play:F,destroy(){P=!0,ie(),ne.disconnect(),e.replaceChildren()}}}function ko({state:e,variant:t,size:n=20,speed:r=1,paused:i=!1,label:a,shape:o,render:s,density:c,dotSize:l,tilt:u,direction:d,className:p}){let m=(0,f.useRef)(null),h=(0,f.useRef)(null);(0,f.useEffect)(()=>(h.current=Oo(m.current,{state:e,variant:t,size:n,speed:r,label:a,shape:o,render:s,density:c,dotSize:l,tilt:u,direction:d})).destroy,[e,t,n,r,a,o,s,c,l,u,d]),(0,f.useEffect)(()=>{i?h.current.pause():h.current.play()},[i,e,t,n,r,a,o,s,c,l,u,d]);let g=a?{role:`img`,"aria-label":a}:{"aria-hidden":!0};return(0,q.jsx)(`svg`,{ref:m,width:n,height:n,viewBox:`0 0 ${n} ${n}`,fill:`currentColor`,className:p,...g})}var Ao={thinking:{state:`reasoning`},searching:{state:`searching`},reading:{state:`searching`,variant:`lighthouse`},working:{state:`working`},writing:{state:`working`,variant:`gyro`},browsing:{state:`using`,variant:`tap`},recording:{state:`using`,variant:`record`},handing:{state:`background`},retrying:{state:`retrying`},compacting:{state:`compacting`},waiting:{state:`waiting`},idle:{state:`idle`}};function jo({state:e=`working`,label:t,px:n=16,className:r}){return(0,q.jsx)(ko,{...Ao[e],size:n,label:t,className:K(`block flex-none text-ink`,r)})}function Mo({icon:e,logo:t,size:n=`md`,className:r}){return(0,q.jsx)(`span`,{"aria-hidden":`true`,className:K(`inline-flex flex-none items-center justify-center rounded-[10px]`,t?`border border-line bg-bg`:`bg-surface-strong text-ink-2`,n===`lg`?`size-10`:`size-9`,r),children:t?(0,q.jsx)(t,{className:n===`lg`?`size-5`:`size-[18px]`}):e?(0,q.jsx)(e,{size:n===`lg`?20:18,strokeWidth:1.8}):null})}function No({checked:e,onChange:t,label:n,id:r,disabled:i}){return(0,q.jsx)(`button`,{type:`button`,role:`switch`,id:r,"aria-checked":e,"aria-label":n,disabled:i,onClick:()=>t(!e),className:K(`relative h-[26px] w-11 flex-none cursor-pointer rounded-full border-0 p-0 transition-colors disabled:cursor-not-allowed disabled:opacity-50`,e?`bg-accent`:`bg-line`),children:(0,q.jsx)(`span`,{"aria-hidden":`true`,className:K(`absolute top-[3px] size-5 rounded-full bg-white shadow-[0_1px_2px_rgba(0,0,0,.25)] transition-[left]`,e?`left-[21px]`:`left-[3px]`)})})}var Po=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{};function Fo(e,t){let n=e;for(let e of t)n=Po(n)[e];return n}var Io=e=>e===void 0||e===``||typeof e==`number`&&Number.isNaN(e);function Lo(e,t,n){let[r,...i]=t;if(r===void 0)return e;let a={...e},o=i.length?Lo(Po(e[r]),i,n):n;return Io(o)||i.length&&Io(n)&&!Object.keys(Po(o)).length?delete a[r]:a[r]=o,a}function Ro(e,t,n){let r={};for(let[i,a]of Object.entries(e))r[i===t?n:i]=a;return r}function zo(e,t){if(!(t in e))return t;for(let n=2;;n++)if(!(`${t}-${n}`in e))return`${t}-${n}`}var Bo=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Vo(){let e=()=>location.hash.replace(/^#\/?/,``).split(`/`).filter(Boolean),[t,n]=(0,f.useState)(e);return(0,f.useEffect)(()=>{let t=()=>n(e());return window.addEventListener(`hashchange`,t),()=>window.removeEventListener(`hashchange`,t)},[]),t}var X=(...e)=>`#/${e.join(`/`)}`;async function Ho(e){let t=window.open(`about:blank`,`_blank`);try{let n=await A.open(e);if(n.kind===`download`){t?.close();let e=document.createElement(`a`);return e.href=n.url,e.download=n.name,e.click(),``}return t?(t.opener=null,t.location.href=n.url,``):`The browser blocked the new tab.`}catch(e){return t?.close(),e.message}}function Uo({open:e,onClose:t,title:n,description:r,children:i,footer:a,wide:o}){let s=(0,f.useRef)(null),c=(0,f.useId)();return(0,f.useEffect)(()=>{let t=s.current;t&&(e&&!t.open&&t.showModal(),!e&&t.open&&t.close())},[e]),(0,q.jsx)(`dialog`,{ref:s,"aria-labelledby":c,onCancel:e=>{e.preventDefault(),t()},onClick:e=>{e.target===s.current&&t()},className:K(`sheet fixed inset-y-0 right-0 left-auto m-0 h-dvh max-h-none w-full border-0 border-l border-line bg-bg p-0 text-ink shadow-menu backdrop:bg-[rgba(17,25,40,0.28)]`,o?`max-w-[760px]`:`max-w-[480px]`),children:e&&(0,q.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-3 border-b border-line-soft px-6 pt-5 pb-4`,children:[(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,q.jsx)(`h2`,{id:c,className:`m-0 text-lg font-semibold`,children:n}),r&&(0,q.jsx)(`p`,{className:`m-0 text-sm leading-relaxed text-muted`,children:r})]}),(0,q.jsx)(J,{variant:`icon`,size:`icon`,"aria-label":`Close`,onClick:t,className:`-mt-1 -mr-2`,children:(0,q.jsx)(jr,{size:20,"aria-hidden":`true`})})]}),(0,q.jsx)(`div`,{className:`flex-1 overflow-y-auto px-6 pb-6`,children:i}),(0,q.jsx)(`div`,{className:`flex flex-wrap justify-end gap-2 border-t border-line-soft px-6 py-4`,children:a})]})})}var Wo=`w-full min-w-0 rounded-[8px] border border-line bg-bg px-3 text-[15px] text-ink placeholder:text-muted hover:border-line-strong focus:border-accent focus:outline-none focus-visible:outline-2 focus-visible:outline-accent`;function Go({className:e,...t}){return(0,q.jsx)(`input`,{className:K(Wo,`min-h-10`,e),...t})}function Ko({className:e,...t}){return(0,q.jsx)(`textarea`,{className:K(Wo,`py-2 leading-relaxed`,e),...t})}function qo({className:e,children:t,...n}){return(0,q.jsx)(`select`,{className:K(Wo,`min-h-10 cursor-pointer appearance-none bg-[length:16px] bg-[right_10px_center] bg-no-repeat pr-9`,e),style:{backgroundImage:Jo},...n,children:t})}var Jo=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")`,Yo=(0,f.createContext)({pending:{},set:()=>{},saved:new Set,vars:{},store:`the credential store`}),Xo=()=>(0,f.useContext)(Yo);function Zo(e){return/[\\/]/.test(e)?`ForgeQE's private credentials file (readable only by you)`:e}var Qo=/^[A-Za-z_][A-Za-z0-9_]*$/;function $o(e,t){return t in e.pending?e.pending[t]===null?`removing`:`pending`:e.saved.has(t)?`saved`:e.vars[t]?`environment`:`missing`}var es={pending:`Not saved yet`,removing:`Removed when you save`,saved:`Saved`,environment:`Set in the environment`,missing:`Not set`},ts=(e,t)=>[`pending`,`saved`,`environment`].includes($o(e,t));function ns({name:e}){let t=Xo();if(!e)return null;if(!Qo.test(e))return(0,q.jsx)(`span`,{className:`text-[13px] text-fail`,children:`Not a variable name`});let n=$o(t,e);return(0,q.jsx)(`span`,{className:K(`text-[13px]`,n===`saved`||n===`environment`?`text-pass`:n===`missing`?`text-muted`:`text-accent`),children:es[n]})}var rs=/user|email|login|client_id|account/i;function is({id:e,name:t,field:n,onRename:r,compact:i}){let a=Xo(),o=(0,f.useId)(),s=e||o,[c,l]=(0,f.useState)(!1),u=$o(a,t),d=typeof a.pending[t]==`string`?a.pending[t]:``,p=rs.test(n)||rs.test(t);return(0,q.jsxs)(`div`,{className:`flex w-full min-w-0 flex-col gap-1.5`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(Go,{id:s,type:p?`text`:`password`,autoComplete:`off`,spellCheck:!1,value:d,disabled:!Qo.test(t),placeholder:u===`saved`?`Saved. Type a new value to replace it`:u===`environment`?`Set in the environment. Type a value to save one`:p?`Type it once`:`Paste it once`,onChange:e=>a.set(t,e.target.value||void 0)}),u===`saved`&&(0,q.jsx)(J,{size:`sm`,onClick:()=>a.set(t,null),"aria-label":`Remove the saved value of ${t}`,children:`Remove`}),u===`removing`&&(0,q.jsx)(J,{size:`sm`,onClick:()=>a.set(t,void 0),children:`Keep`})]}),!i&&(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 text-[13px] text-muted`,children:[(0,q.jsx)(ns,{name:t}),(0,q.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),c&&r?(0,q.jsx)(Go,{"aria-label":`Variable name`,autoFocus:!0,defaultValue:t,spellCheck:!1,onBlur:e=>{let n=e.target.value.trim();n&&Qo.test(n)&&n!==t&&r(n),l(!1)},onKeyDown:e=>e.key===`Enter`&&e.target.blur(),className:`min-h-8 max-w-[260px] font-mono text-[12px]`}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{children:[`Kept as `,(0,q.jsx)(`span`,{className:`font-mono text-[12px]`,children:t})]}),r&&(0,q.jsx)(`button`,{type:`button`,onClick:()=>l(!0),className:`min-h-8 cursor-pointer border-0 bg-transparent p-0 text-[13px] font-medium text-accent hover:text-accent-hover`,children:`Change name`})]})]})]})}function as({name:e}){return(0,q.jsx)(ns,{name:e})}function os({id:e,name:t,field:n,named:r,onName:i}){let a=Xo();return(0,q.jsx)(ss,{onFirstValue:()=>{!r&&t&&i(t)},secrets:a,children:(0,q.jsx)(is,{id:e,name:t,field:n,onRename:i})})}function ss({secrets:e,onFirstValue:t,children:n}){return(0,q.jsx)(Yo.Provider,{value:{...e,set:(n,r)=>{r&&t(),e.set(n,r)}},children:n})}function cs({label:e,help:t,htmlFor:n,children:r,className:i,stacked:a,yamlKey:o}){let s=o?(0,q.jsx)(`code`,{className:`font-mono text-[11.5px] text-muted [overflow-wrap:anywhere]`,children:o}):null;return a?(0,q.jsxs)(`div`,{className:K(`flex flex-col gap-3 py-4`,i),children:[(0,q.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[n?(0,q.jsx)(`label`,{htmlFor:n,className:`text-[14px] leading-snug font-medium text-ink`,children:e}):(0,q.jsx)(`span`,{className:`text-[14px] leading-snug font-medium text-ink`,children:e}),t&&(0,q.jsx)(`span`,{className:`text-[13px] leading-relaxed text-muted`,children:t}),s]}),(0,q.jsx)(`div`,{className:`[&>*]:max-w-none`,children:r})]}):(0,q.jsxs)(`div`,{className:K(`flex min-h-16 flex-wrap items-center gap-x-8 gap-y-3 border-t border-line-soft py-4`,i),children:[(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-1`,children:[n?(0,q.jsx)(`label`,{htmlFor:n,className:`text-[14px] leading-snug font-medium text-ink`,children:e}):(0,q.jsx)(`span`,{className:`text-[14px] leading-snug font-medium text-ink`,children:e}),t&&(0,q.jsx)(`span`,{className:`text-[13px] leading-relaxed text-muted`,children:t}),s]}),r]})}var ls={"Where runs happen":_n,"The browser window":Se,"Limits and checks":xr,"Remote browser, set here":ot,"Where tests go":It,"How hard it tries":Vn,"Help it gets":sn,Reports:St,"Memory and replays":Ie,Suites:dn,"Flaky tests":sr,"Release readiness":Un,"Regression packs in a pipeline":Dn,"Defect analysis":Re,Accessibility:ve,"Performance and visual changes":Ht,"API tests":Dr,"The product":Pe,"Instructions and knowledge":Me,Capabilities:kr,"Project report":We,"Report datasets":_r,"Running in parallel":ft,Driver:gt,Appium:lr,Maestro:yr,"Windows desktop apps":Tn,Runtime:mt,"Tests in a container":Mt,"The coding agents' workspace":ct,"Browser in a container":Jt,"How skills are used":Xt,Budgets:Tr,"Project folder":Bt,"ForgeQE in this folder":Pt,"This computer":nn,"A model":dr,"Models file":wt,"Default model":dr,"Models per area of work":qn,Alerts:Ee,"When to alert":be,Apps:an,"By kind of run":tr,"By run, newest first":Gn,Guides:Me,"Last 30 days":He,"Latest problems":Cr,"Links in alerts":ln,"Model calls":Cn,Plans:pn,"Recent requests":en,"Results and bugs":nt,"Runs that used the most":At,"Send a test":Zn,Services:$n,"Tools used":kr,"What runs":zn,"Check the agent's domain knowledge":we,"Test cases and bugs":it,"Browser grids":ot,Notifications:Oe,"Other tools":Ae},us=e=>typeof e==`string`?e.trim().replace(/^\d+\.\s*/,``):``;function ds({children:e,help:t,first:n,icon:r}){let i=r??ls[us(e)];return(0,q.jsxs)(`div`,{className:K(`mb-3 flex flex-col gap-1.5`,n?`mt-0`:`mt-12`),children:[(0,q.jsxs)(`h3`,{className:`m-0 flex items-center gap-2.5 text-[16px] leading-snug font-semibold text-ink`,children:[i&&(0,q.jsx)(i,{size:18,strokeWidth:1.8,"aria-hidden":`true`,className:`flex-none text-muted`}),e]}),t&&(0,q.jsx)(`p`,{className:K(`m-0 max-w-[64ch] text-[13.5px] leading-relaxed text-muted`,i&&`pl-[28px]`),children:t})]})}var fs=e=>Array.isArray(e)?e.map(String).join(`, `):typeof e==`string`?e:``,ps=e=>e.split(`,`).map(e=>e.trim()).filter(Boolean);function ms({id:e,value:t,onChange:n,placeholder:r,mono:i}){let[a,o]=(0,f.useState)(fs(t)),[s,c]=(0,f.useState)(t);return JSON.stringify(s)!==JSON.stringify(t)&&(c(t),o(fs(t))),(0,q.jsx)(Go,{id:e,value:a,placeholder:r,className:K(i&&`font-mono text-[13px]`),onChange:e=>{o(e.target.value);let t=ps(e.target.value);c(t.length?t:void 0),n(t.length?t:void 0)}})}function hs({def:e,edit:t,base:n,stacked:r}){let i=(0,f.useId)(),a=e.key?[...n,...e.key.split(`.`)]:n,o=Fo(t.value,a),s=e=>t.set(Lo(t.value,a,e)),c=`flex-[1_1_280px] max-w-[420px]`,l=t.file?a.join(`.`):void 0,u;switch(e.type){case`switch`:{let t=o===void 0?!!e.default:o===!0||o===`true`||o===`on`;return(0,q.jsx)(cs,{label:e.label,help:e.help,yamlKey:l,children:(0,q.jsx)(No,{checked:t,onChange:s,label:e.label})})}case`select`:u=(0,q.jsxs)(qo,{id:i,value:String(o===void 0?e.default??``:o),onChange:e=>s(e.target.value!==`false`&&e.target.value),className:`max-w-[260px] flex-[0_1_220px]`,children:[e.default===void 0&&(0,q.jsx)(`option`,{value:``,children:e.emptyLabel||`Not set`}),e.options.map(e=>(0,q.jsx)(`option`,{value:e.value,children:e.label},e.value))]});break;case`number`:u=(0,q.jsx)(Go,{id:i,type:`number`,inputMode:`numeric`,value:o==null?``:String(o),placeholder:e.default===void 0?e.placeholder:String(e.default),onChange:e=>s(e.target.value===``?void 0:Number(e.target.value)),className:`max-w-[160px] flex-[0_1_140px]`});break;case`list`:u=(0,q.jsx)(`div`,{className:c,children:(0,q.jsx)(ms,{id:i,value:o,onChange:s,placeholder:e.placeholder})});break;case`kv`:u=(0,q.jsx)(`div`,{className:c,children:(0,q.jsx)(gs,{id:i,value:o,onChange:s,placeholder:e.placeholder})});break;case`textarea`:u=(0,q.jsx)(Ko,{id:i,rows:3,value:o===void 0?``:String(o),placeholder:e.placeholder,onChange:e=>s(e.target.value),className:c});break;case`var`:{let t=String(o??e.default??e.placeholder??``);return u=(0,q.jsx)(`div`,{className:c,children:(0,q.jsx)(os,{id:i,name:t,field:e.key,named:o!==void 0||e.default!==void 0,onName:e=>s(e)})}),(0,q.jsx)(cs,{label:e.label.replace(/ variable$/,``),help:e.help,htmlFor:i,stacked:r,yamlKey:l,children:u})}default:u=(0,q.jsx)(Go,{id:i,type:e.type===`url`?`url`:`text`,value:o===void 0?``:String(o),placeholder:e.placeholder??(e.default===void 0?void 0:String(e.default)),spellCheck:e.type===`text`,onChange:e=>s(e.target.value),className:K(c,e.type===`path`&&`font-mono text-[13px]`)})}return(0,q.jsx)(cs,{label:e.label,help:e.help,htmlFor:i,stacked:r,yamlKey:l,children:u})}function gs({id:e,value:t,onChange:n,placeholder:r}){let i=e=>Object.entries(e&&typeof e==`object`&&!Array.isArray(e)?e:{}).map(([e,t])=>`${e} = ${typeof t==`object`?JSON.stringify(t):String(t)}`).join(`
2
- `),[a,o]=(0,f.useState)(i(t)),[s,c]=(0,f.useState)(t);return JSON.stringify(s)!==JSON.stringify(t)&&(c(t),o(i(t))),(0,q.jsx)(Ko,{id:e,rows:3,value:a,spellCheck:!1,placeholder:r??`NAME = value`,className:`font-mono text-[13px]`,onChange:e=>{o(e.target.value);let t={};for(let n of e.target.value.split(`
3
- `)){let e=n.indexOf(`=`),r=(e<0?n:n.slice(0,e)).trim();if(!r)continue;let i=e<0?``:n.slice(e+1).trim();t[r]=/^-?\d+(\.\d+)?$/.test(i)?Number(i):i===`true`||i!==`false`&&i}let r=Object.keys(t).length?t:void 0;c(r),n(r)}})}function _s({defs:e,edit:t,base:n,stacked:r}){return(0,q.jsx)(q.Fragment,{children:e.map(e=>(0,q.jsx)(hs,{def:e,edit:t,base:n,stacked:r},e.key))})}function vs({title:e,meta:t,state:n,open:r,onToggle:i,lead:a,actions:o,children:s,expandable:c}){let l=(0,f.useId)();return(0,q.jsxs)(`div`,{className:`border-t border-line-soft`,children:[(0,q.jsxs)(`div`,{className:`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 py-3`,children:[a,c===!1?(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:t})]}):(0,q.jsxs)(`button`,{type:`button`,"aria-expanded":r,"aria-controls":l,onClick:i,className:`flex min-w-0 flex-[1_1_260px] cursor-pointer items-center gap-3 rounded-[10px] border-0 bg-transparent p-0 text-left text-ink`,children:[(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:t})]}),(0,q.jsx)(Je,{size:18,"aria-hidden":`true`,className:K(`flex-none text-muted transition-transform`,r&&`rotate-180`)})]}),n,o]}),r&&c!==!1&&(0,q.jsx)(`div`,{id:l,className:`fade-in mb-4 rounded-[14px] bg-surface-muted px-4 pb-2 sm:px-5 [&>*:first-child]:border-t-0`,children:s})]})}function ys(e){let[t,n]=(0,f.useState)(null),[r,i]=(0,f.useState)(``),a=(0,f.useCallback)(()=>{i(``),e().then(n,e=>i(e.message))},[e]);return(0,f.useEffect)(a,[a]),{data:t,error:r,reload:a}}function bs({error:e,reload:t}){return e?(0,q.jsxs)(`div`,{role:`alert`,className:`flex flex-col items-start gap-3 rounded-[14px] border border-line p-5`,children:[(0,q.jsx)(`p`,{className:`m-0 text-sm leading-relaxed text-ink-2`,children:e}),(0,q.jsx)(J,{onClick:t,children:`Try again`})]}):(0,q.jsx)(`p`,{role:`status`,className:`m-0 py-3 text-sm text-muted`,children:`Loading…`})}function xs({children:e}){return(0,q.jsx)(`p`,{className:`m-0 rounded-[14px] bg-surface-muted px-5 py-4 text-sm leading-relaxed text-ink-2`,children:e})}function Z(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}var Ss=null;function Cs(e){Ss=e}function Q(e,t){if(!t)return`—`;let n=Ss?.to,r=Ss?.perEur?.[t],i=n?Ss?.perEur?.[n]:void 0,[a,o]=n&&n!==t&&r&&i?[e/r*i,n]:[e,t];try{return new Intl.NumberFormat(void 0,{style:`currency`,currency:o,maximumFractionDigits:a<1?3:2}).format(a)}catch{return`${a.toFixed(2)} ${o}`}}function ws(e){if(!Ss?.perEur||!e||Ss.to===e||!Ss.perEur[e])return``;let t=Q(1,e);return`Shown in ${Ss.to}, converted from ${e} at the European Central Bank's rate of ${Ss.date}: ${new Intl.NumberFormat(void 0,{style:`currency`,currency:e}).format(1)} = ${t}.`}var Ts=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString(void 0,{dateStyle:`medium`,timeStyle:`short`})},Es=e=>e>=1048576?`${(e/1048576).toFixed(1)} MB`:e>=1024?`${Math.round(e/1024)} KB`:`${e} bytes`;function $({label:e,value:t,note:n,icon:r}){return(0,q.jsxs)(`div`,{className:`flex min-w-[112px] flex-[1_1_112px] flex-col gap-1 rounded-[14px] border border-line-soft px-4 py-3`,children:[(0,q.jsxs)(`span`,{className:`flex items-center gap-1.5 text-[13px] text-muted`,children:[r&&(0,q.jsx)(r,{size:14,"aria-hidden":`true`,className:`flex-none`}),e]}),(0,q.jsx)(`span`,{className:`text-[28px] leading-tight font-semibold tracking-[-0.02em]`,children:t}),n&&(0,q.jsx)(`span`,{className:`text-[13px] text-muted`,children:n})]})}function Ds({head:e,children:t,label:n}){return(0,q.jsx)(`div`,{className:`overflow-x-auto rounded-[12px] border border-line-soft`,children:(0,q.jsxs)(`table`,{"aria-label":n,className:`w-full border-collapse text-sm`,children:[(0,q.jsx)(`thead`,{children:(0,q.jsx)(`tr`,{className:`bg-surface-muted text-left text-[13px] text-muted`,children:e.map((e,t)=>(0,q.jsx)(`th`,{scope:`col`,className:K(`px-3 py-2 font-medium whitespace-nowrap`,t>0&&`text-right`),children:e},e))})}),(0,q.jsx)(`tbody`,{children:t})]})})}function Os({cells:e}){return(0,q.jsx)(`tr`,{className:`border-t border-line-soft`,children:e.map((e,t)=>(0,q.jsx)(`td`,{className:K(`px-3 py-2 align-top`,t>0?`text-right whitespace-nowrap tabular-nums`:`min-w-[200px]`),children:e},t))})}var ks={title:`How skills are used`,base:[`skills`],fields:[{key:`enabled`,label:`Use skills`,type:`switch`,default:!0},{key:`external`,label:`Also read Claude and agent skills`,help:`~/.claude/skills, ~/.agents/skills, and the repository's own.`,type:`switch`,default:!1},{key:`dirs`,label:`More skill folders`,help:`Comma separated. They win over the others.`,type:`list`,placeholder:`../shared-skills`},{key:`browser_max_chars`,label:`Skill text per browser run`,help:`Characters.`,type:`number`,default:6e3}]};function As({edit:e}){let{data:t,error:n,reload:r}=ys(E.registry);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(_s,{defs:[{key:`registry.mode`,label:`Rerun passed runs without the agent`,help:`On: a rerun of a passed run replays it with no model when its checks hold. Shadow only records what it would have done.`,type:`select`,default:`on`,options:[{value:`on`,label:`On`},{value:`shadow`,label:`Shadow`},{value:`off`,label:`Off`}]}],edit:e,base:[]}),t?t.exists?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-3`,children:[(0,q.jsx)($,{icon:it,label:`Recorded plans`,value:String(t.plans.length)}),(0,q.jsx)($,{icon:en,label:`Requests`,value:String(t.total)}),(0,q.jsx)($,{icon:Vn,label:`Replayed without the agent`,value:String(t.replayed)}),(0,q.jsx)($,{icon:Ln,label:`Input tokens not spent`,value:Z(t.tokensSaved),note:`Against the run that recorded each plan`})]}),(0,q.jsx)(ds,{children:`Plans`}),t.plans.length===0?(0,q.jsx)(xs,{children:`No plans recorded yet.`}):(0,q.jsx)(Ds,{label:`Recorded plans`,head:[`Goal`,`Passed`,`Failed`,`Tokens first run`,`Last used`],children:t.plans.map(e=>(0,q.jsx)(Os,{cells:[(0,q.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`line-clamp-2`,children:e.goal}),e.stale&&(0,q.jsx)(`span`,{className:`text-[13px] text-warn`,children:`Out of date: the next run takes the agent's path`})]}),e.successes,e.failures,e.firstTokens?Z(e.firstTokens):`—`,Ts(e.lastAt)]},e.id))}),(0,q.jsx)(ds,{children:`Recent requests`}),t.requests.length===0?(0,q.jsx)(xs,{children:`No requests logged yet.`}):(0,q.jsx)(Ds,{label:`Recent requests`,head:[`Request`,`Decision`,`Outcome`,`Tokens`,`When`],children:t.requests.map(e=>(0,q.jsx)(Os,{cells:[(0,q.jsx)(`span`,{className:`line-clamp-2`,children:e.request||e.planGoal||e.id}),e.decision===`tier0`?`Replayed`:e.decision===`no match`?`Agent: no plan yet`:`Agent: ${e.decision}`,e.outcome||`—`,Z(e.tokens),Ts(e.startedAt)]},e.id))})]}):(0,q.jsxs)(xs,{children:[`No registry yet. ForgeQE starts one the first time a run passes; it is kept in `,t.file,`.`]}):(0,q.jsx)(bs,{error:n,reload:r})]})}function js(){let{data:e,error:t,reload:n}=ys(E.logs),[r,i]=(0,f.useState)(null),[a,o]=(0,f.useState)(``);return e?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Kept in `,(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.dir}),`. Secrets are replaced with their names before a log is shown.`]}),a&&(0,q.jsx)(`p`,{role:`alert`,className:`mt-0 mb-3 text-sm text-fail`,children:a}),e.logs.length===0?(0,q.jsx)(xs,{children:`No session logs yet. ForgeQE writes one for each chat, run and suite.`}):e.logs.map(e=>(0,q.jsxs)(`div`,{className:`flex min-h-[60px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-2`,children:[(0,q.jsx)(Mo,{icon:Yn}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-mono text-[13px] break-all`,children:e.name}),(0,q.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[Ts(e.modified),`, `,Es(e.size)]})]}),(0,q.jsx)(J,{size:`sm`,"aria-label":`Open ${e.name}`,onClick:()=>{o(``),E.log(e.name).then(i,e=>o(e.message))},children:`Open`})]},e.name)),(0,q.jsx)(Uo,{wide:!0,open:!!r,onClose:()=>i(null),title:r?.name||``,description:r?.truncated?`The end of the log; the start is cut to keep it quick to open.`:void 0,footer:(0,q.jsx)(J,{onClick:()=>i(null),children:`Close`}),children:r&&(0,q.jsx)(`pre`,{className:`m-0 mt-4 font-mono text-[12px] leading-relaxed whitespace-pre-wrap break-all`,children:r.text})})]}):(0,q.jsx)(bs,{error:t,reload:n})}var Ms={error:`Error`,tool:`Tool call failed`,run:`Run failed`,engine:`Browser engine stopped`,agent:`Agent error`,model:`Model call failed`},Ns={chat:`Chat`,start:`Shell`,run:`Run`,suite:`Suite`,code:`Write tests`,heal:`Heal`,monitor:`Monitor`,mcp:`MCP`,explore:`Explore`};function Ps(){let[e,t]=(0,f.useState)(null),[n,r]=(0,f.useState)(``);return{show:e=>{r(``),E.log(e).then(t,e=>r(e.message))},error:n,sheet:(0,q.jsx)(Uo,{wide:!0,open:!!e,onClose:()=>t(null),title:e?.name||``,description:e?.truncated?`The end of the log; the start is cut to keep it quick to open.`:void 0,footer:(0,q.jsx)(J,{onClick:()=>t(null),children:`Close`}),children:e&&(0,q.jsx)(`pre`,{className:`m-0 mt-4 font-mono text-[12px] leading-relaxed break-all whitespace-pre-wrap`,children:e.text})})}}function Fs({entries:e}){let[t,n]=(0,f.useState)(-1);return e.length?(0,q.jsx)(q.Fragment,{children:e.map((e,r)=>(0,q.jsx)(vs,{lead:(0,q.jsx)(Mo,{icon:Gn}),title:`${e.action}: ${e.file}`,meta:`${Ts(e.at)}, ${e.user} on ${e.machine}, ${e.changes.length} change${e.changes.length===1?``:`s`}`,open:t===r,onToggle:()=>n(t===r?-1:r),children:(0,q.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0 py-3`,children:e.changes.map((e,t)=>(0,q.jsxs)(`li`,{className:`flex flex-wrap items-baseline gap-x-2 gap-y-0.5 text-sm`,children:[(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.key}),(0,q.jsx)(`span`,{className:`text-muted`,children:e.before===void 0?(0,q.jsxs)(q.Fragment,{children:[`added `,(0,q.jsx)(`span`,{className:`text-ink`,children:e.after})]}):e.after===void 0?(0,q.jsxs)(q.Fragment,{children:[`removed `,(0,q.jsx)(`span`,{className:`text-ink line-through`,children:e.before})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{className:`text-ink line-through`,children:e.before}),` → `,(0,q.jsx)(`span`,{className:`text-ink`,children:e.after})]})})]},t))})},r))}):(0,q.jsx)(xs,{children:`No changes made in Settings yet.`})}function Is({tabs:e,current:t,onPick:n,label:r}){return(0,q.jsx)(`div`,{role:`tablist`,"aria-label":r,className:`mb-5 flex flex-wrap gap-x-5 border-b border-line-soft`,children:e.map((r,i)=>(0,q.jsx)(`button`,{id:`tab-${r.id}`,type:`button`,role:`tab`,"aria-selected":t===r.id,"aria-controls":`panel-${r.id}`,tabIndex:t===r.id?0:-1,onClick:()=>n(r.id),onKeyDown:t=>{let r=t.key===`ArrowRight`?e[(i+1)%e.length]:t.key===`ArrowLeft`?e[(i-1+e.length)%e.length]:void 0;r&&(n(r.id),document.getElementById(`tab-${r.id}`)?.focus())},className:K(`-mb-px min-h-11 cursor-pointer border-0 border-b-2 bg-transparent px-0.5 text-sm font-medium`,t===r.id?`border-ink text-ink`:`border-transparent text-muted hover:text-ink`),children:r.label},r.id))})}function Ls(){let{data:e,error:t,reload:n}=ys(E.audit),[r,i]=(0,f.useState)(`summary`),a=Ps();if(!e)return(0,q.jsx)(bs,{error:t,reload:n});let o=e.summary,s=o.totals,c=e=>e?`${e} failed`:`None failed`;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:`The last 30 days, from the session logs on this machine and its usage ledger. Model calls count every project on this machine.`}),(0,q.jsx)(Is,{label:`Audit`,current:r,onPick:i,tabs:[{id:`summary`,label:`Summary`},{id:`problems`,label:`Problems (${o.problems.length})`},{id:`sessions`,label:`Sessions (${o.sessions.length})`},{id:`changes`,label:`Settings changes (${e.entries.length})`}]}),a.error&&(0,q.jsx)(`p`,{role:`alert`,className:`mt-0 mb-3 text-sm text-fail`,children:a.error}),(0,q.jsxs)(`div`,{id:`panel-${r}`,role:`tabpanel`,"aria-labelledby":`tab-${r}`,children:[r===`summary`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,q.jsx)($,{icon:Cn,label:`Sessions`,value:String(s.sessions),note:s.replays?`${s.replays} request${s.replays===1?``:`s`} replayed without the agent`:void 0}),(0,q.jsx)($,{icon:kr,label:`Tool calls`,value:String(s.toolCalls),note:c(s.toolErrors)}),(0,q.jsx)($,{icon:zn,label:`Runs`,value:String(s.runs),note:c(s.runsFailed)}),(0,q.jsx)($,{icon:dr,label:`Model calls`,value:String(s.modelCalls),note:c(s.modelErrors)}),(0,q.jsx)($,{icon:Cr,label:`Errors`,value:String(s.errors),note:s.escalations?`${s.escalations} switch${s.escalations===1?``:`es`} to a stronger model`:void 0})]}),o.problems.length>0&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(ds,{children:`Latest problems`}),(0,q.jsx)(Rs,{problems:o.problems.slice(0,5),onLog:a.show}),o.problems.length>5&&(0,q.jsxs)(`button`,{type:`button`,onClick:()=>i(`problems`),className:`mt-3 min-h-10 cursor-pointer border-0 bg-transparent p-0 text-sm font-medium text-accent hover:text-accent-hover`,children:[`All `,o.problems.length,` problems`]})]}),(0,q.jsx)(ds,{children:`Tools used`}),o.tools.length===0?(0,q.jsx)(xs,{children:`No tool calls logged in the last 30 days.`}):(0,q.jsx)(Ds,{label:`Tools used`,head:[`Tool`,`Calls`,`Failed`,`Average time`],children:o.tools.map(e=>(0,q.jsx)(Os,{cells:[(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.name}),e.calls,e.errors?(0,q.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,e.calls?`${(e.ms/e.calls/1e3).toFixed(1)} s`:`—`]},e.name))}),(0,q.jsx)(ds,{children:`Model calls`}),o.models.length===0?(0,q.jsx)(xs,{children:`No model calls in the usage ledger in the last 30 days.`}):(0,q.jsx)(Ds,{label:`Model calls`,head:[`Model`,`Calls`,`Failed`,`Tokens`],children:o.models.map(e=>(0,q.jsx)(Os,{cells:[e.model,e.calls,e.errors?(0,q.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,Z(e.tokens)]},e.model))})]}),r===`problems`&&(o.problems.length?(0,q.jsx)(Rs,{problems:o.problems,onLog:a.show}):(0,q.jsx)(xs,{children:`Nothing failed in the last 30 days.`})),r===`sessions`&&(o.sessions.length?(0,q.jsx)(Ds,{label:`Sessions`,head:[`Session`,`Tool calls`,`Runs`,`Errors`,`Tokens`,``],children:o.sessions.map(e=>(0,q.jsx)(Os,{cells:[(0,q.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:Ns[e.command]||e.command}),(0,q.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[Ts(e.started),e.model?`, ${e.model}`:``]})]}),e.toolErrors?`${e.tools} (${e.toolErrors} failed)`:e.tools,e.runsFailed?`${e.runs} (${e.runsFailed} failed)`:e.runs,e.errors?(0,q.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,Z(e.tokens),(0,q.jsx)(J,{size:`sm`,"aria-label":`Open the log of the ${Ns[e.command]||e.command} session at ${Ts(e.started)}`,onClick:()=>a.show(e.log),children:`Log`})]},e.log))}):(0,q.jsx)(xs,{children:`No sessions logged in the last 30 days.`})),r===`changes`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Every change made in Settings, kept in `,(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.file}),`. Changes made to the files by hand are not here.`]}),(0,q.jsx)(Fs,{entries:e.entries})]})]}),a.sheet]})}function Rs({problems:e,onLog:t}){return(0,q.jsx)(q.Fragment,{children:e.map((e,n)=>(0,q.jsxs)(`div`,{className:`flex min-h-[64px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-3`,children:[(0,q.jsx)(Mo,{icon:e.kind===`run`||e.kind===`tool`?et:Cr,className:`bg-fail-soft text-fail`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:Ms[e.kind]}),(0,q.jsx)(`span`,{className:`text-sm break-words text-ink-2`,children:e.text}),(0,q.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[Ts(e.at),`, `,Ns[e.command]||e.command]})]}),e.log&&(0,q.jsx)(J,{size:`sm`,"aria-label":`Open the log for: ${e.text.slice(0,60)}`,onClick:()=>t(e.log),children:`Log`})]},n))})}var zs={title:`Budgets`,help:`In the model's price currency. They only warn, at 80, 90 and 100 percent, and never stop a run. Day and month count every ForgeQE process on this machine.`,base:[`budget`],fields:[{key:`run`,label:`Per browser run`,type:`number`},{key:`day`,label:`Per day`,type:`number`},{key:`month`,label:`Per month`,type:`number`},{key:`currency`,label:`Currency`,type:`text`,placeholder:`USD`}]},Bs={suite:`Suites`,monitor:`Monitor rounds`,run:`Browser runs`,explore:`Exploratory`,api:`API tests`,desktop:`Desktop runs`,mobile:`Mobile runs`};function Vs({days:e,currency:t}){let[n,r]=(0,f.useState)(-1),i=Math.max(1,...e.map(e=>e.input+e.output)),a=e.reduce((e,t)=>e+t.input+t.output,0),o=e.filter(e=>e.runs>0).length,s=e.reduce((e,t)=>t.input+t.output>e.input+e.output?t:e,e[0]),c=n>=0?e[n]:e[e.length-1],l=e=>new Date(`${e}T12:00:00Z`).toLocaleDateString(void 0,{month:`short`,day:`numeric`});return(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsxs)(`p`,{"aria-live":`polite`,className:`m-0 text-sm text-ink-2`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:l(c.day)}),`: `,Z(c.input+c.output),` tokens, `,c.runs,` run`,c.runs===1?``:`s`,t?`, ${Q(c.amount,t)}`:``]}),(0,q.jsx)(`div`,{role:`img`,"aria-label":`Tokens a day for the last 30 days: ${Z(a)} in all, on ${o} days with runs; the busiest was ${l(s.day)} with ${Z(s.input+s.output)}.`,className:`flex h-[160px] items-end gap-[2px] border-b border-line`,onMouseLeave:()=>r(-1),children:e.map((t,a)=>{let o=t.input+t.output;return(0,q.jsx)(`div`,{className:`flex h-full flex-1 cursor-default items-end`,onMouseEnter:()=>r(a),children:(0,q.jsx)(`div`,{className:K(`w-full rounded-t-[4px] transition-[height]`,a===e.length-1||a===n?`bg-accent`:`bg-[#dbe1fe]`),style:{height:o?`${Math.max(2,o/i*100)}%`:`0`}})},t.day)})}),(0,q.jsxs)(`div`,{"aria-hidden":`true`,className:`flex justify-between text-[12px] text-muted`,children:[(0,q.jsx)(`span`,{children:l(e[0].day)}),(0,q.jsx)(`span`,{children:l(e[e.length-1].day)})]})]})}function Hs({rows:e,currency:t,label:n}){if(!e.length)return(0,q.jsx)(xs,{children:`Nothing yet.`});let r=Math.max(1,...e.map(e=>e.sum.input+e.sum.output));return(0,q.jsx)(`ul`,{"aria-label":n,className:`m-0 flex list-none flex-col gap-3 p-0`,children:e.map(e=>{let n=e.sum.input+e.sum.output;return(0,q.jsxs)(`li`,{className:`flex flex-col gap-1`,children:[(0,q.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3 text-sm`,children:[(0,q.jsx)(`span`,{className:`min-w-0 truncate font-medium`,children:e.name}),(0,q.jsxs)(`span`,{className:`whitespace-nowrap text-ink-2 tabular-nums`,children:[Z(n),` tokens`,t&&e.sum.amount?`, ${Q(e.sum.amount,t)}`:``]})]}),(0,q.jsx)(`div`,{"aria-hidden":`true`,className:`h-2 rounded-full bg-surface-strong`,children:(0,q.jsx)(`div`,{className:`h-2 rounded-full bg-accent`,style:{width:`${Math.max(1,n/r*100)}%`}})})]},e.name)})})}function Us({label:e,spent:t,limit:n,currency:r}){let i=t/n*100,a=i>=100?`fail`:i>=80?`warn`:`ok`;return(0,q.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,q.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3 text-sm`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:e}),(0,q.jsxs)(`span`,{className:K(`tabular-nums`,a===`fail`?`text-fail`:a===`warn`?`text-warn`:`text-ink-2`),children:[Q(t,r),` of `,Q(n,r),a===`fail`?`, over budget`:a===`warn`?`, ${Math.round(i)} percent used`:``]})]}),(0,q.jsx)(`div`,{role:`img`,"aria-label":`${e}: ${Q(t,r)} of ${Q(n,r)}, ${Math.round(i)} percent`,className:`h-2 rounded-full bg-surface-strong`,children:(0,q.jsx)(`div`,{className:K(`h-2 rounded-full`,a===`fail`?`bg-fail`:a===`warn`?`bg-warn`:`bg-accent`),style:{width:`${Math.min(100,Math.max(1,i))}%`}})})]})}function Ws({edit:e}){let{data:t,error:n,reload:r}=ys(E.tokenomics),i=(0,q.jsx)(_s,{defs:zs.fields,edit:e,base:zs.base});if(!t)return(0,q.jsx)(bs,{error:n,reload:r});let a=t,o=a.currency,s=a.totals.input+a.totals.output,c=a.budget,l=c?.currency||a.spent?.currency||o;return(0,q.jsxs)(q.Fragment,{children:[a.totals.runs===0?(0,q.jsx)(xs,{children:`No reports with token counts yet. Every run and suite ForgeQE reports on is counted here.`}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`From `,a.totals.runs,` run`,a.totals.runs===1?``:`s`,` in this project's reports`,a.from?`, ${a.from} to ${a.to}`:``,`. Models and agents come from the `,a.totals.withCalls,` run`,a.totals.withCalls===1?``:`s`,` that kept their model calls.`]}),(0,q.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,q.jsx)($,{icon:ut,label:`Tokens`,value:Z(s),note:`${Z(a.totals.input)} in, ${Z(a.totals.output)} out`}),(0,q.jsx)($,{icon:Tr,label:`Cost`,value:Q(a.totals.amount,o),note:a.totals.unpriced?`${a.totals.unpriced} run${a.totals.unpriced===1?``:`s`} had no price`:o?`At the models' prices`:`No prices known`}),(0,q.jsx)($,{icon:Ht,label:`Per run`,value:Z(Math.round(s/a.totals.runs)),note:o?Q(a.totals.amount/a.totals.runs,o):void 0}),(0,q.jsx)($,{icon:vt,label:`Cached input`,value:a.totals.input?`${Math.round(a.totals.cached/a.totals.input*100)}%`:`—`,note:`Of the input tokens`})]}),ws(a.currency)&&(0,q.jsx)(`p`,{className:`mt-3 mb-0 text-[13px] text-muted`,children:ws(a.currency)}),a.otherCurrency>0&&(0,q.jsxs)(`p`,{className:`mt-3 mb-0 text-[13px] text-muted`,children:[a.otherCurrency,` run`,a.otherCurrency===1?` was`:`s were`,` priced in another currency and left out of the cost.`]}),(0,q.jsx)(ds,{children:`Last 30 days`}),(0,q.jsx)(Vs,{days:a.days,currency:o}),(0,q.jsxs)(`div`,{className:`mt-8 flex flex-wrap gap-x-10 gap-y-8`,children:[(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-3`,children:[(0,q.jsx)(`h3`,{className:`m-0 text-base font-semibold`,children:`By model`}),(0,q.jsx)(Hs,{label:`Tokens by model`,rows:a.byModel.map(e=>({name:e.model,sum:e})),currency:o})]}),(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-3`,children:[(0,q.jsx)(`h3`,{className:`m-0 text-base font-semibold`,children:`By agent`}),(0,q.jsx)(Hs,{label:`Tokens by agent`,rows:a.byAgent.map(e=>({name:e.agent,sum:e})),currency:o})]})]}),(0,q.jsx)(ds,{children:`By kind of run`}),(0,q.jsx)(Hs,{label:`Tokens by kind of run`,rows:a.byKind.map(e=>({name:`${Bs[e.kind]||e.kind} (${e.runs})`,sum:e})),currency:o}),(0,q.jsx)(ds,{children:`Runs that used the most`}),(0,q.jsx)(Ds,{label:`Runs that used the most tokens`,head:[`Run`,`Kind`,`Tokens`,`Cost`,`When`],children:a.top.map(e=>(0,q.jsx)(Os,{cells:[(0,q.jsx)(`span`,{className:`line-clamp-2`,children:e.title}),Bs[e.kind]||e.kind,Z(e.tokens),e.amount===void 0?`—`:Q(e.amount,o),e.startedAt?Ts(e.startedAt):`—`]},`${e.kind}/${e.id}`))})]}),(0,q.jsx)(ds,{help:zs.help,children:zs.title}),c&&a.spent&&(c.day||c.month)?(0,q.jsxs)(`div`,{className:`mb-4 flex flex-col gap-4 rounded-[14px] border border-line-soft p-4`,children:[c.day?(0,q.jsx)(Us,{label:`Today`,spent:a.spent.today,limit:c.day,currency:l}):null,c.month?(0,q.jsx)(Us,{label:`This month`,spent:a.spent.month,limit:c.month,currency:l}):null]}):null,i]})}var Gs=`forgeqe-sidebar-panels`;function Ks(e,t){let[n,r]=(0,f.useState)(()=>{try{return JSON.parse(localStorage.getItem(Gs)||`{}`)[e]??t}catch{return t}});return[n,()=>{r(!n);try{let t=JSON.parse(localStorage.getItem(Gs)||`{}`);localStorage.setItem(Gs,JSON.stringify({...t,[e]:!n}))}catch{}}]}function qs({id:e,title:t,children:n,initial:r=!0}){let[i,a]=Ks(e,r);return(0,q.jsxs)(`section`,{"aria-labelledby":`panel-${e}`,className:`flex flex-col rounded-[14px] border border-line-soft bg-bg p-1.5`,children:[(0,q.jsx)(`h3`,{id:`panel-${e}`,className:`m-0`,children:(0,q.jsxs)(`button`,{type:`button`,"aria-expanded":i,onClick:a,className:`flex min-h-9 w-full cursor-pointer items-center gap-1 rounded-[10px] border-0 bg-transparent px-2.5 text-left text-sm font-semibold text-ink hover:bg-surface-muted`,children:[(0,q.jsx)(`span`,{className:`flex-1`,children:t}),(0,q.jsx)(Je,{size:16,"aria-hidden":`true`,className:K(`text-muted transition-transform`,!i&&`-rotate-90`)})]})}),i&&(0,q.jsx)(`div`,{className:`flex flex-col gap-0.5 pt-1 pb-0.5`,children:n})]})}function Js({icon:e,label:t,value:n,to:r,title:i}){let a=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(e,{size:16,strokeWidth:1.8,"aria-hidden":`true`,className:`mt-0.5 flex-none text-muted`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsx)(`span`,{className:`text-[12px] leading-tight text-muted`,children:t}),(0,q.jsx)(`span`,{className:`truncate text-[13px] text-ink`,children:n})]})]}),o=`flex items-start gap-2.5 rounded-[10px] px-3 py-1.5 no-underline`;return r?(0,q.jsx)(`a`,{href:r,title:i,className:K(o,`hover:bg-surface-muted`),children:a}):(0,q.jsx)(`div`,{title:i,className:o,children:a})}function Ys({value:e,max:t,warnAt:n}){let r=t>0?Math.min(1,e/t):0,i=n?e>=n*.9:r>.75;return(0,q.jsx)(`span`,{role:`meter`,"aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,"aria-label":`Context used`,className:`mt-1 block h-1.5 w-full overflow-hidden rounded-full bg-line`,children:(0,q.jsx)(`span`,{className:K(`block h-full rounded-full`,i?`bg-warn`:`bg-accent`),style:{width:`${Math.max(2,r*100)}%`}})})}var Xs=e=>{try{return e?new URL(e).host:``}catch{return``}},Zs=e=>e.split(/[\\/]/).filter(Boolean).pop()||e;function Qs({path:e,icon:t,extra:n}){let[r,i]=(0,f.useState)(``);return(0,q.jsxs)(`li`,{className:`flex flex-col`,children:[(0,q.jsxs)(`button`,{type:`button`,title:`Open ${e}`,onClick:async()=>i(await Ho(e)),className:`flex min-h-8 w-full cursor-pointer items-center gap-2 rounded-[10px] border-0 bg-transparent px-3 text-left hover:bg-surface-muted`,children:[(0,q.jsx)(t,{size:15,strokeWidth:1.8,"aria-hidden":`true`,className:`flex-none text-muted`}),(0,q.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[12px] text-accent`,children:Zs(e)}),n]}),r&&(0,q.jsx)(`span`,{className:`px-3 text-[12px] text-fail`,children:r})]})}function $s(e){let t=e?Date.parse(e):NaN;if(Number.isNaN(t))return``;let n=Math.max(0,Math.round((Date.now()-t)/1e3));return n<60?`${n}s`:`${Math.floor(n/60)} min`}function ec({chat:e}){let[t,n]=(0,f.useState)(null),[r,i]=(0,f.useState)(null),[a,o]=(0,f.useState)(null),[s,c]=(0,f.useState)(!1),[l,u]=(0,f.useState)([]);(0,f.useEffect)(()=>{let e=!1,t=()=>T.list().then(t=>!e&&u(t.tasks),()=>{});t();let n=setInterval(t,4e3);return()=>{e=!0,clearInterval(n)}},[]);let d=location.hash.replace(/^#\/?/,``),p=l.filter(e=>e.to!==d);(0,f.useEffect)(()=>{let e=!1,t=()=>C.state().then(t=>{if(!e){if(n(t),!t.ready)return i(null);k.get().then(t=>!e&&i(t),()=>{})}},()=>{});return t(),window.addEventListener(`hashchange`,t),()=>{e=!0,window.removeEventListener(`hashchange`,t)}},[]),(0,f.useEffect)(()=>{if(!t?.ready)return;let e=!1,n=()=>E.tokenomics().then(t=>!e&&o(t),()=>{});n();let r=setInterval(n,18e4);return()=>{e=!0,clearInterval(r)}},[t?.ready,t?.project]);let m=t?t.project.split(/[\\/]/).filter(Boolean).pop()||t.project:``,h=r?.codeRepo||r?.repo,g=a?.days.find(e=>e.day===new Date().toISOString().slice(0,10)),_=r?.environment;return(0,q.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,q.jsxs)(qs,{id:`env`,title:`Environment`,children:[(0,q.jsx)(Js,{icon:Bt,label:`Project`,value:t?.ready?m:`Not set up`,to:X(`settings`,`setup`),title:t?.project}),r&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Js,{icon:Wt,label:r.codeRepo?`Tests go to`:`Repository`,value:h?`${h.name}${h.branch?` · ${h.branch}`:h.commit?` · ${h.commit}`:``}`:`Not a git repository`,title:h?`${h.root}${h.commit?` @ ${h.commit}`:``}`:void 0,to:X(`settings`,`tests`)}),(0,q.jsx)(Js,{icon:$n,label:`Test environment`,value:_?.active?`${_.active}${Xs(_.startUrl)?` · ${Xs(_.startUrl)}`:``}`:_?.names.length?`None active`:`None yet`,title:_?.names.length?`${_.names.length} environment${_.names.length===1?``:`s`}: ${_.names.join(`, `)}${_.apps.length?`. Apps: ${_.apps.join(`, `)}`:``}`:void 0,to:X(`settings`,`environments`)}),(0,q.jsxs)(`button`,{type:`button`,"aria-expanded":s,onClick:()=>c(!s),className:`flex cursor-pointer items-start gap-2.5 rounded-[10px] border-0 bg-transparent px-3 py-1.5 text-left hover:bg-surface-muted`,children:[(0,q.jsx)(wt,{size:16,strokeWidth:1.8,"aria-hidden":`true`,className:`mt-0.5 flex-none text-muted`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsx)(`span`,{className:`text-[12px] leading-tight text-muted`,children:`Files`}),(0,q.jsxs)(`span`,{className:`text-[13px] text-ink`,children:[r.files.filter(e=>e.exists).length,` in this project`]})]}),(0,q.jsx)(Je,{size:14,"aria-hidden":`true`,className:K(`mt-1 flex-none text-muted transition-transform`,!s&&`-rotate-90`)})]}),s&&(0,q.jsx)(`ul`,{className:`m-0 mb-1 ml-9 flex list-none flex-col gap-0.5 p-0`,children:r.files.map(e=>(0,q.jsx)(`li`,{children:(0,q.jsxs)(`a`,{href:X(`settings`,`files`),title:e.path,className:K(`flex flex-col rounded-md px-2 py-1 no-underline hover:bg-surface-muted`,!e.exists&&`opacity-60`),children:[(0,q.jsx)(`span`,{className:`text-[12px] text-muted`,children:e.label}),(0,q.jsx)(`span`,{className:`truncate font-mono text-[12px] text-ink`,children:e.path})]})},e.label))})]})]}),t?.ready&&(0,q.jsxs)(qs,{id:`usage`,title:`Context and tokens`,children:[e?.context&&(0,q.jsxs)(`div`,{className:`px-3 py-1.5`,title:e.context.compactsAt?`The agent summarises the conversation at ${Z(e.context.compactsAt)} tokens.`:void 0,children:[(0,q.jsxs)(`span`,{className:`flex items-baseline gap-2 text-[12px] text-muted`,children:[(0,q.jsx)(`span`,{className:`flex-1`,children:`This chat's context`}),(0,q.jsxs)(`span`,{className:`text-ink tabular-nums`,children:[Z(e.context.tokens),` / `,Z(e.context.limit)]})]}),(0,q.jsx)(Ys,{value:e.context.tokens,max:e.context.limit,warnAt:e.context.compactsAt})]}),e?.usage&&(0,q.jsx)(Js,{icon:Ht,label:`This chat`,value:(0,q.jsxs)(`span`,{className:`tabular-nums`,children:[Z(e.usage.input),` in · `,Z(e.usage.output),` out`]}),title:e.usage.cached?`${Z(e.usage.cached)} of the input came from the provider's cache.`:void 0}),(0,q.jsx)(Js,{icon:Ht,label:`Today, this project`,value:(0,q.jsx)(`span`,{className:`tabular-nums`,children:g?`${Z(g.input+g.output)} tokens${a?.currency&&g.amount?` · ${Q(g.amount,a.currency)}`:``}`:`No runs yet`}),to:X(`settings`,`tokenomics`)}),a?.spent&&a.budget?.month?(0,q.jsxs)(`div`,{className:`px-3 py-1.5`,children:[(0,q.jsxs)(`span`,{className:`flex items-baseline gap-2 text-[12px] text-muted`,children:[(0,q.jsx)(`span`,{className:`flex-1`,children:`This month`}),(0,q.jsxs)(`span`,{className:`text-ink tabular-nums`,children:[Q(a.spent.month,a.spent.currency),` / `,Q(a.budget.month,a.budget.currency||a.spent.currency)]})]}),(0,q.jsx)(Ys,{value:a.spent.month,max:a.budget.month})]}):a&&(0,q.jsx)(Js,{icon:Ht,label:`Last 30 days`,value:(0,q.jsxs)(`span`,{className:`tabular-nums`,children:[Z(a.totals.input+a.totals.output),` tokens`,a.currency&&a.totals.amount?` · ${Q(a.totals.amount,a.currency)}`:``]}),to:X(`settings`,`tokenomics`)})]}),p.length>0&&(0,q.jsx)(qs,{id:`background`,title:`Background tasks · ${p.length}`,children:(0,q.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:p.map((e,t)=>(0,q.jsx)(`li`,{children:(0,q.jsxs)(`a`,{href:X(...e.to.split(`/`).filter(Boolean)),className:`flex items-start gap-2.5 rounded-[10px] px-3 py-1.5 no-underline hover:bg-surface-muted`,children:[(0,q.jsx)(hn,{size:15,"aria-hidden":`true`,className:`mt-0.5 flex-none animate-spin text-accent motion-reduce:animate-none`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsx)(`span`,{className:`truncate text-[13px] text-ink`,children:e.label}),(0,q.jsxs)(`span`,{className:`text-[12px] text-muted`,children:[e.detail||`Running`,$s(e.startedAt)&&` · ${$s(e.startedAt)}`]})]})]})},`${e.kind}-${t}`))})}),e?.changes&&e.changes.length>0&&(0,q.jsxs)(qs,{id:`changes`,title:`Changes · ${e.changes.length}`,children:[(0,q.jsxs)(`span`,{className:`px-3 pb-1 font-mono text-[12px] tabular-nums`,children:[sa(e.changes.length,`file`),` · `,(0,q.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.changes.reduce((e,t)=>e+t.added,0)]}),` `,(0,q.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.changes.reduce((e,t)=>e+t.removed,0)]})]}),(0,q.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.changes.map(e=>(0,q.jsx)(Qs,{path:e.path,icon:Et,extra:(0,q.jsxs)(`span`,{className:`flex-none font-mono text-[11.5px] tabular-nums`,children:[(0,q.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.added]}),` `,(0,q.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.removed]})]})},e.path))}),e.onCreatePr&&(0,q.jsx)(`div`,{className:`px-2 pt-1.5 pb-1`,children:(0,q.jsxs)(J,{size:`sm`,variant:`primary`,disabled:e.busy,title:e.busy?`When ForgeQE has finished`:`Ask ForgeQE to open a pull request with these changes`,onClick:e.onCreatePr,className:`w-full justify-center`,children:[(0,q.jsx)(Kt,{size:15,"aria-hidden":`true`}),`Create pull request`]})})]}),e?.outputs&&e.outputs.length>0&&(0,q.jsx)(qs,{id:`outputs`,title:`Outputs · ${e.outputs.length}`,children:(0,q.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.outputs.map(e=>(0,q.jsx)(Qs,{path:e.path,icon:e.kind===`test`?wt:/\.html?$/i.test(e.path)?St:e.kind===`report`?Rt:Ot,extra:(0,q.jsx)(`span`,{className:`flex-none text-[11.5px] text-muted`,children:e.label})},e.path))})})]})}var tc=[{id:``,label:`Home`,icon:Qt},{id:`record`,label:`Record`,icon:Xe},{id:`regression`,label:`Regression`,icon:Dn},{id:`api-tests`,label:`API tests`,icon:Dr},{id:`quality`,label:`Quality`,icon:Ht},{id:`data`,label:`Data`,icon:bt},{id:`runs`,label:`Runs`,icon:zn},{id:`reports`,label:`Reports`,icon:St},{id:`jobs`,label:`Jobs`,icon:Be}],nc=[{id:`knowledge`,label:`Knowledge`,icon:Me},{id:`memory`,label:`Memory`,icon:Ie},{id:`guardrails`,label:`Guardrails`,icon:ar},{id:`skills`,label:`Skills`,icon:Xt},{id:`prompts`,label:`Prompts`,icon:yn},{id:`features`,label:`What's ready`,icon:we}],rc=(0,f.createContext)({hidden:!1,open:()=>{},setChat:()=>{}});function ic(e){let{setChat:t}=(0,f.useContext)(rc),n=JSON.stringify(e);(0,f.useEffect)(()=>(t(e),()=>t(null)),[n,t])}var ac=`forgeqe-sidebar`,oc=()=>{try{return localStorage.getItem(ac)===`closed`}catch{return!1}};function sc({className:e}){let{hidden:t,open:n}=(0,f.useContext)(rc);return(0,q.jsx)(J,{variant:`icon`,size:`icon`,"aria-label":`Open the sidebar`,onClick:n,className:K(t?`inline-flex`:`inline-flex md:hidden`,e),children:(0,q.jsx)(jn,{size:20,strokeWidth:1.8,"aria-hidden":`true`})})}function cc(){let{hidden:e}=(0,f.useContext)(rc);return(0,q.jsxs)(`div`,{className:K(`sticky top-0 z-20 items-center gap-1 border-b border-line-soft bg-bg px-3 py-2`,e?`flex`:`flex md:hidden`),children:[(0,q.jsx)(sc,{}),(0,q.jsx)(`a`,{href:X(),className:`ml-1 text-base font-semibold text-ink no-underline hover:text-ink`,children:`ForgeQE`})]})}function lc({item:e,current:t}){let n=t===e.id;return(0,q.jsxs)(`a`,{href:X(e.id),"aria-current":n?`page`:void 0,className:K(`flex min-h-9 items-center gap-3 rounded-[10px] px-3 text-sm font-medium no-underline`,n?`bg-surface-strong text-ink hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:[(0,q.jsx)(e.icon,{size:18,strokeWidth:1.8,"aria-hidden":`true`,className:`flex-none`}),e.label]})}function uc({current:e,chat:t,onClose:n}){let[r,i]=(0,f.useState)([]);(0,f.useEffect)(()=>{let e=!1,t=()=>{C.state().then(t=>{e||t.ready&&D.list().then(t=>!e&&i(t.chats.slice(0,12)),()=>{})},()=>{})};return t(),window.addEventListener(`hashchange`,t),()=>{e=!0,window.removeEventListener(`hashchange`,t)}},[]);let a=r.some(e=>e.state===`busy`||e.state===`starting`);return(0,f.useEffect)(()=>{if(!a)return;let e=setInterval(()=>D.list().then(e=>i(e.chats.slice(0,12)),()=>{}),4e3);return()=>clearInterval(e)},[a]),(0,q.jsxs)(`nav`,{"aria-label":`ForgeQE`,className:`flex h-full w-[264px] flex-col gap-1 border-r border-line-soft bg-surface-muted px-3 pt-3 pb-3`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-1 pl-2`,children:[(0,q.jsx)(`a`,{href:X(),className:`flex-1 text-base font-semibold text-ink no-underline hover:text-ink`,children:`ForgeQE`}),(0,q.jsx)(J,{variant:`icon`,size:`icon`,"aria-label":`Close the sidebar`,onClick:n,children:(0,q.jsx)(kn,{size:20,strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,q.jsxs)(`a`,{href:X(),className:K(ua(),`mt-2 mb-3 justify-start gap-3 px-3`),children:[(0,q.jsx)(pr,{size:18,strokeWidth:1.8,"aria-hidden":`true`}),`New chat`]}),(0,q.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto`,children:[(0,q.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-work`,className:`flex flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{id:`nav-work`,className:`px-3 pb-1 text-[13px] font-medium text-muted`,children:`Work`}),tc.map(t=>(0,q.jsx)(lc,{item:t,current:e},t.id))]}),(0,q.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-knowledge`,className:`flex flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{id:`nav-knowledge`,className:`px-3 pb-1 text-[13px] font-medium text-muted`,children:`Agents`}),nc.map(t=>(0,q.jsx)(lc,{item:t,current:e},t.id))]}),(r.length>0||e===`chats`)&&(0,q.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-recent`,className:`flex flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{id:`nav-recent`,className:`px-3 pb-1 text-[13px] font-medium text-muted`,children:`Recent`}),r.map(e=>(0,q.jsxs)(`a`,{href:X(`chats`,e.id),"aria-current":t===e.id?`page`:void 0,title:e.title,className:K(`flex min-h-9 items-center gap-2 rounded-[10px] px-3 text-sm no-underline`,t===e.id?`bg-surface-strong text-ink hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:[(0,q.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.title}),(e.state===`busy`||e.state===`starting`)&&(0,q.jsx)(jo,{state:e.state===`busy`?`working`:`waiting`,label:`Working`,px:16})]},e.id)),(0,q.jsxs)(`a`,{href:X(`chats`),"aria-current":e===`chats`&&!t?`page`:void 0,className:K(`flex min-h-9 items-center gap-2 rounded-[10px] px-3 text-[13px] font-medium no-underline`,e===`chats`&&!t?`bg-surface-strong text-ink hover:text-ink`:`text-muted hover:bg-surface-strong hover:text-ink`),children:[(0,q.jsx)(xn,{size:15,strokeWidth:1.8,"aria-hidden":`true`,className:`flex-none`}),`All chats`]})]})]}),(0,q.jsxs)(`div`,{className:`flex flex-none flex-col gap-0.5 border-t border-line pt-2`,children:[(0,q.jsxs)(`a`,{href:`/help/guide`,target:`_blank`,rel:`noreferrer noopener`,className:`flex min-h-9 items-center gap-3 rounded-[10px] px-3 text-sm font-medium text-ink-2 no-underline hover:bg-surface-strong hover:text-ink`,children:[(0,q.jsx)(Qe,{size:18,strokeWidth:1.8,"aria-hidden":`true`,className:`flex-none`}),`Help`]}),(0,q.jsx)(lc,{item:{id:`settings`,label:`Settings`,icon:rr},current:e})]})]})}function dc(){let[e,t]=(0,f.useState)(!1);return(0,f.useEffect)(()=>{let e=()=>t(!0);return window.addEventListener(y,e),()=>window.removeEventListener(y,e)},[]),e?(0,q.jsx)(`p`,{role:`alert`,className:`mx-4 mt-4 mb-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:b}):null}function fc({stats:e,onClose:t}){return(0,q.jsxs)(`aside`,{"aria-label":`Workspace`,className:`flex h-full w-[300px] flex-col border-l border-line-soft bg-surface-muted`,children:[(0,q.jsx)(`div`,{className:`flex justify-end px-3 pt-3`,children:(0,q.jsx)(J,{variant:`icon`,size:`icon`,"aria-label":`Close the workspace panel`,onClick:t,children:(0,q.jsx)(Nn,{size:20,strokeWidth:1.8,"aria-hidden":`true`})})}),(0,q.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-3 pt-1 pb-3`,children:(0,q.jsx)(ec,{chat:e})})]})}var pc=`forgeqe-workspace-panel`,mc=()=>{try{return localStorage.getItem(pc)!==`closed`}catch{return!0}};function hc({current:e,chat:t,children:n}){let[r,i]=(0,f.useState)(oc),[a,o]=(0,f.useState)(null),[s,c]=(0,f.useState)(!1),[l,u]=(0,f.useState)(mc),[d,p]=(0,f.useState)(!1),m=()=>window.matchMedia(`(min-width: 1280px)`).matches,h=e=>{u(e);try{localStorage.setItem(pc,e?`open`:`closed`)}catch{}};(0,f.useEffect)(()=>{if(!d)return;let e=()=>p(!1),t=t=>t.key===`Escape`&&e();return window.addEventListener(`hashchange`,e),window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`keydown`,t)}},[d]);let g=e=>{i(e);try{localStorage.setItem(ac,e?`closed`:`open`)}catch{}};(0,f.useEffect)(()=>{if(!s)return;let e=()=>c(!1),t=t=>t.key===`Escape`&&e();return window.addEventListener(`hashchange`,e),window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`keydown`,t)}},[s]);let _=()=>window.matchMedia(`(min-width: 768px)`).matches,v=e===`settings`;return(0,q.jsx)(rc.Provider,{value:{hidden:r,open:()=>_()?g(!1):c(!0),setChat:o},children:(0,q.jsxs)(`div`,{className:`flex min-h-screen bg-bg`,children:[(0,q.jsx)(`aside`,{className:K(`sticky top-0 h-screen flex-none`,r||v?`hidden`:`hidden md:block`),children:(0,q.jsx)(uc,{current:e,chat:t,onClose:()=>g(!0)})}),s&&(0,q.jsxs)(`div`,{className:`fixed inset-0 z-40 md:hidden`,children:[(0,q.jsx)(`div`,{"aria-hidden":`true`,className:`absolute inset-0 bg-[rgba(17,25,40,0.28)]`,onClick:()=>c(!1)}),(0,q.jsx)(`aside`,{className:`fade-in absolute inset-y-0 left-0 max-w-[85vw] shadow-menu`,children:(0,q.jsx)(uc,{current:e,chat:t,onClose:()=>c(!1)})})]}),(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsx)(`div`,{"aria-hidden":`true`,className:K(`h-4 flex-none`,r||v?`hidden`:`hidden md:block`,l&&`xl:hidden`)}),(0,q.jsx)(dc,{}),n,(0,q.jsx)(J,{variant:`icon`,size:`icon`,"aria-label":`Show the workspace panel`,onClick:()=>m()?h(!0):p(!0),className:K(`fixed top-3 right-3 z-30 bg-bg/80`,l&&`xl:hidden`,v&&`hidden xl:hidden`),children:(0,q.jsx)(Fn,{size:20,strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,q.jsx)(`div`,{className:K(`sticky top-0 h-screen flex-none`,l&&!v?`hidden xl:block`:`hidden`),children:(0,q.jsx)(fc,{stats:a,onClose:()=>h(!1)})}),d&&(0,q.jsxs)(`div`,{className:`fixed inset-0 z-40 xl:hidden`,children:[(0,q.jsx)(`div`,{"aria-hidden":`true`,className:`absolute inset-0 bg-[rgba(17,25,40,0.28)]`,onClick:()=>p(!1)}),(0,q.jsx)(`div`,{className:`fade-in absolute inset-y-0 right-0 max-w-[85vw] shadow-menu`,children:(0,q.jsx)(fc,{stats:a,onClose:()=>p(!1)})})]})]})})}var gc=`mx-auto box-border flex w-full max-w-[1180px] flex-col px-6 pt-8 pb-10 md:px-12`;export{sa as $,Ie as $t,ts as A,d as An,Bt as At,zo as B,mt as Bt,_s as C,P as Cn,dn as Ct,is as D,C as Dn,Kt as Dt,as as E,N as En,Jt as Et,Ko as F,Ot as Ft,Lo as G,it as Gt,Po as H,ut as Ht,Uo as I,Et as It,jo as J,Xe as Jt,No as K,et as Kt,Ho as L,wt as Lt,Xo as M,s as Mn,Pt as Mt,Go as N,l as Nn,Mt as Nt,ns as O,g as On,Wt as Ot,qo as P,At as Pt,K as Q,Re as Qt,X as R,St as Rt,hs as S,F as Sn,hn as St,cs as T,j as Tn,Xt as Tt,Ro as U,ct as Ut,Fo as V,ft as Vt,Bo as W,ot as Wt,ua as X,Ke as Xt,J as Y,Je as Yt,la as Z,Be as Zt,Q as _,A as _n,zn as _t,ic as a,Se as an,hr as at,ys as b,te as bn,xn as bt,xs as c,x as cn,lr as ct,As as d,ee as dn,Zn as dt,Me as en,jr as et,ks as f,re as fn,Yn as ft,Ws as g,L as gn,Vn as gt,Ds as h,O as hn,Un as ht,hc as i,we as in,_r as it,Zo as j,o as jn,Rt as jt,Yo as k,_ as kn,Ht as kt,bs as l,oe as ln,ar as lt,Is as m,I as mn,Gn as mt,sc as n,Oe as nn,Dr as nt,Ls as o,ve as on,pr as ot,$ as p,D as pn,qn as pt,Mo as q,Qe as qt,cc as r,Ee as rn,Cr as rt,Os as s,V as sn,dr as st,gc as t,Ae as tn,kr as tt,js as u,E as un,$n as ut,Cs as v,w as vn,Dn as vt,ds as w,ae as wn,Qt as wt,vs as x,ne as xn,yn as xt,Z as y,M as yn,Tn as yt,Vo as z,bt as zt};