@layers-app/editor 0.7.16 → 0.7.17

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 +1 -77
  3. package/dist/index.js +9 -15
  4. package/dist/{layers.DIpDvY-A.js → layers.04n4wbqY.js} +1 -1
  5. package/dist/{layers.BvGgfImM.js → layers.0AjqeHO0.js} +7 -7
  6. package/dist/{layers.mvotlTNZ.js → layers.0YKivPbS.js} +1 -1
  7. package/dist/{layers.Bny7BWT9.js → layers.0ay1od4k.js} +1 -1
  8. package/dist/{layers.IbJq0D6U.js → layers.0cCD7Trw.js} +1 -1
  9. package/dist/{layers.C3SAUwXb.js → layers.192DYlty.js} +1 -1
  10. package/dist/{layers.Bpnbfq-r.js → layers.1ws9_bfy.js} +1 -1
  11. package/dist/layers.3NAUDSdp.js +1 -0
  12. package/dist/{layers.Dk2S8boy.js → layers.41VWy-aG.js} +1 -1
  13. package/dist/{layers.CpJSdiMb.js → layers.5QVC7kU0.js} +1 -1
  14. package/dist/{layers.Cd3kGFCJ.js → layers.6IpHt_7d.js} +1 -1
  15. package/dist/{layers.Vh-KvhZg.js → layers.8CQh8R7p.js} +1 -1
  16. package/dist/{layers.BL3wEq7M.js → layers.9iKrwzo8.js} +1 -1
  17. package/dist/{layers.DE6w34F3.js → layers.9p0T4nVw.js} +1 -1
  18. package/dist/{layers.B1ySJNCM.js → layers.B1auaUb-.js} +1 -1
  19. package/dist/{layers.CiTNX3uh.js → layers.B37cfkOz.js} +1 -1
  20. package/dist/layers.B3S_Iz7U.js +304 -0
  21. package/dist/{layers.E0TLXdrR.js → layers.B5XF9q_I.js} +1 -1
  22. package/dist/{layers.CJ1YRhUh.js → layers.B6hh7kZl.js} +1 -1
  23. package/dist/layers.B7rTjLeq.js +208 -0
  24. package/dist/{layers.B6Va7v9s.js → layers.B8_yUZ0B.js} +1 -1
  25. package/dist/{layers.CxIhyFb7.js → layers.B9JA0HLK.js} +1 -1
  26. package/dist/{layers.DdMy9cRx.js → layers.BABmXbhN.js} +7 -7
  27. package/dist/{layers.xrt74v23.js → layers.BCWekfj1.js} +1 -1
  28. package/dist/{layers.CJtE2LxP.js → layers.BDhkw0hD.js} +224 -227
  29. package/dist/{layers.fumrrA0i.js → layers.BEm0EevB.js} +3 -3
  30. package/dist/layers.BFOGMUuA.js +8 -0
  31. package/dist/{layers.C6fD5O8g.js → layers.BFc__DH6.js} +1 -1
  32. package/dist/{layers.BeCuix4V.js → layers.BGTnvNP0.js} +1 -1
  33. package/dist/{layers.DJM_OF_R.js → layers.BGdwpbmj.js} +1 -1
  34. package/dist/{layers.ojcNGNgi.js → layers.BGrn4rLd.js} +1 -1
  35. package/dist/{layers.DrarpmaN.js → layers.BHgpnpIV.js} +4 -7
  36. package/dist/{layers.eT_ZPmHS.js → layers.BIwMjJXk.js} +1 -1
  37. package/dist/{layers.s0KLXd5N.js → layers.BJ0kBYXi.js} +1 -1
  38. package/dist/{layers.0KANPDnB.js → layers.BK0gUtws.js} +1 -1
  39. package/dist/{layers.4HZb3jXk.js → layers.BMyOFpSB.js} +1 -1
  40. package/dist/{layers.DvYYNhUp.js → layers.BO1-27wB.js} +1 -1
  41. package/dist/{layers.C3DRx9On.js → layers.BO54hyIV.js} +4 -4
  42. package/dist/{layers.BRGRJfuK.js → layers.BOUezSTL.js} +1 -1
  43. package/dist/{layers.DLJtS0JJ.js → layers.BP0j0dgn.js} +1 -1
  44. package/dist/{layers.Di-PcJK6.js → layers.BPc2aeAC.js} +1 -1
  45. package/dist/{layers.ck9pUJ0W.js → layers.BRrrKVX0.js} +1 -1
  46. package/dist/{layers.CFLfRAu0.js → layers.BRw0W8BA.js} +2 -2
  47. package/dist/{layers.BakV9gnD.js → layers.BSUQkbOc.js} +1 -1
  48. package/dist/{layers.G3enfHRT.js → layers.BUA_HqY5.js} +1 -1
  49. package/dist/{layers.1Nv-nANB.js → layers.BVcL_n_M.js} +6 -9
  50. package/dist/{layers.Bk40urId.js → layers.BWePEr40.js} +1 -1
  51. package/dist/{layers.BeFEsW5q.js → layers.BXcsZWke.js} +1 -1
  52. package/dist/{layers.BAU0IeY7.js → layers.BZfVYPU5.js} +1 -1
  53. package/dist/{layers.Cg3Hqyp6.js → layers.BbJS6RnG.js} +1 -1
  54. package/dist/{layers.DDFbkCJT.js → layers.BbVq4Peg.js} +1 -1
  55. package/dist/{layers.CGajZ1Yz.js → layers.BbXyLjxZ.js} +1 -1
  56. package/dist/{layers.BbbyE_Pc.js → layers.Be1uXPSh.js} +1 -1
  57. package/dist/{layers.BQL01Vq6.js → layers.BeACRp58.js} +1 -1
  58. package/dist/{layers.CSXAHvGG.js → layers.Ben_68X-.js} +1 -1
  59. package/dist/{layers.CV8UgwCq.js → layers.BfaQveOZ.js} +7 -7
  60. package/dist/{layers.BNR6f37h.js → layers.BgJtKoXK.js} +1 -1
  61. package/dist/{layers.B_jUVHTe.js → layers.BifTQ-Px.js} +1 -1
  62. package/dist/{layers.BywviGiP.js → layers.BjN6TTXp.js} +1 -1
  63. package/dist/{layers.SCsPWeXb.js → layers.BjkK2efb.js} +1 -1
  64. package/dist/{layers.CcTyCqqv.js → layers.BlHp_VrY.js} +1 -1
  65. package/dist/layers.BlQ-fVEN.js +1 -0
  66. package/dist/{layers.UewvnK33.js → layers.Blc7rw4s.js} +1 -1
  67. package/dist/{layers.C8YD8pwl.js → layers.Bnsmp92P.js} +1 -1
  68. package/dist/layers.BqqCs8jG.js +96 -0
  69. package/dist/{layers.B_Vwa8Hx.js → layers.BsmgPu7t.js} +1 -1
  70. package/dist/{layers.CVJOismf.js → layers.Bt7tcN4s.js} +1 -1
  71. package/dist/{layers.js7-Kn9p.js → layers.Btzp1z-r.js} +1 -1
  72. package/dist/{layers.CkwenT1M.js → layers.BwTFFS1L.js} +1 -1
  73. package/dist/{layers.DukGouVT.js → layers.Bx3h2n9l.js} +1 -1
  74. package/dist/{layers.HFONz6O9.js → layers.BxM1KZfC.js} +4 -4
  75. package/dist/{layers.t_MFWlU6.js → layers.BxM9-XMl.js} +1 -1
  76. package/dist/{layers.CQvaw3yb.js → layers.C0J8aakp.js} +1 -1
  77. package/dist/{layers.B-9QQMGw.js → layers.C0rSyLVd.js} +1 -1
  78. package/dist/{layers.DBwG7x-W.js → layers.C2Ghtbvc.js} +1 -1
  79. package/dist/{layers.D_faABvp.js → layers.C2jhvzOq.js} +8 -8
  80. package/dist/{layers.CfISeAkt.js → layers.C35KTUy2.js} +84 -86
  81. package/dist/{layers.Coh6z7rV.js → layers.C39A_3mH.js} +1 -1
  82. package/dist/{layers.DjCXWv2m.js → layers.C5BRzalR.js} +1 -1
  83. package/dist/{layers.BNkwxNgt.js → layers.C5Fx7NyW.js} +1 -1
  84. package/dist/{layers.BIM8NeWS.js → layers.C5hEmFnZ.js} +1 -1
  85. package/dist/{layers.aGzHUJ1W.js → layers.C6s-F8xr.js} +4 -4
  86. package/dist/{layers.BJhjIY5r.js → layers.C7FVdo84.js} +1 -1
  87. package/dist/{layers.COjckA33.js → layers.C7dJDI3p.js} +1 -1
  88. package/dist/{layers.BIbdMSbX.js → layers.C89PpG1h.js} +89 -92
  89. package/dist/{layers.KT-QFgdb.js → layers.CAn91HUr.js} +1 -1
  90. package/dist/{layers.Db0NyGA-.js → layers.CDyM6rfz.js} +1 -1
  91. package/dist/{layers.CJyO2xrs.js → layers.CG5E1s6L.js} +1 -1
  92. package/dist/{layers.F4d4ILBH.js → layers.CH6vY6nz.js} +89 -92
  93. package/dist/{layers.5bSjIKfg.js → layers.CI8n-mXC.js} +1 -1
  94. package/dist/{layers.zNb0110W.js → layers.CIIPaPYQ.js} +1 -1
  95. package/dist/{layers.BHz2k1im.js → layers.CJjfGFRn.js} +1 -1
  96. package/dist/{layers.D9N3lSue.js → layers.CLyrFyTt.js} +6 -6
  97. package/dist/layers.CNTFg_PV.js +48033 -0
  98. package/dist/layers.COxTigDs.js +1359 -0
  99. package/dist/layers.CPPTxpTa.js +198 -0
  100. package/dist/layers.CQw2c-FF.js +1 -0
  101. package/dist/layers.CS_v9If4.js +118 -0
  102. package/dist/{layers.DDnI7-13.js → layers.CTEInOdX.js} +1 -1
  103. package/dist/{layers.DAmxkO9p.js → layers.CTzj-R3i.js} +1 -1
  104. package/dist/{layers.LR-nMBU_.js → layers.CULMlCQg.js} +5 -8
  105. package/dist/{layers.CnN8JfiX.js → layers.CWVWuX-h.js} +6 -9
  106. package/dist/{layers.DEaAvR_W.js → layers.CWetNlAM.js} +15 -18
  107. package/dist/{layers.5WzirB7G.js → layers.CZLAcdMj.js} +1 -1
  108. package/dist/{layers.CbBTbZIx.js → layers.CZcNOn_g.js} +1 -1
  109. package/dist/{layers.YT6D6D2x.js → layers.C_gG9xio.js} +1 -1
  110. package/dist/{layers.7oLFJZ8l.js → layers.CagLZWJV.js} +1 -1
  111. package/dist/{layers.BKy18lBk.js → layers.CcQRJhOy.js} +1 -1
  112. package/dist/{layers.ABhWEnmQ.js → layers.CdI08cP2.js} +1 -1
  113. package/dist/{layers.CTaitOnb.js → layers.CfGn3EEn.js} +1 -1
  114. package/dist/layers.CfTomFD-.js +74 -0
  115. package/dist/{layers.4RmaHEsu.js → layers.Ci-h8bbt.js} +1 -1
  116. package/dist/{layers.B2BhJZ0D.js → layers.CiOE4x64.js} +1 -1
  117. package/dist/{layers.CA_fw2Dw.js → layers.CjDmXlbI.js} +1 -1
  118. package/dist/{layers.BGDCJs-p.js → layers.CkvEBALf.js} +1 -1
  119. package/dist/{layers.D_WwW4Fn.js → layers.ClbtOgXD.js} +1 -1
  120. package/dist/{layers.7xkZRnuM.js → layers.CmMJ2vrz.js} +1 -1
  121. package/dist/layers.CoHrmJZb.js +1 -0
  122. package/dist/{layers.D8fFj0P_.js → layers.CqOjrhqg.js} +1 -1
  123. package/dist/{layers.d3HoUueQ.js → layers.Cq_SVM9v.js} +1 -1
  124. package/dist/layers.CtBDhkfE.js +2 -0
  125. package/dist/{layers.BXDV2XaW.js → layers.Cvcaleoh.js} +1 -1
  126. package/dist/{layers.CHhFVTiW.js → layers.Cx1Gq9Dp.js} +1 -1
  127. package/dist/layers.CxhBPjuM.js +257 -0
  128. package/dist/{layers.49H_5LNr.js → layers.CxzexeO2.js} +1 -1
  129. package/dist/{layers.BgEbqAdb.js → layers.Cyiby-Np.js} +3 -3
  130. package/dist/{layers.LCfVvo3T.js → layers.CzPTBQLq.js} +1 -1
  131. package/dist/{layers.D2cVaX5z.js → layers.D-Jn2ZYp.js} +11 -14
  132. package/dist/{layers.CRht5Nqq.js → layers.D3f2mUJi.js} +12 -15
  133. package/dist/{layers.De35CioU.js → layers.D3lMBPw_.js} +1 -1
  134. package/dist/{layers.D176Ljko.js → layers.D4HzIdc6.js} +1 -1
  135. package/dist/{layers.Cf5sVqJX.js → layers.D66jwaU4.js} +1 -1
  136. package/dist/{layers.D-uio-rN.js → layers.D7ZMXlyX.js} +50 -50
  137. package/dist/{layers.dh8xLSwh.js → layers.D8q3-pj1.js} +1 -1
  138. package/dist/{layers.Cxh-oez0.js → layers.D9YR6XE8.js} +3 -3
  139. package/dist/{layers.Cud-IArB.js → layers.D9jdGpJr.js} +1 -1
  140. package/dist/{layers.DHNIckw6.js → layers.DAl7I5u0.js} +1 -1
  141. package/dist/layers.DGi30IzW.js +6 -0
  142. package/dist/{layers.DNJtYtN1.js → layers.DJF9fzWp.js} +1 -1
  143. package/dist/{layers.Cg60w1Fn.js → layers.DN7zqtdR.js} +4 -7
  144. package/dist/{layers.n1dibO8I.js → layers.DODiJHd5.js} +1 -1
  145. package/dist/{layers.CPJSmpbw.js → layers.DPgcx12Q.js} +1 -1
  146. package/dist/{layers.DnRaD217.js → layers.DPiZNyNm.js} +3812 -3229
  147. package/dist/{layers.DkBjWcDH.js → layers.DQhlH0a7.js} +5 -8
  148. package/dist/{layers.C1actZbK.js → layers.DTik-pik.js} +1 -1
  149. package/dist/{layers.C3yLkCio.js → layers.DVrOalPV.js} +1 -1
  150. package/dist/layers.DWaBBiuP.js +19 -0
  151. package/dist/{layers.CFcHk-z5.js → layers.DZkaq_lv.js} +4 -7
  152. package/dist/{layers.Y3D9xjCC.js → layers.DacVDKlC.js} +1 -1
  153. package/dist/layers.DfazY_Pm.js +1 -0
  154. package/dist/{layers.CMyb9_FE.js → layers.DgCULOvY.js} +1 -1
  155. package/dist/{layers.D0RX234F.js → layers.DgjixQuR.js} +1 -1
  156. package/dist/{layers.C92R-ENv.js → layers.DhtGL7-o.js} +1 -1
  157. package/dist/{layers.DwzO2zcv.js → layers.DjYl24mJ.js} +1 -1
  158. package/dist/{layers.CFmNZSAJ.js → layers.DkUY5uNV.js} +1 -1
  159. package/dist/{layers.Ic3KgoPg.js → layers.DouGTsMz.js} +1 -1
  160. package/dist/{layers.D_fPGQ6i.js → layers.Dq2XAyOc.js} +1 -1
  161. package/dist/{layers.CwL02t3J.js → layers.DqL7bG3g.js} +1 -1
  162. package/dist/{layers.C9_vX7IO.js → layers.DrYzFfW_.js} +3 -3
  163. package/dist/{layers.DnvnGxUC.js → layers.DrdslLaU.js} +1 -1
  164. package/dist/{layers.CwsNJfmi.js → layers.Ds9-wuCp.js} +1 -1
  165. package/dist/layers.DsLySzfR.js +8 -0
  166. package/dist/{layers.Blc4R7F2.js → layers.DsXVRfSf.js} +1 -1
  167. package/dist/{layers.VfVZmEbK.js → layers.DtYnjrXZ.js} +1 -1
  168. package/dist/{layers.BLKD1Tiy.js → layers.Dtg6Vr-6.js} +1 -1
  169. package/dist/{layers.otxU0wtq.js → layers.DuwOgI-l.js} +1 -1
  170. package/dist/{layers.DHcbExrH.js → layers.DwXNFr-I.js} +3 -3
  171. package/dist/layers.Ev3O6tfW.js +1 -0
  172. package/dist/{layers.DUutOP8h.js → layers.GRwBofUp.js} +1 -1
  173. package/dist/{layers.CXWtqfTe.js → layers.HAyebP5S.js} +7 -10
  174. package/dist/{layers.BEUJQJGq.js → layers.J8v8A5JD.js} +1 -1
  175. package/dist/{layers.DaIprEGs.js → layers.MerAdE1w.js} +1 -1
  176. package/dist/{layers.kW7XFPN_.js → layers.OE83Ve6T.js} +1 -1
  177. package/dist/{layers.BfVGjstp.js → layers.P6mLQhtB.js} +1 -1
  178. package/dist/{layers.Ce7-wBOK.js → layers.PV80K4Xy.js} +1 -1
  179. package/dist/{layers.BJmaj5SY.js → layers.QNYkTpWx.js} +1 -1
  180. package/dist/{layers.B2iVWMcm.js → layers.RTKoEILv.js} +1 -1
  181. package/dist/{layers.BQm21WlP.js → layers.SLjiLvui.js} +1 -1
  182. package/dist/{layers.DVWaIKgr.js → layers.VJ5q1w0_.js} +6 -9
  183. package/dist/{layers.B-8gEV_E.js → layers.XOfuSupS.js} +3 -3
  184. package/dist/{layers.CsivQuv1.js → layers.YNcfYAuY.js} +1 -1
  185. package/dist/{layers.JNgL8WWu.js → layers.YO08nJMd.js} +1 -1
  186. package/dist/{layers._y8hExIw.js → layers.YqzV3yPW.js} +6 -9
  187. package/dist/layers.Z4R1XaSC.js +1 -0
  188. package/dist/{layers.B0sBopW9.js → layers.ZZQfmNLr.js} +1 -1
  189. package/dist/{layers.DzD-lWXV.js → layers.bHmhGLR5.js} +5 -8
  190. package/dist/{layers.Bd6ptC9U.js → layers.cgUeweX2.js} +1 -1
  191. package/dist/{layers.gVfRcFrJ.js → layers.dYPOB_yR.js} +1 -1
  192. package/dist/{layers.sqH5TpK8.js → layers.easeN7iP.js} +1 -1
  193. package/dist/{layers.DEtMl_i3.js → layers.f7Ihj79-.js} +1 -1
  194. package/dist/{layers.-fM6L_z3.js → layers.hLd2Pb2X.js} +1 -1
  195. package/dist/{layers.Cryqj610.js → layers.i0Y9asvx.js} +5 -8
  196. package/dist/layers.ib9vHAA4.js +2 -0
  197. package/dist/{layers.U4NCf2-l.js → layers.k6E3SRkR.js} +3 -3
  198. package/dist/layers.lDwCLT0I.js +1 -0
  199. package/dist/{layers.CYneLciB.js → layers.lP9uODKD.js} +7 -10
  200. package/dist/{layers.Cs-83js7.js → layers.pc1SXYEj.js} +1 -1
  201. package/dist/{layers.EcqLW9Mh.js → layers.snXT5mu6.js} +1 -1
  202. package/dist/{layers.BrbcqGdA.js → layers.vIfEp2lU.js} +8 -11
  203. package/dist/{layers.IUqwmZRd.js → layers.wJNNYF6u.js} +3 -3
  204. package/dist/{layers.DgO3Q5mW.js → layers.wKL0lWNs.js} +1 -1
  205. package/dist/{layers.CCur6VEj.js → layers.wU0hxeTl.js} +2 -2
  206. package/dist/{layers.CYdP1IhC.js → layers.wj-nS-86.js} +1 -1
  207. package/dist/layers.xiOwns_l.js +1 -0
  208. package/package.json +23 -24
  209. package/dist/layers.1bdyQGVP.js +0 -8
  210. package/dist/layers.B82wcYq0.js +0 -271
  211. package/dist/layers.BCD7sjs8.js +0 -1
  212. package/dist/layers.BOMC5c1j.js +0 -2
  213. package/dist/layers.C-_ynqvr.js +0 -1
  214. package/dist/layers.C9QCrDzm.js +0 -1
  215. package/dist/layers.CB61rfHO.js +0 -1225
  216. package/dist/layers.CYPfnKfS.js +0 -96
  217. package/dist/layers.CZLVHOh5.js +0 -8
  218. package/dist/layers.CcP6Z-gZ.js +0 -118
  219. package/dist/layers.Chd1p2rt.js +0 -26645
  220. package/dist/layers.D4Bw_BrO.js +0 -1
  221. package/dist/layers.DHVcgZzL.js +0 -257
  222. package/dist/layers.DUlTmlus.js +0 -213
  223. package/dist/layers.Dv_6xN7s.js +0 -2
  224. package/dist/layers.DwWUZK6s.js +0 -129
  225. package/dist/layers.Qt2qr0-t.js +0 -76
  226. package/dist/layers.a8-4vDzD.js +0 -22
  227. package/dist/layers.dWB4bggP.js +0 -1
  228. package/dist/layers.mobYTQXI.js +0 -1
  229. package/dist/layers.nRPZ1e3g.js +0 -1
  230. package/dist/layers.o2u1uDM3.js +0 -1
  231. package/dist/layers.oJ31-KOl.js +0 -6
  232. package/dist/layers.rE9xnPLC.js +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.CV8UgwCq.js");var e={paste:"Indsæt",pasteAsPlaintext:"Indsæt som klartekst",pasteCharts:"Indsæt diagrammer",selectAll:"Marker alle",multiSelect:"Tilføj element til markering",moveCanvas:"Flyt lærred",cut:"Klip",copy:"Kopier",copyAsPng:"Kopier til klippebord som PNG",copyAsSvg:"Kopier til klippebord som SVG",copyText:"Kopiér til udklipsholder som tekst",copySource:"Kopiér kilde til udklipsholder",convertToCode:"Konvertér til kode",bringForward:"Flyt fremad",sendToBack:"Placer bagest",bringToFront:"Placer forrest",sendBackward:"Send bagud",delete:"Fjern",copyStyles:"Kopier stil",pasteStyles:"Indsæt stil",stroke:"Linje",background:"Baggrund",fill:"Udfyld",strokeWidth:"Linjebredde",strokeStyle:"Linjeform",strokeStyle_solid:"Solid",strokeStyle_dashed:"Stiplet",strokeStyle_dotted:"Prikket",sloppiness:"Sjuskethed",opacity:"Gennemsigtighed",textAlign:"Tekstjustering",edges:"Kanter",sharp:"Skarp",round:"Rund",arrowheads:"Pilehoveder",arrowhead_none:"Ingen",arrowhead_arrow:"Pil",arrowhead_bar:"Bjælke",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Trekant",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Skriftstørrelse",fontFamily:"Skrifttypefamilie",addWatermark:'Tilføj "Lavet med Excalidraw"',handDrawn:"Hånd-tegnet",normal:"Normal",code:"Kode",small:"Lille",medium:"Mellem",large:"Stor",veryLarge:"Meget stor",solid:"Solid",hachure:"Skravering",zigzag:"Zigzag",crossHatch:"Krydsskravering",thin:"Tynd",bold:"Fed",left:"Venstre",center:"Centrere",right:"Højre",extraBold:"Extra fed",architect:"Arkitekt",artist:"Kunstner",cartoonist:"Tegneserietegner",fileTitle:"Filnavn",colorPicker:"Farvevælger",canvasColors:"Brugt på lærred",canvasBackground:"Lærredsbaggrund",drawingCanvas:"Tegnelærred",layers:"Lag",actions:"Handlinger",language:"Sprog",liveCollaboration:"Live samarbejde...",duplicateSelection:"Duplikér",untitled:"Unavngivet",name:"Navn",yourName:"Dit navn",madeWithExcalidraw:"Fremstillet med Excalidraw",group:"Grupper valgte",ungroup:"Opløs gruppe",collaborators:"Deltagere",showGrid:"Vis gitter",addToLibrary:"Føj til Bibliotek",removeFromLibrary:"Fjern fra biblioteket",libraryLoadingMessage:"Indlæser bibliotek…",libraries:"Gennemse biblioteker",loadingScene:"Indlæser scene…",align:"Justér",alignTop:"Juster til top",alignBottom:"Juster til bund",alignLeft:"Venstrejusteret",alignRight:"Juster højre",centerVertically:"Center vertikalt",centerHorizontally:"Vandret centreret",distributeHorizontally:"Distribuer vandret",distributeVertically:"Distribuer lodret",flipHorizontal:"Spejlvend horisontalt",flipVertical:"Vend lodret",viewMode:"Visningstilstand",share:"Del",showStroke:"Vis stregfarve-vælger",showBackground:"Vis baggrundsfarve-vælger",toggleTheme:"Skift tema",personalLib:"Personligt bibliotek",excalidrawLib:"Excalidraw Bibliotek",decreaseFontSize:"Gør skriften mindre",increaseFontSize:"Gør skriften større",unbindText:"Frigør tekst",bindText:"Bind tekst til beholderen",createContainerFromText:"Ombryd tekst i en beholder",link:{edit:"Redigér link",editEmbed:"Redigér link & indlejret",create:"Link oprettet",createEmbed:"Opret link & indlejret",label:"Links",labelEmbed:"Link & indlejret",empty:"Intet link angivet"},lineEditor:{edit:"Rediger Linje",exit:"Afslut linjeeditor"},elementLock:{lock:"Lås",unlock:"Lås op",lockAll:"Lås alle",unlockAll:"Lås alle op"},statusPublished:"Udgiver",sidebarLock:"Hold sidepanel åben",selectAllElementsInFrame:"Vælg alle elementer i rammen",removeAllElementsFromFrame:"Fjern alle elementer fra ramme",eyeDropper:"Vælg farve fra lærred",textToDiagram:"Tekst til diagram",prompt:"Prompt"},r={noItems:"Ingen varer tilføjet endnu...",hint_emptyLibrary:"Vælg et element på lærred for at tilføje det her, eller installer et bibliotek fra det offentlige arkiv, nedenfor.",hint_emptyPrivateLibrary:"Vælg et element på lærred for at tilføje det her."},t={clearReset:"Nulstil lærredet",exportJSON:"Eksportér til fil",exportImage:"Eksporter billede...",export:"Gem til...",copyToClipboard:"Kopier til klippebord",save:"Gem til nuværende fil",saveAs:"Gem som",load:"Åbn",getShareableLink:"Lav et delbart link",close:"Luk",selectLanguage:"Vælg sprog",scrollBackToContent:"Scroll tilbage til indhold",zoomIn:"Zoom ind",zoomOut:"Zoom ud",resetZoom:"Nulstil zoom",menu:"Menu",done:"Færdig",edit:"Rediger",undo:"Fortryd",redo:"Gendan",resetLibrary:"Nulstil bibliotek",createNewRoom:"Opret nyt rum",fullScreen:"Fuld skærm",darkMode:"Mørk tilstand",lightMode:"Lys baggrund",zenMode:"Zentilstand",objectsSnapMode:"Fastgør til objekter",exitZenMode:"Stop zentilstand",cancel:"Annuller",clear:"Ryd",remove:"Fjern",embed:"Slå indlejring til/fra",publishLibrary:"Publicér",submit:"Gem",confirm:"Bekræft",embeddableInteractionButton:"Klik for at interagere"},i={clearReset:"Dette vil rydde hele lærredet. Er du sikker?",couldNotCreateShareableLink:"Kunne ikke oprette delbart link.",couldNotCreateShareableLinkTooBig:"Kunne ikke oprette delbart link: scenen er for stor",couldNotLoadInvalidFile:"Kunne ikke indlæse ugyldig fil",importBackendFailed:"Import fra backend mislykkedes.",cannotExportEmptyCanvas:"Kan ikke eksportere tomt lærred.",couldNotCopyToClipboard:"Kunne ikke kopiere til udklipsholderen.",decryptFailed:"Kunne ikke dekryptere data.",uploadedSecurly:"Upload er blevet sikret med ende-til-ende kryptering, hvilket betyder, at Excalidraw server og tredjeparter ikke kan læse indholdet.",loadSceneOverridePrompt:"Indlæsning af ekstern tegning erstatter dit eksisterende indhold. Ønsker du at fortsætte?",collabStopOverridePrompt:`Stopper sessionen vil overskrive din tidligere, lokalt gemte tegning. Er du sikker?
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.BfaQveOZ.js");var e={paste:"Indsæt",pasteAsPlaintext:"Indsæt som klartekst",pasteCharts:"Indsæt diagrammer",selectAll:"Marker alle",multiSelect:"Tilføj element til markering",moveCanvas:"Flyt lærred",cut:"Klip",copy:"Kopier",copyAsPng:"Kopier til klippebord som PNG",copyAsSvg:"Kopier til klippebord som SVG",copyText:"Kopiér til udklipsholder som tekst",copySource:"Kopiér kilde til udklipsholder",convertToCode:"Konvertér til kode",bringForward:"Flyt fremad",sendToBack:"Placer bagest",bringToFront:"Placer forrest",sendBackward:"Send bagud",delete:"Fjern",copyStyles:"Kopier stil",pasteStyles:"Indsæt stil",stroke:"Linje",background:"Baggrund",fill:"Udfyld",strokeWidth:"Linjebredde",strokeStyle:"Linjeform",strokeStyle_solid:"Solid",strokeStyle_dashed:"Stiplet",strokeStyle_dotted:"Prikket",sloppiness:"Sjuskethed",opacity:"Gennemsigtighed",textAlign:"Tekstjustering",edges:"Kanter",sharp:"Skarp",round:"Rund",arrowheads:"Pilehoveder",arrowhead_none:"Ingen",arrowhead_arrow:"Pil",arrowhead_bar:"Bjælke",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Trekant",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Skriftstørrelse",fontFamily:"Skrifttypefamilie",addWatermark:'Tilføj "Lavet med Excalidraw"',handDrawn:"Hånd-tegnet",normal:"Normal",code:"Kode",small:"Lille",medium:"Mellem",large:"Stor",veryLarge:"Meget stor",solid:"Solid",hachure:"Skravering",zigzag:"Zigzag",crossHatch:"Krydsskravering",thin:"Tynd",bold:"Fed",left:"Venstre",center:"Centrere",right:"Højre",extraBold:"Extra fed",architect:"Arkitekt",artist:"Kunstner",cartoonist:"Tegneserietegner",fileTitle:"Filnavn",colorPicker:"Farvevælger",canvasColors:"Brugt på lærred",canvasBackground:"Lærredsbaggrund",drawingCanvas:"Tegnelærred",layers:"Lag",actions:"Handlinger",language:"Sprog",liveCollaboration:"Live samarbejde...",duplicateSelection:"Duplikér",untitled:"Unavngivet",name:"Navn",yourName:"Dit navn",madeWithExcalidraw:"Fremstillet med Excalidraw",group:"Grupper valgte",ungroup:"Opløs gruppe",collaborators:"Deltagere",showGrid:"Vis gitter",addToLibrary:"Føj til Bibliotek",removeFromLibrary:"Fjern fra biblioteket",libraryLoadingMessage:"Indlæser bibliotek…",libraries:"Gennemse biblioteker",loadingScene:"Indlæser scene…",align:"Justér",alignTop:"Juster til top",alignBottom:"Juster til bund",alignLeft:"Venstrejusteret",alignRight:"Juster højre",centerVertically:"Center vertikalt",centerHorizontally:"Vandret centreret",distributeHorizontally:"Distribuer vandret",distributeVertically:"Distribuer lodret",flipHorizontal:"Spejlvend horisontalt",flipVertical:"Vend lodret",viewMode:"Visningstilstand",share:"Del",showStroke:"Vis stregfarve-vælger",showBackground:"Vis baggrundsfarve-vælger",toggleTheme:"Skift tema",personalLib:"Personligt bibliotek",excalidrawLib:"Excalidraw Bibliotek",decreaseFontSize:"Gør skriften mindre",increaseFontSize:"Gør skriften større",unbindText:"Frigør tekst",bindText:"Bind tekst til beholderen",createContainerFromText:"Ombryd tekst i en beholder",link:{edit:"Redigér link",editEmbed:"Redigér link & indlejret",create:"Link oprettet",createEmbed:"Opret link & indlejret",label:"Links",labelEmbed:"Link & indlejret",empty:"Intet link angivet"},lineEditor:{edit:"Rediger Linje",exit:"Afslut linjeeditor"},elementLock:{lock:"Lås",unlock:"Lås op",lockAll:"Lås alle",unlockAll:"Lås alle op"},statusPublished:"Udgiver",sidebarLock:"Hold sidepanel åben",selectAllElementsInFrame:"Vælg alle elementer i rammen",removeAllElementsFromFrame:"Fjern alle elementer fra ramme",eyeDropper:"Vælg farve fra lærred",textToDiagram:"Tekst til diagram",prompt:"Prompt"},r={noItems:"Ingen varer tilføjet endnu...",hint_emptyLibrary:"Vælg et element på lærred for at tilføje det her, eller installer et bibliotek fra det offentlige arkiv, nedenfor.",hint_emptyPrivateLibrary:"Vælg et element på lærred for at tilføje det her."},t={clearReset:"Nulstil lærredet",exportJSON:"Eksportér til fil",exportImage:"Eksporter billede...",export:"Gem til...",copyToClipboard:"Kopier til klippebord",save:"Gem til nuværende fil",saveAs:"Gem som",load:"Åbn",getShareableLink:"Lav et delbart link",close:"Luk",selectLanguage:"Vælg sprog",scrollBackToContent:"Scroll tilbage til indhold",zoomIn:"Zoom ind",zoomOut:"Zoom ud",resetZoom:"Nulstil zoom",menu:"Menu",done:"Færdig",edit:"Rediger",undo:"Fortryd",redo:"Gendan",resetLibrary:"Nulstil bibliotek",createNewRoom:"Opret nyt rum",fullScreen:"Fuld skærm",darkMode:"Mørk tilstand",lightMode:"Lys baggrund",zenMode:"Zentilstand",objectsSnapMode:"Fastgør til objekter",exitZenMode:"Stop zentilstand",cancel:"Annuller",clear:"Ryd",remove:"Fjern",embed:"Slå indlejring til/fra",publishLibrary:"Publicér",submit:"Gem",confirm:"Bekræft",embeddableInteractionButton:"Klik for at interagere"},i={clearReset:"Dette vil rydde hele lærredet. Er du sikker?",couldNotCreateShareableLink:"Kunne ikke oprette delbart link.",couldNotCreateShareableLinkTooBig:"Kunne ikke oprette delbart link: scenen er for stor",couldNotLoadInvalidFile:"Kunne ikke indlæse ugyldig fil",importBackendFailed:"Import fra backend mislykkedes.",cannotExportEmptyCanvas:"Kan ikke eksportere tomt lærred.",couldNotCopyToClipboard:"Kunne ikke kopiere til udklipsholderen.",decryptFailed:"Kunne ikke dekryptere data.",uploadedSecurly:"Upload er blevet sikret med ende-til-ende kryptering, hvilket betyder, at Excalidraw server og tredjeparter ikke kan læse indholdet.",loadSceneOverridePrompt:"Indlæsning af ekstern tegning erstatter dit eksisterende indhold. Ønsker du at fortsætte?",collabStopOverridePrompt:`Stopper sessionen vil overskrive din tidligere, lokalt gemte tegning. Er du sikker?
2
2
 
