@capagents/forgeqe 3.0.4 → 3.0.5

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 (74) hide show
  1. package/dist/forgeqe.js +1800 -1798
  2. package/dist/web/assets/{Agent-CKlqZ4Eq.js → Agent-BF6goYbq.js} +5 -5
  3. package/dist/web/assets/{ApiTests-MARHrxdT.js → ApiTests-08El24XV.js} +7 -7
  4. package/dist/web/assets/Browse-DB7lNo6R.js +2 -0
  5. package/dist/web/assets/Chat-Co7EJfA9.js +5 -0
  6. package/dist/web/assets/{CommandPalette-DMpA8mBk.js → CommandPalette-BkNNac9P.js} +1 -1
  7. package/dist/web/assets/{Compare-DD1mmRB4.js → Compare-Ce214eXq.js} +1 -1
  8. package/dist/web/assets/Cost-B_oVlEve.js +1 -0
  9. package/dist/web/assets/{Data-CpKR98gM.js → Data-BNXAWpvT.js} +4 -4
  10. package/dist/web/assets/Desktop-Dnsmc_L-.js +1 -0
  11. package/dist/web/assets/DesktopReview-C7SG_gBt.js +1 -0
  12. package/dist/web/assets/{Evidence-CWcZvoOu.js → Evidence-C6PtAQ6y.js} +1 -1
  13. package/dist/web/assets/{Explore-DuDQqmEn.js → Explore-BN8zgzmv.js} +2 -2
  14. package/dist/web/assets/{Features-BJTX7utr.js → Features-DRONEGA3.js} +1 -1
  15. package/dist/web/assets/{Flags-BeG_gA9O.js → Flags-CF8Zboey.js} +2 -2
  16. package/dist/web/assets/{Flaky-DulQuBGi.js → Flaky-B6IYRvE2.js} +1 -1
  17. package/dist/web/assets/Impact-DglYEuEY.js +3 -0
  18. package/dist/web/assets/Jobs-BX-DXp28.js +5 -0
  19. package/dist/web/assets/KindPage-ByaxfUiE.js +6 -0
  20. package/dist/web/assets/{Migration-D1JVUQM0.js → Migration-wVEuZ3zr.js} +2 -2
  21. package/dist/web/assets/Product-Bcv7xIYx.js +7 -0
  22. package/dist/web/assets/{Production-DY9Gddm8.js → Production-DTdUc-ze.js} +1 -1
  23. package/dist/web/assets/{Quality-B7M1Zna2.js → Quality-B0MRg6wI.js} +1 -1
  24. package/dist/web/assets/{Readiness-BtQ8RbJh.js → Readiness-XpGisxdv.js} +1 -1
  25. package/dist/web/assets/{Record-W7ojjKNu.js → Record-C0vcXk-u.js} +2 -2
  26. package/dist/web/assets/Regression-CthpK77C.js +5 -0
  27. package/dist/web/assets/{RelationGraph-C7K_BfEF.js → RelationGraph-MHWsIy8b.js} +1 -1
  28. package/dist/web/assets/{Reports-D4v66mJR.js → Reports-Cy1MvUqg.js} +2 -2
  29. package/dist/web/assets/{Response-B_2R4FjH.js → Response-53IPohSg.js} +2 -2
  30. package/dist/web/assets/RunDiff-BQH6Wacd.js +1 -0
  31. package/dist/web/assets/{Runs-DvjM0xfG.js → Runs-IwZWhlyu.js} +2 -2
  32. package/dist/web/assets/Steps-DKCrz0ed.js +2 -0
  33. package/dist/web/assets/{TestCases-Dc6bjNO5.js → TestCases-Bt81xr3X.js} +1 -1
  34. package/dist/web/assets/{TestData-DWPcmhz4.js → TestData-CXRhxaD8.js} +2 -2
  35. package/dist/web/assets/{TestDebt-BpYav19x.js → TestDebt-DM5VeTwn.js} +1 -1
  36. package/dist/web/assets/Tosca-B42EZ5YF.js +3 -0
  37. package/dist/web/assets/{WhatsNew-CRaJjaut.js → WhatsNew-D3yHnxgW.js} +1 -1
  38. package/dist/web/assets/agentLink-BlI6CU6m.js +1 -0
  39. package/dist/web/assets/{dataParts-Bwh_DOs0.js → dataParts-B0tYVMhQ.js} +2 -2
  40. package/dist/web/assets/{families-C47Nrp6j.js → families-DGOQO6Mu.js} +1 -1
  41. package/dist/web/assets/filters-Btr3PTRn.js +1 -0
  42. package/dist/web/assets/{fold-Bd5-4sjR.js → fold-B_G_xXZM.js} +1 -1
  43. package/dist/web/assets/{frame-BliO67Wd.js → frame-CU0pSxTD.js} +9 -9
  44. package/dist/web/assets/index-CCNq91up.js +68 -0
  45. package/dist/web/assets/index-D6jp6pDW.css +2 -0
  46. package/dist/web/assets/{logos-CgYEz85j.js → logos-DpiYLP3H.js} +1 -1
  47. package/dist/web/assets/{markdown-DSp3tP8i.js → markdown-Dn8IZFhS.js} +3 -3
  48. package/dist/web/assets/{paletteCommands-CGFwmBxN.js → paletteCommands-DKcFFV7I.js} +1 -1
  49. package/dist/web/assets/{parts-DlmbVDzO.js → parts-Ct3kXHNO.js} +1 -1
  50. package/dist/web/assets/{productParts-CL2tDIGF.js → productParts-IDyVJAgM.js} +1 -1
  51. package/dist/web/assets/{qualityParts-Bs34Dzva.js → qualityParts-Db6YfFIY.js} +1 -1
  52. package/dist/web/assets/{recordTest-DHsT3pOe.js → recordTest-_r_cdTC6.js} +1 -1
  53. package/dist/web/assets/{rows-Baid_ASt.js → rows-De2l3NFN.js} +1 -1
  54. package/dist/web/assets/{segmented-D0PvwMW_.js → segmented-CHGzMxbS.js} +1 -1
  55. package/dist/web/assets/{usePageChat-lmgkgnb4.js → usePageChat-CpAYTNqJ.js} +1 -1
  56. package/dist/web/index.html +5 -5
  57. package/package.json +1 -1
  58. package/dist/web/assets/Browse-B2QYflth.js +0 -2
  59. package/dist/web/assets/Chat-DRkmiF4r.js +0 -5
  60. package/dist/web/assets/Cost-B6BCZIxQ.js +0 -1
  61. package/dist/web/assets/Desktop-xUqFsJPz.js +0 -1
  62. package/dist/web/assets/DesktopReview-CnLC9yMR.js +0 -1
  63. package/dist/web/assets/Impact-BvGp2rYG.js +0 -3
  64. package/dist/web/assets/Jobs-BXqBtH8C.js +0 -5
  65. package/dist/web/assets/KindPage-BGEobnS3.js +0 -6
  66. package/dist/web/assets/Product-Y1dUpFfW.js +0 -7
  67. package/dist/web/assets/Regression-eV2N8m2P.js +0 -5
  68. package/dist/web/assets/RunDiff-Br5uN0Gu.js +0 -1
  69. package/dist/web/assets/Steps-DULf0k5w.js +0 -2
  70. package/dist/web/assets/Tosca-Bw-j_W-Q.js +0 -3
  71. package/dist/web/assets/agentLink-Dxy-IYQv.js +0 -1
  72. package/dist/web/assets/filters-Ca7by1u0.js +0 -1
  73. package/dist/web/assets/index-B1U2Jkz_.js +0 -67
  74. package/dist/web/assets/index-Ce2EYROA.css +0 -2
@@ -1,18 +1,18 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/paletteCommands-CGFwmBxN.js","assets/filters-Ca7by1u0.js","assets/line-icons-DBwNPSmu.js","assets/index-B1U2Jkz_.js","assets/markdown-DSp3tP8i.js","assets/index-Ce2EYROA.css","assets/CommandPalette-DMpA8mBk.js"])))=>i.map(i=>d[i]);
2
- import{$ as e,$t as t,Ar as n,At as r,C as i,Cn as a,Ct as o,D as s,Dn as c,Dt as l,E as u,En as d,Et as f,Fn as p,Ft as m,G as h,Gn as g,Gt as _,H as v,Hn as y,In as b,Jt as x,Kt as ee,L as S,Lr as C,Mt as w,Nr as T,O as E,On as D,Or as te,Pn as O,Pr as ne,Qn as re,R as ie,Rn as ae,S as oe,Sn as se,Sr as ce,St as le,T as ue,Ut as de,V as k,Vn as A,Vt as fe,W as pe,Wn as me,X as he,Xn as ge,Yn as _e,Yt as ve,Zt as j,_ as ye,_r as be,ar as xe,b as Se,bt as Ce,c as we,cr as Te,ct as Ee,d as De,dn as Oe,dt as ke,fn as Ae,fr as je,gr as Me,h as Ne,hr as M,ht as Pe,jr as Fe,jt as Ie,l as Le,lr as Re,m as ze,mn as Be,mr as Ve,n as He,nn as Ue,o as We,ot as Ge,p as Ke,q as qe,qn as Je,qt as Ye,r as Xe,rr as Ze,sn as Qe,sr as $e,t as et,tn as tt,tt as nt,u as rt,v as it,vn as at,vt as ot,wn as st,wr as ct,wt as lt,xn as ut,y as dt,yn as ft,yt as pt,z as mt}from"./line-icons-DBwNPSmu.js";import{$ as ht,$t as gt,A as _t,C as vt,D as yt,E as N,F as bt,Ft as xt,H as St,I as Ct,Jt as wt,Kt as Tt,L as Et,M as Dt,N as Ot,O as kt,P as At,R as jt,S as Mt,T as Nt,Ut as Pt,V as P,Vt as Ft,X as It,Zt as Lt,_ as Rt,a as zt,b as Bt,c as Vt,ct as Ht,en as Ut,g as Wt,it as Gt,j as Kt,jt as qt,k as Jt,l as Yt,n as Xt,o as Zt,p as F,s as Qt,st as $t,tt as en,u as tn,v as nn,w as rn,x as an,y as on,z as I,zt as sn}from"./filters-Ca7by1u0.js";var L=C(ne(),1),cn=`ForgeQE`,ln=/\bForgeQE\b/g,un=[`placeholder`,`title`,`aria-label`,`data-tip`,`alt`],dn=`input, textarea, pre, code, [contenteditable], [data-keep-name]`,fn=(e,t)=>t===`ForgeQE`?e:e.replace(ln,()=>t),pn=new WeakMap,mn=new WeakMap;function hn(e,t){return e&&e.shown===t?e.from:t}function gn(e){return!!e?.closest(dn)}function _n(e,t){if(gn(e.parentElement))return;let n=e.nodeValue??``,r=hn(pn.get(e),n);if(r===n&&!r.includes(`ForgeQE`))return;let i=fn(r,t);pn.set(e,{from:r,shown:i}),i!==n&&(e.nodeValue=i)}function vn(e,t){if(!e.closest(`pre, code, [contenteditable], [data-keep-name]`))for(let n of un){let r=e.getAttribute(n);if(r===null)continue;let i=mn.get(e),a=hn(i?.get(n),r);if(a===r&&!a.includes(`ForgeQE`))continue;let o=fn(a,t);i||mn.set(e,i=new Map),i.set(n,{from:a,shown:o}),o!==r&&e.setAttribute(n,o)}}function yn(e,t){if(e.nodeType===Node.TEXT_NODE)return _n(e,t);if(e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_NODE)return;e.nodeType===Node.ELEMENT_NODE&&vn(e,t);let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT);for(let e=n.nextNode();e;e=n.nextNode())e.nodeType===Node.TEXT_NODE?_n(e,t):vn(e,t)}var bn,xn=cn,Sn,Cn=()=>xn,wn=e=>fn(e,xn);function Tn(e){let t=e?.trim()||`ForgeQE`;typeof document>`u`?xn=t:(Sn===void 0&&(Sn=document.title),!(t===xn&&bn)&&(xn=t,bn?.disconnect(),yn(document.body,xn),document.title=fn(Sn,xn),bn=new MutationObserver(e=>{bn?.disconnect();for(let t of e)if(t.type===`characterData`)_n(t.target,xn);else if(t.type===`attributes`)vn(t.target,xn);else for(let e of t.addedNodes)yn(e,xn);bn?.observe(document.body,En)}),bn.observe(document.body,En)))}var En={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:[...un]},Dn=`forgeqe.engine.forgeqe-test.forgeqe-read.forgeqe-review.forgeqe-test-plan.forgeqe-heal.forgeqe-migrate.forgeqe-tosca.forgeqe-tosca-assistant.forgeqe-find.forgeqe-pr-review.forgeqe-api.forgeqe-api-plan.forgeqe-explore-plan.forgeqe-defect-rca.forgeqe-refine.forgeqe-agent-builder.forgeqe-bug-report.forgeqe-data.forgeqe-persona.forgeqe-business-strategist.forgeqe-business-interviewer.forgeqe-doc-reader.forgeqe-knowledge-agent.forgeqe-talk.forgeqe-judge.forgeqe-model-profile.forgeqe-knowledge.forgeqe-investigate.forgeqe-evidence-acceptance.forgeqe-impact-reader.forgeqe-evidence-content.forgeqe-evidence-scenarios.explore.general`.split(`.`);function On(e){try{let t=kn(e);return t&&t!==`ForgeQE`?t:void 0}catch{return}}function kn(e,t=`the name`){if(e==null)return``;if(typeof e!=`string`)throw Error(`${t} must be text.`);if(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/.test(e))throw Error(`${t} must be one line of plain text.`);let n=e.replace(/\s+/g,` `).trim();if(n.length>40)throw Error(`${t} is ${n.length} characters; at most 40.`);return n}var An={};function jn(e){let t={};if(!e||typeof e!=`object`||Array.isArray(e))return t;for(let[n,r]of Object.entries(e))if(Dn.includes(n))try{let e=kn(r);e&&(t[n]=e)}catch{}return t}function Mn(e){An=jn(e)}var Nn=e=>Object.hasOwn(An,e)?An[e]:void 0,Pn=[`orchestrator`,`specs`,`api`,`explorer`,`case`,`browser-agent`,`test-finder`,`report`,`scribe`,`knowledge-base`,`healer`,`result`,`pr-reviewer`,`rule`,`trace`,`model`,`context-engine`,`database`],Fn={orchestrator:`Atlas`,specs:`Specs`,api:`API`,explorer:`Explorer`,case:`Test case`,"browser-agent":`Browser`,"test-finder":`Search`,report:`Report`,scribe:`Coding`,"knowledge-base":`Knowledge`,healer:`Healing`,result:`Result`,"pr-reviewer":`PR review`,rule:`Rule`,trace:`Trace`,model:`Model`,"context-engine":`Helper`,database:`Database`},In=new Set(Pn),Ln=/^[a-z0-9]+(-[a-z0-9]+)*$/,Rn=/^(ph|lucide):([a-z0-9]+(?:-[a-z0-9]+)*)$/;function zn(e){return typeof e==`string`&&In.has(e)}function Bn(e){if(typeof e!=`string`||e.length>80)return;let t=Rn.exec(e);if(!t)return;let n=t[1],r=t[2];if(!(!Ln.test(r)||r.length>64)&&!/-(bold|fill|light|thin|duotone|bold-duotone)$/.test(r))return{set:n,name:r,id:`${n}:${r}`}}function Vn(e){return typeof e!=`string`||!e||e.length>80||e.includes(`\0`)||e.includes(`/`)||e.includes(`\\`)||e.includes(`..`)?!1:In.has(e)?!0:Bn(e)!==void 0}function Hn(e){if(zn(e))return Fn[e];let t=Bn(e);return t?t.name.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `):e}var Un=new Map,Wn=new Set,Gn=0;function Kn(){return{ids:[...Wn].sort(),version:Gn}}var qn=`forgeqe`,Jn={forgeqe:{name:`Atlas`,icon:`orchestrator`,hue:`#a78bfa`},"forgeqe-refine":{name:`Polish`,icon:`specs`,hue:`#8fa2ff`},"forgeqe-api-plan":{name:`Planner`,icon:`ph:list-checks`,hue:`#e0a3f5`},"forgeqe-explore-plan":{name:`Rover`,icon:`explorer`,hue:`#f59fe0`},"forgeqe-test-plan":{name:`Pathfinder`,icon:`case`,hue:`#c9b3ff`},engine:{name:`WebPilot`,icon:`browser-agent`,hue:`#5ea6f0`},desktop:{name:`DeskPilot`,icon:`ph:desktop`,hue:`#4f7fd9`},"forgeqe-find":{name:`Hound`,icon:`test-finder`,hue:`#1fa3c4`},"forgeqe-test":{name:`Quill`,icon:`scribe`,hue:`#3a9a7e`},"forgeqe-read":{name:`Vera`,icon:`knowledge-base`,hue:`#3fa34d`},"forgeqe-heal":{name:`Mender`,icon:`healer`,hue:`#86a92c`},"forgeqe-migrate":{name:`Mover`,icon:`ph:arrows-left-right`,hue:`#2f8f63`},"forgeqe-tosca":{name:`Bridge`,icon:`ph:bridge`,hue:`#2c7a4b`},"forgeqe-api":{name:`Link`,icon:`api`,hue:`#1f9c90`},"forgeqe-review":{name:`Checker`,icon:`result`,hue:`#e0457b`},"forgeqe-pr-review":{name:`Patch`,icon:`pr-reviewer`,hue:`#d93a52`},"forgeqe-judge":{name:`Gavel`,icon:`rule`,hue:`#e0603a`},"forgeqe-defect-rca":{name:`Sleuth`,icon:`trace`,hue:`#d6701f`},"forgeqe-model-profile":{name:`Scales`,icon:`model`,hue:`#b88a14`},"forgeqe-data":{name:`Miner`,icon:`database`,hue:`#2b7fc2`},"forgeqe-persona":{name:`Mask`,icon:`ph:identification-badge`,hue:`#7d3f8a`},"forgeqe-business-strategist":{name:`Watchdog`,icon:`ph:target`,hue:`#8a2846`},"forgeqe-knowledge-agent":{name:`Librarian`,icon:`ph:lightbulb`,hue:`#4f6672`},explore:{name:`Scout`,icon:`ph:binoculars`,hue:`#62789e`},general:{name:`Jack`,icon:`context-engine`,hue:`#a07c43`}},Yn={"forgeqe-agent-builder":`Smith`,"forgeqe-talk":`Aria`,"forgeqe-bug-report":`Herald`,"forgeqe-bi":`Beacon`,"forgeqe-knowledge":`Mapper`,"forgeqe-investigate":`Digger`,"forgeqe-evidence-acceptance":`Clerk`,"forgeqe-impact-reader":`Ripple`,"forgeqe-evidence-content":`Grader`,"forgeqe-evidence-scenarios":`Drafter`,"forgeqe-business-interviewer":`Echo`,"forgeqe-doc-reader":`Skimmer`,"forgeqe-tosca-assistant":`Guide`},Xn={"forgeqe-agent-builder":`ph:puzzle-piece`,"forgeqe-talk":`ph:microphone-stage`,"forgeqe-bug-report":`ph:bug`,"forgeqe-bi":`report`,"forgeqe-knowledge":`ph:share-network`,"forgeqe-investigate":`ph:magnifying-glass-plus`,"forgeqe-evidence-acceptance":`ph:clipboard-text`,"forgeqe-impact-reader":`ph:waves`,"forgeqe-evidence-content":`ph:quotes`,"forgeqe-evidence-scenarios":`ph:cards`,"forgeqe-business-interviewer":`ph:microphone`,"forgeqe-doc-reader":`ph:book-open-text`},Zn=Object.freeze(Object.keys(Xn));function Qn(e){let t=Nn(e),n=er(e);return t?{...n,name:t}:n}function $n(e,t=!1){return/\bagent$/i.test(e.trim())?`${t?`The`:`the`} ${e}`:e}function er(e){let t=Object.hasOwn(Jn,e)?Jn[e]:void 0;if(t)return t;let n=Un.get(e)||(Object.hasOwn(Xn,e)?Xn[e]:void 0)||`context-engine`;if(Object.hasOwn(Yn,e))return{name:Yn[e],icon:n,hue:`#62789e`};let r=e.replace(/^forgeqe-/,``).replace(/[-_]+/g,` `).trim().slice(0,40),i=r?r.charAt(0).toUpperCase()+r.slice(1):``;return{name:i?/ agent$/i.test(i)?i:`${i} agent`:`Jack`,icon:n,hue:`#62789e`}}var tr=[{id:`assisted`,label:`Advisers`,about:`AI assisted: they help with your work, shaping a request, finding tests, reviewing and rating, and you decide.`,short:`Help you decide`},{id:`native`,label:`Builders`,about:`AI native: they make the work itself, plans, tests and diagnoses written from your runs and your descriptions.`,short:`Do the work for you`},{id:`agentic`,label:`Operators`,about:`Agentic: they act on their own across many steps, using the browser, your tools and the other agents to finish a task.`,short:`Work on their own`},{id:`custom`,label:`Custom agents`,about:`Agents your team makes for its own work.`,short:`Made by your team`}],nr=[{id:`orchestrator`,short:`Leads every chat`,category:`agentic`,agent:`forgeqe`,runs:[`forgeqe`],about:`Leads every chat: works out what you asked, uses ForgeQE's tools and your connected systems, and hands parts to the other agents.`,starters:[{label:`Run test cases`,text:`Run SHOP-12 and SHOP-14 on Chrome and Edge`},{label:`Review requirements`,text:`Review the payments refund brief and list its gaps`}]},{id:`browser`,short:`Runs tests in a browser`,category:`agentic`,agent:`engine`,runs:[`engine`,`browser agent`],about:`Runs your test cases in a real browser, step by step, and keeps a screenshot of every step as evidence.`,starters:[{label:`Run test cases`,text:`Run SHOP-12 and SHOP-14 on Chrome and Edge`},{label:`Check a page`,text:`Sign in to QA and check the dashboard loads with this week's orders`},{label:`Try it as a blind user`,text:`Act as a blind screen reader user and try to check out on QA: list the accessibility barriers`}]},{id:`desktop`,short:`Automates desktop apps`,category:`agentic`,agent:`desktop`,runs:[`desktop`,`desktop agent`],about:`Carries out a goal in a Windows desktop app and saves it as a workflow with checks, records the steps you do by hand, and replays saved workflows with no model. It asks before it takes the mouse and keyboard.`,prompt:!1,starters:[{label:`Automate a task`,text:`Create an invoice for Contoso in the Billing app and save it as a test`},{label:`Record my steps`,text:`I'll show you the steps in Billing: record them`},{label:`Replay a workflow`,text:`Replay the billing workflow with customer Fabrikam`}]},{id:`exploration`,short:`Explores user journeys`,category:`agentic`,agent:`forgeqe-explore-plan`,runs:[`forgeqe-explore-plan`],about:`Explores a journey the way a curious user would, and plans charters for what is worth a closer look.`,starters:[{label:`Explore a journey`,text:`Explore the checkout on QA and report anything that looks wrong`},{label:`Plan charters`,text:`Plan exploratory charters for the new refunds page`}]},{id:`planning`,short:`Places recorded tests`,category:`native`,agent:`forgeqe-test-plan`,runs:[`forgeqe-test-plan`],about:`Plans where a test recorded by hand belongs in your repository, and what it reuses there.`,starters:[{label:`Plan a recording`,text:`Plan where my last recording goes in the repository`}]},{id:`coding`,short:`Writes automated tests`,category:`native`,agent:`forgeqe-test`,runs:[`forgeqe-test`,`forgeqe-read`],about:`Writes automated tests in your repository from a verified run, in your team's style, and shows its plan first.`,starters:[{label:`Write a test`,text:`Write a Playwright test for the login flow on QA`},{label:`Automate a case`,text:`Turn SHOP-12 into an automated test`}]},{id:`search`,short:`Finds the right tests`,category:`assisted`,agent:`forgeqe-find`,runs:[`forgeqe-find`],about:`Finds the tests in your repository that a request means, so they can run without being named one by one.`,starters:[{label:`Find tests`,text:`Which tests in the repository cover the login flow?`},{label:`Find and run`,text:`Find the tests for the basket and run them`}]},{id:`knowledge-agent`,short:`Says what ForgeQE knows`,category:`assisted`,agent:`forgeqe-knowledge-agent`,runs:[`forgeqe-knowledge-agent`,`Librarian`],about:`Tells you what ForgeQE has understood about your product, from its knowledge notes, documents, skills and product graph, and takes your corrections. Each change to a note, a skill, a team prompt or the graph is shown first and written only when you approve it.`,starters:[{label:`Ask what it knows`,text:`What do you know about refunds?`},{label:`Correct it`,text:`Refunds over 1000 EUR need a supervisor, not 500: correct it`}]},{id:`healing`,short:`Fixes broken tests`,category:`agentic`,agent:`forgeqe-heal`,runs:[`forgeqe-heal`],about:`Fixes tests the application outgrew, such as a moved button or a renamed field, and says what it changed.`,starters:[{label:`Heal failing tests`,text:`Heal the tests that failed in last night's run`}]},{id:`migration`,short:`Migrates test suites`,category:`agentic`,agent:`forgeqe-migrate`,runs:[`forgeqe-migrate`],about:`Moves a test suite to another framework or language, such as Selenium Java to Playwright, after a plan you confirm; ForgeQE runs every migrated test.`,opens:[`migration`],starters:[{label:`Plan a migration`,text:`Plan migrating our Selenium tests in tests/ to Playwright TypeScript`}]},{id:`tosca`,short:`Converts Tosca tests`,category:`agentic`,agent:`forgeqe-tosca`,runs:[`forgeqe-tosca`],about:`Converts Tricentis Tosca test cases from a .tsu export into Playwright, Cypress, Selenium or WebdriverIO tests, after a plan you confirm; every Tosca step and check is kept, and ForgeQE runs every converted test.`,opens:[`tosca`],starters:[{label:`Inspect an export`,text:`What does the Tosca export tosca/checkout.tsu hold?`},{label:`Plan a conversion`,text:`Plan converting tosca/checkout.tsu to Playwright TypeScript`}]},{id:`api`,short:`Writes API tests`,category:`native`,agent:`forgeqe-api`,runs:[`forgeqe-api`],about:`Writes API and contract tests in your repository from your API's description, with test data from your databases.`,starters:[{label:`Contract tests`,text:`Write contract tests for the orders API`}]},{id:`db`,short:`Finds test data`,category:`native`,agent:`forgeqe-data`,runs:[`forgeqe-data`,`Miner`],about:`Reads your connected databases and answers in your words: the test data a test needs, as existing rows or new ones with their INSERT script, and queries, data checks and database test scripts. The other agents ask it before they run.`,starters:[{label:`Find test data`,text:`Find two customers with paid orders for the checkout test`},{label:`Check the data`,text:`Check the orders table: no order without a customer, no negative totals`}]},{id:`persona`,short:`Business personas`,category:`native`,agent:`forgeqe-persona`,runs:[`forgeqe-persona`,`Mask`],about:`Describes the people who validate your software the way the business does: a subject matter expert such as a payments SME, an end user, a specialist or a business user, with what each one checks before they accept it. Every agent can act as one or test for one.`,starters:[{label:`A payments SME`,text:`Create a persona of an SME in card payments who reconciles settlements and handles refunds`},{label:`Test as a customer`,text:`Test the checkout as the retail-customer persona`}]},{id:`business`,short:`Business assurance`,category:`agentic`,agent:`forgeqe-business-strategist`,runs:[`forgeqe-business-strategist`,`Scenario Strategist`,`forgeqe-business-interviewer`,`Echo`],about:`Tests how your business really works: what customers, employees and opportunists could do with it, what the business could lose, and the evidence of each outcome. It plays business scenarios as personas through your API on a test environment and judges the business result, not the HTTP status.`,starters:[{label:`Refunds and coupons`,text:`Test our refunds and coupons the way an opportunistic customer would`},{label:`What could we lose?`,text:`Find business-logic flaws in the order process`}]},{id:`api-planning`,short:`Plans API scenarios`,category:`native`,agent:`forgeqe-api-plan`,runs:[`forgeqe-api-plan`],about:`Plans end-to-end API scenarios from your API's description: the calls, their order and what each checks.`,starters:[{label:`Plan scenarios`,text:`Plan end-to-end scenarios for the payments API`}]},{id:`review`,short:`Reviews written tests`,category:`assisted`,agent:`forgeqe-review`,runs:[`forgeqe-review`],about:`Reviews the tests Quill wrote against your team's rules before you take them.`,starters:[{label:`Review tests`,text:`Review the tests written in my last chat`}]},{id:`pr-review`,short:`Reviews pull requests`,category:`assisted`,agent:`forgeqe-pr-review`,runs:[`forgeqe-pr-review`],about:`Reviews a pull request's tests and changes, and says what is missing or risky.`,starters:[{label:`Review a pull request`,text:`Review the tests in pull request 42`}]},{id:`root-cause`,short:`Explains failures`,category:`native`,agent:`forgeqe-defect-rca`,runs:[`forgeqe-defect-rca`],about:`Finds why a test failed: the defect, the step where it showed, and the evidence for it.`,starters:[{label:`Find a root cause`,text:`Find the root cause of last night's checkout failure`}]},{id:`refine`,short:`Clarifies a request`,category:`assisted`,agent:`forgeqe-refine`,runs:[`forgeqe-refine`],about:`Turns a rough request into a clear task: the steps, the data and the checks that say it worked.`,starters:[{label:`Refine a request`,text:`Test the refund journey for an order that was partly paid by gift card`}]},{id:`evaluation`,short:`Scores test cases`,category:`assisted`,agent:`forgeqe-judge`,runs:[`forgeqe-judge`],about:`Scores test cases against what a domain expert expects them to cover, for ForgeQE's domain evaluations.`,starters:[{label:`Evaluate cases`,text:`Evaluate how well our test cases cover the payments domain`}]},{id:`model-rating`,short:`Rates your models`,category:`assisted`,agent:`forgeqe-model-profile`,runs:[`forgeqe-model-profile`],about:`Rates your configured models for each kind of ForgeQE work, so model routing picks the right one.`,starters:[{label:`Rate the models`,text:`Rate the configured models for routing`}]},{id:`research`,short:`Looks things up`,category:`agentic`,agent:`explore`,runs:[`explore`],about:`Searches and reads the repository and web pages for the agent that calls it; it changes nothing.`,starters:[{label:`Look something up`,text:`Find where the checkout page object is defined`}]},{id:`helper`,short:`Takes on sub-tasks`,category:`agentic`,agent:`general`,runs:[`general`],about:`Takes on a part of a bigger task for the agent that calls it, with the same tools.`,starters:[{label:`Split a task`,text:`Check the three login tests in parallel and summarise what fails`}]}],rr=e=>nr.find(t=>t.id===e);function ir(e,t=`all`){let n=e.toLowerCase().split(/\s+/).filter(Boolean),r=e=>tr.find(t=>t.id===e)?.label||``;return nr.filter(e=>(t===`all`||e.category===t)&&n.every(t=>`${Qn(e.agent).name} ${e.id} ${e.short} ${e.about} ${r(e.category)}`.toLowerCase().includes(t)))}var ar=`category`,or=e=>tr.find(t=>t.id===e);function sr(e){try{let t=JSON.parse(e||`[]`);return Array.isArray(t)?[...new Set(t.filter(e=>typeof e==`string`&&(rr(e)!==void 0||dr(e)!==void 0)))]:[]}catch{return[]}}var cr=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function lr(e,t=`merge`){let n=[...Wn].join(`,`);t===`replace`&&(Un.clear(),Wn.clear());for(let t of e)typeof t.id!=`string`||!cr.test(t.id)||t.id.length>40||(Wn.add(t.id),Vn(t.icon)?Un.set(t.id,t.icon):Un.delete(t.id));[...Wn].join(`,`)!==n&&Gn++}var ur=e=>`custom:${e}`;function dr(e){let t=e.startsWith(`custom:`)?e.slice(7):``;return cr.test(t)&&t.length<=40?t:void 0}function fr(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean);return e.filter(e=>n.every(t=>`${e.name} ${e.id} ${e.description} custom`.toLowerCase().includes(t)))}var pr=`ph:acorn.ph:activity.ph:address-book.ph:address-book-tabs.ph:air-traffic-control.ph:airplane.ph:airplane-in-flight.ph:airplane-landing.ph:airplane-takeoff.ph:airplane-taxiing.ph:airplane-tilt.ph:airplay.ph:alarm.ph:alien.ph:align-bottom.ph:align-bottom-simple.ph:align-center-horizontal.ph:align-center-horizontal-simple.ph:align-center-vertical.ph:align-center-vertical-simple.ph:align-left.ph:align-left-simple.ph:align-right.ph:align-right-simple.ph:align-top.ph:align-top-simple.ph:amazon-logo.ph:ambulance.ph:anchor.ph:anchor-simple.ph:android-logo.ph:angle.ph:angular-logo.ph:aperture.ph:app-store-logo.ph:app-window.ph:apple-logo.ph:apple-podcasts-logo.ph:approximate-equals.ph:archive.ph:armchair.ph:arrow-arc-left.ph:arrow-arc-right.ph:arrow-bend-double-up-left.ph:arrow-bend-double-up-right.ph:arrow-bend-down-left.ph:arrow-bend-down-right.ph:arrow-bend-left-down.ph:arrow-bend-left-up.ph:arrow-bend-right-down.ph:arrow-bend-right-up.ph:arrow-bend-up-left.ph:arrow-bend-up-right.ph:arrow-circle-down.ph:arrow-circle-down-left.ph:arrow-circle-down-right.ph:arrow-circle-left.ph:arrow-circle-right.ph:arrow-circle-up.ph:arrow-circle-up-left.ph:arrow-circle-up-right.ph:arrow-clockwise.ph:arrow-counter-clockwise.ph:arrow-down.ph:arrow-down-left.ph:arrow-down-right.ph:arrow-elbow-down-left.ph:arrow-elbow-down-right.ph:arrow-elbow-left.ph:arrow-elbow-left-down.ph:arrow-elbow-left-up.ph:arrow-elbow-right.ph:arrow-elbow-right-down.ph:arrow-elbow-right-up.ph:arrow-elbow-up-left.ph:arrow-elbow-up-right.ph:arrow-fat-down.ph:arrow-fat-left.ph:arrow-fat-line-down.ph:arrow-fat-line-left.ph:arrow-fat-line-right.ph:arrow-fat-line-up.ph:arrow-fat-lines-down.ph:arrow-fat-lines-left.ph:arrow-fat-lines-right.ph:arrow-fat-lines-up.ph:arrow-fat-right.ph:arrow-fat-up.ph:arrow-left.ph:arrow-line-down.ph:arrow-line-down-left.ph:arrow-line-down-right.ph:arrow-line-left.ph:arrow-line-right.ph:arrow-line-up.ph:arrow-line-up-left.ph:arrow-line-up-right.ph:arrow-right.ph:arrow-square-down.ph:arrow-square-down-left.ph:arrow-square-down-right.ph:arrow-square-in.ph:arrow-square-left.ph:arrow-square-out.ph:arrow-square-right.ph:arrow-square-up.ph:arrow-square-up-left.ph:arrow-square-up-right.ph:arrow-u-down-left.ph:arrow-u-down-right.ph:arrow-u-left-down.ph:arrow-u-left-up.ph:arrow-u-right-down.ph:arrow-u-right-up.ph:arrow-u-up-left.ph:arrow-u-up-right.ph:arrow-up.ph:arrow-up-left.ph:arrow-up-right.ph:arrows-clockwise.ph:arrows-counter-clockwise.ph:arrows-down-up.ph:arrows-horizontal.ph:arrows-in.ph:arrows-in-cardinal.ph:arrows-in-line-horizontal.ph:arrows-in-line-vertical.ph:arrows-in-simple.ph:arrows-left-right.ph:arrows-merge.ph:arrows-out.ph:arrows-out-cardinal.ph:arrows-out-line-horizontal.ph:arrows-out-line-vertical.ph:arrows-out-simple.ph:arrows-split.ph:arrows-vertical.ph:article.ph:article-medium.ph:article-ny-times.ph:asclepius.ph:asterisk.ph:asterisk-simple.ph:at.ph:atom.ph:avocado.ph:axe.ph:baby.ph:baby-carriage.ph:backpack.ph:backspace.ph:bag.ph:bag-simple.ph:balloon.ph:bandaids.ph:bank.ph:barbell.ph:barcode.ph:barn.ph:barricade.ph:baseball.ph:baseball-cap.ph:baseball-helmet.ph:basket.ph:basketball.ph:bathtub.ph:battery-charging.ph:battery-charging-vertical.ph:battery-empty.ph:battery-full.ph:battery-high.ph:battery-low.ph:battery-medium.ph:battery-plus.ph:battery-plus-vertical.ph:battery-vertical-empty.ph:battery-vertical-full.ph:battery-vertical-high.ph:battery-vertical-low.ph:battery-vertical-medium.ph:battery-warning.ph:battery-warning-vertical.ph:beach-ball.ph:beanie.ph:bed.ph:beer-bottle.ph:beer-stein.ph:behance-logo.ph:bell.ph:bell-ringing.ph:bell-simple.ph:bell-simple-ringing.ph:bell-simple-slash.ph:bell-simple-z.ph:bell-slash.ph:bell-z.ph:belt.ph:bezier-curve.ph:bicycle.ph:binary.ph:binoculars.ph:biohazard.ph:bird.ph:blueprint.ph:bluetooth.ph:bluetooth-connected.ph:bluetooth-slash.ph:bluetooth-x.ph:boat.ph:bomb.ph:bone.ph:book.ph:book-bookmark.ph:book-open.ph:book-open-text.ph:book-open-user.ph:bookmark.ph:bookmark-simple.ph:bookmarks.ph:bookmarks-simple.ph:books.ph:boot.ph:boules.ph:bounding-box.ph:bowl-food.ph:bowl-steam.ph:bowling-ball.ph:box-arrow-down.ph:box-arrow-up.ph:boxing-glove.ph:brackets-angle.ph:brackets-curly.ph:brackets-round.ph:brackets-square.ph:brain.ph:brandy.ph:bread.ph:bridge.ph:briefcase.ph:briefcase-metal.ph:briefcase-simple.ph:broadcast.ph:broom.ph:browser.ph:browsers.ph:bug.ph:bug-beetle.ph:bug-droid.ph:building.ph:building-apartment.ph:building-office.ph:buildings.ph:bulldozer.ph:bus.ph:butterfly.ph:cable-car.ph:cactus.ph:cake.ph:calculator.ph:calendar.ph:calendar-blank.ph:calendar-check.ph:calendar-dot.ph:calendar-dots.ph:calendar-heart.ph:calendar-minus.ph:calendar-plus.ph:calendar-slash.ph:calendar-star.ph:calendar-x.ph:call-bell.ph:camera.ph:camera-plus.ph:camera-rotate.ph:camera-slash.ph:campfire.ph:car.ph:car-battery.ph:car-profile.ph:car-simple.ph:cardholder.ph:cards.ph:cards-three.ph:caret-circle-double-down.ph:caret-circle-double-left.ph:caret-circle-double-right.ph:caret-circle-double-up.ph:caret-circle-down.ph:caret-circle-left.ph:caret-circle-right.ph:caret-circle-up.ph:caret-circle-up-down.ph:caret-double-down.ph:caret-double-left.ph:caret-double-right.ph:caret-double-up.ph:caret-down.ph:caret-left.ph:caret-line-down.ph:caret-line-left.ph:caret-line-right.ph:caret-line-up.ph:caret-right.ph:caret-up.ph:caret-up-down.ph:carrot.ph:cash-register.ph:cassette-tape.ph:castle-turret.ph:cat.ph:cell-signal-full.ph:cell-signal-high.ph:cell-signal-low.ph:cell-signal-medium.ph:cell-signal-none.ph:cell-signal-slash.ph:cell-signal-x.ph:cell-tower.ph:certificate.ph:chair.ph:chalkboard.ph:chalkboard-simple.ph:chalkboard-teacher.ph:champagne.ph:charging-station.ph:chart-bar.ph:chart-bar-horizontal.ph:chart-donut.ph:chart-line.ph:chart-line-down.ph:chart-line-up.ph:chart-pie.ph:chart-pie-slice.ph:chart-polar.ph:chart-scatter.ph:chat.ph:chat-centered.ph:chat-centered-dots.ph:chat-centered-slash.ph:chat-centered-text.ph:chat-circle.ph:chat-circle-dots.ph:chat-circle-slash.ph:chat-circle-text.ph:chat-dots.ph:chat-slash.ph:chat-teardrop.ph:chat-teardrop-dots.ph:chat-teardrop-slash.ph:chat-teardrop-text.ph:chat-text.ph:chats.ph:chats-circle.ph:chats-teardrop.ph:check.ph:check-circle.ph:check-fat.ph:check-square.ph:check-square-offset.ph:checkerboard.ph:checks.ph:cheers.ph:cheese.ph:chef-hat.ph:cherries.ph:church.ph:cigarette.ph:cigarette-slash.ph:circle.ph:circle-dashed.ph:circle-half.ph:circle-half-tilt.ph:circle-notch.ph:circle-wavy.ph:circle-wavy-check.ph:circle-wavy-question.ph:circle-wavy-warning.ph:circles-four.ph:circles-three.ph:circles-three-plus.ph:circuitry.ph:city.ph:clipboard.ph:clipboard-text.ph:clock.ph:clock-afternoon.ph:clock-clockwise.ph:clock-countdown.ph:clock-counter-clockwise.ph:clock-user.ph:closed-captioning.ph:cloud.ph:cloud-arrow-down.ph:cloud-arrow-up.ph:cloud-check.ph:cloud-fog.ph:cloud-lightning.ph:cloud-moon.ph:cloud-rain.ph:cloud-slash.ph:cloud-snow.ph:cloud-sun.ph:cloud-warning.ph:cloud-x.ph:clover.ph:club.ph:coat-hanger.ph:coda-logo.ph:code.ph:code-block.ph:code-simple.ph:codepen-logo.ph:codesandbox-logo.ph:coffee.ph:coffee-bean.ph:coin.ph:coin-vertical.ph:coins.ph:columns.ph:columns-plus-left.ph:columns-plus-right.ph:command.ph:compass.ph:compass-rose.ph:compass-tool.ph:computer-tower.ph:confetti.ph:contactless-payment.ph:control.ph:cookie.ph:cooking-pot.ph:copy.ph:copy-simple.ph:copyleft.ph:copyright.ph:corners-in.ph:corners-out.ph:couch.ph:court-basketball.ph:cow.ph:cowboy-hat.ph:cpu.ph:crane.ph:crane-tower.ph:credit-card.ph:cricket.ph:crop.ph:cross.ph:crosshair.ph:crosshair-simple.ph:crown.ph:crown-cross.ph:crown-simple.ph:cube.ph:cube-focus.ph:cube-transparent.ph:currency-btc.ph:currency-circle-dollar.ph:currency-cny.ph:currency-dollar.ph:currency-dollar-simple.ph:currency-eth.ph:currency-eur.ph:currency-gbp.ph:currency-inr.ph:currency-jpy.ph:currency-krw.ph:currency-kzt.ph:currency-ngn.ph:currency-rub.ph:cursor.ph:cursor-click.ph:cursor-text.ph:cylinder.ph:database.ph:desk.ph:desktop.ph:desktop-tower.ph:detective.ph:dev-to-logo.ph:device-mobile.ph:device-mobile-camera.ph:device-mobile-slash.ph:device-mobile-speaker.ph:device-rotate.ph:device-tablet.ph:device-tablet-camera.ph:device-tablet-speaker.ph:devices.ph:diamond.ph:diamonds-four.ph:dice-five.ph:dice-four.ph:dice-one.ph:dice-six.ph:dice-three.ph:dice-two.ph:disc.ph:disco-ball.ph:discord-logo.ph:divide.ph:dna.ph:dog.ph:door.ph:door-open.ph:dot.ph:dot-outline.ph:dots-nine.ph:dots-six.ph:dots-six-vertical.ph:dots-three.ph:dots-three-circle.ph:dots-three-circle-vertical.ph:dots-three-outline.ph:dots-three-outline-vertical.ph:dots-three-vertical.ph:download.ph:download-simple.ph:dress.ph:dresser.ph:dribbble-logo.ph:drone.ph:drop.ph:drop-half.ph:drop-half-bottom.ph:drop-simple.ph:drop-slash.ph:dropbox-logo.ph:ear.ph:ear-slash.ph:egg.ph:egg-crack.ph:eject.ph:eject-simple.ph:elevator.ph:empty.ph:engine.ph:envelope.ph:envelope-open.ph:envelope-simple.ph:envelope-simple-open.ph:equalizer.ph:equals.ph:eraser.ph:escalator-down.ph:escalator-up.ph:exam.ph:exclamation-mark.ph:exclude.ph:exclude-square.ph:export.ph:eye.ph:eye-closed.ph:eye-slash.ph:eyedropper.ph:eyedropper-sample.ph:eyeglasses.ph:eyes.ph:face-mask.ph:facebook-logo.ph:factory.ph:faders.ph:faders-horizontal.ph:fallout-shelter.ph:fan.ph:farm.ph:fast-forward.ph:fast-forward-circle.ph:feather.ph:fediverse-logo.ph:figma-logo.ph:file.ph:file-archive.ph:file-arrow-down.ph:file-arrow-up.ph:file-audio.ph:file-c.ph:file-c-sharp.ph:file-cloud.ph:file-code.ph:file-cpp.ph:file-css.ph:file-csv.ph:file-dashed.ph:file-doc.ph:file-dotted.ph:file-html.ph:file-image.ph:file-ini.ph:file-jpg.ph:file-js.ph:file-jsx.ph:file-lock.ph:file-magnifying-glass.ph:file-md.ph:file-minus.ph:file-pdf.ph:file-plus.ph:file-png.ph:file-ppt.ph:file-py.ph:file-rs.ph:file-search.ph:file-sql.ph:file-svg.ph:file-text.ph:file-ts.ph:file-tsx.ph:file-txt.ph:file-video.ph:file-vue.ph:file-x.ph:file-xls.ph:file-zip.ph:files.ph:film-reel.ph:film-script.ph:film-slate.ph:film-strip.ph:fingerprint.ph:fingerprint-simple.ph:finn-the-human.ph:fire.ph:fire-extinguisher.ph:fire-simple.ph:fire-truck.ph:first-aid.ph:first-aid-kit.ph:fish.ph:fish-simple.ph:flag.ph:flag-banner.ph:flag-banner-fold.ph:flag-checkered.ph:flag-pennant.ph:flame.ph:flashlight.ph:flask.ph:flip-horizontal.ph:flip-vertical.ph:floppy-disk.ph:floppy-disk-back.ph:flow-arrow.ph:flower.ph:flower-lotus.ph:flower-tulip.ph:flying-saucer.ph:folder.ph:folder-dashed.ph:folder-dotted.ph:folder-lock.ph:folder-minus.ph:folder-notch.ph:folder-notch-minus.ph:folder-notch-open.ph:folder-notch-plus.ph:folder-open.ph:folder-plus.ph:folder-simple.ph:folder-simple-dashed.ph:folder-simple-dotted.ph:folder-simple-lock.ph:folder-simple-minus.ph:folder-simple-plus.ph:folder-simple-star.ph:folder-simple-user.ph:folder-star.ph:folder-user.ph:folders.ph:football.ph:football-helmet.ph:footprints.ph:fork-knife.ph:four-k.ph:frame-corners.ph:framer-logo.ph:function.ph:funnel.ph:funnel-simple.ph:funnel-simple-x.ph:funnel-x.ph:game-controller.ph:garage.ph:gas-can.ph:gas-pump.ph:gauge.ph:gavel.ph:gear.ph:gear-fine.ph:gear-six.ph:gender-female.ph:gender-intersex.ph:gender-male.ph:gender-neuter.ph:gender-nonbinary.ph:gender-transgender.ph:ghost.ph:gif.ph:gift.ph:git-branch.ph:git-commit.ph:git-diff.ph:git-fork.ph:git-merge.ph:git-pull-request.ph:github-logo.ph:gitlab-logo.ph:gitlab-logo-simple.ph:globe.ph:globe-hemisphere-east.ph:globe-hemisphere-west.ph:globe-simple.ph:globe-simple-x.ph:globe-stand.ph:globe-x.ph:goggles.ph:golf.ph:goodreads-logo.ph:google-cardboard-logo.ph:google-chrome-logo.ph:google-drive-logo.ph:google-logo.ph:google-photos-logo.ph:google-play-logo.ph:google-podcasts-logo.ph:gps.ph:gps-fix.ph:gps-slash.ph:gradient.ph:graduation-cap.ph:grains.ph:grains-slash.ph:graph.ph:graphics-card.ph:greater-than.ph:greater-than-or-equal.ph:grid-four.ph:grid-nine.ph:guitar.ph:hair-dryer.ph:hamburger.ph:hammer.ph:hand.ph:hand-arrow-down.ph:hand-arrow-up.ph:hand-coins.ph:hand-deposit.ph:hand-eye.ph:hand-fist.ph:hand-grabbing.ph:hand-heart.ph:hand-palm.ph:hand-peace.ph:hand-pointing.ph:hand-soap.ph:hand-swipe-left.ph:hand-swipe-right.ph:hand-tap.ph:hand-waving.ph:hand-withdraw.ph:handbag.ph:handbag-simple.ph:hands-clapping.ph:hands-praying.ph:handshake.ph:hard-drive.ph:hard-drives.ph:hard-hat.ph:hash.ph:hash-straight.ph:head-circuit.ph:headlights.ph:headphones.ph:headset.ph:heart.ph:heart-break.ph:heart-half.ph:heart-straight.ph:heart-straight-break.ph:heartbeat.ph:hexagon.ph:high-definition.ph:high-heel.ph:highlighter.ph:highlighter-circle.ph:hockey.ph:hoodie.ph:horse.ph:hospital.ph:hourglass.ph:hourglass-high.ph:hourglass-low.ph:hourglass-medium.ph:hourglass-simple.ph:hourglass-simple-high.ph:hourglass-simple-low.ph:hourglass-simple-medium.ph:house.ph:house-line.ph:house-simple.ph:hurricane.ph:ice-cream.ph:identification-badge.ph:identification-card.ph:image.ph:image-broken.ph:image-square.ph:images.ph:images-square.ph:infinity.ph:info.ph:instagram-logo.ph:intersect.ph:intersect-square.ph:intersect-three.ph:intersection.ph:invoice.ph:island.ph:jar.ph:jar-label.ph:jeep.ph:joystick.ph:kanban.ph:key.ph:key-return.ph:keyboard.ph:keyhole.ph:knife.ph:ladder.ph:ladder-simple.ph:lamp.ph:lamp-pendant.ph:laptop.ph:lasso.ph:lastfm-logo.ph:layout.ph:leaf.ph:lectern.ph:lego.ph:lego-smiley.ph:less-than.ph:less-than-or-equal.ph:letter-circle-h.ph:letter-circle-p.ph:letter-circle-v.ph:lifebuoy.ph:lightbulb.ph:lightbulb-filament.ph:lighthouse.ph:lightning.ph:lightning-a.ph:lightning-slash.ph:line-segment.ph:line-segments.ph:line-vertical.ph:link.ph:link-break.ph:link-simple.ph:link-simple-break.ph:link-simple-horizontal.ph:link-simple-horizontal-break.ph:linkedin-logo.ph:linktree-logo.ph:linux-logo.ph:list.ph:list-bullets.ph:list-checks.ph:list-dashes.ph:list-heart.ph:list-magnifying-glass.ph:list-numbers.ph:list-plus.ph:list-star.ph:lock.ph:lock-key.ph:lock-key-open.ph:lock-laminated.ph:lock-laminated-open.ph:lock-open.ph:lock-simple.ph:lock-simple-open.ph:lockers.ph:log.ph:magic-wand.ph:magnet.ph:magnet-straight.ph:magnifying-glass.ph:magnifying-glass-minus.ph:magnifying-glass-plus.ph:mailbox.ph:map-pin.ph:map-pin-area.ph:map-pin-line.ph:map-pin-plus.ph:map-pin-simple.ph:map-pin-simple-area.ph:map-pin-simple-line.ph:map-trifold.ph:markdown-logo.ph:marker-circle.ph:martini.ph:mask-happy.ph:mask-sad.ph:mastodon-logo.ph:math-operations.ph:matrix-logo.ph:medal.ph:medal-military.ph:medium-logo.ph:megaphone.ph:megaphone-simple.ph:member-of.ph:memory.ph:messenger-logo.ph:meta-logo.ph:meteor.ph:metronome.ph:microphone.ph:microphone-slash.ph:microphone-stage.ph:microscope.ph:microsoft-excel-logo.ph:microsoft-outlook-logo.ph:microsoft-powerpoint-logo.ph:microsoft-teams-logo.ph:microsoft-word-logo.ph:minus.ph:minus-circle.ph:minus-square.ph:money.ph:money-wavy.ph:monitor.ph:monitor-arrow-up.ph:monitor-play.ph:moon.ph:moon-stars.ph:moped.ph:moped-front.ph:mosque.ph:motorcycle.ph:mountains.ph:mouse.ph:mouse-left-click.ph:mouse-middle-click.ph:mouse-right-click.ph:mouse-scroll.ph:mouse-simple.ph:music-note.ph:music-note-simple.ph:music-notes.ph:music-notes-minus.ph:music-notes-plus.ph:music-notes-simple.ph:navigation-arrow.ph:needle.ph:network.ph:network-slash.ph:network-x.ph:newspaper.ph:newspaper-clipping.ph:not-equals.ph:not-member-of.ph:not-subset-of.ph:not-superset-of.ph:notches.ph:note.ph:note-blank.ph:note-pencil.ph:notebook.ph:notepad.ph:notification.ph:notion-logo.ph:nuclear-plant.ph:number-circle-eight.ph:number-circle-five.ph:number-circle-four.ph:number-circle-nine.ph:number-circle-one.ph:number-circle-seven.ph:number-circle-six.ph:number-circle-three.ph:number-circle-two.ph:number-circle-zero.ph:number-eight.ph:number-five.ph:number-four.ph:number-nine.ph:number-one.ph:number-seven.ph:number-six.ph:number-square-eight.ph:number-square-five.ph:number-square-four.ph:number-square-nine.ph:number-square-one.ph:number-square-seven.ph:number-square-six.ph:number-square-three.ph:number-square-two.ph:number-square-zero.ph:number-three.ph:number-two.ph:number-zero.ph:numpad.ph:nut.ph:ny-times-logo.ph:octagon.ph:office-chair.ph:onigiri.ph:open-ai-logo.ph:option.ph:orange.ph:orange-slice.ph:oven.ph:package.ph:paint-brush.ph:paint-brush-broad.ph:paint-brush-household.ph:paint-bucket.ph:paint-roller.ph:palette.ph:panorama.ph:pants.ph:paper-plane.ph:paper-plane-right.ph:paper-plane-tilt.ph:paperclip.ph:paperclip-horizontal.ph:parachute.ph:paragraph.ph:parallelogram.ph:park.ph:password.ph:path.ph:patreon-logo.ph:pause.ph:pause-circle.ph:paw-print.ph:paypal-logo.ph:peace.ph:pen.ph:pen-nib.ph:pen-nib-straight.ph:pencil.ph:pencil-circle.ph:pencil-line.ph:pencil-ruler.ph:pencil-simple.ph:pencil-simple-line.ph:pencil-simple-slash.ph:pencil-slash.ph:pentagon.ph:pentagram.ph:pepper.ph:percent.ph:person.ph:person-arms-spread.ph:person-simple.ph:person-simple-bike.ph:person-simple-circle.ph:person-simple-hike.ph:person-simple-run.ph:person-simple-ski.ph:person-simple-snowboard.ph:person-simple-swim.ph:person-simple-tai-chi.ph:person-simple-throw.ph:person-simple-walk.ph:perspective.ph:phone.ph:phone-call.ph:phone-disconnect.ph:phone-incoming.ph:phone-list.ph:phone-outgoing.ph:phone-pause.ph:phone-plus.ph:phone-slash.ph:phone-transfer.ph:phone-x.ph:phosphor-logo.ph:pi.ph:piano-keys.ph:picnic-table.ph:picture-in-picture.ph:piggy-bank.ph:pill.ph:ping-pong.ph:pint-glass.ph:pinterest-logo.ph:pinwheel.ph:pipe.ph:pipe-wrench.ph:pix-logo.ph:pizza.ph:placeholder.ph:planet.ph:plant.ph:play.ph:play-circle.ph:play-pause.ph:playlist.ph:plug.ph:plug-charging.ph:plugs.ph:plugs-connected.ph:plus.ph:plus-circle.ph:plus-minus.ph:plus-square.ph:poker-chip.ph:police-car.ph:polygon.ph:popcorn.ph:popsicle.ph:potted-plant.ph:power.ph:prescription.ph:presentation.ph:presentation-chart.ph:printer.ph:prohibit.ph:prohibit-inset.ph:projector-screen.ph:projector-screen-chart.ph:pulse.ph:push-pin.ph:push-pin-simple.ph:push-pin-simple-slash.ph:push-pin-slash.ph:puzzle-piece.ph:qr-code.ph:question.ph:question-mark.ph:queue.ph:quotes.ph:rabbit.ph:racquet.ph:radical.ph:radio.ph:radio-button.ph:radioactive.ph:rainbow.ph:rainbow-cloud.ph:ranking.ph:read-cv-logo.ph:receipt.ph:receipt-x.ph:record.ph:rectangle.ph:rectangle-dashed.ph:recycle.ph:reddit-logo.ph:repeat.ph:repeat-once.ph:replit-logo.ph:resize.ph:rewind.ph:rewind-circle.ph:road-horizon.ph:robot.ph:rocket.ph:rocket-launch.ph:rows.ph:rows-plus-bottom.ph:rows-plus-top.ph:rss.ph:rss-simple.ph:rug.ph:ruler.ph:sailboat.ph:scales.ph:scan.ph:scan-smiley.ph:scissors.ph:scooter.ph:screencast.ph:screwdriver.ph:scribble.ph:scribble-loop.ph:scroll.ph:seal.ph:seal-check.ph:seal-percent.ph:seal-question.ph:seal-warning.ph:seat.ph:seatbelt.ph:security-camera.ph:selection.ph:selection-all.ph:selection-background.ph:selection-foreground.ph:selection-inverse.ph:selection-plus.ph:selection-slash.ph:shapes.ph:share.ph:share-fat.ph:share-network.ph:shield.ph:shield-check.ph:shield-checkered.ph:shield-chevron.ph:shield-plus.ph:shield-slash.ph:shield-star.ph:shield-warning.ph:shipping-container.ph:shirt-folded.ph:shooting-star.ph:shopping-bag.ph:shopping-bag-open.ph:shopping-cart.ph:shopping-cart-simple.ph:shovel.ph:shower.ph:shrimp.ph:shuffle.ph:shuffle-angular.ph:shuffle-simple.ph:sidebar.ph:sidebar-simple.ph:sigma.ph:sign-in.ph:sign-out.ph:signature.ph:signpost.ph:sim-card.ph:siren.ph:sketch-logo.ph:skip-back.ph:skip-back-circle.ph:skip-forward.ph:skip-forward-circle.ph:skull.ph:skype-logo.ph:slack-logo.ph:sliders.ph:sliders-horizontal.ph:slideshow.ph:smiley.ph:smiley-angry.ph:smiley-blank.ph:smiley-meh.ph:smiley-melting.ph:smiley-nervous.ph:smiley-sad.ph:smiley-sticker.ph:smiley-wink.ph:smiley-x-eyes.ph:snapchat-logo.ph:sneaker.ph:sneaker-move.ph:snowflake.ph:soccer-ball.ph:sock.ph:solar-panel.ph:solar-roof.ph:sort-ascending.ph:sort-descending.ph:soundcloud-logo.ph:spade.ph:sparkle.ph:speaker-hifi.ph:speaker-high.ph:speaker-low.ph:speaker-none.ph:speaker-simple-high.ph:speaker-simple-low.ph:speaker-simple-none.ph:speaker-simple-slash.ph:speaker-simple-x.ph:speaker-slash.ph:speaker-x.ph:speedometer.ph:sphere.ph:spinner.ph:spinner-ball.ph:spinner-gap.ph:spiral.ph:split-horizontal.ph:split-vertical.ph:spotify-logo.ph:spray-bottle.ph:square.ph:square-half.ph:square-half-bottom.ph:square-logo.ph:square-split-horizontal.ph:square-split-vertical.ph:squares-four.ph:stack.ph:stack-minus.ph:stack-overflow-logo.ph:stack-plus.ph:stack-simple.ph:stairs.ph:stamp.ph:standard-definition.ph:star.ph:star-and-crescent.ph:star-four.ph:star-half.ph:star-of-david.ph:steam-logo.ph:steering-wheel.ph:steps.ph:stethoscope.ph:sticker.ph:stool.ph:stop.ph:stop-circle.ph:storefront.ph:strategy.ph:stripe-logo.ph:student.ph:subset-of.ph:subset-proper-of.ph:subtitles.ph:subtitles-slash.ph:subtract.ph:subtract-square.ph:subway.ph:suitcase.ph:suitcase-rolling.ph:suitcase-simple.ph:sun.ph:sun-dim.ph:sun-horizon.ph:sunglasses.ph:superset-of.ph:superset-proper-of.ph:swap.ph:swatches.ph:swimming-pool.ph:sword.ph:synagogue.ph:syringe.ph:t-shirt.ph:table.ph:tabs.ph:tag.ph:tag-chevron.ph:tag-simple.ph:target.ph:taxi.ph:tea-bag.ph:telegram-logo.ph:television.ph:television-simple.ph:tennis-ball.ph:tent.ph:terminal.ph:terminal-window.ph:test-tube.ph:text-a-underline.ph:text-aa.ph:text-align-center.ph:text-align-justify.ph:text-align-left.ph:text-align-right.ph:text-b.ph:text-bolder.ph:text-columns.ph:text-h.ph:text-h-five.ph:text-h-four.ph:text-h-one.ph:text-h-six.ph:text-h-three.ph:text-h-two.ph:text-indent.ph:text-italic.ph:text-outdent.ph:text-strikethrough.ph:text-subscript.ph:text-superscript.ph:text-t.ph:text-t-slash.ph:text-underline.ph:textbox.ph:thermometer.ph:thermometer-cold.ph:thermometer-hot.ph:thermometer-simple.ph:threads-logo.ph:three-d.ph:thumbs-down.ph:thumbs-up.ph:ticket.ph:tidal-logo.ph:tiktok-logo.ph:tilde.ph:timer.ph:tip-jar.ph:tipi.ph:tire.ph:toggle-left.ph:toggle-right.ph:toilet.ph:toilet-paper.ph:toolbox.ph:tooth.ph:tornado.ph:tote.ph:tote-simple.ph:towel.ph:tractor.ph:trademark.ph:trademark-registered.ph:traffic-cone.ph:traffic-sign.ph:traffic-signal.ph:train.ph:train-regional.ph:train-simple.ph:tram.ph:translate.ph:trash.ph:trash-simple.ph:tray.ph:tray-arrow-down.ph:tray-arrow-up.ph:treasure-chest.ph:tree.ph:tree-evergreen.ph:tree-palm.ph:tree-structure.ph:tree-view.ph:trend-down.ph:trend-up.ph:triangle.ph:triangle-dashed.ph:trolley.ph:trolley-suitcase.ph:trophy.ph:truck.ph:truck-trailer.ph:tumblr-logo.ph:twitch-logo.ph:twitter-logo.ph:umbrella.ph:umbrella-simple.ph:union.ph:unite.ph:unite-square.ph:upload.ph:upload-simple.ph:usb.ph:user.ph:user-check.ph:user-circle.ph:user-circle-check.ph:user-circle-dashed.ph:user-circle-gear.ph:user-circle-minus.ph:user-circle-plus.ph:user-focus.ph:user-gear.ph:user-list.ph:user-minus.ph:user-plus.ph:user-rectangle.ph:user-sound.ph:user-square.ph:user-switch.ph:users.ph:users-four.ph:users-three.ph:van.ph:vault.ph:vector-three.ph:vector-two.ph:vibrate.ph:video.ph:video-camera.ph:video-camera-slash.ph:video-conference.ph:vignette.ph:vinyl-record.ph:virtual-reality.ph:virus.ph:visor.ph:voicemail.ph:volleyball.ph:wall.ph:wallet.ph:warehouse.ph:warning.ph:warning-circle.ph:warning-diamond.ph:warning-octagon.ph:washing-machine.ph:watch.ph:wave-sawtooth.ph:wave-sine.ph:wave-square.ph:wave-triangle.ph:waveform.ph:waveform-slash.ph:waves.ph:webcam.ph:webcam-slash.ph:webhooks-logo.ph:wechat-logo.ph:whatsapp-logo.ph:wheelchair.ph:wheelchair-motion.ph:wifi-high.ph:wifi-low.ph:wifi-medium.ph:wifi-none.ph:wifi-slash.ph:wifi-x.ph:wind.ph:windmill.ph:windows-logo.ph:wine.ph:wrench.ph:x.ph:x-circle.ph:x-logo.ph:x-square.ph:yarn.ph:yin-yang.ph:youtube-logo.lucide:a-arrow-down.lucide:a-arrow-up.lucide:a-large-small.lucide:accessibility.lucide:activity.lucide:ad.lucide:air-vent.lucide:airplay.lucide:alarm-clock.lucide:alarm-clock-check.lucide:alarm-clock-minus.lucide:alarm-clock-off.lucide:alarm-clock-plus.lucide:alarm-smoke.lucide:album.lucide:align-center.lucide:align-center-horizontal.lucide:align-center-vertical.lucide:align-end-horizontal.lucide:align-end-vertical.lucide:align-horizontal-distribute-center.lucide:align-horizontal-distribute-end.lucide:align-horizontal-distribute-start.lucide:align-horizontal-justify-center.lucide:align-horizontal-justify-end.lucide:align-horizontal-justify-start.lucide:align-horizontal-space-around.lucide:align-horizontal-space-between.lucide:align-justify.lucide:align-left.lucide:align-right.lucide:align-start-horizontal.lucide:align-start-vertical.lucide:align-vertical-distribute-center.lucide:align-vertical-distribute-end.lucide:align-vertical-distribute-start.lucide:align-vertical-justify-center.lucide:align-vertical-justify-end.lucide:align-vertical-justify-start.lucide:align-vertical-space-around.lucide:align-vertical-space-between.lucide:ambulance.lucide:ampersand.lucide:ampersands.lucide:amphora.lucide:anchor.lucide:angle.lucide:angry.lucide:annoyed.lucide:antenna.lucide:anvil.lucide:aperture.lucide:app-window.lucide:app-window-mac.lucide:apple.lucide:archive.lucide:archive-restore.lucide:archive-x.lucide:area-chart.lucide:armchair.lucide:armenian-dram.lucide:arrow-big-down.lucide:arrow-big-down-dash.lucide:arrow-big-left.lucide:arrow-big-left-dash.lucide:arrow-big-right.lucide:arrow-big-right-dash.lucide:arrow-big-up.lucide:arrow-big-up-dash.lucide:arrow-down.lucide:arrow-down-0-1.lucide:arrow-down-1-0.lucide:arrow-down-a-z.lucide:arrow-down-from-line.lucide:arrow-down-left.lucide:arrow-down-narrow-wide.lucide:arrow-down-right.lucide:arrow-down-to-dot.lucide:arrow-down-to-line.lucide:arrow-down-up.lucide:arrow-down-wide-narrow.lucide:arrow-down-z-a.lucide:arrow-left.lucide:arrow-left-from-line.lucide:arrow-left-right.lucide:arrow-left-to-line.lucide:arrow-right.lucide:arrow-right-from-line.lucide:arrow-right-left.lucide:arrow-right-to-line.lucide:arrow-up.lucide:arrow-up-0-1.lucide:arrow-up-1-0.lucide:arrow-up-a-z.lucide:arrow-up-down.lucide:arrow-up-from-dot.lucide:arrow-up-from-line.lucide:arrow-up-left.lucide:arrow-up-narrow-wide.lucide:arrow-up-right.lucide:arrow-up-to-line.lucide:arrow-up-wide-narrow.lucide:arrow-up-z-a.lucide:arrows-up-from-line.lucide:asterisk.lucide:astroid.lucide:at-sign.lucide:atom.lucide:audio-lines.lucide:audio-lines-off.lucide:audio-lines-x.lucide:audio-waveform.lucide:avocado.lucide:award.lucide:axe.lucide:axis-3d.lucide:baby.lucide:backpack.lucide:bacon.lucide:badge.lucide:badge-alert.lucide:badge-cent.lucide:badge-check.lucide:badge-dollar-sign.lucide:badge-euro.lucide:badge-indian-rupee.lucide:badge-info.lucide:badge-japanese-yen.lucide:badge-minus.lucide:badge-percent.lucide:badge-plus.lucide:badge-pound-sterling.lucide:badge-question-mark.lucide:badge-russian-ruble.lucide:badge-swiss-franc.lucide:badge-turkish-lira.lucide:badge-x.lucide:baggage-claim.lucide:balloon.lucide:ban.lucide:banana.lucide:bandage.lucide:bangladeshi-taka.lucide:banknote.lucide:banknote-arrow-down.lucide:banknote-arrow-up.lucide:banknote-check.lucide:banknote-x.lucide:bar-chart-3.lucide:bar-chart-4.lucide:bar-chart-big.lucide:bar-chart-horizontal.lucide:bar-chart-horizontal-big.lucide:barcode.lucide:barrel.lucide:baseline.lucide:bath.lucide:battery.lucide:battery-charging.lucide:battery-full.lucide:battery-low.lucide:battery-medium.lucide:battery-plus.lucide:battery-warning.lucide:beaker.lucide:bean.lucide:bean-off.lucide:bed.lucide:bed-double.lucide:bed-single.lucide:beef.lucide:beef-off.lucide:beer.lucide:beer-off.lucide:belarusian-ruble.lucide:bell.lucide:bell-check.lucide:bell-dot.lucide:bell-electric.lucide:bell-minus.lucide:bell-off.lucide:bell-plus.lucide:bell-ring.lucide:between-horizontal-end.lucide:between-horizontal-start.lucide:between-vertical-end.lucide:between-vertical-start.lucide:biceps-flexed.lucide:bike.lucide:binary.lucide:binoculars.lucide:biohazard.lucide:bird.lucide:birdhouse.lucide:bitcoin.lucide:blend.lucide:blender.lucide:blinds.lucide:blocks.lucide:bluetooth.lucide:bluetooth-connected.lucide:bluetooth-off.lucide:bluetooth-searching.lucide:bold.lucide:bolt.lucide:bomb.lucide:bone.lucide:bone-fracture.lucide:book.lucide:book-a.lucide:book-alert.lucide:book-audio.lucide:book-bookmark.lucide:book-check.lucide:book-copy.lucide:book-dashed.lucide:book-down.lucide:book-headphones.lucide:book-heart.lucide:book-image.lucide:book-key.lucide:book-lock.lucide:book-marked.lucide:book-minus.lucide:book-open.lucide:book-open-check.lucide:book-open-text.lucide:book-plus.lucide:book-search.lucide:book-text.lucide:book-type.lucide:book-up.lucide:book-up-2.lucide:book-user.lucide:book-x.lucide:bookmark.lucide:bookmark-check.lucide:bookmark-minus.lucide:bookmark-off.lucide:bookmark-plus.lucide:bookmark-x.lucide:boom-box.lucide:bot.lucide:bot-message-square.lucide:bot-off.lucide:bottle-wine.lucide:bow-arrow.lucide:box.lucide:boxes.lucide:braces.lucide:brackets.lucide:brain.lucide:brain-circuit.lucide:brain-cog.lucide:brain-off.lucide:brick-wall.lucide:brick-wall-fire.lucide:brick-wall-shield.lucide:bridge.lucide:briefcase.lucide:briefcase-business.lucide:briefcase-conveyor-belt.lucide:briefcase-medical.lucide:briefcase-plus.lucide:bring-to-front.lucide:broccoli.lucide:broom.lucide:broom-sparkles.lucide:brush.lucide:brush-cleaning.lucide:bubbles.lucide:bug.lucide:bug-off.lucide:bug-play.lucide:building.lucide:building-complex.lucide:building-complex-plus.lucide:bus.lucide:bus-front.lucide:cable.lucide:cable-car.lucide:cake.lucide:cake-slice.lucide:calculator.lucide:calendar.lucide:calendar-1.lucide:calendar-arrow-down.lucide:calendar-arrow-up.lucide:calendar-check.lucide:calendar-check-2.lucide:calendar-chevrons-left.lucide:calendar-chevrons-right.lucide:calendar-clock.lucide:calendar-cog.lucide:calendar-days.lucide:calendar-fold.lucide:calendar-heart.lucide:calendar-minus.lucide:calendar-minus-2.lucide:calendar-off.lucide:calendar-plus.lucide:calendar-plus-2.lucide:calendar-range.lucide:calendar-search.lucide:calendar-sync.lucide:calendar-x.lucide:calendar-x-2.lucide:calendars.lucide:camera.lucide:camera-off.lucide:can.lucide:can-soda.lucide:candlestick-chart.lucide:candy.lucide:candy-cane.lucide:candy-off.lucide:cannabis.lucide:cannabis-off.lucide:captions.lucide:captions-off.lucide:car.lucide:car-battery.lucide:car-front.lucide:car-taxi-front.lucide:caravan.lucide:card-sim.lucide:carrot.lucide:carton.lucide:carton-off.lucide:case-lower.lucide:case-sensitive.lucide:case-upper.lucide:cassette-tape.lucide:cast.lucide:castle.lucide:cat.lucide:cctv.lucide:cctv-off.lucide:certificate.lucide:chart-area.lucide:chart-bar.lucide:chart-bar-big.lucide:chart-bar-decreasing.lucide:chart-bar-increasing.lucide:chart-bar-stacked.lucide:chart-candlestick.lucide:chart-column.lucide:chart-column-big.lucide:chart-column-decreasing.lucide:chart-column-increasing.lucide:chart-column-stacked.lucide:chart-gantt.lucide:chart-line.lucide:chart-network.lucide:chart-no-axes-column.lucide:chart-no-axes-column-decreasing.lucide:chart-no-axes-column-increasing.lucide:chart-no-axes-combined.lucide:chart-no-axes-gantt.lucide:chart-pie.lucide:chart-scatter.lucide:chart-spline.lucide:check.lucide:check-check.lucide:check-line.lucide:chef-hat.lucide:cherry.lucide:chess-bishop.lucide:chess-king.lucide:chess-knight.lucide:chess-pawn.lucide:chess-queen.lucide:chess-rook.lucide:chevron-down.lucide:chevron-first.lucide:chevron-last.lucide:chevron-left.lucide:chevron-right.lucide:chevron-up.lucide:chevrons-down.lucide:chevrons-down-up.lucide:chevrons-left.lucide:chevrons-left-right.lucide:chevrons-left-right-ellipsis.lucide:chevrons-right.lucide:chevrons-right-left.lucide:chevrons-up.lucide:chevrons-up-down.lucide:chrome.lucide:chromium.lucide:church.lucide:cigarette.lucide:cigarette-off.lucide:circle.lucide:circle-alert.lucide:circle-arrow-down.lucide:circle-arrow-left.lucide:circle-arrow-out-down-left.lucide:circle-arrow-out-down-right.lucide:circle-arrow-out-up-left.lucide:circle-arrow-out-up-right.lucide:circle-arrow-right.lucide:circle-arrow-up.lucide:circle-check.lucide:circle-check-big.lucide:circle-chevron-down.lucide:circle-chevron-left.lucide:circle-chevron-right.lucide:circle-chevron-up.lucide:circle-chevrons-down.lucide:circle-chevrons-left.lucide:circle-chevrons-right.lucide:circle-chevrons-up.lucide:circle-dashed.lucide:circle-dashed-check.lucide:circle-divide.lucide:circle-dollar-sign.lucide:circle-dot.lucide:circle-dot-dashed.lucide:circle-ellipsis.lucide:circle-equal.lucide:circle-euro.lucide:circle-fading-arrow-up.lucide:circle-fading-play.lucide:circle-fading-plus.lucide:circle-gauge.lucide:circle-minus.lucide:circle-off.lucide:circle-parking.lucide:circle-parking-off.lucide:circle-pause.lucide:circle-percent.lucide:circle-pile.lucide:circle-play.lucide:circle-plus.lucide:circle-pound-sterling.lucide:circle-power.lucide:circle-question-mark.lucide:circle-slash.lucide:circle-slash-2.lucide:circle-small.lucide:circle-star.lucide:circle-stop.lucide:circle-user.lucide:circle-user-round.lucide:circle-x.lucide:circuit-board.lucide:citrus.lucide:clapperboard.lucide:clef-alto.lucide:clef-bass.lucide:clef-treble.lucide:clipboard.lucide:clipboard-check.lucide:clipboard-clock.lucide:clipboard-copy.lucide:clipboard-list.lucide:clipboard-minus.lucide:clipboard-paste.lucide:clipboard-pen.lucide:clipboard-pen-line.lucide:clipboard-plus.lucide:clipboard-type.lucide:clipboard-x.lucide:clock.lucide:clock-1.lucide:clock-10.lucide:clock-11.lucide:clock-12.lucide:clock-2.lucide:clock-3.lucide:clock-4.lucide:clock-5.lucide:clock-6.lucide:clock-7.lucide:clock-8.lucide:clock-9.lucide:clock-alert.lucide:clock-arrow-down.lucide:clock-arrow-left.lucide:clock-arrow-right.lucide:clock-arrow-up.lucide:clock-check.lucide:clock-fading.lucide:clock-plus.lucide:closed-caption.lucide:cloud.lucide:cloud-alert.lucide:cloud-backup.lucide:cloud-check.lucide:cloud-cog.lucide:cloud-download.lucide:cloud-drizzle.lucide:cloud-fog.lucide:cloud-hail.lucide:cloud-lightning.lucide:cloud-moon.lucide:cloud-moon-rain.lucide:cloud-off.lucide:cloud-rain.lucide:cloud-rain-wind.lucide:cloud-snow.lucide:cloud-sun.lucide:cloud-sun-rain.lucide:cloud-sync.lucide:cloud-upload.lucide:cloudy.lucide:clover.lucide:club.lucide:code.lucide:code-xml.lucide:codepen.lucide:codesandbox.lucide:coffee.lucide:cog.lucide:coins.lucide:columns-2.lucide:columns-3.lucide:columns-3-cog.lucide:columns-4.lucide:combine.lucide:command.lucide:compass.lucide:component.lucide:computer.lucide:concierge-bell.lucide:cone.lucide:construction.lucide:contact.lucide:contact-round.lucide:container.lucide:contrast.lucide:cookie.lucide:cooking-pot.lucide:copy.lucide:copy-check.lucide:copy-minus.lucide:copy-plus.lucide:copy-slash.lucide:copy-x.lucide:copyleft.lucide:copyright.lucide:corner-down-left.lucide:corner-down-right.lucide:corner-left-down.lucide:corner-left-up.lucide:corner-right-down.lucide:corner-right-up.lucide:corner-up-left.lucide:corner-up-right.lucide:cpu.lucide:cpu-ai.lucide:creative-commons.lucide:credit-card.lucide:credit-card-check.lucide:credit-card-minus.lucide:credit-card-plus.lucide:credit-card-reader.lucide:credit-card-x.lucide:croissant.lucide:crop.lucide:cross.lucide:crosshair.lucide:crown.lucide:cuboid.lucide:cup-soda.lucide:cupcake.lucide:currency.lucide:cylinder.lucide:dam.lucide:database.lucide:database-arrow-down.lucide:database-arrow-up.lucide:database-backup.lucide:database-check.lucide:database-minus.lucide:database-plus.lucide:database-search.lucide:database-x.lucide:database-zap.lucide:decimals-arrow-left.lucide:decimals-arrow-right.lucide:delete.lucide:dessert.lucide:diameter.lucide:diamond.lucide:diamond-minus.lucide:diamond-percent.lucide:diamond-plus.lucide:dice-1.lucide:dice-2.lucide:dice-3.lucide:dice-4.lucide:dice-5.lucide:dice-6.lucide:dices.lucide:diff.lucide:disc.lucide:disc-2.lucide:disc-3.lucide:disc-album.lucide:divide.lucide:dna.lucide:dna-off.lucide:dock.lucide:dog.lucide:dollar-sign.lucide:dome.lucide:donut.lucide:door-closed.lucide:door-closed-cog.lucide:door-closed-locked.lucide:door-closed-package.lucide:door-open.lucide:door-stairwell.lucide:dot.lucide:download.lucide:drafting-compass.lucide:drama.lucide:dribbble.lucide:drill.lucide:drone.lucide:droplet.lucide:droplet-off.lucide:droplets.lucide:drum.lucide:drumstick.lucide:dumbbell.lucide:ear.lucide:ear-off.lucide:earth.lucide:earth-lock.lucide:eclipse.lucide:egg.lucide:egg-fried.lucide:egg-off.lucide:eighth-note.lucide:eighth-notes.lucide:eject.lucide:ellipse.lucide:ellipsis.lucide:ellipsis-vertical.lucide:engine.lucide:equal.lucide:equal-approximately.lucide:equal-approximately-not.lucide:equal-not.lucide:eraser.lucide:ethernet-port.lucide:euro.lucide:ev-charger.lucide:expand.lucide:external-link.lucide:eye.lucide:eye-closed.lucide:eye-dashed.lucide:eye-off.lucide:face-angry.lucide:face-expressionless.lucide:face-grinning.lucide:face-neutral.lucide:face-slightly-frowning.lucide:face-slightly-smiling.lucide:face-slightly-smiling-plus.lucide:facebook.lucide:factory.lucide:fan.lucide:fast-forward.lucide:faucet.lucide:feather.lucide:fence.lucide:ferris-wheel.lucide:figma.lucide:file.lucide:file-archive.lucide:file-audio.lucide:file-audio-2.lucide:file-axis-3d.lucide:file-badge.lucide:file-badge-2.lucide:file-box.lucide:file-braces.lucide:file-braces-corner.lucide:file-chart-column.lucide:file-chart-column-increasing.lucide:file-chart-line.lucide:file-chart-pie.lucide:file-check.lucide:file-check-2.lucide:file-check-corner.lucide:file-clock.lucide:file-code.lucide:file-code-2.lucide:file-code-corner.lucide:file-cog.lucide:file-diff.lucide:file-digit.lucide:file-down.lucide:file-exclamation-point.lucide:file-headphone.lucide:file-heart.lucide:file-image.lucide:file-input.lucide:file-json.lucide:file-json-2.lucide:file-key.lucide:file-key-2.lucide:file-lock.lucide:file-lock-2.lucide:file-minus.lucide:file-minus-2.lucide:file-minus-corner.lucide:file-music.lucide:file-output.lucide:file-pen.lucide:file-pen-line.lucide:file-pie-chart.lucide:file-play.lucide:file-plus.lucide:file-plus-2.lucide:file-plus-corner.lucide:file-question-mark.lucide:file-scan.lucide:file-search.lucide:file-search-2.lucide:file-search-corner.lucide:file-signal.lucide:file-sliders.lucide:file-spreadsheet.lucide:file-stack.lucide:file-symlink.lucide:file-terminal.lucide:file-text.lucide:file-type.lucide:file-type-2.lucide:file-type-corner.lucide:file-up.lucide:file-user.lucide:file-video-camera.lucide:file-volume.lucide:file-volume-2.lucide:file-warning.lucide:file-x.lucide:file-x-2.lucide:file-x-corner.lucide:files.lucide:film.lucide:filter.lucide:filter-x.lucide:fingerprint-pattern.lucide:fire-extinguisher.lucide:fish.lucide:fish-off.lucide:fish-symbol.lucide:fishing-hook.lucide:fishing-rod.lucide:flag.lucide:flag-off.lucide:flag-triangle-left.lucide:flag-triangle-right.lucide:flame.lucide:flame-kindling.lucide:flashlight.lucide:flashlight-off.lucide:flask-conical.lucide:flask-conical-off.lucide:flask-round.lucide:flip-horizontal-2.lucide:flip-vertical-2.lucide:flower.lucide:flower-2.lucide:focus.lucide:fold-horizontal.lucide:fold-vertical.lucide:folder.lucide:folder-archive.lucide:folder-bookmark.lucide:folder-check.lucide:folder-clock.lucide:folder-closed.lucide:folder-code.lucide:folder-cog.lucide:folder-dot.lucide:folder-down.lucide:folder-git.lucide:folder-git-2.lucide:folder-heart.lucide:folder-input.lucide:folder-kanban.lucide:folder-key.lucide:folder-lock.lucide:folder-minus.lucide:folder-open.lucide:folder-open-dot.lucide:folder-output.lucide:folder-pen.lucide:folder-plus.lucide:folder-root.lucide:folder-search.lucide:folder-search-2.lucide:folder-symlink.lucide:folder-sync.lucide:folder-tree.lucide:folder-up.lucide:folder-user.lucide:folder-users.lucide:folder-x.lucide:folders.lucide:footprints.lucide:forklift.lucide:form.lucide:forward.lucide:frame.lucide:framer.lucide:frown.lucide:fuel.lucide:fullscreen.lucide:funnel.lucide:funnel-plus.lucide:funnel-x.lucide:galaxy.lucide:gallery-horizontal.lucide:gallery-horizontal-end.lucide:gallery-thumbnails.lucide:gallery-vertical.lucide:gallery-vertical-end.lucide:gamepad.lucide:gamepad-2.lucide:gamepad-directional.lucide:gap-horizontal.lucide:gap-vertical.lucide:gauge.lucide:gavel.lucide:gem.lucide:georgian-lari.lucide:germ.lucide:germ-off.lucide:ghost.lucide:gift.lucide:git-branch.lucide:git-branch-minus.lucide:git-branch-plus.lucide:git-commit-horizontal.lucide:git-commit-vertical.lucide:git-compare.lucide:git-compare-arrows.lucide:git-fork.lucide:git-graph.lucide:git-merge.lucide:git-merge-conflict.lucide:git-pull-request.lucide:git-pull-request-arrow.lucide:git-pull-request-closed.lucide:git-pull-request-create.lucide:git-pull-request-create-arrow.lucide:git-pull-request-draft.lucide:github.lucide:gitlab.lucide:glass-water.lucide:glasses.lucide:globe.lucide:globe-check.lucide:globe-code.lucide:globe-lock.lucide:globe-off.lucide:globe-x.lucide:goal.lucide:gpu.lucide:graduation-cap.lucide:grape.lucide:graph-hub.lucide:graph-star.lucide:grid-2x2.lucide:grid-2x2-check.lucide:grid-2x2-plus.lucide:grid-2x2-x.lucide:grid-3x2.lucide:grid-3x3.lucide:grip.lucide:grip-horizontal.lucide:grip-vertical.lucide:groceries.lucide:group.lucide:guitar.lucide:guitar-electric.lucide:half-note.lucide:ham.lucide:hamburger.lucide:hammer.lucide:hand.lucide:hand-coins.lucide:hand-fist.lucide:hand-grab.lucide:hand-heart.lucide:hand-helping.lucide:hand-metal.lucide:hand-platter.lucide:handbag.lucide:handle-bottom-right.lucide:handshake.lucide:hard-drive.lucide:hard-drive-download.lucide:hard-drive-upload.lucide:hard-hat.lucide:hash.lucide:hat-glasses.lucide:haze.lucide:hd.lucide:hdmi-port.lucide:heading.lucide:heading-1.lucide:heading-2.lucide:heading-3.lucide:heading-4.lucide:heading-5.lucide:heading-6.lucide:headphone-off.lucide:headphones.lucide:headset.lucide:heart.lucide:heart-crack.lucide:heart-handshake.lucide:heart-minus.lucide:heart-off.lucide:heart-plus.lucide:heart-pulse.lucide:heart-x.lucide:heater.lucide:helicopter.lucide:hexagon.lucide:highlighter.lucide:hiking-stick.lucide:hop.lucide:hop-off.lucide:hospital.lucide:hotel.lucide:hourglass.lucide:hourglass-cog.lucide:house.lucide:house-cog.lucide:house-heart.lucide:house-plug.lucide:house-plus.lucide:house-wifi.lucide:houses.lucide:ice-cream-bowl.lucide:ice-cream-cone.lucide:id-card.lucide:id-card-lanyard.lucide:image.lucide:image-down.lucide:image-minus.lucide:image-off.lucide:image-play.lucide:image-plus.lucide:image-up.lucide:image-upscale.lucide:images.lucide:import.lucide:inbox.lucide:indent-decrease.lucide:indent-increase.lucide:indian-rupee.lucide:infinity.lucide:info.lucide:inspection-panel.lucide:instagram.lucide:italic.lucide:iteration-ccw.lucide:iteration-cw.lucide:iv-bag.lucide:japanese-yen.lucide:joystick.lucide:kanban.lucide:kayak.lucide:kazakh-tenge.lucide:key.lucide:key-round.lucide:key-square.lucide:keyboard.lucide:keyboard-music.lucide:keyboard-off.lucide:lambda.lucide:lamp.lucide:lamp-ceiling.lucide:lamp-desk.lucide:lamp-floor.lucide:lamp-wall-down.lucide:lamp-wall-up.lucide:land-plot.lucide:landmark.lucide:languages.lucide:laptop.lucide:laptop-minimal.lucide:laptop-minimal-check.lucide:lasso.lucide:lasso-select.lucide:laugh.lucide:layer-arrow-down.lucide:layer-arrow-up.lucide:layers.lucide:layers-2.lucide:layers-3.lucide:layers-arrow-down.lucide:layers-arrow-up.lucide:layers-minus.lucide:layers-plus.lucide:layout-arrow-down.lucide:layout-arrow-right.lucide:layout-dashboard.lucide:layout-freeform.lucide:layout-grid.lucide:layout-grid-circles.lucide:layout-list.lucide:layout-panel-left.lucide:layout-panel-top.lucide:layout-template.lucide:leaf.lucide:leafy-green.lucide:lectern.lucide:lens.lucide:lens-concave.lucide:lens-convex.lucide:letter-spacing.lucide:letter-text.lucide:letters.lucide:library.lucide:library-big.lucide:life-buoy.lucide:ligature.lucide:lightbulb.lucide:lightbulb-off.lucide:lighthouse.lucide:line-chart.lucide:line-dot-bottom-vertical.lucide:line-dot-left-horizontal.lucide:line-dot-right-horizontal.lucide:line-dot-top-vertical.lucide:line-height.lucide:line-squiggle.lucide:line-style.lucide:link.lucide:link-2.lucide:link-2-off.lucide:linkedin.lucide:list.lucide:list-check.lucide:list-checks.lucide:list-chevrons-down-up.lucide:list-chevrons-up-down.lucide:list-clock.lucide:list-collapse.lucide:list-end.lucide:list-filter.lucide:list-filter-plus.lucide:list-indent-decrease.lucide:list-indent-increase.lucide:list-minus.lucide:list-music.lucide:list-ordered.lucide:list-plus.lucide:list-restart.lucide:list-sort-ascending.lucide:list-sort-descending.lucide:list-start.lucide:list-todo.lucide:list-tree.lucide:list-video.lucide:list-x.lucide:loader.lucide:loader-circle.lucide:loader-pinwheel.lucide:locate.lucide:locate-fixed.lucide:locate-off.lucide:lock.lucide:lock-keyhole.lucide:lock-keyhole-open.lucide:lock-open.lucide:log-in.lucide:log-out.lucide:logs.lucide:lollipop.lucide:luggage.lucide:magnet.lucide:mail.lucide:mail-badge.lucide:mail-check.lucide:mail-clock.lucide:mail-dot.lucide:mail-minus.lucide:mail-open.lucide:mail-pen.lucide:mail-plus.lucide:mail-question-mark.lucide:mail-search.lucide:mail-warning.lucide:mail-x.lucide:mailbox.lucide:mails.lucide:map.lucide:map-minus.lucide:map-pin.lucide:map-pin-check.lucide:map-pin-check-inside.lucide:map-pin-house.lucide:map-pin-minus.lucide:map-pin-minus-inside.lucide:map-pin-off.lucide:map-pin-pen.lucide:map-pin-plus.lucide:map-pin-plus-inside.lucide:map-pin-search.lucide:map-pin-x.lucide:map-pin-x-inside.lucide:map-pinned.lucide:map-plus.lucide:mars.lucide:mars-stroke.lucide:martini.lucide:maximize.lucide:maximize-2.lucide:medal.lucide:megaphone.lucide:megaphone-off.lucide:meh.lucide:memory-stick.lucide:menu.lucide:merge.lucide:message-circle.lucide:message-circle-check.lucide:message-circle-code.lucide:message-circle-dashed.lucide:message-circle-dashed-check.lucide:message-circle-heart.lucide:message-circle-more.lucide:message-circle-off.lucide:message-circle-plus.lucide:message-circle-question-mark.lucide:message-circle-reply.lucide:message-circle-text.lucide:message-circle-warning.lucide:message-circle-x.lucide:message-square.lucide:message-square-check.lucide:message-square-code.lucide:message-square-dashed.lucide:message-square-diff.lucide:message-square-dot.lucide:message-square-heart.lucide:message-square-lock.lucide:message-square-more.lucide:message-square-off.lucide:message-square-plus.lucide:message-square-quote.lucide:message-square-reply.lucide:message-square-share.lucide:message-square-text.lucide:message-square-warning.lucide:message-square-x.lucide:messages-circle.lucide:messages-square.lucide:metronome.lucide:mic.lucide:mic-audio-lines.lucide:mic-off.lucide:mic-signal.lucide:mic-vocal.lucide:microchip.lucide:microscope.lucide:microwave.lucide:midi-port.lucide:milestone.lucide:milk.lucide:milk-off.lucide:minimize.lucide:minimize-2.lucide:minus.lucide:mirror-rectangular.lucide:mirror-round.lucide:monitor.lucide:monitor-check.lucide:monitor-cloud.lucide:monitor-cog.lucide:monitor-dot.lucide:monitor-down.lucide:monitor-off.lucide:monitor-pause.lucide:monitor-pc.lucide:monitor-play.lucide:monitor-smartphone.lucide:monitor-speaker.lucide:monitor-stop.lucide:monitor-up.lucide:monitor-x.lucide:moon.lucide:moon-star.lucide:mop.lucide:mop-sparkles.lucide:mosque.lucide:motorbike.lucide:mountain.lucide:mountain-snow.lucide:mouse.lucide:mouse-left.lucide:mouse-off.lucide:mouse-pointer.lucide:mouse-pointer-2.lucide:mouse-pointer-2-off.lucide:mouse-pointer-ban.lucide:mouse-pointer-click.lucide:mouse-right.lucide:mouth.lucide:mouth-off.lucide:move.lucide:move-3d.lucide:move-diagonal.lucide:move-diagonal-2.lucide:move-down.lucide:move-down-left.lucide:move-down-right.lucide:move-horizontal.lucide:move-left.lucide:move-right.lucide:move-up.lucide:move-up-left.lucide:move-up-right.lucide:move-vertical.lucide:music.lucide:music-2.lucide:music-4.lucide:navigation.lucide:navigation-2.lucide:navigation-2-off.lucide:navigation-off.lucide:nepali-rupee.lucide:network.lucide:newspaper.lucide:nfc.lucide:non-binary.lucide:notebook.lucide:notebook-dot.lucide:notebook-pen.lucide:notebook-tabs.lucide:notebook-text.lucide:notepad-text.lucide:notepad-text-dashed.lucide:nut.lucide:nut-off.lucide:octagon.lucide:octagon-alert.lucide:octagon-minus.lucide:octagon-pause.lucide:octagon-x.lucide:omega.lucide:option.lucide:orbit.lucide:origami.lucide:package.lucide:package-2.lucide:package-check.lucide:package-minus.lucide:package-open.lucide:package-plus.lucide:package-search.lucide:package-x.lucide:paint-bucket.lucide:paint-roller.lucide:paintbrush.lucide:paintbrush-vertical.lucide:palette.lucide:panda.lucide:panel-bottom.lucide:panel-bottom-close.lucide:panel-bottom-dashed.lucide:panel-bottom-open.lucide:panel-left.lucide:panel-left-close.lucide:panel-left-dashed.lucide:panel-left-open.lucide:panel-left-right-dashed.lucide:panel-right.lucide:panel-right-close.lucide:panel-right-dashed.lucide:panel-right-open.lucide:panel-top.lucide:panel-top-bottom-dashed.lucide:panel-top-close.lucide:panel-top-dashed.lucide:panel-top-open.lucide:panels-left-bottom.lucide:panels-right-bottom.lucide:panels-top-left.lucide:paper-bag.lucide:paperclip.lucide:parasol.lucide:parentheses.lucide:park.lucide:parking-meter.lucide:party-popper.lucide:pause.lucide:paw-print.lucide:pc-case.lucide:pen.lucide:pen-line.lucide:pen-off.lucide:pen-tool.lucide:pencil.lucide:pencil-line.lucide:pencil-off.lucide:pencil-ruler.lucide:pencil-sparkles.lucide:pentagon.lucide:percent.lucide:perfume-bottle.lucide:person-standing.lucide:phi.lucide:philippine-peso.lucide:phone.lucide:phone-call.lucide:phone-forwarded.lucide:phone-incoming.lucide:phone-log.lucide:phone-missed.lucide:phone-off.lucide:phone-outgoing.lucide:pi.lucide:piano.lucide:pickaxe.lucide:picture-in-picture.lucide:picture-in-picture-2.lucide:pie-chart.lucide:piggy-bank.lucide:pilcrow.lucide:pilcrow-left.lucide:pilcrow-right.lucide:pill.lucide:pill-bottle.lucide:pin.lucide:pin-off.lucide:pipette.lucide:pizza.lucide:plane.lucide:plane-landing.lucide:plane-takeoff.lucide:plant-pot.lucide:play.lucide:play-off.lucide:playing-card.lucide:playing-cards.lucide:playing-cards-fan.lucide:plug.lucide:plug-2.lucide:plug-zap.lucide:plus.lucide:pocket.lucide:pocket-knife.lucide:podcast.lucide:podium.lucide:pointer.lucide:pointer-off.lucide:popcorn.lucide:popsicle.lucide:pound-sterling.lucide:power.lucide:power-off.lucide:presentation.lucide:printer.lucide:printer-3d.lucide:printer-check.lucide:printer-x.lucide:projector.lucide:proportions.lucide:puzzle.lucide:pyramid.lucide:qr-code.lucide:quote.lucide:rabbit.lucide:radar.lucide:radiation.lucide:radical.lucide:radio.lucide:radio-off.lucide:radio-receiver.lucide:radio-tower.lucide:radius.lucide:rail-symbol.lucide:rainbow.lucide:rat.lucide:ratio.lucide:receipt.lucide:receipt-cent.lucide:receipt-euro.lucide:receipt-indian-rupee.lucide:receipt-japanese-yen.lucide:receipt-pound-sterling.lucide:receipt-russian-ruble.lucide:receipt-swiss-franc.lucide:receipt-text.lucide:receipt-turkish-lira.lucide:rectangle-circle.lucide:rectangle-ellipsis.lucide:rectangle-goggles.lucide:rectangle-horizontal.lucide:rectangle-vertical.lucide:recycle.lucide:redo.lucide:redo-2.lucide:redo-dot.lucide:refresh-ccw.lucide:refresh-ccw-dot.lucide:refresh-cw.lucide:refresh-cw-off.lucide:refrigerator.lucide:regex.lucide:remove-formatting.lucide:repeat.lucide:repeat-1.lucide:repeat-2.lucide:repeat-off.lucide:replace.lucide:replace-all.lucide:reply.lucide:reply-all.lucide:rewind.lucide:ribbon.lucide:road.lucide:robot-arm.lucide:robot-vacuum.lucide:rocket.lucide:rocking-chair.lucide:roller-coaster.lucide:rose.lucide:rotate-3d.lucide:rotate-ccw.lucide:rotate-ccw-clock.lucide:rotate-ccw-key.lucide:rotate-ccw-square.lucide:rotate-cw.lucide:rotate-cw-clock.lucide:rotate-cw-fading-clock.lucide:rotate-cw-square.lucide:route.lucide:route-off.lucide:router.lucide:rows-2.lucide:rows-3.lucide:rows-4.lucide:rss.lucide:rugby-ball.lucide:ruler.lucide:ruler-dimension-line.lucide:russian-ruble.lucide:sailboat.lucide:salad.lucide:sandwich.lucide:satellite.lucide:satellite-dish.lucide:saudi-riyal.lucide:save.lucide:save-all.lucide:save-check.lucide:save-off.lucide:save-pen.lucide:save-plus.lucide:scale.lucide:scale-3d.lucide:scaling.lucide:scan.lucide:scan-barcode.lucide:scan-box.lucide:scan-eye.lucide:scan-face.lucide:scan-heart.lucide:scan-line.lucide:scan-qr-code.lucide:scan-search.lucide:scan-square.lucide:scan-text.lucide:scatter-chart.lucide:school.lucide:scissors.lucide:scissors-line-dashed.lucide:scooter.lucide:scratch-blocks.lucide:screen-share.lucide:screen-share-off.lucide:screw.lucide:scroll.lucide:scroll-text.lucide:search.lucide:search-alert.lucide:search-check.lucide:search-code.lucide:search-large.lucide:search-slash.lucide:search-x.lucide:section.lucide:send.lucide:send-horizontal.lucide:send-to-back.lucide:separator-horizontal.lucide:separator-vertical.lucide:server.lucide:server-cog.lucide:server-crash.lucide:server-nas.lucide:server-off.lucide:server-plus.lucide:settings.lucide:settings-2.lucide:shapes.lucide:share.lucide:share-2.lucide:sheet.lucide:shell.lucide:shelving-unit.lucide:shield.lucide:shield-alert.lucide:shield-ban.lucide:shield-check.lucide:shield-cog.lucide:shield-cog-corner.lucide:shield-ellipsis.lucide:shield-half.lucide:shield-house.lucide:shield-keyhole.lucide:shield-lock.lucide:shield-minus.lucide:shield-off.lucide:shield-plus.lucide:shield-question-mark.lucide:shield-user.lucide:shield-x.lucide:ship.lucide:ship-cargo.lucide:ship-wheel.lucide:shirt.lucide:shopping-bag.lucide:shopping-basket.lucide:shopping-cart.lucide:shopping-cart-minus.lucide:shopping-cart-plus.lucide:shovel.lucide:shower-head.lucide:shredder.lucide:shrimp.lucide:shrimp-off.lucide:shrink.lucide:shrub.lucide:shuffle.lucide:sigma.lucide:signal.lucide:signal-high.lucide:signal-low.lucide:signal-medium.lucide:signal-zero.lucide:signature.lucide:signpost.lucide:signpost-big.lucide:siren.lucide:sixteenth-notes.lucide:skip-back.lucide:skip-forward.lucide:skull.lucide:slack.lucide:slash.lucide:slice.lucide:sliders-horizontal.lucide:sliders-vertical.lucide:smartphone.lucide:smartphone-charging.lucide:smartphone-nfc.lucide:smartphone-user-round.lucide:smile.lucide:smile-plus.lucide:snail.lucide:snowflake.lucide:soap-dispenser-droplet.lucide:sofa.lucide:solar-panel.lucide:soup.lucide:space.lucide:spade.lucide:sparkle.lucide:sparkles.lucide:speaker.lucide:speech.lucide:spell-check.lucide:spell-check-2.lucide:spline.lucide:spline-pointer.lucide:split.lucide:spool.lucide:sport-shoe.lucide:spotlight.lucide:spray-can.lucide:sprout.lucide:square.lucide:square-activity.lucide:square-arrow-down.lucide:square-arrow-down-left.lucide:square-arrow-down-right.lucide:square-arrow-left.lucide:square-arrow-out-down-left.lucide:square-arrow-out-down-right.lucide:square-arrow-out-up-left.lucide:square-arrow-out-up-right.lucide:square-arrow-right.lucide:square-arrow-right-enter.lucide:square-arrow-right-exit.lucide:square-arrow-up.lucide:square-arrow-up-left.lucide:square-arrow-up-right.lucide:square-asterisk.lucide:square-bookmark.lucide:square-bottom-dashed-scissors.lucide:square-centerline-dashed-horizontal.lucide:square-centerline-dashed-vertical.lucide:square-chart-gantt.lucide:square-check.lucide:square-check-big.lucide:square-chevron-down.lucide:square-chevron-left.lucide:square-chevron-right.lucide:square-chevron-up.lucide:square-code.lucide:square-dashed.lucide:square-dashed-bottom.lucide:square-dashed-bottom-code.lucide:square-dashed-kanban.lucide:square-dashed-mouse-pointer.lucide:square-dashed-plus.lucide:square-dashed-text.lucide:square-dashed-top-solid.lucide:square-dashed-x.lucide:square-dashed-x-corner.lucide:square-dimensions.lucide:square-divide.lucide:square-dot.lucide:square-equal.lucide:square-exclamation-point.lucide:square-function.lucide:square-kanban.lucide:square-library.lucide:square-m.lucide:square-menu.lucide:square-minus.lucide:square-mouse-pointer.lucide:square-off.lucide:square-parking.lucide:square-parking-off.lucide:square-pause.lucide:square-pen.lucide:square-percent.lucide:square-pi.lucide:square-pilcrow.lucide:square-play.lucide:square-plus.lucide:square-power.lucide:square-radical.lucide:square-round-corner.lucide:square-scissors.lucide:square-sigma.lucide:square-slash.lucide:square-sparkles.lucide:square-split-horizontal.lucide:square-split-vertical.lucide:square-square.lucide:square-stack.lucide:square-star.lucide:square-stop.lucide:square-terminal.lucide:square-text.lucide:square-user.lucide:square-user-round.lucide:square-x.lucide:squares-exclude.lucide:squares-intersect.lucide:squares-subtract.lucide:squares-unite.lucide:squircle.lucide:squircle-dashed.lucide:squirrel.lucide:stamp.lucide:star.lucide:star-check.lucide:star-half.lucide:star-minus.lucide:star-off.lucide:star-plus.lucide:star-x.lucide:step-back.lucide:step-forward.lucide:stethoscope.lucide:sticker.lucide:sticky-note.lucide:sticky-note-check.lucide:sticky-note-minus.lucide:sticky-note-off.lucide:sticky-note-plus.lucide:sticky-note-x.lucide:sticky-notes.lucide:stone.lucide:store.lucide:stretch-horizontal.lucide:stretch-vertical.lucide:strikethrough.lucide:subscript.lucide:summary.lucide:sun.lucide:sun-dim.lucide:sun-medium.lucide:sun-moon.lucide:sun-snow.lucide:sunrise.lucide:sunset.lucide:superscript.lucide:swatch-book.lucide:swiss-franc.lucide:switch-camera.lucide:sword.lucide:swords.lucide:syringe.lucide:table.lucide:table-2.lucide:table-cells-merge.lucide:table-cells-split.lucide:table-columns-split.lucide:table-of-contents.lucide:table-properties.lucide:table-rows-split.lucide:tablet.lucide:tablet-smartphone.lucide:tablets.lucide:tag.lucide:tag-plus.lucide:tag-x.lucide:tags.lucide:tally-1.lucide:tally-2.lucide:tally-3.lucide:tally-4.lucide:tally-5.lucide:tangent.lucide:target.lucide:telescope.lucide:tent.lucide:tent-tree.lucide:terminal.lucide:test-tube.lucide:test-tube-diagonal.lucide:test-tubes.lucide:text.lucide:text-align-center.lucide:text-align-end.lucide:text-align-justify.lucide:text-align-justify-center.lucide:text-align-justify-end.lucide:text-align-justify-start.lucide:text-align-start.lucide:text-cursor.lucide:text-cursor-input.lucide:text-initial.lucide:text-quote.lucide:text-search.lucide:text-wrap.lucide:theater.lucide:thermometer.lucide:thermometer-snowflake.lucide:thermometer-sun.lucide:thumbs-down.lucide:thumbs-up.lucide:tic-tac-toe.lucide:ticket.lucide:ticket-check.lucide:ticket-minus.lucide:ticket-percent.lucide:ticket-plus.lucide:ticket-slash.lucide:ticket-x.lucide:tickets.lucide:tickets-plane.lucide:timeline.lucide:timer.lucide:timer-off.lucide:timer-reset.lucide:toggle-left.lucide:toggle-right.lucide:toilet.lucide:tombstone.lucide:tool-case.lucide:toolbox.lucide:toothbrush.lucide:toothbrush-sparkles.lucide:tornado.lucide:torus.lucide:touchpad.lucide:touchpad-off.lucide:towel-rack.lucide:tower-control.lucide:toy-brick.lucide:tractor.lucide:traffic-cone.lucide:trailer.lucide:train-front.lucide:train-front-tunnel.lucide:train-track.lucide:tram-front.lucide:transgender.lucide:trash.lucide:trash-off.lucide:tree-deciduous.lucide:tree-palm.lucide:tree-pine.lucide:trees.lucide:trello.lucide:trending-down.lucide:trending-up.lucide:trending-up-down.lucide:triangle.lucide:triangle-alert.lucide:triangle-dashed.lucide:triangle-right.lucide:triangles-centerline-dashed-horizontal.lucide:triangles-centerline-dashed-vertical.lucide:trophy.lucide:truck.lucide:truck-electric.lucide:tube-lotion.lucide:turkish-lira.lucide:turntable.lucide:turtle.lucide:tv.lucide:tv-minimal.lucide:tv-minimal-play.lucide:twitch.lucide:twitter.lucide:type.lucide:type-outline.lucide:umbrella.lucide:umbrella-off.lucide:underline.lucide:undo.lucide:undo-2.lucide:undo-dot.lucide:unfold-horizontal.lucide:unfold-vertical.lucide:ungroup.lucide:university.lucide:unlink.lucide:unlink-2.lucide:unplug.lucide:upload.lucide:usb.lucide:usb-c-port.lucide:user.lucide:user-check.lucide:user-cog.lucide:user-group.lucide:user-key.lucide:user-lock.lucide:user-minus.lucide:user-pen.lucide:user-plus.lucide:user-round.lucide:user-round-arrow-left.lucide:user-round-check.lucide:user-round-cog.lucide:user-round-group.lucide:user-round-key.lucide:user-round-minus.lucide:user-round-pen.lucide:user-round-plus.lucide:user-round-search.lucide:user-round-star.lucide:user-round-x.lucide:user-search.lucide:user-shield.lucide:user-star.lucide:user-x.lucide:users.lucide:users-collaboration.lucide:users-round.lucide:users-round-collaboration.lucide:utensils.lucide:utensils-crossed.lucide:utility-pole.lucide:van.lucide:variable.lucide:vault.lucide:vector-polygon.lucide:vector-square.lucide:vegan.lucide:venetian-mask.lucide:venus.lucide:venus-and-mars.lucide:vibrate.lucide:vibrate-off.lucide:video.lucide:video-off.lucide:videotape.lucide:view.lucide:virus.lucide:virus-off.lucide:voicemail.lucide:volleyball.lucide:volume.lucide:volume-1.lucide:volume-2.lucide:volume-off.lucide:volume-x.lucide:vote.lucide:wallet.lucide:wallet-cards.lucide:wallet-minimal.lucide:wallpaper.lucide:wand.lucide:wand-sparkles.lucide:warehouse.lucide:washing-machine.lucide:watch.lucide:waves.lucide:waves-arrow-down.lucide:waves-arrow-up.lucide:waves-horizontal.lucide:waves-ladder.lucide:waves-vertical.lucide:waypoints.lucide:webcam.lucide:webcam-off.lucide:webhook.lucide:webhook-off.lucide:weight.lucide:weight-tilde.lucide:wheat.lucide:wheat-off.lucide:whistle.lucide:whole-word.lucide:wifi.lucide:wifi-cog.lucide:wifi-high.lucide:wifi-lock.lucide:wifi-low.lucide:wifi-off.lucide:wifi-pen.lucide:wifi-sync.lucide:wifi-zero.lucide:wind.lucide:wind-arrow-down.lucide:wind-arrow-up.lucide:wine.lucide:wine-off.lucide:workflow.lucide:worm.lucide:wrap-text.lucide:wrench.lucide:wrench-off.lucide:x.lucide:x-line-top.lucide:youtube.lucide:zap.lucide:zap-off.lucide:zodiac-aquarius.lucide:zodiac-aries.lucide:zodiac-cancer.lucide:zodiac-capricorn.lucide:zodiac-gemini.lucide:zodiac-leo.lucide:zodiac-libra.lucide:zodiac-ophiuchus.lucide:zodiac-pisces.lucide:zodiac-sagittarius.lucide:zodiac-scorpio.lucide:zodiac-taurus.lucide:zodiac-virgo.lucide:zoom-in.lucide:zoom-out`.split(`.`),mr=`modulepreload`,hr=function(e){return`/`+e},gr={},_r=function(e){return e.pathname.endsWith(`.css`)},vr=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},yr=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=hr(t,n);let r=s(t),i=_r(r);return vr(gr,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:mr,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};new Set(pr);var br=new Map,xr;async function Sr(){if(br.size)return br;xr||=yr(()=>import(`./agentIconBodies-Cpn22UTR.js`).then(e=>e.AGENT_LIBRARY_BODIES),[]);let e=await xr;for(let[t,n]of Object.entries(e))br.set(t,n);return br}function Cr(e){return br.get(e)}function wr(e,t,n){if(!n)return 0;let r=e.toLowerCase();if(t===n||r===n)return 0;if(t.startsWith(n)||r.startsWith(n))return 1;if(t.includes(n)||r.includes(n))return 2;let i=n.split(/\s+/).filter(Boolean);return i.length>1&&i.every(e=>t.includes(e)||r.includes(e))?3:9}function Tr(e,t=10,n=0){let r=e.trim().toLowerCase().replace(/^(ph|lucide):/,``).replace(/\s+/g,` `);if(!r){let e=Pn.map(e=>({id:e,label:Fn[e],kind:`face`})),r=pr.length,i=e.length+r;if(n+t<=e.length)return{hits:e.slice(n,n+t),total:i};let a=Math.max(0,n-e.length),o=t-Math.max(0,e.length-n),s=n<e.length?e.slice(n):[],c=pr.slice(a,a+o).map(e=>({id:e,label:Hn(e),kind:`library`}));return{hits:[...s,...c],total:i}}let i=[];for(let e of Pn){let t=Fn[e],n=wr(t,e,r);n<9&&i.push({id:e,label:t,kind:`face`,s:n})}for(let e of pr){let t=Bn(e);if(!t)continue;let n=Hn(e),a=wr(n,t.name,r);a<9&&i.push({id:e,label:n,kind:`library`,s:a})}return i.sort((e,t)=>e.s-t.s||(e.kind===t.kind?e.label.localeCompare(t.label):e.kind===`face`?-1:1)),{hits:i.slice(n,n+t).map(({id:e,label:t,kind:n})=>({id:e,label:t,kind:n})),total:i.length}}var Er={forgeqe:{title:`the Conductor`,body:`bowtie`,hand:`baton`},engine:{title:`the Pilot`,head:`goggles`},desktop:{title:`the Operator`,head:`headset`},"forgeqe-test":{title:`the Coder`,head:`headphones`},"forgeqe-read":{title:`the Reader`,face:`round`,hand:`book`},"forgeqe-heal":{title:`the Medic`,head:`nurse`},"forgeqe-pr-review":{title:`the Inspector`,face:`square`,hand:`magnifier`},"forgeqe-find":{title:`the Seeker`,hand:`flashlight`},"forgeqe-defect-rca":{title:`the Detective`,head:`detective`},"forgeqe-judge":{title:`the Judge`,face:`monocle`,body:`bowtie`},"forgeqe-knowledge-agent":{title:`the Scholar`,head:`grad`},"forgeqe-tosca":{title:`the Builder`,head:`hardhat`},"forgeqe-data":{title:`the Miner`,head:`miner`},"forgeqe-migrate":{title:`the Traveller`,body:`scarf`},"forgeqe-review":{title:`the Engineer`,face:`square`,body:`tie`},"forgeqe-business-strategist":{title:`the Strategist`,body:`tie`,hand:`clipboard`},"forgeqe-model-profile":{title:`the Critic`,head:`crown`},"forgeqe-persona":{title:`the Actor`,body:`badge`},"forgeqe-refine":{title:`the Polisher`,hand:`wand`},"forgeqe-api-plan":{title:`the Sketcher`,head:`pencil`},"forgeqe-test-plan":{title:`the Navigator`,hand:`clipboard`},"forgeqe-explore-plan":{title:`the Explorer`,head:`safari`},explore:{title:`the Scout`,body:`binoculars`},general:{title:`the Helper`,head:`beanie`},"forgeqe-api":{title:`the Messenger`,crest:`antenna`,hand:`envelope`}},Dr={forgeqe:{h:259,s:100,l:72},"forgeqe-find":{h:68,s:57,l:57},"forgeqe-test-plan":{h:2,s:78,l:68},"forgeqe-knowledge-agent":{h:186,s:97,l:39},"forgeqe-test":{h:271,s:69,l:83},engine:{h:170,s:78,l:50},"forgeqe-review":{h:243,s:99,l:79},"forgeqe-api":{h:20,s:83,l:77},desktop:{h:141,s:45,l:50},"forgeqe-pr-review":{h:308,s:51,l:65},"forgeqe-data":{h:217,s:94,l:69},"forgeqe-explore-plan":{h:198,s:81,l:73},"forgeqe-refine":{h:120,s:57,l:69},"forgeqe-persona":{h:308,s:94,l:80},"forgeqe-heal":{h:44,s:83,l:58},"forgeqe-judge":{h:27,s:76,l:54},"forgeqe-api-plan":{h:171,s:58,l:69},"forgeqe-migrate":{h:342,s:55,l:74},"forgeqe-model-profile":{h:197,s:100,l:56},"forgeqe-defect-rca":{h:256,s:40,l:70},"forgeqe-tosca":{h:175,s:44,l:58},"forgeqe-business-strategist":{h:267,s:98,l:79},explore:{h:36,s:83,l:55},general:{h:101,s:31,l:63},"forgeqe-read":{h:220,s:69,l:75}},Or=[[240,88,62],[60,88,82],[300,88,62],[333,88,62],[228,68,62],[120,88,62],[87,88,72],[180,88,82],[261,88,62],[282,88,62],[48,58,77],[147,88,77],[300,88,72],[336,88,72],[12,88,72],[282,58,62],[0,88,62],[339,58,62],[315,78,62],[258,58,62],[339,68,82],[198,58,82],[231,58,67],[180,88,62],[129,88,72],[291,78,67],[84,58,72]].map(([e,t,n])=>({h:e,s:t,l:n})),kr=Zn.length,Ar=Or.length-kr,jr={version:-1,of:new Map};function Mr(e){let t=Zn.indexOf(e);if(t>=0)return t;let n=Kn();if(jr.version!==n.version){let e=new Map,t=new Set;for(let r of n.ids){let n=Nr(r)%Ar;for(let e=0;e<Ar&&t.has(n);e++)n=(n+1)%Ar;t.add(n),e.set(r,kr+n)}jr={version:n.version,of:e}}return jr.of.get(e)??kr+Nr(e)%Ar}function Nr(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619)>>>0;return t}function Pr(e){let t=e>>>0;return()=>{t=t+1831565813>>>0;let e=t;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}}var Fr=[[`lively`,1.5],[`calm`,.65],[`curious`,1.1],[`shy`,.85],[`bouncy`,1.35],[`sleepy`,.7]],Ir=[`antenna`,`ears`,`sprout`,`horns`,`halo`,`tuft`],Lr=new Map;function Rr(e){let t=Lr.get(e);if(t)return t;let n=Nr(e),r=Pr(n),[i,a]=Fr[Math.floor(r()*Fr.length)],o=Object.hasOwn(Er,e),s=o?Er[e]:{title:``},c={id:e,role:s,crest:s.crest??(o?null:Ir[n%Ir.length]),temper:i,energy:a,curiosity:i===`shy`?.5:i===`curious`?1:.75+r()*.2,sleepAfter:(i===`sleepy`?20:30)+r()*20,blinkEvery:2.2+r()*2.8,w:.94+r()*.14,hgt:.92+r()*.14,eyeGap:.3+r()*.07,eyeSize:.2+r()*.05,seed:n%1e3};return Lr.set(e,c),c}var zr=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;function Br(e){let t=zr.exec(e);if(!t)return[220,60];let[n,r,i]=[t[1],t[2],t[3]].map(e=>parseInt(e,16)/255),a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)*50;if(a===o)return[0,s];let c=a-o;return[(a===n?(r-i)/c+(r<i?6:0):a===r?(i-n)/c+2:(n-r)/c+4)*60,s]}function Vr(e,t){if(!Object.hasOwn(Dr,e)){let n=Or[Mr(e)];return t===`soft`?{h:n.h,l:n.l,s:n.s,soft:!0}:{h:n.h,l:Math.min(70,Math.max(55,n.l)),s:62,soft:!1}}if(t===`original`){let[t,n]=Br(Qn(e).hue);return{h:Math.round(t),l:Math.round(Math.min(70,Math.max(55,n))),s:62,soft:!1}}let n=Dr[e];return{h:n.h,l:n.l,s:n.s,soft:!0}}var R=(e,t,n,r=1)=>`hsla(${(e%360+360)%360},${Math.max(0,Math.min(100,t))}%,${Math.max(0,Math.min(100,n))}%,${r})`,Hr={accessibility:[`#5aa9e6`],"agents-hub":[`#4b5563`],"ai-assurance":[`#4b5563`],api:[`#4f86e0`,`#375e9d`],architecture:[`#a98bf3`],bell:[`#f6c48f`,`#c9742a`],board:[`#c3b5f5`,`#6a3fd6`],branch:[`#a6e39a`,`#749f6c`],"browser-agent":[`#c8dcf5`,`#6fa6e8`],bug:[`#f08a8a`],case:[`#6fd6aa`,`#4e9677`],chat:[`#8fb6f5`,`#3a76d0`],cloud:[`#b9d1f6`],code:[`#f3a6d8`,`#c2398f`],coins:[`#f3cf6e`,`#b8870f`],columns:[`#8fd1d8`,`#1f97a8`],container:[`#8fc9f2`,`#2a7fbf`],"context-engine":[`#d5c8fb`,`#6a3fd6`],database:[`#6fc9be`,`#1f8a7e`],desktop:[`#8fd1d8`,`#1f97a8`],download:[`#4f86e0`,`#2a5bbf`],explorer:[`#c8399a`,`#f6a7d8`],feature:[`#d9776a`],file:[`#b9d1f6`,`#3a76d0`],flask:[`#9ad9c0`,`#2f8a6b`],folder:[`#f2c46b`,`#b8860f`],healer:[`#cde67a`,`#86b02b`],history:[`#b7a4f5`,`#d0c4f8`,`#8073ac`],inbox:[`#8fc9f2`],info:[`#8fc9f2`,`#648da9`],key:[`#f2c46b`],"knowledge-base":[`#84c6d4`,`#1f8fa6`],layers:[`#8fb6f5`,`#b6d0f8`],mail:[`#f3a6a6`,`#f7c5c5`],mobile:[`#cbbdf7`,`#6a3fd6`],model:[`#9db8ff`,`#4a63d6`],network:[`#8fd6e3`,`#64969f`],orchestrator:[`#a98bf3`,`#6a3fd6`],palette:[`#e99ad2`,`#f1bde2`],plug:[`#f6c48f`,`#c9742a`],"pr-reviewer":[`#d77c88`],pulse:[`#f08a8a`],"quality-engineering":[`#4b5563`],replay:[`#3fb985`],report:[`#9ad9ec`,`#1c8fb2`],result:[`#5bb894`,`#94d1b9`],rocket:[`#b9d1f6`],route:[`#9ad9a0`,`#bde6c1`],rule:[`#f4e2b0`,`#c98b2a`],screenshot:[`#9ad9ec`,`#1c8fb2`],scribe:[`#5bb894`,`#2f8a6b`,`#94d1b9`,`#408168`],scroll:[`#e8cf9c`,`#a8701a`],server:[`#9ab3c9`],shield:[`#3a76d0`,`#8fb6f5`],sparkle:[`#c9b6f7`,`#8a5be6`],specs:[`#5bb894`,`#408168`],speed:[`#e0a23a`],stories:[`#b9d1f6`,`#3a76d0`],table:[`#9ad9a0`,`#2f8a3e`],terminal:[`#6f9ff0`],"test-finder":[`#8fdcef`,`#1f9fc0`],theme:[`#5b6bd6`,`#f5b83d`],ticket:[`#f6c48f`,`#c9742a`],trace:[`#6fb4c4`,`#a1ced9`],visual:[`#e99ad2`,`#a8287d`],wand:[`#c9b6f7`,`#dcd0fa`,`#8d7fad`],warning:[`#f6c84f`],web:[`#8edcf2`,`#22a0c4`],wikis:[`#e8cf9c`,`#c48a2a`],wrench:[`#a8b6c4`]},Ur={record:`screenshot`,desktop:`desktop`,regression:`replay`,impact:`board`,"api-tests":`plug`,migration:`table`,tosca:`network`,quality:`columns`,flaky:`bug`,business:`info`,"run-diff":`code`,"test-debt":`folder`,flags:`feature`,production:`web`,cost:`coins`,explore:`sparkle`,readiness:`shield`,"test-cases":`ticket`,accessibility:`accessibility`,performance:`pulse`,visual:`visual`,data:`container`,"test-data":`flask`,runs:`terminal`,reports:`report`,jobs:`speed`,knowledge:`knowledge-base`,product:`columns`,memory:`architecture`,guardrails:`shield`,skills:`feature`,prompts:`stories`,features:`branch`,"whats-new":`scroll`,help:`wikis`,theme:`theme`,settings:`desktop`,chats:`orchestrator`,agents:`board`,evidence:`flask`,"evidence-runs":`scroll`,"evidence-contracts":`file`,"evidence-review":`ticket`,"evidence-releases":`history`,"evidence-learn":`replay`,"evidence-monitor":`pulse`},Wr={env:`web`,usage:`network`,changes:`code`,outputs:`download`},Gr=[`auto`,`plain`,`tiles`,`outline`,`mono`],Kr=[`phosphor`,`solar`,`lucide`,`3d`],qr=`phosphor`,Jr=[`visor`,`classic`,`icons`],Yr=`visor`,Xr=[`soft`,`original`],Zr=`soft`,Qr=e=>e.mascot&&Jr.includes(e.mascot)?e.mascot:Yr,$r=e=>e.mascotColours&&Xr.includes(e.mascotColours)?e.mascotColours:Zr,ei=e=>e.iconSet&&Kr.includes(e.iconSet)?e.iconSet:qr,ti=e=>e.iconColour===`accent`?`accent`:V(e.iconColour)?`custom`:`text`,z=`#111928`,B=`#ffffff`,ni={"--side-bg":`#f9fafb`,"--side-ink":z,"--side-ink-2":`#374151`,"--side-muted":`#5f6672`,"--side-active":`#f3f4f6`,"--side-line":`#e5e7eb`,"--side-line-soft":`#f0f1f3`},ri={"--color-accent":`#3758f9`,"--color-accent-hover":`#1b44c8`,"--color-accent-soft":`#ebefff`,"--color-accent-line":`#b8c3fc`,"--color-accent-ink":B,"--color-accent-fg":`#3758f9`,"--color-accent-fg-hover":`#1b44c8`,"--color-accent-grad":`#8a97fb`},ii=ni[`--side-bg`],ai=`#111318`,oi={"--side-bg":`#16181e`,"--side-ink":`#e9ebf0`,"--side-ink-2":`#c3c8d2`,"--side-muted":`#8d95a5`,"--side-active":`#22252e`,"--side-line":`#2b303b`,"--side-line-soft":`#20232b`},si={"--color-accent":`#3758f9`,"--color-accent-hover":`#4d6bfa`,"--color-accent-soft":`#1a2142`,"--color-accent-line":`#2f3b78`,"--color-accent-ink":B,"--color-accent-fg":`#8fa3ff`,"--color-accent-fg-hover":`#b3c1ff`,"--color-accent-grad":`#a9b4ff`};function ci(e,t=`light`){if(t===`dark`)return[oi[`--side-bg`]];let n=V(e.primary),r=V(e.gradient);return n||r?[n||ii,...r?[r]:[]]:[ni[`--side-bg`]]}var li=ri[`--color-accent`];function V(e){let t=typeof e==`string`?e.trim().toLowerCase():``;if(/^#[0-9a-f]{6}$/.test(t))return t;if(/^#[0-9a-f]{3}$/.test(t))return`#${[...t.slice(1)].map(e=>e+e).join(``)}`}var ui=e=>[1,3,5].map(t=>parseInt(e.slice(t,t+2),16)),di=e=>`#${e.map(e=>Math.round(Math.min(255,Math.max(0,e))).toString(16).padStart(2,`0`)).join(``)}`;function H(e,t,n){let r=ui(e),i=ui(t);return di(r.map((e,t)=>e+(i[t]-e)*n))}function fi(e){let[t,n,r]=ui(e).map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*t+.7152*n+.0722*r}function pi(e,t){let[n,r]=[fi(e),fi(t)].sort((e,t)=>t-e);return(n+.05)/(r+.05)}function mi(...e){let t=t=>Math.min(...e.map(e=>pi(t,e))),n=t(B)>t(z)?B:z;return t(n)>=4.5||t(n)>=t(`#000000`)?n:`#000000`}function hi(e,t,n){let r=e;for(let i=0;i<=1&&Math.min(...n.map(e=>pi(r,e)))<4.5;i+=.1)r=H(e,t,i);return r}var gi=.75;function _i(e,t=`light`){let n=V(e.background);return t===`light`&&n&&fi(n)>=.75?n:void 0}var vi=[`--color-bg`,`--color-surface-muted`,`--color-surface-strong`,`--color-field`,`--color-line`,`--color-line-soft`,`--color-line-strong`,`--color-muted`];function yi(e,t=`light`){let n=_i(e,t);return n?{"--color-bg":n,"--color-surface-muted":H(n,z,.025),"--color-surface-strong":H(n,z,.05),"--color-field":H(n,z,.04),"--color-line":H(n,z,.1),"--color-line-soft":H(n,z,.065),"--color-line-strong":H(n,z,.18),"--color-muted":hi(`#5f6672`,z,[n])}:{}}var bi=`#f3f4f6`,xi=`#1a1d24`;function Si(e,t=`light`){let n=V(e.primary);if(t===`dark`){let e=n?H(n,ai,.84):xi,t=mi(e);return{"--card-bg":e,"--card-ink":t,"--card-ink-2":hi(`#c3c8d2`,t,[e]),"--card-muted":hi(`#8d95a5`,t,[e]),"--card-line":H(e,B,.14),"--card-line-soft":H(e,B,.09),"--card-hover":H(e,B,.05),"--card-strong":H(e,B,.09)}}let r=_i(e)||B,i=n?H(n,B,fi(n)>=.6?.6:.94):bi,a=pi(i,r)<1.06?H(n||i,z,.05):i,o=mi(a),s=o===B?z:o;return{"--card-bg":a,"--card-ink":o,"--card-ink-2":o===B?hi(H(a,B,.85),B,[a]):hi(`#374151`,s,[a]),"--card-muted":o===B?hi(H(a,B,.68),B,[a]):hi(`#5f6672`,s,[a]),"--card-line":H(a,z,.1),"--card-line-soft":H(a,z,.06),"--card-hover":H(a,z,.04),"--card-strong":H(a,z,.07)}}var Ci=e=>V(e.secondary)||(ti(e)===`custom`&&ei(e)!==`3d`?V(e.iconColour):void 0);function wi(e,t=`light`){let n=V(e.primary),r=V(e.gradient),i=Ci(e),a=t===`dark`?oi:ni;if(t!==`dark`&&(n||r)){let e=n||ii,t=r?[e,r]:[e],i=mi(...t),o=i===B,s=i===B?z:i,c=r?H(e,r,.5):e;a={"--side-bg":r?`linear-gradient(180deg, ${e}, ${r})`:e,"--side-ink":i,"--side-ink-2":o?hi(H(c,B,.85),B,t):hi(`#374151`,s,t),"--side-muted":o?hi(H(c,B,.68),B,t):hi(`#5f6672`,s,t),"--side-active":o?H(c,B,.16):H(c,z,.06),"--side-line":o?H(c,B,.22):H(c,z,.1),"--side-line-soft":o?H(c,B,.12):H(c,z,.06)}}let o=ci(e,t),s=mi(...o)===B,c=o.length>1?H(o[0],o[o.length-1],.5):o[0],l=i?H(i,c,s?.7:.88):a[`--side-active`];if(a={...a,"--side-current-bg":l,"--side-current-ink":i?s?hi(H(i,B,.75),B,[l]):hi(i,z,[l]):a[`--side-ink`]},t===`dark`){let n=i?Ti(i,`dark`,ai):si;return{...a,...n,...Si(e,t)}}let u=_i(e)||B,d=!i&&u!==B?hi(ri[`--color-accent`],z,[u]):void 0,f=i?Ti(i,`light`,u):d?{...ri,"--color-accent-fg":d,"--color-accent-fg-hover":H(d,z,.25)}:ri;return{...a,...f,...Si(e,t)}}function Ti(e,t,n){let r=Ki(e),i=Ri.map(e=>r[e]),a=i.indexOf(e),o=i.length-1,s=e=>{let[t,n,r]=Ui(e);return Gi(Math.min(t+.045,.97),n,r)},c=e=>{for(let t=a;t>=0&&t<=o;t+=e)if(pi(i[t],n)>=4.5)return t;return e===1?o:0};if(t===`dark`){let[,t,n]=Ui(e),r=c(-1);return{"--color-accent":e,"--color-accent-hover":s(e),"--color-accent-soft":Gi(.26,t*.35,n),"--color-accent-line":Gi(.38,t*.6,n),"--color-accent-ink":mi(e),"--color-accent-fg":i[r],"--color-accent-fg-hover":i[Math.max(r-2,0)],"--color-accent-grad":i[3]}}let l=c(1);return{"--color-accent":e,"--color-accent-hover":mi(e)===B?i[Math.min(a+1,o)]:s(e),"--color-accent-soft":pi(i[0],n)<1.06?i[1]:i[0],"--color-accent-line":i[2],"--color-accent-ink":mi(e),"--color-accent-fg":i[l],"--color-accent-fg-hover":i[Math.min(l+2,o)],"--color-accent-grad":i[3]}}function Ei(e,t,n,r){let i=e;for(let a=.1;a<=1.001&&Math.min(...n.map(e=>pi(i,e)))<r;a+=.1)i=H(e,t,a);return i}function Di(e,t=`light`){let n=ti(e);if(n===`text`||ei(e)===`3d`)return{vars:{},moved:[]};let r=n===`accent`?V(e.secondary)||li:V(e.iconColour),i=t===`dark`?ai:_i(e)||B,a=ci(e,t),o=n===`accent`?wi(e,t)[`--color-accent-fg`]:Ei(r,t===`dark`?B:z,[i],3),s=Ei(r,mi(...a),a,3),c=a.length>1?H(a[0],a[a.length-1],.5):a[0],l=[];return n!==`accent`&&o!==r&&l.push(`page`),s!==r&&l.push(`sidebar`),{vars:{"--icon-colour":o,"--side-icon-colour":s,"--icon-tint":H(o,i,ki),"--side-icon-tint":H(s,c,ki)},moved:l}}var Oi=[`--icon-colour`,`--side-icon-colour`,`--icon-tint`,`--side-icon-tint`],ki=.8;function Ai(e){let t=wi(e),n=[V(e.primary)||ii,...V(e.gradient)?[V(e.gradient)]:[]],r=V(e.secondary)||li,i=Math.min(...n.map(e=>pi(t[`--side-ink`],e))),a=pi(t[`--color-accent-ink`],r),o=pi(t[`--color-accent-fg`],_i(e)||B),s=e=>Math.round(e*10)/10;return[{label:`Sidebar text`,ratio:s(i),ok:i>=4.5},{label:`Button text`,ratio:s(a),ok:a>=4.5},{label:`Links on the page`,ratio:s(o),ok:o>=4.5}]}function ji(e){let t={};for(let n of e.split(/\r?\n/)){let e=[...n.matchAll(/#(?:[0-9a-f]{6}|[0-9a-f]{3})\b/gi)].map(e=>V(e[0])).filter(Boolean);if(!e.length)continue;let r=n.toLowerCase();/gradient/.test(r)?(!t.gradient&&e.length>1&&(t.gradient=e.at(-1)),!t.primary&&/primary|brand|sidebar/.test(r)&&(t.primary=e[0])):/\b(page )?background\b|\bbg\b/.test(r)&&!/button|sidebar|accent|primary|secondary/.test(r)?!t.background&&fi(e[0])>=.75&&(t.background=e[0]):!t.secondary&&/secondary|accent|button|\bcta\b/.test(r)?t.secondary=e[0]:!t.primary&&/primary|brand|sidebar/.test(r)&&(t.primary=e[0])}return t}function Mi(e,t=document.documentElement,n=`light`){t.dataset.mode=n;for(let[r,i]of Object.entries(wi(e,n)))t.style.setProperty(r,i);let r=yi(e,n);for(let e of vi)r[e]?t.style.setProperty(e,r[e]):t.style.removeProperty(e);let i=ei(e);t.dataset.iconSet=i;let a=Li(e,Fi,n);t.dataset.icons=i===`3d`?a.style:`plain`,t.style.setProperty(`--icon-tile`,a.tile),t.style.setProperty(`--icon-outline`,a.outline),t.style.setProperty(`--icon-mono`,a.mono);let o=Di(e,n).vars;t.dataset.iconFill=o[`--icon-colour`]?`colour`:`duotone`;for(let e of Oi)o[e]?t.style.setProperty(e,o[e]):t.style.removeProperty(e)}function Ni(e,t){if(!e)return null;let n=e.kind===`background`?1.6:2;if(!t.some(t=>pi(e.colour,t)<n))return null;let r=t.length>1?H(t[0],t[t.length-1],.5):t[0];return mi(...t)===B?H(r,B,.9):H(r,z,.85)}var Pi=e=>/^(ph|lucide):/.test(e),Fi=[...new Set([...Object.values(Ur),...nr.map(e=>Qn(e.agent).icon)])].filter(e=>!Pi(e)),Ii=(e,t)=>Math.max(1,...(Hr[e]||[]).map(e=>pi(e,t)));function Li(e,t=Fi,n=`light`){let r=ci(e,n),i=r.length>1?H(r[0],r[1],.5):r[0],a=mi(...r),o=(e,t)=>Math.min(...t.map(t=>Ii(e,t))),s=t.map(e=>({icon:e,ratio:Math.round(o(e,r)*100)/100})).filter(e=>e.ratio<2).sort((e,t)=>e.ratio-t.ratio),c=[H(i,B,.9),H(i,z,.82)],l=e=>Math.min(...t.map(t=>Ii(t,e))),u=c.find(e=>l(e)>=2)||c.reduce((e,t)=>l(t)>l(e)?t:e),d=(e.iconStyle&&e.iconStyle!==`auto`&&Gr.includes(e.iconStyle)?e.iconStyle:void 0)||(s.length?`tiles`:`plain`),f=d===`tiles`?l(u):Math.min(...d===`plain`?t.map(e=>o(e,r)):r.map(e=>pi(a,e)));return{style:d,tile:u,outline:a,mono:a,faint:s,lowest:Math.round(f*100)/100}}var Ri=[50,100,200,300,400,500,600,700,800,900,950],zi=[.975,.94,.88,.8,.71,.62,.53,.45,.37,.29,.21],Bi=[.12,.25,.45,.7,.9,1,1,.92,.8,.66,.5],Vi=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,Hi=e=>e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;function Ui(e){let[t,n,r]=ui(e).map(e=>Vi(e/255)),i=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),a=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),o=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),s=.2104542553*i+.793617785*a-.0040720468*o,c=1.9779984951*i-2.428592205*a+.4505937099*o,l=.0259040371*i+.7827717662*a-.808675766*o;return[s,Math.hypot(c,l),Math.atan2(l,c)]}function Wi(e,t,n){let r=t*Math.cos(n),i=t*Math.sin(n),a=(e+.3963377774*r+.2158037573*i)**3,o=(e-.1055613458*r-.0638541728*i)**3,s=(e-.0894841775*r-1.291485548*i)**3;return[4.0767416621*a-3.3077115913*o+.2309699292*s,-1.2684380046*a+2.6097574011*o-.3413193965*s,-.0041960863*a-.7034186147*o+1.707614701*s]}function Gi(e,t,n){let r=t,i=Wi(e,r,n);for(let t=0;t<24&&i.some(e=>e<-5e-4||e>1.0005);t++)i=Wi(e,r*=.85,n);return di(i.map(e=>Hi(Math.min(1,Math.max(0,e)))*255))}function Ki(e){let t=V(e);if(!t)return;let[n,r,i]=Ui(t),a=r<.01?0:r,o=zi.reduce((e,t,r)=>Math.abs(t-n)<Math.abs(zi[e]-n)?r:e,0),s={};return Ri.forEach((e,n)=>s[e]=n===o?t:Gi(zi[n],a*Bi[n]/Bi[o],i)),s}var qi=[`deep`,`light`];function Ji(e,t=`deep`){let n=Ki(e);if(!n)return;let r=V(e),i=[r,...Ri.filter(e=>Ui(n[e])[0]<=Ui(r)[0]+1e-9).map(e=>n[e])].find(e=>pi(B,e)>=4.5)||n[700],a=fi(n[50])>=.75?n[50]:B;return t===`light`?{primary:n[100],gradient:n[200],secondary:i,background:a}:{primary:n[800],gradient:n[950],secondary:i,background:a}}var U=Ut(),Yi=`forgeqe-mode`,Xi=()=>{try{let e=localStorage.getItem(Yi);return e===`light`||e===`dark`?e:`system`}catch{return`system`}},Zi=()=>typeof matchMedia==`function`&&matchMedia(`(prefers-color-scheme: dark)`).matches,Qi=(0,L.createContext)({theme:{},saved:{},reload:()=>{},preview:()=>{},mode:`light`,choice:`system`,setChoice:()=>{}});function $i({children:e}){let[t,n]=(0,L.useState)({}),[r,i]=(0,L.useState)(null),[a,o]=(0,L.useState)(Xi),[s,c]=(0,L.useState)(Zi),l=(0,L.useCallback)(()=>{wt.get().then(n,()=>{})},[]);(0,L.useEffect)(l,[l]),(0,L.useEffect)(()=>{if(typeof matchMedia!=`function`)return;let e=matchMedia(`(prefers-color-scheme: dark)`),t=()=>c(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let u=(0,L.useCallback)(e=>{o(e);try{e===`system`?localStorage.removeItem(Yi):localStorage.setItem(Yi,e)}catch{}},[]),d=a===`system`?s?`dark`:`light`:a,f=r??t;Mn(f.agentNames),(0,L.useEffect)(()=>Mi(f,document.documentElement,d),[f,d]),(0,L.useEffect)(()=>Tn(f.appName),[f.appName]);let p=f.logoMark||f.logo;return(0,L.useEffect)(()=>{let e=document.querySelector(`link[rel="icon"][data-brand]`);if(!p)return void e?.remove();e||(e=document.createElement(`link`),e.rel=`icon`,e.dataset.brand=``,document.head.appendChild(e)),e.href=p},[p]),(0,U.jsx)(Qi.Provider,{value:{theme:f,saved:t,reload:l,preview:i,mode:d,choice:a,setChoice:u},children:(0,U.jsx)(T.Provider,{value:ei(f)===`lucide`?`lucide`:`phosphor`,children:e})})}var ea=()=>(0,L.useContext)(Qi),ta=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function na(e,t){let[n,r]=(0,L.useState)(e);return(0,L.useEffect)(()=>{if(e||ta()){r(e);return}let n=setTimeout(()=>r(!1),t);return()=>clearTimeout(n)},[e,t]),e||n}var ra={forgeqe:[`......####...`,`......#..#...`,`......#......`,`......#......`,`...####......`,`..#####......`,`...###.......`],engine:[`..#########..`,`..#.#.#####..`,`..#########..`,`..#.......#..`,`..#.......#..`,`..#.......#..`,`..#########..`],desktop:[`..#########..`,`..#.......#..`,`..#.......#..`,`..#.......#..`,`..#########..`,`......#......`,`....#####....`],"forgeqe-test":[`...#.....#...`,`..#....#..#..`,`.#....#....#.`,`#....#......#`,`.#..#......#.`,`..##......#..`,`...#.....#...`],"forgeqe-read":[`.###.....###.`,`#...#...#...#`,`#.#.#...#.#.#`,`#.#..#.#..#.#`,`#.#..#.#..#.#`,`#....#.#....#`,`.#####.#####.`],"forgeqe-heal":[`.....###.....`,`.....###.....`,`..#########..`,`..#########..`,`..#########..`,`.....###.....`,`.....###.....`],"forgeqe-pr-review":[`...........#.`,`..........##.`,`.........##..`,`#.......##...`,`.##....##....`,`..##..##.....`,`...####......`],"forgeqe-find":[`...####......`,`..#....#.....`,`..#....#.....`,`..#....#.....`,`...####......`,`......##.....`,`.......##....`],"forgeqe-defect-rca":[`..#.....#....`,`...#...#.....`,`..#######....`,`.#.#####.#...`,`..#######....`,`.#.#####.#...`,`...#...#.....`],"forgeqe-judge":[`......#......`,`.....###.....`,`#############`,`.###########.`,`...#######...`,`..####.####..`,`.##.......##.`],"forgeqe-knowledge-agent":[`....#####....`,`...#.....#...`,`...#.....#...`,`....#...#....`,`.....###.....`,`.....###.....`,`......#......`],"forgeqe-tosca":[`#############`,`.#.........#.`,`.#..#####..#.`,`.#.#.....#.#.`,`.##.......##.`,`.#.........#.`,`#############`],"forgeqe-data":[`...#######...`,`..#.......#..`,`..#########..`,`..#.......#..`,`..#########..`,`..#.......#..`,`...#######...`],"forgeqe-migrate":[`.......#.....`,`.......##....`,`#############`,`#############`,`.......##....`,`.......#.....`,`.............`],"forgeqe-review":[`....#.#.#....`,`...#######...`,`.###.....###.`,`..##..#..##..`,`.###.....###.`,`...#######...`,`....#.#.#....`],"forgeqe-business-strategist":[`...#######...`,`..#.......#..`,`.#..#####..#.`,`.#..#.#.#..#.`,`.#..#####..#.`,`..#.......#..`,`...#######...`],"forgeqe-model-profile":[`.........##..`,`.........##..`,`......#####..`,`......#####..`,`...########..`,`...########..`,`#############`],"forgeqe-persona":[`.....###.....`,`....#####....`,`....#####....`,`.....###.....`,`...#######...`,`..#########..`,`..#########..`],"forgeqe-refine":[`......#......`,`......#......`,`.....###.....`,`..#########..`,`.....###.....`,`......#......`,`......#......`],"forgeqe-api-plan":[`..#########..`,`..#.......#..`,`..#.##.##.#..`,`..#.......#..`,`..#.##.##.#..`,`..#.......#..`,`..#########..`],"forgeqe-test-plan":[`#.#####......`,`..........#..`,`.........#...`,`#.#####.##...`,`........#....`,`...........#.`,`#.#####......`],"forgeqe-explore-plan":[`..#..........`,`..#######....`,`..#########..`,`..#######....`,`..#..........`,`..#..........`,`.###.........`],explore:[`..###...###..`,`.#####.#####.`,`#..####...###`,`#..####...###`,`.#####.#####.`,`..###...###..`,`.............`],general:[`....#####....`,`...#.....#...`,`........#....`,`.......#.....`,`......#......`,`.............`,`......#......`],"forgeqe-api":[`..##.....##..`,`.#.........#.`,`.#.........#.`,`#...#.#.#...#`,`.#.........#.`,`.#.........#.`,`..##.....##..`]},ia=new Map;function aa(e){if(!Object.hasOwn(ra,e))return;let t=ia.get(e);return t||(t=ra[e].flatMap((e,t)=>[...e].flatMap((e,n)=>e===`#`?[[n,t]]:[])),ia.set(e,t)),t}var oa=(e,t,n)=>Math.max(t,Math.min(n,e));function sa(e){if(e.symbol)return{lit:e.symbol.cells.filter(([,t])=>t<e.symbol.rows),pink:[]};let t=[],n=(e,n)=>{e>=0&&e<13&&n>=0&&n<7&&t.push([e,n])},r=oa(Math.round(e.gx*1.5),-1,1),i=oa(Math.round(e.gy*1.5),-1,1),a=`open`;e.expr===`sleep`?a=`sleep`:e.expr===`joy`?a=e.heart?`heart`:`happy`:e.expr===`surprised`?a=`wide`:e.expr===`concern`?a=`worried`:e.expr===`think`&&([r,i]=[1,-1]),a===`open`&&(a=e.open<.15?`closed`:e.open<.72||e.expr===`drowsy`?`half`:`open`);let o=1+i;for(let e of[3,8]){let t=e+r;if(a===`open`)for(let e of[0,1])for(let r of[0,1,2])n(t+e,o+r);if(a===`half`||a===`worried`)for(let e of[0,1])for(let r of[1,2])n(t+e,o+r);if(a===`worried`&&(e===3?(n(t,o),n(t+1,o-1)):(n(t,o-1),n(t+1,o))),a===`closed`&&(n(t,o+2),n(t+1,o+2)),a===`happy`&&(n(t-1,o+2),n(t,o+1),n(t+1,o+1),n(t+2,o+2)),a===`sleep`&&(n(t-1,o+1),n(t,o+2),n(t+1,o+2),n(t+2,o+1)),a===`wide`){for(let e of[0,1])for(let r of[0,1,2])n(t+e,o+r);n(t-1,o+1),n(t+2,o+1)}if(a===`heart`){n(t-1,o),n(t+2,o);for(let e=-1;e<=2;e++)n(t+e,o+1);n(t,o+2),n(t+1,o+2)}}let s=e=>e.forEach(([e,t])=>n(e,t));if(e.yawn>.3)s([[5,4],[6,4],[7,4],[5,5],[7,5],[5,6],[6,6],[7,6]]);else if(e.expr===`talk`){let t=e.mouth;s(t<.12?[[5,6],[6,6],[7,6]]:t<.4?[[4,6],[5,6],[6,6],[7,6],[8,6]]:t<.7?[[5,5],[6,5],[7,5],[5,6],[6,6],[7,6]]:[[4,5],[5,5],[6,5],[7,5],[8,5],[4,6],[5,6],[6,6],[7,6],[8,6]])}else if(e.expr===`joy`)s([[4,5],[5,6],[6,6],[7,6],[8,5]]);else if(e.expr===`concern`)s([[5,6],[6,5],[7,6]]);else if(e.expr===`surprised`)s([[5,5],[6,5],[7,5],[5,6],[7,6]]);else if(e.expr===`think`){let t=Math.floor(e.t*3)%4;[[5,6],[6,6],[7,6]].forEach(([e,r],i)=>i<t&&n(e,r))}else e.expr===`sleep`?n(6,6):e.expr===`drowsy`?s([[5,6],[6,6],[7,6]]):s([[5,5],[6,6],[7,5]]);return{lit:t,pink:e.blush>.45&&e.expr!==`sleep`?[[1,4],[2,4],[10,4],[11,4]]:[]}}var W=Math.PI*2,ca=new Map,la=new Map;function ua(e){let t=Math.round(e*100),n=la.get(t);if(!n){let r=e*1.42,i=e*.98;n=new Path2D,n.moveTo(-r*.5,0),n.bezierCurveTo(-r*.5,i*.42,-r*.3,i*.52,0,i*.52),n.bezierCurveTo(r*.3,i*.52,r*.5,i*.42,r*.5,0),n.bezierCurveTo(r*.5,-i*.32,r*.44,-i*.5,r*.28,-i*.5),n.bezierCurveTo(r*.14,-i*.5,r*.1,-i*.36,0,-i*.36),n.bezierCurveTo(-r*.1,-i*.36,-r*.14,-i*.5,-r*.28,-i*.5),n.bezierCurveTo(-r*.44,-i*.5,-r*.5,-i*.32,-r*.5,0),la.set(t,n)}return n}function da(e,t,n,r,i,a,o){let s=`${e}|${t}|${n}|${r}|${i.toFixed(1)}|${a}|${o}`,c=ca.get(s);if(c)return c;let l=document.createElement(`canvas`),u=l.getContext(`2d`),d=(e,t)=>{l.width=Math.ceil(e*o),l.height=Math.ceil(t*o),l.w=e,l.h=t,u.scale(o,o)},f=a?R(t,60,97):R(t,n,90),p=R(t,n,a?88:82),m=R(t,n,r);if(e===`shadow`){let e=i;d(e*1.8,e*.5);let t=u.createRadialGradient(e*.9,e*.9,0,e*.9,e*.9,e*.9);t.addColorStop(0,a?`rgba(0,0,0,.45)`:`rgba(60,55,90,.18)`),t.addColorStop(1,`rgba(60,55,90,0)`),u.fillStyle=t,u.scale(1,.28),u.beginPath(),u.arc(e*.9,e*.9,e*.9,0,W),u.fill()}if(e===`sphere`){let e=i,o=e*2.7;d(o,o),u.translate(o/2,o/2);let s=new Path2D;s.arc(0,0,e,0,W);let c=u.createLinearGradient(0,-e,0,e*.95);c.addColorStop(0,f),c.addColorStop(.45,p),c.addColorStop(1,m),u.save(),u.shadowColor=a?`rgba(0,0,0,.4)`:`rgba(60,50,110,.22)`,u.shadowBlur=e*.22,u.shadowOffsetY=e*.08,u.fillStyle=c,u.fill(s),u.restore(),u.save(),u.clip(s);let l=u.createRadialGradient(e*.35,e*.55,0,e*.35,e*.55,e*1.1);l.addColorStop(0,R(t,n*.8,r-10,.35)),l.addColorStop(1,R(t,n,r,0)),u.fillStyle=l,u.fillRect(-e*2,-e*2,e*4,e*4);let h=u.createRadialGradient(-e*.34,-e*.62,0,-e*.34,-e*.62,e*.6);h.addColorStop(0,`rgba(255,255,255,.75)`),h.addColorStop(1,`rgba(255,255,255,0)`),u.fillStyle=h,u.fillRect(-e*2,-e*2,e*4,e*4),u.strokeStyle=`rgba(255,255,255,.45)`,u.lineWidth=e*.04,u.stroke(s),u.restore()}if(e===`visor`||e===`gloss`){let n=i,r=n*1.42,a=n*.98,o=n*.45;d(r+o*2,a+o*2),u.translate(l.w/2,l.h/2);let s=ua(n);if(e===`visor`){u.save(),u.shadowColor=`rgba(40,35,60,.22)`,u.shadowBlur=n*.18,u.shadowOffsetY=n*.06,u.fillStyle=R(t,18,15),u.fill(s),u.restore();let e=u.createRadialGradient(0,a*.05,0,0,a*.05,r*.62);e.addColorStop(0,R(t,20,24)),e.addColorStop(1,R(t,18,15)),u.fillStyle=e,u.fill(s),u.save(),u.clip(s);let i=r/14.2;u.fillStyle=`rgba(255,255,255,.06)`;for(let e=0;e<13;e++)for(let t=0;t<7;t++){let n=i*.72;u.beginPath(),u.roundRect((e-6)*i-n/2,(t-3)*i+a*.02-n/2,n,n,n*.26),u.fill()}u.restore(),u.strokeStyle=`rgba(255,255,255,.14)`,u.lineWidth=n*.02,u.stroke(s)}else{u.save(),u.clip(s);let e=u.createLinearGradient(0,-a*.5,0,a*.1);e.addColorStop(0,`rgba(255,255,255,.14)`),e.addColorStop(1,`rgba(255,255,255,0)`),u.fillStyle=e,u.fillRect(-r,-a,r*2,a*1.1),u.restore()}}if(e===`glow`){let e=i*2.6;d(e,e);let n=u.createRadialGradient(e/2,e/2,0,e/2,e/2,e/2);n.addColorStop(0,R(t,80,86,.75)),n.addColorStop(.35,R(t,75,80,.32)),n.addColorStop(1,R(t,70,75,0)),u.fillStyle=n,u.fillRect(0,0,e,e)}return ca.set(s,l),ca.size>600&&ca.delete(ca.keys().next().value),l}function fa(e,t,n,r,i){for(let a of t.parts)if(e.globalAlpha=1-a.life/a.max,a.kind===`heart`){let t=n*.13*a.s;e.fillStyle=`#f7a8c4`,e.beginPath(),e.moveTo(a.x,a.y+t*.9),e.bezierCurveTo(a.x-t*1.6,a.y-t*.2,a.x-t*.6,a.y-t*1.4,a.x,a.y-t*.4),e.bezierCurveTo(a.x+t*.6,a.y-t*1.4,a.x+t*1.6,a.y-t*.2,a.x,a.y+t*.9),e.fill()}else if(a.kind===`z`)e.fillStyle=r,e.font=`700 ${n*.32*a.s*(1+a.life*.3)}px "DM Sans", sans-serif`,e.fillText(`z`,a.x,a.y);else{let t=n*.1*a.s;e.fillStyle=i,e.beginPath();for(let n=0;n<8;n++){let r=n%2?t*.3:t,i=n*Math.PI/4+a.life*2;e.lineTo(a.x+Math.cos(i)*r,a.y+Math.sin(i)*r)}e.fill()}e.globalAlpha=1}function pa(e){let t=e.ctx,n=e.px,{colour:r,full:i,dark:a,persona:o}=e.props,s=e.time(),c=e.dpr,l=r.h,u=r.s,d=r.l;t.clearRect(0,0,n,n);let f=i?n*.3:n*.44,p=n/2,m=i?e.sleeping?f*.08+Math.sin(s*1.3)*f*.02:Math.sin(s*W/(2.8/Math.sqrt(o.energy))+o.seed)*f*.06:0,h=i?n*.45:n*.5,g=i?e.hop*f*.32-m:e.hop*f*.08;if(i){let e=Math.max(.35,Math.min(1,1-(g+f*.1)/(f*1.2))),n=da(`shadow`,l,u,d,f,a,c);t.drawImage(n,p-n.w*e/2,h+f*1.38-n.h*e/2,n.w*e,n.h*e)}t.save(),t.translate(p+e.lean*f*(i?.18:.05),h-g),t.rotate(e.lean*(i?.12:.07));let _=i?e.sq:1+(e.sq-1)*.6;t.scale(1/Math.sqrt(Math.max(.6,_)),_);let v=da(`sphere`,l,u,d,f,a,c);t.drawImage(v,-v.w/2,-v.h/2,v.w,v.h);let y=!i&&n<22,b=y?f*.86:f,x=b*1.42,ee=b*.98,S=e.gx*f*.08,C=-f*.02+e.gy*f*.06,w=da(`visor`,l,u,d,b,a,c);t.drawImage(w,S-w.w/2,C-w.h/2,w.w,w.h),t.save(),t.translate(S,C),t.clip(ua(b));let T=x/14.2*(y?1.3:1),E=(e,t)=>[(e-6)*T,(t-3)*T+ee*.02],D=(e,n,r)=>{let[i,a]=E(e,n);t.beginPath(),t.roundRect(i-r/2,a-r/2,r,r,r*.26),t.fill()},te=aa(o.id),O=sa({expr:e.expr,gx:e.gx,gy:e.gy,open:e.open,mouth:e.mouth,yawn:e.yawn,blush:e.blush,heart:s<e.heartUntil,t:s,...e.symbolAt!==null&&te?{symbol:{cells:te,rows:Math.min(7,(s-e.symbolAt)*16)}}:{}});if(O.pink.length){t.fillStyle=`rgba(255,182,206,${Math.min(1,e.blush)*.7})`;for(let[e,t]of O.pink)D(e,t,T*.72)}let ne=da(`glow`,l,u,d,T,a,c),re=T*2.6;for(let[e,n]of y?[]:O.lit){let[r,i]=E(e,n);t.drawImage(ne,r-re/2,i-re/2,re,re)}t.fillStyle=`#fff`;for(let[e,t]of O.lit)D(e,t,T*(y?.92:.74));t.restore();let ie=da(`gloss`,l,u,d,b,a,c);t.drawImage(ie,S-ie.w/2,C-ie.h/2,ie.w,ie.h),t.restore(),fa(t,e,f,R(l,60,a?80:55),R(l,55,80))}function ma(e){let t=e.ctx,n=e.px,{colour:r,dark:i,persona:a}=e.props,o=e.time(),s=r.soft,c=r.h;t.clearRect(0,0,n,n);let l=n*(n<40?.31:.27),u=n/2,d=n*(n<40?.56:.6),f=e.hop*l*.32,p=1-Math.min(.55,f/l*1.4);t.fillStyle=i?`rgba(0,0,0,.35)`:`rgba(20,25,40,.10)`,t.beginPath(),t.ellipse(u,d+l*.98,l*.72*p,l*.12*p,0,0,W),t.fill(),t.save(),t.translate(u+e.lean*l*.18,d-f),t.rotate(e.lean*.15);let m=e.sq;t.scale(1/Math.sqrt(Math.max(.6,m))*a.w,m*a.hgt);let h=R(c,45,i?12:16),g=e.expr===`joy`?Math.abs(Math.sin(o*10))*l*.07:0;t.fillStyle=s?R(c,r.s*.65,Math.min(64,r.l)):R(c,62,i?44:48);for(let e of[-1,1])t.beginPath(),t.ellipse(e*l*.42,l*.88-(e>0?g:0),l*.23,l*.12,0,0,W),t.fill();if(a.crest===`ears`)for(let n of[-1,1])t.save(),t.translate(n*l*.56,-l*.72),t.rotate(n*(.45+e.ant*.5)),t.fillStyle=s?R(c,45,74):R(c,70,52),t.beginPath(),t.ellipse(0,-l*.2,l*.2,l*.34,0,0,W),t.fill(),t.fillStyle=R(c+330,70,84,.85),t.beginPath(),t.ellipse(0,-l*.17,l*.1,l*.22,0,0,W),t.fill(),t.restore();a.crest===`halo`&&(t.strokeStyle=R(48,80,72,.9),t.lineWidth=l*.07,t.beginPath(),t.ellipse(e.ant*l*.2,-l*1.3+Math.sin(o*1.6)*l*.04,l*.44,l*.11,e.ant*.3,0,W),t.stroke());let _=new Path2D;_.moveTo(0,-l),_.bezierCurveTo(l*.64,-l,l,-l*.55,l,l*.06),_.bezierCurveTo(l,l*.62,l*.62,l*.92,0,l*.92),_.bezierCurveTo(-l*.62,l*.92,-l,l*.62,-l,l*.06),_.bezierCurveTo(-l,-l*.55,-l*.64,-l,0,-l);let v=t.createRadialGradient(-l*.38,-l*.52,l*.08,0,0,l*1.25);s?(v.addColorStop(0,R(c,r.s*.9,93)),v.addColorStop(.5,R(c,r.s*.8,80)),v.addColorStop(1,R(c,r.s*.75,Math.min(66,r.l)))):(v.addColorStop(0,R(c,85,i?82:84)),v.addColorStop(.5,R(c,72,i?62:64)),v.addColorStop(1,R(c,68,i?40:48))),t.fillStyle=v,t.fill(_),t.save(),t.clip(_),t.fillStyle=R(c,60,90,.28),t.beginPath(),t.ellipse(0,l*.6,l*.5,l*.3,0,0,W),t.fill();let y=t.createRadialGradient(-l*.42,-l*.55,0,-l*.42,-l*.55,l*.45);if(y.addColorStop(0,`rgba(255,255,255,.55)`),y.addColorStop(1,`rgba(255,255,255,0)`),t.fillStyle=y,t.fillRect(-l*2,-l*2,l*4,l*4),t.restore(),a.crest===`antenna`){let n=e.ant,r=l*.48,i=-l*.96,a=Math.sin(n)*r,o=i-Math.cos(n)*r;t.strokeStyle=R(c,s?35:55,s?55:38),t.lineWidth=l*.05,t.lineCap=`round`,t.beginPath(),t.moveTo(0,i),t.quadraticCurveTo(Math.sin(n)*r*.2,i-r*.6,a,o),t.stroke(),t.fillStyle=R(c+40,s?60:90,s?80:74),t.beginPath(),t.arc(a,o,l*.11,0,W),t.fill()}if(a.crest===`sprout`){t.save(),t.translate(0,-l*.95),t.rotate(e.ant*.8),t.strokeStyle=R(120,40,40),t.lineWidth=l*.05,t.beginPath(),t.moveTo(0,0),t.lineTo(0,-l*.22),t.stroke();for(let e of[-1,1])t.save(),t.translate(0,-l*.22),t.rotate(e*(.9+Math.sin(o*2+e)*.08)),t.fillStyle=R(118,s?40:55,e<0?58:64),t.beginPath(),t.ellipse(0,-l*.15,l*.08,l*.17,0,0,W),t.fill(),t.restore();t.restore()}if(a.crest===`horns`)for(let n of[-1,1])t.save(),t.translate(n*l*.42,-l*.84),t.rotate(n*.35+e.ant*.15),t.fillStyle=R(c,35,i?88:92),t.beginPath(),t.moveTo(-l*.09,0),t.quadraticCurveTo(-l*.02,-l*.3,l*.02*n,-l*.32),t.quadraticCurveTo(l*.06,-l*.12,l*.09,0),t.closePath(),t.fill(),t.restore();if(a.crest===`tuft`){t.save(),t.translate(0,-l*.96),t.strokeStyle=R(c,s?40:70,s?62:i?50:46),t.lineWidth=l*.06,t.lineCap=`round`;for(let n of[-1,0,1])t.beginPath(),t.moveTo(n*l*.08,0),t.quadraticCurveTo(n*l*.12+e.ant*l*.3,-l*.2,n*l*.2+e.ant*l*.5,-l*.22+Math.abs(n)*l*.06),t.stroke();t.restore()}let b=e.gx*l*.2,x=-l*.06+e.gy*l*.13,ee=l*a.eyeGap,S=l*a.eyeSize,C=e.expr;if(e.blush>.02){t.fillStyle=`rgba(255,140,170,${e.blush*.45})`;for(let e of[-1,1])t.beginPath(),t.ellipse(b+e*(ee+l*.1),x+S*1.15,l*.11,l*.06,0,0,W),t.fill()}for(let n of[-1,1]){let a=b+n*ee,o=x;if(t.lineCap=`round`,C===`joy`){t.strokeStyle=h,t.lineWidth=l*.075,t.beginPath(),t.arc(a,o+S*.4,S*.68,Math.PI*1.15,Math.PI*1.85),t.stroke();continue}if(C===`sleep`||e.open<.1){t.strokeStyle=h,t.lineWidth=l*.06,t.beginPath(),C===`sleep`?t.arc(a,o-S*.3,S*.62,.18*Math.PI,.82*Math.PI):(t.moveTo(a-S*.62,o),t.lineTo(a+S*.62,o)),t.stroke();continue}t.save(),t.beginPath(),t.ellipse(a,o,S*.86,S*1.02*Math.min(e.open,1.2),0,0,W),t.fillStyle=`#fbfbff`,t.fill(),t.clip();let u=a+e.gx*S*.34,d=o+e.gy*S*.32;t.fillStyle=R(c,55,i?26:30),t.beginPath(),t.arc(u,d,S*.64,0,W),t.fill(),t.fillStyle=`#0b0c12`,t.beginPath(),t.arc(u,d,S*.36*(C===`surprised`?.75:1),0,W),t.fill(),t.fillStyle=`#fff`,t.beginPath(),t.arc(u-S*.24,d-S*.28,S*.21,0,W),t.fill(),t.beginPath(),t.arc(u+S*.22,d+S*.18,S*.09,0,W),t.fill(),e.open<.95&&(t.fillStyle=s?R(c,r.s*.8,82):R(c,72,i?60:62),t.fillRect(a-S,o-S*1.1,S*2,S*1.1*(1-e.open)*1.4)),t.restore()}let w=(e,n,r)=>{t.strokeStyle=R(c,45,i?14:18,r),t.lineWidth=l*.05,t.lineCap=`round`;for(let r of[-1,1]){let i=b+r*ee,a=x-S*1.32-e;t.beginPath(),t.moveTo(i-r*S*.55,a+n*S*.3),t.lineTo(i+r*S*.5,a-n*S*.3),t.stroke()}};C===`concern`?w(0,-1,.9):C===`think`?w(-S*.1,.8,.8):C===`surprised`?w(S*.35,0,.85):C!==`sleep`&&C!==`joy`&&w(0,0,.28);let T=b,E=x+l*.36,D=(e,n)=>{t.fillStyle=R(c,50,12),t.beginPath(),t.ellipse(T,E,e,n,0,0,W),t.fill(),t.save(),t.clip(),t.fillStyle=`rgba(255,130,150,.9)`,t.beginPath(),t.ellipse(T,E+n*.75,e*.75,n*.6,0,0,W),t.fill(),t.restore()},te=(e,n)=>{t.strokeStyle=h,t.lineWidth=l*n,t.beginPath(),e(),t.stroke()};e.yawn>.05?D(l*.1,l*.16*e.yawn):C===`talk`&&e.mouth>.04?D(l*(.08+.04*e.mouth),l*(.02+.12*e.mouth)):C===`joy`?(t.fillStyle=R(c,50,12),t.beginPath(),t.moveTo(T-l*.13,E-l*.03),t.quadraticCurveTo(T,E+l*.22,T+l*.13,E-l*.03),t.closePath(),t.fill()):C===`concern`?te(()=>t.arc(T,E+l*.1,l*.09,1.2*Math.PI,1.8*Math.PI),.055):C===`surprised`?D(l*.05,l*.065):C===`think`?te(()=>(t.moveTo(T-l*.02,E+l*.01),t.lineTo(T+l*.09,E-l*.015)),.05):C===`sleep`?D(l*.035,l*.035*(1+.3*Math.sin(o*1.4))):te(()=>t.arc(T,E-l*.05,l*.08,.22*Math.PI,.78*Math.PI),.055);let O=a.role;O.body&&_a(t,O.body,l,o),O.face&&C!==`sleep`&&ga(t,O.face,l,c,b,x,ee,S),O.head&&ha(t,O.head,l,c,i,o);let ne=(e,n)=>{let a=e*l*.84,o=l*.16,u=l*.4,d=a+e*Math.sin(n)*u,f=o+Math.cos(n)*u;return t.strokeStyle=s?R(c,r.s*.7,74):R(c,66,i?52:54),t.lineWidth=l*.19,t.lineCap=`round`,t.beginPath(),t.moveTo(a,o),t.lineTo(d,f),t.stroke(),[d,f]},re=([e,n])=>{t.fillStyle=s?R(c,r.s*.8,86):R(c,74,i?66:68),t.beginPath(),t.arc(e,n,l*.105,0,W),t.fill()};re(ne(-1,e.armL));let ie=ne(1,e.armR);if(O.hand&&(t.save(),t.translate(ie[0],ie[1]),va(t,O.hand,l,c,o,e.armR),t.restore()),re(ie),t.restore(),e.mode===`thinking`)for(let e=0;e<3;e++){let n=Math.max(0,Math.sin(o*4-e*.7));t.fillStyle=R(c,50,i?75:55,.4+.6*n),t.beginPath(),t.arc(u+l*(.55+e*.22),d-f-l*(1.2+e*.18)-n*l*.06,l*(.045+e*.02),0,W),t.fill()}fa(t,e,l,i?`#c9d0e0`:`#5f6672`,R(48,90,74))}function ha(e,t,n,r,i,a){e.save(),e.shadowColor=`rgba(40,30,80,.22)`,e.shadowBlur=n*.12,e.shadowOffsetY=n*.03;let o=(t,n,r,i)=>{e.fillStyle=i,e.beginPath(),e.ellipse(0,t,n,r,0,Math.PI,0),e.closePath(),e.fill()},s=(t,n,r,i)=>{e.fillStyle=i,e.beginPath(),e.ellipse(0,t,n,r,0,0,W),e.fill()};if(t===`goggles`){e.strokeStyle=`#4a3424`,e.lineWidth=n*.1,e.beginPath(),e.moveTo(-n*.95,-n*.5),e.quadraticCurveTo(0,-n*.68,n*.95,-n*.5),e.stroke();for(let t of[-1,1])e.fillStyle=`rgba(160,215,235,.9)`,e.strokeStyle=`#c9a24a`,e.lineWidth=n*.06,e.beginPath(),e.arc(t*n*.25,-n*.6,n*.17,0,W),e.fill(),e.stroke()}if(t===`headset`||t===`headphones`){let a=t===`headphones`;e.strokeStyle=`#2f3340`,e.lineWidth=n*.09,e.beginPath(),e.arc(0,-n*.12,n,Math.PI*1.12,Math.PI*1.88),e.stroke();for(let t of[-1,1])e.fillStyle=a?R(r+170,50,i?66:62):`#2f3340`,e.beginPath(),e.ellipse(t*n*.98,-n*.16,n*(a?.17:.12),n*(a?.26:.19),0,0,W),e.fill();a||(e.strokeStyle=`#2f3340`,e.lineWidth=n*.05,e.beginPath(),e.moveTo(-n*.98,-n*.05),e.quadraticCurveTo(-n*.85,n*.38,-n*.28,n*.34),e.stroke(),s(n*.34,n*.07,n*.07,`#454b5c`))}t===`nurse`&&(e.fillStyle=`#fff`,e.beginPath(),e.moveTo(-n*.45,-n*.84),e.lineTo(-n*.33,-n*1.22),e.lineTo(n*.33,-n*1.22),e.lineTo(n*.45,-n*.84),e.quadraticCurveTo(0,-n*.92,-n*.45,-n*.84),e.fill(),e.shadowColor=`transparent`,e.fillStyle=`#e5706f`,e.fillRect(-n*.1,-n*1.1,n*.2,n*.06),e.fillRect(-n*.03,-n*1.17,n*.06,n*.2)),t===`detective`&&(o(-n*.8,n*.66,n*.4,`#a88a62`),s(-n*.8,n*.78,n*.1,`#8a6e4a`)),t===`grad`&&(s(-n*.88,n*.44,n*.16,`#262d3d`),e.fillStyle=`#2e3648`,e.beginPath(),e.moveTo(0,-n*1.36),e.lineTo(n*.72,-n*1.12),e.lineTo(0,-n*.9),e.lineTo(-n*.72,-n*1.12),e.closePath(),e.fill(),e.strokeStyle=`#e9c46a`,e.lineWidth=n*.04,e.beginPath(),e.moveTo(0,-n*1.13),e.lineTo(n*.55,-n*1.1),e.lineTo(n*.58+Math.sin(a*2)*n*.03,-n*.82),e.stroke()),(t===`hardhat`||t===`miner`)&&(o(-n*.76,n*.72,n*.46,`hsl(44,80%,62%)`),s(-n*.76,n*.9,n*.11,`hsl(42,70%,54%)`),t===`miner`&&s(-n*.98,n*.12,n*.12,`#fff4c8`)),t===`safari`&&(s(-n*.78,n*1.05,n*.15,`#c7ad7c`),o(-n*.78,n*.62,n*.42,`#d9c193`),e.fillStyle=`#7a5b36`,e.fillRect(-n*.6,-n*.9,n*1.2,n*.1)),t===`beanie`&&(o(-n*.64,n*.8,n*.56,R(r+150,45,i?62:60)),e.fillStyle=R(r+150,40,i?52:50),e.beginPath(),e.roundRect(-n*.84,-n*.74,n*1.68,n*.2,n*.08),e.fill(),s(-n*1.22,n*.14,n*.14,R(r+150,30,94))),t===`crown`&&(e.fillStyle=`hsl(44,80%,62%)`,e.beginPath(),[[-.38,-.86],[-.4,-1.16],[-.19,-1],[0,-1.25],[.19,-1],[.4,-1.16],[.38,-.86]].forEach(([t,r],i)=>i?e.lineTo(t*n,r*n):e.moveTo(t*n,r*n)),e.closePath(),e.fill()),t===`pencil`&&(e.translate(n*.66,-n*.7),e.rotate(-.7),e.fillStyle=`#f2c94c`,e.fillRect(-n*.05,-n*.3,n*.1,n*.5),e.fillStyle=`#f29fb5`,e.fillRect(-n*.05,-n*.38,n*.1,n*.09),e.fillStyle=`#e8c9a0`,e.beginPath(),e.moveTo(-n*.05,n*.2),e.lineTo(n*.05,n*.2),e.lineTo(0,n*.33),e.closePath(),e.fill()),e.restore()}function ga(e,t,n,r,i,a,o,s){if(e.strokeStyle=R(r,30,16),e.lineWidth=n*.045,t===`round`)for(let t of[-1,1])e.beginPath(),e.arc(i+t*o,a,s*1.28,0,W),e.stroke();if(t===`square`)for(let t of[-1,1])e.beginPath(),e.roundRect(i+t*o-s*1.35,a-s*1.15,s*2.7,s*2.3,s*.5),e.stroke();t===`monocle`&&(e.strokeStyle=`hsl(44,70%,55%)`,e.lineWidth=n*.04,e.beginPath(),e.arc(i+o,a,s*1.32,0,W),e.stroke())}function _a(e,t,n,r){if(t===`bowtie`&&(e.fillStyle=`#e5706f`,e.beginPath(),e.moveTo(0,n*.6),e.lineTo(-n*.22,n*.48),e.lineTo(-n*.22,n*.72),e.closePath(),e.moveTo(0,n*.6),e.lineTo(n*.22,n*.48),e.lineTo(n*.22,n*.72),e.closePath(),e.fill()),t===`tie`&&(e.fillStyle=`#5b7fc4`,e.beginPath(),e.moveTo(-n*.07,n*.5),e.lineTo(n*.07,n*.5),e.lineTo(n*.04,n*.58),e.lineTo(n*.11,n*.86),e.lineTo(0,n*.95),e.lineTo(-n*.11,n*.86),e.lineTo(-n*.04,n*.58),e.closePath(),e.fill()),t===`badge`&&(e.save(),e.translate(n*.36,n*.58),e.rotate(-.08),e.fillStyle=`#fff`,e.beginPath(),e.roundRect(-n*.2,-n*.13,n*.4,n*.26,n*.04),e.fill(),e.fillStyle=`#e5706f`,e.fillRect(-n*.2,-n*.13,n*.4,n*.08),e.restore()),t===`scarf`&&(e.strokeStyle=`#e88a72`,e.lineWidth=n*.17,e.lineCap=`round`,e.beginPath(),e.moveTo(-n*.8,n*.4),e.quadraticCurveTo(0,n*.62,n*.8,n*.4),e.stroke(),e.save(),e.translate(n*.38,n*.55),e.rotate(.12+Math.sin(r*1.5)*.06),e.fillStyle=`#e88a72`,e.fillRect(-n*.08,0,n*.16,n*.36),e.restore()),t===`binoculars`)for(let t of[-1,1])e.fillStyle=`#3a3f4c`,e.beginPath(),e.roundRect(t*n*.16-n*.12,n*.5,n*.24,n*.3,n*.08),e.fill()}function va(e,t,n,r,i,a){if(e.save(),e.rotate(-a*.35),e.lineCap=`round`,t===`baton`&&(e.strokeStyle=`#f5f5f5`,e.lineWidth=n*.04,e.beginPath(),e.moveTo(0,0),e.lineTo(n*.32,-n*.42),e.stroke()),t===`magnifier`&&(e.strokeStyle=`#6b5444`,e.lineWidth=n*.07,e.beginPath(),e.moveTo(0,0),e.lineTo(n*.14,-n*.2),e.stroke(),e.fillStyle=`rgba(200,228,250,.5)`,e.strokeStyle=`#3a3f4c`,e.lineWidth=n*.05,e.beginPath(),e.arc(n*.24,-n*.36,n*.19,0,W),e.fill(),e.stroke()),t===`flashlight`){e.rotate(-.6);let t=e.createLinearGradient(0,-n*.25,0,-n*.95);t.addColorStop(0,`rgba(255,240,170,.45)`),t.addColorStop(1,`rgba(255,240,170,0)`),e.fillStyle=t,e.beginPath(),e.moveTo(-n*.06,-n*.26),e.lineTo(-n*.26,-n*.95),e.lineTo(n*.26,-n*.95),e.lineTo(n*.06,-n*.26),e.closePath(),e.fill(),e.fillStyle=`#555c6e`,e.beginPath(),e.roundRect(-n*.05,-n*.24,n*.1,n*.28,n*.03),e.fill()}if(t===`clipboard`){e.rotate(.15),e.fillStyle=`#b48a5e`,e.beginPath(),e.roundRect(-n*.05,-n*.5,n*.38,n*.48,n*.04),e.fill(),e.fillStyle=`#fff`,e.fillRect(-n*.01,-n*.44,n*.3,n*.38),e.fillStyle=`#a3abbd`;for(let t=0;t<4;t++)e.fillRect(n*.03,-n*.36+t*n*.08,n*.2-t%2*n*.06,n*.025)}if(t===`wand`){e.strokeStyle=`#3a3f4c`,e.lineWidth=n*.05,e.beginPath(),e.moveTo(0,0),e.lineTo(n*.26,-n*.36),e.stroke();let t=n*.13*(1+.25*Math.sin(i*6));e.translate(n*.3,-n*.42),e.rotate(i),e.fillStyle=`#f6dc7a`,e.beginPath();for(let n=0;n<10;n++){let r=n%2?t*.42:t,i=n*Math.PI/5;e.lineTo(Math.cos(i)*r,Math.sin(i)*r)}e.fill()}t===`book`&&(e.rotate(.1),e.fillStyle=R(r+160,40,55),e.beginPath(),e.roundRect(-n*.02,-n*.42,n*.36,n*.44,n*.03),e.fill(),e.fillStyle=`#f4efe2`,e.fillRect(n*.02,-n*.4,n*.3,n*.04)),t===`envelope`&&(e.rotate(.2),e.fillStyle=`#fff`,e.beginPath(),e.roundRect(-n*.04,-n*.32,n*.42,n*.3,n*.03),e.fill(),e.strokeStyle=`#c4cad6`,e.lineWidth=n*.025,e.beginPath(),e.moveTo(-n*.04,-n*.32),e.lineTo(n*.17,-n*.15),e.lineTo(n*.38,-n*.32),e.stroke()),e.restore()}var ya={mouse:{x:-1e4,y:-1e4,t:-99},lastKey:-99,typing:null,lastActivity:0},ba=()=>performance.now()/1e3,xa=class{cv;ctx;px;dpr;props;rect=null;visible=!0;slot=Math.floor(Math.random()*2);gx=0;gy=0;lean=0;sq=1;hop=0;hopV=0;ant=0;blush=0;lid=1;open=1;mouth=0;yawn=0;armL=.28;armR=.28;v={};mode=`idle`;expr=`calm`;sleeping=!1;hovered=!1;parts=[];symbolAt=null;feeling=null;look=null;nextBlink=ba()+Math.random()*2;blinkAt=-9;double=!1;nextIdle=ba()+1+Math.random()*3;deck=[];later=[];waveUntil=0;wiggleUntil=0;yawnAt=-9;yawned=!1;lastZ=0;lastLook=[0,0];symbolUntil=0;constructor(e,t,n){this.cv=e,this.px=t,this.props=n,this.dpr=Math.min(2,window.devicePixelRatio||1),e.width=Math.round(t*this.dpr),e.height=Math.round(t*this.dpr),this.ctx=e.getContext(`2d`),this.ctx.scale(this.dpr,this.dpr),this.mode=wa(n.state)}set(e){let t=this.props.state;this.props=e,this.mode=wa(e.state),e.state!==t&&(e.state===`done`&&this.feel(`joy`,2.2),e.state===`failed`&&this.feel(`concern`,2.8),e.state!==`idle`&&this.sleeping&&this.wake()),Ma&&this.draw()}busy(){return this.mode!==`idle`||this.feeling!==null||this.px>=56}feel(e,t){let n=ba();this.feeling={kind:e,until:n+t,at:n},e===`joy`&&(this.hopV=Math.max(this.hopV,2.4),this.burst(4)),e===`concern`&&(this.v.sq=(this.v.sq??0)+2),e===`surprised`&&(this.hopV=2.8)}heartUntil=0;poke(){if(ya.lastActivity=ba(),this.sleeping)return this.wake();this.v.sq=(this.v.sq??0)-7,this.hopV=Math.max(this.hopV,1.8),this.feel(`joy`,1.4),this.heartUntil=ba()+1.3;let e=this.px,t=e*.27;for(let n=0;n<3;n++)this.parts.push({kind:`heart`,x:e/2+(Math.random()-.5)*t*1.4,y:e*.5-t*.6,vx:(Math.random()-.5)*30,vy:-30-Math.random()*40,life:0,max:1.1+Math.random()*.5,s:.8+Math.random()*.5});Ma&&(this.update(0),this.draw())}wake(){this.sleeping=!1,this.yawned=!1,this.feel(`surprised`,.55),setTimeout(()=>this.feel(`joy`,.9),550)}burst(e){let t=this.px,n=t*.27;for(let r=0;r<e;r++)this.parts.push({kind:`spark`,x:t/2+(Math.random()-.5)*n*1.4,y:t*.6-n*.9+(Math.random()-.5)*n*.4,vx:(Math.random()-.5)*30,vy:-30-Math.random()*40,life:0,max:1+Math.random()*.6,s:.7+Math.random()*.6})}spring(e,t,n,r,i){let a=this,o=((this.v[e]??0)+(t-a[e])*n*i)*Math.exp(-r*i);this.v[e]=o,a[e]=a[e]+o*i}feelingNow(){return this.feeling&&ba()<this.feeling.until?this.feeling.kind:null}update(e){let t=ba(),n=this.props.persona,r=this.rect,i=r?r.left+r.width/2:0,a=r?r.top+r.height*.52:0,o=ya.mouse;this.hovered=!!r&&o.x>r.left&&o.x<r.right&&o.y>r.top&&o.y<r.bottom;let s=t-ya.lastActivity;this.sleeping&&s<.6&&this.wake();let c=this.mode===`idle`&&!this.hovered;c&&!this.sleeping&&s>n.sleepAfter&&(this.sleeping=!0);let l=c&&!this.sleeping&&s>n.sleepAfter-4;l&&!this.yawned&&s>n.sleepAfter-3&&(this.yawned=!0,this.yawnAt=t);let u=0,d=0,f=(e,t,n=1)=>{let r=e-i,o=t-a,s=Math.hypot(r,o)+140;u=r/s*1.5*n,d=o/s*1.5*n},p=t-ya.lastKey<1.6&&ya.typing;this.sleeping?d=.4:this.look&&t<this.look.until?[u,d]=[this.look.x,this.look.y]:this.mode===`thinking`?[u,d]=[.6*Math.sin(t*.9+n.seed),-.8]:this.mode===`speaking`?[u,d]=[.06*Math.sin(t*1.3),.02]:p?f(ya.typing.x,ya.typing.y):r&&t-o.t<7?f(o.x,o.y,n.curiosity):[u,d]=[.35*Math.sin(t*.31+n.seed),.12*Math.sin(t*.23+n.seed*2)];let m=Math.hypot(u,d);if(m>1&&([u,d]=[u/m,d/m]),Math.hypot(u-this.lastLook[0],d-this.lastLook[1])>.9&&t-this.blinkAt>.5&&(this.blinkAt=t),this.lastLook=[u,d],this.spring(`gx`,u,55,11,e),this.spring(`gy`,d,55,11,e),this.mode===`idle`&&!this.sleeping&&!this.hovered&&!this.feelingNow()&&t>this.nextIdle){this.deck.length||(this.deck=Ca(Sa.filter(e=>e===`wave`?this.props.look===`classic`:e!==`symbol`||this.props.look===`visor`&&!!aa(n.id))));let e=this.deck.pop();if(e===`glance`)this.look={x:Math.random()*2-1,y:Math.random()-.6,until:t+.7+Math.random()*.8};else if(e===`lookAround`){let e=Math.random()<.5?-1:1;this.look={x:e*.9,y:-.1,until:t+.8},this.later.push([t+.8,()=>this.look={x:-e*.9,y:-.1,until:ba()+.8}])}else e===`hop`?this.hopV=1.6+n.energy*.7:e===`lean`?this.v.lean=(this.v.lean??0)+(Math.random()<.5?-1:1)*4*n.energy:e===`blink`?[this.blinkAt,this.double]=[t,!0]:e===`wiggle`?this.wiggleUntil=t+.6:e===`stretch`?this.v.sq=(this.v.sq??0)+6:e===`happy`?this.feel(`content`,1.2):e===`wave`?this.waveUntil=t+1.6:e===`symbol`&&(this.symbolUntil=t+1.9);this.nextIdle=t+(1.6+Math.random()*2.6)/n.energy}for(let[e,n]of this.later)t>=e&&n();this.later=this.later.filter(([e])=>t<e),t>this.nextBlink&&(this.blinkAt=t,this.double=Math.random()<.2,this.nextBlink=t+n.blinkEvery*(.5+Math.random()));let h=t-this.blinkAt,g=h<.15?Math.sin(h/.15*Math.PI):this.double&&h>.22&&h<.37?Math.sin((h-.22)/.15*Math.PI):0,_=this.feelingNow();_||(this.feeling=null);let v=Math.sin(t*6.283/(this.sleeping?4.5:3.4/Math.sqrt(n.energy))),y=t<this.wiggleUntil?Math.sin(t*16)*.22:0,b=this.mode===`listening`||!!p;this.spring(`lean`,this.gx*.35+y+(this.mode===`thinking`?-.08:0),60,5,e),this.spring(`sq`,1+(this.sleeping?.035:.022)*v-(_===`concern`?.05:0)+(b?.02:0),200,9,e),this.hopV-=15*e,this.hop+=this.hopV*e,this.hop<0&&(this.hopV<-1&&(this.v.sq=(this.v.sq??0)+this.hopV*2.2),this.hop=0,this.hopV=0),_===`joy`&&this.feeling&&t-this.feeling.at<1.6&&this.hop===0&&Math.random()<e*2&&(this.hopV=1.7),this.spring(`ant`,-this.lean*.9-this.hopV*.07-this.gx*.25+.06*Math.sin(t*1.7+n.seed),28,2.6,e),this.spring(`blush`,_===`joy`||_===`content`||this.hovered?1:this.mode===`speaking`?.35:0,9,7,e);let x=this.sleeping?0:l?.42:_===`surprised`?1.2:b?1.06:_===`concern`?.85:1;this.spring(`lid`,x,40,12,e),this.open=Math.max(0,Math.min(1.25,this.lid*(1-g)));let ee=Math.max(0,Math.sin(t*9.3))*Math.max(0,Math.sin(t*2.1+1));this.spring(`mouth`,this.mode===`speaking`?Math.min(1,ee*1.1+.15*Math.abs(Math.sin(t*23))):0,140,16,e),this.yawn=t-this.yawnAt<2.2?Math.sin((t-this.yawnAt)/2.2*Math.PI):0;let S=!!n.role.hand,C=.28+.05*v,w=(S?.95:.28)+.05*v;this.sleeping?[C,w]=[.1,S?.55:.1]:_===`joy`?[C,w]=[2.3+.25*Math.sin(t*9),(S?1.7:2.3)+.25*Math.sin(t*9+1.3)]:_===`concern`?[C,w]=[.06,S?.5:.06]:_===`surprised`?[C,w]=[1.6,1.6]:this.mode===`thinking`?w=2.3+.12*Math.sin(t*8):this.mode===`speaking`?[C,w]=[.35+.18*Math.sin(t*2.2),(S?1.05:.55)+.5*this.mouth]:(this.hovered||t<this.waveUntil)&&(C=2.45+.4*Math.sin(t*13)),this.spring(`armL`,C,70,9,e),this.spring(`armR`,w,70,9,e);let T=this.mode===`idle`&&!this.sleeping&&!_&&!!aa(n.id)&&(this.hovered||t<this.symbolUntil);this.symbolAt=T?this.symbolAt??t:null,this.sleeping&&t-this.lastZ>1.3&&(this.lastZ=t,this.parts.push({kind:`z`,x:this.px*.66,y:this.px*.3,vx:10,vy:-18,life:0,max:2.4,s:.6+Math.random()*.5})),this.parts=this.parts.filter(t=>(t.life+=e)<t.max);for(let t of this.parts)t.x+=t.vx*e,t.y+=t.vy*e,t.vy+=(t.kind===`z`?-2:25)*e;this.expr=this.sleeping?`sleep`:_===`content`?`joy`:_||(this.hovered&&this.props.look===`classic`?`joy`:this.mode===`thinking`?`think`:this.mode===`speaking`?`talk`:l?`drowsy`:`calm`)}draw(){this.props.look===`visor`?pa(this):ma(this)}time(){return ba()}},Sa=[`glance`,`lookAround`,`hop`,`lean`,`blink`,`wiggle`,`stretch`,`happy`,`wave`,`symbol`];function Ca(e){for(let t=e.length-1;t>0;t--){let n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}var wa=e=>e===`thinking`?`thinking`:e===`speaking`?`speaking`:e===`waiting`?`listening`:`idle`,Ta=new Set,Ea=0,Da=0,Oa=0,ka=!0,Aa=0,ja=!1,Ma=!1,Na=null,Pa=new WeakMap;function Fa(){if(ja)return;ja=!0,ya.lastActivity=ba();let e=()=>ya.lastActivity=ba();addEventListener(`mousemove`,t=>{ya.mouse={x:t.clientX,y:t.clientY,t:ba()},e()},{passive:!0}),addEventListener(`keydown`,t=>{e();let n=t.target instanceof HTMLElement?t.target:null;if(!n||!(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n.isContentEditable)||n instanceof HTMLInputElement&&n.type===`password`)return;let r=n.getBoundingClientRect(),i=n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement?n.value.length:(n.textContent??``).length;ya.typing={x:r.left+Math.min(r.width-16,16+i*7.5),y:r.top+Math.min(r.height/2,24)},ya.lastKey=ba()}),addEventListener(`scroll`,()=>(ka=!0,e()),{passive:!0,capture:!0}),addEventListener(`resize`,()=>ka=!0),Na=new IntersectionObserver(e=>e.forEach(e=>{let t=Pa.get(e.target);t&&(t.visible=e.isIntersecting)}),{rootMargin:`80px`})}function Ia(e){let t=e/1e3,n=Math.min(.05,Da?t-Da:.016);if(Da=t,Oa++,ka||t-Aa>.5){for(let e of Ta)e.rect=e.cv.getBoundingClientRect();ka=!1,Aa=t}for(let e of Ta)e.update(n),e.visible&&(e.busy()||(Oa+e.slot)%2==0)&&e.draw();Ea=Ta.size?requestAnimationFrame(Ia):0}function La(e){Fa(),Ma=ta(),Pa.set(e.cv,e),Na?.observe(e.cv),Ta.add(e),e.rect=e.cv.getBoundingClientRect(),Ma?(e.update(0),e.draw()):Ea||=requestAnimationFrame(Ia)}function Ra(e){Ta.delete(e),Na?.unobserve(e.cv),!Ta.size&&Ea&&(cancelAnimationFrame(Ea),Ea=0,Da=0)}function za({agent:e,look:t,colours:n,px:r,dark:i,state:a=`idle`,label:o,className:s}){let c=(0,L.useRef)(null),l=(0,L.useRef)(null),u=()=>({persona:Rr(e),colour:Vr(e,n),look:t,full:r>=56,dark:i,state:a});return(0,L.useEffect)(()=>{let e=new xa(c.current,r,u());return l.current=e,La(e),()=>{Ra(e),l.current=null}},[r]),(0,L.useEffect)(()=>l.current?.set(u()),[e,t,n,i,a]),(0,U.jsx)(`canvas`,{ref:c,onPointerDown:()=>l.current?.poke(),role:o?`img`:void 0,"aria-label":o||void 0,"aria-hidden":!o||void 0,className:P(`block flex-none`,s),style:{width:r,height:r}})}var Ba={};try{Ba=Object.assign({"./agents/api.svg":Et,"./agents/browser-agent.svg":Ct,"./agents/case.svg":bt,"./agents/context-engine.svg":At,"./agents/database.svg":Ot,"./agents/explorer.svg":Dt,"./agents/healer.svg":Kt,"./agents/knowledge-base.svg":_t,"./agents/model.svg":Jt,"./agents/orchestrator.svg":kt,"./agents/pr-reviewer.svg":yt,"./agents/report.svg":N,"./agents/result.svg":Nt,"./agents/rule.svg":rn,"./agents/scribe.svg":vt,"./agents/specs.svg":Mt,"./agents/test-finder.svg":an,"./agents/trace.svg":Bt})}catch{}function Va({id:e,px:t,alt:n,className:r}){let[i,a]=(0,L.useState)(()=>Cr(e));if((0,L.useEffect)(()=>{if(i)return;let t=!0;return Sr().then(n=>{t&&a(n.get(e))}),()=>{t=!1}},[e,i]),!i)return(0,U.jsx)(`span`,{"aria-hidden":!n||void 0,className:P(`inline-block flex-none rounded-md bg-line-soft/60`,r),style:{width:t,height:t}});let o=`url("data:image/svg+xml,${encodeURIComponent(i)}")`;return(0,U.jsx)(`span`,{role:n?`img`:void 0,"aria-label":n||void 0,"aria-hidden":!n||void 0,className:P(`inline-block flex-none bg-current`,r),style:{width:t,height:t,WebkitMask:`${o} center / contain no-repeat`,mask:`${o} center / contain no-repeat`}})}function Ha({agent:e,icon:t,px:n,iconPx:r,frame:i}){let{theme:a}=ea();return Qr(a)!==`icons`&&!Vn(t)?(0,U.jsx)(Wa,{agent:e,px:n,decorative:!0,className:`flex-none`}):(0,U.jsx)(`span`,{className:i,children:(0,U.jsx)(Wa,{agent:e,icon:t,px:r,decorative:!0})})}function Ua(e){let{theme:t,mode:n}=ea();if(Qr(t)===`icons`||$r(t)!==`soft`)return Qn(e).hue;let r=Vr(e,`soft`);return n===`dark`?R(r.h,Math.min(90,r.s),74):R(r.h,Math.min(80,r.s*.85),38)}function Wa({agent:e,icon:t,px:n=20,decorative:r=!1,working:i=!1,state:a,className:o}){let{theme:s,mode:c}=ea(),l=Qn(e),u=Qr(s);if(u!==`icons`&&n>=14&&!Vn(t))return(0,U.jsx)(za,{agent:e,look:u,colours:$r(s),px:n,dark:c===`dark`,state:a??(i?`thinking`:`idle`),label:r?void 0:l.name,className:o});let d=Vn(t)?t:l.icon,f=r?``:l.name;if(Bn(d))return(0,U.jsx)(Va,{id:d,px:n,alt:f,className:o});let p=zn(d)?d:l.icon,m=Ba[`./agents/${p}.svg`];if(!i)return(0,U.jsx)(Rt,{src:m,name:p,px:n,alt:f,className:o});let h=(0,U.jsx)(`img`,{src:m,alt:f,width:n,height:n,draggable:!1,className:`block flex-none object-contain`,style:{width:n,height:n}}),g=on(p);return(0,U.jsx)(`span`,{"data-flat":g?``:void 0,className:P(`agent-shine`,o),style:{width:n,height:n,"--agent-icon":`url("${m}")`,...g},children:h})}function Ga({open:e,onClose:t,title:n,description:r,children:i,footer:a,wide:o}){let s=(0,L.useRef)(null),c=(0,L.useId)(),l=(0,L.useRef)({title:n,description:r,children:i,footer:a});e&&(l.current={title:n,description:r,children:i,footer:a});let[u,d]=(0,L.useState)(!1),f=e?{title:n,description:r,children:i,footer:a}:l.current;return(0,L.useEffect)(()=>{let t=s.current;if(!t)return;if(e){t.classList.remove(`is-closing`),d(!1),t.open||t.showModal();return}if(!t.open)return;if(window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return t.close();t.classList.add(`is-closing`),d(!0);let n=setTimeout(()=>{t.classList.remove(`is-closing`),d(!1),t.close()},150);return()=>clearTimeout(n)},[e]),(0,U.jsx)(`dialog`,{ref:s,"aria-labelledby":c,onCancel:e=>{e.target===s.current&&(e.preventDefault(),t())},onClick:e=>{e.target===s.current&&t()},className:P(`sheet fixed inset-y-0 right-0 left-auto m-0 h-[calc(100dvh/var(--ui-zoom))] 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||u)&&(0,U.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,U.jsxs)(`div`,{className:`flex items-start gap-4 border-b border-line-soft px-6 pt-6 pb-4`,children:[(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,U.jsx)(`h2`,{id:c,className:`m-0 text-lg font-semibold`,children:f.title}),f.description&&(0,U.jsx)(`p`,{className:`m-0 text-sm leading-relaxed text-muted`,children:f.description})]}),(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Close`,"data-tip":`Close`,onClick:t,className:`-mt-1 -mr-2`,children:(0,U.jsx)(Fe,{size:20,"aria-hidden":`true`})})]}),(0,U.jsx)(`div`,{className:`flex-1 overflow-y-auto px-6 pb-6`,children:f.children}),(0,U.jsx)(`div`,{className:`flex flex-wrap justify-end gap-2 border-t border-line-soft px-6 py-4`,children:f.footer})]})})}function Ka({open:e,id:t,className:n,children:r}){let[i,a]=(0,L.useState)(e),[o,s]=(0,L.useState)(e),[c,l]=(0,L.useState)(e);return(0,L.useEffect)(()=>{if(e){a(!0);let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>s(!0))});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}}s(!1),l(!1);let t=setTimeout(()=>a(!1),320);return()=>clearTimeout(t)},[e]),i?(0,U.jsx)(`div`,{id:t,inert:!e||void 0,className:P(`collapse-box`,o&&`is-open`),onTransitionEnd:t=>{t.target===t.currentTarget&&t.propertyName===`grid-template-rows`&&(e?l(!0):a(!1))},children:(0,U.jsx)(`div`,{className:P(`min-h-0 min-w-0`,c?`overflow-visible`:`overflow-hidden`),children:(0,U.jsx)(`div`,{className:n,children:r})})}):null}function qa({talk:e,disabled:t}){let n=e.ready===!1;return(0,U.jsx)(I,{variant:`ghost`,className:P(`flex-none px-2 text-[16px]`,e.on&&`bg-accent-soft hover:bg-accent-soft`),"aria-label":`Talk`,"aria-pressed":e.on,disabled:n||t&&!e.on,onClick:()=>void e.toggle(),"data-tip":n?`Talk needs a one-time setup: Settings › Voice`:e.on?`Stop listening and speaking`:`Talk to ForgeQE and hear its replies: speech stays on this computer`,children:(0,U.jsx)(Ae,{"aria-hidden":`true`})})}var Ja={checking:`Starting Talk…`,setup:`Talk needs a one-time setup`,installing:`Setting up Talk…`,starting:`Starting the microphone…`,sleeping:`Waiting for the wake word`,listening:`Listening`,hearing:`Hearing you…`,reading:`Writing down what you said…`,thinking:`ForgeQE is working`,question:`ForgeQE is asking you something`,speaking:`Speaking`,error:`Talk stopped`},Ya={checking:`thinking`,setup:`waiting`,installing:`thinking`,starting:`waiting`,sleeping:`idle`,listening:`waiting`,hearing:`waiting`,reading:`thinking`,thinking:`thinking`,question:`waiting`,speaking:`speaking`,error:`failed`};function Xa({talk:e,agent:t=qn}){if(!e.on&&e.phase!==`error`)return null;let n=e.phase,r=n===`sleeping`?`Waiting for “${e.wake.phrase}”`:Ja[n],i=n===`error`,a=n===`setup`||n===`installing`,o=e.view,s=o?.setup.lines.at(-1);return(0,U.jsxs)(`div`,{className:`fixed right-4 bottom-4 z-40 flex max-w-[min(420px,calc(100vw-32px))] items-end gap-2`,children:[(0,U.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,children:r}),(i||a)&&(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2 rounded-[14px] border border-line bg-bg px-4 py-2 text-[13px] shadow-menu`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:r}),i&&(0,U.jsx)(`span`,{className:`text-fail [overflow-wrap:anywhere]`,children:e.error||`Talk gave no reason.`}),n===`installing`&&s&&(0,U.jsx)(`span`,{className:`truncate text-muted`,children:s}),n===`setup`&&o&&(0,U.jsxs)(I,{size:`sm`,variant:`primary`,onClick:()=>void e.install(),"data-tip":`Free, open-source speech models (Whisper and Kokoro), downloaded once into ForgeQE's folder`,children:[(0,U.jsx)(nt,{"aria-hidden":`true`}),`Set up (`,o.setupMb,` MB)`]}),i&&(0,U.jsxs)(`span`,{className:`flex gap-2`,children:[(0,U.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:()=>void e.toggle(),children:[(0,U.jsx)(Ae,{"aria-hidden":`true`}),`Try again`]}),(0,U.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:e.dismiss,children:[(0,U.jsx)(Fe,{"aria-hidden":`true`}),`Close`]})]})]}),(0,U.jsx)(`button`,{type:`button`,onClick:()=>void e.toggle(),"aria-label":i?`Talk stopped`:`${r}. Stop Talk`,"data-tip":i?`Talk stopped`:`Stop Talk`,"data-tip-side":`left`,className:`flex size-20 flex-none cursor-pointer items-center justify-center rounded-full border border-line bg-bg p-1 shadow-composer transition-colors hover:bg-surface-muted`,children:(0,U.jsx)(Wa,{agent:t,px:64,decorative:!0,working:!i&&n!==`sleeping`,state:Ya[n]})})]})}function Za({question:e,onAnswer:t,raised:n}){return(0,U.jsxs)(`div`,{role:`alertdialog`,"aria-label":`Talk is asking`,"aria-describedby":`talk-question`,className:P(`fixed right-4 z-40 flex w-[min(360px,calc(100vw-32px))] flex-col gap-2 rounded-[14px] border border-line bg-bg px-4 py-4 shadow-menu`,n?`bottom-28`:`bottom-4`),children:[(0,U.jsx)(`span`,{id:`talk-question`,className:`text-[13px] leading-relaxed text-ink`,children:e}),(0,U.jsxs)(`span`,{className:`flex justify-end gap-2`,children:[(0,U.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:()=>t(`no`),children:[(0,U.jsx)(Fe,{"aria-hidden":`true`}),`No`]}),(0,U.jsxs)(I,{size:`sm`,variant:`primary`,onClick:()=>t(`yes`),children:[(0,U.jsx)(i,{"aria-hidden":`true`}),`Yes`]})]})]})}var Qa=`forgeqe.talk.carry`,$a=/^[a-f0-9]{8,64}$/;function eo(e){if($a.test(e))try{sessionStorage.setItem(Qa,e)}catch{}}function to(e){try{let t=sessionStorage.getItem(Qa);return t!==null&&(sessionStorage.removeItem(Qa),t===e)}catch{return!1}}var no={pins:`forgeqe-pinned`,recents:`forgeqe-recent-pages`,favourites:`forgeqe-agent-favourites`},ro=null;function io(){return ro||=(async()=>{let e;try{e=await $t(`GET`,`/api/prefs`)}catch{return}for(let t of Object.keys(no)){let n=no[t];if(Array.isArray(e[t]))try{localStorage.getItem(n)!==JSON.stringify(e[t])&&(localStorage.setItem(n,JSON.stringify(e[t])),window.dispatchEvent(new Event(n)))}catch{}else{let e=null;try{e=JSON.parse(localStorage.getItem(n)||`null`)}catch{}Array.isArray(e)&&e.length&&$t(`POST`,`/api/prefs`,{name:t,list:e}).catch(()=>{})}}})(),ro}function ao(e){io().then(()=>{let t=[];try{t=JSON.parse(localStorage.getItem(no[e])||`[]`)}catch{}Array.isArray(t)&&$t(`POST`,`/api/prefs`,{name:e,list:t}).catch(()=>{})})}var G=(e,t,n,r,i,a={})=>({id:e,label:t,about:n,path:r,icon:i,...a}),K=(e,t,n,r)=>G(`settings-${e}`,t,n,[`settings`,e],r),oo=[{id:`agents`,label:`Agents`,about:`Chat with ForgeQE, and find, make and schedule its agents.`,icon:`agents-hub`,agents:[`orchestrator`,`helper`,`research`,`refine`],areas:[{id:`chat`,label:`Chat`,about:`Ask and delegate in plain words.`,items:[G(`new-chat`,`New chat`,`Start a conversation with any agent`,[],`orchestrator`,{words:`home ask message`}),G(`chats`,`Chat history`,`Every earlier chat`,[`chats`],`chat`,{words:`conversations history`})]},{id:`catalogue`,label:`Built-in agents`,about:`The agents ForgeQE comes with.`,items:[G(`agents`,`All agents`,`Every agent, with favourites on top`,[`agents`],`board`),G(`agents-assisted`,`Advisers`,`Help you decide: review, refine and rate`,[`agents`,`category`,`assisted`],`board`),G(`agents-native`,`Builders`,`Make the work: plans, tests and diagnoses`,[`agents`,`category`,`native`],`board`),G(`agents-agentic`,`Operators`,`Act on their own across many steps`,[`agents`,`category`,`agentic`],`board`)]},{id:`custom`,label:`Custom agents`,about:`Agents your team makes for its own work.`,items:[G(`agents-custom`,`Custom agents`,`Drafts, approved versions and their runs`,[`agents`,`category`,`custom`],`board`),G(`agents-new`,`Make an agent`,`The agent builder, step by step`,[`agents`,`custom`,`new`],`wand`)]},{id:`background`,label:`In the background`,about:`Work that runs on a schedule.`,items:[G(`jobs`,`Jobs and schedules`,`Scheduled runs and their history`,[`jobs`],`speed`,{also:[[`schedules`]],words:`schedule cron nightly`})]}]},{id:`knowledge`,label:`Knowledge`,about:`What the agents know about your product, and the rules they follow.`,icon:`knowledge-base`,agents:[`search`,`knowledge-agent`],areas:[{id:`product`,label:`Product understanding`,about:`Your product as the agents read it.`,items:[G(`knowledge`,`Knowledge`,`Search everything the agents know`,[`knowledge`],`knowledge-base`),G(`product`,`Product landscape`,`The systems and how they connect`,[`product`],`columns`),G(`product-services`,`Services`,`Each repository's services`,[`product`,`services`],`columns`,{also:[[`product`,`systems`],[`product`,`links`]]}),G(`product-code`,`Code map`,`Repository structure`,[`product`,`code`],`code`),G(`product-business`,`Business view`,`Capabilities, journeys, rules and glossary`,[`product`,`business`],`stories`)]},{id:`memory`,label:`Memory`,about:`What the agents learnt from earlier work.`,items:[G(`memory`,`Memory`,`Flows and pages remembered per site and app`,[`memory`],`architecture`)]},{id:`behaviour`,label:`Agent behaviour`,about:`How the agents work in this project.`,items:[G(`skills`,`Skills`,`Your conventions, frameworks and apps`,[`skills`],`feature`),G(`prompts`,`Prompts`,`The instructions each agent starts from`,[`prompts`],`stories`),G(`guardrails`,`Guardrails`,`Rules every chat and schedule follows`,[`guardrails`],`shield`)]}]},{id:`quality`,label:`Quality Engineering`,about:`Design, automate, run and analyse tests across web, API, mobile and desktop.`,icon:`quality-engineering`,agents:[`browser`,`desktop`,`exploration`,`planning`,`persona`,`business`,`coding`,`healing`,`migration`,`tosca`,`api`,`api-planning`,`review`],areas:[{id:`design`,label:`Test design`,about:`Decide what to test.`,items:[G(`test-cases`,`Test cases`,`From your test case system`,[`test-cases`],`ticket`),G(`explore`,`Exploratory`,`Charters and sessions that look for bugs`,[`explore`],`sparkle`,{words:`exploratory explore charter session find bugs`}),G(`business`,`Business assurance`,`What people could make the business lose`,[`agents`,`business`],`info`,{words:`business assurance risk misuse fraud refund coupon hypotheses investigations findings`})]},{id:`automation`,label:`Automation`,about:`Turn journeys and old suites into tests.`,items:[G(`record`,`Record`,`Record a journey and make it a test`,[`record`],`screenshot`),G(`desktop`,`Desktop apps`,`Explore, record and replay Windows apps`,[`desktop`],`desktop`,{words:`desktop windows thick client workflow replay heal ufo`}),G(`migration`,`Migration`,`Selenium and Cypress suites to Playwright`,[`migration`],`table`,{words:`migration convert selenium cypress suites`}),G(`tosca`,`Tosca`,`Tosca exports to code`,[`tosca`],`network`)]},{id:`execution`,label:`Execution`,about:`Run tests and suites.`,items:[G(`regression`,`Regression packs`,`Build, run and heal a pack`,[`regression`],`replay`),G(`runs`,`Runs`,`Every run, with what it did`,[`runs`],`terminal`,{words:`sessions history chats`})]},{id:`specialised`,label:`Specialised testing`,about:`APIs, and what every page should be.`,items:[G(`api-tests`,`API tests`,`Contracts, scenarios and the workbench`,[`api-tests`],`plug`),G(`quality`,`Quality`,`Accessibility, performance and visual, together`,[`quality`],`columns`,{words:`a11y wcag core web vitals`}),G(`accessibility`,`Accessibility`,`WCAG checks on the pages a run visits`,[`accessibility`],`accessibility`),G(`performance`,`Performance`,`Core Web Vitals of each page`,[`performance`],`pulse`),G(`visual`,`Visual`,`Screenshots against baselines`,[`visual`],`visual`)]},{id:`insights`,label:`Insights`,about:`What the runs tell you.`,items:[G(`reports`,`Execution reports`,`One run in detail`,[`reports`],`report`),G(`reports-project`,`Project report`,`Across all runs`,[`reports`,`project`],`report`),G(`run-diff`,`Run diff`,`Two runs side by side`,[`run-diff`],`code`,{words:`compare runs side by side difference`}),G(`flaky`,`Flaky tests`,`Unstable tests and quarantine`,[`flaky`],`bug`,{words:`flaky quarantine heal unstable intermittent`}),G(`test-debt`,`Test debt`,`Gaps, duplicates and tests that never fail`,[`test-debt`],`folder`,{words:`coverage gaps untested duplicate tests never fail not automated`})]}]},{id:`data`,label:`Data`,about:`Ask your databases questions, check the data and follow it through flows.`,icon:`database`,agents:[`db`],areas:[{id:`databases`,label:`Databases`,about:`Read and understand your data.`,items:[G(`data`,`Data agent`,`Ask for queries, checks and test scripts`,[`data`],`container`,{words:`databases db data flows`}),G(`data-databases`,`Databases`,`Each database and its tables`,[`data`,`databases`],`database`),G(`data-ask`,`Ask`,`Questions about the data in plain words`,[`data`,`ask`],`chat`),G(`data-flows`,`Data flows`,`How data moves between systems`,[`data`,`flows`],`route`)]},{id:`test-data`,label:`Test data`,about:`Data for tests.`,items:[G(`test-data`,`Test data`,`Rows found or made for tests`,[`test-data`],`flask`),G(`test-data-specs`,`Data specs`,`Specs new rows are made from`,[`test-data`,`specs`],`specs`)]}]},{id:`delivery`,label:`Delivery & Operations`,about:`From a change, to a release, to production.`,icon:`rocket`,agents:[`pr-review`,`root-cause`],areas:[{id:`change`,label:`Change`,about:`What a change touches.`,items:[G(`impact`,`Change impact`,`The tests and areas a change reaches`,[`impact`],`board`)]},{id:`release`,label:`Release`,about:`Decide when to ship.`,items:[G(`readiness`,`Release readiness`,`Go or no-go, with the evidence`,[`readiness`],`shield`,{words:`release readiness go no-go sign off verdict`}),G(`flags`,`Feature flags`,`Flag combinations to cover`,[`flags`],`feature`,{words:`feature flags launchdarkly unleash toggles combinations matrix`})]},{id:`production`,label:`Production`,about:`What happens live.`,items:[G(`production`,`Production signals`,`Errors and crashes from your monitoring`,[`production`],`web`,{words:`production errors sentry datadog app insights crashes`})]}]},{id:`assurance`,label:`AI Assurance`,about:`Evaluate, govern and improve AI agents: ForgeQE's and your teams'.`,icon:`ai-assurance`,agents:[`evaluation`,`model-rating`],areas:[{id:`evaluation`,label:`Evaluation`,about:`How the agents did.`,items:[G(`evidence`,`Overview`,`Runs judged and where trust stands`,[`evidence`],`flask`),G(`evidence-runs`,`Agent runs`,`Every run with its verdict`,[`evidence-runs`],`scroll`),G(`evidence-review`,`Review queue`,`Runs waiting for a person`,[`evidence-review`],`ticket`)]},{id:`governance`,label:`Governance`,about:`What the agents must do, and when a version may ship.`,items:[G(`evidence-contracts`,`Contracts`,`Each agent's contract`,[`evidence-contracts`],`file`,{words:`contracts governance`}),G(`evidence-releases`,`Releases`,`Release gates per version`,[`evidence-releases`],`history`)]},{id:`improvement`,label:`Improvement`,about:`Make the agents better over time.`,items:[G(`evidence-learn`,`Learn`,`Causes, and fixes proven on replays`,[`evidence-learn`],`replay`),G(`evidence-monitor`,`Monitor`,`Baselines and trust`,[`evidence-monitor`],`pulse`)]}]},{id:`admin`,label:`Administration`,about:`Settings, arranged in the same areas as the product.`,icon:`desktop`,areas:[{id:`project`,label:`Project`,about:`This project and the places the agents work.`,items:[K(`setup`,`Set up`,`The project folder and this computer`,`folder`),K(`environments`,`Environments`,`Where the agents work, and the apps in each`,`layers`),K(`signins`,`Sign-ins`,`Apps the agents sign in to`,`key`),K(`secrets`,`Secrets`,`Passwords, keys, repository tokens, and vaults to pull them from`,`shield`),K(`appearance`,`Appearance`,`Logo, name and colours`,`palette`),K(`voice`,`Voice`,`Talk's language, voice and when a pause sends`,`chat`),K(`files`,`Settings as text`,`forgeqe.yaml, llms.json and env.yaml as they are`,`file`)]},{id:`ai`,label:`AI`,about:`Models, agents and their tools.`,items:[K(`models`,`Models`,`The models the agents use`,`model`),K(`routing`,`Routing`,`Which model each kind of work gets`,`route`),K(`agents`,`Agents`,`Names, instructions, custom agents and tools`,`board`),K(`mcp`,`MCP servers`,`More tools for the agents`,`server`)]},{id:`connections`,label:`Connections`,about:`Other systems ForgeQE talks to.`,items:[K(`integrations`,`Integrations`,`Test case systems, bugs and browser grids`,`plug`),K(`notifications`,`Notifications`,`Teams channels and email lists`,`bell`),K(`evidence`,`Product sources`,`Repositories, requirements and documents`,`knowledge-base`)]},{id:`quality`,label:`Quality engineering`,about:`How tests are written and run.`,items:[K(`tests`,`Code`,`Where passed runs become tests`,`code`),K(`runs`,`Reports and memory`,`Exports, suites, flaky tests and readiness`,`report`),K(`registry`,`Replays`,`Repeat a passed test without the AI`,`replay`),K(`parallel`,`Parallel execution`,`How much runs at once`,`speed`),K(`browser`,`Browser`,`Where and how the browser runs`,`web`),K(`mobile`,`Mobile`,`Android and iOS apps`,`mobile`),K(`desktop`,`Desktop`,`Windows desktop apps`,`desktop`),K(`containers`,`Containers`,`Services for test runs`,`container`),K(`quality`,`Quality checks`,`Accessibility, performance and visual`,`columns`)]},{id:`data`,label:`Data and operations`,about:`Databases and checks on a schedule.`,items:[K(`databases`,`Databases`,`Databases the agents may read or write`,`database`),K(`monitor`,`Monitor`,`Checks on a schedule, and their alerts`,`pulse`)]},{id:`activity`,label:`Activity`,about:`What happened, and what it cost.`,items:[K(`logs`,`Logs`,`Each chat, run and suite`,`scroll`),K(`audit`,`Audit`,`Who did and changed what`,`history`),G(`cost`,`Cost`,`Spend by model, agent and run`,[`cost`],`coins`,{words:`cost spend tokens models price usage`}),K(`tokenomics`,`Tokenomics`,`Budgets and where the tokens went`,`coins`),K(`generated`,`Generated code`,`How much of it is still in the repository`,`wand`)]},{id:`help`,label:`Help`,about:`About ForgeQE.`,items:[K(`features`,`What's ready`,`What ForgeQE can do here`,`feature`),K(`whats-new`,`What's new`,`What each release added`,`rocket`),K(`about`,`About ForgeQE`,`Version, updates and guides`,`info`),K(`report`,`Report a problem`,`Tell the ForgeQE team`,`bug`)]}]}],so=oo.flatMap(e=>e.areas.flatMap(t=>t.items.map(n=>({item:n,category:e,area:t})))),co=e=>F(...e.path),lo=e=>F(`browse`,e.id),uo=(e,t)=>F(`browse`,e.id,t.id),fo=(e,t)=>t.length<=e.length&&t.every((t,n)=>e[n]===t);function po(e,t){return e.path.length?Math.max(...[e.path,...e.also||[]].map(e=>fo(t,e)?e.length:0)):+!t.length}function mo(e){let t,n=0;for(let r of so){let i=po(r.item,e);i>n&&([t,n]=[r,i])}return t}function ho(e){if(e[0]!==`browse`)return{};let t=oo.find(t=>t.id===e[1]);return{category:t,area:t?.areas.find(t=>t.id===e[2])}}var go=`forgeqe-pinned`,_o=`forgeqe-pinned`;function vo(e,t){try{let n=JSON.parse(e||`[]`);if(!Array.isArray(n))return[];let r=new Set(so.map(e=>e.item.id));return[...new Set(n.filter(e=>typeof e==`string`&&r.has(e)))].slice(0,t)}catch{return[]}}var yo=e=>vo(e,8);function bo(){let e=()=>{try{return yo(localStorage.getItem(go))}catch{return[]}},[t,n]=(0,L.useState)(e);return(0,L.useEffect)(()=>{let t=()=>n(e());return window.addEventListener(_o,t),window.addEventListener(`storage`,t),()=>{window.removeEventListener(_o,t),window.removeEventListener(`storage`,t)}},[]),{pins:t,toggle:e=>{let r=t.includes(e)?t.filter(t=>t!==e):[...t,e].slice(-8);n(r);try{localStorage.setItem(go,JSON.stringify(r)),window.dispatchEvent(new Event(_o))}catch{}ao(`pins`)}}}var xo=`forgeqe-recent-pages`,So=`forgeqe-recent-pages`,Co=e=>vo(e,12);function wo(e,t){let n=mo(t);return!n||!n.item.path.length?e:[n.item.id,...e.filter(e=>e!==n.item.id)].slice(0,12)}function To(){try{return Co(localStorage.getItem(xo))}catch{return[]}}function Eo(e){let t=To(),n=wo(t,e);if(n.join()!==t.join()){try{localStorage.setItem(xo,JSON.stringify(n)),window.dispatchEvent(new Event(So))}catch{}ao(`recents`)}}function Do(){let[e,t]=(0,L.useState)(To);return(0,L.useEffect)(()=>{let e=()=>t(To());return window.addEventListener(So,e),window.addEventListener(`storage`,e),()=>{window.removeEventListener(So,e),window.removeEventListener(`storage`,e)}},[]),e}function Oo(e,t,n){let r=t=>t.map(t=>so.find(n=>n.item.id===t&&n.category.id===e.id)?.item).filter(e=>!!e);return{pinned:r(t),recent:r(n.filter(e=>!t.includes(e))).slice(0,5)}}function ko(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean);if(!n.length)return e.filter(e=>e.kind!==`field`).slice(0,40);let r=e=>{let t=`${e.label} ${e.meta} ${e.words||``}`.toLowerCase();return n.every(e=>t.includes(e))},i=e=>(e.label.toLowerCase().startsWith(n[0])?0:4)+[`page`,`agent`,`setting`,`field`].indexOf(e.kind);return e.filter(r).map((e,t)=>({c:e,i:t,r:i(e)})).sort((e,t)=>e.r-t.r||e.i-t.i).slice(0,40).map(e=>e.c)}function Ao(e,t,n){if(!n.trim())return[];let r=[],i=new Map;for(let t of e.areas)for(let e of t.items)r.push({id:e.id,label:e.label,meta:t.label,href:co(e),words:[e.about,e.words].filter(Boolean).join(` `),kind:`page`}),e.path[0]===`settings`&&e.path.length===2&&i.set(e.path[1],{area:t.label,label:e.label});let a=t.flatMap(e=>{let t=i.get(e.section);return t?[{id:`field:${e.section}:${e.key}`,label:e.label,meta:`${t.area} › ${t.label} · ${e.key}`,href:F(`settings`,e.section),kind:`field`}]:[]});return ko([...r,...a],n)}function jo(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean),r=t=>{let n=ko(e,t);return n.find(e=>e.kind!==`field`)??n[0]},i=r(n.join(` `));if(i)return i;let a=n[0]??``;if(a.length<4)return;let o=RegExp(`\\b${a.replace(/[^a-z0-9]/g,``)}`);for(let e=n.length-1;e>=1;e--){let t=r(n.slice(0,e).join(` `));if(t&&o.test(t.label.toLowerCase()))return t}}var q=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{},J=e=>typeof e==`string`?e:e==null?``:String(e),Mo=(e,t=400)=>e.length>t?`${e.slice(0,t-1)}…`:e,No=e=>typeof e==`number`?` in ${Math.round(e/1e3)}s`:``;function Y(e,t=400){return Mo(e.replace(/\s+/g,` `).trim(),t).replace(/([\\`*_[\]<>#|~!])/g,`\\$1`)}function Po(e){let t=e.replace(/\s+/g,` `).trim();if(!t)return``;let n=t.includes("`")?"``":"`";return`${n}${n==="``"?` `:``}${t}${n==="``"?` `:``}${n}`}function Fo(e,t){return/^https?:\/\/[^\s)]+$/i.test(t)?`[${Y(e||t,120)}](${t})`:Y(e)}var Io=e=>[Po(J(q(e).id)),Y(J(q(e).title),200)].filter(Boolean).join(` `);function Lo(e){return e.replace(/<!--[\s\S]*?(?:-->|$)/g,``).trim()}function Ro(e){return e.replace(/\[((?:\\.|[^\]\\])*)\]\(https?:\/\/[^\s)]+\)/g,`$1`).replace(/\\(.)/g,`$1`).replace(/[*`]/g,``)}var X=(e,t)=>({tone:e,kind:`item`,md:t}),zo=(e,t)=>({tone:e,kind:`sub`,md:t});function Bo(e,t=``){let n=t||(e.agent&&e.agent!==`forgeqe`?`**${Y(J(e.agent))}:** `:``);switch(e.kind){case`info`:return X(`info`,`${n}${Y(J(e.text))}`);case`start`:return X(`dim`,`${n}→ ${Po(J(e.tool))}${e.text&&e.text!==e.tool?` ${Y(J(e.text),200)}`:``}`);case`tool`:{let t=q(e.file);return X(e.ok===!1?`warn`:`dim`,`${n}${e.ok===!1?`⚠`:`✓`} ${Y(J(e.text)||J(e.tool),240)}${t.path?` (${Y(J(t.action))} ${Po(J(t.path))})`:``}`)}case`say`:{let t=Lo(J(e.text));return t?X(`say`,`${n}*${Y(t)}*`):null}case`test`:return Number(e.attempt)>0?X(e.ok?`ok`:`fail`,`${n}${e.ok?`✓`:`✗`} **Test, attempt ${Y(J(e.attempt))}:** ${Y(J(e.text),240)}`):X(e.ok?`ok`:`fail`,`${n}${e.ok?`✓`:`✗`} ${Y(J(e.text),240)}`);case`plan`:{let t=Array.isArray(e.items)?e.items.map(q):[],r=t.find(e=>e.status===`in_progress`);return X(`info`,`${n}**Plan:** ${t.filter(e=>e.status===`completed`).length} of ${t.length} done${r?`; now: ${Y(J(r.text))}`:``}`)}case`review`:return X(e.approved?`ok`:`warn`,`${n}**Review, attempt ${Y(J(e.attempt))}:** ${e.approved?`approved`:`changes asked`}. ${Y(J(e.summary),240)}`);case`attempt`:return X(`warn`,`${n}**Attempt ${Y(J(e.attempt))} of ${Y(J(e.max))}:** ${Y(J(e.why),240)}`);case`answer`:return X(`dim`,`${n}Attempt ${Y(J(e.attempt))}: ${Y(J(e.notes)||`changed ${(Array.isArray(e.changed)?e.changed:[]).map(J).join(`, `)}`,240)}`);case`context`:return e.compacted?X(`info`,`${n}Context compacted: the conversation was summarised to make room.`):null;default:return null}}function Vo(e,t=``){switch(e.type){case`log`:return X(e.level===`error`?`fail`:e.level===`warn`?`warn`:`dim`,`${t}${e.level===`warn`||e.level===`error`?`⚠ `:``}${Y(J(e.text))}`);case`step`:return X(`dim`,`${t}**Step ${Y(J(e.step))}** · ${e.source===`memory`?`from memory`:Y(J(e.category))} · ${Fo(J(e.title)||`untitled`,J(e.url))}`);case`memory`:return X(`info`,`${t}↻ ${Y(J(e.text))}`);case`thought`:return zo(`think`,`*${Y(J(e.text))}*`);case`outcome`:return zo(e.ok?`ok`:`fail`,`${e.ok?`✓`:`✗`} ${Y(J(e.text),300)}`);case`done`:{let n=q(e.result);return X(n.status===`complete`?`ok`:`fail`,`${t}**${Y(J(n.status))}:** ${Y(J(n.summary))}`)}case`code`:return Bo(e,t);default:return null}}function Ho(e){switch(e.type){case`run-start`:return{tone:`info`,kind:`head`,md:`Browser run: ${Y(J(e.goal),200)}${e.url?` · ${Fo(J(e.url).replace(/^https?:\/\//,``),J(e.url))}`:``}`};case`run-event`:return Vo(q(e.event));case`run-done`:{let t=q(e.result),n=!e.error&&(t.outcome===`passed`||!t.outcome&&t.status===`complete`);return X(n?`ok`:`fail`,`${n?`✓`:`✗`} **Run ${n?`passed`:`failed`}**${No(e.ms)}: ${Y(J(e.error)||J(t.summary))}${e.runDir?` · ${Po(J(e.runDir))}`:``}`)}case`suite-start`:return{tone:`info`,kind:`head`,md:`Suite: ${(Array.isArray(e.cases)?e.cases:[]).length} cases, ${Y(J(e.parallel))} at once`};case`suite-event`:{let t=q(e.event);if(t.type===`case-start`)return X(`info`,`**Case ${Number(t.index)+1} of ${Y(J(t.total))}:** ${Io(t.case)}`);if(t.type===`case-event`)return Vo(q(t.event),`${Po(J(q(t.case).id))} `);if(t.type===`case-done`){let e=q(t.result);return X(e.status===`passed`?`ok`:`fail`,`${e.status===`passed`?`✓`:`✗`} ${Io(e.case)}: **${Y(J(e.status))}**${No(e.ms)}${e.summary?`. ${Y(J(e.summary),240)}`:``}`)}return t.type===`code-start`?X(`info`,`${Po(J(q(t.case).id))} writing its test`):t.type===`writeback`?X(`dim`,`Posted the result back: ${Y(JSON.stringify(t.item),240)}`):null}case`suite-done`:{let t=(Array.isArray(q(e.suite).results)?q(e.suite).results:[]).map(q),n=t.filter(e=>e.status===`passed`).length;return X(n===t.length?`ok`:`fail`,`**Suite: ${n} of ${t.length} passed**${No(q(e.suite).ms)}`)}case`info`:return X(e.ok===!1?`fail`:e.ok===!0?`ok`:`info`,Y(J(e.text)));case`agent`:return Bo(q(q(e.event)),`**Quill:** `);case`code-start`:return{tone:`info`,kind:`head`,md:`Writing a test: ${Y(J(e.goal),200)}`};case`code-done`:{let t=J(q(e.result).status);return e.error?X(`fail`,`✗ **Test not written**${No(e.ms)}: ${Y(J(e.error),240)}`):!t||t===`passed`?X(`ok`,`✓ **Test written**${No(e.ms)}`):t===`stopped`?X(`warn`,`**Test writing stopped**${No(e.ms)}`):X(`fail`,`✗ **Test not finished**${No(e.ms)} (${Y(t,40)})`)}case`card`:{let t=q(e.card),n=(Array.isArray(t.body)?t.body:[]).map(J).filter(Boolean);return X(t.status===`ok`?`ok`:t.status===`fail`?`fail`:`info`,`**${Y(J(t.title))}**${t.stats?` · ${Y(J(t.stats))}`:``}${n.length?`: ${Y(n.join(`; `),300)}`:``}`)}case`report`:return X(`ok`,`✓ Report saved: ${Y(J(e.title))}`);case`call-start`:return X(`dim`,`→ ${Y(J(e.text),240)}`);case`call`:return X(e.ok===!1?`warn`:`dim`,`${e.ok===!1?`⚠`:`✓`} ${Y(J(e.text),240)}`);default:return null}}function Uo(e){let t=J(e.at)||J(e.t),n=null;switch(e.type){case`user`:n=X(`you`,`**You:** ${Y(J(e.text),240)}`);break;case`agent`:n=Bo(q(e.event));break;case`tool`:n=Ho(q(e.event));break;case`ask`:n=X(`you`,`**Asked:** ${Y(J(q(e.question).title))}`);break;case`wait`:n=X(`you`,`**Waiting for you:** ${Y(J(e.prompt))}`);break;case`answered`:n=X(`you`,`**You:** ${e.label===void 0?e.ok?`done, continue`:`cancel`:Y(J(e.label))}`);break;case`turn_done`:n=X(e.outcome===`done`?`ok`:e.outcome===`stopped`?`warn`:`fail`,`**${e.outcome===`done`?`Done`:e.outcome===`stopped`?`Stopped`:e.outcome===`needs_input`?`Needs your input`:`Failed`}**${e.error?`: ${Y(J(e.error),300)}`:``}`);break;case`settings`:n=X(`you`,`**Settings:** browser ${e.headed?`shown`:`headless`}, ${e.writeTests?`passed runs become tests`:`no tests written`}`);break;case`model`:n=X(`you`,`**Model:** ${Y(J(q(e.profile).name),80)}`);break;case`settings_applied`:n=X(`you`,`**Settings:** carried on with the settings as they are on disk now`);break;case`stderr`:n={tone:`dim`,kind:`out`,md:J(e.text)};break;case`error`:n=X(`warn`,`⚠ ${Y(J(e.message))}`);break;case`fatal`:n=X(`fail`,`✗ **ForgeQE cannot go on:** ${Y(J(e.message))}`);break;case`exit`:n=X(e.code===0?`dim`:`fail`,`ForgeQE stopped${e.code!==null&&e.code!==void 0?` (exit ${Y(J(e.code))})`:``}${e.message?`: ${Y(J(e.message))}`:``}`)}return n?{at:t,...n,plain:n.kind===`out`?n.md:Ro(n.md)}:null}function Wo(e,t){if(!e||!t)return``;let n=Math.max(0,Math.round((Date.parse(t)-Date.parse(e))/1e3));return Number.isFinite(n)?`+${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`:``}function Go(e,t,n){let r=n?[`## ${Y(n,200)}`,``]:[],i=[],a=()=>{if(!i.length)return;let e=Math.max(2,...i.map(e=>Math.max(0,...(e.match(/`+/g)||[]).map(e=>e.length)))),t="`".repeat(e+1);r.push(``,`${t}text`,...i,t,``),i=[]};for(let n of e){let e=Wo(t,n.at),o=e?`\`${e}\``:``;n.kind===`out`?i.push(e?`${e} ${n.md}`:n.md):(a(),n.kind===`head`?r.push(``,`#### ${n.md}${o?` ${o}`:``}`,``):n.kind===`sub`?r.push(` - ${n.md}`):r.push(`- ${o?`${o} `:``}${n.md}`))}return a(),r.join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/paletteCommands-DKcFFV7I.js","assets/filters-Btr3PTRn.js","assets/line-icons-DBwNPSmu.js","assets/index-CCNq91up.js","assets/markdown-Dn8IZFhS.js","assets/index-D6jp6pDW.css","assets/CommandPalette-BkNNac9P.js"])))=>i.map(i=>d[i]);
2
+ import{$ as e,$t as t,Ar as n,At as r,C as i,Cn as a,Ct as o,D as s,Dn as c,Dt as l,E as u,En as d,Et as f,Fn as p,Ft as m,G as h,Gn as g,Gt as _,H as v,Hn as y,In as b,Jt as x,Kt as ee,L as S,Lr as C,Mt as w,Nr as T,O as E,On as D,Or as O,Pn as k,Pr as te,Qn as ne,R as re,Rn as ie,S as ae,Sn as oe,Sr as se,St as ce,T as le,Ut as ue,V as A,Vn as j,Vt as de,W as fe,Wn as pe,X as me,Xn as he,Yn as ge,Yt as _e,Zt as ve,_ as ye,_r as be,ar as xe,b as Se,bt as Ce,c as we,cr as Te,ct as Ee,d as De,dn as Oe,dt as ke,fn as Ae,fr as je,gr as Me,h as Ne,hr as M,ht as Pe,jr as Fe,jt as Ie,l as Le,lr as Re,m as ze,mn as Be,mr as Ve,n as He,nn as Ue,o as We,ot as Ge,p as Ke,q as qe,qn as Je,qt as Ye,r as Xe,rr as Ze,sn as Qe,sr as $e,t as et,tn as tt,tt as nt,u as rt,v as it,vn as at,vt as ot,wn as st,wr as ct,wt as lt,xn as ut,y as dt,yn as ft,yt as pt,z as mt}from"./line-icons-DBwNPSmu.js";import{$ as ht,A as gt,Bt as _t,C as vt,D as yt,E as N,F as bt,H as xt,Ht as St,I as Ct,It as wt,L as Tt,M as Et,Mt as Dt,N as Ot,O as kt,P as At,Qt as jt,R as Mt,S as Nt,T as Pt,V as P,Wt as Ft,X as It,Yt as Lt,_ as Rt,a as zt,b as Bt,c as Vt,ct as Ht,en as Ut,g as Wt,it as Gt,j as Kt,k as qt,l as Jt,n as Yt,o as Xt,p as F,qt as Zt,s as Qt,st as $t,tn as en,tt as tn,u as nn,v as rn,w as an,x as on,y as sn,z as I}from"./filters-Btr3PTRn.js";var L=C(te(),1),cn=`ForgeQE`,ln=/\bForgeQE\b/g,un=[`placeholder`,`title`,`aria-label`,`data-tip`,`alt`],dn=`input, textarea, pre, code, [contenteditable], [data-keep-name]`,fn=(e,t)=>t===`ForgeQE`?e:e.replace(ln,()=>t),pn=new WeakMap,mn=new WeakMap;function hn(e,t){return e&&e.shown===t?e.from:t}function gn(e){return!!e?.closest(dn)}function _n(e,t){if(gn(e.parentElement))return;let n=e.nodeValue??``,r=hn(pn.get(e),n);if(r===n&&!r.includes(`ForgeQE`))return;let i=fn(r,t);pn.set(e,{from:r,shown:i}),i!==n&&(e.nodeValue=i)}function vn(e,t){if(!e.closest(`pre, code, [contenteditable], [data-keep-name]`))for(let n of un){let r=e.getAttribute(n);if(r===null)continue;let i=mn.get(e),a=hn(i?.get(n),r);if(a===r&&!a.includes(`ForgeQE`))continue;let o=fn(a,t);i||mn.set(e,i=new Map),i.set(n,{from:a,shown:o}),o!==r&&e.setAttribute(n,o)}}function yn(e,t){if(e.nodeType===Node.TEXT_NODE)return _n(e,t);if(e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_NODE)return;e.nodeType===Node.ELEMENT_NODE&&vn(e,t);let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT);for(let e=n.nextNode();e;e=n.nextNode())e.nodeType===Node.TEXT_NODE?_n(e,t):vn(e,t)}var bn,xn=cn,Sn,Cn=()=>xn,wn=e=>fn(e,xn);function Tn(e){let t=e?.trim()||`ForgeQE`;typeof document>`u`?xn=t:(Sn===void 0&&(Sn=document.title),!(t===xn&&bn)&&(xn=t,bn?.disconnect(),yn(document.body,xn),document.title=fn(Sn,xn),bn=new MutationObserver(e=>{bn?.disconnect();for(let t of e)if(t.type===`characterData`)_n(t.target,xn);else if(t.type===`attributes`)vn(t.target,xn);else for(let e of t.addedNodes)yn(e,xn);bn?.observe(document.body,En)}),bn.observe(document.body,En)))}var En={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:[...un]},Dn=`forgeqe.engine.forgeqe-test.forgeqe-read.forgeqe-review.forgeqe-test-plan.forgeqe-heal.forgeqe-migrate.forgeqe-tosca.forgeqe-tosca-assistant.forgeqe-find.forgeqe-pr-review.forgeqe-api.forgeqe-api-plan.forgeqe-explore-plan.forgeqe-defect-rca.forgeqe-refine.forgeqe-agent-builder.forgeqe-bug-report.forgeqe-data.forgeqe-persona.forgeqe-business-strategist.forgeqe-business-interviewer.forgeqe-doc-reader.forgeqe-knowledge-agent.forgeqe-talk.forgeqe-judge.forgeqe-model-profile.forgeqe-knowledge.forgeqe-investigate.forgeqe-evidence-acceptance.forgeqe-impact-reader.forgeqe-evidence-content.forgeqe-evidence-scenarios.explore.general`.split(`.`);function On(e){try{let t=kn(e);return t&&t!==`ForgeQE`?t:void 0}catch{return}}function kn(e,t=`the name`){if(e==null)return``;if(typeof e!=`string`)throw Error(`${t} must be text.`);if(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/.test(e))throw Error(`${t} must be one line of plain text.`);let n=e.replace(/\s+/g,` `).trim();if(n.length>40)throw Error(`${t} is ${n.length} characters; at most 40.`);return n}var An={};function jn(e){let t={};if(!e||typeof e!=`object`||Array.isArray(e))return t;for(let[n,r]of Object.entries(e))if(Dn.includes(n))try{let e=kn(r);e&&(t[n]=e)}catch{}return t}function Mn(e){An=jn(e)}var Nn=e=>Object.hasOwn(An,e)?An[e]:void 0,Pn=[`orchestrator`,`specs`,`api`,`explorer`,`case`,`browser-agent`,`test-finder`,`report`,`scribe`,`knowledge-base`,`healer`,`result`,`pr-reviewer`,`rule`,`trace`,`model`,`context-engine`,`database`],Fn={orchestrator:`Atlas`,specs:`Specs`,api:`API`,explorer:`Explorer`,case:`Test case`,"browser-agent":`Browser`,"test-finder":`Search`,report:`Report`,scribe:`Coding`,"knowledge-base":`Knowledge`,healer:`Healing`,result:`Result`,"pr-reviewer":`PR review`,rule:`Rule`,trace:`Trace`,model:`Model`,"context-engine":`Helper`,database:`Database`},In=new Set(Pn),Ln=/^[a-z0-9]+(-[a-z0-9]+)*$/,Rn=/^(ph|lucide):([a-z0-9]+(?:-[a-z0-9]+)*)$/;function zn(e){return typeof e==`string`&&In.has(e)}function Bn(e){if(typeof e!=`string`||e.length>80)return;let t=Rn.exec(e);if(!t)return;let n=t[1],r=t[2];if(!(!Ln.test(r)||r.length>64)&&!/-(bold|fill|light|thin|duotone|bold-duotone)$/.test(r))return{set:n,name:r,id:`${n}:${r}`}}function Vn(e){return typeof e!=`string`||!e||e.length>80||e.includes(`\0`)||e.includes(`/`)||e.includes(`\\`)||e.includes(`..`)?!1:In.has(e)?!0:Bn(e)!==void 0}function Hn(e){if(zn(e))return Fn[e];let t=Bn(e);return t?t.name.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `):e}var Un=new Map,Wn=new Set,Gn=0;function Kn(){return{ids:[...Wn].sort(),version:Gn}}var qn=`forgeqe`,Jn={forgeqe:{name:`Atlas`,icon:`orchestrator`,hue:`#a78bfa`},"forgeqe-refine":{name:`Polish`,icon:`specs`,hue:`#8fa2ff`},"forgeqe-api-plan":{name:`Planner`,icon:`ph:list-checks`,hue:`#e0a3f5`},"forgeqe-explore-plan":{name:`Rover`,icon:`explorer`,hue:`#f59fe0`},"forgeqe-test-plan":{name:`Pathfinder`,icon:`case`,hue:`#c9b3ff`},engine:{name:`WebPilot`,icon:`browser-agent`,hue:`#5ea6f0`},desktop:{name:`DeskPilot`,icon:`ph:desktop`,hue:`#4f7fd9`},"forgeqe-find":{name:`Hound`,icon:`test-finder`,hue:`#1fa3c4`},"forgeqe-test":{name:`Quill`,icon:`scribe`,hue:`#3a9a7e`},"forgeqe-read":{name:`Vera`,icon:`knowledge-base`,hue:`#3fa34d`},"forgeqe-heal":{name:`Mender`,icon:`healer`,hue:`#86a92c`},"forgeqe-migrate":{name:`Mover`,icon:`ph:arrows-left-right`,hue:`#2f8f63`},"forgeqe-tosca":{name:`Bridge`,icon:`ph:bridge`,hue:`#2c7a4b`},"forgeqe-api":{name:`Link`,icon:`api`,hue:`#1f9c90`},"forgeqe-review":{name:`Checker`,icon:`result`,hue:`#e0457b`},"forgeqe-pr-review":{name:`Patch`,icon:`pr-reviewer`,hue:`#d93a52`},"forgeqe-judge":{name:`Gavel`,icon:`rule`,hue:`#e0603a`},"forgeqe-defect-rca":{name:`Sleuth`,icon:`trace`,hue:`#d6701f`},"forgeqe-model-profile":{name:`Scales`,icon:`model`,hue:`#b88a14`},"forgeqe-data":{name:`Miner`,icon:`database`,hue:`#2b7fc2`},"forgeqe-persona":{name:`Mask`,icon:`ph:identification-badge`,hue:`#7d3f8a`},"forgeqe-business-strategist":{name:`Watchdog`,icon:`ph:target`,hue:`#8a2846`},"forgeqe-knowledge-agent":{name:`Librarian`,icon:`ph:lightbulb`,hue:`#4f6672`},explore:{name:`Scout`,icon:`ph:binoculars`,hue:`#62789e`},general:{name:`Jack`,icon:`context-engine`,hue:`#a07c43`}},Yn={"forgeqe-agent-builder":`Smith`,"forgeqe-talk":`Aria`,"forgeqe-bug-report":`Herald`,"forgeqe-bi":`Beacon`,"forgeqe-knowledge":`Mapper`,"forgeqe-investigate":`Digger`,"forgeqe-evidence-acceptance":`Clerk`,"forgeqe-impact-reader":`Ripple`,"forgeqe-evidence-content":`Grader`,"forgeqe-evidence-scenarios":`Drafter`,"forgeqe-business-interviewer":`Echo`,"forgeqe-doc-reader":`Skimmer`,"forgeqe-tosca-assistant":`Guide`},Xn={"forgeqe-agent-builder":`ph:puzzle-piece`,"forgeqe-talk":`ph:microphone-stage`,"forgeqe-bug-report":`ph:bug`,"forgeqe-bi":`report`,"forgeqe-knowledge":`ph:share-network`,"forgeqe-investigate":`ph:magnifying-glass-plus`,"forgeqe-evidence-acceptance":`ph:clipboard-text`,"forgeqe-impact-reader":`ph:waves`,"forgeqe-evidence-content":`ph:quotes`,"forgeqe-evidence-scenarios":`ph:cards`,"forgeqe-business-interviewer":`ph:microphone`,"forgeqe-doc-reader":`ph:book-open-text`},Zn=Object.freeze(Object.keys(Xn));function Qn(e){let t=Nn(e),n=er(e);return t?{...n,name:t}:n}function $n(e,t=!1){return/\bagent$/i.test(e.trim())?`${t?`The`:`the`} ${e}`:e}function er(e){let t=Object.hasOwn(Jn,e)?Jn[e]:void 0;if(t)return t;let n=Un.get(e)||(Object.hasOwn(Xn,e)?Xn[e]:void 0)||`context-engine`;if(Object.hasOwn(Yn,e))return{name:Yn[e],icon:n,hue:`#62789e`};let r=e.replace(/^forgeqe-/,``).replace(/[-_]+/g,` `).trim().slice(0,40),i=r?r.charAt(0).toUpperCase()+r.slice(1):``;return{name:i?/ agent$/i.test(i)?i:`${i} agent`:`Jack`,icon:n,hue:`#62789e`}}var tr=[{id:`assisted`,label:`Advisers`,about:`AI assisted: they help with your work, shaping a request, finding tests, reviewing and rating, and you decide.`,short:`Help you decide`},{id:`native`,label:`Builders`,about:`AI native: they make the work itself, plans, tests and diagnoses written from your runs and your descriptions.`,short:`Do the work for you`},{id:`agentic`,label:`Operators`,about:`Agentic: they act on their own across many steps, using the browser, your tools and the other agents to finish a task.`,short:`Work on their own`},{id:`custom`,label:`Custom agents`,about:`Agents your team makes for its own work.`,short:`Made by your team`}],nr=[{id:`orchestrator`,short:`Leads every chat`,category:`agentic`,agent:`forgeqe`,runs:[`forgeqe`],about:`Leads every chat: works out what you asked, uses ForgeQE's tools and your connected systems, and hands parts to the other agents.`,starters:[{label:`Run test cases`,text:`Run SHOP-12 and SHOP-14 on Chrome and Edge`},{label:`Review requirements`,text:`Review the payments refund brief and list its gaps`}]},{id:`browser`,short:`Runs tests in a browser`,category:`agentic`,agent:`engine`,runs:[`engine`,`browser agent`],about:`Runs your test cases in a real browser, step by step, and keeps a screenshot of every step as evidence.`,starters:[{label:`Run test cases`,text:`Run SHOP-12 and SHOP-14 on Chrome and Edge`},{label:`Check a page`,text:`Sign in to QA and check the dashboard loads with this week's orders`},{label:`Try it as a blind user`,text:`Act as a blind screen reader user and try to check out on QA: list the accessibility barriers`}]},{id:`desktop`,short:`Automates desktop apps`,category:`agentic`,agent:`desktop`,runs:[`desktop`,`desktop agent`],about:`Carries out a goal in a Windows desktop app and saves it as a workflow with checks, records the steps you do by hand, and replays saved workflows with no model. It asks before it takes the mouse and keyboard.`,prompt:!1,starters:[{label:`Automate a task`,text:`Create an invoice for Contoso in the Billing app and save it as a test`},{label:`Record my steps`,text:`I'll show you the steps in Billing: record them`},{label:`Replay a workflow`,text:`Replay the billing workflow with customer Fabrikam`}]},{id:`exploration`,short:`Explores user journeys`,category:`agentic`,agent:`forgeqe-explore-plan`,runs:[`forgeqe-explore-plan`],about:`Explores a journey the way a curious user would, and plans charters for what is worth a closer look.`,starters:[{label:`Explore a journey`,text:`Explore the checkout on QA and report anything that looks wrong`},{label:`Plan charters`,text:`Plan exploratory charters for the new refunds page`}]},{id:`planning`,short:`Places recorded tests`,category:`native`,agent:`forgeqe-test-plan`,runs:[`forgeqe-test-plan`],about:`Plans where a test recorded by hand belongs in your repository, and what it reuses there.`,starters:[{label:`Plan a recording`,text:`Plan where my last recording goes in the repository`}]},{id:`coding`,short:`Writes automated tests`,category:`native`,agent:`forgeqe-test`,runs:[`forgeqe-test`,`forgeqe-read`],about:`Writes automated tests in your repository from a verified run, in your team's style, and shows its plan first.`,starters:[{label:`Write a test`,text:`Write a Playwright test for the login flow on QA`},{label:`Automate a case`,text:`Turn SHOP-12 into an automated test`}]},{id:`search`,short:`Finds the right tests`,category:`assisted`,agent:`forgeqe-find`,runs:[`forgeqe-find`],about:`Finds the tests in your repository that a request means, so they can run without being named one by one.`,starters:[{label:`Find tests`,text:`Which tests in the repository cover the login flow?`},{label:`Find and run`,text:`Find the tests for the basket and run them`}]},{id:`knowledge-agent`,short:`Says what ForgeQE knows`,category:`assisted`,agent:`forgeqe-knowledge-agent`,runs:[`forgeqe-knowledge-agent`,`Librarian`],about:`Tells you what ForgeQE has understood about your product, from its knowledge notes, documents, skills and product graph, and takes your corrections. Each change to a note, a skill, a team prompt or the graph is shown first and written only when you approve it.`,starters:[{label:`Ask what it knows`,text:`What do you know about refunds?`},{label:`Correct it`,text:`Refunds over 1000 EUR need a supervisor, not 500: correct it`}]},{id:`healing`,short:`Fixes broken tests`,category:`agentic`,agent:`forgeqe-heal`,runs:[`forgeqe-heal`],about:`Fixes tests the application outgrew, such as a moved button or a renamed field, and says what it changed.`,starters:[{label:`Heal failing tests`,text:`Heal the tests that failed in last night's run`}]},{id:`migration`,short:`Migrates test suites`,category:`agentic`,agent:`forgeqe-migrate`,runs:[`forgeqe-migrate`],about:`Moves a test suite to another framework or language, such as Selenium Java to Playwright, after a plan you confirm; ForgeQE runs every migrated test.`,opens:[`migration`],starters:[{label:`Plan a migration`,text:`Plan migrating our Selenium tests in tests/ to Playwright TypeScript`}]},{id:`tosca`,short:`Converts Tosca tests`,category:`agentic`,agent:`forgeqe-tosca`,runs:[`forgeqe-tosca`],about:`Converts Tricentis Tosca test cases from a .tsu export into Playwright, Cypress, Selenium or WebdriverIO tests, after a plan you confirm; every Tosca step and check is kept, and ForgeQE runs every converted test.`,opens:[`tosca`],starters:[{label:`Inspect an export`,text:`What does the Tosca export tosca/checkout.tsu hold?`},{label:`Plan a conversion`,text:`Plan converting tosca/checkout.tsu to Playwright TypeScript`}]},{id:`api`,short:`Writes API tests`,category:`native`,agent:`forgeqe-api`,runs:[`forgeqe-api`],about:`Writes API and contract tests in your repository from your API's description, with test data from your databases.`,starters:[{label:`Contract tests`,text:`Write contract tests for the orders API`}]},{id:`db`,short:`Finds test data`,category:`native`,agent:`forgeqe-data`,runs:[`forgeqe-data`,`Miner`],about:`Reads your connected databases and answers in your words: the test data a test needs, as existing rows or new ones with their INSERT script, and queries, data checks and database test scripts. The other agents ask it before they run.`,starters:[{label:`Find test data`,text:`Find two customers with paid orders for the checkout test`},{label:`Check the data`,text:`Check the orders table: no order without a customer, no negative totals`}]},{id:`persona`,short:`Business personas`,category:`native`,agent:`forgeqe-persona`,runs:[`forgeqe-persona`,`Mask`],about:`Describes the people who validate your software the way the business does: a subject matter expert such as a payments SME, an end user, a specialist or a business user, with what each one checks before they accept it. Every agent can act as one or test for one.`,starters:[{label:`A payments SME`,text:`Create a persona of an SME in card payments who reconciles settlements and handles refunds`},{label:`Test as a customer`,text:`Test the checkout as the retail-customer persona`}]},{id:`business`,short:`Business assurance`,category:`agentic`,agent:`forgeqe-business-strategist`,runs:[`forgeqe-business-strategist`,`Scenario Strategist`,`forgeqe-business-interviewer`,`Echo`],about:`Tests how your business really works: what customers, employees and opportunists could do with it, what the business could lose, and the evidence of each outcome. It plays business scenarios as personas through your API on a test environment and judges the business result, not the HTTP status.`,starters:[{label:`Refunds and coupons`,text:`Test our refunds and coupons the way an opportunistic customer would`},{label:`What could we lose?`,text:`Find business-logic flaws in the order process`}]},{id:`api-planning`,short:`Plans API scenarios`,category:`native`,agent:`forgeqe-api-plan`,runs:[`forgeqe-api-plan`],about:`Plans end-to-end API scenarios from your API's description: the calls, their order and what each checks.`,starters:[{label:`Plan scenarios`,text:`Plan end-to-end scenarios for the payments API`}]},{id:`review`,short:`Reviews written tests`,category:`assisted`,agent:`forgeqe-review`,runs:[`forgeqe-review`],about:`Reviews the tests Quill wrote against your team's rules before you take them.`,starters:[{label:`Review tests`,text:`Review the tests written in my last chat`}]},{id:`pr-review`,short:`Reviews pull requests`,category:`assisted`,agent:`forgeqe-pr-review`,runs:[`forgeqe-pr-review`],about:`Reviews a pull request's tests and changes, and says what is missing or risky.`,starters:[{label:`Review a pull request`,text:`Review the tests in pull request 42`}]},{id:`root-cause`,short:`Explains failures`,category:`native`,agent:`forgeqe-defect-rca`,runs:[`forgeqe-defect-rca`],about:`Finds why a test failed: the defect, the step where it showed, and the evidence for it.`,starters:[{label:`Find a root cause`,text:`Find the root cause of last night's checkout failure`}]},{id:`refine`,short:`Clarifies a request`,category:`assisted`,agent:`forgeqe-refine`,runs:[`forgeqe-refine`],about:`Turns a rough request into a clear task: the steps, the data and the checks that say it worked.`,starters:[{label:`Refine a request`,text:`Test the refund journey for an order that was partly paid by gift card`}]},{id:`evaluation`,short:`Scores test cases`,category:`assisted`,agent:`forgeqe-judge`,runs:[`forgeqe-judge`],about:`Scores test cases against what a domain expert expects them to cover, for ForgeQE's domain evaluations.`,starters:[{label:`Evaluate cases`,text:`Evaluate how well our test cases cover the payments domain`}]},{id:`model-rating`,short:`Rates your models`,category:`assisted`,agent:`forgeqe-model-profile`,runs:[`forgeqe-model-profile`],about:`Rates your configured models for each kind of ForgeQE work, so model routing picks the right one.`,starters:[{label:`Rate the models`,text:`Rate the configured models for routing`}]},{id:`research`,short:`Looks things up`,category:`agentic`,agent:`explore`,runs:[`explore`],about:`Searches and reads the repository and web pages for the agent that calls it; it changes nothing.`,starters:[{label:`Look something up`,text:`Find where the checkout page object is defined`}]},{id:`helper`,short:`Takes on sub-tasks`,category:`agentic`,agent:`general`,runs:[`general`],about:`Takes on a part of a bigger task for the agent that calls it, with the same tools.`,starters:[{label:`Split a task`,text:`Check the three login tests in parallel and summarise what fails`}]}],rr=e=>nr.find(t=>t.id===e);function ir(e,t=`all`){let n=e.toLowerCase().split(/\s+/).filter(Boolean),r=e=>tr.find(t=>t.id===e)?.label||``;return nr.filter(e=>(t===`all`||e.category===t)&&n.every(t=>`${Qn(e.agent).name} ${e.id} ${e.short} ${e.about} ${r(e.category)}`.toLowerCase().includes(t)))}var ar=`category`,or=e=>tr.find(t=>t.id===e);function sr(e){try{let t=JSON.parse(e||`[]`);return Array.isArray(t)?[...new Set(t.filter(e=>typeof e==`string`&&(rr(e)!==void 0||dr(e)!==void 0)))]:[]}catch{return[]}}var cr=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function lr(e,t=`merge`){let n=[...Wn].join(`,`);t===`replace`&&(Un.clear(),Wn.clear());for(let t of e)typeof t.id!=`string`||!cr.test(t.id)||t.id.length>40||(Wn.add(t.id),Vn(t.icon)?Un.set(t.id,t.icon):Un.delete(t.id));[...Wn].join(`,`)!==n&&Gn++}var ur=e=>`custom:${e}`;function dr(e){let t=e.startsWith(`custom:`)?e.slice(7):``;return cr.test(t)&&t.length<=40?t:void 0}function fr(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean);return e.filter(e=>n.every(t=>`${e.name} ${e.id} ${e.description} custom`.toLowerCase().includes(t)))}var pr=`ph:acorn.ph:activity.ph:address-book.ph:address-book-tabs.ph:air-traffic-control.ph:airplane.ph:airplane-in-flight.ph:airplane-landing.ph:airplane-takeoff.ph:airplane-taxiing.ph:airplane-tilt.ph:airplay.ph:alarm.ph:alien.ph:align-bottom.ph:align-bottom-simple.ph:align-center-horizontal.ph:align-center-horizontal-simple.ph:align-center-vertical.ph:align-center-vertical-simple.ph:align-left.ph:align-left-simple.ph:align-right.ph:align-right-simple.ph:align-top.ph:align-top-simple.ph:amazon-logo.ph:ambulance.ph:anchor.ph:anchor-simple.ph:android-logo.ph:angle.ph:angular-logo.ph:aperture.ph:app-store-logo.ph:app-window.ph:apple-logo.ph:apple-podcasts-logo.ph:approximate-equals.ph:archive.ph:armchair.ph:arrow-arc-left.ph:arrow-arc-right.ph:arrow-bend-double-up-left.ph:arrow-bend-double-up-right.ph:arrow-bend-down-left.ph:arrow-bend-down-right.ph:arrow-bend-left-down.ph:arrow-bend-left-up.ph:arrow-bend-right-down.ph:arrow-bend-right-up.ph:arrow-bend-up-left.ph:arrow-bend-up-right.ph:arrow-circle-down.ph:arrow-circle-down-left.ph:arrow-circle-down-right.ph:arrow-circle-left.ph:arrow-circle-right.ph:arrow-circle-up.ph:arrow-circle-up-left.ph:arrow-circle-up-right.ph:arrow-clockwise.ph:arrow-counter-clockwise.ph:arrow-down.ph:arrow-down-left.ph:arrow-down-right.ph:arrow-elbow-down-left.ph:arrow-elbow-down-right.ph:arrow-elbow-left.ph:arrow-elbow-left-down.ph:arrow-elbow-left-up.ph:arrow-elbow-right.ph:arrow-elbow-right-down.ph:arrow-elbow-right-up.ph:arrow-elbow-up-left.ph:arrow-elbow-up-right.ph:arrow-fat-down.ph:arrow-fat-left.ph:arrow-fat-line-down.ph:arrow-fat-line-left.ph:arrow-fat-line-right.ph:arrow-fat-line-up.ph:arrow-fat-lines-down.ph:arrow-fat-lines-left.ph:arrow-fat-lines-right.ph:arrow-fat-lines-up.ph:arrow-fat-right.ph:arrow-fat-up.ph:arrow-left.ph:arrow-line-down.ph:arrow-line-down-left.ph:arrow-line-down-right.ph:arrow-line-left.ph:arrow-line-right.ph:arrow-line-up.ph:arrow-line-up-left.ph:arrow-line-up-right.ph:arrow-right.ph:arrow-square-down.ph:arrow-square-down-left.ph:arrow-square-down-right.ph:arrow-square-in.ph:arrow-square-left.ph:arrow-square-out.ph:arrow-square-right.ph:arrow-square-up.ph:arrow-square-up-left.ph:arrow-square-up-right.ph:arrow-u-down-left.ph:arrow-u-down-right.ph:arrow-u-left-down.ph:arrow-u-left-up.ph:arrow-u-right-down.ph:arrow-u-right-up.ph:arrow-u-up-left.ph:arrow-u-up-right.ph:arrow-up.ph:arrow-up-left.ph:arrow-up-right.ph:arrows-clockwise.ph:arrows-counter-clockwise.ph:arrows-down-up.ph:arrows-horizontal.ph:arrows-in.ph:arrows-in-cardinal.ph:arrows-in-line-horizontal.ph:arrows-in-line-vertical.ph:arrows-in-simple.ph:arrows-left-right.ph:arrows-merge.ph:arrows-out.ph:arrows-out-cardinal.ph:arrows-out-line-horizontal.ph:arrows-out-line-vertical.ph:arrows-out-simple.ph:arrows-split.ph:arrows-vertical.ph:article.ph:article-medium.ph:article-ny-times.ph:asclepius.ph:asterisk.ph:asterisk-simple.ph:at.ph:atom.ph:avocado.ph:axe.ph:baby.ph:baby-carriage.ph:backpack.ph:backspace.ph:bag.ph:bag-simple.ph:balloon.ph:bandaids.ph:bank.ph:barbell.ph:barcode.ph:barn.ph:barricade.ph:baseball.ph:baseball-cap.ph:baseball-helmet.ph:basket.ph:basketball.ph:bathtub.ph:battery-charging.ph:battery-charging-vertical.ph:battery-empty.ph:battery-full.ph:battery-high.ph:battery-low.ph:battery-medium.ph:battery-plus.ph:battery-plus-vertical.ph:battery-vertical-empty.ph:battery-vertical-full.ph:battery-vertical-high.ph:battery-vertical-low.ph:battery-vertical-medium.ph:battery-warning.ph:battery-warning-vertical.ph:beach-ball.ph:beanie.ph:bed.ph:beer-bottle.ph:beer-stein.ph:behance-logo.ph:bell.ph:bell-ringing.ph:bell-simple.ph:bell-simple-ringing.ph:bell-simple-slash.ph:bell-simple-z.ph:bell-slash.ph:bell-z.ph:belt.ph:bezier-curve.ph:bicycle.ph:binary.ph:binoculars.ph:biohazard.ph:bird.ph:blueprint.ph:bluetooth.ph:bluetooth-connected.ph:bluetooth-slash.ph:bluetooth-x.ph:boat.ph:bomb.ph:bone.ph:book.ph:book-bookmark.ph:book-open.ph:book-open-text.ph:book-open-user.ph:bookmark.ph:bookmark-simple.ph:bookmarks.ph:bookmarks-simple.ph:books.ph:boot.ph:boules.ph:bounding-box.ph:bowl-food.ph:bowl-steam.ph:bowling-ball.ph:box-arrow-down.ph:box-arrow-up.ph:boxing-glove.ph:brackets-angle.ph:brackets-curly.ph:brackets-round.ph:brackets-square.ph:brain.ph:brandy.ph:bread.ph:bridge.ph:briefcase.ph:briefcase-metal.ph:briefcase-simple.ph:broadcast.ph:broom.ph:browser.ph:browsers.ph:bug.ph:bug-beetle.ph:bug-droid.ph:building.ph:building-apartment.ph:building-office.ph:buildings.ph:bulldozer.ph:bus.ph:butterfly.ph:cable-car.ph:cactus.ph:cake.ph:calculator.ph:calendar.ph:calendar-blank.ph:calendar-check.ph:calendar-dot.ph:calendar-dots.ph:calendar-heart.ph:calendar-minus.ph:calendar-plus.ph:calendar-slash.ph:calendar-star.ph:calendar-x.ph:call-bell.ph:camera.ph:camera-plus.ph:camera-rotate.ph:camera-slash.ph:campfire.ph:car.ph:car-battery.ph:car-profile.ph:car-simple.ph:cardholder.ph:cards.ph:cards-three.ph:caret-circle-double-down.ph:caret-circle-double-left.ph:caret-circle-double-right.ph:caret-circle-double-up.ph:caret-circle-down.ph:caret-circle-left.ph:caret-circle-right.ph:caret-circle-up.ph:caret-circle-up-down.ph:caret-double-down.ph:caret-double-left.ph:caret-double-right.ph:caret-double-up.ph:caret-down.ph:caret-left.ph:caret-line-down.ph:caret-line-left.ph:caret-line-right.ph:caret-line-up.ph:caret-right.ph:caret-up.ph:caret-up-down.ph:carrot.ph:cash-register.ph:cassette-tape.ph:castle-turret.ph:cat.ph:cell-signal-full.ph:cell-signal-high.ph:cell-signal-low.ph:cell-signal-medium.ph:cell-signal-none.ph:cell-signal-slash.ph:cell-signal-x.ph:cell-tower.ph:certificate.ph:chair.ph:chalkboard.ph:chalkboard-simple.ph:chalkboard-teacher.ph:champagne.ph:charging-station.ph:chart-bar.ph:chart-bar-horizontal.ph:chart-donut.ph:chart-line.ph:chart-line-down.ph:chart-line-up.ph:chart-pie.ph:chart-pie-slice.ph:chart-polar.ph:chart-scatter.ph:chat.ph:chat-centered.ph:chat-centered-dots.ph:chat-centered-slash.ph:chat-centered-text.ph:chat-circle.ph:chat-circle-dots.ph:chat-circle-slash.ph:chat-circle-text.ph:chat-dots.ph:chat-slash.ph:chat-teardrop.ph:chat-teardrop-dots.ph:chat-teardrop-slash.ph:chat-teardrop-text.ph:chat-text.ph:chats.ph:chats-circle.ph:chats-teardrop.ph:check.ph:check-circle.ph:check-fat.ph:check-square.ph:check-square-offset.ph:checkerboard.ph:checks.ph:cheers.ph:cheese.ph:chef-hat.ph:cherries.ph:church.ph:cigarette.ph:cigarette-slash.ph:circle.ph:circle-dashed.ph:circle-half.ph:circle-half-tilt.ph:circle-notch.ph:circle-wavy.ph:circle-wavy-check.ph:circle-wavy-question.ph:circle-wavy-warning.ph:circles-four.ph:circles-three.ph:circles-three-plus.ph:circuitry.ph:city.ph:clipboard.ph:clipboard-text.ph:clock.ph:clock-afternoon.ph:clock-clockwise.ph:clock-countdown.ph:clock-counter-clockwise.ph:clock-user.ph:closed-captioning.ph:cloud.ph:cloud-arrow-down.ph:cloud-arrow-up.ph:cloud-check.ph:cloud-fog.ph:cloud-lightning.ph:cloud-moon.ph:cloud-rain.ph:cloud-slash.ph:cloud-snow.ph:cloud-sun.ph:cloud-warning.ph:cloud-x.ph:clover.ph:club.ph:coat-hanger.ph:coda-logo.ph:code.ph:code-block.ph:code-simple.ph:codepen-logo.ph:codesandbox-logo.ph:coffee.ph:coffee-bean.ph:coin.ph:coin-vertical.ph:coins.ph:columns.ph:columns-plus-left.ph:columns-plus-right.ph:command.ph:compass.ph:compass-rose.ph:compass-tool.ph:computer-tower.ph:confetti.ph:contactless-payment.ph:control.ph:cookie.ph:cooking-pot.ph:copy.ph:copy-simple.ph:copyleft.ph:copyright.ph:corners-in.ph:corners-out.ph:couch.ph:court-basketball.ph:cow.ph:cowboy-hat.ph:cpu.ph:crane.ph:crane-tower.ph:credit-card.ph:cricket.ph:crop.ph:cross.ph:crosshair.ph:crosshair-simple.ph:crown.ph:crown-cross.ph:crown-simple.ph:cube.ph:cube-focus.ph:cube-transparent.ph:currency-btc.ph:currency-circle-dollar.ph:currency-cny.ph:currency-dollar.ph:currency-dollar-simple.ph:currency-eth.ph:currency-eur.ph:currency-gbp.ph:currency-inr.ph:currency-jpy.ph:currency-krw.ph:currency-kzt.ph:currency-ngn.ph:currency-rub.ph:cursor.ph:cursor-click.ph:cursor-text.ph:cylinder.ph:database.ph:desk.ph:desktop.ph:desktop-tower.ph:detective.ph:dev-to-logo.ph:device-mobile.ph:device-mobile-camera.ph:device-mobile-slash.ph:device-mobile-speaker.ph:device-rotate.ph:device-tablet.ph:device-tablet-camera.ph:device-tablet-speaker.ph:devices.ph:diamond.ph:diamonds-four.ph:dice-five.ph:dice-four.ph:dice-one.ph:dice-six.ph:dice-three.ph:dice-two.ph:disc.ph:disco-ball.ph:discord-logo.ph:divide.ph:dna.ph:dog.ph:door.ph:door-open.ph:dot.ph:dot-outline.ph:dots-nine.ph:dots-six.ph:dots-six-vertical.ph:dots-three.ph:dots-three-circle.ph:dots-three-circle-vertical.ph:dots-three-outline.ph:dots-three-outline-vertical.ph:dots-three-vertical.ph:download.ph:download-simple.ph:dress.ph:dresser.ph:dribbble-logo.ph:drone.ph:drop.ph:drop-half.ph:drop-half-bottom.ph:drop-simple.ph:drop-slash.ph:dropbox-logo.ph:ear.ph:ear-slash.ph:egg.ph:egg-crack.ph:eject.ph:eject-simple.ph:elevator.ph:empty.ph:engine.ph:envelope.ph:envelope-open.ph:envelope-simple.ph:envelope-simple-open.ph:equalizer.ph:equals.ph:eraser.ph:escalator-down.ph:escalator-up.ph:exam.ph:exclamation-mark.ph:exclude.ph:exclude-square.ph:export.ph:eye.ph:eye-closed.ph:eye-slash.ph:eyedropper.ph:eyedropper-sample.ph:eyeglasses.ph:eyes.ph:face-mask.ph:facebook-logo.ph:factory.ph:faders.ph:faders-horizontal.ph:fallout-shelter.ph:fan.ph:farm.ph:fast-forward.ph:fast-forward-circle.ph:feather.ph:fediverse-logo.ph:figma-logo.ph:file.ph:file-archive.ph:file-arrow-down.ph:file-arrow-up.ph:file-audio.ph:file-c.ph:file-c-sharp.ph:file-cloud.ph:file-code.ph:file-cpp.ph:file-css.ph:file-csv.ph:file-dashed.ph:file-doc.ph:file-dotted.ph:file-html.ph:file-image.ph:file-ini.ph:file-jpg.ph:file-js.ph:file-jsx.ph:file-lock.ph:file-magnifying-glass.ph:file-md.ph:file-minus.ph:file-pdf.ph:file-plus.ph:file-png.ph:file-ppt.ph:file-py.ph:file-rs.ph:file-search.ph:file-sql.ph:file-svg.ph:file-text.ph:file-ts.ph:file-tsx.ph:file-txt.ph:file-video.ph:file-vue.ph:file-x.ph:file-xls.ph:file-zip.ph:files.ph:film-reel.ph:film-script.ph:film-slate.ph:film-strip.ph:fingerprint.ph:fingerprint-simple.ph:finn-the-human.ph:fire.ph:fire-extinguisher.ph:fire-simple.ph:fire-truck.ph:first-aid.ph:first-aid-kit.ph:fish.ph:fish-simple.ph:flag.ph:flag-banner.ph:flag-banner-fold.ph:flag-checkered.ph:flag-pennant.ph:flame.ph:flashlight.ph:flask.ph:flip-horizontal.ph:flip-vertical.ph:floppy-disk.ph:floppy-disk-back.ph:flow-arrow.ph:flower.ph:flower-lotus.ph:flower-tulip.ph:flying-saucer.ph:folder.ph:folder-dashed.ph:folder-dotted.ph:folder-lock.ph:folder-minus.ph:folder-notch.ph:folder-notch-minus.ph:folder-notch-open.ph:folder-notch-plus.ph:folder-open.ph:folder-plus.ph:folder-simple.ph:folder-simple-dashed.ph:folder-simple-dotted.ph:folder-simple-lock.ph:folder-simple-minus.ph:folder-simple-plus.ph:folder-simple-star.ph:folder-simple-user.ph:folder-star.ph:folder-user.ph:folders.ph:football.ph:football-helmet.ph:footprints.ph:fork-knife.ph:four-k.ph:frame-corners.ph:framer-logo.ph:function.ph:funnel.ph:funnel-simple.ph:funnel-simple-x.ph:funnel-x.ph:game-controller.ph:garage.ph:gas-can.ph:gas-pump.ph:gauge.ph:gavel.ph:gear.ph:gear-fine.ph:gear-six.ph:gender-female.ph:gender-intersex.ph:gender-male.ph:gender-neuter.ph:gender-nonbinary.ph:gender-transgender.ph:ghost.ph:gif.ph:gift.ph:git-branch.ph:git-commit.ph:git-diff.ph:git-fork.ph:git-merge.ph:git-pull-request.ph:github-logo.ph:gitlab-logo.ph:gitlab-logo-simple.ph:globe.ph:globe-hemisphere-east.ph:globe-hemisphere-west.ph:globe-simple.ph:globe-simple-x.ph:globe-stand.ph:globe-x.ph:goggles.ph:golf.ph:goodreads-logo.ph:google-cardboard-logo.ph:google-chrome-logo.ph:google-drive-logo.ph:google-logo.ph:google-photos-logo.ph:google-play-logo.ph:google-podcasts-logo.ph:gps.ph:gps-fix.ph:gps-slash.ph:gradient.ph:graduation-cap.ph:grains.ph:grains-slash.ph:graph.ph:graphics-card.ph:greater-than.ph:greater-than-or-equal.ph:grid-four.ph:grid-nine.ph:guitar.ph:hair-dryer.ph:hamburger.ph:hammer.ph:hand.ph:hand-arrow-down.ph:hand-arrow-up.ph:hand-coins.ph:hand-deposit.ph:hand-eye.ph:hand-fist.ph:hand-grabbing.ph:hand-heart.ph:hand-palm.ph:hand-peace.ph:hand-pointing.ph:hand-soap.ph:hand-swipe-left.ph:hand-swipe-right.ph:hand-tap.ph:hand-waving.ph:hand-withdraw.ph:handbag.ph:handbag-simple.ph:hands-clapping.ph:hands-praying.ph:handshake.ph:hard-drive.ph:hard-drives.ph:hard-hat.ph:hash.ph:hash-straight.ph:head-circuit.ph:headlights.ph:headphones.ph:headset.ph:heart.ph:heart-break.ph:heart-half.ph:heart-straight.ph:heart-straight-break.ph:heartbeat.ph:hexagon.ph:high-definition.ph:high-heel.ph:highlighter.ph:highlighter-circle.ph:hockey.ph:hoodie.ph:horse.ph:hospital.ph:hourglass.ph:hourglass-high.ph:hourglass-low.ph:hourglass-medium.ph:hourglass-simple.ph:hourglass-simple-high.ph:hourglass-simple-low.ph:hourglass-simple-medium.ph:house.ph:house-line.ph:house-simple.ph:hurricane.ph:ice-cream.ph:identification-badge.ph:identification-card.ph:image.ph:image-broken.ph:image-square.ph:images.ph:images-square.ph:infinity.ph:info.ph:instagram-logo.ph:intersect.ph:intersect-square.ph:intersect-three.ph:intersection.ph:invoice.ph:island.ph:jar.ph:jar-label.ph:jeep.ph:joystick.ph:kanban.ph:key.ph:key-return.ph:keyboard.ph:keyhole.ph:knife.ph:ladder.ph:ladder-simple.ph:lamp.ph:lamp-pendant.ph:laptop.ph:lasso.ph:lastfm-logo.ph:layout.ph:leaf.ph:lectern.ph:lego.ph:lego-smiley.ph:less-than.ph:less-than-or-equal.ph:letter-circle-h.ph:letter-circle-p.ph:letter-circle-v.ph:lifebuoy.ph:lightbulb.ph:lightbulb-filament.ph:lighthouse.ph:lightning.ph:lightning-a.ph:lightning-slash.ph:line-segment.ph:line-segments.ph:line-vertical.ph:link.ph:link-break.ph:link-simple.ph:link-simple-break.ph:link-simple-horizontal.ph:link-simple-horizontal-break.ph:linkedin-logo.ph:linktree-logo.ph:linux-logo.ph:list.ph:list-bullets.ph:list-checks.ph:list-dashes.ph:list-heart.ph:list-magnifying-glass.ph:list-numbers.ph:list-plus.ph:list-star.ph:lock.ph:lock-key.ph:lock-key-open.ph:lock-laminated.ph:lock-laminated-open.ph:lock-open.ph:lock-simple.ph:lock-simple-open.ph:lockers.ph:log.ph:magic-wand.ph:magnet.ph:magnet-straight.ph:magnifying-glass.ph:magnifying-glass-minus.ph:magnifying-glass-plus.ph:mailbox.ph:map-pin.ph:map-pin-area.ph:map-pin-line.ph:map-pin-plus.ph:map-pin-simple.ph:map-pin-simple-area.ph:map-pin-simple-line.ph:map-trifold.ph:markdown-logo.ph:marker-circle.ph:martini.ph:mask-happy.ph:mask-sad.ph:mastodon-logo.ph:math-operations.ph:matrix-logo.ph:medal.ph:medal-military.ph:medium-logo.ph:megaphone.ph:megaphone-simple.ph:member-of.ph:memory.ph:messenger-logo.ph:meta-logo.ph:meteor.ph:metronome.ph:microphone.ph:microphone-slash.ph:microphone-stage.ph:microscope.ph:microsoft-excel-logo.ph:microsoft-outlook-logo.ph:microsoft-powerpoint-logo.ph:microsoft-teams-logo.ph:microsoft-word-logo.ph:minus.ph:minus-circle.ph:minus-square.ph:money.ph:money-wavy.ph:monitor.ph:monitor-arrow-up.ph:monitor-play.ph:moon.ph:moon-stars.ph:moped.ph:moped-front.ph:mosque.ph:motorcycle.ph:mountains.ph:mouse.ph:mouse-left-click.ph:mouse-middle-click.ph:mouse-right-click.ph:mouse-scroll.ph:mouse-simple.ph:music-note.ph:music-note-simple.ph:music-notes.ph:music-notes-minus.ph:music-notes-plus.ph:music-notes-simple.ph:navigation-arrow.ph:needle.ph:network.ph:network-slash.ph:network-x.ph:newspaper.ph:newspaper-clipping.ph:not-equals.ph:not-member-of.ph:not-subset-of.ph:not-superset-of.ph:notches.ph:note.ph:note-blank.ph:note-pencil.ph:notebook.ph:notepad.ph:notification.ph:notion-logo.ph:nuclear-plant.ph:number-circle-eight.ph:number-circle-five.ph:number-circle-four.ph:number-circle-nine.ph:number-circle-one.ph:number-circle-seven.ph:number-circle-six.ph:number-circle-three.ph:number-circle-two.ph:number-circle-zero.ph:number-eight.ph:number-five.ph:number-four.ph:number-nine.ph:number-one.ph:number-seven.ph:number-six.ph:number-square-eight.ph:number-square-five.ph:number-square-four.ph:number-square-nine.ph:number-square-one.ph:number-square-seven.ph:number-square-six.ph:number-square-three.ph:number-square-two.ph:number-square-zero.ph:number-three.ph:number-two.ph:number-zero.ph:numpad.ph:nut.ph:ny-times-logo.ph:octagon.ph:office-chair.ph:onigiri.ph:open-ai-logo.ph:option.ph:orange.ph:orange-slice.ph:oven.ph:package.ph:paint-brush.ph:paint-brush-broad.ph:paint-brush-household.ph:paint-bucket.ph:paint-roller.ph:palette.ph:panorama.ph:pants.ph:paper-plane.ph:paper-plane-right.ph:paper-plane-tilt.ph:paperclip.ph:paperclip-horizontal.ph:parachute.ph:paragraph.ph:parallelogram.ph:park.ph:password.ph:path.ph:patreon-logo.ph:pause.ph:pause-circle.ph:paw-print.ph:paypal-logo.ph:peace.ph:pen.ph:pen-nib.ph:pen-nib-straight.ph:pencil.ph:pencil-circle.ph:pencil-line.ph:pencil-ruler.ph:pencil-simple.ph:pencil-simple-line.ph:pencil-simple-slash.ph:pencil-slash.ph:pentagon.ph:pentagram.ph:pepper.ph:percent.ph:person.ph:person-arms-spread.ph:person-simple.ph:person-simple-bike.ph:person-simple-circle.ph:person-simple-hike.ph:person-simple-run.ph:person-simple-ski.ph:person-simple-snowboard.ph:person-simple-swim.ph:person-simple-tai-chi.ph:person-simple-throw.ph:person-simple-walk.ph:perspective.ph:phone.ph:phone-call.ph:phone-disconnect.ph:phone-incoming.ph:phone-list.ph:phone-outgoing.ph:phone-pause.ph:phone-plus.ph:phone-slash.ph:phone-transfer.ph:phone-x.ph:phosphor-logo.ph:pi.ph:piano-keys.ph:picnic-table.ph:picture-in-picture.ph:piggy-bank.ph:pill.ph:ping-pong.ph:pint-glass.ph:pinterest-logo.ph:pinwheel.ph:pipe.ph:pipe-wrench.ph:pix-logo.ph:pizza.ph:placeholder.ph:planet.ph:plant.ph:play.ph:play-circle.ph:play-pause.ph:playlist.ph:plug.ph:plug-charging.ph:plugs.ph:plugs-connected.ph:plus.ph:plus-circle.ph:plus-minus.ph:plus-square.ph:poker-chip.ph:police-car.ph:polygon.ph:popcorn.ph:popsicle.ph:potted-plant.ph:power.ph:prescription.ph:presentation.ph:presentation-chart.ph:printer.ph:prohibit.ph:prohibit-inset.ph:projector-screen.ph:projector-screen-chart.ph:pulse.ph:push-pin.ph:push-pin-simple.ph:push-pin-simple-slash.ph:push-pin-slash.ph:puzzle-piece.ph:qr-code.ph:question.ph:question-mark.ph:queue.ph:quotes.ph:rabbit.ph:racquet.ph:radical.ph:radio.ph:radio-button.ph:radioactive.ph:rainbow.ph:rainbow-cloud.ph:ranking.ph:read-cv-logo.ph:receipt.ph:receipt-x.ph:record.ph:rectangle.ph:rectangle-dashed.ph:recycle.ph:reddit-logo.ph:repeat.ph:repeat-once.ph:replit-logo.ph:resize.ph:rewind.ph:rewind-circle.ph:road-horizon.ph:robot.ph:rocket.ph:rocket-launch.ph:rows.ph:rows-plus-bottom.ph:rows-plus-top.ph:rss.ph:rss-simple.ph:rug.ph:ruler.ph:sailboat.ph:scales.ph:scan.ph:scan-smiley.ph:scissors.ph:scooter.ph:screencast.ph:screwdriver.ph:scribble.ph:scribble-loop.ph:scroll.ph:seal.ph:seal-check.ph:seal-percent.ph:seal-question.ph:seal-warning.ph:seat.ph:seatbelt.ph:security-camera.ph:selection.ph:selection-all.ph:selection-background.ph:selection-foreground.ph:selection-inverse.ph:selection-plus.ph:selection-slash.ph:shapes.ph:share.ph:share-fat.ph:share-network.ph:shield.ph:shield-check.ph:shield-checkered.ph:shield-chevron.ph:shield-plus.ph:shield-slash.ph:shield-star.ph:shield-warning.ph:shipping-container.ph:shirt-folded.ph:shooting-star.ph:shopping-bag.ph:shopping-bag-open.ph:shopping-cart.ph:shopping-cart-simple.ph:shovel.ph:shower.ph:shrimp.ph:shuffle.ph:shuffle-angular.ph:shuffle-simple.ph:sidebar.ph:sidebar-simple.ph:sigma.ph:sign-in.ph:sign-out.ph:signature.ph:signpost.ph:sim-card.ph:siren.ph:sketch-logo.ph:skip-back.ph:skip-back-circle.ph:skip-forward.ph:skip-forward-circle.ph:skull.ph:skype-logo.ph:slack-logo.ph:sliders.ph:sliders-horizontal.ph:slideshow.ph:smiley.ph:smiley-angry.ph:smiley-blank.ph:smiley-meh.ph:smiley-melting.ph:smiley-nervous.ph:smiley-sad.ph:smiley-sticker.ph:smiley-wink.ph:smiley-x-eyes.ph:snapchat-logo.ph:sneaker.ph:sneaker-move.ph:snowflake.ph:soccer-ball.ph:sock.ph:solar-panel.ph:solar-roof.ph:sort-ascending.ph:sort-descending.ph:soundcloud-logo.ph:spade.ph:sparkle.ph:speaker-hifi.ph:speaker-high.ph:speaker-low.ph:speaker-none.ph:speaker-simple-high.ph:speaker-simple-low.ph:speaker-simple-none.ph:speaker-simple-slash.ph:speaker-simple-x.ph:speaker-slash.ph:speaker-x.ph:speedometer.ph:sphere.ph:spinner.ph:spinner-ball.ph:spinner-gap.ph:spiral.ph:split-horizontal.ph:split-vertical.ph:spotify-logo.ph:spray-bottle.ph:square.ph:square-half.ph:square-half-bottom.ph:square-logo.ph:square-split-horizontal.ph:square-split-vertical.ph:squares-four.ph:stack.ph:stack-minus.ph:stack-overflow-logo.ph:stack-plus.ph:stack-simple.ph:stairs.ph:stamp.ph:standard-definition.ph:star.ph:star-and-crescent.ph:star-four.ph:star-half.ph:star-of-david.ph:steam-logo.ph:steering-wheel.ph:steps.ph:stethoscope.ph:sticker.ph:stool.ph:stop.ph:stop-circle.ph:storefront.ph:strategy.ph:stripe-logo.ph:student.ph:subset-of.ph:subset-proper-of.ph:subtitles.ph:subtitles-slash.ph:subtract.ph:subtract-square.ph:subway.ph:suitcase.ph:suitcase-rolling.ph:suitcase-simple.ph:sun.ph:sun-dim.ph:sun-horizon.ph:sunglasses.ph:superset-of.ph:superset-proper-of.ph:swap.ph:swatches.ph:swimming-pool.ph:sword.ph:synagogue.ph:syringe.ph:t-shirt.ph:table.ph:tabs.ph:tag.ph:tag-chevron.ph:tag-simple.ph:target.ph:taxi.ph:tea-bag.ph:telegram-logo.ph:television.ph:television-simple.ph:tennis-ball.ph:tent.ph:terminal.ph:terminal-window.ph:test-tube.ph:text-a-underline.ph:text-aa.ph:text-align-center.ph:text-align-justify.ph:text-align-left.ph:text-align-right.ph:text-b.ph:text-bolder.ph:text-columns.ph:text-h.ph:text-h-five.ph:text-h-four.ph:text-h-one.ph:text-h-six.ph:text-h-three.ph:text-h-two.ph:text-indent.ph:text-italic.ph:text-outdent.ph:text-strikethrough.ph:text-subscript.ph:text-superscript.ph:text-t.ph:text-t-slash.ph:text-underline.ph:textbox.ph:thermometer.ph:thermometer-cold.ph:thermometer-hot.ph:thermometer-simple.ph:threads-logo.ph:three-d.ph:thumbs-down.ph:thumbs-up.ph:ticket.ph:tidal-logo.ph:tiktok-logo.ph:tilde.ph:timer.ph:tip-jar.ph:tipi.ph:tire.ph:toggle-left.ph:toggle-right.ph:toilet.ph:toilet-paper.ph:toolbox.ph:tooth.ph:tornado.ph:tote.ph:tote-simple.ph:towel.ph:tractor.ph:trademark.ph:trademark-registered.ph:traffic-cone.ph:traffic-sign.ph:traffic-signal.ph:train.ph:train-regional.ph:train-simple.ph:tram.ph:translate.ph:trash.ph:trash-simple.ph:tray.ph:tray-arrow-down.ph:tray-arrow-up.ph:treasure-chest.ph:tree.ph:tree-evergreen.ph:tree-palm.ph:tree-structure.ph:tree-view.ph:trend-down.ph:trend-up.ph:triangle.ph:triangle-dashed.ph:trolley.ph:trolley-suitcase.ph:trophy.ph:truck.ph:truck-trailer.ph:tumblr-logo.ph:twitch-logo.ph:twitter-logo.ph:umbrella.ph:umbrella-simple.ph:union.ph:unite.ph:unite-square.ph:upload.ph:upload-simple.ph:usb.ph:user.ph:user-check.ph:user-circle.ph:user-circle-check.ph:user-circle-dashed.ph:user-circle-gear.ph:user-circle-minus.ph:user-circle-plus.ph:user-focus.ph:user-gear.ph:user-list.ph:user-minus.ph:user-plus.ph:user-rectangle.ph:user-sound.ph:user-square.ph:user-switch.ph:users.ph:users-four.ph:users-three.ph:van.ph:vault.ph:vector-three.ph:vector-two.ph:vibrate.ph:video.ph:video-camera.ph:video-camera-slash.ph:video-conference.ph:vignette.ph:vinyl-record.ph:virtual-reality.ph:virus.ph:visor.ph:voicemail.ph:volleyball.ph:wall.ph:wallet.ph:warehouse.ph:warning.ph:warning-circle.ph:warning-diamond.ph:warning-octagon.ph:washing-machine.ph:watch.ph:wave-sawtooth.ph:wave-sine.ph:wave-square.ph:wave-triangle.ph:waveform.ph:waveform-slash.ph:waves.ph:webcam.ph:webcam-slash.ph:webhooks-logo.ph:wechat-logo.ph:whatsapp-logo.ph:wheelchair.ph:wheelchair-motion.ph:wifi-high.ph:wifi-low.ph:wifi-medium.ph:wifi-none.ph:wifi-slash.ph:wifi-x.ph:wind.ph:windmill.ph:windows-logo.ph:wine.ph:wrench.ph:x.ph:x-circle.ph:x-logo.ph:x-square.ph:yarn.ph:yin-yang.ph:youtube-logo.lucide:a-arrow-down.lucide:a-arrow-up.lucide:a-large-small.lucide:accessibility.lucide:activity.lucide:ad.lucide:air-vent.lucide:airplay.lucide:alarm-clock.lucide:alarm-clock-check.lucide:alarm-clock-minus.lucide:alarm-clock-off.lucide:alarm-clock-plus.lucide:alarm-smoke.lucide:album.lucide:align-center.lucide:align-center-horizontal.lucide:align-center-vertical.lucide:align-end-horizontal.lucide:align-end-vertical.lucide:align-horizontal-distribute-center.lucide:align-horizontal-distribute-end.lucide:align-horizontal-distribute-start.lucide:align-horizontal-justify-center.lucide:align-horizontal-justify-end.lucide:align-horizontal-justify-start.lucide:align-horizontal-space-around.lucide:align-horizontal-space-between.lucide:align-justify.lucide:align-left.lucide:align-right.lucide:align-start-horizontal.lucide:align-start-vertical.lucide:align-vertical-distribute-center.lucide:align-vertical-distribute-end.lucide:align-vertical-distribute-start.lucide:align-vertical-justify-center.lucide:align-vertical-justify-end.lucide:align-vertical-justify-start.lucide:align-vertical-space-around.lucide:align-vertical-space-between.lucide:ambulance.lucide:ampersand.lucide:ampersands.lucide:amphora.lucide:anchor.lucide:angle.lucide:angry.lucide:annoyed.lucide:antenna.lucide:anvil.lucide:aperture.lucide:app-window.lucide:app-window-mac.lucide:apple.lucide:archive.lucide:archive-restore.lucide:archive-x.lucide:area-chart.lucide:armchair.lucide:armenian-dram.lucide:arrow-big-down.lucide:arrow-big-down-dash.lucide:arrow-big-left.lucide:arrow-big-left-dash.lucide:arrow-big-right.lucide:arrow-big-right-dash.lucide:arrow-big-up.lucide:arrow-big-up-dash.lucide:arrow-down.lucide:arrow-down-0-1.lucide:arrow-down-1-0.lucide:arrow-down-a-z.lucide:arrow-down-from-line.lucide:arrow-down-left.lucide:arrow-down-narrow-wide.lucide:arrow-down-right.lucide:arrow-down-to-dot.lucide:arrow-down-to-line.lucide:arrow-down-up.lucide:arrow-down-wide-narrow.lucide:arrow-down-z-a.lucide:arrow-left.lucide:arrow-left-from-line.lucide:arrow-left-right.lucide:arrow-left-to-line.lucide:arrow-right.lucide:arrow-right-from-line.lucide:arrow-right-left.lucide:arrow-right-to-line.lucide:arrow-up.lucide:arrow-up-0-1.lucide:arrow-up-1-0.lucide:arrow-up-a-z.lucide:arrow-up-down.lucide:arrow-up-from-dot.lucide:arrow-up-from-line.lucide:arrow-up-left.lucide:arrow-up-narrow-wide.lucide:arrow-up-right.lucide:arrow-up-to-line.lucide:arrow-up-wide-narrow.lucide:arrow-up-z-a.lucide:arrows-up-from-line.lucide:asterisk.lucide:astroid.lucide:at-sign.lucide:atom.lucide:audio-lines.lucide:audio-lines-off.lucide:audio-lines-x.lucide:audio-waveform.lucide:avocado.lucide:award.lucide:axe.lucide:axis-3d.lucide:baby.lucide:backpack.lucide:bacon.lucide:badge.lucide:badge-alert.lucide:badge-cent.lucide:badge-check.lucide:badge-dollar-sign.lucide:badge-euro.lucide:badge-indian-rupee.lucide:badge-info.lucide:badge-japanese-yen.lucide:badge-minus.lucide:badge-percent.lucide:badge-plus.lucide:badge-pound-sterling.lucide:badge-question-mark.lucide:badge-russian-ruble.lucide:badge-swiss-franc.lucide:badge-turkish-lira.lucide:badge-x.lucide:baggage-claim.lucide:balloon.lucide:ban.lucide:banana.lucide:bandage.lucide:bangladeshi-taka.lucide:banknote.lucide:banknote-arrow-down.lucide:banknote-arrow-up.lucide:banknote-check.lucide:banknote-x.lucide:bar-chart-3.lucide:bar-chart-4.lucide:bar-chart-big.lucide:bar-chart-horizontal.lucide:bar-chart-horizontal-big.lucide:barcode.lucide:barrel.lucide:baseline.lucide:bath.lucide:battery.lucide:battery-charging.lucide:battery-full.lucide:battery-low.lucide:battery-medium.lucide:battery-plus.lucide:battery-warning.lucide:beaker.lucide:bean.lucide:bean-off.lucide:bed.lucide:bed-double.lucide:bed-single.lucide:beef.lucide:beef-off.lucide:beer.lucide:beer-off.lucide:belarusian-ruble.lucide:bell.lucide:bell-check.lucide:bell-dot.lucide:bell-electric.lucide:bell-minus.lucide:bell-off.lucide:bell-plus.lucide:bell-ring.lucide:between-horizontal-end.lucide:between-horizontal-start.lucide:between-vertical-end.lucide:between-vertical-start.lucide:biceps-flexed.lucide:bike.lucide:binary.lucide:binoculars.lucide:biohazard.lucide:bird.lucide:birdhouse.lucide:bitcoin.lucide:blend.lucide:blender.lucide:blinds.lucide:blocks.lucide:bluetooth.lucide:bluetooth-connected.lucide:bluetooth-off.lucide:bluetooth-searching.lucide:bold.lucide:bolt.lucide:bomb.lucide:bone.lucide:bone-fracture.lucide:book.lucide:book-a.lucide:book-alert.lucide:book-audio.lucide:book-bookmark.lucide:book-check.lucide:book-copy.lucide:book-dashed.lucide:book-down.lucide:book-headphones.lucide:book-heart.lucide:book-image.lucide:book-key.lucide:book-lock.lucide:book-marked.lucide:book-minus.lucide:book-open.lucide:book-open-check.lucide:book-open-text.lucide:book-plus.lucide:book-search.lucide:book-text.lucide:book-type.lucide:book-up.lucide:book-up-2.lucide:book-user.lucide:book-x.lucide:bookmark.lucide:bookmark-check.lucide:bookmark-minus.lucide:bookmark-off.lucide:bookmark-plus.lucide:bookmark-x.lucide:boom-box.lucide:bot.lucide:bot-message-square.lucide:bot-off.lucide:bottle-wine.lucide:bow-arrow.lucide:box.lucide:boxes.lucide:braces.lucide:brackets.lucide:brain.lucide:brain-circuit.lucide:brain-cog.lucide:brain-off.lucide:brick-wall.lucide:brick-wall-fire.lucide:brick-wall-shield.lucide:bridge.lucide:briefcase.lucide:briefcase-business.lucide:briefcase-conveyor-belt.lucide:briefcase-medical.lucide:briefcase-plus.lucide:bring-to-front.lucide:broccoli.lucide:broom.lucide:broom-sparkles.lucide:brush.lucide:brush-cleaning.lucide:bubbles.lucide:bug.lucide:bug-off.lucide:bug-play.lucide:building.lucide:building-complex.lucide:building-complex-plus.lucide:bus.lucide:bus-front.lucide:cable.lucide:cable-car.lucide:cake.lucide:cake-slice.lucide:calculator.lucide:calendar.lucide:calendar-1.lucide:calendar-arrow-down.lucide:calendar-arrow-up.lucide:calendar-check.lucide:calendar-check-2.lucide:calendar-chevrons-left.lucide:calendar-chevrons-right.lucide:calendar-clock.lucide:calendar-cog.lucide:calendar-days.lucide:calendar-fold.lucide:calendar-heart.lucide:calendar-minus.lucide:calendar-minus-2.lucide:calendar-off.lucide:calendar-plus.lucide:calendar-plus-2.lucide:calendar-range.lucide:calendar-search.lucide:calendar-sync.lucide:calendar-x.lucide:calendar-x-2.lucide:calendars.lucide:camera.lucide:camera-off.lucide:can.lucide:can-soda.lucide:candlestick-chart.lucide:candy.lucide:candy-cane.lucide:candy-off.lucide:cannabis.lucide:cannabis-off.lucide:captions.lucide:captions-off.lucide:car.lucide:car-battery.lucide:car-front.lucide:car-taxi-front.lucide:caravan.lucide:card-sim.lucide:carrot.lucide:carton.lucide:carton-off.lucide:case-lower.lucide:case-sensitive.lucide:case-upper.lucide:cassette-tape.lucide:cast.lucide:castle.lucide:cat.lucide:cctv.lucide:cctv-off.lucide:certificate.lucide:chart-area.lucide:chart-bar.lucide:chart-bar-big.lucide:chart-bar-decreasing.lucide:chart-bar-increasing.lucide:chart-bar-stacked.lucide:chart-candlestick.lucide:chart-column.lucide:chart-column-big.lucide:chart-column-decreasing.lucide:chart-column-increasing.lucide:chart-column-stacked.lucide:chart-gantt.lucide:chart-line.lucide:chart-network.lucide:chart-no-axes-column.lucide:chart-no-axes-column-decreasing.lucide:chart-no-axes-column-increasing.lucide:chart-no-axes-combined.lucide:chart-no-axes-gantt.lucide:chart-pie.lucide:chart-scatter.lucide:chart-spline.lucide:check.lucide:check-check.lucide:check-line.lucide:chef-hat.lucide:cherry.lucide:chess-bishop.lucide:chess-king.lucide:chess-knight.lucide:chess-pawn.lucide:chess-queen.lucide:chess-rook.lucide:chevron-down.lucide:chevron-first.lucide:chevron-last.lucide:chevron-left.lucide:chevron-right.lucide:chevron-up.lucide:chevrons-down.lucide:chevrons-down-up.lucide:chevrons-left.lucide:chevrons-left-right.lucide:chevrons-left-right-ellipsis.lucide:chevrons-right.lucide:chevrons-right-left.lucide:chevrons-up.lucide:chevrons-up-down.lucide:chrome.lucide:chromium.lucide:church.lucide:cigarette.lucide:cigarette-off.lucide:circle.lucide:circle-alert.lucide:circle-arrow-down.lucide:circle-arrow-left.lucide:circle-arrow-out-down-left.lucide:circle-arrow-out-down-right.lucide:circle-arrow-out-up-left.lucide:circle-arrow-out-up-right.lucide:circle-arrow-right.lucide:circle-arrow-up.lucide:circle-check.lucide:circle-check-big.lucide:circle-chevron-down.lucide:circle-chevron-left.lucide:circle-chevron-right.lucide:circle-chevron-up.lucide:circle-chevrons-down.lucide:circle-chevrons-left.lucide:circle-chevrons-right.lucide:circle-chevrons-up.lucide:circle-dashed.lucide:circle-dashed-check.lucide:circle-divide.lucide:circle-dollar-sign.lucide:circle-dot.lucide:circle-dot-dashed.lucide:circle-ellipsis.lucide:circle-equal.lucide:circle-euro.lucide:circle-fading-arrow-up.lucide:circle-fading-play.lucide:circle-fading-plus.lucide:circle-gauge.lucide:circle-minus.lucide:circle-off.lucide:circle-parking.lucide:circle-parking-off.lucide:circle-pause.lucide:circle-percent.lucide:circle-pile.lucide:circle-play.lucide:circle-plus.lucide:circle-pound-sterling.lucide:circle-power.lucide:circle-question-mark.lucide:circle-slash.lucide:circle-slash-2.lucide:circle-small.lucide:circle-star.lucide:circle-stop.lucide:circle-user.lucide:circle-user-round.lucide:circle-x.lucide:circuit-board.lucide:citrus.lucide:clapperboard.lucide:clef-alto.lucide:clef-bass.lucide:clef-treble.lucide:clipboard.lucide:clipboard-check.lucide:clipboard-clock.lucide:clipboard-copy.lucide:clipboard-list.lucide:clipboard-minus.lucide:clipboard-paste.lucide:clipboard-pen.lucide:clipboard-pen-line.lucide:clipboard-plus.lucide:clipboard-type.lucide:clipboard-x.lucide:clock.lucide:clock-1.lucide:clock-10.lucide:clock-11.lucide:clock-12.lucide:clock-2.lucide:clock-3.lucide:clock-4.lucide:clock-5.lucide:clock-6.lucide:clock-7.lucide:clock-8.lucide:clock-9.lucide:clock-alert.lucide:clock-arrow-down.lucide:clock-arrow-left.lucide:clock-arrow-right.lucide:clock-arrow-up.lucide:clock-check.lucide:clock-fading.lucide:clock-plus.lucide:closed-caption.lucide:cloud.lucide:cloud-alert.lucide:cloud-backup.lucide:cloud-check.lucide:cloud-cog.lucide:cloud-download.lucide:cloud-drizzle.lucide:cloud-fog.lucide:cloud-hail.lucide:cloud-lightning.lucide:cloud-moon.lucide:cloud-moon-rain.lucide:cloud-off.lucide:cloud-rain.lucide:cloud-rain-wind.lucide:cloud-snow.lucide:cloud-sun.lucide:cloud-sun-rain.lucide:cloud-sync.lucide:cloud-upload.lucide:cloudy.lucide:clover.lucide:club.lucide:code.lucide:code-xml.lucide:codepen.lucide:codesandbox.lucide:coffee.lucide:cog.lucide:coins.lucide:columns-2.lucide:columns-3.lucide:columns-3-cog.lucide:columns-4.lucide:combine.lucide:command.lucide:compass.lucide:component.lucide:computer.lucide:concierge-bell.lucide:cone.lucide:construction.lucide:contact.lucide:contact-round.lucide:container.lucide:contrast.lucide:cookie.lucide:cooking-pot.lucide:copy.lucide:copy-check.lucide:copy-minus.lucide:copy-plus.lucide:copy-slash.lucide:copy-x.lucide:copyleft.lucide:copyright.lucide:corner-down-left.lucide:corner-down-right.lucide:corner-left-down.lucide:corner-left-up.lucide:corner-right-down.lucide:corner-right-up.lucide:corner-up-left.lucide:corner-up-right.lucide:cpu.lucide:cpu-ai.lucide:creative-commons.lucide:credit-card.lucide:credit-card-check.lucide:credit-card-minus.lucide:credit-card-plus.lucide:credit-card-reader.lucide:credit-card-x.lucide:croissant.lucide:crop.lucide:cross.lucide:crosshair.lucide:crown.lucide:cuboid.lucide:cup-soda.lucide:cupcake.lucide:currency.lucide:cylinder.lucide:dam.lucide:database.lucide:database-arrow-down.lucide:database-arrow-up.lucide:database-backup.lucide:database-check.lucide:database-minus.lucide:database-plus.lucide:database-search.lucide:database-x.lucide:database-zap.lucide:decimals-arrow-left.lucide:decimals-arrow-right.lucide:delete.lucide:dessert.lucide:diameter.lucide:diamond.lucide:diamond-minus.lucide:diamond-percent.lucide:diamond-plus.lucide:dice-1.lucide:dice-2.lucide:dice-3.lucide:dice-4.lucide:dice-5.lucide:dice-6.lucide:dices.lucide:diff.lucide:disc.lucide:disc-2.lucide:disc-3.lucide:disc-album.lucide:divide.lucide:dna.lucide:dna-off.lucide:dock.lucide:dog.lucide:dollar-sign.lucide:dome.lucide:donut.lucide:door-closed.lucide:door-closed-cog.lucide:door-closed-locked.lucide:door-closed-package.lucide:door-open.lucide:door-stairwell.lucide:dot.lucide:download.lucide:drafting-compass.lucide:drama.lucide:dribbble.lucide:drill.lucide:drone.lucide:droplet.lucide:droplet-off.lucide:droplets.lucide:drum.lucide:drumstick.lucide:dumbbell.lucide:ear.lucide:ear-off.lucide:earth.lucide:earth-lock.lucide:eclipse.lucide:egg.lucide:egg-fried.lucide:egg-off.lucide:eighth-note.lucide:eighth-notes.lucide:eject.lucide:ellipse.lucide:ellipsis.lucide:ellipsis-vertical.lucide:engine.lucide:equal.lucide:equal-approximately.lucide:equal-approximately-not.lucide:equal-not.lucide:eraser.lucide:ethernet-port.lucide:euro.lucide:ev-charger.lucide:expand.lucide:external-link.lucide:eye.lucide:eye-closed.lucide:eye-dashed.lucide:eye-off.lucide:face-angry.lucide:face-expressionless.lucide:face-grinning.lucide:face-neutral.lucide:face-slightly-frowning.lucide:face-slightly-smiling.lucide:face-slightly-smiling-plus.lucide:facebook.lucide:factory.lucide:fan.lucide:fast-forward.lucide:faucet.lucide:feather.lucide:fence.lucide:ferris-wheel.lucide:figma.lucide:file.lucide:file-archive.lucide:file-audio.lucide:file-audio-2.lucide:file-axis-3d.lucide:file-badge.lucide:file-badge-2.lucide:file-box.lucide:file-braces.lucide:file-braces-corner.lucide:file-chart-column.lucide:file-chart-column-increasing.lucide:file-chart-line.lucide:file-chart-pie.lucide:file-check.lucide:file-check-2.lucide:file-check-corner.lucide:file-clock.lucide:file-code.lucide:file-code-2.lucide:file-code-corner.lucide:file-cog.lucide:file-diff.lucide:file-digit.lucide:file-down.lucide:file-exclamation-point.lucide:file-headphone.lucide:file-heart.lucide:file-image.lucide:file-input.lucide:file-json.lucide:file-json-2.lucide:file-key.lucide:file-key-2.lucide:file-lock.lucide:file-lock-2.lucide:file-minus.lucide:file-minus-2.lucide:file-minus-corner.lucide:file-music.lucide:file-output.lucide:file-pen.lucide:file-pen-line.lucide:file-pie-chart.lucide:file-play.lucide:file-plus.lucide:file-plus-2.lucide:file-plus-corner.lucide:file-question-mark.lucide:file-scan.lucide:file-search.lucide:file-search-2.lucide:file-search-corner.lucide:file-signal.lucide:file-sliders.lucide:file-spreadsheet.lucide:file-stack.lucide:file-symlink.lucide:file-terminal.lucide:file-text.lucide:file-type.lucide:file-type-2.lucide:file-type-corner.lucide:file-up.lucide:file-user.lucide:file-video-camera.lucide:file-volume.lucide:file-volume-2.lucide:file-warning.lucide:file-x.lucide:file-x-2.lucide:file-x-corner.lucide:files.lucide:film.lucide:filter.lucide:filter-x.lucide:fingerprint-pattern.lucide:fire-extinguisher.lucide:fish.lucide:fish-off.lucide:fish-symbol.lucide:fishing-hook.lucide:fishing-rod.lucide:flag.lucide:flag-off.lucide:flag-triangle-left.lucide:flag-triangle-right.lucide:flame.lucide:flame-kindling.lucide:flashlight.lucide:flashlight-off.lucide:flask-conical.lucide:flask-conical-off.lucide:flask-round.lucide:flip-horizontal-2.lucide:flip-vertical-2.lucide:flower.lucide:flower-2.lucide:focus.lucide:fold-horizontal.lucide:fold-vertical.lucide:folder.lucide:folder-archive.lucide:folder-bookmark.lucide:folder-check.lucide:folder-clock.lucide:folder-closed.lucide:folder-code.lucide:folder-cog.lucide:folder-dot.lucide:folder-down.lucide:folder-git.lucide:folder-git-2.lucide:folder-heart.lucide:folder-input.lucide:folder-kanban.lucide:folder-key.lucide:folder-lock.lucide:folder-minus.lucide:folder-open.lucide:folder-open-dot.lucide:folder-output.lucide:folder-pen.lucide:folder-plus.lucide:folder-root.lucide:folder-search.lucide:folder-search-2.lucide:folder-symlink.lucide:folder-sync.lucide:folder-tree.lucide:folder-up.lucide:folder-user.lucide:folder-users.lucide:folder-x.lucide:folders.lucide:footprints.lucide:forklift.lucide:form.lucide:forward.lucide:frame.lucide:framer.lucide:frown.lucide:fuel.lucide:fullscreen.lucide:funnel.lucide:funnel-plus.lucide:funnel-x.lucide:galaxy.lucide:gallery-horizontal.lucide:gallery-horizontal-end.lucide:gallery-thumbnails.lucide:gallery-vertical.lucide:gallery-vertical-end.lucide:gamepad.lucide:gamepad-2.lucide:gamepad-directional.lucide:gap-horizontal.lucide:gap-vertical.lucide:gauge.lucide:gavel.lucide:gem.lucide:georgian-lari.lucide:germ.lucide:germ-off.lucide:ghost.lucide:gift.lucide:git-branch.lucide:git-branch-minus.lucide:git-branch-plus.lucide:git-commit-horizontal.lucide:git-commit-vertical.lucide:git-compare.lucide:git-compare-arrows.lucide:git-fork.lucide:git-graph.lucide:git-merge.lucide:git-merge-conflict.lucide:git-pull-request.lucide:git-pull-request-arrow.lucide:git-pull-request-closed.lucide:git-pull-request-create.lucide:git-pull-request-create-arrow.lucide:git-pull-request-draft.lucide:github.lucide:gitlab.lucide:glass-water.lucide:glasses.lucide:globe.lucide:globe-check.lucide:globe-code.lucide:globe-lock.lucide:globe-off.lucide:globe-x.lucide:goal.lucide:gpu.lucide:graduation-cap.lucide:grape.lucide:graph-hub.lucide:graph-star.lucide:grid-2x2.lucide:grid-2x2-check.lucide:grid-2x2-plus.lucide:grid-2x2-x.lucide:grid-3x2.lucide:grid-3x3.lucide:grip.lucide:grip-horizontal.lucide:grip-vertical.lucide:groceries.lucide:group.lucide:guitar.lucide:guitar-electric.lucide:half-note.lucide:ham.lucide:hamburger.lucide:hammer.lucide:hand.lucide:hand-coins.lucide:hand-fist.lucide:hand-grab.lucide:hand-heart.lucide:hand-helping.lucide:hand-metal.lucide:hand-platter.lucide:handbag.lucide:handle-bottom-right.lucide:handshake.lucide:hard-drive.lucide:hard-drive-download.lucide:hard-drive-upload.lucide:hard-hat.lucide:hash.lucide:hat-glasses.lucide:haze.lucide:hd.lucide:hdmi-port.lucide:heading.lucide:heading-1.lucide:heading-2.lucide:heading-3.lucide:heading-4.lucide:heading-5.lucide:heading-6.lucide:headphone-off.lucide:headphones.lucide:headset.lucide:heart.lucide:heart-crack.lucide:heart-handshake.lucide:heart-minus.lucide:heart-off.lucide:heart-plus.lucide:heart-pulse.lucide:heart-x.lucide:heater.lucide:helicopter.lucide:hexagon.lucide:highlighter.lucide:hiking-stick.lucide:hop.lucide:hop-off.lucide:hospital.lucide:hotel.lucide:hourglass.lucide:hourglass-cog.lucide:house.lucide:house-cog.lucide:house-heart.lucide:house-plug.lucide:house-plus.lucide:house-wifi.lucide:houses.lucide:ice-cream-bowl.lucide:ice-cream-cone.lucide:id-card.lucide:id-card-lanyard.lucide:image.lucide:image-down.lucide:image-minus.lucide:image-off.lucide:image-play.lucide:image-plus.lucide:image-up.lucide:image-upscale.lucide:images.lucide:import.lucide:inbox.lucide:indent-decrease.lucide:indent-increase.lucide:indian-rupee.lucide:infinity.lucide:info.lucide:inspection-panel.lucide:instagram.lucide:italic.lucide:iteration-ccw.lucide:iteration-cw.lucide:iv-bag.lucide:japanese-yen.lucide:joystick.lucide:kanban.lucide:kayak.lucide:kazakh-tenge.lucide:key.lucide:key-round.lucide:key-square.lucide:keyboard.lucide:keyboard-music.lucide:keyboard-off.lucide:lambda.lucide:lamp.lucide:lamp-ceiling.lucide:lamp-desk.lucide:lamp-floor.lucide:lamp-wall-down.lucide:lamp-wall-up.lucide:land-plot.lucide:landmark.lucide:languages.lucide:laptop.lucide:laptop-minimal.lucide:laptop-minimal-check.lucide:lasso.lucide:lasso-select.lucide:laugh.lucide:layer-arrow-down.lucide:layer-arrow-up.lucide:layers.lucide:layers-2.lucide:layers-3.lucide:layers-arrow-down.lucide:layers-arrow-up.lucide:layers-minus.lucide:layers-plus.lucide:layout-arrow-down.lucide:layout-arrow-right.lucide:layout-dashboard.lucide:layout-freeform.lucide:layout-grid.lucide:layout-grid-circles.lucide:layout-list.lucide:layout-panel-left.lucide:layout-panel-top.lucide:layout-template.lucide:leaf.lucide:leafy-green.lucide:lectern.lucide:lens.lucide:lens-concave.lucide:lens-convex.lucide:letter-spacing.lucide:letter-text.lucide:letters.lucide:library.lucide:library-big.lucide:life-buoy.lucide:ligature.lucide:lightbulb.lucide:lightbulb-off.lucide:lighthouse.lucide:line-chart.lucide:line-dot-bottom-vertical.lucide:line-dot-left-horizontal.lucide:line-dot-right-horizontal.lucide:line-dot-top-vertical.lucide:line-height.lucide:line-squiggle.lucide:line-style.lucide:link.lucide:link-2.lucide:link-2-off.lucide:linkedin.lucide:list.lucide:list-check.lucide:list-checks.lucide:list-chevrons-down-up.lucide:list-chevrons-up-down.lucide:list-clock.lucide:list-collapse.lucide:list-end.lucide:list-filter.lucide:list-filter-plus.lucide:list-indent-decrease.lucide:list-indent-increase.lucide:list-minus.lucide:list-music.lucide:list-ordered.lucide:list-plus.lucide:list-restart.lucide:list-sort-ascending.lucide:list-sort-descending.lucide:list-start.lucide:list-todo.lucide:list-tree.lucide:list-video.lucide:list-x.lucide:loader.lucide:loader-circle.lucide:loader-pinwheel.lucide:locate.lucide:locate-fixed.lucide:locate-off.lucide:lock.lucide:lock-keyhole.lucide:lock-keyhole-open.lucide:lock-open.lucide:log-in.lucide:log-out.lucide:logs.lucide:lollipop.lucide:luggage.lucide:magnet.lucide:mail.lucide:mail-badge.lucide:mail-check.lucide:mail-clock.lucide:mail-dot.lucide:mail-minus.lucide:mail-open.lucide:mail-pen.lucide:mail-plus.lucide:mail-question-mark.lucide:mail-search.lucide:mail-warning.lucide:mail-x.lucide:mailbox.lucide:mails.lucide:map.lucide:map-minus.lucide:map-pin.lucide:map-pin-check.lucide:map-pin-check-inside.lucide:map-pin-house.lucide:map-pin-minus.lucide:map-pin-minus-inside.lucide:map-pin-off.lucide:map-pin-pen.lucide:map-pin-plus.lucide:map-pin-plus-inside.lucide:map-pin-search.lucide:map-pin-x.lucide:map-pin-x-inside.lucide:map-pinned.lucide:map-plus.lucide:mars.lucide:mars-stroke.lucide:martini.lucide:maximize.lucide:maximize-2.lucide:medal.lucide:megaphone.lucide:megaphone-off.lucide:meh.lucide:memory-stick.lucide:menu.lucide:merge.lucide:message-circle.lucide:message-circle-check.lucide:message-circle-code.lucide:message-circle-dashed.lucide:message-circle-dashed-check.lucide:message-circle-heart.lucide:message-circle-more.lucide:message-circle-off.lucide:message-circle-plus.lucide:message-circle-question-mark.lucide:message-circle-reply.lucide:message-circle-text.lucide:message-circle-warning.lucide:message-circle-x.lucide:message-square.lucide:message-square-check.lucide:message-square-code.lucide:message-square-dashed.lucide:message-square-diff.lucide:message-square-dot.lucide:message-square-heart.lucide:message-square-lock.lucide:message-square-more.lucide:message-square-off.lucide:message-square-plus.lucide:message-square-quote.lucide:message-square-reply.lucide:message-square-share.lucide:message-square-text.lucide:message-square-warning.lucide:message-square-x.lucide:messages-circle.lucide:messages-square.lucide:metronome.lucide:mic.lucide:mic-audio-lines.lucide:mic-off.lucide:mic-signal.lucide:mic-vocal.lucide:microchip.lucide:microscope.lucide:microwave.lucide:midi-port.lucide:milestone.lucide:milk.lucide:milk-off.lucide:minimize.lucide:minimize-2.lucide:minus.lucide:mirror-rectangular.lucide:mirror-round.lucide:monitor.lucide:monitor-check.lucide:monitor-cloud.lucide:monitor-cog.lucide:monitor-dot.lucide:monitor-down.lucide:monitor-off.lucide:monitor-pause.lucide:monitor-pc.lucide:monitor-play.lucide:monitor-smartphone.lucide:monitor-speaker.lucide:monitor-stop.lucide:monitor-up.lucide:monitor-x.lucide:moon.lucide:moon-star.lucide:mop.lucide:mop-sparkles.lucide:mosque.lucide:motorbike.lucide:mountain.lucide:mountain-snow.lucide:mouse.lucide:mouse-left.lucide:mouse-off.lucide:mouse-pointer.lucide:mouse-pointer-2.lucide:mouse-pointer-2-off.lucide:mouse-pointer-ban.lucide:mouse-pointer-click.lucide:mouse-right.lucide:mouth.lucide:mouth-off.lucide:move.lucide:move-3d.lucide:move-diagonal.lucide:move-diagonal-2.lucide:move-down.lucide:move-down-left.lucide:move-down-right.lucide:move-horizontal.lucide:move-left.lucide:move-right.lucide:move-up.lucide:move-up-left.lucide:move-up-right.lucide:move-vertical.lucide:music.lucide:music-2.lucide:music-4.lucide:navigation.lucide:navigation-2.lucide:navigation-2-off.lucide:navigation-off.lucide:nepali-rupee.lucide:network.lucide:newspaper.lucide:nfc.lucide:non-binary.lucide:notebook.lucide:notebook-dot.lucide:notebook-pen.lucide:notebook-tabs.lucide:notebook-text.lucide:notepad-text.lucide:notepad-text-dashed.lucide:nut.lucide:nut-off.lucide:octagon.lucide:octagon-alert.lucide:octagon-minus.lucide:octagon-pause.lucide:octagon-x.lucide:omega.lucide:option.lucide:orbit.lucide:origami.lucide:package.lucide:package-2.lucide:package-check.lucide:package-minus.lucide:package-open.lucide:package-plus.lucide:package-search.lucide:package-x.lucide:paint-bucket.lucide:paint-roller.lucide:paintbrush.lucide:paintbrush-vertical.lucide:palette.lucide:panda.lucide:panel-bottom.lucide:panel-bottom-close.lucide:panel-bottom-dashed.lucide:panel-bottom-open.lucide:panel-left.lucide:panel-left-close.lucide:panel-left-dashed.lucide:panel-left-open.lucide:panel-left-right-dashed.lucide:panel-right.lucide:panel-right-close.lucide:panel-right-dashed.lucide:panel-right-open.lucide:panel-top.lucide:panel-top-bottom-dashed.lucide:panel-top-close.lucide:panel-top-dashed.lucide:panel-top-open.lucide:panels-left-bottom.lucide:panels-right-bottom.lucide:panels-top-left.lucide:paper-bag.lucide:paperclip.lucide:parasol.lucide:parentheses.lucide:park.lucide:parking-meter.lucide:party-popper.lucide:pause.lucide:paw-print.lucide:pc-case.lucide:pen.lucide:pen-line.lucide:pen-off.lucide:pen-tool.lucide:pencil.lucide:pencil-line.lucide:pencil-off.lucide:pencil-ruler.lucide:pencil-sparkles.lucide:pentagon.lucide:percent.lucide:perfume-bottle.lucide:person-standing.lucide:phi.lucide:philippine-peso.lucide:phone.lucide:phone-call.lucide:phone-forwarded.lucide:phone-incoming.lucide:phone-log.lucide:phone-missed.lucide:phone-off.lucide:phone-outgoing.lucide:pi.lucide:piano.lucide:pickaxe.lucide:picture-in-picture.lucide:picture-in-picture-2.lucide:pie-chart.lucide:piggy-bank.lucide:pilcrow.lucide:pilcrow-left.lucide:pilcrow-right.lucide:pill.lucide:pill-bottle.lucide:pin.lucide:pin-off.lucide:pipette.lucide:pizza.lucide:plane.lucide:plane-landing.lucide:plane-takeoff.lucide:plant-pot.lucide:play.lucide:play-off.lucide:playing-card.lucide:playing-cards.lucide:playing-cards-fan.lucide:plug.lucide:plug-2.lucide:plug-zap.lucide:plus.lucide:pocket.lucide:pocket-knife.lucide:podcast.lucide:podium.lucide:pointer.lucide:pointer-off.lucide:popcorn.lucide:popsicle.lucide:pound-sterling.lucide:power.lucide:power-off.lucide:presentation.lucide:printer.lucide:printer-3d.lucide:printer-check.lucide:printer-x.lucide:projector.lucide:proportions.lucide:puzzle.lucide:pyramid.lucide:qr-code.lucide:quote.lucide:rabbit.lucide:radar.lucide:radiation.lucide:radical.lucide:radio.lucide:radio-off.lucide:radio-receiver.lucide:radio-tower.lucide:radius.lucide:rail-symbol.lucide:rainbow.lucide:rat.lucide:ratio.lucide:receipt.lucide:receipt-cent.lucide:receipt-euro.lucide:receipt-indian-rupee.lucide:receipt-japanese-yen.lucide:receipt-pound-sterling.lucide:receipt-russian-ruble.lucide:receipt-swiss-franc.lucide:receipt-text.lucide:receipt-turkish-lira.lucide:rectangle-circle.lucide:rectangle-ellipsis.lucide:rectangle-goggles.lucide:rectangle-horizontal.lucide:rectangle-vertical.lucide:recycle.lucide:redo.lucide:redo-2.lucide:redo-dot.lucide:refresh-ccw.lucide:refresh-ccw-dot.lucide:refresh-cw.lucide:refresh-cw-off.lucide:refrigerator.lucide:regex.lucide:remove-formatting.lucide:repeat.lucide:repeat-1.lucide:repeat-2.lucide:repeat-off.lucide:replace.lucide:replace-all.lucide:reply.lucide:reply-all.lucide:rewind.lucide:ribbon.lucide:road.lucide:robot-arm.lucide:robot-vacuum.lucide:rocket.lucide:rocking-chair.lucide:roller-coaster.lucide:rose.lucide:rotate-3d.lucide:rotate-ccw.lucide:rotate-ccw-clock.lucide:rotate-ccw-key.lucide:rotate-ccw-square.lucide:rotate-cw.lucide:rotate-cw-clock.lucide:rotate-cw-fading-clock.lucide:rotate-cw-square.lucide:route.lucide:route-off.lucide:router.lucide:rows-2.lucide:rows-3.lucide:rows-4.lucide:rss.lucide:rugby-ball.lucide:ruler.lucide:ruler-dimension-line.lucide:russian-ruble.lucide:sailboat.lucide:salad.lucide:sandwich.lucide:satellite.lucide:satellite-dish.lucide:saudi-riyal.lucide:save.lucide:save-all.lucide:save-check.lucide:save-off.lucide:save-pen.lucide:save-plus.lucide:scale.lucide:scale-3d.lucide:scaling.lucide:scan.lucide:scan-barcode.lucide:scan-box.lucide:scan-eye.lucide:scan-face.lucide:scan-heart.lucide:scan-line.lucide:scan-qr-code.lucide:scan-search.lucide:scan-square.lucide:scan-text.lucide:scatter-chart.lucide:school.lucide:scissors.lucide:scissors-line-dashed.lucide:scooter.lucide:scratch-blocks.lucide:screen-share.lucide:screen-share-off.lucide:screw.lucide:scroll.lucide:scroll-text.lucide:search.lucide:search-alert.lucide:search-check.lucide:search-code.lucide:search-large.lucide:search-slash.lucide:search-x.lucide:section.lucide:send.lucide:send-horizontal.lucide:send-to-back.lucide:separator-horizontal.lucide:separator-vertical.lucide:server.lucide:server-cog.lucide:server-crash.lucide:server-nas.lucide:server-off.lucide:server-plus.lucide:settings.lucide:settings-2.lucide:shapes.lucide:share.lucide:share-2.lucide:sheet.lucide:shell.lucide:shelving-unit.lucide:shield.lucide:shield-alert.lucide:shield-ban.lucide:shield-check.lucide:shield-cog.lucide:shield-cog-corner.lucide:shield-ellipsis.lucide:shield-half.lucide:shield-house.lucide:shield-keyhole.lucide:shield-lock.lucide:shield-minus.lucide:shield-off.lucide:shield-plus.lucide:shield-question-mark.lucide:shield-user.lucide:shield-x.lucide:ship.lucide:ship-cargo.lucide:ship-wheel.lucide:shirt.lucide:shopping-bag.lucide:shopping-basket.lucide:shopping-cart.lucide:shopping-cart-minus.lucide:shopping-cart-plus.lucide:shovel.lucide:shower-head.lucide:shredder.lucide:shrimp.lucide:shrimp-off.lucide:shrink.lucide:shrub.lucide:shuffle.lucide:sigma.lucide:signal.lucide:signal-high.lucide:signal-low.lucide:signal-medium.lucide:signal-zero.lucide:signature.lucide:signpost.lucide:signpost-big.lucide:siren.lucide:sixteenth-notes.lucide:skip-back.lucide:skip-forward.lucide:skull.lucide:slack.lucide:slash.lucide:slice.lucide:sliders-horizontal.lucide:sliders-vertical.lucide:smartphone.lucide:smartphone-charging.lucide:smartphone-nfc.lucide:smartphone-user-round.lucide:smile.lucide:smile-plus.lucide:snail.lucide:snowflake.lucide:soap-dispenser-droplet.lucide:sofa.lucide:solar-panel.lucide:soup.lucide:space.lucide:spade.lucide:sparkle.lucide:sparkles.lucide:speaker.lucide:speech.lucide:spell-check.lucide:spell-check-2.lucide:spline.lucide:spline-pointer.lucide:split.lucide:spool.lucide:sport-shoe.lucide:spotlight.lucide:spray-can.lucide:sprout.lucide:square.lucide:square-activity.lucide:square-arrow-down.lucide:square-arrow-down-left.lucide:square-arrow-down-right.lucide:square-arrow-left.lucide:square-arrow-out-down-left.lucide:square-arrow-out-down-right.lucide:square-arrow-out-up-left.lucide:square-arrow-out-up-right.lucide:square-arrow-right.lucide:square-arrow-right-enter.lucide:square-arrow-right-exit.lucide:square-arrow-up.lucide:square-arrow-up-left.lucide:square-arrow-up-right.lucide:square-asterisk.lucide:square-bookmark.lucide:square-bottom-dashed-scissors.lucide:square-centerline-dashed-horizontal.lucide:square-centerline-dashed-vertical.lucide:square-chart-gantt.lucide:square-check.lucide:square-check-big.lucide:square-chevron-down.lucide:square-chevron-left.lucide:square-chevron-right.lucide:square-chevron-up.lucide:square-code.lucide:square-dashed.lucide:square-dashed-bottom.lucide:square-dashed-bottom-code.lucide:square-dashed-kanban.lucide:square-dashed-mouse-pointer.lucide:square-dashed-plus.lucide:square-dashed-text.lucide:square-dashed-top-solid.lucide:square-dashed-x.lucide:square-dashed-x-corner.lucide:square-dimensions.lucide:square-divide.lucide:square-dot.lucide:square-equal.lucide:square-exclamation-point.lucide:square-function.lucide:square-kanban.lucide:square-library.lucide:square-m.lucide:square-menu.lucide:square-minus.lucide:square-mouse-pointer.lucide:square-off.lucide:square-parking.lucide:square-parking-off.lucide:square-pause.lucide:square-pen.lucide:square-percent.lucide:square-pi.lucide:square-pilcrow.lucide:square-play.lucide:square-plus.lucide:square-power.lucide:square-radical.lucide:square-round-corner.lucide:square-scissors.lucide:square-sigma.lucide:square-slash.lucide:square-sparkles.lucide:square-split-horizontal.lucide:square-split-vertical.lucide:square-square.lucide:square-stack.lucide:square-star.lucide:square-stop.lucide:square-terminal.lucide:square-text.lucide:square-user.lucide:square-user-round.lucide:square-x.lucide:squares-exclude.lucide:squares-intersect.lucide:squares-subtract.lucide:squares-unite.lucide:squircle.lucide:squircle-dashed.lucide:squirrel.lucide:stamp.lucide:star.lucide:star-check.lucide:star-half.lucide:star-minus.lucide:star-off.lucide:star-plus.lucide:star-x.lucide:step-back.lucide:step-forward.lucide:stethoscope.lucide:sticker.lucide:sticky-note.lucide:sticky-note-check.lucide:sticky-note-minus.lucide:sticky-note-off.lucide:sticky-note-plus.lucide:sticky-note-x.lucide:sticky-notes.lucide:stone.lucide:store.lucide:stretch-horizontal.lucide:stretch-vertical.lucide:strikethrough.lucide:subscript.lucide:summary.lucide:sun.lucide:sun-dim.lucide:sun-medium.lucide:sun-moon.lucide:sun-snow.lucide:sunrise.lucide:sunset.lucide:superscript.lucide:swatch-book.lucide:swiss-franc.lucide:switch-camera.lucide:sword.lucide:swords.lucide:syringe.lucide:table.lucide:table-2.lucide:table-cells-merge.lucide:table-cells-split.lucide:table-columns-split.lucide:table-of-contents.lucide:table-properties.lucide:table-rows-split.lucide:tablet.lucide:tablet-smartphone.lucide:tablets.lucide:tag.lucide:tag-plus.lucide:tag-x.lucide:tags.lucide:tally-1.lucide:tally-2.lucide:tally-3.lucide:tally-4.lucide:tally-5.lucide:tangent.lucide:target.lucide:telescope.lucide:tent.lucide:tent-tree.lucide:terminal.lucide:test-tube.lucide:test-tube-diagonal.lucide:test-tubes.lucide:text.lucide:text-align-center.lucide:text-align-end.lucide:text-align-justify.lucide:text-align-justify-center.lucide:text-align-justify-end.lucide:text-align-justify-start.lucide:text-align-start.lucide:text-cursor.lucide:text-cursor-input.lucide:text-initial.lucide:text-quote.lucide:text-search.lucide:text-wrap.lucide:theater.lucide:thermometer.lucide:thermometer-snowflake.lucide:thermometer-sun.lucide:thumbs-down.lucide:thumbs-up.lucide:tic-tac-toe.lucide:ticket.lucide:ticket-check.lucide:ticket-minus.lucide:ticket-percent.lucide:ticket-plus.lucide:ticket-slash.lucide:ticket-x.lucide:tickets.lucide:tickets-plane.lucide:timeline.lucide:timer.lucide:timer-off.lucide:timer-reset.lucide:toggle-left.lucide:toggle-right.lucide:toilet.lucide:tombstone.lucide:tool-case.lucide:toolbox.lucide:toothbrush.lucide:toothbrush-sparkles.lucide:tornado.lucide:torus.lucide:touchpad.lucide:touchpad-off.lucide:towel-rack.lucide:tower-control.lucide:toy-brick.lucide:tractor.lucide:traffic-cone.lucide:trailer.lucide:train-front.lucide:train-front-tunnel.lucide:train-track.lucide:tram-front.lucide:transgender.lucide:trash.lucide:trash-off.lucide:tree-deciduous.lucide:tree-palm.lucide:tree-pine.lucide:trees.lucide:trello.lucide:trending-down.lucide:trending-up.lucide:trending-up-down.lucide:triangle.lucide:triangle-alert.lucide:triangle-dashed.lucide:triangle-right.lucide:triangles-centerline-dashed-horizontal.lucide:triangles-centerline-dashed-vertical.lucide:trophy.lucide:truck.lucide:truck-electric.lucide:tube-lotion.lucide:turkish-lira.lucide:turntable.lucide:turtle.lucide:tv.lucide:tv-minimal.lucide:tv-minimal-play.lucide:twitch.lucide:twitter.lucide:type.lucide:type-outline.lucide:umbrella.lucide:umbrella-off.lucide:underline.lucide:undo.lucide:undo-2.lucide:undo-dot.lucide:unfold-horizontal.lucide:unfold-vertical.lucide:ungroup.lucide:university.lucide:unlink.lucide:unlink-2.lucide:unplug.lucide:upload.lucide:usb.lucide:usb-c-port.lucide:user.lucide:user-check.lucide:user-cog.lucide:user-group.lucide:user-key.lucide:user-lock.lucide:user-minus.lucide:user-pen.lucide:user-plus.lucide:user-round.lucide:user-round-arrow-left.lucide:user-round-check.lucide:user-round-cog.lucide:user-round-group.lucide:user-round-key.lucide:user-round-minus.lucide:user-round-pen.lucide:user-round-plus.lucide:user-round-search.lucide:user-round-star.lucide:user-round-x.lucide:user-search.lucide:user-shield.lucide:user-star.lucide:user-x.lucide:users.lucide:users-collaboration.lucide:users-round.lucide:users-round-collaboration.lucide:utensils.lucide:utensils-crossed.lucide:utility-pole.lucide:van.lucide:variable.lucide:vault.lucide:vector-polygon.lucide:vector-square.lucide:vegan.lucide:venetian-mask.lucide:venus.lucide:venus-and-mars.lucide:vibrate.lucide:vibrate-off.lucide:video.lucide:video-off.lucide:videotape.lucide:view.lucide:virus.lucide:virus-off.lucide:voicemail.lucide:volleyball.lucide:volume.lucide:volume-1.lucide:volume-2.lucide:volume-off.lucide:volume-x.lucide:vote.lucide:wallet.lucide:wallet-cards.lucide:wallet-minimal.lucide:wallpaper.lucide:wand.lucide:wand-sparkles.lucide:warehouse.lucide:washing-machine.lucide:watch.lucide:waves.lucide:waves-arrow-down.lucide:waves-arrow-up.lucide:waves-horizontal.lucide:waves-ladder.lucide:waves-vertical.lucide:waypoints.lucide:webcam.lucide:webcam-off.lucide:webhook.lucide:webhook-off.lucide:weight.lucide:weight-tilde.lucide:wheat.lucide:wheat-off.lucide:whistle.lucide:whole-word.lucide:wifi.lucide:wifi-cog.lucide:wifi-high.lucide:wifi-lock.lucide:wifi-low.lucide:wifi-off.lucide:wifi-pen.lucide:wifi-sync.lucide:wifi-zero.lucide:wind.lucide:wind-arrow-down.lucide:wind-arrow-up.lucide:wine.lucide:wine-off.lucide:workflow.lucide:worm.lucide:wrap-text.lucide:wrench.lucide:wrench-off.lucide:x.lucide:x-line-top.lucide:youtube.lucide:zap.lucide:zap-off.lucide:zodiac-aquarius.lucide:zodiac-aries.lucide:zodiac-cancer.lucide:zodiac-capricorn.lucide:zodiac-gemini.lucide:zodiac-leo.lucide:zodiac-libra.lucide:zodiac-ophiuchus.lucide:zodiac-pisces.lucide:zodiac-sagittarius.lucide:zodiac-scorpio.lucide:zodiac-taurus.lucide:zodiac-virgo.lucide:zoom-in.lucide:zoom-out`.split(`.`),mr=`modulepreload`,hr=function(e){return`/`+e},gr={},_r=function(e){return e.pathname.endsWith(`.css`)},vr=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},yr=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=hr(t,n);let r=s(t),i=_r(r);return vr(gr,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:mr,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};new Set(pr);var br=new Map,xr;async function Sr(){if(br.size)return br;xr||=yr(()=>import(`./agentIconBodies-Cpn22UTR.js`).then(e=>e.AGENT_LIBRARY_BODIES),[]);let e=await xr;for(let[t,n]of Object.entries(e))br.set(t,n);return br}function Cr(e){return br.get(e)}function wr(e,t,n){if(!n)return 0;let r=e.toLowerCase();if(t===n||r===n)return 0;if(t.startsWith(n)||r.startsWith(n))return 1;if(t.includes(n)||r.includes(n))return 2;let i=n.split(/\s+/).filter(Boolean);return i.length>1&&i.every(e=>t.includes(e)||r.includes(e))?3:9}function Tr(e,t=10,n=0){let r=e.trim().toLowerCase().replace(/^(ph|lucide):/,``).replace(/\s+/g,` `);if(!r){let e=Pn.map(e=>({id:e,label:Fn[e],kind:`face`})),r=pr.length,i=e.length+r;if(n+t<=e.length)return{hits:e.slice(n,n+t),total:i};let a=Math.max(0,n-e.length),o=t-Math.max(0,e.length-n),s=n<e.length?e.slice(n):[],c=pr.slice(a,a+o).map(e=>({id:e,label:Hn(e),kind:`library`}));return{hits:[...s,...c],total:i}}let i=[];for(let e of Pn){let t=Fn[e],n=wr(t,e,r);n<9&&i.push({id:e,label:t,kind:`face`,s:n})}for(let e of pr){let t=Bn(e);if(!t)continue;let n=Hn(e),a=wr(n,t.name,r);a<9&&i.push({id:e,label:n,kind:`library`,s:a})}return i.sort((e,t)=>e.s-t.s||(e.kind===t.kind?e.label.localeCompare(t.label):e.kind===`face`?-1:1)),{hits:i.slice(n,n+t).map(({id:e,label:t,kind:n})=>({id:e,label:t,kind:n})),total:i.length}}var Er={forgeqe:{title:`the Conductor`,body:`bowtie`,hand:`baton`},engine:{title:`the Pilot`,head:`goggles`},desktop:{title:`the Operator`,head:`headset`},"forgeqe-test":{title:`the Coder`,head:`headphones`},"forgeqe-read":{title:`the Reader`,face:`round`,hand:`book`},"forgeqe-heal":{title:`the Medic`,head:`nurse`},"forgeqe-pr-review":{title:`the Inspector`,face:`square`,hand:`magnifier`},"forgeqe-find":{title:`the Seeker`,hand:`flashlight`},"forgeqe-defect-rca":{title:`the Detective`,head:`detective`},"forgeqe-judge":{title:`the Judge`,face:`monocle`,body:`bowtie`},"forgeqe-knowledge-agent":{title:`the Scholar`,head:`grad`},"forgeqe-tosca":{title:`the Builder`,head:`hardhat`},"forgeqe-data":{title:`the Miner`,head:`miner`},"forgeqe-migrate":{title:`the Traveller`,body:`scarf`},"forgeqe-review":{title:`the Engineer`,face:`square`,body:`tie`},"forgeqe-business-strategist":{title:`the Strategist`,body:`tie`,hand:`clipboard`},"forgeqe-model-profile":{title:`the Critic`,head:`crown`},"forgeqe-persona":{title:`the Actor`,body:`badge`},"forgeqe-refine":{title:`the Polisher`,hand:`wand`},"forgeqe-api-plan":{title:`the Sketcher`,head:`pencil`},"forgeqe-test-plan":{title:`the Navigator`,hand:`clipboard`},"forgeqe-explore-plan":{title:`the Explorer`,head:`safari`},explore:{title:`the Scout`,body:`binoculars`},general:{title:`the Helper`,head:`beanie`},"forgeqe-api":{title:`the Messenger`,crest:`antenna`,hand:`envelope`}},Dr={forgeqe:{h:259,s:100,l:72},"forgeqe-find":{h:68,s:57,l:57},"forgeqe-test-plan":{h:2,s:78,l:68},"forgeqe-knowledge-agent":{h:186,s:97,l:39},"forgeqe-test":{h:271,s:69,l:83},engine:{h:170,s:78,l:50},"forgeqe-review":{h:243,s:99,l:79},"forgeqe-api":{h:20,s:83,l:77},desktop:{h:141,s:45,l:50},"forgeqe-pr-review":{h:308,s:51,l:65},"forgeqe-data":{h:217,s:94,l:69},"forgeqe-explore-plan":{h:198,s:81,l:73},"forgeqe-refine":{h:120,s:57,l:69},"forgeqe-persona":{h:308,s:94,l:80},"forgeqe-heal":{h:44,s:83,l:58},"forgeqe-judge":{h:27,s:76,l:54},"forgeqe-api-plan":{h:171,s:58,l:69},"forgeqe-migrate":{h:342,s:55,l:74},"forgeqe-model-profile":{h:197,s:100,l:56},"forgeqe-defect-rca":{h:256,s:40,l:70},"forgeqe-tosca":{h:175,s:44,l:58},"forgeqe-business-strategist":{h:267,s:98,l:79},explore:{h:36,s:83,l:55},general:{h:101,s:31,l:63},"forgeqe-read":{h:220,s:69,l:75}},Or=[[240,88,62],[60,88,82],[300,88,62],[333,88,62],[228,68,62],[120,88,62],[87,88,72],[180,88,82],[261,88,62],[282,88,62],[48,58,77],[147,88,77],[300,88,72],[336,88,72],[12,88,72],[282,58,62],[0,88,62],[339,58,62],[315,78,62],[258,58,62],[339,68,82],[198,58,82],[231,58,67],[180,88,62],[129,88,72],[291,78,67],[84,58,72]].map(([e,t,n])=>({h:e,s:t,l:n})),kr=Zn.length,Ar=Or.length-kr,jr={version:-1,of:new Map};function Mr(e){let t=Zn.indexOf(e);if(t>=0)return t;let n=Kn();if(jr.version!==n.version){let e=new Map,t=new Set;for(let r of n.ids){let n=Nr(r)%Ar;for(let e=0;e<Ar&&t.has(n);e++)n=(n+1)%Ar;t.add(n),e.set(r,kr+n)}jr={version:n.version,of:e}}return jr.of.get(e)??kr+Nr(e)%Ar}function Nr(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619)>>>0;return t}function Pr(e){let t=e>>>0;return()=>{t=t+1831565813>>>0;let e=t;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}}var Fr=[[`lively`,1.5],[`calm`,.65],[`curious`,1.1],[`shy`,.85],[`bouncy`,1.35],[`sleepy`,.7]],Ir=[`antenna`,`ears`,`sprout`,`horns`,`halo`,`tuft`],Lr=new Map;function Rr(e){let t=Lr.get(e);if(t)return t;let n=Nr(e),r=Pr(n),[i,a]=Fr[Math.floor(r()*Fr.length)],o=Object.hasOwn(Er,e),s=o?Er[e]:{title:``},c={id:e,role:s,crest:s.crest??(o?null:Ir[n%Ir.length]),temper:i,energy:a,curiosity:i===`shy`?.5:i===`curious`?1:.75+r()*.2,sleepAfter:(i===`sleepy`?20:30)+r()*20,blinkEvery:2.2+r()*2.8,w:.94+r()*.14,hgt:.92+r()*.14,eyeGap:.3+r()*.07,eyeSize:.2+r()*.05,seed:n%1e3};return Lr.set(e,c),c}var zr=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;function Br(e){let t=zr.exec(e);if(!t)return[220,60];let[n,r,i]=[t[1],t[2],t[3]].map(e=>parseInt(e,16)/255),a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)*50;if(a===o)return[0,s];let c=a-o;return[(a===n?(r-i)/c+(r<i?6:0):a===r?(i-n)/c+2:(n-r)/c+4)*60,s]}function Vr(e,t){if(!Object.hasOwn(Dr,e)){let n=Or[Mr(e)];return t===`soft`?{h:n.h,l:n.l,s:n.s,soft:!0}:{h:n.h,l:Math.min(70,Math.max(55,n.l)),s:62,soft:!1}}if(t===`original`){let[t,n]=Br(Qn(e).hue);return{h:Math.round(t),l:Math.round(Math.min(70,Math.max(55,n))),s:62,soft:!1}}let n=Dr[e];return{h:n.h,l:n.l,s:n.s,soft:!0}}var R=(e,t,n,r=1)=>`hsla(${(e%360+360)%360},${Math.max(0,Math.min(100,t))}%,${Math.max(0,Math.min(100,n))}%,${r})`,Hr={accessibility:[`#5aa9e6`],"agents-hub":[`#4b5563`],"ai-assurance":[`#4b5563`],api:[`#4f86e0`,`#375e9d`],architecture:[`#a98bf3`],bell:[`#f6c48f`,`#c9742a`],board:[`#c3b5f5`,`#6a3fd6`],branch:[`#a6e39a`,`#749f6c`],"browser-agent":[`#c8dcf5`,`#6fa6e8`],bug:[`#f08a8a`],case:[`#6fd6aa`,`#4e9677`],chat:[`#8fb6f5`,`#3a76d0`],cloud:[`#b9d1f6`],code:[`#f3a6d8`,`#c2398f`],coins:[`#f3cf6e`,`#b8870f`],columns:[`#8fd1d8`,`#1f97a8`],container:[`#8fc9f2`,`#2a7fbf`],"context-engine":[`#d5c8fb`,`#6a3fd6`],database:[`#6fc9be`,`#1f8a7e`],desktop:[`#8fd1d8`,`#1f97a8`],download:[`#4f86e0`,`#2a5bbf`],explorer:[`#c8399a`,`#f6a7d8`],feature:[`#d9776a`],file:[`#b9d1f6`,`#3a76d0`],flask:[`#9ad9c0`,`#2f8a6b`],folder:[`#f2c46b`,`#b8860f`],healer:[`#cde67a`,`#86b02b`],history:[`#b7a4f5`,`#d0c4f8`,`#8073ac`],inbox:[`#8fc9f2`],info:[`#8fc9f2`,`#648da9`],key:[`#f2c46b`],"knowledge-base":[`#84c6d4`,`#1f8fa6`],layers:[`#8fb6f5`,`#b6d0f8`],mail:[`#f3a6a6`,`#f7c5c5`],mobile:[`#cbbdf7`,`#6a3fd6`],model:[`#9db8ff`,`#4a63d6`],network:[`#8fd6e3`,`#64969f`],orchestrator:[`#a98bf3`,`#6a3fd6`],palette:[`#e99ad2`,`#f1bde2`],plug:[`#f6c48f`,`#c9742a`],"pr-reviewer":[`#d77c88`],pulse:[`#f08a8a`],"quality-engineering":[`#4b5563`],replay:[`#3fb985`],report:[`#9ad9ec`,`#1c8fb2`],result:[`#5bb894`,`#94d1b9`],rocket:[`#b9d1f6`],route:[`#9ad9a0`,`#bde6c1`],rule:[`#f4e2b0`,`#c98b2a`],screenshot:[`#9ad9ec`,`#1c8fb2`],scribe:[`#5bb894`,`#2f8a6b`,`#94d1b9`,`#408168`],scroll:[`#e8cf9c`,`#a8701a`],server:[`#9ab3c9`],shield:[`#3a76d0`,`#8fb6f5`],sparkle:[`#c9b6f7`,`#8a5be6`],specs:[`#5bb894`,`#408168`],speed:[`#e0a23a`],stories:[`#b9d1f6`,`#3a76d0`],table:[`#9ad9a0`,`#2f8a3e`],terminal:[`#6f9ff0`],"test-finder":[`#8fdcef`,`#1f9fc0`],theme:[`#5b6bd6`,`#f5b83d`],ticket:[`#f6c48f`,`#c9742a`],trace:[`#6fb4c4`,`#a1ced9`],visual:[`#e99ad2`,`#a8287d`],wand:[`#c9b6f7`,`#dcd0fa`,`#8d7fad`],warning:[`#f6c84f`],web:[`#8edcf2`,`#22a0c4`],wikis:[`#e8cf9c`,`#c48a2a`],wrench:[`#a8b6c4`]},Ur={record:`screenshot`,desktop:`desktop`,regression:`replay`,impact:`board`,"api-tests":`plug`,migration:`table`,tosca:`network`,quality:`columns`,flaky:`bug`,business:`info`,"run-diff":`code`,"test-debt":`folder`,flags:`feature`,production:`web`,cost:`coins`,explore:`sparkle`,readiness:`shield`,"test-cases":`ticket`,accessibility:`accessibility`,performance:`pulse`,visual:`visual`,data:`container`,"test-data":`flask`,runs:`terminal`,reports:`report`,jobs:`speed`,knowledge:`knowledge-base`,product:`columns`,memory:`architecture`,guardrails:`shield`,skills:`feature`,prompts:`stories`,features:`branch`,"whats-new":`scroll`,help:`wikis`,theme:`theme`,settings:`desktop`,chats:`orchestrator`,agents:`board`,evidence:`flask`,"evidence-runs":`scroll`,"evidence-contracts":`file`,"evidence-review":`ticket`,"evidence-releases":`history`,"evidence-learn":`replay`,"evidence-monitor":`pulse`},Wr={env:`web`,usage:`network`,changes:`code`,outputs:`download`},Gr=[`auto`,`plain`,`tiles`,`outline`,`mono`],Kr=[`phosphor`,`solar`,`lucide`,`3d`],qr=`phosphor`,Jr=[`visor`,`classic`,`icons`],Yr=`visor`,Xr=[`soft`,`original`],Zr=`soft`,Qr=e=>e.mascot&&Jr.includes(e.mascot)?e.mascot:Yr,$r=e=>e.mascotColours&&Xr.includes(e.mascotColours)?e.mascotColours:Zr,ei=e=>e.iconSet&&Kr.includes(e.iconSet)?e.iconSet:qr,ti=e=>e.iconColour===`accent`?`accent`:V(e.iconColour)?`custom`:`text`,z=`#111928`,B=`#ffffff`,ni={"--side-bg":`#f9fafb`,"--side-ink":z,"--side-ink-2":`#374151`,"--side-muted":`#5f6672`,"--side-active":`#f3f4f6`,"--side-line":`#e5e7eb`,"--side-line-soft":`#f0f1f3`},ri={"--color-accent":`#3758f9`,"--color-accent-hover":`#1b44c8`,"--color-accent-soft":`#ebefff`,"--color-accent-line":`#b8c3fc`,"--color-accent-ink":B,"--color-accent-fg":`#3758f9`,"--color-accent-fg-hover":`#1b44c8`,"--color-accent-grad":`#8a97fb`},ii=ni[`--side-bg`],ai=`#111318`,oi={"--side-bg":`#16181e`,"--side-ink":`#e9ebf0`,"--side-ink-2":`#c3c8d2`,"--side-muted":`#8d95a5`,"--side-active":`#22252e`,"--side-line":`#2b303b`,"--side-line-soft":`#20232b`},si={"--color-accent":`#3758f9`,"--color-accent-hover":`#4d6bfa`,"--color-accent-soft":`#1a2142`,"--color-accent-line":`#2f3b78`,"--color-accent-ink":B,"--color-accent-fg":`#8fa3ff`,"--color-accent-fg-hover":`#b3c1ff`,"--color-accent-grad":`#a9b4ff`};function ci(e,t=`light`){if(t===`dark`)return[oi[`--side-bg`]];let n=V(e.primary),r=V(e.gradient);return n||r?[n||ii,...r?[r]:[]]:[ni[`--side-bg`]]}var li=ri[`--color-accent`];function V(e){let t=typeof e==`string`?e.trim().toLowerCase():``;if(/^#[0-9a-f]{6}$/.test(t))return t;if(/^#[0-9a-f]{3}$/.test(t))return`#${[...t.slice(1)].map(e=>e+e).join(``)}`}var ui=e=>[1,3,5].map(t=>parseInt(e.slice(t,t+2),16)),di=e=>`#${e.map(e=>Math.round(Math.min(255,Math.max(0,e))).toString(16).padStart(2,`0`)).join(``)}`;function H(e,t,n){let r=ui(e),i=ui(t);return di(r.map((e,t)=>e+(i[t]-e)*n))}function fi(e){let[t,n,r]=ui(e).map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*t+.7152*n+.0722*r}function pi(e,t){let[n,r]=[fi(e),fi(t)].sort((e,t)=>t-e);return(n+.05)/(r+.05)}function mi(...e){let t=t=>Math.min(...e.map(e=>pi(t,e))),n=t(B)>t(z)?B:z;return t(n)>=4.5||t(n)>=t(`#000000`)?n:`#000000`}function hi(e,t,n){let r=e;for(let i=0;i<=1&&Math.min(...n.map(e=>pi(r,e)))<4.5;i+=.1)r=H(e,t,i);return r}var gi=.75;function _i(e,t=`light`){let n=V(e.background);return t===`light`&&n&&fi(n)>=.75?n:void 0}var vi=[`--color-bg`,`--color-surface-muted`,`--color-surface-strong`,`--color-field`,`--color-line`,`--color-line-soft`,`--color-line-strong`,`--color-muted`];function yi(e,t=`light`){let n=_i(e,t);return n?{"--color-bg":n,"--color-surface-muted":H(n,z,.025),"--color-surface-strong":H(n,z,.05),"--color-field":H(n,z,.04),"--color-line":H(n,z,.1),"--color-line-soft":H(n,z,.065),"--color-line-strong":H(n,z,.18),"--color-muted":hi(`#5f6672`,z,[n])}:{}}var bi=`#f3f4f6`,xi=`#1a1d24`;function Si(e,t=`light`){let n=V(e.primary);if(t===`dark`){let e=n?H(n,ai,.84):xi,t=mi(e);return{"--card-bg":e,"--card-ink":t,"--card-ink-2":hi(`#c3c8d2`,t,[e]),"--card-muted":hi(`#8d95a5`,t,[e]),"--card-line":H(e,B,.14),"--card-line-soft":H(e,B,.09),"--card-hover":H(e,B,.05),"--card-strong":H(e,B,.09)}}let r=_i(e)||B,i=n?H(n,B,fi(n)>=.6?.6:.94):bi,a=pi(i,r)<1.06?H(n||i,z,.05):i,o=mi(a),s=o===B?z:o;return{"--card-bg":a,"--card-ink":o,"--card-ink-2":o===B?hi(H(a,B,.85),B,[a]):hi(`#374151`,s,[a]),"--card-muted":o===B?hi(H(a,B,.68),B,[a]):hi(`#5f6672`,s,[a]),"--card-line":H(a,z,.1),"--card-line-soft":H(a,z,.06),"--card-hover":H(a,z,.04),"--card-strong":H(a,z,.07)}}var Ci=e=>V(e.secondary)||(ti(e)===`custom`&&ei(e)!==`3d`?V(e.iconColour):void 0);function wi(e,t=`light`){let n=V(e.primary),r=V(e.gradient),i=Ci(e),a=t===`dark`?oi:ni;if(t!==`dark`&&(n||r)){let e=n||ii,t=r?[e,r]:[e],i=mi(...t),o=i===B,s=i===B?z:i,c=r?H(e,r,.5):e;a={"--side-bg":r?`linear-gradient(180deg, ${e}, ${r})`:e,"--side-ink":i,"--side-ink-2":o?hi(H(c,B,.85),B,t):hi(`#374151`,s,t),"--side-muted":o?hi(H(c,B,.68),B,t):hi(`#5f6672`,s,t),"--side-active":o?H(c,B,.16):H(c,z,.06),"--side-line":o?H(c,B,.22):H(c,z,.1),"--side-line-soft":o?H(c,B,.12):H(c,z,.06)}}let o=ci(e,t),s=mi(...o)===B,c=o.length>1?H(o[0],o[o.length-1],.5):o[0],l=i?H(i,c,s?.7:.88):a[`--side-active`];if(a={...a,"--side-current-bg":l,"--side-current-ink":i?s?hi(H(i,B,.75),B,[l]):hi(i,z,[l]):a[`--side-ink`]},t===`dark`){let n=i?Ti(i,`dark`,ai):si;return{...a,...n,...Si(e,t)}}let u=_i(e)||B,d=!i&&u!==B?hi(ri[`--color-accent`],z,[u]):void 0,f=i?Ti(i,`light`,u):d?{...ri,"--color-accent-fg":d,"--color-accent-fg-hover":H(d,z,.25)}:ri;return{...a,...f,...Si(e,t)}}function Ti(e,t,n){let r=Ki(e),i=Ri.map(e=>r[e]),a=i.indexOf(e),o=i.length-1,s=e=>{let[t,n,r]=Ui(e);return Gi(Math.min(t+.045,.97),n,r)},c=e=>{for(let t=a;t>=0&&t<=o;t+=e)if(pi(i[t],n)>=4.5)return t;return e===1?o:0};if(t===`dark`){let[,t,n]=Ui(e),r=c(-1);return{"--color-accent":e,"--color-accent-hover":s(e),"--color-accent-soft":Gi(.26,t*.35,n),"--color-accent-line":Gi(.38,t*.6,n),"--color-accent-ink":mi(e),"--color-accent-fg":i[r],"--color-accent-fg-hover":i[Math.max(r-2,0)],"--color-accent-grad":i[3]}}let l=c(1);return{"--color-accent":e,"--color-accent-hover":mi(e)===B?i[Math.min(a+1,o)]:s(e),"--color-accent-soft":pi(i[0],n)<1.06?i[1]:i[0],"--color-accent-line":i[2],"--color-accent-ink":mi(e),"--color-accent-fg":i[l],"--color-accent-fg-hover":i[Math.min(l+2,o)],"--color-accent-grad":i[3]}}function Ei(e,t,n,r){let i=e;for(let a=.1;a<=1.001&&Math.min(...n.map(e=>pi(i,e)))<r;a+=.1)i=H(e,t,a);return i}function Di(e,t=`light`){let n=ti(e);if(n===`text`||ei(e)===`3d`)return{vars:{},moved:[]};let r=n===`accent`?V(e.secondary)||li:V(e.iconColour),i=t===`dark`?ai:_i(e)||B,a=ci(e,t),o=n===`accent`?wi(e,t)[`--color-accent-fg`]:Ei(r,t===`dark`?B:z,[i],3),s=Ei(r,mi(...a),a,3),c=a.length>1?H(a[0],a[a.length-1],.5):a[0],l=[];return n!==`accent`&&o!==r&&l.push(`page`),s!==r&&l.push(`sidebar`),{vars:{"--icon-colour":o,"--side-icon-colour":s,"--icon-tint":H(o,i,ki),"--side-icon-tint":H(s,c,ki)},moved:l}}var Oi=[`--icon-colour`,`--side-icon-colour`,`--icon-tint`,`--side-icon-tint`],ki=.8;function Ai(e){let t=wi(e),n=[V(e.primary)||ii,...V(e.gradient)?[V(e.gradient)]:[]],r=V(e.secondary)||li,i=Math.min(...n.map(e=>pi(t[`--side-ink`],e))),a=pi(t[`--color-accent-ink`],r),o=pi(t[`--color-accent-fg`],_i(e)||B),s=e=>Math.round(e*10)/10;return[{label:`Sidebar text`,ratio:s(i),ok:i>=4.5},{label:`Button text`,ratio:s(a),ok:a>=4.5},{label:`Links on the page`,ratio:s(o),ok:o>=4.5}]}function ji(e){let t={};for(let n of e.split(/\r?\n/)){let e=[...n.matchAll(/#(?:[0-9a-f]{6}|[0-9a-f]{3})\b/gi)].map(e=>V(e[0])).filter(Boolean);if(!e.length)continue;let r=n.toLowerCase();/gradient/.test(r)?(!t.gradient&&e.length>1&&(t.gradient=e.at(-1)),!t.primary&&/primary|brand|sidebar/.test(r)&&(t.primary=e[0])):/\b(page )?background\b|\bbg\b/.test(r)&&!/button|sidebar|accent|primary|secondary/.test(r)?!t.background&&fi(e[0])>=.75&&(t.background=e[0]):!t.secondary&&/secondary|accent|button|\bcta\b/.test(r)?t.secondary=e[0]:!t.primary&&/primary|brand|sidebar/.test(r)&&(t.primary=e[0])}return t}function Mi(e,t=document.documentElement,n=`light`){t.dataset.mode=n;for(let[r,i]of Object.entries(wi(e,n)))t.style.setProperty(r,i);let r=yi(e,n);for(let e of vi)r[e]?t.style.setProperty(e,r[e]):t.style.removeProperty(e);let i=ei(e);t.dataset.iconSet=i;let a=Li(e,Fi,n);t.dataset.icons=i===`3d`?a.style:`plain`,t.style.setProperty(`--icon-tile`,a.tile),t.style.setProperty(`--icon-outline`,a.outline),t.style.setProperty(`--icon-mono`,a.mono);let o=Di(e,n).vars;t.dataset.iconFill=o[`--icon-colour`]?`colour`:`duotone`;for(let e of Oi)o[e]?t.style.setProperty(e,o[e]):t.style.removeProperty(e)}function Ni(e,t){if(!e)return null;let n=e.kind===`background`?1.6:2;if(!t.some(t=>pi(e.colour,t)<n))return null;let r=t.length>1?H(t[0],t[t.length-1],.5):t[0];return mi(...t)===B?H(r,B,.9):H(r,z,.85)}var Pi=e=>/^(ph|lucide):/.test(e),Fi=[...new Set([...Object.values(Ur),...nr.map(e=>Qn(e.agent).icon)])].filter(e=>!Pi(e)),Ii=(e,t)=>Math.max(1,...(Hr[e]||[]).map(e=>pi(e,t)));function Li(e,t=Fi,n=`light`){let r=ci(e,n),i=r.length>1?H(r[0],r[1],.5):r[0],a=mi(...r),o=(e,t)=>Math.min(...t.map(t=>Ii(e,t))),s=t.map(e=>({icon:e,ratio:Math.round(o(e,r)*100)/100})).filter(e=>e.ratio<2).sort((e,t)=>e.ratio-t.ratio),c=[H(i,B,.9),H(i,z,.82)],l=e=>Math.min(...t.map(t=>Ii(t,e))),u=c.find(e=>l(e)>=2)||c.reduce((e,t)=>l(t)>l(e)?t:e),d=(e.iconStyle&&e.iconStyle!==`auto`&&Gr.includes(e.iconStyle)?e.iconStyle:void 0)||(s.length?`tiles`:`plain`),f=d===`tiles`?l(u):Math.min(...d===`plain`?t.map(e=>o(e,r)):r.map(e=>pi(a,e)));return{style:d,tile:u,outline:a,mono:a,faint:s,lowest:Math.round(f*100)/100}}var Ri=[50,100,200,300,400,500,600,700,800,900,950],zi=[.975,.94,.88,.8,.71,.62,.53,.45,.37,.29,.21],Bi=[.12,.25,.45,.7,.9,1,1,.92,.8,.66,.5],Vi=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,Hi=e=>e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;function Ui(e){let[t,n,r]=ui(e).map(e=>Vi(e/255)),i=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),a=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),o=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),s=.2104542553*i+.793617785*a-.0040720468*o,c=1.9779984951*i-2.428592205*a+.4505937099*o,l=.0259040371*i+.7827717662*a-.808675766*o;return[s,Math.hypot(c,l),Math.atan2(l,c)]}function Wi(e,t,n){let r=t*Math.cos(n),i=t*Math.sin(n),a=(e+.3963377774*r+.2158037573*i)**3,o=(e-.1055613458*r-.0638541728*i)**3,s=(e-.0894841775*r-1.291485548*i)**3;return[4.0767416621*a-3.3077115913*o+.2309699292*s,-1.2684380046*a+2.6097574011*o-.3413193965*s,-.0041960863*a-.7034186147*o+1.707614701*s]}function Gi(e,t,n){let r=t,i=Wi(e,r,n);for(let t=0;t<24&&i.some(e=>e<-5e-4||e>1.0005);t++)i=Wi(e,r*=.85,n);return di(i.map(e=>Hi(Math.min(1,Math.max(0,e)))*255))}function Ki(e){let t=V(e);if(!t)return;let[n,r,i]=Ui(t),a=r<.01?0:r,o=zi.reduce((e,t,r)=>Math.abs(t-n)<Math.abs(zi[e]-n)?r:e,0),s={};return Ri.forEach((e,n)=>s[e]=n===o?t:Gi(zi[n],a*Bi[n]/Bi[o],i)),s}var qi=[`deep`,`light`];function Ji(e,t=`deep`){let n=Ki(e);if(!n)return;let r=V(e),i=[r,...Ri.filter(e=>Ui(n[e])[0]<=Ui(r)[0]+1e-9).map(e=>n[e])].find(e=>pi(B,e)>=4.5)||n[700],a=fi(n[50])>=.75?n[50]:B;return t===`light`?{primary:n[100],gradient:n[200],secondary:i,background:a}:{primary:n[800],gradient:n[950],secondary:i,background:a}}var U=en(),Yi=`forgeqe-mode`,Xi=()=>{try{let e=localStorage.getItem(Yi);return e===`light`||e===`dark`?e:`system`}catch{return`system`}},Zi=()=>typeof matchMedia==`function`&&matchMedia(`(prefers-color-scheme: dark)`).matches,Qi=(0,L.createContext)({theme:{},saved:{},reload:()=>{},preview:()=>{},mode:`light`,choice:`system`,setChoice:()=>{}});function $i({children:e}){let[t,n]=(0,L.useState)({}),[r,i]=(0,L.useState)(null),[a,o]=(0,L.useState)(Xi),[s,c]=(0,L.useState)(Zi),l=(0,L.useCallback)(()=>{Lt.get().then(n,()=>{})},[]);(0,L.useEffect)(l,[l]),(0,L.useEffect)(()=>{if(typeof matchMedia!=`function`)return;let e=matchMedia(`(prefers-color-scheme: dark)`),t=()=>c(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let u=(0,L.useCallback)(e=>{o(e);try{e===`system`?localStorage.removeItem(Yi):localStorage.setItem(Yi,e)}catch{}},[]),d=a===`system`?s?`dark`:`light`:a,f=r??t;Mn(f.agentNames),(0,L.useEffect)(()=>Mi(f,document.documentElement,d),[f,d]),(0,L.useEffect)(()=>Tn(f.appName),[f.appName]);let p=f.logoMark||f.logo;return(0,L.useEffect)(()=>{let e=document.querySelector(`link[rel="icon"][data-brand]`);if(!p)return void e?.remove();e||(e=document.createElement(`link`),e.rel=`icon`,e.dataset.brand=``,document.head.appendChild(e)),e.href=p},[p]),(0,U.jsx)(Qi.Provider,{value:{theme:f,saved:t,reload:l,preview:i,mode:d,choice:a,setChoice:u},children:(0,U.jsx)(T.Provider,{value:ei(f)===`lucide`?`lucide`:`phosphor`,children:e})})}var ea=()=>(0,L.useContext)(Qi),ta=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function na(e,t){let[n,r]=(0,L.useState)(e);return(0,L.useEffect)(()=>{if(e||ta()){r(e);return}let n=setTimeout(()=>r(!1),t);return()=>clearTimeout(n)},[e,t]),e||n}var ra={forgeqe:[`......####...`,`......#..#...`,`......#......`,`......#......`,`...####......`,`..#####......`,`...###.......`],engine:[`..#########..`,`..#.#.#####..`,`..#########..`,`..#.......#..`,`..#.......#..`,`..#.......#..`,`..#########..`],desktop:[`..#########..`,`..#.......#..`,`..#.......#..`,`..#.......#..`,`..#########..`,`......#......`,`....#####....`],"forgeqe-test":[`...#.....#...`,`..#....#..#..`,`.#....#....#.`,`#....#......#`,`.#..#......#.`,`..##......#..`,`...#.....#...`],"forgeqe-read":[`.###.....###.`,`#...#...#...#`,`#.#.#...#.#.#`,`#.#..#.#..#.#`,`#.#..#.#..#.#`,`#....#.#....#`,`.#####.#####.`],"forgeqe-heal":[`.....###.....`,`.....###.....`,`..#########..`,`..#########..`,`..#########..`,`.....###.....`,`.....###.....`],"forgeqe-pr-review":[`...........#.`,`..........##.`,`.........##..`,`#.......##...`,`.##....##....`,`..##..##.....`,`...####......`],"forgeqe-find":[`...####......`,`..#....#.....`,`..#....#.....`,`..#....#.....`,`...####......`,`......##.....`,`.......##....`],"forgeqe-defect-rca":[`..#.....#....`,`...#...#.....`,`..#######....`,`.#.#####.#...`,`..#######....`,`.#.#####.#...`,`...#...#.....`],"forgeqe-judge":[`......#......`,`.....###.....`,`#############`,`.###########.`,`...#######...`,`..####.####..`,`.##.......##.`],"forgeqe-knowledge-agent":[`....#####....`,`...#.....#...`,`...#.....#...`,`....#...#....`,`.....###.....`,`.....###.....`,`......#......`],"forgeqe-tosca":[`#############`,`.#.........#.`,`.#..#####..#.`,`.#.#.....#.#.`,`.##.......##.`,`.#.........#.`,`#############`],"forgeqe-data":[`...#######...`,`..#.......#..`,`..#########..`,`..#.......#..`,`..#########..`,`..#.......#..`,`...#######...`],"forgeqe-migrate":[`.......#.....`,`.......##....`,`#############`,`#############`,`.......##....`,`.......#.....`,`.............`],"forgeqe-review":[`....#.#.#....`,`...#######...`,`.###.....###.`,`..##..#..##..`,`.###.....###.`,`...#######...`,`....#.#.#....`],"forgeqe-business-strategist":[`...#######...`,`..#.......#..`,`.#..#####..#.`,`.#..#.#.#..#.`,`.#..#####..#.`,`..#.......#..`,`...#######...`],"forgeqe-model-profile":[`.........##..`,`.........##..`,`......#####..`,`......#####..`,`...########..`,`...########..`,`#############`],"forgeqe-persona":[`.....###.....`,`....#####....`,`....#####....`,`.....###.....`,`...#######...`,`..#########..`,`..#########..`],"forgeqe-refine":[`......#......`,`......#......`,`.....###.....`,`..#########..`,`.....###.....`,`......#......`,`......#......`],"forgeqe-api-plan":[`..#########..`,`..#.......#..`,`..#.##.##.#..`,`..#.......#..`,`..#.##.##.#..`,`..#.......#..`,`..#########..`],"forgeqe-test-plan":[`#.#####......`,`..........#..`,`.........#...`,`#.#####.##...`,`........#....`,`...........#.`,`#.#####......`],"forgeqe-explore-plan":[`..#..........`,`..#######....`,`..#########..`,`..#######....`,`..#..........`,`..#..........`,`.###.........`],explore:[`..###...###..`,`.#####.#####.`,`#..####...###`,`#..####...###`,`.#####.#####.`,`..###...###..`,`.............`],general:[`....#####....`,`...#.....#...`,`........#....`,`.......#.....`,`......#......`,`.............`,`......#......`],"forgeqe-api":[`..##.....##..`,`.#.........#.`,`.#.........#.`,`#...#.#.#...#`,`.#.........#.`,`.#.........#.`,`..##.....##..`]},ia=new Map;function aa(e){if(!Object.hasOwn(ra,e))return;let t=ia.get(e);return t||(t=ra[e].flatMap((e,t)=>[...e].flatMap((e,n)=>e===`#`?[[n,t]]:[])),ia.set(e,t)),t}var oa=(e,t,n)=>Math.max(t,Math.min(n,e));function sa(e){if(e.symbol)return{lit:e.symbol.cells.filter(([,t])=>t<e.symbol.rows),pink:[]};let t=[],n=(e,n)=>{e>=0&&e<13&&n>=0&&n<7&&t.push([e,n])},r=oa(Math.round(e.gx*1.5),-1,1),i=oa(Math.round(e.gy*1.5),-1,1),a=`open`;e.expr===`sleep`?a=`sleep`:e.expr===`joy`?a=e.heart?`heart`:`happy`:e.expr===`surprised`?a=`wide`:e.expr===`concern`?a=`worried`:e.expr===`angry`?[a,i]=[`cross`,0]:e.expr===`frustrated`?[a,r,i]=[`flat`,-1,0]:e.expr===`think`&&([r,i]=[1,-1]),a===`open`&&(a=e.open<.15?`closed`:e.open<.72||e.expr===`drowsy`?`half`:`open`);let o=1+i;for(let e of[3,8]){let t=e+r;if(a===`open`)for(let e of[0,1])for(let r of[0,1,2])n(t+e,o+r);if(a===`half`||a===`worried`||a===`cross`)for(let e of[0,1])for(let r of[1,2])n(t+e,o+r);if(a===`worried`&&(e===3?(n(t,o),n(t+1,o-1)):(n(t,o-1),n(t+1,o))),a===`cross`&&(e===3?(n(t,o-1),n(t+1,o)):(n(t,o),n(t+1,o-1))),a===`flat`){for(let e=-1;e<=2;e++)n(t+e,o+1);n(t,o+2),n(t+1,o+2)}if(a===`closed`&&(n(t,o+2),n(t+1,o+2)),a===`happy`&&(n(t-1,o+2),n(t,o+1),n(t+1,o+1),n(t+2,o+2)),a===`sleep`&&(n(t-1,o+1),n(t,o+2),n(t+1,o+2),n(t+2,o+1)),a===`wide`){for(let e of[0,1])for(let r of[0,1,2])n(t+e,o+r);n(t-1,o+1),n(t+2,o+1)}if(a===`heart`){n(t-1,o),n(t+2,o);for(let e=-1;e<=2;e++)n(t+e,o+1);n(t,o+2),n(t+1,o+2)}}let s=e=>e.forEach(([e,t])=>n(e,t));if(e.yawn>.3)s([[5,4],[6,4],[7,4],[5,5],[7,5],[5,6],[6,6],[7,6]]);else if(e.expr===`talk`){let t=e.mouth;s(t<.12?[[5,6],[6,6],[7,6]]:t<.4?[[4,6],[5,6],[6,6],[7,6],[8,6]]:t<.7?[[5,5],[6,5],[7,5],[5,6],[6,6],[7,6]]:[[4,5],[5,5],[6,5],[7,5],[8,5],[4,6],[5,6],[6,6],[7,6],[8,6]])}else if(e.expr===`joy`)s([[4,5],[5,6],[6,6],[7,6],[8,5]]);else if(e.expr===`concern`)s([[5,6],[6,5],[7,6]]);else if(e.expr===`angry`)s([[4,6],[5,5],[6,5],[7,5],[8,6]]);else if(e.expr===`frustrated`)s([[4,6],[5,5],[6,6],[7,5],[8,6]]);else if(e.expr===`surprised`)s([[5,5],[6,5],[7,5],[5,6],[7,6]]);else if(e.expr===`think`){let t=Math.floor(e.t*3)%4;[[5,6],[6,6],[7,6]].forEach(([e,r],i)=>i<t&&n(e,r))}else e.expr===`sleep`?n(6,6):e.expr===`drowsy`?s([[5,6],[6,6],[7,6]]):s([[5,5],[6,6],[7,5]]);return{lit:t,pink:e.blush>.45&&e.expr!==`sleep`?[[1,4],[2,4],[10,4],[11,4]]:[]}}var W=Math.PI*2,ca=new Map,la=new Map;function ua(e){let t=Math.round(e*100),n=la.get(t);if(!n){let r=e*1.42,i=e*.98;n=new Path2D,n.moveTo(-r*.5,0),n.bezierCurveTo(-r*.5,i*.42,-r*.3,i*.52,0,i*.52),n.bezierCurveTo(r*.3,i*.52,r*.5,i*.42,r*.5,0),n.bezierCurveTo(r*.5,-i*.32,r*.44,-i*.5,r*.28,-i*.5),n.bezierCurveTo(r*.14,-i*.5,r*.1,-i*.36,0,-i*.36),n.bezierCurveTo(-r*.1,-i*.36,-r*.14,-i*.5,-r*.28,-i*.5),n.bezierCurveTo(-r*.44,-i*.5,-r*.5,-i*.32,-r*.5,0),la.set(t,n)}return n}function da(e,t,n,r,i,a,o){let s=`${e}|${t}|${n}|${r}|${i.toFixed(1)}|${a}|${o}`,c=ca.get(s);if(c)return c;let l=document.createElement(`canvas`),u=l.getContext(`2d`),d=(e,t)=>{l.width=Math.ceil(e*o),l.height=Math.ceil(t*o),l.w=e,l.h=t,u.scale(o,o)},f=a?R(t,60,97):R(t,n,90),p=R(t,n,a?88:82),m=R(t,n,r);if(e===`shadow`){let e=i;d(e*1.8,e*.5);let t=u.createRadialGradient(e*.9,e*.9,0,e*.9,e*.9,e*.9);t.addColorStop(0,a?`rgba(0,0,0,.45)`:`rgba(60,55,90,.18)`),t.addColorStop(1,`rgba(60,55,90,0)`),u.fillStyle=t,u.scale(1,.28),u.beginPath(),u.arc(e*.9,e*.9,e*.9,0,W),u.fill()}if(e===`sphere`){let e=i,o=e*2.7;d(o,o),u.translate(o/2,o/2);let s=new Path2D;s.arc(0,0,e,0,W);let c=u.createLinearGradient(0,-e,0,e*.95);c.addColorStop(0,f),c.addColorStop(.45,p),c.addColorStop(1,m),u.save(),u.shadowColor=a?`rgba(0,0,0,.4)`:`rgba(60,50,110,.22)`,u.shadowBlur=e*.22,u.shadowOffsetY=e*.08,u.fillStyle=c,u.fill(s),u.restore(),u.save(),u.clip(s);let l=u.createRadialGradient(e*.35,e*.55,0,e*.35,e*.55,e*1.1);l.addColorStop(0,R(t,n*.8,r-10,.35)),l.addColorStop(1,R(t,n,r,0)),u.fillStyle=l,u.fillRect(-e*2,-e*2,e*4,e*4);let h=u.createRadialGradient(-e*.34,-e*.62,0,-e*.34,-e*.62,e*.6);h.addColorStop(0,`rgba(255,255,255,.75)`),h.addColorStop(1,`rgba(255,255,255,0)`),u.fillStyle=h,u.fillRect(-e*2,-e*2,e*4,e*4),u.strokeStyle=`rgba(255,255,255,.45)`,u.lineWidth=e*.04,u.stroke(s),u.restore()}if(e===`visor`||e===`gloss`){let n=i,r=n*1.42,a=n*.98,o=n*.45;d(r+o*2,a+o*2),u.translate(l.w/2,l.h/2);let s=ua(n);if(e===`visor`){u.save(),u.shadowColor=`rgba(40,35,60,.22)`,u.shadowBlur=n*.18,u.shadowOffsetY=n*.06,u.fillStyle=R(t,18,15),u.fill(s),u.restore();let e=u.createRadialGradient(0,a*.05,0,0,a*.05,r*.62);e.addColorStop(0,R(t,20,24)),e.addColorStop(1,R(t,18,15)),u.fillStyle=e,u.fill(s),u.save(),u.clip(s);let i=r/14.2;u.fillStyle=`rgba(255,255,255,.06)`;for(let e=0;e<13;e++)for(let t=0;t<7;t++){let n=i*.72;u.beginPath(),u.roundRect((e-6)*i-n/2,(t-3)*i+a*.02-n/2,n,n,n*.26),u.fill()}u.restore(),u.strokeStyle=`rgba(255,255,255,.14)`,u.lineWidth=n*.02,u.stroke(s)}else{u.save(),u.clip(s);let e=u.createLinearGradient(0,-a*.5,0,a*.1);e.addColorStop(0,`rgba(255,255,255,.14)`),e.addColorStop(1,`rgba(255,255,255,0)`),u.fillStyle=e,u.fillRect(-r,-a,r*2,a*1.1),u.restore()}}if(e===`glow`){let e=i*2.6;d(e,e);let n=u.createRadialGradient(e/2,e/2,0,e/2,e/2,e/2);n.addColorStop(0,R(t,80,86,.75)),n.addColorStop(.35,R(t,75,80,.32)),n.addColorStop(1,R(t,70,75,0)),u.fillStyle=n,u.fillRect(0,0,e,e)}return ca.set(s,l),ca.size>600&&ca.delete(ca.keys().next().value),l}function fa(e,t,n,r,i){for(let a of t.parts)if(e.globalAlpha=1-a.life/a.max,a.kind===`heart`){let t=n*.13*a.s;e.fillStyle=`#f7a8c4`,e.beginPath(),e.moveTo(a.x,a.y+t*.9),e.bezierCurveTo(a.x-t*1.6,a.y-t*.2,a.x-t*.6,a.y-t*1.4,a.x,a.y-t*.4),e.bezierCurveTo(a.x+t*.6,a.y-t*1.4,a.x+t*1.6,a.y-t*.2,a.x,a.y+t*.9),e.fill()}else if(a.kind===`puff`)e.fillStyle=`rgba(200,205,215,.85)`,e.beginPath(),e.arc(a.x,a.y,n*.07*a.s*(1+a.life*1.2),0,W),e.fill();else if(a.kind===`drop`){let t=n*.09*a.s;e.fillStyle=`#8fc8f2`,e.beginPath(),e.moveTo(a.x,a.y-t*1.6),e.quadraticCurveTo(a.x+t,a.y-t*.2,a.x,a.y+t*.8),e.quadraticCurveTo(a.x-t,a.y-t*.2,a.x,a.y-t*1.6),e.fill()}else if(a.kind===`z`)e.fillStyle=r,e.font=`700 ${n*.32*a.s*(1+a.life*.3)}px "DM Sans", sans-serif`,e.fillText(`z`,a.x,a.y);else{let t=n*.1*a.s;e.fillStyle=i,e.beginPath();for(let n=0;n<8;n++){let r=n%2?t*.3:t,i=n*Math.PI/4+a.life*2;e.lineTo(a.x+Math.cos(i)*r,a.y+Math.sin(i)*r)}e.fill()}e.globalAlpha=1}function pa(e){let t=e.ctx,n=e.px,{colour:r,full:i,dark:a,persona:o}=e.props,s=e.time(),c=e.dpr,l=r.h,u=r.s,d=r.l;t.clearRect(0,0,n,n);let f=i?n*.3:n*.44,p=n/2,m=i?e.sleeping?f*.08+Math.sin(s*1.3)*f*.02:Math.sin(s*W/(2.8/Math.sqrt(o.energy))+o.seed)*f*.06:0,h=i?n*.45:n*.5,g=i?e.hop*f*.32-m:e.hop*f*.08;if(i){let e=Math.max(.35,Math.min(1,1-(g+f*.1)/(f*1.2))),n=da(`shadow`,l,u,d,f,a,c);t.drawImage(n,p-n.w*e/2,h+f*1.38-n.h*e/2,n.w*e,n.h*e)}t.save(),t.translate(p+e.lean*f*(i?.18:.05),h-g),t.rotate(e.lean*(i?.12:.07));let _=i?e.sq:1+(e.sq-1)*.6;t.scale(1/Math.sqrt(Math.max(.6,_)),_);let v=da(`sphere`,l,u,d,f,a,c);t.drawImage(v,-v.w/2,-v.h/2,v.w,v.h);let y=!i&&n<22,b=y?f*.86:f,x=b*1.42,ee=b*.98,S=e.gx*f*.08,C=-f*.02+e.gy*f*.06,w=da(`visor`,l,u,d,b,a,c);t.drawImage(w,S-w.w/2,C-w.h/2,w.w,w.h),t.save(),t.translate(S,C),t.clip(ua(b));let T=x/14.2*(y?1.3:1),E=(e,t)=>[(e-6)*T,(t-3)*T+ee*.02],D=(e,n,r)=>{let[i,a]=E(e,n);t.beginPath(),t.roundRect(i-r/2,a-r/2,r,r,r*.26),t.fill()},O=aa(o.id),k=sa({expr:e.expr,gx:e.gx,gy:e.gy,open:e.open,mouth:e.mouth,yawn:e.yawn,blush:e.blush,heart:s<e.heartUntil,t:s,...e.symbolAt!==null&&O?{symbol:{cells:O,rows:Math.min(7,(s-e.symbolAt)*16)}}:{}});if(k.pink.length){t.fillStyle=`rgba(255,182,206,${Math.min(1,e.blush)*.7})`;for(let[e,t]of k.pink)D(e,t,T*.72)}let te=da(`glow`,l,u,d,T,a,c),ne=T*2.6;for(let[e,n]of y?[]:k.lit){let[r,i]=E(e,n);t.drawImage(te,r-ne/2,i-ne/2,ne,ne)}let re=Math.max(0,Math.min(1,e.heat));t.fillStyle=re>.02?`rgb(255,${Math.round(255-140*re)},${Math.round(255-150*re)})`:`#fff`;for(let[e,t]of k.lit)D(e,t,T*(y?.92:.74));t.restore();let ie=da(`gloss`,l,u,d,b,a,c);t.drawImage(ie,S-ie.w/2,C-ie.h/2,ie.w,ie.h),t.restore(),fa(t,e,f,R(l,60,a?80:55),R(l,55,80))}function ma(e){let t=e.ctx,n=e.px,{colour:r,dark:i,persona:a}=e.props,o=e.time(),s=r.soft,c=r.h;t.clearRect(0,0,n,n);let l=n*(n<40?.31:.27),u=n/2,d=n*(n<40?.56:.6),f=e.hop*l*.32,p=1-Math.min(.55,f/l*1.4);t.fillStyle=i?`rgba(0,0,0,.35)`:`rgba(20,25,40,.10)`,t.beginPath(),t.ellipse(u,d+l*.98,l*.72*p,l*.12*p,0,0,W),t.fill(),t.save(),t.translate(u+e.lean*l*.18,d-f),t.rotate(e.lean*.15);let m=e.sq;t.scale(1/Math.sqrt(Math.max(.6,m))*a.w,m*a.hgt);let h=R(c,45,i?12:16),g=e.expr===`joy`?Math.abs(Math.sin(o*10))*l*.07:0;t.fillStyle=s?R(c,r.s*.65,Math.min(64,r.l)):R(c,62,i?44:48);for(let e of[-1,1])t.beginPath(),t.ellipse(e*l*.42,l*.88-(e>0?g:0),l*.23,l*.12,0,0,W),t.fill();if(a.crest===`ears`)for(let n of[-1,1])t.save(),t.translate(n*l*.56,-l*.72),t.rotate(n*(.45+e.ant*.5)),t.fillStyle=s?R(c,45,74):R(c,70,52),t.beginPath(),t.ellipse(0,-l*.2,l*.2,l*.34,0,0,W),t.fill(),t.fillStyle=R(c+330,70,84,.85),t.beginPath(),t.ellipse(0,-l*.17,l*.1,l*.22,0,0,W),t.fill(),t.restore();a.crest===`halo`&&(t.strokeStyle=R(48,80,72,.9),t.lineWidth=l*.07,t.beginPath(),t.ellipse(e.ant*l*.2,-l*1.3+Math.sin(o*1.6)*l*.04,l*.44,l*.11,e.ant*.3,0,W),t.stroke());let _=new Path2D;_.moveTo(0,-l),_.bezierCurveTo(l*.64,-l,l,-l*.55,l,l*.06),_.bezierCurveTo(l,l*.62,l*.62,l*.92,0,l*.92),_.bezierCurveTo(-l*.62,l*.92,-l,l*.62,-l,l*.06),_.bezierCurveTo(-l,-l*.55,-l*.64,-l,0,-l);let v=t.createRadialGradient(-l*.38,-l*.52,l*.08,0,0,l*1.25);s?(v.addColorStop(0,R(c,r.s*.9,93)),v.addColorStop(.5,R(c,r.s*.8,80)),v.addColorStop(1,R(c,r.s*.75,Math.min(66,r.l)))):(v.addColorStop(0,R(c,85,i?82:84)),v.addColorStop(.5,R(c,72,i?62:64)),v.addColorStop(1,R(c,68,i?40:48))),t.fillStyle=v,t.fill(_),t.save(),t.clip(_),t.fillStyle=R(c,60,90,.28),t.beginPath(),t.ellipse(0,l*.6,l*.5,l*.3,0,0,W),t.fill();let y=t.createRadialGradient(-l*.42,-l*.55,0,-l*.42,-l*.55,l*.45);if(y.addColorStop(0,`rgba(255,255,255,.55)`),y.addColorStop(1,`rgba(255,255,255,0)`),t.fillStyle=y,t.fillRect(-l*2,-l*2,l*4,l*4),t.restore(),a.crest===`antenna`){let n=e.ant,r=l*.48,i=-l*.96,a=Math.sin(n)*r,o=i-Math.cos(n)*r;t.strokeStyle=R(c,s?35:55,s?55:38),t.lineWidth=l*.05,t.lineCap=`round`,t.beginPath(),t.moveTo(0,i),t.quadraticCurveTo(Math.sin(n)*r*.2,i-r*.6,a,o),t.stroke(),t.fillStyle=R(c+40,s?60:90,s?80:74),t.beginPath(),t.arc(a,o,l*.11,0,W),t.fill()}if(a.crest===`sprout`){t.save(),t.translate(0,-l*.95),t.rotate(e.ant*.8),t.strokeStyle=R(120,40,40),t.lineWidth=l*.05,t.beginPath(),t.moveTo(0,0),t.lineTo(0,-l*.22),t.stroke();for(let e of[-1,1])t.save(),t.translate(0,-l*.22),t.rotate(e*(.9+Math.sin(o*2+e)*.08)),t.fillStyle=R(118,s?40:55,e<0?58:64),t.beginPath(),t.ellipse(0,-l*.15,l*.08,l*.17,0,0,W),t.fill(),t.restore();t.restore()}if(a.crest===`horns`)for(let n of[-1,1])t.save(),t.translate(n*l*.42,-l*.84),t.rotate(n*.35+e.ant*.15),t.fillStyle=R(c,35,i?88:92),t.beginPath(),t.moveTo(-l*.09,0),t.quadraticCurveTo(-l*.02,-l*.3,l*.02*n,-l*.32),t.quadraticCurveTo(l*.06,-l*.12,l*.09,0),t.closePath(),t.fill(),t.restore();if(a.crest===`tuft`){t.save(),t.translate(0,-l*.96),t.strokeStyle=R(c,s?40:70,s?62:i?50:46),t.lineWidth=l*.06,t.lineCap=`round`;for(let n of[-1,0,1])t.beginPath(),t.moveTo(n*l*.08,0),t.quadraticCurveTo(n*l*.12+e.ant*l*.3,-l*.2,n*l*.2+e.ant*l*.5,-l*.22+Math.abs(n)*l*.06),t.stroke();t.restore()}let b=e.gx*l*.2,x=-l*.06+e.gy*l*.13,ee=l*a.eyeGap,S=l*a.eyeSize,C=e.expr;if(e.heat>.02){let n=t.createRadialGradient(0,-l*.25,0,0,-l*.25,l*.72);n.addColorStop(0,`rgba(255,70,70,${Math.min(1,e.heat)*.42})`),n.addColorStop(1,`rgba(255,70,70,0)`),t.fillStyle=n,t.beginPath(),t.arc(0,-l*.25,l*.72,0,W),t.fill()}if(e.blush>.02){t.fillStyle=`rgba(255,140,170,${e.blush*.45})`;for(let e of[-1,1])t.beginPath(),t.ellipse(b+e*(ee+l*.1),x+S*1.15,l*.11,l*.06,0,0,W),t.fill()}for(let n of[-1,1]){let a=b+n*ee,o=x;if(t.lineCap=`round`,C===`joy`){t.strokeStyle=h,t.lineWidth=l*.075,t.beginPath(),t.arc(a,o+S*.4,S*.68,Math.PI*1.15,Math.PI*1.85),t.stroke();continue}if(C===`sleep`||e.open<.1){t.strokeStyle=h,t.lineWidth=l*.06,t.beginPath(),C===`sleep`?t.arc(a,o-S*.3,S*.62,.18*Math.PI,.82*Math.PI):(t.moveTo(a-S*.62,o),t.lineTo(a+S*.62,o)),t.stroke();continue}t.save(),t.beginPath(),t.ellipse(a,o,S*.86,S*1.02*Math.min(e.open,1.2),0,0,W),t.fillStyle=`#fbfbff`,t.fill(),t.clip();let u=a+e.gx*S*.34,d=o+e.gy*S*.32;if(t.fillStyle=R(c,55,i?26:30),t.beginPath(),t.arc(u,d,S*.64,0,W),t.fill(),t.fillStyle=`#0b0c12`,t.beginPath(),t.arc(u,d,S*.36*(C===`surprised`?.75:1),0,W),t.fill(),t.fillStyle=`#fff`,t.beginPath(),t.arc(u-S*.24,d-S*.28,S*.21,0,W),t.fill(),t.beginPath(),t.arc(u+S*.22,d+S*.18,S*.09,0,W),t.fill(),C===`angry`){let e=a-n*S;t.fillStyle=s?R(c,r.s*.8,82):R(c,72,i?60:62),t.beginPath(),t.moveTo(a+n*S,o-S*1.2),t.lineTo(e,o-S*1.2),t.lineTo(e,o-S*.05),t.lineTo(a+n*S,o-S*.8),t.closePath(),t.fill()}else e.open<.95&&(t.fillStyle=s?R(c,r.s*.8,82):R(c,72,i?60:62),t.fillRect(a-S,o-S*1.1,S*2,S*1.1*(1-e.open)*1.4));t.restore()}let w=(e,n,r)=>{t.strokeStyle=R(c,45,i?14:18,r),t.lineWidth=l*.05,t.lineCap=`round`;for(let r of[-1,1]){let i=b+r*ee,a=x-S*1.32-e;t.beginPath(),t.moveTo(i-r*S*.55,a+n*S*.3),t.lineTo(i+r*S*.5,a-n*S*.3),t.stroke()}};C===`concern`?w(0,-1,.9):C===`angry`?w(-S*.12,1.6,1):C===`frustrated`?w(-S*.3,.3,.85):C===`think`?w(-S*.1,.8,.8):C===`surprised`?w(S*.35,0,.85):C!==`sleep`&&C!==`joy`&&w(0,0,.28);let T=b,E=x+l*.36,D=(e,n)=>{t.fillStyle=R(c,50,12),t.beginPath(),t.ellipse(T,E,e,n,0,0,W),t.fill(),t.save(),t.clip(),t.fillStyle=`rgba(255,130,150,.9)`,t.beginPath(),t.ellipse(T,E+n*.75,e*.75,n*.6,0,0,W),t.fill(),t.restore()},O=(e,n)=>{t.strokeStyle=h,t.lineWidth=l*n,t.beginPath(),e(),t.stroke()};e.yawn>.05?D(l*.1,l*.16*e.yawn):C===`talk`&&e.mouth>.04?D(l*(.08+.04*e.mouth),l*(.02+.12*e.mouth)):C===`joy`?(t.fillStyle=R(c,50,12),t.beginPath(),t.moveTo(T-l*.13,E-l*.03),t.quadraticCurveTo(T,E+l*.22,T+l*.13,E-l*.03),t.closePath(),t.fill()):C===`angry`?O(()=>t.arc(T,E+l*.08,l*.11,1.15*Math.PI,1.85*Math.PI),.065):C===`frustrated`?O(()=>{t.moveTo(T-l*.11,E),t.lineTo(T-l*.055,E-l*.035),t.lineTo(T,E),t.lineTo(T+l*.055,E-l*.035),t.lineTo(T+l*.11,E)},.05):C===`concern`?O(()=>t.arc(T,E+l*.1,l*.09,1.2*Math.PI,1.8*Math.PI),.055):C===`surprised`?D(l*.05,l*.065):C===`think`?O(()=>(t.moveTo(T-l*.02,E+l*.01),t.lineTo(T+l*.09,E-l*.015)),.05):C===`sleep`?D(l*.035,l*.035*(1+.3*Math.sin(o*1.4))):O(()=>t.arc(T,E-l*.05,l*.08,.22*Math.PI,.78*Math.PI),.055);let k=a.role;k.body&&_a(t,k.body,l,o),k.face&&C!==`sleep`&&ga(t,k.face,l,c,b,x,ee,S),k.head&&ha(t,k.head,l,c,i,o);let te=(e,n)=>{let a=e*l*.84,o=l*.16,u=l*.4,d=a+e*Math.sin(n)*u,f=o+Math.cos(n)*u;return t.strokeStyle=s?R(c,r.s*.7,74):R(c,66,i?52:54),t.lineWidth=l*.19,t.lineCap=`round`,t.beginPath(),t.moveTo(a,o),t.lineTo(d,f),t.stroke(),[d,f]},ne=([e,n])=>{t.fillStyle=s?R(c,r.s*.8,86):R(c,74,i?66:68),t.beginPath(),t.arc(e,n,l*.105,0,W),t.fill()};ne(te(-1,e.armL));let re=te(1,e.armR);if(k.hand&&(t.save(),t.translate(re[0],re[1]),va(t,k.hand,l,c,o,e.armR),t.restore()),ne(re),t.restore(),e.mode===`thinking`)for(let e=0;e<3;e++){let n=Math.max(0,Math.sin(o*4-e*.7));t.fillStyle=R(c,50,i?75:55,.4+.6*n),t.beginPath(),t.arc(u+l*(.55+e*.22),d-f-l*(1.2+e*.18)-n*l*.06,l*(.045+e*.02),0,W),t.fill()}fa(t,e,l,i?`#c9d0e0`:`#5f6672`,R(48,90,74))}function ha(e,t,n,r,i,a){e.save(),e.shadowColor=`rgba(40,30,80,.22)`,e.shadowBlur=n*.12,e.shadowOffsetY=n*.03;let o=(t,n,r,i)=>{e.fillStyle=i,e.beginPath(),e.ellipse(0,t,n,r,0,Math.PI,0),e.closePath(),e.fill()},s=(t,n,r,i)=>{e.fillStyle=i,e.beginPath(),e.ellipse(0,t,n,r,0,0,W),e.fill()};if(t===`goggles`){e.strokeStyle=`#4a3424`,e.lineWidth=n*.1,e.beginPath(),e.moveTo(-n*.95,-n*.5),e.quadraticCurveTo(0,-n*.68,n*.95,-n*.5),e.stroke();for(let t of[-1,1])e.fillStyle=`rgba(160,215,235,.9)`,e.strokeStyle=`#c9a24a`,e.lineWidth=n*.06,e.beginPath(),e.arc(t*n*.25,-n*.6,n*.17,0,W),e.fill(),e.stroke()}if(t===`headset`||t===`headphones`){let a=t===`headphones`;e.strokeStyle=`#2f3340`,e.lineWidth=n*.09,e.beginPath(),e.arc(0,-n*.12,n,Math.PI*1.12,Math.PI*1.88),e.stroke();for(let t of[-1,1])e.fillStyle=a?R(r+170,50,i?66:62):`#2f3340`,e.beginPath(),e.ellipse(t*n*.98,-n*.16,n*(a?.17:.12),n*(a?.26:.19),0,0,W),e.fill();a||(e.strokeStyle=`#2f3340`,e.lineWidth=n*.05,e.beginPath(),e.moveTo(-n*.98,-n*.05),e.quadraticCurveTo(-n*.85,n*.38,-n*.28,n*.34),e.stroke(),s(n*.34,n*.07,n*.07,`#454b5c`))}t===`nurse`&&(e.fillStyle=`#fff`,e.beginPath(),e.moveTo(-n*.45,-n*.84),e.lineTo(-n*.33,-n*1.22),e.lineTo(n*.33,-n*1.22),e.lineTo(n*.45,-n*.84),e.quadraticCurveTo(0,-n*.92,-n*.45,-n*.84),e.fill(),e.shadowColor=`transparent`,e.fillStyle=`#e5706f`,e.fillRect(-n*.1,-n*1.1,n*.2,n*.06),e.fillRect(-n*.03,-n*1.17,n*.06,n*.2)),t===`detective`&&(o(-n*.8,n*.66,n*.4,`#a88a62`),s(-n*.8,n*.78,n*.1,`#8a6e4a`)),t===`grad`&&(s(-n*.88,n*.44,n*.16,`#262d3d`),e.fillStyle=`#2e3648`,e.beginPath(),e.moveTo(0,-n*1.36),e.lineTo(n*.72,-n*1.12),e.lineTo(0,-n*.9),e.lineTo(-n*.72,-n*1.12),e.closePath(),e.fill(),e.strokeStyle=`#e9c46a`,e.lineWidth=n*.04,e.beginPath(),e.moveTo(0,-n*1.13),e.lineTo(n*.55,-n*1.1),e.lineTo(n*.58+Math.sin(a*2)*n*.03,-n*.82),e.stroke()),(t===`hardhat`||t===`miner`)&&(o(-n*.76,n*.72,n*.46,`hsl(44,80%,62%)`),s(-n*.76,n*.9,n*.11,`hsl(42,70%,54%)`),t===`miner`&&s(-n*.98,n*.12,n*.12,`#fff4c8`)),t===`safari`&&(s(-n*.78,n*1.05,n*.15,`#c7ad7c`),o(-n*.78,n*.62,n*.42,`#d9c193`),e.fillStyle=`#7a5b36`,e.fillRect(-n*.6,-n*.9,n*1.2,n*.1)),t===`beanie`&&(o(-n*.64,n*.8,n*.56,R(r+150,45,i?62:60)),e.fillStyle=R(r+150,40,i?52:50),e.beginPath(),e.roundRect(-n*.84,-n*.74,n*1.68,n*.2,n*.08),e.fill(),s(-n*1.22,n*.14,n*.14,R(r+150,30,94))),t===`crown`&&(e.fillStyle=`hsl(44,80%,62%)`,e.beginPath(),[[-.38,-.86],[-.4,-1.16],[-.19,-1],[0,-1.25],[.19,-1],[.4,-1.16],[.38,-.86]].forEach(([t,r],i)=>i?e.lineTo(t*n,r*n):e.moveTo(t*n,r*n)),e.closePath(),e.fill()),t===`pencil`&&(e.translate(n*.66,-n*.7),e.rotate(-.7),e.fillStyle=`#f2c94c`,e.fillRect(-n*.05,-n*.3,n*.1,n*.5),e.fillStyle=`#f29fb5`,e.fillRect(-n*.05,-n*.38,n*.1,n*.09),e.fillStyle=`#e8c9a0`,e.beginPath(),e.moveTo(-n*.05,n*.2),e.lineTo(n*.05,n*.2),e.lineTo(0,n*.33),e.closePath(),e.fill()),e.restore()}function ga(e,t,n,r,i,a,o,s){if(e.strokeStyle=R(r,30,16),e.lineWidth=n*.045,t===`round`)for(let t of[-1,1])e.beginPath(),e.arc(i+t*o,a,s*1.28,0,W),e.stroke();if(t===`square`)for(let t of[-1,1])e.beginPath(),e.roundRect(i+t*o-s*1.35,a-s*1.15,s*2.7,s*2.3,s*.5),e.stroke();t===`monocle`&&(e.strokeStyle=`hsl(44,70%,55%)`,e.lineWidth=n*.04,e.beginPath(),e.arc(i+o,a,s*1.32,0,W),e.stroke())}function _a(e,t,n,r){if(t===`bowtie`&&(e.fillStyle=`#e5706f`,e.beginPath(),e.moveTo(0,n*.6),e.lineTo(-n*.22,n*.48),e.lineTo(-n*.22,n*.72),e.closePath(),e.moveTo(0,n*.6),e.lineTo(n*.22,n*.48),e.lineTo(n*.22,n*.72),e.closePath(),e.fill()),t===`tie`&&(e.fillStyle=`#5b7fc4`,e.beginPath(),e.moveTo(-n*.07,n*.5),e.lineTo(n*.07,n*.5),e.lineTo(n*.04,n*.58),e.lineTo(n*.11,n*.86),e.lineTo(0,n*.95),e.lineTo(-n*.11,n*.86),e.lineTo(-n*.04,n*.58),e.closePath(),e.fill()),t===`badge`&&(e.save(),e.translate(n*.36,n*.58),e.rotate(-.08),e.fillStyle=`#fff`,e.beginPath(),e.roundRect(-n*.2,-n*.13,n*.4,n*.26,n*.04),e.fill(),e.fillStyle=`#e5706f`,e.fillRect(-n*.2,-n*.13,n*.4,n*.08),e.restore()),t===`scarf`&&(e.strokeStyle=`#e88a72`,e.lineWidth=n*.17,e.lineCap=`round`,e.beginPath(),e.moveTo(-n*.8,n*.4),e.quadraticCurveTo(0,n*.62,n*.8,n*.4),e.stroke(),e.save(),e.translate(n*.38,n*.55),e.rotate(.12+Math.sin(r*1.5)*.06),e.fillStyle=`#e88a72`,e.fillRect(-n*.08,0,n*.16,n*.36),e.restore()),t===`binoculars`)for(let t of[-1,1])e.fillStyle=`#3a3f4c`,e.beginPath(),e.roundRect(t*n*.16-n*.12,n*.5,n*.24,n*.3,n*.08),e.fill()}function va(e,t,n,r,i,a){if(e.save(),e.rotate(-a*.35),e.lineCap=`round`,t===`baton`&&(e.strokeStyle=`#f5f5f5`,e.lineWidth=n*.04,e.beginPath(),e.moveTo(0,0),e.lineTo(n*.32,-n*.42),e.stroke()),t===`magnifier`&&(e.strokeStyle=`#6b5444`,e.lineWidth=n*.07,e.beginPath(),e.moveTo(0,0),e.lineTo(n*.14,-n*.2),e.stroke(),e.fillStyle=`rgba(200,228,250,.5)`,e.strokeStyle=`#3a3f4c`,e.lineWidth=n*.05,e.beginPath(),e.arc(n*.24,-n*.36,n*.19,0,W),e.fill(),e.stroke()),t===`flashlight`){e.rotate(-.6);let t=e.createLinearGradient(0,-n*.25,0,-n*.95);t.addColorStop(0,`rgba(255,240,170,.45)`),t.addColorStop(1,`rgba(255,240,170,0)`),e.fillStyle=t,e.beginPath(),e.moveTo(-n*.06,-n*.26),e.lineTo(-n*.26,-n*.95),e.lineTo(n*.26,-n*.95),e.lineTo(n*.06,-n*.26),e.closePath(),e.fill(),e.fillStyle=`#555c6e`,e.beginPath(),e.roundRect(-n*.05,-n*.24,n*.1,n*.28,n*.03),e.fill()}if(t===`clipboard`){e.rotate(.15),e.fillStyle=`#b48a5e`,e.beginPath(),e.roundRect(-n*.05,-n*.5,n*.38,n*.48,n*.04),e.fill(),e.fillStyle=`#fff`,e.fillRect(-n*.01,-n*.44,n*.3,n*.38),e.fillStyle=`#a3abbd`;for(let t=0;t<4;t++)e.fillRect(n*.03,-n*.36+t*n*.08,n*.2-t%2*n*.06,n*.025)}if(t===`wand`){e.strokeStyle=`#3a3f4c`,e.lineWidth=n*.05,e.beginPath(),e.moveTo(0,0),e.lineTo(n*.26,-n*.36),e.stroke();let t=n*.13*(1+.25*Math.sin(i*6));e.translate(n*.3,-n*.42),e.rotate(i),e.fillStyle=`#f6dc7a`,e.beginPath();for(let n=0;n<10;n++){let r=n%2?t*.42:t,i=n*Math.PI/5;e.lineTo(Math.cos(i)*r,Math.sin(i)*r)}e.fill()}t===`book`&&(e.rotate(.1),e.fillStyle=R(r+160,40,55),e.beginPath(),e.roundRect(-n*.02,-n*.42,n*.36,n*.44,n*.03),e.fill(),e.fillStyle=`#f4efe2`,e.fillRect(n*.02,-n*.4,n*.3,n*.04)),t===`envelope`&&(e.rotate(.2),e.fillStyle=`#fff`,e.beginPath(),e.roundRect(-n*.04,-n*.32,n*.42,n*.3,n*.03),e.fill(),e.strokeStyle=`#c4cad6`,e.lineWidth=n*.025,e.beginPath(),e.moveTo(-n*.04,-n*.32),e.lineTo(n*.17,-n*.15),e.lineTo(n*.38,-n*.32),e.stroke()),e.restore()}var ya={mouse:{x:-1e4,y:-1e4,t:-99},lastKey:-99,typing:null,lastActivity:0},ba=()=>performance.now()/1e3,xa=[`joy`,`concern`,`surprised`,`content`,`angry`,`frustrated`],Sa=class{cv;ctx;px;dpr;props;rect=null;visible=!0;slot=Math.floor(Math.random()*2);gx=0;gy=0;lean=0;sq=1;hop=0;hopV=0;ant=0;blush=0;heat=0;lid=1;open=1;mouth=0;yawn=0;armL=.28;armR=.28;v={};mode=`idle`;expr=`calm`;sleeping=!1;hovered=!1;parts=[];symbolAt=null;feeling=null;look=null;nextBlink=ba()+Math.random()*2;blinkAt=-9;double=!1;nextIdle=ba()+1+Math.random()*3;deck=[];later=[];waveUntil=0;wiggleUntil=0;yawnAt=-9;yawned=!1;lastZ=0;lastLook=[0,0];symbolUntil=0;ponderUntil=0;lastPuff=0;lastSelf=0;constructor(e,t,n){this.cv=e,this.px=t,this.props=n,this.dpr=Math.min(2,window.devicePixelRatio||1),e.width=Math.round(t*this.dpr),e.height=Math.round(t*this.dpr),this.ctx=e.getContext(`2d`),this.ctx.scale(this.dpr,this.dpr),this.mode=Ta(n.state),this.lastSelf=ba();let r=n.mood;r&&xa.includes(r.kind)&&Number.isFinite(r.secs)&&this.feel(r.kind,Math.max(.3,Math.min(6,r.secs)))}set(e){let t=this.props.state,n=this.props.mood;this.props=e,this.mode=Ta(e.state),e.state!==t&&(e.state===`done`&&this.feel(`joy`,2.2),e.state===`failed`&&this.feel(`concern`,2.8),e.state!==`idle`&&this.sleeping&&this.wake()),e.state!==`idle`&&(this.lastSelf=ba());let r=e.mood;r&&r.at!==n?.at&&xa.includes(r.kind)&&Number.isFinite(r.secs)&&(this.lastSelf=ba(),this.sleeping=!1,this.yawned=!1,this.feel(r.kind,Math.max(.3,Math.min(6,r.secs)))),Na&&this.draw()}busy(){return this.mode!==`idle`||this.feeling!==null||this.px>=56}feel(e,t){let n=ba();if(this.feeling={kind:e,until:n+t,at:n},e===`joy`&&(this.hopV=Math.max(this.hopV,2.4),this.burst(4)),e===`concern`&&(this.v.sq=(this.v.sq??0)+2),e===`surprised`&&(this.hopV=2.8),e===`angry`&&(this.v.sq=(this.v.sq??0)-5,this.hopV=Math.max(this.hopV,1.2)),e===`frustrated`){this.v.sq=(this.v.sq??0)+3;let e=this.px,t=e*.27;this.parts.push({kind:`drop`,x:e/2+t*.85,y:e*.5-t*.75,vx:4,vy:6,life:0,max:1.4,s:.9})}}heartUntil=0;poke(){if(ya.lastActivity=ba(),this.sleeping)return this.wake();this.v.sq=(this.v.sq??0)-7,this.hopV=Math.max(this.hopV,1.8),this.feel(`joy`,1.4),this.heartUntil=ba()+1.3;let e=this.px,t=e*.27;for(let n=0;n<3;n++)this.parts.push({kind:`heart`,x:e/2+(Math.random()-.5)*t*1.4,y:e*.5-t*.6,vx:(Math.random()-.5)*30,vy:-30-Math.random()*40,life:0,max:1.1+Math.random()*.5,s:.8+Math.random()*.5});Na&&(this.update(0),this.draw())}wake(){this.sleeping=!1,this.yawned=!1,this.feel(`surprised`,.55),setTimeout(()=>{let e=this.feelingNow();e&&e!==`surprised`||this.feel(`joy`,.9)},550)}burst(e){let t=this.px,n=t*.27;for(let r=0;r<e;r++)this.parts.push({kind:`spark`,x:t/2+(Math.random()-.5)*n*1.4,y:t*.6-n*.9+(Math.random()-.5)*n*.4,vx:(Math.random()-.5)*30,vy:-30-Math.random()*40,life:0,max:1+Math.random()*.6,s:.7+Math.random()*.6})}spring(e,t,n,r,i){let a=this,o=((this.v[e]??0)+(t-a[e])*n*i)*Math.exp(-r*i);this.v[e]=o,a[e]=a[e]+o*i}feelingNow(){return this.feeling&&ba()<this.feeling.until?this.feeling.kind:null}update(e){let t=ba(),n=this.props.persona,r=this.rect,i=r?r.left+r.width/2:0,a=r?r.top+r.height*.52:0,o=ya.mouse;this.hovered=!!r&&o.x>r.left&&o.x<r.right&&o.y>r.top&&o.y<r.bottom;let s=t-Math.max(ya.lastActivity,this.lastSelf);this.sleeping&&s<.6&&this.wake();let c=this.mode===`idle`&&!this.hovered;c&&!this.sleeping&&s>n.sleepAfter&&(this.sleeping=!0);let l=c&&!this.sleeping&&s>n.sleepAfter-4;l&&!this.yawned&&s>n.sleepAfter-3&&(this.yawned=!0,this.yawnAt=t);let u=0,d=0,f=(e,t,n=1)=>{let r=e-i,o=t-a,s=Math.hypot(r,o)+140;u=r/s*1.5*n,d=o/s*1.5*n},p=t-ya.lastKey<1.6&&ya.typing,m=this.feelingNow();this.sleeping?d=.4:m===`frustrated`?[u,d]=[-.7,.45]:m===`angry`&&r&&t-o.t<7?f(o.x,o.y,1.4):m===`angry`?[u,d]=[0,.1]:t<this.ponderUntil?[u,d]=[.6,-.8]:this.look&&t<this.look.until?[u,d]=[this.look.x,this.look.y]:this.mode===`thinking`?[u,d]=[.6*Math.sin(t*.9+n.seed),-.8]:this.mode===`speaking`?[u,d]=[.06*Math.sin(t*1.3),.02]:p?f(ya.typing.x,ya.typing.y):r&&t-o.t<7?f(o.x,o.y,n.curiosity):[u,d]=[.35*Math.sin(t*.31+n.seed),.12*Math.sin(t*.23+n.seed*2)];let h=Math.hypot(u,d);if(h>1&&([u,d]=[u/h,d/h]),Math.hypot(u-this.lastLook[0],d-this.lastLook[1])>.9&&t-this.blinkAt>.5&&(this.blinkAt=t),this.lastLook=[u,d],this.spring(`gx`,u,55,11,e),this.spring(`gy`,d,55,11,e),this.mode===`idle`&&!this.sleeping&&!this.hovered&&!this.feelingNow()&&t>this.nextIdle){this.deck.length||(this.deck=wa(Ca.filter(e=>e===`wave`?this.props.look===`classic`:e!==`symbol`||this.props.look===`visor`&&!!aa(n.id))));let e=this.deck.pop();if(e===`glance`)this.look={x:Math.random()*2-1,y:Math.random()-.6,until:t+.7+Math.random()*.8};else if(e===`lookAround`){let e=Math.random()<.5?-1:1;this.look={x:e*.9,y:-.1,until:t+.8},this.later.push([t+.8,()=>this.look={x:-e*.9,y:-.1,until:ba()+.8}])}else e===`hop`?this.hopV=1.6+n.energy*.7:e===`lean`?this.v.lean=(this.v.lean??0)+(Math.random()<.5?-1:1)*4*n.energy:e===`blink`?[this.blinkAt,this.double]=[t,!0]:e===`wiggle`?this.wiggleUntil=t+.6:e===`stretch`?this.v.sq=(this.v.sq??0)+6:e===`happy`?this.feel(`content`,1.2):e===`surprise`?this.feel(`surprised`,.7):e===`sigh`?this.feel(`frustrated`,1):e===`ponder`?this.ponderUntil=t+1.6:e===`wave`?this.waveUntil=t+1.6:e===`symbol`&&(this.symbolUntil=t+1.9);this.nextIdle=t+(1.6+Math.random()*2.6)/n.energy}for(let[e,n]of this.later)t>=e&&n();this.later=this.later.filter(([e])=>t<e),t>this.nextBlink&&(this.blinkAt=t,this.double=Math.random()<.2,this.nextBlink=t+n.blinkEvery*(.5+Math.random()));let g=t-this.blinkAt,_=g<.15?Math.sin(g/.15*Math.PI):this.double&&g>.22&&g<.37?Math.sin((g-.22)/.15*Math.PI):0,v=this.feelingNow();v||(this.feeling=null);let y=Math.sin(t*6.283/(this.sleeping?4.5:3.4/Math.sqrt(n.energy))),b=t<this.wiggleUntil?Math.sin(t*16)*.22:0,x=this.mode===`listening`||!!p,ee=v===`angry`?Math.sin(t*38)*.1:0;this.spring(`lean`,this.gx*.35+b+ee+(this.mode===`thinking`?-.08:0),60,5,e),this.spring(`sq`,1+(this.sleeping?.035:.022)*y-(v===`concern`||v===`frustrated`?.05:0)-(v===`angry`?.03:0)+(x?.02:0),200,9,e),this.hopV-=15*e,this.hop+=this.hopV*e,this.hop<0&&(this.hopV<-1&&(this.v.sq=(this.v.sq??0)+this.hopV*2.2),this.hop=0,this.hopV=0),v===`joy`&&this.feeling&&t-this.feeling.at<1.6&&this.hop===0&&Math.random()<e*2&&(this.hopV=1.7),this.spring(`ant`,-this.lean*.9-this.hopV*.07-this.gx*.25+.06*Math.sin(t*1.7+n.seed),28,2.6,e),this.spring(`heat`,+(v===`angry`),12,7,e),this.spring(`blush`,v===`joy`||v===`content`||this.hovered?1:this.mode===`speaking`?.35:0,9,7,e);let S=this.sleeping?0:l?.42:v===`surprised`?1.2:v===`frustrated`?.55:v===`angry`?.8:x?1.06:v===`concern`?.85:1;this.spring(`lid`,S,40,12,e),this.open=Math.max(0,Math.min(1.25,this.lid*(1-_)));let C=Math.max(0,Math.sin(t*9.3))*Math.max(0,Math.sin(t*2.1+1));this.spring(`mouth`,this.mode===`speaking`?Math.min(1,C*1.1+.15*Math.abs(Math.sin(t*23))):0,140,16,e),this.yawn=t-this.yawnAt<2.2?Math.sin((t-this.yawnAt)/2.2*Math.PI):0;let w=!!n.role.hand,T=.28+.05*y,E=(w?.95:.28)+.05*y;this.sleeping?[T,E]=[.1,w?.55:.1]:v===`joy`?[T,E]=[2.3+.25*Math.sin(t*9),(w?1.7:2.3)+.25*Math.sin(t*9+1.3)]:v===`concern`?[T,E]=[.06,w?.5:.06]:v===`surprised`?[T,E]=[1.6,1.6]:v===`angry`?[T,E]=[.62+.1*Math.sin(t*30),(w?1.1:.62)+.1*Math.sin(t*30+1)]:v===`frustrated`?[T,E]=[.04,w?.45:.04]:this.mode===`thinking`?E=2.3+.12*Math.sin(t*8):this.mode===`speaking`?[T,E]=[.35+.18*Math.sin(t*2.2),(w?1.05:.55)+.5*this.mouth]:(this.hovered||t<this.waveUntil)&&(T=2.45+.4*Math.sin(t*13)),this.spring(`armL`,T,70,9,e),this.spring(`armR`,E,70,9,e);let D=this.mode===`idle`&&!this.sleeping&&!v&&!!aa(n.id)&&(this.hovered||t<this.symbolUntil);if(this.symbolAt=D?this.symbolAt??t:null,v===`angry`&&t-this.lastPuff>.32){this.lastPuff=t;let e=this.px,n=e*.27,r=Math.random()<.5?-1:1;this.parts.push({kind:`puff`,x:e/2+r*n*.75,y:e*.5-n*.95,vx:r*14,vy:-26,life:0,max:.9,s:.7+Math.random()*.5})}this.sleeping&&t-this.lastZ>1.3&&(this.lastZ=t,this.parts.push({kind:`z`,x:this.px*.66,y:this.px*.3,vx:10,vy:-18,life:0,max:2.4,s:.6+Math.random()*.5})),this.parts=this.parts.filter(t=>(t.life+=e)<t.max);for(let t of this.parts)t.x+=t.vx*e,t.y+=t.vy*e,t.vy+=(t.kind===`z`||t.kind===`puff`?-2:t.kind===`drop`?40:25)*e;this.expr=this.sleeping?`sleep`:v===`content`?`joy`:v||(this.hovered&&this.props.look===`classic`?`joy`:this.mode===`thinking`||t<this.ponderUntil?`think`:this.mode===`speaking`?`talk`:l?`drowsy`:`calm`)}draw(){this.props.look===`visor`?pa(this):ma(this)}time(){return ba()}},Ca=[`glance`,`lookAround`,`hop`,`lean`,`blink`,`wiggle`,`stretch`,`happy`,`wave`,`symbol`,`surprise`,`sigh`,`ponder`];function wa(e){for(let t=e.length-1;t>0;t--){let n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}var Ta=e=>e===`thinking`?`thinking`:e===`speaking`?`speaking`:e===`waiting`?`listening`:`idle`,Ea=new Set,Da=0,Oa=0,ka=0,Aa=!0,ja=0,Ma=!1,Na=!1,Pa=null,Fa=new WeakMap;function Ia(){if(Ma)return;Ma=!0,ya.lastActivity=ba();let e=()=>ya.lastActivity=ba();addEventListener(`mousemove`,t=>{ya.mouse={x:t.clientX,y:t.clientY,t:ba()},e()},{passive:!0}),addEventListener(`keydown`,t=>{e();let n=t.target instanceof HTMLElement?t.target:null;if(!n||!(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n.isContentEditable)||n instanceof HTMLInputElement&&n.type===`password`)return;let r=n.getBoundingClientRect(),i=n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement?n.value.length:(n.textContent??``).length;ya.typing={x:r.left+Math.min(r.width-16,16+i*7.5),y:r.top+Math.min(r.height/2,24)},ya.lastKey=ba()}),addEventListener(`scroll`,()=>(Aa=!0,e()),{passive:!0,capture:!0}),addEventListener(`resize`,()=>Aa=!0),Pa=new IntersectionObserver(e=>e.forEach(e=>{let t=Fa.get(e.target);t&&(t.visible=e.isIntersecting)}),{rootMargin:`80px`})}function La(e){let t=e/1e3,n=Math.min(.05,Oa?t-Oa:.016);if(Oa=t,ka++,Aa||t-ja>.5){for(let e of Ea)e.rect=e.cv.getBoundingClientRect();Aa=!1,ja=t}for(let e of Ea)e.update(n),e.visible&&(e.busy()||(ka+e.slot)%2==0)&&e.draw();Da=Ea.size?requestAnimationFrame(La):0}function Ra(e){Ia(),Na=ta(),Fa.set(e.cv,e),Pa?.observe(e.cv),Ea.add(e),e.rect=e.cv.getBoundingClientRect(),Na?(e.update(0),e.draw()):Da||=requestAnimationFrame(La)}function za(e){Ea.delete(e),Pa?.unobserve(e.cv),!Ea.size&&Da&&(cancelAnimationFrame(Da),Da=0,Oa=0)}function Ba({agent:e,look:t,colours:n,px:r,dark:i,state:a=`idle`,mood:o,label:s,className:c}){let l=(0,L.useRef)(null),u=(0,L.useRef)(null),d=()=>({persona:Rr(e),colour:Vr(e,n),look:t,full:r>=56,dark:i,state:a,mood:o});return(0,L.useEffect)(()=>{let e=new Sa(l.current,r,d());return u.current=e,Ra(e),()=>{za(e),u.current=null}},[r]),(0,L.useEffect)(()=>u.current?.set(d()),[e,t,n,i,a,o?.at]),(0,U.jsx)(`canvas`,{ref:l,onPointerDown:()=>u.current?.poke(),role:s?`img`:void 0,"aria-label":s||void 0,"aria-hidden":!s||void 0,className:P(`block flex-none`,c),style:{width:r,height:r}})}var Va={};try{Va=Object.assign({"./agents/api.svg":Tt,"./agents/browser-agent.svg":Ct,"./agents/case.svg":bt,"./agents/context-engine.svg":At,"./agents/database.svg":Ot,"./agents/explorer.svg":Et,"./agents/healer.svg":Kt,"./agents/knowledge-base.svg":gt,"./agents/model.svg":qt,"./agents/orchestrator.svg":kt,"./agents/pr-reviewer.svg":yt,"./agents/report.svg":N,"./agents/result.svg":Pt,"./agents/rule.svg":an,"./agents/scribe.svg":vt,"./agents/specs.svg":Nt,"./agents/test-finder.svg":on,"./agents/trace.svg":Bt})}catch{}function Ha({id:e,px:t,alt:n,className:r}){let[i,a]=(0,L.useState)(()=>Cr(e));if((0,L.useEffect)(()=>{if(i)return;let t=!0;return Sr().then(n=>{t&&a(n.get(e))}),()=>{t=!1}},[e,i]),!i)return(0,U.jsx)(`span`,{"aria-hidden":!n||void 0,className:P(`inline-block flex-none rounded-md bg-line-soft/60`,r),style:{width:t,height:t}});let o=`url("data:image/svg+xml,${encodeURIComponent(i)}")`;return(0,U.jsx)(`span`,{role:n?`img`:void 0,"aria-label":n||void 0,"aria-hidden":!n||void 0,className:P(`inline-block flex-none bg-current`,r),style:{width:t,height:t,WebkitMask:`${o} center / contain no-repeat`,mask:`${o} center / contain no-repeat`}})}function Ua({agent:e,icon:t,px:n,iconPx:r,frame:i}){let{theme:a}=ea();return Qr(a)!==`icons`&&!Vn(t)?(0,U.jsx)(Ga,{agent:e,px:n,decorative:!0,className:`flex-none`}):(0,U.jsx)(`span`,{className:i,children:(0,U.jsx)(Ga,{agent:e,icon:t,px:r,decorative:!0})})}function Wa(e){let{theme:t,mode:n}=ea();if(Qr(t)===`icons`||$r(t)!==`soft`)return Qn(e).hue;let r=Vr(e,`soft`);return n===`dark`?R(r.h,Math.min(90,r.s),74):R(r.h,Math.min(80,r.s*.85),38)}function Ga({agent:e,icon:t,px:n=20,decorative:r=!1,working:i=!1,state:a,mood:o,className:s}){let{theme:c,mode:l}=ea(),u=Qn(e),d=Qr(c);if(d!==`icons`&&n>=14&&!Vn(t))return(0,U.jsx)(Ba,{agent:e,look:d,colours:$r(c),px:n,dark:l===`dark`,state:a??(i?`thinking`:`idle`),mood:o,label:r?void 0:u.name,className:s});let f=Vn(t)?t:u.icon,p=r?``:u.name;if(Bn(f))return(0,U.jsx)(Ha,{id:f,px:n,alt:p,className:s});let m=zn(f)?f:u.icon,h=Va[`./agents/${m}.svg`];if(!i)return(0,U.jsx)(Rt,{src:h,name:m,px:n,alt:p,className:s});let g=(0,U.jsx)(`img`,{src:h,alt:p,width:n,height:n,draggable:!1,className:`block flex-none object-contain`,style:{width:n,height:n}}),_=sn(m);return(0,U.jsx)(`span`,{"data-flat":_?``:void 0,className:P(`agent-shine`,s),style:{width:n,height:n,"--agent-icon":`url("${h}")`,..._},children:g})}function Ka({open:e,onClose:t,title:n,description:r,children:i,footer:a,wide:o}){let s=(0,L.useRef)(null),c=(0,L.useId)(),l=(0,L.useRef)({title:n,description:r,children:i,footer:a});e&&(l.current={title:n,description:r,children:i,footer:a});let[u,d]=(0,L.useState)(!1),f=e?{title:n,description:r,children:i,footer:a}:l.current;return(0,L.useEffect)(()=>{let t=s.current;if(!t)return;if(e){t.classList.remove(`is-closing`),d(!1),t.open||t.showModal();return}if(!t.open)return;if(window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return t.close();t.classList.add(`is-closing`),d(!0);let n=setTimeout(()=>{t.classList.remove(`is-closing`),d(!1),t.close()},150);return()=>clearTimeout(n)},[e]),(0,U.jsx)(`dialog`,{ref:s,"aria-labelledby":c,onCancel:e=>{e.target===s.current&&(e.preventDefault(),t())},onClick:e=>{e.target===s.current&&t()},className:P(`sheet fixed inset-y-0 right-0 left-auto m-0 h-[calc(100dvh/var(--ui-zoom))] 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||u)&&(0,U.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,U.jsxs)(`div`,{className:`flex items-start gap-4 border-b border-line-soft px-6 pt-6 pb-4`,children:[(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,U.jsx)(`h2`,{id:c,className:`m-0 text-lg font-semibold`,children:f.title}),f.description&&(0,U.jsx)(`p`,{className:`m-0 text-sm leading-relaxed text-muted`,children:f.description})]}),(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Close`,"data-tip":`Close`,onClick:t,className:`-mt-1 -mr-2`,children:(0,U.jsx)(Fe,{size:20,"aria-hidden":`true`})})]}),(0,U.jsx)(`div`,{className:`flex-1 overflow-y-auto px-6 pb-6`,children:f.children}),(0,U.jsx)(`div`,{className:`flex flex-wrap justify-end gap-2 border-t border-line-soft px-6 py-4`,children:f.footer})]})})}function qa({open:e,id:t,className:n,children:r}){let[i,a]=(0,L.useState)(e),[o,s]=(0,L.useState)(e),[c,l]=(0,L.useState)(e);return(0,L.useEffect)(()=>{if(e){a(!0);let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>s(!0))});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}}s(!1),l(!1);let t=setTimeout(()=>a(!1),320);return()=>clearTimeout(t)},[e]),i?(0,U.jsx)(`div`,{id:t,inert:!e||void 0,className:P(`collapse-box`,o&&`is-open`),onTransitionEnd:t=>{t.target===t.currentTarget&&t.propertyName===`grid-template-rows`&&(e?l(!0):a(!1))},children:(0,U.jsx)(`div`,{className:P(`min-h-0 min-w-0`,c?`overflow-visible`:`overflow-hidden`),children:(0,U.jsx)(`div`,{className:n,children:r})})}):null}function Ja({talk:e,disabled:t}){let n=e.ready===!1;return(0,U.jsx)(I,{variant:`ghost`,className:P(`flex-none px-2 text-[16px]`,e.on&&`bg-accent-soft hover:bg-accent-soft`),"aria-label":`Talk`,"aria-pressed":e.on,disabled:n||t&&!e.on,onClick:()=>void e.toggle(),"data-tip":n?`Talk needs a one-time setup: Settings › Voice`:e.on?`Stop listening and speaking`:`Talk to ForgeQE and hear its replies: speech stays on this computer`,children:(0,U.jsx)(Ae,{"aria-hidden":`true`})})}var Ya={checking:`Starting Talk…`,setup:`Talk needs a one-time setup`,installing:`Setting up Talk…`,starting:`Starting the microphone…`,sleeping:`Waiting for the wake word`,listening:`Listening`,hearing:`Hearing you…`,reading:`Writing down what you said…`,thinking:`ForgeQE is working`,question:`ForgeQE is asking you something`,speaking:`Speaking`,error:`Talk stopped`},Xa={checking:`thinking`,setup:`waiting`,installing:`thinking`,starting:`waiting`,sleeping:`idle`,listening:`waiting`,hearing:`waiting`,reading:`thinking`,thinking:`thinking`,question:`waiting`,speaking:`speaking`,error:`failed`};function Za({talk:e,agent:t=qn}){if(!e.on&&e.phase!==`error`)return null;let n=e.phase,r=n===`sleeping`?`Waiting for “${e.wake.phrase}”`:Ya[n],i=n===`error`,a=n===`setup`||n===`installing`,o=e.view,s=o?.setup.lines.at(-1);return(0,U.jsxs)(`div`,{className:`fixed right-4 bottom-4 z-40 flex max-w-[min(420px,calc(100vw-32px))] items-end gap-2`,children:[(0,U.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,children:r}),(i||a)&&(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2 rounded-[14px] border border-line bg-bg px-4 py-2 text-[13px] shadow-menu`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:r}),i&&(0,U.jsx)(`span`,{className:`text-fail [overflow-wrap:anywhere]`,children:e.error||`Talk gave no reason.`}),n===`installing`&&s&&(0,U.jsx)(`span`,{className:`truncate text-muted`,children:s}),n===`setup`&&o&&(0,U.jsxs)(I,{size:`sm`,variant:`primary`,onClick:()=>void e.install(),"data-tip":`Free, open-source speech models (Whisper and Kokoro), downloaded once into ForgeQE's folder`,children:[(0,U.jsx)(nt,{"aria-hidden":`true`}),`Set up (`,o.setupMb,` MB)`]}),i&&(0,U.jsxs)(`span`,{className:`flex gap-2`,children:[(0,U.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:()=>void e.toggle(),children:[(0,U.jsx)(Ae,{"aria-hidden":`true`}),`Try again`]}),(0,U.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:e.dismiss,children:[(0,U.jsx)(Fe,{"aria-hidden":`true`}),`Close`]})]})]}),(0,U.jsx)(`button`,{type:`button`,onClick:()=>void e.toggle(),"aria-label":i?`Talk stopped`:`${r}. Stop Talk`,"data-tip":i?`Talk stopped`:`Stop Talk`,"data-tip-side":`left`,className:`flex size-20 flex-none cursor-pointer items-center justify-center rounded-full border border-line bg-bg p-1 shadow-composer transition-colors hover:bg-surface-muted`,children:(0,U.jsx)(Ga,{agent:t,px:64,decorative:!0,working:!i&&n!==`sleeping`,state:Xa[n]})})]})}function Qa({question:e,onAnswer:t,raised:n}){return(0,U.jsxs)(`div`,{role:`alertdialog`,"aria-label":`Talk is asking`,"aria-describedby":`talk-question`,className:P(`fixed right-4 z-40 flex w-[min(360px,calc(100vw-32px))] flex-col gap-2 rounded-[14px] border border-line bg-bg px-4 py-4 shadow-menu`,n?`bottom-28`:`bottom-4`),children:[(0,U.jsx)(`span`,{id:`talk-question`,className:`text-[13px] leading-relaxed text-ink`,children:e}),(0,U.jsxs)(`span`,{className:`flex justify-end gap-2`,children:[(0,U.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:()=>t(`no`),children:[(0,U.jsx)(Fe,{"aria-hidden":`true`}),`No`]}),(0,U.jsxs)(I,{size:`sm`,variant:`primary`,onClick:()=>t(`yes`),children:[(0,U.jsx)(i,{"aria-hidden":`true`}),`Yes`]})]})]})}var $a=`forgeqe.talk.carry`,eo=/^[a-f0-9]{8,64}$/;function to(e){if(eo.test(e))try{sessionStorage.setItem($a,e)}catch{}}function no(e){try{let t=sessionStorage.getItem($a);return t!==null&&(sessionStorage.removeItem($a),t===e)}catch{return!1}}var ro={pins:`forgeqe-pinned`,recents:`forgeqe-recent-pages`,favourites:`forgeqe-agent-favourites`},io=null;function ao(){return io||=(async()=>{let e;try{e=await $t(`GET`,`/api/prefs`)}catch{return}for(let t of Object.keys(ro)){let n=ro[t];if(Array.isArray(e[t]))try{localStorage.getItem(n)!==JSON.stringify(e[t])&&(localStorage.setItem(n,JSON.stringify(e[t])),window.dispatchEvent(new Event(n)))}catch{}else{let e=null;try{e=JSON.parse(localStorage.getItem(n)||`null`)}catch{}Array.isArray(e)&&e.length&&$t(`POST`,`/api/prefs`,{name:t,list:e}).catch(()=>{})}}})(),io}function oo(e){ao().then(()=>{let t=[];try{t=JSON.parse(localStorage.getItem(ro[e])||`[]`)}catch{}Array.isArray(t)&&$t(`POST`,`/api/prefs`,{name:e,list:t}).catch(()=>{})})}var G=(e,t,n,r,i,a={})=>({id:e,label:t,about:n,path:r,icon:i,...a}),K=(e,t,n,r)=>G(`settings-${e}`,t,n,[`settings`,e],r),so=[{id:`agents`,label:`Agents`,about:`Chat with ForgeQE, and find, make and schedule its agents.`,icon:`agents-hub`,agents:[`orchestrator`,`helper`,`research`,`refine`],areas:[{id:`chat`,label:`Chat`,about:`Ask and delegate in plain words.`,items:[G(`new-chat`,`New chat`,`Start a conversation with any agent`,[],`orchestrator`,{words:`home ask message`}),G(`chats`,`Chat history`,`Every earlier chat`,[`chats`],`chat`,{words:`conversations history`})]},{id:`catalogue`,label:`Built-in agents`,about:`The agents ForgeQE comes with.`,items:[G(`agents`,`All agents`,`Every agent, with favourites on top`,[`agents`],`board`),G(`agents-assisted`,`Advisers`,`Help you decide: review, refine and rate`,[`agents`,`category`,`assisted`],`board`),G(`agents-native`,`Builders`,`Make the work: plans, tests and diagnoses`,[`agents`,`category`,`native`],`board`),G(`agents-agentic`,`Operators`,`Act on their own across many steps`,[`agents`,`category`,`agentic`],`board`)]},{id:`custom`,label:`Custom agents`,about:`Agents your team makes for its own work.`,items:[G(`agents-custom`,`Custom agents`,`Drafts, approved versions and their runs`,[`agents`,`category`,`custom`],`board`),G(`agents-new`,`Make an agent`,`The agent builder, step by step`,[`agents`,`custom`,`new`],`wand`)]},{id:`background`,label:`In the background`,about:`Work that runs on a schedule.`,items:[G(`jobs`,`Jobs and schedules`,`Scheduled runs and their history`,[`jobs`],`speed`,{also:[[`schedules`]],words:`schedule cron nightly`})]}]},{id:`knowledge`,label:`Knowledge`,about:`What the agents know about your product, and the rules they follow.`,icon:`knowledge-base`,agents:[`search`,`knowledge-agent`],areas:[{id:`product`,label:`Product understanding`,about:`Your product as the agents read it.`,items:[G(`knowledge`,`Knowledge`,`Search everything the agents know`,[`knowledge`],`knowledge-base`),G(`product`,`Product landscape`,`The systems and how they connect`,[`product`],`columns`),G(`product-services`,`Services`,`Each repository's services`,[`product`,`services`],`columns`,{also:[[`product`,`systems`],[`product`,`links`]]}),G(`product-code`,`Code map`,`Repository structure`,[`product`,`code`],`code`),G(`product-business`,`Business view`,`Capabilities, journeys, rules and glossary`,[`product`,`business`],`stories`)]},{id:`memory`,label:`Memory`,about:`What the agents learnt from earlier work.`,items:[G(`memory`,`Memory`,`Flows and pages remembered per site and app`,[`memory`],`architecture`)]},{id:`behaviour`,label:`Agent behaviour`,about:`How the agents work in this project.`,items:[G(`skills`,`Skills`,`Your conventions, frameworks and apps`,[`skills`],`feature`),G(`prompts`,`Prompts`,`The instructions each agent starts from`,[`prompts`],`stories`),G(`guardrails`,`Guardrails`,`Rules every chat and schedule follows`,[`guardrails`],`shield`)]}]},{id:`quality`,label:`Quality Engineering`,about:`Design, automate, run and analyse tests across web, API, mobile and desktop.`,icon:`quality-engineering`,agents:[`browser`,`desktop`,`exploration`,`planning`,`persona`,`business`,`coding`,`healing`,`migration`,`tosca`,`api`,`api-planning`,`review`],areas:[{id:`design`,label:`Test design`,about:`Decide what to test.`,items:[G(`test-cases`,`Test cases`,`From your test case system`,[`test-cases`],`ticket`),G(`explore`,`Exploratory`,`Charters and sessions that look for bugs`,[`explore`],`sparkle`,{words:`exploratory explore charter session find bugs`}),G(`business`,`Business assurance`,`What people could make the business lose`,[`agents`,`business`],`info`,{words:`business assurance risk misuse fraud refund coupon hypotheses investigations findings`})]},{id:`automation`,label:`Automation`,about:`Turn journeys and old suites into tests.`,items:[G(`record`,`Record`,`Record a journey and make it a test`,[`record`],`screenshot`),G(`desktop`,`Desktop apps`,`Explore, record and replay Windows apps`,[`desktop`],`desktop`,{words:`desktop windows thick client workflow replay heal ufo`}),G(`migration`,`Migration`,`Selenium and Cypress suites to Playwright`,[`migration`],`table`,{words:`migration convert selenium cypress suites`}),G(`tosca`,`Tosca`,`Tosca exports to code`,[`tosca`],`network`)]},{id:`execution`,label:`Execution`,about:`Run tests and suites.`,items:[G(`regression`,`Regression packs`,`Build, run and heal a pack`,[`regression`],`replay`),G(`runs`,`Runs`,`Every run, with what it did`,[`runs`],`terminal`,{words:`sessions history chats`})]},{id:`specialised`,label:`Specialised testing`,about:`APIs, and what every page should be.`,items:[G(`api-tests`,`API tests`,`Contracts, scenarios and the workbench`,[`api-tests`],`plug`),G(`quality`,`Quality`,`Accessibility, performance and visual, together`,[`quality`],`columns`,{words:`a11y wcag core web vitals`}),G(`accessibility`,`Accessibility`,`WCAG checks on the pages a run visits`,[`accessibility`],`accessibility`),G(`performance`,`Performance`,`Core Web Vitals of each page`,[`performance`],`pulse`),G(`visual`,`Visual`,`Screenshots against baselines`,[`visual`],`visual`)]},{id:`insights`,label:`Insights`,about:`What the runs tell you.`,items:[G(`reports`,`Execution reports`,`One run in detail`,[`reports`],`report`),G(`reports-project`,`Project report`,`Across all runs`,[`reports`,`project`],`report`),G(`run-diff`,`Run diff`,`Two runs side by side`,[`run-diff`],`code`,{words:`compare runs side by side difference`}),G(`flaky`,`Flaky tests`,`Unstable tests and quarantine`,[`flaky`],`bug`,{words:`flaky quarantine heal unstable intermittent`}),G(`test-debt`,`Test debt`,`Gaps, duplicates and tests that never fail`,[`test-debt`],`folder`,{words:`coverage gaps untested duplicate tests never fail not automated`})]}]},{id:`data`,label:`Data`,about:`Ask your databases questions, check the data and follow it through flows.`,icon:`database`,agents:[`db`],areas:[{id:`databases`,label:`Databases`,about:`Read and understand your data.`,items:[G(`data`,`Data agent`,`Ask for queries, checks and test scripts`,[`data`],`container`,{words:`databases db data flows`}),G(`data-databases`,`Databases`,`Each database and its tables`,[`data`,`databases`],`database`),G(`data-ask`,`Ask`,`Questions about the data in plain words`,[`data`,`ask`],`chat`),G(`data-flows`,`Data flows`,`How data moves between systems`,[`data`,`flows`],`route`)]},{id:`test-data`,label:`Test data`,about:`Data for tests.`,items:[G(`test-data`,`Test data`,`Rows found or made for tests`,[`test-data`],`flask`),G(`test-data-specs`,`Data specs`,`Specs new rows are made from`,[`test-data`,`specs`],`specs`)]}]},{id:`delivery`,label:`Delivery & Operations`,about:`From a change, to a release, to production.`,icon:`rocket`,agents:[`pr-review`,`root-cause`],areas:[{id:`change`,label:`Change`,about:`What a change touches.`,items:[G(`impact`,`Change impact`,`The tests and areas a change reaches`,[`impact`],`board`)]},{id:`release`,label:`Release`,about:`Decide when to ship.`,items:[G(`readiness`,`Release readiness`,`Go or no-go, with the evidence`,[`readiness`],`shield`,{words:`release readiness go no-go sign off verdict`}),G(`flags`,`Feature flags`,`Flag combinations to cover`,[`flags`],`feature`,{words:`feature flags launchdarkly unleash toggles combinations matrix`})]},{id:`production`,label:`Production`,about:`What happens live.`,items:[G(`production`,`Production signals`,`Errors and crashes from your monitoring`,[`production`],`web`,{words:`production errors sentry datadog app insights crashes`})]}]},{id:`assurance`,label:`AI Assurance`,about:`Evaluate, govern and improve AI agents: ForgeQE's and your teams'.`,icon:`ai-assurance`,agents:[`evaluation`,`model-rating`],areas:[{id:`evaluation`,label:`Evaluation`,about:`How the agents did.`,items:[G(`evidence`,`Overview`,`Runs judged and where trust stands`,[`evidence`],`flask`),G(`evidence-runs`,`Agent runs`,`Every run with its verdict`,[`evidence-runs`],`scroll`),G(`evidence-review`,`Review queue`,`Runs waiting for a person`,[`evidence-review`],`ticket`)]},{id:`governance`,label:`Governance`,about:`What the agents must do, and when a version may ship.`,items:[G(`evidence-contracts`,`Contracts`,`Each agent's contract`,[`evidence-contracts`],`file`,{words:`contracts governance`}),G(`evidence-releases`,`Releases`,`Release gates per version`,[`evidence-releases`],`history`)]},{id:`improvement`,label:`Improvement`,about:`Make the agents better over time.`,items:[G(`evidence-learn`,`Learn`,`Causes, and fixes proven on replays`,[`evidence-learn`],`replay`),G(`evidence-monitor`,`Monitor`,`Baselines and trust`,[`evidence-monitor`],`pulse`)]}]},{id:`admin`,label:`Administration`,about:`Settings, arranged in the same areas as the product.`,icon:`desktop`,areas:[{id:`project`,label:`Project`,about:`This project and the places the agents work.`,items:[K(`setup`,`Set up`,`The project folder and this computer`,`folder`),K(`environments`,`Environments`,`Where the agents work, and the apps in each`,`layers`),K(`signins`,`Sign-ins`,`Apps the agents sign in to`,`key`),K(`secrets`,`Secrets`,`Passwords, keys, repository tokens, and vaults to pull them from`,`shield`),K(`appearance`,`Appearance`,`Logo, name and colours`,`palette`),K(`voice`,`Voice`,`Talk's language, voice and when a pause sends`,`chat`),K(`files`,`Settings as text`,`forgeqe.yaml, llms.json and env.yaml as they are`,`file`)]},{id:`ai`,label:`AI`,about:`Models, agents and their tools.`,items:[K(`models`,`Models`,`The models the agents use`,`model`),K(`routing`,`Routing`,`Which model each kind of work gets`,`route`),K(`agents`,`Agents`,`Names, instructions, custom agents and tools`,`board`),K(`mcp`,`MCP servers`,`More tools for the agents`,`server`)]},{id:`connections`,label:`Connections`,about:`Other systems ForgeQE talks to.`,items:[K(`integrations`,`Integrations`,`Test case systems, bugs and browser grids`,`plug`),K(`notifications`,`Notifications`,`Teams channels and email lists`,`bell`),K(`evidence`,`Product sources`,`Repositories, requirements and documents`,`knowledge-base`)]},{id:`quality`,label:`Quality engineering`,about:`How tests are written and run.`,items:[K(`tests`,`Code`,`Where passed runs become tests`,`code`),K(`runs`,`Reports and memory`,`Exports, suites, flaky tests and readiness`,`report`),K(`registry`,`Replays`,`Repeat a passed test without the AI`,`replay`),K(`parallel`,`Parallel execution`,`How much runs at once`,`speed`),K(`browser`,`Browser`,`Where and how the browser runs`,`web`),K(`mobile`,`Mobile`,`Android and iOS apps`,`mobile`),K(`desktop`,`Desktop`,`Windows desktop apps`,`desktop`),K(`containers`,`Containers`,`Services for test runs`,`container`),K(`quality`,`Quality checks`,`Accessibility, performance and visual`,`columns`)]},{id:`data`,label:`Data and operations`,about:`Databases and checks on a schedule.`,items:[K(`databases`,`Databases`,`Databases the agents may read or write`,`database`),K(`monitor`,`Monitor`,`Checks on a schedule, and their alerts`,`pulse`)]},{id:`activity`,label:`Activity`,about:`What happened, and what it cost.`,items:[K(`logs`,`Logs`,`Each chat, run and suite`,`scroll`),K(`audit`,`Audit`,`Who did and changed what`,`history`),G(`cost`,`Cost`,`Spend by model, agent and run`,[`cost`],`coins`,{words:`cost spend tokens models price usage`}),K(`tokenomics`,`Tokenomics`,`Budgets and where the tokens went`,`coins`),K(`generated`,`Generated code`,`How much of it is still in the repository`,`wand`)]},{id:`help`,label:`Help`,about:`About ForgeQE.`,items:[K(`features`,`What's ready`,`What ForgeQE can do here`,`feature`),K(`whats-new`,`What's new`,`What each release added`,`rocket`),K(`about`,`About ForgeQE`,`Version, updates and guides`,`info`),K(`report`,`Report a problem`,`Tell the ForgeQE team`,`bug`)]}]}],co=so.flatMap(e=>e.areas.flatMap(t=>t.items.map(n=>({item:n,category:e,area:t})))),lo=e=>F(...e.path),uo=e=>F(`browse`,e.id),fo=(e,t)=>F(`browse`,e.id,t.id),po=(e,t)=>t.length<=e.length&&t.every((t,n)=>e[n]===t);function mo(e,t){return e.path.length?Math.max(...[e.path,...e.also||[]].map(e=>po(t,e)?e.length:0)):+!t.length}function ho(e){let t,n=0;for(let r of co){let i=mo(r.item,e);i>n&&([t,n]=[r,i])}return t}function go(e){if(e[0]!==`browse`)return{};let t=so.find(t=>t.id===e[1]);return{category:t,area:t?.areas.find(t=>t.id===e[2])}}var _o=`forgeqe-pinned`,vo=`forgeqe-pinned`;function yo(e,t){try{let n=JSON.parse(e||`[]`);if(!Array.isArray(n))return[];let r=new Set(co.map(e=>e.item.id));return[...new Set(n.filter(e=>typeof e==`string`&&r.has(e)))].slice(0,t)}catch{return[]}}var bo=e=>yo(e,8);function xo(){let e=()=>{try{return bo(localStorage.getItem(_o))}catch{return[]}},[t,n]=(0,L.useState)(e);return(0,L.useEffect)(()=>{let t=()=>n(e());return window.addEventListener(vo,t),window.addEventListener(`storage`,t),()=>{window.removeEventListener(vo,t),window.removeEventListener(`storage`,t)}},[]),{pins:t,toggle:e=>{let r=t.includes(e)?t.filter(t=>t!==e):[...t,e].slice(-8);n(r);try{localStorage.setItem(_o,JSON.stringify(r)),window.dispatchEvent(new Event(vo))}catch{}oo(`pins`)}}}var So=`forgeqe-recent-pages`,Co=`forgeqe-recent-pages`,wo=e=>yo(e,12);function To(e,t){let n=ho(t);return!n||!n.item.path.length?e:[n.item.id,...e.filter(e=>e!==n.item.id)].slice(0,12)}function Eo(){try{return wo(localStorage.getItem(So))}catch{return[]}}function Do(e){let t=Eo(),n=To(t,e);if(n.join()!==t.join()){try{localStorage.setItem(So,JSON.stringify(n)),window.dispatchEvent(new Event(Co))}catch{}oo(`recents`)}}function Oo(){let[e,t]=(0,L.useState)(Eo);return(0,L.useEffect)(()=>{let e=()=>t(Eo());return window.addEventListener(Co,e),window.addEventListener(`storage`,e),()=>{window.removeEventListener(Co,e),window.removeEventListener(`storage`,e)}},[]),e}function ko(e,t,n){let r=t=>t.map(t=>co.find(n=>n.item.id===t&&n.category.id===e.id)?.item).filter(e=>!!e);return{pinned:r(t),recent:r(n.filter(e=>!t.includes(e))).slice(0,5)}}function Ao(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean);if(!n.length)return e.filter(e=>e.kind!==`field`).slice(0,40);let r=e=>{let t=`${e.label} ${e.meta} ${e.words||``}`.toLowerCase();return n.every(e=>t.includes(e))},i=e=>(e.label.toLowerCase().startsWith(n[0])?0:4)+[`page`,`agent`,`setting`,`field`].indexOf(e.kind);return e.filter(r).map((e,t)=>({c:e,i:t,r:i(e)})).sort((e,t)=>e.r-t.r||e.i-t.i).slice(0,40).map(e=>e.c)}function jo(e,t,n){if(!n.trim())return[];let r=[],i=new Map;for(let t of e.areas)for(let e of t.items)r.push({id:e.id,label:e.label,meta:t.label,href:lo(e),words:[e.about,e.words].filter(Boolean).join(` `),kind:`page`}),e.path[0]===`settings`&&e.path.length===2&&i.set(e.path[1],{area:t.label,label:e.label});let a=t.flatMap(e=>{let t=i.get(e.section);return t?[{id:`field:${e.section}:${e.key}`,label:e.label,meta:`${t.area} › ${t.label} · ${e.key}`,href:F(`settings`,e.section),kind:`field`}]:[]});return Ao([...r,...a],n)}function Mo(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean),r=t=>{let n=Ao(e,t);return n.find(e=>e.kind!==`field`)??n[0]},i=r(n.join(` `));if(i)return i;let a=n[0]??``;if(a.length<4)return;let o=RegExp(`\\b${a.replace(/[^a-z0-9]/g,``)}`);for(let e=n.length-1;e>=1;e--){let t=r(n.slice(0,e).join(` `));if(t&&o.test(t.label.toLowerCase()))return t}}var q=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{},J=e=>typeof e==`string`?e:e==null?``:String(e),No=(e,t=400)=>e.length>t?`${e.slice(0,t-1)}…`:e,Po=e=>typeof e==`number`?` in ${Math.round(e/1e3)}s`:``;function Y(e,t=400){return No(e.replace(/\s+/g,` `).trim(),t).replace(/([\\`*_[\]<>#|~!])/g,`\\$1`)}function Fo(e){let t=e.replace(/\s+/g,` `).trim();if(!t)return``;let n=t.includes("`")?"``":"`";return`${n}${n==="``"?` `:``}${t}${n==="``"?` `:``}${n}`}function Io(e,t){return/^https?:\/\/[^\s)]+$/i.test(t)?`[${Y(e||t,120)}](${t})`:Y(e)}var Lo=e=>[Fo(J(q(e).id)),Y(J(q(e).title),200)].filter(Boolean).join(` `);function Ro(e){return e.replace(/<!--[\s\S]*?(?:-->|$)/g,``).trim()}function zo(e){return e.replace(/\[((?:\\.|[^\]\\])*)\]\(https?:\/\/[^\s)]+\)/g,`$1`).replace(/\\(.)/g,`$1`).replace(/[*`]/g,``)}var X=(e,t)=>({tone:e,kind:`item`,md:t}),Bo=(e,t)=>({tone:e,kind:`sub`,md:t});function Vo(e,t=``){let n=t||(e.agent&&e.agent!==`forgeqe`?`**${Y(J(e.agent))}:** `:``);switch(e.kind){case`info`:return X(`info`,`${n}${Y(J(e.text))}`);case`start`:return X(`dim`,`${n}→ ${Fo(J(e.tool))}${e.text&&e.text!==e.tool?` ${Y(J(e.text),200)}`:``}`);case`tool`:{let t=q(e.file);return X(e.ok===!1?`warn`:`dim`,`${n}${e.ok===!1?`⚠`:`✓`} ${Y(J(e.text)||J(e.tool),240)}${t.path?` (${Y(J(t.action))} ${Fo(J(t.path))})`:``}`)}case`say`:{let t=Ro(J(e.text));return t?X(`say`,`${n}*${Y(t)}*`):null}case`test`:return Number(e.attempt)>0?X(e.ok?`ok`:`fail`,`${n}${e.ok?`✓`:`✗`} **Test, attempt ${Y(J(e.attempt))}:** ${Y(J(e.text),240)}`):X(e.ok?`ok`:`fail`,`${n}${e.ok?`✓`:`✗`} ${Y(J(e.text),240)}`);case`plan`:{let t=Array.isArray(e.items)?e.items.map(q):[],r=t.find(e=>e.status===`in_progress`);return X(`info`,`${n}**Plan:** ${t.filter(e=>e.status===`completed`).length} of ${t.length} done${r?`; now: ${Y(J(r.text))}`:``}`)}case`review`:return X(e.approved?`ok`:`warn`,`${n}**Review, attempt ${Y(J(e.attempt))}:** ${e.approved?`approved`:`changes asked`}. ${Y(J(e.summary),240)}`);case`attempt`:return X(`warn`,`${n}**Attempt ${Y(J(e.attempt))} of ${Y(J(e.max))}:** ${Y(J(e.why),240)}`);case`answer`:return X(`dim`,`${n}Attempt ${Y(J(e.attempt))}: ${Y(J(e.notes)||`changed ${(Array.isArray(e.changed)?e.changed:[]).map(J).join(`, `)}`,240)}`);case`context`:return e.compacted?X(`info`,`${n}Context compacted: the conversation was summarised to make room.`):null;default:return null}}function Ho(e,t=``){switch(e.type){case`log`:return X(e.level===`error`?`fail`:e.level===`warn`?`warn`:`dim`,`${t}${e.level===`warn`||e.level===`error`?`⚠ `:``}${Y(J(e.text))}`);case`step`:return X(`dim`,`${t}**Step ${Y(J(e.step))}** · ${e.source===`memory`?`from memory`:Y(J(e.category))} · ${Io(J(e.title)||`untitled`,J(e.url))}`);case`memory`:return X(`info`,`${t}↻ ${Y(J(e.text))}`);case`thought`:return Bo(`think`,`*${Y(J(e.text))}*`);case`outcome`:return Bo(e.ok?`ok`:`fail`,`${e.ok?`✓`:`✗`} ${Y(J(e.text),300)}`);case`done`:{let n=q(e.result);return X(n.status===`complete`?`ok`:`fail`,`${t}**${Y(J(n.status))}:** ${Y(J(n.summary))}`)}case`code`:return Vo(e,t);default:return null}}function Uo(e){switch(e.type){case`run-start`:return{tone:`info`,kind:`head`,md:`Browser run: ${Y(J(e.goal),200)}${e.url?` · ${Io(J(e.url).replace(/^https?:\/\//,``),J(e.url))}`:``}`};case`run-event`:return Ho(q(e.event));case`run-done`:{let t=q(e.result),n=!e.error&&(t.outcome===`passed`||!t.outcome&&t.status===`complete`);return X(n?`ok`:`fail`,`${n?`✓`:`✗`} **Run ${n?`passed`:`failed`}**${Po(e.ms)}: ${Y(J(e.error)||J(t.summary))}${e.runDir?` · ${Fo(J(e.runDir))}`:``}`)}case`suite-start`:return{tone:`info`,kind:`head`,md:`Suite: ${(Array.isArray(e.cases)?e.cases:[]).length} cases, ${Y(J(e.parallel))} at once`};case`suite-event`:{let t=q(e.event);if(t.type===`case-start`)return X(`info`,`**Case ${Number(t.index)+1} of ${Y(J(t.total))}:** ${Lo(t.case)}`);if(t.type===`case-event`)return Ho(q(t.event),`${Fo(J(q(t.case).id))} `);if(t.type===`case-done`){let e=q(t.result);return X(e.status===`passed`?`ok`:`fail`,`${e.status===`passed`?`✓`:`✗`} ${Lo(e.case)}: **${Y(J(e.status))}**${Po(e.ms)}${e.summary?`. ${Y(J(e.summary),240)}`:``}`)}return t.type===`code-start`?X(`info`,`${Fo(J(q(t.case).id))} writing its test`):t.type===`writeback`?X(`dim`,`Posted the result back: ${Y(JSON.stringify(t.item),240)}`):null}case`suite-done`:{let t=(Array.isArray(q(e.suite).results)?q(e.suite).results:[]).map(q),n=t.filter(e=>e.status===`passed`).length;return X(n===t.length?`ok`:`fail`,`**Suite: ${n} of ${t.length} passed**${Po(q(e.suite).ms)}`)}case`info`:return X(e.ok===!1?`fail`:e.ok===!0?`ok`:`info`,Y(J(e.text)));case`agent`:return Vo(q(q(e.event)),`**Quill:** `);case`code-start`:return{tone:`info`,kind:`head`,md:`Writing a test: ${Y(J(e.goal),200)}`};case`code-done`:{let t=J(q(e.result).status);return e.error?X(`fail`,`✗ **Test not written**${Po(e.ms)}: ${Y(J(e.error),240)}`):!t||t===`passed`?X(`ok`,`✓ **Test written**${Po(e.ms)}`):t===`stopped`?X(`warn`,`**Test writing stopped**${Po(e.ms)}`):X(`fail`,`✗ **Test not finished**${Po(e.ms)} (${Y(t,40)})`)}case`card`:{let t=q(e.card),n=(Array.isArray(t.body)?t.body:[]).map(J).filter(Boolean);return X(t.status===`ok`?`ok`:t.status===`fail`?`fail`:`info`,`**${Y(J(t.title))}**${t.stats?` · ${Y(J(t.stats))}`:``}${n.length?`: ${Y(n.join(`; `),300)}`:``}`)}case`report`:return X(`ok`,`✓ Report saved: ${Y(J(e.title))}`);case`call-start`:return X(`dim`,`→ ${Y(J(e.text),240)}`);case`call`:return X(e.ok===!1?`warn`:`dim`,`${e.ok===!1?`⚠`:`✓`} ${Y(J(e.text),240)}`);default:return null}}function Wo(e){let t=J(e.at)||J(e.t),n=null;switch(e.type){case`user`:n=X(`you`,`**You:** ${Y(J(e.text),240)}`);break;case`agent`:n=Vo(q(e.event));break;case`tool`:n=Uo(q(e.event));break;case`ask`:n=X(`you`,`**Asked:** ${Y(J(q(e.question).title))}`);break;case`wait`:n=X(`you`,`**Waiting for you:** ${Y(J(e.prompt))}`);break;case`answered`:n=X(`you`,`**You:** ${e.label===void 0?e.ok?`done, continue`:`cancel`:Y(J(e.label))}`);break;case`turn_done`:n=X(e.outcome===`done`?`ok`:e.outcome===`stopped`?`warn`:`fail`,`**${e.outcome===`done`?`Done`:e.outcome===`stopped`?`Stopped`:e.outcome===`needs_input`?`Needs your input`:`Failed`}**${e.error?`: ${Y(J(e.error),300)}`:``}`);break;case`settings`:n=X(`you`,`**Settings:** browser ${e.headed?`shown`:`headless`}, ${e.writeTests?`passed runs become tests`:`no tests written`}`);break;case`model`:n=X(`you`,`**Model:** ${Y(J(q(e.profile).name),80)}`);break;case`settings_applied`:n=X(`you`,`**Settings:** carried on with the settings as they are on disk now`);break;case`stderr`:n={tone:`dim`,kind:`out`,md:J(e.text)};break;case`error`:n=X(`warn`,`⚠ ${Y(J(e.message))}`);break;case`fatal`:n=X(`fail`,`✗ **ForgeQE cannot go on:** ${Y(J(e.message))}`);break;case`exit`:n=X(e.code===0?`dim`:`fail`,`ForgeQE stopped${e.code!==null&&e.code!==void 0?` (exit ${Y(J(e.code))})`:``}${e.message?`: ${Y(J(e.message))}`:``}`)}return n?{at:t,...n,plain:n.kind===`out`?n.md:zo(n.md)}:null}function Go(e,t){if(!e||!t)return``;let n=Math.max(0,Math.round((Date.parse(t)-Date.parse(e))/1e3));return Number.isFinite(n)?`+${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`:``}function Ko(e,t,n){let r=n?[`## ${Y(n,200)}`,``]:[],i=[],a=()=>{if(!i.length)return;let e=Math.max(2,...i.map(e=>Math.max(0,...(e.match(/`+/g)||[]).map(e=>e.length)))),t="`".repeat(e+1);r.push(``,`${t}text`,...i,t,``),i=[]};for(let n of e){let e=Go(t,n.at),o=e?`\`${e}\``:``;n.kind===`out`?i.push(e?`${e} ${n.md}`:n.md):(a(),n.kind===`head`?r.push(``,`#### ${n.md}${o?` ${o}`:``}`,``):n.kind===`sub`?r.push(` - ${n.md}`):r.push(`- ${o?`${o} `:``}${n.md}`))}return a(),r.join(`
3
3
  `).replace(/\n{3,}/g,`
4
4
 
5
5
  `).trim()+`
6
- `}var Ko=[`open`,`open_run`,`open_chat`,`search`,`back`,`new_chat`],qo=/^(?:|latest|last|newest|most recent)$/i,Jo=/^[A-Za-z0-9_-]{1,80}$/,Yo=e=>e.replace(/[\u0000-\u001f\u007f]+/g,` `).trim().slice(0,200);function Xo(e){if(!e||typeof e!=`object`)return null;let t=e;if(typeof t.id!=`string`||!Jo.test(t.id)||!Ko.includes(t.action))return null;let n=typeof t.what==`string`?Yo(t.what):void 0;return{id:t.id,action:t.action,...n?{what:n}:{}}}var Zo=e=>e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,``);function Qo(e,t){let n=Zo(t),r=n.length>=4?e.filter(e=>e.kind!==`field`&&Zo(e.label)===n):[];return r.length===1?r[0]:void 0}function $o(e,t,n){let r=/^\s*settings\s*[›>:/-]\s*(.+)$/i.exec(t);if(r&&!/\bsettings?\b/i.test(n))return jo(e.filter(e=>e.kind!==`setting`&&e.kind!==`field`),r[1].trim().toLowerCase())}var es=/^\s*(?:settings\s*[›>:/-]\s*(.+)|(?:the\s+)?(.+?)\s+settings?)\s*$/i;async function ts(e,t){let n=(e.what||``).trim();switch(e.action){case`open`:{let e=await t.commands(),r=es.exec(n),i=r?(r[1]||r[2]||``).trim():``,a=n?i&&jo(e.filter(e=>e.kind===`setting`),i.toLowerCase())||jo(e,n.toLowerCase())||Qo(e,n):void 0;return a?t.go(a.href)===!1?`${a.label} is already open.`:`Opened ${a.label}.`:`Nothing in ForgeQE is called “${n}”.`}case`open_run`:{let e=await t.runs(),r=qo.test(n)?e[0]:e.find(e=>e.name===n)??e.find(e=>e.title.toLowerCase()===n.toLowerCase());return r?(t.go(F(`runs`,encodeURIComponent(r.name))),`Opened the run “${r.title||r.name}”.`):e.length?`No run is called “${n}”.`:`There are no runs yet.`}case`open_chat`:{let e=await t.chats(),r=qo.test(n)?e.find(e=>e.id!==t.current):e.find(e=>e.id===n)??e.find(e=>e.title.toLowerCase()===n.toLowerCase());return r?(t.go(F(`chats`,r.id)),`Opened the chat “${r.title}”.`):`No chat is called “${n}”.`}case`search`:return n?(t.find(n),`Searching for “${n}”.`):`Nothing to search for.`;case`back`:return t.back(),`Went back.`;case`new_chat`:return t.go(F()),`Opened a new chat.`}}var ns=e=>{let t=Z(e);return typeof t.input==`number`&&typeof t.output==`number`?{input:t.input,output:t.output,cached:typeof t.cached==`number`?t.cached:void 0}:void 0};function rs(e,t){let n=(e?.cached||0)+(t?.cached||0);return{input:(e?.input||0)+(t?.input||0),output:(e?.output||0)+(t?.output||0),...n?{cached:n}:{}}}var Z=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{},Q=e=>typeof e==`string`?e:e==null?``:String(e),is=[[/^(product_(knowledge|docs|code|runs?)|services|database_schema)$/,`Product knowledge`],[/^page_memory$/,`Memory`],[/^playbook$/,`Playbook`],[/^(requirements_file|trace_criteria)$/,`Requirements`],[/^read_confluence$/,`Confluence pages`],[/^read_mapping_file$/,`Mapping file`]],as={github:`GitHub`,gitlab:`GitLab`,azure_devops:`Azure DevOps`,atlassian:`Jira`,confluence:`Confluence`,notify:`Notifications`,sentry:`Sentry`,browserstack:`BrowserStack`,testmu:`TestMu`,dataverse:`Dataverse`,aws:`AWS`,azure:`Azure`,gcp:`Google Cloud`,postman:`Postman`},os=20;function ss(e,t,n){let r=(e,t)=>{t&&e.length<os&&!e.includes(t)&&e.push(t)},i=t.toLowerCase();if(i===`skill`){let t=(n||``).trim();/^[\w.:-]{1,64}$/.test(t)&&r(e.skills,t);return}let a=i.replace(/^forgeqe_/,``),o=is.find(([e])=>e.test(a));if(o)return r(e.knowledge,o[1]);if(Object.hasOwn(as,a))return r(e.systems,as[a]);let s=ys.find(([e])=>e.test(a))?.[1];s&&r(e.systems,s)}function cs(e,t){let n=e=>typeof e==`number`&&Number.isFinite(e)&&e>=0?e:0,r=e.sections??=[];for(let e of Array.isArray(t.sections)?t.sections:[]){let t=Q(e).replace(/\s+/g,` `).trim().slice(0,160);t&&r.length<os&&!r.includes(t)&&r.push(t)}let i=e.text??={sent:0,whole:0};i.sent+=n(t.sent),i.whole+=n(t.whole)}var ls=[[/find_test_cases|story_test_cases|check_test_cases|list_sprints/,`Finding test cases`,`searching`],[/environment|logins/,`Preparing the environment`,`handing`],[/run_test_cases|browser_run|suite|run_goal|run_direct/,`Running in the browser`,`browsing`],[/comment_on_pr/,`Commenting on the pull request`,`working`],[/write_back|post_result|post_results|file_bugs|create_bugs/,`Posting the result`,`working`],[/heal_api_contracts/,`Healing the API contracts`,`retrying`],[/run_api_contracts/,`Running the API contracts`,`working`],[/run_api_scenarios/,`Running the API scenarios`,`working`],[/run_api_load/,`Load testing the API`,`working`],[/run_api_security/,`Checking the API's security`,`working`],[/api_contracts|api_new_set|api_add_calls|api_import_collection/,`Making API contracts`,`working`],[/write_test|heal/,`Writing the test`,`writing`],[/run_tests|bash|shell/,`Running the tests`,`working`],[/read_confluence|read|grep|glob|list|webfetch/,`Reading`,`reading`],[/edit|write|patch/,`Changing the code`,`writing`],[/task/,`Handing work to another agent`,`handing`]],us=/^(test|attempt|info|review)$/,ds=/run_test_cases|browser_run|run_suite|write_test/,fs=[[/(^|_)skill/,`skill`],[/code_element/,`element`],[/code_outline/,`outline`],[/code_references/,`references`],[/code_impact|(^|_)impact/,`impact`],[/code_find|find_tests/,`find`],[/code_test_file/,`testfile`],[/code_command|code_status|run_tests|bash|shell/,`run`],[/find_test_cases|story_test_cases|check_test_cases|list_sprints/,`cases`],[/environment|logins/,`environment`],[/run_test_cases|browser_run|suite|run_goal|run_direct/,`browser`],[/comment_on_pr|write_back|post_result|post_results|file_bugs|create_bugs/,`post`],[/grep|glob|search/,`search`],[/webfetch|websearch|fetch/,`web`],[/(^|_)list/,`list`],[/read/,`read`],[/edit|write|patch/,`edit`],[/task/,`task`]];function ps(e){let t=e.toLowerCase();return fs.find(([e])=>e.test(t))?.[1]??`work`}function ms(e){let t=/^(.*?\(attempt \d+\/\d+\))\s*:\s*([\s\S]+)$/.exec(e)??/^([^:\n]{1,160}?):\s+([\s\S]{40,})$/.exec(e),n=(t?t[1]:e).replace(/\s*\(attempt \d+\/\d+\)$/,``).replace(/(^|\s)(?:[\w.-]+[\\/])+([\w.-]+)/g,`$1$2`);return{summary:n.length>140?`${n.slice(0,139)}…`:n,detail:t?t[2].trim():``}}var hs=[[/find_test_cases|story_test_cases|check_test_cases/,`forgeqe-find`],[/run_test_cases|browser_run|run_goal|run_direct|suite|explore_run/,`engine`],[/write_test/,`forgeqe-test`],[/heal(?!_api_contracts)/,`forgeqe-heal`],[/review_pr|pr_review/,`forgeqe-pr-review`],[/api_plan/,`forgeqe-api-plan`],[/write_api|api_test/,`forgeqe-api`],[/explore_plan|plan_charters/,`forgeqe-explore-plan`],[/defect_rca|root_cause/,`forgeqe-defect-rca`],[/insights|forgeqe_bi|defect_intelligence/,`forgeqe-bi`],[/refine/,`forgeqe-refine`]];function gs(e){let t=e.toLowerCase();if(!xs(t))return hs.find(([e])=>e.test(t))?.[1]}var _s=[[/write_api_tests/,`forgeqe-api`,`Write the API tests`],[/(?<!run_)api_scenarios$/,`forgeqe-api-plan`,`Plan the API scenarios`]];function vs(e){let t=e.toLowerCase();if(xs(t))return;let n=_s.find(([e])=>e.test(t));return n?{agent:n[1],task:n[2]}:void 0}var ys=[[/^(azure_devops|ado|azuredevops)_/,`Azure DevOps`],[/^(jira|atlassian)_/,`Jira`],[/^confluence_/,`Confluence`],[/^github_/,`GitHub`],[/^xray_/,`Xray`],[/^testrail_/,`TestRail`],[/^zephyr_/,`Zephyr Scale`],[/^qtest_/,`qTest`]],bs=/(^|_)(create|update|add|delete|remove|post|comment|link|unlink|upload|set|assign|transition|edit|merge|close|reopen|queue|trigger|run|push|move|copy|import|write|publish|approve|vote|lock|unlock)(_|$)/;function xs(e){let t=e.toLowerCase();if(!t.startsWith(`forgeqe_`))return ys.find(([e])=>e.test(t))?.[1]}var Ss=e=>{let t=Z(e);return typeof t.diff==`string`&&t.diff?{diff:t.diff,added:Number(t.added)||0,removed:Number(t.removed)||0}:void 0},Cs=e=>Array.isArray(e)?e.map(Q).filter(Boolean):[];function ws(e,t,n){let r=Q(e.status)||(t?`failed`:``);return{status:r,ok:!t&&/^(passed|pass|written|ok|known_defect)$/i.test(r),...Q(e.testFile)?{testFile:Q(e.testFile)}:{},...Q(e.testName)?{testName:Q(e.testName)}:{},...Q(e.command)?{command:Q(e.command)}:{},...typeof e.attempts==`number`?{attempts:e.attempts}:{},...typeof e.maxAttempts==`number`?{maxAttempts:e.maxAttempts}:{},changed:Cs(e.changed),reused:Cs(e.reused),...n?{runDir:n}:{},...t?{error:t}:{},...Q(e.notes)?{notes:Q(e.notes)}:{}}}function Ts(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){let e=Z(n),r=(typeof n==`string`?n:Q(e.label)||Q(e.request)).replace(/\s+/g,` `).trim(),i=(typeof n==`string`?n:Q(e.request)||Q(e.label)).trim();r&&i&&!t.some(e=>e.label.toLowerCase()===r.toLowerCase())&&t.push({label:r.length>60?`${r.slice(0,59)}…`:r,request:i})}return t.slice(0,4)}function Es(e){let t=e.toLowerCase(),n=xs(t);if(n)return bs.test(t.replace(/^[a-z]+_/,``))?{label:`Updating ${n}`,orb:`working`}:{label:`Reading ${n}`,orb:`reading`};for(let[e,n,r]of ls)if(e.test(t))return{label:n,orb:r};let r=t.replace(/^forgeqe_/,``).replace(/[_-]+/g,` `).trim();return{label:r?r[0].toUpperCase()+r.slice(1):`Working`,orb:`working`}}function Ds(e,t){return{id:e,user:t,steps:[],parts:[],next:[],asks:[],waits:[],log:[],plan:[],changes:[],tests:[],reports:[],actions:[]}}function Os(e){let t=Z(e);return[Q(t.id),Q(t.title)].filter(Boolean).join(`: `)}function ks(e){let t={turns:[],notes:[]},n=new Map,r=e=>(typeof e==`string`?n.get(e):void 0)??t.turns.at(-1),i=(e,t)=>{let n=e=>{for(let r of e){if(r.key===t)return r;let e=r.children&&n(r.children);if(e)return e}};return n(e.steps)},a=(e,t,n)=>{let r={lines:[],...t};if(n)n.push(r);else{let t=e.plan.find(e=>e.status===`active`)??e.plan.find(e=>e.status===`pending`)??e.plan.at(-1);t&&(r.phase=t.text),e.steps.push(r)}return r},o=(e,t,n)=>{let r=t.parent?i(e,`c:${Q(t.parent)}`):void 0;if(r)return r.children??=[];let o=Q(t.agent);if(!o&&us.test(Q(t.kind))){let t=[...e.steps].reverse().find(e=>e.status===`running`&&!!e.agent&&e.agent!==`forgeqe`);return t?s(t):void 0}if(!n||!o||o===`forgeqe`)return;let c=[...e.steps].reverse().find(e=>e.status===`running`);return c||=a(e,{key:`ag:${o}:${e.steps.length}`,label:Qn(o).name,status:`running`,orb:`handing`,agent:o}),c.agent??=o,s(c)},s=e=>{let t=e.children??=[],n=t.at(-1);return n&&n.key.startsWith(`try:`)&&n.status===`running`?n.children??=[]:t},c=(e,t)=>{let n=e?.children?.at(-1);if(!n||!n.key.startsWith(`try:`)||n.status!==`running`)return;let r=[...n.children||[]].reverse().find(e=>e.key.startsWith(`t:`)||!!e.review),i=t??(r?r.review?r.review.approved:r.status===`ok`:void 0);n.status=i===void 0?`info`:i?`ok`:`fail`},l,u=new Map,d=new Map,f=0,p=e=>{let n=t.agents??=[],r=n.find(t=>t.agent===e);return r||n.push(r={agent:e,usage:{input:0,output:0},at:0}),r.at=++f,r},m=(e,n,r)=>{let s=Q(n.kind),f=Q(n.id);if((s===`start`||s===`tool`)&&ds.test(Q(n.tool))&&!xs(Q(n.tool)))return;let m=o(e,n,r),h=Z(n.delegate),g=Q(n.tool)||Q(n.text),_=Q(h.agent)?{agent:Q(h.agent),task:Q(h.task)}:!r&&!m?vs(Q(n.tool)):void 0;if(s===`start`){if(_)a(e,{key:`c:${f}`,label:`Hands off to ${$n(Qn(_.agent).name)}`,arg:_.task||void 0,status:`running`,orb:`handing`,agent:_.agent,handoff:_,children:[]},m);else{let{label:t,orb:r}=Es(g),i=m?void 0:gs(Q(n.tool));a(e,{key:`c:${f}`,label:t,arg:Q(n.text)&&Q(n.text)!==Q(n.tool)?Q(n.text):void 0,status:`running`,orb:r,icon:ps(g),...i?{agent:i}:{}},m)}}else if(s===`tool`){n.ok!==!1&&Q(n.tool)&&ss(t.uses??={skills:[],knowledge:[],systems:[]},Q(n.tool),Q(n.skill));let r=f?i(e,`c:${f}`):void 0,o=Z(n.file),s=Ss(n.change);if(s&&Q(o.path)){let t=e.changes.find(e=>e.path===Q(o.path));t?Object.assign(t,{diff:`${t.diff}\n${s.diff}`,added:t.added+s.added,removed:t.removed+s.removed}):e.changes.push({path:Q(o.path),...s,...Q(n.agent)?{agent:Q(n.agent)}:{}})}if(r)r.status=n.ok===!1?`fail`:`ok`,r.handoff&&Q(h.result)&&(r.handoff.result=Q(h.result));else if(_)a(e,{key:`c:${f||e.steps.length}`,label:`Hands off to ${$n(Qn(_.agent).name)}`,arg:_.task||void 0,status:n.ok===!1?`fail`:`ok`,orb:`handing`,agent:_.agent,handoff:{..._,...Q(h.result)?{result:Q(h.result)}:{}},children:[]},m);else{let{label:t,orb:r}=Es(g),i=m?void 0:gs(Q(n.tool));a(e,{key:`c:${f||e.steps.length}`,label:t,arg:Q(o.path)||Q(n.text)||void 0,status:n.ok===!1?`fail`:`ok`,orb:r,icon:ps(g),...i?{agent:i}:{},...s?{change:s}:{}},m)}r&&s&&(r.change=s)}else if(s===`stream`||s===`say`){if(r)return;let t=e.parts.find(e=>e.id===f);t?t.text=s===`say`?Q(n.text):t.text+Q(n.text):e.parts.push({id:f||`p${e.parts.length}`,text:Q(n.text)})}else if(s===`plan`){if(m||n.agent&&n.agent!==`forgeqe`)return;let t=Array.isArray(n.items)?n.items.map(Z):[],r=e=>e===`completed`?`done`:e===`in_progress`?`active`:e===`cancelled`?`skipped`:`pending`;e.plan=t.map(e=>({text:Q(e.text),status:r(e.status)})).filter(e=>e.text)}else if(s===`test`){let t=Number(n.attempt)||0;if(t>0){let{summary:r,detail:i}=ms(Q(n.text));a(e,{key:`t:${t}:${e.steps.length}`,label:`Test, attempt ${t}`,arg:r||void 0,status:n.ok?`ok`:`fail`,orb:`retrying`,icon:`test`,...i?{output:i}:{},...l?{command:l}:{}},m),l=void 0}else if(n.ok&&/\bconnected$/i.test(Q(n.text)))return;else a(e,{key:`t:${e.steps.length}`,label:Q(n.text)||(n.ok?`Checked`:`Check failed`),status:n.ok?`ok`:`fail`,orb:/connect|mcp/i.test(Q(n.text))?`waiting`:`working`},m)}else if(s===`attempt`){let t=[...e.steps].reverse().find(e=>e.status===`running`&&!!e.agent&&e.agent!==`forgeqe`);if(!t)return;c(t);let r=Q(n.fixing)||Q(n.why);(t.children??=[]).push({key:`try:${Q(n.attempt)}:${t.children.length}`,label:`Attempt ${Q(n.attempt)} of ${Q(n.max)}`,arg:r?r.length>120?`${r.slice(0,119)}…`:r:void 0,status:`running`,orb:`retrying`,icon:`retry`,lines:r.length>120?[{text:r}]:[],children:[]})}else if(s===`review`){let t=(Array.isArray(n.issues)?n.issues:[]).map(Z).map(e=>({kind:Q(e.kind)===`standards`?`standards`:`correctness`,...Q(e.file)?{file:Q(e.file)}:{},problem:Q(e.problem),...Q(e.fix)?{fix:Q(e.fix)}:{}})).filter(e=>e.problem).slice(0,20),r=n.approved===!0,i=(m??e.steps).length;a(e,{key:`r:${Q(n.attempt)}:${i}`,label:r?`Review approved`:`Review asked for changes`,arg:t.length?`${t.length} ${t.length===1?`issue`:`issues`}`:void 0,status:r?`ok`:`fail`,orb:`thinking`,agent:`forgeqe-review`,icon:`review`,review:{approved:r,summary:Q(n.summary),issues:t}},m)}else if(s===`context`||s===`usage`){let e=Q(n.agent)||`forgeqe`,r=p(e);s===`context`&&typeof n.tokens==`number`&&typeof n.limit==`number`&&(r.context={tokens:n.tokens,limit:n.limit,compactsAt:typeof n.compactsAt==`number`?n.compactsAt:void 0},e===`forgeqe`&&(t.context=r.context));let i=s===`usage`?ns(n.usage):void 0;if(i){let n=u.get(e);n&&(i.input<n.input||i.output<n.output)&&d.set(e,rs(d.get(e),n)),u.set(e,i),r.usage=rs(d.get(e),i),t.usage=(t.agents||[]).reduce((e,t)=>rs(e,t.usage),void 0)}}else if(s===`info`){let t=(m??e.steps).at(-1),r=/^ForgeQE runs the test:\s*([\s\S]+)$/.exec(Q(n.text));r?l=r[1].trim():t&&t.lines.push({text:Q(n.text)})}},h,g=(e,n)=>{let r=Q(n.type);if(r===`docs`)return cs(t.uses??={skills:[],knowledge:[],systems:[]},n);if(r===`ui-action`){let t=Xo(n);t&&!e.actions.some(e=>e.id===t.id)&&e.actions.push(t)}else if(r===`run-start`)a(e,{key:`run:${e.steps.length}`,label:`Running in the browser`,arg:Q(n.goal),status:`running`,orb:`browsing`,agent:`engine`});else if(r===`run-event`){let t=[...e.steps].reverse().find(e=>e.key.startsWith(`run:`)),r=Z(n.event);if(!t)return;r.type===`outcome`?t.lines.push({text:`Step ${Q(r.step)}: ${Q(r.action)||Q(r.text)}`,ok:r.ok===!0||r.ok!==!1&&void 0}):r.type===`log`&&(r.level!==`info`||r.progress)&&t.lines.push({text:Q(r.text),ok:r.level!==`error`&&void 0})}else if(r===`run-done`){let t=[...e.steps].reverse().find(e=>e.key.startsWith(`run:`)&&e.status===`running`),r=Z(n.result),i=!n.error&&(r.outcome===`passed`||!r.outcome&&r.status===`complete`);if(t){t.status=i?`ok`:`fail`;let e=Q(n.error)||Q(r.summary);e&&t.lines.push({text:e,ok:!!i})}Q(n.runDir)&&e.reports.push({label:i?`Browser run report`:`Browser run report (failed)`,path:Q(n.runDir)})}else if(r===`suite-start`){let t=Array.isArray(n.cases)?n.cases:[];a(e,{key:`suite:${e.steps.length}`,label:`Running ${t.length} test case${t.length===1?``:`s`}`,status:`running`,orb:`working`,agent:`engine`})}else if(r===`suite-event`){let t=[...e.steps].reverse().find(e=>e.key.startsWith(`suite:`)),r=Z(n.event);if(t&&r.type===`case-done`){let e=Z(r.result);t.lines.push({text:`${Os(e.case)}: ${Q(e.status)}`,ok:e.status===`passed`})}}else if(r===`suite-done`){let t=[...e.steps].reverse().find(e=>e.key.startsWith(`suite:`)),r=Array.isArray(Z(n.suite).results)?Z(n.suite).results.map(Z):[];if(t){let e=r.filter(e=>e.status!==`passed`).length;t.status=e?`fail`:`ok`,t.arg=`${r.length-e} of ${r.length} passed`}}else if(r===`card`){let t=Z(n.card);a(e,{key:`card:${e.steps.length}`,label:Q(t.title),arg:Q(t.stats)||void 0,status:t.status===`ok`?`ok`:t.status===`fail`?`fail`:`info`,orb:`working`,lines:(Array.isArray(t.body)?t.body:[]).map(e=>({text:Q(e)}))})}else if(r===`call-start`&&!n.quiet)a(e,{key:`call:${Q(n.id)}`,label:Q(n.text),status:`running`,orb:`working`});else if(r===`call`&&!n.quiet){let t=n.id?i(e,`call:${Q(n.id)}`):void 0;t?t.status=n.ok===!1?`fail`:`ok`:a(e,{key:`call:${e.steps.length}`,label:Q(n.text),status:n.ok===!1?`fail`:`ok`,orb:`working`})}else if(r===`code-start`)h=Q(n.runDir)||void 0,a(e,{key:`code:${e.steps.length}`,label:`Hands off to Quill`,arg:Q(n.goal),status:`running`,orb:`writing`,agent:`forgeqe-test`,handoff:{agent:`forgeqe-test`,task:Q(n.goal)},children:[]});else if(r===`code-done`){let t=[...e.steps].reverse().find(e=>e.key.startsWith(`code:`)&&e.status===`running`);c(t),t&&(t.status=n.error?`fail`:`ok`,n.error&&t.lines.push({text:Q(n.error),ok:!1}));let r=[],i=(e=[])=>e.forEach(e=>(r.push(e),i(e.children)));i(t?.children);let a=r.filter(e=>e.key.startsWith(`t:`)),o=r.filter(e=>e.review);e.tests.push({...ws(Z(n.result),Q(n.error),h),...t?{runs:a.length,failedRuns:a.filter(e=>e.status===`fail`).length,reviews:o.length}:{},...o.length?{review:o.at(-1).review}:{}}),h=void 0}else if(r===`agent`)m(e,Z(n.event),!0);else if(r===`info`){let t=e.steps.at(-1);t?t.lines.push({text:Q(n.text),ok:n.ok===!0||n.ok!==!1&&void 0}):a(e,{key:`info:${e.steps.length}`,label:Q(n.text),status:n.ok===!1?`fail`:`info`,orb:`working`})}else r===`report`&&(a(e,{key:`report:${e.steps.length}`,label:`Report saved`,arg:Q(n.title),status:`ok`,orb:`working`}),Q(n.html)&&e.reports.push({label:Q(n.title)||`Report`,path:Q(n.html)}))};for(let r of e){_(r);let e=Uo(r);e&&(typeof r.id==`string`&&n.get(r.id)||typeof r.turn==`string`&&n.get(r.turn)||t.turns.at(-1))?.log.push(e)}return t;function _(e){switch(e.type){case`user`:{let r=Ds(Q(e.id),Q(e.text));t.turns.push(r),n.set(r.id,r);break}case`ready`:{t.ended=void 0,t.fatal=void 0;let n=Z(e.profile);n.name&&(t.model={name:Q(n.name),provider:Q(n.provider)}),t.writeTests=e.writeTests!==!1,t.headed=e.headed===!0;break}case`models`:case`model`:{let n=Z(e.profile);n.name&&(t.model={name:Q(n.name),provider:Q(n.provider)}),e.type===`models`&&Array.isArray(e.models)&&(t.models=e.models.map(e=>({name:Q(Z(e).name),provider:Q(Z(e).provider)})).filter(e=>e.name));break}case`settings`:typeof e.writeTests==`boolean`&&(t.writeTests=e.writeTests),typeof e.headed==`boolean`&&(t.headed=e.headed);break;case`turn_start`:{let t=r(e.id);t&&(t.started=Q(e.t)||Q(e.at));break}case`agent`:{let t=r(e.id);t&&m(t,Z(e.event),!1);break}case`tool`:{let t=r(e.id);t&&g(t,Z(e.event));break}case`ask`:{let t=r(e.turn),n=Z(e.question);t?.asks.push({id:Q(e.id),title:Q(n.title),detail:Q(n.detail)||void 0,lines:Array.isArray(n.lines)?n.lines.map(Q):[],options:(Array.isArray(n.options)?n.options:[]).map(e=>({id:Q(Z(e).id),label:Q(Z(e).label)}))});break}case`wait`:r(e.turn)?.waits.push({id:Q(e.id),prompt:Q(e.prompt)});break;case`answered`:for(let n of t.turns){let t=n.asks.find(t=>t.id===e.ask);t&&(t.answer=Q(e.label));let r=n.waits.find(t=>t.id===e.ask);r&&(r.answer=e.ok===!0)}break;case`turn_done`:{let n=r(e.id);if(!n)break;n.outcome=e.outcome,n.reply=Q(e.reply),n.next=Ts(e.next),n.error=Q(e.error)||void 0,n.ended=Q(e.t)||Q(e.at),t.agents?.length||(t.usage=ns(e.usage)??t.usage);let i=e=>{for(let t of e)t.status===`running`&&(t.status=n.outcome===`done`?`ok`:`info`),t.children&&i(t.children)};if(i(n.steps),n.outcome===`done`)for(let e of n.plan)e.status===`active`&&(e.status=`done`);break}case`error`:e.code!==`busy`&&t.notes.push(Q(e.message));break;case`fatal`:t.fatal=Q(e.message);break;case`exit`:t.ended={code:typeof e.code==`number`?e.code:null,stderr:Array.isArray(e.stderr)?e.stderr.map(Q):void 0,message:Q(e.message)||void 0}}}}function As(e){let t=e.asks.find(e=>e.answer===void 0),n=e.waits.find(e=>e.answer===void 0);if(t||n)return{text:`Waiting for you…`,orb:`waiting`};let r=[...e.steps].reverse().find(e=>e.status===`running`);return r?{text:`${r.label}…`,orb:r.orb}:e.parts.some(e=>e.text.trim())&&e.steps.length?{text:`Writing a reply…`,orb:`writing`}:{text:`Thinking…`,orb:`thinking`}}function js(e){if(!e.started||!e.ended)return`Done`;let t=Math.max(1,Math.round((Date.parse(e.ended)-Date.parse(e.started))/1e3)),n=e.outcome===`stopped`?`Stopped after`:`Worked for`;return t<60?`${n} ${t} second${t===1?``:`s`}`:`${n} ${Math.floor(t/60)} min ${t%60} s`}var Ms={running:`active`,ok:`done`,fail:`failed`,info:`note`};function Ns(e,t){let n=e=>e===`active`&&!t?`done`:e;if(!e.plan.length)return e.steps.map(e=>({key:e.key,label:e.label,status:n(Ms[e.status]),steps:[],step:e}));let r=new Set(e.plan.map(e=>e.text)),i=new Map,a=``;for(let t of e.steps)t.phase&&r.has(t.phase)&&(a=t.phase),i.set(a,[...i.get(a)||[],t]);let o=e=>e.some(e=>e.status===`running`),s=[],c=i.get(``)||[];c.length&&s.push({key:`plan:start`,label:`Getting started`,status:n(o(c)?`active`:`done`),steps:c});let l=e.plan.map((e,n)=>{let r=i.get(e.text)||[],a=e.status===`done`?`done`:e.status===`skipped`?`skipped`:e.status===`active`||o(r)?`active`:`pending`;return{key:`plan:${n}`,label:e.text,status:a===`active`&&!t?`pending`:a,steps:r}});return[...s,...Ps(l)]}function Ps(e){let t=e.findIndex(e=>e.status===`active`);return t<0?e:e.map((e,n)=>e.status===`skipped`||e.status===`failed`||n===t?e:{...e,status:n<t?`done`:`pending`})}var Fs=[{id:`en`,label:`English`},{id:`hi`,label:`हिन्दी`}],Is=e=>e.startsWith(`h`);function Ls(e,t,n){return/[\u0900-\u097F]/.test(e)?n:t}function Rs(e){if(/^(?:(?:इसे|ये|यह|अब)\s+)?भेज(?:ो|\s+दो|\s+दीजिए|\s+दें)[\s।.!]*$/.test(e.trim()))return!0;let t=e.toLowerCase().replace(/[^a-z' ]+/g,` `).replace(/\s+/g,` `).trim();return/^(?:(?:ok|okay|now|please) )?(?:send(?: it| that| this| the message)?|submit(?: it)?|go ahead)(?: please| now)?$/.test(t)}var zs=/\b(?:and|but|or|so|because|since|if|when|while|unless|until|with|without|from|to|for|of|in|on|at|by|about|the|a|an|my|our|their|its|that|this|these|those|which|who|than|then|also|plus|like|um|uh|erm|er)$/i,Bs=/(?:और|लेकिन|क्योंकि|जब|अगर|या|फिर)$/;function Vs(e){let t=e.trim().replace(/\s+/g,` `);if(!t||/[.!?।]$/.test(t))return!1;if(t.endsWith(`,`)||t.endsWith(`—`)||t.endsWith(`-`))return!0;let n=t.replace(/[^\p{L}\p{N}\s]+$/gu,``).split(` `).at(-1)??``;return zs.test(n)||Bs.test(n)}function Hs(e){let t=e.trim();return t.length>240||/^\s*(?:[-*+] |\d+[.)] |\||```|~~~|#)/m.test(t)?!1:(t.match(/[.!?।](?:\s|$)/g)||[]).length<=2}var Us=e=>e.toLowerCase().replace(/[^a-z0-9' ]+/g,` `).replace(/\s+/g,` `).trim(),Ws=/\b(?:the|my|a|an|page|screen|tab|please|for me|now)\b/g,Gs=8;function Ks(e){let t=Us(e).replace(/^(?:(?:ok|okay|hey|please|can you|could you)\s+)+/,``);if(!t||t.split(` `).length>Gs)return null;if(/^(?:stop (?:talking|listening)|turn off talk|talk off)$/.test(t))return{kind:`stop`};if(/^(?:go back|back|previous page)$/.test(t))return{kind:`back`};if(/^(?:(?:start|open) (?:a )?new chat|new chat|go home|home)$/.test(t))return{kind:`new-chat`};let n=/^(?:open|go to|goto|show(?: me)?|take me to|navigate to|switch to|bring up)\s+(.+)$/.exec(t);if(n){let e=n[1];if(/^(?:the |my )?(?:last|latest|most recent|newest) (?:test )?run$/.test(e))return{kind:`last-run`};if(/^(?:the |my )?(?:last|latest|most recent|previous) chat$/.test(e))return{kind:`last-chat`};let t=e.replace(Ws,` `).replace(/\s+/g,` `).trim();return t&&!/\d/.test(t)?{kind:`open`,what:t}:null}let r=/^(?:find|search(?: for)?|look up|look for)\s+(.+)$/.exec(t);if(r){let e=r[1].replace(Ws,` `).replace(/\s+/g,` `).trim();return e&&!/\d/.test(e)?{kind:`find`,what:e}:null}return null}var qs=new Set([`hey`,`hi`,`hay`,`hei`,`ok`,`okay`,`a`,`he`,`hello`]),Js=.75,Ys=40;function Xs(e){let t=e.replace(/[^\p{L}\p{N} ]+/gu,` `).replace(/\s+/g,` `).trim();return t.replace(/\s/g,``).length>=3&&t.length<=Ys?t:null}var Zs=e=>e.toLowerCase().normalize(`NFKD`).replace(/[^a-z0-9]+/g,``);function Qs(e,t){if(!e||!t)return 0;let n=Array.from({length:t.length+1},(e,t)=>t);for(let r=1;r<=e.length;r++){let i=n[0];n[0]=r;for(let a=1;a<=t.length;a++){let o=n[a];n[a]=Math.min(n[a]+1,n[a-1]+1,i+(e[r-1]===t[a-1]?0:1)),i=o}}return 1-n[t.length]/Math.max(e.length,t.length)}function $s(e,t){let n=e.trim().split(/\s+/).filter(Boolean),r=(Xs(t)||``).split(` `).filter(Boolean);if(!n.length||!r.length)return null;let i=qs.has(Zs(r[0]))&&r.length>1,a=Zs((i?r.slice(1):r).join(``)),o=e=>{for(let t=1;t<=Math.min(n.length-e,r.length+2);t++)if(Qs(Zs(n.slice(e,e+t).join(``)),a)>=Js)return e+t;return 0},s=i&&n.length>1&&qs.has(Zs(n[0]))?o(1):0;return!s&&(!i||a.length>=5)&&(s=o(0)),s?{rest:n.slice(s).join(` `).replace(/^[\s,.!?;:—-]+/,``).trim(),words:s}:null}var ec=140,tc=40,nc=/\s+(?=(?:and|but|or|because|so|which|with|from|on|in|for|after|before|when|while|until)\s)/gi;function rc(e){return(e.match(/"/g)??[]).length%2==1||(e.match(/“/g)??[]).length>(e.match(/”/g)??[]).length}function ic(e,t){for(let t of[/(?<=[;:])\s+/,/(?<=,)\s+/]){let n=e.split(t).filter(Boolean);if(n.length>1)return n}if(!t)return null;let n=[],r=0;for(let t of e.matchAll(nc)){let i=t.index;i===0||rc(e.slice(0,i))||(n.push(e.slice(r,i).trim()),r=i)}n.push(e.slice(r).trim());let i=n.filter(Boolean);return i.length>1?i:null}function ac(e){let t=e.split(/\n+/).flatMap(e=>e.match(/(?:[^.!?।]|(?<=\d)\.(?=\d))+(?:[.!?।]+|$)/g)??[]).map(e=>e.trim()).filter(Boolean),n=[],r=()=>ec,i=``;for(;t.length;){let e=t.shift();if(i&&i.length+1+e.length<=r()){i=`${i} ${e}`;continue}i&&=(n.push(i),``);let a=e.length>r()?ic(e,!n.length||n.at(-1).length<tc):null;a?t.unshift(...a):i=e}return i&&n.push(i),n}var oc=16e3;function sc(e,t){if(!e.length||!(t>0))return new Int16Array;let n=t/oc,r=Math.floor(e.length/n),i=new Int16Array(r);for(let t=0;t<r;t++){let r=Math.floor(t*n),a=Math.max(r+1,Math.floor((t+1)*n)),o=0;for(let t=r;t<a;t++)o+=e[t]??0;let s=Math.max(-1,Math.min(1,o/(a-r)));i[t]=Math.round(s<0?s*32768:s*32767)}return i}function cc(e){if(!e.length)return 0;let t=0;for(let n of e)t+=(n/32768)**2;return Math.sqrt(t/e.length)}function lc(e={}){let t=320/oc*1e3,n=Math.round((e.preRollMs??300)/t),r=Math.round((e.endMs??800)/t),i=Math.round((e.pauseMs??300)/t),a=Math.round((e.maxSeconds??30)*1e3/t)-n,o=e.startFrames??3,s=0,c=.004,l=0,u=0,d=!1,f=[],p=[],m=e=>{let t=new Int16Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t};return{setStartFrames(e){o=Math.max(1,Math.floor(e))},mark(){return s},speaking(){return d},finish(){l=0,u=0,d=!1,p=[]},reset(){l=0,u=0,d=!1,f=[],p=[]},push(e){let t=cc(e),h=Math.max(.012,c*3);if(!d)return f.push(e),f.length>n+o&&f.shift(),t>h?l++:(l=0,c=c*.95+t*.05),l>=o?(d=!0,p=f,f=[],u=0,s=0,{kind:`start`}):null;if(p.push(e),t>h*.6?(u=0,s++):u++,u>=r||p.length>=a){let e=m(p);return d=!1,l=0,u=0,p=[],{kind:`end`,pcm:e,mark:s}}return u===i&&i<r?{kind:`pause`,pcm:m(p),mark:s}:null}}}function uc(e){let t=/^([abh])([fm])_([a-z]+)$/.exec(e);return t?`${t[3].charAt(0).toUpperCase()+t[3].slice(1)} (${t[1]===`a`?`American`:t[1]===`b`?`British`:`Hindi`}, ${t[2]===`f`?`female`:`male`})`:e}var dc=Object.freeze([{id:`browser_window`,label:`the browser window while tests run`,hi:`टेस्ट के समय ब्राउज़र विंडो`,project:!0},{id:`desktop_replay`,label:`desktop replays`,hi:`डेस्कटॉप रीप्ले`,project:!0},{id:`mobile_window`,label:`mobile emulators`,hi:`मोबाइल एमुलेटर`,project:!0},{id:`model`,label:`the model in use`,hi:`चालू मॉडल`,project:!0},{id:`environment`,label:`the test environment`,hi:`टेस्ट एनवायरनमेंट`,project:!0},{id:`theme`,label:`light or dark`,hi:`लाइट या डार्क`,project:!1},{id:`language`,label:`Talk's language`,hi:`टॉक की भाषा`,project:!1},{id:`wake_word`,label:`the wake word`,hi:`वेक वर्ड`,project:!1},{id:`voice`,label:`Talk's voice`,hi:`टॉक की आवाज़`,project:!1}]),fc=/\bprod(?:uction)?\b/i,pc=e=>e.toLowerCase().replace(/[^\p{L}\p{M}\p{N}]+/gu,` `).trim();function mc(e){return[`browser_window: shown, hidden`,`desktop_replay: headed (uses the mouse and keyboard), headless`,`mobile_window: shown, hidden`,`model: ${e.models.filter(e=>!fc.test(e)).join(`, `)||`(none)`}`,`environment: ${e.environments.filter(e=>!fc.test(e)).join(`, `)||`(none)`}`,`theme: light, dark, system`,`language: English, Hindi`,`wake_word: on, off`,`voice: ${e.voices.map(e=>uc(e).split(` `)[0]).join(`, `)}`]}function hc(e,t){let n=/^\s*([a-z_]+)\s*[:=]\s*(.+?)\s*$/i.exec(e),r=n&&dc.find(e=>e.id===n[1].toLowerCase());if(!n||!r)return`Talk can change only these settings: the browser window, desktop replays, mobile emulators, the model in use, the test environment, light or dark, its language, voice and wake word. The rest is in Settings.`;let i=pc(n[2]);switch(r.id){case`browser_window`:if(/^(shown|show|visible|on|headed)$/.test(i))return{setting:r,value:!1,said:`shown`};if(/^(hidden|hide|headless|off)$/.test(i))return{setting:r,value:!0,said:`hidden`};break;case`desktop_replay`:if(/^(headed|mouse|with the mouse|mouse and keyboard|on)$/.test(i)||/\bmouse\b/.test(i))return{setting:r,value:!0,said:`headed`};if(/^(headless|without|off|no mouse)$/.test(i))return{setting:r,value:!1,said:`headless`};break;case`mobile_window`:if(/^(shown|show|visible|on|headed)$/.test(i))return{setting:r,value:!1,said:`shown`};if(/^(hidden|hide|headless|off)$/.test(i))return{setting:r,value:!0,said:`hidden`};break;case`model`:{let e=t.models.filter(e=>!fc.test(e)&&i.length>=3&&pc(e).includes(i)),a=t.models.find(e=>pc(e)===i)??(e.length===1?e[0]:void 0);return a&&!fc.test(a)?{setting:r,value:a,said:a}:`No model profile is called “${n[2]}”. The profiles are: ${t.models.filter(e=>!fc.test(e)).join(`, `)||`none`}.`}case`environment`:{let e=t.environments.filter(e=>!fc.test(e)&&i.length>=2&&pc(e).includes(i)),a=t.environments.find(e=>pc(e)===i)??(e.length===1?e[0]:void 0);return a&&!fc.test(a)?{setting:r,value:a,said:a}:fc.test(n[2])?`Talk never switches to an environment named like production.`:`No environment is called “${n[2]}”. The environments are: ${t.environments.filter(e=>!fc.test(e)).join(`, `)||`none`}.`}case`theme`:if(/^(light|dark|system)$/.test(i))return{setting:r,value:i,said:i};break;case`language`:if(/^(english|en)$/.test(i))return{setting:r,value:`en`,said:`English`};if(/^(hindi|hi|हिन्दी|हिंदी)$/.test(i))return{setting:r,value:`hi`,said:`Hindi`};break;case`wake_word`:if(/^(on|yes|true)$/.test(i))return{setting:r,value:!0,said:`on`};if(/^(off|no|false)$/.test(i))return{setting:r,value:!1,said:`off`};break;case`voice`:{let e=t.voices.find(e=>pc(uc(e).split(` `)[0])===i||e===i);if(e)return{setting:r,value:e,said:uc(e).split(` `)[0]};break}}return`${r.label.charAt(0).toUpperCase()}${r.label.slice(1)} cannot be “${n[2]}”.`}function gc(e){let t=e.toLowerCase().replace(/[^\p{L}\p{M}\p{N}' ]+/gu,` `).replace(/\s+/g,` `).trim();return/^(?:(?:yes|yeah|yep|yup|sure|ok|okay)(?: please| do it| save it)?|do it|save it|go ahead|confirm|हाँ|हां|जी हाँ|जी हां|हाँ जी|ठीक है|कर दो|कर दीजिए)$/u.test(t)?`yes`:/^(?:no|nope|no thanks|cancel|don't|do not|leave it|never mind|नहीं|ना|रहने दो|मत करो)$/u.test(t)?`no`:null}var _c=/^\s*(?:[-*>]\s*)?(?:\*\*|__)?\s*(?:sources?|evidence|references?|refs?)\s*(?:\*\*|__)?\s*:/i;function vc(e){let t=[],n=[],r=!1;for(let i of e.split(`
7
- `))/^\s*(```|~~~)/.test(i)&&(r=!r),!r&&_c.test(i)?n.push(i.trim()):t.push(i);return{body:t.join(`
6
+ `}var qo=[`open`,`open_run`,`open_chat`,`search`,`back`,`new_chat`],Jo=/^(?:|latest|last|newest|most recent)$/i,Yo=/^[A-Za-z0-9_-]{1,80}$/,Xo=e=>e.replace(/[\u0000-\u001f\u007f]+/g,` `).trim().slice(0,200);function Zo(e){if(!e||typeof e!=`object`)return null;let t=e;if(typeof t.id!=`string`||!Yo.test(t.id)||!qo.includes(t.action))return null;let n=typeof t.what==`string`?Xo(t.what):void 0;return{id:t.id,action:t.action,...n?{what:n}:{}}}var Qo=e=>e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,``);function $o(e,t){let n=Qo(t),r=n.length>=4?e.filter(e=>e.kind!==`field`&&Qo(e.label)===n):[];return r.length===1?r[0]:void 0}function es(e,t,n){let r=/^\s*settings\s*[›>:/-]\s*(.+)$/i.exec(t);if(r&&!/\bsettings?\b/i.test(n))return Mo(e.filter(e=>e.kind!==`setting`&&e.kind!==`field`),r[1].trim().toLowerCase())}var ts=/^\s*(?:settings\s*[›>:/-]\s*(.+)|(?:the\s+)?(.+?)\s+settings?)\s*$/i;async function ns(e,t){let n=(e.what||``).trim();switch(e.action){case`open`:{let e=await t.commands(),r=ts.exec(n),i=r?(r[1]||r[2]||``).trim():``,a=n?i&&Mo(e.filter(e=>e.kind===`setting`),i.toLowerCase())||Mo(e,n.toLowerCase())||$o(e,n):void 0;return a?t.go(a.href)===!1?`${a.label} is already open.`:`Opened ${a.label}.`:`Nothing in ForgeQE is called “${n}”.`}case`open_run`:{let e=await t.runs(),r=Jo.test(n)?e[0]:e.find(e=>e.name===n)??e.find(e=>e.title.toLowerCase()===n.toLowerCase());return r?(t.go(F(`runs`,encodeURIComponent(r.name))),`Opened the run “${r.title||r.name}”.`):e.length?`No run is called “${n}”.`:`There are no runs yet.`}case`open_chat`:{let e=await t.chats(),r=Jo.test(n)?e.find(e=>e.id!==t.current):e.find(e=>e.id===n)??e.find(e=>e.title.toLowerCase()===n.toLowerCase());return r?(t.go(F(`chats`,r.id)),`Opened the chat “${r.title}”.`):`No chat is called “${n}”.`}case`search`:return n?(t.find(n),`Searching for “${n}”.`):`Nothing to search for.`;case`back`:return t.back(),`Went back.`;case`new_chat`:return t.go(F()),`Opened a new chat.`}}var rs=e=>{let t=Z(e);return typeof t.input==`number`&&typeof t.output==`number`?{input:t.input,output:t.output,cached:typeof t.cached==`number`?t.cached:void 0}:void 0};function is(e,t){let n=(e?.cached||0)+(t?.cached||0);return{input:(e?.input||0)+(t?.input||0),output:(e?.output||0)+(t?.output||0),...n?{cached:n}:{}}}var Z=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{},Q=e=>typeof e==`string`?e:e==null?``:String(e),as=[[/^(product_(knowledge|docs|code|runs?)|services|database_schema)$/,`Product knowledge`],[/^page_memory$/,`Memory`],[/^playbook$/,`Playbook`],[/^(requirements_file|trace_criteria)$/,`Requirements`],[/^read_confluence$/,`Confluence pages`],[/^read_mapping_file$/,`Mapping file`]],os={github:`GitHub`,gitlab:`GitLab`,azure_devops:`Azure DevOps`,atlassian:`Jira`,confluence:`Confluence`,notify:`Notifications`,sentry:`Sentry`,browserstack:`BrowserStack`,testmu:`TestMu`,dataverse:`Dataverse`,aws:`AWS`,azure:`Azure`,gcp:`Google Cloud`,postman:`Postman`},ss=20;function cs(e,t,n){let r=(e,t)=>{t&&e.length<ss&&!e.includes(t)&&e.push(t)},i=t.toLowerCase();if(i===`skill`){let t=(n||``).trim();/^[\w.:-]{1,64}$/.test(t)&&r(e.skills,t);return}let a=i.replace(/^forgeqe_/,``),o=as.find(([e])=>e.test(a));if(o)return r(e.knowledge,o[1]);if(Object.hasOwn(os,a))return r(e.systems,os[a]);let s=bs.find(([e])=>e.test(a))?.[1];s&&r(e.systems,s)}function ls(e,t){let n=e=>typeof e==`number`&&Number.isFinite(e)&&e>=0?e:0,r=e.sections??=[];for(let e of Array.isArray(t.sections)?t.sections:[]){let t=Q(e).replace(/\s+/g,` `).trim().slice(0,160);t&&r.length<ss&&!r.includes(t)&&r.push(t)}let i=e.text??={sent:0,whole:0};i.sent+=n(t.sent),i.whole+=n(t.whole)}var us=[[/find_test_cases|story_test_cases|check_test_cases|list_sprints/,`Finding test cases`,`searching`],[/environment|logins/,`Preparing the environment`,`handing`],[/run_test_cases|browser_run|suite|run_goal|run_direct/,`Running in the browser`,`browsing`],[/comment_on_pr/,`Commenting on the pull request`,`working`],[/write_back|post_result|post_results|file_bugs|create_bugs/,`Posting the result`,`working`],[/heal_api_contracts/,`Healing the API contracts`,`retrying`],[/run_api_contracts/,`Running the API contracts`,`working`],[/run_api_scenarios/,`Running the API scenarios`,`working`],[/run_api_load/,`Load testing the API`,`working`],[/run_api_security/,`Checking the API's security`,`working`],[/api_contracts|api_new_set|api_add_calls|api_import_collection/,`Making API contracts`,`working`],[/write_test|heal/,`Writing the test`,`writing`],[/run_tests|bash|shell/,`Running the tests`,`working`],[/read_confluence|read|grep|glob|list|webfetch/,`Reading`,`reading`],[/edit|write|patch/,`Changing the code`,`writing`],[/task/,`Handing work to another agent`,`handing`]],ds=/^(test|attempt|info|review)$/,fs=/run_test_cases|browser_run|run_suite|write_test/,ps=[[/(^|_)skill/,`skill`],[/code_element/,`element`],[/code_outline/,`outline`],[/code_references/,`references`],[/code_impact|(^|_)impact/,`impact`],[/code_find|find_tests/,`find`],[/code_test_file/,`testfile`],[/code_command|code_status|run_tests|bash|shell/,`run`],[/find_test_cases|story_test_cases|check_test_cases|list_sprints/,`cases`],[/environment|logins/,`environment`],[/run_test_cases|browser_run|suite|run_goal|run_direct/,`browser`],[/comment_on_pr|write_back|post_result|post_results|file_bugs|create_bugs/,`post`],[/grep|glob|search/,`search`],[/webfetch|websearch|fetch/,`web`],[/(^|_)list/,`list`],[/read/,`read`],[/edit|write|patch/,`edit`],[/task/,`task`]];function ms(e){let t=e.toLowerCase();return ps.find(([e])=>e.test(t))?.[1]??`work`}function hs(e){let t=/^(.*?\(attempt \d+\/\d+\))\s*:\s*([\s\S]+)$/.exec(e)??/^([^:\n]{1,160}?):\s+([\s\S]{40,})$/.exec(e),n=(t?t[1]:e).replace(/\s*\(attempt \d+\/\d+\)$/,``).replace(/(^|\s)(?:[\w.-]+[\\/])+([\w.-]+)/g,`$1$2`);return{summary:n.length>140?`${n.slice(0,139)}…`:n,detail:t?t[2].trim():``}}var gs=[[/find_test_cases|story_test_cases|check_test_cases/,`forgeqe-find`],[/run_test_cases|browser_run|run_goal|run_direct|suite|explore_run/,`engine`],[/write_test/,`forgeqe-test`],[/heal(?!_api_contracts)/,`forgeqe-heal`],[/review_pr|pr_review/,`forgeqe-pr-review`],[/api_plan/,`forgeqe-api-plan`],[/write_api|api_test/,`forgeqe-api`],[/explore_plan|plan_charters/,`forgeqe-explore-plan`],[/defect_rca|root_cause/,`forgeqe-defect-rca`],[/insights|forgeqe_bi|defect_intelligence/,`forgeqe-bi`],[/refine/,`forgeqe-refine`]];function _s(e){let t=e.toLowerCase();if(!Ss(t))return gs.find(([e])=>e.test(t))?.[1]}var vs=[[/write_api_tests/,`forgeqe-api`,`Write the API tests`],[/(?<!run_)api_scenarios$/,`forgeqe-api-plan`,`Plan the API scenarios`]];function ys(e){let t=e.toLowerCase();if(Ss(t))return;let n=vs.find(([e])=>e.test(t));return n?{agent:n[1],task:n[2]}:void 0}var bs=[[/^(azure_devops|ado|azuredevops)_/,`Azure DevOps`],[/^(jira|atlassian)_/,`Jira`],[/^confluence_/,`Confluence`],[/^github_/,`GitHub`],[/^xray_/,`Xray`],[/^testrail_/,`TestRail`],[/^zephyr_/,`Zephyr Scale`],[/^qtest_/,`qTest`]],xs=/(^|_)(create|update|add|delete|remove|post|comment|link|unlink|upload|set|assign|transition|edit|merge|close|reopen|queue|trigger|run|push|move|copy|import|write|publish|approve|vote|lock|unlock)(_|$)/;function Ss(e){let t=e.toLowerCase();if(!t.startsWith(`forgeqe_`))return bs.find(([e])=>e.test(t))?.[1]}var Cs=e=>{let t=Z(e);return typeof t.diff==`string`&&t.diff?{diff:t.diff,added:Number(t.added)||0,removed:Number(t.removed)||0}:void 0},ws=e=>Array.isArray(e)?e.map(Q).filter(Boolean):[];function Ts(e,t,n){let r=Q(e.status)||(t?`failed`:``);return{status:r,ok:!t&&/^(passed|pass|written|ok|known_defect)$/i.test(r),...Q(e.testFile)?{testFile:Q(e.testFile)}:{},...Q(e.testName)?{testName:Q(e.testName)}:{},...Q(e.command)?{command:Q(e.command)}:{},...typeof e.attempts==`number`?{attempts:e.attempts}:{},...typeof e.maxAttempts==`number`?{maxAttempts:e.maxAttempts}:{},changed:ws(e.changed),reused:ws(e.reused),...n?{runDir:n}:{},...t?{error:t}:{},...Q(e.notes)?{notes:Q(e.notes)}:{}}}function Es(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){let e=Z(n),r=(typeof n==`string`?n:Q(e.label)||Q(e.request)).replace(/\s+/g,` `).trim(),i=(typeof n==`string`?n:Q(e.request)||Q(e.label)).trim();r&&i&&!t.some(e=>e.label.toLowerCase()===r.toLowerCase())&&t.push({label:r.length>60?`${r.slice(0,59)}…`:r,request:i})}return t.slice(0,4)}function Ds(e){let t=e.toLowerCase(),n=Ss(t);if(n)return xs.test(t.replace(/^[a-z]+_/,``))?{label:`Updating ${n}`,orb:`working`}:{label:`Reading ${n}`,orb:`reading`};for(let[e,n,r]of us)if(e.test(t))return{label:n,orb:r};let r=t.replace(/^forgeqe_/,``).replace(/[_-]+/g,` `).trim();return{label:r?r[0].toUpperCase()+r.slice(1):`Working`,orb:`working`}}function Os(e,t){return{id:e,user:t,steps:[],parts:[],next:[],asks:[],waits:[],log:[],plan:[],changes:[],tests:[],reports:[],actions:[]}}function ks(e){let t=Z(e);return[Q(t.id),Q(t.title)].filter(Boolean).join(`: `)}function As(e){let t={turns:[],notes:[]},n=new Map,r=e=>(typeof e==`string`?n.get(e):void 0)??t.turns.at(-1),i=(e,t)=>{let n=e=>{for(let r of e){if(r.key===t)return r;let e=r.children&&n(r.children);if(e)return e}};return n(e.steps)},a=(e,t,n)=>{let r={lines:[],...t};if(n)n.push(r);else{let t=e.plan.find(e=>e.status===`active`)??e.plan.find(e=>e.status===`pending`)??e.plan.at(-1);t&&(r.phase=t.text),e.steps.push(r)}return r},o=(e,t,n)=>{let r=t.parent?i(e,`c:${Q(t.parent)}`):void 0;if(r)return r.children??=[];let o=Q(t.agent);if(!o&&ds.test(Q(t.kind))){let t=[...e.steps].reverse().find(e=>e.status===`running`&&!!e.agent&&e.agent!==`forgeqe`);return t?s(t):void 0}if(!n||!o||o===`forgeqe`)return;let c=[...e.steps].reverse().find(e=>e.status===`running`);return c||=a(e,{key:`ag:${o}:${e.steps.length}`,label:Qn(o).name,status:`running`,orb:`handing`,agent:o}),c.agent??=o,s(c)},s=e=>{let t=e.children??=[],n=t.at(-1);return n&&n.key.startsWith(`try:`)&&n.status===`running`?n.children??=[]:t},c=(e,t)=>{let n=e?.children?.at(-1);if(!n||!n.key.startsWith(`try:`)||n.status!==`running`)return;let r=[...n.children||[]].reverse().find(e=>e.key.startsWith(`t:`)||!!e.review),i=t??(r?r.review?r.review.approved:r.status===`ok`:void 0);n.status=i===void 0?`info`:i?`ok`:`fail`},l,u=new Map,d=new Map,f=0,p=e=>{let n=t.agents??=[],r=n.find(t=>t.agent===e);return r||n.push(r={agent:e,usage:{input:0,output:0},at:0}),r.at=++f,r},m=(e,n,r)=>{let s=Q(n.kind),f=Q(n.id);if((s===`start`||s===`tool`)&&fs.test(Q(n.tool))&&!Ss(Q(n.tool)))return;let m=o(e,n,r),h=Z(n.delegate),g=Q(n.tool)||Q(n.text),_=Q(h.agent)?{agent:Q(h.agent),task:Q(h.task)}:!r&&!m?ys(Q(n.tool)):void 0;if(s===`start`){if(_)a(e,{key:`c:${f}`,label:`Hands off to ${$n(Qn(_.agent).name)}`,arg:_.task||void 0,status:`running`,orb:`handing`,agent:_.agent,handoff:_,children:[]},m);else{let{label:t,orb:r}=Ds(g),i=m?void 0:_s(Q(n.tool));a(e,{key:`c:${f}`,label:t,arg:Q(n.text)&&Q(n.text)!==Q(n.tool)?Q(n.text):void 0,status:`running`,orb:r,icon:ms(g),...i?{agent:i}:{}},m)}}else if(s===`tool`){n.ok!==!1&&Q(n.tool)&&cs(t.uses??={skills:[],knowledge:[],systems:[]},Q(n.tool),Q(n.skill));let r=f?i(e,`c:${f}`):void 0,o=Z(n.file),s=Cs(n.change);if(s&&Q(o.path)){let t=e.changes.find(e=>e.path===Q(o.path));t?Object.assign(t,{diff:`${t.diff}\n${s.diff}`,added:t.added+s.added,removed:t.removed+s.removed}):e.changes.push({path:Q(o.path),...s,...Q(n.agent)?{agent:Q(n.agent)}:{}})}if(r)r.status=n.ok===!1?`fail`:`ok`,r.handoff&&Q(h.result)&&(r.handoff.result=Q(h.result));else if(_)a(e,{key:`c:${f||e.steps.length}`,label:`Hands off to ${$n(Qn(_.agent).name)}`,arg:_.task||void 0,status:n.ok===!1?`fail`:`ok`,orb:`handing`,agent:_.agent,handoff:{..._,...Q(h.result)?{result:Q(h.result)}:{}},children:[]},m);else{let{label:t,orb:r}=Ds(g),i=m?void 0:_s(Q(n.tool));a(e,{key:`c:${f||e.steps.length}`,label:t,arg:Q(o.path)||Q(n.text)||void 0,status:n.ok===!1?`fail`:`ok`,orb:r,icon:ms(g),...i?{agent:i}:{},...s?{change:s}:{}},m)}r&&s&&(r.change=s)}else if(s===`stream`||s===`say`){if(r)return;let t=e.parts.find(e=>e.id===f);t?t.text=s===`say`?Q(n.text):t.text+Q(n.text):e.parts.push({id:f||`p${e.parts.length}`,text:Q(n.text)})}else if(s===`plan`){if(m||n.agent&&n.agent!==`forgeqe`)return;let t=Array.isArray(n.items)?n.items.map(Z):[],r=e=>e===`completed`?`done`:e===`in_progress`?`active`:e===`cancelled`?`skipped`:`pending`;e.plan=t.map(e=>({text:Q(e.text),status:r(e.status)})).filter(e=>e.text)}else if(s===`test`){let t=Number(n.attempt)||0;if(t>0){let{summary:r,detail:i}=hs(Q(n.text));a(e,{key:`t:${t}:${e.steps.length}`,label:`Test, attempt ${t}`,arg:r||void 0,status:n.ok?`ok`:`fail`,orb:`retrying`,icon:`test`,...i?{output:i}:{},...l?{command:l}:{}},m),l=void 0}else if(n.ok&&/\bconnected$/i.test(Q(n.text)))return;else a(e,{key:`t:${e.steps.length}`,label:Q(n.text)||(n.ok?`Checked`:`Check failed`),status:n.ok?`ok`:`fail`,orb:/connect|mcp/i.test(Q(n.text))?`waiting`:`working`},m)}else if(s===`attempt`){let t=[...e.steps].reverse().find(e=>e.status===`running`&&!!e.agent&&e.agent!==`forgeqe`);if(!t)return;c(t);let r=Q(n.fixing)||Q(n.why);(t.children??=[]).push({key:`try:${Q(n.attempt)}:${t.children.length}`,label:`Attempt ${Q(n.attempt)} of ${Q(n.max)}`,arg:r?r.length>120?`${r.slice(0,119)}…`:r:void 0,status:`running`,orb:`retrying`,icon:`retry`,lines:r.length>120?[{text:r}]:[],children:[]})}else if(s===`review`){let t=(Array.isArray(n.issues)?n.issues:[]).map(Z).map(e=>({kind:Q(e.kind)===`standards`?`standards`:`correctness`,...Q(e.file)?{file:Q(e.file)}:{},problem:Q(e.problem),...Q(e.fix)?{fix:Q(e.fix)}:{}})).filter(e=>e.problem).slice(0,20),r=n.approved===!0,i=(m??e.steps).length;a(e,{key:`r:${Q(n.attempt)}:${i}`,label:r?`Review approved`:`Review asked for changes`,arg:t.length?`${t.length} ${t.length===1?`issue`:`issues`}`:void 0,status:r?`ok`:`fail`,orb:`thinking`,agent:`forgeqe-review`,icon:`review`,review:{approved:r,summary:Q(n.summary),issues:t}},m)}else if(s===`context`||s===`usage`){let e=Q(n.agent)||`forgeqe`,r=p(e);s===`context`&&typeof n.tokens==`number`&&typeof n.limit==`number`&&(r.context={tokens:n.tokens,limit:n.limit,compactsAt:typeof n.compactsAt==`number`?n.compactsAt:void 0},e===`forgeqe`&&(t.context=r.context));let i=s===`usage`?rs(n.usage):void 0;if(i){let n=u.get(e);n&&(i.input<n.input||i.output<n.output)&&d.set(e,is(d.get(e),n)),u.set(e,i),r.usage=is(d.get(e),i),t.usage=(t.agents||[]).reduce((e,t)=>is(e,t.usage),void 0)}}else if(s===`info`){let t=(m??e.steps).at(-1),r=/^ForgeQE runs the test:\s*([\s\S]+)$/.exec(Q(n.text));r?l=r[1].trim():t&&t.lines.push({text:Q(n.text)})}},h,g=(e,n)=>{let r=Q(n.type);if(r===`docs`)return ls(t.uses??={skills:[],knowledge:[],systems:[]},n);if(r===`ui-action`){let t=Zo(n);t&&!e.actions.some(e=>e.id===t.id)&&e.actions.push(t)}else if(r===`run-start`)a(e,{key:`run:${e.steps.length}`,label:`Running in the browser`,arg:Q(n.goal),status:`running`,orb:`browsing`,agent:`engine`});else if(r===`run-event`){let t=[...e.steps].reverse().find(e=>e.key.startsWith(`run:`)),r=Z(n.event);if(!t)return;r.type===`outcome`?t.lines.push({text:`Step ${Q(r.step)}: ${Q(r.action)||Q(r.text)}`,ok:r.ok===!0||r.ok!==!1&&void 0}):r.type===`log`&&(r.level!==`info`||r.progress)&&t.lines.push({text:Q(r.text),ok:r.level!==`error`&&void 0})}else if(r===`run-done`){let t=[...e.steps].reverse().find(e=>e.key.startsWith(`run:`)&&e.status===`running`),r=Z(n.result),i=!n.error&&(r.outcome===`passed`||!r.outcome&&r.status===`complete`);if(t){t.status=i?`ok`:`fail`;let e=Q(n.error)||Q(r.summary);e&&t.lines.push({text:e,ok:!!i})}Q(n.runDir)&&e.reports.push({label:i?`Browser run report`:`Browser run report (failed)`,path:Q(n.runDir)})}else if(r===`suite-start`){let t=Array.isArray(n.cases)?n.cases:[];a(e,{key:`suite:${e.steps.length}`,label:`Running ${t.length} test case${t.length===1?``:`s`}`,status:`running`,orb:`working`,agent:`engine`})}else if(r===`suite-event`){let t=[...e.steps].reverse().find(e=>e.key.startsWith(`suite:`)),r=Z(n.event);if(t&&r.type===`case-done`){let e=Z(r.result);t.lines.push({text:`${ks(e.case)}: ${Q(e.status)}`,ok:e.status===`passed`})}}else if(r===`suite-done`){let t=[...e.steps].reverse().find(e=>e.key.startsWith(`suite:`)),r=Array.isArray(Z(n.suite).results)?Z(n.suite).results.map(Z):[];if(t){let e=r.filter(e=>e.status!==`passed`).length;t.status=e?`fail`:`ok`,t.arg=`${r.length-e} of ${r.length} passed`}}else if(r===`card`){let t=Z(n.card);a(e,{key:`card:${e.steps.length}`,label:Q(t.title),arg:Q(t.stats)||void 0,status:t.status===`ok`?`ok`:t.status===`fail`?`fail`:`info`,orb:`working`,lines:(Array.isArray(t.body)?t.body:[]).map(e=>({text:Q(e)}))})}else if(r===`call-start`&&!n.quiet)a(e,{key:`call:${Q(n.id)}`,label:Q(n.text),status:`running`,orb:`working`});else if(r===`call`&&!n.quiet){let t=n.id?i(e,`call:${Q(n.id)}`):void 0;t?t.status=n.ok===!1?`fail`:`ok`:a(e,{key:`call:${e.steps.length}`,label:Q(n.text),status:n.ok===!1?`fail`:`ok`,orb:`working`})}else if(r===`code-start`)h=Q(n.runDir)||void 0,a(e,{key:`code:${e.steps.length}`,label:`Hands off to Quill`,arg:Q(n.goal),status:`running`,orb:`writing`,agent:`forgeqe-test`,handoff:{agent:`forgeqe-test`,task:Q(n.goal)},children:[]});else if(r===`code-done`){let t=[...e.steps].reverse().find(e=>e.key.startsWith(`code:`)&&e.status===`running`);c(t),t&&(t.status=n.error?`fail`:`ok`,n.error&&t.lines.push({text:Q(n.error),ok:!1}));let r=[],i=(e=[])=>e.forEach(e=>(r.push(e),i(e.children)));i(t?.children);let a=r.filter(e=>e.key.startsWith(`t:`)),o=r.filter(e=>e.review);e.tests.push({...Ts(Z(n.result),Q(n.error),h),...t?{runs:a.length,failedRuns:a.filter(e=>e.status===`fail`).length,reviews:o.length}:{},...o.length?{review:o.at(-1).review}:{}}),h=void 0}else if(r===`agent`)m(e,Z(n.event),!0);else if(r===`info`){let t=e.steps.at(-1);t?t.lines.push({text:Q(n.text),ok:n.ok===!0||n.ok!==!1&&void 0}):a(e,{key:`info:${e.steps.length}`,label:Q(n.text),status:n.ok===!1?`fail`:`info`,orb:`working`})}else r===`report`&&(a(e,{key:`report:${e.steps.length}`,label:`Report saved`,arg:Q(n.title),status:`ok`,orb:`working`}),Q(n.html)&&e.reports.push({label:Q(n.title)||`Report`,path:Q(n.html)}))};for(let r of e){_(r);let e=Wo(r);e&&(typeof r.id==`string`&&n.get(r.id)||typeof r.turn==`string`&&n.get(r.turn)||t.turns.at(-1))?.log.push(e)}return t;function _(e){switch(e.type){case`user`:{let r=Os(Q(e.id),Q(e.text));t.turns.push(r),n.set(r.id,r);break}case`ready`:{t.ended=void 0,t.fatal=void 0;let n=Z(e.profile);n.name&&(t.model={name:Q(n.name),provider:Q(n.provider)}),t.writeTests=e.writeTests!==!1,t.headed=e.headed===!0;break}case`models`:case`model`:{let n=Z(e.profile);n.name&&(t.model={name:Q(n.name),provider:Q(n.provider)}),e.type===`models`&&Array.isArray(e.models)&&(t.models=e.models.map(e=>({name:Q(Z(e).name),provider:Q(Z(e).provider)})).filter(e=>e.name));break}case`settings`:typeof e.writeTests==`boolean`&&(t.writeTests=e.writeTests),typeof e.headed==`boolean`&&(t.headed=e.headed);break;case`turn_start`:{let t=r(e.id);t&&(t.started=Q(e.t)||Q(e.at));break}case`agent`:{let t=r(e.id);t&&m(t,Z(e.event),!1);break}case`tool`:{let t=r(e.id);t&&g(t,Z(e.event));break}case`ask`:{let t=r(e.turn),n=Z(e.question);t?.asks.push({id:Q(e.id),title:Q(n.title),detail:Q(n.detail)||void 0,lines:Array.isArray(n.lines)?n.lines.map(Q):[],options:(Array.isArray(n.options)?n.options:[]).map(e=>({id:Q(Z(e).id),label:Q(Z(e).label)}))});break}case`wait`:r(e.turn)?.waits.push({id:Q(e.id),prompt:Q(e.prompt)});break;case`answered`:for(let n of t.turns){let t=n.asks.find(t=>t.id===e.ask);t&&(t.answer=Q(e.label));let r=n.waits.find(t=>t.id===e.ask);r&&(r.answer=e.ok===!0)}break;case`turn_done`:{let n=r(e.id);if(!n)break;n.outcome=e.outcome,n.reply=Q(e.reply),n.next=Es(e.next),n.error=Q(e.error)||void 0,n.ended=Q(e.t)||Q(e.at),t.agents?.length||(t.usage=rs(e.usage)??t.usage);let i=e=>{for(let t of e)t.status===`running`&&(t.status=n.outcome===`done`?`ok`:`info`),t.children&&i(t.children)};if(i(n.steps),n.outcome===`done`)for(let e of n.plan)e.status===`active`&&(e.status=`done`);break}case`error`:e.code!==`busy`&&t.notes.push(Q(e.message));break;case`fatal`:t.fatal=Q(e.message);break;case`exit`:t.ended={code:typeof e.code==`number`?e.code:null,stderr:Array.isArray(e.stderr)?e.stderr.map(Q):void 0,message:Q(e.message)||void 0}}}}function js(e){let t=e.asks.find(e=>e.answer===void 0),n=e.waits.find(e=>e.answer===void 0);if(t||n)return{text:`Waiting for you…`,orb:`waiting`};let r=[...e.steps].reverse().find(e=>e.status===`running`);return r?{text:`${r.label}…`,orb:r.orb}:e.parts.some(e=>e.text.trim())&&e.steps.length?{text:`Writing a reply…`,orb:`writing`}:{text:`Thinking…`,orb:`thinking`}}function Ms(e){if(!e.started||!e.ended)return`Done`;let t=Math.max(1,Math.round((Date.parse(e.ended)-Date.parse(e.started))/1e3)),n=e.outcome===`stopped`?`Stopped after`:`Worked for`;return t<60?`${n} ${t} second${t===1?``:`s`}`:`${n} ${Math.floor(t/60)} min ${t%60} s`}var Ns={running:`active`,ok:`done`,fail:`failed`,info:`note`};function Ps(e,t){let n=e=>e===`active`&&!t?`done`:e;if(!e.plan.length)return e.steps.map(e=>({key:e.key,label:e.label,status:n(Ns[e.status]),steps:[],step:e}));let r=new Set(e.plan.map(e=>e.text)),i=new Map,a=``;for(let t of e.steps)t.phase&&r.has(t.phase)&&(a=t.phase),i.set(a,[...i.get(a)||[],t]);let o=e=>e.some(e=>e.status===`running`),s=[],c=i.get(``)||[];c.length&&s.push({key:`plan:start`,label:`Getting started`,status:n(o(c)?`active`:`done`),steps:c});let l=e.plan.map((e,n)=>{let r=i.get(e.text)||[],a=e.status===`done`?`done`:e.status===`skipped`?`skipped`:e.status===`active`||o(r)?`active`:`pending`;return{key:`plan:${n}`,label:e.text,status:a===`active`&&!t?`pending`:a,steps:r}});return[...s,...Fs(l)]}function Fs(e){let t=e.findIndex(e=>e.status===`active`);return t<0?e:e.map((e,n)=>e.status===`skipped`||e.status===`failed`||n===t?e:{...e,status:n<t?`done`:`pending`})}var Is=[{id:`en`,label:`English`},{id:`hi`,label:`हिन्दी`}],Ls=e=>e.startsWith(`h`);function Rs(e,t,n){return/[\u0900-\u097F]/.test(e)?n:t}function zs(e){if(/^(?:(?:इसे|ये|यह|अब)\s+)?भेज(?:ो|\s+दो|\s+दीजिए|\s+दें)[\s।.!]*$/.test(e.trim()))return!0;let t=e.toLowerCase().replace(/[^a-z' ]+/g,` `).replace(/\s+/g,` `).trim();return/^(?:(?:ok|okay|now|please) )?(?:send(?: it| that| this| the message)?|submit(?: it)?|go ahead)(?: please| now)?$/.test(t)}var Bs=/\b(?:and|but|or|so|because|since|if|when|while|unless|until|with|without|from|to|for|of|in|on|at|by|about|the|a|an|my|our|their|its|that|this|these|those|which|who|than|then|also|plus|like|um|uh|erm|er)$/i,Vs=/(?:और|लेकिन|क्योंकि|जब|अगर|या|फिर)$/;function Hs(e){let t=e.trim().replace(/\s+/g,` `);if(!t||/[.!?।]$/.test(t))return!1;if(t.endsWith(`,`)||t.endsWith(`—`)||t.endsWith(`-`))return!0;let n=t.replace(/[^\p{L}\p{N}\s]+$/gu,``).split(` `).at(-1)??``;return Bs.test(n)||Vs.test(n)}function Us(e){let t=e.trim();return t.length>240||/^\s*(?:[-*+] |\d+[.)] |\||```|~~~|#)/m.test(t)?!1:(t.match(/[.!?।](?:\s|$)/g)||[]).length<=2}var Ws=e=>e.toLowerCase().replace(/[^a-z0-9' ]+/g,` `).replace(/\s+/g,` `).trim(),Gs=/\b(?:the|my|a|an|page|screen|tab|please|for me|now)\b/g,Ks=8;function qs(e){let t=Ws(e).replace(/^(?:(?:ok|okay|hey|please|can you|could you)\s+)+/,``);if(!t||t.split(` `).length>Ks)return null;if(/^(?:stop (?:talking|listening)|turn off talk|talk off)$/.test(t))return{kind:`stop`};if(/^(?:go back|back|previous page)$/.test(t))return{kind:`back`};if(/^(?:(?:start|open) (?:a )?new chat|new chat|go home|home)$/.test(t))return{kind:`new-chat`};let n=/^(?:open|go to|goto|show(?: me)?|take me to|navigate to|switch to|bring up)\s+(.+)$/.exec(t);if(n){let e=n[1];if(/^(?:the |my )?(?:last|latest|most recent|newest) (?:test )?run$/.test(e))return{kind:`last-run`};if(/^(?:the |my )?(?:last|latest|most recent|previous) chat$/.test(e))return{kind:`last-chat`};let t=e.replace(Gs,` `).replace(/\s+/g,` `).trim();return t&&!/\d/.test(t)?{kind:`open`,what:t}:null}let r=/^(?:find|search(?: for)?|look up|look for)\s+(.+)$/.exec(t);if(r){let e=r[1].replace(Gs,` `).replace(/\s+/g,` `).trim();return e&&!/\d/.test(e)?{kind:`find`,what:e}:null}return null}var Js=new Set([`hey`,`hi`,`hay`,`hei`,`ok`,`okay`,`a`,`he`,`hello`]),Ys=.75,Xs=40;function Zs(e){let t=e.replace(/[^\p{L}\p{N} ]+/gu,` `).replace(/\s+/g,` `).trim();return t.replace(/\s/g,``).length>=3&&t.length<=Xs?t:null}var Qs=e=>e.toLowerCase().normalize(`NFKD`).replace(/[^a-z0-9]+/g,``);function $s(e,t){if(!e||!t)return 0;let n=Array.from({length:t.length+1},(e,t)=>t);for(let r=1;r<=e.length;r++){let i=n[0];n[0]=r;for(let a=1;a<=t.length;a++){let o=n[a];n[a]=Math.min(n[a]+1,n[a-1]+1,i+(e[r-1]===t[a-1]?0:1)),i=o}}return 1-n[t.length]/Math.max(e.length,t.length)}function ec(e,t){let n=e.trim().split(/\s+/).filter(Boolean),r=(Zs(t)||``).split(` `).filter(Boolean);if(!n.length||!r.length)return null;let i=Js.has(Qs(r[0]))&&r.length>1,a=Qs((i?r.slice(1):r).join(``)),o=e=>{for(let t=1;t<=Math.min(n.length-e,r.length+2);t++)if($s(Qs(n.slice(e,e+t).join(``)),a)>=Ys)return e+t;return 0},s=i&&n.length>1&&Js.has(Qs(n[0]))?o(1):0;return!s&&(!i||a.length>=5)&&(s=o(0)),s?{rest:n.slice(s).join(` `).replace(/^[\s,.!?;:—-]+/,``).trim(),words:s}:null}var tc=140,nc=40,rc=/\s+(?=(?:and|but|or|because|so|which|with|from|on|in|for|after|before|when|while|until)\s)/gi;function ic(e){return(e.match(/"/g)??[]).length%2==1||(e.match(/“/g)??[]).length>(e.match(/”/g)??[]).length}function ac(e,t){for(let t of[/(?<=[;:])\s+/,/(?<=,)\s+/]){let n=e.split(t).filter(Boolean);if(n.length>1)return n}if(!t)return null;let n=[],r=0;for(let t of e.matchAll(rc)){let i=t.index;i===0||ic(e.slice(0,i))||(n.push(e.slice(r,i).trim()),r=i)}n.push(e.slice(r).trim());let i=n.filter(Boolean);return i.length>1?i:null}function oc(e){let t=e.split(/\n+/).flatMap(e=>e.match(/(?:[^.!?।]|(?<=\d)\.(?=\d))+(?:[.!?।]+|$)/g)??[]).map(e=>e.trim()).filter(Boolean),n=[],r=()=>tc,i=``;for(;t.length;){let e=t.shift();if(i&&i.length+1+e.length<=r()){i=`${i} ${e}`;continue}i&&=(n.push(i),``);let a=e.length>r()?ac(e,!n.length||n.at(-1).length<nc):null;a?t.unshift(...a):i=e}return i&&n.push(i),n}var sc=16e3;function cc(e,t){if(!e.length||!(t>0))return new Int16Array;let n=t/sc,r=Math.floor(e.length/n),i=new Int16Array(r);for(let t=0;t<r;t++){let r=Math.floor(t*n),a=Math.max(r+1,Math.floor((t+1)*n)),o=0;for(let t=r;t<a;t++)o+=e[t]??0;let s=Math.max(-1,Math.min(1,o/(a-r)));i[t]=Math.round(s<0?s*32768:s*32767)}return i}function lc(e){if(!e.length)return 0;let t=0;for(let n of e)t+=(n/32768)**2;return Math.sqrt(t/e.length)}function uc(e={}){let t=320/sc*1e3,n=Math.round((e.preRollMs??300)/t),r=Math.round((e.endMs??800)/t),i=Math.round((e.pauseMs??300)/t),a=Math.round((e.maxSeconds??30)*1e3/t)-n,o=e.startFrames??3,s=0,c=.004,l=0,u=0,d=!1,f=[],p=[],m=e=>{let t=new Int16Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t};return{setStartFrames(e){o=Math.max(1,Math.floor(e))},mark(){return s},speaking(){return d},finish(){l=0,u=0,d=!1,p=[]},reset(){l=0,u=0,d=!1,f=[],p=[]},push(e){let t=lc(e),h=Math.max(.012,c*3);if(!d)return f.push(e),f.length>n+o&&f.shift(),t>h?l++:(l=0,c=c*.95+t*.05),l>=o?(d=!0,p=f,f=[],u=0,s=0,{kind:`start`}):null;if(p.push(e),t>h*.6?(u=0,s++):u++,u>=r||p.length>=a){let e=m(p);return d=!1,l=0,u=0,p=[],{kind:`end`,pcm:e,mark:s}}return u===i&&i<r?{kind:`pause`,pcm:m(p),mark:s}:null}}}function dc(e){let t=/^([abh])([fm])_([a-z]+)$/.exec(e);return t?`${t[3].charAt(0).toUpperCase()+t[3].slice(1)} (${t[1]===`a`?`American`:t[1]===`b`?`British`:`Hindi`}, ${t[2]===`f`?`female`:`male`})`:e}var fc=Object.freeze([{id:`browser_window`,label:`the browser window while tests run`,hi:`टेस्ट के समय ब्राउज़र विंडो`,project:!0},{id:`desktop_replay`,label:`desktop replays`,hi:`डेस्कटॉप रीप्ले`,project:!0},{id:`mobile_window`,label:`mobile emulators`,hi:`मोबाइल एमुलेटर`,project:!0},{id:`model`,label:`the model in use`,hi:`चालू मॉडल`,project:!0},{id:`environment`,label:`the test environment`,hi:`टेस्ट एनवायरनमेंट`,project:!0},{id:`theme`,label:`light or dark`,hi:`लाइट या डार्क`,project:!1},{id:`language`,label:`Talk's language`,hi:`टॉक की भाषा`,project:!1},{id:`wake_word`,label:`the wake word`,hi:`वेक वर्ड`,project:!1},{id:`voice`,label:`Talk's voice`,hi:`टॉक की आवाज़`,project:!1}]),pc=/\bprod(?:uction)?\b/i,mc=e=>e.toLowerCase().replace(/[^\p{L}\p{M}\p{N}]+/gu,` `).trim();function hc(e){return[`browser_window: shown, hidden`,`desktop_replay: headed (uses the mouse and keyboard), headless`,`mobile_window: shown, hidden`,`model: ${e.models.filter(e=>!pc.test(e)).join(`, `)||`(none)`}`,`environment: ${e.environments.filter(e=>!pc.test(e)).join(`, `)||`(none)`}`,`theme: light, dark, system`,`language: English, Hindi`,`wake_word: on, off`,`voice: ${e.voices.map(e=>dc(e).split(` `)[0]).join(`, `)}`]}function gc(e,t){let n=/^\s*([a-z_]+)\s*[:=]\s*(.+?)\s*$/i.exec(e),r=n&&fc.find(e=>e.id===n[1].toLowerCase());if(!n||!r)return`Talk can change only these settings: the browser window, desktop replays, mobile emulators, the model in use, the test environment, light or dark, its language, voice and wake word. The rest is in Settings.`;let i=mc(n[2]);switch(r.id){case`browser_window`:if(/^(shown|show|visible|on|headed)$/.test(i))return{setting:r,value:!1,said:`shown`};if(/^(hidden|hide|headless|off)$/.test(i))return{setting:r,value:!0,said:`hidden`};break;case`desktop_replay`:if(/^(headed|mouse|with the mouse|mouse and keyboard|on)$/.test(i)||/\bmouse\b/.test(i))return{setting:r,value:!0,said:`headed`};if(/^(headless|without|off|no mouse)$/.test(i))return{setting:r,value:!1,said:`headless`};break;case`mobile_window`:if(/^(shown|show|visible|on|headed)$/.test(i))return{setting:r,value:!1,said:`shown`};if(/^(hidden|hide|headless|off)$/.test(i))return{setting:r,value:!0,said:`hidden`};break;case`model`:{let e=t.models.filter(e=>!pc.test(e)&&i.length>=3&&mc(e).includes(i)),a=t.models.find(e=>mc(e)===i)??(e.length===1?e[0]:void 0);return a&&!pc.test(a)?{setting:r,value:a,said:a}:`No model profile is called “${n[2]}”. The profiles are: ${t.models.filter(e=>!pc.test(e)).join(`, `)||`none`}.`}case`environment`:{let e=t.environments.filter(e=>!pc.test(e)&&i.length>=2&&mc(e).includes(i)),a=t.environments.find(e=>mc(e)===i)??(e.length===1?e[0]:void 0);return a&&!pc.test(a)?{setting:r,value:a,said:a}:pc.test(n[2])?`Talk never switches to an environment named like production.`:`No environment is called “${n[2]}”. The environments are: ${t.environments.filter(e=>!pc.test(e)).join(`, `)||`none`}.`}case`theme`:if(/^(light|dark|system)$/.test(i))return{setting:r,value:i,said:i};break;case`language`:if(/^(english|en)$/.test(i))return{setting:r,value:`en`,said:`English`};if(/^(hindi|hi|हिन्दी|हिंदी)$/.test(i))return{setting:r,value:`hi`,said:`Hindi`};break;case`wake_word`:if(/^(on|yes|true)$/.test(i))return{setting:r,value:!0,said:`on`};if(/^(off|no|false)$/.test(i))return{setting:r,value:!1,said:`off`};break;case`voice`:{let e=t.voices.find(e=>mc(dc(e).split(` `)[0])===i||e===i);if(e)return{setting:r,value:e,said:dc(e).split(` `)[0]};break}}return`${r.label.charAt(0).toUpperCase()}${r.label.slice(1)} cannot be “${n[2]}”.`}function _c(e){let t=e.toLowerCase().replace(/[^\p{L}\p{M}\p{N}' ]+/gu,` `).replace(/\s+/g,` `).trim();return/^(?:(?:yes|yeah|yep|yup|sure|ok|okay)(?: please| do it| save it)?|do it|save it|go ahead|confirm|हाँ|हां|जी हाँ|जी हां|हाँ जी|ठीक है|कर दो|कर दीजिए)$/u.test(t)?`yes`:/^(?:no|nope|no thanks|cancel|don't|do not|leave it|never mind|नहीं|ना|रहने दो|मत करो)$/u.test(t)?`no`:null}var vc=/^\s*(?:[-*>]\s*)?(?:\*\*|__)?\s*(?:sources?|evidence|references?|refs?)\s*(?:\*\*|__)?\s*:/i;function yc(e){let t=[],n=[],r=!1;for(let i of e.split(`
7
+ `))/^\s*(```|~~~)/.test(i)&&(r=!r),!r&&vc.test(i)?n.push(i.trim()):t.push(i);return{body:t.join(`
8
8
  `).replace(/\n{3,}/g,`
9
9
 
10
10
  `).trimEnd(),sources:n.join(`
11
11
 
12
- `)}}var yc=/\bprod(?:uction)?\b/i,bc=6,xc=[`first`,`second`,`third`,`fourth`,`fifth`,`sixth`],Sc=e=>e.toLowerCase().replace(/[^\p{L}\p{M}\p{N}' ]+/gu,` `).replace(/\s+/g,` `).trim();function Cc(e){if(!e.options.length||e.options.length>bc)return!1;let t=[e.title,e.detail??``,...e.lines,...e.options.map(e=>e.label)].join(`
13
- `);return!yc.test(t)}var wc=e=>e.label.replace(/[`*_#>[\]()]/g,``).replace(/\s+/g,` `).trim();function Tc(e){let t=(e.detail??``).replace(/\s+/g,` `).match(/^[^.!?]{1,200}[.!?]/)?.[0]??``,n=e.options.map(wc),r=n.length>1?`${n.slice(0,-1).join(`, `)} or ${n.at(-1)}`:n[0];return`ForgeQE asks: ${e.title.replace(/[.?!:\s]+$/,``)}? ${t} Say ${r}.`.replace(/\s+/g,` `).trim()}function Ec(e,t){let n=Sc(e).replace(/^(?:the |i choose |choose |pick |option )/,``);if(!n)return null;let r=t.filter(e=>Sc(wc(e))===n);if(r.length===1)return r[0];let i=xc.findIndex(e=>RegExp(`^${e}(?: one| option)?$`).test(n));if(i>=0&&i<t.length)return t[i];let a=t.filter(e=>n.split(` `).length>=1&&n.length>=2&&Sc(wc(e)).startsWith(n));return a.length===1?a[0]:null}var Dc=e=>`You chose “${wc(e)}”. Say yes to send it, or no.`,Oc=e=>`I did not hear one of the options. Say ${e.options.map(wc).join(`, `)}, or answer with a click.`,kc=8,Ac=/\b(?:and|then|after|afterwards|also|but|before|if|why|what|how|which|when)\b/,jc=e=>e.toLowerCase().replace(/[^a-z0-9' -]+/g,` `).replace(/\s+/g,` `).trim().replace(/^(?:(?:ok|okay|hey|please|can you|could you|would you)\s+)+/,``).replace(/\s+(?:please|for me|now)$/,``);function Mc(e){let t;return(t=/^(?:switch to|turn on|use|go|make it|change the theme to|set the theme to|change to)\s+(dark|light)(?:\s+(?:mode|theme))?$/.exec(e))||(t=/^(dark|light)\s+(?:mode|theme)$/.exec(e))?`theme: ${t[1]}`:/^(?:use|switch to)\s+the\s+system(?:'s)?\s+theme$/.test(e)?`theme: system`:(t=/^(hide|show)\s+the\s+browser(?:\s+window)?\s+(?:while|during|when)\s+(?:the\s+)?tests?(?:\s+run(?:s|ning)?)?$/.exec(e))?`browser_window: ${t[1]===`hide`?`hidden`:`shown`}`:(t=/^(?:switch|change|go|move)\s+to\s+(?:the\s+)?([a-z0-9][a-z0-9_-]{0,30})\s+environment$/.exec(e))||(t=/^use\s+(?:the\s+)?([a-z0-9][a-z0-9_-]{0,30})\s+environment$/.exec(e))?`environment: ${t[1]}`:(t=/^(?:change|switch|set)\s+(?:your|talk's|the)\s+voice\s+to\s+([a-z]{2,20})$/.exec(e))?`voice: ${t[1]}`:null}function Nc(e){let t=jc(e);if(!t||t.split(` `).length>kc||/[^\p{L}\p{N}\s'.!?-]/u.test(e)||Ac.test(t))return null;let n=Mc(t);if(n)return{kind:`setting`,what:n};if(/^(?:switch|change)\s+to\b/.test(t))return null;let r=Ks(t);return r&&r.kind!==`find`?r:null}function Pc(e,t){let n=e.trim();return n?gc(n)||Rs(n)?!0:t===`en`&&Nc(n)!==null:!1}var Fc=600,Ic=12,Lc=/[ऀ-ॿ]/,Rc=e=>e.slice(0,Fc).toLowerCase().replace(/[\u2018\u2019\u02bc\u00b4`]/g,`'`).replace(/[^\p{L}\p{N}' ]+/gu,` `).replace(/\s+/g,` `).trim(),zc=/^(?:(?:ok|okay|now|so|and|then|please|hey|just) )*(?:open|close|show|go to|goto|take me to|navigate to|switch to|bring up|find|search|look up|look for|run|rerun|re run|start|stop|cancel|pause|resume|read|write|record|list|filter|sort|change|set|turn|make|give me|tell me|say|repeat|summari[sz]e|explain|describe|send|submit|back|go back|new chat|scroll|click|type)\b/,Bc=/\b(?:can|could|would|will) you\b|\bplease (?:open|close|show|find|run|stop|read|write|tell|give|send|change|set|start|search|list|describe|explain)\b|\bi (?:need|want) you to\b|\blet's (?:open|run|look at|see)\b|\bwhat'?s on (?:this|the) (?:page|screen)\b|\bwhy did (?:it|this|that|the run)\b/,Vc=/\b(?:run|runs|rerun|test|tests|testcase|test case|suite|pack|packs|regression|recording|record|replay|playwright|cypress|selenium|appium|maestro|tosca|ado|azure devops|jira|work item|user story|acceptance criteria|acs|settings|setting|chat|chats|page|agent|agents|report|failure|failed|baseline|evidence|workbench|pipeline|forgeqe|talk)\b/,Hc=/\b(?:you'?re on mute|you are on mute|i'?m on mute|can you hear me|i can'?t hear you|we can'?t hear you|you'?re breaking up|you'?re cutting out|can you see my screen|i'?ll share my screen|let me share my screen|sharing my screen|next slide|let'?s take (?:this|it) offline|let'?s circle back|any questions|over to you|you go (?:first|ahead)|i'?ll drop off|i have to jump|joining in a minute|sorry i was muted|thanks everyone|talk (?:to you )?later|see you (?:then|tomorrow|monday)|bye bye|good ?bye)\b/,Uc=/\b(?:he|she|they|we|everyone|the team|the client|the customer) (?:said|says|told|asked|thinks?|thought|wants?|wanted|needs?|needed|reckons?|mentioned|raised|wrote)\b|\bi (?:was telling|told|asked|was saying|was just saying)\b|\bas (?:he|she|they|we) said\b/,Wc=/^(?:hi|hey|hello|yo|morning|good morning|good afternoon|good evening)\b(?: \p{L}+){0,2}$/u,Gc=/^(?:(?:yeah|yep|yes|yup|no|nope|right|sure|exactly|true|ok|okay|cool|nice|great|fine|alright|mm|mmm|mhm|mm hmm|uh huh|huh|oh|ah|wow|hmm|haha|hahaha|lol|anyway|whatever|i see|i know|of course|got it|makes sense|fair enough|thank you|thanks|sorry|please|well|so|and|but|like|you know)[\s,.!?]*)+$/,Kc=/(?:खोल(?:ो|िए|ें)|दिखा(?:ओ|इए|एँ|ें)|चला(?:ओ|इए|ें)|बता(?:ओ|इए|ें)|भेज(?:ो|िए|ें)|रोक(?:ो|िए|ें)|बंद कर(?:ो|िए)|ढूं?ढ(?:ो|िए)|खोज(?:ो|िए)|लिख(?:ो|िए)|पढ़(?:ो|िए)|सुना(?:ओ|इए)|वापस जाओ|फिर चलाओ)/,qc=/(?:सुनाई दे रहा|आवाज़? (?:आ रही|नहीं आ रही)|म्यूट|स्क्रीन शेयर|बाद में बात|मैं बता रहा था|मैं बता रही थी|उस(?:ने|ने तो) कहा|उन्होंने कहा|नमस्ते|फिर मिलते)/,Jc=/\b(?:i|we|he|she|they|him|her|them|my|our|his|their|everyone|somebody|someone)\b/,Yc=/\b\w+ed\b|\b(?:was|were|had|did|say|said|tell|told|went|gone|got|came|come|saw|seen|thought|knew|felt|made|took|gave)\b/,Xc=/^(?:(?:हाँ|हां|जी|नहीं|अच्छा|ठीक|ठीक है|सही|बिलकुल|अरे|ओह|हम्म|अच्छा जी)[\s,।.!?]*)+$/;function Zc(e){let t=(e??``).slice(0,Fc).trim();if(!t)return{verdict:`ambient`,why:`nothing was said`};let n=Lc.test(t),r=Rc(t);if(!r||!/[\p{L}\p{N}]/u.test(r))return{verdict:`ambient`,why:`no words`};let i=r.split(` `).length;return zc.test(r)?{verdict:`addressed`,why:`an order to the app`}:n&&Kc.test(t)?{verdict:`addressed`,why:`an order to the app, in Hindi`}:Hc.test(r)||n&&qc.test(t)?{verdict:`ambient`,why:`the words of a call`}:Uc.test(r)?{verdict:`ambient`,why:`about what somebody else said`}:Wc.test(r)?{verdict:`ambient`,why:`a greeting to a person`}:Gc.test(r)||n&&Xc.test(t)?{verdict:`ambient`,why:`a word of agreement on its own`}:Bc.test(r)?{verdict:`addressed`,why:`a request of an assistant`}:i>=Ic&&Jc.test(r)&&Yc.test(r)?{verdict:`ambient`,why:`somebody telling what happened`}:Vc.test(r)?{verdict:`unclear`,why:`about the app, but not asking for anything`}:n?{verdict:`unclear`,why:`Hindi with nothing of the app in it`}:{verdict:`unclear`,why:`too little to tell`}}function Qc(e,t,n=!1){return e===`ambient`?{drop:!0,send:!1,agent:!1}:{drop:!1,send:t&&e===`addressed`&&!n,agent:!n&&(e===`addressed`||!t)}}var $c=.25;function el(e){if(!Array.isArray(e)||e.length!==26)return null;let t=[];for(let n of e){if(typeof n!=`number`||!Number.isFinite(n)||Math.abs(n)>1)return null;t.push(n)}return t.some(e=>e!==0)?t:null}function tl(e,t){if(!e||!t||e.length!==t.length||!e.length)return 0;let n=0,r=0,i=0;for(let a=0;a<e.length;a++)n+=e[a]*t[a],r+=e[a]**2,i+=t[a]**2;return!(r>0)||!(i>0)?0:n/Math.sqrt(r*i)}function nl(e,t){if(!e||!t||e.length!==t.length||e.length!==26)return!1;let n=tl(e,t);return n!==0&&n<.6}function rl(e,t){return t?!e||e.length!==t.length?[...t]:e.map((e,n)=>e*.75+t[n]*$c):e?[...e]:null}var il=`forgeqe.talk.voice`,al=`forgeqe.talk.voice.hi`,ol=`forgeqe.talk.language`,sl=`forgeqe.talk.wake`,cl=`forgeqe.talk.wake.phrase`,ll=`forgeqe.talk.wake.resume`,ul=8e3,dl=3e3,fl=2,pl=16e4,ml=8,hl=3,gl=`ForgeQE has a question for you on the screen. Answer it there, and I'll listen again.`,_l=`ForgeQE has a question for you on the screen that needs a click. Answer it there, and I'll listen again.`,vl=`forgeqe.talk.answers`,yl=2e4,bl=3,xl=`forgeqe.talk.autosend`,Sl=`forgeqe.talk.onlyvoice`;function Cl(){try{return localStorage.getItem(xl)===`1`}catch{return!1}}function wl(e){try{return localStorage.getItem(e)}catch{return null}}function Tl(e,t){try{localStorage.setItem(e,t)}catch{}}var El={en:[`Sure.`,`One moment.`,`Let me check.`,`Okay.`],hi:[`ठीक है।`,`एक पल।`]};function Dl(e,t,n,r={}){let[i,a]=(0,L.useState)(`off`),[o,s]=(0,L.useState)(null),[c,l]=(0,L.useState)(``),[u,d]=(0,L.useState)(``),[f,p]=(0,L.useState)(()=>wl(il)||`af_heart`),[m,h]=(0,L.useState)(()=>wl(ol)===`hi`?`hi`:`en`),[g,_]=(0,L.useState)(()=>wl(al)||`hf_alpha`),[v,y]=(0,L.useState)(()=>wl(vl)===`1`),b=(0,L.useRef)(v),x=(0,L.useRef)(null),[ee,S]=(0,L.useState)(()=>wl(sl)===`1`),[C,w]=(0,L.useState)(()=>Xs(wl(cl)||``)||``),T=(0,L.useRef)({on:ee,phrase:C}),E=(0,L.useRef)({on:!1,until:0}),D=(0,L.useRef)(m),te=(0,L.useRef)(g),[O,ne]=(0,L.useState)(()=>Cl()),re=(0,L.useRef)(O),[ie,ae]=(0,L.useState)(()=>wl(Sl)===`1`),oe=(0,L.useRef)(ie),se=(0,L.useRef)(null),ce=(0,L.useRef)(null),le=(0,L.useRef)(void 0),ue=(0,L.useRef)(void 0),de=(0,L.useRef)(n);de.current=n;let k=(0,L.useRef)(`off`),A=(0,L.useRef)(0),fe=(0,L.useRef)(null),pe=(0,L.useRef)(null),me=(0,L.useRef)(lc({startFrames:hl})),he=(0,L.useRef)(void 0),ge=(0,L.useRef)(!1),_e=(0,L.useRef)(f),ve=(0,L.useRef)(t);ve.current=t;let j=(0,L.useRef)(e);j.current=e;let ye=()=>{let e=j.current;return b.current&&!!e.ask&&!!e.answer&&Cc(e.ask)},be=(0,L.useRef)(r.command);be.current=r.command;let xe=(0,L.useRef)(r.summarize);xe.current=r.summarize;let Se=(0,L.useRef)(r.vocabulary);Se.current=r.vocabulary;let Ce=()=>{try{return Se.current?.()??``}catch{return``}},we=(0,L.useRef)(null),Te=(0,L.useRef)(0),Ee=(0,L.useRef)(null),De=(0,L.useRef)(!1),Oe=(0,L.useRef)(-1),ke=(0,L.useRef)(null),Ae=(0,L.useRef)(!1),je=(0,L.useRef)(!1),Me=(0,L.useRef)([]),Ne=(0,L.useRef)(!1),M=(0,L.useCallback)((e,t=!1)=>{let n=e;n===`listening`&&T.current.on&&(E.current.on?E.current.until=Date.now()+ul:n=`sleeping`),n===`thinking`&&T.current.on&&!E.current.on&&(n=`sleeping`),n===`sleeping`&&je.current&&(t=!0),je.current&&(n===`listening`||n===`thinking`||n===`reading`||n===`speaking`)&&(t=!0,n===`listening`&&(n=`hearing`)),t||(je.current=!1),k.current=n,a(n),t||me.current.reset(),me.current.setStartFrames(n===`speaking`?ml:hl)},[]),Pe=(0,L.useRef)([]),Fe=(0,L.useRef)(!1),Ie=(0,L.useRef)({id:``,seen:``,said:0}),Le=()=>{Pe.current=[];let e=pe.current;if(pe.current=null,e){e.onended=null;try{e.stop()}catch{}}},Re=(0,L.useCallback)(()=>{A.current++,Me.current=[],je.current=!1,le.current&&clearTimeout(le.current),le.current=void 0,ce.current=null,se.current=null,Le();let e=fe.current;if(fe.current=null,e){e.node.port.onmessage=null;for(let t of e.stream.getTracks())t.stop();e.ctx.close().catch(()=>{})}},[]),ze=(0,L.useCallback)(e=>{Re(),l(e),M(`error`)},[Re,M]),Be=()=>{x.current=null;let e=j.current.ask;qe(ye()&&e?Tc(e):b.current&&e&&!Cc(e)?_l:gl)},Ve=(0,L.useCallback)(async e=>{let t=fe.current;if(!t)return null;try{let n=await Lt.speak(e.slice(0,yl),Ls(e,_e.current,te.current));return await t.ctx.decodeAudioData(n)}catch(e){return/Nothing to say/.test(e.message)||l(e.message),null}},[]),He=e=>new Promise(t=>{let n=fe.current;if(!n)return t();let r=n.ctx.createBufferSource();r.buffer=e,r.connect(n.ctx.destination),r.onended=()=>{pe.current===r&&(pe.current=null),t()},pe.current=r,r.start()}),Ue=(0,L.useCallback)(async()=>{if(Fe.current)return;Fe.current=!0;let e=A.current,t=()=>Pe.current.length?Ve(Pe.current.shift()):null;try{let n=t();for(;n&&e===A.current;){k.current!==`speaking`&&M(`speaking`);let r=await n;if(e!==A.current||k.current!==`speaking`||(n=t(),ke.current&&await ke.current,ke.current=null,r&&await He(r),k.current!==`speaking`))break}}finally{Fe.current=!1}e===A.current&&k.current===`speaking`&&M(j.current.waiting?`question`:j.current.busy?`thinking`:`listening`)},[M,Ve]),We=()=>`${D.current}|${D.current===`hi`?te.current:_e.current}`,Ge=(0,L.useCallback)(async()=>{let e=We();if(Ee.current?.key!==e&&!De.current&&fe.current){De.current=!0;try{let t=[];for(let e of El[D.current]){for(;(je.current||Ne.current)&&fe.current;)await new Promise(e=>setTimeout(e,300));let n=await Ve(e);n&&t.push(n)}e===We()&&(Ee.current={key:e,bufs:t})}finally{De.current=!1}}},[Ve]),Ke=(0,L.useCallback)(()=>{let e=fe.current,t=Ee.current;if(!e||!t||t.key!==We())return void Ge();if(!t.bufs.length||pe.current||k.current===`speaking`||Pe.current.length)return;let n=Math.floor(Math.random()*t.bufs.length);t.bufs.length>1&&n===Oe.current&&(n=(n+1)%t.bufs.length),Oe.current=n;let r=e.ctx.createBufferSource();r.buffer=t.bufs[n],r.connect(e.ctx.destination),me.current.setStartFrames(ml);let i=new Promise(e=>{r.onended=()=>{pe.current===r&&(pe.current=null),k.current!==`speaking`&&me.current.setStartFrames(hl),e()}});ke.current=Promise.race([i,new Promise(e=>setTimeout(e,r.buffer.duration*1e3+200))]),pe.current=r,r.start()},[Ge]),qe=(0,L.useCallback)(e=>{fe.current&&(Pe.current.push(...ac(e)),Ue())},[Ue]),Je=(0,L.useCallback)((e,t,n,r)=>{if(!n||he.current===e)return;he.current=e,Ie.current={id:e,seen:t,said:0};let i=vc(t).body.trim();if(!i){r&&(Pe.current.push(...ac(r)),Ue());return}if(Hs(i)||!xe.current){Pe.current.push(...ac(i)),Ue();return}let a=A.current;xe.current(i).catch(()=>``).then(t=>{a===A.current&&Ie.current.id===e&&(Pe.current.push(...ac(t.trim()||i)),Ue())})},[Ue]),Ye=()=>{let e=fe.current;if(!e)return;let t=e.ctx.createOscillator(),n=e.ctx.createGain();t.frequency.value=880,n.gain.setValueAtTime(1e-4,e.ctx.currentTime),n.gain.exponentialRampToValueAtTime(.08,e.ctx.currentTime+.02),n.gain.exponentialRampToValueAtTime(1e-4,e.ctx.currentTime+.18),t.connect(n).connect(e.ctx.destination),t.start(),t.stop(e.ctx.currentTime+.2)},Xe=(0,L.useCallback)(()=>{T.current.on&&(E.current={on:!1,until:0},se.current=null),M(`listening`)},[M]),Ze=(0,L.useRef)(void 0),Qe=(0,L.useCallback)(async(e,t={})=>{let n=A.current;try{let r=e.trim();if(!r)return M(`listening`);if(j.current.waiting){let e=j.current,t=e.ask;if(!b.current||!t||!e.answer||!Cc(t))return M(`question`);let n=x.current;if(n&&n.ask===t.id){let i=gc(r);if(i===`yes`)return x.current=null,await e.answer(t.id,n.option.id),M(`question`);if(i===`no`)return x.current=null,qe(`Not sent. ${Tc(t)}`)}let i=Ec(r,t.options);return x.current=i?{ask:t.id,option:i}:null,qe(i?Dc(i):Oc(t))}let i=ce.current;le.current&&clearTimeout(le.current),le.current=void 0,ce.current=null,i&&(r=`${i.text} ${r}`.replace(/\s+/g,` `).trim());let a=!!t.woken||Rs(r)||Ks(r)?.kind===`stop`;if(!a&&!t.final&&Vs(r)&&(i?.times??0)<fl)return ce.current={text:r,times:(i?.times??0)+1},d(r),le.current=setTimeout(()=>{let e=ce.current;ce.current=null,le.current=void 0,e&&n===A.current&&Ze.current?.(e.text,{...t,final:!0})},dl),M(`listening`);let o=a?`addressed`:Zc(r).verdict;o===`addressed`&&t.other&&(o=`unclear`);let s=Qc(o,re.current,t.other);if(s.drop)return d(``),Xe();d(r),l(``);let c=s.send,u=be.current,f=!!de.current&&!c&&Rs(r);if(u&&!f&&s.agent){let e=await u(r,{unclear:o!==`addressed`});if(n!==A.current)return;if(e===null)return d(``),Xe();if(e!==!1)return e?void qe(e):M(`listening`)}let p=de.current;if(p&&!c){if(!Rs(r))return p.add(r.trim()),M(`listening`);M(`thinking`),ge.current=!0;let e=!1;try{e=await p.sendDraft()}finally{!e&&n===A.current&&k.current===`thinking`&&(ge.current=!1,l(`Nothing to send yet: say what you want first.`),M(`listening`))}return}let m=ve.current;if(!m)return l(`Say “open” and a page, setting, agent or the last run. To ask ForgeQE something, open a chat or Home.`),M(`listening`);if(o!==`addressed`)return d(``),Xe();M(`thinking`),ge.current=!0;try{await m(r)}finally{n===A.current&&!j.current.busy&&k.current===`thinking`&&j.current.last?.id===he.current&&(ge.current=!1,M(`listening`))}}catch(e){if(n!==A.current)return;l(e.message),M(`listening`)}},[qe,M,Xe]);Ze.current=Qe;let $e=(0,L.useCallback)(async(e,t)=>{let n=A.current,r=k.current===`sleeping`;if(r&&e.length>pl)return;r||M(`reading`);let i=T.current.on&&oe.current;try{let a,o=!1;if(r){let t=await Lt.transcribe(e,`en`,i,Ce());if(n!==A.current||k.current!==`sleeping`)return;let r=$s(t.text,T.current.phrase||`Hey ${Cn()}`);if(!r||(E.current={on:!0,until:Date.now()+ul},i&&(se.current=el(t.print)),Ye(),a=r.rest,a&&D.current===`hi`&&(M(`reading`),a=(await Lt.transcribe(e,`hi`,!1,Ce())).text.trim().split(/\s+/).slice(r.words).join(` `),n!==A.current)))return;if(!a.trim())return M(`listening`);M(`reading`)}else{let r=performance.now(),s=t!==void 0&&!i?{text:t,print:void 0}:await Lt.transcribe(e,D.current,i,Ce());if(t===void 0&&(Te.current=performance.now()-r),n!==A.current)return;if(a=s.text,!a.trim())return M(`listening`);if(i){let e=el(s.print);o=nl(se.current,e),!o&&e&&(se.current=rl(se.current,e))}}await Qe(a,{other:o,woken:r})}catch(e){if(n!==A.current)return;l(e.message),M(`listening`)}},[Qe,M]),et=(0,L.useCallback)(async(e,t)=>{if(Ne.current){Me.current.length<bl&&Me.current.push({pcm:e,...t===void 0?{}:{known:t}});return}Ne.current=!0;let n=A.current;try{for(await $e(e,t);Me.current.length&&n===A.current&&!j.current.waiting;){let e=Me.current.shift();await $e(e.pcm,e.known)}}finally{Ne.current=!1,n===A.current&&(Me.current=[])}},[$e]),tt=(0,L.useRef)(0),nt=(0,L.useCallback)(async(e,t)=>{if(k.current===`sleeping`||j.current.waiting||T.current.on&&oe.current||Te.current>900||we.current)return;let n=A.current,r=tt.current,i=D.current,a=Lt.transcribe(e,i,!1,Ce()).then(e=>e.text).catch(()=>null);we.current={mark:t,which:r,text:a};let o=await a;n===A.current&&we.current?.which===r&&we.current.mark===t&&(tt.current!==r||me.current.mark()!==t?we.current=null:o!==null&&me.current.speaking()&&Pc(o,i)&&(me.current.finish(),je.current=!1,we.current=null,et(e,o)))},[et]),rt=(0,L.useCallback)(async()=>{let e=A.current;if(M(`starting`),!navigator.mediaDevices?.getUserMedia||typeof AudioWorkletNode>`u`)return ze(`This browser cannot record from the microphone here. Open ForgeQE web in a current Chrome, Edge or Firefox.`);let t;try{t=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,channelCount:1}})}catch{return ze(`The browser did not allow the microphone. Allow it for this page (the icon in the address bar), then turn Talk on again.`)}if(e!==A.current)for(let e of t.getTracks())e.stop();else try{let e=new AudioContext;if(e.state===`suspended`){let t=()=>void e.resume().catch(()=>{});window.addEventListener(`pointerdown`,t,{once:!0}),window.addEventListener(`keydown`,t,{once:!0})}let{default:n}=await yr(async()=>{let{default:e}=await import(`./capture.worklet-UcNywATd.js`);return{default:e}},[]);await e.audioWorklet.addModule(n);let r=e.createMediaStreamSource(t),i=new AudioWorkletNode(e,`forgeqe-capture`),a=e.createGain();a.gain.value=0,r.connect(i),i.connect(a),a.connect(e.destination),fe.current={ctx:e,stream:t,node:i};let o=Math.round(320*e.sampleRate/16e3),s=new Float32Array;i.port.onmessage=t=>{let n=k.current,r=ye();if(n!==`sleeping`&&n!==`listening`&&n!==`hearing`&&n!==`speaking`&&n!==`thinking`&&n!==`reading`&&!(n===`question`&&r)||j.current.waiting&&!r){s=new Float32Array,je.current=!1;return}let i=new Float32Array(s.length+t.data.length);i.set(s),i.set(t.data,s.length);let a=0;for(;i.length-a>=o;){let t=sc(i.subarray(a,a+o),e.sampleRate);a+=o;let n=new Int16Array(320);n.set(t.subarray(0,320));let r=me.current.push(n);if(r?.kind===`start`)tt.current++,we.current=null,je.current=!0,k.current===`speaking`&&Le(),k.current!==`reading`&&k.current!==`sleeping`&&(d(``),M(`hearing`,!0));else if(r?.kind===`pause`)nt(r.pcm,r.mark);else if(r?.kind===`end`){je.current=!1;let e=we.current;we.current=null;let t=r.pcm;e&&e.which===tt.current&&e.mark===r.mark?e.text.then(e=>et(t,e??void 0)):et(t)}}s=i.slice(a)},M(j.current.waiting?`question`:j.current.busy?`thinking`:`listening`),setTimeout(()=>void Ge(),1500),j.current.waiting&&Be()}catch{for(let e of t.getTracks())e.stop();ze(`Talk could not start the microphone's audio in this browser.`)}},[ze,et,M,nt,Ge]),it=(0,L.useCallback)(async()=>{let e=A.current;for(;e===A.current;){if(await new Promise(e=>setTimeout(e,1500)),e!==A.current)return;try{let t=await Lt.view();if(e!==A.current)return;if(s(t),t.setup.running)continue;return t.ready?void rt():ze(t.setup.error||t.error||`Talk's setup did not finish.`)}catch(e){return ze(e.message)}}},[ze,rt]),at=(0,L.useCallback)(async(e={})=>{if(k.current!==`off`&&k.current!==`error`){Re(),M(`off`),Tl(ll,`0`);return}E.current={on:!1,until:0},T.current.on&&Tl(ll,`1`),Re();let t=A.current;l(``),d(``),he.current=e.readCurrent?void 0:j.current.last?.id,M(`checking`);try{let e=await Lt.view();if(t!==A.current)return;s(e),e.voices.length&&(!e.voices.includes(_e.current)||Is(_e.current))&&(_e.current=e.defaultVoice,p(e.defaultVoice));let n=e.voices.find(Is);if(n&&!e.voices.includes(te.current)&&(te.current=n,_(n)),e.ready)return void rt();if(e.setup.running){M(`installing`),it();return}M(`setup`)}catch(e){ze(e.message)}},[Re,ze,it,M,rt]),ot=(0,L.useCallback)(async()=>{M(`installing`);try{s(await Lt.setup()),it()}catch(e){ze(e.message)}},[ze,it,M]),st=(0,L.useCallback)(e=>{re.current=e,ne(e);try{localStorage.setItem(xl,e?`1`:`0`)}catch{}e&&!T.current.on&&ue.current?.(!0)},[]),ct=(0,L.useCallback)(e=>{oe.current=e,ae(e),se.current=null,Tl(Sl,e?`1`:`0`)},[]),lt=(0,L.useCallback)(e=>{if(Is(e))return te.current=e,_(e),Tl(al,e);_e.current=e,p(e),Tl(il,e)},[]),ut=(0,L.useCallback)(e=>{D.current=e,h(e),Tl(ol,e)},[]),dt=(0,L.useCallback)(e=>{T.current.on=e,S(e),Tl(sl,e?`1`:`0`),Tl(ll,e&&k.current!==`off`&&k.current!==`error`?`1`:`0`),E.current={on:!1,until:0},se.current=null,!e&&re.current&&st(!1),(k.current===`listening`||k.current===`sleeping`)&&M(`listening`)},[st,M]);ue.current=dt;let ft=(0,L.useCallback)(e=>{b.current=e,y(e),x.current=null,Tl(vl,e?`1`:`0`)},[]),pt=(0,L.useCallback)(e=>{let t=Xs(e);if(!t)return!1;let n=t===`Hey ${Cn()}`?``:t;return T.current.phrase=n,w(n),Tl(cl,n),!0},[]);(0,L.useEffect)(()=>{if(!ee)return;let e=setInterval(()=>{E.current.on&&k.current===`listening`&&Date.now()>E.current.until&&(E.current.on=!1,se.current=null,M(`listening`))},1e3);return()=>clearInterval(e)},[ee,M]);let[mt,ht]=(0,L.useState)(!1),gt=(0,L.useCallback)(async()=>{ht(!0);try{let e=await Lt.setupHindi();for(s(e);e.setup.running;)await new Promise(e=>setTimeout(e,1500)),e=await Lt.view(),s(e);e.setup.error&&l(e.setup.error)}catch(e){l(e.message)}finally{ht(!1)}},[]),_t=e.key;(0,L.useEffect)(()=>{Ie.current={id:``,seen:``,said:0},Ae.current=!!_t&&!to(_t),_t||(Ae.current=!1)},[_t]);let{busy:vt,waiting:yt}=e,N=e.last;(0,L.useEffect)(()=>{let e=k.current;if(e!==`off`&&e!==`error`&&e!==`checking`&&e!==`setup`&&e!==`installing`&&e!==`starting`){if(yt)e!==`question`&&(Le(),M(`question`),Be());else{if(Ae.current&&N&&(he.current=N.id,Ae.current=!1),N&&N.id!==he.current){let e=N.text??(N.outcome?N.reply??``:``);(e||N.outcome)&&Je(N.id,e,!!N.outcome,N.error||(N.outcome===`stopped`?`Stopped.`:`Done.`))}vt?(ge.current=!1,e!==`thinking`&&e!==`speaking`&&e!==`hearing`&&e!==`reading`&&M(`thinking`)):(N?.outcome&&(ge.current=!1),(e!==`thinking`||ge.current)&&e!==`question`||Pe.current.length||Fe.current||M(`listening`))}}},[vt,yt,N?.id,N?.outcome,N?.reply,N?.error,N?.text,qe,M,Je]),(0,L.useEffect)(()=>Re,[Re]);let[bt,xt]=(0,L.useState)(null),St=(0,L.useCallback)(async()=>{try{let e=await Lt.view();s(e),xt(e.ready)}catch{xt(null)}},[]);(0,L.useEffect)(()=>{St()},[St]),(0,L.useEffect)(()=>{o&&xt(o.ready)},[o]),(0,L.useEffect)(()=>{T.current.on&&wl(ll)===`1`&&at()},[]);let Ct=(0,L.useCallback)(()=>{Re(),l(``),M(`off`)},[Re,M]);return{phase:i,view:o,ready:bt,say:qe,acknowledge:Ke,refreshVoice:St,error:c,heard:u,voiceAnswers:v,setVoiceAnswers:ft,wake:{on:ee,phrase:C||`Hey ${Cn()}`},setWake:dt,setWakePhrase:pt,voice:f,hindiVoice:g,setVoice:lt,language:m,setLanguage:ut,installHindi:gt,hindiSetup:mt,autoSend:O,setAutoSend:st,onlyVoice:ie,setOnlyVoice:ct,dictates:!!n,toggle:at,install:ot,dismiss:Ct,on:i!==`off`&&i!==`error`}}var Ol=`That cannot be done by voice here.`,kl=`Not for Talk: nothing done.`,Al=`ForgeQE is still working on the last request: wait for its answer, or say stop.`,jl=5,Ml=/^(failed|failing|broken)$/i;function Nl(e){let t=Date.parse(e);if(!Number.isFinite(t))return``;let n=Math.round((Date.now()-t)/6e4);return n<60?`${Math.max(n,1)} min ago`:n<1440?`${Math.round(n/60)} h ago`:`${Math.round(n/1440)} days ago`}var Pl=/could not be sent|is empty|has no message box|still working|^Nothing to/;function Fl(e,t){switch(e){case`open`:case`open_run`:case`open_chat`:return/^Opened |is already open\.$/.test(t);case`search`:return/^(?:The search shows|Searching for)/.test(t);case`back`:case`new_chat`:return!0;case`write_in_box`:return/^Written (?:in the message box|and sent)/.test(t)&&!Pl.test(t);case`send_box`:return/^Sent to ForgeQE/.test(t);case`ask_forgeqe`:return!1;case`stop_forgeqe`:return/^Stopped/.test(t);case`change_setting`:return/^Changed /.test(t);case`filter_runs`:return/^Showing /.test(t);case`ignore`:return!0;default:return!1}}function Il(e){let t=/^Opened (?:the (?:run|chat) )?“?(.+?)”?\.$/.exec(e)??/^(.+) is already open\.$/.exec(e);return t?t[1]:null}function Ll(e,t,n,r){if([`write_in_box`,`send_box`,`ask_forgeqe`].includes(t))return Pl.test(n)||/not sent/.test(n)&&(r===`hi`?/भेज/.test(e):/\b(?:send|sent|sending|submit|ask(?:ed|ing)?)\b/i.test(e))?n:e;if(r===`hi`||![`open`,`open_run`,`open_chat`].includes(t))return e;let i=Il(n);return i?e.toLowerCase().includes(i.toLowerCase())?e:n:e}async function Rl(e,t){let n=e.what.trim();switch(e.tool){case`open`:case`open_chat`:case`back`:case`new_chat`:return ts({id:`voice`,action:e.tool,what:n},t);case`open_run`:if(Ml.test(n)){let e=(await t.runList()).find(e=>e.status===`failed`);return e?ts({id:`voice`,action:`open_run`,what:e.name},t):`No run has failed.`}return ts({id:`voice`,action:`open_run`,what:n},t);case`list_runs`:{let e=await t.runList(),r=(Ml.test(n)?e.filter(e=>e.status===`failed`):e).slice(0,jl);return r.length?r.map(e=>`${e.title||e.name} (${e.status}${e.startedAt?`, ${Nl(e.startedAt)}`:``})`).join(`; `):Ml.test(n)?`No run has failed.`:`There are no runs yet.`}case`search`:{if(!n)return`Nothing to search for.`;let e=await t.matches(n);if(!e){let e=await ts({id:`voice`,action:`open`,what:n},t);if(/^Opened |is already open\.$/.test(e))return e}return t.find(n),e?`The search shows ${e} result${e===1?``:`s`} for “${n}”.`:`The app has nothing called “${n}”.`}case`write_in_box`:return t.box?n?(t.box.add(n),t.autoSend?t.busy()?`Written in the message box; it is sent when you say so, after ForgeQE's answer.`:await t.box.send()?`Written and sent to ForgeQE.`:`Written in the message box; it could not be sent.`:`Written in the message box, not sent.`):`Nothing to write.`:`This page has no message box: use ask_forgeqe, or open Home.`;case`send_box`:return t.box?t.busy()?Al:await t.box.send()?`Sent to ForgeQE; the person hears what it found when it is done.`:`The message box is empty: nothing was sent.`:`This page has no message box.`;case`ask_forgeqe`:return n?t.busy()?Al:(await t.ask(n),`On it. I'll tell you what it finds.`):`Nothing to ask.`;case`change_setting`:return t.changeSetting?await t.changeSetting(n):`Settings cannot be changed by voice here.`;case`describe_page`:return t.tasks?await t.tasks.describePage(n):Ol;case`run_stats`:return t.tasks?await t.tasks.runStats(n):Ol;case`filter_runs`:return t.tasks?t.tasks.filterRuns(n):Ol;case`rerun_failed`:return t.tasks?await t.tasks.rerunFailed(n):Ol;case`run_pack`:return t.tasks?await t.tasks.runPack(n):Ol;case`start_recording`:return t.tasks?await t.tasks.startRecording(n):Ol;case`write_test`:return t.tasks?t.tasks.writeTest():Ol;case`pause_recording`:return t.tasks?await t.tasks.pauseRecording(n):Ol;case`stop_recording`:return t.tasks?await t.tasks.stopRecording(n):Ol;case`undo_step`:return t.tasks?await t.tasks.undoStep():Ol;case`add_check`:return t.tasks?await t.tasks.addCheck(n):Ol;case`add_note`:return t.tasks?await t.tasks.addNote(n):Ol;case`stop_forgeqe`:return await t.stopWork()?`Stopped ForgeQE's work.`:`ForgeQE is not working on anything now.`;case`ignore`:return kl;default:return`That is not one of the tools.`}}var zl=/\bprod(?:uction)?\b/i,Bl=/^(?:starting|recording|paused|stopping)$/,Vl=/\b(?:resume|unpause|carry on|carry|go on|continue|keep going|record again)\b/i,Hl=/\b(?:pause|hold|hold on|freeze|wait)\b/i,Ul=/\b(?:anyway|any way|all the same|even so|regardless|force|without (?:the )?checks?)\b/i,Wl=300,Gl=12e3,Kl=2,ql=e=>e.length<=60&&!/--|[/\\{}<>|`$]/.test(e),Jl=864e5,Yl=e=>e.replace(/[\s.!?;:,]+$/,``),Xl=(e,t=80)=>e.replace(/[\u0000-\u001f\u007f\u2028\u2029]+/g,` `).replace(/\s+/g,` `).trim().slice(0,t),Zl=e=>e.toLowerCase().replace(/[^\p{L}\p{M}\p{N}]+/gu,` `).trim(),Ql=e=>Zl(e).replace(/ /g,``);function $l(e,t){if(!e||!t)return 0;let n=Array.from({length:t.length+1},(e,t)=>t);for(let r=1;r<=e.length;r++){let i=n[0];n[0]=r;for(let a=1;a<=t.length;a++){let o=n[a];n[a]=Math.min(n[a]+1,n[a-1]+1,i+(e[r-1]===t[a-1]?0:1)),i=o}}return 1-n[t.length]/Math.max(e.length,t.length)}var eu=.75;function tu(e,t){let n=Ql(t);if(!n)return;let r=e.filter(e=>Ql(e)===n);if(r.length===1)return r[0];let i=e.filter(e=>n.length>=3&&Ql(e).includes(n));if(i.length===1)return i[0];if(n.length<4)return;let a=e.filter(e=>$l(Ql(e),n)>=eu);return a.length===1?a[0]:void 0}function nu(e){let t=e.now??Date.now;async function n(t){let n=e.pageText().replace(/\s+\n/g,`
14
- `).trim().slice(0,Gl);return n.length<20?`This page has nothing to read yet.`:(await e.summarize(n,t||`What is on this page?`)).trim()||`I could not say what this page shows.`}async function r(n){let r=/week/i.test(n)?`week`:/all|ever/i.test(n)?`all`:`today`,i=r===`all`?0:r===`week`?t()-7*Jl:new Date(new Date(t()).toDateString()).getTime(),a=(await e.runs()).filter(e=>Date.parse(e.startedAt)>=i),o=r===`today`?`today`:r===`week`?`this week`:`in all`;if(!a.length)return r===`all`?`There are no runs yet.`:`There were no runs ${o}.`;let s=e=>a.filter(t=>t.status===e).length,c=a.filter(e=>e.status===`failed`),l=[s(`done`)?`${s(`done`)} passed`:``,c.length?`${c.length} failed`:``,s(`running`)?`${s(`running`)} still running`:``,s(`stopped`)?`${s(`stopped`)} stopped`:``].filter(Boolean),u=l.length>1?`${l.slice(0,-1).join(`, `)} and ${l.at(-1)}`:l[0]??``,d=c.map(e=>Yl(e.title||e.name)).filter(ql).slice(0,Kl),f=d.length?c.length===1?` The failed one was “${d[0]}”.`:` The failed ones include “${d.join(`” and “`)}”.`:``;return`You've had ${a.length} run${a.length===1?``:`s`} ${o}${u?`: ${u}`:``}.${f}`}function i(t){let n=/^\s*(failed|failing|running|all|every)?\s*:?\s*(.*)$/i.exec(t.replace(/[\u0000-\u001f\u007f]+/g,` `))??[],r=/^fail/i.test(n[1]??``)?`failed`:/^running/i.test(n[1]??``)?`running`:`all`,i=(n[2]??``).replace(/^[\s|:;,.\-]+|[\s|:;,.\-]+$/g,``).slice(0,100),a=e.route();return(a[0]!==`runs`||a.length>1)&&e.go(e.href(`runs`)),e.filterRuns({status:r,query:i}),`Showing ${r===`all`?`all`:r} runs${i?` about “${i}”`:``}.`}async function a(t){let n=await e.runs(),r=e.route(),i=r[0]===`runs`&&r[1]?n.find(e=>e.name===r[1]):void 0,a=t.trim()?tu([...new Set(n.map(e=>e.title||e.name))],t):void 0,o=(t.trim()?n.find(e=>(e.title||e.name)===a)??n.find(e=>e.name===t.trim()):void 0)??(t.trim()?void 0:i??n.find(e=>e.status===`failed`));if(!o)return t.trim()?`No run is called “${t}”.`:`No run has failed.`;let s=await e.runDetail(o.name),c=(s.actions??[]).find(e=>e.kind===`rerun`);return c?e.ask(`Run the failed tests of “${Yl(s.title||o.name)}” again? It starts a new chat. Say yes to start.`,async()=>{let t=await e.startChat(c.prompt);return e.go(e.href(`chats`,t)),`Started: the run's failed tests run again in a new chat.`}):`The run “${Yl(s.title||o.name)}” has nothing to run again.`}async function o(t){let n=await e.packs();if(n.job?.running)return`A regression pack is running already.`;let r=/testmu|test mu|cloud/i.test(t)?`testmu`:`local`,i=t.replace(/\bon\s+(?:testmu|test mu|the cloud|cloud|this computer)\b/gi,``).trim(),a=n.packs,o=/^(?:|latest|last|newest)$/i.test(i)?[...a].sort((e,t)=>Date.parse(t.createdAt)-Date.parse(e.createdAt))[0]:a.find(e=>e.name===tu(a.map(e=>e.name),i));if(!o)return a.length?`No pack is called “${i}”. The packs are: ${a.slice(0,5).map(e=>e.name).join(`, `)}.`:`There is no regression pack yet.`;let s=r===`testmu`?`on TestMu`:`on this computer`;return e.ask(`Run the regression pack “${o.name}”, ${o.tests} test${o.tests===1?``:`s`}, ${s}? Say yes to start.`,async()=>(await e.runPack(o.name,r),e.go(e.href(`regression`,encodeURIComponent(o.name))),`Started: the pack “${o.name}” runs ${s}.`))}async function s(t){let n=await e.record();if(n.session)return`A recording is going already: stop it on the Record page first.`;if(n.environment&&zl.test(n.environment))return`Talk does not start a recording on an environment named like production.`;let r=n.apps.map(e=>e.name),i=n.desktop.available?n.desktop.apps:[],a=n.mobile.apps.map(e=>e.name),o=tu([...r,...i,...a],t);if(!o)return`No app is called “${t}”. The apps are: ${[...r,...i,...a].slice(0,8).join(`, `)||`none yet`}.`;let s=r.includes(o)?{app:o}:i.includes(o)?{kind:`desktop`,app:o}:{kind:`mobile`,app:o};return e.ask(`Start recording ${o}? Say yes to start.`,async()=>(await e.startRecording(s),e.go(e.href(`record`)),`Recording ${o}: do the steps, and say stop on the Record page when done.`))}function c(){let t=e.route();if(t[0]!==`record`||t[1]!==`recording`||!t[2])return`Open a recording first: a test is written from the recording open on the page.`;let n=t[2];return e.ask(`Write a test from this recording? Its steps are played first, then the test is written. Say yes to start.`,async()=>(await e.writeTest(n),`Writing the test: its progress shows on this page.`))}async function l(){let t=(await e.record()).session;return t&&Bl.test(t.state)?t:`No recording is going on.`}let u=e=>Xl(e.app||e.name||``,60)||`the app`;async function d(t){let n=await l();if(typeof n==`string`)return n;if(n.kind!==`web`)return`A ${n.kind} recording cannot be paused: only Stop.`;if(n.state===`starting`)return`The recording is still starting.`;if(n.state===`stopping`)return`The recording is stopping already.`;let r=n.state===`paused`,i=Vl.test(t)?`resume`:Hl.test(t)?`pause`:r?`resume`:`pause`;return i===`pause`&&r?`The recording is paused already.`:i===`resume`&&!r?`The recording is going: there is nothing to carry on from.`:(await e.recordCommand({cmd:`pause`}),r?`Recording again.`:`Paused: what you do now is not recorded.`)}async function f(t){let n=await l();if(typeof n==`string`)return n;if(n.state===`stopping`)return`The recording is stopping already.`;let r=Ul.test(t),i=u(n),a=r?`Stop recording ${Yl(i)} without the checks the recorder asked for? Say yes to stop.`:`Stop and save the recording of ${Yl(i)}? Say yes to stop.`;return e.ask(a,async()=>(await e.recordCommand({cmd:`stop`,...r?{force:!0}:{}}),e.go(e.href(`record`)),n.case&&!r?`Stopping ${Yl(i)}. If the recorder asks for a check first, say “stop anyway”.`:`Stopping ${Yl(i)}: it is saved, and its steps open for review.`))}async function p(){let t=await l();if(typeof t==`string`)return t;if(t.kind===`desktop`)return`A desktop recording takes only Stop from here: in the app, Ctrl+Shift+F11 over a control adds a check.`;if(!t.steps.length)return`Nothing is recorded yet.`;let n=Xl(`${t.steps.at(-1).op} ${t.steps.at(-1).text}`.trim());return e.ask(`Remove the last step${n?`, ${Yl(n)}`:``}? Say yes to remove it.`,async()=>(await e.recordCommand({cmd:`undo`}),`Removed the last step.`))}async function m(t){let n=await l();if(typeof n==`string`)return n;if(n.kind!==`web`)return n.kind===`desktop`?`A desktop check is added in the app: Ctrl+Shift+F11 over the control.`:`A mobile check is added on the Record page: pick the control on the screen.`;if(n.state===`paused`)return`The recording is paused: say carry on first, then add the check.`;if(n.state!==`recording`)return`The recording is not ready yet.`;let r=Xl(t.replace(/^\s*note\b[:,]?\s*/i,``),Wl);return r?(await e.recordCommand({cmd:`chat`,text:r}),`Asked for a check that the page shows “${Yl(r)}”: the recorder adds it where it finds it.`):(await e.recordCommand({cmd:`assert`}),`Pick the thing to check in the browser; Esc stops waiting.`)}async function h(t){let n=await l();if(typeof n==`string`)return n;if(n.kind!==`web`)return`A ${n.kind} recording takes no note from here.`;if(n.state===`starting`||n.state===`stopping`)return`The recording is not ready yet.`;let r=Xl(t.replace(/^\s*note\b[:,]?\s*/i,``),Wl);return r?(await e.recordCommand({cmd:`chat`,text:`note: ${r}`}),`Noted: “${Yl(r)}”.`):`What should the note say?`}return{describePage:n,runStats:r,filterRuns:i,rerunFailed:a,runPack:o,startRecording:s,writeTest:c,pauseRecording:d,stopRecording:f,undoStep:p,addCheck:m,addNote:h}}function ru(e,t){switch(e){case`browser_window`:return{section:`browser`,selector:`[data-setting="browser.headless"]`};case`desktop_replay`:return{section:`desktop`,selector:`[data-setting="desktop.headed"]`};case`mobile_window`:return{section:`mobile`,selector:`[data-setting="mobile.headless"]`};case`model`:return{section:`models`,selector:`[data-setting="llm.active"]`};case`environment`:return/^[\w-]+$/.test(t)?{section:`environments`,selector:`[role="radio"][aria-label="Use ${t}"]`}:{section:`environments`,selector:``};case`language`:return{section:`voice`,selector:`[data-setting="talk.language"]`};case`voice`:return{section:`voice`,selector:`[data-setting="talk.voice"]`};case`wake_word`:return{section:`voice`,selector:`[data-setting="talk.wake"]`};case`theme`:return null}}var iu=8e3,au=4e3,ou=`forgeqe:setting-shown`,su=null;function cu(e,t,n,r,i){let a=ru(e,n);if(!a)return null;su={...a,note:`${t} is now ${n}`,at:Date.now()};let o=i(`settings`,a.section);return location.hash.replace(/^#/,``)!==o.replace(/^#/,``)&&r(o),window.dispatchEvent(new CustomEvent(ou)),su}function lu(e){let t=()=>su&&su.section===e&&Date.now()-su.at<iu?su:null,[n,r]=(0,L.useState)(t);return(0,L.useEffect)(()=>{let e=()=>r(t());return e(),window.addEventListener(ou,e),()=>window.removeEventListener(ou,e)},[e]),(0,L.useEffect)(()=>{if(!n)return;let e=!1,t=[],i=Date.now()+3e3,a=()=>{if(e)return;let r=n.selector?document.querySelector(n.selector):null;if(!r){Date.now()<i&&t.push(setTimeout(a,150));return}let o=uu(r);o.dataset.voiceChanged=`1`,o.scrollIntoView({block:`center`,behavior:`smooth`}),t.push(setTimeout(()=>delete o.dataset.voiceChanged,au))};return a(),t.push(setTimeout(()=>r(null),Math.max(0,iu-(Date.now()-n.at)))),()=>{e=!0,t.forEach(clearTimeout)}},[n]),n}function uu(e){if(e.dataset.setting)return e;let t=e;for(;t&&t.parentElement&&t.offsetWidth<320;)t=t.parentElement;return t??e}var du=6,fu=6e4,pu=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{},mu=new Set([`describe_page`,`run_stats`,`pause_recording`,`stop_recording`,`undo_step`,`add_check`,`add_note`]);function hu(){try{return location.hash.replace(/^#\/?/,``).split(/[/?]/).filter(Boolean).map(decodeURIComponent)}catch{return[]}}var gu=/^(Nothing|No |There are no|This page has no|The app has nothing|The message box is empty|That is not)/,_u=(0,L.createContext)(null),vu={busy:!1,waiting:!1},yu=e=>new Promise(t=>setTimeout(t,e)),bu=new Set;function xu(e){let[t,n]=(0,L.useState)([]),[r,i]=(0,L.useState)(``);return(0,L.useEffect)(()=>{if(n([]),i(``),!e)return;let t=!1,r=0,a=[];return(async()=>{for(;!t;)try{let o=await Ht.events(e,r,r>0);if(t||(o.events.length&&(a.push(...o.events),r=o.events.at(-1).n,n([...a])),i(o.state),o.state===`closed`||o.state===`failed`))return}catch{await yu(2e3)}})(),()=>{t=!0}},[e]),{thread:(0,L.useMemo)(()=>ks(t),[t]),state:r}}function Su(e){let t=e=>{for(let n of[...e].reverse()){let e=n.children?.length?t(n.children):void 0;if(e)return e;if(n.status===`running`&&n.agent&&n.agent!==`forgeqe`)return n.agent}},n=e.at(-1);return n&&t(n.steps)||`forgeqe`}function Cu(e,t,n,r,i){let a=(0,L.useRef)(null);(0,L.useEffect)(()=>{if(n&&e){if(a.current!==e){a.current=e;for(let e of t)bu.add(e.id)}else for(let e of t)bu.has(e.id)||(bu.add(e.id),r(e).then(e=>i?.(e)))}},[e,t.length,n])}function wu({pages:e,find:t,children:n}){let[r,i]=(0,L.useState)(null),a=(0,L.useRef)(null);a.current=r;let[o,s]=(0,L.useState)(null),c=r?.chat.key;(0,L.useEffect)(()=>{c&&s(c)},[c]);let l=r?null:o,u=xu(l),d=u.thread.turns.at(-1),f=l?{key:l,busy:u.state===`busy`||u.state===`starting`,waiting:!!d&&!d.outcome&&(d.asks.some(e=>e.answer===void 0)||d.waits.some(e=>e.answer===void 0)),last:d?{id:d.id,outcome:d.outcome,reply:d.reply,error:d.error,text:d.outcome&&d.reply?d.reply:d.parts.map(e=>Lo(e.text)).filter(Boolean).join(`
12
+ `)}}var bc=/\bprod(?:uction)?\b/i,xc=6,Sc=[`first`,`second`,`third`,`fourth`,`fifth`,`sixth`],Cc=e=>e.toLowerCase().replace(/[^\p{L}\p{M}\p{N}' ]+/gu,` `).replace(/\s+/g,` `).trim();function wc(e){if(!e.options.length||e.options.length>xc)return!1;let t=[e.title,e.detail??``,...e.lines,...e.options.map(e=>e.label)].join(`
13
+ `);return!bc.test(t)}var Tc=e=>e.label.replace(/[`*_#>[\]()]/g,``).replace(/\s+/g,` `).trim();function Ec(e){let t=(e.detail??``).replace(/\s+/g,` `).match(/^[^.!?]{1,200}[.!?]/)?.[0]??``,n=e.options.map(Tc),r=n.length>1?`${n.slice(0,-1).join(`, `)} or ${n.at(-1)}`:n[0];return`ForgeQE asks: ${e.title.replace(/[.?!:\s]+$/,``)}? ${t} Say ${r}.`.replace(/\s+/g,` `).trim()}function Dc(e,t){let n=Cc(e).replace(/^(?:the |i choose |choose |pick |option )/,``);if(!n)return null;let r=t.filter(e=>Cc(Tc(e))===n);if(r.length===1)return r[0];let i=Sc.findIndex(e=>RegExp(`^${e}(?: one| option)?$`).test(n));if(i>=0&&i<t.length)return t[i];let a=t.filter(e=>n.split(` `).length>=1&&n.length>=2&&Cc(Tc(e)).startsWith(n));return a.length===1?a[0]:null}var Oc=e=>`You chose “${Tc(e)}”. Say yes to send it, or no.`,kc=e=>`I did not hear one of the options. Say ${e.options.map(Tc).join(`, `)}, or answer with a click.`,Ac=8,jc=/\b(?:and|then|after|afterwards|also|but|before|if|why|what|how|which|when)\b/,Mc=e=>e.toLowerCase().replace(/[^a-z0-9' -]+/g,` `).replace(/\s+/g,` `).trim().replace(/^(?:(?:ok|okay|hey|please|can you|could you|would you)\s+)+/,``).replace(/\s+(?:please|for me|now)$/,``);function Nc(e){let t;return(t=/^(?:switch to|turn on|use|go|make it|change the theme to|set the theme to|change to)\s+(dark|light)(?:\s+(?:mode|theme))?$/.exec(e))||(t=/^(dark|light)\s+(?:mode|theme)$/.exec(e))?`theme: ${t[1]}`:/^(?:use|switch to)\s+the\s+system(?:'s)?\s+theme$/.test(e)?`theme: system`:(t=/^(hide|show)\s+the\s+browser(?:\s+window)?\s+(?:while|during|when)\s+(?:the\s+)?tests?(?:\s+run(?:s|ning)?)?$/.exec(e))?`browser_window: ${t[1]===`hide`?`hidden`:`shown`}`:(t=/^(?:switch|change|go|move)\s+to\s+(?:the\s+)?([a-z0-9][a-z0-9_-]{0,30})\s+environment$/.exec(e))||(t=/^use\s+(?:the\s+)?([a-z0-9][a-z0-9_-]{0,30})\s+environment$/.exec(e))?`environment: ${t[1]}`:(t=/^(?:change|switch|set)\s+(?:your|talk's|the)\s+voice\s+to\s+([a-z]{2,20})$/.exec(e))?`voice: ${t[1]}`:null}function Pc(e){let t=Mc(e);if(!t||t.split(` `).length>Ac||/[^\p{L}\p{N}\s'.!?-]/u.test(e)||jc.test(t))return null;let n=Nc(t);if(n)return{kind:`setting`,what:n};if(/^(?:switch|change)\s+to\b/.test(t))return null;let r=qs(t);return r&&r.kind!==`find`?r:null}function Fc(e,t){let n=e.trim();return n?_c(n)||zs(n)?!0:t===`en`&&Pc(n)!==null:!1}var Ic=600,Lc=12,Rc=/[ऀ-ॿ]/,zc=e=>e.slice(0,Ic).toLowerCase().replace(/[\u2018\u2019\u02bc\u00b4`]/g,`'`).replace(/[^\p{L}\p{N}' ]+/gu,` `).replace(/\s+/g,` `).trim(),Bc=/^(?:(?:ok|okay|now|so|and|then|please|hey|just) )*(?:open|close|show|go to|goto|take me to|navigate to|switch to|bring up|find|search|look up|look for|run|rerun|re run|start|stop|cancel|pause|resume|read|write|record|list|filter|sort|change|set|turn|make|give me|tell me|say|repeat|summari[sz]e|explain|describe|send|submit|back|go back|new chat|scroll|click|type)\b/,Vc=/\b(?:can|could|would|will) you\b|\bplease (?:open|close|show|find|run|stop|read|write|tell|give|send|change|set|start|search|list|describe|explain)\b|\bi (?:need|want) you to\b|\blet's (?:open|run|look at|see)\b|\bwhat'?s on (?:this|the) (?:page|screen)\b|\bwhy did (?:it|this|that|the run)\b/,Hc=/\b(?:run|runs|rerun|test|tests|testcase|test case|suite|pack|packs|regression|recording|record|replay|playwright|cypress|selenium|appium|maestro|tosca|ado|azure devops|jira|work item|user story|acceptance criteria|acs|settings|setting|chat|chats|page|agent|agents|report|failure|failed|baseline|evidence|workbench|pipeline|forgeqe|talk)\b/,Uc=/\b(?:you'?re on mute|you are on mute|i'?m on mute|can you hear me|i can'?t hear you|we can'?t hear you|you'?re breaking up|you'?re cutting out|can you see my screen|i'?ll share my screen|let me share my screen|sharing my screen|next slide|let'?s take (?:this|it) offline|let'?s circle back|any questions|over to you|you go (?:first|ahead)|i'?ll drop off|i have to jump|joining in a minute|sorry i was muted|thanks everyone|talk (?:to you )?later|see you (?:then|tomorrow|monday)|bye bye|good ?bye)\b/,Wc=/\b(?:he|she|they|we|everyone|the team|the client|the customer) (?:said|says|told|asked|thinks?|thought|wants?|wanted|needs?|needed|reckons?|mentioned|raised|wrote)\b|\bi (?:was telling|told|asked|was saying|was just saying)\b|\bas (?:he|she|they|we) said\b/,Gc=/^(?:hi|hey|hello|yo|morning|good morning|good afternoon|good evening)\b(?: \p{L}+){0,2}$/u,Kc=/^(?:(?:yeah|yep|yes|yup|no|nope|right|sure|exactly|true|ok|okay|cool|nice|great|fine|alright|mm|mmm|mhm|mm hmm|uh huh|huh|oh|ah|wow|hmm|haha|hahaha|lol|anyway|whatever|i see|i know|of course|got it|makes sense|fair enough|thank you|thanks|sorry|please|well|so|and|but|like|you know)[\s,.!?]*)+$/,qc=/(?:खोल(?:ो|िए|ें)|दिखा(?:ओ|इए|एँ|ें)|चला(?:ओ|इए|ें)|बता(?:ओ|इए|ें)|भेज(?:ो|िए|ें)|रोक(?:ो|िए|ें)|बंद कर(?:ो|िए)|ढूं?ढ(?:ो|िए)|खोज(?:ो|िए)|लिख(?:ो|िए)|पढ़(?:ो|िए)|सुना(?:ओ|इए)|वापस जाओ|फिर चलाओ)/,Jc=/(?:सुनाई दे रहा|आवाज़? (?:आ रही|नहीं आ रही)|म्यूट|स्क्रीन शेयर|बाद में बात|मैं बता रहा था|मैं बता रही थी|उस(?:ने|ने तो) कहा|उन्होंने कहा|नमस्ते|फिर मिलते)/,Yc=/\b(?:i|we|he|she|they|him|her|them|my|our|his|their|everyone|somebody|someone)\b/,Xc=/\b\w+ed\b|\b(?:was|were|had|did|say|said|tell|told|went|gone|got|came|come|saw|seen|thought|knew|felt|made|took|gave)\b/,Zc=/^(?:(?:हाँ|हां|जी|नहीं|अच्छा|ठीक|ठीक है|सही|बिलकुल|अरे|ओह|हम्म|अच्छा जी)[\s,।.!?]*)+$/;function Qc(e){let t=(e??``).slice(0,Ic).trim();if(!t)return{verdict:`ambient`,why:`nothing was said`};let n=Rc.test(t),r=zc(t);if(!r||!/[\p{L}\p{N}]/u.test(r))return{verdict:`ambient`,why:`no words`};let i=r.split(` `).length;return Bc.test(r)?{verdict:`addressed`,why:`an order to the app`}:n&&qc.test(t)?{verdict:`addressed`,why:`an order to the app, in Hindi`}:Uc.test(r)||n&&Jc.test(t)?{verdict:`ambient`,why:`the words of a call`}:Wc.test(r)?{verdict:`ambient`,why:`about what somebody else said`}:Gc.test(r)?{verdict:`ambient`,why:`a greeting to a person`}:Kc.test(r)||n&&Zc.test(t)?{verdict:`ambient`,why:`a word of agreement on its own`}:Vc.test(r)?{verdict:`addressed`,why:`a request of an assistant`}:i>=Lc&&Yc.test(r)&&Xc.test(r)?{verdict:`ambient`,why:`somebody telling what happened`}:Hc.test(r)?{verdict:`unclear`,why:`about the app, but not asking for anything`}:n?{verdict:`unclear`,why:`Hindi with nothing of the app in it`}:{verdict:`unclear`,why:`too little to tell`}}function $c(e,t,n=!1){return e===`ambient`?{drop:!0,send:!1,agent:!1}:{drop:!1,send:t&&e===`addressed`&&!n,agent:!n&&(e===`addressed`||!t)}}var el=.25;function tl(e){if(!Array.isArray(e)||e.length!==26)return null;let t=[];for(let n of e){if(typeof n!=`number`||!Number.isFinite(n)||Math.abs(n)>1)return null;t.push(n)}return t.some(e=>e!==0)?t:null}function nl(e,t){if(!e||!t||e.length!==t.length||!e.length)return 0;let n=0,r=0,i=0;for(let a=0;a<e.length;a++)n+=e[a]*t[a],r+=e[a]**2,i+=t[a]**2;return!(r>0)||!(i>0)?0:n/Math.sqrt(r*i)}function rl(e,t){if(!e||!t||e.length!==t.length||e.length!==26)return!1;let n=nl(e,t);return n!==0&&n<.6}function il(e,t){return t?!e||e.length!==t.length?[...t]:e.map((e,n)=>e*.75+t[n]*el):e?[...e]:null}var al=`forgeqe.talk.voice`,ol=`forgeqe.talk.voice.hi`,sl=`forgeqe.talk.language`,cl=`forgeqe.talk.wake`,ll=`forgeqe.talk.wake.phrase`,ul=`forgeqe.talk.wake.resume`,dl=8e3,fl=3e3,pl=2,ml=16e4,hl=8,gl=3,_l=`ForgeQE has a question for you on the screen. Answer it there, and I'll listen again.`,vl=`ForgeQE has a question for you on the screen that needs a click. Answer it there, and I'll listen again.`,yl=`forgeqe.talk.answers`,bl=2e4,xl=3,Sl=`forgeqe.talk.autosend`,Cl=`forgeqe.talk.onlyvoice`;function wl(){try{return localStorage.getItem(Sl)===`1`}catch{return!1}}function Tl(e){try{return localStorage.getItem(e)}catch{return null}}function El(e,t){try{localStorage.setItem(e,t)}catch{}}var Dl={en:[`Sure.`,`One moment.`,`Let me check.`,`Okay.`],hi:[`ठीक है।`,`एक पल।`]};function Ol(e,t,n,r={}){let[i,a]=(0,L.useState)(`off`),[o,s]=(0,L.useState)(null),[c,l]=(0,L.useState)(``),[u,d]=(0,L.useState)(``),[f,p]=(0,L.useState)(()=>Tl(al)||`af_heart`),[m,h]=(0,L.useState)(()=>Tl(sl)===`hi`?`hi`:`en`),[g,_]=(0,L.useState)(()=>Tl(ol)||`hf_alpha`),[v,y]=(0,L.useState)(()=>Tl(yl)===`1`),b=(0,L.useRef)(v),x=(0,L.useRef)(null),[ee,S]=(0,L.useState)(()=>Tl(cl)===`1`),[C,w]=(0,L.useState)(()=>Zs(Tl(ll)||``)||``),T=(0,L.useRef)({on:ee,phrase:C}),E=(0,L.useRef)({on:!1,until:0}),D=(0,L.useRef)(m),O=(0,L.useRef)(g),[k,te]=(0,L.useState)(()=>wl()),ne=(0,L.useRef)(k),[re,ie]=(0,L.useState)(()=>Tl(Cl)===`1`),ae=(0,L.useRef)(re),oe=(0,L.useRef)(null),se=(0,L.useRef)(null),ce=(0,L.useRef)(void 0),le=(0,L.useRef)(void 0),ue=(0,L.useRef)(n);ue.current=n;let A=(0,L.useRef)(`off`),j=(0,L.useRef)(0),de=(0,L.useRef)(null),fe=(0,L.useRef)(null),pe=(0,L.useRef)(uc({startFrames:gl})),me=(0,L.useRef)(void 0),he=(0,L.useRef)(!1),ge=(0,L.useRef)(f),_e=(0,L.useRef)(t);_e.current=t;let ve=(0,L.useRef)(e);ve.current=e;let ye=()=>{let e=ve.current;return b.current&&!!e.ask&&!!e.answer&&wc(e.ask)},be=(0,L.useRef)(r.command);be.current=r.command;let xe=(0,L.useRef)(r.summarize);xe.current=r.summarize;let Se=(0,L.useRef)(r.vocabulary);Se.current=r.vocabulary;let Ce=()=>{try{return Se.current?.()??``}catch{return``}},we=(0,L.useRef)(null),Te=(0,L.useRef)(0),Ee=(0,L.useRef)(null),De=(0,L.useRef)(!1),Oe=(0,L.useRef)(-1),ke=(0,L.useRef)(null),Ae=(0,L.useRef)(!1),je=(0,L.useRef)(!1),Me=(0,L.useRef)([]),Ne=(0,L.useRef)(!1),M=(0,L.useCallback)((e,t=!1)=>{let n=e;n===`listening`&&T.current.on&&(E.current.on?E.current.until=Date.now()+dl:n=`sleeping`),n===`thinking`&&T.current.on&&!E.current.on&&(n=`sleeping`),n===`sleeping`&&je.current&&(t=!0),je.current&&(n===`listening`||n===`thinking`||n===`reading`||n===`speaking`)&&(t=!0,n===`listening`&&(n=`hearing`)),t||(je.current=!1),A.current=n,a(n),t||pe.current.reset(),pe.current.setStartFrames(n===`speaking`?hl:gl)},[]),Pe=(0,L.useRef)([]),Fe=(0,L.useRef)(!1),Ie=(0,L.useRef)({id:``,seen:``,said:0}),Le=()=>{Pe.current=[];let e=fe.current;if(fe.current=null,e){e.onended=null;try{e.stop()}catch{}}},Re=(0,L.useCallback)(()=>{j.current++,Me.current=[],je.current=!1,ce.current&&clearTimeout(ce.current),ce.current=void 0,se.current=null,oe.current=null,Le();let e=de.current;if(de.current=null,e){e.node.port.onmessage=null;for(let t of e.stream.getTracks())t.stop();e.ctx.close().catch(()=>{})}},[]),ze=(0,L.useCallback)(e=>{Re(),l(e),M(`error`)},[Re,M]),Be=()=>{x.current=null;let e=ve.current.ask;qe(ye()&&e?Ec(e):b.current&&e&&!wc(e)?vl:_l)},Ve=(0,L.useCallback)(async e=>{let t=de.current;if(!t)return null;try{let n=await jt.speak(e.slice(0,bl),Rs(e,ge.current,O.current));return await t.ctx.decodeAudioData(n)}catch(e){return/Nothing to say/.test(e.message)||l(e.message),null}},[]),He=e=>new Promise(t=>{let n=de.current;if(!n)return t();let r=n.ctx.createBufferSource();r.buffer=e,r.connect(n.ctx.destination),r.onended=()=>{fe.current===r&&(fe.current=null),t()},fe.current=r,r.start()}),Ue=(0,L.useCallback)(async()=>{if(Fe.current)return;Fe.current=!0;let e=j.current,t=()=>Pe.current.length?Ve(Pe.current.shift()):null;try{let n=t();for(;n&&e===j.current;){A.current!==`speaking`&&M(`speaking`);let r=await n;if(e!==j.current||A.current!==`speaking`||(n=t(),ke.current&&await ke.current,ke.current=null,r&&await He(r),A.current!==`speaking`))break}}finally{Fe.current=!1}e===j.current&&A.current===`speaking`&&M(ve.current.waiting?`question`:ve.current.busy?`thinking`:`listening`)},[M,Ve]),We=()=>`${D.current}|${D.current===`hi`?O.current:ge.current}`,Ge=(0,L.useCallback)(async()=>{let e=We();if(Ee.current?.key!==e&&!De.current&&de.current){De.current=!0;try{let t=[];for(let e of Dl[D.current]){for(;(je.current||Ne.current)&&de.current;)await new Promise(e=>setTimeout(e,300));let n=await Ve(e);n&&t.push(n)}e===We()&&(Ee.current={key:e,bufs:t})}finally{De.current=!1}}},[Ve]),Ke=(0,L.useCallback)(()=>{let e=de.current,t=Ee.current;if(!e||!t||t.key!==We())return void Ge();if(!t.bufs.length||fe.current||A.current===`speaking`||Pe.current.length)return;let n=Math.floor(Math.random()*t.bufs.length);t.bufs.length>1&&n===Oe.current&&(n=(n+1)%t.bufs.length),Oe.current=n;let r=e.ctx.createBufferSource();r.buffer=t.bufs[n],r.connect(e.ctx.destination),pe.current.setStartFrames(hl);let i=new Promise(e=>{r.onended=()=>{fe.current===r&&(fe.current=null),A.current!==`speaking`&&pe.current.setStartFrames(gl),e()}});ke.current=Promise.race([i,new Promise(e=>setTimeout(e,r.buffer.duration*1e3+200))]),fe.current=r,r.start()},[Ge]),qe=(0,L.useCallback)(e=>{de.current&&(Pe.current.push(...oc(e)),Ue())},[Ue]),Je=(0,L.useCallback)((e,t,n,r)=>{if(!n||me.current===e)return;me.current=e,Ie.current={id:e,seen:t,said:0};let i=yc(t).body.trim();if(!i){r&&(Pe.current.push(...oc(r)),Ue());return}if(Us(i)||!xe.current){Pe.current.push(...oc(i)),Ue();return}let a=j.current;xe.current(i).catch(()=>``).then(t=>{a===j.current&&Ie.current.id===e&&(Pe.current.push(...oc(t.trim()||i)),Ue())})},[Ue]),Ye=()=>{let e=de.current;if(!e)return;let t=e.ctx.createOscillator(),n=e.ctx.createGain();t.frequency.value=880,n.gain.setValueAtTime(1e-4,e.ctx.currentTime),n.gain.exponentialRampToValueAtTime(.08,e.ctx.currentTime+.02),n.gain.exponentialRampToValueAtTime(1e-4,e.ctx.currentTime+.18),t.connect(n).connect(e.ctx.destination),t.start(),t.stop(e.ctx.currentTime+.2)},Xe=(0,L.useCallback)(()=>{T.current.on&&(E.current={on:!1,until:0},oe.current=null),M(`listening`)},[M]),Ze=(0,L.useRef)(void 0),Qe=(0,L.useCallback)(async(e,t={})=>{let n=j.current;try{let r=e.trim();if(!r)return M(`listening`);if(ve.current.waiting){let e=ve.current,t=e.ask;if(!b.current||!t||!e.answer||!wc(t))return M(`question`);let n=x.current;if(n&&n.ask===t.id){let i=_c(r);if(i===`yes`)return x.current=null,await e.answer(t.id,n.option.id),M(`question`);if(i===`no`)return x.current=null,qe(`Not sent. ${Ec(t)}`)}let i=Dc(r,t.options);return x.current=i?{ask:t.id,option:i}:null,qe(i?Oc(i):kc(t))}let i=se.current;ce.current&&clearTimeout(ce.current),ce.current=void 0,se.current=null,i&&(r=`${i.text} ${r}`.replace(/\s+/g,` `).trim());let a=!!t.woken||zs(r)||qs(r)?.kind===`stop`;if(!a&&!t.final&&Hs(r)&&(i?.times??0)<pl)return se.current={text:r,times:(i?.times??0)+1},d(r),ce.current=setTimeout(()=>{let e=se.current;se.current=null,ce.current=void 0,e&&n===j.current&&Ze.current?.(e.text,{...t,final:!0})},fl),M(`listening`);let o=a?`addressed`:Qc(r).verdict;o===`addressed`&&t.other&&(o=`unclear`);let s=$c(o,ne.current,t.other);if(s.drop)return d(``),Xe();d(r),l(``);let c=s.send,u=be.current,f=!!ue.current&&!c&&zs(r);if(u&&!f&&s.agent){let e=await u(r,{unclear:o!==`addressed`});if(n!==j.current)return;if(e===null)return d(``),Xe();if(e!==!1)return e?void qe(e):M(`listening`)}let p=ue.current;if(p&&!c){if(!zs(r))return p.add(r.trim()),M(`listening`);M(`thinking`),he.current=!0;let e=!1;try{e=await p.sendDraft()}finally{!e&&n===j.current&&A.current===`thinking`&&(he.current=!1,l(`Nothing to send yet: say what you want first.`),M(`listening`))}return}let m=_e.current;if(!m)return l(`Say “open” and a page, setting, agent or the last run. To ask ForgeQE something, open a chat or Home.`),M(`listening`);if(o!==`addressed`)return d(``),Xe();M(`thinking`),he.current=!0;try{await m(r)}finally{n===j.current&&!ve.current.busy&&A.current===`thinking`&&ve.current.last?.id===me.current&&(he.current=!1,M(`listening`))}}catch(e){if(n!==j.current)return;l(e.message),M(`listening`)}},[qe,M,Xe]);Ze.current=Qe;let $e=(0,L.useCallback)(async(e,t)=>{let n=j.current,r=A.current===`sleeping`;if(r&&e.length>ml)return;r||M(`reading`);let i=T.current.on&&ae.current;try{let a,o=!1;if(r){let t=await jt.transcribe(e,`en`,i,Ce());if(n!==j.current||A.current!==`sleeping`)return;let r=ec(t.text,T.current.phrase||`Hey ${Cn()}`);if(!r||(E.current={on:!0,until:Date.now()+dl},i&&(oe.current=tl(t.print)),Ye(),a=r.rest,a&&D.current===`hi`&&(M(`reading`),a=(await jt.transcribe(e,`hi`,!1,Ce())).text.trim().split(/\s+/).slice(r.words).join(` `),n!==j.current)))return;if(!a.trim())return M(`listening`);M(`reading`)}else{let r=performance.now(),s=t!==void 0&&!i?{text:t,print:void 0}:await jt.transcribe(e,D.current,i,Ce());if(t===void 0&&(Te.current=performance.now()-r),n!==j.current)return;if(a=s.text,!a.trim())return M(`listening`);if(i){let e=tl(s.print);o=rl(oe.current,e),!o&&e&&(oe.current=il(oe.current,e))}}await Qe(a,{other:o,woken:r})}catch(e){if(n!==j.current)return;l(e.message),M(`listening`)}},[Qe,M]),et=(0,L.useCallback)(async(e,t)=>{if(Ne.current){Me.current.length<xl&&Me.current.push({pcm:e,...t===void 0?{}:{known:t}});return}Ne.current=!0;let n=j.current;try{for(await $e(e,t);Me.current.length&&n===j.current&&!ve.current.waiting;){let e=Me.current.shift();await $e(e.pcm,e.known)}}finally{Ne.current=!1,n===j.current&&(Me.current=[])}},[$e]),tt=(0,L.useRef)(0),nt=(0,L.useCallback)(async(e,t)=>{if(A.current===`sleeping`||ve.current.waiting||T.current.on&&ae.current||Te.current>900||we.current)return;let n=j.current,r=tt.current,i=D.current,a=jt.transcribe(e,i,!1,Ce()).then(e=>e.text).catch(()=>null);we.current={mark:t,which:r,text:a};let o=await a;n===j.current&&we.current?.which===r&&we.current.mark===t&&(tt.current!==r||pe.current.mark()!==t?we.current=null:o!==null&&pe.current.speaking()&&Fc(o,i)&&(pe.current.finish(),je.current=!1,we.current=null,et(e,o)))},[et]),rt=(0,L.useCallback)(async()=>{let e=j.current;if(M(`starting`),!navigator.mediaDevices?.getUserMedia||typeof AudioWorkletNode>`u`)return ze(`This browser cannot record from the microphone here. Open ForgeQE web in a current Chrome, Edge or Firefox.`);let t;try{t=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,channelCount:1}})}catch{return ze(`The browser did not allow the microphone. Allow it for this page (the icon in the address bar), then turn Talk on again.`)}if(e!==j.current)for(let e of t.getTracks())e.stop();else try{let e=new AudioContext;if(e.state===`suspended`){let t=()=>void e.resume().catch(()=>{});window.addEventListener(`pointerdown`,t,{once:!0}),window.addEventListener(`keydown`,t,{once:!0})}let{default:n}=await yr(async()=>{let{default:e}=await import(`./capture.worklet-UcNywATd.js`);return{default:e}},[]);await e.audioWorklet.addModule(n);let r=e.createMediaStreamSource(t),i=new AudioWorkletNode(e,`forgeqe-capture`),a=e.createGain();a.gain.value=0,r.connect(i),i.connect(a),a.connect(e.destination),de.current={ctx:e,stream:t,node:i};let o=Math.round(320*e.sampleRate/16e3),s=new Float32Array;i.port.onmessage=t=>{let n=A.current,r=ye();if(n!==`sleeping`&&n!==`listening`&&n!==`hearing`&&n!==`speaking`&&n!==`thinking`&&n!==`reading`&&!(n===`question`&&r)||ve.current.waiting&&!r){s=new Float32Array,je.current=!1;return}let i=new Float32Array(s.length+t.data.length);i.set(s),i.set(t.data,s.length);let a=0;for(;i.length-a>=o;){let t=cc(i.subarray(a,a+o),e.sampleRate);a+=o;let n=new Int16Array(320);n.set(t.subarray(0,320));let r=pe.current.push(n);if(r?.kind===`start`)tt.current++,we.current=null,je.current=!0,A.current===`speaking`&&Le(),A.current!==`reading`&&A.current!==`sleeping`&&(d(``),M(`hearing`,!0));else if(r?.kind===`pause`)nt(r.pcm,r.mark);else if(r?.kind===`end`){je.current=!1;let e=we.current;we.current=null;let t=r.pcm;e&&e.which===tt.current&&e.mark===r.mark?e.text.then(e=>et(t,e??void 0)):et(t)}}s=i.slice(a)},M(ve.current.waiting?`question`:ve.current.busy?`thinking`:`listening`),setTimeout(()=>void Ge(),1500),ve.current.waiting&&Be()}catch{for(let e of t.getTracks())e.stop();ze(`Talk could not start the microphone's audio in this browser.`)}},[ze,et,M,nt,Ge]),it=(0,L.useCallback)(async()=>{let e=j.current;for(;e===j.current;){if(await new Promise(e=>setTimeout(e,1500)),e!==j.current)return;try{let t=await jt.view();if(e!==j.current)return;if(s(t),t.setup.running)continue;return t.ready?void rt():ze(t.setup.error||t.error||`Talk's setup did not finish.`)}catch(e){return ze(e.message)}}},[ze,rt]),at=(0,L.useCallback)(async(e={})=>{if(A.current!==`off`&&A.current!==`error`){Re(),M(`off`),El(ul,`0`);return}E.current={on:!1,until:0},T.current.on&&El(ul,`1`),Re();let t=j.current;l(``),d(``),me.current=e.readCurrent?void 0:ve.current.last?.id,M(`checking`);try{let e=await jt.view();if(t!==j.current)return;s(e),e.voices.length&&(!e.voices.includes(ge.current)||Ls(ge.current))&&(ge.current=e.defaultVoice,p(e.defaultVoice));let n=e.voices.find(Ls);if(n&&!e.voices.includes(O.current)&&(O.current=n,_(n)),e.ready)return void rt();if(e.setup.running){M(`installing`),it();return}M(`setup`)}catch(e){ze(e.message)}},[Re,ze,it,M,rt]),ot=(0,L.useCallback)(async()=>{M(`installing`);try{s(await jt.setup()),it()}catch(e){ze(e.message)}},[ze,it,M]),st=(0,L.useCallback)(e=>{ne.current=e,te(e);try{localStorage.setItem(Sl,e?`1`:`0`)}catch{}e&&!T.current.on&&le.current?.(!0)},[]),ct=(0,L.useCallback)(e=>{ae.current=e,ie(e),oe.current=null,El(Cl,e?`1`:`0`)},[]),lt=(0,L.useCallback)(e=>{if(Ls(e))return O.current=e,_(e),El(ol,e);ge.current=e,p(e),El(al,e)},[]),ut=(0,L.useCallback)(e=>{D.current=e,h(e),El(sl,e)},[]),dt=(0,L.useCallback)(e=>{T.current.on=e,S(e),El(cl,e?`1`:`0`),El(ul,e&&A.current!==`off`&&A.current!==`error`?`1`:`0`),E.current={on:!1,until:0},oe.current=null,!e&&ne.current&&st(!1),(A.current===`listening`||A.current===`sleeping`)&&M(`listening`)},[st,M]);le.current=dt;let ft=(0,L.useCallback)(e=>{b.current=e,y(e),x.current=null,El(yl,e?`1`:`0`)},[]),pt=(0,L.useCallback)(e=>{let t=Zs(e);if(!t)return!1;let n=t===`Hey ${Cn()}`?``:t;return T.current.phrase=n,w(n),El(ll,n),!0},[]);(0,L.useEffect)(()=>{if(!ee)return;let e=setInterval(()=>{E.current.on&&A.current===`listening`&&Date.now()>E.current.until&&(E.current.on=!1,oe.current=null,M(`listening`))},1e3);return()=>clearInterval(e)},[ee,M]);let[mt,ht]=(0,L.useState)(!1),gt=(0,L.useCallback)(async()=>{ht(!0);try{let e=await jt.setupHindi();for(s(e);e.setup.running;)await new Promise(e=>setTimeout(e,1500)),e=await jt.view(),s(e);e.setup.error&&l(e.setup.error)}catch(e){l(e.message)}finally{ht(!1)}},[]),_t=e.key;(0,L.useEffect)(()=>{Ie.current={id:``,seen:``,said:0},Ae.current=!!_t&&!no(_t),_t||(Ae.current=!1)},[_t]);let{busy:vt,waiting:yt}=e,N=e.last;(0,L.useEffect)(()=>{let e=A.current;if(e!==`off`&&e!==`error`&&e!==`checking`&&e!==`setup`&&e!==`installing`&&e!==`starting`){if(yt)e!==`question`&&(Le(),M(`question`),Be());else{if(Ae.current&&N&&(me.current=N.id,Ae.current=!1),N&&N.id!==me.current){let e=N.text??(N.outcome?N.reply??``:``);(e||N.outcome)&&Je(N.id,e,!!N.outcome,N.error||(N.outcome===`stopped`?`Stopped.`:`Done.`))}vt?(he.current=!1,e!==`thinking`&&e!==`speaking`&&e!==`hearing`&&e!==`reading`&&M(`thinking`)):(N?.outcome&&(he.current=!1),(e!==`thinking`||he.current)&&e!==`question`||Pe.current.length||Fe.current||M(`listening`))}}},[vt,yt,N?.id,N?.outcome,N?.reply,N?.error,N?.text,qe,M,Je]),(0,L.useEffect)(()=>Re,[Re]);let[bt,xt]=(0,L.useState)(null),St=(0,L.useCallback)(async()=>{try{let e=await jt.view();s(e),xt(e.ready)}catch{xt(null)}},[]);(0,L.useEffect)(()=>{St()},[St]),(0,L.useEffect)(()=>{o&&xt(o.ready)},[o]),(0,L.useEffect)(()=>{T.current.on&&Tl(ul)===`1`&&at()},[]);let Ct=(0,L.useCallback)(()=>{Re(),l(``),M(`off`)},[Re,M]);return{phase:i,view:o,ready:bt,say:qe,acknowledge:Ke,refreshVoice:St,error:c,heard:u,voiceAnswers:v,setVoiceAnswers:ft,wake:{on:ee,phrase:C||`Hey ${Cn()}`},setWake:dt,setWakePhrase:pt,voice:f,hindiVoice:g,setVoice:lt,language:m,setLanguage:ut,installHindi:gt,hindiSetup:mt,autoSend:k,setAutoSend:st,onlyVoice:re,setOnlyVoice:ct,dictates:!!n,toggle:at,install:ot,dismiss:Ct,on:i!==`off`&&i!==`error`}}var kl=`That cannot be done by voice here.`,Al=`Not for Talk: nothing done.`,jl=`ForgeQE is still working on the last request: wait for its answer, or say stop.`,Ml=5,Nl=/^(failed|failing|broken)$/i;function Pl(e){let t=Date.parse(e);if(!Number.isFinite(t))return``;let n=Math.round((Date.now()-t)/6e4);return n<60?`${Math.max(n,1)} min ago`:n<1440?`${Math.round(n/60)} h ago`:`${Math.round(n/1440)} days ago`}var Fl=/could not be sent|is empty|has no message box|still working|^Nothing to/;function Il(e,t){switch(e){case`open`:case`open_run`:case`open_chat`:return/^Opened |is already open\.$/.test(t);case`search`:return/^(?:The search shows|Searching for)/.test(t);case`back`:case`new_chat`:return!0;case`write_in_box`:return/^Written (?:in the message box|and sent)/.test(t)&&!Fl.test(t);case`send_box`:return/^Sent to ForgeQE/.test(t);case`ask_forgeqe`:return!1;case`stop_forgeqe`:return/^Stopped/.test(t);case`change_setting`:return/^Changed /.test(t);case`filter_runs`:return/^Showing /.test(t);case`ignore`:return!0;default:return!1}}function Ll(e){let t=/^Opened (?:the (?:run|chat) )?“?(.+?)”?\.$/.exec(e)??/^(.+) is already open\.$/.exec(e);return t?t[1]:null}function Rl(e,t,n,r){if([`write_in_box`,`send_box`,`ask_forgeqe`].includes(t))return Fl.test(n)||/not sent/.test(n)&&(r===`hi`?/भेज/.test(e):/\b(?:send|sent|sending|submit|ask(?:ed|ing)?)\b/i.test(e))?n:e;if(r===`hi`||![`open`,`open_run`,`open_chat`].includes(t))return e;let i=Ll(n);return i?e.toLowerCase().includes(i.toLowerCase())?e:n:e}async function zl(e,t){let n=e.what.trim();switch(e.tool){case`open`:case`open_chat`:case`back`:case`new_chat`:return ns({id:`voice`,action:e.tool,what:n},t);case`open_run`:if(Nl.test(n)){let e=(await t.runList()).find(e=>e.status===`failed`);return e?ns({id:`voice`,action:`open_run`,what:e.name},t):`No run has failed.`}return ns({id:`voice`,action:`open_run`,what:n},t);case`list_runs`:{let e=await t.runList(),r=(Nl.test(n)?e.filter(e=>e.status===`failed`):e).slice(0,Ml);return r.length?r.map(e=>`${e.title||e.name} (${e.status}${e.startedAt?`, ${Pl(e.startedAt)}`:``})`).join(`; `):Nl.test(n)?`No run has failed.`:`There are no runs yet.`}case`search`:{if(!n)return`Nothing to search for.`;let e=await t.matches(n);if(!e){let e=await ns({id:`voice`,action:`open`,what:n},t);if(/^Opened |is already open\.$/.test(e))return e}return t.find(n),e?`The search shows ${e} result${e===1?``:`s`} for “${n}”.`:`The app has nothing called “${n}”.`}case`write_in_box`:return t.box?n?(t.box.add(n),t.autoSend?t.busy()?`Written in the message box; it is sent when you say so, after ForgeQE's answer.`:await t.box.send()?`Written and sent to ForgeQE.`:`Written in the message box; it could not be sent.`:`Written in the message box, not sent.`):`Nothing to write.`:`This page has no message box: use ask_forgeqe, or open Home.`;case`send_box`:return t.box?t.busy()?jl:await t.box.send()?`Sent to ForgeQE; the person hears what it found when it is done.`:`The message box is empty: nothing was sent.`:`This page has no message box.`;case`ask_forgeqe`:return n?t.busy()?jl:(await t.ask(n),`On it. I'll tell you what it finds.`):`Nothing to ask.`;case`change_setting`:return t.changeSetting?await t.changeSetting(n):`Settings cannot be changed by voice here.`;case`describe_page`:return t.tasks?await t.tasks.describePage(n):kl;case`run_stats`:return t.tasks?await t.tasks.runStats(n):kl;case`filter_runs`:return t.tasks?t.tasks.filterRuns(n):kl;case`rerun_failed`:return t.tasks?await t.tasks.rerunFailed(n):kl;case`run_pack`:return t.tasks?await t.tasks.runPack(n):kl;case`start_recording`:return t.tasks?await t.tasks.startRecording(n):kl;case`write_test`:return t.tasks?t.tasks.writeTest():kl;case`pause_recording`:return t.tasks?await t.tasks.pauseRecording(n):kl;case`stop_recording`:return t.tasks?await t.tasks.stopRecording(n):kl;case`undo_step`:return t.tasks?await t.tasks.undoStep():kl;case`add_check`:return t.tasks?await t.tasks.addCheck(n):kl;case`add_note`:return t.tasks?await t.tasks.addNote(n):kl;case`stop_forgeqe`:return await t.stopWork()?`Stopped ForgeQE's work.`:`ForgeQE is not working on anything now.`;case`ignore`:return Al;default:return`That is not one of the tools.`}}var Bl=/\bprod(?:uction)?\b/i,Vl=/^(?:starting|recording|paused|stopping)$/,Hl=/\b(?:resume|unpause|carry on|carry|go on|continue|keep going|record again)\b/i,Ul=/\b(?:pause|hold|hold on|freeze|wait)\b/i,Wl=/\b(?:anyway|any way|all the same|even so|regardless|force|without (?:the )?checks?)\b/i,Gl=300,Kl=12e3,ql=2,Jl=e=>e.length<=60&&!/--|[/\\{}<>|`$]/.test(e),Yl=864e5,Xl=e=>e.replace(/[\s.!?;:,]+$/,``),Zl=(e,t=80)=>e.replace(/[\u0000-\u001f\u007f\u2028\u2029]+/g,` `).replace(/\s+/g,` `).trim().slice(0,t),Ql=e=>e.toLowerCase().replace(/[^\p{L}\p{M}\p{N}]+/gu,` `).trim(),$l=e=>Ql(e).replace(/ /g,``);function eu(e,t){if(!e||!t)return 0;let n=Array.from({length:t.length+1},(e,t)=>t);for(let r=1;r<=e.length;r++){let i=n[0];n[0]=r;for(let a=1;a<=t.length;a++){let o=n[a];n[a]=Math.min(n[a]+1,n[a-1]+1,i+(e[r-1]===t[a-1]?0:1)),i=o}}return 1-n[t.length]/Math.max(e.length,t.length)}var tu=.75;function nu(e,t){let n=$l(t);if(!n)return;let r=e.filter(e=>$l(e)===n);if(r.length===1)return r[0];let i=e.filter(e=>n.length>=3&&$l(e).includes(n));if(i.length===1)return i[0];if(n.length<4)return;let a=e.filter(e=>eu($l(e),n)>=tu);return a.length===1?a[0]:void 0}function ru(e){let t=e.now??Date.now;async function n(t){let n=e.pageText().replace(/\s+\n/g,`
14
+ `).trim().slice(0,Kl);return n.length<20?`This page has nothing to read yet.`:(await e.summarize(n,t||`What is on this page?`)).trim()||`I could not say what this page shows.`}async function r(n){let r=/week/i.test(n)?`week`:/all|ever/i.test(n)?`all`:`today`,i=r===`all`?0:r===`week`?t()-7*Yl:new Date(new Date(t()).toDateString()).getTime(),a=(await e.runs()).filter(e=>Date.parse(e.startedAt)>=i),o=r===`today`?`today`:r===`week`?`this week`:`in all`;if(!a.length)return r===`all`?`There are no runs yet.`:`There were no runs ${o}.`;let s=e=>a.filter(t=>t.status===e).length,c=a.filter(e=>e.status===`failed`),l=[s(`done`)?`${s(`done`)} passed`:``,c.length?`${c.length} failed`:``,s(`running`)?`${s(`running`)} still running`:``,s(`stopped`)?`${s(`stopped`)} stopped`:``].filter(Boolean),u=l.length>1?`${l.slice(0,-1).join(`, `)} and ${l.at(-1)}`:l[0]??``,d=c.map(e=>Xl(e.title||e.name)).filter(Jl).slice(0,ql),f=d.length?c.length===1?` The failed one was “${d[0]}”.`:` The failed ones include “${d.join(`” and “`)}”.`:``;return`You've had ${a.length} run${a.length===1?``:`s`} ${o}${u?`: ${u}`:``}.${f}`}function i(t){let n=/^\s*(failed|failing|running|all|every)?\s*:?\s*(.*)$/i.exec(t.replace(/[\u0000-\u001f\u007f]+/g,` `))??[],r=/^fail/i.test(n[1]??``)?`failed`:/^running/i.test(n[1]??``)?`running`:`all`,i=(n[2]??``).replace(/^[\s|:;,.\-]+|[\s|:;,.\-]+$/g,``).slice(0,100),a=e.route();return(a[0]!==`runs`||a.length>1)&&e.go(e.href(`runs`)),e.filterRuns({status:r,query:i}),`Showing ${r===`all`?`all`:r} runs${i?` about “${i}”`:``}.`}async function a(t){let n=await e.runs(),r=e.route(),i=r[0]===`runs`&&r[1]?n.find(e=>e.name===r[1]):void 0,a=t.trim()?nu([...new Set(n.map(e=>e.title||e.name))],t):void 0,o=(t.trim()?n.find(e=>(e.title||e.name)===a)??n.find(e=>e.name===t.trim()):void 0)??(t.trim()?void 0:i??n.find(e=>e.status===`failed`));if(!o)return t.trim()?`No run is called “${t}”.`:`No run has failed.`;let s=await e.runDetail(o.name),c=(s.actions??[]).find(e=>e.kind===`rerun`);return c?e.ask(`Run the failed tests of “${Xl(s.title||o.name)}” again? It starts a new chat. Say yes to start.`,async()=>{let t=await e.startChat(c.prompt);return e.go(e.href(`chats`,t)),`Started: the run's failed tests run again in a new chat.`}):`The run “${Xl(s.title||o.name)}” has nothing to run again.`}async function o(t){let n=await e.packs();if(n.job?.running)return`A regression pack is running already.`;let r=/testmu|test mu|cloud/i.test(t)?`testmu`:`local`,i=t.replace(/\bon\s+(?:testmu|test mu|the cloud|cloud|this computer)\b/gi,``).trim(),a=n.packs,o=/^(?:|latest|last|newest)$/i.test(i)?[...a].sort((e,t)=>Date.parse(t.createdAt)-Date.parse(e.createdAt))[0]:a.find(e=>e.name===nu(a.map(e=>e.name),i));if(!o)return a.length?`No pack is called “${i}”. The packs are: ${a.slice(0,5).map(e=>e.name).join(`, `)}.`:`There is no regression pack yet.`;let s=r===`testmu`?`on TestMu`:`on this computer`;return e.ask(`Run the regression pack “${o.name}”, ${o.tests} test${o.tests===1?``:`s`}, ${s}? Say yes to start.`,async()=>(await e.runPack(o.name,r),e.go(e.href(`regression`,encodeURIComponent(o.name))),`Started: the pack “${o.name}” runs ${s}.`))}async function s(t){let n=await e.record();if(n.session)return`A recording is going already: stop it on the Record page first.`;if(n.environment&&Bl.test(n.environment))return`Talk does not start a recording on an environment named like production.`;let r=n.apps.map(e=>e.name),i=n.desktop.available?n.desktop.apps:[],a=n.mobile.apps.map(e=>e.name),o=nu([...r,...i,...a],t);if(!o)return`No app is called “${t}”. The apps are: ${[...r,...i,...a].slice(0,8).join(`, `)||`none yet`}.`;let s=r.includes(o)?{app:o}:i.includes(o)?{kind:`desktop`,app:o}:{kind:`mobile`,app:o};return e.ask(`Start recording ${o}? Say yes to start.`,async()=>(await e.startRecording(s),e.go(e.href(`record`)),`Recording ${o}: do the steps, and say stop on the Record page when done.`))}function c(){let t=e.route();if(t[0]!==`record`||t[1]!==`recording`||!t[2])return`Open a recording first: a test is written from the recording open on the page.`;let n=t[2];return e.ask(`Write a test from this recording? Its steps are played first, then the test is written. Say yes to start.`,async()=>(await e.writeTest(n),`Writing the test: its progress shows on this page.`))}async function l(){let t=(await e.record()).session;return t&&Vl.test(t.state)?t:`No recording is going on.`}let u=e=>Zl(e.app||e.name||``,60)||`the app`;async function d(t){let n=await l();if(typeof n==`string`)return n;if(n.kind!==`web`)return`A ${n.kind} recording cannot be paused: only Stop.`;if(n.state===`starting`)return`The recording is still starting.`;if(n.state===`stopping`)return`The recording is stopping already.`;let r=n.state===`paused`,i=Hl.test(t)?`resume`:Ul.test(t)?`pause`:r?`resume`:`pause`;return i===`pause`&&r?`The recording is paused already.`:i===`resume`&&!r?`The recording is going: there is nothing to carry on from.`:(await e.recordCommand({cmd:`pause`}),r?`Recording again.`:`Paused: what you do now is not recorded.`)}async function f(t){let n=await l();if(typeof n==`string`)return n;if(n.state===`stopping`)return`The recording is stopping already.`;let r=Wl.test(t),i=u(n),a=r?`Stop recording ${Xl(i)} without the checks the recorder asked for? Say yes to stop.`:`Stop and save the recording of ${Xl(i)}? Say yes to stop.`;return e.ask(a,async()=>(await e.recordCommand({cmd:`stop`,...r?{force:!0}:{}}),e.go(e.href(`record`)),n.case&&!r?`Stopping ${Xl(i)}. If the recorder asks for a check first, say “stop anyway”.`:`Stopping ${Xl(i)}: it is saved, and its steps open for review.`))}async function p(){let t=await l();if(typeof t==`string`)return t;if(t.kind===`desktop`)return`A desktop recording takes only Stop from here: in the app, Ctrl+Shift+F11 over a control adds a check.`;if(!t.steps.length)return`Nothing is recorded yet.`;let n=Zl(`${t.steps.at(-1).op} ${t.steps.at(-1).text}`.trim());return e.ask(`Remove the last step${n?`, ${Xl(n)}`:``}? Say yes to remove it.`,async()=>(await e.recordCommand({cmd:`undo`}),`Removed the last step.`))}async function m(t){let n=await l();if(typeof n==`string`)return n;if(n.kind!==`web`)return n.kind===`desktop`?`A desktop check is added in the app: Ctrl+Shift+F11 over the control.`:`A mobile check is added on the Record page: pick the control on the screen.`;if(n.state===`paused`)return`The recording is paused: say carry on first, then add the check.`;if(n.state!==`recording`)return`The recording is not ready yet.`;let r=Zl(t.replace(/^\s*note\b[:,]?\s*/i,``),Gl);return r?(await e.recordCommand({cmd:`chat`,text:r}),`Asked for a check that the page shows “${Xl(r)}”: the recorder adds it where it finds it.`):(await e.recordCommand({cmd:`assert`}),`Pick the thing to check in the browser; Esc stops waiting.`)}async function h(t){let n=await l();if(typeof n==`string`)return n;if(n.kind!==`web`)return`A ${n.kind} recording takes no note from here.`;if(n.state===`starting`||n.state===`stopping`)return`The recording is not ready yet.`;let r=Zl(t.replace(/^\s*note\b[:,]?\s*/i,``),Gl);return r?(await e.recordCommand({cmd:`chat`,text:`note: ${r}`}),`Noted: “${Xl(r)}”.`):`What should the note say?`}return{describePage:n,runStats:r,filterRuns:i,rerunFailed:a,runPack:o,startRecording:s,writeTest:c,pauseRecording:d,stopRecording:f,undoStep:p,addCheck:m,addNote:h}}function iu(e,t){switch(e){case`browser_window`:return{section:`browser`,selector:`[data-setting="browser.headless"]`};case`desktop_replay`:return{section:`desktop`,selector:`[data-setting="desktop.headed"]`};case`mobile_window`:return{section:`mobile`,selector:`[data-setting="mobile.headless"]`};case`model`:return{section:`models`,selector:`[data-setting="llm.active"]`};case`environment`:return/^[\w-]+$/.test(t)?{section:`environments`,selector:`[role="radio"][aria-label="Use ${t}"]`}:{section:`environments`,selector:``};case`language`:return{section:`voice`,selector:`[data-setting="talk.language"]`};case`voice`:return{section:`voice`,selector:`[data-setting="talk.voice"]`};case`wake_word`:return{section:`voice`,selector:`[data-setting="talk.wake"]`};case`theme`:return null}}var au=8e3,ou=4e3,su=`forgeqe:setting-shown`,cu=null;function lu(e,t,n,r,i){let a=iu(e,n);if(!a)return null;cu={...a,note:`${t} is now ${n}`,at:Date.now()};let o=i(`settings`,a.section);return location.hash.replace(/^#/,``)!==o.replace(/^#/,``)&&r(o),window.dispatchEvent(new CustomEvent(su)),cu}function uu(e){let t=()=>cu&&cu.section===e&&Date.now()-cu.at<au?cu:null,[n,r]=(0,L.useState)(t);return(0,L.useEffect)(()=>{let e=()=>r(t());return e(),window.addEventListener(su,e),()=>window.removeEventListener(su,e)},[e]),(0,L.useEffect)(()=>{if(!n)return;let e=!1,t=[],i=Date.now()+3e3,a=()=>{if(e)return;let r=n.selector?document.querySelector(n.selector):null;if(!r){Date.now()<i&&t.push(setTimeout(a,150));return}let o=du(r);o.dataset.voiceChanged=`1`,o.scrollIntoView({block:`center`,behavior:`smooth`}),t.push(setTimeout(()=>delete o.dataset.voiceChanged,ou))};return a(),t.push(setTimeout(()=>r(null),Math.max(0,au-(Date.now()-n.at)))),()=>{e=!0,t.forEach(clearTimeout)}},[n]),n}function du(e){if(e.dataset.setting)return e;let t=e;for(;t&&t.parentElement&&t.offsetWidth<320;)t=t.parentElement;return t??e}var fu=6,pu=6e4,mu=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{},hu=new Set([`describe_page`,`run_stats`,`pause_recording`,`stop_recording`,`undo_step`,`add_check`,`add_note`]);function gu(){try{return location.hash.replace(/^#\/?/,``).split(/[/?]/).filter(Boolean).map(decodeURIComponent)}catch{return[]}}var _u=/^(Nothing|No |There are no|This page has no|The app has nothing|The message box is empty|That is not)/,vu=(0,L.createContext)(null),yu={busy:!1,waiting:!1},bu=e=>new Promise(t=>setTimeout(t,e)),xu=new Set;function Su(e){let[t,n]=(0,L.useState)([]),[r,i]=(0,L.useState)(``);return(0,L.useEffect)(()=>{if(n([]),i(``),!e)return;let t=!1,r=0,a=[];return(async()=>{for(;!t;)try{let o=await Ht.events(e,r,r>0);if(t||(o.events.length&&(a.push(...o.events),r=o.events.at(-1).n,n([...a])),i(o.state),o.state===`closed`||o.state===`failed`))return}catch{await bu(2e3)}})(),()=>{t=!0}},[e]),{thread:(0,L.useMemo)(()=>As(t),[t]),state:r}}function Cu(e){let t=e=>{for(let n of[...e].reverse()){let e=n.children?.length?t(n.children):void 0;if(e)return e;if(n.status===`running`&&n.agent&&n.agent!==`forgeqe`)return n.agent}},n=e.at(-1);return n&&t(n.steps)||`forgeqe`}function wu(e,t,n,r,i){let a=(0,L.useRef)(null);(0,L.useEffect)(()=>{if(n&&e){if(a.current!==e){a.current=e;for(let e of t)xu.add(e.id)}else for(let e of t)xu.has(e.id)||(xu.add(e.id),r(e).then(e=>i?.(e)))}},[e,t.length,n])}function Tu({pages:e,find:t,children:n}){let[r,i]=(0,L.useState)(null),a=(0,L.useRef)(null);a.current=r;let[o,s]=(0,L.useState)(null),c=r?.chat.key;(0,L.useEffect)(()=>{c&&s(c)},[c]);let l=r?null:o,u=Su(l),d=u.thread.turns.at(-1),f=l?{key:l,busy:u.state===`busy`||u.state===`starting`,waiting:!!d&&!d.outcome&&(d.asks.some(e=>e.answer===void 0)||d.waits.some(e=>e.answer===void 0)),last:d?{id:d.id,outcome:d.outcome,reply:d.reply,error:d.error,text:d.outcome&&d.reply?d.reply:d.parts.map(e=>Ro(e.text)).filter(Boolean).join(`
15
15
 
16
- `)}:void 0,ask:d?.outcome?void 0:d?.asks.find(e=>e.answer===void 0),answer:(e,t)=>Ht.answer(l,e,t)}:void 0,p=(0,L.useRef)(vu),m=(0,L.useRef)(`en`);p.current=r?.chat??f??vu;let h=(0,L.useRef)(null),g=(0,L.useCallback)(n=>({commands:()=>h.current??=yr(()=>import(`./paletteCommands-CGFwmBxN.js`).then(t=>t.everyCommand(e)),__vite__mapDeps([0,1,2,3,4,5])),runs:async()=>(await sn.list()).runs.map(e=>({name:e.name,title:e.title})),chats:async()=>(await Ht.list()).chats.map(e=>({id:e.id,title:e.title})),find:t,go:e=>location.hash.replace(/^#/,``)===e.replace(/^#/,``)?(window.dispatchEvent(new HashChangeEvent(`hashchange`)),!1):(location.hash=e,!0),back:()=>history.back(),...n?{current:n}:{}}),[e,t]),_=(0,L.useCallback)(e=>ts(e,g(a.current?.chat.key??o??void 0)),[g,o]),v=(0,L.useCallback)(async e=>{if(o){await Ht.send(o,e);return}let{id:t}=await Ht.start(e,{});eo(t),s(t)},[o]),y=(0,L.useRef)(null),b=(0,L.useCallback)(async e=>{let n=Ks(e);if(!n)return!1;switch(n.kind){case`stop`:return y.current?.toggle(),``;case`back`:return history.back(),``;case`new-chat`:return location.hash=F(),``;case`last-run`:{let e=await _({id:`voice`,action:`open_run`,what:`latest`});return Fl(`open_run`,e)?``:e}case`last-chat`:{let e=await _({id:`voice`,action:`open_chat`,what:`latest`});return Fl(`open_chat`,e)?``:e}case`find`:return ko(await g().commands(),n.what).length?(t(n.what),``):!1;case`open`:{let e=jo(await g().commands(),n.what);return e?(location.hash=e.href,``):!1}}},[_,g,t]),x=(0,L.useRef)([]),{setChoice:ee}=ea(),S=(0,L.useRef)(null),[C,w]=(0,L.useState)(null),T=(0,L.useCallback)(e=>{S.current=e,w(e?e.question:null)},[]);(0,L.useEffect)(()=>{if(!C)return;let e=setTimeout(()=>T(null),fu);return()=>clearTimeout(e)},[C,T]);let E=(0,L.useRef)(null),D=(0,L.useCallback)(async()=>{if(!E.current||Date.now()-E.current.at>3e4){let e=await en.settings().catch(()=>null);E.current={at:Date.now(),names:e?Object.keys(pu(pu(e.models).models)):[],environments:e?Object.keys(pu(pu(e.environments).environments)):[]}}let e=m.current===`hi`;return{models:E.current.names,environments:E.current.environments,voices:(y.current?.view?.voices??[]).filter(t=>Is(t)===e)}},[]),te=(0,L.useCallback)(async e=>{let t=hc(e,await D());if(typeof t==`string`)return t;let{setting:n,value:r,said:i}=t,a=y.current;if(!n.project)return n.id===`theme`?ee(r):n.id===`language`?a?.setLanguage(r):n.id===`wake_word`?a?.setWake(r):n.id===`voice`&&a?.setVoice(r),cu(n.id,n.label,i,e=>location.hash=e,F),`Changed ${n.label} to ${i}.`;let o=await en.settings(),s=pu(o.config);if(({browser_window:pu(s.browser).headless===!1?`shown`:`hidden`,desktop_replay:pu(s.desktop).headed===!0?`headed`:`headless`,mobile_window:pu(s.mobile).headless===!0?`hidden`:`shown`,model:String(pu(s.llm).active||pu(o.models).default||`the default`),environment:String(pu(o.environments).default||`none`)}[n.id]??``)===i)return`${n.label.charAt(0).toUpperCase()}${n.label.slice(1)} is already ${i}.`;let c=()=>(cu(n.id,n.label,i,e=>location.hash=e,F),`Changed ${n.label} to ${i}.`);try{let e=await en.settings();if(n.id===`environment`)return await en.save(`environments`,{...structuredClone(pu(e.environments)),default:r},e.versions.environments),E.current=null,c();let t=structuredClone(pu(e.config)),i={browser_window:[`browser`,`headless`],desktop_replay:[`desktop`,`headed`],mobile_window:[`mobile`,`headless`],model:[`llm`,`active`]}[n.id];if(!i)return`Not saved: Talk does not change that setting.`;let a=pu(t[i[0]]);return t[i[0]]={...a,[i[1]]:r},await en.save(`config`,t,e.versions.config),E.current=null,c()}catch(e){return`Not saved: ${e.message}`}},[D,ee]),O=(0,L.useCallback)((e,t)=>(T({question:e,apply:t,more:!1,at:Date.now()}),`Waiting for the person's yes: ${e}`),[T]),ne=(0,L.useMemo)(()=>nu({runs:async()=>(await sn.list()).runs,runDetail:e=>sn.detail(e),startChat:async e=>(await Ht.start(e,{})).id,packs:()=>qt.list(),runPack:async(e,t)=>void await qt.run(e,t),record:()=>xt.get(),startRecording:async e=>void await xt.start(e),recordCommand:e=>xt.command(e),writeTest:async e=>void await xt.write(e,{check:!0}),route:hu,go:e=>{location.hash=e},pageText:()=>document.querySelector(`main`)?.innerText??document.body.innerText??``,summarize:async(e,t)=>(await Tt.summary({reply:e,request:t,...m.current===`hi`?{language:`hi`}:{}})).say,filterRuns:e=>setTimeout(()=>window.dispatchEvent(new CustomEvent(`forgeqe:runs-filter`,{detail:e})),500),ask:O,href:F}),[O]),re=(0,L.useCallback)(e=>{let t=a.current;return{...g(t?.chat.key??o??void 0),commands:async()=>e,runList:async()=>(await sn.list()).runs.map(e=>({name:e.name,title:e.title,status:e.status,startedAt:e.startedAt})),matches:async t=>ko(e,t).length,...t?.draft?{box:{add:t.draft.add,send:t.draft.sendDraft}}:{},autoSend:!!y.current?.autoSend,ask:async e=>{let t=a.current;t?.onHeard?await t.onHeard(e):await v(e)},busy:()=>!!p.current.busy,stopWork:async()=>{let e=a.current?.chat.key??o;return!e||!p.current.busy?!1:(await Ht.stop(e),!0)},changeSetting:te,tasks:ne}},[g,o,v,te,ne]),ie=(0,L.useCallback)(async(e,t,n={})=>{let r=t.filter(e=>e.kind!==`field`).map(e=>e.kind===`setting`?`Settings › ${e.label}`:e.label),i=mc(await D()),o=``,s=!1,c=!1;for(let l=0;l<du;l++){let u=n.unclear&&l===0?[]:r,d=await Tt.turn({history:e.slice(-24),page:{title:document.title||`ForgeQE`,box:!!a.current?.draft,busy:!!p.current.busy,...m.current===`hi`?{language:`hi`}:{}},places:u,settings:i});if(e.push({role:`assistant`,text:JSON.stringify(d)}),d.say&&(o=d.say),!d.call){c=!1;break}if(d.call.tool===`ignore`)return e.push({role:`tool`,text:kl}),{say:``,acted:!1,ignored:!0};s=!0;let f=S.current,h=[...e].reverse().find(e=>e.role===`user`)?.text??``,g=d.call.tool===`open`?$o(t,d.call.what,h):void 0,_=await Rl(g?{...d.call,what:g.label}:d.call,re(t));if(e.push({role:`tool`,text:_}),S.current&&S.current!==f)return S.current.more=!!d.more,{say:S.current.question,acted:s};if(mu.has(d.call.tool)&&!d.more)return{say:_,acted:s};if(o=Ll(o,d.call.tool,_,m.current),c=Fl(d.call.tool,_),!c&&!o.trim()&&(o=_),!d.more&&d.call.tool!==`list_runs`&&!gu.test(_))break;d.more&&await new Promise(e=>setTimeout(e,300))}return{say:c?``:o,acted:s}},[D,re]),ae=(0,L.useCallback)(async(e,t,n,r)=>{let i=x.current,a=m.current===`hi`,o=t===`yes`?await e.apply():`Left as it was.`;i.push({role:`user`,text:n},{role:`tool`,text:`The person said ${t}. ${o}`});let s=t===`yes`&&!o.startsWith(`Not saved`);try{if(s&&e.more)return(await ie(i,r)).say}catch(e){return`I could not reach the model: ${e.message}`}finally{x.current=i.slice(-24)}return t===`no`?a?`जैसा था वैसा रखा।`:`Left as it was.`:a&&s?`हो गया।`:o},[ie]),oe=(0,L.useCallback)(async e=>{switch(e.kind){case`setting`:{let t=await te(e.what);return{say:/^Changed /.test(t)?``:t,result:t}}case`open`:{let t=await _({id:`voice`,action:`open`,what:e.what});return Fl(`open`,t)?{say:``,result:t}:null}case`last-run`:case`last-chat`:{let t=e.kind===`last-run`?`open_run`:`open_chat`,n=await _({id:`voice`,action:t,what:`latest`});return{say:Fl(t,n)?``:n,result:n}}case`back`:return history.back(),{say:``,result:`Went back.`};case`new-chat`:return location.hash=F(),{say:``,result:`Opened a new chat.`};case`stop`:return y.current?.toggle(),{say:``,result:`Talk stopped.`}}},[_,te]),se=(0,L.useCallback)(async(e,t={})=>{if(Ks(e)?.kind===`stop`)return b(e);let n=await g().commands(),r=x.current,i=S.current;if(T(null),i&&Date.now()-i.at<fu){let t=gc(e);if(t)return await ae(i,t,e,n)}let o=m.current===`hi`||t.unclear?null:Nc(e),s=o?await oe(o):null;if(s)return r.push({role:`user`,text:e},{role:`tool`,text:s.result}),x.current=r.slice(-24),s.say;r.push({role:`user`,text:e});let c;t.unclear||y.current?.acknowledge();try{c=await ie(r,n,{unclear:t.unclear})}catch(t){return r.pop(),t.status===409?b(e):`I could not reach the model: ${t.message}`}finally{x.current=r.slice(-24)}return c.ignored?null:!c.acted&&!c.say.trim()&&a.current?.draft?(x.current=[...x.current.slice(0,-1),{role:`tool`,text:`The page put the words in the message box.`}].slice(-24),!1):c.say},[g,b,ie,ae,T,oe]),ce=(0,L.useCallback)(async e=>(await Tt.summary({reply:e,...m.current===`hi`?{language:`hi`}:{}})).say,[]),le=(0,L.useRef)({at:0,text:``}),ue=(0,L.useCallback)(()=>(Date.now()-le.current.at>6e4&&(le.current.at=Date.now(),(async()=>{let[e,t]=await Promise.all([D().catch(()=>null),xt.get().catch(()=>null)]),n=[...e?.environments??[],...t?[...t.apps.map(e=>e.name),...t.desktop.available?t.desktop.apps:[],...t.mobile.apps.map(e=>e.name)]:[]];le.current.text=[...new Set(n)].join(`, `)})()),le.current.text),[D]),de=Dl(p.current,r?r.onHeard:v,r?.draft,{command:se,summarize:ce,vocabulary:ue});m.current=de.language,y.current=de;let k=(0,L.useCallback)(async e=>{let t=S.current;if(T(null),!t||Date.now()-t.at>=fu)return;let n=await ae(t,e,e===`yes`?`Yes.`:`No.`,await g().commands());n&&y.current?.say(n)},[T,ae,g]);Cu(l,u.thread.turns.flatMap(e=>e.actions),u.state!==``,_);let A=(0,L.useCallback)(e=>i(e),[]),fe=Su(u.thread.turns),pe=(0,L.useMemo)(()=>({talk:de,attach:A,act:_,voiceChat:o,attached:!!r?.draft,voiceAgent:fe,asking:C,answerAsk:k}),[de,A,_,o,r,fe,C,k]);return(0,U.jsx)(_u.Provider,{value:pe,children:n})}function Tu(){return(0,L.useContext)(_u)}function Eu(e){let t=(0,L.useContext)(_u);if(!t)throw Error(`useTalkHere needs the TalkProvider`);let{attach:n}=t,r=(0,L.useRef)(e);r.current=e;let i=e.chat,a=JSON.stringify([i.key,i.busy,i.waiting,i.last?.id,i.last?.outcome,i.last?.reply,i.last?.error,i.last?.text,!!e.draft,!!e.onHeard]);return(0,L.useEffect)(()=>{let e=r.current;n({chat:e.chat,onHeard:e=>r.current.onHeard?.(e),...e.draft?{draft:{add:e=>r.current.draft?.add(e),sendDraft:()=>r.current.draft?.sendDraft()??!1}}:{}})},[a,n]),(0,L.useEffect)(()=>()=>n(null),[n]),t.talk}function Du({icon:e,logo:t,pixel:n,size:r=`md`,className:i}){return(0,U.jsx)(`span`,{"aria-hidden":`true`,className:P(`inline-flex flex-none items-center justify-center rounded-[10px]`,t?`border border-line bg-bg`:n||e&&jt.has(e)?`theme-side border border-line-soft`:`bg-surface-strong text-ink-2`,r===`lg`?`size-10`:`size-9`,i),children:n?(0,U.jsx)(nn,{name:n,px:r===`lg`?24:20}):t?(0,U.jsx)(t,{className:r===`lg`?`size-5`:`size-[18px]`}):e?(0,U.jsx)(Wt,{icon:e,size:r===`lg`?20:18}):null})}var Ou=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{};function ku(e,t){let n=e;for(let e of t)n=Ou(n)[e];return n}var Au=e=>e===void 0||e===``||typeof e==`number`&&Number.isNaN(e);function ju(e,t,n){let[r,...i]=t;if(r===void 0)return e;let a={...e},o=i.length?ju(Ou(e[r]),i,n):n;return Au(o)||i.length&&Au(n)&&!Object.keys(Ou(o)).length?delete a[r]:a[r]=o,a}function Mu(e,t,n){let r={};for(let[i,a]of Object.entries(e))r[i===t?n:i]=a;return r}function Nu(e,t){if(!(t in e))return t;for(let n=2;;n++)if(!(`${t}-${n}`in e))return`${t}-${n}`}var Pu=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Fu({checked:e,onChange:t,label:n,id:r,disabled:i}){return(0,U.jsx)(`button`,{type:`button`,role:`switch`,id:r,"aria-checked":e,"aria-label":n,disabled:i,onClick:()=>t(!e),className:P(`relative h-5 w-9 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,U.jsx)(`span`,{"aria-hidden":`true`,className:P(`absolute top-1/2 size-4 -translate-y-1/2 rounded-full bg-white shadow-sm left-0.5 transition-transform`,e&&`translate-x-4`)})})}var Iu=/^[A-Za-z0-9_-]{1,64}$/;function Lu(e,t=5){let n=e=>Date.parse(e.lastAt||e.started)||0;return e.filter(e=>typeof e.id==`string`&&Iu.test(e.id)).sort((e,t)=>n(t)-n(e)).slice(0,t)}var Ru=e=>!!e.waiting||e.state===`ready`&&e.outcome===`needs_input`;function zu(e){let[t,n]=(0,L.useState)(null);return(0,L.useEffect)(()=>{let e=!1,t=()=>Ht.list().then(t=>!e&&n(Lu(t.chats)),()=>!e&&n(e=>e||[]));t();let r=setInterval(t,3e4);return()=>{e=!0,clearInterval(r)}},[e]),t}var Bu={good:`pass`,bad:`fail`,same:`neutral`},Vu={good:`text-pass`,bad:`text-fail`,same:`text-muted`};function Hu(e){return e.dir===`same`||e.good===void 0?`same`:e.good?`good`:`bad`}function Uu({children:e,label:t,className:n}){return(0,U.jsx)(`section`,{"aria-label":t,className:P(`grid grid-cols-[repeat(auto-fit,minmax(min(100%,150px),1fr))] overflow-hidden rounded-[14px] card border`,n),children:e})}function Wu({label:e,value:t,note:n,icon:r,period:i,change:a,tone:o,big:s,compact:c,className:l}){let u=a&&Hu(a),d=a?.dir===`up`?Me:a?.dir===`down`?M:void 0;return(0,U.jsxs)(`div`,{className:P(`-mr-px -mb-px flex min-w-0 flex-col border-r border-b border-line-soft`,c?`gap-1 px-4 py-2`:`gap-1 px-6 py-4`,l),children:[(0,U.jsxs)(`span`,{className:P(`flex min-w-0 items-center gap-2 font-medium text-ink`,`text-[13px]`),children:[r&&(0,U.jsx)(Wt,{icon:r,size:14,className:`flex-none text-muted`}),(0,U.jsx)(`span`,{className:`min-w-0`,children:e})]}),i&&(0,U.jsx)(`span`,{className:`text-[13px] text-muted`,children:i}),(0,U.jsxs)(`span`,{className:P(`flex flex-wrap items-center gap-x-2 gap-y-1`,c?`mt-0`:i?`mt-2`:`mt-1`),children:[(0,U.jsx)(`span`,{className:P(`leading-tight font-semibold tracking-[-0.02em] tabular-nums`,s?`text-[25px]`:c?`text-[20px]`:`text-[25px]`,o),children:t}),a&&u&&(0,U.jsx)(`span`,{"aria-hidden":a.against?!0:void 0,className:`inline-flex`,children:(0,U.jsxs)(Vt,{tone:Bu[u],icon:!1,className:`tabular-nums`,children:[d&&(0,U.jsx)(d,{size:12,strokeWidth:2.5,"aria-hidden":`true`,className:`flex-none`}),a.text]})})]}),(n||a?.against)&&(0,U.jsx)(`span`,{className:P(`text-muted tabular-nums`,c?`truncate text-[13px]`:`text-[13px]`),children:a?.against&&u?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{className:Vu[u],children:a.amount??a.text}),` `,a.against,n?(0,U.jsxs)(U.Fragment,{children:[` · `,n]}):null]}):n})]})}var Gu=`px-4 py-2 text-left text-[13px] font-medium whitespace-nowrap text-muted`,Ku=`px-4 py-2 text-right text-[13px] font-medium whitespace-nowrap text-muted`,qu=`border-t border-line-soft align-top`,Ju=`cursor-pointer border-t border-line-soft align-top hover:bg-surface-muted`,Yu=`px-4 py-2`,Xu=`px-4 py-2 text-right whitespace-nowrap tabular-nums`,Zu=new Set([`className`,`style`,`key`,`ref`,`id`,`role`,`type`,`colSpan`,`rowSpan`,`scope`,`data-tip-side`]);function Qu(e,t=0){if(e==null||typeof e==`boolean`||typeof e==`function`||t>12)return``;if(typeof e==`string`||typeof e==`number`)return String(e);if(Array.isArray(e))return e.map(e=>Qu(e,t+1)).join(` `);if((0,L.isValidElement)(e))return Qu(e.props,t+1);if(typeof e==`object`){let n=[];for(let[r,i]of Object.entries(e))Zu.has(r)||r.startsWith(`on`)||r.startsWith(`aria-`)||n.push(Qu(i,t+1));return n.join(` `)}return``}function $u({label:e,head:t,children:n,empty:r=`None.`,size:i=25,resetKey:a,fixed:o=!1,minWidth:s,className:c,search:l=!0,placeholder:u,tools:d,height:f}){let p=L.Children.toArray(n),[m,h]=(0,L.useState)(``),g=m.toLowerCase().split(/\s+/).filter(Boolean),_=(0,L.useMemo)(()=>l?p.map(e=>Qu(e).toLowerCase()):[],[n,l]),v=g.length?p.filter((e,t)=>g.every(e=>_[t].includes(e))):p,[b,x]=(0,L.useState)(0);(0,L.useEffect)(()=>x(0),[a,m]);let ee=(0,L.useRef)(null);(0,L.useEffect)(()=>{f&&ee.current&&(ee.current.scrollTop=0)},[b,m,a,f]);let S=Math.max(1,Math.ceil(v.length/i)),C=Math.min(b,S-1),w=v.slice(C*i,C*i+i),T=L.Children.toArray((0,L.isValidElement)(t)&&t.type===L.Fragment?t.props.children:t).length;return(0,U.jsxs)(`div`,{className:P(`overflow-hidden border-t border-line`,c),children:[(l||d)&&(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b border-line-soft px-2 py-2`,children:[l&&(0,U.jsxs)(`label`,{className:`relative flex min-w-0 w-full max-w-[320px] flex-[0_1_320px] items-center`,children:[(0,U.jsx)(y,{size:14,"aria-hidden":`true`,className:`pointer-events-none absolute left-2.5 text-muted`}),(0,U.jsxs)(`span`,{className:`sr-only`,children:[`Find in `,e.toLowerCase()]}),(0,U.jsx)(zt,{size:`sm`,type:`search`,value:m,spellCheck:!1,placeholder:u??`Find in ${e.toLowerCase()}`,onChange:e=>h(e.target.value),className:`pl-8`})]}),d,g.length>0&&(0,U.jsxs)(`span`,{className:`text-[13px] whitespace-nowrap text-muted`,role:`status`,children:[v.length,` of `,p.length]})]}),(0,U.jsx)(`div`,{ref:ee,className:P(`relative overflow-x-auto`,f&&`overflow-y-auto overscroll-contain`),style:f?{height:f}:void 0,children:(0,U.jsxs)(`table`,{"aria-label":e,className:P(`w-full border-collapse text-[13px]`,o&&`table-fixed`),style:s?{minWidth:s}:void 0,children:[(0,U.jsx)(`thead`,{children:(0,U.jsx)(`tr`,{className:P(`bg-surface-strong text-left text-[13px] text-muted`,f&&`sticky top-0 z-[1]`),children:t})}),(0,U.jsxs)(`tbody`,{children:[w,!v.length&&(0,U.jsx)(`tr`,{children:(0,U.jsx)(`td`,{colSpan:Math.max(1,T),className:`px-4 py-4 text-center text-muted`,children:g.length&&p.length?`Nothing matches.`:r})})]})]})}),v.length>0&&(0,U.jsx)(Xt,{page:C,size:i,total:v.length,onPage:x,label:`Pages of ${e.toLowerCase()}`})]})}var ed=(0,L.createContext)({pending:{},set:()=>{},saved:new Set,vars:{},store:`the credential store`}),td=()=>(0,L.useContext)(ed);function nd(e){return/[\\/]/.test(e)?`ForgeQE's private credentials file (readable only by you)`:e}var rd=/^[A-Za-z_][A-Za-z0-9_]*$/;function id(e,t){return t in e.pending?e.pending[t]===null?`removing`:`pending`:e.saved.has(t)?`saved`:e.vars[t]?`environment`:`missing`}var ad={pending:`Not saved yet`,removing:`Removed when you save`,saved:`Saved`,environment:`Set in the environment`,missing:`Not set`},od=(e,t)=>[`pending`,`saved`,`environment`].includes(id(e,t));function sd({name:e}){let t=td();if(!e)return null;if(!rd.test(e))return(0,U.jsx)(`span`,{className:`text-[13px] text-fail`,children:`Not a variable name`});let n=id(t,e);return(0,U.jsx)(`span`,{className:P(`text-[13px]`,n===`saved`||n===`environment`?`text-pass`:n===`missing`?`text-muted`:`text-accent-fg`),children:ad[n]})}var cd=/user|email|login|client_id|account/i;function ld({id:e,name:t,field:n,onRename:r,compact:a}){let o=td(),s=(0,L.useId)(),c=e||s,[l,u]=(0,L.useState)(!1),f=id(o,t),p=typeof o.pending[t]==`string`?o.pending[t]:``,m=cd.test(n)||cd.test(t);return(0,U.jsxs)(`div`,{className:`flex w-full min-w-0 flex-col gap-2`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(zt,{id:c,type:m?`text`:`password`,autoComplete:`off`,spellCheck:!1,value:p,disabled:!rd.test(t),placeholder:f===`saved`?`Saved. Type a new value to replace it`:f===`environment`?`Set in the environment. Type a value to save one`:m?`Type it once`:`Paste it once`,onChange:e=>o.set(t,e.target.value||void 0)}),f===`saved`&&(0,U.jsx)(I,{variant:`icon`,size:`icon-sm`,onClick:()=>o.set(t,null),"aria-label":`Remove the saved value of ${t}`,"data-tip":`Remove the saved value of ${t}`,children:(0,U.jsx)(Ve,{"aria-hidden":`true`})}),f===`removing`&&(0,U.jsxs)(I,{size:`sm`,"data-tip":`Keep the saved value of ${t}`,onClick:()=>o.set(t,void 0),children:[(0,U.jsx)(i,{"aria-hidden":`true`}),`Keep`]})]}),!a&&(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 text-[13px] text-muted`,children:[(0,U.jsx)(sd,{name:t}),(0,U.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),l&&r?(0,U.jsx)(zt,{size:`sm`,"aria-label":`Variable name`,autoFocus:!0,defaultValue:t,spellCheck:!1,onBlur:e=>{let n=e.target.value.trim();n&&rd.test(n)&&n!==t&&r(n),u(!1)},onKeyDown:e=>e.key===`Enter`&&e.target.blur(),className:`max-w-[260px] font-mono`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`span`,{children:[`Kept as `,(0,U.jsx)(`span`,{className:`font-mono text-[13px]`,children:t})]}),r&&(0,U.jsxs)(`button`,{type:`button`,onClick:()=>u(!0),"data-tip":`Change the variable's name`,className:`inline-flex min-h-8 cursor-pointer items-center gap-1 border-0 bg-transparent p-0 text-[13px] font-medium text-accent-fg hover:text-accent-fg-hover [&>svg]:size-3.5`,children:[(0,U.jsx)(d,{"aria-hidden":`true`}),`Rename`]})]})]})]})}function ud({name:e}){return(0,U.jsx)(sd,{name:e})}function dd({id:e,name:t,field:n,named:r,onName:i}){let a=td();return(0,U.jsx)(fd,{onFirstValue:()=>{!r&&t&&i(t)},secrets:a,children:(0,U.jsx)(ld,{id:e,name:t,field:n,onRename:i})})}function fd({secrets:e,onFirstValue:t,children:n}){return(0,U.jsx)(ed.Provider,{value:{...e,set:(n,r)=>{r&&t(),e.set(n,r)}},children:n})}function pd({label:e,help:t,htmlFor:n,children:r,className:i,stacked:a,yamlKey:o,setting:s}){let c=s??o,l=o?(0,U.jsx)(`code`,{className:`font-mono text-[13px] text-muted [overflow-wrap:anywhere]`,children:o}):null;return a?(0,U.jsxs)(`div`,{"data-setting":c,className:P(`flex flex-col gap-4 py-4`,i),children:[(0,U.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[n?(0,U.jsx)(`label`,{htmlFor:n,className:`text-[13px] leading-snug font-medium text-ink`,children:e}):(0,U.jsx)(`span`,{className:`text-[13px] leading-snug font-medium text-ink`,children:e}),t&&(0,U.jsx)(`span`,{className:`text-[13px] leading-relaxed text-ink-2`,children:t}),l]}),(0,U.jsx)(`div`,{className:`[&>*]:max-w-none`,children:r})]}):(0,U.jsxs)(`div`,{"data-setting":c,className:P(`flex min-h-16 flex-wrap items-center gap-x-10 gap-y-4 border-t border-line-soft py-4`,i),children:[(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-1`,children:[n?(0,U.jsx)(`label`,{htmlFor:n,className:`text-[13px] leading-snug font-medium text-ink`,children:e}):(0,U.jsx)(`span`,{className:`text-[13px] leading-snug font-medium text-ink`,children:e}),t&&(0,U.jsx)(`span`,{className:`max-w-measure text-[13px] leading-relaxed text-ink-2`,children:t}),l]}),r!=null&&r!==!1&&(0,U.jsx)(`div`,{className:`flex w-full flex-wrap items-center gap-2 sm:w-[340px] sm:flex-none sm:justify-end`,children:r})]})}var md=`flex w-full flex-wrap items-center gap-2 sm:w-[340px] sm:flex-none sm:justify-end`,hd={"Where runs happen":Qe,"The browser window":Xe,"Limits and checks":je,"Remote browser, set here":k,"Where tests go":o,"How hard it tries":O,"Help it gets":ve,Reports:Ge,"Memory and replays":ye,Suites:t,"Flaky tests":_e,"Release readiness":p,"Regression packs in a pipeline":ft,"Defect analysis":it,Accessibility:et,"Performance and visual changes":f,"API tests":te,"The product":Ne,"Instructions and knowledge":Ke,Capabilities:n,"Project report":oe,"Report datasets":$e,"Running in parallel":h,Driver:he,Appium:ge,"Devices on this computer":_,"TestMu AI devices":k,"BrowserStack devices":k,"Browser devices":Ye,"Appium on this computer":ge,Maestro:Te,"Windows desktop apps":Be,Runtime:qe,"Tests in a container":pt,"The coding agents' workspace":v,"Browser in a container":Ie,"How skills are used":w,Budgets:ct,"Project folder":Ce,"ForgeQE in this folder":le,"This computer":_,"A model":re,"Models file":Ee,"Default model":re,"Product knowledge graph":at,Repositories:o,"Documents and links":x,"Search service":Ke,Documents:x,"The product and its knowledge":Ne,"Building the graph":n,"The team's knowledge":ce,"Agent names":Re,"Custom agents":ze,"Sign-ins":de,"Recent runs":m,"Saved runs":O,"Test data":$e,"Areas of work":ae,"Which model a call gets":ae,Alerts:rt,"When to alert":He,Apps:Ye,"By kind of run":Je,"By run, newest first":m,Guides:Ke,"Last 30 days":Se,"Latest problems":be,"Links in alerts":j,"Model calls":Oe,Plans:tt,"Recent requests":fe,"Results and bugs":ie,"Runs that used the most":ot,"Send a test":me,Services:g,"Tools used":n,"What runs":D,"Check the agent's domain knowledge":we,"Test cases and bugs":mt,"Browser grids":k,Notifications:Le,"Other tools":De},gd=e=>typeof e==`string`?e.trim().replace(/^\d+\.\s*/,``):``;function _d({children:e,help:t,first:n,icon:r}){let i=r??hd[gd(e)];return(0,U.jsxs)(`div`,{className:P(`mb-4 flex flex-col gap-2`,n?`mt-0`:`mt-12`),children:[(0,U.jsxs)(`h3`,{className:`m-0 flex items-center gap-2 text-[16px] leading-snug font-semibold text-ink`,children:[i&&(0,U.jsx)(Wt,{icon:i,size:18,className:`flex-none text-muted`}),e]}),t&&(0,U.jsx)(`p`,{className:P(`m-0 max-w-measure text-[13px] leading-relaxed text-ink-2`,i&&`pl-8`),children:t})]})}var vd=e=>Array.isArray(e)?e.map(String).join(`, `):typeof e==`string`?e:``,yd=e=>e.split(`,`).map(e=>e.trim()).filter(Boolean);function bd({id:e,value:t,onChange:n,placeholder:r,mono:i}){let[a,o]=(0,L.useState)(vd(t)),[s,c]=(0,L.useState)(t);return JSON.stringify(s)!==JSON.stringify(t)&&(c(t),o(vd(t))),(0,U.jsx)(zt,{id:e,value:a,placeholder:r,className:P(i&&`font-mono text-[13px]`),onChange:e=>{o(e.target.value);let t=yd(e.target.value);c(t.length?t:void 0),n(t.length?t:void 0)}})}function xd({def:e,edit:t,base:n,stacked:r}){let i=(0,L.useId)(),a=e.key?[...n,...e.key.split(`.`)]:n,o=ku(t.value,a),s=e=>t.set(ju(t.value,a,e)),c=`w-full`,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,U.jsx)(pd,{label:e.label,help:e.help,yamlKey:l,setting:a.join(`.`),children:(0,U.jsx)(Fu,{checked:t,onChange:s,label:e.label})})}case`select`:u=(0,U.jsxs)(Zt,{id:i,value:String(o===void 0?e.default??``:o),onChange:e=>s(e.target.value!==`false`&&e.target.value),className:`w-full`,children:[e.default===void 0&&(0,U.jsx)(`option`,{value:``,children:e.emptyLabel||`Not set`}),e.options.map(e=>(0,U.jsx)(`option`,{value:e.value,children:e.label},e.value))]});break;case`number`:u=(0,U.jsx)(zt,{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:`w-full`});break;case`list`:u=(0,U.jsx)(`div`,{className:c,children:(0,U.jsx)(bd,{id:i,value:o,onChange:s,placeholder:e.placeholder})});break;case`kv`:u=(0,U.jsx)(`div`,{className:c,children:(0,U.jsx)(Sd,{id:i,value:o,onChange:s,placeholder:e.placeholder})});break;case`textarea`:u=(0,U.jsx)(Qt,{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,U.jsx)(`div`,{className:c,children:(0,U.jsx)(dd,{id:i,name:t,field:e.key,named:o!==void 0||e.default!==void 0,onName:e=>s(e)})}),(0,U.jsx)(pd,{label:e.label.replace(/ variable$/,``),help:e.help,htmlFor:i,stacked:r,yamlKey:l,setting:a.join(`.`),children:u})}default:u=(0,U.jsx)(zt,{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:P(c,e.type===`path`&&`font-mono text-[13px]`)})}return(0,U.jsx)(pd,{label:e.label,help:e.help,htmlFor:i,stacked:r,yamlKey:l,setting:a.join(`.`),children:u})}function Sd({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(`
16
+ `)}:void 0,ask:d?.outcome?void 0:d?.asks.find(e=>e.answer===void 0),answer:(e,t)=>Ht.answer(l,e,t)}:void 0,p=(0,L.useRef)(yu),m=(0,L.useRef)(`en`);p.current=r?.chat??f??yu;let h=(0,L.useRef)(null),g=(0,L.useCallback)(n=>({commands:()=>h.current??=yr(()=>import(`./paletteCommands-DKcFFV7I.js`).then(t=>t.everyCommand(e)),__vite__mapDeps([0,1,2,3,4,5])),runs:async()=>(await _t.list()).runs.map(e=>({name:e.name,title:e.title})),chats:async()=>(await Ht.list()).chats.map(e=>({id:e.id,title:e.title})),find:t,go:e=>location.hash.replace(/^#/,``)===e.replace(/^#/,``)?(window.dispatchEvent(new HashChangeEvent(`hashchange`)),!1):(location.hash=e,!0),back:()=>history.back(),...n?{current:n}:{}}),[e,t]),_=(0,L.useCallback)(e=>ns(e,g(a.current?.chat.key??o??void 0)),[g,o]),v=(0,L.useCallback)(async e=>{if(o){await Ht.send(o,e);return}let{id:t}=await Ht.start(e,{});to(t),s(t)},[o]),y=(0,L.useRef)(null),b=(0,L.useCallback)(async e=>{let n=qs(e);if(!n)return!1;switch(n.kind){case`stop`:return y.current?.toggle(),``;case`back`:return history.back(),``;case`new-chat`:return location.hash=F(),``;case`last-run`:{let e=await _({id:`voice`,action:`open_run`,what:`latest`});return Il(`open_run`,e)?``:e}case`last-chat`:{let e=await _({id:`voice`,action:`open_chat`,what:`latest`});return Il(`open_chat`,e)?``:e}case`find`:return Ao(await g().commands(),n.what).length?(t(n.what),``):!1;case`open`:{let e=Mo(await g().commands(),n.what);return e?(location.hash=e.href,``):!1}}},[_,g,t]),x=(0,L.useRef)([]),{setChoice:ee}=ea(),S=(0,L.useRef)(null),[C,w]=(0,L.useState)(null),T=(0,L.useCallback)(e=>{S.current=e,w(e?e.question:null)},[]);(0,L.useEffect)(()=>{if(!C)return;let e=setTimeout(()=>T(null),pu);return()=>clearTimeout(e)},[C,T]);let E=(0,L.useRef)(null),D=(0,L.useCallback)(async()=>{if(!E.current||Date.now()-E.current.at>3e4){let e=await tn.settings().catch(()=>null);E.current={at:Date.now(),names:e?Object.keys(mu(mu(e.models).models)):[],environments:e?Object.keys(mu(mu(e.environments).environments)):[]}}let e=m.current===`hi`;return{models:E.current.names,environments:E.current.environments,voices:(y.current?.view?.voices??[]).filter(t=>Ls(t)===e)}},[]),O=(0,L.useCallback)(async e=>{let t=gc(e,await D());if(typeof t==`string`)return t;let{setting:n,value:r,said:i}=t,a=y.current;if(!n.project)return n.id===`theme`?ee(r):n.id===`language`?a?.setLanguage(r):n.id===`wake_word`?a?.setWake(r):n.id===`voice`&&a?.setVoice(r),lu(n.id,n.label,i,e=>location.hash=e,F),`Changed ${n.label} to ${i}.`;let o=await tn.settings(),s=mu(o.config);if(({browser_window:mu(s.browser).headless===!1?`shown`:`hidden`,desktop_replay:mu(s.desktop).headed===!0?`headed`:`headless`,mobile_window:mu(s.mobile).headless===!0?`hidden`:`shown`,model:String(mu(s.llm).active||mu(o.models).default||`the default`),environment:String(mu(o.environments).default||`none`)}[n.id]??``)===i)return`${n.label.charAt(0).toUpperCase()}${n.label.slice(1)} is already ${i}.`;let c=()=>(lu(n.id,n.label,i,e=>location.hash=e,F),`Changed ${n.label} to ${i}.`);try{let e=await tn.settings();if(n.id===`environment`)return await tn.save(`environments`,{...structuredClone(mu(e.environments)),default:r},e.versions.environments),E.current=null,c();let t=structuredClone(mu(e.config)),i={browser_window:[`browser`,`headless`],desktop_replay:[`desktop`,`headed`],mobile_window:[`mobile`,`headless`],model:[`llm`,`active`]}[n.id];if(!i)return`Not saved: Talk does not change that setting.`;let a=mu(t[i[0]]);return t[i[0]]={...a,[i[1]]:r},await tn.save(`config`,t,e.versions.config),E.current=null,c()}catch(e){return`Not saved: ${e.message}`}},[D,ee]),k=(0,L.useCallback)((e,t)=>(T({question:e,apply:t,more:!1,at:Date.now()}),`Waiting for the person's yes: ${e}`),[T]),te=(0,L.useMemo)(()=>ru({runs:async()=>(await _t.list()).runs,runDetail:e=>_t.detail(e),startChat:async e=>(await Ht.start(e,{})).id,packs:()=>Dt.list(),runPack:async(e,t)=>void await Dt.run(e,t),record:()=>wt.get(),startRecording:async e=>void await wt.start(e),recordCommand:e=>wt.command(e),writeTest:async e=>void await wt.write(e,{check:!0}),route:gu,go:e=>{location.hash=e},pageText:()=>document.querySelector(`main`)?.innerText??document.body.innerText??``,summarize:async(e,t)=>(await Zt.summary({reply:e,request:t,...m.current===`hi`?{language:`hi`}:{}})).say,filterRuns:e=>setTimeout(()=>window.dispatchEvent(new CustomEvent(`forgeqe:runs-filter`,{detail:e})),500),ask:k,href:F}),[k]),ne=(0,L.useCallback)(e=>{let t=a.current;return{...g(t?.chat.key??o??void 0),commands:async()=>e,runList:async()=>(await _t.list()).runs.map(e=>({name:e.name,title:e.title,status:e.status,startedAt:e.startedAt})),matches:async t=>Ao(e,t).length,...t?.draft?{box:{add:t.draft.add,send:t.draft.sendDraft}}:{},autoSend:!!y.current?.autoSend,ask:async e=>{let t=a.current;t?.onHeard?await t.onHeard(e):await v(e)},busy:()=>!!p.current.busy,stopWork:async()=>{let e=a.current?.chat.key??o;return!e||!p.current.busy?!1:(await Ht.stop(e),!0)},changeSetting:O,tasks:te}},[g,o,v,O,te]),re=(0,L.useCallback)(async(e,t,n={})=>{let r=t.filter(e=>e.kind!==`field`).map(e=>e.kind===`setting`?`Settings › ${e.label}`:e.label),i=hc(await D()),o=``,s=!1,c=!1;for(let l=0;l<fu;l++){let u=n.unclear&&l===0?[]:r,d=await Zt.turn({history:e.slice(-24),page:{title:document.title||`ForgeQE`,box:!!a.current?.draft,busy:!!p.current.busy,...m.current===`hi`?{language:`hi`}:{}},places:u,settings:i});if(e.push({role:`assistant`,text:JSON.stringify(d)}),d.say&&(o=d.say),!d.call){c=!1;break}if(d.call.tool===`ignore`)return e.push({role:`tool`,text:Al}),{say:``,acted:!1,ignored:!0};s=!0;let f=S.current,h=[...e].reverse().find(e=>e.role===`user`)?.text??``,g=d.call.tool===`open`?es(t,d.call.what,h):void 0,_=await zl(g?{...d.call,what:g.label}:d.call,ne(t));if(e.push({role:`tool`,text:_}),S.current&&S.current!==f)return S.current.more=!!d.more,{say:S.current.question,acted:s};if(hu.has(d.call.tool)&&!d.more)return{say:_,acted:s};if(o=Rl(o,d.call.tool,_,m.current),c=Il(d.call.tool,_),!c&&!o.trim()&&(o=_),!d.more&&d.call.tool!==`list_runs`&&!_u.test(_))break;d.more&&await new Promise(e=>setTimeout(e,300))}return{say:c?``:o,acted:s}},[D,ne]),ie=(0,L.useCallback)(async(e,t,n,r)=>{let i=x.current,a=m.current===`hi`,o=t===`yes`?await e.apply():`Left as it was.`;i.push({role:`user`,text:n},{role:`tool`,text:`The person said ${t}. ${o}`});let s=t===`yes`&&!o.startsWith(`Not saved`);try{if(s&&e.more)return(await re(i,r)).say}catch(e){return`I could not reach the model: ${e.message}`}finally{x.current=i.slice(-24)}return t===`no`?a?`जैसा था वैसा रखा।`:`Left as it was.`:a&&s?`हो गया।`:o},[re]),ae=(0,L.useCallback)(async e=>{switch(e.kind){case`setting`:{let t=await O(e.what);return{say:/^Changed /.test(t)?``:t,result:t}}case`open`:{let t=await _({id:`voice`,action:`open`,what:e.what});return Il(`open`,t)?{say:``,result:t}:null}case`last-run`:case`last-chat`:{let t=e.kind===`last-run`?`open_run`:`open_chat`,n=await _({id:`voice`,action:t,what:`latest`});return{say:Il(t,n)?``:n,result:n}}case`back`:return history.back(),{say:``,result:`Went back.`};case`new-chat`:return location.hash=F(),{say:``,result:`Opened a new chat.`};case`stop`:return y.current?.toggle(),{say:``,result:`Talk stopped.`}}},[_,O]),oe=(0,L.useCallback)(async(e,t={})=>{if(qs(e)?.kind===`stop`)return b(e);let n=await g().commands(),r=x.current,i=S.current;if(T(null),i&&Date.now()-i.at<pu){let t=_c(e);if(t)return await ie(i,t,e,n)}let o=m.current===`hi`||t.unclear?null:Pc(e),s=o?await ae(o):null;if(s)return r.push({role:`user`,text:e},{role:`tool`,text:s.result}),x.current=r.slice(-24),s.say;r.push({role:`user`,text:e});let c;t.unclear||y.current?.acknowledge();try{c=await re(r,n,{unclear:t.unclear})}catch(t){return r.pop(),t.status===409?b(e):`I could not reach the model: ${t.message}`}finally{x.current=r.slice(-24)}return c.ignored?null:!c.acted&&!c.say.trim()&&a.current?.draft?(x.current=[...x.current.slice(0,-1),{role:`tool`,text:`The page put the words in the message box.`}].slice(-24),!1):c.say},[g,b,re,ie,T,ae]),se=(0,L.useCallback)(async e=>(await Zt.summary({reply:e,...m.current===`hi`?{language:`hi`}:{}})).say,[]),ce=(0,L.useRef)({at:0,text:``}),le=(0,L.useCallback)(()=>(Date.now()-ce.current.at>6e4&&(ce.current.at=Date.now(),(async()=>{let[e,t]=await Promise.all([D().catch(()=>null),wt.get().catch(()=>null)]),n=[...e?.environments??[],...t?[...t.apps.map(e=>e.name),...t.desktop.available?t.desktop.apps:[],...t.mobile.apps.map(e=>e.name)]:[]];ce.current.text=[...new Set(n)].join(`, `)})()),ce.current.text),[D]),ue=Ol(p.current,r?r.onHeard:v,r?.draft,{command:oe,summarize:se,vocabulary:le});m.current=ue.language,y.current=ue;let A=(0,L.useCallback)(async e=>{let t=S.current;if(T(null),!t||Date.now()-t.at>=pu)return;let n=await ie(t,e,e===`yes`?`Yes.`:`No.`,await g().commands());n&&y.current?.say(n)},[T,ie,g]);wu(l,u.thread.turns.flatMap(e=>e.actions),u.state!==``,_);let j=(0,L.useCallback)(e=>i(e),[]),de=Cu(u.thread.turns),fe=(0,L.useMemo)(()=>({talk:ue,attach:j,act:_,voiceChat:o,attached:!!r?.draft,voiceAgent:de,asking:C,answerAsk:A}),[ue,j,_,o,r,de,C,A]);return(0,U.jsx)(vu.Provider,{value:fe,children:n})}function Eu(){return(0,L.useContext)(vu)}function Du(e){let t=(0,L.useContext)(vu);if(!t)throw Error(`useTalkHere needs the TalkProvider`);let{attach:n}=t,r=(0,L.useRef)(e);r.current=e;let i=e.chat,a=JSON.stringify([i.key,i.busy,i.waiting,i.last?.id,i.last?.outcome,i.last?.reply,i.last?.error,i.last?.text,!!e.draft,!!e.onHeard]);return(0,L.useEffect)(()=>{let e=r.current;n({chat:e.chat,onHeard:e=>r.current.onHeard?.(e),...e.draft?{draft:{add:e=>r.current.draft?.add(e),sendDraft:()=>r.current.draft?.sendDraft()??!1}}:{}})},[a,n]),(0,L.useEffect)(()=>()=>n(null),[n]),t.talk}function Ou({icon:e,logo:t,pixel:n,size:r=`md`,className:i}){return(0,U.jsx)(`span`,{"aria-hidden":`true`,className:P(`inline-flex flex-none items-center justify-center rounded-[10px]`,t?`border border-line bg-bg`:n||e&&Mt.has(e)?`theme-side border border-line-soft`:`bg-surface-strong text-ink-2`,r===`lg`?`size-10`:`size-9`,i),children:n?(0,U.jsx)(rn,{name:n,px:r===`lg`?24:20}):t?(0,U.jsx)(t,{className:r===`lg`?`size-5`:`size-[18px]`}):e?(0,U.jsx)(Wt,{icon:e,size:r===`lg`?20:18}):null})}var ku=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{};function Au(e,t){let n=e;for(let e of t)n=ku(n)[e];return n}var ju=e=>e===void 0||e===``||typeof e==`number`&&Number.isNaN(e);function Mu(e,t,n){let[r,...i]=t;if(r===void 0)return e;let a={...e},o=i.length?Mu(ku(e[r]),i,n):n;return ju(o)||i.length&&ju(n)&&!Object.keys(ku(o)).length?delete a[r]:a[r]=o,a}function Nu(e,t,n){let r={};for(let[i,a]of Object.entries(e))r[i===t?n:i]=a;return r}function Pu(e,t){if(!(t in e))return t;for(let n=2;;n++)if(!(`${t}-${n}`in e))return`${t}-${n}`}var Fu=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Iu({checked:e,onChange:t,label:n,id:r,disabled:i}){return(0,U.jsx)(`button`,{type:`button`,role:`switch`,id:r,"aria-checked":e,"aria-label":n,disabled:i,onClick:()=>t(!e),className:P(`relative h-5 w-9 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,U.jsx)(`span`,{"aria-hidden":`true`,className:P(`absolute top-1/2 size-4 -translate-y-1/2 rounded-full bg-white shadow-sm left-0.5 transition-transform`,e&&`translate-x-4`)})})}var Lu=/^[A-Za-z0-9_-]{1,64}$/;function Ru(e,t=5){let n=e=>Date.parse(e.lastAt||e.started)||0;return e.filter(e=>typeof e.id==`string`&&Lu.test(e.id)).sort((e,t)=>n(t)-n(e)).slice(0,t)}var zu=e=>!!e.waiting||e.state===`ready`&&e.outcome===`needs_input`;function Bu(e){let[t,n]=(0,L.useState)(null);return(0,L.useEffect)(()=>{let e=!1,t=()=>Ht.list().then(t=>!e&&n(Ru(t.chats)),()=>!e&&n(e=>e||[]));t();let r=setInterval(t,3e4);return()=>{e=!0,clearInterval(r)}},[e]),t}var Vu={good:`pass`,bad:`fail`,same:`neutral`},Hu={good:`text-pass`,bad:`text-fail`,same:`text-muted`};function Uu(e){return e.dir===`same`||e.good===void 0?`same`:e.good?`good`:`bad`}function Wu({children:e,label:t,className:n}){return(0,U.jsx)(`section`,{"aria-label":t,className:P(`grid grid-cols-[repeat(auto-fit,minmax(min(100%,150px),1fr))] overflow-hidden rounded-[14px] card border`,n),children:e})}function Gu({label:e,value:t,note:n,icon:r,period:i,change:a,tone:o,big:s,compact:c,className:l}){let u=a&&Uu(a),d=a?.dir===`up`?Me:a?.dir===`down`?M:void 0;return(0,U.jsxs)(`div`,{className:P(`-mr-px -mb-px flex min-w-0 flex-col border-r border-b border-line-soft`,c?`gap-1 px-4 py-2`:`gap-1 px-6 py-4`,l),children:[(0,U.jsxs)(`span`,{className:P(`flex min-w-0 items-center gap-2 font-medium text-ink`,`text-[13px]`),children:[r&&(0,U.jsx)(Wt,{icon:r,size:14,className:`flex-none text-muted`}),(0,U.jsx)(`span`,{className:`min-w-0`,children:e})]}),i&&(0,U.jsx)(`span`,{className:`text-[13px] text-muted`,children:i}),(0,U.jsxs)(`span`,{className:P(`flex flex-wrap items-center gap-x-2 gap-y-1`,c?`mt-0`:i?`mt-2`:`mt-1`),children:[(0,U.jsx)(`span`,{className:P(`leading-tight font-semibold tracking-[-0.02em] tabular-nums`,s?`text-[25px]`:c?`text-[20px]`:`text-[25px]`,o),children:t}),a&&u&&(0,U.jsx)(`span`,{"aria-hidden":a.against?!0:void 0,className:`inline-flex`,children:(0,U.jsxs)(Vt,{tone:Vu[u],icon:!1,className:`tabular-nums`,children:[d&&(0,U.jsx)(d,{size:12,strokeWidth:2.5,"aria-hidden":`true`,className:`flex-none`}),a.text]})})]}),(n||a?.against)&&(0,U.jsx)(`span`,{className:P(`text-muted tabular-nums`,c?`truncate text-[13px]`:`text-[13px]`),children:a?.against&&u?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{className:Hu[u],children:a.amount??a.text}),` `,a.against,n?(0,U.jsxs)(U.Fragment,{children:[` · `,n]}):null]}):n})]})}var Ku=`px-4 py-2 text-left text-[13px] font-medium whitespace-nowrap text-muted`,qu=`px-4 py-2 text-right text-[13px] font-medium whitespace-nowrap text-muted`,Ju=`border-t border-line-soft align-top`,Yu=`cursor-pointer border-t border-line-soft align-top hover:bg-surface-muted`,Xu=`px-4 py-2`,Zu=`px-4 py-2 text-right whitespace-nowrap tabular-nums`,Qu=new Set([`className`,`style`,`key`,`ref`,`id`,`role`,`type`,`colSpan`,`rowSpan`,`scope`,`data-tip-side`]);function $u(e,t=0){if(e==null||typeof e==`boolean`||typeof e==`function`||t>12)return``;if(typeof e==`string`||typeof e==`number`)return String(e);if(Array.isArray(e))return e.map(e=>$u(e,t+1)).join(` `);if((0,L.isValidElement)(e))return $u(e.props,t+1);if(typeof e==`object`){let n=[];for(let[r,i]of Object.entries(e))Qu.has(r)||r.startsWith(`on`)||r.startsWith(`aria-`)||n.push($u(i,t+1));return n.join(` `)}return``}function ed({label:e,head:t,children:n,empty:r=`None.`,size:i=25,resetKey:a,fixed:o=!1,minWidth:s,className:c,search:l=!0,placeholder:u,tools:d,height:f}){let p=L.Children.toArray(n),[m,h]=(0,L.useState)(``),g=m.toLowerCase().split(/\s+/).filter(Boolean),_=(0,L.useMemo)(()=>l?p.map(e=>$u(e).toLowerCase()):[],[n,l]),v=g.length?p.filter((e,t)=>g.every(e=>_[t].includes(e))):p,[b,x]=(0,L.useState)(0);(0,L.useEffect)(()=>x(0),[a,m]);let ee=(0,L.useRef)(null);(0,L.useEffect)(()=>{f&&ee.current&&(ee.current.scrollTop=0)},[b,m,a,f]);let S=Math.max(1,Math.ceil(v.length/i)),C=Math.min(b,S-1),w=v.slice(C*i,C*i+i),T=L.Children.toArray((0,L.isValidElement)(t)&&t.type===L.Fragment?t.props.children:t).length;return(0,U.jsxs)(`div`,{className:P(`overflow-hidden border-t border-line`,c),children:[(l||d)&&(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b border-line-soft px-2 py-2`,children:[l&&(0,U.jsxs)(`label`,{className:`relative flex min-w-0 w-full max-w-[320px] flex-[0_1_320px] items-center`,children:[(0,U.jsx)(y,{size:14,"aria-hidden":`true`,className:`pointer-events-none absolute left-2.5 text-muted`}),(0,U.jsxs)(`span`,{className:`sr-only`,children:[`Find in `,e.toLowerCase()]}),(0,U.jsx)(zt,{size:`sm`,type:`search`,value:m,spellCheck:!1,placeholder:u??`Find in ${e.toLowerCase()}`,onChange:e=>h(e.target.value),className:`pl-8`})]}),d,g.length>0&&(0,U.jsxs)(`span`,{className:`text-[13px] whitespace-nowrap text-muted`,role:`status`,children:[v.length,` of `,p.length]})]}),(0,U.jsx)(`div`,{ref:ee,className:P(`relative overflow-x-auto`,f&&`overflow-y-auto overscroll-contain`),style:f?{height:f}:void 0,children:(0,U.jsxs)(`table`,{"aria-label":e,className:P(`w-full border-collapse text-[13px]`,o&&`table-fixed`),style:s?{minWidth:s}:void 0,children:[(0,U.jsx)(`thead`,{children:(0,U.jsx)(`tr`,{className:P(`bg-surface-strong text-left text-[13px] text-muted`,f&&`sticky top-0 z-[1]`),children:t})}),(0,U.jsxs)(`tbody`,{children:[w,!v.length&&(0,U.jsx)(`tr`,{children:(0,U.jsx)(`td`,{colSpan:Math.max(1,T),className:`px-4 py-4 text-center text-muted`,children:g.length&&p.length?`Nothing matches.`:r})})]})]})}),v.length>0&&(0,U.jsx)(Yt,{page:C,size:i,total:v.length,onPage:x,label:`Pages of ${e.toLowerCase()}`})]})}var td=(0,L.createContext)({pending:{},set:()=>{},saved:new Set,vars:{},store:`the credential store`}),nd=()=>(0,L.useContext)(td);function rd(e){return/[\\/]/.test(e)?`ForgeQE's private credentials file (readable only by you)`:e}var id=/^[A-Za-z_][A-Za-z0-9_]*$/;function ad(e,t){return t in e.pending?e.pending[t]===null?`removing`:`pending`:e.saved.has(t)?`saved`:e.vars[t]?`environment`:`missing`}var od={pending:`Not saved yet`,removing:`Removed when you save`,saved:`Saved`,environment:`Set in the environment`,missing:`Not set`},sd=(e,t)=>[`pending`,`saved`,`environment`].includes(ad(e,t));function cd({name:e}){let t=nd();if(!e)return null;if(!id.test(e))return(0,U.jsx)(`span`,{className:`text-[13px] text-fail`,children:`Not a variable name`});let n=ad(t,e);return(0,U.jsx)(`span`,{className:P(`text-[13px]`,n===`saved`||n===`environment`?`text-pass`:n===`missing`?`text-muted`:`text-accent-fg`),children:od[n]})}var ld=/user|email|login|client_id|account/i;function ud({id:e,name:t,field:n,onRename:r,compact:a}){let o=nd(),s=(0,L.useId)(),c=e||s,[l,u]=(0,L.useState)(!1),f=ad(o,t),p=typeof o.pending[t]==`string`?o.pending[t]:``,m=ld.test(n)||ld.test(t);return(0,U.jsxs)(`div`,{className:`flex w-full min-w-0 flex-col gap-2`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(zt,{id:c,type:m?`text`:`password`,autoComplete:`off`,spellCheck:!1,value:p,disabled:!id.test(t),placeholder:f===`saved`?`Saved. Type a new value to replace it`:f===`environment`?`Set in the environment. Type a value to save one`:m?`Type it once`:`Paste it once`,onChange:e=>o.set(t,e.target.value||void 0)}),f===`saved`&&(0,U.jsx)(I,{variant:`icon`,size:`icon-sm`,onClick:()=>o.set(t,null),"aria-label":`Remove the saved value of ${t}`,"data-tip":`Remove the saved value of ${t}`,children:(0,U.jsx)(Ve,{"aria-hidden":`true`})}),f===`removing`&&(0,U.jsxs)(I,{size:`sm`,"data-tip":`Keep the saved value of ${t}`,onClick:()=>o.set(t,void 0),children:[(0,U.jsx)(i,{"aria-hidden":`true`}),`Keep`]})]}),!a&&(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 text-[13px] text-muted`,children:[(0,U.jsx)(cd,{name:t}),(0,U.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),l&&r?(0,U.jsx)(zt,{size:`sm`,"aria-label":`Variable name`,autoFocus:!0,defaultValue:t,spellCheck:!1,onBlur:e=>{let n=e.target.value.trim();n&&id.test(n)&&n!==t&&r(n),u(!1)},onKeyDown:e=>e.key===`Enter`&&e.target.blur(),className:`max-w-[260px] font-mono`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`span`,{children:[`Kept as `,(0,U.jsx)(`span`,{className:`font-mono text-[13px]`,children:t})]}),r&&(0,U.jsxs)(`button`,{type:`button`,onClick:()=>u(!0),"data-tip":`Change the variable's name`,className:`inline-flex min-h-8 cursor-pointer items-center gap-1 border-0 bg-transparent p-0 text-[13px] font-medium text-accent-fg hover:text-accent-fg-hover [&>svg]:size-3.5`,children:[(0,U.jsx)(d,{"aria-hidden":`true`}),`Rename`]})]})]})]})}function dd({name:e}){return(0,U.jsx)(cd,{name:e})}function fd({id:e,name:t,field:n,named:r,onName:i}){let a=nd();return(0,U.jsx)(pd,{onFirstValue:()=>{!r&&t&&i(t)},secrets:a,children:(0,U.jsx)(ud,{id:e,name:t,field:n,onRename:i})})}function pd({secrets:e,onFirstValue:t,children:n}){return(0,U.jsx)(td.Provider,{value:{...e,set:(n,r)=>{r&&t(),e.set(n,r)}},children:n})}function md({label:e,help:t,htmlFor:n,children:r,className:i,stacked:a,yamlKey:o,setting:s}){let c=s??o,l=o?(0,U.jsx)(`code`,{className:`font-mono text-[13px] text-muted [overflow-wrap:anywhere]`,children:o}):null;return a?(0,U.jsxs)(`div`,{"data-setting":c,className:P(`flex flex-col gap-4 py-4`,i),children:[(0,U.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[n?(0,U.jsx)(`label`,{htmlFor:n,className:`text-[13px] leading-snug font-medium text-ink`,children:e}):(0,U.jsx)(`span`,{className:`text-[13px] leading-snug font-medium text-ink`,children:e}),t&&(0,U.jsx)(`span`,{className:`text-[13px] leading-relaxed text-ink-2`,children:t}),l]}),(0,U.jsx)(`div`,{className:`[&>*]:max-w-none`,children:r})]}):(0,U.jsxs)(`div`,{"data-setting":c,className:P(`flex min-h-16 flex-wrap items-center gap-x-10 gap-y-4 border-t border-line-soft py-4`,i),children:[(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-1`,children:[n?(0,U.jsx)(`label`,{htmlFor:n,className:`text-[13px] leading-snug font-medium text-ink`,children:e}):(0,U.jsx)(`span`,{className:`text-[13px] leading-snug font-medium text-ink`,children:e}),t&&(0,U.jsx)(`span`,{className:`max-w-measure text-[13px] leading-relaxed text-ink-2`,children:t}),l]}),r!=null&&r!==!1&&(0,U.jsx)(`div`,{className:`flex w-full flex-wrap items-center gap-2 sm:w-[340px] sm:flex-none sm:justify-end`,children:r})]})}var hd=`flex w-full flex-wrap items-center gap-2 sm:w-[340px] sm:flex-none sm:justify-end`,gd={"Where runs happen":Qe,"The browser window":Xe,"Limits and checks":je,"Remote browser, set here":A,"Where tests go":o,"How hard it tries":k,"Help it gets":_e,Reports:Ge,"Memory and replays":ye,Suites:t,"Flaky tests":ge,"Release readiness":p,"Regression packs in a pipeline":ft,"Defect analysis":it,Accessibility:et,"Performance and visual changes":f,"API tests":O,"The product":Ne,"Instructions and knowledge":Ke,Capabilities:n,"Project report":ae,"Report datasets":$e,"Running in parallel":h,Driver:me,Appium:he,"Devices on this computer":_,"TestMu AI devices":A,"BrowserStack devices":A,"Browser devices":Ye,"Appium on this computer":he,Maestro:Te,"Windows desktop apps":Be,Runtime:qe,"Tests in a container":pt,"The coding agents' workspace":v,"Browser in a container":Ie,"How skills are used":w,Budgets:ct,"Project folder":Ce,"ForgeQE in this folder":ce,Repository:o,"Features to download":ft,Onboarding:p,"This computer":_,"A model":ne,"Models file":Ee,"Default model":ne,"Product knowledge graph":at,Repositories:o,"Documents and links":x,"Search service":Ke,Documents:x,"The product and its knowledge":Ne,"Building the graph":n,"The team's knowledge":se,"Agent names":Re,"Custom agents":ze,"Sign-ins":ue,"Recent runs":m,"Saved runs":k,"Test data":$e,"Areas of work":ie,"Which model a call gets":ie,Alerts:rt,"When to alert":He,Apps:Ye,"By kind of run":Je,"By run, newest first":m,Guides:Ke,"Last 30 days":Se,"Latest problems":be,"Links in alerts":ve,"Model calls":Oe,Plans:tt,"Recent requests":de,"Results and bugs":re,"Runs that used the most":ot,"Send a test":pe,Services:g,"Tools used":n,"What runs":D,"Check the agent's domain knowledge":we,"Test cases and bugs":mt,"Browser grids":A,Notifications:Le,"Other tools":De},_d=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-|-$/g,``),vd=e=>typeof e==`string`?e.trim().replace(/^\d+\.\s*/,``):``;function yd({children:e,help:t,first:n,icon:r}){let i=r??gd[vd(e)];return(0,U.jsxs)(`div`,{"data-group-title":``,"data-tour":_d(vd(e)),className:P(`mb-4 flex flex-col gap-2`,n?`mt-0`:`mt-12`),children:[(0,U.jsxs)(`h3`,{className:`m-0 flex items-center gap-2 text-[16px] leading-snug font-semibold text-ink`,children:[i&&(0,U.jsx)(Wt,{icon:i,size:18,className:`flex-none text-muted`}),e]}),t&&(0,U.jsx)(`p`,{className:P(`m-0 max-w-measure text-[13px] leading-relaxed text-ink-2`,i&&`pl-8`),children:t})]})}var bd=e=>Array.isArray(e)?e.map(String).join(`, `):typeof e==`string`?e:``,xd=e=>e.split(`,`).map(e=>e.trim()).filter(Boolean);function Sd({id:e,value:t,onChange:n,placeholder:r,mono:i}){let[a,o]=(0,L.useState)(bd(t)),[s,c]=(0,L.useState)(t);return JSON.stringify(s)!==JSON.stringify(t)&&(c(t),o(bd(t))),(0,U.jsx)(zt,{id:e,value:a,placeholder:r,className:P(i&&`font-mono text-[13px]`),onChange:e=>{o(e.target.value);let t=xd(e.target.value);c(t.length?t:void 0),n(t.length?t:void 0)}})}function Cd({def:e,edit:t,base:n,stacked:r}){let i=(0,L.useId)(),a=e.key?[...n,...e.key.split(`.`)]:n,o=Au(t.value,a),s=e=>t.set(Mu(t.value,a,e)),c=`w-full`,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,U.jsx)(md,{label:e.label,help:e.help,yamlKey:l,setting:a.join(`.`),children:(0,U.jsx)(Iu,{checked:t,onChange:s,label:e.label})})}case`select`:u=(0,U.jsxs)(Xt,{id:i,value:String(o===void 0?e.default??``:o),onChange:e=>s(e.target.value!==`false`&&e.target.value),className:`w-full`,children:[e.default===void 0&&(0,U.jsx)(`option`,{value:``,children:e.emptyLabel||`Not set`}),e.options.map(e=>(0,U.jsx)(`option`,{value:e.value,children:e.label},e.value))]});break;case`number`:u=(0,U.jsx)(zt,{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:`w-full`});break;case`list`:u=(0,U.jsx)(`div`,{className:c,children:(0,U.jsx)(Sd,{id:i,value:o,onChange:s,placeholder:e.placeholder})});break;case`kv`:u=(0,U.jsx)(`div`,{className:c,children:(0,U.jsx)(wd,{id:i,value:o,onChange:s,placeholder:e.placeholder})});break;case`textarea`:u=(0,U.jsx)(Qt,{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,U.jsx)(`div`,{className:c,children:(0,U.jsx)(fd,{id:i,name:t,field:e.key,named:o!==void 0||e.default!==void 0,onName:e=>s(e)})}),(0,U.jsx)(md,{label:e.label.replace(/ variable$/,``),help:e.help,htmlFor:i,stacked:r,yamlKey:l,setting:a.join(`.`),children:u})}default:u=(0,U.jsx)(zt,{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:P(c,e.type===`path`&&`font-mono text-[13px]`)})}return(0,U.jsx)(md,{label:e.label,help:e.help,htmlFor:i,stacked:r,yamlKey:l,setting:a.join(`.`),children:u})}function wd({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(`
17
17
  `),[a,o]=(0,L.useState)(i(t)),[s,c]=(0,L.useState)(t);return JSON.stringify(s)!==JSON.stringify(t)&&(c(t),o(i(t))),(0,U.jsx)(Qt,{id:e,rows:3,value:a,spellCheck:!1,placeholder:r??`NAME = value`,className:`font-mono`,onChange:e=>{o(e.target.value);let t={};for(let n of e.target.value.split(`
18
- `)){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 Cd({defs:e,edit:t,base:n,stacked:r}){let i=ku(t.value,n),a=i&&typeof i==`object`&&!Array.isArray(i)?i:{};return(0,U.jsx)(U.Fragment,{children:e.filter(e=>!e.when||e.when(a)).map(e=>(0,U.jsx)(xd,{def:e,edit:t,base:n,stacked:r},e.key))})}function wd({title:e,meta:t,state:n,open:r,onToggle:i,lead:a,actions:o,children:s,expandable:c}){let l=(0,L.useId)();return(0,U.jsxs)(`div`,{className:`border-t border-line-soft`,children:[(0,U.jsxs)(`div`,{className:`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 py-4`,children:[a,c===!1?(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,U.jsx)(`span`,{className:`text-sm text-muted`,children:t})]}):(0,U.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-4 rounded-[10px] border-0 bg-transparent p-0 text-left text-ink`,children:[(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,U.jsx)(`span`,{className:`text-sm text-muted`,children:t})]}),(0,U.jsx)(ue,{size:18,"aria-hidden":`true`,className:P(`flex-none text-muted transition-transform`,r&&`rotate-180`)})]}),n,o]}),c!==!1&&(0,U.jsx)(Ka,{open:r,id:l,children:(0,U.jsx)(`div`,{className:`mb-4 border-l-2 border-line-soft pb-2 pl-4 sm:pl-6 [&>*:first-child]:border-t-0`,children:s})})]})}function Td(e){let[t,n]=(0,L.useState)(null),[r,i]=(0,L.useState)(``),a=(0,L.useCallback)(()=>{i(``),e().then(n,e=>i(e.message))},[e]);return(0,L.useEffect)(a,[a]),{data:t,error:r,reload:a}}function Ed({error:e,reload:t}){return e?(0,U.jsxs)(`div`,{role:`alert`,className:`flex flex-col items-start gap-4 rounded-[14px] card border p-6`,children:[(0,U.jsx)(`p`,{className:`m-0 text-sm leading-relaxed text-ink-2`,children:e}),(0,U.jsxs)(I,{size:`sm`,onClick:t,children:[(0,U.jsx)(b,{"aria-hidden":`true`}),`Retry`]})]}):(0,U.jsx)(`p`,{role:`status`,className:`m-0 py-4 text-sm text-muted`,children:`Loading…`})}function Dd({children:e}){return(0,U.jsx)(Yt,{className:`py-4`,children:e})}function $(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)}function Od(e){return`${$(e.input)} read${e.cached?` (${$(e.cached)} from cache)`:``} · ${$(e.output)} written`}var kd=null;function Ad(e){kd=e}function jd(e,t){if(!t)return`—`;let n=kd?.to,r=kd?.perEur?.[t],i=n?kd?.perEur?.[n]:void 0,[a,o]=n&&n!==t&&r&&i?[e/r*i,n]:[e,t];try{let e=Math.abs(a)>=1e4;return new Intl.NumberFormat(void 0,{style:`currency`,currency:o,...e?{notation:`compact`,maximumFractionDigits:1}:{maximumFractionDigits:Math.abs(a)<1?3:2}}).format(a)}catch{return`${a.toFixed(2)} ${o}`}}function Md(e){if(!kd?.perEur||!e||kd.to===e||!kd.perEur[e])return``;let t=jd(1,e);return`Shown in ${kd.to}, converted from ${e} at the European Central Bank's rate of ${kd.date}: ${new Intl.NumberFormat(void 0,{style:`currency`,currency:e}).format(1)} = ${t}.`}var Nd=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString(void 0,{dateStyle:`medium`,timeStyle:`short`})},Pd=e=>e>=1048576?`${(e/1048576).toFixed(1)} MB`:e>=1024?`${Math.round(e/1024)} KB`:`${e} bytes`;function Fd({head:e,children:t,label:n}){return(0,U.jsx)($u,{label:n,head:e.map((e,t)=>(0,U.jsx)(`th`,{scope:`col`,className:t>0?Ku:Gu,children:e},e||t)),children:t})}function Id({cells:e}){return(0,U.jsx)(`tr`,{className:`border-t border-line-soft`,children:e.map((e,t)=>(0,U.jsx)(`td`,{className:P(`px-4 py-2 align-top`,t>0?`text-right whitespace-nowrap tabular-nums`:`min-w-[200px]`),children:e},t))})}var Ld={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}]},Rd={"no match":`not run before`,"not a rerun":`not run before`,"not a recorded goal":`not run before`,"no recorded run matches":`not run before`,"its last run did not pass":`its last run failed`,"marked stale":`its saved steps are out of date`,"more than one recorded start page for this goal":`saved from more than one start page`};function zd(e,t){return e===`tier0`?t===`shadow`?`Test mode: AI ran it, could have replayed`:`Replayed for free`:`AI: ${Rd[e]||e}`}function Bd({edit:e}){let{data:t,error:n,reload:r}=Td(ht.registry),[i,a]=(0,L.useState)(!1),o=String(ku(e.value,[`registry`,`mode`])??`on`);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(pd,{label:`Replay passed runs for free`,help:o===`shadow`?`In test mode now: ForgeQE only notes what it would have replayed, and the AI runs everything. Turn it on to use replays.`:`If the page changed, the AI takes over.`,yamlKey:e.file?`registry.mode`:void 0,children:(0,U.jsx)(Fu,{checked:o===`on`,onChange:t=>e.set(ju(e.value,[`registry`,`mode`],t?`on`:`off`)),label:`Replay passed runs for free`})}),t?!t.exists||t.plans.length===0?(0,U.jsx)(Dd,{children:`Nothing to replay yet. When a run passes, ForgeQE saves its steps, and running it again is free.`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Uu,{label:`Replays`,className:`mt-4`,children:[(0,U.jsx)(Wu,{icon:O,label:`Free reruns`,value:String(t.replayed),note:`of ${St(t.total,`run`)}`}),(0,U.jsx)(Wu,{icon:c,label:`Tokens saved`,value:$(t.tokensSaved),note:`${St(t.plans.length,`passed run`)} ready to replay`})]}),(0,U.jsxs)(`button`,{type:`button`,"aria-expanded":i,"aria-controls":`replay-details`,onClick:()=>a(!i),"data-tip":i?`Hide details`:`Show details`,className:`mt-2 inline-flex min-h-10 cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-sm font-medium text-accent-fg hover:text-accent-fg-hover [&>svg]:size-4`,children:[i?(0,U.jsx)(E,{"aria-hidden":`true`}):(0,U.jsx)(ue,{"aria-hidden":`true`}),i?`Less`:`Details`]}),(0,U.jsxs)(Ka,{open:i,id:`replay-details`,children:[(0,U.jsx)(_d,{first:!0,children:`Saved runs`}),(0,U.jsx)(Fd,{label:`Saved runs`,head:[`Goal`,`Passed`,`Failed`,`Tokens the first time`,`Last used`],children:t.plans.map(e=>(0,U.jsx)(Id,{cells:[(0,U.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`line-clamp-2`,children:e.goal}),e.stale&&(0,U.jsx)(`span`,{className:`text-[13px] text-warn`,children:`Out of date: the AI runs it next time`})]}),e.successes,e.failures,e.firstTokens?$(e.firstTokens):`—`,Nd(e.lastAt)]},e.id))}),(0,U.jsx)(_d,{children:`Recent runs`}),t.requests.length===0?(0,U.jsx)(Dd,{children:`No runs yet.`}):(0,U.jsx)(Fd,{label:`Recent runs`,head:[`Request`,`How it ran`,`Result`,`Tokens`,`When`],children:t.requests.map(e=>(0,U.jsx)(Id,{cells:[(0,U.jsx)(`span`,{className:`line-clamp-2`,children:e.request||e.planGoal||e.id}),zd(e.decision,e.mode),e.outcome||`—`,$(e.tokens),Nd(e.startedAt)]},e.id))})]})]}):(0,U.jsx)(Ed,{error:n,reload:r})]})}function Vd(){let{data:e,error:t,reload:n}=Td(ht.logs),[r,i]=(0,L.useState)(null),[a,o]=(0,L.useState)(``);return e?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Kept in `,(0,U.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.dir}),`. Secrets are replaced with their names before a log is shown.`]}),a&&(0,U.jsx)(`p`,{role:`alert`,className:`mt-0 mb-4 text-sm text-fail`,children:a}),e.logs.length===0?(0,U.jsx)(Dd,{children:`No session logs yet. ForgeQE writes one for each chat, run and suite.`}):e.logs.map(e=>(0,U.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,U.jsx)(Du,{icon:A}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`font-mono text-[13px] break-all`,children:e.name}),(0,U.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[Nd(e.modified),`, `,Pd(e.size)]})]}),(0,U.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Open ${e.name}`,"data-tip":`Open ${e.name}`,onClick:()=>{o(``),ht.log(e.name).then(i,e=>o(e.message))},children:(0,U.jsx)(A,{"aria-hidden":`true`})})]},e.name)),(0,U.jsx)(Ga,{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,U.jsxs)(I,{onClick:()=>i(null),children:[(0,U.jsx)(Fe,{"aria-hidden":`true`}),`Close`]}),children:r&&(0,U.jsx)(`pre`,{className:`m-0 mt-4 font-mono text-[13px] leading-relaxed whitespace-pre-wrap break-all`,children:r.text})})]}):(0,U.jsx)(Ed,{error:t,reload:n})}var Hd={error:`Error`,tool:`Tool call failed`,run:`Run failed`,engine:`Browser engine stopped`,agent:`Agent error`,model:`Model call failed`},Ud={chat:`Chat`,start:`Shell`,run:`Run`,suite:`Suite`,code:`Write tests`,heal:`Heal`,monitor:`Monitor`,mcp:`MCP`,explore:`Explore`};function Wd(){let[e,t]=(0,L.useState)(null),[n,r]=(0,L.useState)(``);return{show:e=>{r(``),ht.log(e).then(t,e=>r(e.message))},error:n,sheet:(0,U.jsx)(Ga,{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,U.jsxs)(I,{onClick:()=>t(null),children:[(0,U.jsx)(Fe,{"aria-hidden":`true`}),`Close`]}),children:e&&(0,U.jsx)(`pre`,{className:`m-0 mt-4 font-mono text-[13px] leading-relaxed break-all whitespace-pre-wrap`,children:e.text})})}}function Gd({entries:e}){let[t,n]=(0,L.useState)(-1);return e.length?(0,U.jsx)(U.Fragment,{children:e.map((e,r)=>(0,U.jsx)(wd,{lead:(0,U.jsx)(Du,{icon:m}),title:`${e.action}: ${e.file}`,meta:`${Nd(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,U.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0 py-4`,children:e.changes.map((e,t)=>(0,U.jsxs)(`li`,{className:`flex flex-wrap items-baseline gap-x-2 gap-y-1 text-sm`,children:[(0,U.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.key}),(0,U.jsx)(`span`,{className:`text-muted`,children:e.before===void 0?(0,U.jsxs)(U.Fragment,{children:[`added `,(0,U.jsx)(`span`,{className:`text-ink`,children:e.after})]}):e.after===void 0?(0,U.jsxs)(U.Fragment,{children:[`removed `,(0,U.jsx)(`span`,{className:`text-ink line-through`,children:e.before})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{className:`text-ink line-through`,children:e.before}),` → `,(0,U.jsx)(`span`,{className:`text-ink`,children:e.after})]})})]},t))})},r))}):(0,U.jsx)(Dd,{children:`No changes made in Settings yet.`})}function Kd({tabs:e,current:t,onPick:n,label:r}){return(0,U.jsx)(`div`,{role:`tablist`,"aria-label":r,className:`mb-6 flex flex-wrap gap-x-6 border-b border-line-soft`,children:e.map((r,i)=>(0,U.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:P(`-mb-px min-h-11 cursor-pointer border-0 border-b-2 bg-transparent px-1 text-sm font-medium`,t===r.id?`border-ink text-ink`:`border-transparent text-muted hover:text-ink`),children:r.label},r.id))})}function qd(){let{data:e,error:t,reload:r}=Td(ht.audit),[i,a]=(0,L.useState)(`summary`),o=Wd();if(!e)return(0,U.jsx)(Ed,{error:t,reload:r});let s=e.summary,c=s.totals,l=e=>e?`${e} failed`:`None failed`;return(0,U.jsxs)(U.Fragment,{children:[(0,U.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,U.jsx)(Kd,{label:`Audit`,current:i,onPick:a,tabs:[{id:`summary`,label:`Summary`},{id:`problems`,label:`Problems (${s.problems.length})`},{id:`sessions`,label:`Sessions (${s.sessions.length})`},{id:`changes`,label:`Settings changes (${e.entries.length})`}]}),o.error&&(0,U.jsx)(`p`,{role:`alert`,className:`mt-0 mb-4 text-sm text-fail`,children:o.error}),(0,U.jsxs)(`div`,{id:`panel-${i}`,role:`tabpanel`,"aria-labelledby":`tab-${i}`,children:[i===`summary`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Uu,{label:`Activity summary`,children:[(0,U.jsx)(Wu,{icon:Oe,label:`Sessions`,value:String(c.sessions),note:c.replays?`${c.replays} request${c.replays===1?``:`s`} replayed without the agent`:void 0}),(0,U.jsx)(Wu,{icon:n,label:`Tool calls`,value:String(c.toolCalls),note:l(c.toolErrors)}),(0,U.jsx)(Wu,{icon:D,label:`Runs`,value:String(c.runs),note:l(c.runsFailed)}),(0,U.jsx)(Wu,{icon:re,label:`Model calls`,value:String(c.modelCalls),note:l(c.modelErrors)}),(0,U.jsx)(Wu,{icon:be,label:`Errors`,value:String(c.errors),note:c.escalations?`${c.escalations} switch${c.escalations===1?``:`es`} to a stronger model`:void 0})]}),s.problems.length>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(_d,{children:`Latest problems`}),(0,U.jsx)(Jd,{problems:s.problems.slice(0,5),onLog:o.show}),s.problems.length>5&&(0,U.jsxs)(`button`,{type:`button`,onClick:()=>a(`problems`),"data-tip":`All ${s.problems.length} problems`,className:`mt-4 inline-flex min-h-10 cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-sm font-medium text-accent-fg hover:text-accent-fg-hover [&>svg]:size-4`,children:[(0,U.jsx)(We,{"aria-hidden":`true`}),`All (`,s.problems.length,`)`]})]}),(0,U.jsx)(_d,{children:`Tools used`}),s.tools.length===0?(0,U.jsx)(Dd,{children:`No tool calls logged in the last 30 days.`}):(0,U.jsx)(Fd,{label:`Tools used`,head:[`Tool`,`Calls`,`Failed`,`Average time`],children:s.tools.map(e=>(0,U.jsx)(Id,{cells:[(0,U.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.name}),e.calls,e.errors?(0,U.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,e.calls?`${(e.ms/e.calls/1e3).toFixed(1)} s`:`—`]},e.name))}),(0,U.jsx)(_d,{children:`Model calls`}),s.models.length===0?(0,U.jsx)(Dd,{children:`No model calls in the usage ledger in the last 30 days.`}):(0,U.jsx)(Fd,{label:`Model calls`,head:[`Model`,`Calls`,`Failed`,`Tokens`],children:s.models.map(e=>(0,U.jsx)(Id,{cells:[e.model,e.calls,e.errors?(0,U.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,$(e.tokens)]},e.model))})]}),i===`problems`&&(s.problems.length?(0,U.jsx)(Jd,{problems:s.problems,onLog:o.show}):(0,U.jsx)(Dd,{children:`Nothing failed in the last 30 days.`})),i===`sessions`&&(s.sessions.length?(0,U.jsx)(Fd,{label:`Sessions`,head:[`Session`,`Tool calls`,`Runs`,`Errors`,`Tokens`,``],children:s.sessions.map(e=>(0,U.jsx)(Id,{cells:[(0,U.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:Ud[e.command]||e.command}),(0,U.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[Nd(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,U.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,$(e.tokens),(0,U.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Open the log of the ${Ud[e.command]||e.command} session at ${Nd(e.started)}`,"data-tip":`Open the log of the ${Ud[e.command]||e.command} session at ${Nd(e.started)}`,onClick:()=>o.show(e.log),children:(0,U.jsx)(A,{"aria-hidden":`true`})})]},e.log))}):(0,U.jsx)(Dd,{children:`No sessions logged in the last 30 days.`})),i===`changes`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Every change made in Settings, kept in `,(0,U.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.file}),`. Changes made to the files by hand are not here.`]}),(0,U.jsx)(Gd,{entries:e.entries})]})]}),o.sheet]})}function Jd({problems:e,onLog:t}){return(0,U.jsx)(U.Fragment,{children:e.map((e,n)=>(0,U.jsxs)(`div`,{className:`flex min-h-[64px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-4`,children:[(0,U.jsx)(Du,{icon:e.kind===`run`||e.kind===`tool`?S:be,className:`bg-fail-soft text-fail`}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:Hd[e.kind]}),(0,U.jsx)(`span`,{className:`text-sm break-words text-ink-2`,children:e.text}),(0,U.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[Nd(e.at),`, `,Ud[e.command]||e.command]})]}),e.log&&(0,U.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Open the log for: ${e.text.slice(0,60)}`,"data-tip":`Open the log for: ${e.text.slice(0,60)}`,onClick:()=>t(e.log),children:(0,U.jsx)(A,{"aria-hidden":`true`})})]},n))})}var Yd={title:`Budgets`,help:`Money in the model's price currency, or GitHub Copilot premium requests. 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`},{key:`premium_requests.run`,label:`Premium requests per browser run`,help:`GitHub Copilot: each call uses the model's multiplier, 0 for a model included in your plan.`,type:`number`},{key:`premium_requests.day`,label:`Premium requests per day`,type:`number`},{key:`premium_requests.month`,label:`Premium requests per month`,type:`number`}]},Xd={suite:`Suites`,monitor:`Monitor rounds`,run:`Browser runs`,explore:`Exploratory`,api:`API tests`,desktop:`Desktop runs`,mobile:`Mobile runs`};function Zd({days:e,currency:t}){let[n,r]=(0,L.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,U.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,U.jsxs)(`p`,{"aria-live":`polite`,className:`m-0 text-sm text-ink-2`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:l(c.day)}),`: `,$(c.input+c.output),` tokens, `,c.runs,` run`,c.runs===1?``:`s`,t?`, ${jd(c.amount,t)}`:``]}),(0,U.jsx)(`div`,{role:`img`,"aria-label":`Tokens a day for the last 30 days: ${$(a)} in all, on ${o} days with runs; the busiest was ${l(s.day)} with ${$(s.input+s.output)}.`,className:`flex h-[160px] items-end gap-1 border-b border-line`,onMouseLeave:()=>r(-1),children:e.map((t,a)=>{let o=t.input+t.output;return(0,U.jsx)(`div`,{className:`flex h-full flex-1 cursor-default items-end`,onMouseEnter:()=>r(a),children:(0,U.jsx)(`div`,{className:P(`w-full rounded-t-[4px] transition-[height]`,a===e.length-1||a===n?`bg-accent`:`bg-accent-line`),style:{height:o?`${Math.max(2,o/i*100)}%`:`0`}})},t.day)})}),(0,U.jsxs)(`div`,{"aria-hidden":`true`,className:`flex justify-between text-[13px] text-muted`,children:[(0,U.jsx)(`span`,{children:l(e[0].day)}),(0,U.jsx)(`span`,{children:l(e[e.length-1].day)})]})]})}function Qd({rows:e,currency:t,label:n}){if(!e.length)return(0,U.jsx)(Dd,{children:`Nothing yet.`});let r=Math.max(1,...e.map(e=>e.sum.input+e.sum.output));return(0,U.jsx)(`ul`,{"aria-label":n,className:`m-0 flex list-none flex-col gap-4 p-0`,children:e.map(e=>{let n=e.sum.input+e.sum.output;return(0,U.jsxs)(`li`,{className:`flex flex-col gap-1`,children:[(0,U.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 text-sm`,children:[(0,U.jsx)(`span`,{className:`min-w-0 truncate font-medium`,children:e.name}),(0,U.jsxs)(`span`,{className:`whitespace-nowrap text-ink-2 tabular-nums`,children:[$(n),` tokens`,t&&e.sum.amount?`, ${jd(e.sum.amount,t)}`:``]})]}),(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`h-2 rounded-full bg-surface-strong`,children:(0,U.jsx)(`div`,{className:`h-2 rounded-full bg-accent transition-[width] duration-200 ease-out`,style:{width:`${Math.max(1,n/r*100)}%`}})})]},e.name)})})}var $d=e=>{let t=Math.round(e*100)/100;return`${t} premium request${t===1?``:`s`}`};function ef({label:e,spent:t,limit:n,currency:r,premium:i}){let a=e=>i?$d(e):jd(e,r),o=t/n*100,s=o>=100?`fail`:o>=80?`warn`:`ok`;return(0,U.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,U.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 text-sm`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:e}),(0,U.jsxs)(`span`,{className:P(`tabular-nums`,s===`fail`?`text-fail`:s===`warn`?`text-warn`:`text-ink-2`),children:[a(t),` of `,a(n),s===`fail`?`, over budget`:s===`warn`?`, ${Math.round(o)} percent used`:``]})]}),(0,U.jsx)(`div`,{role:`img`,"aria-label":`${e}: ${a(t)} of ${a(n)}, ${Math.round(o)} percent`,className:`h-2 rounded-full bg-surface-strong`,children:(0,U.jsx)(`div`,{className:P(`h-2 rounded-full transition-[width] duration-200 ease-out`,s===`fail`?`bg-fail`:s===`warn`?`bg-warn`:`bg-accent`),style:{width:`${Math.min(100,Math.max(1,o))}%`}})})]})}function tf({edit:t}){let{data:n,error:r,reload:i}=Td(ht.tokenomics),a=(0,U.jsx)(Cd,{defs:Yd.fields,edit:t,base:Yd.base});if(!n)return(0,U.jsx)(Ed,{error:r,reload:i});let o=n,s=o.currency,c=o.totals.input+o.totals.output,l=o.budget,u=l?.currency||o.spent?.currency||s,d=o.project?.days30.calls?o.project:void 0,p=d?d.days30.input+d.days30.output:0;return(0,U.jsxs)(U.Fragment,{children:[d&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Every model call made for this project from `,o.days[0]?.day,` to today: chats, runs and the agents they started, each priced when it was made. These are the figures the workspace panel shows. `,(0,U.jsx)(`a`,{href:F(`cost`),children:`Cost and model usage`}),` breaks them down by agent, job and model, priced at today's prices.`]}),(0,U.jsxs)(Uu,{label:`All model calls, last 30 days`,children:[(0,U.jsx)(Wu,{icon:pe,label:`Tokens`,value:$(p),note:Od(d.days30)}),(0,U.jsx)(Wu,{icon:ct,label:`Cost`,value:d.currency?jd(d.days30.amount,d.currency):`—`,note:d.currency?`When each call was made`:`No prices known`}),(0,U.jsx)(Wu,{icon:f,label:`Calls`,value:d.days30.calls.toLocaleString(),note:`${$(d.today.input+d.today.output)} tokens today`}),(0,U.jsx)(Wu,{icon:e,label:`Read from cache`,value:d.days30.input?`${Math.round(d.days30.cached/d.days30.input*100)}%`:`—`,note:`Of the tokens read`})]}),Md(d.currency)&&(0,U.jsx)(`p`,{className:`mt-4 mb-0 text-[13px] text-muted`,children:Md(d.currency)}),(0,U.jsx)(_d,{children:`Test runs`})]}),o.totals.runs===0?(0,U.jsx)(Dd,{children:`No test runs with token counts in the last 30 days. Every run and suite ForgeQE reports on is counted here; chats are not.`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`From `,o.totals.runs,` run`,o.totals.runs===1?``:`s`,` in this project's reports in the last 30 days`,o.from?`, ${o.from} to ${o.to}`:``,`: test runs only, not chats. Models and agents come from the `,o.totals.withCalls,` run`,o.totals.withCalls===1?``:`s`,` that kept their model calls.`]}),(0,U.jsxs)(Uu,{label:`Test runs, last 30 days`,children:[(0,U.jsx)(Wu,{icon:pe,label:`Tokens`,value:$(c),note:Od(o.totals)}),(0,U.jsx)(Wu,{icon:ct,label:`Cost`,value:jd(o.totals.amount,s),note:o.totals.unpriced?`${o.totals.unpriced} run${o.totals.unpriced===1?``:`s`} had no price`:s?`At the models' prices`:`No prices known`}),(0,U.jsx)(Wu,{icon:f,label:`Per run`,value:$(Math.round(c/o.totals.runs)),note:s?jd(o.totals.amount/o.totals.runs,s):void 0}),(0,U.jsx)(Wu,{icon:e,label:`Read from cache`,value:o.totals.input?`${Math.round(o.totals.cached/o.totals.input*100)}%`:`—`,note:`Of the tokens read`})]}),Md(o.currency)&&d?.currency!==o.currency&&(0,U.jsx)(`p`,{className:`mt-4 mb-0 text-[13px] text-muted`,children:Md(o.currency)}),o.otherCurrency>0&&(0,U.jsxs)(`p`,{className:`mt-4 mb-0 text-[13px] text-muted`,children:[o.otherCurrency,` run`,o.otherCurrency===1?` was`:`s were`,` priced in another currency and left out of the cost.`]}),(0,U.jsx)(_d,{children:`Last 30 days`}),(0,U.jsx)(Zd,{days:o.days,currency:s}),(0,U.jsxs)(`div`,{className:`mt-8 flex flex-wrap gap-x-10 gap-y-8`,children:[(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-4`,children:[(0,U.jsx)(`h3`,{className:`m-0 text-base font-semibold`,children:`By model`}),(0,U.jsx)(Qd,{label:`Tokens by model`,rows:o.byModel.map(e=>({name:e.model,sum:e})),currency:s})]}),(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-4`,children:[(0,U.jsx)(`h3`,{className:`m-0 text-base font-semibold`,children:`By agent`}),(0,U.jsx)(Qd,{label:`Tokens by agent`,rows:o.byAgent.map(e=>({name:e.agent,sum:e})),currency:s})]})]}),(0,U.jsx)(_d,{children:`By kind of run`}),(0,U.jsx)(Qd,{label:`Tokens by kind of run`,rows:o.byKind.map(e=>({name:`${Xd[e.kind]||e.kind} (${e.runs})`,sum:e})),currency:s}),(0,U.jsx)(_d,{children:`Runs that used the most`}),(0,U.jsx)(Fd,{label:`Runs that used the most tokens`,head:[`Run`,`Kind`,`Tokens`,`Cost`,`When`],children:o.top.map(e=>(0,U.jsx)(Id,{cells:[(0,U.jsx)(`span`,{className:`line-clamp-2`,children:e.title}),Xd[e.kind]||e.kind,$(e.tokens),e.amount===void 0?`—`:jd(e.amount,s),e.startedAt?Nd(e.startedAt):`—`]},`${e.kind}/${e.id}`))})]}),(0,U.jsx)(_d,{help:Yd.help,children:Yd.title}),l&&o.spent&&(l.day||l.month)?(0,U.jsxs)(`div`,{className:`mb-4 flex flex-col gap-4 rounded-[14px] card border p-4`,children:[l.day?(0,U.jsx)(ef,{label:`Today`,spent:o.spent.today,limit:l.day,currency:u}):null,l.month?(0,U.jsx)(ef,{label:`This month`,spent:o.spent.month,limit:l.month,currency:u}):null]}):null,l?.premium&&o.spent&&(l.premium.day||l.premium.month)?(0,U.jsxs)(`div`,{className:`mb-4 flex flex-col gap-4 rounded-[14px] card border p-4`,children:[l.premium.day?(0,U.jsx)(ef,{label:`Premium requests today`,spent:o.spent.premiumToday||0,limit:l.premium.day,premium:!0}):null,l.premium.month?(0,U.jsx)(ef,{label:`Premium requests this month`,spent:o.spent.premiumMonth||0,limit:l.premium.month,premium:!0}):null]}):null,a]})}var nf=`forgeqe-sidebar-panels`;function rf(e,t){let[n,r]=(0,L.useState)(()=>{try{return JSON.parse(localStorage.getItem(nf)||`{}`)[e]??t}catch{return t}});return[n,()=>{r(!n);try{let t=JSON.parse(localStorage.getItem(nf)||`{}`);localStorage.setItem(nf,JSON.stringify({...t,[e]:!n}))}catch{}}]}function af({id:e,title:t,children:n,initial:r=!0}){let[i,a]=rf(e,r);return(0,U.jsxs)(`section`,{"aria-labelledby":`panel-${e}`,className:`flex flex-col border-t border-line pt-1`,children:[(0,U.jsx)(`h3`,{id:`panel-${e}`,className:`m-0`,children:(0,U.jsxs)(`button`,{type:`button`,"aria-expanded":i,onClick:a,className:`flex min-h-8 w-full cursor-pointer items-center gap-1 rounded-[8px] border-0 bg-transparent px-2 text-left text-[13px] font-semibold text-ink hover:bg-surface-muted`,children:[(0,U.jsx)(`span`,{className:`flex-1`,children:t}),(0,U.jsx)(ue,{size:14,"aria-hidden":`true`,className:P(`text-muted transition-transform`,!i&&`-rotate-90`)})]})}),(0,U.jsx)(Ka,{open:i,className:`flex flex-col pt-1 pb-1`,children:n})]})}function of({icon:e,label:t,value:n,to:r,title:i}){let a=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Wt,{icon:e,size:14,className:`flex-none`}),(0,U.jsx)(`span`,{className:`max-w-[120px] flex-none truncate text-[13px] text-muted`,children:t}),(0,U.jsx)(`span`,{className:`line-clamp-2 min-w-0 flex-1 text-right text-[13px] leading-snug [overflow-wrap:anywhere] text-ink`,children:n})]}),o=`flex min-h-7 items-center gap-2 rounded-[8px] px-2 py-1 no-underline`;return r?(0,U.jsx)(`a`,{href:r,"data-tip":i,className:P(o,`hover:bg-surface-muted`),children:a}):(0,U.jsx)(`div`,{"data-tip":i,className:o,children:a})}function sf({icon:e,label:t,value:n,detail:r,to:i,title:a,onClick:o,open:c,muted:l}){let u=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Wt,{icon:e,size:16,className:`mt-1 flex-none text-muted`}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`text-[13px] leading-tight text-muted`,children:t}),(0,U.jsx)(`span`,{className:P(`line-clamp-2 text-[13px] leading-snug font-medium [overflow-wrap:anywhere]`,l?`text-muted`:`text-ink`),children:n}),r&&(0,U.jsx)(`span`,{className:`truncate text-[13px] leading-snug text-muted`,children:r})]}),(i||o)&&(0,U.jsx)(s,{size:14,"aria-hidden":`true`,className:P(`mt-1 flex-none text-muted opacity-0 transition-[opacity,transform] group-hover:opacity-100 group-focus-visible:opacity-100`,c&&`rotate-90 opacity-100`)})]}),d=`group flex w-full items-start gap-4 rounded-[10px] px-2 py-2 text-left no-underline`;return o?(0,U.jsx)(`button`,{type:`button`,"aria-expanded":c,"data-tip":a,onClick:o,className:P(d,`cursor-pointer border-0 bg-transparent hover:bg-surface-muted`),children:u}):i?(0,U.jsx)(`a`,{href:i,"data-tip":a,className:P(d,`hover:bg-surface-muted`),children:u}):(0,U.jsx)(`div`,{"data-tip":a,className:d,children:u})}function cf({title:e,children:t}){return(0,U.jsxs)(`div`,{className:`flex flex-col`,children:[(0,U.jsx)(`span`,{className:`px-2 pt-2 pb-1 text-[13px] font-medium tracking-wide text-muted uppercase`,children:e}),t]})}var lf=e=>`Tokens used, added up over every model call: ${Od(e)}. Each call reads the conversation so far again, so this grows past the context window.`,uf=`How much of the model's context window the conversation fills now. It drops when the conversation is compacted.`;function df({a:e,working:t}){let n=Qn(e.agent);return(0,U.jsxs)(`div`,{className:`flex flex-col gap-1 rounded-[8px] px-2 py-1`,children:[(0,U.jsxs)(`span`,{className:`flex min-h-6 items-center gap-2`,"data-tip":lf(e.usage),children:[(0,U.jsx)(Wa,{agent:e.agent,px:16,decorative:!0,working:t}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px] text-ink`,children:n.name}),(0,U.jsxs)(`span`,{className:`flex-none text-[13px] text-ink tabular-nums`,children:[$(e.usage.input+e.usage.output),` `,(0,U.jsx)(`span`,{className:`text-muted`,children:`used`})]})]}),e.context&&e.context.limit>0&&(0,U.jsxs)(`span`,{className:`flex flex-col pl-6`,"data-tip":uf,children:[(0,U.jsxs)(`span`,{className:`flex items-baseline gap-2 text-[13px] text-muted`,children:[(0,U.jsxs)(`span`,{className:`flex-1`,children:[`Context `,Math.round(Math.min(1,e.context.tokens/e.context.limit)*100),`% full`]}),(0,U.jsxs)(`span`,{className:`tabular-nums`,children:[$(e.context.tokens),` of `,$(e.context.limit)]})]}),(0,U.jsx)(ff,{value:e.context.tokens,max:e.context.limit,warnAt:e.context.compactsAt})]})]})}function ff({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,U.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,U.jsx)(`span`,{className:P(`block h-full rounded-full transition-[width] duration-200 ease-out`,i?`bg-warn`:`bg-accent`),style:{width:`${Math.max(2,r*100)}%`}})})}var pf=e=>{try{return e?new URL(e).host:``}catch{return``}},mf=e=>e.split(/[\\/]/).filter(Boolean).pop()||e;function hf({path:e,icon:t,extra:n}){let[r,i]=(0,L.useState)(``);return(0,U.jsxs)(`li`,{className:`flex flex-col`,children:[(0,U.jsxs)(`button`,{type:`button`,"data-tip":`Open ${e}`,onClick:async()=>i(await tn(e)),className:`flex min-h-8 w-full cursor-pointer items-center gap-2 rounded-[10px] border-0 bg-transparent px-4 text-left hover:bg-surface-muted`,children:[(0,U.jsx)(Wt,{icon:t,size:15,className:`flex-none text-muted`}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[13px] text-accent-fg`,children:mf(e)}),n]}),r&&(0,U.jsx)(`span`,{className:`px-4 text-[13px] text-fail`,children:r})]})}function gf(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 _f({chat:e}){let[t,n]=(0,L.useState)(null),[i,a]=(0,L.useState)(null),[o,s]=(0,L.useState)(null),[c,u]=(0,L.useState)(!1),[d,f]=(0,L.useState)([]);(0,L.useEffect)(()=>{let e=!1,t=()=>Gt.list().then(t=>!e&&f(t.tasks),()=>{});t();let n=setInterval(t,4e3);return()=>{e=!0,clearInterval(n)}},[]);let p=location.hash.replace(/^#\/?/,``),m=d.filter(e=>e.to!==p);(0,L.useEffect)(()=>{let e=!1,t=()=>Ft.state().then(t=>{if(!e){if(n(t),!t.ready)return a(null);gt.get().then(t=>!e&&a(t),()=>{})}},()=>{});return t(),window.addEventListener(`hashchange`,t),()=>{e=!0,window.removeEventListener(`hashchange`,t)}},[]),(0,L.useEffect)(()=>{if(!t?.ready)return;let n=!1,r=()=>ht.tokenomics().then(e=>!n&&s(e),()=>{});r();let i=setInterval(r,e?.busy?3e4:18e4);return()=>{n=!0,clearInterval(i)}},[t?.ready,t?.project,e?.busy]);let h=t?t.project.split(/[\\/]/).filter(Boolean).pop()||t.project:``,_=i?.codeRepo||i?.repo,v=o?.days.find(e=>e.day===new Date().toISOString().slice(0,10)),y=i?.environment,b=(e,t)=>`${$(e.input+e.output)} tokens${t&&e.amount?` · ${jd(e.amount,t)}`:``}`,x=o?.project?b(o.project.today,o.project.currency):v?b(v,o?.currency):void 0,S=o?o.project?{tokens:o.project.days30.input+o.project.days30.output,cost:o.project.currency&&o.project.days30.amount?jd(o.project.days30.amount,o.project.currency):void 0,title:`Every model call made for this project in the last 30 days.`}:{tokens:o.totals.input+o.totals.output,cost:o.currency&&o.totals.amount?jd(o.totals.amount,o.currency):void 0,title:`Test runs of this project in the last 30 days.`}:void 0;return(0,U.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,U.jsx)(af,{id:`env`,title:`Environment`,initial:!1,children:(0,U.jsxs)(`div`,{className:`flex flex-col gap-1 py-1`,children:[(0,U.jsx)(sf,{icon:Ce,label:`Project`,value:t?.ready?h:`Not set up`,muted:!t?.ready,to:F(`settings`,`setup`),title:t?.project}),i&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(sf,{icon:l,label:i.codeRepo?`Tests go to`:`Repository`,value:_?_.name:`Not a git repository`,muted:!_,detail:_?.branch?`Branch ${_.branch}`:_?.commit?`Commit ${_.commit}`:void 0,title:_?`${_.root}${_.commit?` @ ${_.commit}`:``}`:void 0,to:F(`settings`,`tests`)}),(0,U.jsx)(sf,{icon:g,label:`Test environment`,value:y?.active?y.active:y?.names.length?`None active`:`None yet`,muted:!y?.active,detail:y?.active&&pf(y.startUrl)||void 0,title:y?.names.length?`${y.names.length} environment${y.names.length===1?``:`s`}: ${y.names.join(`, `)}${y.apps.length?`. Apps: ${y.apps.join(`, `)}`:``}`:void 0,to:F(`settings`,`environments`)}),(0,U.jsx)(sf,{icon:Ee,label:`Files`,value:`${i.files.filter(e=>e.exists).length} in this project`,onClick:()=>u(!c),open:c}),(0,U.jsx)(Ka,{open:c,children:(0,U.jsx)(`ul`,{className:`m-0 mb-1 ml-10 flex list-none flex-col gap-1 p-0`,children:i.files.map(e=>(0,U.jsx)(`li`,{children:(0,U.jsxs)(`a`,{href:F(`settings`,`files`),"data-tip":e.path,className:P(`flex flex-col rounded-md px-2 py-1 no-underline hover:bg-surface-muted`,!e.exists&&`opacity-60`),children:[(0,U.jsx)(`span`,{className:`text-[13px] text-muted`,children:e.label}),(0,U.jsx)(`span`,{className:`truncate font-mono text-[13px] text-ink`,children:e.path})]})},e.label))})})]})]})}),t?.ready&&(0,U.jsxs)(af,{id:`usage`,title:`Context and tokens`,children:[e&&(0,U.jsx)(cf,{title:`This chat`,children:e.agents?.length&&e.usage?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`flex min-h-7 items-center gap-2 px-2 py-1`,"data-tip":lf(e.usage),children:[(0,U.jsx)(Wt,{icon:pe,size:14,className:`flex-none`}),(0,U.jsx)(`span`,{className:`flex-1 text-[13px] text-muted`,children:`Tokens used, all agents`}),(0,U.jsx)(`span`,{className:`text-[13px] font-medium text-ink tabular-nums`,children:$(e.usage.input+e.usage.output)})]}),(0,U.jsx)(`span`,{className:`px-2 pb-1 pl-8 text-[13px] text-muted tabular-nums`,children:Od(e.usage)}),[...e.agents].sort((e,t)=>t.at-e.at).map((t,n)=>(0,U.jsx)(df,{a:t,working:!!e.busy&&n===0},t.agent))]}):(0,U.jsx)(`p`,{className:`m-0 px-2 py-1 text-[13px] text-muted`,children:e.busy?`Counted as soon as the agent's first model call comes back.`:`No model calls in this chat yet.`})}),(0,U.jsxs)(cf,{title:`This project`,children:[S&&(0,U.jsxs)(`a`,{href:F(`settings`,`tokenomics`),"data-tip":S.title,className:`my-1 flex items-center gap-4 rounded-[10px] px-2 py-2 no-underline hover:bg-surface-muted`,children:[(0,U.jsx)(`span`,{className:`flex size-11 flex-none items-center justify-center rounded-full border-[3px] border-accent-line bg-accent-soft text-accent-fg`,children:(0,U.jsx)(ee,{size:20,strokeWidth:1.8,"aria-hidden":`true`})}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,U.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[(0,U.jsx)(`span`,{className:`text-[20px] leading-tight font-semibold tracking-[-0.01em] text-ink tabular-nums`,children:$(S.tokens)}),` tokens`]}),(0,U.jsx)(`span`,{className:`text-[13px] text-muted`,children:S.cost?`${S.cost} · last 30 days`:`Last 30 days`})]})]}),(0,U.jsx)(of,{icon:dt,label:`Today`,value:(0,U.jsx)(`span`,{className:`tabular-nums`,children:x??`Nothing yet`}),title:o?.project?`Every model call made for this project today: chats, runs and the agents they started.`:`Test runs of this project today.`,to:F(`settings`,`tokenomics`)}),o?.spent&&o.budget?.month?(0,U.jsxs)(`div`,{className:`px-2 py-2`,children:[(0,U.jsxs)(`span`,{className:`flex items-baseline gap-2 text-[13px] text-muted`,children:[(0,U.jsx)(`span`,{className:`flex-1`,children:`This month, this computer`}),(0,U.jsxs)(`span`,{className:`text-ink tabular-nums`,children:[jd(o.spent.month,o.spent.currency),` of `,jd(o.budget.month,o.budget.currency||o.spent.currency)]})]}),(0,U.jsx)(ff,{value:o.spent.month,max:o.budget.month})]}):null]})]}),m.length>0&&(0,U.jsx)(af,{id:`background`,title:`Background tasks · ${m.length}`,children:(0,U.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:m.map((e,t)=>(0,U.jsx)(`li`,{children:(0,U.jsxs)(`a`,{href:F(...e.to.split(`/`).filter(Boolean)),className:`flex items-start gap-2 rounded-[10px] px-4 py-2 no-underline hover:bg-surface-muted`,children:[(0,U.jsx)(Ue,{size:15,"aria-hidden":`true`,className:`mt-1 flex-none animate-spin text-accent-fg motion-reduce:animate-none`}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,U.jsx)(`span`,{className:`truncate text-[13px] text-ink`,children:e.label}),(0,U.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[e.detail||`Running`,gf(e.startedAt)&&` · ${gf(e.startedAt)}`]})]})]})},`${e.kind}-${t}`))})}),e?.changes&&e.changes.length>0&&(0,U.jsxs)(af,{id:`changes`,title:`Changes · ${e.changes.length}`,children:[(0,U.jsxs)(`span`,{className:`px-4 pb-1 font-mono text-[13px] tabular-nums`,children:[St(e.changes.length,`file`),` · `,(0,U.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.changes.reduce((e,t)=>e+t.added,0)]}),` `,(0,U.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.changes.reduce((e,t)=>e+t.removed,0)]})]}),(0,U.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.changes.map(e=>(0,U.jsx)(hf,{path:e.path,icon:ke,extra:(0,U.jsxs)(`span`,{className:`flex-none font-mono text-[13px] tabular-nums`,children:[(0,U.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.added]}),` `,(0,U.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.removed]})]})},e.path))}),e.onCreatePr&&(0,U.jsx)(`div`,{className:`px-2 pt-2 pb-1`,children:(0,U.jsxs)(I,{size:`sm`,variant:`primary`,disabled:e.busy,"data-tip":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,U.jsx)(r,{"aria-hidden":`true`}),`Pull request`]})})]}),e?.outputs&&e.outputs.length>0&&(0,U.jsx)(af,{id:`outputs`,title:`Outputs · ${e.outputs.length}`,children:(0,U.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.outputs.map(e=>(0,U.jsx)(hf,{path:e.path,icon:e.kind===`test`?Ee:/\.html?$/i.test(e.path)?Ge:e.kind===`report`?lt:Pe,extra:(0,U.jsx)(`span`,{className:`flex-none text-[13px] text-muted`,children:e.label})},e.path))})})]})}var vf=24;function yf(e,t,n){if(!t||!n||e.length<t*n*4)return null;let r=(e,n)=>(n*t+e)*4,i=[r(0,0),r(t-1,0),r(0,n-1),r(t-1,n-1)],a=i.every(t=>e[t+3]>=250),o=a&&i.every(t=>[0,1,2].every(n=>Math.abs(e[t+n]-e[i[0]+n])<=vf));if(a&&!o)return null;let s=[0,1,2].map(t=>e[i[0]+t]),c=t=>a?[0,1,2].every(n=>Math.abs(e[t+n]-s[n])<=vf):e[t+3]<16,l=t,u=n,d=-1,f=-1;for(let e=0;e<n;e++)for(let n=0;n<t;n++)c(r(n,e))||(n<l&&(l=n),n>d&&(d=n),e<u&&(u=e),e>f&&(f=e));if(d<0)return null;let p=Math.round(Math.max(d-l+1,f-u+1)*.02),m={x:Math.max(0,l-p),y:Math.max(0,u-p),w:0,h:0};return m.w=Math.min(t,d+1+p)-m.x,m.h=Math.min(n,f+1+p)-m.y,m.w>=t*.96&&m.h>=n*.96?null:m}function bf(e){return new Promise((t,n)=>{let r=new Image;r.onload=()=>t(r),r.onerror=()=>n(Error(`The logo could not be read.`)),r.src=e})}function xf(e){let t=e.naturalWidth||0,n=e.naturalHeight||0;if(!t||!n)return null;let r=Math.min(1,1024/Math.max(t,n))||1,i=document.createElement(`canvas`);i.width=Math.max(1,Math.round(t*r)),i.height=Math.max(1,Math.round(n*r));let a=i.getContext(`2d`,{willReadFrequently:!0});return a?(a.drawImage(e,0,0,i.width,i.height),{canvas:i,ctx:a}):null}async function Sf(e){let t=xf(await bf(e));if(!t)return null;let{canvas:n,ctx:r}=t,i=yf(r.getImageData(0,0,n.width,n.height).data,n.width,n.height);if(!i)return null;let a=document.createElement(`canvas`);return a.width=i.w,a.height=i.h,a.getContext(`2d`)?.drawImage(n,i.x,i.y,i.w,i.h,0,0,i.w,i.h),a}var Cf=new Map;function wf(e){return Cf.has(e)||Cf.set(e,Sf(e).then(t=>t?t.toDataURL(`image/png`):e).catch(()=>e)),Cf.get(e)}var Tf=20971520,Ef=[1,.75,.5,.35],Df=[[`image/png`,void 0],[`image/webp`,.92],[`image/webp`,.8]];async function Of(e,t){for(let n of Ef)for(let[r,i]of Df){let a=await e(n,r,i);if(a&&a.type===r&&a.size<=t)return a}return null}function kf(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var Af={"image/png":`.png`,"image/webp":`.webp`};async function jf(e,t){let n=t=>new File([t],e.name.replace(/\.[^.]+$/,``)+Af[t.type],{type:t.type});if(e.size>t){if(e.type===`image/svg+xml`)throw Error(`${e.name} is over ${t/1024} KB.`);if(e.size>20971520)throw Error(`${e.name} is over ${Tf/1024/1024} MB: save a smaller copy and upload that.`);let r=await bf(await kf(e)).catch(()=>null),i=r&&xf(r);if(!i)throw Error(`${e.name} could not be read: save it again as PNG or JPEG and upload that.`);let{canvas:a,ctx:o}=i,s=yf(o.getImageData(0,0,a.width,a.height).data,a.width,a.height)??{x:0,y:0,w:a.width,h:a.height},c=await Of((e,t,n)=>{let r=document.createElement(`canvas`);r.width=Math.max(1,Math.round(s.w*e)),r.height=Math.max(1,Math.round(s.h*e));let i=r.getContext(`2d`);return i?(i.imageSmoothingQuality=`high`,i.drawImage(a,s.x,s.y,s.w,s.h,0,0,r.width,r.height),new Promise(e=>r.toBlob(e,t,n))):Promise.resolve(null)},t);if(!c)throw Error(`${e.name} could not be made smaller than ${t/1024} KB: save a smaller copy and upload that.`);return n(c)}try{let r=await Sf(await kf(e));if(!r)return e;let i=await new Promise(e=>r.toBlob(e,`image/png`));return!i||i.size>t?e:n(i)}catch{return e}}var Mf=`/assets/forgeqe-logo-D3CwM2Jl.png`,Nf=`/assets/forgeqe-logo-white-CoE-hF2l.png`,Pf=`/assets/forgeqe-mark-ZLd4S3hw.png`;function Ff(e){let[t,n]=(0,L.useState)({});return(0,L.useEffect)(()=>{if(!e)return;let t=!0;return wf(e).then(r=>t&&n({from:e,to:r})),()=>{t=!1}},[e]),e&&t.from===e?t.to:e}var If=e=>`#${e.map(e=>Math.round(e).toString(16).padStart(2,`0`)).join(``)}`;function Lf(e){try{let t=document.createElement(`canvas`);t.width=t.height=32;let n=t.getContext(`2d`,{willReadFrequently:!0});if(!n)return null;n.drawImage(e,0,0,32,32);let r=n.getImageData(0,0,32,32).data,i=(e,t)=>[...r.subarray((t*32+e)*4,(t*32+e)*4+4)],a=[i(1,1),i(30,1),i(1,30),i(30,30)];if(a.every(e=>e[3]>=200))return{kind:`background`,colour:If([0,1,2].map(e=>a.reduce((t,n)=>t+n[e],0)/4))};let o=[0,0,0],s=0;for(let e=0;e<r.length;e+=4)if(r[e+3]>=200){for(let t=0;t<3;t++)o[t]+=r[e+t];s++}return s?{kind:`ink`,colour:If(o.map(e=>e/s))}:null}catch{return null}}var Rf=`h-auto w-auto min-h-10 max-h-[112px] max-w-full object-contain`,zf=`h-11 w-auto max-w-[168px] object-contain object-left`;function Bf({aspect:e,alone:t,own:n,size:r,circle:i}){let a=e>1.6,o=a||t;if(n&&(!r||r===`auto`))return o?!a&&(e<=1.25||i)?{cls:i?`size-14 rounded-full object-cover`:`size-14 object-contain`,grow:!1,auto:!0}:{cls:Rf,grow:!0,auto:!0}:{cls:i?`size-10 rounded-full object-cover`:`size-10 object-contain`,grow:!1,auto:!0};let s=r===`large`;return i?{cls:`${t?s?`size-16`:`size-11`:s?`size-12`:`size-8`} rounded-full object-cover`,grow:!1,auto:!1}:o?{cls:s?Rf:zf,grow:s,auto:!1}:{cls:s?`size-12 object-contain`:`size-8 object-contain`,grow:!1,auto:!1}}function Vf({theme:e,compact:t=!1,onPlate:n}){let{mode:r}=ea(),i=r===`dark`?Nf:Mf,a=Ff(e.logo)||i,[o,s]=(0,L.useState)(e.logo?1:2.1),[c,l]=(0,L.useState)(null),u=o>1.6,d=Bf({aspect:o,alone:!!e.logo&&!e.name,own:!!e.logo,size:t?`standard`:e.logoSize,circle:e.logoFrame===`circle`&&!u}),f=d.auto&&!e.logoFrame&&c?.kind===`background`,p=e.logo&&e.logoFrame!==`tile`&&!f?Ni(c,ci(e,r)):null,m=f&&!!Ni(c,ci(e,r));(0,L.useEffect)(()=>n?.(!!p),[p,n]);let h=e.logo?e.logoFrame===`circle`&&u?`rounded`:e.logoFrame||(d.auto&&c?.kind===`background`?`rounded`:`plain`):`plain`,g=d.cls,_=(0,U.jsx)(`img`,{src:a,alt:``,onLoad:e=>{let t=e.currentTarget;t.naturalWidth&&t.naturalHeight&&s(t.naturalWidth/t.naturalHeight),l(Lf(t))},className:P(`block min-w-0`,d.grow?`flex-initial`:`flex-none`,g,h===`rounded`&&`overflow-hidden rounded-[8px]`,m&&`shadow-[0_0_0_1px_rgb(0_0_0/0.12)]`)});return(0,U.jsxs)(`span`,{className:P(`flex min-w-0 items-center gap-2`,d.grow&&`flex-1`),children:[h===`tile`||p?(0,U.jsx)(`span`,{style:p?{background:p}:void 0,className:P(`flex items-center justify-center rounded-[10px] p-2`,!p&&`bg-white shadow-[0_0_0_1px_rgb(0_0_0/0.06)]`,d.grow?`min-w-0 flex-initial`:`flex-none`),children:_}):_,!u&&e.name&&(0,U.jsx)(`span`,{className:`min-w-0 truncate`,children:e.name})]})}function Hf({theme:e}){let{mode:t}=ea(),[n,r]=(0,L.useState)(1),[i,a]=(0,L.useState)(null),o=Ff(e.logoMark||e.logo),s=!!o&&(!!e.logoMark||n<=1.6),c=s?Ni(i,ci(e,t)):null;return s?(0,U.jsx)(`span`,{style:c?{background:c}:void 0,className:P(`flex size-9 items-center justify-center rounded-[10px]`,c&&`p-1`),children:(0,U.jsx)(`img`,{src:o,alt:``,onLoad:e=>{let t=e.currentTarget;t.naturalWidth&&t.naturalHeight&&r(t.naturalWidth/t.naturalHeight),a(Lf(t))},className:P(`block size-full object-contain`,e.logoFrame===`circle`?`rounded-full`:`rounded-[8px]`)})}):(0,U.jsxs)(`span`,{"aria-hidden":`true`,className:`flex size-9 items-center justify-center`,children:[(0,U.jsx)(`img`,{src:Pf,alt:``,className:`block size-9 object-contain`}),o&&!e.logoMark&&(0,U.jsx)(`img`,{src:o,alt:``,className:`hidden`,onLoad:e=>e.currentTarget.naturalHeight&&r(e.currentTarget.naturalWidth/e.currentTarget.naturalHeight)})]})}var Uf=`/assets/capgemini-mark-D6aZFnD3.png`,Wf=`m 153.2175,21.2782 c 3.4962,0 6.1962,-2.8462 6.2312,-6.225 -0.245,-1.475 -0.7625,-4.2037 -4.585,-4.2037 -4.19,0 -5.5762,5.8487 -8.985,9.6237 -0.2737,2.1438 -2.305,4.0625 -4.8387,4.385 0.62,0.6488 2.0025,1.0013 3.6525,1.0013 3.0175,0 6.67,-0.9088 8.5837,-2.7988 -2.5537,0.035 -4.1937,-1.6062 -4.355,-3.8762 1.245,1.5087 2.6513,2.0937 4.2963,2.0937`,Gf=`m 126.3725,11.972 c 0,-1.86 -0.1125,-3.1 -1.3288,-3.1 -0.5562,0 -0.825,0.1125 -1.3087,0.2725 0.43,6.28 -0.9913,11.8125 -2.7238,11.8125 -2.2712,0 -1.1387,-13.4625 -5.9475,-13.4625 -4.4387,0 -5.0787,10.7475 -5.5812,10.7475 -0.3425,0 -0.395,-2.8225 -0.3763,-4.9763 0.1863,-1.03 0.2888,-1.9575 0.2888,-2.6612 0,-1 -0.41,-2.7288 -2.6813,-1.865 0.079,7.6862 -1.46,12.3287 -3.1937,12.3287 -2.5388,0 -2.5675,-6.9675 -2.5675,-8.8862 0,-1.875 0.1362,-4.38 -2.6513,-3.4913 -0.415,6.7038 -2.1737,11.7625 -3.2812,11.7625 -1.6513,0 -1.3188,-11.5812 -4.8888,-11.5812 -3.2125,0 -4.2037,10.9712 -4.8725,10.9712 -1.1962,0 0.3763,-12.3487 -4.2625,-12.3487 -2.4312,0 -3.3987,4.1212 -4.3512,8.735 -0.185,0.8937 -0.375,0.9237 -0.41,-0.087 -0.024,-0.8588 -0.029,-1.7238 -0.019,-2.5825 1.1663,-4.6388 -0.2587,-6.3525 -2.4075,-5.1175 0.6938,8.56 -3.2375,12.7437 -6.25,12.7437 -1.0887,0 -1.9487,-0.4637 -2.5875,-1.1962 3.6125,-2.2163 5.2188,-4.76 5.2188,-7.2463 0,-2.69 -1.5475,-4.2425 -4.1163,-4.2425 -3.5837,0 -5.59,3.6913 -5.59,6.8313 0,1.6887 0.3175,3.125 0.835,4.3062 -1.2312,0.5863 -2.3925,1.0938 -3.4725,1.5863 -0.098,-3.2275 -0.4587,-6.615 -0.7362,-9.745 -1.91,-0.5275 -2.4663,0.39 -2.6125,2.0887 -0.3425,3.8775 -1.7775,6.285 -3.0475,6.285 -0.9525,0 -1.5375,-1.1625 -1.6063,-2.3975 -0.3562,-6.2162 4.6875,-7.945 7.3288,-7.0412 0.5475,-1.3725 -0.054,-2.3588 -2.4363,-2.3588 -2.8862,0 -5.0437,1.7538 -6.6262,4.0038 -1.0538,1.5 -2.275,2.5637 -3.8963,3.8487 0.044,-0.3662 0.064,-0.7375 0.064,-1.1037 0,-4.38 -2.3738,-6.3038 -4.6388,-6.3038 -1.875,0 -3.0562,1.1225 -3.74,2.8513 -0.1662,-1.7338 -0.5125,-2.48 -1.5187,-2.48 -0.43,0 -1.03,0.1212 -1.67,0.4337 0.2925,0.9675 0.405,3.1113 0.405,4.5175 0,5.2675 -1.5088,7.6313 -2.9588,7.6313 -1.66,0 -1.9237,-6.25 -2.065,-8.6813 -0.2587,-0.098 -0.5325,-0.1512 -0.8112,-0.1512 -1.5038,0 -1.6988,2.0162 -2.07,3.8712 -0.41,2.0563 -1.5913,4.6388 -3.345,4.6388 -1.0588,0 -1.7238,-1.02 -1.8063,-2.8563 -0.1712,-3.725 2.93,-8.14 7.7788,-6.7675 0.6337,-1.4837 -0.3625,-2.6125 -2.3738,-2.6125 -3.545,0 -6.475,2.6513 -7.7537,5.7913 -1.2988,2.8812 -3.57,7.11 -8.1888,7.11 C 6.26,21.7975 3.76,18.95 3.76,12.9787 c 0,-5.1462 3.2462,-10.035 6.7087,-10.035 2.4213,0 2.9838,2.3838 2.7688,4.62 1.255,1.005 3.31,0.067 3.31,-2.4462 0,-1.7338 -1.4063,-4.6738 -5.9513,-4.6738 C 4.9712,0.4437 0,6.055 0,13.4225 0,20.5612 3.6225,24.78 8.75,24.78 c 3.2375,0 6.2887,-1.845 8.3937,-5.2538 0.5325,2.9838 2.5638,4.2388 4.0863,4.2388 2.4662,0 4.0775,-1.5975 4.9562,-3.755 0.5475,2.1625 1.7038,3.765 3.6288,3.765 1.3525,0 2.4112,-0.6888 3.2075,-1.7875 -0.3175,7.5187 -0.7125,12.3137 3.73,11.3725 -0.6875,-2.1388 -0.9075,-6.0313 -0.9075,-9.5275 0,-9.565 1.5775,-12.7138 3.555,-12.7138 1.435,0 1.8987,1.825 1.8987,3.7738 0,1.045 -0.1025,2.2462 -0.3662,3.325 -2.4313,1.5337 -4.37,2.745 -4.37,4.2825 0,1.2162 0.9037,1.3275 1.685,1.3275 1.865,0 4.1112,-1.83 5.3512,-5.2825 1.0838,-0.6588 2.1725,-1.4113 3.2125,-2.4363 -0.034,0.3513 -0.054,0.7025 -0.054,1.0638 0,3.4275 1.4987,5.5037 3.8962,5.5037 1.88,0 3.2863,-1.3337 4.2825,-3.33 0.064,1.1513 0.1025,2.2113 0.1175,3.1825 -3.8087,1.7638 -8.0225,3.55 -8.0225,8.5213 0,2.5725 1.855,4.5062 4.2725,4.5062 5.3075,0 6.5188,-5.6 6.5675,-12.1087 1.7288,-0.7475 3.0125,-1.3238 4.4975,-2.0613 1.2688,1.5925 2.9975,2.3888 4.58,2.3888 2.9925,0 5.2438,-1.5875 7.05,-4.805 0.3175,2.4462 0.9525,4.805 2.2563,4.805 2.3725,0 2.8562,-12.4125 4.6187,-12.4125 1.3525,0 0.245,13.4275 3.8138,13.4275 3.0562,0 3.6275,-11.8163 5.1175,-11.8163 1.055,0 1.1325,10.8013 4.4625,10.8013 1.6362,0 3.4137,-1.9688 4.3012,-6.09 0.42,2.745 1.8025,6.09 4.5075,6.09 1.5775,0 2.935,-1.5975 3.9838,-3.7163 0.2887,2.1825 0.9037,3.7163 2.1,3.7163 3.11,0 3.0075,-12.3838 5.4687,-12.3838 1.9188,0 1.3288,12.3838 5.8988,12.3838 2.1725,0 3.2025,-1.8513 3.8187,-4.18 0.8388,3.4225 2.2013,4.18 3.315,4.18 0.7075,0 1.245,-0.25 1.9488,-1.085 -3.5363,-1.5325 -3.2375,-7.1138 -3.2375,-10.7175 m -74.8438,21.27 c -1.0987,0 -1.68,-1.045 -1.68,-2.2225 0,-3.1788 2.3338,-4.8625 5.205,-6.3125 -0.1275,6.9425 -1.7437,8.535 -3.525,8.535 m 14.2775,-22.51 c 1.0688,0 1.6788,0.9812 1.5713,2.3925 -0.1213,1.655 -1.3275,3.555 -3.4275,5.0437 -1.0938,-3.115 -0.2775,-7.4362 1.8562,-7.4362 M 99.6722,6.035 c 1.0162,-0.034 1.7287,-0.9075 1.7337,-1.9475 0.01,-1.04 -0.6987,-1.8613 -1.7187,-1.8225 -1.02,0.035 -1.85,0.9087 -1.855,1.9487 -0.01,1.04 0.82,1.855 1.84,1.8213 m 25.3325,0.5275 c 0.9275,-0.034 1.685,-0.8638 1.685,-1.855 0,-0.9913 -0.7425,-1.7675 -1.67,-1.7388 -0.9288,0.034 -1.685,0.8688 -1.69,1.86 -0.01,0.9913 0.7475,1.7675 1.675,1.7338 m 34.4387,8.2425 c -0.079,-3.9263 -1.9437,-7.2363 -4.825,-9.8788 -2.1875,-1.9962 -4.785,-3.515 -7.5087,-4.6575 -0.215,-0.092 -0.44,-0.1812 -0.66,-0.2687 -3.3538,4.0187 -14.965,7.0162 -14.965,15.44 0,3.29 2.08,6.3712 5.1312,7.6075 1.7725,0.6687 3.54,0.7025 5.3125,0.1062 1.5775,-0.5175 2.8713,-1.4937 3.95,-2.68 3.4088,-3.775 4.795,-9.6187 8.98,-9.6187 3.8275,0 4.345,2.7237 4.59,4.1987 0,-0.01 0,-0.1075 -0.01,-0.2487`;function Kf({rail:e=!1}){let{mode:t}=ea();return e?(0,U.jsx)(`img`,{src:Uf,alt:`Capgemini`,"data-tip":`Capgemini`,"data-tip-side":`left`,className:`mb-1 size-8 flex-none object-contain`}):(0,U.jsxs)(`svg`,{viewBox:`-1.06668594 -1.06668594 161.58207188 37.68956988`,role:`img`,"aria-label":`Capgemini`,className:`ml-2 h-8 w-auto max-w-[180px] flex-none overflow-visible`,shapeRendering:`geometricPrecision`,children:[(0,U.jsx)(`path`,{fill:t===`dark`?`#fff`:`#12ABDB`,fillRule:`evenodd`,d:Wf}),(0,U.jsx)(`path`,{fill:t===`dark`?`#fff`:`#0070AD`,fillRule:`evenodd`,d:Gf})]})}function qf({item:e}){return e.agent?(0,U.jsx)(Wa,{agent:e.agent,px:18,decorative:!0}):(0,U.jsx)(nn,{name:Ur[e.id]||Wr[e.id]||`feature`,px:18})}var Jf={id:`settings`,label:`Settings`};function Yf(){let e=(e,t,n,r,i)=>({id:e,label:t,meta:n,href:r,words:i,kind:`page`});return[...so.filter(e=>e.item.path[0]!==`settings`).map(t=>e(t.item.id,t.item.label,`${t.category.label} · ${t.area.label}`,co(t.item),[t.item.words,t.item.about].filter(Boolean).join(` `))),...oo.flatMap(t=>[e(`browse-${t.id}`,t.label,`Category`,lo(t),t.about),...t.areas.map(n=>e(`browse-${t.id}-${n.id}`,n.label,t.label,uo(t,n),n.about))]),e(`browse`,`ForgeQE`,`Every category`,F(`browse`),`Everything browse all categories home`),e(Jf.id,Jf.label,`Every setting`,F(Jf.id))]}var Xf=Yf(),Zf=(0,L.lazy)(()=>yr(()=>import(`./CommandPalette-DMpA8mBk.js`),__vite__mapDeps([6,2,1,0,3,4,5]))),Qf=()=>typeof navigator<`u`&&/Mac|iPhone|iPad/.test(navigator.platform||navigator.userAgent),$f=()=>Qf()?`⌘K`:`Ctrl K`;function ep({rail:e=!1}){let{find:t}=(0,L.useContext)(ip);return e?(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Search (${$f()})`,"data-tip":`Search (${$f()})`,"data-tip-side":`right`,onClick:t,className:`size-9`,children:(0,U.jsx)(y,{strokeWidth:1.8,"aria-hidden":`true`})}):(0,U.jsxs)(I,{size:`sm`,onClick:t,"aria-keyshortcuts":Qf()?`Meta+K`:`Control+K`,className:`w-full justify-start px-2`,children:[(0,U.jsx)(y,{strokeWidth:1.8,"aria-hidden":`true`}),(0,U.jsx)(`span`,{className:`flex-1 text-left`,children:`Search`}),(0,U.jsx)(`span`,{className:`text-[13px] text-muted`,children:$f()})]})}function tp(){let e=Tu();if(!e)return null;let{phase:t,on:n}=e.talk,r=t===`error`||t===`setup`||t===`installing`;if(!n&&t!==`error`)return null;let i=n&&e.asking?(0,U.jsx)(Za,{question:e.asking,onAnswer:t=>void e.answerAsk(t),raised:!e.attached||r}):null;return e.attached&&!r?i:(0,U.jsxs)(U.Fragment,{children:[i,(0,U.jsx)(Xa,{talk:e.talk,agent:e.voiceAgent})]})}var np=`flex h-8 short:h-7 items-center gap-2 rounded-[8px] px-2 text-[13px] no-underline`,rp=e=>e?`bg-(--side-current-bg) font-medium text-(--side-current-ink) ring-1 ring-line ring-inset hover:text-(--side-current-ink)`:`text-ink-2 hover:bg-surface-strong hover:text-ink`,ip=(0,L.createContext)({hidden:!1,open:()=>{},setChat:()=>{},find:()=>{}});function ap(e){let{setChat:t}=(0,L.useContext)(ip),n=JSON.stringify(e);(0,L.useEffect)(()=>(t(e),()=>t(null)),[n,t])}var op=`forgeqe-sidebar`,sp=()=>{try{return localStorage.getItem(op)===`closed`}catch{return!1}};function cp({className:e}){let{open:t}=(0,L.useContext)(ip);return(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Open the sidebar`,"data-tip":`Open the sidebar`,onClick:t,className:P(`inline-flex md:hidden`,e),children:(0,U.jsx)(se,{strokeWidth:1.8,"aria-hidden":`true`})})}function lp(){return(0,U.jsxs)(`div`,{className:`theme-side sticky top-0 z-20 flex items-center gap-1 border-b border-line-soft px-4 py-2 md:hidden`,children:[(0,U.jsx)(cp,{}),(0,U.jsx)(`span`,{className:`ml-1 flex min-w-0 flex-1`,children:(0,U.jsx)(Dp,{compact:!0})})]})}function up({item:e,current:t}){let n=t===e.id;return(0,U.jsxs)(`a`,{href:F(e.id),"aria-current":n?`page`:void 0,className:P(np,rp(n)),children:[(0,U.jsx)(qf,{item:e}),(0,U.jsx)(`span`,{className:`min-w-0 truncate`,children:e.label})]})}function dp({current:e,rail:t=!1}){let n=!e;return t?(0,U.jsx)(`a`,{href:F(),"aria-label":`New chat`,"data-tip":`New chat`,"data-tip-side":`right`,"aria-current":n?`page`:void 0,className:P(yp,`mt-2`,n?`bg-(--side-current-bg) text-(--side-current-ink) hover:text-(--side-current-ink)`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,U.jsx)(Ze,{strokeWidth:1.8,"aria-hidden":`true`,className:`size-[18px]`})}):(0,U.jsxs)(`a`,{href:F(),"aria-current":n?`page`:void 0,className:P(np,rp(n)),children:[(0,U.jsx)(Ze,{strokeWidth:1.8,"aria-hidden":`true`,className:`size-[18px]`}),`New chat`]})}function fp({to:e,icon:t,label:n,on:r,count:i,more:a}){return(0,U.jsxs)(`a`,{href:e,"aria-current":r?`page`:void 0,className:P(np,rp(r)),children:[t?(0,U.jsx)(nn,{name:t,px:18}):(0,U.jsx)(`span`,{"aria-hidden":`true`,className:`size-[18px] flex-none`}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:n}),i!==void 0&&(0,U.jsx)(`span`,{className:`text-[13px] text-muted tabular-nums`,children:i}),a&&(0,U.jsx)(s,{size:14,strokeWidth:2,"aria-hidden":`true`,className:`flex-none text-muted`})]})}function pp({item:e,on:t,unpin:n}){return(0,U.jsxs)(`div`,{className:`group relative`,children:[(0,U.jsxs)(`a`,{href:co(e),"aria-current":t?`page`:void 0,className:P(np,rp(t),`pr-10`),children:[(0,U.jsx)(nn,{name:e.icon,px:18}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label})]}),(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Unpin ${e.label}`,"data-tip":`Unpin ${e.label}`,"data-tip-side":`right`,onClick:n,className:`absolute top-1/2 right-1 size-6 -translate-y-1/2 text-muted opacity-0 group-hover:opacity-100 hover:text-ink focus-visible:opacity-100`,children:(0,U.jsx)(xe,{size:13,strokeWidth:1.8,fill:`currentColor`,"aria-hidden":`true`})})]})}function mp({chats:e,open:t}){return e?.length?(0,U.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-chats`,className:`mt-4 flex flex-col gap-px border-t border-line-soft pt-4 short:mt-4 short:pt-2`,children:[(0,U.jsx)(`a`,{id:`nav-chats`,href:F(`chats`),className:`flex h-7 short:h-6 items-center rounded-[6px] px-2 text-[13px] font-medium text-muted no-underline hover:text-ink`,children:`Recent chats`}),e.map(e=>{let n=e.id===t,r=Ru(e);return(0,U.jsxs)(`a`,{href:F(`chats`,e.id),"aria-current":n?`page`:void 0,"data-tip":e.title,"data-tip-side":`right`,className:P(np,rp(n)),children:[(0,U.jsx)(nn,{name:`chat`,px:18}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.title||`Untitled chat`}),r&&(0,U.jsx)(`span`,{className:`size-2 flex-none rounded-full bg-warn`,role:`img`,"aria-label":`Needs you`})]},e.id)}),(0,U.jsxs)(`a`,{href:F(`chats`),className:P(np,rp(!1)),children:[(0,U.jsx)(nn,{name:`history`,px:18}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:`All chats`}),(0,U.jsx)(s,{size:14,strokeWidth:2,"aria-hidden":`true`,className:`flex-none text-muted`})]})]}):null}function hp(e){let t=ho(e);if(t.category)return{category:t.category.id,area:t.area?.id};let n=mo(e);return n&&n.item.path.length?{category:n.category.id,area:n.area.id}:{}}function gp({current:e,route:t,onClose:n,stats:r}){let i=t.join(`/`),[a,o]=(0,L.useState)(()=>hp(t));(0,L.useEffect)(()=>o(hp(t)),[i]);let{pins:s,toggle:c}=bo(),l=Do(),d=mo(t)?.item.id,f=oo.find(e=>e.id===a.category),p=f?.areas.find(e=>e.id===a.area),m=ho(t),h=(e,t)=>(0,U.jsxs)(`a`,{href:t,className:P(np,`text-ink-2 no-underline hover:bg-surface-strong hover:text-ink`),children:[(0,U.jsx)(u,{size:16,strokeWidth:2,"aria-hidden":`true`,className:`w-[18px] flex-none`}),(0,U.jsx)(`span`,{className:`min-w-0 truncate`,children:e})]}),g=(e,t,n)=>(0,U.jsx)(`a`,{href:t,"aria-current":n?`page`:void 0,className:P(np,`mt-1 font-semibold text-ink hover:bg-surface-strong hover:text-ink`,n&&`bg-(--side-current-bg) text-(--side-current-ink) ring-1 ring-line ring-inset hover:text-(--side-current-ink)`),children:(0,U.jsx)(`span`,{className:`min-w-0 truncate`,children:e})}),_=zu(i),v=s.map(e=>so.find(t=>t.item.id===e)).filter(e=>!!e);return(0,U.jsxs)(`nav`,{"aria-label":`ForgeQE`,className:`theme-side flex h-full w-[248px] min-[1440px]:w-[264px] flex-col border-r border-line-soft px-4 py-4 short:py-2`,children:[(0,U.jsxs)(`div`,{className:`flex min-h-10 items-center gap-1 pl-2`,children:[(0,U.jsx)(Dp,{}),(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Close the sidebar`,"data-tip":`Close the sidebar`,onClick:n,className:`size-8 flex-none`,children:(0,U.jsx)(ut,{strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,U.jsx)(`div`,{className:`mt-4 flex flex-col gap-px short:mt-2`,children:(0,U.jsx)(ep,{})}),(0,U.jsx)(`div`,{className:`mt-2 flex flex-col gap-px`,children:(0,U.jsx)(dp,{current:e})}),(0,U.jsxs)(`div`,{className:`side-level -mx-4 mt-2 flex min-h-0 flex-1 flex-col gap-px overflow-y-auto px-4 pb-6 [mask-image:linear-gradient(to_bottom,black_calc(100%-28px),transparent)]`,children:[!f&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-browse`,className:`mt-4 flex flex-col gap-2 short:mt-2 short:gap-1`,children:[(0,U.jsx)(`a`,{id:`nav-browse`,href:F(`browse`),"aria-current":t[0]===`browse`&&!m.category?`page`:void 0,className:`flex h-7 short:h-6 items-center rounded-[6px] px-2 text-[13px] font-medium text-muted no-underline hover:text-ink`,children:`Browse`}),oo.map(e=>(0,U.jsx)(fp,{to:lo(e),icon:e.icon,label:e.label,on:!1,more:!0},e.id))]}),v.length>0&&(0,U.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-pinned`,className:`mt-4 flex flex-col gap-px short:mt-2`,children:[(0,U.jsx)(`span`,{id:`nav-pinned`,className:`flex h-7 short:h-6 items-center px-2 text-[13px] font-medium text-muted`,children:`Pinned`}),v.map(e=>(0,U.jsx)(pp,{item:e.item,on:d===e.item.id,unpin:()=>c(e.item.id)},e.item.id))]})]}),f&&!p&&(0,U.jsxs)(U.Fragment,{children:[h(`ForgeQE`,F(`browse`)),g(f.label,lo(f),m.category?.id===f.id&&!m.area),f.areas.map(e=>(0,U.jsx)(fp,{to:uo(f,e),label:e.label,count:e.items.length,on:!1,more:!0},e.id)),(()=>{let e=Oo(f,s,l),t=(e,t,n,r=!1)=>n.length>0&&(0,U.jsxs)(`div`,{role:`group`,"aria-labelledby":e,className:`mt-4 flex flex-col gap-px short:mt-2`,children:[(0,U.jsx)(`span`,{id:e,className:`flex h-7 short:h-6 items-center px-2 text-[13px] font-medium text-muted`,children:t}),n.map(e=>r?(0,U.jsx)(pp,{item:e,on:d===e.id,unpin:()=>c(e.id)},e.id):(0,U.jsx)(fp,{to:co(e),icon:e.icon,label:e.label,on:d===e.id},e.id))]});return(0,U.jsxs)(U.Fragment,{children:[t(`nav-cat-pinned`,`Pinned`,e.pinned,!0),t(`nav-cat-recent`,`Recently used`,e.recent)]})})()]}),f&&p&&(0,U.jsxs)(U.Fragment,{children:[h(f.label,lo(f)),g(p.label,uo(f,p),m.area?.id===p.id),p.items.map(e=>(0,U.jsx)(fp,{to:co(e),icon:e.icon,label:e.label,on:d===e.id&&!(e.id===`chats`&&t[1])},e.id)),f.id===`agents`&&p.id===`chat`&&t[0]===`chats`&&t[1]&&(0,U.jsx)(vp,{uses:r?.uses})]}),(0,U.jsx)(mp,{chats:_,open:t[0]===`chats`?t[1]:void 0})]},`${a.category||``}/${a.area||``}`),(0,U.jsxs)(`div`,{className:`flex flex-none items-center gap-1 border-t border-line-soft pt-2 short:pt-1`,children:[(0,U.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,U.jsx)(up,{item:Jf,current:e})}),(0,U.jsx)(Sp,{}),(0,U.jsx)(wp,{icon:!0})]})]})}var _p=[{id:`knowledge`,label:`Knowledge`,icon:`knowledge-base`,to:F(`knowledge`)},{id:`sections`,label:`Document sections`,icon:`wikis`,to:F(`knowledge`)},{id:`skills`,label:`Skills`,icon:`feature`,to:F(`skills`)},{id:`systems`,label:`Systems`,icon:`columns`}];function vp({uses:e}){let t=_p.map(t=>({...t,names:e?.[t.id]||[]}));return(0,U.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-in-chat`,className:`mt-4 flex flex-col gap-px short:mt-2`,children:[(0,U.jsx)(`span`,{id:`nav-in-chat`,className:`flex h-7 short:h-6 items-center px-2 text-[13px] font-medium text-muted`,children:`In this chat`}),t.every(e=>!e.names.length)?(0,U.jsx)(`span`,{className:`px-2 text-[13px] text-muted`,children:`No knowledge, documents, skills or systems used yet.`}):t.filter(e=>e.names.length).map(t=>{let n=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(nn,{name:t.icon,px:18}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:t.label}),(0,U.jsx)(`span`,{className:`text-[13px] text-muted tabular-nums`,children:t.names.length})]});return(0,U.jsxs)(`div`,{className:`flex flex-col`,children:[t.to?(0,U.jsx)(`a`,{href:t.to,className:P(np,rp(!1)),children:n}):(0,U.jsx)(`span`,{className:P(np,`text-ink-2`),children:n}),(0,U.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0 pl-8`,children:[t.names.map(e=>(0,U.jsx)(`li`,{"data-tip":e,className:`truncate px-2 py-1 text-[13px] text-muted`,children:e},e)),t.id===`sections`&&e?.text&&e.text.whole>e.text.sent&&(0,U.jsxs)(`li`,{"data-tip":`${e.text.sent.toLocaleString()} of ${e.text.whole.toLocaleString()} characters`,className:`truncate px-2 py-1 text-[13px] text-muted`,children:[Math.round((1-e.text.sent/e.text.whole)*100),`% less text than the whole documents`]})]})]},t.id)})]})}var yp=`flex size-9 flex-none items-center justify-center rounded-[8px] no-underline`;function bp({item:e,current:t}){let n=t===e.id;return(0,U.jsx)(`a`,{href:F(e.id),"aria-current":n?`page`:void 0,"aria-label":e.label,"data-tip":e.label,"data-tip-side":`right`,className:P(yp,n?`bg-(--side-current-bg) text-(--side-current-ink) hover:text-(--side-current-ink)`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,U.jsx)(qf,{item:e})})}function xp({current:e,route:t,onOpen:n}){let{theme:r}=ea(),{pins:i}=bo(),a=r.name||`ForgeQE`,o=mo(t),s=ho(t).category?.id||(o?.item.path.length?o.category.id:``),c=(e,t,n,r)=>(0,U.jsx)(`a`,{href:e,"aria-current":r?`page`:void 0,"aria-label":t,"data-tip":t,"data-tip-side":`right`,className:P(yp,r?`bg-(--side-current-bg) text-(--side-current-ink) hover:text-(--side-current-ink)`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,U.jsx)(nn,{name:n,px:18})},e),l=i.map(e=>so.find(t=>t.item.id===e)).filter(e=>!!e);return(0,U.jsxs)(`nav`,{"aria-label":`ForgeQE`,className:`theme-side flex h-full w-16 flex-col items-center gap-px border-r border-line-soft py-4`,children:[(0,U.jsx)(`a`,{href:F(),"aria-label":`${a}, home`,"data-tip":a,"data-tip-side":`right`,className:`mb-1 flex min-h-10 items-center justify-center no-underline`,children:(0,U.jsx)(Hf,{theme:r})}),(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Open the sidebar`,"data-tip":`Open the sidebar`,"data-tip-side":`right`,onClick:n,className:`size-9`,children:(0,U.jsx)(se,{strokeWidth:1.8,"aria-hidden":`true`})}),(0,U.jsx)(ep,{rail:!0}),(0,U.jsx)(dp,{current:e,rail:!0}),(0,U.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col items-center gap-px overflow-y-auto`,children:[(0,U.jsxs)(`div`,{role:`group`,"aria-label":`Browse`,className:`flex flex-col items-center gap-px`,children:[(0,U.jsx)(`span`,{"aria-hidden":`true`,className:`my-2 h-px w-6 bg-line`}),oo.map(e=>c(lo(e),e.label,e.icon,s===e.id))]}),l.length>0&&(0,U.jsxs)(`div`,{role:`group`,"aria-label":`Pinned`,className:`flex flex-col items-center gap-px`,children:[(0,U.jsx)(`span`,{"aria-hidden":`true`,className:`my-2 h-px w-6 bg-line`}),l.map(e=>c(co(e.item),e.item.label,e.item.icon,o?.item.id===e.item.id))]})]}),(0,U.jsxs)(`div`,{className:`flex flex-none flex-col items-center gap-px border-t border-line-soft pt-2`,children:[(0,U.jsx)(Sp,{rail:!0}),(0,U.jsx)(wp,{icon:!0,rail:!0}),(0,U.jsx)(bp,{item:Jf,current:e})]})]})}function Sp({rail:e=!1}){return(0,U.jsx)(`a`,{href:`/help/guide`,target:`_blank`,rel:`noreferrer noopener`,"aria-label":`Help`,"data-tip":`Help`,"data-tip-side":e?`right`:void 0,className:P(yp,`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,U.jsx)(nn,{name:Ur.help,px:18})})}var Cp=[{id:`system`,label:`System`},{id:`light`,label:`Light`},{id:`dark`,label:`Dark`}];function wp({icon:e=!1,rail:t=!1}){let{choice:n,setChoice:r}=ea(),i=Cp.findIndex(e=>e.id===n),a=Cp[i],o=Cp[(i+1)%Cp.length],s=`Dark/Light: now ${a.label===`System`?`as the computer is`:a.label.toLowerCase()}. Switch to ${o.label===`System`?`as the computer is`:o.label.toLowerCase()}`;return(0,U.jsxs)(`button`,{type:`button`,"aria-label":s,"data-tip":s,"data-tip-side":t?`right`:void 0,onClick:()=>r(o.id),className:P(e?yp:np,`w-full cursor-pointer border-0 bg-transparent text-left text-ink-2 hover:bg-surface-strong hover:text-ink`,e&&`w-auto`),children:[(0,U.jsx)(nn,{name:Ur.theme,px:18}),!e&&(0,U.jsxs)(`span`,{className:`flex flex-1 items-baseline justify-between gap-2`,children:[`Dark/Light`,(0,U.jsx)(`span`,{className:`text-[13px] text-muted`,children:a.label===`System`?`Auto`:a.label})]})]})}function Tp(e){return[{id:`env`,label:`Environment`},{id:`usage`,label:`Context and tokens`},...e?.changes?.length?[{id:`changes`,label:`Changes · ${e.changes.length}`}]:[],...e?.outputs?.length?[{id:`outputs`,label:`Outputs · ${e.outputs.length}`}]:[]]}function Ep({stats:e,onOpen:t}){return(0,U.jsxs)(`aside`,{"aria-label":`Workspace`,className:`flex h-full w-14 flex-col items-center gap-1 border-l border-line-soft bg-surface-muted py-4`,children:[(0,U.jsx)(Kf,{rail:!0}),(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Show the workspace panel`,"data-tip":`Show the workspace panel`,"data-tip-side":`left`,onClick:()=>t(),children:(0,U.jsx)(st,{strokeWidth:1.8,"aria-hidden":`true`})}),(0,U.jsx)(`span`,{"aria-hidden":`true`,className:`my-1 h-px w-6 bg-line`}),Tp(e).map(e=>(0,U.jsx)(`button`,{type:`button`,"aria-label":e.label,"data-tip":e.label,"data-tip-side":`left`,onClick:()=>t(e.id),className:P(yp,`cursor-pointer border-0 bg-transparent text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,U.jsx)(qf,{item:e})},e.id))]})}function Dp({compact:e=!1}){let{theme:t}=ea(),n=t.name||`ForgeQE`;return(0,U.jsx)(`a`,{href:F(),"aria-label":`${n}, home`,className:`-ml-2 flex min-h-9 min-w-0 flex-1 items-center gap-2 rounded-[8px] pl-2 text-base font-semibold text-ink no-underline hover:bg-surface-strong hover:text-ink`,children:(0,U.jsx)(Vf,{theme:t,compact:e})})}function Op(){let[e,t]=(0,L.useState)(!1);return(0,L.useEffect)(()=>{let e=()=>t(!0);return window.addEventListener(It,e),()=>window.removeEventListener(It,e)},[]),e?(0,U.jsx)(`p`,{role:`alert`,className:`mx-4 mt-4 mb-0 rounded-[12px] bg-fail-soft px-4 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:Pt()}):null}function kp({stats:e,onClose:t,focus:n}){let r=(0,L.useRef)(null);return(0,L.useEffect)(()=>{n&&(r.current?.querySelector(`#panel-${n.id}`))?.scrollIntoView({block:`start`,behavior:window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches?`auto`:`smooth`})},[n]),(0,U.jsxs)(`aside`,{"aria-label":`Workspace`,className:`flex h-full w-[264px] flex-col border-l border-line-soft bg-surface-muted`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2 px-4 pt-4`,children:[(0,U.jsx)(Kf,{}),(0,U.jsx)(`span`,{className:`flex-1`}),(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Close the workspace panel`,"data-tip":`Close the workspace panel`,"data-tip-side":`left`,onClick:t,children:(0,U.jsx)(a,{strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,U.jsx)(`div`,{ref:r,className:`min-h-0 flex-1 overflow-y-auto px-4 pt-1 pb-4`,children:(0,U.jsx)(_f,{chat:e})})]})}var Ap=`forgeqe-workspace-panel`,jp=()=>{try{return localStorage.getItem(Ap)!==`closed`}catch{return!0}},Mp=220;function Np({open:e,side:t,onClose:n,className:r,children:i}){if(!na(e,150))return null;let a=t===`left`?`aside`:`div`;return(0,U.jsxs)(`div`,{inert:!e||void 0,className:P(`drawer fixed inset-0 z-40`,!e&&`is-closing`,r),children:[(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`drawer-dim absolute inset-0 bg-[rgba(17,25,40,0.28)]`,onClick:n}),(0,U.jsx)(a,{className:P(`drawer-box absolute inset-y-0 max-w-[85vw] shadow-menu`,t===`left`?`drawer-left left-0`:`right-0`),children:i})]})}function Pp({current:e,route:t=e?[e]:[],children:n}){let[r,i]=(0,L.useState)(sp),[a,o]=(0,L.useState)(null),[s,c]=(0,L.useState)(!1),[l,u]=(0,L.useState)(jp),[d,f]=(0,L.useState)(!1),[p,m]=(0,L.useState)(!1),[h,g]=(0,L.useState)(!1),[_,v]=(0,L.useState)(``),y=t.join(`/`);(0,L.useEffect)(()=>Eo(t),[y]);let b=()=>{c(!1),v(``),g(!0),m(!0)},x=(0,L.useCallback)(e=>{c(!1),v(e),g(!0),m(!0)},[]);(0,L.useEffect)(()=>{let e=e=>{(e.ctrlKey||e.metaKey)&&!e.altKey&&!e.shiftKey&&e.key.toLowerCase()===`k`&&(e.preventDefault(),v(``),g(!0),m(e=>!e))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let ee=na(!r,Mp),S=na(l,Mp),[C,w]=(0,L.useState)(null),T=()=>window.matchMedia(`(min-width: 1600px)`).matches,E=e=>{u(e);try{localStorage.setItem(Ap,e?`open`:`closed`)}catch{}};(0,L.useEffect)(()=>{if(!d)return;let e=()=>f(!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 D=e=>{i(e);try{localStorage.setItem(op,e?`closed`:`open`)}catch{}};(0,L.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 te=()=>window.matchMedia(`(min-width: 768px)`).matches,O=e===`settings`,ne=e=>{T()?E(!0):f(!0),w(e?{id:e,at:Date.now()}:null)};return(0,U.jsx)(ip.Provider,{value:{hidden:r,open:()=>te()?D(!1):c(!0),setChat:o,find:b},children:(0,U.jsx)(wu,{pages:Xf,find:x,children:(0,U.jsxs)(`div`,{className:`flex min-h-(--screen) bg-bg`,children:[(0,U.jsxs)(`aside`,{style:{viewTransitionName:`app-sidebar`},className:P(`side-box sticky top-0 h-(--screen) flex-none overflow-hidden`,r?`w-16`:`w-[248px] min-[1440px]:w-[264px]`,O?`hidden`:`hidden md:block`),children:[(0,U.jsx)(`div`,{className:P(`side-layer absolute inset-y-0 left-0`,r&&`invisible opacity-0`),children:ee&&(0,U.jsx)(gp,{current:e,route:t,stats:a,onClose:()=>D(!0)})}),(0,U.jsx)(`div`,{className:P(`side-layer absolute inset-y-0 left-0`,!r&&`invisible opacity-0`),children:(0,U.jsx)(xp,{current:e,route:t,onOpen:()=>D(!1)})})]}),(0,U.jsx)(Np,{open:s,side:`left`,onClose:()=>c(!1),className:`md:hidden`,children:(0,U.jsx)(gp,{current:e,route:t,stats:a,onClose:()=>c(!1)})}),(0,U.jsxs)(`div`,{className:`relative flex min-w-0 flex-1 flex-col`,children:[(0,U.jsx)(Op,{}),n,(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Show the workspace panel`,"data-tip":`Show the workspace panel`,onClick:()=>ne(),className:P(`absolute top-2 right-3 z-30 md:hidden`,O&&`hidden`),children:(0,U.jsx)(st,{strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,U.jsxs)(`div`,{style:{viewTransitionName:`app-panel`},className:P(`side-box sticky top-0 h-(--screen) w-14 flex-none overflow-hidden`,l&&`min-[1600px]:w-[264px]`,O?`hidden`:`hidden md:block`),children:[(0,U.jsx)(`div`,{className:P(`side-layer absolute inset-y-0 right-0 hidden min-[1600px]:block`,!l&&`invisible opacity-0`),children:S&&(0,U.jsx)(kp,{stats:a,focus:C,onClose:()=>E(!1)})}),(0,U.jsx)(`div`,{className:P(`side-layer absolute inset-y-0 right-0`,l&&`min-[1600px]:invisible min-[1600px]:opacity-0`),children:(0,U.jsx)(Ep,{stats:a,onOpen:ne})})]}),h&&(0,U.jsx)(L.Suspense,{fallback:null,children:(0,U.jsx)(Zf,{open:p,onClose:()=>m(!1),pages:Xf,query:_})}),(0,U.jsx)(Np,{open:d,side:`right`,onClose:()=>f(!1),className:`min-[1600px]:hidden`,children:(0,U.jsx)(kp,{stats:a,focus:C,onClose:()=>f(!1)})}),(0,U.jsx)(tp,{})]})})})}var Fp=`mx-auto box-border flex w-full max-w-[1180px] flex-col px-6 pt-8 pb-10 md:px-12 short:pt-6 short:pb-6`;export{Pu as $,Ji as $t,_d as A,Pn as An,Ka as At,Yu as B,Yr as Bt,Ad as C,Qn as Cn,lo as Ct,wd as D,sr as Dn,io as Dt,md as E,er as En,ao as Et,ed as F,Dn as Fn,ta as Ft,Ju as G,Kr as Gt,Gu as H,ii as Ht,od as I,On as In,na as It,Fu as J,Xr as Jt,Wu as K,Gr as Kt,nd as L,jn as Ln,$i as Lt,ud as M,zn as Mn,Wa as Mt,ld as N,Vn as Nn,Ha as Nt,xd as O,lr as On,eo as Ot,sd as P,Bn as Pn,Ua as Pt,Mu as Q,ji as Qt,td as R,Cn as Rn,ea as Rt,Od as S,ur as Sn,uo as St,Td as T,fr as Tn,bo as Tt,Ku as U,li as Ut,Xu as V,Zr as Vt,qu as W,qi as Wt,ku as X,Ri as Xt,Nu as Y,gi as Yt,Ou as Z,Ci as Zt,Kd as _,qn as _n,Lo as _t,ap as a,fi as an,lu as at,Md as b,or as bn,so as bt,Tf as c,Ai as cn,Fs as ct,Id as d,Sr as dn,ks as dt,V as en,ju as et,Dd as f,Tr as fn,Ns as ft,Ld as g,nr as gn,Wo as gt,Bd as h,tr as hn,Go as ht,Pp as i,ei as in,Eu as it,pd as j,Hn as jn,Ga as jt,Cd as k,$n as kn,qa as kt,jf as l,Ur as ln,Is as lt,Vd as m,pr as mn,Uo as mt,cp as n,Di as nn,Cu as nt,Vf as o,Qr as on,vc as ot,Ed as p,yr as pn,js as pt,Uu as q,Jr as qt,lp as r,Li as rn,Tu as rt,Hf as s,Ki as sn,uc as st,Fp as t,ti as tn,Du as tt,qd as u,Cr as un,As as ut,Fd as v,ar as vn,Ao as vt,$ as w,ir as wn,co as wt,jd as x,rr as xn,oo as xt,tf as y,cr as yn,ko as yt,$u as z,wn as zn,qr as zt};
18
+ `)){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 Td({defs:e,edit:t,base:n,stacked:r}){let i=Au(t.value,n),a=i&&typeof i==`object`&&!Array.isArray(i)?i:{};return(0,U.jsx)(U.Fragment,{children:e.filter(e=>!e.when||e.when(a)).map(e=>(0,U.jsx)(Cd,{def:e,edit:t,base:n,stacked:r},e.key))})}function Ed({title:e,meta:t,state:n,open:r,onToggle:i,lead:a,actions:o,children:s,expandable:c}){let l=(0,L.useId)();return(0,U.jsxs)(`div`,{className:`border-t border-line-soft`,children:[(0,U.jsxs)(`div`,{className:`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 py-4`,children:[a,c===!1?(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,U.jsx)(`span`,{className:`text-sm text-muted`,children:t})]}):(0,U.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-4 rounded-[10px] border-0 bg-transparent p-0 text-left text-ink`,children:[(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,U.jsx)(`span`,{className:`text-sm text-muted`,children:t})]}),(0,U.jsx)(le,{size:18,"aria-hidden":`true`,className:P(`flex-none text-muted transition-transform`,r&&`rotate-180`)})]}),n,o]}),c!==!1&&(0,U.jsx)(qa,{open:r,id:l,children:(0,U.jsx)(`div`,{className:`mb-4 border-l-2 border-line-soft pb-2 pl-4 sm:pl-6 [&>*:first-child]:border-t-0`,children:s})})]})}function Dd(e){let[t,n]=(0,L.useState)(null),[r,i]=(0,L.useState)(``),a=(0,L.useCallback)(()=>{i(``),e().then(n,e=>i(e.message))},[e]);return(0,L.useEffect)(a,[a]),{data:t,error:r,reload:a}}function Od({error:e,reload:t}){return e?(0,U.jsxs)(`div`,{role:`alert`,className:`flex flex-col items-start gap-4 rounded-[14px] card border p-6`,children:[(0,U.jsx)(`p`,{className:`m-0 text-sm leading-relaxed text-ink-2`,children:e}),(0,U.jsxs)(I,{size:`sm`,onClick:t,children:[(0,U.jsx)(b,{"aria-hidden":`true`}),`Retry`]})]}):(0,U.jsx)(`p`,{role:`status`,className:`m-0 py-4 text-sm text-muted`,children:`Loading…`})}function kd({children:e}){return(0,U.jsx)(Jt,{className:`py-4`,children:e})}function $(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)}function Ad(e){return`${$(e.input)} read${e.cached?` (${$(e.cached)} from cache)`:``} · ${$(e.output)} written`}var jd=null;function Md(e){jd=e}function Nd(e,t){if(!t)return`—`;let n=jd?.to,r=jd?.perEur?.[t],i=n?jd?.perEur?.[n]:void 0,[a,o]=n&&n!==t&&r&&i?[e/r*i,n]:[e,t];try{let e=Math.abs(a)>=1e4;return new Intl.NumberFormat(void 0,{style:`currency`,currency:o,...e?{notation:`compact`,maximumFractionDigits:1}:{maximumFractionDigits:Math.abs(a)<1?3:2}}).format(a)}catch{return`${a.toFixed(2)} ${o}`}}function Pd(e){if(!jd?.perEur||!e||jd.to===e||!jd.perEur[e])return``;let t=Nd(1,e);return`Shown in ${jd.to}, converted from ${e} at the European Central Bank's rate of ${jd.date}: ${new Intl.NumberFormat(void 0,{style:`currency`,currency:e}).format(1)} = ${t}.`}var Fd=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString(void 0,{dateStyle:`medium`,timeStyle:`short`})},Id=e=>e>=1048576?`${(e/1048576).toFixed(1)} MB`:e>=1024?`${Math.round(e/1024)} KB`:`${e} bytes`;function Ld({head:e,children:t,label:n}){return(0,U.jsx)(ed,{label:n,head:e.map((e,t)=>(0,U.jsx)(`th`,{scope:`col`,className:t>0?qu:Ku,children:e},e||t)),children:t})}function Rd({cells:e}){return(0,U.jsx)(`tr`,{className:`border-t border-line-soft`,children:e.map((e,t)=>(0,U.jsx)(`td`,{className:P(`px-4 py-2 align-top`,t>0?`text-right whitespace-nowrap tabular-nums`:`min-w-[200px]`),children:e},t))})}var zd={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}]},Bd={"no match":`not run before`,"not a rerun":`not run before`,"not a recorded goal":`not run before`,"no recorded run matches":`not run before`,"its last run did not pass":`its last run failed`,"marked stale":`its saved steps are out of date`,"more than one recorded start page for this goal":`saved from more than one start page`};function Vd(e,t){return e===`tier0`?t===`shadow`?`Test mode: AI ran it, could have replayed`:`Replayed for free`:`AI: ${Bd[e]||e}`}function Hd({edit:e}){let{data:t,error:n,reload:r}=Dd(ht.registry),[i,a]=(0,L.useState)(!1),o=String(Au(e.value,[`registry`,`mode`])??`on`);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(md,{label:`Replay passed runs for free`,help:o===`shadow`?`In test mode now: ForgeQE only notes what it would have replayed, and the AI runs everything. Turn it on to use replays.`:`If the page changed, the AI takes over.`,yamlKey:e.file?`registry.mode`:void 0,children:(0,U.jsx)(Iu,{checked:o===`on`,onChange:t=>e.set(Mu(e.value,[`registry`,`mode`],t?`on`:`off`)),label:`Replay passed runs for free`})}),t?!t.exists||t.plans.length===0?(0,U.jsx)(kd,{children:`Nothing to replay yet. When a run passes, ForgeQE saves its steps, and running it again is free.`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Wu,{label:`Replays`,className:`mt-4`,children:[(0,U.jsx)(Gu,{icon:k,label:`Free reruns`,value:String(t.replayed),note:`of ${xt(t.total,`run`)}`}),(0,U.jsx)(Gu,{icon:c,label:`Tokens saved`,value:$(t.tokensSaved),note:`${xt(t.plans.length,`passed run`)} ready to replay`})]}),(0,U.jsxs)(`button`,{type:`button`,"aria-expanded":i,"aria-controls":`replay-details`,onClick:()=>a(!i),"data-tip":i?`Hide details`:`Show details`,className:`mt-2 inline-flex min-h-10 cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-sm font-medium text-accent-fg hover:text-accent-fg-hover [&>svg]:size-4`,children:[i?(0,U.jsx)(E,{"aria-hidden":`true`}):(0,U.jsx)(le,{"aria-hidden":`true`}),i?`Less`:`Details`]}),(0,U.jsxs)(qa,{open:i,id:`replay-details`,children:[(0,U.jsx)(yd,{first:!0,children:`Saved runs`}),(0,U.jsx)(Ld,{label:`Saved runs`,head:[`Goal`,`Passed`,`Failed`,`Tokens the first time`,`Last used`],children:t.plans.map(e=>(0,U.jsx)(Rd,{cells:[(0,U.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`line-clamp-2`,children:e.goal}),e.stale&&(0,U.jsx)(`span`,{className:`text-[13px] text-warn`,children:`Out of date: the AI runs it next time`})]}),e.successes,e.failures,e.firstTokens?$(e.firstTokens):`—`,Fd(e.lastAt)]},e.id))}),(0,U.jsx)(yd,{children:`Recent runs`}),t.requests.length===0?(0,U.jsx)(kd,{children:`No runs yet.`}):(0,U.jsx)(Ld,{label:`Recent runs`,head:[`Request`,`How it ran`,`Result`,`Tokens`,`When`],children:t.requests.map(e=>(0,U.jsx)(Rd,{cells:[(0,U.jsx)(`span`,{className:`line-clamp-2`,children:e.request||e.planGoal||e.id}),Vd(e.decision,e.mode),e.outcome||`—`,$(e.tokens),Fd(e.startedAt)]},e.id))})]})]}):(0,U.jsx)(Od,{error:n,reload:r})]})}function Ud(){let{data:e,error:t,reload:n}=Dd(ht.logs),[r,i]=(0,L.useState)(null),[a,o]=(0,L.useState)(``);return e?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Kept in `,(0,U.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.dir}),`. Secrets are replaced with their names before a log is shown.`]}),a&&(0,U.jsx)(`p`,{role:`alert`,className:`mt-0 mb-4 text-sm text-fail`,children:a}),e.logs.length===0?(0,U.jsx)(kd,{children:`No session logs yet. ForgeQE writes one for each chat, run and suite.`}):e.logs.map(e=>(0,U.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,U.jsx)(Ou,{icon:j}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`font-mono text-[13px] break-all`,children:e.name}),(0,U.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[Fd(e.modified),`, `,Id(e.size)]})]}),(0,U.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Open ${e.name}`,"data-tip":`Open ${e.name}`,onClick:()=>{o(``),ht.log(e.name).then(i,e=>o(e.message))},children:(0,U.jsx)(j,{"aria-hidden":`true`})})]},e.name)),(0,U.jsx)(Ka,{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,U.jsxs)(I,{onClick:()=>i(null),children:[(0,U.jsx)(Fe,{"aria-hidden":`true`}),`Close`]}),children:r&&(0,U.jsx)(`pre`,{className:`m-0 mt-4 font-mono text-[13px] leading-relaxed whitespace-pre-wrap break-all`,children:r.text})})]}):(0,U.jsx)(Od,{error:t,reload:n})}var Wd={error:`Error`,tool:`Tool call failed`,run:`Run failed`,engine:`Browser engine stopped`,agent:`Agent error`,model:`Model call failed`},Gd={chat:`Chat`,start:`Shell`,run:`Run`,suite:`Suite`,code:`Write tests`,heal:`Heal`,monitor:`Monitor`,mcp:`MCP`,explore:`Explore`};function Kd(){let[e,t]=(0,L.useState)(null),[n,r]=(0,L.useState)(``);return{show:e=>{r(``),ht.log(e).then(t,e=>r(e.message))},error:n,sheet:(0,U.jsx)(Ka,{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,U.jsxs)(I,{onClick:()=>t(null),children:[(0,U.jsx)(Fe,{"aria-hidden":`true`}),`Close`]}),children:e&&(0,U.jsx)(`pre`,{className:`m-0 mt-4 font-mono text-[13px] leading-relaxed break-all whitespace-pre-wrap`,children:e.text})})}}function qd({entries:e}){let[t,n]=(0,L.useState)(-1);return e.length?(0,U.jsx)(U.Fragment,{children:e.map((e,r)=>(0,U.jsx)(Ed,{lead:(0,U.jsx)(Ou,{icon:m}),title:`${e.action}: ${e.file}`,meta:`${Fd(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,U.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0 py-4`,children:e.changes.map((e,t)=>(0,U.jsxs)(`li`,{className:`flex flex-wrap items-baseline gap-x-2 gap-y-1 text-sm`,children:[(0,U.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.key}),(0,U.jsx)(`span`,{className:`text-muted`,children:e.before===void 0?(0,U.jsxs)(U.Fragment,{children:[`added `,(0,U.jsx)(`span`,{className:`text-ink`,children:e.after})]}):e.after===void 0?(0,U.jsxs)(U.Fragment,{children:[`removed `,(0,U.jsx)(`span`,{className:`text-ink line-through`,children:e.before})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{className:`text-ink line-through`,children:e.before}),` → `,(0,U.jsx)(`span`,{className:`text-ink`,children:e.after})]})})]},t))})},r))}):(0,U.jsx)(kd,{children:`No changes made in Settings yet.`})}function Jd({tabs:e,current:t,onPick:n,label:r}){return(0,U.jsx)(`div`,{role:`tablist`,"aria-label":r,className:`mb-6 flex flex-wrap gap-x-6 border-b border-line-soft`,children:e.map((r,i)=>(0,U.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:P(`-mb-px min-h-11 cursor-pointer border-0 border-b-2 bg-transparent px-1 text-sm font-medium`,t===r.id?`border-ink text-ink`:`border-transparent text-muted hover:text-ink`),children:r.label},r.id))})}function Yd(){let{data:e,error:t,reload:r}=Dd(ht.audit),[i,a]=(0,L.useState)(`summary`),o=Kd();if(!e)return(0,U.jsx)(Od,{error:t,reload:r});let s=e.summary,c=s.totals,l=e=>e?`${e} failed`:`None failed`;return(0,U.jsxs)(U.Fragment,{children:[(0,U.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,U.jsx)(Jd,{label:`Audit`,current:i,onPick:a,tabs:[{id:`summary`,label:`Summary`},{id:`problems`,label:`Problems (${s.problems.length})`},{id:`sessions`,label:`Sessions (${s.sessions.length})`},{id:`changes`,label:`Settings changes (${e.entries.length})`}]}),o.error&&(0,U.jsx)(`p`,{role:`alert`,className:`mt-0 mb-4 text-sm text-fail`,children:o.error}),(0,U.jsxs)(`div`,{id:`panel-${i}`,role:`tabpanel`,"aria-labelledby":`tab-${i}`,children:[i===`summary`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Wu,{label:`Activity summary`,children:[(0,U.jsx)(Gu,{icon:Oe,label:`Sessions`,value:String(c.sessions),note:c.replays?`${c.replays} request${c.replays===1?``:`s`} replayed without the agent`:void 0}),(0,U.jsx)(Gu,{icon:n,label:`Tool calls`,value:String(c.toolCalls),note:l(c.toolErrors)}),(0,U.jsx)(Gu,{icon:D,label:`Runs`,value:String(c.runs),note:l(c.runsFailed)}),(0,U.jsx)(Gu,{icon:ne,label:`Model calls`,value:String(c.modelCalls),note:l(c.modelErrors)}),(0,U.jsx)(Gu,{icon:be,label:`Errors`,value:String(c.errors),note:c.escalations?`${c.escalations} switch${c.escalations===1?``:`es`} to a stronger model`:void 0})]}),s.problems.length>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(yd,{children:`Latest problems`}),(0,U.jsx)(Xd,{problems:s.problems.slice(0,5),onLog:o.show}),s.problems.length>5&&(0,U.jsxs)(`button`,{type:`button`,onClick:()=>a(`problems`),"data-tip":`All ${s.problems.length} problems`,className:`mt-4 inline-flex min-h-10 cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-sm font-medium text-accent-fg hover:text-accent-fg-hover [&>svg]:size-4`,children:[(0,U.jsx)(We,{"aria-hidden":`true`}),`All (`,s.problems.length,`)`]})]}),(0,U.jsx)(yd,{children:`Tools used`}),s.tools.length===0?(0,U.jsx)(kd,{children:`No tool calls logged in the last 30 days.`}):(0,U.jsx)(Ld,{label:`Tools used`,head:[`Tool`,`Calls`,`Failed`,`Average time`],children:s.tools.map(e=>(0,U.jsx)(Rd,{cells:[(0,U.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.name}),e.calls,e.errors?(0,U.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,e.calls?`${(e.ms/e.calls/1e3).toFixed(1)} s`:`—`]},e.name))}),(0,U.jsx)(yd,{children:`Model calls`}),s.models.length===0?(0,U.jsx)(kd,{children:`No model calls in the usage ledger in the last 30 days.`}):(0,U.jsx)(Ld,{label:`Model calls`,head:[`Model`,`Calls`,`Failed`,`Tokens`],children:s.models.map(e=>(0,U.jsx)(Rd,{cells:[e.model,e.calls,e.errors?(0,U.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,$(e.tokens)]},e.model))})]}),i===`problems`&&(s.problems.length?(0,U.jsx)(Xd,{problems:s.problems,onLog:o.show}):(0,U.jsx)(kd,{children:`Nothing failed in the last 30 days.`})),i===`sessions`&&(s.sessions.length?(0,U.jsx)(Ld,{label:`Sessions`,head:[`Session`,`Tool calls`,`Runs`,`Errors`,`Tokens`,``],children:s.sessions.map(e=>(0,U.jsx)(Rd,{cells:[(0,U.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:Gd[e.command]||e.command}),(0,U.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[Fd(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,U.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,$(e.tokens),(0,U.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Open the log of the ${Gd[e.command]||e.command} session at ${Fd(e.started)}`,"data-tip":`Open the log of the ${Gd[e.command]||e.command} session at ${Fd(e.started)}`,onClick:()=>o.show(e.log),children:(0,U.jsx)(j,{"aria-hidden":`true`})})]},e.log))}):(0,U.jsx)(kd,{children:`No sessions logged in the last 30 days.`})),i===`changes`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Every change made in Settings, kept in `,(0,U.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.file}),`. Changes made to the files by hand are not here.`]}),(0,U.jsx)(qd,{entries:e.entries})]})]}),o.sheet]})}function Xd({problems:e,onLog:t}){return(0,U.jsx)(U.Fragment,{children:e.map((e,n)=>(0,U.jsxs)(`div`,{className:`flex min-h-[64px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-4`,children:[(0,U.jsx)(Ou,{icon:e.kind===`run`||e.kind===`tool`?S:be,className:`bg-fail-soft text-fail`}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:Wd[e.kind]}),(0,U.jsx)(`span`,{className:`text-sm break-words text-ink-2`,children:e.text}),(0,U.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[Fd(e.at),`, `,Gd[e.command]||e.command]})]}),e.log&&(0,U.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Open the log for: ${e.text.slice(0,60)}`,"data-tip":`Open the log for: ${e.text.slice(0,60)}`,onClick:()=>t(e.log),children:(0,U.jsx)(j,{"aria-hidden":`true`})})]},n))})}var Zd={title:`Budgets`,help:`Money in the model's price currency, or GitHub Copilot premium requests. 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`},{key:`premium_requests.run`,label:`Premium requests per browser run`,help:`GitHub Copilot: each call uses the model's multiplier, 0 for a model included in your plan.`,type:`number`},{key:`premium_requests.day`,label:`Premium requests per day`,type:`number`},{key:`premium_requests.month`,label:`Premium requests per month`,type:`number`}]},Qd={suite:`Suites`,monitor:`Monitor rounds`,run:`Browser runs`,explore:`Exploratory`,api:`API tests`,desktop:`Desktop runs`,mobile:`Mobile runs`};function $d({days:e,currency:t}){let[n,r]=(0,L.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,U.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,U.jsxs)(`p`,{"aria-live":`polite`,className:`m-0 text-sm text-ink-2`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:l(c.day)}),`: `,$(c.input+c.output),` tokens, `,c.runs,` run`,c.runs===1?``:`s`,t?`, ${Nd(c.amount,t)}`:``]}),(0,U.jsx)(`div`,{role:`img`,"aria-label":`Tokens a day for the last 30 days: ${$(a)} in all, on ${o} days with runs; the busiest was ${l(s.day)} with ${$(s.input+s.output)}.`,className:`flex h-[160px] items-end gap-1 border-b border-line`,onMouseLeave:()=>r(-1),children:e.map((t,a)=>{let o=t.input+t.output;return(0,U.jsx)(`div`,{className:`flex h-full flex-1 cursor-default items-end`,onMouseEnter:()=>r(a),children:(0,U.jsx)(`div`,{className:P(`w-full rounded-t-[4px] transition-[height]`,a===e.length-1||a===n?`bg-accent`:`bg-accent-line`),style:{height:o?`${Math.max(2,o/i*100)}%`:`0`}})},t.day)})}),(0,U.jsxs)(`div`,{"aria-hidden":`true`,className:`flex justify-between text-[13px] text-muted`,children:[(0,U.jsx)(`span`,{children:l(e[0].day)}),(0,U.jsx)(`span`,{children:l(e[e.length-1].day)})]})]})}function ef({rows:e,currency:t,label:n}){if(!e.length)return(0,U.jsx)(kd,{children:`Nothing yet.`});let r=Math.max(1,...e.map(e=>e.sum.input+e.sum.output));return(0,U.jsx)(`ul`,{"aria-label":n,className:`m-0 flex list-none flex-col gap-4 p-0`,children:e.map(e=>{let n=e.sum.input+e.sum.output;return(0,U.jsxs)(`li`,{className:`flex flex-col gap-1`,children:[(0,U.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 text-sm`,children:[(0,U.jsx)(`span`,{className:`min-w-0 truncate font-medium`,children:e.name}),(0,U.jsxs)(`span`,{className:`whitespace-nowrap text-ink-2 tabular-nums`,children:[$(n),` tokens`,t&&e.sum.amount?`, ${Nd(e.sum.amount,t)}`:``]})]}),(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`h-2 rounded-full bg-surface-strong`,children:(0,U.jsx)(`div`,{className:`h-2 rounded-full bg-accent transition-[width] duration-200 ease-out`,style:{width:`${Math.max(1,n/r*100)}%`}})})]},e.name)})})}var tf=e=>{let t=Math.round(e*100)/100;return`${t} premium request${t===1?``:`s`}`};function nf({label:e,spent:t,limit:n,currency:r,premium:i}){let a=e=>i?tf(e):Nd(e,r),o=t/n*100,s=o>=100?`fail`:o>=80?`warn`:`ok`;return(0,U.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,U.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 text-sm`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:e}),(0,U.jsxs)(`span`,{className:P(`tabular-nums`,s===`fail`?`text-fail`:s===`warn`?`text-warn`:`text-ink-2`),children:[a(t),` of `,a(n),s===`fail`?`, over budget`:s===`warn`?`, ${Math.round(o)} percent used`:``]})]}),(0,U.jsx)(`div`,{role:`img`,"aria-label":`${e}: ${a(t)} of ${a(n)}, ${Math.round(o)} percent`,className:`h-2 rounded-full bg-surface-strong`,children:(0,U.jsx)(`div`,{className:P(`h-2 rounded-full transition-[width] duration-200 ease-out`,s===`fail`?`bg-fail`:s===`warn`?`bg-warn`:`bg-accent`),style:{width:`${Math.min(100,Math.max(1,o))}%`}})})]})}function rf({edit:t}){let{data:n,error:r,reload:i}=Dd(ht.tokenomics),a=(0,U.jsx)(Td,{defs:Zd.fields,edit:t,base:Zd.base});if(!n)return(0,U.jsx)(Od,{error:r,reload:i});let o=n,s=o.currency,c=o.totals.input+o.totals.output,l=o.budget,u=l?.currency||o.spent?.currency||s,d=o.project?.days30.calls?o.project:void 0,p=d?d.days30.input+d.days30.output:0;return(0,U.jsxs)(U.Fragment,{children:[d&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Every model call made for this project from `,o.days[0]?.day,` to today: chats, runs and the agents they started, each priced when it was made. These are the figures the workspace panel shows. `,(0,U.jsx)(`a`,{href:F(`cost`),children:`Cost and model usage`}),` breaks them down by agent, job and model, priced at today's prices.`]}),(0,U.jsxs)(Wu,{label:`All model calls, last 30 days`,children:[(0,U.jsx)(Gu,{icon:fe,label:`Tokens`,value:$(p),note:Ad(d.days30)}),(0,U.jsx)(Gu,{icon:ct,label:`Cost`,value:d.currency?Nd(d.days30.amount,d.currency):`—`,note:d.currency?`When each call was made`:`No prices known`}),(0,U.jsx)(Gu,{icon:f,label:`Calls`,value:d.days30.calls.toLocaleString(),note:`${$(d.today.input+d.today.output)} tokens today`}),(0,U.jsx)(Gu,{icon:e,label:`Read from cache`,value:d.days30.input?`${Math.round(d.days30.cached/d.days30.input*100)}%`:`—`,note:`Of the tokens read`})]}),Pd(d.currency)&&(0,U.jsx)(`p`,{className:`mt-4 mb-0 text-[13px] text-muted`,children:Pd(d.currency)}),(0,U.jsx)(yd,{children:`Test runs`})]}),o.totals.runs===0?(0,U.jsx)(kd,{children:`No test runs with token counts in the last 30 days. Every run and suite ForgeQE reports on is counted here; chats are not.`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`From `,o.totals.runs,` run`,o.totals.runs===1?``:`s`,` in this project's reports in the last 30 days`,o.from?`, ${o.from} to ${o.to}`:``,`: test runs only, not chats. Models and agents come from the `,o.totals.withCalls,` run`,o.totals.withCalls===1?``:`s`,` that kept their model calls.`]}),(0,U.jsxs)(Wu,{label:`Test runs, last 30 days`,children:[(0,U.jsx)(Gu,{icon:fe,label:`Tokens`,value:$(c),note:Ad(o.totals)}),(0,U.jsx)(Gu,{icon:ct,label:`Cost`,value:Nd(o.totals.amount,s),note:o.totals.unpriced?`${o.totals.unpriced} run${o.totals.unpriced===1?``:`s`} had no price`:s?`At the models' prices`:`No prices known`}),(0,U.jsx)(Gu,{icon:f,label:`Per run`,value:$(Math.round(c/o.totals.runs)),note:s?Nd(o.totals.amount/o.totals.runs,s):void 0}),(0,U.jsx)(Gu,{icon:e,label:`Read from cache`,value:o.totals.input?`${Math.round(o.totals.cached/o.totals.input*100)}%`:`—`,note:`Of the tokens read`})]}),Pd(o.currency)&&d?.currency!==o.currency&&(0,U.jsx)(`p`,{className:`mt-4 mb-0 text-[13px] text-muted`,children:Pd(o.currency)}),o.otherCurrency>0&&(0,U.jsxs)(`p`,{className:`mt-4 mb-0 text-[13px] text-muted`,children:[o.otherCurrency,` run`,o.otherCurrency===1?` was`:`s were`,` priced in another currency and left out of the cost.`]}),(0,U.jsx)(yd,{children:`Last 30 days`}),(0,U.jsx)($d,{days:o.days,currency:s}),(0,U.jsxs)(`div`,{className:`mt-8 flex flex-wrap gap-x-10 gap-y-8`,children:[(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-4`,children:[(0,U.jsx)(`h3`,{className:`m-0 text-base font-semibold`,children:`By model`}),(0,U.jsx)(ef,{label:`Tokens by model`,rows:o.byModel.map(e=>({name:e.model,sum:e})),currency:s})]}),(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-4`,children:[(0,U.jsx)(`h3`,{className:`m-0 text-base font-semibold`,children:`By agent`}),(0,U.jsx)(ef,{label:`Tokens by agent`,rows:o.byAgent.map(e=>({name:e.agent,sum:e})),currency:s})]})]}),(0,U.jsx)(yd,{children:`By kind of run`}),(0,U.jsx)(ef,{label:`Tokens by kind of run`,rows:o.byKind.map(e=>({name:`${Qd[e.kind]||e.kind} (${e.runs})`,sum:e})),currency:s}),(0,U.jsx)(yd,{children:`Runs that used the most`}),(0,U.jsx)(Ld,{label:`Runs that used the most tokens`,head:[`Run`,`Kind`,`Tokens`,`Cost`,`When`],children:o.top.map(e=>(0,U.jsx)(Rd,{cells:[(0,U.jsx)(`span`,{className:`line-clamp-2`,children:e.title}),Qd[e.kind]||e.kind,$(e.tokens),e.amount===void 0?`—`:Nd(e.amount,s),e.startedAt?Fd(e.startedAt):`—`]},`${e.kind}/${e.id}`))})]}),(0,U.jsx)(yd,{help:Zd.help,children:Zd.title}),l&&o.spent&&(l.day||l.month)?(0,U.jsxs)(`div`,{className:`mb-4 flex flex-col gap-4 rounded-[14px] card border p-4`,children:[l.day?(0,U.jsx)(nf,{label:`Today`,spent:o.spent.today,limit:l.day,currency:u}):null,l.month?(0,U.jsx)(nf,{label:`This month`,spent:o.spent.month,limit:l.month,currency:u}):null]}):null,l?.premium&&o.spent&&(l.premium.day||l.premium.month)?(0,U.jsxs)(`div`,{className:`mb-4 flex flex-col gap-4 rounded-[14px] card border p-4`,children:[l.premium.day?(0,U.jsx)(nf,{label:`Premium requests today`,spent:o.spent.premiumToday||0,limit:l.premium.day,premium:!0}):null,l.premium.month?(0,U.jsx)(nf,{label:`Premium requests this month`,spent:o.spent.premiumMonth||0,limit:l.premium.month,premium:!0}):null]}):null,a]})}var af=`forgeqe-sidebar-panels`;function of(e,t){let[n,r]=(0,L.useState)(()=>{try{return JSON.parse(localStorage.getItem(af)||`{}`)[e]??t}catch{return t}});return[n,()=>{r(!n);try{let t=JSON.parse(localStorage.getItem(af)||`{}`);localStorage.setItem(af,JSON.stringify({...t,[e]:!n}))}catch{}}]}function sf({id:e,title:t,children:n,initial:r=!0}){let[i,a]=of(e,r);return(0,U.jsxs)(`section`,{"aria-labelledby":`panel-${e}`,className:`flex flex-col border-t border-line pt-1`,children:[(0,U.jsx)(`h3`,{id:`panel-${e}`,className:`m-0`,children:(0,U.jsxs)(`button`,{type:`button`,"aria-expanded":i,onClick:a,className:`flex min-h-8 w-full cursor-pointer items-center gap-1 rounded-[8px] border-0 bg-transparent px-2 text-left text-[13px] font-semibold text-ink hover:bg-surface-muted`,children:[(0,U.jsx)(`span`,{className:`flex-1`,children:t}),(0,U.jsx)(le,{size:14,"aria-hidden":`true`,className:P(`text-muted transition-transform`,!i&&`-rotate-90`)})]})}),(0,U.jsx)(qa,{open:i,className:`flex flex-col pt-1 pb-1`,children:n})]})}function cf({icon:e,label:t,value:n,to:r,title:i}){let a=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Wt,{icon:e,size:14,className:`flex-none`}),(0,U.jsx)(`span`,{className:`max-w-[120px] flex-none truncate text-[13px] text-muted`,children:t}),(0,U.jsx)(`span`,{className:`line-clamp-2 min-w-0 flex-1 text-right text-[13px] leading-snug [overflow-wrap:anywhere] text-ink`,children:n})]}),o=`flex min-h-7 items-center gap-2 rounded-[8px] px-2 py-1 no-underline`;return r?(0,U.jsx)(`a`,{href:r,"data-tip":i,className:P(o,`hover:bg-surface-muted`),children:a}):(0,U.jsx)(`div`,{"data-tip":i,className:o,children:a})}function lf({icon:e,label:t,value:n,detail:r,to:i,title:a,onClick:o,open:c,muted:l}){let u=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Wt,{icon:e,size:16,className:`mt-1 flex-none text-muted`}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,U.jsx)(`span`,{className:`text-[13px] leading-tight text-muted`,children:t}),(0,U.jsx)(`span`,{className:P(`line-clamp-2 text-[13px] leading-snug font-medium [overflow-wrap:anywhere]`,l?`text-muted`:`text-ink`),children:n}),r&&(0,U.jsx)(`span`,{className:`truncate text-[13px] leading-snug text-muted`,children:r})]}),(i||o)&&(0,U.jsx)(s,{size:14,"aria-hidden":`true`,className:P(`mt-1 flex-none text-muted opacity-0 transition-[opacity,transform] group-hover:opacity-100 group-focus-visible:opacity-100`,c&&`rotate-90 opacity-100`)})]}),d=`group flex w-full items-start gap-4 rounded-[10px] px-2 py-2 text-left no-underline`;return o?(0,U.jsx)(`button`,{type:`button`,"aria-expanded":c,"data-tip":a,onClick:o,className:P(d,`cursor-pointer border-0 bg-transparent hover:bg-surface-muted`),children:u}):i?(0,U.jsx)(`a`,{href:i,"data-tip":a,className:P(d,`hover:bg-surface-muted`),children:u}):(0,U.jsx)(`div`,{"data-tip":a,className:d,children:u})}function uf({title:e,children:t}){return(0,U.jsxs)(`div`,{className:`flex flex-col`,children:[(0,U.jsx)(`span`,{className:`px-2 pt-2 pb-1 text-[13px] font-medium tracking-wide text-muted uppercase`,children:e}),t]})}var df=e=>`Tokens used, added up over every model call: ${Ad(e)}. Each call reads the conversation so far again, so this grows past the context window.`,ff=`How much of the model's context window the conversation fills now. It drops when the conversation is compacted.`;function pf({a:e,working:t}){let n=Qn(e.agent);return(0,U.jsxs)(`div`,{className:`flex flex-col gap-1 rounded-[8px] px-2 py-1`,children:[(0,U.jsxs)(`span`,{className:`flex min-h-6 items-center gap-2`,"data-tip":df(e.usage),children:[(0,U.jsx)(Ga,{agent:e.agent,px:16,decorative:!0,working:t}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px] text-ink`,children:n.name}),(0,U.jsxs)(`span`,{className:`flex-none text-[13px] text-ink tabular-nums`,children:[$(e.usage.input+e.usage.output),` `,(0,U.jsx)(`span`,{className:`text-muted`,children:`used`})]})]}),e.context&&e.context.limit>0&&(0,U.jsxs)(`span`,{className:`flex flex-col pl-6`,"data-tip":ff,children:[(0,U.jsxs)(`span`,{className:`flex items-baseline gap-2 text-[13px] text-muted`,children:[(0,U.jsxs)(`span`,{className:`flex-1`,children:[`Context `,Math.round(Math.min(1,e.context.tokens/e.context.limit)*100),`% full`]}),(0,U.jsxs)(`span`,{className:`tabular-nums`,children:[$(e.context.tokens),` of `,$(e.context.limit)]})]}),(0,U.jsx)(mf,{value:e.context.tokens,max:e.context.limit,warnAt:e.context.compactsAt})]})]})}function mf({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,U.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,U.jsx)(`span`,{className:P(`block h-full rounded-full transition-[width] duration-200 ease-out`,i?`bg-warn`:`bg-accent`),style:{width:`${Math.max(2,r*100)}%`}})})}var hf=e=>{try{return e?new URL(e).host:``}catch{return``}},gf=e=>e.split(/[\\/]/).filter(Boolean).pop()||e;function _f({path:e,icon:t,extra:n}){let[r,i]=(0,L.useState)(``);return(0,U.jsxs)(`li`,{className:`flex flex-col`,children:[(0,U.jsxs)(`button`,{type:`button`,"data-tip":`Open ${e}`,onClick:async()=>i(await nn(e)),className:`flex min-h-8 w-full cursor-pointer items-center gap-2 rounded-[10px] border-0 bg-transparent px-4 text-left hover:bg-surface-muted`,children:[(0,U.jsx)(Wt,{icon:t,size:15,className:`flex-none text-muted`}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[13px] text-accent-fg`,children:gf(e)}),n]}),r&&(0,U.jsx)(`span`,{className:`px-4 text-[13px] text-fail`,children:r})]})}function vf(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 yf({chat:e}){let[t,n]=(0,L.useState)(null),[i,a]=(0,L.useState)(null),[o,s]=(0,L.useState)(null),[c,u]=(0,L.useState)(!1),[d,f]=(0,L.useState)([]);(0,L.useEffect)(()=>{let e=!1,t=()=>Gt.list().then(t=>!e&&f(t.tasks),()=>{});t();let n=setInterval(t,4e3);return()=>{e=!0,clearInterval(n)}},[]);let p=location.hash.replace(/^#\/?/,``),m=d.filter(e=>e.to!==p);(0,L.useEffect)(()=>{let e=!1,t=()=>St.state().then(t=>{if(!e){if(n(t),!t.ready)return a(null);Ut.get().then(t=>!e&&a(t),()=>{})}},()=>{});return t(),window.addEventListener(`hashchange`,t),()=>{e=!0,window.removeEventListener(`hashchange`,t)}},[]),(0,L.useEffect)(()=>{if(!t?.ready)return;let n=!1,r=()=>ht.tokenomics().then(e=>!n&&s(e),()=>{});r();let i=setInterval(r,e?.busy?3e4:18e4);return()=>{n=!0,clearInterval(i)}},[t?.ready,t?.project,e?.busy]);let h=t?t.project.split(/[\\/]/).filter(Boolean).pop()||t.project:``,_=i?.codeRepo||i?.repo,v=o?.days.find(e=>e.day===new Date().toISOString().slice(0,10)),y=i?.environment,b=(e,t)=>`${$(e.input+e.output)} tokens${t&&e.amount?` · ${Nd(e.amount,t)}`:``}`,x=o?.project?b(o.project.today,o.project.currency):v?b(v,o?.currency):void 0,S=o?o.project?{tokens:o.project.days30.input+o.project.days30.output,cost:o.project.currency&&o.project.days30.amount?Nd(o.project.days30.amount,o.project.currency):void 0,title:`Every model call made for this project in the last 30 days.`}:{tokens:o.totals.input+o.totals.output,cost:o.currency&&o.totals.amount?Nd(o.totals.amount,o.currency):void 0,title:`Test runs of this project in the last 30 days.`}:void 0;return(0,U.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,U.jsx)(sf,{id:`env`,title:`Environment`,initial:!1,children:(0,U.jsxs)(`div`,{className:`flex flex-col gap-1 py-1`,children:[(0,U.jsx)(lf,{icon:Ce,label:`Project`,value:t?.ready?h:`Not set up`,muted:!t?.ready,to:F(`settings`,`setup`),title:t?.project}),i&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(lf,{icon:l,label:i.codeRepo?`Tests go to`:`Repository`,value:_?_.name:`Not a git repository`,muted:!_,detail:_?.branch?`Branch ${_.branch}`:_?.commit?`Commit ${_.commit}`:void 0,title:_?`${_.root}${_.commit?` @ ${_.commit}`:``}`:void 0,to:F(`settings`,`tests`)}),(0,U.jsx)(lf,{icon:g,label:`Test environment`,value:y?.active?y.active:y?.names.length?`None active`:`None yet`,muted:!y?.active,detail:y?.active&&hf(y.startUrl)||void 0,title:y?.names.length?`${y.names.length} environment${y.names.length===1?``:`s`}: ${y.names.join(`, `)}${y.apps.length?`. Apps: ${y.apps.join(`, `)}`:``}`:void 0,to:F(`settings`,`environments`)}),(0,U.jsx)(lf,{icon:Ee,label:`Files`,value:`${i.files.filter(e=>e.exists).length} in this project`,onClick:()=>u(!c),open:c}),(0,U.jsx)(qa,{open:c,children:(0,U.jsx)(`ul`,{className:`m-0 mb-1 ml-10 flex list-none flex-col gap-1 p-0`,children:i.files.map(e=>(0,U.jsx)(`li`,{children:(0,U.jsxs)(`a`,{href:F(`settings`,`files`),"data-tip":e.path,className:P(`flex flex-col rounded-md px-2 py-1 no-underline hover:bg-surface-muted`,!e.exists&&`opacity-60`),children:[(0,U.jsx)(`span`,{className:`text-[13px] text-muted`,children:e.label}),(0,U.jsx)(`span`,{className:`truncate font-mono text-[13px] text-ink`,children:e.path})]})},e.label))})})]})]})}),t?.ready&&(0,U.jsxs)(sf,{id:`usage`,title:`Context and tokens`,children:[e&&(0,U.jsx)(uf,{title:`This chat`,children:e.agents?.length&&e.usage?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`flex min-h-7 items-center gap-2 px-2 py-1`,"data-tip":df(e.usage),children:[(0,U.jsx)(Wt,{icon:fe,size:14,className:`flex-none`}),(0,U.jsx)(`span`,{className:`flex-1 text-[13px] text-muted`,children:`Tokens used, all agents`}),(0,U.jsx)(`span`,{className:`text-[13px] font-medium text-ink tabular-nums`,children:$(e.usage.input+e.usage.output)})]}),(0,U.jsx)(`span`,{className:`px-2 pb-1 pl-8 text-[13px] text-muted tabular-nums`,children:Ad(e.usage)}),[...e.agents].sort((e,t)=>t.at-e.at).map((t,n)=>(0,U.jsx)(pf,{a:t,working:!!e.busy&&n===0},t.agent))]}):(0,U.jsx)(`p`,{className:`m-0 px-2 py-1 text-[13px] text-muted`,children:e.busy?`Counted as soon as the agent's first model call comes back.`:`No model calls in this chat yet.`})}),(0,U.jsxs)(uf,{title:`This project`,children:[S&&(0,U.jsxs)(`a`,{href:F(`settings`,`tokenomics`),"data-tip":S.title,className:`my-1 flex items-center gap-4 rounded-[10px] px-2 py-2 no-underline hover:bg-surface-muted`,children:[(0,U.jsx)(`span`,{className:`flex size-11 flex-none items-center justify-center rounded-full border-[3px] border-accent-line bg-accent-soft text-accent-fg`,children:(0,U.jsx)(ee,{size:20,strokeWidth:1.8,"aria-hidden":`true`})}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,U.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[(0,U.jsx)(`span`,{className:`text-[20px] leading-tight font-semibold tracking-[-0.01em] text-ink tabular-nums`,children:$(S.tokens)}),` tokens`]}),(0,U.jsx)(`span`,{className:`text-[13px] text-muted`,children:S.cost?`${S.cost} · last 30 days`:`Last 30 days`})]})]}),(0,U.jsx)(cf,{icon:dt,label:`Today`,value:(0,U.jsx)(`span`,{className:`tabular-nums`,children:x??`Nothing yet`}),title:o?.project?`Every model call made for this project today: chats, runs and the agents they started.`:`Test runs of this project today.`,to:F(`settings`,`tokenomics`)}),o?.spent&&o.budget?.month?(0,U.jsxs)(`div`,{className:`px-2 py-2`,children:[(0,U.jsxs)(`span`,{className:`flex items-baseline gap-2 text-[13px] text-muted`,children:[(0,U.jsx)(`span`,{className:`flex-1`,children:`This month, this computer`}),(0,U.jsxs)(`span`,{className:`text-ink tabular-nums`,children:[Nd(o.spent.month,o.spent.currency),` of `,Nd(o.budget.month,o.budget.currency||o.spent.currency)]})]}),(0,U.jsx)(mf,{value:o.spent.month,max:o.budget.month})]}):null]})]}),m.length>0&&(0,U.jsx)(sf,{id:`background`,title:`Background tasks · ${m.length}`,children:(0,U.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:m.map((e,t)=>(0,U.jsx)(`li`,{children:(0,U.jsxs)(`a`,{href:F(...e.to.split(`/`).filter(Boolean)),className:`flex items-start gap-2 rounded-[10px] px-4 py-2 no-underline hover:bg-surface-muted`,children:[(0,U.jsx)(Ue,{size:15,"aria-hidden":`true`,className:`mt-1 flex-none animate-spin text-accent-fg motion-reduce:animate-none`}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,U.jsx)(`span`,{className:`truncate text-[13px] text-ink`,children:e.label}),(0,U.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[e.detail||`Running`,vf(e.startedAt)&&` · ${vf(e.startedAt)}`]})]})]})},`${e.kind}-${t}`))})}),e?.changes&&e.changes.length>0&&(0,U.jsxs)(sf,{id:`changes`,title:`Changes · ${e.changes.length}`,children:[(0,U.jsxs)(`span`,{className:`px-4 pb-1 font-mono text-[13px] tabular-nums`,children:[xt(e.changes.length,`file`),` · `,(0,U.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.changes.reduce((e,t)=>e+t.added,0)]}),` `,(0,U.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.changes.reduce((e,t)=>e+t.removed,0)]})]}),(0,U.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.changes.map(e=>(0,U.jsx)(_f,{path:e.path,icon:ke,extra:(0,U.jsxs)(`span`,{className:`flex-none font-mono text-[13px] tabular-nums`,children:[(0,U.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.added]}),` `,(0,U.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.removed]})]})},e.path))}),e.onCreatePr&&(0,U.jsx)(`div`,{className:`px-2 pt-2 pb-1`,children:(0,U.jsxs)(I,{size:`sm`,variant:`primary`,disabled:e.busy,"data-tip":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,U.jsx)(r,{"aria-hidden":`true`}),`Pull request`]})})]}),e?.outputs&&e.outputs.length>0&&(0,U.jsx)(sf,{id:`outputs`,title:`Outputs · ${e.outputs.length}`,children:(0,U.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.outputs.map(e=>(0,U.jsx)(_f,{path:e.path,icon:e.kind===`test`?Ee:/\.html?$/i.test(e.path)?Ge:e.kind===`report`?lt:Pe,extra:(0,U.jsx)(`span`,{className:`flex-none text-[13px] text-muted`,children:e.label})},e.path))})})]})}var bf=24;function xf(e,t,n){if(!t||!n||e.length<t*n*4)return null;let r=(e,n)=>(n*t+e)*4,i=[r(0,0),r(t-1,0),r(0,n-1),r(t-1,n-1)],a=i.every(t=>e[t+3]>=250),o=a&&i.every(t=>[0,1,2].every(n=>Math.abs(e[t+n]-e[i[0]+n])<=bf));if(a&&!o)return null;let s=[0,1,2].map(t=>e[i[0]+t]),c=t=>a?[0,1,2].every(n=>Math.abs(e[t+n]-s[n])<=bf):e[t+3]<16,l=t,u=n,d=-1,f=-1;for(let e=0;e<n;e++)for(let n=0;n<t;n++)c(r(n,e))||(n<l&&(l=n),n>d&&(d=n),e<u&&(u=e),e>f&&(f=e));if(d<0)return null;let p=Math.round(Math.max(d-l+1,f-u+1)*.02),m={x:Math.max(0,l-p),y:Math.max(0,u-p),w:0,h:0};return m.w=Math.min(t,d+1+p)-m.x,m.h=Math.min(n,f+1+p)-m.y,m.w>=t*.96&&m.h>=n*.96?null:m}function Sf(e){return new Promise((t,n)=>{let r=new Image;r.onload=()=>t(r),r.onerror=()=>n(Error(`The logo could not be read.`)),r.src=e})}function Cf(e){let t=e.naturalWidth||0,n=e.naturalHeight||0;if(!t||!n)return null;let r=Math.min(1,1024/Math.max(t,n))||1,i=document.createElement(`canvas`);i.width=Math.max(1,Math.round(t*r)),i.height=Math.max(1,Math.round(n*r));let a=i.getContext(`2d`,{willReadFrequently:!0});return a?(a.drawImage(e,0,0,i.width,i.height),{canvas:i,ctx:a}):null}async function wf(e){let t=Cf(await Sf(e));if(!t)return null;let{canvas:n,ctx:r}=t,i=xf(r.getImageData(0,0,n.width,n.height).data,n.width,n.height);if(!i)return null;let a=document.createElement(`canvas`);return a.width=i.w,a.height=i.h,a.getContext(`2d`)?.drawImage(n,i.x,i.y,i.w,i.h,0,0,i.w,i.h),a}var Tf=new Map;function Ef(e){return Tf.has(e)||Tf.set(e,wf(e).then(t=>t?t.toDataURL(`image/png`):e).catch(()=>e)),Tf.get(e)}var Df=20971520,Of=[1,.75,.5,.35],kf=[[`image/png`,void 0],[`image/webp`,.92],[`image/webp`,.8]];async function Af(e,t){for(let n of Of)for(let[r,i]of kf){let a=await e(n,r,i);if(a&&a.type===r&&a.size<=t)return a}return null}function jf(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var Mf={"image/png":`.png`,"image/webp":`.webp`};async function Nf(e,t){let n=t=>new File([t],e.name.replace(/\.[^.]+$/,``)+Mf[t.type],{type:t.type});if(e.size>t){if(e.type===`image/svg+xml`)throw Error(`${e.name} is over ${t/1024} KB.`);if(e.size>20971520)throw Error(`${e.name} is over ${Df/1024/1024} MB: save a smaller copy and upload that.`);let r=await Sf(await jf(e)).catch(()=>null),i=r&&Cf(r);if(!i)throw Error(`${e.name} could not be read: save it again as PNG or JPEG and upload that.`);let{canvas:a,ctx:o}=i,s=xf(o.getImageData(0,0,a.width,a.height).data,a.width,a.height)??{x:0,y:0,w:a.width,h:a.height},c=await Af((e,t,n)=>{let r=document.createElement(`canvas`);r.width=Math.max(1,Math.round(s.w*e)),r.height=Math.max(1,Math.round(s.h*e));let i=r.getContext(`2d`);return i?(i.imageSmoothingQuality=`high`,i.drawImage(a,s.x,s.y,s.w,s.h,0,0,r.width,r.height),new Promise(e=>r.toBlob(e,t,n))):Promise.resolve(null)},t);if(!c)throw Error(`${e.name} could not be made smaller than ${t/1024} KB: save a smaller copy and upload that.`);return n(c)}try{let r=await wf(await jf(e));if(!r)return e;let i=await new Promise(e=>r.toBlob(e,`image/png`));return!i||i.size>t?e:n(i)}catch{return e}}var Pf=`/assets/forgeqe-logo-D3CwM2Jl.png`,Ff=`/assets/forgeqe-logo-white-CoE-hF2l.png`,If=`/assets/forgeqe-mark-ZLd4S3hw.png`;function Lf(e){let[t,n]=(0,L.useState)({});return(0,L.useEffect)(()=>{if(!e)return;let t=!0;return Ef(e).then(r=>t&&n({from:e,to:r})),()=>{t=!1}},[e]),e&&t.from===e?t.to:e}var Rf=e=>`#${e.map(e=>Math.round(e).toString(16).padStart(2,`0`)).join(``)}`;function zf(e){try{let t=document.createElement(`canvas`);t.width=t.height=32;let n=t.getContext(`2d`,{willReadFrequently:!0});if(!n)return null;n.drawImage(e,0,0,32,32);let r=n.getImageData(0,0,32,32).data,i=(e,t)=>[...r.subarray((t*32+e)*4,(t*32+e)*4+4)],a=[i(1,1),i(30,1),i(1,30),i(30,30)];if(a.every(e=>e[3]>=200))return{kind:`background`,colour:Rf([0,1,2].map(e=>a.reduce((t,n)=>t+n[e],0)/4))};let o=[0,0,0],s=0;for(let e=0;e<r.length;e+=4)if(r[e+3]>=200){for(let t=0;t<3;t++)o[t]+=r[e+t];s++}return s?{kind:`ink`,colour:Rf(o.map(e=>e/s))}:null}catch{return null}}var Bf=`h-auto w-auto min-h-10 max-h-[112px] max-w-full object-contain`,Vf=`h-11 w-auto max-w-[168px] object-contain object-left`;function Hf({aspect:e,alone:t,own:n,size:r,circle:i}){let a=e>1.6,o=a||t;if(n&&(!r||r===`auto`))return o?!a&&(e<=1.25||i)?{cls:i?`size-14 rounded-full object-cover`:`size-14 object-contain`,grow:!1,auto:!0}:{cls:Bf,grow:!0,auto:!0}:{cls:i?`size-10 rounded-full object-cover`:`size-10 object-contain`,grow:!1,auto:!0};let s=r===`large`;return i?{cls:`${t?s?`size-16`:`size-11`:s?`size-12`:`size-8`} rounded-full object-cover`,grow:!1,auto:!1}:o?{cls:s?Bf:Vf,grow:s,auto:!1}:{cls:s?`size-12 object-contain`:`size-8 object-contain`,grow:!1,auto:!1}}function Uf({theme:e,compact:t=!1,onPlate:n}){let{mode:r}=ea(),i=r===`dark`?Ff:Pf,a=Lf(e.logo)||i,[o,s]=(0,L.useState)(e.logo?1:2.1),[c,l]=(0,L.useState)(null),u=o>1.6,d=Hf({aspect:o,alone:!!e.logo&&!e.name,own:!!e.logo,size:t?`standard`:e.logoSize,circle:e.logoFrame===`circle`&&!u}),f=d.auto&&!e.logoFrame&&c?.kind===`background`,p=e.logo&&e.logoFrame!==`tile`&&!f?Ni(c,ci(e,r)):null,m=f&&!!Ni(c,ci(e,r));(0,L.useEffect)(()=>n?.(!!p),[p,n]);let h=e.logo?e.logoFrame===`circle`&&u?`rounded`:e.logoFrame||(d.auto&&c?.kind===`background`?`rounded`:`plain`):`plain`,g=d.cls,_=(0,U.jsx)(`img`,{src:a,alt:``,onLoad:e=>{let t=e.currentTarget;t.naturalWidth&&t.naturalHeight&&s(t.naturalWidth/t.naturalHeight),l(zf(t))},className:P(`block min-w-0`,d.grow?`flex-initial`:`flex-none`,g,h===`rounded`&&`overflow-hidden rounded-[8px]`,m&&`shadow-[0_0_0_1px_rgb(0_0_0/0.12)]`)});return(0,U.jsxs)(`span`,{className:P(`flex min-w-0 items-center gap-2`,d.grow&&`flex-1`),children:[h===`tile`||p?(0,U.jsx)(`span`,{style:p?{background:p}:void 0,className:P(`flex items-center justify-center rounded-[10px] p-2`,!p&&`bg-white shadow-[0_0_0_1px_rgb(0_0_0/0.06)]`,d.grow?`min-w-0 flex-initial`:`flex-none`),children:_}):_,!u&&e.name&&(0,U.jsx)(`span`,{className:`min-w-0 truncate`,children:e.name})]})}function Wf({theme:e}){let{mode:t}=ea(),[n,r]=(0,L.useState)(1),[i,a]=(0,L.useState)(null),o=Lf(e.logoMark||e.logo),s=!!o&&(!!e.logoMark||n<=1.6),c=s?Ni(i,ci(e,t)):null;return s?(0,U.jsx)(`span`,{style:c?{background:c}:void 0,className:P(`flex size-9 items-center justify-center rounded-[10px]`,c&&`p-1`),children:(0,U.jsx)(`img`,{src:o,alt:``,onLoad:e=>{let t=e.currentTarget;t.naturalWidth&&t.naturalHeight&&r(t.naturalWidth/t.naturalHeight),a(zf(t))},className:P(`block size-full object-contain`,e.logoFrame===`circle`?`rounded-full`:`rounded-[8px]`)})}):(0,U.jsxs)(`span`,{"aria-hidden":`true`,className:`flex size-9 items-center justify-center`,children:[(0,U.jsx)(`img`,{src:If,alt:``,className:`block size-9 object-contain`}),o&&!e.logoMark&&(0,U.jsx)(`img`,{src:o,alt:``,className:`hidden`,onLoad:e=>e.currentTarget.naturalHeight&&r(e.currentTarget.naturalWidth/e.currentTarget.naturalHeight)})]})}var Gf=`/assets/capgemini-mark-D6aZFnD3.png`,Kf=`m 153.2175,21.2782 c 3.4962,0 6.1962,-2.8462 6.2312,-6.225 -0.245,-1.475 -0.7625,-4.2037 -4.585,-4.2037 -4.19,0 -5.5762,5.8487 -8.985,9.6237 -0.2737,2.1438 -2.305,4.0625 -4.8387,4.385 0.62,0.6488 2.0025,1.0013 3.6525,1.0013 3.0175,0 6.67,-0.9088 8.5837,-2.7988 -2.5537,0.035 -4.1937,-1.6062 -4.355,-3.8762 1.245,1.5087 2.6513,2.0937 4.2963,2.0937`,qf=`m 126.3725,11.972 c 0,-1.86 -0.1125,-3.1 -1.3288,-3.1 -0.5562,0 -0.825,0.1125 -1.3087,0.2725 0.43,6.28 -0.9913,11.8125 -2.7238,11.8125 -2.2712,0 -1.1387,-13.4625 -5.9475,-13.4625 -4.4387,0 -5.0787,10.7475 -5.5812,10.7475 -0.3425,0 -0.395,-2.8225 -0.3763,-4.9763 0.1863,-1.03 0.2888,-1.9575 0.2888,-2.6612 0,-1 -0.41,-2.7288 -2.6813,-1.865 0.079,7.6862 -1.46,12.3287 -3.1937,12.3287 -2.5388,0 -2.5675,-6.9675 -2.5675,-8.8862 0,-1.875 0.1362,-4.38 -2.6513,-3.4913 -0.415,6.7038 -2.1737,11.7625 -3.2812,11.7625 -1.6513,0 -1.3188,-11.5812 -4.8888,-11.5812 -3.2125,0 -4.2037,10.9712 -4.8725,10.9712 -1.1962,0 0.3763,-12.3487 -4.2625,-12.3487 -2.4312,0 -3.3987,4.1212 -4.3512,8.735 -0.185,0.8937 -0.375,0.9237 -0.41,-0.087 -0.024,-0.8588 -0.029,-1.7238 -0.019,-2.5825 1.1663,-4.6388 -0.2587,-6.3525 -2.4075,-5.1175 0.6938,8.56 -3.2375,12.7437 -6.25,12.7437 -1.0887,0 -1.9487,-0.4637 -2.5875,-1.1962 3.6125,-2.2163 5.2188,-4.76 5.2188,-7.2463 0,-2.69 -1.5475,-4.2425 -4.1163,-4.2425 -3.5837,0 -5.59,3.6913 -5.59,6.8313 0,1.6887 0.3175,3.125 0.835,4.3062 -1.2312,0.5863 -2.3925,1.0938 -3.4725,1.5863 -0.098,-3.2275 -0.4587,-6.615 -0.7362,-9.745 -1.91,-0.5275 -2.4663,0.39 -2.6125,2.0887 -0.3425,3.8775 -1.7775,6.285 -3.0475,6.285 -0.9525,0 -1.5375,-1.1625 -1.6063,-2.3975 -0.3562,-6.2162 4.6875,-7.945 7.3288,-7.0412 0.5475,-1.3725 -0.054,-2.3588 -2.4363,-2.3588 -2.8862,0 -5.0437,1.7538 -6.6262,4.0038 -1.0538,1.5 -2.275,2.5637 -3.8963,3.8487 0.044,-0.3662 0.064,-0.7375 0.064,-1.1037 0,-4.38 -2.3738,-6.3038 -4.6388,-6.3038 -1.875,0 -3.0562,1.1225 -3.74,2.8513 -0.1662,-1.7338 -0.5125,-2.48 -1.5187,-2.48 -0.43,0 -1.03,0.1212 -1.67,0.4337 0.2925,0.9675 0.405,3.1113 0.405,4.5175 0,5.2675 -1.5088,7.6313 -2.9588,7.6313 -1.66,0 -1.9237,-6.25 -2.065,-8.6813 -0.2587,-0.098 -0.5325,-0.1512 -0.8112,-0.1512 -1.5038,0 -1.6988,2.0162 -2.07,3.8712 -0.41,2.0563 -1.5913,4.6388 -3.345,4.6388 -1.0588,0 -1.7238,-1.02 -1.8063,-2.8563 -0.1712,-3.725 2.93,-8.14 7.7788,-6.7675 0.6337,-1.4837 -0.3625,-2.6125 -2.3738,-2.6125 -3.545,0 -6.475,2.6513 -7.7537,5.7913 -1.2988,2.8812 -3.57,7.11 -8.1888,7.11 C 6.26,21.7975 3.76,18.95 3.76,12.9787 c 0,-5.1462 3.2462,-10.035 6.7087,-10.035 2.4213,0 2.9838,2.3838 2.7688,4.62 1.255,1.005 3.31,0.067 3.31,-2.4462 0,-1.7338 -1.4063,-4.6738 -5.9513,-4.6738 C 4.9712,0.4437 0,6.055 0,13.4225 0,20.5612 3.6225,24.78 8.75,24.78 c 3.2375,0 6.2887,-1.845 8.3937,-5.2538 0.5325,2.9838 2.5638,4.2388 4.0863,4.2388 2.4662,0 4.0775,-1.5975 4.9562,-3.755 0.5475,2.1625 1.7038,3.765 3.6288,3.765 1.3525,0 2.4112,-0.6888 3.2075,-1.7875 -0.3175,7.5187 -0.7125,12.3137 3.73,11.3725 -0.6875,-2.1388 -0.9075,-6.0313 -0.9075,-9.5275 0,-9.565 1.5775,-12.7138 3.555,-12.7138 1.435,0 1.8987,1.825 1.8987,3.7738 0,1.045 -0.1025,2.2462 -0.3662,3.325 -2.4313,1.5337 -4.37,2.745 -4.37,4.2825 0,1.2162 0.9037,1.3275 1.685,1.3275 1.865,0 4.1112,-1.83 5.3512,-5.2825 1.0838,-0.6588 2.1725,-1.4113 3.2125,-2.4363 -0.034,0.3513 -0.054,0.7025 -0.054,1.0638 0,3.4275 1.4987,5.5037 3.8962,5.5037 1.88,0 3.2863,-1.3337 4.2825,-3.33 0.064,1.1513 0.1025,2.2113 0.1175,3.1825 -3.8087,1.7638 -8.0225,3.55 -8.0225,8.5213 0,2.5725 1.855,4.5062 4.2725,4.5062 5.3075,0 6.5188,-5.6 6.5675,-12.1087 1.7288,-0.7475 3.0125,-1.3238 4.4975,-2.0613 1.2688,1.5925 2.9975,2.3888 4.58,2.3888 2.9925,0 5.2438,-1.5875 7.05,-4.805 0.3175,2.4462 0.9525,4.805 2.2563,4.805 2.3725,0 2.8562,-12.4125 4.6187,-12.4125 1.3525,0 0.245,13.4275 3.8138,13.4275 3.0562,0 3.6275,-11.8163 5.1175,-11.8163 1.055,0 1.1325,10.8013 4.4625,10.8013 1.6362,0 3.4137,-1.9688 4.3012,-6.09 0.42,2.745 1.8025,6.09 4.5075,6.09 1.5775,0 2.935,-1.5975 3.9838,-3.7163 0.2887,2.1825 0.9037,3.7163 2.1,3.7163 3.11,0 3.0075,-12.3838 5.4687,-12.3838 1.9188,0 1.3288,12.3838 5.8988,12.3838 2.1725,0 3.2025,-1.8513 3.8187,-4.18 0.8388,3.4225 2.2013,4.18 3.315,4.18 0.7075,0 1.245,-0.25 1.9488,-1.085 -3.5363,-1.5325 -3.2375,-7.1138 -3.2375,-10.7175 m -74.8438,21.27 c -1.0987,0 -1.68,-1.045 -1.68,-2.2225 0,-3.1788 2.3338,-4.8625 5.205,-6.3125 -0.1275,6.9425 -1.7437,8.535 -3.525,8.535 m 14.2775,-22.51 c 1.0688,0 1.6788,0.9812 1.5713,2.3925 -0.1213,1.655 -1.3275,3.555 -3.4275,5.0437 -1.0938,-3.115 -0.2775,-7.4362 1.8562,-7.4362 M 99.6722,6.035 c 1.0162,-0.034 1.7287,-0.9075 1.7337,-1.9475 0.01,-1.04 -0.6987,-1.8613 -1.7187,-1.8225 -1.02,0.035 -1.85,0.9087 -1.855,1.9487 -0.01,1.04 0.82,1.855 1.84,1.8213 m 25.3325,0.5275 c 0.9275,-0.034 1.685,-0.8638 1.685,-1.855 0,-0.9913 -0.7425,-1.7675 -1.67,-1.7388 -0.9288,0.034 -1.685,0.8688 -1.69,1.86 -0.01,0.9913 0.7475,1.7675 1.675,1.7338 m 34.4387,8.2425 c -0.079,-3.9263 -1.9437,-7.2363 -4.825,-9.8788 -2.1875,-1.9962 -4.785,-3.515 -7.5087,-4.6575 -0.215,-0.092 -0.44,-0.1812 -0.66,-0.2687 -3.3538,4.0187 -14.965,7.0162 -14.965,15.44 0,3.29 2.08,6.3712 5.1312,7.6075 1.7725,0.6687 3.54,0.7025 5.3125,0.1062 1.5775,-0.5175 2.8713,-1.4937 3.95,-2.68 3.4088,-3.775 4.795,-9.6187 8.98,-9.6187 3.8275,0 4.345,2.7237 4.59,4.1987 0,-0.01 0,-0.1075 -0.01,-0.2487`;function Jf({rail:e=!1}){let{mode:t}=ea();return e?(0,U.jsx)(`img`,{src:Gf,alt:`Capgemini`,"data-tip":`Capgemini`,"data-tip-side":`left`,className:`mb-1 size-8 flex-none object-contain`}):(0,U.jsxs)(`svg`,{viewBox:`-1.06668594 -1.06668594 161.58207188 37.68956988`,role:`img`,"aria-label":`Capgemini`,className:`ml-2 h-8 w-auto max-w-[180px] flex-none overflow-visible`,shapeRendering:`geometricPrecision`,children:[(0,U.jsx)(`path`,{fill:t===`dark`?`#fff`:`#12ABDB`,fillRule:`evenodd`,d:Kf}),(0,U.jsx)(`path`,{fill:t===`dark`?`#fff`:`#0070AD`,fillRule:`evenodd`,d:qf})]})}function Yf({item:e}){return e.agent?(0,U.jsx)(Ga,{agent:e.agent,px:18,decorative:!0}):(0,U.jsx)(rn,{name:Ur[e.id]||Wr[e.id]||`feature`,px:18})}var Xf={id:`settings`,label:`Settings`};function Zf(){let e=(e,t,n,r,i)=>({id:e,label:t,meta:n,href:r,words:i,kind:`page`});return[...co.filter(e=>e.item.path[0]!==`settings`).map(t=>e(t.item.id,t.item.label,`${t.category.label} · ${t.area.label}`,lo(t.item),[t.item.words,t.item.about].filter(Boolean).join(` `))),...so.flatMap(t=>[e(`browse-${t.id}`,t.label,`Category`,uo(t),t.about),...t.areas.map(n=>e(`browse-${t.id}-${n.id}`,n.label,t.label,fo(t,n),n.about))]),e(`browse`,`ForgeQE`,`Every category`,F(`browse`),`Everything browse all categories home`),e(Xf.id,Xf.label,`Every setting`,F(Xf.id))]}var Qf=Zf(),$f=(0,L.lazy)(()=>yr(()=>import(`./CommandPalette-BkNNac9P.js`),__vite__mapDeps([6,2,1,0,3,4,5]))),ep=()=>typeof navigator<`u`&&/Mac|iPhone|iPad/.test(navigator.platform||navigator.userAgent),tp=()=>ep()?`⌘K`:`Ctrl K`;function np({rail:e=!1}){let{find:t}=(0,L.useContext)(op);return e?(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Search (${tp()})`,"data-tip":`Search (${tp()})`,"data-tip-side":`right`,onClick:t,className:`size-9`,children:(0,U.jsx)(y,{strokeWidth:1.8,"aria-hidden":`true`})}):(0,U.jsxs)(I,{size:`sm`,onClick:t,"aria-keyshortcuts":ep()?`Meta+K`:`Control+K`,className:`w-full justify-start px-2`,children:[(0,U.jsx)(y,{strokeWidth:1.8,"aria-hidden":`true`}),(0,U.jsx)(`span`,{className:`flex-1 text-left`,children:`Search`}),(0,U.jsx)(`span`,{className:`text-[13px] text-muted`,children:tp()})]})}function rp(){let e=Eu();if(!e)return null;let{phase:t,on:n}=e.talk,r=t===`error`||t===`setup`||t===`installing`;if(!n&&t!==`error`)return null;let i=n&&e.asking?(0,U.jsx)(Qa,{question:e.asking,onAnswer:t=>void e.answerAsk(t),raised:!e.attached||r}):null;return e.attached&&!r?i:(0,U.jsxs)(U.Fragment,{children:[i,(0,U.jsx)(Za,{talk:e.talk,agent:e.voiceAgent})]})}var ip=`flex h-8 short:h-7 items-center gap-2 rounded-[8px] px-2 text-[13px] no-underline`,ap=e=>e?`bg-(--side-current-bg) font-medium text-(--side-current-ink) ring-1 ring-line ring-inset hover:text-(--side-current-ink)`:`text-ink-2 hover:bg-surface-strong hover:text-ink`,op=(0,L.createContext)({hidden:!1,open:()=>{},setChat:()=>{},find:()=>{}});function sp(e){let{setChat:t}=(0,L.useContext)(op),n=JSON.stringify(e);(0,L.useEffect)(()=>(t(e),()=>t(null)),[n,t])}var cp=`forgeqe-sidebar`,lp=()=>{try{return localStorage.getItem(cp)===`closed`}catch{return!1}};function up({className:e}){let{open:t}=(0,L.useContext)(op);return(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Open the sidebar`,"data-tip":`Open the sidebar`,onClick:t,className:P(`inline-flex md:hidden`,e),children:(0,U.jsx)(oe,{strokeWidth:1.8,"aria-hidden":`true`})})}function dp(){return(0,U.jsxs)(`div`,{className:`theme-side sticky top-0 z-20 flex items-center gap-1 border-b border-line-soft px-4 py-2 md:hidden`,children:[(0,U.jsx)(up,{}),(0,U.jsx)(`span`,{className:`ml-1 flex min-w-0 flex-1`,children:(0,U.jsx)(kp,{compact:!0})})]})}function fp({item:e,current:t}){let n=t===e.id;return(0,U.jsxs)(`a`,{href:F(e.id),"aria-current":n?`page`:void 0,className:P(ip,ap(n)),children:[(0,U.jsx)(Yf,{item:e}),(0,U.jsx)(`span`,{className:`min-w-0 truncate`,children:e.label})]})}function pp({current:e,rail:t=!1}){let n=!e;return t?(0,U.jsx)(`a`,{href:F(),"aria-label":`New chat`,"data-tip":`New chat`,"data-tip-side":`right`,"aria-current":n?`page`:void 0,className:P(xp,`mt-2`,n?`bg-(--side-current-bg) text-(--side-current-ink) hover:text-(--side-current-ink)`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,U.jsx)(Ze,{strokeWidth:1.8,"aria-hidden":`true`,className:`size-[18px]`})}):(0,U.jsxs)(`a`,{href:F(),"aria-current":n?`page`:void 0,className:P(ip,ap(n)),children:[(0,U.jsx)(Ze,{strokeWidth:1.8,"aria-hidden":`true`,className:`size-[18px]`}),`New chat`]})}function mp({to:e,icon:t,label:n,on:r,count:i,more:a}){return(0,U.jsxs)(`a`,{href:e,"aria-current":r?`page`:void 0,className:P(ip,ap(r)),children:[t?(0,U.jsx)(rn,{name:t,px:18}):(0,U.jsx)(`span`,{"aria-hidden":`true`,className:`size-[18px] flex-none`}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:n}),i!==void 0&&(0,U.jsx)(`span`,{className:`text-[13px] text-muted tabular-nums`,children:i}),a&&(0,U.jsx)(s,{size:14,strokeWidth:2,"aria-hidden":`true`,className:`flex-none text-muted`})]})}function hp({item:e,on:t,unpin:n}){return(0,U.jsxs)(`div`,{className:`group relative`,children:[(0,U.jsxs)(`a`,{href:lo(e),"aria-current":t?`page`:void 0,className:P(ip,ap(t),`pr-10`),children:[(0,U.jsx)(rn,{name:e.icon,px:18}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label})]}),(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Unpin ${e.label}`,"data-tip":`Unpin ${e.label}`,"data-tip-side":`right`,onClick:n,className:`absolute top-1/2 right-1 size-6 -translate-y-1/2 text-muted opacity-0 group-hover:opacity-100 hover:text-ink focus-visible:opacity-100`,children:(0,U.jsx)(xe,{size:13,strokeWidth:1.8,fill:`currentColor`,"aria-hidden":`true`})})]})}function gp({chats:e,open:t}){return e?.length?(0,U.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-chats`,className:`mt-4 flex flex-col gap-px border-t border-line-soft pt-4 short:mt-4 short:pt-2`,children:[(0,U.jsx)(`a`,{id:`nav-chats`,href:F(`chats`),className:`flex h-7 short:h-6 items-center rounded-[6px] px-2 text-[13px] font-medium text-muted no-underline hover:text-ink`,children:`Recent chats`}),e.map(e=>{let n=e.id===t,r=zu(e);return(0,U.jsxs)(`a`,{href:F(`chats`,e.id),"aria-current":n?`page`:void 0,"data-tip":e.title,"data-tip-side":`right`,className:P(ip,ap(n)),children:[(0,U.jsx)(rn,{name:`chat`,px:18}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.title||`Untitled chat`}),r&&(0,U.jsx)(`span`,{className:`size-2 flex-none rounded-full bg-warn`,role:`img`,"aria-label":`Needs you`})]},e.id)}),(0,U.jsxs)(`a`,{href:F(`chats`),className:P(ip,ap(!1)),children:[(0,U.jsx)(rn,{name:`history`,px:18}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:`All chats`}),(0,U.jsx)(s,{size:14,strokeWidth:2,"aria-hidden":`true`,className:`flex-none text-muted`})]})]}):null}function _p(e){let t=go(e);if(t.category)return{category:t.category.id,area:t.area?.id};let n=ho(e);return n&&n.item.path.length?{category:n.category.id,area:n.area.id}:{}}function vp({current:e,route:t,onClose:n,stats:r}){let i=t.join(`/`),[a,o]=(0,L.useState)(()=>_p(t));(0,L.useEffect)(()=>o(_p(t)),[i]);let{pins:s,toggle:c}=xo(),l=Oo(),d=ho(t)?.item.id,f=so.find(e=>e.id===a.category),p=f?.areas.find(e=>e.id===a.area),m=go(t),h=(e,t)=>(0,U.jsxs)(`a`,{href:t,className:P(ip,`text-ink-2 no-underline hover:bg-surface-strong hover:text-ink`),children:[(0,U.jsx)(u,{size:16,strokeWidth:2,"aria-hidden":`true`,className:`w-[18px] flex-none`}),(0,U.jsx)(`span`,{className:`min-w-0 truncate`,children:e})]}),g=(e,t,n)=>(0,U.jsx)(`a`,{href:t,"aria-current":n?`page`:void 0,className:P(ip,`mt-1 font-semibold text-ink hover:bg-surface-strong hover:text-ink`,n&&`bg-(--side-current-bg) text-(--side-current-ink) ring-1 ring-line ring-inset hover:text-(--side-current-ink)`),children:(0,U.jsx)(`span`,{className:`min-w-0 truncate`,children:e})}),_=Bu(i),v=s.map(e=>co.find(t=>t.item.id===e)).filter(e=>!!e);return(0,U.jsxs)(`nav`,{"aria-label":`ForgeQE`,className:`theme-side flex h-full w-[248px] min-[1440px]:w-[264px] flex-col border-r border-line-soft px-4 py-4 short:py-2`,children:[(0,U.jsxs)(`div`,{className:`flex min-h-10 items-center gap-1 pl-2`,children:[(0,U.jsx)(kp,{}),(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Close the sidebar`,"data-tip":`Close the sidebar`,onClick:n,className:`size-8 flex-none`,children:(0,U.jsx)(ut,{strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,U.jsx)(`div`,{className:`mt-4 flex flex-col gap-px short:mt-2`,children:(0,U.jsx)(np,{})}),(0,U.jsx)(`div`,{className:`mt-2 flex flex-col gap-px`,children:(0,U.jsx)(pp,{current:e})}),(0,U.jsxs)(`div`,{className:`side-level -mx-4 mt-2 flex min-h-0 flex-1 flex-col gap-px overflow-y-auto px-4 pb-6 [mask-image:linear-gradient(to_bottom,black_calc(100%-28px),transparent)]`,children:[!f&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-browse`,className:`mt-4 flex flex-col gap-2 short:mt-2 short:gap-1`,children:[(0,U.jsx)(`a`,{id:`nav-browse`,href:F(`browse`),"aria-current":t[0]===`browse`&&!m.category?`page`:void 0,className:`flex h-7 short:h-6 items-center rounded-[6px] px-2 text-[13px] font-medium text-muted no-underline hover:text-ink`,children:`Browse`}),so.map(e=>(0,U.jsx)(mp,{to:uo(e),icon:e.icon,label:e.label,on:!1,more:!0},e.id))]}),v.length>0&&(0,U.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-pinned`,className:`mt-4 flex flex-col gap-px short:mt-2`,children:[(0,U.jsx)(`span`,{id:`nav-pinned`,className:`flex h-7 short:h-6 items-center px-2 text-[13px] font-medium text-muted`,children:`Pinned`}),v.map(e=>(0,U.jsx)(hp,{item:e.item,on:d===e.item.id,unpin:()=>c(e.item.id)},e.item.id))]})]}),f&&!p&&(0,U.jsxs)(U.Fragment,{children:[h(`ForgeQE`,F(`browse`)),g(f.label,uo(f),m.category?.id===f.id&&!m.area),f.areas.map(e=>(0,U.jsx)(mp,{to:fo(f,e),label:e.label,count:e.items.length,on:!1,more:!0},e.id)),(()=>{let e=ko(f,s,l),t=(e,t,n,r=!1)=>n.length>0&&(0,U.jsxs)(`div`,{role:`group`,"aria-labelledby":e,className:`mt-4 flex flex-col gap-px short:mt-2`,children:[(0,U.jsx)(`span`,{id:e,className:`flex h-7 short:h-6 items-center px-2 text-[13px] font-medium text-muted`,children:t}),n.map(e=>r?(0,U.jsx)(hp,{item:e,on:d===e.id,unpin:()=>c(e.id)},e.id):(0,U.jsx)(mp,{to:lo(e),icon:e.icon,label:e.label,on:d===e.id},e.id))]});return(0,U.jsxs)(U.Fragment,{children:[t(`nav-cat-pinned`,`Pinned`,e.pinned,!0),t(`nav-cat-recent`,`Recently used`,e.recent)]})})()]}),f&&p&&(0,U.jsxs)(U.Fragment,{children:[h(f.label,uo(f)),g(p.label,fo(f,p),m.area?.id===p.id),p.items.map(e=>(0,U.jsx)(mp,{to:lo(e),icon:e.icon,label:e.label,on:d===e.id&&!(e.id===`chats`&&t[1])},e.id)),f.id===`agents`&&p.id===`chat`&&t[0]===`chats`&&t[1]&&(0,U.jsx)(bp,{uses:r?.uses})]}),(0,U.jsx)(gp,{chats:_,open:t[0]===`chats`?t[1]:void 0})]},`${a.category||``}/${a.area||``}`),(0,U.jsxs)(`div`,{className:`flex flex-none items-center gap-1 border-t border-line-soft pt-2 short:pt-1`,children:[(0,U.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,U.jsx)(fp,{item:Xf,current:e})}),(0,U.jsx)(wp,{}),(0,U.jsx)(Ep,{icon:!0})]})]})}var yp=[{id:`knowledge`,label:`Knowledge`,icon:`knowledge-base`,to:F(`knowledge`)},{id:`sections`,label:`Document sections`,icon:`wikis`,to:F(`knowledge`)},{id:`skills`,label:`Skills`,icon:`feature`,to:F(`skills`)},{id:`systems`,label:`Systems`,icon:`columns`}];function bp({uses:e}){let t=yp.map(t=>({...t,names:e?.[t.id]||[]}));return(0,U.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-in-chat`,className:`mt-4 flex flex-col gap-px short:mt-2`,children:[(0,U.jsx)(`span`,{id:`nav-in-chat`,className:`flex h-7 short:h-6 items-center px-2 text-[13px] font-medium text-muted`,children:`In this chat`}),t.every(e=>!e.names.length)?(0,U.jsx)(`span`,{className:`px-2 text-[13px] text-muted`,children:`No knowledge, documents, skills or systems used yet.`}):t.filter(e=>e.names.length).map(t=>{let n=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(rn,{name:t.icon,px:18}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:t.label}),(0,U.jsx)(`span`,{className:`text-[13px] text-muted tabular-nums`,children:t.names.length})]});return(0,U.jsxs)(`div`,{className:`flex flex-col`,children:[t.to?(0,U.jsx)(`a`,{href:t.to,className:P(ip,ap(!1)),children:n}):(0,U.jsx)(`span`,{className:P(ip,`text-ink-2`),children:n}),(0,U.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0 pl-8`,children:[t.names.map(e=>(0,U.jsx)(`li`,{"data-tip":e,className:`truncate px-2 py-1 text-[13px] text-muted`,children:e},e)),t.id===`sections`&&e?.text&&e.text.whole>e.text.sent&&(0,U.jsxs)(`li`,{"data-tip":`${e.text.sent.toLocaleString()} of ${e.text.whole.toLocaleString()} characters`,className:`truncate px-2 py-1 text-[13px] text-muted`,children:[Math.round((1-e.text.sent/e.text.whole)*100),`% less text than the whole documents`]})]})]},t.id)})]})}var xp=`flex size-9 flex-none items-center justify-center rounded-[8px] no-underline`;function Sp({item:e,current:t}){let n=t===e.id;return(0,U.jsx)(`a`,{href:F(e.id),"aria-current":n?`page`:void 0,"aria-label":e.label,"data-tip":e.label,"data-tip-side":`right`,className:P(xp,n?`bg-(--side-current-bg) text-(--side-current-ink) hover:text-(--side-current-ink)`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,U.jsx)(Yf,{item:e})})}function Cp({current:e,route:t,onOpen:n}){let{theme:r}=ea(),{pins:i}=xo(),a=r.name||`ForgeQE`,o=ho(t),s=go(t).category?.id||(o?.item.path.length?o.category.id:``),c=(e,t,n,r)=>(0,U.jsx)(`a`,{href:e,"aria-current":r?`page`:void 0,"aria-label":t,"data-tip":t,"data-tip-side":`right`,className:P(xp,r?`bg-(--side-current-bg) text-(--side-current-ink) hover:text-(--side-current-ink)`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,U.jsx)(rn,{name:n,px:18})},e),l=i.map(e=>co.find(t=>t.item.id===e)).filter(e=>!!e);return(0,U.jsxs)(`nav`,{"aria-label":`ForgeQE`,className:`theme-side flex h-full w-16 flex-col items-center gap-px border-r border-line-soft py-4`,children:[(0,U.jsx)(`a`,{href:F(),"aria-label":`${a}, home`,"data-tip":a,"data-tip-side":`right`,className:`mb-1 flex min-h-10 items-center justify-center no-underline`,children:(0,U.jsx)(Wf,{theme:r})}),(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Open the sidebar`,"data-tip":`Open the sidebar`,"data-tip-side":`right`,onClick:n,className:`size-9`,children:(0,U.jsx)(oe,{strokeWidth:1.8,"aria-hidden":`true`})}),(0,U.jsx)(np,{rail:!0}),(0,U.jsx)(pp,{current:e,rail:!0}),(0,U.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col items-center gap-px overflow-y-auto`,children:[(0,U.jsxs)(`div`,{role:`group`,"aria-label":`Browse`,className:`flex flex-col items-center gap-px`,children:[(0,U.jsx)(`span`,{"aria-hidden":`true`,className:`my-2 h-px w-6 bg-line`}),so.map(e=>c(uo(e),e.label,e.icon,s===e.id))]}),l.length>0&&(0,U.jsxs)(`div`,{role:`group`,"aria-label":`Pinned`,className:`flex flex-col items-center gap-px`,children:[(0,U.jsx)(`span`,{"aria-hidden":`true`,className:`my-2 h-px w-6 bg-line`}),l.map(e=>c(lo(e.item),e.item.label,e.item.icon,o?.item.id===e.item.id))]})]}),(0,U.jsxs)(`div`,{className:`flex flex-none flex-col items-center gap-px border-t border-line-soft pt-2`,children:[(0,U.jsx)(wp,{rail:!0}),(0,U.jsx)(Ep,{icon:!0,rail:!0}),(0,U.jsx)(Sp,{item:Xf,current:e})]})]})}function wp({rail:e=!1}){return(0,U.jsx)(`a`,{href:`/help/guide`,target:`_blank`,rel:`noreferrer noopener`,"aria-label":`Help`,"data-tip":`Help`,"data-tip-side":e?`right`:void 0,className:P(xp,`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,U.jsx)(rn,{name:Ur.help,px:18})})}var Tp=[{id:`system`,label:`System`},{id:`light`,label:`Light`},{id:`dark`,label:`Dark`}];function Ep({icon:e=!1,rail:t=!1}){let{choice:n,setChoice:r}=ea(),i=Tp.findIndex(e=>e.id===n),a=Tp[i],o=Tp[(i+1)%Tp.length],s=`Dark/Light: now ${a.label===`System`?`as the computer is`:a.label.toLowerCase()}. Switch to ${o.label===`System`?`as the computer is`:o.label.toLowerCase()}`;return(0,U.jsxs)(`button`,{type:`button`,"aria-label":s,"data-tip":s,"data-tip-side":t?`right`:void 0,onClick:()=>r(o.id),className:P(e?xp:ip,`w-full cursor-pointer border-0 bg-transparent text-left text-ink-2 hover:bg-surface-strong hover:text-ink`,e&&`w-auto`),children:[(0,U.jsx)(rn,{name:Ur.theme,px:18}),!e&&(0,U.jsxs)(`span`,{className:`flex flex-1 items-baseline justify-between gap-2`,children:[`Dark/Light`,(0,U.jsx)(`span`,{className:`text-[13px] text-muted`,children:a.label===`System`?`Auto`:a.label})]})]})}function Dp(e){return[{id:`env`,label:`Environment`},{id:`usage`,label:`Context and tokens`},...e?.changes?.length?[{id:`changes`,label:`Changes · ${e.changes.length}`}]:[],...e?.outputs?.length?[{id:`outputs`,label:`Outputs · ${e.outputs.length}`}]:[]]}function Op({stats:e,onOpen:t}){return(0,U.jsxs)(`aside`,{"aria-label":`Workspace`,className:`flex h-full w-14 flex-col items-center gap-1 border-l border-line-soft bg-surface-muted py-4`,children:[(0,U.jsx)(Jf,{rail:!0}),(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Show the workspace panel`,"data-tip":`Show the workspace panel`,"data-tip-side":`left`,onClick:()=>t(),children:(0,U.jsx)(st,{strokeWidth:1.8,"aria-hidden":`true`})}),(0,U.jsx)(`span`,{"aria-hidden":`true`,className:`my-1 h-px w-6 bg-line`}),Dp(e).map(e=>(0,U.jsx)(`button`,{type:`button`,"aria-label":e.label,"data-tip":e.label,"data-tip-side":`left`,onClick:()=>t(e.id),className:P(xp,`cursor-pointer border-0 bg-transparent text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,U.jsx)(Yf,{item:e})},e.id))]})}function kp({compact:e=!1}){let{theme:t}=ea(),n=t.name||`ForgeQE`;return(0,U.jsx)(`a`,{href:F(),"aria-label":`${n}, home`,className:`-ml-2 flex min-h-9 min-w-0 flex-1 items-center gap-2 rounded-[8px] pl-2 text-base font-semibold text-ink no-underline hover:bg-surface-strong hover:text-ink`,children:(0,U.jsx)(Uf,{theme:t,compact:e})})}function Ap(){let[e,t]=(0,L.useState)(!1);return(0,L.useEffect)(()=>{let e=()=>t(!0);return window.addEventListener(It,e),()=>window.removeEventListener(It,e)},[]),e?(0,U.jsx)(`p`,{role:`alert`,className:`mx-4 mt-4 mb-0 rounded-[12px] bg-fail-soft px-4 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:Ft()}):null}function jp({stats:e,onClose:t,focus:n}){let r=(0,L.useRef)(null);return(0,L.useEffect)(()=>{n&&(r.current?.querySelector(`#panel-${n.id}`))?.scrollIntoView({block:`start`,behavior:window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches?`auto`:`smooth`})},[n]),(0,U.jsxs)(`aside`,{"aria-label":`Workspace`,className:`flex h-full w-[264px] flex-col border-l border-line-soft bg-surface-muted`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2 px-4 pt-4`,children:[(0,U.jsx)(Jf,{}),(0,U.jsx)(`span`,{className:`flex-1`}),(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Close the workspace panel`,"data-tip":`Close the workspace panel`,"data-tip-side":`left`,onClick:t,children:(0,U.jsx)(a,{strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,U.jsx)(`div`,{ref:r,className:`min-h-0 flex-1 overflow-y-auto px-4 pt-1 pb-4`,children:(0,U.jsx)(yf,{chat:e})})]})}var Mp=`forgeqe-workspace-panel`,Np=()=>{try{return localStorage.getItem(Mp)!==`closed`}catch{return!0}},Pp=220;function Fp({open:e,side:t,onClose:n,className:r,children:i}){if(!na(e,150))return null;let a=t===`left`?`aside`:`div`;return(0,U.jsxs)(`div`,{inert:!e||void 0,className:P(`drawer fixed inset-0 z-40`,!e&&`is-closing`,r),children:[(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`drawer-dim absolute inset-0 bg-[rgba(17,25,40,0.28)]`,onClick:n}),(0,U.jsx)(a,{className:P(`drawer-box absolute inset-y-0 max-w-[85vw] shadow-menu`,t===`left`?`drawer-left left-0`:`right-0`),children:i})]})}function Ip({current:e,route:t=e?[e]:[],children:n}){let[r,i]=(0,L.useState)(lp),[a,o]=(0,L.useState)(null),[s,c]=(0,L.useState)(!1),[l,u]=(0,L.useState)(Np),[d,f]=(0,L.useState)(!1),[p,m]=(0,L.useState)(!1),[h,g]=(0,L.useState)(!1),[_,v]=(0,L.useState)(``),y=t.join(`/`);(0,L.useEffect)(()=>Do(t),[y]);let b=()=>{c(!1),v(``),g(!0),m(!0)},x=(0,L.useCallback)(e=>{c(!1),v(e),g(!0),m(!0)},[]);(0,L.useEffect)(()=>{let e=e=>{(e.ctrlKey||e.metaKey)&&!e.altKey&&!e.shiftKey&&e.key.toLowerCase()===`k`&&(e.preventDefault(),v(``),g(!0),m(e=>!e))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let ee=na(!r,Pp),S=na(l,Pp),[C,w]=(0,L.useState)(null),T=()=>window.matchMedia(`(min-width: 1600px)`).matches,E=e=>{u(e);try{localStorage.setItem(Mp,e?`open`:`closed`)}catch{}};(0,L.useEffect)(()=>{if(!d)return;let e=()=>f(!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 D=e=>{i(e);try{localStorage.setItem(cp,e?`closed`:`open`)}catch{}};(0,L.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 O=()=>window.matchMedia(`(min-width: 768px)`).matches,k=e===`settings`||e===`welcome`,te=e=>{T()?E(!0):f(!0),w(e?{id:e,at:Date.now()}:null)};return(0,U.jsx)(op.Provider,{value:{hidden:r,open:()=>O()?D(!1):c(!0),setChat:o,find:b},children:(0,U.jsx)(Tu,{pages:Qf,find:x,children:(0,U.jsxs)(`div`,{className:`flex min-h-(--screen) bg-bg`,children:[(0,U.jsxs)(`aside`,{style:{viewTransitionName:`app-sidebar`},className:P(`side-box sticky top-0 h-(--screen) flex-none overflow-hidden`,r?`w-16`:`w-[248px] min-[1440px]:w-[264px]`,k?`hidden`:`hidden md:block`),children:[(0,U.jsx)(`div`,{className:P(`side-layer absolute inset-y-0 left-0`,r&&`invisible opacity-0`),children:ee&&(0,U.jsx)(vp,{current:e,route:t,stats:a,onClose:()=>D(!0)})}),(0,U.jsx)(`div`,{className:P(`side-layer absolute inset-y-0 left-0`,!r&&`invisible opacity-0`),children:(0,U.jsx)(Cp,{current:e,route:t,onOpen:()=>D(!1)})})]}),(0,U.jsx)(Fp,{open:s,side:`left`,onClose:()=>c(!1),className:`md:hidden`,children:(0,U.jsx)(vp,{current:e,route:t,stats:a,onClose:()=>c(!1)})}),(0,U.jsxs)(`div`,{className:`relative flex min-w-0 flex-1 flex-col`,children:[(0,U.jsx)(Ap,{}),n,(0,U.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Show the workspace panel`,"data-tip":`Show the workspace panel`,onClick:()=>te(),className:P(`absolute top-2 right-3 z-30 md:hidden`,k&&`hidden`),children:(0,U.jsx)(st,{strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,U.jsxs)(`div`,{style:{viewTransitionName:`app-panel`},className:P(`side-box sticky top-0 h-(--screen) w-14 flex-none overflow-hidden`,l&&`min-[1600px]:w-[264px]`,k?`hidden`:`hidden md:block`),children:[(0,U.jsx)(`div`,{className:P(`side-layer absolute inset-y-0 right-0 hidden min-[1600px]:block`,!l&&`invisible opacity-0`),children:S&&(0,U.jsx)(jp,{stats:a,focus:C,onClose:()=>E(!1)})}),(0,U.jsx)(`div`,{className:P(`side-layer absolute inset-y-0 right-0`,l&&`min-[1600px]:invisible min-[1600px]:opacity-0`),children:(0,U.jsx)(Op,{stats:a,onOpen:te})})]}),h&&(0,U.jsx)(L.Suspense,{fallback:null,children:(0,U.jsx)($f,{open:p,onClose:()=>m(!1),pages:Qf,query:_})}),(0,U.jsx)(Fp,{open:d,side:`right`,onClose:()=>f(!1),className:`min-[1600px]:hidden`,children:(0,U.jsx)(jp,{stats:a,focus:C,onClose:()=>f(!1)})}),(0,U.jsx)(rp,{})]})})})}var Lp=`mx-auto box-border flex w-full max-w-[1180px] flex-col px-6 pt-8 pb-10 md:px-12 short:pt-6 short:pb-6`;export{Fu as $,Ji as $t,yd as A,Pn as An,qa as At,Xu as B,Yr as Bt,Md as C,Qn as Cn,uo as Ct,Ed as D,sr as Dn,ao as Dt,hd as E,er as En,oo as Et,td as F,Dn as Fn,ta as Ft,Yu as G,Kr as Gt,Ku as H,ii as Ht,sd as I,On as In,na as It,Iu as J,Xr as Jt,Gu as K,Gr as Kt,rd as L,jn as Ln,$i as Lt,dd as M,zn as Mn,Ga as Mt,ud as N,Vn as Nn,Ua as Nt,Cd as O,lr as On,to as Ot,cd as P,Bn as Pn,Wa as Pt,Nu as Q,ji as Qt,nd as R,Cn as Rn,ea as Rt,Ad as S,ur as Sn,fo as St,Dd as T,fr as Tn,xo as Tt,qu as U,li as Ut,Zu as V,Zr as Vt,Ju as W,qi as Wt,Au as X,Ri as Xt,Pu as Y,gi as Yt,ku as Z,Ci as Zt,Jd as _,qn as _n,Ro as _t,sp as a,fi as an,uu as at,Pd as b,or as bn,co as bt,Df as c,Ai as cn,Is as ct,Rd as d,Sr as dn,As as dt,V as en,Mu as et,kd as f,Tr as fn,Ps as ft,zd as g,nr as gn,Go as gt,Hd as h,tr as hn,Ko as ht,Ip as i,ei as in,Du as it,md as j,Hn as jn,Ka as jt,Td as k,$n as kn,Ja as kt,Nf as l,Ur as ln,Ls as lt,Ud as m,pr as mn,Wo as mt,up as n,Di as nn,wu as nt,Uf as o,Qr as on,yc as ot,Od as p,yr as pn,Ms as pt,Wu as q,Jr as qt,dp as r,Li as rn,Eu as rt,Wf as s,Ki as sn,dc as st,Lp as t,ti as tn,Ou as tt,Yd as u,Cr as un,js as ut,Ld as v,ar as vn,jo as vt,$ as w,ir as wn,lo as wt,Nd as x,rr as xn,so as xt,rf as y,cr as yn,Ao as yt,ed as z,wn as zn,qr as zt};