@intent-hq/web 2.340.6 → 2.340.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{ByV5esjn.js → -dNCsu7w.js} +1 -1
- package/web/app/immutable/chunks/{Dcwc2djA.js → 1tkamMao.js} +1 -1
- package/web/app/immutable/chunks/{DTlEKJqy.js → 2P2kVPCB.js} +1 -1
- package/web/app/immutable/chunks/{C_CKJxnP.js → 8Wbpf7N2.js} +1 -1
- package/web/app/immutable/chunks/{fRLs4n3O.js → 9HsXeNBx.js} +1 -1
- package/web/app/immutable/chunks/{TZGe3OMK.js → 9twPAssU.js} +1 -1
- package/web/app/immutable/chunks/{CWLAsMTB.js → 9wnHE4mj.js} +1 -1
- package/web/app/immutable/chunks/{BBY6C0IK.js → AI_b5jlG.js} +1 -1
- package/web/app/immutable/chunks/{DKhiTKbW.js → B4deWBhm.js} +1 -1
- package/web/app/immutable/chunks/{B1qx8JJ_.js → B7TRhc1v.js} +1 -1
- package/web/app/immutable/chunks/{OFHFLNje.js → BEt4M6gK.js} +2 -2
- package/web/app/immutable/chunks/{M1A49W9w.js → BFda-Ujs.js} +1 -1
- package/web/app/immutable/chunks/{Ge0uEEo-.js → BGjqhE-a.js} +1 -1
- package/web/app/immutable/chunks/{CVd9x_8V.js → BJqh-N9X.js} +1 -1
- package/web/app/immutable/chunks/{C_x1sZu2.js → BJtCQYdU.js} +1 -1
- package/web/app/immutable/chunks/{BcZAt1_H.js → BKTUcy0r.js} +3 -3
- package/web/app/immutable/chunks/{C_p-Kfor.js → BMc0RC3L.js} +1 -1
- package/web/app/immutable/chunks/{CIjJMeHw.js → BPMHMdjQ.js} +1 -1
- package/web/app/immutable/chunks/{BxiYmwg2.js → BT4M00FE.js} +1 -1
- package/web/app/immutable/chunks/{iU77M41Z.js → B_1oD9ZO.js} +2 -2
- package/web/app/immutable/chunks/{etHGd3Hq.js → Ba0MC1Ai.js} +1 -1
- package/web/app/immutable/chunks/{DFMpUCE8.js → Bbp2vgh6.js} +1 -1
- package/web/app/immutable/chunks/{BY0E1iP7.js → Bd92SfyX.js} +1 -1
- package/web/app/immutable/chunks/{D__EtvuY.js → Be8QAJjH.js} +1 -1
- package/web/app/immutable/chunks/{D6ufKi8g.js → BeQsg97d.js} +1 -1
- package/web/app/immutable/chunks/{B3SoCSkY.js → BejYO45s.js} +1 -1
- package/web/app/immutable/chunks/{C4C9aEqJ.js → Bh2qnIyE.js} +12 -12
- package/web/app/immutable/chunks/{CqeYZsFI.js → Bj8OOzrW.js} +1 -1
- package/web/app/immutable/chunks/{DC6din1b.js → Bkb2JppZ.js} +1 -1
- package/web/app/immutable/chunks/{COrX_n08.js → BmOVoAuP.js} +1 -1
- package/web/app/immutable/chunks/{1zzTvnVt.js → Bnny-UX2.js} +1 -1
- package/web/app/immutable/chunks/{CrbgiVvK.js → Boe_FU77.js} +1 -1
- package/web/app/immutable/chunks/{D6l7oMHI.js → Br8Z_nmS.js} +1 -1
- package/web/app/immutable/chunks/{t5zcSjIO.js → BsJepqY8.js} +1 -1
- package/web/app/immutable/chunks/{gNoxwZxZ.js → Bsgx3c3i.js} +1 -1
- package/web/app/immutable/chunks/{b1l2x0MA.js → Bu6kTDqK.js} +1 -1
- package/web/app/immutable/chunks/{Dl0GU3up.js → ByPwCkMc.js} +4 -4
- package/web/app/immutable/chunks/{DiTnb1P-.js → ByuW8CQ3.js} +1 -1
- package/web/app/immutable/chunks/{DkQ_WhSU.js → BzJYuxYV.js} +1 -1
- package/web/app/immutable/chunks/{BMbaoyFH.js → C0P4m-SB.js} +4 -4
- package/web/app/immutable/chunks/{eTOAo4LX.js → C3YthNht.js} +1 -1
- package/web/app/immutable/chunks/{8nZ72cNt.js → C490-vcB.js} +1 -1
- package/web/app/immutable/chunks/{6LOqOXDu.js → C4qv7Dpg.js} +1 -1
- package/web/app/immutable/chunks/{DJSbaLBj.js → C4zS7Es5.js} +1 -1
- package/web/app/immutable/chunks/{CsM0rIyN.js → C6HaR2KP.js} +1 -1
- package/web/app/immutable/chunks/{BAFq1AFI.js → CDYDn5lR.js} +1 -1
- package/web/app/immutable/chunks/{FY5Q7suL.js → CG-wUQnZ.js} +1 -1
- package/web/app/immutable/chunks/{DiKVnNpA.js → CKAixUGj.js} +4 -4
- package/web/app/immutable/chunks/{HhkQjHUK.js → CLeKPrPb.js} +1 -1
- package/web/app/immutable/chunks/{CjsX479D.js → COHkleOL.js} +1 -1
- package/web/app/immutable/chunks/{C1bFKEcb.js → CQZlhl3K.js} +1 -1
- package/web/app/immutable/chunks/{CeTeqcAO.js → CTnbGelF.js} +1 -1
- package/web/app/immutable/chunks/{CZR5ZTNX.js → CVsEKB0R.js} +1 -1
- package/web/app/immutable/chunks/{D5kuJ4AR.js → CX8H2ves.js} +1 -1
- package/web/app/immutable/chunks/{CKQKk1Ku.js → CXIgxu2a.js} +1 -1
- package/web/app/immutable/chunks/{CHLArQrL.js → CYsnGP7P.js} +1 -1
- package/web/app/immutable/chunks/{CxfJ9pVE.js → CZwWYP-m.js} +1 -1
- package/web/app/immutable/chunks/{j4tkFfox.js → CbDqUsqr.js} +1 -1
- package/web/app/immutable/chunks/{O-VmbRsR.js → Ccyhl2kf.js} +1 -1
- package/web/app/immutable/chunks/{HbSy1-Xh.js → CdYZLRXg.js} +1 -1
- package/web/app/immutable/chunks/{D5ODnJqN.js → Cdz-dTJc.js} +1 -1
- package/web/app/immutable/chunks/{D-KeFJd1.js → CkeU3F3D.js} +1 -1
- package/web/app/immutable/chunks/{Bwp_IhBH.js → Cn5zzBrS.js} +1 -1
- package/web/app/immutable/chunks/{D0Sca-Fp.js → Cp_23Eo7.js} +3 -3
- package/web/app/immutable/chunks/{CVzPOOwl.js → CsQEs72A.js} +1 -1
- package/web/app/immutable/chunks/{BC4m0ek2.js → CvyuoqmI.js} +1 -1
- package/web/app/immutable/chunks/{BWRv4jYV.js → D0Zs15zf.js} +1 -1
- package/web/app/immutable/chunks/{CH3vrkAm.js → D0_C6Y6w.js} +1 -1
- package/web/app/immutable/chunks/{BgOcyw2D.js → D7XO4i7w.js} +1 -1
- package/web/app/immutable/chunks/{yzCQdK92.js → D8dKPp7k.js} +1 -1
- package/web/app/immutable/chunks/{CV7aDOaJ.js → D8zuzFHW.js} +1 -1
- package/web/app/immutable/chunks/{3AB6s4tE.js → DA9827Ou.js} +1 -1
- package/web/app/immutable/chunks/{CzcNn8BK.js → DAvg18a7.js} +1 -1
- package/web/app/immutable/chunks/{HqU78q0z.js → DB-R65cd.js} +2 -2
- package/web/app/immutable/chunks/{4pPr0TbX.js → DD0ZWM8H.js} +1 -1
- package/web/app/immutable/chunks/{YCf9YQ0d.js → DF6fRPMU.js} +1 -1
- package/web/app/immutable/chunks/{QkOzjVQc.js → DKPjRtn_.js} +4 -4
- package/web/app/immutable/chunks/{B6-_n61y.js → DM3oLKKN.js} +6 -6
- package/web/app/immutable/chunks/{_zYQ1N4x.js → DQQN34Q0.js} +1 -1
- package/web/app/immutable/chunks/{Kdx_EaUx.js → DTdxkg7G.js} +1 -1
- package/web/app/immutable/chunks/{4ky4SrJc.js → DTgdngdm.js} +1 -1
- package/web/app/immutable/chunks/{BkJEcisi.js → DV6BiHtA.js} +1 -1
- package/web/app/immutable/chunks/{D8DWZHUq.js → DZE3URJN.js} +1 -1
- package/web/app/immutable/chunks/{Ns2qHkqi.js → DdK8ZPOk.js} +2 -2
- package/web/app/immutable/chunks/{D15H4oRf.js → De1NHw-5.js} +1 -1
- package/web/app/immutable/chunks/{Cp6myVhl.js → DhIZOm2E.js} +1 -1
- package/web/app/immutable/chunks/{DQkPf_4w.js → DmShYb80.js} +1 -1
- package/web/app/immutable/chunks/{mNy9r7LX.js → DnpKDKHX.js} +1 -1
- package/web/app/immutable/chunks/{YX1522DG.js → DnxyCPYU.js} +1 -1
- package/web/app/immutable/chunks/{cSOpNTcQ.js → Dogti_VQ.js} +3 -3
- package/web/app/immutable/chunks/{CexA-t1b.js → Doi4K0nr.js} +1 -1
- package/web/app/immutable/chunks/{K0eFxcR7.js → DrYvitBx.js} +1 -1
- package/web/app/immutable/chunks/{C5VTexpW.js → DxGvCXqx.js} +1 -1
- package/web/app/immutable/chunks/{CU9XHYHQ.js → DzaVJwKP.js} +1 -1
- package/web/app/immutable/chunks/{B0YUMwLM.js → ETQYVXfv.js} +1 -1
- package/web/app/immutable/chunks/{_c0b5RiW.js → EfsySr-7.js} +1 -1
- package/web/app/immutable/chunks/{BGxwES8N.js → GLaUdcVG.js} +1 -1
- package/web/app/immutable/chunks/{HOnzeXNV.js → GhBVkn0A.js} +1 -1
- package/web/app/immutable/chunks/{D-zxUN6t.js → KsUNEVwc.js} +1 -1
- package/web/app/immutable/chunks/{Cj01MC7B.js → LUmI1RpP.js} +1 -1
- package/web/app/immutable/chunks/{DCuF_YI1.js → Lbcfa2vI.js} +2 -2
- package/web/app/immutable/chunks/{BUFX_mPw.js → R998t4dy.js} +3 -3
- package/web/app/immutable/chunks/{CAOpOF2d.js → S2KOBxse.js} +1 -1
- package/web/app/immutable/chunks/{Biff1vjc.js → X_GAP9Jd.js} +3 -3
- package/web/app/immutable/chunks/{Cm5DOj9x.js → _621KNlC.js} +1 -1
- package/web/app/immutable/chunks/{BxD5AERd.js → _laUUQkK.js} +2 -2
- package/web/app/immutable/chunks/{DBunkriw.js → a4p9mH2a.js} +1 -1
- package/web/app/immutable/chunks/{Dk9BwVWN.js → b-9RFiLF.js} +2 -2
- package/web/app/immutable/chunks/{Df793aTM.js → dUdcU4jc.js} +2 -2
- package/web/app/immutable/chunks/{BIW9BxTL.js → iI3ATVN9.js} +1 -1
- package/web/app/immutable/chunks/{DYlIySpa.js → iteVAcc8.js} +1 -1
- package/web/app/immutable/chunks/{sKfkOhQG.js → kjcC8vHg.js} +1 -1
- package/web/app/immutable/chunks/{BkhvDlGb.js → lG8YRSFt.js} +1 -1
- package/web/app/immutable/chunks/{DnLbLSkh.js → lo4jmysS.js} +1 -1
- package/web/app/immutable/chunks/{D8GJMKxV.js → oAhLaZGg.js} +1 -1
- package/web/app/immutable/chunks/{BYUG1_M-.js → pAZeyaYi.js} +1 -1
- package/web/app/immutable/chunks/{CnztRGqH.js → pBo-Ckpw.js} +1 -1
- package/web/app/immutable/chunks/{DL0xgk9b.js → qIqnGNYN.js} +1 -1
- package/web/app/immutable/chunks/{ox9Bg2sp.js → v5Ulh8Hm.js} +1 -1
- package/web/app/immutable/chunks/{DvhuEIzR.js → xUweO4ts.js} +1 -1
- package/web/app/immutable/chunks/{B9O8hRmi.js → xpVEpcY9.js} +1 -1
- package/web/app/immutable/chunks/{CULXF2Qp.js → yz8u5JJg.js} +1 -1
- package/web/app/immutable/entry/{app.F2xw-XeW.js → app.B1_sCwR_.js} +2 -2
- package/web/app/immutable/entry/start.DpOilleL.js +1 -0
- package/web/app/immutable/nodes/{0.BNZhTpvz.js → 0.Dm_Wrn8a.js} +1 -1
- package/web/app/immutable/nodes/{1.D6TO8-ms.js → 1.tHwXdWHU.js} +1 -1
- package/web/app/immutable/nodes/{10.BlEex6Ex.js → 10.CH-P0d_x.js} +1 -1
- package/web/app/immutable/nodes/{14.-lSIKZBv.js → 14.DHU-88k0.js} +1 -1
- package/web/app/immutable/nodes/{17.ffmdCuSw.js → 17.BVdrxt4z.js} +2 -2
- package/web/app/immutable/nodes/{2.Dm8kTJ3J.js → 2.CYfia3l7.js} +4 -4
- package/web/app/immutable/nodes/{3.Ch4CnbVo.js → 3.LTzWUntu.js} +1 -1
- package/web/app/immutable/nodes/{4.B1MnBi41.js → 4.DmnpJbBQ.js} +1 -1
- package/web/app/immutable/nodes/{5.CT6EoSVV.js → 5.OcCkV4TE.js} +1 -1
- package/web/app/immutable/nodes/{6.DGscet-O.js → 6.BX-GHMl7.js} +1 -1
- package/web/app/immutable/nodes/{7.BXLXL53Q.js → 7.845VSiaM.js} +1 -1
- package/web/app/immutable/nodes/{8.C4OalPt9.js → 8.DhfxJ-A6.js} +4 -4
- package/web/app/immutable/nodes/{9.ClM472Gh.js → 9.ByyuHyJR.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.BYKhwMoZ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as St,br as x,bz as Rt,bt as wt,b as It,bv as g}from"./Cv-W__h8.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as vt,bH as M,bV as V,aA as F}from"./DYhIMPy1.js";import{b as kt}from"./BaIAhI85.js";import{Ir as l,eu as Ut,ev as At,sq as Bt,nZ as xt,n_ as Ft,IY as _t,Jd as Lt,J1 as Tt,o2 as _}from"./DBkMUdAo.js";import{b7 as Dt}from"./
|
|
1
|
+
import{t as St,br as x,bz as Rt,bt as wt,b as It,bv as g}from"./Cv-W__h8.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as vt,bH as M,bV as V,aA as F}from"./DYhIMPy1.js";import{b as kt}from"./BaIAhI85.js";import{Ir as l,eu as Ut,ev as At,sq as Bt,nZ as xt,n_ as Ft,IY as _t,Jd as Lt,J1 as Tt,o2 as _}from"./DBkMUdAo.js";import{b7 as Dt}from"./DKPjRtn_.js";import{g as Wt}from"./DfN8_dcw.js";import{dr as Et,bA as Gt,bC as Mt,bz as Vt,bE as zt,c$ as Nt,f as Ht}from"./B10dK85Q.js";import{C as qt}from"./D8dKPp7k.js";import{V as Jt}from"./CQsysHl4.js";import{bR as Yt,bL as Zt,b6 as jt}from"./1tkamMao.js";import{i as L,n as z}from"./H2jLkRRS.js";import{ae as Kt}from"./BKTUcy0r.js";function Ot(T,$){if(new.target)return St({component:Ot,...T});Pt($,!0);const N=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),H=()=>g(nt,"$ftCommits$",c),q=()=>g(lt,"$rootGitRoots$",c),b=()=>g(st,"$ftChanges$",c),J=()=>g(tt,"$foldUnchanged",c),Y=()=>g(X,"$lineWrapping",c),Z=()=>g(et,"$diffSideBySide",c),j=()=>g(rt,"$ftLoading$",c),K=()=>g(it,"$ftBoundarySha$",c),[c,O]=wt(),Q=o=>{Jt(o,{embedded:!0,showExpand:!0,get expanded(){return t(R)},onToggleExpand:()=>{M(R,!t(R)),t(R)?t(w)?.expandAll():t(w)?.collapseAll()},get foldEnabled(){return J()},onToggleFold:()=>l.dispatch(Tt()),get wrapEnabled(){return Y()},onToggleWrap:()=>l.dispatch(Lt()),get splitEnabled(){return Z()},onToggleSplit:()=>l.dispatch(_t())})},X=Yt(),tt=Zt(),et=jt();let P=x($,"tab",7),m=x($,"workspaceId",7),C=x($,"isActive",7);const D=Wt(),p=Dt(()=>m()),ot=Et(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=Kt(p),S=s(()=>N().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),v=s(()=>t(S)?.path||t(h)),st=Gt(p),nt=Mt(p),it=Vt(p),rt=zt(p),dt=s(()=>H()||[]),lt=Nt(p),f=s(()=>q()[t(n)]??Ht),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(S)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(Bt(o,i,t(S)?.registeredCommitSha,100))});let R=V(!0),w=V(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(v)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(v)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=b().filter(e=>e.stage==="unstaged"),i=b().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&L(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,B=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:B,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function k(o){if(!t(h))return o;const i=z(o),e=z(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(_(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(k),source:"localChanges"}))}function E(o){l.dispatch(_(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(k),source:"localChanges"}))}function ht(o){l.dispatch(_(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(k),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Q})});const G=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(xt(o,G)),()=>l.dispatch(Ft(o,G))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:Rt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):j()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(v):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(S)?.registeredCommitSha||null:K()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),B=s(()=>t(n)?void 0:d=>void E([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=b().filter(u=>u.stage==="unstaged");W(d.map(u=>u.relativePath||u.file))}),bt=s(()=>t(n)?void 0:()=>{const d=b().filter(u=>u.stage==="staged");E(d.map(u=>u.relativePath||u.file))});kt(qt(T,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(B)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(bt)}}),d=>M(w,d,!0),()=>t(w))}var $t=vt(ft);return O(),$t}export{Ot as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gT as O,gz as U,IF as P,Jr as q,Cw as z,tl as N,uh as V,z$ as J,A0 as K,ID as Q,IE as j,A1 as X}from"./DBkMUdAo.js";import{Q as f,o as Y,C as Z,e as M,l as S,p as ee,u as te,v as ae}from"./BtpuPEaR.js";import{g as ne}from"./
|
|
1
|
+
import{gT as O,gz as U,IF as P,Jr as q,Cw as z,tl as N,uh as V,z$ as J,A0 as K,ID as Q,IE as j,A1 as X}from"./DBkMUdAo.js";import{Q as f,o as Y,C as Z,e as M,l as S,p as ee,u as te,v as ae}from"./BtpuPEaR.js";import{g as ne}from"./CdYZLRXg.js";import{bp as l}from"./Cv-W__h8.js";import{b5 as oe,a9 as y}from"./BePtUMMB.js";import{B as h,S as I}from"./GdlMbZRO.js";import{aq as ce,ao as E}from"./DB-R65cd.js";import{g as le}from"./Bgdxwo64.js";function A(e,a){const n=f.select(e.state),o=S.select(e.state);if(!o)return null;const c=n.indexOf(o),s=c+(a==="left"?-1:1),p=n[s];return c<0||!p?null:(e.dispatch(N(o,p,a==="left"?"before":"after")),o)}function B(e){const a=S.select(e);return a&&f.select(e).includes(a)?a:null}function m(e,a,n){const o=B(e.state),c=o?`/workspace/${o}`:ne(e.state);return a!==c&&n(c),o}function se(e,a,n,o){return e.dispatch(O(a)),m(e,n,o),a}function W(e,a){const o=a.match(/^\/workspace\/([^/]+)/)?.[1];return o?o==="new"?null:o:null}function R(e,a,n,o){if(n==="/")return F(e,a==="next"?0:"last",n,o);e.dispatch(a==="next"?Q():j());const c=S.select(e.state);if(!c)return null;const s=`/workspace/${c}`;return n!==s&&o(s),c}function ie(e,a,n){const o=W(e,a);return o?se(e,o,a,n):null}function re(e,a,n){const o=W(e,a);if(!o)return null;const c=Y.select(e.state,o);if(!c)return null;const s=c.tabs.find(v=>v.id===c.activeTabId),p=c.tabs.length===0&&c.activeTabId===null,g=Z.select(e.state,o)>1&&(p||c.tabs.length===1&&s!==void 0&&s.closable!==!1);if((!s||s.closable===!1)&&!g)return null;const T=n??le(o)?.availableCanvasWidth??void 0;return e.dispatch(U(o,void 0,T)),s?.id??c.id}function pe(e,a){const n=e.state.panelLayout.byWorkspaceId[a];return!n||n.restoreStatus==="pending"?!1:M.select(e.state,a).length===0}function ue(e,a,n){B(e.state)||e.dispatch(P(0)),m(e,a,n)}function L(e,a,{navigate:n,closeWindow:o}){return o?(o(),"window"):(m(e,a,n),null)}function de(e,a,n){const o=W(e,a);return o?re(e,a,n.availableCanvasWidth)!==null?"panel":pe(e,o)?(e.dispatch(O(o)),f.select(e.state).length>0?(ue(e,a,n.navigate),"workspace"):L(e,a,n)??"workspace"):null:f.select(e.state).length>0?null:L(e,a,n)}function be(e,a,n){return e.dispatch(X()),m(e,a,n)}function fe(e,a,n){const o=a.match(/^\/workspace\/([^/]+)/),c=o&&o[1]!=="new"?o[1]:null,s=te.select(e.state),p=c?ae.select(e.state,c):null;return c&&p&&(!s||p.closedAt>=s.closedAt)?p.kind==="column"?(e.dispatch(J(c)),"column"):(e.dispatch(K(c)),p.kind):s?(be(e,a,n),"workspace"):null}function ke(e,a){const n=a.match(/^\/workspace\/([^/]+)/),o=n&&n[1]!=="new"?n[1]:null;if(!o)return null;const c=V(o);return e.dispatch(c),ee.select(e.state,o)}function F(e,a,n,o){const c=f.select(e.state),s=a==="last"?c.length-1:a;return s<0||s>=c.length?null:(e.dispatch(P(s)),m(e,n,o))}function Ie({isMac:e,register:a,store:n,getCurrentPath:o,navigate:c,openNewWorkspace:s,getRailMachineIds:p,onCreateAgent:g,onCreateNote:T,onCreateTerminal:v,onCreateBrowser:$,onWorkspaceTabMoved:C,closeWindow:D,resolveBinding:_}){const r=e?{meta:!0}:{ctrl:!0},G=oe("TOGGLE_SIDEBAR",e),k=t=>()=>t(o()),H=t=>()=>{const i=o().match(/^\/workspace\/([^/]+)/);i?.[1]&&i[1]!=="new"&&t(i[1])},u=t=>_?{binding:()=>_(t)}:{},w=t=>_?.(t)??I[t];a({...u("global.new-space"),...r,key:"n",global:!0,description:l.workspace_shortcuts_newSpace_description(),action:s}),a({...u("panel.toggle-sidebar"),...G,global:!0,description:y.TOGGLE_SIDEBAR.label,action:()=>n.dispatch(q())}),a({...u("navigation.new-tab"),...r,key:"t",global:!0,description:l.workspace_shortcuts_newPanel_description(),action:k(t=>ke(n,t))});for(const[t,i,b,d]of[["workspace.new-agent","a",l.ui_shortcuts_newAgent_label(),g],["workspace.new-note","n",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_note_label()}),T],["workspace.new-terminal","t",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_terminal_label()}),v],["workspace.new-browser","b",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_browser_label()}),$]])d&&a({...u(t),...r,key:i,alt:!0,global:!0,allowInTerminal:!0,description:b,action:H(d)});a({...u("navigation.close-tab"),...r,key:"w",global:!0,description:l.workspace_shortcuts_closePanelTab_description(),action:k(t=>de(n,t,{navigate:c,closeWindow:D}))}),a({...u("navigation.close-space-tab"),...r,key:"w",shift:!0,global:!0,description:l.workspace_shortcuts_closeSpaceTab_description(),action:k(t=>ie(n,t,c))}),a({...u("navigation.reopen-tab"),...r,key:"t",shift:!0,global:!0,description:l.workspace_shortcuts_reopenClosedTabOrSpace_description(),action:k(t=>fe(n,t,c))}),a({...u("navigation.move-space-tab-left"),...r,key:"ArrowLeft",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_LEFT.label,action:()=>{const t=A(n,"left");t&&C?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}}),a({...u("navigation.move-space-tab-right"),...r,key:"ArrowRight",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_RIGHT.label,action:()=>{const t=A(n,"right");t&&C?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}});for(const[t,i]of[["next",!1],["previous",!0]]){a({...u(t==="next"?"global.next-space":"global.previous-space"),key:"Tab",ctrl:!0,shift:i,global:!0,description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))});const b=t==="next"?"global.next-space-alt":"global.previous-space-alt";a({...u(b),...r,key:t==="next"?"}":"{",shift:!0,global:!0,allowInTerminal:!0,preferLocal:!0,enabled:d=>!_||!h(b,d,_,e),description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))})}const x=t=>{t===1?c("/"):F(n,t===9?"last":t-2,o(),c)};for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>w("navigation.go-to-device").replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>E.select(n.state)&&!h("navigation.go-to-device",i,w,e),description:l.machineRail_nav_ariaLabel(),action:()=>{const i=p?.()??ce.select(n.state).map(d=>d.id),b=i[t===9?i.length-1:t-1];b&&n.dispatch(z(b))}});for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>I["navigation.go-to-device"].replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>!E.select(n.state)&&w("navigation.go-to-tab")===I["navigation.go-to-tab"]&&!h("navigation.go-to-device",i,w,e),description:l.ui_shortcuts_goToTab_label(),action:()=>x(t)});for(let t=1;t<=9;t++)a({binding:()=>w("navigation.go-to-tab").replace(/([1-8])-9$/,String(t)),...r,alt:!0,key:String(t),global:!0,allowInTerminal:!0,enabled:i=>!h("navigation.go-to-tab",i,w,e),description:t===1?l.home_navigation_description():t===9?l.workspace_shortcuts_selectLastSpaceTab_description():l.workspace_shortcuts_selectSpaceTab_description({digit:t}),action:()=>x(t)})}export{de as c,Ie as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./
|
|
1
|
+
import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./CKAixUGj.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+X.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:X})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(C=this.productions_[N[1]][1],z.$=p[p.length-C],z._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},U&&(z._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(z,[w,$,I,S.yy,N[1],p,n].concat(V)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[N[1]][0]),p.push(z.$),n.push(z._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,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:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=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),i.length-1&&(this.yylineno-=i.length-1);var p=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:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as ht,br as m,bp as g,a_ as p,bz as bt,b as xt}from"./Cv-W__h8.js";import{bs as yt,a7 as kt,ay as Q,W as u,bn as At,aA as h,a5 as F,bS as f,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./DYhIMPy1.js";import{I as Bt,n as Ct}from"./DPvDLGgX.js";import{I as Pt,D as zt}from"./j0KL2ItM.js";import{f as M}from"./BePtUMMB.js";import"./ClsZrb8B.js";import{F as rt,c9 as Rt,cl as St,aq as Wt}from"./BKpkoMuv.js";import{e as Dt}from"./
|
|
1
|
+
import{t as ht,br as m,bp as g,a_ as p,bz as bt,b as xt}from"./Cv-W__h8.js";import{bs as yt,a7 as kt,ay as Q,W as u,bn as At,aA as h,a5 as F,bS as f,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./DYhIMPy1.js";import{I as Bt,n as Ct}from"./DPvDLGgX.js";import{I as Pt,D as zt}from"./j0KL2ItM.js";import{f as M}from"./BePtUMMB.js";import"./ClsZrb8B.js";import{F as rt,c9 as Rt,cl as St,aq as Wt}from"./BKpkoMuv.js";import{e as Dt}from"./DdK8ZPOk.js";import{D as Lt}from"./9wnHE4mj.js";import{Ir as $t,uf as Ht}from"./DBkMUdAo.js";import{g as Nt}from"./B_1oD9ZO.js";var qt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Tt(U,n){if(new.target)return ht({component:Tt,...U});yt(n,!0);let A=m(n,"patches",7),O=m(n,"label",23,()=>g.ui_patchBlock_label()),V=m(n,"lastApply",7),w=m(n,"linkedAgentId",7),L=m(n,"workspaceId",7),P=m(n,"applying",7,!1),$=m(n,"onApply",7),H=m(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),T=y(()=>V()?.status==="success");function st(t){const o=t.split(`
|
|
2
2
|
`);let v=0,b=0;for(const I of o)I.startsWith("+")&&!I.startsWith("+++")?v++:I.startsWith("-")&&!I.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),G=y(()=>P()?{label:g.ui_patchBlock_applying_label(),icon:null}:e(T)?{label:g.ui_patchBlock_revert_label(),icon:St}:{label:g.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!($()||H()));function ot(){et(j,!e(j))}function lt(){e(T)?H()?.():$()?.()}var it={get patches(){return A()},set patches(t){A(t),h()},get label(){return O()},set label(t=g.ui_patchBlock_label()){O(t),h()},get lastApply(){return V()},set lastApply(t){V(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return L()},set workspaceId(t){L(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return $()},set onApply(t){$(t),h()},get onRevert(){return H()},set onRevert(t){H(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=jt(),v=F(o),b=F(v);{var I=a=>{{let c=y(()=>g.ui_patchBlock_viewAgent_tooltip());M(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:l=>{L()&&$t.dispatch(Ht(L(),{agentId:w(),...Nt(l)}))},get title(){return e(c)},children:(l,_)=>{Dt(l,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};p(b,a=>{w()&&a(I)})}var Z=f(b,2);M(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var l=Ft(),_=Q(l);{var B=i=>{rt(i,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};p(_,i=>{w()||i(B)})}var C=f(_,2),s=S(C,!0),d=f(C,2),r=F(d),R=S(r),N=f(r,2),J=S(N);W(d);var K=f(d,2);{var tt=i=>{var q=qt(),mt=S(q,!0);D(gt=>x(mt,gt),[()=>g.ui_patchBlock_applied_label()]),u(i,q)};p(K,i=>{e(T)&&i(tt)})}D(()=>{x(s,O()),x(R,`+${e(X).addCount??""}`),x(J,`-${e(X).removeCount??""}`)}),u(a,l)},$$slots:{default:!0}});var ut=f(Z,2);{var ft=a=>{M(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:lt,get disabled(){return P()},children:(c,l)=>{var _=Mt(),B=Q(_);{var C=r=>{Bt(r,{size:12})},s=r=>{rt(r,{get icon(){return e(G).icon},size:"xs"})};p(B,r=>{P()?r(C):e(G).icon&&r(s,1)})}var d=f(B);D(()=>x(d,` ${e(G).label??""}`)),u(c,_)},$$slots:{default:!0}})};p(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=f(v,2);{var _t=a=>{var c=Vt(),l=F(c);{var _=s=>{var d=Ot();Ct(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,N)=>{{let J=y(()=>e(N)===e(E)?"default":"ghost-light");M(r,{get variant(){return e(J)},size:"sm",class:"type-caption",onclick:()=>et(E,e(N),!0),children:(K,tt)=>{wt();var i=It();D(q=>x(i,q),[()=>e(R).filePath.split("/").pop()]),u(K,i)},$$slots:{default:!0}})}}),W(d),u(s,d)};p(l,s=>{A().length>1&&s(_)})}var B=f(l,2);{var C=s=>{Lt(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};p(B,s=>{e(z)&&s(C)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),u(a,c)};p(vt,a=>{e(j)&&a(_t)})}W(o),u(t,o)},pt=t=>{var o=Et(),v=S(o,!0);D(b=>x(v,b),[()=>g.ui_patchBlock_invalid_error()]),u(t,o)};p(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return u(U,Y),At(it)}export{Tt as P};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ni}from"./
|
|
1
|
+
import{g as Ni}from"./KsUNEVwc.js";import{s as Ci}from"./Bnny-UX2.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./CKAixUGj.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
|
|
2
2
|
`),S("\r"),S(" "),S("\v"),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S("\u2028"),S("\u2029"),S(" "),S(" "),S(" "),S("\uFEFF")],sa=/[0-9a-fA-F]/,tt=/[0-9]/,na=/[1-9]/;class ia{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Fe(n,"global");break;case"i":Fe(n,"ignoreCase");break;case"m":Fe(n,"multiLine");break;case"u":Fe(n,"unicode");break;case"y":Fe(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}Se(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return ta()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:i,atMost:a}):t={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Se(t);break}if(!(e===!0&&t===void 0)&&Se(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Se(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[S(`
|
|
3
3
|
`),S("\r"),S("\u2028"),S("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=gt;break;case"D":e=gt,t=!0;break;case"s":e=Os;break;case"S":e=Os,t=!0;break;case"w":e=At;break;case"W":e=At,t=!0;break}if(Se(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=S("\f");break;case"n":e=S(`
|
|
4
4
|
`);break;case"r":e=S("\r");break;case"t":e=S(" ");break;case"v":e=S("\v");break}if(Se(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:S("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:S(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as se,br as a,a_ as ie,bz as ae,b as le}from"./Cv-W__h8.js";import{bs as oe,bV as ge,br as ue,ca as ce,bH as q,a5 as p,bA as m,bS as V,aD as C,b_ as P,W as w,bn as he,c9 as W,aA as l,bl as de,bO as me,aB as I}from"./DYhIMPy1.js";import{n as Y,v,p as fe,w as ve}from"./DPvDLGgX.js";import{z as be}from"./
|
|
1
|
+
import{t as se,br as a,a_ as ie,bz as ae,b as le}from"./Cv-W__h8.js";import{bs as oe,bV as ge,br as ue,ca as ce,bH as q,a5 as p,bA as m,bS as V,aD as C,b_ as P,W as w,bn as he,c9 as W,aA as l,bl as de,bO as me,aB as I}from"./DYhIMPy1.js";import{n as Y,v,p as fe,w as ve}from"./DPvDLGgX.js";import{z as be}from"./DdK8ZPOk.js";import{H as R}from"./CcNhqKh5.js";import{C as _e}from"./DTDbZc--.js";function A(r){const t={"&":"&","<":"<",">":">",'"':""","'":"'"};return r.replace(/[&<>"']/g,n=>t[n])}const pe=300,Ce=2e6,xe=1e5,u=new Map;let X=0;function Q(r,t){return`${t}\0${r}`}function Z(r,t){const n=Q(r,t),s=u.get(n);return s===void 0?null:(u.delete(n),u.set(n,s),s)}function F(r){const t=u.get(r);t!==void 0&&(X-=r.length+t.length,u.delete(r))}function He(r,t){F(r);const n=r.length+t.length;if(!(n>xe)){for(;u.size>=pe||u.size>0&&X+n>Ce;){const s=u.keys().next().value;if(s===void 0)break;F(s)}u.set(r,t),X+=n}}function ye(){return new Promise(r=>{typeof requestIdleCallback=="function"?requestIdleCallback(()=>r(),{timeout:200}):setTimeout(r,0)})}function Ne(r,t){try{return t&&R.getLanguage(t)?R.highlight(r,{language:t}).value:R.highlightAuto(r).value}catch{return A(r)}}const k=new Map;function Le(r,t,n){const s=Q(r,t),f=u.get(s);if(f!==void 0)return Promise.resolve(f);const c=k.get(s);if(c)return c.staleChecks.push(n??(()=>!1)),c.promise;const g={staleChecks:[n??(()=>!1)],promise:Promise.resolve("")};return g.promise=ye().then(()=>{if(k.get(s)===g&&k.delete(s),g.staleChecks.every(x=>x()))return A(r);const b=Ne(r,t);return He(s,b),b}),k.set(s,g),g.promise}var we=I("<div> </div>"),ke=I('<div class="line-numbers-gutter select-none text-right flex-shrink-0 py-3 pl-3 pr-2 svelte-1irg7m4"></div>'),Ae=I("<div></div>"),Ie=I('<div><div class="absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity z-10"><!></div> <div class="flex"><!> <div><pre><code></code></pre></div></div></div>');function Se(r,t){if(new.target)return se({component:Se,...r});oe(t,!0);const n=a(t,"code",7,""),s=a(t,"language",7,"plaintext"),f=a(t,"showLineNumbers",7,!1),c=a(t,"startLineNumber",7,1),g=a(t,"highlightLines",23,()=>[]),b=a(t,"fileName",7,""),x=a(t,"filename",7,""),H=a(t,"maxHeight",7,void 0),S=a(t,"noBorder",7,!1),y=a(t,"noMargin",7,!1),M=a(t,"doScroll",7,!0),B=a(t,"className",7,"");let N=ge(ue(Z(n(),s())??A(n())));ce(()=>{const e=n(),i=s(),h=Z(e,i);if(h!==null){q(N,h,!0);return}q(N,A(e),!0);let o=!1;return Le(e,i,()=>o).then(d=>{o||q(N,d,!0)}),()=>{o=!0}});const j=W(()=>C(N).split(`
|
|
2
2
|
`)),U=W(()=>Array.from({length:C(j).length},(e,i)=>c()+i));var $={get code(){return n()},set code(e=""){n(e),l()},get language(){return s()},set language(e="plaintext"){s(e),l()},get showLineNumbers(){return f()},set showLineNumbers(e=!1){f(e),l()},get startLineNumber(){return c()},set startLineNumber(e=1){c(e),l()},get highlightLines(){return g()},set highlightLines(e=[]){g(e),l()},get fileName(){return b()},set fileName(e=""){b(e),l()},get filename(){return x()},set filename(e=""){x(e),l()},get maxHeight(){return H()},set maxHeight(e=void 0){H(e),l()},get noBorder(){return S()},set noBorder(e=!1){S(e),l()},get noMargin(){return y()},set noMargin(e=!1){y(e),l()},get doScroll(){return M()},set doScroll(e=!0){M(e),l()},get className(){return B()},set className(e=""){B(e),l()},$set:ae,$on:(e,i)=>le(t,e,i)},_=Ie();let D;var z=p(_),ee=p(z);_e(ee,{get text(){return n()},size:"xs",class:"bg-background/80 hover:bg-hover text-muted-foreground hover:text-foreground backdrop-blur-sm"}),m(z);var J=V(z,2),K=p(J);{var te=e=>{var i=ke();Y(i,20,()=>C(U),h=>h,(h,o)=>{var d=we();let L;var re=de(d,!0);P(ne=>{L=v(d,1,"line-number svelte-1irg7m4",null,L,{highlighted:ne}),me(re,o)},[()=>g().includes(o)]),w(h,d)}),m(i),w(e,i)};ie(K,e=>{f()&&e(te)})}var G=V(K,2),E=p(G);let O;var T=p(E);return Y(T,21,()=>C(j),fe,(e,i,h)=>{var o=Ae();let d;be(o,()=>C(i)||" ",!0),m(o),P(L=>d=v(o,1,"code-line svelte-1irg7m4",null,d,{highlighted:L}),[()=>g().includes(c()+h)]),w(e,o)}),m(T),m(E),m(G),m(J),m(_),P(()=>{D=v(_,1,`code-block-container group rounded-md overflow-hidden relative ${B()??""}`,"svelte-1irg7m4",D,{"mt-3":!y(),"mb-5":!y(),"no-border":S()}),ve(_,H()?`max-height: ${H()}px; overflow-y: auto;`:""),v(G,1,`flex-1 ${M()?"overflow-x-auto":""}`),O=v(E,1,"code-pre py-3 pr-3 bg-background! svelte-1irg7m4",null,O,{"pl-3":!f()}),v(T,1,`hljs language-${s()??""}`,"svelte-1irg7m4")}),w(r,_),he($)}export{Se as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BE4HMJVM.js","/app/immutable/chunks/BiLjH_HB.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Cv-W__h8.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BE4HMJVM.js","/app/immutable/chunks/BiLjH_HB.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Cv-W__h8.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/nodes/0.Dm_Wrn8a.js","/app/immutable/chunks/ClsZrb8B.js","/app/immutable/chunks/GdlMbZRO.js","/app/immutable/chunks/0powQEfB.js","/app/immutable/chunks/DBkMUdAo.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BZeUwBn0.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/CjU1deOg.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CB56tJ4V.js","/app/immutable/chunks/1o85IiDb.js","/app/immutable/chunks/Lbcfa2vI.js","/app/immutable/assets/0.BxePSv79.css","/app/immutable/nodes/1.tHwXdWHU.js","/app/immutable/chunks/DM3oLKKN.js","/app/immutable/chunks/2P2kVPCB.js","/app/immutable/chunks/BKpkoMuv.js","/app/immutable/chunks/D4os-974.js","/app/immutable/chunks/DPvDLGgX.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BePtUMMB.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.CYfia3l7.js","/app/immutable/chunks/Bbd7T6DJ.js","/app/immutable/chunks/j0KL2ItM.js","/app/immutable/chunks/B10dK85Q.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/oAhLaZGg.js","/app/immutable/chunks/Boe_FU77.js","/app/immutable/chunks/CdYZLRXg.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Ct5KmixI.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/Bh2qnIyE.js","/app/immutable/chunks/ZhmlPELZ.js","/app/immutable/chunks/BahFkvC5.js","/app/immutable/chunks/C3BW_tmx.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/1tkamMao.js","/app/immutable/chunks/GhBVkn0A.js","/app/immutable/chunks/DTDbZc--.js","/app/immutable/chunks/CgCdkhNg.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/CEpchTPD.js","/app/immutable/chunks/CUrYTyIw.js","/app/immutable/chunks/BtpuPEaR.js","/app/immutable/chunks/BKTUcy0r.js","/app/immutable/chunks/BYdX7EnG.js","/app/immutable/chunks/CTnbGelF.js","/app/immutable/chunks/DIP3ex32.js","/app/immutable/chunks/X_GAP9Jd.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/C4rKE1Qu.js","/app/immutable/chunks/Cl5axapM.js","/app/immutable/chunks/Cp_23Eo7.js","/app/immutable/chunks/S2KOBxse.js","/app/immutable/chunks/CyY6TpOV.js","/app/immutable/chunks/CX8H2ves.js","/app/immutable/chunks/BBoT7qt7.js","/app/immutable/chunks/DB-R65cd.js","/app/immutable/chunks/m0O31dSs.js","/app/immutable/chunks/9s3slwY6.js","/app/immutable/chunks/Dj_1qKAG.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/DUGj7TPr.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BkOzx8cD.js","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/BrYjurft.js","/app/immutable/chunks/DfD-d1VI.js","/app/immutable/chunks/CUQ53Tah.js","/app/immutable/chunks/hvA7NN8H.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/Bkb2JppZ.js","/app/immutable/chunks/DJFRQOtM.js","/app/immutable/chunks/CLOm5Lgj.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/C9iBDSZ7.js","/app/immutable/chunks/B_zkbbdR.js","/app/immutable/chunks/DT0NjW76.js","/app/immutable/chunks/By364i7q.js","/app/immutable/chunks/D_EwpcgA.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/DdK8ZPOk.js","/app/immutable/chunks/CmUwI5cU.js","/app/immutable/chunks/B8IFnCn1.js","/app/immutable/chunks/D2pEu7en.js","/app/immutable/chunks/2_iuLgF6.js","/app/immutable/chunks/BvDMLNjQ.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/5hOq5Q77.js","/app/immutable/chunks/Czzc8yNT.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/BgcFKXg4.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/CkjMOvWd.js","/app/immutable/chunks/DAZ23kin.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/DNMYeEBj.js","/app/immutable/chunks/BqgO24EE.js","/app/immutable/chunks/BNG_lclJ.js","/app/immutable/chunks/BlXsb3Tb.js","/app/immutable/chunks/qIqnGNYN.js","/app/immutable/chunks/Bgdxwo64.js","/app/immutable/chunks/DKPjRtn_.js","/app/immutable/chunks/DbYY-d08.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/CZwWYP-m.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/BSY2iZcG.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/Bbp2vgh6.js","/app/immutable/chunks/-DqWFMjY.js","/app/immutable/chunks/C0P4m-SB.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/D_Q2cFam.js","/app/immutable/assets/CompactWorkspaceInitializer.InGGWMfl.css","/app/immutable/chunks/CH8kLd5O.js","/app/immutable/chunks/ByPwCkMc.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/chunks/BalE-G27.js","/app/immutable/chunks/DEAuDYtn.js","/app/immutable/chunks/Dm8JS2ey.js","/app/immutable/chunks/p7znhYIU.js","/app/immutable/chunks/Ddqq3yIK.js","/app/immutable/chunks/D73BIenN.js","/app/immutable/chunks/BGjqhE-a.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/assets/2.D39KZk3-.css","/app/immutable/nodes/3.LTzWUntu.js","/app/immutable/nodes/4.DmnpJbBQ.js","/app/immutable/nodes/5.OcCkV4TE.js","/app/immutable/chunks/dUdcU4jc.js","/app/immutable/chunks/C-SF0TBp.js","/app/immutable/chunks/DfN8_dcw.js","/app/immutable/chunks/Bu6kTDqK.js","/app/immutable/chunks/CYsnGP7P.js","/app/immutable/chunks/DnxyCPYU.js","/app/immutable/chunks/B_1oD9ZO.js","/app/immutable/chunks/CG-wUQnZ.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/BN_moS2U.js","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/EfsySr-7.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/assets/ResizablePanel.DF8NAXK-.css","/app/immutable/chunks/Bok5NzPm.js","/app/immutable/chunks/DD0ZWM8H.js","/app/immutable/chunks/CVsEKB0R.js","/app/immutable/chunks/R998t4dy.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/9wnHE4mj.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/yz8u5JJg.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/CKAixUGj.js","/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css","/app/immutable/chunks/CueFizU8.js","/app/immutable/chunks/BEt4M6gK.js","/app/immutable/chunks/b-9RFiLF.js","/app/immutable/chunks/BNjZVlBe.js","/app/immutable/chunks/lo4jmysS.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.CWdkjFsY.css","/app/immutable/chunks/DTdxkg7G.js","/app/immutable/chunks/CsScj5_e.js","/app/immutable/chunks/xUweO4ts.js","/app/immutable/chunks/BPMHMdjQ.js","/app/immutable/chunks/m03ON1WT.js","/app/immutable/assets/conversation-turns.BHHyRLdd.css","/app/immutable/chunks/Du86t-Cq.js","/app/immutable/chunks/BJqh-N9X.js","/app/immutable/chunks/D9_ug0GR.js","/app/immutable/chunks/BKf5FMmo.js","/app/immutable/chunks/BkQYu6CB.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/chunks/DkjTOoF5.js","/app/immutable/assets/DockRecordingEditor.Cpd07eyT.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/assets/5.DBgC2kSL.css","/app/immutable/nodes/6.BX-GHMl7.js","/app/immutable/assets/6.D6ebrVTb.css","/app/immutable/nodes/7.845VSiaM.js","/app/immutable/chunks/C4qv7Dpg.js","/app/immutable/nodes/8.DhfxJ-A6.js","/app/immutable/chunks/DmShYb80.js","/app/immutable/chunks/4xlJdO9z.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/chunks/DsH9suxB.js","/app/immutable/chunks/BFE28qi6.js","/app/immutable/assets/8._uRcFklA.css","/app/immutable/nodes/9.ByyuHyJR.js","/app/immutable/chunks/BamyRdJ8.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/9twPAssU.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/BUmpw0I3.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/DaxXWdI0.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/Dcpa7_yE.js","/app/immutable/chunks/DIqvoqvn.js","/app/immutable/chunks/8Wbpf7N2.js","/app/immutable/assets/9.QLJOd4KT.css","/app/immutable/nodes/10.CH-P0d_x.js","/app/immutable/assets/10.BO7QC36g.css","/app/immutable/nodes/11.CBilAgjF.js","/app/immutable/nodes/12.CwLwGOfk.js","/app/immutable/assets/12.CF5xLHXq.css","/app/immutable/nodes/13.DvKRNmRj.js","/app/immutable/chunks/BNJpT-Dj.js","/app/immutable/assets/13.BuZANxI8.css","/app/immutable/nodes/14.DHU-88k0.js","/app/immutable/assets/14.CU62PBbE.css","/app/immutable/nodes/15.CLi9Mr7F.js","/app/immutable/assets/15.DBFWhlfB.css","/app/immutable/nodes/16.CH7JJ_PA.js","/app/immutable/assets/16.DdJIHg9f.css","/app/immutable/nodes/17.BVdrxt4z.js","/app/immutable/assets/17.Cznk2DRv.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{_ as a,bp as X,t as lt,br as g,a_ as k,bz as dt,b as pt,c as gt}from"../chunks/Cv-W__h8.js";import{l as w}from"../chunks/BdWqymET.js";import{s as ft}from"../chunks/D-N7efrx.js";import{bs as Et,cb as vt,ca as Tt,bk as bt,aD as c,bH as F,c0 as ht,ay as T,bS as It,W as m,bn as At,bV as U,aA as f,a7 as I,c9 as L,a5 as Ot,bA as Rt,aB as q,b$ as Pt,b_ as Dt,bO as yt}from"../chunks/DYhIMPy1.js";import{c as S}from"../chunks/D4os-974.js";import{b as V}from"../chunks/BaIAhI85.js";const Lt=async()=>{window.location.pathname.startsWith("/sandbox")||await a(()=>import("../chunks/BE4HMJVM.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},St=/^[a-zA-Z_$]{1,3}\.call is not a function$/;function Vt(t){return t instanceof Error&&t.name==="TypeError"&&St.test(t.message)&&typeof t.stack=="string"&&t.stack.includes("bits-ui")}const K=500,xt=8,kt=/[a-z][a-z0-9+.-]*:\/\/\S+/gi,wt=/[)\]}>'".,;:]+$/,Nt=/[^/]+\.[cm]?[jt]s(?::\d+){0,2}$/;function Ct(t){const e=wt.exec(t)?.[0]??"",o=t.slice(0,t.length-e.length),n=o.indexOf("://"),i=o.slice(0,n),s=o.slice(n+3).split("#")[0].split("?")[0],u=s.indexOf("/"),l=u===-1?s:s.slice(0,u),d=l.slice(l.lastIndexOf("@")+1),p=u===-1?"":s.slice(u);if(p===""||p==="/")return`${i}://${d}${e}`;const O=Nt.exec(p)?.[0];return`${i}://${d}/${O??"<redacted>"}${e}`}function x(t){const e=t.replace(kt,Ct);return e.length>K?`${e.slice(0,K)}…`:e}function jt(t){return typeof t!="string"||t.length===0?null:t.split(`
|
|
3
3
|
`).slice(0,xt).map(x).join(`
|
|
4
|
-
`)}function Mt(t,e){if(t instanceof Error)return{name:x(String(t.name)),message:x(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const o="message"in t?t.message:void 0;return{name:"object",message:typeof o=="string"?x(o):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:x(String(t)),stack:null,routeId:e}}let Z=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("no diff result available"))return{message:""};if(o.includes("isInHiddenArea"))return{message:""};if(o.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("Not found: /index.html")||o.includes("Not found"))return Z?(A++,A>=Ft&&(w.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{w.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),w.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(Z=!0,A=0,{message:""});A=0}return ft(t)?{message:""}:Vt(t)?{message:""}:(w.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Qt={};var zt=q('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=q("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let o=g(e,"stores",7),n=g(e,"page",7),i=g(e,"constructors",7),s=g(e,"components",23,()=>[]),u=g(e,"form",7),l=g(e,"data_0",7,null),d=g(e,"data_1",7,null),p=g(e,"data_2",7,null);vt(()=>o().page.set(n())),Tt(()=>{o(),n(),i(),s(),u(),l(),d(),p(),o().page.notify()});let O=U(!1),z=U(!1),B=U(null);bt(()=>{const r=o().page.subscribe(()=>{c(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=L(()=>i()[2]);var tt={get stores(){return o()},set stores(r){o(r),f()},get page(){return n()},set page(r){n(r),f()},get constructors(){return i()},set constructors(r){i(r),f()},get components(){return s()},set components(r=[]){s(r),f()},get form(){return u()},set form(r){u(r),f()},get data_0(){return l()},set data_0(r=null){l(r),f()},get data_1(){return d()},set data_1(r=null){d(r),f()},get data_2(){return p()},set data_2(r=null){p(r),f()},$set:dt,$on:(r,_)=>pt(e,r,_)},G=Bt(),W=T(G);{var et=r=>{const _=L(()=>i()[0]);var E=I(),R=T(E);S(R,()=>c(_),(v,b)=>{V(b(v,{get data(){return l()},get form(){return u()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=T($);{var nt=h=>{const N=L(()=>i()[1]);var D=I(),C=T(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params},children:(y,$t)=>{var H=I(),ut=T(H);S(ut,()=>c(Y),(_t,ct)=>{V(ct(_t,{get data(){return p()},get form(){return u()},get params(){return n().params}}),mt=>s()[2]=mt,()=>s()?.[2])}),m(y,H)},$$slots:{default:!0}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)},it=h=>{const N=L(()=>i()[1]);var D=I(),C=T(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)};k(st,h=>{i()[2]?h(nt):h(it,-1)})}m(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)},rt=r=>{const _=L(()=>i()[0]);var E=I(),R=T(E);S(R,()=>c(_),(v,b)=>{V(b(v,{get data(){return l()},get form(){return u()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)};k(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var _=zt(),E=Ot(_);{var R=v=>{var b=Pt();Dt(()=>yt(b,c(B))),m(v,b)};k(E,v=>{c(z)&&v(R)})}Rt(_),m(r,_)};k(ot,r=>{c(O)&&r(at)})}return m(t,G),At(tt)}const Yt=gt(J),te=[()=>a(()=>import("../nodes/0.BNZhTpvz.js"),__vite__mapDeps([6,4,5,7,8,3,9,10,11,12,13,14,2,15,16,17,18,19,20]),import.meta.url),()=>a(()=>import("../nodes/1.D6TO8-ms.js"),__vite__mapDeps([21,4,5,22,23,24,25,7,26,3,27,28,29,8,1,2,30]),import.meta.url),()=>a(()=>import("../nodes/2.Dm8kTJ3J.js"),__vite__mapDeps([31,4,5,7,32,10,11,12,13,3,14,2,8,24,25,26,27,33,29,34,35,28,1,30,18,22,36,19,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,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,17,88,89,90,9,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,16,121,122,123,124,125,126,127,128,129,130,131,132,133,23,134,135,136,137,138,139,140,141,142,143,144]),import.meta.url),()=>a(()=>import("../nodes/3.Ch4CnbVo.js"),__vite__mapDeps([145,4,5,33,26,7,3,27,22,23,24,25,28,29,8,1,2,30,38,39,37,40,34,10,11,12,13,14,35,18,41,19,36]),import.meta.url),()=>a(()=>import("../nodes/4.B1MnBi41.js"),__vite__mapDeps([146,4,5,7,9,8,3,43,10,11,12,13,14,2,34,24,25,26,27,35,28,29,1,30,18,33,44,39,45,46,47,41,48,49,50,51,52,53,54,55,56,57,58,19,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,36,40,80,81,82,83,84,85,86,42,87,17,88,89,90,38,22,37,91,92,93,94,95]),import.meta.url),()=>a(()=>import("../nodes/5.CT6EoSVV.js"),__vite__mapDeps([147,4,5,53,148,28,7,26,3,27,29,25,8,1,2,30,24,32,10,11,12,13,14,33,101,99,74,102,103,52,77,78,104,105,100,106,107,75,54,76,108,109,51,98,110,56,44,39,50,55,97,111,112,85,49,34,35,18,57,58,41,47,19,38,22,37,40,36,113,120,48,46,45,16,96,121,122,61,69,89,149,81,150,151,152,153,84,154,155,156,82,157,133,158,159,131,160,161,71,134,67,68,135,128,80,162,163,164,139,165,166,167,168,90,169,170,171,172,173,174,175,176,177,23,178,179,180,181,63,64,65,66,182,183,184,117,185,142,143,186,187,188,189,190,191,192,193,194,195,196,127,123,79,197,198,137,199]),import.meta.url),()=>a(()=>import("../nodes/6.DGscet-O.js"),__vite__mapDeps([200,4,5,26,7,3,27,29,34,2,10,11,12,13,14,8,24,25,35,28,1,30,18,33,39,23,22,46,47,44,45,41,165,166,50,51,52,53,54,55,120,48,49,56,57,58,19,100,101,99,74,102,103,77,78,104,105,106,107,75,76,108,109,98,110,85,97,111,112,38,37,40,36,113,16,96,121,122,67,68,153,84,149,152,154,155,156,69,82,157,133,158,167,139,168,90,169,170,171,172,173,134,135,174,175,176,177,71,128,80,178,179,180,181,184,86,42,201]),import.meta.url),()=>a(()=>import("../nodes/7.BXLXL53Q.js"),__vite__mapDeps([202,4,5,53,108,203,19,12,36,11,10,13,3,7,14,2,8,50,26,27,28,29,25,1,30,33,51,52,24,54,55,109,162]),import.meta.url),()=>a(()=>import("../nodes/8.C4OalPt9.js"),__vite__mapDeps([204,4,5,8,3,26,7,27,25,29,28,1,2,30,74,101,99,33,24,102,103,52,77,78,104,105,100,106,107,75,54,76,53,108,109,51,10,11,12,13,14,98,110,138,116,57,58,41,34,35,18,47,97,111,112,85,50,55,39,49,56,44,19,38,22,37,40,36,113,23,60,205,72,46,45,68,206,157,155,178,159,131,89,117,70,79,203,189,190,121,87,92,207,80,62,208,193,209,210,196]),import.meta.url),()=>a(()=>import("../nodes/9.ClM472Gh.js"),__vite__mapDeps([211,4,5,148,28,7,26,3,27,29,25,8,1,2,30,24,32,10,11,12,13,14,33,101,99,74,102,103,52,77,78,104,105,100,106,107,75,54,76,53,108,109,51,98,110,56,44,39,50,55,97,111,112,85,49,34,35,18,57,58,41,47,19,38,22,37,40,36,113,120,48,46,45,16,96,121,122,61,69,89,149,81,150,151,152,153,84,154,155,156,82,157,133,158,159,131,160,161,23,129,130,59,60,125,91,92,93,94,95,126,132,188,42,139,136,71,70,212,141,213,214,206,83,215,119,205,117,87,216,217,88,218,219,220,185,221,222,123,190,137,223]),import.meta.url),()=>a(()=>import("../nodes/10.BlEex6Ex.js"),__vite__mapDeps([224,4,5,37,22,26,7,3,27,25,10,11,12,13,14,2,8,24,29,136,104,28,1,30,111,33,99,74,50,51,52,53,54,55,96,85,186,137,106,216,217,88,34,35,18,212,141,94,95,93,56,44,39,40,98,213,90,220,89,225]),import.meta.url),()=>a(()=>import("../nodes/11.CBilAgjF.js"),__vite__mapDeps([226,4,5,53,108,24,25,7,26,3,27]),import.meta.url),()=>a(()=>import("../nodes/12.CwLwGOfk.js"),__vite__mapDeps([227,4,5,8,3,28,7,26,27,29,25,1,2,30,24,109,162,228]),import.meta.url),()=>a(()=>import("../nodes/13.DvKRNmRj.js"),__vite__mapDeps([229,4,5,26,7,3,27,28,29,25,8,1,2,30,109,162,230,11,124,139,99,33,74,101,24,102,103,52,77,78,104,105,121,53,108,231]),import.meta.url),()=>a(()=>import("../nodes/14.-lSIKZBv.js"),__vite__mapDeps([232,4,5,57,10,11,12,13,3,7,14,2,8,58,41,34,24,25,26,27,35,28,29,1,30,18,33,47,109,162,43,44,39,45,46,48,49,50,51,52,53,54,55,56,19,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,36,40,80,81,82,83,84,85,86,42,87,17,88,89,90,38,22,37,9,91,92,93,94,95,173,97,98,99,100,101,102,103,104,105,106,107,108,110,111,112,113,120,16,96,121,122,134,135,174,114,209,182,183,165,166,153,149,152,154,155,156,157,133,158,167,139,168,169,170,171,172,175,176,177,23,128,178,179,180,181,184,117,185,142,143,186,187,230,233,196]),import.meta.url),()=>a(()=>import("../nodes/15.CLi9Mr7F.js"),__vite__mapDeps([234,4,5,26,7,3,27,28,29,25,8,1,2,30,109,162,33,64,194,14,139,183,66,56,44,39,235,196]),import.meta.url),()=>a(()=>import("../nodes/16.CH7JJ_PA.js"),__vite__mapDeps([236,4,5,8,3,26,7,27,28,29,25,1,2,30,109,162,192,85,183,74,75,54,76,112,106,99,33,107,52,102,103,77,78,24,13,14,193,139,194,64,65,195,196,56,44,39,45,157,237]),import.meta.url),()=>a(()=>import("../nodes/17.ffmdCuSw.js"),__vite__mapDeps([238,4,5,56,8,3,44,39,24,25,7,26,27,28,29,1,2,30,10,11,12,13,14,33,133,69,34,35,18,57,58,41,47,128,80,51,73,100,101,99,74,102,103,52,77,78,104,105,106,107,75,54,76,53,108,109,98,110,115,116,62,87,38,22,37,40,19,36,239]),import.meta.url)],ee=[],re={"/(app)":[5,[2],[3]],"/(app)/agent/[id]":[6,[2],[3]],"/(app)/desktop-control-agent":[7,[2],[3]],"/desktop-overlay":[12],"/dev-console":[13],"/dock-annotation":[15],"/dock-capture-editor":[16],"/dock":[14],"/hud":[17,[4]],"/(app)/settings":[8,[2],[3]],"/(app)/workspace/creating":[11,[2],[3]],"/(app)/workspace/[id]":[9,[2],[3]],"/(app)/workspace/[id]/files":[10,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:Lt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),oe=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),ae=!1,se=(t,e)=>Gt[t](e),ne=()=>a(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{se as decode,Gt as decoders,re as dictionary,oe as encoders,ne as get_error_template,ae as hash,Q as hooks,Qt as matchers,te as nodes,Yt as root,ee as server_loads};
|
|
4
|
+
`)}function Mt(t,e){if(t instanceof Error)return{name:x(String(t.name)),message:x(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const o="message"in t?t.message:void 0;return{name:"object",message:typeof o=="string"?x(o):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:x(String(t)),stack:null,routeId:e}}let Z=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("no diff result available"))return{message:""};if(o.includes("isInHiddenArea"))return{message:""};if(o.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("Not found: /index.html")||o.includes("Not found"))return Z?(A++,A>=Ft&&(w.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{w.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),w.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(Z=!0,A=0,{message:""});A=0}return ft(t)?{message:""}:Vt(t)?{message:""}:(w.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Qt={};var zt=q('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=q("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let o=g(e,"stores",7),n=g(e,"page",7),i=g(e,"constructors",7),s=g(e,"components",23,()=>[]),u=g(e,"form",7),l=g(e,"data_0",7,null),d=g(e,"data_1",7,null),p=g(e,"data_2",7,null);vt(()=>o().page.set(n())),Tt(()=>{o(),n(),i(),s(),u(),l(),d(),p(),o().page.notify()});let O=U(!1),z=U(!1),B=U(null);bt(()=>{const r=o().page.subscribe(()=>{c(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=L(()=>i()[2]);var tt={get stores(){return o()},set stores(r){o(r),f()},get page(){return n()},set page(r){n(r),f()},get constructors(){return i()},set constructors(r){i(r),f()},get components(){return s()},set components(r=[]){s(r),f()},get form(){return u()},set form(r){u(r),f()},get data_0(){return l()},set data_0(r=null){l(r),f()},get data_1(){return d()},set data_1(r=null){d(r),f()},get data_2(){return p()},set data_2(r=null){p(r),f()},$set:dt,$on:(r,_)=>pt(e,r,_)},G=Bt(),W=T(G);{var et=r=>{const _=L(()=>i()[0]);var E=I(),R=T(E);S(R,()=>c(_),(v,b)=>{V(b(v,{get data(){return l()},get form(){return u()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=T($);{var nt=h=>{const N=L(()=>i()[1]);var D=I(),C=T(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params},children:(y,$t)=>{var H=I(),ut=T(H);S(ut,()=>c(Y),(_t,ct)=>{V(ct(_t,{get data(){return p()},get form(){return u()},get params(){return n().params}}),mt=>s()[2]=mt,()=>s()?.[2])}),m(y,H)},$$slots:{default:!0}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)},it=h=>{const N=L(()=>i()[1]);var D=I(),C=T(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)};k(st,h=>{i()[2]?h(nt):h(it,-1)})}m(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)},rt=r=>{const _=L(()=>i()[0]);var E=I(),R=T(E);S(R,()=>c(_),(v,b)=>{V(b(v,{get data(){return l()},get form(){return u()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)};k(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var _=zt(),E=Ot(_);{var R=v=>{var b=Pt();Dt(()=>yt(b,c(B))),m(v,b)};k(E,v=>{c(z)&&v(R)})}Rt(_),m(r,_)};k(ot,r=>{c(O)&&r(at)})}return m(t,G),At(tt)}const Yt=gt(J),te=[()=>a(()=>import("../nodes/0.Dm_Wrn8a.js"),__vite__mapDeps([6,4,5,7,8,3,9,10,11,12,13,14,2,15,16,17,18,19,20]),import.meta.url),()=>a(()=>import("../nodes/1.tHwXdWHU.js"),__vite__mapDeps([21,4,5,22,23,24,25,7,26,3,27,28,29,8,1,2,30]),import.meta.url),()=>a(()=>import("../nodes/2.CYfia3l7.js"),__vite__mapDeps([31,4,5,7,32,10,11,12,13,3,14,2,8,24,25,26,27,33,29,34,35,28,1,30,18,22,36,19,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,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,17,88,89,90,9,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,16,121,122,123,124,125,126,127,128,129,130,131,132,133,23,134,135,136,137,138,139,140,141,142,143,144]),import.meta.url),()=>a(()=>import("../nodes/3.LTzWUntu.js"),__vite__mapDeps([145,4,5,33,26,7,3,27,22,23,24,25,28,29,8,1,2,30,38,39,37,40,34,10,11,12,13,14,35,18,41,19,36]),import.meta.url),()=>a(()=>import("../nodes/4.DmnpJbBQ.js"),__vite__mapDeps([146,4,5,7,9,8,3,43,10,11,12,13,14,2,34,24,25,26,27,35,28,29,1,30,18,33,44,39,45,46,47,41,48,49,50,51,52,53,54,55,56,57,58,19,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,36,40,80,81,82,83,84,85,86,42,87,17,88,89,90,38,22,37,91,92,93,94,95]),import.meta.url),()=>a(()=>import("../nodes/5.OcCkV4TE.js"),__vite__mapDeps([147,4,5,53,148,28,7,26,3,27,29,25,8,1,2,30,24,32,10,11,12,13,14,33,101,99,74,102,103,52,77,78,104,105,100,106,107,75,54,76,108,109,51,98,110,56,44,39,50,55,97,111,112,85,49,34,35,18,57,58,41,47,19,38,22,37,40,36,113,120,48,46,45,16,96,121,122,61,69,89,149,81,150,151,152,153,84,154,155,156,82,157,133,158,159,131,160,161,71,134,67,68,135,128,80,162,163,164,139,165,166,167,168,90,169,170,171,172,173,174,175,176,177,23,178,179,180,181,63,64,65,66,182,183,184,117,185,142,143,186,187,188,189,190,191,192,193,194,195,196,127,123,79,197,198,137,199]),import.meta.url),()=>a(()=>import("../nodes/6.BX-GHMl7.js"),__vite__mapDeps([200,4,5,26,7,3,27,29,34,2,10,11,12,13,14,8,24,25,35,28,1,30,18,33,39,23,22,46,47,44,45,41,165,166,50,51,52,53,54,55,120,48,49,56,57,58,19,100,101,99,74,102,103,77,78,104,105,106,107,75,76,108,109,98,110,85,97,111,112,38,37,40,36,113,16,96,121,122,67,68,153,84,149,152,154,155,156,69,82,157,133,158,167,139,168,90,169,170,171,172,173,134,135,174,175,176,177,71,128,80,178,179,180,181,184,86,42,201]),import.meta.url),()=>a(()=>import("../nodes/7.845VSiaM.js"),__vite__mapDeps([202,4,5,53,108,203,19,12,36,11,10,13,3,7,14,2,8,50,26,27,28,29,25,1,30,33,51,52,24,54,55,109,162]),import.meta.url),()=>a(()=>import("../nodes/8.DhfxJ-A6.js"),__vite__mapDeps([204,4,5,8,3,26,7,27,25,29,28,1,2,30,74,101,99,33,24,102,103,52,77,78,104,105,100,106,107,75,54,76,53,108,109,51,10,11,12,13,14,98,110,138,116,57,58,41,34,35,18,47,97,111,112,85,50,55,39,49,56,44,19,38,22,37,40,36,113,23,60,205,72,46,45,68,206,157,155,178,159,131,89,117,70,79,203,189,190,121,87,92,207,80,62,208,193,209,210,196]),import.meta.url),()=>a(()=>import("../nodes/9.ByyuHyJR.js"),__vite__mapDeps([211,4,5,148,28,7,26,3,27,29,25,8,1,2,30,24,32,10,11,12,13,14,33,101,99,74,102,103,52,77,78,104,105,100,106,107,75,54,76,53,108,109,51,98,110,56,44,39,50,55,97,111,112,85,49,34,35,18,57,58,41,47,19,38,22,37,40,36,113,120,48,46,45,16,96,121,122,61,69,89,149,81,150,151,152,153,84,154,155,156,82,157,133,158,159,131,160,161,23,129,130,59,60,125,91,92,93,94,95,126,132,188,42,139,136,71,70,212,141,213,214,206,83,215,119,205,117,87,216,217,88,218,219,220,185,221,222,123,190,137,223]),import.meta.url),()=>a(()=>import("../nodes/10.CH-P0d_x.js"),__vite__mapDeps([224,4,5,37,22,26,7,3,27,25,10,11,12,13,14,2,8,24,29,136,104,28,1,30,111,33,99,74,50,51,52,53,54,55,96,85,186,137,106,216,217,88,34,35,18,212,141,94,95,93,56,44,39,40,98,213,90,220,89,225]),import.meta.url),()=>a(()=>import("../nodes/11.CBilAgjF.js"),__vite__mapDeps([226,4,5,53,108,24,25,7,26,3,27]),import.meta.url),()=>a(()=>import("../nodes/12.CwLwGOfk.js"),__vite__mapDeps([227,4,5,8,3,28,7,26,27,29,25,1,2,30,24,109,162,228]),import.meta.url),()=>a(()=>import("../nodes/13.DvKRNmRj.js"),__vite__mapDeps([229,4,5,26,7,3,27,28,29,25,8,1,2,30,109,162,230,11,124,139,99,33,74,101,24,102,103,52,77,78,104,105,121,53,108,231]),import.meta.url),()=>a(()=>import("../nodes/14.DHU-88k0.js"),__vite__mapDeps([232,4,5,57,10,11,12,13,3,7,14,2,8,58,41,34,24,25,26,27,35,28,29,1,30,18,33,47,109,162,43,44,39,45,46,48,49,50,51,52,53,54,55,56,19,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,36,40,80,81,82,83,84,85,86,42,87,17,88,89,90,38,22,37,9,91,92,93,94,95,173,97,98,99,100,101,102,103,104,105,106,107,108,110,111,112,113,120,16,96,121,122,134,135,174,114,209,182,183,165,166,153,149,152,154,155,156,157,133,158,167,139,168,169,170,171,172,175,176,177,23,128,178,179,180,181,184,117,185,142,143,186,187,230,233,196]),import.meta.url),()=>a(()=>import("../nodes/15.CLi9Mr7F.js"),__vite__mapDeps([234,4,5,26,7,3,27,28,29,25,8,1,2,30,109,162,33,64,194,14,139,183,66,56,44,39,235,196]),import.meta.url),()=>a(()=>import("../nodes/16.CH7JJ_PA.js"),__vite__mapDeps([236,4,5,8,3,26,7,27,28,29,25,1,2,30,109,162,192,85,183,74,75,54,76,112,106,99,33,107,52,102,103,77,78,24,13,14,193,139,194,64,65,195,196,56,44,39,45,157,237]),import.meta.url),()=>a(()=>import("../nodes/17.BVdrxt4z.js"),__vite__mapDeps([238,4,5,56,8,3,44,39,24,25,7,26,27,28,29,1,2,30,10,11,12,13,14,33,133,69,34,35,18,57,58,41,47,128,80,51,73,100,101,99,74,102,103,52,77,78,104,105,106,107,75,54,76,53,108,109,98,110,115,116,62,87,38,22,37,40,19,36,239]),import.meta.url)],ee=[],re={"/(app)":[5,[2],[3]],"/(app)/agent/[id]":[6,[2],[3]],"/(app)/desktop-control-agent":[7,[2],[3]],"/desktop-overlay":[12],"/dev-console":[13],"/dock-annotation":[15],"/dock-capture-editor":[16],"/dock":[14],"/hud":[17,[4]],"/(app)/settings":[8,[2],[3]],"/(app)/workspace/creating":[11,[2],[3]],"/(app)/workspace/[id]":[9,[2],[3]],"/(app)/workspace/[id]/files":[10,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:Lt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),oe=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),ae=!1,se=(t,e)=>Gt[t](e),ne=()=>a(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{se as decode,Gt as decoders,re as dictionary,oe as encoders,ne as get_error_template,ae as hash,Q as hooks,Qt as matchers,te as nodes,Yt as root,ee as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,s as r}from"../chunks/DM3oLKKN.js";export{o as load_css,r as start};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as L,br as I,bz as O,bv as Z,bt as ee,b as N,a_ as te,bu as ne,bs as oe}from"../chunks/Cv-W__h8.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as W,W as A,bn as T,aA as $}from"../chunks/DYhIMPy1.js";import{s as R}from"../chunks/ClsZrb8B.js";import{z as ie,I as H,G as ae}from"../chunks/GdlMbZRO.js";import{w as ce}from"../chunks/0powQEfB.js";import{Ir as ue}from"../chunks/DBkMUdAo.js";import{initAppStore as de}from"../chunks/CjU1deOg.js";import{K as le,I as fe}from"../chunks/1o85IiDb.js";import{i as me}from"../chunks/
|
|
1
|
+
import{t as L,br as I,bz as O,bv as Z,bt as ee,b as N,a_ as te,bu as ne,bs as oe}from"../chunks/Cv-W__h8.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as W,W as A,bn as T,aA as $}from"../chunks/DYhIMPy1.js";import{s as R}from"../chunks/ClsZrb8B.js";import{z as ie,I as H,G as ae}from"../chunks/GdlMbZRO.js";import{w as ce}from"../chunks/0powQEfB.js";import{Ir as ue}from"../chunks/DBkMUdAo.js";import{initAppStore as de}from"../chunks/CjU1deOg.js";import{K as le,I as fe}from"../chunks/1o85IiDb.js";import{i as me}from"../chunks/Lbcfa2vI.js";const pe=!1,we=!1,ve=!0,ke=Object.freeze(Object.defineProperty({__proto__:null,csr:ve,prerender:we,ssr:pe},Symbol.toStringTag,{value:"Module"}));function ge(e,t,r){const f=de(e);let p=t.startSagas(e),s=!1;const l=()=>{if(!s){s=!0;try{for(const m of p)m()}finally{f.dispose(),r?.rootStoreStop===l&&(r.rootStoreStop=void 0,r.rootStoreReplaceSagas=void 0)}}};return l}const V=3,j=4,be=100;let E=null;function S(e){const t=Date.now();E!==null&&E.direction===e&&t-E.at<be||(E={direction:e,at:t},e==="back"?history.back():history.forward())}function he(){return document.querySelector("webview:hover")!==null}function Ae(e){e!=="back"&&e!=="forward"||he()||S(e)}function z(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function U(e){z(e)||(e.button===V?(e.preventDefault(),S("back")):e.button===j&&(e.preventDefault(),S("forward")))}function F(e){z(e)||(e.button===V||e.button===j)&&e.preventDefault()}function Ee(e=window){return e.addEventListener("mouseup",U,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",U,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function ye(e){const t=new Set,r="data-window-animation-paused",f=()=>e.hasAttribute("data-window-blurred");function p(i){const n=new Set;for(const o of i){if(!(o instanceof CSSAnimation)||o.playState!=="running"&&o.playState!=="paused"||o.effect?.getTiming().iterations!==1/0)continue;const d=o.effect?.target;d instanceof Element&&n.add(d)}for(const o of n)t.has(o)||(t.add(o),o.setAttribute(r,""))}function s(){for(const i of t)i.removeAttribute(r);t.clear()}function l(i){for(const n of i)!t.has(n)||e.contains(n)&&n.getAnimations({subtree:!0}).some(d=>d instanceof CSSAnimation&&d.effect?.target===n&&d.effect?.getTiming().iterations===1/0)||(t.delete(n),n.removeAttribute(r))}const m=new MutationObserver(i=>{if(!f())return;const n=new Set,o=new Set;for(const a of i){if(a.type==="childList")for(const c of a.addedNodes)c instanceof Element&&n.add(c);else if(a.target instanceof Element&&a.attributeName!==r&&a.attributeName!=="data-window-blurred")n.add(a.target);else continue;if(a.target instanceof Element)for(const c of t)(a.target.contains(c)||!e.contains(c))&&o.add(c)}l(o);const d=[];for(const a of n){if(!e.contains(a))continue;let c=a.parentElement;for(;c&&!n.has(c);)c=c.parentElement;c||d.push(...a.getAnimations({subtree:!0}))}p(d)});function v(){m.disconnect(),f()?(m.observe(e,{childList:!0,attributes:!0,subtree:!0}),p(e.getAnimations({subtree:!0}))):s()}function u(i){!f()||!(i.target instanceof Element)||(l([i.target]),p(i.target.getAnimations({subtree:!0})))}function w(i){!f()||!(i.target instanceof Element)||l([i.target])}const g=new MutationObserver(v);return g.observe(e,{attributes:!0,attributeFilter:["data-window-blurred"]}),e.addEventListener("animationstart",u,!0),e.addEventListener("animationcancel",w,!0),v(),{destroy(){g.disconnect(),m.disconnect(),e.removeEventListener("animationstart",u,!0),e.removeEventListener("animationcancel",w,!0),s()}}}function K(e,t){if(new.target)return L({component:K,...e});P(t,!0);const r=()=>Z(m,"$resolvedLocale$",f),[f,p]=ee();let s=I(t,"children",7);const l=ge(ue,{startSagas:()=>[]},void 0);re(l);const m=le(),v=fe();se(()=>{const n=!me()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},D=()=>c(!1),M=()=>c(!0),q=v.subscribe(_=>{d=_,a()}),k=window.electronAPI,B=ie();let y;a(),n&&(B?y=k?.on?.("window:focus",c):(window.addEventListener("blur",D),window.addEventListener("focus",M)));const J=ye(document.documentElement),Q=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const X=Ee(window),C=window.electronAPI?.on?.(H.APP.HISTORY_NAVIGATE,Ae);return()=>{q(),J.destroy(),y?k.offById("window:focus",y):n&&!B&&(window.removeEventListener("blur",D),window.removeEventListener("focus",M)),document.documentElement.removeAttribute("data-window-blurred"),Q(),X(),C&&window.electronAPI.offById(H.APP.HISTORY_NAVIGATE,C)}});var u={get children(){return s()},set children(n){s(n),$()},$set:O,$on:(n,o)=>N(t,n,o)},w=b(),g=h(w);ae(g,r,n=>{var o=b(),d=h(o);R(d,()=>s()??W),A(n,o)}),A(e,w);var i=T(u);return p(),i}const x="/dev-console";function _e(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Se(e){return e===G||e.startsWith(`${G}/`)}function Y(e,t){if(new.target)return L({component:Y,...e});P(t,!0);let r=I(t,"children",7);const f=typeof window<"u"&&(_e(window.location.pathname)||Se(window.location.pathname));var p={get children(){return r()},set children(u){r(u),$()},$set:O,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);R(g,()=>r()??W),A(u,w)},v=u=>{K(u,{get children(){return r()}})};te(l,u=>{f?u(m):u(v,-1)})}return A(e,s),T(p)}var Le=new Set(["$$slots","$$events","$$legacy","children"]);function Ie(e,t){if(new.target)return L({component:Ie,...e});P(t,!0);let r=I(t,"children",7),f=oe(t,Le);var p={get children(){return r()},set children(s){r(s),$()},$set:O,$on:(s,l)=>N(t,s,l)};return Y(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);R(v,()=>r()??W),A(s,m)},$$slots:{default:!0}})),T(p)}export{Ie as component,ke as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as W,a_ as P,bz as A,b as D,bp as p,bu as R,bs as U}from"../chunks/Cv-W__h8.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as y,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as T}from"../chunks/DYhIMPy1.js";import{g as re}from"../chunks/
|
|
1
|
+
import{t as W,a_ as P,bz as A,b as D,bp as p,bu as R,bs as U}from"../chunks/Cv-W__h8.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as y,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as T}from"../chunks/DYhIMPy1.js";import{g as re}from"../chunks/DM3oLKKN.js";import{p as b}from"../chunks/2P2kVPCB.js";import{F as te,cO as ae}from"../chunks/BKpkoMuv.js";import{f as se}from"../chunks/BePtUMMB.js";var oe=T('<p class="text-sm text-subtle"> </p>'),le=T('<div class="min-h-screen flex items-center justify-center p-6 bg-background"><div class="w-full max-w-md" role="alert" aria-live="assertive"><div class="bg-card border border-border rounded-xl shadow-lg p-8 space-y-6 text-center"><div class="flex justify-center"><div class="w-14 h-14 rounded-full bg-warning/10 flex items-center justify-center opacity-50"><!></div></div> <div class="space-y-3"><h2 class="text-2xl font-semibold text-foreground"> </h2> <!> <p class="text-base text-subtle leading-relaxed break-words"> </p></div> <div class="flex items-center justify-center gap-3 flex-wrap"><!></div></div></div></div>');function q(l,o){if(new.target)return W({component:q,...l});E(o,!0);let c=y(()=>b.error),r=y(()=>b.status),v=y(()=>e(r)===404&&b.url.pathname!=="/");V(()=>{e(v)?(console.warn("[+error.svelte:root] 404, redirecting to /",{url:b.url.href,status:e(r)}),re("/",{replaceState:!0})):console.error("[+error.svelte:root]",{status:e(r),error:e(c)})});var g={$set:A,$on:(i,n)=>D(o,i,n)},j=X(),G=Y(j);{var H=i=>{var n=le(),z=a(n),F=a(z),x=a(F),S=a(x),I=a(S);te(I,{get icon(){return ae},size:"lg",class:"text-warning"}),s(S),s(x);var w=f(x,2),B=a(w),J=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),u=$(d,!0);k(h=>m(u,h),[()=>p.error_page_status_label({status:e(r)})]),_(t,d)};P(C,t=>{e(r)&&e(r)!==500&&t(K)})}var L=f(C,2),M=$(L,!0);s(w);var O=f(w,2),Q=a(O);se(Q,{variant:"outline",size:"default",onclick:()=>window.location.reload(),children:(t,d)=>{Z();var u=ee();k(h=>m(u,h),[()=>p.error_page_reload_button()]),_(t,u)},$$slots:{default:!0}}),s(O),s(F),s(z),s(n),k((t,d)=>{m(J,t),m(M,d)},[()=>p.error_page_title(),()=>e(c)?.message||p.error_page_unexpected_fallback()]),_(i,n)};P(G,i=>{e(v)||i(H)})}return _(l,j),N(g)}var ie=new Set(["$$slots","$$events","$$legacy"]);function ne(l,o){if(new.target)return W({component:ne,...l});E(o,!0);let c=U(o,ie);var r={$set:A,$on:(v,g)=>D(o,v,g)};return q(l,R(()=>c)),N(r)}export{ne as component};
|