PageSourceSearch

https://firodocs.pages.dev/assets/js/8089.512ba88b.js

js firodocs.pages.dev collected 2026-10-03 05:14:36 UTC 22,961 bytes, 134 lines download raw bytes

1"use strict";(self.webpackChunkmy_docs=self.webpackChunkmy_docs||[]).push([["8089"],{8256(t,e,i){i.d(e,{diagram:()=>Y});var n=i(4918),s=i(2389),r=i(6149);i(1293);var a=i(6827),l=i(7829),o=function(){var t=(0,a.K)(function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},"o"),e=[6,8,10,11,12,14,16,17,18],i=[1,9],n=[1,10],s=[1,11],r=[1,12],l=[1,13],o=[1,14],c={trace:(0,a.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey: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,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",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",18:"taskName",19:"taskData"},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,2]],performAction:(0,a.K)(function(t,e,i,n,s,r,a){var l=r.length-1;switch(s){case 1:return r[l-1];case 2:case 6:case 7:this.$=[];break;case 3:r[l-1].push(r[l]),this.$=r[l-1];break;case 4:case 5:this.$=r[l];break;case 8:n.setDiagramTitle(r[l].substr(6)),this.$=r[l].substr(6);break;case 9:this.$=r[l].trim(),n.setAccTitle(this.$);break;case 10:case 11:this.$=r[l].trim(),n.setAccDescription(this.$);break;case 12:n.addSection(r[l].substr(8)),this.$=r[l].substr(8);break;case 13:n.addTask(r[l-1],r[l]),this.$="task"}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:n,14:s,16:r,17:l,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:n,14:s,16:r,17:l,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:(0,a.K)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,a.K)(function(t){var e=this,i=[0],n=[],s=[null],r=[],l=this.table,o="",c=0,h=0,u=0,p=r.slice.call(arguments,1),y=Object.create(this.lexer),d={};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(d[f]=this.yy[f]);y.setInput(t,d),d.lexer=y,d.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;r.push(g);var m=y.options&&y.options.ranges;function x(){var t;return"number"!=typeof(t=n.pop()||y.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,a.K)(function(t){i.length=i.length-2*t,s.length=s.length-t,r.length=r.length-t},"popStack"),(0,a.K)(x,"lex");for(var k,_,b,v,$,K,w,M,T,S={};;){if(b=i[i.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==k&&(k=x()),v=l[b]&&l[b][k]),void 0===v||!v.length||!v[0]){var E="";for(K in T=[],l[b])this.terminals_[K]&&K>2&&T.push("'"+this.terminals_[K]+"'");E=y.showPosition?"Parse error on line "+(c+1)+":\n"+y.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(E,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:g,expected:T})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+k);switch(v[0]){case 1:i.push(k),s.push(y.yytext),r.push(y.yylloc),i.push(v[1]),k=null,_?(k=_,_=null):(h=y.yyleng,o=y.yytext,c=y.yylineno,g=y.yylloc,u>0&&u--);break;case 2:if(w=this.productions_[v[1]][1],S.$=s[s.length-w],S._$={first_line:r[r.length-(w||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(w||1)].first_column,last_column:r[r.length-1].last_column},m&&(S._$.range=[r[r.length-(w||1)].range[0],r[r.length-1].range[1]]),void 0!==($=this.performAction.apply(S,[o,h,c,d,v[1],s,r].concat(p))))return $;w&&(i=i.slice(0,-1*w*2),s=s.slice(0,-1*w),r=r.slice(0,-1*w)),i.push(this.productions_[v[1]][0]),s.push(S.$),r.push(S._$),M=l[i[i.length-2]][i[i.length-1]],i.push(M);break;case 3:return!0}}return!0},"parse")};function h(){this.yy={}}return c.lexer={EOF:1,parseError:(0,a.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,a.K)(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},"setInput"),input:(0,a.K)(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},"input"),unput:(0,a.K)(function(t){var e=t.length,i=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 n=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),i.length-1&&(this.yylineno-=i.length-1);var s=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:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,a.K)(function(){return this._more=!0,this},"more"),reject:(0,a.K)(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})},"reject"),less:(0,a.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,a.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,a.K)(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,"")},"upcomingInput"),showPosition:(0,a.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,a.K)(function(t,e){var i,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in s)this[r]=s[r];return!1},"test_match"),next:(0,a.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,n,s=this._currentRules(),r=0;r<s.length;r++)if((i=this._input.match(this.rules[s[r]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,s[r])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[n]))&&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})},"next"),lex:(0,a.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,a.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,a.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,a.K)(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:(0,a.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,a.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,a.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0}
1,performAction:(0,a.K)(function(t,e,i,n){switch(i){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 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\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,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/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,19],inclusive:!0}}},(0,a.K)(h,"Parser"),h.prototype=c,c.Parser=h,new h}();o.parser=o;var c="",h=[],u=[],p=[],y=(0,a.K)(function(){h.length=0,u.length=0,c="",p.length=0,(0,r.IU)()},"clear"),d=(0,a.K)(function(t){c=t,h.push(t)},"addSection"),f=(0,a.K)(function(){return h},"getSections"),g=(0,a.K)(function(){let t=_(),e=0;for(;!t&&e<100;)t=_(),e++;return u.push(...p),u},"getTasks"),m=(0,a.K)(function(){let t=[];return u.forEach(e=>{e.people&&t.push(...e.people)}),[...new Set(t)].sort()},"updateActors"),x=(0,a.K)(function(t,e){let i=e.substr(1).split(":"),n=0,s=[];1===i.length?(n=Number(i[0]),s=[]):(n=Number(i[0]),s=i[1].split(","));let r=s.map(t=>t.trim()),a={section:c,type:c,people:r,task:t,score:n};p.push(a)},"addTask"),k=(0,a.K)(function(t){let e={section:c,type:c,description:t,task:t,classes:[]};u.push(e)},"addTaskOrg"),_=(0,a.K)(function(){let t=(0,a.K)(function(t){return p[t].processed},"compileTask"),e=!0;for(let[i,n]of p.entries())t(i),e=e&&n.processed;return e},"compileTasks"),b=(0,a.K)(function(){return m()},"getActors"),v={getConfig:(0,a.K)(()=>(0,r.D7)().journey,"getConfig"),clear:y,setDiagramTitle:r.ke,getDiagramTitle:r.ab,setAccTitle:r.SV,getAccTitle:r.iN,setAccDescription:r.EI,getAccDescription:r.m7,addSection:d,getSections:f,getTasks:g,addTask:x,addTaskOrg:k,getActors:b},$=(0,a.K)(t=>`.label {
2    font-family: ${t.fontFamily};
3    color: ${t.textColor};
4  }
5  .mouth {
6    stroke: #666;
7  }
8
9  line {
10    stroke: ${t.textColor}
11  }
12
13  .legend {
14    fill: ${t.textColor};
15    font-family: ${t.fontFamily};
16  }
17
18  .label text {
19    fill: #333;
20  }
21  .label {
22    color: ${t.textColor}
23  }
24
25  .face {
26    ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
27    stroke: #999;
28  }
29
30  .node rect,
31  .node circle,
32  .node ellipse,
33  .node polygon,
34  .node path {
35    fill: ${t.mainBkg};
36    stroke: ${t.nodeBorder};
37    stroke-width: 1px;
38  }
39
40  .node .label {
41    text-align: center;
42  }
43  .node.clickable {
44    cursor: pointer;
45  }
46
47  .arrowheadPath {
48    fill: ${t.arrowheadColor};
49  }
50
51  .edgePath .path {
52    stroke: ${t.lineColor};
53    stroke-width: 1.5px;
54  }
55
56  .flowchart-link {
57    stroke: ${t.lineColor};
58    fill: none;
59  }
60
61  .edgeLabel {
62    background-color: ${t.edgeLabelBackground};
63    rect {
64      opacity: 0.5;
65    }
66    text-align: center;
67  }
68
69  .cluster rect {
70  }
71
72  .cluster text {
73    fill: ${t.titleColor};
74  }
75
76  div.mermaidTooltip {
77    position: absolute;
78    text-align: center;
79    max-width: 200px;
80    padding: 2px;
81    font-family: ${t.fontFamily};
82    font-size: 12px;
83    background: ${t.tertiaryColor};
84    border: 1px solid ${t.border2};
85    border-radius: 2px;
86    pointer-events: none;
87    z-index: 100;
88  }
89
90  .task-type-0, .section-type-0  {
91    ${t.fillType0?`fill: ${t.fillType0}`:""};
92  }
93  .task-type-1, .section-type-1  {
94    ${t.fillType0?`fill: ${t.fillType1}`:""};
95  }
96  .task-type-2, .section-type-2  {
97    ${t.fillType0?`fill: ${t.fillType2}`:""};
98  }
99  .task-type-3, .section-type-3  {
100    ${t.fillType0?`fill: ${t.fillType3}`:""};
101  }
102  .task-type-4, .section-type-4  {
103    ${t.fillType0?`fill: ${t.fillType4}`:""};
104  }
105  .task-type-5, .section-type-5  {
106    ${t.fillType0?`fill: ${t.fillType5}`:""};
107  }
108  .task-type-6, .section-type-6  {
109    ${t.fillType0?`fill: ${t.fillType6}`:""};
110  }
111  .task-type-7, .section-type-7  {
112    ${t.fillType0?`fill: ${t.fillType7}`:""};
113  }
114
115  .actor-0 {
116    ${t.actor0?`fill: ${t.actor0}`:""};
117  }
118  .actor-1 {
119    ${t.actor1?`fill: ${t.actor1}`:""};
120  }
121  .actor-2 {
122    ${t.actor2?`fill: ${t.actor2}`:""};
123  }
124  .actor-3 {
125    ${t.actor3?`fill: ${t.actor3}`:""};
126  }
127  .actor-4 {
128    ${t.actor4?`fill: ${t.actor4}`:""};
129  }
130  .actor-5 {
131    ${t.actor5?`fill: ${t.actor5}`:""};
132  }
133  ${(0,n.o)()}
134`,"getStyles"),K=(0,a.K)(function(t,e){return(0,s.tk)(t,e)},"drawRect"),w=(0,a.K)(function(t,e){let i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");function s(t){let i=(0,l.JLW)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function r(t){let i=(0,l.JLW)().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",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function o(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")}return n.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"),n.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"),(0,a.K)(s,"smile"),(0,a.K)(r,"sad"),(0,a.K)(o,"ambivalent"),e.score>3?s(n):e.score<3?r(n):o(n),i}
134,"drawFace"),M=(0,a.K)(function(t,e){let i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),void 0!==i.class&&i.attr("class",i.class),void 0!==e.title&&i.append("title").text(e.title),i},"drawCircle"),T=(0,a.K)(function(t,e){return(0,s.m)(t,e)},"drawText"),S=(0,a.K)(function(t,e,i){let n=t.append("g"),r=(0,s.PB)();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=i.width*e.taskCount+i.diagramMarginX*(e.taskCount-1),r.height=i.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,K(n,r),I(i)(e.text,n,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},i,e.colour)},"drawSection"),E=-1,C=(0,a.K)(function(t,e,i,n){let r=e.x+i.width/2,a=t.append("g");E++,a.append("line").attr("id",n+"-task"+E).attr("x1",r).attr("y1",e.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),w(a,{cx:r,cy:300+(5-e.score)*30,score:e.score});let l=(0,s.PB)();l.x=e.x,l.y=e.y,l.fill=e.fill,l.width=i.width,l.height=i.height,l.class="task task-type-"+e.num,l.rx=3,l.ry=3,K(a,l);let o=e.x+14;e.people.forEach(t=>{let i=e.actors[t].color;M(a,{cx:o,cy:e.y,r:7,fill:i,stroke:"#000",title:t,pos:e.actors[t].position}),o+=10}),I(i)(e.task,a,l.x,l.y,l.width,l.height,{class:"task"},i,e.colour)},"drawTask"),I=function(){function t(t,e,i,s,r,a,l,o){n(e.append("text").attr("x",i+r/2).attr("y",s+a/2+5).style("font-color",o).style("text-anchor","middle").text(t),l)}function e(t,e,i,s,r,a,l,o,c){let{taskFontSize:h,taskFontFamily:u}=o,p=t.split(/<br\s*\/?>/gi);for(let t=0;t<p.length;t++){let o=t*h-h*(p.length-1)/2,y=e.append("text").attr("x",i+r/2).attr("y",s).attr("fill",c).style("text-anchor","middle").style("font-size",h).style("font-family",u);y.append("tspan").attr("x",i+r/2).attr("dy",o).text(p[t]),y.attr("y",s+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(y,l)}}function i(t,i,s,r,a,l,o,c){let h=i.append("switch"),u=h.append("foreignObject").attr("x",s).attr("y",r).attr("width",a).attr("height",l).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,s,r,a,l,o,c),n(u,o)}function n(t,e){for(let i in e)i in e&&t.attr(i,e[i])}return(0,a.K)(t,"byText"),(0,a.K)(e,"byTspan"),(0,a.K)(i,"byFo"),(0,a.K)(n,"_setTextAttrs"),function(n){return"fo"===n.textPlacement?i:"old"===n.textPlacement?t:e}}(),P=(0,a.K)(function(t,e){E=-1,t.append("defs").append("marker").attr("id",e+"-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"),A=(0,a.K)(function(t){Object.keys(t).forEach(function(e){L[e]=t[e]})},"setConf"),j={},V=0;function D(t){let e=(0,r.D7)().journey,i=e.maxLabelWidth;V=0;let n=60;Object.keys(j).forEach(s=>{let r=j[s].color;M(t,{cx:20,cy:n,r:7,fill:r,stroke:"#000",pos:j[s].position});let a=t.append("text").attr("visibility","hidden").text(s),l=a.node().getBoundingClientRect().width;a.remove();let o=[];if(l<=i)o=[s];else{let e=s.split(" "),n="";a=t.append("text").attr("visibility","hidden"),e.forEach(t=>{let e=n?`${n} ${t}`:t;if(a.text(e),a.node().getBoundingClientRect().width>i){if(n&&o.push(n),n=t,a.text(t),a.node().getBoundingClientRect().width>i){let e="";for(let n of t)e+=n,a.text(e+"-"),a.node().getBoundingClientRect().width>i&&(o.push(e.slice(0,-1)+"-"),e=n);n=e}}else n=e}),n&&o.push(n),a.remove()}o.forEach((i,s)=>{let r=T(t,{x:40,y:n+7+20*s,fill:"#666",text:i,textMargin:e.boxTextMargin??5}).node().getBoundingClientRect().width;r>V&&r>e.leftMargin-r&&(V=r)}),n+=Math.max(20,20*o.length)})}(0,a.K)(D,"drawActorLegend");var L=(0,r.D7)().journey,B=0,F=(0,a.K)(function(t,e,i,n){let s,a=(0,r.D7)(),o=a.journey.titleColor,c=a.journey.titleFontSize,h=a.journey.titleFontFamily,u=a.securityLevel;"sandbox"===u&&(s=(0,l.Ltv)("#i"+e));let p="sandbox"===u?(0,l.Ltv)(s.nodes()[0].contentDocument.body):(0,l.Ltv)("body");O.init();let y=p.select("#"+e);P(y,e);let d=n.db.getTasks(),f=n.db.getDiagramTitle(),g=n.db.getActors();for(let t in j)delete j[t];let m=0;g.forEach(t=>{j[t]={color:L.actorColours[m%L.actorColours.length],position:m},m++}),D(y),B=L.leftMargin+V,O.insert(0,0,B,50*Object.keys(j).length),z(y,d,0,e);let x=O.getBounds();f&&y.append("text").text(f).attr("x",B).attr("font-size",c).attr("font-weight","bold").attr("y",25).attr("fill",o).attr("font-family",h);
134let k=x.stopy-x.starty+2*L.diagramMarginY,_=B+x.stopx+2*L.diagramMarginX;(0,r.a$)(y,k,_,L.useMaxWidth),y.append("line").attr("x1",B).attr("y1",4*L.height).attr("x2",_-B-4).attr("y2",4*L.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");let b=70*!!f;y.attr("viewBox",`${x.startx} -25 ${_} ${k+b}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",k+b+25)},"draw"),O={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:(0,a.K)(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:(0,a.K)(function(t,e,i,n){void 0===t[e]?t[e]=i:t[e]=n(i,t[e])},"updateVal"),updateBounds:(0,a.K)(function(t,e,i,n){let s=(0,r.D7)().journey,l=this,o=0;function c(r){return(0,a.K)(function(a){o++;let c=l.sequenceItems.length-o+1;l.updateVal(a,"starty",e-c*s.boxMargin,Math.min),l.updateVal(a,"stopy",n+c*s.boxMargin,Math.max),l.updateVal(O.data,"startx",t-c*s.boxMargin,Math.min),l.updateVal(O.data,"stopx",i+c*s.boxMargin,Math.max),"activation"!==r&&(l.updateVal(a,"startx",t-c*s.boxMargin,Math.min),l.updateVal(a,"stopx",i+c*s.boxMargin,Math.max),l.updateVal(O.data,"starty",e-c*s.boxMargin,Math.min),l.updateVal(O.data,"stopy",n+c*s.boxMargin,Math.max))},"updateItemBounds")}(0,a.K)(c,"updateFn"),this.sequenceItems.forEach(c())},"updateBounds"),insert:(0,a.K)(function(t,e,i,n){let s=Math.min(t,i),r=Math.max(t,i),a=Math.min(e,n),l=Math.max(e,n);this.updateVal(O.data,"startx",s,Math.min),this.updateVal(O.data,"starty",a,Math.min),this.updateVal(O.data,"stopx",r,Math.max),this.updateVal(O.data,"stopy",l,Math.max),this.updateBounds(s,a,r,l)},"insert"),bumpVerticalPos:(0,a.K)(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:(0,a.K)(function(){return this.verticalPos},"getVerticalPos"),getBounds:(0,a.K)(function(){return this.data},"getBounds")},N=L.sectionFills,R=L.sectionColours,z=(0,a.K)(function(t,e,i,n){let s=(0,r.D7)().journey,a="",l=i+(2*s.height+s.diagramMarginY),o=0,c="#CCC",h="black",u=0;for(let[i,r]of e.entries()){if(a!==r.section){c=N[o%N.length],u=o%N.length,h=R[o%R.length];let n=0,l=r.section;for(let t=i;t<e.length;t++)if(e[t].section==l)n+=1;else break;S(t,{x:i*s.taskMargin+i*s.width+B,y:50,text:r.section,fill:c,num:u,colour:h,taskCount:n},s),a=r.section,o++}let p=r.people.reduce((t,e)=>(j[e]&&(t[e]=j[e]),t),{});r.x=i*s.taskMargin+i*s.width+B,r.y=l,r.width=s.diagramMarginX,r.height=s.diagramMarginY,r.colour=h,r.fill=c,r.num=u,r.actors=p,C(t,r,s,n),O.insert(r.x,r.y,r.x+r.width+s.taskMargin,450)}},"drawTasks"),W={setConf:A,draw:F},Y={parser:o,db:v,renderer:W,styles:$,init:(0,a.K)(t=>{W.setConf(t.journey),v.clear()},"init")}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.