@intent-hq/web 2.326.0 → 2.326.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{DZmWm5oq.js → 3TjgpghN.js} +1 -1
- package/web/app/immutable/chunks/{on2ji0Bm.js → 4e9Oi2IH.js} +2 -2
- package/web/app/immutable/chunks/{Cp1nYC3a.js → 6fev2WJJ.js} +1 -1
- package/web/app/immutable/chunks/{CcAR43hD.js → 7nBj6LYt.js} +2 -2
- package/web/app/immutable/chunks/{B6lSV8KB.js → 8Uh_c3Al.js} +1 -1
- package/web/app/immutable/chunks/{BWruHkaz.js → 8sJC2YBd.js} +1 -1
- package/web/app/immutable/chunks/{D2arOseB.js → 9vYMFhaq.js} +2 -2
- package/web/app/immutable/chunks/{DTen1W6J.js → B0bNcw-2.js} +1 -1
- package/web/app/immutable/chunks/{CR0OsjwX.js → B32LcLzp.js} +1 -1
- package/web/app/immutable/chunks/{BDLEy0bz.js → B3ULTuJp.js} +1 -1
- package/web/app/immutable/chunks/{CuBhlv2-.js → B4JytB-w.js} +1 -1
- package/web/app/immutable/chunks/{BYCKazmD.js → B9NQtjYq.js} +1 -1
- package/web/app/immutable/chunks/B9kGYElt.js +11 -0
- package/web/app/immutable/chunks/{Ce-HWJQ_.js → B9ocfy1m.js} +1 -1
- package/web/app/immutable/chunks/{DlyY95dz.js → BAlmypgJ.js} +1 -1
- package/web/app/immutable/chunks/{DxLJQrg2.js → BCOWfVZX.js} +3 -3
- package/web/app/immutable/chunks/{DorT0vCv.js → BD1AswNm.js} +1 -1
- package/web/app/immutable/chunks/{xGc-g_Pg.js → BLt3j6Nx.js} +1 -1
- package/web/app/immutable/chunks/{CkKb10kP.js → BMqr7sP3.js} +1 -1
- package/web/app/immutable/chunks/{DNaiuJXQ.js → BWTGvXuX.js} +1 -1
- package/web/app/immutable/chunks/{BU2DxLq4.js → BZBtHBcq.js} +1 -1
- package/web/app/immutable/chunks/{Ckg6oZWu.js → B_YXARoV.js} +1 -1
- package/web/app/immutable/chunks/{B3BPzuV7.js → Bal57Ye5.js} +1 -1
- package/web/app/immutable/chunks/{DTbQ3fRP.js → BbVPf-UI.js} +1 -1
- package/web/app/immutable/chunks/{Clutrbzc.js → Bdi5rqYS.js} +1 -1
- package/web/app/immutable/chunks/{zBJ_ku6W.js → BeukNj5e.js} +1 -1
- package/web/app/immutable/chunks/{CFZXd4BE.js → BewBCi05.js} +1 -1
- package/web/app/immutable/chunks/{Bp9xGHbm.js → BhwE5q7q.js} +1 -1
- package/web/app/immutable/chunks/{DQTuRz29.js → BiAXEt6Z.js} +1 -1
- package/web/app/immutable/chunks/{CEes4GKH.js → BoGENHro.js} +4 -4
- package/web/app/immutable/chunks/{Q9l8d9Ff.js → BqmUYxKL.js} +1 -1
- package/web/app/immutable/chunks/{B6hfEhA3.js → BsUvcf0_.js} +1 -1
- package/web/app/immutable/chunks/{CKOMLCEU.js → BtrKeeQB.js} +1 -1
- package/web/app/immutable/chunks/{DKMNRvBC.js → BxTWueEL.js} +1 -1
- package/web/app/immutable/chunks/{DVhudIKd.js → BzqFIvca.js} +3 -3
- package/web/app/immutable/chunks/{BpDYDVU-.js → C1-8X1z6.js} +1 -1
- package/web/app/immutable/chunks/{D2Hfzmfm.js → C84cm6PZ.js} +1 -1
- package/web/app/immutable/chunks/{CKY-d9ys.js → C8umDIYa.js} +1 -1
- package/web/app/immutable/chunks/{ChKXb9IZ.js → CBIAqCVL.js} +1 -1
- package/web/app/immutable/chunks/{Bjy04Ljr.js → CCuHDfr0.js} +1 -1
- package/web/app/immutable/chunks/{DJQDMX7T.js → CGh-sPv1.js} +1 -1
- package/web/app/immutable/chunks/{6o2BiZvc.js → CO_ZKqDX.js} +1 -1
- package/web/app/immutable/chunks/{jALW3U5G.js → CS-Bs86H.js} +1 -1
- package/web/app/immutable/chunks/{CbESYGCB.js → CSdbufPg.js} +2 -2
- package/web/app/immutable/chunks/{CFPv0L1V.js → CT8f6YKq.js} +1 -1
- package/web/app/immutable/chunks/{Gbtk2_ov.js → CTZaUQRQ.js} +1 -1
- package/web/app/immutable/chunks/{JUBMeh-V.js → CTfHJwHE.js} +1 -1
- package/web/app/immutable/chunks/{C8lagF4Y.js → CW6x_8bi.js} +1 -1
- package/web/app/immutable/chunks/{B6TNG8jk.js → CYO7AJ-4.js} +1 -1
- package/web/app/immutable/chunks/{CMB7Frla.js → CZDCgjwl.js} +1 -1
- package/web/app/immutable/chunks/{C1-An_Gj.js → Caml2w64.js} +1 -1
- package/web/app/immutable/chunks/{CkixGf-Z.js → CaqnjoEZ.js} +1 -1
- package/web/app/immutable/chunks/{Ct886ygN.js → CcDLHi1i.js} +1 -1
- package/web/app/immutable/chunks/{BF395lLu.js → Cij7kU2a.js} +1 -1
- package/web/app/immutable/chunks/{UwpJ-WaP.js → Cq2C_MR2.js} +1 -1
- package/web/app/immutable/chunks/{DClroYt7.js → CqKhvjpx.js} +2 -2
- package/web/app/immutable/chunks/{BoDSCKQc.js → CrfPbMYP.js} +3 -3
- package/web/app/immutable/chunks/{CD3AEbwJ.js → CtaTQdCU.js} +1 -1
- package/web/app/immutable/chunks/{D9haqNPC.js → CvKJLIUv.js} +1 -1
- package/web/app/immutable/chunks/{7Q5H7fNM.js → Cw2pydkq.js} +1 -1
- package/web/app/immutable/chunks/{BIG5bgXe.js → CwjBZ03e.js} +1 -1
- package/web/app/immutable/chunks/{BVoI73qK.js → CzlpCwbV.js} +1 -1
- package/web/app/immutable/chunks/{DMc6ASaR.js → D-tskEku.js} +1 -1
- package/web/app/immutable/chunks/{CP4ztk1q.js → D28bx7xA.js} +1 -1
- package/web/app/immutable/chunks/{BwCFLS-s.js → D4WK1o_U.js} +1 -1
- package/web/app/immutable/chunks/{B-QkU7aB.js → D5_kpvXT.js} +1 -1
- package/web/app/immutable/chunks/{-SiQzPza.js → D7Nt3JkE.js} +1 -1
- package/web/app/immutable/chunks/{8NA8QjX1.js → D7qYpbUU.js} +1 -1
- package/web/app/immutable/chunks/{DHrkFUqJ.js → D8-RPsGp.js} +1 -1
- package/web/app/immutable/chunks/{Kdcl8vei.js → D9ikOkNJ.js} +2 -2
- package/web/app/immutable/chunks/{Bh7i-o5x.js → D9vDBEea.js} +1 -1
- package/web/app/immutable/chunks/{C3BYtBiB.js → DAMas9en.js} +2 -2
- package/web/app/immutable/chunks/{CDgs0JS1.js → DDUxYsSw.js} +1 -1
- package/web/app/immutable/chunks/{B0bu-IRA.js → DHQu7O5A.js} +2 -2
- package/web/app/immutable/chunks/{CZz1scwM.js → DIAgYk3n.js} +1 -1
- package/web/app/immutable/chunks/{DVl0CITt.js → DL-zwU1m.js} +1 -1
- package/web/app/immutable/chunks/{DzvRuLlu.js → DSU6qB1T.js} +1 -1
- package/web/app/immutable/chunks/{CvqTh8Uk.js → DSXM6fwZ.js} +1 -1
- package/web/app/immutable/chunks/{CprumKU1.js → DScre-It.js} +4 -4
- package/web/app/immutable/chunks/{D6VaHVoi.js → DTqO_0Bz.js} +3 -3
- package/web/app/immutable/chunks/{DUArA2LH.js → DVhXeJHd.js} +1 -1
- package/web/app/immutable/chunks/{cqqSv8ap.js → D_cyPxam.js} +1 -1
- package/web/app/immutable/chunks/{BQic244B.js → DeRGi3j1.js} +1 -1
- package/web/app/immutable/chunks/{DWuXM2Hm.js → DeyZLTwu.js} +1 -1
- package/web/app/immutable/chunks/{DEkbVgN_.js → DfdS7JEG.js} +1 -1
- package/web/app/immutable/chunks/{_Snsa_Qz.js → Dg6XJEux.js} +1 -1
- package/web/app/immutable/chunks/{BwDf4eAL.js → DhS8xtLF.js} +2 -2
- package/web/app/immutable/chunks/{BlaQhqAP.js → DjzT7ngq.js} +12 -12
- package/web/app/immutable/chunks/{Br9OThSE.js → Dk77Zjyj.js} +4 -4
- package/web/app/immutable/chunks/{pSbP-ZXw.js → DlfLSDXV.js} +1 -1
- package/web/app/immutable/chunks/{tiNtnF2l.js → Dnt8vkQm.js} +4 -4
- package/web/app/immutable/chunks/{SE3UJ3Y-.js → DrzLQ0eD.js} +1 -1
- package/web/app/immutable/chunks/{BS90EBsD.js → Dut5c7SN.js} +1 -1
- package/web/app/immutable/chunks/{CA2XYG71.js → DyO575wu.js} +1 -1
- package/web/app/immutable/chunks/{CuEKWCLX.js → Dzm_iOGi.js} +1 -1
- package/web/app/immutable/chunks/{BE67Lyel.js → F5_devxQ.js} +1 -1
- package/web/app/immutable/chunks/{BGFti0BH.js → Fh5GNv9L.js} +1 -1
- package/web/app/immutable/chunks/{GOQR7kDK.js → G9tprck_.js} +1 -1
- package/web/app/immutable/chunks/{CWfEaLBI.js → JDQpPIdK.js} +1 -1
- package/web/app/immutable/chunks/{Cuc3Cll3.js → L5TpWhNg.js} +1 -1
- package/web/app/immutable/chunks/{g1rsgvPL.js → O74Enfx7.js} +1 -1
- package/web/app/immutable/chunks/{CGGaycWT.js → R_ite4ub.js} +1 -1
- package/web/app/immutable/chunks/{DsJRrKXZ.js → SCtfTN2t.js} +1 -1
- package/web/app/immutable/chunks/{C94e05zl.js → S_EJhL3t.js} +1 -1
- package/web/app/immutable/chunks/{CH9pW9Tz.js → ToN36KrS.js} +1 -1
- package/web/app/immutable/chunks/{BaqgAqxe.js → U1OJvm_1.js} +1 -1
- package/web/app/immutable/chunks/{BRUOvuaf.js → VS9HeAIc.js} +1 -1
- package/web/app/immutable/chunks/{C7QWS9hW.js → WTdA0rd-.js} +1 -1
- package/web/app/immutable/chunks/{DJhdPAA0.js → Y5a2rsoM.js} +1 -1
- package/web/app/immutable/chunks/{DjHqlu47.js → aK8ngy9d.js} +1 -1
- package/web/app/immutable/chunks/{DjAR48t_.js → gzRJSaem.js} +1 -1
- package/web/app/immutable/chunks/{BPdmco4T.js → icEgaLA9.js} +1 -1
- package/web/app/immutable/chunks/{D6TWLhSK.js → jue9ixe-.js} +1 -1
- package/web/app/immutable/chunks/{D4YQwQX5.js → n4NGDq1U.js} +1 -1
- package/web/app/immutable/chunks/{CNWnIusN.js → o-TQt3PR.js} +1 -1
- package/web/app/immutable/chunks/{bgWP6XXy.js → rEEtGm7A.js} +1 -1
- package/web/app/immutable/chunks/{Dy63S36d.js → t-vgJJbF.js} +1 -1
- package/web/app/immutable/chunks/{lP24J4Yb.js → tn2Cp4nc.js} +1 -1
- package/web/app/immutable/chunks/{9UcFJEnf.js → wKgK73VL.js} +1 -1
- package/web/app/immutable/chunks/{D6g3aPQO.js → way8Ny-K.js} +1 -1
- package/web/app/immutable/chunks/{DNxH7DoQ.js → wzvrgfXd.js} +1 -1
- package/web/app/immutable/chunks/{Zd2aPxjX.js → zcS315IN.js} +1 -1
- package/web/app/immutable/entry/{app.CRRKgqxW.js → app.1Y8T3nK_.js} +2 -2
- package/web/app/immutable/entry/start.BHDg3yNJ.js +1 -0
- package/web/app/immutable/nodes/{0.DOxj4LNp.js → 0.iewJekh7.js} +1 -1
- package/web/app/immutable/nodes/{1.CbB-y-hH.js → 1.5W6yV2pi.js} +1 -1
- package/web/app/immutable/nodes/{10.DHvtt12I.js → 10.nWCS_Uke.js} +1 -1
- package/web/app/immutable/nodes/{14.DYj8Rzsz.js → 14.BhW4CCop.js} +1 -1
- package/web/app/immutable/nodes/{17.DK01LFYj.js → 17.CjWD9UYv.js} +2 -2
- package/web/app/immutable/nodes/{2.Casyk5ep.js → 2.xwSsqNEb.js} +4 -4
- package/web/app/immutable/nodes/{3.DPAcghQx.js → 3.B5Wk8eOP.js} +1 -1
- package/web/app/immutable/nodes/{4.D8jQgBwJ.js → 4.BWONV3LG.js} +1 -1
- package/web/app/immutable/nodes/{5.m89ev8th.js → 5.8y8TdQsd.js} +1 -1
- package/web/app/immutable/nodes/{6.CYBbWA32.js → 6.TqCdfpll.js} +1 -1
- package/web/app/immutable/nodes/{7.D_oZKDrq.js → 7.CavhPLIC.js} +1 -1
- package/web/app/immutable/nodes/{8.NEpoNBtM.js → 8.aSH7GCx4.js} +4 -4
- package/web/app/immutable/nodes/{9.D1l8cLhL.js → 9.BVqMShPM.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/aTZ-0ZHl.js +0 -11
- package/web/app/immutable/entry/start.CwZVPYAq.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gV as x,gB as B,Is as E,Jd as G,te as F,u8 as z,zO as D,zP as V,Iq as $,Ir as H,zQ as N}from"./qsR_yQtS.js";import{Q as f,o as Q,C as q,e as J,l as y,p as K,u as U,v as j}from"./CGP-GxkE.js";import{g as X}from"./
|
|
1
|
+
import{gV as x,gB as B,Is as E,Jd as G,te as F,u8 as z,zO as D,zP as V,Iq as $,Ir as H,zQ as N}from"./qsR_yQtS.js";import{Q as f,o as Q,C as q,e as J,l as y,p as K,u as U,v as j}from"./CGP-GxkE.js";import{g as X}from"./Bdi5rqYS.js";import{bo as l}from"./BfQ563mx.js";import{b5 as Y,a9 as g}from"./CRZOxGK4.js";import{B as Z}from"./BC9FUDR5.js";import{g as M}from"./m8bGg3Tz.js";function S(e,t){const a=f.select(e.state),n=y.select(e.state);if(!n)return null;const c=a.indexOf(n),s=c+(t==="left"?-1:1),r=a[s];return c<0||!r?null:(e.dispatch(F(n,r,t==="left"?"before":"after")),n)}function A(e){const t=y.select(e);return t&&f.select(e).includes(t)?t:null}function w(e,t,a){const n=A(e.state),c=n?`/workspace/${n}`:X(e.state);return t!==c&&a(c),n}function ee(e,t,a,n){return e.dispatch(x(t)),w(e,a,n),t}function I(e,t){const n=t.match(/^\/workspace\/([^/]+)/)?.[1];return n?n==="new"?null:n:null}function v(e,t,a,n){if(a==="/")return O(e,t==="next"?0:"last",a,n);e.dispatch(t==="next"?$():H());const c=y.select(e.state);if(!c)return null;const s=`/workspace/${c}`;return a!==s&&n(s),c}function te(e,t,a){const n=I(e,t);return n?ee(e,n,t,a):null}function ae(e,t,a){const n=I(e,t);if(!n)return null;const c=Q.select(e.state,n);if(!c)return null;const s=c.tabs.find(T=>T.id===c.activeTabId),r=c.tabs.length===0&&c.activeTabId===null,m=q.select(e.state,n)>1&&(r||c.tabs.length===1&&s!==void 0&&s.closable!==!1);if((!s||s.closable===!1)&&!m)return null;const h=a??M(n)?.availableCanvasWidth??void 0;return e.dispatch(B(n,void 0,h)),s?.id??c.id}function ne(e,t){const a=e.state.panelLayout.byWorkspaceId[t];return!a||a.restoreStatus==="pending"?!1:J.select(e.state,t).length===0}function oe(e,t,a){A(e.state)||e.dispatch(E(0)),w(e,t,a)}function C(e,t,{navigate:a,closeWindow:n}){return n?(n(),"window"):(w(e,t,a),null)}function ce(e,t,a){const n=I(e,t);return n?ae(e,t,a.availableCanvasWidth)!==null?"panel":ne(e,n)?(e.dispatch(x(n)),f.select(e.state).length>0?(oe(e,t,a.navigate),"workspace"):C(e,t,a)??"workspace"):null:f.select(e.state).length>0?null:C(e,t,a)}function se(e,t,a){return e.dispatch(N()),w(e,t,a)}function le(e,t,a){const n=t.match(/^\/workspace\/([^/]+)/),c=n&&n[1]!=="new"?n[1]:null,s=U.select(e.state),r=c?j.select(e.state,c):null;return c&&r&&(!s||r.closedAt>=s.closedAt)?r.kind==="column"?(e.dispatch(D(c)),"column"):(e.dispatch(V(c)),r.kind):s?(se(e,t,a),"workspace"):null}function re(e,t){const a=t.match(/^\/workspace\/([^/]+)/),n=a&&a[1]!=="new"?a[1]:null;if(!n)return null;const c=z(n);return e.dispatch(c),K.select(e.state,n)}function O(e,t,a,n){const c=f.select(e.state),s=t==="last"?c.length-1:t;return s<0||s>=c.length?null:(e.dispatch(E(s)),w(e,a,n))}function we({isMac:e,register:t,store:a,getCurrentPath:n,navigate:c,openNewWorkspace:s,onCreateAgent:r,onCreateNote:m,onCreateTerminal:h,onCreateBrowser:T,onWorkspaceTabMoved:W,closeWindow:P,resolveBinding:k}){const p=e?{meta:!0}:{ctrl:!0},L=Y("TOGGLE_SIDEBAR",e),b=o=>()=>o(n()),R=o=>()=>{const u=n().match(/^\/workspace\/([^/]+)/);u?.[1]&&u[1]!=="new"&&o(u[1])},i=o=>k?{binding:()=>k(o)}:{};t({...i("global.new-space"),...p,key:"n",global:!0,description:l.workspace_shortcuts_newSpace_description(),action:s}),t({...i("panel.toggle-sidebar"),...L,global:!0,description:g.TOGGLE_SIDEBAR.label,action:()=>a.dispatch(G())}),t({...i("navigation.new-tab"),...p,key:"t",global:!0,description:l.workspace_shortcuts_newPanel_description(),action:b(o=>re(a,o))});for(const[o,u,_,d]of[["workspace.new-agent","a",l.ui_shortcuts_newAgent_label(),r],["workspace.new-note","n",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_note_label()}),m],["workspace.new-terminal","t",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_terminal_label()}),h],["workspace.new-browser","b",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_browser_label()}),T]])d&&t({...i(o),...p,key:u,alt:!0,global:!0,allowInTerminal:!0,description:_,action:R(d)});t({...i("navigation.close-tab"),...p,key:"w",global:!0,description:l.workspace_shortcuts_closePanelTab_description(),action:b(o=>ce(a,o,{navigate:c,closeWindow:P}))}),t({...i("navigation.close-space-tab"),...p,key:"w",shift:!0,global:!0,description:l.workspace_shortcuts_closeSpaceTab_description(),action:b(o=>te(a,o,c))}),t({...i("navigation.reopen-tab"),...p,key:"t",shift:!0,global:!0,description:l.workspace_shortcuts_reopenClosedTabOrSpace_description(),action:b(o=>le(a,o,c))}),t({...i("navigation.move-space-tab-left"),...p,key:"ArrowLeft",alt:!0,shift:!0,global:!0,description:g.MOVE_SPACE_TAB_LEFT.label,action:()=>{const o=S(a,"left");o&&W?.({workspaceId:o,position:f.select(a.state).indexOf(o)+1})}}),t({...i("navigation.move-space-tab-right"),...p,key:"ArrowRight",alt:!0,shift:!0,global:!0,description:g.MOVE_SPACE_TAB_RIGHT.label,action:()=>{const o=S(a,"right");o&&W?.({workspaceId:o,position:f.select(a.state).indexOf(o)+1})}});for(const[o,u]of[["next",!1],["previous",!0]]){t({...i(o==="next"?"global.next-space":"global.previous-space"),key:"Tab",ctrl:!0,shift:u,global:!0,description:o==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:b(d=>v(a,o,d,c))});const _=o==="next"?"global.next-space-alt":"global.previous-space-alt";t({...i(_),...p,key:o==="next"?"}":"{",shift:!0,global:!0,allowInTerminal:!0,preferLocal:!0,enabled:d=>!k||!Z(_,d,k,e),description:o==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:b(d=>v(a,o,d,c))})}for(let o=1;o<=9;o++)t({...k?{binding:()=>k("navigation.go-to-tab").replace(/([1-8])-9$/,String(o))}:{},...p,key:String(o),global:!0,description:o===1?l.home_navigation_description():o===9?l.workspace_shortcuts_selectLastSpaceTab_description():l.workspace_shortcuts_selectSpaceTab_description({digit:o}),action:b(u=>o===1?c("/"):O(a,o===9?"last":o-2,u,c))})}export{ce as c,we as r};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bo as v,t as Ft,bq as y,a_ as D,by as zt,b as Ht,br as Hf,bu as St,bs as ia,bt as yi,b7 as dl,ba as jf,bl as Wf,bb as Uf,bm as qf,a$ as Vf,b9 as Kf,b8 as Gf,b2 as Jf,bf as Yf,bg as Xf,bk as Zf,be as Qf,bn as $f,b0 as ep,b4 as tp,bi as rp,bh as np,b6 as ap,b5 as sp,b3 as op,bd as ip,bc as lp,bj as cp,b1 as dp,_ as up}from"./BfQ563mx.js";import{bI as fp,bj as Is,aG as pp,bs as jt,aD as e,a5 as I,bS as m,bA as w,W as d,bn as Wt,c9 as u,aA as _,a7 as wt,ay as qe,be as tr,b$ as Mt,aC as wa,bl as R,b_ as k,bO as x,aB as S,bo as Cs,ca as It,bH as L,bV as be,br as Vr,bk as Es,c0 as Qn,ai as Na,cd as Qa,aw as Cn,a as gp,aj as Nr,c7 as vp,c6 as ul,c5 as En,bf as Vs,bz as ed}from"./DYhIMPy1.js";import{G as Ks,I as mp,z as hp}from"./BC9FUDR5.js";import{o as bp,i as yp,u as ne,g as Bn,w as An,l as Pn,j as dr,v as gt,I as Ps,n as Lt,p as Mr,q as _p,s as xp,m as wp,x as kp}from"./qIk9Tsyc.js";import{s as vn}from"./CJ_pF2zV.js";import{c as en}from"./DJAu4Zb4.js";import{I as Vo,t as or,n as Sp,i as fl,u as pl}from"./BoLyAHbw.js";import{b as vr}from"./BaIAhI85.js";import{i as td,bu as Ip,cK as Cp,dE as Ep,dq as Pp,ax as Ap,ct as Tp,a2 as Rp,cQ as Lp,dp as vs,aC as ao,c2 as Mp,I as Np,a as Op,a0 as gl,cW as Dp,bS as Bp,M as Fp,dk as zp,W as Hp,dv as jp,af as Wp,at as Up,g as qp,u as Vp}from"./hs4yH6xH.js";import{c as Kp}from"./D-62MVd3.js";import{k as na,w as Gp,C as rd,c as Jp,R as Yp}from"./3k5l7Vm0.js";import{f as bt,ap as Xa,ai as Xp,am as Ko,bc as Zp}from"./CRZOxGK4.js";import{am as Qp,aa as vl,_ as $p,az as eg,ab as tg,h as rg,aR as ng,I as ag,R as sg,ar as og,af as ig,$ as lg,a as ml,as as cg,r as dg,n as ug,aX as fg,m as pg,aZ as Go,A as hl,ae as gg,aY as vg,ao as nd,Q as ad,a6 as mg,a5 as bl,U as hg,K as yl}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DhS8xtLF.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BfQ563mx.js","/app/immutable/chunks/CJ_pF2zV.js","/app/immutable/chunks/Ce6r6fxw.js","/app/immutable/chunks/BoLyAHbw.js","/app/immutable/chunks/qIk9Tsyc.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/qsR_yQtS.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/Z4xUIWEq.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/BC9FUDR5.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CRZOxGK4.js","/app/immutable/chunks/DJAu4Zb4.js","/app/immutable/chunks/BVO1XRk1.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/EAgHwpox.js","/app/immutable/chunks/aBRcRCfT.js","/app/immutable/chunks/C9J8VIvu.js","/app/immutable/chunks/DBFtaESL.js","/app/immutable/chunks/DQFM25fD.js","/app/immutable/chunks/Tn8zuzKd.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BCyGnKhu.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/CBn9V_ZK.js","/app/immutable/chunks/Djq_HQh7.js","/app/immutable/chunks/DFDT6MWU.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/BA6_UMyI.js","/app/immutable/chunks/CnZz0xYN.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/C8u1sknf.js","/app/immutable/chunks/DtLaIqJF.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/3k5l7Vm0.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/DDUxYsSw.js","/app/immutable/chunks/hs4yH6xH.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CyyBiK1e.js","/app/immutable/chunks/DOOwa8vh.js","/app/immutable/chunks/O4s-SzhD.js","/app/immutable/chunks/ln6yAw3C.js","/app/immutable/chunks/CGP-GxkE.js","/app/immutable/chunks/CFm45ZMW.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/CqKhvjpx.js","/app/immutable/chunks/Bdi5rqYS.js","/app/immutable/chunks/9vYMFhaq.js","/app/immutable/chunks/icEgaLA9.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B0bNcw-2.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bo as v,t as Ft,bq as y,a_ as D,by as zt,b as Ht,br as Hf,bu as St,bs as ia,bt as yi,b7 as dl,ba as jf,bl as Wf,bb as Uf,bm as qf,a$ as Vf,b9 as Kf,b8 as Gf,b2 as Jf,bf as Yf,bg as Xf,bk as Zf,be as Qf,bn as $f,b0 as ep,b4 as tp,bi as rp,bh as np,b6 as ap,b5 as sp,b3 as op,bd as ip,bc as lp,bj as cp,b1 as dp,_ as up}from"./BfQ563mx.js";import{bI as fp,bj as Is,aG as pp,bs as jt,aD as e,a5 as I,bS as m,bA as w,W as d,bn as Wt,c9 as u,aA as _,a7 as wt,ay as qe,be as tr,b$ as Mt,aC as wa,bl as R,b_ as k,bO as x,aB as S,bo as Cs,ca as It,bH as L,bV as be,br as Vr,bk as Es,c0 as Qn,ai as Na,cd as Qa,aw as Cn,a as gp,aj as Nr,c7 as vp,c6 as ul,c5 as En,bf as Vs,bz as ed}from"./DYhIMPy1.js";import{G as Ks,I as mp,z as hp}from"./BC9FUDR5.js";import{o as bp,i as yp,u as ne,g as Bn,w as An,l as Pn,j as dr,v as gt,I as Ps,n as Lt,p as Mr,q as _p,s as xp,m as wp,x as kp}from"./qIk9Tsyc.js";import{s as vn}from"./CJ_pF2zV.js";import{c as en}from"./DJAu4Zb4.js";import{I as Vo,t as or,n as Sp,i as fl,u as pl}from"./BoLyAHbw.js";import{b as vr}from"./BaIAhI85.js";import{i as td,bu as Ip,cK as Cp,dE as Ep,dq as Pp,ax as Ap,ct as Tp,a2 as Rp,cQ as Lp,dp as vs,aC as ao,c2 as Mp,I as Np,a as Op,a0 as gl,cW as Dp,bS as Bp,M as Fp,dk as zp,W as Hp,dv as jp,af as Wp,at as Up,g as qp,u as Vp}from"./hs4yH6xH.js";import{c as Kp}from"./D-62MVd3.js";import{k as na,w as Gp,C as rd,c as Jp,R as Yp}from"./3k5l7Vm0.js";import{f as bt,ap as Xa,ai as Xp,am as Ko,bc as Zp}from"./CRZOxGK4.js";import{am as Qp,aa as vl,_ as $p,az as eg,ab as tg,h as rg,aR as ng,I as ag,R as sg,ar as og,af as ig,$ as lg,a as ml,as as cg,r as dg,n as ug,aX as fg,m as pg,aZ as Go,A as hl,ae as gg,aY as vg,ao as nd,Q as ad,a6 as mg,a5 as bl,U as hg,K as yl}from"./BoGENHro.js";import{F as Pt,bf as Jo,bJ as bg,am as yg,aO as _g,cJ as xg,bj as _i,bz as wg,aE as sd,aJ as xi,cY as Gs,a9 as Yo,cl as kg,cb as Sg,cg as wi,cD as od,bq as Ig,e as Cg,bZ as _l,c7 as Eg,cj as Pg,cU as id,bT as xl,b6 as So,bc as us,aD as Ag,ax as Xo,as as ld,ba as cd,bA as Tg,B as Rg,bt as Lg,a4 as dd,cf as Mg,aj as ud,cL as fd,cH as wl,aq as pd,aI as kl,_ as Ng,ct as Og,cS as Dg,aH as Bg,aZ as Fg,bM as gd,bl as zg,c3 as Sl,al as vd,aw as Hg,a7 as jg,a5 as Wg}from"./DQFM25fD.js";import{c as md}from"./ChTqQfQN.js";import{g as Ug}from"./CnZz0xYN.js";import{Ie as Nt,bM as qg,rM as Il,sm as Vg,J1 as Kg,J7 as Gg,g as hd,HT as Jg,nv as bd,nL as yd,nK as _d,no as so,p_ as ki,xJ as Yg,uP as zs,u6 as Zo,uR as Xg,nd as xd,Ij as Zg,t1 as Qg,oy as wd,r8 as Si,lW as Cl,a2 as El,qF as $g,qB as ev,qG as tv,qx as rv,qD as nv,uF as av,Ae as kd,Ai as Sd,nM as Pl,be as Qo,GC as sv,HP as ov,hb as iv,ha as lv,nG as cv,vQ as dv,vR as uv,vP as Al,Be as Xn,cr as fv,cf as pv,d0 as gv,d7 as vv,Ao as mv}from"./qsR_yQtS.js";import{bG as hv,bP as bv,i as yv,z as _v,bS as xv,ag as wv,ai as kv,ak as Sv,a4 as Iv,a3 as Cv}from"./ln6yAw3C.js";import{n as Ev,m as Pv,v as $o,cj as Av,M as Tv,ch as Rv,cb as Lv,aD as Tl,cd as Mv,bM as ei,aN as Nv,s as Ov,c as ms,d as ti,cf as Id,cg as ri,bB as Dv,b6 as Bv,bQ as Fv,bO as zv,E as Hv,ce as Rl,bv as jv,y as Wv}from"./DDUxYsSw.js";import{cd as Uv,cf as qv,ce as Vv,b0 as Kv,a_ as Gv,a$ as Jv,a3 as Yv,ak as Ns,aj as Xv,az as Ll,aH as Zv,ai as Qv,C as $v,i as em,E as Hs,cO as tm,aV as Ml,cT as rm,af as nm,a7 as am,r as sm,p as om,aE as im,cW as lm,cF as cm,cy as dm,cp as um,bO as fm}from"./aK8ngy9d.js";import{i as pm,I as $a,c as Nl}from"./EAgHwpox.js";import"./aBRcRCfT.js";import{f as Ol,y as Dl,M as gm,n as vm,m as mm,z as Cd,x as ni,e as hs,W as es,h as hm}from"./DhS8xtLF.js";import"./DFDT6MWU.js";import{b as Ed}from"./DtLaIqJF.js";import"./BCyGnKhu.js";import{z as Ii,P as bm,p as ym,h as _m,G as xm,l as wm,i as km,M as Sm,H as Im,t as Ja,a as Cm,K as Em,k as Pm,R as Am}from"./C9J8VIvu.js";import{t as bs,O as Tm,M as Rm,S as _a}from"./DBFtaESL.js";import{a as Lm}from"./Tn8zuzKd.js";import{C as ai}from"./BneJay7r.js";import{aQ as Mm,aY as Nm,aB as Om,b0 as Dm,aO as Bm,aU as Fm,a7 as rs,b3 as Bl,aK as zm,aR as Hm,aX as Ci,aS as Ei,W as Io,aq as jm,X as Wm,a_ as Um,aJ as qm,aT as Vm,aW as Km,b6 as Gm,b4 as Jm,ay as Pd,p as Ym,n as Xm,aV as Zm,_ as Qm,ao as $m,aD as eh,z as th,aC as rh,a8 as nh}from"./CrfPbMYP.js";import{s as si}from"./CBIAqCVL.js";import{M as ah}from"./CdTtwv4K.js";import{s as sh,a as oh}from"./BsieX9dN.js";import{u as Pi,w as ih,v as oo,I as lh,A as Fl,e as ys,d as xa,J as zl,c as ch,f as dh,g as Hl,i as uh,b as fh,o as Ad,j as ph,O as gh,x as vh,k as Td,S as mh,N as hh,q as jl,p as bh,n as Wl,z as yh,s as _h}from"./B32LcLzp.js";import{o as Ul,a as ql,T as Co,b as xh}from"./7nBj6LYt.js";import{O as wh,y as kh,j as Sh,h as Ih,R as Ch}from"./PLF2Xuyl.js";import{D as _s}from"./3TjgpghN.js";import"./CMXLe9E6.js";import{C as aa}from"./CtaTQdCU.js";import{M as Eh}from"./DScre-It.js";import{g as Ai}from"./Ce6r6fxw.js";import{f as Vl}from"./Bdi5rqYS.js";import{c as js}from"./KPt22Crn.js";import{handleIntentLink as Ph}from"./4e9Oi2IH.js";import{s as Ah,a as Th,f as Rh,d as Lh,r as Mh,h as Nh,w as fs,g as Oh,W as Dh,H as Bh,c as Fh,M as Rd}from"./Dnt8vkQm.js";import{e as zh,q as Hh}from"./CGP-GxkE.js";import{showAssistantContent as jh}from"./DHQu7O5A.js";import{o as Js,c as Wh,n as Uh}from"./B0bNcw-2.js";import{p as qh}from"./CaqnjoEZ.js";import{m as Vh}from"./7k5ozo9c.js";import{h as Os}from"./BU4dIvfB.js";import{i as Ld}from"./DOOwa8vh.js";import{g as Kh,e as Gh,f as Jh,h as Yh}from"./BvFAWM27.js";import{T as Eo}from"./wxK47Zsm.js";import"./Djq_HQh7.js";import{i as Xh,r as Kl}from"./BewBCi05.js";import{a as Zh}from"./C8u1sknf.js";import{a as Qh}from"./BJzHxIyr.js";import{p as $h}from"./D7qYpbUU.js";const eb="intent:inline-visual-draft";function rC(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
|
|
3
3
|
|
|
4
4
|
`:""}${n}
|
|
5
5
|
|
|
@@ -260,7 +260,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
|
|
|
260
260
|
`,d0=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],Ho=96,Oc=2e4,u0=480,zu=512,f0=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function p0(r,t,n,a,s,o){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const f=(C,z={})=>{window.parent.postMessage({channel:r,type:C,...z},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(C){try{if(!o(C))return!1;const z=JSON.parse(JSON.stringify(C));return i=z.state,p=z,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let T=!1,b=-1,h=innerHeight,P=Number.NaN,A=0,B=0;const F=()=>{if(T=!1,!document.body)return;let C=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,J=C-z;if(z>h+1&&J>1&&Math.abs(J-P)<=1?A+=1:(z!==h||J<=1)&&(A=0),h=z,P=J,!B&&A>=3){B=Math.max(a,z);const Q="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Q),f("layout",{message:Q})}B&&(C=Math.min(C,B)),C!==b&&(b=C,f("resize",{height:C}))},O=()=>{T||(T=!0,requestAnimationFrame(F))},N=C=>{if(!C||typeof C.dark!="boolean"||!C.variables)return;const z=document.documentElement;z.classList.toggle("dark",C.dark),z.style.colorScheme=C.dark?"dark":"light";const J=C.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof J=="string"&&J.length<512&&z.style.setProperty("--inline-html-root-font-size",J);for(const Q of Object.keys(t.variables)){if(Q==="--inline-html-root-font-size")continue;const $=C.variables[Q];typeof $=="string"&&$.length<512&&z.style.setProperty(Q,$)}O()};window.addEventListener("message",C=>{C.source!==window.parent||!C.data||C.data.channel!==r||C.data.type==="theme"&&N(C.data.theme)});const U=C=>{if(C.defaultPrevented||!C.isTrusted||C.ctrlKey||C.metaKey||C.shiftKey||!C.deltaY||Math.abs(C.deltaX)>Math.abs(C.deltaY))return;const z=$=>{const Ie=getComputedStyle($);if($!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Ie.overflowY)||/^(hidden|clip)$/.test(Ie.overflowY))return!1;const le=$.scrollHeight-$.clientHeight;return le>1&&(C.deltaY<0?$.scrollTop>1:$.scrollTop<le-1)};if(C.composedPath().some($=>$ instanceof Element&&z($))||document.scrollingElement&&z(document.scrollingElement))return;const J=C.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:C.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Q=Math.max(-n,Math.min(n,C.deltaY*J));Number.isFinite(Q)&&(C.preventDefault(),l({deltaY:Q}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",C=>{C.message&&f("error",{message:C.message.slice(0,300)})}),window.addEventListener("unhandledrejection",C=>{const z=C.reason;f("error",{message:String(z instanceof Error?z.message:z).slice(0,300)})}),window.addEventListener("click",C=>{const z=C.target instanceof Element?C.target.closest("a, area"):null;if(!z)return;(z.getAttribute("href")??z.getAttribute("xlink:href"))?.startsWith("#")||C.preventDefault()},!0),window.addEventListener("submit",C=>C.preventDefault(),!0),N(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(O).observe(document.body),new MutationObserver(O).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",O),document.addEventListener("load",O,!0),document.fonts.ready.then(O),f("ready"),O()},{once:!0})}function g0(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=f=>{const i=f.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!c&&f.ports.length===1){c=f.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function v0(r,t,n,a,s,o,c,l){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=Q=>{Q.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach($=>$.remove()),Q.querySelectorAll("template").forEach($=>p($.content)),Q.querySelectorAll("a, area").forEach($=>{for(const Ie of["href","xlink:href"])$.getAttribute(Ie)?.startsWith("#")||$.removeAttribute(Ie);$.removeAttribute("target"),$.removeAttribute("ping"),$.removeAttribute("download")})};p(f);const g=Q=>JSON.stringify(Q).replace(/</g,"\\u003c"),T=f.createElement("meta");T.httpEquiv="Content-Security-Policy",T.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),P=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
|
|
261
261
|
font-display: swap; src: url('${l}') format('woff2'); }`:"";h.textContent=`${P}${r.styles}`;const A=f.createElement("script"),B=g([a,s,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);A.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,f.head.prepend(T,b,h,A);const F=`<!doctype html>${f.documentElement.outerHTML}`,O=document.implementation.createHTMLDocument(""),N=O.createElement("meta");N.httpEquiv="Content-Security-Policy",N.content=r.csp.replace("frame-src 'none'","frame-src about:");const U=O.createElement("meta");U.setAttribute("charset","utf-8");const C=O.createElement("style");C.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const z=O.createElement("script"),J=g([a,F,o,r.maxScrollDelta]);return z.textContent=`(${r.shell})(...${J}, (${r.validate}));`,O.head.prepend(N,U,C,z),`<!doctype html>${O.documentElement.outerHTML}`}const m0=()=>({csp:f0,styles:c0,maxScrollDelta:zu,lockHeight:u0,bridge:p0.toString(),shell:g0.toString(),validate:Si.toString()});function h0(r,t,n,a,s=null,o=""){return v0(m0(),Si,r,t,n,a,s,o)}function Dc(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(d0.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function b0(r,t,n,a,s=null){return h0(r,t,n,a,s,l0)}var y0=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),_0=S('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),x0=S('<p class="sr-only" role="status"> </p>'),w0=S('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),k0=S('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),S0=S('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),I0=S('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),C0=S('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),E0=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),P0=S('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),A0=S('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),T0=S('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),R0=S('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),L0=S('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),M0=S('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function Hu(r,t){if(new.target)return Ft({component:Hu,...r});jt(t,!0);const n=720;let a=y(t,"source",7),s=y(t,"isStreaming",7,!1),o=y(t,"isComplete",7,!0),c=y(t,"record",7),l=y(t,"storageStatus",7,"ready"),f=y(t,"onRecordChange",7),i=y(t,"onUseConfiguration",7),p=y(t,"onExport",7),g=y(t,"onRetry",7),T=y(t,"storageError",7),b=y(t,"exportStatus",7),h=y(t,"exportPath",7),P=y(t,"exportError",7),A,B=be(void 0),F=be(!1),O=be(!1),N=be(0),U=be(""),C=be(""),z=be(!1),J=be(""),Q=be(Vr(Ho)),$=be(n),Ie=be(""),le=be(Cl()),se=be(void 0),ue,we=be(void 0),G=be(!1);const pe=u(()=>c()??e(le)),oe=u(()=>l()!=="loading"&&(l()!=="error"||!!e(pe).current)),Ne=u(()=>!s()&&o()&&!!a().trim()&&e(oe)),Le=u(()=>Math.min(Oc,Math.max(Ho,e(Q)))),Se=u(()=>s()||l()==="loading"?"loading":o()?a().trim()?e(J)?"error":e(z)?"ready":"loading":"empty":"incomplete"),_e=u(()=>s()||l()==="loading"||e(Ne)&&!e(z)&&!e(J));function He(Y){const xe={...Y,current:e(se)??Y.current};L(le,xe),f()?.(xe)}function Ue(){const Y=e(se);!Y||e(pe).scenarios.length>=El||(He({...e(pe),scenarios:[...e(pe).scenarios,{id:crypto.randomUUID(),name:Zf({number:pl(e(pe).scenarios.length+1)}),snapshot:structuredClone(Y)}]}),L(G,!0))}function ie(Y,xe){const Ke=xe.trim().slice(0,120);Ke&&He({...e(pe),scenarios:e(pe).scenarios.map(rt=>rt.id===Y?{...rt,name:Ke}:rt)})}function ee(Y){const xe=structuredClone(Y);L(se,xe),L(we,xe),He({...e(pe),current:xe}),L(N,e(N)+1)}function Ze(Y){return typeof Y=="number"?pl(Y):typeof Y=="string"?Y:JSON.stringify(Y)}function V(){!e(B)?.contentWindow||!e(C)||e(B).contentWindow.postMessage({channel:e(C),type:"theme",theme:Dc(A)},"*")}function K(Y){let xe=A.parentElement;for(;xe;){const Ke=getComputedStyle(xe),rt=xe.scrollHeight-xe.clientHeight;if(/^(auto|scroll|overlay)$/.test(Ke.overflowY)&&rt>1){if(Y<0?xe.scrollTop>0:xe.scrollTop<rt){xe.dispatchEvent(new WheelEvent("wheel",{deltaY:Y,bubbles:!0})),xe.scrollTop+=Y;return}if(/^(contain|none)$/.test(Ke.overscrollBehaviorY))return}xe=xe.parentElement}window.scrollBy({top:Y,behavior:"instant"})}It(()=>{if(!e(F))return;const Y=a(),xe=e(Ne);e(N),En(()=>{ue!==Y&&(L(le,Cl()),L(se,void 0),L(G,!1),L(we,void 0),ue=Y),L(z,!1),L(J,""),L(Ie,""),L(Q,Ho,!0),L(C,crypto.randomUUID(),!0),L(U,xe?b0(Y,e(C),Dc(A),dl(),e(we)??e(se)??e(pe).current):"",!0),L(we,void 0)})}),Es(()=>{L(F,!0);const Y=ht=>{if(ht.source!==e(B)?.contentWindow||ht.origin!=="null")return;const je=ht.data;if(!(!je||typeof je!="object"||je.channel!==e(C)))if(je.type==="resize"&&typeof je.height=="number"&&Number.isFinite(je.height)&&je.height>=0)L(Q,Math.min(Oc,Math.ceil(je.height)),!0);else if(je.type==="ready")L(z,!0),V();else if(je.type==="error"&&typeof je.message=="string")L(J,je.message.slice(0,300),!0);else if(je.type==="layout"&&typeof je.message=="string")L(Ie,je.message.slice(0,300),!0);else if(je.type==="snapshot"&&e(Ne)&&Si(je.snapshot)){const vt=je.snapshot;L(se,vt),He({...e(pe),current:vt})}else je.type==="wheel"&&e(z)&&e(Ne)&&!e(O)&&!e(_e)&&typeof je.deltaY=="number"&&Number.isFinite(je.deltaY)&&je.deltaY!==0&&Math.abs(je.deltaY)<=zu&&K(je.deltaY)},xe=()=>{L($,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},Ke=new MutationObserver(V);Ke.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const rt=window.matchMedia("(prefers-color-scheme: dark)");return rt.addEventListener("change",V),window.addEventListener("message",Y),window.addEventListener("resize",xe),xe(),()=>{Ke.disconnect(),rt.removeEventListener("change",V),window.removeEventListener("message",Y),window.removeEventListener("resize",xe)}});var W={get source(){return a()},set source(Y){a(Y),_()},get isStreaming(){return s()},set isStreaming(Y=!1){s(Y),_()},get isComplete(){return o()},set isComplete(Y=!0){o(Y),_()},get record(){return c()},set record(Y){c(Y),_()},get storageStatus(){return l()},set storageStatus(Y="ready"){l(Y),_()},get onRecordChange(){return f()},set onRecordChange(Y){f(Y),_()},get onUseConfiguration(){return i()},set onUseConfiguration(Y){i(Y),_()},get onExport(){return p()},set onExport(Y){p(Y),_()},get onRetry(){return g()},set onRetry(Y){g(Y),_()},get storageError(){return T()},set storageError(Y){T(Y),_()},get exportStatus(){return b()},set exportStatus(Y){b(Y),_()},get exportPath(){return h()},set exportPath(Y){h(Y),_()},get exportError(){return P()},set exportError(Y){P(Y),_()},$set:zt,$on:(Y,xe)=>Ht(t,Y,xe)},ae=M0(),Ce=I(ae),Z=I(Ce);bt(Z,{variant:"ghost",size:"sm",get active(){return e(O)},get"aria-pressed"(){return e(O)},onclick:()=>{L(O,!e(O))},children:(Y,xe)=>{tr();var Ke=Mt();k(rt=>x(Ke,rt),[()=>e(O)?jf():Wf()]),d(Y,Ke)},$$slots:{default:!0}});var de=m(Z,2);{let Y=u(()=>!e(Ne));bt(de,{variant:"ghost",size:"sm",get disabled(){return e(Y)},onclick:()=>{L(N,e(N)+1)},children:(xe,Ke)=>{tr();var rt=Mt();k(ht=>x(rt,ht),[()=>Uf()]),d(xe,rt)},$$slots:{default:!0}})}w(Ce);var Ae=m(Ce,2);{var Fe=Y=>{var xe=_0(),Ke=qe(xe),rt=I(Ke),ht=R(rt,!0),je=m(rt,2);{var vt=ct=>{bt(ct,{variant:"ghost",size:"sm",get onclick(){return g()},children:(Ut,qt)=>{tr();var Zt=Mt();k(_t=>x(Zt,_t),[()=>Qf()]),d(Ut,Zt)},$$slots:{default:!0}})};D(je,ct=>{g()&&ct(vt)})}w(Ke);var ot=m(Ke,2);{var it=ct=>{var Ut=y0(),qt=R(Ut,!0);k(()=>x(qt,T())),d(ct,Ut)};D(ot,ct=>{T()&&ct(it)})}k(ct=>x(ht,ct),[()=>qf()]),d(Y,xe)};D(Ae,Y=>{l()==="error"&&Y(Fe)})}var tt=m(Ae,2);{var ge=Y=>{var xe=x0(),Ke=R(xe,!0);k(rt=>x(Ke,rt),[()=>s()?Vf():Kf()]),d(Y,xe)},Oe=Y=>{var xe=w0(),Ke=R(xe,!0);k(rt=>x(Ke,rt),[()=>o()?Jf():Gf()]),d(Y,xe)},q=Y=>{var xe=k0(),Ke=I(xe),rt=R(Ke,!0),ht=m(Ke,2),je=R(ht,!0);w(xe),k(vt=>{x(rt,vt),x(je,e(J))},[()=>Yf()]),d(Y,xe)};D(tt,Y=>{e(_e)?Y(ge):e(Ne)?e(J)&&Y(q,2):Y(Oe,1)})}var Me=m(tt,2),ve=I(Me);{var M=Y=>{var xe=S0();let Ke,rt;vr(xe,ht=>L(B,ht),()=>e(B)),k(ht=>{ne(xe,"title",ht),ne(xe,"srcdoc",e(U)),Ke=gt(xe,1,"block w-full border-0 svelte-1kkow1d",null,Ke,{"preview-hidden":e(O)||e(_e)}),ne(xe,"aria-hidden",e(O)||e(_e)),rt=An(xe,"",rt,{height:`${e(Le)}px`})},[()=>dl()]),d(Y,xe)};D(ve,Y=>{e(Ne)&&e(U)&&Y(M)})}var H=m(ve,2);{var me=Y=>{aa(Y,{get code(){return a()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e($)}})},Qe=Y=>{var xe=I0(),Ke=I(xe),rt=I(Ke);Ja(rt,{class:"h-4 w-32 max-w-1/2"});var ht=m(rt,2);Ja(ht,{class:"h-3 w-2/3"}),w(Ke);var je=m(Ke,2);Ja(je,{class:"aspect-video max-h-60 w-full rounded-lg"});var vt=m(je,2),ot=I(vt);Ja(ot,{class:"h-3 w-16"});var it=m(ot,2);Ja(it,{class:"h-2 min-w-0 flex-1"});var ct=m(it,2);Ja(ct,{class:"h-3 w-10"}),w(vt),w(xe),d(Y,xe)};D(H,Y=>{e(O)?Y(me):e(_e)&&Y(Qe,1)})}w(Me);var Te=m(Me,2);{var ze=Y=>{var xe=L0(),Ke=qe(xe),rt=I(Ke);{var ht=Ct=>{{let Yt=u(()=>!e(z)||!!e(J));bt(Ct,{size:"sm",get disabled(){return e(Yt)},onclick:()=>e(se)&&i()(e(se)),children:(At,he)=>{tr();var re=Mt();k(Ve=>x(re,Ve),[()=>$f()]),d(At,re)},$$slots:{default:!0}})}};D(rt,Ct=>{i()&&Ct(ht)})}var je=m(rt,2);{let Ct=u(()=>!e(z)||!!e(J)||e(pe).scenarios.length>=El);bt(je,{variant:"ghost",size:"sm",get disabled(){return e(Ct)},onclick:Ue,children:(Yt,At)=>{tr();var he=Mt();k(re=>x(he,re),[()=>Xf()]),d(Yt,he)},$$slots:{default:!0}})}var vt=m(je,2);{var ot=Ct=>{bt(Ct,{variant:"ghost",size:"sm",get active(){return e(G)},get"aria-expanded"(){return e(G)},onclick:()=>L(G,!e(G)),children:(Yt,At)=>{tr();var he=Mt();k(re=>x(he,re),[()=>ep()]),d(Yt,he)},$$slots:{default:!0}})};D(vt,Ct=>{e(pe).scenarios.length&&Ct(ot)})}var it=m(vt,2);{var ct=Ct=>{{let Yt=u(()=>!e(z)||b()==="saving");bt(Ct,{variant:"ghost",size:"sm",get disabled(){return e(Yt)},onclick:()=>p()({...e(pe),current:e(se)??null}),children:(At,he)=>{tr();var re=Mt();k(Ve=>x(re,Ve),[()=>tp()]),d(At,re)},$$slots:{default:!0}})}};D(it,Ct=>{p()&&Ct(ct)})}var Ut=m(it,2);{var qt=Ct=>{var Yt=C0(),At=R(Yt,!0);k(he=>x(At,he),[()=>l()==="saving"?rp():l()==="ready"?np():""]),d(Ct,Yt)};D(Ut,Ct=>{f()&&Ct(qt)})}w(Ke);var Zt=m(Ke,2);{var _t=Ct=>{var Yt=E0(),At=I(Yt),he=m(At);{var re=Ve=>{var nt=Mt();k(()=>x(nt,P())),d(Ve,nt)};D(he,Ve=>{b()==="error"&&P()&&Ve(re)})}w(Yt),k(Ve=>x(At,`${Ve??""} `),[()=>b()==="saving"?ap():b()==="saved"?sp({path:h()??""}):op()]),d(Ct,Yt)};D(Zt,Ct=>{b()&&Ct(_t)})}var Kt=m(Zt,2);{var Vt=Ct=>{var Yt=R0(),At=I(Yt),he=I(At),re=I(he),Ve=I(re),nt=R(Ve,!0),dt=m(Ve),We=R(dt,!0),X=m(dt);Lt(X,17,()=>e(pe).scenarios,ce=>ce.id,(ce,Pe)=>{var Ee=P0(),Be=I(Ee);{let ke=u(()=>cp());$a(Be,{get value(){return e(Pe).name},get"aria-label"(){return e(ke)},maxlength:120,onblur:$e=>{$e.currentTarget.value.trim()||($e.currentTarget.value=e(Pe).name),ie(e(Pe).id,$e.currentTarget.value)},onkeydown:$e=>{$e.key==="Enter"&&$e.currentTarget.blur(),$e.key==="Escape"&&($e.currentTarget.value=e(Pe).name,$e.currentTarget.blur())}})}var De=m(Be,2),Ge=I(De);bt(Ge,{variant:"ghost",size:"sm",onclick:()=>ee(e(Pe).snapshot),children:(ke,$e)=>{tr();var Je=Mt();k(et=>x(Je,et),[()=>ip()]),d(ke,Je)},$$slots:{default:!0}});var Ye=m(Ge,2);bt(Ye,{variant:"ghost",size:"sm",onclick:()=>He({...e(pe),scenarios:e(pe).scenarios.filter(ke=>ke.id!==e(Pe).id)}),children:(ke,$e)=>{tr();var Je=Mt();k(et=>x(Je,et),[()=>lp()]),d(ke,Je)},$$slots:{default:!0}}),w(De),w(Ee),d(ce,Ee)}),w(re),w(he);var fe=m(he);Lt(fe,20,()=>["inputs","results"],Mr,(ce,Pe)=>{const Ee=u(()=>Pe),Be=u(()=>Array.from(new Set([...Object.keys(e(se)[e(Ee)]),...e(pe).scenarios.flatMap(Ye=>Object.keys(Ye.snapshot[e(Ee)]))])));var De=wt(),Ge=qe(De);Lt(Ge,16,()=>e(Be),Ye=>Ye,(Ye,ke)=>{var $e=T0(),Je=I($e),et=R(Je,!0),st=m(Je);Lt(st,17,()=>[e(se),...e(pe).scenarios.map(at=>at.snapshot)],Mr,(at,ut)=>{var kt=A0(),mt=R(kt,!0);k(Ot=>x(mt,Ot),[()=>Object.hasOwn(e(ut)[e(Ee)],ke)?Ze(e(ut)[e(Ee)][ke]):"—"]),d(at,kt)}),w($e),k(()=>x(et,ke)),d(Ye,$e)}),d(ce,De)}),w(fe),w(At),w(Yt),k(ce=>{x(nt,e(se).title),x(We,ce)},[()=>dp()]),d(Ct,Yt)};D(Kt,Ct=>{e(G)&&e(pe).scenarios.length&&Ct(Vt)})}d(Y,xe)};D(Te,Y=>{e(se)&&e(Ne)&&Y(ze)})}return w(ae),vr(ae,Y=>A=Y,()=>A),k(()=>{ne(ae,"data-inline-html-status",e(Se)),ne(ae,"data-inline-html-layout",e(Ie)?"viewport-locked":void 0),ne(ae,"aria-busy",e(_e))}),d(r,ae),Wt(W)}var N0=S('<div class="w-full min-w-0"><!></div>');function O0(r,t){if(new.target)return Ft({component:O0,...r});jt(t,!0);const n=()=>St(e(b),"$agent$",s),a=()=>St(e(B),"$entry$",s),[s,o]=ia();let c=y(t,"block",7),l=y(t,"role",7),f=y(t,"workspaceId",7),i=y(t,"agentId",7),p=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),T=be(void 0);const b=u(()=>ao(i()??"")),h=u(()=>l()==="assistant"&&f()&&i()&&p()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!wd(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),c().metadata?.fenceStart??0]),source:c().content}:void 0),P=u(()=>!!(f()&&i()&&p()&&c().metadata?.fenceClosed&&!n())),A=u(()=>e(h)?nv(e(h)):""),B=u(()=>Bm(e(A)));It(()=>{e(h)&&Nt.dispatch($g(e(h)))});function F(Q){!f()||!i()||n()?.retiredAt||e(T)?.dispatchEvent(new CustomEvent(eb,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:Q}}))}var O={get block(){return c()},set block(Q){c(Q),_()},get role(){return l()},set role(Q){l(Q),_()},get workspaceId(){return f()},set workspaceId(Q){f(Q),_()},get agentId(){return i()},set agentId(Q){i(Q),_()},get messageId(){return p()},set messageId(Q){p(Q),_()},get contentBlockKey(){return g()},set contentBlockKey(Q=""){g(Q),_()},$set:zt,$on:(Q,$)=>Ht(t,Q,$)},N=wt(),U=qe(N);{var C=Q=>{var $=N0(),Ie=I($);{let le=u(()=>c().metadata?.isStreaming??!1),se=u(()=>c().metadata?.fenceClosed??!1),ue=u(()=>a()?.record),we=u(()=>e(h)?a()?.status??"loading":e(P)?"loading":"ready"),G=u(()=>a()?.error),pe=u(()=>e(h)?Ue=>Nt.dispatch(rv(e(A),Ue)):void 0),oe=u(()=>f()&&i()&&n()&&!n().retiredAt?F:void 0),Ne=u(()=>e(h)?()=>Nt.dispatch(tv(e(A))):void 0),Le=u(()=>e(h)?Ue=>Nt.dispatch(ev(e(A),crypto.randomUUID(),Ue)):void 0),Se=u(()=>a()?.export?.status),_e=u(()=>a()?.export?.path),He=u(()=>a()?.export?.error);Hu(Ie,{get source(){return c().content},get isStreaming(){return e(le)},get isComplete(){return e(se)},get record(){return e(ue)},get storageStatus(){return e(we)},get storageError(){return e(G)},get onRecordChange(){return e(pe)},get onUseConfiguration(){return e(oe)},get onRetry(){return e(Ne)},get onExport(){return e(Le)},get exportStatus(){return e(Se)},get exportPath(){return e(_e)},get exportError(){return e(He)}})}w($),vr($,le=>L(T,le),()=>e(T)),d(Q,$)},z=Q=>{aa(Q,{get code(){return c().content},language:"html"})};D(U,Q=>{l()==="assistant"?Q(C):Q(z,-1)})}d(r,N);var J=Wt(O);return o(),J}var D0=S('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function B0(r,t){if(new.target)return Ft({component:B0,...r});jt(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),_()},$set:zt,$on:(c,l)=>Ht(t,c,l)},s=D0(),o=R(s,!0);return k(()=>x(o,n())),d(r,s),Wt(a)}var F0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),z0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),H0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),j0=S('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),W0=S('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function U0(r,t){if(new.target)return Ft({component:U0,...r});jt(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:zt,$on:(b,h)=>Ht(t,b,h)},s=W0(),o=I(s),c=I(o);Pt(c,{get icon(){return id},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),f=R(l,!0);w(o);var i=m(o,2);Lt(i,21,n,b=>b.name+b.command,(b,h)=>{var P=j0(),A=I(P),B=I(A),F=I(B),O=R(F,!0),N=m(F,2);{var U=Ie=>{var le=F0(),se=R(le,!0);k(ue=>x(se,ue),[()=>v.chat_detectedScripts_service_badge()]),d(Ie,le)},C=Ie=>{var le=z0(),se=R(le,!0);k(ue=>x(se,ue),[()=>v.chat_detectedScripts_command_badge()]),d(Ie,le)};D(N,Ie=>{e(h).mode==="service"?Ie(U):Ie(C,-1)})}var z=m(N,2);{var J=Ie=>{var le=H0(),se=R(le,!0);k(()=>x(se,e(h).category)),d(Ie,le)};D(z,Ie=>{e(h).category&&e(h).category!=="other"&&Ie(J)})}w(B);var Q=m(B,2),$=R(Q,!0);w(A),w(P),k(()=>{x(O,e(h).name),x($,e(h).command)}),d(b,P)}),w(i);var p=m(i,2),g=I(p),T=R(g,!0);return w(p),w(s),k((b,h)=>{x(f,b),x(T,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:or(n().length)}):v.chat_detectedScripts_count_many({count:or(n().length)})]),d(r,s),Wt(a)}function q0(r,t){if(new.target)return Ft({component:q0,...r});jt(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),c=y(t,"onReject",7);function l(){o()?.(),na.success(v.chat_diffViewer_applied_toast())}function f(){c()?.(),na.info(v.chat_diffViewer_rejected_toast())}const i=u(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),g});var p={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return c()},set onReject(g){c(g),_()},$set:zt,$on:(g,T)=>Ht(t,g,T)};{let g=u(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());_s(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return Wt(p)}var V0=wa('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),Bc=wa("<circle></circle>"),K0=wa('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),G0=S('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function qs(r,t){if(new.target)return Ft({component:qs,...r});jt(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),c=u(()=>s()/2),l=u(()=>e(c)),f=u(()=>e(c)),i=u(()=>s()*.12),p=u(()=>e(c)-e(i)/2),g=u(()=>e(c)*.35),T=u(()=>2*Math.PI*e(g)),b=u(()=>Math.max(0,Math.min(1,a()))*e(T));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let P=u(()=>h[n()]||"currentColor");var A={get phase(){return n()},set phase(le){n(le),_()},get progress(){return a()},set progress(le=0){a(le),_()},get size(){return s()},set size(le=16){s(le),_()},get class(){return o()},set class(le=""){o(le),_()},$set:zt,$on:(le,se)=>Ht(t,le,se)},B=G0(),F=I(B),O=I(F),N=m(O);{var U=le=>{},C=le=>{var se=V0();k(()=>{ne(se,"cx",e(l)),ne(se,"cy",e(f)),ne(se,"r",e(g)*.8),ne(se,"stroke",e(P)),ne(se,"stroke-width",e(g)*1.5),ne(se,"stroke-dasharray",`${e(b)??""} ${e(T)??""}`),ne(se,"stroke-dashoffset",e(T)*.25),ne(se,"transform",`rotate(-90 ${e(l)??""} ${e(f)??""})`)}),d(le,se)},z=le=>{var se=Bc();k(()=>{ne(se,"cx",e(l)),ne(se,"cy",e(f)),ne(se,"r",e(p)*.6),ne(se,"fill",e(P))}),d(le,se)},J=le=>{var se=Bc();k(()=>{ne(se,"cx",e(l)),ne(se,"cy",e(f)),ne(se,"r",e(p)),ne(se,"fill",e(P))}),d(le,se)};D(N,le=>{n()==="planning"?le(U):n()==="building"?le(C,1):n()==="reviewing"?le(z,2):n()==="shipped"&&le(J,3)})}w(F);var Q=m(F,2);{var $=le=>{},Ie=le=>{var se=K0();k(()=>ne(se,"width",s()*.5)),d(le,se)};D(Q,le=>{n()==="reviewing"?le($):n()==="shipped"&&le(Ie,1)})}return w(B),k(()=>{ne(F,"width",s()),ne(F,"height",s()),ne(F,"viewBox",`0 0 ${s()??""} ${s()??""}`),gt(F,0,dr(o())),ne(O,"cx",e(l)),ne(O,"cy",e(f)),ne(O,"r",e(p)),ne(O,"stroke",e(P)),ne(O,"stroke-width",e(i))}),d(r,B),Wt(A)}var Fc=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),J0=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),zc=S('<span class="text-ui text-subtle truncate"> </span>'),Hc=S('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),jc=S('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),Y0=S('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),X0=S('<span class="text-ui text-subtle pl-4"> </span>'),Z0=S('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),Q0=S('<div class="text-ui text-subtle"> </div>'),$0=S("<!> <!> <!> <!>",1),ek=S('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),tk=S('<div class="rounded-[0.5px]"></div>');function ju(r,t){if(new.target)return Ft({component:ju,...r});jt(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),c=y(t,"barHeight",7,"16px"),l=y(t,"gap",7,"1px"),f=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=u(()=>{const{completed:N,inProgress:U,notStarted:C,total:z}=n();if(z===0)return[];const J=[...Array(N).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,C)).fill("notStarted")];return J.length<=s()?J:J.slice(J.length-s())}),g=u(()=>a().filter(N=>N.status==="complete")),T=u(()=>a().filter(N=>N.status==="in_progress"||N.status==="review_required")),b=u(()=>a().filter(N=>N.status!=="complete"&&N.status!=="in_progress"&&N.status!=="review_required"&&N.status!=="cancelled")),h=u(()=>a().filter(N=>N.status==="cancelled")),P=u(()=>a().length>0);var A={get stats(){return n()},set stats(N){n(N),_()},get tasks(){return a()},set tasks(N=[]){a(N),_()},get maxBars(){return s()},set maxBars(N=20){s(N),_()},get barWidth(){return o()},set barWidth(N="1px"){o(N),_()},get barHeight(){return c()},set barHeight(N="16px"){c(N),_()},get gap(){return l()},set gap(N="1px"){l(N),_()},get class(){return f()},set class(N){f(N),_()},$set:zt,$on:(N,U)=>Ht(t,N,U)},B=wt(),F=qe(B);{var O=N=>{Ko(N,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:C=>{var z=ek(),J=I(z),Q=I(J),$=R(Q,!0),Ie=m(Q,2),le=I(Ie);{var se=Le=>{var Se=Fc(),_e=I(Se);An(_e,"",{},{"background-color":"#22c55e"});var He=m(_e);w(Se),k(()=>x(He,` ${n().completed??""}`)),d(Le,Se)};D(le,Le=>{n().completed>0&&Le(se)})}var ue=m(le,2);{var we=Le=>{var Se=Fc(),_e=I(Se);An(_e,"",{},{"background-color":"#4F7BF7"});var He=m(_e);w(Se),k(()=>x(He,` ${n().inProgress??""}`)),d(Le,Se)};D(ue,Le=>{n().inProgress>0&&Le(we)})}var G=m(ue,2);{var pe=Le=>{var Se=J0(),_e=m(I(Se));w(Se),k(()=>x(_e,` ${n().notStarted??""}`)),d(Le,Se)};D(G,Le=>{n().notStarted>0&&Le(pe)})}w(Ie),w(J);var oe=m(J,2);{var Ne=Le=>{var Se=$0(),_e=qe(Se);Lt(_e,17,()=>e(T),Mr,(V,K)=>{var W=jc(),ae=I(W),Ce=I(ae);Co(Ce,{get status(){return e(K).status},size:14}),w(ae);var Z=m(ae,2),de=I(Z),Ae=R(de,!0),Fe=m(de,2);{var tt=ge=>{var Oe=Hc(),q=I(Oe);{let M=u(()=>e(K).agentState||"idle");hl(q,{get agentId(){return e(K).agentId},get state(){return e(M)},size:12,get specialist(){return e(K).agentSpecialist}})}var Me=m(q,2);{var ve=M=>{var H=zc(),me=R(H,!0);k(()=>x(me,e(K).agentName)),d(M,H)};D(Me,M=>{e(K).agentName&&M(ve)})}w(Oe),d(ge,Oe)};D(Fe,ge=>{e(K).agentId&&ge(tt)})}w(Z),w(W),k(()=>x(Ae,e(K).title)),d(V,W)});var He=m(_e,2);Lt(He,17,()=>e(b),Mr,(V,K)=>{var W=jc(),ae=I(W),Ce=I(ae);Co(Ce,{get status(){return e(K).status},size:14}),w(ae);var Z=m(ae,2),de=I(Z),Ae=R(de,!0),Fe=m(de,2);{var tt=ge=>{var Oe=Hc(),q=I(Oe);{let M=u(()=>e(K).agentState||"idle");hl(q,{get agentId(){return e(K).agentId},get state(){return e(M)},size:12,get specialist(){return e(K).agentSpecialist}})}var Me=m(q,2);{var ve=M=>{var H=zc(),me=R(H,!0);k(()=>x(me,e(K).agentName)),d(M,H)};D(Me,M=>{e(K).agentName&&M(ve)})}w(Oe),d(ge,Oe)};D(Fe,ge=>{e(K).agentId&&ge(tt)})}w(Z),w(W),k(()=>x(Ae,e(K).title)),d(V,W)});var Ue=m(He,2);{var ie=V=>{var K=Z0(),W=I(K);Lt(W,17,()=>e(g).slice(0,3),Mr,(Z,de)=>{var Ae=Y0(),Fe=I(Ae),tt=I(Fe);Co(tt,{status:"complete",size:12}),w(Fe);var ge=m(Fe,2),Oe=R(ge,!0);w(Ae),k(()=>x(Oe,e(de).title)),d(Z,Ae)});var ae=m(W,2);{var Ce=Z=>{var de=X0(),Ae=R(de,!0);k(Fe=>x(Ae,Fe),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:or(e(g).length-3)})]),d(Z,de)};D(ae,Z=>{e(g).length>3&&Z(Ce)})}w(K),d(V,K)};D(Ue,V=>{e(g).length>0&&V(ie)})}var ee=m(Ue,2);{var Ze=V=>{var K=Q0(),W=R(K,!0);k(ae=>x(W,ae),[()=>v.workspace_taskProgressBar_cancelled_label({count:or(e(h).length)})]),d(V,K)};D(ee,V=>{e(h).length>0&&V(Ze)})}d(Le,Se)};D(oe,Le=>{e(P)&&Le(Ne)})}w(z),k(Le=>x($,Le),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:or(n().completed),total:or(n().total)})]),d(C,z)},children:(C,z)=>{{let J=u(()=>Pn("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),Q=u(()=>`gap: ${l()}`),$=u(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:or(n().completed),total:or(n().total)}));bt(C,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(J)},get style(){return e(Q)},get"aria-label"(){return e($)},"data-task-progress-trigger":!0,children:(Ie,le)=>{var se=wt(),ue=qe(se);Lt(ue,17,()=>e(p),Mr,(we,G)=>{var pe=tk();let oe;k(()=>oe=An(pe,"",oe,{width:o(),height:c(),"background-color":i[e(G)]})),d(we,pe)}),d(Ie,se)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};D(F,N=>{n().total>0&&N(O)})}return d(r,B),Wt(A)}function Wi(r,t){if(new.target)return Ft({component:Wi,...r});jt(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),c=y(t,"selection",7),l=y(t,"class",7,"");const f=u(()=>vg(n(),c(),a()));var i={get items(){return n()},set items(p){n(p),_()},get ariaLabel(){return a()},set ariaLabel(p){a(p),_()},get open(){return s()},set open(p=!1){s(p),_()},get orientation(){return o()},set orientation(p="vertical"){o(p),_()},get selection(){return c()},set selection(p){c(p),_()},get class(){return l()},set class(p=""){l(p),_()},$set:zt,$on:(p,g)=>Ht(t,p,g)};return Cm(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>gg(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,T)=>{let b=()=>(T?.()).props;bt(g,yi(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,P)=>{Em(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),Wt(i)}var rk=S('<span class="contents"><!></span>'),nk=S("<!> <!>",1);function Wu(r,t){if(new.target)return Ft({component:Wu,...r});jt(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=u(()=>Ug(a()));let o=be(null);It(()=>{e(o)&&e(o).workspaceId!==n()&&L(o,null)});function c(h){const P=nd(h);P&&L(o,{...P,workspaceId:n()},!0)}function l(h){h.preventDefault(),h.stopPropagation();const P=h.currentTarget.getBoundingClientRect();L(o,{x:P.left,y:P.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){L(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:zt,$on:(h,P)=>Ht(t,h,P)},p=nk(),g=qe(p);{let h=u(()=>v.workspace_microKeyBadge_ariaLabel({number:or(a()+1)})),P=u(()=>v.workspace_microKeyBadge_tooltip({number:or(a()+1)})),A=u(()=>e(o)!==null);bt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(P)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(A)},children:(B,F)=>{var O=rk(),N=I(O);Jp(N,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(O),d(B,O)},$$slots:{default:!0}})}var T=m(g,2);{var b=h=>{{let P=u(()=>e(o)?.x??0),A=u(()=>e(o)?.y??0),B=u(()=>e(o)?.returnFocus),F=u(()=>v.workspace_card_assignMicroKey_label()),O=u(()=>Rh(n(),f));ad(h,{get x(){return e(P)},get y(){return e(A)},get returnFocus(){return e(B)},selection:"single",get ariaLabel(){return e(F)},get items(){return e(O)},onClickOutside:f})}};D(T,h=>{e(o)&&h(b)})}return d(r,p),Wt(i)}var ak=S('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),sk=S('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),ok=S('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),ik=S('<span data-workspace-card-pr-item=""><!></span>'),lk=S('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),ck=S('<span data-workspace-card-time=""><!></span>'),dk=S('<span aria-hidden="true"><!></span>'),uk=S("<div><!> <!> <!> <!></div>"),fk=S('<div data-workspace-card-hover-surface=""><!></div>'),pk=S('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),gk=S('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),vk=S('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),mk=S('<div class="text-sm font-semibold truncate"> </div>'),Wc=S('<span class="truncate"> </span>'),hk=S('<span class="text-muted-foreground">·</span>'),bk=S('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),yk=S('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),_k=S('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),xk=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),wk=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),kk=S('<div class="flex items-center text-ui"><span> </span></div>'),Sk=S('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),Ik=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),Ck=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),Ek=S('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function Uu(r,t){if(new.target)return Ft({component:Uu,...r});jt(t,!0);const n=()=>St(He,"$prMonitors$",c),a=()=>St(Ue,"$microConnected$",c),s=()=>St(ee,"$hidesOwnerActions$",c),o=()=>St(ie,"$workspaceKeySlot$",c),[c,l]=ia();let f=y(t,"workspace",7),i=y(t,"phase",7),p=y(t,"stats",7),g=y(t,"variant",7,"compact"),T=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),P=y(t,"isWaiting",7),A=y(t,"isPinned",7,!1),B=y(t,"streamingAgentIds",23,()=>[]),F=y(t,"hasSpec",7,!1),O=y(t,"isAgentRunning",7,!1),N=y(t,"agentDigest",7),U=y(t,"trailingLabel",7),C=y(t,"title",7),z=y(t,"repoName",7),J=y(t,"branch",7),Q=y(t,"onClick",7),$=y(t,"onAction",7),Ie=y(t,"onTogglePin",7),le=y(t,"onMarkAsRead",7),se=y(t,"onOpenInNewWindow",7),ue=y(t,"onHover",7),we=y(t,"highlighted",7,!1),G=y(t,"selected",7,!1),pe=y(t,"highlightId",7),oe=y(t,"suppressHover",7,!1),Ne=y(t,"isolateHoverReveal",7,!1),Le=y(t,"class",7),Se=y(t,"actions",7);const _e=Qa("");It(()=>{_e.set(f()?.id??"")});const He=Dp(_e),Ue=Vh(),ie=xv(_e),ee=Bp(_e),Ze=u(()=>Mh(f()??{})),V=u(()=>Nh(e(Ze)));let K=u(()=>f()?qh.url.pathname===`/workspace/${f().id}`:!1),W=u(()=>f()?`workspace-hover-card-${f().id}`:void 0),ae=be(!1),Ce=be(null),Z=be(null);It(()=>{if(!e(Z))return;const te=Os(e(Z),{id:pe()});return()=>te.destroy()});let de=be(null),Ae=be(null),Fe=be(null),tt=be(0),ge=be(0),Oe=u(()=>e(tt)+(e(ge)>0?e(ge)+4:0));function q(){const te=e(de),pt=e(Fe);L(tt,te?Math.max(0,te.scrollWidth-te.clientWidth):0,!0),L(ge,te&&pt&&pt.getClientRects().length>0?Math.max(0,te.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}It(()=>{const te=e(de),pt=e(Ae),Dt=e(Fe);if(!te||!pt||(q(),typeof ResizeObserver>"u"))return;const br=new ResizeObserver(q);return br.observe(te),br.observe(pt),Dt&&br.observe(Dt),()=>br.disconnect()});let Me=null,ve=null,M=!1,H=!1,me=!1,Qe=!1,Te=!1,ze=!1,Y=be(!1),xe=!1,Ke=null,rt=be(null),ht=null,je;function vt(){Me!==null&&(clearTimeout(Me),Me=null)}function ot(){ve!==null&&(clearTimeout(ve),ve=null),ht?.(),ht=null}function it(){ot(),L(Y,!0),L(ae,!0),!Te&&(Te=!0,fs.notifyOpened())}function ct(){ot(),clearTimeout(je),L(Y,!1),L(ae,!1),H=!1,Qe=!1,Te&&(Te=!1,fs.notifyClosed())}function Ut(){return M||H||me||Qe}function qt(){if(!e(ae)){ct();return}ot(),ve=setTimeout(()=>{ve=null,Ut()||ct()},Dh),ht=fs.deferClose(ct)}function Zt(){H=!0,ot()}function _t(){H=!1,!me&&!Qe&&qt()}function Kt(){Qe=!0,clearTimeout(je),ot()}function Vt(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;if(pt&&fe()?.contains(pt)||(Qe=!1,pt&&e(Ce)?.contains(pt)))return;if(pt){!M&&!H&&ct();return}const Dt=te.target;clearTimeout(je),je=setTimeout(()=>{const br=document.activeElement,yr=fe()?.contains(br)||e(Ce)?.contains(br);br&&br!==Dt&&yr||!M&&!H&&ct()},0)}function Ct(){Ke!==null&&clearTimeout(Ke),xe=!0,Ke=setTimeout(()=>{xe=!1,Ke=null},0)}function Yt(te){const pt=te.target,Dt=fe();pt instanceof Node&&Dt?.contains(pt)||te.type==="scroll"&&e(Ce)&&pt instanceof Node&&!pt.contains(e(Ce))||(te.type==="pointerdown"&&Ct(),vt(),ct())}It(()=>{if(e(Y))return window.addEventListener("pointerdown",Yt,!0),window.addEventListener("scroll",Yt,!0),()=>{window.removeEventListener("pointerdown",Yt,!0),window.removeEventListener("scroll",Yt,!0)}});function At(te){if(te.key!=="Escape")return;const pt=te.target;pt instanceof Node&&fe()?.contains(pt)||(te.preventDefault(),te.stopPropagation(),ze=me,vt(),ct())}It(()=>{if(e(ae))return window.addEventListener("keydown",At,!0),()=>window.removeEventListener("keydown",At,!0)});const he=u(()=>f()?zp.select(Nt.state,f().id):null),re=u(()=>e(he)?e(he):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),Ve=u(()=>Fp(f())),nt=u(()=>{if(!f()||e(Ve))return[];const te=f(),pt=te.repositoryOwner&&te.repositoryName?`${te.repositoryOwner}/${te.repositoryName}`:void 0;return mg({workspacePRs:te.pullRequests,activePR:e(re),monitors:n(),workspaceRepo:pt,buildPrUrl:(Dt,br)=>om(Dt,te.repositoryOwner,te.repositoryName,br),getDisplayTitle:Dt=>Dt.title})}),dt=u(()=>e(nt)[0]);function We(te){const pt=te.resource?.repository.provider==="gitlab"?`${te.repo} !${te.number}`:te.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:te.repo,number:te.number}):v.workspace_card_prBadge_label({number:` #${te.number}`});return[Hp(pt,te),te.title,te.details].filter(Boolean).join(`
|
|
262
262
|
`)}function X(te){te.key==="Enter"&&Q()?.(te)}function fe(){return e(W)?document.getElementById(e(W)):null}function ce(){return Array.from(fe()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Pe(){const te=e(Ce)?.querySelector("[data-workspace-card-trigger]"),pt=fe();if(!te||!pt)return null;const Dt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(yr=>yr.tabIndex>=0&&!pt.contains(yr)),br=Dt.indexOf(te);return br>=0?Dt[br+1]:null}function Ee(te){ze=!!e(Ce)?.contains(te),ct(),te.focus({preventScroll:!0})}function Be(){const te=e(Ce)?.querySelector("[data-workspace-card-trigger]");te&&Ee(te)}async function De(te){if(te.key==="Escape"&&e(ae)){te.preventDefault(),te.stopPropagation(),ct();return}te.key!=="ArrowDown"||oe()||!f()||(te.preventDefault(),te.stopPropagation(),L(Y,!0),L(ae,!0),await Qn(),ce()[0]?.focus({preventScroll:!0}))}function Ge(te){const pt=ce(),Dt=te.key==="Tab"&&te.shiftKey&&te.currentTarget===pt[0],yr=te.key==="Tab"&&!te.shiftKey&&te.currentTarget===pt.at(-1)?Pe():null;te.key!=="Escape"&&!Dt&&!yr||(te.preventDefault(),te.stopPropagation(),yr?Ee(yr):Be())}function Ye(){M=!0,ot(),fs.settleDeferredCloses(),q(),ue()?.(),f()&&!oe()&&!me&&(vt(),L(Y,!0),Me=setTimeout(()=>{Me=null,it()},fs.currentOpenDelay))}function ke(){M=!1,vt(),!me&&!Qe&&qt()}function $e(){me=!0,vt(),ot(),!ze&&(xe||f()&&!oe()&&(L(Y,!0),L(ae,!0)))}function Je(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;pt&&e(Ce)?.contains(pt)||(ze=!1,me=!1,!(pt&&fe()?.contains(pt))&&!M&&!H&&ct())}It(()=>{oe()&&(vt(),ot(),ct())});let et=be(null),st=be(!1),at;It(()=>{const te=f()?.id;at!==te&&(at=te,L(st,!1)),e(et)&&e(et).workspaceId!==f()?.id&&kt()});function ut(te){if(!f())return;const pt=nd(te);if(pt){if(L(st,!1),mt().length===0){L(et,null);return}L(et,{...pt,returnFocus:te.target instanceof HTMLElement?te.target.closest("button")??e(Ce)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function kt(){L(et,null),L(st,!1)}It(()=>{e(st)&&L(et,null)}),Is(()=>{vt(),ot(),Ke!==null&&(clearTimeout(Ke),Ke=null),ct()});function mt(){if(!f())return[];const te=[];return se()&&te.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:dd,onClick:()=>{se()?.(),kt()}}),te.push(...Oh(f().id,{connected:a(),onClose:kt})),s()||(e(Ve)||te.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:Mg,onClick:()=>{Nt.dispatch(av({workspaceId:f().id,workspaceTitle:f().title})),kt()}}),te.push({id:"archive",label:v.workspace_card_archive_label(),icon:ud,onClick:()=>{Nt.dispatch(kd(f().id)),kt()}}),te.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:fd,destructive:!0,onClick:()=>{Nt.dispatch(Sd(f().id)),kt()}})),te}let Ot=u(()=>O()&&N()?N():i()?.subtitle??""),Gt=u(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),$t=u(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),fr=u(()=>e(Ve)?void 0:J()),Br=u(()=>!p()||e(Ve)?"":p().pr.hasMerged?v.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?v.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),fn=u(()=>i()?.phase==="planning"?O()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:F()||(p()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const Tn={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var Fn={get workspace(){return f()},set workspace(te){f(te),_()},get phase(){return i()},set phase(te){i(te),_()},get stats(){return p()},set stats(te){p(te),_()},get variant(){return g()},set variant(te="compact"){g(te),_()},get showTime(){return T()},set showTime(te=!0){T(te),_()},get isRunning(){return b()},set isRunning(te=!1){b(te),_()},get isUnread(){return h()},set isUnread(te=!1){h(te),_()},get isWaiting(){return P()},set isWaiting(te){P(te),_()},get isPinned(){return A()},set isPinned(te=!1){A(te),_()},get streamingAgentIds(){return B()},set streamingAgentIds(te=[]){B(te),_()},get hasSpec(){return F()},set hasSpec(te=!1){F(te),_()},get isAgentRunning(){return O()},set isAgentRunning(te=!1){O(te),_()},get agentDigest(){return N()},set agentDigest(te){N(te),_()},get trailingLabel(){return U()},set trailingLabel(te){U(te),_()},get title(){return C()},set title(te){C(te),_()},get repoName(){return z()},set repoName(te){z(te),_()},get branch(){return J()},set branch(te){J(te),_()},get onClick(){return Q()},set onClick(te){Q(te),_()},get onAction(){return $()},set onAction(te){$(te),_()},get onTogglePin(){return Ie()},set onTogglePin(te){Ie(te),_()},get onMarkAsRead(){return le()},set onMarkAsRead(te){le(te),_()},get onOpenInNewWindow(){return se()},set onOpenInNewWindow(te){se(te),_()},get onHover(){return ue()},set onHover(te){ue(te),_()},get highlighted(){return we()},set highlighted(te=!1){we(te),_()},get selected(){return G()},set selected(te=!1){G(te),_()},get highlightId(){return pe()},set highlightId(te){pe(te),_()},get suppressHover(){return oe()},set suppressHover(te=!1){oe(te),_()},get isolateHoverReveal(){return Ne()},set isolateHoverReveal(te=!1){Ne(te),_()},get class(){return Le()},set class(te){Le(te),_()},get actions(){return Se()},set actions(te){Se(te),_()},$set:zt,$on:(te,pt)=>Ht(t,te,pt)},kn=wt(),ua=qe(kn);{var Ar=te=>{var pt=pk(),Dt=qe(pt);let br;var yr=I(Dt);{let yt=u(()=>f().title||v.workspace_links_untitled_label()),Et=u(()=>`workspace-status-state-${f().id}${A()?` workspace-pinned-state-${f().id}`:""}${e(ae)?` ${e(W)}`:""}`),ur=u(()=>e(K)?"page":void 0);bt(yr,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(yt)},get"aria-describedby"(){return e(Et)},get"aria-current"(){return e(ur)},"data-workspace-card-trigger":!0,onkeydown:De,onclick:_r=>{_r.stopPropagation(),Q()?.(_r)}})}var mn=m(yr,2),jr=I(mn);{var zn=yt=>{var Et=ak(),ur=I(Et);{var _r=Rr=>{Wu(Rr,{get workspaceId(){return f().id},get slot(){return o()}})};D(ur,Rr=>{o()!==null&&Rr(_r)})}w(Et),d(yt,Et)};D(jr,yt=>{a()&&yt(zn)})}var Hn=m(jr,2);Ko(Hn,{get content(){return e(V).tooltip},side:"bottom",sideOffset:4,children:(yt,Et)=>{Lh(yt,{get status(){return e(Ze)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var jn=m(Hn,2),Kn=R(jn,!0);w(mn);var Kr=m(mn,2),hn=I(Kr),Jt=I(hn),tn=I(Jt),$n=R(tn,!0);vr(tn,yt=>L(Ae,yt),()=>e(Ae)),w(Jt),vr(Jt,yt=>L(de,yt),()=>e(de));var Pr=m(Jt,2);{var Tr=yt=>{var Et=sk(),ur=qe(Et),_r=I(ur);Pt(_r,{get icon(){return wl},size:"xs"}),w(ur);var Rr=m(ur,2),j=R(Rr,!0);k(Re=>{gt(ur,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
|
|
263
|
-
${Ie()?we()?"opacity-0":oe()?"":Ne()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ne(Rr,"id",`workspace-pinned-state-${f().id??""}`),x(j,Re)},[()=>v.layout_activeCard_pinned_header()]),d(yt,Et)};D(Pr,yt=>{A()&&yt(Tr)})}w(hn);var rn=m(hn,2);{var fa=yt=>{var Et=ok(),ur=R(Et,!0);k(()=>x(ur,U())),d(yt,Et)};D(rn,yt=>{U()&&yt(fa)})}var Gr=m(rn,2);{var Jr=yt=>{const Et=u(()=>e(dt));var ur=lk(),_r=I(ur);{let Rr=u(()=>We(e(Et)));Ko(_r,{get content(){return e(Rr)},side:"bottom",sideOffset:4,children:(j,Re)=>{var ft=wt(),Qt=qe(ft);{var lr=xr=>{{let Ir=u(()=>We(e(Et)));bt(xr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Et).foregroundClass??""}`},get"aria-label"(){return e(Ir)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Et).identity},get"data-pr-status"(){return e(Et).status},onclick:Qr=>{Qr.stopPropagation();const Or=f().id;up(async()=>{const{handleLink:nn}=await import("./
|
|
263
|
+
${Ie()?we()?"opacity-0":oe()?"":Ne()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ne(Rr,"id",`workspace-pinned-state-${f().id??""}`),x(j,Re)},[()=>v.layout_activeCard_pinned_header()]),d(yt,Et)};D(Pr,yt=>{A()&&yt(Tr)})}w(hn);var rn=m(hn,2);{var fa=yt=>{var Et=ok(),ur=R(Et,!0);k(()=>x(ur,U())),d(yt,Et)};D(rn,yt=>{U()&&yt(fa)})}var Gr=m(rn,2);{var Jr=yt=>{const Et=u(()=>e(dt));var ur=lk(),_r=I(ur);{let Rr=u(()=>We(e(Et)));Ko(_r,{get content(){return e(Rr)},side:"bottom",sideOffset:4,children:(j,Re)=>{var ft=wt(),Qt=qe(ft);{var lr=xr=>{{let Ir=u(()=>We(e(Et)));bt(xr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Et).foregroundClass??""}`},get"aria-label"(){return e(Ir)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Et).identity},get"data-pr-status"(){return e(Et).status},onclick:Qr=>{Qr.stopPropagation();const Or=f().id;up(async()=>{const{handleLink:nn}=await import("./DhS8xtLF.js").then(Gn=>Gn.H);return{handleLink:nn}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65]),import.meta.url).then(({handleLink:nn})=>nn(e(Et).url,{workspaceId:Or,event:Qr}))},children:(Qr,Or)=>{Pt(Qr,{get icon(){return e(Et).statusIcon},size:14})},$$slots:{default:!0}})}},ar=xr=>{var Ir=ik(),Qr=I(Ir);Pt(Qr,{get icon(){return e(Et).statusIcon},size:14}),w(Ir),k(Or=>{gt(Ir,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Et).foregroundClass??""}`,"svelte-1ct56pd"),ne(Ir,"aria-label",Or),ne(Ir,"data-pr-identity",e(Et).identity),ne(Ir,"data-pr-status",e(Et).status)},[()=>We(e(Et))]),d(xr,Ir)};D(Qt,xr=>{e(Et).url?xr(lr):xr(ar,-1)})}d(j,ft)},$$slots:{default:!0}})}w(ur),k(Rr=>ne(ur,"aria-label",Rr),[()=>e(Et).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(yt,ur)};D(Gr,yt=>{e(dt)&&yt(Jr)})}var Yr=m(Gr,2);{var ea=yt=>{var Et=ck(),ur=I(Et);{var _r=j=>{{let Re=u(()=>Pl(f()));Yp(j,{get date(){return e(Re)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},Rr=u(()=>Pl(f())>0);D(ur,j=>{e(Rr)&&j(_r)})}w(Et),k(()=>gt(Et,1,`wc-secondary shrink-0 ${Se()||Ie()||h()&&le()?we()?"opacity-0":oe()?"":Ne()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(yt,Et)};D(Yr,yt=>{T()&&yt(ea)})}w(Kr);var Pa=m(Kr,2);{var Da=yt=>{var Et=uk(),ur=I(Et);{var _r=lr=>{{let ar=u(()=>A()?"text-primary-ink":"text-muted-foreground"),xr=u(()=>A()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),Ir=u(()=>A()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());bt(lr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
|
|
264
264
|
${e(ar)??""}`},onclick:Qr=>{Qr.stopPropagation(),Ie()?.(Qr)},get"aria-label"(){return e(xr)},get title(){return e(Ir)},children:(Qr,Or)=>{var nn=dk(),Gn=I(nn);Pt(Gn,{get icon(){return wl},size:"xs"}),w(nn),d(Qr,nn)},$$slots:{default:!0}})}};D(ur,lr=>{Ie()&&lr(_r)})}var Rr=m(ur,2);{var j=lr=>{{let ar=u(()=>v.workspace_card_markAsRead_label()),xr=u(()=>v.workspace_card_markAsRead_label());bt(lr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:Ir=>{Ir.stopPropagation(),le()?.(Ir)},get"aria-label"(){return e(ar)},get title(){return e(xr)},children:(Ir,Qr)=>{Pt(Ir,{get icon(){return pd},size:"xs"})},$$slots:{default:!0}})}};D(Rr,lr=>{h()&&le()&&lr(j)})}var Re=m(Rr,2);vn(Re,()=>Se()??Vs);var ft=m(Re,2);{var Qt=lr=>{{let ar=u(mt),xr=u(()=>v.workspace_progressCard_actions_ariaLabel());Wi(lr,{get items(){return e(ar)},get ariaLabel(){return e(xr)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(st)},set open(Ir){L(st,Ir,!0)}})}};D(ft,lr=>{se()&&lr(Qt)})}w(Et),vr(Et,lr=>L(Fe,lr),()=>e(Fe)),k(()=>gt(Et,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
|
|
265
265
|
${Ne()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
|
|
266
266
|
${we()?"opacity-100":oe()?"opacity-0":Ne()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),d(yt,Et)};D(Pa,yt=>{(Se()||se()||Ie()||h()&&le())&&yt(Da)})}w(Dt),vr(Dt,yt=>L(Ce,yt),()=>e(Ce)),Bn(Dt,(yt,Et)=>Os?.(yt,Et),()=>({id:pe()}));var Xr=m(Dt,2);{var Zr=yt=>{Bh(yt,{get id(){return e(W)},get anchor(){return`--workspace-list-${f().id??""}`},position:"right",get anchorElement(){return e(Ce)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Zt,onmouseleave:_t,onfocusin:Kt,onfocusout:Vt,children:(Et,ur)=>{var _r=fk(),Rr=I(_r);Fh(Rr,{get workspace(){return f()},get activeAgentIds(){return B()},onkeydown:Ge}),w(_r),vr(_r,j=>L(rt,j),()=>e(rt)),Cn("pointerenter",_r,Zt),Cn("pointerleave",_r,_t),Nr("focusin",_r,Kt),Nr("focusout",_r,Vt),d(Et,_r)},$$slots:{default:!0}})};D(Xr,yt=>{e(ae)&&!oe()&&yt(Zr)})}var bn=m(Xr,2);{var ta=yt=>{const Et=u(mt);var ur=wt(),_r=qe(ur);{var Rr=j=>{{let Re=u(()=>e(et)?.x??0),ft=u(()=>e(et)?.y??0),Qt=u(()=>e(et)?.returnFocus),lr=u(()=>v.workspace_progressCard_actions_ariaLabel());ad(j,{get x(){return e(Re)},get y(){return e(ft)},get returnFocus(){return e(Qt)},get ariaLabel(){return e(lr)},get items(){return e(Et)},onClickOutside:kt})}};D(_r,j=>{e(Et).length>0&&j(Rr)})}d(yt,ur)};D(bn,yt=>{e(et)&&yt(ta)})}k((yt,Et,ur)=>{gt(Dt,1,yt,"svelte-1ct56pd"),ne(Dt,"data-pinned",A()),ne(Dt,"data-highlight-id",pe()),br=An(Dt,"",br,{"anchor-name":`--workspace-list-${f().id??""}`}),ne(jn,"id",`workspace-status-state-${f().id??""}`),x(Kn,e(V).accessibleName),gt(Jt,1,`wc-title type-body min-w-0 truncate font-normal!
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as W}from"./
|
|
1
|
+
import{I as W}from"./BiAXEt6Z.js";import{p as X}from"./BWTGvXuX.js";import{b0 as z,a_ as G,aZ as Y,Y as P,U as F,V as Z,b as g,q as N,ay as A,aX as q,B as U,W as E,r as j,aV as J,a0 as K,O as Q,aO as ee}from"./DScre-It.js";import{p as te}from"./DZNiVEO-.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,V=/^[\s│┃]+$/,T=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
|
|
2
2
|
`),e=new Map;let r=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){r=p;break}if(r===-1)return{text:n,lineMap:e};const s=[];for(let p=r+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||T.test(c)||V.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:n,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=r;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=r+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c))continue;const l=c.replace(/\t/g," "),w=D.exec(l);if(w?.index!==void 0){const f=w.index,m=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&ne.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const O=re.repeat(m);o.push(O+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(L.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
|
|
3
3
|
`),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new W(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),j()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=Q.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((n,t,e,r,s,i)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:n,name:t,nodeType:e,icon:s,cssClass:r,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:Z,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:z},I=de,he=g(n=>{X(n,I);for(const t of n.nodes){const e=typeof t.indent=="number"?t.indent:0;let r=t.name;const s=r.endsWith("/");s&&(r=r.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?J(c,E()):void 0;I.addNode(e,r,i,o,p,d)}},"populate"),pe={parse:g(async n=>{const{text:t,lineMap:e}=R(n);try{const r=await te("treeView",t);A.debug(r),he(r)}catch(r){throw e.size>0&&r instanceof Error&&(r.message=S(r.message,e)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(n,t){const e=t?.filenameIcons?.[n];if(e)return e;const r=n.lastIndexOf(".");if(r>0){const s=n.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(n,t){return n.includes(":")?n:n in b.icons||!t?`${b.prefix}:${n}`:`${t}:${n}`}g(C,"qualifyIcon");function B(n,t){if(n.icon!=="none"){if(n.icon)return C(n.icon,t.defaultIconPack);if(t.showIcons){if(n.nodeType==="file"){const e=H(n.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(n,t)=>{const e=[],r=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(r)},"collect");r(n);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await K(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),we=g((n,t,e,r,s,i)=>{const o=r.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:w}=h.node().getBBox(),f=l+s.paddingY*2,m=n+s.paddingX+(d?p:0);h.attr("x",m),h.attr("y",t+f/2);const u=m+w,v=w+s.paddingX*2+(d?p:0);return e.BBox={x:n,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",n).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((n,t,e,r,s,i)=>n.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),me=g((n,t,e,r)=>{let s=0,i=0;const o=[],a=g((d,h,l,w)=>{const f=w*(l.rowIndent+l.paddingX),m=we(f,s,h,d,l,r);o.push(m);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(n,d,e,h),d.children.forEach(m=>{p(m,h+1)});const{x:l,y:w,height:f}=d.BBox;if(d.children.length){const{y:m,height:u}=d.children[d.children.length-1].BBox;k(n,l+e.paddingX,w+f,l+e.paddingX,m+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(n,t,e,r)=>{A.debug(`Rendering treeView diagram
|
|
4
4
|
`+n);const s=r.db,i=s.getRoot(),o=s.getConfig(),a=q(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=me(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:n})=>{const{labelFontSize:t,labelColor:e,lineColor:r,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,n);return`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as r}from"./DOOwa8vh.js";import{w as a,I as e}from"./BC9FUDR5.js";import{Ie as s}from"./qsR_yQtS.js";import{c as t}from"./
|
|
1
|
+
import{i as r}from"./DOOwa8vh.js";import{w as a,I as e}from"./BC9FUDR5.js";import{Ie as s}from"./qsR_yQtS.js";import{c as t}from"./BAlmypgJ.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as I}from"./
|
|
1
|
+
import{p as I}from"./BWTGvXuX.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./DScre-It.js";import{p as U}from"./DZNiVEO-.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
|
|
2
2
|
.radarCurve-${r} {
|
|
3
3
|
color: ${s};
|
|
4
4
|
fill: ${s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as i}from"./
|
|
1
|
+
import{b as i}from"./DScre-It.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aZ as pi,U as mi,Y as $t,b0 as yi,V as bi,a_ as Ai,b as n,ay as Ut,aX as wi,B as Ci,r as Si,W as Tt,aV as Ri,q as qt,O as _i,a6 as ki,A as Ti,av as Ft}from"./
|
|
1
|
+
import{aZ as pi,U as mi,Y as $t,b0 as yi,V as bi,a_ as Ai,b as n,ay as Ut,aX as wi,B as Ci,r as Si,W as Tt,aV as Ri,q as qt,O as _i,a6 as ki,A as Ti,av as Ft}from"./DScre-It.js";import{b as Xt,l as Yt}from"./BhwE5q7q.js";var St=(function(){var e=n(function(O,r,g,u){for(g=g||{},u=O.length;u--;g[O[u]]=r);return g},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],h=[1,6],c=[1,7],m=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],d=[1,26],w=[1,28],k=[1,29],P=[1,30],W=[1,31],F=[1,32],v=[1,33],z=[1,34],b=[1,35],T=[1,36],l=[1,37],I=[1,43],V=[1,42],X=[1,47],Y=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],A=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],C=[1,65],M=[26,28],_={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(r,g,u,x,S,o,lt){var p=o.length-1;switch(S){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:x.setXAxisTitle(o[p]);break;case 25:x.setXAxisTitle(o[p-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[p]);break;case 28:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:x.setYAxisTitle(o[p]);break;case 33:x.setYAxisTitle(o[p-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:a,37:h,38:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:a,37:h,38:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:a,37:h,38:c}),{1:[2,3]},e(m,[2,5]),e(t,[2,7],{4:22,36:a,37:h,38:c}),{11:23,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:39,13:38,24:I,29:V,30:f,31:40,32:41,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:45,15:44,29:X,30:f,35:46,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:49,17:48,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:52,17:51,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{20:[1,53]},{22:[1,54]},e(R,[2,18]),{1:[2,2]},e(R,[2,8]),e(R,[2,9]),e(H,[2,39],{41:55,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l}),e(H,[2,40]),e(H,[2,41]),e(A,[2,42]),e(A,[2,44]),e(A,[2,45]),e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),e(A,[2,53]),e(R,[2,10]),e(R,[2,24],{32:41,31:56,24:I,29:V}),e(R,[2,26]),e(R,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,11]),e(R,[2,32],{35:60,29:X}),e(R,[2,34]),{33:[1,61]},e(R,[2,12]),{17:62,24:Y},{25:63,27:64,29:C},e(R,[2,14]),{17:66,24:Y},e(R,[2,16]),e(R,[2,17]),e(A,[2,43]),e(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(R,[2,33]),{29:[1,70]},e(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(M,[2,23],{30:[1,73]}),e(R,[2,15]),e(R,[2,28]),e(R,[2,29]),{11:59,30:f,34:74,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,35]),e(R,[2,19]),{25:75,27:64,29:C},e(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(r,g){if(g.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=g,u}},"parseError"),parse:n(function(r){var g=this,u=[0],x=[],S=[null],o=[],lt=this.table,p="",dt=0,zt=0,ui=2,Vt=1,di=o.slice.call(arguments,1),D=Object.create(this.lexer),$={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&($.yy[bt]=this.yy[bt]);D.setInput(r,$.yy),$.yy.lexer=D,$.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var At=D.yylloc;o.push(At);var xi=D.options&&D.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(E){u.length=u.length-2*E,S.length=S.length-E,o.length=o.length-E}n(fi,"popStack");function Ot(){var E;return E=x.pop()||D.lex()||Vt,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=g.symbols_[E]||E),E}n(Ot,"lex");for(var L,U,B,wt,j={},xt,N,Wt,ft;;){if(U=u[u.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((L===null||typeof L>"u")&&(L=Ot()),B=lt[U]&<[U][L]),typeof B>"u"||!B.length||!B[0]){var Ct="";ft=[];for(xt in lt[U])this.terminals_[xt]&&xt>ui&&ft.push("'"+this.terminals_[xt]+"'");D.showPosition?Ct="Parse error on line "+(dt+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+ft.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Ct="Parse error on line "+(dt+1)+": Unexpected "+(L==Vt?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[L]||L,line:D.yylineno,loc:At,expected:ft})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+L);switch(B[0]){case 1:u.push(L),S.push(D.yytext),o.push(D.yylloc),u.push(B[1]),L=null,zt=D.yyleng,p=D.yytext,dt=D.yylineno,At=D.yylloc;break;case 2:if(N=this.productions_[B[1]][1],j.$=S[S.length-N],j._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},xi&&(j._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),wt=this.performAction.apply(j,[p,zt,dt,$.yy,B[1],S,o].concat(di)),typeof wt<"u")return wt;N&&(u=u.slice(0,-1*N*2),S=S.slice(0,-1*N),o=o.slice(0,-1*N)),u.push(this.productions_[B[1]][0]),S.push(j.$),o.push(j._$),Wt=lt[u[u.length-2]][u[u.length-1]],u.push(Wt);break;case 3:return!0}}return!0},"parse")},rt=(function(){var O={EOF:1,parseError:n(function(g,u){if(this.yy.parser)this.yy.parser.parseError(g,u);else throw new Error(g)},"parseError"),setInput:n(function(r,g){return this.yy=g||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var g=r.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:n(function(r){var g=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===x.length?this.yylloc.first_column:0)+x[x.length-u.length].length-u[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(r){this.unput(this.match.slice(r))},"less"),pastInput:n(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var r=this.pastInput(),g=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as Ge,bq as m,bo as d,a_ as me,by as qe,b as He,bt as Fr,bu as mt,bs as Sr}from"./BfQ563mx.js";import{bs as je,ay as q,be as dt,b$ as tt,b_ as V,bO as G,W as h,bS as g,aD as e,a7 as _t,bl as he,bn as Ze,c9 as b,aA as _,aB as Z,ca as Pe,c0 as ht,bH as i,a5 as Q,bA as ee,bV as M,br as xt,bk as Tr,bj as $r,bf as Co,c5 as Ct,aw as Yt,bz as ko,cd as qt}from"./DYhIMPy1.js";import{c as J}from"./DJAu4Zb4.js";import{n as br,p as Io,v as Pt,u as Xe,w as Eo,I as Po,g as kt}from"./qIk9Tsyc.js";import{b as vt}from"./BaIAhI85.js";import{d as mr}from"./
|
|
1
|
+
import{t as Ge,bq as m,bo as d,a_ as me,by as qe,b as He,bt as Fr,bu as mt,bs as Sr}from"./BfQ563mx.js";import{bs as je,ay as q,be as dt,b$ as tt,b_ as V,bO as G,W as h,bS as g,aD as e,a7 as _t,bl as he,bn as Ze,c9 as b,aA as _,aB as Z,ca as Pe,c0 as ht,bH as i,a5 as Q,bA as ee,bV as M,br as xt,bk as Tr,bj as $r,bf as Co,c5 as Ct,aw as Yt,bz as ko,cd as qt}from"./DYhIMPy1.js";import{c as J}from"./DJAu4Zb4.js";import{n as br,p as Io,v as Pt,u as Xe,w as Eo,I as Po,g as kt}from"./qIk9Tsyc.js";import{b as vt}from"./BaIAhI85.js";import{d as mr}from"./Dk77Zjyj.js";import{H as Ro,G as Lo,I as Fo}from"./BC9FUDR5.js";import{c as or}from"./ChTqQfQN.js";import{a as So}from"./CC7to1B5.js";import{f as Le,bc as To}from"./CRZOxGK4.js";import{k as at}from"./3k5l7Vm0.js";import{s as $o}from"./CJ_pF2zV.js";import{ci as Ur,F as ve,a4 as Uo,aV as No,an as Ao,cD as Bo,aI as Oo,aW as Jt,Y as nr,_ as ar,aZ as Mo,as as Do,cc as Nr,bN as Ar,b6 as Ko,cM as Br,cg as Or,au as Vo}from"./DQFM25fD.js";import"./CnZz0xYN.js";import{Ie as Ee,fN as Wo,br as zo,yY as Go,yk as qo,Kc as _r,dI as Ho,bL as jo,Kb as Zo,u6 as Xo,K9 as hr,gt as Yo,tt as Jo,Ka as Qo,JR as yr,K8 as xr}from"./qsR_yQtS.js";import{a as Mr,B as It}from"./BvFAWM27.js";import{cp as en}from"./DDUxYsSw.js";import{a0 as tn}from"./DSU6qB1T.js";import{w as rn,K as on}from"./CGP-GxkE.js";import{I as $t}from"./EAgHwpox.js";import{d as nn}from"./D519D3JC.js";import{aa as an}from"./BoGENHro.js";import{i as Qt}from"./DOOwa8vh.js";import{i as sn,a as ln}from"./C6OTgNsA.js";import{R as dn,k as Ht,l as lt,j as un,i as ze,p as Dr,h as Kr,K as cn,m as fn,o as gn,n as vn,M as Vr}from"./C9J8VIvu.js";import{B as pn}from"./DhS8xtLF.js";import"./Tn8zuzKd.js";import{t as Ne}from"./BoLyAHbw.js";import{M as Wr}from"./CdTtwv4K.js";import"./aBRcRCfT.js";import"./DFDT6MWU.js";import{b as wn}from"./DtLaIqJF.js";import"./BCyGnKhu.js";import{o as Cr,s as it,n as St}from"./CIyUrgF0.js";import{g as bn}from"./DfN8_dcw.js";import{f as mn}from"./Bdi5rqYS.js";import{aD as _n,a1 as hn,Q as yn}from"./BzqFIvca.js";import{aO as xn}from"./hs4yH6xH.js";function Cn(o,r){return o.loadURL(r)}function kn(o){return{previousUrlProp:o||null}}function kr(o,r){o.previousUrlProp=r}function In(o,r,a){const v=a||r;return o.previousUrlProp===v?null:(o.previousUrlProp=v,v)}function En(o,r,a){return r?o.previousUrlProp===null?(o.previousUrlProp=r,{shouldLoad:!1,targetUrl:null}):r===o.previousUrlProp?{shouldLoad:!1,targetUrl:null}:a.webviewReady?(o.previousUrlProp=r,a.isValidBrowserUrl(r)?{shouldLoad:!0,targetUrl:r}:{shouldLoad:!1,targetUrl:null}):{shouldLoad:!1,targetUrl:null}:{shouldLoad:!1,targetUrl:null}}const zr=or("TabBoundsReporter"),Pn=150;function jt(o,r,a){!(r>0)||!(a>0)||window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o,width:r,height:a}).catch(v=>{zr.debug("Failed to report tab bounds",{tabId:o,error:v})})}function Ir(o){window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o}).catch(r=>{zr.debug("Failed to clear tab bounds",{tabId:o,error:r})})}function Rn(o,r){let a=r,v;const P=typeof ResizeObserver>"u"?void 0:new ResizeObserver(R=>{if(!a)return;const E=R[R.length-1]?.contentRect;if(!E)return;const w=a;clearTimeout(v),v=setTimeout(()=>{jt(w,E.width,E.height)},Pn)});if(P?.observe(o),a){const R=o.getBoundingClientRect();jt(a,R.width,R.height)}return{update(R){if(R!==a&&(clearTimeout(v),a&&Ir(a),a=R,a)){const E=o.getBoundingClientRect();jt(a,E.width,E.height)}},destroy(){clearTimeout(v),P?.disconnect(),a&&Ir(a)}}}function Gr(o){let r=o.trim();if(!r)return null;/^[a-z][a-z0-9+.-]*:\/\//i.test(r)||(r=(r.includes("localhost")||r.includes("127.0.0.1")||r.includes("0.0.0.0")?"http://":"https://")+r);try{return new URL(r),r}catch{return null}}function st(o,r=typeof window<"u"?window.location.origin:""){return o==="about:blank"||qr(o,r)}function qr(o,r=typeof window<"u"?window.location.origin:""){if(!o)return!1;try{const a=new URL(o);return Mr.NAVIGATION_ALLOWED.includes(a.protocol)&&a.origin!==r}catch{return!1}}const er="__INTENT_PANEL_BRACKET__:",Ln=`
|
|
2
2
|
(function() {
|
|
3
3
|
if (window.__augmentKeyboardInterceptorInstalled) return;
|
|
4
4
|
window.__augmentKeyboardInterceptorInstalled = true;
|