orbitchat 2.5.0 → 2.5.2

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 (67) hide show
  1. package/dist/assets/_baseUniq-BPMphbq5-B8KXWUSy.js +1 -0
  2. package/dist/assets/{api-BBbZ-wzb.js → api-BP75IyZ3.js} +1 -1
  3. package/dist/assets/arc-D9rhTKV0-C3eQRzOO.js +1 -0
  4. package/dist/assets/{architectureDiagram-VXUJARFQ-ZhthiBXw-6jLb3PI4.js → architectureDiagram-VXUJARFQ-BiqZtsDe-D4vjFtVT.js} +1 -1
  5. package/dist/assets/{blockDiagram-VD42YOAC-2RvSKzzb-CekR3NQa.js → blockDiagram-VD42YOAC-zcRIdFTD-EoHZN-fr.js} +5 -5
  6. package/dist/assets/{c4Diagram-YG6GDRKO-iYNAbGgt-BwzskMHt.js → c4Diagram-YG6GDRKO-DYXNcDX4-YTK9swcQ.js} +4 -4
  7. package/dist/assets/channel-CUIutAfm-CPe9kn0s.js +1 -0
  8. package/dist/assets/{chunk-4BX2VUAB-BI1eieHX-BcH4s9g3.js → chunk-4BX2VUAB-DAh9ktmY-ruiIUYi2.js} +1 -1
  9. package/dist/assets/chunk-55IACEB6-Cza7pcpr-CzVAonMo.js +1 -0
  10. package/dist/assets/{chunk-B4BG7PRW-B_gbgJ8Z-CmKgjHYB.js → chunk-B4BG7PRW-BTUSpeKy-BKotpLA3.js} +3 -3
  11. package/dist/assets/{chunk-DI55MBZ5-2NtB5tR9-g5uXuUGc.js → chunk-DI55MBZ5-DKt4WII7-B6S30xui.js} +3 -3
  12. package/dist/assets/{chunk-FMBD7UC4-RlKniDBQ-B__CYUwz.js → chunk-FMBD7UC4-DdcCR8w3-BNy2UogH.js} +1 -1
  13. package/dist/assets/chunk-QN33PNHL-v6AkzOl1-C_ygyxEW.js +1 -0
  14. package/dist/assets/{chunk-QZHKN3VN-1GW3GHKe-C9vGZ5SL.js → chunk-QZHKN3VN-DVJOrqBZ-DXkrz_Vp.js} +1 -1
  15. package/dist/assets/{chunk-TZMSLE5B-BTJEzWgP-DqiAu4KT.js → chunk-TZMSLE5B-G2jJHqli-C4LLGUxS.js} +1 -1
  16. package/dist/assets/classDiagram-2ON5EDUG-CxmgTanh-DUikmocW.js +1 -0
  17. package/dist/assets/classDiagram-v2-WZHVMYZB-CxmgTanh-DUikmocW.js +1 -0
  18. package/dist/assets/clone-CsNB4mMi-Hoe5wWHV.js +1 -0
  19. package/dist/assets/{cose-bilkent-S5V4N54A-LTD5cwdk-BcWDZjn0.js → cose-bilkent-S5V4N54A-BRr2Y6dg-DPTc6SUI.js} +1 -1
  20. package/dist/assets/{dagre-6UL2VRFP-oAHH3NGz-C-dq50GC.js → dagre-6UL2VRFP-DX8gNHmJ-BpPmEueS.js} +2 -2
  21. package/dist/assets/{diagram-PSM6KHXK-CE9xld4H-mRc14ET5.js → diagram-PSM6KHXK-DNX818To-CjNAVIkv.js} +1 -1
  22. package/dist/assets/diagram-QEK2KX5R-BDO6hKtm-CvBcu77T.js +43 -0
  23. package/dist/assets/diagram-S2PKOQOG-IEqaDwzi-DcC3QPwx.js +24 -0
  24. package/dist/assets/{erDiagram-Q2GNP2WA-Cjwgn5O1-_ffXliWU.js → erDiagram-Q2GNP2WA-DbLpN8Jp-BNRSCUSe.js} +5 -5
  25. package/dist/assets/{flowDiagram-NV44I4VS-DhL_LF5y-DRuINGle.js → flowDiagram-NV44I4VS-pJlHae8Y-7OFXHeDF.js} +6 -6
  26. package/dist/assets/{ganttDiagram-JELNMOA3-B9BkzPjc-BXIfYkGx.js → ganttDiagram-JELNMOA3-J0Tkq5TR-DpHkO-NU.js} +4 -4
  27. package/dist/assets/{gitGraphDiagram-NY62KEGX-BMn7vaQV-Bfy7yuMv.js → gitGraphDiagram-NY62KEGX-DgYonpsZ-B9g5HuPC.js} +10 -10
  28. package/dist/assets/{graph-DO7yB5fn-iHvIIoGD.js → graph-BpcfrHXY-BYpfgX1H.js} +1 -1
  29. package/dist/assets/index-DmzqOw_M.css +1 -0
  30. package/dist/assets/{index-BqpsNXVI-BztRLboM.js → index-DvNpGWs7-4fI1WvWn.js} +1 -1
  31. package/dist/assets/index-EiT4RCvs.js +978 -0
  32. package/dist/assets/infoDiagram-WHAUD3N6-C3JLOAnb-CHNqloMk.js +2 -0
  33. package/dist/assets/{journeyDiagram-XKPGCS4Q-CKTjKgpD-DCt-FJ9q.js → journeyDiagram-XKPGCS4Q-CfjB2Qdf-BZnov-yp.js} +4 -4
  34. package/dist/assets/{kanban-definition-3W4ZIXB7-CavBl09t-D5mhKSSQ.js → kanban-definition-3W4ZIXB7-CrW8yVmd-C5NnIs3S.js} +7 -7
  35. package/dist/assets/{layout-kX0D0crf-x5N-fcnG.js → layout-bsfAhWjc-CubB2BLR.js} +1 -1
  36. package/dist/assets/min-C2aDz5ZK-DE3OYWDI.js +1 -0
  37. package/dist/assets/{mindmap-definition-VGOIOE7T-atjBunOF-DuLlAK7g.js → mindmap-definition-VGOIOE7T-Dj37RkY_-CTzTW9vA.js} +5 -5
  38. package/dist/assets/pieDiagram-ADFJNKIX-BiQvDx8I-bzb1NF1v.js +30 -0
  39. package/dist/assets/{quadrantDiagram-AYHSOK5B-CDM1Rm_m-CEOhVdQI.js → quadrantDiagram-AYHSOK5B-D4b-YFzI-DnYcWqy3.js} +4 -4
  40. package/dist/assets/{requirementDiagram-UZGBJVZJ-oAoTJrMw-Co7f_Whe.js → requirementDiagram-UZGBJVZJ-km07nlVd-B3ZRoRYn.js} +4 -4
  41. package/dist/assets/sankeyDiagram-TZEHDZUN-LfuSRRbf-BvrYcmw8.js +10 -0
  42. package/dist/assets/{sequenceDiagram-WL72ISMW-DfYfiNEc-DAem8LrU.js → sequenceDiagram-WL72ISMW-CQ4J-0_7-RVME2elv.js} +11 -11
  43. package/dist/assets/stateDiagram-FKZM4ZOC-JtogJwt6-B-Sb3j0x.js +1 -0
  44. package/dist/assets/stateDiagram-v2-4FDKWEC3-DuQ7UaeU-D7ZuxPcq.js +1 -0
  45. package/dist/assets/{timeline-definition-IT6M3QCI-D-4DkSGs-igqgXYJA.js → timeline-definition-IT6M3QCI-Cs3NnF2M-B_J8iQzw.js} +5 -5
  46. package/dist/assets/{treemap-KMMF4GRG-D_CgoaQq-1cg8_rRW.js → treemap-KMMF4GRG-CkW25-tn-BQEpe2TL.js} +31 -31
  47. package/dist/assets/{xychartDiagram-PRI3JC2R-Cs63yrks-CcEeZ1Qx.js → xychartDiagram-PRI3JC2R-JzAaXa5z-DFhmopW3.js} +4 -4
  48. package/dist/index.html +2 -2
  49. package/package.json +2 -2
  50. package/dist/assets/_baseUniq-D5Eo-o17-Dkf2eEoL.js +0 -1
  51. package/dist/assets/arc-C_KK8p3_-DPqj8zOp.js +0 -1
  52. package/dist/assets/channel-pHWSbwHm-CxOaJbm2.js +0 -1
  53. package/dist/assets/chunk-55IACEB6-BpoJKKfJ-bOzouDoX.js +0 -1
  54. package/dist/assets/chunk-QN33PNHL-DFknLKOq-B_TRwG-U.js +0 -1
  55. package/dist/assets/classDiagram-2ON5EDUG-dl-fP_NJ-DmLd9UEu.js +0 -1
  56. package/dist/assets/classDiagram-v2-WZHVMYZB-dl-fP_NJ-DmLd9UEu.js +0 -1
  57. package/dist/assets/clone-CYv9ip75-CjM9sz61.js +0 -1
  58. package/dist/assets/diagram-QEK2KX5R-BueFGLn5-BlCxBbOv.js +0 -43
  59. package/dist/assets/diagram-S2PKOQOG-C1iE4SNs-z2q-4hhl.js +0 -24
  60. package/dist/assets/index-B54jsFJy.css +0 -1
  61. package/dist/assets/index-Ga9tZhFZ.js +0 -1234
  62. package/dist/assets/infoDiagram-WHAUD3N6-Cb76h7mD-s5ySGBI1.js +0 -2
  63. package/dist/assets/min-rCpHWDFS-Bpi4dGNR.js +0 -1
  64. package/dist/assets/pieDiagram-ADFJNKIX-vuHwyssH-CjkF3vHE.js +0 -30
  65. package/dist/assets/sankeyDiagram-TZEHDZUN-BcBwWOvE-NUCVToCj.js +0 -10
  66. package/dist/assets/stateDiagram-FKZM4ZOC-Bc8gN8qV-tvcraH7m.js +0 -1
  67. package/dist/assets/stateDiagram-v2-4FDKWEC3-D_sncagZ-BEb1odG9.js +0 -1
