orbitchat 2.2.10 → 2.3.0

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 (59) hide show
  1. package/dist/assets/{_basePickBy-0t-1TdXj-DH4J1m8V.js → _basePickBy-lBvRrdD9-B-9MpFjW.js} +1 -1
  2. package/dist/assets/_baseUniq-BtBvqxlY-Dv5C3esR.js +1 -0
  3. package/dist/assets/{api-0NuHuopb.js → api-CV6_7nU6.js} +1 -1
  4. package/dist/assets/arc-CCBnZEkJ-DybyxfWt.js +1 -0
  5. package/dist/assets/{architectureDiagram-VXUJARFQ-5Jt_APG9-BoVNR4UV.js → architectureDiagram-VXUJARFQ-D6fnSZjh-dA25eufs.js} +1 -1
  6. package/dist/assets/{blockDiagram-VD42YOAC-DTiW7a-n-CSp1ALjf.js → blockDiagram-VD42YOAC-CVjY2HvJ-Bvs-2xFL.js} +5 -5
  7. package/dist/assets/{c4Diagram-YG6GDRKO-DfrzrMnC-CkCuHyrT.js → c4Diagram-YG6GDRKO-C-f-jRtb-CBj7d1Qp.js} +3 -3
  8. package/dist/assets/channel-BvgtnSqX-CiCpm-FK.js +1 -0
  9. package/dist/assets/{chunk-4BX2VUAB-DP6WsS5b-DmFzjHyq.js → chunk-4BX2VUAB-ecO_Iw3K-Dsg9QQ9e.js} +1 -1
  10. package/dist/assets/chunk-55IACEB6-BFlfi8hV-BGJXNzLC.js +1 -0
  11. package/dist/assets/{chunk-B4BG7PRW-BVaRFjbY-BdpIBFL7.js → chunk-B4BG7PRW-0M4wlQGy-BFIioH1f.js} +5 -5
  12. package/dist/assets/{chunk-DI55MBZ5-NwybRWU6-D93ibRgN.js → chunk-DI55MBZ5-DcwSH2gI-uNFBVBGw.js} +3 -3
  13. package/dist/assets/{chunk-FMBD7UC4-D0AjqgJd-BqUKvjQH.js → chunk-FMBD7UC4-CyW6Y4c1-Cvb-I-1S.js} +1 -1
  14. package/dist/assets/{chunk-QN33PNHL-cmS1bOzt-B1tGHIDu.js → chunk-QN33PNHL-DF3LkPOs-IyOxcAL-.js} +1 -1
  15. package/dist/assets/{chunk-QZHKN3VN-DehtyeGo-BsFo-AuY.js → chunk-QZHKN3VN-BnmCvaos-BhXhqQoN.js} +1 -1
  16. package/dist/assets/{chunk-TZMSLE5B-BILiPuwH-DOft2nRu.js → chunk-TZMSLE5B-C4Hy1m-m-DFftuvKT.js} +1 -1
  17. package/dist/assets/classDiagram-2ON5EDUG-C2K4H7s6-BqCqtggy.js +1 -0
  18. package/dist/assets/classDiagram-v2-WZHVMYZB-C2K4H7s6-BqCqtggy.js +1 -0
  19. package/dist/assets/clone-DlVqQknZ-BDJyp8y8.js +1 -0
  20. package/dist/assets/{cose-bilkent-S5V4N54A-CDJ5hD7Q-BcxkEWNp.js → cose-bilkent-S5V4N54A-mo6qcR8E-D_z6t4Tf.js} +1 -1
  21. package/dist/assets/dagre-6UL2VRFP-DH4t_gQU-UMN3n2-7.js +4 -0
  22. package/dist/assets/{diagram-PSM6KHXK-C0ItMhu6-BHHxSZE4.js → diagram-PSM6KHXK-xncR2khS-DE1fEkBR.js} +1 -1
  23. package/dist/assets/{diagram-QEK2KX5R-CEsgotfL-F-1j8qO7.js → diagram-QEK2KX5R-CSzZUVkA-tJcvFwfU.js} +1 -1
  24. package/dist/assets/{diagram-S2PKOQOG-B6d1S6_G-Zzv-O9xk.js → diagram-S2PKOQOG-CTsV2Ry--BQlcrrcr.js} +2 -2
  25. package/dist/assets/{erDiagram-Q2GNP2WA-B-w3sS7V-2nanwMJ6.js → erDiagram-Q2GNP2WA-C-DLmzQQ-B-jtk4eF.js} +5 -5
  26. package/dist/assets/{flowDiagram-NV44I4VS-DssRq_2c-BffMgd28.js → flowDiagram-NV44I4VS-9jalL_2N-DKuPtUeP.js} +1 -1
  27. package/dist/assets/{ganttDiagram-JELNMOA3-IIlGW_kJ-Dxu3SgAH.js → ganttDiagram-JELNMOA3-B5Q1jKOu-Ho5f5uzH.js} +3 -3
  28. package/dist/assets/gitGraphDiagram-NY62KEGX-ug9A7XoP-D9w06-2F.js +65 -0
  29. package/dist/assets/{graph-BZqzM_VI-BBLTPB3S.js → graph-C-LzaQKB-Cch5aJ-h.js} +1 -1
  30. package/dist/assets/{index-rkYlv_42-Bg0V1tPP.js → index-B04ueuvU-Cvw4_ymU.js} +1 -1
  31. package/dist/assets/{index-DodYl3VC.js → index-DiPXXjl1.js} +93 -90
  32. package/dist/assets/infoDiagram-WHAUD3N6-D3nyF9iF-BjcBjZOT.js +2 -0
  33. package/dist/assets/{journeyDiagram-XKPGCS4Q-D6S72Oe9-iYQx9Mof.js → journeyDiagram-XKPGCS4Q-DrGofxJ_-Zv8ktrVj.js} +4 -4
  34. package/dist/assets/{kanban-definition-3W4ZIXB7--JZpAUKg-C2LOftDm.js → kanban-definition-3W4ZIXB7-DPOqAG2O-DfLp3ebY.js} +6 -6
  35. package/dist/assets/{layout-DHdXRoe5-CY2O2SIL.js → layout-Cx9iE-zh-K_S5vGG7.js} +1 -1
  36. package/dist/assets/{mindmap-definition-VGOIOE7T-I33kejqp-b66KO8Rt.js → mindmap-definition-VGOIOE7T-CDbIuwaY-D4Ih9cyZ.js} +1 -1
  37. package/dist/assets/{pieDiagram-ADFJNKIX-69ywrIzx-ceXn0a9Q.js → pieDiagram-ADFJNKIX-DFk5HpTR-BSzTH4-Z.js} +3 -3
  38. package/dist/assets/{quadrantDiagram-AYHSOK5B-CySBol3o-CltGpVzM.js → quadrantDiagram-AYHSOK5B-B92wNx9A-Bpuj71wR.js} +5 -5
  39. package/dist/assets/{requirementDiagram-UZGBJVZJ-BL-LwQUQ-DM_SSY8F.js → requirementDiagram-UZGBJVZJ-DbcE1GOH-BSV5OUP4.js} +1 -1
  40. package/dist/assets/{sankeyDiagram-TZEHDZUN-D3rAZVzY-BAAQukCD.js → sankeyDiagram-TZEHDZUN-B0rVCfiD-kdmAtl5Z.js} +3 -3
  41. package/dist/assets/{sequenceDiagram-WL72ISMW-BfBBVBjh-C993xDQ0.js → sequenceDiagram-WL72ISMW-Ch4qd1_w-DeggnvKy.js} +8 -8
  42. package/dist/assets/{stateDiagram-FKZM4ZOC-CioTL1ci-eXs9ZVMI.js → stateDiagram-FKZM4ZOC-BXSNYh_4-BBInmGsn.js} +1 -1
  43. package/dist/assets/stateDiagram-v2-4FDKWEC3--JZPzZ-Q-C0r6gD51.js +1 -0
  44. package/dist/assets/{timeline-definition-IT6M3QCI-DJ1oTa68-Cp1nvAUx.js → timeline-definition-IT6M3QCI-BaU6yGwl-BdHCQ244.js} +4 -4
  45. package/dist/assets/{treemap-KMMF4GRG-BLuW6hva-CvNDnceM.js → treemap-KMMF4GRG-B8dtJA6c-C7398h3b.js} +38 -38
  46. package/dist/assets/{xychartDiagram-PRI3JC2R-BahWB4u4-B6_eZy6F.js → xychartDiagram-PRI3JC2R-CdE6529H-Bf_betHN.js} +3 -3
  47. package/dist/index.html +1 -1
  48. package/package.json +2 -2
  49. package/dist/assets/_baseUniq-DZ7Bpu3I-Co9egLVD.js +0 -1
  50. package/dist/assets/arc-CsV8WDj2-C9VadXC6.js +0 -1
  51. package/dist/assets/channel-C1GZ9yWj-DYugq-sa.js +0 -1
  52. package/dist/assets/chunk-55IACEB6-DcZAWW2t-DPyoMeFz.js +0 -1
  53. package/dist/assets/classDiagram-2ON5EDUG-_7dtGwsA-C3Nhy3w6.js +0 -1
  54. package/dist/assets/classDiagram-v2-WZHVMYZB-_7dtGwsA-C3Nhy3w6.js +0 -1
  55. package/dist/assets/clone-D8_vOzkg-D9aZREI4.js +0 -1
  56. package/dist/assets/dagre-6UL2VRFP-D6cOp6Da-xpk1mIcg.js +0 -4
  57. package/dist/assets/gitGraphDiagram-NY62KEGX-D9Tl4KHH--tnJGvul.js +0 -65
  58. package/dist/assets/infoDiagram-WHAUD3N6-CjmJiQNf-YInQHfWX.js +0 -2
  59. package/dist/assets/stateDiagram-v2-4FDKWEC3-CNXUSYFj-C88PWSf5.js +0 -1
