@sme.up/ketchup2 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_basePickBy-Ca4nzDCq.js → _basePickBy-B6LialOA.js} +2 -2
- package/dist/{_basePickBy-C8RsxlpP.cjs → _basePickBy-Cp1jDLqY.cjs} +1 -1
- package/dist/{_baseUniq-4DYbSb4g.js → _baseUniq-DVDmJvCh.js} +1 -1
- package/dist/{_baseUniq-4AMvkUHx.cjs → _baseUniq-nmEWBwYw.cjs} +1 -1
- package/dist/{arc-0onjh8Q1.cjs → arc-CEU53J5p.cjs} +1 -1
- package/dist/{arc-Bp2TTsxp.js → arc-DY9lVoW5.js} +1 -1
- package/dist/{architecture-O4VJ6CD3-BO-KWOMO.js → architecture-O4VJ6CD3-D6muUqd4.js} +1 -1
- package/dist/{architecture-O4VJ6CD3-BY3keMJR.cjs → architecture-O4VJ6CD3-bJ_1C0Zf.cjs} +1 -1
- package/dist/{architectureDiagram-W76B3OCA-D9RT0bQQ.js → architectureDiagram-VXUJARFQ-ClJdEDO3.js} +491 -490
- package/dist/{architectureDiagram-W76B3OCA-Bl619mqp.cjs → architectureDiagram-VXUJARFQ-Nn9XUh0Q.cjs} +3 -3
- package/dist/assets/svg/smeup-ai.svg +4 -0
- package/dist/basic-components/button/button-types.d.ts +2 -2
- package/dist/basic-components/button/button-types.d.ts.map +1 -1
- package/dist/basic-components/button/button-utils.d.ts +2 -2
- package/dist/basic-components/button/button-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/notification/notification-types.d.ts +5 -0
- package/dist/basic-components/notification/notification-types.d.ts.map +1 -0
- package/dist/basic-components/notification/notification.d.ts +4 -0
- package/dist/basic-components/notification/notification.d.ts.map +1 -0
- package/dist/basic-components/tree/tree.assets.d.ts.map +1 -1
- package/dist/basic-components/typography/typography-types.d.ts +1 -0
- package/dist/basic-components/typography/typography-types.d.ts.map +1 -1
- package/dist/basic-components/typography/typography.d.ts.map +1 -1
- package/dist/{blockDiagram-QIGZ2CNN-Cwz-49Hp.cjs → blockDiagram-VD42YOAC-B44HyGVt.cjs} +1 -1
- package/dist/{blockDiagram-QIGZ2CNN-DusKAnCv.js → blockDiagram-VD42YOAC-BmflobDW.js} +5 -5
- package/dist/{c4Diagram-FPNF74CW-BgZK1w_0.cjs → c4Diagram-YG6GDRKO-B-P2-hDh.cjs} +1 -1
- package/dist/{c4Diagram-FPNF74CW-CLRSUR6U.js → c4Diagram-YG6GDRKO-BS1FWcjl.js} +2 -2
- package/dist/{channel-Dj-sZC_y.js → channel-BV6Uh6EZ.js} +1 -1
- package/dist/channel-DzXAJtya.cjs +1 -0
- package/dist/{chunk-4BX2VUAB-Bgwq4Diy.js → chunk-4BX2VUAB-BJZ1vQr9.js} +1 -1
- package/dist/{chunk-4BX2VUAB-B3l1Ono_.cjs → chunk-4BX2VUAB-B_ZYGc02.cjs} +1 -1
- package/dist/{chunk-55IACEB6-C1opfhtY.js → chunk-55IACEB6-CLxuqzmA.js} +1 -1
- package/dist/{chunk-55IACEB6-C6PQzR3x.cjs → chunk-55IACEB6-CZ_-WQkE.cjs} +1 -1
- package/dist/{chunk-K7UQS3LO-CpNcY51w.js → chunk-B4BG7PRW-CAoVudRf.js} +4 -4
- package/dist/{chunk-K7UQS3LO-jP-qBkZT.cjs → chunk-B4BG7PRW-DgVx49jz.cjs} +1 -1
- package/dist/{chunk-TVAH2DTR-DnLs3B2h.cjs → chunk-DI55MBZ5-CLSmi7TN.cjs} +1 -1
- package/dist/{chunk-TVAH2DTR-BYlMByBM.js → chunk-DI55MBZ5-CRHiuZe8.js} +3 -3
- package/dist/{chunk-FMBD7UC4-W5VVHmrc.js → chunk-FMBD7UC4-Czxrc5If.js} +1 -1
- package/dist/{chunk-FMBD7UC4-C51OwFKG.cjs → chunk-FMBD7UC4-DKJyLwV-.cjs} +1 -1
- package/dist/{chunk-QN33PNHL-BEvtonwy.cjs → chunk-QN33PNHL-4MRql7R0.cjs} +1 -1
- package/dist/{chunk-QN33PNHL-B5ELiM3k.js → chunk-QN33PNHL-DhcutEk3.js} +1 -1
- package/dist/{chunk-QZHKN3VN-BGGyel0T.cjs → chunk-QZHKN3VN-BKpxOymE.cjs} +1 -1
- package/dist/{chunk-QZHKN3VN-JGjxSMku.js → chunk-QZHKN3VN-DHzNcVH-.js} +1 -1
- package/dist/{chunk-TZMSLE5B-CTsbwbO3.cjs → chunk-TZMSLE5B-CUTZm_Mo.cjs} +1 -1
- package/dist/{chunk-TZMSLE5B-BKH4WKcd.js → chunk-TZMSLE5B-zmb3g2xE.js} +1 -1
- package/dist/{classDiagram-KNZD7YFC-jStKK4eB.cjs → classDiagram-2ON5EDUG-BAv5yqTF.cjs} +1 -1
- package/dist/{classDiagram-v2-RKCZMP56-CQIiCgRf.js → classDiagram-2ON5EDUG-CL66znZJ.js} +2 -2
- package/dist/{classDiagram-v2-RKCZMP56-jStKK4eB.cjs → classDiagram-v2-WZHVMYZB-BAv5yqTF.cjs} +1 -1
- package/dist/{classDiagram-KNZD7YFC-CQIiCgRf.js → classDiagram-v2-WZHVMYZB-CL66znZJ.js} +2 -2
- package/dist/clone-B3Eg32bl.cjs +1 -0
- package/dist/{clone-BWQ0Hk5U.js → clone-BAhCV7QZ.js} +1 -1
- package/dist/components/app-bar/app-bar.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs-types.d.ts +4 -0
- package/dist/components/breadcrumbs/breadcrumbs-types.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/echarts/echarts-graph-types.d.ts.map +1 -0
- package/dist/components/echarts/echarts-graph.d.ts.map +1 -0
- package/dist/components/input-panel/assets/data.d.ts +1 -0
- package/dist/components/input-panel/assets/data.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-utils.d.ts +17 -2
- package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/components/notification-widget/notification-widget-types.d.ts +12 -0
- package/dist/components/notification-widget/notification-widget-types.d.ts.map +1 -0
- package/dist/components/notification-widget/notification-widget.assets.d.ts +3 -0
- package/dist/components/notification-widget/notification-widget.assets.d.ts.map +1 -0
- package/dist/components/notification-widget/notification-widget.d.ts +4 -0
- package/dist/components/notification-widget/notification-widget.d.ts.map +1 -0
- package/dist/components/path/path-node.d.ts +5 -0
- package/dist/components/path/path-node.d.ts.map +1 -0
- package/dist/components/path/path-types.d.ts +68 -0
- package/dist/components/path/path-types.d.ts.map +1 -0
- package/dist/components/path/path.d.ts +4 -0
- package/dist/components/path/path.d.ts.map +1 -0
- package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar-types.d.ts +4 -0
- package/dist/components/tab-bar/tab-bar-types.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-B4JnIgaa.js → cose-bilkent-S5V4N54A-CXUgNIhF.js} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-DfSYAN4b.cjs → cose-bilkent-S5V4N54A-Cwq5tiLA.cjs} +1 -1
- package/dist/{dagre-5GWH7T2D-prvPY7PG.cjs → dagre-6UL2VRFP-CTbq7ORA.cjs} +1 -1
- package/dist/{dagre-5GWH7T2D-DJ2exxQr.js → dagre-6UL2VRFP-CsS5EFGW.js} +6 -6
- package/dist/{diagram-N5W7TBWH-CeUaJPOp.cjs → diagram-PSM6KHXK-CFcTzPF8.cjs} +1 -1
- package/dist/{diagram-N5W7TBWH-By_2P30B.js → diagram-PSM6KHXK-YKTCI_7z.js} +4 -4
- package/dist/{diagram-QEK2KX5R-BUvMLN6S.cjs → diagram-QEK2KX5R-BEClDZ4k.cjs} +1 -1
- package/dist/{diagram-QEK2KX5R-DbnHXk_4.js → diagram-QEK2KX5R-CcZCzLby.js} +3 -3
- package/dist/{diagram-S2PKOQOG-OK7fnVi7.cjs → diagram-S2PKOQOG-DKBRpWrK.cjs} +1 -1
- package/dist/{diagram-S2PKOQOG-BrYhLVIy.js → diagram-S2PKOQOG-Y83t5Da-.js} +3 -3
- package/dist/{erDiagram-AWTI2OKA-g_jlgQzA.cjs → erDiagram-Q2GNP2WA-5CruL17O.cjs} +1 -1
- package/dist/{erDiagram-AWTI2OKA-RFzTot8M.js → erDiagram-Q2GNP2WA-Opu3ARB6.js} +4 -4
- package/dist/{flowDiagram-PVAE7QVJ-B3R11Aox.cjs → flowDiagram-NV44I4VS-BbaIeVre.cjs} +1 -1
- package/dist/{flowDiagram-PVAE7QVJ-D9mXGgMa.js → flowDiagram-NV44I4VS-gkAKereJ.js} +5 -5
- package/dist/{ganttDiagram-OWAHRB6G-Pm7GR_TY.cjs → ganttDiagram-LVOFAZNH-B2kjhiE2.cjs} +4 -4
- package/dist/{ganttDiagram-OWAHRB6G-DBRiNI5D.js → ganttDiagram-LVOFAZNH-C54h5Bw4.js} +59 -58
- package/dist/{gitGraph-ZV4HHKMB-eEo6BeMY.js → gitGraph-ZV4HHKMB-CBEQhdS2.js} +1 -1
- package/dist/{gitGraph-ZV4HHKMB-D8V_C5KP.cjs → gitGraph-ZV4HHKMB-DYT2T5uG.cjs} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-DboC2-zX.cjs → gitGraphDiagram-NY62KEGX-Bpi_cePd.cjs} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-CqQTEJ2T.js → gitGraphDiagram-NY62KEGX-S-pRqr3b.js} +4 -4
- package/dist/{graph-CDx2s7rR.cjs → graph-C1g271vn.cjs} +1 -1
- package/dist/{graph-CI25A6Kp.js → graph-C_QYlmwV.js} +2 -2
- package/dist/index-CrHtig09.cjs +392 -0
- package/dist/index-DWeebcIQ.js +71429 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/info-63CPKGFF-DFJJ8WM_.js +5 -0
- package/dist/{info-63CPKGFF-BNTMLGHi.cjs → info-63CPKGFF-MtLEvjGU.cjs} +1 -1
- package/dist/{infoDiagram-STP46IZ2-cEMZnZwe.cjs → infoDiagram-F6ZHWCRC-CNRQyhbb.cjs} +1 -1
- package/dist/{infoDiagram-STP46IZ2-XI14GI2O.js → infoDiagram-F6ZHWCRC-DEtOKmNB.js} +2 -2
- package/dist/{journeyDiagram-BIP6EPQ6-4r8HPM76.js → journeyDiagram-XKPGCS4Q-3ZUFHmst.js} +4 -4
- package/dist/{journeyDiagram-BIP6EPQ6-DSATBOy7.cjs → journeyDiagram-XKPGCS4Q-gRYnUMxc.cjs} +1 -1
- package/dist/{kanban-definition-6OIFK2YF-IpG0t2dU.js → kanban-definition-3W4ZIXB7-Bwj4VFdZ.js} +2 -2
- package/dist/{kanban-definition-6OIFK2YF-DArDhI5N.cjs → kanban-definition-3W4ZIXB7-Dt685GXI.cjs} +1 -1
- package/dist/ketchup2.cjs.js +1 -1
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +24 -22
- package/dist/{layout-tzBIhASb.cjs → layout-Bhv89T5Y.cjs} +1 -1
- package/dist/{layout-BecFZ4zf.js → layout-C1uUiR9-.js} +4 -4
- package/dist/{linear-R3HoIM28.cjs → linear-CR5ROFQD.cjs} +1 -1
- package/dist/{linear-xGWDkmQQ.js → linear-DyqA-LhX.js} +1 -1
- package/dist/{mermaid-parser.core-DR7pLDVq.cjs → mermaid-parser.core-DMEz4diY.cjs} +2 -2
- package/dist/{mermaid-parser.core-DgSQdd2P.js → mermaid-parser.core-_B_M89_-.js} +11 -11
- package/dist/{mindmap-definition-Q6HEUPPD-DziA_FlL.cjs → mindmap-definition-VGOIOE7T-DFq8jWcw.cjs} +5 -5
- package/dist/{mindmap-definition-Q6HEUPPD-CBd_3OoJ.js → mindmap-definition-VGOIOE7T-DoGzqmVl.js} +89 -86
- package/dist/{packet-HUATNLJX-8m622N0T.js → packet-HUATNLJX-Dv7JBjbi.js} +1 -1
- package/dist/{packet-HUATNLJX-D4q4_tdF.cjs → packet-HUATNLJX-wFxM-SlC.cjs} +1 -1
- package/dist/{pie-WTHONI2E-Xdgx4zVT.cjs → pie-WTHONI2E-DZfhIIRd.cjs} +1 -1
- package/dist/pie-WTHONI2E-gLd9fr_z.js +5 -0
- package/dist/{pieDiagram-ADFJNKIX-B27FR3VA.js → pieDiagram-ADFJNKIX-K2lT_O-Y.js} +4 -4
- package/dist/{pieDiagram-ADFJNKIX-C3_xZOy7.cjs → pieDiagram-ADFJNKIX-hH9aE0Q_.cjs} +1 -1
- package/dist/{quadrantDiagram-LMRXKWRM-DTb52YQ-.js → quadrantDiagram-AYHSOK5B-AnaSBQtW.js} +2 -2
- package/dist/{quadrantDiagram-LMRXKWRM-DjfwCssa.cjs → quadrantDiagram-AYHSOK5B-DI-PC8V-.cjs} +1 -1
- package/dist/{radar-NJJJXTRR-CmDh362n.cjs → radar-NJJJXTRR-BIXqh1MI.cjs} +1 -1
- package/dist/radar-NJJJXTRR-rw52LzAi.js +5 -0
- package/dist/{requirementDiagram-4UW4RH46-CNnd2CY8.cjs → requirementDiagram-UZGBJVZJ-BqeKS5M7.cjs} +1 -1
- package/dist/{requirementDiagram-4UW4RH46-Cpp55-Ws.js → requirementDiagram-UZGBJVZJ-CkGm4u8a.js} +3 -3
- package/dist/{sankeyDiagram-GR3RE2ED-DKK_ac-i.js → sankeyDiagram-TZEHDZUN-CqdQ5OcU.js} +1 -1
- package/dist/{sankeyDiagram-GR3RE2ED-DGwCb9oE.cjs → sankeyDiagram-TZEHDZUN-RiKKYqxR.cjs} +1 -1
- package/dist/{sequenceDiagram-C3RYC4MD-BREsTbdm.cjs → sequenceDiagram-WL72ISMW-Bof9txlA.cjs} +1 -1
- package/dist/{sequenceDiagram-C3RYC4MD-CO9gcZLo.js → sequenceDiagram-WL72ISMW-CiCppIOZ.js} +3 -3
- package/dist/{stateDiagram-KXAO66HF-CVAuruFr.js → stateDiagram-FKZM4ZOC-Bb4kdkNA.js} +4 -4
- package/dist/{stateDiagram-KXAO66HF-M3UqQp73.cjs → stateDiagram-FKZM4ZOC-CtjWXmXj.cjs} +1 -1
- package/dist/{stateDiagram-v2-UMBNRL4Z-Ck-52CSr.js → stateDiagram-v2-4FDKWEC3-B4ibGBn-.js} +2 -2
- package/dist/{stateDiagram-v2-UMBNRL4Z-Dx3SusnW.cjs → stateDiagram-v2-4FDKWEC3-CbIZTApi.cjs} +1 -1
- package/dist/{timeline-definition-XQNQX7LJ-Dc_TAvXx.js → timeline-definition-IT6M3QCI-9g18juq0.js} +2 -2
- package/dist/{timeline-definition-XQNQX7LJ-DjsU7CwU.cjs → timeline-definition-IT6M3QCI-T3O9mr34.cjs} +1 -1
- package/dist/{treemap-75Q7IDZK-CqGc4LKE.js → treemap-75Q7IDZK-C3U-LE7s.js} +1 -1
- package/dist/{treemap-75Q7IDZK-Bq3QS7Yd.cjs → treemap-75Q7IDZK-D-aoF_HJ.cjs} +1 -1
- package/dist/types/data-structures.d.ts +51 -1
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/global.d.ts +2 -1
- package/dist/types/global.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -1
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/{xychartDiagram-6GGTOJPD-BQLiiNMc.cjs → xychartDiagram-PRI3JC2R-4n3Pt2Kc.cjs} +1 -1
- package/dist/{xychartDiagram-6GGTOJPD-CHaqT91Z.js → xychartDiagram-PRI3JC2R-CcmXJ1KX.js} +2 -2
- package/package.json +18 -18
- package/dist/channel-DeT7sbHs.cjs +0 -1
- package/dist/clone-BbrGYdY4.cjs +0 -1
- package/dist/components/echarts.tsx/echarts-graph-types.d.ts.map +0 -1
- package/dist/components/echarts.tsx/echarts-graph.d.ts.map +0 -1
- package/dist/index-Dj0ZpuHR.js +0 -24067
- package/dist/index-TKKiVw_8.cjs +0 -301
- package/dist/info-63CPKGFF-DFSUnGmm.js +0 -5
- package/dist/pie-WTHONI2E-BkaU-1dT.js +0 -5
- package/dist/radar-NJJJXTRR-DFMxAHYB.js +0 -5
- /package/dist/assets/svg/{more_horizontal.svg → more_horiz.svg} +0 -0
- /package/dist/components/{echarts.tsx → echarts}/echarts-graph-types.d.ts +0 -0
- /package/dist/components/{echarts.tsx → echarts}/echarts-graph.d.ts +0 -0
package/dist/{mindmap-definition-Q6HEUPPD-DziA_FlL.cjs → mindmap-definition-VGOIOE7T-DFq8jWcw.cjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("./chunk-55IACEB6-
|
|
2
|
-
`+
|
|
3
|
-
Expecting `+P.join(", ")+", got '"+(this.terminals_[_]||_)+"'":V="Parse error on line "+(A+1)+": Unexpected "+(_==q?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(V,{text:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("./chunk-55IACEB6-CZ_-WQkE.cjs"),ne=require("./chunk-QN33PNHL-4MRql7R0.cjs"),r=require("./index-CrHtig09.cjs");var j=function(){var a=r.__name(function(L,n,t,o){for(t=t||{},o=L.length;o--;t[L[o]]=n);return t},"o"),e=[1,4],i=[1,13],l=[1,12],f=[1,15],h=[1,16],p=[1,20],y=[1,19],u=[6,7,8],N=[1,26],G=[1,24],z=[1,25],E=[6,7,11],H=[1,6,13,15,16,19,22],$=[1,33],W=[1,34],C=[1,6,7,11,13,15,16,19,22],M={trace:r.__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:r.__name(function(n,t,o,c,d,s,I){var g=s.length-1;switch(d){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",s[g].id),c.addNode(s[g-1].length,s[g].id,s[g].descr,s[g].type);break;case 16:c.getLogger().trace("Icon: ",s[g]),c.decorateNode({icon:s[g]});break;case 17:case 21:c.decorateNode({class:s[g]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",s[g].id),c.addNode(0,s[g].id,s[g].descr,s[g].type);break;case 20:c.decorateNode({icon:s[g]});break;case 25:c.getLogger().trace("node found ..",s[g-2]),this.$={id:s[g-1],descr:s[g-1],type:c.getType(s[g-2],s[g])};break;case 26:this.$={id:s[g],descr:s[g],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",s[g-3]),this.$={id:s[g-3],descr:s[g-1],type:c.getType(s[g-2],s[g])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:i,7:[1,10],9:9,12:11,13:l,14:14,15:f,16:h,17:17,18:18,19:p,22:y},a(u,[2,3]),{1:[2,2]},a(u,[2,4]),a(u,[2,5]),{1:[2,6],6:i,12:21,13:l,14:14,15:f,16:h,17:17,18:18,19:p,22:y},{6:i,9:22,12:11,13:l,14:14,15:f,16:h,17:17,18:18,19:p,22:y},{6:N,7:G,10:23,11:z},a(E,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:p,22:y}),a(E,[2,18]),a(E,[2,19]),a(E,[2,20]),a(E,[2,21]),a(E,[2,23]),a(E,[2,24]),a(E,[2,26],{19:[1,30]}),{20:[1,31]},{6:N,7:G,10:32,11:z},{1:[2,7],6:i,12:21,13:l,14:14,15:f,16:h,17:17,18:18,19:p,22:y},a(H,[2,14],{7:$,11:W}),a(C,[2,8]),a(C,[2,9]),a(C,[2,10]),a(E,[2,15]),a(E,[2,16]),a(E,[2,17]),{20:[1,35]},{21:[1,36]},a(H,[2,13],{7:$,11:W}),a(C,[2,11]),a(C,[2,12]),{21:[1,37]},a(E,[2,25]),a(E,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:r.__name(function(n,t){if(t.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=t,o}},"parseError"),parse:r.__name(function(n){var t=this,o=[0],c=[],d=[null],s=[],I=this.table,g="",A=0,X=0,K=2,q=1,Z=s.slice.call(arguments,1),m=Object.create(this.lexer),x={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(x.yy[B]=this.yy[B]);m.setInput(n,x.yy),x.yy.lexer=m,x.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var U=m.yylloc;s.push(U);var ee=m.options&&m.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function te(b){o.length=o.length-2*b,d.length=d.length-b,s.length=s.length-b}r.__name(te,"popStack");function Y(){var b;return b=c.pop()||m.lex()||q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=t.symbols_[b]||b),b}r.__name(Y,"lex");for(var _,v,S,F,T={},w,k,Q,P;;){if(v=o[o.length-1],this.defaultActions[v]?S=this.defaultActions[v]:((_===null||typeof _>"u")&&(_=Y()),S=I[v]&&I[v][_]),typeof S>"u"||!S.length||!S[0]){var V="";P=[];for(w in I[v])this.terminals_[w]&&w>K&&P.push("'"+this.terminals_[w]+"'");m.showPosition?V="Parse error on line "+(A+1)+`:
|
|
2
|
+
`+m.showPosition()+`
|
|
3
|
+
Expecting `+P.join(", ")+", got '"+(this.terminals_[_]||_)+"'":V="Parse error on line "+(A+1)+": Unexpected "+(_==q?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(V,{text:m.match,token:this.terminals_[_]||_,line:m.yylineno,loc:U,expected:P})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+_);switch(S[0]){case 1:o.push(_),d.push(m.yytext),s.push(m.yylloc),o.push(S[1]),_=null,X=m.yyleng,g=m.yytext,A=m.yylineno,U=m.yylloc;break;case 2:if(k=this.productions_[S[1]][1],T.$=d[d.length-k],T._$={first_line:s[s.length-(k||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(k||1)].first_column,last_column:s[s.length-1].last_column},ee&&(T._$.range=[s[s.length-(k||1)].range[0],s[s.length-1].range[1]]),F=this.performAction.apply(T,[g,X,A,x.yy,S[1],d,s].concat(Z)),typeof F<"u")return F;k&&(o=o.slice(0,-1*k*2),d=d.slice(0,-1*k),s=s.slice(0,-1*k)),o.push(this.productions_[S[1]][0]),d.push(T.$),s.push(T._$),Q=I[o[o.length-2]][o[o.length-1]],o.push(Q);break;case 3:return!0}}return!0},"parse")},J=function(){var L={EOF:1,parseError:r.__name(function(t,o){if(this.yy.parser)this.yy.parser.parseError(t,o);else throw new Error(t)},"parseError"),setInput:r.__name(function(n,t){return this.yy=t||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r.__name(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var t=n.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:r.__name(function(n){var t=n.length,o=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:r.__name(function(){return this._more=!0,this},"more"),reject:r.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r.__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:r.__name(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r.__name(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r.__name(function(){var n=this.pastInput(),t=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
5
5
|
`+t+"^"},"showPosition"),test_match:r.__name(function(n,t){var o,c,d;if(this.options.backtrack_lexer&&(d={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&&(d.yylloc.range=this.yylloc.range.slice(0))),c=n[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],o=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var s in d)this[s]=d[s];return!1}return!1},"test_match"),next:r.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,t,o,c;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),s=0;s<d.length;s++)if(o=this._input.match(this.rules[d[s]]),o&&(!t||o[0].length>t[0].length)){if(t=o,c=s,this.options.backtrack_lexer){if(n=this.test_match(o,d[s]),n!==!1)return n;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(n=this.test_match(t,d[c]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:r.__name(function(){var t=this.next();return t||this.lex()},"lex"),begin:r.__name(function(t){this.conditionStack.push(t)},"begin"),popState:r.__name(function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:r.__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:r.__name(function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:r.__name(function(t){this.begin(t)},"pushState"),stateStackSize:r.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:r.__name(function(t,o,c,d){switch(c){case 0:return t.getLogger().trace("Found comment",o.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return t.getLogger().trace("description:",o.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),t.getLogger().trace("node end ...",o.yytext),"NODE_DEND";case 30:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 35:return t.getLogger().trace("Long description:",o.yytext),20;case 36:return t.getLogger().trace("Long description:",o.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return L}();M.lexer=J;function R(){this.yy={}}return r.__name(R,"Parser"),R.prototype=M,M.Parser=R,new R}();j.parser=j;var se=j,
|
|
7
|
-
`+a);const
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:r.__name(function(){var t=this.next();return t||this.lex()},"lex"),begin:r.__name(function(t){this.conditionStack.push(t)},"begin"),popState:r.__name(function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:r.__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:r.__name(function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:r.__name(function(t){this.begin(t)},"pushState"),stateStackSize:r.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:r.__name(function(t,o,c,d){switch(c){case 0:return t.getLogger().trace("Found comment",o.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return t.getLogger().trace("description:",o.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),t.getLogger().trace("node end ...",o.yytext),"NODE_DEND";case 30:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 35:return t.getLogger().trace("Long description:",o.yytext),20;case 36:return t.getLogger().trace("Long description:",o.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return L}();M.lexer=J;function R(){this.yy={}}return r.__name(R,"Parser"),R.prototype=M,M.Parser=R,new R}();j.parser=j;var se=j,D={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},O,re=(O=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 i=this.nodes.length-1;i>=0;i--)if(this.nodes[i].level<e)return this.nodes[i];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,i,l,f){r.log.info("addNode",e,i,l,f);let h=!1;this.nodes.length===0?(this.baseLevel=e,e=0,h=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,h=!1);const p=r.getConfig2();let y=p.mindmap?.padding??r.defaultConfig_default.mindmap.padding;switch(f){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:y*=2;break}const u={id:this.count++,nodeId:r.sanitizeText(i,p),level:e,descr:r.sanitizeText(l,p),type:f,children:[],width:p.mindmap?.maxNodeWidth??r.defaultConfig_default.mindmap.maxNodeWidth,padding:y,isRoot:h},N=this.getParent(e);if(N)N.children.push(u),this.nodes.push(u);else if(h)this.nodes.push(u);else throw new Error(`There can be only one root. No parent could be found for ("${u.descr}")`)}getType(e,i){switch(r.log.debug("In get type",e,i),e){case"[":return this.nodeType.RECT;case"(":return i===")"?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,i){this.elements[e]=i}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const i=r.getConfig2(),l=this.nodes[this.nodes.length-1];e.icon&&(l.icon=r.sanitizeText(e.icon,i)),e.class&&(l.class=r.sanitizeText(e.class,i))}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,i){if(e.level===0?e.section=void 0:e.section=i,e.children)for(const[l,f]of e.children.entries()){const h=e.level===0?l:i;this.assignSections(f,h)}}flattenNodes(e,i){const l=["mindmap-node"];e.isRoot===!0?l.push("section-root","section--1"):e.section!==void 0&&l.push(`section-${e.section}`),e.class&&l.push(e.class);const f=l.join(" "),h=r.__name(y=>{switch(y){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";case D.NO_BORDER:default:return"rect"}},"getShapeFromType"),p={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,isGroup:!1,shape:h(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:f,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(i.push(p),e.children)for(const y of e.children)this.flattenNodes(y,i)}generateEdges(e,i){if(e.children)for(const l of e.children){let f="edge";l.section!==void 0&&(f+=` section-edge-${l.section}`);const h=e.level+1;f+=` edge-depth-${h}`;const p={id:`edge_${e.id}_${l.id}`,start:e.id.toString(),end:l.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:f,depth:e.level,section:l.section};i.push(p),this.generateEdges(l,i)}}getData(){const e=this.getMindmap(),i=r.getConfig2(),f=r.getUserDefinedConfig().layout!==void 0,h=i;if(f||(h.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:h};r.log.debug("getData: mindmapRoot",e,i),this.assignSections(e);const p=[],y=[];this.flattenNodes(e,p),this.generateEdges(e,y),r.log.debug(`getData: processed ${p.length} nodes and ${y.length} edges`);const u=new Map;for(const N of p)u.set(N.id,{shape:N.shape,width:N.width,height:N.height,padding:N.padding});return{nodes:p,edges:y,config:h,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(u),type:"mindmap",diagramId:"mindmap-"+r.v4()}}getLogger(){return r.log}},r.__name(O,"MindmapDB"),O),ae=r.__name(async(a,e,i,l)=>{r.log.debug(`Rendering mindmap diagram
|
|
7
|
+
`+a);const f=l.db,h=f.getData(),p=ie.getDiagramElement(e,h.config.securityLevel);h.type=l.type,h.layoutAlgorithm=r.getRegisteredLayoutAlgorithm(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=e,f.getMindmap()&&(h.nodes.forEach(u=>{u.shape==="rounded"?(u.radius=15,u.taper=15,u.stroke="none",u.width=0,u.padding=15):u.shape==="circle"?u.padding=10:u.shape==="rect"&&(u.width=0,u.padding=10)}),await r.render(h,p),ne.setupViewPortForSVG(p,h.config.mindmap?.padding??r.defaultConfig_default.mindmap.padding,"mindmapDiagram",h.config.mindmap?.useMaxWidth??r.defaultConfig_default.mindmap.useMaxWidth))},"draw"),oe={draw:ae},ce=r.__name(a=>{let e="";for(let i=0;i<a.THEME_COLOR_LIMIT;i++)a["lineColor"+i]=a["lineColor"+i]||a["cScaleInv"+i],r.isDark(a["lineColor"+i])?a["lineColor"+i]=r.lighten(a["lineColor"+i],20):a["lineColor"+i]=r.darken(a["lineColor"+i],20);for(let i=0;i<a.THEME_COLOR_LIMIT;i++){const l=""+(17-3*i);e+=`
|
|
8
8
|
.section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
|
|
9
9
|
fill: ${a["cScale"+i]};
|
|
10
10
|
}
|
package/dist/{mindmap-definition-Q6HEUPPD-CBd_3OoJ.js → mindmap-definition-VGOIOE7T-DoGzqmVl.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { g as ae } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as oe } from "./chunk-QN33PNHL-
|
|
3
|
-
import { _ as c, l as O, o as ce, r as le, F as U, c as H, i as F, af as he, ag as ge, W as de, X as ue, Y as pe } from "./index-
|
|
1
|
+
import { g as ae } from "./chunk-55IACEB6-CLxuqzmA.js";
|
|
2
|
+
import { s as oe } from "./chunk-QN33PNHL-DhcutEk3.js";
|
|
3
|
+
import { _ as c, l as O, o as ce, r as le, F as U, c as H, i as F, af as he, ag as ge, W as de, X as ue, Y as pe } from "./index-DWeebcIQ.js";
|
|
4
4
|
var W = function() {
|
|
5
5
|
var r = /* @__PURE__ */ c(function(L, s, t, a) {
|
|
6
6
|
for (t = t || {}, a = L.length; a--; t[L[a]] = s) ;
|
|
7
7
|
return t;
|
|
8
|
-
}, "o"), e = [1, 4], i = [1, 13], l = [1, 12],
|
|
8
|
+
}, "o"), e = [1, 4], i = [1, 13], l = [1, 12], f = [1, 15], h = [1, 16], p = [1, 20], m = [1, 19], u = [6, 7, 8], N = [1, 26], z = [1, 24], X = [1, 25], _ = [6, 7, 11], Y = [1, 6, 13, 15, 16, 19, 22], q = [1, 33], J = [1, 34], I = [1, 6, 7, 11, 13, 15, 16, 19, 22], B = {
|
|
9
9
|
trace: /* @__PURE__ */ c(function() {
|
|
10
10
|
}, "trace"),
|
|
11
11
|
yy: {},
|
|
@@ -60,7 +60,7 @@ var W = function() {
|
|
|
60
60
|
break;
|
|
61
61
|
}
|
|
62
62
|
}, "anonymous"),
|
|
63
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: i, 7: [1, 10], 9: 9, 12: 11, 13: l, 14: 14, 15:
|
|
63
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: i, 7: [1, 10], 9: 9, 12: 11, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, r(u, [2, 3]), { 1: [2, 2] }, r(u, [2, 4]), r(u, [2, 5]), { 1: [2, 6], 6: i, 12: 21, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: i, 9: 22, 12: 11, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: N, 7: z, 10: 23, 11: X }, r(_, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: m }), r(_, [2, 18]), r(_, [2, 19]), r(_, [2, 20]), r(_, [2, 21]), r(_, [2, 23]), r(_, [2, 24]), r(_, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: N, 7: z, 10: 32, 11: X }, { 1: [2, 7], 6: i, 12: 21, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, r(Y, [2, 14], { 7: q, 11: J }), r(I, [2, 8]), r(I, [2, 9]), r(I, [2, 10]), r(_, [2, 15]), r(_, [2, 16]), r(_, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, r(Y, [2, 13], { 7: q, 11: J }), r(I, [2, 11]), r(I, [2, 12]), { 21: [1, 37] }, r(_, [2, 25]), r(_, [2, 27])],
|
|
64
64
|
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
65
65
|
parseError: /* @__PURE__ */ c(function(s, t) {
|
|
66
66
|
if (t.recoverable)
|
|
@@ -71,13 +71,13 @@ var W = function() {
|
|
|
71
71
|
}
|
|
72
72
|
}, "parseError"),
|
|
73
73
|
parse: /* @__PURE__ */ c(function(s) {
|
|
74
|
-
var t = this, a = [0], o = [], d = [null], n = [], R = this.table, g = "", w = 0, K = 0, ie = 2, Q = 1, se = n.slice.call(arguments, 1),
|
|
74
|
+
var t = this, a = [0], o = [], d = [null], n = [], R = this.table, g = "", w = 0, K = 0, ie = 2, Q = 1, se = n.slice.call(arguments, 1), y = Object.create(this.lexer), x = { yy: {} };
|
|
75
75
|
for (var V in this.yy)
|
|
76
76
|
Object.prototype.hasOwnProperty.call(this.yy, V) && (x.yy[V] = this.yy[V]);
|
|
77
|
-
|
|
78
|
-
var G =
|
|
77
|
+
y.setInput(s, x.yy), x.yy.lexer = y, x.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
|
|
78
|
+
var G = y.yylloc;
|
|
79
79
|
n.push(G);
|
|
80
|
-
var ne =
|
|
80
|
+
var ne = y.options && y.options.ranges;
|
|
81
81
|
typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
82
82
|
function re(b) {
|
|
83
83
|
a.length = a.length - 2 * b, d.length = d.length - b, n.length = n.length - b;
|
|
@@ -85,21 +85,21 @@ var W = function() {
|
|
|
85
85
|
c(re, "popStack");
|
|
86
86
|
function Z() {
|
|
87
87
|
var b;
|
|
88
|
-
return b = o.pop() ||
|
|
88
|
+
return b = o.pop() || y.lex() || Q, typeof b != "number" && (b instanceof Array && (o = b, b = o.pop()), b = t.symbols_[b] || b), b;
|
|
89
89
|
}
|
|
90
90
|
c(Z, "lex");
|
|
91
|
-
for (var E, v, S, j, T = {}, P,
|
|
91
|
+
for (var E, v, S, j, T = {}, P, D, ee, M; ; ) {
|
|
92
92
|
if (v = a[a.length - 1], this.defaultActions[v] ? S = this.defaultActions[v] : ((E === null || typeof E > "u") && (E = Z()), S = R[v] && R[v][E]), typeof S > "u" || !S.length || !S[0]) {
|
|
93
93
|
var $ = "";
|
|
94
94
|
M = [];
|
|
95
95
|
for (P in R[v])
|
|
96
96
|
this.terminals_[P] && P > ie && M.push("'" + this.terminals_[P] + "'");
|
|
97
|
-
|
|
98
|
-
` +
|
|
97
|
+
y.showPosition ? $ = "Parse error on line " + (w + 1) + `:
|
|
98
|
+
` + y.showPosition() + `
|
|
99
99
|
Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "Parse error on line " + (w + 1) + ": Unexpected " + (E == Q ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError($, {
|
|
100
|
-
text:
|
|
100
|
+
text: y.match,
|
|
101
101
|
token: this.terminals_[E] || E,
|
|
102
|
-
line:
|
|
102
|
+
line: y.yylineno,
|
|
103
103
|
loc: G,
|
|
104
104
|
expected: M
|
|
105
105
|
});
|
|
@@ -108,16 +108,16 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "
|
|
|
108
108
|
throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + E);
|
|
109
109
|
switch (S[0]) {
|
|
110
110
|
case 1:
|
|
111
|
-
a.push(E), d.push(
|
|
111
|
+
a.push(E), d.push(y.yytext), n.push(y.yylloc), a.push(S[1]), E = null, K = y.yyleng, g = y.yytext, w = y.yylineno, G = y.yylloc;
|
|
112
112
|
break;
|
|
113
113
|
case 2:
|
|
114
|
-
if (
|
|
115
|
-
first_line: n[n.length - (
|
|
114
|
+
if (D = this.productions_[S[1]][1], T.$ = d[d.length - D], T._$ = {
|
|
115
|
+
first_line: n[n.length - (D || 1)].first_line,
|
|
116
116
|
last_line: n[n.length - 1].last_line,
|
|
117
|
-
first_column: n[n.length - (
|
|
117
|
+
first_column: n[n.length - (D || 1)].first_column,
|
|
118
118
|
last_column: n[n.length - 1].last_column
|
|
119
119
|
}, ne && (T._$.range = [
|
|
120
|
-
n[n.length - (
|
|
120
|
+
n[n.length - (D || 1)].range[0],
|
|
121
121
|
n[n.length - 1].range[1]
|
|
122
122
|
]), j = this.performAction.apply(T, [
|
|
123
123
|
g,
|
|
@@ -129,7 +129,7 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "
|
|
|
129
129
|
n
|
|
130
130
|
].concat(se)), typeof j < "u")
|
|
131
131
|
return j;
|
|
132
|
-
|
|
132
|
+
D && (a = a.slice(0, -1 * D * 2), d = d.slice(0, -1 * D), n = n.slice(0, -1 * D)), a.push(this.productions_[S[1]][0]), d.push(T.$), n.push(T._$), ee = R[a[a.length - 2]][a[a.length - 1]], a.push(ee);
|
|
133
133
|
break;
|
|
134
134
|
case 3:
|
|
135
135
|
return !0;
|
|
@@ -405,7 +405,7 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "
|
|
|
405
405
|
return c(A, "Parser"), A.prototype = B, B.Parser = A, new A();
|
|
406
406
|
}();
|
|
407
407
|
W.parser = W;
|
|
408
|
-
var fe = W,
|
|
408
|
+
var fe = W, k = {
|
|
409
409
|
DEFAULT: 0,
|
|
410
410
|
NO_BORDER: 0,
|
|
411
411
|
ROUNDED_RECT: 1,
|
|
@@ -416,10 +416,10 @@ var fe = W, D = {
|
|
|
416
416
|
HEXAGON: 6
|
|
417
417
|
}, C, ye = (C = class {
|
|
418
418
|
constructor() {
|
|
419
|
-
this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType =
|
|
419
|
+
this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = k, 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);
|
|
420
420
|
}
|
|
421
421
|
clear() {
|
|
422
|
-
this.nodes = [], this.count = 0, this.elements = {};
|
|
422
|
+
this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
|
|
423
423
|
}
|
|
424
424
|
getParent(e) {
|
|
425
425
|
for (let i = this.nodes.length - 1; i >= 0; i--)
|
|
@@ -430,34 +430,37 @@ var fe = W, D = {
|
|
|
430
430
|
getMindmap() {
|
|
431
431
|
return this.nodes.length > 0 ? this.nodes[0] : null;
|
|
432
432
|
}
|
|
433
|
-
addNode(e, i, l,
|
|
434
|
-
O.info("addNode", e, i, l,
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
433
|
+
addNode(e, i, l, f) {
|
|
434
|
+
O.info("addNode", e, i, l, f);
|
|
435
|
+
let h = !1;
|
|
436
|
+
this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
|
|
437
|
+
const p = H();
|
|
438
|
+
let m = p.mindmap?.padding ?? U.mindmap.padding;
|
|
439
|
+
switch (f) {
|
|
438
440
|
case this.nodeType.ROUNDED_RECT:
|
|
439
441
|
case this.nodeType.RECT:
|
|
440
442
|
case this.nodeType.HEXAGON:
|
|
441
|
-
|
|
443
|
+
m *= 2;
|
|
442
444
|
break;
|
|
443
445
|
}
|
|
444
|
-
const
|
|
446
|
+
const u = {
|
|
445
447
|
id: this.count++,
|
|
446
|
-
nodeId: F(i,
|
|
448
|
+
nodeId: F(i, p),
|
|
447
449
|
level: e,
|
|
448
|
-
descr: F(l,
|
|
449
|
-
type:
|
|
450
|
+
descr: F(l, p),
|
|
451
|
+
type: f,
|
|
450
452
|
children: [],
|
|
451
|
-
width:
|
|
452
|
-
padding:
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
453
|
+
width: p.mindmap?.maxNodeWidth ?? U.mindmap.maxNodeWidth,
|
|
454
|
+
padding: m,
|
|
455
|
+
isRoot: h
|
|
456
|
+
}, N = this.getParent(e);
|
|
457
|
+
if (N)
|
|
458
|
+
N.children.push(u), this.nodes.push(u);
|
|
459
|
+
else if (h)
|
|
460
|
+
this.nodes.push(u);
|
|
458
461
|
else
|
|
459
462
|
throw new Error(
|
|
460
|
-
`There can be only one root. No parent could be found for ("${
|
|
463
|
+
`There can be only one root. No parent could be found for ("${u.descr}")`
|
|
461
464
|
);
|
|
462
465
|
}
|
|
463
466
|
getType(e, i) {
|
|
@@ -518,9 +521,9 @@ var fe = W, D = {
|
|
|
518
521
|
*/
|
|
519
522
|
assignSections(e, i) {
|
|
520
523
|
if (e.level === 0 ? e.section = void 0 : e.section = i, e.children)
|
|
521
|
-
for (const [l,
|
|
524
|
+
for (const [l, f] of e.children.entries()) {
|
|
522
525
|
const h = e.level === 0 ? l : i;
|
|
523
|
-
this.assignSections(
|
|
526
|
+
this.assignSections(f, h);
|
|
524
527
|
}
|
|
525
528
|
}
|
|
526
529
|
/**
|
|
@@ -530,28 +533,28 @@ var fe = W, D = {
|
|
|
530
533
|
*/
|
|
531
534
|
flattenNodes(e, i) {
|
|
532
535
|
const l = ["mindmap-node"];
|
|
533
|
-
e.
|
|
534
|
-
const
|
|
535
|
-
switch (
|
|
536
|
-
case
|
|
536
|
+
e.isRoot === !0 ? l.push("section-root", "section--1") : e.section !== void 0 && l.push(`section-${e.section}`), e.class && l.push(e.class);
|
|
537
|
+
const f = l.join(" "), h = /* @__PURE__ */ c((m) => {
|
|
538
|
+
switch (m) {
|
|
539
|
+
case k.CIRCLE:
|
|
537
540
|
return "mindmapCircle";
|
|
538
|
-
case
|
|
541
|
+
case k.RECT:
|
|
539
542
|
return "rect";
|
|
540
|
-
case
|
|
543
|
+
case k.ROUNDED_RECT:
|
|
541
544
|
return "rounded";
|
|
542
|
-
case
|
|
545
|
+
case k.CLOUD:
|
|
543
546
|
return "cloud";
|
|
544
|
-
case
|
|
547
|
+
case k.BANG:
|
|
545
548
|
return "bang";
|
|
546
|
-
case
|
|
549
|
+
case k.HEXAGON:
|
|
547
550
|
return "hexagon";
|
|
548
|
-
case
|
|
551
|
+
case k.DEFAULT:
|
|
549
552
|
return "defaultMindmapNode";
|
|
550
|
-
case
|
|
553
|
+
case k.NO_BORDER:
|
|
551
554
|
default:
|
|
552
555
|
return "rect";
|
|
553
556
|
}
|
|
554
|
-
}, "getShapeFromType"),
|
|
557
|
+
}, "getShapeFromType"), p = {
|
|
555
558
|
id: e.id.toString(),
|
|
556
559
|
domId: "node_" + e.id.toString(),
|
|
557
560
|
label: e.descr,
|
|
@@ -560,7 +563,7 @@ var fe = W, D = {
|
|
|
560
563
|
width: e.width,
|
|
561
564
|
height: e.height ?? 0,
|
|
562
565
|
padding: e.padding,
|
|
563
|
-
cssClasses:
|
|
566
|
+
cssClasses: f,
|
|
564
567
|
cssStyles: [],
|
|
565
568
|
look: "default",
|
|
566
569
|
icon: e.icon,
|
|
@@ -572,9 +575,9 @@ var fe = W, D = {
|
|
|
572
575
|
type: e.type,
|
|
573
576
|
section: e.section
|
|
574
577
|
};
|
|
575
|
-
if (i.push(
|
|
576
|
-
for (const
|
|
577
|
-
this.flattenNodes(
|
|
578
|
+
if (i.push(p), e.children)
|
|
579
|
+
for (const m of e.children)
|
|
580
|
+
this.flattenNodes(m, i);
|
|
578
581
|
}
|
|
579
582
|
/**
|
|
580
583
|
* Generate edges from parent-child relationships in mindmap tree
|
|
@@ -584,11 +587,11 @@ var fe = W, D = {
|
|
|
584
587
|
generateEdges(e, i) {
|
|
585
588
|
if (e.children)
|
|
586
589
|
for (const l of e.children) {
|
|
587
|
-
let
|
|
588
|
-
l.section !== void 0 && (
|
|
590
|
+
let f = "edge";
|
|
591
|
+
l.section !== void 0 && (f += ` section-edge-${l.section}`);
|
|
589
592
|
const h = e.level + 1;
|
|
590
|
-
|
|
591
|
-
const
|
|
593
|
+
f += ` edge-depth-${h}`;
|
|
594
|
+
const p = {
|
|
592
595
|
id: `edge_${e.id}_${l.id}`,
|
|
593
596
|
start: e.id.toString(),
|
|
594
597
|
end: l.id.toString(),
|
|
@@ -596,12 +599,12 @@ var fe = W, D = {
|
|
|
596
599
|
curve: "basis",
|
|
597
600
|
thickness: "normal",
|
|
598
601
|
look: "default",
|
|
599
|
-
classes:
|
|
602
|
+
classes: f,
|
|
600
603
|
// Store mindmap-specific data
|
|
601
604
|
depth: e.level,
|
|
602
605
|
section: l.section
|
|
603
606
|
};
|
|
604
|
-
i.push(
|
|
607
|
+
i.push(p), this.generateEdges(l, i);
|
|
605
608
|
}
|
|
606
609
|
}
|
|
607
610
|
/**
|
|
@@ -610,29 +613,29 @@ var fe = W, D = {
|
|
|
610
613
|
* @returns Structured data containing nodes, edges, and config
|
|
611
614
|
*/
|
|
612
615
|
getData() {
|
|
613
|
-
const e = this.getMindmap(), i = H(),
|
|
614
|
-
if (
|
|
616
|
+
const e = this.getMindmap(), i = H(), f = he().layout !== void 0, h = i;
|
|
617
|
+
if (f || (h.layout = "cose-bilkent"), !e)
|
|
615
618
|
return {
|
|
616
619
|
nodes: [],
|
|
617
620
|
edges: [],
|
|
618
621
|
config: h
|
|
619
622
|
};
|
|
620
623
|
O.debug("getData: mindmapRoot", e, i), this.assignSections(e);
|
|
621
|
-
const
|
|
622
|
-
this.flattenNodes(e,
|
|
623
|
-
`getData: processed ${
|
|
624
|
+
const p = [], m = [];
|
|
625
|
+
this.flattenNodes(e, p), this.generateEdges(e, m), O.debug(
|
|
626
|
+
`getData: processed ${p.length} nodes and ${m.length} edges`
|
|
624
627
|
);
|
|
625
|
-
const
|
|
626
|
-
for (const
|
|
627
|
-
|
|
628
|
-
shape:
|
|
629
|
-
width:
|
|
630
|
-
height:
|
|
631
|
-
padding:
|
|
628
|
+
const u = /* @__PURE__ */ new Map();
|
|
629
|
+
for (const N of p)
|
|
630
|
+
u.set(N.id, {
|
|
631
|
+
shape: N.shape,
|
|
632
|
+
width: N.width,
|
|
633
|
+
height: N.height,
|
|
634
|
+
padding: N.padding
|
|
632
635
|
});
|
|
633
636
|
return {
|
|
634
|
-
nodes:
|
|
635
|
-
edges:
|
|
637
|
+
nodes: p,
|
|
638
|
+
edges: m,
|
|
636
639
|
config: h,
|
|
637
640
|
// Store the root node for mindmap-specific layout algorithms
|
|
638
641
|
rootNode: e,
|
|
@@ -646,7 +649,7 @@ var fe = W, D = {
|
|
|
646
649
|
rankSpacing: 50,
|
|
647
650
|
// Default spacing between ranks
|
|
648
651
|
// Add shapes for ELK compatibility
|
|
649
|
-
shapes: Object.fromEntries(
|
|
652
|
+
shapes: Object.fromEntries(u),
|
|
650
653
|
// Additional properties that layout algorithms might expect
|
|
651
654
|
type: "mindmap",
|
|
652
655
|
diagramId: "mindmap-" + ge()
|
|
@@ -659,13 +662,13 @@ var fe = W, D = {
|
|
|
659
662
|
}, c(C, "MindmapDB"), C), me = /* @__PURE__ */ c(async (r, e, i, l) => {
|
|
660
663
|
O.debug(`Rendering mindmap diagram
|
|
661
664
|
` + r);
|
|
662
|
-
const
|
|
665
|
+
const f = l.db, h = f.getData(), p = ae(e, h.config.securityLevel);
|
|
663
666
|
h.type = l.type, h.layoutAlgorithm = ce(h.config.layout, {
|
|
664
667
|
fallback: "cose-bilkent"
|
|
665
|
-
}), h.diagramId = e,
|
|
666
|
-
|
|
667
|
-
}), await le(h,
|
|
668
|
-
|
|
668
|
+
}), h.diagramId = e, f.getMindmap() && (h.nodes.forEach((u) => {
|
|
669
|
+
u.shape === "rounded" ? (u.radius = 15, u.taper = 15, u.stroke = "none", u.width = 0, u.padding = 15) : u.shape === "circle" ? u.padding = 10 : u.shape === "rect" && (u.width = 0, u.padding = 10);
|
|
670
|
+
}), await le(h, p), oe(
|
|
671
|
+
p,
|
|
669
672
|
h.config.mindmap?.padding ?? U.mindmap.padding,
|
|
670
673
|
"mindmapDiagram",
|
|
671
674
|
h.config.mindmap?.useMaxWidth ?? U.mindmap.useMaxWidth
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-DMEz4diY.cjs");exports.PacketModule=e.PacketModule;exports.createPacketServices=e.createPacketServices;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-DMEz4diY.cjs");exports.PieModule=e.PieModule;exports.createPieServices=e.createPieServices;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a8 as S, a3 as F, aI as j, _ as p, g as q, s as H, a as Z, b as J, q as K, p as Q, l as z, c as X, D as Y, H as ee, N as te, e as ae, y as re, F as ne } from "./index-
|
|
2
|
-
import { p as ie } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as se } from "./mermaid-parser.core-
|
|
4
|
-
import { d as R } from "./arc-
|
|
1
|
+
import { a8 as S, a3 as F, aI as j, _ as p, g as q, s as H, a as Z, b as J, q as K, p as Q, l as z, c as X, D as Y, H as ee, N as te, e as ae, y as re, F as ne } from "./index-DWeebcIQ.js";
|
|
2
|
+
import { p as ie } from "./chunk-4BX2VUAB-BJZ1vQr9.js";
|
|
3
|
+
import { p as se } from "./mermaid-parser.core-_B_M89_-.js";
|
|
4
|
+
import { d as R } from "./arc-DY9lVoW5.js";
|
|
5
5
|
import { o as le } from "./ordinal-DfAQgscy.js";
|
|
6
6
|
function oe(e, a) {
|
|
7
7
|
return a < e ? -1 : a > e ? 1 : a >= e ? 0 : NaN;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-CrHtig09.cjs"),q=require("./chunk-4BX2VUAB-B_ZYGc02.cjs"),B=require("./mermaid-parser.core-DMEz4diY.cjs"),N=require("./arc-CEU53J5p.cjs"),V=require("./ordinal-CagbB1m8.cjs");function U(e,n){return n<e?-1:n>e?1:n>=e?0:NaN}function j(e){return e}function X(){var e=j,n=U,f=null,S=t.constant(0),s=t.constant(t.tau),c=t.constant(0);function o(a){var i,u=(a=t.array(a)).length,d,y,h=0,g=new Array(u),l=new Array(u),v=+S.apply(this,arguments),A=Math.min(t.tau,Math.max(-t.tau,s.apply(this,arguments)-v)),m,w=Math.min(Math.abs(A)/u,c.apply(this,arguments)),T=w*(A<0?-1:1),p;for(i=0;i<u;++i)(p=l[g[i]=i]=+e(a[i],i,a))>0&&(h+=p);for(n!=null?g.sort(function(x,D){return n(l[x],l[D])}):f!=null&&g.sort(function(x,D){return f(a[x],a[D])}),i=0,y=h?(A-u*T)/h:0;i<u;++i,v=m)d=g[i],p=l[d],m=v+(p>0?p*y:0)+T,l[d]={data:a[d],index:i,value:p,startAngle:v,endAngle:m,padAngle:w};return l}return o.value=function(a){return arguments.length?(e=typeof a=="function"?a:t.constant(+a),o):e},o.sortValues=function(a){return arguments.length?(n=a,f=null,o):n},o.sort=function(a){return arguments.length?(f=a,n=null,o):f},o.startAngle=function(a){return arguments.length?(S=typeof a=="function"?a:t.constant(+a),o):S},o.endAngle=function(a){return arguments.length?(s=typeof a=="function"?a:t.constant(+a),o):s},o.padAngle=function(a){return arguments.length?(c=typeof a=="function"?a:t.constant(+a),o):c},o}var Z=t.defaultConfig_default.pie,E={sections:new Map,showData:!1},_=E.sections,M=E.showData,H=structuredClone(Z),J=t.__name(()=>structuredClone(H),"getConfig"),K=t.__name(()=>{_=new Map,M=E.showData,t.clear()},"clear"),Q=t.__name(({label:e,value:n})=>{if(n<0)throw new Error(`"${e}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);_.has(e)||(_.set(e,n),t.log.debug(`added new section: ${e}, with value: ${n}`))},"addSection"),Y=t.__name(()=>_,"getSections"),ee=t.__name(e=>{M=e},"setShowData"),te=t.__name(()=>M,"getShowData"),O={getConfig:J,clear:K,setDiagramTitle:t.setDiagramTitle,getDiagramTitle:t.getDiagramTitle,setAccTitle:t.setAccTitle,getAccTitle:t.getAccTitle,setAccDescription:t.setAccDescription,getAccDescription:t.getAccDescription,addSection:Q,getSections:Y,setShowData:ee,getShowData:te},ae=t.__name((e,n)=>{q.populateCommonDb(e,n),n.setShowData(e.showData),e.sections.map(n.addSection)},"populateDb"),ne={parse:t.__name(async e=>{const n=await B.parse("pie",e);t.log.debug(n),ae(n,O)},"parse")},re=t.__name(e=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${e.pieStrokeColor};
|
|
4
4
|
stroke-width : ${e.pieStrokeWidth};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o, s as _e, g as Ae, q as ie, p as ke, a as Fe, b as Pe, c as zt, l as bt, d as Lt, e as ve, y as Ce, F as D, K as Le, i as Ee } from "./index-
|
|
2
|
-
import { l as ee } from "./linear-
|
|
1
|
+
import { _ as o, s as _e, g as Ae, q as ie, p as ke, a as Fe, b as Pe, c as zt, l as bt, d as Lt, e as ve, y as Ce, F as D, K as Le, i as Ee } from "./index-DWeebcIQ.js";
|
|
2
|
+
import { l as ee } from "./linear-DyqA-LhX.js";
|
|
3
3
|
var Et = function() {
|
|
4
4
|
var t = /* @__PURE__ */ o(function(M, r, l, x) {
|
|
5
5
|
for (l = l || {}, x = M.length; x--; l[M[x]] = r) ;
|
package/dist/{quadrantDiagram-LMRXKWRM-DjfwCssa.cjs → quadrantDiagram-AYHSOK5B-DI-PC8V-.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CrHtig09.cjs"),Zt=require("./linear-CR5ROFQD.cjs");var Ct=function(){var t=e.__name(function(X,l,o,f){for(o=o||{},f=X.length;f--;o[X[f]]=l);return o},"o"),s=[1,3],x=[1,4],d=[1,5],c=[1,6],p=[1,7],_=[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],S=[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],n=[55,56,57],A=[2,36],u=[1,37],y=[1,36],m=[1,38],T=[1,35],q=[1,43],g=[1,41],j=[1,14],ot=[1,23],ut=[1,18],ft=[1,19],xt=[1,20],ct=[1,21],qt=[1,22],ht=[1,24],i=[1,25],Lt=[1,26],Et=[1,27],Dt=[1,28],zt=[1,29],N=[1,32],W=[1,33],k=[1,34],F=[1,39],P=[1,40],C=[1,42],v=[1,44],Q=[1,62],O=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Vt=[1,65],It=[1,66],wt=[1,67],Bt=[1,68],Rt=[1,69],Nt=[1,70],Wt=[1,71],Ut=[1,72],Qt=[1,73],Ot=[1,74],Ht=[1,75],Xt=[1,76],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],G=[1,90],K=[1,91],Z=[1,92],J=[1,99],$=[1,93],tt=[1,96],et=[1,94],at=[1,95],it=[1,97],nt=[1,98],bt=[1,102],Mt=[10,55,56,57],B=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],St={trace:e.__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:e.__name(function(l,o,f,h,b,a,dt){var r=a.length-1;switch(b){case 23:this.$=a[r];break;case 24:this.$=a[r-1]+""+a[r];break;case 26:this.$=a[r-1]+a[r];break;case 27:this.$=[a[r].trim()];break;case 28:a[r-2].push(a[r].trim()),this.$=a[r-2];break;case 29:this.$=a[r-4],h.addClass(a[r-2],a[r]);break;case 37:this.$=[];break;case 42:this.$=a[r].trim(),h.setDiagramTitle(this.$);break;case 43:this.$=a[r].trim(),h.setAccTitle(this.$);break;case 44:case 45:this.$=a[r].trim(),h.setAccDescription(this.$);break;case 46:h.addSection(a[r].substr(8)),this.$=a[r].substr(8);break;case 47:h.addPoint(a[r-3],"",a[r-1],a[r],[]);break;case 48:h.addPoint(a[r-4],a[r-3],a[r-1],a[r],[]);break;case 49:h.addPoint(a[r-4],"",a[r-2],a[r-1],a[r]);break;case 50:h.addPoint(a[r-5],a[r-4],a[r-2],a[r-1],a[r]);break;case 51:h.setXAxisLeftText(a[r-2]),h.setXAxisRightText(a[r]);break;case 52:a[r-1].text+=" ⟶ ",h.setXAxisLeftText(a[r-1]);break;case 53:h.setXAxisLeftText(a[r]);break;case 54:h.setYAxisBottomText(a[r-2]),h.setYAxisTopText(a[r]);break;case 55:a[r-1].text+=" ⟶ ",h.setYAxisBottomText(a[r-1]);break;case 56:h.setYAxisBottomText(a[r]);break;case 57:h.setQuadrant1Text(a[r]);break;case 58:h.setQuadrant2Text(a[r]);break;case 59:h.setQuadrant3Text(a[r]);break;case 60:h.setQuadrant4Text(a[r]);break;case 64:this.$={text:a[r],type:"text"};break;case 65:this.$={text:a[r-1].text+""+a[r],type:a[r-1].type};break;case 66:this.$={text:a[r],type:"text"};break;case 67:this.$={text:a[r],type:"markdown"};break;case 68:this.$=a[r];break;case 69:this.$=a[r-1]+""+a[r];break}},"anonymous"),table:[{18:s,26:1,27:2,28:x,55:d,56:c,57:p},{1:[3]},{18:s,26:8,27:2,28:x,55:d,56:c,57:p},{18:s,26:9,27:2,28:x,55:d,56:c,57:p},t(_,[2,33],{29:10}),t(S,[2,61]),t(S,[2,62]),t(S,[2,63]),{1:[2,30]},{1:[2,31]},t(n,A,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:y,10:m,12:T,13:q,14:g,18:j,25:ot,35:ut,37:ft,39:xt,41:ct,42:qt,48:ht,50:i,51:Lt,52:Et,53:Dt,54:zt,60:N,61:W,63:k,64:F,65:P,66:C,67:v}),t(_,[2,34]),{27:45,55:d,56:c,57:p},t(n,[2,37]),t(n,A,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:u,5:y,10:m,12:T,13:q,14:g,18:j,25:ot,35:ut,37:ft,39:xt,41:ct,42:qt,48:ht,50:i,51:Lt,52:Et,53:Dt,54:zt,60:N,61:W,63:k,64:F,65:P,66:C,67:v}),t(n,[2,39]),t(n,[2,40]),t(n,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(n,[2,45]),t(n,[2,46]),{18:[1,50]},{4:u,5:y,10:m,12:T,13:q,14:g,43:51,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:u,5:y,10:m,12:T,13:q,14:g,43:52,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:u,5:y,10:m,12:T,13:q,14:g,43:53,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:u,5:y,10:m,12:T,13:q,14:g,43:54,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:u,5:y,10:m,12:T,13:q,14:g,43:55,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:u,5:y,10:m,12:T,13:q,14:g,43:56,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:u,5:y,8:Q,10:m,12:T,13:q,14:g,18:O,44:[1,57],47:[1,58],58:60,59:59,63:k,64:F,65:P,66:C,67:v},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(_,[2,35]),t(n,[2,38]),t(n,[2,42]),t(n,[2,43]),t(n,[2,44]),{3:64,4:Vt,5:It,6:wt,7:Bt,8:Rt,9:Nt,10:Wt,11:Ut,12:Qt,13:Ot,14:Ht,15:Xt,21:63},t(n,[2,53],{59:59,58:60,4:u,5:y,8:Q,10:m,12:T,13:q,14:g,18:O,49:[1,77],63:k,64:F,65:P,66:C,67:v}),t(n,[2,56],{59:59,58:60,4:u,5:y,8:Q,10:m,12:T,13:q,14:g,18:O,49:[1,78],63:k,64:F,65:P,66:C,67:v}),t(n,[2,57],{59:59,58:60,4:u,5:y,8:Q,10:m,12:T,13:q,14:g,18:O,63:k,64:F,65:P,66:C,67:v}),t(n,[2,58],{59:59,58:60,4:u,5:y,8:Q,10:m,12:T,13:q,14:g,18:O,63:k,64:F,65:P,66:C,67:v}),t(n,[2,59],{59:59,58:60,4:u,5:y,8:Q,10:m,12:T,13:q,14:g,18:O,63:k,64:F,65:P,66:C,67:v}),t(n,[2,60],{59:59,58:60,4:u,5:y,8:Q,10:m,12:T,13:q,14:g,18:O,63:k,64:F,65:P,66:C,67:v}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:Vt,5:It,6:wt,7:Bt,8:Rt,9:Nt,10:Wt,11:Ut,12:Qt,13:Ot,14:Ht,15:Xt,18:[1,81]},t(V,[2,23]),t(V,[2,1]),t(V,[2,2]),t(V,[2,3]),t(V,[2,4]),t(V,[2,5]),t(V,[2,6]),t(V,[2,7]),t(V,[2,8]),t(V,[2,9]),t(V,[2,10]),t(V,[2,11]),t(V,[2,12]),t(n,[2,52],{58:31,43:83,4:u,5:y,10:m,12:T,13:q,14:g,60:N,61:W,63:k,64:F,65:P,66:C,67:v}),t(n,[2,55],{58:31,43:84,4:u,5:y,10:m,12:T,13:q,14:g,60:N,61:W,63:k,64:F,65:P,66:C,67:v}),{46:[1,85]},{45:[1,86]},{4:G,5:K,6:Z,8:J,11:$,13:tt,16:89,17:et,18:at,19:it,20:nt,22:88,23:87},t(V,[2,24]),t(n,[2,51],{59:59,58:60,4:u,5:y,8:Q,10:m,12:T,13:q,14:g,18:O,63:k,64:F,65:P,66:C,67:v}),t(n,[2,54],{59:59,58:60,4:u,5:y,8:Q,10:m,12:T,13:q,14:g,18:O,63:k,64:F,65:P,66:C,67:v}),t(n,[2,47],{22:88,16:89,23:100,4:G,5:K,6:Z,8:J,11:$,13:tt,17:et,18:at,19:it,20:nt}),{46:[1,101]},t(n,[2,29],{10:bt}),t(Mt,[2,27],{16:103,4:G,5:K,6:Z,8:J,11:$,13:tt,17:et,18:at,19:it,20:nt}),t(B,[2,25]),t(B,[2,13]),t(B,[2,14]),t(B,[2,15]),t(B,[2,16]),t(B,[2,17]),t(B,[2,18]),t(B,[2,19]),t(B,[2,20]),t(B,[2,21]),t(B,[2,22]),t(n,[2,49],{10:bt}),t(n,[2,48],{22:88,16:89,23:104,4:G,5:K,6:Z,8:J,11:$,13:tt,17:et,18:at,19:it,20:nt}),{4:G,5:K,6:Z,8:J,11:$,13:tt,16:89,17:et,18:at,19:it,20:nt,22:105},t(B,[2,26]),t(n,[2,50],{10:bt}),t(Mt,[2,28],{16:103,4:G,5:K,6:Z,8:J,11:$,13:tt,17:et,18:at,19:it,20:nt})],defaultActions:{8:[2,30],9:[2,31]},parseError:e.__name(function(l,o){if(o.recoverable)this.trace(l);else{var f=new Error(l);throw f.hash=o,f}},"parseError"),parse:e.__name(function(l){var o=this,f=[0],h=[],b=[null],a=[],dt=this.table,r="",pt=0,Yt=0,xe=2,jt=1,ge=a.slice.call(arguments,1),E=Object.create(this.lexer),M={yy:{}};for(var At in this.yy)Object.prototype.hasOwnProperty.call(this.yy,At)&&(M.yy[At]=this.yy[At]);E.setInput(l,M.yy),M.yy.lexer=E,M.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var kt=E.yylloc;a.push(kt);var pe=E.options&&E.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(w){f.length=f.length-2*w,b.length=b.length-w,a.length=a.length-w}e.__name(_e,"popStack");function Gt(){var w;return w=h.pop()||E.lex()||jt,typeof w!="number"&&(w instanceof Array&&(h=w,w=h.pop()),w=o.symbols_[w]||w),w}e.__name(Gt,"lex");for(var I,Y,R,Ft,st={},_t,H,Kt,yt;;){if(Y=f[f.length-1],this.defaultActions[Y]?R=this.defaultActions[Y]:((I===null||typeof I>"u")&&(I=Gt()),R=dt[Y]&&dt[Y][I]),typeof R>"u"||!R.length||!R[0]){var Pt="";yt=[];for(_t in dt[Y])this.terminals_[_t]&&_t>xe&&yt.push("'"+this.terminals_[_t]+"'");E.showPosition?Pt="Parse error on line "+(pt+1)+`:
|
|
2
2
|
`+E.showPosition()+`
|
|
3
3
|
Expecting `+yt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Pt="Parse error on line "+(pt+1)+": Unexpected "+(I==jt?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Pt,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:kt,expected:yt})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+I);switch(R[0]){case 1:f.push(I),b.push(E.yytext),a.push(E.yylloc),f.push(R[1]),I=null,Yt=E.yyleng,r=E.yytext,pt=E.yylineno,kt=E.yylloc;break;case 2:if(H=this.productions_[R[1]][1],st.$=b[b.length-H],st._$={first_line:a[a.length-(H||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(H||1)].first_column,last_column:a[a.length-1].last_column},pe&&(st._$.range=[a[a.length-(H||1)].range[0],a[a.length-1].range[1]]),Ft=this.performAction.apply(st,[r,Yt,pt,M.yy,R[1],b,a].concat(ge)),typeof Ft<"u")return Ft;H&&(f=f.slice(0,-1*H*2),b=b.slice(0,-1*H),a=a.slice(0,-1*H)),f.push(this.productions_[R[1]][0]),b.push(st.$),a.push(st._$),Kt=dt[f[f.length-2]][f[f.length-1]],f.push(Kt);break;case 3:return!0}}return!0},"parse")},fe=function(){var X={EOF:1,parseError:e.__name(function(o,f){if(this.yy.parser)this.yy.parser.parseError(o,f);else throw new Error(o)},"parseError"),setInput:e.__name(function(l,o){return this.yy=o||this.yy||{},this._input=l,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:e.__name(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var o=l.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:e.__name(function(l){var o=l.length,f=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===h.length?this.yylloc.first_column:0)+h[h.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:e.__name(function(){return this._more=!0,this},"more"),reject:e.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e.__name(function(l){this.unput(this.match.slice(l))},"less"),pastInput:e.__name(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e.__name(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e.__name(function(){var l=this.pastInput(),o=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-DMEz4diY.cjs");exports.RadarModule=e.RadarModule;exports.createRadarServices=e.createRadarServices;
|