orbitchat 2.2.8 → 2.2.9

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 (51) hide show
  1. package/bin/orbitchat.js +45 -36
  2. package/dist/assets/{_basePickBy-1MakYQmz-ydNwd1l_.js → _basePickBy-1MakYQmz-BAhRsHXC.js} +1 -1
  3. package/dist/assets/{_baseUniq-Cd4llU-Q-Cdw60MU4.js → _baseUniq-Cd4llU-Q-CsIxZURF.js} +1 -1
  4. package/dist/assets/{api-L84wIOvt.js → api-B68Q13El.js} +1 -1
  5. package/dist/assets/{arc-b8oyw-lz-1LLYREoj.js → arc-b8oyw-lz-BqCfYgpU.js} +1 -1
  6. package/dist/assets/{architectureDiagram-VXUJARFQ-BuSDV2Do-_okKpoAJ.js → architectureDiagram-VXUJARFQ-BuSDV2Do-DkCzZT5N.js} +1 -1
  7. package/dist/assets/{blockDiagram-VD42YOAC-jQHtez-j-rtzBv-vF.js → blockDiagram-VD42YOAC-jQHtez-j-CJTsIVbJ.js} +1 -1
  8. package/dist/assets/{c4Diagram-YG6GDRKO-_5giM-EA-DjRoFacG.js → c4Diagram-YG6GDRKO-_5giM-EA-CdW8htOl.js} +1 -1
  9. package/dist/assets/channel-BLPbvVT2-CP0zgk7D.js +1 -0
  10. package/dist/assets/{chunk-4BX2VUAB-BeuiUsbc-DN2rdYji.js → chunk-4BX2VUAB-BeuiUsbc-CyOuPrI8.js} +1 -1
  11. package/dist/assets/{chunk-55IACEB6-C4OH5_NF-DrgL4Tv-.js → chunk-55IACEB6-C4OH5_NF-HSErBipB.js} +1 -1
  12. package/dist/assets/{chunk-B4BG7PRW-CnUkcto7-DHe7ngzh.js → chunk-B4BG7PRW-CnUkcto7-m-YHBNjU.js} +1 -1
  13. package/dist/assets/{chunk-DI55MBZ5-CSd59tsh-DFg8M9sN.js → chunk-DI55MBZ5-CSd59tsh-QcxSJz1R.js} +1 -1
  14. package/dist/assets/{chunk-FMBD7UC4-C6VImbBX-ip_5_GPo.js → chunk-FMBD7UC4-C6VImbBX-CdWDLckg.js} +1 -1
  15. package/dist/assets/{chunk-QN33PNHL-DrWWTLTH-tpIkWiz1.js → chunk-QN33PNHL-DrWWTLTH-UzcLWgZY.js} +1 -1
  16. package/dist/assets/{chunk-QZHKN3VN-C6_I39By-ZQp0I6tE.js → chunk-QZHKN3VN-C6_I39By-Cz33_PSG.js} +1 -1
  17. package/dist/assets/{chunk-TZMSLE5B-DGddLgNl-CifiGjd6.js → chunk-TZMSLE5B-DGddLgNl-CfNEVvWN.js} +1 -1
  18. package/dist/assets/{classDiagram-2ON5EDUG-BngjTxOv-2Y-76rXt.js → classDiagram-2ON5EDUG-BngjTxOv-CQhamgNl.js} +1 -1
  19. package/dist/assets/{classDiagram-v2-WZHVMYZB-BngjTxOv-2Y-76rXt.js → classDiagram-v2-WZHVMYZB-BngjTxOv-CQhamgNl.js} +1 -1
  20. package/dist/assets/clone-DH1Kq5Y6-Ba-lUtme.js +1 -0
  21. package/dist/assets/{cose-bilkent-S5V4N54A-DcyCVH6S-zMMT3oqX.js → cose-bilkent-S5V4N54A-DcyCVH6S-_Xa90S_g.js} +1 -1
  22. package/dist/assets/{dagre-6UL2VRFP-B799wmhr-DuXOlM7I.js → dagre-6UL2VRFP-B799wmhr-BmVW0iuC.js} +1 -1
  23. package/dist/assets/{diagram-PSM6KHXK-Dxp2wzKk-CmF_yeQm.js → diagram-PSM6KHXK-Dxp2wzKk-CZTFiE4C.js} +1 -1
  24. package/dist/assets/{diagram-QEK2KX5R-Km_liL9n-DiDvLC9k.js → diagram-QEK2KX5R-Km_liL9n-DFCl3NKk.js} +1 -1
  25. package/dist/assets/{diagram-S2PKOQOG-tSpHqt0k-Dhi7ufxY.js → diagram-S2PKOQOG-tSpHqt0k-xf_ngAOM.js} +1 -1
  26. package/dist/assets/{erDiagram-Q2GNP2WA-DF6ylQ7o-CjIoFnUJ.js → erDiagram-Q2GNP2WA-DF6ylQ7o-DdRu0NKP.js} +1 -1
  27. package/dist/assets/{flowDiagram-NV44I4VS-BQUYJeB--D2fTwlvO.js → flowDiagram-NV44I4VS-BQUYJeB--BeDbFZsR.js} +1 -1
  28. package/dist/assets/{ganttDiagram-LVOFAZNH-BidPm1xz-D_x48jVE.js → ganttDiagram-LVOFAZNH-BidPm1xz-DBIsx_AE.js} +1 -1
  29. package/dist/assets/{gitGraphDiagram-NY62KEGX-zbMOFVrv-DTVFadEr.js → gitGraphDiagram-NY62KEGX-zbMOFVrv-Cll7Xa35.js} +1 -1
  30. package/dist/assets/{graph-aRt77rZZ-Dq9dkNsk.js → graph-aRt77rZZ-slHn5KEJ.js} +1 -1
  31. package/dist/assets/{index-p0knuDQ9.js → index-CFYhtZ1e.js} +73 -73
  32. package/dist/assets/{index-rW5EEHFR-Cm6Gxbor.js → index-rW5EEHFR-D-o-LRPp.js} +1 -1
  33. package/dist/assets/{infoDiagram-ER5ION4S-ozjqEnsq-D0PwL9B_.js → infoDiagram-ER5ION4S-ozjqEnsq-oKxWmhEd.js} +1 -1
  34. package/dist/assets/{journeyDiagram-XKPGCS4Q-C6JuEafR-BSuib8Wf.js → journeyDiagram-XKPGCS4Q-C6JuEafR-DM7w5ttd.js} +1 -1
  35. package/dist/assets/{kanban-definition-3W4ZIXB7-Ci4U3NR--Bxb6Yi8G.js → kanban-definition-3W4ZIXB7-Ci4U3NR--CR-hFfA0.js} +1 -1
  36. package/dist/assets/{layout-BKjRgLFe-WihuzEZg.js → layout-BKjRgLFe-DIgRT4aW.js} +1 -1
  37. package/dist/assets/{mindmap-definition-VGOIOE7T-DveejCtl-DXLxEnp4.js → mindmap-definition-VGOIOE7T-DveejCtl-j12l4UiP.js} +1 -1
  38. package/dist/assets/{pieDiagram-ADFJNKIX-DAbSGtae-BruonBFZ.js → pieDiagram-ADFJNKIX-DAbSGtae-NYsX6s7s.js} +1 -1
  39. package/dist/assets/{quadrantDiagram-AYHSOK5B-DnnzUQMW-DzWXEz5-.js → quadrantDiagram-AYHSOK5B-DnnzUQMW-CKhUYTv2.js} +1 -1
  40. package/dist/assets/{requirementDiagram-UZGBJVZJ-BB9jagBx-q21wBQ9N.js → requirementDiagram-UZGBJVZJ-BB9jagBx-4dU9Di2G.js} +1 -1
  41. package/dist/assets/{sankeyDiagram-TZEHDZUN-BttZx2-h-Cr53tHP7.js → sankeyDiagram-TZEHDZUN-BttZx2-h-DeC-xZE-.js} +1 -1
  42. package/dist/assets/{sequenceDiagram-WL72ISMW-DA6yVs26-B4W8xwkp.js → sequenceDiagram-WL72ISMW-DA6yVs26-Bo7FK6Z3.js} +1 -1
  43. package/dist/assets/{stateDiagram-FKZM4ZOC-BD8xEcbc-BWOiPxZu.js → stateDiagram-FKZM4ZOC-BD8xEcbc-DLe6xtjO.js} +1 -1
  44. package/dist/assets/{stateDiagram-v2-4FDKWEC3-DINzAoyF-DshiRv7Q.js → stateDiagram-v2-4FDKWEC3-DINzAoyF-D8wKEAkL.js} +1 -1
  45. package/dist/assets/{timeline-definition-IT6M3QCI-XN-D5T3b-l0nKzR1k.js → timeline-definition-IT6M3QCI-XN-D5T3b-Ckk8yZ6A.js} +1 -1
  46. package/dist/assets/{treemap-KMMF4GRG-C4GHjB3F-_nPgBK22.js → treemap-KMMF4GRG-C4GHjB3F-B6RJ9b4F.js} +1 -1
  47. package/dist/assets/{xychartDiagram-PRI3JC2R-BL53__6J-XcAq-Lxf.js → xychartDiagram-PRI3JC2R-BL53__6J-B8e2l_RZ.js} +1 -1
  48. package/dist/index.html +1 -1
  49. package/package.json +1 -1
  50. package/dist/assets/channel-BLPbvVT2-CnJJPuZ5.js +0 -1
  51. package/dist/assets/clone-DH1Kq5Y6-DxQT_fR1.js +0 -1
