wikied 0.7.0 → 0.8.1
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 +1 -11
- package/dist/cli/index.js +1 -1
- package/dist/client/assets/{arc-BGbUjP6l.js → arc-BcNRNWhT.js} +1 -1
- package/dist/client/assets/architecture-7EHR7CIX-BGHsj3Sd.js +1 -0
- package/dist/client/assets/{architectureDiagram-3BPJPVTR-B4z3Bib0.js → architectureDiagram-3BPJPVTR-PrKBtz_N.js} +1 -1
- package/dist/client/assets/{blockDiagram-GPEHLZMM-CM9yoR1c.js → blockDiagram-GPEHLZMM-Cu6_nrob.js} +1 -1
- package/dist/client/assets/{c4Diagram-AAUBKEIU-BJuYwiU6.js → c4Diagram-AAUBKEIU-XAOiDGD3.js} +1 -1
- package/dist/client/assets/channel-CPmtBTYe.js +1 -0
- package/dist/client/assets/{chunk-2J33WTMH-CElL4Bkg.js → chunk-2J33WTMH-C6gxPqIL.js} +1 -1
- package/dist/client/assets/{chunk-4BX2VUAB-4pLcLIM5.js → chunk-4BX2VUAB-BF6pxt2R.js} +1 -1
- package/dist/client/assets/{chunk-55IACEB6-BCehx-77.js → chunk-55IACEB6-BgFb2EGJ.js} +1 -1
- package/dist/client/assets/{chunk-727SXJPM-7cRbWNAI.js → chunk-727SXJPM-CGa5zkpd.js} +1 -1
- package/dist/client/assets/{chunk-AQP2D5EJ-CdZ5KEq0.js → chunk-AQP2D5EJ-BG2Gm9Jj.js} +1 -1
- package/dist/client/assets/{chunk-FMBD7UC4-CX3tOevw.js → chunk-FMBD7UC4-9PjtkE8N.js} +1 -1
- package/dist/client/assets/{chunk-ND2GUHAM-BIe2czkN.js → chunk-ND2GUHAM-BkwAMldP.js} +1 -1
- package/dist/client/assets/chunk-QZHKN3VN-CugKC9yc.js +1 -0
- package/dist/client/assets/classDiagram-4FO5ZUOK-CgZje55M.js +1 -0
- package/dist/client/assets/classDiagram-v2-Q7XG4LA2-CD8O_LKr.js +1 -0
- package/dist/client/assets/{cose-bilkent-S5V4N54A-BZ5-BOtV.js → cose-bilkent-S5V4N54A-DJMnAWsu.js} +1 -1
- package/dist/client/assets/{dagre-BM42HDAG-BF4eE7Vq.js → dagre-BM42HDAG-DxhB7WC5.js} +1 -1
- package/dist/client/assets/{diagram-2AECGRRQ-CBD1vPsC.js → diagram-2AECGRRQ-Bm6bCjKV.js} +1 -1
- package/dist/client/assets/{diagram-5GNKFQAL-BKVF6D-v.js → diagram-5GNKFQAL-5JYUOXRk.js} +1 -1
- package/dist/client/assets/{diagram-KO2AKTUF-B4tg5Sq2.js → diagram-KO2AKTUF-DGpZHYq_.js} +1 -1
- package/dist/client/assets/{diagram-LMA3HP47-CrtzqKHR.js → diagram-LMA3HP47-CHk9wsYZ.js} +1 -1
- package/dist/client/assets/{diagram-OG6HWLK6-B1U1l2z9.js → diagram-OG6HWLK6-CfWuAKz7.js} +1 -1
- package/dist/client/assets/{dist-2tmgITdd.js → dist-BR2D9joR.js} +1 -1
- package/dist/client/assets/{dist-BMnytQui.js → dist-BjXWQdR7.js} +1 -1
- package/dist/client/assets/{dist-BdtcHXh3.js → dist-BtQr4_T2.js} +1 -1
- package/dist/client/assets/{dist-BAyNC3jS.js → dist-C24Am8Vy.js} +1 -1
- package/dist/client/assets/{dist-BGAr6uGo.js → dist-CAQl_JeH.js} +1 -1
- package/dist/client/assets/{dist-BiKkiCmA.js → dist-CN5BUgsL.js} +1 -1
- package/dist/client/assets/{dist-DLRVIfbL.js → dist-CYBm04dn.js} +1 -1
- package/dist/client/assets/{dist-CDbDhEh_.js → dist-CqO8fBRP.js} +1 -1
- package/dist/client/assets/{dist-CHFPp6QK.js → dist-D1HFoNWi.js} +1 -1
- package/dist/client/assets/{dist-BD40sG-g.js → dist-D2gqg6XD.js} +1 -1
- package/dist/client/assets/{dist-CZj-wKzk.js → dist-DKiO2E1b.js} +1 -1
- package/dist/client/assets/{dist-BnHFa9WX.js → dist-Dgs9dPpZ.js} +1 -1
- package/dist/client/assets/{dist-4GL-blwo.js → dist-K-OE26Yi.js} +1 -1
- package/dist/client/assets/{dist-0-z0Cnty.js → dist-Pl3rvXUl.js} +1 -1
- package/dist/client/assets/{dist-44lkZ2T8.js → dist-PodDLKOH.js} +1 -1
- package/dist/client/assets/{dist--hLEDvOf.js → dist-ckTWnBTv.js} +1 -1
- package/dist/client/assets/{dist-Q6A1c5I0.js → dist-sjFMLj70.js} +1 -1
- package/dist/client/assets/{erDiagram-TEJ5UH35-B62HhqZg.js → erDiagram-TEJ5UH35-xeNgkSAy.js} +1 -1
- package/dist/client/assets/eventmodeling-FCH6USID-DphoJcXR.js +1 -0
- package/dist/client/assets/{flowDiagram-I6XJVG4X-Bgr5YjhY.js → flowDiagram-I6XJVG4X-Diocribv.js} +1 -1
- package/dist/client/assets/{ganttDiagram-6RSMTGT7-CD_17vBt.js → ganttDiagram-6RSMTGT7-xTdTc-El.js} +1 -1
- package/dist/client/assets/gitGraph-WXDBUCRP-BTW4f9fi.js +1 -0
- package/dist/client/assets/{gitGraphDiagram-PVQCEYII-BaRvMOzh.js → gitGraphDiagram-PVQCEYII-DmKIUOJx.js} +1 -1
- package/dist/client/assets/{index-BPa7ldDk.css → index-BGCXi2uF.css} +1 -1
- package/dist/client/assets/index-Cvvt5420.js +532 -0
- package/dist/client/assets/info-J43DQDTF-Cw2HNDaO.js +1 -0
- package/dist/client/assets/{infoDiagram-5YYISTIA-B4RQ7JzR.js → infoDiagram-5YYISTIA-D4cfvBEb.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-YF4QCWOH-Bbrza3Oj.js → ishikawaDiagram-YF4QCWOH-K2NTS-gk.js} +1 -1
- package/dist/client/assets/{journeyDiagram-JHISSGLW-BNSA0bV7.js → journeyDiagram-JHISSGLW-D6ZE_T8d.js} +1 -1
- package/dist/client/assets/{kanban-definition-UN3LZRKU-BShOC1Nf.js → kanban-definition-UN3LZRKU-NeD0uRbJ.js} +1 -1
- package/dist/client/assets/{linear-B_52T76x.js → linear-BB-hRShj.js} +1 -1
- package/dist/client/assets/{mermaid-parser.core-2kO9DfMJ.js → mermaid-parser.core-BGxRxHQl.js} +2 -2
- package/dist/client/assets/{mindmap-definition-RKZ34NQL-CYrR5n4p.js → mindmap-definition-RKZ34NQL-re0v-Abf.js} +1 -1
- package/dist/client/assets/packet-YPE3B663-CrHs8zQk.js +1 -0
- package/dist/client/assets/pie-LRSECV5Y-DN2X-C7c.js +1 -0
- package/dist/client/assets/{pieDiagram-4H26LBE5-BPBPJDOL.js → pieDiagram-4H26LBE5-CVgGRPUj.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-W4KKPZXB-7qeZA_5K.js → quadrantDiagram-W4KKPZXB-hvgg5ND-.js} +1 -1
- package/dist/client/assets/radar-GUYGQ44K-CGfUK9B7.js +1 -0
- package/dist/client/assets/{requirementDiagram-4Y6WPE33-Bn_o0XyB.js → requirementDiagram-4Y6WPE33-BDRcpjKM.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-5OEKKPKP-C7tq1iBN.js → sankeyDiagram-5OEKKPKP-CZMAxFS8.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-3UESZ5HK-CVntHqub.js → sequenceDiagram-3UESZ5HK-tCo417FM.js} +1 -1
- package/dist/client/assets/{stateDiagram-AJRCARHV-6CbiQtH2.js → stateDiagram-AJRCARHV-BiiCMTOc.js} +1 -1
- package/dist/client/assets/stateDiagram-v2-BHNVJYJU-BeuZpgnp.js +1 -0
- package/dist/client/assets/{timeline-definition-PNZ67QCA-8O7m6KY3.js → timeline-definition-PNZ67QCA-CwdU_R2S.js} +1 -1
- package/dist/client/assets/treeView-BLDUP644-Bf0-7Ltp.js +1 -0
- package/dist/client/assets/treemap-LRROVOQU-jGeMHPB3.js +1 -0
- package/dist/client/assets/{vennDiagram-CIIHVFJN-BPYk8Ngd.js → vennDiagram-CIIHVFJN-BLHvlGvY.js} +1 -1
- package/dist/client/assets/wardley-L42UT6IY-BUzbFhcv.js +1 -0
- package/dist/client/assets/{wardleyDiagram-YWT4CUSO-BFpz-Hih.js → wardleyDiagram-YWT4CUSO-C6CXsYNa.js} +1 -1
- package/dist/client/assets/{xychartDiagram-2RQKCTM6-B11s2eQY.js → xychartDiagram-2RQKCTM6-Bq_1XgNP.js} +1 -1
- package/dist/client/index.html +2 -2
- package/docs/project/README.md +2 -2
- package/docs/project/architecture.md +257 -257
- package/docs/project/changelog.md +19 -0
- package/docs/project/design.md +190 -190
- package/docs/project/how-to/package-local.md +5 -5
- package/docs/project/how-to/run.md +2 -2
- package/package.json +1 -1
- package/dist/client/assets/arc-BQ8FQIxG.js +0 -1
- package/dist/client/assets/arc-D29HaK0-.js +0 -1
- package/dist/client/assets/arc-DN1TRxdV.js +0 -1
- package/dist/client/assets/arc-EsqL9E_k.js +0 -1
- package/dist/client/assets/arc-lxhneEjK.js +0 -1
- package/dist/client/assets/architecture-7EHR7CIX-BqNz3w30.js +0 -1
- package/dist/client/assets/architecture-7EHR7CIX-CFJQjcdg.js +0 -1
- package/dist/client/assets/architecture-7EHR7CIX-ClbxVUwJ.js +0 -1
- package/dist/client/assets/architecture-7EHR7CIX-CyNbBoe0.js +0 -1
- package/dist/client/assets/architecture-7EHR7CIX-DSRN3R9m.js +0 -1
- package/dist/client/assets/architecture-7EHR7CIX-PtlJ4dOt.js +0 -1
- package/dist/client/assets/architectureDiagram-3BPJPVTR-BcWhK0P7.js +0 -36
- package/dist/client/assets/architectureDiagram-3BPJPVTR-CFDO5Pht.js +0 -36
- package/dist/client/assets/architectureDiagram-3BPJPVTR-YHMi__Re.js +0 -36
- package/dist/client/assets/architectureDiagram-3BPJPVTR-tkcUxvnc.js +0 -36
- package/dist/client/assets/architectureDiagram-3BPJPVTR-uohXcL3U.js +0 -36
- package/dist/client/assets/blockDiagram-GPEHLZMM-CmuICidh.js +0 -132
- package/dist/client/assets/blockDiagram-GPEHLZMM-Cw-DTpkY.js +0 -132
- package/dist/client/assets/blockDiagram-GPEHLZMM-D8CFcow6.js +0 -132
- package/dist/client/assets/blockDiagram-GPEHLZMM-DITm6e9a.js +0 -132
- package/dist/client/assets/blockDiagram-GPEHLZMM-sRYCtT3R.js +0 -132
- package/dist/client/assets/c4Diagram-AAUBKEIU-CAKSwn1Q.js +0 -10
- package/dist/client/assets/c4Diagram-AAUBKEIU-CQNX7g2f.js +0 -10
- package/dist/client/assets/c4Diagram-AAUBKEIU-Cmr0FZN2.js +0 -10
- package/dist/client/assets/c4Diagram-AAUBKEIU-hz6fXX48.js +0 -10
- package/dist/client/assets/c4Diagram-AAUBKEIU-jMpUd_wV.js +0 -10
- package/dist/client/assets/channel-BLySICXj.js +0 -1
- package/dist/client/assets/channel-BhTl1myF.js +0 -1
- package/dist/client/assets/channel-C6YaMftE.js +0 -1
- package/dist/client/assets/channel-DCmlVXgL.js +0 -1
- package/dist/client/assets/channel-DGNLHxy4.js +0 -1
- package/dist/client/assets/channel-x4T-_YD7.js +0 -1
- package/dist/client/assets/chunk-2J33WTMH-CbW3CBuf.js +0 -1
- package/dist/client/assets/chunk-2J33WTMH-Cwe8zhoU.js +0 -1
- package/dist/client/assets/chunk-2J33WTMH-D3_CoMp1.js +0 -1
- package/dist/client/assets/chunk-2J33WTMH-DN_GVUWe.js +0 -1
- package/dist/client/assets/chunk-2J33WTMH-zDzeRZN5.js +0 -1
- package/dist/client/assets/chunk-4BX2VUAB-9XalwBpW.js +0 -1
- package/dist/client/assets/chunk-4BX2VUAB-B5EdDr8j.js +0 -1
- package/dist/client/assets/chunk-4BX2VUAB-BFtetfgd.js +0 -1
- package/dist/client/assets/chunk-4BX2VUAB-DGIU4KKY.js +0 -1
- package/dist/client/assets/chunk-4BX2VUAB-jTIxI8DZ.js +0 -1
- package/dist/client/assets/chunk-55IACEB6-BPpZck88.js +0 -1
- package/dist/client/assets/chunk-55IACEB6-BV23knRO.js +0 -1
- package/dist/client/assets/chunk-55IACEB6-C0d8c7Vo.js +0 -1
- package/dist/client/assets/chunk-55IACEB6-CQ_t4_xx.js +0 -1
- package/dist/client/assets/chunk-55IACEB6-JZcTe9lc.js +0 -1
- package/dist/client/assets/chunk-727SXJPM-BSL_F1Le.js +0 -206
- package/dist/client/assets/chunk-727SXJPM-D47mkitj.js +0 -206
- package/dist/client/assets/chunk-727SXJPM-D9_MqMP5.js +0 -206
- package/dist/client/assets/chunk-727SXJPM-RyJFEFm-.js +0 -206
- package/dist/client/assets/chunk-727SXJPM-nDNND1Fi.js +0 -206
- package/dist/client/assets/chunk-AQP2D5EJ-CtXh86Eg.js +0 -231
- package/dist/client/assets/chunk-AQP2D5EJ-CwxUU4hk.js +0 -231
- package/dist/client/assets/chunk-AQP2D5EJ-D0baAcg1.js +0 -231
- package/dist/client/assets/chunk-AQP2D5EJ-DCPlWaAh.js +0 -231
- package/dist/client/assets/chunk-AQP2D5EJ-J_DkonSc.js +0 -231
- package/dist/client/assets/chunk-FMBD7UC4-BbZ1AGyL.js +0 -15
- package/dist/client/assets/chunk-FMBD7UC4-BdGnGsSk.js +0 -15
- package/dist/client/assets/chunk-FMBD7UC4-CVSNIJCH.js +0 -15
- package/dist/client/assets/chunk-FMBD7UC4-CqUEgFjs.js +0 -15
- package/dist/client/assets/chunk-FMBD7UC4-DC5BOUfb.js +0 -15
- package/dist/client/assets/chunk-ND2GUHAM-BSN4IQif.js +0 -1
- package/dist/client/assets/chunk-ND2GUHAM-CnGwaH5L.js +0 -1
- package/dist/client/assets/chunk-ND2GUHAM-DNiW6T9n.js +0 -1
- package/dist/client/assets/chunk-ND2GUHAM-DlypeIxK.js +0 -1
- package/dist/client/assets/chunk-ND2GUHAM-dO9yBJ9c.js +0 -1
- package/dist/client/assets/chunk-QZHKN3VN-BHbu3UP6.js +0 -1
- package/dist/client/assets/chunk-QZHKN3VN-BpYsV_6y.js +0 -1
- package/dist/client/assets/chunk-QZHKN3VN-CO1iLMuP.js +0 -1
- package/dist/client/assets/chunk-QZHKN3VN-DXTWyPl6.js +0 -1
- package/dist/client/assets/chunk-QZHKN3VN-Dp-LTU9i.js +0 -1
- package/dist/client/assets/chunk-QZHKN3VN-kXi8OW4-.js +0 -1
- package/dist/client/assets/classDiagram-4FO5ZUOK-AtKel0XH.js +0 -1
- package/dist/client/assets/classDiagram-4FO5ZUOK-B0NpKzPr.js +0 -1
- package/dist/client/assets/classDiagram-4FO5ZUOK-Bk7OZQQT.js +0 -1
- package/dist/client/assets/classDiagram-4FO5ZUOK-CUT5SOh1.js +0 -1
- package/dist/client/assets/classDiagram-4FO5ZUOK-DR6twz9n.js +0 -1
- package/dist/client/assets/classDiagram-4FO5ZUOK-XKa3UYeT.js +0 -1
- package/dist/client/assets/classDiagram-v2-Q7XG4LA2-C10EkiwP.js +0 -1
- package/dist/client/assets/classDiagram-v2-Q7XG4LA2-CYNm9k9j.js +0 -1
- package/dist/client/assets/classDiagram-v2-Q7XG4LA2-Cu6f4_Qr.js +0 -1
- package/dist/client/assets/classDiagram-v2-Q7XG4LA2-DVtSKtsc.js +0 -1
- package/dist/client/assets/classDiagram-v2-Q7XG4LA2-DdsQ5sc8.js +0 -1
- package/dist/client/assets/classDiagram-v2-Q7XG4LA2-M8Y05qZy.js +0 -1
- package/dist/client/assets/cose-bilkent-S5V4N54A-C5IwfIBU.js +0 -1
- package/dist/client/assets/cose-bilkent-S5V4N54A-C6fAtGoM.js +0 -1
- package/dist/client/assets/cose-bilkent-S5V4N54A-CDm9Oap6.js +0 -1
- package/dist/client/assets/cose-bilkent-S5V4N54A-CRCh_MP2.js +0 -1
- package/dist/client/assets/cose-bilkent-S5V4N54A-D-iXlubx.js +0 -1
- package/dist/client/assets/dagre-BM42HDAG-C1UxjNQo.js +0 -4
- package/dist/client/assets/dagre-BM42HDAG-CN_eUZpE.js +0 -4
- package/dist/client/assets/dagre-BM42HDAG-DG3qHB9n.js +0 -4
- package/dist/client/assets/dagre-BM42HDAG-DGqTKLQn.js +0 -4
- package/dist/client/assets/dagre-BM42HDAG-HhxsMVKO.js +0 -4
- package/dist/client/assets/diagram-2AECGRRQ-CPsbxJxF.js +0 -43
- package/dist/client/assets/diagram-2AECGRRQ-DFQSvODp.js +0 -43
- package/dist/client/assets/diagram-2AECGRRQ-DMEfdrj9.js +0 -43
- package/dist/client/assets/diagram-2AECGRRQ-DlJ7PqUC.js +0 -43
- package/dist/client/assets/diagram-2AECGRRQ-DvCOeQpl.js +0 -43
- package/dist/client/assets/diagram-5GNKFQAL-CV0_MyBI.js +0 -10
- package/dist/client/assets/diagram-5GNKFQAL-Cz34sKoA.js +0 -10
- package/dist/client/assets/diagram-5GNKFQAL-DP3pe1RC.js +0 -10
- package/dist/client/assets/diagram-5GNKFQAL-DxF6k7UP.js +0 -10
- package/dist/client/assets/diagram-5GNKFQAL-iSa2z6P6.js +0 -10
- package/dist/client/assets/diagram-KO2AKTUF-BRgzZSvK.js +0 -3
- package/dist/client/assets/diagram-KO2AKTUF-CIV3uGBq.js +0 -3
- package/dist/client/assets/diagram-KO2AKTUF-CTH7FURo.js +0 -3
- package/dist/client/assets/diagram-KO2AKTUF-C_2zZZh0.js +0 -3
- package/dist/client/assets/diagram-KO2AKTUF-Cuss_t-R.js +0 -3
- package/dist/client/assets/diagram-LMA3HP47-D0uf37D2.js +0 -24
- package/dist/client/assets/diagram-LMA3HP47-DCJWcert.js +0 -24
- package/dist/client/assets/diagram-LMA3HP47-DHLGCfmQ.js +0 -24
- package/dist/client/assets/diagram-LMA3HP47-DqcX8v1J.js +0 -24
- package/dist/client/assets/diagram-LMA3HP47-Y_acETft.js +0 -24
- package/dist/client/assets/diagram-OG6HWLK6-Bpl1By3g.js +0 -24
- package/dist/client/assets/diagram-OG6HWLK6-BpniHTDY.js +0 -24
- package/dist/client/assets/diagram-OG6HWLK6-CPIuiHbu.js +0 -24
- package/dist/client/assets/diagram-OG6HWLK6-CYWwbYrm.js +0 -24
- package/dist/client/assets/diagram-OG6HWLK6-CmxjZhDt.js +0 -24
- package/dist/client/assets/dist-B6O_DpEm.js +0 -1
- package/dist/client/assets/dist-BMcGXJl_.js +0 -1
- package/dist/client/assets/dist-BMrfqEff.js +0 -1
- package/dist/client/assets/dist-BNzWMaB6.js +0 -1
- package/dist/client/assets/dist-BP22L48M.js +0 -1
- package/dist/client/assets/dist-BQFQYyOf.js +0 -1
- package/dist/client/assets/dist-BS_Wb5ek.js +0 -1
- package/dist/client/assets/dist-BTSt8RmS.js +0 -1
- package/dist/client/assets/dist-BTqWikmn.js +0 -9
- package/dist/client/assets/dist-BU-v7eOh.js +0 -1
- package/dist/client/assets/dist-BW9zpavZ.js +0 -1
- package/dist/client/assets/dist-BYpLoh88.js +0 -1
- package/dist/client/assets/dist-Ba2VBCEx.js +0 -1
- package/dist/client/assets/dist-BbyHZUWl.js +0 -1
- package/dist/client/assets/dist-Bj-AtBpB.js +0 -1
- package/dist/client/assets/dist-BkIFud2w.js +0 -2
- package/dist/client/assets/dist-BkJurX-Q.js +0 -2
- package/dist/client/assets/dist-BmvzHEa6.js +0 -1
- package/dist/client/assets/dist-BrtuoXw3.js +0 -1
- package/dist/client/assets/dist-Bv1_rpJY.js +0 -2
- package/dist/client/assets/dist-BxJTQCfI.js +0 -1
- package/dist/client/assets/dist-By195sxY.js +0 -1
- package/dist/client/assets/dist-C0PJTPJf.js +0 -1
- package/dist/client/assets/dist-C70w0n6j.js +0 -1
- package/dist/client/assets/dist-C7zhb6ia.js +0 -1
- package/dist/client/assets/dist-CFQ-7y4O.js +0 -1
- package/dist/client/assets/dist-CJvz1rI0.js +0 -2
- package/dist/client/assets/dist-CKq8Ue0B.js +0 -1
- package/dist/client/assets/dist-CL-xNTXw.js +0 -1
- package/dist/client/assets/dist-CRDAhP-_.js +0 -9
- package/dist/client/assets/dist-CS16K7fI.js +0 -1
- package/dist/client/assets/dist-CTOPKEFU.js +0 -1
- package/dist/client/assets/dist-C_7Kdz86.js +0 -1
- package/dist/client/assets/dist-Catly5LE.js +0 -1
- package/dist/client/assets/dist-Cf5WqFxW.js +0 -1
- package/dist/client/assets/dist-ChpghJfy.js +0 -9
- package/dist/client/assets/dist-ChvQZ65S.js +0 -1
- package/dist/client/assets/dist-Cj50abYe.js +0 -1
- package/dist/client/assets/dist-CmE34U3l.js +0 -1
- package/dist/client/assets/dist-CnEAsIWK.js +0 -11
- package/dist/client/assets/dist-Cokhcc-e.js +0 -1
- package/dist/client/assets/dist-Cp5GrNtz.js +0 -1
- package/dist/client/assets/dist-Ct9nOXP2.js +0 -1
- package/dist/client/assets/dist-CuQa92y3.js +0 -1
- package/dist/client/assets/dist-Cu_x7LYJ.js +0 -1
- package/dist/client/assets/dist-D0wTN10c.js +0 -2
- package/dist/client/assets/dist-D6XIhlK2.js +0 -1
- package/dist/client/assets/dist-D96yzPvR.js +0 -1
- package/dist/client/assets/dist-DIbBkegB.js +0 -1
- package/dist/client/assets/dist-DLMHIC1t.js +0 -1
- package/dist/client/assets/dist-DNA1Z08m.js +0 -1
- package/dist/client/assets/dist-DNKDt2SL.js +0 -9
- package/dist/client/assets/dist-DNbCIPJZ.js +0 -1
- package/dist/client/assets/dist-DRO62xNi.js +0 -11
- package/dist/client/assets/dist-DSuqFJZG.js +0 -1
- package/dist/client/assets/dist-DVQbjcvW.js +0 -1
- package/dist/client/assets/dist-DWY4UZzp.js +0 -1
- package/dist/client/assets/dist-DYo-CenB.js +0 -1
- package/dist/client/assets/dist-DZdkfueI.js +0 -1
- package/dist/client/assets/dist-Dd92cuCD.js +0 -1
- package/dist/client/assets/dist-Dhrxncs7.js +0 -1
- package/dist/client/assets/dist-DkBb8pyD.js +0 -1
- package/dist/client/assets/dist-DpfF9ujP.js +0 -1
- package/dist/client/assets/dist-DsXVGesw.js +0 -1
- package/dist/client/assets/dist-DzHWpwvC.js +0 -9
- package/dist/client/assets/dist-FD0Pk5v3.js +0 -1
- package/dist/client/assets/dist-HEJhLJLi.js +0 -11
- package/dist/client/assets/dist-JvwHRPyx.js +0 -1
- package/dist/client/assets/dist-LeORtSWk.js +0 -1
- package/dist/client/assets/dist-Lt0tqjQf.js +0 -1
- package/dist/client/assets/dist-M8PzXy6d.js +0 -1
- package/dist/client/assets/dist-MQmNzVLE.js +0 -1
- package/dist/client/assets/dist-PXqLsMmX.js +0 -1
- package/dist/client/assets/dist-VLVu-KW2.js +0 -1
- package/dist/client/assets/dist-YLM2KsVW.js +0 -1
- package/dist/client/assets/dist-bfKL2iu_.js +0 -1
- package/dist/client/assets/dist-h-MwnblL.js +0 -1
- package/dist/client/assets/dist-hXXcIbxU.js +0 -1
- package/dist/client/assets/dist-llL-i6i2.js +0 -1
- package/dist/client/assets/dist-mQxXzSBY.js +0 -1
- package/dist/client/assets/dist-ogHbs9vd.js +0 -1
- package/dist/client/assets/dist-os_6esOz.js +0 -1
- package/dist/client/assets/dist-t0zWlbUu.js +0 -11
- package/dist/client/assets/dist-uL3SbE3I.js +0 -11
- package/dist/client/assets/dist-xIpUAkiA.js +0 -1
- package/dist/client/assets/erDiagram-TEJ5UH35-BXxzMHpX.js +0 -85
- package/dist/client/assets/erDiagram-TEJ5UH35-CTM4iRPt.js +0 -85
- package/dist/client/assets/erDiagram-TEJ5UH35-DaaUCEf-.js +0 -85
- package/dist/client/assets/erDiagram-TEJ5UH35-DnwoJhSL.js +0 -85
- package/dist/client/assets/erDiagram-TEJ5UH35-Dofm20uI.js +0 -85
- package/dist/client/assets/eventmodeling-FCH6USID-CG8-lqF5.js +0 -1
- package/dist/client/assets/eventmodeling-FCH6USID-Ckn2qnKs.js +0 -1
- package/dist/client/assets/eventmodeling-FCH6USID-DsmiUeUD.js +0 -1
- package/dist/client/assets/eventmodeling-FCH6USID-IsJECylp.js +0 -1
- package/dist/client/assets/eventmodeling-FCH6USID-TfS978Hk.js +0 -1
- package/dist/client/assets/eventmodeling-FCH6USID-rDVHKK_z.js +0 -1
- package/dist/client/assets/flowDiagram-I6XJVG4X-CwbJrsAH.js +0 -162
- package/dist/client/assets/flowDiagram-I6XJVG4X-DB8NE8dO.js +0 -162
- package/dist/client/assets/flowDiagram-I6XJVG4X-DG3xWBhm.js +0 -162
- package/dist/client/assets/flowDiagram-I6XJVG4X-SHBvldeJ.js +0 -162
- package/dist/client/assets/flowDiagram-I6XJVG4X-lRhOrZDv.js +0 -162
- package/dist/client/assets/ganttDiagram-6RSMTGT7-BKybsoxO.js +0 -292
- package/dist/client/assets/ganttDiagram-6RSMTGT7-CO57UxDH.js +0 -292
- package/dist/client/assets/ganttDiagram-6RSMTGT7-CV4c0bxZ.js +0 -292
- package/dist/client/assets/ganttDiagram-6RSMTGT7-D5PiNC8A.js +0 -292
- package/dist/client/assets/ganttDiagram-6RSMTGT7-DdVvDmnp.js +0 -292
- package/dist/client/assets/gitGraph-WXDBUCRP-B5abLcfr.js +0 -1
- package/dist/client/assets/gitGraph-WXDBUCRP-CEUAsiWg.js +0 -1
- package/dist/client/assets/gitGraph-WXDBUCRP-CPPxqCrS.js +0 -1
- package/dist/client/assets/gitGraph-WXDBUCRP-Cj9_uihB.js +0 -1
- package/dist/client/assets/gitGraph-WXDBUCRP-Q72MkpNg.js +0 -1
- package/dist/client/assets/gitGraph-WXDBUCRP-ojGUgaVb.js +0 -1
- package/dist/client/assets/gitGraphDiagram-PVQCEYII-BckLmYy0.js +0 -106
- package/dist/client/assets/gitGraphDiagram-PVQCEYII-CQvq0IhO.js +0 -106
- package/dist/client/assets/gitGraphDiagram-PVQCEYII-D547DZF5.js +0 -106
- package/dist/client/assets/gitGraphDiagram-PVQCEYII-DOFs1eg8.js +0 -106
- package/dist/client/assets/gitGraphDiagram-PVQCEYII-Dba8FK50.js +0 -106
- package/dist/client/assets/index-8YKIjcJe.js +0 -532
- package/dist/client/assets/index-Bc6bzkA8.js +0 -532
- package/dist/client/assets/index-BewIyJmj.js +0 -532
- package/dist/client/assets/index-BhJ9ao0y.js +0 -532
- package/dist/client/assets/index-CzvLoUvF.js +0 -532
- package/dist/client/assets/index-ckENP4pU.js +0 -532
- package/dist/client/assets/info-J43DQDTF-BOKPpojc.js +0 -1
- package/dist/client/assets/info-J43DQDTF-CWf75QJC.js +0 -1
- package/dist/client/assets/info-J43DQDTF-Db_7Q2r9.js +0 -1
- package/dist/client/assets/info-J43DQDTF-DfyyKBT0.js +0 -1
- package/dist/client/assets/info-J43DQDTF-Esf2TaF1.js +0 -1
- package/dist/client/assets/info-J43DQDTF-bdterZJm.js +0 -1
- package/dist/client/assets/infoDiagram-5YYISTIA-C6MmRXdl.js +0 -2
- package/dist/client/assets/infoDiagram-5YYISTIA-CJx1aJYH.js +0 -2
- package/dist/client/assets/infoDiagram-5YYISTIA-DAFFEaMX.js +0 -2
- package/dist/client/assets/infoDiagram-5YYISTIA-DPPbj55q.js +0 -2
- package/dist/client/assets/infoDiagram-5YYISTIA-LrF3QIgt.js +0 -2
- package/dist/client/assets/ishikawaDiagram-YF4QCWOH-BeqvjDIl.js +0 -70
- package/dist/client/assets/ishikawaDiagram-YF4QCWOH-D1voQ_A3.js +0 -70
- package/dist/client/assets/ishikawaDiagram-YF4QCWOH-DQVs-e5F.js +0 -70
- package/dist/client/assets/ishikawaDiagram-YF4QCWOH-DellCRrr.js +0 -70
- package/dist/client/assets/ishikawaDiagram-YF4QCWOH-j2svCPD_.js +0 -70
- package/dist/client/assets/journeyDiagram-JHISSGLW-ByjUcNIQ.js +0 -139
- package/dist/client/assets/journeyDiagram-JHISSGLW-CjmHTXWw.js +0 -139
- package/dist/client/assets/journeyDiagram-JHISSGLW-CyW3uYgl.js +0 -139
- package/dist/client/assets/journeyDiagram-JHISSGLW-DHG9tEO9.js +0 -139
- package/dist/client/assets/journeyDiagram-JHISSGLW-DMhylUSs.js +0 -139
- package/dist/client/assets/kanban-definition-UN3LZRKU-By6J-toY.js +0 -89
- package/dist/client/assets/kanban-definition-UN3LZRKU-CPmisIY0.js +0 -89
- package/dist/client/assets/kanban-definition-UN3LZRKU-DJq0v7yA.js +0 -89
- package/dist/client/assets/kanban-definition-UN3LZRKU-Odm95TPd.js +0 -89
- package/dist/client/assets/kanban-definition-UN3LZRKU-RhdfI1Go.js +0 -89
- package/dist/client/assets/linear-CCnRmQWj.js +0 -1
- package/dist/client/assets/linear-CLY6mbcf.js +0 -1
- package/dist/client/assets/linear-D2PqFEbl.js +0 -1
- package/dist/client/assets/linear-U4CTwA5d.js +0 -1
- package/dist/client/assets/linear-fC_JigXY.js +0 -1
- package/dist/client/assets/mermaid-parser.core-BaqVS2PS.js +0 -161
- package/dist/client/assets/mermaid-parser.core-CXSSSULW.js +0 -161
- package/dist/client/assets/mermaid-parser.core-D4wkA2RA.js +0 -161
- package/dist/client/assets/mermaid-parser.core-DJaMK5f0.js +0 -161
- package/dist/client/assets/mermaid-parser.core-Dg7giF1T.js +0 -161
- package/dist/client/assets/mindmap-definition-RKZ34NQL-CakoPsMY.js +0 -96
- package/dist/client/assets/mindmap-definition-RKZ34NQL-Ck-hSWI1.js +0 -96
- package/dist/client/assets/mindmap-definition-RKZ34NQL-DQ6OHT_i.js +0 -96
- package/dist/client/assets/mindmap-definition-RKZ34NQL-DUC927Xf.js +0 -96
- package/dist/client/assets/mindmap-definition-RKZ34NQL-DeFA1j35.js +0 -96
- package/dist/client/assets/packet-YPE3B663-B3KOrKph.js +0 -1
- package/dist/client/assets/packet-YPE3B663-BZYQ3FCV.js +0 -1
- package/dist/client/assets/packet-YPE3B663-CCp5WtTq.js +0 -1
- package/dist/client/assets/packet-YPE3B663-CfJJ9tXN.js +0 -1
- package/dist/client/assets/packet-YPE3B663-Ctl6nY1w.js +0 -1
- package/dist/client/assets/packet-YPE3B663-_U-6UVls.js +0 -1
- package/dist/client/assets/pie-LRSECV5Y-BAnVLQEp.js +0 -1
- package/dist/client/assets/pie-LRSECV5Y-BbZVTGZg.js +0 -1
- package/dist/client/assets/pie-LRSECV5Y-CYEccf3s.js +0 -1
- package/dist/client/assets/pie-LRSECV5Y-DlRiXmmJ.js +0 -1
- package/dist/client/assets/pie-LRSECV5Y-Dm3u76QZ.js +0 -1
- package/dist/client/assets/pie-LRSECV5Y-X0vz9XKi.js +0 -1
- package/dist/client/assets/pieDiagram-4H26LBE5-CAXyv9NR.js +0 -30
- package/dist/client/assets/pieDiagram-4H26LBE5-Cp_atO_B.js +0 -30
- package/dist/client/assets/pieDiagram-4H26LBE5-CzJrKJr4.js +0 -30
- package/dist/client/assets/pieDiagram-4H26LBE5-JffHRhRs.js +0 -30
- package/dist/client/assets/pieDiagram-4H26LBE5-pmEU7Uu5.js +0 -30
- package/dist/client/assets/quadrantDiagram-W4KKPZXB-B0JKtXGW.js +0 -7
- package/dist/client/assets/quadrantDiagram-W4KKPZXB-CkJY1wkN.js +0 -7
- package/dist/client/assets/quadrantDiagram-W4KKPZXB-DDnjiiYP.js +0 -7
- package/dist/client/assets/quadrantDiagram-W4KKPZXB-DR-dJSMY.js +0 -7
- package/dist/client/assets/quadrantDiagram-W4KKPZXB-Dg9KCwo0.js +0 -7
- package/dist/client/assets/radar-GUYGQ44K-8ZjjdwFn.js +0 -1
- package/dist/client/assets/radar-GUYGQ44K-BbAfN5-x.js +0 -1
- package/dist/client/assets/radar-GUYGQ44K-Bwdc6UPK.js +0 -1
- package/dist/client/assets/radar-GUYGQ44K-CXCenk63.js +0 -1
- package/dist/client/assets/radar-GUYGQ44K-CuJfIW1O.js +0 -1
- package/dist/client/assets/radar-GUYGQ44K-D7_r3KxN.js +0 -1
- package/dist/client/assets/requirementDiagram-4Y6WPE33-BwXGdVNn.js +0 -84
- package/dist/client/assets/requirementDiagram-4Y6WPE33-D6YIEesF.js +0 -84
- package/dist/client/assets/requirementDiagram-4Y6WPE33-DP0YrPiG.js +0 -84
- package/dist/client/assets/requirementDiagram-4Y6WPE33-DqqKjv9b.js +0 -84
- package/dist/client/assets/requirementDiagram-4Y6WPE33-Sc9Ib_Ju.js +0 -84
- package/dist/client/assets/sankeyDiagram-5OEKKPKP-CTglKOYH.js +0 -40
- package/dist/client/assets/sankeyDiagram-5OEKKPKP-Cdn5hR-T.js +0 -40
- package/dist/client/assets/sankeyDiagram-5OEKKPKP-CtjDOI1d.js +0 -40
- package/dist/client/assets/sankeyDiagram-5OEKKPKP-D1JvUXfm.js +0 -40
- package/dist/client/assets/sankeyDiagram-5OEKKPKP-DmlH_EuV.js +0 -40
- package/dist/client/assets/sequenceDiagram-3UESZ5HK-B1l_RYCD.js +0 -162
- package/dist/client/assets/sequenceDiagram-3UESZ5HK-BODENHDd.js +0 -162
- package/dist/client/assets/sequenceDiagram-3UESZ5HK-BfXBRbtn.js +0 -162
- package/dist/client/assets/sequenceDiagram-3UESZ5HK-ZsntJaDA.js +0 -162
- package/dist/client/assets/sequenceDiagram-3UESZ5HK-g0S6cpjA.js +0 -162
- package/dist/client/assets/stateDiagram-AJRCARHV-BH3emNVA.js +0 -1
- package/dist/client/assets/stateDiagram-AJRCARHV-Bfy4u1jj.js +0 -1
- package/dist/client/assets/stateDiagram-AJRCARHV-DTL_BeMw.js +0 -1
- package/dist/client/assets/stateDiagram-AJRCARHV-DuMfvw76.js +0 -1
- package/dist/client/assets/stateDiagram-AJRCARHV-bEyFJqkt.js +0 -1
- package/dist/client/assets/stateDiagram-v2-BHNVJYJU-BeBJn9Ia.js +0 -1
- package/dist/client/assets/stateDiagram-v2-BHNVJYJU-BySjtxL0.js +0 -1
- package/dist/client/assets/stateDiagram-v2-BHNVJYJU-CJJ1ZY2Q.js +0 -1
- package/dist/client/assets/stateDiagram-v2-BHNVJYJU-CewRZjoh.js +0 -1
- package/dist/client/assets/stateDiagram-v2-BHNVJYJU-Ctaegh5b.js +0 -1
- package/dist/client/assets/stateDiagram-v2-BHNVJYJU-Duq_b4Yy.js +0 -1
- package/dist/client/assets/timeline-definition-PNZ67QCA-BrvVyhY0.js +0 -120
- package/dist/client/assets/timeline-definition-PNZ67QCA-BtixI1WS.js +0 -120
- package/dist/client/assets/timeline-definition-PNZ67QCA-D9KAhtfV.js +0 -120
- package/dist/client/assets/timeline-definition-PNZ67QCA-XT2bwWOB.js +0 -120
- package/dist/client/assets/timeline-definition-PNZ67QCA-aOxVtn0E.js +0 -120
- package/dist/client/assets/treeView-BLDUP644-B0kTb_g3.js +0 -1
- package/dist/client/assets/treeView-BLDUP644-B6UCevyB.js +0 -1
- package/dist/client/assets/treeView-BLDUP644-ClAwlEqa.js +0 -1
- package/dist/client/assets/treeView-BLDUP644-SGGobL-X.js +0 -1
- package/dist/client/assets/treeView-BLDUP644-UtXcJa80.js +0 -1
- package/dist/client/assets/treeView-BLDUP644-X3LRngOg.js +0 -1
- package/dist/client/assets/treemap-LRROVOQU-BVDdbYmy.js +0 -1
- package/dist/client/assets/treemap-LRROVOQU-CSUALSge.js +0 -1
- package/dist/client/assets/treemap-LRROVOQU-D7lbGl6O.js +0 -1
- package/dist/client/assets/treemap-LRROVOQU-DDMghpbA.js +0 -1
- package/dist/client/assets/treemap-LRROVOQU-FsJUYG1s.js +0 -1
- package/dist/client/assets/treemap-LRROVOQU-Kcw-WZrd.js +0 -1
- package/dist/client/assets/vennDiagram-CIIHVFJN-ByGExN5N.js +0 -34
- package/dist/client/assets/vennDiagram-CIIHVFJN-CTqKsU3a.js +0 -34
- package/dist/client/assets/vennDiagram-CIIHVFJN-Dra5j7V2.js +0 -34
- package/dist/client/assets/vennDiagram-CIIHVFJN-JUG6MMjw.js +0 -34
- package/dist/client/assets/vennDiagram-CIIHVFJN-vqKQtTQi.js +0 -34
- package/dist/client/assets/wardley-L42UT6IY-BCqwgr28.js +0 -1
- package/dist/client/assets/wardley-L42UT6IY-BYdsv-7d.js +0 -1
- package/dist/client/assets/wardley-L42UT6IY-DJ-60DT_.js +0 -1
- package/dist/client/assets/wardley-L42UT6IY-DdTJfznk.js +0 -1
- package/dist/client/assets/wardley-L42UT6IY-DznNraZH.js +0 -1
- package/dist/client/assets/wardley-L42UT6IY-R3qTlKe5.js +0 -1
- package/dist/client/assets/wardleyDiagram-YWT4CUSO-BNMsJ5dX.js +0 -78
- package/dist/client/assets/wardleyDiagram-YWT4CUSO-CJbjncot.js +0 -78
- package/dist/client/assets/wardleyDiagram-YWT4CUSO-DGMk2w-Q.js +0 -78
- package/dist/client/assets/wardleyDiagram-YWT4CUSO-Xyf3f312.js +0 -78
- package/dist/client/assets/wardleyDiagram-YWT4CUSO-bCQqSS9Y.js +0 -78
- package/dist/client/assets/xychartDiagram-2RQKCTM6-BppcNHGA.js +0 -7
- package/dist/client/assets/xychartDiagram-2RQKCTM6-CGoX_9dB.js +0 -7
- package/dist/client/assets/xychartDiagram-2RQKCTM6-Cbjyvu2C.js +0 -7
- package/dist/client/assets/xychartDiagram-2RQKCTM6-DiHjc_ea.js +0 -7
- package/dist/client/assets/xychartDiagram-2RQKCTM6-Dit8uJrh.js +0 -7
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import{An as e,Bn as t,En as n,Fn as r,O as i,Qn as a,Xn as o,Yn as s,ir as c,k as l,kn as u,rr as d}from"./index-ckENP4pU.js";import{t as f}from"./chunk-55IACEB6-BPpZck88.js";import{t as p}from"./chunk-2J33WTMH-DN_GVUWe.js";var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function h(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+`-`+m[e[t+4]]+m[e[t+5]]+`-`+m[e[t+6]]+m[e[t+7]]+`-`+m[e[t+8]]+m[e[t+9]]+`-`+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var g=new Uint8Array(16);function _(){return crypto.getRandomValues(g)}function v(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():y(e,t,n)}function y(e,t,n){e||={};let r=e.random??e.rng?.()??_();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return h(r)}var b=(function(){var e=d(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],a=[1,16],o=[1,20],s=[1,19],c=[6,7,8],l=[1,26],u=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:d(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:d(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break}},`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:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(c,[2,3]),{1:[2,2]},e(c,[2,4]),e(c,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:n,9:22,12:11,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:l,7:u,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:s}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:l,7:u,10:32,11:f},{1:[2,7],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:d(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:d(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}d(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}d(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
|
-
`+h.showPosition()+`
|
|
3
|
-
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(l=h.yyleng,s=h.yytext,c=h.yylineno,v=h.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:d(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:d(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:d(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:d(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 r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:d(function(){return this._more=!0,this},`more`),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:d(function(e){this.unput(this.match.slice(e))},`less`),pastInput:d(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:d(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:d(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
-
`+t+`^`},`showPosition`),test_match:d(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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 a in i)this[a]=i[a];return!1}return!1},`test_match`),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):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:d(function(){return this.next()||this.lex()},`lex`),begin:d(function(e){this.conditionStack.push(e)},`begin`),popState:d(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:d(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:d(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:d(function(e){this.begin(e)},`pushState`),stateStackSize:d(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:d(function(e,t,n,r){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: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: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:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;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:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;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 y(){this.yy={}}return d(y,`Parser`),y.prototype=v,v.Parser=y,new y})();b.parser=b;var x=b,S=12,C={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},w=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=C,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)}static{d(this,`MindmapDB`)}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(r,i,a,o){c.info(`addNode`,r,i,a,o);let s=!1;this.nodes.length===0?(this.baseLevel=r,r=0,s=!0):this.baseLevel!==void 0&&(r-=this.baseLevel,s=!1);let l=e(),u=l.mindmap?.padding??n.mindmap.padding;switch(o){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:u*=2;break}let d={id:this.count++,nodeId:t(i,l),level:r,descr:t(a,l),type:o,children:[],width:l.mindmap?.maxNodeWidth??n.mindmap.maxNodeWidth,padding:u,isRoot:s},f=this.getParent(r);if(f)f.children.push(d),this.nodes.push(d);else if(s)this.nodes.push(d);else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`)}getType(e,t){switch(c.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(n){if(!n)return;let r=e(),i=this.nodes[this.nodes.length-1];n.icon&&(i.icon=t(n.icon,r)),n.class&&(i.class=t(n.class,r))}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(e.level===0?e.section=void 0:e.section=t,e.children)for(let[n,r]of e.children.entries()){let i=e.level===0?n%(S-1):t;this.assignSections(r,i)}}flattenNodes(t,n){let r=e(),i=[`mindmap-node`];t.isRoot===!0?i.push(`section-root`,`section--1`):t.section!==void 0&&i.push(`section-${t.section}`),t.class&&i.push(t.class);let a=i.join(` `),o=d(e=>{let t=(r.theme?.toLowerCase()??``).includes(`redux`);switch(e){case C.CIRCLE:return`mindmapCircle`;case C.RECT:return`rect`;case C.ROUNDED_RECT:return`rounded`;case C.CLOUD:return`cloud`;case C.BANG:return`bang`;case C.HEXAGON:return`hexagon`;case C.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case C.NO_BORDER:default:return`rect`}},`getShapeFromType`),s={id:t.id.toString(),domId:`node_`+t.id.toString(),label:t.descr,labelType:`markdown`,isGroup:!1,shape:o(t.type),width:t.width,height:t.height??0,padding:t.padding,cssClasses:a,cssStyles:[],look:r.look,icon:t.icon,x:t.x,y:t.y,level:t.level,nodeId:t.nodeId,type:t.type,section:t.section};if(n.push(s),t.children)for(let e of t.children)this.flattenNodes(e,n)}generateEdges(t,n){if(!t.children)return;let r=e();for(let e of t.children){let i=`edge`;e.section!==void 0&&(i+=` section-edge-${e.section}`);let a=t.level+1;i+=` edge-depth-${a}`;let o={id:`edge_${t.id}_${e.id}`,start:t.id.toString(),end:e.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:r.look,classes:i,depth:t.level,section:e.section};n.push(o),this.generateEdges(e,n)}}getData(){let t=this.getMindmap(),n=e(),i=r().layout!==void 0,a=n;if(i||(a.layout=`cose-bilkent`),!t)return{nodes:[],edges:[],config:a};c.debug(`getData: mindmapRoot`,t,n),this.assignSections(t);let o=[],s=[];this.flattenNodes(t,o),this.generateEdges(t,s),c.debug(`getData: processed ${o.length} nodes and ${s.length} edges`);let l=new Map;for(let e of o)l.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:o,edges:s,config:a,rootNode:t,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(l),type:`mindmap`,diagramId:`mindmap-`+v()}}getLogger(){return c}},T={draw:d(async(e,t,r,a)=>{c.debug(`Rendering mindmap diagram
|
|
7
|
-
`+e);let o=a.db,s=o.getData(),d=f(t,s.config.securityLevel);if(s.type=a.type,s.layoutAlgorithm=i(s.config.layout,{fallback:`cose-bilkent`}),s.diagramId=t,!o.getMindmap())return;s.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`?(e.width=0,e.padding=10):e.shape===`hexagon`&&(e.width=0,e.height=0)}),await l(s,d);let{themeVariables:m}=u(),{useGradient:h,gradientStart:g,gradientStop:_}=m;if(h&&g&&_){let e=d.attr(`id`),t=d.append(`defs`).append(`linearGradient`).attr(`id`,`${e}-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,_).attr(`stop-opacity`,1)}p(d,s.config.mindmap?.padding??n.mindmap.padding,`mindmapDiagram`,s.config.mindmap?.useMaxWidth??n.mindmap.useMaxWidth)},`draw`)},E=d(e=>{let{theme:t,look:n}=e,r=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],a(e[`lineColor`+t])?e[`lineColor`+t]=o(e[`lineColor`+t],20):e[`lineColor`+t]=s(e[`lineColor`+t],20);for(let i=0;i<e.THEME_COLOR_LIMIT;i++){let a=``+(n===`neo`?Math.max(10-(i-1)*2,2):17-3*i);r+=`
|
|
8
|
-
.section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
|
|
9
|
-
fill: ${e[`cScale`+i]};
|
|
10
|
-
}
|
|
11
|
-
.section-${i-1} text {
|
|
12
|
-
fill: ${e[`cScaleLabel`+i]};
|
|
13
|
-
}
|
|
14
|
-
.section-${i-1} span {
|
|
15
|
-
color: ${e[`cScaleLabel`+i]};
|
|
16
|
-
}
|
|
17
|
-
.node-icon-${i-1} {
|
|
18
|
-
font-size: 40px;
|
|
19
|
-
color: ${e[`cScaleLabel`+i]};
|
|
20
|
-
}
|
|
21
|
-
.section-edge-${i-1}{
|
|
22
|
-
stroke: ${e[`cScale`+i]};
|
|
23
|
-
}
|
|
24
|
-
.edge-depth-${i-1}{
|
|
25
|
-
stroke-width: ${a};
|
|
26
|
-
}
|
|
27
|
-
.section-${i-1} line {
|
|
28
|
-
stroke: ${e[`cScaleInv`+i]} ;
|
|
29
|
-
stroke-width: 3;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.disabled, .disabled circle, .disabled text {
|
|
33
|
-
fill: lightgray;
|
|
34
|
-
}
|
|
35
|
-
.disabled text {
|
|
36
|
-
fill: #efefef;
|
|
37
|
-
}
|
|
38
|
-
[data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {
|
|
39
|
-
fill: ${t===`redux`||t===`redux-dark`||t===`neutral`?e.mainBkg:e[`cScale`+i]};
|
|
40
|
-
stroke: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScale`+i]};
|
|
41
|
-
stroke-width: ${e.strokeWidth??2}px;
|
|
42
|
-
}
|
|
43
|
-
[data-look="neo"].section-edge-${i-1}{
|
|
44
|
-
stroke: ${t?.includes(`redux`)||t===`neo-dark`?e.nodeBorder:e[`cScale`+i]};
|
|
45
|
-
}
|
|
46
|
-
[data-look="neo"].mindmap-node.section-${i-1} text {
|
|
47
|
-
fill: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScaleLabel`+(t===`neutral`?1:i)]};
|
|
48
|
-
}
|
|
49
|
-
`}return r},`genSections`),D=d((e,t,n)=>{let r=``;for(let i=0;i<e;i++)r+=`
|
|
50
|
-
[data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {
|
|
51
|
-
stroke: url(${t}-gradient);
|
|
52
|
-
fill: ${n};
|
|
53
|
-
}
|
|
54
|
-
.section-${i-1} line {
|
|
55
|
-
stroke-width: 0;
|
|
56
|
-
}`;return r},`genGradient`),O={get db(){return new w},renderer:T,parser:x,styles:d(e=>{let{theme:t}=e,n=e.svgId,r=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return`
|
|
57
|
-
.edge {
|
|
58
|
-
stroke-width: 3;
|
|
59
|
-
}
|
|
60
|
-
${E(e)}
|
|
61
|
-
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
62
|
-
fill: ${e.git0};
|
|
63
|
-
}
|
|
64
|
-
.section-root text {
|
|
65
|
-
fill: ${e.gitBranchLabel0};
|
|
66
|
-
}
|
|
67
|
-
.section-root span {
|
|
68
|
-
color: ${t?.includes(`redux`)?e.nodeBorder:e.gitBranchLabel0};
|
|
69
|
-
}
|
|
70
|
-
.icon-container {
|
|
71
|
-
height:100%;
|
|
72
|
-
display: flex;
|
|
73
|
-
justify-content: center;
|
|
74
|
-
align-items: center;
|
|
75
|
-
}
|
|
76
|
-
.edge {
|
|
77
|
-
fill: none;
|
|
78
|
-
}
|
|
79
|
-
.mindmap-node-label {
|
|
80
|
-
dy: 1em;
|
|
81
|
-
alignment-baseline: middle;
|
|
82
|
-
text-anchor: middle;
|
|
83
|
-
dominant-baseline: middle;
|
|
84
|
-
text-align: center;
|
|
85
|
-
}
|
|
86
|
-
[data-look="neo"].mindmap-node {
|
|
87
|
-
filter: ${r};
|
|
88
|
-
}
|
|
89
|
-
[data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
|
|
90
|
-
fill: ${t?.includes(`redux`)?e.mainBkg:e.git0};
|
|
91
|
-
}
|
|
92
|
-
[data-look="neo"].mindmap-node.section-root .text-inner-tspan {
|
|
93
|
-
fill: ${t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)]};
|
|
94
|
-
}
|
|
95
|
-
${e.useGradient&&n&&e.mainBkg?D(e.THEME_COLOR_LIMIT,n,e.mainBkg):``}
|
|
96
|
-
`},`getStyles`)};export{O as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e}from"./mermaid-parser.core-DJaMK5f0.js";export{e as createPacketServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e}from"./mermaid-parser.core-CXSSSULW.js";export{e as createPacketServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e}from"./mermaid-parser.core-D4wkA2RA.js";export{e as createPacketServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e}from"./mermaid-parser.core-2kO9DfMJ.js";export{e as createPacketServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e}from"./mermaid-parser.core-BaqVS2PS.js";export{e as createPacketServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e}from"./mermaid-parser.core-Dg7giF1T.js";export{e as createPacketServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as e}from"./mermaid-parser.core-D4wkA2RA.js";export{e as createPieServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as e}from"./mermaid-parser.core-BaqVS2PS.js";export{e as createPieServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as e}from"./mermaid-parser.core-DJaMK5f0.js";export{e as createPieServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as e}from"./mermaid-parser.core-2kO9DfMJ.js";export{e as createPieServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as e}from"./mermaid-parser.core-CXSSSULW.js";export{e as createPieServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as e}from"./mermaid-parser.core-Dg7giF1T.js";export{e as createPieServices};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./ordinal-3qmO7xdp.js";import{t}from"./arc-DN1TRxdV.js";import{An as n,Dn as r,En as i,Hn as a,On as o,Vn as s,Vt as c,Wn as l,Wt as u,an as d,in as f,ir as p,jn as m,nt as h,rr as g,st as _,wn as v,xn as y}from"./index-BhJ9ao0y.js";import{t as b}from"./mermaid-parser.core-CXSSSULW.js";import{t as x}from"./chunk-4BX2VUAB-4pLcLIM5.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=d(0),i=d(f),a=d(0);function o(o){var s,c=(o=u(o)).length,l,d,p=0,m=Array(c),h=Array(c),g=+r.apply(this,arguments),_=Math.min(f,Math.max(-f,i.apply(this,arguments)-g)),v,y=Math.min(Math.abs(_)/c,a.apply(this,arguments)),b=y*(_<0?-1:1),x;for(s=0;s<c;++s)(x=h[m[s]=s]=+e(o[s],s,o))>0&&(p+=x);for(t==null?n!=null&&m.sort(function(e,t){return n(o[e],o[t])}):m.sort(function(e,n){return t(h[e],h[n])}),s=0,d=p?(_-c*b)/p:0;s<c;++s,g=v)l=m[s],x=h[l],v=g+(x>0?x*d:0)+b,h[l]={data:o[l],index:s,value:x,startAngle:g,endAngle:v,padAngle:y};return h}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:d(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:d(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:d(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:d(+e),o):a},o}var T=i.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:g(()=>structuredClone(k),`getConfig`),clear:g(()=>{D=new Map,O=E.showData,y()},`clear`),setDiagramTitle:l,getDiagramTitle:m,setAccTitle:a,getAccTitle:o,setAccDescription:s,getAccDescription:r,addSection:g(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),p.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:g(()=>D,`getSections`),setShowData:g(e=>{O=e},`setShowData`),getShowData:g(()=>O,`getShowData`)},j=g((e,t)=>{x(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:g(async e=>{let t=await b(`pie`,e);p.debug(t),j(t,A)},`parse`)},N=g(e=>`
|
|
2
|
-
.pieCircle{
|
|
3
|
-
stroke: ${e.pieStrokeColor};
|
|
4
|
-
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
-
opacity : ${e.pieOpacity};
|
|
6
|
-
}
|
|
7
|
-
.pieOuterCircle{
|
|
8
|
-
stroke: ${e.pieOuterStrokeColor};
|
|
9
|
-
stroke-width: ${e.pieOuterStrokeWidth};
|
|
10
|
-
fill: none;
|
|
11
|
-
}
|
|
12
|
-
.pieTitleText {
|
|
13
|
-
text-anchor: middle;
|
|
14
|
-
font-size: ${e.pieTitleTextSize};
|
|
15
|
-
fill: ${e.pieTitleTextColor};
|
|
16
|
-
font-family: ${e.fontFamily};
|
|
17
|
-
}
|
|
18
|
-
.slice {
|
|
19
|
-
font-family: ${e.fontFamily};
|
|
20
|
-
fill: ${e.pieSectionTextColor};
|
|
21
|
-
font-size:${e.pieSectionTextSize};
|
|
22
|
-
// fill: white;
|
|
23
|
-
}
|
|
24
|
-
.legend text {
|
|
25
|
-
fill: ${e.pieLegendTextColor};
|
|
26
|
-
font-family: ${e.fontFamily};
|
|
27
|
-
font-size: ${e.pieLegendTextSize};
|
|
28
|
-
}
|
|
29
|
-
`,`getStyles`),P=g(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:g((r,i,a,o)=>{p.debug(`rendering pie chart
|
|
30
|
-
`+r);let s=o.db,l=n(),u=h(s.getConfig(),l.pie),d=c(i),f=d.append(`g`);f.attr(`transform`,`translate(225,225)`);let{themeVariables:m}=l,[g]=_(m.pieOuterStrokeWidth);g??=2;let y=u.textPosition,b=t().innerRadius(0).outerRadius(185),x=t().innerRadius(185*y).outerRadius(185*y);f.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+g/2).attr(`class`,`pieOuterCircle`);let S=s.getSections(),C=P(S),w=[m.pie1,m.pie2,m.pie3,m.pie4,m.pie5,m.pie6,m.pie7,m.pie8,m.pie9,m.pie10,m.pie11,m.pie12],T=0;S.forEach(e=>{T+=e});let E=C.filter(e=>(e.data.value/T*100).toFixed(0)!==`0`),D=e(w).domain([...S.keys()]);f.selectAll(`mySlices`).data(E).enter().append(`path`).attr(`d`,b).attr(`fill`,e=>D(e.data.label)).attr(`class`,`pieCircle`),f.selectAll(`mySlices`).data(E).enter().append(`text`).text(e=>(e.data.value/T*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+x.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let O=f.append(`text`).text(s.getDiagramTitle()).attr(`x`,0).attr(`y`,-400/2).attr(`class`,`pieTitleText`),k=[...S.entries()].map(([e,t])=>({label:e,value:t})),A=f.selectAll(`.legend`).data(k).enter().append(`g`).attr(`class`,`legend`).attr(`transform`,(e,t)=>{let n=22*k.length/2;return`translate(216,`+(t*22-n)+`)`});A.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>D(e.label)).style(`stroke`,e=>D(e.label)),A.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>s.getShowData()?`${e.label} [${e.value}]`:e.label);let j=512+Math.max(...A.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),M=O.node()?.getBoundingClientRect().width??0,N=450/2-M/2,F=450/2+M/2,I=Math.min(0,N),L=Math.max(j,F)-I;d.attr(`viewBox`,`${I} 0 ${L} 450`),v(d,450,L,u.useMaxWidth)},`draw`)},styles:N};export{F as diagram};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./ordinal-3qmO7xdp.js";import{t}from"./arc-BGbUjP6l.js";import{An as n,Dn as r,En as i,Hn as a,On as o,Vn as s,Vt as c,Wn as l,Wt as u,an as d,in as f,ir as p,jn as m,nt as h,rr as g,st as _,wn as v,xn as y}from"./index-Bc6bzkA8.js";import{t as b}from"./mermaid-parser.core-BaqVS2PS.js";import{t as x}from"./chunk-4BX2VUAB-9XalwBpW.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=d(0),i=d(f),a=d(0);function o(o){var s,c=(o=u(o)).length,l,d,p=0,m=Array(c),h=Array(c),g=+r.apply(this,arguments),_=Math.min(f,Math.max(-f,i.apply(this,arguments)-g)),v,y=Math.min(Math.abs(_)/c,a.apply(this,arguments)),b=y*(_<0?-1:1),x;for(s=0;s<c;++s)(x=h[m[s]=s]=+e(o[s],s,o))>0&&(p+=x);for(t==null?n!=null&&m.sort(function(e,t){return n(o[e],o[t])}):m.sort(function(e,n){return t(h[e],h[n])}),s=0,d=p?(_-c*b)/p:0;s<c;++s,g=v)l=m[s],x=h[l],v=g+(x>0?x*d:0)+b,h[l]={data:o[l],index:s,value:x,startAngle:g,endAngle:v,padAngle:y};return h}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:d(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:d(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:d(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:d(+e),o):a},o}var T=i.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:g(()=>structuredClone(k),`getConfig`),clear:g(()=>{D=new Map,O=E.showData,y()},`clear`),setDiagramTitle:l,getDiagramTitle:m,setAccTitle:a,getAccTitle:o,setAccDescription:s,getAccDescription:r,addSection:g(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),p.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:g(()=>D,`getSections`),setShowData:g(e=>{O=e},`setShowData`),getShowData:g(()=>O,`getShowData`)},j=g((e,t)=>{x(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:g(async e=>{let t=await b(`pie`,e);p.debug(t),j(t,A)},`parse`)},N=g(e=>`
|
|
2
|
-
.pieCircle{
|
|
3
|
-
stroke: ${e.pieStrokeColor};
|
|
4
|
-
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
-
opacity : ${e.pieOpacity};
|
|
6
|
-
}
|
|
7
|
-
.pieOuterCircle{
|
|
8
|
-
stroke: ${e.pieOuterStrokeColor};
|
|
9
|
-
stroke-width: ${e.pieOuterStrokeWidth};
|
|
10
|
-
fill: none;
|
|
11
|
-
}
|
|
12
|
-
.pieTitleText {
|
|
13
|
-
text-anchor: middle;
|
|
14
|
-
font-size: ${e.pieTitleTextSize};
|
|
15
|
-
fill: ${e.pieTitleTextColor};
|
|
16
|
-
font-family: ${e.fontFamily};
|
|
17
|
-
}
|
|
18
|
-
.slice {
|
|
19
|
-
font-family: ${e.fontFamily};
|
|
20
|
-
fill: ${e.pieSectionTextColor};
|
|
21
|
-
font-size:${e.pieSectionTextSize};
|
|
22
|
-
// fill: white;
|
|
23
|
-
}
|
|
24
|
-
.legend text {
|
|
25
|
-
fill: ${e.pieLegendTextColor};
|
|
26
|
-
font-family: ${e.fontFamily};
|
|
27
|
-
font-size: ${e.pieLegendTextSize};
|
|
28
|
-
}
|
|
29
|
-
`,`getStyles`),P=g(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:g((r,i,a,o)=>{p.debug(`rendering pie chart
|
|
30
|
-
`+r);let s=o.db,l=n(),u=h(s.getConfig(),l.pie),d=c(i),f=d.append(`g`);f.attr(`transform`,`translate(225,225)`);let{themeVariables:m}=l,[g]=_(m.pieOuterStrokeWidth);g??=2;let y=u.textPosition,b=t().innerRadius(0).outerRadius(185),x=t().innerRadius(185*y).outerRadius(185*y);f.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+g/2).attr(`class`,`pieOuterCircle`);let S=s.getSections(),C=P(S),w=[m.pie1,m.pie2,m.pie3,m.pie4,m.pie5,m.pie6,m.pie7,m.pie8,m.pie9,m.pie10,m.pie11,m.pie12],T=0;S.forEach(e=>{T+=e});let E=C.filter(e=>(e.data.value/T*100).toFixed(0)!==`0`),D=e(w).domain([...S.keys()]);f.selectAll(`mySlices`).data(E).enter().append(`path`).attr(`d`,b).attr(`fill`,e=>D(e.data.label)).attr(`class`,`pieCircle`),f.selectAll(`mySlices`).data(E).enter().append(`text`).text(e=>(e.data.value/T*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+x.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let O=f.append(`text`).text(s.getDiagramTitle()).attr(`x`,0).attr(`y`,-400/2).attr(`class`,`pieTitleText`),k=[...S.entries()].map(([e,t])=>({label:e,value:t})),A=f.selectAll(`.legend`).data(k).enter().append(`g`).attr(`class`,`legend`).attr(`transform`,(e,t)=>{let n=22*k.length/2;return`translate(216,`+(t*22-n)+`)`});A.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>D(e.label)).style(`stroke`,e=>D(e.label)),A.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>s.getShowData()?`${e.label} [${e.value}]`:e.label);let j=512+Math.max(...A.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),M=O.node()?.getBoundingClientRect().width??0,N=450/2-M/2,F=450/2+M/2,I=Math.min(0,N),L=Math.max(j,F)-I;d.attr(`viewBox`,`${I} 0 ${L} 450`),v(d,450,L,u.useMaxWidth)},`draw`)},styles:N};export{F as diagram};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./ordinal-3qmO7xdp.js";import{t}from"./arc-lxhneEjK.js";import{An as n,Dn as r,En as i,Hn as a,On as o,Vn as s,Vt as c,Wn as l,Wt as u,an as d,in as f,ir as p,jn as m,nt as h,rr as g,st as _,wn as v,xn as y}from"./index-CzvLoUvF.js";import{t as b}from"./mermaid-parser.core-D4wkA2RA.js";import{t as x}from"./chunk-4BX2VUAB-jTIxI8DZ.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=d(0),i=d(f),a=d(0);function o(o){var s,c=(o=u(o)).length,l,d,p=0,m=Array(c),h=Array(c),g=+r.apply(this,arguments),_=Math.min(f,Math.max(-f,i.apply(this,arguments)-g)),v,y=Math.min(Math.abs(_)/c,a.apply(this,arguments)),b=y*(_<0?-1:1),x;for(s=0;s<c;++s)(x=h[m[s]=s]=+e(o[s],s,o))>0&&(p+=x);for(t==null?n!=null&&m.sort(function(e,t){return n(o[e],o[t])}):m.sort(function(e,n){return t(h[e],h[n])}),s=0,d=p?(_-c*b)/p:0;s<c;++s,g=v)l=m[s],x=h[l],v=g+(x>0?x*d:0)+b,h[l]={data:o[l],index:s,value:x,startAngle:g,endAngle:v,padAngle:y};return h}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:d(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:d(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:d(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:d(+e),o):a},o}var T=i.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:g(()=>structuredClone(k),`getConfig`),clear:g(()=>{D=new Map,O=E.showData,y()},`clear`),setDiagramTitle:l,getDiagramTitle:m,setAccTitle:a,getAccTitle:o,setAccDescription:s,getAccDescription:r,addSection:g(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),p.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:g(()=>D,`getSections`),setShowData:g(e=>{O=e},`setShowData`),getShowData:g(()=>O,`getShowData`)},j=g((e,t)=>{x(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:g(async e=>{let t=await b(`pie`,e);p.debug(t),j(t,A)},`parse`)},N=g(e=>`
|
|
2
|
-
.pieCircle{
|
|
3
|
-
stroke: ${e.pieStrokeColor};
|
|
4
|
-
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
-
opacity : ${e.pieOpacity};
|
|
6
|
-
}
|
|
7
|
-
.pieOuterCircle{
|
|
8
|
-
stroke: ${e.pieOuterStrokeColor};
|
|
9
|
-
stroke-width: ${e.pieOuterStrokeWidth};
|
|
10
|
-
fill: none;
|
|
11
|
-
}
|
|
12
|
-
.pieTitleText {
|
|
13
|
-
text-anchor: middle;
|
|
14
|
-
font-size: ${e.pieTitleTextSize};
|
|
15
|
-
fill: ${e.pieTitleTextColor};
|
|
16
|
-
font-family: ${e.fontFamily};
|
|
17
|
-
}
|
|
18
|
-
.slice {
|
|
19
|
-
font-family: ${e.fontFamily};
|
|
20
|
-
fill: ${e.pieSectionTextColor};
|
|
21
|
-
font-size:${e.pieSectionTextSize};
|
|
22
|
-
// fill: white;
|
|
23
|
-
}
|
|
24
|
-
.legend text {
|
|
25
|
-
fill: ${e.pieLegendTextColor};
|
|
26
|
-
font-family: ${e.fontFamily};
|
|
27
|
-
font-size: ${e.pieLegendTextSize};
|
|
28
|
-
}
|
|
29
|
-
`,`getStyles`),P=g(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:g((r,i,a,o)=>{p.debug(`rendering pie chart
|
|
30
|
-
`+r);let s=o.db,l=n(),u=h(s.getConfig(),l.pie),d=c(i),f=d.append(`g`);f.attr(`transform`,`translate(225,225)`);let{themeVariables:m}=l,[g]=_(m.pieOuterStrokeWidth);g??=2;let y=u.textPosition,b=t().innerRadius(0).outerRadius(185),x=t().innerRadius(185*y).outerRadius(185*y);f.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+g/2).attr(`class`,`pieOuterCircle`);let S=s.getSections(),C=P(S),w=[m.pie1,m.pie2,m.pie3,m.pie4,m.pie5,m.pie6,m.pie7,m.pie8,m.pie9,m.pie10,m.pie11,m.pie12],T=0;S.forEach(e=>{T+=e});let E=C.filter(e=>(e.data.value/T*100).toFixed(0)!==`0`),D=e(w).domain([...S.keys()]);f.selectAll(`mySlices`).data(E).enter().append(`path`).attr(`d`,b).attr(`fill`,e=>D(e.data.label)).attr(`class`,`pieCircle`),f.selectAll(`mySlices`).data(E).enter().append(`text`).text(e=>(e.data.value/T*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+x.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let O=f.append(`text`).text(s.getDiagramTitle()).attr(`x`,0).attr(`y`,-400/2).attr(`class`,`pieTitleText`),k=[...S.entries()].map(([e,t])=>({label:e,value:t})),A=f.selectAll(`.legend`).data(k).enter().append(`g`).attr(`class`,`legend`).attr(`transform`,(e,t)=>{let n=22*k.length/2;return`translate(216,`+(t*22-n)+`)`});A.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>D(e.label)).style(`stroke`,e=>D(e.label)),A.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>s.getShowData()?`${e.label} [${e.value}]`:e.label);let j=512+Math.max(...A.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),M=O.node()?.getBoundingClientRect().width??0,N=450/2-M/2,F=450/2+M/2,I=Math.min(0,N),L=Math.max(j,F)-I;d.attr(`viewBox`,`${I} 0 ${L} 450`),v(d,450,L,u.useMaxWidth)},`draw`)},styles:N};export{F as diagram};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./ordinal-3qmO7xdp.js";import{t}from"./arc-BQ8FQIxG.js";import{An as n,Dn as r,En as i,Hn as a,On as o,Vn as s,Vt as c,Wn as l,Wt as u,an as d,in as f,ir as p,jn as m,nt as h,rr as g,st as _,wn as v,xn as y}from"./index-BewIyJmj.js";import{t as b}from"./mermaid-parser.core-Dg7giF1T.js";import{t as x}from"./chunk-4BX2VUAB-DGIU4KKY.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=d(0),i=d(f),a=d(0);function o(o){var s,c=(o=u(o)).length,l,d,p=0,m=Array(c),h=Array(c),g=+r.apply(this,arguments),_=Math.min(f,Math.max(-f,i.apply(this,arguments)-g)),v,y=Math.min(Math.abs(_)/c,a.apply(this,arguments)),b=y*(_<0?-1:1),x;for(s=0;s<c;++s)(x=h[m[s]=s]=+e(o[s],s,o))>0&&(p+=x);for(t==null?n!=null&&m.sort(function(e,t){return n(o[e],o[t])}):m.sort(function(e,n){return t(h[e],h[n])}),s=0,d=p?(_-c*b)/p:0;s<c;++s,g=v)l=m[s],x=h[l],v=g+(x>0?x*d:0)+b,h[l]={data:o[l],index:s,value:x,startAngle:g,endAngle:v,padAngle:y};return h}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:d(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:d(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:d(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:d(+e),o):a},o}var T=i.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:g(()=>structuredClone(k),`getConfig`),clear:g(()=>{D=new Map,O=E.showData,y()},`clear`),setDiagramTitle:l,getDiagramTitle:m,setAccTitle:a,getAccTitle:o,setAccDescription:s,getAccDescription:r,addSection:g(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),p.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:g(()=>D,`getSections`),setShowData:g(e=>{O=e},`setShowData`),getShowData:g(()=>O,`getShowData`)},j=g((e,t)=>{x(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:g(async e=>{let t=await b(`pie`,e);p.debug(t),j(t,A)},`parse`)},N=g(e=>`
|
|
2
|
-
.pieCircle{
|
|
3
|
-
stroke: ${e.pieStrokeColor};
|
|
4
|
-
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
-
opacity : ${e.pieOpacity};
|
|
6
|
-
}
|
|
7
|
-
.pieOuterCircle{
|
|
8
|
-
stroke: ${e.pieOuterStrokeColor};
|
|
9
|
-
stroke-width: ${e.pieOuterStrokeWidth};
|
|
10
|
-
fill: none;
|
|
11
|
-
}
|
|
12
|
-
.pieTitleText {
|
|
13
|
-
text-anchor: middle;
|
|
14
|
-
font-size: ${e.pieTitleTextSize};
|
|
15
|
-
fill: ${e.pieTitleTextColor};
|
|
16
|
-
font-family: ${e.fontFamily};
|
|
17
|
-
}
|
|
18
|
-
.slice {
|
|
19
|
-
font-family: ${e.fontFamily};
|
|
20
|
-
fill: ${e.pieSectionTextColor};
|
|
21
|
-
font-size:${e.pieSectionTextSize};
|
|
22
|
-
// fill: white;
|
|
23
|
-
}
|
|
24
|
-
.legend text {
|
|
25
|
-
fill: ${e.pieLegendTextColor};
|
|
26
|
-
font-family: ${e.fontFamily};
|
|
27
|
-
font-size: ${e.pieLegendTextSize};
|
|
28
|
-
}
|
|
29
|
-
`,`getStyles`),P=g(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:g((r,i,a,o)=>{p.debug(`rendering pie chart
|
|
30
|
-
`+r);let s=o.db,l=n(),u=h(s.getConfig(),l.pie),d=c(i),f=d.append(`g`);f.attr(`transform`,`translate(225,225)`);let{themeVariables:m}=l,[g]=_(m.pieOuterStrokeWidth);g??=2;let y=u.textPosition,b=t().innerRadius(0).outerRadius(185),x=t().innerRadius(185*y).outerRadius(185*y);f.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+g/2).attr(`class`,`pieOuterCircle`);let S=s.getSections(),C=P(S),w=[m.pie1,m.pie2,m.pie3,m.pie4,m.pie5,m.pie6,m.pie7,m.pie8,m.pie9,m.pie10,m.pie11,m.pie12],T=0;S.forEach(e=>{T+=e});let E=C.filter(e=>(e.data.value/T*100).toFixed(0)!==`0`),D=e(w).domain([...S.keys()]);f.selectAll(`mySlices`).data(E).enter().append(`path`).attr(`d`,b).attr(`fill`,e=>D(e.data.label)).attr(`class`,`pieCircle`),f.selectAll(`mySlices`).data(E).enter().append(`text`).text(e=>(e.data.value/T*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+x.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let O=f.append(`text`).text(s.getDiagramTitle()).attr(`x`,0).attr(`y`,-400/2).attr(`class`,`pieTitleText`),k=[...S.entries()].map(([e,t])=>({label:e,value:t})),A=f.selectAll(`.legend`).data(k).enter().append(`g`).attr(`class`,`legend`).attr(`transform`,(e,t)=>{let n=22*k.length/2;return`translate(216,`+(t*22-n)+`)`});A.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>D(e.label)).style(`stroke`,e=>D(e.label)),A.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>s.getShowData()?`${e.label} [${e.value}]`:e.label);let j=512+Math.max(...A.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),M=O.node()?.getBoundingClientRect().width??0,N=450/2-M/2,F=450/2+M/2,I=Math.min(0,N),L=Math.max(j,F)-I;d.attr(`viewBox`,`${I} 0 ${L} 450`),v(d,450,L,u.useMaxWidth)},`draw`)},styles:N};export{F as diagram};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./ordinal-3qmO7xdp.js";import{t}from"./arc-EsqL9E_k.js";import{An as n,Dn as r,En as i,Hn as a,On as o,Vn as s,Vt as c,Wn as l,Wt as u,an as d,in as f,ir as p,jn as m,nt as h,rr as g,st as _,wn as v,xn as y}from"./index-8YKIjcJe.js";import{t as b}from"./mermaid-parser.core-DJaMK5f0.js";import{t as x}from"./chunk-4BX2VUAB-BFtetfgd.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=d(0),i=d(f),a=d(0);function o(o){var s,c=(o=u(o)).length,l,d,p=0,m=Array(c),h=Array(c),g=+r.apply(this,arguments),_=Math.min(f,Math.max(-f,i.apply(this,arguments)-g)),v,y=Math.min(Math.abs(_)/c,a.apply(this,arguments)),b=y*(_<0?-1:1),x;for(s=0;s<c;++s)(x=h[m[s]=s]=+e(o[s],s,o))>0&&(p+=x);for(t==null?n!=null&&m.sort(function(e,t){return n(o[e],o[t])}):m.sort(function(e,n){return t(h[e],h[n])}),s=0,d=p?(_-c*b)/p:0;s<c;++s,g=v)l=m[s],x=h[l],v=g+(x>0?x*d:0)+b,h[l]={data:o[l],index:s,value:x,startAngle:g,endAngle:v,padAngle:y};return h}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:d(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:d(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:d(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:d(+e),o):a},o}var T=i.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:g(()=>structuredClone(k),`getConfig`),clear:g(()=>{D=new Map,O=E.showData,y()},`clear`),setDiagramTitle:l,getDiagramTitle:m,setAccTitle:a,getAccTitle:o,setAccDescription:s,getAccDescription:r,addSection:g(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),p.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:g(()=>D,`getSections`),setShowData:g(e=>{O=e},`setShowData`),getShowData:g(()=>O,`getShowData`)},j=g((e,t)=>{x(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:g(async e=>{let t=await b(`pie`,e);p.debug(t),j(t,A)},`parse`)},N=g(e=>`
|
|
2
|
-
.pieCircle{
|
|
3
|
-
stroke: ${e.pieStrokeColor};
|
|
4
|
-
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
-
opacity : ${e.pieOpacity};
|
|
6
|
-
}
|
|
7
|
-
.pieOuterCircle{
|
|
8
|
-
stroke: ${e.pieOuterStrokeColor};
|
|
9
|
-
stroke-width: ${e.pieOuterStrokeWidth};
|
|
10
|
-
fill: none;
|
|
11
|
-
}
|
|
12
|
-
.pieTitleText {
|
|
13
|
-
text-anchor: middle;
|
|
14
|
-
font-size: ${e.pieTitleTextSize};
|
|
15
|
-
fill: ${e.pieTitleTextColor};
|
|
16
|
-
font-family: ${e.fontFamily};
|
|
17
|
-
}
|
|
18
|
-
.slice {
|
|
19
|
-
font-family: ${e.fontFamily};
|
|
20
|
-
fill: ${e.pieSectionTextColor};
|
|
21
|
-
font-size:${e.pieSectionTextSize};
|
|
22
|
-
// fill: white;
|
|
23
|
-
}
|
|
24
|
-
.legend text {
|
|
25
|
-
fill: ${e.pieLegendTextColor};
|
|
26
|
-
font-family: ${e.fontFamily};
|
|
27
|
-
font-size: ${e.pieLegendTextSize};
|
|
28
|
-
}
|
|
29
|
-
`,`getStyles`),P=g(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:g((r,i,a,o)=>{p.debug(`rendering pie chart
|
|
30
|
-
`+r);let s=o.db,l=n(),u=h(s.getConfig(),l.pie),d=c(i),f=d.append(`g`);f.attr(`transform`,`translate(225,225)`);let{themeVariables:m}=l,[g]=_(m.pieOuterStrokeWidth);g??=2;let y=u.textPosition,b=t().innerRadius(0).outerRadius(185),x=t().innerRadius(185*y).outerRadius(185*y);f.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+g/2).attr(`class`,`pieOuterCircle`);let S=s.getSections(),C=P(S),w=[m.pie1,m.pie2,m.pie3,m.pie4,m.pie5,m.pie6,m.pie7,m.pie8,m.pie9,m.pie10,m.pie11,m.pie12],T=0;S.forEach(e=>{T+=e});let E=C.filter(e=>(e.data.value/T*100).toFixed(0)!==`0`),D=e(w).domain([...S.keys()]);f.selectAll(`mySlices`).data(E).enter().append(`path`).attr(`d`,b).attr(`fill`,e=>D(e.data.label)).attr(`class`,`pieCircle`),f.selectAll(`mySlices`).data(E).enter().append(`text`).text(e=>(e.data.value/T*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+x.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let O=f.append(`text`).text(s.getDiagramTitle()).attr(`x`,0).attr(`y`,-400/2).attr(`class`,`pieTitleText`),k=[...S.entries()].map(([e,t])=>({label:e,value:t})),A=f.selectAll(`.legend`).data(k).enter().append(`g`).attr(`class`,`legend`).attr(`transform`,(e,t)=>{let n=22*k.length/2;return`translate(216,`+(t*22-n)+`)`});A.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>D(e.label)).style(`stroke`,e=>D(e.label)),A.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>s.getShowData()?`${e.label} [${e.value}]`:e.label);let j=512+Math.max(...A.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),M=O.node()?.getBoundingClientRect().width??0,N=450/2-M/2,F=450/2+M/2,I=Math.min(0,N),L=Math.max(j,F)-I;d.attr(`viewBox`,`${I} 0 ${L} 450`),v(d,450,L,u.useMaxWidth)},`draw`)},styles:N};export{F as diagram};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./linear-B_52T76x.js";import{An as t,Bn as n,Dn as r,En as i,Hn as a,Nn as o,On as s,Vn as c,Wn as l,ir as u,jn as d,rr as f,vn as p,wn as m,xn as h}from"./index-BewIyJmj.js";var g=(function(){var e=f(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],n=[1,4],r=[1,5],i=[1,6],a=[1,7],o=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],s=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[55,56,57],l=[2,36],u=[1,37],d=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],R=[1,63],z=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],de=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,91],U=[1,92],W=[1,93],G=[1,100],K=[1,94],q=[1,97],J=[1,95],Y=[1,96],X=[1,98],Z=[1,99],fe=[1,103],pe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],me={trace:f(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:f(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[{18:t,26:1,27:2,28:n,55:r,56:i,57:a},{1:[3]},{18:t,26:8,27:2,28:n,55:r,56:i,57:a},{18:t,26:9,27:2,28:n,55:r,56:i,57:a},e(o,[2,33],{29:10}),e(s,[2,61]),e(s,[2,62]),e(s,[2,63]),{1:[2,30]},{1:[2,31]},e(c,l,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:d,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(o,[2,34]),{27:46,55:r,56:i,57:a},e(c,[2,37]),e(c,l,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:d,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(c,[2,39]),e(c,[2,40]),e(c,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(c,[2,45]),e(c,[2,46]),{18:[1,51]},{4:u,5:d,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},e(B,[2,64]),e(B,[2,66]),e(B,[2,67]),e(B,[2,70]),e(B,[2,71]),e(B,[2,72]),e(B,[2,73]),e(B,[2,74]),e(B,[2,75]),e(B,[2,76]),e(B,[2,77]),e(B,[2,78]),e(B,[2,79]),e(B,[2,80]),e(B,[2,81]),e(o,[2,35]),e(c,[2,38]),e(c,[2,42]),e(c,[2,43]),e(c,[2,44]),{3:65,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:64},e(c,[2,53],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,78],63:N,64:P,65:F,66:I,67:L}),e(c,[2,56],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,79],63:N,64:P,65:F,66:I,67:L}),e(c,[2,57],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,58],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,59],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,60],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},e(B,[2,65]),e(B,[2,82]),e(B,[2,83]),e(B,[2,84]),{3:83,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,82]},e(V,[2,23]),e(V,[2,1]),e(V,[2,2]),e(V,[2,3]),e(V,[2,4]),e(V,[2,5]),e(V,[2,6]),e(V,[2,7]),e(V,[2,8]),e(V,[2,9]),e(V,[2,10]),e(V,[2,11]),e(V,[2,12]),e(c,[2,52],{58:31,43:84,4:u,5:d,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(c,[2,55],{58:31,43:85,4:u,5:d,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:89,23:88},e(V,[2,24]),e(c,[2,51],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,54],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,47],{22:89,16:90,23:101,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,102]},e(c,[2,29],{10:fe}),e(pe,[2,27],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),e(Q,[2,25]),e(Q,[2,13]),e(Q,[2,14]),e(Q,[2,15]),e(Q,[2,16]),e(Q,[2,17]),e(Q,[2,18]),e(Q,[2,19]),e(Q,[2,20]),e(Q,[2,21]),e(Q,[2,22]),e(c,[2,49],{10:fe}),e(c,[2,48],{22:89,16:90,23:105,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:106},e(Q,[2,26]),e(c,[2,50],{10:fe}),e(pe,[2,28],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},parseError:f(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:f(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}f(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}f(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
|
-
`+h.showPosition()+`
|
|
3
|
-
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(l=h.yyleng,s=h.yytext,c=h.yylineno,v=h.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};me.lexer=(function(){return{EOF:1,parseError:f(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:f(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:f(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:f(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 r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:f(function(){return this._more=!0,this},`more`),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:f(function(e){this.unput(this.match.slice(e))},`less`),pastInput:f(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:f(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:f(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
-
`+t+`^`},`showPosition`),test_match:f(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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 a in i)this[a]=i[a];return!1}return!1},`test_match`),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):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:f(function(){return this.next()||this.lex()},`lex`),begin:f(function(e){this.conditionStack.push(e)},`begin`),popState:f(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:f(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:f(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:f(function(e){this.begin(e)},`pushState`),stateStackSize:f(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:f(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function $(){this.yy={}}return f($,`Parser`),$.prototype=me,me.Parser=$,new $})();g.parser=g;var _=g,v=o(),y=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{f(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:i.quadrantChart?.chartWidth||500,chartWidth:i.quadrantChart?.chartHeight||500,titlePadding:i.quadrantChart?.titlePadding||10,titleFontSize:i.quadrantChart?.titleFontSize||20,quadrantPadding:i.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:i.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:i.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:i.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:i.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:i.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:i.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:i.quadrantChart?.pointTextPadding||5,pointLabelFontSize:i.quadrantChart?.pointLabelFontSize||12,pointRadius:i.quadrantChart?.pointRadius||5,xAxisPosition:i.quadrantChart?.xAxisPosition||`top`,yAxisPosition:i.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:i.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:i.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:v.quadrant1Fill,quadrant2Fill:v.quadrant2Fill,quadrant3Fill:v.quadrant3Fill,quadrant4Fill:v.quadrant4Fill,quadrant1TextFill:v.quadrant1TextFill,quadrant2TextFill:v.quadrant2TextFill,quadrant3TextFill:v.quadrant3TextFill,quadrant4TextFill:v.quadrant4TextFill,quadrantPointFill:v.quadrantPointFill,quadrantPointTextFill:v.quadrantPointTextFill,quadrantXAxisTextFill:v.quadrantXAxisTextFill,quadrantYAxisTextFill:v.quadrantYAxisTextFill,quadrantTitleFill:v.quadrantTitleFill,quadrantInternalBorderStrokeFill:v.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:v.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,u.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){u.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){u.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},c=this.config.titleFontSize+this.config.titlePadding*2,l={top:r?c:0},u=this.config.quadrantPadding+s.left,d=this.config.quadrantPadding+a.top+l.top,f=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,p=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-l.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:l,quadrantSpace:{quadrantLeft:u,quadrantTop:d,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:d}=i,f=!!this.data.xAxisRightText,p=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&t&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+l+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+s-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+o-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),m}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,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:r,y:a,width:i,height:n,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:r,y:a+n,width:i,height:n,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:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(t){let{quadrantSpace:n}=t,{quadrantHeight:r,quadrantLeft:i,quadrantTop:a,quadrantWidth:o}=n,s=e().domain([0,1]).range([i,o+i]),c=e().domain([0,1]).range([r+a,a]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:s(e.x),y:c(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:s(e.x),y:c(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+c+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+t,x2:a+c,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+c+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+c-t,y2:s+r}]}getTitle(e){if(e)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(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},b=class extends Error{static{f(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}};function x(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}f(x,`validateHexCode`);function S(e){return!/^\d+$/.test(e)}f(S,`validateNumber`);function C(e){return!/^\d+px$/.test(e)}f(C,`validateSizeInPixels`);var w=t();function T(e){return n(e.trim(),w)}f(T,`textSanitizer`);var E=new y;function D(e){E.setData({quadrant1Text:T(e.text)})}f(D,`setQuadrant1Text`);function O(e){E.setData({quadrant2Text:T(e.text)})}f(O,`setQuadrant2Text`);function k(e){E.setData({quadrant3Text:T(e.text)})}f(k,`setQuadrant3Text`);function A(e){E.setData({quadrant4Text:T(e.text)})}f(A,`setQuadrant4Text`);function j(e){E.setData({xAxisLeftText:T(e.text)})}f(j,`setXAxisLeftText`);function M(e){E.setData({xAxisRightText:T(e.text)})}f(M,`setXAxisRightText`);function N(e){E.setData({yAxisTopText:T(e.text)})}f(N,`setYAxisTopText`);function P(e){E.setData({yAxisBottomText:T(e.text)})}f(P,`setYAxisBottomText`);function F(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(S(r))throw new b(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(x(r))throw new b(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(x(r))throw new b(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(C(r))throw new b(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}f(F,`parseStyles`);function I(e,t,n,r,i){let a=F(i);E.addPoints([{x:n,y:r,text:T(e.text),className:t,...a}])}f(I,`addPoint`);function L(e,t){E.addClass(e,F(t))}f(L,`addClass`);function R(e){E.setConfig({chartWidth:e})}f(R,`setWidth`);function z(e){E.setConfig({chartHeight:e})}f(z,`setHeight`);function B(){let{themeVariables:e,quadrantChart:n}=t();return n&&E.setConfig(n),E.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}),E.setData({titleText:d()}),E.build()}f(B,`getQuadrantData`);var ee={parser:_,db:{setWidth:R,setHeight:z,setQuadrant1Text:D,setQuadrant2Text:O,setQuadrant3Text:k,setQuadrant4Text:A,setXAxisLeftText:j,setXAxisRightText:M,setYAxisTopText:N,setYAxisBottomText:P,parseStyles:F,addPoint:I,addClass:L,getQuadrantData:B,clear:f(function(){E.clear(),h()},`clear`),setAccTitle:a,getAccTitle:s,setDiagramTitle:l,getDiagramTitle:d,getAccDescription:r,setAccDescription:c},renderer:{draw:f((e,n,r,i)=>{function a(e){return e===`top`?`hanging`:`middle`}f(a,`getDominantBaseLine`);function o(e){return e===`left`?`start`:`middle`}f(o,`getTextAnchor`);function s(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}f(s,`getTransformation`);let c=t();u.debug(`Rendering quadrant chart
|
|
7
|
-
`+e);let l=c.securityLevel,d;l===`sandbox`&&(d=p(`#i`+n));let h=p(l===`sandbox`?d.nodes()[0].contentDocument.body:`body`).select(`[id="${n}"]`),g=h.append(`g`).attr(`class`,`main`),_=c.quadrantChart?.chartWidth??500,v=c.quadrantChart?.chartHeight??500;m(h,v,_,c.quadrantChart?.useMaxWidth??!0),h.attr(`viewBox`,`0 0 `+_+` `+v),i.db.setHeight(v),i.db.setWidth(_);let y=i.db.getQuadrantData(),b=g.append(`g`).attr(`class`,`quadrants`),x=g.append(`g`).attr(`class`,`border`),S=g.append(`g`).attr(`class`,`data-points`),C=g.append(`g`).attr(`class`,`labels`),w=g.append(`g`).attr(`class`,`title`);y.title&&w.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,y.title.fill).attr(`font-size`,y.title.fontSize).attr(`dominant-baseline`,a(y.title.horizontalPos)).attr(`text-anchor`,o(y.title.verticalPos)).attr(`transform`,s(y.title)).text(y.title.text),y.borderLines&&x.selectAll(`line`).data(y.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let T=b.selectAll(`g.quadrant`).data(y.quadrants).enter().append(`g`).attr(`class`,`quadrant`);T.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),T.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>a(e.text.horizontalPos)).attr(`text-anchor`,e=>o(e.text.verticalPos)).attr(`transform`,e=>s(e.text)).text(e=>e.text.text),C.selectAll(`g.label`).data(y.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>a(e.horizontalPos)).attr(`text-anchor`,e=>o(e.verticalPos)).attr(`transform`,e=>s(e));let E=S.selectAll(`g.data-point`).data(y.points).enter().append(`g`).attr(`class`,`data-point`);E.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),E.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>a(e.text.horizontalPos)).attr(`text-anchor`,e=>o(e.text.verticalPos)).attr(`transform`,e=>s(e.text))},`draw`)},styles:f(()=>``,`styles`)};export{ee as diagram};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./linear-D2PqFEbl.js";import{An as t,Bn as n,Dn as r,En as i,Hn as a,Nn as o,On as s,Vn as c,Wn as l,ir as u,jn as d,rr as f,vn as p,wn as m,xn as h}from"./index-ckENP4pU.js";var g=(function(){var e=f(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],n=[1,4],r=[1,5],i=[1,6],a=[1,7],o=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],s=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[55,56,57],l=[2,36],u=[1,37],d=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],R=[1,63],z=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],de=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,91],U=[1,92],W=[1,93],G=[1,100],K=[1,94],q=[1,97],J=[1,95],Y=[1,96],X=[1,98],Z=[1,99],fe=[1,103],pe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],me={trace:f(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:f(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[{18:t,26:1,27:2,28:n,55:r,56:i,57:a},{1:[3]},{18:t,26:8,27:2,28:n,55:r,56:i,57:a},{18:t,26:9,27:2,28:n,55:r,56:i,57:a},e(o,[2,33],{29:10}),e(s,[2,61]),e(s,[2,62]),e(s,[2,63]),{1:[2,30]},{1:[2,31]},e(c,l,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:d,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(o,[2,34]),{27:46,55:r,56:i,57:a},e(c,[2,37]),e(c,l,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:d,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(c,[2,39]),e(c,[2,40]),e(c,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(c,[2,45]),e(c,[2,46]),{18:[1,51]},{4:u,5:d,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},e(B,[2,64]),e(B,[2,66]),e(B,[2,67]),e(B,[2,70]),e(B,[2,71]),e(B,[2,72]),e(B,[2,73]),e(B,[2,74]),e(B,[2,75]),e(B,[2,76]),e(B,[2,77]),e(B,[2,78]),e(B,[2,79]),e(B,[2,80]),e(B,[2,81]),e(o,[2,35]),e(c,[2,38]),e(c,[2,42]),e(c,[2,43]),e(c,[2,44]),{3:65,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:64},e(c,[2,53],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,78],63:N,64:P,65:F,66:I,67:L}),e(c,[2,56],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,79],63:N,64:P,65:F,66:I,67:L}),e(c,[2,57],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,58],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,59],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,60],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},e(B,[2,65]),e(B,[2,82]),e(B,[2,83]),e(B,[2,84]),{3:83,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,82]},e(V,[2,23]),e(V,[2,1]),e(V,[2,2]),e(V,[2,3]),e(V,[2,4]),e(V,[2,5]),e(V,[2,6]),e(V,[2,7]),e(V,[2,8]),e(V,[2,9]),e(V,[2,10]),e(V,[2,11]),e(V,[2,12]),e(c,[2,52],{58:31,43:84,4:u,5:d,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(c,[2,55],{58:31,43:85,4:u,5:d,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:89,23:88},e(V,[2,24]),e(c,[2,51],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,54],{59:60,58:61,4:u,5:d,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,47],{22:89,16:90,23:101,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,102]},e(c,[2,29],{10:fe}),e(pe,[2,27],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),e(Q,[2,25]),e(Q,[2,13]),e(Q,[2,14]),e(Q,[2,15]),e(Q,[2,16]),e(Q,[2,17]),e(Q,[2,18]),e(Q,[2,19]),e(Q,[2,20]),e(Q,[2,21]),e(Q,[2,22]),e(c,[2,49],{10:fe}),e(c,[2,48],{22:89,16:90,23:105,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:106},e(Q,[2,26]),e(c,[2,50],{10:fe}),e(pe,[2,28],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},parseError:f(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:f(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}f(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}f(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
|
-
`+h.showPosition()+`
|
|
3
|
-
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(l=h.yyleng,s=h.yytext,c=h.yylineno,v=h.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};me.lexer=(function(){return{EOF:1,parseError:f(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:f(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:f(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:f(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 r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:f(function(){return this._more=!0,this},`more`),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:f(function(e){this.unput(this.match.slice(e))},`less`),pastInput:f(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:f(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:f(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
-
`+t+`^`},`showPosition`),test_match:f(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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 a in i)this[a]=i[a];return!1}return!1},`test_match`),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):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:f(function(){return this.next()||this.lex()},`lex`),begin:f(function(e){this.conditionStack.push(e)},`begin`),popState:f(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:f(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:f(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:f(function(e){this.begin(e)},`pushState`),stateStackSize:f(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:f(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function $(){this.yy={}}return f($,`Parser`),$.prototype=me,me.Parser=$,new $})();g.parser=g;var _=g,v=o(),y=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{f(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:i.quadrantChart?.chartWidth||500,chartWidth:i.quadrantChart?.chartHeight||500,titlePadding:i.quadrantChart?.titlePadding||10,titleFontSize:i.quadrantChart?.titleFontSize||20,quadrantPadding:i.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:i.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:i.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:i.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:i.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:i.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:i.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:i.quadrantChart?.pointTextPadding||5,pointLabelFontSize:i.quadrantChart?.pointLabelFontSize||12,pointRadius:i.quadrantChart?.pointRadius||5,xAxisPosition:i.quadrantChart?.xAxisPosition||`top`,yAxisPosition:i.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:i.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:i.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:v.quadrant1Fill,quadrant2Fill:v.quadrant2Fill,quadrant3Fill:v.quadrant3Fill,quadrant4Fill:v.quadrant4Fill,quadrant1TextFill:v.quadrant1TextFill,quadrant2TextFill:v.quadrant2TextFill,quadrant3TextFill:v.quadrant3TextFill,quadrant4TextFill:v.quadrant4TextFill,quadrantPointFill:v.quadrantPointFill,quadrantPointTextFill:v.quadrantPointTextFill,quadrantXAxisTextFill:v.quadrantXAxisTextFill,quadrantYAxisTextFill:v.quadrantYAxisTextFill,quadrantTitleFill:v.quadrantTitleFill,quadrantInternalBorderStrokeFill:v.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:v.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,u.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){u.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){u.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},c=this.config.titleFontSize+this.config.titlePadding*2,l={top:r?c:0},u=this.config.quadrantPadding+s.left,d=this.config.quadrantPadding+a.top+l.top,f=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,p=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-l.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:l,quadrantSpace:{quadrantLeft:u,quadrantTop:d,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:d}=i,f=!!this.data.xAxisRightText,p=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&t&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+l+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+s-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+o-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),m}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,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:r,y:a,width:i,height:n,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:r,y:a+n,width:i,height:n,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:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(t){let{quadrantSpace:n}=t,{quadrantHeight:r,quadrantLeft:i,quadrantTop:a,quadrantWidth:o}=n,s=e().domain([0,1]).range([i,o+i]),c=e().domain([0,1]).range([r+a,a]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:s(e.x),y:c(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:s(e.x),y:c(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+c+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+t,x2:a+c,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+c+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+c-t,y2:s+r}]}getTitle(e){if(e)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(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},b=class extends Error{static{f(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}};function x(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}f(x,`validateHexCode`);function S(e){return!/^\d+$/.test(e)}f(S,`validateNumber`);function C(e){return!/^\d+px$/.test(e)}f(C,`validateSizeInPixels`);var w=t();function T(e){return n(e.trim(),w)}f(T,`textSanitizer`);var E=new y;function D(e){E.setData({quadrant1Text:T(e.text)})}f(D,`setQuadrant1Text`);function O(e){E.setData({quadrant2Text:T(e.text)})}f(O,`setQuadrant2Text`);function k(e){E.setData({quadrant3Text:T(e.text)})}f(k,`setQuadrant3Text`);function A(e){E.setData({quadrant4Text:T(e.text)})}f(A,`setQuadrant4Text`);function j(e){E.setData({xAxisLeftText:T(e.text)})}f(j,`setXAxisLeftText`);function M(e){E.setData({xAxisRightText:T(e.text)})}f(M,`setXAxisRightText`);function N(e){E.setData({yAxisTopText:T(e.text)})}f(N,`setYAxisTopText`);function P(e){E.setData({yAxisBottomText:T(e.text)})}f(P,`setYAxisBottomText`);function F(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(S(r))throw new b(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(x(r))throw new b(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(x(r))throw new b(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(C(r))throw new b(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}f(F,`parseStyles`);function I(e,t,n,r,i){let a=F(i);E.addPoints([{x:n,y:r,text:T(e.text),className:t,...a}])}f(I,`addPoint`);function L(e,t){E.addClass(e,F(t))}f(L,`addClass`);function R(e){E.setConfig({chartWidth:e})}f(R,`setWidth`);function z(e){E.setConfig({chartHeight:e})}f(z,`setHeight`);function B(){let{themeVariables:e,quadrantChart:n}=t();return n&&E.setConfig(n),E.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}),E.setData({titleText:d()}),E.build()}f(B,`getQuadrantData`);var ee={parser:_,db:{setWidth:R,setHeight:z,setQuadrant1Text:D,setQuadrant2Text:O,setQuadrant3Text:k,setQuadrant4Text:A,setXAxisLeftText:j,setXAxisRightText:M,setYAxisTopText:N,setYAxisBottomText:P,parseStyles:F,addPoint:I,addClass:L,getQuadrantData:B,clear:f(function(){E.clear(),h()},`clear`),setAccTitle:a,getAccTitle:s,setDiagramTitle:l,getDiagramTitle:d,getAccDescription:r,setAccDescription:c},renderer:{draw:f((e,n,r,i)=>{function a(e){return e===`top`?`hanging`:`middle`}f(a,`getDominantBaseLine`);function o(e){return e===`left`?`start`:`middle`}f(o,`getTextAnchor`);function s(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}f(s,`getTransformation`);let c=t();u.debug(`Rendering quadrant chart
|
|
7
|
-
`+e);let l=c.securityLevel,d;l===`sandbox`&&(d=p(`#i`+n));let h=p(l===`sandbox`?d.nodes()[0].contentDocument.body:`body`).select(`[id="${n}"]`),g=h.append(`g`).attr(`class`,`main`),_=c.quadrantChart?.chartWidth??500,v=c.quadrantChart?.chartHeight??500;m(h,v,_,c.quadrantChart?.useMaxWidth??!0),h.attr(`viewBox`,`0 0 `+_+` `+v),i.db.setHeight(v),i.db.setWidth(_);let y=i.db.getQuadrantData(),b=g.append(`g`).attr(`class`,`quadrants`),x=g.append(`g`).attr(`class`,`border`),S=g.append(`g`).attr(`class`,`data-points`),C=g.append(`g`).attr(`class`,`labels`),w=g.append(`g`).attr(`class`,`title`);y.title&&w.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,y.title.fill).attr(`font-size`,y.title.fontSize).attr(`dominant-baseline`,a(y.title.horizontalPos)).attr(`text-anchor`,o(y.title.verticalPos)).attr(`transform`,s(y.title)).text(y.title.text),y.borderLines&&x.selectAll(`line`).data(y.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let T=b.selectAll(`g.quadrant`).data(y.quadrants).enter().append(`g`).attr(`class`,`quadrant`);T.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),T.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>a(e.text.horizontalPos)).attr(`text-anchor`,e=>o(e.text.verticalPos)).attr(`transform`,e=>s(e.text)).text(e=>e.text.text),C.selectAll(`g.label`).data(y.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>a(e.horizontalPos)).attr(`text-anchor`,e=>o(e.verticalPos)).attr(`transform`,e=>s(e));let E=S.selectAll(`g.data-point`).data(y.points).enter().append(`g`).attr(`class`,`data-point`);E.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),E.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>a(e.text.horizontalPos)).attr(`text-anchor`,e=>o(e.text.verticalPos)).attr(`transform`,e=>s(e.text))},`draw`)},styles:f(()=>``,`styles`)};export{ee as diagram};
|