@layers-app/editor 0.7.17 → 0.7.18

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 (244) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.js +3 -3
  3. package/dist/layers.94hwidA2.js +198 -0
  4. package/dist/layers.B4l6ta1Q.js +1 -0
  5. package/dist/{layers.DfazY_Pm.js → layers.BMrOAD_P.js} +1 -1
  6. package/dist/{layers.C35KTUy2.js → layers.D99OBX9u.js} +8 -8
  7. package/dist/{layers.B3S_Iz7U.js → layers.DOzLBYZr.js} +31 -31
  8. package/dist/layers.YRyXopy_.js +151 -0
  9. package/dist/{layers.BlQ-fVEN.js → layers.usKC_Id5.js} +1 -1
  10. package/dist/{layers.CNTFg_PV.js → layers.zu-IYGYU.js} +12483 -13053
  11. package/package.json +24 -23
  12. package/dist/layers.04n4wbqY.js +0 -40
  13. package/dist/layers.0AjqeHO0.js +0 -52
  14. package/dist/layers.0YKivPbS.js +0 -40
  15. package/dist/layers.0ay1od4k.js +0 -41
  16. package/dist/layers.0cCD7Trw.js +0 -10
  17. package/dist/layers.192DYlty.js +0 -8
  18. package/dist/layers.1ws9_bfy.js +0 -1
  19. package/dist/layers.3NAUDSdp.js +0 -1
  20. package/dist/layers.41VWy-aG.js +0 -33
  21. package/dist/layers.52famHy6.js +0 -1
  22. package/dist/layers.5QVC7kU0.js +0 -1
  23. package/dist/layers.6IpHt_7d.js +0 -32
  24. package/dist/layers.7JqFgE4-.js +0 -15
  25. package/dist/layers.8CQh8R7p.js +0 -1
  26. package/dist/layers.9iKrwzo8.js +0 -32
  27. package/dist/layers.9p0T4nVw.js +0 -1
  28. package/dist/layers.9pNaFvaX.js +0 -1
  29. package/dist/layers.B19hGmey.js +0 -1
  30. package/dist/layers.B1auaUb-.js +0 -40
  31. package/dist/layers.B37cfkOz.js +0 -32
  32. package/dist/layers.B3D4g2HH.js +0 -1
  33. package/dist/layers.B5XF9q_I.js +0 -40
  34. package/dist/layers.B6hh7kZl.js +0 -6
  35. package/dist/layers.B7K7JjK6.js +0 -1510
  36. package/dist/layers.B7rTjLeq.js +0 -208
  37. package/dist/layers.B8_yUZ0B.js +0 -207
  38. package/dist/layers.B9JA0HLK.js +0 -2966
  39. package/dist/layers.BABmXbhN.js +0 -1088
  40. package/dist/layers.BAtv1CM7.js +0 -1
  41. package/dist/layers.BCWekfj1.js +0 -38
  42. package/dist/layers.BDhkw0hD.js +0 -2479
  43. package/dist/layers.BEm0EevB.js +0 -295
  44. package/dist/layers.BFOGMUuA.js +0 -8
  45. package/dist/layers.BFc__DH6.js +0 -6
  46. package/dist/layers.BGTnvNP0.js +0 -10
  47. package/dist/layers.BGdwpbmj.js +0 -32
  48. package/dist/layers.BGrn4rLd.js +0 -1
  49. package/dist/layers.BHgpnpIV.js +0 -320
  50. package/dist/layers.BIeVwYKL.js +0 -1
  51. package/dist/layers.BIwMjJXk.js +0 -1
  52. package/dist/layers.BJ0kBYXi.js +0 -41
  53. package/dist/layers.BJDrjORS.js +0 -244
  54. package/dist/layers.BK0gUtws.js +0 -9
  55. package/dist/layers.BLd2spTm.js +0 -1
  56. package/dist/layers.BMyOFpSB.js +0 -9
  57. package/dist/layers.BO1-27wB.js +0 -1
  58. package/dist/layers.BO54hyIV.js +0 -10
  59. package/dist/layers.BOUezSTL.js +0 -41
  60. package/dist/layers.BP0j0dgn.js +0 -7
  61. package/dist/layers.BPc2aeAC.js +0 -6
  62. package/dist/layers.BRrrKVX0.js +0 -51
  63. package/dist/layers.BRw0W8BA.js +0 -14
  64. package/dist/layers.BSTBZrFn.js +0 -1
  65. package/dist/layers.BSUQkbOc.js +0 -42
  66. package/dist/layers.BUA_HqY5.js +0 -13
  67. package/dist/layers.BVcL_n_M.js +0 -268
  68. package/dist/layers.BWePEr40.js +0 -1126
  69. package/dist/layers.BXcsZWke.js +0 -1
  70. package/dist/layers.BZfVYPU5.js +0 -1
  71. package/dist/layers.BbCfEXyj.js +0 -55
  72. package/dist/layers.BbJS6RnG.js +0 -35
  73. package/dist/layers.BbVq4Peg.js +0 -39
  74. package/dist/layers.BbXyLjxZ.js +0 -42
  75. package/dist/layers.Be1uXPSh.js +0 -9
  76. package/dist/layers.BeACRp58.js +0 -4
  77. package/dist/layers.Ben_68X-.js +0 -33
  78. package/dist/layers.BfaQveOZ.js +0 -198
  79. package/dist/layers.BgJtKoXK.js +0 -160
  80. package/dist/layers.BifTQ-Px.js +0 -32
  81. package/dist/layers.BjN6TTXp.js +0 -11
  82. package/dist/layers.BjkK2efb.js +0 -7
  83. package/dist/layers.BlHp_VrY.js +0 -3
  84. package/dist/layers.Blc7rw4s.js +0 -6
  85. package/dist/layers.Bnsmp92P.js +0 -11
  86. package/dist/layers.BpilXLfW.js +0 -6
  87. package/dist/layers.BqqCs8jG.js +0 -96
  88. package/dist/layers.BsmgPu7t.js +0 -42
  89. package/dist/layers.Bt7tcN4s.js +0 -6
  90. package/dist/layers.Btzp1z-r.js +0 -36
  91. package/dist/layers.BwTFFS1L.js +0 -8
  92. package/dist/layers.Bx3h2n9l.js +0 -39
  93. package/dist/layers.BxM1KZfC.js +0 -61
  94. package/dist/layers.BxM9-XMl.js +0 -9
  95. package/dist/layers.C0J8aakp.js +0 -5
  96. package/dist/layers.C0rSyLVd.js +0 -9
  97. package/dist/layers.C2Ghtbvc.js +0 -8
  98. package/dist/layers.C2jhvzOq.js +0 -21620
  99. package/dist/layers.C39A_3mH.js +0 -8
  100. package/dist/layers.C5BRzalR.js +0 -38
  101. package/dist/layers.C5Fx7NyW.js +0 -39
  102. package/dist/layers.C5hEmFnZ.js +0 -40
  103. package/dist/layers.C6s-F8xr.js +0 -7
  104. package/dist/layers.C7FVdo84.js +0 -37
  105. package/dist/layers.C7dJDI3p.js +0 -10
  106. package/dist/layers.C89PpG1h.js +0 -769
  107. package/dist/layers.C8_lu5UH.js +0 -23
  108. package/dist/layers.CAn91HUr.js +0 -7
  109. package/dist/layers.CDyM6rfz.js +0 -1619
  110. package/dist/layers.CG5E1s6L.js +0 -5
  111. package/dist/layers.CH6vY6nz.js +0 -793
  112. package/dist/layers.CHZsXQcr.js +0 -1
  113. package/dist/layers.CI8n-mXC.js +0 -8
  114. package/dist/layers.CIIPaPYQ.js +0 -37
  115. package/dist/layers.CJjfGFRn.js +0 -7
  116. package/dist/layers.CLyrFyTt.js +0 -7
  117. package/dist/layers.COxTigDs.js +0 -1359
  118. package/dist/layers.CPPTxpTa.js +0 -198
  119. package/dist/layers.CQw2c-FF.js +0 -1
  120. package/dist/layers.CS_v9If4.js +0 -118
  121. package/dist/layers.CTEInOdX.js +0 -41
  122. package/dist/layers.CTzj-R3i.js +0 -41
  123. package/dist/layers.CULMlCQg.js +0 -1580
  124. package/dist/layers.CWVWuX-h.js +0 -802
  125. package/dist/layers.CWetNlAM.js +0 -186
  126. package/dist/layers.CZLAcdMj.js +0 -960
  127. package/dist/layers.CZcNOn_g.js +0 -5
  128. package/dist/layers.C_IvrzZ3.js +0 -7
  129. package/dist/layers.C_gG9xio.js +0 -36
  130. package/dist/layers.CagLZWJV.js +0 -36
  131. package/dist/layers.CcQRJhOy.js +0 -10
  132. package/dist/layers.CdI08cP2.js +0 -37
  133. package/dist/layers.CfGn3EEn.js +0 -11
  134. package/dist/layers.CfTomFD-.js +0 -74
  135. package/dist/layers.Ci-h8bbt.js +0 -36
  136. package/dist/layers.CiOE4x64.js +0 -42
  137. package/dist/layers.CjDmXlbI.js +0 -32
  138. package/dist/layers.CkvEBALf.js +0 -1
  139. package/dist/layers.ClbtOgXD.js +0 -1
  140. package/dist/layers.CmMJ2vrz.js +0 -40
  141. package/dist/layers.CoHrmJZb.js +0 -1
  142. package/dist/layers.CqOjrhqg.js +0 -34
  143. package/dist/layers.CqVTtuYm.js +0 -6
  144. package/dist/layers.Cq_SVM9v.js +0 -2
  145. package/dist/layers.CtBDhkfE.js +0 -2
  146. package/dist/layers.Cvcaleoh.js +0 -425
  147. package/dist/layers.Cx1Gq9Dp.js +0 -10
  148. package/dist/layers.CxhBPjuM.js +0 -257
  149. package/dist/layers.CxzexeO2.js +0 -41
  150. package/dist/layers.Cyiby-Np.js +0 -4
  151. package/dist/layers.Cyzu9PKQ.js +0 -1
  152. package/dist/layers.CzPTBQLq.js +0 -7
  153. package/dist/layers.D-Jn2ZYp.js +0 -202
  154. package/dist/layers.D0zn4_Mx.js +0 -1
  155. package/dist/layers.D3f2mUJi.js +0 -904
  156. package/dist/layers.D3lMBPw_.js +0 -44
  157. package/dist/layers.D4HzIdc6.js +0 -116
  158. package/dist/layers.D4T8fTcj.js +0 -1223
  159. package/dist/layers.D66jwaU4.js +0 -39
  160. package/dist/layers.D7ZMXlyX.js +0 -423
  161. package/dist/layers.D7jGxypv.js +0 -8
  162. package/dist/layers.D8q3-pj1.js +0 -40
  163. package/dist/layers.D9YR6XE8.js +0 -437
  164. package/dist/layers.D9jdGpJr.js +0 -8
  165. package/dist/layers.DAl7I5u0.js +0 -39
  166. package/dist/layers.DGi30IzW.js +0 -6
  167. package/dist/layers.DJF9fzWp.js +0 -9
  168. package/dist/layers.DLwuMfdd.js +0 -84
  169. package/dist/layers.DMkBISW1.js +0 -1
  170. package/dist/layers.DN7zqtdR.js +0 -803
  171. package/dist/layers.DN9HoVxI.js +0 -18
  172. package/dist/layers.DODiJHd5.js +0 -8
  173. package/dist/layers.DOrgOHBr.js +0 -1
  174. package/dist/layers.DPgcx12Q.js +0 -1
  175. package/dist/layers.DPiZNyNm.js +0 -9166
  176. package/dist/layers.DQhlH0a7.js +0 -501
  177. package/dist/layers.DTik-pik.js +0 -11
  178. package/dist/layers.DVrOalPV.js +0 -7
  179. package/dist/layers.DWaBBiuP.js +0 -19
  180. package/dist/layers.DZkaq_lv.js +0 -1265
  181. package/dist/layers.DacVDKlC.js +0 -9
  182. package/dist/layers.DbaKVP5e.js +0 -1
  183. package/dist/layers.DgCULOvY.js +0 -40
  184. package/dist/layers.DgjixQuR.js +0 -84
  185. package/dist/layers.DhtGL7-o.js +0 -39
  186. package/dist/layers.DjUOC4st.js +0 -16
  187. package/dist/layers.DjYl24mJ.js +0 -40
  188. package/dist/layers.DkUY5uNV.js +0 -1
  189. package/dist/layers.DouGTsMz.js +0 -9
  190. package/dist/layers.Dq2XAyOc.js +0 -139
  191. package/dist/layers.DqL7bG3g.js +0 -41
  192. package/dist/layers.DrYzFfW_.js +0 -139
  193. package/dist/layers.DrdslLaU.js +0 -10
  194. package/dist/layers.Ds9-wuCp.js +0 -10
  195. package/dist/layers.DsLySzfR.js +0 -8
  196. package/dist/layers.DsXVRfSf.js +0 -41
  197. package/dist/layers.DtYnjrXZ.js +0 -8
  198. package/dist/layers.Dtg6Vr-6.js +0 -39
  199. package/dist/layers.DuwOgI-l.js +0 -40
  200. package/dist/layers.DwXNFr-I.js +0 -35
  201. package/dist/layers.DxA6ocdw.js +0 -70
  202. package/dist/layers.Dy1naDTQ.js +0 -14
  203. package/dist/layers.Ev3O6tfW.js +0 -1
  204. package/dist/layers.GRwBofUp.js +0 -37
  205. package/dist/layers.HAyebP5S.js +0 -791
  206. package/dist/layers.J8v8A5JD.js +0 -35
  207. package/dist/layers.JWCLFILJ.js +0 -1
  208. package/dist/layers.MerAdE1w.js +0 -39
  209. package/dist/layers.OE83Ve6T.js +0 -5
  210. package/dist/layers.P6mLQhtB.js +0 -42
  211. package/dist/layers.PV80K4Xy.js +0 -11
  212. package/dist/layers.QNYkTpWx.js +0 -39
  213. package/dist/layers.R8mPlCA0.js +0 -261
  214. package/dist/layers.RTKoEILv.js +0 -9
  215. package/dist/layers.SLjiLvui.js +0 -4
  216. package/dist/layers.VJ5q1w0_.js +0 -21938
  217. package/dist/layers.XOfuSupS.js +0 -373
  218. package/dist/layers.YNcfYAuY.js +0 -9
  219. package/dist/layers.YO08nJMd.js +0 -10
  220. package/dist/layers.YqzV3yPW.js +0 -220
  221. package/dist/layers.Z4R1XaSC.js +0 -1
  222. package/dist/layers.ZZQfmNLr.js +0 -10
  223. package/dist/layers.b0h5ZBmD.js +0 -61
  224. package/dist/layers.b9B2NY7n.js +0 -11690
  225. package/dist/layers.bHmhGLR5.js +0 -931
  226. package/dist/layers.cgUeweX2.js +0 -84
  227. package/dist/layers.dYPOB_yR.js +0 -5
  228. package/dist/layers.easeN7iP.js +0 -1
  229. package/dist/layers.f7Ihj79-.js +0 -1034
  230. package/dist/layers.hLd2Pb2X.js +0 -1
  231. package/dist/layers.i0Y9asvx.js +0 -2235
  232. package/dist/layers.ib9vHAA4.js +0 -2
  233. package/dist/layers.k6E3SRkR.js +0 -70
  234. package/dist/layers.lCpg7dOn.js +0 -21
  235. package/dist/layers.lDwCLT0I.js +0 -1
  236. package/dist/layers.lP9uODKD.js +0 -1283
  237. package/dist/layers.pc1SXYEj.js +0 -1089
  238. package/dist/layers.snXT5mu6.js +0 -1
  239. package/dist/layers.vIfEp2lU.js +0 -48146
  240. package/dist/layers.wJNNYF6u.js +0 -122
  241. package/dist/layers.wKL0lWNs.js +0 -4
  242. package/dist/layers.wU0hxeTl.js +0 -65
  243. package/dist/layers.wj-nS-86.js +0 -38
  244. package/dist/layers.xiOwns_l.js +0 -1