@@ -1,4 +1,4 @@
1
- import{R as f,H as w,am as v,B as C,O as m,s as P,l as z,o as S,r as F,u as W,f as E,J as T,L as D,w as A}from"./index-p0knuDQ9.js";import{m as H}from"./chunk-4BX2VUAB-BeuiUsbc-DN2rdYji.js";import{N as L}from"./treemap-KMMF4GRG-C4GHjB3F-_nPgBK22.js";import"./_baseUniq-Cd4llU-Q-Cdw60MU4.js";import"./_basePickBy-1MakYQmz-ydNwd1l_.js";import"./clone-DH1Kq5Y6-DxQT_fR1.js";var O=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=w({...O,...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),R=1e4,Y=f((t,e)=>{H(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<R;){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.");m.debug(o),Y(o,r)},"parse")},M=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())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"),j={draw:M},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{R as f,H as w,am as v,B as C,O as m,s as P,l as z,o as S,r as F,u as W,f as E,J as T,L as D,w as A}from"./index-CFYhtZ1e.js";import{m as H}from"./chunk-4BX2VUAB-BeuiUsbc-CyOuPrI8.js";import{N as L}from"./treemap-KMMF4GRG-C4GHjB3F-B6RJ9b4F.js";import"./_baseUniq-Cd4llU-Q-CsIxZURF.js";import"./_basePickBy-1MakYQmz-BAhRsHXC.js";import"./clone-DH1Kq5Y6-Ba-lUtme.js";var O=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=w({...O,...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),R=1e4,Y=f((t,e)=>{H(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<R;){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.");m.debug(o),Y(o,r)},"parse")},M=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())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"),j={draw:M},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`
2
2
  .packetByte {
3
3
  font-size: ${e.byteFontSize};
4
4
  }
@@ -1,4 +1,4 @@
1
- import{d as vt}from"./chunk-55IACEB6-C4OH5_NF-DrgL4Tv-.js";import{d as $t}from"./chunk-QN33PNHL-DrWWTLTH-tpIkWiz1.js";import{R as o,s as Dt,l as wt,f as Lt,u as Mt,o as Ft,r as Bt,g as q,O as $,w as Pt,F as Yt,P as Zt,C as Gt,Z as Kt,X as zt,e as Ut,n as jt}from"./index-p0knuDQ9.js";import{t as Wt}from"./channel-BLPbvVT2-CnJJPuZ5.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],H=[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],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],z=[1,89],U=[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:H,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:H,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: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:z,50:U,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: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:z,50:U,70:j},{16:112,40:S,41:T},{14:113,40:z,50:U,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:z,50:U,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,V;;){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="";V=[];for(Q in p[C])this.terminals_[Q]&&Q>At&&V.push("'"+this.terminals_[Q]+"'");d.showPosition?lt="Parse error on line "+(X+1)+`:
1
+ import{d as vt}from"./chunk-55IACEB6-C4OH5_NF-HSErBipB.js";import{d as $t}from"./chunk-QN33PNHL-DrWWTLTH-UzcLWgZY.js";import{R as o,s as Dt,l as wt,f as Lt,u as Mt,o as Ft,r as Bt,g as q,O as $,w as Pt,F as Yt,P as Zt,C as Gt,Z as Kt,X as zt,e as Ut,n as jt}from"./index-CFYhtZ1e.js";import{t as Wt}from"./channel-BLPbvVT2-CP0zgk7D.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],H=[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],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],z=[1,89],U=[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:H,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:H,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: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:z,50:U,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: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:z,50:U,70:j},{16:112,40:S,41:T},{14:113,40:z,50:U,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:z,50:U,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,V;;){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="";V=[];for(Q in p[C])this.terminals_[Q]&&Q>At&&V.push("'"+this.terminals_[Q]+"'");d.showPosition?lt="Parse error on line "+(X+1)+`:
2
2
  `+d.showPosition()+`
3
3
  Expecting `+V.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:V})}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).
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()+`
@@ -1,4 +1,4 @@
1
- import{l as We}from"./chunk-FMBD7UC4-C6VImbBX-ip_5_GPo.js";import{R as A,k as Oe,O as Q,g as g1,e as m1,Z as qe,X as He,n as se,s as Xe,f as Ze,o as Je,l as Ye,u as Qe,r as et,x as tt,v as st,y as it,t as rt,F as ee,w as at,I as nt,P as ut}from"./index-p0knuDQ9.js";import{d as ot}from"./chunk-55IACEB6-C4OH5_NF-DrgL4Tv-.js";import{d as lt}from"./chunk-QN33PNHL-DrWWTLTH-tpIkWiz1.js";import{t as ct}from"./channel-BLPbvVT2-CnJJPuZ5.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=Ze,this.setDiagramTitle=Je,this.getAccTitle=Ye,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-C6VImbBX-CdWDLckg.js";import{R as A,k as Oe,O as Q,g as g1,e as m1,Z as qe,X as He,n as se,s as Xe,f as Ze,o as Je,l as Ye,u as Qe,r as et,x as tt,v as st,y as it,t as rt,F as ee,w as at,I as nt,P as ut}from"./index-CFYhtZ1e.js";import{d as ot}from"./chunk-55IACEB6-C4OH5_NF-HSErBipB.js";import{d as lt}from"./chunk-QN33PNHL-DrWWTLTH-UzcLWgZY.js";import{t as ct}from"./channel-BLPbvVT2-CP0zgk7D.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=Ze,this.setDiagramTitle=Je,this.getAccTitle=Ye,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,4 +1,4 @@
1
- import{R as u,u as Oe,f as We,r as Pe,o as ze,l as Ne,s as He,g as ot,e as bt,$ as Ge,Q as Ve,T as qe,B as Be,U as Re,a0 as R,O as _t,a1 as ne,a2 as re,a3 as je,a4 as Xe,a5 as Ue,a6 as Qe,a7 as Ze,a8 as Ke,a9 as Je,aa as ie,ab as ae,ac as se,ad as oe,ae as ce,x as tn,i as en,w as nn,af as Mt,n as rn,ag as me,ah as an,ai as pe,aj as ge,ak as be,al as sn,D as qt}from"./index-p0knuDQ9.js";function on(t){return t}var vt=1,Et=2,Ft=3,xt=4,le=1e-6;function cn(t){return"translate("+t+",0)"}function ln(t){return"translate(0,"+t+")"}function un(t){return n=>+t(n)}function dn(t,n){return n=Math.max(0,t.bandwidth()-n*2)/2,t.round()&&(n=Math.round(n)),r=>+t(r)+n}function hn(){return!this.__axis}function xe(t,n){var r=[],i=null,a=null,c=6,h=6,w=3,C=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=t===vt||t===xt?-1:1,T=t===xt||t===Et?"x":"y",L=t===vt||t===Ft?cn:ln;function D(_){var G=i??(n.ticks?n.ticks.apply(n,r):n.domain()),A=a??(n.tickFormat?n.tickFormat.apply(n,r):on),b=Math.max(c,0)+w,E=n.range(),Y=+E[0]+C,I=+E[E.length-1]+C,N=(n.bandwidth?dn:un)(n.copy(),C),z=_.selection?_.selection():_,V=z.selectAll(".domain").data([null]),W=z.selectAll(".tick").data(G,n).order(),m=W.exit(),v=W.enter().append("g").attr("class","tick"),x=W.select("line"),p=W.select("text");V=V.merge(V.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),W=W.merge(v),x=x.merge(v.append("line").attr("stroke","currentColor").attr(T+"2",S*c)),p=p.merge(v.append("text").attr("fill","currentColor").attr(T,S*b).attr("dy",t===vt?"0em":t===Ft?"0.71em":"0.32em")),_!==z&&(V=V.transition(_),W=W.transition(_),x=x.transition(_),p=p.transition(_),m=m.transition(_).attr("opacity",le).attr("transform",function(f){return isFinite(f=N(f))?L(f+C):this.getAttribute("transform")}),v.attr("opacity",le).attr("transform",function(f){var g=this.parentNode.__axis;return L((g&&isFinite(g=g(f))?g:N(f))+C)})),m.remove(),V.attr("d",t===xt||t===Et?h?"M"+S*h+","+Y+"H"+C+"V"+I+"H"+S*h:"M"+C+","+Y+"V"+I:h?"M"+Y+","+S*h+"V"+C+"H"+I+"V"+S*h:"M"+Y+","+C+"H"+I),W.attr("opacity",1).attr("transform",function(f){return L(N(f)+C)}),x.attr(T+"2",S*c),p.attr(T,S*b).text(A),z.filter(hn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Et?"start":t===xt?"end":"middle"),z.each(function(){this.__axis=N})}return D.scale=function(_){return arguments.length?(n=_,D):n},D.ticks=function(){return r=Array.from(arguments),D},D.tickArguments=function(_){return arguments.length?(r=_==null?[]:Array.from(_),D):r.slice()},D.tickValues=function(_){return arguments.length?(i=_==null?null:Array.from(_),D):i&&i.slice()},D.tickFormat=function(_){return arguments.length?(a=_,D):a},D.tickSize=function(_){return arguments.length?(c=h=+_,D):c},D.tickSizeInner=function(_){return arguments.length?(c=+_,D):c},D.tickSizeOuter=function(_){return arguments.length?(h=+_,D):h},D.tickPadding=function(_){return arguments.length?(w=+_,D):w},D.offset=function(_){return arguments.length?(C=+_,D):C},D}function fn(t){return xe(vt,t)}function yn(t){return xe(Ft,t)}const kn=Math.PI/180,mn=180/Math.PI,Dt=18,ve=.96422,Te=1,we=.82521,_e=4/29,ct=6/29,De=3*ct*ct,pn=ct*ct*ct;function Se(t){if(t instanceof K)return new K(t.l,t.a,t.b,t.opacity);if(t instanceof et)return $e(t);t instanceof me||(t=an(t));var n=It(t.r),r=It(t.g),i=It(t.b),a=At((.2225045*n+.7168786*r+.0606169*i)/Te),c,h;return n===r&&r===i?c=h=a:(c=At((.4360747*n+.3850649*r+.1430804*i)/ve),h=At((.0139322*n+.0971045*r+.7141733*i)/we)),new K(116*a-16,500*(c-a),200*(a-h),t.opacity)}function gn(t,n,r,i){return arguments.length===1?Se(t):new K(t,n,r,i??1)}function K(t,n,r,i){this.l=+t,this.a=+n,this.b=+r,this.opacity=+i}pe(K,gn,ge(be,{brighter(t){return new K(this.l+Dt*(t??1),this.a,this.b,this.opacity)},darker(t){return new K(this.l-Dt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return n=ve*Lt(n),t=Te*Lt(t),r=we*Lt(r),new me(Yt(3.1338561*n-1.6168667*t-.4906146*r),Yt(-.9787684*n+1.9161415*t+.033454*r),Yt(.0719453*n-.2289914*t+1.4052427*r),this.opacity)}}));function At(t){return t>pn?Math.pow(t,1/3):t/De+_e}function Lt(t){return t>ct?t*t*t:De*(t-_e)}function Yt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function It(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function bn(t){if(t instanceof et)return new et(t.h,t.c,t.l,t.opacity);if(t instanceof K||(t=Se(t)),t.a===0&&t.b===0)return new et(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*mn;return new et(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Ot(t,n,r,i){return arguments.length===1?bn(t):new et(t,n,r,i??1)}function et(t,n,r,i){this.h=+t,this.c=+n,this.l=+r,this.opacity=+i}function $e(t){if(isNaN(t.h))return new K(t.l,0,0,t.opacity);var n=t.h*kn;return new K(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}pe(et,Ot,ge(be,{brighter(t){return new et(this.h,this.c,this.l+Dt*(t??1),this.opacity)},darker(t){return new et(this.h,this.c,this.l-Dt*(t??1),this.opacity)},rgb(){return $e(this).rgb()}}));function xn(t){return function(n,r){var i=t((n=Ot(n)).h,(r=Ot(r)).h),a=Mt(n.c,r.c),c=Mt(n.l,r.l),h=Mt(n.opacity,r.opacity);return function(w){return n.h=i(w),n.c=a(w),n.l=c(w),n.opacity=h(w),n+""}}}const vn=xn(sn);var Wt={exports:{}},Tn=Wt.exports,ue;function wn(){return ue||(ue=1,function(t,n){(function(r,i){t.exports=i()})(Tn,function(){var r="day";return function(i,a,c){var h=function(S){return S.add(4-S.isoWeekday(),r)},w=a.prototype;w.isoWeekYear=function(){return h(this).year()},w.isoWeek=function(S){if(!this.$utils().u(S))return this.add(7*(S-this.isoWeek()),r);var T,L,D,_,G=h(this),A=(T=this.isoWeekYear(),L=this.$u,D=(L?c.utc:c)().year(T).startOf("year"),_=4-D.isoWeekday(),D.isoWeekday()>4&&(_+=7),D.add(_,r));return G.diff(A,"week")+1},w.isoWeekday=function(S){return this.$utils().u(S)?this.day()||7:this.day(this.day()%7?S:S-7)};var C=w.startOf;w.startOf=function(S,T){var L=this.$utils(),D=!!L.u(T)||T;return L.p(S)==="isoweek"?D?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):C.bind(this)(S,T)}}})}(Wt)),Wt.exports}var _n=wn();const Dn=qt(_n);var Pt={exports:{}},Sn=Pt.exports,de;function $n(){return de||(de=1,function(t,n){(function(r,i){t.exports=i()})(Sn,function(){var r={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"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,c=/\d\d/,h=/\d\d?/,w=/\d*[^-_:/,()\s\d]+/,C={},S=function(b){return(b=+b)+(b>68?1900:2e3)},T=function(b){return function(E){this[b]=+E}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(E){if(!E||E==="Z")return 0;var Y=E.match(/([+-]|\d\d)/g),I=60*Y[1]+(+Y[2]||0);return I===0?0:Y[0]==="+"?-I:I}(b)}],D=function(b){var E=C[b];return E&&(E.indexOf?E:E.s.concat(E.f))},_=function(b,E){var Y,I=C.meridiem;if(I){for(var N=1;N<=24;N+=1)if(b.indexOf(I(N,0,E))>-1){Y=N>12;break}}else Y=b===(E?"pm":"PM");return Y},G={A:[w,function(b){this.afternoon=_(b,!1)}],a:[w,function(b){this.afternoon=_(b,!0)}],Q:[a,function(b){this.month=3*(b-1)+1}],S:[a,function(b){this.milliseconds=100*+b}],SS:[c,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[h,T("seconds")],ss:[h,T("seconds")],m:[h,T("minutes")],mm:[h,T("minutes")],H:[h,T("hours")],h:[h,T("hours")],HH:[h,T("hours")],hh:[h,T("hours")],D:[h,T("day")],DD:[c,T("day")],Do:[w,function(b){var E=C.ordinal,Y=b.match(/\d+/);if(this.day=Y[0],E)for(var I=1;I<=31;I+=1)E(I).replace(/\[|\]/g,"")===b&&(this.day=I)}],w:[h,T("week")],ww:[c,T("week")],M:[h,T("month")],MM:[c,T("month")],MMM:[w,function(b){var E=D("months"),Y=(D("monthsShort")||E.map(function(I){return I.slice(0,3)})).indexOf(b)+1;if(Y<1)throw new Error;this.month=Y%12||Y}],MMMM:[w,function(b){var E=D("months").indexOf(b)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,T("year")],YY:[c,function(b){this.year=S(b)}],YYYY:[/\d{4}/,T("year")],Z:L,ZZ:L};function A(b){var E,Y;E=b,Y=C&&C.formats;for(var I=(b=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,p,f){var g=f&&f.toUpperCase();return p||Y[f]||r[f]||Y[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(o,d,l){return d||l.slice(1)})})).match(i),N=I.length,z=0;z<N;z+=1){var V=I[z],W=G[V],m=W&&W[0],v=W&&W[1];I[z]=v?{regex:m,parser:v}:V.replace(/^\[|\]$/g,"")}return function(x){for(var p={},f=0,g=0;f<N;f+=1){var o=I[f];if(typeof o=="string")g+=o.length;else{var d=o.regex,l=o.parser,k=x.slice(g),e=d.exec(k)[0];l.call(p,e),x=x.replace(e,"")}}return function(y){var s=y.afternoon;if(s!==void 0){var M=y.hours;s?M<12&&(y.hours+=12):M===12&&(y.hours=0),delete y.afternoon}}(p),p}}return function(b,E,Y){Y.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(S=b.parseTwoDigitYear);var I=E.prototype,N=I.parse;I.parse=function(z){var V=z.date,W=z.utc,m=z.args;this.$u=W;var v=m[1];if(typeof v=="string"){var x=m[2]===!0,p=m[3]===!0,f=x||p,g=m[2];p&&(g=m[2]),C=this.$locale(),!x&&g&&(C=Y.Ls[g]),this.$d=function(k,e,y,s){try{if(["x","X"].indexOf(e)>-1)return new Date((e==="X"?1e3:1)*k);var M=A(e)(k),$=M.year,O=M.month,F=M.day,dt=M.hours,P=M.minutes,J=M.seconds,ht=M.milliseconds,at=M.zone,pt=M.week,ft=new Date,st=F||($||O?1:ft.getDate()),q=$||ft.getFullYear(),U=0;$&&!O||(U=O>0?O-1:ft.getMonth());var B,rt=dt||0,Q=P||0,nt=J||0,j=ht||0;return at?new Date(Date.UTC(q,U,st,rt,Q,nt,j+60*at.offset*1e3)):y?new Date(Date.UTC(q,U,st,rt,Q,nt,j)):(B=new Date(q,U,st,rt,Q,nt,j),pt&&(B=s(B).week(pt).toDate()),B)}catch{return new Date("")}}(V,v,W,Y),this.init(),g&&g!==!0&&(this.$L=this.locale(g).$L),f&&V!=this.format(v)&&(this.$d=new Date("")),C={}}else if(v instanceof Array)for(var o=v.length,d=1;d<=o;d+=1){m[1]=v[d-1];var l=Y.apply(this,m);if(l.isValid()){this.$d=l.$d,this.$L=l.$L,this.init();break}d===o&&(this.$d=new Date(""))}else N.call(this,z)}}})}(Pt)),Pt.exports}var Cn=$n();const Mn=qt(Cn);var zt={exports:{}},En=zt.exports,he;function An(){return he||(he=1,function(t,n){(function(r,i){t.exports=i()})(En,function(){return function(r,i){var a=i.prototype,c=a.format;a.format=function(h){var w=this,C=this.$locale();if(!this.isValid())return c.bind(this)(h);var S=this.$utils(),T=(h||"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(L){switch(L){case"Q":return Math.ceil((w.$M+1)/3);case"Do":return C.ordinal(w.$D);case"gggg":return w.weekYear();case"GGGG":return w.isoWeekYear();case"wo":return C.ordinal(w.week(),"W");case"w":case"ww":return S.s(w.week(),L==="w"?1:2,"0");case"W":case"WW":return S.s(w.isoWeek(),L==="W"?1:2,"0");case"k":case"kk":return S.s(String(w.$H===0?24:w.$H),L==="k"?1:2,"0");case"X":return Math.floor(w.$d.getTime()/1e3);case"x":return w.$d.getTime();case"z":return"["+w.offsetName()+"]";case"zzz":return"["+w.offsetName("long")+"]";default:return L}});return c.bind(this)(T)}}})}(zt)),zt.exports}var Ln=An();const Yn=qt(Ln);var Nt=function(){var t=u(function(g,o,d,l){for(d=d||{},l=g.length;l--;d[g[l]]=o);return d},"o"),n=[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],r=[1,26],i=[1,27],a=[1,28],c=[1,29],h=[1,30],w=[1,31],C=[1,32],S=[1,33],T=[1,34],L=[1,9],D=[1,10],_=[1,11],G=[1,12],A=[1,13],b=[1,14],E=[1,15],Y=[1,16],I=[1,19],N=[1,20],z=[1,21],V=[1,22],W=[1,23],m=[1,25],v=[1,35],x={trace:u(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:u(function(g,o,d,l,k,e,y){var s=e.length-1;switch(k){case 1:return e[s-1];case 2:this.$=[];break;case 3:e[s-1].push(e[s]),this.$=e[s-1];break;case 4:case 5:this.$=e[s];break;case 6:case 7:this.$=[];break;case 8:l.setWeekday("monday");break;case 9:l.setWeekday("tuesday");break;case 10:l.setWeekday("wednesday");break;case 11:l.setWeekday("thursday");break;case 12:l.setWeekday("friday");break;case 13:l.setWeekday("saturday");break;case 14:l.setWeekday("sunday");break;case 15:l.setWeekend("friday");break;case 16:l.setWeekend("saturday");break;case 17:l.setDateFormat(e[s].substr(11)),this.$=e[s].substr(11);break;case 18:l.enableInclusiveEndDates(),this.$=e[s].substr(18);break;case 19:l.TopAxis(),this.$=e[s].substr(8);break;case 20:l.setAxisFormat(e[s].substr(11)),this.$=e[s].substr(11);break;case 21:l.setTickInterval(e[s].substr(13)),this.$=e[s].substr(13);break;case 22:l.setExcludes(e[s].substr(9)),this.$=e[s].substr(9);break;case 23:l.setIncludes(e[s].substr(9)),this.$=e[s].substr(9);break;case 24:l.setTodayMarker(e[s].substr(12)),this.$=e[s].substr(12);break;case 27:l.setDiagramTitle(e[s].substr(6)),this.$=e[s].substr(6);break;case 28:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 29:case 30:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 31:l.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 33:l.addTask(e[s-1],e[s]),this.$="task";break;case 34:this.$=e[s-1],l.setClickEvent(e[s-1],e[s],null);break;case 35:this.$=e[s-2],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 36:this.$=e[s-2],l.setClickEvent(e[s-2],e[s-1],null),l.setLink(e[s-2],e[s]);break;case 37:this.$=e[s-3],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setLink(e[s-3],e[s]);break;case 38:this.$=e[s-2],l.setClickEvent(e[s-2],e[s],null),l.setLink(e[s-2],e[s-1]);break;case 39:this.$=e[s-3],l.setClickEvent(e[s-3],e[s-1],e[s]),l.setLink(e[s-3],e[s-2]);break;case 40:this.$=e[s-1],l.setLink(e[s-1],e[s]);break;case 41:case 47:this.$=e[s-1]+" "+e[s];break;case 42:case 43:case 45:this.$=e[s-2]+" "+e[s-1]+" "+e[s];break;case 44:case 46:this.$=e[s-3]+" "+e[s-2]+" "+e[s-1]+" "+e[s];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:a,15:c,16:h,17:w,18:C,19:18,20:S,21:T,22:L,23:D,24:_,25:G,26:A,27:b,28:E,29:Y,30:I,31:N,33:z,35:V,36:W,37:24,38:m,40:v},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:36,11:17,12:r,13:i,14:a,15:c,16:h,17:w,18:C,19:18,20:S,21:T,22:L,23:D,24:_,25:G,26:A,27:b,28:E,29:Y,30:I,31:N,33:z,35:V,36:W,37:24,38:m,40:v},t(n,[2,5]),t(n,[2,6]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,20]),t(n,[2,21]),t(n,[2,22]),t(n,[2,23]),t(n,[2,24]),t(n,[2,25]),t(n,[2,26]),t(n,[2,27]),{32:[1,37]},{34:[1,38]},t(n,[2,30]),t(n,[2,31]),t(n,[2,32]),{39:[1,39]},t(n,[2,8]),t(n,[2,9]),t(n,[2,10]),t(n,[2,11]),t(n,[2,12]),t(n,[2,13]),t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),{41:[1,40],43:[1,41]},t(n,[2,4]),t(n,[2,28]),t(n,[2,29]),t(n,[2,33]),t(n,[2,34],{42:[1,42],43:[1,43]}),t(n,[2,40],{41:[1,44]}),t(n,[2,35],{43:[1,45]}),t(n,[2,36]),t(n,[2,38],{42:[1,46]}),t(n,[2,37]),t(n,[2,39])],defaultActions:{},parseError:u(function(g,o){if(o.recoverable)this.trace(g);else{var d=new Error(g);throw d.hash=o,d}},"parseError"),parse:u(function(g){var o=this,d=[0],l=[],k=[null],e=[],y=this.table,s="",M=0,$=0,O=2,F=1,dt=e.slice.call(arguments,1),P=Object.create(this.lexer),J={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&(J.yy[ht]=this.yy[ht]);P.setInput(g,J.yy),J.yy.lexer=P,J.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var at=P.yylloc;e.push(at);var pt=P.options&&P.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(X){d.length=d.length-2*X,k.length=k.length-X,e.length=e.length-X}u(ft,"popStack");function st(){var X;return X=l.pop()||P.lex()||F,typeof X!="number"&&(X instanceof Array&&(l=X,X=l.pop()),X=o.symbols_[X]||X),X}u(st,"lex");for(var q,U,B,rt,Q={},nt,j,ee,gt;;){if(U=d[d.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((q===null||typeof q>"u")&&(q=st()),B=y[U]&&y[U][q]),typeof B>"u"||!B.length||!B[0]){var Ct="";gt=[];for(nt in y[U])this.terminals_[nt]&&nt>O&&gt.push("'"+this.terminals_[nt]+"'");P.showPosition?Ct="Parse error on line "+(M+1)+`:
1
+ import{R as u,u as Oe,f as We,r as Pe,o as ze,l as Ne,s as He,g as ot,e as bt,$ as Ge,Q as Ve,T as qe,B as Be,U as Re,a0 as R,O as _t,a1 as ne,a2 as re,a3 as je,a4 as Xe,a5 as Ue,a6 as Qe,a7 as Ze,a8 as Ke,a9 as Je,aa as ie,ab as ae,ac as se,ad as oe,ae as ce,x as tn,i as en,w as nn,af as Mt,n as rn,ag as me,ah as an,ai as pe,aj as ge,ak as be,al as sn,D as qt}from"./index-CFYhtZ1e.js";function on(t){return t}var vt=1,Et=2,Ft=3,xt=4,le=1e-6;function cn(t){return"translate("+t+",0)"}function ln(t){return"translate(0,"+t+")"}function un(t){return n=>+t(n)}function dn(t,n){return n=Math.max(0,t.bandwidth()-n*2)/2,t.round()&&(n=Math.round(n)),r=>+t(r)+n}function hn(){return!this.__axis}function xe(t,n){var r=[],i=null,a=null,c=6,h=6,w=3,C=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=t===vt||t===xt?-1:1,T=t===xt||t===Et?"x":"y",L=t===vt||t===Ft?cn:ln;function D(_){var G=i??(n.ticks?n.ticks.apply(n,r):n.domain()),A=a??(n.tickFormat?n.tickFormat.apply(n,r):on),b=Math.max(c,0)+w,E=n.range(),Y=+E[0]+C,I=+E[E.length-1]+C,N=(n.bandwidth?dn:un)(n.copy(),C),z=_.selection?_.selection():_,V=z.selectAll(".domain").data([null]),W=z.selectAll(".tick").data(G,n).order(),m=W.exit(),v=W.enter().append("g").attr("class","tick"),x=W.select("line"),p=W.select("text");V=V.merge(V.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),W=W.merge(v),x=x.merge(v.append("line").attr("stroke","currentColor").attr(T+"2",S*c)),p=p.merge(v.append("text").attr("fill","currentColor").attr(T,S*b).attr("dy",t===vt?"0em":t===Ft?"0.71em":"0.32em")),_!==z&&(V=V.transition(_),W=W.transition(_),x=x.transition(_),p=p.transition(_),m=m.transition(_).attr("opacity",le).attr("transform",function(f){return isFinite(f=N(f))?L(f+C):this.getAttribute("transform")}),v.attr("opacity",le).attr("transform",function(f){var g=this.parentNode.__axis;return L((g&&isFinite(g=g(f))?g:N(f))+C)})),m.remove(),V.attr("d",t===xt||t===Et?h?"M"+S*h+","+Y+"H"+C+"V"+I+"H"+S*h:"M"+C+","+Y+"V"+I:h?"M"+Y+","+S*h+"V"+C+"H"+I+"V"+S*h:"M"+Y+","+C+"H"+I),W.attr("opacity",1).attr("transform",function(f){return L(N(f)+C)}),x.attr(T+"2",S*c),p.attr(T,S*b).text(A),z.filter(hn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Et?"start":t===xt?"end":"middle"),z.each(function(){this.__axis=N})}return D.scale=function(_){return arguments.length?(n=_,D):n},D.ticks=function(){return r=Array.from(arguments),D},D.tickArguments=function(_){return arguments.length?(r=_==null?[]:Array.from(_),D):r.slice()},D.tickValues=function(_){return arguments.length?(i=_==null?null:Array.from(_),D):i&&i.slice()},D.tickFormat=function(_){return arguments.length?(a=_,D):a},D.tickSize=function(_){return arguments.length?(c=h=+_,D):c},D.tickSizeInner=function(_){return arguments.length?(c=+_,D):c},D.tickSizeOuter=function(_){return arguments.length?(h=+_,D):h},D.tickPadding=function(_){return arguments.length?(w=+_,D):w},D.offset=function(_){return arguments.length?(C=+_,D):C},D}function fn(t){return xe(vt,t)}function yn(t){return xe(Ft,t)}const kn=Math.PI/180,mn=180/Math.PI,Dt=18,ve=.96422,Te=1,we=.82521,_e=4/29,ct=6/29,De=3*ct*ct,pn=ct*ct*ct;function Se(t){if(t instanceof K)return new K(t.l,t.a,t.b,t.opacity);if(t instanceof et)return $e(t);t instanceof me||(t=an(t));var n=It(t.r),r=It(t.g),i=It(t.b),a=At((.2225045*n+.7168786*r+.0606169*i)/Te),c,h;return n===r&&r===i?c=h=a:(c=At((.4360747*n+.3850649*r+.1430804*i)/ve),h=At((.0139322*n+.0971045*r+.7141733*i)/we)),new K(116*a-16,500*(c-a),200*(a-h),t.opacity)}function gn(t,n,r,i){return arguments.length===1?Se(t):new K(t,n,r,i??1)}function K(t,n,r,i){this.l=+t,this.a=+n,this.b=+r,this.opacity=+i}pe(K,gn,ge(be,{brighter(t){return new K(this.l+Dt*(t??1),this.a,this.b,this.opacity)},darker(t){return new K(this.l-Dt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return n=ve*Lt(n),t=Te*Lt(t),r=we*Lt(r),new me(Yt(3.1338561*n-1.6168667*t-.4906146*r),Yt(-.9787684*n+1.9161415*t+.033454*r),Yt(.0719453*n-.2289914*t+1.4052427*r),this.opacity)}}));function At(t){return t>pn?Math.pow(t,1/3):t/De+_e}function Lt(t){return t>ct?t*t*t:De*(t-_e)}function Yt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function It(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function bn(t){if(t instanceof et)return new et(t.h,t.c,t.l,t.opacity);if(t instanceof K||(t=Se(t)),t.a===0&&t.b===0)return new et(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*mn;return new et(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Ot(t,n,r,i){return arguments.length===1?bn(t):new et(t,n,r,i??1)}function et(t,n,r,i){this.h=+t,this.c=+n,this.l=+r,this.opacity=+i}function $e(t){if(isNaN(t.h))return new K(t.l,0,0,t.opacity);var n=t.h*kn;return new K(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}pe(et,Ot,ge(be,{brighter(t){return new et(this.h,this.c,this.l+Dt*(t??1),this.opacity)},darker(t){return new et(this.h,this.c,this.l-Dt*(t??1),this.opacity)},rgb(){return $e(this).rgb()}}));function xn(t){return function(n,r){var i=t((n=Ot(n)).h,(r=Ot(r)).h),a=Mt(n.c,r.c),c=Mt(n.l,r.l),h=Mt(n.opacity,r.opacity);return function(w){return n.h=i(w),n.c=a(w),n.l=c(w),n.opacity=h(w),n+""}}}const vn=xn(sn);var Wt={exports:{}},Tn=Wt.exports,ue;function wn(){return ue||(ue=1,function(t,n){(function(r,i){t.exports=i()})(Tn,function(){var r="day";return function(i,a,c){var h=function(S){return S.add(4-S.isoWeekday(),r)},w=a.prototype;w.isoWeekYear=function(){return h(this).year()},w.isoWeek=function(S){if(!this.$utils().u(S))return this.add(7*(S-this.isoWeek()),r);var T,L,D,_,G=h(this),A=(T=this.isoWeekYear(),L=this.$u,D=(L?c.utc:c)().year(T).startOf("year"),_=4-D.isoWeekday(),D.isoWeekday()>4&&(_+=7),D.add(_,r));return G.diff(A,"week")+1},w.isoWeekday=function(S){return this.$utils().u(S)?this.day()||7:this.day(this.day()%7?S:S-7)};var C=w.startOf;w.startOf=function(S,T){var L=this.$utils(),D=!!L.u(T)||T;return L.p(S)==="isoweek"?D?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):C.bind(this)(S,T)}}})}(Wt)),Wt.exports}var _n=wn();const Dn=qt(_n);var Pt={exports:{}},Sn=Pt.exports,de;function $n(){return de||(de=1,function(t,n){(function(r,i){t.exports=i()})(Sn,function(){var r={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"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,c=/\d\d/,h=/\d\d?/,w=/\d*[^-_:/,()\s\d]+/,C={},S=function(b){return(b=+b)+(b>68?1900:2e3)},T=function(b){return function(E){this[b]=+E}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(E){if(!E||E==="Z")return 0;var Y=E.match(/([+-]|\d\d)/g),I=60*Y[1]+(+Y[2]||0);return I===0?0:Y[0]==="+"?-I:I}(b)}],D=function(b){var E=C[b];return E&&(E.indexOf?E:E.s.concat(E.f))},_=function(b,E){var Y,I=C.meridiem;if(I){for(var N=1;N<=24;N+=1)if(b.indexOf(I(N,0,E))>-1){Y=N>12;break}}else Y=b===(E?"pm":"PM");return Y},G={A:[w,function(b){this.afternoon=_(b,!1)}],a:[w,function(b){this.afternoon=_(b,!0)}],Q:[a,function(b){this.month=3*(b-1)+1}],S:[a,function(b){this.milliseconds=100*+b}],SS:[c,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[h,T("seconds")],ss:[h,T("seconds")],m:[h,T("minutes")],mm:[h,T("minutes")],H:[h,T("hours")],h:[h,T("hours")],HH:[h,T("hours")],hh:[h,T("hours")],D:[h,T("day")],DD:[c,T("day")],Do:[w,function(b){var E=C.ordinal,Y=b.match(/\d+/);if(this.day=Y[0],E)for(var I=1;I<=31;I+=1)E(I).replace(/\[|\]/g,"")===b&&(this.day=I)}],w:[h,T("week")],ww:[c,T("week")],M:[h,T("month")],MM:[c,T("month")],MMM:[w,function(b){var E=D("months"),Y=(D("monthsShort")||E.map(function(I){return I.slice(0,3)})).indexOf(b)+1;if(Y<1)throw new Error;this.month=Y%12||Y}],MMMM:[w,function(b){var E=D("months").indexOf(b)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,T("year")],YY:[c,function(b){this.year=S(b)}],YYYY:[/\d{4}/,T("year")],Z:L,ZZ:L};function A(b){var E,Y;E=b,Y=C&&C.formats;for(var I=(b=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,p,f){var g=f&&f.toUpperCase();return p||Y[f]||r[f]||Y[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(o,d,l){return d||l.slice(1)})})).match(i),N=I.length,z=0;z<N;z+=1){var V=I[z],W=G[V],m=W&&W[0],v=W&&W[1];I[z]=v?{regex:m,parser:v}:V.replace(/^\[|\]$/g,"")}return function(x){for(var p={},f=0,g=0;f<N;f+=1){var o=I[f];if(typeof o=="string")g+=o.length;else{var d=o.regex,l=o.parser,k=x.slice(g),e=d.exec(k)[0];l.call(p,e),x=x.replace(e,"")}}return function(y){var s=y.afternoon;if(s!==void 0){var M=y.hours;s?M<12&&(y.hours+=12):M===12&&(y.hours=0),delete y.afternoon}}(p),p}}return function(b,E,Y){Y.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(S=b.parseTwoDigitYear);var I=E.prototype,N=I.parse;I.parse=function(z){var V=z.date,W=z.utc,m=z.args;this.$u=W;var v=m[1];if(typeof v=="string"){var x=m[2]===!0,p=m[3]===!0,f=x||p,g=m[2];p&&(g=m[2]),C=this.$locale(),!x&&g&&(C=Y.Ls[g]),this.$d=function(k,e,y,s){try{if(["x","X"].indexOf(e)>-1)return new Date((e==="X"?1e3:1)*k);var M=A(e)(k),$=M.year,O=M.month,F=M.day,dt=M.hours,P=M.minutes,J=M.seconds,ht=M.milliseconds,at=M.zone,pt=M.week,ft=new Date,st=F||($||O?1:ft.getDate()),q=$||ft.getFullYear(),U=0;$&&!O||(U=O>0?O-1:ft.getMonth());var B,rt=dt||0,Q=P||0,nt=J||0,j=ht||0;return at?new Date(Date.UTC(q,U,st,rt,Q,nt,j+60*at.offset*1e3)):y?new Date(Date.UTC(q,U,st,rt,Q,nt,j)):(B=new Date(q,U,st,rt,Q,nt,j),pt&&(B=s(B).week(pt).toDate()),B)}catch{return new Date("")}}(V,v,W,Y),this.init(),g&&g!==!0&&(this.$L=this.locale(g).$L),f&&V!=this.format(v)&&(this.$d=new Date("")),C={}}else if(v instanceof Array)for(var o=v.length,d=1;d<=o;d+=1){m[1]=v[d-1];var l=Y.apply(this,m);if(l.isValid()){this.$d=l.$d,this.$L=l.$L,this.init();break}d===o&&(this.$d=new Date(""))}else N.call(this,z)}}})}(Pt)),Pt.exports}var Cn=$n();const Mn=qt(Cn);var zt={exports:{}},En=zt.exports,he;function An(){return he||(he=1,function(t,n){(function(r,i){t.exports=i()})(En,function(){return function(r,i){var a=i.prototype,c=a.format;a.format=function(h){var w=this,C=this.$locale();if(!this.isValid())return c.bind(this)(h);var S=this.$utils(),T=(h||"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(L){switch(L){case"Q":return Math.ceil((w.$M+1)/3);case"Do":return C.ordinal(w.$D);case"gggg":return w.weekYear();case"GGGG":return w.isoWeekYear();case"wo":return C.ordinal(w.week(),"W");case"w":case"ww":return S.s(w.week(),L==="w"?1:2,"0");case"W":case"WW":return S.s(w.isoWeek(),L==="W"?1:2,"0");case"k":case"kk":return S.s(String(w.$H===0?24:w.$H),L==="k"?1:2,"0");case"X":return Math.floor(w.$d.getTime()/1e3);case"x":return w.$d.getTime();case"z":return"["+w.offsetName()+"]";case"zzz":return"["+w.offsetName("long")+"]";default:return L}});return c.bind(this)(T)}}})}(zt)),zt.exports}var Ln=An();const Yn=qt(Ln);var Nt=function(){var t=u(function(g,o,d,l){for(d=d||{},l=g.length;l--;d[g[l]]=o);return d},"o"),n=[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],r=[1,26],i=[1,27],a=[1,28],c=[1,29],h=[1,30],w=[1,31],C=[1,32],S=[1,33],T=[1,34],L=[1,9],D=[1,10],_=[1,11],G=[1,12],A=[1,13],b=[1,14],E=[1,15],Y=[1,16],I=[1,19],N=[1,20],z=[1,21],V=[1,22],W=[1,23],m=[1,25],v=[1,35],x={trace:u(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:u(function(g,o,d,l,k,e,y){var s=e.length-1;switch(k){case 1:return e[s-1];case 2:this.$=[];break;case 3:e[s-1].push(e[s]),this.$=e[s-1];break;case 4:case 5:this.$=e[s];break;case 6:case 7:this.$=[];break;case 8:l.setWeekday("monday");break;case 9:l.setWeekday("tuesday");break;case 10:l.setWeekday("wednesday");break;case 11:l.setWeekday("thursday");break;case 12:l.setWeekday("friday");break;case 13:l.setWeekday("saturday");break;case 14:l.setWeekday("sunday");break;case 15:l.setWeekend("friday");break;case 16:l.setWeekend("saturday");break;case 17:l.setDateFormat(e[s].substr(11)),this.$=e[s].substr(11);break;case 18:l.enableInclusiveEndDates(),this.$=e[s].substr(18);break;case 19:l.TopAxis(),this.$=e[s].substr(8);break;case 20:l.setAxisFormat(e[s].substr(11)),this.$=e[s].substr(11);break;case 21:l.setTickInterval(e[s].substr(13)),this.$=e[s].substr(13);break;case 22:l.setExcludes(e[s].substr(9)),this.$=e[s].substr(9);break;case 23:l.setIncludes(e[s].substr(9)),this.$=e[s].substr(9);break;case 24:l.setTodayMarker(e[s].substr(12)),this.$=e[s].substr(12);break;case 27:l.setDiagramTitle(e[s].substr(6)),this.$=e[s].substr(6);break;case 28:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 29:case 30:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 31:l.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 33:l.addTask(e[s-1],e[s]),this.$="task";break;case 34:this.$=e[s-1],l.setClickEvent(e[s-1],e[s],null);break;case 35:this.$=e[s-2],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 36:this.$=e[s-2],l.setClickEvent(e[s-2],e[s-1],null),l.setLink(e[s-2],e[s]);break;case 37:this.$=e[s-3],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setLink(e[s-3],e[s]);break;case 38:this.$=e[s-2],l.setClickEvent(e[s-2],e[s],null),l.setLink(e[s-2],e[s-1]);break;case 39:this.$=e[s-3],l.setClickEvent(e[s-3],e[s-1],e[s]),l.setLink(e[s-3],e[s-2]);break;case 40:this.$=e[s-1],l.setLink(e[s-1],e[s]);break;case 41:case 47:this.$=e[s-1]+" "+e[s];break;case 42:case 43:case 45:this.$=e[s-2]+" "+e[s-1]+" "+e[s];break;case 44:case 46:this.$=e[s-3]+" "+e[s-2]+" "+e[s-1]+" "+e[s];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:a,15:c,16:h,17:w,18:C,19:18,20:S,21:T,22:L,23:D,24:_,25:G,26:A,27:b,28:E,29:Y,30:I,31:N,33:z,35:V,36:W,37:24,38:m,40:v},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:36,11:17,12:r,13:i,14:a,15:c,16:h,17:w,18:C,19:18,20:S,21:T,22:L,23:D,24:_,25:G,26:A,27:b,28:E,29:Y,30:I,31:N,33:z,35:V,36:W,37:24,38:m,40:v},t(n,[2,5]),t(n,[2,6]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,20]),t(n,[2,21]),t(n,[2,22]),t(n,[2,23]),t(n,[2,24]),t(n,[2,25]),t(n,[2,26]),t(n,[2,27]),{32:[1,37]},{34:[1,38]},t(n,[2,30]),t(n,[2,31]),t(n,[2,32]),{39:[1,39]},t(n,[2,8]),t(n,[2,9]),t(n,[2,10]),t(n,[2,11]),t(n,[2,12]),t(n,[2,13]),t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),{41:[1,40],43:[1,41]},t(n,[2,4]),t(n,[2,28]),t(n,[2,29]),t(n,[2,33]),t(n,[2,34],{42:[1,42],43:[1,43]}),t(n,[2,40],{41:[1,44]}),t(n,[2,35],{43:[1,45]}),t(n,[2,36]),t(n,[2,38],{42:[1,46]}),t(n,[2,37]),t(n,[2,39])],defaultActions:{},parseError:u(function(g,o){if(o.recoverable)this.trace(g);else{var d=new Error(g);throw d.hash=o,d}},"parseError"),parse:u(function(g){var o=this,d=[0],l=[],k=[null],e=[],y=this.table,s="",M=0,$=0,O=2,F=1,dt=e.slice.call(arguments,1),P=Object.create(this.lexer),J={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&(J.yy[ht]=this.yy[ht]);P.setInput(g,J.yy),J.yy.lexer=P,J.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var at=P.yylloc;e.push(at);var pt=P.options&&P.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(X){d.length=d.length-2*X,k.length=k.length-X,e.length=e.length-X}u(ft,"popStack");function st(){var X;return X=l.pop()||P.lex()||F,typeof X!="number"&&(X instanceof Array&&(l=X,X=l.pop()),X=o.symbols_[X]||X),X}u(st,"lex");for(var q,U,B,rt,Q={},nt,j,ee,gt;;){if(U=d[d.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((q===null||typeof q>"u")&&(q=st()),B=y[U]&&y[U][q]),typeof B>"u"||!B.length||!B[0]){var Ct="";gt=[];for(nt in y[U])this.terminals_[nt]&&nt>O&&gt.push("'"+this.terminals_[nt]+"'");P.showPosition?Ct="Parse error on line "+(M+1)+`:
2
2
  `+P.showPosition()+`
3
3
  Expecting `+gt.join(", ")+", got '"+(this.terminals_[q]||q)+"'":Ct="Parse error on line "+(M+1)+": Unexpected "+(q==F?"end of input":"'"+(this.terminals_[q]||q)+"'"),this.parseError(Ct,{text:P.match,token:this.terminals_[q]||q,line:P.yylineno,loc:at,expected:gt})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+q);switch(B[0]){case 1:d.push(q),k.push(P.yytext),e.push(P.yylloc),d.push(B[1]),q=null,$=P.yyleng,s=P.yytext,M=P.yylineno,at=P.yylloc;break;case 2:if(j=this.productions_[B[1]][1],Q.$=k[k.length-j],Q._$={first_line:e[e.length-(j||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(j||1)].first_column,last_column:e[e.length-1].last_column},pt&&(Q._$.range=[e[e.length-(j||1)].range[0],e[e.length-1].range[1]]),rt=this.performAction.apply(Q,[s,$,M,J.yy,B[1],k,e].concat(dt)),typeof rt<"u")return rt;j&&(d=d.slice(0,-1*j*2),k=k.slice(0,-1*j),e=e.slice(0,-1*j)),d.push(this.productions_[B[1]][0]),k.push(Q.$),e.push(Q._$),ee=y[d[d.length-2]][d[d.length-1]],d.push(ee);break;case 3:return!0}}return!0},"parse")},p=function(){var g={EOF:1,parseError:u(function(o,d){if(this.yy.parser)this.yy.parser.parseError(o,d);else throw new Error(o)},"parseError"),setInput:u(function(o,d){return this.yy=d||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var d=o.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:u(function(o){var d=o.length,l=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var k=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),l.length-1&&(this.yylineno-=l.length-1);var e=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:l?(l.length===k.length?this.yylloc.first_column:0)+k[k.length-l.length].length-l[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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:u(function(o){this.unput(this.match.slice(o))},"less"),pastInput:u(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var o=this.pastInput(),d=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{m as Q}from"./chunk-4BX2VUAB-BeuiUsbc-DN2rdYji.js";import{e as X}from"./chunk-QZHKN3VN-C6_I39By-ZQp0I6tE.js";import{R as m,r as Z,o as rr,f as tr,u as er,l as or,s as nr,O as w,g as cr,e as ar,n as sr,E as ir,w as dr,x as k,H as hr,J as $r,L as mr,M as lr}from"./index-p0knuDQ9.js";import{N as yr}from"./treemap-KMMF4GRG-C4GHjB3F-_nPgBK22.js";import"./_baseUniq-Cd4llU-Q-Cdw60MU4.js";import"./_basePickBy-1MakYQmz-ydNwd1l_.js";import"./clone-DH1Kq5Y6-DxQT_fR1.js";var f={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},gr=mr.gitGraph,O=m(()=>hr({...gr,...$r().gitGraph}),"getConfig"),i=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 N(){return lr({length:7})}m(N,"getID");function _(t,r){const e=Object.create(null);return t.reduce((c,a)=>{const s=r(a);return e[s]||(e[s]=!0,c.push(a)),c},[])}m(_,"uniqBy");var pr=m(function(t){i.records.direction=t},"setDirection"),ur=m(function(t){w.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),xr=m(function(){return i.records.options},"getOptions"),fr=m(function(t){let r=t.msg,e=t.id;const c=t.type;let a=t.tags;w.info("commit",r,e,c,a),w.debug("Entering commit:",r,e,c,a);const s=O();e=k.sanitizeText(e,s),r=k.sanitizeText(r,s),a=a==null?void 0:a.map(h=>k.sanitizeText(h,s));const d={id:e||i.records.seq+"-"+N(),message:r,seq:i.records.seq++,type:c??f.NORMAL,tags:a??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=d,w.info("main branch",s.mainBranchName),i.records.commits.has(d.id)&&w.warn(`Commit ID ${d.id} already exists`),i.records.commits.set(d.id,d),i.records.branches.set(i.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()),i.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}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.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 c=t.type,a=t.tags,s=O();r=k.sanitizeText(r,s),e&&(e=k.sanitizeText(e,s));const d=i.records.branches.get(i.records.currBranch),h=i.records.branches.get(r),l=d?i.records.commits.get(d):void 0,o=h?i.records.commits.get(h):void 0;if(l&&o&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.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 (${i.records.currBranch})has no commits`);throw $.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},$}if(!i.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&&i.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} ${c} ${a==null?void 0:a.join(" ")}`,token:`merge ${r} ${e} ${c} ${a==null?void 0:a.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${c} ${a==null?void 0:a.join(" ")}`]},$}const n=h||"",x={id:e||`${i.records.seq}-${N()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,n],branch:i.records.currBranch,type:f.MERGE,customType:c,customId:!!e,tags:a??[]};i.records.head=x,i.records.commits.set(x.id,x),i.records.branches.set(i.records.currBranch,x.id),w.debug(i.records.branches),w.debug("in mergeBranch")},"merge"),Br=m(function(t){let r=t.id,e=t.targetId,c=t.tags,a=t.parent;w.debug("Entering cherryPick:",r,e,c);const s=O();if(r=k.sanitizeText(r,s),e=k.sanitizeText(e,s),c=c==null?void 0:c.map(l=>k.sanitizeText(l,s)),a=k.sanitizeText(a,s),!r||!i.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=i.records.commits.get(r);if(d===void 0||!d)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(a&&!(Array.isArray(d.parents)&&d.parents.includes(a)))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&&!a)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||!i.records.commits.has(e)){if(h===i.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=i.records.branches.get(i.records.currBranch);if(l===void 0||!l){const x=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw x.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},x}const o=i.records.commits.get(l);if(o===void 0||!o){const x=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw x.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},x}const n={id:i.records.seq+"-"+N(),message:`cherry-picked ${d==null?void 0:d.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,d.id],branch:i.records.currBranch,type:f.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${d.id}${d.type===f.MERGE?`|parent:${a}`:""}`]};i.records.head=n,i.records.commits.set(n.id,n),i.records.branches.set(i.records.currBranch,n.id),w.debug(i.records.branches),w.debug("in cherryPick")}},"cherryPick"),F=m(function(t){if(t=k.sanitizeText(t,O()),i.records.branches.has(t)){i.records.currBranch=t;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.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 c=t.indexOf(r);c===-1?t.push(e):t.splice(c,1,e)}m(D,"upsert");function W(t){const r=t.reduce((a,s)=>a.seq>s.seq?a:s,t[0]);let e="";t.forEach(function(a){a===r?e+=" *":e+=" |"});const c=[e,r.id,r.seq];for(const a in i.records.branches)i.records.branches.get(a)===r.id&&c.push(a);if(w.debug(c.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const a=i.records.commits.get(r.parents[0]);D(t,r,a),r.parents[1]&&t.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const a=i.records.commits.get(r.parents[0]);D(t,r,a)}}t=_(t,a=>a.id),W(t)}m(W,"prettyPrintCommitHistory");var Er=m(function(){w.debug(i.records.commits);const t=Y()[0];W([t])},"prettyPrint"),vr=m(function(){i.reset(),dr()},"clear"),Cr=m(function(){return[...i.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 i.records.branches},"getBranches"),Lr=m(function(){return i.records.commits},"getCommits"),Y=m(function(){const t=[...i.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 i.records.currBranch},"getCurrentBranch"),Mr=m(function(){return i.records.direction},"getDirection"),Rr=m(function(){return i.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:Rr,setAccTitle:nr,getAccTitle:or,getAccDescription:er,setAccDescription:tr,setDiagramTitle:rr,getDiagramTitle:Z},Pr=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(c=>r.commit(Ar(c)),"Commit"),Branch:m(c=>r.branch(Gr(c)),"Branch"),Merge:m(c=>r.merge(Or(c)),"Merge"),Checkout:m(c=>r.checkout(qr(c)),"Checkout"),CherryPicking:m(c=>r.cherryPick(Hr(c)),"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"),Hr=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"),zr={parse:m(async t=>{const r=await yr("gitGraph",t);w.debug(r),Pr(r,V)},"parse")},j=cr(),E=j==null?void 0:j.gitGraph,I=10,A=40,L=4,M=2,G=8,v=new Map,C=new Map,z=30,q=new Map,S=[],P=0,u="LR",Sr=m(()=>{v.clear(),C.clear(),q.clear(),P=0,S=[],u="LR"},"clear"),J=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 c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class","row"),c.textContent=e.trim(),r.appendChild(c)}),r},"drawText"),U=m(t=>{let r,e,c;return u==="BT"?(e=m((a,s)=>a<=s,"comparisonFunc"),c=1/0):(e=m((a,s)=>a>=s,"comparisonFunc"),c=0),t.forEach(a=>{var s,d;const h=u==="TB"||u=="BT"?(s=C.get(a))==null?void 0:s.y:(d=C.get(a))==null?void 0:d.x;h!==void 0&&e(h,c)&&(r=a,c=h)}),r},"findClosestParent"),Nr=m(t=>{let r="",e=1/0;return t.forEach(c=>{const a=C.get(c).y;a<=e&&(r=c,e=a)}),r||void 0},"findClosestParentBT"),Dr=m((t,r,e)=>{let c=e,a=e;const s=[];t.forEach(d=>{const h=r.get(d);if(!h)throw new Error(`Commit not found for key ${d}`);h.parents.length?(c=jr(h),a=Math.max(c,a)):s.push(h),Kr(h,c)}),c=a,s.forEach(d=>{_r(d,c,e)}),t.forEach(d=>{const h=r.get(d);if(h!=null&&h.parents.length){const l=Nr(h.parents);c=C.get(l).y-A,c<=a&&(a=c);const o=v.get(h.branch).pos,n=c-I;C.set(h.id,{x:o,y:n})}})},"setParallelBTPos"),Wr=m(t=>{var r;const e=U(t.parents.filter(a=>a!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const c=(r=C.get(e))==null?void 0:r.y;if(c===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return c},"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 c=e.pos,a=r+I;return C.set(t.id,{x:c,y:a}),{x:c,y:a}},"setCommitPosition"),_r=m((t,r,e)=>{const c=v.get(t.branch);if(!c)throw new Error(`Branch not found for commit ${t.id}`);const a=r+e,s=c.pos;C.set(t.id,{x:s,y:a})},"setRootPosition"),Fr=m((t,r,e,c,a,s)=>{if(s===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${a%G} ${c}-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${a%G} ${c}-inner`);else if(s===f.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",10).attr("class",`commit ${r.id} ${c}`),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} ${c}`),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} ${c}`),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} ${c}`),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} ${c}`);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${a%G}`),s===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 ${c} ${r.id} commit${a%G}`)}s===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 ${c} ${r.id} commit${a%G}`)}},"drawCommitBullet"),Yr=m((t,r,e,c)=>{var a;if(r.type!==f.CHERRY_PICK&&(r.customId&&r.type===f.MERGE||r.type!==f.MERGE)&&E!=null&&E.showCommitLabel){const s=t.append("g"),d=s.insert("rect").attr("class","commit-label-bkg"),h=s.append("text").attr("x",c).attr("y",e.y+25).attr("class","commit-label").text(r.id),l=(a=h.node())==null?void 0:a.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;s.attr("transform","translate("+o+", "+n+") rotate(-45, "+c+", "+e.y+")")}}},"drawCommitLabel"),Vr=m((t,r,e,c)=>{var a;if(r.tags.length>0){let s=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-s).attr("class","tag-label").text(o),y=(a=$.node())==null?void 0:a.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:s}),s+=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",`
1
+ import{m as Q}from"./chunk-4BX2VUAB-BeuiUsbc-CyOuPrI8.js";import{e as X}from"./chunk-QZHKN3VN-C6_I39By-Cz33_PSG.js";import{R as m,r as Z,o as rr,f as tr,u as er,l as or,s as nr,O as w,g as cr,e as ar,n as sr,E as ir,w as dr,x as k,H as hr,J as $r,L as mr,M as lr}from"./index-CFYhtZ1e.js";import{N as yr}from"./treemap-KMMF4GRG-C4GHjB3F-B6RJ9b4F.js";import"./_baseUniq-Cd4llU-Q-CsIxZURF.js";import"./_basePickBy-1MakYQmz-BAhRsHXC.js";import"./clone-DH1Kq5Y6-Ba-lUtme.js";var f={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},gr=mr.gitGraph,O=m(()=>hr({...gr,...$r().gitGraph}),"getConfig"),i=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 N(){return lr({length:7})}m(N,"getID");function _(t,r){const e=Object.create(null);return t.reduce((c,a)=>{const s=r(a);return e[s]||(e[s]=!0,c.push(a)),c},[])}m(_,"uniqBy");var pr=m(function(t){i.records.direction=t},"setDirection"),ur=m(function(t){w.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),xr=m(function(){return i.records.options},"getOptions"),fr=m(function(t){let r=t.msg,e=t.id;const c=t.type;let a=t.tags;w.info("commit",r,e,c,a),w.debug("Entering commit:",r,e,c,a);const s=O();e=k.sanitizeText(e,s),r=k.sanitizeText(r,s),a=a==null?void 0:a.map(h=>k.sanitizeText(h,s));const d={id:e||i.records.seq+"-"+N(),message:r,seq:i.records.seq++,type:c??f.NORMAL,tags:a??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=d,w.info("main branch",s.mainBranchName),i.records.commits.has(d.id)&&w.warn(`Commit ID ${d.id} already exists`),i.records.commits.set(d.id,d),i.records.branches.set(i.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()),i.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}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.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 c=t.type,a=t.tags,s=O();r=k.sanitizeText(r,s),e&&(e=k.sanitizeText(e,s));const d=i.records.branches.get(i.records.currBranch),h=i.records.branches.get(r),l=d?i.records.commits.get(d):void 0,o=h?i.records.commits.get(h):void 0;if(l&&o&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.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 (${i.records.currBranch})has no commits`);throw $.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},$}if(!i.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&&i.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} ${c} ${a==null?void 0:a.join(" ")}`,token:`merge ${r} ${e} ${c} ${a==null?void 0:a.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${c} ${a==null?void 0:a.join(" ")}`]},$}const n=h||"",x={id:e||`${i.records.seq}-${N()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,n],branch:i.records.currBranch,type:f.MERGE,customType:c,customId:!!e,tags:a??[]};i.records.head=x,i.records.commits.set(x.id,x),i.records.branches.set(i.records.currBranch,x.id),w.debug(i.records.branches),w.debug("in mergeBranch")},"merge"),Br=m(function(t){let r=t.id,e=t.targetId,c=t.tags,a=t.parent;w.debug("Entering cherryPick:",r,e,c);const s=O();if(r=k.sanitizeText(r,s),e=k.sanitizeText(e,s),c=c==null?void 0:c.map(l=>k.sanitizeText(l,s)),a=k.sanitizeText(a,s),!r||!i.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=i.records.commits.get(r);if(d===void 0||!d)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(a&&!(Array.isArray(d.parents)&&d.parents.includes(a)))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&&!a)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||!i.records.commits.has(e)){if(h===i.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=i.records.branches.get(i.records.currBranch);if(l===void 0||!l){const x=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw x.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},x}const o=i.records.commits.get(l);if(o===void 0||!o){const x=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw x.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},x}const n={id:i.records.seq+"-"+N(),message:`cherry-picked ${d==null?void 0:d.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,d.id],branch:i.records.currBranch,type:f.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${d.id}${d.type===f.MERGE?`|parent:${a}`:""}`]};i.records.head=n,i.records.commits.set(n.id,n),i.records.branches.set(i.records.currBranch,n.id),w.debug(i.records.branches),w.debug("in cherryPick")}},"cherryPick"),F=m(function(t){if(t=k.sanitizeText(t,O()),i.records.branches.has(t)){i.records.currBranch=t;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.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 c=t.indexOf(r);c===-1?t.push(e):t.splice(c,1,e)}m(D,"upsert");function W(t){const r=t.reduce((a,s)=>a.seq>s.seq?a:s,t[0]);let e="";t.forEach(function(a){a===r?e+=" *":e+=" |"});const c=[e,r.id,r.seq];for(const a in i.records.branches)i.records.branches.get(a)===r.id&&c.push(a);if(w.debug(c.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const a=i.records.commits.get(r.parents[0]);D(t,r,a),r.parents[1]&&t.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const a=i.records.commits.get(r.parents[0]);D(t,r,a)}}t=_(t,a=>a.id),W(t)}m(W,"prettyPrintCommitHistory");var Er=m(function(){w.debug(i.records.commits);const t=Y()[0];W([t])},"prettyPrint"),vr=m(function(){i.reset(),dr()},"clear"),Cr=m(function(){return[...i.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 i.records.branches},"getBranches"),Lr=m(function(){return i.records.commits},"getCommits"),Y=m(function(){const t=[...i.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 i.records.currBranch},"getCurrentBranch"),Mr=m(function(){return i.records.direction},"getDirection"),Rr=m(function(){return i.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:Rr,setAccTitle:nr,getAccTitle:or,getAccDescription:er,setAccDescription:tr,setDiagramTitle:rr,getDiagramTitle:Z},Pr=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(c=>r.commit(Ar(c)),"Commit"),Branch:m(c=>r.branch(Gr(c)),"Branch"),Merge:m(c=>r.merge(Or(c)),"Merge"),Checkout:m(c=>r.checkout(qr(c)),"Checkout"),CherryPicking:m(c=>r.cherryPick(Hr(c)),"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"),Hr=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"),zr={parse:m(async t=>{const r=await yr("gitGraph",t);w.debug(r),Pr(r,V)},"parse")},j=cr(),E=j==null?void 0:j.gitGraph,I=10,A=40,L=4,M=2,G=8,v=new Map,C=new Map,z=30,q=new Map,S=[],P=0,u="LR",Sr=m(()=>{v.clear(),C.clear(),q.clear(),P=0,S=[],u="LR"},"clear"),J=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 c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class","row"),c.textContent=e.trim(),r.appendChild(c)}),r},"drawText"),U=m(t=>{let r,e,c;return u==="BT"?(e=m((a,s)=>a<=s,"comparisonFunc"),c=1/0):(e=m((a,s)=>a>=s,"comparisonFunc"),c=0),t.forEach(a=>{var s,d;const h=u==="TB"||u=="BT"?(s=C.get(a))==null?void 0:s.y:(d=C.get(a))==null?void 0:d.x;h!==void 0&&e(h,c)&&(r=a,c=h)}),r},"findClosestParent"),Nr=m(t=>{let r="",e=1/0;return t.forEach(c=>{const a=C.get(c).y;a<=e&&(r=c,e=a)}),r||void 0},"findClosestParentBT"),Dr=m((t,r,e)=>{let c=e,a=e;const s=[];t.forEach(d=>{const h=r.get(d);if(!h)throw new Error(`Commit not found for key ${d}`);h.parents.length?(c=jr(h),a=Math.max(c,a)):s.push(h),Kr(h,c)}),c=a,s.forEach(d=>{_r(d,c,e)}),t.forEach(d=>{const h=r.get(d);if(h!=null&&h.parents.length){const l=Nr(h.parents);c=C.get(l).y-A,c<=a&&(a=c);const o=v.get(h.branch).pos,n=c-I;C.set(h.id,{x:o,y:n})}})},"setParallelBTPos"),Wr=m(t=>{var r;const e=U(t.parents.filter(a=>a!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const c=(r=C.get(e))==null?void 0:r.y;if(c===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return c},"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 c=e.pos,a=r+I;return C.set(t.id,{x:c,y:a}),{x:c,y:a}},"setCommitPosition"),_r=m((t,r,e)=>{const c=v.get(t.branch);if(!c)throw new Error(`Branch not found for commit ${t.id}`);const a=r+e,s=c.pos;C.set(t.id,{x:s,y:a})},"setRootPosition"),Fr=m((t,r,e,c,a,s)=>{if(s===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${a%G} ${c}-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${a%G} ${c}-inner`);else if(s===f.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",10).attr("class",`commit ${r.id} ${c}`),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} ${c}`),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} ${c}`),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} ${c}`),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} ${c}`);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${a%G}`),s===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 ${c} ${r.id} commit${a%G}`)}s===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 ${c} ${r.id} commit${a%G}`)}},"drawCommitBullet"),Yr=m((t,r,e,c)=>{var a;if(r.type!==f.CHERRY_PICK&&(r.customId&&r.type===f.MERGE||r.type!==f.MERGE)&&E!=null&&E.showCommitLabel){const s=t.append("g"),d=s.insert("rect").attr("class","commit-label-bkg"),h=s.append("text").attr("x",c).attr("y",e.y+25).attr("class","commit-label").text(r.id),l=(a=h.node())==null?void 0:a.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;s.attr("transform","translate("+o+", "+n+") rotate(-45, "+c+", "+e.y+")")}}},"drawCommitLabel"),Vr=m((t,r,e,c)=>{var a;if(r.tags.length>0){let s=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-s).attr("class","tag-label").text(o),y=(a=$.node())==null?void 0:a.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:s}),s+=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
2
  ${c-d/2-L/2},${p+M}
3
3
  ${c-d/2-L/2},${p-M}
4
4
  ${e.posWithOffset-d/2-L},${p-y-M}
@@ -1 +1 @@
1
- import{aN as g,bi as v,aE as y,bj as L,bk as b}from"./index-p0knuDQ9.js";import{d as _,_ as p,$ as a,S as l,E as f,I as N,P as j,O as P}from"./_baseUniq-Cd4llU-Q-Cdw60MU4.js";var D=y(function(o){return j(P(o,1,L,!0))}),F="\0",d="\0",C="";class E{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=g(void 0),this._defaultEdgeLabelFn=g(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[d]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return v(t)||(t=g(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var t=this;return p(this.nodes(),function(e){return b(t._in[e])})}sinks(){var t=this;return p(this.nodes(),function(e){return b(t._out[e])})}setNodes(t,e){var s=arguments,r=this;return a(t,function(i){s.length>1?r.setNode(i,e):r.setNode(i)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=d,this._children[t]={},this._children[d][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],a(this.children(t),s=>{this.setParent(s)}),delete this._children[t]),a(_(this._in[t]),e),delete this._in[t],delete this._preds[t],a(_(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(e))e=d;else{e+="";for(var s=e;!l(s);s=this.parent(s))if(s===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==d)return e}}children(t){if(l(t)&&(t=d),this._isCompound){var e=this._children[t];if(e)return _(e)}else{if(t===d)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return _(e)}successors(t){var e=this._sucs[t];if(e)return _(e)}neighbors(t){var e=this.predecessors(t);if(e)return D(e,this.successors(t))}isLeaf(t){var e;return this.isDirected()?e=this.successors(t):e=this.neighbors(t),e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var s=this;a(this._nodes,function(n,h){t(h)&&e.setNode(h,n)}),a(this._edgeObjs,function(n){e.hasNode(n.v)&&e.hasNode(n.w)&&e.setEdge(n,s.edge(n))});var r={};function i(n){var h=s.parent(n);return h===void 0||e.hasNode(h)?(r[n]=h,h):h in r?r[h]:i(h)}return this._isCompound&&a(e.nodes(),function(n){e.setParent(n,i(n))}),e}setDefaultEdgeLabel(t){return v(t)||(t=g(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return f(this._edgeObjs)}setPath(t,e){var s=this,r=arguments;return N(t,function(i,n){return r.length>1?s.setEdge(i,n,e):s.setEdge(i,n),n}),this}setEdge(){var t,e,s,r,i=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(t=n.v,e=n.w,s=n.name,arguments.length===2&&(r=arguments[1],i=!0)):(t=n,e=arguments[1],s=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),t=""+t,e=""+e,l(s)||(s=""+s);var h=c(this._isDirected,t,e,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return i&&(this._edgeLabels[h]=r),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[h]=i?r:this._defaultEdgeLabelFn(t,e,s);var u=M(this._isDirected,t,e,s);return t=u.v,e=u.w,Object.freeze(u),this._edgeObjs[h]=u,O(this._preds[e],t),O(this._sucs[t],e),this._in[e][h]=u,this._out[t][h]=u,this._edgeCount++,this}edge(t,e,s){var r=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,t,e,s);return this._edgeLabels[r]}hasEdge(t,e,s){var r=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,t,e,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(t,e,s){var r=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,t,e,s),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],w(this._preds[e],t),w(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this}inEdges(t,e){var s=this._in[t];if(s){var r=f(s);return e?p(r,function(i){return i.v===e}):r}}outEdges(t,e){var s=this._out[t];if(s){var r=f(s);return e?p(r,function(i){return i.w===e}):r}}nodeEdges(t,e){var s=this.inEdges(t,e);if(s)return s.concat(this.outEdges(t,e))}}E.prototype._nodeCount=0;E.prototype._edgeCount=0;function O(o,t){o[t]?o[t]++:o[t]=1}function w(o,t){--o[t]||delete o[t]}function c(o,t,e,s){var r=""+t,i=""+e;if(!o&&r>i){var n=r;r=i,i=n}return r+C+i+C+(l(s)?F:s)}function M(o,t,e,s){var r=""+t,i=""+e;if(!o&&r>i){var n=r;r=i,i=n}var h={v:r,w:i};return s&&(h.name=s),h}function m(o,t){return c(o,t.v,t.w,t.name)}export{E as L};
1
+ import{aN as g,bi as v,aE as y,bj as L,bk as b}from"./index-CFYhtZ1e.js";import{d as _,_ as p,$ as a,S as l,E as f,I as N,P as j,O as P}from"./_baseUniq-Cd4llU-Q-CsIxZURF.js";var D=y(function(o){return j(P(o,1,L,!0))}),F="\0",d="\0",C="";class E{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=g(void 0),this._defaultEdgeLabelFn=g(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[d]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return v(t)||(t=g(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var t=this;return p(this.nodes(),function(e){return b(t._in[e])})}sinks(){var t=this;return p(this.nodes(),function(e){return b(t._out[e])})}setNodes(t,e){var s=arguments,r=this;return a(t,function(i){s.length>1?r.setNode(i,e):r.setNode(i)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=d,this._children[t]={},this._children[d][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],a(this.children(t),s=>{this.setParent(s)}),delete this._children[t]),a(_(this._in[t]),e),delete this._in[t],delete this._preds[t],a(_(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(e))e=d;else{e+="";for(var s=e;!l(s);s=this.parent(s))if(s===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==d)return e}}children(t){if(l(t)&&(t=d),this._isCompound){var e=this._children[t];if(e)return _(e)}else{if(t===d)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return _(e)}successors(t){var e=this._sucs[t];if(e)return _(e)}neighbors(t){var e=this.predecessors(t);if(e)return D(e,this.successors(t))}isLeaf(t){var e;return this.isDirected()?e=this.successors(t):e=this.neighbors(t),e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var s=this;a(this._nodes,function(n,h){t(h)&&e.setNode(h,n)}),a(this._edgeObjs,function(n){e.hasNode(n.v)&&e.hasNode(n.w)&&e.setEdge(n,s.edge(n))});var r={};function i(n){var h=s.parent(n);return h===void 0||e.hasNode(h)?(r[n]=h,h):h in r?r[h]:i(h)}return this._isCompound&&a(e.nodes(),function(n){e.setParent(n,i(n))}),e}setDefaultEdgeLabel(t){return v(t)||(t=g(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return f(this._edgeObjs)}setPath(t,e){var s=this,r=arguments;return N(t,function(i,n){return r.length>1?s.setEdge(i,n,e):s.setEdge(i,n),n}),this}setEdge(){var t,e,s,r,i=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(t=n.v,e=n.w,s=n.name,arguments.length===2&&(r=arguments[1],i=!0)):(t=n,e=arguments[1],s=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),t=""+t,e=""+e,l(s)||(s=""+s);var h=c(this._isDirected,t,e,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return i&&(this._edgeLabels[h]=r),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[h]=i?r:this._defaultEdgeLabelFn(t,e,s);var u=M(this._isDirected,t,e,s);return t=u.v,e=u.w,Object.freeze(u),this._edgeObjs[h]=u,O(this._preds[e],t),O(this._sucs[t],e),this._in[e][h]=u,this._out[t][h]=u,this._edgeCount++,this}edge(t,e,s){var r=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,t,e,s);return this._edgeLabels[r]}hasEdge(t,e,s){var r=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,t,e,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(t,e,s){var r=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,t,e,s),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],w(this._preds[e],t),w(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this}inEdges(t,e){var s=this._in[t];if(s){var r=f(s);return e?p(r,function(i){return i.v===e}):r}}outEdges(t,e){var s=this._out[t];if(s){var r=f(s);return e?p(r,function(i){return i.w===e}):r}}nodeEdges(t,e){var s=this.inEdges(t,e);if(s)return s.concat(this.outEdges(t,e))}}E.prototype._nodeCount=0;E.prototype._edgeCount=0;function O(o,t){o[t]?o[t]++:o[t]=1}function w(o,t){--o[t]||delete o[t]}function c(o,t,e,s){var r=""+t,i=""+e;if(!o&&r>i){var n=r;r=i,i=n}return r+C+i+C+(l(s)?F:s)}function M(o,t,e,s){var r=""+t,i=""+e;if(!o&&r>i){var n=r;r=i,i=n}var h={v:r,w:i};return s&&(h.name=s),h}function m(o,t){return c(o,t.v,t.w,t.name)}export{E as L};