@kim123rla/hcc-bdp-agent 0.5.34 → 0.5.35
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/dist/assets/{arc-C4CNvK-a.js → arc-g30SzNm-.js} +1 -1
- package/dist/assets/architectureDiagram-3BPJPVTR-7SkOcPIQ.js +36 -0
- package/dist/assets/{blockDiagram-GPEHLZMM-CqkST5pS.js → blockDiagram-GPEHLZMM-C_nXUxok.js} +2 -2
- package/dist/assets/{c4Diagram-AAUBKEIU-CFlRNcNO.js → c4Diagram-AAUBKEIU-DvXqOvs9.js} +2 -2
- package/dist/assets/channel-BZQVJnOc.js +1 -0
- package/dist/assets/{chunk-2J33WTMH-CGXKUE3u.js → chunk-2J33WTMH-DZ8T1IZj.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-DIMDzUvG.js → chunk-4BX2VUAB-IBWLnx_7.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-CeT7Ubm7.js → chunk-55IACEB6-C0oDuSIh.js} +1 -1
- package/dist/assets/{chunk-727SXJPM-CROwjyXU.js → chunk-727SXJPM-cffiQJMy.js} +1 -1
- package/dist/assets/{chunk-AQP2D5EJ-BrkooBRL.js → chunk-AQP2D5EJ-C0Ak85hI.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-ult0zspw.js → chunk-FMBD7UC4-BRByys73.js} +1 -1
- package/dist/assets/{chunk-ND2GUHAM-DXm-XggW.js → chunk-ND2GUHAM-5fVDn5XQ.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-COT862xs.js → chunk-QZHKN3VN-vdgakGO4.js} +1 -1
- package/dist/assets/classDiagram-4FO5ZUOK-LOzuyI6Y.js +1 -0
- package/dist/assets/classDiagram-v2-Q7XG4LA2-LOzuyI6Y.js +1 -0
- package/dist/assets/cose-bilkent-S5V4N54A-Dzd39tvB.js +1 -0
- package/dist/assets/dagre-BM42HDAG-DGivN3ww.js +4 -0
- package/dist/assets/dataResults-B1swefI5.js +1 -0
- package/dist/assets/diagram-2AECGRRQ-TExl3x2d.js +43 -0
- package/dist/assets/diagram-5GNKFQAL-CRYY7jqF.js +10 -0
- package/dist/assets/diagram-KO2AKTUF-B8mDcbvS.js +3 -0
- package/dist/assets/diagram-LMA3HP47-BMcqoxLc.js +24 -0
- package/dist/assets/diagram-OG6HWLK6-DFVaaje4.js +24 -0
- package/dist/assets/{erDiagram-TEJ5UH35-D9INTeuk.js → erDiagram-TEJ5UH35-7qA4kn-k.js} +2 -2
- package/dist/assets/{flowDiagram-I6XJVG4X-oGQJWpiS.js → flowDiagram-I6XJVG4X-XjYtOzxd.js} +2 -2
- package/dist/assets/ganttDiagram-6RSMTGT7-DdtYmRkr.js +292 -0
- package/dist/assets/gitGraphDiagram-PVQCEYII-C2_Cf7LG.js +106 -0
- package/dist/assets/infoDiagram-5YYISTIA-C6y-dHy6.js +2 -0
- package/dist/assets/{ishikawaDiagram-YF4QCWOH-DCaFuecI.js → ishikawaDiagram-YF4QCWOH-DDf2V_TY.js} +2 -2
- package/dist/assets/{journeyDiagram-JHISSGLW-XHN5sQTP.js → journeyDiagram-JHISSGLW-BvmVxFFc.js} +2 -2
- package/dist/assets/{kanban-definition-UN3LZRKU-C6Z1NMPy.js → kanban-definition-UN3LZRKU-e_fJ6cFJ.js} +2 -2
- package/dist/assets/{linear-CJiRf5bU.js → linear-B91Fgz-z.js} +1 -1
- package/dist/assets/{index-CVsP1YhF.css → main-B1yvZRuy.css} +1 -1
- package/dist/assets/{index-BDubzIOk.js → main-DNu7P8AU.js} +38 -38
- package/dist/assets/{mermaid.core-BU6D8Fsk.js → mermaid.core-D0obZElW.js} +4 -4
- package/dist/assets/{mindmap-definition-RKZ34NQL-CbLpxIh1.js → mindmap-definition-RKZ34NQL-Dste0FPZ.js} +2 -2
- package/dist/assets/{pieDiagram-4H26LBE5-Bot7_twR.js → pieDiagram-4H26LBE5-DlkxG18I.js} +2 -2
- package/dist/assets/{quadrantDiagram-W4KKPZXB-C0f_ak4L.js → quadrantDiagram-W4KKPZXB-CaF4erGI.js} +4 -4
- package/dist/assets/{requirementDiagram-4Y6WPE33-BqJozRLK.js → requirementDiagram-4Y6WPE33-JjvwFMuy.js} +2 -2
- package/dist/assets/results-B1r9P01j.css +1 -0
- package/dist/assets/results-BLVcBvMW.js +1 -0
- package/dist/assets/{sankeyDiagram-5OEKKPKP-lRYAS88J.js → sankeyDiagram-5OEKKPKP-Df9aIcGI.js} +2 -2
- package/dist/assets/{sequenceDiagram-3UESZ5HK-2JorXvQs.js → sequenceDiagram-3UESZ5HK-eTrTVK9z.js} +2 -2
- package/dist/assets/stateDiagram-AJRCARHV-qKJqOfEO.js +1 -0
- package/dist/assets/stateDiagram-v2-BHNVJYJU-DCT2fPOh.js +1 -0
- package/dist/assets/{timeline-definition-PNZ67QCA-Dx-wzh56.js → timeline-definition-PNZ67QCA-CTNFcXLu.js} +2 -2
- package/dist/assets/{vennDiagram-CIIHVFJN-BDZHGx-W.js → vennDiagram-CIIHVFJN-DizFGls1.js} +2 -2
- package/dist/assets/{wardley-L42UT6IY-CsMxpZAT.js → wardley-L42UT6IY-N5EX1ou0.js} +1 -1
- package/dist/assets/{wardleyDiagram-YWT4CUSO-3TLDK7Y6.js → wardleyDiagram-YWT4CUSO-Da-1FJ9m.js} +2 -2
- package/dist/assets/{xychartDiagram-2RQKCTM6-CX1rEnVo.js → xychartDiagram-2RQKCTM6-DzLfacO5.js} +2 -2
- package/dist/index.html +3 -2
- package/dist/results.html +14 -0
- package/package.json +1 -1
- package/dist/assets/architectureDiagram-3BPJPVTR-uDTs0F_K.js +0 -36
- package/dist/assets/channel-iJxofKBo.js +0 -1
- package/dist/assets/classDiagram-4FO5ZUOK-fQOUt9GA.js +0 -1
- package/dist/assets/classDiagram-v2-Q7XG4LA2-fQOUt9GA.js +0 -1
- package/dist/assets/cose-bilkent-S5V4N54A-C-zvi96U.js +0 -1
- package/dist/assets/dagre-BM42HDAG-BsGAg2-8.js +0 -4
- package/dist/assets/diagram-2AECGRRQ-CfpkJc0V.js +0 -43
- package/dist/assets/diagram-5GNKFQAL-BiCeoFzB.js +0 -10
- package/dist/assets/diagram-KO2AKTUF-De9gL4gz.js +0 -3
- package/dist/assets/diagram-LMA3HP47-FBCs1Ucb.js +0 -24
- package/dist/assets/diagram-OG6HWLK6-Bm92DYf2.js +0 -24
- package/dist/assets/ganttDiagram-6RSMTGT7-BT479Udj.js +0 -292
- package/dist/assets/gitGraphDiagram-PVQCEYII-DeZsn90v.js +0 -106
- package/dist/assets/infoDiagram-5YYISTIA-CsiOfYsn.js +0 -2
- package/dist/assets/stateDiagram-AJRCARHV-BBYeuF2q.js +0 -1
- package/dist/assets/stateDiagram-v2-BHNVJYJU-DPvztxos.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as De}from"./chunk-FMBD7UC4-ult0zspw.js";import{av as Ne,ac as qt,aw as Ie,h as Jt,M as Qt,n as $t,aJ as te,b9 as Lt,N as ee,aR as re,bb as ae,aD as se,b4 as ie,f as ne,be as Ce,bd as Be,bg as Oe,bf as Re,aK as Ae,ao as ze,an as Me,ap as Pe,Y as Fe,X as Ye,i as We,b as u,a2 as ut,aZ as O,E as He,aC as v,t as Ke,aW as Ue,a8 as Xe,az as Ve,K as Ze,a3 as Y,ae as Ge,a6 as Z,I as Dt,B as lt,ab as je,bj as ot,z as qe,aa as Je,aX as zt,P as Mt,D as Qe}from"./mermaid.core-BU6D8Fsk.js";import{G as $e}from"./graph-BB0J4w4c.js";import{c as tr}from"./channel-iJxofKBo.js";import"./index-BDubzIOk.js";function er(e){return Array.isArray(e)}function rr(e){if(Ne(e))return e;const t=qt(e);if(!ar(e))return{};if(er(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(Ie(e)){const s=e,i=s.constructor;return new i(s.buffer,s.byteOffset,s.length)}if(t===Jt)return new ArrayBuffer(e.byteLength);if(t===Qt){const s=e,i=s.buffer,n=s.byteOffset,a=s.byteLength,c=new ArrayBuffer(a),l=new Uint8Array(i,n,a);return new Uint8Array(c).set(l),new DataView(c)}if(t===$t||t===te||t===Lt){const s=e.constructor,i=new s(e.valueOf());return t===Lt?ir(i,e):mt(i,e),i}if(t===ee)return new Date(Number(e));if(t===re){const s=e,i=new RegExp(s.source,s.flags);return i.lastIndex=s.lastIndex,i}if(t===ae)return Object(Symbol.prototype.valueOf.call(e));if(t===se){const s=e,i=new Map;return s.forEach((n,a)=>{i.set(a,n)}),i}if(t===ie){const s=e,i=new Set;return s.forEach(n=>{i.add(n)}),i}if(t===ne){const s=e,i={};return mt(i,s),i.length=s.length,i[Symbol.iterator]=s[Symbol.iterator],i}const r={};return nr(r,e),mt(r,e),sr(r,e),r}function ar(e){switch(qt(e)){case ne:case We:case Jt:case Qt:case $t:case ee:case Ye:case Fe:case Pe:case Me:case ze:case se:case te:case Ae:case re:case ie:case Lt:case ae:case Re:case Oe:case Be:case Ce:return!0;default:return!1}}function mt(e,t){for(const r in t)Object.hasOwn(t,r)&&(e[r]=t[r])}function sr(e,t){const r=Object.getOwnPropertySymbols(t);for(let s=0;s<r.length;s++){const i=r[s];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}function ir(e,t){const r=t.valueOf().length;for(const s in t)Object.hasOwn(t,s)&&(Number.isNaN(Number(s))||Number(s)>=r)&&(e[s]=t[s])}function nr(e,t){const r=Object.getPrototypeOf(t);r!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,r)}var vt=function(){var e=u(function(N,b,p,y){for(p=p||{},y=N.length;y--;p[N[y]]=b);return p},"o"),t=[1,15],r=[1,7],s=[1,13],i=[1,14],n=[1,19],a=[1,16],c=[1,17],l=[1,18],d=[8,30],g=[8,10,21,28,29,30,31,39,43,46],o=[1,23],w=[1,24],x=[8,10,15,16,21,28,29,30,31,39,43,46],m=[8,10,15,16,21,27,28,29,30,31,39,43,46],E=[1,49],L={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(b,p,y,S,T,h,k){var f=h.length-1;switch(T){case 4:S.getLogger().debug("Rule: separator (NL) ");break;case 5:S.getLogger().debug("Rule: separator (Space) ");break;case 6:S.getLogger().debug("Rule: separator (EOF) ");break;case 7:S.getLogger().debug("Rule: hierarchy: ",h[f-1]),S.setHierarchy(h[f-1]);break;case 8:S.getLogger().debug("Stop NL ");break;case 9:S.getLogger().debug("Stop EOF ");break;case 10:S.getLogger().debug("Stop NL2 ");break;case 11:S.getLogger().debug("Stop EOF2 ");break;case 12:S.getLogger().debug("Rule: statement: ",h[f]),typeof h[f].length=="number"?this.$=h[f]:this.$=[h[f]];break;case 13:S.getLogger().debug("Rule: statement #2: ",h[f-1]),this.$=[h[f-1]].concat(h[f]);break;case 14:S.getLogger().debug("Rule: link: ",h[f],b),this.$={edgeTypeStr:h[f],label:""};break;case 15:S.getLogger().debug("Rule: LABEL link: ",h[f-3],h[f-1],h[f]),this.$={edgeTypeStr:h[f],label:h[f-1]};break;case 18:const _=parseInt(h[f]),B=S.generateId();this.$={id:B,type:"space",label:"",width:_,children:[]};break;case 23:S.getLogger().debug("Rule: (nodeStatement link node) ",h[f-2],h[f-1],h[f]," typestr: ",h[f-1].edgeTypeStr);const W=S.edgeStrToEdgeData(h[f-1].edgeTypeStr),J=S.edgeStrToEdgeStartData(h[f-1].edgeTypeStr),at=S.edgeStrToThickness(h[f-1].edgeTypeStr),A=S.edgeStrToPattern(h[f-1].edgeTypeStr);this.$=[{id:h[f-2].id,label:h[f-2].label,type:h[f-2].type,directions:h[f-2].directions},{id:h[f-2].id+"-"+h[f].id,start:h[f-2].id,end:h[f].id,label:h[f-1].label,type:"edge",thickness:at,pattern:A,directions:h[f].directions,arrowTypeEnd:W,arrowTypeStart:J},{id:h[f].id,label:h[f].label,type:S.typeStr2Type(h[f].typeStr),directions:h[f].directions}];break;case 24:S.getLogger().debug("Rule: nodeStatement (abc88 node size) ",h[f-1],h[f]),this.$={id:h[f-1].id,label:h[f-1].label,type:S.typeStr2Type(h[f-1].typeStr),directions:h[f-1].directions,widthInColumns:parseInt(h[f],10)};break;case 25:S.getLogger().debug("Rule: nodeStatement (node) ",h[f]),this.$={id:h[f].id,label:h[f].label,type:S.typeStr2Type(h[f].typeStr),directions:h[f].directions,widthInColumns:1};break;case 26:S.getLogger().debug("APA123",this?this:"na"),S.getLogger().debug("COLUMNS: ",h[f]),this.$={type:"column-setting",columns:h[f]==="auto"?-1:parseInt(h[f])};break;case 27:S.getLogger().debug("Rule: id-block statement : ",h[f-2],h[f-1]),S.generateId(),this.$={...h[f-2],type:"composite",children:h[f-1]};break;case 28:S.getLogger().debug("Rule: blockStatement : ",h[f-2],h[f-1],h[f]);const V=S.generateId();this.$={id:V,type:"composite",label:"",children:h[f-1]};break;case 29:S.getLogger().debug("Rule: node (NODE_ID separator): ",h[f]),this.$={id:h[f]};break;case 30:S.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",h[f-1],h[f]),this.$={id:h[f-1],label:h[f].label,typeStr:h[f].typeStr,directions:h[f].directions};break;case 31:S.getLogger().debug("Rule: dirList: ",h[f]),this.$=[h[f]];break;case 32:S.getLogger().debug("Rule: dirList: ",h[f-1],h[f]),this.$=[h[f-1]].concat(h[f]);break;case 33:S.getLogger().debug("Rule: nodeShapeNLabel: ",h[f-2],h[f-1],h[f]),this.$={typeStr:h[f-2]+h[f],label:h[f-1]};break;case 34:S.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",h[f-3],h[f-2]," #3:",h[f-1],h[f]),this.$={typeStr:h[f-3]+h[f],label:h[f-2],directions:h[f-1]};break;case 35:case 36:this.$={type:"classDef",id:h[f-1].trim(),css:h[f].trim()};break;case 37:this.$={type:"applyClass",id:h[f-1].trim(),styleClass:h[f].trim()};break;case 38:this.$={type:"applyStyles",id:h[f-1].trim(),stylesStr:h[f].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:n,39:a,43:c,46:l},{8:[1,20]},e(d,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:r,28:s,29:i,31:n,39:a,43:c,46:l}),e(g,[2,16],{14:22,15:o,16:w}),e(g,[2,17]),e(g,[2,18]),e(g,[2,19]),e(g,[2,20]),e(g,[2,21]),e(g,[2,22]),e(x,[2,25],{27:[1,25]}),e(g,[2,26]),{19:26,26:12,31:n},{10:t,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:n,39:a,43:c,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(m,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(d,[2,13]),{26:35,31:n},{31:[2,14]},{17:[1,36]},e(x,[2,24]),{10:t,11:37,13:4,14:22,15:o,16:w,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:n,39:a,43:c,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(m,[2,30]),{18:[1,43]},{18:[1,44]},e(x,[2,23]),{18:[1,45]},{30:[1,46]},e(g,[2,28]),e(g,[2,35]),e(g,[2,36]),e(g,[2,37]),e(g,[2,38]),{36:[1,47]},{33:48,34:E},{15:[1,50]},e(g,[2,27]),e(m,[2,33]),{38:[1,51]},{33:52,34:E,38:[2,31]},{31:[2,15]},e(m,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(b,p){if(p.recoverable)this.trace(b);else{var y=new Error(b);throw y.hash=p,y}},"parseError"),parse:u(function(b){var p=this,y=[0],S=[],T=[null],h=[],k=this.table,f="",_=0,B=0,W=2,J=1,at=h.slice.call(arguments,1),A=Object.create(this.lexer),V={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(V.yy[st]=this.yy[st]);A.setInput(b,V.yy),V.yy.lexer=A,V.yy.parser=this,typeof A.yylloc=="undefined"&&(A.yylloc={});var it=A.yylloc;h.push(it);var D=A.options&&A.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function M(j){y.length=y.length-2*j,T.length=T.length-j,h.length=h.length-j}u(M,"popStack");function U(){var j;return j=S.pop()||A.lex()||J,typeof j!="number"&&(j instanceof Array&&(S=j,j=S.pop()),j=p.symbols_[j]||j),j}u(U,"lex");for(var F,G,H,nt,Q={},ct,$,At,dt;;){if(G=y[y.length-1],this.defaultActions[G]?H=this.defaultActions[G]:((F===null||typeof F=="undefined")&&(F=U()),H=k[G]&&k[G][F]),typeof H=="undefined"||!H.length||!H[0]){var wt="";dt=[];for(ct in k[G])this.terminals_[ct]&&ct>W&&dt.push("'"+this.terminals_[ct]+"'");A.showPosition?wt="Parse error on line "+(_+1)+`:
|
|
1
|
+
import{g as De}from"./chunk-FMBD7UC4-BRByys73.js";import{av as Ne,ac as qt,aw as Ie,h as Jt,M as Qt,n as $t,aJ as te,b9 as Lt,N as ee,aR as re,bb as ae,aD as se,b4 as ie,f as ne,be as Ce,bd as Be,bg as Oe,bf as Re,aK as Ae,ao as ze,an as Me,ap as Pe,Y as Fe,X as Ye,i as We,b as u,a2 as ut,aZ as O,E as He,aC as v,t as Ke,aW as Ue,a8 as Xe,az as Ve,K as Ze,a3 as Y,ae as Ge,a6 as Z,I as Dt,B as lt,ab as je,bj as ot,z as qe,aa as Je,aX as zt,P as Mt,D as Qe}from"./mermaid.core-D0obZElW.js";import{G as $e}from"./graph-BB0J4w4c.js";import{c as tr}from"./channel-BZQVJnOc.js";import"./main-DNu7P8AU.js";import"./dataResults-B1swefI5.js";function er(e){return Array.isArray(e)}function rr(e){if(Ne(e))return e;const t=qt(e);if(!ar(e))return{};if(er(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(Ie(e)){const s=e,i=s.constructor;return new i(s.buffer,s.byteOffset,s.length)}if(t===Jt)return new ArrayBuffer(e.byteLength);if(t===Qt){const s=e,i=s.buffer,n=s.byteOffset,a=s.byteLength,c=new ArrayBuffer(a),l=new Uint8Array(i,n,a);return new Uint8Array(c).set(l),new DataView(c)}if(t===$t||t===te||t===Lt){const s=e.constructor,i=new s(e.valueOf());return t===Lt?ir(i,e):mt(i,e),i}if(t===ee)return new Date(Number(e));if(t===re){const s=e,i=new RegExp(s.source,s.flags);return i.lastIndex=s.lastIndex,i}if(t===ae)return Object(Symbol.prototype.valueOf.call(e));if(t===se){const s=e,i=new Map;return s.forEach((n,a)=>{i.set(a,n)}),i}if(t===ie){const s=e,i=new Set;return s.forEach(n=>{i.add(n)}),i}if(t===ne){const s=e,i={};return mt(i,s),i.length=s.length,i[Symbol.iterator]=s[Symbol.iterator],i}const r={};return nr(r,e),mt(r,e),sr(r,e),r}function ar(e){switch(qt(e)){case ne:case We:case Jt:case Qt:case $t:case ee:case Ye:case Fe:case Pe:case Me:case ze:case se:case te:case Ae:case re:case ie:case Lt:case ae:case Re:case Oe:case Be:case Ce:return!0;default:return!1}}function mt(e,t){for(const r in t)Object.hasOwn(t,r)&&(e[r]=t[r])}function sr(e,t){const r=Object.getOwnPropertySymbols(t);for(let s=0;s<r.length;s++){const i=r[s];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}function ir(e,t){const r=t.valueOf().length;for(const s in t)Object.hasOwn(t,s)&&(Number.isNaN(Number(s))||Number(s)>=r)&&(e[s]=t[s])}function nr(e,t){const r=Object.getPrototypeOf(t);r!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,r)}var vt=function(){var e=u(function(N,b,p,y){for(p=p||{},y=N.length;y--;p[N[y]]=b);return p},"o"),t=[1,15],r=[1,7],s=[1,13],i=[1,14],n=[1,19],a=[1,16],c=[1,17],l=[1,18],d=[8,30],g=[8,10,21,28,29,30,31,39,43,46],o=[1,23],w=[1,24],x=[8,10,15,16,21,28,29,30,31,39,43,46],m=[8,10,15,16,21,27,28,29,30,31,39,43,46],E=[1,49],L={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(b,p,y,S,T,h,k){var f=h.length-1;switch(T){case 4:S.getLogger().debug("Rule: separator (NL) ");break;case 5:S.getLogger().debug("Rule: separator (Space) ");break;case 6:S.getLogger().debug("Rule: separator (EOF) ");break;case 7:S.getLogger().debug("Rule: hierarchy: ",h[f-1]),S.setHierarchy(h[f-1]);break;case 8:S.getLogger().debug("Stop NL ");break;case 9:S.getLogger().debug("Stop EOF ");break;case 10:S.getLogger().debug("Stop NL2 ");break;case 11:S.getLogger().debug("Stop EOF2 ");break;case 12:S.getLogger().debug("Rule: statement: ",h[f]),typeof h[f].length=="number"?this.$=h[f]:this.$=[h[f]];break;case 13:S.getLogger().debug("Rule: statement #2: ",h[f-1]),this.$=[h[f-1]].concat(h[f]);break;case 14:S.getLogger().debug("Rule: link: ",h[f],b),this.$={edgeTypeStr:h[f],label:""};break;case 15:S.getLogger().debug("Rule: LABEL link: ",h[f-3],h[f-1],h[f]),this.$={edgeTypeStr:h[f],label:h[f-1]};break;case 18:const _=parseInt(h[f]),B=S.generateId();this.$={id:B,type:"space",label:"",width:_,children:[]};break;case 23:S.getLogger().debug("Rule: (nodeStatement link node) ",h[f-2],h[f-1],h[f]," typestr: ",h[f-1].edgeTypeStr);const W=S.edgeStrToEdgeData(h[f-1].edgeTypeStr),J=S.edgeStrToEdgeStartData(h[f-1].edgeTypeStr),at=S.edgeStrToThickness(h[f-1].edgeTypeStr),A=S.edgeStrToPattern(h[f-1].edgeTypeStr);this.$=[{id:h[f-2].id,label:h[f-2].label,type:h[f-2].type,directions:h[f-2].directions},{id:h[f-2].id+"-"+h[f].id,start:h[f-2].id,end:h[f].id,label:h[f-1].label,type:"edge",thickness:at,pattern:A,directions:h[f].directions,arrowTypeEnd:W,arrowTypeStart:J},{id:h[f].id,label:h[f].label,type:S.typeStr2Type(h[f].typeStr),directions:h[f].directions}];break;case 24:S.getLogger().debug("Rule: nodeStatement (abc88 node size) ",h[f-1],h[f]),this.$={id:h[f-1].id,label:h[f-1].label,type:S.typeStr2Type(h[f-1].typeStr),directions:h[f-1].directions,widthInColumns:parseInt(h[f],10)};break;case 25:S.getLogger().debug("Rule: nodeStatement (node) ",h[f]),this.$={id:h[f].id,label:h[f].label,type:S.typeStr2Type(h[f].typeStr),directions:h[f].directions,widthInColumns:1};break;case 26:S.getLogger().debug("APA123",this?this:"na"),S.getLogger().debug("COLUMNS: ",h[f]),this.$={type:"column-setting",columns:h[f]==="auto"?-1:parseInt(h[f])};break;case 27:S.getLogger().debug("Rule: id-block statement : ",h[f-2],h[f-1]),S.generateId(),this.$={...h[f-2],type:"composite",children:h[f-1]};break;case 28:S.getLogger().debug("Rule: blockStatement : ",h[f-2],h[f-1],h[f]);const V=S.generateId();this.$={id:V,type:"composite",label:"",children:h[f-1]};break;case 29:S.getLogger().debug("Rule: node (NODE_ID separator): ",h[f]),this.$={id:h[f]};break;case 30:S.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",h[f-1],h[f]),this.$={id:h[f-1],label:h[f].label,typeStr:h[f].typeStr,directions:h[f].directions};break;case 31:S.getLogger().debug("Rule: dirList: ",h[f]),this.$=[h[f]];break;case 32:S.getLogger().debug("Rule: dirList: ",h[f-1],h[f]),this.$=[h[f-1]].concat(h[f]);break;case 33:S.getLogger().debug("Rule: nodeShapeNLabel: ",h[f-2],h[f-1],h[f]),this.$={typeStr:h[f-2]+h[f],label:h[f-1]};break;case 34:S.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",h[f-3],h[f-2]," #3:",h[f-1],h[f]),this.$={typeStr:h[f-3]+h[f],label:h[f-2],directions:h[f-1]};break;case 35:case 36:this.$={type:"classDef",id:h[f-1].trim(),css:h[f].trim()};break;case 37:this.$={type:"applyClass",id:h[f-1].trim(),styleClass:h[f].trim()};break;case 38:this.$={type:"applyStyles",id:h[f-1].trim(),stylesStr:h[f].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:n,39:a,43:c,46:l},{8:[1,20]},e(d,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:r,28:s,29:i,31:n,39:a,43:c,46:l}),e(g,[2,16],{14:22,15:o,16:w}),e(g,[2,17]),e(g,[2,18]),e(g,[2,19]),e(g,[2,20]),e(g,[2,21]),e(g,[2,22]),e(x,[2,25],{27:[1,25]}),e(g,[2,26]),{19:26,26:12,31:n},{10:t,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:n,39:a,43:c,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(m,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(d,[2,13]),{26:35,31:n},{31:[2,14]},{17:[1,36]},e(x,[2,24]),{10:t,11:37,13:4,14:22,15:o,16:w,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:n,39:a,43:c,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(m,[2,30]),{18:[1,43]},{18:[1,44]},e(x,[2,23]),{18:[1,45]},{30:[1,46]},e(g,[2,28]),e(g,[2,35]),e(g,[2,36]),e(g,[2,37]),e(g,[2,38]),{36:[1,47]},{33:48,34:E},{15:[1,50]},e(g,[2,27]),e(m,[2,33]),{38:[1,51]},{33:52,34:E,38:[2,31]},{31:[2,15]},e(m,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(b,p){if(p.recoverable)this.trace(b);else{var y=new Error(b);throw y.hash=p,y}},"parseError"),parse:u(function(b){var p=this,y=[0],S=[],T=[null],h=[],k=this.table,f="",_=0,B=0,W=2,J=1,at=h.slice.call(arguments,1),A=Object.create(this.lexer),V={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(V.yy[st]=this.yy[st]);A.setInput(b,V.yy),V.yy.lexer=A,V.yy.parser=this,typeof A.yylloc=="undefined"&&(A.yylloc={});var it=A.yylloc;h.push(it);var D=A.options&&A.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function M(j){y.length=y.length-2*j,T.length=T.length-j,h.length=h.length-j}u(M,"popStack");function U(){var j;return j=S.pop()||A.lex()||J,typeof j!="number"&&(j instanceof Array&&(S=j,j=S.pop()),j=p.symbols_[j]||j),j}u(U,"lex");for(var F,G,H,nt,Q={},ct,$,At,dt;;){if(G=y[y.length-1],this.defaultActions[G]?H=this.defaultActions[G]:((F===null||typeof F=="undefined")&&(F=U()),H=k[G]&&k[G][F]),typeof H=="undefined"||!H.length||!H[0]){var wt="";dt=[];for(ct in k[G])this.terminals_[ct]&&ct>W&&dt.push("'"+this.terminals_[ct]+"'");A.showPosition?wt="Parse error on line "+(_+1)+`:
|
|
2
2
|
`+A.showPosition()+`
|
|
3
3
|
Expecting `+dt.join(", ")+", got '"+(this.terminals_[F]||F)+"'":wt="Parse error on line "+(_+1)+": Unexpected "+(F==J?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(wt,{text:A.match,token:this.terminals_[F]||F,line:A.yylineno,loc:it,expected:dt})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+F);switch(H[0]){case 1:y.push(F),T.push(A.yytext),h.push(A.yylloc),y.push(H[1]),F=null,B=A.yyleng,f=A.yytext,_=A.yylineno,it=A.yylloc;break;case 2:if($=this.productions_[H[1]][1],Q.$=T[T.length-$],Q._$={first_line:h[h.length-($||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-($||1)].first_column,last_column:h[h.length-1].last_column},D&&(Q._$.range=[h[h.length-($||1)].range[0],h[h.length-1].range[1]]),nt=this.performAction.apply(Q,[f,B,_,V.yy,H[1],T,h].concat(at)),typeof nt!="undefined")return nt;$&&(y=y.slice(0,-1*$*2),T=T.slice(0,-1*$),h=h.slice(0,-1*$)),y.push(this.productions_[H[1]][0]),T.push(Q.$),h.push(Q._$),At=k[y[y.length-2]][y[y.length-1]],y.push(At);break;case 3:return!0}}return!0},"parse")},I=function(){var N={EOF:1,parseError:u(function(p,y){if(this.yy.parser)this.yy.parser.parseError(p,y);else throw new Error(p)},"parseError"),setInput:u(function(b,p){return this.yy=p||this.yy||{},this._input=b,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(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var p=b.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:u(function(b){var p=b.length,y=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var S=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===S.length?this.yylloc.first_column:0)+S[S.length-y.length].length-y[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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(function(b){this.unput(this.match.slice(b))},"less"),pastInput:u(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var b=this.pastInput(),p=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|
@@ -129,4 +129,4 @@ Expecting `+dt.join(", ")+", got '"+(this.terminals_[F]||F)+"'":wt="Parse error
|
|
|
129
129
|
`,"getStyles"),Ir=Nr,Cr=u((e,t,r,s)=>{t.forEach(i=>{Wr[i](e,r,s)})},"insertMarkers"),Br=u((e,t,r)=>{v.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),Or=u((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Rr=u((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Ar=u((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),zr=u((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),Mr=u((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),Pr=u((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),Fr=u((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),Yr=u((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),Wr={extension:Br,composition:Or,aggregation:Rr,dependency:Ar,lollipop:zr,point:Mr,circle:Pr,cross:Fr,barb:Yr},Hr=Cr,Zt,Gt,jt,P=(jt=(Gt=(Zt=Y())==null?void 0:Zt.block)==null?void 0:Gt.padding)!=null?jt:8;function _t(e,t){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(e===1)return{px:0,py:t};const r=t%e,s=Math.floor(t/e);return{px:r,py:s}}u(_t,"calculateBlockPosition");var Kr=u(e=>{var s,i;let t=0,r=0;for(const n of e.children){const{width:a,height:c,x:l,y:d}=(s=n.size)!=null?s:{width:0,height:0,x:0,y:0};if(v.debug("getMaxChildSize abc95 child:",n.id,"width:",a,"height:",c,"x:",l,"y:",d,n.type),n.type==="space")continue;const g=a/((i=n.widthInColumns)!=null?i:1);g>t&&(t=g),c>r&&(r=c)}return{width:t,height:r}},"getMaxChildSize");function yt(e,t,r=0,s=0){var a,c,l,d,g,o,w,x,m,E,L,I,C,N,b;v.debug("setBlockSizes abc95 (start)",e.id,(a=e==null?void 0:e.size)==null?void 0:a.x,"block width =",e==null?void 0:e.size,"siblingWidth",r),(c=e==null?void 0:e.size)!=null&&c.width||(e.size={width:r,height:s,x:0,y:0});let i=0,n=0;if(((l=e.children)==null?void 0:l.length)>0){for(const _ of e.children)yt(_,t);const p=Kr(e);i=p.width,n=p.height,v.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",i,n);for(const _ of e.children)_.size&&(v.debug(`abc95 Setting size of children of ${e.id} id=${_.id} ${i} ${n} ${JSON.stringify(_.size)}`),_.size.width=i*((d=_.widthInColumns)!=null?d:1)+P*(((g=_.widthInColumns)!=null?g:1)-1),_.size.height=n,_.size.x=0,_.size.y=0,v.debug(`abc95 updating size of ${e.id} children child:${_.id} maxWidth:${i} maxHeight:${n}`));for(const _ of e.children)yt(_,t,i,n);const y=(o=e.columns)!=null?o:-1;let S=0;for(const _ of e.children)S+=(w=_.widthInColumns)!=null?w:1;let T=e.children.length;y>0&&y<S&&(T=y);const h=Math.ceil(S/T);let k=T*(i+P)+P,f=h*(n+P)+P;if(k<r){v.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${r} siblingHeight ${s} width ${k}`),k=r,f=s;const _=(r-T*P-P)/T,B=(s-h*P-P)/h;v.debug("Size indata abc88",e.id,"childWidth",_,"maxWidth",i),v.debug("Size indata abc88",e.id,"childHeight",B,"maxHeight",n),v.debug("Size indata abc88 xSize",T,"padding",P);for(const W of e.children)W.size&&(W.size.width=_,W.size.height=B,W.size.x=0,W.size.y=0)}if(v.debug(`abc95 (finale calc) ${e.id} xSize ${T} ySize ${h} columns ${y}${e.children.length} width=${Math.max(k,((x=e.size)==null?void 0:x.width)||0)}`),k<(((m=e==null?void 0:e.size)==null?void 0:m.width)||0)){k=((E=e==null?void 0:e.size)==null?void 0:E.width)||0;const _=y>0?Math.min(e.children.length,y):e.children.length;if(_>0){const B=(k-_*P-P)/_;v.debug("abc95 (growing to fit) width",e.id,k,(L=e.size)==null?void 0:L.width,B);for(const W of e.children)W.size&&(W.size.width=B)}}e.size={width:k,height:f,x:0,y:0}}v.debug("setBlockSizes abc94 (done)",e.id,(I=e==null?void 0:e.size)==null?void 0:I.x,(C=e==null?void 0:e.size)==null?void 0:C.width,(N=e==null?void 0:e.size)==null?void 0:N.y,(b=e==null?void 0:e.size)==null?void 0:b.height)}u(yt,"setBlockSizes");function Bt(e,t){var s,i,n,a,c,l,d,g,o,w,x,m,E,L,I,C,N,b,p,y,S,T,h,k,f,_,B;v.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(s=e==null?void 0:e.size)==null?void 0:s.x} y: ${(i=e==null?void 0:e.size)==null?void 0:i.y} width: ${(n=e==null?void 0:e.size)==null?void 0:n.width}`);const r=(a=e.columns)!=null?a:-1;if(v.debug("layoutBlocks columns abc95",e.id,"=>",r,e),e.children&&e.children.length>0){const W=(d=(l=(c=e==null?void 0:e.children[0])==null?void 0:c.size)==null?void 0:l.width)!=null?d:0,J=e.children.length*W+(e.children.length-1)*P;v.debug("widthOfChildren 88",J,"posX");const at=new Map;{let D=0;for(const M of e.children){if(!M.size)continue;const{py:U}=_t(r,D),F=(g=at.get(U))!=null?g:0;M.size.height>F&&at.set(U,M.size.height);let G=(o=M==null?void 0:M.widthInColumns)!=null?o:1;r>0&&(G=Math.min(G,r-D%r)),D+=G}}const A=new Map;{let D=0;const M=[...at.keys()].sort((U,F)=>U-F);for(const U of M)A.set(U,D),D+=((w=at.get(U))!=null?w:0)+P}let V=0;v.debug("abc91 block?.size?.x",e.id,(x=e==null?void 0:e.size)==null?void 0:x.x);let st=(m=e==null?void 0:e.size)!=null&&m.x?((E=e==null?void 0:e.size)==null?void 0:E.x)+(-((L=e==null?void 0:e.size)==null?void 0:L.width)/2||0):-P,it=0;for(const D of e.children){const M=e;if(!D.size)continue;const{width:U,height:F}=D.size,{px:G,py:H}=_t(r,V);if(H!=it&&(it=H,st=(I=e==null?void 0:e.size)!=null&&I.x?((C=e==null?void 0:e.size)==null?void 0:C.x)+(-((N=e==null?void 0:e.size)==null?void 0:N.width)/2||0):-P,v.debug("New row in layout for block",e.id," and child ",D.id,it)),v.debug(`abc89 layout blocks (child) id: ${D.id} Pos: ${V} (px, py) ${G},${H} (${(b=M==null?void 0:M.size)==null?void 0:b.x},${(p=M==null?void 0:M.size)==null?void 0:p.y}) parent: ${M.id} width: ${U}${P}`),M.size){const Q=U/2;D.size.x=st+P+Q,v.debug(`abc91 layout blocks (calc) px, pyid:${D.id} startingPos=X${st} new startingPosX${D.size.x} ${Q} padding=${P} width=${U} halfWidth=${Q} => x:${D.size.x} y:${D.size.y} ${D.widthInColumns} (width * (child?.w || 1)) / 2 ${U*((y=D==null?void 0:D.widthInColumns)!=null?y:1)/2}`),st=D.size.x+Q;const ct=(S=A.get(H))!=null?S:0,$=(T=at.get(H))!=null?T:F;D.size.y=M.size.y-M.size.height/2+ct+$/2+P,v.debug(`abc88 layout blocks (calc) px, pyid:${D.id}startingPosX${st}${P}${Q}=>x:${D.size.x}y:${D.size.y}${D.widthInColumns}(width * (child?.w || 1)) / 2${U*((h=D==null?void 0:D.widthInColumns)!=null?h:1)/2}`)}D.children&&Bt(D);let nt=(k=D==null?void 0:D.widthInColumns)!=null?k:1;r>0&&(nt=Math.min(nt,r-V%r)),V+=nt,v.debug("abc88 columnsPos",D,V)}}v.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(f=e==null?void 0:e.size)==null?void 0:f.x} y: ${(_=e==null?void 0:e.size)==null?void 0:_.y} width: ${(B=e==null?void 0:e.size)==null?void 0:B.width}`)}u(Bt,"layoutBlocks");function Ot(e,{minX:t,minY:r,maxX:s,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:n,y:a,width:c,height:l}=e.size;n-c/2<t&&(t=n-c/2),a-l/2<r&&(r=a-l/2),n+c/2>s&&(s=n+c/2),a+l/2>i&&(i=a+l/2)}if(e.children)for(const n of e.children)({minX:t,minY:r,maxX:s,maxY:i}=Ot(n,{minX:t,minY:r,maxX:s,maxY:i}));return{minX:t,minY:r,maxX:s,maxY:i}}u(Ot,"findBounds");function fe(e){const t=e.getBlock("root");if(!t)return;yt(t,e,0,0),Bt(t),v.debug("getBlocks",JSON.stringify(t,null,2));const{minX:r,minY:s,maxX:i,maxY:n}=Ot(t),a=n-s,c=i-r;return{x:r,y:s,width:c,height:a}}u(fe,"layout");var Ur=u(async(e,t,r,s=!1,i=!1)=>{let n=t||"";typeof n=="object"&&(n=n[0]);const a=Y(),c=Z(a);return await Dt(e,n,{style:r,isTitle:s,useHtmlLabels:c,markdown:!1,isNode:i,width:Number.POSITIVE_INFINITY},a)},"createLabel"),tt=Ur,Xr=u((e,t,r,s,i)=>{t.arrowTypeStart&&Wt(e,"start",t.arrowTypeStart,r,s,i),t.arrowTypeEnd&&Wt(e,"end",t.arrowTypeEnd,r,s,i)},"addEdgeMarkers"),Vr={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Wt=u((e,t,r,s,i,n)=>{const a=Vr[r];if(!a){v.warn(`Unknown arrow type: ${r}`);return}const c=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${s}#${i}_${n}-${a}${c})`)},"addEdgeMarker"),kt={},X={},Zr=u(async(e,t)=>{const r=Y(),s=Z(r),i=e.insert("g").attr("class","edgeLabel"),n=i.insert("g").attr("class","label"),a=t.labelType==="markdown",c=await Dt(e,t.label,{style:t.labelStyle,useHtmlLabels:s,addSvgBackground:a,isNode:!1,markdown:a,width:a?void 0:Number.POSITIVE_INFINITY},r);n.node().appendChild(c);let l=c.getBBox(),d=l;if(s){const o=c.children[0],w=O(c);l=o.getBoundingClientRect(),d=l,w.attr("width",l.width),w.attr("height",l.height)}else{const o=O(c).select("text").node();o&&typeof o.getBBox=="function"&&(d=o.getBBox())}n.attr("transform",lt(d,s)),kt[t.id]=i,t.width=l.width,t.height=l.height;let g;if(t.startLabelLeft){const o=e.insert("g").attr("class","edgeTerminals"),w=o.insert("g").attr("class","inner"),x=await tt(w,t.startLabelLeft,t.labelStyle);g=x;let m=x.getBBox();if(s){const E=x.children[0],L=O(x);m=E.getBoundingClientRect(),L.attr("width",m.width),L.attr("height",m.height)}w.attr("transform",lt(m,s)),X[t.id]||(X[t.id]={}),X[t.id].startLeft=o,ht(g,t.startLabelLeft)}if(t.startLabelRight){const o=e.insert("g").attr("class","edgeTerminals"),w=o.insert("g").attr("class","inner"),x=await tt(w,t.startLabelRight,t.labelStyle);g=x;let m=x.getBBox();if(s){const E=x.children[0],L=O(x);m=E.getBoundingClientRect(),L.attr("width",m.width),L.attr("height",m.height)}w.attr("transform",lt(m,s)),X[t.id]||(X[t.id]={}),X[t.id].startRight=o,ht(g,t.startLabelRight)}if(t.endLabelLeft){const o=e.insert("g").attr("class","edgeTerminals"),w=o.insert("g").attr("class","inner"),x=await tt(o,t.endLabelLeft,t.labelStyle);g=x;let m=x.getBBox();if(s){const E=x.children[0],L=O(x);m=E.getBoundingClientRect(),L.attr("width",m.width),L.attr("height",m.height)}w.attr("transform",lt(m,s)),X[t.id]||(X[t.id]={}),X[t.id].endLeft=o,ht(g,t.endLabelLeft)}if(t.endLabelRight){const o=e.insert("g").attr("class","edgeTerminals"),w=o.insert("g").attr("class","inner"),x=await tt(o,t.endLabelRight,t.labelStyle);g=x;let m=x.getBBox();if(s){const E=x.children[0],L=O(x);m=E.getBoundingClientRect(),L.attr("width",m.width),L.attr("height",m.height)}w.attr("transform",lt(m,s)),X[t.id]||(X[t.id]={}),X[t.id].endRight=o,ht(g,t.endLabelRight)}return c},"insertEdgeLabel");function ht(e,t){Z(Y())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}u(ht,"setTerminalWidth");var Gr=u((e,t)=>{v.debug("Moving label abc88 ",e.id,e.label,kt[e.id],t);let r=t.updatedPath?t.updatedPath:t.originalPath;const s=Y(),{subGraphTitleTotalMargin:i}=je(s);if(e.label){const n=kt[e.id];let a=e.x,c=e.y;if(r){const l=ot.calcLabelPosition(r);v.debug("Moving label "+e.label+" from (",a,",",c,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(a=l.x,c=l.y)}n.attr("transform",`translate(${a}, ${c+i/2})`)}if(e.startLabelLeft){const n=X[e.id].startLeft;let a=e.x,c=e.y;if(r){const l=ot.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);a=l.x,c=l.y}n.attr("transform",`translate(${a}, ${c})`)}if(e.startLabelRight){const n=X[e.id].startRight;let a=e.x,c=e.y;if(r){const l=ot.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);a=l.x,c=l.y}n.attr("transform",`translate(${a}, ${c})`)}if(e.endLabelLeft){const n=X[e.id].endLeft;let a=e.x,c=e.y;if(r){const l=ot.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);a=l.x,c=l.y}n.attr("transform",`translate(${a}, ${c})`)}if(e.endLabelRight){const n=X[e.id].endRight;let a=e.x,c=e.y;if(r){const l=ot.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);a=l.x,c=l.y}n.attr("transform",`translate(${a}, ${c})`)}},"positionEdgeLabel"),jr=u((e,t)=>{const r=e.x,s=e.y,i=Math.abs(t.x-r),n=Math.abs(t.y-s),a=e.width/2,c=e.height/2;return i>=a||n>=c},"outsideNode"),qr=u((e,t,r)=>{v.debug(`intersection calc abc89:
|
|
130
130
|
outsidePoint: ${JSON.stringify(t)}
|
|
131
131
|
insidePoint : ${JSON.stringify(r)}
|
|
132
|
-
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const s=e.x,i=e.y,n=Math.abs(s-r.x),a=e.width/2;let c=r.x<t.x?a-n:a+n;const l=e.height/2,d=Math.abs(t.y-r.y),g=Math.abs(t.x-r.x);if(Math.abs(i-t.y)*a>Math.abs(s-t.x)*l){let o=r.y<t.y?t.y-l-i:i-l-t.y;c=g*o/d;const w={x:r.x<t.x?r.x+c:r.x-g+c,y:r.y<t.y?r.y+d-o:r.y-d+o};return c===0&&(w.x=t.x,w.y=t.y),g===0&&(w.x=t.x),d===0&&(w.y=t.y),v.debug(`abc89 topp/bott calc, Q ${d}, q ${o}, R ${g}, r ${c}`,w),w}else{r.x<t.x?c=t.x-a-s:c=s-a-t.x;let o=d*c/g,w=r.x<t.x?r.x+g-c:r.x-g+c,x=r.y<t.y?r.y+o:r.y-o;return v.debug(`sides calc abc89, Q ${d}, q ${o}, R ${g}, r ${c}`,{_x:w,_y:x}),c===0&&(w=t.x,x=t.y),g===0&&(w=t.x),d===0&&(x=t.y),{x:w,y:x}}},"intersection"),Ht=u((e,t)=>{v.debug("abc88 cutPathAtIntersect",e,t);let r=[],s=e[0],i=!1;return e.forEach(n=>{if(!jr(t,n)&&!i){const a=qr(t,s,n);let c=!1;r.forEach(l=>{c=c||l.x===a.x&&l.y===a.y}),r.some(l=>l.x===a.x&&l.y===a.y)||r.push(a),i=!0}else s=n,i||r.push(n)}),r},"cutPathAtIntersect"),Jr=u(function(e,t,r,s,i,n,a){let c=r.points;v.debug("abc88 InsertEdge: edge=",r,"e=",t);let l=!1;const d=n.node(t.v);var g=n.node(t.w);g!=null&&g.intersect&&(d!=null&&d.intersect)&&(c=c.slice(1,r.points.length-1),c.unshift(d.intersect(c[0])),c.push(g.intersect(c[c.length-1]))),r.toCluster&&(v.debug("to cluster abc88",s[r.toCluster]),c=Ht(r.points,s[r.toCluster].node),l=!0),r.fromCluster&&(v.debug("from cluster abc88",s[r.fromCluster]),c=Ht(c.reverse(),s[r.fromCluster].node).reverse(),l=!0);const o=c.filter(b=>!Number.isNaN(b.y));let w=Ze;r.curve&&(i==="graph"||i==="flowchart")&&(w=r.curve);const{x,y:m}=Xe(r),E=Ve().x(x).y(m).curve(w);let L;switch(r.thickness){case"normal":L="edge-thickness-normal";break;case"thick":L="edge-thickness-thick";break;case"invisible":L="edge-thickness-thick";break;default:L=""}switch(r.pattern){case"solid":L+=" edge-pattern-solid";break;case"dotted":L+=" edge-pattern-dotted";break;case"dashed":L+=" edge-pattern-dashed";break}const I=e.append("path").attr("d",E(o)).attr("id",r.id).attr("class"," "+L+(r.classes?" "+r.classes:"")).attr("style",r.style);let C="";(Y().flowchart.arrowMarkerAbsolute||Y().state.arrowMarkerAbsolute)&&(C=Ge(!0)),Xr(I,r,C,a,i);let N={};return l&&(N.updatedPath=c),N.originalPath=r.points,N},"insertEdge"),Qr=u(e=>{const t=new Set;for(const r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),$r=u((e,t,r,s)=>{const i=Qr(e),n=2,a=t.height+2*r.padding,c=a/n,l=s!=null?s:t.width+2*c+r.padding,d=r.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:c,y:0},{x:l/2,y:2*d},{x:l-c,y:0},{x:l,y:0},{x:l,y:-a/3},{x:l+2*d,y:-a/2},{x:l,y:-2*a/3},{x:l,y:-a},{x:l-c,y:-a},{x:l/2,y:-a-2*d},{x:c,y:-a},{x:0,y:-a},{x:0,y:-2*a/3},{x:-2*d,y:-a/2},{x:0,y:-a/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:c,y:0},{x:l-c,y:0},{x:l,y:-a/2},{x:l-c,y:-a},{x:c,y:-a},{x:0,y:-a/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:c,y:-a},{x:l-c,y:-a},{x:l,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:l,y:-c},{x:l,y:-a+c},{x:0,y:-a}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:l,y:0},{x:0,y:-c},{x:0,y:-a+c},{x:l,y:-a}]:i.has("right")&&i.has("left")?[{x:c,y:0},{x:c,y:-d},{x:l-c,y:-d},{x:l-c,y:0},{x:l,y:-a/2},{x:l-c,y:-a},{x:l-c,y:-a+d},{x:c,y:-a+d},{x:c,y:-a},{x:0,y:-a/2}]:i.has("up")&&i.has("down")?[{x:l/2,y:0},{x:0,y:-d},{x:c,y:-d},{x:c,y:-a+d},{x:0,y:-a+d},{x:l/2,y:-a},{x:l,y:-a+d},{x:l-c,y:-a+d},{x:l-c,y:-d},{x:l,y:-d}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:l,y:-c},{x:0,y:-a}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-a}]:i.has("left")&&i.has("up")?[{x:l,y:0},{x:0,y:-c},{x:l,y:-a}]:i.has("left")&&i.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-a}]:i.has("right")?[{x:c,y:-d},{x:c,y:-d},{x:l-c,y:-d},{x:l-c,y:0},{x:l,y:-a/2},{x:l-c,y:-a},{x:l-c,y:-a+d},{x:c,y:-a+d},{x:c,y:-a+d}]:i.has("left")?[{x:c,y:0},{x:c,y:-d},{x:l-c,y:-d},{x:l-c,y:-a+d},{x:c,y:-a+d},{x:c,y:-a},{x:0,y:-a/2}]:i.has("up")?[{x:c,y:-d},{x:c,y:-a+d},{x:0,y:-a+d},{x:l/2,y:-a},{x:l,y:-a+d},{x:l-c,y:-a+d},{x:l-c,y:-d}]:i.has("down")?[{x:l/2,y:0},{x:0,y:-d},{x:c,y:-d},{x:c,y:-a+d},{x:l-c,y:-a+d},{x:l-c,y:-d},{x:l,y:-d}]:[{x:0,y:0}]},"getArrowPoints");function ye(e,t){return e.intersect(t)}u(ye,"intersectNode");var ta=ye;function xe(e,t,r,s){var i=e.x,n=e.y,a=i-s.x,c=n-s.y,l=Math.sqrt(t*t*c*c+r*r*a*a),d=Math.abs(t*r*a/l);s.x<i&&(d=-d);var g=Math.abs(t*r*c/l);return s.y<n&&(g=-g),{x:i+d,y:n+g}}u(xe,"intersectEllipse");var be=xe;function we(e,t,r){return be(e,t,t,r)}u(we,"intersectCircle");var ea=we;function me(e,t,r,s){var i,n,a,c,l,d,g,o,w,x,m,E,L,I,C;if(i=t.y-e.y,a=e.x-t.x,l=t.x*e.y-e.x*t.y,w=i*r.x+a*r.y+l,x=i*s.x+a*s.y+l,!(w!==0&&x!==0&&Tt(w,x))&&(n=s.y-r.y,c=r.x-s.x,d=s.x*r.y-r.x*s.y,g=n*e.x+c*e.y+d,o=n*t.x+c*t.y+d,!(g!==0&&o!==0&&Tt(g,o))&&(m=i*c-n*a,m!==0)))return E=Math.abs(m/2),L=a*d-c*l,I=L<0?(L-E)/m:(L+E)/m,L=n*l-i*d,C=L<0?(L-E)/m:(L+E)/m,{x:I,y:C}}u(me,"intersectLine");function Tt(e,t){return e*t>0}u(Tt,"sameSign");var ra=me,aa=Se;function Se(e,t,r){var s=e.x,i=e.y,n=[],a=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(m){a=Math.min(a,m.x),c=Math.min(c,m.y)}):(a=Math.min(a,t.x),c=Math.min(c,t.y));for(var l=s-e.width/2-a,d=i-e.height/2-c,g=0;g<t.length;g++){var o=t[g],w=t[g<t.length-1?g+1:0],x=ra(e,r,{x:l+o.x,y:d+o.y},{x:l+w.x,y:d+w.y});x&&n.push(x)}return n.length?(n.length>1&&n.sort(function(m,E){var L=m.x-r.x,I=m.y-r.y,C=Math.sqrt(L*L+I*I),N=E.x-r.x,b=E.y-r.y,p=Math.sqrt(N*N+b*b);return C<p?-1:C===p?0:1}),n[0]):e}u(Se,"intersectPolygon");var sa=u((e,t)=>{var r=e.x,s=e.y,i=t.x-r,n=t.y-s,a=e.width/2,c=e.height/2,l,d;return Math.abs(n)*a>Math.abs(i)*c?(n<0&&(c=-c),l=n===0?0:c*i/n,d=c):(i<0&&(a=-a),l=a,d=i===0?0:a*n/i),{x:r+l,y:s+d}},"intersectRect"),ia=sa,R={node:ta,circle:ea,ellipse:be,polygon:aa,rect:ia},K=u(async(e,t,r,s)=>{const i=Y();let n;const a=t.useHtmlLabels||Z(i);r?n=r:n="node default";const c=e.insert("g").attr("class",n).attr("id",t.domId||t.id),l=c.insert("g").attr("class","label").attr("style",t.labelStyle);let d;t.labelText===void 0?d="":d=typeof t.labelText=="string"?t.labelText:t.labelText[0];let g;t.labelType==="markdown"?g=Dt(l,zt(Mt(d),i),{useHtmlLabels:a,width:t.width||i.flowchart.wrappingWidth,classes:"markdown-node-label"},i):g=await tt(l,zt(Mt(d),i),t.labelStyle,!1,s);let o=g.getBBox();const w=t.padding/2;if(Z(i)){const x=g.children[0],m=O(g);await Qe(x,d),o=x.getBoundingClientRect(),m.attr("width",o.width),m.attr("height",o.height)}return a?l.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):l.attr("transform","translate(0, "+-o.height/2+")"),t.centerLabel&&l.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:c,bbox:o,halfPadding:w,label:l}},"labelHelper"),z=u((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds");function rt(e,t,r,s){return e.insert("polygon",":first-child").attr("points",s.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}u(rt,"insertPolygonShape");var na=u(async(e,t)=>{t.useHtmlLabels||Z(Y())||(t.centerLabel=!0);const{shapeSvg:s,bbox:i,halfPadding:n}=await K(e,t,"node "+t.classes,!0);v.info("Classes = ",t.classes);const a=s.insert("rect",":first-child");return a.attr("rx",t.rx).attr("ry",t.ry).attr("x",-i.width/2-n).attr("y",-i.height/2-n).attr("width",i.width+t.padding).attr("height",i.height+t.padding),z(t,a),t.intersect=function(c){return R.rect(t,c)},s},"note"),ca=na,Kt=u(e=>e?" "+e:"","formatClass"),q=u((e,t)=>`${t||"node default"}${Kt(e.classes)} ${Kt(e.class)}`,"getClassesFromNode"),Ut=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=i+n,c=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];v.info("Question main (Circle)");const l=rt(r,a,a,c);return l.attr("style",t.style),z(t,l),t.intersect=function(d){return v.warn("Intersect called"),R.polygon(t,c,d)},r},"question"),la=u((e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=28,i=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}];return r.insert("polygon",":first-child").attr("points",i.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(a){return R.circle(t,14,a)},r},"choice"),oa=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=4,n=t.positioned?t.height:s.height+t.padding,a=n/i,c=t.positioned?t.width:s.width+2*a+t.padding,l=[{x:a,y:0},{x:c-a,y:0},{x:c,y:-n/2},{x:c-a,y:-n},{x:a,y:-n},{x:0,y:-n/2}],d=rt(r,c,n,l);return d.attr("style",t.style),z(t,d),t.intersect=function(g){return R.polygon(t,l,g)},r},"hexagon"),ha=u(async(e,t)=>{var w;const{shapeSvg:r,bbox:s}=await K(e,t,void 0,!0),i=2,n=s.height+2*t.padding,a=n/i,c=s.width+2*a+t.padding,d=t.positioned&&((w=t.widthInColumns)!=null?w:1)>1&&t.width>c?t.width:c,g=$r(t.directions,s,t,d),o=rt(r,d,n,g);return o.attr("style",t.style),z(t,o),t.intersect=function(x){return R.polygon(t,g,x)},r},"block_arrow"),ga=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:-n/2,y:0},{x:i,y:0},{x:i,y:-n},{x:-n/2,y:-n},{x:0,y:-n/2}];return rt(r,i,n,a).attr("style",t.style),t.width=i+n,t.height=n,t.intersect=function(l){return R.polygon(t,a,l)},r},"rect_left_inv_arrow"),ua=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:-2*n/6,y:0},{x:i-n/6,y:0},{x:i+2*n/6,y:-n},{x:n/6,y:-n}],c=rt(r,i,n,a);return c.attr("style",t.style),z(t,c),t.intersect=function(l){return R.polygon(t,a,l)},r},"lean_right"),da=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:2*n/6,y:0},{x:i+n/6,y:0},{x:i-2*n/6,y:-n},{x:-n/6,y:-n}],c=rt(r,i,n,a);return c.attr("style",t.style),z(t,c),t.intersect=function(l){return R.polygon(t,a,l)},r},"lean_left"),pa=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:-2*n/6,y:0},{x:i+2*n/6,y:0},{x:i-n/6,y:-n},{x:n/6,y:-n}],c=rt(r,i,n,a);return c.attr("style",t.style),z(t,c),t.intersect=function(l){return R.polygon(t,a,l)},r},"trapezoid"),fa=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:n/6,y:0},{x:i-n/6,y:0},{x:i+2*n/6,y:-n},{x:-2*n/6,y:-n}],c=rt(r,i,n,a);return c.attr("style",t.style),z(t,c),t.intersect=function(l){return R.polygon(t,a,l)},r},"inv_trapezoid"),ya=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:0,y:0},{x:i+n/2,y:0},{x:i,y:-n/2},{x:i+n/2,y:-n},{x:0,y:-n}],c=rt(r,i,n,a);return c.attr("style",t.style),z(t,c),t.intersect=function(l){return R.polygon(t,a,l)},r},"rect_right_inv_arrow"),xa=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=i/2,a=n/(2.5+i/50),c=s.height+a+t.padding,l="M 0,"+a+" a "+n+","+a+" 0,0,0 "+i+" 0 a "+n+","+a+" 0,0,0 "+-i+" 0 l 0,"+c+" a "+n+","+a+" 0,0,0 "+i+" 0 l 0,"+-c,d=r.attr("label-offset-y",a).insert("path",":first-child").attr("style",t.style).attr("d",l).attr("transform","translate("+-i/2+","+-(c/2+a)+")");return z(t,d),t.intersect=function(g){const o=R.rect(t,g),w=o.x-t.x;if(n!=0&&(Math.abs(w)<t.width/2||Math.abs(w)==t.width/2&&Math.abs(o.y-t.y)>t.height/2-a)){let x=a*a*(1-w*w/(n*n));x!=0&&(x=Math.sqrt(x)),x=a-x,g.y-t.y>0&&(x=-x),o.y+=x}return o},r},"cylinder"),ba=u(async(e,t)=>{const{shapeSvg:r,bbox:s,halfPadding:i}=await K(e,t,"node "+t.classes+" "+t.class,!0),n=r.insert("rect",":first-child"),a=t.positioned?t.width:s.width+t.padding,c=t.positioned?t.height:s.height+t.padding,l=t.positioned?-a/2:-s.width/2-i,d=t.positioned?-c/2:-s.height/2-i;if(n.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",l).attr("y",d).attr("width",a).attr("height",c),t.props){const g=new Set(Object.keys(t.props));t.props.borders&&(xt(n,t.props.borders,a,c),g.delete("borders")),g.forEach(o=>{v.warn(`Unknown node property ${o}`)})}return z(t,n),t.intersect=function(g){return R.rect(t,g)},r},"rect"),wa=u(async(e,t)=>{const{shapeSvg:r,bbox:s,halfPadding:i}=await K(e,t,"node "+t.classes,!0),n=r.insert("rect",":first-child"),a=t.positioned?t.width:s.width+t.padding,c=t.positioned?t.height:s.height+t.padding,l=t.positioned?-a/2:-s.width/2-i,d=t.positioned?-c/2:-s.height/2-i;if(n.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",l).attr("y",d).attr("width",a).attr("height",c),t.props){const g=new Set(Object.keys(t.props));t.props.borders&&(xt(n,t.props.borders,a,c),g.delete("borders")),g.forEach(o=>{v.warn(`Unknown node property ${o}`)})}return z(t,n),t.intersect=function(g){return R.rect(t,g)},r},"composite"),ma=u(async(e,t)=>{const{shapeSvg:r}=await K(e,t,"label",!0);v.trace("Classes = ",t.class);const s=r.insert("rect",":first-child"),i=0,n=0;if(s.attr("width",i).attr("height",n),r.attr("class","label edgeLabel"),t.props){const a=new Set(Object.keys(t.props));t.props.borders&&(xt(s,t.props.borders,i,n),a.delete("borders")),a.forEach(c=>{v.warn(`Unknown node property ${c}`)})}return z(t,s),t.intersect=function(a){return R.rect(t,a)},r},"labelRect");function xt(e,t,r,s){const i=[],n=u(c=>{i.push(c,0)},"addBorder"),a=u(c=>{i.push(0,c)},"skipBorder");t.includes("t")?(v.debug("add top border"),n(r)):a(r),t.includes("r")?(v.debug("add right border"),n(s)):a(s),t.includes("b")?(v.debug("add bottom border"),n(r)):a(r),t.includes("l")?(v.debug("add left border"),n(s)):a(s),e.attr("stroke-dasharray",i.join(" "))}u(xt,"applyNodePropertyBorders");var Sa=u(async(e,t)=>{let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),i=s.insert("rect",":first-child"),n=s.insert("line"),a=s.insert("g").attr("class","label"),c=t.labelText.flat?t.labelText.flat():t.labelText;let l="";typeof c=="object"?l=c[0]:l=c,v.info("Label text abc79",l,c,typeof c=="object");const d=await tt(a,l,t.labelStyle,!0,!0);let g={width:0,height:0};if(Z(Y())){const E=d.children[0],L=O(d);g=E.getBoundingClientRect(),L.attr("width",g.width),L.attr("height",g.height)}v.info("Text 2",c);const o=c.slice(1,c.length);let w=d.getBBox();const x=await tt(a,o.join?o.join("<br/>"):o,t.labelStyle,!0,!0);if(Z(Y())){const E=x.children[0],L=O(x);g=E.getBoundingClientRect(),L.attr("width",g.width),L.attr("height",g.height)}const m=t.padding/2;return O(x).attr("transform","translate( "+(g.width>w.width?0:(w.width-g.width)/2)+", "+(w.height+m+5)+")"),O(d).attr("transform","translate( "+(g.width<w.width?0:-(w.width-g.width)/2)+", 0)"),g=a.node().getBBox(),a.attr("transform","translate("+-g.width/2+", "+(-g.height/2-m+3)+")"),i.attr("class","outer title-state").attr("x",-g.width/2-m).attr("y",-g.height/2-m).attr("width",g.width+t.padding).attr("height",g.height+t.padding),n.attr("class","divider").attr("x1",-g.width/2-m).attr("x2",g.width/2+m).attr("y1",-g.height/2-m+w.height+m).attr("y2",-g.height/2-m+w.height+m),z(t,i),t.intersect=function(E){return R.rect(t,E)},s},"rectWithTitle"),La=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.height+t.padding,n=s.width+i/4+t.padding,a=r.insert("rect",":first-child").attr("style",t.style).attr("rx",i/2).attr("ry",i/2).attr("x",-n/2).attr("y",-i/2).attr("width",n).attr("height",i);return z(t,a),t.intersect=function(c){return R.rect(t,c)},r},"stadium"),va=u(async(e,t)=>{const{shapeSvg:r,bbox:s,halfPadding:i}=await K(e,t,q(t,void 0),!0),n=r.insert("circle",":first-child");return n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+i).attr("width",s.width+t.padding).attr("height",s.height+t.padding),v.info("Circle main"),z(t,n),t.intersect=function(a){return v.info("Circle intersect",t,s.width/2+i,a),R.circle(t,s.width/2+i,a)},r},"circle"),Ea=u(async(e,t)=>{const{shapeSvg:r,bbox:s,halfPadding:i}=await K(e,t,q(t,void 0),!0),n=5,a=r.insert("g",":first-child"),c=a.insert("circle"),l=a.insert("circle");return a.attr("class",t.class),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+i+n).attr("width",s.width+t.padding+n*2).attr("height",s.height+t.padding+n*2),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+i).attr("width",s.width+t.padding).attr("height",s.height+t.padding),v.info("DoubleCircle main"),z(t,c),t.intersect=function(d){return v.info("DoubleCircle intersect",t,s.width/2+i+n,d),R.circle(t,s.width/2+i+n,d)},r},"doublecircle"),_a=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:0,y:0},{x:i,y:0},{x:i,y:-n},{x:0,y:-n},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-n},{x:-8,y:-n},{x:-8,y:0}],c=rt(r,i,n,a);return c.attr("style",t.style),z(t,c),t.intersect=function(l){return R.polygon(t,a,l)},r},"subroutine"),ka=u((e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=r.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),z(t,s),t.intersect=function(i){return R.circle(t,7,i)},r},"start"),Xt=u((e,t,r)=>{const s=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let i=70,n=10;r==="LR"&&(i=10,n=70);const a=s.append("rect").attr("x",-1*i/2).attr("y",-1*n/2).attr("width",i).attr("height",n).attr("class","fork-join");return z(t,a),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(c){return R.rect(t,c)},s},"forkJoin"),Ta=u((e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=r.insert("circle",":first-child"),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),s.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),z(t,i),t.intersect=function(n){return R.circle(t,7,n)},r},"end"),Da=u(async(e,t)=>{var T;const r=t.padding/2,s=4,i=8;let n;t.classes?n="node "+t.classes:n="node default";const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),c=a.insert("rect",":first-child"),l=a.insert("line"),d=a.insert("line");let g=0,o=s;const w=a.insert("g").attr("class","label");let x=0;const m=(T=t.classData.annotations)==null?void 0:T[0],E=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",L=await tt(w,E,t.labelStyle,!0,!0);let I=L.getBBox();if(Z(Y())){const h=L.children[0],k=O(L);I=h.getBoundingClientRect(),k.attr("width",I.width),k.attr("height",I.height)}t.classData.annotations[0]&&(o+=I.height+s,g+=I.width);let C=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(Z(Y())?C+="<"+t.classData.type+">":C+="<"+t.classData.type+">");const N=await tt(w,C,t.labelStyle,!0,!0);O(N).attr("class","classTitle");let b=N.getBBox();if(Z(Y())){const h=N.children[0],k=O(N);b=h.getBoundingClientRect(),k.attr("width",b.width),k.attr("height",b.height)}o+=b.height+s,b.width>g&&(g=b.width);const p=[];t.classData.members.forEach(async h=>{const k=h.getDisplayDetails();let f=k.displayText;Z(Y())&&(f=f.replace(/</g,"<").replace(/>/g,">"));const _=await tt(w,f,k.cssStyle?k.cssStyle:t.labelStyle,!0,!0);let B=_.getBBox();if(Z(Y())){const W=_.children[0],J=O(_);B=W.getBoundingClientRect(),J.attr("width",B.width),J.attr("height",B.height)}B.width>g&&(g=B.width),o+=B.height+s,p.push(_)}),o+=i;const y=[];if(t.classData.methods.forEach(async h=>{const k=h.getDisplayDetails();let f=k.displayText;Z(Y())&&(f=f.replace(/</g,"<").replace(/>/g,">"));const _=await tt(w,f,k.cssStyle?k.cssStyle:t.labelStyle,!0,!0);let B=_.getBBox();if(Z(Y())){const W=_.children[0],J=O(_);B=W.getBoundingClientRect(),J.attr("width",B.width),J.attr("height",B.height)}B.width>g&&(g=B.width),o+=B.height+s,y.push(_)}),o+=i,m){let h=(g-I.width)/2;O(L).attr("transform","translate( "+(-1*g/2+h)+", "+-1*o/2+")"),x=I.height+s}let S=(g-b.width)/2;return O(N).attr("transform","translate( "+(-1*g/2+S)+", "+(-1*o/2+x)+")"),x+=b.height+s,l.attr("class","divider").attr("x1",-g/2-r).attr("x2",g/2+r).attr("y1",-o/2-r+i+x).attr("y2",-o/2-r+i+x),x+=i,p.forEach(h=>{var f;O(h).attr("transform","translate( "+-g/2+", "+(-1*o/2+x+i/2)+")");const k=h==null?void 0:h.getBBox();x+=((f=k==null?void 0:k.height)!=null?f:0)+s}),x+=i,d.attr("class","divider").attr("x1",-g/2-r).attr("x2",g/2+r).attr("y1",-o/2-r+i+x).attr("y2",-o/2-r+i+x),x+=i,y.forEach(h=>{var f;O(h).attr("transform","translate( "+-g/2+", "+(-1*o/2+x)+")");const k=h==null?void 0:h.getBBox();x+=((f=k==null?void 0:k.height)!=null?f:0)+s}),c.attr("style",t.style).attr("class","outer title-state").attr("x",-g/2-r).attr("y",-(o/2)-r).attr("width",g+t.padding).attr("height",o+t.padding),z(t,c),t.intersect=function(h){return R.rect(t,h)},a},"class_box"),Vt={rhombus:Ut,composite:wa,question:Ut,rect:ba,labelRect:ma,rectWithTitle:Sa,choice:la,circle:va,doublecircle:Ea,stadium:La,hexagon:oa,block_arrow:ha,rect_left_inv_arrow:ga,lean_right:ua,lean_left:da,trapezoid:pa,inv_trapezoid:fa,rect_right_inv_arrow:ya,cylinder:xa,start:ka,end:Ta,note:ca,subroutine:_a,fork:Xt,join:Xt,class_box:Da},pt={},Le=u(async(e,t,r)=>{let s,i;if(t.link){let n;Y().securityLevel==="sandbox"?n="_top":t.linkTarget&&(n=t.linkTarget||"_blank"),s=e.insert("svg:a").attr("xlink:href",t.link).attr("target",n),i=await Vt[t.shape](s,t,r)}else i=await Vt[t.shape](e,t,r),s=i;return t.tooltip&&i.attr("title",t.tooltip),t.class&&i.attr("class","node default "+t.class),pt[t.id]=s,t.haveCallback&&pt[t.id].attr("class",pt[t.id].attr("class")+" clickable"),s},"insertNode"),Na=u(e=>{const t=pt[e.id];v.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,s=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+s-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),s},"positionNode");function Rt(e,t,r=!1){var x,m,E,L,I,C,N,b;const s=e;let i="default";(((x=s==null?void 0:s.classes)==null?void 0:x.length)||0)>0&&(i=((m=s==null?void 0:s.classes)!=null?m:[]).join(" ")),i=i+" flowchart-label";let n=0,a="",c;switch(s.type){case"round":n=5,a="rect";break;case"composite":n=0,a="composite",c=0;break;case"square":a="rect";break;case"diamond":a="question";break;case"hexagon":a="hexagon";break;case"block_arrow":a="block_arrow";break;case"odd":a="rect_left_inv_arrow";break;case"lean_right":a="lean_right";break;case"lean_left":a="lean_left";break;case"trapezoid":a="trapezoid";break;case"inv_trapezoid":a="inv_trapezoid";break;case"rect_left_inv_arrow":a="rect_left_inv_arrow";break;case"circle":a="circle";break;case"ellipse":a="ellipse";break;case"stadium":a="stadium";break;case"subroutine":a="subroutine";break;case"cylinder":a="cylinder";break;case"group":a="rect";break;case"doublecircle":a="doublecircle";break;default:a="rect"}const l=Je((E=s==null?void 0:s.styles)!=null?E:[]),d=s.label,g=(L=s.size)!=null?L:{width:0,height:0,x:0,y:0},o=t.getDiagramId();return{labelStyle:l.labelStyle,shape:a,labelText:d,rx:n,ry:n,class:i,style:l.style,id:s.id,domId:o?`${o}-${s.id}`:s.id,directions:s.directions,width:g.width,height:g.height,x:g.x,y:g.y,positioned:r,intersect:void 0,type:s.type,padding:(N=c!=null?c:(C=(I=ut())==null?void 0:I.block)==null?void 0:C.padding)!=null?N:0,widthInColumns:(b=s.widthInColumns)!=null?b:1}}u(Rt,"getNodeFromBlock");async function ve(e,t,r){const s=Rt(t,r,!1);if(s.type==="group")return;const i=ut(),n=await Le(e,s,{config:i}),a=n.node().getBBox(),c=r.getBlock(s.id);c.size={width:a.width,height:a.height,x:0,y:0,node:n},r.setBlock(c),n.remove()}u(ve,"calculateBlockSize");async function Ee(e,t,r){const s=Rt(t,r,!0);if(r.getBlock(s.id).type!=="space"){const n=ut();await Le(e,s,{config:n}),t.intersect=s==null?void 0:s.intersect,Na(s)}}u(Ee,"insertBlockPositioned");async function bt(e,t,r,s){for(const i of t)await s(e,i,r),i.children&&await bt(e,i.children,r,s)}u(bt,"performOperations");async function _e(e,t,r){await bt(e,t,r,ve)}u(_e,"calculateBlockSizes");async function ke(e,t,r){await bt(e,t,r,Ee)}u(ke,"insertBlocks");async function Te(e,t,r,s,i){const n=new $e({multigraph:!0,compound:!0});n.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const a of r)a.size&&n.setNode(a.id,{width:a.size.width,height:a.size.height,intersect:a.intersect});for(const a of t)if(a.start&&a.end){const c=s.getBlock(a.start),l=s.getBlock(a.end);if(c!=null&&c.size&&(l!=null&&l.size)){const d=c.size,g=l.size,o=[{x:d.x,y:d.y},{x:d.x+(g.x-d.x)/2,y:d.y+(g.y-d.y)/2},{x:g.x,y:g.y}],w=i?`${i}-${a.id}`:a.id,x=a.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",m=a.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",E=`${x} ${m} flowchart-link LS-a1 LE-b1`;Jr(e,{v:a.start,w:a.end,name:w},{...a,id:w,arrowTypeEnd:a.arrowTypeEnd,arrowTypeStart:a.arrowTypeStart,points:o,classes:E},void 0,"block",n,i),a.label&&(await Zr(e,{...a,label:a.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:a.arrowTypeEnd,arrowTypeStart:a.arrowTypeStart,points:o,classes:E}),Gr({...a,x:o[1].x,y:o[1].y},{originalPath:o}))}}}u(Te,"insertEdges");var Ia=u(function(e,t){return t.db.getClasses()},"getClasses"),Ca=u(async function(e,t,r,s){const{securityLevel:i,block:n}=ut(),a=s.db;a.setDiagramId(t);let c;i==="sandbox"&&(c=O("#i"+t));const l=i==="sandbox"?O(c.nodes()[0].contentDocument.body):O("body"),d=i==="sandbox"?l.select(`[id="${t}"]`):O(`[id="${t}"]`);Hr(d,["point","circle","cross"],s.type,t);const o=a.getBlocks(),w=a.getBlocksFlat(),x=a.getEdges(),m=d.insert("g").attr("class","block");await _e(m,o,a);const E=fe(a);if(await ke(m,o,a),await Te(m,x,w,a,t),E){const L=E,I=Math.max(1,Math.round(.125*(L.width/L.height))),C=L.height+I+10,N=L.width+10,{useMaxWidth:b}=n;He(d,C,N,!!b),v.debug("Here Bounds",E,L),d.attr("viewBox",`${L.x-5} ${L.y-5} ${L.width+10} ${L.height+10}`)}},"draw"),Ba={draw:Ca,getClasses:Ia},Pa={parser:cr,db:Dr,renderer:Ba,styles:Ir};export{Pa as diagram};
|
|
132
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const s=e.x,i=e.y,n=Math.abs(s-r.x),a=e.width/2;let c=r.x<t.x?a-n:a+n;const l=e.height/2,d=Math.abs(t.y-r.y),g=Math.abs(t.x-r.x);if(Math.abs(i-t.y)*a>Math.abs(s-t.x)*l){let o=r.y<t.y?t.y-l-i:i-l-t.y;c=g*o/d;const w={x:r.x<t.x?r.x+c:r.x-g+c,y:r.y<t.y?r.y+d-o:r.y-d+o};return c===0&&(w.x=t.x,w.y=t.y),g===0&&(w.x=t.x),d===0&&(w.y=t.y),v.debug(`abc89 topp/bott calc, Q ${d}, q ${o}, R ${g}, r ${c}`,w),w}else{r.x<t.x?c=t.x-a-s:c=s-a-t.x;let o=d*c/g,w=r.x<t.x?r.x+g-c:r.x-g+c,x=r.y<t.y?r.y+o:r.y-o;return v.debug(`sides calc abc89, Q ${d}, q ${o}, R ${g}, r ${c}`,{_x:w,_y:x}),c===0&&(w=t.x,x=t.y),g===0&&(w=t.x),d===0&&(x=t.y),{x:w,y:x}}},"intersection"),Ht=u((e,t)=>{v.debug("abc88 cutPathAtIntersect",e,t);let r=[],s=e[0],i=!1;return e.forEach(n=>{if(!jr(t,n)&&!i){const a=qr(t,s,n);let c=!1;r.forEach(l=>{c=c||l.x===a.x&&l.y===a.y}),r.some(l=>l.x===a.x&&l.y===a.y)||r.push(a),i=!0}else s=n,i||r.push(n)}),r},"cutPathAtIntersect"),Jr=u(function(e,t,r,s,i,n,a){let c=r.points;v.debug("abc88 InsertEdge: edge=",r,"e=",t);let l=!1;const d=n.node(t.v);var g=n.node(t.w);g!=null&&g.intersect&&(d!=null&&d.intersect)&&(c=c.slice(1,r.points.length-1),c.unshift(d.intersect(c[0])),c.push(g.intersect(c[c.length-1]))),r.toCluster&&(v.debug("to cluster abc88",s[r.toCluster]),c=Ht(r.points,s[r.toCluster].node),l=!0),r.fromCluster&&(v.debug("from cluster abc88",s[r.fromCluster]),c=Ht(c.reverse(),s[r.fromCluster].node).reverse(),l=!0);const o=c.filter(b=>!Number.isNaN(b.y));let w=Ze;r.curve&&(i==="graph"||i==="flowchart")&&(w=r.curve);const{x,y:m}=Xe(r),E=Ve().x(x).y(m).curve(w);let L;switch(r.thickness){case"normal":L="edge-thickness-normal";break;case"thick":L="edge-thickness-thick";break;case"invisible":L="edge-thickness-thick";break;default:L=""}switch(r.pattern){case"solid":L+=" edge-pattern-solid";break;case"dotted":L+=" edge-pattern-dotted";break;case"dashed":L+=" edge-pattern-dashed";break}const I=e.append("path").attr("d",E(o)).attr("id",r.id).attr("class"," "+L+(r.classes?" "+r.classes:"")).attr("style",r.style);let C="";(Y().flowchart.arrowMarkerAbsolute||Y().state.arrowMarkerAbsolute)&&(C=Ge(!0)),Xr(I,r,C,a,i);let N={};return l&&(N.updatedPath=c),N.originalPath=r.points,N},"insertEdge"),Qr=u(e=>{const t=new Set;for(const r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),$r=u((e,t,r,s)=>{const i=Qr(e),n=2,a=t.height+2*r.padding,c=a/n,l=s!=null?s:t.width+2*c+r.padding,d=r.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:c,y:0},{x:l/2,y:2*d},{x:l-c,y:0},{x:l,y:0},{x:l,y:-a/3},{x:l+2*d,y:-a/2},{x:l,y:-2*a/3},{x:l,y:-a},{x:l-c,y:-a},{x:l/2,y:-a-2*d},{x:c,y:-a},{x:0,y:-a},{x:0,y:-2*a/3},{x:-2*d,y:-a/2},{x:0,y:-a/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:c,y:0},{x:l-c,y:0},{x:l,y:-a/2},{x:l-c,y:-a},{x:c,y:-a},{x:0,y:-a/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:c,y:-a},{x:l-c,y:-a},{x:l,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:l,y:-c},{x:l,y:-a+c},{x:0,y:-a}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:l,y:0},{x:0,y:-c},{x:0,y:-a+c},{x:l,y:-a}]:i.has("right")&&i.has("left")?[{x:c,y:0},{x:c,y:-d},{x:l-c,y:-d},{x:l-c,y:0},{x:l,y:-a/2},{x:l-c,y:-a},{x:l-c,y:-a+d},{x:c,y:-a+d},{x:c,y:-a},{x:0,y:-a/2}]:i.has("up")&&i.has("down")?[{x:l/2,y:0},{x:0,y:-d},{x:c,y:-d},{x:c,y:-a+d},{x:0,y:-a+d},{x:l/2,y:-a},{x:l,y:-a+d},{x:l-c,y:-a+d},{x:l-c,y:-d},{x:l,y:-d}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:l,y:-c},{x:0,y:-a}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-a}]:i.has("left")&&i.has("up")?[{x:l,y:0},{x:0,y:-c},{x:l,y:-a}]:i.has("left")&&i.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-a}]:i.has("right")?[{x:c,y:-d},{x:c,y:-d},{x:l-c,y:-d},{x:l-c,y:0},{x:l,y:-a/2},{x:l-c,y:-a},{x:l-c,y:-a+d},{x:c,y:-a+d},{x:c,y:-a+d}]:i.has("left")?[{x:c,y:0},{x:c,y:-d},{x:l-c,y:-d},{x:l-c,y:-a+d},{x:c,y:-a+d},{x:c,y:-a},{x:0,y:-a/2}]:i.has("up")?[{x:c,y:-d},{x:c,y:-a+d},{x:0,y:-a+d},{x:l/2,y:-a},{x:l,y:-a+d},{x:l-c,y:-a+d},{x:l-c,y:-d}]:i.has("down")?[{x:l/2,y:0},{x:0,y:-d},{x:c,y:-d},{x:c,y:-a+d},{x:l-c,y:-a+d},{x:l-c,y:-d},{x:l,y:-d}]:[{x:0,y:0}]},"getArrowPoints");function ye(e,t){return e.intersect(t)}u(ye,"intersectNode");var ta=ye;function xe(e,t,r,s){var i=e.x,n=e.y,a=i-s.x,c=n-s.y,l=Math.sqrt(t*t*c*c+r*r*a*a),d=Math.abs(t*r*a/l);s.x<i&&(d=-d);var g=Math.abs(t*r*c/l);return s.y<n&&(g=-g),{x:i+d,y:n+g}}u(xe,"intersectEllipse");var be=xe;function we(e,t,r){return be(e,t,t,r)}u(we,"intersectCircle");var ea=we;function me(e,t,r,s){var i,n,a,c,l,d,g,o,w,x,m,E,L,I,C;if(i=t.y-e.y,a=e.x-t.x,l=t.x*e.y-e.x*t.y,w=i*r.x+a*r.y+l,x=i*s.x+a*s.y+l,!(w!==0&&x!==0&&Tt(w,x))&&(n=s.y-r.y,c=r.x-s.x,d=s.x*r.y-r.x*s.y,g=n*e.x+c*e.y+d,o=n*t.x+c*t.y+d,!(g!==0&&o!==0&&Tt(g,o))&&(m=i*c-n*a,m!==0)))return E=Math.abs(m/2),L=a*d-c*l,I=L<0?(L-E)/m:(L+E)/m,L=n*l-i*d,C=L<0?(L-E)/m:(L+E)/m,{x:I,y:C}}u(me,"intersectLine");function Tt(e,t){return e*t>0}u(Tt,"sameSign");var ra=me,aa=Se;function Se(e,t,r){var s=e.x,i=e.y,n=[],a=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(m){a=Math.min(a,m.x),c=Math.min(c,m.y)}):(a=Math.min(a,t.x),c=Math.min(c,t.y));for(var l=s-e.width/2-a,d=i-e.height/2-c,g=0;g<t.length;g++){var o=t[g],w=t[g<t.length-1?g+1:0],x=ra(e,r,{x:l+o.x,y:d+o.y},{x:l+w.x,y:d+w.y});x&&n.push(x)}return n.length?(n.length>1&&n.sort(function(m,E){var L=m.x-r.x,I=m.y-r.y,C=Math.sqrt(L*L+I*I),N=E.x-r.x,b=E.y-r.y,p=Math.sqrt(N*N+b*b);return C<p?-1:C===p?0:1}),n[0]):e}u(Se,"intersectPolygon");var sa=u((e,t)=>{var r=e.x,s=e.y,i=t.x-r,n=t.y-s,a=e.width/2,c=e.height/2,l,d;return Math.abs(n)*a>Math.abs(i)*c?(n<0&&(c=-c),l=n===0?0:c*i/n,d=c):(i<0&&(a=-a),l=a,d=i===0?0:a*n/i),{x:r+l,y:s+d}},"intersectRect"),ia=sa,R={node:ta,circle:ea,ellipse:be,polygon:aa,rect:ia},K=u(async(e,t,r,s)=>{const i=Y();let n;const a=t.useHtmlLabels||Z(i);r?n=r:n="node default";const c=e.insert("g").attr("class",n).attr("id",t.domId||t.id),l=c.insert("g").attr("class","label").attr("style",t.labelStyle);let d;t.labelText===void 0?d="":d=typeof t.labelText=="string"?t.labelText:t.labelText[0];let g;t.labelType==="markdown"?g=Dt(l,zt(Mt(d),i),{useHtmlLabels:a,width:t.width||i.flowchart.wrappingWidth,classes:"markdown-node-label"},i):g=await tt(l,zt(Mt(d),i),t.labelStyle,!1,s);let o=g.getBBox();const w=t.padding/2;if(Z(i)){const x=g.children[0],m=O(g);await Qe(x,d),o=x.getBoundingClientRect(),m.attr("width",o.width),m.attr("height",o.height)}return a?l.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):l.attr("transform","translate(0, "+-o.height/2+")"),t.centerLabel&&l.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:c,bbox:o,halfPadding:w,label:l}},"labelHelper"),z=u((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds");function rt(e,t,r,s){return e.insert("polygon",":first-child").attr("points",s.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}u(rt,"insertPolygonShape");var na=u(async(e,t)=>{t.useHtmlLabels||Z(Y())||(t.centerLabel=!0);const{shapeSvg:s,bbox:i,halfPadding:n}=await K(e,t,"node "+t.classes,!0);v.info("Classes = ",t.classes);const a=s.insert("rect",":first-child");return a.attr("rx",t.rx).attr("ry",t.ry).attr("x",-i.width/2-n).attr("y",-i.height/2-n).attr("width",i.width+t.padding).attr("height",i.height+t.padding),z(t,a),t.intersect=function(c){return R.rect(t,c)},s},"note"),ca=na,Kt=u(e=>e?" "+e:"","formatClass"),q=u((e,t)=>`${t||"node default"}${Kt(e.classes)} ${Kt(e.class)}`,"getClassesFromNode"),Ut=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=i+n,c=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];v.info("Question main (Circle)");const l=rt(r,a,a,c);return l.attr("style",t.style),z(t,l),t.intersect=function(d){return v.warn("Intersect called"),R.polygon(t,c,d)},r},"question"),la=u((e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=28,i=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}];return r.insert("polygon",":first-child").attr("points",i.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(a){return R.circle(t,14,a)},r},"choice"),oa=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=4,n=t.positioned?t.height:s.height+t.padding,a=n/i,c=t.positioned?t.width:s.width+2*a+t.padding,l=[{x:a,y:0},{x:c-a,y:0},{x:c,y:-n/2},{x:c-a,y:-n},{x:a,y:-n},{x:0,y:-n/2}],d=rt(r,c,n,l);return d.attr("style",t.style),z(t,d),t.intersect=function(g){return R.polygon(t,l,g)},r},"hexagon"),ha=u(async(e,t)=>{var w;const{shapeSvg:r,bbox:s}=await K(e,t,void 0,!0),i=2,n=s.height+2*t.padding,a=n/i,c=s.width+2*a+t.padding,d=t.positioned&&((w=t.widthInColumns)!=null?w:1)>1&&t.width>c?t.width:c,g=$r(t.directions,s,t,d),o=rt(r,d,n,g);return o.attr("style",t.style),z(t,o),t.intersect=function(x){return R.polygon(t,g,x)},r},"block_arrow"),ga=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:-n/2,y:0},{x:i,y:0},{x:i,y:-n},{x:-n/2,y:-n},{x:0,y:-n/2}];return rt(r,i,n,a).attr("style",t.style),t.width=i+n,t.height=n,t.intersect=function(l){return R.polygon(t,a,l)},r},"rect_left_inv_arrow"),ua=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:-2*n/6,y:0},{x:i-n/6,y:0},{x:i+2*n/6,y:-n},{x:n/6,y:-n}],c=rt(r,i,n,a);return c.attr("style",t.style),z(t,c),t.intersect=function(l){return R.polygon(t,a,l)},r},"lean_right"),da=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:2*n/6,y:0},{x:i+n/6,y:0},{x:i-2*n/6,y:-n},{x:-n/6,y:-n}],c=rt(r,i,n,a);return c.attr("style",t.style),z(t,c),t.intersect=function(l){return R.polygon(t,a,l)},r},"lean_left"),pa=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:-2*n/6,y:0},{x:i+2*n/6,y:0},{x:i-n/6,y:-n},{x:n/6,y:-n}],c=rt(r,i,n,a);return c.attr("style",t.style),z(t,c),t.intersect=function(l){return R.polygon(t,a,l)},r},"trapezoid"),fa=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:n/6,y:0},{x:i-n/6,y:0},{x:i+2*n/6,y:-n},{x:-2*n/6,y:-n}],c=rt(r,i,n,a);return c.attr("style",t.style),z(t,c),t.intersect=function(l){return R.polygon(t,a,l)},r},"inv_trapezoid"),ya=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:0,y:0},{x:i+n/2,y:0},{x:i,y:-n/2},{x:i+n/2,y:-n},{x:0,y:-n}],c=rt(r,i,n,a);return c.attr("style",t.style),z(t,c),t.intersect=function(l){return R.polygon(t,a,l)},r},"rect_right_inv_arrow"),xa=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=i/2,a=n/(2.5+i/50),c=s.height+a+t.padding,l="M 0,"+a+" a "+n+","+a+" 0,0,0 "+i+" 0 a "+n+","+a+" 0,0,0 "+-i+" 0 l 0,"+c+" a "+n+","+a+" 0,0,0 "+i+" 0 l 0,"+-c,d=r.attr("label-offset-y",a).insert("path",":first-child").attr("style",t.style).attr("d",l).attr("transform","translate("+-i/2+","+-(c/2+a)+")");return z(t,d),t.intersect=function(g){const o=R.rect(t,g),w=o.x-t.x;if(n!=0&&(Math.abs(w)<t.width/2||Math.abs(w)==t.width/2&&Math.abs(o.y-t.y)>t.height/2-a)){let x=a*a*(1-w*w/(n*n));x!=0&&(x=Math.sqrt(x)),x=a-x,g.y-t.y>0&&(x=-x),o.y+=x}return o},r},"cylinder"),ba=u(async(e,t)=>{const{shapeSvg:r,bbox:s,halfPadding:i}=await K(e,t,"node "+t.classes+" "+t.class,!0),n=r.insert("rect",":first-child"),a=t.positioned?t.width:s.width+t.padding,c=t.positioned?t.height:s.height+t.padding,l=t.positioned?-a/2:-s.width/2-i,d=t.positioned?-c/2:-s.height/2-i;if(n.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",l).attr("y",d).attr("width",a).attr("height",c),t.props){const g=new Set(Object.keys(t.props));t.props.borders&&(xt(n,t.props.borders,a,c),g.delete("borders")),g.forEach(o=>{v.warn(`Unknown node property ${o}`)})}return z(t,n),t.intersect=function(g){return R.rect(t,g)},r},"rect"),wa=u(async(e,t)=>{const{shapeSvg:r,bbox:s,halfPadding:i}=await K(e,t,"node "+t.classes,!0),n=r.insert("rect",":first-child"),a=t.positioned?t.width:s.width+t.padding,c=t.positioned?t.height:s.height+t.padding,l=t.positioned?-a/2:-s.width/2-i,d=t.positioned?-c/2:-s.height/2-i;if(n.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",l).attr("y",d).attr("width",a).attr("height",c),t.props){const g=new Set(Object.keys(t.props));t.props.borders&&(xt(n,t.props.borders,a,c),g.delete("borders")),g.forEach(o=>{v.warn(`Unknown node property ${o}`)})}return z(t,n),t.intersect=function(g){return R.rect(t,g)},r},"composite"),ma=u(async(e,t)=>{const{shapeSvg:r}=await K(e,t,"label",!0);v.trace("Classes = ",t.class);const s=r.insert("rect",":first-child"),i=0,n=0;if(s.attr("width",i).attr("height",n),r.attr("class","label edgeLabel"),t.props){const a=new Set(Object.keys(t.props));t.props.borders&&(xt(s,t.props.borders,i,n),a.delete("borders")),a.forEach(c=>{v.warn(`Unknown node property ${c}`)})}return z(t,s),t.intersect=function(a){return R.rect(t,a)},r},"labelRect");function xt(e,t,r,s){const i=[],n=u(c=>{i.push(c,0)},"addBorder"),a=u(c=>{i.push(0,c)},"skipBorder");t.includes("t")?(v.debug("add top border"),n(r)):a(r),t.includes("r")?(v.debug("add right border"),n(s)):a(s),t.includes("b")?(v.debug("add bottom border"),n(r)):a(r),t.includes("l")?(v.debug("add left border"),n(s)):a(s),e.attr("stroke-dasharray",i.join(" "))}u(xt,"applyNodePropertyBorders");var Sa=u(async(e,t)=>{let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),i=s.insert("rect",":first-child"),n=s.insert("line"),a=s.insert("g").attr("class","label"),c=t.labelText.flat?t.labelText.flat():t.labelText;let l="";typeof c=="object"?l=c[0]:l=c,v.info("Label text abc79",l,c,typeof c=="object");const d=await tt(a,l,t.labelStyle,!0,!0);let g={width:0,height:0};if(Z(Y())){const E=d.children[0],L=O(d);g=E.getBoundingClientRect(),L.attr("width",g.width),L.attr("height",g.height)}v.info("Text 2",c);const o=c.slice(1,c.length);let w=d.getBBox();const x=await tt(a,o.join?o.join("<br/>"):o,t.labelStyle,!0,!0);if(Z(Y())){const E=x.children[0],L=O(x);g=E.getBoundingClientRect(),L.attr("width",g.width),L.attr("height",g.height)}const m=t.padding/2;return O(x).attr("transform","translate( "+(g.width>w.width?0:(w.width-g.width)/2)+", "+(w.height+m+5)+")"),O(d).attr("transform","translate( "+(g.width<w.width?0:-(w.width-g.width)/2)+", 0)"),g=a.node().getBBox(),a.attr("transform","translate("+-g.width/2+", "+(-g.height/2-m+3)+")"),i.attr("class","outer title-state").attr("x",-g.width/2-m).attr("y",-g.height/2-m).attr("width",g.width+t.padding).attr("height",g.height+t.padding),n.attr("class","divider").attr("x1",-g.width/2-m).attr("x2",g.width/2+m).attr("y1",-g.height/2-m+w.height+m).attr("y2",-g.height/2-m+w.height+m),z(t,i),t.intersect=function(E){return R.rect(t,E)},s},"rectWithTitle"),La=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.height+t.padding,n=s.width+i/4+t.padding,a=r.insert("rect",":first-child").attr("style",t.style).attr("rx",i/2).attr("ry",i/2).attr("x",-n/2).attr("y",-i/2).attr("width",n).attr("height",i);return z(t,a),t.intersect=function(c){return R.rect(t,c)},r},"stadium"),va=u(async(e,t)=>{const{shapeSvg:r,bbox:s,halfPadding:i}=await K(e,t,q(t,void 0),!0),n=r.insert("circle",":first-child");return n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+i).attr("width",s.width+t.padding).attr("height",s.height+t.padding),v.info("Circle main"),z(t,n),t.intersect=function(a){return v.info("Circle intersect",t,s.width/2+i,a),R.circle(t,s.width/2+i,a)},r},"circle"),Ea=u(async(e,t)=>{const{shapeSvg:r,bbox:s,halfPadding:i}=await K(e,t,q(t,void 0),!0),n=5,a=r.insert("g",":first-child"),c=a.insert("circle"),l=a.insert("circle");return a.attr("class",t.class),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+i+n).attr("width",s.width+t.padding+n*2).attr("height",s.height+t.padding+n*2),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+i).attr("width",s.width+t.padding).attr("height",s.height+t.padding),v.info("DoubleCircle main"),z(t,c),t.intersect=function(d){return v.info("DoubleCircle intersect",t,s.width/2+i+n,d),R.circle(t,s.width/2+i+n,d)},r},"doublecircle"),_a=u(async(e,t)=>{const{shapeSvg:r,bbox:s}=await K(e,t,q(t,void 0),!0),i=s.width+t.padding,n=s.height+t.padding,a=[{x:0,y:0},{x:i,y:0},{x:i,y:-n},{x:0,y:-n},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-n},{x:-8,y:-n},{x:-8,y:0}],c=rt(r,i,n,a);return c.attr("style",t.style),z(t,c),t.intersect=function(l){return R.polygon(t,a,l)},r},"subroutine"),ka=u((e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=r.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),z(t,s),t.intersect=function(i){return R.circle(t,7,i)},r},"start"),Xt=u((e,t,r)=>{const s=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let i=70,n=10;r==="LR"&&(i=10,n=70);const a=s.append("rect").attr("x",-1*i/2).attr("y",-1*n/2).attr("width",i).attr("height",n).attr("class","fork-join");return z(t,a),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(c){return R.rect(t,c)},s},"forkJoin"),Ta=u((e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=r.insert("circle",":first-child"),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),s.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),z(t,i),t.intersect=function(n){return R.circle(t,7,n)},r},"end"),Da=u(async(e,t)=>{var T;const r=t.padding/2,s=4,i=8;let n;t.classes?n="node "+t.classes:n="node default";const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),c=a.insert("rect",":first-child"),l=a.insert("line"),d=a.insert("line");let g=0,o=s;const w=a.insert("g").attr("class","label");let x=0;const m=(T=t.classData.annotations)==null?void 0:T[0],E=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",L=await tt(w,E,t.labelStyle,!0,!0);let I=L.getBBox();if(Z(Y())){const h=L.children[0],k=O(L);I=h.getBoundingClientRect(),k.attr("width",I.width),k.attr("height",I.height)}t.classData.annotations[0]&&(o+=I.height+s,g+=I.width);let C=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(Z(Y())?C+="<"+t.classData.type+">":C+="<"+t.classData.type+">");const N=await tt(w,C,t.labelStyle,!0,!0);O(N).attr("class","classTitle");let b=N.getBBox();if(Z(Y())){const h=N.children[0],k=O(N);b=h.getBoundingClientRect(),k.attr("width",b.width),k.attr("height",b.height)}o+=b.height+s,b.width>g&&(g=b.width);const p=[];t.classData.members.forEach(async h=>{const k=h.getDisplayDetails();let f=k.displayText;Z(Y())&&(f=f.replace(/</g,"<").replace(/>/g,">"));const _=await tt(w,f,k.cssStyle?k.cssStyle:t.labelStyle,!0,!0);let B=_.getBBox();if(Z(Y())){const W=_.children[0],J=O(_);B=W.getBoundingClientRect(),J.attr("width",B.width),J.attr("height",B.height)}B.width>g&&(g=B.width),o+=B.height+s,p.push(_)}),o+=i;const y=[];if(t.classData.methods.forEach(async h=>{const k=h.getDisplayDetails();let f=k.displayText;Z(Y())&&(f=f.replace(/</g,"<").replace(/>/g,">"));const _=await tt(w,f,k.cssStyle?k.cssStyle:t.labelStyle,!0,!0);let B=_.getBBox();if(Z(Y())){const W=_.children[0],J=O(_);B=W.getBoundingClientRect(),J.attr("width",B.width),J.attr("height",B.height)}B.width>g&&(g=B.width),o+=B.height+s,y.push(_)}),o+=i,m){let h=(g-I.width)/2;O(L).attr("transform","translate( "+(-1*g/2+h)+", "+-1*o/2+")"),x=I.height+s}let S=(g-b.width)/2;return O(N).attr("transform","translate( "+(-1*g/2+S)+", "+(-1*o/2+x)+")"),x+=b.height+s,l.attr("class","divider").attr("x1",-g/2-r).attr("x2",g/2+r).attr("y1",-o/2-r+i+x).attr("y2",-o/2-r+i+x),x+=i,p.forEach(h=>{var f;O(h).attr("transform","translate( "+-g/2+", "+(-1*o/2+x+i/2)+")");const k=h==null?void 0:h.getBBox();x+=((f=k==null?void 0:k.height)!=null?f:0)+s}),x+=i,d.attr("class","divider").attr("x1",-g/2-r).attr("x2",g/2+r).attr("y1",-o/2-r+i+x).attr("y2",-o/2-r+i+x),x+=i,y.forEach(h=>{var f;O(h).attr("transform","translate( "+-g/2+", "+(-1*o/2+x)+")");const k=h==null?void 0:h.getBBox();x+=((f=k==null?void 0:k.height)!=null?f:0)+s}),c.attr("style",t.style).attr("class","outer title-state").attr("x",-g/2-r).attr("y",-(o/2)-r).attr("width",g+t.padding).attr("height",o+t.padding),z(t,c),t.intersect=function(h){return R.rect(t,h)},a},"class_box"),Vt={rhombus:Ut,composite:wa,question:Ut,rect:ba,labelRect:ma,rectWithTitle:Sa,choice:la,circle:va,doublecircle:Ea,stadium:La,hexagon:oa,block_arrow:ha,rect_left_inv_arrow:ga,lean_right:ua,lean_left:da,trapezoid:pa,inv_trapezoid:fa,rect_right_inv_arrow:ya,cylinder:xa,start:ka,end:Ta,note:ca,subroutine:_a,fork:Xt,join:Xt,class_box:Da},pt={},Le=u(async(e,t,r)=>{let s,i;if(t.link){let n;Y().securityLevel==="sandbox"?n="_top":t.linkTarget&&(n=t.linkTarget||"_blank"),s=e.insert("svg:a").attr("xlink:href",t.link).attr("target",n),i=await Vt[t.shape](s,t,r)}else i=await Vt[t.shape](e,t,r),s=i;return t.tooltip&&i.attr("title",t.tooltip),t.class&&i.attr("class","node default "+t.class),pt[t.id]=s,t.haveCallback&&pt[t.id].attr("class",pt[t.id].attr("class")+" clickable"),s},"insertNode"),Na=u(e=>{const t=pt[e.id];v.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,s=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+s-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),s},"positionNode");function Rt(e,t,r=!1){var x,m,E,L,I,C,N,b;const s=e;let i="default";(((x=s==null?void 0:s.classes)==null?void 0:x.length)||0)>0&&(i=((m=s==null?void 0:s.classes)!=null?m:[]).join(" ")),i=i+" flowchart-label";let n=0,a="",c;switch(s.type){case"round":n=5,a="rect";break;case"composite":n=0,a="composite",c=0;break;case"square":a="rect";break;case"diamond":a="question";break;case"hexagon":a="hexagon";break;case"block_arrow":a="block_arrow";break;case"odd":a="rect_left_inv_arrow";break;case"lean_right":a="lean_right";break;case"lean_left":a="lean_left";break;case"trapezoid":a="trapezoid";break;case"inv_trapezoid":a="inv_trapezoid";break;case"rect_left_inv_arrow":a="rect_left_inv_arrow";break;case"circle":a="circle";break;case"ellipse":a="ellipse";break;case"stadium":a="stadium";break;case"subroutine":a="subroutine";break;case"cylinder":a="cylinder";break;case"group":a="rect";break;case"doublecircle":a="doublecircle";break;default:a="rect"}const l=Je((E=s==null?void 0:s.styles)!=null?E:[]),d=s.label,g=(L=s.size)!=null?L:{width:0,height:0,x:0,y:0},o=t.getDiagramId();return{labelStyle:l.labelStyle,shape:a,labelText:d,rx:n,ry:n,class:i,style:l.style,id:s.id,domId:o?`${o}-${s.id}`:s.id,directions:s.directions,width:g.width,height:g.height,x:g.x,y:g.y,positioned:r,intersect:void 0,type:s.type,padding:(N=c!=null?c:(C=(I=ut())==null?void 0:I.block)==null?void 0:C.padding)!=null?N:0,widthInColumns:(b=s.widthInColumns)!=null?b:1}}u(Rt,"getNodeFromBlock");async function ve(e,t,r){const s=Rt(t,r,!1);if(s.type==="group")return;const i=ut(),n=await Le(e,s,{config:i}),a=n.node().getBBox(),c=r.getBlock(s.id);c.size={width:a.width,height:a.height,x:0,y:0,node:n},r.setBlock(c),n.remove()}u(ve,"calculateBlockSize");async function Ee(e,t,r){const s=Rt(t,r,!0);if(r.getBlock(s.id).type!=="space"){const n=ut();await Le(e,s,{config:n}),t.intersect=s==null?void 0:s.intersect,Na(s)}}u(Ee,"insertBlockPositioned");async function bt(e,t,r,s){for(const i of t)await s(e,i,r),i.children&&await bt(e,i.children,r,s)}u(bt,"performOperations");async function _e(e,t,r){await bt(e,t,r,ve)}u(_e,"calculateBlockSizes");async function ke(e,t,r){await bt(e,t,r,Ee)}u(ke,"insertBlocks");async function Te(e,t,r,s,i){const n=new $e({multigraph:!0,compound:!0});n.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const a of r)a.size&&n.setNode(a.id,{width:a.size.width,height:a.size.height,intersect:a.intersect});for(const a of t)if(a.start&&a.end){const c=s.getBlock(a.start),l=s.getBlock(a.end);if(c!=null&&c.size&&(l!=null&&l.size)){const d=c.size,g=l.size,o=[{x:d.x,y:d.y},{x:d.x+(g.x-d.x)/2,y:d.y+(g.y-d.y)/2},{x:g.x,y:g.y}],w=i?`${i}-${a.id}`:a.id,x=a.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",m=a.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",E=`${x} ${m} flowchart-link LS-a1 LE-b1`;Jr(e,{v:a.start,w:a.end,name:w},{...a,id:w,arrowTypeEnd:a.arrowTypeEnd,arrowTypeStart:a.arrowTypeStart,points:o,classes:E},void 0,"block",n,i),a.label&&(await Zr(e,{...a,label:a.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:a.arrowTypeEnd,arrowTypeStart:a.arrowTypeStart,points:o,classes:E}),Gr({...a,x:o[1].x,y:o[1].y},{originalPath:o}))}}}u(Te,"insertEdges");var Ia=u(function(e,t){return t.db.getClasses()},"getClasses"),Ca=u(async function(e,t,r,s){const{securityLevel:i,block:n}=ut(),a=s.db;a.setDiagramId(t);let c;i==="sandbox"&&(c=O("#i"+t));const l=i==="sandbox"?O(c.nodes()[0].contentDocument.body):O("body"),d=i==="sandbox"?l.select(`[id="${t}"]`):O(`[id="${t}"]`);Hr(d,["point","circle","cross"],s.type,t);const o=a.getBlocks(),w=a.getBlocksFlat(),x=a.getEdges(),m=d.insert("g").attr("class","block");await _e(m,o,a);const E=fe(a);if(await ke(m,o,a),await Te(m,x,w,a,t),E){const L=E,I=Math.max(1,Math.round(.125*(L.width/L.height))),C=L.height+I+10,N=L.width+10,{useMaxWidth:b}=n;He(d,C,N,!!b),v.debug("Here Bounds",E,L),d.attr("viewBox",`${L.x-5} ${L.y-5} ${L.width+10} ${L.height+10}`)}},"draw"),Ba={draw:Ca,getClasses:Ia},Fa={parser:cr,db:Dr,renderer:Ba,styles:Ir};export{Fa as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Se,e as De}from"./chunk-ND2GUHAM-DXm-XggW.js";import{a$ as Pe,a0 as Be,a1 as Ie,b0 as Me,b as y,a3 as Bt,aZ as jt,aC as de,E as Le,k as Ne,r as Tt,aX as ge,aY as Ye,bl as je,z as $t,q as fe}from"./mermaid.core-BU6D8Fsk.js";import"./index-BDubzIOk.js";var Ft=function(){var a=y(function(_t,x,v,E){for(v=v||{},E=_t.length;E--;v[_t[E]]=x);return v},"o"),t=[1,24],s=[1,25],o=[1,26],r=[1,27],l=[1,28],e=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],f=[1,68],g=[1,69],m=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],st=[1,47],rt=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],k=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:y(function(x,v,E,b,R,h,Dt){var p=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[p-3]);break;case 19:b.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:b.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),b.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:b.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:b.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:b.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:b.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:b.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:b.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:b.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:b.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:b.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:b.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:b.addContainer("container",...h[p]),this.$=h[p];break;case 48:b.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:b.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:b.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:b.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:b.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:b.addComponent("component",...h[p]),this.$=h[p];break;case 54:b.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:b.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:b.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:b.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:b.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:b.addRel("rel",...h[p]),this.$=h[p];break;case 61:b.addRel("birel",...h[p]),this.$=h[p];break;case 62:b.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:b.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:b.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:b.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:b.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),b.addRel("rel",...h[p]),this.$=h[p];break;case 68:b.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:b.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:b.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let Et={};Et[h[p-1].trim()]=h[p].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:n,37:i,38:u,39:d,40:f,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:n,37:i,38:u,39:d,40:f,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:n,37:i,38:u,39:d,40:f,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:n,37:i,38:u,39:d,40:f,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:n,37:i,38:u,39:d,40:f,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},a(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:e,36:n,37:i,38:u,39:d,40:f,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),a(Ct,[2,14]),a(Qt,[2,16],{12:[1,76]}),a(Ct,[2,36],{12:[1,77]}),a(St,[2,19]),a(St,[2,20]),{25:[1,78]},{27:[1,79]},a(St,[2,23]),{35:80,75:81,76:A,77:k,79:C,80:w},{35:86,75:81,76:A,77:k,79:C,80:w},{35:87,75:81,76:A,77:k,79:C,80:w},{35:88,75:81,76:A,77:k,79:C,80:w},{35:89,75:81,76:A,77:k,79:C,80:w},{35:90,75:81,76:A,77:k,79:C,80:w},{35:91,75:81,76:A,77:k,79:C,80:w},{35:92,75:81,76:A,77:k,79:C,80:w},{35:93,75:81,76:A,77:k,79:C,80:w},{35:94,75:81,76:A,77:k,79:C,80:w},{35:95,75:81,76:A,77:k,79:C,80:w},{35:96,75:81,76:A,77:k,79:C,80:w},{35:97,75:81,76:A,77:k,79:C,80:w},{35:98,75:81,76:A,77:k,79:C,80:w},{35:99,75:81,76:A,77:k,79:C,80:w},{35:100,75:81,76:A,77:k,79:C,80:w},{35:101,75:81,76:A,77:k,79:C,80:w},{35:102,75:81,76:A,77:k,79:C,80:w},{35:103,75:81,76:A,77:k,79:C,80:w},{35:104,75:81,76:A,77:k,79:C,80:w},a(T,[2,59]),{35:105,75:81,76:A,77:k,79:C,80:w},{35:106,75:81,76:A,77:k,79:C,80:w},{35:107,75:81,76:A,77:k,79:C,80:w},{35:108,75:81,76:A,77:k,79:C,80:w},{35:109,75:81,76:A,77:k,79:C,80:w},{35:110,75:81,76:A,77:k,79:C,80:w},{35:111,75:81,76:A,77:k,79:C,80:w},{35:112,75:81,76:A,77:k,79:C,80:w},{35:113,75:81,76:A,77:k,79:C,80:w},{35:114,75:81,76:A,77:k,79:C,80:w},{35:115,75:81,76:A,77:k,79:C,80:w},{20:116,29:49,30:61,32:62,34:e,36:n,37:i,38:u,39:d,40:f,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:k,79:C,80:w},{35:120,75:81,76:A,77:k,79:C,80:w},{35:121,75:81,76:A,77:k,79:C,80:w},{35:122,75:81,76:A,77:k,79:C,80:w},{35:123,75:81,76:A,77:k,79:C,80:w},{35:124,75:81,76:A,77:k,79:C,80:w},{35:125,75:81,76:A,77:k,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},a(Ct,[2,15]),a(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:r,28:l}),a(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:r,28:l,34:e,36:n,37:i,38:u,39:d,40:f,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),a(St,[2,21]),a(St,[2,22]),a(T,[2,39]),a(le,[2,71],{75:81,35:132,76:A,77:k,79:C,80:w}),a(Mt,[2,73]),{78:[1,133]},a(Mt,[2,75]),a(Mt,[2,76]),a(T,[2,40]),a(T,[2,41]),a(T,[2,42]),a(T,[2,43]),a(T,[2,44]),a(T,[2,45]),a(T,[2,46]),a(T,[2,47]),a(T,[2,48]),a(T,[2,49]),a(T,[2,50]),a(T,[2,51]),a(T,[2,52]),a(T,[2,53]),a(T,[2,54]),a(T,[2,55]),a(T,[2,56]),a(T,[2,57]),a(T,[2,58]),a(T,[2,60]),a(T,[2,61]),a(T,[2,62]),a(T,[2,63]),a(T,[2,64]),a(T,[2,65]),a(T,[2,66]),a(T,[2,67]),a(T,[2,68]),a(T,[2,69]),a(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},a(vt,[2,28]),a(vt,[2,29]),a(vt,[2,30]),a(vt,[2,31]),a(vt,[2,32]),a(vt,[2,33]),a(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},a(Qt,[2,18]),a(Ct,[2,38]),a(le,[2,72]),a(Mt,[2,74]),a(T,[2,24]),a(T,[2,35]),a(Ht,[2,25]),a(Ht,[2,26],{12:[1,138]}),a(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:y(function(x,v){if(v.recoverable)this.trace(x);else{var E=new Error(x);throw E.hash=v,E}},"parseError"),parse:y(function(x){var v=this,E=[0],b=[],R=[null],h=[],Dt=this.table,p="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),At={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(At.yy[Gt]=this.yy[Gt]);D.setInput(x,At.yy),At.yy.lexer=D,At.yy.parser=this,typeof D.yylloc=="undefined"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){E.length=E.length-2*L,R.length=R.length-L,h.length=h.length-L}y(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=v.symbols_[L]||L),L}y(he,"lex");for(var I,kt,N,Jt,wt={},Nt,W,ue,Yt;;){if(kt=E[E.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((I===null||typeof I=="undefined")&&(I=he()),N=Dt[kt]&&Dt[kt][I]),typeof N=="undefined"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[kt])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`:
|
|
1
|
+
import{g as Se,e as De}from"./chunk-ND2GUHAM-5fVDn5XQ.js";import{a$ as Pe,a0 as Be,a1 as Ie,b0 as Me,b as y,a3 as Bt,aZ as jt,aC as de,E as Le,k as Ne,r as Tt,aX as ge,aY as Ye,bl as je,z as $t,q as fe}from"./mermaid.core-D0obZElW.js";import"./main-DNu7P8AU.js";import"./dataResults-B1swefI5.js";var Ft=function(){var a=y(function(_t,x,v,E){for(v=v||{},E=_t.length;E--;v[_t[E]]=x);return v},"o"),t=[1,24],s=[1,25],o=[1,26],r=[1,27],l=[1,28],e=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],f=[1,68],g=[1,69],m=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],st=[1,47],rt=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],k=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:y(function(x,v,E,b,R,h,Dt){var p=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[p-3]);break;case 19:b.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:b.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),b.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:b.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:b.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:b.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:b.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:b.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:b.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:b.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:b.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:b.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:b.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:b.addContainer("container",...h[p]),this.$=h[p];break;case 48:b.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:b.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:b.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:b.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:b.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:b.addComponent("component",...h[p]),this.$=h[p];break;case 54:b.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:b.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:b.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:b.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:b.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:b.addRel("rel",...h[p]),this.$=h[p];break;case 61:b.addRel("birel",...h[p]),this.$=h[p];break;case 62:b.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:b.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:b.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:b.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:b.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),b.addRel("rel",...h[p]),this.$=h[p];break;case 68:b.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:b.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:b.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let Et={};Et[h[p-1].trim()]=h[p].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:n,37:i,38:u,39:d,40:f,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:n,37:i,38:u,39:d,40:f,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:n,37:i,38:u,39:d,40:f,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:n,37:i,38:u,39:d,40:f,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:n,37:i,38:u,39:d,40:f,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},a(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:e,36:n,37:i,38:u,39:d,40:f,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),a(Ct,[2,14]),a(Qt,[2,16],{12:[1,76]}),a(Ct,[2,36],{12:[1,77]}),a(St,[2,19]),a(St,[2,20]),{25:[1,78]},{27:[1,79]},a(St,[2,23]),{35:80,75:81,76:A,77:k,79:C,80:w},{35:86,75:81,76:A,77:k,79:C,80:w},{35:87,75:81,76:A,77:k,79:C,80:w},{35:88,75:81,76:A,77:k,79:C,80:w},{35:89,75:81,76:A,77:k,79:C,80:w},{35:90,75:81,76:A,77:k,79:C,80:w},{35:91,75:81,76:A,77:k,79:C,80:w},{35:92,75:81,76:A,77:k,79:C,80:w},{35:93,75:81,76:A,77:k,79:C,80:w},{35:94,75:81,76:A,77:k,79:C,80:w},{35:95,75:81,76:A,77:k,79:C,80:w},{35:96,75:81,76:A,77:k,79:C,80:w},{35:97,75:81,76:A,77:k,79:C,80:w},{35:98,75:81,76:A,77:k,79:C,80:w},{35:99,75:81,76:A,77:k,79:C,80:w},{35:100,75:81,76:A,77:k,79:C,80:w},{35:101,75:81,76:A,77:k,79:C,80:w},{35:102,75:81,76:A,77:k,79:C,80:w},{35:103,75:81,76:A,77:k,79:C,80:w},{35:104,75:81,76:A,77:k,79:C,80:w},a(T,[2,59]),{35:105,75:81,76:A,77:k,79:C,80:w},{35:106,75:81,76:A,77:k,79:C,80:w},{35:107,75:81,76:A,77:k,79:C,80:w},{35:108,75:81,76:A,77:k,79:C,80:w},{35:109,75:81,76:A,77:k,79:C,80:w},{35:110,75:81,76:A,77:k,79:C,80:w},{35:111,75:81,76:A,77:k,79:C,80:w},{35:112,75:81,76:A,77:k,79:C,80:w},{35:113,75:81,76:A,77:k,79:C,80:w},{35:114,75:81,76:A,77:k,79:C,80:w},{35:115,75:81,76:A,77:k,79:C,80:w},{20:116,29:49,30:61,32:62,34:e,36:n,37:i,38:u,39:d,40:f,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:k,79:C,80:w},{35:120,75:81,76:A,77:k,79:C,80:w},{35:121,75:81,76:A,77:k,79:C,80:w},{35:122,75:81,76:A,77:k,79:C,80:w},{35:123,75:81,76:A,77:k,79:C,80:w},{35:124,75:81,76:A,77:k,79:C,80:w},{35:125,75:81,76:A,77:k,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},a(Ct,[2,15]),a(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:r,28:l}),a(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:r,28:l,34:e,36:n,37:i,38:u,39:d,40:f,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),a(St,[2,21]),a(St,[2,22]),a(T,[2,39]),a(le,[2,71],{75:81,35:132,76:A,77:k,79:C,80:w}),a(Mt,[2,73]),{78:[1,133]},a(Mt,[2,75]),a(Mt,[2,76]),a(T,[2,40]),a(T,[2,41]),a(T,[2,42]),a(T,[2,43]),a(T,[2,44]),a(T,[2,45]),a(T,[2,46]),a(T,[2,47]),a(T,[2,48]),a(T,[2,49]),a(T,[2,50]),a(T,[2,51]),a(T,[2,52]),a(T,[2,53]),a(T,[2,54]),a(T,[2,55]),a(T,[2,56]),a(T,[2,57]),a(T,[2,58]),a(T,[2,60]),a(T,[2,61]),a(T,[2,62]),a(T,[2,63]),a(T,[2,64]),a(T,[2,65]),a(T,[2,66]),a(T,[2,67]),a(T,[2,68]),a(T,[2,69]),a(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},a(vt,[2,28]),a(vt,[2,29]),a(vt,[2,30]),a(vt,[2,31]),a(vt,[2,32]),a(vt,[2,33]),a(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},a(Qt,[2,18]),a(Ct,[2,38]),a(le,[2,72]),a(Mt,[2,74]),a(T,[2,24]),a(T,[2,35]),a(Ht,[2,25]),a(Ht,[2,26],{12:[1,138]}),a(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:y(function(x,v){if(v.recoverable)this.trace(x);else{var E=new Error(x);throw E.hash=v,E}},"parseError"),parse:y(function(x){var v=this,E=[0],b=[],R=[null],h=[],Dt=this.table,p="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),At={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(At.yy[Gt]=this.yy[Gt]);D.setInput(x,At.yy),At.yy.lexer=D,At.yy.parser=this,typeof D.yylloc=="undefined"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){E.length=E.length-2*L,R.length=R.length-L,h.length=h.length-L}y(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=v.symbols_[L]||L),L}y(he,"lex");for(var I,kt,N,Jt,wt={},Nt,W,ue,Yt;;){if(kt=E[E.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((I===null||typeof I=="undefined")&&(I=he()),N=Dt[kt]&&Dt[kt][I]),typeof N=="undefined"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[kt])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+Yt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Zt="Parse error on line "+(Et+1)+": Unexpected "+(I==ce?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Zt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:Kt,expected:Yt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+I);switch(N[0]){case 1:E.push(I),R.push(D.yytext),h.push(D.yylloc),E.push(N[1]),I=null,oe=D.yyleng,p=D.yytext,Et=D.yylineno,Kt=D.yylloc;break;case 2:if(W=this.productions_[N[1]][1],wt.$=R[R.length-W],wt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},Oe&&(wt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Jt=this.performAction.apply(wt,[p,oe,Et,At.yy,N[1],R,h].concat(Te)),typeof Jt!="undefined")return Jt;W&&(E=E.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),E.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),ue=Dt[E[E.length-2]][E[E.length-1]],E.push(ue);break;case 3:return!0}}return!0},"parse")},Ce=function(){var _t={EOF:1,parseError:y(function(v,E){if(this.yy.parser)this.yy.parser.parseError(v,E);else throw new Error(v)},"parseError"),setInput:y(function(x,v){return this.yy=v||this.yy||{},this._input=x,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:y(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var v=x.match(/(?:\r\n?|\n).*/g);return v?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:y(function(x){var v=x.length,E=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var b=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),E.length-1&&(this.yylineno-=E.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===b.length?this.yylloc.first_column:0)+b[b.length-E.length].length-E[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-v]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(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:y(function(x){this.unput(this.match.slice(x))},"less"),pastInput:y(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:y(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:y(function(){var x=this.pastInput(),v=new Array(x.length+1).join("-");return x+this.upcomingInput()+`
|
|
@@ -7,4 +7,4 @@ Expecting `+Yt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Zt="Parse error
|
|
|
7
7
|
stroke: ${a.personBorder};
|
|
8
8
|
fill: ${a.personBkg};
|
|
9
9
|
}
|
|
10
|
-
`,"getStyles"),D0=S0,
|
|
10
|
+
`,"getStyles"),D0=S0,L0={parser:Ue,db:te,renderer:ye,styles:D0,init:y(({c4:a,wrap:t})=>{ye.setConf(a),te.setWrap(t)},"init")};export{L0 as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{U as a,C as n}from"./mermaid.core-D0obZElW.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,E as w,aC as x}from"./mermaid.core-
|
|
1
|
+
import{b as a,E as w,aC as x}from"./mermaid.core-D0obZElW.js";var g=a((e,t,i,o)=>{e.attr("class",i);const{width:r,height:h,x:n,y:c}=u(e,t);w(e,h,r,o);const s=B(n,c,r,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{var o;const i=((o=e.node())==null?void 0:o.getBBox())||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),B=a((e,t,i,o,r)=>`${e-r} ${t-r} ${i} ${o}`,"createViewBox");export{g as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as l}from"./mermaid.core-
|
|
1
|
+
import{b as l}from"./mermaid.core-D0obZElW.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,aZ as o}from"./mermaid.core-
|
|
1
|
+
import{b as a,aZ as o}from"./mermaid.core-D0obZElW.js";var g=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as st}from"./chunk-FMBD7UC4-ult0zspw.js";import{c as it}from"./chunk-ND2GUHAM-DXm-XggW.js";import{g as at}from"./chunk-55IACEB6-CeT7Ubm7.js";import{s as rt}from"./chunk-2J33WTMH-CGXKUE3u.js";import{b as g,aC as we,a3 as _,a9 as nt,aT as ut,bj as Ve,aZ as Ce,b0 as lt,a1 as ct,a$ as ot,a0 as ht,b2 as dt,a4 as pt,z as O,t as At,a5 as ft,aX as gt,aM as K}from"./mermaid.core-BU6D8Fsk.js";import{p as mt}from"./index-BDubzIOk.js";var Pe=function(){var s=g(function(w,c,h,d){for(h=h||{},d=w.length;d--;h[w[d]]=c);return h},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],o=[1,42],f=[1,24],b=[1,25],C=[1,32],B=[1,33],p=[1,34],m=[1,45],P=[1,35],U=[1,36],Q=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],E=[1,44],T=[1,46],y=[1,43],D=[1,47],Be=[1,9],A=[1,8,9],ae=[1,58],re=[1,59],ne=[1,60],ue=[1,61],le=[1,62],_e=[1,63],Se=[1,64],N=[1,8,9,41],Me=[1,77],z=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ce=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],oe=[13,60,86,100,102,103],j=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],he=[1,103],X=[1,121],q=[1,117],H=[1,113],J=[1,119],Z=[1,114],$=[1,115],ee=[1,116],te=[1,118],se=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],de=[12,39],Ne=[1,8,9,39,41,44,46],pe=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],v=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:g(function(c,h,d,l,k,e,ie){var t=e.length-1;switch(k){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:l.addRelation(e[t]);break;case 20:e[t-1].title=l.cleanupLabel(e[t]),l.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[t-3],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[t-4],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[t]);break;case 37:this.$=l.addNamespace(e[t-1],e[t]);break;case 38:this.$=[[e[t]],[]];break;case 39:this.$=[[e[t-1]],[]];break;case 40:e[t][0].unshift(e[t-2]),this.$=e[t];break;case 41:this.$=[[],[e[t]]];break;case 42:this.$=[[],[e[t-1]]];break;case 43:e[t][1].unshift(e[t-2]),this.$=e[t];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[t];break;case 48:l.setCssClass(e[t-2],e[t]);break;case 49:l.addMembers(e[t-3],e[t-1]);break;case 51:l.setCssClass(e[t-5],e[t-3]),l.addMembers(e[t-5],e[t-1]);break;case 52:l.addAnnotation(e[t-3],e[t-1]);break;case 53:l.addAnnotation(e[t-6],e[t-4]),l.addMembers(e[t-6],e[t-1]);break;case 54:l.addAnnotation(e[t-5],e[t-3]);break;case 55:this.$=e[t],l.addClass(e[t]);break;case 56:this.$=e[t-1],l.addClass(e[t-1]),l.setClassLabel(e[t-1],e[t]);break;case 60:l.addAnnotation(e[t],e[t-2]);break;case 61:case 74:this.$=[e[t]];break;case 62:e[t].push(e[t-1]),this.$=e[t];break;case 63:break;case 64:l.addMember(e[t-1],l.cleanupLabel(e[t]));break;case 65:break;case 66:break;case 67:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 69:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 70:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 71:this.$=l.addNote(e[t],e[t-1]);break;case 72:this.$=l.addNote(e[t]);break;case 73:this.$=e[t-2],l.defineClass(e[t-1],e[t]);break;case 75:this.$=e[t-2].concat([e[t]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 81:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 82:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[t-2],l.setClickEvent(e[t-1],e[t]);break;case 92:case 98:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 93:this.$=e[t-2],l.setLink(e[t-1],e[t]);break;case 94:this.$=e[t-3],l.setLink(e[t-2],e[t-1],e[t]);break;case 95:this.$=e[t-3],l.setLink(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 96:this.$=e[t-4],l.setLink(e[t-3],e[t-2],e[t]),l.setTooltip(e[t-3],e[t-1]);break;case 99:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1],e[t]);break;case 100:this.$=e[t-4],l.setClickEvent(e[t-3],e[t-2],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 101:this.$=e[t-3],l.setLink(e[t-2],e[t]);break;case 102:this.$=e[t-4],l.setLink(e[t-3],e[t-1],e[t]);break;case 103:this.$=e[t-4],l.setLink(e[t-3],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 104:this.$=e[t-5],l.setLink(e[t-4],e[t-2],e[t]),l.setTooltip(e[t-4],e[t-1]);break;case 105:this.$=e[t-2],l.setCssStyle(e[t-1],e[t]);break;case 106:l.setCssClass(e[t-1],e[t]);break;case 107:this.$=[e[t]];break;case 108:e[t-2].push(e[t]),this.$=e[t-2];break;case 110:this.$=e[t-1]+e[t];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:o,51:f,52:b,54:C,56:B,57:p,60:m,62:P,63:U,64:Q,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:E,100:T,102:y,103:D},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Be,[2,5],{8:[1,48]}),{8:[1,49]},s(A,[2,19],{22:[1,50]}),s(A,[2,21]),s(A,[2,22]),s(A,[2,23]),s(A,[2,24]),s(A,[2,25]),s(A,[2,26]),s(A,[2,27]),s(A,[2,28]),s(A,[2,29]),s(A,[2,30]),{34:[1,51]},{36:[1,52]},s(A,[2,33]),s(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ae,69:re,70:ne,71:ue,72:le,73:_e,74:Se}),{39:[1,65]},s(N,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(A,[2,65]),s(A,[2,66]),{16:69,60:m,86:E,100:T,102:y},{16:39,17:40,19:70,60:m,86:E,100:T,102:y,103:D},{16:39,17:40,19:71,60:m,86:E,100:T,102:y,103:D},{16:39,17:40,19:72,60:m,86:E,100:T,102:y,103:D},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:m,86:E,100:T,102:y,103:D},{13:Me,55:76},{58:78,60:[1,79]},s(A,[2,76]),s(A,[2,77]),s(A,[2,78]),s(A,[2,79]),s(z,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:m,86:E,100:T,102:y,103:D}),s(z,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:m,86:E,100:T,102:y,103:D},{16:39,17:40,19:87,60:m,86:E,100:T,102:y,103:D},s(ce,[2,133]),s(ce,[2,134]),s(ce,[2,135]),s(ce,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:o,51:f,52:b,54:C,56:B,57:p,60:m,62:P,63:U,64:Q,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:E,100:T,102:y,103:D}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:o,51:f,52:b,54:C,56:B,57:p,60:m,62:P,63:U,64:Q,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:E,100:T,102:y,103:D},s(A,[2,20]),s(A,[2,31]),s(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:m,86:E,100:T,102:y,103:D},{53:92,66:56,67:57,68:ae,69:re,70:ne,71:ue,72:le,73:_e,74:Se},s(A,[2,64]),{67:93,73:_e,74:Se},s(oe,[2,83],{66:94,68:ae,69:re,70:ne,71:ue,72:le}),s(j,[2,84]),s(j,[2,85]),s(j,[2,86]),s(j,[2,87]),s(j,[2,88]),s(Re,[2,89]),s(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:o,54:C,56:B},{16:100,60:m,86:E,100:T,102:y},{41:[1,102],45:101,51:he},{16:104,60:m,86:E,100:T,102:y},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:X,50:q,59:110,60:H,82:J,84:111,85:112,86:Z,87:$,88:ee,89:te,90:se},{60:[1,122]},{13:Me,55:123},s(N,[2,72]),s(N,[2,138]),{22:X,50:q,59:124,60:H,61:[1,125],82:J,84:111,85:112,86:Z,87:$,88:ee,89:te,90:se},s(Ge,[2,74]),{16:39,17:40,19:126,60:m,86:E,100:T,102:y,103:D},s(z,[2,16]),s(z,[2,17]),s(z,[2,18]),{11:127,12:Ue,39:[2,36]},s(de,[2,9],{16:85,17:86,15:130,18:[1,129],60:m,86:E,100:T,102:y,103:D}),s(de,[2,10]),s(Ne,[2,55],{11:131,12:Ue}),s(Be,[2,7]),{9:[1,132]},s(pe,[2,67]),{16:39,17:40,19:133,60:m,86:E,100:T,102:y,103:D},{13:[1,135],16:39,17:40,19:134,60:m,86:E,100:T,102:y,103:D},s(oe,[2,82],{66:136,68:ae,69:re,70:ne,71:ue,72:le}),s(oe,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:o,54:C,56:B},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(N,[2,48],{39:[1,142]}),{41:[1,143]},s(N,[2,50]),{41:[2,61],45:144,51:he},{47:[1,145]},{16:39,17:40,19:146,60:m,86:E,100:T,102:y,103:D},s(A,[2,91],{13:[1,147]}),s(A,[2,93],{13:[1,149],77:[1,148]}),s(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(A,[2,105],{61:ze}),s(Ye,[2,107],{85:154,22:X,50:q,60:H,82:J,86:Z,87:$,88:ee,89:te,90:se}),s(v,[2,109]),s(v,[2,111]),s(v,[2,112]),s(v,[2,113]),s(v,[2,114]),s(v,[2,115]),s(v,[2,116]),s(v,[2,117]),s(v,[2,118]),s(v,[2,119]),s(A,[2,106]),s(N,[2,71]),s(A,[2,73],{61:ze}),{60:[1,155]},s(z,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:m,86:E,100:T,102:y,103:D},s(de,[2,12]),s(Ne,[2,56]),{1:[2,4]},s(pe,[2,69]),s(pe,[2,68]),{16:39,17:40,19:158,60:m,86:E,100:T,102:y,103:D},s(oe,[2,80]),s(N,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:o,54:C,56:B},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:o,54:C,56:B},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:o,54:C,56:B},{45:163,51:he},s(N,[2,49]),{41:[2,62]},s(N,[2,52],{39:[1,164]}),s(A,[2,60]),s(A,[2,92]),s(A,[2,94]),s(A,[2,95],{77:[1,165]}),s(A,[2,98]),s(A,[2,99],{13:[1,166]}),s(A,[2,101],{13:[1,168],77:[1,167]}),{22:X,50:q,60:H,82:J,84:169,85:112,86:Z,87:$,88:ee,89:te,90:se},s(v,[2,110]),s(Ge,[2,75]),{14:[1,170]},s(de,[2,11]),s(pe,[2,70]),s(N,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:he},s(A,[2,96]),s(A,[2,100]),s(A,[2,102]),s(A,[2,103],{77:[1,174]}),s(Ye,[2,108],{85:154,22:X,50:q,60:H,82:J,86:Z,87:$,88:ee,89:te,90:se}),s(Ne,[2,8]),s(N,[2,51]),{41:[1,175]},s(N,[2,54]),s(A,[2,104]),s(N,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:g(function(c,h){if(h.recoverable)this.trace(c);else{var d=new Error(c);throw d.hash=h,d}},"parseError"),parse:g(function(c){var h=this,d=[0],l=[],k=[null],e=[],ie=this.table,t="",fe=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),F=Object.create(this.lexer),M={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(M.yy[xe]=this.yy[xe]);F.setInput(c,M.yy),M.yy.lexer=F,M.yy.parser=this,typeof F.yylloc=="undefined"&&(F.yylloc={});var ve=F.yylloc;e.push(ve);var et=F.options&&F.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(L){d.length=d.length-2*L,k.length=k.length-L,e.length=e.length-L}g(tt,"popStack");function Qe(){var L;return L=l.pop()||F.lex()||We,typeof L!="number"&&(L instanceof Array&&(l=L,L=l.pop()),L=h.symbols_[L]||L),L}g(Qe,"lex");for(var S,R,x,Ie,Y={},ge,I,je,me;;){if(R=d[d.length-1],this.defaultActions[R]?x=this.defaultActions[R]:((S===null||typeof S=="undefined")&&(S=Qe()),x=ie[R]&&ie[R][S]),typeof x=="undefined"||!x.length||!x[0]){var Oe="";me=[];for(ge in ie[R])this.terminals_[ge]&&ge>Ze&&me.push("'"+this.terminals_[ge]+"'");F.showPosition?Oe="Parse error on line "+(fe+1)+`:
|
|
1
|
+
import{g as st}from"./chunk-FMBD7UC4-BRByys73.js";import{c as it}from"./chunk-ND2GUHAM-5fVDn5XQ.js";import{g as at}from"./chunk-55IACEB6-C0oDuSIh.js";import{s as rt}from"./chunk-2J33WTMH-DZ8T1IZj.js";import{b as g,aC as we,a3 as _,a9 as nt,aT as ut,bj as Ve,aZ as Ce,b0 as lt,a1 as ct,a$ as ot,a0 as ht,b2 as dt,a4 as pt,z as O,t as At,a5 as ft,aX as gt,aM as K}from"./mermaid.core-D0obZElW.js";import{p as mt}from"./main-DNu7P8AU.js";var Pe=function(){var s=g(function(w,c,h,d){for(h=h||{},d=w.length;d--;h[w[d]]=c);return h},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],o=[1,42],f=[1,24],b=[1,25],C=[1,32],B=[1,33],p=[1,34],m=[1,45],P=[1,35],U=[1,36],Q=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],E=[1,44],T=[1,46],y=[1,43],D=[1,47],Be=[1,9],A=[1,8,9],ae=[1,58],re=[1,59],ne=[1,60],ue=[1,61],le=[1,62],_e=[1,63],Se=[1,64],N=[1,8,9,41],Me=[1,77],z=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ce=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],oe=[13,60,86,100,102,103],j=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],he=[1,103],X=[1,121],q=[1,117],H=[1,113],J=[1,119],Z=[1,114],$=[1,115],ee=[1,116],te=[1,118],se=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],de=[12,39],Ne=[1,8,9,39,41,44,46],pe=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],v=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:g(function(c,h,d,l,k,e,ie){var t=e.length-1;switch(k){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:l.addRelation(e[t]);break;case 20:e[t-1].title=l.cleanupLabel(e[t]),l.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[t-3],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[t-4],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[t]);break;case 37:this.$=l.addNamespace(e[t-1],e[t]);break;case 38:this.$=[[e[t]],[]];break;case 39:this.$=[[e[t-1]],[]];break;case 40:e[t][0].unshift(e[t-2]),this.$=e[t];break;case 41:this.$=[[],[e[t]]];break;case 42:this.$=[[],[e[t-1]]];break;case 43:e[t][1].unshift(e[t-2]),this.$=e[t];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[t];break;case 48:l.setCssClass(e[t-2],e[t]);break;case 49:l.addMembers(e[t-3],e[t-1]);break;case 51:l.setCssClass(e[t-5],e[t-3]),l.addMembers(e[t-5],e[t-1]);break;case 52:l.addAnnotation(e[t-3],e[t-1]);break;case 53:l.addAnnotation(e[t-6],e[t-4]),l.addMembers(e[t-6],e[t-1]);break;case 54:l.addAnnotation(e[t-5],e[t-3]);break;case 55:this.$=e[t],l.addClass(e[t]);break;case 56:this.$=e[t-1],l.addClass(e[t-1]),l.setClassLabel(e[t-1],e[t]);break;case 60:l.addAnnotation(e[t],e[t-2]);break;case 61:case 74:this.$=[e[t]];break;case 62:e[t].push(e[t-1]),this.$=e[t];break;case 63:break;case 64:l.addMember(e[t-1],l.cleanupLabel(e[t]));break;case 65:break;case 66:break;case 67:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 69:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 70:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 71:this.$=l.addNote(e[t],e[t-1]);break;case 72:this.$=l.addNote(e[t]);break;case 73:this.$=e[t-2],l.defineClass(e[t-1],e[t]);break;case 75:this.$=e[t-2].concat([e[t]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 81:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 82:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[t-2],l.setClickEvent(e[t-1],e[t]);break;case 92:case 98:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 93:this.$=e[t-2],l.setLink(e[t-1],e[t]);break;case 94:this.$=e[t-3],l.setLink(e[t-2],e[t-1],e[t]);break;case 95:this.$=e[t-3],l.setLink(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 96:this.$=e[t-4],l.setLink(e[t-3],e[t-2],e[t]),l.setTooltip(e[t-3],e[t-1]);break;case 99:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1],e[t]);break;case 100:this.$=e[t-4],l.setClickEvent(e[t-3],e[t-2],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 101:this.$=e[t-3],l.setLink(e[t-2],e[t]);break;case 102:this.$=e[t-4],l.setLink(e[t-3],e[t-1],e[t]);break;case 103:this.$=e[t-4],l.setLink(e[t-3],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 104:this.$=e[t-5],l.setLink(e[t-4],e[t-2],e[t]),l.setTooltip(e[t-4],e[t-1]);break;case 105:this.$=e[t-2],l.setCssStyle(e[t-1],e[t]);break;case 106:l.setCssClass(e[t-1],e[t]);break;case 107:this.$=[e[t]];break;case 108:e[t-2].push(e[t]),this.$=e[t-2];break;case 110:this.$=e[t-1]+e[t];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:o,51:f,52:b,54:C,56:B,57:p,60:m,62:P,63:U,64:Q,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:E,100:T,102:y,103:D},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Be,[2,5],{8:[1,48]}),{8:[1,49]},s(A,[2,19],{22:[1,50]}),s(A,[2,21]),s(A,[2,22]),s(A,[2,23]),s(A,[2,24]),s(A,[2,25]),s(A,[2,26]),s(A,[2,27]),s(A,[2,28]),s(A,[2,29]),s(A,[2,30]),{34:[1,51]},{36:[1,52]},s(A,[2,33]),s(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ae,69:re,70:ne,71:ue,72:le,73:_e,74:Se}),{39:[1,65]},s(N,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(A,[2,65]),s(A,[2,66]),{16:69,60:m,86:E,100:T,102:y},{16:39,17:40,19:70,60:m,86:E,100:T,102:y,103:D},{16:39,17:40,19:71,60:m,86:E,100:T,102:y,103:D},{16:39,17:40,19:72,60:m,86:E,100:T,102:y,103:D},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:m,86:E,100:T,102:y,103:D},{13:Me,55:76},{58:78,60:[1,79]},s(A,[2,76]),s(A,[2,77]),s(A,[2,78]),s(A,[2,79]),s(z,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:m,86:E,100:T,102:y,103:D}),s(z,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:m,86:E,100:T,102:y,103:D},{16:39,17:40,19:87,60:m,86:E,100:T,102:y,103:D},s(ce,[2,133]),s(ce,[2,134]),s(ce,[2,135]),s(ce,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:o,51:f,52:b,54:C,56:B,57:p,60:m,62:P,63:U,64:Q,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:E,100:T,102:y,103:D}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:o,51:f,52:b,54:C,56:B,57:p,60:m,62:P,63:U,64:Q,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:E,100:T,102:y,103:D},s(A,[2,20]),s(A,[2,31]),s(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:m,86:E,100:T,102:y,103:D},{53:92,66:56,67:57,68:ae,69:re,70:ne,71:ue,72:le,73:_e,74:Se},s(A,[2,64]),{67:93,73:_e,74:Se},s(oe,[2,83],{66:94,68:ae,69:re,70:ne,71:ue,72:le}),s(j,[2,84]),s(j,[2,85]),s(j,[2,86]),s(j,[2,87]),s(j,[2,88]),s(Re,[2,89]),s(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:o,54:C,56:B},{16:100,60:m,86:E,100:T,102:y},{41:[1,102],45:101,51:he},{16:104,60:m,86:E,100:T,102:y},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:X,50:q,59:110,60:H,82:J,84:111,85:112,86:Z,87:$,88:ee,89:te,90:se},{60:[1,122]},{13:Me,55:123},s(N,[2,72]),s(N,[2,138]),{22:X,50:q,59:124,60:H,61:[1,125],82:J,84:111,85:112,86:Z,87:$,88:ee,89:te,90:se},s(Ge,[2,74]),{16:39,17:40,19:126,60:m,86:E,100:T,102:y,103:D},s(z,[2,16]),s(z,[2,17]),s(z,[2,18]),{11:127,12:Ue,39:[2,36]},s(de,[2,9],{16:85,17:86,15:130,18:[1,129],60:m,86:E,100:T,102:y,103:D}),s(de,[2,10]),s(Ne,[2,55],{11:131,12:Ue}),s(Be,[2,7]),{9:[1,132]},s(pe,[2,67]),{16:39,17:40,19:133,60:m,86:E,100:T,102:y,103:D},{13:[1,135],16:39,17:40,19:134,60:m,86:E,100:T,102:y,103:D},s(oe,[2,82],{66:136,68:ae,69:re,70:ne,71:ue,72:le}),s(oe,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:o,54:C,56:B},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(N,[2,48],{39:[1,142]}),{41:[1,143]},s(N,[2,50]),{41:[2,61],45:144,51:he},{47:[1,145]},{16:39,17:40,19:146,60:m,86:E,100:T,102:y,103:D},s(A,[2,91],{13:[1,147]}),s(A,[2,93],{13:[1,149],77:[1,148]}),s(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(A,[2,105],{61:ze}),s(Ye,[2,107],{85:154,22:X,50:q,60:H,82:J,86:Z,87:$,88:ee,89:te,90:se}),s(v,[2,109]),s(v,[2,111]),s(v,[2,112]),s(v,[2,113]),s(v,[2,114]),s(v,[2,115]),s(v,[2,116]),s(v,[2,117]),s(v,[2,118]),s(v,[2,119]),s(A,[2,106]),s(N,[2,71]),s(A,[2,73],{61:ze}),{60:[1,155]},s(z,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:m,86:E,100:T,102:y,103:D},s(de,[2,12]),s(Ne,[2,56]),{1:[2,4]},s(pe,[2,69]),s(pe,[2,68]),{16:39,17:40,19:158,60:m,86:E,100:T,102:y,103:D},s(oe,[2,80]),s(N,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:o,54:C,56:B},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:o,54:C,56:B},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:o,54:C,56:B},{45:163,51:he},s(N,[2,49]),{41:[2,62]},s(N,[2,52],{39:[1,164]}),s(A,[2,60]),s(A,[2,92]),s(A,[2,94]),s(A,[2,95],{77:[1,165]}),s(A,[2,98]),s(A,[2,99],{13:[1,166]}),s(A,[2,101],{13:[1,168],77:[1,167]}),{22:X,50:q,60:H,82:J,84:169,85:112,86:Z,87:$,88:ee,89:te,90:se},s(v,[2,110]),s(Ge,[2,75]),{14:[1,170]},s(de,[2,11]),s(pe,[2,70]),s(N,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:he},s(A,[2,96]),s(A,[2,100]),s(A,[2,102]),s(A,[2,103],{77:[1,174]}),s(Ye,[2,108],{85:154,22:X,50:q,60:H,82:J,86:Z,87:$,88:ee,89:te,90:se}),s(Ne,[2,8]),s(N,[2,51]),{41:[1,175]},s(N,[2,54]),s(A,[2,104]),s(N,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:g(function(c,h){if(h.recoverable)this.trace(c);else{var d=new Error(c);throw d.hash=h,d}},"parseError"),parse:g(function(c){var h=this,d=[0],l=[],k=[null],e=[],ie=this.table,t="",fe=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),F=Object.create(this.lexer),M={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(M.yy[xe]=this.yy[xe]);F.setInput(c,M.yy),M.yy.lexer=F,M.yy.parser=this,typeof F.yylloc=="undefined"&&(F.yylloc={});var ve=F.yylloc;e.push(ve);var et=F.options&&F.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(L){d.length=d.length-2*L,k.length=k.length-L,e.length=e.length-L}g(tt,"popStack");function Qe(){var L;return L=l.pop()||F.lex()||We,typeof L!="number"&&(L instanceof Array&&(l=L,L=l.pop()),L=h.symbols_[L]||L),L}g(Qe,"lex");for(var S,R,x,Ie,Y={},ge,I,je,me;;){if(R=d[d.length-1],this.defaultActions[R]?x=this.defaultActions[R]:((S===null||typeof S=="undefined")&&(S=Qe()),x=ie[R]&&ie[R][S]),typeof x=="undefined"||!x.length||!x[0]){var Oe="";me=[];for(ge in ie[R])this.terminals_[ge]&&ge>Ze&&me.push("'"+this.terminals_[ge]+"'");F.showPosition?Oe="Parse error on line "+(fe+1)+`:
|
|
2
2
|
`+F.showPosition()+`
|
|
3
3
|
Expecting `+me.join(", ")+", got '"+(this.terminals_[S]||S)+"'":Oe="Parse error on line "+(fe+1)+": Unexpected "+(S==We?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(Oe,{text:F.match,token:this.terminals_[S]||S,line:F.yylineno,loc:ve,expected:me})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+S);switch(x[0]){case 1:d.push(S),k.push(F.yytext),e.push(F.yylloc),d.push(x[1]),S=null,Ke=F.yyleng,t=F.yytext,fe=F.yylineno,ve=F.yylloc;break;case 2:if(I=this.productions_[x[1]][1],Y.$=k[k.length-I],Y._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},et&&(Y._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Ie=this.performAction.apply(Y,[t,Ke,fe,M.yy,x[1],k,e].concat($e)),typeof Ie!="undefined")return Ie;I&&(d=d.slice(0,-1*I*2),k=k.slice(0,-1*I),e=e.slice(0,-1*I)),d.push(this.productions_[x[1]][0]),k.push(Y.$),e.push(Y._$),je=ie[d[d.length-2]][d[d.length-1]],d.push(je);break;case 3:return!0}}return!0},"parse")},Je=function(){var w={EOF:1,parseError:g(function(h,d){if(this.yy.parser)this.yy.parser.parseError(h,d);else throw new Error(h)},"parseError"),setInput:g(function(c,h){return this.yy=h||this.yy||{},this._input=c,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:g(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var h=c.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),c},"input"),unput:g(function(c){var h=c.length,d=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var l=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 k=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===l.length?this.yylloc.first_column:0)+l[l.length-d.length].length-d[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(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:g(function(c){this.unput(this.match.slice(c))},"less"),pastInput:g(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var c=this.pastInput(),h=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as te}from"./chunk-55IACEB6-
|
|
1
|
+
import{g as te}from"./chunk-55IACEB6-C0oDuSIh.js";import{s as ee}from"./chunk-2J33WTMH-DZ8T1IZj.js";import{b as f,aC as b,a3 as F,aT as se,bj as ie,a1 as re,b0 as ae,a0 as ne,a$ as oe,b2 as le,a4 as ce,$ as he,z as K,t as ue}from"./mermaid.core-D0obZElW.js";var vt=function(){var t=f(function(U,o,u,n){for(u=u||{},n=U.length;n--;u[U[n]]=o);return u},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],l=[1,9],h=[1,11],p=[1,16],S=[1,17],T=[1,18],E=[1,19],m=[1,33],$=[1,20],B=[1,21],R=[1,22],v=[1,23],C=[1,24],d=[1,26],k=[1,27],N=[1,28],L=[1,29],V=[1,30],P=[1,31],O=[1,32],et=[1,35],j=[1,36],ot=[1,37],lt=[1,38],J=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(o,u,n,g,_,i,G){var c=i.length-1;switch(_){case 3:return g.setRootDoc(i[c]),i[c];case 4:this.$=[];break;case 5:i[c]!="nl"&&(i[c-1].push(i[c]),this.$=i[c-1]);break;case 6:case 7:this.$=i[c];break;case 8:this.$="nl";break;case 12:this.$=i[c];break;case 13:const st=i[c-1];st.description=g.trimColon(i[c]),this.$=st;break;case 14:this.$={stmt:"relation",state1:i[c-2],state2:i[c]};break;case 15:const Tt=g.trimColon(i[c]);this.$={stmt:"relation",state1:i[c-3],state2:i[c-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[c-3],type:"default",description:"",doc:i[c-1]};break;case 20:var Y=i[c],q=i[c-2].trim();if(i[c].match(":")){var ut=i[c].split(":");Y=ut[0],q=[q,ut[1]]}this.$={stmt:"state",id:Y,type:"default",description:q};break;case 21:this.$={stmt:"state",id:i[c-3],type:"default",description:i[c-5],doc:i[c-1]};break;case 22:this.$={stmt:"state",id:i[c],type:"fork"};break;case 23:this.$={stmt:"state",id:i[c],type:"join"};break;case 24:this.$={stmt:"state",id:i[c],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[c-1].trim(),note:{position:i[c-2].trim(),text:i[c].trim()}};break;case 29:this.$=i[c].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[c].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[c-3],url:i[c-2],tooltip:i[c-1]};break;case 33:this.$={stmt:"click",id:i[c-3],url:i[c-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[c-1].trim(),classes:i[c].trim()};break;case 36:this.$={stmt:"style",id:i[c-1].trim(),styleClass:i[c].trim()};break;case 37:this.$={stmt:"applyClass",id:i[c-1].trim(),styleClass:i[c].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[c-2].trim(),classes:[i[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[c-2].trim(),classes:[i[c].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:p,17:S,19:T,22:E,24:m,25:$,26:B,27:R,28:v,29:C,32:25,33:d,35:k,37:N,38:L,41:V,45:P,48:O,51:et,52:j,53:ot,54:lt,57:J},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:p,17:S,19:T,22:E,24:m,25:$,26:B,27:R,28:v,29:C,32:25,33:d,35:k,37:N,38:L,41:V,45:P,48:O,51:et,52:j,53:ot,54:lt,57:J},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:m,57:J},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ct,[2,44],{58:[1,56]}),t(ct,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:m,57:J},t(y,[2,17]),t(xt,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:l,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:p,17:S,19:T,21:[1,72],22:E,24:m,25:$,26:B,27:R,28:v,29:C,32:25,33:d,35:k,37:N,38:L,41:V,45:P,48:O,51:et,52:j,53:ot,54:lt,57:J},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(ct,[2,46]),t(ct,[2,47]),t(y,[2,15]),t(y,[2,19]),t(xt,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:l,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:p,17:S,19:T,21:[1,81],22:E,24:m,25:$,26:B,27:R,28:v,29:C,32:25,33:d,35:k,37:N,38:L,41:V,45:P,48:O,51:et,52:j,53:ot,54:lt,57:J},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(o,u){if(u.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=u,n}},"parseError"),parse:f(function(o){var u=this,n=[0],g=[],_=[null],i=[],G=this.table,c="",Y=0,q=0,ut=2,st=1,Tt=i.slice.call(arguments,1),D=Object.create(this.lexer),H={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(H.yy[Et]=this.yy[Et]);D.setInput(o,H.yy),H.yy.lexer=D,H.yy.parser=this,typeof D.yylloc=="undefined"&&(D.yylloc={});var _t=D.yylloc;i.push(_t);var Qt=D.options&&D.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(I){n.length=n.length-2*I,_.length=_.length-I,i.length=i.length-I}f(Zt,"popStack");function Lt(){var I;return I=g.pop()||D.lex()||st,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=u.symbols_[I]||I),I}f(Lt,"lex");for(var x,z,w,mt,Q={},dt,M,Ot,ft;;){if(z=n[n.length-1],this.defaultActions[z]?w=this.defaultActions[z]:((x===null||typeof x=="undefined")&&(x=Lt()),w=G[z]&&G[z][x]),typeof w=="undefined"||!w.length||!w[0]){var bt="";ft=[];for(dt in G[z])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");D.showPosition?bt="Parse error on line "+(Y+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+ft.join(", ")+", got '"+(this.terminals_[x]||x)+"'":bt="Parse error on line "+(Y+1)+": Unexpected "+(x==st?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(bt,{text:D.match,token:this.terminals_[x]||x,line:D.yylineno,loc:_t,expected:ft})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+x);switch(w[0]){case 1:n.push(x),_.push(D.yytext),i.push(D.yylloc),n.push(w[1]),x=null,q=D.yyleng,c=D.yytext,Y=D.yylineno,_t=D.yylloc;break;case 2:if(M=this.productions_[w[1]][1],Q.$=_[_.length-M],Q._$={first_line:i[i.length-(M||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(M||1)].first_column,last_column:i[i.length-1].last_column},Qt&&(Q._$.range=[i[i.length-(M||1)].range[0],i[i.length-1].range[1]]),mt=this.performAction.apply(Q,[c,q,Y,H.yy,w[1],_,i].concat(Tt)),typeof mt!="undefined")return mt;M&&(n=n.slice(0,-1*M*2),_=_.slice(0,-1*M),i=i.slice(0,-1*M)),n.push(this.productions_[w[1]][0]),_.push(Q.$),i.push(Q._$),Ot=G[n[n.length-2]][n[n.length-1]],n.push(Ot);break;case 3:return!0}}return!0},"parse")},qt=function(){var U={EOF:1,parseError:f(function(u,n){if(this.yy.parser)this.yy.parser.parseError(u,n);else throw new Error(u)},"parseError"),setInput:f(function(o,u){return this.yy=u||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:f(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var u=o.match(/(?:\r\n?|\n).*/g);return u?(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:f(function(o){var u=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===g.length?this.yylloc.first_column:0)+g[g.length-n.length].length-n[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(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:f(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:f(function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as n,aZ as l,aA as d,aY as o}from"./mermaid.core-
|
|
1
|
+
import{b as n,aZ as l,aA as d,aY as o}from"./mermaid.core-D0obZElW.js";var x=n((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=n((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=n((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=n((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const i=o(s);a.attr("xlink:href",i)},"drawImage"),g=n((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const i=o(s);a.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),h=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=n(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,x as e,y as f,h as g,f as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as s}from"./mermaid.core-
|
|
1
|
+
import{b as s}from"./mermaid.core-D0obZElW.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as a,a as s,c as e,C as t}from"./chunk-727SXJPM-cffiQJMy.js";import{b as i}from"./mermaid.core-D0obZElW.js";import"./chunk-FMBD7UC4-BRByys73.js";import"./chunk-ND2GUHAM-5fVDn5XQ.js";import"./chunk-55IACEB6-C0oDuSIh.js";import"./chunk-2J33WTMH-DZ8T1IZj.js";import"./main-DNu7P8AU.js";import"./dataResults-B1swefI5.js";var b={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as a,a as s,c as e,C as t}from"./chunk-727SXJPM-cffiQJMy.js";import{b as i}from"./mermaid.core-D0obZElW.js";import"./chunk-FMBD7UC4-BRByys73.js";import"./chunk-ND2GUHAM-5fVDn5XQ.js";import"./chunk-55IACEB6-C0oDuSIh.js";import"./chunk-2J33WTMH-DZ8T1IZj.js";import"./main-DNu7P8AU.js";import"./dataResults-B1swefI5.js";var b={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};
|