3
3
  (Hvis du ønsker at beholde din lokale tegning, skal du blot lukke browserfanen i stedet.)`,errorAddingToLibrary:"Kunne ikke tilføje element til biblioteket",errorRemovingFromLibrary:"Kunne ikke fjerne element fra biblioteket",confirmAddLibrary:"Dette vil tilføje {{numShapes}} form(er) til dit bibliotek. Er du sikker?",imageDoesNotContainScene:"Dette billede synes ikke at indeholde scene data. Har du aktiveret scene indlejring under eksport?",cannotRestoreFromImage:"Scene kunne ikke gendannes fra denne billedfil",invalidSceneUrl:"Kunne ikke importere scene fra den angivne URL. Det er enten misdannet eller indeholder ikke gyldige Excalidraw JSON data.",resetLibrary:"Dette vil rydde hele lærredet. Er du sikker?",removeItemsFromsLibrary:"Slet {{count}} vare(r) fra biblioteket?",invalidEncryptionKey:"Krypteringsnøglen skal være på 22 tegn. Live-samarbejde er deaktiveret.",collabOfflineWarning:`Ingen internetforbindelse tilgængelig.
4
4
  Dine ændringer vil ikke blive gemt!`},l={unsupportedFileType:"Filtypen er ikke understøttet.",imageInsertError:"Billedet kunne ikke indsættes. Prøv igen senere...",fileTooBig:"Filen er for stor. Maksimal tilladt størrelse er {{maxSize}}.",svgImageInsertError:"Kunne ikke indsætte SVG-billede. SVG-markup'en ser ugyldig ud.",failedToFetchImage:"Dataene blev ikke hentet.",invalidSVGString:"Ugyldig SVG.",cannotResolveCollabServer:"Kunne ikke oprette forbindelse til samarbejdsserveren. Genindlæs siden og prøv igen.",importLibraryError:"Biblioteket kunne ikke indlæses",collabSaveFailed:"Kunne ikke gemme i databasen. Hvis problemerne fortsætter, bør du gemme din fil lokalt for at sikre, at du ikke mister dit arbejde.",collabSaveFailed_sizeExceeded:"Kunne ikke gemme i databasen, lærredet lader til at være for stort. Du bør gemme filen lokalt for at sikre, at du ikke mister dit arbejde.",imageToolNotSupported:"Billeder er deaktiveret.",brave_measure_text_error:{line1:"Det ser ud til, at du bruger Brave browser med indstillingen <bold>Aggressively Block Fingerprinting</bold> aktiveret.",line2:"Dette kan resultere i brud på <bold>tekstelementerne</bold> i dine tegninger.",line3:"Vi anbefaler kraftigt at deaktivere denne indstilling. Du kan følge <link>disse trin</link> om, hvordan du gør det.",line4:"Hvis deaktivering af denne indstilling ikke løser visning af tekstelementer, åbn venligst et <issueLink>issue</issueLink> på vores GitHub, eller skriv os på <discordLink>Discord</discordLink>"},libraryElementTypeError:{embeddable:"Indlejringselementer kan ikke tilføjes til biblioteket.",iframe:"IFrame elementer kan ikke tilføjes til biblioteket.",image:"Understøttelse af at tilføje billeder til biblioteket kommer snart!"},asyncPasteFailedOnRead:"Kunne ikke indsætte (kan ikke læse fra systemets udklipsholder).",asyncPasteFailedOnParse:"Kunne ikke indsætte.",copyToSystemClipboardFailed:"Kunne ikke kopiere til udklipsholderen."},n={selection:"&Udvalg",image:"Indsæt billeder",rectangle:"Rektangler",diamond:"Diamanter",ellipse:"Ellipser",arrow:"Pile",line:"Linje",freedraw:"Tegn",text:"Tekster",library:"~Bibliotek",lock:"Behold valgte værktøj aktiv efter tegning",penMode:"Pen-tilstand - forhindrer berøring",link:"Tilføj/ Opdater link for en valgt form",eraser:"Slet",frame:"Rammeværktøj",magicframe:"Wireframe til kode",embeddable:"Web-indlejring",laser:"Lasermarkør",hand:"Hånd (panorering værktøj)",extraTools:"Flere værktøjer",mermaidToExcalidraw:"Mermaid til Excalidraw",magicSettings:"AI indstillinger"},a={canvasActions:"Lærred handlinger",selectedShapeActions:"Valgte figurhandlinger",shapes:"Former"},o={canvasPanning:"For at flytte lærred, hold musehjulet eller mellemrumstasten mens du trækker, eller brug håndværktøjet",linearElement:"Klik for at starte flere punkter, træk for enkelt linje",freeDraw:"Klik og træk, slip når du er færdig",text:"Tip: du kan også tilføje tekst ved at dobbeltklikke hvor som helst med det valgte værktøj",embeddable:"Klik på træk for at oprette en hjemmeside indlejret",text_selected:"",text_editing:"",linearElementMulti:"",lockAngle:"",resize:"",resizeImage:"",rotate:"",lineEditor_info:"",lineEditor_pointSelected:"",lineEditor_nothingSelected:"",placeImage:"",publishLibrary:"",bindTextToElement:"",deepBoxSelect:"",eraserRevert:"",firefox_clipboard_write:"",disableSnapping:""},d={cannotShowPreview:"Kan ikke vise forhåndsvisning",canvasTooBig:"Lærredet kan være for stort.",canvasTooBigTip:"Tip: Prøv at flytte de fjerneste elementer lidt tættere sammen."},s={headingMain:"Der opstod en fejl. Prøv <button>at genindlæse siden</button>.",clearCanvasMessage:"",clearCanvasCaveat:"",trackedToSentry:"",openIssueMessage:"<button></button> Kopiere og indsæt venligst oplysningerne nedenfor i et GitHub problem.",sceneContent:"Scene indhold:"},k={desc_intro:"Du kan invitere folk til din nuværende scene, så de kan samarbejde med dig.",desc_privacy:"Bare rolig, sessionen bruger end-to-end kryptering, så uanset hvad du tegner vil det forblive privat. Ikke engang vores server vil kunne se, hvad du kommer op med.",button_startSession:"Start session",button_stopSession:"Stop session",desc_inProgressIntro:"Live-samarbejde session er nu begyndt.",desc_shareLink:"Del dette link med enhver, du ønsker at samarbejde med:",desc_exitSession:"",shareTitle:""},g={title:"Fejl"},m={disk_title:"Gem til disk",disk_details:"",disk_button:"",link_title:"",link_details:"",link_button:"",excalidrawplus_description:"",excalidrawplus_button:"",excalidrawplus_exportError:""},b={blog:"Læs vores blog",click:"",deepSelect:"",deepBoxSelect:"",curvedArrow:"",curvedLine:"",documentation:"",doubleClick:"",drag:"",editor:"",editLineArrowPoints:"",editText:"",github:"",howto:"",or:"",preventBinding:"",tools:"",shortcuts:"",textFinish:"",textNewLine:"",title:"",view:"",zoomToFit:"",zoomToSelection:"",toggleElementLock:"",movePageUpDown:"",movePageLeftRight:""},c={title:""},p={title:"",itemName:"",authorName:"",githubUsername:"",twitterUsername:"",libraryName:"",libraryDesc:"",website:"",placeholder:{authorName:"",libraryName:"",libraryDesc:"",githubHandle:"",twitterHandle:"",website:""},errors:{required:"",website:""},noteDescription:"",noteGuidelines:"",noteLicense:"",noteItems:"",atleastOneLibItem:"",republishWarning:""},u={title:"",content:""},x={resetLibrary:"",removeItemsFromLib:""},v={header:"",label:{withBackground:"",onlySelected:"",darkMode:"",embedScene:"",scale:"",padding:""},tooltip:{embedScene:""},title:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""},button:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""}},E={tooltip:"",link:""},f={angle:"",element:"",elements:"",height:"",scene:"",selected:"",storage:"",title:"Statistik for nørder",total:"",version:"",versionCopy:"Klik for at kopiere",versionNotAvailable:"",width:"Bredde"},h={addedToLibrary:"",copyStyles:"Kopieret stilarter.",copyToClipboard:"Kopieret til klippebord.",copyToClipboardAsPng:`Kopieret {{exportSelection}} til klippebord som PNG
