@intent-hq/web 2.346.3 → 2.346.4

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 (143) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{XuyckbH_.js → 2rbh16KP.js} +1 -1
  3. package/web/app/immutable/chunks/{2JP5OgdF.js → 4CzdfJpH.js} +1 -1
  4. package/web/app/immutable/chunks/{jSRaMDVY.js → 4UjNJakA.js} +1 -1
  5. package/web/app/immutable/chunks/{8LHayabj.js → 6MPt5WH3.js} +1 -1
  6. package/web/app/immutable/chunks/{CZmb_yca.js → 8hWYh2SV.js} +1 -1
  7. package/web/app/immutable/chunks/{6qKuCjdA.js → 9kj5ZfRr.js} +1 -1
  8. package/web/app/immutable/chunks/{o6NTBM2j.js → B-KN8Jlj.js} +1 -1
  9. package/web/app/immutable/chunks/{LdVrshUq.js → B2fjzJpx.js} +1 -1
  10. package/web/app/immutable/chunks/{BjyueHVe.js → B4ra8hfV.js} +1 -1
  11. package/web/app/immutable/chunks/{CnodB1ak.js → B50qxjRT.js} +12 -12
  12. package/web/app/immutable/chunks/{Cyc9AKzR.js → B88KZW78.js} +1 -1
  13. package/web/app/immutable/chunks/{CUL4Iea5.js → B8kDwCP_.js} +1 -1
  14. package/web/app/immutable/chunks/{Ce3hxymX.js → B9Z-QU9w.js} +2 -2
  15. package/web/app/immutable/chunks/{DN6EDRqv.js → B9b_K-RG.js} +1 -1
  16. package/web/app/immutable/chunks/{n8cz4x1y.js → BBDyE7y7.js} +1 -1
  17. package/web/app/immutable/chunks/{U5yX75Fv.js → BBXjSeZz.js} +1 -1
  18. package/web/app/immutable/chunks/{CB69UzLI.js → BI0ZZ8UO.js} +1 -1
  19. package/web/app/immutable/chunks/{Cf3lvx7n.js → BIqnmVRf.js} +4 -4
  20. package/web/app/immutable/chunks/{DKOceApm.js → BJWhwwHx.js} +1 -1
  21. package/web/app/immutable/chunks/{CX_kUgUI.js → BNJe789p.js} +1 -1
  22. package/web/app/immutable/chunks/{B4-LumaR.js → BNwYXBCy.js} +1 -1
  23. package/web/app/immutable/chunks/{CIKf0hiv.js → BSzY-NMz.js} +1 -1
  24. package/web/app/immutable/chunks/{BVKuTBgW.js → BT9wQ0Ce.js} +6 -6
  25. package/web/app/immutable/chunks/{Bwi3H4EE.js → Ba-QPC0I.js} +1 -1
  26. package/web/app/immutable/chunks/{DTT_rauc.js → BepEnAFk.js} +1 -1
  27. package/web/app/immutable/chunks/{baJQH4o5.js → BfUFKHC3.js} +1 -1
  28. package/web/app/immutable/chunks/{l8NmpVqL.js → BhXOnc6x.js} +1 -1
  29. package/web/app/immutable/chunks/{C1s5hjq_.js → Bj5SxeMr.js} +1 -1
  30. package/web/app/immutable/chunks/{BoCkK5Wk.js → BksE-BZ5.js} +1 -1
  31. package/web/app/immutable/chunks/{905ViLyg.js → BkwxWGIh.js} +1 -1
  32. package/web/app/immutable/chunks/{DjbBeQRM.js → By29T7f9.js} +1 -1
  33. package/web/app/immutable/chunks/{Bf-2W8ee.js → ByDHRaj1.js} +1 -1
  34. package/web/app/immutable/chunks/{DEQYPNCO.js → C-G83LXE.js} +1 -1
  35. package/web/app/immutable/chunks/{COZ71ZSJ.js → C0BifgcV.js} +3 -3
  36. package/web/app/immutable/chunks/{mdG_8hzH.js → C0CqY7Yc.js} +1 -1
  37. package/web/app/immutable/chunks/{BhwQ3RpS.js → C0WVBwZy.js} +1 -1
  38. package/web/app/immutable/chunks/{DKRbyLvF.js → C18Lu2A8.js} +1 -1
  39. package/web/app/immutable/chunks/{Coi6oyYv.js → C1waf3iu.js} +1 -1
  40. package/web/app/immutable/chunks/{D4wRJWJo.js → C2EstpWq.js} +1 -1
  41. package/web/app/immutable/chunks/{ByhhTiqD.js → C8MPntD9.js} +1 -1
  42. package/web/app/immutable/chunks/{D4_mjoiz.js → C9pKpUIK.js} +1 -1
  43. package/web/app/immutable/chunks/{C2UUXRHQ.js → C9yvm97z.js} +3 -3
  44. package/web/app/immutable/chunks/{D4gGvbme.js → CBc9tLFK.js} +4 -4
  45. package/web/app/immutable/chunks/{CwT6KWlV.js → CBq6DlIt.js} +4 -4
  46. package/web/app/immutable/chunks/{BIuKjPZF.js → CEr-aDm8.js} +1 -1
  47. package/web/app/immutable/chunks/{SWyKEy91.js → CFj0DasV.js} +1 -1
  48. package/web/app/immutable/chunks/{_dg-9BeG.js → CG_uU7t2.js} +1 -1
  49. package/web/app/immutable/chunks/{DvFUmkR8.js → CHr6G3cY.js} +1 -1
  50. package/web/app/immutable/chunks/{CgthA8iG.js → CK_Ox9jk.js} +1 -1
  51. package/web/app/immutable/chunks/{CAZtkTon.js → CM4TK2R4.js} +1 -1
  52. package/web/app/immutable/chunks/{D2X9xdX0.js → CO5MrM9v.js} +1 -1
  53. package/web/app/immutable/chunks/{CqZy0zQ2.js → CPCmJFz3.js} +1 -1
  54. package/web/app/immutable/chunks/{CPB4vP4H.js → CVM42XXi.js} +3 -3
  55. package/web/app/immutable/chunks/{B3GLZuHB.js → CVXxjkW7.js} +1 -1
  56. package/web/app/immutable/chunks/{Bs4SchIj.js → CY04lbSN.js} +1 -1
  57. package/web/app/immutable/chunks/{DhUKwJna.js → CZytbhGb.js} +1 -1
  58. package/web/app/immutable/chunks/{DhWxuzTb.js → CapiHpD_.js} +1 -1
  59. package/web/app/immutable/chunks/{Bndg0x8W.js → Cc25YYnU.js} +1 -1
  60. package/web/app/immutable/chunks/{C6WcTrxv.js → CfvmLdft.js} +2 -2
  61. package/web/app/immutable/chunks/{DtL2rtM8.js → Ch69Gx78.js} +1 -1
  62. package/web/app/immutable/chunks/{DvTOURZI.js → CjUvLS5U.js} +1 -1
  63. package/web/app/immutable/chunks/{Dn2BQOth.js → CkOW2_R1.js} +1 -1
  64. package/web/app/immutable/chunks/{CHDzcbuO.js → CkbCPRkQ.js} +1 -1
  65. package/web/app/immutable/chunks/{D9u2PK-L.js → CkuIoWee.js} +1 -1
  66. package/web/app/immutable/chunks/{BWqWCv74.js → ClG9H6Ln.js} +1 -1
  67. package/web/app/immutable/chunks/{BcTzrLaX.js → CoMnnGKT.js} +1 -1
  68. package/web/app/immutable/chunks/{DklZSLh2.js → CpCtdYM3.js} +1 -1
  69. package/web/app/immutable/chunks/{B_E_i0pj.js → Cs3L-D2A.js} +1 -1
  70. package/web/app/immutable/chunks/{DI8xYaVc.js → CtZBPGmK.js} +1 -1
  71. package/web/app/immutable/chunks/{wz6AT1mX.js → Cu1u-4wq.js} +1 -1
  72. package/web/app/immutable/chunks/{DUOZnHQ0.js → CugnkL_9.js} +4 -4
  73. package/web/app/immutable/chunks/{CABbtsx1.js → Cy8JcjH6.js} +1 -1
  74. package/web/app/immutable/chunks/{DpUWgmrg.js → D-ZcbI-Y.js} +1 -1
  75. package/web/app/immutable/chunks/{LxLcg7tj.js → D-uBGxZi.js} +1 -1
  76. package/web/app/immutable/chunks/{BjQLXdCG.js → D0s1SVt5.js} +1 -1
  77. package/web/app/immutable/chunks/{D6HxW8tD.js → D0wPN4-P.js} +1 -1
  78. package/web/app/immutable/chunks/{D6VwVF_C.js → D32HMlYT.js} +1 -1
  79. package/web/app/immutable/chunks/{CFvWMGvD.js → D8tPfa9K.js} +2 -2
  80. package/web/app/immutable/chunks/{D3BzyAjt.js → DDjhSDXW.js} +1 -1
  81. package/web/app/immutable/chunks/{D4iUNFJq.js → DJhhNZ7M.js} +1 -1
  82. package/web/app/immutable/chunks/{D1PKFqe0.js → DOzvQ0Rd.js} +1 -1
  83. package/web/app/immutable/chunks/{DVlQV8vI.js → DPpH6C1S.js} +1 -1
  84. package/web/app/immutable/chunks/{DLH4F1ED.js → DU-RLEFB.js} +1 -1
  85. package/web/app/immutable/chunks/{D9kdbyS6.js → DVDOk-ql.js} +1 -1
  86. package/web/app/immutable/chunks/{BVxykti4.js → DaWQpSHZ.js} +1 -1
  87. package/web/app/immutable/chunks/{2cCVtmIg.js → Dc5gEXVa.js} +1 -1
  88. package/web/app/immutable/chunks/{jdYPqvvP.js → DhoGdCQi.js} +1 -1
  89. package/web/app/immutable/chunks/{DKzgMUBy.js → DjLQeEnc.js} +2 -2
  90. package/web/app/immutable/chunks/{C2aqDEXl.js → DjakyUlc.js} +1 -1
  91. package/web/app/immutable/chunks/{BAo6IWBv.js → Dk7aFMZs.js} +1 -1
  92. package/web/app/immutable/chunks/{CekmJHGy.js → DnahZard.js} +3 -3
  93. package/web/app/immutable/chunks/{CMb8WXOk.js → DpFPjrHa.js} +2 -2
  94. package/web/app/immutable/chunks/{DKs0uFks.js → DqgXv99N.js} +1 -1
  95. package/web/app/immutable/chunks/{Bfufmy9h.js → DrHq7-l3.js} +1 -1
  96. package/web/app/immutable/chunks/{urgjvk31.js → DuP0kN9u.js} +1 -1
  97. package/web/app/immutable/chunks/{VpmaCPqv.js → DzHxtEmT.js} +3 -3
  98. package/web/app/immutable/chunks/{Coq4Q49X.js → GgJbmGSc.js} +1 -1
  99. package/web/app/immutable/chunks/{BsCcl9ES.js → Ik_OLFJv.js} +1 -1
  100. package/web/app/immutable/chunks/{cw0Fy9sQ.js → JM_PKnGS.js} +1 -1
  101. package/web/app/immutable/chunks/{BjQQ-QAR.js → McA_XHBx.js} +1 -1
  102. package/web/app/immutable/chunks/{D3UJod5R.js → Mg8H3Ad_.js} +2 -2
  103. package/web/app/immutable/chunks/{B2Nx9i4m.js → PRcE3ypK.js} +1 -1
  104. package/web/app/immutable/chunks/{AhLUcdeh.js → PTikn3lb.js} +1 -1
  105. package/web/app/immutable/chunks/{DP4V6iDW.js → R-YEJgRO.js} +1 -1
  106. package/web/app/immutable/chunks/{M1o9ycAe.js → S3oleArH.js} +2 -2
  107. package/web/app/immutable/chunks/{CjxlVYMT.js → SVOpkWQp.js} +2 -2
  108. package/web/app/immutable/chunks/{BgO7_9-9.js → WVba34Wr.js} +1 -1
  109. package/web/app/immutable/chunks/{B3Z7v7rH.js → _q-KbJHf.js} +1 -1
  110. package/web/app/immutable/chunks/{B6lORqss.js → aK5j3GUe.js} +1 -1
  111. package/web/app/immutable/chunks/{3kodm_f4.js → b30yTgwC.js} +1 -1
  112. package/web/app/immutable/chunks/{CK8WOQOm.js → b_tEJldq.js} +1 -1
  113. package/web/app/immutable/chunks/{CyYhxGJX.js → cQMohqSY.js} +1 -1
  114. package/web/app/immutable/chunks/{CD1fj6ns.js → d7GMXNij.js} +1 -1
  115. package/web/app/immutable/chunks/{CHKJ-bXh.js → dWKHnuAl.js} +1 -1
  116. package/web/app/immutable/chunks/{B7J_zYsA.js → e3tI_GeB.js} +1 -1
  117. package/web/app/immutable/chunks/{DcwiOhhA.js → g9XYCabR.js} +1 -1
  118. package/web/app/immutable/chunks/{B5jn8aKG.js → jX7_8poo.js} +1 -1
  119. package/web/app/immutable/chunks/{D2hrkGhh.js → khtpv5vo.js} +1 -1
  120. package/web/app/immutable/chunks/{Q9dh-ELL.js → mP3jvNc-.js} +1 -1
  121. package/web/app/immutable/chunks/{CcUMYD8T.js → ryfL7_qm.js} +1 -1
  122. package/web/app/immutable/chunks/{DHbLiTwn.js → s464WHxX.js} +1 -1
  123. package/web/app/immutable/chunks/{BXVSJTKx.js → tgq3aX1k.js} +1 -1
  124. package/web/app/immutable/chunks/{mli93Dcp.js → yhs5mgcb.js} +1 -1
  125. package/web/app/immutable/chunks/{2FIlKX-3.js → z8H4OcR3.js} +1 -1
  126. package/web/app/immutable/entry/{app.BTU46CGQ.js → app.DnRD5eKq.js} +2 -2
  127. package/web/app/immutable/entry/start.CbqkOfEp.js +1 -0
  128. package/web/app/immutable/nodes/{0.Ci7PVT_k.js → 0.CmJ43u1e.js} +1 -1
  129. package/web/app/immutable/nodes/{1.BR59lUe8.js → 1.CqfYJXsK.js} +1 -1
  130. package/web/app/immutable/nodes/{10.DgX_PEe_.js → 10.Bl5RgWV9.js} +1 -1
  131. package/web/app/immutable/nodes/{14.C7X_5Bue.js → 14.lB98JO4-.js} +1 -1
  132. package/web/app/immutable/nodes/{18.B3AoO6j9.js → 18.C1RSVrDA.js} +2 -2
  133. package/web/app/immutable/nodes/{2.DlWTJs6C.js → 2.CALBXNAI.js} +4 -4
  134. package/web/app/immutable/nodes/{3.DTgoPy4s.js → 3.Cbim6IQ0.js} +1 -1
  135. package/web/app/immutable/nodes/{4.DSkknvUk.js → 4.CLMy68qv.js} +1 -1
  136. package/web/app/immutable/nodes/{5.pRTuZIBK.js → 5.DTKqXK_K.js} +1 -1
  137. package/web/app/immutable/nodes/{6.IXz7usII.js → 6.COrZ368S.js} +1 -1
  138. package/web/app/immutable/nodes/{7.-QsdIQf6.js → 7.BOwmWuI7.js} +1 -1
  139. package/web/app/immutable/nodes/{8.s2ERF-BG.js → 8.DVUc29Ay.js} +4 -4
  140. package/web/app/immutable/nodes/{9.CzyfEfdP.js → 9.Bf5-_PNq.js} +4 -4
  141. package/web/app/version.json +1 -1
  142. package/web/index.html +9 -9
  143. package/web/app/immutable/entry/start.VeHGe5l7.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/U5yX75Fv.js","/app/immutable/chunks/D4gGvbme.js","/app/immutable/chunks/Y9-4hTF9.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/AhLUcdeh.js","/app/immutable/chunks/ClH0Gega.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/tU_ZJtMw.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CO4a0yRH.js","/app/immutable/chunks/CrWhihJ_.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/Mc93eSxl.js","/app/immutable/chunks/CPKMQWOs.js","/app/immutable/chunks/BL2lJmRT.js","/app/immutable/chunks/cFbB-5Cu.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BZQDFgmp.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DOH10_LL.js","/app/immutable/chunks/CIpI7Qrh.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/5GYSXevc.js","/app/immutable/chunks/BLgIfeYS.js","/app/immutable/chunks/CD1fj6ns.js","/app/immutable/chunks/Bv2KudWv.js","/app/immutable/chunks/q6hitSEG.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/C6vwP-ay.js","/app/immutable/chunks/DU9Ky5os.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/DNWBkvFP.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/aos1n-nT.js","/app/immutable/chunks/ddhULx4L.js","/app/immutable/chunks/D-l6NLYy.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/DKzgMUBy.js","/app/immutable/chunks/DLIkH-mx.js","/app/immutable/chunks/aQy6qVNs.js","/app/immutable/chunks/M1o9ycAe.js","/app/immutable/chunks/C_Lje1cd.js","/app/immutable/chunks/DYxNs3ex.js","/app/immutable/chunks/-FMYDRBF.js","/app/immutable/chunks/BS8Oxiwq.js","/app/immutable/chunks/DqcBqbDI.js","/app/immutable/chunks/BMOaW1oW.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/Dj3ZrCzO.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/CwDNa5HL.js","/app/immutable/chunks/BJwkYtAi.js","/app/immutable/chunks/NDjLJa7E.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/-CHLoCv2.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/CXOFOhS1.js","/app/immutable/chunks/C-P--5-o.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/CgthA8iG.js","/app/immutable/chunks/BVKuTBgW.js","/app/immutable/chunks/XuyckbH_.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B3GLZuHB.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/CwT6KWlV.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/BTrGu4V2.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/Cf3lvx7n.js","/app/immutable/chunks/C2UUXRHQ.js","/app/immutable/chunks/DHbLiTwn.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css"])))=>i.map(i=>d[i]);
