@wandox/sdk 0.1.32 → 0.1.34
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.
- package/README.md +6 -2
- package/dist/{arc-CioPTVlR.js → arc-D0KfcB3y.js} +1 -1
- package/dist/{arc-D3DbHFp3.cjs → arc-DtBHZfqY.cjs} +1 -1
- package/dist/{architectureDiagram-3BPJPVTR-DxudWzpN.cjs → architectureDiagram-3BPJPVTR-C2P4Wdju.cjs} +1 -1
- package/dist/{architectureDiagram-3BPJPVTR-Ca6Rglif.js → architectureDiagram-3BPJPVTR-VUz_J4KY.js} +3 -3
- package/dist/{blockDiagram-GPEHLZMM-Yn5xixU8.cjs → blockDiagram-GPEHLZMM-DyKZmQ5w.cjs} +1 -1
- package/dist/{blockDiagram-GPEHLZMM-ChXtK3M_.js → blockDiagram-GPEHLZMM-HQFLyzc_.js} +3 -3
- package/dist/{c4Diagram-AAUBKEIU-Da9pYrIH.js → c4Diagram-AAUBKEIU-DH1AHWgW.js} +2 -2
- package/dist/{c4Diagram-AAUBKEIU-DrzPSMNU.cjs → c4Diagram-AAUBKEIU-TV86wAk4.cjs} +1 -1
- package/dist/{channel-DbhX4bkx.cjs → channel-AJpjl4EL.cjs} +1 -1
- package/dist/{channel-lhgg4d-Z.js → channel-BlVX_pqv.js} +1 -1
- package/dist/{chunk-2J33WTMH-BD0Wesfp.cjs → chunk-2J33WTMH-B3QEVdxo.cjs} +1 -1
- package/dist/{chunk-2J33WTMH-2ChKkOqa.js → chunk-2J33WTMH-t0efBHaF.js} +1 -1
- package/dist/{chunk-4BX2VUAB-BHR93RDh.cjs → chunk-4BX2VUAB-B3PBOdBd.cjs} +1 -1
- package/dist/{chunk-4BX2VUAB-7mSXeK96.js → chunk-4BX2VUAB-B6_TK6LC.js} +1 -1
- package/dist/{chunk-55IACEB6-BTuQ65Ck.js → chunk-55IACEB6-Dn6M7DjU.js} +1 -1
- package/dist/{chunk-55IACEB6-BH_OU6H_.cjs → chunk-55IACEB6-DrbqgVSi.cjs} +1 -1
- package/dist/{chunk-727SXJPM-BnccE2nF.cjs → chunk-727SXJPM-BxPLhhtr.cjs} +1 -1
- package/dist/{chunk-727SXJPM-15eoo_Jp.js → chunk-727SXJPM-CZZ8vzvu.js} +5 -5
- package/dist/{chunk-AQP2D5EJ-Bo9qEj7F.js → chunk-AQP2D5EJ-B5tlMkxW.js} +3 -3
- package/dist/{chunk-AQP2D5EJ-lO8iIlJc.cjs → chunk-AQP2D5EJ-DEFjJjvF.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-CyMUdtfG.cjs → chunk-FMBD7UC4-gFc5W2fF.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-CNcIY-Tp.js → chunk-FMBD7UC4-rlodMWnO.js} +1 -1
- package/dist/{chunk-ND2GUHAM-cpaA7UYQ.cjs → chunk-ND2GUHAM-B9qs3P-w.cjs} +1 -1
- package/dist/{chunk-ND2GUHAM-D4a94ENo.js → chunk-ND2GUHAM-dJ5LgRGw.js} +1 -1
- package/dist/{chunk-QZHKN3VN-R0vs-DGO.js → chunk-QZHKN3VN-ChUvXVo2.js} +1 -1
- package/dist/{chunk-QZHKN3VN-Co-kjbN3.cjs → chunk-QZHKN3VN-D25PBsy4.cjs} +1 -1
- package/dist/{classDiagram-4FO5ZUOK-CbqKWjnE.js → classDiagram-4FO5ZUOK-CPy1KaCR.js} +2 -2
- package/dist/{classDiagram-4FO5ZUOK-D1axqCjS.cjs → classDiagram-4FO5ZUOK-wFEmQFl-.cjs} +1 -1
- package/dist/{classDiagram-v2-Q7XG4LA2-sFqdEE1I.js → classDiagram-v2-Q7XG4LA2-CSZEPTC6.js} +2 -2
- package/dist/{classDiagram-v2-Q7XG4LA2-D1axqCjS.cjs → classDiagram-v2-Q7XG4LA2-wFEmQFl-.cjs} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-xVCpwGiF.cjs → cose-bilkent-S5V4N54A-C4j5j5T6.cjs} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-0mQl6Vf3.js → cose-bilkent-S5V4N54A-uRPNkg7E.js} +2 -2
- package/dist/{dagre-BM42HDAG-CoW4kJ-S.cjs → dagre-BM42HDAG-C--V1vcV.cjs} +1 -1
- package/dist/{dagre-BM42HDAG-BzUwXIpn.js → dagre-BM42HDAG-Iv0znKTe.js} +1 -1
- package/dist/{diagram-2AECGRRQ-1lKx7yON.js → diagram-2AECGRRQ-BSOkNy0d.js} +2 -2
- package/dist/{diagram-2AECGRRQ-NYDVOLPV.cjs → diagram-2AECGRRQ-DgTZEGRd.cjs} +1 -1
- package/dist/{diagram-5GNKFQAL-Dazq-bYh.js → diagram-5GNKFQAL-C91PObIK.js} +3 -3
- package/dist/{diagram-5GNKFQAL-bUagQsKx.cjs → diagram-5GNKFQAL-D5Mkr0VI.cjs} +1 -1
- package/dist/{diagram-KO2AKTUF-D2qkXjsL.cjs → diagram-KO2AKTUF-Bg-zssV4.cjs} +1 -1
- package/dist/{diagram-KO2AKTUF-CLmczKft.js → diagram-KO2AKTUF-CAH3eDcz.js} +2 -2
- package/dist/{diagram-LMA3HP47-BGSEnaOB.cjs → diagram-LMA3HP47-SMfJTnR5.cjs} +1 -1
- package/dist/{diagram-LMA3HP47-CELNhpuN.js → diagram-LMA3HP47-hOSm9f_K.js} +2 -2
- package/dist/{diagram-OG6HWLK6-Ch4tCuzD.js → diagram-OG6HWLK6-B-QlPomq.js} +3 -3
- package/dist/{diagram-OG6HWLK6-ehL7z21j.cjs → diagram-OG6HWLK6-DNEN_x2d.cjs} +1 -1
- package/dist/{erDiagram-TEJ5UH35-BUt_0_3y.cjs → erDiagram-TEJ5UH35-CG6J3vIN.cjs} +1 -1
- package/dist/{erDiagram-TEJ5UH35-4iEaO2FZ.js → erDiagram-TEJ5UH35-CmiMTzqm.js} +4 -4
- package/dist/{flowDiagram-I6XJVG4X-CnL9TmJ4.js → flowDiagram-I6XJVG4X-B-oB1PyG.js} +6 -6
- package/dist/{flowDiagram-I6XJVG4X-l_OuhLDt.cjs → flowDiagram-I6XJVG4X-BODLJZMQ.cjs} +1 -1
- package/dist/{ganttDiagram-6RSMTGT7-Deo05MSP.js → ganttDiagram-6RSMTGT7-4H-Azqhw.js} +3 -3
- package/dist/{ganttDiagram-6RSMTGT7-B9KlRuUy.cjs → ganttDiagram-6RSMTGT7-kGQE-0fY.cjs} +1 -1
- package/dist/{gitGraphDiagram-PVQCEYII-D5Km92vZ.cjs → gitGraphDiagram-PVQCEYII-Dj601cg2.cjs} +1 -1
- package/dist/{gitGraphDiagram-PVQCEYII-C0z4BKW0.js → gitGraphDiagram-PVQCEYII-ZKxubOBO.js} +3 -3
- package/dist/{index-BP1prynY.cjs → index-5xbDqXDX.cjs} +1 -1
- package/dist/{index-CqTYX11s.cjs → index-BPJc-VZw.cjs} +265 -265
- package/dist/{index-2p6OpkKo.cjs → index-BUHRhy1Y.cjs} +1 -1
- package/dist/{index-Cq00yE0b.js → index-BXVFHGjy.js} +4 -4
- package/dist/{index-Ba5zI0ll.js → index-B_nZ3LrV.js} +333 -331
- package/dist/{index-C2s6emQt.cjs → index-D3SW2cEr.cjs} +1 -1
- package/dist/{index-qxfBoy6M.js → index-D4dy8yHF.js} +25054 -24913
- package/dist/{index-6AGyZRc4.js → index-DkJpASom.js} +1 -1
- package/dist/{index-DG-vw0s1.cjs → index-DwVmVXmF.cjs} +2 -2
- package/dist/{index-CE_9sUtt.js → index-q34Z4QAw.js} +3 -3
- package/dist/{infoDiagram-5YYISTIA-BIOX1rtb.cjs → infoDiagram-5YYISTIA-CfJwXJqb.cjs} +1 -1
- package/dist/{infoDiagram-5YYISTIA-BagRF4_4.js → infoDiagram-5YYISTIA-mdLUb8Pf.js} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-DqBoe_NW.cjs → ishikawaDiagram-YF4QCWOH-BSPYHzHI.cjs} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-BQ8d0OVU.js → ishikawaDiagram-YF4QCWOH-CfS3BeT3.js} +1 -1
- package/dist/{journeyDiagram-JHISSGLW-B1rwd3zj.js → journeyDiagram-JHISSGLW-DUwZdGOg.js} +4 -4
- package/dist/{journeyDiagram-JHISSGLW-CszD79nr.cjs → journeyDiagram-JHISSGLW-nnM-h5QJ.cjs} +1 -1
- package/dist/{kanban-definition-UN3LZRKU-Dh0PCb4D.js → kanban-definition-UN3LZRKU-BtP29Iaf.js} +2 -2
- package/dist/{kanban-definition-UN3LZRKU-OBkVJz6T.cjs → kanban-definition-UN3LZRKU-Dt1TxPqZ.cjs} +1 -1
- package/dist/{linear-C_UIfrsT.cjs → linear-Bj7ETfty.cjs} +1 -1
- package/dist/{linear-zqWKeem9.js → linear-DZDNy162.js} +1 -1
- package/dist/{mermaid.core-BBvOg7Qw.cjs → mermaid.core-BTaTUIUu.cjs} +3 -3
- package/dist/{mermaid.core-B6KyHfvP.js → mermaid.core-Cc1KxlCM.js} +35 -35
- package/dist/{mindmap-definition-RKZ34NQL-DNUeY8GU.cjs → mindmap-definition-RKZ34NQL-Cf0zrR9M.cjs} +1 -1
- package/dist/{mindmap-definition-RKZ34NQL-DxdoIxDJ.js → mindmap-definition-RKZ34NQL-DZH26qfU.js} +3 -3
- package/dist/{pieDiagram-4H26LBE5-D-cxRy5s.cjs → pieDiagram-4H26LBE5-DRAafsrW.cjs} +1 -1
- package/dist/{pieDiagram-4H26LBE5-DHhBlzuW.js → pieDiagram-4H26LBE5-Ddif1ew2.js} +3 -3
- package/dist/{quadrantDiagram-W4KKPZXB-D9TkCc0Q.cjs → quadrantDiagram-W4KKPZXB-BbkfZqRA.cjs} +1 -1
- package/dist/{quadrantDiagram-W4KKPZXB-CGqNa97s.js → quadrantDiagram-W4KKPZXB-Cug5Y7_G.js} +2 -2
- package/dist/{requirementDiagram-4Y6WPE33-B_jqlh3e.cjs → requirementDiagram-4Y6WPE33-CWZD0-rx.cjs} +1 -1
- package/dist/{requirementDiagram-4Y6WPE33-Bt2WtRHt.js → requirementDiagram-4Y6WPE33-DwnBT67e.js} +3 -3
- package/dist/{sankeyDiagram-5OEKKPKP-BbRTca3X.js → sankeyDiagram-5OEKKPKP-BFE8-91E.js} +1 -1
- package/dist/{sankeyDiagram-5OEKKPKP-D8pQ53jS.cjs → sankeyDiagram-5OEKKPKP-I3_O-pWr.cjs} +1 -1
- package/dist/{sequenceDiagram-3UESZ5HK-CWmiw92i.cjs → sequenceDiagram-3UESZ5HK-CfoKZAsg.cjs} +1 -1
- package/dist/{sequenceDiagram-3UESZ5HK-CcqEtFwC.js → sequenceDiagram-3UESZ5HK-ChL5sWeE.js} +3 -3
- package/dist/{stateDiagram-AJRCARHV-DYPdua5Y.cjs → stateDiagram-AJRCARHV-DUnFbttq.cjs} +1 -1
- package/dist/{stateDiagram-AJRCARHV-Cq88b1Tx.js → stateDiagram-AJRCARHV-DuflU8kG.js} +2 -2
- package/dist/{stateDiagram-v2-BHNVJYJU-CxdPvM6i.cjs → stateDiagram-v2-BHNVJYJU-Cf7QVlcI.cjs} +1 -1
- package/dist/{stateDiagram-v2-BHNVJYJU-RJUVEtHQ.js → stateDiagram-v2-BHNVJYJU-DjhPlTO0.js} +2 -2
- package/dist/{timeline-definition-PNZ67QCA-CBEIY1Lw.cjs → timeline-definition-PNZ67QCA-DZfQpSWh.cjs} +1 -1
- package/dist/{timeline-definition-PNZ67QCA-By7osiII.js → timeline-definition-PNZ67QCA-Iy3R3U3O.js} +2 -2
- package/dist/{useWorkbenchSession-BLTRFEWl.cjs → useWorkbenchSession-CuBY6GKC.cjs} +1 -1
- package/dist/{useWorkbenchSession-CuCWHFoG.js → useWorkbenchSession-kwuVHEAF.js} +2 -2
- package/dist/{vennDiagram-CIIHVFJN-BpRNec9_.js → vennDiagram-CIIHVFJN-DcNPQahe.js} +1 -1
- package/dist/{vennDiagram-CIIHVFJN-CMlYTUk2.cjs → vennDiagram-CIIHVFJN-DxHgY0Ea.cjs} +1 -1
- package/dist/wandox.cjs +1 -1
- package/dist/wandox.css +1 -1
- package/dist/wandox.js +1 -1
- package/dist/wandox.umd.js +596 -596
- package/dist/{wardleyDiagram-YWT4CUSO-Bqi7M6ds.cjs → wardleyDiagram-YWT4CUSO-Dy3rxs_V.cjs} +1 -1
- package/dist/{wardleyDiagram-YWT4CUSO-DF7SXmn7.js → wardleyDiagram-YWT4CUSO-b2m-CjkO.js} +2 -2
- package/dist/{xychartDiagram-2RQKCTM6-P8AO8xfU.js → xychartDiagram-2RQKCTM6-CQEovrBb.js} +2 -2
- package/dist/{xychartDiagram-2RQKCTM6-Y82ZRBaL.cjs → xychartDiagram-2RQKCTM6-TK9Lfh_u.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./mermaid.core-BBvOg7Qw.cjs"),_t=require("./ordinal-CagbB1m8.cjs");function mt(t){for(var n=t.length/6|0,s=new Array(n),a=0;a<n;)s[a]="#"+t.slice(a*6,++a*6);return s}const kt=mt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function at(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let h of t)(h=n(h,++a,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}function dt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let h of t)(h=n(h,++a,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}function et(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let h of t)(h=+n(h,++a,t))&&(s+=h)}return s}function xt(t){return t.target.depth}function vt(t){return t.depth}function bt(t,n){return n-1-t.height}function gt(t,n){return t.sourceLinks.length?t.depth:n-1}function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?dt(t.sourceLinks,xt)-1:0}function H(t){return function(){return t}}function lt(t,n){return X(t.source,n.source)||t.index-n.index}function ct(t,n){return X(t.target,n.target)||t.index-n.index}function X(t,n){return t.y0-n.y0}function nt(t){return t.value}function wt(t){return t.index}function Lt(t){return t.nodes}function Et(t){return t.links}function ut(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ht({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const h of n.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of n.targetLinks)h.y1=a+h.width/2,a+=h.width}}function At(){let t=0,n=0,s=1,a=1,h=24,d=8,p,m=wt,o=gt,l,f,k=Lt,x=Et,g=6;function v(){const i={nodes:k.apply(null,arguments),links:x.apply(null,arguments)};return T(i),A(i),M(i),$(i),S(i),ht(i),i}v.update=function(i){return ht(i),i},v.nodeId=function(i){return arguments.length?(m=typeof i=="function"?i:H(i),v):m},v.nodeAlign=function(i){return arguments.length?(o=typeof i=="function"?i:H(i),v):o},v.nodeSort=function(i){return arguments.length?(l=i,v):l},v.nodeWidth=function(i){return arguments.length?(h=+i,v):h},v.nodePadding=function(i){return arguments.length?(d=p=+i,v):d},v.nodes=function(i){return arguments.length?(k=typeof i=="function"?i:H(i),v):k},v.links=function(i){return arguments.length?(x=typeof i=="function"?i:H(i),v):x},v.linkSort=function(i){return arguments.length?(f=i,v):f},v.size=function(i){return arguments.length?(t=n=0,s=+i[0],a=+i[1],v):[s-t,a-n]},v.extent=function(i){return arguments.length?(t=+i[0][0],s=+i[1][0],n=+i[0][1],a=+i[1][1],v):[[t,n],[s,a]]},v.iterations=function(i){return arguments.length?(g=+i,v):g};function T({nodes:i,links:y}){for(const[e,r]of i.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const c=new Map(i.map((e,r)=>[m(e,r,i),e]));for(const[e,r]of y.entries()){r.index=e;let{source:_,target:b}=r;typeof _!="object"&&(_=r.source=ut(c,_)),typeof b!="object"&&(b=r.target=ut(c,b)),_.sourceLinks.push(r),b.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:e,targetLinks:r}of i)e.sort(f),r.sort(f)}function A({nodes:i}){for(const y of i)y.value=y.fixedValue===void 0?Math.max(et(y.sourceLinks,nt),et(y.targetLinks,nt)):y.fixedValue}function M({nodes:i}){const y=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const _ of c){_.depth=r;for(const{target:b}of _.sourceLinks)e.add(b)}if(++r>y)throw new Error("circular link");c=e,e=new Set}}function $({nodes:i}){const y=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const _ of c){_.height=r;for(const{source:b}of _.targetLinks)e.add(b)}if(++r>y)throw new Error("circular link");c=e,e=new Set}}function C({nodes:i}){const y=at(i,r=>r.depth)+1,c=(s-t-h)/(y-1),e=new Array(y);for(const r of i){const _=Math.max(0,Math.min(y-1,Math.floor(o.call(null,r,y))));r.layer=_,r.x0=t+_*c,r.x1=r.x0+h,e[_]?e[_].push(r):e[_]=[r]}if(l)for(const r of e)r.sort(l);return e}function D(i){const y=dt(i,c=>(a-n-(c.length-1)*p)/et(c,nt));for(const c of i){let e=n;for(const r of c){r.y0=e,r.y1=e+r.value*y,e=r.y1+p;for(const _ of r.sourceLinks)_.width=_.value*y}e=(a-e+p)/(c.length+1);for(let r=0;r<c.length;++r){const _=c[r];_.y0+=e*(r+1),_.y1+=e*(r+1)}w(c)}}function S(i){const y=C(i);p=Math.min(d,(a-n)/(at(y,c=>c.length)-1)),D(y);for(let c=0;c<g;++c){const e=Math.pow(.99,c),r=Math.max(1-e,(c+1)/g);R(y,e,r),N(y,e,r)}}function N(i,y,c){for(let e=1,r=i.length;e<r;++e){const _=i[e];for(const b of _){let L=0,B=0;for(const{source:q,value:tt}of b.targetLinks){let Y=tt*(b.layer-q.layer);L+=P(q,b)*Y,B+=Y}if(!(B>0))continue;let U=(L/B-b.y0)*y;b.y0+=U,b.y1+=U,z(b)}l===void 0&&_.sort(X),j(_,c)}}function R(i,y,c){for(let e=i.length,r=e-2;r>=0;--r){const _=i[r];for(const b of _){let L=0,B=0;for(const{target:q,value:tt}of b.sourceLinks){let Y=tt*(q.layer-b.layer);L+=E(b,q)*Y,B+=Y}if(!(B>0))continue;let U=(L/B-b.y0)*y;b.y0+=U,b.y1+=U,z(b)}l===void 0&&_.sort(X),j(_,c)}}function j(i,y){const c=i.length>>1,e=i[c];I(i,e.y0-p,c-1,y),V(i,e.y1+p,c+1,y),I(i,a,i.length-1,y),V(i,n,0,y)}function V(i,y,c,e){for(;c<i.length;++c){const r=i[c],_=(y-r.y0)*e;_>1e-6&&(r.y0+=_,r.y1+=_),y=r.y1+p}}function I(i,y,c,e){for(;c>=0;--c){const r=i[c],_=(r.y1-y)*e;_>1e-6&&(r.y0-=_,r.y1-=_),y=r.y0-p}}function z({sourceLinks:i,targetLinks:y}){if(f===void 0){for(const{source:{sourceLinks:c}}of y)c.sort(ct);for(const{target:{targetLinks:c}}of i)c.sort(lt)}}function w(i){if(f===void 0)for(const{sourceLinks:y,targetLinks:c}of i)y.sort(ct),c.sort(lt)}function P(i,y){let c=i.y0-(i.sourceLinks.length-1)*p/2;for(const{target:e,width:r}of i.sourceLinks){if(e===y)break;c+=r+p}for(const{source:e,width:r}of y.targetLinks){if(e===i)break;c-=r}return c}function E(i,y){let c=y.y0-(y.targetLinks.length-1)*p/2;for(const{source:e,width:r}of y.targetLinks){if(e===i)break;c+=r+p}for(const{target:e,width:r}of i.sourceLinks){if(e===y)break;c-=r}return c}return v}var it=Math.PI,rt=2*it,F=1e-6,Tt=rt-F;function st(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new st}st.prototype=pt.prototype={constructor:st,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,h,d){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+h)+","+(this._y1=+d)},arcTo:function(t,n,s,a,h){t=+t,n=+n,s=+s,a=+a,h=+h;var d=this._x1,p=this._y1,m=s-t,o=a-n,l=d-t,f=p-n,k=l*l+f*f;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(k>F)if(!(Math.abs(f*m-o*l)>F)||!h)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var x=s-d,g=a-p,v=m*m+o*o,T=x*x+g*g,A=Math.sqrt(v),M=Math.sqrt(k),$=h*Math.tan((it-Math.acos((v+k-T)/(2*A*M)))/2),C=$/M,D=$/A;Math.abs(C-1)>F&&(this._+="L"+(t+C*l)+","+(n+C*f)),this._+="A"+h+","+h+",0,0,"+ +(f*x>l*g)+","+(this._x1=t+D*m)+","+(this._y1=n+D*o)}},arc:function(t,n,s,a,h,d){t=+t,n=+n,s=+s,d=!!d;var p=s*Math.cos(a),m=s*Math.sin(a),o=t+p,l=n+m,f=1^d,k=d?a-h:h-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>F||Math.abs(this._y1-l)>F)&&(this._+="L"+o+","+l),s&&(k<0&&(k=k%rt+rt),k>Tt?this._+="A"+s+","+s+",0,1,"+f+","+(t-p)+","+(n-m)+"A"+s+","+s+",0,1,"+f+","+(this._x1=o)+","+(this._y1=l):k>F&&(this._+="A"+s+","+s+",0,"+ +(k>=it)+","+f+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=n+s*Math.sin(h))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ft(t){return function(){return t}}function Mt(t){return t[0]}function Ct(t){return t[1]}var Nt=Array.prototype.slice;function Pt(t){return t.source}function $t(t){return t.target}function It(t){var n=Pt,s=$t,a=Mt,h=Ct,d=null;function p(){var m,o=Nt.call(arguments),l=n.apply(this,o),f=s.apply(this,o);if(d||(d=m=pt()),t(d,+a.apply(this,(o[0]=l,o)),+h.apply(this,o),+a.apply(this,(o[0]=f,o)),+h.apply(this,o)),m)return d=null,m+""||null}return p.source=function(m){return arguments.length?(n=m,p):n},p.target=function(m){return arguments.length?(s=m,p):s},p.x=function(m){return arguments.length?(a=typeof m=="function"?m:ft(+m),p):a},p.y=function(m){return arguments.length?(h=typeof m=="function"?m:ft(+m),p):h},p.context=function(m){return arguments.length?(d=m??null,p):d},p}function Ot(t,n,s,a,h){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,h,a,h)}function Dt(){return It(Ot)}function jt(t){return[t.source.x1,t.y0]}function zt(t){return[t.target.x0,t.y1]}function Bt(){return Dt().source(jt).target(zt)}var ot=function(){var t=u.__name(function(m,o,l,f){for(l=l||{},f=m.length;f--;l[m[f]]=o);return l},"o"),n=[1,9],s=[1,10],a=[1,5,10,12],h={trace:u.__name(function(){},"trace"),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:u.__name(function(o,l,f,k,x,g,v){var T=g.length-1;switch(x){case 7:const A=k.findOrCreateNode(g[T-4].trim().replaceAll('""','"')),M=k.findOrCreateNode(g[T-2].trim().replaceAll('""','"')),$=parseFloat(g[T].trim());k.addLink(A,M,$);break;case 8:case 9:case 11:this.$=g[T];break;case 10:this.$=g[T-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,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:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:u.__name(function(o,l){if(l.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=l,f}},"parseError"),parse:u.__name(function(o){var l=this,f=[0],k=[],x=[null],g=[],v=this.table,T="",A=0,M=0,$=2,C=1,D=g.slice.call(arguments,1),S=Object.create(this.lexer),N={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(N.yy[R]=this.yy[R]);S.setInput(o,N.yy),N.yy.lexer=S,N.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var j=S.yylloc;g.push(j);var V=S.options&&S.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(L){f.length=f.length-2*L,x.length=x.length-L,g.length=g.length-L}u.__name(I,"popStack");function z(){var L;return L=k.pop()||S.lex()||C,typeof L!="number"&&(L instanceof Array&&(k=L,L=k.pop()),L=l.symbols_[L]||L),L}u.__name(z,"lex");for(var w,P,E,i,y={},c,e,r,_;;){if(P=f[f.length-1],this.defaultActions[P]?E=this.defaultActions[P]:((w===null||typeof w>"u")&&(w=z()),E=v[P]&&v[P][w]),typeof E>"u"||!E.length||!E[0]){var b="";_=[];for(c in v[P])this.terminals_[c]&&c>$&&_.push("'"+this.terminals_[c]+"'");S.showPosition?b="Parse error on line "+(A+1)+`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./mermaid.core-BTaTUIUu.cjs"),_t=require("./ordinal-CagbB1m8.cjs");function mt(t){for(var n=t.length/6|0,s=new Array(n),a=0;a<n;)s[a]="#"+t.slice(a*6,++a*6);return s}const kt=mt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function at(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let h of t)(h=n(h,++a,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}function dt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let h of t)(h=n(h,++a,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}function et(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let h of t)(h=+n(h,++a,t))&&(s+=h)}return s}function xt(t){return t.target.depth}function vt(t){return t.depth}function bt(t,n){return n-1-t.height}function gt(t,n){return t.sourceLinks.length?t.depth:n-1}function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?dt(t.sourceLinks,xt)-1:0}function H(t){return function(){return t}}function lt(t,n){return X(t.source,n.source)||t.index-n.index}function ct(t,n){return X(t.target,n.target)||t.index-n.index}function X(t,n){return t.y0-n.y0}function nt(t){return t.value}function wt(t){return t.index}function Lt(t){return t.nodes}function Et(t){return t.links}function ut(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ht({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const h of n.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of n.targetLinks)h.y1=a+h.width/2,a+=h.width}}function At(){let t=0,n=0,s=1,a=1,h=24,d=8,p,m=wt,o=gt,l,f,k=Lt,x=Et,g=6;function v(){const i={nodes:k.apply(null,arguments),links:x.apply(null,arguments)};return T(i),A(i),M(i),$(i),S(i),ht(i),i}v.update=function(i){return ht(i),i},v.nodeId=function(i){return arguments.length?(m=typeof i=="function"?i:H(i),v):m},v.nodeAlign=function(i){return arguments.length?(o=typeof i=="function"?i:H(i),v):o},v.nodeSort=function(i){return arguments.length?(l=i,v):l},v.nodeWidth=function(i){return arguments.length?(h=+i,v):h},v.nodePadding=function(i){return arguments.length?(d=p=+i,v):d},v.nodes=function(i){return arguments.length?(k=typeof i=="function"?i:H(i),v):k},v.links=function(i){return arguments.length?(x=typeof i=="function"?i:H(i),v):x},v.linkSort=function(i){return arguments.length?(f=i,v):f},v.size=function(i){return arguments.length?(t=n=0,s=+i[0],a=+i[1],v):[s-t,a-n]},v.extent=function(i){return arguments.length?(t=+i[0][0],s=+i[1][0],n=+i[0][1],a=+i[1][1],v):[[t,n],[s,a]]},v.iterations=function(i){return arguments.length?(g=+i,v):g};function T({nodes:i,links:y}){for(const[e,r]of i.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const c=new Map(i.map((e,r)=>[m(e,r,i),e]));for(const[e,r]of y.entries()){r.index=e;let{source:_,target:b}=r;typeof _!="object"&&(_=r.source=ut(c,_)),typeof b!="object"&&(b=r.target=ut(c,b)),_.sourceLinks.push(r),b.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:e,targetLinks:r}of i)e.sort(f),r.sort(f)}function A({nodes:i}){for(const y of i)y.value=y.fixedValue===void 0?Math.max(et(y.sourceLinks,nt),et(y.targetLinks,nt)):y.fixedValue}function M({nodes:i}){const y=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const _ of c){_.depth=r;for(const{target:b}of _.sourceLinks)e.add(b)}if(++r>y)throw new Error("circular link");c=e,e=new Set}}function $({nodes:i}){const y=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const _ of c){_.height=r;for(const{source:b}of _.targetLinks)e.add(b)}if(++r>y)throw new Error("circular link");c=e,e=new Set}}function C({nodes:i}){const y=at(i,r=>r.depth)+1,c=(s-t-h)/(y-1),e=new Array(y);for(const r of i){const _=Math.max(0,Math.min(y-1,Math.floor(o.call(null,r,y))));r.layer=_,r.x0=t+_*c,r.x1=r.x0+h,e[_]?e[_].push(r):e[_]=[r]}if(l)for(const r of e)r.sort(l);return e}function D(i){const y=dt(i,c=>(a-n-(c.length-1)*p)/et(c,nt));for(const c of i){let e=n;for(const r of c){r.y0=e,r.y1=e+r.value*y,e=r.y1+p;for(const _ of r.sourceLinks)_.width=_.value*y}e=(a-e+p)/(c.length+1);for(let r=0;r<c.length;++r){const _=c[r];_.y0+=e*(r+1),_.y1+=e*(r+1)}w(c)}}function S(i){const y=C(i);p=Math.min(d,(a-n)/(at(y,c=>c.length)-1)),D(y);for(let c=0;c<g;++c){const e=Math.pow(.99,c),r=Math.max(1-e,(c+1)/g);R(y,e,r),N(y,e,r)}}function N(i,y,c){for(let e=1,r=i.length;e<r;++e){const _=i[e];for(const b of _){let L=0,B=0;for(const{source:q,value:tt}of b.targetLinks){let Y=tt*(b.layer-q.layer);L+=P(q,b)*Y,B+=Y}if(!(B>0))continue;let U=(L/B-b.y0)*y;b.y0+=U,b.y1+=U,z(b)}l===void 0&&_.sort(X),j(_,c)}}function R(i,y,c){for(let e=i.length,r=e-2;r>=0;--r){const _=i[r];for(const b of _){let L=0,B=0;for(const{target:q,value:tt}of b.sourceLinks){let Y=tt*(q.layer-b.layer);L+=E(b,q)*Y,B+=Y}if(!(B>0))continue;let U=(L/B-b.y0)*y;b.y0+=U,b.y1+=U,z(b)}l===void 0&&_.sort(X),j(_,c)}}function j(i,y){const c=i.length>>1,e=i[c];I(i,e.y0-p,c-1,y),V(i,e.y1+p,c+1,y),I(i,a,i.length-1,y),V(i,n,0,y)}function V(i,y,c,e){for(;c<i.length;++c){const r=i[c],_=(y-r.y0)*e;_>1e-6&&(r.y0+=_,r.y1+=_),y=r.y1+p}}function I(i,y,c,e){for(;c>=0;--c){const r=i[c],_=(r.y1-y)*e;_>1e-6&&(r.y0-=_,r.y1-=_),y=r.y0-p}}function z({sourceLinks:i,targetLinks:y}){if(f===void 0){for(const{source:{sourceLinks:c}}of y)c.sort(ct);for(const{target:{targetLinks:c}}of i)c.sort(lt)}}function w(i){if(f===void 0)for(const{sourceLinks:y,targetLinks:c}of i)y.sort(ct),c.sort(lt)}function P(i,y){let c=i.y0-(i.sourceLinks.length-1)*p/2;for(const{target:e,width:r}of i.sourceLinks){if(e===y)break;c+=r+p}for(const{source:e,width:r}of y.targetLinks){if(e===i)break;c-=r}return c}function E(i,y){let c=y.y0-(y.targetLinks.length-1)*p/2;for(const{source:e,width:r}of y.targetLinks){if(e===i)break;c+=r+p}for(const{target:e,width:r}of i.sourceLinks){if(e===y)break;c-=r}return c}return v}var it=Math.PI,rt=2*it,F=1e-6,Tt=rt-F;function st(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new st}st.prototype=pt.prototype={constructor:st,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,h,d){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+h)+","+(this._y1=+d)},arcTo:function(t,n,s,a,h){t=+t,n=+n,s=+s,a=+a,h=+h;var d=this._x1,p=this._y1,m=s-t,o=a-n,l=d-t,f=p-n,k=l*l+f*f;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(k>F)if(!(Math.abs(f*m-o*l)>F)||!h)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var x=s-d,g=a-p,v=m*m+o*o,T=x*x+g*g,A=Math.sqrt(v),M=Math.sqrt(k),$=h*Math.tan((it-Math.acos((v+k-T)/(2*A*M)))/2),C=$/M,D=$/A;Math.abs(C-1)>F&&(this._+="L"+(t+C*l)+","+(n+C*f)),this._+="A"+h+","+h+",0,0,"+ +(f*x>l*g)+","+(this._x1=t+D*m)+","+(this._y1=n+D*o)}},arc:function(t,n,s,a,h,d){t=+t,n=+n,s=+s,d=!!d;var p=s*Math.cos(a),m=s*Math.sin(a),o=t+p,l=n+m,f=1^d,k=d?a-h:h-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>F||Math.abs(this._y1-l)>F)&&(this._+="L"+o+","+l),s&&(k<0&&(k=k%rt+rt),k>Tt?this._+="A"+s+","+s+",0,1,"+f+","+(t-p)+","+(n-m)+"A"+s+","+s+",0,1,"+f+","+(this._x1=o)+","+(this._y1=l):k>F&&(this._+="A"+s+","+s+",0,"+ +(k>=it)+","+f+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=n+s*Math.sin(h))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ft(t){return function(){return t}}function Mt(t){return t[0]}function Ct(t){return t[1]}var Nt=Array.prototype.slice;function Pt(t){return t.source}function $t(t){return t.target}function It(t){var n=Pt,s=$t,a=Mt,h=Ct,d=null;function p(){var m,o=Nt.call(arguments),l=n.apply(this,o),f=s.apply(this,o);if(d||(d=m=pt()),t(d,+a.apply(this,(o[0]=l,o)),+h.apply(this,o),+a.apply(this,(o[0]=f,o)),+h.apply(this,o)),m)return d=null,m+""||null}return p.source=function(m){return arguments.length?(n=m,p):n},p.target=function(m){return arguments.length?(s=m,p):s},p.x=function(m){return arguments.length?(a=typeof m=="function"?m:ft(+m),p):a},p.y=function(m){return arguments.length?(h=typeof m=="function"?m:ft(+m),p):h},p.context=function(m){return arguments.length?(d=m??null,p):d},p}function Ot(t,n,s,a,h){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,h,a,h)}function Dt(){return It(Ot)}function jt(t){return[t.source.x1,t.y0]}function zt(t){return[t.target.x0,t.y1]}function Bt(){return Dt().source(jt).target(zt)}var ot=function(){var t=u.__name(function(m,o,l,f){for(l=l||{},f=m.length;f--;l[m[f]]=o);return l},"o"),n=[1,9],s=[1,10],a=[1,5,10,12],h={trace:u.__name(function(){},"trace"),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:u.__name(function(o,l,f,k,x,g,v){var T=g.length-1;switch(x){case 7:const A=k.findOrCreateNode(g[T-4].trim().replaceAll('""','"')),M=k.findOrCreateNode(g[T-2].trim().replaceAll('""','"')),$=parseFloat(g[T].trim());k.addLink(A,M,$);break;case 8:case 9:case 11:this.$=g[T];break;case 10:this.$=g[T-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,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:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:u.__name(function(o,l){if(l.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=l,f}},"parseError"),parse:u.__name(function(o){var l=this,f=[0],k=[],x=[null],g=[],v=this.table,T="",A=0,M=0,$=2,C=1,D=g.slice.call(arguments,1),S=Object.create(this.lexer),N={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(N.yy[R]=this.yy[R]);S.setInput(o,N.yy),N.yy.lexer=S,N.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var j=S.yylloc;g.push(j);var V=S.options&&S.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(L){f.length=f.length-2*L,x.length=x.length-L,g.length=g.length-L}u.__name(I,"popStack");function z(){var L;return L=k.pop()||S.lex()||C,typeof L!="number"&&(L instanceof Array&&(k=L,L=k.pop()),L=l.symbols_[L]||L),L}u.__name(z,"lex");for(var w,P,E,i,y={},c,e,r,_;;){if(P=f[f.length-1],this.defaultActions[P]?E=this.defaultActions[P]:((w===null||typeof w>"u")&&(w=z()),E=v[P]&&v[P][w]),typeof E>"u"||!E.length||!E[0]){var b="";_=[];for(c in v[P])this.terminals_[c]&&c>$&&_.push("'"+this.terminals_[c]+"'");S.showPosition?b="Parse error on line "+(A+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+_.join(", ")+", got '"+(this.terminals_[w]||w)+"'":b="Parse error on line "+(A+1)+": Unexpected "+(w==C?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(b,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:j,expected:_})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+w);switch(E[0]){case 1:f.push(w),x.push(S.yytext),g.push(S.yylloc),f.push(E[1]),w=null,M=S.yyleng,T=S.yytext,A=S.yylineno,j=S.yylloc;break;case 2:if(e=this.productions_[E[1]][1],y.$=x[x.length-e],y._$={first_line:g[g.length-(e||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(e||1)].first_column,last_column:g[g.length-1].last_column},V&&(y._$.range=[g[g.length-(e||1)].range[0],g[g.length-1].range[1]]),i=this.performAction.apply(y,[T,M,A,N.yy,E[1],x,g].concat(D)),typeof i<"u")return i;e&&(f=f.slice(0,-1*e*2),x=x.slice(0,-1*e),g=g.slice(0,-1*e)),f.push(this.productions_[E[1]][0]),x.push(y.$),g.push(y._$),r=v[f[f.length-2]][f[f.length-1]],f.push(r);break;case 3:return!0}}return!0},"parse")},d=function(){var m={EOF:1,parseError:u.__name(function(l,f){if(this.yy.parser)this.yy.parser.parseError(l,f);else throw new Error(l)},"parseError"),setInput:u.__name(function(o,l){return this.yy=l||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u.__name(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:u.__name(function(o){var l=o.length,f=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var k=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 x=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===k.length?this.yylloc.first_column:0)+k[k.length-f.length].length-f[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:u.__name(function(){return this._more=!0,this},"more"),reject:u.__name(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},"reject"),less:u.__name(function(o){this.unput(this.match.slice(o))},"less"),pastInput:u.__name(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u.__name(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u.__name(function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
package/dist/{sequenceDiagram-3UESZ5HK-CWmiw92i.cjs → sequenceDiagram-3UESZ5HK-CfoKZAsg.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./mermaid.core-BBvOg7Qw.cjs"),X=require("./chunk-ND2GUHAM-cpaA7UYQ.cjs"),Ye=require("./chunk-QZHKN3VN-Co-kjbN3.cjs");var Ht=function(){var e=r.__name(function(dt,N,D,P){for(D=D||{},P=dt.length;P--;D[dt[P]]=N);return D},"o"),t=[1,2],s=[1,3],a=[1,4],i=[2,4],o=[1,9],n=[1,11],c=[1,12],_=[1,14],T=[1,15],d=[1,17],m=[1,18],u=[1,19],R=[1,25],E=[1,26],f=[1,27],g=[1,28],x=[1,29],O=[1,30],L=[1,31],w=[1,32],A=[1,33],S=[1,34],V=[1,35],v=[1,36],B=[1,37],U=[1,38],Y=[1,39],G=[1,40],Z=[1,42],H=[1,43],et=[1,44],Q=[1,45],at=[1,46],W=[1,47],C=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Lt=[1,74],b=[1,80],k=[1,81],$=[1,82],j=[1,83],K=[1,84],Gt=[1,85],Xt=[1,86],Jt=[1,87],Zt=[1,88],Qt=[1,89],$t=[1,90],jt=[1,91],te=[1,92],ee=[1,93],ae=[1,94],re=[1,95],se=[1,96],ne=[1,97],ie=[1,98],oe=[1,99],ce=[1,100],le=[1,101],de=[1,102],he=[1,103],Te=[1,104],pe=[1,105],Ee=[2,78],yt=[4,5,17,51,53,54],bt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],_e=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Mt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],ue=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Bt=[5,52],F=[70,71,72,73],st=[1,151],Vt={trace:r.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement: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:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,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],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:r.__name(function(N,D,P,I,z,l,Rt){var p=l.length-1;switch(z){case 3:return I.apply(l[p]),l[p];case 4:case 10:this.$=[];break;case 5:case 11:l[p-1].push(l[p]),this.$=l[p-1];break;case 6:case 7:case 12:case 13:this.$=l[p];break;case 8:case 9:case 14:this.$=[];break;case 16:l[p].type="createParticipant",this.$=l[p];break;case 17:l[p-1].unshift({type:"boxStart",boxData:I.parseBoxData(l[p-2])}),l[p-1].push({type:"boxEnd",boxText:l[p-2]}),this.$=l[p-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[p-2]),sequenceIndexStep:Number(l[p-1]),sequenceVisible:!0,signalType:I.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(l[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:I.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:I.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:I.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:I.LINETYPE.ACTIVE_START,actor:l[p-1].actor};break;case 24:this.$={type:"activeEnd",signalType:I.LINETYPE.ACTIVE_END,actor:l[p-1].actor};break;case 30:I.setDiagramTitle(l[p].substring(6)),this.$=l[p].substring(6);break;case 31:I.setDiagramTitle(l[p].substring(7)),this.$=l[p].substring(7);break;case 32:this.$=l[p].trim(),I.setAccTitle(this.$);break;case 33:case 34:this.$=l[p].trim(),I.setAccDescription(this.$);break;case 35:l[p-1].unshift({type:"loopStart",loopText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.LOOP_START}),l[p-1].push({type:"loopEnd",loopText:l[p-2],signalType:I.LINETYPE.LOOP_END}),this.$=l[p-1];break;case 36:l[p-1].unshift({type:"rectStart",color:I.parseMessage(l[p-2]),signalType:I.LINETYPE.RECT_START}),l[p-1].push({type:"rectEnd",color:I.parseMessage(l[p-2]),signalType:I.LINETYPE.RECT_END}),this.$=l[p-1];break;case 37:l[p-1].unshift({type:"optStart",optText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.OPT_START}),l[p-1].push({type:"optEnd",optText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.OPT_END}),this.$=l[p-1];break;case 38:l[p-1].unshift({type:"altStart",altText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.ALT_START}),l[p-1].push({type:"altEnd",signalType:I.LINETYPE.ALT_END}),this.$=l[p-1];break;case 39:l[p-1].unshift({type:"parStart",parText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.PAR_START}),l[p-1].push({type:"parEnd",signalType:I.LINETYPE.PAR_END}),this.$=l[p-1];break;case 40:l[p-1].unshift({type:"parStart",parText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.PAR_OVER_START}),l[p-1].push({type:"parEnd",signalType:I.LINETYPE.PAR_END}),this.$=l[p-1];break;case 41:l[p-1].unshift({type:"criticalStart",criticalText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.CRITICAL_START}),l[p-1].push({type:"criticalEnd",signalType:I.LINETYPE.CRITICAL_END}),this.$=l[p-1];break;case 42:l[p-1].unshift({type:"breakStart",breakText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.BREAK_START}),l[p-1].push({type:"breakEnd",optText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.BREAK_END}),this.$=l[p-1];break;case 44:this.$=l[p-3].concat([{type:"option",optionText:I.parseMessage(l[p-1]),signalType:I.LINETYPE.CRITICAL_OPTION},l[p]]);break;case 46:this.$=l[p-3].concat([{type:"and",parText:I.parseMessage(l[p-1]),signalType:I.LINETYPE.PAR_AND},l[p]]);break;case 48:this.$=l[p-3].concat([{type:"else",altText:I.parseMessage(l[p-1]),signalType:I.LINETYPE.ALT_ELSE},l[p]]);break;case 49:l[p-3].draw="participant",l[p-3].type="addParticipant",l[p-3].description=I.parseMessage(l[p-1]),this.$=l[p-3];break;case 50:l[p-1].draw="participant",l[p-1].type="addParticipant",this.$=l[p-1];break;case 51:l[p-3].draw="actor",l[p-3].type="addParticipant",l[p-3].description=I.parseMessage(l[p-1]),this.$=l[p-3];break;case 52:case 57:l[p-1].draw="actor",l[p-1].type="addParticipant",this.$=l[p-1];break;case 53:l[p-1].type="destroyParticipant",this.$=l[p-1];break;case 54:l[p-3].draw="participant",l[p-3].type="addParticipant",l[p-3].description=I.parseMessage(l[p-1]),this.$=l[p-3];break;case 55:l[p-1].draw="participant",l[p-1].type="addParticipant",this.$=l[p-1];break;case 56:l[p-3].draw="actor",l[p-3].type="addParticipant",l[p-3].description=I.parseMessage(l[p-1]),this.$=l[p-3];break;case 58:this.$=[l[p-1],{type:"addNote",placement:l[p-2],actor:l[p-1].actor,text:l[p]}];break;case 59:l[p-2]=[].concat(l[p-1],l[p-1]).slice(0,2),l[p-2][0]=l[p-2][0].actor,l[p-2][1]=l[p-2][1].actor,this.$=[l[p-1],{type:"addNote",placement:I.PLACEMENT.OVER,actor:l[p-2].slice(0,2),text:l[p]}];break;case 60:this.$=[l[p-1],{type:"addLinks",actor:l[p-1].actor,text:l[p]}];break;case 61:this.$=[l[p-1],{type:"addALink",actor:l[p-1].actor,text:l[p]}];break;case 62:this.$=[l[p-1],{type:"addProperties",actor:l[p-1].actor,text:l[p]}];break;case 63:this.$=[l[p-1],{type:"addDetails",actor:l[p-1].actor,text:l[p]}];break;case 66:this.$=[l[p-2],l[p]];break;case 67:this.$=l[p];break;case 68:this.$=I.PLACEMENT.LEFTOF;break;case 69:this.$=I.PLACEMENT.RIGHTOF;break;case 70:this.$=[l[p-4],l[p-1],{type:"addMessage",from:l[p-4].actor,to:l[p-1].actor,signalType:l[p-3],msg:l[p],activate:!0},{type:"activeStart",signalType:I.LINETYPE.ACTIVE_START,actor:l[p-1].actor}];break;case 71:this.$=[l[p-4],l[p-1],{type:"addMessage",from:l[p-4].actor,to:l[p-1].actor,signalType:l[p-3],msg:l[p]},{type:"activeEnd",signalType:I.LINETYPE.ACTIVE_END,actor:l[p-4].actor}];break;case 72:this.$=[l[p-4],l[p-1],{type:"addMessage",from:l[p-4].actor,to:l[p-1].actor,signalType:l[p-3],msg:l[p],activate:!0,centralConnection:I.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:I.LINETYPE.CENTRAL_CONNECTION,actor:l[p-1].actor}];break;case 73:this.$=[l[p-4],l[p-1],{type:"addMessage",from:l[p-4].actor,to:l[p-1].actor,signalType:l[p-2],msg:l[p],activate:!1,centralConnection:I.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:I.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:l[p-4].actor}];break;case 74:this.$=[l[p-5],l[p-1],{type:"addMessage",from:l[p-5].actor,to:l[p-1].actor,signalType:l[p-3],msg:l[p],activate:!0,centralConnection:I.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:I.LINETYPE.CENTRAL_CONNECTION,actor:l[p-1].actor},{type:"centralConnectionReverse",signalType:I.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:l[p-5].actor}];break;case 75:this.$=[l[p-3],l[p-1],{type:"addMessage",from:l[p-3].actor,to:l[p-1].actor,signalType:l[p-2],msg:l[p]}];break;case 76:this.$={type:"addParticipant",actor:l[p-1],config:l[p]};break;case 77:this.$=l[p-1].trim();break;case 78:this.$={type:"addParticipant",actor:l[p]};break;case 79:this.$=I.LINETYPE.SOLID_OPEN;break;case 80:this.$=I.LINETYPE.DOTTED_OPEN;break;case 81:this.$=I.LINETYPE.SOLID;break;case 82:this.$=I.LINETYPE.SOLID_TOP;break;case 83:this.$=I.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=I.LINETYPE.STICK_TOP;break;case 85:this.$=I.LINETYPE.STICK_BOTTOM;break;case 86:this.$=I.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=I.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=I.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=I.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=I.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=I.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=I.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=I.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=I.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=I.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=I.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=I.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=I.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=I.LINETYPE.DOTTED;break;case 100:this.$=I.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=I.LINETYPE.SOLID_CROSS;break;case 102:this.$=I.LINETYPE.DOTTED_CROSS;break;case 103:this.$=I.LINETYPE.SOLID_POINT;break;case 104:this.$=I.LINETYPE.DOTTED_POINT;break;case 105:this.$=I.parseMessage(l[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:s,6:a},{1:[3]},{3:5,4:t,5:s,6:a},{3:6,4:t,5:s,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},e(C,[2,5]),{9:48,13:13,14:_,15:T,18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:U,53:Y,54:G},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:W},{23:56,73:W},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:Lt},{23:75,55:76,73:Lt},{23:77,73:W},{69:78,72:[1,79],78:b,79:k,80:$,81:j,82:K,83:Gt,84:Xt,85:Jt,86:Zt,87:Qt,88:$t,89:jt,90:te,91:ee,92:ae,93:re,94:se,95:ne,96:ie,97:oe,98:ce,99:le,100:de,101:he,102:Te,103:pe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:W},{23:111,73:W},{23:112,73:W},{23:113,73:W},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Ee),e(C,[2,6]),e(C,[2,16]),e(yt,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(bt,i,{7:120}),e(bt,i,{7:121}),e(bt,i,{7:122}),e(_e,i,{41:123,7:124}),e(Mt,i,{43:125,7:126}),e(Mt,i,{7:126,43:127}),e(ue,i,{46:128,7:129}),e(bt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Bt,Ee,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:W},{69:146,78:b,79:k,80:$,81:j,82:K,83:Gt,84:Xt,85:Jt,86:Zt,87:Qt,88:$t,89:jt,90:te,91:ee,92:ae,93:re,94:se,95:ne,96:ie,97:oe,98:ce,99:le,100:de,101:he,102:Te,103:pe},e(F,[2,79]),e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),{23:147,73:W},{23:149,60:148,73:W},{73:[2,68]},{73:[2,69]},{58:150,104:st},{58:152,104:st},{58:153,104:st},{58:154,104:st},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:U,53:Y,54:G},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[1,161],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[1,162],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[1,163],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{17:[1,164]},{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[2,47],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,50:[1,165],51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{17:[1,166]},{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[2,45],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,49:[1,167],51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{17:[1,168]},{17:[1,169]},{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[2,43],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,48:[1,170],51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[1,171],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Bt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:W},{23:178,73:W},{23:179,73:W},{58:180,104:st},{23:181,72:[1,182],73:W},{58:183,104:st},{58:184,104:st},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(yt,[2,11]),{13:186,51:U,53:Y,54:G},e(yt,[2,13]),e(yt,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:st},{58:196,104:st},{58:197,104:st},{5:[2,75]},{58:198,104:st},{23:199,73:W},{5:[2,58]},{5:[2,59]},{23:200,73:W},e(yt,[2,12]),e(_e,i,{7:124,41:201}),e(Mt,i,{7:126,43:202}),e(ue,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Bt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:st},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:r.__name(function(N,D){if(D.recoverable)this.trace(N);else{var P=new Error(N);throw P.hash=D,P}},"parseError"),parse:r.__name(function(N){var D=this,P=[0],I=[],z=[null],l=[],Rt=this.table,p="",At=0,fe=0,ve=2,ge=1,Me=l.slice.call(arguments,1),J=Object.create(this.lexer),pt={yy:{}};for(var Yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Yt)&&(pt.yy[Yt]=this.yy[Yt]);J.setInput(N,pt.yy),pt.yy.lexer=J,pt.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var Wt=J.yylloc;l.push(Wt);var Be=J.options&&J.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ve(rt){P.length=P.length-2*rt,z.length=z.length-rt,l.length=l.length-rt}r.__name(Ve,"popStack");function me(){var rt;return rt=I.pop()||J.lex()||ge,typeof rt!="number"&&(rt instanceof Array&&(I=rt,rt=I.pop()),rt=D.symbols_[rt]||rt),rt}r.__name(me,"lex");for(var tt,Et,nt,Kt,gt={},Nt,ot,xe,wt;;){if(Et=P[P.length-1],this.defaultActions[Et]?nt=this.defaultActions[Et]:((tt===null||typeof tt>"u")&&(tt=me()),nt=Rt[Et]&&Rt[Et][tt]),typeof nt>"u"||!nt.length||!nt[0]){var Ft="";wt=[];for(Nt in Rt[Et])this.terminals_[Nt]&&Nt>ve&&wt.push("'"+this.terminals_[Nt]+"'");J.showPosition?Ft="Parse error on line "+(At+1)+`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./mermaid.core-BTaTUIUu.cjs"),X=require("./chunk-ND2GUHAM-B9qs3P-w.cjs"),Ye=require("./chunk-QZHKN3VN-D25PBsy4.cjs");var Ht=function(){var e=r.__name(function(dt,N,D,P){for(D=D||{},P=dt.length;P--;D[dt[P]]=N);return D},"o"),t=[1,2],s=[1,3],a=[1,4],i=[2,4],o=[1,9],n=[1,11],c=[1,12],_=[1,14],T=[1,15],d=[1,17],m=[1,18],u=[1,19],R=[1,25],E=[1,26],f=[1,27],g=[1,28],x=[1,29],O=[1,30],L=[1,31],w=[1,32],A=[1,33],S=[1,34],V=[1,35],v=[1,36],B=[1,37],U=[1,38],Y=[1,39],G=[1,40],Z=[1,42],H=[1,43],et=[1,44],Q=[1,45],at=[1,46],W=[1,47],C=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Lt=[1,74],b=[1,80],k=[1,81],$=[1,82],j=[1,83],K=[1,84],Gt=[1,85],Xt=[1,86],Jt=[1,87],Zt=[1,88],Qt=[1,89],$t=[1,90],jt=[1,91],te=[1,92],ee=[1,93],ae=[1,94],re=[1,95],se=[1,96],ne=[1,97],ie=[1,98],oe=[1,99],ce=[1,100],le=[1,101],de=[1,102],he=[1,103],Te=[1,104],pe=[1,105],Ee=[2,78],yt=[4,5,17,51,53,54],bt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],_e=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Mt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],ue=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Bt=[5,52],F=[70,71,72,73],st=[1,151],Vt={trace:r.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement: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:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,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],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:r.__name(function(N,D,P,I,z,l,Rt){var p=l.length-1;switch(z){case 3:return I.apply(l[p]),l[p];case 4:case 10:this.$=[];break;case 5:case 11:l[p-1].push(l[p]),this.$=l[p-1];break;case 6:case 7:case 12:case 13:this.$=l[p];break;case 8:case 9:case 14:this.$=[];break;case 16:l[p].type="createParticipant",this.$=l[p];break;case 17:l[p-1].unshift({type:"boxStart",boxData:I.parseBoxData(l[p-2])}),l[p-1].push({type:"boxEnd",boxText:l[p-2]}),this.$=l[p-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[p-2]),sequenceIndexStep:Number(l[p-1]),sequenceVisible:!0,signalType:I.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(l[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:I.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:I.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:I.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:I.LINETYPE.ACTIVE_START,actor:l[p-1].actor};break;case 24:this.$={type:"activeEnd",signalType:I.LINETYPE.ACTIVE_END,actor:l[p-1].actor};break;case 30:I.setDiagramTitle(l[p].substring(6)),this.$=l[p].substring(6);break;case 31:I.setDiagramTitle(l[p].substring(7)),this.$=l[p].substring(7);break;case 32:this.$=l[p].trim(),I.setAccTitle(this.$);break;case 33:case 34:this.$=l[p].trim(),I.setAccDescription(this.$);break;case 35:l[p-1].unshift({type:"loopStart",loopText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.LOOP_START}),l[p-1].push({type:"loopEnd",loopText:l[p-2],signalType:I.LINETYPE.LOOP_END}),this.$=l[p-1];break;case 36:l[p-1].unshift({type:"rectStart",color:I.parseMessage(l[p-2]),signalType:I.LINETYPE.RECT_START}),l[p-1].push({type:"rectEnd",color:I.parseMessage(l[p-2]),signalType:I.LINETYPE.RECT_END}),this.$=l[p-1];break;case 37:l[p-1].unshift({type:"optStart",optText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.OPT_START}),l[p-1].push({type:"optEnd",optText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.OPT_END}),this.$=l[p-1];break;case 38:l[p-1].unshift({type:"altStart",altText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.ALT_START}),l[p-1].push({type:"altEnd",signalType:I.LINETYPE.ALT_END}),this.$=l[p-1];break;case 39:l[p-1].unshift({type:"parStart",parText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.PAR_START}),l[p-1].push({type:"parEnd",signalType:I.LINETYPE.PAR_END}),this.$=l[p-1];break;case 40:l[p-1].unshift({type:"parStart",parText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.PAR_OVER_START}),l[p-1].push({type:"parEnd",signalType:I.LINETYPE.PAR_END}),this.$=l[p-1];break;case 41:l[p-1].unshift({type:"criticalStart",criticalText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.CRITICAL_START}),l[p-1].push({type:"criticalEnd",signalType:I.LINETYPE.CRITICAL_END}),this.$=l[p-1];break;case 42:l[p-1].unshift({type:"breakStart",breakText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.BREAK_START}),l[p-1].push({type:"breakEnd",optText:I.parseMessage(l[p-2]),signalType:I.LINETYPE.BREAK_END}),this.$=l[p-1];break;case 44:this.$=l[p-3].concat([{type:"option",optionText:I.parseMessage(l[p-1]),signalType:I.LINETYPE.CRITICAL_OPTION},l[p]]);break;case 46:this.$=l[p-3].concat([{type:"and",parText:I.parseMessage(l[p-1]),signalType:I.LINETYPE.PAR_AND},l[p]]);break;case 48:this.$=l[p-3].concat([{type:"else",altText:I.parseMessage(l[p-1]),signalType:I.LINETYPE.ALT_ELSE},l[p]]);break;case 49:l[p-3].draw="participant",l[p-3].type="addParticipant",l[p-3].description=I.parseMessage(l[p-1]),this.$=l[p-3];break;case 50:l[p-1].draw="participant",l[p-1].type="addParticipant",this.$=l[p-1];break;case 51:l[p-3].draw="actor",l[p-3].type="addParticipant",l[p-3].description=I.parseMessage(l[p-1]),this.$=l[p-3];break;case 52:case 57:l[p-1].draw="actor",l[p-1].type="addParticipant",this.$=l[p-1];break;case 53:l[p-1].type="destroyParticipant",this.$=l[p-1];break;case 54:l[p-3].draw="participant",l[p-3].type="addParticipant",l[p-3].description=I.parseMessage(l[p-1]),this.$=l[p-3];break;case 55:l[p-1].draw="participant",l[p-1].type="addParticipant",this.$=l[p-1];break;case 56:l[p-3].draw="actor",l[p-3].type="addParticipant",l[p-3].description=I.parseMessage(l[p-1]),this.$=l[p-3];break;case 58:this.$=[l[p-1],{type:"addNote",placement:l[p-2],actor:l[p-1].actor,text:l[p]}];break;case 59:l[p-2]=[].concat(l[p-1],l[p-1]).slice(0,2),l[p-2][0]=l[p-2][0].actor,l[p-2][1]=l[p-2][1].actor,this.$=[l[p-1],{type:"addNote",placement:I.PLACEMENT.OVER,actor:l[p-2].slice(0,2),text:l[p]}];break;case 60:this.$=[l[p-1],{type:"addLinks",actor:l[p-1].actor,text:l[p]}];break;case 61:this.$=[l[p-1],{type:"addALink",actor:l[p-1].actor,text:l[p]}];break;case 62:this.$=[l[p-1],{type:"addProperties",actor:l[p-1].actor,text:l[p]}];break;case 63:this.$=[l[p-1],{type:"addDetails",actor:l[p-1].actor,text:l[p]}];break;case 66:this.$=[l[p-2],l[p]];break;case 67:this.$=l[p];break;case 68:this.$=I.PLACEMENT.LEFTOF;break;case 69:this.$=I.PLACEMENT.RIGHTOF;break;case 70:this.$=[l[p-4],l[p-1],{type:"addMessage",from:l[p-4].actor,to:l[p-1].actor,signalType:l[p-3],msg:l[p],activate:!0},{type:"activeStart",signalType:I.LINETYPE.ACTIVE_START,actor:l[p-1].actor}];break;case 71:this.$=[l[p-4],l[p-1],{type:"addMessage",from:l[p-4].actor,to:l[p-1].actor,signalType:l[p-3],msg:l[p]},{type:"activeEnd",signalType:I.LINETYPE.ACTIVE_END,actor:l[p-4].actor}];break;case 72:this.$=[l[p-4],l[p-1],{type:"addMessage",from:l[p-4].actor,to:l[p-1].actor,signalType:l[p-3],msg:l[p],activate:!0,centralConnection:I.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:I.LINETYPE.CENTRAL_CONNECTION,actor:l[p-1].actor}];break;case 73:this.$=[l[p-4],l[p-1],{type:"addMessage",from:l[p-4].actor,to:l[p-1].actor,signalType:l[p-2],msg:l[p],activate:!1,centralConnection:I.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:I.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:l[p-4].actor}];break;case 74:this.$=[l[p-5],l[p-1],{type:"addMessage",from:l[p-5].actor,to:l[p-1].actor,signalType:l[p-3],msg:l[p],activate:!0,centralConnection:I.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:I.LINETYPE.CENTRAL_CONNECTION,actor:l[p-1].actor},{type:"centralConnectionReverse",signalType:I.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:l[p-5].actor}];break;case 75:this.$=[l[p-3],l[p-1],{type:"addMessage",from:l[p-3].actor,to:l[p-1].actor,signalType:l[p-2],msg:l[p]}];break;case 76:this.$={type:"addParticipant",actor:l[p-1],config:l[p]};break;case 77:this.$=l[p-1].trim();break;case 78:this.$={type:"addParticipant",actor:l[p]};break;case 79:this.$=I.LINETYPE.SOLID_OPEN;break;case 80:this.$=I.LINETYPE.DOTTED_OPEN;break;case 81:this.$=I.LINETYPE.SOLID;break;case 82:this.$=I.LINETYPE.SOLID_TOP;break;case 83:this.$=I.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=I.LINETYPE.STICK_TOP;break;case 85:this.$=I.LINETYPE.STICK_BOTTOM;break;case 86:this.$=I.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=I.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=I.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=I.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=I.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=I.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=I.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=I.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=I.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=I.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=I.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=I.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=I.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=I.LINETYPE.DOTTED;break;case 100:this.$=I.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=I.LINETYPE.SOLID_CROSS;break;case 102:this.$=I.LINETYPE.DOTTED_CROSS;break;case 103:this.$=I.LINETYPE.SOLID_POINT;break;case 104:this.$=I.LINETYPE.DOTTED_POINT;break;case 105:this.$=I.parseMessage(l[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:s,6:a},{1:[3]},{3:5,4:t,5:s,6:a},{3:6,4:t,5:s,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},e(C,[2,5]),{9:48,13:13,14:_,15:T,18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:U,53:Y,54:G},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:W},{23:56,73:W},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:Lt},{23:75,55:76,73:Lt},{23:77,73:W},{69:78,72:[1,79],78:b,79:k,80:$,81:j,82:K,83:Gt,84:Xt,85:Jt,86:Zt,87:Qt,88:$t,89:jt,90:te,91:ee,92:ae,93:re,94:se,95:ne,96:ie,97:oe,98:ce,99:le,100:de,101:he,102:Te,103:pe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:W},{23:111,73:W},{23:112,73:W},{23:113,73:W},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Ee),e(C,[2,6]),e(C,[2,16]),e(yt,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(bt,i,{7:120}),e(bt,i,{7:121}),e(bt,i,{7:122}),e(_e,i,{41:123,7:124}),e(Mt,i,{43:125,7:126}),e(Mt,i,{7:126,43:127}),e(ue,i,{46:128,7:129}),e(bt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Bt,Ee,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:W},{69:146,78:b,79:k,80:$,81:j,82:K,83:Gt,84:Xt,85:Jt,86:Zt,87:Qt,88:$t,89:jt,90:te,91:ee,92:ae,93:re,94:se,95:ne,96:ie,97:oe,98:ce,99:le,100:de,101:he,102:Te,103:pe},e(F,[2,79]),e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),{23:147,73:W},{23:149,60:148,73:W},{73:[2,68]},{73:[2,69]},{58:150,104:st},{58:152,104:st},{58:153,104:st},{58:154,104:st},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:U,53:Y,54:G},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[1,161],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[1,162],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[1,163],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{17:[1,164]},{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[2,47],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,50:[1,165],51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{17:[1,166]},{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[2,45],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,49:[1,167],51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{17:[1,168]},{17:[1,169]},{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[2,43],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,48:[1,170],51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{4:o,5:n,8:8,9:10,10:c,13:13,14:_,15:T,17:[1,171],18:16,19:d,22:m,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:E,32:f,34:g,36:x,37:O,38:L,39:w,40:A,42:S,44:V,45:v,47:B,51:U,53:Y,54:G,56:Z,61:H,62:et,63:Q,64:at,73:W},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Bt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:W},{23:178,73:W},{23:179,73:W},{58:180,104:st},{23:181,72:[1,182],73:W},{58:183,104:st},{58:184,104:st},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(yt,[2,11]),{13:186,51:U,53:Y,54:G},e(yt,[2,13]),e(yt,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:st},{58:196,104:st},{58:197,104:st},{5:[2,75]},{58:198,104:st},{23:199,73:W},{5:[2,58]},{5:[2,59]},{23:200,73:W},e(yt,[2,12]),e(_e,i,{7:124,41:201}),e(Mt,i,{7:126,43:202}),e(ue,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Bt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:st},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:r.__name(function(N,D){if(D.recoverable)this.trace(N);else{var P=new Error(N);throw P.hash=D,P}},"parseError"),parse:r.__name(function(N){var D=this,P=[0],I=[],z=[null],l=[],Rt=this.table,p="",At=0,fe=0,ve=2,ge=1,Me=l.slice.call(arguments,1),J=Object.create(this.lexer),pt={yy:{}};for(var Yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Yt)&&(pt.yy[Yt]=this.yy[Yt]);J.setInput(N,pt.yy),pt.yy.lexer=J,pt.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var Wt=J.yylloc;l.push(Wt);var Be=J.options&&J.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ve(rt){P.length=P.length-2*rt,z.length=z.length-rt,l.length=l.length-rt}r.__name(Ve,"popStack");function me(){var rt;return rt=I.pop()||J.lex()||ge,typeof rt!="number"&&(rt instanceof Array&&(I=rt,rt=I.pop()),rt=D.symbols_[rt]||rt),rt}r.__name(me,"lex");for(var tt,Et,nt,Kt,gt={},Nt,ot,xe,wt;;){if(Et=P[P.length-1],this.defaultActions[Et]?nt=this.defaultActions[Et]:((tt===null||typeof tt>"u")&&(tt=me()),nt=Rt[Et]&&Rt[Et][tt]),typeof nt>"u"||!nt.length||!nt[0]){var Ft="";wt=[];for(Nt in Rt[Et])this.terminals_[Nt]&&Nt>ve&&wt.push("'"+this.terminals_[Nt]+"'");J.showPosition?Ft="Parse error on line "+(At+1)+`:
|
|
2
2
|
`+J.showPosition()+`
|
|
3
3
|
Expecting `+wt.join(", ")+", got '"+(this.terminals_[tt]||tt)+"'":Ft="Parse error on line "+(At+1)+": Unexpected "+(tt==ge?"end of input":"'"+(this.terminals_[tt]||tt)+"'"),this.parseError(Ft,{text:J.match,token:this.terminals_[tt]||tt,line:J.yylineno,loc:Wt,expected:wt})}if(nt[0]instanceof Array&&nt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+tt);switch(nt[0]){case 1:P.push(tt),z.push(J.yytext),l.push(J.yylloc),P.push(nt[1]),tt=null,fe=J.yyleng,p=J.yytext,At=J.yylineno,Wt=J.yylloc;break;case 2:if(ot=this.productions_[nt[1]][1],gt.$=z[z.length-ot],gt._$={first_line:l[l.length-(ot||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ot||1)].first_column,last_column:l[l.length-1].last_column},Be&&(gt._$.range=[l[l.length-(ot||1)].range[0],l[l.length-1].range[1]]),Kt=this.performAction.apply(gt,[p,fe,At,pt.yy,nt[1],z,l].concat(Me)),typeof Kt<"u")return Kt;ot&&(P=P.slice(0,-1*ot*2),z=z.slice(0,-1*ot),l=l.slice(0,-1*ot)),P.push(this.productions_[nt[1]][0]),z.push(gt.$),l.push(gt._$),xe=Rt[P[P.length-2]][P[P.length-1]],P.push(xe);break;case 3:return!0}}return!0},"parse")},Ce=function(){var dt={EOF:1,parseError:r.__name(function(D,P){if(this.yy.parser)this.yy.parser.parseError(D,P);else throw new Error(D)},"parseError"),setInput:r.__name(function(N,D){return this.yy=D||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},"setInput"),input:r.__name(function(){var N=this._input[0];this.yytext+=N,this.yyleng++,this.offset++,this.match+=N,this.matched+=N;var D=N.match(/(?:\r\n?|\n).*/g);return D?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),N},"input"),unput:r.__name(function(N){var D=N.length,P=N.split(/(?:\r\n?|\n)/g);this._input=N+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-D),this.offset-=D;var I=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),P.length-1&&(this.yylineno-=P.length-1);var z=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:P?(P.length===I.length?this.yylloc.first_column:0)+I[I.length-P.length].length-P[0].length:this.yylloc.first_column-D},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-D]),this.yyleng=this.yytext.length,this},"unput"),more:r.__name(function(){return this._more=!0,this},"more"),reject:r.__name(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},"reject"),less:r.__name(function(N){this.unput(this.match.slice(N))},"less"),pastInput:r.__name(function(){var N=this.matched.substr(0,this.matched.length-this.match.length);return(N.length>20?"...":"")+N.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r.__name(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,"")},"upcomingInput"),showPosition:r.__name(function(){var N=this.pastInput(),D=new Array(N.length+1).join("-");return N+this.upcomingInput()+`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as g, b1 as er, a2 as j, aZ as Bt, aB as st, aY as Me, E as rr, k as ar, z as P, b0 as De, a$ as sr, b2 as ir, a0 as nr, $ as or, a3 as cr, aA as lr, J as hr, t as dr, aX as Vt, bj as Z, ag as $, o as mt, aK as Be, Z as Tr, a1 as Wt, ad as pr, aU as Ve } from "./mermaid.core-
|
|
2
|
-
import { d as Er, h as re, g as dt, e as ur, a as ae, b as se } from "./chunk-ND2GUHAM-
|
|
3
|
-
import { I as fr } from "./chunk-QZHKN3VN-
|
|
1
|
+
import { b as g, b1 as er, a2 as j, aZ as Bt, aB as st, aY as Me, E as rr, k as ar, z as P, b0 as De, a$ as sr, b2 as ir, a0 as nr, $ as or, a3 as cr, aA as lr, J as hr, t as dr, aX as Vt, bj as Z, ag as $, o as mt, aK as Be, Z as Tr, a1 as Wt, ad as pr, aU as Ve } from "./mermaid.core-Cc1KxlCM.js";
|
|
2
|
+
import { d as Er, h as re, g as dt, e as ur, a as ae, b as se } from "./chunk-ND2GUHAM-dJ5LgRGw.js";
|
|
3
|
+
import { I as fr } from "./chunk-QZHKN3VN-ChUvXVo2.js";
|
|
4
4
|
var jt = function() {
|
|
5
5
|
var e = /* @__PURE__ */ g(function(ut, N, v, k) {
|
|
6
6
|
for (v = v || {}, k = ut.length; k--; v[ut[k]] = N) ;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./chunk-AQP2D5EJ-lO8iIlJc.cjs"),t=require("./mermaid.core-BBvOg7Qw.cjs"),T=require("./graph-V5BNIbHU.cjs"),H=require("./layout-Dh52gsIJ.cjs");var z=t.__name(e=>e.append("circle").attr("class","start-state").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit),"drawStartState"),L=t.__name(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t.getConfig2().state.textHeight).attr("class","divider").attr("x2",t.getConfig2().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),A=t.__name((e,n)=>{const d=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+2*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),g=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",g.width+2*t.getConfig2().state.padding).attr("height",g.height+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),d},"drawSimpleState"),P=t.__name((e,n)=>{const d=t.__name(function(s,m,u){const B=s.append("tspan").attr("x",2*t.getConfig2().state.padding).text(m);u||B.attr("dy",t.getConfig2().state.textHeight)},"addTspan"),o=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+1.3*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),l=o.height,h=e.append("text").attr("x",t.getConfig2().state.padding).attr("y",l+t.getConfig2().state.padding*.4+t.getConfig2().state.dividerMargin+t.getConfig2().state.textHeight).attr("class","state-description");let i=!0,r=!0;n.descriptions.forEach(function(s){i||(d(h,s,r),r=!1),i=!1});const y=e.append("line").attr("x1",t.getConfig2().state.padding).attr("y1",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("y2",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("class","descr-divider"),p=h.node().getBBox(),c=Math.max(p.width,o.width);return y.attr("x2",c+3*t.getConfig2().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",c+2*t.getConfig2().state.padding).attr("height",p.height+l+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),e},"drawDescrState"),G=t.__name((e,n,d)=>{const g=t.getConfig2().state.padding,o=2*t.getConfig2().state.padding,l=e.node().getBBox(),h=l.width,i=l.x,r=e.append("text").attr("x",0).attr("y",t.getConfig2().state.titleShift).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),p=r.node().getBBox().width+o;let c=Math.max(p,h);c===h&&(c=c+o);let s;const m=e.node().getBBox();n.doc,s=i-g,p>h&&(s=(h-c)/2+g),Math.abs(i-m.x)<g&&p>h&&(s=i-(p-h)/2);const u=1-t.getConfig2().state.textHeight;return e.insert("rect",":first-child").attr("x",s).attr("y",u).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",m.height+t.getConfig2().state.textHeight+t.getConfig2().state.titleShift+1).attr("rx","0"),r.attr("x",s+g),p<=h&&r.attr("x",i+(c-o)/2-p/2+g),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",t.getConfig2().state.textHeight*3).attr("rx",t.getConfig2().state.radius),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",m.height+3+2*t.getConfig2().state.textHeight).attr("rx",t.getConfig2().state.radius),e},"addTitleAndBox"),R=t.__name(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2)),"drawEndState"),W=t.__name((e,n)=>{let d=t.getConfig2().state.forkWidth,g=t.getConfig2().state.forkHeight;if(n.parentId){let o=d;d=g,g=o}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",g).attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding)},"drawForkJoinState"),D=t.__name((e,n,d,g)=>{let o=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(t.common_default.lineBreakRegex);let r=1.25*t.getConfig2().state.noteMargin;for(const y of i){const p=y.trim();if(p.length>0){const c=l.append("tspan");if(c.text(p),r===0){const s=c.node().getBBox();r+=s.height}o+=r,c.attr("x",n+t.getConfig2().state.noteMargin),c.attr("y",d+o+1.25*t.getConfig2().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:o}},"_drawLongText"),U=t.__name((e,n)=>{n.attr("class","state-note");const d=n.append("rect").attr("x",0).attr("y",t.getConfig2().state.padding),g=n.append("g"),{textWidth:o,textHeight:l}=D(e,0,0,g);return d.attr("height",l+2*t.getConfig2().state.noteMargin),d.attr("width",o+t.getConfig2().state.noteMargin*2),d},"drawNote"),k=t.__name(function(e,n){const d=n.id,g={id:d,label:n.id,width:0,height:0},o=e.append("g").attr("id",d).attr("class","stateGroup");n.type==="start"&&z(o),n.type==="end"&&R(o),(n.type==="fork"||n.type==="join")&&W(o,n),n.type==="note"&&U(n.note.text,o),n.type==="divider"&&L(o),n.type==="default"&&n.descriptions.length===0&&A(o,n),n.type==="default"&&n.descriptions.length>0&&P(o,n);const l=o.node().getBBox();return g.width=l.width+2*t.getConfig2().state.padding,g.height=l.height+2*t.getConfig2().state.padding,g},"drawState"),N=0,$=t.__name(function(e,n,d){const g=t.__name(function(r){switch(r){case S.StateDB.relationType.AGGREGATION:return"aggregation";case S.StateDB.relationType.EXTENSION:return"extension";case S.StateDB.relationType.COMPOSITION:return"composition";case S.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(r=>!Number.isNaN(r.y));const o=n.points,l=t.line().x(function(r){return r.x}).y(function(r){return r.y}).curve(t.curveBasis),h=e.append("path").attr("d",l(o)).attr("id","edge"+N).attr("class","transition");let i="";if(t.getConfig2().state.arrowMarkerAbsolute&&(i=t.getUrl(!0)),h.attr("marker-end","url("+i+"#"+g(S.StateDB.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:p}=t.utils_default.calcLabelPosition(n.points),c=t.common_default.getRows(d.title);let s=0;const m=[];let u=0,B=0;for(let x=0;x<=c.length;x++){const f=r.append("text").attr("text-anchor","middle").text(c[x]).attr("x",y).attr("y",p+s),C=f.node().getBBox();u=Math.max(u,C.width),B=Math.min(B,C.x),t.log.info(C.x,y,p+s),s===0&&(s=f.node().getBBox().height,t.log.info("Title height",s,p)),m.push(f)}let _=s*c.length;if(c.length>1){const x=(c.length-1)*s*.5;m.forEach((f,C)=>f.attr("y",p+C*s-x)),_=s*c.length}const a=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-u/2-t.getConfig2().state.padding/2).attr("y",p-_/2-t.getConfig2().state.padding/2-3.5).attr("width",u+t.getConfig2().state.padding).attr("height",_+t.getConfig2().state.padding),t.log.info(a)}N++},"drawEdge"),w,E={},F=t.__name(function(){},"setConf"),O=t.__name(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")},"insertMarkers"),J=t.__name(function(e,n,d,g){w=t.getConfig2().state;const o=t.getConfig2().securityLevel;let l;o==="sandbox"&&(l=t.select("#i"+n));const h=o==="sandbox"?t.select(l.nodes()[0].contentDocument.body):t.select("body"),i=o==="sandbox"?l.nodes()[0].contentDocument:document;t.log.debug("Rendering diagram "+e);const r=h.select(`[id='${n}']`);O(r);const y=g.db.getRootDoc(),p=r.append("g").attr("id",n+"-root");M(y,p,void 0,!1,h,i,g);const c=w.padding,s=r.node().getBBox(),m=s.width+c*2,u=s.height+c*2,B=m*1.75;t.configureSvgSize(r,u,B,w.useMaxWidth),r.attr("viewBox",`${s.x-w.padding} ${s.y-w.padding} `+m+" "+u)},"draw"),q=t.__name(e=>e?e.length*w.fontSizeFactor:1,"getLabelWidth"),M=t.__name((e,n,d,g,o,l,h)=>{const i=new T.Graph({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}d?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:w.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:w.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const p=h.db.getStates(),c=h.db.getRelations(),s=Object.keys(p);for(const a of s){const x=p[a];d&&(x.parentId=d);let f;if(x.doc){let C=n.append("g").attr("id",x.id).attr("class","stateGroup");f=M(x.doc,C,x.id,!g,o,l,h);{C=G(C,x,g);let b=C.node().getBBox();f.width=b.width,f.height=b.height+w.padding/2,E[x.id]={y:w.compositTitleSize}}}else f=k(n,x,i);if(x.note){const C={descriptions:[],id:x.id+"-note",note:x.note,type:"note"},b=k(n,C,i);x.note.position==="left of"?(i.setNode(f.id+"-note",b),i.setNode(f.id,f)):(i.setNode(f.id,f),i.setNode(f.id+"-note",b)),i.setParent(f.id,f.id+"-group"),i.setParent(f.id+"-note",f.id+"-group")}else i.setNode(f.id,f)}t.log.debug("Count=",i.nodeCount(),i);let m=0;c.forEach(function(a){m++,t.log.debug("Setting edge",a),i.setEdge(a.id1,a.id2,{relation:a,width:q(a.title),height:w.labelHeight*t.common_default.getRows(a.title).length,labelpos:"c"},"id"+m)}),H.layout(i),t.log.debug("Graph after layout",i.nodes());const u=n.node();i.nodes().forEach(function(a){a!==void 0&&i.node(a)!==void 0?(t.log.warn("Node "+a+": "+JSON.stringify(i.node(a))),o.select("#"+u.id+" #"+a).attr("transform","translate("+(i.node(a).x-i.node(a).width/2)+","+(i.node(a).y+(E[a]?E[a].y:0)-i.node(a).height/2)+" )"),o.select("#"+u.id+" #"+a).attr("data-x-shift",i.node(a).x-i.node(a).width/2),l.querySelectorAll("#"+u.id+" #"+a+" .divider").forEach(f=>{const C=f.parentElement;let b=0,v=0;C&&(C.parentElement&&(b=C.parentElement.getBBox().width),v=parseInt(C.getAttribute("data-x-shift"),10),Number.isNaN(v)&&(v=0)),f.setAttribute("x1",0-v+8),f.setAttribute("x2",b-v-8)})):t.log.debug("No Node "+a+": "+JSON.stringify(i.node(a)))});let B=u.getBBox();i.edges().forEach(function(a){a!==void 0&&i.edge(a)!==void 0&&(t.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(i.edge(a))),$(n,i.edge(a),i.edge(a).relation))}),B=u.getBBox();const _={id:d||"root",label:d||"root",width:0,height:0};return _.width=B.width+2*w.padding,_.height=B.height+2*w.padding,t.log.debug("Doc rendered",_,i),_},"renderDoc"),X={setConf:F,draw:J},Y={parser:S.stateDiagram_default,get db(){return new S.StateDB(1)},renderer:X,styles:S.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=Y;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./chunk-AQP2D5EJ-DEFjJjvF.cjs"),t=require("./mermaid.core-BTaTUIUu.cjs"),T=require("./graph-V5BNIbHU.cjs"),H=require("./layout-Dh52gsIJ.cjs");var z=t.__name(e=>e.append("circle").attr("class","start-state").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit),"drawStartState"),L=t.__name(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t.getConfig2().state.textHeight).attr("class","divider").attr("x2",t.getConfig2().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),A=t.__name((e,n)=>{const d=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+2*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),g=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",g.width+2*t.getConfig2().state.padding).attr("height",g.height+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),d},"drawSimpleState"),P=t.__name((e,n)=>{const d=t.__name(function(s,m,u){const B=s.append("tspan").attr("x",2*t.getConfig2().state.padding).text(m);u||B.attr("dy",t.getConfig2().state.textHeight)},"addTspan"),o=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+1.3*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),l=o.height,h=e.append("text").attr("x",t.getConfig2().state.padding).attr("y",l+t.getConfig2().state.padding*.4+t.getConfig2().state.dividerMargin+t.getConfig2().state.textHeight).attr("class","state-description");let i=!0,r=!0;n.descriptions.forEach(function(s){i||(d(h,s,r),r=!1),i=!1});const y=e.append("line").attr("x1",t.getConfig2().state.padding).attr("y1",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("y2",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("class","descr-divider"),p=h.node().getBBox(),c=Math.max(p.width,o.width);return y.attr("x2",c+3*t.getConfig2().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",c+2*t.getConfig2().state.padding).attr("height",p.height+l+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),e},"drawDescrState"),G=t.__name((e,n,d)=>{const g=t.getConfig2().state.padding,o=2*t.getConfig2().state.padding,l=e.node().getBBox(),h=l.width,i=l.x,r=e.append("text").attr("x",0).attr("y",t.getConfig2().state.titleShift).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),p=r.node().getBBox().width+o;let c=Math.max(p,h);c===h&&(c=c+o);let s;const m=e.node().getBBox();n.doc,s=i-g,p>h&&(s=(h-c)/2+g),Math.abs(i-m.x)<g&&p>h&&(s=i-(p-h)/2);const u=1-t.getConfig2().state.textHeight;return e.insert("rect",":first-child").attr("x",s).attr("y",u).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",m.height+t.getConfig2().state.textHeight+t.getConfig2().state.titleShift+1).attr("rx","0"),r.attr("x",s+g),p<=h&&r.attr("x",i+(c-o)/2-p/2+g),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",t.getConfig2().state.textHeight*3).attr("rx",t.getConfig2().state.radius),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",m.height+3+2*t.getConfig2().state.textHeight).attr("rx",t.getConfig2().state.radius),e},"addTitleAndBox"),R=t.__name(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2)),"drawEndState"),W=t.__name((e,n)=>{let d=t.getConfig2().state.forkWidth,g=t.getConfig2().state.forkHeight;if(n.parentId){let o=d;d=g,g=o}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",g).attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding)},"drawForkJoinState"),D=t.__name((e,n,d,g)=>{let o=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(t.common_default.lineBreakRegex);let r=1.25*t.getConfig2().state.noteMargin;for(const y of i){const p=y.trim();if(p.length>0){const c=l.append("tspan");if(c.text(p),r===0){const s=c.node().getBBox();r+=s.height}o+=r,c.attr("x",n+t.getConfig2().state.noteMargin),c.attr("y",d+o+1.25*t.getConfig2().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:o}},"_drawLongText"),U=t.__name((e,n)=>{n.attr("class","state-note");const d=n.append("rect").attr("x",0).attr("y",t.getConfig2().state.padding),g=n.append("g"),{textWidth:o,textHeight:l}=D(e,0,0,g);return d.attr("height",l+2*t.getConfig2().state.noteMargin),d.attr("width",o+t.getConfig2().state.noteMargin*2),d},"drawNote"),k=t.__name(function(e,n){const d=n.id,g={id:d,label:n.id,width:0,height:0},o=e.append("g").attr("id",d).attr("class","stateGroup");n.type==="start"&&z(o),n.type==="end"&&R(o),(n.type==="fork"||n.type==="join")&&W(o,n),n.type==="note"&&U(n.note.text,o),n.type==="divider"&&L(o),n.type==="default"&&n.descriptions.length===0&&A(o,n),n.type==="default"&&n.descriptions.length>0&&P(o,n);const l=o.node().getBBox();return g.width=l.width+2*t.getConfig2().state.padding,g.height=l.height+2*t.getConfig2().state.padding,g},"drawState"),N=0,$=t.__name(function(e,n,d){const g=t.__name(function(r){switch(r){case S.StateDB.relationType.AGGREGATION:return"aggregation";case S.StateDB.relationType.EXTENSION:return"extension";case S.StateDB.relationType.COMPOSITION:return"composition";case S.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(r=>!Number.isNaN(r.y));const o=n.points,l=t.line().x(function(r){return r.x}).y(function(r){return r.y}).curve(t.curveBasis),h=e.append("path").attr("d",l(o)).attr("id","edge"+N).attr("class","transition");let i="";if(t.getConfig2().state.arrowMarkerAbsolute&&(i=t.getUrl(!0)),h.attr("marker-end","url("+i+"#"+g(S.StateDB.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:p}=t.utils_default.calcLabelPosition(n.points),c=t.common_default.getRows(d.title);let s=0;const m=[];let u=0,B=0;for(let x=0;x<=c.length;x++){const f=r.append("text").attr("text-anchor","middle").text(c[x]).attr("x",y).attr("y",p+s),C=f.node().getBBox();u=Math.max(u,C.width),B=Math.min(B,C.x),t.log.info(C.x,y,p+s),s===0&&(s=f.node().getBBox().height,t.log.info("Title height",s,p)),m.push(f)}let _=s*c.length;if(c.length>1){const x=(c.length-1)*s*.5;m.forEach((f,C)=>f.attr("y",p+C*s-x)),_=s*c.length}const a=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-u/2-t.getConfig2().state.padding/2).attr("y",p-_/2-t.getConfig2().state.padding/2-3.5).attr("width",u+t.getConfig2().state.padding).attr("height",_+t.getConfig2().state.padding),t.log.info(a)}N++},"drawEdge"),w,E={},F=t.__name(function(){},"setConf"),O=t.__name(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")},"insertMarkers"),J=t.__name(function(e,n,d,g){w=t.getConfig2().state;const o=t.getConfig2().securityLevel;let l;o==="sandbox"&&(l=t.select("#i"+n));const h=o==="sandbox"?t.select(l.nodes()[0].contentDocument.body):t.select("body"),i=o==="sandbox"?l.nodes()[0].contentDocument:document;t.log.debug("Rendering diagram "+e);const r=h.select(`[id='${n}']`);O(r);const y=g.db.getRootDoc(),p=r.append("g").attr("id",n+"-root");M(y,p,void 0,!1,h,i,g);const c=w.padding,s=r.node().getBBox(),m=s.width+c*2,u=s.height+c*2,B=m*1.75;t.configureSvgSize(r,u,B,w.useMaxWidth),r.attr("viewBox",`${s.x-w.padding} ${s.y-w.padding} `+m+" "+u)},"draw"),q=t.__name(e=>e?e.length*w.fontSizeFactor:1,"getLabelWidth"),M=t.__name((e,n,d,g,o,l,h)=>{const i=new T.Graph({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}d?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:w.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:w.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const p=h.db.getStates(),c=h.db.getRelations(),s=Object.keys(p);for(const a of s){const x=p[a];d&&(x.parentId=d);let f;if(x.doc){let C=n.append("g").attr("id",x.id).attr("class","stateGroup");f=M(x.doc,C,x.id,!g,o,l,h);{C=G(C,x,g);let b=C.node().getBBox();f.width=b.width,f.height=b.height+w.padding/2,E[x.id]={y:w.compositTitleSize}}}else f=k(n,x,i);if(x.note){const C={descriptions:[],id:x.id+"-note",note:x.note,type:"note"},b=k(n,C,i);x.note.position==="left of"?(i.setNode(f.id+"-note",b),i.setNode(f.id,f)):(i.setNode(f.id,f),i.setNode(f.id+"-note",b)),i.setParent(f.id,f.id+"-group"),i.setParent(f.id+"-note",f.id+"-group")}else i.setNode(f.id,f)}t.log.debug("Count=",i.nodeCount(),i);let m=0;c.forEach(function(a){m++,t.log.debug("Setting edge",a),i.setEdge(a.id1,a.id2,{relation:a,width:q(a.title),height:w.labelHeight*t.common_default.getRows(a.title).length,labelpos:"c"},"id"+m)}),H.layout(i),t.log.debug("Graph after layout",i.nodes());const u=n.node();i.nodes().forEach(function(a){a!==void 0&&i.node(a)!==void 0?(t.log.warn("Node "+a+": "+JSON.stringify(i.node(a))),o.select("#"+u.id+" #"+a).attr("transform","translate("+(i.node(a).x-i.node(a).width/2)+","+(i.node(a).y+(E[a]?E[a].y:0)-i.node(a).height/2)+" )"),o.select("#"+u.id+" #"+a).attr("data-x-shift",i.node(a).x-i.node(a).width/2),l.querySelectorAll("#"+u.id+" #"+a+" .divider").forEach(f=>{const C=f.parentElement;let b=0,v=0;C&&(C.parentElement&&(b=C.parentElement.getBBox().width),v=parseInt(C.getAttribute("data-x-shift"),10),Number.isNaN(v)&&(v=0)),f.setAttribute("x1",0-v+8),f.setAttribute("x2",b-v-8)})):t.log.debug("No Node "+a+": "+JSON.stringify(i.node(a)))});let B=u.getBBox();i.edges().forEach(function(a){a!==void 0&&i.edge(a)!==void 0&&(t.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(i.edge(a))),$(n,i.edge(a),i.edge(a).relation))}),B=u.getBBox();const _={id:d||"root",label:d||"root",width:0,height:0};return _.width=B.width+2*w.padding,_.height=B.height+2*w.padding,t.log.debug("Doc rendered",_,i),_},"renderDoc"),X={setConf:F,draw:J},Y={parser:S.stateDiagram_default,get db(){return new S.StateDB(1)},renderer:X,styles:S.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=Y;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as R, s as W, S as N } from "./chunk-AQP2D5EJ-
|
|
2
|
-
import { b as f, a2 as t, aZ as H, aB as S, E as P, z, ay as C, K as U, ad as _, bj as $ } from "./mermaid.core-
|
|
1
|
+
import { b as R, s as W, S as N } from "./chunk-AQP2D5EJ-B5tlMkxW.js";
|
|
2
|
+
import { b as f, a2 as t, aZ as H, aB as S, E as P, z, ay as C, K as U, ad as _, bj as $ } from "./mermaid.core-Cc1KxlCM.js";
|
|
3
3
|
import { G as F } from "./graph-CBizzZ7K.js";
|
|
4
4
|
import { l as O } from "./layout-CbksXFOD.js";
|
|
5
5
|
var J = /* @__PURE__ */ 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), "drawStartState"), X = /* @__PURE__ */ f((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), "drawDivider"), D = /* @__PURE__ */ f((e, i) => {
|
package/dist/{stateDiagram-v2-BHNVJYJU-CxdPvM6i.cjs → stateDiagram-v2-BHNVJYJU-Cf7QVlcI.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-AQP2D5EJ-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-AQP2D5EJ-DEFjJjvF.cjs"),t=require("./mermaid.core-BTaTUIUu.cjs");var a={parser:r.stateDiagram_default,get db(){return new r.StateDB(2)},renderer:r.stateRenderer_v3_unified_default,styles:r.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as e, a as r, s as t, S as s } from "./chunk-AQP2D5EJ-
|
|
2
|
-
import { b as i } from "./mermaid.core-
|
|
1
|
+
import { b as e, a as r, s as t, S as s } from "./chunk-AQP2D5EJ-B5tlMkxW.js";
|
|
2
|
+
import { b as i } from "./mermaid.core-Cc1KxlCM.js";
|
|
3
3
|
var m = {
|
|
4
4
|
parser: t,
|
|
5
5
|
get db() {
|
package/dist/{timeline-definition-PNZ67QCA-CBEIY1Lw.cjs → timeline-definition-PNZ67QCA-DZfQpSWh.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./mermaid.core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./mermaid.core-BTaTUIUu.cjs"),st=require("./arc-DtBHZfqY.cjs");var j=function(){var e=r.__name(function(x,s,h,d){for(h=h||{},d=x.length;d--;h[x[d]]=s);return h},"o"),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],a=[1,14],c=[1,15],o=[1,16],l=[1,19],g=[1,20],_={trace:r.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:r.__name(function(s,h,d,p,m,u,w){var k=u.length-1;switch(m){case 1:return u[k-1];case 3:p.setDirection("LR");break;case 4:p.setDirection("TD");break;case 5:this.$=[];break;case 6:u[k-1].push(u[k]),this.$=u[k-1];break;case 7:case 8:this.$=u[k];break;case 9:case 10:this.$=[];break;case 11:p.getCommonDb().setDiagramTitle(u[k].substr(6)),this.$=u[k].substr(6);break;case 12:this.$=u[k].trim(),p.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[k].trim(),p.getCommonDb().setAccDescription(this.$);break;case 15:p.addSection(u[k].substr(8)),this.$=u[k].substr(8);break;case 18:p.addTask(u[k],0,""),this.$=u[k];break;case 19:p.addEvent(u[k].substr(2)),this.$=u[k];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:a,19:c,20:o,21:17,22:18,23:l,24:g},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:i,17:a,19:c,20:o,21:17,22:18,23:l,24:g},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:r.__name(function(s,h){if(h.recoverable)this.trace(s);else{var d=new Error(s);throw d.hash=h,d}},"parseError"),parse:r.__name(function(s){var h=this,d=[0],p=[],m=[null],u=[],w=this.table,k="",L=0,C=0,W=2,B=1,H=u.slice.call(arguments,1),b=Object.create(this.lexer),A={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(A.yy[V]=this.yy[V]);b.setInput(s,A.yy),A.yy.lexer=b,A.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var F=b.yylloc;u.push(F);var X=b.options&&b.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function D(M){d.length=d.length-2*M,m.length=m.length-M,u.length=u.length-M}r.__name(D,"popStack");function G(){var M;return M=p.pop()||b.lex()||B,typeof M!="number"&&(M instanceof Array&&(p=M,M=p.pop()),M=h.symbols_[M]||M),M}r.__name(G,"lex");for(var $,T,v,E,S={},I,N,P,O;;){if(T=d[d.length-1],this.defaultActions[T]?v=this.defaultActions[T]:(($===null||typeof $>"u")&&($=G()),v=w[T]&&w[T][$]),typeof v>"u"||!v.length||!v[0]){var q="";O=[];for(I in w[T])this.terminals_[I]&&I>W&&O.push("'"+this.terminals_[I]+"'");b.showPosition?q="Parse error on line "+(L+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+O.join(", ")+", got '"+(this.terminals_[$]||$)+"'":q="Parse error on line "+(L+1)+": Unexpected "+($==B?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[$]||$,line:b.yylineno,loc:F,expected:O})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+$);switch(v[0]){case 1:d.push($),m.push(b.yytext),u.push(b.yylloc),d.push(v[1]),$=null,C=b.yyleng,k=b.yytext,L=b.yylineno,F=b.yylloc;break;case 2:if(N=this.productions_[v[1]][1],S.$=m[m.length-N],S._$={first_line:u[u.length-(N||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(N||1)].first_column,last_column:u[u.length-1].last_column},X&&(S._$.range=[u[u.length-(N||1)].range[0],u[u.length-1].range[1]]),E=this.performAction.apply(S,[k,C,L,A.yy,v[1],m,u].concat(H)),typeof E<"u")return E;N&&(d=d.slice(0,-1*N*2),m=m.slice(0,-1*N),u=u.slice(0,-1*N)),d.push(this.productions_[v[1]][0]),m.push(S.$),u.push(S._$),P=w[d[d.length-2]][d[d.length-1]],d.push(P);break;case 3:return!0}}return!0},"parse")},y=function(){var x={EOF:1,parseError:r.__name(function(h,d){if(this.yy.parser)this.yy.parser.parseError(h,d);else throw new Error(h)},"parseError"),setInput:r.__name(function(s,h){return this.yy=h||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var h=s.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:r.__name(function(s){var h=s.length,d=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var p=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),d.length-1&&(this.yylineno-=d.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===p.length?this.yylloc.first_column:0)+p[p.length-d.length].length-d[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:r.__name(function(){return this._more=!0,this},"more"),reject:r.__name(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},"reject"),less:r.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:r.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r.__name(function(){var s=this.pastInput(),h=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
package/dist/{timeline-definition-PNZ67QCA-By7osiII.js → timeline-definition-PNZ67QCA-Iy3R3U3O.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as l, a1 as pt, as as Wt, ax as Pt, L as Bt, a2 as gt, aB as S, a_ as Vt, aK as Ft, b5 as ft, aZ as J, _ as zt, y as Gt, t as Ot } from "./mermaid.core-
|
|
2
|
-
import { d as ot } from "./arc-
|
|
1
|
+
import { b as l, a1 as pt, as as Wt, ax as Pt, L as Bt, a2 as gt, aB as S, a_ as Vt, aK as Ft, b5 as ft, aZ as J, _ as zt, y as Gt, t as Ot } from "./mermaid.core-Cc1KxlCM.js";
|
|
2
|
+
import { d as ot } from "./arc-D0KfcB3y.js";
|
|
3
3
|
var tt = function() {
|
|
4
4
|
var e = /* @__PURE__ */ l(function(k, s, d, h) {
|
|
5
5
|
for (d = d || {}, h = k.length; h--; d[k[h]] = s) ;
|