@@ -1,9 +1,9 @@
1
- import{D as r,w as mt,x as $,t as U,aX as xt,aY as bt,aZ as kt,a_ as _t,B as vt,a$ as wt,y as St}from"./index-Ga9tZhFZ.js";import{h as et}from"./arc-C_KK8p3_-DPqj8zOp.js";var X=function(){var n=r(function(f,s,l,h){for(l=l||{},h=f.length;h--;l[f[h]]=s);return l},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],i=[1,11],o=[1,12],u=[1,13],p=[1,16],y=[1,17],m={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:r(function(f,s,l,h,d,c,k){var x=c.length-1;switch(d){case 1:return c[x-1];case 2:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 6:case 7:this.$=[];break;case 8:h.getCommonDb().setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),h.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),h.getCommonDb().setAccDescription(this.$);break;case 12:h.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 15:h.addTask(c[x],0,""),this.$=c[x];break;case 16:h.addEvent(c[x].substr(2)),this.$=c[x];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:i,16:o,17:u,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:i,16:o,17:u,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:r(function(f,s){if(s.recoverable)this.trace(f);else{var l=new Error(f);throw l.hash=s,l}},"parseError"),parse:r(function(f){var s=this,l=[0],h=[],d=[null],c=[],k=this.table,x="",N=0,M=0,W=2,I=1,H=c.slice.call(arguments,1),_=Object.create(this.lexer),S={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(S.yy[v]=this.yy[v]);_.setInput(f,S.yy),S.yy.lexer=_,S.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var A=_.yylloc;c.push(A);var O=_.options&&_.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(E){l.length=l.length-2*E,d.length=d.length-E,c.length=c.length-E}r(L,"popStack");function j(){var E;return E=h.pop()||_.lex()||I,typeof E!="number"&&(E instanceof Array&&(h=E,E=h.pop()),E=s.symbols_[E]||E),E}r(j,"lex");for(var w,R,T,q,B={},z,C,tt,V;;){if(R=l[l.length-1],this.defaultActions[R]?T=this.defaultActions[R]:((w===null||typeof w>"u")&&(w=j()),T=k[R]&&k[R][w]),typeof T>"u"||!T.length||!T[0]){var J="";V=[];for(z in k[R])this.terminals_[z]&&z>W&&V.push("'"+this.terminals_[z]+"'");_.showPosition?J="Parse error on line "+(N+1)+`:
1
+ import{Q as r,k as mt,s as $,w as U,aX as xt,aY as bt,aZ as kt,a_ as _t,$ as vt,a$ as wt,F as St}from"./index-EiT4RCvs.js";import{h as et}from"./arc-D9rhTKV0-C3eQRzOO.js";var X=function(){var n=r(function(f,i,l,h){for(l=l||{},h=f.length;h--;l[f[h]]=i);return l},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],o=[1,12],u=[1,13],p=[1,16],y=[1,17],m={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:r(function(f,i,l,h,d,c,k){var x=c.length-1;switch(d){case 1:return c[x-1];case 2:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 6:case 7:this.$=[];break;case 8:h.getCommonDb().setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),h.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),h.getCommonDb().setAccDescription(this.$);break;case 12:h.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 15:h.addTask(c[x],0,""),this.$=c[x];break;case 16:h.addEvent(c[x].substr(2)),this.$=c[x];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:o,17:u,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:o,17:u,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:r(function(f,i){if(i.recoverable)this.trace(f);else{var l=new Error(f);throw l.hash=i,l}},"parseError"),parse:r(function(f){var i=this,l=[0],h=[],d=[null],c=[],k=this.table,x="",N=0,M=0,W=2,I=1,D=c.slice.call(arguments,1),_=Object.create(this.lexer),S={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(S.yy[v]=this.yy[v]);_.setInput(f,S.yy),S.yy.lexer=_,S.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var A=_.yylloc;c.push(A);var O=_.options&&_.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(E){l.length=l.length-2*E,d.length=d.length-E,c.length=c.length-E}r(L,"popStack");function P(){var E;return E=h.pop()||_.lex()||I,typeof E!="number"&&(E instanceof Array&&(h=E,E=h.pop()),E=i.symbols_[E]||E),E}r(P,"lex");for(var w,R,T,q,j={},z,C,tt,V;;){if(R=l[l.length-1],this.defaultActions[R]?T=this.defaultActions[R]:((w===null||typeof w>"u")&&(w=P()),T=k[R]&&k[R][w]),typeof T>"u"||!T.length||!T[0]){var J="";V=[];for(z in k[R])this.terminals_[z]&&z>W&&V.push("'"+this.terminals_[z]+"'");_.showPosition?J="Parse error on line "+(N+1)+`:
2
2
  `+_.showPosition()+`
3
- Expecting `+V.join(", ")+", got '"+(this.terminals_[w]||w)+"'":J="Parse error on line "+(N+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(J,{text:_.match,token:this.terminals_[w]||w,line:_.yylineno,loc:A,expected:V})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+w);switch(T[0]){case 1:l.push(w),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),w=null,M=_.yyleng,x=_.yytext,N=_.yylineno,A=_.yylloc;break;case 2:if(C=this.productions_[T[1]][1],B.$=d[d.length-C],B._$={first_line:c[c.length-(C||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(C||1)].first_column,last_column:c[c.length-1].last_column},O&&(B._$.range=[c[c.length-(C||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(B,[x,M,N,S.yy,T[1],d,c].concat(H)),typeof q<"u")return q;C&&(l=l.slice(0,-1*C*2),d=d.slice(0,-1*C),c=c.slice(0,-1*C)),l.push(this.productions_[T[1]][0]),d.push(B.$),c.push(B._$),tt=k[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},b=function(){var f={EOF:1,parseError:r(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw new Error(s)},"parseError"),setInput:r(function(s,l){return this.yy=l||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:r(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var l=s.match(/(?:\r\n?|\n).*/g);return l?(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:r(function(s){var l=s.length,h=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var d=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),h.length-1&&(this.yylineno-=h.length-1);var c=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:h?(h.length===d.length?this.yylloc.first_column:0)+d[d.length-h.length].length-h[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(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:r(function(s){this.unput(this.match.slice(s))},"less"),pastInput:r(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:r(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:r(function(){var s=this.pastInput(),l=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
5
- `+l+"^"},"showPosition"),test_match:r(function(s,l){var h,d,c;if(this.options.backtrack_lexer&&(c={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&&(c.yylloc.range=this.yylloc.range.slice(0))),d=s[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.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],h=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var k in c)this[k]=c[k];return!1}return!1},"test_match"),next:r(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,l,h,d;this._more||(this.yytext="",this.match="");for(var c=this._currentRules(),k=0;k<c.length;k++)if(h=this._input.match(this.rules[c[k]]),h&&(!l||h[0].length>l[0].length)){if(l=h,d=k,this.options.backtrack_lexer){if(s=this.test_match(h,c[k]),s!==!1)return s;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(s=this.test_match(l,c[d]),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:r(function(){var s=this.next();return s||this.lex()},"lex"),begin:r(function(s){this.conditionStack.push(s)},"begin"),popState:r(function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:r(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:r(function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},"topState"),pushState:r(function(s){this.begin(s)},"pushState"),stateStackSize:r(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:r(function(s,l,h,d){switch(h){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return f}();m.lexer=b;function g(){this.yy={}}return r(g,"Parser"),g.prototype=m,m.Parser=g,new g}();X.parser=X;var $t=X,rt={};vt(rt,{addEvent:()=>pt,addSection:()=>lt,addTask:()=>ut,addTaskOrg:()=>yt,clear:()=>ct,default:()=>Et,getCommonDb:()=>ot,getSections:()=>ht,getTasks:()=>dt});var P="",at=0,G=[],Y=[],F=[],ot=r(()=>wt,"getCommonDb"),ct=r(function(){G.length=0,Y.length=0,P="",F.length=0,St()},"clear"),lt=r(function(n){P=n,G.push(n)},"addSection"),ht=r(function(){return G},"getSections"),dt=r(function(){let n=nt();const t=100;let e=0;for(;!n&&e<t;)n=nt(),e++;return Y.push(...F),Y},"getTasks"),ut=r(function(n,t,e){const a={id:at++,section:P,type:P,task:n,score:t||0,events:e?[e]:[]};F.push(a)},"addTask"),pt=r(function(n){F.find(t=>t.id===at-1).events.push(n)},"addEvent"),yt=r(function(n){const t={section:P,type:P,description:n,task:n,classes:[]};Y.push(t)},"addTaskOrg"),nt=r(function(){const n=r(function(e){return F[e].processed},"compileTask");let t=!0;for(const[e,a]of F.entries())n(e),t=t&&a.processed;return t},"compileTasks"),Et={clear:ct,getCommonDb:ot,addSection:lt,getSections:ht,getTasks:dt,addTask:ut,addTaskOrg:yt,addEvent:pt},Tt=12,Z=r(function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},"drawRect"),Mt=r(function(n,t){const e=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),a=n.append("g");a.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function i(p){const y=et().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",y).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}r(i,"smile");function o(p){const y=et().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",y).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}r(o,"sad");function u(p){p.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return r(u,"ambivalent"),t.score>3?i(a):t.score<3?o(a):u(a),e},"drawFace"),At=r(function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},"drawCircle"),gt=r(function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),a=n.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const i=a.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(e),a},"drawText"),Nt=r(function(n,t){function e(i,o,u,p,y){return i+","+o+" "+(i+u)+","+o+" "+(i+u)+","+(o+p-y)+" "+(i+u-y*1.2)+","+(o+p)+" "+i+","+(o+p)}r(e,"genPoints");const a=n.append("polygon");a.attr("points",e(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,gt(n,t)},"drawLabel"),Ct=r(function(n,t,e){const a=n.append("g"),i=K();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=e.width,i.height=e.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,Z(a,i),ft(e)(t.text,a,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},e,t.colour)},"drawSection"),it=-1,It=r(function(n,t,e){const a=t.x+e.width/2,i=n.append("g");it++,i.append("line").attr("id","task"+it).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Mt(i,{cx:a,cy:300+(5-t.score)*30,score:t.score});const o=K();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=e.width,o.height=e.height,o.class="task task-type-"+t.num,o.rx=3,o.ry=3,Z(i,o),ft(e)(t.task,i,o.x,o.y,o.width,o.height,{class:"task"},e,t.colour)},"drawTask"),Ot=r(function(n,t){Z(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),Lt=r(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),K=r(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),ft=function(){function n(i,o,u,p,y,m,b,g){const f=o.append("text").attr("x",u+y/2).attr("y",p+m/2+5).style("font-color",g).style("text-anchor","middle").text(i);a(f,b)}r(n,"byText");function t(i,o,u,p,y,m,b,g,f){const{taskFontSize:s,taskFontFamily:l}=g,h=i.split(/<br\s*\/?>/gi);for(let d=0;d<h.length;d++){const c=d*s-s*(h.length-1)/2,k=o.append("text").attr("x",u+y/2).attr("y",p).attr("fill",f).style("text-anchor","middle").style("font-size",s).style("font-family",l);k.append("tspan").attr("x",u+y/2).attr("dy",c).text(h[d]),k.attr("y",p+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(k,b)}}r(t,"byTspan");function e(i,o,u,p,y,m,b,g){const f=o.append("switch"),s=f.append("foreignObject").attr("x",u).attr("y",p).attr("width",y).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");s.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),t(i,f,u,p,y,m,b,g),a(s,b)}r(e,"byFo");function a(i,o){for(const u in o)u in o&&i.attr(u,o[u])}return r(a,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?e:i.textPlacement==="old"?n:t}}(),Rt=r(function(n){n.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function Q(n,t){n.each(function(){var e=U(this),a=e.text().split(/(\s+|<br>)/).reverse(),i,o=[],u=1.1,p=e.attr("y"),y=parseFloat(e.attr("dy")),m=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("dy",y+"em");for(let b=0;b<a.length;b++)i=a[a.length-1-b],o.push(i),m.text(o.join(" ").trim()),(m.node().getComputedTextLength()>t||i==="<br>")&&(o.pop(),m.text(o.join(" ").trim()),i==="<br>"?o=[""]:o=[i],m=e.append("tspan").attr("x",0).attr("y",p).attr("dy",u+"em").text(i))})}r(Q,"wrap");var Dt=r(function(n,t,e,a){var i;const o=e%Tt-1,u=n.append("g");t.section=o,u.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+o));const p=u.append("g"),y=u.append("g"),m=y.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Q,t.width).node().getBBox(),b=(i=a.fontSize)!=null&&i.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=m.height+b*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,y.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),jt(p,t,o,a),t},"drawNode"),Ht=r(function(n,t,e){var a;const i=n.append("g"),o=i.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Q,t.width).node().getBBox(),u=(a=e.fontSize)!=null&&a.replace?e.fontSize.replace("px",""):e.fontSize;return i.remove(),o.height+u*1.1*.5+t.padding},"getVirtualNodeHeight"),jt=r(function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+10} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),D={drawRect:Z,drawCircle:At,drawSection:Ct,drawText:gt,drawLabel:Nt,drawTask:It,drawBackgroundRect:Ot,getTextObj:Lt,getNoteRect:K,initGraphics:Rt,drawNode:Dt,getVirtualNodeHeight:Ht},Bt=r(function(n,t,e,a){var i,o,u;const p=mt(),y=((i=p.timeline)==null?void 0:i.leftMargin)??50;$.debug("timeline",a.db);const m=p.securityLevel;let b;m==="sandbox"&&(b=U("#i"+t));const g=(m==="sandbox"?U(b.nodes()[0].contentDocument.body):U("body")).select("#"+t);g.append("g");const f=a.db.getTasks(),s=a.db.getCommonDb().getDiagramTitle();$.debug("task",f),D.initGraphics(g);const l=a.db.getSections();$.debug("sections",l);let h=0,d=0,c=0,k=0,x=50+y,N=50;k=50;let M=0,W=!0;l.forEach(function(S){const v={number:M,descr:S,section:M,width:150,padding:20,maxHeight:h},A=D.getVirtualNodeHeight(g,v,p);$.debug("sectionHeight before draw",A),h=Math.max(h,A+20)});let I=0,H=0;$.debug("tasks.length",f.length);for(const[S,v]of f.entries()){const A={number:S,descr:v,section:v.section,width:150,padding:20,maxHeight:d},O=D.getVirtualNodeHeight(g,A,p);$.debug("taskHeight before draw",O),d=Math.max(d,O+20),I=Math.max(I,v.events.length);let L=0;for(const j of v.events){const w={descr:j,section:v.section,number:v.section,width:150,padding:20,maxHeight:50};L+=D.getVirtualNodeHeight(g,w,p)}v.events.length>0&&(L+=(v.events.length-1)*10),H=Math.max(H,L)}$.debug("maxSectionHeight before draw",h),$.debug("maxTaskHeight before draw",d),l&&l.length>0?l.forEach(S=>{const v=f.filter(j=>j.section===S),A={number:M,descr:S,section:M,width:200*Math.max(v.length,1)-50,padding:20,maxHeight:h};$.debug("sectionNode",A);const O=g.append("g"),L=D.drawNode(O,A,M,p);$.debug("sectionNode output",L),O.attr("transform",`translate(${x}, ${k})`),N+=h+50,v.length>0&&st(g,v,M,x,N,d,p,I,H,h,!1),x+=200*Math.max(v.length,1),N=k,M++}):(W=!1,st(g,f,M,x,N,d,p,I,H,h,!0));const _=g.node().getBBox();$.debug("bounds",_),s&&g.append("text").text(s).attr("x",_.width/2-y).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),c=W?h+d+150:d+100,g.append("g").attr("class","lineWrapper").append("line").attr("x1",y).attr("y1",c).attr("x2",_.width+3*y).attr("y2",c).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),xt(void 0,g,((o=p.timeline)==null?void 0:o.padding)??50,((u=p.timeline)==null?void 0:u.useMaxWidth)??!1)},"draw"),st=r(function(n,t,e,a,i,o,u,p,y,m,b){var g;for(const f of t){const s={descr:f.task,section:e,number:e,width:150,padding:20,maxHeight:o};$.debug("taskNode",s);const l=n.append("g").attr("class","taskWrapper"),h=D.drawNode(l,s,e,u).height;if($.debug("taskHeight after draw",h),l.attr("transform",`translate(${a}, ${i})`),o=Math.max(o,h),f.events){const d=n.append("g").attr("class","lineWrapper");let c=o;i+=100,c=c+Pt(n,f.events,e,a,i,u),i-=100,d.append("line").attr("x1",a+190/2).attr("y1",i+o).attr("x2",a+190/2).attr("y2",i+o+100+y+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a=a+200,b&&!((g=u.timeline)!=null&&g.disableMulticolor)&&e++}i=i-10},"drawTasks"),Pt=r(function(n,t,e,a,i,o){let u=0;const p=i;i=i+100;for(const y of t){const m={descr:y,section:e,number:e,width:150,padding:20,maxHeight:50};$.debug("eventNode",m);const b=n.append("g").attr("class","eventWrapper"),g=D.drawNode(b,m,e,o).height;u=u+g,b.attr("transform",`translate(${a}, ${i})`),i=i+10+g}return i=p,u},"drawEvents"),Ft={setConf:r(()=>{},"setConf"),draw:Bt},Wt=r(n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],bt(n["lineColor"+e])?n["lineColor"+e]=kt(n["lineColor"+e],20):n["lineColor"+e]=_t(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const a=""+(17-3*e);t+=`
3
+ Expecting `+V.join(", ")+", got '"+(this.terminals_[w]||w)+"'":J="Parse error on line "+(N+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(J,{text:_.match,token:this.terminals_[w]||w,line:_.yylineno,loc:A,expected:V})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+w);switch(T[0]){case 1:l.push(w),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),w=null,M=_.yyleng,x=_.yytext,N=_.yylineno,A=_.yylloc;break;case 2:if(C=this.productions_[T[1]][1],j.$=d[d.length-C],j._$={first_line:c[c.length-(C||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(C||1)].first_column,last_column:c[c.length-1].last_column},O&&(j._$.range=[c[c.length-(C||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(j,[x,M,N,S.yy,T[1],d,c].concat(D)),typeof q<"u")return q;C&&(l=l.slice(0,-1*C*2),d=d.slice(0,-1*C),c=c.slice(0,-1*C)),l.push(this.productions_[T[1]][0]),d.push(j.$),c.push(j._$),tt=k[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},b=function(){var f={EOF:1,parseError:r(function(i,l){if(this.yy.parser)this.yy.parser.parseError(i,l);else throw new Error(i)},"parseError"),setInput:r(function(i,l){return this.yy=l||this.yy||{},this._input=i,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:r(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var l=i.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:r(function(i){var l=i.length,h=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var d=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),h.length-1&&(this.yylineno-=h.length-1);var c=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:h?(h.length===d.length?this.yylloc.first_column:0)+d[d.length-h.length].length-h[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(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:r(function(i){this.unput(this.match.slice(i))},"less"),pastInput:r(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var i=this.pastInput(),l=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
+ `+l+"^"},"showPosition"),test_match:r(function(i,l){var h,d,c;if(this.options.backtrack_lexer&&(c={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&&(c.yylloc.range=this.yylloc.range.slice(0))),d=i[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],h=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var k in c)this[k]=c[k];return!1}return!1},"test_match"),next:r(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,l,h,d;this._more||(this.yytext="",this.match="");for(var c=this._currentRules(),k=0;k<c.length;k++)if(h=this._input.match(this.rules[c[k]]),h&&(!l||h[0].length>l[0].length)){if(l=h,d=k,this.options.backtrack_lexer){if(i=this.test_match(h,c[k]),i!==!1)return i;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(i=this.test_match(l,c[d]),i!==!1?i:!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:r(function(){var i=this.next();return i||this.lex()},"lex"),begin:r(function(i){this.conditionStack.push(i)},"begin"),popState:r(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:r(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:r(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:r(function(i){this.begin(i)},"pushState"),stateStackSize:r(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:r(function(i,l,h,d){switch(h){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return f}();m.lexer=b;function g(){this.yy={}}return r(g,"Parser"),g.prototype=m,m.Parser=g,new g}();X.parser=X;var $t=X,rt={};vt(rt,{addEvent:()=>pt,addSection:()=>lt,addTask:()=>ut,addTaskOrg:()=>yt,clear:()=>ct,default:()=>Et,getCommonDb:()=>ot,getSections:()=>ht,getTasks:()=>dt});var B="",at=0,G=[],Y=[],F=[],ot=r(()=>wt,"getCommonDb"),ct=r(function(){G.length=0,Y.length=0,B="",F.length=0,St()},"clear"),lt=r(function(n){B=n,G.push(n)},"addSection"),ht=r(function(){return G},"getSections"),dt=r(function(){let n=nt();const t=100;let e=0;for(;!n&&e<t;)n=nt(),e++;return Y.push(...F),Y},"getTasks"),ut=r(function(n,t,e){const a={id:at++,section:B,type:B,task:n,score:t||0,events:e?[e]:[]};F.push(a)},"addTask"),pt=r(function(n){F.find(t=>t.id===at-1).events.push(n)},"addEvent"),yt=r(function(n){const t={section:B,type:B,description:n,task:n,classes:[]};Y.push(t)},"addTaskOrg"),nt=r(function(){const n=r(function(e){return F[e].processed},"compileTask");let t=!0;for(const[e,a]of F.entries())n(e),t=t&&a.processed;return t},"compileTasks"),Et={clear:ct,getCommonDb:ot,addSection:lt,getSections:ht,getTasks:dt,addTask:ut,addTaskOrg:yt,addEvent:pt},Tt=12,Z=r(function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},"drawRect"),Mt=r(function(n,t){const e=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),a=n.append("g");a.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function s(p){const y=et().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",y).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}r(s,"smile");function o(p){const y=et().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",y).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}r(o,"sad");function u(p){p.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return r(u,"ambivalent"),t.score>3?s(a):t.score<3?o(a):u(a),e},"drawFace"),At=r(function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},"drawCircle"),gt=r(function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),a=n.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),a},"drawText"),Nt=r(function(n,t){function e(s,o,u,p,y){return s+","+o+" "+(s+u)+","+o+" "+(s+u)+","+(o+p-y)+" "+(s+u-y*1.2)+","+(o+p)+" "+s+","+(o+p)}r(e,"genPoints");const a=n.append("polygon");a.attr("points",e(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,gt(n,t)},"drawLabel"),Ct=r(function(n,t,e){const a=n.append("g"),s=K();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=e.width,s.height=e.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,Z(a,s),ft(e)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},e,t.colour)},"drawSection"),st=-1,It=r(function(n,t,e){const a=t.x+e.width/2,s=n.append("g");st++,s.append("line").attr("id","task"+st).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Mt(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const o=K();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=e.width,o.height=e.height,o.class="task task-type-"+t.num,o.rx=3,o.ry=3,Z(s,o),ft(e)(t.task,s,o.x,o.y,o.width,o.height,{class:"task"},e,t.colour)},"drawTask"),Ot=r(function(n,t){Z(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),Lt=r(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),K=r(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),ft=function(){function n(s,o,u,p,y,m,b,g){const f=o.append("text").attr("x",u+y/2).attr("y",p+m/2+5).style("font-color",g).style("text-anchor","middle").text(s);a(f,b)}r(n,"byText");function t(s,o,u,p,y,m,b,g,f){const{taskFontSize:i,taskFontFamily:l}=g,h=s.split(/<br\s*\/?>/gi);for(let d=0;d<h.length;d++){const c=d*i-i*(h.length-1)/2,k=o.append("text").attr("x",u+y/2).attr("y",p).attr("fill",f).style("text-anchor","middle").style("font-size",i).style("font-family",l);k.append("tspan").attr("x",u+y/2).attr("dy",c).text(h[d]),k.attr("y",p+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(k,b)}}r(t,"byTspan");function e(s,o,u,p,y,m,b,g){const f=o.append("switch"),i=f.append("foreignObject").attr("x",u).attr("y",p).attr("width",y).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");i.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,f,u,p,y,m,b,g),a(i,b)}r(e,"byFo");function a(s,o){for(const u in o)u in o&&s.attr(u,o[u])}return r(a,"_setTextAttrs"),function(s){return s.textPlacement==="fo"?e:s.textPlacement==="old"?n:t}}(),Rt=r(function(n){n.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function Q(n,t){n.each(function(){var e=U(this),a=e.text().split(/(\s+|<br>)/).reverse(),s,o=[],u=1.1,p=e.attr("y"),y=parseFloat(e.attr("dy")),m=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("dy",y+"em");for(let b=0;b<a.length;b++)s=a[a.length-1-b],o.push(s),m.text(o.join(" ").trim()),(m.node().getComputedTextLength()>t||s==="<br>")&&(o.pop(),m.text(o.join(" ").trim()),s==="<br>"?o=[""]:o=[s],m=e.append("tspan").attr("x",0).attr("y",p).attr("dy",u+"em").text(s))})}r(Q,"wrap");var Ht=r(function(n,t,e,a){var s;const o=e%Tt-1,u=n.append("g");t.section=o,u.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+o));const p=u.append("g"),y=u.append("g"),m=y.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Q,t.width).node().getBBox(),b=(s=a.fontSize)!=null&&s.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=m.height+b*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,y.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),Pt(p,t,o,a),t},"drawNode"),Dt=r(function(n,t,e){var a;const s=n.append("g"),o=s.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Q,t.width).node().getBBox(),u=(a=e.fontSize)!=null&&a.replace?e.fontSize.replace("px",""):e.fontSize;return s.remove(),o.height+u*1.1*.5+t.padding},"getVirtualNodeHeight"),Pt=r(function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+10} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),H={drawRect:Z,drawCircle:At,drawSection:Ct,drawText:gt,drawLabel:Nt,drawTask:It,drawBackgroundRect:Ot,getTextObj:Lt,getNoteRect:K,initGraphics:Rt,drawNode:Ht,getVirtualNodeHeight:Dt},jt=r(function(n,t,e,a){var s,o,u;const p=mt(),y=((s=p.timeline)==null?void 0:s.leftMargin)??50;$.debug("timeline",a.db);const m=p.securityLevel;let b;m==="sandbox"&&(b=U("#i"+t));const g=(m==="sandbox"?U(b.nodes()[0].contentDocument.body):U("body")).select("#"+t);g.append("g");const f=a.db.getTasks(),i=a.db.getCommonDb().getDiagramTitle();$.debug("task",f),H.initGraphics(g);const l=a.db.getSections();$.debug("sections",l);let h=0,d=0,c=0,k=0,x=50+y,N=50;k=50;let M=0,W=!0;l.forEach(function(S){const v={number:M,descr:S,section:M,width:150,padding:20,maxHeight:h},A=H.getVirtualNodeHeight(g,v,p);$.debug("sectionHeight before draw",A),h=Math.max(h,A+20)});let I=0,D=0;$.debug("tasks.length",f.length);for(const[S,v]of f.entries()){const A={number:S,descr:v,section:v.section,width:150,padding:20,maxHeight:d},O=H.getVirtualNodeHeight(g,A,p);$.debug("taskHeight before draw",O),d=Math.max(d,O+20),I=Math.max(I,v.events.length);let L=0;for(const P of v.events){const w={descr:P,section:v.section,number:v.section,width:150,padding:20,maxHeight:50};L+=H.getVirtualNodeHeight(g,w,p)}v.events.length>0&&(L+=(v.events.length-1)*10),D=Math.max(D,L)}$.debug("maxSectionHeight before draw",h),$.debug("maxTaskHeight before draw",d),l&&l.length>0?l.forEach(S=>{const v=f.filter(P=>P.section===S),A={number:M,descr:S,section:M,width:200*Math.max(v.length,1)-50,padding:20,maxHeight:h};$.debug("sectionNode",A);const O=g.append("g"),L=H.drawNode(O,A,M,p);$.debug("sectionNode output",L),O.attr("transform",`translate(${x}, ${k})`),N+=h+50,v.length>0&&it(g,v,M,x,N,d,p,I,D,h,!1),x+=200*Math.max(v.length,1),N=k,M++}):(W=!1,it(g,f,M,x,N,d,p,I,D,h,!0));const _=g.node().getBBox();$.debug("bounds",_),i&&g.append("text").text(i).attr("x",_.width/2-y).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),c=W?h+d+150:d+100,g.append("g").attr("class","lineWrapper").append("line").attr("x1",y).attr("y1",c).attr("x2",_.width+3*y).attr("y2",c).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),xt(void 0,g,((o=p.timeline)==null?void 0:o.padding)??50,((u=p.timeline)==null?void 0:u.useMaxWidth)??!1)},"draw"),it=r(function(n,t,e,a,s,o,u,p,y,m,b){var g;for(const f of t){const i={descr:f.task,section:e,number:e,width:150,padding:20,maxHeight:o};$.debug("taskNode",i);const l=n.append("g").attr("class","taskWrapper"),h=H.drawNode(l,i,e,u).height;if($.debug("taskHeight after draw",h),l.attr("transform",`translate(${a}, ${s})`),o=Math.max(o,h),f.events){const d=n.append("g").attr("class","lineWrapper");let c=o;s+=100,c=c+Bt(n,f.events,e,a,s,u),s-=100,d.append("line").attr("x1",a+190/2).attr("y1",s+o).attr("x2",a+190/2).attr("y2",s+o+100+y+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a=a+200,b&&!((g=u.timeline)!=null&&g.disableMulticolor)&&e++}s=s-10},"drawTasks"),Bt=r(function(n,t,e,a,s,o){let u=0;const p=s;s=s+100;for(const y of t){const m={descr:y,section:e,number:e,width:150,padding:20,maxHeight:50};$.debug("eventNode",m);const b=n.append("g").attr("class","eventWrapper"),g=H.drawNode(b,m,e,o).height;u=u+g,b.attr("transform",`translate(${a}, ${s})`),s=s+10+g}return s=p,u},"drawEvents"),Ft={setConf:r(()=>{},"setConf"),draw:jt},Wt=r(n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],bt(n["lineColor"+e])?n["lineColor"+e]=kt(n["lineColor"+e],20):n["lineColor"+e]=_t(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const a=""+(17-3*e);t+=`
7
7
  .section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path {
8
8
  fill: ${n["cScale"+e]};
9
9
  }