@@ -1,2 +0,0 @@
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,70 +0,0 @@
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
- `+O.showPosition()+`
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
- `+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
- `+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},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
- ${p-o.width/2-4/2},${k+2}
8
- ${p-o.width/2-4/2},${k-2}
9
- ${f-o.width/2-4},${k-u-2}
10
- ${f+o.width/2+4},${k-u-2}
11
- ${f+o.width/2+4},${k+u+2}
12
- ${f-o.width/2-4},${k+u+2}`),G.attr("cx",p-o.width/2+4/2).attr("cy",k).attr("r",1.5).attr("class","tag-hole"),L==="TB"&&(M.attr("class","tag-label-bkg").attr("points",`
13
- ${d},${p+2}
14
- ${d},${p-2}
15
- ${d+a},${p-u-2}
16
- ${d+a+o.width+4},${p-u-2}
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=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
- `,"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
- .commit-id,
21
- .commit-msg,
22
- .branch-label {
23
- fill: lightgrey;
24
- color: lightgrey;
25
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
26
- font-family: var(--mermaid-font-family);
27
- }
28
- ${[0,1,2,3,4,5,6,7].map(n=>`
29
- .branch-label${n} { fill: ${r["gitBranchLabel"+n]}; }
30
- .commit${n} { stroke: ${r["git"+n]}; fill: ${r["git"+n]}; }
31
- .commit-highlight${n} { stroke: ${r["gitInv"+n]}; fill: ${r["gitInv"+n]}; }
32
- .label${n} { fill: ${r["git"+n]}; }
33
- .arrow${n} { stroke: ${r["git"+n]}; }
34
- `).join(`
35
- `)}
36
-
37
- .branch {
38
- stroke-width: 1;
39
- stroke: ${r.lineColor};
40
- stroke-dasharray: 2;
41
- }
42
- .commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};}
43
- .commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; }
44
- .tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}
45
- .tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; }
46
- .tag-hole { fill: ${r.textColor}; }
47
-
48
- .commit-merge {
49
- stroke: ${r.primaryColor};
50
- fill: ${r.primaryColor};
51
- }
52
- .commit-reverse {
53
- stroke: ${r.primaryColor};
54
- fill: ${r.primaryColor};
55
- stroke-width: 3;
56
- }
57
- .commit-highlight-outer {
58
- }
59
- .commit-highlight-inner {
60
- stroke: ${r.primaryColor};
61
- fill: ${r.primaryColor};
62
- }
63
-
64
- .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
65
- .gitTitleText {
66
- text-anchor: middle;
67
- font-size: 18px;
68
- fill: ${r.textColor};
69
- }
70
- `,et=$e,tt={parser:Re,db:Ye,renderer:Ze,styles:et};exports.diagram=tt;
@@ -1,21 +0,0 @@
1
- var y = async (e, t = [{}], s = null, p = !1, o = null) => {
2
- Array.isArray(t) || (t = [t]), t[0].fileName = t[0].fileName || "Untitled";
3
- const n = [];
4
- let i = null;
5
- if (e instanceof Blob && e.type ? i = e.type : e.headers && e.headers.get("content-type") && (i = e.headers.get("content-type")), t.forEach((a, r) => {
6
- n[r] = { description: a.description || "", accept: {} }, a.mimeTypes ? (r === 0 && i && a.mimeTypes.push(i), a.mimeTypes.map((d) => {
7
- n[r].accept[d] = a.extensions || [];
8
- })) : i && (n[r].accept[i] = a.extensions || []);
9
- }), s) try {
10
- await s.getFile();
11
- } catch (a) {
12
- if (s = null, p) throw a;
13
- }
14
- const c = s || await window.showSaveFilePicker({ suggestedName: t[0].fileName, id: t[0].id, startIn: t[0].startIn, types: n, excludeAcceptAllOption: t[0].excludeAcceptAllOption || !1 });
15
- !s && o && o();
16
- const l = await c.createWritable();
17
- return "stream" in e ? (await e.stream().pipeTo(l), c) : "body" in e ? (await e.body.pipeTo(l), c) : (await l.write(await e), await l.close(), c);
18
- };
19
- export {
20
- y as default
21
- };
@@ -1 +0,0 @@
1
- "use strict";const n=require("./layers.BqqCs8jG.js"),s=(e,r)=>n.Utils.lang.round(n.Color.parse(e)[r]);exports.channel=s;