@superlc/md-core 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/_baseUniq-BfzcfZ4T.cjs +1 -0
  2. package/dist/_baseUniq-Y3ulau-C.js +477 -0
  3. package/dist/arc-Be_AVKBg.cjs +1 -0
  4. package/dist/arc-Ca7Zrknn.js +83 -0
  5. package/dist/architectureDiagram-VXUJARFQ-4Jx44yBn.cjs +36 -0
  6. package/dist/architectureDiagram-VXUJARFQ-DJeUU_qv.js +4665 -0
  7. package/dist/blockDiagram-VD42YOAC-BimcGKKd.cjs +122 -0
  8. package/dist/blockDiagram-VD42YOAC-D-giXjw6.js +2265 -0
  9. package/dist/c4Diagram-YG6GDRKO-Bl9iUUVb.cjs +10 -0
  10. package/dist/c4Diagram-YG6GDRKO-YxTtvGWw.js +1581 -0
  11. package/dist/channel-DOU_t-A5.js +5 -0
  12. package/dist/channel-DzR_mTuG.cjs +1 -0
  13. package/dist/chunk-4BX2VUAB-BT8x_a4k.cjs +1 -0
  14. package/dist/chunk-4BX2VUAB-qWjx6fvp.js +9 -0
  15. package/dist/chunk-55IACEB6-DRmMNyi7.js +8 -0
  16. package/dist/chunk-55IACEB6-DfzR1I2i.cjs +1 -0
  17. package/dist/chunk-B4BG7PRW-B4vBwkd7.js +1376 -0
  18. package/dist/chunk-B4BG7PRW-k_Ki7ZYa.cjs +165 -0
  19. package/dist/chunk-DI55MBZ5-67zt7BEa.cjs +220 -0
  20. package/dist/chunk-DI55MBZ5-B-Akunv8.js +1382 -0
  21. package/dist/chunk-FMBD7UC4-D-gJ-PKq.cjs +15 -0
  22. package/dist/chunk-FMBD7UC4-D1foMA2H.js +19 -0
  23. package/dist/chunk-QN33PNHL-DBsOH5IO.cjs +1 -0
  24. package/dist/chunk-QN33PNHL-DpeYRHMx.js +20 -0
  25. package/dist/chunk-QZHKN3VN-CWmChvMD.cjs +1 -0
  26. package/dist/chunk-QZHKN3VN-CoINyXCe.js +15 -0
  27. package/dist/chunk-TZMSLE5B-CMo-Qyqp.js +64 -0
  28. package/dist/chunk-TZMSLE5B-Psc_3Gkx.cjs +1 -0
  29. package/dist/classDiagram-2ON5EDUG-BrNHAA-E.js +16 -0
  30. package/dist/classDiagram-2ON5EDUG-CA1gbIW7.cjs +1 -0
  31. package/dist/classDiagram-v2-WZHVMYZB-BrNHAA-E.js +16 -0
  32. package/dist/classDiagram-v2-WZHVMYZB-CA1gbIW7.cjs +1 -0
  33. package/dist/clone-BOyua0mT.js +8 -0
  34. package/dist/clone-D7Rx0g6P.cjs +1 -0
  35. package/dist/cose-bilkent-S5V4N54A-BBcnamAX.cjs +1 -0
  36. package/dist/cose-bilkent-S5V4N54A-xbHM31av.js +2605 -0
  37. package/dist/cytoscape.esm-DkGgpG6d.cjs +331 -0
  38. package/dist/cytoscape.esm-ZmItrg9y.js +18731 -0
  39. package/dist/dagre-6UL2VRFP-B5ZJ9Mmw.cjs +4 -0
  40. package/dist/dagre-6UL2VRFP-lY6fElcy.js +446 -0
  41. package/dist/defaultLocale-BgPVtth8.js +171 -0
  42. package/dist/defaultLocale-C4wbwF1n.cjs +1 -0
  43. package/dist/diagram-PSM6KHXK-DOgpThfE.js +534 -0
  44. package/dist/diagram-PSM6KHXK-NUCrGNCX.cjs +24 -0
  45. package/dist/diagram-QEK2KX5R-CKpcqpBk.js +221 -0
  46. package/dist/diagram-QEK2KX5R-P-pWAYvp.cjs +43 -0
  47. package/dist/diagram-S2PKOQOG-B4PYQerv.cjs +24 -0
  48. package/dist/diagram-S2PKOQOG-CZn9lft8.js +143 -0
  49. package/dist/erDiagram-Q2GNP2WA-D6UL-dgf.js +842 -0
  50. package/dist/erDiagram-Q2GNP2WA-DwYOfnOX.cjs +60 -0
  51. package/dist/flowDiagram-NV44I4VS-BvuqC7lR.cjs +162 -0
  52. package/dist/flowDiagram-NV44I4VS-YPdRK_ji.js +1627 -0
  53. package/dist/ganttDiagram-JELNMOA3-CGnvf7yj.js +2662 -0
  54. package/dist/ganttDiagram-JELNMOA3-wbYrtCNf.cjs +267 -0
  55. package/dist/gitGraphDiagram-NY62KEGX-BnpFLmUy.js +712 -0
  56. package/dist/gitGraphDiagram-NY62KEGX-BzlCJL63.cjs +65 -0
  57. package/dist/graph-Bv0JC_B1.cjs +1 -0
  58. package/dist/graph-DwDboYRQ.js +381 -0
  59. package/dist/index-A-U0gtM4.js +15167 -0
  60. package/dist/index-BC30feOR.cjs +300 -0
  61. package/dist/index.cjs +1 -300
  62. package/dist/index.d.ts +2 -0
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js +27 -14816
  65. package/dist/infoDiagram-WHAUD3N6-CPFFyZEz.cjs +2 -0
  66. package/dist/infoDiagram-WHAUD3N6-DF-Kn4KW.js +24 -0
  67. package/dist/init-CHZsXQcr.cjs +1 -0
  68. package/dist/init-DjUOC4st.js +16 -0
  69. package/dist/journeyDiagram-XKPGCS4Q-Bc3YJVQN.cjs +139 -0
  70. package/dist/journeyDiagram-XKPGCS4Q-CqUVbDan.js +836 -0
  71. package/dist/kanban-definition-3W4ZIXB7-BKxpdlfe.cjs +89 -0
  72. package/dist/kanban-definition-3W4ZIXB7-Zx7cVnZF.js +720 -0
  73. package/dist/layout-CrdknE74.js +1441 -0
  74. package/dist/layout-y4Mby5BC.cjs +1 -0
  75. package/dist/linear-D_NLLphh.cjs +1 -0
  76. package/dist/linear-Fqu_aevY.js +259 -0
  77. package/dist/mermaid/darkMode.d.ts +54 -0
  78. package/dist/mermaid/darkMode.d.ts.map +1 -0
  79. package/dist/mermaid/download.d.ts +27 -0
  80. package/dist/mermaid/download.d.ts.map +1 -0
  81. package/dist/mermaid/index.d.ts +9 -0
  82. package/dist/mermaid/index.d.ts.map +1 -0
  83. package/dist/mermaid/renderer.d.ts +36 -0
  84. package/dist/mermaid/renderer.d.ts.map +1 -0
  85. package/dist/mermaid/themes.d.ts +17 -0
  86. package/dist/mermaid/themes.d.ts.map +1 -0
  87. package/dist/mermaid/types.d.ts +117 -0
  88. package/dist/mermaid/types.d.ts.map +1 -0
  89. package/dist/mermaid.core-Buzus1hw.js +15321 -0
  90. package/dist/mermaid.core-CCMj67LO.cjs +255 -0
  91. package/dist/min-BNEwgiip.js +38 -0
  92. package/dist/min-CxfddLJo.cjs +1 -0
  93. package/dist/mindmap-definition-VGOIOE7T-C3sZAv1n.js +786 -0
  94. package/dist/mindmap-definition-VGOIOE7T-Cq9KhFIU.cjs +68 -0
  95. package/dist/ordinal-CagbB1m8.cjs +1 -0
  96. package/dist/ordinal-DfAQgscy.js +61 -0
  97. package/dist/pieDiagram-ADFJNKIX-Bib4GVaz.js +161 -0
  98. package/dist/pieDiagram-ADFJNKIX-CPJ4LdHJ.cjs +30 -0
  99. package/dist/quadrantDiagram-AYHSOK5B-Bw4qbzaI.js +1024 -0
  100. package/dist/quadrantDiagram-AYHSOK5B-Dldq3aFV.cjs +7 -0
  101. package/dist/requirementDiagram-UZGBJVZJ-BiMT5LBm.cjs +64 -0
  102. package/dist/requirementDiagram-UZGBJVZJ-DKt5E9D5.js +852 -0
  103. package/dist/sankeyDiagram-TZEHDZUN-BvqABFTj.cjs +10 -0
  104. package/dist/sankeyDiagram-TZEHDZUN-DPexJVr0.js +810 -0
  105. package/dist/sequenceDiagram-WL72ISMW-JcPuIgsZ.cjs +145 -0
  106. package/dist/sequenceDiagram-WL72ISMW-rx65Aq7k.js +2518 -0
  107. package/dist/stateDiagram-FKZM4ZOC-5jwz-EhH.cjs +1 -0
  108. package/dist/stateDiagram-FKZM4ZOC-D95elPzf.js +263 -0
  109. package/dist/stateDiagram-v2-4FDKWEC3-DKxcP1od.cjs +1 -0
  110. package/dist/stateDiagram-v2-4FDKWEC3-U8OyZJcH.js +16 -0
  111. package/dist/styles.css +370 -0
  112. package/dist/timeline-definition-IT6M3QCI-C_aFXPzu.cjs +61 -0
  113. package/dist/timeline-definition-IT6M3QCI-DzBIcxIH.js +801 -0
  114. package/dist/treemap-KMMF4GRG-CqQBq3TE.js +14157 -0
  115. package/dist/treemap-KMMF4GRG-DJHv4WOZ.cjs +128 -0
  116. package/dist/xychartDiagram-PRI3JC2R-M2dUh85s.cjs +7 -0
  117. package/dist/xychartDiagram-PRI3JC2R-ZNBNeiJf.js +1340 -0
  118. package/package.json +14 -10
