grimoire3d 0.0.0-dev.f7e9e26 → 0.1.0-dev.7c43b3d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -10
- package/cli/book-cover.d.ts +10 -0
- package/cli/book-cover.js +56 -0
- package/cli/cli.js +5 -3
- package/cli/content.js +75 -2
- package/cli/head-file.js +133 -0
- package/cli/library-footer.d.ts +10 -0
- package/cli/library-footer.js +21 -0
- package/cli/markdown.js +9 -0
- package/cli/static-pages.js +34 -6
- package/dist/BookViewer-GXuBR_bC.js +339 -0
- package/dist/components/index.js +1 -5
- package/dist/grimoire3d.css +3 -1
- package/dist/index.js +1 -4
- package/dist/site/assets/BookReader-5pM5wP2A.js +2 -0
- package/dist/site/assets/BookScene-RrBaUUYB.js +4294 -0
- package/dist/site/assets/MermaidDiagram-D_0Lzujl.js +44 -0
- package/dist/site/assets/PageMarkdown-DQOlzkxh.js +37 -0
- package/dist/site/assets/abnfDiagram-S7VZAUFO-CnBoibVK.js +1 -0
- package/dist/site/assets/architecture-WOLXFQ4H-BUW5XoSg.js +1 -0
- package/dist/site/assets/architectureDiagram-YGSQEFNW-B6gpKPRf.js +36 -0
- package/dist/site/assets/blockDiagram-APKKGZFW-DzujHYb6.js +140 -0
- package/dist/site/assets/{bpmnIcons-APHXDYXF-ByGoYv9M.js → bpmnIcons-APHXDYXF-C0jbCElo.js} +1 -1
- package/dist/site/assets/c4Diagram-KJ2TOQU5-CAApT3wg.js +38 -0
- package/dist/site/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/dist/site/assets/{chunk-5VM5RSS4-CCNs5Q1j.js → chunk-5VM5RSS4-ZNzvKenW.js} +2 -2
- package/dist/site/assets/chunk-6MUBBAK2-CBL8kJBQ.js +2 -0
- package/dist/site/assets/chunk-AXFCVDMN-CECdpNlC.js +62 -0
- package/dist/site/assets/chunk-BG4553SI-Bit8fGUK.js +129 -0
- package/dist/site/assets/chunk-DQASFODM-DCXRnXLz.js +10 -0
- package/dist/site/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
- package/dist/site/assets/chunk-HFQBQIA3-BBPlNXRe.js +1 -0
- package/dist/site/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
- package/dist/site/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/dist/site/assets/chunk-KQLB2F66-B72nJl7f.js +2 -0
- package/dist/site/assets/chunk-KS47KZWR-BmW9AsrF.js +1 -0
- package/dist/site/assets/chunk-LEVMRMFU-P01Wm6c9.js +1 -0
- package/dist/site/assets/chunk-M57EVK23-Dt9NSVMZ.js +1 -0
- package/dist/site/assets/chunk-NGNAAXSQ-DI_UYJZ4.js +136 -0
- package/dist/site/assets/chunk-OY52VR5R-55zxU9gN.js +88 -0
- package/dist/site/assets/chunk-QB3YPZ4I-Ba8Om-jB.js +213 -0
- package/dist/site/assets/chunk-R3KSYZAL-Bhkxj8pV.js +1 -0
- package/dist/site/assets/chunk-STOXU5M4-ZPfBWNfR.js +72 -0
- package/dist/site/assets/chunk-TU62E6Q5-DN_BJJox.js +1 -0
- package/dist/site/assets/chunk-X4PVCEUW-wh_-rkJf.js +1 -0
- package/dist/site/assets/chunk-XXDRQBXY-CNQnC--q.js +1 -0
- package/dist/site/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/dist/site/assets/classDiagram-v2-L25IHNXF-DJk0rUaa.js +217 -0
- package/dist/site/assets/cose-bilkent-JH36ORCC-COco7PRi.js +1 -0
- package/dist/site/assets/cynefin-EF2NZ3EQ-WZObn4oK.js +1 -0
- package/dist/site/assets/cynefinDiagram-L36ESFBY-Bb2CAvFF.js +62 -0
- package/dist/site/assets/cytoscape.esm-nTrd5EVq.js +321 -0
- package/dist/site/assets/d3-scale-CElPUUud.js +1 -0
- package/dist/site/assets/d3-selection-DHygnWoA.js +1 -0
- package/dist/site/assets/dagre-SPEB5RXH-Bj5fBBSz.js +4 -0
- package/dist/site/assets/diagram-3B7GL73J-C2wQG_ff.js +200 -0
- package/dist/site/assets/diagram-DNEMPZML-BkCumRTy.js +24 -0
- package/dist/site/assets/diagram-L3MUGCDN-ueCGwS0n.js +41 -0
- package/dist/site/assets/diagram-LA4NIPWU-CWXyhkCR.js +24 -0
- package/dist/site/assets/diagram-MHCOC4E2-CjtgYuJD.js +3 -0
- package/dist/site/assets/diagram-XPFHEONP-DMJK3uYo.js +30 -0
- package/dist/site/assets/dist-D_7AE7hR.js +1 -0
- package/dist/site/assets/ebnfDiagram-UZSYDL2S-BOYcicjK.js +1 -0
- package/dist/site/assets/elk-XV6XMXQE-B5L8Iw7x.js +27 -0
- package/dist/site/assets/erDiagram-EYBAPDEH-CUUbHYkT.js +99 -0
- package/dist/site/assets/es-YYQGP5MR.js +2 -0
- package/dist/site/assets/eventmodeling-K75KTNOO-B7uQyKPK.js +1 -0
- package/dist/site/assets/flowDiagram-MALGAFMO-DepLaS9B.js +1 -0
- package/dist/site/assets/ganttDiagram-23REXITY-D5HywVHP.js +292 -0
- package/dist/site/assets/gitGraph-VSP46ZUC-DGApQopU.js +1 -0
- package/dist/site/assets/gitGraphDiagram-STJD7YCW-Ct1E3koZ.js +106 -0
- package/dist/site/assets/graphlib-DS17s2tU.js +1 -0
- package/dist/site/assets/index-BTjyXmrh.css +1 -0
- package/dist/site/assets/index-CiI39UEW.js +2 -0
- package/dist/site/assets/info-OHQRW6UA-Nb4bAH3m.js +1 -0
- package/dist/site/assets/infoDiagram-KBXO4MBG-DnU24S0B.js +2 -0
- package/dist/site/assets/ishikawaDiagram-M35NCXHK-BcQghjKX.js +70 -0
- package/dist/site/assets/journeyDiagram-OPLOXDXO-stnSaHRX.js +139 -0
- package/dist/site/assets/jsxRuntime-WpZ1bTm4.js +1 -0
- package/dist/site/assets/kanban-definition-BZKZHSQY-DEHcPEwn.js +89 -0
- package/dist/site/assets/katex-MEuSR36T.js +257 -0
- package/dist/site/assets/mermaid-parser.core-DeCnM7F6.js +7 -0
- package/dist/site/assets/mindmap-definition-I2QAS2VK-DmMlZUpg.js +98 -0
- package/dist/site/assets/packet-JDAUHWVQ-Bq64t2Nq.js +1 -0
- package/dist/site/assets/pegDiagram-FD4XPPHP-Dg_Jmvr8.js +1 -0
- package/dist/site/assets/pie-XZMESJXO-62QUFLOf.js +1 -0
- package/dist/site/assets/pieDiagram-J4AKIIQI-Cl6xtUfY.js +39 -0
- package/dist/site/assets/quadrantDiagram-XTYBLID2-CPskrlLu.js +7 -0
- package/dist/site/assets/radar-ABXABTNO-DcHFlqcv.js +1 -0
- package/dist/site/assets/railroad-I3PHUGI6-UN_KVEIT.js +1 -0
- package/dist/site/assets/railroad-abnf-LNEFI6M7-CBmAElE0.js +1 -0
- package/dist/site/assets/railroad-ebnf-DWYD2UWJ-cz0Vnfoe.js +1 -0
- package/dist/site/assets/railroad-peg-JR7BVNR7-CTpZf4Io.js +1 -0
- package/dist/site/assets/railroadDiagram-MRQ6NCDL-BfRdrXVU.js +1 -0
- package/dist/site/assets/requirementDiagram-Y7LWUY3S-Co7Z8efw.js +84 -0
- package/dist/site/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/dist/site/assets/sankeyDiagram-WGJFYUXA-B9pt8sRE.js +40 -0
- package/dist/site/assets/sequenceDiagram-5NDRBG5M-6BxTaEsr.js +169 -0
- package/dist/site/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- package/dist/site/assets/stateDiagram-v2-FJ4FJNEA-B4sFxyl8.js +291 -0
- package/dist/site/assets/swimlanes-UMQ2AFYF-BCLEQ3gh.js +1 -0
- package/dist/site/assets/swimlanesDiagram-OMPLPG4O-CSFiCK4U.js +8 -0
- package/dist/site/assets/three-core-B1q6MRTI.js +5 -0
- package/dist/site/assets/timeline-definition-SEUHKTQE-En4zD208.js +120 -0
- package/dist/site/assets/treeView-D4JQ5SDB-Co5K409-.js +1 -0
- package/dist/site/assets/treemap-SAJKECNS-6nDAfcSQ.js +1 -0
- package/dist/site/assets/usecaseDiagram-AFA6YXN4-BwnPKBeW.js +328 -0
- package/dist/site/assets/vennDiagram-NNMJR3RB-BZaUT4ro.js +34 -0
- package/dist/site/assets/wardley-7MLQ67FV-B_pofY38.js +1 -0
- package/dist/site/assets/wardleyDiagram-S7YFUSEH-Dg8pAabl.js +78 -0
- package/dist/site/assets/xychartDiagram-GGNKY7IX-Di4W3slj.js +7 -0
- package/dist/site/index.html +3 -2
- package/package.json +26 -25
- package/dist/BookViewer-CwCn-LTn.js +0 -332
- package/dist/site/assets/BookReader-BxKrexRZ.js +0 -2
- package/dist/site/assets/BookScene-DN1_Kxe3.js +0 -4045
- package/dist/site/assets/MermaidDiagram-Dma3Cwvn.js +0 -312
- package/dist/site/assets/PageMarkdown-C-gI_dXg.js +0 -37
- package/dist/site/assets/abnfDiagram-S7VZAUFO-BIA2ezcb.js +0 -1
- package/dist/site/assets/architectureDiagram-YGSQEFNW-DMB5UtEZ.js +0 -36
- package/dist/site/assets/blockDiagram-APKKGZFW-CeBSUSaW.js +0 -140
- package/dist/site/assets/c4Diagram-KJ2TOQU5-BmBo2PHu.js +0 -38
- package/dist/site/assets/chunk-2Q5K7J3B-BDgDFVbx.js +0 -1
- package/dist/site/assets/chunk-HFQBQIA3-B8uXoLoT.js +0 -1
- package/dist/site/assets/chunk-JWPE2WC7-BiKy7CcD.js +0 -1
- package/dist/site/assets/chunk-KQLB2F66-D_kpUTKA.js +0 -2
- package/dist/site/assets/chunk-KS47KZWR-C_s_qnHf.js +0 -1
- package/dist/site/assets/chunk-OY52VR5R-D8f7gl4W.js +0 -88
- package/dist/site/assets/chunk-TU62E6Q5-Bm44Znlj.js +0 -1
- package/dist/site/assets/chunk-XXDRQBXY-ChLLr56_.js +0 -1
- package/dist/site/assets/classDiagram-v2-L25IHNXF-DwKi-r2i.js +0 -217
- package/dist/site/assets/cose-bilkent-JH36ORCC-8N6YUm1i.js +0 -1
- package/dist/site/assets/cynefin-EF2NZ3EQ-Df5ATUPb.js +0 -141
- package/dist/site/assets/cynefinDiagram-L36ESFBY-DmAbfxAU.js +0 -62
- package/dist/site/assets/cytoscape.esm-BHa1VTXv.js +0 -321
- package/dist/site/assets/d3-scale-4DPf7zan.js +0 -1
- package/dist/site/assets/dagre-SPEB5RXH-B_2grAE7.js +0 -4
- package/dist/site/assets/diagram-3B7GL73J-C9FXwDlf.js +0 -200
- package/dist/site/assets/diagram-DNEMPZML-DflAT3gr.js +0 -24
- package/dist/site/assets/diagram-L3MUGCDN-B04gjrM_.js +0 -41
- package/dist/site/assets/diagram-LA4NIPWU-cfWJg8HX.js +0 -24
- package/dist/site/assets/diagram-MHCOC4E2-jRbOs2Df.js +0 -3
- package/dist/site/assets/diagram-XPFHEONP-yR45xV59.js +0 -30
- package/dist/site/assets/ebnfDiagram-UZSYDL2S-DlmNJUx4.js +0 -1
- package/dist/site/assets/elk-XV6XMXQE-cHLdRN7u.js +0 -27
- package/dist/site/assets/erDiagram-EYBAPDEH-7HsRsmBI.js +0 -99
- package/dist/site/assets/es-DoLiZPBX.js +0 -2
- package/dist/site/assets/flowDiagram-MALGAFMO-DoJjw4RA.js +0 -213
- package/dist/site/assets/ganttDiagram-23REXITY-D2uZtX_8.js +0 -292
- package/dist/site/assets/gitGraphDiagram-STJD7YCW-CjftfLRK.js +0 -106
- package/dist/site/assets/graph-D8UmR1vK.js +0 -1
- package/dist/site/assets/index-CqcyU6rA.js +0 -1
- package/dist/site/assets/index-DWW-KDWe.css +0 -1
- package/dist/site/assets/infoDiagram-KBXO4MBG-HN-1tqq1.js +0 -2
- package/dist/site/assets/ishikawaDiagram-M35NCXHK-DcnRwsO0.js +0 -70
- package/dist/site/assets/journeyDiagram-OPLOXDXO-CMZGp8mG.js +0 -139
- package/dist/site/assets/kanban-definition-BZKZHSQY-C9vGS-EW.js +0 -89
- package/dist/site/assets/katex-DLSO0Xi6.js +0 -257
- package/dist/site/assets/mindmap-definition-I2QAS2VK-R2SGME7R.js +0 -98
- package/dist/site/assets/pegDiagram-FD4XPPHP-eDMY4Hpd.js +0 -1
- package/dist/site/assets/pieDiagram-J4AKIIQI-DoHNiqwi.js +0 -39
- package/dist/site/assets/quadrantDiagram-XTYBLID2-Bz5idec8.js +0 -7
- package/dist/site/assets/railroadDiagram-MRQ6NCDL-DHJisW8P.js +0 -1
- package/dist/site/assets/requirementDiagram-Y7LWUY3S-5aETRIZz.js +0 -84
- package/dist/site/assets/sankeyDiagram-WGJFYUXA-C7O4v9rg.js +0 -40
- package/dist/site/assets/sequenceDiagram-5NDRBG5M-D4sVU6s6.js +0 -169
- package/dist/site/assets/sizeCapture-INFHLROL-Bi2DkFS3.js +0 -1
- package/dist/site/assets/stateDiagram-v2-FJ4FJNEA-WqXK7YOd.js +0 -291
- package/dist/site/assets/swimlanes-UMQ2AFYF-Czo9WyoV.js +0 -1
- package/dist/site/assets/swimlanesDiagram-OMPLPG4O-BH5aEx0X.js +0 -8
- package/dist/site/assets/three-core-Dkab0Vtn.js +0 -40
- package/dist/site/assets/timeline-definition-SEUHKTQE-KGKDZW_q.js +0 -120
- package/dist/site/assets/usecaseDiagram-AFA6YXN4-S0_9S22K.js +0 -370
- package/dist/site/assets/vennDiagram-NNMJR3RB-DJOjLlbA.js +0 -34
- package/dist/site/assets/wardleyDiagram-S7YFUSEH-BnzYzY-n.js +0 -78
- package/dist/site/assets/xychartDiagram-GGNKY7IX-CKOVznoa.js +0 -7
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import{g as ae}from"./chunk-XXDRQBXY-ChLLr56_.js";import{s as ce}from"./chunk-TU62E6Q5-Bm44Znlj.js";import{_ as l,l as C,p as le,r as he,M as de,P as G,c as B,j as F,ab as ge,a6 as ue,a7 as pe,a8 as fe}from"./MermaidDiagram-Dma3Cwvn.js";import"./index-CqcyU6rA.js";import"./PageMarkdown-C-gI_dXg.js";var Y=(function(){var n=l(function(x,s,i,o){for(i=i||{},o=x.length;o--;i[x[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],u=[1,20],m=[1,19],E=[6,7,8],_=[1,26],D=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],q=[1,33],J=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,f,r,$){var p=r.length-1;switch(f){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[p].id),c.addNode(r[p-1].length,r[p].id,r[p].descr,r[p].type);break;case 16:c.getLogger().trace("Icon: ",r[p]),c.decorateNode({icon:r[p]});break;case 17:case 21:c.decorateNode({class:r[p]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[p].id),c.addNode(0,r[p].id,r[p].descr,r[p].type);break;case 20:c.decorateNode({icon:r[p]});break;case 25:c.getLogger().trace("node found ..",r[p-2]),this.$={id:r[p-1],descr:r[p-1],type:c.getType(r[p-2],r[p])};break;case 26:this.$={id:r[p],descr:r[p],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[p-3]),this.$={id:r[p-3],descr:r[p-1],type:c.getType(r[p-2],r[p])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:_,7:D,10:23,11:w},n(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:m}),n(g,[2,18]),n(g,[2,19]),n(g,[2,20]),n(g,[2,21]),n(g,[2,23]),n(g,[2,24]),n(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:D,10:32,11:w},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(R,[2,14],{7:q,11:J}),n(A,[2,8]),n(A,[2,9]),n(A,[2,10]),n(g,[2,15]),n(g,[2,16]),n(g,[2,17]),{20:[1,35]},{21:[1,36]},n(R,[2,13],{7:q,11:J}),n(A,[2,11]),n(A,[2,12]),{21:[1,37]},n(g,[2,25]),n(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],f=[null],r=[],$=this.table,p="",M=0,K=0,ie=2,Q=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var re=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(b){o.length=o.length-2*b,f.length=f.length-b,r.length=r.length-b}l(oe,"popStack");function Z(){var b;return b=c.pop()||y.lex()||Q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=i.symbols_[b]||b),b}l(Z,"lex");for(var k,T,S,z,O={},U,N,ee,V;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Z()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var X="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");y.showPosition?X="Parse error on line "+(M+1)+`:
|
|
2
|
-
`+y.showPosition()+`
|
|
3
|
-
Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":X="Parse error on line "+(M+1)+": Unexpected "+(k==Q?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(X,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:o.push(k),f.push(y.yytext),r.push(y.yylloc),o.push(S[1]),k=null,K=y.yyleng,p=y.yytext,M=y.yylineno,W=y.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=f[f.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},re&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),z=this.performAction.apply(O,[p,K,M,v.yy,S[1],f,r].concat(se)),typeof z<"u")return z;N&&(o=o.slice(0,-1*N*2),f=f.slice(0,-1*N),r=r.slice(0,-1*N)),o.push(this.productions_[S[1]][0]),f.push(O.$),r.push(O._$),ee=$[o[o.length-2]][o[o.length-1]],o.push(ee);break;case 3:return!0}}return!0},"parse")},ne=(function(){var x={EOF:1,parseError:l(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
5
|
-
`+i+"^"},"showPosition"),test_match:l(function(s,i){var o,c,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),c=s[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],o=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var r in f)this[r]=f[r];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,i,o,c;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),r=0;r<f.length;r++)if(o=this._input.match(this.rules[f[r]]),o&&(!i||o[0].length>i[0].length)){if(i=o,c=r,this.options.backtrack_lexer){if(s=this.test_match(o,f[r]),s!==!1)return s;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(s=this.test_match(i,f[c]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(function(){var i=this.next();return i||this.lex()},"lex"),begin:l(function(i){this.conditionStack.push(i)},"begin"),popState:l(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:l(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:l(function(i){this.begin(i)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(i,o,c,f){switch(c){case 0:return i.getLogger().trace("Found comment",o.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:i.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return i.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:i.getLogger().trace("end icon"),this.popState();break;case 10:return i.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return i.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return i.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return i.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:i.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return i.getLogger().trace("description:",o.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),i.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),i.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),i.getLogger().trace("node end ...",o.yytext),"NODE_DEND";case 30:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 35:return i.getLogger().trace("Long description:",o.yytext),20;case 36:return i.getLogger().trace("Long description:",o.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return x})();j.lexer=ne;function P(){this.yy={}}return l(P,"Parser"),P.prototype=j,j.Parser=P,new P})();Y.parser=Y;var me=Y,te=12,L={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},I,ye=(I=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=L,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let a=this.nodes.length-1;a>=0;a--)if(this.nodes[a].level<e)return this.nodes[a];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,a,d,t){C.info("addNode",e,a,d,t);let h=!1;this.nodes.length===0?(this.baseLevel=e,e=0,h=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,h=!1);const u=B();let m=u.mindmap?.padding??G.mindmap.padding;switch(t){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:m*=2;break}const E={id:this.count++,nodeId:F(a,u),level:e,descr:F(d,u),type:t,children:[],width:u.mindmap?.maxNodeWidth??G.mindmap.maxNodeWidth,padding:m,isRoot:h},_=this.getParent(e);if(_)_.children.push(E),this.nodes.push(E);else if(h)this.nodes.push(E);else throw new Error(`There can be only one root. No parent could be found for ("${E.descr}")`)}getType(e,a){switch(C.debug("In get type",e,a),e){case"[":return this.nodeType.RECT;case"(":return a===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,a){this.elements[e]=a}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const a=B(),d=this.nodes[this.nodes.length-1];e.icon&&(d.icon=F(e.icon,a)),e.class&&(d.class=F(e.class,a))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,a,d=0,t=!1){if(e.level===0?e.section=void 0:e.section=t?(d-1)%(te-1):a,e.children)for(const[h,u]of e.children.entries()){const m=e.level===0?h%(te-1):a;this.assignSections(u,m,d+1,t)}}flattenNodes(e,a){const d=B(),t=["mindmap-node"];e.isRoot===!0?t.push("section-root","section--1"):e.section!==void 0&&t.push(`section-${e.section}`),e.class&&t.push(e.class);const h=t.join(" "),u=l(E=>{const D=(d.theme?.toLowerCase()??"").includes("redux");switch(E){case L.CIRCLE:return"mindmapCircle";case L.RECT:return"rect";case L.ROUNDED_RECT:return"rounded";case L.CLOUD:return"cloud";case L.BANG:return"bang";case L.HEXAGON:return"hexagon";case L.DEFAULT:return D?"rounded":"defaultMindmapNode";case L.NO_BORDER:default:return"rect"}},"getShapeFromType"),m={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:u(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:h,cssStyles:[],centerLabel:!0,look:d.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(a.push(m),e.children)for(const E of e.children)this.flattenNodes(E,a)}generateEdges(e,a){if(!e.children)return;const d=B();for(const t of e.children){let h="edge";t.section!==void 0&&(h+=` section-edge-${t.section}`);const u=e.level+1;h+=` edge-depth-${u}`;const m={id:`edge_${e.id}_${t.id}`,start:e.id.toString(),end:t.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:d.look,classes:h,depth:e.level,section:t.section};a.push(m),this.generateEdges(t,a)}}getData(){const e=this.getMindmap(),a=B(),t=ge().layout!==void 0,h=a;if(t||(h.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:h};C.debug("getData: mindmapRoot",e,a),this.assignSections(e,void 0,0,a.mindmap?.colorBy==="depth");const u=[],m=[];this.flattenNodes(e,u),this.generateEdges(e,m),C.debug(`getData: processed ${u.length} nodes and ${m.length} edges`);const E=new Map;for(const _ of u)E.set(_.id,{shape:_.shape,width:_.width,height:_.height,padding:_.padding});return{nodes:u,edges:m,config:h,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(E),type:"mindmap"}}getLogger(){return C}},l(I,"MindmapDB"),I),Ee=l(async(n,e,a,d)=>{C.debug(`Rendering mindmap diagram
|
|
7
|
-
`+n);const t=d.db,h=t.getData(),u=ae(e,h.config.securityLevel);if(h.type=d.type,h.layoutAlgorithm=le(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=e,!t.getMindmap())return;h.nodes.forEach(g=>{g.shape==="rounded"?(g.radius=15,g.taper=15,g.stroke="none",g.width=0,g.padding=15):g.shape==="circle"?g.padding=10:g.shape==="rect"?(g.width=0,g.padding=10):g.shape==="hexagon"&&(g.width=0,g.height=0)}),await he(h,u);const{themeVariables:E}=de(),{useGradient:_,gradientStart:D,gradientStop:w}=E;if(_&&D&&w){const g=u.attr("id"),R=u.append("defs").append("linearGradient").attr("id",`${g}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");R.append("stop").attr("offset","0%").attr("stop-color",D).attr("stop-opacity",1),R.append("stop").attr("offset","100%").attr("stop-color",w).attr("stop-opacity",1)}ce(u,h.config.mindmap?.padding??G.mindmap.padding,"mindmapDiagram",h.config.mindmap?.useMaxWidth??G.mindmap.useMaxWidth)},"draw"),_e={draw:Ee},ke=l(n=>{const{theme:e,look:a}=n;let d="";for(let t=0;t<n.THEME_COLOR_LIMIT;t++)n["lineColor"+t]=n["lineColor"+t]||n["cScaleInv"+t],ue(n["lineColor"+t])?n["lineColor"+t]=pe(n["lineColor"+t],20):n["lineColor"+t]=fe(n["lineColor"+t],20);for(let t=0;t<n.THEME_COLOR_LIMIT;t++){const h=""+(a==="neo"?Math.max(10-(t-1)*2,2):17-3*t),u=e==="redux"||e==="redux-dark"?n.nodeBorder:n["cScaleLabel"+(e==="neutral"?1:t)];d+=`
|
|
8
|
-
.section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} polygon, .section-${t-1} path {
|
|
9
|
-
fill: ${n["cScale"+t]};
|
|
10
|
-
}
|
|
11
|
-
.section-${t-1} text {
|
|
12
|
-
fill: ${n["cScaleLabel"+t]};
|
|
13
|
-
}
|
|
14
|
-
.section-${t-1} span {
|
|
15
|
-
color: ${n["cScaleLabel"+t]};
|
|
16
|
-
}
|
|
17
|
-
.node-icon-${t-1} {
|
|
18
|
-
font-size: 40px;
|
|
19
|
-
color: ${n["cScaleLabel"+t]};
|
|
20
|
-
}
|
|
21
|
-
.section-edge-${t-1}{
|
|
22
|
-
stroke: ${n["cScale"+t]};
|
|
23
|
-
}
|
|
24
|
-
.edge-depth-${t-1}{
|
|
25
|
-
stroke-width: ${h};
|
|
26
|
-
}
|
|
27
|
-
.section-${t-1} line {
|
|
28
|
-
stroke: ${n["cScaleInv"+t]} ;
|
|
29
|
-
stroke-width: 3;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.disabled, .disabled circle, .disabled text {
|
|
33
|
-
fill: lightgray;
|
|
34
|
-
}
|
|
35
|
-
.disabled text {
|
|
36
|
-
fill: #efefef;
|
|
37
|
-
}
|
|
38
|
-
[data-look="neo"].mindmap-node.section-${t-1} rect, [data-look="neo"].mindmap-node.section-${t-1} path, [data-look="neo"].mindmap-node.section-${t-1} circle, [data-look="neo"].mindmap-node.section-${t-1} polygon {
|
|
39
|
-
fill: ${e==="redux"||e==="redux-dark"||e==="neutral"?n.mainBkg:n["cScale"+t]};
|
|
40
|
-
stroke: ${e==="redux"||e==="redux-dark"?n.nodeBorder:n["cScale"+t]};
|
|
41
|
-
stroke-width: ${n.strokeWidth??2}px;
|
|
42
|
-
}
|
|
43
|
-
[data-look="neo"].section-edge-${t-1}{
|
|
44
|
-
stroke: ${e?.includes("redux")||e==="neo-dark"?n.nodeBorder:n["cScale"+t]};
|
|
45
|
-
}
|
|
46
|
-
[data-look="neo"].mindmap-node.section-${t-1} text, [data-look="neo"].mindmap-node.section-${t-1} span {
|
|
47
|
-
fill: ${u};
|
|
48
|
-
color: ${u};
|
|
49
|
-
}
|
|
50
|
-
`}return d},"genSections"),be=l((n,e,a)=>{let d="";for(let t=0;t<n;t++)d+=`
|
|
51
|
-
[data-look="neo"].mindmap-node.section-${t-1} rect, [data-look="neo"].mindmap-node.section-${t-1} path, [data-look="neo"].mindmap-node.section-${t-1} circle, [data-look="neo"].mindmap-node.section-${t-1} polygon {
|
|
52
|
-
stroke: url(${e}-gradient);
|
|
53
|
-
fill: ${a};
|
|
54
|
-
}
|
|
55
|
-
.section-${t-1} line {
|
|
56
|
-
stroke-width: 0;
|
|
57
|
-
}`;return d},"genGradient"),Se=l(n=>{const{theme:e}=n,a=n.svgId,d=e?.includes("redux")?n.nodeBorder:n["cScaleLabel"+(e==="neutral"?1:0)],t=n.dropShadow?n.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none";return`
|
|
58
|
-
.edge {
|
|
59
|
-
stroke-width: 3;
|
|
60
|
-
}
|
|
61
|
-
${ke(n)}
|
|
62
|
-
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
63
|
-
fill: ${n.git0};
|
|
64
|
-
}
|
|
65
|
-
.section-root text {
|
|
66
|
-
fill: ${n.gitBranchLabel0};
|
|
67
|
-
}
|
|
68
|
-
.section-root span {
|
|
69
|
-
color: ${e?.includes("redux")?n.nodeBorder:n.gitBranchLabel0};
|
|
70
|
-
}
|
|
71
|
-
.icon-container {
|
|
72
|
-
height:100%;
|
|
73
|
-
display: flex;
|
|
74
|
-
justify-content: center;
|
|
75
|
-
align-items: center;
|
|
76
|
-
}
|
|
77
|
-
.edge {
|
|
78
|
-
fill: none;
|
|
79
|
-
}
|
|
80
|
-
.mindmap-node-label {
|
|
81
|
-
dy: 1em;
|
|
82
|
-
alignment-baseline: middle;
|
|
83
|
-
text-anchor: middle;
|
|
84
|
-
dominant-baseline: middle;
|
|
85
|
-
text-align: center;
|
|
86
|
-
}
|
|
87
|
-
[data-look="neo"].mindmap-node {
|
|
88
|
-
filter: ${t};
|
|
89
|
-
}
|
|
90
|
-
[data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
|
|
91
|
-
fill: ${e?.includes("redux")?n.mainBkg:n.git0};
|
|
92
|
-
}
|
|
93
|
-
[data-look="neo"].mindmap-node.section-root .text-inner-tspan, [data-look="neo"].mindmap-node.section-root span {
|
|
94
|
-
fill: ${d};
|
|
95
|
-
color: ${d};
|
|
96
|
-
}
|
|
97
|
-
${n.useGradient&&a&&n.mainBkg?be(n.THEME_COLOR_LIMIT,a,n.mainBkg):""}
|
|
98
|
-
`},"getStyles"),Ne=Se,Oe={get db(){return new ye},renderer:_e,parser:me,styles:Ne};export{Oe as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as l,r as m,d as a}from"./chunk-OY52VR5R-D8f7gl4W.js";import{p}from"./chunk-JWPE2WC7-BiKy7CcD.js";import{_ as t,l as o}from"./MermaidDiagram-Dma3Cwvn.js";import{M as u,d as c}from"./cynefin-EF2NZ3EQ-Df5ATUPb.js";import"./index-CqcyU6rA.js";import"./PageMarkdown-C-gI_dXg.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},L={parser:b,db:a,renderer:m,styles:l};export{L as diagram};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import{p as tt}from"./chunk-JWPE2WC7-BiKy7CcD.js";import{g as et,s as at,a as rt,b as it,t as nt,q as ot,_ as l,l as E,c as st,O as lt,R as ct,S as dt,T as I,d as gt,A as ht,U as pt,P as ft}from"./MermaidDiagram-Dma3Cwvn.js";import{p as ut}from"./cynefin-EF2NZ3EQ-Df5ATUPb.js";import{o as mt}from"./d3-scale-4DPf7zan.js";import"./index-CqcyU6rA.js";import"./PageMarkdown-C-gI_dXg.js";var vt=ft.pie,R={sections:new Map,showData:!1},T=R.sections,L=R.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{T=new Map,L=R.showData,ht()},"clear"),$t=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);T.has(t)||(T.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Ct=l(()=>T,"getSections"),Dt=l(t=>{L=t},"setShowData"),yt=l(()=>L,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:$t,getSections:Ct,setShowData:Dt,getShowData:yt},Tt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),bt={parse:l(async t=>{const a=await ut("pie",t);E.debug(a),Tt(a,U)},"parse")},At=l(t=>`
|
|
2
|
-
.pieCircle{
|
|
3
|
-
stroke: ${t.pieStrokeColor};
|
|
4
|
-
stroke-width : ${t.pieStrokeWidth};
|
|
5
|
-
opacity : ${t.pieOpacity};
|
|
6
|
-
}
|
|
7
|
-
.pieCircle.highlighted{
|
|
8
|
-
scale: 1.05;
|
|
9
|
-
opacity: 1;
|
|
10
|
-
}
|
|
11
|
-
.pieCircle.highlightedOnHover:hover{
|
|
12
|
-
transition-duration: 250ms;
|
|
13
|
-
scale: 1.05;
|
|
14
|
-
opacity: 1;
|
|
15
|
-
}
|
|
16
|
-
.pieOuterCircle{
|
|
17
|
-
stroke: ${t.pieOuterStrokeColor};
|
|
18
|
-
stroke-width: ${t.pieOuterStrokeWidth};
|
|
19
|
-
fill: none;
|
|
20
|
-
}
|
|
21
|
-
.pieTitleText {
|
|
22
|
-
text-anchor: middle;
|
|
23
|
-
font-size: ${t.pieTitleTextSize};
|
|
24
|
-
fill: ${t.pieTitleTextColor};
|
|
25
|
-
font-family: ${t.fontFamily};
|
|
26
|
-
}
|
|
27
|
-
.slice {
|
|
28
|
-
font-family: ${t.fontFamily};
|
|
29
|
-
fill: ${t.pieSectionTextColor};
|
|
30
|
-
font-size:${t.pieSectionTextSize};
|
|
31
|
-
// fill: white;
|
|
32
|
-
}
|
|
33
|
-
.legend text {
|
|
34
|
-
fill: ${t.pieLegendTextColor};
|
|
35
|
-
font-family: ${t.fontFamily};
|
|
36
|
-
font-size: ${t.pieLegendTextSize};
|
|
37
|
-
}
|
|
38
|
-
`,"getStyles"),_t=At,kt=l(t=>{const a=[...t.values()].reduce((o,m)=>o+m,0),O=[...t.entries()].map(([o,m])=>({label:o,value:m})).filter(o=>o.value/a*100>=1);return pt().value(o=>o.value).sort(null)(O)},"createPieArcs"),zt=l((t,a,O,P)=>{E.debug(`rendering pie chart
|
|
39
|
-
`+t);const o=P.db,m=st(),p=lt(o.getConfig(),m.pie),W=40,i=18,c=4,$=450,S=$,b=ct(a),C=b.append("g");C.attr("transform","translate("+S/2+","+$/2+")");const{themeVariables:n}=m;let[F]=dt(n.pieOuterStrokeWidth);F??=2;const q=p.legendPosition,H=p.textPosition,V=p.donutHole>0&&p.donutHole<=.9?p.donutHole:0,f=Math.min(S,$)/2-W,X=I().innerRadius(V*f).outerRadius(f),Z=I().innerRadius(f*H).outerRadius(f*H),x=C.append("g");x.append("circle").attr("cx",0).attr("cy",0).attr("r",f+F/2).attr("class","pieOuterCircle");const D=o.getSections(),j=kt(D),J=[n.pie1,n.pie2,n.pie3,n.pie4,n.pie5,n.pie6,n.pie7,n.pie8,n.pie9,n.pie10,n.pie11,n.pie12];let A=0;D.forEach(e=>{A+=e});const M=j.filter(e=>(e.data.value/A*100).toFixed(0)!=="0"),_=mt(J).domain([...D.keys()]);x.selectAll("mySlices").data(M).enter().append("path").attr("d",X).attr("fill",e=>_(e.data.label)).attr("class",e=>{let r="pieCircle";return p.highlightSlice==="hover"?r+=" highlightedOnHover":p.highlightSlice===e.data.label&&(r+=" highlighted"),r}),x.selectAll("mySlices").data(M).enter().append("text").text(e=>(e.data.value/A*100).toFixed(0)+"%").attr("transform",e=>"translate("+Z.centroid(e)+")").style("text-anchor","middle").attr("class","slice");const K=C.append("text").text(o.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText"),w=[...D.entries()].map(([e,r])=>({label:e,value:r})),u=C.selectAll(".legend").data(w).enter().append("g").attr("class","legend");u.append("rect").attr("width",i).attr("height",i).style("fill",e=>_(e.label)).style("stroke",e=>_(e.label)),u.append("text").attr("x",i+c).attr("y",i-c).text(e=>o.getShowData()?`${e.label} [${e.value}]`:e.label);const v=Math.max(...u.selectAll("text").nodes().map(e=>e?.getBoundingClientRect().width??0));let y=$,k=S+W;const s=i+c,z=w.length*s;switch(q){case"center":u.attr("transform",(e,r)=>{const d=s*w.length/2,g=-v/2-(i+c),h=r*s-d;return"translate("+g+","+h+")"});break;case"top":y+=z,u.attr("transform",(e,r)=>{const d=f,g=-v/2-(i+c),h=r*s-d;return`translate(${g}, ${h})`}),x.attr("transform",()=>`translate(0, ${z+s})`);break;case"bottom":y+=z,u.attr("transform",(e,r)=>{const d=-f-s,g=-v/2-(i+c),h=r*s-d;return"translate("+g+","+h+")"});break;case"left":k+=i+c+v,u.attr("transform",(e,r)=>{const d=s*w.length/2,g=-f-(i+c),h=r*s-d;return"translate("+g+","+h+")"}),x.attr("transform",()=>`translate(${v+i+c}, 0)`);break;default:k+=i+c+v,u.attr("transform",(e,r)=>{const d=s*w.length/2,g=12*i,h=r*s-d;return"translate("+g+","+h+")"});break}const G=K.node()?.getBoundingClientRect().width??0,Q=S/2-G/2,Y=S/2+G/2,B=Math.min(0,Q),N=Math.max(k,Y)-B;b.attr("viewBox",`${B} 0 ${N} ${y}`),gt(b,y,N,p.useMaxWidth)},"draw"),Et={draw:zt},Mt={parser:bt,db:U,renderer:Et,styles:_t};export{Mt as diagram};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{s as Ae,g as ke,t as ae,q as Fe,a as Pe,b as ve,_ as o,c as Vt,l as bt,k as Lt,d as Ce,A as Le,P as V,j as Ee,V as De}from"./MermaidDiagram-Dma3Cwvn.js";import{l as ie}from"./d3-scale-4DPf7zan.js";import"./index-CqcyU6rA.js";import"./PageMarkdown-C-gI_dXg.js";var Et=(function(){var t=o(function(Y,r,l,x){for(l=l||{},x=Y.length;x--;l[Y[x]]=r);return l},"o"),n=[1,3],f=[1,4],d=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],u=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],g=[1,41],A=[1,45],ht=[1,14],xt=[1,23],ft=[1,18],gt=[1,19],ct=[1,20],_t=[1,21],dt=[1,22],i=[1,24],zt=[1,25],It=[1,26],wt=[1,27],Bt=[1,28],Rt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],H=[1,63],X=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Ht=[1,71],Xt=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,91],Z=[1,92],J=[1,93],$=[1,100],tt=[1,94],et=[1,97],it=[1,95],at=[1,96],nt=[1,98],st=[1,99],At=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,x,c,S,e,ut){var s=e.length-1;switch(S){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],c.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),c.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),c.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),c.setAccDescription(this.$);break;case 46:c.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:c.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:c.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:c.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:c.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:c.setXAxisLeftText(e[s-2]),c.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",c.setXAxisLeftText(e[s-1]);break;case 53:c.setXAxisLeftText(e[s]);break;case 54:c.setYAxisBottomText(e[s-2]),c.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",c.setYAxisBottomText(e[s-1]);break;case 56:c.setYAxisBottomText(e[s]);break;case 57:c.setQuadrant1Text(e[s]);break;case 58:c.setQuadrant2Text(e[s]);break;case 59:c.setQuadrant3Text(e[s]);break;case 60:c.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:f,55:d,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:f,55:d,56:h,57:p},{18:n,26:9,27:2,28:f,55:d,56:h,57:p},t(y,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:d,56:h,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,8:H,10:q,12:m,13:b,14:g,15:A,18:X,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:u,5:T,8:H,10:q,12:m,13:b,14:g,15:A,18:X,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:u,5:T,8:H,10:q,12:m,13:b,14:g,15:A,18:X,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:u,5:T,8:H,10:q,12:m,13:b,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:u,5:T,8:H,10:q,12:m,13:b,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:u,5:T,8:H,10:q,12:m,13:b,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:u,5:T,8:H,10:q,12:m,13:b,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:u,5:T,8:H,10:q,12:m,13:b,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:u,5:T,8:H,10:q,12:m,13:b,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{46:[1,102]},t(a,[2,29],{10:At}),t(Zt,[2,27],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:At}),t(a,[2,48],{22:89,16:90,23:105,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:106},t(N,[2,26]),t(a,[2,50],{10:At}),t(Zt,[2,28],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var x=new Error(r);throw x.hash=l,x}},"parseError"),parse:o(function(r){var l=this,x=[0],c=[],S=[null],e=[],ut=this.table,s="",yt=0,Jt=0,me=2,$t=1,be=e.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);D.setInput(r,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Pt=D.yylloc;e.push(Pt);var Se=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){x.length=x.length-2*R,S.length=S.length-R,e.length=e.length-R}o(_e,"popStack");function te(){var R;return R=c.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(c=R,R=c.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,G,W,vt,rt={},Tt,M,ee,qt;;){if(G=x[x.length-1],this.defaultActions[G]?W=this.defaultActions[G]:((B===null||typeof B>"u")&&(B=te()),W=ut[G]&&ut[G][B]),typeof W>"u"||!W.length||!W[0]){var Ct="";qt=[];for(Tt in ut[G])this.terminals_[Tt]&&Tt>me&&qt.push("'"+this.terminals_[Tt]+"'");D.showPosition?Ct="Parse error on line "+(yt+1)+`:
|
|
2
|
-
`+D.showPosition()+`
|
|
3
|
-
Expecting `+qt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ct="Parse error on line "+(yt+1)+": Unexpected "+(B==$t?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Pt,expected:qt})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+B);switch(W[0]){case 1:x.push(B),S.push(D.yytext),e.push(D.yylloc),x.push(W[1]),B=null,Jt=D.yyleng,s=D.yytext,yt=D.yylineno,Pt=D.yylloc;break;case 2:if(M=this.productions_[W[1]][1],rt.$=S[S.length-M],rt._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},Se&&(rt._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),vt=this.performAction.apply(rt,[s,Jt,yt,j.yy,W[1],S,e].concat(be)),typeof vt<"u")return vt;M&&(x=x.slice(0,-1*M*2),S=S.slice(0,-1*M),e=e.slice(0,-1*M)),x.push(this.productions_[W[1]][0]),S.push(rt.$),e.push(rt._$),ee=ut[x[x.length-2]][x[x.length-1]],x.push(ee);break;case 3:return!0}}return!0},"parse")},qe=(function(){var Y={EOF:1,parseError:o(function(l,x){if(this.yy.parser)this.yy.parser.parseError(l,x);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:o(function(r){var l=r.length,x=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var c=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),x.length-1&&(this.yylineno-=x.length-1);var S=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:x?(x.length===c.length?this.yylloc.first_column:0)+c[c.length-x.length].length-x[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
|
-
`+l+"^"},"showPosition"),test_match:o(function(r,l){var x,c,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),c=r[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],x=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var e in S)this[e]=S[e];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,l,x,c;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),e=0;e<S.length;e++)if(x=this._input.match(this.rules[S[e]]),x&&(!l||x[0].length>l[0].length)){if(l=x,c=e,this.options.backtrack_lexer){if(r=this.test_match(x,S[e]),r!==!1)return r;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(r=this.test_match(l,S[c]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var l=this.next();return l||this.lex()},"lex"),begin:o(function(l){this.conditionStack.push(l)},"begin"),popState:o(function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},"topState"),pushState:o(function(l){this.begin(l)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(l,x,c,S){switch(c){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return Y})();kt.lexer=qe;function pt(){this.yy={}}return o(pt,"Parser"),pt.prototype=kt,kt.Parser=pt,new pt})();Et.parser=Et;var Ve=Et,I=De(),ot,ze=(ot=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:V.quadrantChart?.chartWidth||500,chartWidth:V.quadrantChart?.chartHeight||500,titlePadding:V.quadrantChart?.titlePadding||10,titleFontSize:V.quadrantChart?.titleFontSize||20,quadrantPadding:V.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:V.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:V.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:V.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:V.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:V.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:V.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:V.quadrantChart?.pointTextPadding||5,pointLabelFontSize:V.quadrantChart?.pointLabelFontSize||12,pointRadius:V.quadrantChart?.pointRadius||5,xAxisPosition:V.quadrantChart?.xAxisPosition||"top",yAxisPosition:V.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:V.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:V.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:I.quadrant1Fill,quadrant2Fill:I.quadrant2Fill,quadrant3Fill:I.quadrant3Fill,quadrant4Fill:I.quadrant4Fill,quadrant1TextFill:I.quadrant1TextFill,quadrant2TextFill:I.quadrant2TextFill,quadrant3TextFill:I.quadrant3TextFill,quadrant4TextFill:I.quadrant4TextFill,quadrantPointFill:I.quadrantPointFill,quadrantPointTextFill:I.quadrantPointTextFill,quadrantXAxisTextFill:I.quadrantXAxisTextFill,quadrantYAxisTextFill:I.quadrantYAxisTextFill,quadrantTitleFill:I.quadrantTitleFill,quadrantInternalBorderStrokeFill:I.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:I.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,bt.info("clear called")}setData(n){this.data={...this.data,...n}}addPoints(n){this.data.points=[...n,...this.data.points]}addClass(n,f){this.classes.set(n,f)}setConfig(n){bt.trace("setConfig called with: ",n),this.config={...this.config,...n}}setThemeConfig(n){bt.trace("setThemeConfig called with: ",n),this.themeConfig={...this.themeConfig,...n}}calculateSpace(n,f,d,h){const p=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,y={top:n==="top"&&f?p:0,bottom:n==="bottom"&&f?p:0},_=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,a={left:this.config.yAxisPosition==="left"&&d?_:0,right:this.config.yAxisPosition==="right"&&d?_:0},k=this.config.titleFontSize+this.config.titlePadding*2,u={top:h?k:0},T=this.config.quadrantPadding+a.left,q=this.config.quadrantPadding+y.top+u.top,m=this.config.chartWidth-this.config.quadrantPadding*2-a.left-a.right,b=this.config.chartHeight-this.config.quadrantPadding*2-y.top-y.bottom-u.top,g=m/2,A=b/2;return{xAxisSpace:y,yAxisSpace:a,titleSpace:u,quadrantSpace:{quadrantLeft:T,quadrantTop:q,quadrantWidth:m,quadrantHalfWidth:g,quadrantHeight:b,quadrantHalfHeight:A}}}getAxisLabels(n,f,d,h){const{quadrantSpace:p,titleSpace:y}=h,{quadrantHalfHeight:_,quadrantHeight:a,quadrantLeft:k,quadrantHalfWidth:u,quadrantTop:T,quadrantWidth:q}=p,m=!!this.data.xAxisRightText,b=!!this.data.yAxisTopText,g=[];return this.data.xAxisLeftText&&f&&g.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:k+(m?u/2:0),y:n==="top"?this.config.xAxisLabelPadding+y.top:this.config.xAxisLabelPadding+T+a+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&f&&g.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:k+u+(m?u/2:0),y:n==="top"?this.config.xAxisLabelPadding+y.top:this.config.xAxisLabelPadding+T+a+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&d&&g.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+k+q+this.config.quadrantPadding,y:T+a-(b?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:b?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&d&&g.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+k+q+this.config.quadrantPadding,y:T+_-(b?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:b?"center":"left",horizontalPos:"top",rotation:-90}),g}getQuadrants(n){const{quadrantSpace:f}=n,{quadrantHalfHeight:d,quadrantLeft:h,quadrantHalfWidth:p,quadrantTop:y}=f,_=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h+p,y,width:p,height:d,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h,y,width:p,height:d,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h,y:y+d,width:p,height:d,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h+p,y:y+d,width:p,height:d,fill:this.themeConfig.quadrant4Fill}];for(const a of _)a.text.x=a.x+a.width/2,this.data.points.length===0?(a.text.y=a.y+a.height/2,a.text.horizontalPos="middle"):(a.text.y=a.y+this.config.quadrantTextTopPadding,a.text.horizontalPos="top");return _}getQuadrantPoints(n){const{quadrantSpace:f}=n,{quadrantHeight:d,quadrantLeft:h,quadrantTop:p,quadrantWidth:y}=f,_=ie().domain([0,1]).range([h,y+h]),a=ie().domain([0,1]).range([d+p,p]);return this.data.points.map(u=>{const T=this.classes.get(u.className);return T&&(u={...T,...u}),{x:_(u.x),y:a(u.y),fill:u.color??this.themeConfig.quadrantPointFill,radius:u.radius??this.config.pointRadius,text:{text:u.text,fill:this.themeConfig.quadrantPointTextFill,x:_(u.x),y:a(u.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:u.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:u.strokeWidth??"0px"}})}getBorders(n){const f=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:d}=n,{quadrantHalfHeight:h,quadrantHeight:p,quadrantLeft:y,quadrantHalfWidth:_,quadrantTop:a,quadrantWidth:k}=d;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y-f,y1:a,x2:y+k+f,y2:a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y+k,y1:a+f,x2:y+k,y2:a+p-f},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y-f,y1:a+p,x2:y+k+f,y2:a+p},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y,y1:a+f,x2:y,y2:a+p-f},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:y+_,y1:a+f,x2:y+_,y2:a+p-f},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:y+f,y1:a+h,x2:y+k-f,y2:a+h}]}getTitle(n){if(n)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const n=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),f=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),d=this.config.showTitle&&!!this.data.titleText,h=this.data.points.length>0?"bottom":this.config.xAxisPosition,p=this.calculateSpace(h,n,f,d);return{points:this.getQuadrantPoints(p),quadrants:this.getQuadrants(p),axisLabels:this.getAxisLabels(h,n,f,p),borderLines:this.getBorders(p),title:this.getTitle(d)}}},o(ot,"QuadrantBuilder"),ot),lt,mt=(lt=class extends Error{constructor(n,f,d){super(`value for ${n} ${f} is invalid, please use a valid ${d}`),this.name="InvalidStyleError"}},o(lt,"InvalidStyleError"),lt);function Dt(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}o(Dt,"validateHexCode");function ne(t){return!/^\d+$/.test(t)}o(ne,"validateNumber");function se(t){return!/^\d+px$/.test(t)}o(se,"validateSizeInPixels");function O(t){return Ee(t.trim(),Vt())}o(O,"textSanitizer");var z=new ze;function re(t){z.setData({quadrant1Text:O(t.text)})}o(re,"setQuadrant1Text");function oe(t){z.setData({quadrant2Text:O(t.text)})}o(oe,"setQuadrant2Text");function le(t){z.setData({quadrant3Text:O(t.text)})}o(le,"setQuadrant3Text");function he(t){z.setData({quadrant4Text:O(t.text)})}o(he,"setQuadrant4Text");function ce(t){z.setData({xAxisLeftText:O(t.text)})}o(ce,"setXAxisLeftText");function de(t){z.setData({xAxisRightText:O(t.text)})}o(de,"setXAxisRightText");function ue(t){z.setData({yAxisTopText:O(t.text)})}o(ue,"setYAxisTopText");function xe(t){z.setData({yAxisBottomText:O(t.text)})}o(xe,"setYAxisBottomText");function St(t){const n={};for(const f of t){const[d,h]=f.trim().split(/\s*:\s*/);if(d==="radius"){if(ne(h))throw new mt(d,h,"number");n.radius=parseInt(h)}else if(d==="color"){if(Dt(h))throw new mt(d,h,"hex code");n.color=h}else if(d==="stroke-color"){if(Dt(h))throw new mt(d,h,"hex code");n.strokeColor=h}else if(d==="stroke-width"){if(se(h))throw new mt(d,h,"number of pixels (eg. 10px)");n.strokeWidth=h}else throw new Error(`style named ${d} is not supported.`)}return n}o(St,"parseStyles");function fe(t,n,f,d,h){const p=St(h);z.addPoints([{x:f,y:d,text:O(t.text),className:n,...p}])}o(fe,"addPoint");function ge(t,n){z.addClass(t,St(n))}o(ge,"addClass");function pe(t){z.setConfig({chartWidth:t})}o(pe,"setWidth");function ye(t){z.setConfig({chartHeight:t})}o(ye,"setHeight");function Te(){const t=Vt(),{themeVariables:n,quadrantChart:f}=t;return f&&z.setConfig(f),z.setThemeConfig({quadrant1Fill:n.quadrant1Fill,quadrant2Fill:n.quadrant2Fill,quadrant3Fill:n.quadrant3Fill,quadrant4Fill:n.quadrant4Fill,quadrant1TextFill:n.quadrant1TextFill,quadrant2TextFill:n.quadrant2TextFill,quadrant3TextFill:n.quadrant3TextFill,quadrant4TextFill:n.quadrant4TextFill,quadrantPointFill:n.quadrantPointFill,quadrantPointTextFill:n.quadrantPointTextFill,quadrantXAxisTextFill:n.quadrantXAxisTextFill,quadrantYAxisTextFill:n.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:n.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:n.quadrantInternalBorderStrokeFill,quadrantTitleFill:n.quadrantTitleFill}),z.setData({titleText:ae()}),z.build()}o(Te,"getQuadrantData");var Ie=o(function(){z.clear(),Le()},"clear"),we={setWidth:pe,setHeight:ye,setQuadrant1Text:re,setQuadrant2Text:oe,setQuadrant3Text:le,setQuadrant4Text:he,setXAxisLeftText:ce,setXAxisRightText:de,setYAxisTopText:ue,setYAxisBottomText:xe,parseStyles:St,addPoint:fe,addClass:ge,getQuadrantData:Te,clear:Ie,setAccTitle:ve,getAccTitle:Pe,setDiagramTitle:Fe,getDiagramTitle:ae,getAccDescription:ke,setAccDescription:Ae},Be=o((t,n,f,d)=>{function h(i){return i==="top"?"hanging":"middle"}o(h,"getDominantBaseLine");function p(i){return i==="left"?"start":"middle"}o(p,"getTextAnchor");function y(i){return`translate(${i.x}, ${i.y}) rotate(${i.rotation||0})`}o(y,"getTransformation");const _=Vt();bt.debug(`Rendering quadrant chart
|
|
7
|
-
`+t);const a=_.securityLevel;let k;a==="sandbox"&&(k=Lt("#i"+n));const T=(a==="sandbox"?Lt(k.nodes()[0].contentDocument.body):Lt("body")).select(`[id="${n}"]`),q=T.append("g").attr("class","main"),m=_.quadrantChart?.chartWidth??500,b=_.quadrantChart?.chartHeight??500;Ce(T,b,m,_.quadrantChart?.useMaxWidth??!0),T.attr("viewBox","0 0 "+m+" "+b),d.db.setHeight(b),d.db.setWidth(m);const g=d.db.getQuadrantData(),A=q.append("g").attr("class","quadrants"),ht=q.append("g").attr("class","border"),xt=q.append("g").attr("class","data-points"),ft=q.append("g").attr("class","labels"),gt=q.append("g").attr("class","title");g.title&>.append("text").attr("x",0).attr("y",0).attr("fill",g.title.fill).attr("font-size",g.title.fontSize).attr("dominant-baseline",h(g.title.horizontalPos)).attr("text-anchor",p(g.title.verticalPos)).attr("transform",y(g.title)).text(g.title.text),g.borderLines&&ht.selectAll("line").data(g.borderLines).enter().append("line").attr("x1",i=>i.x1).attr("y1",i=>i.y1).attr("x2",i=>i.x2).attr("y2",i=>i.y2).style("stroke",i=>i.strokeFill).style("stroke-width",i=>i.strokeWidth);const ct=A.selectAll("g.quadrant").data(g.quadrants).enter().append("g").attr("class","quadrant");ct.append("rect").attr("x",i=>i.x).attr("y",i=>i.y).attr("width",i=>i.width).attr("height",i=>i.height).attr("fill",i=>i.fill),ct.append("text").attr("x",0).attr("y",0).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>h(i.text.horizontalPos)).attr("text-anchor",i=>p(i.text.verticalPos)).attr("transform",i=>y(i.text)).text(i=>i.text.text),ft.selectAll("g.label").data(g.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(i=>i.text).attr("fill",i=>i.fill).attr("font-size",i=>i.fontSize).attr("dominant-baseline",i=>h(i.horizontalPos)).attr("text-anchor",i=>p(i.verticalPos)).attr("transform",i=>y(i));const dt=xt.selectAll("g.data-point").data(g.points).enter().append("g").attr("class","data-point");dt.append("circle").attr("cx",i=>i.x).attr("cy",i=>i.y).attr("r",i=>i.radius).attr("fill",i=>i.fill).attr("stroke",i=>i.strokeColor).attr("stroke-width",i=>i.strokeWidth),dt.append("text").attr("x",0).attr("y",0).text(i=>i.text.text).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>h(i.text.horizontalPos)).attr("text-anchor",i=>p(i.text.verticalPos)).attr("transform",i=>y(i.text))},"draw"),Re={draw:Be},Oe={parser:Ve,db:we,renderer:Re,styles:o(()=>"","styles")};export{Oe as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as s,r as l,d as t}from"./chunk-OY52VR5R-D8f7gl4W.js";import{p as m}from"./chunk-JWPE2WC7-BiKy7CcD.js";import{_ as n,l as i}from"./MermaidDiagram-Dma3Cwvn.js";import{M as p,c as u}from"./cynefin-EF2NZ3EQ-Df5ATUPb.js";import"./index-CqcyU6rA.js";import"./PageMarkdown-C-gI_dXg.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),g=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),y={parse:n(e=>{t.clear(),i.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const o=r.value;i.debug("[Railroad Parser] Parsed rules:",o.rules.length),g(o),i.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},P={parser:y,db:t,renderer:l,styles:s};export{P as diagram};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import{g as ze}from"./chunk-XXDRQBXY-ChLLr56_.js";import{s as Xe}from"./chunk-TU62E6Q5-Bm44Znlj.js";import{_ as m,M as Be,b as Je,a as Ze,s as et,g as tt,q as st,t as it,c as Ne,l as qe,A as rt,C as nt,D as at,E as lt,K as ct,L as ot,p as ht,r as ut,u as ft}from"./MermaidDiagram-Dma3Cwvn.js";import"./index-CqcyU6rA.js";import"./PageMarkdown-C-gI_dXg.js";var Ce=(function(){var e=m(function($,i,n,o){for(n=n||{},o=$.length;o--;n[$[o]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],S=[2,7],d=[1,26],_=[1,27],b=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],R=[1,39],g=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,n,o,s,E,t,de){var l=t.length-1;switch(E){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:43,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:44,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:45,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:46,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:47,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:48,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:49,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:50,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:U}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,n){if(n.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=n,o}},"parseError"),parse:m(function(i){var n=this,o=[0],s=[],E=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),y=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);y.setInput(i,G.yy),G.yy.lexer=y,G.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Ie=y.yylloc;t.push(Ie);var je=y.options&&y.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(k){o.length=o.length-2*k,E.length=E.length-k,t.length=t.length-k}m(Ge,"popStack");function Ue(){var k;return k=s.pop()||y.lex()||Pe,typeof k!="number"&&(k instanceof Array&&(s=k,k=s.pop()),k=n.symbols_[k]||k),k}m(Ue,"lex");for(var I,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),N=de[z]&&de[z][I]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");y.showPosition?Te="Parse error on line "+(ge+1)+`:
|
|
2
|
-
`+y.showPosition()+`
|
|
3
|
-
Expecting `+_e.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Te="Parse error on line "+(ge+1)+": Unexpected "+(I==Pe?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Te,{text:y.match,token:this.terminals_[I]||I,line:y.yylineno,loc:Ie,expected:_e})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(N[0]){case 1:o.push(I),E.push(y.yytext),t.push(y.yylloc),o.push(N[1]),I=null,$e=y.yyleng,l=y.yytext,ge=y.yylineno,Ie=y.yylloc;break;case 2:if(F=this.productions_[N[1]][1],J.$=E[E.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},je&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),ke=this.performAction.apply(J,[l,$e,ge,G.yy,N[1],E,t].concat(We)),typeof ke<"u")return ke;F&&(o=o.slice(0,-1*F*2),E=E.slice(0,-1*F),t=t.slice(0,-1*F)),o.push(this.productions_[N[1]][0]),E.push(J.$),t.push(J._$),Ye=de[o[o.length-2]][o[o.length-1]],o.push(Ye);break;case 3:return!0}}return!0},"parse")},He=(function(){var $={EOF:1,parseError:m(function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},"parseError"),setInput:m(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:m(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:m(function(i){var n=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;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),o.length-1&&(this.yylineno-=o.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===s.length?this.yylloc.first_column:0)+s[s.length-o.length].length-o[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(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
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:m(function(i){this.unput(this.match.slice(i))},"less"),pastInput:m(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
|
-
`+n+"^"},"showPosition"),test_match:m(function(i,n){var o,s,E;if(this.options.backtrack_lexer&&(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(E.yylloc.range=this.yylloc.range.slice(0))),s=i[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],o=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var t in E)this[t]=E[t];return!1}return!1},"test_match"),next:m(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,o,s;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),t=0;t<E.length;t++)if(o=this._input.match(this.rules[E[t]]),o&&(!n||o[0].length>n[0].length)){if(n=o,s=t,this.options.backtrack_lexer){if(i=this.test_match(o,E[t]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,E[s]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:m(function(){var n=this.next();return n||this.lex()},"lex"),begin:m(function(n){this.conditionStack.push(n)},"begin"),popState:m(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:m(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:m(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:m(function(n){this.begin(n)},"pushState"),stateStackSize:m(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:m(function(n,o,s,E){switch(s){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return o.yytext=o.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return $})();Se.lexer=He;function Re(){this.yy={}}return m(Re,"Parser"),Re.prototype=Se,Se.Parser=Re,new Re})();Ce.parser=Ce;var mt=Ce,Z,dt=(Z=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=Je,this.getAccTitle=Ze,this.setAccDescription=et,this.getAccDescription=tt,this.setDiagramTitle=st,this.getDiagramTitle=it,this.getConfig=m(()=>Ne().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}getDirection(){return this.direction}setDirection(r){this.direction=r}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(r,u){return this.requirements.has(r)||this.requirements.set(r,{name:r,type:u,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(r)}getRequirements(){return this.requirements}setNewReqId(r){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=r)}setNewReqText(r){this.latestRequirement!==void 0&&(this.latestRequirement.text=r)}setNewReqRisk(r){this.latestRequirement!==void 0&&(this.latestRequirement.risk=r)}setNewReqVerifyMethod(r){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=r)}addElement(r){return this.elements.has(r)||(this.elements.set(r,{name:r,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),qe.info("Added new element: ",r)),this.resetLatestElement(),this.elements.get(r)}getElements(){return this.elements}setNewElementType(r){this.latestElement!==void 0&&(this.latestElement.type=r)}setNewElementDocRef(r){this.latestElement!==void 0&&(this.latestElement.docRef=r)}addRelationship(r,u,h){this.relations.push({type:r,src:u,dst:h})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,rt()}setCssStyle(r,u){for(const h of r){const f=this.requirements.get(h)??this.elements.get(h);if(!u||!f)return;for(const a of u)a.includes(",")?f.cssStyles.push(...a.split(",")):f.cssStyles.push(a)}}setClass(r,u){for(const h of r){const f=this.requirements.get(h)??this.elements.get(h);if(f)for(const a of u){f.classes.push(a);const c=this.classes.get(a)?.styles;c&&f.cssStyles.push(...c)}}}defineClass(r,u){for(const h of r){let f=this.classes.get(h);f===void 0&&(f={id:h,styles:[],textStyles:[]},this.classes.set(h,f)),u&&u.forEach(function(a){if(/color/.exec(a)){const c=a.replace("fill","bgFill");f.textStyles.push(c)}f.styles.push(a)}),this.requirements.forEach(a=>{a.classes.includes(h)&&a.cssStyles.push(...u.flatMap(c=>c.split(",")))}),this.elements.forEach(a=>{a.classes.includes(h)&&a.cssStyles.push(...u.flatMap(c=>c.split(",")))})}}getClasses(){return this.classes}getData(){const r=Ne(),u=[],h=[];for(const a of this.requirements.values()){const c=a;c.id=a.name,c.cssStyles=a.cssStyles,c.cssClasses=a.classes.join(" "),c.shape="requirementBox",c.look=r.look,c.colorIndex=u.length,u.push(c)}for(const a of this.elements.values()){const c=a;c.shape="requirementBox",c.look=r.look,c.id=a.name,c.cssStyles=a.cssStyles,c.cssClasses=a.classes.join(" "),c.colorIndex=u.length,u.push(c)}let f=0;for(const a of this.relations){const c=a.type===this.Relationships.CONTAINS,S={id:`${a.src}-${a.dst}-${f++}`,start:this.requirements.get(a.src)?.name??this.elements.get(a.src)?.name,end:this.requirements.get(a.dst)?.name??this.elements.get(a.dst)?.name,label:`<<${a.type}>>`,classes:"relationshipLine",style:["fill:none",c?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:c?"normal":"dashed",arrowTypeStart:c?"requirement_contains":"",arrowTypeEnd:c?"":"requirement_arrow",look:r.look,labelType:"markdown"};h.push(S)}return{nodes:u,edges:h,other:{},config:r,direction:this.getDirection()}}},m(Z,"RequirementDB"),Z),Et=m(()=>{const e=Be(),{theme:r,themeVariables:u}=e,{bkgColorArray:h,borderColorArray:f}=u;if(!nt(r,f))return"";const a=at(e.look);let c="";const S=lt(h);for(let d=0;d<ct(f);d++){const _=f[d],b=S?`fill: ${h[d%h.length]};`:"";c+=`
|
|
7
|
-
|
|
8
|
-
[data-look="${a}"][data-color-id="color-${d}"].node path {
|
|
9
|
-
stroke: ${_};
|
|
10
|
-
${b}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
[data-look="${a}"][data-color-id="color-${d}"].node rect {
|
|
14
|
-
stroke: ${_};
|
|
15
|
-
${b}
|
|
16
|
-
}
|
|
17
|
-
`}return c},"genColor"),pt=m(e=>{const r=Be(),{look:u,themeVariables:h}=r,{requirementEdgeLabelBackground:f}=h;return`
|
|
18
|
-
${Et()}
|
|
19
|
-
marker {
|
|
20
|
-
fill: ${e.relationColor};
|
|
21
|
-
stroke: ${e.relationColor};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
marker.cross {
|
|
25
|
-
stroke: ${e.lineColor};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
svg {
|
|
29
|
-
font-family: ${e.fontFamily};
|
|
30
|
-
font-size: ${e.fontSize};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.reqBox {
|
|
34
|
-
fill: ${e.requirementBackground};
|
|
35
|
-
fill-opacity: 1.0;
|
|
36
|
-
stroke: ${e.requirementBorderColor};
|
|
37
|
-
stroke-width: ${e.requirementBorderSize};
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.reqTitle, .reqLabel{
|
|
41
|
-
fill: ${e.requirementTextColor};
|
|
42
|
-
}
|
|
43
|
-
.reqLabelBox {
|
|
44
|
-
fill: ${e.relationLabelBackground};
|
|
45
|
-
fill-opacity: 1.0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.req-title-line {
|
|
49
|
-
stroke: ${e.requirementBorderColor};
|
|
50
|
-
stroke-width: ${e.requirementBorderSize};
|
|
51
|
-
}
|
|
52
|
-
.relationshipLine {
|
|
53
|
-
stroke: ${e.relationColor};
|
|
54
|
-
stroke-width: ${u==="neo"?e.strokeWidth:"1px"};
|
|
55
|
-
}
|
|
56
|
-
.relationshipLabel {
|
|
57
|
-
fill: ${e.relationLabelColor};
|
|
58
|
-
}
|
|
59
|
-
.edgeLabel {
|
|
60
|
-
background-color: ${e.edgeLabelBackground};
|
|
61
|
-
}
|
|
62
|
-
.edgeLabel .label rect {
|
|
63
|
-
fill: ${e.edgeLabelBackground};
|
|
64
|
-
}
|
|
65
|
-
.edgeLabel .label text {
|
|
66
|
-
fill: ${e.relationLabelColor};
|
|
67
|
-
}
|
|
68
|
-
.divider {
|
|
69
|
-
stroke: ${e.nodeBorder};
|
|
70
|
-
stroke-width: 1;
|
|
71
|
-
}
|
|
72
|
-
.label {
|
|
73
|
-
font-family: ${e.fontFamily};
|
|
74
|
-
color: ${e.nodeTextColor||e.textColor};
|
|
75
|
-
}
|
|
76
|
-
.label text,span {
|
|
77
|
-
fill: ${e.nodeTextColor||e.textColor};
|
|
78
|
-
color: ${e.nodeTextColor||e.textColor};
|
|
79
|
-
}
|
|
80
|
-
.labelBkg {
|
|
81
|
-
background-color: ${f??e.edgeLabelBackground};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
`},"getStyles"),Rt=pt,Qe={};ot(Qe,{draw:()=>gt});var gt=m(async function(e,r,u,h){qe.info("REF0:"),qe.info("Drawing requirement diagram (unified)",r);const{securityLevel:f,state:a,layout:c,look:S}=Ne(),d=h.db.getData(),_=ze(r,f);d.type=h.type,d.layoutAlgorithm=ht(c),d.nodeSpacing=a?.nodeSpacing??50,d.rankSpacing=a?.rankSpacing??50,d.markers=S==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],d.diagramId=r,await ut(d,_);const b=8;ft.insertTitle(_,"requirementDiagramTitleText",a?.titleTopMargin??25,h.db.getDiagramTitle()),Xe(_,b,"requirementDiagram",a?.useMaxWidth??!0)},"draw"),kt={parser:mt,get db(){return new dt},renderer:Qe,styles:Rt};export{kt as diagram};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import{q as Ae,t as Se,s as Le,g as Ee,b as $e,a as Te,_ as u,c as le,B as Me,k as K,a9 as Ne,A as Ce,m as Pe}from"./MermaidDiagram-Dma3Cwvn.js";import{w as ue,x as W,y as Ie,z as Oe,o as je}from"./d3-scale-4DPf7zan.js";import"./index-CqcyU6rA.js";import"./PageMarkdown-C-gI_dXg.js";function k(e){for(var a=e.length/6|0,d=new Array(a),r=0;r<a;)d[r]="#"+e.slice(r*6,++r*6);return d}k("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");k("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");k("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");k("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0");k("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");k("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");k("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");k("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");k("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");k("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var ze=k("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),A=e=>Oe(e[e.length-1]),De=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(k);A(De);var Be=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(k);A(Be);var Fe=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(k);A(Fe);var Re=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(k);A(Re);var Ve=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(k);A(Ve);var We=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(k);A(We);var Ge=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(k);A(Ge);var Ue=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(k);A(Ue);var qe=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(k);A(qe);var Ye=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(k);A(Ye);var He=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(k);A(He);var Xe=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(k);A(Xe);var Qe=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(k);A(Qe);var Ke=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(k);A(Ke);var Ze=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(k);A(Ze);var Je=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(k);A(Je);var ef=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(k);A(ef);var ff=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(k);A(ff);var af=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(k);A(af);var tf=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(k);A(tf);var cf=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(k);A(cf);var df=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(k);A(df);var nf=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(k);A(nf);var rf=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(k);A(rf);var sf=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(k);A(sf);var bf=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(k);A(bf);var of=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(k);A(of);ue(W(300,.5,0),W(-240,.5,1));ue(W(-100,.75,.35),W(80,1.5,.8));ue(W(260,.75,.35),W(80,1.5,.8));W();Ie();function ae(e){var a=e.length;return function(d){return e[Math.max(0,Math.min(a-1,Math.floor(d*a)))]}}ae(k("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));ae(k("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));ae(k("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));ae(k("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function he(e,a){let d;if(a===void 0)for(const r of e)r!=null&&(d<r||d===void 0&&r>=r)&&(d=r);else{let r=-1;for(let b of e)(b=a(b,++r,e))!=null&&(d<b||d===void 0&&b>=b)&&(d=b)}return d}function _e(e,a){let d;if(a===void 0)for(const r of e)r!=null&&(d>r||d===void 0&&r>=r)&&(d=r);else{let r=-1;for(let b of e)(b=a(b,++r,e))!=null&&(d>b||d===void 0&&b>=b)&&(d=b)}return d}function ne(e,a){let d=0;if(a===void 0)for(let r of e)(r=+r)&&(d+=r);else{let r=-1;for(let b of e)(b=+a(b,++r,e))&&(d+=b)}return d}function lf(e){return e.target.depth}function uf(e){return e.depth}function hf(e,a){return a-1-e.height}function ve(e,a){return e.sourceLinks.length?e.depth:a-1}function yf(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?_e(e.sourceLinks,lf)-1:0}function Z(e){return function(){return e}}function ye(e,a){return J(e.source,a.source)||e.index-a.index}function pe(e,a){return J(e.target,a.target)||e.index-a.index}function J(e,a){return e.y0-a.y0}function re(e){return e.value}function pf(e){return e.index}function gf(e){return e.nodes}function mf(e){return e.links}function ge(e,a){const d=e.get(a);if(!d)throw new Error("missing: "+a);return d}function me({nodes:e}){for(const a of e){let d=a.y0,r=d;for(const b of a.sourceLinks)b.y0=d+b.width/2,d+=b.width;for(const b of a.targetLinks)b.y1=r+b.width/2,r+=b.width}}function kf(){let e=0,a=0,d=1,r=1,b=24,x=8,y,g=pf,n=ve,i,o,m=gf,_=mf,h=6;function v(){const t={nodes:m.apply(null,arguments),links:_.apply(null,arguments)};return M(t),T(t),N(t),O(t),S(t),me(t),t}v.update=function(t){return me(t),t},v.nodeId=function(t){return arguments.length?(g=typeof t=="function"?t:Z(t),v):g},v.nodeAlign=function(t){return arguments.length?(n=typeof t=="function"?t:Z(t),v):n},v.nodeSort=function(t){return arguments.length?(i=t,v):i},v.nodeWidth=function(t){return arguments.length?(b=+t,v):b},v.nodePadding=function(t){return arguments.length?(x=y=+t,v):x},v.nodes=function(t){return arguments.length?(m=typeof t=="function"?t:Z(t),v):m},v.links=function(t){return arguments.length?(_=typeof t=="function"?t:Z(t),v):_},v.linkSort=function(t){return arguments.length?(o=t,v):o},v.size=function(t){return arguments.length?(e=a=0,d=+t[0],r=+t[1],v):[d-e,r-a]},v.extent=function(t){return arguments.length?(e=+t[0][0],d=+t[1][0],a=+t[0][1],r=+t[1][1],v):[[e,a],[d,r]]},v.iterations=function(t){return arguments.length?(h=+t,v):h};function M({nodes:t,links:l}){for(const[f,c]of t.entries())c.index=f,c.sourceLinks=[],c.targetLinks=[];const s=new Map(t.map((f,c)=>[g(f,c,t),f]));for(const[f,c]of l.entries()){c.index=f;let{source:p,target:w}=c;typeof p!="object"&&(p=c.source=ge(s,p)),typeof w!="object"&&(w=c.target=ge(s,w)),p.sourceLinks.push(c),w.targetLinks.push(c)}if(o!=null)for(const{sourceLinks:f,targetLinks:c}of t)f.sort(o),c.sort(o)}function T({nodes:t}){for(const l of t)l.value=l.fixedValue===void 0?Math.max(ne(l.sourceLinks,re),ne(l.targetLinks,re)):l.fixedValue}function N({nodes:t}){const l=t.length;let s=new Set(t),f=new Set,c=0;for(;s.size;){for(const p of s){p.depth=c;for(const{target:w}of p.sourceLinks)f.add(w)}if(++c>l)throw new Error("circular link");s=f,f=new Set}}function O({nodes:t}){const l=t.length;let s=new Set(t),f=new Set,c=0;for(;s.size;){for(const p of s){p.height=c;for(const{source:w}of p.targetLinks)f.add(w)}if(++c>l)throw new Error("circular link");s=f,f=new Set}}function C({nodes:t}){const l=he(t,c=>c.depth)+1,s=(d-e-b)/(l-1),f=new Array(l);for(const c of t){const p=Math.max(0,Math.min(l-1,Math.floor(n.call(null,c,l))));c.layer=p,c.x0=e+p*s,c.x1=c.x0+b,f[p]?f[p].push(c):f[p]=[c]}if(i)for(const c of f)c.sort(i);return f}function D(t){const l=_e(t,s=>(r-a-(s.length-1)*y)/ne(s,re));for(const s of t){let f=a;for(const c of s){c.y0=f,c.y1=f+c.value*l,f=c.y1+y;for(const p of c.sourceLinks)p.width=p.value*l}f=(r-f+y)/(s.length+1);for(let c=0;c<s.length;++c){const p=s[c];p.y0+=f*(c+1),p.y1+=f*(c+1)}L(s)}}function S(t){const l=C(t);y=Math.min(x,(r-a)/(he(l,s=>s.length)-1)),D(l);for(let s=0;s<h;++s){const f=Math.pow(.99,s),c=Math.max(1-f,(s+1)/h);G(l,f,c),P(l,f,c)}}function P(t,l,s){for(let f=1,c=t.length;f<c;++f){const p=t[f];for(const w of p){let E=0,R=0;for(const{source:X,value:de}of w.targetLinks){let Q=de*(w.layer-X.layer);E+=I(X,w)*Q,R+=Q}if(!(R>0))continue;let H=(E/R-w.y0)*l;w.y0+=H,w.y1+=H,F(w)}i===void 0&&p.sort(J),B(p,s)}}function G(t,l,s){for(let f=t.length,c=f-2;c>=0;--c){const p=t[c];for(const w of p){let E=0,R=0;for(const{target:X,value:de}of w.sourceLinks){let Q=de*(X.layer-w.layer);E+=$(w,X)*Q,R+=Q}if(!(R>0))continue;let H=(E/R-w.y0)*l;w.y0+=H,w.y1+=H,F(w)}i===void 0&&p.sort(J),B(p,s)}}function B(t,l){const s=t.length>>1,f=t[s];j(t,f.y0-y,s-1,l),U(t,f.y1+y,s+1,l),j(t,r,t.length-1,l),U(t,a,0,l)}function U(t,l,s,f){for(;s<t.length;++s){const c=t[s],p=(l-c.y0)*f;p>1e-6&&(c.y0+=p,c.y1+=p),l=c.y1+y}}function j(t,l,s,f){for(;s>=0;--s){const c=t[s],p=(c.y1-l)*f;p>1e-6&&(c.y0-=p,c.y1-=p),l=c.y0-y}}function F({sourceLinks:t,targetLinks:l}){if(o===void 0){for(const{source:{sourceLinks:s}}of l)s.sort(pe);for(const{target:{targetLinks:s}}of t)s.sort(ye)}}function L(t){if(o===void 0)for(const{sourceLinks:l,targetLinks:s}of t)l.sort(pe),s.sort(ye)}function I(t,l){let s=t.y0-(t.sourceLinks.length-1)*y/2;for(const{target:f,width:c}of t.sourceLinks){if(f===l)break;s+=c+y}for(const{source:f,width:c}of l.targetLinks){if(f===t)break;s-=c}return s}function $(t,l){let s=l.y0-(l.targetLinks.length-1)*y/2;for(const{source:f,width:c}of l.targetLinks){if(f===t)break;s+=c+y}for(const{target:f,width:c}of t.sourceLinks){if(f===l)break;s-=c}return s}return v}var ie=Math.PI,se=2*ie,V=1e-6,xf=se-V;function be(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function we(){return new be}be.prototype=we.prototype={constructor:be,moveTo:function(e,a){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+a)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,a){this._+="L"+(this._x1=+e)+","+(this._y1=+a)},quadraticCurveTo:function(e,a,d,r){this._+="Q"+ +e+","+ +a+","+(this._x1=+d)+","+(this._y1=+r)},bezierCurveTo:function(e,a,d,r,b,x){this._+="C"+ +e+","+ +a+","+ +d+","+ +r+","+(this._x1=+b)+","+(this._y1=+x)},arcTo:function(e,a,d,r,b){e=+e,a=+a,d=+d,r=+r,b=+b;var x=this._x1,y=this._y1,g=d-e,n=r-a,i=x-e,o=y-a,m=i*i+o*o;if(b<0)throw new Error("negative radius: "+b);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=a);else if(m>V)if(!(Math.abs(o*g-n*i)>V)||!b)this._+="L"+(this._x1=e)+","+(this._y1=a);else{var _=d-x,h=r-y,v=g*g+n*n,M=_*_+h*h,T=Math.sqrt(v),N=Math.sqrt(m),O=b*Math.tan((ie-Math.acos((v+m-M)/(2*T*N)))/2),C=O/N,D=O/T;Math.abs(C-1)>V&&(this._+="L"+(e+C*i)+","+(a+C*o)),this._+="A"+b+","+b+",0,0,"+ +(o*_>i*h)+","+(this._x1=e+D*g)+","+(this._y1=a+D*n)}},arc:function(e,a,d,r,b,x){e=+e,a=+a,d=+d,x=!!x;var y=d*Math.cos(r),g=d*Math.sin(r),n=e+y,i=a+g,o=1^x,m=x?r-b:b-r;if(d<0)throw new Error("negative radius: "+d);this._x1===null?this._+="M"+n+","+i:(Math.abs(this._x1-n)>V||Math.abs(this._y1-i)>V)&&(this._+="L"+n+","+i),d&&(m<0&&(m=m%se+se),m>xf?this._+="A"+d+","+d+",0,1,"+o+","+(e-y)+","+(a-g)+"A"+d+","+d+",0,1,"+o+","+(this._x1=n)+","+(this._y1=i):m>V&&(this._+="A"+d+","+d+",0,"+ +(m>=ie)+","+o+","+(this._x1=e+d*Math.cos(b))+","+(this._y1=a+d*Math.sin(b))))},rect:function(e,a,d,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+a)+"h"+ +d+"v"+ +r+"h"+-d+"Z"},toString:function(){return this._}};function ke(e){return function(){return e}}function _f(e){return e[0]}function vf(e){return e[1]}var wf=Array.prototype.slice;function Af(e){return e.source}function Sf(e){return e.target}function Lf(e){var a=Af,d=Sf,r=_f,b=vf,x=null;function y(){var g,n=wf.call(arguments),i=a.apply(this,n),o=d.apply(this,n);if(x||(x=g=we()),e(x,+r.apply(this,(n[0]=i,n)),+b.apply(this,n),+r.apply(this,(n[0]=o,n)),+b.apply(this,n)),g)return x=null,g+""||null}return y.source=function(g){return arguments.length?(a=g,y):a},y.target=function(g){return arguments.length?(d=g,y):d},y.x=function(g){return arguments.length?(r=typeof g=="function"?g:ke(+g),y):r},y.y=function(g){return arguments.length?(b=typeof g=="function"?g:ke(+g),y):b},y.context=function(g){return arguments.length?(x=g??null,y):x},y}function Ef(e,a,d,r,b){e.moveTo(a,d),e.bezierCurveTo(a=(a+r)/2,d,a,b,r,b)}function $f(){return Lf(Ef)}function Tf(e){return[e.source.x1,e.y0]}function Mf(e){return[e.target.x0,e.y1]}function Nf(){return $f().source(Tf).target(Mf)}var oe=(function(){var e=u(function(g,n,i,o){for(i=i||{},o=g.length;o--;i[g[o]]=n);return i},"o"),a=[1,9],d=[1,10],r=[1,5,10,12],b={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:u(function(n,i,o,m,_,h,v){var M=h.length-1;switch(_){case 7:const T=m.findOrCreateNode(h[M-4].trim().replaceAll('""','"')),N=m.findOrCreateNode(h[M-2].trim().replaceAll('""','"')),O=parseFloat(h[M].trim());m.addLink(T,N,O);break;case 8:case 9:case 11:this.$=h[M];break;case 10:this.$=h[M-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:a,20:d},{1:[2,6],7:11,10:[1,12]},e(d,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(r,[2,8]),e(r,[2,9]),{19:[1,16]},e(r,[2,11]),{1:[2,1]},{1:[2,5]},e(d,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:a,20:d},{15:18,16:7,17:8,18:a,20:d},{18:[1,19]},e(d,[2,3]),{12:[1,20]},e(r,[2,10]),{15:21,16:7,17:8,18:a,20:d},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:u(function(n,i){if(i.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=i,o}},"parseError"),parse:u(function(n){var i=this,o=[0],m=[],_=[null],h=[],v=this.table,M="",T=0,N=0,O=2,C=1,D=h.slice.call(arguments,1),S=Object.create(this.lexer),P={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(P.yy[G]=this.yy[G]);S.setInput(n,P.yy),P.yy.lexer=S,P.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var B=S.yylloc;h.push(B);var U=S.options&&S.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(E){o.length=o.length-2*E,_.length=_.length-E,h.length=h.length-E}u(j,"popStack");function F(){var E;return E=m.pop()||S.lex()||C,typeof E!="number"&&(E instanceof Array&&(m=E,E=m.pop()),E=i.symbols_[E]||E),E}u(F,"lex");for(var L,I,$,t,l={},s,f,c,p;;){if(I=o[o.length-1],this.defaultActions[I]?$=this.defaultActions[I]:((L===null||typeof L>"u")&&(L=F()),$=v[I]&&v[I][L]),typeof $>"u"||!$.length||!$[0]){var w="";p=[];for(s in v[I])this.terminals_[s]&&s>O&&p.push("'"+this.terminals_[s]+"'");S.showPosition?w="Parse error on line "+(T+1)+`:
|
|
2
|
-
`+S.showPosition()+`
|
|
3
|
-
Expecting `+p.join(", ")+", got '"+(this.terminals_[L]||L)+"'":w="Parse error on line "+(T+1)+": Unexpected "+(L==C?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(w,{text:S.match,token:this.terminals_[L]||L,line:S.yylineno,loc:B,expected:p})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+L);switch($[0]){case 1:o.push(L),_.push(S.yytext),h.push(S.yylloc),o.push($[1]),L=null,N=S.yyleng,M=S.yytext,T=S.yylineno,B=S.yylloc;break;case 2:if(f=this.productions_[$[1]][1],l.$=_[_.length-f],l._$={first_line:h[h.length-(f||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(f||1)].first_column,last_column:h[h.length-1].last_column},U&&(l._$.range=[h[h.length-(f||1)].range[0],h[h.length-1].range[1]]),t=this.performAction.apply(l,[M,N,T,P.yy,$[1],_,h].concat(D)),typeof t<"u")return t;f&&(o=o.slice(0,-1*f*2),_=_.slice(0,-1*f),h=h.slice(0,-1*f)),o.push(this.productions_[$[1]][0]),_.push(l.$),h.push(l._$),c=v[o[o.length-2]][o[o.length-1]],o.push(c);break;case 3:return!0}}return!0},"parse")},x=(function(){var g={EOF:1,parseError:u(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:u(function(n,i){return this.yy=i||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var i=n.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:u(function(n){var i=n.length,o=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.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:o?(o.length===m.length?this.yylloc.first_column:0)+m[m.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-i]),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
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(n){this.unput(this.match.slice(n))},"less"),pastInput:u(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var n=this.pastInput(),i=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
5
|
-
`+i+"^"},"showPosition"),test_match:u(function(n,i){var o,m,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),m=n[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],o=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var h in _)this[h]=_[h];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,i,o,m;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),h=0;h<_.length;h++)if(o=this._input.match(this.rules[_[h]]),o&&(!i||o[0].length>i[0].length)){if(i=o,m=h,this.options.backtrack_lexer){if(n=this.test_match(o,_[h]),n!==!1)return n;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(n=this.test_match(i,_[m]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:u(function(){var i=this.next();return i||this.lex()},"lex"),begin:u(function(i){this.conditionStack.push(i)},"begin"),popState:u(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:u(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:u(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:u(function(i){this.begin(i)},"pushState"),stateStackSize:u(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:u(function(i,o,m,_){switch(m){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return g})();b.lexer=x;function y(){this.yy={}}return u(y,"Parser"),y.prototype=b,b.Parser=y,new y})();oe.parser=oe;var ee=oe,te=[],ce=[],fe=new Map,Cf=u(()=>{te=[],ce=[],fe=new Map,Ce()},"clear"),q,Pf=(q=class{constructor(a,d,r=0){this.source=a,this.target=d,this.value=r}},u(q,"SankeyLink"),q),If=u((e,a,d)=>{te.push(new Pf(e,a,d))},"addLink"),Y,Of=(Y=class{constructor(a){this.ID=a}},u(Y,"SankeyNode"),Y),jf=u(e=>{e=Pe.sanitizeText(e,le());let a=fe.get(e);return a===void 0&&(a=new Of(e),fe.set(e,a),ce.push(a)),a},"findOrCreateNode"),zf=u(()=>ce,"getNodes"),Df=u(()=>te,"getLinks"),Bf=u(()=>({nodes:ce.map(e=>({id:e.ID})),links:te.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),"getGraph"),Ff={nodesMap:fe,getConfig:u(()=>le().sankey,"getConfig"),getNodes:zf,getLinks:Df,getGraph:Bf,addLink:If,findOrCreateNode:jf,getAccTitle:Te,setAccTitle:$e,getAccDescription:Ee,setAccDescription:Le,getDiagramTitle:Se,setDiagramTitle:Ae,clear:Cf},z,xe=(z=class{static next(a){return new z(a+ ++z.count)}constructor(a){this.id=a,this.href=`#${a}`}toString(){return"url("+this.href+")"}},u(z,"Uid"),z.count=0,z),Rf={left:uf,right:hf,center:yf,justify:ve},Vf=u(e=>{let a=0,d=0;for(const r of e){const b=r.value??0;b>a&&(a=b,d=r.layer??0)}return d},"findCentralNodeLayer"),Wf=u(function(e,a,d,r){const{securityLevel:b,sankey:x}=le(),y=Me.sankey;let g;b==="sandbox"&&(g=K("#i"+a));const n=b==="sandbox"?K(g.nodes()[0].contentDocument.body):K("body"),i=b==="sandbox"?n.select(`[id="${a}"]`):K(`[id="${a}"]`),o=x?.width??y.width,m=x?.height??y.width,_=x?.useMaxWidth??y.useMaxWidth,h=x?.nodeAlignment??y.nodeAlignment,v=x?.prefix??y.prefix,M=x?.suffix??y.suffix,T=x?.showValues??y.showValues,N=x?.nodeWidth??y.nodeWidth??10,O=x?.nodePadding??y.nodePadding??12,C=x?.labelStyle??y.labelStyle??"legacy",D=x?.nodeColors??{},S=r.db.getGraph(),P=Rf[h];kf().nodeId(f=>f.id).nodeWidth(N).nodePadding(O+(T?15:0)).nodeAlign(P).extent([[0,0],[o,m]])(S);const B=Vf(S.nodes),U=je(ze),j=u(f=>D[f]??U(f),"getNodeColor");i.append("g").attr("class","nodes").selectAll(".node").data(S.nodes).join("g").attr("class","node").attr("id",f=>(f.uid=xe.next("node-")).id).attr("transform",function(f){return"translate("+f.x0+","+f.y0+")"}).attr("x",f=>f.x0).attr("y",f=>f.y0).append("rect").attr("height",f=>f.y1-f.y0).attr("width",f=>f.x1-f.x0).attr("fill",f=>j(f.id));const F=u(({id:f,value:c})=>T?`${f}
|
|
7
|
-
${v}${Math.round(c*100)/100}${M}`:f,"getText"),L=u(f=>C==="outlined"?(f.layer??0)<B?{x:f.x0-6,anchor:"end"}:{x:f.x1+6,anchor:"start"}:f.x0<o/2?{x:f.x1+6,anchor:"start"}:{x:f.x0-6,anchor:"end"},"getLabelPosition"),I=i.append("g").attr("class","node-labels").attr("font-size",14),$=u(f=>I.selectAll(f?`.${f}`:"text").data(S.nodes).join("text").attr("class",f??null).attr("x",c=>L(c).x).attr("y",c=>(c.y1+c.y0)/2).attr("dy",`${T?"0":"0.35"}em`).attr("text-anchor",c=>L(c).anchor).text(F),"appendLabel");C==="outlined"?($("sankey-label-bg"),$("sankey-label-fg")):$();const t=i.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(S.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),l=x?.linkColor??"gradient";if(l==="gradient"){const f=t.append("linearGradient").attr("id",c=>(c.uid=xe.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",c=>c.source.x1).attr("x2",c=>c.target.x0);f.append("stop").attr("offset","0%").attr("stop-color",c=>j(c.source.id)),f.append("stop").attr("offset","100%").attr("stop-color",c=>j(c.target.id))}let s;switch(l){case"gradient":s=u(f=>f.uid,"coloring");break;case"source":s=u(f=>j(f.source.id),"coloring");break;case"target":s=u(f=>j(f.target.id),"coloring");break;default:s=l}t.append("path").attr("d",Nf()).attr("stroke",s).attr("stroke-width",f=>Math.max(1,f.width)),Ne(void 0,i,0,_)},"draw"),Gf={draw:Wf},Uf=u(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
|
-
`).trim(),"prepareTextForParsing"),qf=u(e=>`.label {
|
|
9
|
-
font-family: ${e.fontFamily};
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.node-labels {
|
|
13
|
-
font-family: ${e.fontFamily};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/* Outlined label style - background stroke for better readability */
|
|
17
|
-
.sankey-label-bg {
|
|
18
|
-
stroke: ${e.mainBkg||e.background||"#fff"};
|
|
19
|
-
stroke-width: 4px;
|
|
20
|
-
stroke-linejoin: round;
|
|
21
|
-
paint-order: stroke;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/* Foreground label text */
|
|
25
|
-
.sankey-label-fg {
|
|
26
|
-
fill: ${e.textColor};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* Node styling */
|
|
30
|
-
.node rect {
|
|
31
|
-
shape-rendering: crispEdges;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* Link styling */
|
|
35
|
-
.link {
|
|
36
|
-
fill: none;
|
|
37
|
-
stroke-opacity: 0.5;
|
|
38
|
-
mix-blend-mode: multiply;
|
|
39
|
-
}
|
|
40
|
-
`,"getStyles"),Yf=qf,Hf=ee.parse.bind(ee);ee.parse=e=>Hf(Uf(e));var Jf={styles:Yf,parser:ee,db:Ff,renderer:Gf};export{Jf as diagram};
|