@layers-app/editor 0.7.14 → 0.7.16

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 (232) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +77 -1
  3. package/dist/index.js +15 -9
  4. package/dist/{layers.Cy9wbnQ_.js → layers.-fM6L_z3.js} +1 -1
  5. package/dist/{layers.DfG3tRlT.js → layers.0KANPDnB.js} +1 -1
  6. package/dist/{layers.BAdqSd14.js → layers.1Nv-nANB.js} +9 -6
  7. package/dist/layers.1bdyQGVP.js +8 -0
  8. package/dist/{layers.-X9qNtI0.js → layers.49H_5LNr.js} +1 -1
  9. package/dist/{layers.0QnhO3cX.js → layers.4HZb3jXk.js} +1 -1
  10. package/dist/{layers.B7C8glEs.js → layers.4RmaHEsu.js} +1 -1
  11. package/dist/{layers.DUOIs8ec.js → layers.5WzirB7G.js} +1 -1
  12. package/dist/{layers.mYMdjdeP.js → layers.5bSjIKfg.js} +1 -1
  13. package/dist/{layers.XOTQZA47.js → layers.7oLFJZ8l.js} +1 -1
  14. package/dist/{layers.DGIIreij.js → layers.7xkZRnuM.js} +1 -1
  15. package/dist/{layers.ij9MGpBd.js → layers.ABhWEnmQ.js} +1 -1
  16. package/dist/{layers.yY2NWKxb.js → layers.B-8gEV_E.js} +3 -3
  17. package/dist/{layers.veq4mAt0.js → layers.B-9QQMGw.js} +1 -1
  18. package/dist/{layers.C-bmfvyk.js → layers.B0sBopW9.js} +1 -1
  19. package/dist/{layers.WXLYhxqf.js → layers.B1ySJNCM.js} +1 -1
  20. package/dist/{layers.DGD6mx9J.js → layers.B2BhJZ0D.js} +1 -1
  21. package/dist/{layers.rn0Bkxub.js → layers.B2iVWMcm.js} +1 -1
  22. package/dist/{layers.xdl544Mg.js → layers.B6Va7v9s.js} +1 -1
  23. package/dist/layers.B82wcYq0.js +271 -0
  24. package/dist/{layers.22JoqgAd.js → layers.BAU0IeY7.js} +1 -1
  25. package/dist/layers.BCD7sjs8.js +1 -0
  26. package/dist/{layers.DrZpSfir.js → layers.BEUJQJGq.js} +1 -1
  27. package/dist/{layers.CjG55SV1.js → layers.BGDCJs-p.js} +1 -1
  28. package/dist/{layers.BSeksxsF.js → layers.BHz2k1im.js} +1 -1
  29. package/dist/{layers.D9jI383T.js → layers.BIM8NeWS.js} +1 -1
  30. package/dist/{layers.BWMvFWfx.js → layers.BIbdMSbX.js} +92 -89
  31. package/dist/{layers.DU1Z6xwA.js → layers.BJhjIY5r.js} +1 -1
  32. package/dist/{layers.DzvUE9IU.js → layers.BJmaj5SY.js} +1 -1
  33. package/dist/{layers.C6IUuxUg.js → layers.BKy18lBk.js} +1 -1
  34. package/dist/{layers.BlqAmRab.js → layers.BL3wEq7M.js} +1 -1
  35. package/dist/{layers.BL8Slaqh.js → layers.BLKD1Tiy.js} +1 -1
  36. package/dist/{layers.DCkth_87.js → layers.BNR6f37h.js} +1 -1
  37. package/dist/{layers.CSsken3p.js → layers.BNkwxNgt.js} +1 -1
  38. package/dist/layers.BOMC5c1j.js +2 -0
  39. package/dist/{layers.DDHH8Ki7.js → layers.BQL01Vq6.js} +1 -1
  40. package/dist/{layers.ClSl5FkE.js → layers.BQm21WlP.js} +1 -1
  41. package/dist/{layers.DnwVEVb6.js → layers.BRGRJfuK.js} +1 -1
  42. package/dist/{layers.DODwztxp.js → layers.BXDV2XaW.js} +1 -1
  43. package/dist/{layers.CgSj0b8m.js → layers.B_Vwa8Hx.js} +1 -1
  44. package/dist/{layers.DvNkBHkW.js → layers.B_jUVHTe.js} +1 -1
  45. package/dist/{layers.D-DrlFz3.js → layers.BakV9gnD.js} +1 -1
  46. package/dist/{layers.BkPRSah-.js → layers.BbbyE_Pc.js} +1 -1
  47. package/dist/{layers.C9Xu0pzY.js → layers.Bd6ptC9U.js} +1 -1
  48. package/dist/{layers.CSRIY7Db.js → layers.BeCuix4V.js} +1 -1
  49. package/dist/{layers.DPk5KZTZ.js → layers.BeFEsW5q.js} +1 -1
  50. package/dist/{layers.CX-X-Gjl.js → layers.BfVGjstp.js} +1 -1
  51. package/dist/{layers.DEnvYWSJ.js → layers.BgEbqAdb.js} +3 -3
  52. package/dist/{layers.CUlS_yZb.js → layers.Bk40urId.js} +1 -1
  53. package/dist/{layers.C1R4DTpt.js → layers.Blc4R7F2.js} +1 -1
  54. package/dist/{layers.CqJ4auoy.js → layers.Bny7BWT9.js} +1 -1
  55. package/dist/{layers.DtKOvFUG.js → layers.Bpnbfq-r.js} +1 -1
  56. package/dist/{layers.DESKvQDb.js → layers.BrbcqGdA.js} +11 -8
  57. package/dist/{layers.DXOEsMhP.js → layers.BvGgfImM.js} +7 -7
  58. package/dist/{layers.R9iXqhvZ.js → layers.BywviGiP.js} +1 -1
  59. package/dist/layers.C-_ynqvr.js +1 -0
  60. package/dist/{layers.CZecamMn.js → layers.C1actZbK.js} +1 -1
  61. package/dist/{layers.BGpJVuZ7.js → layers.C3DRx9On.js} +4 -4
  62. package/dist/{layers.DDMgyYWW.js → layers.C3SAUwXb.js} +1 -1
  63. package/dist/{layers.DqZKzpQJ.js → layers.C3yLkCio.js} +1 -1
  64. package/dist/{layers.CMjPOyDC.js → layers.C6fD5O8g.js} +1 -1
  65. package/dist/{layers.onYA4FK_.js → layers.C8YD8pwl.js} +1 -1
  66. package/dist/{layers.D0A9bTdp.js → layers.C92R-ENv.js} +1 -1
  67. package/dist/layers.C9QCrDzm.js +1 -0
  68. package/dist/{layers.y-mNp_mY.js → layers.C9_vX7IO.js} +3 -3
  69. package/dist/{layers.BhWi-YiK.js → layers.CA_fw2Dw.js} +1 -1
  70. package/dist/layers.CB61rfHO.js +1225 -0
  71. package/dist/{layers.CSAJceE-.js → layers.CCur6VEj.js} +2 -2
  72. package/dist/{layers.2IX7S1Ne.js → layers.CFLfRAu0.js} +2 -2
  73. package/dist/{layers.D7LO8_qu.js → layers.CFcHk-z5.js} +7 -4
  74. package/dist/{layers.BjXnNpjy.js → layers.CFmNZSAJ.js} +1 -1
  75. package/dist/{layers.BjT9zIca.js → layers.CGajZ1Yz.js} +1 -1
  76. package/dist/{layers.DTkH1S74.js → layers.CHhFVTiW.js} +1 -1
  77. package/dist/{layers.BtuGxcvy.js → layers.CJ1YRhUh.js} +1 -1
  78. package/dist/{layers.CC-mjtIn.js → layers.CJtE2LxP.js} +227 -224
  79. package/dist/{layers.6OxjWLLt.js → layers.CJyO2xrs.js} +1 -1
  80. package/dist/{layers.DiaAEdz7.js → layers.CMyb9_FE.js} +1 -1
  81. package/dist/{layers.ChiEFvH1.js → layers.COjckA33.js} +1 -1
  82. package/dist/{layers.CUIzGdvl.js → layers.CPJSmpbw.js} +1 -1
  83. package/dist/{layers.GRXQHK9T.js → layers.CQvaw3yb.js} +1 -1
  84. package/dist/{layers.CdOWqnL0.js → layers.CRht5Nqq.js} +15 -12
  85. package/dist/{layers.C4HJPVBU.js → layers.CSXAHvGG.js} +1 -1
  86. package/dist/{layers.DIzzE3Tu.js → layers.CTaitOnb.js} +1 -1
  87. package/dist/{layers.DbaFHCy4.js → layers.CV8UgwCq.js} +7 -7
  88. package/dist/{layers.BQVOCcfk.js → layers.CVJOismf.js} +1 -1
  89. package/dist/{layers.uRHZ0aIC.js → layers.CXWtqfTe.js} +10 -7
  90. package/dist/layers.CYPfnKfS.js +96 -0
  91. package/dist/{layers.BVp-UzdP.js → layers.CYdP1IhC.js} +1 -1
  92. package/dist/{layers.7N0zyBlr.js → layers.CYneLciB.js} +10 -7
  93. package/dist/layers.CZLVHOh5.js +8 -0
  94. package/dist/{layers.DD1RWqcn.js → layers.CbBTbZIx.js} +1 -1
  95. package/dist/layers.CcP6Z-gZ.js +118 -0
  96. package/dist/{layers.Cq2-BKrh.js → layers.CcTyCqqv.js} +1 -1
  97. package/dist/{layers.BeaxMOgL.js → layers.Cd3kGFCJ.js} +1 -1
  98. package/dist/{layers.CAqPK74t.js → layers.Ce7-wBOK.js} +1 -1
  99. package/dist/{layers.CsKWw66j.js → layers.Cf5sVqJX.js} +1 -1
  100. package/dist/{layers.IBGEcVWb.js → layers.CfISeAkt.js} +86 -84
  101. package/dist/{layers.B0ZaMH-w.js → layers.Cg3Hqyp6.js} +1 -1
  102. package/dist/{layers.C8ICL38U.js → layers.Cg60w1Fn.js} +7 -4
  103. package/dist/layers.Chd1p2rt.js +26645 -0
  104. package/dist/{layers.cdvIDYC9.js → layers.CiTNX3uh.js} +1 -1
  105. package/dist/{layers.CGJAaLCC.js → layers.CkwenT1M.js} +1 -1
  106. package/dist/{layers.aw_NogHa.js → layers.CnN8JfiX.js} +9 -6
  107. package/dist/{layers.C5rDnudy.js → layers.Coh6z7rV.js} +1 -1
  108. package/dist/{layers.Ctxg2Cns.js → layers.CpJSdiMb.js} +1 -1
  109. package/dist/{layers.B3qtRd0O.js → layers.Cryqj610.js} +8 -5
  110. package/dist/{layers.DHf80iUq.js → layers.Cs-83js7.js} +1 -1
  111. package/dist/{layers.CWNQxoa3.js → layers.CsivQuv1.js} +1 -1
  112. package/dist/{layers.i7luj17i.js → layers.Cud-IArB.js} +1 -1
  113. package/dist/{layers.C9C35vZh.js → layers.CwL02t3J.js} +1 -1
  114. package/dist/{layers.Bj0e0Txp.js → layers.CwsNJfmi.js} +1 -1
  115. package/dist/{layers.iXNwOFuH.js → layers.CxIhyFb7.js} +1 -1
  116. package/dist/{layers.CGDl8Y3X.js → layers.Cxh-oez0.js} +3 -3
  117. package/dist/{layers.BN3y45VD.js → layers.D-uio-rN.js} +50 -50
  118. package/dist/{layers.B_Bj48E_.js → layers.D0RX234F.js} +1 -1
  119. package/dist/{layers.BsB1DdQS.js → layers.D176Ljko.js} +1 -1
  120. package/dist/{layers.B2DSs9Ji.js → layers.D2cVaX5z.js} +14 -11
  121. package/dist/layers.D4Bw_BrO.js +1 -0
  122. package/dist/{layers.CQtEt7zf.js → layers.D8fFj0P_.js} +1 -1
  123. package/dist/{layers.CT-3O1Zp.js → layers.D9N3lSue.js} +6 -6
  124. package/dist/{layers.9OYX9BTO.js → layers.DAmxkO9p.js} +1 -1
  125. package/dist/{layers.Cx8zhv_Z.js → layers.DBwG7x-W.js} +1 -1
  126. package/dist/{layers.Cik344pE.js → layers.DDFbkCJT.js} +1 -1
  127. package/dist/{layers.DetNib1P.js → layers.DDnI7-13.js} +1 -1
  128. package/dist/{layers.fyqSWIpf.js → layers.DE6w34F3.js} +1 -1
  129. package/dist/{layers.C9htdpn0.js → layers.DEaAvR_W.js} +18 -15
  130. package/dist/{layers.q26A0Qat.js → layers.DEtMl_i3.js} +1 -1
  131. package/dist/{layers.CuoTMhDi.js → layers.DHNIckw6.js} +1 -1
  132. package/dist/layers.DHVcgZzL.js +257 -0
  133. package/dist/{layers.DsYHBjiX.js → layers.DHcbExrH.js} +3 -3
  134. package/dist/{layers.BeWhb2PD.js → layers.DIpDvY-A.js} +1 -1
  135. package/dist/{layers.BDn7_3gI.js → layers.DJM_OF_R.js} +1 -1
  136. package/dist/{layers.CpvwsKQg.js → layers.DLJtS0JJ.js} +1 -1
  137. package/dist/{layers.DWhWThjx.js → layers.DNJtYtN1.js} +1 -1
  138. package/dist/layers.DUlTmlus.js +213 -0
  139. package/dist/{layers.DEeymyv-.js → layers.DUutOP8h.js} +1 -1
  140. package/dist/{layers.CnuHu2j-.js → layers.DVWaIKgr.js} +9 -6
  141. package/dist/{layers.zFiSx77k.js → layers.D_WwW4Fn.js} +1 -1
  142. package/dist/{layers.r1oGCHIb.js → layers.D_fPGQ6i.js} +1 -1
  143. package/dist/{layers.BPPjbnzx.js → layers.D_faABvp.js} +8 -8
  144. package/dist/{layers.BXdj6yJ_.js → layers.DaIprEGs.js} +1 -1
  145. package/dist/{layers.GuA-f3Fd.js → layers.Db0NyGA-.js} +1 -1
  146. package/dist/{layers.C1sfm6_G.js → layers.DdMy9cRx.js} +7 -7
  147. package/dist/{layers.BDfBrD7E.js → layers.De35CioU.js} +1 -1
  148. package/dist/{layers.XbybLjbV.js → layers.DgO3Q5mW.js} +1 -1
  149. package/dist/{layers.6pi-7FpZ.js → layers.Di-PcJK6.js} +1 -1
  150. package/dist/{layers.DT6ts3Lq.js → layers.DjCXWv2m.js} +1 -1
  151. package/dist/{layers.BV-WBvAx.js → layers.Dk2S8boy.js} +1 -1
  152. package/dist/{layers.C8rmowXt.js → layers.DkBjWcDH.js} +8 -5
  153. package/dist/{layers.Bja9USss.js → layers.DnRaD217.js} +3229 -3812
  154. package/dist/{layers.C_NCqk3A.js → layers.DnvnGxUC.js} +1 -1
  155. package/dist/{layers.DMPkFzLm.js → layers.DrarpmaN.js} +7 -4
  156. package/dist/{layers.B99blaPV.js → layers.DukGouVT.js} +1 -1
  157. package/dist/{layers.z2EyNDzq.js → layers.DvYYNhUp.js} +1 -1
  158. package/dist/layers.Dv_6xN7s.js +2 -0
  159. package/dist/layers.DwWUZK6s.js +129 -0
  160. package/dist/{layers.B0_-fpRl.js → layers.DwzO2zcv.js} +1 -1
  161. package/dist/{layers.D28bJoE-.js → layers.DzD-lWXV.js} +8 -5
  162. package/dist/{layers.D7Q_zPEC.js → layers.E0TLXdrR.js} +1 -1
  163. package/dist/{layers.CVzbKWdE.js → layers.EcqLW9Mh.js} +1 -1
  164. package/dist/{layers.Bvfp0Nmg.js → layers.F4d4ILBH.js} +92 -89
  165. package/dist/{layers.2by9IXM4.js → layers.G3enfHRT.js} +1 -1
  166. package/dist/{layers.Cby_J4tz.js → layers.HFONz6O9.js} +4 -4
  167. package/dist/{layers.BYjeK5lC.js → layers.IUqwmZRd.js} +3 -3
  168. package/dist/{layers._khcyUP2.js → layers.IbJq0D6U.js} +1 -1
  169. package/dist/{layers.BCDnb0N-.js → layers.Ic3KgoPg.js} +1 -1
  170. package/dist/{layers.BqkaTRiN.js → layers.JNgL8WWu.js} +1 -1
  171. package/dist/{layers.Dbfo-Mxi.js → layers.KT-QFgdb.js} +1 -1
  172. package/dist/{layers.C2K6HYGs.js → layers.LCfVvo3T.js} +1 -1
  173. package/dist/{layers.C5C--S7F.js → layers.LR-nMBU_.js} +8 -5
  174. package/dist/layers.Qt2qr0-t.js +76 -0
  175. package/dist/{layers.Cc-gn7gB.js → layers.SCsPWeXb.js} +1 -1
  176. package/dist/{layers.B22UDcHF.js → layers.U4NCf2-l.js} +3 -3
  177. package/dist/{layers.Bs-R6Tci.js → layers.UewvnK33.js} +1 -1
  178. package/dist/{layers.Dgs5zjQ2.js → layers.VfVZmEbK.js} +1 -1
  179. package/dist/{layers.C0gnH54v.js → layers.Vh-KvhZg.js} +1 -1
  180. package/dist/{layers.DMuPzY-u.js → layers.Y3D9xjCC.js} +1 -1
  181. package/dist/{layers.CpqRjGMc.js → layers.YT6D6D2x.js} +1 -1
  182. package/dist/{layers.9IDD8j9_.js → layers._y8hExIw.js} +9 -6
  183. package/dist/layers.a8-4vDzD.js +22 -0
  184. package/dist/{layers.r-FJNoLD.js → layers.aGzHUJ1W.js} +4 -4
  185. package/dist/{layers.DthRbCv5.js → layers.ck9pUJ0W.js} +1 -1
  186. package/dist/{layers.D4UrMXbo.js → layers.d3HoUueQ.js} +1 -1
  187. package/dist/layers.dWB4bggP.js +1 -0
  188. package/dist/{layers.B73Yr95f.js → layers.dh8xLSwh.js} +1 -1
  189. package/dist/{layers.CSK416nt.js → layers.eT_ZPmHS.js} +1 -1
  190. package/dist/{layers.BP24jkgh.js → layers.fumrrA0i.js} +3 -3
  191. package/dist/{layers.CGl1u7pk.js → layers.gVfRcFrJ.js} +1 -1
  192. package/dist/{layers.QBVsuaas.js → layers.js7-Kn9p.js} +1 -1
  193. package/dist/{layers.DOUCIqoc.js → layers.kW7XFPN_.js} +1 -1
  194. package/dist/layers.mobYTQXI.js +1 -0
  195. package/dist/{layers.Bv3OpQrw.js → layers.mvotlTNZ.js} +1 -1
  196. package/dist/{layers.CezXcjt9.js → layers.n1dibO8I.js} +1 -1
  197. package/dist/layers.nRPZ1e3g.js +1 -0
  198. package/dist/layers.o2u1uDM3.js +1 -0
  199. package/dist/layers.oJ31-KOl.js +6 -0
  200. package/dist/{layers.DutikNub.js → layers.ojcNGNgi.js} +1 -1
  201. package/dist/{layers.DVUFJXJo.js → layers.otxU0wtq.js} +1 -1
  202. package/dist/layers.rE9xnPLC.js +1 -0
  203. package/dist/{layers.CmskE3Nw.js → layers.s0KLXd5N.js} +1 -1
  204. package/dist/{layers.tKJ10KbX.js → layers.sqH5TpK8.js} +1 -1
  205. package/dist/{layers.CxFlH365.js → layers.t_MFWlU6.js} +1 -1
  206. package/dist/{layers.CkxEIj3s.js → layers.xrt74v23.js} +1 -1
  207. package/dist/{layers.Dud3FBxt.js → layers.zNb0110W.js} +1 -1
  208. package/package.json +24 -23
  209. package/dist/layers.-Q9WCY74.js +0 -6
  210. package/dist/layers.8wTij37S.js +0 -8
  211. package/dist/layers.B60kgPJZ.js +0 -1
  212. package/dist/layers.BH61ZZfU.js +0 -2
  213. package/dist/layers.BRJuFCn5.js +0 -48033
  214. package/dist/layers.BVbLQwxt.js +0 -1
  215. package/dist/layers.BasyDpwP.js +0 -1
  216. package/dist/layers.Bco8gKSk.js +0 -74
  217. package/dist/layers.BeqIZCWe.js +0 -8
  218. package/dist/layers.C5S1nV4u.js +0 -96
  219. package/dist/layers.C6pyq4lQ.js +0 -2
  220. package/dist/layers.CUBTt-Ee.js +0 -1
  221. package/dist/layers.DPBZFzc4.js +0 -118
  222. package/dist/layers.DQhxHnK5.js +0 -257
  223. package/dist/layers.DYEpzKpb.js +0 -1
  224. package/dist/layers.Dhe3R-k1.js +0 -1
  225. package/dist/layers.DjH3OR52.js +0 -208
  226. package/dist/layers.DrLCcq8n.js +0 -1
  227. package/dist/layers.SIyOpPN0.js +0 -1
  228. package/dist/layers.T5uHQrKR.js +0 -198
  229. package/dist/layers.Zx0AnCjx.js +0 -19
  230. package/dist/layers.nOigKEQ8.js +0 -304
  231. package/dist/layers.oGiyFR7t.js +0 -1
  232. package/dist/layers.uZz7bXZN.js +0 -1359