@@ -1 +1 @@
1
- "use strict";const c=require("react/jsx-runtime"),R=require("react-i18next"),m=require("@mantine/core"),l=require("react"),H=require("@layers-app/shared"),I=({isCloseModal:a,setCloseModalOpen:t,confirmClose:d})=>{const{t:f}=R.useTranslation();return c.jsx(m.Modal,{opened:a,onClose:()=>{t(!1)},centered:!0,title:f("editor.unsavedChanges.title"),closeOnClickOutside:!0,closeOnEscape:!0,size:"500",zIndex:999,children:c.jsxs("div",{children:[c.jsx(m.Text,{mb:"md",children:f("editor.unsavedChanges.message")}),c.jsxs(m.Flex,{justify:"flex-end",gap:"sm",children:[c.jsx(m.Button,{variant:"default",onClick:()=>{t(!1)},fullWidth:!0,children:f("editor.unsavedChanges.cancel")}),c.jsx(m.Button,{color:"red",onClick:d,fullWidth:!0,children:f("editor.unsavedChanges.closeWithoutSaving")})]})]})})},M={elements:[],files:{},appState:{},previewSVG:null},K=a=>{try{const t=JSON.parse(a);if(Array.isArray(t))return{...M,elements:t};if(t&&typeof t=="object")return{elements:Array.isArray(t.elements)?t.elements:[],files:t.files&&typeof t.files=="object"?t.files:{},appState:t.appState&&typeof t.appState=="object"?t.appState:{},previewSVG:typeof t.previewSVG=="string"?t.previewSVG:typeof t.previewSvg=="string"?t.previewSvg:null}}catch{}return{...M}},U={en:"en-US",ru:"ru-RU",fr:"fr-FR",de:"de-DE",es:"es-ES",it:"it-IT",pt:"pt-BR",zh:"zh-CN",ja:"ja-JP",ko:"ko-KR",ar:"ar-SA",hi:"hi-IN",nl:"nl-NL",tr:"tr-TR",pl:"pl-PL",sv:"sv-SE",cs:"cs-CZ",uk:"uk-UA",ro:"ro-RO",fi:"fi-FI",da:"da-DK",no:"no-NO",el:"el-GR",he:"he-IL",th:"th-TH",id:"id-ID",ms:"ms-MY",vi:"vi-VN"};let p=null;const X=l.lazy(async()=>{var t;const a=await Promise.resolve().then(()=>require("./layers.CV8UgwCq.js")).then(d=>d.index);return!p&&a&&(p=a.exportToSvg||((t=a.default)==null?void 0:t.exportToSvg)||a.default),{default:a.Excalidraw}}),J=()=>{const[a,t]=l.useState(null),d=l.useCallback(f=>t(f),[]);return[a,d]};function P({onSave:a,initialElements:t,initialAppState:d,initialFiles:f,isShown:u=!1,onDelete:L,onClose:q,isEdited:D}){const[n,A]=J(),{i18n:g,t:B}=R.useTranslation(),{colorScheme:N}=m.useMantineColorScheme(),k=l.useRef(!1),[h,W]=l.useState(t),[C,z]=l.useState(f),[_,O]=l.useState(u);l.useEffect(()=>{u&&O(!0)},[u]),l.useEffect(()=>{!u||k.current||(k.current=!0,Promise.resolve().then(()=>require("./layers.Dyvby5gX.js")))},[u]),l.useEffect(()=>{u&&setTimeout(()=>{var e;(e=n==null?void 0:n.refresh)==null||e.call(n)},500)},[u,n]),l.useEffect(()=>{if(!u)return;const e=(r,s)=>{const i=B(r);return i.startsWith("editor.menu")?s:i},x=e("editor.menu.excalidraw.tools.frameTool",g.language==="ru"?"Инструмент рамки":g.language==="es"?"Herramienta de marco":"Frame tool"),o=e("editor.menu.excalidraw.tools.webEmbed",g.language==="ru"?"Веб-встраивание":g.language==="es"?"Incrustación web":"Web Embed"),v=e("editor.menu.excalidraw.tools.generate",g.language==="ru"?"Генерировать":g.language==="es"?"Generar":"Generate"),y={"Frame tool":x,"Web Embed":o,"Web embeded":o,Generate:v},T=()=>{const r=document.querySelector(".App-toolbar__extra-tools-dropdown");if(!r)return;const s=document.createTreeWalker(r,NodeFilter.SHOW_TEXT,null);let i;for(;i=s.nextNode();)if(i.nodeType===Node.TEXT_NODE&&i.textContent){const j=i.textContent.trim();for(const[S,E]of Object.entries(y))if(j===S&&E&&!j.includes(E)){i.textContent=i.textContent.replace(S,E);break}}},b=()=>{setTimeout(()=>{T()},0)},w=setTimeout(()=>{const r=document.querySelector(".excalidraw-container");if(r){const s=r.querySelector(".App-toolbar__extra-tools-trigger");s&&s.addEventListener("click",b)}},300);return()=>{clearTimeout(w);const r=document.querySelector(".excalidraw-container");if(r){const s=r.querySelector(".App-toolbar__extra-tools-trigger");s&&s.removeEventListener("click",b)}}},[u,g.language]);const G=l.useCallback(async()=>{var T,b,w;let e=p;if(!e||typeof e!="function"){const r=await Promise.resolve().then(()=>require("./layers.CV8UgwCq.js")).then(s=>s.index);e=r.exportToSvg||((T=r.default)==null?void 0:T.exportToSvg)||r.default,e&&typeof e=="function"&&(p=e)}if(!e||typeof e!="function"){const r=await Promise.resolve().then(()=>require("./layers.CV8UgwCq.js")).then(i=>i.index),s=r?Object.keys(r):[];throw console.error("Excalidraw module structure:",{keys:s,hasExportToSvg:r&&"exportToSvg"in r,hasDefault:r&&"default"in r,moduleType:typeof r,module:r}),new Error(`exportToSvg is not available from @excalidraw/excalidraw. Module keys: ${s.join(", ")}. Please ensure @excalidraw/excalidraw is properly installed.`)}const x=((b=n==null?void 0:n.getAppState)==null?void 0:b.call(n))??d,o=await e({appState:x,elements:h,files:C}),v=(w=o==null?void 0:o.firstElementChild)==null?void 0:w.firstElementChild,y=o.getAttribute("viewBox");if(y!=null){const r=y.split(" ");o.setAttribute("width",r[2]),o.setAttribute("height",r[3])}return v&&v.tagName==="style"&&v.remove(),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("display","block"),o.classList.add("excalidraw-svg"),o.outerHTML},[h,C,n,d]),V=()=>{if(h&&h.filter(e=>!e.isDeleted).length>0){const e=n==null?void 0:n.getAppState(),x={exportBackground:e==null?void 0:e.exportBackground,exportScale:e==null?void 0:e.exportScale,exportWithDarkMode:(e==null?void 0:e.theme)==="dark",isBindingEnabled:e==null?void 0:e.isBindingEnabled,isLoading:e==null?void 0:e.isLoading,name:e==null?void 0:e.name,theme:e==null?void 0:e.theme,viewBackgroundColor:e==null?void 0:e.viewBackgroundColor,viewModeEnabled:e==null?void 0:e.viewModeEnabled,zenModeEnabled:e==null?void 0:e.zenModeEnabled,zoom:e==null?void 0:e.zoom};(async()=>{const o=await G();a(h,x,C,o)})()}else L()},F=(e,x,o)=>{(e==null?void 0:e.length)!==(t==null?void 0:t.length)&&(D.current=!0),W(e),z(o)};return c.jsx(H.BottomDrawerWithoutHeader,{opened:u,onClose:q,onSave:V,className:"excaildraw-modal",closeOnEscape:!1,children:_&&c.jsx(l.Suspense,{fallback:c.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",minHeight:"400px"},children:c.jsx(m.Loader,{size:"sm"})}),children:c.jsx(X,{langCode:U[g.language],theme:N,onChange:F,excalidrawAPI:A,initialData:{appState:{...d||{isLoading:!1}},elements:t,files:f}})})})}exports.ConfirmModal=I;exports.ExcalidrawModal=P;exports.parseExcalidrawData=K;
1
+ "use strict";const c=require("react/jsx-runtime"),R=require("react-i18next"),m=require("@mantine/core"),l=require("react"),H=require("@layers-app/shared"),I=({isCloseModal:a,setCloseModalOpen:t,confirmClose:d})=>{const{t:f}=R.useTranslation();return c.jsx(m.Modal,{opened:a,onClose:()=>{t(!1)},centered:!0,title:f("editor.unsavedChanges.title"),closeOnClickOutside:!0,closeOnEscape:!0,size:"500",zIndex:999,children:c.jsxs("div",{children:[c.jsx(m.Text,{mb:"md",children:f("editor.unsavedChanges.message")}),c.jsxs(m.Flex,{justify:"flex-end",gap:"sm",children:[c.jsx(m.Button,{variant:"default",onClick:()=>{t(!1)},fullWidth:!0,children:f("editor.unsavedChanges.cancel")}),c.jsx(m.Button,{color:"red",onClick:d,fullWidth:!0,children:f("editor.unsavedChanges.closeWithoutSaving")})]})]})})},M={elements:[],files:{},appState:{},previewSVG:null},K=a=>{try{const t=JSON.parse(a);if(Array.isArray(t))return{...M,elements:t};if(t&&typeof t=="object")return{elements:Array.isArray(t.elements)?t.elements:[],files:t.files&&typeof t.files=="object"?t.files:{},appState:t.appState&&typeof t.appState=="object"?t.appState:{},previewSVG:typeof t.previewSVG=="string"?t.previewSVG:typeof t.previewSvg=="string"?t.previewSvg:null}}catch{}return{...M}},U={en:"en-US",ru:"ru-RU",fr:"fr-FR",de:"de-DE",es:"es-ES",it:"it-IT",pt:"pt-BR",zh:"zh-CN",ja:"ja-JP",ko:"ko-KR",ar:"ar-SA",hi:"hi-IN",nl:"nl-NL",tr:"tr-TR",pl:"pl-PL",sv:"sv-SE",cs:"cs-CZ",uk:"uk-UA",ro:"ro-RO",fi:"fi-FI",da:"da-DK",no:"no-NO",el:"el-GR",he:"he-IL",th:"th-TH",id:"id-ID",ms:"ms-MY",vi:"vi-VN"};let p=null;const X=l.lazy(async()=>{var t;const a=await Promise.resolve().then(()=>require("./layers.BfaQveOZ.js")).then(d=>d.index);return!p&&a&&(p=a.exportToSvg||((t=a.default)==null?void 0:t.exportToSvg)||a.default),{default:a.Excalidraw}}),J=()=>{const[a,t]=l.useState(null),d=l.useCallback(f=>t(f),[]);return[a,d]};function P({onSave:a,initialElements:t,initialAppState:d,initialFiles:f,isShown:u=!1,onDelete:L,onClose:q,isEdited:D}){const[n,A]=J(),{i18n:g,t:B}=R.useTranslation(),{colorScheme:N}=m.useMantineColorScheme(),k=l.useRef(!1),[h,W]=l.useState(t),[C,z]=l.useState(f),[_,O]=l.useState(u);l.useEffect(()=>{u&&O(!0)},[u]),l.useEffect(()=>{!u||k.current||(k.current=!0,Promise.resolve().then(()=>require("./layers.Dyvby5gX.js")))},[u]),l.useEffect(()=>{u&&setTimeout(()=>{var e;(e=n==null?void 0:n.refresh)==null||e.call(n)},500)},[u,n]),l.useEffect(()=>{if(!u)return;const e=(r,s)=>{const i=B(r);return i.startsWith("editor.menu")?s:i},x=e("editor.menu.excalidraw.tools.frameTool",g.language==="ru"?"Инструмент рамки":g.language==="es"?"Herramienta de marco":"Frame tool"),o=e("editor.menu.excalidraw.tools.webEmbed",g.language==="ru"?"Веб-встраивание":g.language==="es"?"Incrustación web":"Web Embed"),v=e("editor.menu.excalidraw.tools.generate",g.language==="ru"?"Генерировать":g.language==="es"?"Generar":"Generate"),y={"Frame tool":x,"Web Embed":o,"Web embeded":o,Generate:v},T=()=>{const r=document.querySelector(".App-toolbar__extra-tools-dropdown");if(!r)return;const s=document.createTreeWalker(r,NodeFilter.SHOW_TEXT,null);let i;for(;i=s.nextNode();)if(i.nodeType===Node.TEXT_NODE&&i.textContent){const j=i.textContent.trim();for(const[S,E]of Object.entries(y))if(j===S&&E&&!j.includes(E)){i.textContent=i.textContent.replace(S,E);break}}},b=()=>{setTimeout(()=>{T()},0)},w=setTimeout(()=>{const r=document.querySelector(".excalidraw-container");if(r){const s=r.querySelector(".App-toolbar__extra-tools-trigger");s&&s.addEventListener("click",b)}},300);return()=>{clearTimeout(w);const r=document.querySelector(".excalidraw-container");if(r){const s=r.querySelector(".App-toolbar__extra-tools-trigger");s&&s.removeEventListener("click",b)}}},[u,g.language]);const G=l.useCallback(async()=>{var T,b,w;let e=p;if(!e||typeof e!="function"){const r=await Promise.resolve().then(()=>require("./layers.BfaQveOZ.js")).then(s=>s.index);e=r.exportToSvg||((T=r.default)==null?void 0:T.exportToSvg)||r.default,e&&typeof e=="function"&&(p=e)}if(!e||typeof e!="function"){const r=await Promise.resolve().then(()=>require("./layers.BfaQveOZ.js")).then(i=>i.index),s=r?Object.keys(r):[];throw console.error("Excalidraw module structure:",{keys:s,hasExportToSvg:r&&"exportToSvg"in r,hasDefault:r&&"default"in r,moduleType:typeof r,module:r}),new Error(`exportToSvg is not available from @excalidraw/excalidraw. Module keys: ${s.join(", ")}. Please ensure @excalidraw/excalidraw is properly installed.`)}const x=((b=n==null?void 0:n.getAppState)==null?void 0:b.call(n))??d,o=await e({appState:x,elements:h,files:C}),v=(w=o==null?void 0:o.firstElementChild)==null?void 0:w.firstElementChild,y=o.getAttribute("viewBox");if(y!=null){const r=y.split(" ");o.setAttribute("width",r[2]),o.setAttribute("height",r[3])}return v&&v.tagName==="style"&&v.remove(),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("display","block"),o.classList.add("excalidraw-svg"),o.outerHTML},[h,C,n,d]),V=()=>{if(h&&h.filter(e=>!e.isDeleted).length>0){const e=n==null?void 0:n.getAppState(),x={exportBackground:e==null?void 0:e.exportBackground,exportScale:e==null?void 0:e.exportScale,exportWithDarkMode:(e==null?void 0:e.theme)==="dark",isBindingEnabled:e==null?void 0:e.isBindingEnabled,isLoading:e==null?void 0:e.isLoading,name:e==null?void 0:e.name,theme:e==null?void 0:e.theme,viewBackgroundColor:e==null?void 0:e.viewBackgroundColor,viewModeEnabled:e==null?void 0:e.viewModeEnabled,zenModeEnabled:e==null?void 0:e.zenModeEnabled,zoom:e==null?void 0:e.zoom};(async()=>{const o=await G();a(h,x,C,o)})()}else L()},F=(e,x,o)=>{(e==null?void 0:e.length)!==(t==null?void 0:t.length)&&(D.current=!0),W(e),z(o)};return c.jsx(H.BottomDrawerWithoutHeader,{opened:u,onClose:q,onSave:V,className:"excaildraw-modal",closeOnEscape:!1,children:_&&c.jsx(l.Suspense,{fallback:c.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",minHeight:"400px"},children:c.jsx(m.Loader,{size:"sm"})}),children:c.jsx(X,{langCode:U[g.language],theme:N,onChange:F,excalidrawAPI:A,initialData:{appState:{...d||{isLoading:!1}},elements:t,files:f}})})})}exports.ConfirmModal=I;exports.ExcalidrawModal=P;exports.parseExcalidrawData=K;
@@ -1,4 +1,4 @@
1
- import { i as X } from "./layers.Chd1p2rt.js";
1
+ import { n as X } from "./layers.CNTFg_PV.js";
2
2
  import { c as T } from "./layers.BpilXLfW.js";
3
3
  function N(H, Y) {
4
4
  for (var d = 0; d < Y.length; d++) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.CV8UgwCq.js");var e={paste:"Qoyıw",pasteAsPlaintext:"Ápiwayı tekst retinde qoyıw",pasteCharts:"Diagrammalardı qoyıw",selectAll:"Barlıǵın tańlaw",multiSelect:"",moveCanvas:"",cut:"Qıyıw",copy:"Kóshirip alıw",copyAsPng:"Almasıw buferine PNG retinde kóshirip alıw",copyAsSvg:"Almasıw buferine SVG retinde kóshirip alıw",copyText:"Almasıw buferine tekst retinde kóshirip alıw",copySource:"",convertToCode:"",bringForward:"",sendToBack:"",bringToFront:"",sendBackward:"",delete:"Óshiriw",copyStyles:"",pasteStyles:"",stroke:"Jiyek",background:"Fon",fill:"",strokeWidth:"",strokeStyle:"",strokeStyle_solid:"",strokeStyle_dashed:"",strokeStyle_dotted:"",sloppiness:"",opacity:"",textAlign:"",edges:"Qırlar",sharp:"",round:"",arrowheads:"",arrowhead_none:"Joq",arrowhead_arrow:"Jebe",arrowhead_bar:"",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Shrift ólshemi",fontFamily:"Shrift toplamı",addWatermark:"",handDrawn:"",normal:"",code:"Kod",small:"",medium:"Ortasha",large:"Úlken",veryLarge:"Júdá úlken",solid:"",hachure:"",zigzag:"Zigzag",crossHatch:"",thin:"Jińishke",bold:"Qalıń",left:"",center:"",right:"",extraBold:"",architect:"",artist:"Súwretshi",cartoonist:"",fileTitle:"Fayl ataması",colorPicker:"Reńdi tańlaw",canvasColors:"",canvasBackground:"",drawingCanvas:"",layers:"Qatlamlar",actions:"Háreketler",language:"Til",liveCollaboration:"",duplicateSelection:"Nusqa",untitled:"Atamasız",name:"Ataması",yourName:"Atıńız",madeWithExcalidraw:"Excalidraw járdeminde islengen",group:"",ungroup:"",collaborators:"Qatnasıwshılar",showGrid:"",addToLibrary:"Kitapxanaǵa qosıw",removeFromLibrary:"Kitapxanadan alıp taslaw",libraryLoadingMessage:"Kitapxana júklenbekte…",libraries:"Kitapxanalardı kóriw",loadingScene:"Saxna júklenbekte…",align:"",alignTop:"",alignBottom:"",alignLeft:"",alignRight:"",centerVertically:"",centerHorizontally:"",distributeHorizontally:"",distributeVertically:"",flipHorizontal:"",flipVertical:"",viewMode:"Kóriw rejimi",share:"Bólisiw",showStroke:"",showBackground:"",toggleTheme:"Temanı ózgertiw",personalLib:"Jeke kitapxana",excalidrawLib:"Excalidraw kitapxanası",decreaseFontSize:"Shrift ólshemin kishireytiw",increaseFontSize:"Shrift ólshemin úlkeytiw",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"Siltemeni ózgertiw",editEmbed:"",create:"Siltemeni jaratıw",createEmbed:"",label:"Silteme",labelEmbed:"",empty:""},lineEditor:{edit:"Qatardı ózgertiw",exit:"Qatardı ózgertiw redaktorınan shıǵıw"},elementLock:{lock:"Qulıplaw",unlock:"Qulıptan shıǵarıw",lockAll:"Barlıǵın qulıplaw",unlockAll:"Barlıǵın qulıptan shıǵarıw"},statusPublished:"",sidebarLock:"",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},a={noItems:"",hint_emptyLibrary:"",hint_emptyPrivateLibrary:""},r={clearReset:"",exportJSON:"",exportImage:"Súwretti eksportlaw...",export:"Retinde saqlaw...",copyToClipboard:"Almasıw buferine kóshirip alındı",save:"Ámeldegi faylǵa saqlaw",saveAs:"Retinde saqlaw",load:"Ashıw",getShareableLink:"",close:"Jabıw",selectLanguage:"Tildi tańlaw",scrollBackToContent:"",zoomIn:"",zoomOut:"",resetZoom:"",menu:"Menyu",done:"Tayın",edit:"Ózgertiw",undo:"",redo:"",resetLibrary:"",createNewRoom:"",fullScreen:"Tolıq ekran",darkMode:"Qarańǵı tema",lightMode:"Jaqtı tema",zenMode:"",objectsSnapMode:"",exitZenMode:"",cancel:"Biykarlaw",clear:"Tazalaw",remove:"Óshiriw",embed:"",publishLibrary:"Jariyalaw",submit:"Jiberiw",confirm:"Tastıyıqlaw",embeddableInteractionButton:""},t={clearReset:"",couldNotCreateShareableLink:"",couldNotCreateShareableLinkTooBig:"",couldNotLoadInvalidFile:"",importBackendFailed:"",cannotExportEmptyCanvas:"",couldNotCopyToClipboard:"Almasıw buferine kóshirip alıw ámelge aspadı.",decryptFailed:"",uploadedSecurly:"",loadSceneOverridePrompt:"",collabStopOverridePrompt:"",errorAddingToLibrary:"",errorRemovingFromLibrary:"",confirmAddLibrary:"",imageDoesNotContainScene:"",cannotRestoreFromImage:"",invalidSceneUrl:"",resetLibrary:"",removeItemsFromsLibrary:"",invalidEncryptionKey:"",collabOfflineWarning:""},i={unsupportedFileType:"",imageInsertError:"",fileTooBig:"",svgImageInsertError:"",failedToFetchImage:"",invalidSVGString:"Jaramsız SVG.",cannotResolveCollabServer:"",importLibraryError:"Kitapxananı júklew ámelge aspadı",collabSaveFailed:"",collabSaveFailed_sizeExceeded:"",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},l={selection:"",image:"Súwret qoyıw",rectangle:"Tórt múyeshlik",diamond:"",ellipse:"",arrow:"",line:"Sızıq",freedraw:"Sızıw",text:"Tekst",library:"Kitapxana",lock:"",penMode:"",link:"",eraser:"Óshirgish",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},o={canvasActions:"",selectedShapeActions:"",shapes:"Figuralar"},n={canvasPanning:"",linearElement:"",freeDraw:"",text:"",embeddable:"",text_selected:"",text_editing:"",linearElementMulti:"",lockAngle:"",resize:"",resizeImage:"",rotate:"",lineEditor_info:"",lineEditor_pointSelected:"",lineEditor_nothingSelected:"",placeImage:"",publishLibrary:"",bindTextToElement:"Tekst qosıw ushın Enter túymesin basıń",deepBoxSelect:"",eraserRevert:"",firefox_clipboard_write:"",disableSnapping:""},s={cannotShowPreview:"Aldınnan kóriwdi kórsetiw múmkin emes",canvasTooBig:"",canvasTooBigTip:""},u={headingMain:"",clearCanvasMessage:"",clearCanvasCaveat:"",trackedToSentry:"",openIssueMessage:"",sceneContent:""},d={desc_intro:"",desc_privacy:"",button_startSession:"",button_stopSession:"",desc_inProgressIntro:"",desc_shareLink:"",desc_exitSession:"",shareTitle:""},c={title:"Qátelik"},m={disk_title:"Diskke saqlaw",disk_details:"",disk_button:"Faylǵa saqlaw",link_title:"",link_details:"",link_button:"Siltemege eksportlaw",excalidrawplus_description:"",excalidrawplus_button:"Eksportlaw",excalidrawplus_exportError:""},p={blog:"Biziń blogtı oqıń",click:"basıw",deepSelect:"",deepBoxSelect:"",curvedArrow:"",curvedLine:"",documentation:"Hújjetshilik",doubleClick:"",drag:"",editor:"Redaktor",editLineArrowPoints:"",editText:"",github:"",howto:"",or:"yamasa",preventBinding:"",tools:"Ásbaplar",shortcuts:"",textFinish:"",textNewLine:"",title:"Járdem",view:"Kóriw",zoomToFit:"",zoomToSelection:"",toggleElementLock:"",movePageUpDown:"",movePageLeftRight:""},w={title:""},b={title:"",itemName:"",authorName:"Avtor atı",githubUsername:"GitHub paydalanıwshı atı",twitterUsername:"Twitter paydalanıwshı atı",libraryName:"Kitapxana ataması",libraryDesc:"",website:"Veb-sayt",placeholder:{authorName:"Atıńız yamasa paydalanıwshı atı",libraryName:"Kitapxanańız ataması",libraryDesc:"",githubHandle:"",twitterHandle:"",website:"Jeke veb-saytıńız yamasa basqa saytqa silteme (májbúriy emes)"},errors:{required:"Májbúriy",website:"Jaramlı URL mánzil kirgiziń"},noteDescription:"",noteGuidelines:"",noteLicense:"",noteItems:"",atleastOneLibItem:"",republishWarning:""},g={title:"Kitapxana jiberildi",content:""},x={resetLibrary:"Kitapxananı qayta ornatıw",removeItemsFromLib:""},h={header:"Súwretti eksportlaw",label:{withBackground:"Fon",onlySelected:"",darkMode:"Qarańǵı tema",embedScene:"",scale:"Kólem",padding:""},tooltip:{embedScene:""},title:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""},button:{exportToPng:"PNG",exportToSvg:"SVG",copyPngToClipboard:"Almasıw buferine kóshirip alıw"}},y={tooltip:"",link:""},k={angle:"",element:"Element",elements:"Elementler",height:"",scene:"Saxna",selected:"Tańlandı",storage:"",title:"",total:"",version:"Versiya",versionCopy:"Kóshirip alıw ushın basıń",versionNotAvailable:"",width:"Eni"},F={addedToLibrary:"Kitapxanaǵa qosıldı",copyStyles:"",copyToClipboard:"Almasıw buferine kóshirip alındı.",copyToClipboardAsPng:"",fileSaved:"Fayl saqlandı.",fileSavedToFilename:"{filename} saqlandı",canvas:"",selection:"",pasteAsSingleElement:"",unableToEmbed:"",unrecognizedLinkFormat:""},S={transparent:"",black:"Qara",white:"Aq",red:"Qızıl",pink:"Qızǵılt",grape:"",violet:"Qızǵılt kók",gray:"",blue:"Kók",cyan:"Kók aspan",teal:"Piruza",green:"Jasıl",yellow:"Sarı",orange:"Qızǵılt sarı",bronze:""},v={app:{center_heading:"",center_heading_plus:"Excalidraw+ ge ótiwdi qáleysiz be?",menuHint:"Eksportlaw, sazlawlar, tiller, ..."},defaults:{menuHint:"Eksportlaw, sazlawlar hám basqa...",center_heading:"Diagrammalar. Ápiwayı.",toolbarHint:"",helpHint:""}},T={mostUsedCustomColors:"Kóp qollanılatuǵın arnawlı reńler",colors:"Reńler",shades:"",hexCode:"",noShades:""},A={action:{exportToImage:{title:"Súwret retinde eksportlaw",button:"Súwret retinde eksportlaw",description:""},saveToDisk:{title:"Diskke saqlaw",button:"Diskke saqlaw",description:""},excalidrawPlus:{title:"Excalidraw+",button:"",description:""}},modal:{loadFromFile:{title:"Fayldan júklew",button:"Fayldan júklew",description:""},shareableLink:{title:"Siltemeden júklew",button:"",description:""}}},E={title:"",button:"",description:"",syntax:"",preview:""},_={labels:e,library:a,buttons:r,alerts:t,errors:i,toolBar:l,headings:o,hints:n,canvasError:s,errorSplash:u,roomDialog:d,errorDialog:c,exportDialog:m,helpDialog:p,clearCanvasDialog:w,publishDialog:b,publishSuccessDialog:g,confirmDialog:x,imageExportDialog:h,encrypted:y,stats:k,toast:F,colors:S,welcomeScreen:v,colorPicker:T,overwriteConfirm:A,mermaid:E};exports.alerts=t;exports.buttons=r;exports.canvasError=s;exports.clearCanvasDialog=w;exports.colorPicker=T;exports.colors=S;exports.confirmDialog=x;exports.default=_;exports.encrypted=y;exports.errorDialog=c;exports.errorSplash=u;exports.errors=i;exports.exportDialog=m;exports.headings=o;exports.helpDialog=p;exports.hints=n;exports.imageExportDialog=h;exports.labels=e;exports.library=a;exports.mermaid=E;exports.overwriteConfirm=A;exports.publishDialog=b;exports.publishSuccessDialog=g;exports.roomDialog=d;exports.stats=k;exports.toast=F;exports.toolBar=l;exports.welcomeScreen=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.BfaQveOZ.js");var e={paste:"Qoyıw",pasteAsPlaintext:"Ápiwayı tekst retinde qoyıw",pasteCharts:"Diagrammalardı qoyıw",selectAll:"Barlıǵın tańlaw",multiSelect:"",moveCanvas:"",cut:"Qıyıw",copy:"Kóshirip alıw",copyAsPng:"Almasıw buferine PNG retinde kóshirip alıw",copyAsSvg:"Almasıw buferine SVG retinde kóshirip alıw",copyText:"Almasıw buferine tekst retinde kóshirip alıw",copySource:"",convertToCode:"",bringForward:"",sendToBack:"",bringToFront:"",sendBackward:"",delete:"Óshiriw",copyStyles:"",pasteStyles:"",stroke:"Jiyek",background:"Fon",fill:"",strokeWidth:"",strokeStyle:"",strokeStyle_solid:"",strokeStyle_dashed:"",strokeStyle_dotted:"",sloppiness:"",opacity:"",textAlign:"",edges:"Qırlar",sharp:"",round:"",arrowheads:"",arrowhead_none:"Joq",arrowhead_arrow:"Jebe",arrowhead_bar:"",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Shrift ólshemi",fontFamily:"Shrift toplamı",addWatermark:"",handDrawn:"",normal:"",code:"Kod",small:"",medium:"Ortasha",large:"Úlken",veryLarge:"Júdá úlken",solid:"",hachure:"",zigzag:"Zigzag",crossHatch:"",thin:"Jińishke",bold:"Qalıń",left:"",center:"",right:"",extraBold:"",architect:"",artist:"Súwretshi",cartoonist:"",fileTitle:"Fayl ataması",colorPicker:"Reńdi tańlaw",canvasColors:"",canvasBackground:"",drawingCanvas:"",layers:"Qatlamlar",actions:"Háreketler",language:"Til",liveCollaboration:"",duplicateSelection:"Nusqa",untitled:"Atamasız",name:"Ataması",yourName:"Atıńız",madeWithExcalidraw:"Excalidraw járdeminde islengen",group:"",ungroup:"",collaborators:"Qatnasıwshılar",showGrid:"",addToLibrary:"Kitapxanaǵa qosıw",removeFromLibrary:"Kitapxanadan alıp taslaw",libraryLoadingMessage:"Kitapxana júklenbekte…",libraries:"Kitapxanalardı kóriw",loadingScene:"Saxna júklenbekte…",align:"",alignTop:"",alignBottom:"",alignLeft:"",alignRight:"",centerVertically:"",centerHorizontally:"",distributeHorizontally:"",distributeVertically:"",flipHorizontal:"",flipVertical:"",viewMode:"Kóriw rejimi",share:"Bólisiw",showStroke:"",showBackground:"",toggleTheme:"Temanı ózgertiw",personalLib:"Jeke kitapxana",excalidrawLib:"Excalidraw kitapxanası",decreaseFontSize:"Shrift ólshemin kishireytiw",increaseFontSize:"Shrift ólshemin úlkeytiw",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"Siltemeni ózgertiw",editEmbed:"",create:"Siltemeni jaratıw",createEmbed:"",label:"Silteme",labelEmbed:"",empty:""},lineEditor:{edit:"Qatardı ózgertiw",exit:"Qatardı ózgertiw redaktorınan shıǵıw"},elementLock:{lock:"Qulıplaw",unlock:"Qulıptan shıǵarıw",lockAll:"Barlıǵın qulıplaw",unlockAll:"Barlıǵın qulıptan shıǵarıw"},statusPublished:"",sidebarLock:"",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},a={noItems:"",hint_emptyLibrary:"",hint_emptyPrivateLibrary:""},r={clearReset:"",exportJSON:"",exportImage:"Súwretti eksportlaw...",export:"Retinde saqlaw...",copyToClipboard:"Almasıw buferine kóshirip alındı",save:"Ámeldegi faylǵa saqlaw",saveAs:"Retinde saqlaw",load:"Ashıw",getShareableLink:"",close:"Jabıw",selectLanguage:"Tildi tańlaw",scrollBackToContent:"",zoomIn:"",zoomOut:"",resetZoom:"",menu:"Menyu",done:"Tayın",edit:"Ózgertiw",undo:"",redo:"",resetLibrary:"",createNewRoom:"",fullScreen:"Tolıq ekran",darkMode:"Qarańǵı tema",lightMode:"Jaqtı tema",zenMode:"",objectsSnapMode:"",exitZenMode:"",cancel:"Biykarlaw",clear:"Tazalaw",remove:"Óshiriw",embed:"",publishLibrary:"Jariyalaw",submit:"Jiberiw",confirm:"Tastıyıqlaw",embeddableInteractionButton:""},t={clearReset:"",couldNotCreateShareableLink:"",couldNotCreateShareableLinkTooBig:"",couldNotLoadInvalidFile:"",importBackendFailed:"",cannotExportEmptyCanvas:"",couldNotCopyToClipboard:"Almasıw buferine kóshirip alıw ámelge aspadı.",decryptFailed:"",uploadedSecurly:"",loadSceneOverridePrompt:"",collabStopOverridePrompt:"",errorAddingToLibrary:"",errorRemovingFromLibrary:"",confirmAddLibrary:"",imageDoesNotContainScene:"",cannotRestoreFromImage:"",invalidSceneUrl:"",resetLibrary:"",removeItemsFromsLibrary:"",invalidEncryptionKey:"",collabOfflineWarning:""},i={unsupportedFileType:"",imageInsertError:"",fileTooBig:"",svgImageInsertError:"",failedToFetchImage:"",invalidSVGString:"Jaramsız SVG.",cannotResolveCollabServer:"",importLibraryError:"Kitapxananı júklew ámelge aspadı",collabSaveFailed:"",collabSaveFailed_sizeExceeded:"",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},l={selection:"",image:"Súwret qoyıw",rectangle:"Tórt múyeshlik",diamond:"",ellipse:"",arrow:"",line:"Sızıq",freedraw:"Sızıw",text:"Tekst",library:"Kitapxana",lock:"",penMode:"",link:"",eraser:"Óshirgish",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},o={canvasActions:"",selectedShapeActions:"",shapes:"Figuralar"},n={canvasPanning:"",linearElement:"",freeDraw:"",text:"",embeddable:"",text_selected:"",text_editing:"",linearElementMulti:"",lockAngle:"",resize:"",resizeImage:"",rotate:"",lineEditor_info:"",lineEditor_pointSelected:"",lineEditor_nothingSelected:"",placeImage:"",publishLibrary:"",bindTextToElement:"Tekst qosıw ushın Enter túymesin basıń",deepBoxSelect:"",eraserRevert:"",firefox_clipboard_write:"",disableSnapping:""},s={cannotShowPreview:"Aldınnan kóriwdi kórsetiw múmkin emes",canvasTooBig:"",canvasTooBigTip:""},u={headingMain:"",clearCanvasMessage:"",clearCanvasCaveat:"",trackedToSentry:"",openIssueMessage:"",sceneContent:""},d={desc_intro:"",desc_privacy:"",button_startSession:"",button_stopSession:"",desc_inProgressIntro:"",desc_shareLink:"",desc_exitSession:"",shareTitle:""},c={title:"Qátelik"},m={disk_title:"Diskke saqlaw",disk_details:"",disk_button:"Faylǵa saqlaw",link_title:"",link_details:"",link_button:"Siltemege eksportlaw",excalidrawplus_description:"",excalidrawplus_button:"Eksportlaw",excalidrawplus_exportError:""},p={blog:"Biziń blogtı oqıń",click:"basıw",deepSelect:"",deepBoxSelect:"",curvedArrow:"",curvedLine:"",documentation:"Hújjetshilik",doubleClick:"",drag:"",editor:"Redaktor",editLineArrowPoints:"",editText:"",github:"",howto:"",or:"yamasa",preventBinding:"",tools:"Ásbaplar",shortcuts:"",textFinish:"",textNewLine:"",title:"Járdem",view:"Kóriw",zoomToFit:"",zoomToSelection:"",toggleElementLock:"",movePageUpDown:"",movePageLeftRight:""},w={title:""},b={title:"",itemName:"",authorName:"Avtor atı",githubUsername:"GitHub paydalanıwshı atı",twitterUsername:"Twitter paydalanıwshı atı",libraryName:"Kitapxana ataması",libraryDesc:"",website:"Veb-sayt",placeholder:{authorName:"Atıńız yamasa paydalanıwshı atı",libraryName:"Kitapxanańız ataması",libraryDesc:"",githubHandle:"",twitterHandle:"",website:"Jeke veb-saytıńız yamasa basqa saytqa silteme (májbúriy emes)"},errors:{required:"Májbúriy",website:"Jaramlı URL mánzil kirgiziń"},noteDescription:"",noteGuidelines:"",noteLicense:"",noteItems:"",atleastOneLibItem:"",republishWarning:""},g={title:"Kitapxana jiberildi",content:""},x={resetLibrary:"Kitapxananı qayta ornatıw",removeItemsFromLib:""},h={header:"Súwretti eksportlaw",label:{withBackground:"Fon",onlySelected:"",darkMode:"Qarańǵı tema",embedScene:"",scale:"Kólem",padding:""},tooltip:{embedScene:""},title:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""},button:{exportToPng:"PNG",exportToSvg:"SVG",copyPngToClipboard:"Almasıw buferine kóshirip alıw"}},y={tooltip:"",link:""},k={angle:"",element:"Element",elements:"Elementler",height:"",scene:"Saxna",selected:"Tańlandı",storage:"",title:"",total:"",version:"Versiya",versionCopy:"Kóshirip alıw ushın basıń",versionNotAvailable:"",width:"Eni"},F={addedToLibrary:"Kitapxanaǵa qosıldı",copyStyles:"",copyToClipboard:"Almasıw buferine kóshirip alındı.",copyToClipboardAsPng:"",fileSaved:"Fayl saqlandı.",fileSavedToFilename:"{filename} saqlandı",canvas:"",selection:"",pasteAsSingleElement:"",unableToEmbed:"",unrecognizedLinkFormat:""},S={transparent:"",black:"Qara",white:"Aq",red:"Qızıl",pink:"Qızǵılt",grape:"",violet:"Qızǵılt kók",gray:"",blue:"Kók",cyan:"Kók aspan",teal:"Piruza",green:"Jasıl",yellow:"Sarı",orange:"Qızǵılt sarı",bronze:""},v={app:{center_heading:"",center_heading_plus:"Excalidraw+ ge ótiwdi qáleysiz be?",menuHint:"Eksportlaw, sazlawlar, tiller, ..."},defaults:{menuHint:"Eksportlaw, sazlawlar hám basqa...",center_heading:"Diagrammalar. Ápiwayı.",toolbarHint:"",helpHint:""}},T={mostUsedCustomColors:"Kóp qollanılatuǵın arnawlı reńler",colors:"Reńler",shades:"",hexCode:"",noShades:""},A={action:{exportToImage:{title:"Súwret retinde eksportlaw",button:"Súwret retinde eksportlaw",description:""},saveToDisk:{title:"Diskke saqlaw",button:"Diskke saqlaw",description:""},excalidrawPlus:{title:"Excalidraw+",button:"",description:""}},modal:{loadFromFile:{title:"Fayldan júklew",button:"Fayldan júklew",description:""},shareableLink:{title:"Siltemeden júklew",button:"",description:""}}},E={title:"",button:"",description:"",syntax:"",preview:""},_={labels:e,library:a,buttons:r,alerts:t,errors:i,toolBar:l,headings:o,hints:n,canvasError:s,errorSplash:u,roomDialog:d,errorDialog:c,exportDialog:m,helpDialog:p,clearCanvasDialog:w,publishDialog:b,publishSuccessDialog:g,confirmDialog:x,imageExportDialog:h,encrypted:y,stats:k,toast:F,colors:S,welcomeScreen:v,colorPicker:T,overwriteConfirm:A,mermaid:E};exports.alerts=t;exports.buttons=r;exports.canvasError=s;exports.clearCanvasDialog=w;exports.colorPicker=T;exports.colors=S;exports.confirmDialog=x;exports.default=_;exports.encrypted=y;exports.errorDialog=c;exports.errorSplash=u;exports.errors=i;exports.exportDialog=m;exports.headings=o;exports.helpDialog=p;exports.hints=n;exports.imageExportDialog=h;exports.labels=e;exports.library=a;exports.mermaid=E;exports.overwriteConfirm=A;exports.publishDialog=b;exports.publishSuccessDialog=g;exports.roomDialog=d;exports.stats=k;exports.toast=F;exports.toolBar=l;exports.welcomeScreen=v;
@@ -1,9 +1,6 @@
1
- import { a as we, s as ve, c as $t, g as st, o as _e, n as ke, b as Pe, d as Lt, l as X, e as Le, f as Ie, j as v, i as At, q as Ae, u as B, R as nt, S as wt, T as te, Z as Ne, V as ee, W as Bt } from "./layers.DnRaD217.js";
2
- import { J as se } from "./layers.D_faABvp.js";
3
- import { a as Se, b as zt, d as Me, g as Nt, c as Re, e as Ce } from "./layers.CCur6VEj.js";
4
- import "lodash-es/memoize.js";
5
- import "lodash-es/merge.js";
6
- import "lodash-es/isEmpty.js";
1
+ import { a as we, s as ve, c as $t, g as st, o as _e, n as ke, b as Pe, d as Lt, l as X, e as Le, f as Ie, j as v, i as At, q as Ae, u as B, R as nt, S as wt, T as te, Z as Ne, V as ee, W as Bt } from "./layers.DPiZNyNm.js";
2
+ import { J as se } from "./layers.C2jhvzOq.js";
3
+ import { a as Se, b as zt, d as Me, g as Nt, c as Re, e as Ce } from "./layers.wU0hxeTl.js";
7
4
  var Yt = (function() {
8
5
  var t = function(dt, w, k, L) {
9
6
  for (k = k || {}, L = dt.length; L--; k[dt[L]] = w)
@@ -2224,7 +2221,7 @@ const D0 = async function(t, e, o) {
2224
2221
  drawActorsPopup: ge,
2225
2222
  setConf: xe,
2226
2223
  draw: S0
2227
- }, U0 = {
2224
+ }, q0 = {
2228
2225
  parser: De,
2229
2226
  db: Qt,
2230
2227
  renderer: B0,
@@ -2234,5 +2231,5 @@ const D0 = async function(t, e, o) {
2234
2231
  }
2235
2232
  };
2236
2233
  export {
2237
- U0 as diagram
2234
+ q0 as diagram
2238
2235
  };
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./layers.BgJtKoXK.js"),d=require("./layers.BqqCs8jG.js");require("lodash-es");const $=require("./layers.Cyzu9PKQ.js"),H=require("./layers.BLd2spTm.js");require("./layers.BfaQveOZ.js");const _=require("./layers.BXcsZWke.js");let S=0;const C=function(i,r,t,l,p){const c=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};r.points=r.points.filter(e=>!Number.isNaN(e.y));const o=r.points,h=_.line().x(function(e){return e.x}).y(function(e){return e.y}).curve(d.curveBasis),n=i.append("path").attr("d",h(o)).attr("id","edge"+S).attr("class","relation");let a="";l.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+a+"#"+c(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+a+"#"+c(t.relation.type2)+"End)");let f,u;const x=r.points.length;let w=d.utils.calcLabelPosition(r.points);f=w.x,u=w.y;let y,b,m,k;if(x%2!==0&&x>1){let e=d.utils.calcCardinalityPosition(t.relation.type1!=="none",r.points,r.points[0]),s=d.utils.calcCardinalityPosition(t.relation.type2!=="none",r.points,r.points[x-1]);d.log$1.debug("cardinality_1_point "+JSON.stringify(e)),d.log$1.debug("cardinality_2_point "+JSON.stringify(s)),y=e.x,b=e.y,m=s.x,k=s.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),s=e.append("text").attr("class","label").attr("x",f).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=s;const g=s.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",g.x-l.padding/2).attr("y",g.y-l.padding/2).attr("width",g.width+l.padding).attr("height",g.height+l.padding)}d.log$1.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",y).attr("y",b).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",m).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),S++},A=function(i,r,t,l){d.log$1.debug("Rendering class ",r,t);const p=r.id,c={id:p,label:r.id,width:0,height:0},o=i.append("g").attr("id",l.db.lookUpDomId(p)).attr("class","classGroup");let h;r.link?h=o.append("svg:a").attr("xlink:href",r.link).attr("target",r.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;r.annotations.forEach(function(s){const g=h.append("tspan").text("«"+s+"»");n||g.attr("dy",t.textHeight),n=!1});let a=v(r);const f=h.append("tspan").text(a).attr("class","title");n||f.attr("dy",t.textHeight);const u=h.node().getBBox().height;let x,w,y;if(r.members.length>0){x=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin/2).attr("y2",t.padding+u+t.dividerMargin/2);const s=o.append("text").attr("x",t.padding).attr("y",u+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.members.forEach(function(g){N(s,g,n,t),n=!1}),w=s.node().getBBox()}if(r.methods.length>0){y=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin+w.height).attr("y2",t.padding+u+t.dividerMargin+w.height);const s=o.append("text").attr("x",t.padding).attr("y",u+2*t.dividerMargin+w.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.methods.forEach(function(g){N(s,g,n,t),n=!1})}const b=o.node().getBBox();var m=" ";r.cssClasses.length>0&&(m=m+r.cssClasses.join(" "));const e=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",b.width+2*t.padding).attr("height",b.height+t.padding+.5*t.dividerMargin).attr("class",m).node().getBBox().width;return h.node().childNodes.forEach(function(s){s.setAttribute("x",(e-s.getBBox().width)/2)}),r.tooltip&&h.insert("title").text(r.tooltip),x&&x.attr("x2",e),y&&y.attr("x2",e),c.width=e,c.height=b.height+t.padding+.5*t.dividerMargin,c},v=function(i){let r=i.id;return i.type&&(r+="<"+d.parseGenericTypes(i.type)+">"),r},W=function(i,r,t,l){d.log$1.debug("Rendering note ",r,t);const p=r.id,c={id:p,text:r.text,width:0,height:0},o=i.append("g").attr("id",p).attr("class","classGroup");let h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${r.text}"`).split(`
2
+ `);n.forEach(function(x){d.log$1.debug(`Adding line: ${x}`),h.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const a=o.node().getBBox(),u=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",a.width+2*t.padding).attr("height",a.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return h.node().childNodes.forEach(function(x){x.setAttribute("x",(u-x.getBBox().width)/2)}),c.width=u,c.height=a.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,c},N=function(i,r,t,l){const{displayText:p,cssStyle:c}=r.getDisplayDetails(),o=i.append("tspan").attr("x",l.padding).text(p);c!==""&&o.attr("style",r.cssStyle),t||o.attr("dy",l.textHeight)},M={getClassTitleString:v,drawClass:A,drawEdge:C,drawNote:W};let B={};const E=20,L=function(i){const r=Object.entries(B).find(t=>t[1].label===i);if(r)return r[0]},G=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},I=function(i,r,t,l){const p=d.getConfig().class;B={},d.log$1.info("Rendering diagram "+i);const c=d.getConfig().securityLevel;let o;c==="sandbox"&&(o=d.select("#i"+r));const h=c==="sandbox"?d.select(o.nodes()[0].contentDocument.body):d.select("body"),n=h.select(`[id='${r}']`);G(n);const a=new H.Graph({multigraph:!0});a.setGraph({isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const f=l.db.getClasses(),u=Object.keys(f);for(const e of u){const s=f[e],g=M.drawClass(n,s,p,l);B[g.id]=g,a.setNode(g.id,g),d.log$1.info("Org height: "+g.height)}l.db.getRelations().forEach(function(e){d.log$1.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),a.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),l.db.getNotes().forEach(function(e){d.log$1.debug(`Adding note: ${JSON.stringify(e)}`);const s=M.drawNote(n,e,p,l);B[s.id]=s,a.setNode(s.id,s),e.class&&e.class in f&&a.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),$.layout(a),a.nodes().forEach(function(e){e!==void 0&&a.node(e)!==void 0&&(d.log$1.debug("Node "+e+": "+JSON.stringify(a.node(e))),h.select("#"+(l.db.lookUpDomId(e)||e)).attr("transform","translate("+(a.node(e).x-a.node(e).width/2)+","+(a.node(e).y-a.node(e).height/2)+" )"))}),a.edges().forEach(function(e){e!==void 0&&a.edge(e)!==void 0&&(d.log$1.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(a.edge(e))),M.drawEdge(n,a.edge(e),a.edge(e).relation,p,l))});const y=n.node().getBBox(),b=y.width+E*2,m=y.height+E*2;d.configureSvgSize(n,m,b,p.useMaxWidth);const k=`${y.x-E} ${y.y-E} ${b} ${m}`;d.log$1.debug(`viewBox ${k}`),n.attr("viewBox",k)},O={draw:I},P={parser:T.parser$1,db:T.db,renderer:O,styles:T.styles,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,T.db.clear()}};exports.diagram=P;
@@ -1,9 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./layers.CYPfnKfS.js");require("./layers.CV8UgwCq.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");var le=(function(){var r=function(S,o,u,k){for(u=u||{},k=S.length;k--;u[S[k]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],y=[7,13,19,21,23,24,26,28,31,37,40],_=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],C=[1,42],E=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],x=[1,56],d=[1,57],T=[7,13,32,35,42,47],D={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,k,s,w,e,J){var t=e.length-1;switch(w){case 2:return e[t];case 3:return e[t-1];case 4:return s.setDirection(e[t-3]),e[t-1];case 6:s.setOptions(e[t-1]),this.$=e[t];break;case 7:e[t-1]+=e[t],this.$=e[t-1];break;case 9:this.$=[];break;case 10:e[t-1].push(e[t]),this.$=e[t-1];break;case 11:this.$=e[t-1];break;case 16:this.$=e[t].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=e[t].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(e[t].substr(8)),this.$=e[t].substr(8);break;case 21:s.checkout(e[t]);break;case 22:s.branch(e[t]);break;case 23:s.branch(e[t-2],e[t]);break;case 24:s.cherryPick(e[t],"",void 0);break;case 25:s.cherryPick(e[t-2],"",void 0,e[t]);break;case 26:s.cherryPick(e[t-2],"",e[t]);break;case 27:s.cherryPick(e[t-4],"",e[t],e[t-2]);break;case 28:s.cherryPick(e[t-4],"",e[t-2],e[t]);break;case 29:s.cherryPick(e[t],"",e[t-2]);break;case 30:s.cherryPick(e[t],"","");break;case 31:s.cherryPick(e[t-2],"","");break;case 32:s.cherryPick(e[t-4],"","",e[t-2]);break;case 33:s.cherryPick(e[t-4],"","",e[t]);break;case 34:s.cherryPick(e[t-2],"",e[t-4],e[t]);break;case 35:s.cherryPick(e[t-2],"","",e[t]);break;case 36:s.merge(e[t],"","","");break;case 37:s.merge(e[t-2],e[t],"","");break;case 38:s.merge(e[t-2],"",e[t],"");break;case 39:s.merge(e[t-2],"","",e[t]);break;case 40:s.merge(e[t-4],e[t],"",e[t-2]);break;case 41:s.merge(e[t-4],"",e[t],e[t-2]);break;case 42:s.merge(e[t-4],"",e[t-2],e[t]);break;case 43:s.merge(e[t-4],e[t-2],e[t],"");break;case 44:s.merge(e[t-4],e[t-2],"",e[t]);break;case 45:s.merge(e[t-4],e[t],e[t-2],"");break;case 46:s.merge(e[t-6],e[t-4],e[t-2],e[t]);break;case 47:s.merge(e[t-6],e[t],e[t-4],e[t-2]);break;case 48:s.merge(e[t-6],e[t-4],e[t],e[t-2]);break;case 49:s.merge(e[t-6],e[t-2],e[t-4],e[t]);break;case 50:s.merge(e[t-6],e[t],e[t-2],e[t-4]);break;case 51:s.merge(e[t-6],e[t-2],e[t],e[t-4]);break;case 52:s.commit(e[t]);break;case 53:s.commit("","",s.commitType.NORMAL,e[t]);break;case 54:s.commit("","",e[t],"");break;case 55:s.commit("","",e[t],e[t-2]);break;case 56:s.commit("","",e[t-2],e[t]);break;case 57:s.commit("",e[t],s.commitType.NORMAL,"");break;case 58:s.commit("",e[t-2],s.commitType.NORMAL,e[t]);break;case 59:s.commit("",e[t],s.commitType.NORMAL,e[t-2]);break;case 60:s.commit("",e[t-2],e[t],"");break;case 61:s.commit("",e[t],e[t-2],"");break;case 62:s.commit("",e[t-4],e[t-2],e[t]);break;case 63:s.commit("",e[t-4],e[t],e[t-2]);break;case 64:s.commit("",e[t-2],e[t-4],e[t]);break;case 65:s.commit("",e[t],e[t-4],e[t-2]);break;case 66:s.commit("",e[t],e[t-2],e[t-4]);break;case 67:s.commit("",e[t-2],e[t],e[t-4]);break;case 68:s.commit(e[t],"",s.commitType.NORMAL,"");break;case 69:s.commit(e[t],"",s.commitType.NORMAL,e[t-2]);break;case 70:s.commit(e[t-2],"",s.commitType.NORMAL,e[t]);break;case 71:s.commit(e[t-2],"",e[t],"");break;case 72:s.commit(e[t],"",e[t-2],"");break;case 73:s.commit(e[t],e[t-2],s.commitType.NORMAL,"");break;case 74:s.commit(e[t-2],e[t],s.commitType.NORMAL,"");break;case 75:s.commit(e[t-4],"",e[t-2],e[t]);break;case 76:s.commit(e[t-4],"",e[t],e[t-2]);break;case 77:s.commit(e[t-2],"",e[t-4],e[t]);break;case 78:s.commit(e[t],"",e[t-4],e[t-2]);break;case 79:s.commit(e[t],"",e[t-2],e[t-4]);break;case 80:s.commit(e[t-2],"",e[t],e[t-4]);break;case 81:s.commit(e[t-4],e[t],e[t-2],"");break;case 82:s.commit(e[t-4],e[t-2],e[t],"");break;case 83:s.commit(e[t-2],e[t],e[t-4],"");break;case 84:s.commit(e[t],e[t-2],e[t-4],"");break;case 85:s.commit(e[t],e[t-4],e[t-2],"");break;case 86:s.commit(e[t-2],e[t-4],e[t],"");break;case 87:s.commit(e[t-4],e[t],s.commitType.NORMAL,e[t-2]);break;case 88:s.commit(e[t-4],e[t-2],s.commitType.NORMAL,e[t]);break;case 89:s.commit(e[t-2],e[t],s.commitType.NORMAL,e[t-4]);break;case 90:s.commit(e[t],e[t-2],s.commitType.NORMAL,e[t-4]);break;case 91:s.commit(e[t],e[t-4],s.commitType.NORMAL,e[t-2]);break;case 92:s.commit(e[t-2],e[t-4],s.commitType.NORMAL,e[t]);break;case 93:s.commit(e[t-6],e[t-4],e[t-2],e[t]);break;case 94:s.commit(e[t-6],e[t-4],e[t],e[t-2]);break;case 95:s.commit(e[t-6],e[t-2],e[t-4],e[t]);break;case 96:s.commit(e[t-6],e[t],e[t-4],e[t-2]);break;case 97:s.commit(e[t-6],e[t-2],e[t],e[t-4]);break;case 98:s.commit(e[t-6],e[t],e[t-2],e[t-4]);break;case 99:s.commit(e[t-4],e[t-6],e[t-2],e[t]);break;case 100:s.commit(e[t-4],e[t-6],e[t],e[t-2]);break;case 101:s.commit(e[t-2],e[t-6],e[t-4],e[t]);break;case 102:s.commit(e[t],e[t-6],e[t-4],e[t-2]);break;case 103:s.commit(e[t-2],e[t-6],e[t],e[t-4]);break;case 104:s.commit(e[t],e[t-6],e[t-2],e[t-4]);break;case 105:s.commit(e[t],e[t-4],e[t-2],e[t-6]);break;case 106:s.commit(e[t-2],e[t-4],e[t],e[t-6]);break;case 107:s.commit(e[t],e[t-2],e[t-4],e[t-6]);break;case 108:s.commit(e[t-2],e[t],e[t-4],e[t-6]);break;case 109:s.commit(e[t-4],e[t-2],e[t],e[t-6]);break;case 110:s.commit(e[t-4],e[t],e[t-2],e[t-6]);break;case 111:s.commit(e[t-2],e[t-4],e[t-6],e[t]);break;case 112:s.commit(e[t],e[t-4],e[t-6],e[t-2]);break;case 113:s.commit(e[t-2],e[t],e[t-6],e[t-4]);break;case 114:s.commit(e[t],e[t-2],e[t-6],e[t-4]);break;case 115:s.commit(e[t-4],e[t-2],e[t-6],e[t]);break;case 116:s.commit(e[t-4],e[t],e[t-6],e[t-2]);break;case 117:this.$="";break;case 118:this.$=e[t];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(y,[2,9],{11:16,12:[1,17]}),r(_,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(_,[2,7]),{1:[2,3]},{7:[1,36]},r(y,[2,10]),{4:37,7:l,13:h,47:i},r(y,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:C,46:E},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:C,46:E},{32:[1,50],35:[1,51]},{27:52,33:C,46:E},{1:[2,4]},r(y,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:x,45:d},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(T,[2,119]),r(T,[2,120]),r(T,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:x,45:d},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:x,45:d},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:x,45:d},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:x,45:d},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:x,45:d},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:x,45:d},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:x,45:d},{33:[1,148]},{39:149,43:f,44:x,45:d},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:x,45:d},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:x,45:d},{33:[1,162]},{39:163,43:f,44:x,45:d},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:x,45:d},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:x,45:d},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:x,45:d},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:x,45:d},{33:[1,215]},{39:216,43:f,44:x,45:d},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:x,45:d},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:x,45:d},{33:[1,229]},{39:230,43:f,44:x,45:d},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:x,45:d},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var k=new Error(o);throw k.hash=u,k}},parse:function(o){var u=this,k=[0],s=[],w=[null],e=[],J=this.table,t="",ee=0,me=0,Ee=2,ue=1,Te=e.slice.call(arguments,1),O=Object.create(this.lexer),j={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(j.yy[ae]=this.yy[ae]);O.setInput(o,j.yy),j.yy.lexer=O,j.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ne=O.yylloc;e.push(ne);var we=O.options&&O.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var q;return q=s.pop()||O.lex()||ue,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,Y,B,ce,U={},te,V,fe,re;;){if(Y=k[k.length-1],this.defaultActions[Y]?B=this.defaultActions[Y]:((N===null||typeof N>"u")&&(N=Le()),B=J[Y]&&J[Y][N]),typeof B>"u"||!B.length||!B[0]){var oe="";re=[];for(te in J[Y])this.terminals_[te]&&te>Ee&&re.push("'"+this.terminals_[te]+"'");O.showPosition?oe="Parse error on line "+(ee+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./layers.BqqCs8jG.js");require("./layers.BfaQveOZ.js");var le=(function(){var r=function(S,o,u,k){for(u=u||{},k=S.length;k--;u[S[k]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],y=[7,13,19,21,23,24,26,28,31,37,40],_=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],C=[1,42],E=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],x=[1,56],d=[1,57],T=[7,13,32,35,42,47],D={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,k,s,w,e,J){var t=e.length-1;switch(w){case 2:return e[t];case 3:return e[t-1];case 4:return s.setDirection(e[t-3]),e[t-1];case 6:s.setOptions(e[t-1]),this.$=e[t];break;case 7:e[t-1]+=e[t],this.$=e[t-1];break;case 9:this.$=[];break;case 10:e[t-1].push(e[t]),this.$=e[t-1];break;case 11:this.$=e[t-1];break;case 16:this.$=e[t].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=e[t].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(e[t].substr(8)),this.$=e[t].substr(8);break;case 21:s.checkout(e[t]);break;case 22:s.branch(e[t]);break;case 23:s.branch(e[t-2],e[t]);break;case 24:s.cherryPick(e[t],"",void 0);break;case 25:s.cherryPick(e[t-2],"",void 0,e[t]);break;case 26:s.cherryPick(e[t-2],"",e[t]);break;case 27:s.cherryPick(e[t-4],"",e[t],e[t-2]);break;case 28:s.cherryPick(e[t-4],"",e[t-2],e[t]);break;case 29:s.cherryPick(e[t],"",e[t-2]);break;case 30:s.cherryPick(e[t],"","");break;case 31:s.cherryPick(e[t-2],"","");break;case 32:s.cherryPick(e[t-4],"","",e[t-2]);break;case 33:s.cherryPick(e[t-4],"","",e[t]);break;case 34:s.cherryPick(e[t-2],"",e[t-4],e[t]);break;case 35:s.cherryPick(e[t-2],"","",e[t]);break;case 36:s.merge(e[t],"","","");break;case 37:s.merge(e[t-2],e[t],"","");break;case 38:s.merge(e[t-2],"",e[t],"");break;case 39:s.merge(e[t-2],"","",e[t]);break;case 40:s.merge(e[t-4],e[t],"",e[t-2]);break;case 41:s.merge(e[t-4],"",e[t],e[t-2]);break;case 42:s.merge(e[t-4],"",e[t-2],e[t]);break;case 43:s.merge(e[t-4],e[t-2],e[t],"");break;case 44:s.merge(e[t-4],e[t-2],"",e[t]);break;case 45:s.merge(e[t-4],e[t],e[t-2],"");break;case 46:s.merge(e[t-6],e[t-4],e[t-2],e[t]);break;case 47:s.merge(e[t-6],e[t],e[t-4],e[t-2]);break;case 48:s.merge(e[t-6],e[t-4],e[t],e[t-2]);break;case 49:s.merge(e[t-6],e[t-2],e[t-4],e[t]);break;case 50:s.merge(e[t-6],e[t],e[t-2],e[t-4]);break;case 51:s.merge(e[t-6],e[t-2],e[t],e[t-4]);break;case 52:s.commit(e[t]);break;case 53:s.commit("","",s.commitType.NORMAL,e[t]);break;case 54:s.commit("","",e[t],"");break;case 55:s.commit("","",e[t],e[t-2]);break;case 56:s.commit("","",e[t-2],e[t]);break;case 57:s.commit("",e[t],s.commitType.NORMAL,"");break;case 58:s.commit("",e[t-2],s.commitType.NORMAL,e[t]);break;case 59:s.commit("",e[t],s.commitType.NORMAL,e[t-2]);break;case 60:s.commit("",e[t-2],e[t],"");break;case 61:s.commit("",e[t],e[t-2],"");break;case 62:s.commit("",e[t-4],e[t-2],e[t]);break;case 63:s.commit("",e[t-4],e[t],e[t-2]);break;case 64:s.commit("",e[t-2],e[t-4],e[t]);break;case 65:s.commit("",e[t],e[t-4],e[t-2]);break;case 66:s.commit("",e[t],e[t-2],e[t-4]);break;case 67:s.commit("",e[t-2],e[t],e[t-4]);break;case 68:s.commit(e[t],"",s.commitType.NORMAL,"");break;case 69:s.commit(e[t],"",s.commitType.NORMAL,e[t-2]);break;case 70:s.commit(e[t-2],"",s.commitType.NORMAL,e[t]);break;case 71:s.commit(e[t-2],"",e[t],"");break;case 72:s.commit(e[t],"",e[t-2],"");break;case 73:s.commit(e[t],e[t-2],s.commitType.NORMAL,"");break;case 74:s.commit(e[t-2],e[t],s.commitType.NORMAL,"");break;case 75:s.commit(e[t-4],"",e[t-2],e[t]);break;case 76:s.commit(e[t-4],"",e[t],e[t-2]);break;case 77:s.commit(e[t-2],"",e[t-4],e[t]);break;case 78:s.commit(e[t],"",e[t-4],e[t-2]);break;case 79:s.commit(e[t],"",e[t-2],e[t-4]);break;case 80:s.commit(e[t-2],"",e[t],e[t-4]);break;case 81:s.commit(e[t-4],e[t],e[t-2],"");break;case 82:s.commit(e[t-4],e[t-2],e[t],"");break;case 83:s.commit(e[t-2],e[t],e[t-4],"");break;case 84:s.commit(e[t],e[t-2],e[t-4],"");break;case 85:s.commit(e[t],e[t-4],e[t-2],"");break;case 86:s.commit(e[t-2],e[t-4],e[t],"");break;case 87:s.commit(e[t-4],e[t],s.commitType.NORMAL,e[t-2]);break;case 88:s.commit(e[t-4],e[t-2],s.commitType.NORMAL,e[t]);break;case 89:s.commit(e[t-2],e[t],s.commitType.NORMAL,e[t-4]);break;case 90:s.commit(e[t],e[t-2],s.commitType.NORMAL,e[t-4]);break;case 91:s.commit(e[t],e[t-4],s.commitType.NORMAL,e[t-2]);break;case 92:s.commit(e[t-2],e[t-4],s.commitType.NORMAL,e[t]);break;case 93:s.commit(e[t-6],e[t-4],e[t-2],e[t]);break;case 94:s.commit(e[t-6],e[t-4],e[t],e[t-2]);break;case 95:s.commit(e[t-6],e[t-2],e[t-4],e[t]);break;case 96:s.commit(e[t-6],e[t],e[t-4],e[t-2]);break;case 97:s.commit(e[t-6],e[t-2],e[t],e[t-4]);break;case 98:s.commit(e[t-6],e[t],e[t-2],e[t-4]);break;case 99:s.commit(e[t-4],e[t-6],e[t-2],e[t]);break;case 100:s.commit(e[t-4],e[t-6],e[t],e[t-2]);break;case 101:s.commit(e[t-2],e[t-6],e[t-4],e[t]);break;case 102:s.commit(e[t],e[t-6],e[t-4],e[t-2]);break;case 103:s.commit(e[t-2],e[t-6],e[t],e[t-4]);break;case 104:s.commit(e[t],e[t-6],e[t-2],e[t-4]);break;case 105:s.commit(e[t],e[t-4],e[t-2],e[t-6]);break;case 106:s.commit(e[t-2],e[t-4],e[t],e[t-6]);break;case 107:s.commit(e[t],e[t-2],e[t-4],e[t-6]);break;case 108:s.commit(e[t-2],e[t],e[t-4],e[t-6]);break;case 109:s.commit(e[t-4],e[t-2],e[t],e[t-6]);break;case 110:s.commit(e[t-4],e[t],e[t-2],e[t-6]);break;case 111:s.commit(e[t-2],e[t-4],e[t-6],e[t]);break;case 112:s.commit(e[t],e[t-4],e[t-6],e[t-2]);break;case 113:s.commit(e[t-2],e[t],e[t-6],e[t-4]);break;case 114:s.commit(e[t],e[t-2],e[t-6],e[t-4]);break;case 115:s.commit(e[t-4],e[t-2],e[t-6],e[t]);break;case 116:s.commit(e[t-4],e[t],e[t-6],e[t-2]);break;case 117:this.$="";break;case 118:this.$=e[t];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(y,[2,9],{11:16,12:[1,17]}),r(_,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(_,[2,7]),{1:[2,3]},{7:[1,36]},r(y,[2,10]),{4:37,7:l,13:h,47:i},r(y,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:C,46:E},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:C,46:E},{32:[1,50],35:[1,51]},{27:52,33:C,46:E},{1:[2,4]},r(y,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:x,45:d},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(T,[2,119]),r(T,[2,120]),r(T,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:x,45:d},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:x,45:d},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:x,45:d},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:x,45:d},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:x,45:d},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:x,45:d},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:x,45:d},{33:[1,148]},{39:149,43:f,44:x,45:d},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:x,45:d},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:x,45:d},{33:[1,162]},{39:163,43:f,44:x,45:d},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:x,45:d},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:x,45:d},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:x,45:d},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:x,45:d},{33:[1,215]},{39:216,43:f,44:x,45:d},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:x,45:d},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:x,45:d},{33:[1,229]},{39:230,43:f,44:x,45:d},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:x,45:d},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var k=new Error(o);throw k.hash=u,k}},parse:function(o){var u=this,k=[0],s=[],w=[null],e=[],J=this.table,t="",ee=0,me=0,Ee=2,ue=1,Te=e.slice.call(arguments,1),O=Object.create(this.lexer),j={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(j.yy[ae]=this.yy[ae]);O.setInput(o,j.yy),j.yy.lexer=O,j.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ne=O.yylloc;e.push(ne);var we=O.options&&O.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var z;return z=s.pop()||O.lex()||ue,typeof z!="number"&&(z instanceof Array&&(s=z,z=s.pop()),z=u.symbols_[z]||z),z}for(var N,Y,B,ce,U={},te,V,fe,re;;){if(Y=k[k.length-1],this.defaultActions[Y]?B=this.defaultActions[Y]:((N===null||typeof N>"u")&&(N=Le()),B=J[Y]&&J[Y][N]),typeof B>"u"||!B.length||!B[0]){var oe="";re=[];for(te in J[Y])this.terminals_[te]&&te>Ee&&re.push("'"+this.terminals_[te]+"'");O.showPosition?oe="Parse error on line "+(ee+1)+`:
2
2
  `+O.showPosition()+`
3
3
  Expecting `+re.join(", ")+", got '"+(this.terminals_[N]||N)+"'":oe="Parse error on line "+(ee+1)+": Unexpected "+(N==ue?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(oe,{text:O.match,token:this.terminals_[N]||N,line:O.yylineno,loc:ne,expected:re})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+N);switch(B[0]){case 1:k.push(N),w.push(O.yytext),e.push(O.yylloc),k.push(B[1]),N=null,me=O.yyleng,t=O.yytext,ee=O.yylineno,ne=O.yylloc;break;case 2:if(V=this.productions_[B[1]][1],U.$=w[w.length-V],U._$={first_line:e[e.length-(V||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(V||1)].first_column,last_column:e[e.length-1].last_column},we&&(U._$.range=[e[e.length-(V||1)].range[0],e[e.length-1].range[1]]),ce=this.performAction.apply(U,[t,me,ee,j.yy,B[1],w,e].concat(Te)),typeof ce<"u")return ce;V&&(k=k.slice(0,-1*V*2),w=w.slice(0,-1*V),e=e.slice(0,-1*V)),k.push(this.productions_[B[1]][0]),w.push(U.$),e.push(U._$),fe=J[k[k.length-2]][k[k.length-1]],k.push(fe);break;case 3:return!0}}return!0}},M=(function(){var S={EOF:1,parseError:function(u,k){if(this.yy.parser)this.yy.parser.parseError(u,k);else throw new Error(u)},setInput:function(o,u){return this.yy=u||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var u=o.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var u=o.length,k=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),k.length-1&&(this.yylineno-=k.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:k?(k.length===s.length?this.yylloc.first_column:0)+s[s.length-k.length].length-k[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
5
5
  `+u+"^"},test_match:function(o,u){var k,s,w;if(this.options.backtrack_lexer&&(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(w.yylloc.range=this.yylloc.range.slice(0))),s=o[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],k=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),k)return k;if(this._backtrack){for(var e in w)this[e]=w[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,u,k,s;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),e=0;e<w.length;e++)if(k=this._input.match(this.rules[w[e]]),k&&(!u||k[0].length>u[0].length)){if(u=k,s=e,this.options.backtrack_lexer){if(o=this.test_match(k,w[e]),o!==!1)return o;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(o=this.test_match(u,w[s]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return u||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,k,s,w){switch(s){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return S})();D.lexer=M;function G(){this.yy={}}return G.prototype=D,D.Parser=G,new G})();le.parser=le;const Re=le;let ie=g.getConfig().gitGraph.mainBranchName,Ce=g.getConfig().gitGraph.mainBranchOrder,v={},I=null,Z={};Z[ie]={name:ie,order:Ce};let R={};R[ie]=I;let A=ie,be="LR",K=0;function he(){return g.random({length:7})}function Me(r,n){const l=Object.create(null);return r.reduce((h,i)=>{const c=n(i);return l[c]||(l[c]=!0,h.push(i)),h},[])}const ve=function(r){be=r};let de={};const Oe=function(r){g.log$1.debug("options str",r),r=r&&r.trim(),r=r||"{}";try{de=JSON.parse(r)}catch(n){g.log$1.error("error while parsing gitGraph options",n.message)}},Pe=function(){return de},Ae=function(r,n,l,h){g.log$1.debug("Entering commit:",r,n,l,h),n=g.common$1.sanitizeText(n,g.getConfig()),r=g.common$1.sanitizeText(r,g.getConfig()),h=g.common$1.sanitizeText(h,g.getConfig());const i={id:n||K+"-"+he(),message:r,seq:K++,type:l||W.NORMAL,tag:h||"",parents:I==null?[]:[I.id],branch:A};I=i,v[i.id]=i,R[A]=i.id,g.log$1.debug("in pushCommit "+i.id)},Se=function(r,n){if(r=g.common$1.sanitizeText(r,g.getConfig()),R[r]===void 0)R[r]=I!=null?I.id:null,Z[r]={name:r,order:n?parseInt(n,10):null},ke(r),g.log$1.debug("in createBranch");else{let l=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+r+'")');throw l.hash={text:"branch "+r,token:"branch "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+r+'"']},l}},Ge=function(r,n,l,h){r=g.common$1.sanitizeText(r,g.getConfig()),n=g.common$1.sanitizeText(n,g.getConfig());const i=v[R[A]],c=v[R[r]];if(A===r){let m=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}else if(i===void 0||!i){let m=new Error('Incorrect usage of "merge". Current branch ('+A+")has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},m}else if(R[r]===void 0){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+r]},m}else if(c===void 0||!c){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},m}else if(i===c){let m=new Error('Incorrect usage of "merge". Both branches have same head');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}else if(n&&v[n]!==void 0){let m=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom Id");throw m.hash={text:"merge "+r+n+l+h,token:"merge "+r+n+l+h,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+r+" "+n+"_UNIQUE "+l+" "+h]},m}const p={id:n||K+"-"+he(),message:"merged branch "+r+" into "+A,seq:K++,parents:[I==null?null:I.id,R[r]],branch:A,type:W.MERGE,customType:l,customId:!!n,tag:h||""};I=p,v[p.id]=p,R[A]=p.id,g.log$1.debug(R),g.log$1.debug("in mergeBranch")},Ie=function(r,n,l,h){if(g.log$1.debug("Entering cherryPick:",r,n,l),r=g.common$1.sanitizeText(r,g.getConfig()),n=g.common$1.sanitizeText(n,g.getConfig()),l=g.common$1.sanitizeText(l,g.getConfig()),h=g.common$1.sanitizeText(h,g.getConfig()),!r||v[r]===void 0){let p=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw p.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},p}let i=v[r],c=i.branch;if(h&&!(Array.isArray(i.parents)&&i.parents.includes(h)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(i.type===W.MERGE&&!h)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||v[n]===void 0){if(c===A){let y=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw y.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}const p=v[R[A]];if(p===void 0||!p){let y=new Error('Incorrect usage of "cherry-pick". Current branch ('+A+")has no commits");throw y.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}const m={id:K+"-"+he(),message:"cherry-picked "+i+" into "+A,seq:K++,parents:[I==null?null:I.id,i.id],branch:A,type:W.CHERRY_PICK,tag:l??`cherry-pick:${i.id}${i.type===W.MERGE?`|parent:${h}`:""}`};I=m,v[m.id]=m,R[A]=m.id,g.log$1.debug(R),g.log$1.debug("in cherryPick")}},ke=function(r){if(r=g.common$1.sanitizeText(r,g.getConfig()),R[r]===void 0){let n=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+r+'")');throw n.hash={text:"checkout "+r,token:"checkout "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+r+'"']},n}else{A=r;const n=R[A];I=v[n]}};function ge(r,n,l){const h=r.indexOf(n);h===-1?r.push(l):r.splice(h,1,l)}function xe(r){const n=r.reduce((i,c)=>i.seq>c.seq?i:c,r[0]);let l="";r.forEach(function(i){i===n?l+=" *":l+=" |"});const h=[l,n.id,n.seq];for(let i in R)R[i]===n.id&&h.push(i);if(g.log$1.debug(h.join(" ")),n.parents&&n.parents.length==2){const i=v[n.parents[0]];ge(r,n,i),r.push(v[n.parents[1]])}else{if(n.parents.length==0)return;{const i=v[n.parents];ge(r,n,i)}}r=Me(r,i=>i.id),xe(r)}const Ne=function(){g.log$1.debug(v);const r=ye()[0];xe([r])},He=function(){v={},I=null;let r=g.getConfig().gitGraph.mainBranchName,n=g.getConfig().gitGraph.mainBranchOrder;R={},R[r]=null,Z={},Z[r]={name:r,order:n},A=r,K=0,g.clear()},Be=function(){return Object.values(Z).map((n,l)=>n.order!==null?n:{...n,order:parseFloat(`0.${l}`,10)}).sort((n,l)=>n.order-l.order).map(({name:n})=>({name:n}))},De=function(){return R},Ve=function(){return v},ye=function(){const r=Object.keys(v).map(function(n){return v[n]});return r.forEach(function(n){g.log$1.debug(n.id)}),r.sort((n,l)=>n.seq-l.seq),r},qe=function(){return A},ze=function(){return be},je=function(){return I},W={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ye={getConfig:()=>g.getConfig().gitGraph,setDirection:ve,setOptions:Oe,getOptions:Pe,commit:Ae,branch:Se,merge:Ge,cherryPick:Ie,checkout:ke,prettyPrint:Ne,clear:He,getBranchesAsObjArray:Be,getBranches:De,getCommits:Ve,getCommitsArray:ye,getCurrentBranch:qe,getDirection:ze,getHead:je,setAccTitle:g.setAccTitle,getAccTitle:g.getAccTitle,getAccDescription:g.getAccDescription,setAccDescription:g.setAccDescription,setDiagramTitle:g.setDiagramTitle,getDiagramTitle:g.getDiagramTitle,commitType:W};let Q={};const P={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},F=8;let H={},z={},se=[],$=0,L="LR";const Fe=()=>{H={},z={},Q={},$=0,se=[],L="LR"},_e=r=>{const n=document.createElementNS("http://www.w3.org/2000/svg","text");let l=[];typeof r=="string"?l=r.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(r)?l=r:l=[];for(const h of l){const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=h.trim(),n.appendChild(i)}return n},Ke=r=>{let n="",l=0;return r.forEach(h=>{const i=L==="TB"?z[h].y:z[h].x;i>=l&&(n=h,l=i)}),n||void 0},pe=(r,n,l)=>{const h=g.getConfig().gitGraph,i=r.append("g").attr("class","commit-bullets"),c=r.append("g").attr("class","commit-labels");let p=0;L==="TB"&&(p=30);const y=Object.keys(n).sort((E,b)=>n[E].seq-n[b].seq),_=h.parallelCommits,a=10,C=40;y.forEach(E=>{const b=n[E];if(_)if(b.parents.length){const T=Ke(b.parents);p=L==="TB"?z[T].y+C:z[T].x+C}else p=0,L==="TB"&&(p=30);const f=p+a,x=L==="TB"?f:H[b.branch].pos,d=L==="TB"?H[b.branch].pos:f;if(l){let T,D=b.customType!==void 0&&b.customType!==""?b.customType:b.type;switch(D){case P.NORMAL:T="commit-normal";break;case P.REVERSE:T="commit-reverse";break;case P.HIGHLIGHT:T="commit-highlight";break;case P.MERGE:T="commit-merge";break;case P.CHERRY_PICK:T="commit-cherry-pick";break;default:T="commit-normal"}if(D===P.HIGHLIGHT){const M=i.append("rect");M.attr("x",d-10),M.attr("y",x-10),M.attr("height",20),M.attr("width",20),M.attr("class",`commit ${b.id} commit-highlight${H[b.branch].index%F} ${T}-outer`),i.append("rect").attr("x",d-6).attr("y",x-6).attr("height",12).attr("width",12).attr("class",`commit ${b.id} commit${H[b.branch].index%F} ${T}-inner`)}else if(D===P.CHERRY_PICK)i.append("circle").attr("cx",d).attr("cy",x).attr("r",10).attr("class",`commit ${b.id} ${T}`),i.append("circle").attr("cx",d-3).attr("cy",x+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${T}`),i.append("circle").attr("cx",d+3).attr("cy",x+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${T}`),i.append("line").attr("x1",d+3).attr("y1",x+1).attr("x2",d).attr("y2",x-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${T}`),i.append("line").attr("x1",d-3).attr("y1",x+1).attr("x2",d).attr("y2",x-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${T}`);else{const M=i.append("circle");if(M.attr("cx",d),M.attr("cy",x),M.attr("r",b.type===P.MERGE?9:10),M.attr("class",`commit ${b.id} commit${H[b.branch].index%F}`),D===P.MERGE){const G=i.append("circle");G.attr("cx",d),G.attr("cy",x),G.attr("r",6),G.attr("class",`commit ${T} ${b.id} commit${H[b.branch].index%F}`)}D===P.REVERSE&&i.append("path").attr("d",`M ${d-5},${x-5}L${d+5},${x+5}M${d-5},${x+5}L${d+5},${x-5}`).attr("class",`commit ${T} ${b.id} commit${H[b.branch].index%F}`)}}if(L==="TB"?z[b.id]={x:d,y:f}:z[b.id]={x:f,y:x},l){if(b.type!==P.CHERRY_PICK&&(b.customId&&b.type===P.MERGE||b.type!==P.MERGE)&&h.showCommitLabel){const M=c.append("g"),G=M.insert("rect").attr("class","commit-label-bkg"),S=M.append("text").attr("x",p).attr("y",x+25).attr("class","commit-label").text(b.id);let o=S.node().getBBox();if(G.attr("x",f-o.width/2-2).attr("y",x+13.5).attr("width",o.width+4).attr("height",o.height+4),L==="TB"&&(G.attr("x",d-(o.width+16+5)).attr("y",x-12),S.attr("x",d-(o.width+16)).attr("y",x+o.height-12)),L!=="TB"&&S.attr("x",f-o.width/2),h.rotateCommitLabel)if(L==="TB")S.attr("transform","rotate(-45, "+d+", "+x+")"),G.attr("transform","rotate(-45, "+d+", "+x+")");else{let u=-7.5-(o.width+10)/25*9.5,k=10+o.width/25*8.5;M.attr("transform","translate("+u+", "+k+") rotate(-45, "+p+", "+x+")")}}if(b.tag){const M=c.insert("polygon"),G=c.append("circle"),S=c.append("text").attr("y",x-16).attr("class","tag-label").text(b.tag);let o=S.node().getBBox();S.attr("x",f-o.width/2);const u=o.height/2,k=x-19.2;M.attr("class","tag-label-bkg").attr("points",`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return u||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,k,s,w){switch(s){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return S})();D.lexer=M;function G(){this.yy={}}return G.prototype=D,D.Parser=G,new G})();le.parser=le;const Re=le;let ie=g.getConfig().gitGraph.mainBranchName,Ce=g.getConfig().gitGraph.mainBranchOrder,v={},I=null,Z={};Z[ie]={name:ie,order:Ce};let R={};R[ie]=I;let A=ie,be="LR",K=0;function he(){return g.random({length:7})}function Me(r,n){const l=Object.create(null);return r.reduce((h,i)=>{const c=n(i);return l[c]||(l[c]=!0,h.push(i)),h},[])}const ve=function(r){be=r};let de={};const Oe=function(r){g.log$1.debug("options str",r),r=r&&r.trim(),r=r||"{}";try{de=JSON.parse(r)}catch(n){g.log$1.error("error while parsing gitGraph options",n.message)}},Pe=function(){return de},Ae=function(r,n,l,h){g.log$1.debug("Entering commit:",r,n,l,h),n=g.common$1.sanitizeText(n,g.getConfig()),r=g.common$1.sanitizeText(r,g.getConfig()),h=g.common$1.sanitizeText(h,g.getConfig());const i={id:n||K+"-"+he(),message:r,seq:K++,type:l||W.NORMAL,tag:h||"",parents:I==null?[]:[I.id],branch:A};I=i,v[i.id]=i,R[A]=i.id,g.log$1.debug("in pushCommit "+i.id)},Se=function(r,n){if(r=g.common$1.sanitizeText(r,g.getConfig()),R[r]===void 0)R[r]=I!=null?I.id:null,Z[r]={name:r,order:n?parseInt(n,10):null},ke(r),g.log$1.debug("in createBranch");else{let l=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+r+'")');throw l.hash={text:"branch "+r,token:"branch "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+r+'"']},l}},Ge=function(r,n,l,h){r=g.common$1.sanitizeText(r,g.getConfig()),n=g.common$1.sanitizeText(n,g.getConfig());const i=v[R[A]],c=v[R[r]];if(A===r){let m=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}else if(i===void 0||!i){let m=new Error('Incorrect usage of "merge". Current branch ('+A+")has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},m}else if(R[r]===void 0){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+r]},m}else if(c===void 0||!c){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},m}else if(i===c){let m=new Error('Incorrect usage of "merge". Both branches have same head');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}else if(n&&v[n]!==void 0){let m=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom Id");throw m.hash={text:"merge "+r+n+l+h,token:"merge "+r+n+l+h,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+r+" "+n+"_UNIQUE "+l+" "+h]},m}const p={id:n||K+"-"+he(),message:"merged branch "+r+" into "+A,seq:K++,parents:[I==null?null:I.id,R[r]],branch:A,type:W.MERGE,customType:l,customId:!!n,tag:h||""};I=p,v[p.id]=p,R[A]=p.id,g.log$1.debug(R),g.log$1.debug("in mergeBranch")},Ie=function(r,n,l,h){if(g.log$1.debug("Entering cherryPick:",r,n,l),r=g.common$1.sanitizeText(r,g.getConfig()),n=g.common$1.sanitizeText(n,g.getConfig()),l=g.common$1.sanitizeText(l,g.getConfig()),h=g.common$1.sanitizeText(h,g.getConfig()),!r||v[r]===void 0){let p=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw p.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},p}let i=v[r],c=i.branch;if(h&&!(Array.isArray(i.parents)&&i.parents.includes(h)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(i.type===W.MERGE&&!h)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||v[n]===void 0){if(c===A){let y=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw y.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}const p=v[R[A]];if(p===void 0||!p){let y=new Error('Incorrect usage of "cherry-pick". Current branch ('+A+")has no commits");throw y.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}const m={id:K+"-"+he(),message:"cherry-picked "+i+" into "+A,seq:K++,parents:[I==null?null:I.id,i.id],branch:A,type:W.CHERRY_PICK,tag:l??`cherry-pick:${i.id}${i.type===W.MERGE?`|parent:${h}`:""}`};I=m,v[m.id]=m,R[A]=m.id,g.log$1.debug(R),g.log$1.debug("in cherryPick")}},ke=function(r){if(r=g.common$1.sanitizeText(r,g.getConfig()),R[r]===void 0){let n=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+r+'")');throw n.hash={text:"checkout "+r,token:"checkout "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+r+'"']},n}else{A=r;const n=R[A];I=v[n]}};function ge(r,n,l){const h=r.indexOf(n);h===-1?r.push(l):r.splice(h,1,l)}function xe(r){const n=r.reduce((i,c)=>i.seq>c.seq?i:c,r[0]);let l="";r.forEach(function(i){i===n?l+=" *":l+=" |"});const h=[l,n.id,n.seq];for(let i in R)R[i]===n.id&&h.push(i);if(g.log$1.debug(h.join(" ")),n.parents&&n.parents.length==2){const i=v[n.parents[0]];ge(r,n,i),r.push(v[n.parents[1]])}else{if(n.parents.length==0)return;{const i=v[n.parents];ge(r,n,i)}}r=Me(r,i=>i.id),xe(r)}const Ne=function(){g.log$1.debug(v);const r=ye()[0];xe([r])},He=function(){v={},I=null;let r=g.getConfig().gitGraph.mainBranchName,n=g.getConfig().gitGraph.mainBranchOrder;R={},R[r]=null,Z={},Z[r]={name:r,order:n},A=r,K=0,g.clear()},Be=function(){return Object.values(Z).map((n,l)=>n.order!==null?n:{...n,order:parseFloat(`0.${l}`,10)}).sort((n,l)=>n.order-l.order).map(({name:n})=>({name:n}))},De=function(){return R},Ve=function(){return v},ye=function(){const r=Object.keys(v).map(function(n){return v[n]});return r.forEach(function(n){g.log$1.debug(n.id)}),r.sort((n,l)=>n.seq-l.seq),r},ze=function(){return A},qe=function(){return be},je=function(){return I},W={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ye={getConfig:()=>g.getConfig().gitGraph,setDirection:ve,setOptions:Oe,getOptions:Pe,commit:Ae,branch:Se,merge:Ge,cherryPick:Ie,checkout:ke,prettyPrint:Ne,clear:He,getBranchesAsObjArray:Be,getBranches:De,getCommits:Ve,getCommitsArray:ye,getCurrentBranch:ze,getDirection:qe,getHead:je,setAccTitle:g.setAccTitle,getAccTitle:g.getAccTitle,getAccDescription:g.getAccDescription,setAccDescription:g.setAccDescription,setDiagramTitle:g.setDiagramTitle,getDiagramTitle:g.getDiagramTitle,commitType:W};let Q={};const P={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},F=8;let H={},q={},se=[],$=0,L="LR";const Fe=()=>{H={},q={},Q={},$=0,se=[],L="LR"},_e=r=>{const n=document.createElementNS("http://www.w3.org/2000/svg","text");let l=[];typeof r=="string"?l=r.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(r)?l=r:l=[];for(const h of l){const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=h.trim(),n.appendChild(i)}return n},Ke=r=>{let n="",l=0;return r.forEach(h=>{const i=L==="TB"?q[h].y:q[h].x;i>=l&&(n=h,l=i)}),n||void 0},pe=(r,n,l)=>{const h=g.getConfig().gitGraph,i=r.append("g").attr("class","commit-bullets"),c=r.append("g").attr("class","commit-labels");let p=0;L==="TB"&&(p=30);const y=Object.keys(n).sort((E,b)=>n[E].seq-n[b].seq),_=h.parallelCommits,a=10,C=40;y.forEach(E=>{const b=n[E];if(_)if(b.parents.length){const T=Ke(b.parents);p=L==="TB"?q[T].y+C:q[T].x+C}else p=0,L==="TB"&&(p=30);const f=p+a,x=L==="TB"?f:H[b.branch].pos,d=L==="TB"?H[b.branch].pos:f;if(l){let T,D=b.customType!==void 0&&b.customType!==""?b.customType:b.type;switch(D){case P.NORMAL:T="commit-normal";break;case P.REVERSE:T="commit-reverse";break;case P.HIGHLIGHT:T="commit-highlight";break;case P.MERGE:T="commit-merge";break;case P.CHERRY_PICK:T="commit-cherry-pick";break;default:T="commit-normal"}if(D===P.HIGHLIGHT){const M=i.append("rect");M.attr("x",d-10),M.attr("y",x-10),M.attr("height",20),M.attr("width",20),M.attr("class",`commit ${b.id} commit-highlight${H[b.branch].index%F} ${T}-outer`),i.append("rect").attr("x",d-6).attr("y",x-6).attr("height",12).attr("width",12).attr("class",`commit ${b.id} commit${H[b.branch].index%F} ${T}-inner`)}else if(D===P.CHERRY_PICK)i.append("circle").attr("cx",d).attr("cy",x).attr("r",10).attr("class",`commit ${b.id} ${T}`),i.append("circle").attr("cx",d-3).attr("cy",x+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${T}`),i.append("circle").attr("cx",d+3).attr("cy",x+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${T}`),i.append("line").attr("x1",d+3).attr("y1",x+1).attr("x2",d).attr("y2",x-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${T}`),i.append("line").attr("x1",d-3).attr("y1",x+1).attr("x2",d).attr("y2",x-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${T}`);else{const M=i.append("circle");if(M.attr("cx",d),M.attr("cy",x),M.attr("r",b.type===P.MERGE?9:10),M.attr("class",`commit ${b.id} commit${H[b.branch].index%F}`),D===P.MERGE){const G=i.append("circle");G.attr("cx",d),G.attr("cy",x),G.attr("r",6),G.attr("class",`commit ${T} ${b.id} commit${H[b.branch].index%F}`)}D===P.REVERSE&&i.append("path").attr("d",`M ${d-5},${x-5}L${d+5},${x+5}M${d-5},${x+5}L${d+5},${x-5}`).attr("class",`commit ${T} ${b.id} commit${H[b.branch].index%F}`)}}if(L==="TB"?q[b.id]={x:d,y:f}:q[b.id]={x:f,y:x},l){if(b.type!==P.CHERRY_PICK&&(b.customId&&b.type===P.MERGE||b.type!==P.MERGE)&&h.showCommitLabel){const M=c.append("g"),G=M.insert("rect").attr("class","commit-label-bkg"),S=M.append("text").attr("x",p).attr("y",x+25).attr("class","commit-label").text(b.id);let o=S.node().getBBox();if(G.attr("x",f-o.width/2-2).attr("y",x+13.5).attr("width",o.width+4).attr("height",o.height+4),L==="TB"&&(G.attr("x",d-(o.width+16+5)).attr("y",x-12),S.attr("x",d-(o.width+16)).attr("y",x+o.height-12)),L!=="TB"&&S.attr("x",f-o.width/2),h.rotateCommitLabel)if(L==="TB")S.attr("transform","rotate(-45, "+d+", "+x+")"),G.attr("transform","rotate(-45, "+d+", "+x+")");else{let u=-7.5-(o.width+10)/25*9.5,k=10+o.width/25*8.5;M.attr("transform","translate("+u+", "+k+") rotate(-45, "+p+", "+x+")")}}if(b.tag){const M=c.insert("polygon"),G=c.append("circle"),S=c.append("text").attr("y",x-16).attr("class","tag-label").text(b.tag);let o=S.node().getBBox();S.attr("x",f-o.width/2);const u=o.height/2,k=x-19.2;M.attr("class","tag-label-bkg").attr("points",`
7
7
  ${p-o.width/2-4/2},${k+2}
8
8
  ${p-o.width/2-4/2},${k-2}
9
9
  ${f-o.width/2-4},${k-u-2}
@@ -15,7 +15,7 @@ Expecting `+re.join(", ")+", got '"+(this.terminals_[N]||N)+"'":oe="Parse error
15
15
  ${d+a},${p-u-2}
16
16
  ${d+a+o.width+4},${p-u-2}
17
17
  ${d+a+o.width+4},${p+u+2}
18
- ${d+a},${p+u+2}`).attr("transform","translate(12,12) rotate(45, "+d+","+p+")"),G.attr("cx",d+4/2).attr("cy",p).attr("transform","translate(12,12) rotate(45, "+d+","+p+")"),S.attr("x",d+5).attr("y",p+3).attr("transform","translate(14,14) rotate(45, "+d+","+p+")"))}}p+=C+a,p>$&&($=p)})},Ue=(r,n,l,h,i)=>{const p=(L==="TB"?l.x<h.x:l.y<h.y)?n.branch:r.branch,m=_=>_.branch===p,y=_=>_.seq>r.seq&&_.seq<n.seq;return Object.values(i).some(_=>y(_)&&m(_))},X=(r,n,l=0)=>{const h=r+Math.abs(r-n)/2;if(l>5)return h;if(se.every(p=>Math.abs(p-h)>=10))return se.push(h),h;const c=Math.abs(r-n);return X(r,n-c/5,l+1)},We=(r,n,l,h)=>{const i=z[n.id],c=z[l.id],p=Ue(n,l,i,c,h);let m="",y="",_=0,a=0,C=H[l.branch].index;l.type===P.MERGE&&n.id!==l.parents[0]&&(C=H[n.branch].index);let E;if(p){m="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",_=10,a=10;const b=i.y<c.y?X(i.y,c.y):X(c.y,i.y),f=i.x<c.x?X(i.x,c.x):X(c.x,i.x);L==="TB"?i.x<c.x?E=`M ${i.x} ${i.y} L ${f-_} ${i.y} ${y} ${f} ${i.y+a} L ${f} ${c.y-_} ${m} ${f+a} ${c.y} L ${c.x} ${c.y}`:(C=H[n.branch].index,E=`M ${i.x} ${i.y} L ${f+_} ${i.y} ${m} ${f} ${i.y+a} L ${f} ${c.y-_} ${y} ${f-a} ${c.y} L ${c.x} ${c.y}`):i.y<c.y?E=`M ${i.x} ${i.y} L ${i.x} ${b-_} ${m} ${i.x+a} ${b} L ${c.x-_} ${b} ${y} ${c.x} ${b+a} L ${c.x} ${c.y}`:(C=H[n.branch].index,E=`M ${i.x} ${i.y} L ${i.x} ${b+_} ${y} ${i.x+a} ${b} L ${c.x-_} ${b} ${m} ${c.x} ${b-a} L ${c.x} ${c.y}`)}else m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",_=20,a=20,L==="TB"?(i.x<c.x&&(l.type===P.MERGE&&n.id!==l.parents[0]?E=`M ${i.x} ${i.y} L ${i.x} ${c.y-_} ${m} ${i.x+a} ${c.y} L ${c.x} ${c.y}`:E=`M ${i.x} ${i.y} L ${c.x-_} ${i.y} ${y} ${c.x} ${i.y+a} L ${c.x} ${c.y}`),i.x>c.x&&(m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",_=20,a=20,l.type===P.MERGE&&n.id!==l.parents[0]?E=`M ${i.x} ${i.y} L ${i.x} ${c.y-_} ${y} ${i.x-a} ${c.y} L ${c.x} ${c.y}`:E=`M ${i.x} ${i.y} L ${c.x+_} ${i.y} ${m} ${c.x} ${i.y+a} L ${c.x} ${c.y}`),i.x===c.x&&(E=`M ${i.x} ${i.y} L ${c.x} ${c.y}`)):(i.y<c.y&&(l.type===P.MERGE&&n.id!==l.parents[0]?E=`M ${i.x} ${i.y} L ${c.x-_} ${i.y} ${y} ${c.x} ${i.y+a} L ${c.x} ${c.y}`:E=`M ${i.x} ${i.y} L ${i.x} ${c.y-_} ${m} ${i.x+a} ${c.y} L ${c.x} ${c.y}`),i.y>c.y&&(l.type===P.MERGE&&n.id!==l.parents[0]?E=`M ${i.x} ${i.y} L ${c.x-_} ${i.y} ${m} ${c.x} ${i.y-a} L ${c.x} ${c.y}`:E=`M ${i.x} ${i.y} L ${i.x} ${c.y+_} ${y} ${i.x+a} ${c.y} L ${c.x} ${c.y}`),i.y===c.y&&(E=`M ${i.x} ${i.y} L ${c.x} ${c.y}`));r.append("path").attr("d",E).attr("class","arrow arrow"+C%F)},Je=(r,n)=>{const l=r.append("g").attr("class","commit-arrows");Object.keys(n).forEach(h=>{const i=n[h];i.parents&&i.parents.length>0&&i.parents.forEach(c=>{We(l,n[c],i,n)})})},Qe=(r,n)=>{const l=g.getConfig().gitGraph,h=r.append("g");n.forEach((i,c)=>{const p=c%F,m=H[i.name].pos,y=h.append("line");y.attr("x1",0),y.attr("y1",m),y.attr("x2",$),y.attr("y2",m),y.attr("class","branch branch"+p),L==="TB"&&(y.attr("y1",30),y.attr("x1",m),y.attr("y2",$),y.attr("x2",m)),se.push(m);let _=i.name;const a=_e(_),C=h.insert("rect"),b=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+p);b.node().appendChild(a);let f=a.getBBox();C.attr("class","branchLabelBkg label"+p).attr("rx",4).attr("ry",4).attr("x",-f.width-4-(l.rotateCommitLabel===!0?30:0)).attr("y",-f.height/2+8).attr("width",f.width+18).attr("height",f.height+4),b.attr("transform","translate("+(-f.width-14-(l.rotateCommitLabel===!0?30:0))+", "+(m-f.height/2-1)+")"),L==="TB"&&(C.attr("x",m-f.width/2-10).attr("y",0),b.attr("transform","translate("+(m-f.width/2-5)+", 0)")),L!=="TB"&&C.attr("transform","translate(-19, "+(m-f.height/2)+")")})},Xe=function(r,n,l,h){Fe();const i=g.getConfig(),c=i.gitGraph;g.log$1.debug("in gitgraph renderer",r+`
18
+ ${d+a},${p+u+2}`).attr("transform","translate(12,12) rotate(45, "+d+","+p+")"),G.attr("cx",d+4/2).attr("cy",p).attr("transform","translate(12,12) rotate(45, "+d+","+p+")"),S.attr("x",d+5).attr("y",p+3).attr("transform","translate(14,14) rotate(45, "+d+","+p+")"))}}p+=C+a,p>$&&($=p)})},Ue=(r,n,l,h,i)=>{const p=(L==="TB"?l.x<h.x:l.y<h.y)?n.branch:r.branch,m=_=>_.branch===p,y=_=>_.seq>r.seq&&_.seq<n.seq;return Object.values(i).some(_=>y(_)&&m(_))},X=(r,n,l=0)=>{const h=r+Math.abs(r-n)/2;if(l>5)return h;if(se.every(p=>Math.abs(p-h)>=10))return se.push(h),h;const c=Math.abs(r-n);return X(r,n-c/5,l+1)},We=(r,n,l,h)=>{const i=q[n.id],c=q[l.id],p=Ue(n,l,i,c,h);let m="",y="",_=0,a=0,C=H[l.branch].index;l.type===P.MERGE&&n.id!==l.parents[0]&&(C=H[n.branch].index);let E;if(p){m="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",_=10,a=10;const b=i.y<c.y?X(i.y,c.y):X(c.y,i.y),f=i.x<c.x?X(i.x,c.x):X(c.x,i.x);L==="TB"?i.x<c.x?E=`M ${i.x} ${i.y} L ${f-_} ${i.y} ${y} ${f} ${i.y+a} L ${f} ${c.y-_} ${m} ${f+a} ${c.y} L ${c.x} ${c.y}`:(C=H[n.branch].index,E=`M ${i.x} ${i.y} L ${f+_} ${i.y} ${m} ${f} ${i.y+a} L ${f} ${c.y-_} ${y} ${f-a} ${c.y} L ${c.x} ${c.y}`):i.y<c.y?E=`M ${i.x} ${i.y} L ${i.x} ${b-_} ${m} ${i.x+a} ${b} L ${c.x-_} ${b} ${y} ${c.x} ${b+a} L ${c.x} ${c.y}`:(C=H[n.branch].index,E=`M ${i.x} ${i.y} L ${i.x} ${b+_} ${y} ${i.x+a} ${b} L ${c.x-_} ${b} ${m} ${c.x} ${b-a} L ${c.x} ${c.y}`)}else m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",_=20,a=20,L==="TB"?(i.x<c.x&&(l.type===P.MERGE&&n.id!==l.parents[0]?E=`M ${i.x} ${i.y} L ${i.x} ${c.y-_} ${m} ${i.x+a} ${c.y} L ${c.x} ${c.y}`:E=`M ${i.x} ${i.y} L ${c.x-_} ${i.y} ${y} ${c.x} ${i.y+a} L ${c.x} ${c.y}`),i.x>c.x&&(m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",_=20,a=20,l.type===P.MERGE&&n.id!==l.parents[0]?E=`M ${i.x} ${i.y} L ${i.x} ${c.y-_} ${y} ${i.x-a} ${c.y} L ${c.x} ${c.y}`:E=`M ${i.x} ${i.y} L ${c.x+_} ${i.y} ${m} ${c.x} ${i.y+a} L ${c.x} ${c.y}`),i.x===c.x&&(E=`M ${i.x} ${i.y} L ${c.x} ${c.y}`)):(i.y<c.y&&(l.type===P.MERGE&&n.id!==l.parents[0]?E=`M ${i.x} ${i.y} L ${c.x-_} ${i.y} ${y} ${c.x} ${i.y+a} L ${c.x} ${c.y}`:E=`M ${i.x} ${i.y} L ${i.x} ${c.y-_} ${m} ${i.x+a} ${c.y} L ${c.x} ${c.y}`),i.y>c.y&&(l.type===P.MERGE&&n.id!==l.parents[0]?E=`M ${i.x} ${i.y} L ${c.x-_} ${i.y} ${m} ${c.x} ${i.y-a} L ${c.x} ${c.y}`:E=`M ${i.x} ${i.y} L ${i.x} ${c.y+_} ${y} ${i.x+a} ${c.y} L ${c.x} ${c.y}`),i.y===c.y&&(E=`M ${i.x} ${i.y} L ${c.x} ${c.y}`));r.append("path").attr("d",E).attr("class","arrow arrow"+C%F)},Je=(r,n)=>{const l=r.append("g").attr("class","commit-arrows");Object.keys(n).forEach(h=>{const i=n[h];i.parents&&i.parents.length>0&&i.parents.forEach(c=>{We(l,n[c],i,n)})})},Qe=(r,n)=>{const l=g.getConfig().gitGraph,h=r.append("g");n.forEach((i,c)=>{const p=c%F,m=H[i.name].pos,y=h.append("line");y.attr("x1",0),y.attr("y1",m),y.attr("x2",$),y.attr("y2",m),y.attr("class","branch branch"+p),L==="TB"&&(y.attr("y1",30),y.attr("x1",m),y.attr("y2",$),y.attr("x2",m)),se.push(m);let _=i.name;const a=_e(_),C=h.insert("rect"),b=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+p);b.node().appendChild(a);let f=a.getBBox();C.attr("class","branchLabelBkg label"+p).attr("rx",4).attr("ry",4).attr("x",-f.width-4-(l.rotateCommitLabel===!0?30:0)).attr("y",-f.height/2+8).attr("width",f.width+18).attr("height",f.height+4),b.attr("transform","translate("+(-f.width-14-(l.rotateCommitLabel===!0?30:0))+", "+(m-f.height/2-1)+")"),L==="TB"&&(C.attr("x",m-f.width/2-10).attr("y",0),b.attr("transform","translate("+(m-f.width/2-5)+", 0)")),L!=="TB"&&C.attr("transform","translate(-19, "+(m-f.height/2)+")")})},Xe=function(r,n,l,h){Fe();const i=g.getConfig(),c=i.gitGraph;g.log$1.debug("in gitgraph renderer",r+`
19
19
  `,"id:",n,l),Q=h.db.getCommits();const p=h.db.getBranchesAsObjArray();L=h.db.getDirection();const m=g.select(`[id="${n}"]`);let y=0;p.forEach((_,a)=>{const C=_e(_.name),E=m.append("g"),b=E.insert("g").attr("class","branchLabel"),f=b.insert("g").attr("class","label branch-label");f.node().appendChild(C);let x=C.getBBox();H[_.name]={pos:y,index:a},y+=50+(c.rotateCommitLabel?40:0)+(L==="TB"?x.width/2:0),f.remove(),b.remove(),E.remove()}),pe(m,Q,!1),c.showBranches&&Qe(m,p),Je(m,Q),pe(m,Q,!0),g.utils.insertTitle(m,"gitTitleText",c.titleTopMargin,h.db.getDiagramTitle()),g.setupGraphViewbox(void 0,m,c.diagramPadding,c.useMaxWidth??i.useMaxWidth)},Ze={draw:Xe},$e=r=>`
20
20
  .commit-id,
21
21
  .commit-msg,
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./layers.BqqCs8jG.js"),s=(e,r)=>n.Utils.lang.round(n.Color.parse(e)[r]);exports.channel=s;
@@ -1,13 +1,10 @@
1
- import { s as zt, a as Ft, n as wt, o as Nt, b as Xt, c as Yt, l as St, A as Ht, e as $t, q as Ut, W as ot, a7 as Ct, P as qt, Q as jt, i as Gt } from "./layers.DnRaD217.js";
2
- import { a as Qt } from "./layers.CxIhyFb7.js";
3
- import "./layers.D_faABvp.js";
4
- import "lodash-es/memoize.js";
5
- import "lodash-es/merge.js";
6
- import "lodash-es/isEmpty.js";
1
+ import { s as zt, a as Ft, n as wt, o as Nt, b as Xt, c as Yt, l as St, A as Ht, e as $t, q as Ut, W as ot, a6 as Ct, P as qt, Q as jt, i as Gt } from "./layers.DPiZNyNm.js";
2
+ import { a as Qt } from "./layers.B9JA0HLK.js";
3
+ import "./layers.C2jhvzOq.js";
7
4
  import { i as Kt } from "./layers.DjUOC4st.js";
8
5
  import { o as Zt } from "./layers.b0h5ZBmD.js";
9
- import { l as ft } from "./layers.D-uio-rN.js";
10
- import { l as pt } from "./layers.Dk2S8boy.js";
6
+ import { l as ft } from "./layers.D7ZMXlyX.js";
7
+ import { l as pt } from "./layers.41VWy-aG.js";
11
8
  function Jt(e, t, i) {
12
9
  e = +e, t = +t, i = (n = arguments.length) < 2 ? (t = e, e = 0, 1) : n < 3 ? 1 : +i;
13
10
  for (var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(n); ++s < n; )
@@ -1276,11 +1273,11 @@ const Ci = function() {
1276
1273
  }
1277
1274
  }, Ri = {
1278
1275
  draw: ki
1279
- }, Bi = {
1276
+ }, Ii = {
1280
1277
  parser: ti,
1281
1278
  db: _i,
1282
1279
  renderer: Ri
1283
1280
  };
1284
1281
  export {
1285
- Bi as diagram
1282
+ Ii as diagram
1286
1283
  };
@@ -1,4 +1,4 @@
1
- import { n as ut, o as rt, g as F, s as at, a as lt, b as ct, c as ot, j as v, u as He, l as ht, q as At, i as pt, X as Re, d as z } from "./layers.DnRaD217.js";
1
+ import { n as ut, o as rt, g as F, s as at, a as lt, b as ct, c as ot, j as v, u as He, l as ht, q as At, i as pt, X as Re, d as z } from "./layers.DPiZNyNm.js";
2
2
  var Ve = (function() {
3
3
  var e = function(x, u, a, h) {
4
4
  for (a = a || {}, h = x.length; h--; a[x[h]] = u)
@@ -1 +1 @@
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
+ "use strict";const P=require("lodash-es"),J=require("./layers.Cyzu9PKQ.js"),k=require("./layers.BLd2spTm.js"),u=require("./layers.wKL0lWNs.js"),i=require("./layers.BqqCs8jG.js"),j=require("./layers.BP0j0dgn.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,13 +1,10 @@
1
- import { p as FNe, d as BNe } from "./layers.Bk40urId.js";
2
- import { d as IO, l as Ba, W as xU, Y as RNe, _ as C0n, $ as j0n, a0 as $U, j as KNe } from "./layers.DnRaD217.js";
3
- import { i as _Ne, c as HNe, l as qNe, b as UNe, k as GNe, m as zNe } from "./layers.DdMy9cRx.js";
4
- import { j as $se, i as XNe } from "./layers.Chd1p2rt.js";
1
+ import { p as FNe, d as BNe } from "./layers.BWePEr40.js";
2
+ import { d as IO, l as Ba, W as xU, Y as RNe, _ as C0n, $ as j0n, a0 as $U, j as KNe } from "./layers.DPiZNyNm.js";
3
+ import { i as _Ne, a as HNe, l as qNe, b as UNe, k as GNe, m as zNe } from "./layers.BABmXbhN.js";
4
+ import { q as $se, n as XNe } from "./layers.CNTFg_PV.js";
5
5
  import { c as NU } from "./layers.BpilXLfW.js";
6
- import "./layers.D_faABvp.js";
7
- import "lodash-es/memoize.js";
8
- import "lodash-es/merge.js";
9
- import "lodash-es/isEmpty.js";
10
- import { l as VNe } from "./layers.Dk2S8boy.js";
6
+ import "./layers.C2jhvzOq.js";
7
+ import { l as VNe } from "./layers.41VWy-aG.js";
11
8
  var E0n = { exports: {} }, xse;
12
9
  function WNe() {
13
10
  return xse || (xse = 1, (function(ut, _t) {
@@ -48138,12 +48135,12 @@ const n$e = async function(ut, _t, Xt, gt, Sr, Di, y) {
48138
48135
  }
48139
48136
 
48140
48137
  ${h$e(ut)}
48141
- `, a$e = l$e, E$e = {
48138
+ `, a$e = l$e, k$e = {
48142
48139
  db: BNe,
48143
48140
  renderer: f$e,
48144
48141
  parser: FNe,
48145
48142
  styles: a$e
48146
48143
  };
48147
48144
  export {
48148
- E$e as diagram
48145
+ k$e as diagram
48149
48146
  };