@@ -0,0 +1,89 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./mermaid.core-CCMj67LO.cjs"),ce=require("./chunk-FMBD7UC4-D-gJ-PKq.cjs");var J=function(){var t=n.__name(function(b,s,i,o){for(i=i||{},o=b.length;o--;i[b[o]]=s);return i},"o"),g=[1,4],d=[1,13],a=[1,12],p=[1,15],k=[1,16],f=[1,20],h=[1,19],L=[6,7,8],I=[1,26],T=[1,24],x=[1,25],r=[6,7,11],M=[1,31],N=[6,7,11,24],P=[1,6,13,16,17,20,23],G=[1,35],U=[1,36],w=[1,6,7,11,13,16,17,20,23],j=[1,38],B={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:n.__name(function(s,i,o,l,u,e,V){var c=e.length-1;switch(u){case 6:case 7:return l;case 8:l.getLogger().trace("Stop NL ");break;case 9:l.getLogger().trace("Stop EOF ");break;case 11:l.getLogger().trace("Stop NL2 ");break;case 12:l.getLogger().trace("Stop EOF2 ");break;case 15:l.getLogger().info("Node: ",e[c-1].id),l.addNode(e[c-2].length,e[c-1].id,e[c-1].descr,e[c-1].type,e[c]);break;case 16:l.getLogger().info("Node: ",e[c].id),l.addNode(e[c-1].length,e[c].id,e[c].descr,e[c].type);break;case 17:l.getLogger().trace("Icon: ",e[c]),l.decorateNode({icon:e[c]});break;case 18:case 23:l.decorateNode({class:e[c]});break;case 19:l.getLogger().trace("SPACELIST");break;case 20:l.getLogger().trace("Node: ",e[c-1].id),l.addNode(0,e[c-1].id,e[c-1].descr,e[c-1].type,e[c]);break;case 21:l.getLogger().trace("Node: ",e[c].id),l.addNode(0,e[c].id,e[c].descr,e[c].type);break;case 22:l.decorateNode({icon:e[c]});break;case 27:l.getLogger().trace("node found ..",e[c-2]),this.$={id:e[c-1],descr:e[c-1],type:l.getType(e[c-2],e[c])};break;case 28:this.$={id:e[c],descr:e[c],type:0};break;case 29:l.getLogger().trace("node found ..",e[c-3]),this.$={id:e[c-3],descr:e[c-1],type:l.getType(e[c-2],e[c])};break;case 30:this.$=e[c-1]+e[c];break;case 31:this.$=e[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:a,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:a,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:a,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:I,7:T,10:23,11:x},t(r,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(r,[2,19]),t(r,[2,21],{15:30,24:M}),t(r,[2,22]),t(r,[2,23]),t(N,[2,25]),t(N,[2,26]),t(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:T,10:34,11:x},{1:[2,7],6:d,12:21,13:a,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(P,[2,14],{7:G,11:U}),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(r,[2,16],{15:37,24:M}),t(r,[2,17]),t(r,[2,18]),t(r,[2,20],{24:j}),t(N,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:G,11:U}),t(w,[2,11]),t(w,[2,12]),t(r,[2,15],{24:j}),t(N,[2,30]),{22:[1,41]},t(N,[2,27]),t(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n.__name(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:n.__name(function(s){var i=this,o=[0],l=[],u=[null],e=[],V=this.table,c="",H=0,ee=0,re=2,te=1,ae=e.slice.call(arguments,1),y=Object.create(this.lexer),A={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(A.yy[X]=this.yy[X]);y.setInput(s,A.yy),A.yy.lexer=y,A.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var K=y.yylloc;e.push(K);var oe=y.options&&y.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function le(S){o.length=o.length-2*S,u.length=u.length-S,e.length=e.length-S}n.__name(le,"popStack");function ne(){var S;return S=l.pop()||y.lex()||te,typeof S!="number"&&(S instanceof Array&&(l=S,S=l.pop()),S=i.symbols_[S]||S),S}n.__name(ne,"lex");for(var E,R,v,Y,F={},z,C,ie,W;;){if(R=o[o.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((E===null||typeof E>"u")&&(E=ne()),v=V[R]&&V[R][E]),typeof v>"u"||!v.length||!v[0]){var q="";W=[];for(z in V[R])this.terminals_[z]&&z>re&&W.push("'"+this.terminals_[z]+"'");y.showPosition?q="Parse error on line "+(H+1)+`:
2
+ `+y.showPosition()+`
3
+ Expecting `+W.join(", ")+", got '"+(this.terminals_[E]||E)+"'":q="Parse error on line "+(H+1)+": Unexpected "+(E==te?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(q,{text:y.match,token:this.terminals_[E]||E,line:y.yylineno,loc:K,expected:W})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+E);switch(v[0]){case 1:o.push(E),u.push(y.yytext),e.push(y.yylloc),o.push(v[1]),E=null,ee=y.yyleng,c=y.yytext,H=y.yylineno,K=y.yylloc;break;case 2:if(C=this.productions_[v[1]][1],F.$=u[u.length-C],F._$={first_line:e[e.length-(C||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(C||1)].first_column,last_column:e[e.length-1].last_column},oe&&(F._$.range=[e[e.length-(C||1)].range[0],e[e.length-1].range[1]]),Y=this.performAction.apply(F,[c,ee,H,A.yy,v[1],u,e].concat(ae)),typeof Y<"u")return Y;C&&(o=o.slice(0,-1*C*2),u=u.slice(0,-1*C),e=e.slice(0,-1*C)),o.push(this.productions_[v[1]][0]),u.push(F.$),e.push(F._$),ie=V[o[o.length-2]][o[o.length-1]],o.push(ie);break;case 3:return!0}}return!0},"parse")},m=function(){var b={EOF:1,parseError:n.__name(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:n.__name(function(s,i){return this.yy=i||this.yy||{},this._input=s,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:n.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:n.__name(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var l=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),o.length-1&&(this.yylineno-=o.length-1);var u=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:o?(o.length===l.length?this.yylloc.first_column:0)+l[l.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:n.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
5
+ `+i+"^"},"showPosition"),test_match:n.__name(function(s,i){var o,l,u;if(this.options.backtrack_lexer&&(u={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(u.yylloc.range=this.yylloc.range.slice(0))),l=s[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],o=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var e in u)this[e]=u[e];return!1}return!1},"test_match"),next:n.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,i,o,l;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),e=0;e<u.length;e++)if(o=this._input.match(this.rules[u[e]]),o&&(!i||o[0].length>i[0].length)){if(i=o,l=e,this.options.backtrack_lexer){if(s=this.test_match(o,u[e]),s!==!1)return s;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(s=this.test_match(i,u[l]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:n.__name(function(){var i=this.next();return i||this.lex()},"lex"),begin:n.__name(function(i){this.conditionStack.push(i)},"begin"),popState:n.__name(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:n.__name(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:n.__name(function(i){this.begin(i)},"pushState"),stateStackSize:n.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:n.__name(function(i,o,l,u){switch(l){case 0:return this.pushState("shapeData"),o.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const e=/\n\s*/g;return o.yytext=o.yytext.replace(e,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return i.getLogger().trace("Found comment",o.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:i.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return i.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:i.getLogger().trace("end icon"),this.popState();break;case 16:return i.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return i.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return i.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return i.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:i.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return i.getLogger().trace("description:",o.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),i.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),i.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),i.getLogger().trace("node end ...",o.yytext),"NODE_DEND";case 36:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 41:return i.getLogger().trace("Long description:",o.yytext),21;case 42:return i.getLogger().trace("Long description:",o.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return b}();B.lexer=m;function O(){this.yy={}}return n.__name(O,"Parser"),O.prototype=B,B.Parser=O,new O}();J.parser=J;var he=J,D=[],Z=[],Q=0,$={},ue=n.__name(()=>{D=[],Z=[],Q=0,$={}},"clear"),ge=n.__name(t=>{if(D.length===0)return null;const g=D[0].level;let d=null;for(let a=D.length-1;a>=0;a--)if(D[a].level===g&&!d&&(d=D[a]),D[a].level<g)throw new Error('Items without section detected, found section ("'+D[a].label+'")');return t===(d==null?void 0:d.level)?null:d},"getSection"),se=n.__name(function(){return Z},"getSections"),de=n.__name(function(){const t=[],g=[],d=se(),a=n.getConfig2();for(const p of d){const k={id:p.id,label:n.sanitizeText(p.label??"",a),isGroup:!0,ticket:p.ticket,shape:"kanbanSection",level:p.level,look:a.look};g.push(k);const f=D.filter(h=>h.parentId===p.id);for(const h of f){const L={id:h.id,parentId:p.id,label:n.sanitizeText(h.label??"",a),isGroup:!1,ticket:h==null?void 0:h.ticket,priority:h==null?void 0:h.priority,assigned:h==null?void 0:h.assigned,icon:h==null?void 0:h.icon,shape:"kanbanItem",level:h.level,rx:5,ry:5,cssStyles:["text-align: left"]};g.push(L)}}return{nodes:g,edges:t,other:{},config:n.getConfig2()}},"getData"),pe=n.__name((t,g,d,a,p)=>{var I,T;const k=n.getConfig2();let f=((I=k.mindmap)==null?void 0:I.padding)??n.defaultConfig_default.mindmap.padding;switch(a){case _.ROUNDED_RECT:case _.RECT:case _.HEXAGON:f*=2}const h={id:n.sanitizeText(g,k)||"kbn"+Q++,level:t,label:n.sanitizeText(d,k),width:((T=k.mindmap)==null?void 0:T.maxNodeWidth)??n.defaultConfig_default.mindmap.maxNodeWidth,padding:f,isGroup:!1};if(p!==void 0){let x;p.includes(`
7
+ `)?x=p+`
8
+ `:x=`{
9
+ `+p+`
10
+ }`;const r=n.load(x,{schema:n.JSON_SCHEMA});if(r.shape&&(r.shape!==r.shape.toLowerCase()||r.shape.includes("_")))throw new Error(`No such shape: ${r.shape}. Shape names should be lowercase.`);r!=null&&r.shape&&r.shape==="kanbanItem"&&(h.shape=r==null?void 0:r.shape),r!=null&&r.label&&(h.label=r==null?void 0:r.label),r!=null&&r.icon&&(h.icon=r==null?void 0:r.icon.toString()),r!=null&&r.assigned&&(h.assigned=r==null?void 0:r.assigned.toString()),r!=null&&r.ticket&&(h.ticket=r==null?void 0:r.ticket.toString()),r!=null&&r.priority&&(h.priority=r==null?void 0:r.priority)}const L=ge(t);L?h.parentId=L.id||"kbn"+Q++:Z.push(h),D.push(h)},"addNode"),_={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},fe=n.__name((t,g)=>{switch(n.log.debug("In get type",t,g),t){case"[":return _.RECT;case"(":return g===")"?_.ROUNDED_RECT:_.CLOUD;case"((":return _.CIRCLE;case")":return _.CLOUD;case"))":return _.BANG;case"{{":return _.HEXAGON;default:return _.DEFAULT}},"getType"),_e=n.__name((t,g)=>{$[t]=g},"setElementForId"),ye=n.__name(t=>{if(!t)return;const g=n.getConfig2(),d=D[D.length-1];t.icon&&(d.icon=n.sanitizeText(t.icon,g)),t.class&&(d.cssClasses=n.sanitizeText(t.class,g))},"decorateNode"),me=n.__name(t=>{switch(t){case _.DEFAULT:return"no-border";case _.RECT:return"rect";case _.ROUNDED_RECT:return"rounded-rect";case _.CIRCLE:return"circle";case _.CLOUD:return"cloud";case _.BANG:return"bang";case _.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),be=n.__name(()=>n.log,"getLogger"),ke=n.__name(t=>$[t],"getElementById"),Ee={clear:ue,addNode:pe,getSections:se,getData:de,nodeType:_,getType:fe,setElementForId:_e,decorateNode:ye,type2Str:me,getLogger:be,getElementById:ke},Se=Ee,xe=n.__name(async(t,g,d,a)=>{var G,U,w,j,B;n.log.debug(`Rendering kanban diagram
11
+ `+t);const k=a.db.getData(),f=n.getConfig2();f.htmlLabels=!1;const h=n.selectSvgElement(g),L=h.append("g");L.attr("class","sections");const I=h.append("g");I.attr("class","items");const T=k.nodes.filter(m=>m.isGroup);let x=0;const r=10,M=[];let N=25;for(const m of T){const O=((G=f==null?void 0:f.kanban)==null?void 0:G.sectionWidth)||200;x=x+1,m.x=O*x+(x-1)*r/2,m.width=O,m.y=0,m.height=O*3,m.rx=5,m.ry=5,m.cssClasses=m.cssClasses+" section-"+x;const b=await n.insertCluster(L,m);N=Math.max(N,(U=b==null?void 0:b.labelBBox)==null?void 0:U.height),M.push(b)}let P=0;for(const m of T){const O=M[P];P=P+1;const b=((w=f==null?void 0:f.kanban)==null?void 0:w.sectionWidth)||200,s=-b*3/2+N;let i=s;const o=k.nodes.filter(e=>e.parentId===m.id);for(const e of o){if(e.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");e.x=m.x,e.width=b-1.5*r;const c=(await n.insertNode(I,e,{config:f})).node().getBBox();e.y=i+c.height/2,await n.positionNode(e),i=e.y+c.height/2+r/2}const l=O.cluster.select("rect"),u=Math.max(i-s+3*r,50)+(N-25);l.attr("height",u)}n.setupGraphViewbox(void 0,h,((j=f.mindmap)==null?void 0:j.padding)??n.defaultConfig_default.kanban.padding,((B=f.mindmap)==null?void 0:B.useMaxWidth)??n.defaultConfig_default.kanban.useMaxWidth)},"draw"),Ne={draw:xe},ve=n.__name(t=>{let g="";for(let a=0;a<t.THEME_COLOR_LIMIT;a++)t["lineColor"+a]=t["lineColor"+a]||t["cScaleInv"+a],n.isDark(t["lineColor"+a])?t["lineColor"+a]=n.lighten(t["lineColor"+a],20):t["lineColor"+a]=n.darken(t["lineColor"+a],20);const d=n.__name((a,p)=>t.darkMode?n.darken(a,p):n.lighten(a,p),"adjuster");for(let a=0;a<t.THEME_COLOR_LIMIT;a++){const p=""+(17-3*a);g+=`
12
+ .section-${a-1} rect, .section-${a-1} path, .section-${a-1} circle, .section-${a-1} polygon, .section-${a-1} path {
13
+ fill: ${d(t["cScale"+a],10)};
14
+ stroke: ${d(t["cScale"+a],10)};
15
+
16
+ }
17
+ .section-${a-1} text {
18
+ fill: ${t["cScaleLabel"+a]};
19
+ }
20
+ .node-icon-${a-1} {
21
+ font-size: 40px;
22
+ color: ${t["cScaleLabel"+a]};
23
+ }
24
+ .section-edge-${a-1}{
25
+ stroke: ${t["cScale"+a]};
26
+ }
27
+ .edge-depth-${a-1}{
28
+ stroke-width: ${p};
29
+ }
30
+ .section-${a-1} line {
31
+ stroke: ${t["cScaleInv"+a]} ;
32
+ stroke-width: 3;
33
+ }
34
+
35
+ .disabled, .disabled circle, .disabled text {
36
+ fill: lightgray;
37
+ }
38
+ .disabled text {
39
+ fill: #efefef;
40
+ }
41
+
42
+ .node rect,
43
+ .node circle,
44
+ .node ellipse,
45
+ .node polygon,
46
+ .node path {
47
+ fill: ${t.background};
48
+ stroke: ${t.nodeBorder};
49
+ stroke-width: 1px;
50
+ }
51
+
52
+ .kanban-ticket-link {
53
+ fill: ${t.background};
54
+ stroke: ${t.nodeBorder};
55
+ text-decoration: underline;
56
+ }
57
+ `}return g},"genSections"),De=n.__name(t=>`
58
+ .edge {
59
+ stroke-width: 3;
60
+ }
61
+ ${ve(t)}
62
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
63
+ fill: ${t.git0};
64
+ }
65
+ .section-root text {
66
+ fill: ${t.gitBranchLabel0};
67
+ }
68
+ .icon-container {
69
+ height:100%;
70
+ display: flex;
71
+ justify-content: center;
72
+ align-items: center;
73
+ }
74
+ .edge {
75
+ fill: none;
76
+ }
77
+ .cluster-label, .label {
78
+ color: ${t.textColor};
79
+ fill: ${t.textColor};
80
+ }
81
+ .kanban-label {
82
+ dy: 1em;
83
+ alignment-baseline: middle;
84
+ text-anchor: middle;
85
+ dominant-baseline: middle;
86
+ text-align: center;
87
+ }
88
+ ${ce.getIconStyles()}
89
+ `,"getStyles"),Le=De,Oe={db:Se,renderer:Ne,parser:he,styles:Le};exports.diagram=Oe;