@intent-hq/web 2.317.1 → 2.317.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.
Files changed (144) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DYf5DuDx.js → 1HLMWEVR.js} +1 -1
  3. package/web/app/immutable/chunks/{2OiXo23M.js → 3ABUvTUz.js} +1 -1
  4. package/web/app/immutable/chunks/{C0_zcRj8.js → 51i2b0Zy.js} +4 -4
  5. package/web/app/immutable/chunks/{DF7KVzea.js → 5FkB6ttu.js} +1 -1
  6. package/web/app/immutable/chunks/{BGBAZFDA.js → 5s1JeAQX.js} +1 -1
  7. package/web/app/immutable/chunks/{BSPqJZAT.js → 70jzMwhc.js} +1 -1
  8. package/web/app/immutable/chunks/{BvK92yxL.js → 7LP4OqPX.js} +1 -1
  9. package/web/app/immutable/chunks/{Dx6t1L1f.js → B-7x7ULv.js} +1 -1
  10. package/web/app/immutable/chunks/{Bghm85lU.js → B0ViTaXX.js} +1 -1
  11. package/web/app/immutable/chunks/{BturS1Nz.js → B19l4IVQ.js} +1 -1
  12. package/web/app/immutable/chunks/{sakCDJo0.js → B1JwdW4Q.js} +1 -1
  13. package/web/app/immutable/chunks/{Bdpctovl.js → B4pMa2Ff.js} +1 -1
  14. package/web/app/immutable/chunks/{kHZNJDUK.js → B5U_Qd5T.js} +1 -1
  15. package/web/app/immutable/chunks/{DZpToFFs.js → BKE1GgFG.js} +1 -1
  16. package/web/app/immutable/chunks/{j8ghg2ai.js → BLbOCNKp.js} +1 -1
  17. package/web/app/immutable/chunks/{PcsOevpx.js → BPiLsEn1.js} +2 -2
  18. package/web/app/immutable/chunks/{Dz7BZ-Wu.js → BQ4SUKhz.js} +1 -1
  19. package/web/app/immutable/chunks/{Bj_DM3AP.js → BQpiQojj.js} +1 -1
  20. package/web/app/immutable/chunks/{DkuQzMx_.js → BWj5RUp1.js} +1 -1
  21. package/web/app/immutable/chunks/{h3o3oRVE.js → BXrsorfX.js} +1 -1
  22. package/web/app/immutable/chunks/{Dis3xizO.js → BXyOJh3J.js} +1 -1
  23. package/web/app/immutable/chunks/{quTXziyM.js → BZ0Iewxk.js} +1 -1
  24. package/web/app/immutable/chunks/{rJbfMbZu.js → BZ3_6s6_.js} +1 -1
  25. package/web/app/immutable/chunks/{hw6Vfiv_.js → BZypROSK.js} +1 -1
  26. package/web/app/immutable/chunks/{BesKUJKM.js → B_-M_Rk1.js} +4 -4
  27. package/web/app/immutable/chunks/{DwzKzsX7.js → BcHWqFY-.js} +1 -1
  28. package/web/app/immutable/chunks/{DRzrmu9J.js → Bd8Du0Fd.js} +1 -1
  29. package/web/app/immutable/chunks/{DnJV6d0z.js → BeTxGqXI.js} +1 -1
  30. package/web/app/immutable/chunks/{-OXO1gDF.js → Beo1BUT8.js} +1 -1
  31. package/web/app/immutable/chunks/{C6dcN928.js → BmwCvXG3.js} +1 -1
  32. package/web/app/immutable/chunks/{CeVD4JNJ.js → BpkV1q6g.js} +1 -1
  33. package/web/app/immutable/chunks/{DnGY6COc.js → BqI9uavK.js} +2 -2
  34. package/web/app/immutable/chunks/{B1HHx4Xc.js → Bscf_BG7.js} +1 -1
  35. package/web/app/immutable/chunks/{CgqdRpaU.js → BtgBL_Zs.js} +1 -1
  36. package/web/app/immutable/chunks/{DMGdX5dC.js → BuPHrdQM.js} +1 -1
  37. package/web/app/immutable/chunks/{CGYR-OUO.js → Bya-ggU-.js} +1 -1
  38. package/web/app/immutable/chunks/{CDttX3B0.js → BypSPjBC.js} +6 -6
  39. package/web/app/immutable/chunks/{C8XRk44H.js → C-e-yd98.js} +1 -1
  40. package/web/app/immutable/chunks/{DudDulOw.js → C-oQiQ3z.js} +4 -4
  41. package/web/app/immutable/chunks/{C-krfUjX.js → C1MXqCUp.js} +1 -1
  42. package/web/app/immutable/chunks/{CC0KHv9g.js → C2gHzjc8.js} +1 -1
  43. package/web/app/immutable/chunks/{DbIaUlkq.js → C6o6HQ6t.js} +1 -1
  44. package/web/app/immutable/chunks/{uHJk0PWt.js → CC1bGpw_.js} +1 -1
  45. package/web/app/immutable/chunks/{qgOprBUq.js → CGE0UuGs.js} +1 -1
  46. package/web/app/immutable/chunks/{T4VCPUO9.js → CHKHRxNs.js} +1 -1
  47. package/web/app/immutable/chunks/{IokeQccG.js → CRcCx-zt.js} +1 -1
  48. package/web/app/immutable/chunks/{DVYxNDfI.js → CSxQeikv.js} +6 -6
  49. package/web/app/immutable/chunks/{CuezXtPx.js → CWbBNWZY.js} +1 -1
  50. package/web/app/immutable/chunks/{Ba1t9dvV.js → CYGCz9Jd.js} +2 -2
  51. package/web/app/immutable/chunks/{BgmURGgb.js → CbwL0mcB.js} +1 -1
  52. package/web/app/immutable/chunks/{CEUAvJqZ.js → CcKi_DP7.js} +1 -1
  53. package/web/app/immutable/chunks/{BqRjynnt.js → ChjNagFp.js} +1 -1
  54. package/web/app/immutable/chunks/{DryGuZfX.js → CiY5WTYK.js} +1 -1
  55. package/web/app/immutable/chunks/{DwT0S_Cn.js → CiohM4ZQ.js} +1 -1
  56. package/web/app/immutable/chunks/{CqFq2lX2.js → Cja4JOdS.js} +1 -1
  57. package/web/app/immutable/chunks/{Bu0zI_DP.js → Cjl8Nti8.js} +1 -1
  58. package/web/app/immutable/chunks/{CKmX878K.js → CnURdtcx.js} +1 -1
  59. package/web/app/immutable/chunks/{DwKLJSN8.js → CsZRWQFM.js} +1 -1
  60. package/web/app/immutable/chunks/{drcNWEWl.js → Cwi8--0W.js} +1 -1
  61. package/web/app/immutable/chunks/{B4PcViey.js → CzXnFot6.js} +1 -1
  62. package/web/app/immutable/chunks/{cRHYPBt2.js → D000Y3U2.js} +1 -1
  63. package/web/app/immutable/chunks/{BhUB-kyE.js → D25d-Koj.js} +1 -1
  64. package/web/app/immutable/chunks/{MtbbCTW0.js → D27--FO7.js} +1 -1
  65. package/web/app/immutable/chunks/{CzkAgnTZ.js → D2bBadyn.js} +1 -1
  66. package/web/app/immutable/chunks/{DJXY9r1W.js → D3Av1JMy.js} +3 -3
  67. package/web/app/immutable/chunks/{BLQdEWle.js → D4rfShJ_.js} +1 -1
  68. package/web/app/immutable/chunks/{k0cUEDlY.js → D5hnBZtr.js} +1 -1
  69. package/web/app/immutable/chunks/{VLk1eYlP.js → D6pC8C8o.js} +1 -1
  70. package/web/app/immutable/chunks/{DVFHJM4W.js → D7IWr17d.js} +1 -1
  71. package/web/app/immutable/chunks/{CDPL25Y3.js → D8Imihe0.js} +1 -1
  72. package/web/app/immutable/chunks/{C1WWtTVy.js → D9o0T9ir.js} +1 -1
  73. package/web/app/immutable/chunks/{D-w8lLsN.js → DBsrgEQY.js} +1 -1
  74. package/web/app/immutable/chunks/{N5rMzRMb.js → DDUX5dm3.js} +3 -3
  75. package/web/app/immutable/chunks/{LoaWjsef.js → DFCtaoTZ.js} +2 -2
  76. package/web/app/immutable/chunks/{Dm15hxsp.js → DHW0b2jP.js} +4 -4
  77. package/web/app/immutable/chunks/{DK1BqnCB.js → DKtu3kW5.js} +1 -1
  78. package/web/app/immutable/chunks/{D6cQtLJm.js → DOd57FMZ.js} +1 -1
  79. package/web/app/immutable/chunks/{B13RDZF-.js → DUjKQudc.js} +3 -3
  80. package/web/app/immutable/chunks/{HpwiLTre.js → DUyiOtrK.js} +1 -1
  81. package/web/app/immutable/chunks/{B5xTDvuD.js → DVfPvRIS.js} +1 -1
  82. package/web/app/immutable/chunks/{DRqX3YDO.js → DYMvJtQy.js} +1 -1
  83. package/web/app/immutable/chunks/{axZ6FUl6.js → D_1oX83y.js} +2 -2
  84. package/web/app/immutable/chunks/{DE3Lcve1.js → Dc-hoPaD.js} +1 -1
  85. package/web/app/immutable/chunks/{C1R6aKL8.js → Dc0z-1f1.js} +1 -1
  86. package/web/app/immutable/chunks/{Cty33iRK.js → DdgOahmz.js} +1 -1
  87. package/web/app/immutable/chunks/{Ch5sncDe.js → Df_KaPO2.js} +1 -1
  88. package/web/app/immutable/chunks/{Cc-pMLB4.js → DfcN0vl7.js} +1 -1
  89. package/web/app/immutable/chunks/{Cj_EkecE.js → Dgw2Wjgi.js} +2 -2
  90. package/web/app/immutable/chunks/{Dh_Bigb6.js → DhRnAAAs.js} +1 -1
  91. package/web/app/immutable/chunks/{g0vc32VN.js → DjsRyxTd.js} +1 -1
  92. package/web/app/immutable/chunks/{DC6onRoO.js → DlL3hXg0.js} +2 -2
  93. package/web/app/immutable/chunks/{BK65ZWz9.js → DpsivgKH.js} +1 -1
  94. package/web/app/immutable/chunks/{CBrOofKx.js → DsYVkI49.js} +1 -1
  95. package/web/app/immutable/chunks/{C1jser9w.js → DtMv5TQ8.js} +1 -1
  96. package/web/app/immutable/chunks/{DL3seRsB.js → DugGE-AO.js} +1 -1
  97. package/web/app/immutable/chunks/{mE3uEsyu.js → DvnkuohG.js} +1 -1
  98. package/web/app/immutable/chunks/{3HYmAT7C.js → Dw27dq0-.js} +1 -1
  99. package/web/app/immutable/chunks/{BMbKczal.js → DwZdimp9.js} +1 -1
  100. package/web/app/immutable/chunks/{C0UjB8JI.js → DwqkyGAS.js} +1 -1
  101. package/web/app/immutable/chunks/{D1KPD4PK.js → FHutRMli.js} +1 -1
  102. package/web/app/immutable/chunks/{Div4tCqV.js → FN5msAy_.js} +1 -1
  103. package/web/app/immutable/chunks/{Ckq_7AIj.js → HiFzG501.js} +1 -1
  104. package/web/app/immutable/chunks/{CMh5tBvB.js → IxA57nJL.js} +1 -1
  105. package/web/app/immutable/chunks/{Nq9C3-8l.js → JtPc08so.js} +1 -1
  106. package/web/app/immutable/chunks/{CJuB-rg1.js → KTsXxUF5.js} +1 -1
  107. package/web/app/immutable/chunks/{BNgwOz3Z.js → LPZkKDIt.js} +1 -1
  108. package/web/app/immutable/chunks/{dgcdYOeR.js → LbC7skPD.js} +1 -1
  109. package/web/app/immutable/chunks/{BlxINqTo.js → MaU6O01C.js} +1 -1
  110. package/web/app/immutable/chunks/{CznUT23Z.js → S75JqWQs.js} +1 -1
  111. package/web/app/immutable/chunks/{HWDXzILi.js → SN7QywhL.js} +1 -1
  112. package/web/app/immutable/chunks/{QEPD5Z_o.js → Y2IQMTgy.js} +1 -1
  113. package/web/app/immutable/chunks/{iA3GASz6.js → ZOX3f8YP.js} +1 -1
  114. package/web/app/immutable/chunks/{CHlbQRKO.js → ZqQeKane.js} +1 -1
  115. package/web/app/immutable/chunks/{BUJ6mFRx.js → d1VpYuEe.js} +2 -2
  116. package/web/app/immutable/chunks/{BdZEmpWD.js → gGle0ySs.js} +1 -1
  117. package/web/app/immutable/chunks/{BO5Kj8t_.js → geGZi_w1.js} +1 -1
  118. package/web/app/immutable/chunks/{CaEc5PYX.js → jlIjptN1.js} +1 -1
  119. package/web/app/immutable/chunks/{NtHgvgtm.js → keABhBJs.js} +1 -1
  120. package/web/app/immutable/chunks/{DE_RpjD7.js → ldht3A_H.js} +1 -1
  121. package/web/app/immutable/chunks/{BxkXUnPn.js → m5qFicCP.js} +1 -1
  122. package/web/app/immutable/chunks/{B7wR1EpJ.js → nHpG5p0C.js} +1 -1
  123. package/web/app/immutable/chunks/{EfZdQeTe.js → o0LuLePs.js} +1 -1
  124. package/web/app/immutable/chunks/{BvsLQzSj.js → uYanh5GD.js} +1 -1
  125. package/web/app/immutable/chunks/{DhQHJqoK.js → wprVZZpe.js} +1 -1
  126. package/web/app/immutable/chunks/{CzBCAgjC.js → z4Ol2X5C.js} +1 -1
  127. package/web/app/immutable/entry/{app.D6Zco7Ez.js → app.CjL_ESb3.js} +2 -2
  128. package/web/app/immutable/entry/start.DVcgL5VV.js +1 -0
  129. package/web/app/immutable/nodes/{0.BSHSaqP_.js → 0.u-mqmdJF.js} +1 -1
  130. package/web/app/immutable/nodes/{1.DGcfZi9V.js → 1.CWA4VVhg.js} +1 -1
  131. package/web/app/immutable/nodes/{10.bzDhOMFh.js → 10.COfYFCM4.js} +1 -1
  132. package/web/app/immutable/nodes/{14.CMq8oFYO.js → 14.Dd42XRi5.js} +1 -1
  133. package/web/app/immutable/nodes/{16.CqW-ZTLP.js → 16.CucYoMvi.js} +2 -2
  134. package/web/app/immutable/nodes/{2.BiN9Mr8E.js → 2.Ccc1TwNU.js} +3 -3
  135. package/web/app/immutable/nodes/{3.DthZqeAc.js → 3.Ce2k2EUY.js} +1 -1
  136. package/web/app/immutable/nodes/{4.CynqUCuX.js → 4.m_i1ZxYH.js} +1 -1
  137. package/web/app/immutable/nodes/{5.XZuFu16h.js → 5.BzAilpoC.js} +1 -1
  138. package/web/app/immutable/nodes/{6.CjWGRuKr.js → 6.C9ZiA6w4.js} +1 -1
  139. package/web/app/immutable/nodes/{7.D4PgBXr2.js → 7.t5Jghx_n.js} +1 -1
  140. package/web/app/immutable/nodes/{8.B8kRWrEG.js → 8.aKcaX52l.js} +2 -2
  141. package/web/app/immutable/nodes/{9.C-R5la_8.js → 9.DeLiPEkd.js} +1 -1
  142. package/web/app/version.json +1 -1
  143. package/web/index.html +9 -9
  144. package/web/app/immutable/entry/start.CUd5MThk.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CJuB-rg1.js","/app/immutable/chunks/DudDulOw.js","/app/immutable/chunks/DJ6NhP2E.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/MtbbCTW0.js","/app/immutable/chunks/r-K_cVbp.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/CG4aq4mO.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DBaJKI7v.js","/app/immutable/chunks/Dd6RDWfk.js","/app/immutable/chunks/C3Sa4Adg.js","/app/immutable/chunks/jWThE6-J.js","/app/immutable/chunks/jiHQQ6wA.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/B9pc_pKk.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/OXAE4Y56.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CBMSMN2h.js","/app/immutable/chunks/BUjUgUAA.js","/app/immutable/chunks/qgOprBUq.js","/app/immutable/chunks/C_sy4_IS.js","/app/immutable/chunks/DiOG4aSP.js","/app/immutable/chunks/DC6onRoO.js","/app/immutable/chunks/DC-9q6_j.js","/app/immutable/chunks/DrPG1fDs.js","/app/immutable/chunks/B-yP-PGc.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/rU5MX2nQ.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/DqsogpbZ.js","/app/immutable/chunks/BUJ6mFRx.js","/app/immutable/chunks/D2CQaCZ1.js","/app/immutable/chunks/ibhfo-VE.js","/app/immutable/chunks/BDRH2dQc.js","/app/immutable/chunks/NySn8Jgs.js","/app/immutable/chunks/DppOK7dU.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/CK4Yr90U.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/BvdQxsGv.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/0gFz0POF.js","/app/immutable/chunks/uxlSCqIr.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BJw5wnOV.js","/app/immutable/chunks/uHJk0PWt.js","/app/immutable/chunks/DVYxNDfI.js","/app/immutable/chunks/C1WWtTVy.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CKmX878K.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/C0_zcRj8.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/rEk7AsyC.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/BesKUJKM.js","/app/immutable/chunks/B13RDZF-.js","/app/immutable/chunks/Dis3xizO.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css"])))=>i.map(i=>d[i]);
