@intent-hq/web 2.327.4 → 2.327.5

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 (141) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{BT5Z8Ufg.js → 0VyTRY65.js} +1 -1
  3. package/web/app/immutable/chunks/{CgpltzkY.js → 0jr8Bg7f.js} +1 -1
  4. package/web/app/immutable/chunks/{Bjrk7UMZ.js → 58w9tXyz.js} +1 -1
  5. package/web/app/immutable/chunks/{CPFrNISL.js → 6StQr10j.js} +1 -1
  6. package/web/app/immutable/chunks/{DgyZhpgg.js → 71Mja2wo.js} +1 -1
  7. package/web/app/immutable/chunks/{rDgjtPAw.js → 9cyklBMv.js} +2 -2
  8. package/web/app/immutable/chunks/{CZnfw8n4.js → B0FeUjOw.js} +1 -1
  9. package/web/app/immutable/chunks/{CBgs1jD4.js → B33BBg7L.js} +1 -1
  10. package/web/app/immutable/chunks/{CRinz0qf.js → B572BMbo.js} +1 -1
  11. package/web/app/immutable/chunks/{C8PcVt0F.js → B61Pw6nY.js} +1 -1
  12. package/web/app/immutable/chunks/{BAgeXgSf.js → B6KhV2Bg.js} +1 -1
  13. package/web/app/immutable/chunks/{CdbmwjaM.js → B78ZCJrO.js} +1 -1
  14. package/web/app/immutable/chunks/{D8POxNfK.js → B7vTVGVv.js} +1 -1
  15. package/web/app/immutable/chunks/{4mn3OQkh.js → B9eYUVR5.js} +1 -1
  16. package/web/app/immutable/chunks/{BLyZPAr5.js → BBJdulBO.js} +1 -1
  17. package/web/app/immutable/chunks/{D5Vbuf5Q.js → BF2dYTZa.js} +1 -1
  18. package/web/app/immutable/chunks/{CP2Kg1B4.js → BGviGCI9.js} +1 -1
  19. package/web/app/immutable/chunks/{BL9TmjaL.js → BJjlHQnx.js} +1 -1
  20. package/web/app/immutable/chunks/{C3Gi_9p3.js → BMyBy8MH.js} +1 -1
  21. package/web/app/immutable/chunks/{CUF2wY0B.js → BO-jThCd.js} +1 -1
  22. package/web/app/immutable/chunks/{FQUUYt8f.js → BTiFOdD0.js} +1 -1
  23. package/web/app/immutable/chunks/{BCc6fRgu.js → BWKO1fTV.js} +1 -1
  24. package/web/app/immutable/chunks/{B6hQw8HR.js → BZs8VpCk.js} +1 -1
  25. package/web/app/immutable/chunks/{C4xkBjNQ.js → Bb7N8KKo.js} +1 -1
  26. package/web/app/immutable/chunks/{CVCmU8cH.js → BbbZMK1A.js} +1 -1
  27. package/web/app/immutable/chunks/{R736-vzp.js → Bd3FOgJ5.js} +1 -1
  28. package/web/app/immutable/chunks/{DG3MtJwi.js → BfOD7ERB.js} +1 -1
  29. package/web/app/immutable/chunks/{DmQ8h8xi.js → Bg-whL5V.js} +1 -1
  30. package/web/app/immutable/chunks/{D86pbdSK.js → BgDq477e.js} +1 -1
  31. package/web/app/immutable/chunks/{CsQZrNPD.js → Bk8FW95r.js} +1 -1
  32. package/web/app/immutable/chunks/{gDHuvKO5.js → BlO4hQbr.js} +1 -1
  33. package/web/app/immutable/chunks/{BSVsWuXl.js → BlnCsgUT.js} +1 -1
  34. package/web/app/immutable/chunks/{DvzRlb0E.js → Bq3my5nc.js} +1 -1
  35. package/web/app/immutable/chunks/{PlbZiyMr.js → BtAXWfJQ.js} +1 -1
  36. package/web/app/immutable/chunks/{DrS3YtfK.js → BuvFVaAY.js} +2 -2
  37. package/web/app/immutable/chunks/{BtrIIAMB.js → ByCOW8do.js} +1 -1
  38. package/web/app/immutable/chunks/{DUGrMwWd.js → BzH_KBS3.js} +1 -1
  39. package/web/app/immutable/chunks/{BUsZHo0X.js → C2uKsJY1.js} +2 -2
  40. package/web/app/immutable/chunks/{Dk4Ddrsx.js → C3Zzd9P9.js} +1 -1
  41. package/web/app/immutable/chunks/{FyCAxxbB.js → C4GW1bio.js} +1 -1
  42. package/web/app/immutable/chunks/{95-CBX6k.js → C5wdd0eM.js} +1 -1
  43. package/web/app/immutable/chunks/{DRBvR0Tt.js → CC1lvkyY.js} +1 -1
  44. package/web/app/immutable/chunks/{DRLE5FVS.js → CDMQjeQI.js} +1 -1
  45. package/web/app/immutable/chunks/{BbOZc-at.js → CDuSWzGm.js} +1 -1
  46. package/web/app/immutable/chunks/{Bdhho7CC.js → CGyDAjHZ.js} +1 -1
  47. package/web/app/immutable/chunks/{BMtNlV8v.js → CIYx0ii6.js} +1 -1
  48. package/web/app/immutable/chunks/{ClIEAc52.js → CMVV4erq.js} +1 -1
  49. package/web/app/immutable/chunks/{Crtm1Tdw.js → CMWbuQ77.js} +1 -1
  50. package/web/app/immutable/chunks/{CmPULPQO.js → CP2MUsRz.js} +1 -1
  51. package/web/app/immutable/chunks/{CIJcws70.js → CTG5TYyy.js} +1 -1
  52. package/web/app/immutable/chunks/{A7QYlP8X.js → CTbAPBO1.js} +2 -2
  53. package/web/app/immutable/chunks/{sm9FgN6B.js → CVy7yS5O.js} +1 -1
  54. package/web/app/immutable/chunks/{DKDYIgLv.js → CWPMHNwU.js} +3 -3
  55. package/web/app/immutable/chunks/{D1EubvTh.js → CWRkcPxW.js} +2 -2
  56. package/web/app/immutable/chunks/{hua24XJh.js → CX1z_2lx.js} +1 -1
  57. package/web/app/immutable/chunks/{bqazsiqQ.js → CZHScKIK.js} +1 -1
  58. package/web/app/immutable/chunks/{C5PRf5_x.js → Cageks4o.js} +3 -3
  59. package/web/app/immutable/chunks/{Bs5pujY-.js → CeqDBCoX.js} +1 -1
  60. package/web/app/immutable/chunks/{CR7xGCmU.js → ChKWMNeW.js} +1 -1
  61. package/web/app/immutable/chunks/{BX9t7Lu-.js → Cnj-ocZi.js} +1 -1
  62. package/web/app/immutable/chunks/{DlTQCTDP.js → CoXtBEKL.js} +1 -1
  63. package/web/app/immutable/chunks/{BGT3aL1b.js → CoZvu7gw.js} +1 -1
  64. package/web/app/immutable/chunks/{CB_tD4hW.js → CrvlOH-I.js} +1 -1
  65. package/web/app/immutable/chunks/{BJqJJOp_.js → CsO2DeV8.js} +1 -1
  66. package/web/app/immutable/chunks/{BH7mKpum.js → CvDuI1Ad.js} +1 -1
  67. package/web/app/immutable/chunks/{Dk8ELDo2.js → CwBsjeRn.js} +1 -1
  68. package/web/app/immutable/chunks/{CRkupLLY.js → D-Xd8btl.js} +3 -3
  69. package/web/app/immutable/chunks/{e_7d0HhT.js → D0h0gCpu.js} +3 -3
  70. package/web/app/immutable/chunks/{DMv-E05P.js → D2YHDAng.js} +4 -4
  71. package/web/app/immutable/chunks/{B5JLqeOx.js → D2b0ISji.js} +1 -1
  72. package/web/app/immutable/chunks/{Ld9N5V0Z.js → D3HFxkuH.js} +1 -1
  73. package/web/app/immutable/chunks/{CRCP-bLi.js → D4cQTEB9.js} +1 -1
  74. package/web/app/immutable/chunks/{CtDsnagM.js → D4jYxNmQ.js} +3 -3
  75. package/web/app/immutable/chunks/{U2OaO8zU.js → D7pisHI7.js} +1 -1
  76. package/web/app/immutable/chunks/{D17qSIEz.js → D8kh7QqM.js} +1 -1
  77. package/web/app/immutable/chunks/{Bw4y3_Ol.js → D9NH4H5p.js} +1 -1
  78. package/web/app/immutable/chunks/{BS6nPK7B.js → D9t8LDcF.js} +1 -1
  79. package/web/app/immutable/chunks/{D9fDSLwb.js → DB8SI3db.js} +1 -1
  80. package/web/app/immutable/chunks/{CQNA0ds6.js → DEtQTkN_.js} +1 -1
  81. package/web/app/immutable/chunks/{Pw8-HxaI.js → DFEZ3HlX.js} +12 -12
  82. package/web/app/immutable/chunks/{DxGU3xpZ.js → DFGQ_Wfv.js} +1 -1
  83. package/web/app/immutable/chunks/{WKwDz9jQ.js → DFXvVPhW.js} +1 -1
  84. package/web/app/immutable/chunks/{gP4ZqKh0.js → DGtVq4eo.js} +1 -1
  85. package/web/app/immutable/chunks/{BxxGMnsj.js → DLxs6eHm.js} +1 -1
  86. package/web/app/immutable/chunks/{kw6HOG6J.js → DOMHFWTg.js} +2 -2
  87. package/web/app/immutable/chunks/{SP1g61ea.js → DPX7q3j0.js} +1 -1
  88. package/web/app/immutable/chunks/{BZKFinnt.js → DQ_XjzmE.js} +1 -1
  89. package/web/app/immutable/chunks/{C6bEmXfu.js → DR6SSU50.js} +4 -4
  90. package/web/app/immutable/chunks/{felZLd_I.js → DVrkIyN2.js} +1 -1
  91. package/web/app/immutable/chunks/{DV6D0Bkp.js → DaKr8JPs.js} +2 -2
  92. package/web/app/immutable/chunks/{5lVDKMGV.js → DbRrqEgU.js} +4 -4
  93. package/web/app/immutable/chunks/{KVLkeJBt.js → DfqvT9D7.js} +1 -1
  94. package/web/app/immutable/chunks/{UvxFr-I2.js → DgjMPJcg.js} +1 -1
  95. package/web/app/immutable/chunks/{CwW6ndDl.js → DkZvhlo2.js} +1 -1
  96. package/web/app/immutable/chunks/{DkHQqDIr.js → DlSyd7Ta.js} +1 -1
  97. package/web/app/immutable/chunks/{CVWsHMge.js → DlgmTqk6.js} +1 -1
  98. package/web/app/immutable/chunks/{Bc2kn6EH.js → Dq3wAazc.js} +1 -1
  99. package/web/app/immutable/chunks/{Z311vB9V.js → DqMdEldm.js} +1 -1
  100. package/web/app/immutable/chunks/{BRdBfY-O.js → DrQhi0x7.js} +4 -4
  101. package/web/app/immutable/chunks/{BA1UhUwc.js → Dv6-cB4g.js} +1 -1
  102. package/web/app/immutable/chunks/{ECTD8W-L.js → F0Vwotna.js} +1 -1
  103. package/web/app/immutable/chunks/{qH6ij_zT.js → FfF-YfjO.js} +1 -1
  104. package/web/app/immutable/chunks/{OY7xFhVZ.js → GkbL_5B-.js} +1 -1
  105. package/web/app/immutable/chunks/{CseMAxRT.js → HUDA8fiy.js} +1 -1
  106. package/web/app/immutable/chunks/{Dn7dutqt.js → MIydPOVw.js} +1 -1
  107. package/web/app/immutable/chunks/{Cjxd8cwf.js → O5KlKm48.js} +1 -1
  108. package/web/app/immutable/chunks/{PnXyzret.js → OsOeZocr.js} +2 -2
  109. package/web/app/immutable/chunks/{D3pCGnn6.js → Rp4RZapB.js} +1 -1
  110. package/web/app/immutable/chunks/{C5MuNtit.js → Tl1rpQ5s.js} +1 -1
  111. package/web/app/immutable/chunks/{NjepB5TE.js → ZxSCdpsg.js} +1 -1
  112. package/web/app/immutable/chunks/{0rLfviYO.js → aLLkObRk.js} +1 -1
  113. package/web/app/immutable/chunks/{DvSMiV5j.js → i2yMwGh_.js} +1 -1
  114. package/web/app/immutable/chunks/{B3GFeWXU.js → jgnoBIlD.js} +1 -1
  115. package/web/app/immutable/chunks/{CMR4YeKo.js → oE7MOocS.js} +1 -1
  116. package/web/app/immutable/chunks/{DMsh1yGi.js → pHsrJNld.js} +1 -1
  117. package/web/app/immutable/chunks/{Dv5hWj70.js → pLn5y1p2.js} +1 -1
  118. package/web/app/immutable/chunks/{Bxub7VY-.js → qaQGm9A7.js} +1 -1
  119. package/web/app/immutable/chunks/{DYU4YpuR.js → uSNf4PjE.js} +1 -1
  120. package/web/app/immutable/chunks/{BU_i_vpd.js → vmfD6HOP.js} +1 -1
  121. package/web/app/immutable/chunks/{CUNya7Ty.js → vxHpfx-7.js} +1 -1
  122. package/web/app/immutable/chunks/{WPm8oU1g.js → wQb33ERJ.js} +2 -2
  123. package/web/app/immutable/chunks/{BmIgxNuB.js → zNPAm_g8.js} +1 -1
  124. package/web/app/immutable/entry/{app.nL8LhceC.js → app.uZOa5xAD.js} +2 -2
  125. package/web/app/immutable/entry/start._vSBTu19.js +1 -0
  126. package/web/app/immutable/nodes/{0.DnTOWH22.js → 0.5BN29aF9.js} +1 -1
  127. package/web/app/immutable/nodes/{1.DdFwPgy2.js → 1.CScjxXfi.js} +1 -1
  128. package/web/app/immutable/nodes/{10.BodWJQlD.js → 10.DVkuwBxJ.js} +1 -1
  129. package/web/app/immutable/nodes/{14.Cch3Hlry.js → 14.CQFNVlAh.js} +1 -1
  130. package/web/app/immutable/nodes/{17.CR8Vf-gp.js → 17.N0O7ruOc.js} +2 -2
  131. package/web/app/immutable/nodes/{2.DJ8VmJpJ.js → 2.CahtYp3d.js} +4 -4
  132. package/web/app/immutable/nodes/{3.B0GEDD6l.js → 3.D_5wExma.js} +1 -1
  133. package/web/app/immutable/nodes/{4.C1EmG9sP.js → 4.JCAab1Hg.js} +1 -1
  134. package/web/app/immutable/nodes/{5.weYY_j2P.js → 5.piNO_yu5.js} +1 -1
  135. package/web/app/immutable/nodes/{6.BDlVx9Dk.js → 6.DXnvvORl.js} +1 -1
  136. package/web/app/immutable/nodes/{7.C0Ip3FSb.js → 7.Cd-oGu-r.js} +1 -1
  137. package/web/app/immutable/nodes/{8.CpQw4Gbe.js → 8.DhDtXFsS.js} +13 -13
  138. package/web/app/immutable/nodes/{9.DT0bh2W_.js → 9.C3bc0Vuy.js} +4 -4
  139. package/web/app/version.json +1 -1
  140. package/web/index.html +9 -9
  141. package/web/app/immutable/entry/start.DMMboC2Z.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CmPULPQO.js","/app/immutable/chunks/DMv-E05P.js","/app/immutable/chunks/CNdlzZOD.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BZKFinnt.js","/app/immutable/chunks/De3HYtL6.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BoIGV7s7.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D1Wd8yWC.js","/app/immutable/chunks/DIh4SQwA.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DrH3w3jB.js","/app/immutable/chunks/BIfN-lxi.js","/app/immutable/chunks/b0njYmMP.js","/app/immutable/chunks/9iFKJfkz.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/D3glRUn0.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CrN8CpnY.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/C9ruBEtx.js","/app/immutable/chunks/HVSUZ4Kq.js","/app/immutable/chunks/BL9TmjaL.js","/app/immutable/chunks/DhFS-yhc.js","/app/immutable/chunks/BOR1_TRO.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/BdQCA_Nv.js","/app/immutable/chunks/BBy57-xG.js","/app/immutable/chunks/VxpSEzE0.js","/app/immutable/chunks/evMM8bqV.js","/app/immutable/chunks/Bv_0taxh.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/WPm8oU1g.js","/app/immutable/chunks/Br_KUH7F.js","/app/immutable/chunks/DVe2mCXY.js","/app/immutable/chunks/kw6HOG6J.js","/app/immutable/chunks/EotFP58O.js","/app/immutable/chunks/BY8Jls8O.js","/app/immutable/chunks/OhUwMaQy.js","/app/immutable/chunks/CR1VVB-y.js","/app/immutable/chunks/C58HgKcj.js","/app/immutable/chunks/BJyBc51V.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/D8iLOeUT.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/4Zskc9_e.js","/app/immutable/chunks/C6DXM5lO.js","/app/immutable/chunks/Co3V5w5D.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/bkMlvHq9.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/Cds8-CeJ.js","/app/immutable/chunks/5fWnBOdu.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/CIJcws70.js","/app/immutable/chunks/DV6D0Bkp.js","/app/immutable/chunks/Crtm1Tdw.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CBgs1jD4.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/5lVDKMGV.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/B9xeURWe.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/BRdBfY-O.js","/app/immutable/chunks/C5PRf5_x.js","/app/immutable/chunks/CMR4YeKo.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css"])))=>i.map(i=>d[i]);
