orbitchat 2.1.6 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/assets/{api-CK3k3ceJ.js → api-DZkCbfw-.js} +1 -1
  2. package/dist/assets/{arc-CvECY7sY-BAfm7gAl.js → arc-CvECY7sY-CCUjLJq2.js} +1 -1
  3. package/dist/assets/{blockDiagram-c4efeb88-NvaZhZFT-B2z-bNEd.js → blockDiagram-c4efeb88-NvaZhZFT-2jTGmfzw.js} +1 -1
  4. package/dist/assets/{c4Diagram-c83219d4-gPr1eF38-BpklvzfC.js → c4Diagram-c83219d4-gPr1eF38-DMPWXy6y.js} +1 -1
  5. package/dist/assets/channel-6PI3wNcc-BxckuQvX.js +1 -0
  6. package/dist/assets/{classDiagram-beda092f-B8axaKGu-C7KpiekH.js → classDiagram-beda092f-B8axaKGu-Cu_ZIJ6u.js} +1 -1
  7. package/dist/assets/{classDiagram-v2-2358418a-DPdf2DxR-CfXv0anP.js → classDiagram-v2-2358418a-DPdf2DxR-BZsTNggP.js} +1 -1
  8. package/dist/assets/clone-D01vUIhD-DmY5mrln.js +1 -0
  9. package/dist/assets/{createText-1719965b-D9Y3vUMn-UiwO3q8Q.js → createText-1719965b-D9Y3vUMn-DDdadCK5.js} +1 -1
  10. package/dist/assets/{edges-96097737-Zc6U9nQz-Czq3--42.js → edges-96097737-Zc6U9nQz-BzB5ko4h.js} +1 -1
  11. package/dist/assets/{erDiagram-0228fc6a-BLw8FsIp-CkgJ5rpM.js → erDiagram-0228fc6a-BLw8FsIp-Cs8VClxW.js} +1 -1
  12. package/dist/assets/{flowDb-c6c81e3f-DXVkMlSE-DRQM6L-v.js → flowDb-c6c81e3f-DXVkMlSE-lHya7k5v.js} +1 -1
  13. package/dist/assets/{flowDiagram-50d868cf-mkkB0hFd-CL_JosYM.js → flowDiagram-50d868cf-mkkB0hFd-S2mNfjcZ.js} +1 -1
  14. package/dist/assets/flowDiagram-v2-4f6560a1-BRIhxQ3y-DOhW7LIb.js +1 -0
  15. package/dist/assets/{flowchart-elk-definition-6af322e1-D9IbjnSJ-DWoCBlEO.js → flowchart-elk-definition-6af322e1-D9IbjnSJ-RN3qt1rV.js} +1 -1
  16. package/dist/assets/{ganttDiagram-a2739b55-Cqs5_Zht-CyVqot_b.js → ganttDiagram-a2739b55-Cqs5_Zht-C5tqANPy.js} +1 -1
  17. package/dist/assets/{gitGraphDiagram-82fe8481-txBzFn40-CZkxfaP2.js → gitGraphDiagram-82fe8481-txBzFn40-CsYRcfiT.js} +1 -1
  18. package/dist/assets/{graph-BZahQKIN-CTgzd5us.js → graph-BZahQKIN-CenQ9kLM.js} +1 -1
  19. package/dist/assets/{index-5325376f-DsNDppci-BaFeDo3U.js → index-5325376f-DsNDppci-BmtId_7h.js} +1 -1
  20. package/dist/assets/{index-CDwx2U7N.js → index-CVRNWcf-.js} +91 -91
  21. package/dist/assets/{infoDiagram-8eee0895-SbmhgTjv-CCnN8bBn.js → infoDiagram-8eee0895-SbmhgTjv-DWbp8qIg.js} +1 -1
  22. package/dist/assets/{journeyDiagram-c64418c1-C7AiwbKr-YZTGwLv1.js → journeyDiagram-c64418c1-C7AiwbKr-CR4ESCM3.js} +1 -1
  23. package/dist/assets/{layout-j-hMNqAM-C88IAVJC.js → layout-j-hMNqAM-d_O0ZYu6.js} +1 -1
  24. package/dist/assets/{mindmap-definition-8da855dc-B1WjnfxE-a9TK-xQN.js → mindmap-definition-8da855dc-B1WjnfxE-C_ekkGNm.js} +1 -1
  25. package/dist/assets/{pieDiagram-a8764435-zrkaw4r--BMPBVA0x.js → pieDiagram-a8764435-zrkaw4r--nNryZ7xt.js} +1 -1
  26. package/dist/assets/{quadrantDiagram-1e28029f-C2Wa5n16-DwWDm6cx.js → quadrantDiagram-1e28029f-C2Wa5n16-DJsmIh09.js} +1 -1
  27. package/dist/assets/{requirementDiagram-08caed73-BtHxx079-zeP-18qR.js → requirementDiagram-08caed73-BtHxx079-DyPYX9i4.js} +1 -1
  28. package/dist/assets/{sankeyDiagram-a04cb91d-DXlmqTKB-BJu62Tg5.js → sankeyDiagram-a04cb91d-DXlmqTKB-DF_MhieU.js} +1 -1
  29. package/dist/assets/{sequenceDiagram-c5b8d532-BVQF3vcA-GR7-Xw8e.js → sequenceDiagram-c5b8d532-BVQF3vcA-OQvBng6Z.js} +1 -1
  30. package/dist/assets/{stateDiagram-1ecb1508-Dybc3i2m-BMJzxrY5.js → stateDiagram-1ecb1508-Dybc3i2m-DpShq5Fv.js} +1 -1
  31. package/dist/assets/{stateDiagram-v2-c2b004d7-Bp8rRkv2-Dm74LB8O.js → stateDiagram-v2-c2b004d7-Bp8rRkv2-9nDDCxFS.js} +1 -1
  32. package/dist/assets/{styles-b4e223ce-BSiU4oYL-9ql-THae.js → styles-b4e223ce-BSiU4oYL-D8WR6bxO.js} +1 -1
  33. package/dist/assets/{styles-ca3715f6-DU7x0doE-B7zhH0Zm.js → styles-ca3715f6-DU7x0doE-BqM8h3vG.js} +1 -1
  34. package/dist/assets/{styles-d45a18b0-B_CU21kM--NwLlmWK.js → styles-d45a18b0-B_CU21kM-BP9RAefH.js} +1 -1
  35. package/dist/assets/{svgDrawCommon-b86b1483-sbEe2n2v-CJw2W-Er.js → svgDrawCommon-b86b1483-sbEe2n2v-CFwc1_jc.js} +1 -1
  36. package/dist/assets/{timeline-definition-faaaa080-b82QCnJ9-CY85LKH1.js → timeline-definition-faaaa080-b82QCnJ9-D_9su1EE.js} +1 -1
  37. package/dist/assets/{xychartDiagram-f5964ef8-BtRcO0uy-ylxrBreP.js → xychartDiagram-f5964ef8-BtRcO0uy-C_Ru9X19.js} +1 -1
  38. package/dist/index.html +1 -1
  39. package/package.json +1 -1
  40. package/dist/assets/channel-6PI3wNcc-1exBkyGg.js +0 -1
  41. package/dist/assets/clone-D01vUIhD-D0aslzw6.js +0 -1
  42. package/dist/assets/flowDiagram-v2-4f6560a1-BRIhxQ3y-BzGZQhJW.js +0 -1
