Update assets

This commit is contained in:
aleDsz 2023-07-19 19:58:40 +00:00 committed by github-actions[bot]
parent 07caffaecb
commit 00834f131d
34 changed files with 88 additions and 69 deletions

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{c as o}from"./chunk-RQT2CUZQ.js";import{h as l}from"./chunk-2YVZDWG7.js";var a=l(o(),1),c=function(e,t){let r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),r.attr("rx",t.rx),r.attr("ry",t.ry),t.attrs!=="undefined"&&t.attrs!==null)for(let n in t.attrs)r.attr(n,t.attrs[n]);return t.class!=="undefined"&&r.attr("class",t.class),r},x=function(e,t){c(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"}).lower()},d=function(e,t){let r=t.text.replace(/<br\s*\/?>/gi," "),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.attr("class","legend"),n.style("text-anchor",t.anchor),t.class!==void 0&&n.attr("class",t.class);let s=n.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),n},f=function(e,t,r,n){let s=e.append("image");s.attr("x",t),s.attr("y",r);var i=(0,a.sanitizeUrl)(n);s.attr("xlink:href",i)},h=function(e,t,r,n){let s=e.append("use");s.attr("x",t),s.attr("y",r);let i=(0,a.sanitizeUrl)(n);s.attr("xlink:href","#"+i)},g=function(){return{x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}},y=function(){return{x:0,y:0,width:100,height:100,fill:void 0,anchor:void 0,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}};export{c as a,x as b,d as c,f as d,h as e,g as f,y as g};
import{c as o}from"./chunk-KU2GO2AH.js";import{h as l}from"./chunk-2YVZDWG7.js";var a=l(o(),1),c=function(e,t){let r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),r.attr("rx",t.rx),r.attr("ry",t.ry),t.attrs!=="undefined"&&t.attrs!==null)for(let n in t.attrs)r.attr(n,t.attrs[n]);return t.class!=="undefined"&&r.attr("class",t.class),r},x=function(e,t){c(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"}).lower()},d=function(e,t){let r=t.text.replace(/<br\s*\/?>/gi," "),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.attr("class","legend"),n.style("text-anchor",t.anchor),t.class!==void 0&&n.attr("class",t.class);let s=n.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),n},f=function(e,t,r,n){let s=e.append("image");s.attr("x",t),s.attr("y",r);var i=(0,a.sanitizeUrl)(n);s.attr("xlink:href",i)},h=function(e,t,r,n){let s=e.append("use");s.attr("x",t),s.attr("y",r);let i=(0,a.sanitizeUrl)(n);s.attr("xlink:href","#"+i)},g=function(){return{x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}},y=function(){return{x:0,y:0,width:100,height:100,fill:void 0,anchor:void 0,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}};export{c as a,x as b,d as c,f as d,h as e,g as f,y as g};

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
import{Ka as N,da as T,ga as v,w as S,y as _}from"./chunk-RQT2CUZQ.js";var C=0,O=function(i,e,t,a,r){let o=function(d){switch(d){case r.db.relationType.AGGREGATION:return"aggregation";case r.db.relationType.EXTENSION:return"extension";case r.db.relationType.COMPOSITION:return"composition";case r.db.relationType.DEPENDENCY:return"dependency";case r.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter(d=>!Number.isNaN(d.y));let l=e.points,g=S().x(function(d){return d.x}).y(function(d){return d.y}).curve(_),s=i.append("path").attr("d",g(l)).attr("id","edge"+C).attr("class","relation"),p="";a.arrowMarkerAbsolute&&(p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\(/g,"\\("),p=p.replace(/\)/g,"\\)")),t.relation.lineType==1&&s.attr("class","relation dashed-line"),t.relation.lineType==10&&s.attr("class","relation dotted-line"),t.relation.type1!=="none"&&s.attr("marker-start","url("+p+"#"+o(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&s.attr("marker-end","url("+p+"#"+o(t.relation.type2)+"End)");let h,n,c=e.points.length,b=N.calcLabelPosition(e.points);h=b.x,n=b.y;let x,m,f,B;if(c%2!==0&&c>1){let d=N.calcCardinalityPosition(t.relation.type1!=="none",e.points,e.points[0]),w=N.calcCardinalityPosition(t.relation.type2!=="none",e.points,e.points[c-1]);T.debug("cardinality_1_point "+JSON.stringify(d)),T.debug("cardinality_2_point "+JSON.stringify(w)),x=d.x,m=d.y,f=w.x,B=w.y}if(t.title!==void 0){let d=i.append("g").attr("class","classLabel"),w=d.append("text").attr("class","label").attr("x",h).attr("y",n).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=w;let y=w.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",y.x-a.padding/2).attr("y",y.y-a.padding/2).attr("width",y.width+a.padding).attr("height",y.height+a.padding)}T.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",x).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",f).attr("y",B).attr("fill","black").attr("font-size","6").text(t.relationTitle2),C++},P=function(i,e,t,a){T.debug("Rendering class ",e,t);let r=e.id,o={id:r,label:e.id,width:0,height:0},l=i.append("g").attr("id",a.db.lookUpDomId(r)).attr("class","classGroup"),g;e.link?g=l.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):g=l.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let s=!0;e.annotations.forEach(function(u){let I=g.append("tspan").text("\xAB"+u+"\xBB");s||I.attr("dy",t.textHeight),s=!1});let p=H(e),h=g.append("tspan").text(p).attr("class","title");s||h.attr("dy",t.textHeight);let n=g.node().getBBox().height,c=l.append("line").attr("x1",0).attr("y1",t.padding+n+t.dividerMargin/2).attr("y2",t.padding+n+t.dividerMargin/2),b=l.append("text").attr("x",t.padding).attr("y",n+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");s=!0,e.members.forEach(function(u){E(b,u,s,t),s=!1});let x=b.node().getBBox(),m=l.append("line").attr("x1",0).attr("y1",t.padding+n+t.dividerMargin+x.height).attr("y2",t.padding+n+t.dividerMargin+x.height),f=l.append("text").attr("x",t.padding).attr("y",n+2*t.dividerMargin+x.height+t.textHeight).attr("fill","white").attr("class","classText");s=!0,e.methods.forEach(function(u){E(f,u,s,t),s=!1});let B=l.node().getBBox();var d=" ";e.cssClasses.length>0&&(d=d+e.cssClasses.join(" "));let y=l.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",B.width+2*t.padding).attr("height",B.height+t.padding+.5*t.dividerMargin).attr("class",d).node().getBBox().width;return g.node().childNodes.forEach(function(u){u.setAttribute("x",(y-u.getBBox().width)/2)}),e.tooltip&&g.insert("title").text(e.tooltip),c.attr("x2",y),m.attr("x2",y),o.width=y,o.height=B.height+t.padding+.5*t.dividerMargin,o},H=function(i){let e=i.id;return i.type&&(e+="<"+i.type+">"),e},A=function(i,e,t,a){T.debug("Rendering note ",e,t);let r=e.id,o={id:r,text:e.text,width:0,height:0},l=i.append("g").attr("id",r).attr("class","classGroup"),g=l.append("text").attr("y",t.textHeight+t.padding).attr("x",0),s=JSON.parse(`"${e.text}"`).split(`
import{Ka as N,da as T,ga as v,w as S,y as _}from"./chunk-KU2GO2AH.js";var C=0,O=function(i,e,t,a,r){let o=function(d){switch(d){case r.db.relationType.AGGREGATION:return"aggregation";case r.db.relationType.EXTENSION:return"extension";case r.db.relationType.COMPOSITION:return"composition";case r.db.relationType.DEPENDENCY:return"dependency";case r.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter(d=>!Number.isNaN(d.y));let l=e.points,g=S().x(function(d){return d.x}).y(function(d){return d.y}).curve(_),s=i.append("path").attr("d",g(l)).attr("id","edge"+C).attr("class","relation"),p="";a.arrowMarkerAbsolute&&(p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\(/g,"\\("),p=p.replace(/\)/g,"\\)")),t.relation.lineType==1&&s.attr("class","relation dashed-line"),t.relation.lineType==10&&s.attr("class","relation dotted-line"),t.relation.type1!=="none"&&s.attr("marker-start","url("+p+"#"+o(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&s.attr("marker-end","url("+p+"#"+o(t.relation.type2)+"End)");let h,n,c=e.points.length,b=N.calcLabelPosition(e.points);h=b.x,n=b.y;let x,m,f,B;if(c%2!==0&&c>1){let d=N.calcCardinalityPosition(t.relation.type1!=="none",e.points,e.points[0]),w=N.calcCardinalityPosition(t.relation.type2!=="none",e.points,e.points[c-1]);T.debug("cardinality_1_point "+JSON.stringify(d)),T.debug("cardinality_2_point "+JSON.stringify(w)),x=d.x,m=d.y,f=w.x,B=w.y}if(t.title!==void 0){let d=i.append("g").attr("class","classLabel"),w=d.append("text").attr("class","label").attr("x",h).attr("y",n).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=w;let y=w.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",y.x-a.padding/2).attr("y",y.y-a.padding/2).attr("width",y.width+a.padding).attr("height",y.height+a.padding)}T.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",x).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",f).attr("y",B).attr("fill","black").attr("font-size","6").text(t.relationTitle2),C++},P=function(i,e,t,a){T.debug("Rendering class ",e,t);let r=e.id,o={id:r,label:e.id,width:0,height:0},l=i.append("g").attr("id",a.db.lookUpDomId(r)).attr("class","classGroup"),g;e.link?g=l.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):g=l.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let s=!0;e.annotations.forEach(function(u){let I=g.append("tspan").text("\xAB"+u+"\xBB");s||I.attr("dy",t.textHeight),s=!1});let p=H(e),h=g.append("tspan").text(p).attr("class","title");s||h.attr("dy",t.textHeight);let n=g.node().getBBox().height,c=l.append("line").attr("x1",0).attr("y1",t.padding+n+t.dividerMargin/2).attr("y2",t.padding+n+t.dividerMargin/2),b=l.append("text").attr("x",t.padding).attr("y",n+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");s=!0,e.members.forEach(function(u){E(b,u,s,t),s=!1});let x=b.node().getBBox(),m=l.append("line").attr("x1",0).attr("y1",t.padding+n+t.dividerMargin+x.height).attr("y2",t.padding+n+t.dividerMargin+x.height),f=l.append("text").attr("x",t.padding).attr("y",n+2*t.dividerMargin+x.height+t.textHeight).attr("fill","white").attr("class","classText");s=!0,e.methods.forEach(function(u){E(f,u,s,t),s=!1});let B=l.node().getBBox();var d=" ";e.cssClasses.length>0&&(d=d+e.cssClasses.join(" "));let y=l.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",B.width+2*t.padding).attr("height",B.height+t.padding+.5*t.dividerMargin).attr("class",d).node().getBBox().width;return g.node().childNodes.forEach(function(u){u.setAttribute("x",(y-u.getBBox().width)/2)}),e.tooltip&&g.insert("title").text(e.tooltip),c.attr("x2",y),m.attr("x2",y),o.width=y,o.height=B.height+t.padding+.5*t.dividerMargin,o},H=function(i){let e=i.id;return i.type&&(e+="<"+i.type+">"),e},A=function(i,e,t,a){T.debug("Rendering note ",e,t);let r=e.id,o={id:r,text:e.text,width:0,height:0},l=i.append("g").attr("id",r).attr("class","classGroup"),g=l.append("text").attr("y",t.textHeight+t.padding).attr("x",0),s=JSON.parse(`"${e.text}"`).split(`
`);s.forEach(function(c){T.debug(`Adding line: ${c}`),g.append("tspan").text(c).attr("class","title").attr("dy",t.textHeight)});let p=l.node().getBBox(),n=l.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",p.width+2*t.padding).attr("height",p.height+s.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return g.node().childNodes.forEach(function(c){c.setAttribute("x",(n-c.getBBox().width)/2)}),o.width=n,o.height=p.height+s.length*t.textHeight+t.padding+.5*t.dividerMargin,o},k=function(i){let e="",t="",a="",r="",o=i.substring(0,1),l=i.substring(i.length-1,i.length);o.match(/[#+~-]/)&&(r=o);let g=/[\s\w)~]/;l.match(g)||(t=M(l));let s=r===""?0:1,p=t===""?i.length:i.length-1;i=i.substring(s,p);let h=i.indexOf("("),n=i.indexOf(")");if(h>1&&n>h&&n<=i.length){let b=i.substring(0,h).trim(),x=i.substring(h+1,n);if(e=r+b+"("+v(x.trim())+")",n<i.length){let m=i.substring(n+1,n+2);t===""&&!m.match(g)?(t=M(m),a=i.substring(n+2).trim()):a=i.substring(n+1).trim(),a!==""&&(a.charAt(0)===":"&&(a=a.substring(1).trim()),a=" : "+v(a),e+=a)}}else e=r+v(i);return{displayText:e,cssStyle:t}},E=function(i,e,t,a){let r=k(e),o=i.append("tspan").attr("x",a.padding).text(r.displayText);r.cssStyle!==""&&o.attr("style",r.cssStyle),t||o.attr("dy",a.textHeight)},M=function(i){switch(i){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},R={getClassTitleString:H,drawClass:P,drawEdge:O,drawNote:A,parseMember:k};export{k as a,R as b};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{Ma as w,a as b,da as x}from"./chunk-RQT2CUZQ.js";import{s as m}from"./chunk-CIZ5P7CP.js";function k(l){let e=l.replace(/\n{2,}/g,`
import{Ma as w,a as b,da as x}from"./chunk-KU2GO2AH.js";import{s as m}from"./chunk-CIZ5P7CP.js";function k(l){let e=l.replace(/\n{2,}/g,`
`);return b(e)}function v(l){let e=k(l),{children:n}=m(e),r=[[]],i=0;function a(t,c="normal"){t.type==="text"?t.value.split(`
`).forEach((s,o)=>{o!==0&&(i++,r.push([])),s.split(" ").forEach(u=>{u&&r[i].push({content:u,type:c})})}):(t.type==="strong"||t.type==="emphasis")&&t.children.forEach(f=>{a(f,t.type)})}return n.forEach(t=>{t.type==="paragraph"&&t.children.forEach(c=>{a(c)})}),r}function $(l){let{children:e}=m(l);function n(r){return r.type==="text"?r.value.replace(/\n/g,"<br/>"):r.type==="strong"?`<strong>${r.children.map(n).join("")}</strong>`:r.type==="emphasis"?`<em>${r.children.map(n).join("")}</em>`:r.type==="paragraph"?`<p>${r.children.map(n).join("")}</p>`:`Unsupported markdown: ${r.type}`}return e.map(n).join("")}function j(l,e){e&&l.attr("style",e)}function C(l,e,n,r,i=!1){let a=l.append("foreignObject"),t=a.append("xhtml:div"),c=e.label,f=e.isNode?"nodeLabel":"edgeLabel";t.html(`
<span class="${f} ${r}" `+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+c+"</span>"),j(t,e.labelStyle),t.style("display","table-cell"),t.style("white-space","nowrap"),t.style("max-width",n+"px"),t.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&t.attr("class","labelBkg");let s=t.node().getBoundingClientRect();return s.width===n&&(t.style("display","table"),t.style("white-space","break-spaces"),t.style("width",n+"px"),s=t.node().getBoundingClientRect()),a.style("width",s.width),a.style("height",s.height),a.node()}function T(l,e,n){return l.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*n-.1+"em").attr("dy",n+"em")}function S(l,e,n){let r=l.append("text"),i=T(r,1,e);E(i,[{content:n,type:"normal"}]);let a=i.node().getComputedTextLength();return r.remove(),a}function H(l,e,n,r=!1){let a=e.append("g"),t=a.insert("rect").attr("class","background"),c=a.append("text").attr("y","-10.1"),f=0;if(n.forEach(s=>{let o=s.map(p=>p.content).join(" "),u="",h=[],d=0;if(S(a,1.1,o)<=l)h.push(o);else{for(let p=0;p<=o.length;p++)if(u=o.slice(d,p),x.info(u,d,p),S(a,1.1,u)>l){let g=o.slice(d,p).lastIndexOf(" ");g>-1&&(p=d+g+1),h.push(o.slice(d,p).trim()),d=p,u=null}u!=null&&h.push(u)}let L=h.map(p=>({content:p,type:s.type}));for(let p of L){let y=T(c,f,1.1);E(y,[p]),f++}}),r){let s=c.node().getBBox(),o=2;return t.attr("x",-o).attr("y",-o).attr("width",s.width+2*o).attr("height",s.height+2*o),a.node()}else return c.node()}function E(l,e){l.text(""),e.forEach((n,r)=>{let i=l.append("tspan").attr("font-style",n.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",n.type==="strong"?"bold":"normal");r===0?i.text(n.content):i.text(" "+n.content)})}var N=(l,e="",{style:n="",isTitle:r=!1,classes:i="",useHtmlLabels:a=!0,isNode:t=!0,width:c,addSvgBackground:f=!1}={})=>{if(x.info("createText",e,n,r,i,a,t,f),a){let s=$(e),o={isNode:t,label:w(s).replace(/fa[blrs]?:fa-[\w-]+/g,h=>`<i class='${h.replace(":"," ")}'></i>`),labelStyle:n.replace("fill:","color:")};return C(l,o,c,i,f)}else{let s=v(e);return H(c,l,s,f)}};export{N as a};

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{b as V,i as P}from"./chunk-VMHQZ4EH.js";import{a as q}from"./chunk-5N5GTYLJ.js";import{a as F}from"./chunk-DHRALF6T.js";import{A as G,B as z,Ca as E,Da as L,Ka as U,da as p,fa as M,h as T,ha as N,i as I,na as _,pa as R,v as $}from"./chunk-RQT2CUZQ.js";var H={},J=function(t){let s=Object.keys(t);for(let y of s)H[y]=t[y]},W=function(t,s,y,n,i,b){let w=n.select(`[id="${y}"]`);Object.keys(t).forEach(function(c){let l=t[c],k="default";l.classes.length>0&&(k=l.classes.join(" ")),k=k+" flowchart-label";let u=L(l.styles),e=l.text!==void 0?l.text:l.id,o;if(p.info("vertex",l,l.labelType),l.labelType==="markdown")p.info("vertex",l,l.labelType);else if(M(_().flowchart.htmlLabels)){let m={label:e.replace(/fa[blrs]?:fa-[\w-]+/g,g=>`<i class='${g.replace(":"," ")}'></i>`)};o=P(w,m).node(),o.parentNode.removeChild(o)}else{let m=i.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",u.labelStyle.replace("color:","fill:"));let g=e.split(N.lineBreakRegex);for(let C of g){let v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=C,m.appendChild(v)}o=m}let d=0,r="";switch(l.type){case"round":d=5,r="rect";break;case"square":r="rect";break;case"diamond":r="question";break;case"hexagon":r="hexagon";break;case"odd":r="rect_left_inv_arrow";break;case"lean_right":r="lean_right";break;case"lean_left":r="lean_left";break;case"trapezoid":r="trapezoid";break;case"inv_trapezoid":r="inv_trapezoid";break;case"odd_right":r="rect_left_inv_arrow";break;case"circle":r="circle";break;case"ellipse":r="ellipse";break;case"stadium":r="stadium";break;case"subroutine":r="subroutine";break;case"cylinder":r="cylinder";break;case"group":r="rect";break;case"doublecircle":r="doublecircle";break;default:r="rect"}s.setNode(l.id,{labelStyle:u.labelStyle,shape:r,labelText:e,labelType:l.labelType,rx:d,ry:d,class:k,style:u.style,id:l.id,link:l.link,linkTarget:l.linkTarget,tooltip:b.db.getTooltip(l.id)||"",domId:b.db.lookUpDomId(l.id),haveCallback:l.haveCallback,width:l.type==="group"?500:void 0,dir:l.dir,type:l.type,props:l.props,padding:_().flowchart.padding}),p.info("setNode",{labelStyle:u.labelStyle,labelType:l.labelType,shape:r,labelText:e,rx:d,ry:d,class:k,style:u.style,id:l.id,domId:b.db.lookUpDomId(l.id),width:l.type==="group"?500:void 0,type:l.type,dir:l.dir,props:l.props,padding:_().flowchart.padding})})},X=function(t,s,y){p.info("abc78 edges = ",t);let n=0,i={},b,w;if(t.defaultStyle!==void 0){let a=L(t.defaultStyle);b=a.style,w=a.labelStyle}t.forEach(function(a){n++;let c="L-"+a.start+"-"+a.end;i[c]===void 0?(i[c]=0,p.info("abc78 new entry",c,i[c])):(i[c]++,p.info("abc78 new entry",c,i[c]));let l=c+"-"+i[c];p.info("abc78 new link id to be used is",c,l,i[c]);let k="LS-"+a.start,u="LE-"+a.end,e={style:"",labelStyle:""};switch(e.minlen=a.length||1,a.type==="arrow_open"?e.arrowhead="none":e.arrowhead="normal",e.arrowTypeStart="arrow_open",e.arrowTypeEnd="arrow_open",a.type){case"double_arrow_cross":e.arrowTypeStart="arrow_cross";case"arrow_cross":e.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":e.arrowTypeStart="arrow_point";case"arrow_point":e.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":e.arrowTypeStart="arrow_circle";case"arrow_circle":e.arrowTypeEnd="arrow_circle";break}let o="",d="";switch(a.stroke){case"normal":o="fill:none;",b!==void 0&&(o=b),w!==void 0&&(d=w),e.thickness="normal",e.pattern="solid";break;case"dotted":e.thickness="normal",e.pattern="dotted",e.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":e.thickness="thick",e.pattern="solid",e.style="stroke-width: 3.5px;fill:none;";break;case"invisible":e.thickness="invisible",e.pattern="solid",e.style="stroke-width: 0;fill:none;";break}if(a.style!==void 0){let r=L(a.style);o=r.style,d=r.labelStyle}e.style=e.style+=o,e.labelStyle=e.labelStyle+=d,a.interpolate!==void 0?e.curve=E(a.interpolate,$):t.defaultInterpolate!==void 0?e.curve=E(t.defaultInterpolate,$):e.curve=E(H.curve,$),a.text===void 0?a.style!==void 0&&(e.arrowheadStyle="fill: #333"):(e.arrowheadStyle="fill: #333",e.labelpos="c"),e.labelType=a.labelType,e.label=a.text.replace(N.lineBreakRegex,`
import{b as V,i as P}from"./chunk-YBAAFRZB.js";import{a as q}from"./chunk-BMK5W6E7.js";import{a as F}from"./chunk-QFWTWYMO.js";import{A as G,B as z,Ca as E,Da as L,Ka as U,da as p,fa as M,h as T,ha as N,i as I,na as _,pa as R,v as $}from"./chunk-KU2GO2AH.js";var H={},J=function(t){let s=Object.keys(t);for(let y of s)H[y]=t[y]},W=function(t,s,y,n,i,b){let w=n.select(`[id="${y}"]`);Object.keys(t).forEach(function(c){let l=t[c],k="default";l.classes.length>0&&(k=l.classes.join(" ")),k=k+" flowchart-label";let u=L(l.styles),e=l.text!==void 0?l.text:l.id,o;if(p.info("vertex",l,l.labelType),l.labelType==="markdown")p.info("vertex",l,l.labelType);else if(M(_().flowchart.htmlLabels)){let m={label:e.replace(/fa[blrs]?:fa-[\w-]+/g,g=>`<i class='${g.replace(":"," ")}'></i>`)};o=P(w,m).node(),o.parentNode.removeChild(o)}else{let m=i.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",u.labelStyle.replace("color:","fill:"));let g=e.split(N.lineBreakRegex);for(let C of g){let v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=C,m.appendChild(v)}o=m}let d=0,r="";switch(l.type){case"round":d=5,r="rect";break;case"square":r="rect";break;case"diamond":r="question";break;case"hexagon":r="hexagon";break;case"odd":r="rect_left_inv_arrow";break;case"lean_right":r="lean_right";break;case"lean_left":r="lean_left";break;case"trapezoid":r="trapezoid";break;case"inv_trapezoid":r="inv_trapezoid";break;case"odd_right":r="rect_left_inv_arrow";break;case"circle":r="circle";break;case"ellipse":r="ellipse";break;case"stadium":r="stadium";break;case"subroutine":r="subroutine";break;case"cylinder":r="cylinder";break;case"group":r="rect";break;case"doublecircle":r="doublecircle";break;default:r="rect"}s.setNode(l.id,{labelStyle:u.labelStyle,shape:r,labelText:e,labelType:l.labelType,rx:d,ry:d,class:k,style:u.style,id:l.id,link:l.link,linkTarget:l.linkTarget,tooltip:b.db.getTooltip(l.id)||"",domId:b.db.lookUpDomId(l.id),haveCallback:l.haveCallback,width:l.type==="group"?500:void 0,dir:l.dir,type:l.type,props:l.props,padding:_().flowchart.padding}),p.info("setNode",{labelStyle:u.labelStyle,labelType:l.labelType,shape:r,labelText:e,rx:d,ry:d,class:k,style:u.style,id:l.id,domId:b.db.lookUpDomId(l.id),width:l.type==="group"?500:void 0,type:l.type,dir:l.dir,props:l.props,padding:_().flowchart.padding})})},X=function(t,s,y){p.info("abc78 edges = ",t);let n=0,i={},b,w;if(t.defaultStyle!==void 0){let a=L(t.defaultStyle);b=a.style,w=a.labelStyle}t.forEach(function(a){n++;let c="L-"+a.start+"-"+a.end;i[c]===void 0?(i[c]=0,p.info("abc78 new entry",c,i[c])):(i[c]++,p.info("abc78 new entry",c,i[c]));let l=c+"-"+i[c];p.info("abc78 new link id to be used is",c,l,i[c]);let k="LS-"+a.start,u="LE-"+a.end,e={style:"",labelStyle:""};switch(e.minlen=a.length||1,a.type==="arrow_open"?e.arrowhead="none":e.arrowhead="normal",e.arrowTypeStart="arrow_open",e.arrowTypeEnd="arrow_open",a.type){case"double_arrow_cross":e.arrowTypeStart="arrow_cross";case"arrow_cross":e.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":e.arrowTypeStart="arrow_point";case"arrow_point":e.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":e.arrowTypeStart="arrow_circle";case"arrow_circle":e.arrowTypeEnd="arrow_circle";break}let o="",d="";switch(a.stroke){case"normal":o="fill:none;",b!==void 0&&(o=b),w!==void 0&&(d=w),e.thickness="normal",e.pattern="solid";break;case"dotted":e.thickness="normal",e.pattern="dotted",e.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":e.thickness="thick",e.pattern="solid",e.style="stroke-width: 3.5px;fill:none;";break;case"invisible":e.thickness="invisible",e.pattern="solid",e.style="stroke-width: 0;fill:none;";break}if(a.style!==void 0){let r=L(a.style);o=r.style,d=r.labelStyle}e.style=e.style+=o,e.labelStyle=e.labelStyle+=d,a.interpolate!==void 0?e.curve=E(a.interpolate,$):t.defaultInterpolate!==void 0?e.curve=E(t.defaultInterpolate,$):e.curve=E(H.curve,$),a.text===void 0?a.style!==void 0&&(e.arrowheadStyle="fill: #333"):(e.arrowheadStyle="fill: #333",e.labelpos="c"),e.labelType=a.labelType,e.label=a.text.replace(N.lineBreakRegex,`
`),a.style===void 0&&(e.style=e.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),e.labelStyle=e.labelStyle.replace("color:","fill:"),e.id=l,e.classes="flowchart-link "+k+" "+u,s.setEdge(a.start,a.end,e,n)})},K=function(t,s){p.info("Extracting classes"),s.db.clear();try{return s.parse(t),s.db.getClasses()}catch(y){return}},Q=async function(t,s,y,n){p.info("Drawing flowchart"),n.db.clear(),V.setGen("gen-2"),n.parser.parse(t);let i=n.db.getDirection();i===void 0&&(i="TD");let{securityLevel:b,flowchart:w}=_(),a=w.nodeSpacing||50,c=w.rankSpacing||50,l;b==="sandbox"&&(l=T("#i"+s));let k=b==="sandbox"?T(l.nodes()[0].contentDocument.body):T("body"),u=b==="sandbox"?l.nodes()[0].contentDocument:document,e=new F({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:a,ranksep:c,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}}),o,d=n.db.getSubGraphs();p.info("Subgraphs - ",d);for(let f=d.length-1;f>=0;f--)o=d[f],p.info("Subgraph - ",o),n.db.addVertex(o.id,{text:o.title,type:o.labelType},"group",void 0,o.classes,o.dir);let r=n.db.getVertices(),m=n.db.getEdges();p.info("Edges",m);let g=0;for(g=d.length-1;g>=0;g--){o=d[g],I("cluster").append("text");for(let f=0;f<o.nodes.length;f++)p.info("Setting up subgraphs",o.nodes[f],o.id),e.setParent(o.nodes[f],o.id)}W(r,e,s,k,u,n),X(m,e);let C=k.select(`[id="${s}"]`),v=k.select("#"+s+" g");if(await q(v,e,["point","circle","cross"],"flowchart",s),U.insertTitle(C,"flowchartTitleText",w.titleTopMargin,n.db.getDiagramTitle()),R(e,C,w.diagramPadding,w.useMaxWidth),n.db.indexNodes("subGraph"+g),!w.htmlLabels){let f=u.querySelectorAll('[id="'+s+'"] .edgeLabel .label');for(let x of f){let S=x.getBBox(),h=u.createElementNS("http://www.w3.org/2000/svg","rect");h.setAttribute("rx",0),h.setAttribute("ry",0),h.setAttribute("width",S.width),h.setAttribute("height",S.height),x.insertBefore(h,x.firstChild)}}Object.keys(r).forEach(function(f){let x=r[f];if(x.link){let S=T("#"+s+' [id="'+f+'"]');if(S){let h=u.createElementNS("http://www.w3.org/2000/svg","a");h.setAttributeNS("http://www.w3.org/2000/svg","class",x.classes.join(" ")),h.setAttributeNS("http://www.w3.org/2000/svg","href",x.link),h.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),b==="sandbox"?h.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):x.linkTarget&&h.setAttributeNS("http://www.w3.org/2000/svg","target",x.linkTarget);let A=S.insert(function(){return h},":first-child"),B=S.select(".label-container");B&&A.append(function(){return B.node()});let D=S.select(".label");D&&A.append(function(){return D.node()})}}})},se={setConf:J,addVertices:W,addEdges:X,getClasses:K,draw:Q},Y=(t,s)=>{let y=z,n=y(t,"r"),i=y(t,"g"),b=y(t,"b");return G(n,i,b,s)},Z=t=>`.label {
font-family: ${t.fontFamily};
color: ${t.nodeTextColor||t.textColor};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{a as X,b as L,c as Y}from"./chunk-Q7SFOICH.js";import{b as h}from"./chunk-WQNNISML.js";import{a as W,b as H}from"./chunk-DHRALF6T.js";import"./chunk-FHXD2RFP.js";import{b as $,c as B,da as a,h as g,na as y,oa as Z,z as v}from"./chunk-RQT2CUZQ.js";import{h as k}from"./chunk-2YVZDWG7.js";var _=k($(),1),q=k(B(),1),K=k(v(),1);var u={},m=20,p=function(e){let i=Object.entries(u).find(x=>x[1].label===e);if(i)return i[0]},A=function(e){e.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},C=function(e,i,x,n){let c=y().class;u={},a.info("Rendering diagram "+e);let E=y().securityLevel,b;E==="sandbox"&&(b=g("#i"+i));let w=E==="sandbox"?g(b.nodes()[0].contentDocument.body):g("body"),o=w.select(`[id='${i}']`);A(o);let r=new W({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});let l=n.db.getClasses(),D=Object.keys(l);for(let t of D){let d=l[t],s=h.drawClass(o,d,c,n);u[s.id]=s,r.setNode(s.id,s),a.info("Org height: "+s.height)}n.db.getRelations().forEach(function(t){a.info("tjoho"+p(t.id1)+p(t.id2)+JSON.stringify(t)),r.setEdge(p(t.id1),p(t.id2),{relation:t},t.title||"DEFAULT")}),n.db.getNotes().forEach(function(t){a.debug(`Adding note: ${JSON.stringify(t)}`);let d=h.drawNote(o,t,c,n);u[d.id]=d,r.setNode(d.id,d),t.class&&t.class in l&&r.setEdge(t.id,p(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),H(r),r.nodes().forEach(function(t){t!==void 0&&r.node(t)!==void 0&&(a.debug("Node "+t+": "+JSON.stringify(r.node(t))),w.select("#"+(n.db.lookUpDomId(t)||t)).attr("transform","translate("+(r.node(t).x-r.node(t).width/2)+","+(r.node(t).y-r.node(t).height/2)+" )"))}),r.edges().forEach(function(t){t!==void 0&&r.edge(t)!==void 0&&(a.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(r.edge(t))),h.drawEdge(o,r.edge(t),r.edge(t).relation,c,n))});let f=o.node().getBBox(),M=f.width+m*2,S=f.height+m*2;Z(o,S,M,c.useMaxWidth);let N=`${f.x-m} ${f.y-m} ${M} ${S}`;a.debug(`viewBox ${N}`),o.attr("viewBox",N)},G={draw:C},P={parser:X,db:L,renderer:G,styles:Y,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,L.clear()}};export{P as diagram};
import{a as X,b as L,c as Y}from"./chunk-HP6U7KXJ.js";import{b as h}from"./chunk-4OMZAWBS.js";import{a as W,b as H}from"./chunk-QFWTWYMO.js";import"./chunk-2MTWH372.js";import{b as $,c as B,da as a,h as g,na as y,oa as Z,z as v}from"./chunk-KU2GO2AH.js";import{h as k}from"./chunk-2YVZDWG7.js";var _=k($(),1),q=k(B(),1),K=k(v(),1);var u={},m=20,p=function(e){let i=Object.entries(u).find(x=>x[1].label===e);if(i)return i[0]},A=function(e){e.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},C=function(e,i,x,n){let c=y().class;u={},a.info("Rendering diagram "+e);let E=y().securityLevel,b;E==="sandbox"&&(b=g("#i"+i));let w=E==="sandbox"?g(b.nodes()[0].contentDocument.body):g("body"),o=w.select(`[id='${i}']`);A(o);let r=new W({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});let l=n.db.getClasses(),D=Object.keys(l);for(let t of D){let d=l[t],s=h.drawClass(o,d,c,n);u[s.id]=s,r.setNode(s.id,s),a.info("Org height: "+s.height)}n.db.getRelations().forEach(function(t){a.info("tjoho"+p(t.id1)+p(t.id2)+JSON.stringify(t)),r.setEdge(p(t.id1),p(t.id2),{relation:t},t.title||"DEFAULT")}),n.db.getNotes().forEach(function(t){a.debug(`Adding note: ${JSON.stringify(t)}`);let d=h.drawNote(o,t,c,n);u[d.id]=d,r.setNode(d.id,d),t.class&&t.class in l&&r.setEdge(t.id,p(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),H(r),r.nodes().forEach(function(t){t!==void 0&&r.node(t)!==void 0&&(a.debug("Node "+t+": "+JSON.stringify(r.node(t))),w.select("#"+(n.db.lookUpDomId(t)||t)).attr("transform","translate("+(r.node(t).x-r.node(t).width/2)+","+(r.node(t).y-r.node(t).height/2)+" )"))}),r.edges().forEach(function(t){t!==void 0&&r.edge(t)!==void 0&&(a.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(r.edge(t))),h.drawEdge(o,r.edge(t),r.edge(t).relation,c,n))});let f=o.node().getBBox(),M=f.width+m*2,S=f.height+m*2;Z(o,S,M,c.useMaxWidth);let N=`${f.x-m} ${f.y-m} ${M} ${S}`;a.debug(`viewBox ${N}`),o.attr("viewBox",N)},G={draw:C},P={parser:X,db:L,renderer:G,styles:Y,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,L.clear()}};export{P as diagram};

View file

@ -1,2 +1,2 @@
import{a as P,b as N,c as $}from"./chunk-Q7SFOICH.js";import{a as z}from"./chunk-5N5GTYLJ.js";import"./chunk-DNBLW6CQ.js";import"./chunk-2GUY7UNH.js";import"./chunk-WQNNISML.js";import{a as G}from"./chunk-DHRALF6T.js";import"./chunk-FHXD2RFP.js";import{Ca as D,Da as F,Ka as H,b as K,c as Q,da as d,h as w,ha as C,na as i,pa as q,v as L,z as U}from"./chunk-RQT2CUZQ.js";import"./chunk-CIZ5P7CP.js";import{a as S,h as T}from"./chunk-2YVZDWG7.js";var ie=T(K(),1),re=T(Q(),1),ce=T(U(),1);var _=s=>C.sanitizeText(s,i()),E={dividerMargin:10,padding:5,textHeight:10,curve:void 0},X=function(s,o,f,a){let e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(r){var y;var l,c;let t=s[r],p={shape:"rect",id:t.id,domId:t.domId,labelText:_(t.id),labelStyle:"",style:"fill: none; stroke: black",padding:(y=(l=i().flowchart)==null?void 0:l.padding)!=null?y:(c=i().class)==null?void 0:c.padding};o.setNode(t.id,p),W(t.classes,o,f,a,t.id),d.info("setNode",p)})},W=function(s,o,f,a,e){let r=Object.keys(s);d.info("keys:",r),d.info(s),r.forEach(function(l){var g,m;var c,t;let n=s[l],p="";n.cssClasses.length>0&&(p=p+" "+n.cssClasses.join(" "));let y={labelStyle:"",style:""},v=(g=n.label)!=null?g:n.id,b=0,h="class_box",u={labelStyle:y.labelStyle,shape:h,labelText:_(v),classData:n,rx:b,ry:b,class:p,style:y.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,e)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:(m=(c=i().flowchart)==null?void 0:c.padding)!=null?m:(t=i().class)==null?void 0:t.padding};o.setNode(n.id,u),e&&o.setParent(n.id,e),d.info("setNode",u)})},Y=function(s,o,f,a){d.info(s),s.forEach(function(e,r){var m;var l,c;let t=e,n="",p={labelStyle:"",style:""},y=t.text,v=0,b="note",h={labelStyle:p.labelStyle,shape:b,labelText:_(y),noteData:t,rx:v,ry:v,class:n,style:p.style,id:t.id,domId:t.id,tooltip:"",type:"note",padding:(m=(l=i().flowchart)==null?void 0:l.padding)!=null?m:(c=i().class)==null?void 0:c.padding};if(o.setNode(t.id,h),d.info("setNode",h),!t.class||!(t.class in a))return;let u=f+r,g={id:`edgeNote${u}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:D(E.curve,L)};o.setEdge(t.id,t.class,g,u)})},Z=function(s,o){let f=i().flowchart,a=0;s.forEach(function(e){var c;var r;a++;let l={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:"id"+a,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:V(e.relation.type1),arrowTypeEnd:V(e.relation.type2),style:"fill:none",labelStyle:"",curve:D(f==null?void 0:f.curve,L)};if(d.info(l,e),e.style!==void 0){let t=F(e.style);l.style=t.style,l.labelStyle=t.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",((c=(r=i().flowchart)==null?void 0:r.htmlLabels)!=null?c:i().htmlLabels)?(l.labelType="html",l.label='<span class="edgeLabel">'+e.text+"</span>"):(l.labelType="text",l.label=e.text.replace(C.lineBreakRegex,`
import{a as P,b as N,c as $}from"./chunk-HP6U7KXJ.js";import{a as z}from"./chunk-BMK5W6E7.js";import"./chunk-UIIKMIGR.js";import"./chunk-F2X5DNEE.js";import"./chunk-4OMZAWBS.js";import{a as G}from"./chunk-QFWTWYMO.js";import"./chunk-2MTWH372.js";import{Ca as D,Da as F,Ka as H,b as K,c as Q,da as d,h as w,ha as C,na as i,pa as q,v as L,z as U}from"./chunk-KU2GO2AH.js";import"./chunk-CIZ5P7CP.js";import{a as S,h as T}from"./chunk-2YVZDWG7.js";var ie=T(K(),1),re=T(Q(),1),ce=T(U(),1);var _=s=>C.sanitizeText(s,i()),E={dividerMargin:10,padding:5,textHeight:10,curve:void 0},X=function(s,o,f,a){let e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(r){var y;var l,c;let t=s[r],p={shape:"rect",id:t.id,domId:t.domId,labelText:_(t.id),labelStyle:"",style:"fill: none; stroke: black",padding:(y=(l=i().flowchart)==null?void 0:l.padding)!=null?y:(c=i().class)==null?void 0:c.padding};o.setNode(t.id,p),W(t.classes,o,f,a,t.id),d.info("setNode",p)})},W=function(s,o,f,a,e){let r=Object.keys(s);d.info("keys:",r),d.info(s),r.forEach(function(l){var g,m;var c,t;let n=s[l],p="";n.cssClasses.length>0&&(p=p+" "+n.cssClasses.join(" "));let y={labelStyle:"",style:""},v=(g=n.label)!=null?g:n.id,b=0,h="class_box",u={labelStyle:y.labelStyle,shape:h,labelText:_(v),classData:n,rx:b,ry:b,class:p,style:y.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,e)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:(m=(c=i().flowchart)==null?void 0:c.padding)!=null?m:(t=i().class)==null?void 0:t.padding};o.setNode(n.id,u),e&&o.setParent(n.id,e),d.info("setNode",u)})},Y=function(s,o,f,a){d.info(s),s.forEach(function(e,r){var m;var l,c;let t=e,n="",p={labelStyle:"",style:""},y=t.text,v=0,b="note",h={labelStyle:p.labelStyle,shape:b,labelText:_(y),noteData:t,rx:v,ry:v,class:n,style:p.style,id:t.id,domId:t.id,tooltip:"",type:"note",padding:(m=(l=i().flowchart)==null?void 0:l.padding)!=null?m:(c=i().class)==null?void 0:c.padding};if(o.setNode(t.id,h),d.info("setNode",h),!t.class||!(t.class in a))return;let u=f+r,g={id:`edgeNote${u}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:D(E.curve,L)};o.setEdge(t.id,t.class,g,u)})},Z=function(s,o){let f=i().flowchart,a=0;s.forEach(function(e){var c;var r;a++;let l={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:"id"+a,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:V(e.relation.type1),arrowTypeEnd:V(e.relation.type2),style:"fill:none",labelStyle:"",curve:D(f==null?void 0:f.curve,L)};if(d.info(l,e),e.style!==void 0){let t=F(e.style);l.style=t.style,l.labelStyle=t.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",((c=(r=i().flowchart)==null?void 0:r.htmlLabels)!=null?c:i().htmlLabels)?(l.labelType="html",l.label='<span class="edgeLabel">'+e.text+"</span>"):(l.labelType="text",l.label=e.text.replace(C.lineBreakRegex,`
`),e.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),o.setEdge(e.id1,e.id2,l,a)})},j=function(s){E=S(S({},E),s)},O=async function(s,o,f,a){var m,A,I,M;d.info("Drawing class - ",o);let e=(m=i().flowchart)!=null?m:i().class,r=i().securityLevel;d.info("config:",e);let l=(A=e==null?void 0:e.nodeSpacing)!=null?A:50,c=(I=e==null?void 0:e.rankSpacing)!=null?I:50,t=new G({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:l,ranksep:c,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=a.db.getNamespaces(),p=a.db.getClasses(),y=a.db.getRelations(),v=a.db.getNotes();d.info(y),X(n,t,o,a),W(p,t,o,a),Z(y,t),Y(v,t,y.length+1,p);let b;r==="sandbox"&&(b=w("#i"+o));let h=r==="sandbox"?w(b.nodes()[0].contentDocument.body):w("body"),u=h.select(`[id="${o}"]`),g=h.select("#"+o+" g");if(await z(g,t,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",o),H.insertTitle(u,"classTitleText",(M=e==null?void 0:e.titleTopMargin)!=null?M:5,a.db.getDiagramTitle()),q(t,u,e==null?void 0:e.diagramPadding,e==null?void 0:e.useMaxWidth),!(e!=null&&e.htmlLabels)){let R=r==="sandbox"?b.nodes()[0].contentDocument:document,J=R.querySelectorAll('[id="'+o+'"] .edgeLabel .label');for(let k of J){let B=k.getBBox(),x=R.createElementNS("http://www.w3.org/2000/svg","rect");x.setAttribute("rx",0),x.setAttribute("ry",0),x.setAttribute("width",B.width),x.setAttribute("height",B.height),k.insertBefore(x,k.firstChild)}}};function V(s){let o;switch(s){case 0:o="aggregation";break;case 1:o="extension";break;case 2:o="composition";break;case 3:o="dependency";break;case 4:o="lollipop";break;default:o="none"}return o}var ee={setConf:j,draw:O},ye={parser:P,db:N,renderer:ee,styles:$,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,N.clear()}};export{ye as diagram};

View file

@ -0,0 +1,11 @@
import"./chunk-2YVZDWG7.js";var e={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}};export{e as conf,o as language};
/*! Bundled license information:
monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.js:
(*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*)
*/

View file

@ -1 +1 @@
import{a as i,b as e}from"./chunk-LON4YRCP.js";import{a as m,b as o}from"./chunk-VMHQZ4EH.js";import"./chunk-5N5GTYLJ.js";import"./chunk-DNBLW6CQ.js";import"./chunk-2GUY7UNH.js";import"./chunk-WQNNISML.js";import"./chunk-DHRALF6T.js";import"./chunk-FHXD2RFP.js";import{b as a,c as s,ma as p,z as l}from"./chunk-RQT2CUZQ.js";import"./chunk-CIZ5P7CP.js";import{h as t}from"./chunk-2YVZDWG7.js";var g=t(a(),1),n=t(s(),1),c=t(l(),1);var y={parser:m,db:o,renderer:i,styles:e,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,p({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),i.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{y as diagram};
import{a as i,b as e}from"./chunk-IKY7UTN7.js";import{a as m,b as o}from"./chunk-YBAAFRZB.js";import"./chunk-BMK5W6E7.js";import"./chunk-UIIKMIGR.js";import"./chunk-F2X5DNEE.js";import"./chunk-4OMZAWBS.js";import"./chunk-QFWTWYMO.js";import"./chunk-2MTWH372.js";import{b as a,c as s,ma as p,z as l}from"./chunk-KU2GO2AH.js";import"./chunk-CIZ5P7CP.js";import{h as t}from"./chunk-2YVZDWG7.js";var g=t(a(),1),n=t(s(),1),c=t(l(),1);var y={parser:m,db:o,renderer:i,styles:e,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,p({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),i.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{y as diagram};

View file

@ -1,4 +1,4 @@
import{b as X,c as q,da as b,h as w,na as N,qa as z,z as B}from"./chunk-RQT2CUZQ.js";import{h as L}from"./chunk-2YVZDWG7.js";var ot=L(X(),1),lt=L(q(),1),ht=L(B(),1);var $=function(){var h=function(c,t,e,n){for(e=e||{},n=c.length;n--;e[c[n]]=t);return e},f=[6,9,10],x={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,k){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},h(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},h(f,[2,3]),h(f,[2,4]),h(f,[2,5]),h(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],k=this.table,T="",v=0,R=0,U=2,j=1,C=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var I in this.yy)Object.prototype.hasOwnProperty.call(this.yy,I)&&(p.yy[I]=this.yy[I]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc=="undefined"&&(o.yylloc={});var A=o.yylloc;i.push(A);var D=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function V(){var u;return u=s.pop()||o.lex()||j,typeof u!="number"&&(u instanceof Array&&(s=u,u=s.pop()),u=e.symbols_[u]||u),u}for(var l,g,a,O,d={},S,y,F,E;;){if(g=n[n.length-1],this.defaultActions[g]?a=this.defaultActions[g]:((l===null||typeof l=="undefined")&&(l=V()),a=k[g]&&k[g][l]),typeof a=="undefined"||!a.length||!a[0]){var P="";E=[];for(S in k[g])this.terminals_[S]&&S>U&&E.push("'"+this.terminals_[S]+"'");o.showPosition?P="Parse error on line "+(v+1)+`:
import{b as X,c as q,da as b,h as w,na as N,qa as z,z as B}from"./chunk-KU2GO2AH.js";import{h as L}from"./chunk-2YVZDWG7.js";var ot=L(X(),1),lt=L(q(),1),ht=L(B(),1);var $=function(){var h=function(c,t,e,n){for(e=e||{},n=c.length;n--;e[c[n]]=t);return e},f=[6,9,10],x={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,k){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},h(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},h(f,[2,3]),h(f,[2,4]),h(f,[2,5]),h(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],k=this.table,T="",v=0,R=0,U=2,j=1,C=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var I in this.yy)Object.prototype.hasOwnProperty.call(this.yy,I)&&(p.yy[I]=this.yy[I]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc=="undefined"&&(o.yylloc={});var A=o.yylloc;i.push(A);var D=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function V(){var u;return u=s.pop()||o.lex()||j,typeof u!="number"&&(u instanceof Array&&(s=u,u=s.pop()),u=e.symbols_[u]||u),u}for(var l,g,a,O,d={},S,y,F,E;;){if(g=n[n.length-1],this.defaultActions[g]?a=this.defaultActions[g]:((l===null||typeof l=="undefined")&&(l=V()),a=k[g]&&k[g][l]),typeof a=="undefined"||!a.length||!a[0]){var P="";E=[];for(S in k[g])this.terminals_[S]&&S>U&&E.push("'"+this.terminals_[S]+"'");o.showPosition?P="Parse error on line "+(v+1)+`:
`+o.showPosition()+`
Expecting `+E.join(", ")+", got '"+(this.terminals_[l]||l)+"'":P="Parse error on line "+(v+1)+": Unexpected "+(l==j?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(P,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:A,expected:E})}if(a[0]instanceof Array&&a.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(a[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(a[1]),l=null,R=o.yyleng,T=o.yytext,v=o.yylineno,A=o.yylloc;break;case 2:if(y=this.productions_[a[1]][1],d.$=r[r.length-y],d._$={first_line:i[i.length-(y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(y||1)].first_column,last_column:i[i.length-1].last_column},D&&(d._$.range=[i[i.length-(y||1)].range[0],i[i.length-1].range[1]]),O=this.performAction.apply(d,[T,R,v,p.yy,a[1],r,i].concat(C)),typeof O!="undefined")return O;y&&(n=n.slice(0,-1*y*2),r=r.slice(0,-1*y),i=i.slice(0,-1*y)),n.push(this.productions_[a[1]][0]),r.push(d.$),i.push(d._$),F=k[n[n.length-2]][n[n.length-1]],n.push(F);break;case 3:return!0}}return!0}},m=function(){var c={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},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];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(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 s=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===s.length?this.yylloc.first_column:0)+s[s.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(){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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},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=new Array(t.length+1).join("-");return t+this.upcomingInput()+`

View file

@ -1,4 +1,4 @@
import{a as nt,b as at,c as ot,f as J}from"./chunk-IMWZRXJI.js";import{Na as gt,b as Pt,c as It,h as O,na as I,oa as ct,qa as lt,ra as ht,sa as ut,ta as yt,u as Z,ua as pt,va as dt,wa as ft,z as At}from"./chunk-RQT2CUZQ.js";import{h as U}from"./chunk-2YVZDWG7.js";var re=U(Pt(),1),ne=U(It(),1),ae=U(At(),1);var Q=function(){var t=function(_,r,a,h){for(a=a||{},h=_.length;h--;a[_[h]]=r);return a},e=[1,2],s=[1,5],n=[6,9,11,17,18,20,22,23,24,26],i=[1,15],l=[1,16],o=[1,17],y=[1,18],u=[1,19],x=[1,20],g=[1,24],f=[4,6,9,11,17,18,20,22,23,24,26],p={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(r,a,h,d,m,c,R){var k=c.length-1;switch(m){case 1:return c[k-1];case 3:this.$=[];break;case 4:c[k-1].push(c[k]),this.$=c[k-1];break;case 5:case 6:this.$=c[k];break;case 7:case 8:this.$=[];break;case 11:d.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 12:this.$=c[k].trim(),d.setAccTitle(this.$);break;case 13:case 14:this.$=c[k].trim(),d.setAccDescription(this.$);break;case 15:d.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 16:d.addTask(c[k-1],c[k]),this.$="task";break;case 18:d.parseDirective("%%{","open_directive");break;case 19:d.parseDirective(c[k],"type_directive");break;case 20:c[k]=c[k].trim().replace(/'/g,'"'),d.parseDirective(c[k],"arg_directive");break;case 21:d.parseDirective("}%%","close_directive","journey");break}},table:[{3:1,4:e,7:3,12:4,26:s},{1:[3]},t(n,[2,3],{5:6}),{3:7,4:e,7:3,12:4,26:s},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:l,20:o,22:y,23:u,24:x,26:s},{1:[2,2]},{14:22,15:[1,23],29:g},t([15,29],[2,19]),t(n,[2,8],{1:[2,1]}),t(n,[2,4]),{7:21,10:25,12:4,17:i,18:l,20:o,22:y,23:u,24:x,26:s},t(n,[2,6]),t(n,[2,7]),t(n,[2,11]),{19:[1,26]},{21:[1,27]},t(n,[2,14]),t(n,[2,15]),{25:[1,28]},t(n,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},t(n,[2,5]),t(n,[2,12]),t(n,[2,13]),t(n,[2,16]),t(f,[2,9]),{14:32,29:g},{29:[2,20]},{11:[1,33]},t(f,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=a,h}},parse:function(r){var a=this,h=[0],d=[],m=[null],c=[],R=this.table,k="",z=0,it=0,$t=2,st=1,St=c.slice.call(arguments,1),b=Object.create(this.lexer),A={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(A.yy[W]=this.yy[W]);b.setInput(r,A.yy),A.yy.lexer=b,A.yy.parser=this,typeof b.yylloc=="undefined"&&(b.yylloc={});var X=b.yylloc;c.push(X);var Mt=b.options&&b.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Et(){var E;return E=d.pop()||b.lex()||st,typeof E!="number"&&(E instanceof Array&&(d=E,E=d.pop()),E=a.symbols_[E]||E),E}for(var w,C,$,G,F={},Y,M,rt,q;;){if(C=h[h.length-1],this.defaultActions[C]?$=this.defaultActions[C]:((w===null||typeof w=="undefined")&&(w=Et()),$=R[C]&&R[C][w]),typeof $=="undefined"||!$.length||!$[0]){var H="";q=[];for(Y in R[C])this.terminals_[Y]&&Y>$t&&q.push("'"+this.terminals_[Y]+"'");b.showPosition?H="Parse error on line "+(z+1)+`:
import{a as nt,b as at,c as ot,f as J}from"./chunk-2FDFKGWQ.js";import{Na as gt,b as Pt,c as It,h as O,na as I,oa as ct,qa as lt,ra as ht,sa as ut,ta as yt,u as Z,ua as pt,va as dt,wa as ft,z as At}from"./chunk-KU2GO2AH.js";import{h as U}from"./chunk-2YVZDWG7.js";var re=U(Pt(),1),ne=U(It(),1),ae=U(At(),1);var Q=function(){var t=function(_,r,a,h){for(a=a||{},h=_.length;h--;a[_[h]]=r);return a},e=[1,2],s=[1,5],n=[6,9,11,17,18,20,22,23,24,26],i=[1,15],l=[1,16],o=[1,17],y=[1,18],u=[1,19],x=[1,20],g=[1,24],f=[4,6,9,11,17,18,20,22,23,24,26],p={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(r,a,h,d,m,c,R){var k=c.length-1;switch(m){case 1:return c[k-1];case 3:this.$=[];break;case 4:c[k-1].push(c[k]),this.$=c[k-1];break;case 5:case 6:this.$=c[k];break;case 7:case 8:this.$=[];break;case 11:d.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 12:this.$=c[k].trim(),d.setAccTitle(this.$);break;case 13:case 14:this.$=c[k].trim(),d.setAccDescription(this.$);break;case 15:d.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 16:d.addTask(c[k-1],c[k]),this.$="task";break;case 18:d.parseDirective("%%{","open_directive");break;case 19:d.parseDirective(c[k],"type_directive");break;case 20:c[k]=c[k].trim().replace(/'/g,'"'),d.parseDirective(c[k],"arg_directive");break;case 21:d.parseDirective("}%%","close_directive","journey");break}},table:[{3:1,4:e,7:3,12:4,26:s},{1:[3]},t(n,[2,3],{5:6}),{3:7,4:e,7:3,12:4,26:s},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:l,20:o,22:y,23:u,24:x,26:s},{1:[2,2]},{14:22,15:[1,23],29:g},t([15,29],[2,19]),t(n,[2,8],{1:[2,1]}),t(n,[2,4]),{7:21,10:25,12:4,17:i,18:l,20:o,22:y,23:u,24:x,26:s},t(n,[2,6]),t(n,[2,7]),t(n,[2,11]),{19:[1,26]},{21:[1,27]},t(n,[2,14]),t(n,[2,15]),{25:[1,28]},t(n,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},t(n,[2,5]),t(n,[2,12]),t(n,[2,13]),t(n,[2,16]),t(f,[2,9]),{14:32,29:g},{29:[2,20]},{11:[1,33]},t(f,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=a,h}},parse:function(r){var a=this,h=[0],d=[],m=[null],c=[],R=this.table,k="",z=0,it=0,$t=2,st=1,St=c.slice.call(arguments,1),b=Object.create(this.lexer),A={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(A.yy[W]=this.yy[W]);b.setInput(r,A.yy),A.yy.lexer=b,A.yy.parser=this,typeof b.yylloc=="undefined"&&(b.yylloc={});var X=b.yylloc;c.push(X);var Mt=b.options&&b.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Et(){var E;return E=d.pop()||b.lex()||st,typeof E!="number"&&(E instanceof Array&&(d=E,E=d.pop()),E=a.symbols_[E]||E),E}for(var w,C,$,G,F={},Y,M,rt,q;;){if(C=h[h.length-1],this.defaultActions[C]?$=this.defaultActions[C]:((w===null||typeof w=="undefined")&&(w=Et()),$=R[C]&&R[C][w]),typeof $=="undefined"||!$.length||!$[0]){var H="";q=[];for(Y in R[C])this.terminals_[Y]&&Y>$t&&q.push("'"+this.terminals_[Y]+"'");b.showPosition?H="Parse error on line "+(z+1)+`:
`+b.showPosition()+`
Expecting `+q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":H="Parse error on line "+(z+1)+": Unexpected "+(w==st?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(H,{text:b.match,token:this.terminals_[w]||w,line:b.yylineno,loc:X,expected:q})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+w);switch($[0]){case 1:h.push(w),m.push(b.yytext),c.push(b.yylloc),h.push($[1]),w=null,it=b.yyleng,k=b.yytext,z=b.yylineno,X=b.yylloc;break;case 2:if(M=this.productions_[$[1]][1],F.$=m[m.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},Mt&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),G=this.performAction.apply(F,[k,it,z,A.yy,$[1],m,c].concat(St)),typeof G!="undefined")return G;M&&(h=h.slice(0,-1*M*2),m=m.slice(0,-1*M),c=c.slice(0,-1*M)),h.push(this.productions_[$[1]][0]),m.push(F.$),c.push(F._$),rt=R[h[h.length-2]][h[h.length-1]],h.push(rt);break;case 3:return!0}}return!0}},T=function(){var _={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var a=r.length,h=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var 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 m=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-a},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`

View file

@ -1 +1 @@
import{Oa as p,b as r,c as t,z as m}from"./chunk-RQT2CUZQ.js";import{h as o}from"./chunk-2YVZDWG7.js";var e=o(r(),1),f=o(t(),1);var l=o(m(),1);export{p as default};
import{Oa as p,b as r,c as t,z as m}from"./chunk-KU2GO2AH.js";import{h as o}from"./chunk-2YVZDWG7.js";var e=o(r(),1),f=o(t(),1);var l=o(m(),1);export{p as default};

View file

@ -1,4 +1,4 @@
import{Ja as vt,Na as bt,b as St,c as wt,da as C,h as J,ha as ht,l as lt,na as F,oa as ut,qa as pt,ra as ft,sa as yt,ta as dt,u as nt,ua as mt,va as _t,wa as gt,x as ot,z as Et}from"./chunk-RQT2CUZQ.js";import{h as st}from"./chunk-2YVZDWG7.js";var Mt=st(St(),1),Bt=st(wt(),1),Yt=st(Et(),1);var rt=function(){var e=function(u,t,i,n){for(i=i||{},n=u.length;n--;i[u[n]]=t);return i},f=[1,4],E=[1,5],m=[1,6],D=[1,7],T=[1,9],y=[1,11,13,15,17,19,20,26,27,28,29],I=[2,5],S=[1,6,11,13,15,17,19,20,26,27,28,29],o=[26,27,28],V=[2,8],N=[1,18],R=[1,19],w=[1,20],M=[1,21],B=[1,22],P=[1,23],Y=[1,28],W=[6,26,27,28,29],O={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(t,i,n,a,r,s,d){var c=s.length-1;switch(r){case 4:a.setShowData(!0);break;case 7:this.$=s[c-1];break;case 9:a.addSection(s[c-1],a.cleanupValue(s[c]));break;case 10:this.$=s[c].trim(),a.setDiagramTitle(this.$);break;case 11:this.$=s[c].trim(),a.setAccTitle(this.$);break;case 12:case 13:this.$=s[c].trim(),a.setAccDescription(this.$);break;case 14:a.addSection(s[c].substr(8)),this.$=s[c].substr(8);break;case 21:a.parseDirective("%%{","open_directive");break;case 22:a.parseDirective(s[c],"type_directive");break;case 23:s[c]=s[c].trim().replace(/'/g,'"'),a.parseDirective(s[c],"arg_directive");break;case 24:a.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:f,21:8,26:E,27:m,28:D,29:T},{1:[3]},{3:10,4:2,5:3,6:f,21:8,26:E,27:m,28:D,29:T},{3:11,4:2,5:3,6:f,21:8,26:E,27:m,28:D,29:T},e(y,I,{7:12,8:[1,13]}),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},e(o,V,{21:8,9:16,10:17,5:24,1:[2,3],11:N,13:R,15:w,17:M,19:B,20:P,29:T}),e(y,I,{7:25}),{23:26,24:[1,27],32:Y},e([24,32],[2,22]),e(y,[2,6]),{4:29,26:E,27:m,28:D},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},e(o,[2,13]),e(o,[2,14]),e(o,[2,15]),e(o,V,{21:8,9:16,10:17,5:24,1:[2,4],11:N,13:R,15:w,17:M,19:B,20:P,29:T}),e(W,[2,16]),{25:34,31:[1,35]},e(W,[2,24]),e(y,[2,7]),e(o,[2,9]),e(o,[2,10]),e(o,[2,11]),e(o,[2,12]),{23:36,32:Y},{32:[2,23]},e(W,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],a=[],r=[null],s=[],d=this.table,c="",_=0,z=0,Q=2,q=1,X=s.slice.call(arguments,1),l=Object.create(this.lexer),$={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&($.yy[Z]=this.yy[Z]);l.setInput(t,$.yy),$.yy.lexer=l,$.yy.parser=this,typeof l.yylloc=="undefined"&&(l.yylloc={});var tt=l.yylloc;s.push(tt);var kt=l.options&&l.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xt(){var k;return k=a.pop()||l.lex()||q,typeof k!="number"&&(k instanceof Array&&(a=k,k=a.pop()),k=i.symbols_[k]||k),k}for(var h,A,p,et,L={},G,b,ct,H;;){if(A=n[n.length-1],this.defaultActions[A]?p=this.defaultActions[A]:((h===null||typeof h=="undefined")&&(h=xt()),p=d[A]&&d[A][h]),typeof p=="undefined"||!p.length||!p[0]){var it="";H=[];for(G in d[A])this.terminals_[G]&&G>Q&&H.push("'"+this.terminals_[G]+"'");l.showPosition?it="Parse error on line "+(_+1)+`:
import{Ja as vt,Na as bt,b as St,c as wt,da as C,h as J,ha as ht,l as lt,na as F,oa as ut,qa as pt,ra as ft,sa as yt,ta as dt,u as nt,ua as mt,va as _t,wa as gt,x as ot,z as Et}from"./chunk-KU2GO2AH.js";import{h as st}from"./chunk-2YVZDWG7.js";var Mt=st(St(),1),Bt=st(wt(),1),Yt=st(Et(),1);var rt=function(){var e=function(u,t,i,n){for(i=i||{},n=u.length;n--;i[u[n]]=t);return i},f=[1,4],E=[1,5],m=[1,6],D=[1,7],T=[1,9],y=[1,11,13,15,17,19,20,26,27,28,29],I=[2,5],S=[1,6,11,13,15,17,19,20,26,27,28,29],o=[26,27,28],V=[2,8],N=[1,18],R=[1,19],w=[1,20],M=[1,21],B=[1,22],P=[1,23],Y=[1,28],W=[6,26,27,28,29],O={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(t,i,n,a,r,s,d){var c=s.length-1;switch(r){case 4:a.setShowData(!0);break;case 7:this.$=s[c-1];break;case 9:a.addSection(s[c-1],a.cleanupValue(s[c]));break;case 10:this.$=s[c].trim(),a.setDiagramTitle(this.$);break;case 11:this.$=s[c].trim(),a.setAccTitle(this.$);break;case 12:case 13:this.$=s[c].trim(),a.setAccDescription(this.$);break;case 14:a.addSection(s[c].substr(8)),this.$=s[c].substr(8);break;case 21:a.parseDirective("%%{","open_directive");break;case 22:a.parseDirective(s[c],"type_directive");break;case 23:s[c]=s[c].trim().replace(/'/g,'"'),a.parseDirective(s[c],"arg_directive");break;case 24:a.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:f,21:8,26:E,27:m,28:D,29:T},{1:[3]},{3:10,4:2,5:3,6:f,21:8,26:E,27:m,28:D,29:T},{3:11,4:2,5:3,6:f,21:8,26:E,27:m,28:D,29:T},e(y,I,{7:12,8:[1,13]}),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},e(o,V,{21:8,9:16,10:17,5:24,1:[2,3],11:N,13:R,15:w,17:M,19:B,20:P,29:T}),e(y,I,{7:25}),{23:26,24:[1,27],32:Y},e([24,32],[2,22]),e(y,[2,6]),{4:29,26:E,27:m,28:D},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},e(o,[2,13]),e(o,[2,14]),e(o,[2,15]),e(o,V,{21:8,9:16,10:17,5:24,1:[2,4],11:N,13:R,15:w,17:M,19:B,20:P,29:T}),e(W,[2,16]),{25:34,31:[1,35]},e(W,[2,24]),e(y,[2,7]),e(o,[2,9]),e(o,[2,10]),e(o,[2,11]),e(o,[2,12]),{23:36,32:Y},{32:[2,23]},e(W,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],a=[],r=[null],s=[],d=this.table,c="",_=0,z=0,Q=2,q=1,X=s.slice.call(arguments,1),l=Object.create(this.lexer),$={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&($.yy[Z]=this.yy[Z]);l.setInput(t,$.yy),$.yy.lexer=l,$.yy.parser=this,typeof l.yylloc=="undefined"&&(l.yylloc={});var tt=l.yylloc;s.push(tt);var kt=l.options&&l.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xt(){var k;return k=a.pop()||l.lex()||q,typeof k!="number"&&(k instanceof Array&&(a=k,k=a.pop()),k=i.symbols_[k]||k),k}for(var h,A,p,et,L={},G,b,ct,H;;){if(A=n[n.length-1],this.defaultActions[A]?p=this.defaultActions[A]:((h===null||typeof h=="undefined")&&(h=xt()),p=d[A]&&d[A][h]),typeof p=="undefined"||!p.length||!p[0]){var it="";H=[];for(G in d[A])this.terminals_[G]&&G>Q&&H.push("'"+this.terminals_[G]+"'");l.showPosition?it="Parse error on line "+(_+1)+`:
`+l.showPosition()+`
Expecting `+H.join(", ")+", got '"+(this.terminals_[h]||h)+"'":it="Parse error on line "+(_+1)+": Unexpected "+(h==q?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(it,{text:l.match,token:this.terminals_[h]||h,line:l.yylineno,loc:tt,expected:H})}if(p[0]instanceof Array&&p.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+h);switch(p[0]){case 1:n.push(h),r.push(l.yytext),s.push(l.yylloc),n.push(p[1]),h=null,z=l.yyleng,c=l.yytext,_=l.yylineno,tt=l.yylloc;break;case 2:if(b=this.productions_[p[1]][1],L.$=r[r.length-b],L._$={first_line:s[s.length-(b||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(b||1)].first_column,last_column:s[s.length-1].last_column},kt&&(L._$.range=[s[s.length-(b||1)].range[0],s[s.length-1].range[1]]),et=this.performAction.apply(L,[c,z,_,$.yy,p[1],r,s].concat(X)),typeof et!="undefined")return et;b&&(n=n.slice(0,-1*b*2),r=r.slice(0,-1*b),s=s.slice(0,-1*b)),n.push(this.productions_[p[1]][0]),r.push(L.$),s.push(L._$),ct=d[n[n.length-2]][n[n.length-1]],n.push(ct);break;case 3:return!0}}return!0}},U=function(){var u={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||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];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var a=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===a.length?this.yylloc.first_column:0)+a[a.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},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(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+`

View file

@ -1 +1 @@
import{a as V,b as Y,c as W,d as z,e as w,f as q,g as G,h as K}from"./chunk-3W5HEOBH.js";import{a as U}from"./chunk-5N5GTYLJ.js";import"./chunk-DNBLW6CQ.js";import"./chunk-2GUY7UNH.js";import"./chunk-WQNNISML.js";import{a as H}from"./chunk-DHRALF6T.js";import"./chunk-FHXD2RFP.js";import{Ka as Q,b as it,c as ct,da as l,h as y,ha as g,na as h,oa as J,z as rt}from"./chunk-RQT2CUZQ.js";import"./chunk-CIZ5P7CP.js";import{h as R}from"./chunk-2YVZDWG7.js";var mt=R(it(),1),Ht=R(ct(),1),Ut=R(rt(),1);var x="rect",N="rectWithTitle",lt="start",at="end",dt="divider",Et="roundedWithTitle",pt="note",St="noteGroup",_="statediagram",Tt="state",_t=`${_}-${Tt}`,Z="transition",ut="note",bt="note-edge",ft=`${Z} ${bt}`,Dt=`${_}-${ut}`,ht="cluster",At=`${_}-${ht}`,yt="cluster-alt",gt=`${_}-${yt}`,F="parent",j="note",xt="state",k="----",$t=`${k}${j}`,X=`${k}${F}`,I="fill:none",tt="fill: #333",et="c",ot="text",st="normal",$={},E=0,Ct=function(t){let n=Object.keys(t);for(let e of n)t[e]},Rt=function(t,n){l.trace("Extracting classes"),n.db.clear();try{return n.parser.parse(t),n.db.extract(n.db.getRootDocV2()),n.db.getClasses()}catch(e){return e}};function wt(t){return t==null?"":t.classes?t.classes.join(" "):""}function L(t="",n=0,e="",i=k){let c=e!==null&&e.length>0?`${i}${e}`:"";return`${xt}-${t}${c}-${n}`}var A=(t,n,e,i,c,r)=>{let o=e.id,u=wt(i[o]);if(o!=="root"){let S=x;e.start===!0&&(S=lt),e.start===!1&&(S=at),e.type!==w&&(S=e.type),$[o]||($[o]={id:o,shape:S,description:g.sanitizeText(o,h()),classes:`${u} ${_t}`});let s=$[o];e.description&&(Array.isArray(s.description)?(s.shape=N,s.description.push(e.description)):s.description.length>0?(s.shape=N,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=x,s.description=e.description),s.description=g.sanitizeTextOrArray(s.description,h())),s.description.length===1&&s.shape===N&&(s.shape=x),!s.type&&e.doc&&(l.info("Setting cluster for ",o,P(e)),s.type="group",s.dir=P(e),s.shape=e.type===q?dt:Et,s.classes=s.classes+" "+At+" "+(r?gt:""));let T={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:L(o,E),type:s.type,padding:15};if(T.centerLabel=!0,e.note){let a={labelStyle:"",shape:pt,labelText:e.note.text,classes:Dt,style:"",id:o+$t+"-"+E,domId:L(o,E,j),type:s.type,padding:15},d={labelStyle:"",shape:St,labelText:e.note.text,classes:s.classes,style:"",id:o+X,domId:L(o,E,F),type:"group",padding:0};E++;let b=o+X;t.setNode(b,d),t.setNode(a.id,a),t.setNode(o,T),t.setParent(o,b),t.setParent(a.id,b);let p=o,f=a.id;e.note.position==="left of"&&(p=a.id,f=o),t.setEdge(p,f,{arrowhead:"none",arrowType:"",style:I,labelStyle:"",classes:ft,arrowheadStyle:tt,labelpos:et,labelType:ot,thickness:st})}else t.setNode(o,T)}n&&n.id!=="root"&&(l.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(l.trace("Adding nodes children "),Gt(t,e,e.doc,i,c,!r))},Gt=(t,n,e,i,c,r)=>{l.trace("items",e),e.forEach(o=>{switch(o.stmt){case W:A(t,n,o,i,c,r);break;case w:A(t,n,o,i,c,r);break;case z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);let u={id:"edge"+E,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:I,labelStyle:"",label:g.sanitizeText(o.description,h()),arrowheadStyle:tt,labelpos:et,labelType:ot,thickness:st,classes:Z};t.setEdge(o.state1.id,o.state2.id,u,E),E++}break}})},P=(t,n=Y)=>{let e=n;if(t.doc)for(let i=0;i<t.doc.length;i++){let c=t.doc[i];c.stmt==="dir"&&(e=c.value)}return e},Nt=async function(t,n,e,i){l.info("Drawing state diagram (v2)",n),$={},i.db.getDirection();let{securityLevel:c,state:r}=h(),o=r.nodeSpacing||50,u=r.rankSpacing||50;l.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),l.info(i.db.getRootDocV2());let S=i.db.getStates(),s=new H({multigraph:!0,compound:!0}).setGraph({rankdir:P(i.db.getRootDocV2()),nodesep:o,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});A(s,void 0,i.db.getRootDocV2(),S,i.db,!0);let T;c==="sandbox"&&(T=y("#i"+n));let a=c==="sandbox"?y(T.nodes()[0].contentDocument.body):y("body"),d=a.select(`[id="${n}"]`),b=a.select("#"+n+" g");await U(b,s,["barb"],_,n);let p=8;Q.insertTitle(d,"statediagramTitleText",r.titleTopMargin,i.db.getDiagramTitle());let f=d.node().getBBox(),v=f.width+p*2,O=f.height+p*2;d.attr("class",_);let B=d.node().getBBox();J(d,O,v,r.useMaxWidth);let M=`${B.x-p} ${B.y-p} ${v} ${O}`;l.debug(`viewBox ${M}`),d.attr("viewBox",M);let nt=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(let C of nt){let m=C.getBBox(),D=document.createElementNS("http://www.w3.org/2000/svg",x);D.setAttribute("rx",0),D.setAttribute("ry",0),D.setAttribute("width",m.width),D.setAttribute("height",m.height),C.insertBefore(D,C.firstChild)}},Lt={setConf:Ct,getClasses:Rt,draw:Nt},Wt={parser:V,db:G,renderer:Lt,styles:K,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,G.clear()}};export{Wt as diagram};
import{a as V,b as Y,c as W,d as z,e as w,f as q,g as G,h as K}from"./chunk-DXW4N2CS.js";import{a as U}from"./chunk-BMK5W6E7.js";import"./chunk-UIIKMIGR.js";import"./chunk-F2X5DNEE.js";import"./chunk-4OMZAWBS.js";import{a as H}from"./chunk-QFWTWYMO.js";import"./chunk-2MTWH372.js";import{Ka as Q,b as it,c as ct,da as l,h as y,ha as g,na as h,oa as J,z as rt}from"./chunk-KU2GO2AH.js";import"./chunk-CIZ5P7CP.js";import{h as R}from"./chunk-2YVZDWG7.js";var mt=R(it(),1),Ht=R(ct(),1),Ut=R(rt(),1);var x="rect",N="rectWithTitle",lt="start",at="end",dt="divider",Et="roundedWithTitle",pt="note",St="noteGroup",_="statediagram",Tt="state",_t=`${_}-${Tt}`,Z="transition",ut="note",bt="note-edge",ft=`${Z} ${bt}`,Dt=`${_}-${ut}`,ht="cluster",At=`${_}-${ht}`,yt="cluster-alt",gt=`${_}-${yt}`,F="parent",j="note",xt="state",k="----",$t=`${k}${j}`,X=`${k}${F}`,I="fill:none",tt="fill: #333",et="c",ot="text",st="normal",$={},E=0,Ct=function(t){let n=Object.keys(t);for(let e of n)t[e]},Rt=function(t,n){l.trace("Extracting classes"),n.db.clear();try{return n.parser.parse(t),n.db.extract(n.db.getRootDocV2()),n.db.getClasses()}catch(e){return e}};function wt(t){return t==null?"":t.classes?t.classes.join(" "):""}function L(t="",n=0,e="",i=k){let c=e!==null&&e.length>0?`${i}${e}`:"";return`${xt}-${t}${c}-${n}`}var A=(t,n,e,i,c,r)=>{let o=e.id,u=wt(i[o]);if(o!=="root"){let S=x;e.start===!0&&(S=lt),e.start===!1&&(S=at),e.type!==w&&(S=e.type),$[o]||($[o]={id:o,shape:S,description:g.sanitizeText(o,h()),classes:`${u} ${_t}`});let s=$[o];e.description&&(Array.isArray(s.description)?(s.shape=N,s.description.push(e.description)):s.description.length>0?(s.shape=N,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=x,s.description=e.description),s.description=g.sanitizeTextOrArray(s.description,h())),s.description.length===1&&s.shape===N&&(s.shape=x),!s.type&&e.doc&&(l.info("Setting cluster for ",o,P(e)),s.type="group",s.dir=P(e),s.shape=e.type===q?dt:Et,s.classes=s.classes+" "+At+" "+(r?gt:""));let T={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:L(o,E),type:s.type,padding:15};if(T.centerLabel=!0,e.note){let a={labelStyle:"",shape:pt,labelText:e.note.text,classes:Dt,style:"",id:o+$t+"-"+E,domId:L(o,E,j),type:s.type,padding:15},d={labelStyle:"",shape:St,labelText:e.note.text,classes:s.classes,style:"",id:o+X,domId:L(o,E,F),type:"group",padding:0};E++;let b=o+X;t.setNode(b,d),t.setNode(a.id,a),t.setNode(o,T),t.setParent(o,b),t.setParent(a.id,b);let p=o,f=a.id;e.note.position==="left of"&&(p=a.id,f=o),t.setEdge(p,f,{arrowhead:"none",arrowType:"",style:I,labelStyle:"",classes:ft,arrowheadStyle:tt,labelpos:et,labelType:ot,thickness:st})}else t.setNode(o,T)}n&&n.id!=="root"&&(l.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(l.trace("Adding nodes children "),Gt(t,e,e.doc,i,c,!r))},Gt=(t,n,e,i,c,r)=>{l.trace("items",e),e.forEach(o=>{switch(o.stmt){case W:A(t,n,o,i,c,r);break;case w:A(t,n,o,i,c,r);break;case z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);let u={id:"edge"+E,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:I,labelStyle:"",label:g.sanitizeText(o.description,h()),arrowheadStyle:tt,labelpos:et,labelType:ot,thickness:st,classes:Z};t.setEdge(o.state1.id,o.state2.id,u,E),E++}break}})},P=(t,n=Y)=>{let e=n;if(t.doc)for(let i=0;i<t.doc.length;i++){let c=t.doc[i];c.stmt==="dir"&&(e=c.value)}return e},Nt=async function(t,n,e,i){l.info("Drawing state diagram (v2)",n),$={},i.db.getDirection();let{securityLevel:c,state:r}=h(),o=r.nodeSpacing||50,u=r.rankSpacing||50;l.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),l.info(i.db.getRootDocV2());let S=i.db.getStates(),s=new H({multigraph:!0,compound:!0}).setGraph({rankdir:P(i.db.getRootDocV2()),nodesep:o,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});A(s,void 0,i.db.getRootDocV2(),S,i.db,!0);let T;c==="sandbox"&&(T=y("#i"+n));let a=c==="sandbox"?y(T.nodes()[0].contentDocument.body):y("body"),d=a.select(`[id="${n}"]`),b=a.select("#"+n+" g");await U(b,s,["barb"],_,n);let p=8;Q.insertTitle(d,"statediagramTitleText",r.titleTopMargin,i.db.getDiagramTitle());let f=d.node().getBBox(),v=f.width+p*2,O=f.height+p*2;d.attr("class",_);let B=d.node().getBBox();J(d,O,v,r.useMaxWidth);let M=`${B.x-p} ${B.y-p} ${v} ${O}`;l.debug(`viewBox ${M}`),d.attr("viewBox",M);let nt=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(let C of nt){let m=C.getBBox(),D=document.createElementNS("http://www.w3.org/2000/svg",x);D.setAttribute("rx",0),D.setAttribute("ry",0),D.setAttribute("width",m.width),D.setAttribute("height",m.height),C.insertBefore(D,C.firstChild)}},Lt={setConf:Ct,getClasses:Rt,draw:Nt},Wt={parser:V,db:G,renderer:Lt,styles:K,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,G.clear()}};export{Wt as diagram};

View file

@ -1,4 +1,4 @@
import{C as rt,D as at,E as ct,b as Mt,c as $t,da as T,h as q,na as lt,pa as ot,qa as ht,u as tt,xa as dt,ya as ut,z as Lt}from"./chunk-RQT2CUZQ.js";import{h as D}from"./chunk-2YVZDWG7.js";var ie=D(Mt(),1),se=D($t(),1),re=D(Lt(),1);var et=function(){var n=function(_,r,a,h){for(a=a||{},h=_.length;h--;a[_[h]]=r);return a},t=[1,2],e=[1,5],s=[6,9,11,17,18,20,22,23,26,27,28],i=[1,15],o=[1,16],l=[1,17],y=[1,18],d=[1,19],p=[1,23],m=[1,24],S=[1,27],w=[4,6,9,11,17,18,20,22,23,26,27,28],x={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(r,a,h,u,g,c,I){var f=c.length-1;switch(g){case 1:return c[f-1];case 3:this.$=[];break;case 4:c[f-1].push(c[f]),this.$=c[f-1];break;case 5:case 6:this.$=c[f];break;case 7:case 8:this.$=[];break;case 11:u.getCommonDb().setDiagramTitle(c[f].substr(6)),this.$=c[f].substr(6);break;case 12:this.$=c[f].trim(),u.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=c[f].trim(),u.getCommonDb().setAccDescription(this.$);break;case 15:u.addSection(c[f].substr(8)),this.$=c[f].substr(8);break;case 19:u.addTask(c[f],0,""),this.$=c[f];break;case 20:u.addEvent(c[f].substr(2)),this.$=c[f];break;case 21:u.parseDirective("%%{","open_directive");break;case 22:u.parseDirective(c[f],"type_directive");break;case 23:c[f]=c[f].trim().replace(/'/g,'"'),u.parseDirective(c[f],"arg_directive");break;case 24:u.parseDirective("}%%","close_directive","timeline");break}},table:[{3:1,4:t,7:3,12:4,28:e},{1:[3]},n(s,[2,3],{5:6}),{3:7,4:t,7:3,12:4,28:e},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:o,20:l,22:y,23:d,24:20,25:21,26:p,27:m,28:e},{1:[2,2]},{14:25,15:[1,26],31:S},n([15,31],[2,22]),n(s,[2,8],{1:[2,1]}),n(s,[2,4]),{7:22,10:28,12:4,17:i,18:o,20:l,22:y,23:d,24:20,25:21,26:p,27:m,28:e},n(s,[2,6]),n(s,[2,7]),n(s,[2,11]),{19:[1,29]},{21:[1,30]},n(s,[2,14]),n(s,[2,15]),n(s,[2,16]),n(s,[2,17]),n(s,[2,18]),n(s,[2,19]),n(s,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},n(s,[2,5]),n(s,[2,12]),n(s,[2,13]),n(w,[2,9]),{14:34,31:S},{31:[2,23]},{11:[1,35]},n(w,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=a,h}},parse:function(r){var a=this,h=[0],u=[],g=[null],c=[],I=this.table,f="",P=0,z=0,j=2,X=1,U=c.slice.call(arguments,1),b=Object.create(this.lexer),L={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(L.yy[A]=this.yy[A]);b.setInput(r,L.yy),L.yy.lexer=b,L.yy.parser=this,typeof b.yylloc=="undefined"&&(b.yylloc={});var k=b.yylloc;c.push(k);var H=b.options&&b.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function R(){var V;return V=u.pop()||b.lex()||X,typeof V!="number"&&(V instanceof Array&&(u=V,V=u.pop()),V=a.symbols_[V]||V),V}for(var v,N,M,G,W={},Z,C,st,J;;){if(N=h[h.length-1],this.defaultActions[N]?M=this.defaultActions[N]:((v===null||typeof v=="undefined")&&(v=R()),M=I[N]&&I[N][v]),typeof M=="undefined"||!M.length||!M[0]){var Y="";J=[];for(Z in I[N])this.terminals_[Z]&&Z>j&&J.push("'"+this.terminals_[Z]+"'");b.showPosition?Y="Parse error on line "+(P+1)+`:
import{C as rt,D as at,E as ct,b as Mt,c as $t,da as T,h as q,na as lt,pa as ot,qa as ht,u as tt,xa as dt,ya as ut,z as Lt}from"./chunk-KU2GO2AH.js";import{h as D}from"./chunk-2YVZDWG7.js";var ie=D(Mt(),1),se=D($t(),1),re=D(Lt(),1);var et=function(){var n=function(_,r,a,h){for(a=a||{},h=_.length;h--;a[_[h]]=r);return a},t=[1,2],e=[1,5],s=[6,9,11,17,18,20,22,23,26,27,28],i=[1,15],o=[1,16],l=[1,17],y=[1,18],d=[1,19],p=[1,23],m=[1,24],S=[1,27],w=[4,6,9,11,17,18,20,22,23,26,27,28],x={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(r,a,h,u,g,c,I){var f=c.length-1;switch(g){case 1:return c[f-1];case 3:this.$=[];break;case 4:c[f-1].push(c[f]),this.$=c[f-1];break;case 5:case 6:this.$=c[f];break;case 7:case 8:this.$=[];break;case 11:u.getCommonDb().setDiagramTitle(c[f].substr(6)),this.$=c[f].substr(6);break;case 12:this.$=c[f].trim(),u.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=c[f].trim(),u.getCommonDb().setAccDescription(this.$);break;case 15:u.addSection(c[f].substr(8)),this.$=c[f].substr(8);break;case 19:u.addTask(c[f],0,""),this.$=c[f];break;case 20:u.addEvent(c[f].substr(2)),this.$=c[f];break;case 21:u.parseDirective("%%{","open_directive");break;case 22:u.parseDirective(c[f],"type_directive");break;case 23:c[f]=c[f].trim().replace(/'/g,'"'),u.parseDirective(c[f],"arg_directive");break;case 24:u.parseDirective("}%%","close_directive","timeline");break}},table:[{3:1,4:t,7:3,12:4,28:e},{1:[3]},n(s,[2,3],{5:6}),{3:7,4:t,7:3,12:4,28:e},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:o,20:l,22:y,23:d,24:20,25:21,26:p,27:m,28:e},{1:[2,2]},{14:25,15:[1,26],31:S},n([15,31],[2,22]),n(s,[2,8],{1:[2,1]}),n(s,[2,4]),{7:22,10:28,12:4,17:i,18:o,20:l,22:y,23:d,24:20,25:21,26:p,27:m,28:e},n(s,[2,6]),n(s,[2,7]),n(s,[2,11]),{19:[1,29]},{21:[1,30]},n(s,[2,14]),n(s,[2,15]),n(s,[2,16]),n(s,[2,17]),n(s,[2,18]),n(s,[2,19]),n(s,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},n(s,[2,5]),n(s,[2,12]),n(s,[2,13]),n(w,[2,9]),{14:34,31:S},{31:[2,23]},{11:[1,35]},n(w,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=a,h}},parse:function(r){var a=this,h=[0],u=[],g=[null],c=[],I=this.table,f="",P=0,z=0,j=2,X=1,U=c.slice.call(arguments,1),b=Object.create(this.lexer),L={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(L.yy[A]=this.yy[A]);b.setInput(r,L.yy),L.yy.lexer=b,L.yy.parser=this,typeof b.yylloc=="undefined"&&(b.yylloc={});var k=b.yylloc;c.push(k);var H=b.options&&b.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function R(){var V;return V=u.pop()||b.lex()||X,typeof V!="number"&&(V instanceof Array&&(u=V,V=u.pop()),V=a.symbols_[V]||V),V}for(var v,N,M,G,W={},Z,C,st,J;;){if(N=h[h.length-1],this.defaultActions[N]?M=this.defaultActions[N]:((v===null||typeof v=="undefined")&&(v=R()),M=I[N]&&I[N][v]),typeof M=="undefined"||!M.length||!M[0]){var Y="";J=[];for(Z in I[N])this.terminals_[Z]&&Z>j&&J.push("'"+this.terminals_[Z]+"'");b.showPosition?Y="Parse error on line "+(P+1)+`:
`+b.showPosition()+`
Expecting `+J.join(", ")+", got '"+(this.terminals_[v]||v)+"'":Y="Parse error on line "+(P+1)+": Unexpected "+(v==X?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(Y,{text:b.match,token:this.terminals_[v]||v,line:b.yylineno,loc:k,expected:J})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+N+", token: "+v);switch(M[0]){case 1:h.push(v),g.push(b.yytext),c.push(b.yylloc),h.push(M[1]),v=null,z=b.yyleng,f=b.yytext,P=b.yylineno,k=b.yylloc;break;case 2:if(C=this.productions_[M[1]][1],W.$=g[g.length-C],W._$={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},H&&(W._$.range=[c[c.length-(C||1)].range[0],c[c.length-1].range[1]]),G=this.performAction.apply(W,[f,z,P,L.yy,M[1],g,c].concat(U)),typeof G!="undefined")return G;C&&(h=h.slice(0,-1*C*2),g=g.slice(0,-1*C),c=c.slice(0,-1*C)),h.push(this.productions_[M[1]][0]),g.push(W.$),c.push(W._$),st=I[h[h.length-2]][h[h.length-1]],h.push(st);break;case 3:return!0}}return!0}},E=function(){var _={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var a=r.length,h=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=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 g=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===u.length?this.yylloc.first_column:0)+u[u.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`