You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
22 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4517],{64517:function(t,e,n){n.d(e,{diagram:function(){return O}});var i=n(51893),r=n(36783),a=n(62985),s=n(11679),l=n(59554);n(89539),n(99824),n(68985);var c=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[6,8,10,11,12,14,16,17,20,21],n=[1,9],i=[1,10],r=[1,11],a=[1,12],s=[1,13],l=[1,16],c=[1,17],o={trace:function(){},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:function(t,e,n,i,r,a,s){var l=a.length-1;switch(r){case 1:return a[l-1];case 2:case 6:case 7:this.$=[];break;case 3:a[l-1].push(a[l]),this.$=a[l-1];break;case 4:case 5:this.$=a[l];break;case 8:i.getCommonDb().setDiagramTitle(a[l].substr(6)),this.$=a[l].substr(6);break;case 9:this.$=a[l].trim(),i.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=a[l].trim(),i.getCommonDb().setAccDescription(this.$);break;case 12:i.addSection(a[l].substr(8)),this.$=a[l].substr(8);break;case 15:i.addTask(a[l],0,""),this.$=a[l];break;case 16:i.addEvent(a[l].substr(2)),this.$=a[l]}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:i,14:r,16:a,17:s,18:14,19:15,20:l,21:c},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:18,11:n,12:i,14:r,16:a,17:s,18:14,19:15,20:l,21:c},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,19]},{15:[1,20]},t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,4]),t(e,[2,9]),t(e,[2,10])],defaultActions:{},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,l="",c=0,o=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),u={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(u.yy[p]=this.yy[p]);d.setInput(t,u.yy),u.yy.lexer=d,u.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var y=d.yylloc;a.push(y);var g=d.options&&d.options.ranges;"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var f,m,x,_,b,k,v,w,S={};;){if(m=n[n.length-1],this.defaultActions[m]?x=this.defaultActions[m]:(null==f&&(f=function(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}()),x=s[m]&&s[m][f]),void 0===x||!x.length||!x[0]){var E="";for(b in w=[],s[m])this.terminals_[b]&&b>2&&w.push("'"+this.terminals_[b]+"'");E=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(E,{text:d.match,token:this.terminals_[f]||f,line:d.yylineno,loc:y,expected:w})}if(x[0]instanceof Array&&x.length>1)throw Error("Parse Error: multiple actions possible at state: "+m+", token: "+f);switch(x[0]){case 1:n.push(f),r.push(d.yytext),a.push(d.yylloc),n.push(x[1]),f=null,o=d.yyleng,l=d.yytext,c=d.yylineno,y=d.yylloc;break;case 2:if(k=this.productions_[x[1]][1],S.$=r[r.length-k],S._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(S._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(_=this.performAction.apply(S,[l,o,c,u.yy,x[1],r,a].concat(h))))return _;k&&(n=n.slice(0,-1*k*2),r=r.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[x[1]][0]),r.push(S.$),a.push(S._$),v=s[n[n.length-2]][n[n.length-1]],n.push(v);break;case 3:return!0}}return!0}};function h(){this.yy={}}return o.lexer={EOF:1,parseError:function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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 r=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===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={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&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var a in r)this[a]=r[a];return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,i,r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 10;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"}},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;]+)/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}}},h.prototype=o,o.Parser=h,new h}();c.parser=c;let o="",h=0,d=[],u=[],p=[],y=()=>i.K,g=function(){d.length=0,u.length=0,o="",p.length=0,(0,i.t)()},f=function(t){o=t,d.push(t)},m=function(){return d},x=function(){let t=v(),e=0;for(;!t&&e<100;)t=v(),e++;return u.push(...p),u},_=function(t,e,n){let i={id:h++,section:o,type:o,task:t,score:e||0,events:n?[n]:[]};p.push(i)},b=function(t){p.find(t=>t.id===h-1).events.push(t)},k=function(t){let e={section:o,type:o,description:t,task:t,classes:[]};u.push(e)},v=function(){let t=!0;for(let[e,n]of p.entries())p[e].processed,t=t&&n.processed;return t},w=Object.freeze(Object.defineProperty({__proto__:null,addEvent:b,addSection:f,addTask:_,addTaskOrg:k,clear:g,default:{clear:g,getCommonDb:y,addSection:f,getSections:m,getTasks:x,addTask:_,addTaskOrg:k,addEvent:b},getCommonDb:y,getSections:m,getTasks:x},Symbol.toStringTag,{value:"Module"})),S=function(t,e){let n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},E=function(t,e){let n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");return i.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),e.score>3?function(t){let n=(0,r.Nb1)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}(i):e.score<3?function(t){let n=(0,r.Nb1)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}(i):function(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(i),n},I=function(t,e){let n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);let r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i},M=-1,N=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},A=function(){function t(t,e,n,r,a,s,l,c){i(e.append("text").attr("x",n+a/2).attr("y",r+s/2+5).style("font-color",c).style("text-anchor","middle").text(t),l)}function e(t,e,n,r,a,s,l,c,o){let{taskFontSize:h,taskFontFamily:d}=c,u=t.split(/<br\s*\/?>/gi);for(let t=0;t<u.length;t++){let c=t*h-h*(u.length-1)/2,p=e.append("text").attr("x",n+a/2).attr("y",r).attr("fill",o).style("text-anchor","middle").style("font-size",h).style("font-family",d);p.append("tspan").attr("x",n+a/2).attr("dy",c).text(u[t]),p.attr("y",r+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(p,l)}}function n(t,n,r,a,s,l,c,o){let h=n.append("switch"),d=h.append("foreignObject").attr("x",r).attr("y",a).attr("width",s).attr("height",l).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,r,a,s,l,c,o),i(d,c)}function i(t,e){for(let n in e)n in e&&t.attr(n,e[n])}return function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}();function L(t,e){t.each(function(){var t,n=(0,r.Ys)(this),i=n.text().split(/(\s+|<br>)/).reverse(),a=[],s=n.attr("y"),l=parseFloat(n.attr("dy")),c=n.text(null).append("tspan").attr("x",0).attr("y",s).attr("dy",l+"em");for(let r=0;r<i.length;r++)t=i[i.length-1-r],a.push(t),c.text(a.join(" ").trim()),(c.node().getComputedTextLength()>e||"<br>"===t)&&(a.pop(),c.text(a.join(" ").trim()),a="<br>"===t?[""]:[t],c=n.append("tspan").attr("x",0).attr("y",s).attr("dy","1.1em").text(t))})}let C=function(t,e,n){t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("d","M0 ".concat(e.height-5," v").concat(-e.height+10," q0,-5 5,-5 h").concat(e.width-10," q5,0 5,5 v").concat(e.height-5," H0 Z")),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},H={drawRect:S,drawCircle:function(t,e){let n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},drawSection:function(t,e,n){let i=t.append("g"),r=N();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,S(i,r),A(n)(e.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},n,e.colour)},drawText:I,drawLabel:function(t,e){var n,i;let r=t.append("polygon");r.attr("points",(n=e.x)+","+(i=e.y)+" "+(n+50)+","+i+" "+(n+50)+","+(i+20-7)+" "+(n+50-8.4)+","+(i+20)+" "+n+","+(i+20)),r.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,I(t,e)},drawTask:function(t,e,n){let i=e.x+n.width/2,r=t.append("g");M++,r.append("line").attr("id","task"+M).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),E(r,{cx:i,cy:300+(5-e.score)*30,score:e.score});let a=N();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=n.width,a.height=n.height,a.class="task task-type-"+e.num,a.rx=3,a.ry=3,S(r,a),e.x,A(n)(e.task,r,a.x,a.y,a.width,a.height,{class:"task"},n,e.colour)},drawBackgroundRect:function(t,e){S(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},getTextObj:function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},getNoteRect:N,initGraphics:function(t){t.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")},drawNode:function(t,e,n,i){let r=n%12-1,a=t.append("g");e.section=r,a.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+r);let s=a.append("g"),l=a.append("g"),c=l.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(L,e.width).node().getBBox(),o=i.fontSize&&i.fontSize.replace?i.fontSize.replace("px",""):i.fontSize;return e.height=c.height+.55*o+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,l.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),C(s,e,r),e},getVirtualNodeHeight:function(t,e,n){let i=t.append("g"),r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(L,e.width).node().getBBox(),a=n.fontSize&&n.fontSize.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+.55*a+e.padding}},P=function(t,e,n,r,a,s,l,c,o,h,d){var u;for(let c of e){let e={descr:c.task,section:n,number:n,width:150,padding:20,maxHeight:s};i.l.debug("taskNode",e);let p=t.append("g").attr("class","taskWrapper"),y=H.drawNode(p,e,n,l).height;if(i.l.debug("taskHeight after draw",y),p.attr("transform","translate(".concat(r,", ").concat(a,")")),s=Math.max(s,y),c.events){let e=t.append("g").attr("class","lineWrapper");a+=100,T(t,c.events,n,r,a,l),a-=100,e.append("line").attr("x1",r+95).attr("y1",a+s).attr("x2",r+95).attr("y2",a+s+(d?s:h)+o+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}r+=200,d&&!(null==(u=l.timeline)?void 0:u.disableMulticolor)&&n++}},T=function(t,e,n,r,a,s){let l=0,c=a;for(let c of(a+=100,e)){let e={descr:c,section:n,number:n,width:150,padding:20,maxHeight:50};i.l.debug("eventNode",e);let o=t.append("g").attr("class","eventWrapper"),h=H.drawNode(o,e,n,s).height;l+=h,o.attr("transform","translate(".concat(r,", ").concat(a,")")),a=a+10+h}return a=c,l},$=t=>{let e="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],(0,a.Z)(t["lineColor"+e])?t["lineColor"+e]=(0,s.Z)(t["lineColor"+e],20):t["lineColor"+e]=(0,l.Z)(t["lineColor"+e],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){let i=""+(17-3*n);e+="\n .section-".concat(n-1," rect, .section-").concat(n-1," path, .section-").concat(n-1," circle, .section-").concat(n-1," path {\n fill: ").concat(t["cScale"+n],";\n }\n .section-").concat(n-1," text {\n fill: ").concat(t["cScaleLabel"+n],";\n }\n .node-icon-").concat(n-1," {\n font-size: 40px;\n color: ").concat(t["cScaleLabel"+n],";\n }\n .section-edge-").concat(n-1,"{\n stroke: ").concat(t["cScale"+n],";\n }\n .edge-depth-").concat(n-1,"{\n stroke-width: ").concat(i,";\n }\n .section-").concat(n-1," line {\n stroke: ").concat(t["cScaleInv"+n]," ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ").concat(t["cScaleLabel"+n]," ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n ")}return e},O={db:w,renderer:{setConf:()=>{},draw:function(t,e,n,a){var s,l,c,o,h;let d;let u=(0,i.c)(),p=null!==(c=u.leftMargin)&&void 0!==c?c:50;i.l.debug("timeline",a.db);let y=u.securityLevel;"sandbox"===y&&(d=(0,r.Ys)("#i"+e));let g=("sandbox"===y?(0,r.Ys)(d.nodes()[0].contentDocument.body):(0,r.Ys)("body")).select("#"+e);g.append("g");let f=a.db.getTasks(),m=a.db.getCommonDb().getDiagramTitle();i.l.debug("task",f),H.initGraphics(g);let x=a.db.getSections();i.l.debug("sections",x);let _=0,b=0,k=0,v=0,w=50+p,S=50;v=50;let E=0,I=!0;x.forEach(function(t){let e={number:E,descr:t,section:E,width:150,padding:20,maxHeight:_},n=H.getVirtualNodeHeight(g,e,u);i.l.debug("sectionHeight before draw",n),_=Math.max(_,n+20)});let M=0,N=0;for(let[t,e]of(i.l.debug("tasks.length",f.length),f.entries())){let n={number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:b},r=H.getVirtualNodeHeight(g,n,u);i.l.debug("taskHeight before draw",r),b=Math.max(b,r+20),M=Math.max(M,e.events.length);let a=0;for(let t=0;t<e.events.length;t++){let n={descr:e.events[t],section:e.section,number:e.section,width:150,padding:20,maxHeight:50};a+=H.getVirtualNodeHeight(g,n,u)}N=Math.max(N,a)}i.l.debug("maxSectionHeight before draw",_),i.l.debug("maxTaskHeight before draw",b),x&&x.length>0?x.forEach(t=>{let e=f.filter(e=>e.section===t),n={number:E,descr:t,section:E,width:200*Math.max(e.length,1)-50,padding:20,maxHeight:_};i.l.debug("sectionNode",n);let r=g.append("g"),a=H.drawNode(r,n,E,u);i.l.debug("sectionNode output",a),r.attr("transform","translate(".concat(w,", ").concat(v,")")),S+=_+50,e.length>0&&P(g,e,E,w,S,b,u,M,N,_,!1),w+=200*Math.max(e.length,1),S=v,E++}):(I=!1,P(g,f,E,w,S,b,u,M,N,_,!0));let A=g.node().getBBox();i.l.debug("bounds",A),m&&g.append("text").text(m).attr("x",A.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),k=I?_+b+150:b+100,g.append("g").attr("class","lineWrapper").append("line").attr("x1",p).attr("y1",k).attr("x2",A.width+3*p).attr("y2",k).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),(0,i.o)(void 0,g,null!==(o=null==(s=u.timeline)?void 0:s.padding)&&void 0!==o?o:50,null!==(h=null==(l=u.timeline)?void 0:l.useMaxWidth)&&void 0!==h&&h)}},parser:c,styles:t=>"\n .edge {\n stroke-width: 3;\n }\n ".concat($(t),"\n .section-root rect, .section-root path, .section-root circle {\n fill: ").concat(t.git0,";\n }\n .section-root text {\n fill: ").concat(t.gitBranchLabel0,";\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n")}}}]);