@@ -1,4 +1,4 @@
1
- import{R as f,L as w,am as v,B as C,O as m,l as P,i as z,w as F,z as S,h as W,u as E,M as T,N as D,F as A}from"./index-DodYl3VC.js";import{m as L}from"./chunk-4BX2VUAB-DP6WsS5b-DmFzjHyq.js";import{N as M}from"./treemap-KMMF4GRG-BLuW6hva-CvNDnceM.js";import"./_baseUniq-DZ7Bpu3I-Co9egLVD.js";import"./_basePickBy-0t-1TdXj-DH4J1m8V.js";import"./clone-D8_vOzkg-D9aZREI4.js";var N=D.packet,u,y=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=z,this.setDiagramTitle=F,this.getDiagramTitle=S,this.getAccDescription=W,this.setAccDescription=E}getConfig(){const t=w({...N,...T().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){A(),this.packet=[]}},f(u,"PacketDB"),u),O=1e4,R=f((t,e)=>{L(t,e);let o=-1,r=[],l=1;const{bitsPerRow:n}=e.getConfig();for(let{start:a,end:s,bits:c,label:d}of t.blocks){if(a!==void 0&&s!==void 0&&s<a)throw new Error(`Packet block ${a} - ${s} is invalid. End must be greater than start.`);if(a??(a=o+1),a!==o+1)throw new Error(`Packet block ${a} - ${s??a} is not contiguous. It should start from ${o+1}.`);if(c===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(s??(s=a+(c??1)-1),c??(c=s-a+1),o=s,m.debug(`Packet block ${a} - ${o} with label ${d}`);r.length<=n+1&&e.getPacket().length<O;){const[p,i]=Y({start:a,end:s,bits:c,label:d},l,n);if(r.push(p),p.end+1===l*n&&(e.pushWord(r),r=[],l++),!i)break;({start:a,end:s,bits:c,label:d}=i)}}e.pushWord(r)},"populate"),Y=f((t,e,o)=>{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*o)return[t,void 0];const r=e*o-1,l=e*o;return[{start:t.start,end:r,label:t.label,bits:r-t.start},{start:l,end:t.end,label:t.label,bits:t.end-l}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:f(async t=>{var e;const o=await M("packet",t),r=(e=x.parser)==null?void 0:e.yy;if(!(r instanceof y))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");m.debug(o),R(o,r)},"parse")},q=f((t,e,o,r)=>{const l=r.db,n=l.getConfig(),{rowHeight:a,paddingY:s,bitWidth:c,bitsPerRow:d}=n,p=l.getPacket(),i=l.getDiagramTitle(),b=a+s,h=b*(p.length+1)-(i?0:a),k=c*d+2,g=v(e);g.attr("viewbox",`0 0 ${k} ${h}`),C(g,h,k,n.useMaxWidth);for(const[$,B]of p.entries())H(g,B,$,n);g.append("text").text(i).attr("x",k/2).attr("y",h-b/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=f((t,e,o,{rowHeight:r,paddingX:l,paddingY:n,bitWidth:a,bitsPerRow:s,showBits:c})=>{const d=t.append("g"),p=o*(r+n)+n;for(const i of e){const b=i.start%s*a+1,h=(i.end-i.start+1)*a-l;if(d.append("rect").attr("x",b).attr("y",p).attr("width",h).attr("height",r).attr("class","packetBlock"),d.append("text").attr("x",b+h/2).attr("y",p+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(i.label),!c)continue;const k=i.end===i.start,g=p-2;d.append("text").attr("x",b+(k?h/2:0)).attr("y",g).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(i.start),k||d.append("text").attr("x",b+h).attr("y",g).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(i.end)}},"drawWord"),j={draw:q},I={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},X=f(({packet:t}={})=>{const e=w(I,t);return`
1
+ import{I as f,Z as m,am as C,B as v,O as w,u as P,d as z,A as S,C as F,p as W,h as E,L as T,M as D,G as A}from"./index-DiPXXjl1.js";import{m as I}from"./chunk-4BX2VUAB-ecO_Iw3K-Dsg9QQ9e.js";import{N as L}from"./treemap-KMMF4GRG-B8dtJA6c-C7398h3b.js";import"./_baseUniq-BtBvqxlY-Dv5C3esR.js";import"./_basePickBy-lBvRrdD9-B-9MpFjW.js";import"./clone-DlVqQknZ-BDJyp8y8.js";var M=D.packet,u,y=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=z,this.setDiagramTitle=S,this.getDiagramTitle=F,this.getAccDescription=W,this.setAccDescription=E}getConfig(){const t=m({...M,...T().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){A(),this.packet=[]}},f(u,"PacketDB"),u),O=1e4,Y=f((t,e)=>{I(t,e);let o=-1,r=[],l=1;const{bitsPerRow:n}=e.getConfig();for(let{start:a,end:s,bits:c,label:d}of t.blocks){if(a!==void 0&&s!==void 0&&s<a)throw new Error(`Packet block ${a} - ${s} is invalid. End must be greater than start.`);if(a??(a=o+1),a!==o+1)throw new Error(`Packet block ${a} - ${s??a} is not contiguous. It should start from ${o+1}.`);if(c===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(s??(s=a+(c??1)-1),c??(c=s-a+1),o=s,w.debug(`Packet block ${a} - ${o} with label ${d}`);r.length<=n+1&&e.getPacket().length<O;){const[p,i]=q({start:a,end:s,bits:c,label:d},l,n);if(r.push(p),p.end+1===l*n&&(e.pushWord(r),r=[],l++),!i)break;({start:a,end:s,bits:c,label:d}=i)}}e.pushWord(r)},"populate"),q=f((t,e,o)=>{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*o)return[t,void 0];const r=e*o-1,l=e*o;return[{start:t.start,end:r,label:t.label,bits:r-t.start},{start:l,end:t.end,label:t.label,bits:t.end-l}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:f(async t=>{var e;const o=await L("packet",t),r=(e=x.parser)==null?void 0:e.yy;if(!(r instanceof y))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(o),Y(o,r)},"parse")},H=f((t,e,o,r)=>{const l=r.db,n=l.getConfig(),{rowHeight:a,paddingY:s,bitWidth:c,bitsPerRow:d}=n,p=l.getPacket(),i=l.getDiagramTitle(),b=a+s,h=b*(p.length+1)-(i?0:a),k=c*d+2,g=C(e);g.attr("viewbox",`0 0 ${k} ${h}`),v(g,h,k,n.useMaxWidth);for(const[$,B]of p.entries())N(g,B,$,n);g.append("text").text(i).attr("x",k/2).attr("y",h-b/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),N=f((t,e,o,{rowHeight:r,paddingX:l,paddingY:n,bitWidth:a,bitsPerRow:s,showBits:c})=>{const d=t.append("g"),p=o*(r+n)+n;for(const i of e){const b=i.start%s*a+1,h=(i.end-i.start+1)*a-l;if(d.append("rect").attr("x",b).attr("y",p).attr("width",h).attr("height",r).attr("class","packetBlock"),d.append("text").attr("x",b+h/2).attr("y",p+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(i.label),!c)continue;const k=i.end===i.start,g=p-2;d.append("text").attr("x",b+(k?h/2:0)).attr("y",g).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(i.start),k||d.append("text").attr("x",b+h).attr("y",g).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(i.end)}},"drawWord"),R={draw:H},j={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},G=f(({packet:t}={})=>{const e=m(j,t);return`
2
2
  .packetByte {
3
3
  font-size: ${e.byteFontSize};
4
4
  }
@@ -21,4 +21,4 @@ import{R as f,L as w,am as v,B as C,O as m,l as P,i as z,w as F,z as S,h as W,u
21
21
  stroke-width: ${e.blockStrokeWidth};
22
22
  fill: ${e.blockFillColor};
23
23
  }
24
- `},"styles"),V={parser:x,get db(){return new y},renderer:j,styles:X};export{V as diagram};
24
+ `},"styles"),V={parser:x,get db(){return new y},renderer:R,styles:G};export{V as diagram};
@@ -1,9 +1,9 @@
1
- import{d as vt}from"./chunk-55IACEB6-DcZAWW2t-DPyoMeFz.js";import{d as $t}from"./chunk-QN33PNHL-cmS1bOzt-B1tGHIDu.js";import{R as o,l as Dt,i as wt,u as Lt,h as Mt,w as Ft,z as Bt,g as q,O as $,F as Yt,H as Pt,G as zt,Y as Gt,r as Kt,s as Ut,d as Zt,v as jt}from"./index-DodYl3VC.js";import{t as Wt}from"./channel-C1GZ9yWj-DYugq-sa.js";var ut=function(){var e=o(function(m,r,a,n){for(a=a||{},n=m.length;n--;a[m[n]]=r);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],u=[1,10],c=[1,11],l=[1,12],y=[1,13],R=[1,20],b=[1,21],E=[1,22],D=[1,23],V=[1,24],O=[1,19],G=[1,25],w=[1,26],A=[1,18],J=[1,33],tt=[1,34],et=[1,35],st=[1,36],it=[1,37],yt=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],S=[1,42],T=[1,43],L=[1,52],M=[40,50,68,69],F=[1,63],B=[1,61],N=[1,58],Y=[1,62],P=[1,64],K=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],dt=[63,64,65,66,67],pt=[1,81],_t=[1,80],ft=[1,78],bt=[1,79],gt=[6,10,42,47],x=[6,10,13,41,42,47,48,49],U=[1,89],Z=[1,88],j=[1,87],z=[19,56],mt=[1,98],Et=[1,97],nt=[19,56,58,60],rt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:o(function(m,r,a,n,h,t,p){var s=t.length-1;switch(h){case 1:break;case 2:this.$=[];break;case 3:t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 5:this.$=t[s];break;case 6:case 7:this.$=[];break;case 8:n.addEntity(t[s-4]),n.addEntity(t[s-2]),n.addRelationship(t[s-4],t[s],t[s-2],t[s-3]);break;case 9:n.addEntity(t[s-8]),n.addEntity(t[s-4]),n.addRelationship(t[s-8],t[s],t[s-4],t[s-5]),n.setClass([t[s-8]],t[s-6]),n.setClass([t[s-4]],t[s-2]);break;case 10:n.addEntity(t[s-6]),n.addEntity(t[s-2]),n.addRelationship(t[s-6],t[s],t[s-2],t[s-3]),n.setClass([t[s-6]],t[s-4]);break;case 11:n.addEntity(t[s-6]),n.addEntity(t[s-4]),n.addRelationship(t[s-6],t[s],t[s-4],t[s-5]),n.setClass([t[s-4]],t[s-2]);break;case 12:n.addEntity(t[s-3]),n.addAttributes(t[s-3],t[s-1]);break;case 13:n.addEntity(t[s-5]),n.addAttributes(t[s-5],t[s-1]),n.setClass([t[s-5]],t[s-3]);break;case 14:n.addEntity(t[s-2]);break;case 15:n.addEntity(t[s-4]),n.setClass([t[s-4]],t[s-2]);break;case 16:n.addEntity(t[s]);break;case 17:n.addEntity(t[s-2]),n.setClass([t[s-2]],t[s]);break;case 18:n.addEntity(t[s-6],t[s-4]),n.addAttributes(t[s-6],t[s-1]);break;case 19:n.addEntity(t[s-8],t[s-6]),n.addAttributes(t[s-8],t[s-1]),n.setClass([t[s-8]],t[s-3]);break;case 20:n.addEntity(t[s-5],t[s-3]);break;case 21:n.addEntity(t[s-7],t[s-5]),n.setClass([t[s-7]],t[s-2]);break;case 22:n.addEntity(t[s-3],t[s-1]);break;case 23:n.addEntity(t[s-5],t[s-3]),n.setClass([t[s-5]],t[s]);break;case 24:case 25:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirection("RL");break;case 35:n.setDirection("LR");break;case 36:this.$=t[s-3],n.addClass(t[s-2],t[s-1]);break;case 37:case 38:case 56:case 64:this.$=[t[s]];break;case 39:case 40:this.$=t[s-2].concat([t[s]]);break;case 41:this.$=t[s-2],n.setClass(t[s-1],t[s]);break;case 42:this.$=t[s-3],n.addCssStyles(t[s-2],t[s-1]);break;case 43:this.$=[t[s]];break;case 44:t[s-2].push(t[s]),this.$=t[s-2];break;case 46:this.$=t[s-1]+t[s];break;case 54:case 76:case 77:this.$=t[s].replace(/"/g,"");break;case 55:case 78:this.$=t[s];break;case 57:t[s].push(t[s-1]),this.$=t[s];break;case 58:this.$={type:t[s-1],name:t[s]};break;case 59:this.$={type:t[s-2],name:t[s-1],keys:t[s]};break;case 60:this.$={type:t[s-2],name:t[s-1],comment:t[s]};break;case 61:this.$={type:t[s-3],name:t[s-2],keys:t[s-1],comment:t[s]};break;case 62:case 63:case 66:this.$=t[s];break;case 65:t[s-2].push(t[s]),this.$=t[s-2];break;case 67:this.$=t[s].replace(/"/g,"");break;case 68:this.$={cardA:t[s],relType:t[s-1],cardB:t[s-2]};break;case 69:this.$=n.Cardinality.ZERO_OR_ONE;break;case 70:this.$=n.Cardinality.ZERO_OR_MORE;break;case 71:this.$=n.Cardinality.ONE_OR_MORE;break;case 72:this.$=n.Cardinality.ONLY_ONE;break;case 73:this.$=n.Cardinality.MD_PARENT;break;case 74:this.$=n.Identification.NON_IDENTIFYING;break;case 75:this.$=n.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:u,24:c,26:l,28:y,29:14,30:15,31:16,32:17,33:R,34:b,35:E,36:D,37:V,40:O,43:G,44:w,50:A},e(i,[2,7],{1:[2,1]}),e(i,[2,3]),{9:27,11:9,22:u,24:c,26:l,28:y,29:14,30:15,31:16,32:17,33:R,34:b,35:E,36:D,37:V,40:O,43:G,44:w,50:A},e(i,[2,5]),e(i,[2,6]),e(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:J,64:tt,65:et,66:st,67:it}),{23:[1,38]},{25:[1,39]},{27:[1,40]},e(i,[2,27]),e(i,[2,28]),e(i,[2,29]),e(i,[2,30]),e(i,[2,31]),e(yt,[2,54]),e(yt,[2,55]),e(i,[2,32]),e(i,[2,33]),e(i,[2,34]),e(i,[2,35]),{16:41,40:S,41:T},{16:44,40:S,41:T},{16:45,40:S,41:T},e(i,[2,4]),{11:46,40:O,50:A},{16:47,40:S,41:T},{18:48,19:[1,49],51:50,52:51,56:L},{11:53,40:O,50:A},{62:54,68:[1,55],69:[1,56]},e(M,[2,69]),e(M,[2,70]),e(M,[2,71]),e(M,[2,72]),e(M,[2,73]),e(i,[2,24]),e(i,[2,25]),e(i,[2,26]),{13:F,38:57,41:B,42:N,45:59,46:60,48:Y,49:P},e(K,[2,37]),e(K,[2,38]),{16:65,40:S,41:T,42:N},{13:F,38:66,41:B,42:N,45:59,46:60,48:Y,49:P},{13:[1,67],15:[1,68]},e(i,[2,17],{61:32,12:69,17:[1,70],42:N,63:J,64:tt,65:et,66:st,67:it}),{19:[1,71]},e(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:L},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:J,64:tt,65:et,66:st,67:it},e(dt,[2,74]),e(dt,[2,75]),{6:pt,10:_t,39:77,42:ft,47:bt},{40:[1,82],41:[1,83]},e(gt,[2,43],{46:84,13:F,41:B,48:Y,49:P}),e(x,[2,45]),e(x,[2,50]),e(x,[2,51]),e(x,[2,52]),e(x,[2,53]),e(i,[2,41],{42:N}),{6:pt,10:_t,39:85,42:ft,47:bt},{14:86,40:U,50:Z,70:j},{16:90,40:S,41:T},{11:91,40:O,50:A},{18:92,19:[1,93],51:50,52:51,56:L},e(i,[2,12]),{19:[2,57]},e(z,[2,58],{54:94,55:95,57:96,59:mt,60:Et}),e([19,56,59,60],[2,63]),e(i,[2,22],{15:[1,100],17:[1,99]}),e([40,50],[2,68]),e(i,[2,36]),{13:F,41:B,45:101,46:60,48:Y,49:P},e(i,[2,47]),e(i,[2,48]),e(i,[2,49]),e(K,[2,39]),e(K,[2,40]),e(x,[2,46]),e(i,[2,42]),e(i,[2,8]),e(i,[2,76]),e(i,[2,77]),e(i,[2,78]),{13:[1,102],42:N},{13:[1,104],15:[1,103]},{19:[1,105]},e(i,[2,15]),e(z,[2,59],{55:106,58:[1,107],60:Et}),e(z,[2,60]),e(nt,[2,64]),e(z,[2,67]),e(nt,[2,66]),{18:108,19:[1,109],51:50,52:51,56:L},{16:110,40:S,41:T},e(gt,[2,44],{46:84,13:F,41:B,48:Y,49:P}),{14:111,40:U,50:Z,70:j},{16:112,40:S,41:T},{14:113,40:U,50:Z,70:j},e(i,[2,13]),e(z,[2,61]),{57:114,59:mt},{19:[1,115]},e(i,[2,20]),e(i,[2,23],{17:[1,116],42:N}),e(i,[2,11]),{13:[1,117],42:N},e(i,[2,10]),e(nt,[2,65]),e(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:L},{14:120,40:U,50:Z,70:j},{19:[1,121]},e(i,[2,21]),e(i,[2,9]),e(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:o(function(m,r){if(r.recoverable)this.trace(m);else{var a=new Error(m);throw a.hash=r,a}},"parseError"),parse:o(function(m){var r=this,a=[0],n=[],h=[null],t=[],p=this.table,s="",X=0,kt=0,At=2,Ot=1,It=t.slice.call(arguments,1),d=Object.create(this.lexer),I={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(I.yy[at]=this.yy[at]);d.setInput(m,I.yy),I.yy.lexer=d,I.yy.parser=this,typeof d.yylloc>"u"&&(d.yylloc={});var ct=d.yylloc;t.push(ct);var Ct=d.options&&d.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xt(f){a.length=a.length-2*f,h.length=h.length-f,t.length=t.length-f}o(xt,"popStack");function St(){var f;return f=n.pop()||d.lex()||Ot,typeof f!="number"&&(f instanceof Array&&(n=f,f=n.pop()),f=r.symbols_[f]||f),f}o(St,"lex");for(var _,C,g,ot,v={},Q,k,Tt,H;;){if(C=a[a.length-1],this.defaultActions[C]?g=this.defaultActions[C]:((_===null||typeof _>"u")&&(_=St()),g=p[C]&&p[C][_]),typeof g>"u"||!g.length||!g[0]){var lt="";H=[];for(Q in p[C])this.terminals_[Q]&&Q>At&&H.push("'"+this.terminals_[Q]+"'");d.showPosition?lt="Parse error on line "+(X+1)+`:
1
+ import{d as vt}from"./chunk-55IACEB6-BFlfi8hV-BGJXNzLC.js";import{d as Dt}from"./chunk-QN33PNHL-DF3LkPOs-IyOxcAL-.js";import{I as o,u as $t,d as wt,h as Lt,p as Mt,A as Ft,C as Bt,g as H,O as D,G as Pt,X as Yt,P as zt,J as Gt,w as Kt,y as Ut,t as Zt,z as jt}from"./index-DiPXXjl1.js";import{t as Xt}from"./channel-BvgtnSqX-CiCpm-FK.js";var ut=function(){var e=o(function(m,r,a,n){for(a=a||{},n=m.length;n--;a[m[n]]=r);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],u=[1,10],c=[1,11],l=[1,12],y=[1,13],A=[1,20],b=[1,21],E=[1,22],$=[1,23],V=[1,24],O=[1,19],G=[1,25],w=[1,26],R=[1,18],J=[1,33],tt=[1,34],et=[1,35],st=[1,36],it=[1,37],yt=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],S=[1,42],T=[1,43],L=[1,52],M=[40,50,68,69],F=[1,63],B=[1,61],N=[1,58],P=[1,62],Y=[1,64],K=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],dt=[63,64,65,66,67],pt=[1,81],_t=[1,80],ft=[1,78],bt=[1,79],gt=[6,10,42,47],x=[6,10,13,41,42,47,48,49],U=[1,89],Z=[1,88],j=[1,87],z=[19,56],mt=[1,98],Et=[1,97],nt=[19,56,58,60],rt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:o(function(m,r,a,n,h,t,p){var s=t.length-1;switch(h){case 1:break;case 2:this.$=[];break;case 3:t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 5:this.$=t[s];break;case 6:case 7:this.$=[];break;case 8:n.addEntity(t[s-4]),n.addEntity(t[s-2]),n.addRelationship(t[s-4],t[s],t[s-2],t[s-3]);break;case 9:n.addEntity(t[s-8]),n.addEntity(t[s-4]),n.addRelationship(t[s-8],t[s],t[s-4],t[s-5]),n.setClass([t[s-8]],t[s-6]),n.setClass([t[s-4]],t[s-2]);break;case 10:n.addEntity(t[s-6]),n.addEntity(t[s-2]),n.addRelationship(t[s-6],t[s],t[s-2],t[s-3]),n.setClass([t[s-6]],t[s-4]);break;case 11:n.addEntity(t[s-6]),n.addEntity(t[s-4]),n.addRelationship(t[s-6],t[s],t[s-4],t[s-5]),n.setClass([t[s-4]],t[s-2]);break;case 12:n.addEntity(t[s-3]),n.addAttributes(t[s-3],t[s-1]);break;case 13:n.addEntity(t[s-5]),n.addAttributes(t[s-5],t[s-1]),n.setClass([t[s-5]],t[s-3]);break;case 14:n.addEntity(t[s-2]);break;case 15:n.addEntity(t[s-4]),n.setClass([t[s-4]],t[s-2]);break;case 16:n.addEntity(t[s]);break;case 17:n.addEntity(t[s-2]),n.setClass([t[s-2]],t[s]);break;case 18:n.addEntity(t[s-6],t[s-4]),n.addAttributes(t[s-6],t[s-1]);break;case 19:n.addEntity(t[s-8],t[s-6]),n.addAttributes(t[s-8],t[s-1]),n.setClass([t[s-8]],t[s-3]);break;case 20:n.addEntity(t[s-5],t[s-3]);break;case 21:n.addEntity(t[s-7],t[s-5]),n.setClass([t[s-7]],t[s-2]);break;case 22:n.addEntity(t[s-3],t[s-1]);break;case 23:n.addEntity(t[s-5],t[s-3]),n.setClass([t[s-5]],t[s]);break;case 24:case 25:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirection("RL");break;case 35:n.setDirection("LR");break;case 36:this.$=t[s-3],n.addClass(t[s-2],t[s-1]);break;case 37:case 38:case 56:case 64:this.$=[t[s]];break;case 39:case 40:this.$=t[s-2].concat([t[s]]);break;case 41:this.$=t[s-2],n.setClass(t[s-1],t[s]);break;case 42:this.$=t[s-3],n.addCssStyles(t[s-2],t[s-1]);break;case 43:this.$=[t[s]];break;case 44:t[s-2].push(t[s]),this.$=t[s-2];break;case 46:this.$=t[s-1]+t[s];break;case 54:case 76:case 77:this.$=t[s].replace(/"/g,"");break;case 55:case 78:this.$=t[s];break;case 57:t[s].push(t[s-1]),this.$=t[s];break;case 58:this.$={type:t[s-1],name:t[s]};break;case 59:this.$={type:t[s-2],name:t[s-1],keys:t[s]};break;case 60:this.$={type:t[s-2],name:t[s-1],comment:t[s]};break;case 61:this.$={type:t[s-3],name:t[s-2],keys:t[s-1],comment:t[s]};break;case 62:case 63:case 66:this.$=t[s];break;case 65:t[s-2].push(t[s]),this.$=t[s-2];break;case 67:this.$=t[s].replace(/"/g,"");break;case 68:this.$={cardA:t[s],relType:t[s-1],cardB:t[s-2]};break;case 69:this.$=n.Cardinality.ZERO_OR_ONE;break;case 70:this.$=n.Cardinality.ZERO_OR_MORE;break;case 71:this.$=n.Cardinality.ONE_OR_MORE;break;case 72:this.$=n.Cardinality.ONLY_ONE;break;case 73:this.$=n.Cardinality.MD_PARENT;break;case 74:this.$=n.Identification.NON_IDENTIFYING;break;case 75:this.$=n.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:u,24:c,26:l,28:y,29:14,30:15,31:16,32:17,33:A,34:b,35:E,36:$,37:V,40:O,43:G,44:w,50:R},e(i,[2,7],{1:[2,1]}),e(i,[2,3]),{9:27,11:9,22:u,24:c,26:l,28:y,29:14,30:15,31:16,32:17,33:A,34:b,35:E,36:$,37:V,40:O,43:G,44:w,50:R},e(i,[2,5]),e(i,[2,6]),e(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:J,64:tt,65:et,66:st,67:it}),{23:[1,38]},{25:[1,39]},{27:[1,40]},e(i,[2,27]),e(i,[2,28]),e(i,[2,29]),e(i,[2,30]),e(i,[2,31]),e(yt,[2,54]),e(yt,[2,55]),e(i,[2,32]),e(i,[2,33]),e(i,[2,34]),e(i,[2,35]),{16:41,40:S,41:T},{16:44,40:S,41:T},{16:45,40:S,41:T},e(i,[2,4]),{11:46,40:O,50:R},{16:47,40:S,41:T},{18:48,19:[1,49],51:50,52:51,56:L},{11:53,40:O,50:R},{62:54,68:[1,55],69:[1,56]},e(M,[2,69]),e(M,[2,70]),e(M,[2,71]),e(M,[2,72]),e(M,[2,73]),e(i,[2,24]),e(i,[2,25]),e(i,[2,26]),{13:F,38:57,41:B,42:N,45:59,46:60,48:P,49:Y},e(K,[2,37]),e(K,[2,38]),{16:65,40:S,41:T,42:N},{13:F,38:66,41:B,42:N,45:59,46:60,48:P,49:Y},{13:[1,67],15:[1,68]},e(i,[2,17],{61:32,12:69,17:[1,70],42:N,63:J,64:tt,65:et,66:st,67:it}),{19:[1,71]},e(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:L},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:J,64:tt,65:et,66:st,67:it},e(dt,[2,74]),e(dt,[2,75]),{6:pt,10:_t,39:77,42:ft,47:bt},{40:[1,82],41:[1,83]},e(gt,[2,43],{46:84,13:F,41:B,48:P,49:Y}),e(x,[2,45]),e(x,[2,50]),e(x,[2,51]),e(x,[2,52]),e(x,[2,53]),e(i,[2,41],{42:N}),{6:pt,10:_t,39:85,42:ft,47:bt},{14:86,40:U,50:Z,70:j},{16:90,40:S,41:T},{11:91,40:O,50:R},{18:92,19:[1,93],51:50,52:51,56:L},e(i,[2,12]),{19:[2,57]},e(z,[2,58],{54:94,55:95,57:96,59:mt,60:Et}),e([19,56,59,60],[2,63]),e(i,[2,22],{15:[1,100],17:[1,99]}),e([40,50],[2,68]),e(i,[2,36]),{13:F,41:B,45:101,46:60,48:P,49:Y},e(i,[2,47]),e(i,[2,48]),e(i,[2,49]),e(K,[2,39]),e(K,[2,40]),e(x,[2,46]),e(i,[2,42]),e(i,[2,8]),e(i,[2,76]),e(i,[2,77]),e(i,[2,78]),{13:[1,102],42:N},{13:[1,104],15:[1,103]},{19:[1,105]},e(i,[2,15]),e(z,[2,59],{55:106,58:[1,107],60:Et}),e(z,[2,60]),e(nt,[2,64]),e(z,[2,67]),e(nt,[2,66]),{18:108,19:[1,109],51:50,52:51,56:L},{16:110,40:S,41:T},e(gt,[2,44],{46:84,13:F,41:B,48:P,49:Y}),{14:111,40:U,50:Z,70:j},{16:112,40:S,41:T},{14:113,40:U,50:Z,70:j},e(i,[2,13]),e(z,[2,61]),{57:114,59:mt},{19:[1,115]},e(i,[2,20]),e(i,[2,23],{17:[1,116],42:N}),e(i,[2,11]),{13:[1,117],42:N},e(i,[2,10]),e(nt,[2,65]),e(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:L},{14:120,40:U,50:Z,70:j},{19:[1,121]},e(i,[2,21]),e(i,[2,9]),e(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:o(function(m,r){if(r.recoverable)this.trace(m);else{var a=new Error(m);throw a.hash=r,a}},"parseError"),parse:o(function(m){var r=this,a=[0],n=[],h=[null],t=[],p=this.table,s="",W=0,kt=0,Rt=2,Ot=1,It=t.slice.call(arguments,1),d=Object.create(this.lexer),I={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(I.yy[at]=this.yy[at]);d.setInput(m,I.yy),I.yy.lexer=d,I.yy.parser=this,typeof d.yylloc>"u"&&(d.yylloc={});var ct=d.yylloc;t.push(ct);var Ct=d.options&&d.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xt(f){a.length=a.length-2*f,h.length=h.length-f,t.length=t.length-f}o(xt,"popStack");function St(){var f;return f=n.pop()||d.lex()||Ot,typeof f!="number"&&(f instanceof Array&&(n=f,f=n.pop()),f=r.symbols_[f]||f),f}o(St,"lex");for(var _,C,g,ot,v={},Q,k,Tt,q;;){if(C=a[a.length-1],this.defaultActions[C]?g=this.defaultActions[C]:((_===null||typeof _>"u")&&(_=St()),g=p[C]&&p[C][_]),typeof g>"u"||!g.length||!g[0]){var lt="";q=[];for(Q in p[C])this.terminals_[Q]&&Q>Rt&&q.push("'"+this.terminals_[Q]+"'");d.showPosition?lt="Parse error on line "+(W+1)+`:
2
2
  `+d.showPosition()+`
3
- Expecting `+H.join(", ")+", got '"+(this.terminals_[_]||_)+"'":lt="Parse error on line "+(X+1)+": Unexpected "+(_==Ot?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(lt,{text:d.match,token:this.terminals_[_]||_,line:d.yylineno,loc:ct,expected:H})}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+_);switch(g[0]){case 1:a.push(_),h.push(d.yytext),t.push(d.yylloc),a.push(g[1]),_=null,kt=d.yyleng,s=d.yytext,X=d.yylineno,ct=d.yylloc;break;case 2:if(k=this.productions_[g[1]][1],v.$=h[h.length-k],v._$={first_line:t[t.length-(k||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(k||1)].first_column,last_column:t[t.length-1].last_column},Ct&&(v._$.range=[t[t.length-(k||1)].range[0],t[t.length-1].range[1]]),ot=this.performAction.apply(v,[s,kt,X,I.yy,g[1],h,t].concat(It)),typeof ot<"u")return ot;k&&(a=a.slice(0,-1*k*2),h=h.slice(0,-1*k),t=t.slice(0,-1*k)),a.push(this.productions_[g[1]][0]),h.push(v.$),t.push(v._$),Tt=p[a[a.length-2]][a[a.length-1]],a.push(Tt);break;case 3:return!0}}return!0},"parse")},Rt=function(){var m={EOF:1,parseError:o(function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},"parseError"),setInput:o(function(r,a){return this.yy=a||this.yy||{},this._input=r,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},"setInput"),input:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:o(function(r){var a=r.length,n=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var h=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),n.length-1&&(this.yylineno-=n.length-1);var t=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:n?(n.length===h.length?this.yylloc.first_column:0)+h[h.length-n.length].length-n[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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).
3
+ Expecting `+q.join(", ")+", got '"+(this.terminals_[_]||_)+"'":lt="Parse error on line "+(W+1)+": Unexpected "+(_==Ot?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(lt,{text:d.match,token:this.terminals_[_]||_,line:d.yylineno,loc:ct,expected:q})}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+_);switch(g[0]){case 1:a.push(_),h.push(d.yytext),t.push(d.yylloc),a.push(g[1]),_=null,kt=d.yyleng,s=d.yytext,W=d.yylineno,ct=d.yylloc;break;case 2:if(k=this.productions_[g[1]][1],v.$=h[h.length-k],v._$={first_line:t[t.length-(k||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(k||1)].first_column,last_column:t[t.length-1].last_column},Ct&&(v._$.range=[t[t.length-(k||1)].range[0],t[t.length-1].range[1]]),ot=this.performAction.apply(v,[s,kt,W,I.yy,g[1],h,t].concat(It)),typeof ot<"u")return ot;k&&(a=a.slice(0,-1*k*2),h=h.slice(0,-1*k),t=t.slice(0,-1*k)),a.push(this.productions_[g[1]][0]),h.push(v.$),t.push(v._$),Tt=p[a[a.length-2]][a[a.length-1]],a.push(Tt);break;case 3:return!0}}return!0},"parse")},At=function(){var m={EOF:1,parseError:o(function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},"parseError"),setInput:o(function(r,a){return this.yy=a||this.yy||{},this._input=r,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},"setInput"),input:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:o(function(r){var a=r.length,n=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var h=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),n.length-1&&(this.yylineno-=n.length-1);var t=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:n?(n.length===h.length?this.yylloc.first_column:0)+h[h.length-n.length].length-n[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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},"reject"),less:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
5
  `+a+"^"},"showPosition"),test_match:o(function(r,a){var n,h,t;if(this.options.backtrack_lexer&&(t={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&&(t.yylloc.range=this.yylloc.range.slice(0))),h=r[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],n=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var p in t)this[p]=t[p];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,a,n,h;this._more||(this.yytext="",this.match="");for(var t=this._currentRules(),p=0;p<t.length;p++)if(n=this._input.match(this.rules[t[p]]),n&&(!a||n[0].length>a[0].length)){if(a=n,h=p,this.options.backtrack_lexer){if(r=this.test_match(n,t[p]),r!==!1)return r;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(r=this.test_match(a,t[h]),r!==!1?r:!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})},"next"),lex:o(function(){var r=this.next();return r||this.lex()},"lex"),begin:o(function(r){this.conditionStack.push(r)},"begin"),popState:o(function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},"topState"),pushState:o(function(r){this.begin(r)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(r,a,n,h){switch(n){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;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 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 70;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 59;case 25:return 56;case 26:return 56;case 27:return 60;case 28:break;case 29:return this.popState(),19;case 30:return a.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 63;case 42:return 65;case 43:return 65;case 44:return 65;case 45:return 63;case 46:return 63;case 47:return 64;case 48:return 64;case 49:return 64;case 50:return 64;case 51:return 64;case 52:return 65;case 53:return 64;case 54:return 65;case 55:return 66;case 56:return 66;case 57:return 66;case 58:return 66;case 59:return 63;case 60:return 64;case 61:return 65;case 62:return 67;case 63:return 68;case 64:return 69;case 65:return 69;case 66:return 68;case 67:return 68;case 68:return 68;case 69:return 41;case 70:return 47;case 71:return 40;case 72:return 48;case 73:return a.yytext[0];case 74:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,71,72,73,74],inclusive:!0}}};return m}();rt.lexer=Rt;function W(){this.yy={}}return o(W,"Parser"),W.prototype=rt,rt.Parser=W,new W}();ut.parser=ut;var Xt=ut,ht,Qt=(ht=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=Dt,this.getAccTitle=wt,this.setAccDescription=Lt,this.getAccDescription=Mt,this.setDiagramTitle=Ft,this.getDiagramTitle=Bt,this.getConfig=o(()=>q().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}addEntity(e,i=""){var u;return this.entities.has(e)?!((u=this.entities.get(e))!=null&&u.alias)&&i&&(this.entities.get(e).alias=i,$.info(`Add alias '${i}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:i,shape:"erBox",look:q().look??"default",cssClasses:"default",cssStyles:[]}),$.info("Added new entity :",e)),this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,i){const u=this.addEntity(e);let c;for(c=i.length-1;c>=0;c--)i[c].keys||(i[c].keys=[]),i[c].comment||(i[c].comment=""),u.attributes.push(i[c]),$.debug("Added attribute ",i[c].name)}addRelationship(e,i,u,c){const l=this.entities.get(e),y=this.entities.get(u);if(!l||!y)return;const R={entityA:l.id,roleA:i,entityB:y.id,relSpec:c};this.relationships.push(R),$.debug("Added new relationship :",R)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let i=[];for(const u of e){const c=this.classes.get(u);c!=null&&c.styles&&(i=[...i,...c.styles??[]].map(l=>l.trim())),c!=null&&c.textStyles&&(i=[...i,...c.textStyles??[]].map(l=>l.trim()))}return i}addCssStyles(e,i){for(const u of e){const c=this.entities.get(u);if(!i||!c)return;for(const l of i)c.cssStyles.push(l)}}addClass(e,i){e.forEach(u=>{let c=this.classes.get(u);c===void 0&&(c={id:u,styles:[],textStyles:[]},this.classes.set(u,c)),i&&i.forEach(function(l){if(/color/.exec(l)){const y=l.replace("fill","bgFill");c.textStyles.push(y)}c.styles.push(l)})})}setClass(e,i){for(const u of e){const c=this.entities.get(u);if(c)for(const l of i)c.cssClasses+=" "+l}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],Yt()}getData(){const e=[],i=[],u=q();for(const l of this.entities.keys()){const y=this.entities.get(l);y&&(y.cssCompiledStyles=this.getCompiledStyles(y.cssClasses.split(" ")),e.push(y))}let c=0;for(const l of this.relationships){const y={id:Pt(l.entityA,l.entityB,{prefix:"id",counter:c++}),type:"normal",curve:"basis",start:l.entityA,end:l.entityB,label:l.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:l.relSpec.cardB.toLowerCase(),arrowTypeEnd:l.relSpec.cardA.toLowerCase(),pattern:l.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:u.look};i.push(y)}return{nodes:e,edges:i,other:{},config:u,direction:"TB"}}},o(ht,"ErDB"),ht),Nt={};Gt(Nt,{draw:()=>Ht});var Ht=o(async function(e,i,u,c){$.info("REF0:"),$.info("Drawing er diagram (unified)",i);const{securityLevel:l,er:y,layout:R}=q(),b=c.db.getData(),E=vt(i,l);b.type=c.type,b.layoutAlgorithm=Kt(R),b.config.flowchart.nodeSpacing=(y==null?void 0:y.nodeSpacing)||140,b.config.flowchart.rankSpacing=(y==null?void 0:y.rankSpacing)||80,b.direction=c.db.getDirection(),b.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],b.diagramId=i,await Ut(b,E),b.layoutAlgorithm==="elk"&&E.select(".edges").lower();const D=E.selectAll('[id*="-background"]');Array.from(D).length>0&&D.each(function(){const O=Zt(this),G=O.attr("id").replace("-background",""),w=E.select(`#${CSS.escape(G)}`);if(!w.empty()){const A=w.attr("transform");O.attr("transform",A)}}),jt.insertTitle(E,"erDiagramTitleText",(y==null?void 0:y.titleTopMargin)??25,c.db.getDiagramTitle()),$t(E,8,"erDiagram",(y==null?void 0:y.useMaxWidth)??!0)},"draw"),qt=o((e,i)=>{const u=Wt,c=u(e,"r"),l=u(e,"g"),y=u(e,"b");return zt(c,l,y,i)},"fade"),Vt=o(e=>`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var r=this.next();return r||this.lex()},"lex"),begin:o(function(r){this.conditionStack.push(r)},"begin"),popState:o(function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},"topState"),pushState:o(function(r){this.begin(r)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(r,a,n,h){switch(n){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;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 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 70;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 59;case 25:return 56;case 26:return 56;case 27:return 60;case 28:break;case 29:return this.popState(),19;case 30:return a.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 63;case 42:return 65;case 43:return 65;case 44:return 65;case 45:return 63;case 46:return 63;case 47:return 64;case 48:return 64;case 49:return 64;case 50:return 64;case 51:return 64;case 52:return 65;case 53:return 64;case 54:return 65;case 55:return 66;case 56:return 66;case 57:return 66;case 58:return 66;case 59:return 63;case 60:return 64;case 61:return 65;case 62:return 67;case 63:return 68;case 64:return 69;case 65:return 69;case 66:return 68;case 67:return 68;case 68:return 68;case 69:return 41;case 70:return 47;case 71:return 40;case 72:return 48;case 73:return a.yytext[0];case 74:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,71,72,73,74],inclusive:!0}}};return m}();rt.lexer=At;function X(){this.yy={}}return o(X,"Parser"),X.prototype=rt,rt.Parser=X,new X}();ut.parser=ut;var Wt=ut,ht,Qt=(ht=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=$t,this.getAccTitle=wt,this.setAccDescription=Lt,this.getAccDescription=Mt,this.setDiagramTitle=Ft,this.getDiagramTitle=Bt,this.getConfig=o(()=>H().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}addEntity(e,i=""){var u;return this.entities.has(e)?!((u=this.entities.get(e))!=null&&u.alias)&&i&&(this.entities.get(e).alias=i,D.info(`Add alias '${i}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:i,shape:"erBox",look:H().look??"default",cssClasses:"default",cssStyles:[]}),D.info("Added new entity :",e)),this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,i){const u=this.addEntity(e);let c;for(c=i.length-1;c>=0;c--)i[c].keys||(i[c].keys=[]),i[c].comment||(i[c].comment=""),u.attributes.push(i[c]),D.debug("Added attribute ",i[c].name)}addRelationship(e,i,u,c){const l=this.entities.get(e),y=this.entities.get(u);if(!l||!y)return;const A={entityA:l.id,roleA:i,entityB:y.id,relSpec:c};this.relationships.push(A),D.debug("Added new relationship :",A)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let i=[];for(const u of e){const c=this.classes.get(u);c!=null&&c.styles&&(i=[...i,...c.styles??[]].map(l=>l.trim())),c!=null&&c.textStyles&&(i=[...i,...c.textStyles??[]].map(l=>l.trim()))}return i}addCssStyles(e,i){for(const u of e){const c=this.entities.get(u);if(!i||!c)return;for(const l of i)c.cssStyles.push(l)}}addClass(e,i){e.forEach(u=>{let c=this.classes.get(u);c===void 0&&(c={id:u,styles:[],textStyles:[]},this.classes.set(u,c)),i&&i.forEach(function(l){if(/color/.exec(l)){const y=l.replace("fill","bgFill");c.textStyles.push(y)}c.styles.push(l)})})}setClass(e,i){for(const u of e){const c=this.entities.get(u);if(c)for(const l of i)c.cssClasses+=" "+l}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],Pt()}getData(){const e=[],i=[],u=H();for(const l of this.entities.keys()){const y=this.entities.get(l);y&&(y.cssCompiledStyles=this.getCompiledStyles(y.cssClasses.split(" ")),e.push(y))}let c=0;for(const l of this.relationships){const y={id:Yt(l.entityA,l.entityB,{prefix:"id",counter:c++}),type:"normal",curve:"basis",start:l.entityA,end:l.entityB,label:l.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:l.relSpec.cardB.toLowerCase(),arrowTypeEnd:l.relSpec.cardA.toLowerCase(),pattern:l.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:u.look};i.push(y)}return{nodes:e,edges:i,other:{},config:u,direction:"TB"}}},o(ht,"ErDB"),ht),Nt={};Gt(Nt,{draw:()=>qt});var qt=o(async function(e,i,u,c){D.info("REF0:"),D.info("Drawing er diagram (unified)",i);const{securityLevel:l,er:y,layout:A}=H(),b=c.db.getData(),E=vt(i,l);b.type=c.type,b.layoutAlgorithm=Kt(A),b.config.flowchart.nodeSpacing=(y==null?void 0:y.nodeSpacing)||140,b.config.flowchart.rankSpacing=(y==null?void 0:y.rankSpacing)||80,b.direction=c.db.getDirection(),b.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],b.diagramId=i,await Ut(b,E),b.layoutAlgorithm==="elk"&&E.select(".edges").lower();const $=E.selectAll('[id*="-background"]');Array.from($).length>0&&$.each(function(){const O=Zt(this),G=O.attr("id").replace("-background",""),w=E.select(`#${CSS.escape(G)}`);if(!w.empty()){const R=w.attr("transform");O.attr("transform",R)}}),jt.insertTitle(E,"erDiagramTitleText",(y==null?void 0:y.titleTopMargin)??25,c.db.getDiagramTitle()),Dt(E,8,"erDiagram",(y==null?void 0:y.useMaxWidth)??!0)},"draw"),Ht=o((e,i)=>{const u=Xt,c=u(e,"r"),l=u(e,"g"),y=u(e,"b");return zt(c,l,y,i)},"fade"),Vt=o(e=>`
7
7
  .entityBox {
8
8
  fill: ${e.mainBkg};
9
9
  stroke: ${e.nodeBorder};
@@ -19,7 +19,7 @@ Expecting `+H.join(", ")+", got '"+(this.terminals_[_]||_)+"'":lt="Parse error o
19
19
  }
20
20
 
21
21
  .labelBkg {
22
- background-color: ${qt(e.tertiaryColor,.5)};
22
+ background-color: ${Ht(e.tertiaryColor,.5)};
23
23
  }
24
24
 
25
25
  .edgeLabel .label {
@@ -57,4 +57,4 @@ Expecting `+H.join(", ")+", got '"+(this.terminals_[_]||_)+"'":lt="Parse error o
57
57
  stroke: ${e.lineColor} !important;
58
58
  stroke-width: 1;
59
59
  }
60
- `,"getStyles"),Jt=Vt,ne={parser:Xt,get db(){return new Qt},renderer:Nt,styles:Jt};export{ne as diagram};
60
+ `,"getStyles"),Jt=Vt,ne={parser:Wt,get db(){return new Qt},renderer:Nt,styles:Jt};export{ne as diagram};
@@ -1,4 +1,4 @@
1
- import{l as We}from"./chunk-FMBD7UC4-D0AjqgJd-BqUKvjQH.js";import{R as A,D as Oe,O as Q,g as g1,d as m1,r as qe,s as He,v as se,l as Xe,u as Je,w as Ye,i as Ze,h as Qe,z as et,x as tt,A as st,C as it,E as rt,H as ee,F as at,P as nt,G as ut}from"./index-DodYl3VC.js";import{d as ot}from"./chunk-55IACEB6-DcZAWW2t-DPyoMeFz.js";import{d as lt}from"./chunk-QN33PNHL-cmS1bOzt-B1tGHIDu.js";import{t as ct}from"./channel-C1GZ9yWj-DYugq-sa.js";var ht="flowchart-",te,dt=(te=class{constructor(){this.vertexCounter=0,this.config=g1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Xe,this.setAccDescription=Je,this.setDiagramTitle=Ye,this.getAccTitle=Ze,this.getAccDescription=Qe,this.getDiagramTitle=et,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(e){return tt.sanitizeText(e,this.config)}lookUpDomId(e){for(const i of this.vertices.values())if(i.id===e)return i.domId;return e}addVertex(e,i,r,n,a,d,h={},o){var m,x;if(!e||e.trim().length===0)return;let l;if(o!==void 0){let p;o.includes(`
1
+ import{l as We}from"./chunk-FMBD7UC4-CyW6Y4c1-Cvb-I-1S.js";import{I as A,r as Oe,O as Q,g as g1,t as m1,w as qe,y as He,z as se,u as Xe,h as Je,A as Ye,d as Ze,p as Qe,C as et,k as tt,D as st,E as it,F as rt,X as ee,G as at,H as nt,P as ut}from"./index-DiPXXjl1.js";import{d as ot}from"./chunk-55IACEB6-BFlfi8hV-BGJXNzLC.js";import{d as lt}from"./chunk-QN33PNHL-DF3LkPOs-IyOxcAL-.js";import{t as ct}from"./channel-BvgtnSqX-CiCpm-FK.js";var ht="flowchart-",te,dt=(te=class{constructor(){this.vertexCounter=0,this.config=g1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Xe,this.setAccDescription=Je,this.setDiagramTitle=Ye,this.getAccTitle=Ze,this.getAccDescription=Qe,this.getDiagramTitle=et,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(e){return tt.sanitizeText(e,this.config)}lookUpDomId(e){for(const i of this.vertices.values())if(i.id===e)return i.domId;return e}addVertex(e,i,r,n,a,d,h={},o){var m,x;if(!e||e.trim().length===0)return;let l;if(o!==void 0){let p;o.includes(`
2
2
  `)?p=o+`
3
3
  `:p=`{
4
4
  `+o+`
@@ -1,9 +1,9 @@
1
- import{R as d,h as Ne,u as ze,z as He,w as Ve,i as Ge,l as Be,g as lt,d as bt,U as Re,V as je,W as qe,B as Xe,$ as Ue,a0 as q,O as st,a1 as re,a2 as se,a3 as Qe,a4 as Ze,a5 as Je,a6 as Ke,a7 as tn,a8 as en,a9 as nn,aa as ae,ab as oe,ac as ce,ad as le,ae as ue,x as rn,n as sn,F as an,af as Et,v as on,ag as ve,ah as cn,ai as be,aj as xe,ak as Te,al as ln,f as St}from"./index-DodYl3VC.js";function un(t){return t}var Tt=1,At=2,Wt=3,xt=4,de=1e-6;function dn(t){return"translate("+t+",0)"}function hn(t){return"translate(0,"+t+")"}function fn(t){return e=>+t(e)}function mn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function yn(){return!this.__axis}function we(t,e){var n=[],r=null,s=null,l=6,k=6,$=3,I=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=t===Tt||t===xt?-1:1,w=t===xt||t===At?"x":"y",F=t===Tt||t===Wt?dn:hn;function _(D){var z=r??(e.ticks?e.ticks.apply(e,n):e.domain()),A=s??(e.tickFormat?e.tickFormat.apply(e,n):un),T=Math.max(l,0)+$,C=e.range(),O=+C[0]+I,L=+C[C.length-1]+I,H=(e.bandwidth?mn:fn)(e.copy(),I),V=D.selection?D.selection():D,Y=V.selectAll(".domain").data([null]),g=V.selectAll(".tick").data(z,e).order(),y=g.exit(),h=g.enter().append("g").attr("class","tick"),b=g.select("line"),v=g.select("text");Y=Y.merge(Y.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),g=g.merge(h),b=b.merge(h.append("line").attr("stroke","currentColor").attr(w+"2",S*l)),v=v.merge(h.append("text").attr("fill","currentColor").attr(w,S*T).attr("dy",t===Tt?"0em":t===Wt?"0.71em":"0.32em")),D!==V&&(Y=Y.transition(D),g=g.transition(D),b=b.transition(D),v=v.transition(D),y=y.transition(D).attr("opacity",de).attr("transform",function(p){return isFinite(p=H(p))?F(p+I):this.getAttribute("transform")}),h.attr("opacity",de).attr("transform",function(p){var m=this.parentNode.__axis;return F((m&&isFinite(m=m(p))?m:H(p))+I)})),y.remove(),Y.attr("d",t===xt||t===At?k?"M"+S*k+","+O+"H"+I+"V"+L+"H"+S*k:"M"+I+","+O+"V"+L:k?"M"+O+","+S*k+"V"+I+"H"+L+"V"+S*k:"M"+O+","+I+"H"+L),g.attr("opacity",1).attr("transform",function(p){return F(H(p)+I)}),b.attr(w+"2",S*l),v.attr(w,S*T).text(A),V.filter(yn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===At?"start":t===xt?"end":"middle"),V.each(function(){this.__axis=H})}return _.scale=function(D){return arguments.length?(e=D,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(D){return arguments.length?(n=D==null?[]:Array.from(D),_):n.slice()},_.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),_):r&&r.slice()},_.tickFormat=function(D){return arguments.length?(s=D,_):s},_.tickSize=function(D){return arguments.length?(l=k=+D,_):l},_.tickSizeInner=function(D){return arguments.length?(l=+D,_):l},_.tickSizeOuter=function(D){return arguments.length?(k=+D,_):k},_.tickPadding=function(D){return arguments.length?($=+D,_):$},_.offset=function(D){return arguments.length?(I=+D,_):I},_}function kn(t){return we(Tt,t)}function pn(t){return we(Wt,t)}const gn=Math.PI/180,vn=180/Math.PI,_t=18,$e=.96422,_e=1,De=.82521,Me=4/29,ut=6/29,Se=3*ut*ut,bn=ut*ut*ut;function Ce(t){if(t instanceof tt)return new tt(t.l,t.a,t.b,t.opacity);if(t instanceof nt)return Ee(t);t instanceof ve||(t=cn(t));var e=Ft(t.r),n=Ft(t.g),r=Ft(t.b),s=Yt((.2225045*e+.7168786*n+.0606169*r)/_e),l,k;return e===n&&n===r?l=k=s:(l=Yt((.4360747*e+.3850649*n+.1430804*r)/$e),k=Yt((.0139322*e+.0971045*n+.7141733*r)/De)),new tt(116*s-16,500*(l-s),200*(s-k),t.opacity)}function xn(t,e,n,r){return arguments.length===1?Ce(t):new tt(t,e,n,r??1)}function tt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}be(tt,xn,xe(Te,{brighter(t){return new tt(this.l+_t*(t??1),this.a,this.b,this.opacity)},darker(t){return new tt(this.l-_t*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=$e*It(e),t=_e*It(t),n=De*It(n),new ve(Lt(3.1338561*e-1.6168667*t-.4906146*n),Lt(-.9787684*e+1.9161415*t+.033454*n),Lt(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function Yt(t){return t>bn?Math.pow(t,1/3):t/Se+Me}function It(t){return t>ut?t*t*t:Se*(t-Me)}function Lt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ft(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Tn(t){if(t instanceof nt)return new nt(t.h,t.c,t.l,t.opacity);if(t instanceof tt||(t=Ce(t)),t.a===0&&t.b===0)return new nt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*vn;return new nt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Pt(t,e,n,r){return arguments.length===1?Tn(t):new nt(t,e,n,r??1)}function nt(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Ee(t){if(isNaN(t.h))return new tt(t.l,0,0,t.opacity);var e=t.h*gn;return new tt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}be(nt,Pt,xe(Te,{brighter(t){return new nt(this.h,this.c,this.l+_t*(t??1),this.opacity)},darker(t){return new nt(this.h,this.c,this.l-_t*(t??1),this.opacity)},rgb(){return Ee(this).rgb()}}));function wn(t){return function(e,n){var r=t((e=Pt(e)).h,(n=Pt(n)).h),s=Et(e.c,n.c),l=Et(e.l,n.l),k=Et(e.opacity,n.opacity);return function($){return e.h=r($),e.c=s($),e.l=l($),e.opacity=k($),e+""}}}const $n=wn(ln);var Nt={exports:{}},_n=Nt.exports,he;function Dn(){return he||(he=1,function(t,e){(function(n,r){t.exports=r()})(_n,function(){var n="day";return function(r,s,l){var k=function(S){return S.add(4-S.isoWeekday(),n)},$=s.prototype;$.isoWeekYear=function(){return k(this).year()},$.isoWeek=function(S){if(!this.$utils().u(S))return this.add(7*(S-this.isoWeek()),n);var w,F,_,D,z=k(this),A=(w=this.isoWeekYear(),F=this.$u,_=(F?l.utc:l)().year(w).startOf("year"),D=4-_.isoWeekday(),_.isoWeekday()>4&&(D+=7),_.add(D,n));return z.diff(A,"week")+1},$.isoWeekday=function(S){return this.$utils().u(S)?this.day()||7:this.day(this.day()%7?S:S-7)};var I=$.startOf;$.startOf=function(S,w){var F=this.$utils(),_=!!F.u(w)||w;return F.p(S)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):I.bind(this)(S,w)}}})}(Nt)),Nt.exports}var Mn=Dn();const Sn=St(Mn);var zt={exports:{}},Cn=zt.exports,fe;function En(){return fe||(fe=1,function(t,e){(function(n,r){t.exports=r()})(Cn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,l=/\d\d/,k=/\d\d?/,$=/\d*[^-_:/,()\s\d]+/,I={},S=function(T){return(T=+T)+(T>68?1900:2e3)},w=function(T){return function(C){this[T]=+C}},F=[/[+-]\d\d:?(\d\d)?|Z/,function(T){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var O=C.match(/([+-]|\d\d)/g),L=60*O[1]+(+O[2]||0);return L===0?0:O[0]==="+"?-L:L}(T)}],_=function(T){var C=I[T];return C&&(C.indexOf?C:C.s.concat(C.f))},D=function(T,C){var O,L=I.meridiem;if(L){for(var H=1;H<=24;H+=1)if(T.indexOf(L(H,0,C))>-1){O=H>12;break}}else O=T===(C?"pm":"PM");return O},z={A:[$,function(T){this.afternoon=D(T,!1)}],a:[$,function(T){this.afternoon=D(T,!0)}],Q:[s,function(T){this.month=3*(T-1)+1}],S:[s,function(T){this.milliseconds=100*+T}],SS:[l,function(T){this.milliseconds=10*+T}],SSS:[/\d{3}/,function(T){this.milliseconds=+T}],s:[k,w("seconds")],ss:[k,w("seconds")],m:[k,w("minutes")],mm:[k,w("minutes")],H:[k,w("hours")],h:[k,w("hours")],HH:[k,w("hours")],hh:[k,w("hours")],D:[k,w("day")],DD:[l,w("day")],Do:[$,function(T){var C=I.ordinal,O=T.match(/\d+/);if(this.day=O[0],C)for(var L=1;L<=31;L+=1)C(L).replace(/\[|\]/g,"")===T&&(this.day=L)}],w:[k,w("week")],ww:[l,w("week")],M:[k,w("month")],MM:[l,w("month")],MMM:[$,function(T){var C=_("months"),O=(_("monthsShort")||C.map(function(L){return L.slice(0,3)})).indexOf(T)+1;if(O<1)throw new Error;this.month=O%12||O}],MMMM:[$,function(T){var C=_("months").indexOf(T)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,w("year")],YY:[l,function(T){this.year=S(T)}],YYYY:[/\d{4}/,w("year")],Z:F,ZZ:F};function A(T){var C,O;C=T,O=I&&I.formats;for(var L=(T=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,v,p){var m=p&&p.toUpperCase();return v||O[p]||n[p]||O[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(c,f,u){return f||u.slice(1)})})).match(r),H=L.length,V=0;V<H;V+=1){var Y=L[V],g=z[Y],y=g&&g[0],h=g&&g[1];L[V]=h?{regex:y,parser:h}:Y.replace(/^\[|\]$/g,"")}return function(b){for(var v={},p=0,m=0;p<H;p+=1){var c=L[p];if(typeof c=="string")m+=c.length;else{var f=c.regex,u=c.parser,x=b.slice(m),i=f.exec(x)[0];u.call(v,i),b=b.replace(i,"")}}return function(a){var o=a.afternoon;if(o!==void 0){var M=a.hours;o?M<12&&(a.hours+=12):M===12&&(a.hours=0),delete a.afternoon}}(v),v}}return function(T,C,O){O.p.customParseFormat=!0,T&&T.parseTwoDigitYear&&(S=T.parseTwoDigitYear);var L=C.prototype,H=L.parse;L.parse=function(V){var Y=V.date,g=V.utc,y=V.args;this.$u=g;var h=y[1];if(typeof h=="string"){var b=y[2]===!0,v=y[3]===!0,p=b||v,m=y[2];v&&(m=y[2]),I=this.$locale(),!b&&m&&(I=O.Ls[m]),this.$d=function(x,i,a,o){try{if(["x","X"].indexOf(i)>-1)return new Date((i==="X"?1e3:1)*x);var M=A(i)(x),W=M.year,E=M.month,P=M.day,N=M.hours,G=M.minutes,Z=M.seconds,ft=M.milliseconds,ot=M.zone,gt=M.week,mt=new Date,ct=P||(W||E?1:mt.getDate()),R=W||mt.getFullYear(),Q=0;W&&!E||(Q=E>0?E-1:mt.getMonth());var j,rt=N||0,J=G||0,it=Z||0,X=ft||0;return ot?new Date(Date.UTC(R,Q,ct,rt,J,it,X+60*ot.offset*1e3)):a?new Date(Date.UTC(R,Q,ct,rt,J,it,X)):(j=new Date(R,Q,ct,rt,J,it,X),gt&&(j=o(j).week(gt).toDate()),j)}catch{return new Date("")}}(Y,h,g,O),this.init(),m&&m!==!0&&(this.$L=this.locale(m).$L),p&&Y!=this.format(h)&&(this.$d=new Date("")),I={}}else if(h instanceof Array)for(var c=h.length,f=1;f<=c;f+=1){y[1]=h[f-1];var u=O.apply(this,y);if(u.isValid()){this.$d=u.$d,this.$L=u.$L,this.init();break}f===c&&(this.$d=new Date(""))}else H.call(this,V)}}})}(zt)),zt.exports}var An=En();const Yn=St(An);var Ht={exports:{}},In=Ht.exports,me;function Ln(){return me||(me=1,function(t,e){(function(n,r){t.exports=r()})(In,function(){return function(n,r){var s=r.prototype,l=s.format;s.format=function(k){var $=this,I=this.$locale();if(!this.isValid())return l.bind(this)(k);var S=this.$utils(),w=(k||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(F){switch(F){case"Q":return Math.ceil(($.$M+1)/3);case"Do":return I.ordinal($.$D);case"gggg":return $.weekYear();case"GGGG":return $.isoWeekYear();case"wo":return I.ordinal($.week(),"W");case"w":case"ww":return S.s($.week(),F==="w"?1:2,"0");case"W":case"WW":return S.s($.isoWeek(),F==="W"?1:2,"0");case"k":case"kk":return S.s(String($.$H===0?24:$.$H),F==="k"?1:2,"0");case"X":return Math.floor($.$d.getTime()/1e3);case"x":return $.$d.getTime();case"z":return"["+$.offsetName()+"]";case"zzz":return"["+$.offsetName("long")+"]";default:return F}});return l.bind(this)(w)}}})}(Ht)),Ht.exports}var Fn=Ln();const On=St(Fn);var Vt={exports:{}},Wn=Vt.exports,ye;function Pn(){return ye||(ye=1,function(t,e){(function(n,r){t.exports=r()})(Wn,function(){var n,r,s=1e3,l=6e4,k=36e5,$=864e5,I=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S=31536e6,w=2628e6,F=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:S,months:w,days:$,hours:k,minutes:l,seconds:s,milliseconds:1,weeks:6048e5},D=function(Y){return Y instanceof H},z=function(Y,g,y){return new H(Y,y,g.$l)},A=function(Y){return r.p(Y)+"s"},T=function(Y){return Y<0},C=function(Y){return T(Y)?Math.ceil(Y):Math.floor(Y)},O=function(Y){return Math.abs(Y)},L=function(Y,g){return Y?T(Y)?{negative:!0,format:""+O(Y)+g}:{negative:!1,format:""+Y+g}:{negative:!1,format:""}},H=function(){function Y(y,h,b){var v=this;if(this.$d={},this.$l=b,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return z(y*_[A(h)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach(function(c){v.$d[A(c)]=y[c]}),this.calMilliseconds(),this;if(typeof y=="string"){var p=y.match(F);if(p){var m=p.slice(2).map(function(c){return c!=null?Number(c):0});return this.$d.years=m[0],this.$d.months=m[1],this.$d.weeks=m[2],this.$d.days=m[3],this.$d.hours=m[4],this.$d.minutes=m[5],this.$d.seconds=m[6],this.calMilliseconds(),this}}return this}var g=Y.prototype;return g.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce(function(h,b){return h+(y.$d[b]||0)*_[b]},0)},g.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=C(y/S),y%=S,this.$d.months=C(y/w),y%=w,this.$d.days=C(y/$),y%=$,this.$d.hours=C(y/k),y%=k,this.$d.minutes=C(y/l),y%=l,this.$d.seconds=C(y/s),y%=s,this.$d.milliseconds=y},g.toISOString=function(){var y=L(this.$d.years,"Y"),h=L(this.$d.months,"M"),b=+this.$d.days||0;this.$d.weeks&&(b+=7*this.$d.weeks);var v=L(b,"D"),p=L(this.$d.hours,"H"),m=L(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(1e3*c)/1e3);var f=L(c,"S"),u=y.negative||h.negative||v.negative||p.negative||m.negative||f.negative,x=p.format||m.format||f.format?"T":"",i=(u?"-":"")+"P"+y.format+h.format+v.format+x+p.format+m.format+f.format;return i==="P"||i==="-P"?"P0D":i},g.toJSON=function(){return this.toISOString()},g.format=function(y){var h=y||"YYYY-MM-DDTHH:mm:ss",b={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return h.replace(I,function(v,p){return p||String(b[v])})},g.as=function(y){return this.$ms/_[A(y)]},g.get=function(y){var h=this.$ms,b=A(y);return b==="milliseconds"?h%=1e3:h=b==="weeks"?C(h/_[b]):this.$d[b],h||0},g.add=function(y,h,b){var v;return v=h?y*_[A(h)]:D(y)?y.$ms:z(y,this).$ms,z(this.$ms+v*(b?-1:1),this)},g.subtract=function(y,h){return this.add(y,h,!0)},g.locale=function(y){var h=this.clone();return h.$l=y,h},g.clone=function(){return z(this.$ms,this)},g.humanize=function(y){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},Y}(),V=function(Y,g,y){return Y.add(g.years()*y,"y").add(g.months()*y,"M").add(g.days()*y,"d").add(g.hours()*y,"h").add(g.minutes()*y,"m").add(g.seconds()*y,"s").add(g.milliseconds()*y,"ms")};return function(Y,g,y){n=y,r=y().$utils(),y.duration=function(v,p){var m=y.locale();return z(v,{$l:m},p)},y.isDuration=D;var h=g.prototype.add,b=g.prototype.subtract;g.prototype.add=function(v,p){return D(v)?V(this,v,1):h.bind(this)(v,p)},g.prototype.subtract=function(v,p){return D(v)?V(this,v,-1):b.bind(this)(v,p)}}})}(Vt)),Vt.exports}var Nn=Pn();const zn=St(Nn);var Gt=function(){var t=d(function(m,c,f,u){for(f=f||{},u=m.length;u--;f[m[u]]=c);return f},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],s=[1,28],l=[1,29],k=[1,30],$=[1,31],I=[1,32],S=[1,33],w=[1,34],F=[1,9],_=[1,10],D=[1,11],z=[1,12],A=[1,13],T=[1,14],C=[1,15],O=[1,16],L=[1,19],H=[1,20],V=[1,21],Y=[1,22],g=[1,23],y=[1,25],h=[1,35],b={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(m,c,f,u,x,i,a){var o=i.length-1;switch(x){case 1:return i[o-1];case 2:this.$=[];break;case 3:i[o-1].push(i[o]),this.$=i[o-1];break;case 4:case 5:this.$=i[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(i[o].substr(11)),this.$=i[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=i[o].substr(18);break;case 19:u.TopAxis(),this.$=i[o].substr(8);break;case 20:u.setAxisFormat(i[o].substr(11)),this.$=i[o].substr(11);break;case 21:u.setTickInterval(i[o].substr(13)),this.$=i[o].substr(13);break;case 22:u.setExcludes(i[o].substr(9)),this.$=i[o].substr(9);break;case 23:u.setIncludes(i[o].substr(9)),this.$=i[o].substr(9);break;case 24:u.setTodayMarker(i[o].substr(12)),this.$=i[o].substr(12);break;case 27:u.setDiagramTitle(i[o].substr(6)),this.$=i[o].substr(6);break;case 28:this.$=i[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=i[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(i[o].substr(8)),this.$=i[o].substr(8);break;case 33:u.addTask(i[o-1],i[o]),this.$="task";break;case 34:this.$=i[o-1],u.setClickEvent(i[o-1],i[o],null);break;case 35:this.$=i[o-2],u.setClickEvent(i[o-2],i[o-1],i[o]);break;case 36:this.$=i[o-2],u.setClickEvent(i[o-2],i[o-1],null),u.setLink(i[o-2],i[o]);break;case 37:this.$=i[o-3],u.setClickEvent(i[o-3],i[o-2],i[o-1]),u.setLink(i[o-3],i[o]);break;case 38:this.$=i[o-2],u.setClickEvent(i[o-2],i[o],null),u.setLink(i[o-2],i[o-1]);break;case 39:this.$=i[o-3],u.setClickEvent(i[o-3],i[o-1],i[o]),u.setLink(i[o-3],i[o-2]);break;case 40:this.$=i[o-1],u.setLink(i[o-1],i[o]);break;case 41:case 47:this.$=i[o-1]+" "+i[o];break;case 42:case 43:case 45:this.$=i[o-2]+" "+i[o-1]+" "+i[o];break;case 44:case 46:this.$=i[o-3]+" "+i[o-2]+" "+i[o-1]+" "+i[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:s,15:l,16:k,17:$,18:I,19:18,20:S,21:w,22:F,23:_,24:D,25:z,26:A,27:T,28:C,29:O,30:L,31:H,33:V,35:Y,36:g,37:24,38:y,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:s,15:l,16:k,17:$,18:I,19:18,20:S,21:w,22:F,23:_,24:D,25:z,26:A,27:T,28:C,29:O,30:L,31:H,33:V,35:Y,36:g,37:24,38:y,40:h},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:d(function(m,c){if(c.recoverable)this.trace(m);else{var f=new Error(m);throw f.hash=c,f}},"parseError"),parse:d(function(m){var c=this,f=[0],u=[],x=[null],i=[],a=this.table,o="",M=0,W=0,E=2,P=1,N=i.slice.call(arguments,1),G=Object.create(this.lexer),Z={yy:{}};for(var ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ft)&&(Z.yy[ft]=this.yy[ft]);G.setInput(m,Z.yy),Z.yy.lexer=G,Z.yy.parser=this,typeof G.yylloc>"u"&&(G.yylloc={});var ot=G.yylloc;i.push(ot);var gt=G.options&&G.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(U){f.length=f.length-2*U,x.length=x.length-U,i.length=i.length-U}d(mt,"popStack");function ct(){var U;return U=u.pop()||G.lex()||P,typeof U!="number"&&(U instanceof Array&&(u=U,U=u.pop()),U=c.symbols_[U]||U),U}d(ct,"lex");for(var R,Q,j,rt,J={},it,X,ie,vt;;){if(Q=f[f.length-1],this.defaultActions[Q]?j=this.defaultActions[Q]:((R===null||typeof R>"u")&&(R=ct()),j=a[Q]&&a[Q][R]),typeof j>"u"||!j.length||!j[0]){var Ct="";vt=[];for(it in a[Q])this.terminals_[it]&&it>E&&vt.push("'"+this.terminals_[it]+"'");G.showPosition?Ct="Parse error on line "+(M+1)+`:
1
+ import{I as d,p as Ne,h as ze,C as He,A as Ve,d as Ge,u as Be,g as lt,t as bt,V as Re,W as je,Y as qe,B as Xe,$ as Ue,a0 as q,O as st,a1 as re,a2 as se,a3 as Qe,a4 as Ze,a5 as Ke,a6 as Je,a7 as tn,a8 as en,a9 as nn,aa as ae,ab as oe,ac as ce,ad as le,ae as ue,k as rn,f as sn,G as an,af as Et,z as on,ag as ve,ah as cn,ai as be,aj as xe,ak as Te,al as ln,R as St}from"./index-DiPXXjl1.js";function un(t){return t}var Tt=1,At=2,Wt=3,xt=4,de=1e-6;function dn(t){return"translate("+t+",0)"}function hn(t){return"translate(0,"+t+")"}function fn(t){return e=>+t(e)}function mn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function yn(){return!this.__axis}function we(t,e){var n=[],r=null,s=null,l=6,k=6,$=3,I=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=t===Tt||t===xt?-1:1,w=t===xt||t===At?"x":"y",O=t===Tt||t===Wt?dn:hn;function _(D){var z=r??(e.ticks?e.ticks.apply(e,n):e.domain()),A=s??(e.tickFormat?e.tickFormat.apply(e,n):un),T=Math.max(l,0)+$,C=e.range(),F=+C[0]+I,L=+C[C.length-1]+I,H=(e.bandwidth?mn:fn)(e.copy(),I),V=D.selection?D.selection():D,Y=V.selectAll(".domain").data([null]),g=V.selectAll(".tick").data(z,e).order(),y=g.exit(),h=g.enter().append("g").attr("class","tick"),b=g.select("line"),v=g.select("text");Y=Y.merge(Y.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),g=g.merge(h),b=b.merge(h.append("line").attr("stroke","currentColor").attr(w+"2",S*l)),v=v.merge(h.append("text").attr("fill","currentColor").attr(w,S*T).attr("dy",t===Tt?"0em":t===Wt?"0.71em":"0.32em")),D!==V&&(Y=Y.transition(D),g=g.transition(D),b=b.transition(D),v=v.transition(D),y=y.transition(D).attr("opacity",de).attr("transform",function(p){return isFinite(p=H(p))?O(p+I):this.getAttribute("transform")}),h.attr("opacity",de).attr("transform",function(p){var m=this.parentNode.__axis;return O((m&&isFinite(m=m(p))?m:H(p))+I)})),y.remove(),Y.attr("d",t===xt||t===At?k?"M"+S*k+","+F+"H"+I+"V"+L+"H"+S*k:"M"+I+","+F+"V"+L:k?"M"+F+","+S*k+"V"+I+"H"+L+"V"+S*k:"M"+F+","+I+"H"+L),g.attr("opacity",1).attr("transform",function(p){return O(H(p)+I)}),b.attr(w+"2",S*l),v.attr(w,S*T).text(A),V.filter(yn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===At?"start":t===xt?"end":"middle"),V.each(function(){this.__axis=H})}return _.scale=function(D){return arguments.length?(e=D,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(D){return arguments.length?(n=D==null?[]:Array.from(D),_):n.slice()},_.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),_):r&&r.slice()},_.tickFormat=function(D){return arguments.length?(s=D,_):s},_.tickSize=function(D){return arguments.length?(l=k=+D,_):l},_.tickSizeInner=function(D){return arguments.length?(l=+D,_):l},_.tickSizeOuter=function(D){return arguments.length?(k=+D,_):k},_.tickPadding=function(D){return arguments.length?($=+D,_):$},_.offset=function(D){return arguments.length?(I=+D,_):I},_}function kn(t){return we(Tt,t)}function pn(t){return we(Wt,t)}const gn=Math.PI/180,vn=180/Math.PI,_t=18,$e=.96422,_e=1,De=.82521,Me=4/29,ut=6/29,Se=3*ut*ut,bn=ut*ut*ut;function Ce(t){if(t instanceof tt)return new tt(t.l,t.a,t.b,t.opacity);if(t instanceof nt)return Ee(t);t instanceof ve||(t=cn(t));var e=Ot(t.r),n=Ot(t.g),r=Ot(t.b),s=Yt((.2225045*e+.7168786*n+.0606169*r)/_e),l,k;return e===n&&n===r?l=k=s:(l=Yt((.4360747*e+.3850649*n+.1430804*r)/$e),k=Yt((.0139322*e+.0971045*n+.7141733*r)/De)),new tt(116*s-16,500*(l-s),200*(s-k),t.opacity)}function xn(t,e,n,r){return arguments.length===1?Ce(t):new tt(t,e,n,r??1)}function tt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}be(tt,xn,xe(Te,{brighter(t){return new tt(this.l+_t*(t??1),this.a,this.b,this.opacity)},darker(t){return new tt(this.l-_t*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=$e*It(e),t=_e*It(t),n=De*It(n),new ve(Lt(3.1338561*e-1.6168667*t-.4906146*n),Lt(-.9787684*e+1.9161415*t+.033454*n),Lt(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function Yt(t){return t>bn?Math.pow(t,1/3):t/Se+Me}function It(t){return t>ut?t*t*t:Se*(t-Me)}function Lt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ot(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Tn(t){if(t instanceof nt)return new nt(t.h,t.c,t.l,t.opacity);if(t instanceof tt||(t=Ce(t)),t.a===0&&t.b===0)return new nt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*vn;return new nt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Pt(t,e,n,r){return arguments.length===1?Tn(t):new nt(t,e,n,r??1)}function nt(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Ee(t){if(isNaN(t.h))return new tt(t.l,0,0,t.opacity);var e=t.h*gn;return new tt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}be(nt,Pt,xe(Te,{brighter(t){return new nt(this.h,this.c,this.l+_t*(t??1),this.opacity)},darker(t){return new nt(this.h,this.c,this.l-_t*(t??1),this.opacity)},rgb(){return Ee(this).rgb()}}));function wn(t){return function(e,n){var r=t((e=Pt(e)).h,(n=Pt(n)).h),s=Et(e.c,n.c),l=Et(e.l,n.l),k=Et(e.opacity,n.opacity);return function($){return e.h=r($),e.c=s($),e.l=l($),e.opacity=k($),e+""}}}const $n=wn(ln);var Nt={exports:{}},_n=Nt.exports,he;function Dn(){return he||(he=1,function(t,e){(function(n,r){t.exports=r()})(_n,function(){var n="day";return function(r,s,l){var k=function(S){return S.add(4-S.isoWeekday(),n)},$=s.prototype;$.isoWeekYear=function(){return k(this).year()},$.isoWeek=function(S){if(!this.$utils().u(S))return this.add(7*(S-this.isoWeek()),n);var w,O,_,D,z=k(this),A=(w=this.isoWeekYear(),O=this.$u,_=(O?l.utc:l)().year(w).startOf("year"),D=4-_.isoWeekday(),_.isoWeekday()>4&&(D+=7),_.add(D,n));return z.diff(A,"week")+1},$.isoWeekday=function(S){return this.$utils().u(S)?this.day()||7:this.day(this.day()%7?S:S-7)};var I=$.startOf;$.startOf=function(S,w){var O=this.$utils(),_=!!O.u(w)||w;return O.p(S)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):I.bind(this)(S,w)}}})}(Nt)),Nt.exports}var Mn=Dn();const Sn=St(Mn);var zt={exports:{}},Cn=zt.exports,fe;function En(){return fe||(fe=1,function(t,e){(function(n,r){t.exports=r()})(Cn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,l=/\d\d/,k=/\d\d?/,$=/\d*[^-_:/,()\s\d]+/,I={},S=function(T){return(T=+T)+(T>68?1900:2e3)},w=function(T){return function(C){this[T]=+C}},O=[/[+-]\d\d:?(\d\d)?|Z/,function(T){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var F=C.match(/([+-]|\d\d)/g),L=60*F[1]+(+F[2]||0);return L===0?0:F[0]==="+"?-L:L}(T)}],_=function(T){var C=I[T];return C&&(C.indexOf?C:C.s.concat(C.f))},D=function(T,C){var F,L=I.meridiem;if(L){for(var H=1;H<=24;H+=1)if(T.indexOf(L(H,0,C))>-1){F=H>12;break}}else F=T===(C?"pm":"PM");return F},z={A:[$,function(T){this.afternoon=D(T,!1)}],a:[$,function(T){this.afternoon=D(T,!0)}],Q:[s,function(T){this.month=3*(T-1)+1}],S:[s,function(T){this.milliseconds=100*+T}],SS:[l,function(T){this.milliseconds=10*+T}],SSS:[/\d{3}/,function(T){this.milliseconds=+T}],s:[k,w("seconds")],ss:[k,w("seconds")],m:[k,w("minutes")],mm:[k,w("minutes")],H:[k,w("hours")],h:[k,w("hours")],HH:[k,w("hours")],hh:[k,w("hours")],D:[k,w("day")],DD:[l,w("day")],Do:[$,function(T){var C=I.ordinal,F=T.match(/\d+/);if(this.day=F[0],C)for(var L=1;L<=31;L+=1)C(L).replace(/\[|\]/g,"")===T&&(this.day=L)}],w:[k,w("week")],ww:[l,w("week")],M:[k,w("month")],MM:[l,w("month")],MMM:[$,function(T){var C=_("months"),F=(_("monthsShort")||C.map(function(L){return L.slice(0,3)})).indexOf(T)+1;if(F<1)throw new Error;this.month=F%12||F}],MMMM:[$,function(T){var C=_("months").indexOf(T)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,w("year")],YY:[l,function(T){this.year=S(T)}],YYYY:[/\d{4}/,w("year")],Z:O,ZZ:O};function A(T){var C,F;C=T,F=I&&I.formats;for(var L=(T=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,v,p){var m=p&&p.toUpperCase();return v||F[p]||n[p]||F[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(c,f,u){return f||u.slice(1)})})).match(r),H=L.length,V=0;V<H;V+=1){var Y=L[V],g=z[Y],y=g&&g[0],h=g&&g[1];L[V]=h?{regex:y,parser:h}:Y.replace(/^\[|\]$/g,"")}return function(b){for(var v={},p=0,m=0;p<H;p+=1){var c=L[p];if(typeof c=="string")m+=c.length;else{var f=c.regex,u=c.parser,x=b.slice(m),i=f.exec(x)[0];u.call(v,i),b=b.replace(i,"")}}return function(a){var o=a.afternoon;if(o!==void 0){var M=a.hours;o?M<12&&(a.hours+=12):M===12&&(a.hours=0),delete a.afternoon}}(v),v}}return function(T,C,F){F.p.customParseFormat=!0,T&&T.parseTwoDigitYear&&(S=T.parseTwoDigitYear);var L=C.prototype,H=L.parse;L.parse=function(V){var Y=V.date,g=V.utc,y=V.args;this.$u=g;var h=y[1];if(typeof h=="string"){var b=y[2]===!0,v=y[3]===!0,p=b||v,m=y[2];v&&(m=y[2]),I=this.$locale(),!b&&m&&(I=F.Ls[m]),this.$d=function(x,i,a,o){try{if(["x","X"].indexOf(i)>-1)return new Date((i==="X"?1e3:1)*x);var M=A(i)(x),W=M.year,E=M.month,P=M.day,N=M.hours,G=M.minutes,Z=M.seconds,ft=M.milliseconds,ot=M.zone,gt=M.week,mt=new Date,ct=P||(W||E?1:mt.getDate()),R=W||mt.getFullYear(),Q=0;W&&!E||(Q=E>0?E-1:mt.getMonth());var j,rt=N||0,K=G||0,it=Z||0,X=ft||0;return ot?new Date(Date.UTC(R,Q,ct,rt,K,it,X+60*ot.offset*1e3)):a?new Date(Date.UTC(R,Q,ct,rt,K,it,X)):(j=new Date(R,Q,ct,rt,K,it,X),gt&&(j=o(j).week(gt).toDate()),j)}catch{return new Date("")}}(Y,h,g,F),this.init(),m&&m!==!0&&(this.$L=this.locale(m).$L),p&&Y!=this.format(h)&&(this.$d=new Date("")),I={}}else if(h instanceof Array)for(var c=h.length,f=1;f<=c;f+=1){y[1]=h[f-1];var u=F.apply(this,y);if(u.isValid()){this.$d=u.$d,this.$L=u.$L,this.init();break}f===c&&(this.$d=new Date(""))}else H.call(this,V)}}})}(zt)),zt.exports}var An=En();const Yn=St(An);var Ht={exports:{}},In=Ht.exports,me;function Ln(){return me||(me=1,function(t,e){(function(n,r){t.exports=r()})(In,function(){return function(n,r){var s=r.prototype,l=s.format;s.format=function(k){var $=this,I=this.$locale();if(!this.isValid())return l.bind(this)(k);var S=this.$utils(),w=(k||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(O){switch(O){case"Q":return Math.ceil(($.$M+1)/3);case"Do":return I.ordinal($.$D);case"gggg":return $.weekYear();case"GGGG":return $.isoWeekYear();case"wo":return I.ordinal($.week(),"W");case"w":case"ww":return S.s($.week(),O==="w"?1:2,"0");case"W":case"WW":return S.s($.isoWeek(),O==="W"?1:2,"0");case"k":case"kk":return S.s(String($.$H===0?24:$.$H),O==="k"?1:2,"0");case"X":return Math.floor($.$d.getTime()/1e3);case"x":return $.$d.getTime();case"z":return"["+$.offsetName()+"]";case"zzz":return"["+$.offsetName("long")+"]";default:return O}});return l.bind(this)(w)}}})}(Ht)),Ht.exports}var On=Ln();const Fn=St(On);var Vt={exports:{}},Wn=Vt.exports,ye;function Pn(){return ye||(ye=1,function(t,e){(function(n,r){t.exports=r()})(Wn,function(){var n,r,s=1e3,l=6e4,k=36e5,$=864e5,I=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S=31536e6,w=2628e6,O=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:S,months:w,days:$,hours:k,minutes:l,seconds:s,milliseconds:1,weeks:6048e5},D=function(Y){return Y instanceof H},z=function(Y,g,y){return new H(Y,y,g.$l)},A=function(Y){return r.p(Y)+"s"},T=function(Y){return Y<0},C=function(Y){return T(Y)?Math.ceil(Y):Math.floor(Y)},F=function(Y){return Math.abs(Y)},L=function(Y,g){return Y?T(Y)?{negative:!0,format:""+F(Y)+g}:{negative:!1,format:""+Y+g}:{negative:!1,format:""}},H=function(){function Y(y,h,b){var v=this;if(this.$d={},this.$l=b,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return z(y*_[A(h)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach(function(c){v.$d[A(c)]=y[c]}),this.calMilliseconds(),this;if(typeof y=="string"){var p=y.match(O);if(p){var m=p.slice(2).map(function(c){return c!=null?Number(c):0});return this.$d.years=m[0],this.$d.months=m[1],this.$d.weeks=m[2],this.$d.days=m[3],this.$d.hours=m[4],this.$d.minutes=m[5],this.$d.seconds=m[6],this.calMilliseconds(),this}}return this}var g=Y.prototype;return g.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce(function(h,b){return h+(y.$d[b]||0)*_[b]},0)},g.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=C(y/S),y%=S,this.$d.months=C(y/w),y%=w,this.$d.days=C(y/$),y%=$,this.$d.hours=C(y/k),y%=k,this.$d.minutes=C(y/l),y%=l,this.$d.seconds=C(y/s),y%=s,this.$d.milliseconds=y},g.toISOString=function(){var y=L(this.$d.years,"Y"),h=L(this.$d.months,"M"),b=+this.$d.days||0;this.$d.weeks&&(b+=7*this.$d.weeks);var v=L(b,"D"),p=L(this.$d.hours,"H"),m=L(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(1e3*c)/1e3);var f=L(c,"S"),u=y.negative||h.negative||v.negative||p.negative||m.negative||f.negative,x=p.format||m.format||f.format?"T":"",i=(u?"-":"")+"P"+y.format+h.format+v.format+x+p.format+m.format+f.format;return i==="P"||i==="-P"?"P0D":i},g.toJSON=function(){return this.toISOString()},g.format=function(y){var h=y||"YYYY-MM-DDTHH:mm:ss",b={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return h.replace(I,function(v,p){return p||String(b[v])})},g.as=function(y){return this.$ms/_[A(y)]},g.get=function(y){var h=this.$ms,b=A(y);return b==="milliseconds"?h%=1e3:h=b==="weeks"?C(h/_[b]):this.$d[b],h||0},g.add=function(y,h,b){var v;return v=h?y*_[A(h)]:D(y)?y.$ms:z(y,this).$ms,z(this.$ms+v*(b?-1:1),this)},g.subtract=function(y,h){return this.add(y,h,!0)},g.locale=function(y){var h=this.clone();return h.$l=y,h},g.clone=function(){return z(this.$ms,this)},g.humanize=function(y){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},Y}(),V=function(Y,g,y){return Y.add(g.years()*y,"y").add(g.months()*y,"M").add(g.days()*y,"d").add(g.hours()*y,"h").add(g.minutes()*y,"m").add(g.seconds()*y,"s").add(g.milliseconds()*y,"ms")};return function(Y,g,y){n=y,r=y().$utils(),y.duration=function(v,p){var m=y.locale();return z(v,{$l:m},p)},y.isDuration=D;var h=g.prototype.add,b=g.prototype.subtract;g.prototype.add=function(v,p){return D(v)?V(this,v,1):h.bind(this)(v,p)},g.prototype.subtract=function(v,p){return D(v)?V(this,v,-1):b.bind(this)(v,p)}}})}(Vt)),Vt.exports}var Nn=Pn();const zn=St(Nn);var Gt=function(){var t=d(function(m,c,f,u){for(f=f||{},u=m.length;u--;f[m[u]]=c);return f},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],s=[1,28],l=[1,29],k=[1,30],$=[1,31],I=[1,32],S=[1,33],w=[1,34],O=[1,9],_=[1,10],D=[1,11],z=[1,12],A=[1,13],T=[1,14],C=[1,15],F=[1,16],L=[1,19],H=[1,20],V=[1,21],Y=[1,22],g=[1,23],y=[1,25],h=[1,35],b={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(m,c,f,u,x,i,a){var o=i.length-1;switch(x){case 1:return i[o-1];case 2:this.$=[];break;case 3:i[o-1].push(i[o]),this.$=i[o-1];break;case 4:case 5:this.$=i[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(i[o].substr(11)),this.$=i[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=i[o].substr(18);break;case 19:u.TopAxis(),this.$=i[o].substr(8);break;case 20:u.setAxisFormat(i[o].substr(11)),this.$=i[o].substr(11);break;case 21:u.setTickInterval(i[o].substr(13)),this.$=i[o].substr(13);break;case 22:u.setExcludes(i[o].substr(9)),this.$=i[o].substr(9);break;case 23:u.setIncludes(i[o].substr(9)),this.$=i[o].substr(9);break;case 24:u.setTodayMarker(i[o].substr(12)),this.$=i[o].substr(12);break;case 27:u.setDiagramTitle(i[o].substr(6)),this.$=i[o].substr(6);break;case 28:this.$=i[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=i[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(i[o].substr(8)),this.$=i[o].substr(8);break;case 33:u.addTask(i[o-1],i[o]),this.$="task";break;case 34:this.$=i[o-1],u.setClickEvent(i[o-1],i[o],null);break;case 35:this.$=i[o-2],u.setClickEvent(i[o-2],i[o-1],i[o]);break;case 36:this.$=i[o-2],u.setClickEvent(i[o-2],i[o-1],null),u.setLink(i[o-2],i[o]);break;case 37:this.$=i[o-3],u.setClickEvent(i[o-3],i[o-2],i[o-1]),u.setLink(i[o-3],i[o]);break;case 38:this.$=i[o-2],u.setClickEvent(i[o-2],i[o],null),u.setLink(i[o-2],i[o-1]);break;case 39:this.$=i[o-3],u.setClickEvent(i[o-3],i[o-1],i[o]),u.setLink(i[o-3],i[o-2]);break;case 40:this.$=i[o-1],u.setLink(i[o-1],i[o]);break;case 41:case 47:this.$=i[o-1]+" "+i[o];break;case 42:case 43:case 45:this.$=i[o-2]+" "+i[o-1]+" "+i[o];break;case 44:case 46:this.$=i[o-3]+" "+i[o-2]+" "+i[o-1]+" "+i[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:s,15:l,16:k,17:$,18:I,19:18,20:S,21:w,22:O,23:_,24:D,25:z,26:A,27:T,28:C,29:F,30:L,31:H,33:V,35:Y,36:g,37:24,38:y,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:s,15:l,16:k,17:$,18:I,19:18,20:S,21:w,22:O,23:_,24:D,25:z,26:A,27:T,28:C,29:F,30:L,31:H,33:V,35:Y,36:g,37:24,38:y,40:h},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:d(function(m,c){if(c.recoverable)this.trace(m);else{var f=new Error(m);throw f.hash=c,f}},"parseError"),parse:d(function(m){var c=this,f=[0],u=[],x=[null],i=[],a=this.table,o="",M=0,W=0,E=2,P=1,N=i.slice.call(arguments,1),G=Object.create(this.lexer),Z={yy:{}};for(var ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ft)&&(Z.yy[ft]=this.yy[ft]);G.setInput(m,Z.yy),Z.yy.lexer=G,Z.yy.parser=this,typeof G.yylloc>"u"&&(G.yylloc={});var ot=G.yylloc;i.push(ot);var gt=G.options&&G.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(U){f.length=f.length-2*U,x.length=x.length-U,i.length=i.length-U}d(mt,"popStack");function ct(){var U;return U=u.pop()||G.lex()||P,typeof U!="number"&&(U instanceof Array&&(u=U,U=u.pop()),U=c.symbols_[U]||U),U}d(ct,"lex");for(var R,Q,j,rt,K={},it,X,ie,vt;;){if(Q=f[f.length-1],this.defaultActions[Q]?j=this.defaultActions[Q]:((R===null||typeof R>"u")&&(R=ct()),j=a[Q]&&a[Q][R]),typeof j>"u"||!j.length||!j[0]){var Ct="";vt=[];for(it in a[Q])this.terminals_[it]&&it>E&&vt.push("'"+this.terminals_[it]+"'");G.showPosition?Ct="Parse error on line "+(M+1)+`:
2
2
  `+G.showPosition()+`
3
- Expecting `+vt.join(", ")+", got '"+(this.terminals_[R]||R)+"'":Ct="Parse error on line "+(M+1)+": Unexpected "+(R==P?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(Ct,{text:G.match,token:this.terminals_[R]||R,line:G.yylineno,loc:ot,expected:vt})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+R);switch(j[0]){case 1:f.push(R),x.push(G.yytext),i.push(G.yylloc),f.push(j[1]),R=null,W=G.yyleng,o=G.yytext,M=G.yylineno,ot=G.yylloc;break;case 2:if(X=this.productions_[j[1]][1],J.$=x[x.length-X],J._$={first_line:i[i.length-(X||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(X||1)].first_column,last_column:i[i.length-1].last_column},gt&&(J._$.range=[i[i.length-(X||1)].range[0],i[i.length-1].range[1]]),rt=this.performAction.apply(J,[o,W,M,Z.yy,j[1],x,i].concat(N)),typeof rt<"u")return rt;X&&(f=f.slice(0,-1*X*2),x=x.slice(0,-1*X),i=i.slice(0,-1*X)),f.push(this.productions_[j[1]][0]),x.push(J.$),i.push(J._$),ie=a[f[f.length-2]][f[f.length-1]],f.push(ie);break;case 3:return!0}}return!0},"parse")},v=function(){var m={EOF:1,parseError:d(function(c,f){if(this.yy.parser)this.yy.parser.parseError(c,f);else throw new Error(c)},"parseError"),setInput:d(function(c,f){return this.yy=f||this.yy||{},this._input=c,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},"setInput"),input:d(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var f=c.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:d(function(c){var f=c.length,u=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var x=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),u.length-1&&(this.yylineno-=u.length-1);var i=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:u?(u.length===x.length?this.yylloc.first_column:0)+x[x.length-u.length].length-u[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(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).
3
+ Expecting `+vt.join(", ")+", got '"+(this.terminals_[R]||R)+"'":Ct="Parse error on line "+(M+1)+": Unexpected "+(R==P?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(Ct,{text:G.match,token:this.terminals_[R]||R,line:G.yylineno,loc:ot,expected:vt})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+R);switch(j[0]){case 1:f.push(R),x.push(G.yytext),i.push(G.yylloc),f.push(j[1]),R=null,W=G.yyleng,o=G.yytext,M=G.yylineno,ot=G.yylloc;break;case 2:if(X=this.productions_[j[1]][1],K.$=x[x.length-X],K._$={first_line:i[i.length-(X||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(X||1)].first_column,last_column:i[i.length-1].last_column},gt&&(K._$.range=[i[i.length-(X||1)].range[0],i[i.length-1].range[1]]),rt=this.performAction.apply(K,[o,W,M,Z.yy,j[1],x,i].concat(N)),typeof rt<"u")return rt;X&&(f=f.slice(0,-1*X*2),x=x.slice(0,-1*X),i=i.slice(0,-1*X)),f.push(this.productions_[j[1]][0]),x.push(K.$),i.push(K._$),ie=a[f[f.length-2]][f[f.length-1]],f.push(ie);break;case 3:return!0}}return!0},"parse")},v=function(){var m={EOF:1,parseError:d(function(c,f){if(this.yy.parser)this.yy.parser.parseError(c,f);else throw new Error(c)},"parseError"),setInput:d(function(c,f){return this.yy=f||this.yy||{},this._input=c,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},"setInput"),input:d(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var f=c.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:d(function(c){var f=c.length,u=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var x=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),u.length-1&&(this.yylineno-=u.length-1);var i=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:u?(u.length===x.length?this.yylloc.first_column:0)+x[x.length-u.length].length-u[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(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},"reject"),less:d(function(c){this.unput(this.match.slice(c))},"less"),pastInput:d(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var c=this.pastInput(),f=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
5
5
  `+f+"^"},"showPosition"),test_match:d(function(c,f){var u,x,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),x=c[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,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(c[0].length),this.matched+=c[0],u=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,f,u,x;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(u=this._input.match(this.rules[i[a]]),u&&(!f||u[0].length>f[0].length)){if(f=u,x=a,this.options.backtrack_lexer){if(c=this.test_match(u,i[a]),c!==!1)return c;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(c=this.test_match(f,i[x]),c!==!1?c:!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})},"next"),lex:d(function(){var c=this.next();return c||this.lex()},"lex"),begin:d(function(c){this.conditionStack.push(c)},"begin"),popState:d(function(){var c=this.conditionStack.length-1;return c>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(c){return c=this.conditionStack.length-1-Math.abs(c||0),c>=0?this.conditionStack[c]:"INITIAL"},"topState"),pushState:d(function(c){this.begin(c)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(c,f,u,x){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return m}();b.lexer=v;function p(){this.yy={}}return d(p,"Parser"),p.prototype=b,b.Parser=p,new p}();Gt.parser=Gt;var Hn=Gt;q.extend(Sn);q.extend(Yn);q.extend(On);var ke={friday:5,saturday:6},K="",qt="",Xt=void 0,Ut="",yt=[],kt=[],Qt=new Map,Zt=[],Dt=[],ht="",Jt="",Ae=["active","done","crit","milestone","vert"],Kt=[],pt=!1,te=!1,ee="sunday",Mt="saturday",Bt=0,Vn=d(function(){Zt=[],Dt=[],ht="",Kt=[],wt=0,jt=void 0,$t=void 0,B=[],K="",qt="",Jt="",Xt=void 0,Ut="",yt=[],kt=[],pt=!1,te=!1,Bt=0,Qt=new Map,an(),ee="sunday",Mt="saturday"},"clear"),Gn=d(function(t){qt=t},"setAxisFormat"),Bn=d(function(){return qt},"getAxisFormat"),Rn=d(function(t){Xt=t},"setTickInterval"),jn=d(function(){return Xt},"getTickInterval"),qn=d(function(t){Ut=t},"setTodayMarker"),Xn=d(function(){return Ut},"getTodayMarker"),Un=d(function(t){K=t},"setDateFormat"),Qn=d(function(){pt=!0},"enableInclusiveEndDates"),Zn=d(function(){return pt},"endDatesAreInclusive"),Jn=d(function(){te=!0},"enableTopAxis"),Kn=d(function(){return te},"topAxisEnabled"),ti=d(function(t){Jt=t},"setDisplayMode"),ei=d(function(){return Jt},"getDisplayMode"),ni=d(function(){return K},"getDateFormat"),ii=d(function(t){yt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),ri=d(function(){return yt},"getIncludes"),si=d(function(t){kt=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),ai=d(function(){return kt},"getExcludes"),oi=d(function(){return Qt},"getLinks"),ci=d(function(t){ht=t,Zt.push(t)},"addSection"),li=d(function(){return Zt},"getSections"),ui=d(function(){let t=pe();const e=10;let n=0;for(;!t&&n<e;)t=pe(),n++;return Dt=B,Dt},"getTasks"),Ye=d(function(t,e,n,r){const s=t.format(e.trim()),l=t.format("YYYY-MM-DD");return r.includes(s)||r.includes(l)?!1:n.includes("weekends")&&(t.isoWeekday()===ke[Mt]||t.isoWeekday()===ke[Mt]+1)||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(s)||n.includes(l)},"isInvalidDate"),di=d(function(t){ee=t},"setWeekday"),hi=d(function(){return ee},"getWeekday"),fi=d(function(t){Mt=t},"setWeekend"),Ie=d(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let s;t.startTime instanceof Date?s=q(t.startTime):s=q(t.startTime,e,!0),s=s.add(1,"d");let l;t.endTime instanceof Date?l=q(t.endTime):l=q(t.endTime,e,!0);const[k,$]=mi(s,l,e,n,r);t.endTime=k.toDate(),t.renderEndTime=$},"checkTaskDates"),mi=d(function(t,e,n,r,s){let l=!1,k=null;for(;t<=e;)l||(k=e.toDate()),l=Ye(t,n,r,s),l&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,k]},"fixTaskDates"),Rt=d(function(t,e,n){if(n=n.trim(),d(l=>{const k=l.trim();return k==="x"||k==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(r!==null){let l=null;for(const $ of r.groups.ids.split(" ")){let I=at($);I!==void 0&&(!l||I.endTime>l.endTime)&&(l=I)}if(l)return l.endTime;const k=new Date;return k.setHours(0,0,0,0),k}let s=q(n,e.trim(),!0);if(s.isValid())return s.toDate();{st.debug("Invalid date:"+n),st.debug("With date format:"+e.trim());const l=new Date(n);if(l===void 0||isNaN(l.getTime())||l.getFullYear()<-1e4||l.getFullYear()>1e4)throw new Error("Invalid date:"+n);return l}},"getStartDate"),Le=d(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),Fe=d(function(t,e,n,r=!1){n=n.trim();const s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let S=null;for(const F of s.groups.ids.split(" ")){let _=at(F);_!==void 0&&(!S||_.startTime<S.startTime)&&(S=_)}if(S)return S.startTime;const w=new Date;return w.setHours(0,0,0,0),w}let l=q(n,e.trim(),!0);if(l.isValid())return r&&(l=l.add(1,"d")),l.toDate();let k=q(t);const[$,I]=Le(n);if(!Number.isNaN($)){const S=k.add($,I);S.isValid()&&(k=S)}return k.toDate()},"getEndDate"),wt=0,dt=d(function(t){return t===void 0?(wt=wt+1,"task"+wt):t},"parseId"),yi=d(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),s={};ne(r,s,Ae);for(let k=0;k<r.length;k++)r[k]=r[k].trim();let l="";switch(r.length){case 1:s.id=dt(),s.startTime=t.endTime,l=r[0];break;case 2:s.id=dt(),s.startTime=Rt(void 0,K,r[0]),l=r[1];break;case 3:s.id=dt(r[0]),s.startTime=Rt(void 0,K,r[1]),l=r[2];break}return l&&(s.endTime=Fe(s.startTime,K,l,pt),s.manualEndTime=q(l,"YYYY-MM-DD",!0).isValid(),Ie(s,K,kt,yt)),s},"compileData"),ki=d(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),s={};ne(r,s,Ae);for(let l=0;l<r.length;l++)r[l]=r[l].trim();switch(r.length){case 1:s.id=dt(),s.startTime={type:"prevTaskEnd",id:t},s.endTime={data:r[0]};break;case 2:s.id=dt(),s.startTime={type:"getStartDate",startData:r[0]},s.endTime={data:r[1]};break;case 3:s.id=dt(r[0]),s.startTime={type:"getStartDate",startData:r[1]},s.endTime={data:r[2]};break}return s},"parseData"),jt,$t,B=[],Oe={},pi=d(function(t,e){const n={section:ht,type:ht,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=ki($t,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=$t,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=Bt,Bt++;const s=B.push(n);$t=n.id,Oe[n.id]=s-1},"addTask"),at=d(function(t){const e=Oe[t];return B[e]},"findTaskById"),gi=d(function(t,e){const n={section:ht,type:ht,description:t,task:t,classes:[]},r=yi(jt,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,jt=n,Dt.push(n)},"addTaskOrg"),pe=d(function(){const t=d(function(n){const r=B[n];let s="";switch(B[n].raw.startTime.type){case"prevTaskEnd":{const l=at(r.prevTaskId);r.startTime=l.endTime;break}case"getStartDate":s=Rt(void 0,K,B[n].raw.startTime.startData),s&&(B[n].startTime=s);break}return B[n].startTime&&(B[n].endTime=Fe(B[n].startTime,K,B[n].raw.endTime.data,pt),B[n].endTime&&(B[n].processed=!0,B[n].manualEndTime=q(B[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Ie(B[n],K,kt,yt))),B[n].processed},"compileTask");let e=!0;for(const[n,r]of B.entries())t(n),e=e&&r.processed;return e},"compileTasks"),vi=d(function(t,e){let n=e;lt().securityLevel!=="loose"&&(n=sn.sanitizeUrl(e)),t.split(",").forEach(function(r){at(r)!==void 0&&(Pe(r,()=>{window.open(n,"_self")}),Qt.set(r,n))}),We(t,"clickable")},"setLink"),We=d(function(t,e){t.split(",").forEach(function(n){let r=at(n);r!==void 0&&r.classes.push(e)})},"setClass"),bi=d(function(t,e,n){if(lt().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<r.length;s++){let l=r[s].trim();l.startsWith('"')&&l.endsWith('"')&&(l=l.substr(1,l.length-2)),r[s]=l}}r.length===0&&r.push(t),at(t)!==void 0&&Pe(t,()=>{on.runFunc(e,...r)})},"setClickFun"),Pe=d(function(t,e){Kt.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},"pushFun"),xi=d(function(t,e,n){t.split(",").forEach(function(r){bi(r,e,n)}),We(t,"clickable")},"setClickEvent"),Ti=d(function(t){Kt.forEach(function(e){e(t)})},"bindFunctions"),wi={getConfig:d(()=>lt().gantt,"getConfig"),clear:Vn,setDateFormat:Un,getDateFormat:ni,enableInclusiveEndDates:Qn,endDatesAreInclusive:Zn,enableTopAxis:Jn,topAxisEnabled:Kn,setAxisFormat:Gn,getAxisFormat:Bn,setTickInterval:Rn,getTickInterval:jn,setTodayMarker:qn,getTodayMarker:Xn,setAccTitle:Be,getAccTitle:Ge,setDiagramTitle:Ve,getDiagramTitle:He,setDisplayMode:ti,getDisplayMode:ei,setAccDescription:ze,getAccDescription:Ne,addSection:ci,getSections:li,getTasks:ui,addTask:pi,findTaskById:at,addTaskOrg:gi,setIncludes:ii,getIncludes:ri,setExcludes:si,getExcludes:ai,setClickEvent:xi,setLink:vi,getLinks:oi,bindFunctions:Ti,parseDuration:Le,isInvalidDate:Ye,setWeekday:di,getWeekday:hi,setWeekend:fi};function ne(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(s){const l="^\\s*"+s+"\\s*$",k=new RegExp(l);t[0].match(k)&&(e[s]=!0,t.shift(1),r=!0)})}d(ne,"getTaskTags");q.extend(zn);var $i=d(function(){st.debug("Something is calling, setConf, remove the call")},"setConf"),ge={monday:nn,tuesday:en,wednesday:tn,thursday:Ke,friday:Je,saturday:Ze,sunday:Qe},_i=d((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((l,k)=>l.startTime-k.startTime||l.order-k.order),s=0;for(const l of r)for(let k=0;k<n.length;k++)if(l.startTime>=n[k]){n[k]=l.endTime,l.order=k+e,k>s&&(s=k);break}return s},"getMaxIntersections"),et,Ot=1e4,Di=d(function(t,e,n,r){const s=lt().gantt,l=lt().securityLevel;let k;l==="sandbox"&&(k=bt("#i"+e));const $=l==="sandbox"?bt(k.nodes()[0].contentDocument.body):bt("body"),I=l==="sandbox"?k.nodes()[0].contentDocument:document,S=I.getElementById(e);et=S.parentElement.offsetWidth,et===void 0&&(et=1200),s.useWidth!==void 0&&(et=s.useWidth);const w=r.db.getTasks();let F=[];for(const h of w)F.push(h.type);F=y(F);const _={};let D=2*s.topPadding;if(r.db.getDisplayMode()==="compact"||s.displayMode==="compact"){const h={};for(const v of w)h[v.section]===void 0?h[v.section]=[v]:h[v.section].push(v);let b=0;for(const v of Object.keys(h)){const p=_i(h[v],b)+1;b+=p,D+=p*(s.barHeight+s.barGap),_[v]=p}}else{D+=w.length*(s.barHeight+s.barGap);for(const h of F)_[h]=w.filter(b=>b.type===h).length}S.setAttribute("viewBox","0 0 "+et+" "+D);const z=$.select(`[id="${e}"]`),A=Re().domain([je(w,function(h){return h.startTime}),qe(w,function(h){return h.endTime})]).rangeRound([0,et-s.leftPadding-s.rightPadding]);function T(h,b){const v=h.startTime,p=b.startTime;let m=0;return v>p?m=1:v<p&&(m=-1),m}d(T,"taskCompare"),w.sort(T),C(w,et,D),Xe(z,D,et,s.useMaxWidth),z.append("text").text(r.db.getDiagramTitle()).attr("x",et/2).attr("y",s.titleTopMargin).attr("class","titleText");function C(h,b,v){const p=s.barHeight,m=p+s.barGap,c=s.topPadding,f=s.leftPadding,u=Ue().domain([0,F.length]).range(["#00B9FA","#F95002"]).interpolate($n);L(m,c,f,b,v,h,r.db.getExcludes(),r.db.getIncludes()),V(f,c,b,v),O(h,m,c,f,p,u,b),Y(m,c),g(f,c,b,v)}d(C,"makeGantt");function O(h,b,v,p,m,c,f){h.sort((a,o)=>a.vert===o.vert?0:a.vert?1:-1);const u=[...new Set(h.map(a=>a.order))].map(a=>h.find(o=>o.order===a));z.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",function(a,o){return o=a.order,o*b+v-2}).attr("width",function(){return f-s.rightPadding/2}).attr("height",b).attr("class",function(a){for(const[o,M]of F.entries())if(a.type===M)return"section section"+o%s.numberSectionStyles;return"section section0"}).enter();const x=z.append("g").selectAll("rect").data(h).enter(),i=r.db.getLinks();if(x.append("rect").attr("id",function(a){return a.id}).attr("rx",3).attr("ry",3).attr("x",function(a){return a.milestone?A(a.startTime)+p+.5*(A(a.endTime)-A(a.startTime))-.5*m:A(a.startTime)+p}).attr("y",function(a,o){return o=a.order,a.vert?s.gridLineStartPadding:o*b+v}).attr("width",function(a){return a.milestone?m:a.vert?.08*m:A(a.renderEndTime||a.endTime)-A(a.startTime)}).attr("height",function(a){return a.vert?w.length*(s.barHeight+s.barGap)+s.barHeight*2:m}).attr("transform-origin",function(a,o){return o=a.order,(A(a.startTime)+p+.5*(A(a.endTime)-A(a.startTime))).toString()+"px "+(o*b+v+.5*m).toString()+"px"}).attr("class",function(a){const o="task";let M="";a.classes.length>0&&(M=a.classes.join(" "));let W=0;for(const[P,N]of F.entries())a.type===N&&(W=P%s.numberSectionStyles);let E="";return a.active?a.crit?E+=" activeCrit":E=" active":a.done?a.crit?E=" doneCrit":E=" done":a.crit&&(E+=" crit"),E.length===0&&(E=" task"),a.milestone&&(E=" milestone "+E),a.vert&&(E=" vert "+E),E+=W,E+=" "+M,o+E}),x.append("text").attr("id",function(a){return a.id+"-text"}).text(function(a){return a.task}).attr("font-size",s.fontSize).attr("x",function(a){let o=A(a.startTime),M=A(a.renderEndTime||a.endTime);if(a.milestone&&(o+=.5*(A(a.endTime)-A(a.startTime))-.5*m,M=o+m),a.vert)return A(a.startTime)+p;const W=this.getBBox().width;return W>M-o?M+W+1.5*s.leftPadding>f?o+p-5:M+p+5:(M-o)/2+o+p}).attr("y",function(a,o){return a.vert?s.gridLineStartPadding+w.length*(s.barHeight+s.barGap)+60:(o=a.order,o*b+s.barHeight/2+(s.fontSize/2-2)+v)}).attr("text-height",m).attr("class",function(a){const o=A(a.startTime);let M=A(a.endTime);a.milestone&&(M=o+m);const W=this.getBBox().width;let E="";a.classes.length>0&&(E=a.classes.join(" "));let P=0;for(const[G,Z]of F.entries())a.type===Z&&(P=G%s.numberSectionStyles);let N="";return a.active&&(a.crit?N="activeCritText"+P:N="activeText"+P),a.done?a.crit?N=N+" doneCritText"+P:N=N+" doneText"+P:a.crit&&(N=N+" critText"+P),a.milestone&&(N+=" milestoneText"),a.vert&&(N+=" vertText"),W>M-o?M+W+1.5*s.leftPadding>f?E+" taskTextOutsideLeft taskTextOutside"+P+" "+N:E+" taskTextOutsideRight taskTextOutside"+P+" "+N+" width-"+W:E+" taskText taskText"+P+" "+N+" width-"+W}),lt().securityLevel==="sandbox"){let a;a=bt("#i"+e);const o=a.nodes()[0].contentDocument;x.filter(function(M){return i.has(M.id)}).each(function(M){var W=o.querySelector("#"+M.id),E=o.querySelector("#"+M.id+"-text");const P=W.parentNode;var N=o.createElement("a");N.setAttribute("xlink:href",i.get(M.id)),N.setAttribute("target","_top"),P.appendChild(N),N.appendChild(W),N.appendChild(E)})}}d(O,"drawRects");function L(h,b,v,p,m,c,f,u){if(f.length===0&&u.length===0)return;let x,i;for(const{startTime:E,endTime:P}of c)(x===void 0||E<x)&&(x=E),(i===void 0||P>i)&&(i=P);if(!x||!i)return;if(q(i).diff(q(x),"year")>5){st.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const a=r.db.getDateFormat(),o=[];let M=null,W=q(x);for(;W.valueOf()<=i;)r.db.isInvalidDate(W,a,f,u)?M?M.end=W:M={start:W,end:W}:M&&(o.push(M),M=null),W=W.add(1,"d");z.append("g").selectAll("rect").data(o).enter().append("rect").attr("id",E=>"exclude-"+E.start.format("YYYY-MM-DD")).attr("x",E=>A(E.start.startOf("day"))+v).attr("y",s.gridLineStartPadding).attr("width",E=>A(E.end.endOf("day"))-A(E.start.startOf("day"))).attr("height",m-b-s.gridLineStartPadding).attr("transform-origin",function(E,P){return(A(E.start)+v+.5*(A(E.end)-A(E.start))).toString()+"px "+(P*h+.5*m).toString()+"px"}).attr("class","exclude-range")}d(L,"drawExcludeDays");function H(h,b,v,p){if(v<=0||h>b)return 1/0;const m=b-h,c=q.duration({[p??"day"]:v}).asMilliseconds();return c<=0?1/0:Math.ceil(m/c)}d(H,"getEstimatedTickCount");function V(h,b,v,p){const m=r.db.getDateFormat(),c=r.db.getAxisFormat();let f;c?f=c:m==="D"?f="%d":f=s.axisFormat??"%Y-%m-%d";let u=pn(A).tickSize(-p+b+s.gridLineStartPadding).tickFormat(re(f));const x=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||s.tickInterval);if(x!==null){const i=parseInt(x[1],10);if(isNaN(i)||i<=0)st.warn(`Invalid tick interval value: "${x[1]}". Skipping custom tick interval.`);else{const a=x[2],o=r.db.getWeekday()||s.weekday,M=A.domain(),W=M[0],E=M[1],P=H(W,E,i,a);if(P>Ot)st.warn(`The tick interval "${i}${a}" would generate ${P} ticks, which exceeds the maximum allowed (${Ot}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(a){case"millisecond":u.ticks(ue.every(i));break;case"second":u.ticks(le.every(i));break;case"minute":u.ticks(ce.every(i));break;case"hour":u.ticks(oe.every(i));break;case"day":u.ticks(ae.every(i));break;case"week":u.ticks(ge[o].every(i));break;case"month":u.ticks(se.every(i));break}}}if(z.append("g").attr("class","grid").attr("transform","translate("+h+", "+(p-50)+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||s.topAxis){let i=kn(A).tickSize(-p+b+s.gridLineStartPadding).tickFormat(re(f));if(x!==null){const a=parseInt(x[1],10);if(isNaN(a)||a<=0)st.warn(`Invalid tick interval value: "${x[1]}". Skipping custom tick interval.`);else{const o=x[2],M=r.db.getWeekday()||s.weekday,W=A.domain(),E=W[0],P=W[1];if(H(E,P,a,o)<=Ot)switch(o){case"millisecond":i.ticks(ue.every(a));break;case"second":i.ticks(le.every(a));break;case"minute":i.ticks(ce.every(a));break;case"hour":i.ticks(oe.every(a));break;case"day":i.ticks(ae.every(a));break;case"week":i.ticks(ge[M].every(a));break;case"month":i.ticks(se.every(a));break}}}z.append("g").attr("class","grid").attr("transform","translate("+h+", "+b+")").call(i).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}d(V,"makeGrid");function Y(h,b){let v=0;const p=Object.keys(_).map(m=>[m,_[m]]);z.append("g").selectAll("text").data(p).enter().append(function(m){const c=m[0].split(rn.lineBreakRegex),f=-(c.length-1)/2,u=I.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",f+"em");for(const[x,i]of c.entries()){const a=I.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttribute("alignment-baseline","central"),a.setAttribute("x","10"),x>0&&a.setAttribute("dy","1em"),a.textContent=i,u.appendChild(a)}return u}).attr("x",10).attr("y",function(m,c){if(c>0)for(let f=0;f<c;f++)return v+=p[c-1][1],m[1]*h/2+v*h+b;else return m[1]*h/2+b}).attr("font-size",s.sectionFontSize).attr("class",function(m){for(const[c,f]of F.entries())if(m[0]===f)return"sectionTitle sectionTitle"+c%s.numberSectionStyles;return"sectionTitle"})}d(Y,"vertLabels");function g(h,b,v,p){const m=r.db.getTodayMarker();if(m==="off")return;const c=z.append("g").attr("class","today"),f=new Date,u=c.append("line");u.attr("x1",A(f)+h).attr("x2",A(f)+h).attr("y1",s.titleTopMargin).attr("y2",p-s.titleTopMargin).attr("class","today"),m!==""&&u.attr("style",m.replace(/,/g,";"))}d(g,"drawToday");function y(h){const b={},v=[];for(let p=0,m=h.length;p<m;++p)Object.prototype.hasOwnProperty.call(b,h[p])||(b[h[p]]=!0,v.push(h[p]));return v}d(y,"checkUnique")},"draw"),Mi={setConf:$i,draw:Di},Si=d(t=>`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var c=this.next();return c||this.lex()},"lex"),begin:d(function(c){this.conditionStack.push(c)},"begin"),popState:d(function(){var c=this.conditionStack.length-1;return c>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(c){return c=this.conditionStack.length-1-Math.abs(c||0),c>=0?this.conditionStack[c]:"INITIAL"},"topState"),pushState:d(function(c){this.begin(c)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(c,f,u,x){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return m}();b.lexer=v;function p(){this.yy={}}return d(p,"Parser"),p.prototype=b,b.Parser=p,new p}();Gt.parser=Gt;var Hn=Gt;q.extend(Sn);q.extend(Yn);q.extend(Fn);var ke={friday:5,saturday:6},J="",qt="",Xt=void 0,Ut="",yt=[],kt=[],Qt=new Map,Zt=[],Dt=[],ht="",Kt="",Ae=["active","done","crit","milestone","vert"],Jt=[],pt=!1,te=!1,ee="sunday",Mt="saturday",Bt=0,Vn=d(function(){Zt=[],Dt=[],ht="",Jt=[],wt=0,jt=void 0,$t=void 0,B=[],J="",qt="",Kt="",Xt=void 0,Ut="",yt=[],kt=[],pt=!1,te=!1,Bt=0,Qt=new Map,an(),ee="sunday",Mt="saturday"},"clear"),Gn=d(function(t){qt=t},"setAxisFormat"),Bn=d(function(){return qt},"getAxisFormat"),Rn=d(function(t){Xt=t},"setTickInterval"),jn=d(function(){return Xt},"getTickInterval"),qn=d(function(t){Ut=t},"setTodayMarker"),Xn=d(function(){return Ut},"getTodayMarker"),Un=d(function(t){J=t},"setDateFormat"),Qn=d(function(){pt=!0},"enableInclusiveEndDates"),Zn=d(function(){return pt},"endDatesAreInclusive"),Kn=d(function(){te=!0},"enableTopAxis"),Jn=d(function(){return te},"topAxisEnabled"),ti=d(function(t){Kt=t},"setDisplayMode"),ei=d(function(){return Kt},"getDisplayMode"),ni=d(function(){return J},"getDateFormat"),ii=d(function(t){yt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),ri=d(function(){return yt},"getIncludes"),si=d(function(t){kt=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),ai=d(function(){return kt},"getExcludes"),oi=d(function(){return Qt},"getLinks"),ci=d(function(t){ht=t,Zt.push(t)},"addSection"),li=d(function(){return Zt},"getSections"),ui=d(function(){let t=pe();const e=10;let n=0;for(;!t&&n<e;)t=pe(),n++;return Dt=B,Dt},"getTasks"),Ye=d(function(t,e,n,r){const s=t.format(e.trim()),l=t.format("YYYY-MM-DD");return r.includes(s)||r.includes(l)?!1:n.includes("weekends")&&(t.isoWeekday()===ke[Mt]||t.isoWeekday()===ke[Mt]+1)||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(s)||n.includes(l)},"isInvalidDate"),di=d(function(t){ee=t},"setWeekday"),hi=d(function(){return ee},"getWeekday"),fi=d(function(t){Mt=t},"setWeekend"),Ie=d(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let s;t.startTime instanceof Date?s=q(t.startTime):s=q(t.startTime,e,!0),s=s.add(1,"d");let l;t.endTime instanceof Date?l=q(t.endTime):l=q(t.endTime,e,!0);const[k,$]=mi(s,l,e,n,r);t.endTime=k.toDate(),t.renderEndTime=$},"checkTaskDates"),mi=d(function(t,e,n,r,s){let l=!1,k=null;for(;t<=e;)l||(k=e.toDate()),l=Ye(t,n,r,s),l&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,k]},"fixTaskDates"),Rt=d(function(t,e,n){if(n=n.trim(),d(l=>{const k=l.trim();return k==="x"||k==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(r!==null){let l=null;for(const $ of r.groups.ids.split(" ")){let I=at($);I!==void 0&&(!l||I.endTime>l.endTime)&&(l=I)}if(l)return l.endTime;const k=new Date;return k.setHours(0,0,0,0),k}let s=q(n,e.trim(),!0);if(s.isValid())return s.toDate();{st.debug("Invalid date:"+n),st.debug("With date format:"+e.trim());const l=new Date(n);if(l===void 0||isNaN(l.getTime())||l.getFullYear()<-1e4||l.getFullYear()>1e4)throw new Error("Invalid date:"+n);return l}},"getStartDate"),Le=d(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),Oe=d(function(t,e,n,r=!1){n=n.trim();const s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let S=null;for(const O of s.groups.ids.split(" ")){let _=at(O);_!==void 0&&(!S||_.startTime<S.startTime)&&(S=_)}if(S)return S.startTime;const w=new Date;return w.setHours(0,0,0,0),w}let l=q(n,e.trim(),!0);if(l.isValid())return r&&(l=l.add(1,"d")),l.toDate();let k=q(t);const[$,I]=Le(n);if(!Number.isNaN($)){const S=k.add($,I);S.isValid()&&(k=S)}return k.toDate()},"getEndDate"),wt=0,dt=d(function(t){return t===void 0?(wt=wt+1,"task"+wt):t},"parseId"),yi=d(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),s={};ne(r,s,Ae);for(let k=0;k<r.length;k++)r[k]=r[k].trim();let l="";switch(r.length){case 1:s.id=dt(),s.startTime=t.endTime,l=r[0];break;case 2:s.id=dt(),s.startTime=Rt(void 0,J,r[0]),l=r[1];break;case 3:s.id=dt(r[0]),s.startTime=Rt(void 0,J,r[1]),l=r[2];break}return l&&(s.endTime=Oe(s.startTime,J,l,pt),s.manualEndTime=q(l,"YYYY-MM-DD",!0).isValid(),Ie(s,J,kt,yt)),s},"compileData"),ki=d(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),s={};ne(r,s,Ae);for(let l=0;l<r.length;l++)r[l]=r[l].trim();switch(r.length){case 1:s.id=dt(),s.startTime={type:"prevTaskEnd",id:t},s.endTime={data:r[0]};break;case 2:s.id=dt(),s.startTime={type:"getStartDate",startData:r[0]},s.endTime={data:r[1]};break;case 3:s.id=dt(r[0]),s.startTime={type:"getStartDate",startData:r[1]},s.endTime={data:r[2]};break}return s},"parseData"),jt,$t,B=[],Fe={},pi=d(function(t,e){const n={section:ht,type:ht,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=ki($t,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=$t,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=Bt,Bt++;const s=B.push(n);$t=n.id,Fe[n.id]=s-1},"addTask"),at=d(function(t){const e=Fe[t];return B[e]},"findTaskById"),gi=d(function(t,e){const n={section:ht,type:ht,description:t,task:t,classes:[]},r=yi(jt,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,jt=n,Dt.push(n)},"addTaskOrg"),pe=d(function(){const t=d(function(n){const r=B[n];let s="";switch(B[n].raw.startTime.type){case"prevTaskEnd":{const l=at(r.prevTaskId);r.startTime=l.endTime;break}case"getStartDate":s=Rt(void 0,J,B[n].raw.startTime.startData),s&&(B[n].startTime=s);break}return B[n].startTime&&(B[n].endTime=Oe(B[n].startTime,J,B[n].raw.endTime.data,pt),B[n].endTime&&(B[n].processed=!0,B[n].manualEndTime=q(B[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Ie(B[n],J,kt,yt))),B[n].processed},"compileTask");let e=!0;for(const[n,r]of B.entries())t(n),e=e&&r.processed;return e},"compileTasks"),vi=d(function(t,e){let n=e;lt().securityLevel!=="loose"&&(n=sn.sanitizeUrl(e)),t.split(",").forEach(function(r){at(r)!==void 0&&(Pe(r,()=>{window.open(n,"_self")}),Qt.set(r,n))}),We(t,"clickable")},"setLink"),We=d(function(t,e){t.split(",").forEach(function(n){let r=at(n);r!==void 0&&r.classes.push(e)})},"setClass"),bi=d(function(t,e,n){if(lt().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<r.length;s++){let l=r[s].trim();l.startsWith('"')&&l.endsWith('"')&&(l=l.substr(1,l.length-2)),r[s]=l}}r.length===0&&r.push(t),at(t)!==void 0&&Pe(t,()=>{on.runFunc(e,...r)})},"setClickFun"),Pe=d(function(t,e){Jt.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},"pushFun"),xi=d(function(t,e,n){t.split(",").forEach(function(r){bi(r,e,n)}),We(t,"clickable")},"setClickEvent"),Ti=d(function(t){Jt.forEach(function(e){e(t)})},"bindFunctions"),wi={getConfig:d(()=>lt().gantt,"getConfig"),clear:Vn,setDateFormat:Un,getDateFormat:ni,enableInclusiveEndDates:Qn,endDatesAreInclusive:Zn,enableTopAxis:Kn,topAxisEnabled:Jn,setAxisFormat:Gn,getAxisFormat:Bn,setTickInterval:Rn,getTickInterval:jn,setTodayMarker:qn,getTodayMarker:Xn,setAccTitle:Be,getAccTitle:Ge,setDiagramTitle:Ve,getDiagramTitle:He,setDisplayMode:ti,getDisplayMode:ei,setAccDescription:ze,getAccDescription:Ne,addSection:ci,getSections:li,getTasks:ui,addTask:pi,findTaskById:at,addTaskOrg:gi,setIncludes:ii,getIncludes:ri,setExcludes:si,getExcludes:ai,setClickEvent:xi,setLink:vi,getLinks:oi,bindFunctions:Ti,parseDuration:Le,isInvalidDate:Ye,setWeekday:di,getWeekday:hi,setWeekend:fi};function ne(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(s){const l="^\\s*"+s+"\\s*$",k=new RegExp(l);t[0].match(k)&&(e[s]=!0,t.shift(1),r=!0)})}d(ne,"getTaskTags");q.extend(zn);var $i=d(function(){st.debug("Something is calling, setConf, remove the call")},"setConf"),ge={monday:nn,tuesday:en,wednesday:tn,thursday:Je,friday:Ke,saturday:Ze,sunday:Qe},_i=d((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((l,k)=>l.startTime-k.startTime||l.order-k.order),s=0;for(const l of r)for(let k=0;k<n.length;k++)if(l.startTime>=n[k]){n[k]=l.endTime,l.order=k+e,k>s&&(s=k);break}return s},"getMaxIntersections"),et,Ft=1e4,Di=d(function(t,e,n,r){const s=lt().gantt,l=lt().securityLevel;let k;l==="sandbox"&&(k=bt("#i"+e));const $=l==="sandbox"?bt(k.nodes()[0].contentDocument.body):bt("body"),I=l==="sandbox"?k.nodes()[0].contentDocument:document,S=I.getElementById(e);et=S.parentElement.offsetWidth,et===void 0&&(et=1200),s.useWidth!==void 0&&(et=s.useWidth);const w=r.db.getTasks();let O=[];for(const h of w)O.push(h.type);O=y(O);const _={};let D=2*s.topPadding;if(r.db.getDisplayMode()==="compact"||s.displayMode==="compact"){const h={};for(const v of w)h[v.section]===void 0?h[v.section]=[v]:h[v.section].push(v);let b=0;for(const v of Object.keys(h)){const p=_i(h[v],b)+1;b+=p,D+=p*(s.barHeight+s.barGap),_[v]=p}}else{D+=w.length*(s.barHeight+s.barGap);for(const h of O)_[h]=w.filter(b=>b.type===h).length}S.setAttribute("viewBox","0 0 "+et+" "+D);const z=$.select(`[id="${e}"]`),A=Re().domain([je(w,function(h){return h.startTime}),qe(w,function(h){return h.endTime})]).rangeRound([0,et-s.leftPadding-s.rightPadding]);function T(h,b){const v=h.startTime,p=b.startTime;let m=0;return v>p?m=1:v<p&&(m=-1),m}d(T,"taskCompare"),w.sort(T),C(w,et,D),Xe(z,D,et,s.useMaxWidth),z.append("text").text(r.db.getDiagramTitle()).attr("x",et/2).attr("y",s.titleTopMargin).attr("class","titleText");function C(h,b,v){const p=s.barHeight,m=p+s.barGap,c=s.topPadding,f=s.leftPadding,u=Ue().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate($n);L(m,c,f,b,v,h,r.db.getExcludes(),r.db.getIncludes()),V(f,c,b,v),F(h,m,c,f,p,u,b),Y(m,c),g(f,c,b,v)}d(C,"makeGantt");function F(h,b,v,p,m,c,f){h.sort((a,o)=>a.vert===o.vert?0:a.vert?1:-1);const u=[...new Set(h.map(a=>a.order))].map(a=>h.find(o=>o.order===a));z.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",function(a,o){return o=a.order,o*b+v-2}).attr("width",function(){return f-s.rightPadding/2}).attr("height",b).attr("class",function(a){for(const[o,M]of O.entries())if(a.type===M)return"section section"+o%s.numberSectionStyles;return"section section0"}).enter();const x=z.append("g").selectAll("rect").data(h).enter(),i=r.db.getLinks();if(x.append("rect").attr("id",function(a){return a.id}).attr("rx",3).attr("ry",3).attr("x",function(a){return a.milestone?A(a.startTime)+p+.5*(A(a.endTime)-A(a.startTime))-.5*m:A(a.startTime)+p}).attr("y",function(a,o){return o=a.order,a.vert?s.gridLineStartPadding:o*b+v}).attr("width",function(a){return a.milestone?m:a.vert?.08*m:A(a.renderEndTime||a.endTime)-A(a.startTime)}).attr("height",function(a){return a.vert?w.length*(s.barHeight+s.barGap)+s.barHeight*2:m}).attr("transform-origin",function(a,o){return o=a.order,(A(a.startTime)+p+.5*(A(a.endTime)-A(a.startTime))).toString()+"px "+(o*b+v+.5*m).toString()+"px"}).attr("class",function(a){const o="task";let M="";a.classes.length>0&&(M=a.classes.join(" "));let W=0;for(const[P,N]of O.entries())a.type===N&&(W=P%s.numberSectionStyles);let E="";return a.active?a.crit?E+=" activeCrit":E=" active":a.done?a.crit?E=" doneCrit":E=" done":a.crit&&(E+=" crit"),E.length===0&&(E=" task"),a.milestone&&(E=" milestone "+E),a.vert&&(E=" vert "+E),E+=W,E+=" "+M,o+E}),x.append("text").attr("id",function(a){return a.id+"-text"}).text(function(a){return a.task}).attr("font-size",s.fontSize).attr("x",function(a){let o=A(a.startTime),M=A(a.renderEndTime||a.endTime);if(a.milestone&&(o+=.5*(A(a.endTime)-A(a.startTime))-.5*m,M=o+m),a.vert)return A(a.startTime)+p;const W=this.getBBox().width;return W>M-o?M+W+1.5*s.leftPadding>f?o+p-5:M+p+5:(M-o)/2+o+p}).attr("y",function(a,o){return a.vert?s.gridLineStartPadding+w.length*(s.barHeight+s.barGap)+60:(o=a.order,o*b+s.barHeight/2+(s.fontSize/2-2)+v)}).attr("text-height",m).attr("class",function(a){const o=A(a.startTime);let M=A(a.endTime);a.milestone&&(M=o+m);const W=this.getBBox().width;let E="";a.classes.length>0&&(E=a.classes.join(" "));let P=0;for(const[G,Z]of O.entries())a.type===Z&&(P=G%s.numberSectionStyles);let N="";return a.active&&(a.crit?N="activeCritText"+P:N="activeText"+P),a.done?a.crit?N=N+" doneCritText"+P:N=N+" doneText"+P:a.crit&&(N=N+" critText"+P),a.milestone&&(N+=" milestoneText"),a.vert&&(N+=" vertText"),W>M-o?M+W+1.5*s.leftPadding>f?E+" taskTextOutsideLeft taskTextOutside"+P+" "+N:E+" taskTextOutsideRight taskTextOutside"+P+" "+N+" width-"+W:E+" taskText taskText"+P+" "+N+" width-"+W}),lt().securityLevel==="sandbox"){let a;a=bt("#i"+e);const o=a.nodes()[0].contentDocument;x.filter(function(M){return i.has(M.id)}).each(function(M){var W=o.querySelector("#"+M.id),E=o.querySelector("#"+M.id+"-text");const P=W.parentNode;var N=o.createElement("a");N.setAttribute("xlink:href",i.get(M.id)),N.setAttribute("target","_top"),P.appendChild(N),N.appendChild(W),N.appendChild(E)})}}d(F,"drawRects");function L(h,b,v,p,m,c,f,u){if(f.length===0&&u.length===0)return;let x,i;for(const{startTime:E,endTime:P}of c)(x===void 0||E<x)&&(x=E),(i===void 0||P>i)&&(i=P);if(!x||!i)return;if(q(i).diff(q(x),"year")>5){st.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const a=r.db.getDateFormat(),o=[];let M=null,W=q(x);for(;W.valueOf()<=i;)r.db.isInvalidDate(W,a,f,u)?M?M.end=W:M={start:W,end:W}:M&&(o.push(M),M=null),W=W.add(1,"d");z.append("g").selectAll("rect").data(o).enter().append("rect").attr("id",E=>"exclude-"+E.start.format("YYYY-MM-DD")).attr("x",E=>A(E.start.startOf("day"))+v).attr("y",s.gridLineStartPadding).attr("width",E=>A(E.end.endOf("day"))-A(E.start.startOf("day"))).attr("height",m-b-s.gridLineStartPadding).attr("transform-origin",function(E,P){return(A(E.start)+v+.5*(A(E.end)-A(E.start))).toString()+"px "+(P*h+.5*m).toString()+"px"}).attr("class","exclude-range")}d(L,"drawExcludeDays");function H(h,b,v,p){if(v<=0||h>b)return 1/0;const m=b-h,c=q.duration({[p??"day"]:v}).asMilliseconds();return c<=0?1/0:Math.ceil(m/c)}d(H,"getEstimatedTickCount");function V(h,b,v,p){const m=r.db.getDateFormat(),c=r.db.getAxisFormat();let f;c?f=c:m==="D"?f="%d":f=s.axisFormat??"%Y-%m-%d";let u=pn(A).tickSize(-p+b+s.gridLineStartPadding).tickFormat(re(f));const x=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||s.tickInterval);if(x!==null){const i=parseInt(x[1],10);if(isNaN(i)||i<=0)st.warn(`Invalid tick interval value: "${x[1]}". Skipping custom tick interval.`);else{const a=x[2],o=r.db.getWeekday()||s.weekday,M=A.domain(),W=M[0],E=M[1],P=H(W,E,i,a);if(P>Ft)st.warn(`The tick interval "${i}${a}" would generate ${P} ticks, which exceeds the maximum allowed (${Ft}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(a){case"millisecond":u.ticks(ue.every(i));break;case"second":u.ticks(le.every(i));break;case"minute":u.ticks(ce.every(i));break;case"hour":u.ticks(oe.every(i));break;case"day":u.ticks(ae.every(i));break;case"week":u.ticks(ge[o].every(i));break;case"month":u.ticks(se.every(i));break}}}if(z.append("g").attr("class","grid").attr("transform","translate("+h+", "+(p-50)+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||s.topAxis){let i=kn(A).tickSize(-p+b+s.gridLineStartPadding).tickFormat(re(f));if(x!==null){const a=parseInt(x[1],10);if(isNaN(a)||a<=0)st.warn(`Invalid tick interval value: "${x[1]}". Skipping custom tick interval.`);else{const o=x[2],M=r.db.getWeekday()||s.weekday,W=A.domain(),E=W[0],P=W[1];if(H(E,P,a,o)<=Ft)switch(o){case"millisecond":i.ticks(ue.every(a));break;case"second":i.ticks(le.every(a));break;case"minute":i.ticks(ce.every(a));break;case"hour":i.ticks(oe.every(a));break;case"day":i.ticks(ae.every(a));break;case"week":i.ticks(ge[M].every(a));break;case"month":i.ticks(se.every(a));break}}}z.append("g").attr("class","grid").attr("transform","translate("+h+", "+b+")").call(i).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}d(V,"makeGrid");function Y(h,b){let v=0;const p=Object.keys(_).map(m=>[m,_[m]]);z.append("g").selectAll("text").data(p).enter().append(function(m){const c=m[0].split(rn.lineBreakRegex),f=-(c.length-1)/2,u=I.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",f+"em");for(const[x,i]of c.entries()){const a=I.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttribute("alignment-baseline","central"),a.setAttribute("x","10"),x>0&&a.setAttribute("dy","1em"),a.textContent=i,u.appendChild(a)}return u}).attr("x",10).attr("y",function(m,c){if(c>0)for(let f=0;f<c;f++)return v+=p[c-1][1],m[1]*h/2+v*h+b;else return m[1]*h/2+b}).attr("font-size",s.sectionFontSize).attr("class",function(m){for(const[c,f]of O.entries())if(m[0]===f)return"sectionTitle sectionTitle"+c%s.numberSectionStyles;return"sectionTitle"})}d(Y,"vertLabels");function g(h,b,v,p){const m=r.db.getTodayMarker();if(m==="off")return;const c=z.append("g").attr("class","today"),f=new Date,u=c.append("line");u.attr("x1",A(f)+h).attr("x2",A(f)+h).attr("y1",s.titleTopMargin).attr("y2",p-s.titleTopMargin).attr("class","today"),m!==""&&u.attr("style",m.replace(/,/g,";"))}d(g,"drawToday");function y(h){const b={},v=[];for(let p=0,m=h.length;p<m;++p)Object.prototype.hasOwnProperty.call(b,h[p])||(b[h[p]]=!0,v.push(h[p]));return v}d(y,"checkUnique")},"draw"),Mi={setConf:$i,draw:Di},Si=d(t=>`
7
7
  .mermaid-main-font {
8
8
  font-family: ${t.fontFamily};
9
9
  }
@@ -0,0 +1,65 @@
1
+ import{m as Q}from"./chunk-4BX2VUAB-ecO_Iw3K-Dsg9QQ9e.js";import{e as X}from"./chunk-QZHKN3VN-BnmCvaos-BhXhqQoN.js";import{I as m,C as Z,A as rr,h as tr,p as er,d as or,u as nr,O as w,g as ar,t as cr,z as ir,K as sr,G as dr,k,Z as hr,L as $r,M as mr,N as lr}from"./index-DiPXXjl1.js";import{N as yr}from"./treemap-KMMF4GRG-B8dtJA6c-C7398h3b.js";import"./_baseUniq-BtBvqxlY-Dv5C3esR.js";import"./_basePickBy-lBvRrdD9-B-9MpFjW.js";import"./clone-DlVqQknZ-BDJyp8y8.js";var f={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},gr=mr.gitGraph,O=m(()=>hr({...gr,...$r().gitGraph}),"getConfig"),s=new X(()=>{const t=O(),r=t.mainBranchName,e=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:e}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function S(){return lr({length:7})}m(S,"getID");function _(t,r){const e=Object.create(null);return t.reduce((a,c)=>{const i=r(c);return e[i]||(e[i]=!0,a.push(c)),a},[])}m(_,"uniqBy");var pr=m(function(t){s.records.direction=t},"setDirection"),ur=m(function(t){w.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{s.records.options=JSON.parse(t)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),xr=m(function(){return s.records.options},"getOptions"),fr=m(function(t){let r=t.msg,e=t.id;const a=t.type;let c=t.tags;w.info("commit",r,e,a,c),w.debug("Entering commit:",r,e,a,c);const i=O();e=k.sanitizeText(e,i),r=k.sanitizeText(r,i),c=c==null?void 0:c.map(h=>k.sanitizeText(h,i));const d={id:e||s.records.seq+"-"+S(),message:r,seq:s.records.seq++,type:a??f.NORMAL,tags:c??[],parents:s.records.head==null?[]:[s.records.head.id],branch:s.records.currBranch};s.records.head=d,w.info("main branch",i.mainBranchName),s.records.commits.has(d.id)&&w.warn(`Commit ID ${d.id} already exists`),s.records.commits.set(d.id,d),s.records.branches.set(s.records.currBranch,d.id),w.debug("in pushCommit "+d.id)},"commit"),br=m(function(t){let r=t.name;const e=t.order;if(r=k.sanitizeText(r,O()),s.records.branches.has(r))throw 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}")`);s.records.branches.set(r,s.records.head!=null?s.records.head.id:null),s.records.branchConfig.set(r,{name:r,order:e}),F(r),w.debug("in createBranch")},"branch"),wr=m(t=>{let r=t.branch,e=t.id;const a=t.type,c=t.tags,i=O();r=k.sanitizeText(r,i),e&&(e=k.sanitizeText(e,i));const d=s.records.branches.get(s.records.currBranch),h=s.records.branches.get(r),l=d?s.records.commits.get(d):void 0,o=h?s.records.commits.get(h):void 0;if(l&&o&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(s.records.currBranch===r){const $=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw $.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},$}if(l===void 0||!l){const $=new Error(`Incorrect usage of "merge". Current branch (${s.records.currBranch})has no commits`);throw $.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},$}if(!s.records.branches.has(r)){const $=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw $.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},$}if(o===void 0||!o){const $=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw $.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},$}if(l===o){const $=new Error('Incorrect usage of "merge". Both branches have same head');throw $.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},$}if(e&&s.records.commits.has(e)){const $=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id");throw $.hash={text:`merge ${r} ${e} ${a} ${c==null?void 0:c.join(" ")}`,token:`merge ${r} ${e} ${a} ${c==null?void 0:c.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${a} ${c==null?void 0:c.join(" ")}`]},$}const n=h||"",x={id:e||`${s.records.seq}-${S()}`,message:`merged branch ${r} into ${s.records.currBranch}`,seq:s.records.seq++,parents:s.records.head==null?[]:[s.records.head.id,n],branch:s.records.currBranch,type:f.MERGE,customType:a,customId:!!e,tags:c??[]};s.records.head=x,s.records.commits.set(x.id,x),s.records.branches.set(s.records.currBranch,x.id),w.debug(s.records.branches),w.debug("in mergeBranch")},"merge"),Br=m(function(t){let r=t.id,e=t.targetId,a=t.tags,c=t.parent;w.debug("Entering cherryPick:",r,e,a);const i=O();if(r=k.sanitizeText(r,i),e=k.sanitizeText(e,i),a=a==null?void 0:a.map(l=>k.sanitizeText(l,i)),c=k.sanitizeText(c,i),!r||!s.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},l}const d=s.records.commits.get(r);if(d===void 0||!d)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(c&&!(Array.isArray(d.parents)&&d.parents.includes(c)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const h=d.branch;if(d.type===f.MERGE&&!c)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||!s.records.commits.has(e)){if(h===s.records.currBranch){const x=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw x.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},x}const l=s.records.branches.get(s.records.currBranch);if(l===void 0||!l){const x=new Error(`Incorrect usage of "cherry-pick". Current branch (${s.records.currBranch})has no commits`);throw x.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},x}const o=s.records.commits.get(l);if(o===void 0||!o){const x=new Error(`Incorrect usage of "cherry-pick". Current branch (${s.records.currBranch})has no commits`);throw x.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},x}const n={id:s.records.seq+"-"+S(),message:`cherry-picked ${d==null?void 0:d.message} into ${s.records.currBranch}`,seq:s.records.seq++,parents:s.records.head==null?[]:[s.records.head.id,d.id],branch:s.records.currBranch,type:f.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${d.id}${d.type===f.MERGE?`|parent:${c}`:""}`]};s.records.head=n,s.records.commits.set(n.id,n),s.records.branches.set(s.records.currBranch,n.id),w.debug(s.records.branches),w.debug("in cherryPick")}},"cherryPick"),F=m(function(t){if(t=k.sanitizeText(t,O()),s.records.branches.has(t)){s.records.currBranch=t;const r=s.records.branches.get(s.records.currBranch);r===void 0||!r?s.records.head=null:s.records.head=s.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function D(t,r,e){const a=t.indexOf(r);a===-1?t.push(e):t.splice(a,1,e)}m(D,"upsert");function W(t){const r=t.reduce((c,i)=>c.seq>i.seq?c:i,t[0]);let e="";t.forEach(function(c){c===r?e+=" *":e+=" |"});const a=[e,r.id,r.seq];for(const c in s.records.branches)s.records.branches.get(c)===r.id&&a.push(c);if(w.debug(a.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const c=s.records.commits.get(r.parents[0]);D(t,r,c),r.parents[1]&&t.push(s.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const c=s.records.commits.get(r.parents[0]);D(t,r,c)}}t=_(t,c=>c.id),W(t)}m(W,"prettyPrintCommitHistory");var Er=m(function(){w.debug(s.records.commits);const t=Y()[0];W([t])},"prettyPrint"),vr=m(function(){s.reset(),dr()},"clear"),Cr=m(function(){return[...s.records.branchConfig.values()].map((t,r)=>t.order!==null&&t.order!==void 0?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),kr=m(function(){return s.records.branches},"getBranches"),Lr=m(function(){return s.records.commits},"getCommits"),Y=m(function(){const t=[...s.records.commits.values()];return t.forEach(function(r){w.debug(r.id)}),t.sort((r,e)=>r.seq-e.seq),t},"getCommitsArray"),Tr=m(function(){return s.records.currBranch},"getCurrentBranch"),Mr=m(function(){return s.records.direction},"getDirection"),Pr=m(function(){return s.records.head},"getHead"),V={commitType:f,getConfig:O,setDirection:pr,setOptions:ur,getOptions:xr,commit:fr,branch:br,merge:wr,cherryPick:Br,checkout:F,prettyPrint:Er,clear:vr,getBranchesAsObjArray:Cr,getBranches:kr,getCommits:Lr,getCommitsArray:Y,getCurrentBranch:Tr,getDirection:Mr,getHead:Pr,setAccTitle:nr,getAccTitle:or,getAccDescription:er,setAccDescription:tr,setDiagramTitle:rr,getDiagramTitle:Z},Rr=m((t,r)=>{Q(t,r),t.dir&&r.setDirection(t.dir);for(const e of t.statements)Ir(e,r)},"populate"),Ir=m((t,r)=>{const e={Commit:m(a=>r.commit(Ar(a)),"Commit"),Branch:m(a=>r.branch(Gr(a)),"Branch"),Merge:m(a=>r.merge(Or(a)),"Merge"),Checkout:m(a=>r.checkout(qr(a)),"Checkout"),CherryPicking:m(a=>r.cherryPick(zr(a)),"CherryPicking")}[t.$type];e?e(t):w.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Ar=m(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?f[t.type]:f.NORMAL,tags:t.tags??void 0}),"parseCommit"),Gr=m(t=>({name:t.name,order:t.order??0}),"parseBranch"),Or=m(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?f[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),qr=m(t=>t.branch,"parseCheckout"),zr=m(t=>{var r;return{id:t.id,targetId:"",tags:((r=t.tags)==null?void 0:r.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Hr={parse:m(async t=>{const r=await yr("gitGraph",t);w.debug(r),Rr(r,V)},"parse")},j=ar(),E=j==null?void 0:j.gitGraph,I=10,A=40,L=4,M=2,G=8,v=new Map,C=new Map,H=30,q=new Map,N=[],R=0,u="LR",Nr=m(()=>{v.clear(),C.clear(),q.clear(),R=0,N=[],u="LR"},"clear"),U=m(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(e=>{const a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),a.setAttribute("dy","1em"),a.setAttribute("x","0"),a.setAttribute("class","row"),a.textContent=e.trim(),r.appendChild(a)}),r},"drawText"),J=m(t=>{let r,e,a;return u==="BT"?(e=m((c,i)=>c<=i,"comparisonFunc"),a=1/0):(e=m((c,i)=>c>=i,"comparisonFunc"),a=0),t.forEach(c=>{var i,d;const h=u==="TB"||u=="BT"?(i=C.get(c))==null?void 0:i.y:(d=C.get(c))==null?void 0:d.x;h!==void 0&&e(h,a)&&(r=c,a=h)}),r},"findClosestParent"),Sr=m(t=>{let r="",e=1/0;return t.forEach(a=>{const c=C.get(a).y;c<=e&&(r=a,e=c)}),r||void 0},"findClosestParentBT"),Dr=m((t,r,e)=>{let a=e,c=e;const i=[];t.forEach(d=>{const h=r.get(d);if(!h)throw new Error(`Commit not found for key ${d}`);h.parents.length?(a=jr(h),c=Math.max(a,c)):i.push(h),Kr(h,a)}),a=c,i.forEach(d=>{_r(d,a,e)}),t.forEach(d=>{const h=r.get(d);if(h!=null&&h.parents.length){const l=Sr(h.parents);a=C.get(l).y-A,a<=c&&(c=a);const o=v.get(h.branch).pos,n=a-I;C.set(h.id,{x:o,y:n})}})},"setParallelBTPos"),Wr=m(t=>{var r;const e=J(t.parents.filter(c=>c!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const a=(r=C.get(e))==null?void 0:r.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),jr=m(t=>Wr(t)+A,"calculateCommitPosition"),Kr=m((t,r)=>{const e=v.get(t.branch);if(!e)throw new Error(`Branch not found for commit ${t.id}`);const a=e.pos,c=r+I;return C.set(t.id,{x:a,y:c}),{x:a,y:c}},"setCommitPosition"),_r=m((t,r,e)=>{const a=v.get(t.branch);if(!a)throw new Error(`Branch not found for commit ${t.id}`);const c=r+e,i=a.pos;C.set(t.id,{x:i,y:c})},"setRootPosition"),Fr=m((t,r,e,a,c,i)=>{if(i===f.HIGHLIGHT)t.append("rect").attr("x",e.x-10).attr("y",e.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${c%G} ${a}-outer`),t.append("rect").attr("x",e.x-6).attr("y",e.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${c%G} ${a}-inner`);else if(i===f.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",10).attr("class",`commit ${r.id} ${a}`),t.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${a}`),t.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${a}`),t.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${a}`),t.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${a}`);else{const d=t.append("circle");if(d.attr("cx",e.x),d.attr("cy",e.y),d.attr("r",r.type===f.MERGE?9:10),d.attr("class",`commit ${r.id} commit${c%G}`),i===f.MERGE){const h=t.append("circle");h.attr("cx",e.x),h.attr("cy",e.y),h.attr("r",6),h.attr("class",`commit ${a} ${r.id} commit${c%G}`)}i===f.REVERSE&&t.append("path").attr("d",`M ${e.x-5},${e.y-5}L${e.x+5},${e.y+5}M${e.x-5},${e.y+5}L${e.x+5},${e.y-5}`).attr("class",`commit ${a} ${r.id} commit${c%G}`)}},"drawCommitBullet"),Yr=m((t,r,e,a)=>{var c;if(r.type!==f.CHERRY_PICK&&(r.customId&&r.type===f.MERGE||r.type!==f.MERGE)&&E!=null&&E.showCommitLabel){const i=t.append("g"),d=i.insert("rect").attr("class","commit-label-bkg"),h=i.append("text").attr("x",a).attr("y",e.y+25).attr("class","commit-label").text(r.id),l=(c=h.node())==null?void 0:c.getBBox();if(l&&(d.attr("x",e.posWithOffset-l.width/2-M).attr("y",e.y+13.5).attr("width",l.width+2*M).attr("height",l.height+2*M),u==="TB"||u==="BT"?(d.attr("x",e.x-(l.width+4*L+5)).attr("y",e.y-12),h.attr("x",e.x-(l.width+4*L)).attr("y",e.y+l.height-12)):h.attr("x",e.posWithOffset-l.width/2),E.rotateCommitLabel))if(u==="TB"||u==="BT")h.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),d.attr("transform","rotate(-45, "+e.x+", "+e.y+")");else{const o=-7.5-(l.width+10)/25*9.5,n=10+l.width/25*8.5;i.attr("transform","translate("+o+", "+n+") rotate(-45, "+a+", "+e.y+")")}}},"drawCommitLabel"),Vr=m((t,r,e,a)=>{var c;if(r.tags.length>0){let i=0,d=0,h=0;const l=[];for(const o of r.tags.reverse()){const n=t.insert("polygon"),x=t.append("circle"),$=t.append("text").attr("y",e.y-16-i).attr("class","tag-label").text(o),y=(c=$.node())==null?void 0:c.getBBox();if(!y)throw new Error("Tag bbox not found");d=Math.max(d,y.width),h=Math.max(h,y.height),$.attr("x",e.posWithOffset-y.width/2),l.push({tag:$,hole:x,rect:n,yOffset:i}),i+=20}for(const{tag:o,hole:n,rect:x,yOffset:$}of l){const y=h/2,p=e.y-19.2-$;if(x.attr("class","tag-label-bkg").attr("points",`
2
+ ${a-d/2-L/2},${p+M}
3
+ ${a-d/2-L/2},${p-M}
4
+ ${e.posWithOffset-d/2-L},${p-y-M}
5
+ ${e.posWithOffset+d/2+L},${p-y-M}
6
+ ${e.posWithOffset+d/2+L},${p+y+M}
7
+ ${e.posWithOffset-d/2-L},${p+y+M}`),n.attr("cy",p).attr("cx",a-d/2+L/2).attr("r",1.5).attr("class","tag-hole"),u==="TB"||u==="BT"){const g=a+$;x.attr("class","tag-label-bkg").attr("points",`
8
+ ${e.x},${g+2}
9
+ ${e.x},${g-2}
10
+ ${e.x+I},${g-y-2}
11
+ ${e.x+I+d+4},${g-y-2}
12
+ ${e.x+I+d+4},${g+y+2}
13
+ ${e.x+I},${g+y+2}`).attr("transform","translate(12,12) rotate(45, "+e.x+","+a+")"),n.attr("cx",e.x+L/2).attr("cy",g).attr("transform","translate(12,12) rotate(45, "+e.x+","+a+")"),o.attr("x",e.x+5).attr("y",g+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+a+")")}}}},"drawCommitTags"),Ur=m(t=>{switch(t.customType??t.type){case f.NORMAL:return"commit-normal";case f.REVERSE:return"commit-reverse";case f.HIGHLIGHT:return"commit-highlight";case f.MERGE:return"commit-merge";case f.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Jr=m((t,r,e,a)=>{const c={x:0,y:0};if(t.parents.length>0){const i=J(t.parents);if(i){const d=a.get(i)??c;return r==="TB"?d.y+A:r==="BT"?(a.get(t.id)??c).y-A:d.x+A}}else return r==="TB"?H:r==="BT"?(a.get(t.id)??c).y-A:0;return 0},"calculatePosition"),Qr=m((t,r,e)=>{var a,c;const i=u==="BT"&&e?r:r+I,d=u==="TB"||u==="BT"?i:(a=v.get(t.branch))==null?void 0:a.pos,h=u==="TB"||u==="BT"?(c=v.get(t.branch))==null?void 0:c.pos:i;if(h===void 0||d===void 0)throw new Error(`Position were undefined for commit ${t.id}`);return{x:h,y:d,posWithOffset:i}},"getCommitPosition"),K=m((t,r,e)=>{if(!E)throw new Error("GitGraph config not found");const a=t.append("g").attr("class","commit-bullets"),c=t.append("g").attr("class","commit-labels");let i=u==="TB"||u==="BT"?H:0;const d=[...r.keys()],h=(E==null?void 0:E.parallelCommits)??!1,l=m((n,x)=>{var $,y;const p=($=r.get(n))==null?void 0:$.seq,g=(y=r.get(x))==null?void 0:y.seq;return p!==void 0&&g!==void 0?p-g:0},"sortKeys");let o=d.sort(l);u==="BT"&&(h&&Dr(o,r,i),o=o.reverse()),o.forEach(n=>{var x;const $=r.get(n);if(!$)throw new Error(`Commit not found for key ${n}`);h&&(i=Jr($,u,i,C));const y=Qr($,i,h);if(e){const p=Ur($),g=$.customType??$.type,T=((x=v.get($.branch))==null?void 0:x.index)??0;Fr(a,$,y,p,T,g),Yr(c,$,y,i),Vr(c,$,y,i)}u==="TB"||u==="BT"?C.set($.id,{x:y.x,y:y.posWithOffset}):C.set($.id,{x:y.posWithOffset,y:y.y}),i=u==="BT"&&h?i+A:i+A+I,i>R&&(R=i)})},"drawCommits"),Xr=m((t,r,e,a,c)=>{const i=(u==="TB"||u==="BT"?e.x<a.x:e.y<a.y)?r.branch:t.branch,d=m(l=>l.branch===i,"isOnBranchToGetCurve"),h=m(l=>l.seq>t.seq&&l.seq<r.seq,"isBetweenCommits");return[...c.values()].some(l=>h(l)&&d(l))},"shouldRerouteArrow"),z=m((t,r,e=0)=>{const a=t+Math.abs(t-r)/2;if(e>5)return a;if(N.every(i=>Math.abs(i-a)>=10))return N.push(a),a;const c=Math.abs(t-r);return z(t,r-c/5,e+1)},"findLane"),Zr=m((t,r,e,a)=>{var c,i,d,h,l;const o=C.get(r.id),n=C.get(e.id);if(o===void 0||n===void 0)throw new Error(`Commit positions not found for commits ${r.id} and ${e.id}`);const x=Xr(r,e,o,n,a);let $="",y="",p=0,g=0,T=(c=v.get(e.branch))==null?void 0:c.index;e.type===f.MERGE&&r.id!==e.parents[0]&&(T=(i=v.get(r.branch))==null?void 0:i.index);let b;if(x){$="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",p=10,g=10;const P=o.y<n.y?z(o.y,n.y):z(n.y,o.y),B=o.x<n.x?z(o.x,n.x):z(n.x,o.x);u==="TB"?o.x<n.x?b=`M ${o.x} ${o.y} L ${B-p} ${o.y} ${y} ${B} ${o.y+g} L ${B} ${n.y-p} ${$} ${B+g} ${n.y} L ${n.x} ${n.y}`:(T=(d=v.get(r.branch))==null?void 0:d.index,b=`M ${o.x} ${o.y} L ${B+p} ${o.y} ${$} ${B} ${o.y+g} L ${B} ${n.y-p} ${y} ${B-g} ${n.y} L ${n.x} ${n.y}`):u==="BT"?o.x<n.x?b=`M ${o.x} ${o.y} L ${B-p} ${o.y} ${$} ${B} ${o.y-g} L ${B} ${n.y+p} ${y} ${B+g} ${n.y} L ${n.x} ${n.y}`:(T=(h=v.get(r.branch))==null?void 0:h.index,b=`M ${o.x} ${o.y} L ${B+p} ${o.y} ${y} ${B} ${o.y-g} L ${B} ${n.y+p} ${$} ${B-g} ${n.y} L ${n.x} ${n.y}`):o.y<n.y?b=`M ${o.x} ${o.y} L ${o.x} ${P-p} ${$} ${o.x+g} ${P} L ${n.x-p} ${P} ${y} ${n.x} ${P+g} L ${n.x} ${n.y}`:(T=(l=v.get(r.branch))==null?void 0:l.index,b=`M ${o.x} ${o.y} L ${o.x} ${P+p} ${y} ${o.x+g} ${P} L ${n.x-p} ${P} ${$} ${n.x} ${P-g} L ${n.x} ${n.y}`)}else $="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",p=20,g=20,u==="TB"?(o.x<n.x&&(e.type===f.MERGE&&r.id!==e.parents[0]?b=`M ${o.x} ${o.y} L ${o.x} ${n.y-p} ${$} ${o.x+g} ${n.y} L ${n.x} ${n.y}`:b=`M ${o.x} ${o.y} L ${n.x-p} ${o.y} ${y} ${n.x} ${o.y+g} L ${n.x} ${n.y}`),o.x>n.x&&($="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",p=20,g=20,e.type===f.MERGE&&r.id!==e.parents[0]?b=`M ${o.x} ${o.y} L ${o.x} ${n.y-p} ${y} ${o.x-g} ${n.y} L ${n.x} ${n.y}`:b=`M ${o.x} ${o.y} L ${n.x+p} ${o.y} ${$} ${n.x} ${o.y+g} L ${n.x} ${n.y}`),o.x===n.x&&(b=`M ${o.x} ${o.y} L ${n.x} ${n.y}`)):u==="BT"?(o.x<n.x&&(e.type===f.MERGE&&r.id!==e.parents[0]?b=`M ${o.x} ${o.y} L ${o.x} ${n.y+p} ${y} ${o.x+g} ${n.y} L ${n.x} ${n.y}`:b=`M ${o.x} ${o.y} L ${n.x-p} ${o.y} ${$} ${n.x} ${o.y-g} L ${n.x} ${n.y}`),o.x>n.x&&($="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",p=20,g=20,e.type===f.MERGE&&r.id!==e.parents[0]?b=`M ${o.x} ${o.y} L ${o.x} ${n.y+p} ${$} ${o.x-g} ${n.y} L ${n.x} ${n.y}`:b=`M ${o.x} ${o.y} L ${n.x-p} ${o.y} ${$} ${n.x} ${o.y-g} L ${n.x} ${n.y}`),o.x===n.x&&(b=`M ${o.x} ${o.y} L ${n.x} ${n.y}`)):(o.y<n.y&&(e.type===f.MERGE&&r.id!==e.parents[0]?b=`M ${o.x} ${o.y} L ${n.x-p} ${o.y} ${y} ${n.x} ${o.y+g} L ${n.x} ${n.y}`:b=`M ${o.x} ${o.y} L ${o.x} ${n.y-p} ${$} ${o.x+g} ${n.y} L ${n.x} ${n.y}`),o.y>n.y&&(e.type===f.MERGE&&r.id!==e.parents[0]?b=`M ${o.x} ${o.y} L ${n.x-p} ${o.y} ${$} ${n.x} ${o.y-g} L ${n.x} ${n.y}`:b=`M ${o.x} ${o.y} L ${o.x} ${n.y+p} ${y} ${o.x+g} ${n.y} L ${n.x} ${n.y}`),o.y===n.y&&(b=`M ${o.x} ${o.y} L ${n.x} ${n.y}`));if(b===void 0)throw new Error("Line definition not found");t.append("path").attr("d",b).attr("class","arrow arrow"+T%G)},"drawArrow"),rt=m((t,r)=>{const e=t.append("g").attr("class","commit-arrows");[...r.keys()].forEach(a=>{const c=r.get(a);c.parents&&c.parents.length>0&&c.parents.forEach(i=>{Zr(e,r.get(i),c,r)})})},"drawArrows"),tt=m((t,r)=>{const e=t.append("g");r.forEach((a,c)=>{var i;const d=c%G,h=(i=v.get(a.name))==null?void 0:i.pos;if(h===void 0)throw new Error(`Position not found for branch ${a.name}`);const l=e.append("line");l.attr("x1",0),l.attr("y1",h),l.attr("x2",R),l.attr("y2",h),l.attr("class","branch branch"+d),u==="TB"?(l.attr("y1",H),l.attr("x1",h),l.attr("y2",R),l.attr("x2",h)):u==="BT"&&(l.attr("y1",R),l.attr("x1",h),l.attr("y2",H),l.attr("x2",h)),N.push(h);const o=a.name,n=U(o),x=e.insert("rect"),$=e.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+d);$.node().appendChild(n);const y=n.getBBox();x.attr("class","branchLabelBkg label"+d).attr("rx",4).attr("ry",4).attr("x",-y.width-4-((E==null?void 0:E.rotateCommitLabel)===!0?30:0)).attr("y",-y.height/2+8).attr("width",y.width+18).attr("height",y.height+4),$.attr("transform","translate("+(-y.width-14-((E==null?void 0:E.rotateCommitLabel)===!0?30:0))+", "+(h-y.height/2-1)+")"),u==="TB"?(x.attr("x",h-y.width/2-10).attr("y",0),$.attr("transform","translate("+(h-y.width/2-5)+", 0)")):u==="BT"?(x.attr("x",h-y.width/2-10).attr("y",R),$.attr("transform","translate("+(h-y.width/2-5)+", "+R+")")):x.attr("transform","translate(-19, "+(h-y.height/2)+")")})},"drawBranches"),et=m(function(t,r,e,a,c){return v.set(t,{pos:r,index:e}),r+=50+(c?40:0)+(u==="TB"||u==="BT"?a.width/2:0),r},"setBranchPosition"),ot=m(function(t,r,e,a){if(Nr(),w.debug("in gitgraph renderer",t+`
14
+ `,"id:",r,e),!E)throw new Error("GitGraph config not found");const c=E.rotateCommitLabel??!1,i=a.db;q=i.getCommits();const d=i.getBranchesAsObjArray();u=i.getDirection();const h=cr(`[id="${r}"]`);let l=0;d.forEach((o,n)=>{var x;const $=U(o.name),y=h.append("g"),p=y.insert("g").attr("class","branchLabel"),g=p.insert("g").attr("class","label branch-label");(x=g.node())==null||x.appendChild($);const T=$.getBBox();l=et(o.name,l,n,T,c),g.remove(),p.remove(),y.remove()}),K(h,q,!1),E.showBranches&&tt(h,d),rt(h,q),K(h,q,!0),ir.insertTitle(h,"gitTitleText",E.titleTopMargin??0,i.getDiagramTitle()),sr(void 0,h,E.diagramPadding,E.useMaxWidth)},"draw"),nt={draw:ot},at=m(t=>`
15
+ .commit-id,
16
+ .commit-msg,
17
+ .branch-label {
18
+ fill: lightgrey;
19
+ color: lightgrey;
20
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
21
+ font-family: var(--mermaid-font-family);
22
+ }
23
+ ${[0,1,2,3,4,5,6,7].map(r=>`
24
+ .branch-label${r} { fill: ${t["gitBranchLabel"+r]}; }
25
+ .commit${r} { stroke: ${t["git"+r]}; fill: ${t["git"+r]}; }
26
+ .commit-highlight${r} { stroke: ${t["gitInv"+r]}; fill: ${t["gitInv"+r]}; }
27
+ .label${r} { fill: ${t["git"+r]}; }
28
+ .arrow${r} { stroke: ${t["git"+r]}; }
29
+ `).join(`
30
+ `)}
31
+
32
+ .branch {
33
+ stroke-width: 1;
34
+ stroke: ${t.lineColor};
35
+ stroke-dasharray: 2;
36
+ }
37
+ .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}
38
+ .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }
39
+ .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
40
+ .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }
41
+ .tag-hole { fill: ${t.textColor}; }
42
+
43
+ .commit-merge {
44
+ stroke: ${t.primaryColor};
45
+ fill: ${t.primaryColor};
46
+ }
47
+ .commit-reverse {
48
+ stroke: ${t.primaryColor};
49
+ fill: ${t.primaryColor};
50
+ stroke-width: 3;
51
+ }
52
+ .commit-highlight-outer {
53
+ }
54
+ .commit-highlight-inner {
55
+ stroke: ${t.primaryColor};
56
+ fill: ${t.primaryColor};
57
+ }
58
+
59
+ .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
60
+ .gitTitleText {
61
+ text-anchor: middle;
62
+ font-size: 18px;
63
+ fill: ${t.textColor};
64
+ }
65
+ `,"getStyles"),ct=at,yt={parser:Hr,db:V,renderer:nt,styles:ct};export{yt as diagram};