2
- import{_ as Z}from"./CNdlzZOD.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"./DMv-E05P.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("./CmPULPQO.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]),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/CP2MUsRz.js","/app/immutable/chunks/D2YHDAng.js","/app/immutable/chunks/CNdlzZOD.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DQ_XjzmE.js","/app/immutable/chunks/De3HYtL6.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BoIGV7s7.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D1Wd8yWC.js","/app/immutable/chunks/DIh4SQwA.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DrH3w3jB.js","/app/immutable/chunks/BIfN-lxi.js","/app/immutable/chunks/b0njYmMP.js","/app/immutable/chunks/9iFKJfkz.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/D3glRUn0.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CrN8CpnY.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/C9ruBEtx.js","/app/immutable/chunks/HVSUZ4Kq.js","/app/immutable/chunks/BJjlHQnx.js","/app/immutable/chunks/DhFS-yhc.js","/app/immutable/chunks/BOR1_TRO.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/BdQCA_Nv.js","/app/immutable/chunks/BBy57-xG.js","/app/immutable/chunks/VxpSEzE0.js","/app/immutable/chunks/evMM8bqV.js","/app/immutable/chunks/Bv_0taxh.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/wQb33ERJ.js","/app/immutable/chunks/Br_KUH7F.js","/app/immutable/chunks/DVe2mCXY.js","/app/immutable/chunks/DOMHFWTg.js","/app/immutable/chunks/EotFP58O.js","/app/immutable/chunks/BY8Jls8O.js","/app/immutable/chunks/OhUwMaQy.js","/app/immutable/chunks/CR1VVB-y.js","/app/immutable/chunks/C58HgKcj.js","/app/immutable/chunks/BJyBc51V.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/D8iLOeUT.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/4Zskc9_e.js","/app/immutable/chunks/C6DXM5lO.js","/app/immutable/chunks/Co3V5w5D.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/bkMlvHq9.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/Cds8-CeJ.js","/app/immutable/chunks/5fWnBOdu.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/CTG5TYyy.js","/app/immutable/chunks/DaKr8JPs.js","/app/immutable/chunks/CMWbuQ77.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B33BBg7L.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/DbRrqEgU.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/B9xeURWe.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/DrQhi0x7.js","/app/immutable/chunks/Cageks4o.js","/app/immutable/chunks/oE7MOocS.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css"])))=>i.map(i=>d[i]);
2
+ import{_ as Z}from"./CNdlzZOD.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"./D2YHDAng.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("./CP2MUsRz.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]),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 +1 @@
1
- import{b as s}from"./DMv-E05P.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
1
+ import{b as s}from"./D2YHDAng.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
@@ -1 +1 @@
1
- import{d as l,v as h,t as T}from"./WFvSJ9zU.js";import{Ig as c,uU as w}from"./BoIGV7s7.js";import{i as W,c as s,n as u,b as m}from"./WPm8oU1g.js";const E=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||E.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function A(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function C(n,t){return t.length>0&&A(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function I(n,t){return t?u(n,{state:t}):u(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const i=I(t,e),r={workspaceId:n,epoch:s(),startTabId:a};return await i,r}function y(n){return!n||W()}function b(n,t){if(s()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(y(n))return!1;const a=await S(n,t,e,o(c.state));return b(a,o(c.state))?(c.dispatch(R(n,e)),!0):!1}function*k(n,t,e){if(y(n))return!1;const a=o(yield*h(r=>r)),i=yield*l(S,n,t,e,a);return b(i,o(yield*h(r=>r)))?(yield*T(R(n,e)),!0):!1}function P(){m();const n=s(),t=o(c.state),e=p();return()=>s()===n&&o(c.state)===t&&p()===e}function _(n,t={}){return v(n,d(n,t.query),t.state)}function O(n,t={}){return k(n,d(n,t.query),t.state)}async function $(n){const t=f(n);t?await v(t,n,void 0):await u(n)}function*U(n){const t=f(n);t?yield*l(k,t,n,void 0):yield*l(u,n)}const N=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:P,navigateToAppRoute:$,navigateToAppRouteSaga:U,openAndShowWorkspace:_,showWorkspaceSaga:O,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,U as b,P as c,O as d,d as e,C as i,$ as n,_ as o,f as p,N as s,A as w};
1
+ import{d as l,v as h,t as T}from"./WFvSJ9zU.js";import{Ig as c,uU as w}from"./BoIGV7s7.js";import{i as W,c as s,n as u,b as m}from"./wQb33ERJ.js";const E=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||E.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function A(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function C(n,t){return t.length>0&&A(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function I(n,t){return t?u(n,{state:t}):u(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const i=I(t,e),r={workspaceId:n,epoch:s(),startTabId:a};return await i,r}function y(n){return!n||W()}function b(n,t){if(s()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(y(n))return!1;const a=await S(n,t,e,o(c.state));return b(a,o(c.state))?(c.dispatch(R(n,e)),!0):!1}function*k(n,t,e){if(y(n))return!1;const a=o(yield*h(r=>r)),i=yield*l(S,n,t,e,a);return b(i,o(yield*h(r=>r)))?(yield*T(R(n,e)),!0):!1}function P(){m();const n=s(),t=o(c.state),e=p();return()=>s()===n&&o(c.state)===t&&p()===e}function _(n,t={}){return v(n,d(n,t.query),t.state)}function O(n,t={}){return k(n,d(n,t.query),t.state)}async function $(n){const t=f(n);t?await v(t,n,void 0):await u(n)}function*U(n){const t=f(n);t?yield*l(k,t,n,void 0):yield*l(u,n)}const N=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:P,navigateToAppRoute:$,navigateToAppRouteSaga:U,openAndShowWorkspace:_,showWorkspaceSaga:O,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,U as b,P as c,O as d,d as e,C as i,$ as n,_ as o,f as p,N as s,A as w};