@@ -1,4 +1,4 @@
1
- import{L as _t,M as mt,R as kt,D as xt,I as vt,N as bt,S as rt,aK as Et,F as q,ae as Lt,k as wt,j as At,p as St}from"./index-CDwx2U7N.js";import{r as Mt}from"./Tableau10-D7jGxypv-Cyu9clx1.js";function ot(t,e){let s;if(e===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let l of t)(l=e(l,++a,t))!=null&&(s<l||s===void 0&&l>=l)&&(s=l)}return s}function yt(t,e){let s;if(e===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let l of t)(l=e(l,++a,t))!=null&&(s>l||s===void 0&&l>=l)&&(s=l)}return s}function H(t,e){let s=0;if(e===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let l of t)(l=+e(l,++a,t))&&(s+=l)}return s}function It(t){return t.target.depth}function Dt(t){return t.depth}function Nt(t,e){return e-1-t.height}function gt(t,e){return t.sourceLinks.length?t.depth:e-1}function Pt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,It)-1:0}function B(t){return function(){return t}}function at(t,e){return G(t.source,e.source)||t.index-e.index}function lt(t,e){return G(t.target,e.target)||t.index-e.index}function G(t,e){return t.y0-e.y0}function J(t){return t.value}function Ot(t){return t.index}function Ct(t){return t.nodes}function jt(t){return t.links}function ct(t,e){const s=t.get(e);if(!s)throw new Error("missing: "+e);return s}function ht({nodes:t}){for(const e of t){let s=e.y0,a=s;for(const l of e.sourceLinks)l.y0=s+l.width/2,s+=l.width;for(const l of e.targetLinks)l.y1=a+l.width/2,a+=l.width}}function Tt(){let t=0,e=0,s=1,a=1,l=24,k=8,p,_=Ot,i=gt,o,f,m=Ct,y=jt,v=6;function x(){const n={nodes:m.apply(null,arguments),links:y.apply(null,arguments)};return D(n),S(n),M(n),C(n),N(n),ht(n),n}x.update=function(n){return ht(n),n},x.nodeId=function(n){return arguments.length?(_=typeof n=="function"?n:B(n),x):_},x.nodeAlign=function(n){return arguments.length?(i=typeof n=="function"?n:B(n),x):i},x.nodeSort=function(n){return arguments.length?(o=n,x):o},x.nodeWidth=function(n){return arguments.length?(l=+n,x):l},x.nodePadding=function(n){return arguments.length?(k=p=+n,x):k},x.nodes=function(n){return arguments.length?(m=typeof n=="function"?n:B(n),x):m},x.links=function(n){return arguments.length?(y=typeof n=="function"?n:B(n),x):y},x.linkSort=function(n){return arguments.length?(f=n,x):f},x.size=function(n){return arguments.length?(t=e=0,s=+n[0],a=+n[1],x):[s-t,a-e]},x.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],e=+n[0][1],a=+n[1][1],x):[[t,e],[s,a]]},x.iterations=function(n){return arguments.length?(v=+n,x):v};function D({nodes:n,links:c}){for(const[u,r]of n.entries())r.index=u,r.sourceLinks=[],r.targetLinks=[];const h=new Map(n.map((u,r)=>[_(u,r,n),u]));for(const[u,r]of c.entries()){r.index=u;let{source:g,target:E}=r;typeof g!="object"&&(g=r.source=ct(h,g)),typeof E!="object"&&(E=r.target=ct(h,E)),g.sourceLinks.push(r),E.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:u,targetLinks:r}of n)u.sort(f),r.sort(f)}function S({nodes:n}){for(const c of n)c.value=c.fixedValue===void 0?Math.max(H(c.sourceLinks,J),H(c.targetLinks,J)):c.fixedValue}function M({nodes:n}){const c=n.length;let h=new Set(n),u=new Set,r=0;for(;h.size;){for(const g of h){g.depth=r;for(const{target:E}of g.sourceLinks)u.add(E)}if(++r>c)throw new Error("circular link");h=u,u=new Set}}function C({nodes:n}){const c=n.length;let h=new Set(n),u=new Set,r=0;for(;h.size;){for(const g of h){g.height=r;for(const{source:E}of g.targetLinks)u.add(E)}if(++r>c)throw new Error("circular link");h=u,u=new Set}}function I({nodes:n}){const c=ot(n,r=>r.depth)+1,h=(s-t-l)/(c-1),u=new Array(c);for(const r of n){const g=Math.max(0,Math.min(c-1,Math.floor(i.call(null,r,c))));r.layer=g,r.x0=t+g*h,r.x1=r.x0+l,u[g]?u[g].push(r):u[g]=[r]}if(o)for(const r of u)r.sort(o);return u}function b(n){const c=yt(n,h=>(a-e-(h.length-1)*p)/H(h,J));for(const h of n){let u=e;for(const r of h){r.y0=u,r.y1=u+r.value*c,u=r.y1+p;for(const g of r.sourceLinks)g.width=g.value*c}u=(a-u+p)/(h.length+1);for(let r=0;r<h.length;++r){const g=h[r];g.y0+=u*(r+1),g.y1+=u*(r+1)}A(h)}}function N(n){const c=I(n);p=Math.min(k,(a-e)/(ot(c,h=>h.length)-1)),b(c);for(let h=0;h<v;++h){const u=Math.pow(.99,h),r=Math.max(1-u,(h+1)/v);P(c,u,r),j(c,u,r)}}function j(n,c,h){for(let u=1,r=n.length;u<r;++u){const g=n[u];for(const E of g){let W=0,$=0;for(const{source:K,value:Z}of E.targetLinks){let X=Z*(E.layer-K.layer);W+=U(K,E)*X,$+=X}if(!($>0))continue;let R=(W/$-E.y0)*c;E.y0+=R,E.y1+=R,O(E)}o===void 0&&g.sort(G),d(g,h)}}function P(n,c,h){for(let u=n.length,r=u-2;r>=0;--r){const g=n[r];for(const E of g){let W=0,$=0;for(const{target:K,value:Z}of E.sourceLinks){let X=Z*(K.layer-E.layer);W+=T(E,K)*X,$+=X}if(!($>0))continue;let R=(W/$-E.y0)*c;E.y0+=R,E.y1+=R,O(E)}o===void 0&&g.sort(G),d(g,h)}}function d(n,c){const h=n.length>>1,u=n[h];L(n,u.y0-p,h-1,c),w(n,u.y1+p,h+1,c),L(n,a,n.length-1,c),w(n,e,0,c)}function w(n,c,h,u){for(;h<n.length;++h){const r=n[h],g=(c-r.y0)*u;g>1e-6&&(r.y0+=g,r.y1+=g),c=r.y1+p}}function L(n,c,h,u){for(;h>=0;--h){const r=n[h],g=(r.y1-c)*u;g>1e-6&&(r.y0-=g,r.y1-=g),c=r.y0-p}}function O({sourceLinks:n,targetLinks:c}){if(f===void 0){for(const{source:{sourceLinks:h}}of c)h.sort(lt);for(const{target:{targetLinks:h}}of n)h.sort(at)}}function A(n){if(f===void 0)for(const{sourceLinks:c,targetLinks:h}of n)c.sort(lt),h.sort(at)}function U(n,c){let h=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:u,width:r}of n.sourceLinks){if(u===c)break;h+=r+p}for(const{source:u,width:r}of c.targetLinks){if(u===n)break;h-=r}return h}function T(n,c){let h=c.y0-(c.targetLinks.length-1)*p/2;for(const{source:u,width:r}of c.targetLinks){if(u===n)break;h+=r+p}for(const{target:u,width:r}of n.sourceLinks){if(u===c)break;h-=r}return h}return x}var tt=Math.PI,nt=2*tt,z=1e-6,$t=nt-z;function et(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function dt(){return new et}et.prototype=dt.prototype={constructor:et,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,s,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,e,s,a,l,k){this._+="C"+ +t+","+ +e+","+ +s+","+ +a+","+(this._x1=+l)+","+(this._y1=+k)},arcTo:function(t,e,s,a,l){t=+t,e=+e,s=+s,a=+a,l=+l;var k=this._x1,p=this._y1,_=s-t,i=a-e,o=k-t,f=p-e,m=o*o+f*f;if(l<0)throw new Error("negative radius: "+l);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(m>z)if(!(Math.abs(f*_-i*o)>z)||!l)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var y=s-k,v=a-p,x=_*_+i*i,D=y*y+v*v,S=Math.sqrt(x),M=Math.sqrt(m),C=l*Math.tan((tt-Math.acos((x+m-D)/(2*S*M)))/2),I=C/M,b=C/S;Math.abs(I-1)>z&&(this._+="L"+(t+I*o)+","+(e+I*f)),this._+="A"+l+","+l+",0,0,"+ +(f*y>o*v)+","+(this._x1=t+b*_)+","+(this._y1=e+b*i)}},arc:function(t,e,s,a,l,k){t=+t,e=+e,s=+s,k=!!k;var p=s*Math.cos(a),_=s*Math.sin(a),i=t+p,o=e+_,f=1^k,m=k?a-l:l-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>z||Math.abs(this._y1-o)>z)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%nt+nt),m>$t?this._+="A"+s+","+s+",0,1,"+f+","+(t-p)+","+(e-_)+"A"+s+","+s+",0,1,"+f+","+(this._x1=i)+","+(this._y1=o):m>z&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+f+","+(this._x1=t+s*Math.cos(l))+","+(this._y1=e+s*Math.sin(l))))},rect:function(t,e,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ut(t){return function(){return t}}function zt(t){return t[0]}function Ft(t){return t[1]}var Ut=Array.prototype.slice;function Wt(t){return t.source}function Rt(t){return t.target}function Kt(t){var e=Wt,s=Rt,a=zt,l=Ft,k=null;function p(){var _,i=Ut.call(arguments),o=e.apply(this,i),f=s.apply(this,i);if(k||(k=_=dt()),t(k,+a.apply(this,(i[0]=o,i)),+l.apply(this,i),+a.apply(this,(i[0]=f,i)),+l.apply(this,i)),_)return k=null,_+""||null}return p.source=function(_){return arguments.length?(e=_,p):e},p.target=function(_){return arguments.length?(s=_,p):s},p.x=function(_){return arguments.length?(a=typeof _=="function"?_:ut(+_),p):a},p.y=function(_){return arguments.length?(l=typeof _=="function"?_:ut(+_),p):l},p.context=function(_){return arguments.length?(k=_??null,p):k},p}function Xt(t,e,s,a,l){t.moveTo(e,s),t.bezierCurveTo(e=(e+a)/2,s,e,l,a,l)}function qt(){return Kt(Xt)}function Bt(t){return[t.source.x1,t.y0]}function Gt(t){return[t.target.x0,t.y1]}function Qt(){return qt().source(Bt).target(Gt)}var it=function(){var t=function(_,i,o,f){for(o=o||{},f=_.length;f--;o[_[f]]=i);return o},e=[1,9],s=[1,10],a=[1,5,10,12],l={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(_,i,o,f,m,y,v){var x=y.length-1;switch(m){case 7:const D=f.findOrCreateNode(y[x-4].trim().replaceAll('""','"')),S=f.findOrCreateNode(y[x-2].trim().replaceAll('""','"')),M=parseFloat(y[x].trim());f.addLink(D,S,M);break;case 8:case 9:case 11:this.$=y[x];break;case 10:this.$=y[x-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:s},{15:18,16:7,17:8,18:e,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:e,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(_,i){if(i.recoverable)this.trace(_);else{var o=new Error(_);throw o.hash=i,o}},parse:function(_){var i=this,o=[0],f=[],m=[null],y=[],v=this.table,x="",D=0,S=0,M=2,C=1,I=y.slice.call(arguments,1),b=Object.create(this.lexer),N={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(N.yy[j]=this.yy[j]);b.setInput(_,N.yy),N.yy.lexer=b,N.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var P=b.yylloc;y.push(P);var d=b.options&&b.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function w(){var g;return g=f.pop()||b.lex()||C,typeof g!="number"&&(g instanceof Array&&(f=g,g=f.pop()),g=i.symbols_[g]||g),g}for(var L,O,A,U,T={},n,c,h,u;;){if(O=o[o.length-1],this.defaultActions[O]?A=this.defaultActions[O]:((L===null||typeof L>"u")&&(L=w()),A=v[O]&&v[O][L]),typeof A>"u"||!A.length||!A[0]){var r="";u=[];for(n in v[O])this.terminals_[n]&&n>M&&u.push("'"+this.terminals_[n]+"'");b.showPosition?r="Parse error on line "+(D+1)+`:
1
+ import{L as _t,M as mt,R as kt,D as xt,I as vt,N as bt,S as rt,aK as Et,F as q,ae as Lt,k as wt,j as At,p as St}from"./index-CVRNWcf-.js";import{r as Mt}from"./Tableau10-D7jGxypv-Cyu9clx1.js";function ot(t,e){let s;if(e===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let l of t)(l=e(l,++a,t))!=null&&(s<l||s===void 0&&l>=l)&&(s=l)}return s}function yt(t,e){let s;if(e===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let l of t)(l=e(l,++a,t))!=null&&(s>l||s===void 0&&l>=l)&&(s=l)}return s}function H(t,e){let s=0;if(e===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let l of t)(l=+e(l,++a,t))&&(s+=l)}return s}function It(t){return t.target.depth}function Dt(t){return t.depth}function Nt(t,e){return e-1-t.height}function gt(t,e){return t.sourceLinks.length?t.depth:e-1}function Pt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,It)-1:0}function B(t){return function(){return t}}function at(t,e){return G(t.source,e.source)||t.index-e.index}function lt(t,e){return G(t.target,e.target)||t.index-e.index}function G(t,e){return t.y0-e.y0}function J(t){return t.value}function Ot(t){return t.index}function Ct(t){return t.nodes}function jt(t){return t.links}function ct(t,e){const s=t.get(e);if(!s)throw new Error("missing: "+e);return s}function ht({nodes:t}){for(const e of t){let s=e.y0,a=s;for(const l of e.sourceLinks)l.y0=s+l.width/2,s+=l.width;for(const l of e.targetLinks)l.y1=a+l.width/2,a+=l.width}}function Tt(){let t=0,e=0,s=1,a=1,l=24,k=8,p,_=Ot,i=gt,o,f,m=Ct,y=jt,v=6;function x(){const n={nodes:m.apply(null,arguments),links:y.apply(null,arguments)};return D(n),S(n),M(n),C(n),N(n),ht(n),n}x.update=function(n){return ht(n),n},x.nodeId=function(n){return arguments.length?(_=typeof n=="function"?n:B(n),x):_},x.nodeAlign=function(n){return arguments.length?(i=typeof n=="function"?n:B(n),x):i},x.nodeSort=function(n){return arguments.length?(o=n,x):o},x.nodeWidth=function(n){return arguments.length?(l=+n,x):l},x.nodePadding=function(n){return arguments.length?(k=p=+n,x):k},x.nodes=function(n){return arguments.length?(m=typeof n=="function"?n:B(n),x):m},x.links=function(n){return arguments.length?(y=typeof n=="function"?n:B(n),x):y},x.linkSort=function(n){return arguments.length?(f=n,x):f},x.size=function(n){return arguments.length?(t=e=0,s=+n[0],a=+n[1],x):[s-t,a-e]},x.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],e=+n[0][1],a=+n[1][1],x):[[t,e],[s,a]]},x.iterations=function(n){return arguments.length?(v=+n,x):v};function D({nodes:n,links:c}){for(const[u,r]of n.entries())r.index=u,r.sourceLinks=[],r.targetLinks=[];const h=new Map(n.map((u,r)=>[_(u,r,n),u]));for(const[u,r]of c.entries()){r.index=u;let{source:g,target:E}=r;typeof g!="object"&&(g=r.source=ct(h,g)),typeof E!="object"&&(E=r.target=ct(h,E)),g.sourceLinks.push(r),E.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:u,targetLinks:r}of n)u.sort(f),r.sort(f)}function S({nodes:n}){for(const c of n)c.value=c.fixedValue===void 0?Math.max(H(c.sourceLinks,J),H(c.targetLinks,J)):c.fixedValue}function M({nodes:n}){const c=n.length;let h=new Set(n),u=new Set,r=0;for(;h.size;){for(const g of h){g.depth=r;for(const{target:E}of g.sourceLinks)u.add(E)}if(++r>c)throw new Error("circular link");h=u,u=new Set}}function C({nodes:n}){const c=n.length;let h=new Set(n),u=new Set,r=0;for(;h.size;){for(const g of h){g.height=r;for(const{source:E}of g.targetLinks)u.add(E)}if(++r>c)throw new Error("circular link");h=u,u=new Set}}function I({nodes:n}){const c=ot(n,r=>r.depth)+1,h=(s-t-l)/(c-1),u=new Array(c);for(const r of n){const g=Math.max(0,Math.min(c-1,Math.floor(i.call(null,r,c))));r.layer=g,r.x0=t+g*h,r.x1=r.x0+l,u[g]?u[g].push(r):u[g]=[r]}if(o)for(const r of u)r.sort(o);return u}function b(n){const c=yt(n,h=>(a-e-(h.length-1)*p)/H(h,J));for(const h of n){let u=e;for(const r of h){r.y0=u,r.y1=u+r.value*c,u=r.y1+p;for(const g of r.sourceLinks)g.width=g.value*c}u=(a-u+p)/(h.length+1);for(let r=0;r<h.length;++r){const g=h[r];g.y0+=u*(r+1),g.y1+=u*(r+1)}A(h)}}function N(n){const c=I(n);p=Math.min(k,(a-e)/(ot(c,h=>h.length)-1)),b(c);for(let h=0;h<v;++h){const u=Math.pow(.99,h),r=Math.max(1-u,(h+1)/v);P(c,u,r),j(c,u,r)}}function j(n,c,h){for(let u=1,r=n.length;u<r;++u){const g=n[u];for(const E of g){let W=0,$=0;for(const{source:K,value:Z}of E.targetLinks){let X=Z*(E.layer-K.layer);W+=U(K,E)*X,$+=X}if(!($>0))continue;let R=(W/$-E.y0)*c;E.y0+=R,E.y1+=R,O(E)}o===void 0&&g.sort(G),d(g,h)}}function P(n,c,h){for(let u=n.length,r=u-2;r>=0;--r){const g=n[r];for(const E of g){let W=0,$=0;for(const{target:K,value:Z}of E.sourceLinks){let X=Z*(K.layer-E.layer);W+=T(E,K)*X,$+=X}if(!($>0))continue;let R=(W/$-E.y0)*c;E.y0+=R,E.y1+=R,O(E)}o===void 0&&g.sort(G),d(g,h)}}function d(n,c){const h=n.length>>1,u=n[h];L(n,u.y0-p,h-1,c),w(n,u.y1+p,h+1,c),L(n,a,n.length-1,c),w(n,e,0,c)}function w(n,c,h,u){for(;h<n.length;++h){const r=n[h],g=(c-r.y0)*u;g>1e-6&&(r.y0+=g,r.y1+=g),c=r.y1+p}}function L(n,c,h,u){for(;h>=0;--h){const r=n[h],g=(r.y1-c)*u;g>1e-6&&(r.y0-=g,r.y1-=g),c=r.y0-p}}function O({sourceLinks:n,targetLinks:c}){if(f===void 0){for(const{source:{sourceLinks:h}}of c)h.sort(lt);for(const{target:{targetLinks:h}}of n)h.sort(at)}}function A(n){if(f===void 0)for(const{sourceLinks:c,targetLinks:h}of n)c.sort(lt),h.sort(at)}function U(n,c){let h=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:u,width:r}of n.sourceLinks){if(u===c)break;h+=r+p}for(const{source:u,width:r}of c.targetLinks){if(u===n)break;h-=r}return h}function T(n,c){let h=c.y0-(c.targetLinks.length-1)*p/2;for(const{source:u,width:r}of c.targetLinks){if(u===n)break;h+=r+p}for(const{target:u,width:r}of n.sourceLinks){if(u===c)break;h-=r}return h}return x}var tt=Math.PI,nt=2*tt,z=1e-6,$t=nt-z;function et(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function dt(){return new et}et.prototype=dt.prototype={constructor:et,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,s,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,e,s,a,l,k){this._+="C"+ +t+","+ +e+","+ +s+","+ +a+","+(this._x1=+l)+","+(this._y1=+k)},arcTo:function(t,e,s,a,l){t=+t,e=+e,s=+s,a=+a,l=+l;var k=this._x1,p=this._y1,_=s-t,i=a-e,o=k-t,f=p-e,m=o*o+f*f;if(l<0)throw new Error("negative radius: "+l);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(m>z)if(!(Math.abs(f*_-i*o)>z)||!l)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var y=s-k,v=a-p,x=_*_+i*i,D=y*y+v*v,S=Math.sqrt(x),M=Math.sqrt(m),C=l*Math.tan((tt-Math.acos((x+m-D)/(2*S*M)))/2),I=C/M,b=C/S;Math.abs(I-1)>z&&(this._+="L"+(t+I*o)+","+(e+I*f)),this._+="A"+l+","+l+",0,0,"+ +(f*y>o*v)+","+(this._x1=t+b*_)+","+(this._y1=e+b*i)}},arc:function(t,e,s,a,l,k){t=+t,e=+e,s=+s,k=!!k;var p=s*Math.cos(a),_=s*Math.sin(a),i=t+p,o=e+_,f=1^k,m=k?a-l:l-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>z||Math.abs(this._y1-o)>z)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%nt+nt),m>$t?this._+="A"+s+","+s+",0,1,"+f+","+(t-p)+","+(e-_)+"A"+s+","+s+",0,1,"+f+","+(this._x1=i)+","+(this._y1=o):m>z&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+f+","+(this._x1=t+s*Math.cos(l))+","+(this._y1=e+s*Math.sin(l))))},rect:function(t,e,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ut(t){return function(){return t}}function zt(t){return t[0]}function Ft(t){return t[1]}var Ut=Array.prototype.slice;function Wt(t){return t.source}function Rt(t){return t.target}function Kt(t){var e=Wt,s=Rt,a=zt,l=Ft,k=null;function p(){var _,i=Ut.call(arguments),o=e.apply(this,i),f=s.apply(this,i);if(k||(k=_=dt()),t(k,+a.apply(this,(i[0]=o,i)),+l.apply(this,i),+a.apply(this,(i[0]=f,i)),+l.apply(this,i)),_)return k=null,_+""||null}return p.source=function(_){return arguments.length?(e=_,p):e},p.target=function(_){return arguments.length?(s=_,p):s},p.x=function(_){return arguments.length?(a=typeof _=="function"?_:ut(+_),p):a},p.y=function(_){return arguments.length?(l=typeof _=="function"?_:ut(+_),p):l},p.context=function(_){return arguments.length?(k=_??null,p):k},p}function Xt(t,e,s,a,l){t.moveTo(e,s),t.bezierCurveTo(e=(e+a)/2,s,e,l,a,l)}function qt(){return Kt(Xt)}function Bt(t){return[t.source.x1,t.y0]}function Gt(t){return[t.target.x0,t.y1]}function Qt(){return qt().source(Bt).target(Gt)}var it=function(){var t=function(_,i,o,f){for(o=o||{},f=_.length;f--;o[_[f]]=i);return o},e=[1,9],s=[1,10],a=[1,5,10,12],l={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(_,i,o,f,m,y,v){var x=y.length-1;switch(m){case 7:const D=f.findOrCreateNode(y[x-4].trim().replaceAll('""','"')),S=f.findOrCreateNode(y[x-2].trim().replaceAll('""','"')),M=parseFloat(y[x].trim());f.addLink(D,S,M);break;case 8:case 9:case 11:this.$=y[x];break;case 10:this.$=y[x-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:s},{15:18,16:7,17:8,18:e,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:e,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(_,i){if(i.recoverable)this.trace(_);else{var o=new Error(_);throw o.hash=i,o}},parse:function(_){var i=this,o=[0],f=[],m=[null],y=[],v=this.table,x="",D=0,S=0,M=2,C=1,I=y.slice.call(arguments,1),b=Object.create(this.lexer),N={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(N.yy[j]=this.yy[j]);b.setInput(_,N.yy),N.yy.lexer=b,N.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var P=b.yylloc;y.push(P);var d=b.options&&b.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function w(){var g;return g=f.pop()||b.lex()||C,typeof g!="number"&&(g instanceof Array&&(f=g,g=f.pop()),g=i.symbols_[g]||g),g}for(var L,O,A,U,T={},n,c,h,u;;){if(O=o[o.length-1],this.defaultActions[O]?A=this.defaultActions[O]:((L===null||typeof L>"u")&&(L=w()),A=v[O]&&v[O][L]),typeof A>"u"||!A.length||!A[0]){var r="";u=[];for(n in v[O])this.terminals_[n]&&n>M&&u.push("'"+this.terminals_[n]+"'");b.showPosition?r="Parse error on line "+(D+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+u.join(", ")+", got '"+(this.terminals_[L]||L)+"'":r="Parse error on line "+(D+1)+": Unexpected "+(L==C?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(r,{text:b.match,token:this.terminals_[L]||L,line:b.yylineno,loc:P,expected:u})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+L);switch(A[0]){case 1:o.push(L),m.push(b.yytext),y.push(b.yylloc),o.push(A[1]),L=null,S=b.yyleng,x=b.yytext,D=b.yylineno,P=b.yylloc;break;case 2:if(c=this.productions_[A[1]][1],T.$=m[m.length-c],T._$={first_line:y[y.length-(c||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(c||1)].first_column,last_column:y[y.length-1].last_column},d&&(T._$.range=[y[y.length-(c||1)].range[0],y[y.length-1].range[1]]),U=this.performAction.apply(T,[x,S,D,N.yy,A[1],m,y].concat(I)),typeof U<"u")return U;c&&(o=o.slice(0,-1*c*2),m=m.slice(0,-1*c),y=y.slice(0,-1*c)),o.push(this.productions_[A[1]][0]),m.push(T.$),y.push(T._$),h=v[o[o.length-2]][o[o.length-1]],o.push(h);break;case 3:return!0}}return!0}},k=function(){var _={EOF:1,parseError:function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,f=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=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),f.length-1&&(this.yylineno-=f.length-1);var y=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:f?(f.length===m.length?this.yylloc.first_column:0)+m[m.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-o]),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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{D as Ee,R as we,I as Zt,S as at,L as ve,M as _e,N as ke,F as Pt,O as K,T as Gt,J as Pe,P as Le,p as v,G as It,j as Ie,u as C,am as Et,an as nt,ad as te,ao as Me,g as ee,ak as Ct}from"./index-CDwx2U7N.js";import{x as Ne,g as qt,l as Ae,p as Mt,y as Oe,h as Se}from"./svgDrawCommon-b86b1483-sbEe2n2v-CJw2W-Er.js";var Yt=function(){var t=function(st,T,_,f){for(_=_||{},f=st.length;f--;_[st[f]]=T);return _},e=[1,2],c=[1,3],a=[1,4],i=[2,4],s=[1,9],l=[1,11],n=[1,13],h=[1,14],r=[1,16],u=[1,17],b=[1,18],g=[1,24],y=[1,25],w=[1,26],k=[1,27],L=[1,28],R=[1,29],N=[1,30],$=[1,31],O=[1,32],F=[1,33],q=[1,34],X=[1,35],G=[1,36],W=[1,37],z=[1,38],B=[1,39],V=[1,41],J=[1,42],H=[1,43],Q=[1,44],tt=[1,45],M=[1,46],m=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],Z=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],I=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Ut=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],pt=[68,69,70],ct=[1,120],At={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(st,T,_,f,A,d,U){var p=d.length-1;switch(A){case 3:return f.apply(d[p]),d[p];case 4:case 9:this.$=[];break;case 5:case 10:d[p-1].push(d[p]),this.$=d[p-1];break;case 6:case 7:case 11:case 12:this.$=d[p];break;case 8:case 13:this.$=[];break;case 15:d[p].type="createParticipant",this.$=d[p];break;case 16:d[p-1].unshift({type:"boxStart",boxData:f.parseBoxData(d[p-2])}),d[p-1].push({type:"boxEnd",boxText:d[p-2]}),this.$=d[p-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(d[p-2]),sequenceIndexStep:Number(d[p-1]),sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(d[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:f.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:d[p-1]};break;case 23:this.$={type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:d[p-1]};break;case 29:f.setDiagramTitle(d[p].substring(6)),this.$=d[p].substring(6);break;case 30:f.setDiagramTitle(d[p].substring(7)),this.$=d[p].substring(7);break;case 31:this.$=d[p].trim(),f.setAccTitle(this.$);break;case 32:case 33:this.$=d[p].trim(),f.setAccDescription(this.$);break;case 34:d[p-1].unshift({type:"loopStart",loopText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.LOOP_START}),d[p-1].push({type:"loopEnd",loopText:d[p-2],signalType:f.LINETYPE.LOOP_END}),this.$=d[p-1];break;case 35:d[p-1].unshift({type:"rectStart",color:f.parseMessage(d[p-2]),signalType:f.LINETYPE.RECT_START}),d[p-1].push({type:"rectEnd",color:f.parseMessage(d[p-2]),signalType:f.LINETYPE.RECT_END}),this.$=d[p-1];break;case 36:d[p-1].unshift({type:"optStart",optText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.OPT_START}),d[p-1].push({type:"optEnd",optText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.OPT_END}),this.$=d[p-1];break;case 37:d[p-1].unshift({type:"altStart",altText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.ALT_START}),d[p-1].push({type:"altEnd",signalType:f.LINETYPE.ALT_END}),this.$=d[p-1];break;case 38:d[p-1].unshift({type:"parStart",parText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.PAR_START}),d[p-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=d[p-1];break;case 39:d[p-1].unshift({type:"parStart",parText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.PAR_OVER_START}),d[p-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=d[p-1];break;case 40:d[p-1].unshift({type:"criticalStart",criticalText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.CRITICAL_START}),d[p-1].push({type:"criticalEnd",signalType:f.LINETYPE.CRITICAL_END}),this.$=d[p-1];break;case 41:d[p-1].unshift({type:"breakStart",breakText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.BREAK_START}),d[p-1].push({type:"breakEnd",optText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.BREAK_END}),this.$=d[p-1];break;case 43:this.$=d[p-3].concat([{type:"option",optionText:f.parseMessage(d[p-1]),signalType:f.LINETYPE.CRITICAL_OPTION},d[p]]);break;case 45:this.$=d[p-3].concat([{type:"and",parText:f.parseMessage(d[p-1]),signalType:f.LINETYPE.PAR_AND},d[p]]);break;case 47:this.$=d[p-3].concat([{type:"else",altText:f.parseMessage(d[p-1]),signalType:f.LINETYPE.ALT_ELSE},d[p]]);break;case 48:d[p-3].draw="participant",d[p-3].type="addParticipant",d[p-3].description=f.parseMessage(d[p-1]),this.$=d[p-3];break;case 49:d[p-1].draw="participant",d[p-1].type="addParticipant",this.$=d[p-1];break;case 50:d[p-3].draw="actor",d[p-3].type="addParticipant",d[p-3].description=f.parseMessage(d[p-1]),this.$=d[p-3];break;case 51:d[p-1].draw="actor",d[p-1].type="addParticipant",this.$=d[p-1];break;case 52:d[p-1].type="destroyParticipant",this.$=d[p-1];break;case 53:this.$=[d[p-1],{type:"addNote",placement:d[p-2],actor:d[p-1].actor,text:d[p]}];break;case 54:d[p-2]=[].concat(d[p-1],d[p-1]).slice(0,2),d[p-2][0]=d[p-2][0].actor,d[p-2][1]=d[p-2][1].actor,this.$=[d[p-1],{type:"addNote",placement:f.PLACEMENT.OVER,actor:d[p-2].slice(0,2),text:d[p]}];break;case 55:this.$=[d[p-1],{type:"addLinks",actor:d[p-1].actor,text:d[p]}];break;case 56:this.$=[d[p-1],{type:"addALink",actor:d[p-1].actor,text:d[p]}];break;case 57:this.$=[d[p-1],{type:"addProperties",actor:d[p-1].actor,text:d[p]}];break;case 58:this.$=[d[p-1],{type:"addDetails",actor:d[p-1].actor,text:d[p]}];break;case 61:this.$=[d[p-2],d[p]];break;case 62:this.$=d[p];break;case 63:this.$=f.PLACEMENT.LEFTOF;break;case 64:this.$=f.PLACEMENT.RIGHTOF;break;case 65:this.$=[d[p-4],d[p-1],{type:"addMessage",from:d[p-4].actor,to:d[p-1].actor,signalType:d[p-3],msg:d[p],activate:!0},{type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:d[p-1]}];break;case 66:this.$=[d[p-4],d[p-1],{type:"addMessage",from:d[p-4].actor,to:d[p-1].actor,signalType:d[p-3],msg:d[p]},{type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:d[p-4]}];break;case 67:this.$=[d[p-3],d[p-1],{type:"addMessage",from:d[p-3].actor,to:d[p-1].actor,signalType:d[p-2],msg:d[p]}];break;case 68:this.$={type:"addParticipant",actor:d[p]};break;case 69:this.$=f.LINETYPE.SOLID_OPEN;break;case 70:this.$=f.LINETYPE.DOTTED_OPEN;break;case 71:this.$=f.LINETYPE.SOLID;break;case 72:this.$=f.LINETYPE.DOTTED;break;case 73:this.$=f.LINETYPE.SOLID_CROSS;break;case 74:this.$=f.LINETYPE.DOTTED_CROSS;break;case 75:this.$=f.LINETYPE.SOLID_POINT;break;case 76:this.$=f.LINETYPE.DOTTED_POINT;break;case 77:this.$=f.parseMessage(d[p].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:a},{1:[3]},{3:5,4:e,5:c,6:a},{3:6,4:e,5:c,6:a},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:l,8:8,9:10,12:12,13:n,14:h,17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},t(m,[2,5]),{9:47,12:12,13:n,14:h,17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},t(m,[2,7]),t(m,[2,8]),t(m,[2,14]),{12:48,50:W,52:z,53:B},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:M},{22:55,70:M},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(m,[2,29]),t(m,[2,30]),{32:[1,61]},{34:[1,62]},t(m,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:M},{22:72,70:M},{22:73,70:M},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:M},{22:88,70:M},{22:89,70:M},{22:90,70:M},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(m,[2,6]),t(m,[2,15]),t(P,[2,9],{10:91}),t(m,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(m,[2,21]),{5:[1,95]},{5:[1,96]},t(m,[2,24]),t(m,[2,25]),t(m,[2,26]),t(m,[2,27]),t(m,[2,28]),t(m,[2,31]),t(m,[2,32]),t(Z,i,{7:97}),t(Z,i,{7:98}),t(Z,i,{7:99}),t(rt,i,{40:100,7:101}),t(I,i,{42:102,7:103}),t(I,i,{7:103,42:104}),t(Ut,i,{45:105,7:106}),t(Z,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:M},t(pt,[2,69]),t(pt,[2,70]),t(pt,[2,71]),t(pt,[2,72]),t(pt,[2,73]),t(pt,[2,74]),t(pt,[2,75]),t(pt,[2,76]),{22:116,70:M},{22:118,58:117,70:M},{70:[2,63]},{70:[2,64]},{56:119,79:ct},{56:121,79:ct},{56:122,79:ct},{56:123,79:ct},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:W,52:z,53:B},{5:[1,129]},t(m,[2,19]),t(m,[2,20]),t(m,[2,22]),t(m,[2,23]),{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,130],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,131],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,132],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{16:[1,133]},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[2,46],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,49:[1,134],50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{16:[1,135]},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[2,44],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,48:[1,136],50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{16:[1,137]},{16:[1,138]},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[2,42],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,47:[1,139],50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,140],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{15:[1,141]},t(m,[2,49]),{15:[1,142]},t(m,[2,51]),t(m,[2,52]),{22:143,70:M},{22:144,70:M},{56:145,79:ct},{56:146,79:ct},{56:147,79:ct},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(m,[2,16]),t(P,[2,10]),{12:149,50:W,52:z,53:B},t(P,[2,12]),t(P,[2,13]),t(m,[2,18]),t(m,[2,34]),t(m,[2,35]),t(m,[2,36]),t(m,[2,37]),{15:[1,150]},t(m,[2,38]),{15:[1,151]},t(m,[2,39]),t(m,[2,40]),{15:[1,152]},t(m,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ct},{56:156,79:ct},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:M},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(I,i,{7:103,42:159}),t(Ut,i,{7:106,45:160}),t(m,[2,48]),t(m,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(st,T){if(T.recoverable)this.trace(st);else{var _=new Error(st);throw _.hash=T,_}},parse:function(st){var T=this,_=[0],f=[],A=[null],d=[],U=this.table,p="",vt=0,jt=0,me=2,Kt=1,fe=d.slice.call(arguments,1),Y=Object.create(this.lexer),ht={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(ht.yy[St]=this.yy[St]);Y.setInput(st,ht.yy),ht.yy.lexer=Y,ht.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;d.push(Dt);var be=Y.options&&Y.options.ranges;typeof ht.yy.parseError=="function"?this.parseError=ht.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(){var dt;return dt=f.pop()||Y.lex()||Kt,typeof dt!="number"&&(dt instanceof Array&&(f=dt,dt=f.pop()),dt=T.symbols_[dt]||dt),dt}for(var j,gt,et,Rt,mt={},_t,lt,Xt,kt;;){if(gt=_[_.length-1],this.defaultActions[gt]?et=this.defaultActions[gt]:((j===null||typeof j>"u")&&(j=Te()),et=U[gt]&&U[gt][j]),typeof et>"u"||!et.length||!et[0]){var $t="";kt=[];for(_t in U[gt])this.terminals_[_t]&&_t>me&&kt.push("'"+this.terminals_[_t]+"'");Y.showPosition?$t="Parse error on line "+(vt+1)+`:
1
+ import{D as Ee,R as we,I as Zt,S as at,L as ve,M as _e,N as ke,F as Pt,O as K,T as Gt,J as Pe,P as Le,p as v,G as It,j as Ie,u as C,am as Et,an as nt,ad as te,ao as Me,g as ee,ak as Ct}from"./index-CVRNWcf-.js";import{x as Ne,g as qt,l as Ae,p as Mt,y as Oe,h as Se}from"./svgDrawCommon-b86b1483-sbEe2n2v-CFwc1_jc.js";var Yt=function(){var t=function(st,T,_,f){for(_=_||{},f=st.length;f--;_[st[f]]=T);return _},e=[1,2],c=[1,3],a=[1,4],i=[2,4],s=[1,9],l=[1,11],n=[1,13],h=[1,14],r=[1,16],u=[1,17],b=[1,18],g=[1,24],y=[1,25],w=[1,26],k=[1,27],L=[1,28],R=[1,29],N=[1,30],$=[1,31],O=[1,32],F=[1,33],q=[1,34],X=[1,35],G=[1,36],W=[1,37],z=[1,38],B=[1,39],V=[1,41],J=[1,42],H=[1,43],Q=[1,44],tt=[1,45],M=[1,46],m=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],Z=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],I=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Ut=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],pt=[68,69,70],ct=[1,120],At={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(st,T,_,f,A,d,U){var p=d.length-1;switch(A){case 3:return f.apply(d[p]),d[p];case 4:case 9:this.$=[];break;case 5:case 10:d[p-1].push(d[p]),this.$=d[p-1];break;case 6:case 7:case 11:case 12:this.$=d[p];break;case 8:case 13:this.$=[];break;case 15:d[p].type="createParticipant",this.$=d[p];break;case 16:d[p-1].unshift({type:"boxStart",boxData:f.parseBoxData(d[p-2])}),d[p-1].push({type:"boxEnd",boxText:d[p-2]}),this.$=d[p-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(d[p-2]),sequenceIndexStep:Number(d[p-1]),sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(d[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:f.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:d[p-1]};break;case 23:this.$={type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:d[p-1]};break;case 29:f.setDiagramTitle(d[p].substring(6)),this.$=d[p].substring(6);break;case 30:f.setDiagramTitle(d[p].substring(7)),this.$=d[p].substring(7);break;case 31:this.$=d[p].trim(),f.setAccTitle(this.$);break;case 32:case 33:this.$=d[p].trim(),f.setAccDescription(this.$);break;case 34:d[p-1].unshift({type:"loopStart",loopText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.LOOP_START}),d[p-1].push({type:"loopEnd",loopText:d[p-2],signalType:f.LINETYPE.LOOP_END}),this.$=d[p-1];break;case 35:d[p-1].unshift({type:"rectStart",color:f.parseMessage(d[p-2]),signalType:f.LINETYPE.RECT_START}),d[p-1].push({type:"rectEnd",color:f.parseMessage(d[p-2]),signalType:f.LINETYPE.RECT_END}),this.$=d[p-1];break;case 36:d[p-1].unshift({type:"optStart",optText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.OPT_START}),d[p-1].push({type:"optEnd",optText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.OPT_END}),this.$=d[p-1];break;case 37:d[p-1].unshift({type:"altStart",altText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.ALT_START}),d[p-1].push({type:"altEnd",signalType:f.LINETYPE.ALT_END}),this.$=d[p-1];break;case 38:d[p-1].unshift({type:"parStart",parText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.PAR_START}),d[p-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=d[p-1];break;case 39:d[p-1].unshift({type:"parStart",parText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.PAR_OVER_START}),d[p-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=d[p-1];break;case 40:d[p-1].unshift({type:"criticalStart",criticalText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.CRITICAL_START}),d[p-1].push({type:"criticalEnd",signalType:f.LINETYPE.CRITICAL_END}),this.$=d[p-1];break;case 41:d[p-1].unshift({type:"breakStart",breakText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.BREAK_START}),d[p-1].push({type:"breakEnd",optText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.BREAK_END}),this.$=d[p-1];break;case 43:this.$=d[p-3].concat([{type:"option",optionText:f.parseMessage(d[p-1]),signalType:f.LINETYPE.CRITICAL_OPTION},d[p]]);break;case 45:this.$=d[p-3].concat([{type:"and",parText:f.parseMessage(d[p-1]),signalType:f.LINETYPE.PAR_AND},d[p]]);break;case 47:this.$=d[p-3].concat([{type:"else",altText:f.parseMessage(d[p-1]),signalType:f.LINETYPE.ALT_ELSE},d[p]]);break;case 48:d[p-3].draw="participant",d[p-3].type="addParticipant",d[p-3].description=f.parseMessage(d[p-1]),this.$=d[p-3];break;case 49:d[p-1].draw="participant",d[p-1].type="addParticipant",this.$=d[p-1];break;case 50:d[p-3].draw="actor",d[p-3].type="addParticipant",d[p-3].description=f.parseMessage(d[p-1]),this.$=d[p-3];break;case 51:d[p-1].draw="actor",d[p-1].type="addParticipant",this.$=d[p-1];break;case 52:d[p-1].type="destroyParticipant",this.$=d[p-1];break;case 53:this.$=[d[p-1],{type:"addNote",placement:d[p-2],actor:d[p-1].actor,text:d[p]}];break;case 54:d[p-2]=[].concat(d[p-1],d[p-1]).slice(0,2),d[p-2][0]=d[p-2][0].actor,d[p-2][1]=d[p-2][1].actor,this.$=[d[p-1],{type:"addNote",placement:f.PLACEMENT.OVER,actor:d[p-2].slice(0,2),text:d[p]}];break;case 55:this.$=[d[p-1],{type:"addLinks",actor:d[p-1].actor,text:d[p]}];break;case 56:this.$=[d[p-1],{type:"addALink",actor:d[p-1].actor,text:d[p]}];break;case 57:this.$=[d[p-1],{type:"addProperties",actor:d[p-1].actor,text:d[p]}];break;case 58:this.$=[d[p-1],{type:"addDetails",actor:d[p-1].actor,text:d[p]}];break;case 61:this.$=[d[p-2],d[p]];break;case 62:this.$=d[p];break;case 63:this.$=f.PLACEMENT.LEFTOF;break;case 64:this.$=f.PLACEMENT.RIGHTOF;break;case 65:this.$=[d[p-4],d[p-1],{type:"addMessage",from:d[p-4].actor,to:d[p-1].actor,signalType:d[p-3],msg:d[p],activate:!0},{type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:d[p-1]}];break;case 66:this.$=[d[p-4],d[p-1],{type:"addMessage",from:d[p-4].actor,to:d[p-1].actor,signalType:d[p-3],msg:d[p]},{type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:d[p-4]}];break;case 67:this.$=[d[p-3],d[p-1],{type:"addMessage",from:d[p-3].actor,to:d[p-1].actor,signalType:d[p-2],msg:d[p]}];break;case 68:this.$={type:"addParticipant",actor:d[p]};break;case 69:this.$=f.LINETYPE.SOLID_OPEN;break;case 70:this.$=f.LINETYPE.DOTTED_OPEN;break;case 71:this.$=f.LINETYPE.SOLID;break;case 72:this.$=f.LINETYPE.DOTTED;break;case 73:this.$=f.LINETYPE.SOLID_CROSS;break;case 74:this.$=f.LINETYPE.DOTTED_CROSS;break;case 75:this.$=f.LINETYPE.SOLID_POINT;break;case 76:this.$=f.LINETYPE.DOTTED_POINT;break;case 77:this.$=f.parseMessage(d[p].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:a},{1:[3]},{3:5,4:e,5:c,6:a},{3:6,4:e,5:c,6:a},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:l,8:8,9:10,12:12,13:n,14:h,17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},t(m,[2,5]),{9:47,12:12,13:n,14:h,17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},t(m,[2,7]),t(m,[2,8]),t(m,[2,14]),{12:48,50:W,52:z,53:B},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:M},{22:55,70:M},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(m,[2,29]),t(m,[2,30]),{32:[1,61]},{34:[1,62]},t(m,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:M},{22:72,70:M},{22:73,70:M},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:M},{22:88,70:M},{22:89,70:M},{22:90,70:M},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(m,[2,6]),t(m,[2,15]),t(P,[2,9],{10:91}),t(m,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(m,[2,21]),{5:[1,95]},{5:[1,96]},t(m,[2,24]),t(m,[2,25]),t(m,[2,26]),t(m,[2,27]),t(m,[2,28]),t(m,[2,31]),t(m,[2,32]),t(Z,i,{7:97}),t(Z,i,{7:98}),t(Z,i,{7:99}),t(rt,i,{40:100,7:101}),t(I,i,{42:102,7:103}),t(I,i,{7:103,42:104}),t(Ut,i,{45:105,7:106}),t(Z,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:M},t(pt,[2,69]),t(pt,[2,70]),t(pt,[2,71]),t(pt,[2,72]),t(pt,[2,73]),t(pt,[2,74]),t(pt,[2,75]),t(pt,[2,76]),{22:116,70:M},{22:118,58:117,70:M},{70:[2,63]},{70:[2,64]},{56:119,79:ct},{56:121,79:ct},{56:122,79:ct},{56:123,79:ct},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:W,52:z,53:B},{5:[1,129]},t(m,[2,19]),t(m,[2,20]),t(m,[2,22]),t(m,[2,23]),{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,130],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,131],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,132],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{16:[1,133]},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[2,46],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,49:[1,134],50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{16:[1,135]},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[2,44],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,48:[1,136],50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{16:[1,137]},{16:[1,138]},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[2,42],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,47:[1,139],50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,140],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{15:[1,141]},t(m,[2,49]),{15:[1,142]},t(m,[2,51]),t(m,[2,52]),{22:143,70:M},{22:144,70:M},{56:145,79:ct},{56:146,79:ct},{56:147,79:ct},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(m,[2,16]),t(P,[2,10]),{12:149,50:W,52:z,53:B},t(P,[2,12]),t(P,[2,13]),t(m,[2,18]),t(m,[2,34]),t(m,[2,35]),t(m,[2,36]),t(m,[2,37]),{15:[1,150]},t(m,[2,38]),{15:[1,151]},t(m,[2,39]),t(m,[2,40]),{15:[1,152]},t(m,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ct},{56:156,79:ct},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:M},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(I,i,{7:103,42:159}),t(Ut,i,{7:106,45:160}),t(m,[2,48]),t(m,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(st,T){if(T.recoverable)this.trace(st);else{var _=new Error(st);throw _.hash=T,_}},parse:function(st){var T=this,_=[0],f=[],A=[null],d=[],U=this.table,p="",vt=0,jt=0,me=2,Kt=1,fe=d.slice.call(arguments,1),Y=Object.create(this.lexer),ht={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(ht.yy[St]=this.yy[St]);Y.setInput(st,ht.yy),ht.yy.lexer=Y,ht.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;d.push(Dt);var be=Y.options&&Y.options.ranges;typeof ht.yy.parseError=="function"?this.parseError=ht.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(){var dt;return dt=f.pop()||Y.lex()||Kt,typeof dt!="number"&&(dt instanceof Array&&(f=dt,dt=f.pop()),dt=T.symbols_[dt]||dt),dt}for(var j,gt,et,Rt,mt={},_t,lt,Xt,kt;;){if(gt=_[_.length-1],this.defaultActions[gt]?et=this.defaultActions[gt]:((j===null||typeof j>"u")&&(j=Te()),et=U[gt]&&U[gt][j]),typeof et>"u"||!et.length||!et[0]){var $t="";kt=[];for(_t in U[gt])this.terminals_[_t]&&_t>me&&kt.push("'"+this.terminals_[_t]+"'");Y.showPosition?$t="Parse error on line "+(vt+1)+`:
2
2
  `+Y.showPosition()+`
3
3
  Expecting `+kt.join(", ")+", got '"+(this.terminals_[j]||j)+"'":$t="Parse error on line "+(vt+1)+": Unexpected "+(j==Kt?"end of input":"'"+(this.terminals_[j]||j)+"'"),this.parseError($t,{text:Y.match,token:this.terminals_[j]||j,line:Y.yylineno,loc:Dt,expected:kt})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+gt+", token: "+j);switch(et[0]){case 1:_.push(j),A.push(Y.yytext),d.push(Y.yylloc),_.push(et[1]),j=null,jt=Y.yyleng,p=Y.yytext,vt=Y.yylineno,Dt=Y.yylloc;break;case 2:if(lt=this.productions_[et[1]][1],mt.$=A[A.length-lt],mt._$={first_line:d[d.length-(lt||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(lt||1)].first_column,last_column:d[d.length-1].last_column},be&&(mt._$.range=[d[d.length-(lt||1)].range[0],d[d.length-1].range[1]]),Rt=this.performAction.apply(mt,[p,jt,vt,ht.yy,et[1],A,d].concat(fe)),typeof Rt<"u")return Rt;lt&&(_=_.slice(0,-1*lt*2),A=A.slice(0,-1*lt),d=d.slice(0,-1*lt)),_.push(this.productions_[et[1]][0]),A.push(mt.$),d.push(mt._$),Xt=U[_[_.length-2]][_[_.length-1]],_.push(Xt);break;case 3:return!0}}return!0}},ye=function(){var st={EOF:1,parseError:function(T,_){if(this.yy.parser)this.yy.parser.parseError(T,_);else throw new Error(T)},setInput:function(T,_){return this.yy=_||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 _=T.match(/(?:\r\n?|\n).*/g);return _?(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 _=T.length,f=T.split(/(?:\r\n?|\n)/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_),this.offset-=_;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),f.length-1&&(this.yylineno-=f.length-1);var d=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:f?(f.length===A.length?this.yylloc.first_column:0)+A[A.length-f.length].length-f[0].length:this.yylloc.first_column-_},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-_]),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).
4
4
  `+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(),_=new Array(T.length+1).join("-");return T+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{A as O,v as N,D as T}from"./styles-ca3715f6-DU7x0doE-B7zhH0Zm.js";import{S as t,F as M,O as k,J as G,p as z,e as L,l as P,u as U}from"./index-CDwx2U7N.js";import{K as I}from"./graph-BZahQKIN-CTgzd5us.js";import{A as R}from"./layout-j-hMNqAM-C88IAVJC.js";const F=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),C=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,r)=>{const g=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(r.id),s=g.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",s.width+2*t().state.padding).attr("height",s.height+2*t().state.padding).attr("rx",t().state.radius),g},W=(e,r)=>{const g=function(o,u,B){const w=o.append("tspan").attr("x",2*t().state.padding).text(u);B||w.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(r.descriptions[0]).node().getBBox(),d=s.height,h=e.append("text").attr("x",t().state.padding).attr("y",d+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let l=!0,a=!0;r.descriptions.forEach(function(o){l||(g(h,o,a),a=!1),l=!1});const n=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+d+t().state.dividerMargin/2).attr("y2",t().state.padding+d+t().state.dividerMargin/2).attr("class","descr-divider"),x=h.node().getBBox(),c=Math.max(x.width,s.width);return n.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",x.height+d+2*t().state.padding).attr("rx",t().state.radius),e},Y=(e,r,g)=>{const s=t().state.padding,d=2*t().state.padding,h=e.node().getBBox(),l=h.width,a=h.x,n=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(r.id),x=n.node().getBBox().width+d;let c=Math.max(x,l);c===l&&(c=c+d);let o;const u=e.node().getBBox();r.doc,o=a-s,x>l&&(o=(l-c)/2+s),Math.abs(a-u.x)<s&&x>l&&(o=a-(x-l)/2);const B=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",B).attr("class",g?"alt-composit":"composit").attr("width",c).attr("height",u.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),n.attr("x",o+s),x<=l&&n.attr("x",a+(c-d)/2-x/2+s),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",u.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},j=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),K=(e,r)=>{let g=t().state.forkWidth,s=t().state.forkHeight;if(r.parentId){let d=g;g=s,s=d}return e.append("rect").style("stroke","black").style("fill","black").attr("width",g).attr("height",s).attr("x",t().state.padding).attr("y",t().state.padding)},X=(e,r,g,s)=>{let d=0;const h=s.append("text");h.style("text-anchor","start"),h.attr("class","noteText");let l=e.replace(/\r\n/g,"<br/>");l=l.replace(/\n/g,"<br/>");const a=l.split(z.lineBreakRegex);let n=1.25*t().state.noteMargin;for(const x of a){const c=x.trim();if(c.length>0){const o=h.append("tspan");if(o.text(c),n===0){const u=o.node().getBBox();n+=u.height}d+=n,o.attr("x",r+t().state.noteMargin),o.attr("y",g+d+1.25*t().state.noteMargin)}}return{textWidth:h.node().getBBox().width,textHeight:d}},$=(e,r)=>{r.attr("class","state-note");const g=r.append("rect").attr("x",0).attr("y",t().state.padding),s=r.append("g"),{textWidth:d,textHeight:h}=X(e,0,0,s);return g.attr("height",h+2*t().state.noteMargin),g.attr("width",d+t().state.noteMargin*2),g},H=function(e,r){const g=r.id,s={id:g,label:r.id,width:0,height:0},d=e.append("g").attr("id",g).attr("class","stateGroup");r.type==="start"&&F(d),r.type==="end"&&j(d),(r.type==="fork"||r.type==="join")&&K(d,r),r.type==="note"&&$(r.note.text,d),r.type==="divider"&&C(d),r.type==="default"&&r.descriptions.length===0&&J(d,r),r.type==="default"&&r.descriptions.length>0&&W(d,r);const h=d.node().getBBox();return s.width=h.width+2*t().state.padding,s.height=h.height+2*t().state.padding,s};let A=0;const q=function(e,r,g){const s=function(n){switch(n){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};r.points=r.points.filter(n=>!Number.isNaN(n.y));const d=r.points,h=L().x(function(n){return n.x}).y(function(n){return n.y}).curve(P),l=e.append("path").attr("d",h(d)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),l.attr("marker-end","url("+a+"#"+s(N.relationType.DEPENDENCY)+"End)"),g.title!==void 0){const n=e.append("g").attr("class","stateLabel"),{x,y:c}=U.calcLabelPosition(r.points),o=z.getRows(g.title);let u=0;const B=[];let w=0,S=0;for(let f=0;f<=o.length;f++){const p=n.append("text").attr("text-anchor","middle").text(o[f]).attr("x",x).attr("y",c+u),y=p.node().getBBox();w=Math.max(w,y.width),S=Math.min(S,y.x),k.info(y.x,x,c+u),u===0&&(u=p.node().getBBox().height,k.info("Title height",u,c)),B.push(p)}let E=u*o.length;if(o.length>1){const f=(o.length-1)*u*.5;B.forEach((p,y)=>p.attr("y",c+y*u-f)),E=u*o.length}const i=n.node().getBBox();n.insert("rect",":first-child").attr("class","box").attr("x",x-w/2-t().state.padding/2).attr("y",c-E/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",E+t().state.padding),k.info(i)}A++};let m;const v={},Z=function(){},Q=function(e){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 19,7 L9,13 L14,7 L9,1 Z")},V=function(e,r,g,s){m=t().state;const d=t().securityLevel;let h;d==="sandbox"&&(h=M("#i"+r));const l=d==="sandbox"?M(h.nodes()[0].contentDocument.body):M("body"),a=d==="sandbox"?h.nodes()[0].contentDocument:document;k.debug("Rendering diagram "+e);const n=l.select(`[id='${r}']`);Q(n);const x=s.db.getRootDoc();D(x,n,void 0,!1,l,a,s);const c=m.padding,o=n.node().getBBox(),u=o.width+c*2,B=o.height+c*2,w=u*1.75;G(n,B,w,m.useMaxWidth),n.attr("viewBox",`${o.x-m.padding} ${o.y-m.padding} `+u+" "+B)},_=e=>e?e.length*m.fontSizeFactor:1,D=(e,r,g,s,d,h,l)=>{const a=new I({compound:!0,multigraph:!0});let n,x=!0;for(n=0;n<e.length;n++)if(e[n].stmt==="relation"){x=!1;break}g?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:x?1:m.edgeLengthFactor,nodeSep:x?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:x?1:m.edgeLengthFactor,nodeSep:x?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}}),l.db.extract(e);const c=l.db.getStates(),o=l.db.getRelations(),u=Object.keys(c);for(const i of u){const f=c[i];g&&(f.parentId=g);let p;if(f.doc){let y=r.append("g").attr("id",f.id).attr("class","stateGroup");p=D(f.doc,y,f.id,!s,d,h,l);{y=Y(y,f,s);let b=y.node().getBBox();p.width=b.width,p.height=b.height+m.padding/2,v[f.id]={y:m.compositTitleSize}}}else p=H(r,f);if(f.note){const y={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},b=H(r,y);f.note.position==="left of"?(a.setNode(p.id+"-note",b),a.setNode(p.id,p)):(a.setNode(p.id,p),a.setNode(p.id+"-note",b)),a.setParent(p.id,p.id+"-group"),a.setParent(p.id+"-note",p.id+"-group")}else a.setNode(p.id,p)}k.debug("Count=",a.nodeCount(),a);let B=0;o.forEach(function(i){B++,k.debug("Setting edge",i),a.setEdge(i.id1,i.id2,{relation:i,width:_(i.title),height:m.labelHeight*z.getRows(i.title).length,labelpos:"c"},"id"+B)}),R(a),k.debug("Graph after layout",a.nodes());const w=r.node();a.nodes().forEach(function(i){i!==void 0&&a.node(i)!==void 0?(k.warn("Node "+i+": "+JSON.stringify(a.node(i))),d.select("#"+w.id+" #"+i).attr("transform","translate("+(a.node(i).x-a.node(i).width/2)+","+(a.node(i).y+(v[i]?v[i].y:0)-a.node(i).height/2)+" )"),d.select("#"+w.id+" #"+i).attr("data-x-shift",a.node(i).x-a.node(i).width/2),h.querySelectorAll("#"+w.id+" #"+i+" .divider").forEach(f=>{const p=f.parentElement;let y=0,b=0;p&&(p.parentElement&&(y=p.parentElement.getBBox().width),b=parseInt(p.getAttribute("data-x-shift"),10),Number.isNaN(b)&&(b=0)),f.setAttribute("x1",0-b+8),f.setAttribute("x2",y-b-8)})):k.debug("No Node "+i+": "+JSON.stringify(a.node(i)))});let S=w.getBBox();a.edges().forEach(function(i){i!==void 0&&a.edge(i)!==void 0&&(k.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(a.edge(i))),q(r,a.edge(i),a.edge(i).relation))}),S=w.getBBox();const E={id:g||"root",label:g||"root",width:0,height:0};return E.width=S.width+2*m.padding,E.height=S.height+2*m.padding,k.debug("Doc rendered",E,a),E},tt={setConf:Z,draw:V},dt={parser:T,db:N,renderer:tt,styles:O,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{dt as diagram};
1
+ import{A as O,v as N,D as T}from"./styles-ca3715f6-DU7x0doE-BqM8h3vG.js";import{S as t,F as M,O as k,J as G,p as z,e as L,l as P,u as U}from"./index-CVRNWcf-.js";import{K as I}from"./graph-BZahQKIN-CenQ9kLM.js";import{A as R}from"./layout-j-hMNqAM-d_O0ZYu6.js";const F=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),C=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,r)=>{const g=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(r.id),s=g.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",s.width+2*t().state.padding).attr("height",s.height+2*t().state.padding).attr("rx",t().state.radius),g},W=(e,r)=>{const g=function(o,u,B){const w=o.append("tspan").attr("x",2*t().state.padding).text(u);B||w.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(r.descriptions[0]).node().getBBox(),d=s.height,h=e.append("text").attr("x",t().state.padding).attr("y",d+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let l=!0,a=!0;r.descriptions.forEach(function(o){l||(g(h,o,a),a=!1),l=!1});const n=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+d+t().state.dividerMargin/2).attr("y2",t().state.padding+d+t().state.dividerMargin/2).attr("class","descr-divider"),x=h.node().getBBox(),c=Math.max(x.width,s.width);return n.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",x.height+d+2*t().state.padding).attr("rx",t().state.radius),e},Y=(e,r,g)=>{const s=t().state.padding,d=2*t().state.padding,h=e.node().getBBox(),l=h.width,a=h.x,n=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(r.id),x=n.node().getBBox().width+d;let c=Math.max(x,l);c===l&&(c=c+d);let o;const u=e.node().getBBox();r.doc,o=a-s,x>l&&(o=(l-c)/2+s),Math.abs(a-u.x)<s&&x>l&&(o=a-(x-l)/2);const B=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",B).attr("class",g?"alt-composit":"composit").attr("width",c).attr("height",u.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),n.attr("x",o+s),x<=l&&n.attr("x",a+(c-d)/2-x/2+s),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",u.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},j=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),K=(e,r)=>{let g=t().state.forkWidth,s=t().state.forkHeight;if(r.parentId){let d=g;g=s,s=d}return e.append("rect").style("stroke","black").style("fill","black").attr("width",g).attr("height",s).attr("x",t().state.padding).attr("y",t().state.padding)},X=(e,r,g,s)=>{let d=0;const h=s.append("text");h.style("text-anchor","start"),h.attr("class","noteText");let l=e.replace(/\r\n/g,"<br/>");l=l.replace(/\n/g,"<br/>");const a=l.split(z.lineBreakRegex);let n=1.25*t().state.noteMargin;for(const x of a){const c=x.trim();if(c.length>0){const o=h.append("tspan");if(o.text(c),n===0){const u=o.node().getBBox();n+=u.height}d+=n,o.attr("x",r+t().state.noteMargin),o.attr("y",g+d+1.25*t().state.noteMargin)}}return{textWidth:h.node().getBBox().width,textHeight:d}},$=(e,r)=>{r.attr("class","state-note");const g=r.append("rect").attr("x",0).attr("y",t().state.padding),s=r.append("g"),{textWidth:d,textHeight:h}=X(e,0,0,s);return g.attr("height",h+2*t().state.noteMargin),g.attr("width",d+t().state.noteMargin*2),g},H=function(e,r){const g=r.id,s={id:g,label:r.id,width:0,height:0},d=e.append("g").attr("id",g).attr("class","stateGroup");r.type==="start"&&F(d),r.type==="end"&&j(d),(r.type==="fork"||r.type==="join")&&K(d,r),r.type==="note"&&$(r.note.text,d),r.type==="divider"&&C(d),r.type==="default"&&r.descriptions.length===0&&J(d,r),r.type==="default"&&r.descriptions.length>0&&W(d,r);const h=d.node().getBBox();return s.width=h.width+2*t().state.padding,s.height=h.height+2*t().state.padding,s};let A=0;const q=function(e,r,g){const s=function(n){switch(n){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};r.points=r.points.filter(n=>!Number.isNaN(n.y));const d=r.points,h=L().x(function(n){return n.x}).y(function(n){return n.y}).curve(P),l=e.append("path").attr("d",h(d)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),l.attr("marker-end","url("+a+"#"+s(N.relationType.DEPENDENCY)+"End)"),g.title!==void 0){const n=e.append("g").attr("class","stateLabel"),{x,y:c}=U.calcLabelPosition(r.points),o=z.getRows(g.title);let u=0;const B=[];let w=0,S=0;for(let f=0;f<=o.length;f++){const p=n.append("text").attr("text-anchor","middle").text(o[f]).attr("x",x).attr("y",c+u),y=p.node().getBBox();w=Math.max(w,y.width),S=Math.min(S,y.x),k.info(y.x,x,c+u),u===0&&(u=p.node().getBBox().height,k.info("Title height",u,c)),B.push(p)}let E=u*o.length;if(o.length>1){const f=(o.length-1)*u*.5;B.forEach((p,y)=>p.attr("y",c+y*u-f)),E=u*o.length}const i=n.node().getBBox();n.insert("rect",":first-child").attr("class","box").attr("x",x-w/2-t().state.padding/2).attr("y",c-E/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",E+t().state.padding),k.info(i)}A++};let m;const v={},Z=function(){},Q=function(e){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 19,7 L9,13 L14,7 L9,1 Z")},V=function(e,r,g,s){m=t().state;const d=t().securityLevel;let h;d==="sandbox"&&(h=M("#i"+r));const l=d==="sandbox"?M(h.nodes()[0].contentDocument.body):M("body"),a=d==="sandbox"?h.nodes()[0].contentDocument:document;k.debug("Rendering diagram "+e);const n=l.select(`[id='${r}']`);Q(n);const x=s.db.getRootDoc();D(x,n,void 0,!1,l,a,s);const c=m.padding,o=n.node().getBBox(),u=o.width+c*2,B=o.height+c*2,w=u*1.75;G(n,B,w,m.useMaxWidth),n.attr("viewBox",`${o.x-m.padding} ${o.y-m.padding} `+u+" "+B)},_=e=>e?e.length*m.fontSizeFactor:1,D=(e,r,g,s,d,h,l)=>{const a=new I({compound:!0,multigraph:!0});let n,x=!0;for(n=0;n<e.length;n++)if(e[n].stmt==="relation"){x=!1;break}g?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:x?1:m.edgeLengthFactor,nodeSep:x?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:x?1:m.edgeLengthFactor,nodeSep:x?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}}),l.db.extract(e);const c=l.db.getStates(),o=l.db.getRelations(),u=Object.keys(c);for(const i of u){const f=c[i];g&&(f.parentId=g);let p;if(f.doc){let y=r.append("g").attr("id",f.id).attr("class","stateGroup");p=D(f.doc,y,f.id,!s,d,h,l);{y=Y(y,f,s);let b=y.node().getBBox();p.width=b.width,p.height=b.height+m.padding/2,v[f.id]={y:m.compositTitleSize}}}else p=H(r,f);if(f.note){const y={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},b=H(r,y);f.note.position==="left of"?(a.setNode(p.id+"-note",b),a.setNode(p.id,p)):(a.setNode(p.id,p),a.setNode(p.id+"-note",b)),a.setParent(p.id,p.id+"-group"),a.setParent(p.id+"-note",p.id+"-group")}else a.setNode(p.id,p)}k.debug("Count=",a.nodeCount(),a);let B=0;o.forEach(function(i){B++,k.debug("Setting edge",i),a.setEdge(i.id1,i.id2,{relation:i,width:_(i.title),height:m.labelHeight*z.getRows(i.title).length,labelpos:"c"},"id"+B)}),R(a),k.debug("Graph after layout",a.nodes());const w=r.node();a.nodes().forEach(function(i){i!==void 0&&a.node(i)!==void 0?(k.warn("Node "+i+": "+JSON.stringify(a.node(i))),d.select("#"+w.id+" #"+i).attr("transform","translate("+(a.node(i).x-a.node(i).width/2)+","+(a.node(i).y+(v[i]?v[i].y:0)-a.node(i).height/2)+" )"),d.select("#"+w.id+" #"+i).attr("data-x-shift",a.node(i).x-a.node(i).width/2),h.querySelectorAll("#"+w.id+" #"+i+" .divider").forEach(f=>{const p=f.parentElement;let y=0,b=0;p&&(p.parentElement&&(y=p.parentElement.getBBox().width),b=parseInt(p.getAttribute("data-x-shift"),10),Number.isNaN(b)&&(b=0)),f.setAttribute("x1",0-b+8),f.setAttribute("x2",y-b-8)})):k.debug("No Node "+i+": "+JSON.stringify(a.node(i)))});let S=w.getBBox();a.edges().forEach(function(i){i!==void 0&&a.edge(i)!==void 0&&(k.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(a.edge(i))),q(r,a.edge(i),a.edge(i).relation))}),S=w.getBBox();const E={id:g||"root",label:g||"root",width:0,height:0};return E.width=S.width+2*m.padding,E.height=S.height+2*m.padding,k.debug("Doc rendered",E,a),E},tt={setConf:Z,draw:V},dt={parser:T,db:N,renderer:tt,styles:O,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{dt as diagram};
@@ -1 +1 @@
1
- import{A as U,v as z,D as Y,C as H,E as L,t as Q,I as X,_ as Z}from"./styles-ca3715f6-DU7x0doE-B7zhH0Zm.js";import{K as tt}from"./graph-BZahQKIN-CTgzd5us.js";import{O as p,S,F as A,u as et,J as st,p as B}from"./index-CDwx2U7N.js";import{b as ot}from"./index-5325376f-DsNDppci-BaFeDo3U.js";import"./layout-j-hMNqAM-C88IAVJC.js";import"./clone-D01vUIhD-D0aslzw6.js";import"./edges-96097737-Zc6U9nQz-Czq3--42.js";import"./createText-1719965b-D9Y3vUMn-UiwO3q8Q.js";const w="rect",k="rectWithTitle",at="start",rt="end",it="divider",nt="roundedWithTitle",dt="note",lt="noteGroup",h="statediagram",ct="state",pt=`${h}-${ct}`,M="transition",bt="note",gt="note-edge",ut=`${M} ${gt}`,ht=`${h}-${bt}`,yt="cluster",ft=`${h}-${yt}`,$t="cluster-alt",mt=`${h}-${$t}`,P="parent",W="note",xt="state",C="----",wt=`${C}${W}`,I=`${C}${P}`,j="fill:none",G="fill: #333",J="c",K="text",q="normal";let T={},c=0;const Tt=function(t){const a=Object.keys(t);for(const e of a)t[e]},St=function(t,a){return a.db.extract(a.db.getRootDocV2()),a.db.getClasses()};function Dt(t){return t==null?"":t.classes?t.classes.join(" "):""}function v(t="",a=0,e="",r=C){const i=e!==null&&e.length>0?`${r}${e}`:"";return`${xt}-${t}${i}-${a}`}const x=(t,a,e,r,i,n)=>{const s=e.id,y=Dt(r[s]);if(s!=="root"){let g=w;e.start===!0&&(g=at),e.start===!1&&(g=rt),e.type!==L&&(g=e.type),T[s]||(T[s]={id:s,shape:g,description:B.sanitizeText(s,S()),classes:`${y} ${pt}`});const o=T[s];e.description&&(Array.isArray(o.description)?(o.shape=k,o.description.push(e.description)):o.description.length>0?(o.shape=k,o.description===s?o.description=[e.description]:o.description=[o.description,e.description]):(o.shape=w,o.description=e.description),o.description=B.sanitizeTextOrArray(o.description,S())),o.description.length===1&&o.shape===k&&(o.shape=w),!o.type&&e.doc&&(p.info("Setting cluster for ",s,E(e)),o.type="group",o.dir=E(e),o.shape=e.type===Q?it:nt,o.classes=o.classes+" "+ft+" "+(n?mt:""));const u={labelStyle:"",shape:o.shape,labelText:o.description,classes:o.classes,style:"",id:s,dir:o.dir,domId:v(s,c),type:o.type,padding:15};if(u.centerLabel=!0,e.note){const d={labelStyle:"",shape:dt,labelText:e.note.text,classes:ht,style:"",id:s+wt+"-"+c,domId:v(s,c,W),type:o.type,padding:15},l={labelStyle:"",shape:lt,labelText:e.note.text,classes:o.classes,style:"",id:s+I,domId:v(s,c,P),type:"group",padding:0};c++;const f=s+I;t.setNode(f,l),t.setNode(d.id,d),t.setNode(s,u),t.setParent(s,f),t.setParent(d.id,f);let b=s,$=d.id;e.note.position==="left of"&&(b=d.id,$=s),t.setEdge(b,$,{arrowhead:"none",arrowType:"",style:j,labelStyle:"",classes:ut,arrowheadStyle:G,labelpos:J,labelType:K,thickness:q})}else t.setNode(s,u)}a&&a.id!=="root"&&(p.trace("Setting node ",s," to be child of its parent ",a.id),t.setParent(s,a.id)),e.doc&&(p.trace("Adding nodes children "),At(t,e,e.doc,r,i,!n))},At=(t,a,e,r,i,n)=>{p.trace("items",e),e.forEach(s=>{switch(s.stmt){case Z:x(t,a,s,r,i,n);break;case L:x(t,a,s,r,i,n);break;case X:{x(t,a,s.state1,r,i,n),x(t,a,s.state2,r,i,n);const y={id:"edge"+c,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:j,labelStyle:"",label:B.sanitizeText(s.description,S()),arrowheadStyle:G,labelpos:J,labelType:K,thickness:q,classes:M};t.setEdge(s.state1.id,s.state2.id,y,c),c++}break}})},E=(t,a=H)=>{let e=a;if(t.doc)for(let r=0;r<t.doc.length;r++){const i=t.doc[r];i.stmt==="dir"&&(e=i.value)}return e},kt=async function(t,a,e,r){p.info("Drawing state diagram (v2)",a),T={},r.db.getDirection();const{securityLevel:i,state:n}=S(),s=n.nodeSpacing||50,y=n.rankSpacing||50;p.info(r.db.getRootDocV2()),r.db.extract(r.db.getRootDocV2()),p.info(r.db.getRootDocV2());const g=r.db.getStates(),o=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:E(r.db.getRootDocV2()),nodesep:s,ranksep:y,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});x(o,void 0,r.db.getRootDocV2(),g,r.db,!0);let u;i==="sandbox"&&(u=A("#i"+a));const d=i==="sandbox"?A(u.nodes()[0].contentDocument.body):A("body"),l=d.select(`[id="${a}"]`),f=d.select("#"+a+" g");await ot(f,o,["barb"],h,a);const b=8;et.insertTitle(l,"statediagramTitleText",n.titleTopMargin,r.db.getDiagramTitle());const $=l.node().getBBox(),R=$.width+b*2,V=$.height+b*2;l.attr("class",h);const N=l.node().getBBox();st(l,V,R,n.useMaxWidth);const O=`${N.x-b} ${N.y-b} ${R} ${V}`;p.debug(`viewBox ${O}`),l.attr("viewBox",O);const F=document.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const D of F){const _=D.getBBox(),m=document.createElementNS("http://www.w3.org/2000/svg",w);m.setAttribute("rx",0),m.setAttribute("ry",0),m.setAttribute("width",_.width),m.setAttribute("height",_.height),D.insertBefore(m,D.firstChild)}},vt={setConf:Tt,getClasses:St,draw:kt},zt={parser:Y,db:z,renderer:vt,styles:U,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,z.clear()}};export{zt as diagram};
1
+ import{A as U,v as z,D as Y,C as H,E as L,t as Q,I as X,_ as Z}from"./styles-ca3715f6-DU7x0doE-BqM8h3vG.js";import{K as tt}from"./graph-BZahQKIN-CenQ9kLM.js";import{O as p,S,F as A,u as et,J as st,p as B}from"./index-CVRNWcf-.js";import{b as ot}from"./index-5325376f-DsNDppci-BmtId_7h.js";import"./layout-j-hMNqAM-d_O0ZYu6.js";import"./clone-D01vUIhD-DmY5mrln.js";import"./edges-96097737-Zc6U9nQz-BzB5ko4h.js";import"./createText-1719965b-D9Y3vUMn-DDdadCK5.js";const w="rect",k="rectWithTitle",at="start",rt="end",it="divider",nt="roundedWithTitle",dt="note",lt="noteGroup",h="statediagram",ct="state",pt=`${h}-${ct}`,M="transition",bt="note",gt="note-edge",ut=`${M} ${gt}`,ht=`${h}-${bt}`,yt="cluster",ft=`${h}-${yt}`,$t="cluster-alt",mt=`${h}-${$t}`,P="parent",W="note",xt="state",C="----",wt=`${C}${W}`,I=`${C}${P}`,j="fill:none",G="fill: #333",J="c",K="text",q="normal";let T={},c=0;const Tt=function(t){const a=Object.keys(t);for(const e of a)t[e]},St=function(t,a){return a.db.extract(a.db.getRootDocV2()),a.db.getClasses()};function Dt(t){return t==null?"":t.classes?t.classes.join(" "):""}function v(t="",a=0,e="",r=C){const i=e!==null&&e.length>0?`${r}${e}`:"";return`${xt}-${t}${i}-${a}`}const x=(t,a,e,r,i,n)=>{const s=e.id,y=Dt(r[s]);if(s!=="root"){let g=w;e.start===!0&&(g=at),e.start===!1&&(g=rt),e.type!==L&&(g=e.type),T[s]||(T[s]={id:s,shape:g,description:B.sanitizeText(s,S()),classes:`${y} ${pt}`});const o=T[s];e.description&&(Array.isArray(o.description)?(o.shape=k,o.description.push(e.description)):o.description.length>0?(o.shape=k,o.description===s?o.description=[e.description]:o.description=[o.description,e.description]):(o.shape=w,o.description=e.description),o.description=B.sanitizeTextOrArray(o.description,S())),o.description.length===1&&o.shape===k&&(o.shape=w),!o.type&&e.doc&&(p.info("Setting cluster for ",s,E(e)),o.type="group",o.dir=E(e),o.shape=e.type===Q?it:nt,o.classes=o.classes+" "+ft+" "+(n?mt:""));const u={labelStyle:"",shape:o.shape,labelText:o.description,classes:o.classes,style:"",id:s,dir:o.dir,domId:v(s,c),type:o.type,padding:15};if(u.centerLabel=!0,e.note){const d={labelStyle:"",shape:dt,labelText:e.note.text,classes:ht,style:"",id:s+wt+"-"+c,domId:v(s,c,W),type:o.type,padding:15},l={labelStyle:"",shape:lt,labelText:e.note.text,classes:o.classes,style:"",id:s+I,domId:v(s,c,P),type:"group",padding:0};c++;const f=s+I;t.setNode(f,l),t.setNode(d.id,d),t.setNode(s,u),t.setParent(s,f),t.setParent(d.id,f);let b=s,$=d.id;e.note.position==="left of"&&(b=d.id,$=s),t.setEdge(b,$,{arrowhead:"none",arrowType:"",style:j,labelStyle:"",classes:ut,arrowheadStyle:G,labelpos:J,labelType:K,thickness:q})}else t.setNode(s,u)}a&&a.id!=="root"&&(p.trace("Setting node ",s," to be child of its parent ",a.id),t.setParent(s,a.id)),e.doc&&(p.trace("Adding nodes children "),At(t,e,e.doc,r,i,!n))},At=(t,a,e,r,i,n)=>{p.trace("items",e),e.forEach(s=>{switch(s.stmt){case Z:x(t,a,s,r,i,n);break;case L:x(t,a,s,r,i,n);break;case X:{x(t,a,s.state1,r,i,n),x(t,a,s.state2,r,i,n);const y={id:"edge"+c,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:j,labelStyle:"",label:B.sanitizeText(s.description,S()),arrowheadStyle:G,labelpos:J,labelType:K,thickness:q,classes:M};t.setEdge(s.state1.id,s.state2.id,y,c),c++}break}})},E=(t,a=H)=>{let e=a;if(t.doc)for(let r=0;r<t.doc.length;r++){const i=t.doc[r];i.stmt==="dir"&&(e=i.value)}return e},kt=async function(t,a,e,r){p.info("Drawing state diagram (v2)",a),T={},r.db.getDirection();const{securityLevel:i,state:n}=S(),s=n.nodeSpacing||50,y=n.rankSpacing||50;p.info(r.db.getRootDocV2()),r.db.extract(r.db.getRootDocV2()),p.info(r.db.getRootDocV2());const g=r.db.getStates(),o=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:E(r.db.getRootDocV2()),nodesep:s,ranksep:y,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});x(o,void 0,r.db.getRootDocV2(),g,r.db,!0);let u;i==="sandbox"&&(u=A("#i"+a));const d=i==="sandbox"?A(u.nodes()[0].contentDocument.body):A("body"),l=d.select(`[id="${a}"]`),f=d.select("#"+a+" g");await ot(f,o,["barb"],h,a);const b=8;et.insertTitle(l,"statediagramTitleText",n.titleTopMargin,r.db.getDiagramTitle());const $=l.node().getBBox(),R=$.width+b*2,V=$.height+b*2;l.attr("class",h);const N=l.node().getBBox();st(l,V,R,n.useMaxWidth);const O=`${N.x-b} ${N.y-b} ${R} ${V}`;p.debug(`viewBox ${O}`),l.attr("viewBox",O);const F=document.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const D of F){const _=D.getBBox(),m=document.createElementNS("http://www.w3.org/2000/svg",w);m.setAttribute("rx",0),m.setAttribute("ry",0),m.setAttribute("width",_.width),m.setAttribute("height",_.height),D.insertBefore(m,D.firstChild)}},vt={setConf:Tt,getClasses:St,draw:kt},zt={parser:Y,db:z,renderer:vt,styles:U,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,z.clear()}};export{zt as diagram};
@@ -1,4 +1,4 @@
1
- import{M as ut,L as nt,S as g,R as rt,D as at,N as lt,I as ot,p as $,u as He,O as ct,j as ht,G as At,V as Ie,F as G}from"./index-CDwx2U7N.js";var xe=function(){var e=function(S,n,o,i){for(o=o||{},i=S.length;i--;o[S[i]]=n);return o},u=[1,17],r=[1,18],a=[1,19],c=[1,39],p=[1,40],m=[1,25],D=[1,23],B=[1,24],Ae=[1,31],pe=[1,32],de=[1,33],ye=[1,34],Ee=[1,35],fe=[1,36],Ce=[1,26],me=[1,27],be=[1,28],ke=[1,29],d=[1,43],Fe=[1,30],y=[1,42],E=[1,44],f=[1,41],b=[1,45],ge=[1,9],l=[1,8,9],z=[1,56],K=[1,57],Y=[1,58],j=[1,59],Q=[1,60],Te=[1,61],De=[1,62],X=[1,8,9,39],Me=[1,74],P=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],H=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],W=[13,74,80,95,97,98],M=[13,64,65,74,80,95,97,98],Ge=[13,59,60,61,62,63,74,80,95,97,98],Be=[1,93],q=[1,110],V=[1,108],J=[1,102],Z=[1,103],ee=[1,104],te=[1,105],se=[1,106],ie=[1,107],ue=[1,109],_e=[1,8,9,37,39,42],ne=[1,8,9,21],Ue=[1,8,9,78],_=[1,8,9,21,73,74,78,80,81,82,83,84,85],Se={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(S,n,o,i,h,t,k){var s=t.length-1;switch(h){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:i.addRelation(t[s]);break;case 17:t[s-1].title=i.cleanupLabel(t[s]),i.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),i.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),i.setAccDescription(this.$);break;case 30:i.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:i.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],i.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:i.setCssClass(t[s-2],t[s]);break;case 38:i.addMembers(t[s-3],t[s-1]);break;case 39:i.setCssClass(t[s-5],t[s-3]),i.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],i.addClass(t[s]);break;case 41:this.$=t[s-1],i.addClass(t[s-1]),i.setClassLabel(t[s-1],t[s]);break;case 42:i.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:i.addMember(t[s-1],i.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:i.addNote(t[s],t[s-1]);break;case 54:i.addNote(t[s]);break;case 55:i.setDirection("TB");break;case 56:i.setDirection("BT");break;case 57:i.setDirection("RL");break;case 58:i.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=i.relationType.AGGREGATION;break;case 64:this.$=i.relationType.EXTENSION;break;case 65:this.$=i.relationType.COMPOSITION;break;case 66:this.$=i.relationType.DEPENDENCY;break;case 67:this.$=i.relationType.LOLLIPOP;break;case 68:this.$=i.lineType.LINE;break;case 69:this.$=i.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],i.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],i.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],i.setLink(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],i.setLink(t[s-3],t[s-2],t[s]),i.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],i.setClickEvent(t[s-3],t[s-2],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],i.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],i.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],i.setLink(t[s-3],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],i.setLink(t[s-4],t[s-2],t[s]),i.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],i.setCssStyle(t[s-1],t[s]);break;case 85:i.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:u,33:r,35:a,36:21,40:c,41:22,44:p,45:m,47:D,48:B,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ge,[2,5],{8:[1,46]}),{8:[1,47]},e(l,[2,16],{21:[1,48]}),e(l,[2,18]),e(l,[2,19]),e(l,[2,20]),e(l,[2,21]),e(l,[2,22]),e(l,[2,23]),e(l,[2,24]),e(l,[2,25]),e(l,[2,26]),{32:[1,49]},{34:[1,50]},e(l,[2,29]),e(l,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:z,60:K,61:Y,62:j,63:Q,64:Te,65:De}),{37:[1,63]},e(X,[2,36],{37:[1,65],42:[1,64]}),e(l,[2,47]),e(l,[2,48]),{16:66,74:d,80:y,95:E,97:f},{16:37,17:67,18:38,74:d,80:y,95:E,97:f,98:b},{16:37,17:68,18:38,74:d,80:y,95:E,97:f,98:b},{16:37,17:69,18:38,74:d,80:y,95:E,97:f,98:b},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:y,95:E,97:f,98:b},{13:Me,51:73},e(l,[2,55]),e(l,[2,56]),e(l,[2,57]),e(l,[2,58]),e(P,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:y,95:E,97:f,98:b}),e(P,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:y,95:E,97:f},{16:37,17:80,18:38,74:d,80:y,95:E,97:f,98:b},e(H,[2,112]),e(H,[2,113]),e(H,[2,114]),e(H,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ge,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:u,33:r,35:a,40:c,44:p,45:m,47:D,48:B,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:u,33:r,35:a,36:21,40:c,41:22,44:p,45:m,47:D,48:B,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b},e(l,[2,17]),e(l,[2,27]),e(l,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:y,95:E,97:f,98:b},{49:85,57:54,58:55,59:z,60:K,61:Y,62:j,63:Q,64:Te,65:De},e(l,[2,46]),{58:86,64:Te,65:De},e(W,[2,62],{57:87,59:z,60:K,61:Y,62:j,63:Q}),e(M,[2,63]),e(M,[2,64]),e(M,[2,65]),e(M,[2,66]),e(M,[2,67]),e(Ge,[2,68]),e(Ge,[2,69]),{8:[1,89],23:90,38:88,41:22,44:p},{16:91,74:d,80:y,95:E,97:f},{43:92,47:Be},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:q,73:V,74:J,75:99,77:100,79:101,80:Z,81:ee,82:te,83:se,84:ie,85:ue},{74:[1,111]},{13:Me,51:112},e(l,[2,54]),e(l,[2,117]),e(P,[2,13]),e(P,[2,14]),e(P,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:y,95:E,97:f},e(_e,[2,40],{11:114,12:[1,115]}),e(ge,[2,7]),{9:[1,116]},e(ne,[2,49]),{16:37,17:117,18:38,74:d,80:y,95:E,97:f,98:b},{13:[1,119],16:37,17:118,18:38,74:d,80:y,95:E,97:f,98:b},e(W,[2,61],{57:120,59:z,60:K,61:Y,62:j,63:Q}),e(W,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:p},{8:[1,123],39:[2,33]},e(X,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:Be},{16:37,17:127,18:38,74:d,80:y,95:E,97:f,98:b},e(l,[2,70],{13:[1,128]}),e(l,[2,72],{13:[1,130],68:[1,129]}),e(l,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(l,[2,84],{78:[1,134]}),e(Ue,[2,86],{79:135,21:q,73:V,74:J,80:Z,81:ee,82:te,83:se,84:ie,85:ue}),e(_,[2,88]),e(_,[2,90]),e(_,[2,91]),e(_,[2,92]),e(_,[2,93]),e(_,[2,94]),e(_,[2,95]),e(_,[2,96]),e(_,[2,97]),e(_,[2,98]),e(l,[2,85]),e(l,[2,53]),{37:[2,10]},e(_e,[2,41]),{13:[1,136]},{1:[2,4]},e(ne,[2,51]),e(ne,[2,50]),{16:37,17:137,18:38,74:d,80:y,95:E,97:f,98:b},e(W,[2,59]),e(l,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:p},{43:140,47:Be},e(X,[2,38]),{39:[2,44]},e(l,[2,42]),e(l,[2,71]),e(l,[2,73]),e(l,[2,74],{68:[1,141]}),e(l,[2,77]),e(l,[2,78],{13:[1,142]}),e(l,[2,80],{13:[1,144],68:[1,143]}),{21:q,73:V,74:J,77:145,79:101,80:Z,81:ee,82:te,83:se,84:ie,85:ue},e(_,[2,89]),{14:[1,146]},e(ne,[2,52]),e(l,[2,31]),{39:[2,35]},{39:[1,147]},e(l,[2,75]),e(l,[2,79]),e(l,[2,81]),e(l,[2,82],{68:[1,148]}),e(Ue,[2,87],{79:135,21:q,73:V,74:J,80:Z,81:ee,82:te,83:se,84:ie,85:ue}),e(_e,[2,8]),e(X,[2,39]),e(l,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(S,n){if(n.recoverable)this.trace(S);else{var o=new Error(S);throw o.hash=n,o}},parse:function(S){var n=this,o=[0],i=[],h=[null],t=[],k=this.table,s="",re=0,ze=0,et=2,Ke=1,tt=t.slice.call(arguments,1),C=Object.create(this.lexer),O={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(O.yy[Le]=this.yy[Le]);C.setInput(S,O.yy),O.yy.lexer=C,O.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var $e=C.yylloc;t.push($e);var st=C.options&&C.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var L;return L=i.pop()||C.lex()||Ke,typeof L!="number"&&(L instanceof Array&&(i=L,L=i.pop()),L=n.symbols_[L]||L),L}for(var F,I,T,ve,w={},ae,N,Ye,le;;){if(I=o[o.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((F===null||typeof F>"u")&&(F=it()),T=k[I]&&k[I][F]),typeof T>"u"||!T.length||!T[0]){var Oe="";le=[];for(ae in k[I])this.terminals_[ae]&&ae>et&&le.push("'"+this.terminals_[ae]+"'");C.showPosition?Oe="Parse error on line "+(re+1)+`:
1
+ import{M as ut,L as nt,S as g,R as rt,D as at,N as lt,I as ot,p as $,u as He,O as ct,j as ht,G as At,V as Ie,F as G}from"./index-CVRNWcf-.js";var xe=function(){var e=function(S,n,o,i){for(o=o||{},i=S.length;i--;o[S[i]]=n);return o},u=[1,17],r=[1,18],a=[1,19],c=[1,39],p=[1,40],m=[1,25],D=[1,23],B=[1,24],Ae=[1,31],pe=[1,32],de=[1,33],ye=[1,34],Ee=[1,35],fe=[1,36],Ce=[1,26],me=[1,27],be=[1,28],ke=[1,29],d=[1,43],Fe=[1,30],y=[1,42],E=[1,44],f=[1,41],b=[1,45],ge=[1,9],l=[1,8,9],z=[1,56],K=[1,57],Y=[1,58],j=[1,59],Q=[1,60],Te=[1,61],De=[1,62],X=[1,8,9,39],Me=[1,74],P=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],H=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],W=[13,74,80,95,97,98],M=[13,64,65,74,80,95,97,98],Ge=[13,59,60,61,62,63,74,80,95,97,98],Be=[1,93],q=[1,110],V=[1,108],J=[1,102],Z=[1,103],ee=[1,104],te=[1,105],se=[1,106],ie=[1,107],ue=[1,109],_e=[1,8,9,37,39,42],ne=[1,8,9,21],Ue=[1,8,9,78],_=[1,8,9,21,73,74,78,80,81,82,83,84,85],Se={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(S,n,o,i,h,t,k){var s=t.length-1;switch(h){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:i.addRelation(t[s]);break;case 17:t[s-1].title=i.cleanupLabel(t[s]),i.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),i.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),i.setAccDescription(this.$);break;case 30:i.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:i.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],i.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:i.setCssClass(t[s-2],t[s]);break;case 38:i.addMembers(t[s-3],t[s-1]);break;case 39:i.setCssClass(t[s-5],t[s-3]),i.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],i.addClass(t[s]);break;case 41:this.$=t[s-1],i.addClass(t[s-1]),i.setClassLabel(t[s-1],t[s]);break;case 42:i.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:i.addMember(t[s-1],i.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:i.addNote(t[s],t[s-1]);break;case 54:i.addNote(t[s]);break;case 55:i.setDirection("TB");break;case 56:i.setDirection("BT");break;case 57:i.setDirection("RL");break;case 58:i.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=i.relationType.AGGREGATION;break;case 64:this.$=i.relationType.EXTENSION;break;case 65:this.$=i.relationType.COMPOSITION;break;case 66:this.$=i.relationType.DEPENDENCY;break;case 67:this.$=i.relationType.LOLLIPOP;break;case 68:this.$=i.lineType.LINE;break;case 69:this.$=i.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],i.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],i.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],i.setLink(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],i.setLink(t[s-3],t[s-2],t[s]),i.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],i.setClickEvent(t[s-3],t[s-2],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],i.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],i.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],i.setLink(t[s-3],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],i.setLink(t[s-4],t[s-2],t[s]),i.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],i.setCssStyle(t[s-1],t[s]);break;case 85:i.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:u,33:r,35:a,36:21,40:c,41:22,44:p,45:m,47:D,48:B,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ge,[2,5],{8:[1,46]}),{8:[1,47]},e(l,[2,16],{21:[1,48]}),e(l,[2,18]),e(l,[2,19]),e(l,[2,20]),e(l,[2,21]),e(l,[2,22]),e(l,[2,23]),e(l,[2,24]),e(l,[2,25]),e(l,[2,26]),{32:[1,49]},{34:[1,50]},e(l,[2,29]),e(l,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:z,60:K,61:Y,62:j,63:Q,64:Te,65:De}),{37:[1,63]},e(X,[2,36],{37:[1,65],42:[1,64]}),e(l,[2,47]),e(l,[2,48]),{16:66,74:d,80:y,95:E,97:f},{16:37,17:67,18:38,74:d,80:y,95:E,97:f,98:b},{16:37,17:68,18:38,74:d,80:y,95:E,97:f,98:b},{16:37,17:69,18:38,74:d,80:y,95:E,97:f,98:b},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:y,95:E,97:f,98:b},{13:Me,51:73},e(l,[2,55]),e(l,[2,56]),e(l,[2,57]),e(l,[2,58]),e(P,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:y,95:E,97:f,98:b}),e(P,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:y,95:E,97:f},{16:37,17:80,18:38,74:d,80:y,95:E,97:f,98:b},e(H,[2,112]),e(H,[2,113]),e(H,[2,114]),e(H,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ge,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:u,33:r,35:a,40:c,44:p,45:m,47:D,48:B,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:u,33:r,35:a,36:21,40:c,41:22,44:p,45:m,47:D,48:B,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b},e(l,[2,17]),e(l,[2,27]),e(l,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:y,95:E,97:f,98:b},{49:85,57:54,58:55,59:z,60:K,61:Y,62:j,63:Q,64:Te,65:De},e(l,[2,46]),{58:86,64:Te,65:De},e(W,[2,62],{57:87,59:z,60:K,61:Y,62:j,63:Q}),e(M,[2,63]),e(M,[2,64]),e(M,[2,65]),e(M,[2,66]),e(M,[2,67]),e(Ge,[2,68]),e(Ge,[2,69]),{8:[1,89],23:90,38:88,41:22,44:p},{16:91,74:d,80:y,95:E,97:f},{43:92,47:Be},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:q,73:V,74:J,75:99,77:100,79:101,80:Z,81:ee,82:te,83:se,84:ie,85:ue},{74:[1,111]},{13:Me,51:112},e(l,[2,54]),e(l,[2,117]),e(P,[2,13]),e(P,[2,14]),e(P,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:y,95:E,97:f},e(_e,[2,40],{11:114,12:[1,115]}),e(ge,[2,7]),{9:[1,116]},e(ne,[2,49]),{16:37,17:117,18:38,74:d,80:y,95:E,97:f,98:b},{13:[1,119],16:37,17:118,18:38,74:d,80:y,95:E,97:f,98:b},e(W,[2,61],{57:120,59:z,60:K,61:Y,62:j,63:Q}),e(W,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:p},{8:[1,123],39:[2,33]},e(X,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:Be},{16:37,17:127,18:38,74:d,80:y,95:E,97:f,98:b},e(l,[2,70],{13:[1,128]}),e(l,[2,72],{13:[1,130],68:[1,129]}),e(l,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(l,[2,84],{78:[1,134]}),e(Ue,[2,86],{79:135,21:q,73:V,74:J,80:Z,81:ee,82:te,83:se,84:ie,85:ue}),e(_,[2,88]),e(_,[2,90]),e(_,[2,91]),e(_,[2,92]),e(_,[2,93]),e(_,[2,94]),e(_,[2,95]),e(_,[2,96]),e(_,[2,97]),e(_,[2,98]),e(l,[2,85]),e(l,[2,53]),{37:[2,10]},e(_e,[2,41]),{13:[1,136]},{1:[2,4]},e(ne,[2,51]),e(ne,[2,50]),{16:37,17:137,18:38,74:d,80:y,95:E,97:f,98:b},e(W,[2,59]),e(l,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:p},{43:140,47:Be},e(X,[2,38]),{39:[2,44]},e(l,[2,42]),e(l,[2,71]),e(l,[2,73]),e(l,[2,74],{68:[1,141]}),e(l,[2,77]),e(l,[2,78],{13:[1,142]}),e(l,[2,80],{13:[1,144],68:[1,143]}),{21:q,73:V,74:J,77:145,79:101,80:Z,81:ee,82:te,83:se,84:ie,85:ue},e(_,[2,89]),{14:[1,146]},e(ne,[2,52]),e(l,[2,31]),{39:[2,35]},{39:[1,147]},e(l,[2,75]),e(l,[2,79]),e(l,[2,81]),e(l,[2,82],{68:[1,148]}),e(Ue,[2,87],{79:135,21:q,73:V,74:J,80:Z,81:ee,82:te,83:se,84:ie,85:ue}),e(_e,[2,8]),e(X,[2,39]),e(l,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(S,n){if(n.recoverable)this.trace(S);else{var o=new Error(S);throw o.hash=n,o}},parse:function(S){var n=this,o=[0],i=[],h=[null],t=[],k=this.table,s="",re=0,ze=0,et=2,Ke=1,tt=t.slice.call(arguments,1),C=Object.create(this.lexer),O={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(O.yy[Le]=this.yy[Le]);C.setInput(S,O.yy),O.yy.lexer=C,O.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var $e=C.yylloc;t.push($e);var st=C.options&&C.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var L;return L=i.pop()||C.lex()||Ke,typeof L!="number"&&(L instanceof Array&&(i=L,L=i.pop()),L=n.symbols_[L]||L),L}for(var F,I,T,ve,w={},ae,N,Ye,le;;){if(I=o[o.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((F===null||typeof F>"u")&&(F=it()),T=k[I]&&k[I][F]),typeof T>"u"||!T.length||!T[0]){var Oe="";le=[];for(ae in k[I])this.terminals_[ae]&&ae>et&&le.push("'"+this.terminals_[ae]+"'");C.showPosition?Oe="Parse error on line "+(re+1)+`:
2
2
  `+C.showPosition()+`
3
3
  Expecting `+le.join(", ")+", got '"+(this.terminals_[F]||F)+"'":Oe="Parse error on line "+(re+1)+": Unexpected "+(F==Ke?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(Oe,{text:C.match,token:this.terminals_[F]||F,line:C.yylineno,loc:$e,expected:le})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+F);switch(T[0]){case 1:o.push(F),h.push(C.yytext),t.push(C.yylloc),o.push(T[1]),F=null,ze=C.yyleng,s=C.yytext,re=C.yylineno,$e=C.yylloc;break;case 2:if(N=this.productions_[T[1]][1],w.$=h[h.length-N],w._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},st&&(w._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),ve=this.performAction.apply(w,[s,ze,re,O.yy,T[1],h,t].concat(tt)),typeof ve<"u")return ve;N&&(o=o.slice(0,-1*N*2),h=h.slice(0,-1*N),t=t.slice(0,-1*N)),o.push(this.productions_[T[1]][0]),h.push(w.$),t.push(w._$),Ye=k[o[o.length-2]][o[o.length-1]],o.push(Ye);break;case 3:return!0}}return!0}},Ze=function(){var S={EOF:1,parseError:function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},setInput:function(n,o){return this.yy=o||this.yy||{},this._input=n,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 n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var o=n.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var o=n.length,i=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var t=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===h.length?this.yylloc.first_column:0)+h[h.length-i.length].length-i[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-o]),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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),o=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{M as Ut,L as zt,R as Mt,D as Ht,I as Xt,N as Jt,S as F,p as lt,O as $,j as Wt,ap as Kt}from"./index-CDwx2U7N.js";var mt=function(){var t=function(T,i,r,o){for(r=r||{},o=T.length;o--;r[T[o]]=i);return r},s=[1,2],n=[1,3],c=[1,4],p=[2,4],d=[1,9],y=[1,11],b=[1,15],u=[1,16],_=[1,17],G=[1,18],O=[1,30],j=[1,19],Y=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],J=[1,27],W=[1,28],K=[1,29],V=[1,32],q=[1,33],Q=[1,34],Z=[1,35],R=[1,31],l=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],tt=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],xt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ct={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(T,i,r,o,h,e,g){var a=e.length-1;switch(h){case 3:return o.setRootDoc(e[a]),e[a];case 4:this.$=[];break;case 5:e[a]!="nl"&&(e[a-1].push(e[a]),this.$=e[a-1]);break;case 6:case 7:this.$=e[a];break;case 8:this.$="nl";break;case 11:this.$=e[a];break;case 12:const N=e[a-1];N.description=o.trimColon(e[a]),this.$=N;break;case 13:this.$={stmt:"relation",state1:e[a-2],state2:e[a]};break;case 14:const ut=o.trimColon(e[a]);this.$={stmt:"relation",state1:e[a-3],state2:e[a-1],description:ut};break;case 18:this.$={stmt:"state",id:e[a-3],type:"default",description:"",doc:e[a-1]};break;case 19:var v=e[a],I=e[a-2].trim();if(e[a].match(":")){var et=e[a].split(":");v=et[0],I=[I,et[1]]}this.$={stmt:"state",id:v,type:"default",description:I};break;case 20:this.$={stmt:"state",id:e[a-3],type:"default",description:e[a-5],doc:e[a-1]};break;case 21:this.$={stmt:"state",id:e[a],type:"fork"};break;case 22:this.$={stmt:"state",id:e[a],type:"join"};break;case 23:this.$={stmt:"state",id:e[a],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[a-1].trim(),note:{position:e[a-2].trim(),text:e[a].trim()}};break;case 28:this.$=e[a].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[a].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[a-1].trim(),classes:e[a].trim()};break;case 33:this.$={stmt:"applyClass",id:e[a-1].trim(),styleClass:e[a].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[a].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[a-2].trim(),classes:[e[a].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[a-2].trim(),classes:[e[a].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:n,6:c},{1:[3]},{3:5,4:s,5:n,6:c},{3:6,4:s,5:n,6:c},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],p,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:W,41:K,44:V,45:q,46:Q,47:Z,50:R},t(l,[2,5]),{9:36,10:12,11:13,12:14,15:b,16:u,18:_,21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:W,41:K,44:V,45:q,46:Q,47:Z,50:R},t(l,[2,7]),t(l,[2,8]),t(l,[2,9]),t(l,[2,10]),t(l,[2,11],{13:[1,37],14:[1,38]}),t(l,[2,15]),{17:[1,39]},t(l,[2,17],{19:[1,40]}),{22:[1,41]},t(l,[2,21]),t(l,[2,22]),t(l,[2,23]),t(l,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(l,[2,27]),{33:[1,46]},{35:[1,47]},t(l,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(tt,[2,40],{51:[1,51]}),t(tt,[2,41],{51:[1,52]}),t(l,[2,34]),t(l,[2,35]),t(l,[2,36]),t(l,[2,37]),t(l,[2,6]),t(l,[2,12]),{12:53,23:O,50:R},t(l,[2,16]),t(xt,p,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(l,[2,28]),t(l,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(l,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,20:[1,64],21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:W,41:K,44:V,45:q,46:Q,47:Z,50:R},t(l,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(l,[2,31]),t(l,[2,32]),t(l,[2,33]),t(tt,[2,42]),t(tt,[2,43]),t(l,[2,14]),t(l,[2,18]),t(xt,p,{7:68}),t(l,[2,25]),t(l,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,20:[1,69],21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:W,41:K,44:V,45:q,46:Q,47:Z,50:R},t(l,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(T,i){if(i.recoverable)this.trace(T);else{var r=new Error(T);throw r.hash=i,r}},parse:function(T){var i=this,r=[0],o=[],h=[null],e=[],g=this.table,a="",v=0,I=0,et=2,N=1,ut=e.slice.call(arguments,1),f=Object.create(this.lexer),C={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(C.yy[dt]=this.yy[dt]);f.setInput(T,C.yy),C.yy.lexer=f,C.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var pt=f.yylloc;e.push(pt);var jt=f.options&&f.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Yt(){var x;return x=o.pop()||f.lex()||N,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=i.symbols_[x]||x),x}for(var S,D,k,yt,L={},st,E,$t,it;;){if(D=r[r.length-1],this.defaultActions[D]?k=this.defaultActions[D]:((S===null||typeof S>"u")&&(S=Yt()),k=g[D]&&g[D][S]),typeof k>"u"||!k.length||!k[0]){var ft="";it=[];for(st in g[D])this.terminals_[st]&&st>et&&it.push("'"+this.terminals_[st]+"'");f.showPosition?ft="Parse error on line "+(v+1)+`:
1
+ import{M as Ut,L as zt,R as Mt,D as Ht,I as Xt,N as Jt,S as F,p as lt,O as $,j as Wt,ap as Kt}from"./index-CVRNWcf-.js";var mt=function(){var t=function(T,i,r,o){for(r=r||{},o=T.length;o--;r[T[o]]=i);return r},s=[1,2],n=[1,3],c=[1,4],p=[2,4],d=[1,9],y=[1,11],b=[1,15],u=[1,16],_=[1,17],G=[1,18],O=[1,30],j=[1,19],Y=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],J=[1,27],W=[1,28],K=[1,29],V=[1,32],q=[1,33],Q=[1,34],Z=[1,35],R=[1,31],l=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],tt=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],xt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ct={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(T,i,r,o,h,e,g){var a=e.length-1;switch(h){case 3:return o.setRootDoc(e[a]),e[a];case 4:this.$=[];break;case 5:e[a]!="nl"&&(e[a-1].push(e[a]),this.$=e[a-1]);break;case 6:case 7:this.$=e[a];break;case 8:this.$="nl";break;case 11:this.$=e[a];break;case 12:const N=e[a-1];N.description=o.trimColon(e[a]),this.$=N;break;case 13:this.$={stmt:"relation",state1:e[a-2],state2:e[a]};break;case 14:const ut=o.trimColon(e[a]);this.$={stmt:"relation",state1:e[a-3],state2:e[a-1],description:ut};break;case 18:this.$={stmt:"state",id:e[a-3],type:"default",description:"",doc:e[a-1]};break;case 19:var v=e[a],I=e[a-2].trim();if(e[a].match(":")){var et=e[a].split(":");v=et[0],I=[I,et[1]]}this.$={stmt:"state",id:v,type:"default",description:I};break;case 20:this.$={stmt:"state",id:e[a-3],type:"default",description:e[a-5],doc:e[a-1]};break;case 21:this.$={stmt:"state",id:e[a],type:"fork"};break;case 22:this.$={stmt:"state",id:e[a],type:"join"};break;case 23:this.$={stmt:"state",id:e[a],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[a-1].trim(),note:{position:e[a-2].trim(),text:e[a].trim()}};break;case 28:this.$=e[a].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[a].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[a-1].trim(),classes:e[a].trim()};break;case 33:this.$={stmt:"applyClass",id:e[a-1].trim(),styleClass:e[a].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[a].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[a-2].trim(),classes:[e[a].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[a-2].trim(),classes:[e[a].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:n,6:c},{1:[3]},{3:5,4:s,5:n,6:c},{3:6,4:s,5:n,6:c},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],p,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:W,41:K,44:V,45:q,46:Q,47:Z,50:R},t(l,[2,5]),{9:36,10:12,11:13,12:14,15:b,16:u,18:_,21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:W,41:K,44:V,45:q,46:Q,47:Z,50:R},t(l,[2,7]),t(l,[2,8]),t(l,[2,9]),t(l,[2,10]),t(l,[2,11],{13:[1,37],14:[1,38]}),t(l,[2,15]),{17:[1,39]},t(l,[2,17],{19:[1,40]}),{22:[1,41]},t(l,[2,21]),t(l,[2,22]),t(l,[2,23]),t(l,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(l,[2,27]),{33:[1,46]},{35:[1,47]},t(l,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(tt,[2,40],{51:[1,51]}),t(tt,[2,41],{51:[1,52]}),t(l,[2,34]),t(l,[2,35]),t(l,[2,36]),t(l,[2,37]),t(l,[2,6]),t(l,[2,12]),{12:53,23:O,50:R},t(l,[2,16]),t(xt,p,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(l,[2,28]),t(l,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(l,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,20:[1,64],21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:W,41:K,44:V,45:q,46:Q,47:Z,50:R},t(l,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(l,[2,31]),t(l,[2,32]),t(l,[2,33]),t(tt,[2,42]),t(tt,[2,43]),t(l,[2,14]),t(l,[2,18]),t(xt,p,{7:68}),t(l,[2,25]),t(l,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,20:[1,69],21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:W,41:K,44:V,45:q,46:Q,47:Z,50:R},t(l,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(T,i){if(i.recoverable)this.trace(T);else{var r=new Error(T);throw r.hash=i,r}},parse:function(T){var i=this,r=[0],o=[],h=[null],e=[],g=this.table,a="",v=0,I=0,et=2,N=1,ut=e.slice.call(arguments,1),f=Object.create(this.lexer),C={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(C.yy[dt]=this.yy[dt]);f.setInput(T,C.yy),C.yy.lexer=f,C.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var pt=f.yylloc;e.push(pt);var jt=f.options&&f.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Yt(){var x;return x=o.pop()||f.lex()||N,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=i.symbols_[x]||x),x}for(var S,D,k,yt,L={},st,E,$t,it;;){if(D=r[r.length-1],this.defaultActions[D]?k=this.defaultActions[D]:((S===null||typeof S>"u")&&(S=Yt()),k=g[D]&&g[D][S]),typeof k>"u"||!k.length||!k[0]){var ft="";it=[];for(st in g[D])this.terminals_[st]&&st>et&&it.push("'"+this.terminals_[st]+"'");f.showPosition?ft="Parse error on line "+(v+1)+`:
2
2
  `+f.showPosition()+`
3
3
  Expecting `+it.join(", ")+", got '"+(this.terminals_[S]||S)+"'":ft="Parse error on line "+(v+1)+": Unexpected "+(S==N?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(ft,{text:f.match,token:this.terminals_[S]||S,line:f.yylineno,loc:pt,expected:it})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+S);switch(k[0]){case 1:r.push(S),h.push(f.yytext),e.push(f.yylloc),r.push(k[1]),S=null,I=f.yyleng,a=f.yytext,v=f.yylineno,pt=f.yylloc;break;case 2:if(E=this.productions_[k[1]][1],L.$=h[h.length-E],L._$={first_line:e[e.length-(E||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(E||1)].first_column,last_column:e[e.length-1].last_column},jt&&(L._$.range=[e[e.length-(E||1)].range[0],e[e.length-1].range[1]]),yt=this.performAction.apply(L,[a,I,v,C.yy,k[1],h,e].concat(ut)),typeof yt<"u")return yt;E&&(r=r.slice(0,-1*E*2),h=h.slice(0,-1*E),e=e.slice(0,-1*E)),r.push(this.productions_[k[1]][0]),h.push(L.$),e.push(L._$),$t=g[r[r.length-2]][r[r.length-1]],r.push($t);break;case 3:return!0}}return!0}},Gt=function(){var T={EOF:1,parseError:function(i,r){if(this.yy.parser)this.yy.parser.parseError(i,r);else throw new Error(i)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===h.length?this.yylloc.first_column:0)+h[h.length-o.length].length-o[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-r]),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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{o as q,O as g,S as v,F as _,u as G,k as M,b as A,c as C,d as E,g as j,p as I,v as V,h as z,i as R,Y as K,E as U,s as Y}from"./index-CDwx2U7N.js";import{K as J}from"./graph-BZahQKIN-CTgzd5us.js";import{b as W}from"./index-5325376f-DsNDppci-BaFeDo3U.js";import{t as X}from"./channel-6PI3wNcc-1exBkyGg.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([K(e)],R)}function de(e,o){return!!e.children(o).length}function pe(e){return B(e.v)+":"+B(e.w)+":"+B(e.name)}var H=/:/g;function B(e){return e?String(e).replace(H,"\\:"):""}function Q(e,o){o&&e.attr("style",o)}function be(e,o,c){o&&e.attr("class",o).attr("class",c+" "+e.attr("class"))}function we(e,o){var c=o.graph();if(U(c)){var l=c.transition;if(Y(l))return l(e)}return e}function ee(e,o){var c=e.append("foreignObject").attr("width","100000"),l=c.append("xhtml:div");l.attr("xmlns","http://www.w3.org/1999/xhtml");var i=o.label;switch(typeof i){case"function":l.insert(i);break;case"object":l.insert(function(){return i});break;default:l.html(i)}Q(l,o.labelStyle),l.style("display","inline-block"),l.style("white-space","nowrap");var p=l.node().getBoundingClientRect();return c.attr("width",p.width).attr("height",p.height),c}const O={},te=function(e){const o=Object.keys(e);for(const c of o)O[c]=e[c]},F=async function(e,o,c,l,i,p){const u=l.select(`[id="${c}"]`),n=Object.keys(e);for(const b of n){const r=e[b];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const f=A(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(V(v().flowchart.htmlLabels))s=ee(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",f.labelStyle.replace("color:","fill:"));const T=t.split(I.lineBreakRegex);for(const $ of T){const d=i.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.setAttribute("dy","1em"),d.setAttribute("x","1"),d.textContent=$,k.appendChild(d)}s=k}let w=0,a="";switch(r.type){case"round":w=5,a="rect";break;case"square":a="rect";break;case"diamond":a="question";break;case"hexagon":a="hexagon";break;case"odd":a="rect_left_inv_arrow";break;case"lean_right":a="lean_right";break;case"lean_left":a="lean_left";break;case"trapezoid":a="trapezoid";break;case"inv_trapezoid":a="inv_trapezoid";break;case"odd_right":a="rect_left_inv_arrow";break;case"circle":a="circle";break;case"ellipse":a="ellipse";break;case"stadium":a="stadium";break;case"subroutine":a="subroutine";break;case"cylinder":a="cylinder";break;case"group":a="rect";break;case"doublecircle":a="doublecircle";break;default:a="rect"}const S=await j(t,v());o.setNode(r.id,{labelStyle:f.labelStyle,shape:a,labelText:S,labelType:r.labelType,rx:w,ry:w,class:y,style:f.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:p.db.getTooltip(r.id)||"",domId:p.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:v().flowchart.padding}),g.info("setNode",{labelStyle:f.labelStyle,labelType:r.labelType,shape:a,labelText:S,rx:w,ry:w,class:y,style:f.style,id:r.id,domId:p.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:v().flowchart.padding})}},P=async function(e,o,c){g.info("abc78 edges = ",e);let l=0,i={},p,u;if(e.defaultStyle!==void 0){const n=A(e.defaultStyle);p=n.style,u=n.labelStyle}for(const n of e){l++;const b="L-"+n.start+"-"+n.end;i[b]===void 0?(i[b]=0,g.info("abc78 new entry",b,i[b])):(i[b]++,g.info("abc78 new entry",b,i[b]));let r=b+"-"+i[b];g.info("abc78 new link id to be used is",b,r,i[b]);const y="LS-"+n.start,f="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",w="";switch(n.stroke){case"normal":s="fill:none;",p!==void 0&&(s=p),u!==void 0&&(w=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const a=A(n.style);s=a.style,w=a.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=w,n.interpolate!==void 0?t.curve=C(n.interpolate,E):e.defaultInterpolate!==void 0?t.curve=C(e.defaultInterpolate,E):t.curve=C(O.curve,E),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await j(n.text.replace(I.lineBreakRegex,`
1
+ import{o as q,O as g,S as v,F as _,u as G,k as M,b as A,c as C,d as E,g as j,p as I,v as V,h as z,i as R,Y as K,E as U,s as Y}from"./index-CVRNWcf-.js";import{K as J}from"./graph-BZahQKIN-CenQ9kLM.js";import{b as W}from"./index-5325376f-DsNDppci-BmtId_7h.js";import{t as X}from"./channel-6PI3wNcc-BxckuQvX.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([K(e)],R)}function de(e,o){return!!e.children(o).length}function pe(e){return B(e.v)+":"+B(e.w)+":"+B(e.name)}var H=/:/g;function B(e){return e?String(e).replace(H,"\\:"):""}function Q(e,o){o&&e.attr("style",o)}function be(e,o,c){o&&e.attr("class",o).attr("class",c+" "+e.attr("class"))}function we(e,o){var c=o.graph();if(U(c)){var l=c.transition;if(Y(l))return l(e)}return e}function ee(e,o){var c=e.append("foreignObject").attr("width","100000"),l=c.append("xhtml:div");l.attr("xmlns","http://www.w3.org/1999/xhtml");var i=o.label;switch(typeof i){case"function":l.insert(i);break;case"object":l.insert(function(){return i});break;default:l.html(i)}Q(l,o.labelStyle),l.style("display","inline-block"),l.style("white-space","nowrap");var p=l.node().getBoundingClientRect();return c.attr("width",p.width).attr("height",p.height),c}const O={},te=function(e){const o=Object.keys(e);for(const c of o)O[c]=e[c]},F=async function(e,o,c,l,i,p){const u=l.select(`[id="${c}"]`),n=Object.keys(e);for(const b of n){const r=e[b];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const f=A(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(V(v().flowchart.htmlLabels))s=ee(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",f.labelStyle.replace("color:","fill:"));const T=t.split(I.lineBreakRegex);for(const $ of T){const d=i.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.setAttribute("dy","1em"),d.setAttribute("x","1"),d.textContent=$,k.appendChild(d)}s=k}let w=0,a="";switch(r.type){case"round":w=5,a="rect";break;case"square":a="rect";break;case"diamond":a="question";break;case"hexagon":a="hexagon";break;case"odd":a="rect_left_inv_arrow";break;case"lean_right":a="lean_right";break;case"lean_left":a="lean_left";break;case"trapezoid":a="trapezoid";break;case"inv_trapezoid":a="inv_trapezoid";break;case"odd_right":a="rect_left_inv_arrow";break;case"circle":a="circle";break;case"ellipse":a="ellipse";break;case"stadium":a="stadium";break;case"subroutine":a="subroutine";break;case"cylinder":a="cylinder";break;case"group":a="rect";break;case"doublecircle":a="doublecircle";break;default:a="rect"}const S=await j(t,v());o.setNode(r.id,{labelStyle:f.labelStyle,shape:a,labelText:S,labelType:r.labelType,rx:w,ry:w,class:y,style:f.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:p.db.getTooltip(r.id)||"",domId:p.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:v().flowchart.padding}),g.info("setNode",{labelStyle:f.labelStyle,labelType:r.labelType,shape:a,labelText:S,rx:w,ry:w,class:y,style:f.style,id:r.id,domId:p.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:v().flowchart.padding})}},P=async function(e,o,c){g.info("abc78 edges = ",e);let l=0,i={},p,u;if(e.defaultStyle!==void 0){const n=A(e.defaultStyle);p=n.style,u=n.labelStyle}for(const n of e){l++;const b="L-"+n.start+"-"+n.end;i[b]===void 0?(i[b]=0,g.info("abc78 new entry",b,i[b])):(i[b]++,g.info("abc78 new entry",b,i[b]));let r=b+"-"+i[b];g.info("abc78 new link id to be used is",b,r,i[b]);const y="LS-"+n.start,f="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",w="";switch(n.stroke){case"normal":s="fill:none;",p!==void 0&&(s=p),u!==void 0&&(w=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const a=A(n.style);s=a.style,w=a.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=w,n.interpolate!==void 0?t.curve=C(n.interpolate,E):e.defaultInterpolate!==void 0?t.curve=C(e.defaultInterpolate,E):t.curve=C(O.curve,E),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await j(n.text.replace(I.lineBreakRegex,`
2
2
  `),v()),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+y+" "+f,o.setEdge(n.start,n.end,t,l)}},re=function(e,o){return o.db.getClasses()},oe=async function(e,o,c,l){g.info("Drawing flowchart");let i=l.db.getDirection();i===void 0&&(i="TD");const{securityLevel:p,flowchart:u}=v(),n=u.nodeSpacing||50,b=u.rankSpacing||50;let r;p==="sandbox"&&(r=_("#i"+o));const y=p==="sandbox"?_(r.nodes()[0].contentDocument.body):_("body"),f=p==="sandbox"?r.nodes()[0].contentDocument:document,t=new J({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:b,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const w=l.db.getSubGraphs();g.info("Subgraphs - ",w);for(let d=w.length-1;d>=0;d--)s=w[d],g.info("Subgraph - ",s),l.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const a=l.db.getVertices(),S=l.db.getEdges();g.info("Edges",S);let k=0;for(k=w.length-1;k>=0;k--){s=w[k],Z("cluster").append("text");for(let d=0;d<s.nodes.length;d++)g.info("Setting up subgraphs",s.nodes[d],s.id),t.setParent(s.nodes[d],s.id)}await F(a,t,o,y,f,l),await P(S,t);const T=y.select(`[id="${o}"]`),$=y.select("#"+o+" g");if(await W($,t,["point","circle","cross"],"flowchart",o),G.insertTitle(T,"flowchartTitleText",u.titleTopMargin,l.db.getDiagramTitle()),M(t,T,u.diagramPadding,u.useMaxWidth),l.db.indexNodes("subGraph"+k),!u.htmlLabels){const d=f.querySelectorAll('[id="'+o+'"] .edgeLabel .label');for(const x of d){const m=x.getBBox(),h=f.createElementNS("http://www.w3.org/2000/svg","rect");h.setAttribute("rx",0),h.setAttribute("ry",0),h.setAttribute("width",m.width),h.setAttribute("height",m.height),x.insertBefore(h,x.firstChild)}}Object.keys(a).forEach(function(d){const x=a[d];if(x.link){const m=_("#"+o+' [id="'+d+'"]');if(m){const h=f.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"),p==="sandbox"?h.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):x.linkTarget&&h.setAttributeNS("http://www.w3.org/2000/svg","target",x.linkTarget);const L=m.insert(function(){return h},":first-child"),N=m.select(".label-container");N&&L.append(function(){return N.node()});const D=m.select(".label");D&&L.append(function(){return D.node()})}}})},ue={setConf:te,addVertices:F,addEdges:P,getClasses:re,draw:oe},le=(e,o)=>{const c=X,l=c(e,"r"),i=c(e,"g"),p=c(e,"b");return q(l,i,p,o)},ae=e=>`.label {
3
3
  font-family: ${e.fontFamily};
4
4
  color: ${e.nodeTextColor||e.textColor};
@@ -1 +1 @@
1
- import{aH as o,T as i}from"./index-CDwx2U7N.js";const x=(e,t)=>{const 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),t.name&&r.attr("name",t.name),t.rx!==void 0&&r.attr("rx",t.rx),t.ry!==void 0&&r.attr("ry",t.ry),t.attrs!==void 0)for(const a in t.attrs)r.attr(a,t.attrs[a]);return t.class!==void 0&&r.attr("class",t.class),r},c=(e,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(e,r).lower()},h=(e,t)=>{const r=t.text.replace(o," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),a},y=(e,t,r,a)=>{const s=e.append("image");s.attr("x",t),s.attr("y",r);const n=i.sanitizeUrl(a);s.attr("xlink:href",n)},p=(e,t,r,a)=>{const s=e.append("use");s.attr("x",t),s.attr("y",r);const n=i.sanitizeUrl(a);s.attr("xlink:href",`#${n}`)},d=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),f=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{h as d,f as g,y as h,x as l,d as p,c as x,p as y};
1
+ import{aH as o,T as i}from"./index-CVRNWcf-.js";const x=(e,t)=>{const 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),t.name&&r.attr("name",t.name),t.rx!==void 0&&r.attr("rx",t.rx),t.ry!==void 0&&r.attr("ry",t.ry),t.attrs!==void 0)for(const a in t.attrs)r.attr(a,t.attrs[a]);return t.class!==void 0&&r.attr("class",t.class),r},c=(e,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(e,r).lower()},h=(e,t)=>{const r=t.text.replace(o," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),a},y=(e,t,r,a)=>{const s=e.append("image");s.attr("x",t),s.attr("y",r);const n=i.sanitizeUrl(a);s.attr("xlink:href",n)},p=(e,t,r,a)=>{const s=e.append("use");s.attr("x",t),s.attr("y",r);const n=i.sanitizeUrl(a);s.attr("xlink:href",`#${n}`)},d=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),f=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{h as d,f as g,y as h,x as l,d as p,c as x,p as y};
@@ -1,4 +1,4 @@
1
- import{aL as yt,aM as gt,aN as ft,S as mt,O as w,F as R,k as xt,aO as _t,j as kt}from"./index-CDwx2U7N.js";import{h as Z}from"./arc-CvECY7sY-BAfm7gAl.js";var Q=function(){var n=function(m,i,o,l){for(o=o||{},l=m.length;l--;o[m[l]]=i);return o},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],s=[1,10],r=[1,11],a=[1,12],h=[1,13],u=[1,16],y=[1,17],g={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(m,i,o,l,d,c,x){var _=c.length-1;switch(d){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:l.getCommonDb().setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),l.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),l.getCommonDb().setAccDescription(this.$);break;case 12:l.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 15:l.addTask(c[_],0,""),this.$=c[_];break;case 16:l.addEvent(c[_].substr(2)),this.$=c[_];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:s,14:r,16:a,17:h,18:14,19:15,20:u,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:s,14:r,16:a,17:h,18:14,19:15,20:u,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(m,i){if(i.recoverable)this.trace(m);else{var o=new Error(m);throw o.hash=i,o}},parse:function(m){var i=this,o=[0],l=[],d=[null],c=[],x=this.table,_="",$=0,D=0,O=2,A=1,F=c.slice.call(arguments,1),f=Object.create(this.lexer),k={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(k.yy[E]=this.yy[E]);f.setInput(m,k.yy),k.yy.lexer=f,k.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var I=f.yylloc;c.push(I);var z=f.options&&f.options.ranges;typeof k.yy.parseError=="function"?this.parseError=k.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function H(){var T;return T=l.pop()||f.lex()||A,typeof T!="number"&&(T instanceof Array&&(l=T,T=l.pop()),T=i.symbols_[T]||T),T}for(var v,C,S,U,L={},W,M,Y,B;;){if(C=o[o.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((v===null||typeof v>"u")&&(v=H()),S=x[C]&&x[C][v]),typeof S>"u"||!S.length||!S[0]){var G="";B=[];for(W in x[C])this.terminals_[W]&&W>O&&B.push("'"+this.terminals_[W]+"'");f.showPosition?G="Parse error on line "+($+1)+`:
1
+ import{aL as yt,aM as gt,aN as ft,S as mt,O as w,F as R,k as xt,aO as _t,j as kt}from"./index-CVRNWcf-.js";import{h as Z}from"./arc-CvECY7sY-CCUjLJq2.js";var Q=function(){var n=function(m,i,o,l){for(o=o||{},l=m.length;l--;o[m[l]]=i);return o},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],s=[1,10],r=[1,11],a=[1,12],h=[1,13],u=[1,16],y=[1,17],g={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(m,i,o,l,d,c,x){var _=c.length-1;switch(d){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:l.getCommonDb().setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),l.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),l.getCommonDb().setAccDescription(this.$);break;case 12:l.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 15:l.addTask(c[_],0,""),this.$=c[_];break;case 16:l.addEvent(c[_].substr(2)),this.$=c[_];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:s,14:r,16:a,17:h,18:14,19:15,20:u,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:s,14:r,16:a,17:h,18:14,19:15,20:u,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(m,i){if(i.recoverable)this.trace(m);else{var o=new Error(m);throw o.hash=i,o}},parse:function(m){var i=this,o=[0],l=[],d=[null],c=[],x=this.table,_="",$=0,D=0,O=2,A=1,F=c.slice.call(arguments,1),f=Object.create(this.lexer),k={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(k.yy[E]=this.yy[E]);f.setInput(m,k.yy),k.yy.lexer=f,k.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var I=f.yylloc;c.push(I);var z=f.options&&f.options.ranges;typeof k.yy.parseError=="function"?this.parseError=k.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function H(){var T;return T=l.pop()||f.lex()||A,typeof T!="number"&&(T instanceof Array&&(l=T,T=l.pop()),T=i.symbols_[T]||T),T}for(var v,C,S,U,L={},W,M,Y,B;;){if(C=o[o.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((v===null||typeof v>"u")&&(v=H()),S=x[C]&&x[C][v]),typeof S>"u"||!S.length||!S[0]){var G="";B=[];for(W in x[C])this.terminals_[W]&&W>O&&B.push("'"+this.terminals_[W]+"'");f.showPosition?G="Parse error on line "+($+1)+`:
2
2
  `+f.showPosition()+`
3
3
  Expecting `+B.join(", ")+", got '"+(this.terminals_[v]||v)+"'":G="Parse error on line "+($+1)+": Unexpected "+(v==A?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(G,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:I,expected:B})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+v);switch(S[0]){case 1:o.push(v),d.push(f.yytext),c.push(f.yylloc),o.push(S[1]),v=null,D=f.yyleng,_=f.yytext,$=f.yylineno,I=f.yylloc;break;case 2:if(M=this.productions_[S[1]][1],L.$=d[d.length-M],L._$={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},z&&(L._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),U=this.performAction.apply(L,[_,D,$,k.yy,S[1],d,c].concat(F)),typeof U<"u")return U;M&&(o=o.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),o.push(this.productions_[S[1]][0]),d.push(L.$),c.push(L._$),Y=x[o[o.length-2]][o[o.length-1]],o.push(Y);break;case 3:return!0}}return!0}},p=function(){var m={EOF:1,parseError:function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;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),l.length-1&&(this.yylineno-=l.length-1);var c=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-o]),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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{R as Ft,D as Nt,M as At,L as Ot,N as Bt,I as Xt,O as wt,ab as Vt,J as Ut,j as Yt,ak as nt,ac as kt,af as Ht,aj as Gt,G as jt,al as xt,q as dt,e as pt}from"./index-CDwx2U7N.js";import{U as Qt}from"./createText-1719965b-D9Y3vUMn-UiwO3q8Q.js";var et=function(){var e=function(I,h,r,l){for(r=r||{},l=I.length;l--;r[I[l]]=h);return r},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],c=[1,6],g=[1,7],p=[1,5,10,12,14,16,18,19,21,23,34,35,36],y=[1,25],D=[1,26],S=[1,28],_=[1,29],P=[1,30],v=[1,31],C=[1,32],E=[1,33],d=[1,34],A=[1,35],o=[1,36],T=[1,37],N=[1,43],ot=[1,42],rt=[1,47],U=[1,50],m=[1,10,12,14,16,18,19,21,23,34,35,36],Q=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],R=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],lt=[1,64],K={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(I,h,r,l,f,a,w){var u=a.length-1;switch(f){case 5:l.setOrientation(a[u]);break;case 9:l.setDiagramTitle(a[u].text.trim());break;case 12:l.setLineData({text:"",type:"text"},a[u]);break;case 13:l.setLineData(a[u-1],a[u]);break;case 14:l.setBarData({text:"",type:"text"},a[u]);break;case 15:l.setBarData(a[u-1],a[u]);break;case 16:this.$=a[u].trim(),l.setAccTitle(this.$);break;case 17:case 18:this.$=a[u].trim(),l.setAccDescription(this.$);break;case 19:this.$=a[u-1];break;case 20:this.$=[Number(a[u-2]),...a[u]];break;case 21:this.$=[Number(a[u])];break;case 22:l.setXAxisTitle(a[u]);break;case 23:l.setXAxisTitle(a[u-1]);break;case 24:l.setXAxisTitle({type:"text",text:""});break;case 25:l.setXAxisBand(a[u]);break;case 26:l.setXAxisRangeData(Number(a[u-2]),Number(a[u]));break;case 27:this.$=a[u-1];break;case 28:this.$=[a[u-2],...a[u]];break;case 29:this.$=[a[u]];break;case 30:l.setYAxisTitle(a[u]);break;case 31:l.setYAxisTitle(a[u-1]);break;case 32:l.setYAxisTitle({type:"text",text:""});break;case 33:l.setYAxisRangeData(Number(a[u-2]),Number(a[u]));break;case 37:this.$={text:a[u],type:"text"};break;case 38:this.$={text:a[u],type:"text"};break;case 39:this.$={text:a[u],type:"markdown"};break;case 40:this.$=a[u];break;case 41:this.$=a[u-1]+""+a[u];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:c,36:g}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:c,36:g}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:c,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(p,[2,34]),e(p,[2,35]),e(p,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:c,36:g}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,34:n,35:c,36:g}),{11:23,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},{11:39,13:38,24:N,27:ot,29:40,30:41,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},{11:45,15:44,27:rt,33:46,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},{11:49,17:48,24:U,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},{11:52,17:51,24:U,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},{20:[1,53]},{22:[1,54]},e(m,[2,18]),{1:[2,2]},e(m,[2,8]),e(m,[2,9]),e(Q,[2,37],{40:55,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T}),e(Q,[2,38]),e(Q,[2,39]),e(R,[2,40]),e(R,[2,42]),e(R,[2,43]),e(R,[2,44]),e(R,[2,45]),e(R,[2,46]),e(R,[2,47]),e(R,[2,48]),e(R,[2,49]),e(R,[2,50]),e(R,[2,51]),e(m,[2,10]),e(m,[2,22],{30:41,29:56,24:N,27:ot}),e(m,[2,24]),e(m,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},e(m,[2,11]),e(m,[2,30],{33:60,27:rt}),e(m,[2,32]),{31:[1,61]},e(m,[2,12]),{17:62,24:U},{25:63,27:lt},e(m,[2,14]),{17:65,24:U},e(m,[2,16]),e(m,[2,17]),e(R,[2,41]),e(m,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(m,[2,31]),{27:[1,69]},e(m,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(m,[2,15]),e(m,[2,26]),e(m,[2,27]),{11:59,32:72,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},e(m,[2,33]),e(m,[2,19]),{25:73,27:lt},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(I,h){if(h.recoverable)this.trace(I);else{var r=new Error(I);throw r.hash=h,r}},parse:function(I){var h=this,r=[0],l=[],f=[null],a=[],w=this.table,u="",Y=0,ct=0,Mt=2,gt=1,$t=a.slice.call(arguments,1),b=Object.create(this.lexer),z={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(z.yy[J]=this.yy[J]);b.setInput(I,z.yy),z.yy.lexer=b,z.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;a.push(q);var zt=b.options&&b.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Wt(){var $;return $=l.pop()||b.lex()||gt,typeof $!="number"&&($ instanceof Array&&(l=$,$=l.pop()),$=h.symbols_[$]||$),$}for(var k,W,L,tt,F={},H,M,ut,G;;){if(W=r[r.length-1],this.defaultActions[W]?L=this.defaultActions[W]:((k===null||typeof k>"u")&&(k=Wt()),L=w[W]&&w[W][k]),typeof L>"u"||!L.length||!L[0]){var it="";G=[];for(H in w[W])this.terminals_[H]&&H>Mt&&G.push("'"+this.terminals_[H]+"'");b.showPosition?it="Parse error on line "+(Y+1)+`:
1
+ import{R as Ft,D as Nt,M as At,L as Ot,N as Bt,I as Xt,O as wt,ab as Vt,J as Ut,j as Yt,ak as nt,ac as kt,af as Ht,aj as Gt,G as jt,al as xt,q as dt,e as pt}from"./index-CVRNWcf-.js";import{U as Qt}from"./createText-1719965b-D9Y3vUMn-DDdadCK5.js";var et=function(){var e=function(I,h,r,l){for(r=r||{},l=I.length;l--;r[I[l]]=h);return r},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],c=[1,6],g=[1,7],p=[1,5,10,12,14,16,18,19,21,23,34,35,36],y=[1,25],D=[1,26],S=[1,28],_=[1,29],P=[1,30],v=[1,31],C=[1,32],E=[1,33],d=[1,34],A=[1,35],o=[1,36],T=[1,37],N=[1,43],ot=[1,42],rt=[1,47],U=[1,50],m=[1,10,12,14,16,18,19,21,23,34,35,36],Q=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],R=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],lt=[1,64],K={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(I,h,r,l,f,a,w){var u=a.length-1;switch(f){case 5:l.setOrientation(a[u]);break;case 9:l.setDiagramTitle(a[u].text.trim());break;case 12:l.setLineData({text:"",type:"text"},a[u]);break;case 13:l.setLineData(a[u-1],a[u]);break;case 14:l.setBarData({text:"",type:"text"},a[u]);break;case 15:l.setBarData(a[u-1],a[u]);break;case 16:this.$=a[u].trim(),l.setAccTitle(this.$);break;case 17:case 18:this.$=a[u].trim(),l.setAccDescription(this.$);break;case 19:this.$=a[u-1];break;case 20:this.$=[Number(a[u-2]),...a[u]];break;case 21:this.$=[Number(a[u])];break;case 22:l.setXAxisTitle(a[u]);break;case 23:l.setXAxisTitle(a[u-1]);break;case 24:l.setXAxisTitle({type:"text",text:""});break;case 25:l.setXAxisBand(a[u]);break;case 26:l.setXAxisRangeData(Number(a[u-2]),Number(a[u]));break;case 27:this.$=a[u-1];break;case 28:this.$=[a[u-2],...a[u]];break;case 29:this.$=[a[u]];break;case 30:l.setYAxisTitle(a[u]);break;case 31:l.setYAxisTitle(a[u-1]);break;case 32:l.setYAxisTitle({type:"text",text:""});break;case 33:l.setYAxisRangeData(Number(a[u-2]),Number(a[u]));break;case 37:this.$={text:a[u],type:"text"};break;case 38:this.$={text:a[u],type:"text"};break;case 39:this.$={text:a[u],type:"markdown"};break;case 40:this.$=a[u];break;case 41:this.$=a[u-1]+""+a[u];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:c,36:g}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:c,36:g}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:c,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(p,[2,34]),e(p,[2,35]),e(p,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:c,36:g}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,34:n,35:c,36:g}),{11:23,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},{11:39,13:38,24:N,27:ot,29:40,30:41,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},{11:45,15:44,27:rt,33:46,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},{11:49,17:48,24:U,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},{11:52,17:51,24:U,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},{20:[1,53]},{22:[1,54]},e(m,[2,18]),{1:[2,2]},e(m,[2,8]),e(m,[2,9]),e(Q,[2,37],{40:55,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T}),e(Q,[2,38]),e(Q,[2,39]),e(R,[2,40]),e(R,[2,42]),e(R,[2,43]),e(R,[2,44]),e(R,[2,45]),e(R,[2,46]),e(R,[2,47]),e(R,[2,48]),e(R,[2,49]),e(R,[2,50]),e(R,[2,51]),e(m,[2,10]),e(m,[2,22],{30:41,29:56,24:N,27:ot}),e(m,[2,24]),e(m,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},e(m,[2,11]),e(m,[2,30],{33:60,27:rt}),e(m,[2,32]),{31:[1,61]},e(m,[2,12]),{17:62,24:U},{25:63,27:lt},e(m,[2,14]),{17:65,24:U},e(m,[2,16]),e(m,[2,17]),e(R,[2,41]),e(m,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(m,[2,31]),{27:[1,69]},e(m,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(m,[2,15]),e(m,[2,26]),e(m,[2,27]),{11:59,32:72,37:24,38:y,39:D,40:27,41:S,42:_,43:P,44:v,45:C,46:E,47:d,48:A,49:o,50:T},e(m,[2,33]),e(m,[2,19]),{25:73,27:lt},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(I,h){if(h.recoverable)this.trace(I);else{var r=new Error(I);throw r.hash=h,r}},parse:function(I){var h=this,r=[0],l=[],f=[null],a=[],w=this.table,u="",Y=0,ct=0,Mt=2,gt=1,$t=a.slice.call(arguments,1),b=Object.create(this.lexer),z={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(z.yy[J]=this.yy[J]);b.setInput(I,z.yy),z.yy.lexer=b,z.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;a.push(q);var zt=b.options&&b.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Wt(){var $;return $=l.pop()||b.lex()||gt,typeof $!="number"&&($ instanceof Array&&(l=$,$=l.pop()),$=h.symbols_[$]||$),$}for(var k,W,L,tt,F={},H,M,ut,G;;){if(W=r[r.length-1],this.defaultActions[W]?L=this.defaultActions[W]:((k===null||typeof k>"u")&&(k=Wt()),L=w[W]&&w[W][k]),typeof L>"u"||!L.length||!L[0]){var it="";G=[];for(H in w[W])this.terminals_[H]&&H>Mt&&G.push("'"+this.terminals_[H]+"'");b.showPosition?it="Parse error on line "+(Y+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+G.join(", ")+", got '"+(this.terminals_[k]||k)+"'":it="Parse error on line "+(Y+1)+": Unexpected "+(k==gt?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(it,{text:b.match,token:this.terminals_[k]||k,line:b.yylineno,loc:q,expected:G})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+k);switch(L[0]){case 1:r.push(k),f.push(b.yytext),a.push(b.yylloc),r.push(L[1]),k=null,ct=b.yyleng,u=b.yytext,Y=b.yylineno,q=b.yylloc;break;case 2:if(M=this.productions_[L[1]][1],F.$=f[f.length-M],F._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},zt&&(F._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),tt=this.performAction.apply(F,[u,ct,Y,z.yy,L[1],f,a].concat($t)),typeof tt<"u")return tt;M&&(r=r.slice(0,-1*M*2),f=f.slice(0,-1*M),a=a.slice(0,-1*M)),r.push(this.productions_[L[1]][0]),f.push(F.$),a.push(F._$),ut=w[r[r.length-2]][r[r.length-1]],r.push(ut);break;case 3:return!0}}return!0}},It=function(){var I={EOF:1,parseError:function(h,r){if(this.yy.parser)this.yy.parser.parseError(h,r);else throw new Error(h)},setInput:function(h,r){return this.yy=r||this.yy||{},this._input=h,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 h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var r=h.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},unput:function(h){var r=h.length,l=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var f=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),l.length-1&&(this.yylineno-=l.length-1);var a=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:l?(l.length===f.length?this.yylloc.first_column:0)+f[f.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-r]),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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(h){this.unput(this.match.slice(h))},pastInput:function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var h=this.pastInput(),r=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
package/dist/index.html CHANGED
@@ -10,7 +10,7 @@
10
10
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
11
11
  }
12
12
  </style>
13
- <script type="module" crossorigin src="/assets/index-CDwx2U7N.js"></script>
13
+ <script type="module" crossorigin src="/assets/index-CVRNWcf-.js"></script>
14
14
  <link rel="stylesheet" crossorigin href="/assets/index-CITIGg-2.css">
15
15
  </head>
16
16
  <body>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "orbitchat",
3
3
  "private": false,
4
- "version": "2.1.6",
4
+ "version": "2.1.7",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "orbitchat": "./bin/orbitchat.js"
@@ -1 +0,0 @@
1
- import{b0 as t,b1 as a}from"./index-CDwx2U7N.js";const n=(o,r)=>t.lang.round(a.parse(o)[r]);export{n as t};
@@ -1 +0,0 @@
1
- import{U as o}from"./graph-BZahQKIN-CTgzd5us.js";var t=4;function n(r){return o(r,t)}export{n as a};
@@ -1 +0,0 @@
1
- import{j as o,X as e}from"./flowDb-c6c81e3f-DXVkMlSE-DRQM6L-v.js";import{h as a,w as t}from"./styles-d45a18b0-B_CU21kM--NwLlmWK.js";import{f as s}from"./index-CDwx2U7N.js";import"./graph-BZahQKIN-CTgzd5us.js";import"./layout-j-hMNqAM-C88IAVJC.js";import"./index-5325376f-DsNDppci-BaFeDo3U.js";import"./clone-D01vUIhD-D0aslzw6.js";import"./edges-96097737-Zc6U9nQz-Czq3--42.js";import"./createText-1719965b-D9Y3vUMn-UiwO3q8Q.js";import"./channel-6PI3wNcc-1exBkyGg.js";const k={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,s({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{k as diagram};