@@ -1,4 +1,4 @@
1
- import "./layers.BPPjbnzx.js";
1
+ import "./layers.D_faABvp.js";
2
2
  var e = { paste: "Coller", pasteAsPlaintext: "Coller comme texte brut", pasteCharts: "Coller les graphiques", selectAll: "Tout sélectionner", multiSelect: "Ajouter l'élément à la sélection", moveCanvas: "Déplacer le canevas", cut: "Couper", copy: "Copier", copyAsPng: "Copier dans le presse-papier en PNG", copyAsSvg: "Copier dans le presse-papier en SVG", copyText: "Copier dans le presse-papier en tant que texte", copySource: "Copier la source dans le presse-papiers", convertToCode: "Convertir en code", bringForward: "Envoyer vers l'avant", sendToBack: "Déplacer à l'arrière-plan", bringToFront: "Mettre au premier plan", sendBackward: "Reculer d'un plan", delete: "Supprimer", copyStyles: "Copier les styles", pasteStyles: "Coller les styles", stroke: "Trait", background: "Arrière-plan", fill: "Remplissage", strokeWidth: "Largeur du contour", strokeStyle: "Style du trait", strokeStyle_solid: "Continu", strokeStyle_dashed: "Tirets", strokeStyle_dotted: "Pointillés", sloppiness: "Style de tracé", opacity: "Transparence", textAlign: "Alignement du texte", edges: "Angles", sharp: "Pointus", round: "Arrondis", arrowheads: "Extrémités", arrowhead_none: "Sans", arrowhead_arrow: "Flèche", arrowhead_bar: "Barre", arrowhead_circle: "Cercle", arrowhead_circle_outline: "Contour du cercle", arrowhead_triangle: "Triangle", arrowhead_triangle_outline: "Triangle (contour)", arrowhead_diamond: "Losange", arrowhead_diamond_outline: "", fontSize: "Taille de la police", fontFamily: "Police", addWatermark: 'Ajouter "Réalisé avec Excalidraw"', handDrawn: "À main levée", normal: "Normale", code: "Code", small: "Petite", medium: "Moyenne", large: "Grande", veryLarge: "Très grande", solid: "Solide", hachure: "Hachures", zigzag: "Zigzag", crossHatch: "Hachures croisées", thin: "Fine", bold: "Épaisse", left: "À gauche", center: "Au centre", right: "À droite", extraBold: "Très épaisse", architect: "Architecte", artist: "Artiste", cartoonist: "Caricaturiste", fileTitle: "Nom du fichier", colorPicker: "Sélecteur de couleur", canvasColors: "Utilisé sur la zone de dessin", canvasBackground: "Arrière-plan du canevas", drawingCanvas: "Zone de dessin", layers: "Disposition", actions: "Actions", language: "Langue", liveCollaboration: "Collaboration en direct...", duplicateSelection: "Dupliquer", untitled: "Sans-titre", name: "Nom", yourName: "Votre nom", madeWithExcalidraw: "Fait avec Excalidraw", group: "Grouper la sélection", ungroup: "Dégrouper la sélection", collaborators: "Collaborateurs", showGrid: "Afficher la grille", addToLibrary: "Ajouter à la bibliothèque", removeFromLibrary: "Supprimer de la bibliothèque", libraryLoadingMessage: "Chargement de la bibliothèque…", libraries: "Parcourir les bibliothèques", loadingScene: "Chargement de la scène…", align: "Alignement", alignTop: "Aligner en haut", alignBottom: "Aligner en bas", alignLeft: "Aligner à gauche", alignRight: "Aligner à droite", centerVertically: "Centrer verticalement", centerHorizontally: "Centrer horizontalement", distributeHorizontally: "Répartir horizontalement", distributeVertically: "Répartir verticalement", flipHorizontal: "Retourner horizontalement", flipVertical: "Retourner verticalement", viewMode: "Mode présentation", share: "Partager", showStroke: "Afficher le sélecteur de couleur de trait", showBackground: "Afficher le sélecteur de couleur de fond", toggleTheme: "Changer le thème", personalLib: "Bibliothèque personnelle", excalidrawLib: "Bibliothèque Excalidraw", decreaseFontSize: "Diminuer la taille de police", increaseFontSize: "Augmenter la taille de la police", unbindText: "Dissocier le texte", bindText: "Associer le texte au conteneur", createContainerFromText: "Encadrer le texte dans un conteneur", link: { edit: "Modifier le lien", editEmbed: "Éditer le lien & intégrer", create: "Ajouter un lien", createEmbed: "Créer un lien & intégrer", label: "Lien", labelEmbed: "Lier & intégrer", empty: "Aucun lien défini" }, lineEditor: { edit: "Modifier la ligne", exit: "Quitter l'éditeur de ligne" }, elementLock: { lock: "Verrouiller", unlock: "Déverrouiller", lockAll: "Tout verrouiller", unlockAll: "Tout déverrouiller" }, statusPublished: "Publié", sidebarLock: "Maintenir la barre latérale ouverte", selectAllElementsInFrame: "Sélectionner tous les éléments du cadre", removeAllElementsFromFrame: "Supprimer tous les éléments du cadre", eyeDropper: "Choisir la couleur depuis la toile", textToDiagram: "Texte vers Diagramme", prompt: "Consignes" }, r = { noItems: "Aucun élément n'a encore été ajouté ...", hint_emptyLibrary: "Sélectionnez un élément sur le canevas pour l'ajouter ici ou installez une bibliothèque depuis le dépôt public, ci-dessous.", hint_emptyPrivateLibrary: "Sélectionnez un élément sur le canevas pour l'ajouter ici." }, i = { clearReset: "Réinitialiser le canevas", exportJSON: "Exporter comme fichier", exportImage: "Exporter l'image...", export: "Enregistrer sous...", copyToClipboard: "Copier dans le presse-papier", save: "Enregistrer dans le fichier actuel", saveAs: "Enregistrer sous", load: "Ouvrir", getShareableLink: "Obtenir un lien de partage", close: "Fermer", selectLanguage: "Choisir une langue", scrollBackToContent: "Revenir au contenu", zoomIn: "Zoomer", zoomOut: "Dézoomer", resetZoom: "Réinitialiser le zoom", menu: "Menu", done: "Terminé", edit: "Modifier", undo: "Annuler", redo: "Rétablir", resetLibrary: "Réinitialiser la bibliothèque", createNewRoom: "Créer une nouvelle salle", fullScreen: "Plein écran", darkMode: "Mode sombre", lightMode: "Mode clair", zenMode: "Mode zen", objectsSnapMode: "Aimanter aux objets", exitZenMode: "Quitter le mode zen", cancel: "Annuler", clear: "Effacer", remove: "Supprimer", embed: "Activer/Désactiver l'intégration", publishLibrary: "Publier", submit: "Envoyer", confirm: "Confirmer", embeddableInteractionButton: "Cliquez pour interagir" }, o = { clearReset: "L'intégralité du canevas va être effacée. Êtes-vous sûr ?", couldNotCreateShareableLink: "Impossible de créer un lien de partage.", couldNotCreateShareableLinkTooBig: "Impossible de créer un lien de partage : la scène est trop volumineuse", couldNotLoadInvalidFile: "Impossible de charger un fichier invalide", importBackendFailed: "L'importation depuis le serveur a échoué.", cannotExportEmptyCanvas: "Impossible d'exporter un canevas vide.", couldNotCopyToClipboard: "Impossible de copier dans le presse-papiers.", decryptFailed: "Les données n'ont pas pu être déchiffrées.", uploadedSecurly: "Le téléchargement a été sécurisé avec un chiffrement de bout en bout, ce qui signifie que ni Excalidraw ni personne d'autre ne peut en lire le contenu.", loadSceneOverridePrompt: "Le chargement d'un dessin externe remplacera votre contenu actuel. Souhaitez-vous continuer ?", collabStopOverridePrompt: `Arrêter la session écrasera votre précédent dessin stocké localement. Êtes-vous sûr·e ?
3
3
 
4
4
  (Si vous voulez garder votre dessin local, fermez simplement l'onglet du navigateur à la place.)`, errorAddingToLibrary: "Impossible d'ajouter l'élément à la bibliothèque", errorRemovingFromLibrary: "Impossible de retirer l'élément de la bibliothèque", confirmAddLibrary: "Cela va ajouter {{numShapes}} forme(s) à votre bibliothèque. Êtes-vous sûr·e ?", imageDoesNotContainScene: "Cette image ne semble pas contenir de données de scène. Avez-vous activé l'intégration de scène lors de l'exportation ?", cannotRestoreFromImage: "Impossible de restaurer la scène depuis ce fichier image", invalidSceneUrl: "Impossible d'importer la scène depuis l'URL fournie. Elle est soit incorrecte, soit ne contient pas de données JSON Excalidraw valides.", resetLibrary: "Cela va effacer votre bibliothèque. Êtes-vous sûr·e ?", removeItemsFromsLibrary: "Supprimer {{count}} élément(s) de la bibliothèque ?", invalidEncryptionKey: "La clé de chiffrement doit comporter 22 caractères. La collaboration en direct est désactivée.", collabOfflineWarning: `Aucune connexion internet disponible.
@@ -1,9 +1,12 @@
1
- import { n as Et, o as mt, a as gt, s as kt, b as xt, c as Rt, g as Z, l as V, d as rt, u as Ot, e as bt, q as Nt, r as Tt, X as At } from "./layers.Bja9USss.js";
1
+ import { n as Et, o as mt, a as gt, s as kt, b as xt, c as Rt, g as Z, l as V, d as rt, u as Ot, e as bt, q as Nt, r as Tt, X as At } from "./layers.DnRaD217.js";
2
2
  import { G as Mt } from "./layers.BJDrjORS.js";
3
3
  import "lodash-es";
4
4
  import { l as St } from "./layers.D4T8fTcj.js";
5
- import "./layers.BPPjbnzx.js";
6
- import { l as wt } from "./layers.BV-WBvAx.js";
5
+ import "./layers.D_faABvp.js";
6
+ import "lodash-es/memoize.js";
7
+ import "lodash-es/merge.js";
8
+ import "lodash-es/isEmpty.js";
9
+ import { l as wt } from "./layers.Dk2S8boy.js";
7
10
  const It = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
8
11
  function Dt(t) {
9
12
  return typeof t == "string" && It.test(t);
@@ -920,12 +923,12 @@ const le = {
920
923
  stroke-width: 1;
921
924
  }
922
925
 
923
- `, he = ce, Ee = {
926
+ `, he = ce, ke = {
924
927
  parser: Ut,
925
928
  db: qt,
926
929
  renderer: le,
927
930
  styles: he
928
931
  };
929
932
  export {
930
- Ee as diagram
933
+ ke as diagram
931
934
  };
@@ -1,4 +1,4 @@
1
- import "./layers.BPPjbnzx.js";
1
+ import "./layers.D_faABvp.js";
2
2
  var B = { paste: "ஒட்டு", pasteAsPlaintext: "அலங்காரமின்றி ஒட்டு", pasteCharts: "விளக்கப்படங்களை ஒட்டு", selectAll: "எல்லாம் தேர்ந்தெடு", multiSelect: "உறுப்பைத் தெரிவில் சேர்", moveCanvas: "கித்தானை நகர்த்து", cut: "வெட்டு", copy: "நகலெடு", copyAsPng: "நகலகத்திற்கு PNG ஆக நகலெடு", copyAsSvg: "நகலகத்திற்கு SVG ஆக நகலெடு", copyText: "நகலகத்திற்கு உரையாக நகலெடு", copySource: "", convertToCode: "", bringForward: "முன்நோக்கி கொண்டுவா", sendToBack: "பின்னே அனுப்பு", bringToFront: "முன்னே கொண்டுவா", sendBackward: "பின்நோக்கி அனுப்பு", delete: "அழி", copyStyles: "ஒயில்களை நகலெடு", pasteStyles: "ஒயில்களை ஒட்டு", stroke: "கீறல்", background: "பின்புலம்", fill: "நிரப்பல்", strokeWidth: "கீறல் அகலம்", strokeStyle: "கீறல் ஒயில்", strokeStyle_solid: "திடமான", strokeStyle_dashed: "கோடிட்ட", strokeStyle_dotted: "புள்ளியிட்ட", sloppiness: "அசட்டுத்தனம்", opacity: "ஒளிபுகாவியல்பு", textAlign: "உரைச் சீரமைப்பு", edges: "விளிம்புகள்", sharp: "கூர்மை", round: "வட்டம்", arrowheads: "அம்புத்தலைகள்", arrowhead_none: "ஏதுமில்லை", arrowhead_arrow: "அம்பு", arrowhead_bar: "பட்டை", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "முக்கோணம்", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "எழுத்துரு அளவு", fontFamily: "எழுத்துரு குடும்பம்", addWatermark: '"எக்ஸ்கேலிட்ரா கொண்டு ஆனது"-ஐச் சேர்', handDrawn: "கையால்-வரைந்த", normal: "இயல்பு", code: "குறியீடு", small: "சிறிய", medium: "நடுத்தரமான", large: "பெரிய", veryLarge: "மிகப் பெரிய", solid: "திடமான", hachure: "மலைக்குறிக்கோடு", zigzag: "கோணல்மாணல்", crossHatch: "குறுக்குகதவு", thin: "மெல்லிய", bold: "பட்டை", left: "இடது", center: "மையம்", right: "வலது", extraBold: "கூடுதல் பட்டை", architect: "கட்டடக்கலைஞர்", artist: "கலைஞர்", cartoonist: "கேலிச்சித்திர ஓவியர்", fileTitle: "கோப்புப் பெயர்", colorPicker: "நிறத் தேர்வி", canvasColors: "கித்தானில் பயன்படுத்தப்பட்டது", canvasBackground: "கித்தான் பின்னணி", drawingCanvas: "கித்தான் வரைகிறது", layers: "அடுக்குகள்", actions: "செயல்கள்", language: "மொழி", liveCollaboration: "நேரடி கூட்டுப்பணி...", duplicateSelection: "நகலாக்கு", untitled: "தலைப்பற்றது", name: "பெயர்", yourName: "உங்கள் பெயர்", madeWithExcalidraw: "எக்ஸ்கேலிட்ரா கொண்டு ஆனது", group: "தேர்ந்ததை ஒன்றிணை", ungroup: "தேர்ந்ததைப் பிரி", collaborators: "கூட்டுப்பணியினர்", showGrid: "கட்டதைக் காட்டு", addToLibrary: "நூலகத்தில் சேர்", removeFromLibrary: "நூலகத்திலிருந்து நீக்கு", libraryLoadingMessage: "நூலகத்தை ஏற்றுகிறது…", libraries: "நூலகங்களை உலாவு", loadingScene: "காட்சியை ஏற்றுகிறது…", align: "சீரமை", alignTop: "மேலே சீரமை", alignBottom: "கீழே சீரமை", alignLeft: "இடதில் சீரமை", alignRight: "வலதில் சீரமை", centerVertically: "செங்குத்தாக மையப்படுத்து", centerHorizontally: "கிடைமட்டமாக மையப்படுத்து", distributeHorizontally: "கிடைமட்டமாக விநியோகி", distributeVertically: "செங்குத்தாக விநியோகி", flipHorizontal: "கிடைமட்டமாக புரட்டு", flipVertical: "செங்குத்தாக புரட்டு", viewMode: "பார்வை பயன்முறை", share: "பகிர்", showStroke: "கீறல் நிற எடுப்பானைக் காட்டு", showBackground: "பின்னணி நிற எடுப்பானைக் காட்டு", toggleTheme: "தோற்றத்தை நிலைமாற்று", personalLib: "தனக்குரிய நூலகம்", excalidrawLib: "எக்ஸ்கேலிட்ரா நூலகம்", decreaseFontSize: "எழுத்துரு அளவைக் குறை", increaseFontSize: "எழுத்துரு அளவை அதிகரி", unbindText: "உரையைப் பிணைவவிழ்", bindText: "உரையைக் கொள்கலனுக்குப் பிணை", createContainerFromText: "உரையைக் கொள்கலனுள் சுருட்டு", link: { edit: "தொடுப்பைத் திருத்து", editEmbed: "", create: "தொடுப்பைப் படை", createEmbed: "", label: "தொடுப்பு", labelEmbed: "", empty: "" }, lineEditor: { edit: "தொடுப்பைத் திருத்து", exit: "வரி திருத்தியிலிருந்து வெளியேறு" }, elementLock: { lock: "பூட்டு", unlock: "பூட்டவிழ்", lockAll: "எல்லாம் பூட்டு", unlockAll: "எல்லாம் பூட்டவிழ்" }, statusPublished: "வெளியிடப்பட்டது", sidebarLock: "பக்கப்பட்டையைத் திறந்தே வை", selectAllElementsInFrame: "", removeAllElementsFromFrame: "", eyeDropper: "கித்தானிலிருந்து நிறம் தேர்ந்தெடு", textToDiagram: "", prompt: "" }, u = { noItems: "இதுவரை உருப்படிகள் சேரக்கப்படவில்லை...", hint_emptyLibrary: "கித்தானிலுள்ள உருப்படியை இங்குச் சேர்க்க தேர்ந்தெடு, அல்லது கீழுள்ள பொது களஞ்சியத்திலிருந்து நூலகத்தை நிறுவு.", hint_emptyPrivateLibrary: "கித்தானிலுள்ள உருப்படியை இங்குச் சேர்க்க தேர்ந்தெடு." }, C = { clearReset: "கித்தானை அகரமாக்கு", exportJSON: "கோப்புக்கு ஏற்றுமதிசெய்", exportImage: "படத்தை ஏற்றுமதிசெய்...", export: "இதில் சேமி...", copyToClipboard: "நகலகத்திற்கு நகலெடு", save: "தற்போதைய கோப்புக்குச் சேமி", saveAs: "இப்படி சேமி", load: "திற", getShareableLink: "பகிரக்கூடிய தொடுப்பைப் பெறு", close: "மூடு", selectLanguage: "மொழியைத் தேர்ந்தெடு", scrollBackToContent: "உருட்டி உள்ளடக்கத்துக்குத் திரும்பு", zoomIn: "பெரிதாக்கு", zoomOut: "சிறிதாக்கு", resetZoom: "உருவளவை அகரமாக்கு", menu: "சிறுபட்டி", done: "முடிந்தது", edit: "திருத்து", undo: "செயல்தவிர்", redo: "மீண்டும்செய்", resetLibrary: "நூலகத்தை அகரமாக்கு", createNewRoom: "புதிய அறையை உருவாக்கு", fullScreen: "முழுத் திரை", darkMode: "கருமை பயன்முறை", lightMode: "வெளிர்ந்த பயன்முறை", zenMode: "ஜென் பயன்முறை", objectsSnapMode: "", exitZenMode: "ஜென் பயன்முறையை விலகு", cancel: "ரத்துசெய்", clear: "துடை", remove: "நீக்கு", embed: "", publishLibrary: "பிரசுரி", submit: "சமர்ப்பி", confirm: "உறுதிசெய்", embeddableInteractionButton: "" }, A = { clearReset: "இது முழு கித்தானையும் துடைக்கும். நீங்கள் உறுதியா?", couldNotCreateShareableLink: "பகிரக்கூடிய தொடுப்பை உருவாக்க முடியவில்லை.", couldNotCreateShareableLinkTooBig: "பகிரக்கூடிய தொடுப்பை உருவாக்க முடியவில்லை: காட்சி மிகப்பெரிதாக உள்ளது", couldNotLoadInvalidFile: "செல்லாத கோப்பை ஏற்ற முடியவில்லை", importBackendFailed: "தேகத்திலிருந்து இறக்குமதி தோல்வி.", cannotExportEmptyCanvas: "காலியான கித்தானை ஏற்றுமதிசெய்ய முடியாது.", couldNotCopyToClipboard: "நகலகத்திற்கு நகலெடுக்க முடியவில்லை.", decryptFailed: "தரவை மறைநீக்க முடியவில்லை.", uploadedSecurly: "பதிவேற்றம் இருமுனை மறையாகத்தால் பாதுகாக்கப்பட்டுள்ளது, எனவே எக்ஸ்கேலிட்ரா சேவையகமும் மூன்றாம் தரப்பினரும் உள்ளடக்கத்தை வாசிக்கமுடியாது.", loadSceneOverridePrompt: "வெளிப்புறச்சித்திரமேற்றல் இருக்கிற உள்ளடக்கத்தை இடங்கொள்ளும். தொடர விருப்பமா?", collabStopOverridePrompt: `அமர்வை நிறுத்துதல் முன்னர் அகமாக தேக்கிய உம் சித்திரத்தை மேலெழுதும். நீங்கள் உறுதியா?
3
3
 
4
4
  (உம் அக சித்திரத்தை வைக்கவேண்டுமெனில், சும்மா உலாவி தாவலை மூடுக அதற்குபதிலாக.)`, errorAddingToLibrary: "உருப்படியை நூலகத்தில் சேர்க்க இயலா", errorRemovingFromLibrary: "உருப்படியை நூலகத்திலிருந்து நீக்க இயலா", confirmAddLibrary: "இதனால் {{numShapes}} வடிவம்(கள்) உம் நூலகத்தில் சேரும். நீங்கள் உறுதியா?", imageDoesNotContainScene: "இப்படத்தில் காட்சி தரவு ஏதும் இருப்பதுபோல் தெரியவில்லை. ஏற்றுமதியின்போது காட்சி உட்பதிதலை இயக்கினீரா?", cannotRestoreFromImage: "இப்படக்கோப்பிலிருந்து காட்சி மீட்டெடுக்கப்பட முடியாது", invalidSceneUrl: "வழங்கப்பட்ட உரலியிலிருந்து காட்சியை இறக்கவியலா. இது தவறான வடிவத்தில் உள்ளது, அ செல்லத்தக்க எக்ஸ்கேலிட்ரா JSON தரவைக் கொண்டில்லை.", resetLibrary: "இது உங்கள் நுலகத்தைத் துடைக்கும். நீங்கள் உறுதியா?", removeItemsFromsLibrary: "{{count}} உருப்படி(கள்)-ஐ உம் நூலகத்திலிருந்து அழிக்கவா?", invalidEncryptionKey: "மறையாக்க விசை 22 வரியுருக்கள் கொண்டிருக்கவேண்டும். நேரடி கூட்டுப்பணி முடக்கப்பட்டது.", collabOfflineWarning: `இணைய இணைப்பு இல்லை.
@@ -1 +1 @@
1
- "use strict";const P=require("lodash-es"),J=require("./layers.Cyzu9PKQ.js"),k=require("./layers.BLd2spTm.js"),u=require("./layers.XbybLjbV.js"),i=require("./layers.C5S1nV4u.js"),j=require("./layers.CpvwsKQg.js");function G(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=G(P);function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:M(e),edges:F(e)};return m.isUndefined(e.graph())||(t.value=m.clone(e.graph())),t}function M(e){return m.map(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return m.isUndefined(n)||(s.value=n),m.isUndefined(r)||(s.parent=r),s})}function F(e){return m.map(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return m.isUndefined(t.name)||(r.name=t.name),m.isUndefined(n)||(r.value=n),r})}let a={},w={},p={};const q=()=>{w={},p={},a={}},X=(e,t)=>(i.log$1.trace("In isDescendant",t," ",e," = ",w[t].includes(e)),!!w[t].includes(e)),_=(e,t)=>(i.log$1.info("Descendants of ",t," is ",w[t]),i.log$1.info("Edge is ",e),e.v===t||e.w===t?!1:w[t]?w[t].includes(e.v)||X(e.v,t)||X(e.w,t)||w[t].includes(e.w):(i.log$1.debug("Tilt, ",t,",not in descendants"),!1)),B=(e,t,n,r)=>{i.log$1.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.log$1.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)B(o,t,n,r);else{const f=t.node(o);i.log$1.info("cp ",o," to ",r," with parent ",e),n.setNode(o,f),r!==t.parent(o)&&(i.log$1.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==r&&o!==e?(i.log$1.debug("Setting parent",o,e),n.setParent(o,e)):(i.log$1.info("In copy ",e,"root",r,"data",t.node(e),r),i.log$1.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==r,"node!==clusterId",o!==e));const g=t.edges(o);i.log$1.debug("Copying Edges",g),g.forEach(d=>{i.log$1.info("Edge",d);const h=t.edge(d.v,d.w,d.name);i.log$1.info("Edge data",h,r);try{_(d,r)?(i.log$1.info("Copying as ",d.v,d.w,h,d.name),n.setEdge(d.v,d.w,h,d.name),i.log$1.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.log$1.info("Skipping copy of edge ",d.v,"-->",d.w," rootId: ",r," clusterId:",e)}catch($){i.log$1.error($)}})}i.log$1.debug("Removing node",o),t.removeNode(o)})},D=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)p[s]=e,r=[...r,...D(s,t)];return r},C=(e,t)=>{i.log$1.trace("Searching",e);const n=t.children(e);if(i.log$1.trace("Searching children of id ",e,n),n.length<1)return i.log$1.trace("This is a valid node",e),e;for(const r of n){const s=C(r,t);if(s)return i.log$1.trace("Found replacement for",e," => ",s),s}},S=e=>!a[e]||!a[e].externalConnections?e:a[e]?a[e].id:e,U=(e,t)=>{if(!e||t>10){i.log$1.debug("Opting out, no graph ");return}else i.log$1.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.log$1.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),w[n]=D(n,e),a[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.log$1.debug("Cluster identified",n,w),s.forEach(o=>{if(o.v!==n&&o.w!==n){const f=X(o.v,n),g=X(o.w,n);f^g&&(i.log$1.warn("Edge: ",o," leaves cluster ",n),i.log$1.warn("Descendants of XXX ",n,": ",w[n]),a[n].externalConnections=!0)}})):i.log$1.debug("Not a cluster ",n,w)});for(let n of Object.keys(a)){const r=a[n].id,s=e.parent(r);s!==n&&a[s]&&!a[s].externalConnections&&(a[n].id=s)}e.edges().forEach(function(n){const r=e.edge(n);i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,o=n.w;if(i.log$1.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a[n.v]," --- ",a[n.w]),a[n.v]&&a[n.w]&&a[n.v]===a[n.w]){i.log$1.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name);const f=n.w+"---"+n.v;e.setNode(f,{domId:f,id:f,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const g=structuredClone(r),d=structuredClone(r);g.label="",g.arrowTypeEnd="none",d.label="",g.fromCluster=n.v,d.toCluster=n.v,e.setEdge(s,f,g,n.name+"-cyclic-special"),e.setEdge(f,o,d,n.name+"-cyclic-special")}else if(a[n.v]||a[n.w]){if(i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){const f=e.parent(s);a[f].externalConnections=!0,r.fromCluster=n.v}if(o!==n.w){const f=e.parent(o);a[f].externalConnections=!0,r.toCluster=n.w}i.log$1.warn("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,r,n.name)}}),i.log$1.warn("Adjusted Graph",x(e)),T(e,0),i.log$1.trace(a)},T=(e,t)=>{if(i.log$1.warn("extractor - ",t,x(e),e.children("D")),t>10){i.log$1.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const o=e.children(s);r=r||o.length>0}if(!r){i.log$1.debug("Done, no node has children",e.nodes());return}i.log$1.debug("Nodes = ",n,t);for(const s of n)if(i.log$1.debug("Extracting node",s,a,a[s]&&!a[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!a[s])i.log$1.debug("Not a cluster",s,t);else if(!a[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.log$1.warn("Cluster without external connections, without a parent and with children",s,t);let f=e.graph().rankdir==="TB"?"LR":"TB";a[s]&&a[s].clusterData&&a[s].clusterData.dir&&(f=a[s].clusterData.dir,i.log$1.warn("Fixing dir",a[s].clusterData.dir,f));const g=new k.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.log$1.warn("Old graph before copy",x(e)),B(s,e,g,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:a[s].clusterData,labelText:a[s].labelText,graph:g}),i.log$1.warn("New graph after copy node: (",s,")",x(g)),i.log$1.debug("Old graph after copy",x(e))}else i.log$1.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!a[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.log$1.debug(a);n=e.nodes(),i.log$1.warn("New list of nodes",n);for(const s of n){const o=e.node(s);i.log$1.warn(" Now next level",s,o),o.clusterNode&&T(o.graph,t+1)}},O=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),o=O(e,s);n=[...n,...o]}),n},A=e=>O(e,e.children()),H=(e,t)=>{i.log$1.info("Creating subgraph rect for ",t.id,t);const n=i.getConfig(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),s=r.insert("rect",":first-child"),o=i.evaluate(n.flowchart.htmlLabels),f=r.insert("g").attr("class","cluster-label"),g=t.labelType==="markdown"?j.createText(f,t.labelText,{style:t.labelStyle,useHtmlLabels:o}):f.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}const h=0*t.padding,$=h/2,y=t.width<=d.width+h?d.width+h:t.width;t.width<=d.width+h?t.diff=(d.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.log$1.trace("Data ",t,JSON.stringify(t)),s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-y/2).attr("y",t.y-t.height/2-$).attr("width",y).attr("height",t.height+h);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o?f.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2+N})`):f.attr("transform",`translate(${t.x}, ${t.y-t.height/2+N})`);const b=s.node().getBBox();return t.width=b.width,t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},V=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.intersect=function(g){return u.intersectRect$1(t,g)},n},z=(e,t)=>{const n=i.getConfig(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),s=r.insert("rect",":first-child"),o=r.insert("g").attr("class","cluster-label"),f=r.append("rect"),g=o.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}d=g.getBBox();const h=0*t.padding,$=h/2,y=t.width<=d.width+t.padding?d.width+t.padding:t.width;t.width<=d.width+t.padding?t.diff=(d.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,s.attr("class","outer").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$).attr("width",y+h).attr("height",t.height+h),f.attr("class","inner").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$+d.height-1).attr("width",y+h).attr("height",t.height+h-d.height-3);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2-t.padding/3+(i.evaluate(n.flowchart.htmlLabels)?5:3)+N})`);const b=s.node().getBBox();return t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},W=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.diff=-t.padding/2,t.intersect=function(g){return u.intersectRect$1(t,g)},n},K={rect:H,roundedWithTitle:z,noteGroup:V,divider:W};let R={};const Q=(e,t)=>{i.log$1.trace("Inserting cluster");const n=t.shape||"rect";R[t.id]=K[n](e,t)},Y=()=>{R={}},L=async(e,t,n,r,s,o)=>{i.log$1.info("Graph in recursive render: XXX",x(t),s);const f=t.graph().rankdir;i.log$1.trace("Dir in recursive render - dir:",f);const g=e.insert("g").attr("class","root");t.nodes()?i.log$1.info("Recursive render XXX",t.nodes()):i.log$1.info("No nodes found for",t),t.edges().length>0&&i.log$1.trace("Recursive edges",t.edge(t.edges()[0]));const d=g.insert("g").attr("class","clusters"),h=g.insert("g").attr("class","edgePaths"),$=g.insert("g").attr("class","edgeLabels"),y=g.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(l){const c=t.node(l);if(s!==void 0){const v=JSON.parse(JSON.stringify(s.clusterData));i.log$1.info("Setting data for cluster XXX (",l,") ",v,s),t.setNode(s.id,v),t.parent(l)||(i.log$1.trace("Setting parent",l,s.id),t.setParent(l,s.id,v))}if(i.log$1.info("(Insert) Node XXX"+l+": "+JSON.stringify(t.node(l))),c&&c.clusterNode){i.log$1.info("Cluster identified",l,c.width,t.node(l));const v=await L(y,c.graph,n,r,t.node(l),o),E=v.elem;u.updateNodeBounds(c,E),c.diff=v.diff||0,i.log$1.info("Node bounds (abc123)",l,c,c.width,c.x,c.y),u.setNodeElem(E,c),i.log$1.warn("Recursive render complete ",E,c)}else t.children(l).length>0?(i.log$1.info("Cluster - the non recursive path XXX",l,c.id,c,t),i.log$1.info(C(c.id,t)),a[c.id]={id:C(c.id,t),node:c}):(i.log$1.info("Node - the non recursive path",l,c.id,c),await u.insertNode(y,t.node(l),f))})),t.edges().forEach(function(l){const c=t.edge(l.v,l.w,l.name);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l)),i.log$1.info("Edge "+l.v+" -> "+l.w+": ",l," ",JSON.stringify(t.edge(l))),i.log$1.info("Fix",a,"ids:",l.v,l.w,"Translating: ",a[l.v],a[l.w]),u.insertEdgeLabel($,c)}),t.edges().forEach(function(l){i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l))}),i.log$1.info("#############################################"),i.log$1.info("### Layout ###"),i.log$1.info("#############################################"),i.log$1.info(t),J.layout(t),i.log$1.info("Graph after layout:",x(t));let N=0;const{subGraphTitleTotalMargin:b}=u.getSubGraphTitleMargins(o);return A(t).forEach(function(l){const c=t.node(l);i.log$1.info("Position "+l+": "+JSON.stringify(t.node(l))),i.log$1.info("Position "+l+": ("+c.x,","+c.y,") width: ",c.width," height: ",c.height),c&&c.clusterNode?(c.y+=b,u.positionNode(c)):t.children(l).length>0?(c.height+=b,Q(d,c),a[c.id].node=c):(c.y+=b/2,u.positionNode(c))}),t.edges().forEach(function(l){const c=t.edge(l);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(c),c),c.points.forEach(E=>E.y+=b/2);const v=u.insertEdge(h,l,c,a,n,t,r);u.positionEdgeLabel(c,v)}),t.nodes().forEach(function(l){const c=t.node(l);i.log$1.info(l,c.type,c.diff),c.type==="group"&&(N=c.diff)}),{elem:g,diff:N}},Z=async(e,t,n,r,s)=>{u.insertMarkers$1(e,n,r,s),u.clear$1(),u.clear(),Y(),q(),i.log$1.warn("Graph at first:",JSON.stringify(x(t))),U(t),i.log$1.warn("Graph after:",JSON.stringify(x(t)));const o=i.getConfig();await L(e,t,r,s,void 0,o)};exports.render=Z;
1
+ "use strict";const P=require("lodash-es"),J=require("./layers.Cyzu9PKQ.js"),k=require("./layers.BLd2spTm.js"),u=require("./layers.DgO3Q5mW.js"),i=require("./layers.CYPfnKfS.js"),j=require("./layers.DLJtS0JJ.js");function G(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=G(P);function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:M(e),edges:F(e)};return m.isUndefined(e.graph())||(t.value=m.clone(e.graph())),t}function M(e){return m.map(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return m.isUndefined(n)||(s.value=n),m.isUndefined(r)||(s.parent=r),s})}function F(e){return m.map(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return m.isUndefined(t.name)||(r.name=t.name),m.isUndefined(n)||(r.value=n),r})}let a={},w={},p={};const q=()=>{w={},p={},a={}},X=(e,t)=>(i.log$1.trace("In isDescendant",t," ",e," = ",w[t].includes(e)),!!w[t].includes(e)),_=(e,t)=>(i.log$1.info("Descendants of ",t," is ",w[t]),i.log$1.info("Edge is ",e),e.v===t||e.w===t?!1:w[t]?w[t].includes(e.v)||X(e.v,t)||X(e.w,t)||w[t].includes(e.w):(i.log$1.debug("Tilt, ",t,",not in descendants"),!1)),B=(e,t,n,r)=>{i.log$1.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.log$1.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)B(o,t,n,r);else{const f=t.node(o);i.log$1.info("cp ",o," to ",r," with parent ",e),n.setNode(o,f),r!==t.parent(o)&&(i.log$1.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==r&&o!==e?(i.log$1.debug("Setting parent",o,e),n.setParent(o,e)):(i.log$1.info("In copy ",e,"root",r,"data",t.node(e),r),i.log$1.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==r,"node!==clusterId",o!==e));const g=t.edges(o);i.log$1.debug("Copying Edges",g),g.forEach(d=>{i.log$1.info("Edge",d);const h=t.edge(d.v,d.w,d.name);i.log$1.info("Edge data",h,r);try{_(d,r)?(i.log$1.info("Copying as ",d.v,d.w,h,d.name),n.setEdge(d.v,d.w,h,d.name),i.log$1.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.log$1.info("Skipping copy of edge ",d.v,"-->",d.w," rootId: ",r," clusterId:",e)}catch($){i.log$1.error($)}})}i.log$1.debug("Removing node",o),t.removeNode(o)})},D=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)p[s]=e,r=[...r,...D(s,t)];return r},C=(e,t)=>{i.log$1.trace("Searching",e);const n=t.children(e);if(i.log$1.trace("Searching children of id ",e,n),n.length<1)return i.log$1.trace("This is a valid node",e),e;for(const r of n){const s=C(r,t);if(s)return i.log$1.trace("Found replacement for",e," => ",s),s}},S=e=>!a[e]||!a[e].externalConnections?e:a[e]?a[e].id:e,U=(e,t)=>{if(!e||t>10){i.log$1.debug("Opting out, no graph ");return}else i.log$1.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.log$1.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),w[n]=D(n,e),a[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.log$1.debug("Cluster identified",n,w),s.forEach(o=>{if(o.v!==n&&o.w!==n){const f=X(o.v,n),g=X(o.w,n);f^g&&(i.log$1.warn("Edge: ",o," leaves cluster ",n),i.log$1.warn("Descendants of XXX ",n,": ",w[n]),a[n].externalConnections=!0)}})):i.log$1.debug("Not a cluster ",n,w)});for(let n of Object.keys(a)){const r=a[n].id,s=e.parent(r);s!==n&&a[s]&&!a[s].externalConnections&&(a[n].id=s)}e.edges().forEach(function(n){const r=e.edge(n);i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,o=n.w;if(i.log$1.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a[n.v]," --- ",a[n.w]),a[n.v]&&a[n.w]&&a[n.v]===a[n.w]){i.log$1.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name);const f=n.w+"---"+n.v;e.setNode(f,{domId:f,id:f,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const g=structuredClone(r),d=structuredClone(r);g.label="",g.arrowTypeEnd="none",d.label="",g.fromCluster=n.v,d.toCluster=n.v,e.setEdge(s,f,g,n.name+"-cyclic-special"),e.setEdge(f,o,d,n.name+"-cyclic-special")}else if(a[n.v]||a[n.w]){if(i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){const f=e.parent(s);a[f].externalConnections=!0,r.fromCluster=n.v}if(o!==n.w){const f=e.parent(o);a[f].externalConnections=!0,r.toCluster=n.w}i.log$1.warn("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,r,n.name)}}),i.log$1.warn("Adjusted Graph",x(e)),T(e,0),i.log$1.trace(a)},T=(e,t)=>{if(i.log$1.warn("extractor - ",t,x(e),e.children("D")),t>10){i.log$1.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const o=e.children(s);r=r||o.length>0}if(!r){i.log$1.debug("Done, no node has children",e.nodes());return}i.log$1.debug("Nodes = ",n,t);for(const s of n)if(i.log$1.debug("Extracting node",s,a,a[s]&&!a[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!a[s])i.log$1.debug("Not a cluster",s,t);else if(!a[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.log$1.warn("Cluster without external connections, without a parent and with children",s,t);let f=e.graph().rankdir==="TB"?"LR":"TB";a[s]&&a[s].clusterData&&a[s].clusterData.dir&&(f=a[s].clusterData.dir,i.log$1.warn("Fixing dir",a[s].clusterData.dir,f));const g=new k.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.log$1.warn("Old graph before copy",x(e)),B(s,e,g,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:a[s].clusterData,labelText:a[s].labelText,graph:g}),i.log$1.warn("New graph after copy node: (",s,")",x(g)),i.log$1.debug("Old graph after copy",x(e))}else i.log$1.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!a[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.log$1.debug(a);n=e.nodes(),i.log$1.warn("New list of nodes",n);for(const s of n){const o=e.node(s);i.log$1.warn(" Now next level",s,o),o.clusterNode&&T(o.graph,t+1)}},O=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),o=O(e,s);n=[...n,...o]}),n},A=e=>O(e,e.children()),H=(e,t)=>{i.log$1.info("Creating subgraph rect for ",t.id,t);const n=i.getConfig(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),s=r.insert("rect",":first-child"),o=i.evaluate(n.flowchart.htmlLabels),f=r.insert("g").attr("class","cluster-label"),g=t.labelType==="markdown"?j.createText(f,t.labelText,{style:t.labelStyle,useHtmlLabels:o}):f.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}const h=0*t.padding,$=h/2,y=t.width<=d.width+h?d.width+h:t.width;t.width<=d.width+h?t.diff=(d.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.log$1.trace("Data ",t,JSON.stringify(t)),s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-y/2).attr("y",t.y-t.height/2-$).attr("width",y).attr("height",t.height+h);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o?f.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2+N})`):f.attr("transform",`translate(${t.x}, ${t.y-t.height/2+N})`);const b=s.node().getBBox();return t.width=b.width,t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},V=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.intersect=function(g){return u.intersectRect$1(t,g)},n},z=(e,t)=>{const n=i.getConfig(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),s=r.insert("rect",":first-child"),o=r.insert("g").attr("class","cluster-label"),f=r.append("rect"),g=o.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}d=g.getBBox();const h=0*t.padding,$=h/2,y=t.width<=d.width+t.padding?d.width+t.padding:t.width;t.width<=d.width+t.padding?t.diff=(d.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,s.attr("class","outer").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$).attr("width",y+h).attr("height",t.height+h),f.attr("class","inner").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$+d.height-1).attr("width",y+h).attr("height",t.height+h-d.height-3);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2-t.padding/3+(i.evaluate(n.flowchart.htmlLabels)?5:3)+N})`);const b=s.node().getBBox();return t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},W=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.diff=-t.padding/2,t.intersect=function(g){return u.intersectRect$1(t,g)},n},K={rect:H,roundedWithTitle:z,noteGroup:V,divider:W};let R={};const Q=(e,t)=>{i.log$1.trace("Inserting cluster");const n=t.shape||"rect";R[t.id]=K[n](e,t)},Y=()=>{R={}},L=async(e,t,n,r,s,o)=>{i.log$1.info("Graph in recursive render: XXX",x(t),s);const f=t.graph().rankdir;i.log$1.trace("Dir in recursive render - dir:",f);const g=e.insert("g").attr("class","root");t.nodes()?i.log$1.info("Recursive render XXX",t.nodes()):i.log$1.info("No nodes found for",t),t.edges().length>0&&i.log$1.trace("Recursive edges",t.edge(t.edges()[0]));const d=g.insert("g").attr("class","clusters"),h=g.insert("g").attr("class","edgePaths"),$=g.insert("g").attr("class","edgeLabels"),y=g.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(l){const c=t.node(l);if(s!==void 0){const v=JSON.parse(JSON.stringify(s.clusterData));i.log$1.info("Setting data for cluster XXX (",l,") ",v,s),t.setNode(s.id,v),t.parent(l)||(i.log$1.trace("Setting parent",l,s.id),t.setParent(l,s.id,v))}if(i.log$1.info("(Insert) Node XXX"+l+": "+JSON.stringify(t.node(l))),c&&c.clusterNode){i.log$1.info("Cluster identified",l,c.width,t.node(l));const v=await L(y,c.graph,n,r,t.node(l),o),E=v.elem;u.updateNodeBounds(c,E),c.diff=v.diff||0,i.log$1.info("Node bounds (abc123)",l,c,c.width,c.x,c.y),u.setNodeElem(E,c),i.log$1.warn("Recursive render complete ",E,c)}else t.children(l).length>0?(i.log$1.info("Cluster - the non recursive path XXX",l,c.id,c,t),i.log$1.info(C(c.id,t)),a[c.id]={id:C(c.id,t),node:c}):(i.log$1.info("Node - the non recursive path",l,c.id,c),await u.insertNode(y,t.node(l),f))})),t.edges().forEach(function(l){const c=t.edge(l.v,l.w,l.name);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l)),i.log$1.info("Edge "+l.v+" -> "+l.w+": ",l," ",JSON.stringify(t.edge(l))),i.log$1.info("Fix",a,"ids:",l.v,l.w,"Translating: ",a[l.v],a[l.w]),u.insertEdgeLabel($,c)}),t.edges().forEach(function(l){i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l))}),i.log$1.info("#############################################"),i.log$1.info("### Layout ###"),i.log$1.info("#############################################"),i.log$1.info(t),J.layout(t),i.log$1.info("Graph after layout:",x(t));let N=0;const{subGraphTitleTotalMargin:b}=u.getSubGraphTitleMargins(o);return A(t).forEach(function(l){const c=t.node(l);i.log$1.info("Position "+l+": "+JSON.stringify(t.node(l))),i.log$1.info("Position "+l+": ("+c.x,","+c.y,") width: ",c.width," height: ",c.height),c&&c.clusterNode?(c.y+=b,u.positionNode(c)):t.children(l).length>0?(c.height+=b,Q(d,c),a[c.id].node=c):(c.y+=b/2,u.positionNode(c))}),t.edges().forEach(function(l){const c=t.edge(l);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(c),c),c.points.forEach(E=>E.y+=b/2);const v=u.insertEdge(h,l,c,a,n,t,r);u.positionEdgeLabel(c,v)}),t.nodes().forEach(function(l){const c=t.node(l);i.log$1.info(l,c.type,c.diff),c.type==="group"&&(N=c.diff)}),{elem:g,diff:N}},Z=async(e,t,n,r,s)=>{u.insertMarkers$1(e,n,r,s),u.clear$1(),u.clear(),Y(),q(),i.log$1.warn("Graph at first:",JSON.stringify(x(t))),U(t),i.log$1.warn("Graph after:",JSON.stringify(x(t)));const o=i.getConfig();await L(e,t,r,s,void 0,o)};exports.render=Z;
@@ -1,59 +1,62 @@
1
- import { a2 as gt, a3 as ft, a4 as mt, g as xt, l as E, d as G, Y as _t, a5 as bt, q as kt } from "./layers.Bja9USss.js";
2
- import "./layers.BPPjbnzx.js";
3
- import { a as D } from "./layers.B_Bj48E_.js";
1
+ import { a2 as gt, a3 as ft, a4 as mt, g as xt, l as E, d as G, Y as _t, a5 as bt, q as kt } from "./layers.DnRaD217.js";
2
+ import "./layers.D_faABvp.js";
3
+ import "lodash-es/memoize.js";
4
+ import "lodash-es/merge.js";
5
+ import "lodash-es/isEmpty.js";
6
+ import { a as D } from "./layers.D0RX234F.js";
4
7
  var K = (function() {
5
8
  var n = function(f, i, r, c) {
6
9
  for (r = r || {}, c = f.length; c--; r[f[c]] = i)
7
10
  ;
8
11
  return r;
9
- }, t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], a = [1, 10], s = [1, 11], h = [1, 12], l = [1, 13], p = [1, 16], y = [1, 17], g = {
12
+ }, t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], a = [1, 10], s = [1, 11], h = [1, 12], o = [1, 13], p = [1, 16], y = [1, 17], g = {
10
13
  trace: function() {
11
14
  },
12
15
  yy: {},
13
16
  symbols_: { error: 2, start: 3, timeline: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
14
17
  terminals_: { 2: "error", 4: "timeline", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 20: "period", 21: "event" },
15
18
  productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [18, 1], [19, 1]],
16
- performAction: function(i, r, c, d, u, o, $) {
17
- var x = o.length - 1;
19
+ performAction: function(i, r, c, d, u, l, $) {
20
+ var x = l.length - 1;
18
21
  switch (u) {
19
22
  case 1:
20
- return o[x - 1];
23
+ return l[x - 1];
21
24
  case 2:
22
25
  this.$ = [];
23
26
  break;
24
27
  case 3:
25
- o[x - 1].push(o[x]), this.$ = o[x - 1];
28
+ l[x - 1].push(l[x]), this.$ = l[x - 1];
26
29
  break;
27
30
  case 4:
28
31
  case 5:
29
- this.$ = o[x];
32
+ this.$ = l[x];
30
33
  break;
31
34
  case 6:
32
35
  case 7:
33
36
  this.$ = [];
34
37
  break;
35
38
  case 8:
36
- d.getCommonDb().setDiagramTitle(o[x].substr(6)), this.$ = o[x].substr(6);
39
+ d.getCommonDb().setDiagramTitle(l[x].substr(6)), this.$ = l[x].substr(6);
37
40
  break;
38
41
  case 9:
39
- this.$ = o[x].trim(), d.getCommonDb().setAccTitle(this.$);
42
+ this.$ = l[x].trim(), d.getCommonDb().setAccTitle(this.$);
40
43
  break;
41
44
  case 10:
42
45
  case 11:
43
- this.$ = o[x].trim(), d.getCommonDb().setAccDescription(this.$);
46
+ this.$ = l[x].trim(), d.getCommonDb().setAccDescription(this.$);
44
47
  break;
45
48
  case 12:
46
- d.addSection(o[x].substr(8)), this.$ = o[x].substr(8);
49
+ d.addSection(l[x].substr(8)), this.$ = l[x].substr(8);
47
50
  break;
48
51
  case 15:
49
- d.addTask(o[x], 0, ""), this.$ = o[x];
52
+ d.addTask(l[x], 0, ""), this.$ = l[x];
50
53
  break;
51
54
  case 16:
52
- d.addEvent(o[x].substr(2)), this.$ = o[x];
55
+ d.addEvent(l[x].substr(2)), this.$ = l[x];
53
56
  break;
54
57
  }
55
58
  },
56
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: a, 14: s, 16: h, 17: l, 18: 14, 19: 15, 20: p, 21: y }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: a, 14: s, 16: h, 17: l, 18: 14, 19: 15, 20: p, 21: y }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
59
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: a, 14: s, 16: h, 17: o, 18: 14, 19: 15, 20: p, 21: y }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: a, 14: s, 16: h, 17: o, 18: 14, 19: 15, 20: p, 21: y }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
57
60
  defaultActions: {},
58
61
  parseError: function(i, r) {
59
62
  if (r.recoverable)
@@ -64,12 +67,12 @@ var K = (function() {
64
67
  }
65
68
  },
66
69
  parse: function(i) {
67
- var r = this, c = [0], d = [], u = [null], o = [], $ = this.table, x = "", T = 0, W = 0, C = 2, A = 1, B = o.slice.call(arguments, 1), k = Object.create(this.lexer), w = { yy: {} };
70
+ var r = this, c = [0], d = [], u = [null], l = [], $ = this.table, x = "", T = 0, W = 0, C = 2, A = 1, B = l.slice.call(arguments, 1), k = Object.create(this.lexer), w = { yy: {} };
68
71
  for (var v in this.yy)
69
72
  Object.prototype.hasOwnProperty.call(this.yy, v) && (w.yy[v] = this.yy[v]);
70
73
  k.setInput(i, w.yy), w.yy.lexer = k, w.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
71
74
  var I = k.yylloc;
72
- o.push(I);
75
+ l.push(I);
73
76
  var H = k.options && k.options.ranges;
74
77
  typeof w.yy.parseError == "function" ? this.parseError = w.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
75
78
  function z() {
@@ -96,17 +99,17 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : J = "
96
99
  throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + b);
97
100
  switch (S[0]) {
98
101
  case 1:
99
- c.push(b), u.push(k.yytext), o.push(k.yylloc), c.push(S[1]), b = null, W = k.yyleng, x = k.yytext, T = k.yylineno, I = k.yylloc;
102
+ c.push(b), u.push(k.yytext), l.push(k.yylloc), c.push(S[1]), b = null, W = k.yyleng, x = k.yytext, T = k.yylineno, I = k.yylloc;
100
103
  break;
101
104
  case 2:
102
105
  if (N = this.productions_[S[1]][1], R.$ = u[u.length - N], R._$ = {
103
- first_line: o[o.length - (N || 1)].first_line,
104
- last_line: o[o.length - 1].last_line,
105
- first_column: o[o.length - (N || 1)].first_column,
106
- last_column: o[o.length - 1].last_column
106
+ first_line: l[l.length - (N || 1)].first_line,
107
+ last_line: l[l.length - 1].last_line,
108
+ first_column: l[l.length - (N || 1)].first_column,
109
+ last_column: l[l.length - 1].last_column
107
110
  }, H && (R._$.range = [
108
- o[o.length - (N || 1)].range[0],
109
- o[o.length - 1].range[1]
111
+ l[l.length - (N || 1)].range[0],
112
+ l[l.length - 1].range[1]
110
113
  ]), Z = this.performAction.apply(R, [
111
114
  x,
112
115
  W,
@@ -114,10 +117,10 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : J = "
114
117
  w.yy,
115
118
  S[1],
116
119
  u,
117
- o
120
+ l
118
121
  ].concat(B)), typeof Z < "u")
119
122
  return Z;
120
- N && (c = c.slice(0, -1 * N * 2), u = u.slice(0, -1 * N), o = o.slice(0, -1 * N)), c.push(this.productions_[S[1]][0]), u.push(R.$), o.push(R._$), Y = $[c[c.length - 2]][c[c.length - 1]], c.push(Y);
123
+ N && (c = c.slice(0, -1 * N * 2), u = u.slice(0, -1 * N), l = l.slice(0, -1 * N)), c.push(this.productions_[S[1]][0]), u.push(R.$), l.push(R._$), Y = $[c[c.length - 2]][c[c.length - 1]], c.push(Y);
121
124
  break;
122
125
  case 3:
123
126
  return !0;
@@ -231,8 +234,8 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : J = "
231
234
  }, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], c = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
232
235
  return c;
233
236
  if (this._backtrack) {
234
- for (var o in u)
235
- this[o] = u[o];
237
+ for (var l in u)
238
+ this[l] = u[l];
236
239
  return !1;
237
240
  }
238
241
  return !1;
@@ -244,10 +247,10 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : J = "
244
247
  this._input || (this.done = !0);
245
248
  var i, r, c, d;
246
249
  this._more || (this.yytext = "", this.match = "");
247
- for (var u = this._currentRules(), o = 0; o < u.length; o++)
248
- if (c = this._input.match(this.rules[u[o]]), c && (!r || c[0].length > r[0].length)) {
249
- if (r = c, d = o, this.options.backtrack_lexer) {
250
- if (i = this.test_match(c, u[o]), i !== !1)
250
+ for (var u = this._currentRules(), l = 0; l < u.length; l++)
251
+ if (c = this._input.match(this.rules[u[l]]), c && (!r || c[0].length > r[0].length)) {
252
+ if (r = c, d = l, this.options.backtrack_lexer) {
253
+ if (i = this.test_match(c, u[l]), i !== !1)
251
254
  return i;
252
255
  if (this._backtrack) {
253
256
  r = !1;
@@ -357,9 +360,9 @@ const Q = [], q = [], V = [], it = () => bt, rt = function() {
357
360
  Q.length = 0, q.length = 0, F = "", V.length = 0, kt();
358
361
  }, at = function(n) {
359
362
  F = n, Q.push(n);
360
- }, lt = function() {
361
- return Q;
362
363
  }, ot = function() {
364
+ return Q;
365
+ }, lt = function() {
363
366
  let n = tt();
364
367
  const t = 100;
365
368
  let e = 0;
@@ -400,8 +403,8 @@ const Q = [], q = [], V = [], it = () => bt, rt = function() {
400
403
  clear: rt,
401
404
  getCommonDb: it,
402
405
  addSection: at,
403
- getSections: lt,
404
- getTasks: ot,
406
+ getSections: ot,
407
+ getTasks: lt,
405
408
  addTask: ct,
406
409
  addTaskOrg: dt,
407
410
  addEvent: ht
@@ -414,8 +417,8 @@ const Q = [], q = [], V = [], it = () => bt, rt = function() {
414
417
  clear: rt,
415
418
  default: wt,
416
419
  getCommonDb: it,
417
- getSections: lt,
418
- getTasks: ot
420
+ getSections: ot,
421
+ getTasks: lt
419
422
  }, Symbol.toStringTag, { value: "Module" })), Et = 12, U = function(n, t) {
420
423
  const e = n.append("rect");
421
424
  return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
@@ -426,14 +429,14 @@ const Q = [], q = [], V = [], it = () => bt, rt = function() {
426
429
  const g = D().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
427
430
  y.append("path").attr("class", "mouth").attr("d", g).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
428
431
  }
429
- function l(y) {
432
+ function o(y) {
430
433
  const g = D().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
431
434
  y.append("path").attr("class", "mouth").attr("d", g).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
432
435
  }
433
436
  function p(y) {
434
437
  y.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
435
438
  }
436
- return t.score > 3 ? h(s) : t.score < 3 ? l(s) : p(s), a;
439
+ return t.score > 3 ? h(s) : t.score < 3 ? o(s) : p(s), a;
437
440
  }, It = function(n, t) {
438
441
  const e = n.append("circle");
439
442
  return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
@@ -443,8 +446,8 @@ const Q = [], q = [], V = [], it = () => bt, rt = function() {
443
446
  const s = a.append("tspan");
444
447
  return s.attr("x", t.x + t.textMargin * 2), s.text(e), a;
445
448
  }, $t = function(n, t) {
446
- function e(s, h, l, p, y) {
447
- return s + "," + h + " " + (s + l) + "," + h + " " + (s + l) + "," + (h + p - y) + " " + (s + l - y * 1.2) + "," + (h + p) + " " + s + "," + (h + p);
449
+ function e(s, h, o, p, y) {
450
+ return s + "," + h + " " + (s + o) + "," + h + " " + (s + o) + "," + (h + p - y) + " " + (s + o - y * 1.2) + "," + (h + p) + " " + s + "," + (h + p);
448
451
  }
449
452
  const a = n.append("polygon");
450
453
  a.attr("points", e(t.x, t.y, 50, 20, 7)), a.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ut(n, t);
@@ -470,14 +473,14 @@ const Mt = function(n, t, e) {
470
473
  cy: 300 + (5 - t.score) * 30,
471
474
  score: t.score
472
475
  });
473
- const l = X();
474
- l.x = t.x, l.y = t.y, l.fill = t.fill, l.width = e.width, l.height = e.height, l.class = "task task-type-" + t.num, l.rx = 3, l.ry = 3, U(s, l), t.x + 14, pt(e)(
476
+ const o = X();
477
+ o.x = t.x, o.y = t.y, o.fill = t.fill, o.width = e.width, o.height = e.height, o.class = "task task-type-" + t.num, o.rx = 3, o.ry = 3, U(s, o), t.x + 14, pt(e)(
475
478
  t.task,
476
479
  s,
477
- l.x,
478
- l.y,
479
- l.width,
480
- l.height,
480
+ o.x,
481
+ o.y,
482
+ o.width,
483
+ o.height,
481
484
  { class: "task" },
482
485
  e,
483
486
  t.colour
@@ -514,24 +517,24 @@ const Mt = function(n, t, e) {
514
517
  ry: 0
515
518
  };
516
519
  }, pt = /* @__PURE__ */ (function() {
517
- function n(s, h, l, p, y, g, _, m) {
518
- const f = h.append("text").attr("x", l + y / 2).attr("y", p + g / 2 + 5).style("font-color", m).style("text-anchor", "middle").text(s);
520
+ function n(s, h, o, p, y, g, _, m) {
521
+ const f = h.append("text").attr("x", o + y / 2).attr("y", p + g / 2 + 5).style("font-color", m).style("text-anchor", "middle").text(s);
519
522
  a(f, _);
520
523
  }
521
- function t(s, h, l, p, y, g, _, m, f) {
524
+ function t(s, h, o, p, y, g, _, m, f) {
522
525
  const { taskFontSize: i, taskFontFamily: r } = m, c = s.split(/<br\s*\/?>/gi);
523
526
  for (let d = 0; d < c.length; d++) {
524
- const u = d * i - i * (c.length - 1) / 2, o = h.append("text").attr("x", l + y / 2).attr("y", p).attr("fill", f).style("text-anchor", "middle").style("font-size", i).style("font-family", r);
525
- o.append("tspan").attr("x", l + y / 2).attr("dy", u).text(c[d]), o.attr("y", p + g / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(o, _);
527
+ const u = d * i - i * (c.length - 1) / 2, l = h.append("text").attr("x", o + y / 2).attr("y", p).attr("fill", f).style("text-anchor", "middle").style("font-size", i).style("font-family", r);
528
+ l.append("tspan").attr("x", o + y / 2).attr("dy", u).text(c[d]), l.attr("y", p + g / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(l, _);
526
529
  }
527
530
  }
528
- function e(s, h, l, p, y, g, _, m) {
529
- const f = h.append("switch"), r = f.append("foreignObject").attr("x", l).attr("y", p).attr("width", y).attr("height", g).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
530
- r.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), t(s, f, l, p, y, g, _, m), a(r, _);
531
+ function e(s, h, o, p, y, g, _, m) {
532
+ const f = h.append("switch"), r = f.append("foreignObject").attr("x", o).attr("y", p).attr("width", y).attr("height", g).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
533
+ r.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), t(s, f, o, p, y, g, _, m), a(r, _);
531
534
  }
532
535
  function a(s, h) {
533
- for (const l in h)
534
- l in h && s.attr(l, h[l]);
536
+ for (const o in h)
537
+ o in h && s.attr(o, h[o]);
535
538
  }
536
539
  return function(s) {
537
540
  return s.textPlacement === "fo" ? e : s.textPlacement === "old" ? n : t;
@@ -541,9 +544,9 @@ const Mt = function(n, t, e) {
541
544
  };
542
545
  function yt(n, t) {
543
546
  n.each(function() {
544
- var e = G(this), a = e.text().split(/(\s+|<br>)/).reverse(), s, h = [], l = 1.1, p = e.attr("y"), y = parseFloat(e.attr("dy")), g = e.text(null).append("tspan").attr("x", 0).attr("y", p).attr("dy", y + "em");
547
+ var e = G(this), a = e.text().split(/(\s+|<br>)/).reverse(), s, h = [], o = 1.1, p = e.attr("y"), y = parseFloat(e.attr("dy")), g = e.text(null).append("tspan").attr("x", 0).attr("y", p).attr("dy", y + "em");
545
548
  for (let _ = 0; _ < a.length; _++)
546
- s = a[a.length - 1 - _], h.push(s), g.text(h.join(" ").trim()), (g.node().getComputedTextLength() > t || s === "<br>") && (h.pop(), g.text(h.join(" ").trim()), s === "<br>" ? h = [""] : h = [s], g = e.append("tspan").attr("x", 0).attr("y", p).attr("dy", l + "em").text(s));
549
+ s = a[a.length - 1 - _], h.push(s), g.text(h.join(" ").trim()), (g.node().getComputedTextLength() > t || s === "<br>") && (h.pop(), g.text(h.join(" ").trim()), s === "<br>" ? h = [""] : h = [s], g = e.append("tspan").attr("x", 0).attr("y", p).attr("dy", o + "em").text(s));
547
550
  });
548
551
  }
549
552
  const Pt = function(n, t, e, a) {
@@ -552,11 +555,11 @@ const Pt = function(n, t, e, a) {
552
555
  "class",
553
556
  (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + s)
554
557
  );
555
- const l = h.append("g"), p = h.append("g"), g = p.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(yt, t.width).node().getBBox(), _ = a.fontSize && a.fontSize.replace ? a.fontSize.replace("px", "") : a.fontSize;
556
- return t.height = g.height + _ * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, p.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), zt(l, t, s), t;
558
+ const o = h.append("g"), p = h.append("g"), g = p.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(yt, t.width).node().getBBox(), _ = a.fontSize && a.fontSize.replace ? a.fontSize.replace("px", "") : a.fontSize;
559
+ return t.height = g.height + _ * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, p.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), zt(o, t, s), t;
557
560
  }, Ct = function(n, t, e) {
558
- const a = n.append("g"), h = a.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(yt, t.width).node().getBBox(), l = e.fontSize && e.fontSize.replace ? e.fontSize.replace("px", "") : e.fontSize;
559
- return a.remove(), h.height + l * 1.1 * 0.5 + t.padding;
561
+ const a = n.append("g"), h = a.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(yt, t.width).node().getBBox(), o = e.fontSize && e.fontSize.replace ? e.fontSize.replace("px", "") : e.fontSize;
562
+ return a.remove(), h.height + o * 1.1 * 0.5 + t.padding;
560
563
  }, zt = function(n, t, e) {
561
564
  n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
562
565
  "d",
@@ -577,9 +580,9 @@ const Pt = function(n, t, e, a) {
577
580
  getVirtualNodeHeight: Ct
578
581
  }, Rt = function(n, t, e, a) {
579
582
  var s, h;
580
- const l = xt(), p = l.leftMargin ?? 50;
583
+ const o = xt(), p = o.leftMargin ?? 50;
581
584
  E.debug("timeline", a.db);
582
- const y = l.securityLevel;
585
+ const y = o.securityLevel;
583
586
  let g;
584
587
  y === "sandbox" && (g = G("#i" + t));
585
588
  const m = (y === "sandbox" ? G(g.nodes()[0].contentDocument.body) : G("body")).select("#" + t);
@@ -588,8 +591,8 @@ const Pt = function(n, t, e, a) {
588
591
  E.debug("task", f), P.initGraphics(m);
589
592
  const r = a.db.getSections();
590
593
  E.debug("sections", r);
591
- let c = 0, d = 0, u = 0, o = 0, $ = 50 + p, x = 50;
592
- o = 50;
594
+ let c = 0, d = 0, u = 0, l = 0, $ = 50 + p, x = 50;
595
+ l = 50;
593
596
  let T = 0, W = !0;
594
597
  r.forEach(function(w) {
595
598
  const v = {
@@ -599,7 +602,7 @@ const Pt = function(n, t, e, a) {
599
602
  width: 150,
600
603
  padding: 20,
601
604
  maxHeight: c
602
- }, I = P.getVirtualNodeHeight(m, v, l);
605
+ }, I = P.getVirtualNodeHeight(m, v, o);
603
606
  E.debug("sectionHeight before draw", I), c = Math.max(c, I + 20);
604
607
  });
605
608
  let C = 0, A = 0;
@@ -612,7 +615,7 @@ const Pt = function(n, t, e, a) {
612
615
  width: 150,
613
616
  padding: 20,
614
617
  maxHeight: d
615
- }, H = P.getVirtualNodeHeight(m, I, l);
618
+ }, H = P.getVirtualNodeHeight(m, I, o);
616
619
  E.debug("taskHeight before draw", H), d = Math.max(d, H + 20), C = Math.max(C, v.events.length);
617
620
  let z = 0;
618
621
  for (let b = 0; b < v.events.length; b++) {
@@ -624,7 +627,7 @@ const Pt = function(n, t, e, a) {
624
627
  padding: 20,
625
628
  maxHeight: 50
626
629
  };
627
- z += P.getVirtualNodeHeight(m, S, l);
630
+ z += P.getVirtualNodeHeight(m, S, o);
628
631
  }
629
632
  A = Math.max(A, z);
630
633
  }
@@ -638,20 +641,20 @@ const Pt = function(n, t, e, a) {
638
641
  maxHeight: c
639
642
  };
640
643
  E.debug("sectionNode", I);
641
- const H = m.append("g"), z = P.drawNode(H, I, T, l);
642
- E.debug("sectionNode output", z), H.attr("transform", `translate(${$}, ${o})`), x += c + 50, v.length > 0 && nt(
644
+ const H = m.append("g"), z = P.drawNode(H, I, T, o);
645
+ E.debug("sectionNode output", z), H.attr("transform", `translate(${$}, ${l})`), x += c + 50, v.length > 0 && nt(
643
646
  m,
644
647
  v,
645
648
  T,
646
649
  $,
647
650
  x,
648
651
  d,
649
- l,
652
+ o,
650
653
  C,
651
654
  A,
652
655
  c,
653
656
  !1
654
- ), $ += 200 * Math.max(v.length, 1), x = o, T++;
657
+ ), $ += 200 * Math.max(v.length, 1), x = l, T++;
655
658
  }) : (W = !1, nt(
656
659
  m,
657
660
  f,
@@ -659,7 +662,7 @@ const Pt = function(n, t, e, a) {
659
662
  $,
660
663
  x,
661
664
  d,
662
- l,
665
+ o,
663
666
  C,
664
667
  A,
665
668
  c,
@@ -669,10 +672,10 @@ const Pt = function(n, t, e, a) {
669
672
  E.debug("bounds", B), i && m.append("text").text(i).attr("x", B.width / 2 - p).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), u = W ? c + d + 150 : d + 100, m.append("g").attr("class", "lineWrapper").append("line").attr("x1", p).attr("y1", u).attr("x2", B.width + 3 * p).attr("y2", u).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), _t(
670
673
  void 0,
671
674
  m,
672
- ((s = l.timeline) == null ? void 0 : s.padding) ?? 50,
673
- ((h = l.timeline) == null ? void 0 : h.useMaxWidth) ?? !1
675
+ ((s = o.timeline) == null ? void 0 : s.padding) ?? 50,
676
+ ((h = o.timeline) == null ? void 0 : h.useMaxWidth) ?? !1
674
677
  );
675
- }, nt = function(n, t, e, a, s, h, l, p, y, g, _) {
678
+ }, nt = function(n, t, e, a, s, h, o, p, y, g, _) {
676
679
  var m;
677
680
  for (const f of t) {
678
681
  const i = {
@@ -684,20 +687,20 @@ const Pt = function(n, t, e, a) {
684
687
  maxHeight: h
685
688
  };
686
689
  E.debug("taskNode", i);
687
- const r = n.append("g").attr("class", "taskWrapper"), d = P.drawNode(r, i, e, l).height;
690
+ const r = n.append("g").attr("class", "taskWrapper"), d = P.drawNode(r, i, e, o).height;
688
691
  if (E.debug("taskHeight after draw", d), r.attr("transform", `translate(${a}, ${s})`), h = Math.max(h, d), f.events) {
689
692
  const u = n.append("g").attr("class", "lineWrapper");
690
- let o = h;
691
- s += 100, o = o + Ft(n, f.events, e, a, s, l), s -= 100, u.append("line").attr("x1", a + 190 / 2).attr("y1", s + h).attr("x2", a + 190 / 2).attr(
693
+ let l = h;
694
+ s += 100, l = l + Ft(n, f.events, e, a, s, o), s -= 100, u.append("line").attr("x1", a + 190 / 2).attr("y1", s + h).attr("x2", a + 190 / 2).attr(
692
695
  "y2",
693
696
  s + h + (_ ? h : g) + y + 120
694
697
  ).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
695
698
  }
696
- a = a + 200, _ && !((m = l.timeline) != null && m.disableMulticolor) && e++;
699
+ a = a + 200, _ && !((m = o.timeline) != null && m.disableMulticolor) && e++;
697
700
  }
698
701
  s = s - 10;
699
702
  }, Ft = function(n, t, e, a, s, h) {
700
- let l = 0;
703
+ let o = 0;
701
704
  const p = s;
702
705
  s = s + 100;
703
706
  for (const y of t) {
@@ -711,9 +714,9 @@ const Pt = function(n, t, e, a) {
711
714
  };
712
715
  E.debug("eventNode", g);
713
716
  const _ = n.append("g").attr("class", "eventWrapper"), f = P.drawNode(_, g, e, h).height;
714
- l = l + f, _.attr("transform", `translate(${a}, ${s})`), s = s + 10 + f;
717
+ o = o + f, _.attr("transform", `translate(${a}, ${s})`), s = s + 10 + f;
715
718
  }
716
- return s = p, l;
719
+ return s = p, o;
717
720
  }, Vt = {
718
721
  setConf: () => {
719
722
  },
@@ -782,12 +785,12 @@ const Pt = function(n, t, e, a) {
782
785
  .eventWrapper {
783
786
  filter: brightness(120%);
784
787
  }
785
- `, Ot = Bt, Ut = {
788
+ `, Ot = Bt, Kt = {
786
789
  db: St,
787
790
  renderer: Vt,
788
791
  parser: vt,
789
792
  styles: Ot
790
793
  };
791
794
  export {
792
- Ut as diagram
795
+ Kt as diagram
793
796
  };