@wandox/sdk 0.1.19 → 0.1.21
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 +29 -0
- package/dist/{arc-SQsZ4u7K.cjs → arc-Ddodb8Tc.cjs} +1 -1
- package/dist/{arc-DaPmdAfd.js → arc-XN3h9pRA.js} +1 -1
- package/dist/{architectureDiagram-3BPJPVTR-CY_Zhokf.cjs → architectureDiagram-3BPJPVTR-CTD1hQLm.cjs} +1 -1
- package/dist/{architectureDiagram-3BPJPVTR-CiVRbJxc.js → architectureDiagram-3BPJPVTR-DrWt8gkz.js} +3 -3
- package/dist/{blockDiagram-GPEHLZMM-B3skTQ_9.js → blockDiagram-GPEHLZMM-B7kKMd4l.js} +3 -3
- package/dist/{blockDiagram-GPEHLZMM-DGg-34ev.cjs → blockDiagram-GPEHLZMM-BYnNpiwz.cjs} +1 -1
- package/dist/{c4Diagram-AAUBKEIU-fxS4LQbk.cjs → c4Diagram-AAUBKEIU-B6Fma4qi.cjs} +1 -1
- package/dist/{c4Diagram-AAUBKEIU-XkJIJ5Md.js → c4Diagram-AAUBKEIU-CEyPy7kF.js} +2 -2
- package/dist/{channel-DvHasxpt.cjs → channel-B4i0p3IJ.cjs} +1 -1
- package/dist/{channel-7ImkV_qz.js → channel-DIeK39yp.js} +1 -1
- package/dist/{chunk-2J33WTMH-aO4J8T1s.js → chunk-2J33WTMH-CAflLueA.js} +1 -1
- package/dist/{chunk-2J33WTMH-kq01c1f3.cjs → chunk-2J33WTMH-C_ZRd2Zc.cjs} +1 -1
- package/dist/{chunk-4BX2VUAB-mbPFdmVA.js → chunk-4BX2VUAB-DdhaqGqW.js} +1 -1
- package/dist/{chunk-4BX2VUAB-Cn_J9DwH.cjs → chunk-4BX2VUAB-EVMMR7aG.cjs} +1 -1
- package/dist/{chunk-55IACEB6-CXPU9qBV.cjs → chunk-55IACEB6-CjcizxjM.cjs} +1 -1
- package/dist/{chunk-55IACEB6-BtoOftmv.js → chunk-55IACEB6-D7rNUziE.js} +1 -1
- package/dist/{chunk-727SXJPM-Dl3_C1Eg.cjs → chunk-727SXJPM-BJySqWSA.cjs} +1 -1
- package/dist/{chunk-727SXJPM-Dy-a_ZJO.js → chunk-727SXJPM-BYS_tq6G.js} +5 -5
- package/dist/{chunk-AQP2D5EJ-LsckRuX6.cjs → chunk-AQP2D5EJ-BCqzHW6w.cjs} +1 -1
- package/dist/{chunk-AQP2D5EJ-CvAxF9lu.js → chunk-AQP2D5EJ-Cs8BaJRG.js} +3 -3
- package/dist/{chunk-FMBD7UC4-K-3rSCcu.js → chunk-FMBD7UC4-3usx0hEd.js} +1 -1
- package/dist/{chunk-FMBD7UC4-Zp34yF-h.cjs → chunk-FMBD7UC4-CP29U0Px.cjs} +1 -1
- package/dist/{chunk-ND2GUHAM-DVqsEOpB.cjs → chunk-ND2GUHAM-D82treg6.cjs} +1 -1
- package/dist/{chunk-ND2GUHAM-CXsdX7qw.js → chunk-ND2GUHAM-DEUWOag9.js} +1 -1
- package/dist/{chunk-QZHKN3VN-D2JAaUCY.cjs → chunk-QZHKN3VN-Qw_nTfts.cjs} +1 -1
- package/dist/{chunk-QZHKN3VN-Cxtdm3Nj.js → chunk-QZHKN3VN-ohvr9tJv.js} +1 -1
- package/dist/{classDiagram-4FO5ZUOK-C7hYn0dq.js → classDiagram-4FO5ZUOK-B3Uduxzj.js} +2 -2
- package/dist/{classDiagram-4FO5ZUOK-C1Y1hQmf.cjs → classDiagram-4FO5ZUOK-CrNEMUda.cjs} +1 -1
- package/dist/{classDiagram-v2-Q7XG4LA2-DCY_A-0k.js → classDiagram-v2-Q7XG4LA2-Cgm8fXAf.js} +2 -2
- package/dist/{classDiagram-v2-Q7XG4LA2-C1Y1hQmf.cjs → classDiagram-v2-Q7XG4LA2-CrNEMUda.cjs} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-BjlEAv4w.cjs → cose-bilkent-S5V4N54A-BF79ijyc.cjs} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-f-FkFthF.js → cose-bilkent-S5V4N54A-DzOxjIrz.js} +2 -2
- package/dist/{dagre-BM42HDAG-3ek016kS.cjs → dagre-BM42HDAG-BRmwRjJz.cjs} +1 -1
- package/dist/{dagre-BM42HDAG-BnGV_d9n.js → dagre-BM42HDAG-CbSW7EEE.js} +1 -1
- package/dist/{diagram-2AECGRRQ-BQmWwgGE.cjs → diagram-2AECGRRQ-QFa-eQgm.cjs} +1 -1
- package/dist/{diagram-2AECGRRQ-C6tdpFV0.js → diagram-2AECGRRQ-r0gEb7SP.js} +2 -2
- package/dist/{diagram-5GNKFQAL-0IOVjbtb.js → diagram-5GNKFQAL-0cwpxHRQ.js} +3 -3
- package/dist/{diagram-5GNKFQAL-Bw1bmwce.cjs → diagram-5GNKFQAL-CrSF3BSe.cjs} +1 -1
- package/dist/{diagram-KO2AKTUF-BxmqrQCl.js → diagram-KO2AKTUF-9RZjBl_w.js} +2 -2
- package/dist/{diagram-KO2AKTUF-dfEVoOdk.cjs → diagram-KO2AKTUF-B7exHXkV.cjs} +1 -1
- package/dist/{diagram-LMA3HP47-Bbq7UXkp.cjs → diagram-LMA3HP47-BKpehHne.cjs} +1 -1
- package/dist/{diagram-LMA3HP47-suUsnvyw.js → diagram-LMA3HP47-BaKl0eBv.js} +2 -2
- package/dist/{diagram-OG6HWLK6-B7aiT8f8.js → diagram-OG6HWLK6-CUsq0w9R.js} +3 -3
- package/dist/{diagram-OG6HWLK6-Dqd1Q6Xx.cjs → diagram-OG6HWLK6-DCgmKC7v.cjs} +1 -1
- package/dist/{erDiagram-TEJ5UH35-CC28FtBY.cjs → erDiagram-TEJ5UH35-FxY13hT5.cjs} +1 -1
- package/dist/{erDiagram-TEJ5UH35-BwW-dHWm.js → erDiagram-TEJ5UH35-pGkQeiDO.js} +4 -4
- package/dist/{flowDiagram-I6XJVG4X-D3xoLt_y.cjs → flowDiagram-I6XJVG4X-BX0BNDe-.cjs} +1 -1
- package/dist/{flowDiagram-I6XJVG4X-BZbkqyhd.js → flowDiagram-I6XJVG4X-CpuCb5Tg.js} +6 -6
- package/dist/{ganttDiagram-6RSMTGT7-DXTf88lE.js → ganttDiagram-6RSMTGT7-CHbK9DDl.js} +3 -3
- package/dist/{ganttDiagram-6RSMTGT7-DcJZ0-hf.cjs → ganttDiagram-6RSMTGT7-D2XE8TVs.cjs} +1 -1
- package/dist/{gitGraphDiagram-PVQCEYII-tzInJ74j.js → gitGraphDiagram-PVQCEYII-CqM_oQdC.js} +3 -3
- package/dist/{gitGraphDiagram-PVQCEYII-B-xDm4oK.cjs → gitGraphDiagram-PVQCEYII-z5GMGW3h.cjs} +1 -1
- package/dist/{index-uMttgI59.cjs → index-CJcxQju7.cjs} +249 -249
- package/dist/{index-B-8VXZIg.js → index-DEZScDr_.js} +18833 -18719
- package/dist/{infoDiagram-5YYISTIA-Dle_ZQ7B.cjs → infoDiagram-5YYISTIA-Cj6-fMJk.cjs} +1 -1
- package/dist/{infoDiagram-5YYISTIA-DhehU270.js → infoDiagram-5YYISTIA-Cmpc0ion.js} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-BtecalR9.cjs → ishikawaDiagram-YF4QCWOH-DHu8ZyMN.cjs} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-gN27rSDH.js → ishikawaDiagram-YF4QCWOH-hxhuCWIX.js} +1 -1
- package/dist/{journeyDiagram-JHISSGLW-CI6DL-x1.js → journeyDiagram-JHISSGLW-BJEd1MIe.js} +4 -4
- package/dist/{journeyDiagram-JHISSGLW-DvPS-035.cjs → journeyDiagram-JHISSGLW-BospbRqU.cjs} +1 -1
- package/dist/{kanban-definition-UN3LZRKU-zFTuKDI8.js → kanban-definition-UN3LZRKU-C5ZjSoKI.js} +2 -2
- package/dist/{kanban-definition-UN3LZRKU-YEdkVxO4.cjs → kanban-definition-UN3LZRKU-C9uSzM2V.cjs} +1 -1
- package/dist/{linear-DBGaztt1.js → linear-C7JWFtGy.js} +1 -1
- package/dist/{linear-0KY0a1rB.cjs → linear-CcTnZO-d.cjs} +1 -1
- package/dist/{mermaid.core-6kaz_MQS.cjs → mermaid.core-CDiMwQGP.cjs} +3 -3
- package/dist/{mermaid.core-B5ItSz0I.js → mermaid.core-FFKDBcmS.js} +35 -35
- package/dist/{mindmap-definition-RKZ34NQL-B3RBxUeU.js → mindmap-definition-RKZ34NQL-CVlnYSSV.js} +3 -3
- package/dist/{mindmap-definition-RKZ34NQL-D7r33fI5.cjs → mindmap-definition-RKZ34NQL-Dk1Yi21Z.cjs} +1 -1
- package/dist/{pieDiagram-4H26LBE5-Bw6sk-E4.cjs → pieDiagram-4H26LBE5-CnDJ4p9-.cjs} +1 -1
- package/dist/{pieDiagram-4H26LBE5-BI8dcOof.js → pieDiagram-4H26LBE5-H6IZjd9F.js} +3 -3
- package/dist/{quadrantDiagram-W4KKPZXB-BPhij_dz.cjs → quadrantDiagram-W4KKPZXB-BZJyoMcM.cjs} +1 -1
- package/dist/{quadrantDiagram-W4KKPZXB-BaRC_J7j.js → quadrantDiagram-W4KKPZXB-BcFwkvPZ.js} +2 -2
- package/dist/{requirementDiagram-4Y6WPE33-DzIrpIbI.js → requirementDiagram-4Y6WPE33-DnRtJgov.js} +3 -3
- package/dist/{requirementDiagram-4Y6WPE33-CqyASEyS.cjs → requirementDiagram-4Y6WPE33-t4K0NGjq.cjs} +1 -1
- package/dist/{sankeyDiagram-5OEKKPKP-CAnmJHiS.js → sankeyDiagram-5OEKKPKP-Bj5yE0a-.js} +1 -1
- package/dist/{sankeyDiagram-5OEKKPKP-WYQuzmY2.cjs → sankeyDiagram-5OEKKPKP-DBT7AgMm.cjs} +1 -1
- package/dist/{sequenceDiagram-3UESZ5HK-BkrhGAEf.js → sequenceDiagram-3UESZ5HK-B-qnmMUD.js} +3 -3
- package/dist/{sequenceDiagram-3UESZ5HK-Dwd9GQbo.cjs → sequenceDiagram-3UESZ5HK-BrMbl0LI.cjs} +1 -1
- package/dist/{stateDiagram-AJRCARHV-CrCzmaTR.js → stateDiagram-AJRCARHV-BQMlvsYS.js} +2 -2
- package/dist/{stateDiagram-AJRCARHV-D0mg3olY.cjs → stateDiagram-AJRCARHV-Dxlr8NuO.cjs} +1 -1
- package/dist/{stateDiagram-v2-BHNVJYJU-BT7V13SU.js → stateDiagram-v2-BHNVJYJU-BxBs21_5.js} +2 -2
- package/dist/{stateDiagram-v2-BHNVJYJU-BWeD9DVD.cjs → stateDiagram-v2-BHNVJYJU-ZCTD4hjR.cjs} +1 -1
- package/dist/{timeline-definition-PNZ67QCA-CCXvhSgx.cjs → timeline-definition-PNZ67QCA-Bu3S5YuI.cjs} +1 -1
- package/dist/{timeline-definition-PNZ67QCA-RxP7SUnN.js → timeline-definition-PNZ67QCA-D8Gv1DQ8.js} +2 -2
- package/dist/{vennDiagram-CIIHVFJN-BXBQwyV_.js → vennDiagram-CIIHVFJN-BRN-P3Hg.js} +1 -1
- package/dist/{vennDiagram-CIIHVFJN-DgM4gDWe.cjs → vennDiagram-CIIHVFJN-VkYTE4Tj.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 +510 -510
- package/dist/{wardleyDiagram-YWT4CUSO-lldydBUj.cjs → wardleyDiagram-YWT4CUSO-CNW7uVHU.cjs} +1 -1
- package/dist/{wardleyDiagram-YWT4CUSO-Ddj6RWKL.js → wardleyDiagram-YWT4CUSO-CsL28Cn_.js} +2 -2
- package/dist/{xychartDiagram-2RQKCTM6-VxSCVMkB.js → xychartDiagram-2RQKCTM6-CCX7pqRD.js} +2 -2
- package/dist/{xychartDiagram-2RQKCTM6-DepphGNB.cjs → xychartDiagram-2RQKCTM6-DRDeRuS1.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-6kaz_MQS.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-CDiMwQGP.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()+`
|
|
@@ -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-FFKDBcmS.js";
|
|
2
|
+
import { d as Er, h as re, g as dt, e as ur, a as ae, b as se } from "./chunk-ND2GUHAM-DEUWOag9.js";
|
|
3
|
+
import { I as fr } from "./chunk-QZHKN3VN-ohvr9tJv.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) ;
|
package/dist/{sequenceDiagram-3UESZ5HK-Dwd9GQbo.cjs → sequenceDiagram-3UESZ5HK-BrMbl0LI.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./mermaid.core-6kaz_MQS.cjs"),X=require("./chunk-ND2GUHAM-DVqsEOpB.cjs"),Ye=require("./chunk-QZHKN3VN-D2JAaUCY.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-CDiMwQGP.cjs"),X=require("./chunk-ND2GUHAM-D82treg6.cjs"),Ye=require("./chunk-QZHKN3VN-Qw_nTfts.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,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-Cs8BaJRG.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-FFKDBcmS.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) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./chunk-AQP2D5EJ-LsckRuX6.cjs"),t=require("./mermaid.core-6kaz_MQS.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-BCqzHW6w.cjs"),t=require("./mermaid.core-CDiMwQGP.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 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-Cs8BaJRG.js";
|
|
2
|
+
import { b as i } from "./mermaid.core-FFKDBcmS.js";
|
|
3
3
|
var m = {
|
|
4
4
|
parser: t,
|
|
5
5
|
get db() {
|
package/dist/{stateDiagram-v2-BHNVJYJU-BWeD9DVD.cjs → stateDiagram-v2-BHNVJYJU-ZCTD4hjR.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-BCqzHW6w.cjs"),t=require("./mermaid.core-CDiMwQGP.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;
|
package/dist/{timeline-definition-PNZ67QCA-CCXvhSgx.cjs → timeline-definition-PNZ67QCA-Bu3S5YuI.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-CDiMwQGP.cjs"),st=require("./arc-Ddodb8Tc.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-RxP7SUnN.js → timeline-definition-PNZ67QCA-D8Gv1DQ8.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-FFKDBcmS.js";
|
|
2
|
+
import { d as ot } from "./arc-XN3h9pRA.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) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as Gt, a$ as Wt, $ as Kt, a3 as Ht, b2 as Yt, a0 as Xt, b0 as Zt, b as S, a1 as St, a_ as Qt, aZ as rt, l as Jt, as as $t, ax as te, L as ee, E as ne, t as se, s as ie, Q as re } from "./mermaid.core-
|
|
1
|
+
import { e as Gt, a$ as Wt, $ as Kt, a3 as Ht, b2 as Yt, a0 as Xt, b0 as Zt, b as S, a1 as St, a_ as Qt, aZ as rt, l as Jt, as as $t, ax as te, L as ee, E as ne, t as se, s as ie, Q as re } from "./mermaid.core-FFKDBcmS.js";
|
|
2
2
|
const kt = (t, n) => Gt(t, "a", -n), _t = 1e-10;
|
|
3
3
|
function st(t, n) {
|
|
4
4
|
const s = ae(t), e = s.filter((c) => oe(c, t));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./mermaid.core-6kaz_MQS.cjs"),vt=(t,n)=>k.adjustChannel(t,"a",-n),Mt=1e-10;function st(t,n){const s=Ut(t),e=s.filter(c=>qt(c,t));let i=0,r=0;const o=[];if(e.length>1){const c=St(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-c.x,a.y-c.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];r+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let d=null;for(let m=0;m<a.parentIndex.length;++m)if(f.parentIndex.includes(a.parentIndex[m])){const x=t[a.parentIndex[m]],M=Math.atan2(a.x-x.x,a.y-x.y),E=Math.atan2(f.x-x.x,f.y-x.y);let S=E-M;S<0&&(S+=2*Math.PI);const w=E-S/2;let g=W(y,{x:x.x+x.radius*Math.sin(w),y:x.y+x.radius*Math.cos(w)});g>x.radius*2&&(g=x.radius*2),(d==null||d.width>g)&&(d={circle:x,width:g,p1:a,p2:f,large:g>x.radius,sweep:!0})}d!=null&&(o.push(d),i+=at(d.circle.radius,d.width),f=a)}}else{let c=t[0];for(let u=1;u<t.length;++u)t[u].radius<c.radius&&(c=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(W(t[u],c)>Math.abs(c.radius-t[u].radius)){f=!0;break}f?i=r=0:(i=c.radius*c.radius*Math.PI,o.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-Mt,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0}))}return r/=2,n&&(n.area=i+r,n.arcArea=i,n.polygonArea=r,n.arcs=o,n.innerPoints=e,n.intersectionPoints=s),i+r}function qt(t,n){return n.every(s=>W(t,s)<s.radius+Mt)}function Ut(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=wt(t[s],t[e]);for(const r of i)r.parentIndex=[s,e],n.push(r)}return n}function at(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function W(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function gt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return at(t,e)+at(n,i)}function wt(t,n){const s=W(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const r=(e*e-i*i+s*s)/(2*s),o=Math.sqrt(e*e-r*r),c=t.x+r*(n.x-t.x)/s,f=t.y+r*(n.y-t.y)/s,u=-(n.y-t.y)*(o/s),a=-(n.x-t.x)*(o/s);return[{x:c+u,y:f-a},{x:c-u,y:f+a}]}function St(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function Gt(t,n,s,e){e=e||{};const i=e.maxIterations||100,r=e.tolerance||1e-10,o=t(n),c=t(s);let f=s-n;if(o*c>0)throw"Initial bisect points must have opposite signs";if(o===0)return n;if(c===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*o>=0&&(n=a),Math.abs(f)<r||y===0)return a}return n+f}function lt(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function It(t,n){return lt(t).map(()=>lt(n))}function tt(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ct(t){return Math.sqrt(tt(t,t))}function ut(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Q(t,n,s,e,i){for(let r=0;r<t.length;++r)t[r]=n*s[r]+e*i[r]}function Tt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,r=s.zeroDelta||.001,o=s.minErrorDelta||1e-6,c=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let d;const m=n.length,x=new Array(m+1);x[0]=n,x[0].fx=t(n),x[0].id=0;for(let _=0;_<m;++_){const l=n.slice();l[_]=l[_]?l[_]*i:r,x[_+1]=l,x[_+1].fx=t(l),x[_+1].id=_+1}function M(_){for(let l=0;l<_.length;l++)x[m][l]=_[l];x[m].fx=_.fx}const E=(_,l)=>_.fx-l.fx,S=n.slice(),w=n.slice(),g=n.slice(),b=n.slice();for(let _=0;_<e;++_){if(x.sort(E),s.history){const p=x.map(h=>{const j=h.slice();return j.fx=h.fx,j.id=h.id,j});p.sort((h,j)=>h.id-j.id),s.history.push({x:x[0].slice(),fx:x[0].fx,simplex:p})}d=0;for(let p=0;p<m;++p)d=Math.max(d,Math.abs(x[0][p]-x[1][p]));if(Math.abs(x[0].fx-x[m].fx)<o&&d<c)break;for(let p=0;p<m;++p){S[p]=0;for(let h=0;h<m;++h)S[p]+=x[h][p];S[p]/=m}const l=x[m];if(Q(w,1+f,S,-f,l),w.fx=t(w),w.fx<x[0].fx)Q(b,1+u,S,-u,l),b.fx=t(b),b.fx<w.fx?M(b):M(w);else if(w.fx>=x[m-1].fx){let p=!1;if(w.fx>l.fx?(Q(g,1+a,S,-a,l),g.fx=t(g),g.fx<l.fx?M(g):p=!0):(Q(g,1-a*f,S,a*f,l),g.fx=t(g),g.fx<w.fx?M(g):p=!0),p){if(y>=1)break;for(let h=1;h<x.length;++h)Q(x[h],1-y,x[0],y,x[h]),x[h].fx=t(x[h])}}else M(w)}return x.sort(E),{fx:x[0].fx,x:x[0]}}function Wt(t,n,s,e,i,r,o){const c=s.fx,f=tt(s.fxprime,n);let u=c,a=c,y=f,d=0;i=i||1,r=r||1e-6,o=o||.1;function m(x,M,E){for(let S=0;S<16;++S)if(i=(x+M)/2,Q(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=tt(e.fxprime,n),u>c+r*i*f||u>=E)M=i;else{if(Math.abs(y)<=-o*f)return i;y*(M-x)>=0&&(M=x),x=i,E=u}return 0}for(let x=0;x<10;++x){if(Q(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=tt(e.fxprime,n),u>c+r*i*f||x&&u>=a)return m(d,i,a);if(Math.abs(y)<=-o*f)return i;if(y>=0)return m(i,d,u);a=u,d=i,i*=2}return i}function Kt(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const r=n.slice();let o,c,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),o=e.fxprime.slice(),ut(o,e.fxprime,-1);for(let a=0;a<u;++a){if(f=Wt(t,o,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ut(o,e.fxprime,-1);else{Q(r,1,i.fxprime,-1,e.fxprime);const y=tt(e.fxprime,e.fxprime),d=Math.max(0,tt(r,i.fxprime)/y);Q(o,d,o,-1,i.fxprime),c=e,e=i,i=c}if(ct(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function Et(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||Zt,e=n.lossFunction||et,i=Ht(t,n),r=s(i,n),o=Object.keys(r),c=[];for(const a of o)c.push(r[a].x),c.push(r[a].y);const u=Tt(a=>{const y={};for(let d=0;d<o.length;++d){const m=o[d];y[m]={x:a[2*d],y:a[2*d+1],radius:r[m].radius}}return e(y,i)},c,n).x;for(let a=0;a<o.length;++a){const y=o[a];r[y].x=u[2*a],r[y].y=u[2*a+1]}return r}const zt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+zt?Math.abs(t-n):Gt(e=>gt(t,n,e)-s,0,t+n)}function Ht(t,n={}){const s=n.distinct,e=t.map(c=>Object.assign({},c));function i(c){return c.join(";")}if(s){const c=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);c.set(a,f.size+(c.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const d=String(f.sets[y]),m=`${a};${d}`,x=`${d};${a}`;c.set(m,f.size+(c.get(m)||0)),c.set(x,f.size+(c.get(x)||0))}}for(const f of e)f.sets.length<3&&(f.size=c.get(i(f.sets)))}const r=[],o=new Set;for(const c of e)if(c.sets.length===1)r.push(c.sets[0]);else if(c.sets.length===2){const f=c.sets[0],u=c.sets[1];o.add(i(c.sets)),o.add(i([u,f]))}r.sort((c,f)=>c===f?0:c<f?-1:1);for(let c=0;c<r.length;++c){const f=r[c];for(let u=c+1;u<r.length;++u){const a=r[u];o.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function Yt(t,n,s){const e=It(n.length,n.length),i=It(n.length,n.length);return t.filter(r=>r.sets.length===2).forEach(r=>{const o=s[r.sets[0]],c=s[r.sets[1]],f=Math.sqrt(n[o].size/Math.PI),u=Math.sqrt(n[c].size/Math.PI),a=ht(f,u,r.size);e[o][c]=e[c][o]=a;let y=0;r.size+1e-10>=Math.min(n[o].size,n[c].size)?y=1:r.size<=1e-10&&(y=-1),i[o][c]=i[c][o]=y}),{distances:e,constraints:i}}function Xt(t,n,s,e){for(let r=0;r<n.length;++r)n[r]=0;let i=0;for(let r=0;r<s.length;++r){const o=t[2*r],c=t[2*r+1];for(let f=r+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[r][f],d=e[r][f],m=(u-o)*(u-o)+(a-c)*(a-c),x=Math.sqrt(m),M=m-y*y;d>0&&x<=y||d<0&&x>=y||(i+=2*M*M,n[2*r]+=4*M*(o-u),n[2*r+1]+=4*M*(c-a),n[2*f]+=4*M*(u-o),n[2*f+1]+=4*M*(a-c))}}return i}function Zt(t,n={}){let s=Qt(t,n);const e=n.lossFunction||et;if(t.length>=8){const i=Jt(t,n),r=e(i,t),o=e(s,t);r+1e-8<o&&(s=i)}return s}function Jt(t,n={}){const s=n.restarts||10,e=[],i={};for(const d of t)d.sets.length===1&&(i[d.sets[0]]=e.length,e.push(d));let{distances:r,constraints:o}=Yt(t,e,i);const c=ct(r.map(ct))/r.length;r=r.map(d=>d.map(m=>m/c));const f=(d,m)=>Xt(d,m,r,o);let u=null;for(let d=0;d<s;++d){const m=lt(r.length*2).map(Math.random),x=Kt(f,m,n);(!u||x.fx<u.fx)&&(u=x)}const a=u.x,y={};for(let d=0;d<e.length;++d){const m=e[d];y[m.sets[0]]={x:a[2*d]*c,y:a[2*d+1]*c,radius:Math.sqrt(m.size/Math.PI)}}if(n.history)for(const d of n.history)ut(d.x,c);return y}function Qt(t,n){const s=n&&n.lossFunction?n.lossFunction:et,e={},i={};for(const y of t)if(y.sets.length===1){const d=y.sets[0];e[d]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[d]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let d=y.weight!=null?y.weight:1;const m=y.sets[0],x=y.sets[1];y.size+zt>=Math.min(e[m].size,e[x].size)&&(d=0),i[m].push({set:x,size:y.size,weight:d}),i[x].push({set:m,size:y.size,weight:d})}const r=[];Object.keys(i).forEach(y=>{let d=0;for(let m=0;m<i[y].length;++m)d+=i[y][m].size*i[y][m].weight;r.push({set:y,size:d})});function o(y,d){return d.size-y.size}r.sort(o);const c={};function f(y){return y.set in c}function u(y,d){e[d].x=y.x,e[d].y=y.y,c[d]=!0}u({x:0,y:0},r[0].set);for(let y=1;y<r.length;++y){const d=r[y].set,m=i[d].filter(f),x=e[d];if(m.sort(o),m.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<m.length;++a){const w=e[m[a].set],g=ht(x.radius,w.radius,m[a].size);M.push({x:w.x+g,y:w.y}),M.push({x:w.x-g,y:w.y}),M.push({y:w.y+g,x:w.x}),M.push({y:w.y-g,x:w.x});for(let b=a+1;b<m.length;++b){const _=e[m[b].set],l=ht(x.radius,_.radius,m[b].size),p=wt({x:w.x,y:w.y,radius:g},{x:_.x,y:_.y,radius:l});M.push(...p)}}let E=1e50,S=M[0];for(const w of M){e[d].x=w.x,e[d].y=w.y;const g=s(e,t);g<E&&(E=g,S=w)}u(S,d)}return e}function et(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const o=t[e.sets[0]],c=t[e.sets[1]];i=gt(o.radius,c.radius,W(o,c))}else i=st(e.sets.map(o=>t[o]));const r=e.weight!=null?e.weight:1;s+=r*(i-e.size)*(i-e.size)}return s}function At(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const c=t[e.sets[0]],f=t[e.sets[1]];i=gt(c.radius,f.radius,W(c,f))}else i=st(e.sets.map(c=>t[c]));const r=e.weight!=null?e.weight:1,o=Math.log((i+1)/(e.size+1));s+=r*o*o}return s}function $t(t,n,s){if(s==null?t.sort((i,r)=>r.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,r=t[0].y;for(const o of t)o.x-=i,o.y-=r}if(t.length===2&&W(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,r=Math.cos(i),o=Math.sin(i);for(const c of t){const f=c.x,u=c.y;c.x=r*f-o*u,c.y=o*f+r*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const r=t[1].y/(1e-10+t[1].x);for(const o of t){var e=(o.x+r*o.y)/(1+r*r);o.x=2*e-o.x,o.y=2*e*r-o.y}}}}function te(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,r){const o=n(i),c=n(r);o.parent=c}for(let i=0;i<t.length;++i)for(let r=i+1;r<t.length;++r){const o=t[i].radius+t[r].radius;W(t[i],t[r])+1e-10<o&&s(t[r],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const r=n(t[i]).parent.setid;e.has(r)||e.set(r,[]),e.get(r).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function ft(t){const n=s=>{const e=t.reduce((r,o)=>Math.max(r,o[s]+o.radius),Number.NEGATIVE_INFINITY),i=t.reduce((r,o)=>Math.min(r,o[s]-o.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ot(t).map(u=>Object.assign({},u));const i=te(e);for(const u of i){$t(u,n,s);const a=ft(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let r=e.bounds;const o=(r.xRange.max-r.xRange.min)/50;function c(u,a,y){if(!u)return;const d=u.bounds;let m,x;if(a)m=r.xRange.max-d.xRange.min+o;else{m=r.xRange.max-d.xRange.max;const M=(d.xRange.max-d.xRange.min)/2-(r.xRange.max-r.xRange.min)/2;M<0&&(m+=M)}if(y)x=r.yRange.max-d.yRange.min+o;else{x=r.yRange.max-d.yRange.max;const M=(d.yRange.max-d.yRange.min)/2-(r.yRange.max-r.yRange.min)/2;M<0&&(x+=M)}for(const M of u)M.x+=m,M.y+=x,e.push(M)}let f=1;for(;f<i.length;)c(i[f],!0,!1),c(i[f+1],!1,!0),c(i[f+2],!0,!0),f+=3,r=ft(e);return Ct(e)}function Rt(t,n,s,e,i){const r=Ot(t);n-=2*e,s-=2*e;const{xRange:o,yRange:c}=ft(r);if(o.max===o.min||c.max===c.min)return t;let f,u;if(i){const m=Math.sqrt(i/Math.PI)*2;f=n/m,u=s/m}else f=n/(o.max-o.min),u=s/(c.max-c.min);const a=Math.min(u,f),y=(n-(o.max-o.min)*a)/2,d=(s-(c.max-c.min)*a)/2;return Ct(r.map(m=>({radius:a*m.radius,x:e+y+(m.x-o.min)*a,y:e+d+(m.y-c.min)*a,setid:m.setid})))}function Ct(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ot(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ee(t={}){let n=!1,s=600,e=350,i=15,r=1e3,o=Math.PI/2,c=!0,f=null,u=!0,a=!0,y=null,d=null,m=!1,x=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},S=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],w=0,g=function(p){if(p in E)return E[p];var h=E[p]=S[w];return w+=1,w>=S.length&&(w=0),h},b=Et,_=et;function l(p){let h=p.datum();const j=new Set;h.forEach(v=>{v.size==0&&v.sets.length==1&&j.add(v.sets[0])}),h=h.filter(v=>!v.sets.some(L=>j.has(L)));let I={},O={};if(h.length>0){let v=b(h,{lossFunction:_,distinct:m});c&&(v=Dt(v,o,d)),I=Rt(v,s,e,i,f),O=Ft(I,h,M)}const Y={};h.forEach(v=>{v.label&&(Y[v.sets]=v.label)});function B(v){if(v.sets in Y)return Y[v.sets];if(v.sets.length==1)return""+v.sets[0]}p.selectAll("svg").data([I]).enter().append("svg");const U=p.select("svg");n?U.attr("viewBox",`0 0 ${s} ${e}`):U.attr("width",s).attr("height",e);const q={};let z=!1;U.selectAll(".venn-area path").each(function(v){const L=this.getAttribute("d");v.sets.length==1&&L&&!m&&(z=!0,q[v.sets[0]]=ie(L))});function A(v){return L=>{const G=v.sets.map(Z=>{let H=q[Z],J=I[Z];return H||(H={x:s/2,y:e/2,radius:1}),J||(J={x:s/2,y:e/2,radius:1}),{x:H.x*(1-L)+J.x*L,y:H.y*(1-L)+J.y*L,radius:H.radius*(1-L)+J.radius*L}});return kt(G,x)}}const R=U.selectAll(".venn-area").data(h,v=>v.sets),N=R.enter().append("g").attr("class",v=>`venn-area venn-${v.sets.length==1?"circle":"intersection"}${v.colour||v.color?" venn-coloured":""}`).attr("data-venn-sets",v=>v.sets.join("_")),P=N.append("path"),V=N.append("text").attr("class","label").text(v=>B(v)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(P.style("fill-opacity","0").filter(v=>v.sets.length==1).style("fill",v=>v.colour?v.colour:v.color?v.color:g(v.sets)).style("fill-opacity",".25"),V.style("fill",v=>v.colour||v.color?"#FFF":t.textFill?t.textFill:v.sets.length==1?g(v.sets):"#444"));function D(v){return typeof v.transition=="function"?v.transition("venn").duration(r):v}let T=p;z&&typeof T.transition=="function"?(T=D(p),T.selectAll("path").attrTween("d",A)):T.selectAll("path").attr("d",v=>kt(v.sets.map(L=>I[L])),x);const F=T.selectAll("text").filter(v=>v.sets in O).text(v=>B(v)).attr("x",v=>Math.floor(O[v.sets].x)).attr("y",v=>Math.floor(O[v.sets].y));u&&(z?"on"in F?F.on("end",rt(I,B)):F.each("end",rt(I,B)):F.each(rt(I,B)));const C=D(R.exit()).remove();typeof R.transition=="function"&&C.selectAll("path").attrTween("d",A);const X=C.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(V.style("font-size","0px"),F.style("font-size",y),X.style("font-size","0px")),{circles:I,textCentres:O,nodes:R,enter:N,update:T,exit:C}}return l.wrap=function(p){return arguments.length?(u=p,l):u},l.useViewBox=function(){return n=!0,l},l.width=function(p){return arguments.length?(s=p,l):s},l.height=function(p){return arguments.length?(e=p,l):e},l.padding=function(p){return arguments.length?(i=p,l):i},l.distinct=function(p){return arguments.length?(m=p,l):m},l.colours=function(p){return arguments.length?(g=p,l):g},l.colors=function(p){return arguments.length?(g=p,l):g},l.fontSize=function(p){return arguments.length?(y=p,l):y},l.round=function(p){return arguments.length?(x=p,l):x},l.duration=function(p){return arguments.length?(r=p,l):r},l.layoutFunction=function(p){return arguments.length?(b=p,l):b},l.normalize=function(p){return arguments.length?(c=p,l):c},l.scaleToFit=function(p){return arguments.length?(f=p,l):f},l.styled=function(p){return arguments.length?(a=p,l):a},l.orientation=function(p){return arguments.length?(o=p,l):o},l.orientationOrder=function(p){return arguments.length?(d=p,l):d},l.lossFunction=function(p){return arguments.length?(_=p==="default"?et:p==="logRatio"?At:p,l):_},l}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,r=n(s)||"",o=r.split(/\s+/).reverse(),f=(r.length+o.length)/3;let u=o.pop(),a=[u],y=0;const d=1.1;e.textContent=null;const m=[];function x(g){const b=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return b.textContent=g,m.push(b),e.append(b),b}let M=x(u);for(;u=o.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=x(u),y++)}const E=.35-y*d/2,S=e.getAttribute("x"),w=e.getAttribute("y");m.forEach((g,b)=>{g.setAttribute("x",S),g.setAttribute("y",w),g.setAttribute("dy",`${E+b*d}em`)})}}function ot(t,n,s){let e=n[0].radius-W(n[0],t);for(let i=1;i<n.length;++i){const r=n[i].radius-W(n[i],t);r<=e&&(e=r)}for(let i=0;i<s.length;++i){const r=W(s[i],t)-s[i].radius;r<=e&&(e=r)}return e}function Nt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],r=ot(e[0],t,n);for(let a=1;a<e.length;++a){const y=ot(e[a],t,n);y>=r&&(i=e[a],r=y)}const o=Tt(a=>-1*ot({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,c={x:s?0:o[0],y:o[1]};let f=!0;for(const a of t)if(W(c,a)>a.radius){f=!1;break}for(const a of n)if(W(c,a)<a.radius){f=!1;break}if(f)return c;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?Nt(t,[]):St(u.arcs.map(a=>a.p1))}function ne(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],r=t[i];for(let o=e+1;o<s.length;++o){const c=s[o],f=t[c],u=W(r,f);u+f.radius<=r.radius+1e-10?n[c].push(i):u+r.radius<=f.radius+1e-10&&n[i].push(c)}}return n}function Ft(t,n,s){const e={},i=ne(t);for(let r=0;r<n.length;++r){const o=n[r].sets,c={},f={};for(let d=0;d<o.length;++d){c[o[d]]=!0;const m=i[o[d]];for(let x=0;x<m.length;++x)f[m[x]]=!0}const u=[],a=[];for(let d in t)d in c?u.push(t[d]):d in f||a.push(t[d]);const y=Nt(u,a,s);e[o]=y,y.disjoint&&n[r].size>0}return e}function se(t,n,s){const e=[];return e.push(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./mermaid.core-CDiMwQGP.cjs"),vt=(t,n)=>k.adjustChannel(t,"a",-n),Mt=1e-10;function st(t,n){const s=Ut(t),e=s.filter(c=>qt(c,t));let i=0,r=0;const o=[];if(e.length>1){const c=St(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-c.x,a.y-c.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];r+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let d=null;for(let m=0;m<a.parentIndex.length;++m)if(f.parentIndex.includes(a.parentIndex[m])){const x=t[a.parentIndex[m]],M=Math.atan2(a.x-x.x,a.y-x.y),E=Math.atan2(f.x-x.x,f.y-x.y);let S=E-M;S<0&&(S+=2*Math.PI);const w=E-S/2;let g=W(y,{x:x.x+x.radius*Math.sin(w),y:x.y+x.radius*Math.cos(w)});g>x.radius*2&&(g=x.radius*2),(d==null||d.width>g)&&(d={circle:x,width:g,p1:a,p2:f,large:g>x.radius,sweep:!0})}d!=null&&(o.push(d),i+=at(d.circle.radius,d.width),f=a)}}else{let c=t[0];for(let u=1;u<t.length;++u)t[u].radius<c.radius&&(c=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(W(t[u],c)>Math.abs(c.radius-t[u].radius)){f=!0;break}f?i=r=0:(i=c.radius*c.radius*Math.PI,o.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-Mt,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0}))}return r/=2,n&&(n.area=i+r,n.arcArea=i,n.polygonArea=r,n.arcs=o,n.innerPoints=e,n.intersectionPoints=s),i+r}function qt(t,n){return n.every(s=>W(t,s)<s.radius+Mt)}function Ut(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=wt(t[s],t[e]);for(const r of i)r.parentIndex=[s,e],n.push(r)}return n}function at(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function W(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function gt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return at(t,e)+at(n,i)}function wt(t,n){const s=W(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const r=(e*e-i*i+s*s)/(2*s),o=Math.sqrt(e*e-r*r),c=t.x+r*(n.x-t.x)/s,f=t.y+r*(n.y-t.y)/s,u=-(n.y-t.y)*(o/s),a=-(n.x-t.x)*(o/s);return[{x:c+u,y:f-a},{x:c-u,y:f+a}]}function St(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function Gt(t,n,s,e){e=e||{};const i=e.maxIterations||100,r=e.tolerance||1e-10,o=t(n),c=t(s);let f=s-n;if(o*c>0)throw"Initial bisect points must have opposite signs";if(o===0)return n;if(c===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*o>=0&&(n=a),Math.abs(f)<r||y===0)return a}return n+f}function lt(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function It(t,n){return lt(t).map(()=>lt(n))}function tt(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ct(t){return Math.sqrt(tt(t,t))}function ut(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Q(t,n,s,e,i){for(let r=0;r<t.length;++r)t[r]=n*s[r]+e*i[r]}function Tt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,r=s.zeroDelta||.001,o=s.minErrorDelta||1e-6,c=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let d;const m=n.length,x=new Array(m+1);x[0]=n,x[0].fx=t(n),x[0].id=0;for(let _=0;_<m;++_){const l=n.slice();l[_]=l[_]?l[_]*i:r,x[_+1]=l,x[_+1].fx=t(l),x[_+1].id=_+1}function M(_){for(let l=0;l<_.length;l++)x[m][l]=_[l];x[m].fx=_.fx}const E=(_,l)=>_.fx-l.fx,S=n.slice(),w=n.slice(),g=n.slice(),b=n.slice();for(let _=0;_<e;++_){if(x.sort(E),s.history){const p=x.map(h=>{const j=h.slice();return j.fx=h.fx,j.id=h.id,j});p.sort((h,j)=>h.id-j.id),s.history.push({x:x[0].slice(),fx:x[0].fx,simplex:p})}d=0;for(let p=0;p<m;++p)d=Math.max(d,Math.abs(x[0][p]-x[1][p]));if(Math.abs(x[0].fx-x[m].fx)<o&&d<c)break;for(let p=0;p<m;++p){S[p]=0;for(let h=0;h<m;++h)S[p]+=x[h][p];S[p]/=m}const l=x[m];if(Q(w,1+f,S,-f,l),w.fx=t(w),w.fx<x[0].fx)Q(b,1+u,S,-u,l),b.fx=t(b),b.fx<w.fx?M(b):M(w);else if(w.fx>=x[m-1].fx){let p=!1;if(w.fx>l.fx?(Q(g,1+a,S,-a,l),g.fx=t(g),g.fx<l.fx?M(g):p=!0):(Q(g,1-a*f,S,a*f,l),g.fx=t(g),g.fx<w.fx?M(g):p=!0),p){if(y>=1)break;for(let h=1;h<x.length;++h)Q(x[h],1-y,x[0],y,x[h]),x[h].fx=t(x[h])}}else M(w)}return x.sort(E),{fx:x[0].fx,x:x[0]}}function Wt(t,n,s,e,i,r,o){const c=s.fx,f=tt(s.fxprime,n);let u=c,a=c,y=f,d=0;i=i||1,r=r||1e-6,o=o||.1;function m(x,M,E){for(let S=0;S<16;++S)if(i=(x+M)/2,Q(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=tt(e.fxprime,n),u>c+r*i*f||u>=E)M=i;else{if(Math.abs(y)<=-o*f)return i;y*(M-x)>=0&&(M=x),x=i,E=u}return 0}for(let x=0;x<10;++x){if(Q(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=tt(e.fxprime,n),u>c+r*i*f||x&&u>=a)return m(d,i,a);if(Math.abs(y)<=-o*f)return i;if(y>=0)return m(i,d,u);a=u,d=i,i*=2}return i}function Kt(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const r=n.slice();let o,c,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),o=e.fxprime.slice(),ut(o,e.fxprime,-1);for(let a=0;a<u;++a){if(f=Wt(t,o,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ut(o,e.fxprime,-1);else{Q(r,1,i.fxprime,-1,e.fxprime);const y=tt(e.fxprime,e.fxprime),d=Math.max(0,tt(r,i.fxprime)/y);Q(o,d,o,-1,i.fxprime),c=e,e=i,i=c}if(ct(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function Et(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||Zt,e=n.lossFunction||et,i=Ht(t,n),r=s(i,n),o=Object.keys(r),c=[];for(const a of o)c.push(r[a].x),c.push(r[a].y);const u=Tt(a=>{const y={};for(let d=0;d<o.length;++d){const m=o[d];y[m]={x:a[2*d],y:a[2*d+1],radius:r[m].radius}}return e(y,i)},c,n).x;for(let a=0;a<o.length;++a){const y=o[a];r[y].x=u[2*a],r[y].y=u[2*a+1]}return r}const zt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+zt?Math.abs(t-n):Gt(e=>gt(t,n,e)-s,0,t+n)}function Ht(t,n={}){const s=n.distinct,e=t.map(c=>Object.assign({},c));function i(c){return c.join(";")}if(s){const c=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);c.set(a,f.size+(c.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const d=String(f.sets[y]),m=`${a};${d}`,x=`${d};${a}`;c.set(m,f.size+(c.get(m)||0)),c.set(x,f.size+(c.get(x)||0))}}for(const f of e)f.sets.length<3&&(f.size=c.get(i(f.sets)))}const r=[],o=new Set;for(const c of e)if(c.sets.length===1)r.push(c.sets[0]);else if(c.sets.length===2){const f=c.sets[0],u=c.sets[1];o.add(i(c.sets)),o.add(i([u,f]))}r.sort((c,f)=>c===f?0:c<f?-1:1);for(let c=0;c<r.length;++c){const f=r[c];for(let u=c+1;u<r.length;++u){const a=r[u];o.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function Yt(t,n,s){const e=It(n.length,n.length),i=It(n.length,n.length);return t.filter(r=>r.sets.length===2).forEach(r=>{const o=s[r.sets[0]],c=s[r.sets[1]],f=Math.sqrt(n[o].size/Math.PI),u=Math.sqrt(n[c].size/Math.PI),a=ht(f,u,r.size);e[o][c]=e[c][o]=a;let y=0;r.size+1e-10>=Math.min(n[o].size,n[c].size)?y=1:r.size<=1e-10&&(y=-1),i[o][c]=i[c][o]=y}),{distances:e,constraints:i}}function Xt(t,n,s,e){for(let r=0;r<n.length;++r)n[r]=0;let i=0;for(let r=0;r<s.length;++r){const o=t[2*r],c=t[2*r+1];for(let f=r+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[r][f],d=e[r][f],m=(u-o)*(u-o)+(a-c)*(a-c),x=Math.sqrt(m),M=m-y*y;d>0&&x<=y||d<0&&x>=y||(i+=2*M*M,n[2*r]+=4*M*(o-u),n[2*r+1]+=4*M*(c-a),n[2*f]+=4*M*(u-o),n[2*f+1]+=4*M*(a-c))}}return i}function Zt(t,n={}){let s=Qt(t,n);const e=n.lossFunction||et;if(t.length>=8){const i=Jt(t,n),r=e(i,t),o=e(s,t);r+1e-8<o&&(s=i)}return s}function Jt(t,n={}){const s=n.restarts||10,e=[],i={};for(const d of t)d.sets.length===1&&(i[d.sets[0]]=e.length,e.push(d));let{distances:r,constraints:o}=Yt(t,e,i);const c=ct(r.map(ct))/r.length;r=r.map(d=>d.map(m=>m/c));const f=(d,m)=>Xt(d,m,r,o);let u=null;for(let d=0;d<s;++d){const m=lt(r.length*2).map(Math.random),x=Kt(f,m,n);(!u||x.fx<u.fx)&&(u=x)}const a=u.x,y={};for(let d=0;d<e.length;++d){const m=e[d];y[m.sets[0]]={x:a[2*d]*c,y:a[2*d+1]*c,radius:Math.sqrt(m.size/Math.PI)}}if(n.history)for(const d of n.history)ut(d.x,c);return y}function Qt(t,n){const s=n&&n.lossFunction?n.lossFunction:et,e={},i={};for(const y of t)if(y.sets.length===1){const d=y.sets[0];e[d]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[d]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let d=y.weight!=null?y.weight:1;const m=y.sets[0],x=y.sets[1];y.size+zt>=Math.min(e[m].size,e[x].size)&&(d=0),i[m].push({set:x,size:y.size,weight:d}),i[x].push({set:m,size:y.size,weight:d})}const r=[];Object.keys(i).forEach(y=>{let d=0;for(let m=0;m<i[y].length;++m)d+=i[y][m].size*i[y][m].weight;r.push({set:y,size:d})});function o(y,d){return d.size-y.size}r.sort(o);const c={};function f(y){return y.set in c}function u(y,d){e[d].x=y.x,e[d].y=y.y,c[d]=!0}u({x:0,y:0},r[0].set);for(let y=1;y<r.length;++y){const d=r[y].set,m=i[d].filter(f),x=e[d];if(m.sort(o),m.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<m.length;++a){const w=e[m[a].set],g=ht(x.radius,w.radius,m[a].size);M.push({x:w.x+g,y:w.y}),M.push({x:w.x-g,y:w.y}),M.push({y:w.y+g,x:w.x}),M.push({y:w.y-g,x:w.x});for(let b=a+1;b<m.length;++b){const _=e[m[b].set],l=ht(x.radius,_.radius,m[b].size),p=wt({x:w.x,y:w.y,radius:g},{x:_.x,y:_.y,radius:l});M.push(...p)}}let E=1e50,S=M[0];for(const w of M){e[d].x=w.x,e[d].y=w.y;const g=s(e,t);g<E&&(E=g,S=w)}u(S,d)}return e}function et(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const o=t[e.sets[0]],c=t[e.sets[1]];i=gt(o.radius,c.radius,W(o,c))}else i=st(e.sets.map(o=>t[o]));const r=e.weight!=null?e.weight:1;s+=r*(i-e.size)*(i-e.size)}return s}function At(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const c=t[e.sets[0]],f=t[e.sets[1]];i=gt(c.radius,f.radius,W(c,f))}else i=st(e.sets.map(c=>t[c]));const r=e.weight!=null?e.weight:1,o=Math.log((i+1)/(e.size+1));s+=r*o*o}return s}function $t(t,n,s){if(s==null?t.sort((i,r)=>r.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,r=t[0].y;for(const o of t)o.x-=i,o.y-=r}if(t.length===2&&W(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,r=Math.cos(i),o=Math.sin(i);for(const c of t){const f=c.x,u=c.y;c.x=r*f-o*u,c.y=o*f+r*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const r=t[1].y/(1e-10+t[1].x);for(const o of t){var e=(o.x+r*o.y)/(1+r*r);o.x=2*e-o.x,o.y=2*e*r-o.y}}}}function te(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,r){const o=n(i),c=n(r);o.parent=c}for(let i=0;i<t.length;++i)for(let r=i+1;r<t.length;++r){const o=t[i].radius+t[r].radius;W(t[i],t[r])+1e-10<o&&s(t[r],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const r=n(t[i]).parent.setid;e.has(r)||e.set(r,[]),e.get(r).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function ft(t){const n=s=>{const e=t.reduce((r,o)=>Math.max(r,o[s]+o.radius),Number.NEGATIVE_INFINITY),i=t.reduce((r,o)=>Math.min(r,o[s]-o.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ot(t).map(u=>Object.assign({},u));const i=te(e);for(const u of i){$t(u,n,s);const a=ft(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let r=e.bounds;const o=(r.xRange.max-r.xRange.min)/50;function c(u,a,y){if(!u)return;const d=u.bounds;let m,x;if(a)m=r.xRange.max-d.xRange.min+o;else{m=r.xRange.max-d.xRange.max;const M=(d.xRange.max-d.xRange.min)/2-(r.xRange.max-r.xRange.min)/2;M<0&&(m+=M)}if(y)x=r.yRange.max-d.yRange.min+o;else{x=r.yRange.max-d.yRange.max;const M=(d.yRange.max-d.yRange.min)/2-(r.yRange.max-r.yRange.min)/2;M<0&&(x+=M)}for(const M of u)M.x+=m,M.y+=x,e.push(M)}let f=1;for(;f<i.length;)c(i[f],!0,!1),c(i[f+1],!1,!0),c(i[f+2],!0,!0),f+=3,r=ft(e);return Ct(e)}function Rt(t,n,s,e,i){const r=Ot(t);n-=2*e,s-=2*e;const{xRange:o,yRange:c}=ft(r);if(o.max===o.min||c.max===c.min)return t;let f,u;if(i){const m=Math.sqrt(i/Math.PI)*2;f=n/m,u=s/m}else f=n/(o.max-o.min),u=s/(c.max-c.min);const a=Math.min(u,f),y=(n-(o.max-o.min)*a)/2,d=(s-(c.max-c.min)*a)/2;return Ct(r.map(m=>({radius:a*m.radius,x:e+y+(m.x-o.min)*a,y:e+d+(m.y-c.min)*a,setid:m.setid})))}function Ct(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ot(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ee(t={}){let n=!1,s=600,e=350,i=15,r=1e3,o=Math.PI/2,c=!0,f=null,u=!0,a=!0,y=null,d=null,m=!1,x=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},S=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],w=0,g=function(p){if(p in E)return E[p];var h=E[p]=S[w];return w+=1,w>=S.length&&(w=0),h},b=Et,_=et;function l(p){let h=p.datum();const j=new Set;h.forEach(v=>{v.size==0&&v.sets.length==1&&j.add(v.sets[0])}),h=h.filter(v=>!v.sets.some(L=>j.has(L)));let I={},O={};if(h.length>0){let v=b(h,{lossFunction:_,distinct:m});c&&(v=Dt(v,o,d)),I=Rt(v,s,e,i,f),O=Ft(I,h,M)}const Y={};h.forEach(v=>{v.label&&(Y[v.sets]=v.label)});function B(v){if(v.sets in Y)return Y[v.sets];if(v.sets.length==1)return""+v.sets[0]}p.selectAll("svg").data([I]).enter().append("svg");const U=p.select("svg");n?U.attr("viewBox",`0 0 ${s} ${e}`):U.attr("width",s).attr("height",e);const q={};let z=!1;U.selectAll(".venn-area path").each(function(v){const L=this.getAttribute("d");v.sets.length==1&&L&&!m&&(z=!0,q[v.sets[0]]=ie(L))});function A(v){return L=>{const G=v.sets.map(Z=>{let H=q[Z],J=I[Z];return H||(H={x:s/2,y:e/2,radius:1}),J||(J={x:s/2,y:e/2,radius:1}),{x:H.x*(1-L)+J.x*L,y:H.y*(1-L)+J.y*L,radius:H.radius*(1-L)+J.radius*L}});return kt(G,x)}}const R=U.selectAll(".venn-area").data(h,v=>v.sets),N=R.enter().append("g").attr("class",v=>`venn-area venn-${v.sets.length==1?"circle":"intersection"}${v.colour||v.color?" venn-coloured":""}`).attr("data-venn-sets",v=>v.sets.join("_")),P=N.append("path"),V=N.append("text").attr("class","label").text(v=>B(v)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(P.style("fill-opacity","0").filter(v=>v.sets.length==1).style("fill",v=>v.colour?v.colour:v.color?v.color:g(v.sets)).style("fill-opacity",".25"),V.style("fill",v=>v.colour||v.color?"#FFF":t.textFill?t.textFill:v.sets.length==1?g(v.sets):"#444"));function D(v){return typeof v.transition=="function"?v.transition("venn").duration(r):v}let T=p;z&&typeof T.transition=="function"?(T=D(p),T.selectAll("path").attrTween("d",A)):T.selectAll("path").attr("d",v=>kt(v.sets.map(L=>I[L])),x);const F=T.selectAll("text").filter(v=>v.sets in O).text(v=>B(v)).attr("x",v=>Math.floor(O[v.sets].x)).attr("y",v=>Math.floor(O[v.sets].y));u&&(z?"on"in F?F.on("end",rt(I,B)):F.each("end",rt(I,B)):F.each(rt(I,B)));const C=D(R.exit()).remove();typeof R.transition=="function"&&C.selectAll("path").attrTween("d",A);const X=C.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(V.style("font-size","0px"),F.style("font-size",y),X.style("font-size","0px")),{circles:I,textCentres:O,nodes:R,enter:N,update:T,exit:C}}return l.wrap=function(p){return arguments.length?(u=p,l):u},l.useViewBox=function(){return n=!0,l},l.width=function(p){return arguments.length?(s=p,l):s},l.height=function(p){return arguments.length?(e=p,l):e},l.padding=function(p){return arguments.length?(i=p,l):i},l.distinct=function(p){return arguments.length?(m=p,l):m},l.colours=function(p){return arguments.length?(g=p,l):g},l.colors=function(p){return arguments.length?(g=p,l):g},l.fontSize=function(p){return arguments.length?(y=p,l):y},l.round=function(p){return arguments.length?(x=p,l):x},l.duration=function(p){return arguments.length?(r=p,l):r},l.layoutFunction=function(p){return arguments.length?(b=p,l):b},l.normalize=function(p){return arguments.length?(c=p,l):c},l.scaleToFit=function(p){return arguments.length?(f=p,l):f},l.styled=function(p){return arguments.length?(a=p,l):a},l.orientation=function(p){return arguments.length?(o=p,l):o},l.orientationOrder=function(p){return arguments.length?(d=p,l):d},l.lossFunction=function(p){return arguments.length?(_=p==="default"?et:p==="logRatio"?At:p,l):_},l}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,r=n(s)||"",o=r.split(/\s+/).reverse(),f=(r.length+o.length)/3;let u=o.pop(),a=[u],y=0;const d=1.1;e.textContent=null;const m=[];function x(g){const b=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return b.textContent=g,m.push(b),e.append(b),b}let M=x(u);for(;u=o.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=x(u),y++)}const E=.35-y*d/2,S=e.getAttribute("x"),w=e.getAttribute("y");m.forEach((g,b)=>{g.setAttribute("x",S),g.setAttribute("y",w),g.setAttribute("dy",`${E+b*d}em`)})}}function ot(t,n,s){let e=n[0].radius-W(n[0],t);for(let i=1;i<n.length;++i){const r=n[i].radius-W(n[i],t);r<=e&&(e=r)}for(let i=0;i<s.length;++i){const r=W(s[i],t)-s[i].radius;r<=e&&(e=r)}return e}function Nt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],r=ot(e[0],t,n);for(let a=1;a<e.length;++a){const y=ot(e[a],t,n);y>=r&&(i=e[a],r=y)}const o=Tt(a=>-1*ot({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,c={x:s?0:o[0],y:o[1]};let f=!0;for(const a of t)if(W(c,a)>a.radius){f=!1;break}for(const a of n)if(W(c,a)<a.radius){f=!1;break}if(f)return c;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?Nt(t,[]):St(u.arcs.map(a=>a.p1))}function ne(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],r=t[i];for(let o=e+1;o<s.length;++o){const c=s[o],f=t[c],u=W(r,f);u+f.radius<=r.radius+1e-10?n[c].push(i):u+r.radius<=f.radius+1e-10&&n[i].push(c)}}return n}function Ft(t,n,s){const e={},i=ne(t);for(let r=0;r<n.length;++r){const o=n[r].sets,c={},f={};for(let d=0;d<o.length;++d){c[o[d]]=!0;const m=i[o[d]];for(let x=0;x<m.length;++x)f[m[x]]=!0}const u=[],a=[];for(let d in t)d in c?u.push(t[d]):d in f||a.push(t[d]);const y=Nt(u,a,s);e[o]=y,y.disjoint&&n[r].size>0}return e}function se(t,n,s){const e=[];return e.push(`
|
|
2
2
|
M`,t,n),e.push(`
|
|
3
3
|
m`,-s,0),e.push(`
|
|
4
4
|
a`,s,s,0,1,0,s*2,0),e.push(`
|
package/dist/wandox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-CJcxQju7.cjs");exports.FloatingManager=e.FloatingManager;exports.default=e.wandoxSDK;exports.wandox=e.wandox;
|