2
- import{_ as Z}from"./Y9-4hTF9.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"./D4gGvbme.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("./U5yX75Fv.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,71,72,73,74,75,76,77,78,79,80,81,82,83,84]),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/BBXjSeZz.js","/app/immutable/chunks/CBc9tLFK.js","/app/immutable/chunks/Y9-4hTF9.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/PTikn3lb.js","/app/immutable/chunks/ClH0Gega.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/tU_ZJtMw.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CO4a0yRH.js","/app/immutable/chunks/CrWhihJ_.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/Mc93eSxl.js","/app/immutable/chunks/CPKMQWOs.js","/app/immutable/chunks/BL2lJmRT.js","/app/immutable/chunks/cFbB-5Cu.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BZQDFgmp.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DOH10_LL.js","/app/immutable/chunks/CIpI7Qrh.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/5GYSXevc.js","/app/immutable/chunks/BLgIfeYS.js","/app/immutable/chunks/d7GMXNij.js","/app/immutable/chunks/Bv2KudWv.js","/app/immutable/chunks/q6hitSEG.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/C6vwP-ay.js","/app/immutable/chunks/DU9Ky5os.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/DNWBkvFP.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/aos1n-nT.js","/app/immutable/chunks/ddhULx4L.js","/app/immutable/chunks/D-l6NLYy.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/DjLQeEnc.js","/app/immutable/chunks/DLIkH-mx.js","/app/immutable/chunks/aQy6qVNs.js","/app/immutable/chunks/S3oleArH.js","/app/immutable/chunks/C_Lje1cd.js","/app/immutable/chunks/DYxNs3ex.js","/app/immutable/chunks/-FMYDRBF.js","/app/immutable/chunks/BS8Oxiwq.js","/app/immutable/chunks/DqcBqbDI.js","/app/immutable/chunks/BMOaW1oW.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/Dj3ZrCzO.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/CwDNa5HL.js","/app/immutable/chunks/BJwkYtAi.js","/app/immutable/chunks/NDjLJa7E.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/-CHLoCv2.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/CXOFOhS1.js","/app/immutable/chunks/C-P--5-o.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/CK_Ox9jk.js","/app/immutable/chunks/BT9wQ0Ce.js","/app/immutable/chunks/2rbh16KP.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CVXxjkW7.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/CBq6DlIt.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/BTrGu4V2.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/BIqnmVRf.js","/app/immutable/chunks/C9yvm97z.js","/app/immutable/chunks/s464WHxX.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css"])))=>i.map(i=>d[i]);
2
+ import{_ as Z}from"./Y9-4hTF9.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"./CBc9tLFK.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("./BBXjSeZz.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,71,72,73,74,75,76,77,78,79,80,81,82,83,84]),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};