@intent-hq/web 2.357.0 → 2.357.2
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/{Ck6v_gHY.js → -Dz8vPPu.js} +1 -1
- package/web/app/immutable/chunks/{ecq9AzSs.js → 1YDXnizR.js} +1 -1
- package/web/app/immutable/chunks/{B4ODjo1_.js → 3DNo8acM.js} +1 -1
- package/web/app/immutable/chunks/{DIq_NgVD.js → 4qtgvHSc.js} +1 -1
- package/web/app/immutable/chunks/{Djn-kDZ4.js → AZARnJTP.js} +1 -1
- package/web/app/immutable/chunks/{BiYndv31.js → B01_K0Zx.js} +1 -1
- package/web/app/immutable/chunks/{Ct4AQosP.js → B2Hrr9gC.js} +1 -1
- package/web/app/immutable/chunks/{BR8MYFvM.js → B4xNlIAV.js} +1 -1
- package/web/app/immutable/chunks/{DW6txncK.js → B5f0EnPA.js} +1 -1
- package/web/app/immutable/chunks/{Osmv5gZI.js → B6_POptn.js} +2 -2
- package/web/app/immutable/chunks/{DrpfvH93.js → B6aoFNsZ.js} +1 -1
- package/web/app/immutable/chunks/{B6Xz_h0x.js → BF-dXrHQ.js} +1 -1
- package/web/app/immutable/chunks/{Cy7DFJe5.js → BGp9wcKF.js} +1 -1
- package/web/app/immutable/chunks/{DiLP5819.js → BJw6iNpc.js} +1 -1
- package/web/app/immutable/chunks/{Bfjz63Rs.js → BKyuDno-.js} +1 -1
- package/web/app/immutable/chunks/{CPNM0qrd.js → BLvaW6U-.js} +2 -2
- package/web/app/immutable/chunks/{CapRHp-3.js → BMEbotzk.js} +1 -1
- package/web/app/immutable/chunks/{CSVv71j6.js → BN3wupfJ.js} +1 -1
- package/web/app/immutable/chunks/{0sUdCOJj.js → BRQfmzJK.js} +2 -2
- package/web/app/immutable/chunks/{BAWksQvp.js → BSCeNo9e.js} +1 -1
- package/web/app/immutable/chunks/{BcfSFmD3.js → BV_sqti5.js} +1 -1
- package/web/app/immutable/chunks/{Ohf7jFka.js → BVzM8oPa.js} +2 -2
- package/web/app/immutable/chunks/{DyqsXXds.js → BYMuFfMr.js} +1 -1
- package/web/app/immutable/chunks/{Bpu4KV0h.js → BYacIeji.js} +1 -1
- package/web/app/immutable/chunks/{Zo8Uabvb.js → BZhCnW00.js} +29 -29
- package/web/app/immutable/chunks/{BPivozdw.js → BZwWAcIQ.js} +3 -3
- package/web/app/immutable/chunks/{BO4DijuW.js → Bdn977NY.js} +1 -1
- package/web/app/immutable/chunks/{BhqI687N.js → BduS68Gp.js} +1 -1
- package/web/app/immutable/chunks/{BALn2OfB.js → BoxDV-eV.js} +2 -2
- package/web/app/immutable/chunks/{DhigC4WI.js → BupcAMwT.js} +2 -2
- package/web/app/immutable/chunks/{DQT2HseM.js → Bx2UPUSS.js} +1 -1
- package/web/app/immutable/chunks/{Bk14cxcJ.js → BxEqq8u7.js} +1 -1
- package/web/app/immutable/chunks/{C6jDNmrt.js → By5vwL_O.js} +1 -1
- package/web/app/immutable/chunks/{CGnPIR9g.js → ByRDKkGj.js} +1 -1
- package/web/app/immutable/chunks/{1nnk-Wsk.js → Byu35bMH.js} +1 -1
- package/web/app/immutable/chunks/{D-oI-oRa.js → C0Jm4fWy.js} +1 -1
- package/web/app/immutable/chunks/{BsoU3ZI2.js → C5N_x7sk.js} +1 -1
- package/web/app/immutable/chunks/{CmoBfnbr.js → C612fWtF.js} +1 -1
- package/web/app/immutable/chunks/{VdF5zrMU.js → C7Q4ST3H.js} +1 -1
- package/web/app/immutable/chunks/{XvB_C6E3.js → CB1MXwdv.js} +1 -1
- package/web/app/immutable/chunks/{BIVrIHM0.js → CBc0yuEL.js} +1 -1
- package/web/app/immutable/chunks/{D4S_b9kl.js → CBtIyqx-.js} +1 -1
- package/web/app/immutable/chunks/{BpqOTexP.js → CCpFKQ8v.js} +1 -1
- package/web/app/immutable/chunks/{9LFJ_Q3r.js → CEA35q_5.js} +1 -1
- package/web/app/immutable/chunks/{DzVwqiSG.js → CGvRyYuS.js} +1 -1
- package/web/app/immutable/chunks/{Bj1ZRGMd.js → CI4whfda.js} +1 -1
- package/web/app/immutable/chunks/{CDBU9mtE.js → CIsT_9vf.js} +1 -1
- package/web/app/immutable/chunks/{BX3WN5kC.js → CQcXCvtR.js} +1 -1
- package/web/app/immutable/chunks/{DwIt5YzD.js → CR4GS07l.js} +1 -1
- package/web/app/immutable/chunks/{hcSSFtOe.js → CSQgXrQ-.js} +1 -1
- package/web/app/immutable/chunks/{C-ITJ-M0.js → CVmn9QQQ.js} +1 -1
- package/web/app/immutable/chunks/{C0p8wayb.js → C_UYdROC.js} +1 -1
- package/web/app/immutable/chunks/{DYGZ9sTv.js → C_h3ttX_.js} +1 -1
- package/web/app/immutable/chunks/{BWa7My9c.js → CalkReL4.js} +1 -1
- package/web/app/immutable/chunks/{BXgckBJT.js → CavPnWIE.js} +1 -1
- package/web/app/immutable/chunks/{BQJBTOJl.js → Ce-uRCe2.js} +1 -1
- package/web/app/immutable/chunks/{DYZ9p4gw.js → Cebm9OzC.js} +1 -1
- package/web/app/immutable/chunks/{DPdE8XN1.js → CeuuQZ9t.js} +1 -1
- package/web/app/immutable/chunks/{CxN-SpwP.js → ChGDQSZ_.js} +1 -1
- package/web/app/immutable/chunks/{DZflJ7Rw.js → CiYS6VIq.js} +1 -1
- package/web/app/immutable/chunks/{iXONcEpN.js → CihHUFd0.js} +1 -1
- package/web/app/immutable/chunks/{DcW_Q-_L.js → Ck0rM6Li.js} +1 -1
- package/web/app/immutable/chunks/{trDHZFy5.js → Cmx4YFs-.js} +1 -1
- package/web/app/immutable/chunks/{CYqk2Hhu.js → CoFABCAh.js} +3 -3
- package/web/app/immutable/chunks/{BNMSrBKr.js → CpEc01Iz.js} +1 -1
- package/web/app/immutable/chunks/{ds28TSQT.js → Cqkz_Y4B.js} +1 -1
- package/web/app/immutable/chunks/{qiMxzrto.js → Cvl4pk-J.js} +1 -1
- package/web/app/immutable/chunks/{1tg8Mdjb.js → CwZa9-wv.js} +1 -1
- package/web/app/immutable/chunks/{BufA67uC.js → CxqTcejm.js} +1 -1
- package/web/app/immutable/chunks/{CUcdKSIk.js → D-2rCQOV.js} +1 -1
- package/web/app/immutable/chunks/{f4FaHo0d.js → D48R4ayA.js} +1 -1
- package/web/app/immutable/chunks/{VNMm_PPx.js → D56_Uee5.js} +1 -1
- package/web/app/immutable/chunks/{Dse_C5ka.js → DBk-fCri.js} +1 -1
- package/web/app/immutable/chunks/{y6whrxEh.js → DDF-sX8n.js} +1 -1
- package/web/app/immutable/chunks/{DcjHFaNi.js → DE4VO873.js} +1 -1
- package/web/app/immutable/chunks/{DcyLYuvX.js → DE5aYQIc.js} +1 -1
- package/web/app/immutable/chunks/{jqpS-Qmo.js → DEMUCUuw.js} +1 -1
- package/web/app/immutable/chunks/{DsqE_Bdq.js → DGTsMy6C.js} +1 -1
- package/web/app/immutable/chunks/{-p1BY2nb.js → DGnmZhC2.js} +1 -1
- package/web/app/immutable/chunks/{JZzD0yFI.js → DGtIaQ-Y.js} +2 -2
- package/web/app/immutable/chunks/{COrU_zos.js → DNZlJSa8.js} +4 -4
- package/web/app/immutable/chunks/{DrK8t3w6.js → DPWS4vXp.js} +1 -1
- package/web/app/immutable/chunks/{CSa-Sqaw.js → DQyKrRWr.js} +4 -4
- package/web/app/immutable/chunks/{CDop75lD.js → DShRMpzG.js} +4 -4
- package/web/app/immutable/chunks/{_ncQX04u.js → DWX6T0QV.js} +1 -1
- package/web/app/immutable/chunks/{BMZ0t1iW.js → DcLEPfXx.js} +1 -1
- package/web/app/immutable/chunks/{BAQ_0gFW.js → DctOxxB0.js} +1 -1
- package/web/app/immutable/chunks/{C8A6q25O.js → DfrYdRvI.js} +1 -1
- package/web/app/immutable/chunks/{ChM2jeRS.js → DmswUbfK.js} +1 -1
- package/web/app/immutable/chunks/{Cf_Jryir.js → DpWQU928.js} +1 -1
- package/web/app/immutable/chunks/{CQTLfLe-.js → Dpqmreji.js} +1 -1
- package/web/app/immutable/chunks/{BoedJ8yq.js → DrTzfICr.js} +1 -1
- package/web/app/immutable/chunks/{C75uVfAk.js → Dt1vPmrx.js} +1 -1
- package/web/app/immutable/chunks/{B9A7zPdb.js → DtbX3uA6.js} +1 -1
- package/web/app/immutable/chunks/{CccZ7iCE.js → Dx5hTAuT.js} +1 -1
- package/web/app/immutable/chunks/{B2tWwOjs.js → FiJlDSoB.js} +1 -1
- package/web/app/immutable/chunks/{DfG1FsDK.js → GWtQ84As.js} +4 -4
- package/web/app/immutable/chunks/{DHS6-YDt.js → HNohAAS8.js} +3 -3
- package/web/app/immutable/chunks/{CRlego-x.js → KWeNDW5r.js} +3 -3
- package/web/app/immutable/chunks/{BSDfJm3v.js → M-M1rI3h.js} +2 -2
- package/web/app/immutable/chunks/{t0Sry9wB.js → NHC0QFuc.js} +1 -1
- package/web/app/immutable/chunks/{CREdX7EY.js → NpNlLFF3.js} +1 -1
- package/web/app/immutable/chunks/{DE3MDhxe.js → PdEjBdEX.js} +1 -1
- package/web/app/immutable/chunks/{B4pmsBqR.js → Qrthgzan.js} +1 -1
- package/web/app/immutable/chunks/{CH24rXW_.js → ReAQOXUy.js} +1 -1
- package/web/app/immutable/chunks/{UfZ1-ewn.js → SSx-ToX7.js} +1 -1
- package/web/app/immutable/chunks/{BQkfaPle.js → TR7Il4dM.js} +1 -1
- package/web/app/immutable/chunks/{6j0Bv6V-.js → UellkQfD.js} +1 -1
- package/web/app/immutable/chunks/{Chtu4V3e.js → V4puAVlm.js} +1 -1
- package/web/app/immutable/chunks/{BUj9gSzV.js → VQlvcqoz.js} +1 -1
- package/web/app/immutable/chunks/{D1eZCGCC.js → WSKMt1K7.js} +1 -1
- package/web/app/immutable/chunks/{XTUjVC3s.js → YGYabZh2.js} +1 -1
- package/web/app/immutable/chunks/{BFsFAs4c.js → _yjvhbN1.js} +1 -1
- package/web/app/immutable/chunks/{BIJ9yl2O.js → hHLbxLPR.js} +1 -1
- package/web/app/immutable/chunks/{CmBCvv92.js → hIi9_0Am.js} +1 -1
- package/web/app/immutable/chunks/{C1zvEWGg.js → hl720_Ai.js} +2 -2
- package/web/app/immutable/chunks/{hZnA3cdC.js → iHR6T21j.js} +1 -1
- package/web/app/immutable/chunks/{B5E75mYn.js → io4bINRP.js} +3 -3
- package/web/app/immutable/chunks/{gz1pzjmr.js → keOgz1DR.js} +1 -1
- package/web/app/immutable/chunks/{Bi3vpVI6.js → m4bzYqUU.js} +1 -1
- package/web/app/immutable/chunks/{CzVeHBPR.js → plhbWb67.js} +1 -1
- package/web/app/immutable/chunks/{Bzimqqxc.js → qmcc6vFR.js} +1 -1
- package/web/app/immutable/chunks/{BGhV0sdL.js → wJIU9o1g.js} +1 -1
- package/web/app/immutable/chunks/{B-byhlrG.js → y5y-6t4A.js} +1 -1
- package/web/app/immutable/entry/{app.DzIpDnb7.js → app.DaT2jZP4.js} +2 -2
- package/web/app/immutable/entry/start.CjqKMkDH.js +1 -0
- package/web/app/immutable/nodes/{0.D9XYE-Ct.js → 0.IRQk4fx-.js} +1 -1
- package/web/app/immutable/nodes/{1.miAECHse.js → 1.C7dAQZ1s.js} +1 -1
- package/web/app/immutable/nodes/{10.D--eaewT.js → 10.CrxzCF8j.js} +1 -1
- package/web/app/immutable/nodes/{14.DUejalGq.js → 14.BRXhvkwl.js} +1 -1
- package/web/app/immutable/nodes/{18.DJqNUReE.js → 18.Dtxf0Wm-.js} +2 -2
- package/web/app/immutable/nodes/{2.CoGuMWzq.js → 2.BQlv0IyR.js} +4 -4
- package/web/app/immutable/nodes/{3.BFJD36tC.js → 3.BhV4kspL.js} +1 -1
- package/web/app/immutable/nodes/{4.B2Xl_W0u.js → 4.BRzAB7P9.js} +1 -1
- package/web/app/immutable/nodes/{5.BbLYjFzb.js → 5.CcK5L35R.js} +1 -1
- package/web/app/immutable/nodes/{6.8KJ44jJu.js → 6.BGohbAey.js} +1 -1
- package/web/app/immutable/nodes/{7.DM8B7EL6.js → 7.DRSBiJwF.js} +1 -1
- package/web/app/immutable/nodes/{8.CM-MwROR.js → 8.T0vbIHs7.js} +4 -4
- package/web/app/immutable/nodes/{9.CaTY2WNw.js → 9.DGJtpKQ9.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start._AX5mAyc.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Fe,bo as X,bm as M,bw as je,b as qe,bs as Ee,bq as at,br as xt}from"./BkULGdgB.js";import{bs as Ne,bj as bt,a5 as u,bA as c,b_ as x,W as r,bn as Ge,aA as J,ay as R,bS as n,aD as e,aB as m,c9 as $,c5 as Ce,ca as yt,bk as st,bH as Pe,bV as Oe,a7 as fe,be as $e,b$ as ke,bO as O,bl as Ae}from"./DYhIMPy1.js";import{i as U}from"./CVqc5kFv.js";import{k as ot}from"./Cx2QERlx.js";import{g as De}from"./jKsiRjTE.js";import{c as P}from"./dqNuna_B.js";import{s as Le,f as Je,c as Qe,b as Ye}from"./BkQ2g3_N.js";import{P as ze,h as Me,i as Se,g as We}from"./8KpVpm2n.js";import{B as At,t as T,E as Ze,d as Pt}from"./ByONXdFP.js";import"./CjRRnXFa.js";import{C as Tt}from"./DwIt5YzD.js";import"./zqSn-6Mx.js";import{IH as xe,fl as Rt,EE as nt,D4 as it,pE as Dt}from"./DZwGQbE8.js";import{aO as lt,aL as Et,aM as It,dt as Ht}from"./D4U_w4GT.js";import{d as Lt,r as zt}from"./BLkmPr-r.js";import{M as Mt}from"./DHS6-YDt.js";import{k as St}from"./DfG1FsDK.js";import{e as et}from"./JZzD0yFI.js";import{V as Wt,e as Bt}from"./f4FaHo0d.js";import{o as Ct}from"./C75uVfAk.js";import{f as Be}from"./DbyXkQ-A.js";import{S as Ie}from"./DqP39woS.js";import{F as He,$ as Ot,c$ as Ft,at as jt,bk as qt}from"./DcwBt__E.js";var Nt=m('<div class="space-y-3"><!> <!></div>'),Gt=m('<div class="space-y-3"><!> <!></div> <!>',1),Vt=m('<div class="space-y-3 rounded-xl border border-border p-4 shadow-xs"><div class="flex items-center gap-3"><!><!></div> <!> <div class="flex items-center justify-between pt-1"><!><!></div></div>'),Kt=m('<div class="min-w-0 space-y-3"><div class="flex h-10 items-center px-2"><!></div> <!></div>'),Ut=m('<div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-3 px-1"></div>'),Xt=m('<div class="flex h-10 items-center px-3"><!></div>'),Jt=m("<div><!> <!> <!> <!></div>"),Qt=m("<!> <!>",1),Yt=m('<div role="status" class="min-h-0 min-w-0 flex-1 overflow-hidden svelte-kmeefs" data-home-loading=""><div aria-hidden="true"><!></div></div>');function dt(b,l){if(new.target)return Fe({component:dt,...b});Ne(l,!0);const Q=At();bt(Q.cleanup);let I=X(l,"detail",7,!1),F=X(l,"count",7,5),Y=X(l,"view",7,"list"),Z=X(l,"grouped",7,!1),s=X(l,"rows",7,"workspace");var H={get detail(){return I()},set detail(i=!1){I(i),J()},get count(){return F()},set count(i=5){F(i),J()},get view(){return Y()},set view(i="list"){Y(i),J()},get grouped(){return Z()},set grouped(i=!1){Z(i),J()},get rows(){return s()},set rows(i="workspace"){s(i),J()},$set:je,$on:(i,D)=>qe(l,i,D)},y=Yt(),ie=u(y),be=u(ie);{var le=i=>{var D=Gt(),g=R(D),ee=u(g);T(ee,{class:"h-6 w-4/5"});var S=n(ee,2);T(S,{class:"h-4 w-1/2"}),c(g);var d=n(g,2);De(d,16,()=>[0,1],h=>h,(h,A)=>{var k=Nt(),te=u(k);T(te,{class:"h-3 w-full"});var j=n(te,2);T(j,{class:"h-3 w-5/6"}),c(k),r(h,k)}),r(i,D)},Te=i=>{var D=Ut();De(D,20,()=>[0,1,2],g=>g,(g,ee)=>{var S=Kt(),d=u(S),h=u(d);T(h,{class:"h-3 w-20"}),c(d);var A=n(d,2);De(A,16,()=>[0,1,2],k=>k,(k,te)=>{var j=Vt(),de=u(j),re=u(de);T(re,{class:"h-4 flex-1"});var ce=n(re);T(ce,{class:"size-3 rounded-full"}),c(de);var t=n(de,2);T(t,{class:"h-3 w-full"});var o=n(t,2),w=u(o);T(w,{class:"size-4 rounded-sm"});var q=n(w);T(q,{class:"h-3 w-6"}),c(o),c(j),r(k,j)}),c(S),r(g,S)}),c(D),r(i,D)},_e=i=>{var D=Qt(),g=R(D);{var ee=d=>{var h=Xt(),A=u(h);T(A,{class:"h-3 w-20"}),c(h),r(d,h)};U(g,d=>{Z()&&d(ee)})}var S=n(g,2);De(S,16,()=>Array.from({length:F()},(d,h)=>h),d=>d,(d,h)=>{var A=Jt(),k=u(A);T(k,{class:"size-4 shrink-0 rounded-sm"});var te=n(k,2);T(te,{class:"h-4 min-w-0 flex-1"});var j=n(te,2);{var de=o=>{T(o,{class:"size-3 shrink-0 rounded-full"})},re=o=>{T(o,{class:"size-5 shrink-0 rounded-full"})};U(j,o=>{s()==="workspace"?o(de):s()==="integration"&&o(re,1)})}var ce=n(j,2);{var t=o=>{{let w=$(()=>s()==="workspace"?"h-3 w-8 shrink-0":"h-3 w-6 shrink-0");T(o,{get class(){return e(w)}})}};U(ce,o=>{s()!=="compact"&&o(t)})}c(A),x(()=>Je(A,1,Qe(s()==="compact"?"flex min-h-6 items-center gap-2 py-1":`flex h-12 items-center gap-3 border-b border-border ${s()==="integration"?"px-2":"px-3"}`))),r(d,A)}),r(i,D)};U(be,i=>{I()?i(le):Y()==="board"?i(Te,1):i(_e,-1)})}return c(ie),c(y),x(i=>{Le(y,"aria-label",i),Le(y,"data-reduced",Q.current),Je(ie,1,Qe(I()?"space-y-6 py-3":s()==="compact"?"":"px-5 pb-4"))},[()=>M.home_integrations_loading()]),r(b,y),Ge(H)}function ct(b){return b.filter(Lt)}function Zt(){let b=null;return(l,Q)=>{const I=b?l.find(Y=>Y.id===b):void 0;if(I)return I;const F=zt(l);return b=Q&&F?String(F.id):null,F}}function er(b,l,Q){return l&&b.find(I=>I.id===l)||Q}var tr=m('<div class="p-4"><!></div>'),rr=m('<div class="flex h-full min-h-0 min-w-0 flex-col" data-home-workspace-chat=""><!></div>');function vt(b,l){if(new.target)return Fe({component:vt,...b});Ne(l,!0);const Q=()=>Ee(ie,"$agents$",F),I=()=>Ee(be,"$loaded$",F),[F,Y]=at();let Z=X(l,"workspace",7),s=X(l,"preview",7,!1),H=X(l,"agent",7);const y=Ce(()=>Z().id),ie=lt(y),be=Et(y),le=$(()=>ct(Q())),Te=$(()=>s()?void 0:H()?.id);yt(()=>{const t=e(Te);if(!t)return;const o=Date.now();return()=>{Date.now()-o<Mt||setTimeout(()=>xe.dispatch(Rt(t)),0)}});let _e=Oe(void 0),i=0;function D(t,o){s()||!e(le).some(w=>w.id===t)||(Pe(_e,{agentId:t,questionMessageId:o,requestId:++i},!0),xe.dispatch(nt(y,t)),xe.dispatch(it(y,t)))}let g=Oe(!1),ee;function S(){s()||(Pe(g,!1),clearTimeout(ee),xe.dispatch(Dt(y)),ee=setTimeout(()=>{Pe(g,!0)},15e3))}st(()=>(s()||S(),()=>clearTimeout(ee)));var d={focusAttention:D,get workspace(){return Z()},set workspace(t){Z(t),J()},get preview(){return s()},set preview(t=!1){s(t),J()},get agent(){return H()},set agent(t){H(t),J()},$set:je,$on:(t,o)=>qe(l,t,o)},h=rr(),A=u(h);{var k=t=>{Ze(t,{density:"compact",title:w=>{$e();var q=ke();x(ae=>O(q,ae),[()=>M.agentOverview_hierarchyGraph_noAgents_title()]),r(w,q)},$$slots:{title:!0}})},te=t=>{var o=fe(),w=R(o);ot(w,()=>H().id,q=>{{let ae=$(()=>e(_e)?.agentId===H().id?e(_e):void 0);Tt(q,{get workspace(){return Z()},get agentId(){return H().id},get agentName(){return H().name},autoFocus:!1,get attentionFocusRequest(){return e(ae)},isInitialWorkspaceAgent:!1})}}),r(t,o)},j=t=>{var o=tr(),w=u(o);dt(w,{detail:!0}),c(o),r(t,o)},de=t=>{{const o=q=>{$e();var ae=ke();x(ye=>O(ae,ye),[()=>M.home_detail_unavailable()]),r(q,ae)};let w=$(()=>M.home_retry());Pt(t,{density:"compact",get retryLabel(){return e(w)},onRetry:S,message:o,$$slots:{message:!0}})}},re=t=>{{const o=q=>{$e();var ae=ke();x(ye=>O(ae,ye),[()=>M.agentOverview_hierarchyGraph_noAgents_title()]),r(q,ae)};let w=$(()=>M.home_retry());Ze(t,{density:"compact",get actionLabel(){return e(w)},onAction:S,title:o,$$slots:{title:!0}})}};U(A,t=>{s()?t(k):H()?t(te,1):!I()&&!e(g)?t(j,2):I()?t(re,-1):t(de,3)})}c(h),x(()=>Le(h,"data-workspace-link-target",Z().id)),r(b,h);var ce=Ge(d);return Y(),ce}var ar=m('<span class="min-w-0 line-clamp-2 [overflow-wrap:anywhere]"> </span> <!>',1),tt=m("<!> <!>",1),sr=m('<div class="shrink-0"><!></div>'),or=m('<div><!> <span class="home-detail-repository-name truncate"> </span></div>'),rt=m("<!><!>",1),nr=m("<p> </p>"),ir=m('<!> <span class="min-w-0 truncate text-left"> </span> <!>',1),lr=m('<span class="flex min-w-0 items-center gap-2"><!> <span class="truncate"> </span></span>'),dr=m('<div class="shrink-0 min-w-0 px-1 py-2" data-home-agent-switcher=""><!></div>'),cr=m('<div class="flex items-center gap-2 px-4 py-2 type-caption text-muted-foreground" role="status"><p> </p> <!></div>'),vr=m('<section class="flex h-full min-h-0 min-w-0 flex-col" data-home-detail=""><header class="shrink-0 border-b border-border px-4 py-2"><div class="flex min-w-0 items-center gap-3"><h2 class="-ml-2 min-w-0 flex-1"><!></h2> <!></div> <!> <!></header> <!> <!> <div class="min-h-0 min-w-0 flex-1"><!></div></section>');function ur(b,l){if(new.target)return Fe({component:ur,...b});Ne(l,!0);const Q=()=>Ee(_e,"$readRevision$",Y),I=()=>Ee(Te,"$agents$",Y),F=()=>Ee(D,"$pickedId$",Y),[Y,Z]=at();let s=X(l,"workspace",7),H=X(l,"onclose",7),y=X(l,"preview",7,!1),ie=X(l,"showBackToList",7,!0);const be=$(()=>s().title.trim()?s().title:M.workspace_links_untitled_label()),le=Ce(()=>s().id),Te=lt(le),_e=It(le),i=Ce(()=>Q()),D=Wt(le),g=$(()=>ct(I())),ee=Zt(),S=$(()=>ee(e(g),Q()>i)),d=$(()=>er(e(g),F(),e(S)));function h(a){xe.dispatch(nt(le,a)),xe.dispatch(it(le,a))}const A=$(()=>[s().repositoryOwner,s().repositoryName].filter(Boolean).join("/")||s().repositoryPath);let k=Oe(!1);async function te(){Pe(k,!1);try{await Bt(s().id),Pe(k,!Ht.select(xe.state,s().id))}catch{Pe(k,!0)}}st(()=>{y()||te()});function j(){Ct(s().id)}var de={get workspace(){return s()},set workspace(a){s(a),J()},get onclose(){return H()},set onclose(a){H(a),J()},get preview(){return y()},set preview(a=!1){y(a),J()},get showBackToList(){return ie()},set showBackToList(a=!0){ie(a),J()},$set:je,$on:(a,f)=>qe(l,a,f)},re=vr(),ce=u(re),t=u(ce),o=u(t),w=u(o);P(w,()=>ze,(a,f)=>{f(a,{children:(N,oe)=>{var G=fe(),W=R(G);P(W,()=>Me,(ve,L)=>{L(ve,{children:(V,ge)=>{var me=tt(),ne=R(me);{const B=(z,C)=>{let E=()=>(C?.()).props;{let v=$(()=>M.home_open_workspace());Be(z,xt(E,{variant:"ghost",class:"type-title h-auto min-w-0 max-w-full shrink gap-2 justify-start whitespace-normal px-2 py-1 text-left font-medium leading-snug",wrapContent:!1,get"aria-label"(){return e(v)},onclick:j,children:(p,K)=>{var _=ar(),se=R(_),ue=Ae(se,!0),we=n(se,2);He(we,{get icon(){return Ot},class:"shrink-0 text-muted-foreground",size:"sm"}),x(()=>O(ue,e(be))),r(p,_)},$$slots:{default:!0}}))}};P(ne,()=>Se,(z,C)=>{C(z,{child:B,$$slots:{child:!0}})})}var he=n(ne,2);P(he,()=>We,(B,z)=>{z(B,{children:(C,E)=>{$e();var v=ke();x(()=>O(v,e(be))),r(C,v)},$$slots:{default:!0}})}),r(V,me)},$$slots:{default:!0}})}),r(N,G)},$$slots:{default:!0}})}),c(o);var q=n(o,2);{var ae=a=>{var f=sr(),N=u(f);{let oe=$(()=>M.home_close_preview()),G=$(()=>M.home_close_preview());Be(N,{variant:"ghost",size:"icon-sm",get"aria-label"(){return e(oe)},get tooltip(){return e(G)},get onclick(){return H()},children:(W,ve)=>{He(W,{get icon(){return Ft}})},$$slots:{default:!0}})}c(f),r(a,f)};U(q,a=>{ie()&&a(ae)})}c(t);var ye=n(t,2);{var ut=a=>{var f=fe(),N=R(f);P(N,()=>ze,(oe,G)=>{G(oe,{children:(W,ve)=>{var L=fe(),V=R(L);P(V,()=>Me,(ge,me)=>{me(ge,{children:(ne,he)=>{var B=rt(),z=R(B);{const E=(v,p)=>{let K=()=>(p?.()).props;var _=or();Ye(_,()=>({...K(),class:"mb-1 flex min-w-0 max-w-[min(100%,16rem)] items-center gap-1.5 type-caption text-muted-foreground","data-home-detail-repository":!0,"aria-label":e(A)}));var se=u(_);{var ue=pe=>{St(pe,{get identity(){return s().repositoryOwner},size:16,class:"shrink-0 rounded-sm"})},we=pe=>{He(pe,{get icon(){return qt}})};U(se,pe=>{s().repositoryOwner?pe(ue):pe(we,-1)})}var Xe=n(se,2),Re=Ae(Xe,!0);c(_),x(()=>O(Re,e(A))),r(v,_)};P(z,()=>Se,(v,p)=>{p(v,{child:E,$$slots:{child:!0}})})}var C=n(z);P(C,()=>We,(E,v)=>{v(E,{children:(p,K)=>{$e();var _=ke();x(()=>O(_,e(A))),r(p,_)},$$slots:{default:!0}})}),r(ne,B)},$$slots:{default:!0}})}),r(W,L)},$$slots:{default:!0}})}),r(a,f)};U(ye,a=>{e(A)&&a(ut)})}var pt=n(ye,2);{var mt=a=>{var f=fe(),N=R(f);P(N,()=>ze,(oe,G)=>{G(oe,{children:(W,ve)=>{var L=fe(),V=R(L);P(V,()=>Me,(ge,me)=>{me(ge,{children:(ne,he)=>{var B=rt(),z=R(B);{const E=(v,p)=>{let K=()=>(p?.()).props;var _=nr();Ye(_,()=>({...K(),class:"type-caption line-clamp-2 break-words leading-snug text-muted-foreground"}));var se=Ae(_,!0);x(()=>O(se,s().statusMessage)),r(v,_)};P(z,()=>Se,(v,p)=>{p(v,{child:E,$$slots:{child:!0}})})}var C=n(z);P(C,()=>We,(E,v)=>{v(E,{children:(p,K)=>{$e();var _=ke();x(()=>O(_,s().statusMessage)),r(p,_)},$$slots:{default:!0}})}),r(ne,B)},$$slots:{default:!0}})}),r(W,L)},$$slots:{default:!0}})}),r(a,f)};U(pt,a=>{s().statusMessage&&a(mt)})}c(ce);var Ve=n(ce,2);{var ft=a=>{var f=dr(),N=u(f);{let oe=$(()=>e(d)?.id??"");P(N,()=>Ie.Root,(G,W)=>{W(G,{get value(){return e(oe)},onchange:ve=>{const L=e(g).find(V=>V.id===ve);L&&h(L.id)},children:(ve,L)=>{var V=tt(),ge=R(V);{let ne=$(()=>M.home_agents());P(ge,()=>Ie.Trigger,(he,B)=>{B(he,{variant:"ghost",class:"h-8 w-fit max-w-full justify-start",get"aria-label"(){return e(ne)},children:(z,C)=>{var E=ir(),v=R(E);{var p=ue=>{{let we=$(()=>e(d).metadata?.specialist??e(d).agentMetadata?.specialist);et(ue,{get agentId(){return e(d).id},get specialist(){return e(we)},variant:"emphasized"})}};U(v,ue=>{e(d)&&ue(p)})}var K=n(v,2),_=Ae(K,!0),se=n(K,2);He(se,{get icon(){return jt},class:"shrink-0 text-muted-foreground"}),x(()=>O(_,e(d)?.name)),r(z,E)},$$slots:{default:!0}})})}var me=n(ge,2);P(me,()=>Ie.Content,(ne,he)=>{he(ne,{portal:!0,children:(B,z)=>{var C=fe(),E=R(C);De(E,17,()=>e(g),v=>v.id,(v,p)=>{var K=fe(),_=R(K);P(_,()=>Ie.Item,(se,ue)=>{ue(se,{get value(){return e(p).id},get label(){return e(p).name},children:(we,Xe)=>{var Re=lr(),pe=u(Re);{let kt=$(()=>e(p).metadata?.specialist??e(p).agentMetadata?.specialist);et(pe,{get agentId(){return e(p).id},get specialist(){return e(kt)},variant:"emphasized"})}var wt=n(pe,2),$t=Ae(wt,!0);c(Re),x(()=>O($t,e(p).name)),r(we,Re)},$$slots:{default:!0}})}),r(v,K)}),r(B,C)},$$slots:{default:!0}})}),r(ve,V)},$$slots:{default:!0}})})}c(f),r(a,f)};U(Ve,a=>{e(g).length&&a(ft)})}var Ke=n(Ve,2);{var _t=a=>{var f=cr(),N=u(f),oe=Ae(N,!0),G=n(N,2);Be(G,{variant:"outline",size:"sm",onclick:te,children:(W,ve)=>{$e();var L=ke();x(V=>O(L,V),[()=>M.home_retry()]),r(W,L)},$$slots:{default:!0}}),c(f),x(W=>O(oe,W),[()=>M.home_detail_unavailable()]),r(a,f)};U(Ke,a=>{e(k)&&a(_t)})}var Ue=n(Ke,2),gt=u(Ue);ot(gt,()=>s().id,a=>{vt(a,{get workspace(){return s()},get preview(){return y()},get agent(){return e(d)}})}),c(Ue),c(re),x(a=>Le(re,"aria-label",a),[()=>M.home_workspace_details()]),r(b,re);var ht=Ge(de);return Z(),ht}export{dt as H,ur as a};
|
|
1
|
+
import{t as Fe,bo as X,bm as M,bw as je,b as qe,bs as Ee,bq as at,br as xt}from"./BkULGdgB.js";import{bs as Ne,bj as bt,a5 as u,bA as c,b_ as x,W as r,bn as Ge,aA as J,ay as R,bS as n,aD as e,aB as m,c9 as $,c5 as Ce,ca as yt,bk as st,bH as Pe,bV as Oe,a7 as fe,be as $e,b$ as ke,bO as O,bl as Ae}from"./DYhIMPy1.js";import{i as U}from"./CVqc5kFv.js";import{k as ot}from"./Cx2QERlx.js";import{g as De}from"./jKsiRjTE.js";import{c as P}from"./dqNuna_B.js";import{s as Le,f as Je,c as Qe,b as Ye}from"./BkQ2g3_N.js";import{P as ze,h as Me,i as Se,g as We}from"./8KpVpm2n.js";import{B as At,t as T,E as Ze,d as Pt}from"./ByONXdFP.js";import"./CjRRnXFa.js";import{C as Tt}from"./CR4GS07l.js";import"./zqSn-6Mx.js";import{IH as xe,fl as Rt,EE as nt,D4 as it,pE as Dt}from"./DZwGQbE8.js";import{aO as lt,aL as Et,aM as It,dt as Ht}from"./D4U_w4GT.js";import{d as Lt,r as zt}from"./BLkmPr-r.js";import{M as Mt}from"./HNohAAS8.js";import{k as St}from"./GWtQ84As.js";import{e as et}from"./DGtIaQ-Y.js";import{V as Wt,e as Bt}from"./D48R4ayA.js";import{o as Ct}from"./Dt1vPmrx.js";import{f as Be}from"./DbyXkQ-A.js";import{S as Ie}from"./DqP39woS.js";import{F as He,$ as Ot,c$ as Ft,at as jt,bk as qt}from"./DcwBt__E.js";var Nt=m('<div class="space-y-3"><!> <!></div>'),Gt=m('<div class="space-y-3"><!> <!></div> <!>',1),Vt=m('<div class="space-y-3 rounded-xl border border-border p-4 shadow-xs"><div class="flex items-center gap-3"><!><!></div> <!> <div class="flex items-center justify-between pt-1"><!><!></div></div>'),Kt=m('<div class="min-w-0 space-y-3"><div class="flex h-10 items-center px-2"><!></div> <!></div>'),Ut=m('<div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-3 px-1"></div>'),Xt=m('<div class="flex h-10 items-center px-3"><!></div>'),Jt=m("<div><!> <!> <!> <!></div>"),Qt=m("<!> <!>",1),Yt=m('<div role="status" class="min-h-0 min-w-0 flex-1 overflow-hidden svelte-kmeefs" data-home-loading=""><div aria-hidden="true"><!></div></div>');function dt(b,l){if(new.target)return Fe({component:dt,...b});Ne(l,!0);const Q=At();bt(Q.cleanup);let I=X(l,"detail",7,!1),F=X(l,"count",7,5),Y=X(l,"view",7,"list"),Z=X(l,"grouped",7,!1),s=X(l,"rows",7,"workspace");var H={get detail(){return I()},set detail(i=!1){I(i),J()},get count(){return F()},set count(i=5){F(i),J()},get view(){return Y()},set view(i="list"){Y(i),J()},get grouped(){return Z()},set grouped(i=!1){Z(i),J()},get rows(){return s()},set rows(i="workspace"){s(i),J()},$set:je,$on:(i,D)=>qe(l,i,D)},y=Yt(),ie=u(y),be=u(ie);{var le=i=>{var D=Gt(),g=R(D),ee=u(g);T(ee,{class:"h-6 w-4/5"});var S=n(ee,2);T(S,{class:"h-4 w-1/2"}),c(g);var d=n(g,2);De(d,16,()=>[0,1],h=>h,(h,A)=>{var k=Nt(),te=u(k);T(te,{class:"h-3 w-full"});var j=n(te,2);T(j,{class:"h-3 w-5/6"}),c(k),r(h,k)}),r(i,D)},Te=i=>{var D=Ut();De(D,20,()=>[0,1,2],g=>g,(g,ee)=>{var S=Kt(),d=u(S),h=u(d);T(h,{class:"h-3 w-20"}),c(d);var A=n(d,2);De(A,16,()=>[0,1,2],k=>k,(k,te)=>{var j=Vt(),de=u(j),re=u(de);T(re,{class:"h-4 flex-1"});var ce=n(re);T(ce,{class:"size-3 rounded-full"}),c(de);var t=n(de,2);T(t,{class:"h-3 w-full"});var o=n(t,2),w=u(o);T(w,{class:"size-4 rounded-sm"});var q=n(w);T(q,{class:"h-3 w-6"}),c(o),c(j),r(k,j)}),c(S),r(g,S)}),c(D),r(i,D)},_e=i=>{var D=Qt(),g=R(D);{var ee=d=>{var h=Xt(),A=u(h);T(A,{class:"h-3 w-20"}),c(h),r(d,h)};U(g,d=>{Z()&&d(ee)})}var S=n(g,2);De(S,16,()=>Array.from({length:F()},(d,h)=>h),d=>d,(d,h)=>{var A=Jt(),k=u(A);T(k,{class:"size-4 shrink-0 rounded-sm"});var te=n(k,2);T(te,{class:"h-4 min-w-0 flex-1"});var j=n(te,2);{var de=o=>{T(o,{class:"size-3 shrink-0 rounded-full"})},re=o=>{T(o,{class:"size-5 shrink-0 rounded-full"})};U(j,o=>{s()==="workspace"?o(de):s()==="integration"&&o(re,1)})}var ce=n(j,2);{var t=o=>{{let w=$(()=>s()==="workspace"?"h-3 w-8 shrink-0":"h-3 w-6 shrink-0");T(o,{get class(){return e(w)}})}};U(ce,o=>{s()!=="compact"&&o(t)})}c(A),x(()=>Je(A,1,Qe(s()==="compact"?"flex min-h-6 items-center gap-2 py-1":`flex h-12 items-center gap-3 border-b border-border ${s()==="integration"?"px-2":"px-3"}`))),r(d,A)}),r(i,D)};U(be,i=>{I()?i(le):Y()==="board"?i(Te,1):i(_e,-1)})}return c(ie),c(y),x(i=>{Le(y,"aria-label",i),Le(y,"data-reduced",Q.current),Je(ie,1,Qe(I()?"space-y-6 py-3":s()==="compact"?"":"px-5 pb-4"))},[()=>M.home_integrations_loading()]),r(b,y),Ge(H)}function ct(b){return b.filter(Lt)}function Zt(){let b=null;return(l,Q)=>{const I=b?l.find(Y=>Y.id===b):void 0;if(I)return I;const F=zt(l);return b=Q&&F?String(F.id):null,F}}function er(b,l,Q){return l&&b.find(I=>I.id===l)||Q}var tr=m('<div class="p-4"><!></div>'),rr=m('<div class="flex h-full min-h-0 min-w-0 flex-col" data-home-workspace-chat=""><!></div>');function vt(b,l){if(new.target)return Fe({component:vt,...b});Ne(l,!0);const Q=()=>Ee(ie,"$agents$",F),I=()=>Ee(be,"$loaded$",F),[F,Y]=at();let Z=X(l,"workspace",7),s=X(l,"preview",7,!1),H=X(l,"agent",7);const y=Ce(()=>Z().id),ie=lt(y),be=Et(y),le=$(()=>ct(Q())),Te=$(()=>s()?void 0:H()?.id);yt(()=>{const t=e(Te);if(!t)return;const o=Date.now();return()=>{Date.now()-o<Mt||setTimeout(()=>xe.dispatch(Rt(t)),0)}});let _e=Oe(void 0),i=0;function D(t,o){s()||!e(le).some(w=>w.id===t)||(Pe(_e,{agentId:t,questionMessageId:o,requestId:++i},!0),xe.dispatch(nt(y,t)),xe.dispatch(it(y,t)))}let g=Oe(!1),ee;function S(){s()||(Pe(g,!1),clearTimeout(ee),xe.dispatch(Dt(y)),ee=setTimeout(()=>{Pe(g,!0)},15e3))}st(()=>(s()||S(),()=>clearTimeout(ee)));var d={focusAttention:D,get workspace(){return Z()},set workspace(t){Z(t),J()},get preview(){return s()},set preview(t=!1){s(t),J()},get agent(){return H()},set agent(t){H(t),J()},$set:je,$on:(t,o)=>qe(l,t,o)},h=rr(),A=u(h);{var k=t=>{Ze(t,{density:"compact",title:w=>{$e();var q=ke();x(ae=>O(q,ae),[()=>M.agentOverview_hierarchyGraph_noAgents_title()]),r(w,q)},$$slots:{title:!0}})},te=t=>{var o=fe(),w=R(o);ot(w,()=>H().id,q=>{{let ae=$(()=>e(_e)?.agentId===H().id?e(_e):void 0);Tt(q,{get workspace(){return Z()},get agentId(){return H().id},get agentName(){return H().name},autoFocus:!1,get attentionFocusRequest(){return e(ae)},isInitialWorkspaceAgent:!1})}}),r(t,o)},j=t=>{var o=tr(),w=u(o);dt(w,{detail:!0}),c(o),r(t,o)},de=t=>{{const o=q=>{$e();var ae=ke();x(ye=>O(ae,ye),[()=>M.home_detail_unavailable()]),r(q,ae)};let w=$(()=>M.home_retry());Pt(t,{density:"compact",get retryLabel(){return e(w)},onRetry:S,message:o,$$slots:{message:!0}})}},re=t=>{{const o=q=>{$e();var ae=ke();x(ye=>O(ae,ye),[()=>M.agentOverview_hierarchyGraph_noAgents_title()]),r(q,ae)};let w=$(()=>M.home_retry());Ze(t,{density:"compact",get actionLabel(){return e(w)},onAction:S,title:o,$$slots:{title:!0}})}};U(A,t=>{s()?t(k):H()?t(te,1):!I()&&!e(g)?t(j,2):I()?t(re,-1):t(de,3)})}c(h),x(()=>Le(h,"data-workspace-link-target",Z().id)),r(b,h);var ce=Ge(d);return Y(),ce}var ar=m('<span class="min-w-0 line-clamp-2 [overflow-wrap:anywhere]"> </span> <!>',1),tt=m("<!> <!>",1),sr=m('<div class="shrink-0"><!></div>'),or=m('<div><!> <span class="home-detail-repository-name truncate"> </span></div>'),rt=m("<!><!>",1),nr=m("<p> </p>"),ir=m('<!> <span class="min-w-0 truncate text-left"> </span> <!>',1),lr=m('<span class="flex min-w-0 items-center gap-2"><!> <span class="truncate"> </span></span>'),dr=m('<div class="shrink-0 min-w-0 px-1 py-2" data-home-agent-switcher=""><!></div>'),cr=m('<div class="flex items-center gap-2 px-4 py-2 type-caption text-muted-foreground" role="status"><p> </p> <!></div>'),vr=m('<section class="flex h-full min-h-0 min-w-0 flex-col" data-home-detail=""><header class="shrink-0 border-b border-border px-4 py-2"><div class="flex min-w-0 items-center gap-3"><h2 class="-ml-2 min-w-0 flex-1"><!></h2> <!></div> <!> <!></header> <!> <!> <div class="min-h-0 min-w-0 flex-1"><!></div></section>');function ur(b,l){if(new.target)return Fe({component:ur,...b});Ne(l,!0);const Q=()=>Ee(_e,"$readRevision$",Y),I=()=>Ee(Te,"$agents$",Y),F=()=>Ee(D,"$pickedId$",Y),[Y,Z]=at();let s=X(l,"workspace",7),H=X(l,"onclose",7),y=X(l,"preview",7,!1),ie=X(l,"showBackToList",7,!0);const be=$(()=>s().title.trim()?s().title:M.workspace_links_untitled_label()),le=Ce(()=>s().id),Te=lt(le),_e=It(le),i=Ce(()=>Q()),D=Wt(le),g=$(()=>ct(I())),ee=Zt(),S=$(()=>ee(e(g),Q()>i)),d=$(()=>er(e(g),F(),e(S)));function h(a){xe.dispatch(nt(le,a)),xe.dispatch(it(le,a))}const A=$(()=>[s().repositoryOwner,s().repositoryName].filter(Boolean).join("/")||s().repositoryPath);let k=Oe(!1);async function te(){Pe(k,!1);try{await Bt(s().id),Pe(k,!Ht.select(xe.state,s().id))}catch{Pe(k,!0)}}st(()=>{y()||te()});function j(){Ct(s().id)}var de={get workspace(){return s()},set workspace(a){s(a),J()},get onclose(){return H()},set onclose(a){H(a),J()},get preview(){return y()},set preview(a=!1){y(a),J()},get showBackToList(){return ie()},set showBackToList(a=!0){ie(a),J()},$set:je,$on:(a,f)=>qe(l,a,f)},re=vr(),ce=u(re),t=u(ce),o=u(t),w=u(o);P(w,()=>ze,(a,f)=>{f(a,{children:(N,oe)=>{var G=fe(),W=R(G);P(W,()=>Me,(ve,L)=>{L(ve,{children:(V,ge)=>{var me=tt(),ne=R(me);{const B=(z,C)=>{let E=()=>(C?.()).props;{let v=$(()=>M.home_open_workspace());Be(z,xt(E,{variant:"ghost",class:"type-title h-auto min-w-0 max-w-full shrink gap-2 justify-start whitespace-normal px-2 py-1 text-left font-medium leading-snug",wrapContent:!1,get"aria-label"(){return e(v)},onclick:j,children:(p,K)=>{var _=ar(),se=R(_),ue=Ae(se,!0),we=n(se,2);He(we,{get icon(){return Ot},class:"shrink-0 text-muted-foreground",size:"sm"}),x(()=>O(ue,e(be))),r(p,_)},$$slots:{default:!0}}))}};P(ne,()=>Se,(z,C)=>{C(z,{child:B,$$slots:{child:!0}})})}var he=n(ne,2);P(he,()=>We,(B,z)=>{z(B,{children:(C,E)=>{$e();var v=ke();x(()=>O(v,e(be))),r(C,v)},$$slots:{default:!0}})}),r(V,me)},$$slots:{default:!0}})}),r(N,G)},$$slots:{default:!0}})}),c(o);var q=n(o,2);{var ae=a=>{var f=sr(),N=u(f);{let oe=$(()=>M.home_close_preview()),G=$(()=>M.home_close_preview());Be(N,{variant:"ghost",size:"icon-sm",get"aria-label"(){return e(oe)},get tooltip(){return e(G)},get onclick(){return H()},children:(W,ve)=>{He(W,{get icon(){return Ft}})},$$slots:{default:!0}})}c(f),r(a,f)};U(q,a=>{ie()&&a(ae)})}c(t);var ye=n(t,2);{var ut=a=>{var f=fe(),N=R(f);P(N,()=>ze,(oe,G)=>{G(oe,{children:(W,ve)=>{var L=fe(),V=R(L);P(V,()=>Me,(ge,me)=>{me(ge,{children:(ne,he)=>{var B=rt(),z=R(B);{const E=(v,p)=>{let K=()=>(p?.()).props;var _=or();Ye(_,()=>({...K(),class:"mb-1 flex min-w-0 max-w-[min(100%,16rem)] items-center gap-1.5 type-caption text-muted-foreground","data-home-detail-repository":!0,"aria-label":e(A)}));var se=u(_);{var ue=pe=>{St(pe,{get identity(){return s().repositoryOwner},size:16,class:"shrink-0 rounded-sm"})},we=pe=>{He(pe,{get icon(){return qt}})};U(se,pe=>{s().repositoryOwner?pe(ue):pe(we,-1)})}var Xe=n(se,2),Re=Ae(Xe,!0);c(_),x(()=>O(Re,e(A))),r(v,_)};P(z,()=>Se,(v,p)=>{p(v,{child:E,$$slots:{child:!0}})})}var C=n(z);P(C,()=>We,(E,v)=>{v(E,{children:(p,K)=>{$e();var _=ke();x(()=>O(_,e(A))),r(p,_)},$$slots:{default:!0}})}),r(ne,B)},$$slots:{default:!0}})}),r(W,L)},$$slots:{default:!0}})}),r(a,f)};U(ye,a=>{e(A)&&a(ut)})}var pt=n(ye,2);{var mt=a=>{var f=fe(),N=R(f);P(N,()=>ze,(oe,G)=>{G(oe,{children:(W,ve)=>{var L=fe(),V=R(L);P(V,()=>Me,(ge,me)=>{me(ge,{children:(ne,he)=>{var B=rt(),z=R(B);{const E=(v,p)=>{let K=()=>(p?.()).props;var _=nr();Ye(_,()=>({...K(),class:"type-caption line-clamp-2 break-words leading-snug text-muted-foreground"}));var se=Ae(_,!0);x(()=>O(se,s().statusMessage)),r(v,_)};P(z,()=>Se,(v,p)=>{p(v,{child:E,$$slots:{child:!0}})})}var C=n(z);P(C,()=>We,(E,v)=>{v(E,{children:(p,K)=>{$e();var _=ke();x(()=>O(_,s().statusMessage)),r(p,_)},$$slots:{default:!0}})}),r(ne,B)},$$slots:{default:!0}})}),r(W,L)},$$slots:{default:!0}})}),r(a,f)};U(pt,a=>{s().statusMessage&&a(mt)})}c(ce);var Ve=n(ce,2);{var ft=a=>{var f=dr(),N=u(f);{let oe=$(()=>e(d)?.id??"");P(N,()=>Ie.Root,(G,W)=>{W(G,{get value(){return e(oe)},onchange:ve=>{const L=e(g).find(V=>V.id===ve);L&&h(L.id)},children:(ve,L)=>{var V=tt(),ge=R(V);{let ne=$(()=>M.home_agents());P(ge,()=>Ie.Trigger,(he,B)=>{B(he,{variant:"ghost",class:"h-8 w-fit max-w-full justify-start",get"aria-label"(){return e(ne)},children:(z,C)=>{var E=ir(),v=R(E);{var p=ue=>{{let we=$(()=>e(d).metadata?.specialist??e(d).agentMetadata?.specialist);et(ue,{get agentId(){return e(d).id},get specialist(){return e(we)},variant:"emphasized"})}};U(v,ue=>{e(d)&&ue(p)})}var K=n(v,2),_=Ae(K,!0),se=n(K,2);He(se,{get icon(){return jt},class:"shrink-0 text-muted-foreground"}),x(()=>O(_,e(d)?.name)),r(z,E)},$$slots:{default:!0}})})}var me=n(ge,2);P(me,()=>Ie.Content,(ne,he)=>{he(ne,{portal:!0,children:(B,z)=>{var C=fe(),E=R(C);De(E,17,()=>e(g),v=>v.id,(v,p)=>{var K=fe(),_=R(K);P(_,()=>Ie.Item,(se,ue)=>{ue(se,{get value(){return e(p).id},get label(){return e(p).name},children:(we,Xe)=>{var Re=lr(),pe=u(Re);{let kt=$(()=>e(p).metadata?.specialist??e(p).agentMetadata?.specialist);et(pe,{get agentId(){return e(p).id},get specialist(){return e(kt)},variant:"emphasized"})}var wt=n(pe,2),$t=Ae(wt,!0);c(Re),x(()=>O($t,e(p).name)),r(we,Re)},$$slots:{default:!0}})}),r(v,K)}),r(B,C)},$$slots:{default:!0}})}),r(ve,V)},$$slots:{default:!0}})})}c(f),r(a,f)};U(Ve,a=>{e(g).length&&a(ft)})}var Ke=n(Ve,2);{var _t=a=>{var f=cr(),N=u(f),oe=Ae(N,!0),G=n(N,2);Be(G,{variant:"outline",size:"sm",onclick:te,children:(W,ve)=>{$e();var L=ke();x(V=>O(L,V),[()=>M.home_retry()]),r(W,L)},$$slots:{default:!0}}),c(f),x(W=>O(oe,W),[()=>M.home_detail_unavailable()]),r(a,f)};U(Ke,a=>{e(k)&&a(_t)})}var Ue=n(Ke,2),gt=u(Ue);ot(gt,()=>s().id,a=>{vt(a,{get workspace(){return s()},get preview(){return y()},get agent(){return e(d)}})}),c(Ue),c(re),x(a=>Le(re,"aria-label",a),[()=>M.home_workspace_details()]),r(b,re);var ht=Ge(de);return Z(),ht}export{dt as H,ur as a};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var lC=Object.defineProperty;var cC=(e,t,r)=>t in e?lC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var xr=(e,t,r)=>cC(e,typeof t!="symbol"?t+"":t,r);import{_ as Ve,t as Oo,bo as He,bm as je,bw as Do,b as Ro,bp as hC}from"./BkULGdgB.js";import{g as dC}from"./BdWqymET.js";import{aP as bs}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BJw6iNpc.js","/app/immutable/chunks/CavPnWIE.js","/app/immutable/chunks/hl720_Ai.js","/app/immutable/chunks/BkULGdgB.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/-xK_vQQs.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/hHLbxLPR.js","/app/immutable/chunks/3DNo8acM.js","/app/immutable/chunks/BV_sqti5.js","/app/immutable/chunks/lAmQKSWr.js","/app/immutable/chunks/1YDXnizR.js","/app/immutable/chunks/plhbWb67.js","/app/immutable/chunks/FiJlDSoB.js","/app/immutable/chunks/4qtgvHSc.js","/app/immutable/chunks/wJIU9o1g.js","/app/immutable/chunks/BGp9wcKF.js","/app/immutable/chunks/V4puAVlm.js","/app/immutable/chunks/D4U_w4GT.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/DZwGQbE8.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DcE_bjeG.js","/app/immutable/chunks/DdvXzOsp.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/BGikh8Vc.js","/app/immutable/chunks/DcwBt__E.js","/app/immutable/chunks/dqNuna_B.js","/app/immutable/chunks/CVqc5kFv.js","/app/immutable/chunks/BkQ2g3_N.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/jKsiRjTE.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CjRRnXFa.js","/app/immutable/chunks/DIC1j-O7.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BN5JMxvy.js","/app/immutable/chunks/B7H9m8-p.js","/app/immutable/chunks/AZARnJTP.js","/app/immutable/chunks/8KpVpm2n.js","/app/immutable/chunks/DbyXkQ-A.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/Cx2QERlx.js","/app/immutable/chunks/DEAMVhLT.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BqrO7ljl.js","/app/immutable/chunks/qUWUBPqP.js","/app/immutable/chunks/CI-PxDr-.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/CJ5wd9GV.js","/app/immutable/chunks/DhnPdhLH.js","/app/immutable/chunks/BRQfmzJK.js","/app/immutable/chunks/ExyHKvnG.js","/app/immutable/chunks/kDhfBVjP.js","/app/immutable/chunks/Cmx4YFs-.js","/app/immutable/chunks/CB1MXwdv.js","/app/immutable/chunks/DEMUCUuw.js","/app/immutable/chunks/CihHUFd0.js","/app/immutable/chunks/CGvRyYuS.js","/app/immutable/chunks/BduS68Gp.js","/app/immutable/chunks/BGC1OvbZ.js","/app/immutable/chunks/m4bzYqUU.js","/app/immutable/chunks/DDF-sX8n.js","/app/immutable/chunks/DE4VO873.js","/app/immutable/chunks/CVmn9QQQ.js","/app/immutable/chunks/Dx5hTAuT.js","/app/immutable/chunks/C612fWtF.js","/app/immutable/chunks/BN3wupfJ.js","/app/immutable/chunks/_yjvhbN1.js","/app/immutable/chunks/iHR6T21j.js","/app/immutable/chunks/YGYabZh2.js","/app/immutable/chunks/UellkQfD.js","/app/immutable/chunks/SSx-ToX7.js","/app/immutable/chunks/CalkReL4.js","/app/immutable/chunks/Bx2UPUSS.js","/app/immutable/chunks/Cebm9OzC.js","/app/immutable/chunks/D56_Uee5.js","/app/immutable/chunks/VQlvcqoz.js","/app/immutable/chunks/CBc0yuEL.js","/app/immutable/chunks/DE5aYQIc.js","/app/immutable/chunks/DWX6T0QV.js","/app/immutable/chunks/BSCeNo9e.js","/app/immutable/chunks/BYacIeji.js","/app/immutable/chunks/DpWQU928.js","/app/immutable/chunks/DfrYdRvI.js","/app/immutable/chunks/DrTzfICr.js","/app/immutable/chunks/CSQgXrQ-.js","/app/immutable/chunks/B6aoFNsZ.js","/app/immutable/chunks/NpNlLFF3.js","/app/immutable/chunks/-Dz8vPPu.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var lC=Object.defineProperty;var cC=(e,t,r)=>t in e?lC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var xr=(e,t,r)=>cC(e,typeof t!="symbol"?t+"":t,r);import{_ as Ve,t as Oo,bo as He,bm as je,bw as Do,b as Ro,bp as hC}from"./BkULGdgB.js";import{g as dC}from"./BdWqymET.js";import{aP as bs}from"./V4puAVlm.js";import{b7 as uC,cc as fC,bs as No,a7 as Ko,ay as ui,aD as A,bS as We,be as en,b$ as rl,b_ as cr,bO as br,W as ge,c9 as Dt,bn as qo,aA as _e,aB as ar,bk as hd,bH as gt,ca as Bo,c5 as pl,a5 as qe,bA as $e,bV as ce,bl as Tr,c0 as Th,aC as pi,aw as ml,a as Wu,bj as Np,br as wi,cb as gC,bf as pC}from"./DYhIMPy1.js";import{i as yr}from"./CVqc5kFv.js";import{E as zu}from"./DGtIaQ-Y.js";import{f as co,s as fe,b as qp,c as Wp,g as Xa}from"./BkQ2g3_N.js";import{b as no}from"./BaIAhI85.js";import{c as mC}from"./ChTqQfQN.js";import{d0 as yC,cS as xC,F as dn,aJ as bC,b8 as zp,m as CC,n as wC,f as kC,j as SC,w as Hu,t as Yu,h as vC,G as MC,P as TC,r as BC,z as _C,q as LC,k as AC,D as Xu,H as FC,U as $C,au as EC,av as PC,aV as IC}from"./DcwBt__E.js";import{f as Ja,ae as OC}from"./DbyXkQ-A.js";import"./CjRRnXFa.js";import{r as DC,a4 as RC}from"./GWtQ84As.js";import{p as rn,h as NC,d as qC,S as WC,e as zC,g as ya,i as ju}from"./jKsiRjTE.js";import{e as HC,H as YC}from"./DShRMpzG.js";import{k as Hp}from"./Cx2QERlx.js";import{I as To,h as Gu,H as Is,d as Uu}from"./B7H9m8-p.js";import{c as fa}from"./dqNuna_B.js";import{e as XC}from"./i56WxPLH.js";import{t as jC}from"./DqP39woS.js";import{s as il}from"./DdvXzOsp.js";import{s as Vu,a as GC}from"./BsieX9dN.js";import{p as UC,K as VC,h as ZC,i as Cc,M as KC}from"./ByONXdFP.js";import"./B491IXH3.js";import{t as wo}from"./8KpVpm2n.js";import"./DEAMVhLT.js";import"./DZwGQbE8.js";import{cu as QC}from"./AZARnJTP.js";function JC(e,t){uC(window,["resize"],()=>fC(()=>t(window[e])))}var Yp=Object.defineProperty,C=(e,t)=>Yp(e,"name",{value:t,configurable:!0}),t2=(e,t)=>{for(var r in t)Yp(e,r,{get:t[r],enumerable:!0})};function Xp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}C(Xp,"getDefaultExportFromCjs");var ei={},Pn={},Xo={},Zu;function Ts(){if(Zu)return Xo;Zu=1;function e(s){return typeof s>"u"||s===null}C(e,"isNothing");function t(s){return typeof s=="object"&&s!==null}C(t,"isObject");function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}C(r,"toArray");function i(s,n){if(n){const l=Object.keys(n);for(let c=0,h=l.length;c<h;c+=1){const d=l[c];s[d]=n[d]}}return s}C(i,"extend");function o(s,n){let l="";for(let c=0;c<n;c+=1)l+=s;return l}C(o,"repeat");function a(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return C(a,"isNegativeZero"),Xo.isNothing=e,Xo.isObject=t,Xo.toArray=r,Xo.repeat=o,Xo.isNegativeZero=a,Xo.extend=i,Xo}C(Ts,"requireCommon");var wc,Ku;function Bs(){if(Ku)return wc;Ku=1;function e(r,i){let o="";const a=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(o+='in "'+r.mark.name+'" '),o+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(o+=`
|
|
3
3
|
|
|
4
4
|
`+r.mark.snippet),a+" "+o):a}C(e,"formatError");function t(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return C(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=C(function(i){return this.name+": "+e(this,i)},"toString"),wc=t,wc}C(Bs,"requireException");var kc,Qu;function jp(){if(Qu)return kc;Qu=1;const e=Ts();function t(o,a,s,n,l){let c="",h="";const d=Math.floor(l/2)-1;return n-a>d&&(c=" ... ",a=n-d+c.length),s-n>d&&(h=" ...",s=n+d-h.length),{str:c+o.slice(a,s).replace(/\t/g,"→")+h,pos:n-a+c.length}}C(t,"getLine");function r(o,a){return e.repeat(" ",a-o.length)+o}C(r,"padStart");function i(o,a){if(a=Object.create(a||null),!o.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);const s=/\r?\n|\r|\0/g,n=[0],l=[];let c,h=-1;for(;c=s.exec(o.buffer);)l.push(c.index),n.push(c.index+c[0].length),o.position<=c.index&&h<0&&(h=n.length-2);h<0&&(h=n.length-1);let d="";const u=Math.min(o.line+a.linesAfter,l.length).toString().length,f=a.maxLength-(a.indent+u+3);for(let p=1;p<=a.linesBefore&&!(h-p<0);p++){const m=t(o.buffer,n[h-p],l[h-p],o.position-(n[h]-n[h-p]),f);d=e.repeat(" ",a.indent)+r((o.line-p+1).toString(),u)+" | "+m.str+`
|
|
5
5
|
`+d}const g=t(o.buffer,n[h],l[h],o.position,f);d+=e.repeat(" ",a.indent)+r((o.line+1).toString(),u)+" | "+g.str+`
|
|
@@ -298,8 +298,8 @@ ${a.join(`
|
|
|
298
298
|
L0,20`)},"requirement_arrow"),lL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
299
299
|
L20,10
|
|
300
300
|
M20,10
|
|
301
|
-
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),cL=C((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),hL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),dL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),uL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),fL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),gL={extension:H_,composition:Y_,aggregation:X_,dependency:j_,lollipop:G_,point:U_,circle:V_,cross:Z_,barb:K_,barbNeo:Q_,hierarchy:dL,only_one:J_,zero_or_one:tL,one_or_more:eL,zero_or_more:rL,only_one_neo:iL,zero_or_one_neo:oL,one_or_more_neo:aL,zero_or_more_neo:sL,requirement_arrow:nL,requirement_contains:cL,requirement_arrow_neo:lL,requirement_contains_neo:hL,openArrow:uL,hollowCircle:fL},pL=z_,mL={common:kn,getConfig:Ar,insertCluster:UB,insertEdge:W_,insertEdgeLabel:E_,insertMarkers:pL,insertNode:eb,interpolateToCurve:Vd,labelHelper:he,log:Lt,positionEdgeLabel:I_},yL=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],mn=Object.create(null),Cb=C(e=>{for(const t of e)mn[t.name]=t},"registerLayoutLoaders"),xL=C(()=>{const e=C(async()=>await Ve(()=>import("./DiLP5819.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...yL.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),bL=C(()=>{Cb([{name:"dagre",loader:C(async()=>await Ve(()=>import("./BIJ9yl2O.js"),__vite__mapDeps([7,2,3,4,5]),import.meta.url),"loader")},{name:"swimlane",loader:C(async()=>await Ve(()=>import("./B4ODjo1_.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:C(async()=>await Ve(()=>import("./BcfSFmD3.js"),__vite__mapDeps([9,10,6]),import.meta.url),"loader")},...xL()])},"registerDefaultLayoutLoaders");bL();var LP=C(async(e,t)=>{if(!Object.hasOwn(mn,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const a of e.nodes){const s=a.domId||a.id;a.domId=`${e.diagramId}-${s}`}const r=mn[e.layoutAlgorithm],i=await r.loader();a2(t,e.config);const o=await i.render(e,t,mL,{algorithm:r.algorithm});return B_(t.node()),o},"render"),ch="dagre",AP=C((e="",{fallback:t=ch}={})=>{if(Object.hasOwn(mn,e))return e;for(const r of[t,ch])if(Object.hasOwn(mn,r))return Lt.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${ch} is registered.`)},"getRegisteredLayoutAlgorithm"),CL=C(e=>{const{securityLevel:t}=Ge();let r=Ye("body");if(t==="sandbox"){const a=Ye(`#i${e}`).node()?.contentDocument??document;r=Ye(a.body)}return r.select(`#${e}`)},"selectSvgElement"),ku="comm",wb="rule",kb="decl",wL="@media",kL="@import",SL="@supports",vL="@namespace",td="@keyframes",Sb="@layer",ML="@scope",TL=Math.abs,hn=String.fromCharCode;function vb(e){return e.trim()}function ed(e,t,r){return e.replace(t,r)}function is(e,t){return e.charCodeAt(t)|0}function ks(e,t,r){return e.slice(t,r)}function oo(e){return e.length}function Mb(e){return e.length}function jn(e,t){return t.push(e),e}var cc=1,Ss=1,Tb=0,Ii=0,qr=0,Fs="";function Su(e,t,r,i,o,a,s,n){return{value:e,root:t,parent:r,type:i,props:o,children:a,line:cc,column:Ss,length:s,return:"",siblings:n}}function BL(){return qr}function _L(){return qr=Ii>0?is(Fs,--Ii):0,Ss--,qr===10&&(Ss=1,cc--),qr}function ji(){return qr=Ii<Tb?is(Fs,Ii++):0,Ss++,qr===10&&(Ss=1,cc++),qr}function Vo(){return is(Fs,Ii)}function fl(){return Ii}function hc(e,t){return ks(Fs,e,t)}function yn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LL(e){return cc=Ss=1,Tb=oo(Fs=e),Ii=0,[]}function AL(e){return Fs="",e}function hh(e){return vb(hc(Ii-1,rd(e===91?e+2:e===40?e+1:e)))}function FL(e){for(;(qr=Vo())&&qr<33;)ji();return yn(e)>2||yn(qr)>3?"":" "}function $L(e,t){for(;--t&&ji()&&!(qr<48||qr>102||qr>57&&qr<65||qr>70&&qr<97););return hc(e,fl()+(t<6&&Vo()==32&&ji()==32))}function rd(e){for(;ji();)switch(qr){case e:return Ii;case 34:case 39:e!==34&&e!==39&&rd(qr);break;case 40:e===41&&rd(e);break;case 92:ji();break}return Ii}function EL(e,t){for(;ji()&&e+qr!==57;)if(e+qr===84&&Vo()===47)break;return"/*"+hc(t,Ii-1)+"*"+hn(e===47?e:ji())}function PL(e){for(;!yn(Vo());)ji();return hc(e,Ii)}function IL(e){return AL(gl("",null,null,null,[""],e=LL(e),0,[0],e))}function gl(e,t,r,i,o,a,s,n,l){for(var c=0,h=0,d=s,u=0,f=0,g=0,p=1,m=1,y=1,x=0,b=0,S="",T=o,k=a,_=i,L=S;m;)switch(g=b,b=ji()){case 40:g!=108&&is(L,d-1)==58?(x++,L+="("):L+=hh(b);break;case 41:x--,L+=")";break;case 34:case 39:case 91:L+=hh(b);break;case 9:case 10:case 13:case 32:if(x>0){L+=hn(b);break}L+=FL(g);break;case 92:L+=$L(fl()-1,7);continue;case 47:switch(Vo()){case 42:case 47:jn(OL(EL(ji(),fl()),t,r,l),l),(yn(g||1)==5||yn(Vo()||1)==5)&&oo(L)&&ks(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*p:n[c++]=oo(L)*y;case 125*p:case 59:case 0:if(x>0&&b){L+=hn(b);break}switch(b){case 0:case 125:m=0;case 59+h:y==-1&&(L=ed(L,/\f/g,"")),f>0&&(oo(L)-d||p===0)&&jn(f>32?sp(L+";",i,r,d-1,l):sp(ed(L," ","")+";",i,r,d-2,l),l);break;case 59:L+=";";default:if(jn(_=ap(L,t,r,c,h,o,n,S,T=[],k=[],d,a),a),b===123)if(h===0)gl(L,t,_,_,T,a,d,n,k);else{switch(u){case 99:if(is(L,3)===110)break;case 108:if(is(L,2)===97)break;default:h=0;case 100:case 109:case 115:}h?gl(e,_,_,i&&jn(ap(e,_,_,0,0,o,n,S,o,T=[],d,k),k),o,k,d,n,i?T:k):gl(L,_,_,_,[""],k,0,n,k)}}c=h=f=0,p=y=1,S=L="",d=s;break;case 58:d=1+oo(L),f=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&_L()==125)continue}switch(L+=hn(b),b*p){case 38:y=h>0?1:(L+="\f",-1);break;case 44:if(x>0)break;n[c++]=(oo(L)-1)*y,y=1;break;case 64:Vo()===45&&(L+=hh(ji())),u=Vo(),h=d=oo(S=L+=PL(fl())),b++;break;case 45:g===45&&oo(L)==2&&(p=0)}}return a}function ap(e,t,r,i,o,a,s,n,l,c,h,d){for(var u=o-1,f=o===0?a:[""],g=Mb(f),p=0,m=0,y=0;p<i;++p)for(var x=0,b=ks(e,u+1,u=TL(m=s[p])),S=e;x<g;++x)(S=vb(m>0?f[x]+" "+b:ed(b,/&\f/g,f[x])))&&(l[y++]=S);return Su(e,t,r,o===0?wb:n,l,c,h,d)}function OL(e,t,r,i){return Su(e,t,r,ku,hn(BL()),ks(e,2,-2),0,i)}function sp(e,t,r,i,o){return Su(e,t,r,kb,ks(e,0,i),ks(e,i+1,-1),i,o)}function id(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function DL(e,t,r,i){switch(e.type){case Sb:if(e.children.length)break;case kL:case vL:case kb:return e.return=e.return||e.value;case ku:return"";case td:return e.return=e.value+"{"+id(e.children,i)+"}";case wb:if(!oo(e.value=e.props.join(",")))return""}return oo(r=id(e.children,i))?e.return=e.value+"{"+r+"}":""}function RL(e){var t=Mb(e);return function(r,i,o,a){for(var s="",n=0;n<t;n++)s+=e[n](r,i,o,a)||"";return s}}var Bb="c4",NL=C(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),qL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./ecq9AzSs.js");return{diagram:t}},__vite__mapDeps([11,12]),import.meta.url);return{id:Bb,diagram:e}},"loader"),WL={id:Bb,detector:NL,loader:qL},zL=WL,_b="flowchart-v2",HL=C(e=>/^\s*(graph|flowchart)/.test(e),"detector"),YL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B2tWwOjs.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,6,56,57,58]),import.meta.url);return{id:_b,diagram:e}},"loader"),XL={id:_b,detector:HL,loader:YL},jL=XL,Lb="agentflow",GL=C(e=>/^\s*agentflow-beta\b/.test(e),"detector"),UL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./trDHZFy5.js");return{diagram:t}},__vite__mapDeps([59,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,6,56,57,58]),import.meta.url);return{id:Lb,diagram:e}},"loader"),VL={id:Lb,detector:GL,loader:UL},ZL=VL,Ab="swimlane",KL=C(e=>/^\s*swimlane-beta\b/.test(e),"detector"),QL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./XvB_C6E3.js");return{diagram:t}},__vite__mapDeps([60,13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,6,56,57,58]),import.meta.url);return{id:Ab,diagram:e}},"loader"),JL={id:Ab,detector:KL,loader:QL},tA=JL,Fb="er",eA=C(e=>/^\s*erDiagram/.test(e),"detector"),rA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./jqpS-Qmo.js");return{diagram:t}},__vite__mapDeps([61,15,16]),import.meta.url);return{id:Fb,diagram:e}},"loader"),iA={id:Fb,detector:eA,loader:rA},oA=iA,$b="gitGraph",aA=C(e=>/^\s*gitGraph/.test(e),"detector"),sA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./iXONcEpN.js");return{diagram:t}},__vite__mapDeps([62,63,64,65,3,4]),import.meta.url);return{id:$b,diagram:e}},"loader"),nA={id:$b,detector:aA,loader:sA},lA=nA,Eb="gantt",cA=C(e=>/^\s*gantt/.test(e),"detector"),hA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bi3vpVI6.js");return{diagram:t}},__vite__mapDeps([66,6,67]),import.meta.url);return{id:Eb,diagram:e}},"loader"),dA={id:Eb,detector:cA,loader:hA},uA=dA,Pb="info",fA=C(e=>/^\s*info/.test(e),"detector"),gA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DcjHFaNi.js");return{diagram:t}},__vite__mapDeps([68,65,3,4]),import.meta.url);return{id:Pb,diagram:e}},"loader"),pA={id:Pb,detector:fA,loader:gA},Ib="pie",mA=C(e=>/^\s*pie/.test(e),"detector"),yA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./C-ITJ-M0.js");return{diagram:t}},__vite__mapDeps([69,64,65,3,4,67]),import.meta.url);return{id:Ib,diagram:e}},"loader"),xA={id:Ib,detector:mA,loader:yA},Ob="quadrantChart",bA=C(e=>/^\s*quadrantChart/.test(e),"detector"),CA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CccZ7iCE.js");return{diagram:t}},__vite__mapDeps([70,67]),import.meta.url);return{id:Ob,diagram:e}},"loader"),wA={id:Ob,detector:bA,loader:CA},kA=wA,Db="xychart",SA=C(e=>/^\s*xychart(-beta)?/.test(e),"detector"),vA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CmoBfnbr.js");return{diagram:t}},__vite__mapDeps([71,67]),import.meta.url);return{id:Db,diagram:e}},"loader"),MA={id:Db,detector:SA,loader:vA},TA=MA,Rb="requirement",BA=C(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),_A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CSVv71j6.js");return{diagram:t}},__vite__mapDeps([72,15,16]),import.meta.url);return{id:Rb,diagram:e}},"loader"),LA={id:Rb,detector:BA,loader:_A},AA=LA,Nb="sequence",FA=C(e=>/^\s*sequenceDiagram/.test(e),"detector"),$A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BFsFAs4c.js");return{diagram:t}},__vite__mapDeps([73,63,12]),import.meta.url);return{id:Nb,diagram:e}},"loader"),EA={id:Nb,detector:FA,loader:$A},PA=EA,qb="classDiagram",IA=C(e=>/^\s*classDiagram/.test(e),"detector"),OA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./hZnA3cdC.js");return{diagram:t}},__vite__mapDeps([74,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,6,56,57,58]),import.meta.url);return{id:qb,diagram:e}},"loader"),DA={id:qb,detector:IA,loader:OA},RA=DA,Wb="stateDiagram",NA=C(e=>/^\s*stateDiagram/.test(e),"detector"),qA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./XTUjVC3s.js");return{diagram:t}},__vite__mapDeps([75,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,6,56,57,58]),import.meta.url);return{id:Wb,diagram:e}},"loader"),WA={id:Wb,detector:NA,loader:qA},zA=WA,zb="journey",HA=C(e=>/^\s*journey/.test(e),"detector"),YA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./6j0Bv6V-.js");return{diagram:t}},__vite__mapDeps([76,14,12]),import.meta.url);return{id:zb,diagram:e}},"loader"),XA={id:zb,detector:HA,loader:YA},jA=XA,Gn=4,Hs=75,GA=C(e=>{const t=[];for(const o of e.split(/\s+/)){let a=[...o];for(;a.length>Hs;)t.push(a.slice(0,Hs).join("")),a=a.slice(Hs);a.length>0&&t.push(a.join(""))}const r=[];let i="";for(const o of t){const a=i?`${i} ${o}`:o;[...a].length>Hs?(r.push(i),i=o):i=a}if(i&&r.push(i),r.length>Gn){r.length=Gn;const o=r[Gn-1]??"";r[Gn-1]=`${[...o].slice(0,Hs-3).join("")}...`}return r},"wrapErrorMessage"),UA=C((e,t,r,i)=>{Lt.debug(`rendering svg for syntax error
|
|
302
|
-
`);const o=CL(t),a=o.append("g"),s=GA(i?.db.getErrorMessage?.()??""),n=s.length>0?500+s.length*56:512;o.attr("viewBox",`0 0 2412 ${n}`),um(o,100,n,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),s.forEach((l,c)=>{a.append("text").attr("class","error-text").attr("x",1440).attr("y",510+c*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),Hb={draw:UA},VA=Hb,dh,ZA={clear(){dh=void 0},setErrorMessage(e){dh=e},getErrorMessage(){return dh}},KA={db:ZA,renderer:Hb,parser:{parse:C(()=>{},"parse")}},QA=KA,Yb="flowchart-elk",JA=C((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),t5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B2tWwOjs.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,6,56,57,58]),import.meta.url);return{id:Yb,diagram:e}},"loader"),e5={id:Yb,detector:JA,loader:t5},r5=e5,Xb="timeline",i5=C(e=>/^\s*timeline/.test(e),"detector"),o5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./D-oI-oRa.js");return{diagram:t}},[],import.meta.url);return{id:Xb,diagram:e}},"loader"),a5={id:Xb,detector:i5,loader:o5},s5=a5,jb="mindmap",n5=C(e=>/^\s*mindmap/.test(e),"detector"),l5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./UfZ1-ewn.js");return{diagram:t}},__vite__mapDeps([77,15,16]),import.meta.url);return{id:jb,diagram:e}},"loader"),c5={id:jb,detector:n5,loader:l5},h5=c5,Gb="kanban",d5=C(e=>/^\s*kanban/.test(e),"detector"),u5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BWa7My9c.js");return{diagram:t}},__vite__mapDeps([78,14]),import.meta.url);return{id:Gb,diagram:e}},"loader"),f5={id:Gb,detector:d5,loader:u5},g5=f5,Ub="sankey",p5=C(e=>/^\s*sankey(-beta)?/.test(e),"detector"),m5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DQT2HseM.js");return{diagram:t}},__vite__mapDeps([79,67]),import.meta.url);return{id:Ub,diagram:e}},"loader"),y5={id:Ub,detector:p5,loader:m5},x5=y5,Vb="packet",b5=C(e=>/^\s*packet(-beta)?/.test(e),"detector"),C5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DYZ9p4gw.js");return{diagram:t}},__vite__mapDeps([80,64,65,3,4]),import.meta.url);return{id:Vb,diagram:e}},"loader"),w5={id:Vb,detector:b5,loader:C5},Zb="radar",k5=C(e=>/^\s*radar-beta/.test(e),"detector"),S5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./VNMm_PPx.js");return{diagram:t}},__vite__mapDeps([81,64,65,3,4]),import.meta.url);return{id:Zb,diagram:e}},"loader"),v5={id:Zb,detector:k5,loader:S5},Kb="block",M5=C(e=>/^\s*block(-beta)?/.test(e),"detector"),T5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BUj9gSzV.js");return{diagram:t}},__vite__mapDeps([82,14,5]),import.meta.url);return{id:Kb,diagram:e}},"loader"),B5={id:Kb,detector:M5,loader:T5},_5=B5,Qb="treeView",L5=C(e=>/^\s*treeView-beta/.test(e),"detector"),A5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BIVrIHM0.js");return{diagram:t}},__vite__mapDeps([83,63,64,65,3,4]),import.meta.url);return{id:Qb,diagram:e}},"loader"),F5={id:Qb,detector:L5,loader:A5},$5=F5,Jb="architecture",E5=C(e=>/^\s*architecture/.test(e),"detector"),P5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DcyLYuvX.js");return{diagram:t}},__vite__mapDeps([84,64,65,3,4,10,6]),import.meta.url);return{id:Jb,diagram:e}},"loader"),I5={id:Jb,detector:E5,loader:P5},O5=I5,t1="eventmodeling",D5=C(e=>/^\s*eventmodeling/.test(e),"detector"),R5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./_ncQX04u.js");return{diagram:t}},__vite__mapDeps([85,64,65,3,4]),import.meta.url);return{id:t1,diagram:e}},"loader"),N5={id:t1,detector:D5,loader:R5},q5=N5,e1="ishikawa",W5=C(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),z5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DYGZ9sTv.js");return{diagram:t}},[],import.meta.url);return{id:e1,diagram:e}},"loader"),H5={id:e1,detector:W5,loader:z5},r1="venn",Y5=C(e=>/^\s*venn-beta/.test(e),"detector"),X5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./ds28TSQT.js");return{diagram:t}},[],import.meta.url);return{id:r1,diagram:e}},"loader"),j5={id:r1,detector:Y5,loader:X5},G5=j5,i1="treemap",U5=C(e=>/^\s*treemap/.test(e),"detector"),V5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BAWksQvp.js");return{diagram:t}},__vite__mapDeps([86,16,64,65,3,4,67]),import.meta.url);return{id:i1,diagram:e}},"loader"),Z5={id:i1,detector:U5,loader:V5},o1="usecase",K5=C(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),Q5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bpu4KV0h.js");return{diagram:t}},__vite__mapDeps([87,15,16]),import.meta.url);return{id:o1,diagram:e}},"loader"),J5={id:o1,detector:K5,loader:Q5},a1="wardley",tF=C(e=>/^\s*wardley-beta/i.test(e),"detector"),eF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cf_Jryir.js");return{diagram:t}},__vite__mapDeps([88,64,65,3,4]),import.meta.url);return{id:a1,diagram:e}},"loader"),rF={id:a1,detector:tF,loader:eF},iF=rF,s1="cynefin",oF=C(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),aF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./C8A6q25O.js");return{diagram:t}},__vite__mapDeps([89,64,65,3,4]),import.meta.url);return{id:s1,diagram:e}},"loader"),sF={id:s1,detector:oF,loader:aF},n1="railroad",nF=C(e=>/^\s*railroad-beta/i.test(e),"detector"),lF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BoedJ8yq.js");return{diagram:t}},__vite__mapDeps([90,91,64,65,3,4]),import.meta.url);return{id:n1,diagram:e}},"loader"),cF={id:n1,detector:nF,loader:lF},l1="railroadEbnf",hF=C(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),dF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DrpfvH93.js");return{diagram:t}},__vite__mapDeps([92,91,64,65,3,4]),import.meta.url);return{id:l1,diagram:e}},"loader"),uF={id:l1,detector:hF,loader:dF},c1="railroadAbnf",fF=C(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),gF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CREdX7EY.js");return{diagram:t}},__vite__mapDeps([93,91,64,65,3,4]),import.meta.url);return{id:c1,diagram:e}},"loader"),pF={id:c1,detector:fF,loader:gF},h1="railroadPeg",mF=C(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),yF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Ck6v_gHY.js");return{diagram:t}},__vite__mapDeps([94,91,64,65,3,4]),import.meta.url);return{id:h1,diagram:e}},"loader"),xF={id:h1,detector:mF,loader:yF},np=!1,dc=C(()=>{np||(np=!0,Sl("error",QA,e=>e.toLowerCase().trim()==="error"),Sl("---",{db:{clear:C(()=>{},"clear")},styles:{},renderer:{draw:C(()=>{},"draw")},parser:{parse:C(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:C(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Bh(r5,h5,O5),Bh(ZL,zL,g5,RA,oA,uA,pA,xA,AA,PA,tA,jL,s5,lA,zA,jA,kA,x5,w5,TA,_5,q5,$5,v5,H5,Z5,cF,uF,pF,xF,G5,iF,sF,J5))},"addDiagrams"),bF=C(async()=>{Lt.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ta).map(async([r,{detector:i,loader:o}])=>{if(o)try{$h(r)}catch{try{const{diagram:a,id:s}=await o();Sl(s,a,i)}catch(a){throw Lt.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ta[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){Lt.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Lt.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),CF="graphics-document document";function d1(e,t){e.attr("role",CF),t!==""&&e.attr("aria-roledescription",t)}C(d1,"setA11yDiagramInfo");function u1(e,t,r,i){if(e.insert!==void 0){if(r){const o=`chart-desc-${i}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${i}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}C(u1,"addSVGa11yTitleDescription");var Ma,Xl=(Ma=class{constructor(t,r,i,o,a){this.type=t,this.text=r,this.db=i,this.parser=o,this.renderer=a}static async fromText(t,r={}){const i=typeof t=="string"?{cleaned:t}:t,o=Ar(),a=Zl(i.cleaned,o);try{$h(a)}catch{const u=C2(a);if(!u)throw new Jp(`Diagram ${a} not found.`);const{id:f,diagram:g}=await u();Sl(f,g)}const{db:s,parser:n,renderer:l,init:c}=$h(a);n.parser&&(n.parser.yy=s),s.clear?.(),c?.(o),r.title&&s.setDiagramTitle?.(r.title);let h=i.cleaned;if(s.preserveCommentsWhenParsing&&i.withComments){const u=o.maxTextSize??Ld.maxTextSize;i.withComments.length>u?Lt.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${u}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):h=i.withComments}const d=TM(h)+`
|
|
301
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),cL=C((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),hL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),dL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),uL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),fL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),gL={extension:H_,composition:Y_,aggregation:X_,dependency:j_,lollipop:G_,point:U_,circle:V_,cross:Z_,barb:K_,barbNeo:Q_,hierarchy:dL,only_one:J_,zero_or_one:tL,one_or_more:eL,zero_or_more:rL,only_one_neo:iL,zero_or_one_neo:oL,one_or_more_neo:aL,zero_or_more_neo:sL,requirement_arrow:nL,requirement_contains:cL,requirement_arrow_neo:lL,requirement_contains_neo:hL,openArrow:uL,hollowCircle:fL},pL=z_,mL={common:kn,getConfig:Ar,insertCluster:UB,insertEdge:W_,insertEdgeLabel:E_,insertMarkers:pL,insertNode:eb,interpolateToCurve:Vd,labelHelper:he,log:Lt,positionEdgeLabel:I_},yL=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],mn=Object.create(null),Cb=C(e=>{for(const t of e)mn[t.name]=t},"registerLayoutLoaders"),xL=C(()=>{const e=C(async()=>await Ve(()=>import("./BJw6iNpc.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...yL.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),bL=C(()=>{Cb([{name:"dagre",loader:C(async()=>await Ve(()=>import("./hHLbxLPR.js"),__vite__mapDeps([7,2,3,4,5]),import.meta.url),"loader")},{name:"swimlane",loader:C(async()=>await Ve(()=>import("./3DNo8acM.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:C(async()=>await Ve(()=>import("./BV_sqti5.js"),__vite__mapDeps([9,10,6]),import.meta.url),"loader")},...xL()])},"registerDefaultLayoutLoaders");bL();var LP=C(async(e,t)=>{if(!Object.hasOwn(mn,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const a of e.nodes){const s=a.domId||a.id;a.domId=`${e.diagramId}-${s}`}const r=mn[e.layoutAlgorithm],i=await r.loader();a2(t,e.config);const o=await i.render(e,t,mL,{algorithm:r.algorithm});return B_(t.node()),o},"render"),ch="dagre",AP=C((e="",{fallback:t=ch}={})=>{if(Object.hasOwn(mn,e))return e;for(const r of[t,ch])if(Object.hasOwn(mn,r))return Lt.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${ch} is registered.`)},"getRegisteredLayoutAlgorithm"),CL=C(e=>{const{securityLevel:t}=Ge();let r=Ye("body");if(t==="sandbox"){const a=Ye(`#i${e}`).node()?.contentDocument??document;r=Ye(a.body)}return r.select(`#${e}`)},"selectSvgElement"),ku="comm",wb="rule",kb="decl",wL="@media",kL="@import",SL="@supports",vL="@namespace",td="@keyframes",Sb="@layer",ML="@scope",TL=Math.abs,hn=String.fromCharCode;function vb(e){return e.trim()}function ed(e,t,r){return e.replace(t,r)}function is(e,t){return e.charCodeAt(t)|0}function ks(e,t,r){return e.slice(t,r)}function oo(e){return e.length}function Mb(e){return e.length}function jn(e,t){return t.push(e),e}var cc=1,Ss=1,Tb=0,Ii=0,qr=0,Fs="";function Su(e,t,r,i,o,a,s,n){return{value:e,root:t,parent:r,type:i,props:o,children:a,line:cc,column:Ss,length:s,return:"",siblings:n}}function BL(){return qr}function _L(){return qr=Ii>0?is(Fs,--Ii):0,Ss--,qr===10&&(Ss=1,cc--),qr}function ji(){return qr=Ii<Tb?is(Fs,Ii++):0,Ss++,qr===10&&(Ss=1,cc++),qr}function Vo(){return is(Fs,Ii)}function fl(){return Ii}function hc(e,t){return ks(Fs,e,t)}function yn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LL(e){return cc=Ss=1,Tb=oo(Fs=e),Ii=0,[]}function AL(e){return Fs="",e}function hh(e){return vb(hc(Ii-1,rd(e===91?e+2:e===40?e+1:e)))}function FL(e){for(;(qr=Vo())&&qr<33;)ji();return yn(e)>2||yn(qr)>3?"":" "}function $L(e,t){for(;--t&&ji()&&!(qr<48||qr>102||qr>57&&qr<65||qr>70&&qr<97););return hc(e,fl()+(t<6&&Vo()==32&&ji()==32))}function rd(e){for(;ji();)switch(qr){case e:return Ii;case 34:case 39:e!==34&&e!==39&&rd(qr);break;case 40:e===41&&rd(e);break;case 92:ji();break}return Ii}function EL(e,t){for(;ji()&&e+qr!==57;)if(e+qr===84&&Vo()===47)break;return"/*"+hc(t,Ii-1)+"*"+hn(e===47?e:ji())}function PL(e){for(;!yn(Vo());)ji();return hc(e,Ii)}function IL(e){return AL(gl("",null,null,null,[""],e=LL(e),0,[0],e))}function gl(e,t,r,i,o,a,s,n,l){for(var c=0,h=0,d=s,u=0,f=0,g=0,p=1,m=1,y=1,x=0,b=0,S="",T=o,k=a,_=i,L=S;m;)switch(g=b,b=ji()){case 40:g!=108&&is(L,d-1)==58?(x++,L+="("):L+=hh(b);break;case 41:x--,L+=")";break;case 34:case 39:case 91:L+=hh(b);break;case 9:case 10:case 13:case 32:if(x>0){L+=hn(b);break}L+=FL(g);break;case 92:L+=$L(fl()-1,7);continue;case 47:switch(Vo()){case 42:case 47:jn(OL(EL(ji(),fl()),t,r,l),l),(yn(g||1)==5||yn(Vo()||1)==5)&&oo(L)&&ks(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*p:n[c++]=oo(L)*y;case 125*p:case 59:case 0:if(x>0&&b){L+=hn(b);break}switch(b){case 0:case 125:m=0;case 59+h:y==-1&&(L=ed(L,/\f/g,"")),f>0&&(oo(L)-d||p===0)&&jn(f>32?sp(L+";",i,r,d-1,l):sp(ed(L," ","")+";",i,r,d-2,l),l);break;case 59:L+=";";default:if(jn(_=ap(L,t,r,c,h,o,n,S,T=[],k=[],d,a),a),b===123)if(h===0)gl(L,t,_,_,T,a,d,n,k);else{switch(u){case 99:if(is(L,3)===110)break;case 108:if(is(L,2)===97)break;default:h=0;case 100:case 109:case 115:}h?gl(e,_,_,i&&jn(ap(e,_,_,0,0,o,n,S,o,T=[],d,k),k),o,k,d,n,i?T:k):gl(L,_,_,_,[""],k,0,n,k)}}c=h=f=0,p=y=1,S=L="",d=s;break;case 58:d=1+oo(L),f=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&_L()==125)continue}switch(L+=hn(b),b*p){case 38:y=h>0?1:(L+="\f",-1);break;case 44:if(x>0)break;n[c++]=(oo(L)-1)*y,y=1;break;case 64:Vo()===45&&(L+=hh(ji())),u=Vo(),h=d=oo(S=L+=PL(fl())),b++;break;case 45:g===45&&oo(L)==2&&(p=0)}}return a}function ap(e,t,r,i,o,a,s,n,l,c,h,d){for(var u=o-1,f=o===0?a:[""],g=Mb(f),p=0,m=0,y=0;p<i;++p)for(var x=0,b=ks(e,u+1,u=TL(m=s[p])),S=e;x<g;++x)(S=vb(m>0?f[x]+" "+b:ed(b,/&\f/g,f[x])))&&(l[y++]=S);return Su(e,t,r,o===0?wb:n,l,c,h,d)}function OL(e,t,r,i){return Su(e,t,r,ku,hn(BL()),ks(e,2,-2),0,i)}function sp(e,t,r,i,o){return Su(e,t,r,kb,ks(e,0,i),ks(e,i+1,-1),i,o)}function id(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function DL(e,t,r,i){switch(e.type){case Sb:if(e.children.length)break;case kL:case vL:case kb:return e.return=e.return||e.value;case ku:return"";case td:return e.return=e.value+"{"+id(e.children,i)+"}";case wb:if(!oo(e.value=e.props.join(",")))return""}return oo(r=id(e.children,i))?e.return=e.value+"{"+r+"}":""}function RL(e){var t=Mb(e);return function(r,i,o,a){for(var s="",n=0;n<t;n++)s+=e[n](r,i,o,a)||"";return s}}var Bb="c4",NL=C(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),qL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./1YDXnizR.js");return{diagram:t}},__vite__mapDeps([11,12]),import.meta.url);return{id:Bb,diagram:e}},"loader"),WL={id:Bb,detector:NL,loader:qL},zL=WL,_b="flowchart-v2",HL=C(e=>/^\s*(graph|flowchart)/.test(e),"detector"),YL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./FiJlDSoB.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,6,56,57,58]),import.meta.url);return{id:_b,diagram:e}},"loader"),XL={id:_b,detector:HL,loader:YL},jL=XL,Lb="agentflow",GL=C(e=>/^\s*agentflow-beta\b/.test(e),"detector"),UL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cmx4YFs-.js");return{diagram:t}},__vite__mapDeps([59,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,6,56,57,58]),import.meta.url);return{id:Lb,diagram:e}},"loader"),VL={id:Lb,detector:GL,loader:UL},ZL=VL,Ab="swimlane",KL=C(e=>/^\s*swimlane-beta\b/.test(e),"detector"),QL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CB1MXwdv.js");return{diagram:t}},__vite__mapDeps([60,13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,6,56,57,58]),import.meta.url);return{id:Ab,diagram:e}},"loader"),JL={id:Ab,detector:KL,loader:QL},tA=JL,Fb="er",eA=C(e=>/^\s*erDiagram/.test(e),"detector"),rA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DEMUCUuw.js");return{diagram:t}},__vite__mapDeps([61,15,16]),import.meta.url);return{id:Fb,diagram:e}},"loader"),iA={id:Fb,detector:eA,loader:rA},oA=iA,$b="gitGraph",aA=C(e=>/^\s*gitGraph/.test(e),"detector"),sA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CihHUFd0.js");return{diagram:t}},__vite__mapDeps([62,63,64,65,3,4]),import.meta.url);return{id:$b,diagram:e}},"loader"),nA={id:$b,detector:aA,loader:sA},lA=nA,Eb="gantt",cA=C(e=>/^\s*gantt/.test(e),"detector"),hA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./m4bzYqUU.js");return{diagram:t}},__vite__mapDeps([66,6,67]),import.meta.url);return{id:Eb,diagram:e}},"loader"),dA={id:Eb,detector:cA,loader:hA},uA=dA,Pb="info",fA=C(e=>/^\s*info/.test(e),"detector"),gA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DE4VO873.js");return{diagram:t}},__vite__mapDeps([68,65,3,4]),import.meta.url);return{id:Pb,diagram:e}},"loader"),pA={id:Pb,detector:fA,loader:gA},Ib="pie",mA=C(e=>/^\s*pie/.test(e),"detector"),yA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CVmn9QQQ.js");return{diagram:t}},__vite__mapDeps([69,64,65,3,4,67]),import.meta.url);return{id:Ib,diagram:e}},"loader"),xA={id:Ib,detector:mA,loader:yA},Ob="quadrantChart",bA=C(e=>/^\s*quadrantChart/.test(e),"detector"),CA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Dx5hTAuT.js");return{diagram:t}},__vite__mapDeps([70,67]),import.meta.url);return{id:Ob,diagram:e}},"loader"),wA={id:Ob,detector:bA,loader:CA},kA=wA,Db="xychart",SA=C(e=>/^\s*xychart(-beta)?/.test(e),"detector"),vA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./C612fWtF.js");return{diagram:t}},__vite__mapDeps([71,67]),import.meta.url);return{id:Db,diagram:e}},"loader"),MA={id:Db,detector:SA,loader:vA},TA=MA,Rb="requirement",BA=C(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),_A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BN3wupfJ.js");return{diagram:t}},__vite__mapDeps([72,15,16]),import.meta.url);return{id:Rb,diagram:e}},"loader"),LA={id:Rb,detector:BA,loader:_A},AA=LA,Nb="sequence",FA=C(e=>/^\s*sequenceDiagram/.test(e),"detector"),$A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./_yjvhbN1.js");return{diagram:t}},__vite__mapDeps([73,63,12]),import.meta.url);return{id:Nb,diagram:e}},"loader"),EA={id:Nb,detector:FA,loader:$A},PA=EA,qb="classDiagram",IA=C(e=>/^\s*classDiagram/.test(e),"detector"),OA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./iHR6T21j.js");return{diagram:t}},__vite__mapDeps([74,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,6,56,57,58]),import.meta.url);return{id:qb,diagram:e}},"loader"),DA={id:qb,detector:IA,loader:OA},RA=DA,Wb="stateDiagram",NA=C(e=>/^\s*stateDiagram/.test(e),"detector"),qA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./YGYabZh2.js");return{diagram:t}},__vite__mapDeps([75,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,6,56,57,58]),import.meta.url);return{id:Wb,diagram:e}},"loader"),WA={id:Wb,detector:NA,loader:qA},zA=WA,zb="journey",HA=C(e=>/^\s*journey/.test(e),"detector"),YA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./UellkQfD.js");return{diagram:t}},__vite__mapDeps([76,14,12]),import.meta.url);return{id:zb,diagram:e}},"loader"),XA={id:zb,detector:HA,loader:YA},jA=XA,Gn=4,Hs=75,GA=C(e=>{const t=[];for(const o of e.split(/\s+/)){let a=[...o];for(;a.length>Hs;)t.push(a.slice(0,Hs).join("")),a=a.slice(Hs);a.length>0&&t.push(a.join(""))}const r=[];let i="";for(const o of t){const a=i?`${i} ${o}`:o;[...a].length>Hs?(r.push(i),i=o):i=a}if(i&&r.push(i),r.length>Gn){r.length=Gn;const o=r[Gn-1]??"";r[Gn-1]=`${[...o].slice(0,Hs-3).join("")}...`}return r},"wrapErrorMessage"),UA=C((e,t,r,i)=>{Lt.debug(`rendering svg for syntax error
|
|
302
|
+
`);const o=CL(t),a=o.append("g"),s=GA(i?.db.getErrorMessage?.()??""),n=s.length>0?500+s.length*56:512;o.attr("viewBox",`0 0 2412 ${n}`),um(o,100,n,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),s.forEach((l,c)=>{a.append("text").attr("class","error-text").attr("x",1440).attr("y",510+c*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),Hb={draw:UA},VA=Hb,dh,ZA={clear(){dh=void 0},setErrorMessage(e){dh=e},getErrorMessage(){return dh}},KA={db:ZA,renderer:Hb,parser:{parse:C(()=>{},"parse")}},QA=KA,Yb="flowchart-elk",JA=C((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),t5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./FiJlDSoB.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,6,56,57,58]),import.meta.url);return{id:Yb,diagram:e}},"loader"),e5={id:Yb,detector:JA,loader:t5},r5=e5,Xb="timeline",i5=C(e=>/^\s*timeline/.test(e),"detector"),o5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./C0Jm4fWy.js");return{diagram:t}},[],import.meta.url);return{id:Xb,diagram:e}},"loader"),a5={id:Xb,detector:i5,loader:o5},s5=a5,jb="mindmap",n5=C(e=>/^\s*mindmap/.test(e),"detector"),l5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./SSx-ToX7.js");return{diagram:t}},__vite__mapDeps([77,15,16]),import.meta.url);return{id:jb,diagram:e}},"loader"),c5={id:jb,detector:n5,loader:l5},h5=c5,Gb="kanban",d5=C(e=>/^\s*kanban/.test(e),"detector"),u5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CalkReL4.js");return{diagram:t}},__vite__mapDeps([78,14]),import.meta.url);return{id:Gb,diagram:e}},"loader"),f5={id:Gb,detector:d5,loader:u5},g5=f5,Ub="sankey",p5=C(e=>/^\s*sankey(-beta)?/.test(e),"detector"),m5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bx2UPUSS.js");return{diagram:t}},__vite__mapDeps([79,67]),import.meta.url);return{id:Ub,diagram:e}},"loader"),y5={id:Ub,detector:p5,loader:m5},x5=y5,Vb="packet",b5=C(e=>/^\s*packet(-beta)?/.test(e),"detector"),C5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cebm9OzC.js");return{diagram:t}},__vite__mapDeps([80,64,65,3,4]),import.meta.url);return{id:Vb,diagram:e}},"loader"),w5={id:Vb,detector:b5,loader:C5},Zb="radar",k5=C(e=>/^\s*radar-beta/.test(e),"detector"),S5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./D56_Uee5.js");return{diagram:t}},__vite__mapDeps([81,64,65,3,4]),import.meta.url);return{id:Zb,diagram:e}},"loader"),v5={id:Zb,detector:k5,loader:S5},Kb="block",M5=C(e=>/^\s*block(-beta)?/.test(e),"detector"),T5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./VQlvcqoz.js");return{diagram:t}},__vite__mapDeps([82,14,5]),import.meta.url);return{id:Kb,diagram:e}},"loader"),B5={id:Kb,detector:M5,loader:T5},_5=B5,Qb="treeView",L5=C(e=>/^\s*treeView-beta/.test(e),"detector"),A5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CBc0yuEL.js");return{diagram:t}},__vite__mapDeps([83,63,64,65,3,4]),import.meta.url);return{id:Qb,diagram:e}},"loader"),F5={id:Qb,detector:L5,loader:A5},$5=F5,Jb="architecture",E5=C(e=>/^\s*architecture/.test(e),"detector"),P5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DE5aYQIc.js");return{diagram:t}},__vite__mapDeps([84,64,65,3,4,10,6]),import.meta.url);return{id:Jb,diagram:e}},"loader"),I5={id:Jb,detector:E5,loader:P5},O5=I5,t1="eventmodeling",D5=C(e=>/^\s*eventmodeling/.test(e),"detector"),R5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DWX6T0QV.js");return{diagram:t}},__vite__mapDeps([85,64,65,3,4]),import.meta.url);return{id:t1,diagram:e}},"loader"),N5={id:t1,detector:D5,loader:R5},q5=N5,e1="ishikawa",W5=C(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),z5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./C_h3ttX_.js");return{diagram:t}},[],import.meta.url);return{id:e1,diagram:e}},"loader"),H5={id:e1,detector:W5,loader:z5},r1="venn",Y5=C(e=>/^\s*venn-beta/.test(e),"detector"),X5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cqkz_Y4B.js");return{diagram:t}},[],import.meta.url);return{id:r1,diagram:e}},"loader"),j5={id:r1,detector:Y5,loader:X5},G5=j5,i1="treemap",U5=C(e=>/^\s*treemap/.test(e),"detector"),V5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BSCeNo9e.js");return{diagram:t}},__vite__mapDeps([86,16,64,65,3,4,67]),import.meta.url);return{id:i1,diagram:e}},"loader"),Z5={id:i1,detector:U5,loader:V5},o1="usecase",K5=C(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),Q5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BYacIeji.js");return{diagram:t}},__vite__mapDeps([87,15,16]),import.meta.url);return{id:o1,diagram:e}},"loader"),J5={id:o1,detector:K5,loader:Q5},a1="wardley",tF=C(e=>/^\s*wardley-beta/i.test(e),"detector"),eF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DpWQU928.js");return{diagram:t}},__vite__mapDeps([88,64,65,3,4]),import.meta.url);return{id:a1,diagram:e}},"loader"),rF={id:a1,detector:tF,loader:eF},iF=rF,s1="cynefin",oF=C(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),aF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DfrYdRvI.js");return{diagram:t}},__vite__mapDeps([89,64,65,3,4]),import.meta.url);return{id:s1,diagram:e}},"loader"),sF={id:s1,detector:oF,loader:aF},n1="railroad",nF=C(e=>/^\s*railroad-beta/i.test(e),"detector"),lF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DrTzfICr.js");return{diagram:t}},__vite__mapDeps([90,91,64,65,3,4]),import.meta.url);return{id:n1,diagram:e}},"loader"),cF={id:n1,detector:nF,loader:lF},l1="railroadEbnf",hF=C(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),dF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B6aoFNsZ.js");return{diagram:t}},__vite__mapDeps([92,91,64,65,3,4]),import.meta.url);return{id:l1,diagram:e}},"loader"),uF={id:l1,detector:hF,loader:dF},c1="railroadAbnf",fF=C(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),gF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./NpNlLFF3.js");return{diagram:t}},__vite__mapDeps([93,91,64,65,3,4]),import.meta.url);return{id:c1,diagram:e}},"loader"),pF={id:c1,detector:fF,loader:gF},h1="railroadPeg",mF=C(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),yF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./-Dz8vPPu.js");return{diagram:t}},__vite__mapDeps([94,91,64,65,3,4]),import.meta.url);return{id:h1,diagram:e}},"loader"),xF={id:h1,detector:mF,loader:yF},np=!1,dc=C(()=>{np||(np=!0,Sl("error",QA,e=>e.toLowerCase().trim()==="error"),Sl("---",{db:{clear:C(()=>{},"clear")},styles:{},renderer:{draw:C(()=>{},"draw")},parser:{parse:C(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:C(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Bh(r5,h5,O5),Bh(ZL,zL,g5,RA,oA,uA,pA,xA,AA,PA,tA,jL,s5,lA,zA,jA,kA,x5,w5,TA,_5,q5,$5,v5,H5,Z5,cF,uF,pF,xF,G5,iF,sF,J5))},"addDiagrams"),bF=C(async()=>{Lt.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ta).map(async([r,{detector:i,loader:o}])=>{if(o)try{$h(r)}catch{try{const{diagram:a,id:s}=await o();Sl(s,a,i)}catch(a){throw Lt.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ta[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){Lt.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Lt.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),CF="graphics-document document";function d1(e,t){e.attr("role",CF),t!==""&&e.attr("aria-roledescription",t)}C(d1,"setA11yDiagramInfo");function u1(e,t,r,i){if(e.insert!==void 0){if(r){const o=`chart-desc-${i}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${i}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}C(u1,"addSVGa11yTitleDescription");var Ma,Xl=(Ma=class{constructor(t,r,i,o,a){this.type=t,this.text=r,this.db=i,this.parser=o,this.renderer=a}static async fromText(t,r={}){const i=typeof t=="string"?{cleaned:t}:t,o=Ar(),a=Zl(i.cleaned,o);try{$h(a)}catch{const u=C2(a);if(!u)throw new Jp(`Diagram ${a} not found.`);const{id:f,diagram:g}=await u();Sl(f,g)}const{db:s,parser:n,renderer:l,init:c}=$h(a);n.parser&&(n.parser.yy=s),s.clear?.(),c?.(o),r.title&&s.setDiagramTitle?.(r.title);let h=i.cleaned;if(s.preserveCommentsWhenParsing&&i.withComments){const u=o.maxTextSize??Ld.maxTextSize;i.withComments.length>u?Lt.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${u}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):h=i.withComments}const d=TM(h)+`
|
|
303
303
|
`;return i.frontmatterLineOffset&&s.setFrontmatterLineOffset?.(i.frontmatterLineOffset),await n.parse(d),new Ma(a,d,s,n,l)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},C(Ma,"Diagram"),Ma),lp=[],wF=C(()=>{lp.forEach(e=>{e()}),lp=[]},"attachFunctions"),kF=C(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function f1(e){const t=Qp(e);if(!t)return{text:e,metadata:{}};const r=t.indent,i=r?t.body.split(`
|
|
304
304
|
`).map(s=>s.startsWith(r)?s.slice(r.length):s).join(`
|
|
305
305
|
`):t.body;let o=o2(i,{schema:i2})??{};o=typeof o=="object"&&!Array.isArray(o)?o:{};const a={};return o.displayMode&&(a.displayMode=o.displayMode.toString()),o.title&&(a.title=o.title.toString()),o.config&&(a.config=o.config),{text:e.slice(t.length),metadata:a}}C(f1,"extractFrontMatter");var SF=C(e=>e.replace(/\r\n?/g,`
|