2
- import{_ as Z}from"./DJ6NhP2E.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./DudDulOw.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./CJuB-rg1.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/KTsXxUF5.js","/app/immutable/chunks/C-oQiQ3z.js","/app/immutable/chunks/DJ6NhP2E.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/D27--FO7.js","/app/immutable/chunks/r-K_cVbp.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/CG4aq4mO.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DBaJKI7v.js","/app/immutable/chunks/Dd6RDWfk.js","/app/immutable/chunks/C3Sa4Adg.js","/app/immutable/chunks/jWThE6-J.js","/app/immutable/chunks/jiHQQ6wA.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/B9pc_pKk.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/OXAE4Y56.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CBMSMN2h.js","/app/immutable/chunks/BUjUgUAA.js","/app/immutable/chunks/CGE0UuGs.js","/app/immutable/chunks/C_sy4_IS.js","/app/immutable/chunks/DiOG4aSP.js","/app/immutable/chunks/DlL3hXg0.js","/app/immutable/chunks/DC-9q6_j.js","/app/immutable/chunks/DrPG1fDs.js","/app/immutable/chunks/B-yP-PGc.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/rU5MX2nQ.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/DqsogpbZ.js","/app/immutable/chunks/d1VpYuEe.js","/app/immutable/chunks/D2CQaCZ1.js","/app/immutable/chunks/ibhfo-VE.js","/app/immutable/chunks/BDRH2dQc.js","/app/immutable/chunks/NySn8Jgs.js","/app/immutable/chunks/DppOK7dU.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/CK4Yr90U.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/BvdQxsGv.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/0gFz0POF.js","/app/immutable/chunks/uxlSCqIr.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BJw5wnOV.js","/app/immutable/chunks/CC1bGpw_.js","/app/immutable/chunks/CSxQeikv.js","/app/immutable/chunks/D9o0T9ir.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CnURdtcx.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/51i2b0Zy.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/rEk7AsyC.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/B_-M_Rk1.js","/app/immutable/chunks/DUjKQudc.js","/app/immutable/chunks/BXyOJh3J.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css"])))=>i.map(i=>d[i]);
2
+ import{_ as Z}from"./DJ6NhP2E.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./C-oQiQ3z.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./KTsXxUF5.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};