@spteck/react-controls-v2 2.2.5 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -0
- package/dist/{_arrayEach-D4zuu96h.cjs → _arrayEach-CAQQp4Pa.cjs} +2 -2
- package/dist/{_arrayEach-CqFZfCII.js → _arrayEach-Cwv-C9Og.js} +2 -2
- package/dist/{arc-aQvhbW8i.js → arc-Bw6DhSi8.js} +2 -2
- package/dist/{arc-DVsLnFmY.cjs → arc-okIdGGQf.cjs} +2 -2
- package/dist/architecture-7HQA4BMR-BehZQXGM.js +6 -0
- package/dist/{architecture-7HQA4BMR-XjppxKRg.cjs → architecture-7HQA4BMR-VRHl0WAG.cjs} +2 -2
- package/dist/{architectureDiagram-VXUJARFQ-DIlvBP7n.cjs → architectureDiagram-VXUJARFQ-BmUckqP4.cjs} +2 -2
- package/dist/{architectureDiagram-VXUJARFQ-D6Nz1iJf.js → architectureDiagram-VXUJARFQ-jeJiEwo0.js} +4 -4
- package/dist/{blockDiagram-VD42YOAC-COTmdEYf.js → blockDiagram-VD42YOAC-CQMLVG9p.js} +5 -5
- package/dist/{blockDiagram-VD42YOAC-eoa5Tjmi.cjs → blockDiagram-VD42YOAC-Cf1w6RSy.cjs} +2 -2
- package/dist/{c4Diagram-YG6GDRKO-DZUAZkaf.js → c4Diagram-YG6GDRKO-DQ1DM-hS.js} +3 -3
- package/dist/{c4Diagram-YG6GDRKO-D_8NNIZj.cjs → c4Diagram-YG6GDRKO-F89ysfvk.cjs} +2 -2
- package/dist/channel-CKuBsdyV.cjs +2 -0
- package/dist/{channel-CStgee6z.js → channel-CSrapMLf.js} +2 -2
- package/dist/{chunk-4BX2VUAB-BMIPlysy.js → chunk-4BX2VUAB-BCOKb8lN.js} +2 -2
- package/dist/{chunk-4BX2VUAB-TOFCWNSm.cjs → chunk-4BX2VUAB-DguP-lnc.cjs} +2 -2
- package/dist/{chunk-55IACEB6-CVM8RfF8.js → chunk-55IACEB6-B96t1BIq.js} +2 -2
- package/dist/{chunk-55IACEB6-Du1XS8Uq.cjs → chunk-55IACEB6-CC07tSHB.cjs} +2 -2
- package/dist/{chunk-B4BG7PRW-DEwHKt7v.cjs → chunk-B4BG7PRW-Csa3ViKx.cjs} +2 -2
- package/dist/{chunk-B4BG7PRW-CrL0RwBf.js → chunk-B4BG7PRW-aK7oMSOd.js} +5 -5
- package/dist/{chunk-DI55MBZ5-Dcfk7rkk.js → chunk-DI55MBZ5-B02Dm5ea.js} +4 -4
- package/dist/{chunk-DI55MBZ5-BWCTxXqE.cjs → chunk-DI55MBZ5-Dq5Sl8zR.cjs} +2 -2
- package/dist/{chunk-FMBD7UC4-DMErx-lW.cjs → chunk-FMBD7UC4-BjhMSXjI.cjs} +2 -2
- package/dist/{chunk-FMBD7UC4-B5kmDdIm.js → chunk-FMBD7UC4-YCBHVAL4.js} +2 -2
- package/dist/{chunk-QN33PNHL-DbaaoJ4j.js → chunk-QN33PNHL-B_p3A_22.js} +2 -2
- package/dist/{chunk-QN33PNHL-CkT5TAcW.cjs → chunk-QN33PNHL-DCv_ieMX.cjs} +2 -2
- package/dist/{chunk-QZHKN3VN-CMS4Eu2L.cjs → chunk-QZHKN3VN-BFRx9G0z.cjs} +2 -2
- package/dist/{chunk-QZHKN3VN-BsktB_nO.js → chunk-QZHKN3VN-DRLEsMJj.js} +2 -2
- package/dist/{chunk-TZMSLE5B-lGq5Y0nP.cjs → chunk-TZMSLE5B-DZUorszs.cjs} +2 -2
- package/dist/{chunk-TZMSLE5B-CbhkmL3S.js → chunk-TZMSLE5B-DmeaE6Eh.js} +2 -2
- package/dist/{classDiagram-2ON5EDUG-ChI1HQhB.cjs → classDiagram-2ON5EDUG-BmFRijDQ.cjs} +2 -2
- package/dist/{classDiagram-2ON5EDUG-CtIswLAU.js → classDiagram-2ON5EDUG-DW2aCkne.js} +3 -3
- package/dist/{classDiagram-v2-WZHVMYZB-ChI1HQhB.cjs → classDiagram-v2-WZHVMYZB-BmFRijDQ.cjs} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-CtIswLAU.js → classDiagram-v2-WZHVMYZB-DW2aCkne.js} +3 -3
- package/dist/components/worldMap/data.d.ts +2 -2
- package/dist/{cose-bilkent-S5V4N54A-CC01Tkem.cjs → cose-bilkent-S5V4N54A-CDJnP_Yk.cjs} +2 -2
- package/dist/{cose-bilkent-S5V4N54A-DzADNsjH.js → cose-bilkent-S5V4N54A-CnTvq6wx.js} +2 -2
- package/dist/{dagre-6UL2VRFP-CDYaaqiU.cjs → dagre-6UL2VRFP-BTjEhGrQ.cjs} +2 -2
- package/dist/{dagre-6UL2VRFP-ybWMcc5w.js → dagre-6UL2VRFP-D4KyzrI8.js} +2 -2
- package/dist/{diagram-PSM6KHXK-CbgHTYSR.js → diagram-PSM6KHXK-CIMfiYz7.js} +5 -5
- package/dist/{diagram-PSM6KHXK-DqhM0iw7.cjs → diagram-PSM6KHXK-H6bEKZLm.cjs} +2 -2
- package/dist/{diagram-QEK2KX5R-CNed7b76.js → diagram-QEK2KX5R-BzuMWDt6.js} +4 -4
- package/dist/{diagram-QEK2KX5R-UQaqb5nU.cjs → diagram-QEK2KX5R-DsFIAL3v.cjs} +2 -2
- package/dist/{diagram-S2PKOQOG-OdSmYpDj.cjs → diagram-S2PKOQOG-CTLNC-Iz.cjs} +2 -2
- package/dist/{diagram-S2PKOQOG-BYSFHhaj.js → diagram-S2PKOQOG-CYvdKVYZ.js} +4 -4
- package/dist/{erDiagram-Q2GNP2WA-D6Xk9c-u.cjs → erDiagram-Q2GNP2WA-B8Cby2EW.cjs} +2 -2
- package/dist/{erDiagram-Q2GNP2WA-l9zKKI29.js → erDiagram-Q2GNP2WA-BcW11SJy.js} +5 -5
- package/dist/{flowDiagram-NV44I4VS-B-5P4uRf.cjs → flowDiagram-NV44I4VS-D447_R3t.cjs} +2 -2
- package/dist/{flowDiagram-NV44I4VS-qlSwOj8Q.js → flowDiagram-NV44I4VS-DEAvKwa7.js} +6 -6
- package/dist/{ganttDiagram-JELNMOA3-BvXDYjE1.cjs → ganttDiagram-JELNMOA3-BHGSOmkk.cjs} +2 -2
- package/dist/{ganttDiagram-JELNMOA3-i4-qMitb.js → ganttDiagram-JELNMOA3-nAqZzkfj.js} +3 -3
- package/dist/gitGraph-G5XIXVHT-BPiaST9T.js +6 -0
- package/dist/{gitGraph-G5XIXVHT-BdOKVbYt.cjs → gitGraph-G5XIXVHT-D0HIYGjj.cjs} +2 -2
- package/dist/{gitGraphDiagram-V2S2FVAM-BFlWQFzy.js → gitGraphDiagram-V2S2FVAM-Bz64qMJx.js} +5 -5
- package/dist/{gitGraphDiagram-V2S2FVAM-DStoHbQA.cjs → gitGraphDiagram-V2S2FVAM-BzDdhr7h.cjs} +2 -2
- package/dist/{index-H1wV1Hpq.js → index-C-Hyw7_i.js} +39 -32
- package/dist/{index-D7xz2-Uy.cjs → index-D5nkqpSD.cjs} +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/info-VBDWY6EO-BLmqoE1d.js +6 -0
- package/dist/{info-VBDWY6EO-D_RrmivC.cjs → info-VBDWY6EO-D5dR6PPz.cjs} +2 -2
- package/dist/{infoDiagram-HS3SLOUP-BnevWU-I.cjs → infoDiagram-HS3SLOUP-Bs3peWgl.cjs} +2 -2
- package/dist/{infoDiagram-HS3SLOUP-BZK0euSr.js → infoDiagram-HS3SLOUP-DDgg8QyI.js} +3 -3
- package/dist/{journeyDiagram-XKPGCS4Q-itaMgi9U.js → journeyDiagram-XKPGCS4Q-COvGJw7y.js} +5 -5
- package/dist/{journeyDiagram-XKPGCS4Q-BODApzJb.cjs → journeyDiagram-XKPGCS4Q-DQFssTKA.cjs} +2 -2
- package/dist/{kanban-definition-3W4ZIXB7-DX8gChMt.js → kanban-definition-3W4ZIXB7-Bm4Nfy8N.js} +3 -3
- package/dist/{kanban-definition-3W4ZIXB7-BY1oKhQF.cjs → kanban-definition-3W4ZIXB7-CQiLQ-MZ.cjs} +2 -2
- package/dist/{linear-cXEFiojf.cjs → linear-CRUR7yE8.cjs} +2 -2
- package/dist/{linear-Pcf3i3zp.js → linear-QB06oWOn.js} +2 -2
- package/dist/{maplibre-gl-BdoOI0bI.cjs → maplibre-gl-BkWxiGfO.cjs} +2 -2
- package/dist/{maplibre-gl-KdF6druQ.js → maplibre-gl-CouexcMM.js} +2 -2
- package/dist/{mermaid-parser.core-Dr6wdKdo.cjs → mermaid-parser.core-BDJaQNLh.cjs} +2 -2
- package/dist/{mermaid-parser.core-B7B_q9yz.js → mermaid-parser.core-DjEhyqCt.js} +2413 -2473
- package/dist/{mindmap-definition-VGOIOE7T-BWtHcwxS.cjs → mindmap-definition-VGOIOE7T-C7Scfjt5.cjs} +2 -2
- package/dist/{mindmap-definition-VGOIOE7T-DB1ivc4U.js → mindmap-definition-VGOIOE7T-Cq5vQrhh.js} +4 -4
- package/dist/{packet-DYOGHKS2-Bc88puEA.cjs → packet-DYOGHKS2-CR7ugQ48.cjs} +2 -2
- package/dist/packet-DYOGHKS2-DYJFb4dv.js +6 -0
- package/dist/{pie-VRWISCQL-BDZOt1dn.cjs → pie-VRWISCQL-BXJW8jKm.cjs} +2 -2
- package/dist/pie-VRWISCQL-Dx65A3Fo.js +6 -0
- package/dist/{pieDiagram-ADFJNKIX-rHRiRGIK.js → pieDiagram-ADFJNKIX-5iZzSJ8R.js} +5 -5
- package/dist/{pieDiagram-ADFJNKIX-BExkCjtp.cjs → pieDiagram-ADFJNKIX-D9M6lhX5.cjs} +2 -2
- package/dist/{quadrantDiagram-AYHSOK5B-Dn_KGYm_.cjs → quadrantDiagram-AYHSOK5B-DDWEpiLt.cjs} +2 -2
- package/dist/{quadrantDiagram-AYHSOK5B-CkVTfka1.js → quadrantDiagram-AYHSOK5B-DG8iuyyj.js} +3 -3
- package/dist/radar-ZZBFDIW7-BAmnMK3b.js +6 -0
- package/dist/{radar-ZZBFDIW7-CN4CW1Sn.cjs → radar-ZZBFDIW7-DvMtYd_q.cjs} +2 -2
- package/dist/{requirementDiagram-UZGBJVZJ-DjP_ZBLH.js → requirementDiagram-UZGBJVZJ-CE1BWtzG.js} +4 -4
- package/dist/{requirementDiagram-UZGBJVZJ-Cnr0krQo.cjs → requirementDiagram-UZGBJVZJ-D8SeZ83D.cjs} +2 -2
- package/dist/{sankeyDiagram-TZEHDZUN-hSdLQwtC.cjs → sankeyDiagram-TZEHDZUN-DM5sLVVS.cjs} +2 -2
- package/dist/{sankeyDiagram-TZEHDZUN-anjZuu_D.js → sankeyDiagram-TZEHDZUN-DtBDd9Wm.js} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-DmCBPiOU.cjs → sequenceDiagram-WL72ISMW-BpCabHUR.cjs} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-CVybpZao.js → sequenceDiagram-WL72ISMW-BuykUiJg.js} +4 -4
- package/dist/{stateDiagram-FKZM4ZOC-CkrSnJVo.js → stateDiagram-FKZM4ZOC-D7OtXC8o.js} +3 -3
- package/dist/{stateDiagram-FKZM4ZOC-Dkv9EsDA.cjs → stateDiagram-FKZM4ZOC-cgi0ko-6.cjs} +2 -2
- package/dist/{stateDiagram-v2-4FDKWEC3-ClwE0oA4.cjs → stateDiagram-v2-4FDKWEC3-BGbtkwft.cjs} +2 -2
- package/dist/{stateDiagram-v2-4FDKWEC3-Cqvjxhmg.js → stateDiagram-v2-4FDKWEC3-ljhXua2L.js} +3 -3
- package/dist/{timeline-definition-IT6M3QCI-BVqV4KxZ.js → timeline-definition-IT6M3QCI-BSCNhkIf.js} +3 -3
- package/dist/{timeline-definition-IT6M3QCI-C-NbrBWK.cjs → timeline-definition-IT6M3QCI-DONwhI2c.cjs} +2 -2
- package/dist/{treemap-GDKQZRPO-DPSTeBWV.cjs → treemap-GDKQZRPO-C_BDlIt0.cjs} +2 -2
- package/dist/treemap-GDKQZRPO-DMDbGTv6.js +6 -0
- package/dist/{xychartDiagram-PRI3JC2R-ByRfiz5K.js → xychartDiagram-PRI3JC2R-CK1p_aA_.js} +3 -3
- package/dist/{xychartDiagram-PRI3JC2R-ClwDpfOS.cjs → xychartDiagram-PRI3JC2R-s6lxWNao.cjs} +2 -2
- package/package.json +1 -1
- package/dist/architecture-7HQA4BMR-B7-h10Im.js +0 -6
- package/dist/channel-B1SMUhi0.cjs +0 -2
- package/dist/gitGraph-G5XIXVHT-o_QJiZO1.js +0 -6
- package/dist/info-VBDWY6EO-C4My0e3p.js +0 -6
- package/dist/packet-DYOGHKS2-C_QHQq0u.js +0 -6
- package/dist/pie-VRWISCQL-DHWh56U-.js +0 -6
- package/dist/radar-ZZBFDIW7-HmbC_3ms.js +0 -6
- package/dist/treemap-GDKQZRPO-CGArjxOL.js +0 -6
package/dist/{mindmap-definition-VGOIOE7T-BWtHcwxS.cjs → mindmap-definition-VGOIOE7T-C7Scfjt5.cjs}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./chunk-55IACEB6-Du1XS8Uq.cjs"),n=require("./chunk-QN33PNHL-CkT5TAcW.cjs"),i=require("./index-D7xz2-Uy.cjs"),s=[];for(let _=0;_<256;++_)s.push((_+256).toString(16).slice(1));let r;const o=new Uint8Array(16);const a={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function c(e,t,n){var i;if(a.randomUUID&&!e)return a.randomUUID();const c=(e=e||{}).random??(null==(i=e.rng)?void 0:i.call(e))??function(){if(!r){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(o)}();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=15&c[6]|64,c[8]=63&c[8]|128,function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(c)}var l=function(){var e=i.__name(function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},"o"),t=[1,4],n=[1,13],s=[1,12],r=[1,15],o=[1,16],a=[1,20],c=[1,19],l=[6,7,8],h=[1,26],d=[1,24],g=[1,25],u=[6,7,11],p=[1,6,13,15,16,19,22],y=[1,33],m=[1,34],_=[1,6,7,11,13,15,16,19,22],f={trace:i.__name(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:i.__name(function(e,t,n,i,s,r,o){var a=r.length-1;switch(s){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",r[a].id),i.addNode(r[a-1].length,r[a].id,r[a].descr,r[a].type);break;case 16:i.getLogger().trace("Icon: ",r[a]),i.decorateNode({icon:r[a]});break;case 17:case 21:i.decorateNode({class:r[a]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",r[a].id),i.addNode(0,r[a].id,r[a].descr,r[a].type);break;case 20:i.decorateNode({icon:r[a]});break;case 25:i.getLogger().trace("node found ..",r[a-2]),this.$={id:r[a-1],descr:r[a-1],type:i.getType(r[a-2],r[a])};break;case 26:this.$={id:r[a],descr:r[a],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",r[a-3]),this.$={id:r[a-3],descr:r[a-1],type:i.getType(r[a-2],r[a])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:s,14:14,15:r,16:o,17:17,18:18,19:a,22:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:s,14:14,15:r,16:o,17:17,18:18,19:a,22:c},{6:n,9:22,12:11,13:s,14:14,15:r,16:o,17:17,18:18,19:a,22:c},{6:h,7:d,10:23,11:g},e(u,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:a,22:c}),e(u,[2,18]),e(u,[2,19]),e(u,[2,20]),e(u,[2,21]),e(u,[2,23]),e(u,[2,24]),e(u,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:d,10:32,11:g},{1:[2,7],6:n,12:21,13:s,14:14,15:r,16:o,17:17,18:18,19:a,22:c},e(p,[2,14],{7:y,11:m}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(u,[2,15]),e(u,[2,16]),e(u,[2,17]),{20:[1,35]},{21:[1,36]},e(p,[2,13],{7:y,11:m}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(u,[2,25]),e(u,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:i.__name(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:i.__name(function(e){var t=this,n=[0],s=[],r=[null],o=[],a=this.table,c="",l=0,h=0,d=o.slice.call(arguments,1),g=Object.create(this.lexer),u={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(u.yy[p]=this.yy[p]);g.setInput(e,u.yy),u.yy.lexer=g,u.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var y=g.yylloc;o.push(y);var m=g.options&&g.options.ranges;function _(){var e;return"number"!=typeof(e=s.pop()||g.lex()||1)&&(e instanceof Array&&(e=(s=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i.__name(function(e){n.length=n.length-2*e,r.length=r.length-e,o.length=o.length-e},"popStack"),i.__name(_,"lex");for(var f,E,b,S,N,k,L,D,v={};;){if(E=n[n.length-1],this.defaultActions[E]?b=this.defaultActions[E]:(null==f&&(f=_()),b=a[E]&&a[E][f]),void 0===b||!b.length||!b[0]){var x="";for(N in D=[],a[E])this.terminals_[N]&&N>2&&D.push("'"+this.terminals_[N]+"'");x=g.showPosition?"Parse error on line "+(l+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(x,{text:g.match,token:this.terminals_[f]||f,line:g.yylineno,loc:y,expected:D})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+f);switch(b[0]){case 1:n.push(f),r.push(g.yytext),o.push(g.yylloc),n.push(b[1]),f=null,h=g.yyleng,c=g.yytext,l=g.yylineno,y=g.yylloc;break;case 2:if(k=this.productions_[b[1]][1],v.$=r[r.length-k],v._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},m&&(v._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(S=this.performAction.apply(v,[c,h,l,u.yy,b[1],r,o].concat(d))))return S;k&&(n=n.slice(0,-1*k*2),r=r.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[b[1]][0]),r.push(v.$),o.push(v._$),L=a[n[n.length-2]][n[n.length-1]],n.push(L);break;case 3:return!0}}return!0},"parse")},E=function(){return{EOF:1,parseError:i.__name(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:i.__name(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:i.__name(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:i.__name(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i.__name(function(e){this.unput(this.match.slice(e))},"less"),pastInput:i.__name(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:i.__name(function(e,t){var n,i,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))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1},"test_match"),next:i.__name(function(){if(this.done)return this.EOF;var e,t,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=r,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,s[r])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i.__name(function(){var e=this.next();return e||this.lex()},"lex"),begin:i.__name(function(e){this.conditionStack.push(e)},"begin"),popState:i.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i.__name(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:i.__name(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:i.__name(function(e){this.begin(e)},"pushState"),stateStackSize:i.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i.__name(function(e,t,n,i){switch(n){case 0:return e.getLogger().trace("Found comment",t.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16: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 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return e.getLogger().trace("Long description:",t.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}}}}();function b(){this.yy={}}return f.lexer=E,i.__name(b,"Parser"),b.prototype=f,f.Parser=b,new b}();l.parser=l;var h=l,d={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},g=(e=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=d,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 t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,t,n,s){var r,o;i.log.info("addNode",e,t,n,s);let a=!1;0===this.nodes.length?(this.baseLevel=e,e=0,a=!0):void 0!==this.baseLevel&&(e-=this.baseLevel,a=!1);const c=i.getConfig2();let l=(null==(r=c.mindmap)?void 0:r.padding)??i.defaultConfig_default.mindmap.padding;switch(s){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:l*=2}const h={id:this.count++,nodeId:i.sanitizeText(t,c),level:e,descr:i.sanitizeText(n,c),type:s,children:[],width:(null==(o=c.mindmap)?void 0:o.maxNodeWidth)??i.defaultConfig_default.mindmap.maxNodeWidth,padding:l,isRoot:a},d=this.getParent(e);if(d)d.children.push(h),this.nodes.push(h);else{if(!a)throw new Error(`There can be only one root. No parent could be found for ("${h.descr}")`);this.nodes.push(h)}}getType(e,t){switch(i.log.debug("In get type",e,t),e){case"[":return this.nodeType.RECT;case"(":return")"===t?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,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const t=i.getConfig2(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=i.sanitizeText(e.icon,t)),e.class&&(n.class=i.sanitizeText(e.class,t))}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,t){if(0===e.level?e.section=void 0:e.section=t,e.children)for(const[n,i]of e.children.entries()){const s=0===e.level?n:t;this.assignSections(i,s)}}flattenNodes(e,t){const n=["mindmap-node"];!0===e.isRoot?n.push("section-root","section--1"):void 0!==e.section&&n.push(`section-${e.section}`),e.class&&n.push(e.class);const s=n.join(" "),r=i.__name(e=>{switch(e){case d.CIRCLE:return"mindmapCircle";case d.RECT:return"rect";case d.ROUNDED_RECT:return"rounded";case d.CLOUD:return"cloud";case d.BANG:return"bang";case d.HEXAGON:return"hexagon";case d.DEFAULT:return"defaultMindmapNode";default:return"rect"}},"getShapeFromType"),o={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,isGroup:!1,shape:r(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:s,cssStyles:[],look:"default",icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(t.push(o),e.children)for(const i of e.children)this.flattenNodes(i,t)}generateEdges(e,t){if(e.children)for(const n of e.children){let i="edge";void 0!==n.section&&(i+=` section-edge-${n.section}`);i+=` edge-depth-${e.level+1}`;const s={id:`edge_${e.id}_${n.id}`,start:e.id.toString(),end:n.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:i,depth:e.level,section:n.section};t.push(s),this.generateEdges(n,t)}}getData(){const e=this.getMindmap(),t=i.getConfig2(),n=t;if(void 0!==i.getUserDefinedConfig().layout||(n.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:n};i.log.debug("getData: mindmapRoot",e,t),this.assignSections(e);const s=[],r=[];this.flattenNodes(e,s),this.generateEdges(e,r),i.log.debug(`getData: processed ${s.length} nodes and ${r.length} edges`);const o=new Map;for(const i of s)o.set(i.id,{shape:i.shape,width:i.width,height:i.height,padding:i.padding});return{nodes:s,edges:r,config:n,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(o),type:"mindmap",diagramId:"mindmap-"+c()}}getLogger(){return i.log}},i.__name(e,"MindmapDB"),e),u={draw:i.__name(async(e,s,r,o)=>{var a,c;i.log.debug("Rendering mindmap diagram\n"+e);const l=o.db,h=l.getData(),d=t.getDiagramElement(s,h.config.securityLevel);h.type=o.type,h.layoutAlgorithm=i.getRegisteredLayoutAlgorithm(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=s;l.getMindmap()&&(h.nodes.forEach(e=>{"rounded"===e.shape?(e.radius=15,e.taper=15,e.stroke="none",e.width=0,e.padding=15):"circle"===e.shape?e.padding=10:"rect"===e.shape&&(e.width=0,e.padding=10)}),await i.render(h,d),n.setupViewPortForSVG(d,(null==(a=h.config.mindmap)?void 0:a.padding)??i.defaultConfig_default.mindmap.padding,"mindmapDiagram",(null==(c=h.config.mindmap)?void 0:c.useMaxWidth)??i.defaultConfig_default.mindmap.useMaxWidth))},"draw")},p=i.__name(e=>{let t="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)e["lineColor"+n]=e["lineColor"+n]||e["cScaleInv"+n],i.isDark(e["lineColor"+n])?e["lineColor"+n]=i.lighten(e["lineColor"+n],20):e["lineColor"+n]=i.darken(e["lineColor"+n],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);t+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {\n fill: ${e["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${e["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${e["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${e["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${i};\n }\n .section-${n-1} line {\n stroke: ${e["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n `}return t},"genSections"),y=i.__name(e=>`\n .edge {\n stroke-width: 3;\n }\n ${p(e)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${e.git0};\n }\n .section-root text {\n fill: ${e.gitBranchLabel0};\n }\n .section-root span {\n color: ${e.gitBranchLabel0};\n }\n .section-2 span {\n color: ${e.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .mindmap-node-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n`,"getStyles"),m={get db(){return new g},renderer:u,parser:h,styles:y};exports.diagram=m;
|
|
2
|
-
//# sourceMappingURL=mindmap-definition-VGOIOE7T-
|
|
1
|
+
"use strict";var e;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./chunk-55IACEB6-CC07tSHB.cjs"),n=require("./chunk-QN33PNHL-DCv_ieMX.cjs"),i=require("./index-D5nkqpSD.cjs"),s=[];for(let _=0;_<256;++_)s.push((_+256).toString(16).slice(1));let r;const o=new Uint8Array(16);const a={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function c(e,t,n){var i;if(a.randomUUID&&!e)return a.randomUUID();const c=(e=e||{}).random??(null==(i=e.rng)?void 0:i.call(e))??function(){if(!r){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(o)}();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=15&c[6]|64,c[8]=63&c[8]|128,function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(c)}var l=function(){var e=i.__name(function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},"o"),t=[1,4],n=[1,13],s=[1,12],r=[1,15],o=[1,16],a=[1,20],c=[1,19],l=[6,7,8],h=[1,26],d=[1,24],g=[1,25],u=[6,7,11],p=[1,6,13,15,16,19,22],y=[1,33],m=[1,34],_=[1,6,7,11,13,15,16,19,22],f={trace:i.__name(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:i.__name(function(e,t,n,i,s,r,o){var a=r.length-1;switch(s){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",r[a].id),i.addNode(r[a-1].length,r[a].id,r[a].descr,r[a].type);break;case 16:i.getLogger().trace("Icon: ",r[a]),i.decorateNode({icon:r[a]});break;case 17:case 21:i.decorateNode({class:r[a]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",r[a].id),i.addNode(0,r[a].id,r[a].descr,r[a].type);break;case 20:i.decorateNode({icon:r[a]});break;case 25:i.getLogger().trace("node found ..",r[a-2]),this.$={id:r[a-1],descr:r[a-1],type:i.getType(r[a-2],r[a])};break;case 26:this.$={id:r[a],descr:r[a],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",r[a-3]),this.$={id:r[a-3],descr:r[a-1],type:i.getType(r[a-2],r[a])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:s,14:14,15:r,16:o,17:17,18:18,19:a,22:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:s,14:14,15:r,16:o,17:17,18:18,19:a,22:c},{6:n,9:22,12:11,13:s,14:14,15:r,16:o,17:17,18:18,19:a,22:c},{6:h,7:d,10:23,11:g},e(u,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:a,22:c}),e(u,[2,18]),e(u,[2,19]),e(u,[2,20]),e(u,[2,21]),e(u,[2,23]),e(u,[2,24]),e(u,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:d,10:32,11:g},{1:[2,7],6:n,12:21,13:s,14:14,15:r,16:o,17:17,18:18,19:a,22:c},e(p,[2,14],{7:y,11:m}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(u,[2,15]),e(u,[2,16]),e(u,[2,17]),{20:[1,35]},{21:[1,36]},e(p,[2,13],{7:y,11:m}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(u,[2,25]),e(u,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:i.__name(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:i.__name(function(e){var t=this,n=[0],s=[],r=[null],o=[],a=this.table,c="",l=0,h=0,d=o.slice.call(arguments,1),g=Object.create(this.lexer),u={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(u.yy[p]=this.yy[p]);g.setInput(e,u.yy),u.yy.lexer=g,u.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var y=g.yylloc;o.push(y);var m=g.options&&g.options.ranges;function _(){var e;return"number"!=typeof(e=s.pop()||g.lex()||1)&&(e instanceof Array&&(e=(s=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i.__name(function(e){n.length=n.length-2*e,r.length=r.length-e,o.length=o.length-e},"popStack"),i.__name(_,"lex");for(var f,E,b,S,N,k,L,D,v={};;){if(E=n[n.length-1],this.defaultActions[E]?b=this.defaultActions[E]:(null==f&&(f=_()),b=a[E]&&a[E][f]),void 0===b||!b.length||!b[0]){var x="";for(N in D=[],a[E])this.terminals_[N]&&N>2&&D.push("'"+this.terminals_[N]+"'");x=g.showPosition?"Parse error on line "+(l+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(x,{text:g.match,token:this.terminals_[f]||f,line:g.yylineno,loc:y,expected:D})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+f);switch(b[0]){case 1:n.push(f),r.push(g.yytext),o.push(g.yylloc),n.push(b[1]),f=null,h=g.yyleng,c=g.yytext,l=g.yylineno,y=g.yylloc;break;case 2:if(k=this.productions_[b[1]][1],v.$=r[r.length-k],v._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},m&&(v._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(S=this.performAction.apply(v,[c,h,l,u.yy,b[1],r,o].concat(d))))return S;k&&(n=n.slice(0,-1*k*2),r=r.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[b[1]][0]),r.push(v.$),o.push(v._$),L=a[n[n.length-2]][n[n.length-1]],n.push(L);break;case 3:return!0}}return!0},"parse")},E=function(){return{EOF:1,parseError:i.__name(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:i.__name(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:i.__name(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:i.__name(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i.__name(function(e){this.unput(this.match.slice(e))},"less"),pastInput:i.__name(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:i.__name(function(e,t){var n,i,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))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1},"test_match"),next:i.__name(function(){if(this.done)return this.EOF;var e,t,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=r,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,s[r])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i.__name(function(){var e=this.next();return e||this.lex()},"lex"),begin:i.__name(function(e){this.conditionStack.push(e)},"begin"),popState:i.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i.__name(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:i.__name(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:i.__name(function(e){this.begin(e)},"pushState"),stateStackSize:i.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i.__name(function(e,t,n,i){switch(n){case 0:return e.getLogger().trace("Found comment",t.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16: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 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return e.getLogger().trace("Long description:",t.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}}}}();function b(){this.yy={}}return f.lexer=E,i.__name(b,"Parser"),b.prototype=f,f.Parser=b,new b}();l.parser=l;var h=l,d={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},g=(e=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=d,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 t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,t,n,s){var r,o;i.log.info("addNode",e,t,n,s);let a=!1;0===this.nodes.length?(this.baseLevel=e,e=0,a=!0):void 0!==this.baseLevel&&(e-=this.baseLevel,a=!1);const c=i.getConfig2();let l=(null==(r=c.mindmap)?void 0:r.padding)??i.defaultConfig_default.mindmap.padding;switch(s){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:l*=2}const h={id:this.count++,nodeId:i.sanitizeText(t,c),level:e,descr:i.sanitizeText(n,c),type:s,children:[],width:(null==(o=c.mindmap)?void 0:o.maxNodeWidth)??i.defaultConfig_default.mindmap.maxNodeWidth,padding:l,isRoot:a},d=this.getParent(e);if(d)d.children.push(h),this.nodes.push(h);else{if(!a)throw new Error(`There can be only one root. No parent could be found for ("${h.descr}")`);this.nodes.push(h)}}getType(e,t){switch(i.log.debug("In get type",e,t),e){case"[":return this.nodeType.RECT;case"(":return")"===t?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,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const t=i.getConfig2(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=i.sanitizeText(e.icon,t)),e.class&&(n.class=i.sanitizeText(e.class,t))}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,t){if(0===e.level?e.section=void 0:e.section=t,e.children)for(const[n,i]of e.children.entries()){const s=0===e.level?n:t;this.assignSections(i,s)}}flattenNodes(e,t){const n=["mindmap-node"];!0===e.isRoot?n.push("section-root","section--1"):void 0!==e.section&&n.push(`section-${e.section}`),e.class&&n.push(e.class);const s=n.join(" "),r=i.__name(e=>{switch(e){case d.CIRCLE:return"mindmapCircle";case d.RECT:return"rect";case d.ROUNDED_RECT:return"rounded";case d.CLOUD:return"cloud";case d.BANG:return"bang";case d.HEXAGON:return"hexagon";case d.DEFAULT:return"defaultMindmapNode";default:return"rect"}},"getShapeFromType"),o={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,isGroup:!1,shape:r(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:s,cssStyles:[],look:"default",icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(t.push(o),e.children)for(const i of e.children)this.flattenNodes(i,t)}generateEdges(e,t){if(e.children)for(const n of e.children){let i="edge";void 0!==n.section&&(i+=` section-edge-${n.section}`);i+=` edge-depth-${e.level+1}`;const s={id:`edge_${e.id}_${n.id}`,start:e.id.toString(),end:n.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:i,depth:e.level,section:n.section};t.push(s),this.generateEdges(n,t)}}getData(){const e=this.getMindmap(),t=i.getConfig2(),n=t;if(void 0!==i.getUserDefinedConfig().layout||(n.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:n};i.log.debug("getData: mindmapRoot",e,t),this.assignSections(e);const s=[],r=[];this.flattenNodes(e,s),this.generateEdges(e,r),i.log.debug(`getData: processed ${s.length} nodes and ${r.length} edges`);const o=new Map;for(const i of s)o.set(i.id,{shape:i.shape,width:i.width,height:i.height,padding:i.padding});return{nodes:s,edges:r,config:n,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(o),type:"mindmap",diagramId:"mindmap-"+c()}}getLogger(){return i.log}},i.__name(e,"MindmapDB"),e),u={draw:i.__name(async(e,s,r,o)=>{var a,c;i.log.debug("Rendering mindmap diagram\n"+e);const l=o.db,h=l.getData(),d=t.getDiagramElement(s,h.config.securityLevel);h.type=o.type,h.layoutAlgorithm=i.getRegisteredLayoutAlgorithm(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=s;l.getMindmap()&&(h.nodes.forEach(e=>{"rounded"===e.shape?(e.radius=15,e.taper=15,e.stroke="none",e.width=0,e.padding=15):"circle"===e.shape?e.padding=10:"rect"===e.shape&&(e.width=0,e.padding=10)}),await i.render(h,d),n.setupViewPortForSVG(d,(null==(a=h.config.mindmap)?void 0:a.padding)??i.defaultConfig_default.mindmap.padding,"mindmapDiagram",(null==(c=h.config.mindmap)?void 0:c.useMaxWidth)??i.defaultConfig_default.mindmap.useMaxWidth))},"draw")},p=i.__name(e=>{let t="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)e["lineColor"+n]=e["lineColor"+n]||e["cScaleInv"+n],i.isDark(e["lineColor"+n])?e["lineColor"+n]=i.lighten(e["lineColor"+n],20):e["lineColor"+n]=i.darken(e["lineColor"+n],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);t+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {\n fill: ${e["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${e["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${e["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${e["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${i};\n }\n .section-${n-1} line {\n stroke: ${e["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n `}return t},"genSections"),y=i.__name(e=>`\n .edge {\n stroke-width: 3;\n }\n ${p(e)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${e.git0};\n }\n .section-root text {\n fill: ${e.gitBranchLabel0};\n }\n .section-root span {\n color: ${e.gitBranchLabel0};\n }\n .section-2 span {\n color: ${e.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .mindmap-node-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n`,"getStyles"),m={get db(){return new g},renderer:u,parser:h,styles:y};exports.diagram=m;
|
|
2
|
+
//# sourceMappingURL=mindmap-definition-VGOIOE7T-C7Scfjt5.cjs.map
|
package/dist/{mindmap-definition-VGOIOE7T-DB1ivc4U.js → mindmap-definition-VGOIOE7T-Cq5vQrhh.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _a;
|
|
2
|
-
import { g as getDiagramElement } from "./chunk-55IACEB6-
|
|
3
|
-
import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-
|
|
4
|
-
import { _ as __name, l as log, p as getRegisteredLayoutAlgorithm, r as render, H as defaultConfig_default, c as getConfig2, i as sanitizeText, ay as getUserDefinedConfig, ad as isDark, ae as lighten, af as darken } from "./index-
|
|
2
|
+
import { g as getDiagramElement } from "./chunk-55IACEB6-B96t1BIq.js";
|
|
3
|
+
import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-B_p3A_22.js";
|
|
4
|
+
import { _ as __name, l as log, p as getRegisteredLayoutAlgorithm, r as render, H as defaultConfig_default, c as getConfig2, i as sanitizeText, ay as getUserDefinedConfig, ad as isDark, ae as lighten, af as darken } from "./index-C-Hyw7_i.js";
|
|
5
5
|
const byteToHex = [];
|
|
6
6
|
for (let i = 0; i < 256; ++i) {
|
|
7
7
|
byteToHex.push((i + 256).toString(16).slice(1));
|
|
@@ -1126,4 +1126,4 @@ var diagram = {
|
|
|
1126
1126
|
export {
|
|
1127
1127
|
diagram
|
|
1128
1128
|
};
|
|
1129
|
-
//# sourceMappingURL=mindmap-definition-VGOIOE7T-
|
|
1129
|
+
//# sourceMappingURL=mindmap-definition-VGOIOE7T-Cq5vQrhh.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
2
|
-
//# sourceMappingURL=packet-DYOGHKS2-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-BDJaQNLh.cjs");exports.PacketModule=e.PacketModule,exports.createPacketServices=e.createPacketServices;
|
|
2
|
+
//# sourceMappingURL=packet-DYOGHKS2-CR7ugQ48.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
2
|
-
//# sourceMappingURL=pie-VRWISCQL-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-BDJaQNLh.cjs");exports.PieModule=e.PieModule,exports.createPieServices=e.createPieServices;
|
|
2
|
+
//# sourceMappingURL=pie-VRWISCQL-BXJW8jKm.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as constant, P as tau, ax as array, _ as __name, g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, t as getDiagramTitle, q as setDiagramTitle, l as log, c as getConfig2$1, F as cleanAndMerge, K as selectSvgElement, a4 as parseFontSize, e as configureSvgSize, z as clear, H as defaultConfig_default } from "./index-
|
|
2
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as parse } from "./mermaid-parser.core-
|
|
4
|
-
import { d as d3arc } from "./arc-
|
|
1
|
+
import { V as constant, P as tau, ax as array, _ as __name, g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, t as getDiagramTitle, q as setDiagramTitle, l as log, c as getConfig2$1, F as cleanAndMerge, K as selectSvgElement, a4 as parseFontSize, e as configureSvgSize, z as clear, H as defaultConfig_default } from "./index-C-Hyw7_i.js";
|
|
2
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-BCOKb8lN.js";
|
|
3
|
+
import { p as parse } from "./mermaid-parser.core-DjEhyqCt.js";
|
|
4
|
+
import { d as d3arc } from "./arc-Bw6DhSi8.js";
|
|
5
5
|
import { o as ordinal } from "./ordinal-DSZU4PqD.js";
|
|
6
6
|
function descending(a, b) {
|
|
7
7
|
return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
|
@@ -235,4 +235,4 @@ var diagram = {
|
|
|
235
235
|
export {
|
|
236
236
|
diagram
|
|
237
237
|
};
|
|
238
|
-
//# sourceMappingURL=pieDiagram-ADFJNKIX-
|
|
238
|
+
//# sourceMappingURL=pieDiagram-ADFJNKIX-5iZzSJ8R.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=pieDiagram-ADFJNKIX-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D5nkqpSD.cjs"),t=require("./chunk-4BX2VUAB-DguP-lnc.cjs"),n=require("./mermaid-parser.core-BDJaQNLh.cjs"),a=require("./arc-okIdGGQf.cjs"),i=require("./ordinal-BZdahNih.cjs");function r(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function l(e){return e}var o=e.defaultConfig_default.pie,s={sections:new Map,showData:!1},c=s.sections,u=s.showData,p=structuredClone(o),d=e.__name(()=>structuredClone(p),"getConfig"),g=e.__name(()=>{c=new Map,u=s.showData,e.clear()},"clear"),f=e.__name(({label:t,value:n})=>{if(n<0)throw new Error(`"${t}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);c.has(t)||(c.set(t,n),e.log.debug(`added new section: ${t}, with value: ${n}`))},"addSection"),h=e.__name(()=>c,"getSections"),m=e.__name(e=>{u=e},"setShowData"),x=e.__name(()=>u,"getShowData"),y={getConfig:d,clear:g,setDiagramTitle:e.setDiagramTitle,getDiagramTitle:e.getDiagramTitle,setAccTitle:e.setAccTitle,getAccTitle:e.getAccTitle,setAccDescription:e.setAccDescription,getAccDescription:e.getAccDescription,addSection:f,getSections:h,setShowData:m,getShowData:x},S=e.__name((e,n)=>{t.populateCommonDb(e,n),n.setShowData(e.showData),e.sections.map(n.addSection)},"populateDb"),v={parse:e.__name(async t=>{const a=await n.parse("pie",t);e.log.debug(a),S(a,y)},"parse")},w=e.__name(e=>`\n .pieCircle{\n stroke: ${e.pieStrokeColor};\n stroke-width : ${e.pieStrokeWidth};\n opacity : ${e.pieOpacity};\n }\n .pieOuterCircle{\n stroke: ${e.pieOuterStrokeColor};\n stroke-width: ${e.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${e.pieTitleTextSize};\n fill: ${e.pieTitleTextColor};\n font-family: ${e.fontFamily};\n }\n .slice {\n font-family: ${e.fontFamily};\n fill: ${e.pieSectionTextColor};\n font-size:${e.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${e.pieLegendTextColor};\n font-family: ${e.fontFamily};\n font-size: ${e.pieLegendTextSize};\n }\n`,"getStyles"),A=e.__name(t=>{const n=[...t.values()].reduce((e,t)=>e+t,0),a=[...t.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/n*100>=1).sort((e,t)=>t.value-e.value),i=function(){var t=l,n=r,a=null,i=e.constant(0),o=e.constant(e.tau),s=e.constant(0);function c(r){var l,c,u,p,d,g=(r=e.array(r)).length,f=0,h=new Array(g),m=new Array(g),x=+i.apply(this,arguments),y=Math.min(e.tau,Math.max(-e.tau,o.apply(this,arguments)-x)),S=Math.min(Math.abs(y)/g,s.apply(this,arguments)),v=S*(y<0?-1:1);for(l=0;l<g;++l)(d=m[h[l]=l]=+t(r[l],l,r))>0&&(f+=d);for(null!=n?h.sort(function(e,t){return n(m[e],m[t])}):null!=a&&h.sort(function(e,t){return a(r[e],r[t])}),l=0,u=f?(y-g*v)/f:0;l<g;++l,x=p)c=h[l],p=x+((d=m[c])>0?d*u:0)+v,m[c]={data:r[c],index:l,value:d,startAngle:x,endAngle:p,padAngle:S};return m}return c.value=function(n){return arguments.length?(t="function"==typeof n?n:e.constant(+n),c):t},c.sortValues=function(e){return arguments.length?(n=e,a=null,c):n},c.sort=function(e){return arguments.length?(a=e,n=null,c):a},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:e.constant(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:e.constant(+t),c):o},c.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:e.constant(+t),c):s},c}().value(e=>e.value);return i(a)},"createPieArcs"),_={parser:v,db:y,renderer:{draw:e.__name((t,n,r,l)=>{e.log.debug("rendering pie chart\n"+t);const o=l.db,s=e.getConfig2(),c=e.cleanAndMerge(o.getConfig(),s.pie),u=18,p=450,d=p,g=e.selectSvgElement(n),f=g.append("g");f.attr("transform","translate(225,225)");const{themeVariables:h}=s;let[m]=e.parseFontSize(h.pieOuterStrokeWidth);m??(m=2);const x=c.textPosition,y=Math.min(d,p)/2-40,S=a.d3arc().innerRadius(0).outerRadius(y),v=a.d3arc().innerRadius(y*x).outerRadius(y*x);f.append("circle").attr("cx",0).attr("cy",0).attr("r",y+m/2).attr("class","pieOuterCircle");const w=o.getSections(),_=A(w),T=[h.pie1,h.pie2,h.pie3,h.pie4,h.pie5,h.pie6,h.pie7,h.pie8,h.pie9,h.pie10,h.pie11,h.pie12];let D=0;w.forEach(e=>{D+=e});const $=_.filter(e=>"0"!==(e.data.value/D*100).toFixed(0)),b=i.ordinal(T);f.selectAll("mySlices").data($).enter().append("path").attr("d",S).attr("fill",e=>b(e.data.label)).attr("class","pieCircle"),f.selectAll("mySlices").data($).enter().append("text").text(e=>(e.data.value/D*100).toFixed(0)+"%").attr("transform",e=>"translate("+v.centroid(e)+")").style("text-anchor","middle").attr("class","slice"),f.append("text").text(o.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");const C=[...w.entries()].map(([e,t])=>({label:e,value:t})),k=f.selectAll(".legend").data(C).enter().append("g").attr("class","legend").attr("transform",(e,t)=>"translate(216,"+(22*t-22*C.length/2)+")");k.append("rect").attr("width",u).attr("height",u).style("fill",e=>b(e.label)).style("stroke",e=>b(e.label)),k.append("text").attr("x",22).attr("y",14).text(e=>o.getShowData()?`${e.label} [${e.value}]`:e.label);const M=512+Math.max(...k.selectAll("text").nodes().map(e=>(null==e?void 0:e.getBoundingClientRect().width)??0));g.attr("viewBox",`0 0 ${M} 450`),e.configureSvgSize(g,p,M,c.useMaxWidth)},"draw")},styles:w};exports.diagram=_;
|
|
2
|
+
//# sourceMappingURL=pieDiagram-ADFJNKIX-D9M6lhX5.cjs.map
|
package/dist/{quadrantDiagram-AYHSOK5B-Dn_KGYm_.cjs → quadrantDiagram-AYHSOK5B-DDWEpiLt.cjs}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var t,e;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-D7xz2-Uy.cjs"),a=require("./linear-cXEFiojf.cjs");var n=function(){var t=i.__name(function(t,e,i,a){for(i=i||{},a=t.length;a--;i[t[a]]=e);return i},"o"),e=[1,3],a=[1,4],n=[1,5],s=[1,6],r=[1,7],l=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],o=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[55,56,57],c=[2,36],d=[1,37],u=[1,36],x=[1,38],f=[1,35],g=[1,43],p=[1,41],y=[1,14],_=[1,23],m=[1,18],T=[1,19],q=[1,20],A=[1,21],S=[1,22],b=[1,24],k=[1,25],F=[1,26],P=[1,27],C=[1,28],v=[1,29],L=[1,32],E=[1,33],D=[1,34],z=[1,39],I=[1,40],w=[1,42],N=[1,44],B=[1,62],W=[1,61],R=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],$=[1,65],U=[1,66],Q=[1,67],O=[1,68],X=[1,69],H=[1,70],M=[1,71],Y=[1,72],j=[1,73],G=[1,74],K=[1,75],V=[1,76],Z=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,90],tt=[1,91],et=[1,92],it=[1,99],at=[1,93],nt=[1,96],st=[1,94],rt=[1,95],lt=[1,97],ot=[1,98],ht=[1,102],ct=[10,55,56,57],dt=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],ut={trace:i.__name(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],[59,1],[59,1],[59,1]],performAction:i.__name(function(t,e,i,a,n,s,r){var l=s.length-1;switch(n){case 23:case 68:this.$=s[l];break;case 24:case 69:this.$=s[l-1]+""+s[l];break;case 26:this.$=s[l-1]+s[l];break;case 27:this.$=[s[l].trim()];break;case 28:s[l-2].push(s[l].trim()),this.$=s[l-2];break;case 29:this.$=s[l-4],a.addClass(s[l-2],s[l]);break;case 37:this.$=[];break;case 42:this.$=s[l].trim(),a.setDiagramTitle(this.$);break;case 43:this.$=s[l].trim(),a.setAccTitle(this.$);break;case 44:case 45:this.$=s[l].trim(),a.setAccDescription(this.$);break;case 46:a.addSection(s[l].substr(8)),this.$=s[l].substr(8);break;case 47:a.addPoint(s[l-3],"",s[l-1],s[l],[]);break;case 48:a.addPoint(s[l-4],s[l-3],s[l-1],s[l],[]);break;case 49:a.addPoint(s[l-4],"",s[l-2],s[l-1],s[l]);break;case 50:a.addPoint(s[l-5],s[l-4],s[l-2],s[l-1],s[l]);break;case 51:a.setXAxisLeftText(s[l-2]),a.setXAxisRightText(s[l]);break;case 52:s[l-1].text+=" ⟶ ",a.setXAxisLeftText(s[l-1]);break;case 53:a.setXAxisLeftText(s[l]);break;case 54:a.setYAxisBottomText(s[l-2]),a.setYAxisTopText(s[l]);break;case 55:s[l-1].text+=" ⟶ ",a.setYAxisBottomText(s[l-1]);break;case 56:a.setYAxisBottomText(s[l]);break;case 57:a.setQuadrant1Text(s[l]);break;case 58:a.setQuadrant2Text(s[l]);break;case 59:a.setQuadrant3Text(s[l]);break;case 60:a.setQuadrant4Text(s[l]);break;case 64:case 66:this.$={text:s[l],type:"text"};break;case 65:this.$={text:s[l-1].text+""+s[l],type:s[l-1].type};break;case 67:this.$={text:s[l],type:"markdown"}}},"anonymous"),table:[{18:e,26:1,27:2,28:a,55:n,56:s,57:r},{1:[3]},{18:e,26:8,27:2,28:a,55:n,56:s,57:r},{18:e,26:9,27:2,28:a,55:n,56:s,57:r},t(l,[2,33],{29:10}),t(o,[2,61]),t(o,[2,62]),t(o,[2,63]),{1:[2,30]},{1:[2,31]},t(h,c,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:u,10:x,12:f,13:g,14:p,18:y,25:_,35:m,37:T,39:q,41:A,42:S,48:b,50:k,51:F,52:P,53:C,54:v,60:L,61:E,63:D,64:z,65:I,66:w,67:N}),t(l,[2,34]),{27:45,55:n,56:s,57:r},t(h,[2,37]),t(h,c,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:u,10:x,12:f,13:g,14:p,18:y,25:_,35:m,37:T,39:q,41:A,42:S,48:b,50:k,51:F,52:P,53:C,54:v,60:L,61:E,63:D,64:z,65:I,66:w,67:N}),t(h,[2,39]),t(h,[2,40]),t(h,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(h,[2,45]),t(h,[2,46]),{18:[1,50]},{4:d,5:u,10:x,12:f,13:g,14:p,43:51,58:31,60:L,61:E,63:D,64:z,65:I,66:w,67:N},{4:d,5:u,10:x,12:f,13:g,14:p,43:52,58:31,60:L,61:E,63:D,64:z,65:I,66:w,67:N},{4:d,5:u,10:x,12:f,13:g,14:p,43:53,58:31,60:L,61:E,63:D,64:z,65:I,66:w,67:N},{4:d,5:u,10:x,12:f,13:g,14:p,43:54,58:31,60:L,61:E,63:D,64:z,65:I,66:w,67:N},{4:d,5:u,10:x,12:f,13:g,14:p,43:55,58:31,60:L,61:E,63:D,64:z,65:I,66:w,67:N},{4:d,5:u,10:x,12:f,13:g,14:p,43:56,58:31,60:L,61:E,63:D,64:z,65:I,66:w,67:N},{4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,44:[1,57],47:[1,58],58:60,59:59,63:D,64:z,65:I,66:w,67:N},t(R,[2,64]),t(R,[2,66]),t(R,[2,67]),t(R,[2,70]),t(R,[2,71]),t(R,[2,72]),t(R,[2,73]),t(R,[2,74]),t(R,[2,75]),t(R,[2,76]),t(R,[2,77]),t(R,[2,78]),t(R,[2,79]),t(R,[2,80]),t(l,[2,35]),t(h,[2,38]),t(h,[2,42]),t(h,[2,43]),t(h,[2,44]),{3:64,4:$,5:U,6:Q,7:O,8:X,9:H,10:M,11:Y,12:j,13:G,14:K,15:V,21:63},t(h,[2,53],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,49:[1,77],63:D,64:z,65:I,66:w,67:N}),t(h,[2,56],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,49:[1,78],63:D,64:z,65:I,66:w,67:N}),t(h,[2,57],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,63:D,64:z,65:I,66:w,67:N}),t(h,[2,58],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,63:D,64:z,65:I,66:w,67:N}),t(h,[2,59],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,63:D,64:z,65:I,66:w,67:N}),t(h,[2,60],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,63:D,64:z,65:I,66:w,67:N}),{45:[1,79]},{44:[1,80]},t(R,[2,65]),t(R,[2,81]),t(R,[2,82]),t(R,[2,83]),{3:82,4:$,5:U,6:Q,7:O,8:X,9:H,10:M,11:Y,12:j,13:G,14:K,15:V,18:[1,81]},t(Z,[2,23]),t(Z,[2,1]),t(Z,[2,2]),t(Z,[2,3]),t(Z,[2,4]),t(Z,[2,5]),t(Z,[2,6]),t(Z,[2,7]),t(Z,[2,8]),t(Z,[2,9]),t(Z,[2,10]),t(Z,[2,11]),t(Z,[2,12]),t(h,[2,52],{58:31,43:83,4:d,5:u,10:x,12:f,13:g,14:p,60:L,61:E,63:D,64:z,65:I,66:w,67:N}),t(h,[2,55],{58:31,43:84,4:d,5:u,10:x,12:f,13:g,14:p,60:L,61:E,63:D,64:z,65:I,66:w,67:N}),{46:[1,85]},{45:[1,86]},{4:J,5:tt,6:et,8:it,11:at,13:nt,16:89,17:st,18:rt,19:lt,20:ot,22:88,23:87},t(Z,[2,24]),t(h,[2,51],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,63:D,64:z,65:I,66:w,67:N}),t(h,[2,54],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,63:D,64:z,65:I,66:w,67:N}),t(h,[2,47],{22:88,16:89,23:100,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:lt,20:ot}),{46:[1,101]},t(h,[2,29],{10:ht}),t(ct,[2,27],{16:103,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:lt,20:ot}),t(dt,[2,25]),t(dt,[2,13]),t(dt,[2,14]),t(dt,[2,15]),t(dt,[2,16]),t(dt,[2,17]),t(dt,[2,18]),t(dt,[2,19]),t(dt,[2,20]),t(dt,[2,21]),t(dt,[2,22]),t(h,[2,49],{10:ht}),t(h,[2,48],{22:88,16:89,23:104,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:lt,20:ot}),{4:J,5:tt,6:et,8:it,11:at,13:nt,16:89,17:st,18:rt,19:lt,20:ot,22:105},t(dt,[2,26]),t(h,[2,50],{10:ht}),t(ct,[2,28],{16:103,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:lt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:i.__name(function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},"parseError"),parse:i.__name(function(t){var e=this,a=[0],n=[],s=[null],r=[],l=this.table,o="",h=0,c=0,d=r.slice.call(arguments,1),u=Object.create(this.lexer),x={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(x.yy[f]=this.yy[f]);u.setInput(t,x.yy),x.yy.lexer=u,x.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var g=u.yylloc;r.push(g);var p=u.options&&u.options.ranges;function y(){var t;return"number"!=typeof(t=n.pop()||u.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof x.yy.parseError?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i.__name(function(t){a.length=a.length-2*t,s.length=s.length-t,r.length=r.length-t},"popStack"),i.__name(y,"lex");for(var _,m,T,q,A,S,b,k,F={};;){if(m=a[a.length-1],this.defaultActions[m]?T=this.defaultActions[m]:(null==_&&(_=y()),T=l[m]&&l[m][_]),void 0===T||!T.length||!T[0]){var P="";for(A in k=[],l[m])this.terminals_[A]&&A>2&&k.push("'"+this.terminals_[A]+"'");P=u.showPosition?"Parse error on line "+(h+1)+":\n"+u.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(P,{text:u.match,token:this.terminals_[_]||_,line:u.yylineno,loc:g,expected:k})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+_);switch(T[0]){case 1:a.push(_),s.push(u.yytext),r.push(u.yylloc),a.push(T[1]),_=null,c=u.yyleng,o=u.yytext,h=u.yylineno,g=u.yylloc;break;case 2:if(S=this.productions_[T[1]][1],F.$=s[s.length-S],F._$={first_line:r[r.length-(S||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(S||1)].first_column,last_column:r[r.length-1].last_column},p&&(F._$.range=[r[r.length-(S||1)].range[0],r[r.length-1].range[1]]),void 0!==(q=this.performAction.apply(F,[o,c,h,x.yy,T[1],s,r].concat(d))))return q;S&&(a=a.slice(0,-1*S*2),s=s.slice(0,-1*S),r=r.slice(0,-1*S)),a.push(this.productions_[T[1]][0]),s.push(F.$),r.push(F._$),b=l[a[a.length-2]][a[a.length-1]],a.push(b);break;case 3:return!0}}return!0},"parse")},xt=function(){return{EOF:1,parseError:i.__name(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:i.__name(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i.__name(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i.__name(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===a.length?this.yylloc.first_column:0)+a[a.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i.__name(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i.__name(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:i.__name(function(t,e){var i,a,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in n)this[s]=n[s];return!1}return!1},"test_match"),next:i.__name(function(){if(this.done)return this.EOF;var t,e,i,a;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),s=0;s<n.length;s++)if((i=this._input.match(this.rules[n[s]]))&&(!e||i[0].length>e[0].length)){if(e=i,a=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i.__name(function(){var t=this.next();return t||this.lex()},"lex"),begin:i.__name(function(t){this.conditionStack.push(t)},"begin"),popState:i.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i.__name(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:i.__name(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i.__name(function(t){this.begin(t)},"pushState"),stateStackSize:i.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i.__name(function(t,e,i,a){switch(i){case 0:case 1:case 3:break;case 2:return 55;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:case 23:case 25:case 31: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 24:this.begin("string");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 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 11;case 37:return 64;case 38:return 10;case 39:case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51: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,/^(?::)/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],inclusive:!0}}}}();function ft(){this.yy={}}return ut.lexer=xt,i.__name(ft,"Parser"),ft.prototype=ut,ut.Parser=ft,new ft}();n.parser=n;var s=n,r=i.getThemeVariables3(),l=(t=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(){var t,e,a,n,s,r,l,o,h,c,d,u,x,f,g,p,y,_;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:(null==(t=i.defaultConfig_default.quadrantChart)?void 0:t.chartWidth)||500,chartWidth:(null==(e=i.defaultConfig_default.quadrantChart)?void 0:e.chartHeight)||500,titlePadding:(null==(a=i.defaultConfig_default.quadrantChart)?void 0:a.titlePadding)||10,titleFontSize:(null==(n=i.defaultConfig_default.quadrantChart)?void 0:n.titleFontSize)||20,quadrantPadding:(null==(s=i.defaultConfig_default.quadrantChart)?void 0:s.quadrantPadding)||5,xAxisLabelPadding:(null==(r=i.defaultConfig_default.quadrantChart)?void 0:r.xAxisLabelPadding)||5,yAxisLabelPadding:(null==(l=i.defaultConfig_default.quadrantChart)?void 0:l.yAxisLabelPadding)||5,xAxisLabelFontSize:(null==(o=i.defaultConfig_default.quadrantChart)?void 0:o.xAxisLabelFontSize)||16,yAxisLabelFontSize:(null==(h=i.defaultConfig_default.quadrantChart)?void 0:h.yAxisLabelFontSize)||16,quadrantLabelFontSize:(null==(c=i.defaultConfig_default.quadrantChart)?void 0:c.quadrantLabelFontSize)||16,quadrantTextTopPadding:(null==(d=i.defaultConfig_default.quadrantChart)?void 0:d.quadrantTextTopPadding)||5,pointTextPadding:(null==(u=i.defaultConfig_default.quadrantChart)?void 0:u.pointTextPadding)||5,pointLabelFontSize:(null==(x=i.defaultConfig_default.quadrantChart)?void 0:x.pointLabelFontSize)||12,pointRadius:(null==(f=i.defaultConfig_default.quadrantChart)?void 0:f.pointRadius)||5,xAxisPosition:(null==(g=i.defaultConfig_default.quadrantChart)?void 0:g.xAxisPosition)||"top",yAxisPosition:(null==(p=i.defaultConfig_default.quadrantChart)?void 0:p.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:(null==(y=i.defaultConfig_default.quadrantChart)?void 0:y.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:(null==(_=i.defaultConfig_default.quadrantChart)?void 0:_.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:r.quadrant1Fill,quadrant2Fill:r.quadrant2Fill,quadrant3Fill:r.quadrant3Fill,quadrant4Fill:r.quadrant4Fill,quadrant1TextFill:r.quadrant1TextFill,quadrant2TextFill:r.quadrant2TextFill,quadrant3TextFill:r.quadrant3TextFill,quadrant4TextFill:r.quadrant4TextFill,quadrantPointFill:r.quadrantPointFill,quadrantPointTextFill:r.quadrantPointTextFill,quadrantXAxisTextFill:r.quadrantXAxisTextFill,quadrantYAxisTextFill:r.quadrantYAxisTextFill,quadrantTitleFill:r.quadrantTitleFill,quadrantInternalBorderStrokeFill:r.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:r.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,i.log.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,e){this.classes.set(t,e)}setConfig(t){i.log.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){i.log.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,e,i,a){const n=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,s={top:"top"===t&&e?n:0,bottom:"bottom"===t&&e?n:0},r=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,l={left:"left"===this.config.yAxisPosition&&i?r:0,right:"right"===this.config.yAxisPosition&&i?r:0},o=this.config.titleFontSize+2*this.config.titlePadding,h={top:a?o:0},c=this.config.quadrantPadding+l.left,d=this.config.quadrantPadding+s.top+h.top,u=this.config.chartWidth-2*this.config.quadrantPadding-l.left-l.right,x=this.config.chartHeight-2*this.config.quadrantPadding-s.top-s.bottom-h.top;return{xAxisSpace:s,yAxisSpace:l,titleSpace:h,quadrantSpace:{quadrantLeft:c,quadrantTop:d,quadrantWidth:u,quadrantHalfWidth:u/2,quadrantHeight:x,quadrantHalfHeight:x/2}}}getAxisLabels(t,e,i,a){const{quadrantSpace:n,titleSpace:s}=a,{quadrantHalfHeight:r,quadrantHeight:l,quadrantLeft:o,quadrantHalfWidth:h,quadrantTop:c,quadrantWidth:d}=n,u=Boolean(this.data.xAxisRightText),x=Boolean(this.data.yAxisTopText),f=[];return this.data.xAxisLeftText&&e&&f.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:o+(u?h/2:0),y:"top"===t?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+c+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&e&&f.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:o+h+(u?h/2:0),y:"top"===t?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+c+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&i&&f.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+o+d+this.config.quadrantPadding,y:c+l-(x?r/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:x?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&i&&f.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+o+d+this.config.quadrantPadding,y:c+r-(x?r/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:x?"center":"left",horizontalPos:"top",rotation:-90}),f}getQuadrants(t){const{quadrantSpace:e}=t,{quadrantHalfHeight:i,quadrantLeft:a,quadrantHalfWidth:n,quadrantTop:s}=e,r=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+n,y:s,width:n,height:i,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:a,y:s,width:n,height:i,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:a,y:s+i,width:n,height:i,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:a+n,y:s+i,width:n,height:i,fill:this.themeConfig.quadrant4Fill}];for(const l of r)l.text.x=l.x+l.width/2,0===this.data.points.length?(l.text.y=l.y+l.height/2,l.text.horizontalPos="middle"):(l.text.y=l.y+this.config.quadrantTextTopPadding,l.text.horizontalPos="top");return r}getQuadrantPoints(t){const{quadrantSpace:e}=t,{quadrantHeight:i,quadrantLeft:n,quadrantTop:s,quadrantWidth:r}=e,l=a.linear().domain([0,1]).range([n,r+n]),o=a.linear().domain([0,1]).range([i+s,s]);return this.data.points.map(t=>{const e=this.classes.get(t.className);e&&(t={...e,...t});return{x:l(t.x),y:o(t.y),fill:t.color??this.themeConfig.quadrantPointFill,radius:t.radius??this.config.pointRadius,text:{text:t.text,fill:this.themeConfig.quadrantPointTextFill,x:l(t.x),y:o(t.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:t.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:t.strokeWidth??"0px"}})}getBorders(t){const e=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:i}=t,{quadrantHalfHeight:a,quadrantHeight:n,quadrantLeft:s,quadrantHalfWidth:r,quadrantTop:l,quadrantWidth:o}=i;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-e,y1:l,x2:s+o+e,y2:l},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s+o,y1:l+e,x2:s+o,y2:l+n-e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-e,y1:l+n,x2:s+o+e,y2:l+n},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s,y1:l+e,x2:s,y2:l+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+r,y1:l+e,x2:s+r,y2:l+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+e,y1:l+a,x2:s+o-e,y2:l+a}]}getTitle(t){if(t)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 t=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),e=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),i=this.config.showTitle&&!!this.data.titleText,a=this.data.points.length>0?"bottom":this.config.xAxisPosition,n=this.calculateSpace(a,t,e,i);return{points:this.getQuadrantPoints(n),quadrants:this.getQuadrants(n),axisLabels:this.getAxisLabels(a,t,e,n),borderLines:this.getBorders(n),title:this.getTitle(i)}}},i.__name(t,"QuadrantBuilder"),t),o=(e=class extends Error{constructor(t,e,i){super(`value for ${t} ${e} is invalid, please use a valid ${i}`),this.name="InvalidStyleError"}},i.__name(e,"InvalidStyleError"),e);function h(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}function c(t){return!/^\d+$/.test(t)}function d(t){return!/^\d+px$/.test(t)}i.__name(h,"validateHexCode"),i.__name(c,"validateNumber"),i.__name(d,"validateSizeInPixels");var u=i.getConfig2();function x(t){return i.sanitizeText(t.trim(),u)}i.__name(x,"textSanitizer");var f=new l;function g(t){f.setData({quadrant1Text:x(t.text)})}function p(t){f.setData({quadrant2Text:x(t.text)})}function y(t){f.setData({quadrant3Text:x(t.text)})}function _(t){f.setData({quadrant4Text:x(t.text)})}function m(t){f.setData({xAxisLeftText:x(t.text)})}function T(t){f.setData({xAxisRightText:x(t.text)})}function q(t){f.setData({yAxisTopText:x(t.text)})}function A(t){f.setData({yAxisBottomText:x(t.text)})}function S(t){const e={};for(const i of t){const[t,a]=i.trim().split(/\s*:\s*/);if("radius"===t){if(c(a))throw new o(t,a,"number");e.radius=parseInt(a)}else if("color"===t){if(h(a))throw new o(t,a,"hex code");e.color=a}else if("stroke-color"===t){if(h(a))throw new o(t,a,"hex code");e.strokeColor=a}else{if("stroke-width"!==t)throw new Error(`style named ${t} is not supported.`);if(d(a))throw new o(t,a,"number of pixels (eg. 10px)");e.strokeWidth=a}}return e}function b(t,e,i,a,n){const s=S(n);f.addPoints([{x:i,y:a,text:x(t.text),className:e,...s}])}function k(t,e){f.addClass(t,S(e))}function F(t){f.setConfig({chartWidth:t})}function P(t){f.setConfig({chartHeight:t})}function C(){const t=i.getConfig2(),{themeVariables:e,quadrantChart:a}=t;return a&&f.setConfig(a),f.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),f.setData({titleText:i.getDiagramTitle()}),f.build()}i.__name(g,"setQuadrant1Text"),i.__name(p,"setQuadrant2Text"),i.__name(y,"setQuadrant3Text"),i.__name(_,"setQuadrant4Text"),i.__name(m,"setXAxisLeftText"),i.__name(T,"setXAxisRightText"),i.__name(q,"setYAxisTopText"),i.__name(A,"setYAxisBottomText"),i.__name(S,"parseStyles"),i.__name(b,"addPoint"),i.__name(k,"addClass"),i.__name(F,"setWidth"),i.__name(P,"setHeight"),i.__name(C,"getQuadrantData");var v={parser:s,db:{setWidth:F,setHeight:P,setQuadrant1Text:g,setQuadrant2Text:p,setQuadrant3Text:y,setQuadrant4Text:_,setXAxisLeftText:m,setXAxisRightText:T,setYAxisTopText:q,setYAxisBottomText:A,parseStyles:S,addPoint:b,addClass:k,getQuadrantData:C,clear:i.__name(function(){f.clear(),i.clear()},"clear"),setAccTitle:i.setAccTitle,getAccTitle:i.getAccTitle,setDiagramTitle:i.setDiagramTitle,getDiagramTitle:i.getDiagramTitle,getAccDescription:i.getAccDescription,setAccDescription:i.setAccDescription},renderer:{draw:i.__name((t,e,a,n)=>{var s,r,l;function o(t){return"top"===t?"hanging":"middle"}function h(t){return"left"===t?"start":"middle"}function c(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}i.__name(o,"getDominantBaseLine"),i.__name(h,"getTextAnchor"),i.__name(c,"getTransformation");const d=i.getConfig2();i.log.debug("Rendering quadrant chart\n"+t);const u=d.securityLevel;let x;"sandbox"===u&&(x=i.select("#i"+e));const f=("sandbox"===u?i.select(x.nodes()[0].contentDocument.body):i.select("body")).select(`[id="${e}"]`),g=f.append("g").attr("class","main"),p=(null==(s=d.quadrantChart)?void 0:s.chartWidth)??500,y=(null==(r=d.quadrantChart)?void 0:r.chartHeight)??500;i.configureSvgSize(f,y,p,(null==(l=d.quadrantChart)?void 0:l.useMaxWidth)??!0),f.attr("viewBox","0 0 "+p+" "+y),n.db.setHeight(y),n.db.setWidth(p);const _=n.db.getQuadrantData(),m=g.append("g").attr("class","quadrants"),T=g.append("g").attr("class","border"),q=g.append("g").attr("class","data-points"),A=g.append("g").attr("class","labels"),S=g.append("g").attr("class","title");_.title&&S.append("text").attr("x",0).attr("y",0).attr("fill",_.title.fill).attr("font-size",_.title.fontSize).attr("dominant-baseline",o(_.title.horizontalPos)).attr("text-anchor",h(_.title.verticalPos)).attr("transform",c(_.title)).text(_.title.text),_.borderLines&&T.selectAll("line").data(_.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const b=m.selectAll("g.quadrant").data(_.quadrants).enter().append("g").attr("class","quadrant");b.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),b.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>o(t.text.horizontalPos)).attr("text-anchor",t=>h(t.text.verticalPos)).attr("transform",t=>c(t.text)).text(t=>t.text.text);A.selectAll("g.label").data(_.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>o(t.horizontalPos)).attr("text-anchor",t=>h(t.verticalPos)).attr("transform",t=>c(t));const k=q.selectAll("g.data-point").data(_.points).enter().append("g").attr("class","data-point");k.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeColor).attr("stroke-width",t=>t.strokeWidth),k.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>o(t.text.horizontalPos)).attr("text-anchor",t=>h(t.text.verticalPos)).attr("transform",t=>c(t.text))},"draw")},styles:i.__name(()=>"","styles")};exports.diagram=v;
|
|
2
|
-
//# sourceMappingURL=quadrantDiagram-AYHSOK5B-
|
|
1
|
+
"use strict";var t,e;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-D5nkqpSD.cjs"),a=require("./linear-CRUR7yE8.cjs");var n=function(){var t=i.__name(function(t,e,i,a){for(i=i||{},a=t.length;a--;i[t[a]]=e);return i},"o"),e=[1,3],a=[1,4],n=[1,5],s=[1,6],r=[1,7],l=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],o=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[55,56,57],c=[2,36],d=[1,37],u=[1,36],x=[1,38],f=[1,35],g=[1,43],p=[1,41],y=[1,14],_=[1,23],m=[1,18],T=[1,19],q=[1,20],A=[1,21],S=[1,22],b=[1,24],k=[1,25],F=[1,26],P=[1,27],C=[1,28],v=[1,29],L=[1,32],E=[1,33],D=[1,34],z=[1,39],I=[1,40],w=[1,42],N=[1,44],B=[1,62],W=[1,61],R=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],$=[1,65],U=[1,66],Q=[1,67],O=[1,68],X=[1,69],H=[1,70],M=[1,71],Y=[1,72],j=[1,73],G=[1,74],K=[1,75],V=[1,76],Z=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,90],tt=[1,91],et=[1,92],it=[1,99],at=[1,93],nt=[1,96],st=[1,94],rt=[1,95],lt=[1,97],ot=[1,98],ht=[1,102],ct=[10,55,56,57],dt=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],ut={trace:i.__name(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],[59,1],[59,1],[59,1]],performAction:i.__name(function(t,e,i,a,n,s,r){var l=s.length-1;switch(n){case 23:case 68:this.$=s[l];break;case 24:case 69:this.$=s[l-1]+""+s[l];break;case 26:this.$=s[l-1]+s[l];break;case 27:this.$=[s[l].trim()];break;case 28:s[l-2].push(s[l].trim()),this.$=s[l-2];break;case 29:this.$=s[l-4],a.addClass(s[l-2],s[l]);break;case 37:this.$=[];break;case 42:this.$=s[l].trim(),a.setDiagramTitle(this.$);break;case 43:this.$=s[l].trim(),a.setAccTitle(this.$);break;case 44:case 45:this.$=s[l].trim(),a.setAccDescription(this.$);break;case 46:a.addSection(s[l].substr(8)),this.$=s[l].substr(8);break;case 47:a.addPoint(s[l-3],"",s[l-1],s[l],[]);break;case 48:a.addPoint(s[l-4],s[l-3],s[l-1],s[l],[]);break;case 49:a.addPoint(s[l-4],"",s[l-2],s[l-1],s[l]);break;case 50:a.addPoint(s[l-5],s[l-4],s[l-2],s[l-1],s[l]);break;case 51:a.setXAxisLeftText(s[l-2]),a.setXAxisRightText(s[l]);break;case 52:s[l-1].text+=" ⟶ ",a.setXAxisLeftText(s[l-1]);break;case 53:a.setXAxisLeftText(s[l]);break;case 54:a.setYAxisBottomText(s[l-2]),a.setYAxisTopText(s[l]);break;case 55:s[l-1].text+=" ⟶ ",a.setYAxisBottomText(s[l-1]);break;case 56:a.setYAxisBottomText(s[l]);break;case 57:a.setQuadrant1Text(s[l]);break;case 58:a.setQuadrant2Text(s[l]);break;case 59:a.setQuadrant3Text(s[l]);break;case 60:a.setQuadrant4Text(s[l]);break;case 64:case 66:this.$={text:s[l],type:"text"};break;case 65:this.$={text:s[l-1].text+""+s[l],type:s[l-1].type};break;case 67:this.$={text:s[l],type:"markdown"}}},"anonymous"),table:[{18:e,26:1,27:2,28:a,55:n,56:s,57:r},{1:[3]},{18:e,26:8,27:2,28:a,55:n,56:s,57:r},{18:e,26:9,27:2,28:a,55:n,56:s,57:r},t(l,[2,33],{29:10}),t(o,[2,61]),t(o,[2,62]),t(o,[2,63]),{1:[2,30]},{1:[2,31]},t(h,c,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:u,10:x,12:f,13:g,14:p,18:y,25:_,35:m,37:T,39:q,41:A,42:S,48:b,50:k,51:F,52:P,53:C,54:v,60:L,61:E,63:D,64:z,65:I,66:w,67:N}),t(l,[2,34]),{27:45,55:n,56:s,57:r},t(h,[2,37]),t(h,c,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:u,10:x,12:f,13:g,14:p,18:y,25:_,35:m,37:T,39:q,41:A,42:S,48:b,50:k,51:F,52:P,53:C,54:v,60:L,61:E,63:D,64:z,65:I,66:w,67:N}),t(h,[2,39]),t(h,[2,40]),t(h,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(h,[2,45]),t(h,[2,46]),{18:[1,50]},{4:d,5:u,10:x,12:f,13:g,14:p,43:51,58:31,60:L,61:E,63:D,64:z,65:I,66:w,67:N},{4:d,5:u,10:x,12:f,13:g,14:p,43:52,58:31,60:L,61:E,63:D,64:z,65:I,66:w,67:N},{4:d,5:u,10:x,12:f,13:g,14:p,43:53,58:31,60:L,61:E,63:D,64:z,65:I,66:w,67:N},{4:d,5:u,10:x,12:f,13:g,14:p,43:54,58:31,60:L,61:E,63:D,64:z,65:I,66:w,67:N},{4:d,5:u,10:x,12:f,13:g,14:p,43:55,58:31,60:L,61:E,63:D,64:z,65:I,66:w,67:N},{4:d,5:u,10:x,12:f,13:g,14:p,43:56,58:31,60:L,61:E,63:D,64:z,65:I,66:w,67:N},{4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,44:[1,57],47:[1,58],58:60,59:59,63:D,64:z,65:I,66:w,67:N},t(R,[2,64]),t(R,[2,66]),t(R,[2,67]),t(R,[2,70]),t(R,[2,71]),t(R,[2,72]),t(R,[2,73]),t(R,[2,74]),t(R,[2,75]),t(R,[2,76]),t(R,[2,77]),t(R,[2,78]),t(R,[2,79]),t(R,[2,80]),t(l,[2,35]),t(h,[2,38]),t(h,[2,42]),t(h,[2,43]),t(h,[2,44]),{3:64,4:$,5:U,6:Q,7:O,8:X,9:H,10:M,11:Y,12:j,13:G,14:K,15:V,21:63},t(h,[2,53],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,49:[1,77],63:D,64:z,65:I,66:w,67:N}),t(h,[2,56],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,49:[1,78],63:D,64:z,65:I,66:w,67:N}),t(h,[2,57],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,63:D,64:z,65:I,66:w,67:N}),t(h,[2,58],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,63:D,64:z,65:I,66:w,67:N}),t(h,[2,59],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,63:D,64:z,65:I,66:w,67:N}),t(h,[2,60],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,63:D,64:z,65:I,66:w,67:N}),{45:[1,79]},{44:[1,80]},t(R,[2,65]),t(R,[2,81]),t(R,[2,82]),t(R,[2,83]),{3:82,4:$,5:U,6:Q,7:O,8:X,9:H,10:M,11:Y,12:j,13:G,14:K,15:V,18:[1,81]},t(Z,[2,23]),t(Z,[2,1]),t(Z,[2,2]),t(Z,[2,3]),t(Z,[2,4]),t(Z,[2,5]),t(Z,[2,6]),t(Z,[2,7]),t(Z,[2,8]),t(Z,[2,9]),t(Z,[2,10]),t(Z,[2,11]),t(Z,[2,12]),t(h,[2,52],{58:31,43:83,4:d,5:u,10:x,12:f,13:g,14:p,60:L,61:E,63:D,64:z,65:I,66:w,67:N}),t(h,[2,55],{58:31,43:84,4:d,5:u,10:x,12:f,13:g,14:p,60:L,61:E,63:D,64:z,65:I,66:w,67:N}),{46:[1,85]},{45:[1,86]},{4:J,5:tt,6:et,8:it,11:at,13:nt,16:89,17:st,18:rt,19:lt,20:ot,22:88,23:87},t(Z,[2,24]),t(h,[2,51],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,63:D,64:z,65:I,66:w,67:N}),t(h,[2,54],{59:59,58:60,4:d,5:u,8:B,10:x,12:f,13:g,14:p,18:W,63:D,64:z,65:I,66:w,67:N}),t(h,[2,47],{22:88,16:89,23:100,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:lt,20:ot}),{46:[1,101]},t(h,[2,29],{10:ht}),t(ct,[2,27],{16:103,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:lt,20:ot}),t(dt,[2,25]),t(dt,[2,13]),t(dt,[2,14]),t(dt,[2,15]),t(dt,[2,16]),t(dt,[2,17]),t(dt,[2,18]),t(dt,[2,19]),t(dt,[2,20]),t(dt,[2,21]),t(dt,[2,22]),t(h,[2,49],{10:ht}),t(h,[2,48],{22:88,16:89,23:104,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:lt,20:ot}),{4:J,5:tt,6:et,8:it,11:at,13:nt,16:89,17:st,18:rt,19:lt,20:ot,22:105},t(dt,[2,26]),t(h,[2,50],{10:ht}),t(ct,[2,28],{16:103,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:lt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:i.__name(function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},"parseError"),parse:i.__name(function(t){var e=this,a=[0],n=[],s=[null],r=[],l=this.table,o="",h=0,c=0,d=r.slice.call(arguments,1),u=Object.create(this.lexer),x={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(x.yy[f]=this.yy[f]);u.setInput(t,x.yy),x.yy.lexer=u,x.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var g=u.yylloc;r.push(g);var p=u.options&&u.options.ranges;function y(){var t;return"number"!=typeof(t=n.pop()||u.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof x.yy.parseError?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i.__name(function(t){a.length=a.length-2*t,s.length=s.length-t,r.length=r.length-t},"popStack"),i.__name(y,"lex");for(var _,m,T,q,A,S,b,k,F={};;){if(m=a[a.length-1],this.defaultActions[m]?T=this.defaultActions[m]:(null==_&&(_=y()),T=l[m]&&l[m][_]),void 0===T||!T.length||!T[0]){var P="";for(A in k=[],l[m])this.terminals_[A]&&A>2&&k.push("'"+this.terminals_[A]+"'");P=u.showPosition?"Parse error on line "+(h+1)+":\n"+u.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(P,{text:u.match,token:this.terminals_[_]||_,line:u.yylineno,loc:g,expected:k})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+_);switch(T[0]){case 1:a.push(_),s.push(u.yytext),r.push(u.yylloc),a.push(T[1]),_=null,c=u.yyleng,o=u.yytext,h=u.yylineno,g=u.yylloc;break;case 2:if(S=this.productions_[T[1]][1],F.$=s[s.length-S],F._$={first_line:r[r.length-(S||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(S||1)].first_column,last_column:r[r.length-1].last_column},p&&(F._$.range=[r[r.length-(S||1)].range[0],r[r.length-1].range[1]]),void 0!==(q=this.performAction.apply(F,[o,c,h,x.yy,T[1],s,r].concat(d))))return q;S&&(a=a.slice(0,-1*S*2),s=s.slice(0,-1*S),r=r.slice(0,-1*S)),a.push(this.productions_[T[1]][0]),s.push(F.$),r.push(F._$),b=l[a[a.length-2]][a[a.length-1]],a.push(b);break;case 3:return!0}}return!0},"parse")},xt=function(){return{EOF:1,parseError:i.__name(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:i.__name(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i.__name(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i.__name(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===a.length?this.yylloc.first_column:0)+a[a.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i.__name(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i.__name(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:i.__name(function(t,e){var i,a,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in n)this[s]=n[s];return!1}return!1},"test_match"),next:i.__name(function(){if(this.done)return this.EOF;var t,e,i,a;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),s=0;s<n.length;s++)if((i=this._input.match(this.rules[n[s]]))&&(!e||i[0].length>e[0].length)){if(e=i,a=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i.__name(function(){var t=this.next();return t||this.lex()},"lex"),begin:i.__name(function(t){this.conditionStack.push(t)},"begin"),popState:i.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i.__name(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:i.__name(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i.__name(function(t){this.begin(t)},"pushState"),stateStackSize:i.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i.__name(function(t,e,i,a){switch(i){case 0:case 1:case 3:break;case 2:return 55;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:case 23:case 25:case 31: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 24:this.begin("string");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 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 11;case 37:return 64;case 38:return 10;case 39:case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51: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,/^(?::)/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],inclusive:!0}}}}();function ft(){this.yy={}}return ut.lexer=xt,i.__name(ft,"Parser"),ft.prototype=ut,ut.Parser=ft,new ft}();n.parser=n;var s=n,r=i.getThemeVariables3(),l=(t=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(){var t,e,a,n,s,r,l,o,h,c,d,u,x,f,g,p,y,_;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:(null==(t=i.defaultConfig_default.quadrantChart)?void 0:t.chartWidth)||500,chartWidth:(null==(e=i.defaultConfig_default.quadrantChart)?void 0:e.chartHeight)||500,titlePadding:(null==(a=i.defaultConfig_default.quadrantChart)?void 0:a.titlePadding)||10,titleFontSize:(null==(n=i.defaultConfig_default.quadrantChart)?void 0:n.titleFontSize)||20,quadrantPadding:(null==(s=i.defaultConfig_default.quadrantChart)?void 0:s.quadrantPadding)||5,xAxisLabelPadding:(null==(r=i.defaultConfig_default.quadrantChart)?void 0:r.xAxisLabelPadding)||5,yAxisLabelPadding:(null==(l=i.defaultConfig_default.quadrantChart)?void 0:l.yAxisLabelPadding)||5,xAxisLabelFontSize:(null==(o=i.defaultConfig_default.quadrantChart)?void 0:o.xAxisLabelFontSize)||16,yAxisLabelFontSize:(null==(h=i.defaultConfig_default.quadrantChart)?void 0:h.yAxisLabelFontSize)||16,quadrantLabelFontSize:(null==(c=i.defaultConfig_default.quadrantChart)?void 0:c.quadrantLabelFontSize)||16,quadrantTextTopPadding:(null==(d=i.defaultConfig_default.quadrantChart)?void 0:d.quadrantTextTopPadding)||5,pointTextPadding:(null==(u=i.defaultConfig_default.quadrantChart)?void 0:u.pointTextPadding)||5,pointLabelFontSize:(null==(x=i.defaultConfig_default.quadrantChart)?void 0:x.pointLabelFontSize)||12,pointRadius:(null==(f=i.defaultConfig_default.quadrantChart)?void 0:f.pointRadius)||5,xAxisPosition:(null==(g=i.defaultConfig_default.quadrantChart)?void 0:g.xAxisPosition)||"top",yAxisPosition:(null==(p=i.defaultConfig_default.quadrantChart)?void 0:p.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:(null==(y=i.defaultConfig_default.quadrantChart)?void 0:y.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:(null==(_=i.defaultConfig_default.quadrantChart)?void 0:_.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:r.quadrant1Fill,quadrant2Fill:r.quadrant2Fill,quadrant3Fill:r.quadrant3Fill,quadrant4Fill:r.quadrant4Fill,quadrant1TextFill:r.quadrant1TextFill,quadrant2TextFill:r.quadrant2TextFill,quadrant3TextFill:r.quadrant3TextFill,quadrant4TextFill:r.quadrant4TextFill,quadrantPointFill:r.quadrantPointFill,quadrantPointTextFill:r.quadrantPointTextFill,quadrantXAxisTextFill:r.quadrantXAxisTextFill,quadrantYAxisTextFill:r.quadrantYAxisTextFill,quadrantTitleFill:r.quadrantTitleFill,quadrantInternalBorderStrokeFill:r.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:r.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,i.log.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,e){this.classes.set(t,e)}setConfig(t){i.log.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){i.log.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,e,i,a){const n=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,s={top:"top"===t&&e?n:0,bottom:"bottom"===t&&e?n:0},r=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,l={left:"left"===this.config.yAxisPosition&&i?r:0,right:"right"===this.config.yAxisPosition&&i?r:0},o=this.config.titleFontSize+2*this.config.titlePadding,h={top:a?o:0},c=this.config.quadrantPadding+l.left,d=this.config.quadrantPadding+s.top+h.top,u=this.config.chartWidth-2*this.config.quadrantPadding-l.left-l.right,x=this.config.chartHeight-2*this.config.quadrantPadding-s.top-s.bottom-h.top;return{xAxisSpace:s,yAxisSpace:l,titleSpace:h,quadrantSpace:{quadrantLeft:c,quadrantTop:d,quadrantWidth:u,quadrantHalfWidth:u/2,quadrantHeight:x,quadrantHalfHeight:x/2}}}getAxisLabels(t,e,i,a){const{quadrantSpace:n,titleSpace:s}=a,{quadrantHalfHeight:r,quadrantHeight:l,quadrantLeft:o,quadrantHalfWidth:h,quadrantTop:c,quadrantWidth:d}=n,u=Boolean(this.data.xAxisRightText),x=Boolean(this.data.yAxisTopText),f=[];return this.data.xAxisLeftText&&e&&f.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:o+(u?h/2:0),y:"top"===t?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+c+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&e&&f.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:o+h+(u?h/2:0),y:"top"===t?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+c+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&i&&f.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+o+d+this.config.quadrantPadding,y:c+l-(x?r/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:x?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&i&&f.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+o+d+this.config.quadrantPadding,y:c+r-(x?r/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:x?"center":"left",horizontalPos:"top",rotation:-90}),f}getQuadrants(t){const{quadrantSpace:e}=t,{quadrantHalfHeight:i,quadrantLeft:a,quadrantHalfWidth:n,quadrantTop:s}=e,r=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+n,y:s,width:n,height:i,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:a,y:s,width:n,height:i,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:a,y:s+i,width:n,height:i,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:a+n,y:s+i,width:n,height:i,fill:this.themeConfig.quadrant4Fill}];for(const l of r)l.text.x=l.x+l.width/2,0===this.data.points.length?(l.text.y=l.y+l.height/2,l.text.horizontalPos="middle"):(l.text.y=l.y+this.config.quadrantTextTopPadding,l.text.horizontalPos="top");return r}getQuadrantPoints(t){const{quadrantSpace:e}=t,{quadrantHeight:i,quadrantLeft:n,quadrantTop:s,quadrantWidth:r}=e,l=a.linear().domain([0,1]).range([n,r+n]),o=a.linear().domain([0,1]).range([i+s,s]);return this.data.points.map(t=>{const e=this.classes.get(t.className);e&&(t={...e,...t});return{x:l(t.x),y:o(t.y),fill:t.color??this.themeConfig.quadrantPointFill,radius:t.radius??this.config.pointRadius,text:{text:t.text,fill:this.themeConfig.quadrantPointTextFill,x:l(t.x),y:o(t.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:t.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:t.strokeWidth??"0px"}})}getBorders(t){const e=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:i}=t,{quadrantHalfHeight:a,quadrantHeight:n,quadrantLeft:s,quadrantHalfWidth:r,quadrantTop:l,quadrantWidth:o}=i;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-e,y1:l,x2:s+o+e,y2:l},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s+o,y1:l+e,x2:s+o,y2:l+n-e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-e,y1:l+n,x2:s+o+e,y2:l+n},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s,y1:l+e,x2:s,y2:l+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+r,y1:l+e,x2:s+r,y2:l+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+e,y1:l+a,x2:s+o-e,y2:l+a}]}getTitle(t){if(t)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 t=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),e=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),i=this.config.showTitle&&!!this.data.titleText,a=this.data.points.length>0?"bottom":this.config.xAxisPosition,n=this.calculateSpace(a,t,e,i);return{points:this.getQuadrantPoints(n),quadrants:this.getQuadrants(n),axisLabels:this.getAxisLabels(a,t,e,n),borderLines:this.getBorders(n),title:this.getTitle(i)}}},i.__name(t,"QuadrantBuilder"),t),o=(e=class extends Error{constructor(t,e,i){super(`value for ${t} ${e} is invalid, please use a valid ${i}`),this.name="InvalidStyleError"}},i.__name(e,"InvalidStyleError"),e);function h(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}function c(t){return!/^\d+$/.test(t)}function d(t){return!/^\d+px$/.test(t)}i.__name(h,"validateHexCode"),i.__name(c,"validateNumber"),i.__name(d,"validateSizeInPixels");var u=i.getConfig2();function x(t){return i.sanitizeText(t.trim(),u)}i.__name(x,"textSanitizer");var f=new l;function g(t){f.setData({quadrant1Text:x(t.text)})}function p(t){f.setData({quadrant2Text:x(t.text)})}function y(t){f.setData({quadrant3Text:x(t.text)})}function _(t){f.setData({quadrant4Text:x(t.text)})}function m(t){f.setData({xAxisLeftText:x(t.text)})}function T(t){f.setData({xAxisRightText:x(t.text)})}function q(t){f.setData({yAxisTopText:x(t.text)})}function A(t){f.setData({yAxisBottomText:x(t.text)})}function S(t){const e={};for(const i of t){const[t,a]=i.trim().split(/\s*:\s*/);if("radius"===t){if(c(a))throw new o(t,a,"number");e.radius=parseInt(a)}else if("color"===t){if(h(a))throw new o(t,a,"hex code");e.color=a}else if("stroke-color"===t){if(h(a))throw new o(t,a,"hex code");e.strokeColor=a}else{if("stroke-width"!==t)throw new Error(`style named ${t} is not supported.`);if(d(a))throw new o(t,a,"number of pixels (eg. 10px)");e.strokeWidth=a}}return e}function b(t,e,i,a,n){const s=S(n);f.addPoints([{x:i,y:a,text:x(t.text),className:e,...s}])}function k(t,e){f.addClass(t,S(e))}function F(t){f.setConfig({chartWidth:t})}function P(t){f.setConfig({chartHeight:t})}function C(){const t=i.getConfig2(),{themeVariables:e,quadrantChart:a}=t;return a&&f.setConfig(a),f.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),f.setData({titleText:i.getDiagramTitle()}),f.build()}i.__name(g,"setQuadrant1Text"),i.__name(p,"setQuadrant2Text"),i.__name(y,"setQuadrant3Text"),i.__name(_,"setQuadrant4Text"),i.__name(m,"setXAxisLeftText"),i.__name(T,"setXAxisRightText"),i.__name(q,"setYAxisTopText"),i.__name(A,"setYAxisBottomText"),i.__name(S,"parseStyles"),i.__name(b,"addPoint"),i.__name(k,"addClass"),i.__name(F,"setWidth"),i.__name(P,"setHeight"),i.__name(C,"getQuadrantData");var v={parser:s,db:{setWidth:F,setHeight:P,setQuadrant1Text:g,setQuadrant2Text:p,setQuadrant3Text:y,setQuadrant4Text:_,setXAxisLeftText:m,setXAxisRightText:T,setYAxisTopText:q,setYAxisBottomText:A,parseStyles:S,addPoint:b,addClass:k,getQuadrantData:C,clear:i.__name(function(){f.clear(),i.clear()},"clear"),setAccTitle:i.setAccTitle,getAccTitle:i.getAccTitle,setDiagramTitle:i.setDiagramTitle,getDiagramTitle:i.getDiagramTitle,getAccDescription:i.getAccDescription,setAccDescription:i.setAccDescription},renderer:{draw:i.__name((t,e,a,n)=>{var s,r,l;function o(t){return"top"===t?"hanging":"middle"}function h(t){return"left"===t?"start":"middle"}function c(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}i.__name(o,"getDominantBaseLine"),i.__name(h,"getTextAnchor"),i.__name(c,"getTransformation");const d=i.getConfig2();i.log.debug("Rendering quadrant chart\n"+t);const u=d.securityLevel;let x;"sandbox"===u&&(x=i.select("#i"+e));const f=("sandbox"===u?i.select(x.nodes()[0].contentDocument.body):i.select("body")).select(`[id="${e}"]`),g=f.append("g").attr("class","main"),p=(null==(s=d.quadrantChart)?void 0:s.chartWidth)??500,y=(null==(r=d.quadrantChart)?void 0:r.chartHeight)??500;i.configureSvgSize(f,y,p,(null==(l=d.quadrantChart)?void 0:l.useMaxWidth)??!0),f.attr("viewBox","0 0 "+p+" "+y),n.db.setHeight(y),n.db.setWidth(p);const _=n.db.getQuadrantData(),m=g.append("g").attr("class","quadrants"),T=g.append("g").attr("class","border"),q=g.append("g").attr("class","data-points"),A=g.append("g").attr("class","labels"),S=g.append("g").attr("class","title");_.title&&S.append("text").attr("x",0).attr("y",0).attr("fill",_.title.fill).attr("font-size",_.title.fontSize).attr("dominant-baseline",o(_.title.horizontalPos)).attr("text-anchor",h(_.title.verticalPos)).attr("transform",c(_.title)).text(_.title.text),_.borderLines&&T.selectAll("line").data(_.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const b=m.selectAll("g.quadrant").data(_.quadrants).enter().append("g").attr("class","quadrant");b.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),b.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>o(t.text.horizontalPos)).attr("text-anchor",t=>h(t.text.verticalPos)).attr("transform",t=>c(t.text)).text(t=>t.text.text);A.selectAll("g.label").data(_.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>o(t.horizontalPos)).attr("text-anchor",t=>h(t.verticalPos)).attr("transform",t=>c(t));const k=q.selectAll("g.data-point").data(_.points).enter().append("g").attr("class","data-point");k.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeColor).attr("stroke-width",t=>t.strokeWidth),k.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>o(t.text.horizontalPos)).attr("text-anchor",t=>h(t.text.verticalPos)).attr("transform",t=>c(t.text))},"draw")},styles:i.__name(()=>"","styles")};exports.diagram=v;
|
|
2
|
+
//# sourceMappingURL=quadrantDiagram-AYHSOK5B-DDWEpiLt.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _a, _b;
|
|
2
|
-
import { _ as __name, s as setAccDescription, g as getAccDescription, t as getDiagramTitle, q as setDiagramTitle, a as getAccTitle, b as setAccTitle, c as getConfig2, l as log, d as select, e as configureSvgSize, z as clear, H as defaultConfig_default, a1 as getThemeVariables3, i as sanitizeText } from "./index-
|
|
3
|
-
import { l as linear } from "./linear-
|
|
2
|
+
import { _ as __name, s as setAccDescription, g as getAccDescription, t as getDiagramTitle, q as setDiagramTitle, a as getAccTitle, b as setAccTitle, c as getConfig2, l as log, d as select, e as configureSvgSize, z as clear, H as defaultConfig_default, a1 as getThemeVariables3, i as sanitizeText } from "./index-C-Hyw7_i.js";
|
|
3
|
+
import { l as linear } from "./linear-QB06oWOn.js";
|
|
4
4
|
var parser = function() {
|
|
5
5
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
6
6
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1335,4 +1335,4 @@ var diagram = {
|
|
|
1335
1335
|
export {
|
|
1336
1336
|
diagram
|
|
1337
1337
|
};
|
|
1338
|
-
//# sourceMappingURL=quadrantDiagram-AYHSOK5B-
|
|
1338
|
+
//# sourceMappingURL=quadrantDiagram-AYHSOK5B-DG8iuyyj.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
2
|
-
//# sourceMappingURL=radar-ZZBFDIW7-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-BDJaQNLh.cjs");exports.RadarModule=e.RadarModule,exports.createRadarServices=e.createRadarServices;
|
|
2
|
+
//# sourceMappingURL=radar-ZZBFDIW7-DvMtYd_q.cjs.map
|
package/dist/{requirementDiagram-UZGBJVZJ-DjP_ZBLH.js → requirementDiagram-UZGBJVZJ-CE1BWtzG.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _a;
|
|
2
|
-
import { g as getDiagramElement } from "./chunk-55IACEB6-
|
|
3
|
-
import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-
|
|
4
|
-
import { _ as __name, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, q as setDiagramTitle, t as getDiagramTitle, c as getConfig2, l as log, z as clear, D as __export, p as getRegisteredLayoutAlgorithm, r as render, u as utils_default } from "./index-
|
|
2
|
+
import { g as getDiagramElement } from "./chunk-55IACEB6-B96t1BIq.js";
|
|
3
|
+
import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-B_p3A_22.js";
|
|
4
|
+
import { _ as __name, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, q as setDiagramTitle, t as getDiagramTitle, c as getConfig2, l as log, z as clear, D as __export, p as getRegisteredLayoutAlgorithm, r as render, u as utils_default } from "./index-C-Hyw7_i.js";
|
|
5
5
|
var parser = function() {
|
|
6
6
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
7
7
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1161,4 +1161,4 @@ var diagram = {
|
|
|
1161
1161
|
export {
|
|
1162
1162
|
diagram
|
|
1163
1163
|
};
|
|
1164
|
-
//# sourceMappingURL=requirementDiagram-UZGBJVZJ-
|
|
1164
|
+
//# sourceMappingURL=requirementDiagram-UZGBJVZJ-CE1BWtzG.js.map
|